2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 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 more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='RtAudio'
576 PACKAGE_TARNAME='rtaudio'
577 PACKAGE_VERSION='4.0'
578 PACKAGE_STRING='RtAudio 4.0'
579 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
581 ac_unique_file="RtAudio.cpp"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
687 ac_precious_vars='build_alias
701 # Initialize some variables set by options.
703 ac_init_version=false
704 # The variables have the same names as the options, with
705 # dashes changed to underlines.
713 program_transform_name=s,x,x,
721 # Installation directory options.
722 # These are left unexpanded so users can "make install exec_prefix=/foo"
723 # and all the variables that are supposed to be based on exec_prefix
724 # by default will actually change.
725 # Use braces instead of parens because sh, perl, etc. also accept them.
726 # (The list follows the same order as the GNU Coding Standards.)
727 bindir='${exec_prefix}/bin'
728 sbindir='${exec_prefix}/sbin'
729 libexecdir='${exec_prefix}/libexec'
730 datarootdir='${prefix}/share'
731 datadir='${datarootdir}'
732 sysconfdir='${prefix}/etc'
733 sharedstatedir='${prefix}/com'
734 localstatedir='${prefix}/var'
735 includedir='${prefix}/include'
736 oldincludedir='/usr/include'
737 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
738 infodir='${datarootdir}/info'
743 libdir='${exec_prefix}/lib'
744 localedir='${datarootdir}/locale'
745 mandir='${datarootdir}/man'
751 # If the previous option needs an argument, assign it.
752 if test -n "$ac_prev"; then
753 eval $ac_prev=\$ac_option
759 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 # Accept the important Cygnus configure options, so we can diagnose typos.
765 case $ac_dashdash$ac_option in
769 -bindir | --bindir | --bindi | --bind | --bin | --bi)
771 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
774 -build | --build | --buil | --bui | --bu)
775 ac_prev=build_alias ;;
776 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777 build_alias=$ac_optarg ;;
779 -cache-file | --cache-file | --cache-fil | --cache-fi \
780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781 ac_prev=cache_file ;;
782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784 cache_file=$ac_optarg ;;
787 cache_file=config.cache ;;
789 -datadir | --datadir | --datadi | --datad)
791 -datadir=* | --datadir=* | --datadi=* | --datad=*)
792 datadir=$ac_optarg ;;
794 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795 | --dataroo | --dataro | --datar)
796 ac_prev=datarootdir ;;
797 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799 datarootdir=$ac_optarg ;;
801 -disable-* | --disable-*)
802 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803 # Reject names that are not valid shell variable names.
804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
806 { (exit 1); exit 1; }; }
807 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
808 eval enable_$ac_feature=no ;;
810 -docdir | --docdir | --docdi | --doc | --do)
812 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
815 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
817 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
820 -enable-* | --enable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=\$ac_optarg ;;
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;;
838 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas.
842 -help | --help | --hel | --he | -h)
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;;
849 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;;
854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
858 htmldir=$ac_optarg ;;
860 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;;
867 -infodir | --infodir | --infodi | --infod | --info | --inf)
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;;
872 -libdir | --libdir | --libdi | --libd)
874 -libdir=* | --libdir=* | --libdi=* | --libd=*)
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;;
884 -localedir | --localedir | --localedi | --localed | --locale)
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;;
889 -localstatedir | --localstatedir | --localstatedi | --localstated \
890 | --localstate | --localstat | --localsta | --localst | --locals)
891 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894 localstatedir=$ac_optarg ;;
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902 # Obsolete; use --without-fp.
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n)
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;;
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;;
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;;
941 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;;
958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
963 -psdir | --psdir | --psdi | --psd | --ps)
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
976 sbindir=$ac_optarg ;;
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \
982 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
987 sharedstatedir=$ac_optarg ;;
989 -site | --site | --sit)
991 -site=* | --site=* | --sit=*)
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;;
1006 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;;
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1014 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;;
1018 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid package name: $ac_package" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1024 eval with_$ac_package=\$ac_optarg ;;
1026 -without-* | --without-*)
1027 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid package name: $ac_package" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1033 eval with_$ac_package=no ;;
1036 # Obsolete; use --with-x.
1039 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1040 | --x-incl | --x-inc | --x-in | --x-i)
1041 ac_prev=x_includes ;;
1042 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1043 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1044 x_includes=$ac_optarg ;;
1046 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1047 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1048 ac_prev=x_libraries ;;
1049 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1050 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1051 x_libraries=$ac_optarg ;;
1053 -*) { echo "$as_me: error: unrecognized option: $ac_option
1054 Try \`$0 --help' for more information." >&2
1055 { (exit 1); exit 1; }; }
1059 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1063 { (exit 1); exit 1; }; }
1064 eval $ac_envvar=\$ac_optarg
1065 export $ac_envvar ;;
1068 # FIXME: should be removed in autoconf 3.0.
1069 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1070 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1072 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1078 if test -n "$ac_prev"; then
1079 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1080 { echo "$as_me: error: missing argument to $ac_option" >&2
1081 { (exit 1); exit 1; }; }
1084 # Be sure to have absolute directory names.
1085 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1086 datadir sysconfdir sharedstatedir localstatedir includedir \
1087 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1088 libdir localedir mandir
1090 eval ac_val=\$$ac_var
1092 [\\/$]* | ?:[\\/]* ) continue;;
1093 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1095 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1096 { (exit 1); exit 1; }; }
1099 # There might be people who depend on the old broken behavior: `$host'
1100 # used to hold the argument of --host etc.
1101 # FIXME: To remove some day.
1104 target=$target_alias
1106 # FIXME: To remove some day.
1107 if test "x$host_alias" != x; then
1108 if test "x$build_alias" = x; then
1109 cross_compiling=maybe
1110 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1111 If a cross compiler is detected then cross compile mode will be used." >&2
1112 elif test "x$build_alias" != "x$host_alias"; then
1118 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1120 test "$silent" = yes && exec 6>/dev/null
1123 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1124 ac_ls_di=`ls -di .` &&
1125 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1126 { echo "$as_me: error: Working directory cannot be determined" >&2
1127 { (exit 1); exit 1; }; }
1128 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129 { echo "$as_me: error: pwd does not report name of working directory" >&2
1130 { (exit 1); exit 1; }; }
1133 # Find the source files, if location was not specified.
1134 if test -z "$srcdir"; then
1135 ac_srcdir_defaulted=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir=`$as_dirname -- "$0" ||
1138 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$0" : 'X\(//\)[^/]' \| \
1140 X"$0" : 'X\(//\)$' \| \
1141 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1165 ac_srcdir_defaulted=no
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1169 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1170 { (exit 1); exit 1; }; }
1172 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1174 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1175 { (exit 1); exit 1; }; }
1177 # When building in place, set srcdir=.
1178 if test "$ac_abs_confdir" = "$ac_pwd"; then
1181 # Remove unnecessary trailing slashes from srcdir.
1182 # Double slashes in file names in object file debugging info
1183 # mess up M-x gdb in Emacs.
1185 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187 for ac_var in $ac_precious_vars; do
1188 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_env_${ac_var}_value=\$${ac_var}
1190 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1191 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1195 # Report the --help message.
1197 if test "$ac_init_help" = "long"; then
1198 # Omit some internal or obsolete options to make the list less imposing.
1199 # This message is too long to be a string in the A/UX 3.1 sh.
1201 \`configure' configures RtAudio 4.0 to adapt to many kinds of systems.
1203 Usage: $0 [OPTION]... [VAR=VALUE]...
1205 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1206 VAR=VALUE. See below for descriptions of some of the useful variables.
1208 Defaults for the options are specified in brackets.
1211 -h, --help display this help and exit
1212 --help=short display options specific to this package
1213 --help=recursive display the short help of all the included packages
1214 -V, --version display version information and exit
1215 -q, --quiet, --silent do not print \`checking...' messages
1216 --cache-file=FILE cache test results in FILE [disabled]
1217 -C, --config-cache alias for \`--cache-file=config.cache'
1218 -n, --no-create do not create output files
1219 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1221 Installation directories:
1222 --prefix=PREFIX install architecture-independent files in PREFIX
1223 [$ac_default_prefix]
1224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1227 By default, \`make install' will install all the files in
1228 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1229 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1230 for instance \`--prefix=\$HOME'.
1232 For better control, use the options below.
1234 Fine tuning of the installation directories:
1235 --bindir=DIR user executables [EPREFIX/bin]
1236 --sbindir=DIR system admin executables [EPREFIX/sbin]
1237 --libexecdir=DIR program executables [EPREFIX/libexec]
1238 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1239 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1240 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1241 --libdir=DIR object code libraries [EPREFIX/lib]
1242 --includedir=DIR C header files [PREFIX/include]
1243 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1244 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1245 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1246 --infodir=DIR info documentation [DATAROOTDIR/info]
1247 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1248 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/rtaudio]
1250 --htmldir=DIR html documentation [DOCDIR]
1251 --dvidir=DIR dvi documentation [DOCDIR]
1252 --pdfdir=DIR pdf documentation [DOCDIR]
1253 --psdir=DIR ps documentation [DOCDIR]
1259 --build=BUILD configure for building on BUILD [guessed]
1260 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1264 if test -n "$ac_init_help"; then
1265 case $ac_init_help in
1266 short | recursive ) echo "Configuration of RtAudio 4.0:";;
1271 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1272 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1273 --enable-debug = enable various debug output
1276 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1277 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1278 --with-jack = choose JACK server support (mac and linux only)
1279 --with-alsa = choose native ALSA API support (linux only)
1280 --with-oss = choose OSS API support (linux only)
1281 --with-jack = choose JACK server support (unix only)
1282 --with-core = choose CoreAudio API support (mac only)
1283 --with-asio = choose ASIO API support (windoze only)
1284 --with-ds = choose DirectSound API support (windoze only)
1286 Some influential environment variables:
1287 CXX C++ compiler command
1288 CXXFLAGS C++ compiler flags
1289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 nonstandard directory <lib dir>
1291 LIBS libraries to pass to the linker, e.g. -l<library>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
1294 CC C compiler command
1295 CFLAGS C compiler flags
1298 Use these variables to override the choices made by `configure' or to help
1299 it to find libraries and programs with nonstandard names/locations.
1301 Report bugs to <gary@music.mcgill.ca>.
1306 if test "$ac_init_help" = "recursive"; then
1307 # If there are subdirs, report their specific --help.
1308 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1309 test -d "$ac_dir" || continue
1313 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1315 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1316 # A ".." for each directory in $ac_dir_suffix.
1317 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1318 case $ac_top_builddir_sub in
1319 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1320 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1323 ac_abs_top_builddir=$ac_pwd
1324 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1325 # for backward compatibility:
1326 ac_top_builddir=$ac_top_build_prefix
1329 .) # We are building in place.
1331 ac_top_srcdir=$ac_top_builddir_sub
1332 ac_abs_top_srcdir=$ac_pwd ;;
1333 [\\/]* | ?:[\\/]* ) # Absolute name.
1334 ac_srcdir=$srcdir$ac_dir_suffix;
1335 ac_top_srcdir=$srcdir
1336 ac_abs_top_srcdir=$srcdir ;;
1338 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1339 ac_top_srcdir=$ac_top_build_prefix$srcdir
1340 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1342 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1344 cd "$ac_dir" || { ac_status=$?; continue; }
1345 # Check for guested configure.
1346 if test -f "$ac_srcdir/configure.gnu"; then
1348 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1349 elif test -f "$ac_srcdir/configure"; then
1351 $SHELL "$ac_srcdir/configure" --help=recursive
1353 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1355 cd "$ac_pwd" || { ac_status=$?; break; }
1359 test -n "$ac_init_help" && exit $ac_status
1360 if $ac_init_version; then
1362 RtAudio configure 4.0
1363 generated by GNU Autoconf 2.61
1365 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1366 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1367 This configure script is free software; the Free Software Foundation
1368 gives unlimited permission to copy, distribute and modify it.
1372 cat >config.log <<_ACEOF
1373 This file contains any messages produced by compilers while
1374 running configure, to aid debugging if configure makes a mistake.
1376 It was created by RtAudio $as_me 4.0, which was
1377 generated by GNU Autoconf 2.61. Invocation command line was
1389 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1390 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1391 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1392 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1393 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1395 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1396 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1398 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1399 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1400 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1401 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1402 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1403 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1404 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 test -z "$as_dir" && as_dir=.
1413 echo "PATH: $as_dir"
1429 # Keep a trace of the command line.
1430 # Strip out --no-create and --no-recursion so they do not pile up.
1431 # Strip out --silent because we don't want to record it for future runs.
1432 # Also quote any args containing shell meta-characters.
1433 # Make two passes to allow for proper duplicate-argument suppression.
1437 ac_must_keep_next=false
1443 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1444 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1445 | -silent | --silent | --silen | --sile | --sil)
1448 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1451 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1453 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1454 if test $ac_must_keep_next = true; then
1455 ac_must_keep_next=false # Got value, back to normal.
1458 *=* | --config-cache | -C | -disable-* | --disable-* \
1459 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1460 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1461 | -with-* | --with-* | -without-* | --without-* | --x)
1462 case "$ac_configure_args0 " in
1463 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1466 -* ) ac_must_keep_next=true ;;
1469 ac_configure_args="$ac_configure_args '$ac_arg'"
1474 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1475 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1477 # When interrupted or exit'd, cleanup temporary files, and complete
1478 # config.log. We remove comments because anyway the quotes in there
1479 # would cause problems or look ugly.
1480 # WARNING: Use '\'' to represent an apostrophe within the trap.
1481 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1482 trap 'exit_status=$?
1483 # Save into config.log some information that might help in debugging.
1488 ## ---------------- ##
1489 ## Cache variables. ##
1490 ## ---------------- ##
1493 # The following way of writing the cache mishandles newlines in values,
1495 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1496 eval ac_val=\$$ac_var
1500 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1501 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1504 _ | IFS | as_nl) ;; #(
1505 *) $as_unset $ac_var ;;
1510 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1511 *${as_nl}ac_space=\ *)
1513 "s/'\''/'\''\\\\'\'''\''/g;
1514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1517 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1525 ## ----------------- ##
1526 ## Output variables. ##
1527 ## ----------------- ##
1530 for ac_var in $ac_subst_vars
1532 eval ac_val=\$$ac_var
1534 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1536 echo "$ac_var='\''$ac_val'\''"
1540 if test -n "$ac_subst_files"; then
1542 ## ------------------- ##
1543 ## File substitutions. ##
1544 ## ------------------- ##
1547 for ac_var in $ac_subst_files
1549 eval ac_val=\$$ac_var
1551 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1553 echo "$ac_var='\''$ac_val'\''"
1558 if test -s confdefs.h; then
1568 test "$ac_signal" != 0 &&
1569 echo "$as_me: caught signal $ac_signal"
1570 echo "$as_me: exit $exit_status"
1572 rm -f core *.core core.conftest.* &&
1573 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1576 for ac_signal in 1 2 13 15; do
1577 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1581 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1582 rm -f -r conftest* confdefs.h
1584 # Predefined preprocessor variables.
1586 cat >>confdefs.h <<_ACEOF
1587 #define PACKAGE_NAME "$PACKAGE_NAME"
1591 cat >>confdefs.h <<_ACEOF
1592 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_STRING "$PACKAGE_STRING"
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1611 # Let the site file select an alternate cache file if it wants to.
1612 # Prefer explicitly selected file to automatically selected ones.
1613 if test -n "$CONFIG_SITE"; then
1614 set x "$CONFIG_SITE"
1615 elif test "x$prefix" != xNONE; then
1616 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1618 set x "$ac_default_prefix/share/config.site" \
1619 "$ac_default_prefix/etc/config.site"
1624 if test -r "$ac_site_file"; then
1625 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1626 echo "$as_me: loading site script $ac_site_file" >&6;}
1627 sed 's/^/| /' "$ac_site_file" >&5
1632 if test -r "$cache_file"; then
1633 # Some versions of bash will fail to source /dev/null (special
1634 # files actually), so we avoid doing that.
1635 if test -f "$cache_file"; then
1636 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1637 echo "$as_me: loading cache $cache_file" >&6;}
1639 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1640 *) . "./$cache_file";;
1644 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1645 echo "$as_me: creating cache $cache_file" >&6;}
1649 # Check that the precious variables saved in the cache have kept the same
1651 ac_cache_corrupted=false
1652 for ac_var in $ac_precious_vars; do
1653 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1654 eval ac_new_set=\$ac_env_${ac_var}_set
1655 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1656 eval ac_new_val=\$ac_env_${ac_var}_value
1657 case $ac_old_set,$ac_new_set in
1659 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1660 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1661 ac_cache_corrupted=: ;;
1663 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1664 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1665 ac_cache_corrupted=: ;;
1668 if test "x$ac_old_val" != "x$ac_new_val"; then
1669 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1670 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1671 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1672 echo "$as_me: former value: $ac_old_val" >&2;}
1673 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1674 echo "$as_me: current value: $ac_new_val" >&2;}
1675 ac_cache_corrupted=:
1678 # Pass precious variables to config.status.
1679 if test "$ac_new_set" = set; then
1681 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1682 *) ac_arg=$ac_var=$ac_new_val ;;
1684 case " $ac_configure_args " in
1685 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1686 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1690 if $ac_cache_corrupted; then
1691 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1692 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1693 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1694 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1695 { (exit 1); exit 1; }; }
1723 ac_cpp='$CPP $CPPFLAGS'
1724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1730 for ac_dir in config "$srcdir"/config; do
1731 if test -f "$ac_dir/install-sh"; then
1733 ac_install_sh="$ac_aux_dir/install-sh -c"
1735 elif test -f "$ac_dir/install.sh"; then
1737 ac_install_sh="$ac_aux_dir/install.sh -c"
1739 elif test -f "$ac_dir/shtool"; then
1741 ac_install_sh="$ac_aux_dir/shtool install -c"
1745 if test -z "$ac_aux_dir"; then
1746 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1747 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1748 { (exit 1); exit 1; }; }
1751 # These three variables are undocumented and unsupported,
1752 # and are intended to be withdrawn in a future Autoconf release.
1753 # They can cause serious problems if a builder's source tree is in a directory
1754 # whose full name contains unusual characters.
1755 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1756 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1757 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1761 ac_config_files="$ac_config_files rtaudio-config Makefile tests/Makefile"
1764 # Fill GXX with something before test.
1768 # Checks for programs.
1770 ac_cpp='$CXXCPP $CPPFLAGS'
1771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1774 if test -z "$CXX"; then
1775 if test -n "$CCC"; then
1778 if test -n "$ac_tool_prefix"; then
1779 for ac_prog in g++ CC c++ cxx
1781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1785 if test "${ac_cv_prog_CXX+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 if test -n "$CXX"; then
1789 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1798 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 if test -n "$CXX"; then
1810 { echo "$as_me:$LINENO: result: $CXX" >&5
1811 echo "${ECHO_T}$CXX" >&6; }
1813 { echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6; }
1818 test -n "$CXX" && break
1821 if test -z "$CXX"; then
1823 for ac_prog in g++ CC c++ cxx
1825 # Extract the first word of "$ac_prog", so it can be a program name with args.
1826 set dummy $ac_prog; ac_word=$2
1827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1829 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 if test -n "$ac_ct_CXX"; then
1833 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1842 ac_cv_prog_ac_ct_CXX="$ac_prog"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1853 if test -n "$ac_ct_CXX"; then
1854 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1855 echo "${ECHO_T}$ac_ct_CXX" >&6; }
1857 { echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6; }
1862 test -n "$ac_ct_CXX" && break
1865 if test "x$ac_ct_CXX" = x; then
1868 case $cross_compiling:$ac_tool_warned in
1870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1871 whose name does not start with the host triplet. If you think this
1872 configuration is useful to you, please write to autoconf@gnu.org." >&5
1873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1874 whose name does not start with the host triplet. If you think this
1875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1876 ac_tool_warned=yes ;;
1884 # Provide some information about the compiler.
1885 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
1886 ac_compiler=`set X $ac_compile; echo $2`
1887 { (ac_try="$ac_compiler --version >&5"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1893 (eval "$ac_compiler --version >&5") 2>&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }
1897 { (ac_try="$ac_compiler -v >&5"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1903 (eval "$ac_compiler -v >&5") 2>&5
1905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906 (exit $ac_status); }
1907 { (ac_try="$ac_compiler -V >&5"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1913 (eval "$ac_compiler -V >&5") 2>&5
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }
1918 cat >conftest.$ac_ext <<_ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1933 ac_clean_files_save=$ac_clean_files
1934 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1935 # Try to create an executable without -o first, disregard a.out.
1936 # It will help us diagnose broken compilers, and finding out an intuition
1938 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1939 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
1940 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1942 # List of possible output files, starting from the most likely.
1943 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
1944 # only as a last resort. b.out is created by i960 compilers.
1945 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
1947 # The IRIX 6 linker writes into existing files which may not be
1948 # executable, retaining their permissions. Remove them first so a
1949 # subsequent execution test works.
1951 for ac_file in $ac_files
1954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1955 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1960 if { (ac_try="$ac_link_default"
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1966 (eval "$ac_link_default") 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1971 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1972 # in a Makefile. We should not override ac_cv_exeext if it was cached,
1973 # so that the user can short-circuit this test for compilers unknown to
1975 for ac_file in $ac_files ''
1977 test -f "$ac_file" || continue
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1982 # We found the default executable, but exeext='' is most
1986 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 # We set ac_cv_exeext here because the later test for it is not
1991 # safe: cross compilers may not add the suffix if given an `-o'
1992 # argument, so we may need to know it at that point already.
1993 # Even if this section looks crufty: it has the advantage of
2000 test "$ac_cv_exeext" = no && ac_cv_exeext=
2006 { echo "$as_me:$LINENO: result: $ac_file" >&5
2007 echo "${ECHO_T}$ac_file" >&6; }
2008 if test -z "$ac_file"; then
2009 echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2012 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: C++ compiler cannot create executables
2015 See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }
2019 ac_exeext=$ac_cv_exeext
2021 # Check that the compiler produces executables we can run. If not, either
2022 # the compiler is broken, or we cross compile.
2023 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2024 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2025 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2026 # If not cross compiling, check that we can run a simple program.
2027 if test "$cross_compiling" != yes; then
2028 if { ac_try='./$ac_file'
2029 { (case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2034 (eval "$ac_try") 2>&5
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 if test "$cross_compiling" = maybe; then
2043 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2044 If you meant to cross compile, use \`--host'.
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot run C++ compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }
2053 { echo "$as_me:$LINENO: result: yes" >&5
2054 echo "${ECHO_T}yes" >&6; }
2056 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057 ac_clean_files=$ac_clean_files_save
2058 # Check that the compiler produces executables we can run. If not, either
2059 # the compiler is broken, or we cross compile.
2060 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2062 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063 echo "${ECHO_T}$cross_compiling" >&6; }
2065 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2067 if { (ac_try="$ac_link"
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2073 (eval "$ac_link") 2>&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; then
2077 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2078 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2079 # work properly (i.e., refer to `conftest.exe'), while it won't with
2081 for ac_file in conftest.exe conftest conftest.*; do
2082 test -f "$ac_file" || continue
2084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2094 See \`config.log' for more details." >&2;}
2095 { (exit 1); exit 1; }; }
2098 rm -f conftest$ac_cv_exeext
2099 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2100 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2102 rm -f conftest.$ac_ext
2103 EXEEXT=$ac_cv_exeext
2105 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2106 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2107 if test "${ac_cv_objext+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 cat >conftest.$ac_ext <<_ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h. */
2125 rm -f conftest.o conftest.obj
2126 if { (ac_try="$ac_compile"
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132 (eval "$ac_compile") 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; then
2136 for ac_file in conftest.o conftest.obj conftest.*; do
2137 test -f "$ac_file" || continue;
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145 echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2148 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2149 See \`config.log' for more details." >&5
2150 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2151 See \`config.log' for more details." >&2;}
2152 { (exit 1); exit 1; }; }
2155 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2157 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2158 echo "${ECHO_T}$ac_cv_objext" >&6; }
2159 OBJEXT=$ac_cv_objext
2161 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2162 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2163 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 cat >conftest.$ac_ext <<_ACEOF
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2184 rm -f conftest.$ac_objext
2185 if { (ac_try="$ac_compile"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191 (eval "$ac_compile") 2>conftest.er1
2193 grep -v '^ *+' conftest.er1 >conftest.err
2195 cat conftest.err >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } && {
2198 test -z "$ac_cxx_werror_flag" ||
2199 test ! -s conftest.err
2200 } && test -s conftest.$ac_objext; then
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2213 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2214 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2215 GXX=`test $ac_compiler_gnu = yes && echo yes`
2216 ac_test_CXXFLAGS=${CXXFLAGS+set}
2217 ac_save_CXXFLAGS=$CXXFLAGS
2218 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2219 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_cxx_g+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2224 ac_cxx_werror_flag=yes
2227 cat >conftest.$ac_ext <<_ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2242 rm -f conftest.$ac_objext
2243 if { (ac_try="$ac_compile"
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_compile") 2>conftest.er1
2251 grep -v '^ *+' conftest.er1 >conftest.err
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } && {
2256 test -z "$ac_cxx_werror_flag" ||
2257 test ! -s conftest.err
2258 } && test -s conftest.$ac_objext; then
2259 ac_cv_prog_cxx_g=yes
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2265 cat >conftest.$ac_ext <<_ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2280 rm -f conftest.$ac_objext
2281 if { (ac_try="$ac_compile"
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287 (eval "$ac_compile") 2>conftest.er1
2289 grep -v '^ *+' conftest.er1 >conftest.err
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } && {
2294 test -z "$ac_cxx_werror_flag" ||
2295 test ! -s conftest.err
2296 } && test -s conftest.$ac_objext; then
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2319 rm -f conftest.$ac_objext
2320 if { (ac_try="$ac_compile"
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_compile") 2>conftest.er1
2328 grep -v '^ *+' conftest.er1 >conftest.err
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } && {
2333 test -z "$ac_cxx_werror_flag" ||
2334 test ! -s conftest.err
2335 } && test -s conftest.$ac_objext; then
2336 ac_cv_prog_cxx_g=yes
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2354 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2355 if test "$ac_test_CXXFLAGS" = set; then
2356 CXXFLAGS=$ac_save_CXXFLAGS
2357 elif test $ac_cv_prog_cxx_g = yes; then
2358 if test "$GXX" = yes; then
2364 if test "$GXX" = yes; then
2371 ac_cpp='$CPP $CPPFLAGS'
2372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_RANLIB+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$RANLIB"; then
2385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 RANLIB=$ac_cv_prog_RANLIB
2405 if test -n "$RANLIB"; then
2406 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2407 echo "${ECHO_T}$RANLIB" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2415 if test -z "$ac_cv_prog_RANLIB"; then
2416 ac_ct_RANLIB=$RANLIB
2417 # Extract the first word of "ranlib", so it can be a program name with args.
2418 set dummy ranlib; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$ac_ct_RANLIB"; then
2425 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_ac_ct_RANLIB="ranlib"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2445 if test -n "$ac_ct_RANLIB"; then
2446 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2447 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2453 if test "x$ac_ct_RANLIB" = x; then
2456 case $cross_compiling:$ac_tool_warned in
2458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2459 whose name does not start with the host triplet. If you think this
2460 configuration is useful to you, please write to autoconf@gnu.org." >&5
2461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet. If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2464 ac_tool_warned=yes ;;
2466 RANLIB=$ac_ct_RANLIB
2469 RANLIB="$ac_cv_prog_RANLIB"
2472 # Extract the first word of "ar", so it can be a program name with args.
2473 set dummy ar; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_path_AR+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
2504 if test -n "$AR"; then
2505 { echo "$as_me:$LINENO: result: $AR" >&5
2506 echo "${ECHO_T}$AR" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2513 if [ $AR = "no" ] ; then
2514 { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
2515 echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
2516 { (exit 1); exit 1; }; };
2519 # Checks for header files.
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test -n "$CC"; then
2555 { echo "$as_me:$LINENO: result: $CC" >&5
2556 echo "${ECHO_T}$CC" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2564 if test -z "$ac_cv_prog_CC"; then
2566 # Extract the first word of "gcc", so it can be a program name with args.
2567 set dummy gcc; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 if test -n "$ac_ct_CC"; then
2574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_ac_ct_CC="gcc"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2594 if test -n "$ac_ct_CC"; then
2595 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2596 echo "${ECHO_T}$ac_ct_CC" >&6; }
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2602 if test "x$ac_ct_CC" = x; then
2605 case $cross_compiling:$ac_tool_warned in
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2621 if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}cc; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_CC="${ac_tool_prefix}cc"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 if test -n "$CC"; then
2652 { echo "$as_me:$LINENO: result: $CC" >&5
2653 echo "${ECHO_T}$CC" >&6; }
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2662 if test -z "$CC"; then
2663 # Extract the first word of "cc", so it can be a program name with args.
2664 set dummy cc; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2682 ac_prog_rejected=yes
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 if test $ac_prog_rejected = yes; then
2694 # We found a bogon in the path, so make sure we never use it.
2695 set dummy $ac_cv_prog_CC
2697 if test $# != 0; then
2698 # We chose a different compiler from the bogus one.
2699 # However, it has the same basename, so the bogon will be chosen
2700 # first if we set CC to just the basename; use the full file name.
2702 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2708 if test -n "$CC"; then
2709 { echo "$as_me:$LINENO: result: $CC" >&5
2710 echo "${ECHO_T}$CC" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2718 if test -z "$CC"; then
2719 if test -n "$ac_tool_prefix"; then
2720 for ac_prog in cl.exe
2722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test -n "$CC"; then
2751 { echo "$as_me:$LINENO: result: $CC" >&5
2752 echo "${ECHO_T}$CC" >&6; }
2754 { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2759 test -n "$CC" && break
2762 if test -z "$CC"; then
2764 for ac_prog in cl.exe
2766 # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_ac_ct_CC="$ac_prog"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2796 echo "${ECHO_T}$ac_ct_CC" >&6; }
2798 { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2803 test -n "$ac_ct_CC" && break
2806 if test "x$ac_ct_CC" = x; then
2809 case $cross_compiling:$ac_tool_warned in
2811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2812 whose name does not start with the host triplet. If you think this
2813 configuration is useful to you, please write to autoconf@gnu.org." >&5
2814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2815 whose name does not start with the host triplet. If you think this
2816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2817 ac_tool_warned=yes ;;
2826 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: no acceptable C compiler found in \$PATH
2829 See \`config.log' for more details." >&2;}
2830 { (exit 1); exit 1; }; }
2832 # Provide some information about the compiler.
2833 echo "$as_me:$LINENO: checking for C compiler version" >&5
2834 ac_compiler=`set X $ac_compile; echo $2`
2835 { (ac_try="$ac_compiler --version >&5"
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_compiler --version >&5") 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }
2845 { (ac_try="$ac_compiler -v >&5"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_compiler -v >&5") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }
2855 { (ac_try="$ac_compiler -V >&5"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_compiler -V >&5") 2>&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2866 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2867 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2868 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compile") 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest.$ac_objext; then
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2918 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2920 GCC=`test $ac_compiler_gnu = yes && echo yes`
2921 ac_test_CFLAGS=${CFLAGS+set}
2922 ac_save_CFLAGS=$CFLAGS
2923 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2924 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2925 if test "${ac_cv_prog_cc_g+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 ac_save_c_werror_flag=$ac_c_werror_flag
2929 ac_c_werror_flag=yes
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2956 grep -v '^ *+' conftest.er1 >conftest.err
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } && {
2961 test -z "$ac_c_werror_flag" ||
2962 test ! -s conftest.err
2963 } && test -s conftest.$ac_objext; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 ac_c_werror_flag=$ac_save_c_werror_flag
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_c_werror_flag=$ac_save_c_werror_flag
3058 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3060 if test "$ac_test_CFLAGS" = set; then
3061 CFLAGS=$ac_save_CFLAGS
3062 elif test $ac_cv_prog_cc_g = yes; then
3063 if test "$GCC" = yes; then
3069 if test "$GCC" = yes; then
3075 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3076 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_c89+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 ac_cv_prog_cc_c89=no
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3090 #include <sys/types.h>
3091 #include <sys/stat.h>
3092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3093 struct buf { int x; };
3094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3095 static char *e (p, i)
3101 static char *f (char * (*g) (char **, int), char **p, ...)
3106 s = g (p, va_arg (v,int));
3111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3112 function prototypes and stuff, but not '\xHH' hex character constants.
3113 These don't provoke an error unfortunately, instead are silently treated
3114 as 'x'. The following induces an error, until -std is added to get
3115 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3116 array size at least. It's necessary to write '\x00'==0 to get something
3117 that's true only with -std. */
3118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3121 inside strings and character constants. */
3123 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3125 int test (int i, double x);
3126 struct s1 {int (*f) (int a);};
3127 struct s2 {int (*f) (double a);};
3128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3140 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3142 CC="$ac_save_CC $ac_arg"
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compile") 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } && {
3157 test -z "$ac_c_werror_flag" ||
3158 test ! -s conftest.err
3159 } && test -s conftest.$ac_objext; then
3160 ac_cv_prog_cc_c89=$ac_arg
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f core conftest.err conftest.$ac_objext
3169 test "x$ac_cv_prog_cc_c89" != "xno" && break
3171 rm -f conftest.$ac_ext
3176 case "x$ac_cv_prog_cc_c89" in
3178 { echo "$as_me:$LINENO: result: none needed" >&5
3179 echo "${ECHO_T}none needed" >&6; } ;;
3181 { echo "$as_me:$LINENO: result: unsupported" >&5
3182 echo "${ECHO_T}unsupported" >&6; } ;;
3184 CC="$CC $ac_cv_prog_cc_c89"
3185 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3186 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3204 # On Suns, sometimes $CPP names a directory.
3205 if test -n "$CPP" && test -d "$CPP"; then
3208 if test -z "$CPP"; then
3209 if test "${ac_cv_prog_CPP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 # Double quotes because CPP needs to be expanded
3213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216 for ac_c_preproc_warn_flag in '' yes
3218 # Use a header file that comes with gcc, so configuring glibc
3219 # with a fresh cross-compiler works.
3220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221 # <limits.h> exists even on freestanding compilers.
3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3223 # not just through cpp. "Syntax error" is here to catch this case.
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3231 # include <limits.h>
3233 # include <assert.h>
3237 if { (ac_try="$ac_cpp conftest.$ac_ext"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null && {
3250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 # Broken: fails on valid input.
3262 rm -f conftest.err conftest.$ac_ext
3264 # OK, works on sane cases. Now check whether nonexistent headers
3265 # can be detected and how.
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272 #include <ac_nonexistent.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null && {
3287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3290 # Broken: success on invalid input.
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 # Passes both tests.
3301 rm -f conftest.err conftest.$ac_ext
3304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3305 rm -f conftest.err conftest.$ac_ext
3306 if $ac_preproc_ok; then
3318 { echo "$as_me:$LINENO: result: $CPP" >&5
3319 echo "${ECHO_T}$CPP" >&6; }
3321 for ac_c_preproc_warn_flag in '' yes
3323 # Use a header file that comes with gcc, so configuring glibc
3324 # with a fresh cross-compiler works.
3325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3326 # <limits.h> exists even on freestanding compilers.
3327 # On the NeXT, cc -E runs the code through the compiler's parser,
3328 # not just through cpp. "Syntax error" is here to catch this case.
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3336 # include <limits.h>
3338 # include <assert.h>
3342 if { (ac_try="$ac_cpp conftest.$ac_ext"
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3350 grep -v '^ *+' conftest.er1 >conftest.err
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } >/dev/null && {
3355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3356 test ! -s conftest.err
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 # Broken: fails on valid input.
3367 rm -f conftest.err conftest.$ac_ext
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3377 #include <ac_nonexistent.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3395 # Broken: success on invalid input.
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 # Passes both tests.
3406 rm -f conftest.err conftest.$ac_ext
3409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3410 rm -f conftest.err conftest.$ac_ext
3411 if $ac_preproc_ok; then
3414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3415 See \`config.log' for more details." >&5
3416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3417 See \`config.log' for more details." >&2;}
3418 { (exit 1); exit 1; }; }
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3429 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3430 if test "${ac_cv_path_GREP+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 # Extract the first word of "grep ggrep" to use in msg output
3434 if test -z "$GREP"; then
3435 set dummy grep ggrep; ac_prog_name=$2
3436 if test "${ac_cv_path_GREP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 ac_path_GREP_found=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3445 test -z "$as_dir" && as_dir=.
3446 for ac_prog in grep ggrep; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3449 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3450 # Check for GNU ac_path_GREP and select it if it is found.
3451 # Check for GNU $ac_path_GREP
3452 case `"$ac_path_GREP" --version 2>&1` in
3454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 echo 'GREP' >> "conftest.nl"
3464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3466 ac_count=`expr $ac_count + 1`
3467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_GREP="$ac_path_GREP"
3470 ac_path_GREP_max=$ac_count
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3479 $ac_path_GREP_found && break 3
3489 GREP="$ac_cv_path_GREP"
3490 if test -z "$GREP"; then
3491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3493 { (exit 1); exit 1; }; }
3497 ac_cv_path_GREP=$GREP
3502 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3503 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3504 GREP="$ac_cv_path_GREP"
3507 { echo "$as_me:$LINENO: checking for egrep" >&5
3508 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3509 if test "${ac_cv_path_EGREP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3512 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3513 then ac_cv_path_EGREP="$GREP -E"
3515 # Extract the first word of "egrep" to use in msg output
3516 if test -z "$EGREP"; then
3517 set dummy egrep; ac_prog_name=$2
3518 if test "${ac_cv_path_EGREP+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 ac_path_EGREP_found=false
3522 # Loop through the user's path and test for each of PROGNAME-LIST
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3527 test -z "$as_dir" && as_dir=.
3528 for ac_prog in egrep; do
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3532 # Check for GNU ac_path_EGREP and select it if it is found.
3533 # Check for GNU $ac_path_EGREP
3534 case `"$ac_path_EGREP" --version 2>&1` in
3536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3542 cat "conftest.in" "conftest.in" >"conftest.tmp"
3543 mv "conftest.tmp" "conftest.in"
3544 cp "conftest.in" "conftest.nl"
3545 echo 'EGREP' >> "conftest.nl"
3546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3548 ac_count=`expr $ac_count + 1`
3549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3550 # Best one so far, save it but keep looking for a better one
3551 ac_cv_path_EGREP="$ac_path_EGREP"
3552 ac_path_EGREP_max=$ac_count
3554 # 10*(2^10) chars as input seems more than enough
3555 test $ac_count -gt 10 && break
3557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3561 $ac_path_EGREP_found && break 3
3571 EGREP="$ac_cv_path_EGREP"
3572 if test -z "$EGREP"; then
3573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3574 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3575 { (exit 1); exit 1; }; }
3579 ac_cv_path_EGREP=$EGREP
3585 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3586 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3587 EGREP="$ac_cv_path_EGREP"
3590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3592 if test "${ac_cv_header_stdc+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 ac_cv_header_stdc=yes
3633 echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 ac_cv_header_stdc=no
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 if test $ac_cv_header_stdc = yes; then
3642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3643 cat >conftest.$ac_ext <<_ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653 $EGREP "memchr" >/dev/null 2>&1; then
3656 ac_cv_header_stdc=no
3662 if test $ac_cv_header_stdc = yes; then
3663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "free" >/dev/null 2>&1; then
3677 ac_cv_header_stdc=no
3683 if test $ac_cv_header_stdc = yes; then
3684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3685 if test "$cross_compiling" = yes; then
3688 cat >conftest.$ac_ext <<_ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3696 #if ((' ' & 0x0FF) == 0x020)
3697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3700 # define ISLOWER(c) \
3701 (('a' <= (c) && (c) <= 'i') \
3702 || ('j' <= (c) && (c) <= 'r') \
3703 || ('s' <= (c) && (c) <= 'z'))
3704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3712 for (i = 0; i < 256; i++)
3713 if (XOR (islower (i), ISLOWER (i))
3714 || toupper (i) != TOUPPER (i))
3719 rm -f conftest$ac_exeext
3720 if { (ac_try="$ac_link"
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3726 (eval "$ac_link") 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3730 { (case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735 (eval "$ac_try") 2>&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3741 echo "$as_me: program exited with status $ac_status" >&5
3742 echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3746 ac_cv_header_stdc=no
3748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3754 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3755 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3756 if test $ac_cv_header_stdc = yes; then
3758 cat >>confdefs.h <<\_ACEOF
3759 #define STDC_HEADERS 1
3764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3774 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3775 inttypes.h stdint.h unistd.h
3777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3789 $ac_includes_default
3791 #include <$ac_header>
3793 rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_compile") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && {
3807 test -z "$ac_c_werror_flag" ||
3808 test ! -s conftest.err
3809 } && test -s conftest.$ac_objext; then
3810 eval "$as_ac_Header=yes"
3812 echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 eval "$as_ac_Header=no"
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_res=`eval echo '${'$as_ac_Header'}'`
3821 { echo "$as_me:$LINENO: result: $ac_res" >&5
3822 echo "${ECHO_T}$ac_res" >&6; }
3823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3824 cat >>confdefs.h <<_ACEOF
3825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3835 for ac_header in sys/ioctl.h unistd.h
3837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 ac_res=`eval echo '${'$as_ac_Header'}'`
3845 { echo "$as_me:$LINENO: result: $ac_res" >&5
3846 echo "${ECHO_T}$ac_res" >&6; }
3848 # Is the header compilable?
3849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3851 cat >conftest.$ac_ext <<_ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 $ac_includes_default
3858 #include <$ac_header>
3860 rm -f conftest.$ac_objext
3861 if { (ac_try="$ac_compile"
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_compile") 2>conftest.er1
3869 grep -v '^ *+' conftest.er1 >conftest.err
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } && {
3874 test -z "$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 } && test -s conftest.$ac_objext; then
3877 ac_header_compiler=yes
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_header_compiler=no
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3887 echo "${ECHO_T}$ac_header_compiler" >&6; }
3889 # Is the header present?
3890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #include <$ac_header>
3900 if { (ac_try="$ac_cpp conftest.$ac_ext"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } >/dev/null && {
3913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3916 ac_header_preproc=yes
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_header_preproc=no
3924 rm -f conftest.err conftest.$ac_ext
3925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3926 echo "${ECHO_T}$ac_header_preproc" >&6; }
3928 # So? What about this header?
3929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3935 ac_header_preproc=yes
3938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3951 ## ----------------------------------- ##
3952 ## Report this to gary@music.mcgill.ca ##
3953 ## ----------------------------------- ##
3955 ) | sed "s/^/$as_me: WARNING: /" >&2
3958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 eval "$as_ac_Header=\$ac_header_preproc"
3965 ac_res=`eval echo '${'$as_ac_Header'}'`
3966 { echo "$as_me:$LINENO: result: $ac_res" >&5
3967 echo "${ECHO_T}$ac_res" >&6; }
3970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3971 cat >>confdefs.h <<_ACEOF
3972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3981 { echo "$as_me:$LINENO: checking whether to compile debug version" >&5
3982 echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6; }
3983 # Check whether --enable-debug was given.
3984 if test "${enable_debug+set}" = set; then
3985 enableval=$enable_debug; cppflag=-D__RTAUDIO_DEBUG__
3988 { echo "$as_me:$LINENO: result: yes" >&5
3989 echo "${ECHO_T}yes" >&6; }
3994 { echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6; }
4000 # Checks for functions
4001 { echo "$as_me:$LINENO: checking for gettimeofday" >&5
4002 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
4003 if test "${ac_cv_func_gettimeofday+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
4013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4014 #define gettimeofday innocuous_gettimeofday
4016 /* System header to define __stub macros and hopefully few prototypes,
4017 which can conflict with char gettimeofday (); below.
4018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019 <limits.h> exists even on freestanding compilers. */
4022 # include <limits.h>
4024 # include <assert.h>
4029 /* Override any GCC internal prototype to avoid an error.
4030 Use char because int might match the return type of a GCC
4031 builtin and then its argument prototype would still apply. */
4035 char gettimeofday ();
4036 /* The GNU C library defines this for functions which it implements
4037 to always fail with ENOSYS. Some functions are actually named
4038 something starting with __ and the normal name is an alias. */
4039 #if defined __stub_gettimeofday || defined __stub___gettimeofday
4046 return gettimeofday ();
4051 rm -f conftest.$ac_objext conftest$ac_exeext
4052 if { (ac_try="$ac_link"
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_link") 2>conftest.er1
4060 grep -v '^ *+' conftest.er1 >conftest.err
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } && {
4065 test -z "$ac_c_werror_flag" ||
4066 test ! -s conftest.err
4067 } && test -s conftest$ac_exeext &&
4068 $as_test_x conftest$ac_exeext; then
4069 ac_cv_func_gettimeofday=yes
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_cv_func_gettimeofday=no
4077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4078 conftest$ac_exeext conftest.$ac_ext
4080 { echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
4081 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6; }
4082 if test $ac_cv_func_gettimeofday = yes; then
4083 cppflag="$cppflag -DHAVE_GETTIMEOFDAY"
4087 # For -I and -D flags
4088 CPPFLAGS="$CPPFLAGS $cppflag"
4090 # For debugging and optimization ... overwrite default because it has both -g and -O2
4091 #CXXFLAGS="$CXXFLAGS $cxxflag"
4094 # Check compiler and use -Wall if gnu.
4095 if test $GXX = "yes" ; then
4100 CXXFLAGS="$CXXFLAGS $cxxflag"
4102 # Checks for package options and external software
4105 # Make sure we can run config.sub.
4106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4107 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4108 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4109 { (exit 1); exit 1; }; }
4111 { echo "$as_me:$LINENO: checking build system type" >&5
4112 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4113 if test "${ac_cv_build+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 ac_build_alias=$build_alias
4117 test "x$ac_build_alias" = x &&
4118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4119 test "x$ac_build_alias" = x &&
4120 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4121 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4122 { (exit 1); exit 1; }; }
4123 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4124 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4125 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4126 { (exit 1); exit 1; }; }
4129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4130 echo "${ECHO_T}$ac_cv_build" >&6; }
4131 case $ac_cv_build in
4133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4134 echo "$as_me: error: invalid value of canonical build" >&2;}
4135 { (exit 1); exit 1; }; };;
4138 ac_save_IFS=$IFS; IFS='-'
4144 # Remember, the first character of IFS is used to create $*,
4145 # except with old shells:
4148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4151 { echo "$as_me:$LINENO: checking host system type" >&5
4152 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4153 if test "${ac_cv_host+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 if test "x$host_alias" = x; then
4157 ac_cv_host=$ac_cv_build
4159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4162 { (exit 1); exit 1; }; }
4166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4167 echo "${ECHO_T}$ac_cv_host" >&6; }
4170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4171 echo "$as_me: error: invalid value of canonical host" >&2;}
4172 { (exit 1); exit 1; }; };;
4175 ac_save_IFS=$IFS; IFS='-'
4181 # Remember, the first character of IFS is used to create $*,
4182 # except with old shells:
4185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4188 { echo "$as_me:$LINENO: checking for audio API" >&5
4189 echo $ECHO_N "checking for audio API... $ECHO_C" >&6; }
4192 { echo "$as_me:$LINENO: result: using OSS" >&5
4193 echo "${ECHO_T}using OSS" >&6; }
4194 api="$api -D__LINUX_OSS__"
4195 LIBS="$LIBS -lossaudio"
4197 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4198 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
4199 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_check_lib_save_LIBS=$LIBS
4203 LIBS="-lpthread $LIBS"
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4211 /* Override any GCC internal prototype to avoid an error.
4212 Use char because int might match the return type of a GCC
4213 builtin and then its argument prototype would still apply. */
4217 char pthread_create ();
4221 return pthread_create ();
4226 rm -f conftest.$ac_objext conftest$ac_exeext
4227 if { (ac_try="$ac_link"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_link") 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && {
4240 test -z "$ac_c_werror_flag" ||
4241 test ! -s conftest.err
4242 } && test -s conftest$ac_exeext &&
4243 $as_test_x conftest$ac_exeext; then
4244 ac_cv_lib_pthread_pthread_create=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 ac_cv_lib_pthread_pthread_create=no
4252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4253 conftest$ac_exeext conftest.$ac_ext
4254 LIBS=$ac_check_lib_save_LIBS
4256 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4257 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
4258 if test $ac_cv_lib_pthread_pthread_create = yes; then
4259 cat >>confdefs.h <<_ACEOF
4260 #define HAVE_LIBPTHREAD 1
4263 LIBS="-lpthread $LIBS"
4266 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4267 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4268 { (exit 1); exit 1; }; }
4275 # Check whether --with-jack was given.
4276 if test "${with_jack+set}" = set; then
4278 api="$api -D__UNIX_JACK__"
4279 { echo "$as_me:$LINENO: result: using JACK" >&5
4280 echo "${ECHO_T}using JACK" >&6; }
4282 { echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
4283 echo $ECHO_N "checking for jack_client_open in -ljack... $ECHO_C" >&6; }
4284 if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 ac_check_lib_save_LIBS=$LIBS
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4296 /* Override any GCC internal prototype to avoid an error.
4297 Use char because int might match the return type of a GCC
4298 builtin and then its argument prototype would still apply. */
4302 char jack_client_open ();
4306 return jack_client_open ();
4311 rm -f conftest.$ac_objext conftest$ac_exeext
4312 if { (ac_try="$ac_link"
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_link") 2>conftest.er1
4320 grep -v '^ *+' conftest.er1 >conftest.err
4322 cat conftest.err >&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && {
4325 test -z "$ac_c_werror_flag" ||
4326 test ! -s conftest.err
4327 } && test -s conftest$ac_exeext &&
4328 $as_test_x conftest$ac_exeext; then
4329 ac_cv_lib_jack_jack_client_open=yes
4331 echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4334 ac_cv_lib_jack_jack_client_open=no
4337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4338 conftest$ac_exeext conftest.$ac_ext
4339 LIBS=$ac_check_lib_save_LIBS
4341 { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
4342 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_open" >&6; }
4343 if test $ac_cv_lib_jack_jack_client_open = yes; then
4344 cat >>confdefs.h <<_ACEOF
4345 #define HAVE_LIBJACK 1
4351 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4352 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4353 { (exit 1); exit 1; }; }
4357 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4358 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4359 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 ac_check_lib_save_LIBS=$LIBS
4363 LIBS="-lasound $LIBS"
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4371 /* Override any GCC internal prototype to avoid an error.
4372 Use char because int might match the return type of a GCC
4373 builtin and then its argument prototype would still apply. */
4377 char snd_pcm_open ();
4381 return snd_pcm_open ();
4386 rm -f conftest.$ac_objext conftest$ac_exeext
4387 if { (ac_try="$ac_link"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_link") 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && {
4400 test -z "$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest$ac_exeext &&
4403 $as_test_x conftest$ac_exeext; then
4404 ac_cv_lib_asound_snd_pcm_open=yes
4406 echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 ac_cv_lib_asound_snd_pcm_open=no
4412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4413 conftest$ac_exeext conftest.$ac_ext
4414 LIBS=$ac_check_lib_save_LIBS
4416 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4417 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4418 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4419 cat >>confdefs.h <<_ACEOF
4420 #define HAVE_LIBASOUND 1
4423 LIBS="-lasound $LIBS"
4426 { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
4427 echo "$as_me: error: Jack support also requires the asound library!" >&2;}
4428 { (exit 1); exit 1; }; }
4434 # Look for ALSA flag
4436 # Check whether --with-alsa was given.
4437 if test "${with_alsa+set}" = set; then
4439 api="$api -D__LINUX_ALSA__"
4440 { echo "$as_me:$LINENO: result: using ALSA" >&5
4441 echo "${ECHO_T}using ALSA" >&6; }
4443 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4444 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4445 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_check_lib_save_LIBS=$LIBS
4449 LIBS="-lasound $LIBS"
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4457 /* Override any GCC internal prototype to avoid an error.
4458 Use char because int might match the return type of a GCC
4459 builtin and then its argument prototype would still apply. */
4463 char snd_pcm_open ();
4467 return snd_pcm_open ();
4472 rm -f conftest.$ac_objext conftest$ac_exeext
4473 if { (ac_try="$ac_link"
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_link") 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && {
4486 test -z "$ac_c_werror_flag" ||
4487 test ! -s conftest.err
4488 } && test -s conftest$ac_exeext &&
4489 $as_test_x conftest$ac_exeext; then
4490 ac_cv_lib_asound_snd_pcm_open=yes
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ac_cv_lib_asound_snd_pcm_open=no
4498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4499 conftest$ac_exeext conftest.$ac_ext
4500 LIBS=$ac_check_lib_save_LIBS
4502 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4503 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4504 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4505 cat >>confdefs.h <<_ACEOF
4506 #define HAVE_LIBASOUND 1
4509 LIBS="-lasound $LIBS"
4512 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4513 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4514 { (exit 1); exit 1; }; }
4522 # Check whether --with-oss was given.
4523 if test "${with_oss+set}" = set; then
4525 api="$api -D__LINUX_OSS__"
4526 { echo "$as_me:$LINENO: result: using OSS" >&5
4527 echo "${ECHO_T}using OSS" >&6; }
4531 # If no audio api flags specified, use ALSA
4532 if test "$api" == ""; then
4533 { echo "$as_me:$LINENO: result: using ALSA" >&5
4534 echo "${ECHO_T}using ALSA" >&6; }
4535 api=-D__LINUX_ALSA__
4538 { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4539 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
4540 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 ac_check_lib_save_LIBS=$LIBS
4544 LIBS="-lasound $LIBS"
4545 cat >conftest.$ac_ext <<_ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4552 /* Override any GCC internal prototype to avoid an error.
4553 Use char because int might match the return type of a GCC
4554 builtin and then its argument prototype would still apply. */
4558 char snd_pcm_open ();
4562 return snd_pcm_open ();
4567 rm -f conftest.$ac_objext conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_link") 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } && {
4581 test -z "$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4583 } && test -s conftest$ac_exeext &&
4584 $as_test_x conftest$ac_exeext; then
4585 ac_cv_lib_asound_snd_pcm_open=yes
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4590 ac_cv_lib_asound_snd_pcm_open=no
4593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4594 conftest$ac_exeext conftest.$ac_ext
4595 LIBS=$ac_check_lib_save_LIBS
4597 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4598 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
4599 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4600 cat >>confdefs.h <<_ACEOF
4601 #define HAVE_LIBASOUND 1
4604 LIBS="-lasound $LIBS"
4607 { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4608 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4609 { (exit 1); exit 1; }; }
4615 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4616 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
4617 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 ac_check_lib_save_LIBS=$LIBS
4621 LIBS="-lpthread $LIBS"
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4629 /* Override any GCC internal prototype to avoid an error.
4630 Use char because int might match the return type of a GCC
4631 builtin and then its argument prototype would still apply. */
4635 char pthread_create ();
4639 return pthread_create ();
4644 rm -f conftest.$ac_objext conftest$ac_exeext
4645 if { (ac_try="$ac_link"
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651 (eval "$ac_link") 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4660 } && test -s conftest$ac_exeext &&
4661 $as_test_x conftest$ac_exeext; then
4662 ac_cv_lib_pthread_pthread_create=yes
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 ac_cv_lib_pthread_pthread_create=no
4670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4671 conftest$ac_exeext conftest.$ac_ext
4672 LIBS=$ac_check_lib_save_LIBS
4674 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4675 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
4676 if test $ac_cv_lib_pthread_pthread_create = yes; then
4677 cat >>confdefs.h <<_ACEOF
4678 #define HAVE_LIBPTHREAD 1
4681 LIBS="-lpthread $LIBS"
4684 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4685 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4686 { (exit 1); exit 1; }; }
4693 # Check whether --with-jack was given.
4694 if test "${with_jack+set}" = set; then
4696 api="$api -D__UNIX_JACK__"
4697 { echo "$as_me:$LINENO: result: using JACK" >&5
4698 echo "${ECHO_T}using JACK" >&6; }
4700 { echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
4701 echo $ECHO_N "checking for jack_client_open in -ljack... $ECHO_C" >&6; }
4702 if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_check_lib_save_LIBS=$LIBS
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4714 /* Override any GCC internal prototype to avoid an error.
4715 Use char because int might match the return type of a GCC
4716 builtin and then its argument prototype would still apply. */
4720 char jack_client_open ();
4724 return jack_client_open ();
4729 rm -f conftest.$ac_objext conftest$ac_exeext
4730 if { (ac_try="$ac_link"
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_link") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest$ac_exeext &&
4746 $as_test_x conftest$ac_exeext; then
4747 ac_cv_lib_jack_jack_client_open=yes
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 ac_cv_lib_jack_jack_client_open=no
4755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4756 conftest$ac_exeext conftest.$ac_ext
4757 LIBS=$ac_check_lib_save_LIBS
4759 { echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
4760 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_open" >&6; }
4761 if test $ac_cv_lib_jack_jack_client_open = yes; then
4762 cat >>confdefs.h <<_ACEOF
4763 #define HAVE_LIBJACK 1
4769 { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4770 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4771 { (exit 1); exit 1; }; }
4777 # AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
4778 # LIBS="$LIBS -framework jackmp" ], )
4781 # Look for Core flag
4783 # Check whether --with-core was given.
4784 if test "${with_core+set}" = set; then
4786 api="$api -D__MACOSX_CORE__"
4787 { echo "$as_me:$LINENO: result: using CoreAudio" >&5
4788 echo "${ECHO_T}using CoreAudio" >&6; }
4789 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4790 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4791 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
4792 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4796 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
4798 # Is the header compilable?
4799 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4800 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4808 #include <CoreAudio/CoreAudio.h>
4810 rm -f conftest.$ac_objext
4811 if { (ac_try="$ac_compile"
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817 (eval "$ac_compile") 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } && {
4824 test -z "$ac_c_werror_flag" ||
4825 test ! -s conftest.err
4826 } && test -s conftest.$ac_objext; then
4827 ac_header_compiler=yes
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4832 ac_header_compiler=no
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4837 echo "${ECHO_T}$ac_header_compiler" >&6; }
4839 # Is the header present?
4840 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4841 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #include <CoreAudio/CoreAudio.h>
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } >/dev/null && {
4863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4866 ac_header_preproc=yes
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_header_preproc=no
4874 rm -f conftest.err conftest.$ac_ext
4875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4876 echo "${ECHO_T}$ac_header_preproc" >&6; }
4878 # So? What about this header?
4879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4881 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4882 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4884 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4885 ac_header_preproc=yes
4888 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4889 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
4891 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4893 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
4895 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4897 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4899 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4901 ## ----------------------------------- ##
4902 ## Report this to gary@music.mcgill.ca ##
4903 ## ----------------------------------- ##
4905 ) | sed "s/^/$as_me: WARNING: /" >&2
4908 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4909 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
4910 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4915 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4916 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
4919 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4922 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4923 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4924 { (exit 1); exit 1; }; }
4928 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
4932 # If no audio api flags specified, use CoreAudio
4933 if test "$api" == ""; then
4934 api=-D__MACOSX_CORE__
4936 { echo "$as_me:$LINENO: result: using CoreAudio" >&5
4937 echo "${ECHO_T}using CoreAudio" >&6; }
4938 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4939 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4940 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
4941 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4945 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
4947 # Is the header compilable?
4948 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4949 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 $ac_includes_default
4957 #include <CoreAudio/CoreAudio.h>
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4968 grep -v '^ *+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4976 ac_header_compiler=yes
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 ac_header_compiler=no
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4986 echo "${ECHO_T}$ac_header_compiler" >&6; }
4988 # Is the header present?
4989 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4990 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
4991 cat >conftest.$ac_ext <<_ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4997 #include <CoreAudio/CoreAudio.h>
4999 if { (ac_try="$ac_cpp conftest.$ac_ext"
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null && {
5012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5013 test ! -s conftest.err
5015 ac_header_preproc=yes
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5020 ac_header_preproc=no
5023 rm -f conftest.err conftest.$ac_ext
5024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5025 echo "${ECHO_T}$ac_header_preproc" >&6; }
5027 # So? What about this header?
5028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5030 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5031 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5032 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
5033 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
5034 ac_header_preproc=yes
5037 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
5038 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
5039 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
5040 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
5041 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
5042 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
5043 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
5044 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5045 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
5046 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
5048 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
5050 ## ----------------------------------- ##
5051 ## Report this to gary@music.mcgill.ca ##
5052 ## ----------------------------------- ##
5054 ) | sed "s/^/$as_me: WARNING: /" >&2
5057 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5058 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
5059 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
5064 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5065 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5068 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
5071 { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
5072 echo "$as_me: error: CoreAudio header files not found!" >&2;}
5073 { (exit 1); exit 1; }; }
5077 LIBS="-framework CoreAudio -framework CoreFoundation"
5082 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5083 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
5084 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 ac_check_lib_save_LIBS=$LIBS
5088 LIBS="-lpthread $LIBS"
5089 cat >conftest.$ac_ext <<_ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5096 /* Override any GCC internal prototype to avoid an error.
5097 Use char because int might match the return type of a GCC
5098 builtin and then its argument prototype would still apply. */
5102 char pthread_create ();
5106 return pthread_create ();
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (ac_try="$ac_link"
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_link") 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } && {
5125 test -z "$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 } && test -s conftest$ac_exeext &&
5128 $as_test_x conftest$ac_exeext; then
5129 ac_cv_lib_pthread_pthread_create=yes
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ac_cv_lib_pthread_pthread_create=no
5137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5138 conftest$ac_exeext conftest.$ac_ext
5139 LIBS=$ac_check_lib_save_LIBS
5141 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5142 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
5143 if test $ac_cv_lib_pthread_pthread_create = yes; then
5144 cat >>confdefs.h <<_ACEOF
5145 #define HAVE_LIBPTHREAD 1
5148 LIBS="-lpthread $LIBS"
5151 { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
5152 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
5153 { (exit 1); exit 1; }; }
5160 # Check whether --with-asio was given.
5161 if test "${with_asio+set}" = set; then
5163 api="$api -D__WINDOWS_ASIO__"
5164 { echo "$as_me:$LINENO: result: using ASIO" >&5
5165 echo "${ECHO_T}using ASIO" >&6; }
5166 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
5171 # Look for DirectSound flag
5173 # Check whether --with-ds was given.
5174 if test "${with_ds+set}" = set; then
5176 api="$api -D__WINDOWS_DS__"
5177 { echo "$as_me:$LINENO: result: using DirectSound" >&5
5178 echo "${ECHO_T}using DirectSound" >&6; }
5179 LIBS="-ldsound -lwinmm $LIBS"
5183 # If no audio api flags specified, use DirectSound
5184 if test "$api" == ""; then
5185 api=-D__WINDOWS_DS__
5187 { echo "$as_me:$LINENO: result: using DirectSound" >&5
5188 echo "${ECHO_T}using DirectSound" >&6; }
5189 LIBS="-ldsound -lwinmm $LIBS"
5192 LIBS="-lole32 $LIBS"
5196 # Default case for unknown realtime systems.
5197 { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
5198 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
5199 { (exit 1); exit 1; }; }
5203 CPPFLAGS="$CPPFLAGS $api"
5205 cat >confcache <<\_ACEOF
5206 # This file is a shell script that caches the results of configure
5207 # tests run on this system so they can be shared between configure
5208 # scripts and configure runs, see configure's option --config-cache.
5209 # It is not useful on other systems. If it contains results you don't
5210 # want to keep, you may remove or edit it.
5212 # config.status only pays attention to the cache file if you give it
5213 # the --recheck option to rerun configure.
5215 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5216 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5221 # The following way of writing the cache mishandles newlines in values,
5222 # but we know of no workaround that is simple, portable, and efficient.
5223 # So, we kill variables containing newlines.
5224 # Ultrix sh set writes to stderr and can't be redirected directly,
5225 # and sets the high bit in the cache file unless we assign to the vars.
5227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5228 eval ac_val=\$$ac_var
5232 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5233 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5236 _ | IFS | as_nl) ;; #(
5237 *) $as_unset $ac_var ;;
5243 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5244 *${as_nl}ac_space=\ *)
5245 # `set' does not quote correctly, so add quotes (double-quote
5246 # substitution turns \\\\ into \\, and sed turns \\ into \).
5249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5252 # `set' quotes correctly as required by POSIX, so do not add quotes.
5253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5264 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5266 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5267 if test -w "$cache_file"; then
5268 test "x$cache_file" != "x/dev/null" &&
5269 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5270 echo "$as_me: updating cache $cache_file" >&6;}
5271 cat confcache >$cache_file
5273 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5274 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5279 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5280 # Let make expand exec_prefix.
5281 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5283 # Transform confdefs.h into DEFS.
5284 # Protect against shell expansion while executing Makefile rules.
5285 # Protect against Makefile macro expansion.
5287 # If the first sed substitution is executed (which looks for macros that
5288 # take arguments), then branch to the quote section. Otherwise,
5289 # look for a macro that doesn't take arguments.
5293 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5295 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5299 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5312 DEFS=`sed -n "$ac_script" confdefs.h`
5317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5318 # 1. Remove the extension, and $U if already installed.
5319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5320 ac_i=`echo "$ac_i" | sed "$ac_script"`
5321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5322 # will be set to the directory where LIBOBJS objects are built.
5323 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5324 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5328 LTLIBOBJS=$ac_ltlibobjs
5332 : ${CONFIG_STATUS=./config.status}
5333 ac_clean_files_save=$ac_clean_files
5334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5337 cat >$CONFIG_STATUS <<_ACEOF
5339 # Generated by $as_me.
5340 # Run this file to recreate the current configuration.
5341 # Compiler output produced by configure, useful for debugging
5342 # configure, is in config.log if it exists.
5347 SHELL=\${CONFIG_SHELL-$SHELL}
5350 cat >>$CONFIG_STATUS <<\_ACEOF
5351 ## --------------------- ##
5352 ## M4sh Initialization. ##
5353 ## --------------------- ##
5355 # Be more Bourne compatible
5356 DUALCASE=1; export DUALCASE # for MKS sh
5357 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5360 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5361 # is contrary to our usage. Disable this feature.
5362 alias -g '${1+"$@"}'='"$@"'
5363 setopt NO_GLOB_SUBST
5365 case `(set -o) 2>/dev/null` in
5366 *posix*) set -o posix ;;
5375 # Avoid depending upon Character Ranges.
5376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5379 as_cr_digits='0123456789'
5380 as_cr_alnum=$as_cr_Letters$as_cr_digits
5382 # The user is always right.
5383 if test "${PATH_SEPARATOR+set}" != set; then
5384 echo "#! /bin/sh" >conf$$.sh
5385 echo "exit 0" >>conf$$.sh
5387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5395 # Support unset when possible.
5396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5404 # We need space, tab and new line, in precisely that order. Quoting is
5405 # there to prevent editors from complaining about space-tab.
5406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5407 # splitting by setting IFS to empty value.)
5412 # Find who we are. Look in the path if we contain no directory separator.
5414 *[\\/]* ) as_myself=$0 ;;
5415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir=.
5420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5426 # We did not find ourselves, most probably we were run as `sh COMMAND'
5427 # in which case we are not to be found in the path.
5428 if test "x$as_myself" = x; then
5431 if test ! -f "$as_myself"; then
5432 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5433 { (exit 1); exit 1; }
5436 # Work around bugs in pre-3.0 UWIN ksh.
5437 for as_var in ENV MAIL MAILPATH
5438 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5446 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5448 LC_TELEPHONE LC_TIME
5450 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5451 eval $as_var=C; export $as_var
5453 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5457 # Required to use basename.
5458 if expr a : '\(a\)' >/dev/null 2>&1 &&
5459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5466 as_basename=basename
5472 # Name of the executable.
5473 as_me=`$as_basename -- "$0" ||
5474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5475 X"$0" : 'X\(//\)$' \| \
5476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5478 sed '/^.*\/\([^/][^/]*\)\/*$/{
5499 test "x$as_lineno_1" != "x$as_lineno_2" &&
5500 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5502 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5503 # uniformly replaced by the line number. The first 'sed' inserts a
5504 # line-number line after each line using $LINENO; the second 'sed'
5505 # does the real work. The second script uses 'N' to pair each
5506 # line-number line with the line containing $LINENO, and appends
5507 # trailing '-' during substitution so that $LINENO is not a special
5509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5510 # scripts with optimization help from Paolo Bonzini. Blame Lee
5511 # E. McMahon (1931-1989) for sed's syntax. :-)
5523 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5527 chmod +x "$as_me.lineno" ||
5528 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5529 { (exit 1); exit 1; }; }
5531 # Don't try to exec as it changes $[0], causing all sort of problems
5532 # (the dirname of $[0] is not the place where we might find the
5533 # original and so on. Autoconf is especially sensitive to this).
5535 # Exit status is that of the last command.
5540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5546 ECHO_C= ECHO_N= ECHO_T=
5549 case `echo 'x\c'` in
5550 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5557 if expr a : '\(a\)' >/dev/null 2>&1 &&
5558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5564 rm -f conf$$ conf$$.exe conf$$.file
5565 if test -d conf$$.dir; then
5566 rm -f conf$$.dir/conf$$.file
5572 if ln -s conf$$.file conf$$ 2>/dev/null; then
5574 # ... but there are two gotchas:
5575 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5576 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5577 # In both cases, we have to default to `cp -p'.
5578 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5580 elif ln conf$$.file conf$$ 2>/dev/null; then
5585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5586 rmdir conf$$.dir 2>/dev/null
5588 if mkdir -p . 2>/dev/null; then
5591 test -d ./-p && rmdir ./-p
5595 if test -x / >/dev/null 2>&1; then
5598 if ls -dL / >/dev/null 2>&1; then
5605 if test -d "$1"; then
5611 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5612 ???[sx]*):;;*)false;;esac;fi
5616 as_executable_p=$as_test_x
5618 # Sed expression to map a string onto a valid CPP name.
5619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5621 # Sed expression to map a string onto a valid variable name.
5622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5627 # Save the log message, to keep $[0] and so on meaningful, and to
5628 # report actual input values of CONFIG_FILES etc. instead of their
5629 # values after options handling.
5631 This file was extended by RtAudio $as_me 4.0, which was
5632 generated by GNU Autoconf 2.61. Invocation command line was
5634 CONFIG_FILES = $CONFIG_FILES
5635 CONFIG_HEADERS = $CONFIG_HEADERS
5636 CONFIG_LINKS = $CONFIG_LINKS
5637 CONFIG_COMMANDS = $CONFIG_COMMANDS
5640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5645 cat >>$CONFIG_STATUS <<_ACEOF
5646 # Files that config.status was made for.
5647 config_files="$ac_config_files"
5651 cat >>$CONFIG_STATUS <<\_ACEOF
5653 \`$as_me' instantiates files from templates according to the
5654 current configuration.
5656 Usage: $0 [OPTIONS] [FILE]...
5658 -h, --help print this help, then exit
5659 -V, --version print version number and configuration settings, then exit
5660 -q, --quiet do not print progress messages
5661 -d, --debug don't remove temporary files
5662 --recheck update $as_me by reconfiguring in the same conditions
5663 --file=FILE[:TEMPLATE]
5664 instantiate the configuration file FILE
5666 Configuration files:
5669 Report bugs to <bug-autoconf@gnu.org>."
5672 cat >>$CONFIG_STATUS <<_ACEOF
5674 RtAudio config.status 4.0
5675 configured by $0, generated by GNU Autoconf 2.61,
5676 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5678 Copyright (C) 2006 Free Software Foundation, Inc.
5679 This config.status script is free software; the Free Software Foundation
5680 gives unlimited permission to copy, distribute and modify it."
5686 cat >>$CONFIG_STATUS <<\_ACEOF
5687 # If no file are specified by the user, then we need to provide default
5688 # value. By we need to know if files were specified by the user.
5694 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5695 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5706 # Handling of the options.
5707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5710 echo "$ac_cs_version"; exit ;;
5711 --debug | --debu | --deb | --de | --d | -d )
5713 --file | --fil | --fi | --f )
5715 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5716 ac_need_defaults=false;;
5717 --he | --h | --help | --hel | -h )
5718 echo "$ac_cs_usage"; exit ;;
5719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5724 -*) { echo "$as_me: error: unrecognized option: $1
5725 Try \`$0 --help' for more information." >&2
5726 { (exit 1); exit 1; }; } ;;
5728 *) ac_config_targets="$ac_config_targets $1"
5729 ac_need_defaults=false ;;
5735 ac_configure_extra_args=
5737 if $ac_cs_silent; then
5739 ac_configure_extra_args="$ac_configure_extra_args --silent"
5743 cat >>$CONFIG_STATUS <<_ACEOF
5744 if \$ac_cs_recheck; then
5745 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5748 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5752 cat >>$CONFIG_STATUS <<\_ACEOF
5756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5757 ## Running $as_me. ##
5763 cat >>$CONFIG_STATUS <<_ACEOF
5766 cat >>$CONFIG_STATUS <<\_ACEOF
5768 # Handling of arguments.
5769 for ac_config_target in $ac_config_targets
5771 case $ac_config_target in
5772 "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
5773 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5774 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5776 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5778 { (exit 1); exit 1; }; };;
5783 # If the user did not use the arguments to specify the items to instantiate,
5784 # then the envvar interface is used. Set only those that are not.
5785 # We use the long form for the default assignment because of an extremely
5786 # bizarre bug on SunOS 4.1.3.
5787 if $ac_need_defaults; then
5788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5791 # Have a temporary directory for convenience. Make it in the build tree
5792 # simply because there is no reason against having it here, and in addition,
5793 # creating and moving files from /tmp can sometimes cause problems.
5794 # Hook for its removal unless debugging.
5795 # Note that there is a small window in which the directory will not be cleaned:
5796 # after its creation but before its name has been assigned to `$tmp'.
5800 trap 'exit_status=$?
5801 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5803 trap '{ (exit 1); exit 1; }' 1 2 13 15
5805 # Create a (secure) tmp directory for tmp files.
5808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5809 test -n "$tmp" && test -d "$tmp"
5812 tmp=./conf$$-$RANDOM
5813 (umask 077 && mkdir "$tmp")
5816 echo "$me: cannot create a temporary directory in ." >&2
5817 { (exit 1); exit 1; }
5821 # Set up the sed scripts for CONFIG_FILES section.
5824 # No need to generate the scripts if there are no CONFIG_FILES.
5825 # This happens for instance when ./config.status config.h
5826 if test -n "$CONFIG_FILES"; then
5833 for ac_last_try in false false false false false :; do
5834 cat >conf$$subs.sed <<_ACEOF
5835 SHELL!$SHELL$ac_delim
5836 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5837 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5838 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5839 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5840 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5841 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5842 exec_prefix!$exec_prefix$ac_delim
5843 prefix!$prefix$ac_delim
5844 program_transform_name!$program_transform_name$ac_delim
5845 bindir!$bindir$ac_delim
5846 sbindir!$sbindir$ac_delim
5847 libexecdir!$libexecdir$ac_delim
5848 datarootdir!$datarootdir$ac_delim
5849 datadir!$datadir$ac_delim
5850 sysconfdir!$sysconfdir$ac_delim
5851 sharedstatedir!$sharedstatedir$ac_delim
5852 localstatedir!$localstatedir$ac_delim
5853 includedir!$includedir$ac_delim
5854 oldincludedir!$oldincludedir$ac_delim
5855 docdir!$docdir$ac_delim
5856 infodir!$infodir$ac_delim
5857 htmldir!$htmldir$ac_delim
5858 dvidir!$dvidir$ac_delim
5859 pdfdir!$pdfdir$ac_delim
5860 psdir!$psdir$ac_delim
5861 libdir!$libdir$ac_delim
5862 localedir!$localedir$ac_delim
5863 mandir!$mandir$ac_delim
5865 ECHO_C!$ECHO_C$ac_delim
5866 ECHO_N!$ECHO_N$ac_delim
5867 ECHO_T!$ECHO_T$ac_delim
5869 build_alias!$build_alias$ac_delim
5870 host_alias!$host_alias$ac_delim
5871 target_alias!$target_alias$ac_delim
5874 CXXFLAGS!$CXXFLAGS$ac_delim
5875 LDFLAGS!$LDFLAGS$ac_delim
5876 CPPFLAGS!$CPPFLAGS$ac_delim
5877 ac_ct_CXX!$ac_ct_CXX$ac_delim
5878 EXEEXT!$EXEEXT$ac_delim
5879 OBJEXT!$OBJEXT$ac_delim
5880 RANLIB!$RANLIB$ac_delim
5883 CFLAGS!$CFLAGS$ac_delim
5884 ac_ct_CC!$ac_ct_CC$ac_delim
5887 EGREP!$EGREP$ac_delim
5888 cppflag!$cppflag$ac_delim
5889 cxxflag!$cxxflag$ac_delim
5890 object_path!$object_path$ac_delim
5892 build!$build$ac_delim
5893 build_cpu!$build_cpu$ac_delim
5894 build_vendor!$build_vendor$ac_delim
5895 build_os!$build_os$ac_delim
5897 host_cpu!$host_cpu$ac_delim
5898 host_vendor!$host_vendor$ac_delim
5899 host_os!$host_os$ac_delim
5900 objects!$objects$ac_delim
5901 LIBOBJS!$LIBOBJS$ac_delim
5902 LTLIBOBJS!$LTLIBOBJS$ac_delim
5905 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
5907 elif $ac_last_try; then
5908 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5909 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5910 { (exit 1); exit 1; }; }
5912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5916 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5917 if test -n "$ac_eof"; then
5918 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5919 ac_eof=`expr $ac_eof + 1`
5922 cat >>$CONFIG_STATUS <<_ACEOF
5923 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5927 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5928 s/^/s,@/; s/!/@,|#_!!_#|/
5931 s/'"$ac_delim"'$/,g/; t
5933 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5934 ' >>$CONFIG_STATUS <conf$$subs.sed
5935 rm -f conf$$subs.sed
5936 cat >>$CONFIG_STATUS <<_ACEOF
5943 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5944 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5945 # trailing colons and then remove the whole line if VPATH becomes empty
5946 # (actually we leave an empty line to preserve line numbers).
5947 if test "x$srcdir" = x.; then
5948 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5952 s/^\([^=]*=[ ]*\):*/\1/
5958 cat >>$CONFIG_STATUS <<\_ACEOF
5959 fi # test -n "$CONFIG_FILES"
5962 for ac_tag in :F $CONFIG_FILES
5965 :[FHLC]) ac_mode=$ac_tag; continue;;
5967 case $ac_mode$ac_tag in
5969 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5970 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5971 { (exit 1); exit 1; }; };;
5972 :[FH]-) ac_tag=-:-;;
5973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5990 -) ac_f="$tmp/stdin";;
5991 *) # Look for the file first in the build tree, then in the source tree
5992 # (if the path is not absolute). The absolute path cannot be DOS-style,
5993 # because $ac_f cannot contain `:'.
5997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5999 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6000 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6001 { (exit 1); exit 1; }; };;
6003 ac_file_inputs="$ac_file_inputs $ac_f"
6006 # Let's still pretend it is `configure' which instantiates (i.e., don't
6007 # use $as_me), people would be surprised to read:
6008 # /* config.h. Generated by config.status. */
6009 configure_input="Generated from "`IFS=:
6010 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6011 if test x"$ac_file" != x-; then
6012 configure_input="$ac_file. $configure_input"
6013 { echo "$as_me:$LINENO: creating $ac_file" >&5
6014 echo "$as_me: creating $ac_file" >&6;}
6018 *:-:* | *:-) cat >"$tmp/stdin";;
6023 ac_dir=`$as_dirname -- "$ac_file" ||
6024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6025 X"$ac_file" : 'X\(//\)[^/]' \| \
6026 X"$ac_file" : 'X\(//\)$' \| \
6027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6048 -*) as_dir=./$as_dir;;
6050 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6054 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6055 *) as_qdir=$as_dir;;
6057 as_dirs="'$as_qdir' $as_dirs"
6058 as_dir=`$as_dirname -- "$as_dir" ||
6059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6060 X"$as_dir" : 'X\(//\)[^/]' \| \
6061 X"$as_dir" : 'X\(//\)$' \| \
6062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6081 test -d "$as_dir" && break
6083 test -z "$as_dirs" || eval "mkdir $as_dirs"
6084 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6085 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6086 { (exit 1); exit 1; }; }; }
6090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6093 # A ".." for each directory in $ac_dir_suffix.
6094 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6095 case $ac_top_builddir_sub in
6096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6100 ac_abs_top_builddir=$ac_pwd
6101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6102 # for backward compatibility:
6103 ac_top_builddir=$ac_top_build_prefix
6106 .) # We are building in place.
6108 ac_top_srcdir=$ac_top_builddir_sub
6109 ac_abs_top_srcdir=$ac_pwd ;;
6110 [\\/]* | ?:[\\/]* ) # Absolute name.
6111 ac_srcdir=$srcdir$ac_dir_suffix;
6112 ac_top_srcdir=$srcdir
6113 ac_abs_top_srcdir=$srcdir ;;
6115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6116 ac_top_srcdir=$ac_top_build_prefix$srcdir
6117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6130 cat >>$CONFIG_STATUS <<\_ACEOF
6131 # If the template does not know about datarootdir, expand it.
6132 # FIXME: This hack should be removed a few years after 2.60.
6133 ac_datarootdir_hack=; ac_datarootdir_seen=
6135 case `sed -n '/datarootdir/ {
6144 ' $ac_file_inputs` in
6145 *datarootdir*) ac_datarootdir_seen=yes;;
6146 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6147 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6148 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6150 cat >>$CONFIG_STATUS <<_ACEOF
6151 ac_datarootdir_hack='
6152 s&@datadir@&$datadir&g
6153 s&@docdir@&$docdir&g
6154 s&@infodir@&$infodir&g
6155 s&@localedir@&$localedir&g
6156 s&@mandir@&$mandir&g
6157 s&\\\${datarootdir}&$datarootdir&g' ;;
6161 # Neutralize VPATH when `$srcdir' = `.'.
6162 # Shell code in configure.ac might set extrasub.
6163 # FIXME: do we really want to maintain this feature?
6164 cat >>$CONFIG_STATUS <<_ACEOF
6168 cat >>$CONFIG_STATUS <<\_ACEOF
6170 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6171 s&@configure_input@&$configure_input&;t t
6172 s&@top_builddir@&$ac_top_builddir_sub&;t t
6173 s&@srcdir@&$ac_srcdir&;t t
6174 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6175 s&@top_srcdir@&$ac_top_srcdir&;t t
6176 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6177 s&@builddir@&$ac_builddir&;t t
6178 s&@abs_builddir@&$ac_abs_builddir&;t t
6179 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6180 $ac_datarootdir_hack
6181 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6183 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6184 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6185 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6186 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6187 which seems to be undefined. Please make sure it is defined." >&5
6188 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6189 which seems to be undefined. Please make sure it is defined." >&2;}
6193 -) cat "$tmp/out"; rm -f "$tmp/out";;
6194 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6205 { (exit 0); exit 0; }
6207 chmod +x $CONFIG_STATUS
6208 ac_clean_files=$ac_clean_files_save
6211 # configure is writing to config.log, and then calls config.status.
6212 # config.status does its own redirection, appending to config.log.
6213 # Unfortunately, on DOS this fails, as config.log is still kept open
6214 # by configure, so config.status won't be able to write to it; its
6215 # output is simply discarded. So we exec the FD to /dev/null,
6216 # effectively closing config.log, so it can be properly (re)opened and
6217 # appended to by config.status. When coming back to configure, we
6218 # need to make the FD available again.
6219 if test "$no_create" != yes; then
6221 ac_config_status_args=
6222 test "$silent" = yes &&
6223 ac_config_status_args="$ac_config_status_args --quiet"
6225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6228 # would make configure fail if this is the last instruction.
6229 $ac_cs_success || { (exit 1); exit 1; }
6233 chmod oug+x rtaudio-config