2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for RtAudio 4.0.
5 # Report bugs to <gary@music.mcgill.ca>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
68 # Find who we are. Look in the path if we contain no directory separator.
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
159 if test $as_have_required = yes && (eval ":
169 as_func_ret_success () {
172 as_func_ret_failure () {
177 if as_func_success; then
181 echo as_func_success failed.
184 if as_func_failure; then
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
255 CONFIG_SHELL=$as_shell
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
282 as_func_ret_success () {
285 as_func_ret_failure () {
290 if as_func_success; then
294 echo as_func_success failed.
297 if as_func_failure; then
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
371 as_func_ret_success () {
374 as_func_ret_failure () {
379 if as_func_success; then
383 echo as_func_success failed.
386 if as_func_failure; then
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
457 # Exit status is that of the last command.
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 ECHO_C= ECHO_N= ECHO_T=
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502 elif ln conf$$.file conf$$ 2>/dev/null; then
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
513 test -d ./-p && rmdir ./-p
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 ac_default_prefix=/usr/local
551 ac_config_libobj_dir=.
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='RtAudio'
561 PACKAGE_TARNAME='rtaudio'
562 PACKAGE_VERSION='4.0'
563 PACKAGE_STRING='RtAudio 4.0'
564 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
566 ac_unique_file="RtAudio.cpp"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
571 # include <sys/types.h>
574 # include <sys/stat.h>
585 # if !STDC_HEADERS && HAVE_MEMORY_H
591 # include <strings.h>
594 # include <inttypes.h>
612 program_transform_name
672 ac_precious_vars='build_alias
685 # Initialize some variables set by options.
687 ac_init_version=false
688 # The variables have the same names as the options, with
689 # dashes changed to underlines.
697 program_transform_name=s,x,x,
705 # Installation directory options.
706 # These are left unexpanded so users can "make install exec_prefix=/foo"
707 # and all the variables that are supposed to be based on exec_prefix
708 # by default will actually change.
709 # Use braces instead of parens because sh, perl, etc. also accept them.
710 # (The list follows the same order as the GNU Coding Standards.)
711 bindir='${exec_prefix}/bin'
712 sbindir='${exec_prefix}/sbin'
713 libexecdir='${exec_prefix}/libexec'
714 datarootdir='${prefix}/share'
715 datadir='${datarootdir}'
716 sysconfdir='${prefix}/etc'
717 sharedstatedir='${prefix}/com'
718 localstatedir='${prefix}/var'
719 includedir='${prefix}/include'
720 oldincludedir='/usr/include'
721 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
722 infodir='${datarootdir}/info'
727 libdir='${exec_prefix}/lib'
728 localedir='${datarootdir}/locale'
729 mandir='${datarootdir}/man'
735 # If the previous option needs an argument, assign it.
736 if test -n "$ac_prev"; then
737 eval $ac_prev=\$ac_option
743 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
747 # Accept the important Cygnus configure options, so we can diagnose typos.
749 case $ac_dashdash$ac_option in
753 -bindir | --bindir | --bindi | --bind | --bin | --bi)
755 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
758 -build | --build | --buil | --bui | --bu)
759 ac_prev=build_alias ;;
760 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
761 build_alias=$ac_optarg ;;
763 -cache-file | --cache-file | --cache-fil | --cache-fi \
764 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
765 ac_prev=cache_file ;;
766 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
767 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
768 cache_file=$ac_optarg ;;
771 cache_file=config.cache ;;
773 -datadir | --datadir | --datadi | --datad)
775 -datadir=* | --datadir=* | --datadi=* | --datad=*)
776 datadir=$ac_optarg ;;
778 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
779 | --dataroo | --dataro | --datar)
780 ac_prev=datarootdir ;;
781 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
782 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
783 datarootdir=$ac_optarg ;;
785 -disable-* | --disable-*)
786 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
790 { (exit 1); exit 1; }; }
791 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
792 eval enable_$ac_feature=no ;;
794 -docdir | --docdir | --docdi | --doc | --do)
796 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
799 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
801 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
804 -enable-* | --enable-*)
805 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
808 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
809 { (exit 1); exit 1; }; }
810 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
811 eval enable_$ac_feature=\$ac_optarg ;;
813 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
814 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
815 | --exec | --exe | --ex)
816 ac_prev=exec_prefix ;;
817 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
818 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
819 | --exec=* | --exe=* | --ex=*)
820 exec_prefix=$ac_optarg ;;
822 -gas | --gas | --ga | --g)
823 # Obsolete; use --with-gas.
826 -help | --help | --hel | --he | -h)
828 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
829 ac_init_help=recursive ;;
830 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
831 ac_init_help=short ;;
833 -host | --host | --hos | --ho)
834 ac_prev=host_alias ;;
835 -host=* | --host=* | --hos=* | --ho=*)
836 host_alias=$ac_optarg ;;
838 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
840 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
842 htmldir=$ac_optarg ;;
844 -includedir | --includedir | --includedi | --included | --include \
845 | --includ | --inclu | --incl | --inc)
846 ac_prev=includedir ;;
847 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
848 | --includ=* | --inclu=* | --incl=* | --inc=*)
849 includedir=$ac_optarg ;;
851 -infodir | --infodir | --infodi | --infod | --info | --inf)
853 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
854 infodir=$ac_optarg ;;
856 -libdir | --libdir | --libdi | --libd)
858 -libdir=* | --libdir=* | --libdi=* | --libd=*)
861 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
862 | --libexe | --libex | --libe)
863 ac_prev=libexecdir ;;
864 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
865 | --libexe=* | --libex=* | --libe=*)
866 libexecdir=$ac_optarg ;;
868 -localedir | --localedir | --localedi | --localed | --locale)
870 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
871 localedir=$ac_optarg ;;
873 -localstatedir | --localstatedir | --localstatedi | --localstated \
874 | --localstate | --localstat | --localsta | --localst | --locals)
875 ac_prev=localstatedir ;;
876 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
877 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
878 localstatedir=$ac_optarg ;;
880 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
882 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
886 # Obsolete; use --without-fp.
889 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
890 | --no-cr | --no-c | -n)
893 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
894 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
897 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
898 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
899 | --oldin | --oldi | --old | --ol | --o)
900 ac_prev=oldincludedir ;;
901 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
902 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
903 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
904 oldincludedir=$ac_optarg ;;
906 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
908 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
911 -program-prefix | --program-prefix | --program-prefi | --program-pref \
912 | --program-pre | --program-pr | --program-p)
913 ac_prev=program_prefix ;;
914 -program-prefix=* | --program-prefix=* | --program-prefi=* \
915 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
916 program_prefix=$ac_optarg ;;
918 -program-suffix | --program-suffix | --program-suffi | --program-suff \
919 | --program-suf | --program-su | --program-s)
920 ac_prev=program_suffix ;;
921 -program-suffix=* | --program-suffix=* | --program-suffi=* \
922 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
923 program_suffix=$ac_optarg ;;
925 -program-transform-name | --program-transform-name \
926 | --program-transform-nam | --program-transform-na \
927 | --program-transform-n | --program-transform- \
928 | --program-transform | --program-transfor \
929 | --program-transfo | --program-transf \
930 | --program-trans | --program-tran \
931 | --progr-tra | --program-tr | --program-t)
932 ac_prev=program_transform_name ;;
933 -program-transform-name=* | --program-transform-name=* \
934 | --program-transform-nam=* | --program-transform-na=* \
935 | --program-transform-n=* | --program-transform-=* \
936 | --program-transform=* | --program-transfor=* \
937 | --program-transfo=* | --program-transf=* \
938 | --program-trans=* | --program-tran=* \
939 | --progr-tra=* | --program-tr=* | --program-t=*)
940 program_transform_name=$ac_optarg ;;
942 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
944 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
947 -psdir | --psdir | --psdi | --psd | --ps)
949 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
953 | -silent | --silent | --silen | --sile | --sil)
956 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
958 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
960 sbindir=$ac_optarg ;;
962 -sharedstatedir | --sharedstatedir | --sharedstatedi \
963 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
964 | --sharedst | --shareds | --shared | --share | --shar \
966 ac_prev=sharedstatedir ;;
967 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
968 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
969 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
971 sharedstatedir=$ac_optarg ;;
973 -site | --site | --sit)
975 -site=* | --site=* | --sit=*)
978 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
980 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
983 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
984 | --syscon | --sysco | --sysc | --sys | --sy)
985 ac_prev=sysconfdir ;;
986 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
987 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
988 sysconfdir=$ac_optarg ;;
990 -target | --target | --targe | --targ | --tar | --ta | --t)
991 ac_prev=target_alias ;;
992 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
993 target_alias=$ac_optarg ;;
995 -v | -verbose | --verbose | --verbos | --verbo | --verb)
998 -version | --version | --versio | --versi | --vers | -V)
1002 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1005 { echo "$as_me: error: invalid package name: $ac_package" >&2
1006 { (exit 1); exit 1; }; }
1007 ac_package=`echo $ac_package| sed 's/-/_/g'`
1008 eval with_$ac_package=\$ac_optarg ;;
1010 -without-* | --without-*)
1011 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid package name: $ac_package" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_package=`echo $ac_package | sed 's/-/_/g'`
1017 eval with_$ac_package=no ;;
1020 # Obsolete; use --with-x.
1023 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1024 | --x-incl | --x-inc | --x-in | --x-i)
1025 ac_prev=x_includes ;;
1026 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1027 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1028 x_includes=$ac_optarg ;;
1030 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1031 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1032 ac_prev=x_libraries ;;
1033 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1034 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1035 x_libraries=$ac_optarg ;;
1037 -*) { echo "$as_me: error: unrecognized option: $ac_option
1038 Try \`$0 --help' for more information." >&2
1039 { (exit 1); exit 1; }; }
1043 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1047 { (exit 1); exit 1; }; }
1048 eval $ac_envvar=\$ac_optarg
1049 export $ac_envvar ;;
1052 # FIXME: should be removed in autoconf 3.0.
1053 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1054 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1056 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1062 if test -n "$ac_prev"; then
1063 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1064 { echo "$as_me: error: missing argument to $ac_option" >&2
1065 { (exit 1); exit 1; }; }
1068 # Be sure to have absolute directory names.
1069 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1070 datadir sysconfdir sharedstatedir localstatedir includedir \
1071 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1072 libdir localedir mandir
1074 eval ac_val=\$$ac_var
1076 [\\/$]* | ?:[\\/]* ) continue;;
1077 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1079 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1080 { (exit 1); exit 1; }; }
1083 # There might be people who depend on the old broken behavior: `$host'
1084 # used to hold the argument of --host etc.
1085 # FIXME: To remove some day.
1088 target=$target_alias
1090 # FIXME: To remove some day.
1091 if test "x$host_alias" != x; then
1092 if test "x$build_alias" = x; then
1093 cross_compiling=maybe
1094 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1095 If a cross compiler is detected then cross compile mode will be used." >&2
1096 elif test "x$build_alias" != "x$host_alias"; then
1102 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1104 test "$silent" = yes && exec 6>/dev/null
1107 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1108 ac_ls_di=`ls -di .` &&
1109 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1110 { echo "$as_me: error: Working directory cannot be determined" >&2
1111 { (exit 1); exit 1; }; }
1112 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1113 { echo "$as_me: error: pwd does not report name of working directory" >&2
1114 { (exit 1); exit 1; }; }
1117 # Find the source files, if location was not specified.
1118 if test -z "$srcdir"; then
1119 ac_srcdir_defaulted=yes
1120 # Try the directory containing this script, then the parent directory.
1121 ac_confdir=`$as_dirname -- "$0" ||
1122 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1123 X"$0" : 'X\(//\)[^/]' \| \
1124 X"$0" : 'X\(//\)$' \| \
1125 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1145 if test ! -r "$srcdir/$ac_unique_file"; then
1149 ac_srcdir_defaulted=no
1151 if test ! -r "$srcdir/$ac_unique_file"; then
1152 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1153 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1154 { (exit 1); exit 1; }; }
1156 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1158 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1159 { (exit 1); exit 1; }; }
1161 # When building in place, set srcdir=.
1162 if test "$ac_abs_confdir" = "$ac_pwd"; then
1165 # Remove unnecessary trailing slashes from srcdir.
1166 # Double slashes in file names in object file debugging info
1167 # mess up M-x gdb in Emacs.
1169 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1171 for ac_var in $ac_precious_vars; do
1172 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1173 eval ac_env_${ac_var}_value=\$${ac_var}
1174 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1175 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1179 # Report the --help message.
1181 if test "$ac_init_help" = "long"; then
1182 # Omit some internal or obsolete options to make the list less imposing.
1183 # This message is too long to be a string in the A/UX 3.1 sh.
1185 \`configure' configures RtAudio 4.0 to adapt to many kinds of systems.
1187 Usage: $0 [OPTION]... [VAR=VALUE]...
1189 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1190 VAR=VALUE. See below for descriptions of some of the useful variables.
1192 Defaults for the options are specified in brackets.
1195 -h, --help display this help and exit
1196 --help=short display options specific to this package
1197 --help=recursive display the short help of all the included packages
1198 -V, --version display version information and exit
1199 -q, --quiet, --silent do not print \`checking...' messages
1200 --cache-file=FILE cache test results in FILE [disabled]
1201 -C, --config-cache alias for \`--cache-file=config.cache'
1202 -n, --no-create do not create output files
1203 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1205 Installation directories:
1206 --prefix=PREFIX install architecture-independent files in PREFIX
1207 [$ac_default_prefix]
1208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1211 By default, \`make install' will install all the files in
1212 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1213 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1214 for instance \`--prefix=\$HOME'.
1216 For better control, use the options below.
1218 Fine tuning of the installation directories:
1219 --bindir=DIR user executables [EPREFIX/bin]
1220 --sbindir=DIR system admin executables [EPREFIX/sbin]
1221 --libexecdir=DIR program executables [EPREFIX/libexec]
1222 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1223 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1224 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1225 --libdir=DIR object code libraries [EPREFIX/lib]
1226 --includedir=DIR C header files [PREFIX/include]
1227 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1228 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1229 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1230 --infodir=DIR info documentation [DATAROOTDIR/info]
1231 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1232 --mandir=DIR man documentation [DATAROOTDIR/man]
1233 --docdir=DIR documentation root [DATAROOTDIR/doc/rtaudio]
1234 --htmldir=DIR html documentation [DOCDIR]
1235 --dvidir=DIR dvi documentation [DOCDIR]
1236 --pdfdir=DIR pdf documentation [DOCDIR]
1237 --psdir=DIR ps documentation [DOCDIR]
1243 --build=BUILD configure for building on BUILD [guessed]
1244 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1248 if test -n "$ac_init_help"; then
1249 case $ac_init_help in
1250 short | recursive ) echo "Configuration of RtAudio 4.0:";;
1255 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1256 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1257 --enable-debug = enable various debug output
1260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1262 --with-jack = choose JACK server support (mac and linux only)
1263 --with-alsa = choose native ALSA API support (linux only)
1264 --with-oss = choose OSS API support (linux only)
1265 --with-jack = choose JACK server support (unix only)
1266 --with-core = choose CoreAudio API support (mac only)
1267 --with-asio = choose ASIO API support (windoze only)
1268 --with-ds = choose DirectSound API support (windoze only)
1270 Some influential environment variables:
1271 CXX C++ compiler command
1272 CXXFLAGS C++ compiler flags
1273 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1274 nonstandard directory <lib dir>
1275 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1276 you have headers in a nonstandard directory <include dir>
1277 CC C compiler command
1278 CFLAGS C compiler flags
1281 Use these variables to override the choices made by `configure' or to help
1282 it to find libraries and programs with nonstandard names/locations.
1284 Report bugs to <gary@music.mcgill.ca>.
1289 if test "$ac_init_help" = "recursive"; then
1290 # If there are subdirs, report their specific --help.
1291 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1292 test -d "$ac_dir" || continue
1296 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1298 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1299 # A ".." for each directory in $ac_dir_suffix.
1300 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1301 case $ac_top_builddir_sub in
1302 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1303 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1306 ac_abs_top_builddir=$ac_pwd
1307 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1308 # for backward compatibility:
1309 ac_top_builddir=$ac_top_build_prefix
1312 .) # We are building in place.
1314 ac_top_srcdir=$ac_top_builddir_sub
1315 ac_abs_top_srcdir=$ac_pwd ;;
1316 [\\/]* | ?:[\\/]* ) # Absolute name.
1317 ac_srcdir=$srcdir$ac_dir_suffix;
1318 ac_top_srcdir=$srcdir
1319 ac_abs_top_srcdir=$srcdir ;;
1321 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1322 ac_top_srcdir=$ac_top_build_prefix$srcdir
1323 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1325 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1327 cd "$ac_dir" || { ac_status=$?; continue; }
1328 # Check for guested configure.
1329 if test -f "$ac_srcdir/configure.gnu"; then
1331 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1332 elif test -f "$ac_srcdir/configure"; then
1334 $SHELL "$ac_srcdir/configure" --help=recursive
1336 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1338 cd "$ac_pwd" || { ac_status=$?; break; }
1342 test -n "$ac_init_help" && exit $ac_status
1343 if $ac_init_version; then
1345 RtAudio configure 4.0
1346 generated by GNU Autoconf 2.60
1348 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1349 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1350 This configure script is free software; the Free Software Foundation
1351 gives unlimited permission to copy, distribute and modify it.
1355 cat >config.log <<_ACEOF
1356 This file contains any messages produced by compilers while
1357 running configure, to aid debugging if configure makes a mistake.
1359 It was created by RtAudio $as_me 4.0, which was
1360 generated by GNU Autoconf 2.60. Invocation command line was
1372 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1373 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1374 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1375 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1376 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1378 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1379 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1381 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1382 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1383 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1384 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1385 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1386 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1387 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395 test -z "$as_dir" && as_dir=.
1396 echo "PATH: $as_dir"
1412 # Keep a trace of the command line.
1413 # Strip out --no-create and --no-recursion so they do not pile up.
1414 # Strip out --silent because we don't want to record it for future runs.
1415 # Also quote any args containing shell meta-characters.
1416 # Make two passes to allow for proper duplicate-argument suppression.
1420 ac_must_keep_next=false
1426 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1428 | -silent | --silent | --silen | --sile | --sil)
1431 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1434 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1436 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1437 if test $ac_must_keep_next = true; then
1438 ac_must_keep_next=false # Got value, back to normal.
1441 *=* | --config-cache | -C | -disable-* | --disable-* \
1442 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1443 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1444 | -with-* | --with-* | -without-* | --without-* | --x)
1445 case "$ac_configure_args0 " in
1446 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1449 -* ) ac_must_keep_next=true ;;
1452 ac_configure_args="$ac_configure_args '$ac_arg'"
1457 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1458 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1460 # When interrupted or exit'd, cleanup temporary files, and complete
1461 # config.log. We remove comments because anyway the quotes in there
1462 # would cause problems or look ugly.
1463 # WARNING: Use '\'' to represent an apostrophe within the trap.
1464 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1465 trap 'exit_status=$?
1466 # Save into config.log some information that might help in debugging.
1471 ## ---------------- ##
1472 ## Cache variables. ##
1473 ## ---------------- ##
1476 # The following way of writing the cache mishandles newlines in values,
1478 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1479 eval ac_val=\$$ac_var
1483 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1484 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1487 _ | IFS | as_nl) ;; #(
1488 *) $as_unset $ac_var ;;
1493 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1494 *${as_nl}ac_space=\ *)
1496 "s/'\''/'\''\\\\'\'''\''/g;
1497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1508 ## ----------------- ##
1509 ## Output variables. ##
1510 ## ----------------- ##
1513 for ac_var in $ac_subst_vars
1515 eval ac_val=\$$ac_var
1517 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1519 echo "$ac_var='\''$ac_val'\''"
1523 if test -n "$ac_subst_files"; then
1525 ## ------------------- ##
1526 ## File substitutions. ##
1527 ## ------------------- ##
1530 for ac_var in $ac_subst_files
1532 eval ac_val=\$$ac_var
1534 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1536 echo "$ac_var='\''$ac_val'\''"
1541 if test -s confdefs.h; then
1551 test "$ac_signal" != 0 &&
1552 echo "$as_me: caught signal $ac_signal"
1553 echo "$as_me: exit $exit_status"
1555 rm -f core *.core core.conftest.* &&
1556 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1559 for ac_signal in 1 2 13 15; do
1560 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1564 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1565 rm -f -r conftest* confdefs.h
1567 # Predefined preprocessor variables.
1569 cat >>confdefs.h <<_ACEOF
1570 #define PACKAGE_NAME "$PACKAGE_NAME"
1574 cat >>confdefs.h <<_ACEOF
1575 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1579 cat >>confdefs.h <<_ACEOF
1580 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1584 cat >>confdefs.h <<_ACEOF
1585 #define PACKAGE_STRING "$PACKAGE_STRING"
1589 cat >>confdefs.h <<_ACEOF
1590 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1594 # Let the site file select an alternate cache file if it wants to.
1595 # Prefer explicitly selected file to automatically selected ones.
1596 if test -n "$CONFIG_SITE"; then
1597 set x "$CONFIG_SITE"
1598 elif test "x$prefix" != xNONE; then
1599 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1601 set x "$ac_default_prefix/share/config.site" \
1602 "$ac_default_prefix/etc/config.site"
1607 if test -r "$ac_site_file"; then
1608 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1609 echo "$as_me: loading site script $ac_site_file" >&6;}
1610 sed 's/^/| /' "$ac_site_file" >&5
1615 if test -r "$cache_file"; then
1616 # Some versions of bash will fail to source /dev/null (special
1617 # files actually), so we avoid doing that.
1618 if test -f "$cache_file"; then
1619 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1620 echo "$as_me: loading cache $cache_file" >&6;}
1622 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1623 *) . "./$cache_file";;
1627 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1628 echo "$as_me: creating cache $cache_file" >&6;}
1632 # Check that the precious variables saved in the cache have kept the same
1634 ac_cache_corrupted=false
1635 for ac_var in $ac_precious_vars; do
1636 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1637 eval ac_new_set=\$ac_env_${ac_var}_set
1638 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1639 eval ac_new_val=\$ac_env_${ac_var}_value
1640 case $ac_old_set,$ac_new_set in
1642 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1643 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1644 ac_cache_corrupted=: ;;
1646 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1647 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1648 ac_cache_corrupted=: ;;
1651 if test "x$ac_old_val" != "x$ac_new_val"; then
1652 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1653 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1654 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1655 echo "$as_me: former value: $ac_old_val" >&2;}
1656 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1657 echo "$as_me: current value: $ac_new_val" >&2;}
1658 ac_cache_corrupted=:
1661 # Pass precious variables to config.status.
1662 if test "$ac_new_set" = set; then
1664 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1665 *) ac_arg=$ac_var=$ac_new_val ;;
1667 case " $ac_configure_args " in
1668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1669 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1673 if $ac_cache_corrupted; then
1674 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1675 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1676 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1677 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1678 { (exit 1); exit 1; }; }
1706 ac_cpp='$CPP $CPPFLAGS'
1707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1713 for ac_dir in config "$srcdir"/config; do
1714 if test -f "$ac_dir/install-sh"; then
1716 ac_install_sh="$ac_aux_dir/install-sh -c"
1718 elif test -f "$ac_dir/install.sh"; then
1720 ac_install_sh="$ac_aux_dir/install.sh -c"
1722 elif test -f "$ac_dir/shtool"; then
1724 ac_install_sh="$ac_aux_dir/shtool install -c"
1728 if test -z "$ac_aux_dir"; then
1729 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1730 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1731 { (exit 1); exit 1; }; }
1734 # These three variables are undocumented and unsupported,
1735 # and are intended to be withdrawn in a future Autoconf release.
1736 # They can cause serious problems if a builder's source tree is in a directory
1737 # whose full name contains unusual characters.
1738 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1739 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1740 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1744 ac_config_files="$ac_config_files rtaudio-config Makefile tests/Makefile"
1747 # Fill GXX with something before test.
1751 # Checks for programs.
1753 ac_cpp='$CXXCPP $CPPFLAGS'
1754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1757 if test -z "$CXX"; then
1758 if test -n "$CCC"; then
1761 if test -n "$ac_tool_prefix"; then
1762 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1768 if test "${ac_cv_prog_CXX+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 if test -n "$CXX"; then
1772 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1781 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 if test -n "$CXX"; then
1793 { echo "$as_me:$LINENO: result: $CXX" >&5
1794 echo "${ECHO_T}$CXX" >&6; }
1796 { echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6; }
1801 test -n "$CXX" && break
1804 if test -z "$CXX"; then
1806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1808 # Extract the first word of "$ac_prog", so it can be a program name with args.
1809 set dummy $ac_prog; ac_word=$2
1810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1812 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 if test -n "$ac_ct_CXX"; then
1816 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1825 ac_cv_prog_ac_ct_CXX="$ac_prog"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1836 if test -n "$ac_ct_CXX"; then
1837 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1838 echo "${ECHO_T}$ac_ct_CXX" >&6; }
1840 { echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6; }
1845 test -n "$ac_ct_CXX" && break
1848 if test "x$ac_ct_CXX" = x; then
1851 case $cross_compiling:$ac_tool_warned in
1853 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1854 whose name does not start with the host triplet. If you think this
1855 configuration is useful to you, please write to autoconf@gnu.org." >&5
1856 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1857 whose name does not start with the host triplet. If you think this
1858 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1859 ac_tool_warned=yes ;;
1867 # Provide some information about the compiler.
1868 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
1869 ac_compiler=`set X $ac_compile; echo $2`
1870 { (ac_try="$ac_compiler --version >&5"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1876 (eval "$ac_compiler --version >&5") 2>&5
1878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879 (exit $ac_status); }
1880 { (ac_try="$ac_compiler -v >&5"
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1886 (eval "$ac_compiler -v >&5") 2>&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }
1890 { (ac_try="$ac_compiler -V >&5"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1896 (eval "$ac_compiler -V >&5") 2>&5
1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899 (exit $ac_status); }
1901 cat >conftest.$ac_ext <<_ACEOF
1904 cat confdefs.h >>conftest.$ac_ext
1905 cat >>conftest.$ac_ext <<_ACEOF
1906 /* end confdefs.h. */
1916 ac_clean_files_save=$ac_clean_files
1917 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1918 # Try to create an executable without -o first, disregard a.out.
1919 # It will help us diagnose broken compilers, and finding out an intuition
1921 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1922 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
1923 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1925 # List of possible output files, starting from the most likely.
1926 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1927 # only as a last resort. b.out is created by i960 compilers.
1928 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1930 # The IRIX 6 linker writes into existing files which may not be
1931 # executable, retaining their permissions. Remove them first so a
1932 # subsequent execution test works.
1934 for ac_file in $ac_files
1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1938 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1943 if { (ac_try="$ac_link_default"
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1949 (eval "$ac_link_default") 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; then
1953 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1954 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1955 # in a Makefile. We should not override ac_cv_exeext if it was cached,
1956 # so that the user can short-circuit this test for compilers unknown to
1958 for ac_file in $ac_files
1960 test -f "$ac_file" || continue
1962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1965 # We found the default executable, but exeext='' is most
1969 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1973 # We set ac_cv_exeext here because the later test for it is not
1974 # safe: cross compilers may not add the suffix if given an `-o'
1975 # argument, so we may need to know it at that point already.
1976 # Even if this section looks crufty: it has the advantage of
1983 test "$ac_cv_exeext" = no && ac_cv_exeext=
1986 echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1989 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1990 See \`config.log' for more details." >&5
1991 echo "$as_me: error: C++ compiler cannot create executables
1992 See \`config.log' for more details." >&2;}
1993 { (exit 77); exit 77; }; }
1996 ac_exeext=$ac_cv_exeext
1997 { echo "$as_me:$LINENO: result: $ac_file" >&5
1998 echo "${ECHO_T}$ac_file" >&6; }
2000 # Check that the compiler produces executables we can run. If not, either
2001 # the compiler is broken, or we cross compile.
2002 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2003 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2005 # If not cross compiling, check that we can run a simple program.
2006 if test "$cross_compiling" != yes; then
2007 if { ac_try='./$ac_file'
2008 { (case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2013 (eval "$ac_try") 2>&5
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2019 if test "$cross_compiling" = maybe; then
2022 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2023 If you meant to cross compile, use \`--host'.
2024 See \`config.log' for more details." >&5
2025 echo "$as_me: error: cannot run C++ compiled programs.
2026 If you meant to cross compile, use \`--host'.
2027 See \`config.log' for more details." >&2;}
2028 { (exit 1); exit 1; }; }
2032 { echo "$as_me:$LINENO: result: yes" >&5
2033 echo "${ECHO_T}yes" >&6; }
2035 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2036 ac_clean_files=$ac_clean_files_save
2037 # Check that the compiler produces executables we can run. If not, either
2038 # the compiler is broken, or we cross compile.
2039 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2040 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2041 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2042 echo "${ECHO_T}$cross_compiling" >&6; }
2044 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2045 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2046 if { (ac_try="$ac_link"
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2052 (eval "$ac_link") 2>&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; then
2056 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2057 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2058 # work properly (i.e., refer to `conftest.exe'), while it won't with
2060 for ac_file in conftest.exe conftest conftest.*; do
2061 test -f "$ac_file" || continue
2063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2070 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2073 See \`config.log' for more details." >&2;}
2074 { (exit 1); exit 1; }; }
2077 rm -f conftest$ac_cv_exeext
2078 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2079 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2081 rm -f conftest.$ac_ext
2082 EXEEXT=$ac_cv_exeext
2084 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2085 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2086 if test "${ac_cv_objext+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 cat >conftest.$ac_ext <<_ACEOF
2092 cat confdefs.h >>conftest.$ac_ext
2093 cat >>conftest.$ac_ext <<_ACEOF
2094 /* end confdefs.h. */
2104 rm -f conftest.o conftest.obj
2105 if { (ac_try="$ac_compile"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compile") 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 for ac_file in conftest.o conftest.obj conftest.*; do
2116 test -f "$ac_file" || continue;
2118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2119 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2124 echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2127 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2128 See \`config.log' for more details." >&5
2129 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2130 See \`config.log' for more details." >&2;}
2131 { (exit 1); exit 1; }; }
2134 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2136 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2137 echo "${ECHO_T}$ac_cv_objext" >&6; }
2138 OBJEXT=$ac_cv_objext
2140 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2141 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2142 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 cat >conftest.$ac_ext <<_ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2163 rm -f conftest.$ac_objext
2164 if { (ac_try="$ac_compile"
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_compile") 2>conftest.er1
2172 grep -v '^ *+' conftest.er1 >conftest.err
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
2177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2178 { (case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2183 (eval "$ac_try") 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (case "(($ac_try" in
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2193 (eval "$ac_try") 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; }; then
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2209 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2210 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2211 GXX=`test $ac_compiler_gnu = yes && echo yes`
2212 ac_test_CXXFLAGS=${CXXFLAGS+set}
2213 ac_save_CXXFLAGS=$CXXFLAGS
2214 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2215 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2216 if test "${ac_cv_prog_cxx_g+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2220 ac_cxx_werror_flag=yes
2223 cat >conftest.$ac_ext <<_ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2238 rm -f conftest.$ac_objext
2239 if { (ac_try="$ac_compile"
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_compile") 2>conftest.er1
2247 grep -v '^ *+' conftest.er1 >conftest.err
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2253 { (case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258 (eval "$ac_try") 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; } &&
2262 { ac_try='test -s conftest.$ac_objext'
2263 { (case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268 (eval "$ac_try") 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_cv_prog_cxx_g=yes
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2278 cat >conftest.$ac_ext <<_ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2293 rm -f conftest.$ac_objext
2294 if { (ac_try="$ac_compile"
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2300 (eval "$ac_compile") 2>conftest.er1
2302 grep -v '^ *+' conftest.er1 >conftest.err
2304 cat conftest.err >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2308 { (case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2313 (eval "$ac_try") 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2323 (eval "$ac_try") 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2332 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2349 rm -f conftest.$ac_objext
2350 if { (ac_try="$ac_compile"
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2356 (eval "$ac_compile") 2>conftest.er1
2358 grep -v '^ *+' conftest.er1 >conftest.err
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2364 { (case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_try") 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_try") 2>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 ac_cv_prog_cxx_g=yes
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2400 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2401 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2402 if test "$ac_test_CXXFLAGS" = set; then
2403 CXXFLAGS=$ac_save_CXXFLAGS
2404 elif test $ac_cv_prog_cxx_g = yes; then
2405 if test "$GXX" = yes; then
2411 if test "$GXX" = yes; then
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 if test -n "$ac_tool_prefix"; then
2424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2428 if test "${ac_cv_prog_RANLIB+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -n "$RANLIB"; then
2432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 RANLIB=$ac_cv_prog_RANLIB
2452 if test -n "$RANLIB"; then
2453 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2454 echo "${ECHO_T}$RANLIB" >&6; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2462 if test -z "$ac_cv_prog_RANLIB"; then
2463 ac_ct_RANLIB=$RANLIB
2464 # Extract the first word of "ranlib", so it can be a program name with args.
2465 set dummy ranlib; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$ac_ct_RANLIB"; then
2472 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_ac_ct_RANLIB="ranlib"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2492 if test -n "$ac_ct_RANLIB"; then
2493 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2494 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2496 { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2500 if test "x$ac_ct_RANLIB" = x; then
2503 case $cross_compiling:$ac_tool_warned in
2505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2506 whose name does not start with the host triplet. If you think this
2507 configuration is useful to you, please write to autoconf@gnu.org." >&5
2508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2509 whose name does not start with the host triplet. If you think this
2510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2511 ac_tool_warned=yes ;;
2513 RANLIB=$ac_ct_RANLIB
2516 RANLIB="$ac_cv_prog_RANLIB"
2519 # Extract the first word of "ar", so it can be a program name with args.
2520 set dummy ar; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_path_AR+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
2551 if test -n "$AR"; then
2552 { echo "$as_me:$LINENO: result: $AR" >&5
2553 echo "${ECHO_T}$AR" >&6; }
2555 { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2560 if [ $AR = "no" ] ; then
2561 { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
2562 echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
2563 { (exit 1); exit 1; }; };
2566 # Checks for header files.
2568 ac_cpp='$CPP $CPPFLAGS'
2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572 if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 if test -n "$CC"; then
2602 { echo "$as_me:$LINENO: result: $CC" >&5
2603 echo "${ECHO_T}$CC" >&6; }
2605 { echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6; }
2611 if test -z "$ac_cv_prog_CC"; then
2613 # Extract the first word of "gcc", so it can be a program name with args.
2614 set dummy gcc; ac_word=$2
2615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 if test -n "$ac_ct_CC"; then
2621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_ac_ct_CC="gcc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2641 if test -n "$ac_ct_CC"; then
2642 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2643 echo "${ECHO_T}$ac_ct_CC" >&6; }
2645 { echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6; }
2649 if test "x$ac_ct_CC" = x; then
2652 case $cross_compiling:$ac_tool_warned in
2654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet. If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&5
2657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2658 whose name does not start with the host triplet. If you think this
2659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2660 ac_tool_warned=yes ;;
2668 if test -z "$CC"; then
2669 if test -n "$ac_tool_prefix"; then
2670 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2671 set dummy ${ac_tool_prefix}cc; ac_word=$2
2672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_CC+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_CC="${ac_tool_prefix}cc"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 if test -n "$CC"; then
2699 { echo "$as_me:$LINENO: result: $CC" >&5
2700 echo "${ECHO_T}$CC" >&6; }
2702 { echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6; }
2709 if test -z "$CC"; then
2710 # Extract the first word of "cc", so it can be a program name with args.
2711 set dummy cc; ac_word=$2
2712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2714 if test "${ac_cv_prog_CC+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2729 ac_prog_rejected=yes
2733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test $ac_prog_rejected = yes; then
2741 # We found a bogon in the path, so make sure we never use it.
2742 set dummy $ac_cv_prog_CC
2744 if test $# != 0; then
2745 # We chose a different compiler from the bogus one.
2746 # However, it has the same basename, so the bogon will be chosen
2747 # first if we set CC to just the basename; use the full file name.
2749 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2755 if test -n "$CC"; then
2756 { echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6; }
2759 { echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6; }
2765 if test -z "$CC"; then
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in cl.exe
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2773 if test "${ac_cv_prog_CC+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { echo "$as_me:$LINENO: result: $CC" >&5
2799 echo "${ECHO_T}$CC" >&6; }
2801 { echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6; }
2806 test -n "$CC" && break
2809 if test -z "$CC"; then
2811 for ac_prog in cl.exe
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_CC="$ac_prog"
2831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2843 echo "${ECHO_T}$ac_ct_CC" >&6; }
2845 { echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6; }
2850 test -n "$ac_ct_CC" && break
2853 if test "x$ac_ct_CC" = x; then
2856 case $cross_compiling:$ac_tool_warned in
2858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet. If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&5
2861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2862 whose name does not start with the host triplet. If you think this
2863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2864 ac_tool_warned=yes ;;
2873 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details." >&2;}
2877 { (exit 1); exit 1; }; }
2879 # Provide some information about the compiler.
2880 echo "$as_me:$LINENO: checking for C compiler version" >&5
2881 ac_compiler=`set X $ac_compile; echo $2`
2882 { (ac_try="$ac_compiler --version >&5"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler --version >&5") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2892 { (ac_try="$ac_compiler -v >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler -v >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -V >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -V >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2913 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2914 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2915 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2951 { (case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_try") 2>&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; } &&
2960 { ac_try='test -s conftest.$ac_objext'
2961 { (case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_try") 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2982 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2983 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2984 GCC=`test $ac_compiler_gnu = yes && echo yes`
2985 ac_test_CFLAGS=${CFLAGS+set}
2986 ac_save_CFLAGS=$CFLAGS
2987 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2988 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2989 if test "${ac_cv_prog_cc_g+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 ac_save_c_werror_flag=$ac_c_werror_flag
2993 ac_c_werror_flag=yes
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>conftest.er1
3075 grep -v '^ *+' conftest.er1 >conftest.err
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
3080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3081 { (case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_try") 2>&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try='test -s conftest.$ac_objext'
3091 { (case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_try") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_c_werror_flag=$ac_save_c_werror_flag
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_try") 2>&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 ac_c_werror_flag=$ac_save_c_werror_flag
3173 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3174 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3175 if test "$ac_test_CFLAGS" = set; then
3176 CFLAGS=$ac_save_CFLAGS
3177 elif test $ac_cv_prog_cc_g = yes; then
3178 if test "$GCC" = yes; then
3184 if test "$GCC" = yes; then
3190 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3191 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3192 if test "${ac_cv_prog_cc_c89+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 ac_cv_prog_cc_c89=no
3197 cat >conftest.$ac_ext <<_ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3205 #include <sys/types.h>
3206 #include <sys/stat.h>
3207 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3208 struct buf { int x; };
3209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3210 static char *e (p, i)
3216 static char *f (char * (*g) (char **, int), char **p, ...)
3221 s = g (p, va_arg (v,int));
3226 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3227 function prototypes and stuff, but not '\xHH' hex character constants.
3228 These don't provoke an error unfortunately, instead are silently treated
3229 as 'x'. The following induces an error, until -std is added to get
3230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3231 array size at least. It's necessary to write '\x00'==0 to get something
3232 that's true only with -std. */
3233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3235 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3236 inside strings and character constants. */
3238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3240 int test (int i, double x);
3241 struct s1 {int (*f) (int a);};
3242 struct s2 {int (*f) (double a);};
3243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3249 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3257 CC="$ac_save_CC $ac_arg"
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3267 grep -v '^ *+' conftest.er1 >conftest.err
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3273 { (case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_try") 2>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; } &&
3282 { ac_try='test -s conftest.$ac_objext'
3283 { (case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_try") 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_cv_prog_cc_c89=$ac_arg
3294 echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3300 rm -f core conftest.err conftest.$ac_objext
3301 test "x$ac_cv_prog_cc_c89" != "xno" && break
3303 rm -f conftest.$ac_ext
3308 case "x$ac_cv_prog_cc_c89" in
3310 { echo "$as_me:$LINENO: result: none needed" >&5
3311 echo "${ECHO_T}none needed" >&6; } ;;
3313 { echo "$as_me:$LINENO: result: unsupported" >&5
3314 echo "${ECHO_T}unsupported" >&6; } ;;
3316 CC="$CC $ac_cv_prog_cc_c89"
3317 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3318 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3335 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3336 # On Suns, sometimes $CPP names a directory.
3337 if test -n "$CPP" && test -d "$CPP"; then
3340 if test -z "$CPP"; then
3341 if test "${ac_cv_prog_CPP+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 # Double quotes because CPP needs to be expanded
3345 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3348 for ac_c_preproc_warn_flag in '' yes
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3363 # include <limits.h>
3365 # include <assert.h>
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3391 if test -z "$ac_cpp_err"; then
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3435 if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Passes both tests.
3447 rm -f conftest.err conftest.$ac_ext
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3464 { echo "$as_me:$LINENO: result: $CPP" >&5
3465 echo "${ECHO_T}$CPP" >&6; }
3467 for ac_c_preproc_warn_flag in '' yes
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3482 # include <limits.h>
3484 # include <assert.h>
3488 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510 if test -z "$ac_cpp_err"; then
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 # Broken: fails on valid input.
3520 rm -f conftest.err conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3532 if { (ac_try="$ac_cpp conftest.$ac_ext"
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3554 if test -z "$ac_cpp_err"; then
3555 # Broken: success on invalid input.
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 # Passes both tests.
3566 rm -f conftest.err conftest.$ac_ext
3569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3570 rm -f conftest.err conftest.$ac_ext
3571 if $ac_preproc_ok; then
3574 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3575 See \`config.log' for more details." >&5
3576 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3577 See \`config.log' for more details." >&2;}
3578 { (exit 1); exit 1; }; }
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3589 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3590 if test "${ac_cv_path_GREP+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 # Extract the first word of "grep ggrep" to use in msg output
3594 if test -z "$GREP"; then
3595 set dummy grep ggrep; ac_prog_name=$2
3596 if test "${ac_cv_path_GREP+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 ac_path_GREP_found=false
3600 # Loop through the user's path and test for each of PROGNAME-LIST
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3605 test -z "$as_dir" && as_dir=.
3606 for ac_prog in grep ggrep; do
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3609 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3610 # Check for GNU ac_path_GREP and select it if it is found.
3611 # Check for GNU $ac_path_GREP
3612 case `"$ac_path_GREP" --version 2>&1` in
3614 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3617 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3620 cat "conftest.in" "conftest.in" >"conftest.tmp"
3621 mv "conftest.tmp" "conftest.in"
3622 cp "conftest.in" "conftest.nl"
3623 echo 'GREP' >> "conftest.nl"
3624 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3625 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3626 ac_count=`expr $ac_count + 1`
3627 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3628 # Best one so far, save it but keep looking for a better one
3629 ac_cv_path_GREP="$ac_path_GREP"
3630 ac_path_GREP_max=$ac_count
3632 # 10*(2^10) chars as input seems more than enough
3633 test $ac_count -gt 10 && break
3635 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3639 $ac_path_GREP_found && break 3
3649 GREP="$ac_cv_path_GREP"
3650 if test -z "$GREP"; then
3651 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3652 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3653 { (exit 1); exit 1; }; }
3657 ac_cv_path_GREP=$GREP
3662 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3663 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3664 GREP="$ac_cv_path_GREP"
3667 { echo "$as_me:$LINENO: checking for egrep" >&5
3668 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3669 if test "${ac_cv_path_EGREP+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673 then ac_cv_path_EGREP="$GREP -E"
3675 # Extract the first word of "egrep" to use in msg output
3676 if test -z "$EGREP"; then
3677 set dummy egrep; ac_prog_name=$2
3678 if test "${ac_cv_path_EGREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 ac_path_EGREP_found=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3687 test -z "$as_dir" && as_dir=.
3688 for ac_prog in egrep; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3692 # Check for GNU ac_path_EGREP and select it if it is found.
3693 # Check for GNU $ac_path_EGREP
3694 case `"$ac_path_EGREP" --version 2>&1` in
3696 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'EGREP' >> "conftest.nl"
3706 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708 ac_count=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_EGREP="$ac_path_EGREP"
3712 ac_path_EGREP_max=$ac_count
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3721 $ac_path_EGREP_found && break 3
3731 EGREP="$ac_cv_path_EGREP"
3732 if test -z "$EGREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cv_path_EGREP=$EGREP
3745 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3746 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3747 EGREP="$ac_cv_path_EGREP"
3750 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3751 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3752 if test "${ac_cv_header_stdc+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 cat >conftest.$ac_ext <<_ACEOF
3758 cat confdefs.h >>conftest.$ac_ext
3759 cat >>conftest.$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } &&
3788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3789 { (case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_try") 2>&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_try") 2>&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_cv_header_stdc=yes
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 ac_cv_header_stdc=no
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 if test $ac_cv_header_stdc = yes; then
3819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3820 cat >conftest.$ac_ext <<_ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830 $EGREP "memchr" >/dev/null 2>&1; then
3833 ac_cv_header_stdc=no
3839 if test $ac_cv_header_stdc = yes; then
3840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851 $EGREP "free" >/dev/null 2>&1; then
3854 ac_cv_header_stdc=no
3860 if test $ac_cv_header_stdc = yes; then
3861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3862 if test "$cross_compiling" = yes; then
3865 cat >conftest.$ac_ext <<_ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3873 #if ((' ' & 0x0FF) == 0x020)
3874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3877 # define ISLOWER(c) \
3878 (('a' <= (c) && (c) <= 'i') \
3879 || ('j' <= (c) && (c) <= 'r') \
3880 || ('s' <= (c) && (c) <= 'z'))
3881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3889 for (i = 0; i < 256; i++)
3890 if (XOR (islower (i), ISLOWER (i))
3891 || toupper (i) != TOUPPER (i))
3896 rm -f conftest$ac_exeext
3897 if { (ac_try="$ac_link"
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903 (eval "$ac_link") 2>&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3907 { (case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_try") 2>&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; }; then
3918 echo "$as_me: program exited with status $ac_status" >&5
3919 echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3923 ac_cv_header_stdc=no
3925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3931 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3932 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3933 if test $ac_cv_header_stdc = yes; then
3935 cat >>confdefs.h <<\_ACEOF
3936 #define STDC_HEADERS 1
3941 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3951 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3952 inttypes.h stdint.h unistd.h
3954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 $ac_includes_default
3968 #include <$ac_header>
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_compile") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3985 { (case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_try") 2>&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 eval "$as_ac_Header=yes"
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 eval "$as_ac_Header=no"
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_res=`eval echo '${'$as_ac_Header'}'`
4015 { echo "$as_me:$LINENO: result: $ac_res" >&5
4016 echo "${ECHO_T}$ac_res" >&6; }
4017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4018 cat >>confdefs.h <<_ACEOF
4019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4029 for ac_header in sys/ioctl.h unistd.h
4031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 ac_res=`eval echo '${'$as_ac_Header'}'`
4039 { echo "$as_me:$LINENO: result: $ac_res" >&5
4040 echo "${ECHO_T}$ac_res" >&6; }
4042 # Is the header compilable?
4043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 $ac_includes_default
4052 #include <$ac_header>
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_compile") 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4069 { (case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_try") 2>&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 ac_header_compiler=yes
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ac_header_compiler=no
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4098 echo "${ECHO_T}$ac_header_compiler" >&6; }
4100 # Is the header present?
4101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <$ac_header>
4111 if { (ac_try="$ac_cpp conftest.$ac_ext"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } >/dev/null; then
4124 if test -s conftest.err; then
4125 ac_cpp_err=$ac_c_preproc_warn_flag
4126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4133 if test -z "$ac_cpp_err"; then
4134 ac_header_preproc=yes
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 ac_header_preproc=no
4142 rm -f conftest.err conftest.$ac_ext
4143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4144 echo "${ECHO_T}$ac_header_preproc" >&6; }
4146 # So? What about this header?
4147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4153 ac_header_preproc=yes
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4169 ## ----------------------------------- ##
4170 ## Report this to gary@music.mcgill.ca ##
4171 ## ----------------------------------- ##
4173 ) | sed "s/^/$as_me: WARNING: /" >&2
4176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 eval "$as_ac_Header=\$ac_header_preproc"
4183 ac_res=`eval echo '${'$as_ac_Header'}'`
4184 { echo "$as_me:$LINENO: result: $ac_res" >&5
4185 echo "${ECHO_T}$ac_res" >&6; }
4188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4189 cat >>confdefs.h <<_ACEOF
4190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4199 { echo "$as_me:$LINENO: checking whether to compile debug version" >&5
4200 echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6; }
4201 # Check whether --enable-debug was given.
4202 if test "${enable_debug+set}" = set; then
4203 enableval=$enable_debug; cppflag=-D__RTAUDIO_DEBUG__
4206 { echo "$as_me:$LINENO: result: yes" >&5
4207 echo "${ECHO_T}yes" >&6; }
4212 { echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6; }
4218 # Checks for functions
4219 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
4220 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
4221 if test "${ac_cv_func_gettimeofday+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
4231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4232 #define gettimeofday innocuous_gettimeofday
4234 /* System header to define __stub macros and hopefully few prototypes,
4235 which can conflict with char gettimeofday (); below.
4236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237 <limits.h> exists even on freestanding compilers. */
4240 # include <limits.h>
4242 # include <assert.h>
4247 /* Override any GCC internal prototype to avoid an error.
4248 Use char because int might match the return type of a GCC
4249 builtin and then its argument prototype would still apply. */
4253 char gettimeofday ();
4254 /* The GNU C library defines this for functions which it implements
4255 to always fail with ENOSYS. Some functions are actually named
4256 something starting with __ and the normal name is an alias. */
4257 #if defined __stub_gettimeofday || defined __stub___gettimeofday
4264 return gettimeofday ();
4269 rm -f conftest.$ac_objext conftest$ac_exeext
4270 if { (ac_try="$ac_link"
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_link") 2>conftest.er1
4278 grep -v '^ *+' conftest.er1 >conftest.err
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4284 { (case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest$ac_exeext'
4294 { (case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_try") 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_func_gettimeofday=yes
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 ac_cv_func_gettimeofday=no
4311 rm -f core conftest.err conftest.$ac_objext \
4312 conftest$ac_exeext conftest.$ac_ext
4314 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
4315 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
4316 if test $ac_cv_func_gettimeofday = yes; then
4317 cppflag="$cppflag -DHAVE_GETTIMEOFDAY"
4321 # For -I and -D flags
4322 CPPFLAGS="$CPPFLAGS $cppflag"
4324 # For debugging and optimization ... overwrite default because it has both -g and -O2
4325 #CXXFLAGS="$CXXFLAGS $cxxflag"
4328 # Check compiler and use -Wall if gnu.
4329 if test $GXX = "yes" ; then
4334 CXXFLAGS="$CXXFLAGS $cxxflag"
4336 # Checks for package options and external software
4339 # Make sure we can run config.sub.
4340 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4341 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4342 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4343 { (exit 1); exit 1; }; }
4345 { echo "$as_me:$LINENO: checking build system type" >&5
4346 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4347 if test "${ac_cv_build+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 ac_build_alias=$build_alias
4351 test "x$ac_build_alias" = x &&
4352 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4353 test "x$ac_build_alias" = x &&
4354 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4355 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4356 { (exit 1); exit 1; }; }
4357 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4358 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4359 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4360 { (exit 1); exit 1; }; }
4363 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4364 echo "${ECHO_T}$ac_cv_build" >&6; }
4365 case $ac_cv_build in
4367 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4368 echo "$as_me: error: invalid value of canonical build" >&2;}
4369 { (exit 1); exit 1; }; };;
4372 ac_save_IFS=$IFS; IFS='-'
4378 # Remember, the first character of IFS is used to create $*,
4379 # except with old shells:
4382 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4385 { echo "$as_me:$LINENO: checking host system type" >&5
4386 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4387 if test "${ac_cv_host+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test "x$host_alias" = x; then
4391 ac_cv_host=$ac_cv_build
4393 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4394 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4395 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4396 { (exit 1); exit 1; }; }
4400 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4401 echo "${ECHO_T}$ac_cv_host" >&6; }
4404 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4405 echo "$as_me: error: invalid value of canonical host" >&2;}
4406 { (exit 1); exit 1; }; };;
4409 ac_save_IFS=$IFS; IFS='-'
4415 # Remember, the first character of IFS is used to create $*,
4416 # except with old shells:
4419 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4422 { echo "$as_me:$LINENO: checking for audio API" >&5
4423 echo $ECHO_N "checking for audio API... $ECHO_C" >&6; }
4426 { echo "$as_me:$LINENO: result: using OSS" >&5
4427 echo "${ECHO_T}using OSS" >&6; }
4428 api="$api -D__LINUX_OSS__"
4429 LIBS="$LIBS -lossaudio"
4431 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4432 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
4433 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 ac_check_lib_save_LIBS=$LIBS
4437 LIBS="-lpthread $LIBS"
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 /* Override any GCC internal prototype to avoid an error.
4446 Use char because int might match the return type of a GCC
4447 builtin and then its argument prototype would still apply. */
4451 char pthread_create ();
4455 return pthread_create ();
4460 rm -f conftest.$ac_objext conftest$ac_exeext
4461 if { (ac_try="$ac_link"
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_link") 2>conftest.er1
4469 grep -v '^ *+' conftest.er1 >conftest.err
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4475 { (case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_try") 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest$ac_exeext'
4485 { (case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_try") 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_lib_pthread_pthread_create=yes
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 ac_cv_lib_pthread_pthread_create=no
4502 rm -f core conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4504 LIBS=$ac_check_lib_save_LIBS
4506 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4507 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
4508 if test $ac_cv_lib_pthread_pthread_create = yes; then
4509 cat >>confdefs.h <<_ACEOF
4510 #define HAVE_LIBPTHREAD 1
4513 LIBS="-lpthread $LIBS"
4516 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4517 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4518 { (exit 1); exit 1; }; }
4525 # Check whether --with-jack was given.
4526 if test "${with_jack+set}" = set; then
4528 api="$api -D__UNIX_JACK__"
4529 { echo "$as_me:$LINENO: result: using JACK" >&5
4530 echo "${ECHO_T}using JACK" >&6; }
4532 { echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
4533 echo $ECHO_N "checking for jack_client_open in -ljack... $ECHO_C" >&6; }
4534 if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 ac_check_lib_save_LIBS=$LIBS
4539 cat >conftest.$ac_ext <<_ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4546 /* Override any GCC internal prototype to avoid an error.
4547 Use char because int might match the return type of a GCC
4548 builtin and then its argument prototype would still apply. */
4552 char jack_client_open ();
4556 return jack_client_open ();
4561 rm -f conftest.$ac_objext conftest$ac_exeext
4562 if { (ac_try="$ac_link"
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_link") 2>conftest.er1
4570 grep -v '^ *+' conftest.er1 >conftest.err
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest$ac_exeext'
4586 { (case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_try") 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 ac_cv_lib_jack_jack_client_open=yes
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 ac_cv_lib_jack_jack_client_open=no
4603 rm -f core conftest.err conftest.$ac_objext \
4604 conftest$ac_exeext conftest.$ac_ext
4605 LIBS=$ac_check_lib_save_LIBS
4607 { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
4608 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_open" >&6; }
4609 if test $ac_cv_lib_jack_jack_client_open = yes; then
4610 cat >>confdefs.h <<_ACEOF
4611 #define HAVE_LIBJACK 1
4617 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4618 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4619 { (exit 1); exit 1; }; }
4623 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4624 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4625 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 ac_check_lib_save_LIBS=$LIBS
4629 LIBS="-lasound $LIBS"
4630 cat >conftest.$ac_ext <<_ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4637 /* Override any GCC internal prototype to avoid an error.
4638 Use char because int might match the return type of a GCC
4639 builtin and then its argument prototype would still apply. */
4643 char snd_pcm_open ();
4647 return snd_pcm_open ();
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (ac_try="$ac_link"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_link") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4667 { (case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_try") 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest$ac_exeext'
4677 { (case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_try") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_lib_asound_snd_pcm_open=yes
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 ac_cv_lib_asound_snd_pcm_open=no
4694 rm -f core conftest.err conftest.$ac_objext \
4695 conftest$ac_exeext conftest.$ac_ext
4696 LIBS=$ac_check_lib_save_LIBS
4698 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4699 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4700 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4701 cat >>confdefs.h <<_ACEOF
4702 #define HAVE_LIBASOUND 1
4705 LIBS="-lasound $LIBS"
4708 { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
4709 echo "$as_me: error: Jack support also requires the asound library!" >&2;}
4710 { (exit 1); exit 1; }; }
4716 # Look for ALSA flag
4718 # Check whether --with-alsa was given.
4719 if test "${with_alsa+set}" = set; then
4721 api="$api -D__LINUX_ALSA__"
4722 { echo "$as_me:$LINENO: result: using ALSA" >&5
4723 echo "${ECHO_T}using ALSA" >&6; }
4725 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4726 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4727 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 ac_check_lib_save_LIBS=$LIBS
4731 LIBS="-lasound $LIBS"
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4739 /* Override any GCC internal prototype to avoid an error.
4740 Use char because int might match the return type of a GCC
4741 builtin and then its argument prototype would still apply. */
4745 char snd_pcm_open ();
4749 return snd_pcm_open ();
4754 rm -f conftest.$ac_objext conftest$ac_exeext
4755 if { (ac_try="$ac_link"
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_link") 2>conftest.er1
4763 grep -v '^ *+' conftest.er1 >conftest.err
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } &&
4768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4769 { (case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774 (eval "$ac_try") 2>&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; } &&
4778 { ac_try='test -s conftest$ac_exeext'
4779 { (case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_try") 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 ac_cv_lib_asound_snd_pcm_open=yes
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4793 ac_cv_lib_asound_snd_pcm_open=no
4796 rm -f core conftest.err conftest.$ac_objext \
4797 conftest$ac_exeext conftest.$ac_ext
4798 LIBS=$ac_check_lib_save_LIBS
4800 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4801 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4802 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4803 cat >>confdefs.h <<_ACEOF
4804 #define HAVE_LIBASOUND 1
4807 LIBS="-lasound $LIBS"
4810 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4811 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4812 { (exit 1); exit 1; }; }
4820 # Check whether --with-oss was given.
4821 if test "${with_oss+set}" = set; then
4823 api="$api -D__LINUX_OSS__"
4824 { echo "$as_me:$LINENO: result: using OSS" >&5
4825 echo "${ECHO_T}using OSS" >&6; }
4829 # If no audio api flags specified, use ALSA
4830 if test "$api" == ""; then
4831 { echo "$as_me:$LINENO: result: using ALSA" >&5
4832 echo "${ECHO_T}using ALSA" >&6; }
4833 api=-D__LINUX_ALSA__
4836 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4837 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4838 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4841 ac_check_lib_save_LIBS=$LIBS
4842 LIBS="-lasound $LIBS"
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4850 /* Override any GCC internal prototype to avoid an error.
4851 Use char because int might match the return type of a GCC
4852 builtin and then its argument prototype would still apply. */
4856 char snd_pcm_open ();
4860 return snd_pcm_open ();
4865 rm -f conftest.$ac_objext conftest$ac_exeext
4866 if { (ac_try="$ac_link"
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_link") 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4880 { (case "(($ac_try" in
4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882 *) ac_try_echo=$ac_try;;
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885 (eval "$ac_try") 2>&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest$ac_exeext'
4890 { (case "(($ac_try" in
4891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_try") 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 ac_cv_lib_asound_snd_pcm_open=yes
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4904 ac_cv_lib_asound_snd_pcm_open=no
4907 rm -f core conftest.err conftest.$ac_objext \
4908 conftest$ac_exeext conftest.$ac_ext
4909 LIBS=$ac_check_lib_save_LIBS
4911 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4912 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4913 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4914 cat >>confdefs.h <<_ACEOF
4915 #define HAVE_LIBASOUND 1
4918 LIBS="-lasound $LIBS"
4921 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4922 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4923 { (exit 1); exit 1; }; }
4929 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4930 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
4931 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 ac_check_lib_save_LIBS=$LIBS
4935 LIBS="-lpthread $LIBS"
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4943 /* Override any GCC internal prototype to avoid an error.
4944 Use char because int might match the return type of a GCC
4945 builtin and then its argument prototype would still apply. */
4949 char pthread_create ();
4953 return pthread_create ();
4958 rm -f conftest.$ac_objext conftest$ac_exeext
4959 if { (ac_try="$ac_link"
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_link") 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } &&
4972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4973 { (case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_try") 2>&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; } &&
4982 { ac_try='test -s conftest$ac_exeext'
4983 { (case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_try") 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_lib_pthread_pthread_create=yes
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 ac_cv_lib_pthread_pthread_create=no
5000 rm -f core conftest.err conftest.$ac_objext \
5001 conftest$ac_exeext conftest.$ac_ext
5002 LIBS=$ac_check_lib_save_LIBS
5004 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
5006 if test $ac_cv_lib_pthread_pthread_create = yes; then
5007 cat >>confdefs.h <<_ACEOF
5008 #define HAVE_LIBPTHREAD 1
5011 LIBS="-lpthread $LIBS"
5014 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
5015 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
5016 { (exit 1); exit 1; }; }
5023 # Check whether --with-jack was given.
5024 if test "${with_jack+set}" = set; then
5026 api="$api -D__UNIX_JACK__"
5027 { echo "$as_me:$LINENO: result: using JACK" >&5
5028 echo "${ECHO_T}using JACK" >&6; }
5030 { echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
5031 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6; }
5032 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 ac_check_lib_save_LIBS=$LIBS
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 /* Override any GCC internal prototype to avoid an error.
5045 Use char because int might match the return type of a GCC
5046 builtin and then its argument prototype would still apply. */
5050 char jack_client_new ();
5054 return jack_client_new ();
5059 rm -f conftest.$ac_objext conftest$ac_exeext
5060 if { (ac_try="$ac_link"
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5066 (eval "$ac_link") 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5074 { (case "(($ac_try" in
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076 *) ac_try_echo=$ac_try;;
5078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079 (eval "$ac_try") 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; } &&
5083 { ac_try='test -s conftest$ac_exeext'
5084 { (case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_try") 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 ac_cv_lib_jack_jack_client_new=yes
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.$ac_ext >&5
5098 ac_cv_lib_jack_jack_client_new=no
5101 rm -f core conftest.err conftest.$ac_objext \
5102 conftest$ac_exeext conftest.$ac_ext
5103 LIBS=$ac_check_lib_save_LIBS
5105 { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
5106 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6; }
5107 if test $ac_cv_lib_jack_jack_client_new = yes; then
5108 cat >>confdefs.h <<_ACEOF
5109 #define HAVE_LIBJACK 1
5115 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
5116 echo "$as_me: error: JACK support requires the jack library!" >&2;}
5117 { (exit 1); exit 1; }; }
5123 # Look for Core flag
5125 # Check whether --with-core was given.
5126 if test "${with_core+set}" = set; then
5128 api="$api -D__MACOSX_CORE__"
5129 { echo "$as_me:$LINENO: result: using CoreAudio" >&5
5130 echo "${ECHO_T}using CoreAudio" >&6; }
5131 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5132 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5133 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
5134 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5138 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5140 # Is the header compilable?
5141 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
5142 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
5143 cat >conftest.$ac_ext <<_ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h. */
5149 $ac_includes_default
5150 #include <CoreAudio/CoreAudio.h>
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5167 { (case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_try") 2>&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182 (eval "$ac_try") 2>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_header_compiler=yes
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_header_compiler=no
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5196 echo "${ECHO_T}$ac_header_compiler" >&6; }
5198 # Is the header present?
5199 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
5200 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
5201 cat >conftest.$ac_ext <<_ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 #include <CoreAudio/CoreAudio.h>
5209 if { (ac_try="$ac_cpp conftest.$ac_ext"
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217 grep -v '^ *+' conftest.er1 >conftest.err
5219 cat conftest.err >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } >/dev/null; then
5222 if test -s conftest.err; then
5223 ac_cpp_err=$ac_c_preproc_warn_flag
5224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5231 if test -z "$ac_cpp_err"; then
5232 ac_header_preproc=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 ac_header_preproc=no
5240 rm -f conftest.err conftest.$ac_ext
5241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5242 echo "${ECHO_T}$ac_header_preproc" >&6; }
5244 # So? What about this header?
5245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5247 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5248 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5249 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
5250 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
5251 ac_header_preproc=yes
5254 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
5255 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
5256 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
5257 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
5258 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
5259 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
5260 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
5261 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5262 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
5263 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
5264 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
5265 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
5267 ## ----------------------------------- ##
5268 ## Report this to gary@music.mcgill.ca ##
5269 ## ----------------------------------- ##
5271 ) | sed "s/^/$as_me: WARNING: /" >&2
5274 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5275 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
5276 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
5281 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5282 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5285 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
5288 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
5289 echo "$as_me: error: CoreAudio header files not found!" >&2;}
5290 { (exit 1); exit 1; }; }
5294 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
5298 # If no audio api flags specified, use CoreAudio
5299 if test "$api" == ""; then
5300 api=-D__MACOSX_CORE__
5302 { echo "$as_me:$LINENO: result: using CoreAudio" >&5
5303 echo "${ECHO_T}using CoreAudio" >&6; }
5304 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5305 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5306 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
5307 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5311 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5313 # Is the header compilable?
5314 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
5315 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5323 #include <CoreAudio/CoreAudio.h>
5325 rm -f conftest.$ac_objext
5326 if { (ac_try="$ac_compile"
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332 (eval "$ac_compile") 2>conftest.er1
5334 grep -v '^ *+' conftest.er1 >conftest.err
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5340 { (case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_try") 2>&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_try") 2>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_header_compiler=yes
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 ac_header_compiler=no
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5369 echo "${ECHO_T}$ac_header_compiler" >&6; }
5371 # Is the header present?
5372 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
5373 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 #include <CoreAudio/CoreAudio.h>
5382 if { (ac_try="$ac_cpp conftest.$ac_ext"
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } >/dev/null; then
5395 if test -s conftest.err; then
5396 ac_cpp_err=$ac_c_preproc_warn_flag
5397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5404 if test -z "$ac_cpp_err"; then
5405 ac_header_preproc=yes
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_header_preproc=no
5413 rm -f conftest.err conftest.$ac_ext
5414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5415 echo "${ECHO_T}$ac_header_preproc" >&6; }
5417 # So? What about this header?
5418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5420 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5421 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
5423 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
5424 ac_header_preproc=yes
5427 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
5428 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
5429 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
5430 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
5431 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
5432 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
5434 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
5436 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
5438 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
5440 ## ----------------------------------- ##
5441 ## Report this to gary@music.mcgill.ca ##
5442 ## ----------------------------------- ##
5444 ) | sed "s/^/$as_me: WARNING: /" >&2
5447 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5448 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
5449 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
5454 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5455 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5458 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
5461 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
5462 echo "$as_me: error: CoreAudio header files not found!" >&2;}
5463 { (exit 1); exit 1; }; }
5467 LIBS="-framework CoreAudio -framework CoreFoundation"
5472 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5473 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
5474 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 ac_check_lib_save_LIBS=$LIBS
5478 LIBS="-lpthread $LIBS"
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 /* Override any GCC internal prototype to avoid an error.
5487 Use char because int might match the return type of a GCC
5488 builtin and then its argument prototype would still apply. */
5492 char pthread_create ();
5496 return pthread_create ();
5501 rm -f conftest.$ac_objext conftest$ac_exeext
5502 if { (ac_try="$ac_link"
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_link") 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5516 { (case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_try") 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest$ac_exeext'
5526 { (case "(($ac_try" in
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_try") 2>&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5535 ac_cv_lib_pthread_pthread_create=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_cv_lib_pthread_pthread_create=no
5543 rm -f core conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545 LIBS=$ac_check_lib_save_LIBS
5547 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5548 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
5549 if test $ac_cv_lib_pthread_pthread_create = yes; then
5550 cat >>confdefs.h <<_ACEOF
5551 #define HAVE_LIBPTHREAD 1
5554 LIBS="-lpthread $LIBS"
5557 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
5558 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
5559 { (exit 1); exit 1; }; }
5566 # Check whether --with-asio was given.
5567 if test "${with_asio+set}" = set; then
5569 api="$api -D__WINDOWS_ASIO__"
5570 { echo "$as_me:$LINENO: result: using ASIO" >&5
5571 echo "${ECHO_T}using ASIO" >&6; }
5572 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
5577 # Look for DirectSound flag
5579 # Check whether --with-ds was given.
5580 if test "${with_ds+set}" = set; then
5582 api="$api -D__WINDOWS_DS__"
5583 { echo "$as_me:$LINENO: result: using DirectSound" >&5
5584 echo "${ECHO_T}using DirectSound" >&6; }
5585 LIBS="-ldsound -lwinmm $LIBS"
5589 # If no audio api flags specified, use DirectSound
5590 if test "$api" == ""; then
5591 api=-D__WINDOWS_DS__
5593 { echo "$as_me:$LINENO: result: using DirectSound" >&5
5594 echo "${ECHO_T}using DirectSound" >&6; }
5595 LIBS="-ldsound -lwinmm $LIBS"
5598 LIBS="-lole32 $LIBS"
5602 # Default case for unknown realtime systems.
5603 { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
5604 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
5605 { (exit 1); exit 1; }; }
5609 CPPFLAGS="$CPPFLAGS $api"
5611 cat >confcache <<\_ACEOF
5612 # This file is a shell script that caches the results of configure
5613 # tests run on this system so they can be shared between configure
5614 # scripts and configure runs, see configure's option --config-cache.
5615 # It is not useful on other systems. If it contains results you don't
5616 # want to keep, you may remove or edit it.
5618 # config.status only pays attention to the cache file if you give it
5619 # the --recheck option to rerun configure.
5621 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5622 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5627 # The following way of writing the cache mishandles newlines in values,
5628 # but we know of no workaround that is simple, portable, and efficient.
5629 # So, we kill variables containing newlines.
5630 # Ultrix sh set writes to stderr and can't be redirected directly,
5631 # and sets the high bit in the cache file unless we assign to the vars.
5633 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5634 eval ac_val=\$$ac_var
5638 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5639 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5642 _ | IFS | as_nl) ;; #(
5643 *) $as_unset $ac_var ;;
5649 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5650 *${as_nl}ac_space=\ *)
5651 # `set' does not quote correctly, so add quotes (double-quote
5652 # substitution turns \\\\ into \\, and sed turns \\ into \).
5655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5658 # `set' quotes correctly as required by POSIX, so do not add quotes.
5659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5668 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5673 if test -w "$cache_file"; then
5674 test "x$cache_file" != "x/dev/null" &&
5675 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5676 echo "$as_me: updating cache $cache_file" >&6;}
5677 cat confcache >$cache_file
5679 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5680 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5685 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5686 # Let make expand exec_prefix.
5687 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5689 # Transform confdefs.h into DEFS.
5690 # Protect against shell expansion while executing Makefile rules.
5691 # Protect against Makefile macro expansion.
5693 # If the first sed substitution is executed (which looks for macros that
5694 # take arguments), then branch to the quote section. Otherwise,
5695 # look for a macro that doesn't take arguments.
5699 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5701 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5705 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5718 DEFS=`sed -n "$ac_script" confdefs.h`
5723 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5724 # 1. Remove the extension, and $U if already installed.
5725 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5726 ac_i=`echo "$ac_i" | sed "$ac_script"`
5727 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5728 # will be set to the directory where LIBOBJS objects are built.
5729 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5730 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5734 LTLIBOBJS=$ac_ltlibobjs
5738 : ${CONFIG_STATUS=./config.status}
5739 ac_clean_files_save=$ac_clean_files
5740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5741 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5742 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5743 cat >$CONFIG_STATUS <<_ACEOF
5745 # Generated by $as_me.
5746 # Run this file to recreate the current configuration.
5747 # Compiler output produced by configure, useful for debugging
5748 # configure, is in config.log if it exists.
5753 SHELL=\${CONFIG_SHELL-$SHELL}
5756 cat >>$CONFIG_STATUS <<\_ACEOF
5757 ## --------------------- ##
5758 ## M4sh Initialization. ##
5759 ## --------------------- ##
5761 # Be Bourne compatible
5762 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5765 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5766 # is contrary to our usage. Disable this feature.
5767 alias -g '${1+"$@"}'='"$@"'
5768 setopt NO_GLOB_SUBST
5770 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
5772 BIN_SH=xpg4; export BIN_SH # for Tru64
5773 DUALCASE=1; export DUALCASE # for MKS sh
5777 # Avoid depending upon Character Ranges.
5778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5781 as_cr_digits='0123456789'
5782 as_cr_alnum=$as_cr_Letters$as_cr_digits
5784 # The user is always right.
5785 if test "${PATH_SEPARATOR+set}" != set; then
5786 echo "#! /bin/sh" >conf$$.sh
5787 echo "exit 0" >>conf$$.sh
5789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5797 # Support unset when possible.
5798 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5806 # We need space, tab and new line, in precisely that order. Quoting is
5807 # there to prevent editors from complaining about space-tab.
5808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5809 # splitting by setting IFS to empty value.)
5814 # Find who we are. Look in the path if we contain no directory separator.
5816 *[\\/]* ) as_myself=$0 ;;
5817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 test -z "$as_dir" && as_dir=.
5822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5828 # We did not find ourselves, most probably we were run as `sh COMMAND'
5829 # in which case we are not to be found in the path.
5830 if test "x$as_myself" = x; then
5833 if test ! -f "$as_myself"; then
5834 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5835 { (exit 1); exit 1; }
5838 # Work around bugs in pre-3.0 UWIN ksh.
5839 for as_var in ENV MAIL MAILPATH
5840 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5848 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5849 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5850 LC_TELEPHONE LC_TIME
5852 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5853 eval $as_var=C; export $as_var
5855 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5859 # Required to use basename.
5860 if expr a : '\(a\)' >/dev/null 2>&1 &&
5861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5868 as_basename=basename
5874 # Name of the executable.
5875 as_me=`$as_basename -- "$0" ||
5876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5877 X"$0" : 'X\(//\)$' \| \
5878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5880 sed '/^.*\/\([^/][^/]*\)\/*$/{
5901 test "x$as_lineno_1" != "x$as_lineno_2" &&
5902 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5905 # uniformly replaced by the line number. The first 'sed' inserts a
5906 # line-number line after each line using $LINENO; the second 'sed'
5907 # does the real work. The second script uses 'N' to pair each
5908 # line-number line with the line containing $LINENO, and appends
5909 # trailing '-' during substitution so that $LINENO is not a special
5911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5912 # scripts with optimization help from Paolo Bonzini. Blame Lee
5913 # E. McMahon (1931-1989) for sed's syntax. :-)
5925 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5929 chmod +x "$as_me.lineno" ||
5930 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5931 { (exit 1); exit 1; }; }
5933 # Don't try to exec as it changes $[0], causing all sort of problems
5934 # (the dirname of $[0] is not the place where we might find the
5935 # original and so on. Autoconf is especially sensitive to this).
5937 # Exit status is that of the last command.
5942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5948 ECHO_C= ECHO_N= ECHO_T=
5951 case `echo 'x\c'` in
5952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5959 if expr a : '\(a\)' >/dev/null 2>&1 &&
5960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5966 rm -f conf$$ conf$$.exe conf$$.file
5967 if test -d conf$$.dir; then
5968 rm -f conf$$.dir/conf$$.file
5974 if ln -s conf$$.file conf$$ 2>/dev/null; then
5976 # ... but there are two gotchas:
5977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5979 # In both cases, we have to default to `cp -p'.
5980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5982 elif ln conf$$.file conf$$ 2>/dev/null; then
5987 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5988 rmdir conf$$.dir 2>/dev/null
5990 if mkdir -p . 2>/dev/null; then
5993 test -d ./-p && rmdir ./-p
5997 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
5998 # systems may use methods other than mode bits to determine executability.
5999 cat >conf$$.file <<_ASEOF
6003 chmod +x conf$$.file
6004 if test -x conf$$.file >/dev/null 2>&1; then
6005 as_executable_p="test -x"
6011 # Sed expression to map a string onto a valid CPP name.
6012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6014 # Sed expression to map a string onto a valid variable name.
6015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6020 # Save the log message, to keep $[0] and so on meaningful, and to
6021 # report actual input values of CONFIG_FILES etc. instead of their
6022 # values after options handling.
6024 This file was extended by RtAudio $as_me 4.0, which was
6025 generated by GNU Autoconf 2.60. Invocation command line was
6027 CONFIG_FILES = $CONFIG_FILES
6028 CONFIG_HEADERS = $CONFIG_HEADERS
6029 CONFIG_LINKS = $CONFIG_LINKS
6030 CONFIG_COMMANDS = $CONFIG_COMMANDS
6033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6038 cat >>$CONFIG_STATUS <<_ACEOF
6039 # Files that config.status was made for.
6040 config_files="$ac_config_files"
6044 cat >>$CONFIG_STATUS <<\_ACEOF
6046 \`$as_me' instantiates files from templates according to the
6047 current configuration.
6049 Usage: $0 [OPTIONS] [FILE]...
6051 -h, --help print this help, then exit
6052 -V, --version print version number, then exit
6053 -q, --quiet do not print progress messages
6054 -d, --debug don't remove temporary files
6055 --recheck update $as_me by reconfiguring in the same conditions
6056 --file=FILE[:TEMPLATE]
6057 instantiate the configuration file FILE
6059 Configuration files:
6062 Report bugs to <bug-autoconf@gnu.org>."
6065 cat >>$CONFIG_STATUS <<_ACEOF
6067 RtAudio config.status 4.0
6068 configured by $0, generated by GNU Autoconf 2.60,
6069 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6071 Copyright (C) 2006 Free Software Foundation, Inc.
6072 This config.status script is free software; the Free Software Foundation
6073 gives unlimited permission to copy, distribute and modify it."
6079 cat >>$CONFIG_STATUS <<\_ACEOF
6080 # If no file are specified by the user, then we need to provide default
6081 # value. By we need to know if files were specified by the user.
6087 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6088 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6099 # Handling of the options.
6100 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6102 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6103 echo "$ac_cs_version"; exit ;;
6104 --debug | --debu | --deb | --de | --d | -d )
6106 --file | --fil | --fi | --f )
6108 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6109 ac_need_defaults=false;;
6110 --he | --h | --help | --hel | -h )
6111 echo "$ac_cs_usage"; exit ;;
6112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6117 -*) { echo "$as_me: error: unrecognized option: $1
6118 Try \`$0 --help' for more information." >&2
6119 { (exit 1); exit 1; }; } ;;
6121 *) ac_config_targets="$ac_config_targets $1"
6122 ac_need_defaults=false ;;
6128 ac_configure_extra_args=
6130 if $ac_cs_silent; then
6132 ac_configure_extra_args="$ac_configure_extra_args --silent"
6136 cat >>$CONFIG_STATUS <<_ACEOF
6137 if \$ac_cs_recheck; then
6138 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6141 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6145 cat >>$CONFIG_STATUS <<\_ACEOF
6149 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6150 ## Running $as_me. ##
6156 cat >>$CONFIG_STATUS <<_ACEOF
6159 cat >>$CONFIG_STATUS <<\_ACEOF
6161 # Handling of arguments.
6162 for ac_config_target in $ac_config_targets
6164 case $ac_config_target in
6165 "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
6166 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6167 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
6169 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6170 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6171 { (exit 1); exit 1; }; };;
6176 # If the user did not use the arguments to specify the items to instantiate,
6177 # then the envvar interface is used. Set only those that are not.
6178 # We use the long form for the default assignment because of an extremely
6179 # bizarre bug on SunOS 4.1.3.
6180 if $ac_need_defaults; then
6181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6184 # Have a temporary directory for convenience. Make it in the build tree
6185 # simply because there is no reason against having it here, and in addition,
6186 # creating and moving files from /tmp can sometimes cause problems.
6187 # Hook for its removal unless debugging.
6188 # Note that there is a small window in which the directory will not be cleaned:
6189 # after its creation but before its name has been assigned to `$tmp'.
6193 trap 'exit_status=$?
6194 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6196 trap '{ (exit 1); exit 1; }' 1 2 13 15
6198 # Create a (secure) tmp directory for tmp files.
6201 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6202 test -n "$tmp" && test -d "$tmp"
6205 tmp=./conf$$-$RANDOM
6206 (umask 077 && mkdir "$tmp")
6209 echo "$me: cannot create a temporary directory in ." >&2
6210 { (exit 1); exit 1; }
6214 # Set up the sed scripts for CONFIG_FILES section.
6217 # No need to generate the scripts if there are no CONFIG_FILES.
6218 # This happens for instance when ./config.status config.h
6219 if test -n "$CONFIG_FILES"; then
6226 for ac_last_try in false false false false false :; do
6227 cat >conf$$subs.sed <<_ACEOF
6228 SHELL!$SHELL$ac_delim
6229 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6230 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6231 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6232 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6233 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6234 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6235 exec_prefix!$exec_prefix$ac_delim
6236 prefix!$prefix$ac_delim
6237 program_transform_name!$program_transform_name$ac_delim
6238 bindir!$bindir$ac_delim
6239 sbindir!$sbindir$ac_delim
6240 libexecdir!$libexecdir$ac_delim
6241 datarootdir!$datarootdir$ac_delim
6242 datadir!$datadir$ac_delim
6243 sysconfdir!$sysconfdir$ac_delim
6244 sharedstatedir!$sharedstatedir$ac_delim
6245 localstatedir!$localstatedir$ac_delim
6246 includedir!$includedir$ac_delim
6247 oldincludedir!$oldincludedir$ac_delim
6248 docdir!$docdir$ac_delim
6249 infodir!$infodir$ac_delim
6250 htmldir!$htmldir$ac_delim
6251 dvidir!$dvidir$ac_delim
6252 pdfdir!$pdfdir$ac_delim
6253 psdir!$psdir$ac_delim
6254 libdir!$libdir$ac_delim
6255 localedir!$localedir$ac_delim
6256 mandir!$mandir$ac_delim
6258 ECHO_C!$ECHO_C$ac_delim
6259 ECHO_N!$ECHO_N$ac_delim
6260 ECHO_T!$ECHO_T$ac_delim
6262 build_alias!$build_alias$ac_delim
6263 host_alias!$host_alias$ac_delim
6264 target_alias!$target_alias$ac_delim
6267 CXXFLAGS!$CXXFLAGS$ac_delim
6268 LDFLAGS!$LDFLAGS$ac_delim
6269 CPPFLAGS!$CPPFLAGS$ac_delim
6270 ac_ct_CXX!$ac_ct_CXX$ac_delim
6271 EXEEXT!$EXEEXT$ac_delim
6272 OBJEXT!$OBJEXT$ac_delim
6273 RANLIB!$RANLIB$ac_delim
6276 CFLAGS!$CFLAGS$ac_delim
6277 ac_ct_CC!$ac_ct_CC$ac_delim
6280 EGREP!$EGREP$ac_delim
6281 cppflag!$cppflag$ac_delim
6282 cxxflag!$cxxflag$ac_delim
6283 object_path!$object_path$ac_delim
6285 build!$build$ac_delim
6286 build_cpu!$build_cpu$ac_delim
6287 build_vendor!$build_vendor$ac_delim
6288 build_os!$build_os$ac_delim
6290 host_cpu!$host_cpu$ac_delim
6291 host_vendor!$host_vendor$ac_delim
6292 host_os!$host_os$ac_delim
6293 objects!$objects$ac_delim
6294 LIBOBJS!$LIBOBJS$ac_delim
6295 LTLIBOBJS!$LTLIBOBJS$ac_delim
6298 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
6300 elif $ac_last_try; then
6301 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6302 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6303 { (exit 1); exit 1; }; }
6305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6309 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6310 if test -n "$ac_eof"; then
6311 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6312 ac_eof=`expr $ac_eof + 1`
6315 cat >>$CONFIG_STATUS <<_ACEOF
6316 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6320 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6321 s/^/s,@/; s/!/@,|#_!!_#|/
6324 s/'"$ac_delim"'$/,g/; t
6326 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6327 ' >>$CONFIG_STATUS <conf$$subs.sed
6328 rm -f conf$$subs.sed
6329 cat >>$CONFIG_STATUS <<_ACEOF
6336 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6337 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6338 # trailing colons and then remove the whole line if VPATH becomes empty
6339 # (actually we leave an empty line to preserve line numbers).
6340 if test "x$srcdir" = x.; then
6341 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6345 s/^\([^=]*=[ ]*\):*/\1/
6351 cat >>$CONFIG_STATUS <<\_ACEOF
6352 fi # test -n "$CONFIG_FILES"
6355 for ac_tag in :F $CONFIG_FILES
6358 :[FHLC]) ac_mode=$ac_tag; continue;;
6360 case $ac_mode$ac_tag in
6362 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6363 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6364 { (exit 1); exit 1; }; };;
6365 :[FH]-) ac_tag=-:-;;
6366 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6383 -) ac_f="$tmp/stdin";;
6384 *) # Look for the file first in the build tree, then in the source tree
6385 # (if the path is not absolute). The absolute path cannot be DOS-style,
6386 # because $ac_f cannot contain `:'.
6390 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6392 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6393 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6394 { (exit 1); exit 1; }; };;
6396 ac_file_inputs="$ac_file_inputs $ac_f"
6399 # Let's still pretend it is `configure' which instantiates (i.e., don't
6400 # use $as_me), people would be surprised to read:
6401 # /* config.h. Generated by config.status. */
6402 configure_input="Generated from "`IFS=:
6403 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6404 if test x"$ac_file" != x-; then
6405 configure_input="$ac_file. $configure_input"
6406 { echo "$as_me:$LINENO: creating $ac_file" >&5
6407 echo "$as_me: creating $ac_file" >&6;}
6411 *:-:* | *:-) cat >"$tmp/stdin";;
6416 ac_dir=`$as_dirname -- "$ac_file" ||
6417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6418 X"$ac_file" : 'X\(//\)[^/]' \| \
6419 X"$ac_file" : 'X\(//\)$' \| \
6420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6441 -*) as_dir=./$as_dir;;
6443 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6447 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6448 *) as_qdir=$as_dir;;
6450 as_dirs="'$as_qdir' $as_dirs"
6451 as_dir=`$as_dirname -- "$as_dir" ||
6452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6453 X"$as_dir" : 'X\(//\)[^/]' \| \
6454 X"$as_dir" : 'X\(//\)$' \| \
6455 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6474 test -d "$as_dir" && break
6476 test -z "$as_dirs" || eval "mkdir $as_dirs"
6477 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6478 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6479 { (exit 1); exit 1; }; }; }
6483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6486 # A ".." for each directory in $ac_dir_suffix.
6487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6488 case $ac_top_builddir_sub in
6489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6493 ac_abs_top_builddir=$ac_pwd
6494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6495 # for backward compatibility:
6496 ac_top_builddir=$ac_top_build_prefix
6499 .) # We are building in place.
6501 ac_top_srcdir=$ac_top_builddir_sub
6502 ac_abs_top_srcdir=$ac_pwd ;;
6503 [\\/]* | ?:[\\/]* ) # Absolute name.
6504 ac_srcdir=$srcdir$ac_dir_suffix;
6505 ac_top_srcdir=$srcdir
6506 ac_abs_top_srcdir=$srcdir ;;
6508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6509 ac_top_srcdir=$ac_top_build_prefix$srcdir
6510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6523 cat >>$CONFIG_STATUS <<\_ACEOF
6524 # If the template does not know about datarootdir, expand it.
6525 # FIXME: This hack should be removed a few years after 2.60.
6526 ac_datarootdir_hack=; ac_datarootdir_seen=
6528 case `sed -n '/datarootdir/ {
6537 ' $ac_file_inputs` in
6538 *datarootdir*) ac_datarootdir_seen=yes;;
6539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6540 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6541 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6543 cat >>$CONFIG_STATUS <<_ACEOF
6544 ac_datarootdir_hack='
6545 s&@datadir@&$datadir&g
6546 s&@docdir@&$docdir&g
6547 s&@infodir@&$infodir&g
6548 s&@localedir@&$localedir&g
6549 s&@mandir@&$mandir&g
6550 s&\\\${datarootdir}&$datarootdir&g' ;;
6554 # Neutralize VPATH when `$srcdir' = `.'.
6555 # Shell code in configure.ac might set extrasub.
6556 # FIXME: do we really want to maintain this feature?
6557 cat >>$CONFIG_STATUS <<_ACEOF
6561 cat >>$CONFIG_STATUS <<\_ACEOF
6563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6564 s&@configure_input@&$configure_input&;t t
6565 s&@top_builddir@&$ac_top_builddir_sub&;t t
6566 s&@srcdir@&$ac_srcdir&;t t
6567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6568 s&@top_srcdir@&$ac_top_srcdir&;t t
6569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6570 s&@builddir@&$ac_builddir&;t t
6571 s&@abs_builddir@&$ac_abs_builddir&;t t
6572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6573 $ac_datarootdir_hack
6574 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6577 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6579 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6580 which seems to be undefined. Please make sure it is defined." >&5
6581 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6582 which seems to be undefined. Please make sure it is defined." >&2;}
6586 -) cat "$tmp/out"; rm -f "$tmp/out";;
6587 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6598 { (exit 0); exit 0; }
6600 chmod +x $CONFIG_STATUS
6601 ac_clean_files=$ac_clean_files_save
6604 # configure is writing to config.log, and then calls config.status.
6605 # config.status does its own redirection, appending to config.log.
6606 # Unfortunately, on DOS this fails, as config.log is still kept open
6607 # by configure, so config.status won't be able to write to it; its
6608 # output is simply discarded. So we exec the FD to /dev/null,
6609 # effectively closing config.log, so it can be properly (re)opened and
6610 # appended to by config.status. When coming back to configure, we
6611 # need to make the FD available again.
6612 if test "$no_create" != yes; then
6614 ac_config_status_args=
6615 test "$silent" = yes &&
6616 ac_config_status_args="$ac_config_status_args --quiet"
6618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6621 # would make configure fail if this is the last instruction.
6622 $ac_cs_success || { (exit 1); exit 1; }
6626 chmod oug+x rtaudio-config