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=
4063 # Enable some nice automake features if they are available
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4066 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4067 # Check whether --enable-maintainer-mode was given.
4068 if test "${enable_maintainer_mode+set}" = set; then :
4069 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4071 USE_MAINTAINER_MODE=no
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4075 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4076 if test $USE_MAINTAINER_MODE = yes; then
4077 MAINTAINER_MODE_TRUE=
4078 MAINTAINER_MODE_FALSE='#'
4080 MAINTAINER_MODE_TRUE='#'
4081 MAINTAINER_MODE_FALSE=
4084 MAINT=$MAINTAINER_MODE_TRUE
4087 # Check whether --enable-silent-rules was given.
4088 if test "${enable_silent_rules+set}" = set; then :
4089 enableval=$enable_silent_rules;
4092 case $enable_silent_rules in # (((
4093 yes) AM_DEFAULT_VERBOSITY=0;;
4094 no) AM_DEFAULT_VERBOSITY=1;;
4095 *) AM_DEFAULT_VERBOSITY=0;;
4097 am_make=${MAKE-make}
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4099 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4100 if ${am_cv_make_support_nested_variables+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 if $as_echo 'TRUE=$(BAR$(V))
4109 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4110 am_cv_make_support_nested_variables=yes
4112 am_cv_make_support_nested_variables=no
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4116 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4117 if test $am_cv_make_support_nested_variables = yes; then
4119 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4121 AM_V=$AM_DEFAULT_VERBOSITY
4122 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4127 # Fill GXX with something before test.
4140 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4141 if test -n "$ac_tool_prefix"; then
4142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4143 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4147 $as_echo_n "(cached) " >&6
4151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4173 if test -n "$PKG_CONFIG"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4175 $as_echo "$PKG_CONFIG" >&6; }
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4183 if test -z "$ac_cv_path_PKG_CONFIG"; then
4184 ac_pt_PKG_CONFIG=$PKG_CONFIG
4185 # Extract the first word of "pkg-config", so it can be a program name with args.
4186 set dummy pkg-config; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4190 $as_echo_n "(cached) " >&6
4192 case $ac_pt_PKG_CONFIG in
4194 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4216 if test -n "$ac_pt_PKG_CONFIG"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4218 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4224 if test "x$ac_pt_PKG_CONFIG" = x; then
4227 case $cross_compiling:$ac_tool_warned in
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231 ac_tool_warned=yes ;;
4233 PKG_CONFIG=$ac_pt_PKG_CONFIG
4236 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4240 if test -n "$PKG_CONFIG"; then
4241 _pkg_min_version=0.9.0
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4243 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4244 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4246 $as_echo "yes" >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
4258 $as_echo_n "checking whether to compile debug version... " >&6; }
4259 # Check whether --enable-debug was given.
4260 if test "${enable_debug+set}" = set; then :
4261 enableval=$enable_debug; : ${CXXFLAGS="-g -O0"}; $as_echo "#define __RTAUDIO_DEBUG__ 1" >>confdefs.h
4268 # Checks for programs.
4270 ac_cpp='$CXXCPP $CPPFLAGS'
4271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4274 if test -z "$CXX"; then
4275 if test -n "$CCC"; then
4278 if test -n "$ac_tool_prefix"; then
4279 for ac_prog in g++ CC c++ cxx
4281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_CXX+:} false; then :
4286 $as_echo_n "(cached) " >&6
4288 if test -n "$CXX"; then
4289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 if test -n "$CXX"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4311 $as_echo "$CXX" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4318 test -n "$CXX" && break
4321 if test -z "$CXX"; then
4323 for ac_prog in g++ CC c++ cxx
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4330 $as_echo_n "(cached) " >&6
4332 if test -n "$ac_ct_CXX"; then
4333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_prog_ac_ct_CXX="$ac_prog"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4353 if test -n "$ac_ct_CXX"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4355 $as_echo "$ac_ct_CXX" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4362 test -n "$ac_ct_CXX" && break
4365 if test "x$ac_ct_CXX" = x; then
4368 case $cross_compiling:$ac_tool_warned in
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372 ac_tool_warned=yes ;;
4380 # Provide some information about the compiler.
4381 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4384 for ac_option in --version -v -V -qversion; do
4385 { { ac_try="$ac_compiler $ac_option >&5"
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 $as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4394 if test -s conftest.err; then
4396 ... rest of stderr output deleted ...
4397 10q' conftest.err >conftest.er1
4398 cat conftest.er1 >&5
4400 rm -f conftest.er1 conftest.err
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4406 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4407 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4408 $as_echo_n "(cached) " >&6
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4424 if ac_fn_cxx_try_compile "$LINENO"; then :
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4434 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4435 if test $ac_compiler_gnu = yes; then
4440 ac_test_CXXFLAGS=${CXXFLAGS+set}
4441 ac_save_CXXFLAGS=$CXXFLAGS
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4443 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4444 if ${ac_cv_prog_cxx_g+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4448 ac_cxx_werror_flag=yes
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4462 if ac_fn_cxx_try_compile "$LINENO"; then :
4463 ac_cv_prog_cxx_g=yes
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4477 if ac_fn_cxx_try_compile "$LINENO"; then :
4480 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4493 if ac_fn_cxx_try_compile "$LINENO"; then :
4494 ac_cv_prog_cxx_g=yes
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4504 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4505 if test "$ac_test_CXXFLAGS" = set; then
4506 CXXFLAGS=$ac_save_CXXFLAGS
4507 elif test $ac_cv_prog_cxx_g = yes; then
4508 if test "$GXX" = yes; then
4514 if test "$GXX" = yes; then
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 depcc="$CXX" am_compiler_list=
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4529 $as_echo_n "checking dependency style of $depcc... " >&6; }
4530 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4534 # We make a subdir and do the tests there. Otherwise we can end up
4535 # making bogus files that we don't know about and never remove. For
4536 # instance it was reported that on HP-UX the gcc test will end up
4537 # making a dummy file named 'D' -- because '-MD' means "put the output
4541 # Copy depcomp to subdir because otherwise we won't find it if we're
4542 # using a relative directory.
4543 cp "$am_depcomp" conftest.dir
4545 # We will build objects and dependencies in a subdirectory because
4546 # it helps to detect inapplicable dependency modes. For instance
4547 # both Tru64's cc and ICC support -MD to output dependencies as a
4548 # side effect of compilation, but ICC will put the dependencies in
4549 # the current directory while Tru64 will put them in the object
4553 am_cv_CXX_dependencies_compiler_type=none
4554 if test "$am_compiler_list" = ""; then
4555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4558 case " $depcc " in #(
4559 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4562 for depmode in $am_compiler_list; do
4563 # Setup a source with many dependencies, because some compilers
4564 # like to wrap large dependency lists on column 80 (with \), and
4565 # we should not choose a depcomp mode which is confused by this.
4567 # We need to recreate these files for each test, as the compiler may
4568 # overwrite some of them when testing with obscure command lines.
4569 # This happens at least with the AIX C compiler.
4571 for i in 1 2 3 4 5 6; do
4572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4573 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4574 # Solaris 10 /bin/sh.
4575 echo '/* dummy */' > sub/conftst$i.h
4577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4579 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4580 # mode. It turns out that the SunPro C++ compiler does not properly
4581 # handle '-M -o', and we need to detect this. Also, some Intel
4582 # versions had trouble with output in subdirs.
4583 am__obj=sub/conftest.${OBJEXT-o}
4584 am__minus_obj="-o $am__obj"
4587 # This depmode causes a compiler race in universal mode.
4588 test "$am__universal" = false || continue
4591 # After this tag, mechanisms are not by side-effect, so they'll
4592 # only be used when explicitly requested.
4593 if test "x$enable_dependency_tracking" = xyes; then
4599 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4600 # This compiler won't grok '-c -o', but also, the minuso test has
4601 # not run yet. These depmodes are late enough in the game, and
4602 # so weak that their functioning should not be impacted.
4603 am__obj=conftest.${OBJEXT-o}
4608 if depmode=$depmode \
4609 source=sub/conftest.c object=$am__obj \
4610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4611 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4612 >/dev/null 2>conftest.err &&
4613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4615 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4617 # icc doesn't choke on unknown options, it will just issue warnings
4618 # or remarks (even with -Werror). So we grep stderr for any message
4619 # that says an option was ignored or not supported.
4620 # When given -MP, icc 7.0 and 7.1 complain thusly:
4621 # icc: Command line warning: ignoring option '-M'; no argument required
4622 # The diagnosis changed in icc 8.0:
4623 # icc: Command line remark: option '-MP' not supported
4624 if (grep 'ignoring option' conftest.err ||
4625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4626 am_cv_CXX_dependencies_compiler_type=$depmode
4635 am_cv_CXX_dependencies_compiler_type=none
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4640 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4641 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4644 test "x$enable_dependency_tracking" != xno \
4645 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4646 am__fastdepCXX_TRUE=
4647 am__fastdepCXX_FALSE='#'
4649 am__fastdepCXX_TRUE='#'
4650 am__fastdepCXX_FALSE=
4654 if test -n "$ac_tool_prefix"; then
4655 for ac_prog in ar lib "link -lib"
4657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if ${ac_cv_prog_AR+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 if test -n "$AR"; then
4665 ac_cv_prog_AR="$AR" # Let the user override the test.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4674 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 if test -n "$AR"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4687 $as_echo "$AR" >&6; }
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4694 test -n "$AR" && break
4697 if test -z "$AR"; then
4699 for ac_prog in ar lib "link -lib"
4701 # Extract the first word of "$ac_prog", so it can be a program name with args.
4702 set dummy $ac_prog; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 if test -n "$ac_ct_AR"; then
4709 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_ac_ct_AR="$ac_prog"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4729 if test -n "$ac_ct_AR"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4731 $as_echo "$ac_ct_AR" >&6; }
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4738 test -n "$ac_ct_AR" && break
4741 if test "x$ac_ct_AR" = x; then
4744 case $cross_compiling:$ac_tool_warned in
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4748 ac_tool_warned=yes ;;
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4757 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4758 if ${am_cv_ar_interface+:} false; then :
4759 $as_echo_n "(cached) " >&6
4762 ac_cpp='$CPP $CPPFLAGS'
4763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 am_cv_ar_interface=ar
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 int some_variable = 0;
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4775 (eval $am_ar_try) 2>&5
4777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4778 test $ac_status = 0; }
4779 if test "$ac_status" -eq 0; then
4780 am_cv_ar_interface=ar
4782 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4784 (eval $am_ar_try) 2>&5
4786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4787 test $ac_status = 0; }
4788 if test "$ac_status" -eq 0; then
4789 am_cv_ar_interface=lib
4791 am_cv_ar_interface=unknown
4794 rm -f conftest.lib libconftest.a
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4806 $as_echo "$am_cv_ar_interface" >&6; }
4808 case $am_cv_ar_interface in
4812 # Microsoft lib, so override with the ar-lib wrapper script.
4813 # FIXME: It is wrong to rewrite AR.
4814 # But if we don't then we get into trouble of one sort or another.
4815 # A longer-term fix would be to have automake use am__AR in this case,
4816 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4818 AR="$am_aux_dir/ar-lib $AR"
4821 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4825 # Extract the first word of "ar", so it can be a program name with args.
4826 set dummy ar; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if ${ac_cv_path_AR+:} false; then :
4830 $as_echo_n "(cached) " >&6
4834 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
4857 if test -n "$AR"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4859 $as_echo "$AR" >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4866 if [ $AR = "no" ] ; then
4867 as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5;
4870 # Initialize libtool
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4879 macro_version='2.4.2'
4880 macro_revision='1.3337'
4894 ltmain="$ac_aux_dir/ltmain.sh"
4896 # Make sure we can run config.sub.
4897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4898 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4901 $as_echo_n "checking build system type... " >&6; }
4902 if ${ac_cv_build+:} false; then :
4903 $as_echo_n "(cached) " >&6
4905 ac_build_alias=$build_alias
4906 test "x$ac_build_alias" = x &&
4907 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4908 test "x$ac_build_alias" = x &&
4909 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4911 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4915 $as_echo "$ac_cv_build" >&6; }
4916 case $ac_cv_build in
4918 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4921 ac_save_IFS=$IFS; IFS='-'
4927 # Remember, the first character of IFS is used to create $*,
4928 # except with old shells:
4931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4935 $as_echo_n "checking host system type... " >&6; }
4936 if ${ac_cv_host+:} false; then :
4937 $as_echo_n "(cached) " >&6
4939 if test "x$host_alias" = x; then
4940 ac_cv_host=$ac_cv_build
4942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4943 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4948 $as_echo "$ac_cv_host" >&6; }
4951 *) as_fn_error $? "invalid value of canonical host" "$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 $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4967 # Backslashify metacharacters that are still active within
4968 # double-quoted strings.
4969 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4971 # Same as above, but do not quote variable references.
4972 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4974 # Sed substitution to delay expansion of an escaped shell variable in a
4975 # double_quote_subst'ed string.
4976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4978 # Sed substitution to delay expansion of an escaped single quote.
4979 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4981 # Sed substitution to avoid accidental globbing in evaled expressions
4982 no_glob_subst='s/\*/\\\*/g'
4984 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4989 $as_echo_n "checking how to print strings... " >&6; }
4990 # Test print first, because it will be a builtin if present.
4991 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4992 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4994 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4997 # Use this function as a fallback that always works.
4998 func_fallback_echo ()
5000 eval 'cat <<_LTECHO_EOF
5004 ECHO='func_fallback_echo'
5007 # func_echo_all arg...
5008 # Invoke $ECHO with all args, space-separated.
5015 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5016 $as_echo "printf" >&6; } ;;
5017 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5018 $as_echo "print -r" >&6; } ;;
5019 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5020 $as_echo "cat" >&6; } ;;
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5038 if ${ac_cv_path_SED+:} false; then :
5039 $as_echo_n "(cached) " >&6
5041 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5042 for ac_i in 1 2 3 4 5 6 7; do
5043 ac_script="$ac_script$as_nl$ac_script"
5045 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5046 { ac_script=; unset ac_script;}
5047 if test -z "$SED"; then
5048 ac_path_SED_found=false
5049 # Loop through the user's path and test for each of PROGNAME-LIST
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir=.
5055 for ac_prog in sed gsed; do
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5058 as_fn_executable_p "$ac_path_SED" || continue
5059 # Check for GNU ac_path_SED and select it if it is found.
5060 # Check for GNU $ac_path_SED
5061 case `"$ac_path_SED" --version 2>&1` in
5063 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5066 $as_echo_n 0123456789 >"conftest.in"
5069 cat "conftest.in" "conftest.in" >"conftest.tmp"
5070 mv "conftest.tmp" "conftest.in"
5071 cp "conftest.in" "conftest.nl"
5072 $as_echo '' >> "conftest.nl"
5073 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075 as_fn_arith $ac_count + 1 && ac_count=$as_val
5076 if test $ac_count -gt ${ac_path_SED_max-0}; then
5077 # Best one so far, save it but keep looking for a better one
5078 ac_cv_path_SED="$ac_path_SED"
5079 ac_path_SED_max=$ac_count
5081 # 10*(2^10) chars as input seems more than enough
5082 test $ac_count -gt 10 && break
5084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087 $ac_path_SED_found && break 3
5092 if test -z "$ac_cv_path_SED"; then
5093 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5101 $as_echo "$ac_cv_path_SED" >&6; }
5102 SED="$ac_cv_path_SED"
5105 test -z "$SED" && SED=sed
5106 Xsed="$SED -e 1s/^X//"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5119 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5120 if ${ac_cv_path_GREP+:} false; then :
5121 $as_echo_n "(cached) " >&6
5123 if test -z "$GREP"; then
5124 ac_path_GREP_found=false
5125 # Loop through the user's path and test for each of PROGNAME-LIST
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5130 test -z "$as_dir" && as_dir=.
5131 for ac_prog in grep ggrep; do
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5134 as_fn_executable_p "$ac_path_GREP" || continue
5135 # Check for GNU ac_path_GREP and select it if it is found.
5136 # Check for GNU $ac_path_GREP
5137 case `"$ac_path_GREP" --version 2>&1` in
5139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5142 $as_echo_n 0123456789 >"conftest.in"
5145 cat "conftest.in" "conftest.in" >"conftest.tmp"
5146 mv "conftest.tmp" "conftest.in"
5147 cp "conftest.in" "conftest.nl"
5148 $as_echo 'GREP' >> "conftest.nl"
5149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151 as_fn_arith $ac_count + 1 && ac_count=$as_val
5152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5153 # Best one so far, save it but keep looking for a better one
5154 ac_cv_path_GREP="$ac_path_GREP"
5155 ac_path_GREP_max=$ac_count
5157 # 10*(2^10) chars as input seems more than enough
5158 test $ac_count -gt 10 && break
5160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 $ac_path_GREP_found && break 3
5168 if test -z "$ac_cv_path_GREP"; then
5169 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5172 ac_cv_path_GREP=$GREP
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5177 $as_echo "$ac_cv_path_GREP" >&6; }
5178 GREP="$ac_cv_path_GREP"
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5182 $as_echo_n "checking for egrep... " >&6; }
5183 if ${ac_cv_path_EGREP+:} false; then :
5184 $as_echo_n "(cached) " >&6
5186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5187 then ac_cv_path_EGREP="$GREP -E"
5189 if test -z "$EGREP"; then
5190 ac_path_EGREP_found=false
5191 # Loop through the user's path and test for each of PROGNAME-LIST
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196 test -z "$as_dir" && as_dir=.
5197 for ac_prog in egrep; do
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5200 as_fn_executable_p "$ac_path_EGREP" || continue
5201 # Check for GNU ac_path_EGREP and select it if it is found.
5202 # Check for GNU $ac_path_EGREP
5203 case `"$ac_path_EGREP" --version 2>&1` in
5205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5208 $as_echo_n 0123456789 >"conftest.in"
5211 cat "conftest.in" "conftest.in" >"conftest.tmp"
5212 mv "conftest.tmp" "conftest.in"
5213 cp "conftest.in" "conftest.nl"
5214 $as_echo 'EGREP' >> "conftest.nl"
5215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5217 as_fn_arith $ac_count + 1 && ac_count=$as_val
5218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5219 # Best one so far, save it but keep looking for a better one
5220 ac_cv_path_EGREP="$ac_path_EGREP"
5221 ac_path_EGREP_max=$ac_count
5223 # 10*(2^10) chars as input seems more than enough
5224 test $ac_count -gt 10 && break
5226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 $ac_path_EGREP_found && break 3
5234 if test -z "$ac_cv_path_EGREP"; then
5235 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5238 ac_cv_path_EGREP=$EGREP
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5244 $as_echo "$ac_cv_path_EGREP" >&6; }
5245 EGREP="$ac_cv_path_EGREP"
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5249 $as_echo_n "checking for fgrep... " >&6; }
5250 if ${ac_cv_path_FGREP+:} false; then :
5251 $as_echo_n "(cached) " >&6
5253 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5254 then ac_cv_path_FGREP="$GREP -F"
5256 if test -z "$FGREP"; then
5257 ac_path_FGREP_found=false
5258 # Loop through the user's path and test for each of PROGNAME-LIST
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5263 test -z "$as_dir" && as_dir=.
5264 for ac_prog in fgrep; do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5267 as_fn_executable_p "$ac_path_FGREP" || continue
5268 # Check for GNU ac_path_FGREP and select it if it is found.
5269 # Check for GNU $ac_path_FGREP
5270 case `"$ac_path_FGREP" --version 2>&1` in
5272 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5275 $as_echo_n 0123456789 >"conftest.in"
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 $as_echo 'FGREP' >> "conftest.nl"
5282 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 as_fn_arith $ac_count + 1 && ac_count=$as_val
5285 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_FGREP="$ac_path_FGREP"
5288 ac_path_FGREP_max=$ac_count
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296 $ac_path_FGREP_found && break 3
5301 if test -z "$ac_cv_path_FGREP"; then
5302 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5305 ac_cv_path_FGREP=$FGREP
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5311 $as_echo "$ac_cv_path_FGREP" >&6; }
5312 FGREP="$ac_cv_path_FGREP"
5315 test -z "$GREP" && GREP=grep
5335 # Check whether --with-gnu-ld was given.
5336 if test "${with_gnu_ld+set}" = set; then :
5337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5343 if test "$GCC" = yes; then
5344 # Check if gcc -print-prog-name=ld gives a path.
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5346 $as_echo_n "checking for ld used by $CC... " >&6; }
5349 # gcc leaves a trailing carriage return which upsets mingw
5350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5355 # Accept absolute paths.
5357 re_direlt='/[^/][^/]*/\.\./'
5358 # Canonicalize the pathname of ld
5359 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5360 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5361 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5363 test -z "$LD" && LD="$ac_prog"
5366 # If it fails, then pretend we aren't using GCC.
5370 # If it is relative, then search for the first ld in PATH.
5374 elif test "$with_gnu_ld" = yes; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5376 $as_echo_n "checking for GNU ld... " >&6; }
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5379 $as_echo_n "checking for non-GNU ld... " >&6; }
5381 if ${lt_cv_path_LD+:} false; then :
5382 $as_echo_n "(cached) " >&6
5384 if test -z "$LD"; then
5385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5386 for ac_dir in $PATH; do
5388 test -z "$ac_dir" && ac_dir=.
5389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5390 lt_cv_path_LD="$ac_dir/$ac_prog"
5391 # Check to see if the program is GNU ld. I'd rather use --version,
5392 # but apparently some variants of GNU ld only accept -v.
5393 # Break only if it was the GNU/non-GNU ld that we prefer.
5394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5395 *GNU* | *'with BFD'*)
5396 test "$with_gnu_ld" != no && break
5399 test "$with_gnu_ld" != yes && break
5406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5411 if test -n "$LD"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5413 $as_echo "$LD" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5418 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5421 if ${lt_cv_prog_gnu_ld+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5425 case `$LD -v 2>&1 </dev/null` in
5426 *GNU* | *'with BFD'*)
5427 lt_cv_prog_gnu_ld=yes
5430 lt_cv_prog_gnu_ld=no
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5436 with_gnu_ld=$lt_cv_prog_gnu_ld
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5448 if ${lt_cv_path_NM+:} false; then :
5449 $as_echo_n "(cached) " >&6
5451 if test -n "$NM"; then
5452 # Let the user override the test.
5455 lt_nm_to_check="${ac_tool_prefix}nm"
5456 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5457 lt_nm_to_check="$lt_nm_to_check nm"
5459 for lt_tmp_nm in $lt_nm_to_check; do
5460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5461 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5463 test -z "$ac_dir" && ac_dir=.
5464 tmp_nm="$ac_dir/$lt_tmp_nm"
5465 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5466 # Check to see if the nm accepts a BSD-compat flag.
5467 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5468 # nm: unknown option "B" ignored
5469 # Tru64's nm complains that /dev/null is an invalid object file
5470 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5471 */dev/null* | *'Invalid file or object type'*)
5472 lt_cv_path_NM="$tmp_nm -B"
5476 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5478 lt_cv_path_NM="$tmp_nm -p"
5482 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5483 continue # so that we can try to find one that supports BSD flags
5492 : ${lt_cv_path_NM=no}
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5496 $as_echo "$lt_cv_path_NM" >&6; }
5497 if test "$lt_cv_path_NM" != "no"; then
5500 # Didn't find any BSD compatible name lister, look for dumpbin.
5501 if test -n "$DUMPBIN"; then :
5502 # Let the user override the test.
5504 if test -n "$ac_tool_prefix"; then
5505 for ac_prog in dumpbin "link -dump"
5507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_DUMPBIN+:} false; then :
5512 $as_echo_n "(cached) " >&6
5514 if test -n "$DUMPBIN"; then
5515 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 DUMPBIN=$ac_cv_prog_DUMPBIN
5535 if test -n "$DUMPBIN"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5537 $as_echo "$DUMPBIN" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5544 test -n "$DUMPBIN" && break
5547 if test -z "$DUMPBIN"; then
5548 ac_ct_DUMPBIN=$DUMPBIN
5549 for ac_prog in dumpbin "link -dump"
5551 # Extract the first word of "$ac_prog", so it can be a program name with args.
5552 set dummy $ac_prog; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5556 $as_echo_n "(cached) " >&6
5558 if test -n "$ac_ct_DUMPBIN"; then
5559 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5579 if test -n "$ac_ct_DUMPBIN"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5581 $as_echo "$ac_ct_DUMPBIN" >&6; }
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5588 test -n "$ac_ct_DUMPBIN" && break
5591 if test "x$ac_ct_DUMPBIN" = x; then
5594 case $cross_compiling:$ac_tool_warned in
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598 ac_tool_warned=yes ;;
5600 DUMPBIN=$ac_ct_DUMPBIN
5604 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5606 DUMPBIN="$DUMPBIN -symbols"
5614 if test "$DUMPBIN" != ":"; then
5618 test -z "$NM" && NM=nm
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5626 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5627 if ${lt_cv_nm_interface+:} false; then :
5628 $as_echo_n "(cached) " >&6
5630 lt_cv_nm_interface="BSD nm"
5631 echo "int some_variable = 0;" > conftest.$ac_ext
5632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5633 (eval "$ac_compile" 2>conftest.err)
5634 cat conftest.err >&5
5635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5637 cat conftest.err >&5
5638 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5639 cat conftest.out >&5
5640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5641 lt_cv_nm_interface="MS dumpbin"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5646 $as_echo "$lt_cv_nm_interface" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5649 $as_echo_n "checking whether ln -s works... " >&6; }
5651 if test "$LN_S" = "ln -s"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653 $as_echo "yes" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5656 $as_echo "no, using $LN_S" >&6; }
5659 # find the maximum length of command line arguments
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5661 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5662 if ${lt_cv_sys_max_cmd_len+:} false; then :
5663 $as_echo_n "(cached) " >&6
5670 # On DJGPP, this test can blow up pretty badly due to problems in libc
5671 # (any single argument exceeding 2000 bytes causes a buffer overrun
5672 # during glob expansion). Even if it were fixed, the result of this
5673 # check would be larger than it should be.
5674 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5678 # Under GNU Hurd, this test is not required because there is
5679 # no limit to the length of command line arguments.
5680 # Libtool will interpret -1 as no limit whatsoever
5681 lt_cv_sys_max_cmd_len=-1;
5684 cygwin* | mingw* | cegcc*)
5685 # On Win9x/ME, this test blows up -- it succeeds, but takes
5686 # about 5 minutes as the teststring grows exponentially.
5687 # Worse, since 9x/ME are not pre-emptively multitasking,
5688 # you end up with a "frozen" computer, even though with patience
5689 # the test eventually succeeds (with a max line length of 256k).
5690 # Instead, let's just punt: use the minimum linelength reported by
5691 # all of the supported platforms: 8192 (on NT/2K/XP).
5692 lt_cv_sys_max_cmd_len=8192;
5696 # On MiNT this can take a long time and run out of memory.
5697 lt_cv_sys_max_cmd_len=8192;
5701 # On AmigaOS with pdksh, this test takes hours, literally.
5702 # So we just punt and use a minimum line length of 8192.
5703 lt_cv_sys_max_cmd_len=8192;
5706 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5707 # This has been around since 386BSD, at least. Likely further.
5708 if test -x /sbin/sysctl; then
5709 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5710 elif test -x /usr/sbin/sysctl; then
5711 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5713 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5715 # And add a safety zone
5716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5721 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5722 lt_cv_sys_max_cmd_len=196608
5726 # The test takes a long time on OS/2.
5727 lt_cv_sys_max_cmd_len=8192
5731 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5732 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5733 # nice to cause kernel panics so lets avoid the loop below.
5734 # First set a reasonable default.
5735 lt_cv_sys_max_cmd_len=16384
5737 if test -x /sbin/sysconfig; then
5738 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5739 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5744 lt_cv_sys_max_cmd_len=102400
5746 sysv5* | sco5v6* | sysv4.2uw2*)
5747 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5748 if test -n "$kargmax"; then
5749 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5751 lt_cv_sys_max_cmd_len=32768
5755 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5756 if test -n "$lt_cv_sys_max_cmd_len" && \
5757 test undefined != "$lt_cv_sys_max_cmd_len"; then
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5761 # Make teststring a little bigger before we do anything with it.
5762 # a 1K string should be a reasonable start.
5763 for i in 1 2 3 4 5 6 7 8 ; do
5764 teststring=$teststring$teststring
5766 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5767 # If test is not a shell built-in, we'll probably end up computing a
5768 # maximum length that is only half of the actual maximum length, but
5770 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5771 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5772 test $i != 17 # 1/2 MB should be enough
5775 teststring=$teststring$teststring
5777 # Only check the string length outside the loop.
5778 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5780 # Add a significant safety factor because C++ compilers can tack on
5781 # massive amounts of additional arguments before passing them to the
5782 # linker. It appears as though 1/2 is a usable value.
5783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5790 if test -n $lt_cv_sys_max_cmd_len ; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5792 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5795 $as_echo "none" >&6; }
5797 max_cmd_len=$lt_cv_sys_max_cmd_len
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5809 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5810 # Try some XSI features
5813 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5815 && eval 'test $(( 1 + 1 )) -eq 2 \
5816 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5819 $as_echo "$xsi_shell" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5823 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5825 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5827 && lt_shell_append=yes
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5829 $as_echo "$lt_shell_append" >&6; }
5832 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5842 # test EBCDIC or ASCII
5843 case `echo X|tr X '\101'` in
5844 A) # ASCII based system
5845 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5846 lt_SP2NL='tr \040 \012'
5847 lt_NL2SP='tr \015\012 \040\040'
5849 *) # EBCDIC based system
5850 lt_SP2NL='tr \100 \n'
5851 lt_NL2SP='tr \r\n \100\100'
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5864 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5865 if ${lt_cv_to_host_file_cmd+:} false; then :
5866 $as_echo_n "(cached) " >&6
5871 *-*-mingw* ) # actually msys
5872 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5875 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5877 * ) # otherwise, assume *nix
5878 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5884 *-*-mingw* ) # actually msys
5885 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5888 lt_cv_to_host_file_cmd=func_convert_file_noop
5890 * ) # otherwise, assume *nix
5891 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5895 * ) # unhandled hosts (and "normal" native builds)
5896 lt_cv_to_host_file_cmd=func_convert_file_noop
5902 to_host_file_cmd=$lt_cv_to_host_file_cmd
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5904 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5911 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5912 if ${lt_cv_to_tool_file_cmd+:} false; then :
5913 $as_echo_n "(cached) " >&6
5915 #assume ordinary cross tools, or native build.
5916 lt_cv_to_tool_file_cmd=func_convert_file_noop
5920 *-*-mingw* ) # actually msys
5921 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5929 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5931 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5938 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5939 if ${lt_cv_ld_reload_flag+:} false; then :
5940 $as_echo_n "(cached) " >&6
5942 lt_cv_ld_reload_flag='-r'
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5946 reload_flag=$lt_cv_ld_reload_flag
5947 case $reload_flag in
5949 *) reload_flag=" $reload_flag" ;;
5951 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5953 cygwin* | mingw* | pw32* | cegcc*)
5954 if test "$GCC" != yes; then
5959 if test "$GCC" = yes; then
5960 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5975 if test -n "$ac_tool_prefix"; then
5976 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5977 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if ${ac_cv_prog_OBJDUMP+:} false; then :
5981 $as_echo_n "(cached) " >&6
5983 if test -n "$OBJDUMP"; then
5984 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 OBJDUMP=$ac_cv_prog_OBJDUMP
6004 if test -n "$OBJDUMP"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6006 $as_echo "$OBJDUMP" >&6; }
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6014 if test -z "$ac_cv_prog_OBJDUMP"; then
6015 ac_ct_OBJDUMP=$OBJDUMP
6016 # Extract the first word of "objdump", so it can be a program name with args.
6017 set dummy objdump; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6021 $as_echo_n "(cached) " >&6
6023 if test -n "$ac_ct_OBJDUMP"; then
6024 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6044 if test -n "$ac_ct_OBJDUMP"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6046 $as_echo "$ac_ct_OBJDUMP" >&6; }
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6052 if test "x$ac_ct_OBJDUMP" = x; then
6055 case $cross_compiling:$ac_tool_warned in
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6059 ac_tool_warned=yes ;;
6061 OBJDUMP=$ac_ct_OBJDUMP
6064 OBJDUMP="$ac_cv_prog_OBJDUMP"
6067 test -z "$OBJDUMP" && OBJDUMP=objdump
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6075 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6076 if ${lt_cv_deplibs_check_method+:} false; then :
6077 $as_echo_n "(cached) " >&6
6079 lt_cv_file_magic_cmd='$MAGIC_CMD'
6080 lt_cv_file_magic_test_file=
6081 lt_cv_deplibs_check_method='unknown'
6082 # Need to set the preceding variable on all platforms that support
6083 # interlibrary dependencies.
6084 # 'none' -- dependencies not supported.
6085 # `unknown' -- same as none, but documents that we really don't know.
6086 # 'pass_all' -- all dependencies passed with no checks.
6087 # 'test_compile' -- check by making test program.
6088 # 'file_magic [[regex]]' -- check by looking for files in library path
6089 # which responds to the $file_magic_cmd with a given extended regex.
6090 # If you have `file' or equivalent on your system and you're not sure
6091 # whether `pass_all' will *always* work, you probably want this one.
6095 lt_cv_deplibs_check_method=pass_all
6099 lt_cv_deplibs_check_method=pass_all
6103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6104 lt_cv_file_magic_cmd='/usr/bin/file -L'
6105 lt_cv_file_magic_test_file=/shlib/libc.so
6109 # func_win32_libid is a shell function defined in ltmain.sh
6110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111 lt_cv_file_magic_cmd='func_win32_libid'
6115 # Base MSYS/MinGW do not provide the 'file' command needed by
6116 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6117 # unless we find 'file', for example because we are cross-compiling.
6118 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6119 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6121 lt_cv_file_magic_cmd='func_win32_libid'
6123 # Keep this pattern in sync with the one in func_win32_libid.
6124 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6125 lt_cv_file_magic_cmd='$OBJDUMP -f'
6130 # use the weaker test based on 'objdump'. See mingw*.
6131 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6132 lt_cv_file_magic_cmd='$OBJDUMP -f'
6135 darwin* | rhapsody*)
6136 lt_cv_deplibs_check_method=pass_all
6139 freebsd* | dragonfly*)
6140 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6143 # Not sure whether the presence of OpenBSD here was a mistake.
6144 # Let's accept both of them until this is cleared up.
6145 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6146 lt_cv_file_magic_cmd=/usr/bin/file
6147 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6151 lt_cv_deplibs_check_method=pass_all
6156 lt_cv_deplibs_check_method=pass_all
6159 hpux10.20* | hpux11*)
6160 lt_cv_file_magic_cmd=/usr/bin/file
6163 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6164 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6167 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]'
6168 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6171 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6172 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6178 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6182 irix5* | irix6* | nonstopux*)
6184 *-32|*"-32 ") libmagic=32-bit;;
6185 *-n32|*"-n32 ") libmagic=N32;;
6186 *-64|*"-64 ") libmagic=64-bit;;
6187 *) libmagic=never-match;;
6189 lt_cv_deplibs_check_method=pass_all
6192 # This must be glibc/ELF.
6193 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6194 lt_cv_deplibs_check_method=pass_all
6197 netbsd* | netbsdelf*-gnu)
6198 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6207 lt_cv_file_magic_cmd=/usr/bin/file
6208 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6212 lt_cv_deplibs_check_method=pass_all
6216 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6223 osf3* | osf4* | osf5*)
6224 lt_cv_deplibs_check_method=pass_all
6228 lt_cv_deplibs_check_method=pass_all
6232 lt_cv_deplibs_check_method=pass_all
6235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6236 lt_cv_deplibs_check_method=pass_all
6240 case $host_vendor in
6242 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]'
6243 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6246 lt_cv_deplibs_check_method=pass_all
6249 lt_cv_file_magic_cmd='/bin/file'
6250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6253 lt_cv_file_magic_cmd='/bin/file'
6254 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6255 lt_cv_file_magic_test_file=/lib/libc.so
6258 lt_cv_deplibs_check_method=pass_all
6261 lt_cv_deplibs_check_method=pass_all
6267 lt_cv_deplibs_check_method=pass_all
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6273 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6277 if test "$build" = "$host"; then
6280 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6283 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6289 file_magic_cmd=$lt_cv_file_magic_cmd
6290 deplibs_check_method=$lt_cv_deplibs_check_method
6291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_DLLTOOL+:} false; then :
6320 $as_echo_n "(cached) " >&6
6322 if test -n "$DLLTOOL"; then
6323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 DLLTOOL=$ac_cv_prog_DLLTOOL
6343 if test -n "$DLLTOOL"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6345 $as_echo "$DLLTOOL" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6353 if test -z "$ac_cv_prog_DLLTOOL"; then
6354 ac_ct_DLLTOOL=$DLLTOOL
6355 # Extract the first word of "dlltool", so it can be a program name with args.
6356 set dummy dlltool; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6360 $as_echo_n "(cached) " >&6
6362 if test -n "$ac_ct_DLLTOOL"; then
6363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383 if test -n "$ac_ct_DLLTOOL"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385 $as_echo "$ac_ct_DLLTOOL" >&6; }
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6391 if test "x$ac_ct_DLLTOOL" = x; then
6394 case $cross_compiling:$ac_tool_warned in
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6400 DLLTOOL=$ac_ct_DLLTOOL
6403 DLLTOOL="$ac_cv_prog_DLLTOOL"
6406 test -z "$DLLTOOL" && DLLTOOL=dlltool
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6415 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6416 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6417 $as_echo_n "(cached) " >&6
6419 lt_cv_sharedlib_from_linklib_cmd='unknown'
6422 cygwin* | mingw* | pw32* | cegcc*)
6423 # two different shell functions defined in ltmain.sh
6424 # decide which to use based on capabilities of $DLLTOOL
6425 case `$DLLTOOL --help 2>&1` in
6426 *--identify-strict*)
6427 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6435 # fallback: assume linklib IS sharedlib
6436 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6442 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6443 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6444 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6452 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_AR+:} false; then :
6460 $as_echo_n "(cached) " >&6
6462 if test -n "$AR"; then
6463 ac_cv_prog_AR="$AR" # Let the user override the test.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 if test -n "$AR"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6485 $as_echo "$AR" >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6492 test -n "$AR" && break
6495 if test -z "$AR"; then
6499 # Extract the first word of "$ac_prog", so it can be a program name with args.
6500 set dummy $ac_prog; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$ac_ct_AR"; then
6507 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_ac_ct_AR="$ac_prog"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6527 if test -n "$ac_ct_AR"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6529 $as_echo "$ac_ct_AR" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6536 test -n "$ac_ct_AR" && break
6539 if test "x$ac_ct_AR" = x; then
6542 case $cross_compiling:$ac_tool_warned in
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6566 $as_echo_n "checking for archiver @FILE support... " >&6; }
6567 if ${lt_cv_ar_at_file+:} false; then :
6568 $as_echo_n "(cached) " >&6
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 echo conftest.$ac_objext > conftest.lst
6584 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6586 (eval $lt_ar_try) 2>&5
6588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6589 test $ac_status = 0; }
6590 if test "$ac_status" -eq 0; then
6591 # Ensure the archiver fails upon bogus file names.
6592 rm -f conftest.$ac_objext libconftest.a
6593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6594 (eval $lt_ar_try) 2>&5
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }
6598 if test "$ac_status" -ne 0; then
6602 rm -f conftest.* libconftest.a
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6609 $as_echo "$lt_cv_ar_at_file" >&6; }
6611 if test "x$lt_cv_ar_at_file" = xno; then
6614 archiver_list_spec=$lt_cv_ar_at_file
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}strip; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_STRIP+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$STRIP"; then
6632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 STRIP=$ac_cv_prog_STRIP
6652 if test -n "$STRIP"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6654 $as_echo "$STRIP" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 if test -z "$ac_cv_prog_STRIP"; then
6664 # Extract the first word of "strip", so it can be a program name with args.
6665 set dummy strip; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6669 $as_echo_n "(cached) " >&6
6671 if test -n "$ac_ct_STRIP"; then
6672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_ac_ct_STRIP="strip"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6692 if test -n "$ac_ct_STRIP"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6694 $as_echo "$ac_ct_STRIP" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6700 if test "x$ac_ct_STRIP" = x; then
6703 case $cross_compiling:$ac_tool_warned in
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6712 STRIP="$ac_cv_prog_STRIP"
6715 test -z "$STRIP" && STRIP=:
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if ${ac_cv_prog_RANLIB+:} false; then :
6728 $as_echo_n "(cached) " >&6
6730 if test -n "$RANLIB"; then
6731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6753 $as_echo "$RANLIB" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762 ac_ct_RANLIB=$RANLIB
6763 # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6768 $as_echo_n "(cached) " >&6
6770 if test -n "$ac_ct_RANLIB"; then
6771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_ac_ct_RANLIB="ranlib"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6791 if test -n "$ac_ct_RANLIB"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6793 $as_echo "$ac_ct_RANLIB" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$ac_ct_RANLIB" = x; then
6802 case $cross_compiling:$ac_tool_warned in
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6808 RANLIB=$ac_ct_RANLIB
6811 RANLIB="$ac_cv_prog_RANLIB"
6814 test -z "$RANLIB" && RANLIB=:
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6826 if test -n "$RANLIB"; then
6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6840 lock_old_archive_extraction=yes ;;
6842 lock_old_archive_extraction=no ;;
6883 # If no C compiler was specified, use CC.
6886 # If no C compiler flags were specified, use CFLAGS.
6887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6889 # Allow CC to be a program name with arguments.
6893 # Check for command to grab the raw symbol name followed by C symbol from nm.
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6895 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6896 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6897 $as_echo_n "(cached) " >&6
6900 # These are sane defaults that work on at least a few old systems.
6901 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6903 # Character class describing NM global symbol codes.
6904 symcode='[BCDEGRST]'
6906 # Regexp to match symbols that can be accessed directly from C.
6907 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6909 # Define system-specific variables.
6914 cygwin* | mingw* | pw32* | cegcc*)
6915 symcode='[ABCDGISTW]'
6918 if test "$host_cpu" = ia64; then
6919 symcode='[ABCDEGRST]'
6923 symcode='[BCDEGRST]'
6926 symcode='[BCDEGQRST]'
6937 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6945 # If we're using GNU nm, then use its standard symbol codes.
6946 case `$NM -V 2>&1` in
6947 *GNU* | *'with BFD'*)
6948 symcode='[ABCDGIRSTW]' ;;
6951 # Transform an extracted symbol line into a proper C declaration.
6952 # Some systems (esp. on ia64) link data and code symbols differently,
6953 # so use this general approach.
6954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6956 # Transform an extracted symbol line into symbol name and symbol address
6957 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6958 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'"
6960 # Handle CRLF in mingw tool chain
6964 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6968 # Try without a prefix underscore, then with it.
6969 for ac_symprfx in "" "_"; do
6971 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6972 symxfrm="\\1 $ac_symprfx\\2 \\2"
6974 # Write the raw and C identifiers.
6975 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6976 # Fake it for dumpbin and say T for any non-static function
6977 # and D for any global variable.
6978 # Also find C++ and __fastcall symbols from MSVC++,
6979 # which start with @ or ?.
6980 lt_cv_sys_global_symbol_pipe="$AWK '"\
6981 " {last_section=section; section=\$ 3};"\
6982 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6983 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6984 " \$ 0!~/External *\|/{next};"\
6985 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6986 " {if(hide[section]) next};"\
6987 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6988 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6989 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6990 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6991 " ' prfx=^$ac_symprfx"
6993 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6995 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6997 # Check to see that the pipe works correctly.
7001 cat > conftest.$ac_ext <<_LT_EOF
7006 void nm_test_func(void);
7007 void nm_test_func(void){}
7011 int main(){nm_test_var='a';nm_test_func();return(0);}
7014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7015 (eval $ac_compile) 2>&5
7017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018 test $ac_status = 0; }; then
7019 # Now try to grab the symbols.
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7022 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; } && test -s "$nlist"; then
7026 # Try sorting and uniquifying the output.
7027 if sort "$nlist" | uniq > "$nlist"T; then
7028 mv -f "$nlist"T "$nlist"
7033 # Make sure that we snagged all the symbols we need.
7034 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7035 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7036 cat <<_LT_EOF > conftest.$ac_ext
7037 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7038 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7039 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7040 relocations are performed -- see ld's documentation on pseudo-relocs. */
7041 # define LT_DLSYM_CONST
7042 #elif defined(__osf__)
7043 /* This system does not cope well with relocations in const data. */
7044 # define LT_DLSYM_CONST
7046 # define LT_DLSYM_CONST const
7054 # Now generate the symbol file.
7055 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7057 cat <<_LT_EOF >> conftest.$ac_ext
7059 /* The mapping between symbol names and symbols. */
7060 LT_DLSYM_CONST struct {
7064 lt__PROGRAM__LTX_preloaded_symbols[] =
7066 { "@PROGRAM@", (void *) 0 },
7068 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7069 cat <<\_LT_EOF >> conftest.$ac_ext
7073 /* This works around a problem in FreeBSD linker */
7074 #ifdef FREEBSD_WORKAROUND
7075 static const void *lt_preloaded_setup() {
7076 return lt__PROGRAM__LTX_preloaded_symbols;
7084 # Now try linking the two files.
7085 mv conftest.$ac_objext conftstm.$ac_objext
7086 lt_globsym_save_LIBS=$LIBS
7087 lt_globsym_save_CFLAGS=$CFLAGS
7088 LIBS="conftstm.$ac_objext"
7089 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7091 (eval $ac_link) 2>&5
7093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7097 LIBS=$lt_globsym_save_LIBS
7098 CFLAGS=$lt_globsym_save_CFLAGS
7100 echo "cannot find nm_test_func in $nlist" >&5
7103 echo "cannot find nm_test_var in $nlist" >&5
7106 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7109 echo "$progname: failed program was:" >&5
7110 cat conftest.$ac_ext >&5
7112 rm -rf conftest* conftst*
7114 # Do not use the global_symbol_pipe unless it works.
7115 if test "$pipe_works" = yes; then
7118 lt_cv_sys_global_symbol_pipe=
7124 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7125 lt_cv_sys_global_symbol_to_cdecl=
7127 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7129 $as_echo "failed" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7132 $as_echo "ok" >&6; }
7135 # Response file support.
7136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7137 nm_file_list_spec='@'
7138 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7139 nm_file_list_spec='@'
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7169 $as_echo_n "checking for sysroot... " >&6; }
7171 # Check whether --with-sysroot was given.
7172 if test "${with_sysroot+set}" = set; then :
7173 withval=$with_sysroot;
7180 case ${with_sysroot} in #(
7182 if test "$GCC" = yes; then
7183 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7187 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7193 $as_echo "${with_sysroot}" >&6; }
7194 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7199 $as_echo "${lt_sysroot:-no}" >&6; }
7205 # Check whether --enable-libtool-lock was given.
7206 if test "${enable_libtool_lock+set}" = set; then :
7207 enableval=$enable_libtool_lock;
7210 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7212 # Some flags need to be propagated to the compiler or linker for good
7216 # Find out which ABI we are using.
7217 echo 'int i;' > conftest.$ac_ext
7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7219 (eval $ac_compile) 2>&5
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; }; then
7223 case `/usr/bin/file conftest.$ac_objext` in
7235 # Find out which ABI we are using.
7236 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238 (eval $ac_compile) 2>&5
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 if test "$lt_cv_prog_gnu_ld" = yes; then
7243 case `/usr/bin/file conftest.$ac_objext` in
7245 LD="${LD-ld} -melf32bsmip"
7248 LD="${LD-ld} -melf32bmipn32"
7251 LD="${LD-ld} -melf64bmip"
7255 case `/usr/bin/file conftest.$ac_objext` in
7271 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7272 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7273 # Find out which ABI we are using.
7274 echo 'int i;' > conftest.$ac_ext
7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7276 (eval $ac_compile) 2>&5
7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279 test $ac_status = 0; }; then
7280 case `/usr/bin/file conftest.o` in
7283 x86_64-*kfreebsd*-gnu)
7284 LD="${LD-ld} -m elf_i386_fbsd"
7287 case `/usr/bin/file conftest.o` in
7289 LD="${LD-ld} -m elf32_x86_64"
7292 LD="${LD-ld} -m elf_i386"
7297 LD="${LD-ld} -m elf32lppclinux"
7300 LD="${LD-ld} -m elf32ppclinux"
7303 LD="${LD-ld} -m elf_s390"
7306 LD="${LD-ld} -m elf32_sparc"
7312 x86_64-*kfreebsd*-gnu)
7313 LD="${LD-ld} -m elf_x86_64_fbsd"
7316 LD="${LD-ld} -m elf_x86_64"
7319 LD="${LD-ld} -m elf64lppc"
7322 LD="${LD-ld} -m elf64ppc"
7324 s390*-*linux*|s390*-*tpf*)
7325 LD="${LD-ld} -m elf64_s390"
7328 LD="${LD-ld} -m elf64_sparc"
7338 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7339 SAVE_CFLAGS="$CFLAGS"
7340 CFLAGS="$CFLAGS -belf"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7342 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7343 if ${lt_cv_cc_needs_belf+:} false; then :
7344 $as_echo_n "(cached) " >&6
7347 ac_cpp='$CPP $CPPFLAGS'
7348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7363 if ac_fn_c_try_link "$LINENO"; then :
7364 lt_cv_cc_needs_belf=yes
7366 lt_cv_cc_needs_belf=no
7368 rm -f core conftest.err conftest.$ac_objext \
7369 conftest$ac_exeext conftest.$ac_ext
7371 ac_cpp='$CPP $CPPFLAGS'
7372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7378 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7379 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7380 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7381 CFLAGS="$SAVE_CFLAGS"
7385 # Find out which ABI we are using.
7386 echo 'int i;' > conftest.$ac_ext
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388 (eval $ac_compile) 2>&5
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; then
7392 case `/usr/bin/file conftest.o` in
7394 case $lt_cv_prog_gnu_ld in
7398 LD="${LD-ld} -m elf_x86_64"
7401 LD="${LD-ld} -m elf64_sparc"
7404 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7405 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7410 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7422 need_locks="$enable_libtool_lock"
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7426 set dummy ${ac_tool_prefix}mt; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7430 $as_echo_n "(cached) " >&6
7432 if test -n "$MANIFEST_TOOL"; then
7433 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7453 if test -n "$MANIFEST_TOOL"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7455 $as_echo "$MANIFEST_TOOL" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7463 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7464 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7465 # Extract the first word of "mt", so it can be a program name with args.
7466 set dummy mt; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7470 $as_echo_n "(cached) " >&6
7472 if test -n "$ac_ct_MANIFEST_TOOL"; then
7473 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7493 if test -n "$ac_ct_MANIFEST_TOOL"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7495 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7501 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7504 case $cross_compiling:$ac_tool_warned in
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7510 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7513 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7516 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7518 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7519 if ${lt_cv_path_mainfest_tool+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 lt_cv_path_mainfest_tool=no
7523 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7524 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7525 cat conftest.err >&5
7526 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7527 lt_cv_path_mainfest_tool=yes
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7532 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7533 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7543 rhapsody* | darwin*)
7544 if test -n "$ac_tool_prefix"; then
7545 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 if test -n "$DSYMUTIL"; then
7553 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7573 if test -n "$DSYMUTIL"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7575 $as_echo "$DSYMUTIL" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7583 if test -z "$ac_cv_prog_DSYMUTIL"; then
7584 ac_ct_DSYMUTIL=$DSYMUTIL
7585 # Extract the first word of "dsymutil", so it can be a program name with args.
7586 set dummy dsymutil; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -n "$ac_ct_DSYMUTIL"; then
7593 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7613 if test -n "$ac_ct_DSYMUTIL"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7615 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7621 if test "x$ac_ct_DSYMUTIL" = x; then
7624 case $cross_compiling:$ac_tool_warned in
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7630 DSYMUTIL=$ac_ct_DSYMUTIL
7633 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7636 if test -n "$ac_tool_prefix"; then
7637 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_NMEDIT+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -n "$NMEDIT"; then
7645 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 NMEDIT=$ac_cv_prog_NMEDIT
7665 if test -n "$NMEDIT"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7667 $as_echo "$NMEDIT" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7675 if test -z "$ac_cv_prog_NMEDIT"; then
7676 ac_ct_NMEDIT=$NMEDIT
7677 # Extract the first word of "nmedit", so it can be a program name with args.
7678 set dummy nmedit; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 if test -n "$ac_ct_NMEDIT"; then
7685 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7705 if test -n "$ac_ct_NMEDIT"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7707 $as_echo "$ac_ct_NMEDIT" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7713 if test "x$ac_ct_NMEDIT" = x; then
7716 case $cross_compiling:$ac_tool_warned in
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7722 NMEDIT=$ac_ct_NMEDIT
7725 NMEDIT="$ac_cv_prog_NMEDIT"
7728 if test -n "$ac_tool_prefix"; then
7729 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7730 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if ${ac_cv_prog_LIPO+:} false; then :
7734 $as_echo_n "(cached) " >&6
7736 if test -n "$LIPO"; then
7737 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 LIPO=$ac_cv_prog_LIPO
7757 if test -n "$LIPO"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7759 $as_echo "$LIPO" >&6; }
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7767 if test -z "$ac_cv_prog_LIPO"; then
7769 # Extract the first word of "lipo", so it can be a program name with args.
7770 set dummy lipo; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 if test -n "$ac_ct_LIPO"; then
7777 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_ac_ct_LIPO="lipo"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7797 if test -n "$ac_ct_LIPO"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7799 $as_echo "$ac_ct_LIPO" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7805 if test "x$ac_ct_LIPO" = x; then
7808 case $cross_compiling:$ac_tool_warned in
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7812 ac_tool_warned=yes ;;
7817 LIPO="$ac_cv_prog_LIPO"
7820 if test -n "$ac_tool_prefix"; then
7821 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7822 set dummy ${ac_tool_prefix}otool; ac_word=$2
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 $as_echo_n "checking for $ac_word... " >&6; }
7825 if ${ac_cv_prog_OTOOL+:} false; then :
7826 $as_echo_n "(cached) " >&6
7828 if test -n "$OTOOL"; then
7829 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 test -z "$as_dir" && as_dir=.
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7838 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 OTOOL=$ac_cv_prog_OTOOL
7849 if test -n "$OTOOL"; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7851 $as_echo "$OTOOL" >&6; }
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7859 if test -z "$ac_cv_prog_OTOOL"; then
7861 # Extract the first word of "otool", so it can be a program name with args.
7862 set dummy otool; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7866 $as_echo_n "(cached) " >&6
7868 if test -n "$ac_ct_OTOOL"; then
7869 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_ac_ct_OTOOL="otool"
7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7889 if test -n "$ac_ct_OTOOL"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7891 $as_echo "$ac_ct_OTOOL" >&6; }
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7897 if test "x$ac_ct_OTOOL" = x; then
7900 case $cross_compiling:$ac_tool_warned in
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7904 ac_tool_warned=yes ;;
7909 OTOOL="$ac_cv_prog_OTOOL"
7912 if test -n "$ac_tool_prefix"; then
7913 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7914 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 $as_echo_n "checking for $ac_word... " >&6; }
7917 if ${ac_cv_prog_OTOOL64+:} false; then :
7918 $as_echo_n "(cached) " >&6
7920 if test -n "$OTOOL64"; then
7921 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 test -z "$as_dir" && as_dir=.
7928 for ac_exec_ext in '' $ac_executable_extensions; do
7929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 OTOOL64=$ac_cv_prog_OTOOL64
7941 if test -n "$OTOOL64"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7943 $as_echo "$OTOOL64" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7951 if test -z "$ac_cv_prog_OTOOL64"; then
7952 ac_ct_OTOOL64=$OTOOL64
7953 # Extract the first word of "otool64", so it can be a program name with args.
7954 set dummy otool64; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7958 $as_echo_n "(cached) " >&6
7960 if test -n "$ac_ct_OTOOL64"; then
7961 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7970 ac_cv_prog_ac_ct_OTOOL64="otool64"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7981 if test -n "$ac_ct_OTOOL64"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7983 $as_echo "$ac_ct_OTOOL64" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7989 if test "x$ac_ct_OTOOL64" = x; then
7992 case $cross_compiling:$ac_tool_warned in
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7996 ac_tool_warned=yes ;;
7998 OTOOL64=$ac_ct_OTOOL64
8001 OTOOL64="$ac_cv_prog_OTOOL64"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8031 $as_echo_n "checking for -single_module linker flag... " >&6; }
8032 if ${lt_cv_apple_cc_single_mod+:} false; then :
8033 $as_echo_n "(cached) " >&6
8035 lt_cv_apple_cc_single_mod=no
8036 if test -z "${LT_MULTI_MODULE}"; then
8037 # By default we will add the -single_module flag. You can override
8038 # by either setting the environment variable LT_MULTI_MODULE
8039 # non-empty at configure time, or by adding -multi_module to the
8041 rm -rf libconftest.dylib*
8042 echo "int foo(void){return 1;}" > conftest.c
8043 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8044 -dynamiclib -Wl,-single_module conftest.c" >&5
8045 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8046 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8048 # If there is a non-empty error log, and "single_module"
8049 # appears in it, assume the flag caused a linker warning
8050 if test -s conftest.err && $GREP single_module conftest.err; then
8051 cat conftest.err >&5
8052 # Otherwise, if the output was created with a 0 exit code from
8053 # the compiler, it worked.
8054 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8055 lt_cv_apple_cc_single_mod=yes
8057 cat conftest.err >&5
8059 rm -rf libconftest.dylib*
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8064 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8067 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8068 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8069 $as_echo_n "(cached) " >&6
8071 lt_cv_ld_exported_symbols_list=no
8072 save_LDFLAGS=$LDFLAGS
8073 echo "_main" > conftest.sym
8074 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8086 if ac_fn_c_try_link "$LINENO"; then :
8087 lt_cv_ld_exported_symbols_list=yes
8089 lt_cv_ld_exported_symbols_list=no
8091 rm -f core conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
8093 LDFLAGS="$save_LDFLAGS"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8097 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8100 $as_echo_n "checking for -force_load linker flag... " >&6; }
8101 if ${lt_cv_ld_force_load+:} false; then :
8102 $as_echo_n "(cached) " >&6
8104 lt_cv_ld_force_load=no
8105 cat > conftest.c << _LT_EOF
8106 int forced_loaded() { return 2;}
8108 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8109 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8110 echo "$AR cru libconftest.a conftest.o" >&5
8111 $AR cru libconftest.a conftest.o 2>&5
8112 echo "$RANLIB libconftest.a" >&5
8113 $RANLIB libconftest.a 2>&5
8114 cat > conftest.c << _LT_EOF
8115 int main() { return 0;}
8117 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8118 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8120 if test -s conftest.err && $GREP force_load conftest.err; then
8121 cat conftest.err >&5
8122 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8123 lt_cv_ld_force_load=yes
8125 cat conftest.err >&5
8127 rm -f conftest.err libconftest.a conftest conftest.c
8128 rm -rf conftest.dSYM
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8132 $as_echo "$lt_cv_ld_force_load" >&6; }
8134 rhapsody* | darwin1.[012])
8135 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8137 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8138 darwin*) # darwin 5.x on
8139 # if running on 10.5 or later, the deployment target defaults
8140 # to the OS version, if on x86, and 10.4, the deployment
8141 # target defaults to 10.4. Don't you love it?
8142 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8143 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8144 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8146 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8148 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8152 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8153 _lt_dar_single_mod='$single_module'
8155 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8156 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8158 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8160 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8161 _lt_dsymutil='~$DSYMUTIL $lib || :'
8169 ac_cpp='$CPP $CPPFLAGS'
8170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8174 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8175 # On Suns, sometimes $CPP names a directory.
8176 if test -n "$CPP" && test -d "$CPP"; then
8179 if test -z "$CPP"; then
8180 if ${ac_cv_prog_CPP+:} false; then :
8181 $as_echo_n "(cached) " >&6
8183 # Double quotes because CPP needs to be expanded
8184 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8187 for ac_c_preproc_warn_flag in '' yes
8189 # Use a header file that comes with gcc, so configuring glibc
8190 # with a fresh cross-compiler works.
8191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8192 # <limits.h> exists even on freestanding compilers.
8193 # On the NeXT, cc -E runs the code through the compiler's parser,
8194 # not just through cpp. "Syntax error" is here to catch this case.
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8198 # include <limits.h>
8200 # include <assert.h>
8204 if ac_fn_c_try_cpp "$LINENO"; then :
8207 # Broken: fails on valid input.
8210 rm -f conftest.err conftest.i conftest.$ac_ext
8212 # OK, works on sane cases. Now check whether nonexistent headers
8213 # can be detected and how.
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <ac_nonexistent.h>
8218 if ac_fn_c_try_cpp "$LINENO"; then :
8219 # Broken: success on invalid input.
8222 # Passes both tests.
8226 rm -f conftest.err conftest.i conftest.$ac_ext
8229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8230 rm -f conftest.i conftest.err conftest.$ac_ext
8231 if $ac_preproc_ok; then :
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8244 $as_echo "$CPP" >&6; }
8246 for ac_c_preproc_warn_flag in '' yes
8248 # Use a header file that comes with gcc, so configuring glibc
8249 # with a fresh cross-compiler works.
8250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8251 # <limits.h> exists even on freestanding compilers.
8252 # On the NeXT, cc -E runs the code through the compiler's parser,
8253 # not just through cpp. "Syntax error" is here to catch this case.
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8257 # include <limits.h>
8259 # include <assert.h>
8263 if ac_fn_c_try_cpp "$LINENO"; then :
8266 # Broken: fails on valid input.
8269 rm -f conftest.err conftest.i conftest.$ac_ext
8271 # OK, works on sane cases. Now check whether nonexistent headers
8272 # can be detected and how.
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 #include <ac_nonexistent.h>
8277 if ac_fn_c_try_cpp "$LINENO"; then :
8278 # Broken: success on invalid input.
8281 # Passes both tests.
8285 rm -f conftest.err conftest.i conftest.$ac_ext
8288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8289 rm -f conftest.i conftest.err conftest.$ac_ext
8290 if $ac_preproc_ok; then :
8293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8295 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8296 See \`config.log' for more details" "$LINENO" 5; }
8300 ac_cpp='$CPP $CPPFLAGS'
8301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8307 $as_echo_n "checking for ANSI C header files... " >&6; }
8308 if ${ac_cv_header_stdc+:} false; then :
8309 $as_echo_n "(cached) " >&6
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8326 if ac_fn_c_try_compile "$LINENO"; then :
8327 ac_cv_header_stdc=yes
8329 ac_cv_header_stdc=no
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 if test $ac_cv_header_stdc = yes; then
8334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8341 $EGREP "memchr" >/dev/null 2>&1; then :
8344 ac_cv_header_stdc=no
8350 if test $ac_cv_header_stdc = yes; then
8351 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8358 $EGREP "free" >/dev/null 2>&1; then :
8361 ac_cv_header_stdc=no
8367 if test $ac_cv_header_stdc = yes; then
8368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8369 if test "$cross_compiling" = yes; then :
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8376 #if ((' ' & 0x0FF) == 0x020)
8377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8380 # define ISLOWER(c) \
8381 (('a' <= (c) && (c) <= 'i') \
8382 || ('j' <= (c) && (c) <= 'r') \
8383 || ('s' <= (c) && (c) <= 'z'))
8384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8392 for (i = 0; i < 256; i++)
8393 if (XOR (islower (i), ISLOWER (i))
8394 || toupper (i) != TOUPPER (i))
8399 if ac_fn_c_try_run "$LINENO"; then :
8402 ac_cv_header_stdc=no
8404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8405 conftest.$ac_objext conftest.beam conftest.$ac_ext
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8411 $as_echo "$ac_cv_header_stdc" >&6; }
8412 if test $ac_cv_header_stdc = yes; then
8414 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8418 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8419 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8420 inttypes.h stdint.h unistd.h
8422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8423 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8426 cat >>confdefs.h <<_ACEOF
8427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8435 for ac_header in dlfcn.h
8437 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8439 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8440 cat >>confdefs.h <<_ACEOF
8441 #define HAVE_DLFCN_H 1
8451 func_stripname_cnf ()
8454 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8455 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8457 } # func_stripname_cnf
8464 enable_win32_dll=yes
8467 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8468 if test -n "$ac_tool_prefix"; then
8469 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8470 set dummy ${ac_tool_prefix}as; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_AS+:} false; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -n "$AS"; then
8477 ac_cv_prog_AS="$AS" # Let the user override the test.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486 ac_cv_prog_AS="${ac_tool_prefix}as"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 if test -n "$AS"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8499 $as_echo "$AS" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 if test -z "$ac_cv_prog_AS"; then
8509 # Extract the first word of "as", so it can be a program name with args.
8510 set dummy as; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8514 $as_echo_n "(cached) " >&6
8516 if test -n "$ac_ct_AS"; then
8517 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526 ac_cv_prog_ac_ct_AS="as"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8537 if test -n "$ac_ct_AS"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8539 $as_echo "$ac_ct_AS" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8545 if test "x$ac_ct_AS" = x; then
8548 case $cross_compiling:$ac_tool_warned in
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8560 if test -n "$ac_tool_prefix"; then
8561 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_DLLTOOL+:} false; then :
8566 $as_echo_n "(cached) " >&6
8568 if test -n "$DLLTOOL"; then
8569 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 DLLTOOL=$ac_cv_prog_DLLTOOL
8589 if test -n "$DLLTOOL"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8591 $as_echo "$DLLTOOL" >&6; }
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8599 if test -z "$ac_cv_prog_DLLTOOL"; then
8600 ac_ct_DLLTOOL=$DLLTOOL
8601 # Extract the first word of "dlltool", so it can be a program name with args.
8602 set dummy dlltool; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8606 $as_echo_n "(cached) " >&6
8608 if test -n "$ac_ct_DLLTOOL"; then
8609 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8629 if test -n "$ac_ct_DLLTOOL"; then
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8631 $as_echo "$ac_ct_DLLTOOL" >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8637 if test "x$ac_ct_DLLTOOL" = x; then
8640 case $cross_compiling:$ac_tool_warned in
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8646 DLLTOOL=$ac_ct_DLLTOOL
8649 DLLTOOL="$ac_cv_prog_DLLTOOL"
8652 if test -n "$ac_tool_prefix"; then
8653 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8654 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if ${ac_cv_prog_OBJDUMP+:} false; then :
8658 $as_echo_n "(cached) " >&6
8660 if test -n "$OBJDUMP"; then
8661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8670 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 OBJDUMP=$ac_cv_prog_OBJDUMP
8681 if test -n "$OBJDUMP"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8683 $as_echo "$OBJDUMP" >&6; }
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8691 if test -z "$ac_cv_prog_OBJDUMP"; then
8692 ac_ct_OBJDUMP=$OBJDUMP
8693 # Extract the first word of "objdump", so it can be a program name with args.
8694 set dummy objdump; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8698 $as_echo_n "(cached) " >&6
8700 if test -n "$ac_ct_OBJDUMP"; then
8701 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8710 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8721 if test -n "$ac_ct_OBJDUMP"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8723 $as_echo "$ac_ct_OBJDUMP" >&6; }
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8729 if test "x$ac_ct_OBJDUMP" = x; then
8732 case $cross_compiling:$ac_tool_warned in
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8736 ac_tool_warned=yes ;;
8738 OBJDUMP=$ac_ct_OBJDUMP
8741 OBJDUMP="$ac_cv_prog_OBJDUMP"
8747 test -z "$AS" && AS=as
8753 test -z "$DLLTOOL" && DLLTOOL=dlltool
8759 test -z "$OBJDUMP" && OBJDUMP=objdump
8771 # Check whether --enable-shared was given.
8772 if test "${enable_shared+set}" = set; then :
8773 enableval=$enable_shared; p=${PACKAGE-default}
8775 yes) enable_shared=yes ;;
8776 no) enable_shared=no ;;
8779 # Look at the argument we got. We use all the common list separators.
8780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8781 for pkg in $enableval; do
8783 if test "X$pkg" = "X$p"; then
8802 # Check whether --enable-static was given.
8803 if test "${enable_static+set}" = set; then :
8804 enableval=$enable_static; p=${PACKAGE-default}
8806 yes) enable_static=yes ;;
8807 no) enable_static=no ;;
8810 # Look at the argument we got. We use all the common list separators.
8811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8812 for pkg in $enableval; do
8814 if test "X$pkg" = "X$p"; then
8834 # Check whether --with-pic was given.
8835 if test "${with_pic+set}" = set; then :
8836 withval=$with_pic; lt_p=${PACKAGE-default}
8838 yes|no) pic_mode=$withval ;;
8841 # Look at the argument we got. We use all the common list separators.
8842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8843 for lt_pkg in $withval; do
8845 if test "X$lt_pkg" = "X$lt_p"; then
8857 test -z "$pic_mode" && pic_mode=default
8865 # Check whether --enable-fast-install was given.
8866 if test "${enable_fast_install+set}" = set; then :
8867 enableval=$enable_fast_install; p=${PACKAGE-default}
8869 yes) enable_fast_install=yes ;;
8870 no) enable_fast_install=no ;;
8872 enable_fast_install=no
8873 # Look at the argument we got. We use all the common list separators.
8874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8875 for pkg in $enableval; do
8877 if test "X$pkg" = "X$p"; then
8878 enable_fast_install=yes
8885 enable_fast_install=yes
8898 # This can be used to rebuild libtool when needed
8899 LIBTOOL_DEPS="$ltmain"
8901 # Always use our own libtool.
8902 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8933 test -z "$LN_S" && LN_S="ln -s"
8948 if test -n "${ZSH_VERSION+set}" ; then
8949 setopt NO_GLOB_SUBST
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8953 $as_echo_n "checking for objdir... " >&6; }
8954 if ${lt_cv_objdir+:} false; then :
8955 $as_echo_n "(cached) " >&6
8957 rm -f .libs 2>/dev/null
8958 mkdir .libs 2>/dev/null
8959 if test -d .libs; then
8962 # MS-DOS does not allow filenames that begin with a dot.
8965 rmdir .libs 2>/dev/null
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8968 $as_echo "$lt_cv_objdir" >&6; }
8969 objdir=$lt_cv_objdir
8975 cat >>confdefs.h <<_ACEOF
8976 #define LT_OBJDIR "$lt_cv_objdir/"
8984 # AIX sometimes has problems with the GCC collect2 program. For some
8985 # reason, if we set the COLLECT_NAMES environment variable, the problems
8986 # vanish in a puff of smoke.
8987 if test "X${COLLECT_NAMES+set}" != Xset; then
8989 export COLLECT_NAMES
8996 can_build_shared=yes
8998 # All known linkers require a `.a' archive for static linking (except MSVC,
8999 # which needs '.lib').
9002 with_gnu_ld="$lt_cv_prog_gnu_ld"
9005 old_CFLAGS="$CFLAGS"
9007 # Set sane defaults for various variables
9008 test -z "$CC" && CC=cc
9009 test -z "$LTCC" && LTCC=$CC
9010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9011 test -z "$LD" && LD=ld
9012 test -z "$ac_objext" && ac_objext=o
9014 for cc_temp in $compiler""; do
9016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9022 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9025 # Only perform the check for file, if the check method requires it
9026 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9027 case $deplibs_check_method in
9029 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9031 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9032 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9033 $as_echo_n "(cached) " >&6
9037 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9040 lt_save_MAGIC_CMD="$MAGIC_CMD"
9041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9043 for ac_dir in $ac_dummy; do
9045 test -z "$ac_dir" && ac_dir=.
9046 if test -f $ac_dir/${ac_tool_prefix}file; then
9047 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9048 if test -n "$file_magic_test_file"; then
9049 case $deplibs_check_method in
9051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9054 $EGREP "$file_magic_regex" > /dev/null; then
9059 *** Warning: the command libtool uses to detect shared libraries,
9060 *** $file_magic_cmd, produces output that libtool cannot recognize.
9061 *** The result is that libtool may fail to recognize shared libraries
9062 *** as such. This will affect the creation of libtool libraries that
9063 *** depend on shared libraries, but programs linked with such libtool
9064 *** libraries will work regardless of this problem. Nevertheless, you
9065 *** may want to report the problem to your system manager and/or to
9066 *** bug-libtool@gnu.org
9076 MAGIC_CMD="$lt_save_MAGIC_CMD"
9081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9082 if test -n "$MAGIC_CMD"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9084 $as_echo "$MAGIC_CMD" >&6; }
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9094 if test -z "$lt_cv_path_MAGIC_CMD"; then
9095 if test -n "$ac_tool_prefix"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9097 $as_echo_n "checking for file... " >&6; }
9098 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9099 $as_echo_n "(cached) " >&6
9103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9106 lt_save_MAGIC_CMD="$MAGIC_CMD"
9107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9108 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9109 for ac_dir in $ac_dummy; do
9111 test -z "$ac_dir" && ac_dir=.
9112 if test -f $ac_dir/file; then
9113 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9114 if test -n "$file_magic_test_file"; then
9115 case $deplibs_check_method in
9117 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9120 $EGREP "$file_magic_regex" > /dev/null; then
9125 *** Warning: the command libtool uses to detect shared libraries,
9126 *** $file_magic_cmd, produces output that libtool cannot recognize.
9127 *** The result is that libtool may fail to recognize shared libraries
9128 *** as such. This will affect the creation of libtool libraries that
9129 *** depend on shared libraries, but programs linked with such libtool
9130 *** libraries will work regardless of this problem. Nevertheless, you
9131 *** may want to report the problem to your system manager and/or to
9132 *** bug-libtool@gnu.org
9142 MAGIC_CMD="$lt_save_MAGIC_CMD"
9147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9148 if test -n "$MAGIC_CMD"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9150 $as_echo "$MAGIC_CMD" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9166 # Use C for the default configuration in the libtool script
9170 ac_cpp='$CPP $CPPFLAGS'
9171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9176 # Source file extension for C test sources.
9179 # Object file extension for compiled C test sources.
9183 # Code to be used in simple compile tests
9184 lt_simple_compile_test_code="int some_variable = 0;"
9186 # Code to be used in simple link tests
9187 lt_simple_link_test_code='int main(){return(0);}'
9195 # If no C compiler was specified, use CC.
9198 # If no C compiler flags were specified, use CFLAGS.
9199 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9201 # Allow CC to be a program name with arguments.
9204 # Save the default compiler, since it gets overwritten when the other
9205 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9206 compiler_DEFAULT=$CC
9208 # save warnings/boilerplate of simple test code
9209 ac_outfile=conftest.$ac_objext
9210 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9211 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9212 _lt_compiler_boilerplate=`cat conftest.err`
9215 ac_outfile=conftest.$ac_objext
9216 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9217 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9218 _lt_linker_boilerplate=`cat conftest.err`
9223 ## There is no encapsulation within the following macros, do not change
9224 ## the running order or otherwise move them around unless you know exactly
9225 ## what you are doing...
9226 if test -n "$compiler"; then
9228 lt_prog_compiler_no_builtin_flag=
9230 if test "$GCC" = yes; then
9231 case $cc_basename in
9233 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9235 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9239 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9240 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9241 $as_echo_n "(cached) " >&6
9243 lt_cv_prog_compiler_rtti_exceptions=no
9244 ac_outfile=conftest.$ac_objext
9245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9246 lt_compiler_flag="-fno-rtti -fno-exceptions"
9247 # Insert the option either (1) after the last *FLAGS variable, or
9248 # (2) before a word containing "conftest.", or (3) at the end.
9249 # Note that $ac_compile itself does not contain backslashes and begins
9250 # with a dollar sign (not a hyphen), so the echo should work correctly.
9251 # The option is referenced via a variable to avoid confusing sed.
9252 lt_compile=`echo "$ac_compile" | $SED \
9253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9255 -e 's:$: $lt_compiler_flag:'`
9256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9257 (eval "$lt_compile" 2>conftest.err)
9259 cat conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 if (exit $ac_status) && test -s "$ac_outfile"; then
9262 # The compiler can only warn and ignore the option if not recognized
9263 # So say no if there are warnings other than the usual output.
9264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9267 lt_cv_prog_compiler_rtti_exceptions=yes
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9274 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9276 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9277 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9289 lt_prog_compiler_wl=
9290 lt_prog_compiler_pic=
9291 lt_prog_compiler_static=
9294 if test "$GCC" = yes; then
9295 lt_prog_compiler_wl='-Wl,'
9296 lt_prog_compiler_static='-static'
9300 # All AIX code is PIC.
9301 if test "$host_cpu" = ia64; then
9302 # AIX 5 now supports IA64 processor
9303 lt_prog_compiler_static='-Bstatic'
9310 # see comment about AmigaOS4 .so support
9311 lt_prog_compiler_pic='-fPIC'
9314 # FIXME: we need at least 68020 code to build shared libraries, but
9315 # adding the `-m68020' flag to GCC prevents building anything better,
9317 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9322 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9323 # PIC is the default for these OSes.
9326 mingw* | cygwin* | pw32* | os2* | cegcc*)
9327 # This hack is so that the source file can tell whether it is being
9328 # built for inclusion in a dll (and should export symbols for example).
9329 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9330 # (--disable-auto-import) libraries
9331 lt_prog_compiler_pic='-DDLL_EXPORT'
9334 darwin* | rhapsody*)
9335 # PIC is the default on this platform
9336 # Common symbols not allowed in MH_DYLIB files
9337 lt_prog_compiler_pic='-fno-common'
9341 # PIC is the default for Haiku.
9342 # The "-static" flag exists, but is broken.
9343 lt_prog_compiler_static=
9347 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9348 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9349 # sets the default TLS model and affects inlining.
9355 lt_prog_compiler_pic='-fPIC'
9361 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9362 # Instead, we relocate shared libraries at runtime.
9366 # Just because we use GCC doesn't mean we suddenly get shared libraries
9367 # on systems that don't support them.
9368 lt_prog_compiler_can_build_shared=no
9373 # QNX uses GNU C++, but need to define -shared option too, otherwise
9375 lt_prog_compiler_pic='-fPIC -shared'
9379 if test -d /usr/nec; then
9380 lt_prog_compiler_pic=-Kconform_pic
9385 lt_prog_compiler_pic='-fPIC'
9389 case $cc_basename in
9390 nvcc*) # Cuda Compiler Driver 2.2
9391 lt_prog_compiler_wl='-Xlinker '
9392 if test -n "$lt_prog_compiler_pic"; then
9393 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9398 # PORTME Check for flag to pass linker flags through the system compiler.
9401 lt_prog_compiler_wl='-Wl,'
9402 if test "$host_cpu" = ia64; then
9403 # AIX 5 now supports IA64 processor
9404 lt_prog_compiler_static='-Bstatic'
9406 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9410 mingw* | cygwin* | pw32* | os2* | cegcc*)
9411 # This hack is so that the source file can tell whether it is being
9412 # built for inclusion in a dll (and should export symbols for example).
9413 lt_prog_compiler_pic='-DDLL_EXPORT'
9416 hpux9* | hpux10* | hpux11*)
9417 lt_prog_compiler_wl='-Wl,'
9418 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9425 lt_prog_compiler_pic='+Z'
9428 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9429 lt_prog_compiler_static='${wl}-a ${wl}archive'
9432 irix5* | irix6* | nonstopux*)
9433 lt_prog_compiler_wl='-Wl,'
9434 # PIC (with -KPIC) is the default.
9435 lt_prog_compiler_static='-non_shared'
9438 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9439 case $cc_basename in
9440 # old Intel for x86_64 which still supported -KPIC.
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_pic='-KPIC'
9444 lt_prog_compiler_static='-static'
9446 # icc used to be incompatible with GCC.
9447 # ICC 10 doesn't accept -KPIC any more.
9449 lt_prog_compiler_wl='-Wl,'
9450 lt_prog_compiler_pic='-fPIC'
9451 lt_prog_compiler_static='-static'
9453 # Lahey Fortran 8.1.
9455 lt_prog_compiler_wl='-Wl,'
9456 lt_prog_compiler_pic='--shared'
9457 lt_prog_compiler_static='--static'
9460 # NAG Fortran compiler
9461 lt_prog_compiler_wl='-Wl,-Wl,,'
9462 lt_prog_compiler_pic='-PIC'
9463 lt_prog_compiler_static='-Bstatic'
9465 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9466 # Portland Group compilers (*not* the Pentium gcc compiler,
9467 # which looks to be a dead project)
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_pic='-fpic'
9470 lt_prog_compiler_static='-Bstatic'
9473 lt_prog_compiler_wl='-Wl,'
9474 # All Alpha code is PIC.
9475 lt_prog_compiler_static='-non_shared'
9477 xl* | bgxl* | bgf* | mpixl*)
9478 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9479 lt_prog_compiler_wl='-Wl,'
9480 lt_prog_compiler_pic='-qpic'
9481 lt_prog_compiler_static='-qstaticlink'
9484 case `$CC -V 2>&1 | sed 5q` in
9485 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9486 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9487 lt_prog_compiler_pic='-KPIC'
9488 lt_prog_compiler_static='-Bstatic'
9489 lt_prog_compiler_wl=''
9491 *Sun\ F* | *Sun*Fortran*)
9492 lt_prog_compiler_pic='-KPIC'
9493 lt_prog_compiler_static='-Bstatic'
9494 lt_prog_compiler_wl='-Qoption ld '
9498 lt_prog_compiler_pic='-KPIC'
9499 lt_prog_compiler_static='-Bstatic'
9500 lt_prog_compiler_wl='-Wl,'
9502 *Intel*\ [CF]*Compiler*)
9503 lt_prog_compiler_wl='-Wl,'
9504 lt_prog_compiler_pic='-fPIC'
9505 lt_prog_compiler_static='-static'
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_pic='-fpic'
9510 lt_prog_compiler_static='-Bstatic'
9518 lt_prog_compiler_pic='-KPIC'
9519 lt_prog_compiler_static='-Bstatic'
9523 # QNX uses GNU C++, but need to define -shared option too, otherwise
9525 lt_prog_compiler_pic='-fPIC -shared'
9528 osf3* | osf4* | osf5*)
9529 lt_prog_compiler_wl='-Wl,'
9530 # All OSF/1 code is PIC.
9531 lt_prog_compiler_static='-non_shared'
9535 lt_prog_compiler_static='-non_shared'
9539 lt_prog_compiler_pic='-KPIC'
9540 lt_prog_compiler_static='-Bstatic'
9541 case $cc_basename in
9542 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9543 lt_prog_compiler_wl='-Qoption ld ';;
9545 lt_prog_compiler_wl='-Wl,';;
9550 lt_prog_compiler_wl='-Qoption ld '
9551 lt_prog_compiler_pic='-PIC'
9552 lt_prog_compiler_static='-Bstatic'
9555 sysv4 | sysv4.2uw2* | sysv4.3*)
9556 lt_prog_compiler_wl='-Wl,'
9557 lt_prog_compiler_pic='-KPIC'
9558 lt_prog_compiler_static='-Bstatic'
9562 if test -d /usr/nec ;then
9563 lt_prog_compiler_pic='-Kconform_pic'
9564 lt_prog_compiler_static='-Bstatic'
9568 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9569 lt_prog_compiler_wl='-Wl,'
9570 lt_prog_compiler_pic='-KPIC'
9571 lt_prog_compiler_static='-Bstatic'
9575 lt_prog_compiler_wl='-Wl,'
9576 lt_prog_compiler_can_build_shared=no
9580 lt_prog_compiler_pic='-pic'
9581 lt_prog_compiler_static='-Bstatic'
9585 lt_prog_compiler_can_build_shared=no
9591 # For platforms which do not support PIC, -DPIC is meaningless:
9593 lt_prog_compiler_pic=
9596 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9602 if ${lt_cv_prog_compiler_pic+:} false; then :
9603 $as_echo_n "(cached) " >&6
9605 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9608 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9609 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9612 # Check to make sure the PIC flag actually works.
9614 if test -n "$lt_prog_compiler_pic"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9616 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9617 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9618 $as_echo_n "(cached) " >&6
9620 lt_cv_prog_compiler_pic_works=no
9621 ac_outfile=conftest.$ac_objext
9622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9623 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9624 # Insert the option either (1) after the last *FLAGS variable, or
9625 # (2) before a word containing "conftest.", or (3) at the end.
9626 # Note that $ac_compile itself does not contain backslashes and begins
9627 # with a dollar sign (not a hyphen), so the echo should work correctly.
9628 # The option is referenced via a variable to avoid confusing sed.
9629 lt_compile=`echo "$ac_compile" | $SED \
9630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9632 -e 's:$: $lt_compiler_flag:'`
9633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9634 (eval "$lt_compile" 2>conftest.err)
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 if (exit $ac_status) && test -s "$ac_outfile"; then
9639 # The compiler can only warn and ignore the option if not recognized
9640 # So say no if there are warnings other than the usual output.
9641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9644 lt_cv_prog_compiler_pic_works=yes
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9651 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9653 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9654 case $lt_prog_compiler_pic in
9656 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9659 lt_prog_compiler_pic=
9660 lt_prog_compiler_can_build_shared=no
9676 # Check to make sure the static flag actually works.
9678 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9680 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9681 if ${lt_cv_prog_compiler_static_works+:} false; then :
9682 $as_echo_n "(cached) " >&6
9684 lt_cv_prog_compiler_static_works=no
9685 save_LDFLAGS="$LDFLAGS"
9686 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9687 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9688 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9689 # The linker can only warn and ignore the option if not recognized
9690 # So say no if there are warnings
9691 if test -s conftest.err; then
9692 # Append any errors to the config.log.
9693 cat conftest.err 1>&5
9694 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9696 if diff conftest.exp conftest.er2 >/dev/null; then
9697 lt_cv_prog_compiler_static_works=yes
9700 lt_cv_prog_compiler_static_works=yes
9704 LDFLAGS="$save_LDFLAGS"
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9708 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9710 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9713 lt_prog_compiler_static=
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9723 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9724 if ${lt_cv_prog_compiler_c_o+:} false; then :
9725 $as_echo_n "(cached) " >&6
9727 lt_cv_prog_compiler_c_o=no
9728 $RM -r conftest 2>/dev/null
9732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9734 lt_compiler_flag="-o out/conftest2.$ac_objext"
9735 # Insert the option either (1) after the last *FLAGS variable, or
9736 # (2) before a word containing "conftest.", or (3) at the end.
9737 # Note that $ac_compile itself does not contain backslashes and begins
9738 # with a dollar sign (not a hyphen), so the echo should work correctly.
9739 lt_compile=`echo "$ac_compile" | $SED \
9740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9742 -e 's:$: $lt_compiler_flag:'`
9743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9744 (eval "$lt_compile" 2>out/conftest.err)
9746 cat out/conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9750 # The compiler can only warn and ignore the option if not recognized
9751 # So say no if there are warnings
9752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9755 lt_cv_prog_compiler_c_o=yes
9760 # SGI C++ compiler will create directory out/ii_files/ for
9761 # template instantiation
9762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9763 $RM out/* && rmdir out
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9770 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9779 if ${lt_cv_prog_compiler_c_o+:} false; then :
9780 $as_echo_n "(cached) " >&6
9782 lt_cv_prog_compiler_c_o=no
9783 $RM -r conftest 2>/dev/null
9787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9789 lt_compiler_flag="-o out/conftest2.$ac_objext"
9790 # Insert the option either (1) after the last *FLAGS variable, or
9791 # (2) before a word containing "conftest.", or (3) at the end.
9792 # Note that $ac_compile itself does not contain backslashes and begins
9793 # with a dollar sign (not a hyphen), so the echo should work correctly.
9794 lt_compile=`echo "$ac_compile" | $SED \
9795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9797 -e 's:$: $lt_compiler_flag:'`
9798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9799 (eval "$lt_compile" 2>out/conftest.err)
9801 cat out/conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9805 # The compiler can only warn and ignore the option if not recognized
9806 # So say no if there are warnings
9807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9810 lt_cv_prog_compiler_c_o=yes
9815 # SGI C++ compiler will create directory out/ii_files/ for
9816 # template instantiation
9817 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9818 $RM out/* && rmdir out
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9825 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9830 hard_links="nottested"
9831 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9832 # do not overwrite the value of need_locks provided by the user
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9834 $as_echo_n "checking if we can lock with hard links... " >&6; }
9837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9839 ln conftest.a conftest.b 2>&5 || hard_links=no
9840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9842 $as_echo "$hard_links" >&6; }
9843 if test "$hard_links" = no; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9845 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9858 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9861 allow_undefined_flag=
9862 always_export_symbols=no
9864 archive_expsym_cmds=
9865 compiler_needs_object=no
9866 enable_shared_with_static_runtimes=no
9867 export_dynamic_flag_spec=
9868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9869 hardcode_automatic=no
9871 hardcode_direct_absolute=no
9872 hardcode_libdir_flag_spec=
9873 hardcode_libdir_separator=
9875 hardcode_shlibpath_var=unsupported
9877 link_all_deplibs=unknown
9880 old_archive_from_new_cmds=
9881 old_archive_from_expsyms_cmds=
9882 thread_safe_flag_spec=
9883 whole_archive_flag_spec=
9884 # include_expsyms should be a list of space-separated symbols to be *always*
9885 # included in the symbol list
9887 # exclude_expsyms can be an extended regexp of symbols to exclude
9888 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9889 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9890 # as well as any symbol that contains `d'.
9891 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9892 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9893 # platforms (ab)use it in PIC code, but their linkers get confused if
9894 # the symbol is explicitly referenced. Since portable code cannot
9895 # rely on this symbol name, it's probably fine to never include it in
9896 # preloaded symbol tables.
9897 # Exclude shared library initialization/finalization symbols.
9898 extract_expsyms_cmds=
9901 cygwin* | mingw* | pw32* | cegcc*)
9902 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9903 # When not using gcc, we currently assume that we are using
9904 # Microsoft Visual C++.
9905 if test "$GCC" != yes; then
9910 # we just hope/assume this is gcc and not c89 (= MSVC++)
9916 linux* | k*bsd*-gnu | gnu*)
9923 # On some targets, GNU ld is compatible enough with the native linker
9924 # that we're better off using the native interface for both.
9925 lt_use_gnu_ld_interface=no
9926 if test "$with_gnu_ld" = yes; then
9929 # The AIX port of GNU ld has always aspired to compatibility
9930 # with the native linker. However, as the warning in the GNU ld
9931 # block says, versions before 2.19.5* couldn't really create working
9932 # shared libraries, regardless of the interface used.
9933 case `$LD -v 2>&1` in
9934 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9935 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9936 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9938 lt_use_gnu_ld_interface=yes
9943 lt_use_gnu_ld_interface=yes
9948 if test "$lt_use_gnu_ld_interface" = yes; then
9949 # If archive_cmds runs LD, not CC, wlarc should be empty
9952 # Set some defaults for GNU ld with shared library support. These
9953 # are reset later if shared libraries are not supported. Putting them
9954 # here allows them to be overridden if necessary.
9955 runpath_var=LD_RUN_PATH
9956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957 export_dynamic_flag_spec='${wl}--export-dynamic'
9958 # ancient GNU ld didn't support --whole-archive et. al.
9959 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9960 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9962 whole_archive_flag_spec=
9964 supports_anon_versioning=no
9965 case `$LD -v 2>&1` in
9966 *GNU\ gold*) supports_anon_versioning=yes ;;
9967 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9970 *\ 2.11.*) ;; # other 2.11 versions
9971 *) supports_anon_versioning=yes ;;
9974 # See if GNU ld supports shared libraries.
9977 # On AIX/PPC, the GNU linker is very broken
9978 if test "$host_cpu" != ia64; then
9982 *** Warning: the GNU linker, at least up to release 2.19, is reported
9983 *** to be unable to reliably create shared libraries on AIX.
9984 *** Therefore, libtool is disabling shared libraries support. If you
9985 *** really care for shared libraries, you may want to install binutils
9986 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9987 *** You will then need to restart the configuration process.
9996 # see comment about AmigaOS4 .so support
9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9998 archive_expsym_cmds=''
10001 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)'
10002 hardcode_libdir_flag_spec='-L$libdir'
10003 hardcode_minus_L=yes
10009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10010 allow_undefined_flag=unsupported
10011 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10012 # support --undefined. This deserves some investigation. FIXME
10013 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10019 cygwin* | mingw* | pw32* | cegcc*)
10020 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10021 # as there is no search path for DLLs.
10022 hardcode_libdir_flag_spec='-L$libdir'
10023 export_dynamic_flag_spec='${wl}--export-all-symbols'
10024 allow_undefined_flag=unsupported
10025 always_export_symbols=no
10026 enable_shared_with_static_runtimes=yes
10027 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'
10028 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10030 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10032 # If the export-symbols file already is a .def file (1st line
10033 # is EXPORTS), use it as is; otherwise, prepend...
10034 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10035 cp $export_symbols $output_objdir/$soname.def;
10037 echo EXPORTS > $output_objdir/$soname.def;
10038 cat $export_symbols >> $output_objdir/$soname.def;
10040 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048 link_all_deplibs=yes
10053 hardcode_shlibpath_var=no
10054 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10055 export_dynamic_flag_spec='${wl}-E'
10056 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10057 # Instead, shared libraries are loaded at an image base (0x10000000 by
10058 # default) and relocated if they conflict, which is a slow very memory
10059 # consuming and fragmenting process. To avoid this, we pick a random,
10060 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10061 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10063 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'
10066 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10068 if test "$host_os" = linux-dietlibc; then
10069 case $cc_basename in
10070 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10073 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10074 && test "$tmp_diet" = no
10076 tmp_addflag=' $pic_flag'
10077 tmp_sharedflag='-shared'
10078 case $cc_basename,$host_cpu in
10079 pgcc*) # Portland Group C compiler
10080 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'
10081 tmp_addflag=' $pic_flag'
10083 pgf77* | pgf90* | pgf95* | pgfortran*)
10084 # Portland Group f77 and f90 compilers
10085 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'
10086 tmp_addflag=' $pic_flag -Mnomain' ;;
10087 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10088 tmp_addflag=' -i_dynamic' ;;
10089 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10090 tmp_addflag=' -i_dynamic -nofor_main' ;;
10091 ifc* | ifort*) # Intel Fortran compiler
10092 tmp_addflag=' -nofor_main' ;;
10093 lf95*) # Lahey Fortran 8.1
10094 whole_archive_flag_spec=
10095 tmp_sharedflag='--shared' ;;
10096 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10097 tmp_sharedflag='-qmkshrobj'
10099 nvcc*) # Cuda Compiler Driver 2.2
10100 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'
10101 compiler_needs_object=yes
10104 case `$CC -V 2>&1 | sed 5q` in
10105 *Sun\ C*) # Sun C 5.9
10106 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'
10107 compiler_needs_object=yes
10108 tmp_sharedflag='-G' ;;
10109 *Sun\ F*) # Sun Fortran 8.3
10110 tmp_sharedflag='-G' ;;
10112 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10114 if test "x$supports_anon_versioning" = xyes; then
10115 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10117 echo "local: *; };" >> $output_objdir/$libname.ver~
10118 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10121 case $cc_basename in
10122 xlf* | bgf* | bgxlf* | mpixlf*)
10123 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10124 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10126 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10127 if test "x$supports_anon_versioning" = xyes; then
10128 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10130 echo "local: *; };" >> $output_objdir/$libname.ver~
10131 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10140 netbsd* | netbsdelf*-gnu)
10141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10142 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10151 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10155 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10156 *** create shared libraries on Solaris systems. Therefore, libtool
10157 *** is disabling shared libraries support. We urge you to upgrade GNU
10158 *** binutils to release 2.9.1 or newer. Another option is to modify
10159 *** your PATH or compiler configuration so that the native linker is
10160 *** used, and then restart.
10163 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10165 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10172 case `$LD -v 2>&1` in
10173 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10177 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10178 *** reliably create shared libraries on SCO systems. Therefore, libtool
10179 *** is disabling shared libraries support. We urge you to upgrade GNU
10180 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10181 *** your PATH or compiler configuration so that the native linker is
10182 *** used, and then restart.
10187 # For security reasons, it is highly recommended that you always
10188 # use absolute paths for naming shared libraries, and exclude the
10189 # DT_RUNPATH tag from executables and libraries. But doing so
10190 # requires that you compile everything twice, which is a pain.
10191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10203 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10205 hardcode_direct=yes
10206 hardcode_shlibpath_var=no
10210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10211 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10212 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10219 if test "$ld_shlibs" = no; then
10221 hardcode_libdir_flag_spec=
10222 export_dynamic_flag_spec=
10223 whole_archive_flag_spec=
10226 # PORTME fill in a description of your system's linker (not GNU ld)
10229 allow_undefined_flag=unsupported
10230 always_export_symbols=yes
10231 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'
10232 # Note: this linker hardcodes the directories in LIBPATH if there
10233 # are no directories specified by -L.
10234 hardcode_minus_L=yes
10235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10236 # Neither direct hardcoding nor static linking is supported with a
10238 hardcode_direct=unsupported
10243 if test "$host_cpu" = ia64; then
10244 # On IA64, the linker does run time linking by default, so we don't
10245 # have to do anything special.
10246 aix_use_runtimelinking=no
10247 exp_sym_flag='-Bexport'
10250 # If we're using GNU nm, then we don't want the "-C" option.
10251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10252 # Also, AIX nm treats weak defined symbols like other global
10253 # defined symbols, whereas GNU nm marks them as "W".
10254 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10255 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'
10257 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'
10259 aix_use_runtimelinking=no
10261 # Test if we are trying to use run time linking or normal
10262 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10263 # need to do runtime linking.
10264 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10265 for ld_flag in $LDFLAGS; do
10266 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10267 aix_use_runtimelinking=yes
10274 exp_sym_flag='-bexport'
10275 no_entry_flag='-bnoentry'
10278 # When large executables or shared objects are built, AIX ld can
10279 # have problems creating the table of contents. If linking a library
10280 # or program results in "error TOC overflow" add -mminimal-toc to
10281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10285 hardcode_direct=yes
10286 hardcode_direct_absolute=yes
10287 hardcode_libdir_separator=':'
10288 link_all_deplibs=yes
10289 file_list_spec='${wl}-f,'
10291 if test "$GCC" = yes; then
10292 case $host_os in aix4.[012]|aix4.[012].*)
10293 # We only want to do this on AIX 4.2 and lower, the check
10294 # below for broken collect2 doesn't work under 4.3+
10295 collect2name=`${CC} -print-prog-name=collect2`
10296 if test -f "$collect2name" &&
10297 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10299 # We have reworked collect2
10302 # We have old collect2
10303 hardcode_direct=unsupported
10304 # It fails to find uninstalled libraries when the uninstalled
10305 # path is not listed in the libpath. Setting hardcode_minus_L
10306 # to unsupported forces relinking
10307 hardcode_minus_L=yes
10308 hardcode_libdir_flag_spec='-L$libdir'
10309 hardcode_libdir_separator=
10313 shared_flag='-shared'
10314 if test "$aix_use_runtimelinking" = yes; then
10315 shared_flag="$shared_flag "'${wl}-G'
10317 link_all_deplibs=no
10320 if test "$host_cpu" = ia64; then
10321 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10322 # chokes on -Wl,-G. The following line is correct:
10325 if test "$aix_use_runtimelinking" = yes; then
10326 shared_flag='${wl}-G'
10328 shared_flag='${wl}-bM:SRE'
10333 export_dynamic_flag_spec='${wl}-bexpall'
10334 # It seems that -bexpall does not export symbols beginning with
10335 # underscore (_), so it is better to generate a list of symbols to export.
10336 always_export_symbols=yes
10337 if test "$aix_use_runtimelinking" = yes; then
10338 # Warning - without using the other runtime loading flags (-brtl),
10339 # -berok will link without error, but may produce a broken library.
10340 allow_undefined_flag='-berok'
10341 # Determine the default libpath from the value encoded in an
10342 # empty executable.
10343 if test "${lt_cv_aix_libpath+set}" = set; then
10344 aix_libpath=$lt_cv_aix_libpath
10346 if ${lt_cv_aix_libpath_+:} false; then :
10347 $as_echo_n "(cached) " >&6
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10360 if ac_fn_c_try_link "$LINENO"; then :
10362 lt_aix_libpath_sed='
10363 /Import File Strings/,/^$/ {
10365 s/^0 *\([^ ]*\) *$/\1/
10369 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10370 # Check for a 64-bit object if we didn't find anything.
10371 if test -z "$lt_cv_aix_libpath_"; then
10372 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10375 rm -f core conftest.err conftest.$ac_objext \
10376 conftest$ac_exeext conftest.$ac_ext
10377 if test -z "$lt_cv_aix_libpath_"; then
10378 lt_cv_aix_libpath_="/usr/lib:/lib"
10383 aix_libpath=$lt_cv_aix_libpath_
10386 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10387 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"
10389 if test "$host_cpu" = ia64; then
10390 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10391 allow_undefined_flag="-z nodefs"
10392 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"
10394 # Determine the default libpath from the value encoded in an
10395 # empty executable.
10396 if test "${lt_cv_aix_libpath+set}" = set; then
10397 aix_libpath=$lt_cv_aix_libpath
10399 if ${lt_cv_aix_libpath_+:} false; then :
10400 $as_echo_n "(cached) " >&6
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10413 if ac_fn_c_try_link "$LINENO"; then :
10415 lt_aix_libpath_sed='
10416 /Import File Strings/,/^$/ {
10418 s/^0 *\([^ ]*\) *$/\1/
10422 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10423 # Check for a 64-bit object if we didn't find anything.
10424 if test -z "$lt_cv_aix_libpath_"; then
10425 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 if test -z "$lt_cv_aix_libpath_"; then
10431 lt_cv_aix_libpath_="/usr/lib:/lib"
10436 aix_libpath=$lt_cv_aix_libpath_
10439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10440 # Warning - without using the other run time loading flags,
10441 # -berok will link without error, but may produce a broken library.
10442 no_undefined_flag=' ${wl}-bernotok'
10443 allow_undefined_flag=' ${wl}-berok'
10444 if test "$with_gnu_ld" = yes; then
10445 # We only use this code for GNU lds that support --whole-archive.
10446 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10448 # Exported symbols can be pulled into shared objects from archives
10449 whole_archive_flag_spec='$convenience'
10451 archive_cmds_need_lc=yes
10452 # This is similar to how AIX traditionally builds its shared libraries.
10453 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'
10461 # see comment about AmigaOS4 .so support
10462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10463 archive_expsym_cmds=''
10466 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)'
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_minus_L=yes
10474 export_dynamic_flag_spec=-rdynamic
10477 cygwin* | mingw* | pw32* | cegcc*)
10478 # When not using gcc, we currently assume that we are using
10479 # Microsoft Visual C++.
10480 # hardcode_libdir_flag_spec is actually meaningless, as there is
10481 # no search path for DLLs.
10482 case $cc_basename in
10485 hardcode_libdir_flag_spec=' '
10486 allow_undefined_flag=unsupported
10487 always_export_symbols=yes
10489 # Tell ltmain to make .lib files, not .a files.
10491 # Tell ltmain to make .dll files, not .so files.
10493 # FIXME: Setting linknames here is a bad hack.
10494 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10495 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10496 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10498 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10500 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10502 # The linker will not automatically build a static lib if we build a DLL.
10503 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10504 enable_shared_with_static_runtimes=yes
10505 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10508 old_postinstall_cmds='chmod 644 $oldlib'
10509 postlink_cmds='lt_outputfile="@OUTPUT@"~
10510 lt_tool_outputfile="@TOOL_OUTPUT@"~
10511 case $lt_outputfile in
10514 lt_outputfile="$lt_outputfile.exe"
10515 lt_tool_outputfile="$lt_tool_outputfile.exe"
10518 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10519 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10520 $RM "$lt_outputfile.manifest";
10524 # Assume MSVC wrapper
10525 hardcode_libdir_flag_spec=' '
10526 allow_undefined_flag=unsupported
10527 # Tell ltmain to make .lib files, not .a files.
10529 # Tell ltmain to make .dll files, not .so files.
10531 # FIXME: Setting linknames here is a bad hack.
10532 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10533 # The linker will automatically build a .lib file if we build a DLL.
10534 old_archive_from_new_cmds='true'
10535 # FIXME: Should let the user specify the lib program.
10536 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10537 enable_shared_with_static_runtimes=yes
10542 darwin* | rhapsody*)
10545 archive_cmds_need_lc=no
10547 hardcode_automatic=yes
10548 hardcode_shlibpath_var=unsupported
10549 if test "$lt_cv_ld_force_load" = "yes"; then
10550 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\"`'
10553 whole_archive_flag_spec=''
10555 link_all_deplibs=yes
10556 allow_undefined_flag="$_lt_dar_allow_undefined"
10557 case $cc_basename in
10558 ifort*) _lt_dar_can_shared=yes ;;
10559 *) _lt_dar_can_shared=$GCC ;;
10561 if test "$_lt_dar_can_shared" = "yes"; then
10562 output_verbose_link_cmd=func_echo_all
10563 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10564 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10565 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}"
10566 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}"
10575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10576 hardcode_libdir_flag_spec='-L$libdir'
10577 hardcode_shlibpath_var=no
10580 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10581 # support. Future versions do this automatically, but an explicit c++rt0.o
10582 # does not break anything, and helps significantly (at the cost of a little
10585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10586 hardcode_libdir_flag_spec='-R$libdir'
10587 hardcode_direct=yes
10588 hardcode_shlibpath_var=no
10591 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10594 hardcode_direct=yes
10595 hardcode_minus_L=yes
10596 hardcode_shlibpath_var=no
10599 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10600 freebsd* | dragonfly*)
10601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10602 hardcode_libdir_flag_spec='-R$libdir'
10603 hardcode_direct=yes
10604 hardcode_shlibpath_var=no
10608 if test "$GCC" = yes; then
10609 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'
10611 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'
10613 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10614 hardcode_libdir_separator=:
10615 hardcode_direct=yes
10617 # hardcode_minus_L: Not really in the search PATH,
10618 # but as the default location of the library.
10619 hardcode_minus_L=yes
10620 export_dynamic_flag_spec='${wl}-E'
10624 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10625 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10627 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10629 if test "$with_gnu_ld" = no; then
10630 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10631 hardcode_libdir_separator=:
10632 hardcode_direct=yes
10633 hardcode_direct_absolute=yes
10634 export_dynamic_flag_spec='${wl}-E'
10635 # hardcode_minus_L: Not really in the search PATH,
10636 # but as the default location of the library.
10637 hardcode_minus_L=yes
10642 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10645 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10648 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10651 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10657 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10664 # Older versions of the 11.00 compiler do not understand -b yet
10665 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10667 $as_echo_n "checking if $CC understands -b... " >&6; }
10668 if ${lt_cv_prog_compiler__b+:} false; then :
10669 $as_echo_n "(cached) " >&6
10671 lt_cv_prog_compiler__b=no
10672 save_LDFLAGS="$LDFLAGS"
10673 LDFLAGS="$LDFLAGS -b"
10674 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10676 # The linker can only warn and ignore the option if not recognized
10677 # So say no if there are warnings
10678 if test -s conftest.err; then
10679 # Append any errors to the config.log.
10680 cat conftest.err 1>&5
10681 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10683 if diff conftest.exp conftest.er2 >/dev/null; then
10684 lt_cv_prog_compiler__b=yes
10687 lt_cv_prog_compiler__b=yes
10691 LDFLAGS="$save_LDFLAGS"
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10695 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10697 if test x"$lt_cv_prog_compiler__b" = xyes; then
10698 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10706 if test "$with_gnu_ld" = no; then
10707 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10708 hardcode_libdir_separator=:
10713 hardcode_shlibpath_var=no
10716 hardcode_direct=yes
10717 hardcode_direct_absolute=yes
10718 export_dynamic_flag_spec='${wl}-E'
10720 # hardcode_minus_L: Not really in the search PATH,
10721 # but as the default location of the library.
10722 hardcode_minus_L=yes
10728 irix5* | irix6* | nonstopux*)
10729 if test "$GCC" = yes; then
10730 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'
10731 # Try to use the -exported_symbol ld option, if it does not
10732 # work, assume that -exports_file does not work either and
10733 # implicitly export all symbols.
10734 # This should be the same for all languages, so no per-tag cache variable.
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10736 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10737 if ${lt_cv_irix_exported_symbol+:} false; then :
10738 $as_echo_n "(cached) " >&6
10740 save_LDFLAGS="$LDFLAGS"
10741 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 int foo (void) { return 0; }
10746 if ac_fn_c_try_link "$LINENO"; then :
10747 lt_cv_irix_exported_symbol=yes
10749 lt_cv_irix_exported_symbol=no
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LDFLAGS="$save_LDFLAGS"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10756 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10757 if test "$lt_cv_irix_exported_symbol" = yes; then
10758 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'
10761 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'
10762 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'
10764 archive_cmds_need_lc='no'
10765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10766 hardcode_libdir_separator=:
10768 link_all_deplibs=yes
10771 netbsd* | netbsdelf*-gnu)
10772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10775 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10777 hardcode_libdir_flag_spec='-R$libdir'
10778 hardcode_direct=yes
10779 hardcode_shlibpath_var=no
10783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10784 hardcode_direct=yes
10785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10786 hardcode_libdir_separator=:
10787 hardcode_shlibpath_var=no
10794 if test -f /usr/libexec/ld.so; then
10795 hardcode_direct=yes
10796 hardcode_shlibpath_var=no
10797 hardcode_direct_absolute=yes
10798 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10800 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10802 export_dynamic_flag_spec='${wl}-E'
10805 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10807 hardcode_libdir_flag_spec='-R$libdir'
10810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10811 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10821 hardcode_libdir_flag_spec='-L$libdir'
10822 hardcode_minus_L=yes
10823 allow_undefined_flag=unsupported
10824 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'
10825 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10829 if test "$GCC" = yes; then
10830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10831 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'
10833 allow_undefined_flag=' -expect_unresolved \*'
10834 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'
10836 archive_cmds_need_lc='no'
10837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10838 hardcode_libdir_separator=:
10841 osf4* | osf5*) # as osf3* with the addition of -msym flag
10842 if test "$GCC" = yes; then
10843 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10844 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'
10845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10847 allow_undefined_flag=' -expect_unresolved \*'
10848 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'
10849 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~
10850 $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'
10852 # Both c and cxx compiler support -rpath directly
10853 hardcode_libdir_flag_spec='-rpath $libdir'
10855 archive_cmds_need_lc='no'
10856 hardcode_libdir_separator=:
10860 no_undefined_flag=' -z defs'
10861 if test "$GCC" = yes; then
10863 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10864 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10865 $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'
10867 case `$CC -V 2>&1` in
10870 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10872 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10876 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10877 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10878 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10882 hardcode_libdir_flag_spec='-R$libdir'
10883 hardcode_shlibpath_var=no
10885 solaris2.[0-5] | solaris2.[0-5].*) ;;
10887 # The compiler driver will combine and reorder linker options,
10888 # but understands `-z linker_flag'. GCC discards it without `$wl',
10889 # but is careful enough not to reorder.
10890 # Supported since Solaris 2.6 (maybe 2.5.1?)
10891 if test "$GCC" = yes; then
10892 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10894 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10898 link_all_deplibs=yes
10902 if test "x$host_vendor" = xsequent; then
10903 # Use $CC to link under sequent, because it throws in some extra .o
10904 # files that make .init and .fini sections work.
10905 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10907 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10909 hardcode_libdir_flag_spec='-L$libdir'
10910 hardcode_direct=yes
10911 hardcode_minus_L=yes
10912 hardcode_shlibpath_var=no
10916 case $host_vendor in
10918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10919 hardcode_direct=yes # is this really true???
10922 ## LD is ld it makes a PLAMLIB
10923 ## CC just makes a GrossModule.
10924 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10925 reload_cmds='$CC -r -o $output$reload_objs'
10929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10930 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10933 runpath_var='LD_RUN_PATH'
10934 hardcode_shlibpath_var=no
10938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939 hardcode_shlibpath_var=no
10940 export_dynamic_flag_spec='-Bexport'
10944 if test -d /usr/nec; then
10945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946 hardcode_shlibpath_var=no
10947 runpath_var=LD_RUN_PATH
10948 hardcode_runpath_var=yes
10953 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10954 no_undefined_flag='${wl}-z,text'
10955 archive_cmds_need_lc=no
10956 hardcode_shlibpath_var=no
10957 runpath_var='LD_RUN_PATH'
10959 if test "$GCC" = yes; then
10960 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10968 sysv5* | sco3.2v5* | sco5v6*)
10969 # Note: We can NOT use -z defs as we might desire, because we do not
10970 # link with -lc, and that would cause any symbols used from libc to
10971 # always be unresolved, which means just about no library would
10972 # ever link correctly. If we're not using GNU ld we use -z text
10973 # though, which does catch some bad symbols but isn't as heavy-handed
10975 no_undefined_flag='${wl}-z,text'
10976 allow_undefined_flag='${wl}-z,nodefs'
10977 archive_cmds_need_lc=no
10978 hardcode_shlibpath_var=no
10979 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10980 hardcode_libdir_separator=':'
10981 link_all_deplibs=yes
10982 export_dynamic_flag_spec='${wl}-Bexport'
10983 runpath_var='LD_RUN_PATH'
10985 if test "$GCC" = yes; then
10986 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996 hardcode_libdir_flag_spec='-L$libdir'
10997 hardcode_shlibpath_var=no
11005 if test x$host_vendor = xsni; then
11007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11008 export_dynamic_flag_spec='${wl}-Blargedynsym'
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11015 $as_echo "$ld_shlibs" >&6; }
11016 test "$ld_shlibs" = no && can_build_shared=no
11018 with_gnu_ld=$with_gnu_ld
11035 # Do we need to explicitly link libc?
11037 case "x$archive_cmds_need_lc" in
11039 # Assume -lc should be added
11040 archive_cmds_need_lc=yes
11042 if test "$enable_shared" = yes && test "$GCC" = yes; then
11043 case $archive_cmds in
11045 # FIXME: we may have to deal with multi-command sequences.
11048 # Test whether the compiler implicitly links with -lc since on some
11049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11050 # to ld, don't add -lc before -lgcc.
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11052 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11053 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11054 $as_echo_n "(cached) " >&6
11057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11060 (eval $ac_compile) 2>&5
11062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11063 test $ac_status = 0; } 2>conftest.err; then
11066 libobjs=conftest.$ac_objext
11068 wl=$lt_prog_compiler_wl
11069 pic_flag=$lt_prog_compiler_pic
11075 lt_save_allow_undefined_flag=$allow_undefined_flag
11076 allow_undefined_flag=
11077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11078 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11081 test $ac_status = 0; }
11083 lt_cv_archive_cmds_need_lc=no
11085 lt_cv_archive_cmds_need_lc=yes
11087 allow_undefined_flag=$lt_save_allow_undefined_flag
11089 cat conftest.err 1>&5
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11095 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11096 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11255 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11257 if test "$GCC" = yes; then
11259 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11260 *) lt_awk_arg="/^libraries:/" ;;
11263 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11264 *) lt_sed_strip_eq="s,=/,/,g" ;;
11266 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11267 case $lt_search_path_spec in
11269 # if the path contains ";" then we assume it to be the separator
11270 # otherwise default to the standard path separator (i.e. ":") - it is
11271 # assumed that no part of a normal pathname contains ";" but that should
11272 # okay in the real world where ";" in dirpaths is itself problematic.
11273 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11279 # Ok, now we have the path, separated by spaces, we can step through it
11280 # and add multilib dir if necessary.
11281 lt_tmp_lt_search_path_spec=
11282 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11283 for lt_sys_path in $lt_search_path_spec; do
11284 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11285 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11287 test -d "$lt_sys_path" && \
11288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11291 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11292 BEGIN {RS=" "; FS="/|\n";} {
11295 for (lt_i = NF; lt_i > 0; lt_i--) {
11296 if ($lt_i != "" && $lt_i != ".") {
11297 if ($lt_i == "..") {
11300 if (lt_count == 0) {
11301 lt_foo="/" $lt_i lt_foo;
11308 if (lt_foo != "") { lt_freq[lt_foo]++; }
11309 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11311 # AWK program above erroneously prepends '/' to C:/dos/paths
11314 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11315 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11317 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11319 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11321 library_names_spec=
11322 libname_spec='lib$name'
11326 postuninstall_cmds=
11330 shlibpath_overrides_runpath=unknown
11332 dynamic_linker="$host_os ld.so"
11333 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11334 need_lib_prefix=unknown
11335 hardcode_into_libs=no
11337 # when you set need_version to no, make sure it does not cause -set_version
11338 # flags to be left without arguments
11339 need_version=unknown
11343 version_type=linux # correct to gnu/linux during the next big refactor
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11345 shlibpath_var=LIBPATH
11347 # AIX 3 has no versioning support, so we append a major version to the name.
11348 soname_spec='${libname}${release}${shared_ext}$major'
11352 version_type=linux # correct to gnu/linux during the next big refactor
11355 hardcode_into_libs=yes
11356 if test "$host_cpu" = ia64; then
11357 # AIX 5 supports IA64
11358 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11359 shlibpath_var=LD_LIBRARY_PATH
11361 # With GCC up to 2.95.x, collect2 would create an import file
11362 # for dependence libraries. The import file would start with
11363 # the line `#! .'. This would cause the generated library to
11364 # depend on `.', always an invalid library. This was fixed in
11365 # development snapshots of GCC prior to 3.0.
11367 aix4 | aix4.[01] | aix4.[01].*)
11368 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11370 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11373 can_build_shared=no
11377 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11378 # soname into executable. Probably we can add versioning support to
11379 # collect2, so additional links can be useful in future.
11380 if test "$aix_use_runtimelinking" = yes; then
11381 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11382 # instead of lib<name>.a to let people know that these are not
11383 # typical AIX shared libraries.
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 # We preserve .a as extension for shared libraries through AIX4.2
11387 # and later when we are not doing run time linking.
11388 library_names_spec='${libname}${release}.a $libname.a'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11391 shlibpath_var=LIBPATH
11398 # Since July 2007 AmigaOS4 officially supports .so libraries.
11399 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11403 library_names_spec='$libname.ixlibrary $libname.a'
11404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11405 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'
11411 library_names_spec='${libname}${shared_ext}'
11412 dynamic_linker="$host_os ld.so"
11413 shlibpath_var=LIBRARY_PATH
11417 version_type=linux # correct to gnu/linux during the next big refactor
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 soname_spec='${libname}${release}${shared_ext}$major'
11421 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11424 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11425 # the default ld.so.conf also contains /usr/contrib/lib and
11426 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11427 # libtool to hard-code these into programs
11430 cygwin* | mingw* | pw32* | cegcc*)
11431 version_type=windows
11436 case $GCC,$cc_basename in
11439 library_names_spec='$libname.dll.a'
11440 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11441 postinstall_cmds='base_file=`basename \${file}`~
11442 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11443 dldir=$destdir/`dirname \$dlpath`~
11444 test -d \$dldir || mkdir -p \$dldir~
11445 $install_prog $dir/$dlname \$dldir/$dlname~
11446 chmod a+x \$dldir/$dlname~
11447 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11448 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11451 dlpath=$dir/\$dldll~
11453 shlibpath_overrides_runpath=yes
11457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11460 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11463 # MinGW DLLs use traditional 'lib' prefix
11464 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11467 # pw32 DLLs use 'pw' prefix rather than 'lib'
11468 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11471 dynamic_linker='Win32 ld.exe'
11476 libname_spec='$name'
11477 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11478 library_names_spec='${libname}.dll.lib'
11482 sys_lib_search_path_spec=
11485 for lt_path in $LIB
11488 # Let DOS variable expansion print the short 8.3 style file name.
11489 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11490 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11493 # Convert to MSYS style.
11494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11497 # Convert to unix form, then to dos form, then back to unix form
11498 # but this time dos style (no spaces!) so that the unix form looks
11499 # like /cygdrive/c/PROGRA~1:/cygdr...
11500 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11501 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11502 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11505 sys_lib_search_path_spec="$LIB"
11506 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11507 # It is most probably a Windows format PATH.
11508 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11510 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11512 # FIXME: find the short name or the path components, as spaces are
11513 # common. (e.g. "Program Files" -> "PROGRA~1")
11517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11518 postinstall_cmds='base_file=`basename \${file}`~
11519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11520 dldir=$destdir/`dirname \$dlpath`~
11521 test -d \$dldir || mkdir -p \$dldir~
11522 $install_prog $dir/$dlname \$dldir/$dlname'
11523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11524 dlpath=$dir/\$dldll~
11526 shlibpath_overrides_runpath=yes
11527 dynamic_linker='Win32 link.exe'
11531 # Assume MSVC wrapper
11532 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11533 dynamic_linker='Win32 ld.exe'
11536 # FIXME: first we should search . and the directory the executable is in
11540 darwin* | rhapsody*)
11541 dynamic_linker="$host_os dyld"
11542 version_type=darwin
11545 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11546 soname_spec='${libname}${release}${major}$shared_ext'
11547 shlibpath_overrides_runpath=yes
11548 shlibpath_var=DYLD_LIBRARY_PATH
11549 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11551 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11552 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11556 version_type=linux # correct to gnu/linux during the next big refactor
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 shlibpath_var=LD_LIBRARY_PATH
11564 freebsd* | dragonfly*)
11565 # DragonFly does not have aout. When/if they implement a new
11566 # versioning mechanism, adjust this.
11567 if test -x /usr/bin/objformat; then
11568 objformat=`/usr/bin/objformat`
11571 freebsd[23].*) objformat=aout ;;
11572 *) objformat=elf ;;
11575 version_type=freebsd-$objformat
11576 case $version_type in
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11587 shlibpath_var=LD_LIBRARY_PATH
11590 shlibpath_overrides_runpath=yes
11592 freebsd3.[01]* | freebsdelf3.[01]*)
11593 shlibpath_overrides_runpath=yes
11594 hardcode_into_libs=yes
11596 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11597 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11598 shlibpath_overrides_runpath=no
11599 hardcode_into_libs=yes
11601 *) # from 4.6 on, and DragonFly
11602 shlibpath_overrides_runpath=yes
11603 hardcode_into_libs=yes
11609 version_type=linux # correct to gnu/linux during the next big refactor
11612 dynamic_linker="$host_os runtime_loader"
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 shlibpath_var=LIBRARY_PATH
11616 shlibpath_overrides_runpath=yes
11617 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11618 hardcode_into_libs=yes
11621 hpux9* | hpux10* | hpux11*)
11622 # Give a soname corresponding to the major version so that dld.sl refuses to
11623 # link against other versions.
11630 hardcode_into_libs=yes
11631 dynamic_linker="$host_os dld.so"
11632 shlibpath_var=LD_LIBRARY_PATH
11633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 if test "X$HPUX_IA64_MODE" = X32; then
11637 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11639 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11645 hardcode_into_libs=yes
11646 dynamic_linker="$host_os dld.sl"
11647 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11656 dynamic_linker="$host_os dld.sl"
11657 shlibpath_var=SHLIB_PATH
11658 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11660 soname_spec='${libname}${release}${shared_ext}$major'
11663 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11664 postinstall_cmds='chmod 555 $lib'
11665 # or fails outright, so override atomically:
11666 install_override_mode=555
11670 version_type=linux # correct to gnu/linux during the next big refactor
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 shlibpath_overrides_runpath=no
11678 hardcode_into_libs=yes
11681 irix5* | irix6* | nonstopux*)
11683 nonstopux*) version_type=nonstopux ;;
11685 if test "$lt_cv_prog_gnu_ld" = yes; then
11686 version_type=linux # correct to gnu/linux during the next big refactor
11693 soname_spec='${libname}${release}${shared_ext}$major'
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11696 irix5* | nonstopux*)
11697 libsuff= shlibsuff=
11700 case $LD in # libtool.m4 will add one of these switches to LD
11701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11702 libsuff= shlibsuff= libmagic=32-bit;;
11703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11704 libsuff=32 shlibsuff=N32 libmagic=N32;;
11705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11706 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11707 *) libsuff= shlibsuff= libmagic=never-match;;
11711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11712 shlibpath_overrides_runpath=no
11713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11715 hardcode_into_libs=yes
11718 # No shared lib support for Linux oldld, aout, or coff.
11719 linux*oldld* | linux*aout* | linux*coff*)
11723 # This must be glibc/ELF.
11724 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11725 version_type=linux # correct to gnu/linux during the next big refactor
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 soname_spec='${libname}${release}${shared_ext}$major'
11730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 shlibpath_overrides_runpath=no
11734 # Some binutils ld are patched to set DT_RUNPATH
11735 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11736 $as_echo_n "(cached) " >&6
11738 lt_cv_shlibpath_overrides_runpath=no
11739 save_LDFLAGS=$LDFLAGS
11740 save_libdir=$libdir
11741 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11742 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11754 if ac_fn_c_try_link "$LINENO"; then :
11755 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11756 lt_cv_shlibpath_overrides_runpath=yes
11759 rm -f core conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11761 LDFLAGS=$save_LDFLAGS
11762 libdir=$save_libdir
11766 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11768 # This implies no fast_install, which is unacceptable.
11769 # Some rework will be needed to allow for fast_install
11770 # before this can be enabled.
11771 hardcode_into_libs=yes
11773 # Append ld.so.conf contents to the search path
11774 if test -f /etc/ld.so.conf; then
11775 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' ' '`
11776 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11779 # We used to test for /lib/ld.so.1 and disable shared libraries on
11780 # powerpc, because MkLinux only supported shared libraries with the
11781 # GNU dynamic linker. Since this was broken with cross compilers,
11782 # most powerpc-linux boxes support dynamic linking these days and
11783 # people can always --disable-shared, the test was removed, and we
11784 # assume the GNU/Linux dynamic linker is in use.
11785 dynamic_linker='GNU/Linux ld.so'
11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11793 soname_spec='${libname}${release}${shared_ext}$major'
11794 shlibpath_var=LD_LIBRARY_PATH
11795 shlibpath_overrides_runpath=no
11796 hardcode_into_libs=yes
11797 dynamic_linker='NetBSD ld.elf_so'
11804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11807 dynamic_linker='NetBSD (a.out) ld.so'
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 dynamic_linker='NetBSD ld.elf_so'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=yes
11815 hardcode_into_libs=yes
11819 version_type=linux # correct to gnu/linux during the next big refactor
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 shlibpath_overrides_runpath=yes
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830 soname_spec='${libname}${release}${shared_ext}$major'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 shlibpath_overrides_runpath=no
11833 hardcode_into_libs=yes
11834 dynamic_linker='ldqnx.so'
11839 sys_lib_dlsearch_path_spec="/usr/lib"
11841 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11843 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11844 *) need_version=no ;;
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11848 shlibpath_var=LD_LIBRARY_PATH
11849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11851 openbsd2.[89] | openbsd2.[89].*)
11852 shlibpath_overrides_runpath=no
11855 shlibpath_overrides_runpath=yes
11859 shlibpath_overrides_runpath=yes
11864 libname_spec='$name'
11867 library_names_spec='$libname${shared_ext} $libname.a'
11868 dynamic_linker='OS/2 ld.exe'
11869 shlibpath_var=LIBPATH
11872 osf3* | osf4* | osf5*)
11876 soname_spec='${libname}${release}${shared_ext}$major'
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 shlibpath_var=LD_LIBRARY_PATH
11879 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11880 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11888 version_type=linux # correct to gnu/linux during the next big refactor
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11894 shlibpath_overrides_runpath=yes
11895 hardcode_into_libs=yes
11896 # ldd complains unless libraries are executable
11897 postinstall_cmds='chmod +x $lib'
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11903 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11904 shlibpath_var=LD_LIBRARY_PATH
11905 shlibpath_overrides_runpath=yes
11906 if test "$with_gnu_ld" = yes; then
11913 version_type=linux # correct to gnu/linux during the next big refactor
11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11915 soname_spec='${libname}${release}${shared_ext}$major'
11916 shlibpath_var=LD_LIBRARY_PATH
11917 case $host_vendor in
11919 shlibpath_overrides_runpath=no
11921 runpath_var=LD_RUN_PATH
11929 shlibpath_overrides_runpath=no
11930 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11936 if test -d /usr/nec ;then
11937 version_type=linux # correct to gnu/linux during the next big refactor
11938 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11939 soname_spec='$libname${shared_ext}.$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11944 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11945 version_type=freebsd-elf
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=yes
11952 hardcode_into_libs=yes
11953 if test "$with_gnu_ld" = yes; then
11954 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11956 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11959 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11963 sys_lib_dlsearch_path_spec='/usr/lib'
11967 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11968 version_type=linux # correct to gnu/linux during the next big refactor
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 shlibpath_overrides_runpath=no
11974 hardcode_into_libs=yes
11978 version_type=linux # correct to gnu/linux during the next big refactor
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 shlibpath_var=LD_LIBRARY_PATH
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11989 $as_echo "$dynamic_linker" >&6; }
11990 test "$dynamic_linker" = no && can_build_shared=no
11992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11993 if test "$GCC" = yes; then
11994 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11997 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11998 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12000 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12001 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12096 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12098 if test -n "$hardcode_libdir_flag_spec" ||
12099 test -n "$runpath_var" ||
12100 test "X$hardcode_automatic" = "Xyes" ; then
12102 # We can hardcode non-existent directories.
12103 if test "$hardcode_direct" != no &&
12104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12105 # have to relink, otherwise we might link with an installed library
12106 # when we should be linking with a yet-to-be-installed one
12107 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12108 test "$hardcode_minus_L" != no; then
12109 # Linking always hardcodes the temporary library directory.
12110 hardcode_action=relink
12112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12113 hardcode_action=immediate
12116 # We cannot hardcode anything, or else we can only hardcode existing
12118 hardcode_action=unsupported
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12121 $as_echo "$hardcode_action" >&6; }
12123 if test "$hardcode_action" = relink ||
12124 test "$inherit_rpath" = yes; then
12125 # Fast installation is not supported
12126 enable_fast_install=no
12127 elif test "$shlibpath_overrides_runpath" = yes ||
12128 test "$enable_shared" = no; then
12129 # Fast installation is not necessary
12130 enable_fast_install=needless
12138 if test "x$enable_dlopen" != xyes; then
12139 enable_dlopen=unknown
12140 enable_dlopen_self=unknown
12141 enable_dlopen_self_static=unknown
12148 lt_cv_dlopen="load_add_on"
12150 lt_cv_dlopen_self=yes
12153 mingw* | pw32* | cegcc*)
12154 lt_cv_dlopen="LoadLibrary"
12159 lt_cv_dlopen="dlopen"
12164 # if libdl is installed we need to link against it
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12166 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12167 if ${ac_cv_lib_dl_dlopen+:} false; then :
12168 $as_echo_n "(cached) " >&6
12170 ac_check_lib_save_LIBS=$LIBS
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12190 if ac_fn_c_try_link "$LINENO"; then :
12191 ac_cv_lib_dl_dlopen=yes
12193 ac_cv_lib_dl_dlopen=no
12195 rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12200 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12201 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12205 lt_cv_dlopen="dyld"
12207 lt_cv_dlopen_self=yes
12214 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12215 if test "x$ac_cv_func_shl_load" = xyes; then :
12216 lt_cv_dlopen="shl_load"
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12219 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12220 if ${ac_cv_lib_dld_shl_load+:} false; then :
12221 $as_echo_n "(cached) " >&6
12223 ac_check_lib_save_LIBS=$LIBS
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12228 /* Override any GCC internal prototype to avoid an error.
12229 Use char because int might match the return type of a GCC
12230 builtin and then its argument prototype would still apply. */
12238 return shl_load ();
12243 if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_lib_dld_shl_load=yes
12246 ac_cv_lib_dld_shl_load=no
12248 rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250 LIBS=$ac_check_lib_save_LIBS
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12253 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12254 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12255 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12257 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12258 if test "x$ac_cv_func_dlopen" = xyes; then :
12259 lt_cv_dlopen="dlopen"
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12263 if ${ac_cv_lib_dl_dlopen+:} false; then :
12264 $as_echo_n "(cached) " >&6
12266 ac_check_lib_save_LIBS=$LIBS
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12286 if ac_fn_c_try_link "$LINENO"; then :
12287 ac_cv_lib_dl_dlopen=yes
12289 ac_cv_lib_dl_dlopen=no
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12297 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12301 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12302 if ${ac_cv_lib_svld_dlopen+:} false; then :
12303 $as_echo_n "(cached) " >&6
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lsvld $LIBS"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 ac_cv_lib_svld_dlopen=yes
12328 ac_cv_lib_svld_dlopen=no
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12335 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12336 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12340 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12341 if ${ac_cv_lib_dld_dld_link+:} false; then :
12342 $as_echo_n "(cached) " >&6
12344 ac_check_lib_save_LIBS=$LIBS
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12359 return dld_link ();
12364 if ac_fn_c_try_link "$LINENO"; then :
12365 ac_cv_lib_dld_dld_link=yes
12367 ac_cv_lib_dld_dld_link=no
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12374 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12375 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12376 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12397 if test "x$lt_cv_dlopen" != xno; then
12403 case $lt_cv_dlopen in
12405 save_CPPFLAGS="$CPPFLAGS"
12406 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12408 save_LDFLAGS="$LDFLAGS"
12409 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12412 LIBS="$lt_cv_dlopen_libs $LIBS"
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12415 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12416 if ${lt_cv_dlopen_self+:} false; then :
12417 $as_echo_n "(cached) " >&6
12419 if test "$cross_compiling" = yes; then :
12420 lt_cv_dlopen_self=cross
12422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12423 lt_status=$lt_dlunknown
12424 cat > conftest.$ac_ext <<_LT_EOF
12425 #line $LINENO "configure"
12426 #include "confdefs.h"
12435 # define LT_DLGLOBAL RTLD_GLOBAL
12438 # define LT_DLGLOBAL DL_GLOBAL
12440 # define LT_DLGLOBAL 0
12444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12445 find out it does not work in some platform. */
12446 #ifndef LT_DLLAZY_OR_NOW
12448 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12451 # define LT_DLLAZY_OR_NOW DL_LAZY
12454 # define LT_DLLAZY_OR_NOW RTLD_NOW
12457 # define LT_DLLAZY_OR_NOW DL_NOW
12459 # define LT_DLLAZY_OR_NOW 0
12466 /* When -fvisbility=hidden is used, assume the code has been annotated
12467 correspondingly for the symbols needed. */
12468 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12469 int fnord () __attribute__((visibility("default")));
12472 int fnord () { return 42; }
12475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12476 int status = $lt_dlunknown;
12480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12483 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12484 else puts (dlerror ());
12486 /* dlclose (self); */
12494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12495 (eval $ac_link) 2>&5
12497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12498 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12499 (./conftest; exit; ) >&5 2>/dev/null
12501 case x$lt_status in
12502 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12503 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12504 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12507 # compilation failed
12508 lt_cv_dlopen_self=no
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12516 $as_echo "$lt_cv_dlopen_self" >&6; }
12518 if test "x$lt_cv_dlopen_self" = xyes; then
12519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12521 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12522 if ${lt_cv_dlopen_self_static+:} false; then :
12523 $as_echo_n "(cached) " >&6
12525 if test "$cross_compiling" = yes; then :
12526 lt_cv_dlopen_self_static=cross
12528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12529 lt_status=$lt_dlunknown
12530 cat > conftest.$ac_ext <<_LT_EOF
12531 #line $LINENO "configure"
12532 #include "confdefs.h"
12541 # define LT_DLGLOBAL RTLD_GLOBAL
12544 # define LT_DLGLOBAL DL_GLOBAL
12546 # define LT_DLGLOBAL 0
12550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12551 find out it does not work in some platform. */
12552 #ifndef LT_DLLAZY_OR_NOW
12554 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12557 # define LT_DLLAZY_OR_NOW DL_LAZY
12560 # define LT_DLLAZY_OR_NOW RTLD_NOW
12563 # define LT_DLLAZY_OR_NOW DL_NOW
12565 # define LT_DLLAZY_OR_NOW 0
12572 /* When -fvisbility=hidden is used, assume the code has been annotated
12573 correspondingly for the symbols needed. */
12574 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12575 int fnord () __attribute__((visibility("default")));
12578 int fnord () { return 42; }
12581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12582 int status = $lt_dlunknown;
12586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12589 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12590 else puts (dlerror ());
12592 /* dlclose (self); */
12600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12601 (eval $ac_link) 2>&5
12603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12604 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12605 (./conftest; exit; ) >&5 2>/dev/null
12607 case x$lt_status in
12608 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12609 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12610 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12613 # compilation failed
12614 lt_cv_dlopen_self_static=no
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12622 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12625 CPPFLAGS="$save_CPPFLAGS"
12626 LDFLAGS="$save_LDFLAGS"
12631 case $lt_cv_dlopen_self in
12632 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12633 *) enable_dlopen_self=unknown ;;
12636 case $lt_cv_dlopen_self_static in
12637 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12638 *) enable_dlopen_self_static=unknown ;;
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12661 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12662 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12663 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12664 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12666 $as_echo "yes" >&6; }
12668 # FIXME - insert some real tests, host_os isn't really good enough
12671 if test -n "$STRIP" ; then
12672 striplib="$STRIP -x"
12673 old_striplib="$STRIP -S"
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12675 $as_echo "yes" >&6; }
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12699 # Report which library types will actually be built
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12701 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12703 $as_echo "$can_build_shared" >&6; }
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12706 $as_echo_n "checking whether to build shared libraries... " >&6; }
12707 test "$can_build_shared" = "no" && enable_shared=no
12709 # On AIX, shared libraries and static libraries use the same namespace, and
12710 # are all built from PIC.
12713 test "$enable_shared" = yes && enable_static=no
12714 if test -n "$RANLIB"; then
12715 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12716 postinstall_cmds='$RANLIB $lib'
12721 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12722 test "$enable_shared" = yes && enable_static=no
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12727 $as_echo "$enable_shared" >&6; }
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12730 $as_echo_n "checking whether to build static libraries... " >&6; }
12731 # Make sure either enable_shared or enable_static is yes.
12732 test "$enable_shared" = yes || enable_static=yes
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12734 $as_echo "$enable_static" >&6; }
12741 ac_cpp='$CPP $CPPFLAGS'
12742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12748 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12749 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12750 (test "X$CXX" != "Xg++"))) ; then
12752 ac_cpp='$CXXCPP $CPPFLAGS'
12753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12757 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12758 if test -z "$CXXCPP"; then
12759 if ${ac_cv_prog_CXXCPP+:} false; then :
12760 $as_echo_n "(cached) " >&6
12762 # Double quotes because CXXCPP needs to be expanded
12763 for CXXCPP in "$CXX -E" "/lib/cpp"
12765 ac_preproc_ok=false
12766 for ac_cxx_preproc_warn_flag in '' yes
12768 # Use a header file that comes with gcc, so configuring glibc
12769 # with a fresh cross-compiler works.
12770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12771 # <limits.h> exists even on freestanding compilers.
12772 # On the NeXT, cc -E runs the code through the compiler's parser,
12773 # not just through cpp. "Syntax error" is here to catch this case.
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12777 # include <limits.h>
12779 # include <assert.h>
12783 if ac_fn_cxx_try_cpp "$LINENO"; then :
12786 # Broken: fails on valid input.
12789 rm -f conftest.err conftest.i conftest.$ac_ext
12791 # OK, works on sane cases. Now check whether nonexistent headers
12792 # can be detected and how.
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12795 #include <ac_nonexistent.h>
12797 if ac_fn_cxx_try_cpp "$LINENO"; then :
12798 # Broken: success on invalid input.
12801 # Passes both tests.
12805 rm -f conftest.err conftest.i conftest.$ac_ext
12808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12809 rm -f conftest.i conftest.err conftest.$ac_ext
12810 if $ac_preproc_ok; then :
12815 ac_cv_prog_CXXCPP=$CXXCPP
12818 CXXCPP=$ac_cv_prog_CXXCPP
12820 ac_cv_prog_CXXCPP=$CXXCPP
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12823 $as_echo "$CXXCPP" >&6; }
12824 ac_preproc_ok=false
12825 for ac_cxx_preproc_warn_flag in '' yes
12827 # Use a header file that comes with gcc, so configuring glibc
12828 # with a fresh cross-compiler works.
12829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12830 # <limits.h> exists even on freestanding compilers.
12831 # On the NeXT, cc -E runs the code through the compiler's parser,
12832 # not just through cpp. "Syntax error" is here to catch this case.
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12836 # include <limits.h>
12838 # include <assert.h>
12842 if ac_fn_cxx_try_cpp "$LINENO"; then :
12845 # Broken: fails on valid input.
12848 rm -f conftest.err conftest.i conftest.$ac_ext
12850 # OK, works on sane cases. Now check whether nonexistent headers
12851 # can be detected and how.
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854 #include <ac_nonexistent.h>
12856 if ac_fn_cxx_try_cpp "$LINENO"; then :
12857 # Broken: success on invalid input.
12860 # Passes both tests.
12864 rm -f conftest.err conftest.i conftest.$ac_ext
12867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12868 rm -f conftest.i conftest.err conftest.$ac_ext
12869 if $ac_preproc_ok; then :
12872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12874 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12875 See \`config.log' for more details" "$LINENO" 5; }
12879 ac_cpp='$CPP $CPPFLAGS'
12880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12885 _lt_caught_CXX_error=yes
12889 ac_cpp='$CXXCPP $CPPFLAGS'
12890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12894 archive_cmds_need_lc_CXX=no
12895 allow_undefined_flag_CXX=
12896 always_export_symbols_CXX=no
12897 archive_expsym_cmds_CXX=
12898 compiler_needs_object_CXX=no
12899 export_dynamic_flag_spec_CXX=
12900 hardcode_direct_CXX=no
12901 hardcode_direct_absolute_CXX=no
12902 hardcode_libdir_flag_spec_CXX=
12903 hardcode_libdir_separator_CXX=
12904 hardcode_minus_L_CXX=no
12905 hardcode_shlibpath_var_CXX=unsupported
12906 hardcode_automatic_CXX=no
12907 inherit_rpath_CXX=no
12909 module_expsym_cmds_CXX=
12910 link_all_deplibs_CXX=unknown
12911 old_archive_cmds_CXX=$old_archive_cmds
12912 reload_flag_CXX=$reload_flag
12913 reload_cmds_CXX=$reload_cmds
12914 no_undefined_flag_CXX=
12915 whole_archive_flag_spec_CXX=
12916 enable_shared_with_static_runtimes_CXX=no
12918 # Source file extension for C++ test sources.
12921 # Object file extension for compiled C++ test sources.
12925 # No sense in running all these tests if we already determined that
12926 # the CXX compiler isn't working. Some variables (like enable_shared)
12927 # are currently assumed to apply to all compilers on this platform,
12928 # and will be corrupted by setting them based on a non-working compiler.
12929 if test "$_lt_caught_CXX_error" != yes; then
12930 # Code to be used in simple compile tests
12931 lt_simple_compile_test_code="int some_variable = 0;"
12933 # Code to be used in simple link tests
12934 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12943 # If no C compiler was specified, use CC.
12946 # If no C compiler flags were specified, use CFLAGS.
12947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12949 # Allow CC to be a program name with arguments.
12953 # save warnings/boilerplate of simple test code
12954 ac_outfile=conftest.$ac_objext
12955 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12957 _lt_compiler_boilerplate=`cat conftest.err`
12960 ac_outfile=conftest.$ac_objext
12961 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12963 _lt_linker_boilerplate=`cat conftest.err`
12967 # Allow CC to be a program name with arguments.
12969 lt_save_CFLAGS=$CFLAGS
12973 lt_save_with_gnu_ld=$with_gnu_ld
12974 lt_save_path_LD=$lt_cv_path_LD
12975 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12976 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12978 $as_unset lt_cv_prog_gnu_ld
12980 if test -n "${lt_cv_path_LDCXX+set}"; then
12981 lt_cv_path_LD=$lt_cv_path_LDCXX
12983 $as_unset lt_cv_path_LD
12985 test -z "${LDCXX+set}" || LD=$LDCXX
12990 for cc_temp in $compiler""; do
12992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12998 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13001 if test -n "$compiler"; then
13002 # We don't want -fno-exception when compiling C++ code, so set the
13003 # no_builtin_flag separately
13004 if test "$GXX" = yes; then
13005 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13007 lt_prog_compiler_no_builtin_flag_CXX=
13010 if test "$GXX" = yes; then
13011 # Set up default GNU C++ configuration
13015 # Check whether --with-gnu-ld was given.
13016 if test "${with_gnu_ld+set}" = set; then :
13017 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13023 if test "$GCC" = yes; then
13024 # Check if gcc -print-prog-name=ld gives a path.
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13026 $as_echo_n "checking for ld used by $CC... " >&6; }
13029 # gcc leaves a trailing carriage return which upsets mingw
13030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13035 # Accept absolute paths.
13037 re_direlt='/[^/][^/]*/\.\./'
13038 # Canonicalize the pathname of ld
13039 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13040 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13041 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13043 test -z "$LD" && LD="$ac_prog"
13046 # If it fails, then pretend we aren't using GCC.
13050 # If it is relative, then search for the first ld in PATH.
13051 with_gnu_ld=unknown
13054 elif test "$with_gnu_ld" = yes; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13056 $as_echo_n "checking for GNU ld... " >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13059 $as_echo_n "checking for non-GNU ld... " >&6; }
13061 if ${lt_cv_path_LD+:} false; then :
13062 $as_echo_n "(cached) " >&6
13064 if test -z "$LD"; then
13065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13066 for ac_dir in $PATH; do
13068 test -z "$ac_dir" && ac_dir=.
13069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13070 lt_cv_path_LD="$ac_dir/$ac_prog"
13071 # Check to see if the program is GNU ld. I'd rather use --version,
13072 # but apparently some variants of GNU ld only accept -v.
13073 # Break only if it was the GNU/non-GNU ld that we prefer.
13074 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13075 *GNU* | *'with BFD'*)
13076 test "$with_gnu_ld" != no && break
13079 test "$with_gnu_ld" != yes && break
13086 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13090 LD="$lt_cv_path_LD"
13091 if test -n "$LD"; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13093 $as_echo "$LD" >&6; }
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13098 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13100 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13101 if ${lt_cv_prog_gnu_ld+:} false; then :
13102 $as_echo_n "(cached) " >&6
13104 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13105 case `$LD -v 2>&1 </dev/null` in
13106 *GNU* | *'with BFD'*)
13107 lt_cv_prog_gnu_ld=yes
13110 lt_cv_prog_gnu_ld=no
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13115 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13116 with_gnu_ld=$lt_cv_prog_gnu_ld
13124 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13125 # archiving commands below assume that GNU ld is being used.
13126 if test "$with_gnu_ld" = yes; then
13127 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128 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'
13130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13131 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13133 # If archive_cmds runs LD, not CC, wlarc should be empty
13134 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13135 # investigate it a little bit more. (MM)
13138 # ancient GNU ld didn't support --whole-archive et. al.
13139 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13140 $GREP 'no-whole-archive' > /dev/null; then
13141 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13143 whole_archive_flag_spec_CXX=
13149 # A generic and very simple default shared library creation
13150 # command for GNU C++ for the case where it uses the native
13151 # linker, instead of GNU ld. If possible, this setting should
13152 # overridden to take advantage of the native linker features on
13153 # the platform it is being used on.
13154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13157 # Commands to make compiler produce verbose output that lists
13158 # what "hidden" libraries, object files and flags are used when
13159 # linking a shared library.
13160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13168 # PORTME: fill in a description of your system's C++ link characteristics
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13170 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13174 # FIXME: insert proper C++ library support
13178 if test "$host_cpu" = ia64; then
13179 # On IA64, the linker does run time linking by default, so we don't
13180 # have to do anything special.
13181 aix_use_runtimelinking=no
13182 exp_sym_flag='-Bexport'
13185 aix_use_runtimelinking=no
13187 # Test if we are trying to use run time linking or normal
13188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13189 # need to do runtime linking.
13190 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13191 for ld_flag in $LDFLAGS; do
13194 aix_use_runtimelinking=yes
13202 exp_sym_flag='-bexport'
13203 no_entry_flag='-bnoentry'
13206 # When large executables or shared objects are built, AIX ld can
13207 # have problems creating the table of contents. If linking a library
13208 # or program results in "error TOC overflow" add -mminimal-toc to
13209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13212 archive_cmds_CXX=''
13213 hardcode_direct_CXX=yes
13214 hardcode_direct_absolute_CXX=yes
13215 hardcode_libdir_separator_CXX=':'
13216 link_all_deplibs_CXX=yes
13217 file_list_spec_CXX='${wl}-f,'
13219 if test "$GXX" = yes; then
13220 case $host_os in aix4.[012]|aix4.[012].*)
13221 # We only want to do this on AIX 4.2 and lower, the check
13222 # below for broken collect2 doesn't work under 4.3+
13223 collect2name=`${CC} -print-prog-name=collect2`
13224 if test -f "$collect2name" &&
13225 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13227 # We have reworked collect2
13230 # We have old collect2
13231 hardcode_direct_CXX=unsupported
13232 # It fails to find uninstalled libraries when the uninstalled
13233 # path is not listed in the libpath. Setting hardcode_minus_L
13234 # to unsupported forces relinking
13235 hardcode_minus_L_CXX=yes
13236 hardcode_libdir_flag_spec_CXX='-L$libdir'
13237 hardcode_libdir_separator_CXX=
13240 shared_flag='-shared'
13241 if test "$aix_use_runtimelinking" = yes; then
13242 shared_flag="$shared_flag "'${wl}-G'
13246 if test "$host_cpu" = ia64; then
13247 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13248 # chokes on -Wl,-G. The following line is correct:
13251 if test "$aix_use_runtimelinking" = yes; then
13252 shared_flag='${wl}-G'
13254 shared_flag='${wl}-bM:SRE'
13259 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13260 # It seems that -bexpall does not export symbols beginning with
13261 # underscore (_), so it is better to generate a list of symbols to
13263 always_export_symbols_CXX=yes
13264 if test "$aix_use_runtimelinking" = yes; then
13265 # Warning - without using the other runtime loading flags (-brtl),
13266 # -berok will link without error, but may produce a broken library.
13267 allow_undefined_flag_CXX='-berok'
13268 # Determine the default libpath from the value encoded in an empty
13270 if test "${lt_cv_aix_libpath+set}" = set; then
13271 aix_libpath=$lt_cv_aix_libpath
13273 if ${lt_cv_aix_libpath__CXX+:} false; then :
13274 $as_echo_n "(cached) " >&6
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13287 if ac_fn_cxx_try_link "$LINENO"; then :
13289 lt_aix_libpath_sed='
13290 /Import File Strings/,/^$/ {
13292 s/^0 *\([^ ]*\) *$/\1/
13296 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13297 # Check for a 64-bit object if we didn't find anything.
13298 if test -z "$lt_cv_aix_libpath__CXX"; then
13299 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 if test -z "$lt_cv_aix_libpath__CXX"; then
13305 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13310 aix_libpath=$lt_cv_aix_libpath__CXX
13313 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13315 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"
13317 if test "$host_cpu" = ia64; then
13318 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13319 allow_undefined_flag_CXX="-z nodefs"
13320 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"
13322 # Determine the default libpath from the value encoded in an
13323 # empty executable.
13324 if test "${lt_cv_aix_libpath+set}" = set; then
13325 aix_libpath=$lt_cv_aix_libpath
13327 if ${lt_cv_aix_libpath__CXX+:} false; then :
13328 $as_echo_n "(cached) " >&6
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13341 if ac_fn_cxx_try_link "$LINENO"; then :
13343 lt_aix_libpath_sed='
13344 /Import File Strings/,/^$/ {
13346 s/^0 *\([^ ]*\) *$/\1/
13350 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13351 # Check for a 64-bit object if we didn't find anything.
13352 if test -z "$lt_cv_aix_libpath__CXX"; then
13353 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 if test -z "$lt_cv_aix_libpath__CXX"; then
13359 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13364 aix_libpath=$lt_cv_aix_libpath__CXX
13367 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13368 # Warning - without using the other run time loading flags,
13369 # -berok will link without error, but may produce a broken library.
13370 no_undefined_flag_CXX=' ${wl}-bernotok'
13371 allow_undefined_flag_CXX=' ${wl}-berok'
13372 if test "$with_gnu_ld" = yes; then
13373 # We only use this code for GNU lds that support --whole-archive.
13374 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13376 # Exported symbols can be pulled into shared objects from archives
13377 whole_archive_flag_spec_CXX='$convenience'
13379 archive_cmds_need_lc_CXX=yes
13380 # This is similar to how AIX traditionally builds its shared
13382 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'
13388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13389 allow_undefined_flag_CXX=unsupported
13390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13391 # support --undefined. This deserves some investigation. FIXME
13392 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13399 case $cc_basename in
13401 # FIXME: insert proper C++ library support
13407 cygwin* | mingw* | pw32* | cegcc*)
13408 case $GXX,$cc_basename in
13411 # hardcode_libdir_flag_spec is actually meaningless, as there is
13412 # no search path for DLLs.
13413 hardcode_libdir_flag_spec_CXX=' '
13414 allow_undefined_flag_CXX=unsupported
13415 always_export_symbols_CXX=yes
13416 file_list_spec_CXX='@'
13417 # Tell ltmain to make .lib files, not .a files.
13419 # Tell ltmain to make .dll files, not .so files.
13421 # FIXME: Setting linknames here is a bad hack.
13422 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13423 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13424 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13426 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13428 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13430 # The linker will not automatically build a static lib if we build a DLL.
13431 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13432 enable_shared_with_static_runtimes_CXX=yes
13434 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13435 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13436 lt_tool_outputfile="@TOOL_OUTPUT@"~
13437 case $lt_outputfile in
13440 lt_outputfile="$lt_outputfile.exe"
13441 lt_tool_outputfile="$lt_tool_outputfile.exe"
13444 func_to_tool_file "$lt_outputfile"~
13445 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13446 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13447 $RM "$lt_outputfile.manifest";
13452 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13453 # as there is no search path for DLLs.
13454 hardcode_libdir_flag_spec_CXX='-L$libdir'
13455 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13456 allow_undefined_flag_CXX=unsupported
13457 always_export_symbols_CXX=no
13458 enable_shared_with_static_runtimes_CXX=yes
13460 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13461 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'
13462 # If the export-symbols file already is a .def file (1st line
13463 # is EXPORTS), use it as is; otherwise, prepend...
13464 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13465 cp $export_symbols $output_objdir/$soname.def;
13467 echo EXPORTS > $output_objdir/$soname.def;
13468 cat $export_symbols >> $output_objdir/$soname.def;
13470 $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'
13477 darwin* | rhapsody*)
13480 archive_cmds_need_lc_CXX=no
13481 hardcode_direct_CXX=no
13482 hardcode_automatic_CXX=yes
13483 hardcode_shlibpath_var_CXX=unsupported
13484 if test "$lt_cv_ld_force_load" = "yes"; then
13485 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\"`'
13488 whole_archive_flag_spec_CXX=''
13490 link_all_deplibs_CXX=yes
13491 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13492 case $cc_basename in
13493 ifort*) _lt_dar_can_shared=yes ;;
13494 *) _lt_dar_can_shared=$GCC ;;
13496 if test "$_lt_dar_can_shared" = "yes"; then
13497 output_verbose_link_cmd=func_echo_all
13498 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}"
13499 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13500 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}"
13501 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}"
13502 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13503 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}"
13504 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}"
13514 case $cc_basename in
13516 # FIXME: insert proper C++ library support
13520 # Green Hills C++ Compiler
13521 # FIXME: insert proper C++ library support
13525 # FIXME: insert proper C++ library support
13532 # C++ shared libraries reported to be fairly broken before
13538 archive_cmds_need_lc_CXX=no
13541 freebsd* | dragonfly*)
13542 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13548 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13549 link_all_deplibs_CXX=yes
13553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13554 hardcode_libdir_separator_CXX=:
13555 export_dynamic_flag_spec_CXX='${wl}-E'
13556 hardcode_direct_CXX=yes
13557 hardcode_minus_L_CXX=yes # Not in the search PATH,
13558 # but as the default
13559 # location of the library.
13561 case $cc_basename in
13563 # FIXME: insert proper C++ library support
13567 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'
13568 # Commands to make compiler produce verbose output that lists
13569 # what "hidden" libraries, object files and flags are used when
13570 # linking a shared library.
13572 # There doesn't appear to be a way to prevent this compiler from
13573 # explicitly linking system object files so we need to strip them
13574 # from the output so that they don't get included in the library
13576 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"'
13579 if test "$GXX" = yes; then
13580 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'
13582 # FIXME: insert proper C++ library support
13590 if test $with_gnu_ld = no; then
13591 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13592 hardcode_libdir_separator_CXX=:
13598 export_dynamic_flag_spec_CXX='${wl}-E'
13604 hardcode_direct_CXX=no
13605 hardcode_shlibpath_var_CXX=no
13608 hardcode_direct_CXX=yes
13609 hardcode_direct_absolute_CXX=yes
13610 hardcode_minus_L_CXX=yes # Not in the search PATH,
13611 # but as the default
13612 # location of the library.
13616 case $cc_basename in
13618 # FIXME: insert proper C++ library support
13624 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13627 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13630 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13633 # Commands to make compiler produce verbose output that lists
13634 # what "hidden" libraries, object files and flags are used when
13635 # linking a shared library.
13637 # There doesn't appear to be a way to prevent this compiler from
13638 # explicitly linking system object files so we need to strip them
13639 # from the output so that they don't get included in the library
13641 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"'
13644 if test "$GXX" = yes; then
13645 if test $with_gnu_ld = no; then
13648 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13651 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13654 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'
13659 # FIXME: insert proper C++ library support
13667 hardcode_direct_CXX=no
13668 hardcode_shlibpath_var_CXX=no
13669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13670 export_dynamic_flag_spec_CXX='${wl}-E'
13671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13672 # Instead, shared libraries are loaded at an image base (0x10000000 by
13673 # default) and relocated if they conflict, which is a slow very memory
13674 # consuming and fragmenting process. To avoid this, we pick a random,
13675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13676 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13677 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'
13678 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'
13681 case $cc_basename in
13684 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'
13686 # Archives containing C++ object files must be created using
13687 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13688 # necessary to make sure instantiated templates are included
13690 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13693 if test "$GXX" = yes; then
13694 if test "$with_gnu_ld" = no; then
13695 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'
13697 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'
13700 link_all_deplibs_CXX=yes
13703 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13704 hardcode_libdir_separator_CXX=:
13705 inherit_rpath_CXX=yes
13708 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13709 case $cc_basename in
13711 # Kuck and Associates, Inc. (KAI) C++ Compiler
13713 # KCC will only create a shared library if the output file
13714 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13715 # to its proper name (with version) after linking.
13716 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'
13717 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'
13718 # Commands to make compiler produce verbose output that lists
13719 # what "hidden" libraries, object files and flags are used when
13720 # linking a shared library.
13722 # There doesn't appear to be a way to prevent this compiler from
13723 # explicitly linking system object files so we need to strip them
13724 # from the output so that they don't get included in the library
13726 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"'
13728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13731 # Archives containing C++ object files must be created using
13732 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13733 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13738 # version 8.0 and above of icpc choke on multiply defined symbols
13739 # if we add $predep_objects and $postdep_objects, however 7.1 and
13740 # earlier do not add the objects themselves.
13741 case `$CC -V 2>&1` in
13743 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744 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'
13746 *) # Version 8.0 or newer
13749 ia64*) tmp_idyn=' -i_dynamic';;
13751 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13752 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'
13755 archive_cmds_need_lc_CXX=no
13756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13758 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13761 # Portland Group C++ compiler
13763 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13764 prelink_cmds_CXX='tpldir=Template.dir~
13766 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13767 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13768 old_archive_cmds_CXX='tpldir=Template.dir~
13770 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13771 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13773 archive_cmds_CXX='tpldir=Template.dir~
13775 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13776 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13777 archive_expsym_cmds_CXX='tpldir=Template.dir~
13779 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13780 $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'
13782 *) # Version 6 and above use weak symbols
13783 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13784 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'
13788 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13790 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'
13794 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13795 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'
13797 runpath_var=LD_RUN_PATH
13798 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13799 hardcode_libdir_separator_CXX=:
13801 # Commands to make compiler produce verbose output that lists
13802 # what "hidden" libraries, object files and flags are used when
13803 # linking a shared library.
13805 # There doesn't appear to be a way to prevent this compiler from
13806 # explicitly linking system object files so we need to strip them
13807 # from the output so that they don't get included in the library
13809 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'
13811 xl* | mpixl* | bgxl*)
13812 # IBM XL 8.0 on PPC, with GNU ld
13813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13815 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816 if test "x$supports_anon_versioning" = xyes; then
13817 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13819 echo "local: *; };" >> $output_objdir/$libname.ver~
13820 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13824 case `$CC -V 2>&1 | sed 5q` in
13827 no_undefined_flag_CXX=' -zdefs'
13828 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13829 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'
13830 hardcode_libdir_flag_spec_CXX='-R$libdir'
13831 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'
13832 compiler_needs_object_CXX=yes
13834 # Not sure whether something based on
13835 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13837 output_verbose_link_cmd='func_echo_all'
13839 # Archives containing C++ object files must be created using
13840 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13841 # necessary to make sure instantiated templates are included
13843 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13851 # FIXME: insert proper C++ library support
13856 # FIXME: insert proper C++ library support
13861 case $cc_basename in
13863 # FIXME: insert proper C++ library support
13867 # FIXME: insert proper C++ library support
13874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13875 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13877 hardcode_libdir_flag_spec_CXX='-R$libdir'
13878 hardcode_direct_CXX=yes
13879 hardcode_shlibpath_var_CXX=no
13881 # Workaround some broken pre-1.5 toolchains
13882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13890 # C++ shared libraries are fairly broken
13895 if test -f /usr/libexec/ld.so; then
13896 hardcode_direct_CXX=yes
13897 hardcode_shlibpath_var_CXX=no
13898 hardcode_direct_absolute_CXX=yes
13899 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13902 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13903 export_dynamic_flag_spec_CXX='${wl}-E'
13904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13906 output_verbose_link_cmd=func_echo_all
13912 osf3* | osf4* | osf5*)
13913 case $cc_basename in
13915 # Kuck and Associates, Inc. (KAI) C++ Compiler
13917 # KCC will only create a shared library if the output file
13918 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13919 # to its proper name (with version) after linking.
13920 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'
13922 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13923 hardcode_libdir_separator_CXX=:
13925 # Archives containing C++ object files must be created using
13926 # the KAI C++ compiler.
13928 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13929 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13933 # Rational C++ 2.4.1
13934 # FIXME: insert proper C++ library support
13940 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13941 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'
13942 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13945 allow_undefined_flag_CXX=' -expect_unresolved \*'
13946 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'
13947 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13948 echo "-hidden">> $lib.exp~
13949 $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~
13951 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13955 hardcode_libdir_separator_CXX=:
13957 # Commands to make compiler produce verbose output that lists
13958 # what "hidden" libraries, object files and flags are used when
13959 # linking a shared library.
13961 # There doesn't appear to be a way to prevent this compiler from
13962 # explicitly linking system object files so we need to strip them
13963 # from the output so that they don't get included in the library
13965 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"'
13968 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13969 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13972 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'
13975 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'
13979 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13980 hardcode_libdir_separator_CXX=:
13982 # Commands to make compiler produce verbose output that lists
13983 # what "hidden" libraries, object files and flags are used when
13984 # linking a shared library.
13985 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13988 # FIXME: insert proper C++ library support
13996 # FIXME: insert proper C++ library support
14001 case $cc_basename in
14004 # FIXME: insert proper C++ library support
14009 # FIXME: insert proper C++ library support
14013 # FIXME: insert proper C++ library support
14020 case $cc_basename in
14022 # Sun C++ 4.2, 5.x and Centerline C++
14023 archive_cmds_need_lc_CXX=yes
14024 no_undefined_flag_CXX=' -zdefs'
14025 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14026 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14027 $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'
14029 hardcode_libdir_flag_spec_CXX='-R$libdir'
14030 hardcode_shlibpath_var_CXX=no
14032 solaris2.[0-5] | solaris2.[0-5].*) ;;
14034 # The compiler driver will combine and reorder linker options,
14035 # but understands `-z linker_flag'.
14036 # Supported since Solaris 2.6 (maybe 2.5.1?)
14037 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14040 link_all_deplibs_CXX=yes
14042 output_verbose_link_cmd='func_echo_all'
14044 # Archives containing C++ object files must be created using
14045 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14046 # necessary to make sure instantiated templates are included
14048 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14051 # Green Hills C++ Compiler
14052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14054 # The C++ compiler must be used to create the archive.
14055 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14058 # GNU C++ compiler with Solaris linker
14059 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14060 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14061 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14062 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14063 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14064 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14066 # Commands to make compiler produce verbose output that lists
14067 # what "hidden" libraries, object files and flags are used when
14068 # linking a shared library.
14069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14071 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14073 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14074 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14075 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14077 # Commands to make compiler produce verbose output that lists
14078 # what "hidden" libraries, object files and flags are used when
14079 # linking a shared library.
14080 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14083 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14085 solaris2.[0-5] | solaris2.[0-5].*) ;;
14087 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14096 no_undefined_flag_CXX='${wl}-z,text'
14097 archive_cmds_need_lc_CXX=no
14098 hardcode_shlibpath_var_CXX=no
14099 runpath_var='LD_RUN_PATH'
14101 case $cc_basename in
14103 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14104 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14107 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14108 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14113 sysv5* | sco3.2v5* | sco5v6*)
14114 # Note: We can NOT use -z defs as we might desire, because we do not
14115 # link with -lc, and that would cause any symbols used from libc to
14116 # always be unresolved, which means just about no library would
14117 # ever link correctly. If we're not using GNU ld we use -z text
14118 # though, which does catch some bad symbols but isn't as heavy-handed
14120 no_undefined_flag_CXX='${wl}-z,text'
14121 allow_undefined_flag_CXX='${wl}-z,nodefs'
14122 archive_cmds_need_lc_CXX=no
14123 hardcode_shlibpath_var_CXX=no
14124 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14125 hardcode_libdir_separator_CXX=':'
14126 link_all_deplibs_CXX=yes
14127 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14128 runpath_var='LD_RUN_PATH'
14130 case $cc_basename in
14132 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14133 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14134 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14135 '"$old_archive_cmds_CXX"
14136 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14137 '"$reload_cmds_CXX"
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'
14147 case $cc_basename in
14149 # NonStop-UX NCC 3.20
14150 # FIXME: insert proper C++ library support
14154 # FIXME: insert proper C++ library support
14161 # FIXME: insert proper C++ library support
14166 # FIXME: insert proper C++ library support
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14172 $as_echo "$ld_shlibs_CXX" >&6; }
14173 test "$ld_shlibs_CXX" = no && can_build_shared=no
14179 ## There is no encapsulation within the following macros, do not change
14180 ## the running order or otherwise move them around unless you know exactly
14181 ## what you are doing...
14182 # Dependencies to place before and after the object being linked:
14183 predep_objects_CXX=
14184 postdep_objects_CXX=
14187 compiler_lib_search_path_CXX=
14189 cat > conftest.$ac_ext <<_LT_EOF
14193 Foo (void) { a = 0; }
14200 _lt_libdeps_save_CFLAGS=$CFLAGS
14201 case "$CC $CFLAGS " in #(
14202 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14203 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14204 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14208 (eval $ac_compile) 2>&5
14210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14211 test $ac_status = 0; }; then
14212 # Parse the compiler output and extract the necessary
14213 # objects, libraries and library flags.
14215 # Sentinel used to keep track of whether or not we are before
14216 # the conftest object file.
14217 pre_test_object_deps_done=no
14219 for p in `eval "$output_verbose_link_cmd"`; do
14220 case ${prev}${p} in
14223 # Some compilers place space between "-{L,R}" and the path.
14224 # Remove the space.
14225 if test $p = "-L" ||
14226 test $p = "-R"; then
14231 # Expand the sysroot to ease extracting the directories later.
14232 if test -z "$prev"; then
14234 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14235 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14236 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14240 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14242 if test "$pre_test_object_deps_done" = no; then
14245 # Internal compiler library paths should come after those
14246 # provided the user. The postdeps already come after the
14247 # user supplied libs so there is no need to process them.
14248 if test -z "$compiler_lib_search_path_CXX"; then
14249 compiler_lib_search_path_CXX="${prev}${p}"
14251 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14254 # The "-l" case would never come before the object being
14255 # linked, so don't bother handling this case.
14258 if test -z "$postdeps_CXX"; then
14259 postdeps_CXX="${prev}${p}"
14261 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14267 *.lto.$objext) ;; # Ignore GCC LTO objects
14269 # This assumes that the test object file only shows up
14270 # once in the compiler output.
14271 if test "$p" = "conftest.$objext"; then
14272 pre_test_object_deps_done=yes
14276 if test "$pre_test_object_deps_done" = no; then
14277 if test -z "$predep_objects_CXX"; then
14278 predep_objects_CXX="$p"
14280 predep_objects_CXX="$predep_objects_CXX $p"
14283 if test -z "$postdep_objects_CXX"; then
14284 postdep_objects_CXX="$p"
14286 postdep_objects_CXX="$postdep_objects_CXX $p"
14291 *) ;; # Ignore the rest.
14299 echo "libtool.m4: error: problem compiling CXX test program"
14302 $RM -f confest.$objext
14303 CFLAGS=$_lt_libdeps_save_CFLAGS
14305 # PORTME: override above test on systems where it is broken
14308 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14309 # hack all around it, let's just trust "g++" to DTRT.
14310 predep_objects_CXX=
14311 postdep_objects_CXX=
14316 case `$CC -V 2>&1 | sed 5q` in
14320 # The more standards-conforming stlport4 library is
14321 # incompatible with the Cstd library. Avoid specifying
14322 # it if it's in CXXFLAGS. Ignore libCrun as
14323 # -library=stlport4 depends on it.
14324 case " $CXX $CXXFLAGS " in
14325 *" -library=stlport4 "*)
14326 solaris_use_stlport4=yes
14330 if test "$solaris_use_stlport4" != yes; then
14331 postdeps_CXX='-library=Cstd -library=Crun'
14338 case $cc_basename in
14340 # The more standards-conforming stlport4 library is
14341 # incompatible with the Cstd library. Avoid specifying
14342 # it if it's in CXXFLAGS. Ignore libCrun as
14343 # -library=stlport4 depends on it.
14344 case " $CXX $CXXFLAGS " in
14345 *" -library=stlport4 "*)
14346 solaris_use_stlport4=yes
14350 # Adding this requires a known-good setup of shared libraries for
14351 # Sun compiler versions before 5.6, else PIC objects from an old
14352 # archive will be linked into the output, leading to subtle bugs.
14353 if test "$solaris_use_stlport4" != yes; then
14354 postdeps_CXX='-library=Cstd -library=Crun'
14362 case " $postdeps_CXX " in
14363 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14365 compiler_lib_search_dirs_CXX=
14366 if test -n "${compiler_lib_search_path_CXX}"; then
14367 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14400 lt_prog_compiler_wl_CXX=
14401 lt_prog_compiler_pic_CXX=
14402 lt_prog_compiler_static_CXX=
14405 # C++ specific cases for pic, static, wl, etc.
14406 if test "$GXX" = yes; then
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 lt_prog_compiler_static_CXX='-static'
14412 # All AIX code is PIC.
14413 if test "$host_cpu" = ia64; then
14414 # AIX 5 now supports IA64 processor
14415 lt_prog_compiler_static_CXX='-Bstatic'
14422 # see comment about AmigaOS4 .so support
14423 lt_prog_compiler_pic_CXX='-fPIC'
14426 # FIXME: we need at least 68020 code to build shared libraries, but
14427 # adding the `-m68020' flag to GCC prevents building anything better,
14429 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14434 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14435 # PIC is the default for these OSes.
14437 mingw* | cygwin* | os2* | pw32* | cegcc*)
14438 # This hack is so that the source file can tell whether it is being
14439 # built for inclusion in a dll (and should export symbols for example).
14440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14441 # (--disable-auto-import) libraries
14442 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14444 darwin* | rhapsody*)
14445 # PIC is the default on this platform
14446 # Common symbols not allowed in MH_DYLIB files
14447 lt_prog_compiler_pic_CXX='-fno-common'
14450 # DJGPP does not support shared libraries at all
14451 lt_prog_compiler_pic_CXX=
14454 # PIC is the default for Haiku.
14455 # The "-static" flag exists, but is broken.
14456 lt_prog_compiler_static_CXX=
14459 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14460 # Instead, we relocate shared libraries at runtime.
14463 if test -d /usr/nec; then
14464 lt_prog_compiler_pic_CXX=-Kconform_pic
14468 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14469 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14470 # sets the default TLS model and affects inlining.
14475 lt_prog_compiler_pic_CXX='-fPIC'
14480 # QNX uses GNU C++, but need to define -shared option too, otherwise
14481 # it will coredump.
14482 lt_prog_compiler_pic_CXX='-fPIC -shared'
14485 lt_prog_compiler_pic_CXX='-fPIC'
14491 # All AIX code is PIC.
14492 if test "$host_cpu" = ia64; then
14493 # AIX 5 now supports IA64 processor
14494 lt_prog_compiler_static_CXX='-Bstatic'
14496 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14500 case $cc_basename in
14502 # Green Hills C++ Compiler
14503 # _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"
14507 mingw* | cygwin* | os2* | pw32* | cegcc*)
14508 # This hack is so that the source file can tell whether it is being
14509 # built for inclusion in a dll (and should export symbols for example).
14510 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14513 case $cc_basename in
14515 lt_prog_compiler_pic_CXX='-KPIC'
14518 # Green Hills C++ Compiler
14519 lt_prog_compiler_pic_CXX='-pic'
14525 freebsd* | dragonfly*)
14526 # FreeBSD uses GNU C++
14528 hpux9* | hpux10* | hpux11*)
14529 case $cc_basename in
14531 lt_prog_compiler_wl_CXX='-Wl,'
14532 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14533 if test "$host_cpu" != ia64; then
14534 lt_prog_compiler_pic_CXX='+Z'
14538 lt_prog_compiler_wl_CXX='-Wl,'
14539 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14545 lt_prog_compiler_pic_CXX='+Z'
14554 # This is c89, which is MS Visual C++ (no shared libs)
14555 # Anyone wants to do a port?
14557 irix5* | irix6* | nonstopux*)
14558 case $cc_basename in
14560 lt_prog_compiler_wl_CXX='-Wl,'
14561 lt_prog_compiler_static_CXX='-non_shared'
14562 # CC pic flag -KPIC is the default.
14568 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14569 case $cc_basename in
14572 lt_prog_compiler_wl_CXX='--backend -Wl,'
14573 lt_prog_compiler_pic_CXX='-fPIC'
14576 # old Intel C++ for x86_64 which still supported -KPIC.
14577 lt_prog_compiler_wl_CXX='-Wl,'
14578 lt_prog_compiler_pic_CXX='-KPIC'
14579 lt_prog_compiler_static_CXX='-static'
14582 # Intel C++, used to be incompatible with GCC.
14583 # ICC 10 doesn't accept -KPIC any more.
14584 lt_prog_compiler_wl_CXX='-Wl,'
14585 lt_prog_compiler_pic_CXX='-fPIC'
14586 lt_prog_compiler_static_CXX='-static'
14589 # Portland Group C++ compiler
14590 lt_prog_compiler_wl_CXX='-Wl,'
14591 lt_prog_compiler_pic_CXX='-fpic'
14592 lt_prog_compiler_static_CXX='-Bstatic'
14596 # Make sure the PIC flag is empty. It appears that all Alpha
14597 # Linux and Compaq Tru64 Unix objects are PIC.
14598 lt_prog_compiler_pic_CXX=
14599 lt_prog_compiler_static_CXX='-non_shared'
14601 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14602 # IBM XL 8.0, 9.0 on PPC and BlueGene
14603 lt_prog_compiler_wl_CXX='-Wl,'
14604 lt_prog_compiler_pic_CXX='-qpic'
14605 lt_prog_compiler_static_CXX='-qstaticlink'
14608 case `$CC -V 2>&1 | sed 5q` in
14611 lt_prog_compiler_pic_CXX='-KPIC'
14612 lt_prog_compiler_static_CXX='-Bstatic'
14613 lt_prog_compiler_wl_CXX='-Qoption ld '
14624 case $cc_basename in
14626 lt_prog_compiler_pic_CXX='-W c,exportall'
14632 netbsd* | netbsdelf*-gnu)
14635 # QNX uses GNU C++, but need to define -shared option too, otherwise
14636 # it will coredump.
14637 lt_prog_compiler_pic_CXX='-fPIC -shared'
14639 osf3* | osf4* | osf5*)
14640 case $cc_basename in
14642 lt_prog_compiler_wl_CXX='--backend -Wl,'
14645 # Rational C++ 2.4.1
14646 lt_prog_compiler_pic_CXX='-pic'
14649 # Digital/Compaq C++
14650 lt_prog_compiler_wl_CXX='-Wl,'
14651 # Make sure the PIC flag is empty. It appears that all Alpha
14652 # Linux and Compaq Tru64 Unix objects are PIC.
14653 lt_prog_compiler_pic_CXX=
14654 lt_prog_compiler_static_CXX='-non_shared'
14663 case $cc_basename in
14665 # Sun C++ 4.2, 5.x and Centerline C++
14666 lt_prog_compiler_pic_CXX='-KPIC'
14667 lt_prog_compiler_static_CXX='-Bstatic'
14668 lt_prog_compiler_wl_CXX='-Qoption ld '
14671 # Green Hills C++ Compiler
14672 lt_prog_compiler_pic_CXX='-PIC'
14679 case $cc_basename in
14682 lt_prog_compiler_pic_CXX='-pic'
14683 lt_prog_compiler_static_CXX='-Bstatic'
14687 lt_prog_compiler_pic_CXX='-pic'
14693 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14694 case $cc_basename in
14696 lt_prog_compiler_wl_CXX='-Wl,'
14697 lt_prog_compiler_pic_CXX='-KPIC'
14698 lt_prog_compiler_static_CXX='-Bstatic'
14703 case $cc_basename in
14705 # NonStop-UX NCC 3.20
14706 lt_prog_compiler_pic_CXX='-KPIC'
14715 lt_prog_compiler_can_build_shared_CXX=no
14721 # For platforms which do not support PIC, -DPIC is meaningless:
14723 lt_prog_compiler_pic_CXX=
14726 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14731 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14732 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14733 $as_echo_n "(cached) " >&6
14735 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14738 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14739 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14742 # Check to make sure the PIC flag actually works.
14744 if test -n "$lt_prog_compiler_pic_CXX"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14746 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14747 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14748 $as_echo_n "(cached) " >&6
14750 lt_cv_prog_compiler_pic_works_CXX=no
14751 ac_outfile=conftest.$ac_objext
14752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14753 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14754 # Insert the option either (1) after the last *FLAGS variable, or
14755 # (2) before a word containing "conftest.", or (3) at the end.
14756 # Note that $ac_compile itself does not contain backslashes and begins
14757 # with a dollar sign (not a hyphen), so the echo should work correctly.
14758 # The option is referenced via a variable to avoid confusing sed.
14759 lt_compile=`echo "$ac_compile" | $SED \
14760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14762 -e 's:$: $lt_compiler_flag:'`
14763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14764 (eval "$lt_compile" 2>conftest.err)
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 if (exit $ac_status) && test -s "$ac_outfile"; then
14769 # The compiler can only warn and ignore the option if not recognized
14770 # So say no if there are warnings other than the usual output.
14771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14774 lt_cv_prog_compiler_pic_works_CXX=yes
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14781 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14783 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14784 case $lt_prog_compiler_pic_CXX in
14786 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14789 lt_prog_compiler_pic_CXX=
14790 lt_prog_compiler_can_build_shared_CXX=no
14800 # Check to make sure the static flag actually works.
14802 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14804 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14805 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14806 $as_echo_n "(cached) " >&6
14808 lt_cv_prog_compiler_static_works_CXX=no
14809 save_LDFLAGS="$LDFLAGS"
14810 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14811 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14813 # The linker can only warn and ignore the option if not recognized
14814 # So say no if there are warnings
14815 if test -s conftest.err; then
14816 # Append any errors to the config.log.
14817 cat conftest.err 1>&5
14818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14820 if diff conftest.exp conftest.er2 >/dev/null; then
14821 lt_cv_prog_compiler_static_works_CXX=yes
14824 lt_cv_prog_compiler_static_works_CXX=yes
14828 LDFLAGS="$save_LDFLAGS"
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14832 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14834 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14837 lt_prog_compiler_static_CXX=
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14844 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14845 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14846 $as_echo_n "(cached) " >&6
14848 lt_cv_prog_compiler_c_o_CXX=no
14849 $RM -r conftest 2>/dev/null
14853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14855 lt_compiler_flag="-o out/conftest2.$ac_objext"
14856 # Insert the option either (1) after the last *FLAGS variable, or
14857 # (2) before a word containing "conftest.", or (3) at the end.
14858 # Note that $ac_compile itself does not contain backslashes and begins
14859 # with a dollar sign (not a hyphen), so the echo should work correctly.
14860 lt_compile=`echo "$ac_compile" | $SED \
14861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14863 -e 's:$: $lt_compiler_flag:'`
14864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14865 (eval "$lt_compile" 2>out/conftest.err)
14867 cat out/conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14871 # The compiler can only warn and ignore the option if not recognized
14872 # So say no if there are warnings
14873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14874 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14875 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14876 lt_cv_prog_compiler_c_o_CXX=yes
14881 # SGI C++ compiler will create directory out/ii_files/ for
14882 # template instantiation
14883 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14884 $RM out/* && rmdir out
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14891 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14896 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14897 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14898 $as_echo_n "(cached) " >&6
14900 lt_cv_prog_compiler_c_o_CXX=no
14901 $RM -r conftest 2>/dev/null
14905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14907 lt_compiler_flag="-o out/conftest2.$ac_objext"
14908 # Insert the option either (1) after the last *FLAGS variable, or
14909 # (2) before a word containing "conftest.", or (3) at the end.
14910 # Note that $ac_compile itself does not contain backslashes and begins
14911 # with a dollar sign (not a hyphen), so the echo should work correctly.
14912 lt_compile=`echo "$ac_compile" | $SED \
14913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14915 -e 's:$: $lt_compiler_flag:'`
14916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14917 (eval "$lt_compile" 2>out/conftest.err)
14919 cat out/conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14923 # The compiler can only warn and ignore the option if not recognized
14924 # So say no if there are warnings
14925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14928 lt_cv_prog_compiler_c_o_CXX=yes
14933 # SGI C++ compiler will create directory out/ii_files/ for
14934 # template instantiation
14935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14936 $RM out/* && rmdir out
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14943 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14948 hard_links="nottested"
14949 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14950 # do not overwrite the value of need_locks provided by the user
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14952 $as_echo_n "checking if we can lock with hard links... " >&6; }
14955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14957 ln conftest.a conftest.b 2>&5 || hard_links=no
14958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14960 $as_echo "$hard_links" >&6; }
14961 if test "$hard_links" = no; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14963 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14973 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14975 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14976 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14979 # If we're using GNU nm, then we don't want the "-C" option.
14980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14981 # Also, AIX nm treats weak defined symbols like other global defined
14982 # symbols, whereas GNU nm marks them as "W".
14983 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14984 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'
14986 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'
14990 export_symbols_cmds_CXX="$ltdll_cmds"
14992 cygwin* | mingw* | cegcc*)
14993 case $cc_basename in
14995 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14998 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'
14999 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15003 linux* | k*bsd*-gnu | gnu*)
15004 link_all_deplibs_CXX=no
15007 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15012 $as_echo "$ld_shlibs_CXX" >&6; }
15013 test "$ld_shlibs_CXX" = no && can_build_shared=no
15015 with_gnu_ld_CXX=$with_gnu_ld
15023 # Do we need to explicitly link libc?
15025 case "x$archive_cmds_need_lc_CXX" in
15027 # Assume -lc should be added
15028 archive_cmds_need_lc_CXX=yes
15030 if test "$enable_shared" = yes && test "$GCC" = yes; then
15031 case $archive_cmds_CXX in
15033 # FIXME: we may have to deal with multi-command sequences.
15036 # Test whether the compiler implicitly links with -lc since on some
15037 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15038 # to ld, don't add -lc before -lgcc.
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15040 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15041 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15042 $as_echo_n "(cached) " >&6
15045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15048 (eval $ac_compile) 2>&5
15050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051 test $ac_status = 0; } 2>conftest.err; then
15054 libobjs=conftest.$ac_objext
15056 wl=$lt_prog_compiler_wl_CXX
15057 pic_flag=$lt_prog_compiler_pic_CXX
15063 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15064 allow_undefined_flag_CXX=
15065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15066 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069 test $ac_status = 0; }
15071 lt_cv_archive_cmds_need_lc_CXX=no
15073 lt_cv_archive_cmds_need_lc_CXX=yes
15075 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15077 cat conftest.err 1>&5
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15083 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15084 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15153 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15155 library_names_spec=
15156 libname_spec='lib$name'
15160 postuninstall_cmds=
15164 shlibpath_overrides_runpath=unknown
15166 dynamic_linker="$host_os ld.so"
15167 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15168 need_lib_prefix=unknown
15169 hardcode_into_libs=no
15171 # when you set need_version to no, make sure it does not cause -set_version
15172 # flags to be left without arguments
15173 need_version=unknown
15177 version_type=linux # correct to gnu/linux during the next big refactor
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15179 shlibpath_var=LIBPATH
15181 # AIX 3 has no versioning support, so we append a major version to the name.
15182 soname_spec='${libname}${release}${shared_ext}$major'
15186 version_type=linux # correct to gnu/linux during the next big refactor
15189 hardcode_into_libs=yes
15190 if test "$host_cpu" = ia64; then
15191 # AIX 5 supports IA64
15192 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15193 shlibpath_var=LD_LIBRARY_PATH
15195 # With GCC up to 2.95.x, collect2 would create an import file
15196 # for dependence libraries. The import file would start with
15197 # the line `#! .'. This would cause the generated library to
15198 # depend on `.', always an invalid library. This was fixed in
15199 # development snapshots of GCC prior to 3.0.
15201 aix4 | aix4.[01] | aix4.[01].*)
15202 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15204 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15207 can_build_shared=no
15211 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15212 # soname into executable. Probably we can add versioning support to
15213 # collect2, so additional links can be useful in future.
15214 if test "$aix_use_runtimelinking" = yes; then
15215 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15216 # instead of lib<name>.a to let people know that these are not
15217 # typical AIX shared libraries.
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 # We preserve .a as extension for shared libraries through AIX4.2
15221 # and later when we are not doing run time linking.
15222 library_names_spec='${libname}${release}.a $libname.a'
15223 soname_spec='${libname}${release}${shared_ext}$major'
15225 shlibpath_var=LIBPATH
15232 # Since July 2007 AmigaOS4 officially supports .so libraries.
15233 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 library_names_spec='$libname.ixlibrary $libname.a'
15238 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15239 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'
15245 library_names_spec='${libname}${shared_ext}'
15246 dynamic_linker="$host_os ld.so"
15247 shlibpath_var=LIBRARY_PATH
15251 version_type=linux # correct to gnu/linux during the next big refactor
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec='${libname}${release}${shared_ext}$major'
15255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15259 # the default ld.so.conf also contains /usr/contrib/lib and
15260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15261 # libtool to hard-code these into programs
15264 cygwin* | mingw* | pw32* | cegcc*)
15265 version_type=windows
15270 case $GCC,$cc_basename in
15273 library_names_spec='$libname.dll.a'
15274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15275 postinstall_cmds='base_file=`basename \${file}`~
15276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15277 dldir=$destdir/`dirname \$dlpath`~
15278 test -d \$dldir || mkdir -p \$dldir~
15279 $install_prog $dir/$dlname \$dldir/$dlname~
15280 chmod a+x \$dldir/$dlname~
15281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15285 dlpath=$dir/\$dldll~
15287 shlibpath_overrides_runpath=yes
15291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15296 # MinGW DLLs use traditional 'lib' prefix
15297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15300 # pw32 DLLs use 'pw' prefix rather than 'lib'
15301 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304 dynamic_linker='Win32 ld.exe'
15309 libname_spec='$name'
15310 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15311 library_names_spec='${libname}.dll.lib'
15315 sys_lib_search_path_spec=
15318 for lt_path in $LIB
15321 # Let DOS variable expansion print the short 8.3 style file name.
15322 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15323 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15326 # Convert to MSYS style.
15327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15330 # Convert to unix form, then to dos form, then back to unix form
15331 # but this time dos style (no spaces!) so that the unix form looks
15332 # like /cygdrive/c/PROGRA~1:/cygdr...
15333 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15334 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15335 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15338 sys_lib_search_path_spec="$LIB"
15339 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15340 # It is most probably a Windows format PATH.
15341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15345 # FIXME: find the short name or the path components, as spaces are
15346 # common. (e.g. "Program Files" -> "PROGRA~1")
15350 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15351 postinstall_cmds='base_file=`basename \${file}`~
15352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15353 dldir=$destdir/`dirname \$dlpath`~
15354 test -d \$dldir || mkdir -p \$dldir~
15355 $install_prog $dir/$dlname \$dldir/$dlname'
15356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15357 dlpath=$dir/\$dldll~
15359 shlibpath_overrides_runpath=yes
15360 dynamic_linker='Win32 link.exe'
15364 # Assume MSVC wrapper
15365 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15366 dynamic_linker='Win32 ld.exe'
15369 # FIXME: first we should search . and the directory the executable is in
15373 darwin* | rhapsody*)
15374 dynamic_linker="$host_os dyld"
15375 version_type=darwin
15378 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15379 soname_spec='${libname}${release}${major}$shared_ext'
15380 shlibpath_overrides_runpath=yes
15381 shlibpath_var=DYLD_LIBRARY_PATH
15382 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15388 version_type=linux # correct to gnu/linux during the next big refactor
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 shlibpath_var=LD_LIBRARY_PATH
15396 freebsd* | dragonfly*)
15397 # DragonFly does not have aout. When/if they implement a new
15398 # versioning mechanism, adjust this.
15399 if test -x /usr/bin/objformat; then
15400 objformat=`/usr/bin/objformat`
15403 freebsd[23].*) objformat=aout ;;
15404 *) objformat=elf ;;
15407 version_type=freebsd-$objformat
15408 case $version_type in
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15419 shlibpath_var=LD_LIBRARY_PATH
15422 shlibpath_overrides_runpath=yes
15424 freebsd3.[01]* | freebsdelf3.[01]*)
15425 shlibpath_overrides_runpath=yes
15426 hardcode_into_libs=yes
15428 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15429 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15430 shlibpath_overrides_runpath=no
15431 hardcode_into_libs=yes
15433 *) # from 4.6 on, and DragonFly
15434 shlibpath_overrides_runpath=yes
15435 hardcode_into_libs=yes
15441 version_type=linux # correct to gnu/linux during the next big refactor
15444 dynamic_linker="$host_os runtime_loader"
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 shlibpath_var=LIBRARY_PATH
15448 shlibpath_overrides_runpath=yes
15449 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15450 hardcode_into_libs=yes
15453 hpux9* | hpux10* | hpux11*)
15454 # Give a soname corresponding to the major version so that dld.sl refuses to
15455 # link against other versions.
15462 hardcode_into_libs=yes
15463 dynamic_linker="$host_os dld.so"
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15468 if test "X$HPUX_IA64_MODE" = X32; then
15469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15477 hardcode_into_libs=yes
15478 dynamic_linker="$host_os dld.sl"
15479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15488 dynamic_linker="$host_os dld.sl"
15489 shlibpath_var=SHLIB_PATH
15490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15492 soname_spec='${libname}${release}${shared_ext}$major'
15495 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15496 postinstall_cmds='chmod 555 $lib'
15497 # or fails outright, so override atomically:
15498 install_override_mode=555
15502 version_type=linux # correct to gnu/linux during the next big refactor
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15506 soname_spec='${libname}${release}${shared_ext}$major'
15507 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=no
15510 hardcode_into_libs=yes
15513 irix5* | irix6* | nonstopux*)
15515 nonstopux*) version_type=nonstopux ;;
15517 if test "$lt_cv_prog_gnu_ld" = yes; then
15518 version_type=linux # correct to gnu/linux during the next big refactor
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15528 irix5* | nonstopux*)
15529 libsuff= shlibsuff=
15532 case $LD in # libtool.m4 will add one of these switches to LD
15533 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15534 libsuff= shlibsuff= libmagic=32-bit;;
15535 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15536 libsuff=32 shlibsuff=N32 libmagic=N32;;
15537 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15538 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15539 *) libsuff= shlibsuff= libmagic=never-match;;
15543 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15544 shlibpath_overrides_runpath=no
15545 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15546 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15547 hardcode_into_libs=yes
15550 # No shared lib support for Linux oldld, aout, or coff.
15551 linux*oldld* | linux*aout* | linux*coff*)
15555 # This must be glibc/ELF.
15556 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15557 version_type=linux # correct to gnu/linux during the next big refactor
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15563 shlibpath_var=LD_LIBRARY_PATH
15564 shlibpath_overrides_runpath=no
15566 # Some binutils ld are patched to set DT_RUNPATH
15567 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15568 $as_echo_n "(cached) " >&6
15570 lt_cv_shlibpath_overrides_runpath=no
15571 save_LDFLAGS=$LDFLAGS
15572 save_libdir=$libdir
15573 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15574 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15586 if ac_fn_cxx_try_link "$LINENO"; then :
15587 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15588 lt_cv_shlibpath_overrides_runpath=yes
15591 rm -f core conftest.err conftest.$ac_objext \
15592 conftest$ac_exeext conftest.$ac_ext
15593 LDFLAGS=$save_LDFLAGS
15594 libdir=$save_libdir
15598 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15600 # This implies no fast_install, which is unacceptable.
15601 # Some rework will be needed to allow for fast_install
15602 # before this can be enabled.
15603 hardcode_into_libs=yes
15605 # Append ld.so.conf contents to the search path
15606 if test -f /etc/ld.so.conf; then
15607 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' ' '`
15608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15611 # We used to test for /lib/ld.so.1 and disable shared libraries on
15612 # powerpc, because MkLinux only supported shared libraries with the
15613 # GNU dynamic linker. Since this was broken with cross compilers,
15614 # most powerpc-linux boxes support dynamic linking these days and
15615 # people can always --disable-shared, the test was removed, and we
15616 # assume the GNU/Linux dynamic linker is in use.
15617 dynamic_linker='GNU/Linux ld.so'
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15625 soname_spec='${libname}${release}${shared_ext}$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15627 shlibpath_overrides_runpath=no
15628 hardcode_into_libs=yes
15629 dynamic_linker='NetBSD ld.elf_so'
15636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15639 dynamic_linker='NetBSD (a.out) ld.so'
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 dynamic_linker='NetBSD ld.elf_so'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 shlibpath_overrides_runpath=yes
15647 hardcode_into_libs=yes
15651 version_type=linux # correct to gnu/linux during the next big refactor
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 shlibpath_var=LD_LIBRARY_PATH
15654 shlibpath_overrides_runpath=yes
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662 soname_spec='${libname}${release}${shared_ext}$major'
15663 shlibpath_var=LD_LIBRARY_PATH
15664 shlibpath_overrides_runpath=no
15665 hardcode_into_libs=yes
15666 dynamic_linker='ldqnx.so'
15671 sys_lib_dlsearch_path_spec="/usr/lib"
15673 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15675 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15676 *) need_version=no ;;
15678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15683 openbsd2.[89] | openbsd2.[89].*)
15684 shlibpath_overrides_runpath=no
15687 shlibpath_overrides_runpath=yes
15691 shlibpath_overrides_runpath=yes
15696 libname_spec='$name'
15699 library_names_spec='$libname${shared_ext} $libname.a'
15700 dynamic_linker='OS/2 ld.exe'
15701 shlibpath_var=LIBPATH
15704 osf3* | osf4* | osf5*)
15708 soname_spec='${libname}${release}${shared_ext}$major'
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710 shlibpath_var=LD_LIBRARY_PATH
15711 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15712 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15720 version_type=linux # correct to gnu/linux during the next big refactor
15723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724 soname_spec='${libname}${release}${shared_ext}$major'
15725 shlibpath_var=LD_LIBRARY_PATH
15726 shlibpath_overrides_runpath=yes
15727 hardcode_into_libs=yes
15728 # ldd complains unless libraries are executable
15729 postinstall_cmds='chmod +x $lib'
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15735 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 shlibpath_overrides_runpath=yes
15738 if test "$with_gnu_ld" = yes; then
15745 version_type=linux # correct to gnu/linux during the next big refactor
15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747 soname_spec='${libname}${release}${shared_ext}$major'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 case $host_vendor in
15751 shlibpath_overrides_runpath=no
15753 runpath_var=LD_RUN_PATH
15761 shlibpath_overrides_runpath=no
15762 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15768 if test -d /usr/nec ;then
15769 version_type=linux # correct to gnu/linux during the next big refactor
15770 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15771 soname_spec='$libname${shared_ext}.$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15777 version_type=freebsd-elf
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15781 soname_spec='${libname}${release}${shared_ext}$major'
15782 shlibpath_var=LD_LIBRARY_PATH
15783 shlibpath_overrides_runpath=yes
15784 hardcode_into_libs=yes
15785 if test "$with_gnu_ld" = yes; then
15786 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15788 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15791 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15795 sys_lib_dlsearch_path_spec='/usr/lib'
15799 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15800 version_type=linux # correct to gnu/linux during the next big refactor
15803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15804 shlibpath_var=LD_LIBRARY_PATH
15805 shlibpath_overrides_runpath=no
15806 hardcode_into_libs=yes
15810 version_type=linux # correct to gnu/linux during the next big refactor
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 shlibpath_var=LD_LIBRARY_PATH
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15821 $as_echo "$dynamic_linker" >&6; }
15822 test "$dynamic_linker" = no && can_build_shared=no
15824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15825 if test "$GCC" = yes; then
15826 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15829 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15830 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15832 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15833 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15874 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15875 hardcode_action_CXX=
15876 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15877 test -n "$runpath_var_CXX" ||
15878 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15880 # We can hardcode non-existent directories.
15881 if test "$hardcode_direct_CXX" != no &&
15882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15883 # have to relink, otherwise we might link with an installed library
15884 # when we should be linking with a yet-to-be-installed one
15885 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15886 test "$hardcode_minus_L_CXX" != no; then
15887 # Linking always hardcodes the temporary library directory.
15888 hardcode_action_CXX=relink
15890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15891 hardcode_action_CXX=immediate
15894 # We cannot hardcode anything, or else we can only hardcode existing
15896 hardcode_action_CXX=unsupported
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15899 $as_echo "$hardcode_action_CXX" >&6; }
15901 if test "$hardcode_action_CXX" = relink ||
15902 test "$inherit_rpath_CXX" = yes; then
15903 # Fast installation is not supported
15904 enable_fast_install=no
15905 elif test "$shlibpath_overrides_runpath" = yes ||
15906 test "$enable_shared" = no; then
15907 # Fast installation is not necessary
15908 enable_fast_install=needless
15917 fi # test -n "$compiler"
15920 CFLAGS=$lt_save_CFLAGS
15924 with_gnu_ld=$lt_save_with_gnu_ld
15925 lt_cv_path_LDCXX=$lt_cv_path_LD
15926 lt_cv_path_LD=$lt_save_path_LD
15927 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15928 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15929 fi # test "$_lt_caught_CXX_error" != yes
15932 ac_cpp='$CPP $CPPFLAGS'
15933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15951 ac_config_commands="$ac_config_commands libtool"
15956 # Only expand once:
15961 # Checks for header files.
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15963 $as_echo_n "checking for ANSI C header files... " >&6; }
15964 if ${ac_cv_header_stdc+:} false; then :
15965 $as_echo_n "(cached) " >&6
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 #include <stdlib.h>
15970 #include <stdarg.h>
15971 #include <string.h>
15982 if ac_fn_c_try_compile "$LINENO"; then :
15983 ac_cv_header_stdc=yes
15985 ac_cv_header_stdc=no
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 if test $ac_cv_header_stdc = yes; then
15990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15993 #include <string.h>
15996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15997 $EGREP "memchr" >/dev/null 2>&1; then :
16000 ac_cv_header_stdc=no
16006 if test $ac_cv_header_stdc = yes; then
16007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 #include <stdlib.h>
16013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16014 $EGREP "free" >/dev/null 2>&1; then :
16017 ac_cv_header_stdc=no
16023 if test $ac_cv_header_stdc = yes; then
16024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16025 if test "$cross_compiling" = yes; then :
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16031 #include <stdlib.h>
16032 #if ((' ' & 0x0FF) == 0x020)
16033 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16034 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16036 # define ISLOWER(c) \
16037 (('a' <= (c) && (c) <= 'i') \
16038 || ('j' <= (c) && (c) <= 'r') \
16039 || ('s' <= (c) && (c) <= 'z'))
16040 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16048 for (i = 0; i < 256; i++)
16049 if (XOR (islower (i), ISLOWER (i))
16050 || toupper (i) != TOUPPER (i))
16055 if ac_fn_c_try_run "$LINENO"; then :
16058 ac_cv_header_stdc=no
16060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16061 conftest.$ac_objext conftest.beam conftest.$ac_ext
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16067 $as_echo "$ac_cv_header_stdc" >&6; }
16068 if test $ac_cv_header_stdc = yes; then
16070 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16074 for ac_header in sys/ioctl.h unistd.h
16076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16077 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16079 cat >>confdefs.h <<_ACEOF
16080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16088 # Check compiler and use -Wall if gnu
16089 if test x"$GXX" = "xyes"; then
16090 CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
16091 # Add -Werror in debug mode
16092 if test x"${enable_debug+set}" = xset; then
16093 CXXFLAGS="${CXXFLAGS} -Werror"
16097 # Checks for functions
16098 for ac_func in gettimeofday
16100 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16101 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16102 cat >>confdefs.h <<_ACEOF
16103 #define HAVE_GETTIMEOFDAY 1
16110 # Checks for doxygen
16111 # Extract the first word of "doxygen", so it can be a program name with args.
16112 set dummy doxygen; ac_word=$2
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 $as_echo_n "checking for $ac_word... " >&6; }
16115 if ${ac_cv_prog_DOXYGEN+:} false; then :
16116 $as_echo_n "(cached) " >&6
16118 if test -n "$DOXYGEN"; then
16119 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
16121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16122 for as_dir in $PATH
16125 test -z "$as_dir" && as_dir=.
16126 for ac_exec_ext in '' $ac_executable_extensions; do
16127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16128 ac_cv_prog_DOXYGEN="doxygen "
16129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16138 DOXYGEN=$ac_cv_prog_DOXYGEN
16139 if test -n "$DOXYGEN"; then
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
16141 $as_echo "$DOXYGEN" >&6; }
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144 $as_echo "no" >&6; }
16148 if test "x${DOXYGEN}" != x ; then
16157 # Copy doc files to build dir if necessary
16158 ac_config_links="$ac_config_links doc/release.txt:doc/release.txt"
16160 ac_config_links="$ac_config_links doc/doxygen/footer.html:doc/doxygen/footer.html"
16162 ac_config_links="$ac_config_links doc/doxygen/error.txt:doc/doxygen/error.txt"
16164 ac_config_links="$ac_config_links doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt"
16166 ac_config_links="$ac_config_links doc/doxygen/compiling.txt:doc/doxygen/compiling.txt"
16168 ac_config_links="$ac_config_links doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt"
16170 ac_config_links="$ac_config_links doc/doxygen/license.txt:doc/doxygen/license.txt"
16172 ac_config_links="$ac_config_links doc/doxygen/header.html:doc/doxygen/header.html"
16174 ac_config_links="$ac_config_links doc/doxygen/duplex.txt:doc/doxygen/duplex.txt"
16176 ac_config_links="$ac_config_links doc/doxygen/settings.txt:doc/doxygen/settings.txt"
16178 ac_config_links="$ac_config_links doc/doxygen/probe.txt:doc/doxygen/probe.txt"
16180 ac_config_links="$ac_config_links doc/doxygen/playback.txt:doc/doxygen/playback.txt"
16182 ac_config_links="$ac_config_links doc/doxygen/multi.txt:doc/doxygen/multi.txt"
16184 ac_config_links="$ac_config_links doc/doxygen/recording.txt:doc/doxygen/recording.txt"
16186 ac_config_links="$ac_config_links doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt"
16188 ac_config_links="$ac_config_links doc/images/mcgill.gif:doc/images/mcgill.gif"
16190 ac_config_links="$ac_config_links doc/images/ccrma.gif:doc/images/ccrma.gif"
16193 # Checks for package options and external software
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio API" >&5
16201 $as_echo_n "checking for audio API... " >&6; }
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16205 $as_echo "using OSS" >&6; }
16206 api="$api -D__LINUX_OSS__"
16207 LIBS="$LIBS -lossaudio"
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16209 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16210 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16211 $as_echo_n "(cached) " >&6
16213 ac_check_lib_save_LIBS=$LIBS
16214 LIBS="-lpthread $LIBS"
16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216 /* end confdefs.h. */
16218 /* Override any GCC internal prototype to avoid an error.
16219 Use char because int might match the return type of a GCC
16220 builtin and then its argument prototype would still apply. */
16224 char pthread_create ();
16228 return pthread_create ();
16233 if ac_fn_c_try_link "$LINENO"; then :
16234 ac_cv_lib_pthread_pthread_create=yes
16236 ac_cv_lib_pthread_pthread_create=no
16238 rm -f core conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240 LIBS=$ac_check_lib_save_LIBS
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16243 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16244 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16245 cat >>confdefs.h <<_ACEOF
16246 #define HAVE_LIBPTHREAD 1
16249 LIBS="-lpthread $LIBS"
16252 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16259 # Check whether --with-jack was given.
16260 if test "${with_jack+set}" = set; then :
16261 withval=$with_jack;
16262 api="$api -D__UNIX_JACK__"
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16264 $as_echo "using JACK" >&6; }
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16266 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16267 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16268 $as_echo_n "(cached) " >&6
16270 ac_check_lib_save_LIBS=$LIBS
16271 LIBS="-ljack $LIBS"
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16275 /* Override any GCC internal prototype to avoid an error.
16276 Use char because int might match the return type of a GCC
16277 builtin and then its argument prototype would still apply. */
16281 char jack_client_open ();
16285 return jack_client_open ();
16290 if ac_fn_c_try_link "$LINENO"; then :
16291 ac_cv_lib_jack_jack_client_open=yes
16293 ac_cv_lib_jack_jack_client_open=no
16295 rm -f core conftest.err conftest.$ac_objext \
16296 conftest$ac_exeext conftest.$ac_ext
16297 LIBS=$ac_check_lib_save_LIBS
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16300 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16301 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_LIBJACK 1
16306 LIBS="-ljack $LIBS"
16309 as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16313 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16314 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16315 $as_echo_n "(cached) " >&6
16317 ac_check_lib_save_LIBS=$LIBS
16318 LIBS="-lasound $LIBS"
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16322 /* Override any GCC internal prototype to avoid an error.
16323 Use char because int might match the return type of a GCC
16324 builtin and then its argument prototype would still apply. */
16328 char snd_pcm_open ();
16332 return snd_pcm_open ();
16337 if ac_fn_c_try_link "$LINENO"; then :
16338 ac_cv_lib_asound_snd_pcm_open=yes
16340 ac_cv_lib_asound_snd_pcm_open=no
16342 rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16347 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16348 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_LIBASOUND 1
16353 LIBS="-lasound $LIBS"
16356 as_fn_error $? "Jack support also requires the asound library!" "$LINENO" 5
16362 # Look for ALSA flag
16364 # Check whether --with-alsa was given.
16365 if test "${with_alsa+set}" = set; then :
16366 withval=$with_alsa;
16367 api="$api -D__LINUX_ALSA__"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
16370 $as_echo "using ALSA" >&6; }
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16372 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16373 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16374 $as_echo_n "(cached) " >&6
16376 ac_check_lib_save_LIBS=$LIBS
16377 LIBS="-lasound $LIBS"
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16381 /* Override any GCC internal prototype to avoid an error.
16382 Use char because int might match the return type of a GCC
16383 builtin and then its argument prototype would still apply. */
16387 char snd_pcm_open ();
16391 return snd_pcm_open ();
16396 if ac_fn_c_try_link "$LINENO"; then :
16397 ac_cv_lib_asound_snd_pcm_open=yes
16399 ac_cv_lib_asound_snd_pcm_open=no
16401 rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403 LIBS=$ac_check_lib_save_LIBS
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16406 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16407 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16408 cat >>confdefs.h <<_ACEOF
16409 #define HAVE_LIBASOUND 1
16412 LIBS="-lasound $LIBS"
16415 as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
16421 # Look for PULSE flag
16423 # Check whether --with-pulse was given.
16424 if test "${with_pulse+set}" = set; then :
16425 withval=$with_pulse;
16426 api="$api -D__LINUX_PULSE__"
16427 req="$req libpulse-simple"
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PulseAudio" >&5
16429 $as_echo "using PulseAudio" >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_flush in -lpulse-simple" >&5
16431 $as_echo_n "checking for pa_simple_flush in -lpulse-simple... " >&6; }
16432 if ${ac_cv_lib_pulse_simple_pa_simple_flush+:} false; then :
16433 $as_echo_n "(cached) " >&6
16435 ac_check_lib_save_LIBS=$LIBS
16436 LIBS="-lpulse-simple $LIBS"
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16440 /* Override any GCC internal prototype to avoid an error.
16441 Use char because int might match the return type of a GCC
16442 builtin and then its argument prototype would still apply. */
16446 char pa_simple_flush ();
16450 return pa_simple_flush ();
16455 if ac_fn_c_try_link "$LINENO"; then :
16456 ac_cv_lib_pulse_simple_pa_simple_flush=yes
16458 ac_cv_lib_pulse_simple_pa_simple_flush=no
16460 rm -f core conftest.err conftest.$ac_objext \
16461 conftest$ac_exeext conftest.$ac_ext
16462 LIBS=$ac_check_lib_save_LIBS
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_flush" >&5
16465 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_flush" >&6; }
16466 if test "x$ac_cv_lib_pulse_simple_pa_simple_flush" = xyes; then :
16467 cat >>confdefs.h <<_ACEOF
16468 #define HAVE_LIBPULSE_SIMPLE 1
16471 LIBS="-lpulse-simple $LIBS"
16474 as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
16480 # Look for OSS flag
16482 # Check whether --with-oss was given.
16483 if test "${with_oss+set}" = set; then :
16485 api="$api -D__LINUX_OSS__"
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
16487 $as_echo "using OSS" >&6; }
16491 # If no audio api flags specified, use ALSA
16492 if test "$api" == ""; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
16494 $as_echo "using ALSA" >&6; }
16495 api=-D__LINUX_ALSA__
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
16499 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
16500 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
16501 $as_echo_n "(cached) " >&6
16503 ac_check_lib_save_LIBS=$LIBS
16504 LIBS="-lasound $LIBS"
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16508 /* Override any GCC internal prototype to avoid an error.
16509 Use char because int might match the return type of a GCC
16510 builtin and then its argument prototype would still apply. */
16514 char snd_pcm_open ();
16518 return snd_pcm_open ();
16523 if ac_fn_c_try_link "$LINENO"; then :
16524 ac_cv_lib_asound_snd_pcm_open=yes
16526 ac_cv_lib_asound_snd_pcm_open=no
16528 rm -f core conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16530 LIBS=$ac_check_lib_save_LIBS
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
16533 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
16534 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
16535 cat >>confdefs.h <<_ACEOF
16536 #define HAVE_LIBASOUND 1
16539 LIBS="-lasound $LIBS"
16542 as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16548 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16549 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16550 $as_echo_n "(cached) " >&6
16552 ac_check_lib_save_LIBS=$LIBS
16553 LIBS="-lpthread $LIBS"
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16557 /* Override any GCC internal prototype to avoid an error.
16558 Use char because int might match the return type of a GCC
16559 builtin and then its argument prototype would still apply. */
16563 char pthread_create ();
16567 return pthread_create ();
16572 if ac_fn_c_try_link "$LINENO"; then :
16573 ac_cv_lib_pthread_pthread_create=yes
16575 ac_cv_lib_pthread_pthread_create=no
16577 rm -f core conftest.err conftest.$ac_objext \
16578 conftest$ac_exeext conftest.$ac_ext
16579 LIBS=$ac_check_lib_save_LIBS
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16582 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16583 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16584 cat >>confdefs.h <<_ACEOF
16585 #define HAVE_LIBPTHREAD 1
16588 LIBS="-lpthread $LIBS"
16591 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16598 # Check whether --with-jack was given.
16599 if test "${with_jack+set}" = set; then :
16600 withval=$with_jack;
16601 api="$api -D__UNIX_JACK__"
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
16603 $as_echo "using JACK" >&6; }
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
16605 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
16606 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
16607 $as_echo_n "(cached) " >&6
16609 ac_check_lib_save_LIBS=$LIBS
16610 LIBS="-ljack $LIBS"
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16614 /* Override any GCC internal prototype to avoid an error.
16615 Use char because int might match the return type of a GCC
16616 builtin and then its argument prototype would still apply. */
16620 char jack_client_open ();
16624 return jack_client_open ();
16629 if ac_fn_c_try_link "$LINENO"; then :
16630 ac_cv_lib_jack_jack_client_open=yes
16632 ac_cv_lib_jack_jack_client_open=no
16634 rm -f core conftest.err conftest.$ac_objext \
16635 conftest$ac_exeext conftest.$ac_ext
16636 LIBS=$ac_check_lib_save_LIBS
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
16639 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
16640 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
16641 cat >>confdefs.h <<_ACEOF
16642 #define HAVE_LIBJACK 1
16645 LIBS="-ljack $LIBS"
16648 as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
16654 # AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
16655 # LIBS="$LIBS -framework jackmp" ], )
16658 # Look for Core flag
16660 # Check whether --with-core was given.
16661 if test "${with_core+set}" = set; then :
16662 withval=$with_core;
16663 api="$api -D__MACOSX_CORE__"
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
16665 $as_echo "using CoreAudio" >&6; }
16666 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16667 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16670 as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
16674 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
16678 # If no audio api flags specified, use CoreAudio
16679 if test "$api" == ""; then
16680 api=-D__MACOSX_CORE__
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
16683 $as_echo "using CoreAudio" >&6; }
16684 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
16685 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
16688 as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
16692 LIBS="-framework CoreAudio -framework CoreFoundation"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16697 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16698 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16699 $as_echo_n "(cached) " >&6
16701 ac_check_lib_save_LIBS=$LIBS
16702 LIBS="-lpthread $LIBS"
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16712 char pthread_create ();
16716 return pthread_create ();
16721 if ac_fn_c_try_link "$LINENO"; then :
16722 ac_cv_lib_pthread_pthread_create=yes
16724 ac_cv_lib_pthread_pthread_create=no
16726 rm -f core conftest.err conftest.$ac_objext \
16727 conftest$ac_exeext conftest.$ac_ext
16728 LIBS=$ac_check_lib_save_LIBS
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16731 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16732 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16733 cat >>confdefs.h <<_ACEOF
16734 #define HAVE_LIBPTHREAD 1
16737 LIBS="-lpthread $LIBS"
16740 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
16747 # Check whether --with-asio was given.
16748 if test "${with_asio+set}" = set; then :
16749 withval=$with_asio;
16750 api="$api -D__WINDOWS_ASIO__"
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ASIO" >&5
16752 $as_echo "using ASIO" >&6; }
16753 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
16758 # Look for DirectSound flag
16760 # Check whether --with-ds was given.
16761 if test "${with_ds+set}" = set; then :
16763 api="$api -D__WINDOWS_DS__"
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
16765 $as_echo "using DirectSound" >&6; }
16766 LIBS="-ldsound -lwinmm $LIBS"
16770 # Look for WASAPI flag
16772 # Check whether --with-wasapi was given.
16773 if test "${with_wasapi+set}" = set; then :
16774 withval=$with_wasapi;
16775 api="$api -D__WINDOWS_WASAPI__"
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using WASAPI" >&5
16777 $as_echo "using WASAPI" >&6; }
16778 LIBS="-lwinmm -luuid -lksuser $LIBS"
16782 # If no audio api flags specified, use DS
16783 if test "$api" == ""; then
16784 api=-D__WINDOWS_DS__
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
16787 $as_echo "using DirectSound" >&6; }
16788 LIBS="-ldsound -lwinmm $LIBS"
16791 LIBS="-lole32 $LIBS"
16795 # Default case for unknown realtime systems.
16796 as_fn_error $? "Unknown system type for realtime support!" "$LINENO" 5
16800 CPPFLAGS="$CPPFLAGS $api"
16802 cat >confcache <<\_ACEOF
16803 # This file is a shell script that caches the results of configure
16804 # tests run on this system so they can be shared between configure
16805 # scripts and configure runs, see configure's option --config-cache.
16806 # It is not useful on other systems. If it contains results you don't
16807 # want to keep, you may remove or edit it.
16809 # config.status only pays attention to the cache file if you give it
16810 # the --recheck option to rerun configure.
16812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16814 # following values.
16818 # The following way of writing the cache mishandles newlines in values,
16819 # but we know of no workaround that is simple, portable, and efficient.
16820 # So, we kill variables containing newlines.
16821 # Ultrix sh set writes to stderr and can't be redirected directly,
16822 # and sets the high bit in the cache file unless we assign to the vars.
16824 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16825 eval ac_val=\$$ac_var
16829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16833 _ | IFS | as_nl) ;; #(
16834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16835 *) { eval $ac_var=; unset $ac_var;} ;;
16841 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16842 *${as_nl}ac_space=\ *)
16843 # `set' does not quote correctly, so add quotes: double-quote
16844 # substitution turns \\\\ into \\, and sed turns \\ into \.
16847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16850 # `set' quotes correctly as required by POSIX, so do not add quotes.
16851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16862 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16865 if test -w "$cache_file"; then
16866 if test "x$cache_file" != "x/dev/null"; then
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16868 $as_echo "$as_me: updating cache $cache_file" >&6;}
16869 if test ! -f "$cache_file" || test -h "$cache_file"; then
16870 cat confcache >"$cache_file"
16872 case $cache_file in #(
16874 mv -f confcache "$cache_file"$$ &&
16875 mv -f "$cache_file"$$ "$cache_file" ;; #(
16877 mv -f confcache "$cache_file" ;;
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16883 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16889 # Let make expand exec_prefix.
16890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16892 # Transform confdefs.h into DEFS.
16893 # Protect against shell expansion while executing Makefile rules.
16894 # Protect against Makefile macro expansion.
16896 # If the first sed substitution is executed (which looks for macros that
16897 # take arguments), then branch to the quote section. Otherwise,
16898 # look for a macro that doesn't take arguments.
16908 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16910 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16914 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16927 DEFS=`sed -n "$ac_script" confdefs.h`
16933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16934 # 1. Remove the extension, and $U if already installed.
16935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16938 # will be set to the directory where LIBOBJS objects are built.
16939 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16940 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16942 LIBOBJS=$ac_libobjs
16944 LTLIBOBJS=$ac_ltlibobjs
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16948 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16949 if test -n "$am_sleep_pid"; then
16950 # Hide warnings about reused PIDs.
16951 wait $am_sleep_pid 2>/dev/null
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16954 $as_echo "done" >&6; }
16955 if test -n "$EXEEXT"; then
16957 am__EXEEXT_FALSE='#'
16959 am__EXEEXT_TRUE='#'
16963 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16964 as_fn_error $? "conditional \"AMDEP\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16968 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16971 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16972 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16975 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16976 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16979 if test -z "${MAKE_DOC_TRUE}" && test -z "${MAKE_DOC_FALSE}"; then
16980 as_fn_error $? "conditional \"MAKE_DOC\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16984 : "${CONFIG_STATUS=./config.status}"
16986 ac_clean_files_save=$ac_clean_files
16987 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16989 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16991 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16993 # Generated by $as_me.
16994 # Run this file to recreate the current configuration.
16995 # Compiler output produced by configure, useful for debugging
16996 # configure, is in config.log if it exists.
16999 ac_cs_recheck=false
17002 SHELL=\${CONFIG_SHELL-$SHELL}
17005 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17006 ## -------------------- ##
17007 ## M4sh Initialization. ##
17008 ## -------------------- ##
17010 # Be more Bourne compatible
17011 DUALCASE=1; export DUALCASE # for MKS sh
17012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17015 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17016 # is contrary to our usage. Disable this feature.
17017 alias -g '${1+"$@"}'='"$@"'
17018 setopt NO_GLOB_SUBST
17020 case `(set -o) 2>/dev/null` in #(
17032 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17033 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17034 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17036 # Prefer a ksh shell builtin over an external printf program on Solaris,
17037 # but without wasting forks for bash or zsh.
17038 if test -z "$BASH_VERSION$ZSH_VERSION" \
17039 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17040 as_echo='print -r --'
17041 as_echo_n='print -rn --'
17042 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17043 as_echo='printf %s\n'
17044 as_echo_n='printf %s'
17046 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17047 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17048 as_echo_n='/usr/ucb/echo -n'
17050 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17051 as_echo_n_body='eval
17055 expr "X$arg" : "X\\(.*\\)$as_nl";
17056 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17058 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17060 export as_echo_n_body
17061 as_echo_n='sh -c $as_echo_n_body as_echo'
17063 export as_echo_body
17064 as_echo='sh -c $as_echo_body as_echo'
17067 # The user is always right.
17068 if test "${PATH_SEPARATOR+set}" != set; then
17070 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17071 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17078 # We need space, tab and new line, in precisely that order. Quoting is
17079 # there to prevent editors from complaining about space-tab.
17080 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17081 # splitting by setting IFS to empty value.)
17084 # Find who we are. Look in the path if we contain no directory separator.
17087 *[\\/]* ) as_myself=$0 ;;
17088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17089 for as_dir in $PATH
17092 test -z "$as_dir" && as_dir=.
17093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17099 # We did not find ourselves, most probably we were run as `sh COMMAND'
17100 # in which case we are not to be found in the path.
17101 if test "x$as_myself" = x; then
17104 if test ! -f "$as_myself"; then
17105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17109 # Unset variables that we do not need and which cause bugs (e.g. in
17110 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17111 # suppresses any "Segmentation fault" message there. '((' could
17112 # trigger a bug in pdksh 5.2.14.
17113 for as_var in BASH_ENV ENV MAIL MAILPATH
17114 do eval test x\${$as_var+set} = xset \
17115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17128 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17131 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17132 # ----------------------------------------
17133 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17134 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17135 # script with STATUS, using 1 if that was 0.
17138 as_status=$1; test $as_status -eq 0 && as_status=1
17140 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17141 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17143 $as_echo "$as_me: error: $2" >&2
17144 as_fn_exit $as_status
17148 # as_fn_set_status STATUS
17149 # -----------------------
17150 # Set $? to STATUS, without forking.
17151 as_fn_set_status ()
17154 } # as_fn_set_status
17156 # as_fn_exit STATUS
17157 # -----------------
17158 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17162 as_fn_set_status $1
17168 # Portably unset VAR.
17171 { eval $1=; unset $1;}
17173 as_unset=as_fn_unset
17174 # as_fn_append VAR VALUE
17175 # ----------------------
17176 # Append the text in VALUE to the end of the definition contained in VAR. Take
17177 # advantage of any shell optimizations that allow amortized linear growth over
17178 # repeated appends, instead of the typical quadratic growth present in naive
17180 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17181 eval 'as_fn_append ()
17192 # as_fn_arith ARG...
17193 # ------------------
17194 # Perform arithmetic evaluation on the ARGs, and store the result in the
17195 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17196 # must be portable across $(()) and expr.
17197 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17198 eval 'as_fn_arith ()
17205 as_val=`expr "$@" || test $? -eq 1`
17210 if expr a : '\(a\)' >/dev/null 2>&1 &&
17211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17218 as_basename=basename
17223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17229 as_me=`$as_basename -- "$0" ||
17230 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17231 X"$0" : 'X\(//\)$' \| \
17232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17234 sed '/^.*\/\([^/][^/]*\)\/*$/{
17248 # Avoid depending upon Character Ranges.
17249 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17250 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17251 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17252 as_cr_digits='0123456789'
17253 as_cr_alnum=$as_cr_Letters$as_cr_digits
17255 ECHO_C= ECHO_N= ECHO_T=
17256 case `echo -n x` in #(((((
17258 case `echo 'xy\c'` in
17259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17268 rm -f conf$$ conf$$.exe conf$$.file
17269 if test -d conf$$.dir; then
17270 rm -f conf$$.dir/conf$$.file
17273 mkdir conf$$.dir 2>/dev/null
17275 if (echo >conf$$.file) 2>/dev/null; then
17276 if ln -s conf$$.file conf$$ 2>/dev/null; then
17278 # ... but there are two gotchas:
17279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17281 # In both cases, we have to default to `cp -pR'.
17282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17284 elif ln conf$$.file conf$$ 2>/dev/null; then
17292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17293 rmdir conf$$.dir 2>/dev/null
17298 # Create "$as_dir" as a directory, including parents if necessary.
17303 -*) as_dir=./$as_dir;;
17305 test -d "$as_dir" || eval $as_mkdir_p || {
17309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17310 *) as_qdir=$as_dir;;
17312 as_dirs="'$as_qdir' $as_dirs"
17313 as_dir=`$as_dirname -- "$as_dir" ||
17314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17315 X"$as_dir" : 'X\(//\)[^/]' \| \
17316 X"$as_dir" : 'X\(//\)$' \| \
17317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17318 $as_echo X"$as_dir" |
17319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17323 /^X\(\/\/\)[^/].*/{
17336 test -d "$as_dir" && break
17338 test -z "$as_dirs" || eval "mkdir $as_dirs"
17339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17343 if mkdir -p . 2>/dev/null; then
17344 as_mkdir_p='mkdir -p "$as_dir"'
17346 test -d ./-p && rmdir ./-p
17351 # as_fn_executable_p FILE
17352 # -----------------------
17353 # Test if FILE is an executable regular file.
17354 as_fn_executable_p ()
17356 test -f "$1" && test -x "$1"
17357 } # as_fn_executable_p
17358 as_test_x='test -x'
17359 as_executable_p=as_fn_executable_p
17361 # Sed expression to map a string onto a valid CPP name.
17362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17364 # Sed expression to map a string onto a valid variable name.
17365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17369 ## ----------------------------------- ##
17370 ## Main body of $CONFIG_STATUS script. ##
17371 ## ----------------------------------- ##
17373 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 # Save the log message, to keep $0 and so on meaningful, and to
17377 # report actual input values of CONFIG_FILES etc. instead of their
17378 # values after options handling.
17380 This file was extended by RtAudio $as_me 4.1.2, which was
17381 generated by GNU Autoconf 2.69. Invocation command line was
17383 CONFIG_FILES = $CONFIG_FILES
17384 CONFIG_HEADERS = $CONFIG_HEADERS
17385 CONFIG_LINKS = $CONFIG_LINKS
17386 CONFIG_COMMANDS = $CONFIG_COMMANDS
17389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17394 case $ac_config_files in *"
17395 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17401 # Files that config.status was made for.
17402 config_files="$ac_config_files"
17403 config_links="$ac_config_links"
17404 config_commands="$ac_config_commands"
17408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410 \`$as_me' instantiates files and other configuration actions
17411 from templates according to the current configuration. Unless the files
17412 and actions are specified as TAGs, all are instantiated by default.
17414 Usage: $0 [OPTION]... [TAG]...
17416 -h, --help print this help, then exit
17417 -V, --version print version number and configuration settings, then exit
17418 --config print configuration, then exit
17419 -q, --quiet, --silent
17420 do not print progress messages
17421 -d, --debug don't remove temporary files
17422 --recheck update $as_me by reconfiguring in the same conditions
17423 --file=FILE[:TEMPLATE]
17424 instantiate the configuration file FILE
17426 Configuration files:
17429 Configuration links:
17432 Configuration commands:
17435 Report bugs to <gary@music.mcgill.ca>."
17438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17441 RtAudio config.status 4.1.2
17442 configured by $0, generated by GNU Autoconf 2.69,
17443 with options \\"\$ac_cs_config\\"
17445 Copyright (C) 2012 Free Software Foundation, Inc.
17446 This config.status script is free software; the Free Software Foundation
17447 gives unlimited permission to copy, distribute and modify it."
17454 test -n "\$AWK" || AWK=awk
17457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17458 # The default lists apply if the user does not specify any file.
17464 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17465 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17469 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17481 # Handling of the options.
17482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17484 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17485 $as_echo "$ac_cs_version"; exit ;;
17486 --config | --confi | --conf | --con | --co | --c )
17487 $as_echo "$ac_cs_config"; exit ;;
17488 --debug | --debu | --deb | --de | --d | -d )
17490 --file | --fil | --fi | --f )
17493 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17494 '') as_fn_error $? "missing file argument" ;;
17496 as_fn_append CONFIG_FILES " '$ac_optarg'"
17497 ac_need_defaults=false;;
17498 --he | --h | --help | --hel | -h )
17499 $as_echo "$ac_cs_usage"; exit ;;
17500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17501 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17504 # This is an error.
17505 -*) as_fn_error $? "unrecognized option: \`$1'
17506 Try \`$0 --help' for more information." ;;
17508 *) as_fn_append ac_config_targets " $1"
17509 ac_need_defaults=false ;;
17515 ac_configure_extra_args=
17517 if $ac_cs_silent; then
17519 ac_configure_extra_args="$ac_configure_extra_args --silent"
17523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17524 if \$ac_cs_recheck; then
17525 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17527 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17528 CONFIG_SHELL='$SHELL'
17529 export CONFIG_SHELL
17534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17539 ## Running $as_me. ##
17545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17549 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17552 # The HP-UX ksh and POSIX shell print the target directory to stdout
17553 # if CDPATH is set.
17554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17556 sed_quote_subst='$sed_quote_subst'
17557 double_quote_subst='$double_quote_subst'
17558 delay_variable_subst='$delay_variable_subst'
17559 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17560 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17561 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17562 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17563 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17564 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17565 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17566 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17567 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17568 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17569 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17570 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17571 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17572 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17573 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17574 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17575 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17576 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17577 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17578 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17579 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17580 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17581 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17582 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17583 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17584 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17585 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17586 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17587 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17588 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17589 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17590 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17591 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17592 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17593 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17594 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17595 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17596 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17597 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17598 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17599 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17600 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17601 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17602 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17603 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17604 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17605 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17606 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17607 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17608 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17609 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17610 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17611 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17612 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17613 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17614 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17615 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17616 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"`'
17617 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17618 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17619 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17620 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17621 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17622 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17623 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17624 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17625 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17626 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17627 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17628 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17629 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17630 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17631 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17632 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17633 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17634 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17635 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17636 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17637 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17638 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17639 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17640 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17641 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17642 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17643 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17644 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17645 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17646 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17647 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17648 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17649 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17650 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17651 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17652 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17653 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17654 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17655 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17656 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17657 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17658 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17659 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17660 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17661 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17662 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17663 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17664 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17665 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17666 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17667 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17668 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17669 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17670 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17671 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17672 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17673 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17674 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17675 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17676 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17677 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17678 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17679 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17680 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17681 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17682 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17683 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17684 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17685 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17686 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17687 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17688 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17689 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17690 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17691 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17692 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17693 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17694 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17695 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17696 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17697 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17698 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17699 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17700 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17701 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17702 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17703 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17704 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17705 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17706 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17707 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17708 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17709 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17710 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17711 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17712 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17713 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17714 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17715 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17716 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17717 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17718 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17719 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17720 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17721 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17722 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17723 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17724 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17725 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17726 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17727 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17728 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17729 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17730 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17731 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17732 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17733 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17734 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17735 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17736 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17737 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17738 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17739 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17740 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17741 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17742 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17743 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17746 LTCFLAGS='$LTCFLAGS'
17747 compiler='$compiler_DEFAULT'
17749 # A function that is used when there is no print builtin or printf.
17750 func_fallback_echo ()
17752 eval 'cat <<_LTECHO_EOF
17757 # Quote evaled strings.
17774 deplibs_check_method \
17778 sharedlib_from_linklib_cmd \
17781 archiver_list_spec \
17787 lt_cv_sys_global_symbol_pipe \
17788 lt_cv_sys_global_symbol_to_cdecl \
17789 lt_cv_sys_global_symbol_to_c_name_address \
17790 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17791 nm_file_list_spec \
17792 lt_prog_compiler_no_builtin_flag \
17793 lt_prog_compiler_pic \
17794 lt_prog_compiler_wl \
17795 lt_prog_compiler_static \
17796 lt_cv_prog_compiler_c_o \
17805 export_dynamic_flag_spec \
17806 whole_archive_flag_spec \
17807 compiler_needs_object \
17809 allow_undefined_flag \
17810 no_undefined_flag \
17811 hardcode_libdir_flag_spec \
17812 hardcode_libdir_separator \
17816 variables_saved_for_relink \
17818 library_names_spec \
17820 install_override_mode \
17824 compiler_lib_search_dirs \
17829 compiler_lib_search_path \
17833 lt_prog_compiler_no_builtin_flag_CXX \
17834 lt_prog_compiler_pic_CXX \
17835 lt_prog_compiler_wl_CXX \
17836 lt_prog_compiler_static_CXX \
17837 lt_cv_prog_compiler_c_o_CXX \
17838 export_dynamic_flag_spec_CXX \
17839 whole_archive_flag_spec_CXX \
17840 compiler_needs_object_CXX \
17842 allow_undefined_flag_CXX \
17843 no_undefined_flag_CXX \
17844 hardcode_libdir_flag_spec_CXX \
17845 hardcode_libdir_separator_CXX \
17846 exclude_expsyms_CXX \
17847 include_expsyms_CXX \
17848 file_list_spec_CXX \
17849 compiler_lib_search_dirs_CXX \
17850 predep_objects_CXX \
17851 postdep_objects_CXX \
17854 compiler_lib_search_path_CXX; do
17855 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17856 *[\\\\\\\`\\"\\\$]*)
17857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17865 # Double-quote double-evaled strings.
17866 for var in reload_cmds \
17867 old_postinstall_cmds \
17868 old_postuninstall_cmds \
17870 extract_expsyms_cmds \
17871 old_archive_from_new_cmds \
17872 old_archive_from_expsyms_cmds \
17874 archive_expsym_cmds \
17876 module_expsym_cmds \
17877 export_symbols_cmds \
17881 postuninstall_cmds \
17883 sys_lib_search_path_spec \
17884 sys_lib_dlsearch_path_spec \
17886 old_archive_cmds_CXX \
17887 old_archive_from_new_cmds_CXX \
17888 old_archive_from_expsyms_cmds_CXX \
17890 archive_expsym_cmds_CXX \
17892 module_expsym_cmds_CXX \
17893 export_symbols_cmds_CXX \
17895 postlink_cmds_CXX; do
17896 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17897 *[\\\\\\\`\\"\\\$]*)
17898 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17901 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17906 ac_aux_dir='$ac_aux_dir'
17907 xsi_shell='$xsi_shell'
17908 lt_shell_append='$lt_shell_append'
17910 # See if we are running on zsh, and set the options which allow our
17911 # commands through without removal of \ escapes INIT.
17912 if test -n "\${ZSH_VERSION+set}" ; then
17913 setopt NO_GLOB_SUBST
17919 TIMESTAMP='$TIMESTAMP'
17930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17932 # Handling of arguments.
17933 for ac_config_target in $ac_config_targets
17935 case $ac_config_target in
17936 "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
17937 "rtaudio.pc") CONFIG_FILES="$CONFIG_FILES rtaudio.pc" ;;
17938 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17939 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17940 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17941 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
17942 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17943 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17944 "doc/release.txt") CONFIG_LINKS="$CONFIG_LINKS doc/release.txt:doc/release.txt" ;;
17945 "doc/doxygen/footer.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/footer.html:doc/doxygen/footer.html" ;;
17946 "doc/doxygen/error.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/error.txt:doc/doxygen/error.txt" ;;
17947 "doc/doxygen/tutorial.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/tutorial.txt:doc/doxygen/tutorial.txt" ;;
17948 "doc/doxygen/compiling.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/compiling.txt:doc/doxygen/compiling.txt" ;;
17949 "doc/doxygen/acknowledge.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/acknowledge.txt:doc/doxygen/acknowledge.txt" ;;
17950 "doc/doxygen/license.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/license.txt:doc/doxygen/license.txt" ;;
17951 "doc/doxygen/header.html") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/header.html:doc/doxygen/header.html" ;;
17952 "doc/doxygen/duplex.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/duplex.txt:doc/doxygen/duplex.txt" ;;
17953 "doc/doxygen/settings.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/settings.txt:doc/doxygen/settings.txt" ;;
17954 "doc/doxygen/probe.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/probe.txt:doc/doxygen/probe.txt" ;;
17955 "doc/doxygen/playback.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/playback.txt:doc/doxygen/playback.txt" ;;
17956 "doc/doxygen/multi.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/multi.txt:doc/doxygen/multi.txt" ;;
17957 "doc/doxygen/recording.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/recording.txt:doc/doxygen/recording.txt" ;;
17958 "doc/doxygen/apinotes.txt") CONFIG_LINKS="$CONFIG_LINKS doc/doxygen/apinotes.txt:doc/doxygen/apinotes.txt" ;;
17959 "doc/images/mcgill.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/mcgill.gif:doc/images/mcgill.gif" ;;
17960 "doc/images/ccrma.gif") CONFIG_LINKS="$CONFIG_LINKS doc/images/ccrma.gif:doc/images/ccrma.gif" ;;
17962 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17967 # If the user did not use the arguments to specify the items to instantiate,
17968 # then the envvar interface is used. Set only those that are not.
17969 # We use the long form for the default assignment because of an extremely
17970 # bizarre bug on SunOS 4.1.3.
17971 if $ac_need_defaults; then
17972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17973 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17977 # Have a temporary directory for convenience. Make it in the build tree
17978 # simply because there is no reason against having it here, and in addition,
17979 # creating and moving files from /tmp can sometimes cause problems.
17980 # Hook for its removal unless debugging.
17981 # Note that there is a small window in which the directory will not be cleaned:
17982 # after its creation but before its name has been assigned to `$tmp'.
17986 trap 'exit_status=$?
17987 : "${ac_tmp:=$tmp}"
17988 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17990 trap 'as_fn_exit 1' 1 2 13 15
17992 # Create a (secure) tmp directory for tmp files.
17995 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17999 tmp=./conf$$-$RANDOM
18000 (umask 077 && mkdir "$tmp")
18001 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18004 # Set up the scripts for CONFIG_FILES section.
18005 # No need to generate them if there are no CONFIG_FILES.
18006 # This happens for instance with `./config.status config.h'.
18007 if test -n "$CONFIG_FILES"; then
18010 ac_cr=`echo X | tr X '\015'`
18011 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18012 # But we know of no other shell where ac_cr would be empty at this
18013 # point, so we can use a bashism as a fallback.
18014 if test "x$ac_cr" = x; then
18015 eval ac_cr=\$\'\\r\'
18017 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18018 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18021 ac_cs_awk_cr=$ac_cr
18024 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18029 echo "cat >conf$$subs.awk <<_ACEOF" &&
18030 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18032 } >conf$$subs.sh ||
18033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18034 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18036 for ac_last_try in false false false false false :; do
18037 . ./conf$$subs.sh ||
18038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18040 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18041 if test $ac_delim_n = $ac_delim_num; then
18043 elif $ac_last_try; then
18044 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18049 rm -f conf$$subs.sh
18051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18052 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18056 s/^/S["/; s/!.*/"]=/
18066 s/\(.\{148\}\)..*/\1/
18068 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18073 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18080 s/\(.\{148\}\)..*/\1/
18082 s/["\\]/\\&/g; s/^/"/; s/$/"/
18086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18091 ' <conf$$subs.awk | sed '
18096 ' >>$CONFIG_STATUS || ac_write_fail=1
18097 rm -f conf$$subs.awk
18098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18100 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18101 for (key in S) S_is_set[key] = 1
18107 nfields = split(line, field, "@")
18109 len = length(field[1])
18110 for (i = 2; i < nfields; i++) {
18112 keylen = length(key)
18113 if (S_is_set[key]) {
18115 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18116 len += length(value) + length(field[++i])
18127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18128 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18129 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18132 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18133 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18136 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18137 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18138 # trailing colons and then remove the whole line if VPATH becomes empty
18139 # (actually we leave an empty line to preserve line numbers).
18140 if test "x$srcdir" = x.; then
18141 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18160 fi # test -n "$CONFIG_FILES"
18163 eval set X " :F $CONFIG_FILES :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18168 :[FHLC]) ac_mode=$ac_tag; continue;;
18170 case $ac_mode$ac_tag in
18172 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18173 :[FH]-) ac_tag=-:-;;
18174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18191 -) ac_f="$ac_tmp/stdin";;
18192 *) # Look for the file first in the build tree, then in the source tree
18193 # (if the path is not absolute). The absolute path cannot be DOS-style,
18194 # because $ac_f cannot contain `:'.
18198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18200 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18202 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18203 as_fn_append ac_file_inputs " '$ac_f'"
18206 # Let's still pretend it is `configure' which instantiates (i.e., don't
18207 # use $as_me), people would be surprised to read:
18208 # /* config.h. Generated by config.status. */
18209 configure_input='Generated from '`
18210 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18212 if test x"$ac_file" != x-; then
18213 configure_input="$ac_file. $configure_input"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18215 $as_echo "$as_me: creating $ac_file" >&6;}
18217 # Neutralize special characters interpreted by sed in replacement strings.
18218 case $configure_input in #(
18219 *\&* | *\|* | *\\* )
18220 ac_sed_conf_input=`$as_echo "$configure_input" |
18221 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18222 *) ac_sed_conf_input=$configure_input;;
18226 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18232 ac_dir=`$as_dirname -- "$ac_file" ||
18233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18234 X"$ac_file" : 'X\(//\)[^/]' \| \
18235 X"$ac_file" : 'X\(//\)$' \| \
18236 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18237 $as_echo X"$ac_file" |
18238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18242 /^X\(\/\/\)[^/].*/{
18255 as_dir="$ac_dir"; as_fn_mkdir_p
18259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18262 # A ".." for each directory in $ac_dir_suffix.
18263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18264 case $ac_top_builddir_sub in
18265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18269 ac_abs_top_builddir=$ac_pwd
18270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18271 # for backward compatibility:
18272 ac_top_builddir=$ac_top_build_prefix
18275 .) # We are building in place.
18277 ac_top_srcdir=$ac_top_builddir_sub
18278 ac_abs_top_srcdir=$ac_pwd ;;
18279 [\\/]* | ?:[\\/]* ) # Absolute name.
18280 ac_srcdir=$srcdir$ac_dir_suffix;
18281 ac_top_srcdir=$srcdir
18282 ac_abs_top_srcdir=$srcdir ;;
18283 *) # Relative name.
18284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18285 ac_top_srcdir=$ac_top_build_prefix$srcdir
18286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18301 ac_MKDIR_P=$MKDIR_P
18303 [\\/$]* | ?:[\\/]* ) ;;
18304 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18309 # If the template does not know about datarootdir, expand it.
18310 # FIXME: This hack should be removed a few years after 2.60.
18311 ac_datarootdir_hack=; ac_datarootdir_seen=
18322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18323 *datarootdir*) ac_datarootdir_seen=yes;;
18324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18329 ac_datarootdir_hack='
18330 s&@datadir@&$datadir&g
18331 s&@docdir@&$docdir&g
18332 s&@infodir@&$infodir&g
18333 s&@localedir@&$localedir&g
18334 s&@mandir@&$mandir&g
18335 s&\\\${datarootdir}&$datarootdir&g' ;;
18339 # Neutralize VPATH when `$srcdir' = `.'.
18340 # Shell code in configure.ac might set extrasub.
18341 # FIXME: do we really want to maintain this feature?
18342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18343 ac_sed_extra="$ac_vpsub
18346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18349 s|@configure_input@|$ac_sed_conf_input|;t t
18350 s&@top_builddir@&$ac_top_builddir_sub&;t t
18351 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18352 s&@srcdir@&$ac_srcdir&;t t
18353 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18354 s&@top_srcdir@&$ac_top_srcdir&;t t
18355 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18356 s&@builddir@&$ac_builddir&;t t
18357 s&@abs_builddir@&$ac_abs_builddir&;t t
18358 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18359 s&@INSTALL@&$ac_INSTALL&;t t
18360 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18361 $ac_datarootdir_hack
18363 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18364 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18367 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18369 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18371 which seems to be undefined. Please make sure it is defined" >&5
18372 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18373 which seems to be undefined. Please make sure it is defined" >&2;}
18375 rm -f "$ac_tmp/stdin"
18377 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18378 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18388 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18391 # Prefer the file from the source tree if names are identical.
18392 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18393 ac_source=$srcdir/$ac_source
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18397 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18399 if test ! -r "$ac_source"; then
18400 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18404 # Try a relative symlink, then a hard link, then a copy.
18406 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18407 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18409 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18410 ln "$ac_source" "$ac_file" 2>/dev/null ||
18411 cp -p "$ac_source" "$ac_file" ||
18412 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18415 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18416 $as_echo "$as_me: executing $ac_file commands" >&6;}
18421 case $ac_file$ac_mode in
18422 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18423 # Older Autoconf quotes --file arguments for eval, but not when files
18424 # are listed without --file. Let's play safe and only enable the eval
18425 # if we detect the quoting.
18426 case $CONFIG_FILES in
18427 *\'*) eval set x "$CONFIG_FILES" ;;
18428 *) set x $CONFIG_FILES ;;
18433 # Strip MF so we end up with the name of the file.
18434 mf=`echo "$mf" | sed -e 's/:.*$//'`
18435 # Check whether this is an Automake generated Makefile or not.
18436 # We used to match only the files named 'Makefile.in', but
18437 # some people rename them; so instead we look at the file content.
18438 # Grep'ing the first line is not enough: some people post-process
18439 # each Makefile.in and add a new line on top of each file to say so.
18440 # Grep'ing the whole file is not good either: AIX grep has a line
18441 # limit of 2048, but all sed's we know have understand at least 4000.
18442 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18443 dirpart=`$as_dirname -- "$mf" ||
18444 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18445 X"$mf" : 'X\(//\)[^/]' \| \
18446 X"$mf" : 'X\(//\)$' \| \
18447 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18453 /^X\(\/\/\)[^/].*/{
18469 # Extract the definition of DEPDIR, am__include, and am__quote
18470 # from the Makefile without running 'make'.
18471 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18472 test -z "$DEPDIR" && continue
18473 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18474 test -z "$am__include" && continue
18475 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18476 # Find all dependency output files, they are included files with
18477 # $(DEPDIR) in their names. We invoke sed twice because it is the
18478 # simplest approach to changing $(DEPDIR) to its actual value in the
18480 for file in `sed -n "
18481 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18482 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18483 # Make sure the directory exists.
18484 test -f "$dirpart/$file" && continue
18485 fdir=`$as_dirname -- "$file" ||
18486 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18487 X"$file" : 'X\(//\)[^/]' \| \
18488 X"$file" : 'X\(//\)$' \| \
18489 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18490 $as_echo X"$file" |
18491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18495 /^X\(\/\/\)[^/].*/{
18508 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18509 # echo "creating $dirpart/$file"
18510 echo '# dummy' > "$dirpart/$file"
18517 # See if we are running on zsh, and set the options which allow our
18518 # commands through without removal of \ escapes.
18519 if test -n "${ZSH_VERSION+set}" ; then
18520 setopt NO_GLOB_SUBST
18523 cfgfile="${ofile}T"
18524 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18527 cat <<_LT_EOF >> "$cfgfile"
18530 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18531 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18532 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18533 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18535 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18536 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18538 # Written by Gordon Matzigkeit, 1996
18540 # This file is part of GNU Libtool.
18542 # GNU Libtool is free software; you can redistribute it and/or
18543 # modify it under the terms of the GNU General Public License as
18544 # published by the Free Software Foundation; either version 2 of
18545 # the License, or (at your option) any later version.
18547 # As a special exception to the GNU General Public License,
18548 # if you distribute this file as part of a program or library that
18549 # is built using GNU Libtool, you may include this file under the
18550 # same distribution terms that you use for the rest of that program.
18552 # GNU Libtool is distributed in the hope that it will be useful,
18553 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18554 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18555 # GNU General Public License for more details.
18557 # You should have received a copy of the GNU General Public License
18558 # along with GNU Libtool; see the file COPYING. If not, a copy
18559 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18560 # obtained by writing to the Free Software Foundation, Inc.,
18561 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18564 # The names of the tagged configurations supported by this script.
18565 available_tags="CXX "
18567 # ### BEGIN LIBTOOL CONFIG
18569 # Which release of libtool.m4 was used?
18570 macro_version=$macro_version
18571 macro_revision=$macro_revision
18573 # Assembler program.
18576 # DLL creation program.
18577 DLLTOOL=$lt_DLLTOOL
18579 # Object dumper program.
18580 OBJDUMP=$lt_OBJDUMP
18582 # Whether or not to build shared libraries.
18583 build_libtool_libs=$enable_shared
18585 # Whether or not to build static libraries.
18586 build_old_libs=$enable_static
18588 # What type of objects to build.
18591 # Whether or not to optimize for fast installation.
18592 fast_install=$enable_fast_install
18594 # Shell to use when invoking shell scripts.
18597 # An echo program that protects backslashes.
18600 # The PATH separator for the build system.
18601 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18604 host_alias=$host_alias
18608 # The build system.
18609 build_alias=$build_alias
18613 # A sed program that does not truncate output.
18616 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18617 Xsed="\$SED -e 1s/^X//"
18619 # A grep program that handles long lines.
18625 # A literal string matcher.
18628 # A BSD- or MS-compatible name lister.
18631 # Whether we need soft or hard links.
18634 # What is the maximum length of a command?
18635 max_cmd_len=$max_cmd_len
18637 # Object file suffix (normally "o").
18640 # Executable file suffix (normally "").
18643 # whether the shell understands "unset".
18646 # turn spaces into newlines.
18649 # turn newlines into spaces.
18652 # convert \$build file names to \$host format.
18653 to_host_file_cmd=$lt_cv_to_host_file_cmd
18655 # convert \$build files to toolchain format.
18656 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18658 # Method to check whether dependent libraries are shared objects.
18659 deplibs_check_method=$lt_deplibs_check_method
18661 # Command to use when deplibs_check_method = "file_magic".
18662 file_magic_cmd=$lt_file_magic_cmd
18664 # How to find potential files when deplibs_check_method = "file_magic".
18665 file_magic_glob=$lt_file_magic_glob
18667 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18668 want_nocaseglob=$lt_want_nocaseglob
18670 # Command to associate shared and link libraries.
18671 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18676 # Flags to create an archive.
18677 AR_FLAGS=$lt_AR_FLAGS
18679 # How to feed a file listing to the archiver.
18680 archiver_list_spec=$lt_archiver_list_spec
18682 # A symbol stripping program.
18685 # Commands used to install an old-style archive.
18687 old_postinstall_cmds=$lt_old_postinstall_cmds
18688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18690 # Whether to use a lock for old archive extraction.
18691 lock_old_archive_extraction=$lock_old_archive_extraction
18696 # LTCC compiler flags.
18697 LTCFLAGS=$lt_CFLAGS
18699 # Take the output of nm and produce a listing of raw symbols and C names.
18700 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18702 # Transform the output of nm in a proper C declaration.
18703 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18705 # Transform the output of nm in a C name address pair.
18706 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18708 # Transform the output of nm in a C name address pair when lib prefix is needed.
18709 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18711 # Specify filename containing input files for \$NM.
18712 nm_file_list_spec=$lt_nm_file_list_spec
18714 # The root where to search for dependent libraries,and in which our libraries should be installed.
18715 lt_sysroot=$lt_sysroot
18717 # The name of the directory that contains temporary libtool files.
18720 # Used to examine libraries when file_magic_cmd begins with "file".
18721 MAGIC_CMD=$MAGIC_CMD
18723 # Must we lock files when doing compilation?
18724 need_locks=$lt_need_locks
18727 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18729 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18730 DSYMUTIL=$lt_DSYMUTIL
18732 # Tool to change global to local symbols on Mac OS X.
18735 # Tool to manipulate fat objects and archives on Mac OS X.
18738 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18741 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18742 OTOOL64=$lt_OTOOL64
18744 # Old archive suffix (normally "a").
18747 # Shared library suffix (normally ".so").
18748 shrext_cmds=$lt_shrext_cmds
18750 # The commands to extract the exported symbol list from a shared archive.
18751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18753 # Variables whose values should be saved in libtool wrapper scripts and
18754 # restored at link time.
18755 variables_saved_for_relink=$lt_variables_saved_for_relink
18757 # Do we need the "lib" prefix for modules?
18758 need_lib_prefix=$need_lib_prefix
18760 # Do we need a version for libraries?
18761 need_version=$need_version
18763 # Library versioning type.
18764 version_type=$version_type
18766 # Shared library runtime path variable.
18767 runpath_var=$runpath_var
18769 # Shared library path variable.
18770 shlibpath_var=$shlibpath_var
18772 # Is shlibpath searched before the hard-coded library search path?
18773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18775 # Format of library name prefix.
18776 libname_spec=$lt_libname_spec
18778 # List of archive names. First name is the real one, the rest are links.
18779 # The last name is the one that the linker finds with -lNAME
18780 library_names_spec=$lt_library_names_spec
18782 # The coded name of the library, if different from the real name.
18783 soname_spec=$lt_soname_spec
18785 # Permission mode override for installation of shared libraries.
18786 install_override_mode=$lt_install_override_mode
18788 # Command to use after installation of a shared archive.
18789 postinstall_cmds=$lt_postinstall_cmds
18791 # Command to use after uninstallation of a shared archive.
18792 postuninstall_cmds=$lt_postuninstall_cmds
18794 # Commands used to finish a libtool library installation in a directory.
18795 finish_cmds=$lt_finish_cmds
18797 # As "finish_cmds", except a single script fragment to be evaled but
18799 finish_eval=$lt_finish_eval
18801 # Whether we should hardcode library paths into libraries.
18802 hardcode_into_libs=$hardcode_into_libs
18804 # Compile-time system search path for libraries.
18805 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18807 # Run-time system search path for libraries.
18808 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18810 # Whether dlopen is supported.
18811 dlopen_support=$enable_dlopen
18813 # Whether dlopen of programs is supported.
18814 dlopen_self=$enable_dlopen_self
18816 # Whether dlopen of statically linked programs is supported.
18817 dlopen_self_static=$enable_dlopen_self_static
18819 # Commands to strip libraries.
18820 old_striplib=$lt_old_striplib
18821 striplib=$lt_striplib
18824 # The linker used to build libraries.
18827 # How to create reloadable object files.
18828 reload_flag=$lt_reload_flag
18829 reload_cmds=$lt_reload_cmds
18831 # Commands used to build an old-style archive.
18832 old_archive_cmds=$lt_old_archive_cmds
18834 # A language specific compiler.
18837 # Is the compiler the GNU compiler?
18840 # Compiler flag to turn off builtin functions.
18841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18843 # Additional compiler flags for building library objects.
18844 pic_flag=$lt_lt_prog_compiler_pic
18846 # How to pass a linker flag through the compiler.
18847 wl=$lt_lt_prog_compiler_wl
18849 # Compiler flag to prevent dynamic linking.
18850 link_static_flag=$lt_lt_prog_compiler_static
18852 # Does compiler simultaneously support -c and -o options?
18853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18855 # Whether or not to add -lc for building shared libraries.
18856 build_libtool_need_lc=$archive_cmds_need_lc
18858 # Whether or not to disallow shared libs when runtime libs are static.
18859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18861 # Compiler flag to allow reflexive dlopens.
18862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18864 # Compiler flag to generate shared objects directly from archives.
18865 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18867 # Whether the compiler copes with passing no objects directly.
18868 compiler_needs_object=$lt_compiler_needs_object
18870 # Create an old-style archive from a shared archive.
18871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18873 # Create a temporary old-style archive to link instead of a shared archive.
18874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18876 # Commands used to build a shared archive.
18877 archive_cmds=$lt_archive_cmds
18878 archive_expsym_cmds=$lt_archive_expsym_cmds
18880 # Commands used to build a loadable module if different from building
18881 # a shared archive.
18882 module_cmds=$lt_module_cmds
18883 module_expsym_cmds=$lt_module_expsym_cmds
18885 # Whether we are building with GNU ld or not.
18886 with_gnu_ld=$lt_with_gnu_ld
18888 # Flag that allows shared libraries with undefined symbols to be built.
18889 allow_undefined_flag=$lt_allow_undefined_flag
18891 # Flag that enforces no undefined symbols.
18892 no_undefined_flag=$lt_no_undefined_flag
18894 # Flag to hardcode \$libdir into a binary during linking.
18895 # This must work even if \$libdir does not exist
18896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18898 # Whether we need a single "-rpath" flag with a separated argument.
18899 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18901 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18902 # DIR into the resulting binary.
18903 hardcode_direct=$hardcode_direct
18905 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18906 # DIR into the resulting binary and the resulting library dependency is
18907 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18908 # library is relocated.
18909 hardcode_direct_absolute=$hardcode_direct_absolute
18911 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18912 # into the resulting binary.
18913 hardcode_minus_L=$hardcode_minus_L
18915 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18916 # into the resulting binary.
18917 hardcode_shlibpath_var=$hardcode_shlibpath_var
18919 # Set to "yes" if building a shared library automatically hardcodes DIR
18920 # into the library and all subsequent libraries and executables linked
18922 hardcode_automatic=$hardcode_automatic
18924 # Set to yes if linker adds runtime paths of dependent libraries
18925 # to runtime path list.
18926 inherit_rpath=$inherit_rpath
18928 # Whether libtool must link a program against all its dependency libraries.
18929 link_all_deplibs=$link_all_deplibs
18931 # Set to "yes" if exported symbols are required.
18932 always_export_symbols=$always_export_symbols
18934 # The commands to list exported symbols.
18935 export_symbols_cmds=$lt_export_symbols_cmds
18937 # Symbols that should not be listed in the preloaded symbols.
18938 exclude_expsyms=$lt_exclude_expsyms
18940 # Symbols that must always be exported.
18941 include_expsyms=$lt_include_expsyms
18943 # Commands necessary for linking programs (against libraries) with templates.
18944 prelink_cmds=$lt_prelink_cmds
18946 # Commands necessary for finishing linking programs.
18947 postlink_cmds=$lt_postlink_cmds
18949 # Specify filename containing input files.
18950 file_list_spec=$lt_file_list_spec
18952 # How to hardcode a shared library path into an executable.
18953 hardcode_action=$hardcode_action
18955 # The directories searched by this compiler when creating a shared library.
18956 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18958 # Dependencies to place before and after the objects being linked to
18959 # create a shared library.
18960 predep_objects=$lt_predep_objects
18961 postdep_objects=$lt_postdep_objects
18962 predeps=$lt_predeps
18963 postdeps=$lt_postdeps
18965 # The library search path used internally by the compiler when linking
18966 # a shared library.
18967 compiler_lib_search_path=$lt_compiler_lib_search_path
18969 # ### END LIBTOOL CONFIG
18975 cat <<\_LT_EOF >> "$cfgfile"
18976 # AIX sometimes has problems with the GCC collect2 program. For some
18977 # reason, if we set the COLLECT_NAMES environment variable, the problems
18978 # vanish in a puff of smoke.
18979 if test "X${COLLECT_NAMES+set}" != Xset; then
18981 export COLLECT_NAMES
18988 ltmain="$ac_aux_dir/ltmain.sh"
18991 # We use sed instead of cat because bash on DJGPP gets confused if
18992 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18993 # text mode, it properly converts lines to CR/LF. This bash problem
18994 # is reportedly fixed, but why not run on old versions too?
18995 sed '$q' "$ltmain" >> "$cfgfile" \
18996 || (rm -f "$cfgfile"; exit 1)
18998 if test x"$xsi_shell" = xyes; then
18999 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19003 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19004 \ * ) func_dirname_result="${3}" ;;\
19006 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19007 && mv -f "$cfgfile.tmp" "$cfgfile" \
19008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19009 test 0 -eq $? || _lt_function_replace_fail=:
19012 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19015 \ func_basename_result="${1##*/}"\
19016 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19017 && mv -f "$cfgfile.tmp" "$cfgfile" \
19018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19019 test 0 -eq $? || _lt_function_replace_fail=:
19022 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19023 func_dirname_and_basename ()\
19026 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19027 \ * ) func_dirname_result="${3}" ;;\
19029 \ func_basename_result="${1##*/}"\
19030 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19031 && mv -f "$cfgfile.tmp" "$cfgfile" \
19032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19033 test 0 -eq $? || _lt_function_replace_fail=:
19036 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19039 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19040 \ # positional parameters, so assign one to ordinary parameter first.\
19041 \ func_stripname_result=${3}\
19042 \ func_stripname_result=${func_stripname_result#"${1}"}\
19043 \ func_stripname_result=${func_stripname_result%"${2}"}\
19044 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19045 && mv -f "$cfgfile.tmp" "$cfgfile" \
19046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19047 test 0 -eq $? || _lt_function_replace_fail=:
19050 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19051 func_split_long_opt ()\
19053 \ func_split_long_opt_name=${1%%=*}\
19054 \ func_split_long_opt_arg=${1#*=}\
19055 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19056 && mv -f "$cfgfile.tmp" "$cfgfile" \
19057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19058 test 0 -eq $? || _lt_function_replace_fail=:
19061 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19062 func_split_short_opt ()\
19064 \ func_split_short_opt_arg=${1#??}\
19065 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19066 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19067 && mv -f "$cfgfile.tmp" "$cfgfile" \
19068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19069 test 0 -eq $? || _lt_function_replace_fail=:
19072 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19076 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19077 \ *) func_lo2o_result=${1} ;;\
19079 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19080 && mv -f "$cfgfile.tmp" "$cfgfile" \
19081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19082 test 0 -eq $? || _lt_function_replace_fail=:
19085 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19088 func_xform_result=${1%.*}.lo\
19089 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19090 && mv -f "$cfgfile.tmp" "$cfgfile" \
19091 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19092 test 0 -eq $? || _lt_function_replace_fail=:
19095 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19098 func_arith_result=$(( $* ))\
19099 } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
19108 func_len_result=${#1}\
19109 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19110 && mv -f "$cfgfile.tmp" "$cfgfile" \
19111 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19112 test 0 -eq $? || _lt_function_replace_fail=:
19116 if test x"$lt_shell_append" = xyes; then
19117 sed -e '/^func_append ()$/,/^} # func_append /c\
19120 eval "${1}+=\\${2}"\
19121 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19122 && mv -f "$cfgfile.tmp" "$cfgfile" \
19123 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19124 test 0 -eq $? || _lt_function_replace_fail=:
19127 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19128 func_append_quoted ()\
19130 \ func_quote_for_eval "${2}"\
19131 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19132 } # Extended-shell func_append_quoted 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 # Save a `func_append' function call where possible by direct use of '+='
19139 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19140 && mv -f "$cfgfile.tmp" "$cfgfile" \
19141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19142 test 0 -eq $? || _lt_function_replace_fail=:
19144 # Save a `func_append' function call even when '+=' is not available
19145 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19146 && mv -f "$cfgfile.tmp" "$cfgfile" \
19147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19148 test 0 -eq $? || _lt_function_replace_fail=:
19151 if test x"$_lt_function_replace_fail" = x":"; then
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19153 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19157 mv -f "$cfgfile" "$ofile" ||
19158 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19162 cat <<_LT_EOF >> "$ofile"
19164 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19166 # The linker used to build libraries.
19169 # How to create reloadable object files.
19170 reload_flag=$lt_reload_flag_CXX
19171 reload_cmds=$lt_reload_cmds_CXX
19173 # Commands used to build an old-style archive.
19174 old_archive_cmds=$lt_old_archive_cmds_CXX
19176 # A language specific compiler.
19177 CC=$lt_compiler_CXX
19179 # Is the compiler the GNU compiler?
19182 # Compiler flag to turn off builtin functions.
19183 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19185 # Additional compiler flags for building library objects.
19186 pic_flag=$lt_lt_prog_compiler_pic_CXX
19188 # How to pass a linker flag through the compiler.
19189 wl=$lt_lt_prog_compiler_wl_CXX
19191 # Compiler flag to prevent dynamic linking.
19192 link_static_flag=$lt_lt_prog_compiler_static_CXX
19194 # Does compiler simultaneously support -c and -o options?
19195 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19197 # Whether or not to add -lc for building shared libraries.
19198 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19200 # Whether or not to disallow shared libs when runtime libs are static.
19201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19203 # Compiler flag to allow reflexive dlopens.
19204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19206 # Compiler flag to generate shared objects directly from archives.
19207 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19209 # Whether the compiler copes with passing no objects directly.
19210 compiler_needs_object=$lt_compiler_needs_object_CXX
19212 # Create an old-style archive from a shared archive.
19213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19215 # Create a temporary old-style archive to link instead of a shared archive.
19216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19218 # Commands used to build a shared archive.
19219 archive_cmds=$lt_archive_cmds_CXX
19220 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19222 # Commands used to build a loadable module if different from building
19223 # a shared archive.
19224 module_cmds=$lt_module_cmds_CXX
19225 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19227 # Whether we are building with GNU ld or not.
19228 with_gnu_ld=$lt_with_gnu_ld_CXX
19230 # Flag that allows shared libraries with undefined symbols to be built.
19231 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19233 # Flag that enforces no undefined symbols.
19234 no_undefined_flag=$lt_no_undefined_flag_CXX
19236 # Flag to hardcode \$libdir into a binary during linking.
19237 # This must work even if \$libdir does not exist
19238 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19240 # Whether we need a single "-rpath" flag with a separated argument.
19241 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19243 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19244 # DIR into the resulting binary.
19245 hardcode_direct=$hardcode_direct_CXX
19247 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19248 # DIR into the resulting binary and the resulting library dependency is
19249 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19250 # library is relocated.
19251 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19253 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19254 # into the resulting binary.
19255 hardcode_minus_L=$hardcode_minus_L_CXX
19257 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19258 # into the resulting binary.
19259 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19261 # Set to "yes" if building a shared library automatically hardcodes DIR
19262 # into the library and all subsequent libraries and executables linked
19264 hardcode_automatic=$hardcode_automatic_CXX
19266 # Set to yes if linker adds runtime paths of dependent libraries
19267 # to runtime path list.
19268 inherit_rpath=$inherit_rpath_CXX
19270 # Whether libtool must link a program against all its dependency libraries.
19271 link_all_deplibs=$link_all_deplibs_CXX
19273 # Set to "yes" if exported symbols are required.
19274 always_export_symbols=$always_export_symbols_CXX
19276 # The commands to list exported symbols.
19277 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19279 # Symbols that should not be listed in the preloaded symbols.
19280 exclude_expsyms=$lt_exclude_expsyms_CXX
19282 # Symbols that must always be exported.
19283 include_expsyms=$lt_include_expsyms_CXX
19285 # Commands necessary for linking programs (against libraries) with templates.
19286 prelink_cmds=$lt_prelink_cmds_CXX
19288 # Commands necessary for finishing linking programs.
19289 postlink_cmds=$lt_postlink_cmds_CXX
19291 # Specify filename containing input files.
19292 file_list_spec=$lt_file_list_spec_CXX
19294 # How to hardcode a shared library path into an executable.
19295 hardcode_action=$hardcode_action_CXX
19297 # The directories searched by this compiler when creating a shared library.
19298 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19300 # Dependencies to place before and after the objects being linked to
19301 # create a shared library.
19302 predep_objects=$lt_predep_objects_CXX
19303 postdep_objects=$lt_postdep_objects_CXX
19304 predeps=$lt_predeps_CXX
19305 postdeps=$lt_postdeps_CXX
19307 # The library search path used internally by the compiler when linking
19308 # a shared library.
19309 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19311 # ### END LIBTOOL TAG CONFIG: CXX
19322 ac_clean_files=$ac_clean_files_save
19324 test $ac_write_fail = 0 ||
19325 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19328 # configure is writing to config.log, and then calls config.status.
19329 # config.status does its own redirection, appending to config.log.
19330 # Unfortunately, on DOS this fails, as config.log is still kept open
19331 # by configure, so config.status won't be able to write to it; its
19332 # output is simply discarded. So we exec the FD to /dev/null,
19333 # effectively closing config.log, so it can be properly (re)opened and
19334 # appended to by config.status. When coming back to configure, we
19335 # need to make the FD available again.
19336 if test "$no_create" != yes; then
19338 ac_config_status_args=
19339 test "$silent" = yes &&
19340 ac_config_status_args="$ac_config_status_args --quiet"
19342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19345 # would make configure fail if this is the last instruction.
19346 $ac_cs_success || as_fn_exit 1
19348 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19350 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19354 chmod oug+x rtaudio-config