2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='RtAudio'
598 PACKAGE_TARNAME='rtaudio'
599 PACKAGE_VERSION='4.0'
600 PACKAGE_STRING='RtAudio 4.0'
601 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
603 ac_unique_file="RtAudio.cpp"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
617 # ifdef HAVE_STDLIB_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
640 ac_subst_vars='LTLIBOBJS
701 program_transform_name
713 enable_option_checking
723 ac_precious_vars='build_alias
737 # Initialize some variables set by options.
739 ac_init_version=false
740 ac_unrecognized_opts=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
751 program_transform_name=s,x,x,
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
797 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 # Accept the important Cygnus configure options, so we can diagnose typos.
803 case $ac_dashdash$ac_option in
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812 -build | --build | --buil | --bui | --bu)
813 ac_prev=build_alias ;;
814 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815 build_alias=$ac_optarg ;;
817 -cache-file | --cache-file | --cache-fil | --cache-fi \
818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819 ac_prev=cache_file ;;
820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822 cache_file=$ac_optarg ;;
825 cache_file=config.cache ;;
827 -datadir | --datadir | --datadi | --datad)
829 -datadir=* | --datadir=* | --datadi=* | --datad=*)
830 datadir=$ac_optarg ;;
832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833 | --dataroo | --dataro | --datar)
834 ac_prev=datarootdir ;;
835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837 datarootdir=$ac_optarg ;;
839 -disable-* | --disable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
844 { (exit 1); exit 1; }; }
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
854 eval enable_$ac_useropt=no ;;
856 -docdir | --docdir | --docdi | --doc | --do)
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 -enable-* | --enable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
871 { (exit 1); exit 1; }; }
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
881 eval enable_$ac_useropt=\$ac_optarg ;;
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
896 -help | --help | --hel | --he | -h)
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 htmldir=$ac_optarg ;;
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
926 -libdir | --libdir | --libdi | --libd)
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
938 -localedir | --localedir | --localedi | --localed | --locale)
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956 # Obsolete; use --without-fp.
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1017 -psdir | --psdir | --psdi | --psd | --ps)
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 sbindir=$ac_optarg ;;
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 sharedstatedir=$ac_optarg ;;
1043 -site | --site | --sit)
1045 -site=* | --site=* | --sit=*)
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval with_$ac_useropt=\$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1093 { (exit 1); exit 1; }; }
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1103 eval with_$ac_useropt=no ;;
1106 # Obsolete; use --with-x.
1109 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1110 | --x-incl | --x-inc | --x-in | --x-i)
1111 ac_prev=x_includes ;;
1112 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1113 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1114 x_includes=$ac_optarg ;;
1116 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1117 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1118 ac_prev=x_libraries ;;
1119 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1120 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1121 x_libraries=$ac_optarg ;;
1123 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1124 Try \`$0 --help' for more information." >&2
1125 { (exit 1); exit 1; }; }
1129 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1133 { (exit 1); exit 1; }; }
1134 eval $ac_envvar=\$ac_optarg
1135 export $ac_envvar ;;
1138 # FIXME: should be removed in autoconf 3.0.
1139 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1140 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1141 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1142 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1148 if test -n "$ac_prev"; then
1149 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1150 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1151 { (exit 1); exit 1; }; }
1154 if test -n "$ac_unrecognized_opts"; then
1155 case $enable_option_checking in
1157 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1158 { (exit 1); exit 1; }; } ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 # Check all directory arguments for consistency.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1170 # Remove trailing slashes.
1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\$ac_val;;
1176 # Be sure to have absolute directory names.
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1181 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1182 { (exit 1); exit 1; }; }
1185 # There might be people who depend on the old broken behavior: `$host'
1186 # used to hold the argument of --host etc.
1187 # FIXME: To remove some day.
1190 target=$target_alias
1192 # FIXME: To remove some day.
1193 if test "x$host_alias" != x; then
1194 if test "x$build_alias" = x; then
1195 cross_compiling=maybe
1196 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1197 If a cross compiler is detected then cross compile mode will be used." >&2
1198 elif test "x$build_alias" != "x$host_alias"; then
1204 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206 test "$silent" = yes && exec 6>/dev/null
1209 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210 ac_ls_di=`ls -di .` &&
1211 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1213 { (exit 1); exit 1; }; }
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1216 { (exit 1); exit 1; }; }
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 $as_echo X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1251 ac_srcdir_defaulted=no
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1256 { (exit 1); exit 1; }; }
1258 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1261 { (exit 1); exit 1; }; }
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 # Report the --help message.
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1287 \`configure' configures RtAudio 4.0 to adapt to many kinds of systems.
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1294 Defaults for the options are specified in brackets.
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1318 For better control, use the options below.
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --libdir=DIR object code libraries [EPREFIX/lib]
1328 --includedir=DIR C header files [PREFIX/include]
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1332 --infodir=DIR info documentation [DATAROOTDIR/info]
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1334 --mandir=DIR man documentation [DATAROOTDIR/man]
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/rtaudio]
1336 --htmldir=DIR html documentation [DOCDIR]
1337 --dvidir=DIR dvi documentation [DOCDIR]
1338 --pdfdir=DIR pdf documentation [DOCDIR]
1339 --psdir=DIR ps documentation [DOCDIR]
1345 --build=BUILD configure for building on BUILD [guessed]
1346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350 if test -n "$ac_init_help"; then
1351 case $ac_init_help in
1352 short | recursive ) echo "Configuration of RtAudio 4.0:";;
1357 --disable-option-checking ignore unrecognized --enable/--with options
1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1360 --enable-debug = enable various debug output
1363 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1364 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1365 --with-jack = choose JACK server support (mac and linux only)
1366 --with-alsa = choose native ALSA API support (linux only)
1367 --with-pulse = choose PulseAudio API support (linux only)
1368 --with-oss = choose OSS API support (linux only)
1369 --with-jack = choose JACK server support (unix only)
1370 --with-core = choose CoreAudio API support (mac only)
1371 --with-asio = choose ASIO API support (windoze only)
1372 --with-ds = choose DirectSound API support (windoze only)
1374 Some influential environment variables:
1375 CXX C++ compiler command
1376 CXXFLAGS C++ compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1378 nonstandard directory <lib dir>
1379 LIBS libraries to pass to the linker, e.g. -l<library>
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir>
1382 CC C compiler command
1383 CFLAGS C compiler flags
1386 Use these variables to override the choices made by `configure' or to help
1387 it to find libraries and programs with nonstandard names/locations.
1389 Report bugs to <gary@music.mcgill.ca>.
1394 if test "$ac_init_help" = "recursive"; then
1395 # If there are subdirs, report their specific --help.
1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397 test -d "$ac_dir" ||
1398 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 ac_abs_top_builddir=$ac_pwd
1414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir=$ac_top_build_prefix
1419 .) # We are building in place.
1421 ac_top_srcdir=$ac_top_builddir_sub
1422 ac_abs_top_srcdir=$ac_pwd ;;
1423 [\\/]* | ?:[\\/]* ) # Absolute name.
1424 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir=$srcdir
1426 ac_abs_top_srcdir=$srcdir ;;
1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" || { ac_status=$?; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1443 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 cd "$ac_pwd" || { ac_status=$?; break; }
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1452 RtAudio configure 4.0
1453 generated by GNU Autoconf 2.63
1455 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1462 cat >config.log <<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1466 It was created by RtAudio $as_me 4.0, which was
1467 generated by GNU Autoconf 2.63. Invocation command line was
1479 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 $as_echo "PATH: $as_dir"
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1527 ac_must_keep_next=false
1533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535 | -silent | --silent | --silen | --sile | --sil)
1538 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true; then
1545 ac_must_keep_next=false # Got value, back to normal.
1548 *=* | --config-cache | -C | -disable-* | --disable-* \
1549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1551 | -with-* | --with-* | -without-* | --without-* | --x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 -* ) ac_must_keep_next=true ;;
1559 ac_configure_args="$ac_configure_args '$ac_arg'"
1564 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1565 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1583 # The following way of writing the cache mishandles newlines in values,
1585 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586 eval ac_val=\$$ac_var
1590 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1594 _ | IFS | as_nl) ;; #(
1595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1596 *) $as_unset $ac_var ;;
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 $as_echo "$ac_var='\''$ac_val'\''"
1631 if test -n "$ac_subst_files"; then
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 $as_echo "$ac_var='\''$ac_val'\''"
1649 if test -s confdefs.h; then
1659 test "$ac_signal" != 0 &&
1660 $as_echo "$as_me: caught signal $ac_signal"
1661 $as_echo "$as_me: exit $exit_status"
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer an explicitly selected file to automatically selected ones.
1706 if test -n "$CONFIG_SITE"; then
1707 ac_site_file1=$CONFIG_SITE
1708 elif test "x$prefix" != xNONE; then
1709 ac_site_file1=$prefix/share/config.site
1710 ac_site_file2=$prefix/etc/config.site
1712 ac_site_file1=$ac_default_prefix/share/config.site
1713 ac_site_file2=$ac_default_prefix/etc/config.site
1715 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1717 test "x$ac_site_file" = xNONE && continue
1718 if test -r "$ac_site_file"; then
1719 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1721 sed 's/^/| /' "$ac_site_file" >&5
1726 if test -r "$cache_file"; then
1727 # Some versions of bash will fail to source /dev/null (special
1728 # files actually), so we avoid doing that.
1729 if test -f "$cache_file"; then
1730 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731 $as_echo "$as_me: loading cache $cache_file" >&6;}
1733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734 *) . "./$cache_file";;
1738 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 $as_echo "$as_me: creating cache $cache_file" >&6;}
1743 # Check that the precious variables saved in the cache have kept the same
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1753 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1757 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 # differences in whitespace do not lead to failure.
1764 ac_old_val_w=`echo x $ac_old_val`
1765 ac_new_val_w=`echo x $ac_new_val`
1766 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1767 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1768 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1769 ac_cache_corrupted=:
1771 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1772 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1773 eval $ac_var=\$ac_old_val
1775 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1776 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1777 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1778 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1781 # Pass precious variables to config.status.
1782 if test "$ac_new_set" = set; then
1784 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1785 *) ac_arg=$ac_var=$ac_new_val ;;
1787 case " $ac_configure_args " in
1788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1789 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 if $ac_cache_corrupted; then
1794 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1796 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1797 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1798 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1799 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1800 { (exit 1); exit 1; }; }
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 for ac_dir in config "$srcdir"/config; do
1836 if test -f "$ac_dir/install-sh"; then
1838 ac_install_sh="$ac_aux_dir/install-sh -c"
1840 elif test -f "$ac_dir/install.sh"; then
1842 ac_install_sh="$ac_aux_dir/install.sh -c"
1844 elif test -f "$ac_dir/shtool"; then
1846 ac_install_sh="$ac_aux_dir/shtool install -c"
1850 if test -z "$ac_aux_dir"; then
1851 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1852 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1853 { (exit 1); exit 1; }; }
1856 # These three variables are undocumented and unsupported,
1857 # and are intended to be withdrawn in a future Autoconf release.
1858 # They can cause serious problems if a builder's source tree is in a directory
1859 # whose full name contains unusual characters.
1860 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1861 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1862 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1866 ac_config_files="$ac_config_files rtaudio-config Makefile tests/Makefile"
1869 # Fill GXX with something before test.
1873 # Checks for programs.
1875 ac_cpp='$CXXCPP $CPPFLAGS'
1876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1879 if test -z "$CXX"; then
1880 if test -n "$CCC"; then
1883 if test -n "$ac_tool_prefix"; then
1884 for ac_prog in g++ CC c++ cxx
1886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 $as_echo_n "checking for $ac_word... " >&6; }
1890 if test "${ac_cv_prog_CXX+set}" = set; then
1891 $as_echo_n "(cached) " >&6
1893 if test -n "$CXX"; then
1894 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 if test -n "$CXX"; then
1915 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
1916 $as_echo "$CXX" >&6; }
1918 { $as_echo "$as_me:$LINENO: result: no" >&5
1919 $as_echo "no" >&6; }
1923 test -n "$CXX" && break
1926 if test -z "$CXX"; then
1928 for ac_prog in g++ CC c++ cxx
1930 # Extract the first word of "$ac_prog", so it can be a program name with args.
1931 set dummy $ac_prog; ac_word=$2
1932 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 $as_echo_n "checking for $ac_word... " >&6; }
1934 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1935 $as_echo_n "(cached) " >&6
1937 if test -n "$ac_ct_CXX"; then
1938 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1947 ac_cv_prog_ac_ct_CXX="$ac_prog"
1948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1958 if test -n "$ac_ct_CXX"; then
1959 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1960 $as_echo "$ac_ct_CXX" >&6; }
1962 { $as_echo "$as_me:$LINENO: result: no" >&5
1963 $as_echo "no" >&6; }
1967 test -n "$ac_ct_CXX" && break
1970 if test "x$ac_ct_CXX" = x; then
1973 case $cross_compiling:$ac_tool_warned in
1975 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1977 ac_tool_warned=yes ;;
1985 # Provide some information about the compiler.
1986 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
1989 { (ac_try="$ac_compiler --version >&5"
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1995 $as_echo "$ac_try_echo") >&5
1996 (eval "$ac_compiler --version >&5") 2>&5
1998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }
2000 { (ac_try="$ac_compiler -v >&5"
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2006 $as_echo "$ac_try_echo") >&5
2007 (eval "$ac_compiler -v >&5") 2>&5
2009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }
2011 { (ac_try="$ac_compiler -V >&5"
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2017 $as_echo "$ac_try_echo") >&5
2018 (eval "$ac_compiler -V >&5") 2>&5
2020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }
2023 cat >conftest.$ac_ext <<_ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h. */
2038 ac_clean_files_save=$ac_clean_files
2039 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2040 # Try to create an executable without -o first, disregard a.out.
2041 # It will help us diagnose broken compilers, and finding out an intuition
2043 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2044 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2045 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2047 # The possible output files:
2048 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2051 for ac_file in $ac_files
2054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2055 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2060 if { (ac_try="$ac_link_default"
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2066 $as_echo "$ac_try_echo") >&5
2067 (eval "$ac_link_default") 2>&5
2069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; then
2071 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2072 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2073 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2074 # so that the user can short-circuit this test for compilers unknown to
2076 for ac_file in $ac_files ''
2078 test -f "$ac_file" || continue
2080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2083 # We found the default executable, but exeext='' is most
2087 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2089 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091 # We set ac_cv_exeext here because the later test for it is not
2092 # safe: cross compilers may not add the suffix if given an `-o'
2093 # argument, so we may need to know it at that point already.
2094 # Even if this section looks crufty: it has the advantage of
2101 test "$ac_cv_exeext" = no && ac_cv_exeext=
2107 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2108 $as_echo "$ac_file" >&6; }
2109 if test -z "$ac_file"; then
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2113 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2116 See \`config.log' for more details." >&5
2117 $as_echo "$as_me: error: C++ compiler cannot create executables
2118 See \`config.log' for more details." >&2;}
2119 { (exit 77); exit 77; }; }; }
2122 ac_exeext=$ac_cv_exeext
2124 # Check that the compiler produces executables we can run. If not, either
2125 # the compiler is broken, or we cross compile.
2126 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2127 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2128 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2129 # If not cross compiling, check that we can run a simple program.
2130 if test "$cross_compiling" != yes; then
2131 if { ac_try='./$ac_file'
2132 { (case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2137 $as_echo "$ac_try_echo") >&5
2138 (eval "$ac_try") 2>&5
2140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2144 if test "$cross_compiling" = maybe; then
2147 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2149 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2150 If you meant to cross compile, use \`--host'.
2151 See \`config.log' for more details." >&5
2152 $as_echo "$as_me: error: cannot run C++ compiled programs.
2153 If you meant to cross compile, use \`--host'.
2154 See \`config.log' for more details." >&2;}
2155 { (exit 1); exit 1; }; }; }
2159 { $as_echo "$as_me:$LINENO: result: yes" >&5
2160 $as_echo "yes" >&6; }
2162 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2163 ac_clean_files=$ac_clean_files_save
2164 # Check that the compiler produces executables we can run. If not, either
2165 # the compiler is broken, or we cross compile.
2166 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2167 $as_echo_n "checking whether we are cross compiling... " >&6; }
2168 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2169 $as_echo "$cross_compiling" >&6; }
2171 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2172 $as_echo_n "checking for suffix of executables... " >&6; }
2173 if { (ac_try="$ac_link"
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2179 $as_echo "$ac_try_echo") >&5
2180 (eval "$ac_link") 2>&5
2182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; then
2184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2185 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2186 # work properly (i.e., refer to `conftest.exe'), while it won't with
2188 for ac_file in conftest.exe conftest conftest.*; do
2189 test -f "$ac_file" || continue
2191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2201 See \`config.log' for more details." >&5
2202 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2203 See \`config.log' for more details." >&2;}
2204 { (exit 1); exit 1; }; }; }
2207 rm -f conftest$ac_cv_exeext
2208 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2209 $as_echo "$ac_cv_exeext" >&6; }
2211 rm -f conftest.$ac_ext
2212 EXEEXT=$ac_cv_exeext
2214 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2215 $as_echo_n "checking for suffix of object files... " >&6; }
2216 if test "${ac_cv_objext+set}" = set; then
2217 $as_echo_n "(cached) " >&6
2219 cat >conftest.$ac_ext <<_ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2234 rm -f conftest.o conftest.obj
2235 if { (ac_try="$ac_compile"
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2241 $as_echo "$ac_try_echo") >&5
2242 (eval "$ac_compile") 2>&5
2244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; then
2246 for ac_file in conftest.o conftest.obj conftest.*; do
2247 test -f "$ac_file" || continue;
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2255 $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2258 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2261 See \`config.log' for more details." >&5
2262 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }; }
2267 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2269 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2270 $as_echo "$ac_cv_objext" >&6; }
2271 OBJEXT=$ac_cv_objext
2273 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2274 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2275 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2276 $as_echo_n "(cached) " >&6
2278 cat >conftest.$ac_ext <<_ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2296 rm -f conftest.$ac_objext
2297 if { (ac_try="$ac_compile"
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2303 $as_echo "$ac_try_echo") >&5
2304 (eval "$ac_compile") 2>conftest.er1
2306 grep -v '^ *+' conftest.er1 >conftest.err
2308 cat conftest.err >&5
2309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } && {
2311 test -z "$ac_cxx_werror_flag" ||
2312 test ! -s conftest.err
2313 } && test -s conftest.$ac_objext; then
2316 $as_echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2326 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2328 if test $ac_compiler_gnu = yes; then
2333 ac_test_CXXFLAGS=${CXXFLAGS+set}
2334 ac_save_CXXFLAGS=$CXXFLAGS
2335 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2337 if test "${ac_cv_prog_cxx_g+set}" = set; then
2338 $as_echo_n "(cached) " >&6
2340 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2341 ac_cxx_werror_flag=yes
2344 cat >conftest.$ac_ext <<_ACEOF
2347 cat confdefs.h >>conftest.$ac_ext
2348 cat >>conftest.$ac_ext <<_ACEOF
2349 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (ac_try="$ac_compile"
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2366 $as_echo "$ac_try_echo") >&5
2367 (eval "$ac_compile") 2>conftest.er1
2369 grep -v '^ *+' conftest.er1 >conftest.err
2371 cat conftest.err >&5
2372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } && {
2374 test -z "$ac_cxx_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest.$ac_objext; then
2377 ac_cv_prog_cxx_g=yes
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2383 cat >conftest.$ac_ext <<_ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2398 rm -f conftest.$ac_objext
2399 if { (ac_try="$ac_compile"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2405 $as_echo "$ac_try_echo") >&5
2406 (eval "$ac_compile") 2>conftest.er1
2408 grep -v '^ *+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } && {
2413 test -z "$ac_cxx_werror_flag" ||
2414 test ! -s conftest.err
2415 } && test -s conftest.$ac_objext; then
2418 $as_echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 rm -f conftest.$ac_objext
2439 if { (ac_try="$ac_compile"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2445 $as_echo "$ac_try_echo") >&5
2446 (eval "$ac_compile") 2>conftest.er1
2448 grep -v '^ *+' conftest.er1 >conftest.err
2450 cat conftest.err >&5
2451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } && {
2453 test -z "$ac_cxx_werror_flag" ||
2454 test ! -s conftest.err
2455 } && test -s conftest.$ac_objext; then
2456 ac_cv_prog_cxx_g=yes
2458 $as_echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2473 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2474 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2475 if test "$ac_test_CXXFLAGS" = set; then
2476 CXXFLAGS=$ac_save_CXXFLAGS
2477 elif test $ac_cv_prog_cxx_g = yes; then
2478 if test "$GXX" = yes; then
2484 if test "$GXX" = yes; then
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if test "${ac_cv_prog_RANLIB+set}" = set; then
2502 $as_echo_n "(cached) " >&6
2504 if test -n "$RANLIB"; then
2505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 RANLIB=$ac_cv_prog_RANLIB
2525 if test -n "$RANLIB"; then
2526 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
2527 $as_echo "$RANLIB" >&6; }
2529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530 $as_echo "no" >&6; }
2535 if test -z "$ac_cv_prog_RANLIB"; then
2536 ac_ct_RANLIB=$RANLIB
2537 # Extract the first word of "ranlib", so it can be a program name with args.
2538 set dummy ranlib; ac_word=$2
2539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2542 $as_echo_n "(cached) " >&6
2544 if test -n "$ac_ct_RANLIB"; then
2545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_ac_ct_RANLIB="ranlib"
2555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2565 if test -n "$ac_ct_RANLIB"; then
2566 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2567 $as_echo "$ac_ct_RANLIB" >&6; }
2569 { $as_echo "$as_me:$LINENO: result: no" >&5
2570 $as_echo "no" >&6; }
2573 if test "x$ac_ct_RANLIB" = x; then
2576 case $cross_compiling:$ac_tool_warned in
2578 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2580 ac_tool_warned=yes ;;
2582 RANLIB=$ac_ct_RANLIB
2585 RANLIB="$ac_cv_prog_RANLIB"
2588 # Extract the first word of "ar", so it can be a program name with args.
2589 set dummy ar; ac_word=$2
2590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 $as_echo_n "checking for $ac_word... " >&6; }
2592 if test "${ac_cv_path_AR+set}" = set; then
2593 $as_echo_n "(cached) " >&6
2597 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 test -z "$as_dir" && as_dir=.
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
2620 if test -n "$AR"; then
2621 { $as_echo "$as_me:$LINENO: result: $AR" >&5
2622 $as_echo "$AR" >&6; }
2624 { $as_echo "$as_me:$LINENO: result: no" >&5
2625 $as_echo "no" >&6; }
2629 if [ $AR = "no" ] ; then
2630 { { $as_echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
2631 $as_echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
2632 { (exit 1); exit 1; }; };
2635 # Checks for header files.
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641 if test -n "$ac_tool_prefix"; then
2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2643 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_CC+set}" = set; then
2647 $as_echo_n "(cached) " >&6
2649 if test -n "$CC"; then
2650 ac_cv_prog_CC="$CC" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 if test -n "$CC"; then
2671 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2672 $as_echo "$CC" >&6; }
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2680 if test -z "$ac_cv_prog_CC"; then
2682 # Extract the first word of "gcc", so it can be a program name with args.
2683 set dummy gcc; ac_word=$2
2684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687 $as_echo_n "(cached) " >&6
2689 if test -n "$ac_ct_CC"; then
2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_ac_ct_CC="gcc"
2700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2710 if test -n "$ac_ct_CC"; then
2711 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2712 $as_echo "$ac_ct_CC" >&6; }
2714 { $as_echo "$as_me:$LINENO: result: no" >&5
2715 $as_echo "no" >&6; }
2718 if test "x$ac_ct_CC" = x; then
2721 case $cross_compiling:$ac_tool_warned in
2723 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725 ac_tool_warned=yes ;;
2733 if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2736 set dummy ${ac_tool_prefix}cc; ac_word=$2
2737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_CC+set}" = set; then
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$CC"; then
2743 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752 ac_cv_prog_CC="${ac_tool_prefix}cc"
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 if test -n "$CC"; then
2764 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2765 $as_echo "$CC" >&6; }
2767 { $as_echo "$as_me:$LINENO: result: no" >&5
2768 $as_echo "no" >&6; }
2774 if test -z "$CC"; then
2775 # Extract the first word of "cc", so it can be a program name with args.
2776 set dummy cc; ac_word=$2
2777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 $as_echo_n "(cached) " >&6
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2794 ac_prog_rejected=yes
2798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 if test $ac_prog_rejected = yes; then
2806 # We found a bogon in the path, so make sure we never use it.
2807 set dummy $ac_cv_prog_CC
2809 if test $# != 0; then
2810 # We chose a different compiler from the bogus one.
2811 # However, it has the same basename, so the bogon will be chosen
2812 # first if we set CC to just the basename; use the full file name.
2814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2824 { $as_echo "$as_me:$LINENO: result: no" >&5
2825 $as_echo "no" >&6; }
2830 if test -z "$CC"; then
2831 if test -n "$ac_tool_prefix"; then
2832 for ac_prog in cl.exe
2834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_CC+set}" = set; then
2839 $as_echo_n "(cached) " >&6
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 if test -n "$CC"; then
2863 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2866 { $as_echo "$as_me:$LINENO: result: no" >&5
2867 $as_echo "no" >&6; }
2871 test -n "$CC" && break
2874 if test -z "$CC"; then
2876 for ac_prog in cl.exe
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy $ac_prog; ac_word=$2
2880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC="$ac_prog"
2896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2910 { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2915 test -n "$ac_ct_CC" && break
2918 if test "x$ac_ct_CC" = x; then
2921 case $cross_compiling:$ac_tool_warned in
2923 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925 ac_tool_warned=yes ;;
2934 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2937 See \`config.log' for more details." >&5
2938 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }; }
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2946 { (ac_try="$ac_compiler --version >&5"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952 $as_echo "$ac_try_echo") >&5
2953 (eval "$ac_compiler --version >&5") 2>&5
2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957 { (ac_try="$ac_compiler -v >&5"
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964 (eval "$ac_compiler -v >&5") 2>&5
2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2968 { (ac_try="$ac_compiler -V >&5"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974 $as_echo "$ac_try_echo") >&5
2975 (eval "$ac_compiler -V >&5") 2>&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }
2980 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2981 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2982 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2983 $as_echo_n "(cached) " >&6
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3010 $as_echo "$ac_try_echo") >&5
3011 (eval "$ac_compile") 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } && {
3018 test -z "$ac_c_werror_flag" ||
3019 test ! -s conftest.err
3020 } && test -s conftest.$ac_objext; then
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3033 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3035 if test $ac_compiler_gnu = yes; then
3040 ac_test_CFLAGS=${CFLAGS+set}
3041 ac_save_CFLAGS=$CFLAGS
3042 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3044 if test "${ac_cv_prog_cc_g+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3047 ac_save_c_werror_flag=$ac_c_werror_flag
3048 ac_c_werror_flag=yes
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3073 $as_echo "$ac_try_echo") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } && {
3081 test -z "$ac_c_werror_flag" ||
3082 test ! -s conftest.err
3083 } && test -s conftest.$ac_objext; then
3086 $as_echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3090 cat >conftest.$ac_ext <<_ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3105 rm -f conftest.$ac_objext
3106 if { (ac_try="$ac_compile"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3112 $as_echo "$ac_try_echo") >&5
3113 (eval "$ac_compile") 2>conftest.er1
3115 grep -v '^ *+' conftest.er1 >conftest.err
3117 cat conftest.err >&5
3118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } && {
3120 test -z "$ac_c_werror_flag" ||
3121 test ! -s conftest.err
3122 } && test -s conftest.$ac_objext; then
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 ac_c_werror_flag=$ac_save_c_werror_flag
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152 $as_echo "$ac_try_echo") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.$ac_objext; then
3165 $as_echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_c_werror_flag=$ac_save_c_werror_flag
3180 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3181 $as_echo "$ac_cv_prog_cc_g" >&6; }
3182 if test "$ac_test_CFLAGS" = set; then
3183 CFLAGS=$ac_save_CFLAGS
3184 elif test $ac_cv_prog_cc_g = yes; then
3185 if test "$GCC" = yes; then
3191 if test "$GCC" = yes; then
3197 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3199 if test "${ac_cv_prog_cc_c89+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3202 ac_cv_prog_cc_c89=no
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3212 #include <sys/types.h>
3213 #include <sys/stat.h>
3214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3215 struct buf { int x; };
3216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3217 static char *e (p, i)
3223 static char *f (char * (*g) (char **, int), char **p, ...)
3228 s = g (p, va_arg (v,int));
3233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3234 function prototypes and stuff, but not '\xHH' hex character constants.
3235 These don't provoke an error unfortunately, instead are silently treated
3236 as 'x'. The following induces an error, until -std is added to get
3237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3238 array size at least. It's necessary to write '\x00'==0 to get something
3239 that's true only with -std. */
3240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3243 inside strings and character constants. */
3245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3247 int test (int i, double x);
3248 struct s1 {int (*f) (int a);};
3249 struct s2 {int (*f) (double a);};
3250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3264 CC="$ac_save_CC $ac_arg"
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272 $as_echo "$ac_try_echo") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3283 ac_cv_prog_cc_c89=$ac_arg
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3291 rm -f core conftest.err conftest.$ac_objext
3292 test "x$ac_cv_prog_cc_c89" != "xno" && break
3294 rm -f conftest.$ac_ext
3299 case "x$ac_cv_prog_cc_c89" in
3301 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3302 $as_echo "none needed" >&6; } ;;
3304 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3305 $as_echo "unsupported" >&6; } ;;
3307 CC="$CC $ac_cv_prog_cc_c89"
3308 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3326 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3327 # On Suns, sometimes $CPP names a directory.
3328 if test -n "$CPP" && test -d "$CPP"; then
3331 if test -z "$CPP"; then
3332 if test "${ac_cv_prog_CPP+set}" = set; then
3333 $as_echo_n "(cached) " >&6
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3339 for ac_c_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3354 # include <limits.h>
3356 # include <assert.h>
3360 if { (ac_try="$ac_cpp conftest.$ac_ext"
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3404 $as_echo "$ac_try_echo") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 grep -v '^ *+' conftest.er1 >conftest.err
3409 cat conftest.err >&5
3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null && {
3412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3415 # Broken: success on invalid input.
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 # Passes both tests.
3426 rm -f conftest.err conftest.$ac_ext
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3443 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3444 $as_echo "$CPP" >&6; }
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3461 # include <limits.h>
3463 # include <assert.h>
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3473 $as_echo "$ac_try_echo") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3476 grep -v '^ *+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3486 $as_echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Broken: fails on valid input.
3493 rm -f conftest.err conftest.$ac_ext
3495 # OK, works on sane cases. Now check whether nonexistent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511 $as_echo "$ac_try_echo") >&5
3512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3514 grep -v '^ *+' conftest.er1 >conftest.err
3516 cat conftest.err >&5
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } >/dev/null && {
3519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3522 # Broken: success on invalid input.
3525 $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3528 # Passes both tests.
3533 rm -f conftest.err conftest.$ac_ext
3536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537 rm -f conftest.err conftest.$ac_ext
3538 if $ac_preproc_ok; then
3541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3544 See \`config.log' for more details." >&5
3545 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }; }
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3558 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3559 if test "${ac_cv_path_GREP+set}" = set; then
3560 $as_echo_n "(cached) " >&6
3562 if test -z "$GREP"; then
3563 ac_path_GREP_found=false
3564 # Loop through the user's path and test for each of PROGNAME-LIST
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3569 test -z "$as_dir" && as_dir=.
3570 for ac_prog in grep ggrep; do
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3573 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3574 # Check for GNU ac_path_GREP and select it if it is found.
3575 # Check for GNU $ac_path_GREP
3576 case `"$ac_path_GREP" --version 2>&1` in
3578 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3581 $as_echo_n 0123456789 >"conftest.in"
3584 cat "conftest.in" "conftest.in" >"conftest.tmp"
3585 mv "conftest.tmp" "conftest.in"
3586 cp "conftest.in" "conftest.nl"
3587 $as_echo 'GREP' >> "conftest.nl"
3588 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3590 ac_count=`expr $ac_count + 1`
3591 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3592 # Best one so far, save it but keep looking for a better one
3593 ac_cv_path_GREP="$ac_path_GREP"
3594 ac_path_GREP_max=$ac_count
3596 # 10*(2^10) chars as input seems more than enough
3597 test $ac_count -gt 10 && break
3599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3602 $ac_path_GREP_found && break 3
3607 if test -z "$ac_cv_path_GREP"; then
3608 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3609 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3610 { (exit 1); exit 1; }; }
3613 ac_cv_path_GREP=$GREP
3617 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3618 $as_echo "$ac_cv_path_GREP" >&6; }
3619 GREP="$ac_cv_path_GREP"
3622 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3623 $as_echo_n "checking for egrep... " >&6; }
3624 if test "${ac_cv_path_EGREP+set}" = set; then
3625 $as_echo_n "(cached) " >&6
3627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3628 then ac_cv_path_EGREP="$GREP -E"
3630 if test -z "$EGREP"; then
3631 ac_path_EGREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637 test -z "$as_dir" && as_dir=.
3638 for ac_prog in egrep; do
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3641 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3642 # Check for GNU ac_path_EGREP and select it if it is found.
3643 # Check for GNU $ac_path_EGREP
3644 case `"$ac_path_EGREP" --version 2>&1` in
3646 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3649 $as_echo_n 0123456789 >"conftest.in"
3652 cat "conftest.in" "conftest.in" >"conftest.tmp"
3653 mv "conftest.tmp" "conftest.in"
3654 cp "conftest.in" "conftest.nl"
3655 $as_echo 'EGREP' >> "conftest.nl"
3656 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658 ac_count=`expr $ac_count + 1`
3659 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3660 # Best one so far, save it but keep looking for a better one
3661 ac_cv_path_EGREP="$ac_path_EGREP"
3662 ac_path_EGREP_max=$ac_count
3664 # 10*(2^10) chars as input seems more than enough
3665 test $ac_count -gt 10 && break
3667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3670 $ac_path_EGREP_found && break 3
3675 if test -z "$ac_cv_path_EGREP"; then
3676 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3677 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3678 { (exit 1); exit 1; }; }
3681 ac_cv_path_EGREP=$EGREP
3686 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3687 $as_echo "$ac_cv_path_EGREP" >&6; }
3688 EGREP="$ac_cv_path_EGREP"
3691 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3692 $as_echo_n "checking for ANSI C header files... " >&6; }
3693 if test "${ac_cv_header_stdc+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3696 cat >conftest.$ac_ext <<_ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3715 rm -f conftest.$ac_objext
3716 if { (ac_try="$ac_compile"
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3722 $as_echo "$ac_try_echo") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && {
3730 test -z "$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3732 } && test -s conftest.$ac_objext; then
3733 ac_cv_header_stdc=yes
3735 $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 ac_cv_header_stdc=no
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 if test $ac_cv_header_stdc = yes; then
3744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3745 cat >conftest.$ac_ext <<_ACEOF
3748 cat confdefs.h >>conftest.$ac_ext
3749 cat >>conftest.$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 $EGREP "memchr" >/dev/null 2>&1; then
3758 ac_cv_header_stdc=no
3764 if test $ac_cv_header_stdc = yes; then
3765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "free" >/dev/null 2>&1; then
3779 ac_cv_header_stdc=no
3785 if test $ac_cv_header_stdc = yes; then
3786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3787 if test "$cross_compiling" = yes; then
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3798 #if ((' ' & 0x0FF) == 0x020)
3799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3802 # define ISLOWER(c) \
3803 (('a' <= (c) && (c) <= 'i') \
3804 || ('j' <= (c) && (c) <= 'r') \
3805 || ('s' <= (c) && (c) <= 'z'))
3806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3814 for (i = 0; i < 256; i++)
3815 if (XOR (islower (i), ISLOWER (i))
3816 || toupper (i) != TOUPPER (i))
3821 rm -f conftest$ac_exeext
3822 if { (ac_try="$ac_link"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3828 $as_echo "$ac_try_echo") >&5
3829 (eval "$ac_link") 2>&5
3831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3833 { (case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3838 $as_echo "$ac_try_echo") >&5
3839 (eval "$ac_try") 2>&5
3841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3845 $as_echo "$as_me: program exited with status $ac_status" >&5
3846 $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_header_stdc=no
3852 rm -rf conftest.dSYM
3853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3859 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3860 $as_echo "$ac_cv_header_stdc" >&6; }
3861 if test $ac_cv_header_stdc = yes; then
3863 cat >>confdefs.h <<\_ACEOF
3864 #define STDC_HEADERS 1
3869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3880 inttypes.h stdint.h unistd.h
3882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3884 $as_echo_n "checking for $ac_header... " >&6; }
3885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3886 $as_echo_n "(cached) " >&6
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 $ac_includes_default
3896 #include <$ac_header>
3898 rm -f conftest.$ac_objext
3899 if { (ac_try="$ac_compile"
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3905 $as_echo "$ac_try_echo") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3916 eval "$as_ac_Header=yes"
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 eval "$as_ac_Header=no"
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_res=`eval 'as_val=${'$as_ac_Header'}
3927 $as_echo "$as_val"'`
3928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3929 $as_echo "$ac_res" >&6; }
3930 as_val=`eval 'as_val=${'$as_ac_Header'}
3931 $as_echo "$as_val"'`
3932 if test "x$as_val" = x""yes; then
3933 cat >>confdefs.h <<_ACEOF
3934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3944 for ac_header in sys/ioctl.h unistd.h
3946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3949 $as_echo_n "checking for $ac_header... " >&6; }
3950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3951 $as_echo_n "(cached) " >&6
3953 ac_res=`eval 'as_val=${'$as_ac_Header'}
3954 $as_echo "$as_val"'`
3955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3956 $as_echo "$ac_res" >&6; }
3958 # Is the header compilable?
3959 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
3960 $as_echo_n "checking $ac_header usability... " >&6; }
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967 $ac_includes_default
3968 #include <$ac_header>
3970 rm -f conftest.$ac_objext
3971 if { (ac_try="$ac_compile"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977 $as_echo "$ac_try_echo") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 ac_header_compiler=yes
3990 $as_echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 ac_header_compiler=no
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3998 $as_echo "$ac_header_compiler" >&6; }
4000 # Is the header present?
4001 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4002 $as_echo_n "checking $ac_header presence... " >&6; }
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <$ac_header>
4011 if { (ac_try="$ac_cpp conftest.$ac_ext"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017 $as_echo "$ac_try_echo") >&5
4018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } >/dev/null && {
4025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4028 ac_header_preproc=yes
4030 $as_echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 ac_header_preproc=no
4036 rm -f conftest.err conftest.$ac_ext
4037 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4038 $as_echo "$ac_header_preproc" >&6; }
4040 # So? What about this header?
4041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4044 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4046 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4047 ac_header_preproc=yes
4050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4051 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4053 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4055 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4057 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4061 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4063 ## ----------------------------------- ##
4064 ## Report this to gary@music.mcgill.ca ##
4065 ## ----------------------------------- ##
4067 ) | sed "s/^/$as_me: WARNING: /" >&2
4070 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4071 $as_echo_n "checking for $ac_header... " >&6; }
4072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4073 $as_echo_n "(cached) " >&6
4075 eval "$as_ac_Header=\$ac_header_preproc"
4077 ac_res=`eval 'as_val=${'$as_ac_Header'}
4078 $as_echo "$as_val"'`
4079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4080 $as_echo "$ac_res" >&6; }
4083 as_val=`eval 'as_val=${'$as_ac_Header'}
4084 $as_echo "$as_val"'`
4085 if test "x$as_val" = x""yes; then
4086 cat >>confdefs.h <<_ACEOF
4087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4096 { $as_echo "$as_me:$LINENO: checking whether to compile debug version" >&5
4097 $as_echo_n "checking whether to compile debug version... " >&6; }
4098 # Check whether --enable-debug was given.
4099 if test "${enable_debug+set}" = set; then
4100 enableval=$enable_debug; cppflag=-D__RTAUDIO_DEBUG__
4103 { $as_echo "$as_me:$LINENO: result: yes" >&5
4104 $as_echo "yes" >&6; }
4109 { $as_echo "$as_me:$LINENO: result: no" >&5
4110 $as_echo "no" >&6; }
4115 # Checks for functions
4116 { $as_echo "$as_me:$LINENO: checking for gettimeofday" >&5
4117 $as_echo_n "checking for gettimeofday... " >&6; }
4118 if test "${ac_cv_func_gettimeofday+set}" = set; then
4119 $as_echo_n "(cached) " >&6
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
4128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4129 #define gettimeofday innocuous_gettimeofday
4131 /* System header to define __stub macros and hopefully few prototypes,
4132 which can conflict with char gettimeofday (); below.
4133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 <limits.h> exists even on freestanding compilers. */
4137 # include <limits.h>
4139 # include <assert.h>
4144 /* Override any GCC internal prototype to avoid an error.
4145 Use char because int might match the return type of a GCC
4146 builtin and then its argument prototype would still apply. */
4150 char gettimeofday ();
4151 /* The GNU C library defines this for functions which it implements
4152 to always fail with ENOSYS. Some functions are actually named
4153 something starting with __ and the normal name is an alias. */
4154 #if defined __stub_gettimeofday || defined __stub___gettimeofday
4161 return gettimeofday ();
4166 rm -f conftest.$ac_objext conftest$ac_exeext
4167 if { (ac_try="$ac_link"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174 (eval "$ac_link") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest$ac_exeext && {
4184 test "$cross_compiling" = yes ||
4185 $as_test_x conftest$ac_exeext
4187 ac_cv_func_gettimeofday=yes
4189 $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 ac_cv_func_gettimeofday=no
4195 rm -rf conftest.dSYM
4196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4197 conftest$ac_exeext conftest.$ac_ext
4199 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
4200 $as_echo "$ac_cv_func_gettimeofday" >&6; }
4201 if test "x$ac_cv_func_gettimeofday" = x""yes; then
4202 cppflag="$cppflag -DHAVE_GETTIMEOFDAY"
4206 # For -I and -D flags
4207 CPPFLAGS="$CPPFLAGS $cppflag"
4209 # For debugging and optimization ... overwrite default because it has both -g and -O2
4210 #CXXFLAGS="$CXXFLAGS $cxxflag"
4213 # Check compiler and use -Wall if gnu.
4214 if test $GXX = "yes" ; then
4219 CXXFLAGS="$CXXFLAGS $cxxflag"
4221 # Make sure we can run config.sub.
4222 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4223 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4224 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4225 { (exit 1); exit 1; }; }
4227 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4228 $as_echo_n "checking build system type... " >&6; }
4229 if test "${ac_cv_build+set}" = set; then
4230 $as_echo_n "(cached) " >&6
4232 ac_build_alias=$build_alias
4233 test "x$ac_build_alias" = x &&
4234 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4235 test "x$ac_build_alias" = x &&
4236 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4237 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4238 { (exit 1); exit 1; }; }
4239 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4240 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4241 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4242 { (exit 1); exit 1; }; }
4245 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4246 $as_echo "$ac_cv_build" >&6; }
4247 case $ac_cv_build in
4249 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4250 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4251 { (exit 1); exit 1; }; };;
4254 ac_save_IFS=$IFS; IFS='-'
4260 # Remember, the first character of IFS is used to create $*,
4261 # except with old shells:
4264 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4267 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4268 $as_echo_n "checking host system type... " >&6; }
4269 if test "${ac_cv_host+set}" = set; then
4270 $as_echo_n "(cached) " >&6
4272 if test "x$host_alias" = x; then
4273 ac_cv_host=$ac_cv_build
4275 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4276 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4277 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4278 { (exit 1); exit 1; }; }
4282 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4283 $as_echo "$ac_cv_host" >&6; }
4286 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4287 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4288 { (exit 1); exit 1; }; };;
4291 ac_save_IFS=$IFS; IFS='-'
4297 # Remember, the first character of IFS is used to create $*,
4298 # except with old shells:
4301 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4305 sharedlib="librtaudio.so"
4307 sharedname="librtaudio.so.\$(RELEASE)"
4309 libflags="-shared -Wl,-soname,\$(SHARED).\$(MAJOR) -o \$(SHARED).\$(RELEASE)"
4313 sharedlib="librtaudio.dylib"
4315 sharedname="librtaudio.\$(RELEASE).dylib"
4317 libflags="-dynamiclib -o librtaudio.\$(RELEASE).dylib"
4321 # Checks for package options and external software
4324 { $as_echo "$as_me:$LINENO: checking for audio API" >&5
4325 $as_echo_n "checking for audio API... " >&6; }
4328 { $as_echo "$as_me:$LINENO: result: using OSS" >&5
4329 $as_echo "using OSS" >&6; }
4330 api="$api -D__LINUX_OSS__"
4331 LIBS="$LIBS -lossaudio"
4333 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4334 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4335 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4336 $as_echo_n "(cached) " >&6
4338 ac_check_lib_save_LIBS=$LIBS
4339 LIBS="-lpthread $LIBS"
4340 cat >conftest.$ac_ext <<_ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4347 /* Override any GCC internal prototype to avoid an error.
4348 Use char because int might match the return type of a GCC
4349 builtin and then its argument prototype would still apply. */
4353 char pthread_create ();
4357 return pthread_create ();
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (ac_try="$ac_link"
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4369 $as_echo "$ac_try_echo") >&5
4370 (eval "$ac_link") 2>conftest.er1
4372 grep -v '^ *+' conftest.er1 >conftest.err
4374 cat conftest.err >&5
4375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && {
4377 test -z "$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4379 } && test -s conftest$ac_exeext && {
4380 test "$cross_compiling" = yes ||
4381 $as_test_x conftest$ac_exeext
4383 ac_cv_lib_pthread_pthread_create=yes
4385 $as_echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_cv_lib_pthread_pthread_create=no
4391 rm -rf conftest.dSYM
4392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4393 conftest$ac_exeext conftest.$ac_ext
4394 LIBS=$ac_check_lib_save_LIBS
4396 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4397 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4398 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
4399 cat >>confdefs.h <<_ACEOF
4400 #define HAVE_LIBPTHREAD 1
4403 LIBS="-lpthread $LIBS"
4406 { { $as_echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4407 $as_echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4408 { (exit 1); exit 1; }; }
4415 # Check whether --with-jack was given.
4416 if test "${with_jack+set}" = set; then
4418 api="$api -D__UNIX_JACK__"
4419 { $as_echo "$as_me:$LINENO: result: using JACK" >&5
4420 $as_echo "using JACK" >&6; }
4422 { $as_echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
4423 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
4424 if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4427 ac_check_lib_save_LIBS=$LIBS
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4436 /* Override any GCC internal prototype to avoid an error.
4437 Use char because int might match the return type of a GCC
4438 builtin and then its argument prototype would still apply. */
4442 char jack_client_open ();
4446 return jack_client_open ();
4451 rm -f conftest.$ac_objext conftest$ac_exeext
4452 if { (ac_try="$ac_link"
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_link") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest$ac_exeext && {
4469 test "$cross_compiling" = yes ||
4470 $as_test_x conftest$ac_exeext
4472 ac_cv_lib_jack_jack_client_open=yes
4474 $as_echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_cv_lib_jack_jack_client_open=no
4480 rm -rf conftest.dSYM
4481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4482 conftest$ac_exeext conftest.$ac_ext
4483 LIBS=$ac_check_lib_save_LIBS
4485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
4486 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
4487 if test "x$ac_cv_lib_jack_jack_client_open" = x""yes; then
4488 cat >>confdefs.h <<_ACEOF
4489 #define HAVE_LIBJACK 1
4495 { { $as_echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4496 $as_echo "$as_me: error: JACK support requires the jack library!" >&2;}
4497 { (exit 1); exit 1; }; }
4501 { $as_echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4502 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
4503 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4504 $as_echo_n "(cached) " >&6
4506 ac_check_lib_save_LIBS=$LIBS
4507 LIBS="-lasound $LIBS"
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4515 /* Override any GCC internal prototype to avoid an error.
4516 Use char because int might match the return type of a GCC
4517 builtin and then its argument prototype would still apply. */
4521 char snd_pcm_open ();
4525 return snd_pcm_open ();
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (ac_try="$ac_link"
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4537 $as_echo "$ac_try_echo") >&5
4538 (eval "$ac_link") 2>conftest.er1
4540 grep -v '^ *+' conftest.er1 >conftest.err
4542 cat conftest.err >&5
4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } && {
4545 test -z "$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4547 } && test -s conftest$ac_exeext && {
4548 test "$cross_compiling" = yes ||
4549 $as_test_x conftest$ac_exeext
4551 ac_cv_lib_asound_snd_pcm_open=yes
4553 $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 ac_cv_lib_asound_snd_pcm_open=no
4559 rm -rf conftest.dSYM
4560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4561 conftest$ac_exeext conftest.$ac_ext
4562 LIBS=$ac_check_lib_save_LIBS
4564 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4565 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
4566 if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then
4567 cat >>confdefs.h <<_ACEOF
4568 #define HAVE_LIBASOUND 1
4571 LIBS="-lasound $LIBS"
4574 { { $as_echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
4575 $as_echo "$as_me: error: Jack support also requires the asound library!" >&2;}
4576 { (exit 1); exit 1; }; }
4582 # Look for ALSA flag
4584 # Check whether --with-alsa was given.
4585 if test "${with_alsa+set}" = set; then
4587 api="$api -D__LINUX_ALSA__"
4588 { $as_echo "$as_me:$LINENO: result: using ALSA" >&5
4589 $as_echo "using ALSA" >&6; }
4591 { $as_echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4592 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
4593 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4594 $as_echo_n "(cached) " >&6
4596 ac_check_lib_save_LIBS=$LIBS
4597 LIBS="-lasound $LIBS"
4598 cat >conftest.$ac_ext <<_ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4605 /* Override any GCC internal prototype to avoid an error.
4606 Use char because int might match the return type of a GCC
4607 builtin and then its argument prototype would still apply. */
4611 char snd_pcm_open ();
4615 return snd_pcm_open ();
4620 rm -f conftest.$ac_objext conftest$ac_exeext
4621 if { (ac_try="$ac_link"
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627 $as_echo "$ac_try_echo") >&5
4628 (eval "$ac_link") 2>conftest.er1
4630 grep -v '^ *+' conftest.er1 >conftest.err
4632 cat conftest.err >&5
4633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } && {
4635 test -z "$ac_c_werror_flag" ||
4636 test ! -s conftest.err
4637 } && test -s conftest$ac_exeext && {
4638 test "$cross_compiling" = yes ||
4639 $as_test_x conftest$ac_exeext
4641 ac_cv_lib_asound_snd_pcm_open=yes
4643 $as_echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 ac_cv_lib_asound_snd_pcm_open=no
4649 rm -rf conftest.dSYM
4650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4651 conftest$ac_exeext conftest.$ac_ext
4652 LIBS=$ac_check_lib_save_LIBS
4654 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4655 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
4656 if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then
4657 cat >>confdefs.h <<_ACEOF
4658 #define HAVE_LIBASOUND 1
4661 LIBS="-lasound $LIBS"
4664 { { $as_echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4665 $as_echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4666 { (exit 1); exit 1; }; }
4672 # Look for PULSE flag
4674 # Check whether --with-pulse was given.
4675 if test "${with_pulse+set}" = set; then
4676 withval=$with_pulse;
4677 api="$api -D__LINUX_PULSE__"
4678 { $as_echo "$as_me:$LINENO: result: using PulseAudio" >&5
4679 $as_echo "using PulseAudio" >&6; }
4681 { $as_echo "$as_me:$LINENO: checking for pa_simple_new in -lpulse-simple" >&5
4682 $as_echo_n "checking for pa_simple_new in -lpulse-simple... " >&6; }
4683 if test "${ac_cv_lib_pulse_simple_pa_simple_new+set}" = set; then
4684 $as_echo_n "(cached) " >&6
4686 ac_check_lib_save_LIBS=$LIBS
4687 LIBS="-lpulse-simple $LIBS"
4688 cat >conftest.$ac_ext <<_ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4695 /* Override any GCC internal prototype to avoid an error.
4696 Use char because int might match the return type of a GCC
4697 builtin and then its argument prototype would still apply. */
4701 char pa_simple_new ();
4705 return pa_simple_new ();
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4717 $as_echo "$ac_try_echo") >&5
4718 (eval "$ac_link") 2>conftest.er1
4720 grep -v '^ *+' conftest.er1 >conftest.err
4722 cat conftest.err >&5
4723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } && {
4725 test -z "$ac_c_werror_flag" ||
4726 test ! -s conftest.err
4727 } && test -s conftest$ac_exeext && {
4728 test "$cross_compiling" = yes ||
4729 $as_test_x conftest$ac_exeext
4731 ac_cv_lib_pulse_simple_pa_simple_new=yes
4733 $as_echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 ac_cv_lib_pulse_simple_pa_simple_new=no
4739 rm -rf conftest.dSYM
4740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4741 conftest$ac_exeext conftest.$ac_ext
4742 LIBS=$ac_check_lib_save_LIBS
4744 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pulse_simple_pa_simple_new" >&5
4745 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_new" >&6; }
4746 if test "x$ac_cv_lib_pulse_simple_pa_simple_new" = x""yes; then
4747 cat >>confdefs.h <<_ACEOF
4748 #define HAVE_LIBPULSE_SIMPLE 1
4751 LIBS="-lpulse-simple $LIBS"
4754 { { $as_echo "$as_me:$LINENO: error: PulseAudio support requires the pulse-simple library!" >&5
4755 $as_echo "$as_me: error: PulseAudio support requires the pulse-simple library!" >&2;}
4756 { (exit 1); exit 1; }; }
4764 # Check whether --with-oss was given.
4765 if test "${with_oss+set}" = set; then
4767 api="$api -D__LINUX_OSS__"
4768 { $as_echo "$as_me:$LINENO: result: using OSS" >&5
4769 $as_echo "using OSS" >&6; }
4773 # If no audio api flags specified, use ALSA
4774 if test "$api" == ""; then
4775 { $as_echo "$as_me:$LINENO: result: using ALSA" >&5
4776 $as_echo "using ALSA" >&6; }
4777 api=-D__LINUX_ALSA__
4780 { $as_echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
4781 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
4782 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
4783 $as_echo_n "(cached) " >&6
4785 ac_check_lib_save_LIBS=$LIBS
4786 LIBS="-lasound $LIBS"
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4794 /* Override any GCC internal prototype to avoid an error.
4795 Use char because int might match the return type of a GCC
4796 builtin and then its argument prototype would still apply. */
4800 char snd_pcm_open ();
4804 return snd_pcm_open ();
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (ac_try="$ac_link"
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4816 $as_echo "$ac_try_echo") >&5
4817 (eval "$ac_link") 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 $as_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_exeext && {
4827 test "$cross_compiling" = yes ||
4828 $as_test_x conftest$ac_exeext
4830 ac_cv_lib_asound_snd_pcm_open=yes
4832 $as_echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4835 ac_cv_lib_asound_snd_pcm_open=no
4838 rm -rf conftest.dSYM
4839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4840 conftest$ac_exeext conftest.$ac_ext
4841 LIBS=$ac_check_lib_save_LIBS
4843 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4844 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
4845 if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then
4846 cat >>confdefs.h <<_ACEOF
4847 #define HAVE_LIBASOUND 1
4850 LIBS="-lasound $LIBS"
4853 { { $as_echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4854 $as_echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4855 { (exit 1); exit 1; }; }
4861 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4862 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4863 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4864 $as_echo_n "(cached) " >&6
4866 ac_check_lib_save_LIBS=$LIBS
4867 LIBS="-lpthread $LIBS"
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4875 /* Override any GCC internal prototype to avoid an error.
4876 Use char because int might match the return type of a GCC
4877 builtin and then its argument prototype would still apply. */
4881 char pthread_create ();
4885 return pthread_create ();
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (ac_try="$ac_link"
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4897 $as_echo "$ac_try_echo") >&5
4898 (eval "$ac_link") 2>conftest.er1
4900 grep -v '^ *+' conftest.er1 >conftest.err
4902 cat conftest.err >&5
4903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && {
4905 test -z "$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 } && test -s conftest$ac_exeext && {
4908 test "$cross_compiling" = yes ||
4909 $as_test_x conftest$ac_exeext
4911 ac_cv_lib_pthread_pthread_create=yes
4913 $as_echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 ac_cv_lib_pthread_pthread_create=no
4919 rm -rf conftest.dSYM
4920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4921 conftest$ac_exeext conftest.$ac_ext
4922 LIBS=$ac_check_lib_save_LIBS
4924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4925 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4926 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
4927 cat >>confdefs.h <<_ACEOF
4928 #define HAVE_LIBPTHREAD 1
4931 LIBS="-lpthread $LIBS"
4934 { { $as_echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
4935 $as_echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
4936 { (exit 1); exit 1; }; }
4943 # Check whether --with-jack was given.
4944 if test "${with_jack+set}" = set; then
4946 api="$api -D__UNIX_JACK__"
4947 { $as_echo "$as_me:$LINENO: result: using JACK" >&5
4948 $as_echo "using JACK" >&6; }
4950 { $as_echo "$as_me:$LINENO: checking for jack_client_open in -ljack" >&5
4951 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
4952 if test "${ac_cv_lib_jack_jack_client_open+set}" = set; then
4953 $as_echo_n "(cached) " >&6
4955 ac_check_lib_save_LIBS=$LIBS
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4964 /* Override any GCC internal prototype to avoid an error.
4965 Use char because int might match the return type of a GCC
4966 builtin and then its argument prototype would still apply. */
4970 char jack_client_open ();
4974 return jack_client_open ();
4979 rm -f conftest.$ac_objext conftest$ac_exeext
4980 if { (ac_try="$ac_link"
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4986 $as_echo "$ac_try_echo") >&5
4987 (eval "$ac_link") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest$ac_exeext && {
4997 test "$cross_compiling" = yes ||
4998 $as_test_x conftest$ac_exeext
5000 ac_cv_lib_jack_jack_client_open=yes
5002 $as_echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_cv_lib_jack_jack_client_open=no
5008 rm -rf conftest.dSYM
5009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5010 conftest$ac_exeext conftest.$ac_ext
5011 LIBS=$ac_check_lib_save_LIBS
5013 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_open" >&5
5014 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
5015 if test "x$ac_cv_lib_jack_jack_client_open" = x""yes; then
5016 cat >>confdefs.h <<_ACEOF
5017 #define HAVE_LIBJACK 1
5023 { { $as_echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
5024 $as_echo "$as_me: error: JACK support requires the jack library!" >&2;}
5025 { (exit 1); exit 1; }; }
5031 # AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
5032 # LIBS="$LIBS -framework jackmp" ], )
5035 # Look for Core flag
5037 # Check whether --with-core was given.
5038 if test "${with_core+set}" = set; then
5040 api="$api -D__MACOSX_CORE__"
5041 { $as_echo "$as_me:$LINENO: result: using CoreAudio" >&5
5042 $as_echo "using CoreAudio" >&6; }
5043 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5044 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5045 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
5046 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5047 $as_echo_n "(cached) " >&6
5049 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5050 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5052 # Is the header compilable?
5053 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
5054 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5062 #include <CoreAudio/CoreAudio.h>
5064 rm -f conftest.$ac_objext
5065 if { (ac_try="$ac_compile"
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071 $as_echo "$ac_try_echo") >&5
5072 (eval "$ac_compile") 2>conftest.er1
5074 grep -v '^ *+' conftest.er1 >conftest.err
5076 cat conftest.err >&5
5077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && {
5079 test -z "$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 } && test -s conftest.$ac_objext; then
5082 ac_header_compiler=yes
5084 $as_echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_header_compiler=no
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092 $as_echo "$ac_header_compiler" >&6; }
5094 # Is the header present?
5095 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
5096 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <CoreAudio/CoreAudio.h>
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111 $as_echo "$ac_try_echo") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null && {
5119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5122 ac_header_preproc=yes
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 ac_header_preproc=no
5130 rm -f conftest.err conftest.$ac_ext
5131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5132 $as_echo "$ac_header_preproc" >&6; }
5134 # So? What about this header?
5135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5137 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5138 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
5140 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
5141 ac_header_preproc=yes
5144 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
5145 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
5146 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
5147 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
5148 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
5149 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
5150 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
5151 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5152 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
5153 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
5154 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
5155 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
5157 ## ----------------------------------- ##
5158 ## Report this to gary@music.mcgill.ca ##
5159 ## ----------------------------------- ##
5161 ) | sed "s/^/$as_me: WARNING: /" >&2
5164 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5165 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
5166 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5167 $as_echo_n "(cached) " >&6
5169 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
5171 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5172 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5175 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
5178 { { $as_echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
5179 $as_echo "$as_me: error: CoreAudio header files not found!" >&2;}
5180 { (exit 1); exit 1; }; }
5184 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
5188 # If no audio api flags specified, use CoreAudio
5189 if test "$api" == ""; then
5190 api=-D__MACOSX_CORE__
5192 { $as_echo "$as_me:$LINENO: result: using CoreAudio" >&5
5193 $as_echo "using CoreAudio" >&6; }
5194 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5195 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5196 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
5197 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5198 $as_echo_n "(cached) " >&6
5200 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5201 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5203 # Is the header compilable?
5204 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
5205 $as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 $ac_includes_default
5213 #include <CoreAudio/CoreAudio.h>
5215 rm -f conftest.$ac_objext
5216 if { (ac_try="$ac_compile"
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5222 $as_echo "$ac_try_echo") >&5
5223 (eval "$ac_compile") 2>conftest.er1
5225 grep -v '^ *+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && {
5230 test -z "$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 } && test -s conftest.$ac_objext; then
5233 ac_header_compiler=yes
5235 $as_echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5238 ac_header_compiler=no
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5243 $as_echo "$ac_header_compiler" >&6; }
5245 # Is the header present?
5246 { $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
5247 $as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #include <CoreAudio/CoreAudio.h>
5256 if { (ac_try="$ac_cpp conftest.$ac_ext"
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5262 $as_echo "$ac_try_echo") >&5
5263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } >/dev/null && {
5270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5271 test ! -s conftest.err
5273 ac_header_preproc=yes
5275 $as_echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 ac_header_preproc=no
5281 rm -f conftest.err conftest.$ac_ext
5282 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5283 $as_echo "$ac_header_preproc" >&6; }
5285 # So? What about this header?
5286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5288 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5289 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5290 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
5291 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
5292 ac_header_preproc=yes
5295 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
5296 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
5297 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
5298 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
5299 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
5300 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
5301 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
5302 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5303 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
5304 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
5305 { $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
5306 $as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
5308 ## ----------------------------------- ##
5309 ## Report this to gary@music.mcgill.ca ##
5310 ## ----------------------------------- ##
5312 ) | sed "s/^/$as_me: WARNING: /" >&2
5315 { $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
5316 $as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
5317 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
5318 $as_echo_n "(cached) " >&6
5320 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
5322 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
5323 $as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
5326 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = x""yes; then
5329 { { $as_echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
5330 $as_echo "$as_me: error: CoreAudio header files not found!" >&2;}
5331 { (exit 1); exit 1; }; }
5335 LIBS="-framework CoreAudio -framework CoreFoundation"
5340 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5341 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
5342 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
5343 $as_echo_n "(cached) " >&6
5345 ac_check_lib_save_LIBS=$LIBS
5346 LIBS="-lpthread $LIBS"
5347 cat >conftest.$ac_ext <<_ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5354 /* Override any GCC internal prototype to avoid an error.
5355 Use char because int might match the return type of a GCC
5356 builtin and then its argument prototype would still apply. */
5360 char pthread_create ();
5364 return pthread_create ();
5369 rm -f conftest.$ac_objext conftest$ac_exeext
5370 if { (ac_try="$ac_link"
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5376 $as_echo "$ac_try_echo") >&5
5377 (eval "$ac_link") 2>conftest.er1
5379 grep -v '^ *+' conftest.er1 >conftest.err
5381 cat conftest.err >&5
5382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && {
5384 test -z "$ac_c_werror_flag" ||
5385 test ! -s conftest.err
5386 } && test -s conftest$ac_exeext && {
5387 test "$cross_compiling" = yes ||
5388 $as_test_x conftest$ac_exeext
5390 ac_cv_lib_pthread_pthread_create=yes
5392 $as_echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_lib_pthread_pthread_create=no
5398 rm -rf conftest.dSYM
5399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5400 conftest$ac_exeext conftest.$ac_ext
5401 LIBS=$ac_check_lib_save_LIBS
5403 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5404 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
5405 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
5406 cat >>confdefs.h <<_ACEOF
5407 #define HAVE_LIBPTHREAD 1
5410 LIBS="-lpthread $LIBS"
5413 { { $as_echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
5414 $as_echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
5415 { (exit 1); exit 1; }; }
5422 # Check whether --with-asio was given.
5423 if test "${with_asio+set}" = set; then
5425 api="$api -D__WINDOWS_ASIO__"
5426 { $as_echo "$as_me:$LINENO: result: using ASIO" >&5
5427 $as_echo "using ASIO" >&6; }
5428 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
5433 # Look for DirectSound flag
5435 # Check whether --with-ds was given.
5436 if test "${with_ds+set}" = set; then
5438 api="$api -D__WINDOWS_DS__"
5439 { $as_echo "$as_me:$LINENO: result: using DirectSound" >&5
5440 $as_echo "using DirectSound" >&6; }
5441 LIBS="-ldsound -lwinmm $LIBS"
5445 # If no audio api flags specified, use DirectSound
5446 if test "$api" == ""; then
5447 api=-D__WINDOWS_DS__
5449 { $as_echo "$as_me:$LINENO: result: using DirectSound" >&5
5450 $as_echo "using DirectSound" >&6; }
5451 LIBS="-ldsound -lwinmm $LIBS"
5454 LIBS="-lole32 $LIBS"
5458 # Default case for unknown realtime systems.
5459 { { $as_echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
5460 $as_echo "$as_me: error: Unknown system type for realtime support!" >&2;}
5461 { (exit 1); exit 1; }; }
5465 CPPFLAGS="$CPPFLAGS $api"
5467 cat >confcache <<\_ACEOF
5468 # This file is a shell script that caches the results of configure
5469 # tests run on this system so they can be shared between configure
5470 # scripts and configure runs, see configure's option --config-cache.
5471 # It is not useful on other systems. If it contains results you don't
5472 # want to keep, you may remove or edit it.
5474 # config.status only pays attention to the cache file if you give it
5475 # the --recheck option to rerun configure.
5477 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5478 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5483 # The following way of writing the cache mishandles newlines in values,
5484 # but we know of no workaround that is simple, portable, and efficient.
5485 # So, we kill variables containing newlines.
5486 # Ultrix sh set writes to stderr and can't be redirected directly,
5487 # and sets the high bit in the cache file unless we assign to the vars.
5489 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5490 eval ac_val=\$$ac_var
5494 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5495 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5498 _ | IFS | as_nl) ;; #(
5499 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5500 *) $as_unset $ac_var ;;
5506 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5507 *${as_nl}ac_space=\ *)
5508 # `set' does not quote correctly, so add quotes (double-quote
5509 # substitution turns \\\\ into \\, and sed turns \\ into \).
5512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5515 # `set' quotes correctly as required by POSIX, so do not add quotes.
5516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5527 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5529 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5530 if test -w "$cache_file"; then
5531 test "x$cache_file" != "x/dev/null" &&
5532 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5533 $as_echo "$as_me: updating cache $cache_file" >&6;}
5534 cat confcache >$cache_file
5536 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5537 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5543 # Let make expand exec_prefix.
5544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5546 # Transform confdefs.h into DEFS.
5547 # Protect against shell expansion while executing Makefile rules.
5548 # Protect against Makefile macro expansion.
5550 # If the first sed substitution is executed (which looks for macros that
5551 # take arguments), then branch to the quote section. Otherwise,
5552 # look for a macro that doesn't take arguments.
5562 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5564 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5568 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5581 DEFS=`sed -n "$ac_script" confdefs.h`
5586 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5587 # 1. Remove the extension, and $U if already installed.
5588 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5589 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5590 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5591 # will be set to the directory where LIBOBJS objects are built.
5592 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5593 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5597 LTLIBOBJS=$ac_ltlibobjs
5601 : ${CONFIG_STATUS=./config.status}
5603 ac_clean_files_save=$ac_clean_files
5604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5605 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5607 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5609 # Generated by $as_me.
5610 # Run this file to recreate the current configuration.
5611 # Compiler output produced by configure, useful for debugging
5612 # configure, is in config.log if it exists.
5617 SHELL=\${CONFIG_SHELL-$SHELL}
5620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5621 ## --------------------- ##
5622 ## M4sh Initialization. ##
5623 ## --------------------- ##
5625 # Be more Bourne compatible
5626 DUALCASE=1; export DUALCASE # for MKS sh
5627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5630 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5631 # is contrary to our usage. Disable this feature.
5632 alias -g '${1+"$@"}'='"$@"'
5633 setopt NO_GLOB_SUBST
5635 case `(set -o) 2>/dev/null` in
5636 *posix*) set -o posix ;;
5645 # Avoid depending upon Character Ranges.
5646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5649 as_cr_digits='0123456789'
5650 as_cr_alnum=$as_cr_Letters$as_cr_digits
5655 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5656 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5657 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5658 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5659 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5660 as_echo='printf %s\n'
5661 as_echo_n='printf %s'
5663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5664 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5665 as_echo_n='/usr/ucb/echo -n'
5667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5668 as_echo_n_body='eval
5672 expr "X$arg" : "X\\(.*\\)$as_nl";
5673 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5675 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5677 export as_echo_n_body
5678 as_echo_n='sh -c $as_echo_n_body as_echo'
5681 as_echo='sh -c $as_echo_body as_echo'
5684 # The user is always right.
5685 if test "${PATH_SEPARATOR+set}" != set; then
5687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5693 # Support unset when possible.
5694 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5702 # We need space, tab and new line, in precisely that order. Quoting is
5703 # there to prevent editors from complaining about space-tab.
5704 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5705 # splitting by setting IFS to empty value.)
5708 # Find who we are. Look in the path if we contain no directory separator.
5710 *[\\/]* ) as_myself=$0 ;;
5711 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5722 # We did not find ourselves, most probably we were run as `sh COMMAND'
5723 # in which case we are not to be found in the path.
5724 if test "x$as_myself" = x; then
5727 if test ! -f "$as_myself"; then
5728 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5729 { (exit 1); exit 1; }
5732 # Work around bugs in pre-3.0 UWIN ksh.
5733 for as_var in ENV MAIL MAILPATH
5734 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5746 # Required to use basename.
5747 if expr a : '\(a\)' >/dev/null 2>&1 &&
5748 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5754 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5755 as_basename=basename
5761 # Name of the executable.
5762 as_me=`$as_basename -- "$0" ||
5763 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5764 X"$0" : 'X\(//\)$' \| \
5765 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5767 sed '/^.*\/\([^/][^/]*\)\/*$/{
5788 test "x$as_lineno_1" != "x$as_lineno_2" &&
5789 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5791 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5792 # uniformly replaced by the line number. The first 'sed' inserts a
5793 # line-number line after each line using $LINENO; the second 'sed'
5794 # does the real work. The second script uses 'N' to pair each
5795 # line-number line with the line containing $LINENO, and appends
5796 # trailing '-' during substitution so that $LINENO is not a special
5798 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5799 # scripts with optimization help from Paolo Bonzini. Blame Lee
5800 # E. McMahon (1931-1989) for sed's syntax. :-)
5812 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5816 chmod +x "$as_me.lineno" ||
5817 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5818 { (exit 1); exit 1; }; }
5820 # Don't try to exec as it changes $[0], causing all sort of problems
5821 # (the dirname of $[0] is not the place where we might find the
5822 # original and so on. Autoconf is especially sensitive to this).
5824 # Exit status is that of the last command.
5829 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5835 ECHO_C= ECHO_N= ECHO_T=
5838 case `echo 'x\c'` in
5839 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5845 if expr a : '\(a\)' >/dev/null 2>&1 &&
5846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5852 rm -f conf$$ conf$$.exe conf$$.file
5853 if test -d conf$$.dir; then
5854 rm -f conf$$.dir/conf$$.file
5857 mkdir conf$$.dir 2>/dev/null
5859 if (echo >conf$$.file) 2>/dev/null; then
5860 if ln -s conf$$.file conf$$ 2>/dev/null; then
5862 # ... but there are two gotchas:
5863 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5864 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5865 # In both cases, we have to default to `cp -p'.
5866 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5868 elif ln conf$$.file conf$$ 2>/dev/null; then
5876 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5877 rmdir conf$$.dir 2>/dev/null
5879 if mkdir -p . 2>/dev/null; then
5882 test -d ./-p && rmdir ./-p
5886 if test -x / >/dev/null 2>&1; then
5889 if ls -dL / >/dev/null 2>&1; then
5896 if test -d "$1"; then
5902 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5903 ???[sx]*):;;*)false;;esac;fi
5907 as_executable_p=$as_test_x
5909 # Sed expression to map a string onto a valid CPP name.
5910 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5912 # Sed expression to map a string onto a valid variable name.
5913 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5918 # Save the log message, to keep $[0] and so on meaningful, and to
5919 # report actual input values of CONFIG_FILES etc. instead of their
5920 # values after options handling.
5922 This file was extended by RtAudio $as_me 4.0, which was
5923 generated by GNU Autoconf 2.63. Invocation command line was
5925 CONFIG_FILES = $CONFIG_FILES
5926 CONFIG_HEADERS = $CONFIG_HEADERS
5927 CONFIG_LINKS = $CONFIG_LINKS
5928 CONFIG_COMMANDS = $CONFIG_COMMANDS
5931 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5936 case $ac_config_files in *"
5937 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5943 # Files that config.status was made for.
5944 config_files="$ac_config_files"
5948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5950 \`$as_me' instantiates files from templates according to the
5951 current configuration.
5953 Usage: $0 [OPTION]... [FILE]...
5955 -h, --help print this help, then exit
5956 -V, --version print version number and configuration settings, then exit
5957 -q, --quiet, --silent
5958 do not print progress messages
5959 -d, --debug don't remove temporary files
5960 --recheck update $as_me by reconfiguring in the same conditions
5961 --file=FILE[:TEMPLATE]
5962 instantiate the configuration file FILE
5964 Configuration files:
5967 Report bugs to <bug-autoconf@gnu.org>."
5970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5972 RtAudio config.status 4.0
5973 configured by $0, generated by GNU Autoconf 2.63,
5974 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5976 Copyright (C) 2008 Free Software Foundation, Inc.
5977 This config.status script is free software; the Free Software Foundation
5978 gives unlimited permission to copy, distribute and modify it."
5982 test -n "\$AWK" || AWK=awk
5985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5986 # The default lists apply if the user does not specify any file.
5992 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5993 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6004 # Handling of the options.
6005 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6007 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6008 $as_echo "$ac_cs_version"; exit ;;
6009 --debug | --debu | --deb | --de | --d | -d )
6011 --file | --fil | --fi | --f )
6014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6016 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6017 ac_need_defaults=false;;
6018 --he | --h | --help | --hel | -h )
6019 $as_echo "$ac_cs_usage"; exit ;;
6020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6025 -*) { $as_echo "$as_me: error: unrecognized option: $1
6026 Try \`$0 --help' for more information." >&2
6027 { (exit 1); exit 1; }; } ;;
6029 *) ac_config_targets="$ac_config_targets $1"
6030 ac_need_defaults=false ;;
6036 ac_configure_extra_args=
6038 if $ac_cs_silent; then
6040 ac_configure_extra_args="$ac_configure_extra_args --silent"
6044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6045 if \$ac_cs_recheck; then
6046 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6049 CONFIG_SHELL='$SHELL'
6055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6060 ## Running $as_me. ##
6066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6071 # Handling of arguments.
6072 for ac_config_target in $ac_config_targets
6074 case $ac_config_target in
6075 "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
6076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6077 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
6079 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6080 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6081 { (exit 1); exit 1; }; };;
6086 # If the user did not use the arguments to specify the items to instantiate,
6087 # then the envvar interface is used. Set only those that are not.
6088 # We use the long form for the default assignment because of an extremely
6089 # bizarre bug on SunOS 4.1.3.
6090 if $ac_need_defaults; then
6091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6094 # Have a temporary directory for convenience. Make it in the build tree
6095 # simply because there is no reason against having it here, and in addition,
6096 # creating and moving files from /tmp can sometimes cause problems.
6097 # Hook for its removal unless debugging.
6098 # Note that there is a small window in which the directory will not be cleaned:
6099 # after its creation but before its name has been assigned to `$tmp'.
6103 trap 'exit_status=$?
6104 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6106 trap '{ (exit 1); exit 1; }' 1 2 13 15
6108 # Create a (secure) tmp directory for tmp files.
6111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6112 test -n "$tmp" && test -d "$tmp"
6115 tmp=./conf$$-$RANDOM
6116 (umask 077 && mkdir "$tmp")
6119 $as_echo "$as_me: cannot create a temporary directory in ." >&2
6120 { (exit 1); exit 1; }
6123 # Set up the scripts for CONFIG_FILES section.
6124 # No need to generate them if there are no CONFIG_FILES.
6125 # This happens for instance with `./config.status config.h'.
6126 if test -n "$CONFIG_FILES"; then
6130 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6131 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6137 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6142 echo "cat >conf$$subs.awk <<_ACEOF" &&
6143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6146 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6147 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6148 { (exit 1); exit 1; }; }
6149 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6151 for ac_last_try in false false false false false :; do
6152 . ./conf$$subs.sh ||
6153 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6154 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6155 { (exit 1); exit 1; }; }
6157 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6158 if test $ac_delim_n = $ac_delim_num; then
6160 elif $ac_last_try; then
6161 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6162 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6163 { (exit 1); exit 1; }; }
6165 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6171 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6175 s/^/S["/; s/!.*/"]=/
6185 s/\(.\{148\}\).*/\1/
6187 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6192 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6199 s/\(.\{148\}\).*/\1/
6201 s/["\\]/\\&/g; s/^/"/; s/$/"/
6205 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6210 ' <conf$$subs.awk | sed '
6215 ' >>$CONFIG_STATUS || ac_write_fail=1
6216 rm -f conf$$subs.awk
6217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6219 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6220 for (key in S) S_is_set[key] = 1
6226 nfields = split(line, field, "@")
6228 len = length(field[1])
6229 for (i = 2; i < nfields; i++) {
6231 keylen = length(key)
6232 if (S_is_set[key]) {
6234 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6235 len += length(value) + length(field[++i])
6246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6247 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6248 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6251 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6252 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6253 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
6254 { (exit 1); exit 1; }; }
6257 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6258 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6259 # trailing colons and then remove the whole line if VPATH becomes empty
6260 # (actually we leave an empty line to preserve line numbers).
6261 if test "x$srcdir" = x.; then
6262 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6266 s/^\([^=]*=[ ]*\):*/\1/
6272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6273 fi # test -n "$CONFIG_FILES"
6276 eval set X " :F $CONFIG_FILES "
6281 :[FHLC]) ac_mode=$ac_tag; continue;;
6283 case $ac_mode$ac_tag in
6285 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6286 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6287 { (exit 1); exit 1; }; };;
6288 :[FH]-) ac_tag=-:-;;
6289 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6306 -) ac_f="$tmp/stdin";;
6307 *) # Look for the file first in the build tree, then in the source tree
6308 # (if the path is not absolute). The absolute path cannot be DOS-style,
6309 # because $ac_f cannot contain `:'.
6313 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6315 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6316 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6317 { (exit 1); exit 1; }; };;
6319 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6320 ac_file_inputs="$ac_file_inputs '$ac_f'"
6323 # Let's still pretend it is `configure' which instantiates (i.e., don't
6324 # use $as_me), people would be surprised to read:
6325 # /* config.h. Generated by config.status. */
6326 configure_input='Generated from '`
6327 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6329 if test x"$ac_file" != x-; then
6330 configure_input="$ac_file. $configure_input"
6331 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6332 $as_echo "$as_me: creating $ac_file" >&6;}
6334 # Neutralize special characters interpreted by sed in replacement strings.
6335 case $configure_input in #(
6336 *\&* | *\|* | *\\* )
6337 ac_sed_conf_input=`$as_echo "$configure_input" |
6338 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6339 *) ac_sed_conf_input=$configure_input;;
6343 *:-:* | *:-) cat >"$tmp/stdin" \
6344 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6345 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6346 { (exit 1); exit 1; }; } ;;
6351 ac_dir=`$as_dirname -- "$ac_file" ||
6352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6353 X"$ac_file" : 'X\(//\)[^/]' \| \
6354 X"$ac_file" : 'X\(//\)$' \| \
6355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6356 $as_echo X"$ac_file" |
6357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6376 -*) as_dir=./$as_dir;;
6378 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6382 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6383 *) as_qdir=$as_dir;;
6385 as_dirs="'$as_qdir' $as_dirs"
6386 as_dir=`$as_dirname -- "$as_dir" ||
6387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6388 X"$as_dir" : 'X\(//\)[^/]' \| \
6389 X"$as_dir" : 'X\(//\)$' \| \
6390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6391 $as_echo X"$as_dir" |
6392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6409 test -d "$as_dir" && break
6411 test -z "$as_dirs" || eval "mkdir $as_dirs"
6412 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6413 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6414 { (exit 1); exit 1; }; }; }
6418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6420 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6421 # A ".." for each directory in $ac_dir_suffix.
6422 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6423 case $ac_top_builddir_sub in
6424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6428 ac_abs_top_builddir=$ac_pwd
6429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6430 # for backward compatibility:
6431 ac_top_builddir=$ac_top_build_prefix
6434 .) # We are building in place.
6436 ac_top_srcdir=$ac_top_builddir_sub
6437 ac_abs_top_srcdir=$ac_pwd ;;
6438 [\\/]* | ?:[\\/]* ) # Absolute name.
6439 ac_srcdir=$srcdir$ac_dir_suffix;
6440 ac_top_srcdir=$srcdir
6441 ac_abs_top_srcdir=$srcdir ;;
6443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6444 ac_top_srcdir=$ac_top_build_prefix$srcdir
6445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6459 # If the template does not know about datarootdir, expand it.
6460 # FIXME: This hack should be removed a few years after 2.60.
6461 ac_datarootdir_hack=; ac_datarootdir_seen=
6474 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6475 *datarootdir*) ac_datarootdir_seen=yes;;
6476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6477 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6478 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6481 ac_datarootdir_hack='
6482 s&@datadir@&$datadir&g
6483 s&@docdir@&$docdir&g
6484 s&@infodir@&$infodir&g
6485 s&@localedir@&$localedir&g
6486 s&@mandir@&$mandir&g
6487 s&\\\${datarootdir}&$datarootdir&g' ;;
6491 # Neutralize VPATH when `$srcdir' = `.'.
6492 # Shell code in configure.ac might set extrasub.
6493 # FIXME: do we really want to maintain this feature?
6494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6495 ac_sed_extra="$ac_vpsub
6498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6501 s|@configure_input@|$ac_sed_conf_input|;t t
6502 s&@top_builddir@&$ac_top_builddir_sub&;t t
6503 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6504 s&@srcdir@&$ac_srcdir&;t t
6505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6506 s&@top_srcdir@&$ac_top_srcdir&;t t
6507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6508 s&@builddir@&$ac_builddir&;t t
6509 s&@abs_builddir@&$ac_abs_builddir&;t t
6510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6511 $ac_datarootdir_hack
6513 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6514 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6515 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6516 { (exit 1); exit 1; }; }
6518 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6521 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6522 which seems to be undefined. Please make sure it is defined." >&5
6523 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6524 which seems to be undefined. Please make sure it is defined." >&2;}
6528 -) cat "$tmp/out" && rm -f "$tmp/out";;
6529 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6531 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6532 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6533 { (exit 1); exit 1; }; }
6543 { (exit 0); exit 0; }
6545 chmod +x $CONFIG_STATUS
6546 ac_clean_files=$ac_clean_files_save
6548 test $ac_write_fail = 0 ||
6549 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6550 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6551 { (exit 1); exit 1; }; }
6554 # configure is writing to config.log, and then calls config.status.
6555 # config.status does its own redirection, appending to config.log.
6556 # Unfortunately, on DOS this fails, as config.log is still kept open
6557 # by configure, so config.status won't be able to write to it; its
6558 # output is simply discarded. So we exec the FD to /dev/null,
6559 # effectively closing config.log, so it can be properly (re)opened and
6560 # appended to by config.status. When coming back to configure, we
6561 # need to make the FD available again.
6562 if test "$no_create" != yes; then
6564 ac_config_status_args=
6565 test "$silent" = yes &&
6566 ac_config_status_args="$ac_config_status_args --quiet"
6568 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6570 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6571 # would make configure fail if this is the last instruction.
6572 $ac_cs_success || { (exit 1); exit 1; }
6574 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6575 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6576 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6580 chmod oug+x rtaudio-config