2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for RtAudio 4.0.
5 # Report bugs to <gary@music.mcgill.ca>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: gary@music.mcgill.ca about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='RtAudio'
582 PACKAGE_TARNAME='rtaudio'
583 PACKAGE_VERSION='4.0'
584 PACKAGE_STRING='RtAudio 4.0'
585 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
588 ac_unique_file="RtAudio.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
625 ac_subst_vars='LTLIBOBJS
692 program_transform_name
705 enable_option_checking
715 ac_precious_vars='build_alias
734 # Initialize some variables set by options.
736 ac_init_version=false
737 ac_unrecognized_opts=
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
748 program_transform_name=s,x,x,
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
773 infodir='${datarootdir}/info'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
794 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
823 cache_file=config.cache ;;
825 -datadir | --datadir | --datadi | --datad)
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
837 -disable-* | --disable-*)
838 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841 as_fn_error $? "invalid feature name: $ac_useropt"
842 ac_useropt_orig=$ac_useropt
843 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844 case $ac_user_opts in
848 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
849 ac_unrecognized_sep=', ';;
851 eval enable_$ac_useropt=no ;;
853 -docdir | --docdir | --docdi | --doc | --do)
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
863 -enable-* | --enable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error $? "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
877 eval enable_$ac_useropt=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
892 -help | --help | --hel | --he | -h)
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 # Obsolete; use --without-fp.
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1041 -site=* | --site=* | --sit=*)
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1068 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1081 eval with_$ac_useropt=\$ac_optarg ;;
1083 -without-* | --without-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1097 eval with_$ac_useropt=no ;;
1100 # Obsolete; use --with-x.
1103 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1104 | --x-incl | --x-inc | --x-in | --x-i)
1105 ac_prev=x_includes ;;
1106 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1107 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1108 x_includes=$ac_optarg ;;
1110 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1111 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1112 ac_prev=x_libraries ;;
1113 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1114 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1115 x_libraries=$ac_optarg ;;
1117 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1118 Try \`$0 --help' for more information"
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 case $ac_envvar in #(
1125 '' | [0-9]* | *[!_$as_cr_alnum]* )
1126 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1128 eval $ac_envvar=\$ac_optarg
1129 export $ac_envvar ;;
1132 # FIXME: should be removed in autoconf 3.0.
1133 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1136 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1142 if test -n "$ac_prev"; then
1143 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1144 as_fn_error $? "missing argument to $ac_option"
1147 if test -n "$ac_unrecognized_opts"; then
1148 case $enable_option_checking in
1150 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1151 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1155 # Check all directory arguments for consistency.
1156 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1157 datadir sysconfdir sharedstatedir localstatedir includedir \
1158 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1159 libdir localedir mandir
1161 eval ac_val=\$$ac_var
1162 # Remove trailing slashes.
1165 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1166 eval $ac_var=\$ac_val;;
1168 # Be sure to have absolute directory names.
1170 [\\/$]* | ?:[\\/]* ) continue;;
1171 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1176 # There might be people who depend on the old broken behavior: `$host'
1177 # used to hold the argument of --host etc.
1178 # FIXME: To remove some day.
1181 target=$target_alias
1183 # FIXME: To remove some day.
1184 if test "x$host_alias" != x; then
1185 if test "x$build_alias" = x; then
1186 cross_compiling=maybe
1187 elif test "x$build_alias" != "x$host_alias"; then
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195 test "$silent" = yes && exec 6>/dev/null
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201 as_fn_error $? "working directory cannot be determined"
1202 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 as_fn_error $? "pwd does not report name of working directory"
1206 # Find the source files, if location was not specified.
1207 if test -z "$srcdir"; then
1208 ac_srcdir_defaulted=yes
1209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir=`$as_dirname -- "$as_myself" ||
1211 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$as_myself" : 'X\(//\)[^/]' \| \
1213 X"$as_myself" : 'X\(//\)$' \| \
1214 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1215 $as_echo X"$as_myself" |
1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1238 ac_srcdir_defaulted=no
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1244 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1246 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1248 # When building in place, set srcdir=.
1249 if test "$ac_abs_confdir" = "$ac_pwd"; then
1252 # Remove unnecessary trailing slashes from srcdir.
1253 # Double slashes in file names in object file debugging info
1254 # mess up M-x gdb in Emacs.
1256 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1258 for ac_var in $ac_precious_vars; do
1259 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_env_${ac_var}_value=\$${ac_var}
1261 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266 # Report the --help message.
1268 if test "$ac_init_help" = "long"; then
1269 # Omit some internal or obsolete options to make the list less imposing.
1270 # This message is too long to be a string in the A/UX 3.1 sh.
1272 \`configure' configures RtAudio 4.0 to adapt to many kinds of systems.
1274 Usage: $0 [OPTION]... [VAR=VALUE]...
1276 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1277 VAR=VALUE. See below for descriptions of some of the useful variables.
1279 Defaults for the options are specified in brackets.
1282 -h, --help display this help and exit
1283 --help=short display options specific to this package
1284 --help=recursive display the short help of all the included packages
1285 -V, --version display version information and exit
1286 -q, --quiet, --silent do not print \`checking ...' messages
1287 --cache-file=FILE cache test results in FILE [disabled]
1288 -C, --config-cache alias for \`--cache-file=config.cache'
1289 -n, --no-create do not create output files
1290 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1292 Installation directories:
1293 --prefix=PREFIX install architecture-independent files in PREFIX
1294 [$ac_default_prefix]
1295 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1298 By default, \`make install' will install all the files in
1299 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1300 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1301 for instance \`--prefix=\$HOME'.
1303 For better control, use the options below.
1305 Fine tuning of the installation directories:
1306 --bindir=DIR user executables [EPREFIX/bin]
1307 --sbindir=DIR system admin executables [EPREFIX/sbin]
1308 --libexecdir=DIR program executables [EPREFIX/libexec]
1309 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1310 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1311 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1312 --libdir=DIR object code libraries [EPREFIX/lib]
1313 --includedir=DIR C header files [PREFIX/include]
1314 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1315 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1316 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1317 --infodir=DIR info documentation [DATAROOTDIR/info]
1318 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1319 --mandir=DIR man documentation [DATAROOTDIR/man]
1320 --docdir=DIR documentation root [DATAROOTDIR/doc/rtaudio]
1321 --htmldir=DIR html documentation [DOCDIR]
1322 --dvidir=DIR dvi documentation [DOCDIR]
1323 --pdfdir=DIR pdf documentation [DOCDIR]
1324 --psdir=DIR ps documentation [DOCDIR]
1330 --build=BUILD configure for building on BUILD [guessed]
1331 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1335 if test -n "$ac_init_help"; then
1336 case $ac_init_help in
1337 short | recursive ) echo "Configuration of RtAudio 4.0:";;
1342 --disable-option-checking ignore unrecognized --enable/--with options
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --enable-debug = enable various debug output
1348 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1349 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1350 --with-jack = choose JACK server support (mac and linux only)
1351 --with-alsa = choose native ALSA API support (linux only)
1352 --with-pulse = choose PulseAudio API support (linux only)
1353 --with-oss = choose OSS API support (linux only)
1354 --with-jack = choose JACK server support (unix only)
1355 --with-core = choose CoreAudio API support (mac only)
1356 --with-asio = choose ASIO API support (windoze only)
1357 --with-ds = choose DirectSound API support (windoze only)
1359 Some influential environment variables:
1360 PKG_CONFIG path to pkg-config utility
1362 directories to add to pkg-config's search path
1364 path overriding pkg-config's built-in search path
1365 CXX C++ compiler command
1366 CXXFLAGS C++ compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CC C compiler command
1373 CFLAGS C compiler flags
1376 C compiler flags for PULSE, overriding pkg-config
1377 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1379 Use these variables to override the choices made by `configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1382 Report bugs to <gary@music.mcgill.ca>.
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" ||
1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1412 .) # We are building in place.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1445 RtAudio configure 4.0
1446 generated by GNU Autoconf 2.69
1448 Copyright (C) 2012 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1455 ## ------------------------ ##
1456 ## Autoconf initialization. ##
1457 ## ------------------------ ##
1459 # ac_fn_cxx_try_compile LINENO
1460 # ----------------------------
1461 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1462 ac_fn_cxx_try_compile ()
1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1465 rm -f conftest.$ac_objext
1466 if { { ac_try="$ac_compile"
1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1469 *) ac_try_echo=$ac_try;;
1471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1472 $as_echo "$ac_try_echo"; } >&5
1473 (eval "$ac_compile") 2>conftest.err
1475 if test -s conftest.err; then
1476 grep -v '^ *+' conftest.err >conftest.er1
1477 cat conftest.er1 >&5
1478 mv -f conftest.er1 conftest.err
1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1481 test $ac_status = 0; } && {
1482 test -z "$ac_cxx_werror_flag" ||
1483 test ! -s conftest.err
1484 } && test -s conftest.$ac_objext; then :
1487 $as_echo "$as_me: failed program was:" >&5
1488 sed 's/^/| /' conftest.$ac_ext >&5
1492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1493 as_fn_set_status $ac_retval
1495 } # ac_fn_cxx_try_compile
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile ()
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531 as_fn_set_status $ac_retval
1533 } # ac_fn_c_try_compile
1535 # ac_fn_c_try_cpp LINENO
1536 # ----------------------
1537 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 if { { ac_try="$ac_cpp conftest.$ac_ext"
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } > conftest.i && {
1557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1572 # ac_fn_c_try_run LINENO
1573 # ----------------------
1574 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1575 # that executables *can* be run.
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_link"
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>&5
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1590 { { case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_try") 2>&5
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; }; }; then :
1602 $as_echo "$as_me: program exited with status $ac_status" >&5
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=$ac_status
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1614 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1617 # the include files in INCLUDES and setting the cache variable VAR
1619 ac_fn_c_check_header_mongrel ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if eval \${$3+:} false; then :
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1630 $as_echo "$ac_res" >&6; }
1632 # Is the header compilable?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1634 $as_echo_n "checking $2 usability... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 ac_header_compiler=yes
1643 ac_header_compiler=no
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1647 $as_echo "$ac_header_compiler" >&6; }
1649 # Is the header present?
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1651 $as_echo_n "checking $2 presence... " >&6; }
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1656 if ac_fn_c_try_cpp "$LINENO"; then :
1657 ac_header_preproc=yes
1659 ac_header_preproc=no
1661 rm -f conftest.err conftest.i conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1663 $as_echo "$ac_header_preproc" >&6; }
1665 # So? What about this header?
1666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1669 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1675 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1677 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1679 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1681 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1683 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1684 ( $as_echo "## ----------------------------------- ##
1685 ## Report this to gary@music.mcgill.ca ##
1686 ## ----------------------------------- ##"
1687 ) | sed "s/^/$as_me: WARNING: /" >&2
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1695 eval "$3=\$ac_header_compiler"
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_mongrel
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1722 if ac_fn_c_try_compile "$LINENO"; then :
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 } # ac_fn_c_check_header_compile
1736 # ac_fn_c_try_link LINENO
1737 # -----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext conftest$ac_exeext
1743 if { { ac_try="$ac_link"
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>conftest.err
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest$ac_exeext && {
1762 test "$cross_compiling" = yes ||
1763 test -x conftest$ac_exeext
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774 # interfere with the next link command; also delete a directory that is
1775 # left behind by Apple's compiler. We do this before executing the actions.
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1780 } # ac_fn_c_try_link
1782 # ac_fn_c_check_func LINENO FUNC VAR
1783 # ----------------------------------
1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1785 ac_fn_c_check_func ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1797 #define $2 innocuous_$2
1799 /* System header to define __stub macros and hopefully few prototypes,
1800 which can conflict with char $2 (); below.
1801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1802 <limits.h> exists even on freestanding compilers. */
1805 # include <limits.h>
1807 # include <assert.h>
1812 /* Override any GCC internal prototype to avoid an error.
1813 Use char because int might match the return type of a GCC
1814 builtin and then its argument prototype would still apply. */
1819 /* The GNU C library defines this for functions which it implements
1820 to always fail with ENOSYS. Some functions are actually named
1821 something starting with __ and the normal name is an alias. */
1822 #if defined __stub_$2 || defined __stub___$2
1834 if ac_fn_c_try_link "$LINENO"; then :
1839 rm -f core conftest.err conftest.$ac_objext \
1840 conftest$ac_exeext conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_func
1848 cat >config.log <<_ACEOF
1849 This file contains any messages produced by compilers while
1850 running configure, to aid debugging if configure makes a mistake.
1852 It was created by RtAudio $as_me 4.0, which was
1853 generated by GNU Autoconf 2.69. Invocation command line was
1865 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1866 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1867 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1868 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1869 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1872 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1874 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1875 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1876 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1877 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1878 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1879 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1880 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir=.
1889 $as_echo "PATH: $as_dir"
1905 # Keep a trace of the command line.
1906 # Strip out --no-create and --no-recursion so they do not pile up.
1907 # Strip out --silent because we don't want to record it for future runs.
1908 # Also quote any args containing shell meta-characters.
1909 # Make two passes to allow for proper duplicate-argument suppression.
1913 ac_must_keep_next=false
1919 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1921 | -silent | --silent | --silen | --sile | --sil)
1924 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1929 as_fn_append ac_configure_args1 " '$ac_arg'"
1930 if test $ac_must_keep_next = true; then
1931 ac_must_keep_next=false # Got value, back to normal.
1934 *=* | --config-cache | -C | -disable-* | --disable-* \
1935 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1936 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1937 | -with-* | --with-* | -without-* | --without-* | --x)
1938 case "$ac_configure_args0 " in
1939 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 -* ) ac_must_keep_next=true ;;
1945 as_fn_append ac_configure_args " '$ac_arg'"
1950 { ac_configure_args0=; unset ac_configure_args0;}
1951 { ac_configure_args1=; unset ac_configure_args1;}
1953 # When interrupted or exit'd, cleanup temporary files, and complete
1954 # config.log. We remove comments because anyway the quotes in there
1955 # would cause problems or look ugly.
1956 # WARNING: Use '\'' to represent an apostrophe within the trap.
1957 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1958 trap 'exit_status=$?
1959 # Save into config.log some information that might help in debugging.
1963 $as_echo "## ---------------- ##
1964 ## Cache variables. ##
1965 ## ---------------- ##"
1967 # The following way of writing the cache mishandles newlines in values,
1969 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970 eval ac_val=\$$ac_var
1974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1975 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978 _ | IFS | as_nl) ;; #(
1979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1980 *) { eval $ac_var=; unset $ac_var;} ;;
1985 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1986 *${as_nl}ac_space=\ *)
1988 "s/'\''/'\''\\\\'\'''\''/g;
1989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999 $as_echo "## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##"
2003 for ac_var in $ac_subst_vars
2005 eval ac_val=\$$ac_var
2007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 $as_echo "$ac_var='\''$ac_val'\''"
2013 if test -n "$ac_subst_files"; then
2014 $as_echo "## ------------------- ##
2015 ## File substitutions. ##
2016 ## ------------------- ##"
2018 for ac_var in $ac_subst_files
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 $as_echo "$ac_var='\''$ac_val'\''"
2029 if test -s confdefs.h; then
2030 $as_echo "## ----------- ##
2037 test "$ac_signal" != 0 &&
2038 $as_echo "$as_me: caught signal $ac_signal"
2039 $as_echo "$as_me: exit $exit_status"
2041 rm -f core *.core core.conftest.* &&
2042 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045 for ac_signal in 1 2 13 15; do
2046 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2050 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2051 rm -f -r conftest* confdefs.h
2053 $as_echo "/* confdefs.h */" > confdefs.h
2055 # Predefined preprocessor variables.
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_URL "$PACKAGE_URL"
2082 # Let the site file select an alternate cache file if it wants to.
2083 # Prefer an explicitly selected file to automatically selected ones.
2086 if test -n "$CONFIG_SITE"; then
2087 # We do not want a PATH search for config.site.
2088 case $CONFIG_SITE in #((
2089 -*) ac_site_file1=./$CONFIG_SITE;;
2090 */*) ac_site_file1=$CONFIG_SITE;;
2091 *) ac_site_file1=./$CONFIG_SITE;;
2093 elif test "x$prefix" != xNONE; then
2094 ac_site_file1=$prefix/share/config.site
2095 ac_site_file2=$prefix/etc/config.site
2097 ac_site_file1=$ac_default_prefix/share/config.site
2098 ac_site_file2=$ac_default_prefix/etc/config.site
2100 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2102 test "x$ac_site_file" = xNONE && continue
2103 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2105 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2106 sed 's/^/| /' "$ac_site_file" >&5
2108 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2110 as_fn_error $? "failed to load site script $ac_site_file
2111 See \`config.log' for more details" "$LINENO" 5; }
2115 if test -r "$cache_file"; then
2116 # Some versions of bash will fail to source /dev/null (special files
2117 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2118 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2120 $as_echo "$as_me: loading cache $cache_file" >&6;}
2122 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2123 *) . "./$cache_file";;
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2128 $as_echo "$as_me: creating cache $cache_file" >&6;}
2132 # Check that the precious variables saved in the cache have kept the same
2134 ac_cache_corrupted=false
2135 for ac_var in $ac_precious_vars; do
2136 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2137 eval ac_new_set=\$ac_env_${ac_var}_set
2138 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2139 eval ac_new_val=\$ac_env_${ac_var}_value
2140 case $ac_old_set,$ac_new_set in
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2143 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2144 ac_cache_corrupted=: ;;
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2147 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2148 ac_cache_corrupted=: ;;
2151 if test "x$ac_old_val" != "x$ac_new_val"; then
2152 # differences in whitespace do not lead to failure.
2153 ac_old_val_w=`echo x $ac_old_val`
2154 ac_new_val_w=`echo x $ac_new_val`
2155 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2157 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2158 ac_cache_corrupted=:
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2161 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2162 eval $ac_var=\$ac_old_val
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2165 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2167 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2170 # Pass precious variables to config.status.
2171 if test "$ac_new_set" = set; then
2173 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 *) ac_arg=$ac_var=$ac_new_val ;;
2176 case " $ac_configure_args " in
2177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2178 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2182 if $ac_cache_corrupted; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2186 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2187 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2189 ## -------------------- ##
2190 ## Main body of script. ##
2191 ## -------------------- ##
2194 ac_cpp='$CPP $CPPFLAGS'
2195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201 for ac_dir in config "$srcdir"/config; do
2202 if test -f "$ac_dir/install-sh"; then
2204 ac_install_sh="$ac_aux_dir/install-sh -c"
2206 elif test -f "$ac_dir/install.sh"; then
2208 ac_install_sh="$ac_aux_dir/install.sh -c"
2210 elif test -f "$ac_dir/shtool"; then
2212 ac_install_sh="$ac_aux_dir/shtool install -c"
2216 if test -z "$ac_aux_dir"; then
2217 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2220 # These three variables are undocumented and unsupported,
2221 # and are intended to be withdrawn in a future Autoconf release.
2222 # They can cause serious problems if a builder's source tree is in a directory
2223 # whose full name contains unusual characters.
2224 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2225 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2226 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2230 ac_config_files="$ac_config_files rtaudio-config librtaudio.pc Makefile tests/Makefile"
2233 # Fill GXX with something before test.
2245 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2246 if test -n "$ac_tool_prefix"; then
2247 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2248 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250 $as_echo_n "checking for $ac_word... " >&6; }
2251 if ${ac_cv_path_PKG_CONFIG+:} false; then :
2252 $as_echo_n "(cached) " >&6
2256 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2278 if test -n "$PKG_CONFIG"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2280 $as_echo "$PKG_CONFIG" >&6; }
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2283 $as_echo "no" >&6; }
2288 if test -z "$ac_cv_path_PKG_CONFIG"; then
2289 ac_pt_PKG_CONFIG=$PKG_CONFIG
2290 # Extract the first word of "pkg-config", so it can be a program name with args.
2291 set dummy pkg-config; ac_word=$2
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2295 $as_echo_n "(cached) " >&6
2297 case $ac_pt_PKG_CONFIG in
2299 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2320 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2321 if test -n "$ac_pt_PKG_CONFIG"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2323 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2326 $as_echo "no" >&6; }
2329 if test "x$ac_pt_PKG_CONFIG" = x; then
2332 case $cross_compiling:$ac_tool_warned in
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2336 ac_tool_warned=yes ;;
2338 PKG_CONFIG=$ac_pt_PKG_CONFIG
2341 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2345 if test -n "$PKG_CONFIG"; then
2346 _pkg_min_version=0.9.0
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2348 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2349 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2351 $as_echo "yes" >&6; }
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2354 $as_echo "no" >&6; }
2361 # Checks for programs.
2363 ac_cpp='$CXXCPP $CPPFLAGS'
2364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2367 if test -z "$CXX"; then
2368 if test -n "$CCC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 for ac_prog in g++ CC c++ cxx
2374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2377 $as_echo_n "checking for $ac_word... " >&6; }
2378 if ${ac_cv_prog_CXX+:} false; then :
2379 $as_echo_n "(cached) " >&6
2381 if test -n "$CXX"; then
2382 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 if test -n "$CXX"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2404 $as_echo "$CXX" >&6; }
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2407 $as_echo "no" >&6; }
2411 test -n "$CXX" && break
2414 if test -z "$CXX"; then
2416 for ac_prog in g++ CC c++ cxx
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419 set dummy $ac_prog; ac_word=$2
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2423 $as_echo_n "(cached) " >&6
2425 if test -n "$ac_ct_CXX"; then
2426 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_ac_ct_CXX="$ac_prog"
2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2446 if test -n "$ac_ct_CXX"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2448 $as_echo "$ac_ct_CXX" >&6; }
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451 $as_echo "no" >&6; }
2455 test -n "$ac_ct_CXX" && break
2458 if test "x$ac_ct_CXX" = x; then
2461 case $cross_compiling:$ac_tool_warned in
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2465 ac_tool_warned=yes ;;
2473 # Provide some information about the compiler.
2474 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2477 for ac_option in --version -v -V -qversion; do
2478 { { ac_try="$ac_compiler $ac_option >&5"
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484 $as_echo "$ac_try_echo"; } >&5
2485 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2487 if test -s conftest.err; then
2489 ... rest of stderr output deleted ...
2490 10q' conftest.err >conftest.er1
2491 cat conftest.er1 >&5
2493 rm -f conftest.er1 conftest.err
2494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2495 test $ac_status = 0; }
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2509 ac_clean_files_save=$ac_clean_files
2510 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2511 # Try to create an executable without -o first, disregard a.out.
2512 # It will help us diagnose broken compilers, and finding out an intuition
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2515 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2516 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2518 # The possible output files:
2519 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2522 for ac_file in $ac_files
2525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2526 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2531 if { { ac_try="$ac_link_default"
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537 $as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_link_default") 2>&5
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; }; then :
2542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2544 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2545 # so that the user can short-circuit this test for compilers unknown to
2547 for ac_file in $ac_files ''
2549 test -f "$ac_file" || continue
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2554 # We found the default executable, but exeext='' is most
2558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2562 # We set ac_cv_exeext here because the later test for it is not
2563 # safe: cross compilers may not add the suffix if given an `-o'
2564 # argument, so we may need to know it at that point already.
2565 # Even if this section looks crufty: it has the advantage of
2572 test "$ac_cv_exeext" = no && ac_cv_exeext=
2577 if test -z "$ac_file"; then :
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 as_fn_error 77 "C++ compiler cannot create executables
2586 See \`config.log' for more details" "$LINENO" 5; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589 $as_echo "yes" >&6; }
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2592 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2594 $as_echo "$ac_file" >&6; }
2595 ac_exeext=$ac_cv_exeext
2597 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2598 ac_clean_files=$ac_clean_files_save
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2600 $as_echo_n "checking for suffix of executables... " >&6; }
2601 if { { ac_try="$ac_link"
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2607 $as_echo "$ac_try_echo"; } >&5
2608 (eval "$ac_link") 2>&5
2610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611 test $ac_status = 0; }; then :
2612 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2613 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2614 # work properly (i.e., refer to `conftest.exe'), while it won't with
2616 for ac_file in conftest.exe conftest conftest.*; do
2617 test -f "$ac_file" || continue
2619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2629 See \`config.log' for more details" "$LINENO" 5; }
2631 rm -f conftest conftest$ac_cv_exeext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2633 $as_echo "$ac_cv_exeext" >&6; }
2635 rm -f conftest.$ac_ext
2636 EXEEXT=$ac_cv_exeext
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2644 FILE *f = fopen ("conftest.out", "w");
2645 return ferror (f) || fclose (f) != 0;
2651 ac_clean_files="$ac_clean_files conftest.out"
2652 # Check that the compiler produces executables we can run. If not, either
2653 # the compiler is broken, or we cross compile.
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2655 $as_echo_n "checking whether we are cross compiling... " >&6; }
2656 if test "$cross_compiling" != yes; then
2657 { { ac_try="$ac_link"
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2663 $as_echo "$ac_try_echo"; } >&5
2664 (eval "$ac_link") 2>&5
2666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2667 test $ac_status = 0; }
2668 if { ac_try='./conftest$ac_cv_exeext'
2669 { { case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2674 $as_echo "$ac_try_echo"; } >&5
2675 (eval "$ac_try") 2>&5
2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678 test $ac_status = 0; }; }; then
2681 if test "$cross_compiling" = maybe; then
2684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "cannot run C++ compiled programs.
2687 If you meant to cross compile, use \`--host'.
2688 See \`config.log' for more details" "$LINENO" 5; }
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2693 $as_echo "$cross_compiling" >&6; }
2695 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2696 ac_clean_files=$ac_clean_files_save
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2698 $as_echo_n "checking for suffix of object files... " >&6; }
2699 if ${ac_cv_objext+:} false; then :
2700 $as_echo_n "(cached) " >&6
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2713 rm -f conftest.o conftest.obj
2714 if { { ac_try="$ac_compile"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_compile") 2>&5
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; }; then :
2725 for ac_file in conftest.o conftest.obj conftest.*; do
2726 test -f "$ac_file" || continue;
2728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2729 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2734 $as_echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739 as_fn_error $? "cannot compute suffix of object files: cannot compile
2740 See \`config.log' for more details" "$LINENO" 5; }
2742 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2745 $as_echo "$ac_cv_objext" >&6; }
2746 OBJEXT=$ac_cv_objext
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2749 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2750 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2767 if ac_fn_cxx_try_compile "$LINENO"; then :
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2777 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2778 if test $ac_compiler_gnu = yes; then
2783 ac_test_CXXFLAGS=${CXXFLAGS+set}
2784 ac_save_CXXFLAGS=$CXXFLAGS
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2786 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2787 if ${ac_cv_prog_cxx_g+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2791 ac_cxx_werror_flag=yes
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2805 if ac_fn_cxx_try_compile "$LINENO"; then :
2806 ac_cv_prog_cxx_g=yes
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2820 if ac_fn_cxx_try_compile "$LINENO"; then :
2823 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h. */
2836 if ac_fn_cxx_try_compile "$LINENO"; then :
2837 ac_cv_prog_cxx_g=yes
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2847 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2848 if test "$ac_test_CXXFLAGS" = set; then
2849 CXXFLAGS=$ac_save_CXXFLAGS
2850 elif test $ac_cv_prog_cxx_g = yes; then
2851 if test "$GXX" = yes; then
2857 if test "$GXX" = yes; then
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_RANLIB+:} false; then :
2875 $as_echo_n "(cached) " >&6
2877 if test -n "$RANLIB"; then
2878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 RANLIB=$ac_cv_prog_RANLIB
2898 if test -n "$RANLIB"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2900 $as_echo "$RANLIB" >&6; }
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2908 if test -z "$ac_cv_prog_RANLIB"; then
2909 ac_ct_RANLIB=$RANLIB
2910 # Extract the first word of "ranlib", so it can be a program name with args.
2911 set dummy ranlib; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 if test -n "$ac_ct_RANLIB"; then
2918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_RANLIB="ranlib"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2938 if test -n "$ac_ct_RANLIB"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2940 $as_echo "$ac_ct_RANLIB" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2946 if test "x$ac_ct_RANLIB" = x; then
2949 case $cross_compiling:$ac_tool_warned in
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 ac_tool_warned=yes ;;
2955 RANLIB=$ac_ct_RANLIB
2958 RANLIB="$ac_cv_prog_RANLIB"
2961 # Extract the first word of "ar", so it can be a program name with args.
2962 set dummy ar; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_path_AR+:} false; then :
2966 $as_echo_n "(cached) " >&6
2970 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
2993 if test -n "$AR"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2995 $as_echo "$AR" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3002 if [ $AR = "no" ] ; then
3003 as_fn_error $? "\"Could not find ar - needed to create a library\"" "$LINENO" 5;
3006 # Checks for header files.
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 if test -n "$ac_tool_prefix"; then
3013 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_CC+:} false; then :
3018 $as_echo_n "(cached) " >&6
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3051 if test -z "$ac_cv_prog_CC"; then
3053 # Extract the first word of "gcc", so it can be a program name with args.
3054 set dummy gcc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3058 $as_echo_n "(cached) " >&6
3060 if test -n "$ac_ct_CC"; then
3061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_ac_ct_CC="gcc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083 $as_echo "$ac_ct_CC" >&6; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3089 if test "x$ac_ct_CC" = x; then
3092 case $cross_compiling:$ac_tool_warned in
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096 ac_tool_warned=yes ;;
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3107 set dummy ${ac_tool_prefix}cc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_CC="${ac_tool_prefix}cc"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3145 if test -z "$CC"; then
3146 # Extract the first word of "cc", so it can be a program name with args.
3147 set dummy cc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3165 ac_prog_rejected=yes
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test $ac_prog_rejected = yes; then
3177 # We found a bogon in the path, so make sure we never use it.
3178 set dummy $ac_cv_prog_CC
3180 if test $# != 0; then
3181 # We chose a different compiler from the bogus one.
3182 # However, it has the same basename, so the bogon will be chosen
3183 # first if we set CC to just the basename; use the full file name.
3185 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3201 if test -z "$CC"; then
3202 if test -n "$ac_tool_prefix"; then
3203 for ac_prog in cl.exe
3205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if ${ac_cv_prog_CC+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 if test -n "$CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3242 test -n "$CC" && break
3245 if test -z "$CC"; then
3247 for ac_prog in cl.exe
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3254 $as_echo_n "(cached) " >&6
3256 if test -n "$ac_ct_CC"; then
3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_ac_ct_CC="$ac_prog"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3277 if test -n "$ac_ct_CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3279 $as_echo "$ac_ct_CC" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3286 test -n "$ac_ct_CC" && break
3289 if test "x$ac_ct_CC" = x; then
3292 case $cross_compiling:$ac_tool_warned in
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296 ac_tool_warned=yes ;;
3305 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "no acceptable C compiler found in \$PATH
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 # Provide some information about the compiler.
3311 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3314 for ac_option in --version -v -V -qversion; do
3315 { { ac_try="$ac_compiler $ac_option >&5"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3324 if test -s conftest.err; then
3326 ... rest of stderr output deleted ...
3327 10q' conftest.err >conftest.er1
3328 cat conftest.er1 >&5
3330 rm -f conftest.er1 conftest.err
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3337 if ${ac_cv_c_compiler_gnu+:} false; then :
3338 $as_echo_n "(cached) " >&6
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3354 if ac_fn_c_try_compile "$LINENO"; then :
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3365 if test $ac_compiler_gnu = yes; then
3370 ac_test_CFLAGS=${CFLAGS+set}
3371 ac_save_CFLAGS=$CFLAGS
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3374 if ${ac_cv_prog_cc_g+:} false; then :
3375 $as_echo_n "(cached) " >&6
3377 ac_save_c_werror_flag=$ac_c_werror_flag
3378 ac_c_werror_flag=yes
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 if ac_fn_c_try_compile "$LINENO"; then :
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3423 if ac_fn_c_try_compile "$LINENO"; then :
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_c_werror_flag=$ac_save_c_werror_flag
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3434 $as_echo "$ac_cv_prog_cc_g" >&6; }
3435 if test "$ac_test_CFLAGS" = set; then
3436 CFLAGS=$ac_save_CFLAGS
3437 elif test $ac_cv_prog_cc_g = yes; then
3438 if test "$GCC" = yes; then
3444 if test "$GCC" = yes; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3452 if ${ac_cv_prog_cc_c89+:} false; then :
3453 $as_echo_n "(cached) " >&6
3455 ac_cv_prog_cc_c89=no
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463 struct buf { int x; };
3464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465 static char *e (p, i)
3471 static char *f (char * (*g) (char **, int), char **p, ...)
3476 s = g (p, va_arg (v,int));
3481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482 function prototypes and stuff, but not '\xHH' hex character constants.
3483 These don't provoke an error unfortunately, instead are silently treated
3484 as 'x'. The following induces an error, until -std is added to get
3485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486 array size at least. It's necessary to write '\x00'==0 to get something
3487 that's true only with -std. */
3488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491 inside strings and character constants. */
3493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3495 int test (int i, double x);
3496 struct s1 {int (*f) (int a);};
3497 struct s2 {int (*f) (double a);};
3498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512 CC="$ac_save_CC $ac_arg"
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514 ac_cv_prog_cc_c89=$ac_arg
3516 rm -f core conftest.err conftest.$ac_objext
3517 test "x$ac_cv_prog_cc_c89" != "xno" && break
3519 rm -f conftest.$ac_ext
3524 case "x$ac_cv_prog_cc_c89" in
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527 $as_echo "none needed" >&6; } ;;
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530 $as_echo "unsupported" >&6; } ;;
3532 CC="$CC $ac_cv_prog_cc_c89"
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3536 if test "x$ac_cv_prog_cc_c89" != xno; then :
3541 ac_cpp='$CPP $CPPFLAGS'
3542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3553 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3554 # On Suns, sometimes $CPP names a directory.
3555 if test -n "$CPP" && test -d "$CPP"; then
3558 if test -z "$CPP"; then
3559 if ${ac_cv_prog_CPP+:} false; then :
3560 $as_echo_n "(cached) " >&6
3562 # Double quotes because CPP needs to be expanded
3563 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3566 for ac_c_preproc_warn_flag in '' yes
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3577 # include <limits.h>
3579 # include <assert.h>
3583 if ac_fn_c_try_cpp "$LINENO"; then :
3586 # Broken: fails on valid input.
3589 rm -f conftest.err conftest.i conftest.$ac_ext
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <ac_nonexistent.h>
3597 if ac_fn_c_try_cpp "$LINENO"; then :
3598 # Broken: success on invalid input.
3601 # Passes both tests.
3605 rm -f conftest.err conftest.i conftest.$ac_ext
3608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3609 rm -f conftest.i conftest.err conftest.$ac_ext
3610 if $ac_preproc_ok; then :
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3623 $as_echo "$CPP" >&6; }
3625 for ac_c_preproc_warn_flag in '' yes
3627 # Use a header file that comes with gcc, so configuring glibc
3628 # with a fresh cross-compiler works.
3629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3630 # <limits.h> exists even on freestanding compilers.
3631 # On the NeXT, cc -E runs the code through the compiler's parser,
3632 # not just through cpp. "Syntax error" is here to catch this case.
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3636 # include <limits.h>
3638 # include <assert.h>
3642 if ac_fn_c_try_cpp "$LINENO"; then :
3645 # Broken: fails on valid input.
3648 rm -f conftest.err conftest.i conftest.$ac_ext
3650 # OK, works on sane cases. Now check whether nonexistent headers
3651 # can be detected and how.
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654 #include <ac_nonexistent.h>
3656 if ac_fn_c_try_cpp "$LINENO"; then :
3657 # Broken: success on invalid input.
3660 # Passes both tests.
3664 rm -f conftest.err conftest.i conftest.$ac_ext
3667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668 rm -f conftest.i conftest.err conftest.$ac_ext
3669 if $ac_preproc_ok; then :
3672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3675 See \`config.log' for more details" "$LINENO" 5; }
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3686 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3687 if ${ac_cv_path_GREP+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 if test -z "$GREP"; then
3691 ac_path_GREP_found=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3697 test -z "$as_dir" && as_dir=.
3698 for ac_prog in grep ggrep; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3701 as_fn_executable_p "$ac_path_GREP" || continue
3702 # Check for GNU ac_path_GREP and select it if it is found.
3703 # Check for GNU $ac_path_GREP
3704 case `"$ac_path_GREP" --version 2>&1` in
3706 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3709 $as_echo_n 0123456789 >"conftest.in"
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 $as_echo 'GREP' >> "conftest.nl"
3716 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718 as_fn_arith $ac_count + 1 && ac_count=$as_val
3719 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_GREP="$ac_path_GREP"
3722 ac_path_GREP_max=$ac_count
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3730 $ac_path_GREP_found && break 3
3735 if test -z "$ac_cv_path_GREP"; then
3736 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3739 ac_cv_path_GREP=$GREP
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3744 $as_echo "$ac_cv_path_GREP" >&6; }
3745 GREP="$ac_cv_path_GREP"
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3749 $as_echo_n "checking for egrep... " >&6; }
3750 if ${ac_cv_path_EGREP+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3754 then ac_cv_path_EGREP="$GREP -E"
3756 if test -z "$EGREP"; then
3757 ac_path_EGREP_found=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763 test -z "$as_dir" && as_dir=.
3764 for ac_prog in egrep; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3767 as_fn_executable_p "$ac_path_EGREP" || continue
3768 # Check for GNU ac_path_EGREP and select it if it is found.
3769 # Check for GNU $ac_path_EGREP
3770 case `"$ac_path_EGREP" --version 2>&1` in
3772 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3775 $as_echo_n 0123456789 >"conftest.in"
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 $as_echo 'EGREP' >> "conftest.nl"
3782 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784 as_fn_arith $ac_count + 1 && ac_count=$as_val
3785 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_EGREP="$ac_path_EGREP"
3788 ac_path_EGREP_max=$ac_count
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796 $ac_path_EGREP_found && break 3
3801 if test -z "$ac_cv_path_EGREP"; then
3802 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3805 ac_cv_path_EGREP=$EGREP
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3811 $as_echo "$ac_cv_path_EGREP" >&6; }
3812 EGREP="$ac_cv_path_EGREP"
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3816 $as_echo_n "checking for ANSI C header files... " >&6; }
3817 if ${ac_cv_header_stdc+:} false; then :
3818 $as_echo_n "(cached) " >&6
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3835 if ac_fn_c_try_compile "$LINENO"; then :
3836 ac_cv_header_stdc=yes
3838 ac_cv_header_stdc=no
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 if test $ac_cv_header_stdc = yes; then
3843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850 $EGREP "memchr" >/dev/null 2>&1; then :
3853 ac_cv_header_stdc=no
3859 if test $ac_cv_header_stdc = yes; then
3860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3867 $EGREP "free" >/dev/null 2>&1; then :
3870 ac_cv_header_stdc=no
3876 if test $ac_cv_header_stdc = yes; then
3877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3878 if test "$cross_compiling" = yes; then :
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3885 #if ((' ' & 0x0FF) == 0x020)
3886 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3887 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3889 # define ISLOWER(c) \
3890 (('a' <= (c) && (c) <= 'i') \
3891 || ('j' <= (c) && (c) <= 'r') \
3892 || ('s' <= (c) && (c) <= 'z'))
3893 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3901 for (i = 0; i < 256; i++)
3902 if (XOR (islower (i), ISLOWER (i))
3903 || toupper (i) != TOUPPER (i))
3908 if ac_fn_c_try_run "$LINENO"; then :
3911 ac_cv_header_stdc=no
3913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3914 conftest.$ac_objext conftest.beam conftest.$ac_ext
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3920 $as_echo "$ac_cv_header_stdc" >&6; }
3921 if test $ac_cv_header_stdc = yes; then
3923 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3927 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3928 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3929 inttypes.h stdint.h unistd.h
3931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3932 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3935 cat >>confdefs.h <<_ACEOF
3936 #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 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3948 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3949 cat >>confdefs.h <<_ACEOF
3950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile debug version" >&5
3960 $as_echo_n "checking whether to compile debug version... " >&6; }
3961 # Check whether --enable-debug was given.
3962 if test "${enable_debug+set}" = set; then :
3963 enableval=$enable_debug; cppflag=-D__RTAUDIO_DEBUG__
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3967 $as_echo "yes" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3978 # Checks for functions
3979 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
3980 if test "x$ac_cv_func_gettimeofday" = xyes; then :
3981 cppflag="$cppflag -DHAVE_GETTIMEOFDAY"
3985 # For -I and -D flags
3986 CPPFLAGS="$CPPFLAGS $cppflag"
3988 # For debugging and optimization ... overwrite default because it has both -g and -O2
3989 #CXXFLAGS="$CXXFLAGS $cxxflag"
3992 # Check compiler and use -Wall if gnu.
3993 if test $GXX = "yes" ; then
3998 CXXFLAGS="$CXXFLAGS $cxxflag"
4000 # Make sure we can run config.sub.
4001 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4002 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4005 $as_echo_n "checking build system type... " >&6; }
4006 if ${ac_cv_build+:} false; then :
4007 $as_echo_n "(cached) " >&6
4009 ac_build_alias=$build_alias
4010 test "x$ac_build_alias" = x &&
4011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4012 test "x$ac_build_alias" = x &&
4013 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4015 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4019 $as_echo "$ac_cv_build" >&6; }
4020 case $ac_cv_build in
4022 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4025 ac_save_IFS=$IFS; IFS='-'
4031 # Remember, the first character of IFS is used to create $*,
4032 # except with old shells:
4035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4039 $as_echo_n "checking host system type... " >&6; }
4040 if ${ac_cv_host+:} false; then :
4041 $as_echo_n "(cached) " >&6
4043 if test "x$host_alias" = x; then
4044 ac_cv_host=$ac_cv_build
4046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4047 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4052 $as_echo "$ac_cv_host" >&6; }
4055 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4058 ac_save_IFS=$IFS; IFS='-'
4064 # Remember, the first character of IFS is used to create $*,
4065 # except with old shells:
4068 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4072 sharedlib="librtaudio.so"
4074 sharedname="librtaudio.so.\$(RELEASE)"
4076 libflags="-shared -Wl,-soname,\$(SHARED).\$(MAJOR) -o \$(SHARED).\$(RELEASE)"
4080 sharedlib="librtaudio.dylib"
4082 sharedname="librtaudio.\$(RELEASE).dylib"
4084 libflags="-dynamiclib -o librtaudio.\$(RELEASE).dylib"
4088 # Checks for package options and external software
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audio API" >&5
4094 $as_echo_n "checking for audio API... " >&6; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
4098 $as_echo "using OSS" >&6; }
4099 api="$api -D__LINUX_OSS__"
4100 LIBS="$LIBS -lossaudio"
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4102 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4103 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
4104 $as_echo_n "(cached) " >&6
4106 ac_check_lib_save_LIBS=$LIBS
4107 LIBS="-lpthread $LIBS"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4111 /* Override any GCC internal prototype to avoid an error.
4112 Use char because int might match the return type of a GCC
4113 builtin and then its argument prototype would still apply. */
4117 char pthread_create ();
4121 return pthread_create ();
4126 if ac_fn_c_try_link "$LINENO"; then :
4127 ac_cv_lib_pthread_pthread_create=yes
4129 ac_cv_lib_pthread_pthread_create=no
4131 rm -f core conftest.err conftest.$ac_objext \
4132 conftest$ac_exeext conftest.$ac_ext
4133 LIBS=$ac_check_lib_save_LIBS
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4136 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4137 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
4138 cat >>confdefs.h <<_ACEOF
4139 #define HAVE_LIBPTHREAD 1
4142 LIBS="-lpthread $LIBS"
4145 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
4152 # Check whether --with-jack was given.
4153 if test "${with_jack+set}" = set; then :
4155 api="$api -D__UNIX_JACK__"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
4157 $as_echo "using JACK" >&6; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
4159 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
4160 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 ac_check_lib_save_LIBS=$LIBS
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4168 /* Override any GCC internal prototype to avoid an error.
4169 Use char because int might match the return type of a GCC
4170 builtin and then its argument prototype would still apply. */
4174 char jack_client_open ();
4178 return jack_client_open ();
4183 if ac_fn_c_try_link "$LINENO"; then :
4184 ac_cv_lib_jack_jack_client_open=yes
4186 ac_cv_lib_jack_jack_client_open=no
4188 rm -f core conftest.err conftest.$ac_objext \
4189 conftest$ac_exeext conftest.$ac_ext
4190 LIBS=$ac_check_lib_save_LIBS
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
4193 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
4194 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
4195 cat >>confdefs.h <<_ACEOF
4196 #define HAVE_LIBJACK 1
4202 as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
4206 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
4207 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 ac_check_lib_save_LIBS=$LIBS
4211 LIBS="-lasound $LIBS"
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4215 /* Override any GCC internal prototype to avoid an error.
4216 Use char because int might match the return type of a GCC
4217 builtin and then its argument prototype would still apply. */
4221 char snd_pcm_open ();
4225 return snd_pcm_open ();
4230 if ac_fn_c_try_link "$LINENO"; then :
4231 ac_cv_lib_asound_snd_pcm_open=yes
4233 ac_cv_lib_asound_snd_pcm_open=no
4235 rm -f core conftest.err conftest.$ac_objext \
4236 conftest$ac_exeext conftest.$ac_ext
4237 LIBS=$ac_check_lib_save_LIBS
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4240 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
4241 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
4242 cat >>confdefs.h <<_ACEOF
4243 #define HAVE_LIBASOUND 1
4246 LIBS="-lasound $LIBS"
4249 as_fn_error $? "Jack support also requires the asound library!" "$LINENO" 5
4255 # Look for ALSA flag
4257 # Check whether --with-alsa was given.
4258 if test "${with_alsa+set}" = set; then :
4260 api="$api -D__LINUX_ALSA__"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
4263 $as_echo "using ALSA" >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
4265 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
4266 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
4267 $as_echo_n "(cached) " >&6
4269 ac_check_lib_save_LIBS=$LIBS
4270 LIBS="-lasound $LIBS"
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4274 /* Override any GCC internal prototype to avoid an error.
4275 Use char because int might match the return type of a GCC
4276 builtin and then its argument prototype would still apply. */
4280 char snd_pcm_open ();
4284 return snd_pcm_open ();
4289 if ac_fn_c_try_link "$LINENO"; then :
4290 ac_cv_lib_asound_snd_pcm_open=yes
4292 ac_cv_lib_asound_snd_pcm_open=no
4294 rm -f core conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4296 LIBS=$ac_check_lib_save_LIBS
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4299 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
4300 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
4301 cat >>confdefs.h <<_ACEOF
4302 #define HAVE_LIBASOUND 1
4305 LIBS="-lasound $LIBS"
4308 as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
4314 # Look for PULSE flag
4316 # Check whether --with-pulse was given.
4317 if test "${with_pulse+set}" = set; then :
4318 withval=$with_pulse;
4319 api="$api -D__LINUX_PULSE__"
4320 req="$req libpulse-simple"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using PulseAudio" >&5
4322 $as_echo "using PulseAudio" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5
4326 $as_echo_n "checking for PULSE... " >&6; }
4328 if test -n "$PULSE_CFLAGS"; then
4329 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
4330 elif test -n "$PKG_CONFIG"; then
4331 if test -n "$PKG_CONFIG" && \
4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
4333 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; }; then
4337 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
4344 if test -n "$PULSE_LIBS"; then
4345 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
4346 elif test -n "$PKG_CONFIG"; then
4347 if test -n "$PKG_CONFIG" && \
4348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5
4349 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
4351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4352 test $ac_status = 0; }; then
4353 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
4363 if test $pkg_failed = yes; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4367 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4368 _pkg_short_errors_supported=yes
4370 _pkg_short_errors_supported=no
4372 if test $_pkg_short_errors_supported = yes; then
4373 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
4375 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
4377 # Put the nasty error message in config.log where it belongs
4378 echo "$PULSE_PKG_ERRORS" >&5
4380 as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
4381 elif test $pkg_failed = untried; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 as_fn_error $? "PulseAudio support requires the pulse-simple library!" "$LINENO" 5
4386 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
4387 PULSE_LIBS=$pkg_cv_PULSE_LIBS
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4389 $as_echo "yes" >&6; }
4392 LIBS="$LIBS `pkg-config --libs libpulse-simple`"
4398 # Check whether --with-oss was given.
4399 if test "${with_oss+set}" = set; then :
4401 api="$api -D__LINUX_OSS__"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using OSS" >&5
4403 $as_echo "using OSS" >&6; }
4407 # If no audio api flags specified, use ALSA
4408 if test "$api" == ""; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ALSA" >&5
4410 $as_echo "using ALSA" >&6; }
4411 api=-D__LINUX_ALSA__
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
4415 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
4416 if ${ac_cv_lib_asound_snd_pcm_open+:} false; then :
4417 $as_echo_n "(cached) " >&6
4419 ac_check_lib_save_LIBS=$LIBS
4420 LIBS="-lasound $LIBS"
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4424 /* Override any GCC internal prototype to avoid an error.
4425 Use char because int might match the return type of a GCC
4426 builtin and then its argument prototype would still apply. */
4430 char snd_pcm_open ();
4434 return snd_pcm_open ();
4439 if ac_fn_c_try_link "$LINENO"; then :
4440 ac_cv_lib_asound_snd_pcm_open=yes
4442 ac_cv_lib_asound_snd_pcm_open=no
4444 rm -f core conftest.err conftest.$ac_objext \
4445 conftest$ac_exeext conftest.$ac_ext
4446 LIBS=$ac_check_lib_save_LIBS
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4449 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
4450 if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then :
4451 cat >>confdefs.h <<_ACEOF
4452 #define HAVE_LIBASOUND 1
4455 LIBS="-lasound $LIBS"
4458 as_fn_error $? "ALSA support requires the asound library!" "$LINENO" 5
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4464 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4465 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 ac_check_lib_save_LIBS=$LIBS
4469 LIBS="-lpthread $LIBS"
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4473 /* Override any GCC internal prototype to avoid an error.
4474 Use char because int might match the return type of a GCC
4475 builtin and then its argument prototype would still apply. */
4479 char pthread_create ();
4483 return pthread_create ();
4488 if ac_fn_c_try_link "$LINENO"; then :
4489 ac_cv_lib_pthread_pthread_create=yes
4491 ac_cv_lib_pthread_pthread_create=no
4493 rm -f core conftest.err conftest.$ac_objext \
4494 conftest$ac_exeext conftest.$ac_ext
4495 LIBS=$ac_check_lib_save_LIBS
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4498 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4499 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
4500 cat >>confdefs.h <<_ACEOF
4501 #define HAVE_LIBPTHREAD 1
4504 LIBS="-lpthread $LIBS"
4507 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
4514 # Check whether --with-jack was given.
4515 if test "${with_jack+set}" = set; then :
4517 api="$api -D__UNIX_JACK__"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using JACK" >&5
4519 $as_echo "using JACK" >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack_client_open in -ljack" >&5
4521 $as_echo_n "checking for jack_client_open in -ljack... " >&6; }
4522 if ${ac_cv_lib_jack_jack_client_open+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 ac_check_lib_save_LIBS=$LIBS
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4530 /* Override any GCC internal prototype to avoid an error.
4531 Use char because int might match the return type of a GCC
4532 builtin and then its argument prototype would still apply. */
4536 char jack_client_open ();
4540 return jack_client_open ();
4545 if ac_fn_c_try_link "$LINENO"; then :
4546 ac_cv_lib_jack_jack_client_open=yes
4548 ac_cv_lib_jack_jack_client_open=no
4550 rm -f core conftest.err conftest.$ac_objext \
4551 conftest$ac_exeext conftest.$ac_ext
4552 LIBS=$ac_check_lib_save_LIBS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_client_open" >&5
4555 $as_echo "$ac_cv_lib_jack_jack_client_open" >&6; }
4556 if test "x$ac_cv_lib_jack_jack_client_open" = xyes; then :
4557 cat >>confdefs.h <<_ACEOF
4558 #define HAVE_LIBJACK 1
4564 as_fn_error $? "JACK support requires the jack library!" "$LINENO" 5
4570 # AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
4571 # LIBS="$LIBS -framework jackmp" ], )
4574 # Look for Core flag
4576 # Check whether --with-core was given.
4577 if test "${with_core+set}" = set; then :
4579 api="$api -D__MACOSX_CORE__"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
4581 $as_echo "using CoreAudio" >&6; }
4582 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
4583 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
4586 as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
4590 LIBS="$LIBS -framework CoreAudio -framework CoreFoundation"
4594 # If no audio api flags specified, use CoreAudio
4595 if test "$api" == ""; then
4596 api=-D__MACOSX_CORE__
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using CoreAudio" >&5
4599 $as_echo "using CoreAudio" >&6; }
4600 ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
4601 if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
4604 as_fn_error $? "CoreAudio header files not found!" "$LINENO" 5
4608 LIBS="-framework CoreAudio -framework CoreFoundation"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4613 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4614 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
4615 $as_echo_n "(cached) " >&6
4617 ac_check_lib_save_LIBS=$LIBS
4618 LIBS="-lpthread $LIBS"
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 /* Override any GCC internal prototype to avoid an error.
4623 Use char because int might match the return type of a GCC
4624 builtin and then its argument prototype would still apply. */
4628 char pthread_create ();
4632 return pthread_create ();
4637 if ac_fn_c_try_link "$LINENO"; then :
4638 ac_cv_lib_pthread_pthread_create=yes
4640 ac_cv_lib_pthread_pthread_create=no
4642 rm -f core conftest.err conftest.$ac_objext \
4643 conftest$ac_exeext conftest.$ac_ext
4644 LIBS=$ac_check_lib_save_LIBS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4647 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4648 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
4649 cat >>confdefs.h <<_ACEOF
4650 #define HAVE_LIBPTHREAD 1
4653 LIBS="-lpthread $LIBS"
4656 as_fn_error $? "RtAudio requires the pthread library!" "$LINENO" 5
4663 # Check whether --with-asio was given.
4664 if test "${with_asio+set}" = set; then :
4666 api="$api -D__WINDOWS_ASIO__"
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ASIO" >&5
4668 $as_echo "using ASIO" >&6; }
4669 objects="asio.o asiodrivers.o asiolist.o iasiothiscallresolver.o"
4674 # Look for DirectSound flag
4676 # Check whether --with-ds was given.
4677 if test "${with_ds+set}" = set; then :
4679 api="$api -D__WINDOWS_DS__"
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
4681 $as_echo "using DirectSound" >&6; }
4682 LIBS="-ldsound -lwinmm $LIBS"
4686 # If no audio api flags specified, use DirectSound
4687 if test "$api" == ""; then
4688 api=-D__WINDOWS_DS__
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using DirectSound" >&5
4691 $as_echo "using DirectSound" >&6; }
4692 LIBS="-ldsound -lwinmm $LIBS"
4695 LIBS="-lole32 $LIBS"
4699 # Default case for unknown realtime systems.
4700 as_fn_error $? "Unknown system type for realtime support!" "$LINENO" 5
4704 CPPFLAGS="$CPPFLAGS $api"
4706 cat >confcache <<\_ACEOF
4707 # This file is a shell script that caches the results of configure
4708 # tests run on this system so they can be shared between configure
4709 # scripts and configure runs, see configure's option --config-cache.
4710 # It is not useful on other systems. If it contains results you don't
4711 # want to keep, you may remove or edit it.
4713 # config.status only pays attention to the cache file if you give it
4714 # the --recheck option to rerun configure.
4716 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4717 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4722 # The following way of writing the cache mishandles newlines in values,
4723 # but we know of no workaround that is simple, portable, and efficient.
4724 # So, we kill variables containing newlines.
4725 # Ultrix sh set writes to stderr and can't be redirected directly,
4726 # and sets the high bit in the cache file unless we assign to the vars.
4728 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4729 eval ac_val=\$$ac_var
4733 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4734 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4737 _ | IFS | as_nl) ;; #(
4738 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4739 *) { eval $ac_var=; unset $ac_var;} ;;
4745 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4746 *${as_nl}ac_space=\ *)
4747 # `set' does not quote correctly, so add quotes: double-quote
4748 # substitution turns \\\\ into \\, and sed turns \\ into \.
4751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4754 # `set' quotes correctly as required by POSIX, so do not add quotes.
4755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4764 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4766 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4768 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4769 if test -w "$cache_file"; then
4770 if test "x$cache_file" != "x/dev/null"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4772 $as_echo "$as_me: updating cache $cache_file" >&6;}
4773 if test ! -f "$cache_file" || test -h "$cache_file"; then
4774 cat confcache >"$cache_file"
4776 case $cache_file in #(
4778 mv -f confcache "$cache_file"$$ &&
4779 mv -f "$cache_file"$$ "$cache_file" ;; #(
4781 mv -f confcache "$cache_file" ;;
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4787 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4792 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4793 # Let make expand exec_prefix.
4794 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4796 # Transform confdefs.h into DEFS.
4797 # Protect against shell expansion while executing Makefile rules.
4798 # Protect against Makefile macro expansion.
4800 # If the first sed substitution is executed (which looks for macros that
4801 # take arguments), then branch to the quote section. Otherwise,
4802 # look for a macro that doesn't take arguments.
4812 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4814 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4818 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4831 DEFS=`sed -n "$ac_script" confdefs.h`
4837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4838 # 1. Remove the extension, and $U if already installed.
4839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4840 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4842 # will be set to the directory where LIBOBJS objects are built.
4843 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4844 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4848 LTLIBOBJS=$ac_ltlibobjs
4852 : "${CONFIG_STATUS=./config.status}"
4854 ac_clean_files_save=$ac_clean_files
4855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4857 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4859 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4861 # Generated by $as_me.
4862 # Run this file to recreate the current configuration.
4863 # Compiler output produced by configure, useful for debugging
4864 # configure, is in config.log if it exists.
4870 SHELL=\${CONFIG_SHELL-$SHELL}
4873 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4874 ## -------------------- ##
4875 ## M4sh Initialization. ##
4876 ## -------------------- ##
4878 # Be more Bourne compatible
4879 DUALCASE=1; export DUALCASE # for MKS sh
4880 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4883 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4884 # is contrary to our usage. Disable this feature.
4885 alias -g '${1+"$@"}'='"$@"'
4886 setopt NO_GLOB_SUBST
4888 case `(set -o) 2>/dev/null` in #(
4900 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4901 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4904 # Prefer a ksh shell builtin over an external printf program on Solaris,
4905 # but without wasting forks for bash or zsh.
4906 if test -z "$BASH_VERSION$ZSH_VERSION" \
4907 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4908 as_echo='print -r --'
4909 as_echo_n='print -rn --'
4910 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4911 as_echo='printf %s\n'
4912 as_echo_n='printf %s'
4914 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4915 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4916 as_echo_n='/usr/ucb/echo -n'
4918 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4919 as_echo_n_body='eval
4923 expr "X$arg" : "X\\(.*\\)$as_nl";
4924 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4926 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4928 export as_echo_n_body
4929 as_echo_n='sh -c $as_echo_n_body as_echo'
4932 as_echo='sh -c $as_echo_body as_echo'
4935 # The user is always right.
4936 if test "${PATH_SEPARATOR+set}" != set; then
4938 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4939 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4946 # We need space, tab and new line, in precisely that order. Quoting is
4947 # there to prevent editors from complaining about space-tab.
4948 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4949 # splitting by setting IFS to empty value.)
4952 # Find who we are. Look in the path if we contain no directory separator.
4955 *[\\/]* ) as_myself=$0 ;;
4956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4967 # We did not find ourselves, most probably we were run as `sh COMMAND'
4968 # in which case we are not to be found in the path.
4969 if test "x$as_myself" = x; then
4972 if test ! -f "$as_myself"; then
4973 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4977 # Unset variables that we do not need and which cause bugs (e.g. in
4978 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4979 # suppresses any "Segmentation fault" message there. '((' could
4980 # trigger a bug in pdksh 5.2.14.
4981 for as_var in BASH_ENV ENV MAIL MAILPATH
4982 do eval test x\${$as_var+set} = xset \
4983 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4999 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5000 # ----------------------------------------
5001 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5002 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5003 # script with STATUS, using 1 if that was 0.
5006 as_status=$1; test $as_status -eq 0 && as_status=1
5008 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5009 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5011 $as_echo "$as_me: error: $2" >&2
5012 as_fn_exit $as_status
5016 # as_fn_set_status STATUS
5017 # -----------------------
5018 # Set $? to STATUS, without forking.
5022 } # as_fn_set_status
5026 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5036 # Portably unset VAR.
5039 { eval $1=; unset $1;}
5041 as_unset=as_fn_unset
5042 # as_fn_append VAR VALUE
5043 # ----------------------
5044 # Append the text in VALUE to the end of the definition contained in VAR. Take
5045 # advantage of any shell optimizations that allow amortized linear growth over
5046 # repeated appends, instead of the typical quadratic growth present in naive
5048 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5049 eval 'as_fn_append ()
5060 # as_fn_arith ARG...
5061 # ------------------
5062 # Perform arithmetic evaluation on the ARGs, and store the result in the
5063 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5064 # must be portable across $(()) and expr.
5065 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5066 eval 'as_fn_arith ()
5073 as_val=`expr "$@" || test $? -eq 1`
5078 if expr a : '\(a\)' >/dev/null 2>&1 &&
5079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5085 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5086 as_basename=basename
5091 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5097 as_me=`$as_basename -- "$0" ||
5098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5099 X"$0" : 'X\(//\)$' \| \
5100 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5102 sed '/^.*\/\([^/][^/]*\)\/*$/{
5116 # Avoid depending upon Character Ranges.
5117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5120 as_cr_digits='0123456789'
5121 as_cr_alnum=$as_cr_Letters$as_cr_digits
5123 ECHO_C= ECHO_N= ECHO_T=
5124 case `echo -n x` in #(((((
5126 case `echo 'xy\c'` in
5127 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5129 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5136 rm -f conf$$ conf$$.exe conf$$.file
5137 if test -d conf$$.dir; then
5138 rm -f conf$$.dir/conf$$.file
5141 mkdir conf$$.dir 2>/dev/null
5143 if (echo >conf$$.file) 2>/dev/null; then
5144 if ln -s conf$$.file conf$$ 2>/dev/null; then
5146 # ... but there are two gotchas:
5147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5149 # In both cases, we have to default to `cp -pR'.
5150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5152 elif ln conf$$.file conf$$ 2>/dev/null; then
5160 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5161 rmdir conf$$.dir 2>/dev/null
5166 # Create "$as_dir" as a directory, including parents if necessary.
5171 -*) as_dir=./$as_dir;;
5173 test -d "$as_dir" || eval $as_mkdir_p || {
5177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5178 *) as_qdir=$as_dir;;
5180 as_dirs="'$as_qdir' $as_dirs"
5181 as_dir=`$as_dirname -- "$as_dir" ||
5182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5183 X"$as_dir" : 'X\(//\)[^/]' \| \
5184 X"$as_dir" : 'X\(//\)$' \| \
5185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5186 $as_echo X"$as_dir" |
5187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5204 test -d "$as_dir" && break
5206 test -z "$as_dirs" || eval "mkdir $as_dirs"
5207 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5211 if mkdir -p . 2>/dev/null; then
5212 as_mkdir_p='mkdir -p "$as_dir"'
5214 test -d ./-p && rmdir ./-p
5219 # as_fn_executable_p FILE
5220 # -----------------------
5221 # Test if FILE is an executable regular file.
5222 as_fn_executable_p ()
5224 test -f "$1" && test -x "$1"
5225 } # as_fn_executable_p
5227 as_executable_p=as_fn_executable_p
5229 # Sed expression to map a string onto a valid CPP name.
5230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5232 # Sed expression to map a string onto a valid variable name.
5233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5237 ## ----------------------------------- ##
5238 ## Main body of $CONFIG_STATUS script. ##
5239 ## ----------------------------------- ##
5241 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5244 # Save the log message, to keep $0 and so on meaningful, and to
5245 # report actual input values of CONFIG_FILES etc. instead of their
5246 # values after options handling.
5248 This file was extended by RtAudio $as_me 4.0, which was
5249 generated by GNU Autoconf 2.69. Invocation command line was
5251 CONFIG_FILES = $CONFIG_FILES
5252 CONFIG_HEADERS = $CONFIG_HEADERS
5253 CONFIG_LINKS = $CONFIG_LINKS
5254 CONFIG_COMMANDS = $CONFIG_COMMANDS
5257 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5262 case $ac_config_files in *"
5263 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5269 # Files that config.status was made for.
5270 config_files="$ac_config_files"
5274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5276 \`$as_me' instantiates files and other configuration actions
5277 from templates according to the current configuration. Unless the files
5278 and actions are specified as TAGs, all are instantiated by default.
5280 Usage: $0 [OPTION]... [TAG]...
5282 -h, --help print this help, then exit
5283 -V, --version print version number and configuration settings, then exit
5284 --config print configuration, then exit
5285 -q, --quiet, --silent
5286 do not print progress messages
5287 -d, --debug don't remove temporary files
5288 --recheck update $as_me by reconfiguring in the same conditions
5289 --file=FILE[:TEMPLATE]
5290 instantiate the configuration file FILE
5292 Configuration files:
5295 Report bugs to <gary@music.mcgill.ca>."
5298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5299 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5301 RtAudio config.status 4.0
5302 configured by $0, generated by GNU Autoconf 2.69,
5303 with options \\"\$ac_cs_config\\"
5305 Copyright (C) 2012 Free Software Foundation, Inc.
5306 This config.status script is free software; the Free Software Foundation
5307 gives unlimited permission to copy, distribute and modify it."
5311 test -n "\$AWK" || AWK=awk
5314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5315 # The default lists apply if the user does not specify any file.
5321 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5322 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5326 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5338 # Handling of the options.
5339 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5341 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5342 $as_echo "$ac_cs_version"; exit ;;
5343 --config | --confi | --conf | --con | --co | --c )
5344 $as_echo "$ac_cs_config"; exit ;;
5345 --debug | --debu | --deb | --de | --d | -d )
5347 --file | --fil | --fi | --f )
5350 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5351 '') as_fn_error $? "missing file argument" ;;
5353 as_fn_append CONFIG_FILES " '$ac_optarg'"
5354 ac_need_defaults=false;;
5355 --he | --h | --help | --hel | -h )
5356 $as_echo "$ac_cs_usage"; exit ;;
5357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5362 -*) as_fn_error $? "unrecognized option: \`$1'
5363 Try \`$0 --help' for more information." ;;
5365 *) as_fn_append ac_config_targets " $1"
5366 ac_need_defaults=false ;;
5372 ac_configure_extra_args=
5374 if $ac_cs_silent; then
5376 ac_configure_extra_args="$ac_configure_extra_args --silent"
5380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5381 if \$ac_cs_recheck; then
5382 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5384 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5385 CONFIG_SHELL='$SHELL'
5391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5396 ## Running $as_me. ##
5402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5407 # Handling of arguments.
5408 for ac_config_target in $ac_config_targets
5410 case $ac_config_target in
5411 "rtaudio-config") CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
5412 "librtaudio.pc") CONFIG_FILES="$CONFIG_FILES librtaudio.pc" ;;
5413 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5414 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5416 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5421 # If the user did not use the arguments to specify the items to instantiate,
5422 # then the envvar interface is used. Set only those that are not.
5423 # We use the long form for the default assignment because of an extremely
5424 # bizarre bug on SunOS 4.1.3.
5425 if $ac_need_defaults; then
5426 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5429 # Have a temporary directory for convenience. Make it in the build tree
5430 # simply because there is no reason against having it here, and in addition,
5431 # creating and moving files from /tmp can sometimes cause problems.
5432 # Hook for its removal unless debugging.
5433 # Note that there is a small window in which the directory will not be cleaned:
5434 # after its creation but before its name has been assigned to `$tmp'.
5438 trap 'exit_status=$?
5440 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5442 trap 'as_fn_exit 1' 1 2 13 15
5444 # Create a (secure) tmp directory for tmp files.
5447 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5451 tmp=./conf$$-$RANDOM
5452 (umask 077 && mkdir "$tmp")
5453 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5456 # Set up the scripts for CONFIG_FILES section.
5457 # No need to generate them if there are no CONFIG_FILES.
5458 # This happens for instance with `./config.status config.h'.
5459 if test -n "$CONFIG_FILES"; then
5462 ac_cr=`echo X | tr X '\015'`
5463 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5464 # But we know of no other shell where ac_cr would be empty at this
5465 # point, so we can use a bashism as a fallback.
5466 if test "x$ac_cr" = x; then
5467 eval ac_cr=\$\'\\r\'
5469 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5470 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5476 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5481 echo "cat >conf$$subs.awk <<_ACEOF" &&
5482 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5486 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5488 for ac_last_try in false false false false false :; do
5489 . ./conf$$subs.sh ||
5490 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5492 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5493 if test $ac_delim_n = $ac_delim_num; then
5495 elif $ac_last_try; then
5496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5504 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5508 s/^/S["/; s/!.*/"]=/
5518 s/\(.\{148\}\)..*/\1/
5520 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5525 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5532 s/\(.\{148\}\)..*/\1/
5534 s/["\\]/\\&/g; s/^/"/; s/$/"/
5538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5543 ' <conf$$subs.awk | sed '
5548 ' >>$CONFIG_STATUS || ac_write_fail=1
5549 rm -f conf$$subs.awk
5550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5552 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5553 for (key in S) S_is_set[key] = 1
5559 nfields = split(line, field, "@")
5561 len = length(field[1])
5562 for (i = 2; i < nfields; i++) {
5564 keylen = length(key)
5565 if (S_is_set[key]) {
5567 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5568 len += length(value) + length(field[++i])
5579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5580 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5581 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5584 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5585 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5588 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5589 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5590 # trailing colons and then remove the whole line if VPATH becomes empty
5591 # (actually we leave an empty line to preserve line numbers).
5592 if test "x$srcdir" = x.; then
5593 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5612 fi # test -n "$CONFIG_FILES"
5615 eval set X " :F $CONFIG_FILES "
5620 :[FHLC]) ac_mode=$ac_tag; continue;;
5622 case $ac_mode$ac_tag in
5624 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5625 :[FH]-) ac_tag=-:-;;
5626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5643 -) ac_f="$ac_tmp/stdin";;
5644 *) # Look for the file first in the build tree, then in the source tree
5645 # (if the path is not absolute). The absolute path cannot be DOS-style,
5646 # because $ac_f cannot contain `:'.
5650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5652 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5654 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5655 as_fn_append ac_file_inputs " '$ac_f'"
5658 # Let's still pretend it is `configure' which instantiates (i.e., don't
5659 # use $as_me), people would be surprised to read:
5660 # /* config.h. Generated by config.status. */
5661 configure_input='Generated from '`
5662 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5664 if test x"$ac_file" != x-; then
5665 configure_input="$ac_file. $configure_input"
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5667 $as_echo "$as_me: creating $ac_file" >&6;}
5669 # Neutralize special characters interpreted by sed in replacement strings.
5670 case $configure_input in #(
5671 *\&* | *\|* | *\\* )
5672 ac_sed_conf_input=`$as_echo "$configure_input" |
5673 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5674 *) ac_sed_conf_input=$configure_input;;
5678 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5684 ac_dir=`$as_dirname -- "$ac_file" ||
5685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5686 X"$ac_file" : 'X\(//\)[^/]' \| \
5687 X"$ac_file" : 'X\(//\)$' \| \
5688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5689 $as_echo X"$ac_file" |
5690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5707 as_dir="$ac_dir"; as_fn_mkdir_p
5711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5714 # A ".." for each directory in $ac_dir_suffix.
5715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5716 case $ac_top_builddir_sub in
5717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5721 ac_abs_top_builddir=$ac_pwd
5722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5723 # for backward compatibility:
5724 ac_top_builddir=$ac_top_build_prefix
5727 .) # We are building in place.
5729 ac_top_srcdir=$ac_top_builddir_sub
5730 ac_abs_top_srcdir=$ac_pwd ;;
5731 [\\/]* | ?:[\\/]* ) # Absolute name.
5732 ac_srcdir=$srcdir$ac_dir_suffix;
5733 ac_top_srcdir=$srcdir
5734 ac_abs_top_srcdir=$srcdir ;;
5736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5737 ac_top_srcdir=$ac_top_build_prefix$srcdir
5738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5752 # If the template does not know about datarootdir, expand it.
5753 # FIXME: This hack should be removed a few years after 2.60.
5754 ac_datarootdir_hack=; ac_datarootdir_seen=
5765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5766 *datarootdir*) ac_datarootdir_seen=yes;;
5767 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5769 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5772 ac_datarootdir_hack='
5773 s&@datadir@&$datadir&g
5774 s&@docdir@&$docdir&g
5775 s&@infodir@&$infodir&g
5776 s&@localedir@&$localedir&g
5777 s&@mandir@&$mandir&g
5778 s&\\\${datarootdir}&$datarootdir&g' ;;
5782 # Neutralize VPATH when `$srcdir' = `.'.
5783 # Shell code in configure.ac might set extrasub.
5784 # FIXME: do we really want to maintain this feature?
5785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5786 ac_sed_extra="$ac_vpsub
5789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5792 s|@configure_input@|$ac_sed_conf_input|;t t
5793 s&@top_builddir@&$ac_top_builddir_sub&;t t
5794 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5795 s&@srcdir@&$ac_srcdir&;t t
5796 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5797 s&@top_srcdir@&$ac_top_srcdir&;t t
5798 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5799 s&@builddir@&$ac_builddir&;t t
5800 s&@abs_builddir@&$ac_abs_builddir&;t t
5801 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5802 $ac_datarootdir_hack
5804 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5805 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5807 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5808 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5810 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5812 which seems to be undefined. Please make sure it is defined" >&5
5813 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5814 which seems to be undefined. Please make sure it is defined" >&2;}
5816 rm -f "$ac_tmp/stdin"
5818 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5819 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5833 ac_clean_files=$ac_clean_files_save
5835 test $ac_write_fail = 0 ||
5836 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5839 # configure is writing to config.log, and then calls config.status.
5840 # config.status does its own redirection, appending to config.log.
5841 # Unfortunately, on DOS this fails, as config.log is still kept open
5842 # by configure, so config.status won't be able to write to it; its
5843 # output is simply discarded. So we exec the FD to /dev/null,
5844 # effectively closing config.log, so it can be properly (re)opened and
5845 # appended to by config.status. When coming back to configure, we
5846 # need to make the FD available again.
5847 if test "$no_create" != yes; then
5849 ac_config_status_args=
5850 test "$silent" = yes &&
5851 ac_config_status_args="$ac_config_status_args --quiet"
5853 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5855 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5856 # would make configure fail if this is the last instruction.
5857 $ac_cs_success || as_fn_exit 1
5859 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5861 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5865 chmod oug+x rtaudio-config