Merge 4.0.3 into releases
[rtaudio.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for RtAudio 4.0.
4 #
5 # Report bugs to <gary@music.mcgill.ca>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='RtAudio'
271 PACKAGE_TARNAME='rtaudio'
272 PACKAGE_VERSION='4.0'
273 PACKAGE_STRING='RtAudio 4.0'
274 PACKAGE_BUGREPORT='gary@music.mcgill.ca'
275
276 ac_unique_file="RtAudio.cpp"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GXX CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR CPP EGREP debug cflags object_path warn build build_cpu build_vendor build_os host host_cpu host_vendor host_os sound_api audio_apis frameworks LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
783
784 #
785 # Report the --help message.
786 #
787 if test "$ac_init_help" = "long"; then
788   # Omit some internal or obsolete options to make the list less imposing.
789   # This message is too long to be a string in the A/UX 3.1 sh.
790   cat <<_ACEOF
791 \`configure' configures RtAudio 4.0 to adapt to many kinds of systems.
792
793 Usage: $0 [OPTION]... [VAR=VALUE]...
794
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798 Defaults for the options are specified in brackets.
799
800 Configuration:
801   -h, --help              display this help and exit
802       --help=short        display options specific to this package
803       --help=recursive    display the short help of all the included packages
804   -V, --version           display version information and exit
805   -q, --quiet, --silent   do not print \`checking...' messages
806       --cache-file=FILE   cache test results in FILE [disabled]
807   -C, --config-cache      alias for \`--cache-file=config.cache'
808   -n, --no-create         do not create output files
809       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811 _ACEOF
812
813   cat <<_ACEOF
814 Installation directories:
815   --prefix=PREFIX         install architecture-independent files in PREFIX
816                           [$ac_default_prefix]
817   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                           [PREFIX]
819
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
824
825 For better control, use the options below.
826
827 Fine tuning of the installation directories:
828   --bindir=DIR           user executables [EPREFIX/bin]
829   --sbindir=DIR          system admin executables [EPREFIX/sbin]
830   --libexecdir=DIR       program executables [EPREFIX/libexec]
831   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835   --libdir=DIR           object code libraries [EPREFIX/lib]
836   --includedir=DIR       C header files [PREFIX/include]
837   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838   --infodir=DIR          info documentation [PREFIX/info]
839   --mandir=DIR           man documentation [PREFIX/man]
840 _ACEOF
841
842   cat <<\_ACEOF
843
844 System types:
845   --build=BUILD     configure for building on BUILD [guessed]
846   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851   case $ac_init_help in
852      short | recursive ) echo "Configuration of RtAudio 4.0:";;
853    esac
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-debug = enable various debug output
860
861 Optional Packages:
862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
864   --with-jack = choose JACK server support (mac and linux only)
865   --with-alsa = choose native ALSA API support (linux only)
866   --with-oss = choose OSS API support (linux only)
867   --with-jack = choose JACK server support (unix only)
868   --with-core = choose CoreAudio API support (mac only)
869
870 Some influential environment variables:
871   CC          C compiler command
872   CFLAGS      C compiler flags
873   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
874               nonstandard directory <lib dir>
875   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
876               headers in a nonstandard directory <include dir>
877   CXX         C++ compiler command
878   CXXFLAGS    C++ compiler flags
879   CPP         C preprocessor
880
881 Use these variables to override the choices made by `configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
883
884 Report bugs to <gary@music.mcgill.ca>.
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889   # If there are subdirs, report their specific --help.
890   ac_popdir=`pwd`
891   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892     test -d $ac_dir || continue
893     ac_builddir=.
894
895 if test "$ac_dir" != .; then
896   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897   # A "../" for each directory in $ac_dir_suffix.
898   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900   ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904   .)  # No --srcdir option.  We are building in place.
905     ac_srcdir=.
906     if test -z "$ac_top_builddir"; then
907        ac_top_srcdir=.
908     else
909        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910     fi ;;
911   [\\/]* | ?:[\\/]* )  # Absolute path.
912     ac_srcdir=$srcdir$ac_dir_suffix;
913     ac_top_srcdir=$srcdir ;;
914   *) # Relative path.
915     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916     ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
923 *)
924   case "$ac_dir" in
925   .) ac_abs_builddir=`pwd`;;
926   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927   *) ac_abs_builddir=`pwd`/"$ac_dir";;
928   esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *)
933   case ${ac_top_builddir}. in
934   .) ac_abs_top_builddir=$ac_abs_builddir;;
935   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
941 *)
942   case $ac_srcdir in
943   .) ac_abs_srcdir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *)
951   case $ac_top_srcdir in
952   .) ac_abs_top_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955   esac;;
956 esac
957
958     cd $ac_dir
959     # Check for guested configure; otherwise get Cygnus style configure.
960     if test -f $ac_srcdir/configure.gnu; then
961       echo
962       $SHELL $ac_srcdir/configure.gnu  --help=recursive
963     elif test -f $ac_srcdir/configure; then
964       echo
965       $SHELL $ac_srcdir/configure  --help=recursive
966     elif test -f $ac_srcdir/configure.ac ||
967            test -f $ac_srcdir/configure.in; then
968       echo
969       $ac_configure --help
970     else
971       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972     fi
973     cd $ac_popdir
974   done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979   cat <<\_ACEOF
980 RtAudio configure 4.0
981 generated by GNU Autoconf 2.59
982
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987   exit 0
988 fi
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
993
994 It was created by RtAudio $as_me 4.0, which was
995 generated by GNU Autoconf 2.59.  Invocation command line was
996
997   $ $0 $@
998
999 _ACEOF
1000 {
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1005
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1014
1015 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1016 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1019 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1020 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1021 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1022
1023 _ASUNAME
1024
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1027 do
1028   IFS=$as_save_IFS
1029   test -z "$as_dir" && as_dir=.
1030   echo "PATH: $as_dir"
1031 done
1032
1033 } >&5
1034
1035 cat >&5 <<_ACEOF
1036
1037
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1041
1042 _ACEOF
1043
1044
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1056 do
1057   for ac_arg
1058   do
1059     case $ac_arg in
1060     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062     | -silent | --silent | --silen | --sile | --sil)
1063       continue ;;
1064     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066     esac
1067     case $ac_pass in
1068     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069     2)
1070       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071       if test $ac_must_keep_next = true; then
1072         ac_must_keep_next=false # Got value, back to normal.
1073       else
1074         case $ac_arg in
1075           *=* | --config-cache | -C | -disable-* | --disable-* \
1076           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078           | -with-* | --with-* | -without-* | --without-* | --x)
1079             case "$ac_configure_args0 " in
1080               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081             esac
1082             ;;
1083           -* ) ac_must_keep_next=true ;;
1084         esac
1085       fi
1086       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087       # Get rid of the leading space.
1088       ac_sep=" "
1089       ;;
1090     esac
1091   done
1092 done
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log.  We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102   # Save into config.log some information that might help in debugging.
1103   {
1104     echo
1105
1106     cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111     echo
1112     # The following way of writing the cache mishandles newlines in values,
1113 {
1114   (set) 2>&1 |
1115     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116     *ac_space=\ *)
1117       sed -n \
1118         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120       ;;
1121     *)
1122       sed -n \
1123         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124       ;;
1125     esac;
1126 }
1127     echo
1128
1129     cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134     echo
1135     for ac_var in $ac_subst_vars
1136     do
1137       eval ac_val=$`echo $ac_var`
1138       echo "$ac_var='"'"'$ac_val'"'"'"
1139     done | sort
1140     echo
1141
1142     if test -n "$ac_subst_files"; then
1143       cat <<\_ASBOX
1144 ## ------------- ##
1145 ## Output files. ##
1146 ## ------------- ##
1147 _ASBOX
1148       echo
1149       for ac_var in $ac_subst_files
1150       do
1151         eval ac_val=$`echo $ac_var`
1152         echo "$ac_var='"'"'$ac_val'"'"'"
1153       done | sort
1154       echo
1155     fi
1156
1157     if test -s confdefs.h; then
1158       cat <<\_ASBOX
1159 ## ----------- ##
1160 ## confdefs.h. ##
1161 ## ----------- ##
1162 _ASBOX
1163       echo
1164       sed "/^$/d" confdefs.h | sort
1165       echo
1166     fi
1167     test "$ac_signal" != 0 &&
1168       echo "$as_me: caught signal $ac_signal"
1169     echo "$as_me: exit $exit_status"
1170   } >&5
1171   rm -f core *.core &&
1172   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173     exit $exit_status
1174      ' 0
1175 for ac_signal in 1 2 13 15; do
1176   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1179
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1184
1185 # Predefined preprocessor variables.
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1210
1211
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215   if test "x$prefix" != xNONE; then
1216     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217   else
1218     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219   fi
1220 fi
1221 for ac_site_file in $CONFIG_SITE; do
1222   if test -r "$ac_site_file"; then
1223     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225     sed 's/^/| /' "$ac_site_file" >&5
1226     . "$ac_site_file"
1227   fi
1228 done
1229
1230 if test -r "$cache_file"; then
1231   # Some versions of bash will fail to source /dev/null (special
1232   # files actually), so we avoid doing that.
1233   if test -f "$cache_file"; then
1234     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236     case $cache_file in
1237       [\\/]* | ?:[\\/]* ) . $cache_file;;
1238       *)                      . ./$cache_file;;
1239     esac
1240   fi
1241 else
1242   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244   >$cache_file
1245 fi
1246
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253   eval ac_new_set=\$ac_env_${ac_var}_set
1254   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255   eval ac_new_val="\$ac_env_${ac_var}_value"
1256   case $ac_old_set,$ac_new_set in
1257     set,)
1258       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260       ac_cache_corrupted=: ;;
1261     ,set)
1262       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264       ac_cache_corrupted=: ;;
1265     ,);;
1266     *)
1267       if test "x$ac_old_val" != "x$ac_new_val"; then
1268         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1271 echo "$as_me:   former value:  $ac_old_val" >&2;}
1272         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1273 echo "$as_me:   current value: $ac_new_val" >&2;}
1274         ac_cache_corrupted=:
1275       fi;;
1276   esac
1277   # Pass precious variables to config.status.
1278   if test "$ac_new_set" = set; then
1279     case $ac_new_val in
1280     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282     *) ac_arg=$ac_var=$ac_new_val ;;
1283     esac
1284     case " $ac_configure_args " in
1285       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1286       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287     esac
1288   fi
1289 done
1290 if $ac_cache_corrupted; then
1291   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295    { (exit 1); exit 1; }; }
1296 fi
1297
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331                               ac_config_files="$ac_config_files rtaudio-config Makefile tests/Makefile"
1332
1333
1334 # Fill GXX with something before test.
1335 GXX="no"
1336
1337
1338 # Checks for programs.
1339 ac_ext=c
1340 ac_cpp='$CPP $CPPFLAGS'
1341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 if test -n "$ac_tool_prefix"; then
1345   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1347 echo "$as_me:$LINENO: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_CC+set}" = set; then
1350   echo $ECHO_N "(cached) $ECHO_C" >&6
1351 else
1352   if test -n "$CC"; then
1353   ac_cv_prog_CC="$CC" # Let the user override the test.
1354 else
1355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1356 for as_dir in $PATH
1357 do
1358   IFS=$as_save_IFS
1359   test -z "$as_dir" && as_dir=.
1360   for ac_exec_ext in '' $ac_executable_extensions; do
1361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1362     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1364     break 2
1365   fi
1366 done
1367 done
1368
1369 fi
1370 fi
1371 CC=$ac_cv_prog_CC
1372 if test -n "$CC"; then
1373   echo "$as_me:$LINENO: result: $CC" >&5
1374 echo "${ECHO_T}$CC" >&6
1375 else
1376   echo "$as_me:$LINENO: result: no" >&5
1377 echo "${ECHO_T}no" >&6
1378 fi
1379
1380 fi
1381 if test -z "$ac_cv_prog_CC"; then
1382   ac_ct_CC=$CC
1383   # Extract the first word of "gcc", so it can be a program name with args.
1384 set dummy gcc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1388   echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390   if test -n "$ac_ct_CC"; then
1391   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1392 else
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1394 for as_dir in $PATH
1395 do
1396   IFS=$as_save_IFS
1397   test -z "$as_dir" && as_dir=.
1398   for ac_exec_ext in '' $ac_executable_extensions; do
1399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400     ac_cv_prog_ac_ct_CC="gcc"
1401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402     break 2
1403   fi
1404 done
1405 done
1406
1407 fi
1408 fi
1409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1410 if test -n "$ac_ct_CC"; then
1411   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1412 echo "${ECHO_T}$ac_ct_CC" >&6
1413 else
1414   echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1416 fi
1417
1418   CC=$ac_ct_CC
1419 else
1420   CC="$ac_cv_prog_CC"
1421 fi
1422
1423 if test -z "$CC"; then
1424   if test -n "$ac_tool_prefix"; then
1425   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1426 set dummy ${ac_tool_prefix}cc; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_prog_CC+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   if test -n "$CC"; then
1433   ac_cv_prog_CC="$CC" # Let the user override the test.
1434 else
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436 for as_dir in $PATH
1437 do
1438   IFS=$as_save_IFS
1439   test -z "$as_dir" && as_dir=.
1440   for ac_exec_ext in '' $ac_executable_extensions; do
1441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442     ac_cv_prog_CC="${ac_tool_prefix}cc"
1443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444     break 2
1445   fi
1446 done
1447 done
1448
1449 fi
1450 fi
1451 CC=$ac_cv_prog_CC
1452 if test -n "$CC"; then
1453   echo "$as_me:$LINENO: result: $CC" >&5
1454 echo "${ECHO_T}$CC" >&6
1455 else
1456   echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1458 fi
1459
1460 fi
1461 if test -z "$ac_cv_prog_CC"; then
1462   ac_ct_CC=$CC
1463   # Extract the first word of "cc", so it can be a program name with args.
1464 set dummy cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   if test -n "$ac_ct_CC"; then
1471   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1472 else
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 for as_dir in $PATH
1475 do
1476   IFS=$as_save_IFS
1477   test -z "$as_dir" && as_dir=.
1478   for ac_exec_ext in '' $ac_executable_extensions; do
1479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480     ac_cv_prog_ac_ct_CC="cc"
1481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482     break 2
1483   fi
1484 done
1485 done
1486
1487 fi
1488 fi
1489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1490 if test -n "$ac_ct_CC"; then
1491   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1492 echo "${ECHO_T}$ac_ct_CC" >&6
1493 else
1494   echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1496 fi
1497
1498   CC=$ac_ct_CC
1499 else
1500   CC="$ac_cv_prog_CC"
1501 fi
1502
1503 fi
1504 if test -z "$CC"; then
1505   # Extract the first word of "cc", so it can be a program name with args.
1506 set dummy cc; ac_word=$2
1507 echo "$as_me:$LINENO: checking for $ac_word" >&5
1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509 if test "${ac_cv_prog_CC+set}" = set; then
1510   echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512   if test -n "$CC"; then
1513   ac_cv_prog_CC="$CC" # Let the user override the test.
1514 else
1515   ac_prog_rejected=no
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 for as_dir in $PATH
1518 do
1519   IFS=$as_save_IFS
1520   test -z "$as_dir" && as_dir=.
1521   for ac_exec_ext in '' $ac_executable_extensions; do
1522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1524        ac_prog_rejected=yes
1525        continue
1526      fi
1527     ac_cv_prog_CC="cc"
1528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529     break 2
1530   fi
1531 done
1532 done
1533
1534 if test $ac_prog_rejected = yes; then
1535   # We found a bogon in the path, so make sure we never use it.
1536   set dummy $ac_cv_prog_CC
1537   shift
1538   if test $# != 0; then
1539     # We chose a different compiler from the bogus one.
1540     # However, it has the same basename, so the bogon will be chosen
1541     # first if we set CC to just the basename; use the full file name.
1542     shift
1543     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1544   fi
1545 fi
1546 fi
1547 fi
1548 CC=$ac_cv_prog_CC
1549 if test -n "$CC"; then
1550   echo "$as_me:$LINENO: result: $CC" >&5
1551 echo "${ECHO_T}$CC" >&6
1552 else
1553   echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1555 fi
1556
1557 fi
1558 if test -z "$CC"; then
1559   if test -n "$ac_tool_prefix"; then
1560   for ac_prog in cl
1561   do
1562     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_CC+set}" = set; then
1567   echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569   if test -n "$CC"; then
1570   ac_cv_prog_CC="$CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575   IFS=$as_save_IFS
1576   test -z "$as_dir" && as_dir=.
1577   for ac_exec_ext in '' $ac_executable_extensions; do
1578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581     break 2
1582   fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 CC=$ac_cv_prog_CC
1589 if test -n "$CC"; then
1590   echo "$as_me:$LINENO: result: $CC" >&5
1591 echo "${ECHO_T}$CC" >&6
1592 else
1593   echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597     test -n "$CC" && break
1598   done
1599 fi
1600 if test -z "$CC"; then
1601   ac_ct_CC=$CC
1602   for ac_prog in cl
1603 do
1604   # Extract the first word of "$ac_prog", so it can be a program name with args.
1605 set dummy $ac_prog; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$ac_ct_CC"; then
1612   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_ac_ct_CC="$ac_prog"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1631 if test -n "$ac_ct_CC"; then
1632   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1633 echo "${ECHO_T}$ac_ct_CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639   test -n "$ac_ct_CC" && break
1640 done
1641
1642   CC=$ac_ct_CC
1643 fi
1644
1645 fi
1646
1647
1648 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1649 See \`config.log' for more details." >&5
1650 echo "$as_me: error: no acceptable C compiler found in \$PATH
1651 See \`config.log' for more details." >&2;}
1652    { (exit 1); exit 1; }; }
1653
1654 # Provide some information about the compiler.
1655 echo "$as_me:$LINENO:" \
1656      "checking for C compiler version" >&5
1657 ac_compiler=`set X $ac_compile; echo $2`
1658 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1659   (eval $ac_compiler --version </dev/null >&5) 2>&5
1660   ac_status=$?
1661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662   (exit $ac_status); }
1663 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1664   (eval $ac_compiler -v </dev/null >&5) 2>&5
1665   ac_status=$?
1666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667   (exit $ac_status); }
1668 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1669   (eval $ac_compiler -V </dev/null >&5) 2>&5
1670   ac_status=$?
1671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672   (exit $ac_status); }
1673
1674 cat >conftest.$ac_ext <<_ACEOF
1675 /* confdefs.h.  */
1676 _ACEOF
1677 cat confdefs.h >>conftest.$ac_ext
1678 cat >>conftest.$ac_ext <<_ACEOF
1679 /* end confdefs.h.  */
1680
1681 int
1682 main ()
1683 {
1684
1685   ;
1686   return 0;
1687 }
1688 _ACEOF
1689 ac_clean_files_save=$ac_clean_files
1690 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1691 # Try to create an executable without -o first, disregard a.out.
1692 # It will help us diagnose broken compilers, and finding out an intuition
1693 # of exeext.
1694 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1695 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1696 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1697 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1698   (eval $ac_link_default) 2>&5
1699   ac_status=$?
1700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701   (exit $ac_status); }; then
1702   # Find the output, starting from the most likely.  This scheme is
1703 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1704 # resort.
1705
1706 # Be careful to initialize this variable, since it used to be cached.
1707 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1708 ac_cv_exeext=
1709 # b.out is created by i960 compilers.
1710 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1711 do
1712   test -f "$ac_file" || continue
1713   case $ac_file in
1714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1715         ;;
1716     conftest.$ac_ext )
1717         # This is the source file.
1718         ;;
1719     [ab].out )
1720         # We found the default executable, but exeext='' is most
1721         # certainly right.
1722         break;;
1723     *.* )
1724         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1725         # FIXME: I believe we export ac_cv_exeext for Libtool,
1726         # but it would be cool to find out if it's true.  Does anybody
1727         # maintain Libtool? --akim.
1728         export ac_cv_exeext
1729         break;;
1730     * )
1731         break;;
1732   esac
1733 done
1734 else
1735   echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: C compiler cannot create executables
1741 See \`config.log' for more details." >&2;}
1742    { (exit 77); exit 77; }; }
1743 fi
1744
1745 ac_exeext=$ac_cv_exeext
1746 echo "$as_me:$LINENO: result: $ac_file" >&5
1747 echo "${ECHO_T}$ac_file" >&6
1748
1749 # Check the compiler produces executables we can run.  If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1752 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1753 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1754 # If not cross compiling, check that we can run a simple program.
1755 if test "$cross_compiling" != yes; then
1756   if { ac_try='./$ac_file'
1757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1758   (eval $ac_try) 2>&5
1759   ac_status=$?
1760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761   (exit $ac_status); }; }; then
1762     cross_compiling=no
1763   else
1764     if test "$cross_compiling" = maybe; then
1765         cross_compiling=yes
1766     else
1767         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1768 If you meant to cross compile, use \`--host'.
1769 See \`config.log' for more details." >&5
1770 echo "$as_me: error: cannot run C compiled programs.
1771 If you meant to cross compile, use \`--host'.
1772 See \`config.log' for more details." >&2;}
1773    { (exit 1); exit 1; }; }
1774     fi
1775   fi
1776 fi
1777 echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1779
1780 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1781 ac_clean_files=$ac_clean_files_save
1782 # Check the compiler produces executables we can run.  If not, either
1783 # the compiler is broken, or we cross compile.
1784 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1785 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1786 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1787 echo "${ECHO_T}$cross_compiling" >&6
1788
1789 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1790 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1792   (eval $ac_link) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }; then
1796   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1797 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1798 # work properly (i.e., refer to `conftest.exe'), while it won't with
1799 # `rm'.
1800 for ac_file in conftest.exe conftest conftest.*; do
1801   test -f "$ac_file" || continue
1802   case $ac_file in
1803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1804     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1805           export ac_cv_exeext
1806           break;;
1807     * ) break;;
1808   esac
1809 done
1810 else
1811   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1814 See \`config.log' for more details." >&2;}
1815    { (exit 1); exit 1; }; }
1816 fi
1817
1818 rm -f conftest$ac_cv_exeext
1819 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1820 echo "${ECHO_T}$ac_cv_exeext" >&6
1821
1822 rm -f conftest.$ac_ext
1823 EXEEXT=$ac_cv_exeext
1824 ac_exeext=$EXEEXT
1825 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1826 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1827 if test "${ac_cv_objext+set}" = set; then
1828   echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830   cat >conftest.$ac_ext <<_ACEOF
1831 /* confdefs.h.  */
1832 _ACEOF
1833 cat confdefs.h >>conftest.$ac_ext
1834 cat >>conftest.$ac_ext <<_ACEOF
1835 /* end confdefs.h.  */
1836
1837 int
1838 main ()
1839 {
1840
1841   ;
1842   return 0;
1843 }
1844 _ACEOF
1845 rm -f conftest.o conftest.obj
1846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1847   (eval $ac_compile) 2>&5
1848   ac_status=$?
1849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850   (exit $ac_status); }; then
1851   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1852   case $ac_file in
1853     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1854     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1855        break;;
1856   esac
1857 done
1858 else
1859   echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1865 See \`config.log' for more details." >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
1868
1869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1870 fi
1871 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1872 echo "${ECHO_T}$ac_cv_objext" >&6
1873 OBJEXT=$ac_cv_objext
1874 ac_objext=$OBJEXT
1875 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1876 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   cat >conftest.$ac_ext <<_ACEOF
1881 /* confdefs.h.  */
1882 _ACEOF
1883 cat confdefs.h >>conftest.$ac_ext
1884 cat >>conftest.$ac_ext <<_ACEOF
1885 /* end confdefs.h.  */
1886
1887 int
1888 main ()
1889 {
1890 #ifndef __GNUC__
1891        choke me
1892 #endif
1893
1894   ;
1895   return 0;
1896 }
1897 _ACEOF
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1900   (eval $ac_compile) 2>conftest.er1
1901   ac_status=$?
1902   grep -v '^ *+' conftest.er1 >conftest.err
1903   rm -f conftest.er1
1904   cat conftest.err >&5
1905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1906   (exit $ac_status); } &&
1907          { ac_try='test -z "$ac_c_werror_flag"
1908                          || test ! -s conftest.err'
1909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910   (eval $ac_try) 2>&5
1911   ac_status=$?
1912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913   (exit $ac_status); }; } &&
1914          { ac_try='test -s conftest.$ac_objext'
1915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1916   (eval $ac_try) 2>&5
1917   ac_status=$?
1918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919   (exit $ac_status); }; }; then
1920   ac_compiler_gnu=yes
1921 else
1922   echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_compiler_gnu=no
1926 fi
1927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1929
1930 fi
1931 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1932 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1933 GCC=`test $ac_compiler_gnu = yes && echo yes`
1934 ac_test_CFLAGS=${CFLAGS+set}
1935 ac_save_CFLAGS=$CFLAGS
1936 CFLAGS="-g"
1937 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1938 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1939 if test "${ac_cv_prog_cc_g+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   cat >conftest.$ac_ext <<_ACEOF
1943 /* confdefs.h.  */
1944 _ACEOF
1945 cat confdefs.h >>conftest.$ac_ext
1946 cat >>conftest.$ac_ext <<_ACEOF
1947 /* end confdefs.h.  */
1948
1949 int
1950 main ()
1951 {
1952
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 rm -f conftest.$ac_objext
1958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1959   (eval $ac_compile) 2>conftest.er1
1960   ac_status=$?
1961   grep -v '^ *+' conftest.er1 >conftest.err
1962   rm -f conftest.er1
1963   cat conftest.err >&5
1964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965   (exit $ac_status); } &&
1966          { ac_try='test -z "$ac_c_werror_flag"
1967                          || test ! -s conftest.err'
1968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969   (eval $ac_try) 2>&5
1970   ac_status=$?
1971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972   (exit $ac_status); }; } &&
1973          { ac_try='test -s conftest.$ac_objext'
1974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975   (eval $ac_try) 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }; }; then
1979   ac_cv_prog_cc_g=yes
1980 else
1981   echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1983
1984 ac_cv_prog_cc_g=no
1985 fi
1986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1987 fi
1988 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1989 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1990 if test "$ac_test_CFLAGS" = set; then
1991   CFLAGS=$ac_save_CFLAGS
1992 elif test $ac_cv_prog_cc_g = yes; then
1993   if test "$GCC" = yes; then
1994     CFLAGS="-g -O2"
1995   else
1996     CFLAGS="-g"
1997   fi
1998 else
1999   if test "$GCC" = yes; then
2000     CFLAGS="-O2"
2001   else
2002     CFLAGS=
2003   fi
2004 fi
2005 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2006 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   ac_cv_prog_cc_stdc=no
2011 ac_save_CC=$CC
2012 cat >conftest.$ac_ext <<_ACEOF
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018 #include <stdarg.h>
2019 #include <stdio.h>
2020 #include <sys/types.h>
2021 #include <sys/stat.h>
2022 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2023 struct buf { int x; };
2024 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2025 static char *e (p, i)
2026      char **p;
2027      int i;
2028 {
2029   return p[i];
2030 }
2031 static char *f (char * (*g) (char **, int), char **p, ...)
2032 {
2033   char *s;
2034   va_list v;
2035   va_start (v,p);
2036   s = g (p, va_arg (v,int));
2037   va_end (v);
2038   return s;
2039 }
2040
2041 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2042    function prototypes and stuff, but not '\xHH' hex character constants.
2043    These don't provoke an error unfortunately, instead are silently treated
2044    as 'x'.  The following induces an error, until -std1 is added to get
2045    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2046    array size at least.  It's necessary to write '\x00'==0 to get something
2047    that's true only with -std1.  */
2048 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2049
2050 int test (int i, double x);
2051 struct s1 {int (*f) (int a);};
2052 struct s2 {int (*f) (double a);};
2053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2054 int argc;
2055 char **argv;
2056 int
2057 main ()
2058 {
2059 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 # Don't try gcc -ansi; that turns off useful extensions and
2065 # breaks some systems' header files.
2066 # AIX                   -qlanglvl=ansi
2067 # Ultrix and OSF/1      -std1
2068 # HP-UX 10.20 and later -Ae
2069 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2070 # SVR4                  -Xc -D__EXTENSIONS__
2071 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2072 do
2073   CC="$ac_save_CC $ac_arg"
2074   rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076   (eval $ac_compile) 2>conftest.er1
2077   ac_status=$?
2078   grep -v '^ *+' conftest.er1 >conftest.err
2079   rm -f conftest.er1
2080   cat conftest.err >&5
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); } &&
2083          { ac_try='test -z "$ac_c_werror_flag"
2084                          || test ! -s conftest.err'
2085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086   (eval $ac_try) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_cv_prog_cc_stdc=$ac_arg
2097 break
2098 else
2099   echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2101
2102 fi
2103 rm -f conftest.err conftest.$ac_objext
2104 done
2105 rm -f conftest.$ac_ext conftest.$ac_objext
2106 CC=$ac_save_CC
2107
2108 fi
2109
2110 case "x$ac_cv_prog_cc_stdc" in
2111   x|xno)
2112     echo "$as_me:$LINENO: result: none needed" >&5
2113 echo "${ECHO_T}none needed" >&6 ;;
2114   *)
2115     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2117     CC="$CC $ac_cv_prog_cc_stdc" ;;
2118 esac
2119
2120 # Some people use a C++ compiler to compile C.  Since we use `exit',
2121 # in C++ we need to declare it.  In case someone uses the same compiler
2122 # for both compiling C and C++ we need to have the C++ compiler decide
2123 # the declaration of exit, since it's the most demanding environment.
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #ifndef __cplusplus
2126   choke me
2127 #endif
2128 _ACEOF
2129 rm -f conftest.$ac_objext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131   (eval $ac_compile) 2>conftest.er1
2132   ac_status=$?
2133   grep -v '^ *+' conftest.er1 >conftest.err
2134   rm -f conftest.er1
2135   cat conftest.err >&5
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); } &&
2138          { ac_try='test -z "$ac_c_werror_flag"
2139                          || test ! -s conftest.err'
2140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141   (eval $ac_try) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }; } &&
2145          { ac_try='test -s conftest.$ac_objext'
2146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147   (eval $ac_try) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; }; then
2151   for ac_declaration in \
2152    '' \
2153    'extern "C" void std::exit (int) throw (); using std::exit;' \
2154    'extern "C" void std::exit (int); using std::exit;' \
2155    'extern "C" void exit (int) throw ();' \
2156    'extern "C" void exit (int);' \
2157    'void exit (int);'
2158 do
2159   cat >conftest.$ac_ext <<_ACEOF
2160 /* confdefs.h.  */
2161 _ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h.  */
2165 $ac_declaration
2166 #include <stdlib.h>
2167 int
2168 main ()
2169 {
2170 exit (42);
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 rm -f conftest.$ac_objext
2176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2177   (eval $ac_compile) 2>conftest.er1
2178   ac_status=$?
2179   grep -v '^ *+' conftest.er1 >conftest.err
2180   rm -f conftest.er1
2181   cat conftest.err >&5
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -z "$ac_c_werror_flag"
2185                          || test ! -s conftest.err'
2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187   (eval $ac_try) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; } &&
2191          { ac_try='test -s conftest.$ac_objext'
2192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193   (eval $ac_try) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }; }; then
2197   :
2198 else
2199   echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2201
2202 continue
2203 fi
2204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2205   cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211 $ac_declaration
2212 int
2213 main ()
2214 {
2215 exit (42);
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222   (eval $ac_compile) 2>conftest.er1
2223   ac_status=$?
2224   grep -v '^ *+' conftest.er1 >conftest.err
2225   rm -f conftest.er1
2226   cat conftest.err >&5
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -z "$ac_c_werror_flag"
2230                          || test ! -s conftest.err'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; } &&
2236          { ac_try='test -s conftest.$ac_objext'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242   break
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 fi
2248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2249 done
2250 rm -f conftest*
2251 if test -n "$ac_declaration"; then
2252   echo '#ifdef __cplusplus' >>confdefs.h
2253   echo $ac_declaration      >>confdefs.h
2254   echo '#endif'             >>confdefs.h
2255 fi
2256
2257 else
2258   echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 fi
2262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268
2269 ac_ext=cc
2270 ac_cpp='$CXXCPP $CPPFLAGS'
2271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2274 if test -n "$ac_tool_prefix"; then
2275   for ac_prog in $CCC g++ CC c++ cxx
2276   do
2277     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2279 echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281 if test "${ac_cv_prog_CXX+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   if test -n "$CXX"; then
2285   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300
2301 fi
2302 fi
2303 CXX=$ac_cv_prog_CXX
2304 if test -n "$CXX"; then
2305   echo "$as_me:$LINENO: result: $CXX" >&5
2306 echo "${ECHO_T}$CXX" >&6
2307 else
2308   echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2310 fi
2311
2312     test -n "$CXX" && break
2313   done
2314 fi
2315 if test -z "$CXX"; then
2316   ac_ct_CXX=$CXX
2317   for ac_prog in $CCC g++ CC c++ cxx
2318 do
2319   # Extract the first word of "$ac_prog", so it can be a program name with args.
2320 set dummy $ac_prog; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2324   echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326   if test -n "$ac_ct_CXX"; then
2327   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334   for ac_exec_ext in '' $ac_executable_extensions; do
2335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336     ac_cv_prog_ac_ct_CXX="$ac_prog"
2337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338     break 2
2339   fi
2340 done
2341 done
2342
2343 fi
2344 fi
2345 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2346 if test -n "$ac_ct_CXX"; then
2347   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2348 echo "${ECHO_T}$ac_ct_CXX" >&6
2349 else
2350   echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354   test -n "$ac_ct_CXX" && break
2355 done
2356 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2357
2358   CXX=$ac_ct_CXX
2359 fi
2360
2361
2362 # Provide some information about the compiler.
2363 echo "$as_me:$LINENO:" \
2364      "checking for C++ compiler version" >&5
2365 ac_compiler=`set X $ac_compile; echo $2`
2366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2367   (eval $ac_compiler --version </dev/null >&5) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2372   (eval $ac_compiler -v </dev/null >&5) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2377   (eval $ac_compiler -V </dev/null >&5) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }
2381
2382 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2383 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2384 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2385   echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397 #ifndef __GNUC__
2398        choke me
2399 #endif
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.$ac_objext
2406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407   (eval $ac_compile) 2>conftest.er1
2408   ac_status=$?
2409   grep -v '^ *+' conftest.er1 >conftest.err
2410   rm -f conftest.er1
2411   cat conftest.err >&5
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); } &&
2414          { ac_try='test -z "$ac_cxx_werror_flag"
2415                          || test ! -s conftest.err'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; } &&
2421          { ac_try='test -s conftest.$ac_objext'
2422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423   (eval $ac_try) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; }; then
2427   ac_compiler_gnu=yes
2428 else
2429   echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 ac_compiler_gnu=no
2433 fi
2434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2436
2437 fi
2438 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2439 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2440 GXX=`test $ac_compiler_gnu = yes && echo yes`
2441 ac_test_CXXFLAGS=${CXXFLAGS+set}
2442 ac_save_CXXFLAGS=$CXXFLAGS
2443 CXXFLAGS="-g"
2444 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2445 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2446 if test "${ac_cv_prog_cxx_g+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h.  */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h.  */
2455
2456 int
2457 main ()
2458 {
2459
2460   ;
2461   return 0;
2462 }
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466   (eval $ac_compile) 2>conftest.er1
2467   ac_status=$?
2468   grep -v '^ *+' conftest.er1 >conftest.err
2469   rm -f conftest.er1
2470   cat conftest.err >&5
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); } &&
2473          { ac_try='test -z "$ac_cxx_werror_flag"
2474                          || test ! -s conftest.err'
2475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476   (eval $ac_try) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; }; then
2486   ac_cv_prog_cxx_g=yes
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 ac_cv_prog_cxx_g=no
2492 fi
2493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494 fi
2495 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2496 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2497 if test "$ac_test_CXXFLAGS" = set; then
2498   CXXFLAGS=$ac_save_CXXFLAGS
2499 elif test $ac_cv_prog_cxx_g = yes; then
2500   if test "$GXX" = yes; then
2501     CXXFLAGS="-g -O2"
2502   else
2503     CXXFLAGS="-g"
2504   fi
2505 else
2506   if test "$GXX" = yes; then
2507     CXXFLAGS="-O2"
2508   else
2509     CXXFLAGS=
2510   fi
2511 fi
2512 for ac_declaration in \
2513    '' \
2514    'extern "C" void std::exit (int) throw (); using std::exit;' \
2515    'extern "C" void std::exit (int); using std::exit;' \
2516    'extern "C" void exit (int) throw ();' \
2517    'extern "C" void exit (int);' \
2518    'void exit (int);'
2519 do
2520   cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526 $ac_declaration
2527 #include <stdlib.h>
2528 int
2529 main ()
2530 {
2531 exit (42);
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538   (eval $ac_compile) 2>conftest.er1
2539   ac_status=$?
2540   grep -v '^ *+' conftest.er1 >conftest.err
2541   rm -f conftest.er1
2542   cat conftest.err >&5
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); } &&
2545          { ac_try='test -z "$ac_cxx_werror_flag"
2546                          || test ! -s conftest.err'
2547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548   (eval $ac_try) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; } &&
2552          { ac_try='test -s conftest.$ac_objext'
2553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554   (eval $ac_try) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; }; then
2558   :
2559 else
2560   echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2562
2563 continue
2564 fi
2565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2566   cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h.  */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h.  */
2572 $ac_declaration
2573 int
2574 main ()
2575 {
2576 exit (42);
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583   (eval $ac_compile) 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } &&
2590          { ac_try='test -z "$ac_cxx_werror_flag"
2591                          || test ! -s conftest.err'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   break
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 fi
2609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2610 done
2611 rm -f conftest*
2612 if test -n "$ac_declaration"; then
2613   echo '#ifdef __cplusplus' >>confdefs.h
2614   echo $ac_declaration      >>confdefs.h
2615   echo '#endif'             >>confdefs.h
2616 fi
2617
2618 ac_ext=c
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623
2624 if test -n "$ac_tool_prefix"; then
2625   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2627 echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2629 if test "${ac_cv_prog_RANLIB+set}" = set; then
2630   echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632   if test -n "$RANLIB"; then
2633   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638   IFS=$as_save_IFS
2639   test -z "$as_dir" && as_dir=.
2640   for ac_exec_ext in '' $ac_executable_extensions; do
2641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647 done
2648
2649 fi
2650 fi
2651 RANLIB=$ac_cv_prog_RANLIB
2652 if test -n "$RANLIB"; then
2653   echo "$as_me:$LINENO: result: $RANLIB" >&5
2654 echo "${ECHO_T}$RANLIB" >&6
2655 else
2656   echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2658 fi
2659
2660 fi
2661 if test -z "$ac_cv_prog_RANLIB"; then
2662   ac_ct_RANLIB=$RANLIB
2663   # Extract the first word of "ranlib", so it can be a program name with args.
2664 set dummy ranlib; ac_word=$2
2665 echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2668   echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670   if test -n "$ac_ct_RANLIB"; then
2671   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678   for ac_exec_ext in '' $ac_executable_extensions; do
2679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680     ac_cv_prog_ac_ct_RANLIB="ranlib"
2681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685 done
2686
2687   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2688 fi
2689 fi
2690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2691 if test -n "$ac_ct_RANLIB"; then
2692   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2693 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2694 else
2695   echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2697 fi
2698
2699   RANLIB=$ac_ct_RANLIB
2700 else
2701   RANLIB="$ac_cv_prog_RANLIB"
2702 fi
2703
2704 # Extract the first word of "ar", so it can be a program name with args.
2705 set dummy ar; ac_word=$2
2706 echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2708 if test "${ac_cv_path_AR+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   case $AR in
2712   [\\/]* | ?:[\\/]*)
2713   ac_cv_path_AR="$AR" # Let the user override the test with a path.
2714   ;;
2715   *)
2716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719   IFS=$as_save_IFS
2720   test -z "$as_dir" && as_dir=.
2721   for ac_exec_ext in '' $ac_executable_extensions; do
2722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725     break 2
2726   fi
2727 done
2728 done
2729
2730   test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
2731   ;;
2732 esac
2733 fi
2734 AR=$ac_cv_path_AR
2735
2736 if test -n "$AR"; then
2737   echo "$as_me:$LINENO: result: $AR" >&5
2738 echo "${ECHO_T}$AR" >&6
2739 else
2740   echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6
2742 fi
2743
2744 if [ $AR = "no" ] ; then
2745     { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
2746 echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
2747    { (exit 1); exit 1; }; };
2748 fi
2749
2750 # Checks for libraries.
2751
2752
2753 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2754 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2755 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_check_lib_save_LIBS=$LIBS
2759 LIBS="-lpthread  $LIBS"
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 /* Override any gcc2 internal prototype to avoid an error.  */
2768 #ifdef __cplusplus
2769 extern "C"
2770 #endif
2771 /* We use char because int might match the return type of a gcc2
2772    builtin and then its argument prototype would still apply.  */
2773 char pthread_create ();
2774 int
2775 main ()
2776 {
2777 pthread_create ();
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext conftest$ac_exeext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2784   (eval $ac_link) 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } &&
2791          { ac_try='test -z "$ac_c_werror_flag"
2792                          || test ! -s conftest.err'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } &&
2798          { ac_try='test -s conftest$ac_exeext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   ac_cv_lib_pthread_pthread_create=yes
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 ac_cv_lib_pthread_pthread_create=no
2810 fi
2811 rm -f conftest.err conftest.$ac_objext \
2812       conftest$ac_exeext conftest.$ac_ext
2813 LIBS=$ac_check_lib_save_LIBS
2814 fi
2815 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2816 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2817 if test $ac_cv_lib_pthread_pthread_create = yes; then
2818   cat >>confdefs.h <<_ACEOF
2819 #define HAVE_LIBPTHREAD 1
2820 _ACEOF
2821
2822   LIBS="-lpthread $LIBS"
2823
2824 else
2825   { { echo "$as_me:$LINENO: error: RtAudio requires the pthread library!" >&5
2826 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
2827    { (exit 1); exit 1; }; }
2828 fi
2829
2830
2831
2832
2833 # Checks for header files.
2834 ac_ext=c
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2840 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2841 # On Suns, sometimes $CPP names a directory.
2842 if test -n "$CPP" && test -d "$CPP"; then
2843   CPP=
2844 fi
2845 if test -z "$CPP"; then
2846   if test "${ac_cv_prog_CPP+set}" = set; then
2847   echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849       # Double quotes because CPP needs to be expanded
2850     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2851     do
2852       ac_preproc_ok=false
2853 for ac_c_preproc_warn_flag in '' yes
2854 do
2855   # Use a header file that comes with gcc, so configuring glibc
2856   # with a fresh cross-compiler works.
2857   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2858   # <limits.h> exists even on freestanding compilers.
2859   # On the NeXT, cc -E runs the code through the compiler's parser,
2860   # not just through cpp. "Syntax error" is here to catch this case.
2861   cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867 #ifdef __STDC__
2868 # include <limits.h>
2869 #else
2870 # include <assert.h>
2871 #endif
2872                      Syntax error
2873 _ACEOF
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } >/dev/null; then
2882   if test -s conftest.err; then
2883     ac_cpp_err=$ac_c_preproc_warn_flag
2884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2885   else
2886     ac_cpp_err=
2887   fi
2888 else
2889   ac_cpp_err=yes
2890 fi
2891 if test -z "$ac_cpp_err"; then
2892   :
2893 else
2894   echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897   # Broken: fails on valid input.
2898 continue
2899 fi
2900 rm -f conftest.err conftest.$ac_ext
2901
2902   # OK, works on sane cases.  Now check whether non-existent headers
2903   # can be detected and how.
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 #include <ac_nonexistent.h>
2911 _ACEOF
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914   ac_status=$?
2915   grep -v '^ *+' conftest.er1 >conftest.err
2916   rm -f conftest.er1
2917   cat conftest.err >&5
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); } >/dev/null; then
2920   if test -s conftest.err; then
2921     ac_cpp_err=$ac_c_preproc_warn_flag
2922     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923   else
2924     ac_cpp_err=
2925   fi
2926 else
2927   ac_cpp_err=yes
2928 fi
2929 if test -z "$ac_cpp_err"; then
2930   # Broken: success on invalid input.
2931 continue
2932 else
2933   echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936   # Passes both tests.
2937 ac_preproc_ok=:
2938 break
2939 fi
2940 rm -f conftest.err conftest.$ac_ext
2941
2942 done
2943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2944 rm -f conftest.err conftest.$ac_ext
2945 if $ac_preproc_ok; then
2946   break
2947 fi
2948
2949     done
2950     ac_cv_prog_CPP=$CPP
2951
2952 fi
2953   CPP=$ac_cv_prog_CPP
2954 else
2955   ac_cv_prog_CPP=$CPP
2956 fi
2957 echo "$as_me:$LINENO: result: $CPP" >&5
2958 echo "${ECHO_T}$CPP" >&6
2959 ac_preproc_ok=false
2960 for ac_c_preproc_warn_flag in '' yes
2961 do
2962   # Use a header file that comes with gcc, so configuring glibc
2963   # with a fresh cross-compiler works.
2964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965   # <limits.h> exists even on freestanding compilers.
2966   # On the NeXT, cc -E runs the code through the compiler's parser,
2967   # not just through cpp. "Syntax error" is here to catch this case.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #ifdef __STDC__
2975 # include <limits.h>
2976 #else
2977 # include <assert.h>
2978 #endif
2979                      Syntax error
2980 _ACEOF
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983   ac_status=$?
2984   grep -v '^ *+' conftest.er1 >conftest.err
2985   rm -f conftest.er1
2986   cat conftest.err >&5
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); } >/dev/null; then
2989   if test -s conftest.err; then
2990     ac_cpp_err=$ac_c_preproc_warn_flag
2991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2992   else
2993     ac_cpp_err=
2994   fi
2995 else
2996   ac_cpp_err=yes
2997 fi
2998 if test -z "$ac_cpp_err"; then
2999   :
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004   # Broken: fails on valid input.
3005 continue
3006 fi
3007 rm -f conftest.err conftest.$ac_ext
3008
3009   # OK, works on sane cases.  Now check whether non-existent headers
3010   # can be detected and how.
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 #include <ac_nonexistent.h>
3018 _ACEOF
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } >/dev/null; then
3027   if test -s conftest.err; then
3028     ac_cpp_err=$ac_c_preproc_warn_flag
3029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030   else
3031     ac_cpp_err=
3032   fi
3033 else
3034   ac_cpp_err=yes
3035 fi
3036 if test -z "$ac_cpp_err"; then
3037   # Broken: success on invalid input.
3038 continue
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043   # Passes both tests.
3044 ac_preproc_ok=:
3045 break
3046 fi
3047 rm -f conftest.err conftest.$ac_ext
3048
3049 done
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then
3053   :
3054 else
3055   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3058 See \`config.log' for more details." >&2;}
3059    { (exit 1); exit 1; }; }
3060 fi
3061
3062 ac_ext=c
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067
3068
3069 echo "$as_me:$LINENO: checking for egrep" >&5
3070 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3071 if test "${ac_cv_prog_egrep+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3075     then ac_cv_prog_egrep='grep -E'
3076     else ac_cv_prog_egrep='egrep'
3077     fi
3078 fi
3079 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3080 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3081  EGREP=$ac_cv_prog_egrep
3082
3083
3084 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3085 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3086 if test "${ac_cv_header_stdc+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h.  */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h.  */
3095 #include <stdlib.h>
3096 #include <stdarg.h>
3097 #include <string.h>
3098 #include <float.h>
3099
3100 int
3101 main ()
3102 {
3103
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110   (eval $ac_compile) 2>conftest.er1
3111   ac_status=$?
3112   grep -v '^ *+' conftest.er1 >conftest.err
3113   rm -f conftest.er1
3114   cat conftest.err >&5
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } &&
3117          { ac_try='test -z "$ac_c_werror_flag"
3118                          || test ! -s conftest.err'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126   (eval $ac_try) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; }; then
3130   ac_cv_header_stdc=yes
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135 ac_cv_header_stdc=no
3136 fi
3137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138
3139 if test $ac_cv_header_stdc = yes; then
3140   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3141   cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147 #include <string.h>
3148
3149 _ACEOF
3150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3151   $EGREP "memchr" >/dev/null 2>&1; then
3152   :
3153 else
3154   ac_cv_header_stdc=no
3155 fi
3156 rm -f conftest*
3157
3158 fi
3159
3160 if test $ac_cv_header_stdc = yes; then
3161   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3162   cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <stdlib.h>
3169
3170 _ACEOF
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172   $EGREP "free" >/dev/null 2>&1; then
3173   :
3174 else
3175   ac_cv_header_stdc=no
3176 fi
3177 rm -f conftest*
3178
3179 fi
3180
3181 if test $ac_cv_header_stdc = yes; then
3182   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3183   if test "$cross_compiling" = yes; then
3184   :
3185 else
3186   cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h.  */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h.  */
3192 #include <ctype.h>
3193 #if ((' ' & 0x0FF) == 0x020)
3194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3196 #else
3197 # define ISLOWER(c) \
3198                    (('a' <= (c) && (c) <= 'i') \
3199                      || ('j' <= (c) && (c) <= 'r') \
3200                      || ('s' <= (c) && (c) <= 'z'))
3201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3202 #endif
3203
3204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3205 int
3206 main ()
3207 {
3208   int i;
3209   for (i = 0; i < 256; i++)
3210     if (XOR (islower (i), ISLOWER (i))
3211         || toupper (i) != TOUPPER (i))
3212       exit(2);
3213   exit (0);
3214 }
3215 _ACEOF
3216 rm -f conftest$ac_exeext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3218   (eval $ac_link) 2>&5
3219   ac_status=$?
3220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223   (eval $ac_try) 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }; }; then
3227   :
3228 else
3229   echo "$as_me: program exited with status $ac_status" >&5
3230 echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3232
3233 ( exit $ac_status )
3234 ac_cv_header_stdc=no
3235 fi
3236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3237 fi
3238 fi
3239 fi
3240 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3241 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3242 if test $ac_cv_header_stdc = yes; then
3243
3244 cat >>confdefs.h <<\_ACEOF
3245 #define STDC_HEADERS 1
3246 _ACEOF
3247
3248 fi
3249
3250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3261                   inttypes.h stdint.h unistd.h
3262 do
3263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3264 echo "$as_me:$LINENO: checking for $ac_header" >&5
3265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275 $ac_includes_default
3276
3277 #include <$ac_header>
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281   (eval $ac_compile) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -z "$ac_c_werror_flag"
3289                          || test ! -s conftest.err'
3290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291   (eval $ac_try) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297   (eval $ac_try) 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; }; then
3301   eval "$as_ac_Header=yes"
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 eval "$as_ac_Header=no"
3307 fi
3308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309 fi
3310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3313   cat >>confdefs.h <<_ACEOF
3314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3315 _ACEOF
3316
3317 fi
3318
3319 done
3320
3321
3322
3323
3324 for ac_header in sys/ioctl.h unistd.h
3325 do
3326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3328   echo "$as_me:$LINENO: checking for $ac_header" >&5
3329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3331   echo $ECHO_N "(cached) $ECHO_C" >&6
3332 fi
3333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3335 else
3336   # Is the header compilable?
3337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3339 cat >conftest.$ac_ext <<_ACEOF
3340 /* confdefs.h.  */
3341 _ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h.  */
3345 $ac_includes_default
3346 #include <$ac_header>
3347 _ACEOF
3348 rm -f conftest.$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350   (eval $ac_compile) 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } &&
3357          { ac_try='test -z "$ac_c_werror_flag"
3358                          || test ! -s conftest.err'
3359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360   (eval $ac_try) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; } &&
3364          { ac_try='test -s conftest.$ac_objext'
3365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366   (eval $ac_try) 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   ac_header_compiler=yes
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 ac_header_compiler=no
3376 fi
3377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3379 echo "${ECHO_T}$ac_header_compiler" >&6
3380
3381 # Is the header present?
3382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390 #include <$ac_header>
3391 _ACEOF
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394   ac_status=$?
3395   grep -v '^ *+' conftest.er1 >conftest.err
3396   rm -f conftest.er1
3397   cat conftest.err >&5
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } >/dev/null; then
3400   if test -s conftest.err; then
3401     ac_cpp_err=$ac_c_preproc_warn_flag
3402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3403   else
3404     ac_cpp_err=
3405   fi
3406 else
3407   ac_cpp_err=yes
3408 fi
3409 if test -z "$ac_cpp_err"; then
3410   ac_header_preproc=yes
3411 else
3412   echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3414
3415   ac_header_preproc=no
3416 fi
3417 rm -f conftest.err conftest.$ac_ext
3418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3419 echo "${ECHO_T}$ac_header_preproc" >&6
3420
3421 # So?  What about this header?
3422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3423   yes:no: )
3424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3428     ac_header_preproc=yes
3429     ;;
3430   no:yes:* )
3431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3443     (
3444       cat <<\_ASBOX
3445 ## ----------------------------------- ##
3446 ## Report this to gary@music.mcgill.ca ##
3447 ## ----------------------------------- ##
3448 _ASBOX
3449     ) |
3450       sed "s/^/$as_me: WARNING:     /" >&2
3451     ;;
3452 esac
3453 echo "$as_me:$LINENO: checking for $ac_header" >&5
3454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3456   echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458   eval "$as_ac_Header=\$ac_header_preproc"
3459 fi
3460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3462
3463 fi
3464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3465   cat >>confdefs.h <<_ACEOF
3466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3467 _ACEOF
3468
3469 fi
3470
3471 done
3472
3473
3474 # Checks for typedefs, structures, and compiler characteristics.
3475 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3476 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3477 if test "${ac_cv_c_const+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490 /* FIXME: Include the comments suggested by Paul. */
3491 #ifndef __cplusplus
3492   /* Ultrix mips cc rejects this.  */
3493   typedef int charset[2];
3494   const charset x;
3495   /* SunOS 4.1.1 cc rejects this.  */
3496   char const *const *ccp;
3497   char **p;
3498   /* NEC SVR4.0.2 mips cc rejects this.  */
3499   struct point {int x, y;};
3500   static struct point const zero = {0,0};
3501   /* AIX XL C 1.02.0.0 rejects this.
3502      It does not let you subtract one const X* pointer from another in
3503      an arm of an if-expression whose if-part is not a constant
3504      expression */
3505   const char *g = "string";
3506   ccp = &g + (g ? g-g : 0);
3507   /* HPUX 7.0 cc rejects these. */
3508   ++ccp;
3509   p = (char**) ccp;
3510   ccp = (char const *const *) p;
3511   { /* SCO 3.2v4 cc rejects this.  */
3512     char *t;
3513     char const *s = 0 ? (char *) 0 : (char const *) 0;
3514
3515     *t++ = 0;
3516   }
3517   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3518     int x[] = {25, 17};
3519     const int *foo = &x[0];
3520     ++foo;
3521   }
3522   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3523     typedef const int *iptr;
3524     iptr p = 0;
3525     ++p;
3526   }
3527   { /* AIX XL C 1.02.0.0 rejects this saying
3528        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3529     struct s { int j; const int *ap[3]; };
3530     struct s *b; b->j = 5;
3531   }
3532   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3533     const int foo = 10;
3534   }
3535 #endif
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543   (eval $ac_compile) 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } &&
3550          { ac_try='test -z "$ac_c_werror_flag"
3551                          || test ! -s conftest.err'
3552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553   (eval $ac_try) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }; } &&
3557          { ac_try='test -s conftest.$ac_objext'
3558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559   (eval $ac_try) 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }; }; then
3563   ac_cv_c_const=yes
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 ac_cv_c_const=no
3569 fi
3570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3571 fi
3572 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3573 echo "${ECHO_T}$ac_cv_c_const" >&6
3574 if test $ac_cv_c_const = no; then
3575
3576 cat >>confdefs.h <<\_ACEOF
3577 #define const
3578 _ACEOF
3579
3580 fi
3581
3582
3583 # Check for debug
3584 echo "$as_me:$LINENO: checking whether to compile debug version" >&5
3585 echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
3586 # Check whether --enable-debug or --disable-debug was given.
3587 if test "${enable_debug+set}" = set; then
3588   enableval="$enable_debug"
3589   debug=-D__RTAUDIO_DEBUG__
3590  cflags=-g
3591  object_path=Debug
3592  echo "$as_me:$LINENO: result: yes" >&5
3593 echo "${ECHO_T}yes" >&6
3594 else
3595   debug=
3596  cflags=-O2
3597  object_path=Release
3598  echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3600 fi;
3601
3602 # Checks for functions
3603 echo "$as_me:$LINENO: checking for gettimeofday" >&5
3604 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
3605 if test "${ac_cv_func_gettimeofday+set}" = set; then
3606   echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608   cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 /* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
3615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3616 #define gettimeofday innocuous_gettimeofday
3617
3618 /* System header to define __stub macros and hopefully few prototypes,
3619     which can conflict with char gettimeofday (); below.
3620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3621     <limits.h> exists even on freestanding compilers.  */
3622
3623 #ifdef __STDC__
3624 # include <limits.h>
3625 #else
3626 # include <assert.h>
3627 #endif
3628
3629 #undef gettimeofday
3630
3631 /* Override any gcc2 internal prototype to avoid an error.  */
3632 #ifdef __cplusplus
3633 extern "C"
3634 {
3635 #endif
3636 /* We use char because int might match the return type of a gcc2
3637    builtin and then its argument prototype would still apply.  */
3638 char gettimeofday ();
3639 /* The GNU C library defines this for functions which it implements
3640     to always fail with ENOSYS.  Some functions are actually named
3641     something starting with __ and the normal name is an alias.  */
3642 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
3643 choke me
3644 #else
3645 char (*f) () = gettimeofday;
3646 #endif
3647 #ifdef __cplusplus
3648 }
3649 #endif
3650
3651 int
3652 main ()
3653 {
3654 return f != gettimeofday;
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 rm -f conftest.$ac_objext conftest$ac_exeext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3661   (eval $ac_link) 2>conftest.er1
3662   ac_status=$?
3663   grep -v '^ *+' conftest.er1 >conftest.err
3664   rm -f conftest.er1
3665   cat conftest.err >&5
3666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667   (exit $ac_status); } &&
3668          { ac_try='test -z "$ac_c_werror_flag"
3669                          || test ! -s conftest.err'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest$ac_exeext'
3676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677   (eval $ac_try) 2>&5
3678   ac_status=$?
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); }; }; then
3681   ac_cv_func_gettimeofday=yes
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 ac_cv_func_gettimeofday=no
3687 fi
3688 rm -f conftest.err conftest.$ac_objext \
3689       conftest$ac_exeext conftest.$ac_ext
3690 fi
3691 echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
3692 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
3693 if test $ac_cv_func_gettimeofday = yes; then
3694   cflags=$cflags" -DHAVE_GETTIMEOFDAY"
3695 fi
3696
3697
3698 # Check compiler and use -Wall if gnu.
3699 if test $GXX = "yes" ; then
3700   warn=-Wall
3701
3702 fi
3703
3704 # Checks for package options and external software
3705 ac_aux_dir=
3706 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3707   if test -f $ac_dir/install-sh; then
3708     ac_aux_dir=$ac_dir
3709     ac_install_sh="$ac_aux_dir/install-sh -c"
3710     break
3711   elif test -f $ac_dir/install.sh; then
3712     ac_aux_dir=$ac_dir
3713     ac_install_sh="$ac_aux_dir/install.sh -c"
3714     break
3715   elif test -f $ac_dir/shtool; then
3716     ac_aux_dir=$ac_dir
3717     ac_install_sh="$ac_aux_dir/shtool install -c"
3718     break
3719   fi
3720 done
3721 if test -z "$ac_aux_dir"; then
3722   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3723 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3724    { (exit 1); exit 1; }; }
3725 fi
3726 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3727 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3728 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3729
3730 # Make sure we can run config.sub.
3731 $ac_config_sub sun4 >/dev/null 2>&1 ||
3732   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3733 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3734    { (exit 1); exit 1; }; }
3735
3736 echo "$as_me:$LINENO: checking build system type" >&5
3737 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3738 if test "${ac_cv_build+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   ac_cv_build_alias=$build_alias
3742 test -z "$ac_cv_build_alias" &&
3743   ac_cv_build_alias=`$ac_config_guess`
3744 test -z "$ac_cv_build_alias" &&
3745   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3746 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3747    { (exit 1); exit 1; }; }
3748 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3749   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3750 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3751    { (exit 1); exit 1; }; }
3752
3753 fi
3754 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3755 echo "${ECHO_T}$ac_cv_build" >&6
3756 build=$ac_cv_build
3757 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3758 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3759 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3760
3761
3762 echo "$as_me:$LINENO: checking host system type" >&5
3763 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3764 if test "${ac_cv_host+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   ac_cv_host_alias=$host_alias
3768 test -z "$ac_cv_host_alias" &&
3769   ac_cv_host_alias=$ac_cv_build_alias
3770 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3771   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3772 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3773    { (exit 1); exit 1; }; }
3774
3775 fi
3776 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3777 echo "${ECHO_T}$ac_cv_host" >&6
3778 host=$ac_cv_host
3779 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3780 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3781 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3782
3783
3784 echo "$as_me:$LINENO: checking for audio API" >&5
3785 echo $ECHO_N "checking for audio API... $ECHO_C" >&6
3786 case $host in
3787   *-*-netbsd*)
3788     sound_api=-D__LINUX_OSS__
3789
3790     echo "$as_me:$LINENO: result: using OSS" >&5
3791 echo "${ECHO_T}using OSS" >&6
3792     audio_apis=-D__LINUX_OSS__
3793
3794     cflags=$cflags" -lossaudio"
3795   ;;
3796
3797   *-*-linux*)
3798   sound_api=_NO_API_
3799
3800
3801 # Check whether --with-jack or --without-jack was given.
3802 if test "${with_jack+set}" = set; then
3803   withval="$with_jack"
3804   sound_api=-D__UNIX_JACK__
3805  echo "$as_me:$LINENO: result: using JACK" >&5
3806 echo "${ECHO_T}using JACK" >&6
3807 fi;
3808   if test $sound_api = -D__UNIX_JACK__; then
3809     TEMP_LIBS=$LIBS
3810
3811 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
3812 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
3813 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   ac_check_lib_save_LIBS=$LIBS
3817 LIBS="-ljack  $LIBS"
3818 cat >conftest.$ac_ext <<_ACEOF
3819 /* confdefs.h.  */
3820 _ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h.  */
3824
3825 /* Override any gcc2 internal prototype to avoid an error.  */
3826 #ifdef __cplusplus
3827 extern "C"
3828 #endif
3829 /* We use char because int might match the return type of a gcc2
3830    builtin and then its argument prototype would still apply.  */
3831 char jack_client_new ();
3832 int
3833 main ()
3834 {
3835 jack_client_new ();
3836   ;
3837   return 0;
3838 }
3839 _ACEOF
3840 rm -f conftest.$ac_objext conftest$ac_exeext
3841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842   (eval $ac_link) 2>conftest.er1
3843   ac_status=$?
3844   grep -v '^ *+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } &&
3849          { ac_try='test -z "$ac_c_werror_flag"
3850                          || test ! -s conftest.err'
3851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852   (eval $ac_try) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; } &&
3856          { ac_try='test -s conftest$ac_exeext'
3857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858   (eval $ac_try) 2>&5
3859   ac_status=$?
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); }; }; then
3862   ac_cv_lib_jack_jack_client_new=yes
3863 else
3864   echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 ac_cv_lib_jack_jack_client_new=no
3868 fi
3869 rm -f conftest.err conftest.$ac_objext \
3870       conftest$ac_exeext conftest.$ac_ext
3871 LIBS=$ac_check_lib_save_LIBS
3872 fi
3873 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
3874 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
3875 if test $ac_cv_lib_jack_jack_client_new = yes; then
3876   cat >>confdefs.h <<_ACEOF
3877 #define HAVE_LIBJACK 1
3878 _ACEOF
3879
3880   LIBS="-ljack $LIBS"
3881
3882 else
3883   { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
3884 echo "$as_me: error: JACK support requires the jack library!" >&2;}
3885    { (exit 1); exit 1; }; }
3886 fi
3887
3888
3889 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3890 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3891 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   ac_check_lib_save_LIBS=$LIBS
3895 LIBS="-lasound  $LIBS"
3896 cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h.  */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h.  */
3902
3903 /* Override any gcc2 internal prototype to avoid an error.  */
3904 #ifdef __cplusplus
3905 extern "C"
3906 #endif
3907 /* We use char because int might match the return type of a gcc2
3908    builtin and then its argument prototype would still apply.  */
3909 char snd_pcm_open ();
3910 int
3911 main ()
3912 {
3913 snd_pcm_open ();
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 rm -f conftest.$ac_objext conftest$ac_exeext
3919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920   (eval $ac_link) 2>conftest.er1
3921   ac_status=$?
3922   grep -v '^ *+' conftest.er1 >conftest.err
3923   rm -f conftest.er1
3924   cat conftest.err >&5
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } &&
3927          { ac_try='test -z "$ac_c_werror_flag"
3928                          || test ! -s conftest.err'
3929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930   (eval $ac_try) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; } &&
3934          { ac_try='test -s conftest$ac_exeext'
3935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936   (eval $ac_try) 2>&5
3937   ac_status=$?
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); }; }; then
3940   ac_cv_lib_asound_snd_pcm_open=yes
3941 else
3942   echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 ac_cv_lib_asound_snd_pcm_open=no
3946 fi
3947 rm -f conftest.err conftest.$ac_objext \
3948       conftest$ac_exeext conftest.$ac_ext
3949 LIBS=$ac_check_lib_save_LIBS
3950 fi
3951 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
3952 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
3953 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
3954   cat >>confdefs.h <<_ACEOF
3955 #define HAVE_LIBASOUND 1
3956 _ACEOF
3957
3958   LIBS="-lasound $LIBS"
3959
3960 else
3961   { { echo "$as_me:$LINENO: error: Jack support also requires the asound library!" >&5
3962 echo "$as_me: error: Jack support also requires the asound library!" >&2;}
3963    { (exit 1); exit 1; }; }
3964 fi
3965
3966     LIBS="`pkg-config --cflags --libs jack` $TEMP_LIBS -lasound"
3967     audio_apis="-D__UNIX_JACK__"
3968   fi
3969
3970   # Look for Alsa flag
3971
3972 # Check whether --with-alsa or --without-alsa was given.
3973 if test "${with_alsa+set}" = set; then
3974   withval="$with_alsa"
3975   sound_api=-D__LINUX_ALSA__
3976  echo "$as_me:$LINENO: result: using ALSA" >&5
3977 echo "${ECHO_T}using ALSA" >&6
3978 fi;
3979   if test $sound_api = -D__LINUX_ALSA__; then
3980
3981 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
3982 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
3983 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   ac_check_lib_save_LIBS=$LIBS
3987 LIBS="-lasound  $LIBS"
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994
3995 /* Override any gcc2 internal prototype to avoid an error.  */
3996 #ifdef __cplusplus
3997 extern "C"
3998 #endif
3999 /* We use char because int might match the return type of a gcc2
4000    builtin and then its argument prototype would still apply.  */
4001 char snd_pcm_open ();
4002 int
4003 main ()
4004 {
4005 snd_pcm_open ();
4006   ;
4007   return 0;
4008 }
4009 _ACEOF
4010 rm -f conftest.$ac_objext conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012   (eval $ac_link) 2>conftest.er1
4013   ac_status=$?
4014   grep -v '^ *+' conftest.er1 >conftest.err
4015   rm -f conftest.er1
4016   cat conftest.err >&5
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); } &&
4019          { ac_try='test -z "$ac_c_werror_flag"
4020                          || test ! -s conftest.err'
4021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022   (eval $ac_try) 2>&5
4023   ac_status=$?
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); }; } &&
4026          { ac_try='test -s conftest$ac_exeext'
4027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028   (eval $ac_try) 2>&5
4029   ac_status=$?
4030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); }; }; then
4032   ac_cv_lib_asound_snd_pcm_open=yes
4033 else
4034   echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 ac_cv_lib_asound_snd_pcm_open=no
4038 fi
4039 rm -f conftest.err conftest.$ac_objext \
4040       conftest$ac_exeext conftest.$ac_ext
4041 LIBS=$ac_check_lib_save_LIBS
4042 fi
4043 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
4044 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
4045 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
4046   cat >>confdefs.h <<_ACEOF
4047 #define HAVE_LIBASOUND 1
4048 _ACEOF
4049
4050   LIBS="-lasound $LIBS"
4051
4052 else
4053   { { echo "$as_me:$LINENO: error: ALSA support requires the asound library!" >&5
4054 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
4055    { (exit 1); exit 1; }; }
4056 fi
4057
4058     audio_apis="-D__LINUX_ALSA__ $audio_apis"
4059   fi
4060
4061   # Look for OSS flag
4062
4063 # Check whether --with-oss or --without-oss was given.
4064 if test "${with_oss+set}" = set; then
4065   withval="$with_oss"
4066   sound_api=-D__LINUX_OSS__
4067  echo "$as_me:$LINENO: result: using OSS" >&5
4068 echo "${ECHO_T}using OSS" >&6
4069 fi;
4070   if test $sound_api = -D__LINUX_OSS__; then
4071     audio_apis="-D__LINUX_OSS__ $audio_apis"
4072   fi
4073
4074   # If no audio api flags specified, use OSS
4075   if test $sound_api = _NO_API_; then
4076     sound_api=-D__LINUX_OSS__
4077
4078     echo "$as_me:$LINENO: result: using OSS" >&5
4079 echo "${ECHO_T}using OSS" >&6
4080     audio_apis=-D__LINUX_OSS__
4081
4082   fi
4083   ;;
4084
4085   *-sgi*)
4086   audio_apis="-D__IRIX_AL__ -LANG:std -w"
4087
4088   echo "$as_me:$LINENO: result: using IRIX AL" >&5
4089 echo "${ECHO_T}using IRIX AL" >&6
4090
4091 echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
4092 echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6
4093 if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
4094   echo $ECHO_N "(cached) $ECHO_C" >&6
4095 else
4096   ac_check_lib_save_LIBS=$LIBS
4097 LIBS="-laudio  $LIBS"
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h.  */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h.  */
4104
4105 /* Override any gcc2 internal prototype to avoid an error.  */
4106 #ifdef __cplusplus
4107 extern "C"
4108 #endif
4109 /* We use char because int might match the return type of a gcc2
4110    builtin and then its argument prototype would still apply.  */
4111 char alOpenPort ();
4112 int
4113 main ()
4114 {
4115 alOpenPort ();
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest.$ac_objext conftest$ac_exeext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4122   (eval $ac_link) 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } &&
4129          { ac_try='test -z "$ac_c_werror_flag"
4130                          || test ! -s conftest.err'
4131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132   (eval $ac_try) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; } &&
4136          { ac_try='test -s conftest$ac_exeext'
4137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138   (eval $ac_try) 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; }; then
4142   ac_cv_lib_audio_alOpenPort=yes
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 ac_cv_lib_audio_alOpenPort=no
4148 fi
4149 rm -f conftest.err conftest.$ac_objext \
4150       conftest$ac_exeext conftest.$ac_ext
4151 LIBS=$ac_check_lib_save_LIBS
4152 fi
4153 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
4154 echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6
4155 if test $ac_cv_lib_audio_alOpenPort = yes; then
4156   cat >>confdefs.h <<_ACEOF
4157 #define HAVE_LIBAUDIO 1
4158 _ACEOF
4159
4160   LIBS="-laudio $LIBS"
4161
4162 else
4163   { { echo "$as_me:$LINENO: error: IRIX audio support requires the audio library!" >&5
4164 echo "$as_me: error: IRIX audio support requires the audio library!" >&2;}
4165    { (exit 1); exit 1; }; }
4166 fi
4167
4168   ;;
4169
4170   *-apple*)
4171   sound_api=_NO_API_
4172
4173
4174 # Check whether --with-jack or --without-jack was given.
4175 if test "${with_jack+set}" = set; then
4176   withval="$with_jack"
4177   sound_api=-D__UNIX_JACK__
4178  echo "$as_me:$LINENO: result: using JACK" >&5
4179 echo "${ECHO_T}using JACK" >&6
4180 fi;
4181   if test $sound_api = -D__UNIX_JACK__; then
4182
4183 echo "$as_me:$LINENO: checking for jack_client_new in -ljack" >&5
4184 echo $ECHO_N "checking for jack_client_new in -ljack... $ECHO_C" >&6
4185 if test "${ac_cv_lib_jack_jack_client_new+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188   ac_check_lib_save_LIBS=$LIBS
4189 LIBS="-ljack  $LIBS"
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196
4197 /* Override any gcc2 internal prototype to avoid an error.  */
4198 #ifdef __cplusplus
4199 extern "C"
4200 #endif
4201 /* We use char because int might match the return type of a gcc2
4202    builtin and then its argument prototype would still apply.  */
4203 char jack_client_new ();
4204 int
4205 main ()
4206 {
4207 jack_client_new ();
4208   ;
4209   return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext conftest$ac_exeext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214   (eval $ac_link) 2>conftest.er1
4215   ac_status=$?
4216   grep -v '^ *+' conftest.er1 >conftest.err
4217   rm -f conftest.er1
4218   cat conftest.err >&5
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); } &&
4221          { ac_try='test -z "$ac_c_werror_flag"
4222                          || test ! -s conftest.err'
4223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224   (eval $ac_try) 2>&5
4225   ac_status=$?
4226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227   (exit $ac_status); }; } &&
4228          { ac_try='test -s conftest$ac_exeext'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; }; then
4234   ac_cv_lib_jack_jack_client_new=yes
4235 else
4236   echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 ac_cv_lib_jack_jack_client_new=no
4240 fi
4241 rm -f conftest.err conftest.$ac_objext \
4242       conftest$ac_exeext conftest.$ac_ext
4243 LIBS=$ac_check_lib_save_LIBS
4244 fi
4245 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_jack_client_new" >&5
4246 echo "${ECHO_T}$ac_cv_lib_jack_jack_client_new" >&6
4247 if test $ac_cv_lib_jack_jack_client_new = yes; then
4248   cat >>confdefs.h <<_ACEOF
4249 #define HAVE_LIBJACK 1
4250 _ACEOF
4251
4252   LIBS="-ljack $LIBS"
4253
4254 else
4255   { { echo "$as_me:$LINENO: error: JACK support requires the jack library!" >&5
4256 echo "$as_me: error: JACK support requires the jack library!" >&2;}
4257    { (exit 1); exit 1; }; }
4258 fi
4259
4260     audio_apis="-D__UNIX_JACK__"
4261   fi
4262
4263   # Look for Core flag
4264
4265 # Check whether --with-core or --without-core was given.
4266 if test "${with_core+set}" = set; then
4267   withval="$with_core"
4268   sound_api=-D__MACOSX_CORE__
4269  echo "$as_me:$LINENO: result: using CoreAudio" >&5
4270 echo "${ECHO_T}using CoreAudio" >&6
4271 fi;
4272   if test $sound_api = -D__MACOSX_CORE__; then
4273     if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4274   echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4275 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4276 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 fi
4279 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4280 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4281 else
4282   # Is the header compilable?
4283 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4284 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
4285 cat >conftest.$ac_ext <<_ACEOF
4286 /* confdefs.h.  */
4287 _ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h.  */
4291 $ac_includes_default
4292 #include <CoreAudio/CoreAudio.h>
4293 _ACEOF
4294 rm -f conftest.$ac_objext
4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4296   (eval $ac_compile) 2>conftest.er1
4297   ac_status=$?
4298   grep -v '^ *+' conftest.er1 >conftest.err
4299   rm -f conftest.er1
4300   cat conftest.err >&5
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } &&
4303          { ac_try='test -z "$ac_c_werror_flag"
4304                          || test ! -s conftest.err'
4305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306   (eval $ac_try) 2>&5
4307   ac_status=$?
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); }; } &&
4310          { ac_try='test -s conftest.$ac_objext'
4311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312   (eval $ac_try) 2>&5
4313   ac_status=$?
4314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); }; }; then
4316   ac_header_compiler=yes
4317 else
4318   echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321 ac_header_compiler=no
4322 fi
4323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4325 echo "${ECHO_T}$ac_header_compiler" >&6
4326
4327 # Is the header present?
4328 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4329 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336 #include <CoreAudio/CoreAudio.h>
4337 _ACEOF
4338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } >/dev/null; then
4346   if test -s conftest.err; then
4347     ac_cpp_err=$ac_c_preproc_warn_flag
4348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4349   else
4350     ac_cpp_err=
4351   fi
4352 else
4353   ac_cpp_err=yes
4354 fi
4355 if test -z "$ac_cpp_err"; then
4356   ac_header_preproc=yes
4357 else
4358   echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361   ac_header_preproc=no
4362 fi
4363 rm -f conftest.err conftest.$ac_ext
4364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4365 echo "${ECHO_T}$ac_header_preproc" >&6
4366
4367 # So?  What about this header?
4368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4369   yes:no: )
4370     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4371 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4372     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4373 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4374     ac_header_preproc=yes
4375     ;;
4376   no:yes:* )
4377     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4378 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4379     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
4380 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
4381     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4382 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4383     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
4384 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4385     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4386 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4387     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4388 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4389     (
4390       cat <<\_ASBOX
4391 ## ----------------------------------- ##
4392 ## Report this to gary@music.mcgill.ca ##
4393 ## ----------------------------------- ##
4394 _ASBOX
4395     ) |
4396       sed "s/^/$as_me: WARNING:     /" >&2
4397     ;;
4398 esac
4399 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4400 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4401 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4402   echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4405 fi
4406 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4407 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4408
4409 fi
4410 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4411   :
4412 else
4413   { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4414 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4415    { (exit 1); exit 1; }; }
4416 fi
4417
4418
4419     frameworks="-framework CoreAudio -framework CoreFoundation"
4420
4421     audio_apis="-D__MACOSX_CORE__ $audio_apis"
4422   fi
4423
4424   # If no audio api flags specified, use CoreAudio
4425   if test $sound_api = _NO_API_; then
4426     sound_api=-D__MACOSX_CORE__
4427
4428     echo "$as_me:$LINENO: result: using CoreAudio" >&5
4429 echo "${ECHO_T}using CoreAudio" >&6
4430     if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4431   echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4432 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4433 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 fi
4436 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4437 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4438 else
4439   # Is the header compilable?
4440 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
4441 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448 $ac_includes_default
4449 #include <CoreAudio/CoreAudio.h>
4450 _ACEOF
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4453   (eval $ac_compile) 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } &&
4460          { ac_try='test -z "$ac_c_werror_flag"
4461                          || test ! -s conftest.err'
4462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463   (eval $ac_try) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); }; } &&
4467          { ac_try='test -s conftest.$ac_objext'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   ac_header_compiler=yes
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_header_compiler=no
4479 fi
4480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4482 echo "${ECHO_T}$ac_header_compiler" >&6
4483
4484 # Is the header present?
4485 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
4486 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 #include <CoreAudio/CoreAudio.h>
4494 _ACEOF
4495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } >/dev/null; then
4503   if test -s conftest.err; then
4504     ac_cpp_err=$ac_c_preproc_warn_flag
4505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4506   else
4507     ac_cpp_err=
4508   fi
4509 else
4510   ac_cpp_err=yes
4511 fi
4512 if test -z "$ac_cpp_err"; then
4513   ac_header_preproc=yes
4514 else
4515   echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518   ac_header_preproc=no
4519 fi
4520 rm -f conftest.err conftest.$ac_ext
4521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4522 echo "${ECHO_T}$ac_header_preproc" >&6
4523
4524 # So?  What about this header?
4525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4526   yes:no: )
4527     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
4528 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4529     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
4530 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
4531     ac_header_preproc=yes
4532     ;;
4533   no:yes:* )
4534     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
4535 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
4536     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
4537 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
4538     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
4539 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
4540     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
4541 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4542     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
4543 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
4544     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
4545 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
4546     (
4547       cat <<\_ASBOX
4548 ## ----------------------------------- ##
4549 ## Report this to gary@music.mcgill.ca ##
4550 ## ----------------------------------- ##
4551 _ASBOX
4552     ) |
4553       sed "s/^/$as_me: WARNING:     /" >&2
4554     ;;
4555 esac
4556 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
4557 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
4558 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
4562 fi
4563 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
4564 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
4565
4566 fi
4567 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
4568   audio_apis=-D__MACOSX_CORE__
4569
4570 else
4571   { { echo "$as_me:$LINENO: error: CoreAudio header files not found!" >&5
4572 echo "$as_me: error: CoreAudio header files not found!" >&2;}
4573    { (exit 1); exit 1; }; }
4574 fi
4575
4576
4577     frameworks="-framework CoreAudio -framework CoreFoundation"
4578
4579   fi
4580   ;;
4581
4582   *)
4583   # Default case for unknown realtime systems.
4584   { { echo "$as_me:$LINENO: error: Unknown system type for realtime support!" >&5
4585 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
4586    { (exit 1); exit 1; }; }
4587   ;;
4588 esac
4589
4590 # Checks for library functions.
4591 if test $ac_cv_c_compiler_gnu = yes; then
4592     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4593 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4594 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597     ac_pattern="Autoconf.*'x'"
4598   cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h.  */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h.  */
4604 #include <sgtty.h>
4605 Autoconf TIOCGETP
4606 _ACEOF
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4609   ac_cv_prog_gcc_traditional=yes
4610 else
4611   ac_cv_prog_gcc_traditional=no
4612 fi
4613 rm -f conftest*
4614
4615
4616   if test $ac_cv_prog_gcc_traditional = no; then
4617     cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623 #include <termio.h>
4624 Autoconf TCGETA
4625 _ACEOF
4626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4627   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4628   ac_cv_prog_gcc_traditional=yes
4629 fi
4630 rm -f conftest*
4631
4632   fi
4633 fi
4634 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4635 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4636   if test $ac_cv_prog_gcc_traditional = yes; then
4637     CC="$CC -traditional"
4638   fi
4639 fi
4640
4641
4642 cat >confcache <<\_ACEOF
4643 # This file is a shell script that caches the results of configure
4644 # tests run on this system so they can be shared between configure
4645 # scripts and configure runs, see configure's option --config-cache.
4646 # It is not useful on other systems.  If it contains results you don't
4647 # want to keep, you may remove or edit it.
4648 #
4649 # config.status only pays attention to the cache file if you give it
4650 # the --recheck option to rerun configure.
4651 #
4652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4654 # following values.
4655
4656 _ACEOF
4657
4658 # The following way of writing the cache mishandles newlines in values,
4659 # but we know of no workaround that is simple, portable, and efficient.
4660 # So, don't put newlines in cache variables' values.
4661 # Ultrix sh set writes to stderr and can't be redirected directly,
4662 # and sets the high bit in the cache file unless we assign to the vars.
4663 {
4664   (set) 2>&1 |
4665     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4666     *ac_space=\ *)
4667       # `set' does not quote correctly, so add quotes (double-quote
4668       # substitution turns \\\\ into \\, and sed turns \\ into \).
4669       sed -n \
4670         "s/'/'\\\\''/g;
4671           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4672       ;;
4673     *)
4674       # `set' quotes correctly as required by POSIX, so do not add quotes.
4675       sed -n \
4676         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4677       ;;
4678     esac;
4679 } |
4680   sed '
4681      t clear
4682      : clear
4683      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4684      t end
4685      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4686      : end' >>confcache
4687 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4688   if test -w $cache_file; then
4689     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4690     cat confcache >$cache_file
4691   else
4692     echo "not updating unwritable cache $cache_file"
4693   fi
4694 fi
4695 rm -f confcache
4696
4697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4698 # Let make expand exec_prefix.
4699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4700
4701 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4702 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4703 # trailing colons and then remove the whole line if VPATH becomes empty
4704 # (actually we leave an empty line to preserve line numbers).
4705 if test "x$srcdir" = x.; then
4706   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4707 s/:*\$(srcdir):*/:/;
4708 s/:*\${srcdir}:*/:/;
4709 s/:*@srcdir@:*/:/;
4710 s/^\([^=]*=[     ]*\):*/\1/;
4711 s/:*$//;
4712 s/^[^=]*=[       ]*$//;
4713 }'
4714 fi
4715
4716 # Transform confdefs.h into DEFS.
4717 # Protect against shell expansion while executing Makefile rules.
4718 # Protect against Makefile macro expansion.
4719 #
4720 # If the first sed substitution is executed (which looks for macros that
4721 # take arguments), then we branch to the quote section.  Otherwise,
4722 # look for a macro that doesn't take arguments.
4723 cat >confdef2opt.sed <<\_ACEOF
4724 t clear
4725 : clear
4726 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4727 t quote
4728 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4729 t quote
4730 d
4731 : quote
4732 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
4733 s,\[,\\&,g
4734 s,\],\\&,g
4735 s,\$,$$,g
4736 p
4737 _ACEOF
4738 # We use echo to avoid assuming a particular line-breaking character.
4739 # The extra dot is to prevent the shell from consuming trailing
4740 # line-breaks from the sub-command output.  A line-break within
4741 # single-quotes doesn't work because, if this script is created in a
4742 # platform that uses two characters for line-breaks (e.g., DOS), tr
4743 # would break.
4744 ac_LF_and_DOT=`echo; echo .`
4745 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4746 rm -f confdef2opt.sed
4747
4748
4749 ac_libobjs=
4750 ac_ltlibobjs=
4751 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4752   # 1. Remove the extension, and $U if already installed.
4753   ac_i=`echo "$ac_i" |
4754          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4755   # 2. Add them.
4756   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4757   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4758 done
4759 LIBOBJS=$ac_libobjs
4760
4761 LTLIBOBJS=$ac_ltlibobjs
4762
4763
4764
4765 : ${CONFIG_STATUS=./config.status}
4766 ac_clean_files_save=$ac_clean_files
4767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4768 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4769 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4770 cat >$CONFIG_STATUS <<_ACEOF
4771 #! $SHELL
4772 # Generated by $as_me.
4773 # Run this file to recreate the current configuration.
4774 # Compiler output produced by configure, useful for debugging
4775 # configure, is in config.log if it exists.
4776
4777 debug=false
4778 ac_cs_recheck=false
4779 ac_cs_silent=false
4780 SHELL=\${CONFIG_SHELL-$SHELL}
4781 _ACEOF
4782
4783 cat >>$CONFIG_STATUS <<\_ACEOF
4784 ## --------------------- ##
4785 ## M4sh Initialization.  ##
4786 ## --------------------- ##
4787
4788 # Be Bourne compatible
4789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4790   emulate sh
4791   NULLCMD=:
4792   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4793   # is contrary to our usage.  Disable this feature.
4794   alias -g '${1+"$@"}'='"$@"'
4795 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4796   set -o posix
4797 fi
4798 DUALCASE=1; export DUALCASE # for MKS sh
4799
4800 # Support unset when possible.
4801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4802   as_unset=unset
4803 else
4804   as_unset=false
4805 fi
4806
4807
4808 # Work around bugs in pre-3.0 UWIN ksh.
4809 $as_unset ENV MAIL MAILPATH
4810 PS1='$ '
4811 PS2='> '
4812 PS4='+ '
4813
4814 # NLS nuisances.
4815 for as_var in \
4816   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4817   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4818   LC_TELEPHONE LC_TIME
4819 do
4820   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4821     eval $as_var=C; export $as_var
4822   else
4823     $as_unset $as_var
4824   fi
4825 done
4826
4827 # Required to use basename.
4828 if expr a : '\(a\)' >/dev/null 2>&1; then
4829   as_expr=expr
4830 else
4831   as_expr=false
4832 fi
4833
4834 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4835   as_basename=basename
4836 else
4837   as_basename=false
4838 fi
4839
4840
4841 # Name of the executable.
4842 as_me=`$as_basename "$0" ||
4843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4844          X"$0" : 'X\(//\)$' \| \
4845          X"$0" : 'X\(/\)$' \| \
4846          .     : '\(.\)' 2>/dev/null ||
4847 echo X/"$0" |
4848     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4849           /^X\/\(\/\/\)$/{ s//\1/; q; }
4850           /^X\/\(\/\).*/{ s//\1/; q; }
4851           s/.*/./; q'`
4852
4853
4854 # PATH needs CR, and LINENO needs CR and PATH.
4855 # Avoid depending upon Character Ranges.
4856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4859 as_cr_digits='0123456789'
4860 as_cr_alnum=$as_cr_Letters$as_cr_digits
4861
4862 # The user is always right.
4863 if test "${PATH_SEPARATOR+set}" != set; then
4864   echo "#! /bin/sh" >conf$$.sh
4865   echo  "exit 0"   >>conf$$.sh
4866   chmod +x conf$$.sh
4867   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4868     PATH_SEPARATOR=';'
4869   else
4870     PATH_SEPARATOR=:
4871   fi
4872   rm -f conf$$.sh
4873 fi
4874
4875
4876   as_lineno_1=$LINENO
4877   as_lineno_2=$LINENO
4878   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4879   test "x$as_lineno_1" != "x$as_lineno_2" &&
4880   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4881   # Find who we are.  Look in the path if we contain no path at all
4882   # relative or not.
4883   case $0 in
4884     *[\\/]* ) as_myself=$0 ;;
4885     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4891 done
4892
4893        ;;
4894   esac
4895   # We did not find ourselves, most probably we were run as `sh COMMAND'
4896   # in which case we are not to be found in the path.
4897   if test "x$as_myself" = x; then
4898     as_myself=$0
4899   fi
4900   if test ! -f "$as_myself"; then
4901     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4902 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4903    { (exit 1); exit 1; }; }
4904   fi
4905   case $CONFIG_SHELL in
4906   '')
4907     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4909 do
4910   IFS=$as_save_IFS
4911   test -z "$as_dir" && as_dir=.
4912   for as_base in sh bash ksh sh5; do
4913          case $as_dir in
4914          /*)
4915            if ("$as_dir/$as_base" -c '
4916   as_lineno_1=$LINENO
4917   as_lineno_2=$LINENO
4918   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4919   test "x$as_lineno_1" != "x$as_lineno_2" &&
4920   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4921              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4922              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4923              CONFIG_SHELL=$as_dir/$as_base
4924              export CONFIG_SHELL
4925              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4926            fi;;
4927          esac
4928        done
4929 done
4930 ;;
4931   esac
4932
4933   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4934   # uniformly replaced by the line number.  The first 'sed' inserts a
4935   # line-number line before each line; the second 'sed' does the real
4936   # work.  The second script uses 'N' to pair each line-number line
4937   # with the numbered line, and appends trailing '-' during
4938   # substitution so that $LINENO is not a special case at line end.
4939   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4940   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4941   sed '=' <$as_myself |
4942     sed '
4943       N
4944       s,$,-,
4945       : loop
4946       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4947       t loop
4948       s,-$,,
4949       s,^['$as_cr_digits']*\n,,
4950     ' >$as_me.lineno &&
4951   chmod +x $as_me.lineno ||
4952     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4953 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4954    { (exit 1); exit 1; }; }
4955
4956   # Don't try to exec as it changes $[0], causing all sort of problems
4957   # (the dirname of $[0] is not the place where we might find the
4958   # original and so on.  Autoconf is especially sensible to this).
4959   . ./$as_me.lineno
4960   # Exit status is that of the last command.
4961   exit
4962 }
4963
4964
4965 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4966   *c*,-n*) ECHO_N= ECHO_C='
4967 ' ECHO_T='      ' ;;
4968   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4969   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4970 esac
4971
4972 if expr a : '\(a\)' >/dev/null 2>&1; then
4973   as_expr=expr
4974 else
4975   as_expr=false
4976 fi
4977
4978 rm -f conf$$ conf$$.exe conf$$.file
4979 echo >conf$$.file
4980 if ln -s conf$$.file conf$$ 2>/dev/null; then
4981   # We could just check for DJGPP; but this test a) works b) is more generic
4982   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4983   if test -f conf$$.exe; then
4984     # Don't use ln at all; we don't have any links
4985     as_ln_s='cp -p'
4986   else
4987     as_ln_s='ln -s'
4988   fi
4989 elif ln conf$$.file conf$$ 2>/dev/null; then
4990   as_ln_s=ln
4991 else
4992   as_ln_s='cp -p'
4993 fi
4994 rm -f conf$$ conf$$.exe conf$$.file
4995
4996 if mkdir -p . 2>/dev/null; then
4997   as_mkdir_p=:
4998 else
4999   test -d ./-p && rmdir ./-p
5000   as_mkdir_p=false
5001 fi
5002
5003 as_executable_p="test -f"
5004
5005 # Sed expression to map a string onto a valid CPP name.
5006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5007
5008 # Sed expression to map a string onto a valid variable name.
5009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5010
5011
5012 # IFS
5013 # We need space, tab and new line, in precisely that order.
5014 as_nl='
5015 '
5016 IFS="   $as_nl"
5017
5018 # CDPATH.
5019 $as_unset CDPATH
5020
5021 exec 6>&1
5022
5023 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5024 # report actual input values of CONFIG_FILES etc. instead of their
5025 # values after options handling.  Logging --version etc. is OK.
5026 exec 5>>config.log
5027 {
5028   echo
5029   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5030 ## Running $as_me. ##
5031 _ASBOX
5032 } >&5
5033 cat >&5 <<_CSEOF
5034
5035 This file was extended by RtAudio $as_me 4.0, which was
5036 generated by GNU Autoconf 2.59.  Invocation command line was
5037
5038   CONFIG_FILES    = $CONFIG_FILES
5039   CONFIG_HEADERS  = $CONFIG_HEADERS
5040   CONFIG_LINKS    = $CONFIG_LINKS
5041   CONFIG_COMMANDS = $CONFIG_COMMANDS
5042   $ $0 $@
5043
5044 _CSEOF
5045 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5046 echo >&5
5047 _ACEOF
5048
5049 # Files that config.status was made for.
5050 if test -n "$ac_config_files"; then
5051   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5052 fi
5053
5054 if test -n "$ac_config_headers"; then
5055   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5056 fi
5057
5058 if test -n "$ac_config_links"; then
5059   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5060 fi
5061
5062 if test -n "$ac_config_commands"; then
5063   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5064 fi
5065
5066 cat >>$CONFIG_STATUS <<\_ACEOF
5067
5068 ac_cs_usage="\
5069 \`$as_me' instantiates files from templates according to the
5070 current configuration.
5071
5072 Usage: $0 [OPTIONS] [FILE]...
5073
5074   -h, --help       print this help, then exit
5075   -V, --version    print version number, then exit
5076   -q, --quiet      do not print progress messages
5077   -d, --debug      don't remove temporary files
5078       --recheck    update $as_me by reconfiguring in the same conditions
5079   --file=FILE[:TEMPLATE]
5080                    instantiate the configuration file FILE
5081
5082 Configuration files:
5083 $config_files
5084
5085 Report bugs to <bug-autoconf@gnu.org>."
5086 _ACEOF
5087
5088 cat >>$CONFIG_STATUS <<_ACEOF
5089 ac_cs_version="\\
5090 RtAudio config.status 4.0
5091 configured by $0, generated by GNU Autoconf 2.59,
5092   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5093
5094 Copyright (C) 2003 Free Software Foundation, Inc.
5095 This config.status script is free software; the Free Software Foundation
5096 gives unlimited permission to copy, distribute and modify it."
5097 srcdir=$srcdir
5098 _ACEOF
5099
5100 cat >>$CONFIG_STATUS <<\_ACEOF
5101 # If no file are specified by the user, then we need to provide default
5102 # value.  By we need to know if files were specified by the user.
5103 ac_need_defaults=:
5104 while test $# != 0
5105 do
5106   case $1 in
5107   --*=*)
5108     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5109     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5110     ac_shift=:
5111     ;;
5112   -*)
5113     ac_option=$1
5114     ac_optarg=$2
5115     ac_shift=shift
5116     ;;
5117   *) # This is not an option, so the user has probably given explicit
5118      # arguments.
5119      ac_option=$1
5120      ac_need_defaults=false;;
5121   esac
5122
5123   case $ac_option in
5124   # Handling of the options.
5125 _ACEOF
5126 cat >>$CONFIG_STATUS <<\_ACEOF
5127   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5128     ac_cs_recheck=: ;;
5129   --version | --vers* | -V )
5130     echo "$ac_cs_version"; exit 0 ;;
5131   --he | --h)
5132     # Conflict between --help and --header
5133     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5134 Try \`$0 --help' for more information." >&5
5135 echo "$as_me: error: ambiguous option: $1
5136 Try \`$0 --help' for more information." >&2;}
5137    { (exit 1); exit 1; }; };;
5138   --help | --hel | -h )
5139     echo "$ac_cs_usage"; exit 0 ;;
5140   --debug | --d* | -d )
5141     debug=: ;;
5142   --file | --fil | --fi | --f )
5143     $ac_shift
5144     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5145     ac_need_defaults=false;;
5146   --header | --heade | --head | --hea )
5147     $ac_shift
5148     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5149     ac_need_defaults=false;;
5150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5151   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5152     ac_cs_silent=: ;;
5153
5154   # This is an error.
5155   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5156 Try \`$0 --help' for more information." >&5
5157 echo "$as_me: error: unrecognized option: $1
5158 Try \`$0 --help' for more information." >&2;}
5159    { (exit 1); exit 1; }; } ;;
5160
5161   *) ac_config_targets="$ac_config_targets $1" ;;
5162
5163   esac
5164   shift
5165 done
5166
5167 ac_configure_extra_args=
5168
5169 if $ac_cs_silent; then
5170   exec 6>/dev/null
5171   ac_configure_extra_args="$ac_configure_extra_args --silent"
5172 fi
5173
5174 _ACEOF
5175 cat >>$CONFIG_STATUS <<_ACEOF
5176 if \$ac_cs_recheck; then
5177   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5178   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5179 fi
5180
5181 _ACEOF
5182
5183
5184
5185
5186
5187 cat >>$CONFIG_STATUS <<\_ACEOF
5188 for ac_config_target in $ac_config_targets
5189 do
5190   case "$ac_config_target" in
5191   # Handling of arguments.
5192   "rtaudio-config" ) CONFIG_FILES="$CONFIG_FILES rtaudio-config" ;;
5193   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5194   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
5195   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5196 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5197    { (exit 1); exit 1; }; };;
5198   esac
5199 done
5200
5201 # If the user did not use the arguments to specify the items to instantiate,
5202 # then the envvar interface is used.  Set only those that are not.
5203 # We use the long form for the default assignment because of an extremely
5204 # bizarre bug on SunOS 4.1.3.
5205 if $ac_need_defaults; then
5206   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5207 fi
5208
5209 # Have a temporary directory for convenience.  Make it in the build tree
5210 # simply because there is no reason to put it here, and in addition,
5211 # creating and moving files from /tmp can sometimes cause problems.
5212 # Create a temporary directory, and hook for its removal unless debugging.
5213 $debug ||
5214 {
5215   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5216   trap '{ (exit 1); exit 1; }' 1 2 13 15
5217 }
5218
5219 # Create a (secure) tmp directory for tmp files.
5220
5221 {
5222   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5223   test -n "$tmp" && test -d "$tmp"
5224 }  ||
5225 {
5226   tmp=./confstat$$-$RANDOM
5227   (umask 077 && mkdir $tmp)
5228 } ||
5229 {
5230    echo "$me: cannot create a temporary directory in ." >&2
5231    { (exit 1); exit 1; }
5232 }
5233
5234 _ACEOF
5235
5236 cat >>$CONFIG_STATUS <<_ACEOF
5237
5238 #
5239 # CONFIG_FILES section.
5240 #
5241
5242 # No need to generate the scripts if there are no CONFIG_FILES.
5243 # This happens for instance when ./config.status config.h
5244 if test -n "\$CONFIG_FILES"; then
5245   # Protect against being on the right side of a sed subst in config.status.
5246   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5247    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5248 s,@SHELL@,$SHELL,;t t
5249 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5250 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5251 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5252 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5253 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5254 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5255 s,@exec_prefix@,$exec_prefix,;t t
5256 s,@prefix@,$prefix,;t t
5257 s,@program_transform_name@,$program_transform_name,;t t
5258 s,@bindir@,$bindir,;t t
5259 s,@sbindir@,$sbindir,;t t
5260 s,@libexecdir@,$libexecdir,;t t
5261 s,@datadir@,$datadir,;t t
5262 s,@sysconfdir@,$sysconfdir,;t t
5263 s,@sharedstatedir@,$sharedstatedir,;t t
5264 s,@localstatedir@,$localstatedir,;t t
5265 s,@libdir@,$libdir,;t t
5266 s,@includedir@,$includedir,;t t
5267 s,@oldincludedir@,$oldincludedir,;t t
5268 s,@infodir@,$infodir,;t t
5269 s,@mandir@,$mandir,;t t
5270 s,@build_alias@,$build_alias,;t t
5271 s,@host_alias@,$host_alias,;t t
5272 s,@target_alias@,$target_alias,;t t
5273 s,@DEFS@,$DEFS,;t t
5274 s,@ECHO_C@,$ECHO_C,;t t
5275 s,@ECHO_N@,$ECHO_N,;t t
5276 s,@ECHO_T@,$ECHO_T,;t t
5277 s,@LIBS@,$LIBS,;t t
5278 s,@GXX@,$GXX,;t t
5279 s,@CC@,$CC,;t t
5280 s,@CFLAGS@,$CFLAGS,;t t
5281 s,@LDFLAGS@,$LDFLAGS,;t t
5282 s,@CPPFLAGS@,$CPPFLAGS,;t t
5283 s,@ac_ct_CC@,$ac_ct_CC,;t t
5284 s,@EXEEXT@,$EXEEXT,;t t
5285 s,@OBJEXT@,$OBJEXT,;t t
5286 s,@CXX@,$CXX,;t t
5287 s,@CXXFLAGS@,$CXXFLAGS,;t t
5288 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5289 s,@RANLIB@,$RANLIB,;t t
5290 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5291 s,@AR@,$AR,;t t
5292 s,@CPP@,$CPP,;t t
5293 s,@EGREP@,$EGREP,;t t
5294 s,@debug@,$debug,;t t
5295 s,@cflags@,$cflags,;t t
5296 s,@object_path@,$object_path,;t t
5297 s,@warn@,$warn,;t t
5298 s,@build@,$build,;t t
5299 s,@build_cpu@,$build_cpu,;t t
5300 s,@build_vendor@,$build_vendor,;t t
5301 s,@build_os@,$build_os,;t t
5302 s,@host@,$host,;t t
5303 s,@host_cpu@,$host_cpu,;t t
5304 s,@host_vendor@,$host_vendor,;t t
5305 s,@host_os@,$host_os,;t t
5306 s,@sound_api@,$sound_api,;t t
5307 s,@audio_apis@,$audio_apis,;t t
5308 s,@frameworks@,$frameworks,;t t
5309 s,@LIBOBJS@,$LIBOBJS,;t t
5310 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5311 CEOF
5312
5313 _ACEOF
5314
5315   cat >>$CONFIG_STATUS <<\_ACEOF
5316   # Split the substitutions into bite-sized pieces for seds with
5317   # small command number limits, like on Digital OSF/1 and HP-UX.
5318   ac_max_sed_lines=48
5319   ac_sed_frag=1 # Number of current file.
5320   ac_beg=1 # First line for current file.
5321   ac_end=$ac_max_sed_lines # Line after last line for current file.
5322   ac_more_lines=:
5323   ac_sed_cmds=
5324   while $ac_more_lines; do
5325     if test $ac_beg -gt 1; then
5326       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5327     else
5328       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5329     fi
5330     if test ! -s $tmp/subs.frag; then
5331       ac_more_lines=false
5332     else
5333       # The purpose of the label and of the branching condition is to
5334       # speed up the sed processing (if there are no `@' at all, there
5335       # is no need to browse any of the substitutions).
5336       # These are the two extra sed commands mentioned above.
5337       (echo ':t
5338   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5339       if test -z "$ac_sed_cmds"; then
5340         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5341       else
5342         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5343       fi
5344       ac_sed_frag=`expr $ac_sed_frag + 1`
5345       ac_beg=$ac_end
5346       ac_end=`expr $ac_end + $ac_max_sed_lines`
5347     fi
5348   done
5349   if test -z "$ac_sed_cmds"; then
5350     ac_sed_cmds=cat
5351   fi
5352 fi # test -n "$CONFIG_FILES"
5353
5354 _ACEOF
5355 cat >>$CONFIG_STATUS <<\_ACEOF
5356 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5357   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5358   case $ac_file in
5359   - | *:- | *:-:* ) # input from stdin
5360         cat >$tmp/stdin
5361         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5362         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5363   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5364         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5365   * )   ac_file_in=$ac_file.in ;;
5366   esac
5367
5368   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5369   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5371          X"$ac_file" : 'X\(//\)[^/]' \| \
5372          X"$ac_file" : 'X\(//\)$' \| \
5373          X"$ac_file" : 'X\(/\)' \| \
5374          .     : '\(.\)' 2>/dev/null ||
5375 echo X"$ac_file" |
5376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5377           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5378           /^X\(\/\/\)$/{ s//\1/; q; }
5379           /^X\(\/\).*/{ s//\1/; q; }
5380           s/.*/./; q'`
5381   { if $as_mkdir_p; then
5382     mkdir -p "$ac_dir"
5383   else
5384     as_dir="$ac_dir"
5385     as_dirs=
5386     while test ! -d "$as_dir"; do
5387       as_dirs="$as_dir $as_dirs"
5388       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5390          X"$as_dir" : 'X\(//\)[^/]' \| \
5391          X"$as_dir" : 'X\(//\)$' \| \
5392          X"$as_dir" : 'X\(/\)' \| \
5393          .     : '\(.\)' 2>/dev/null ||
5394 echo X"$as_dir" |
5395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5396           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5397           /^X\(\/\/\)$/{ s//\1/; q; }
5398           /^X\(\/\).*/{ s//\1/; q; }
5399           s/.*/./; q'`
5400     done
5401     test ! -n "$as_dirs" || mkdir $as_dirs
5402   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5403 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5404    { (exit 1); exit 1; }; }; }
5405
5406   ac_builddir=.
5407
5408 if test "$ac_dir" != .; then
5409   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5410   # A "../" for each directory in $ac_dir_suffix.
5411   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5412 else
5413   ac_dir_suffix= ac_top_builddir=
5414 fi
5415
5416 case $srcdir in
5417   .)  # No --srcdir option.  We are building in place.
5418     ac_srcdir=.
5419     if test -z "$ac_top_builddir"; then
5420        ac_top_srcdir=.
5421     else
5422        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5423     fi ;;
5424   [\\/]* | ?:[\\/]* )  # Absolute path.
5425     ac_srcdir=$srcdir$ac_dir_suffix;
5426     ac_top_srcdir=$srcdir ;;
5427   *) # Relative path.
5428     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5429     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5430 esac
5431
5432 # Do not use `cd foo && pwd` to compute absolute paths, because
5433 # the directories may not exist.
5434 case `pwd` in
5435 .) ac_abs_builddir="$ac_dir";;
5436 *)
5437   case "$ac_dir" in
5438   .) ac_abs_builddir=`pwd`;;
5439   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5440   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5441   esac;;
5442 esac
5443 case $ac_abs_builddir in
5444 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5445 *)
5446   case ${ac_top_builddir}. in
5447   .) ac_abs_top_builddir=$ac_abs_builddir;;
5448   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5449   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5450   esac;;
5451 esac
5452 case $ac_abs_builddir in
5453 .) ac_abs_srcdir=$ac_srcdir;;
5454 *)
5455   case $ac_srcdir in
5456   .) ac_abs_srcdir=$ac_abs_builddir;;
5457   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5458   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5459   esac;;
5460 esac
5461 case $ac_abs_builddir in
5462 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5463 *)
5464   case $ac_top_srcdir in
5465   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5466   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5467   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5468   esac;;
5469 esac
5470
5471
5472
5473   if test x"$ac_file" != x-; then
5474     { echo "$as_me:$LINENO: creating $ac_file" >&5
5475 echo "$as_me: creating $ac_file" >&6;}
5476     rm -f "$ac_file"
5477   fi
5478   # Let's still pretend it is `configure' which instantiates (i.e., don't
5479   # use $as_me), people would be surprised to read:
5480   #    /* config.h.  Generated by config.status.  */
5481   if test x"$ac_file" = x-; then
5482     configure_input=
5483   else
5484     configure_input="$ac_file.  "
5485   fi
5486   configure_input=$configure_input"Generated from `echo $ac_file_in |
5487                                      sed 's,.*/,,'` by configure."
5488
5489   # First look for the input files in the build tree, otherwise in the
5490   # src tree.
5491   ac_file_inputs=`IFS=:
5492     for f in $ac_file_in; do
5493       case $f in
5494       -) echo $tmp/stdin ;;
5495       [\\/$]*)
5496          # Absolute (can't be DOS-style, as IFS=:)
5497          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5498 echo "$as_me: error: cannot find input file: $f" >&2;}
5499    { (exit 1); exit 1; }; }
5500          echo "$f";;
5501       *) # Relative
5502          if test -f "$f"; then
5503            # Build tree
5504            echo "$f"
5505          elif test -f "$srcdir/$f"; then
5506            # Source tree
5507            echo "$srcdir/$f"
5508          else
5509            # /dev/null tree
5510            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5511 echo "$as_me: error: cannot find input file: $f" >&2;}
5512    { (exit 1); exit 1; }; }
5513          fi;;
5514       esac
5515     done` || { (exit 1); exit 1; }
5516 _ACEOF
5517 cat >>$CONFIG_STATUS <<_ACEOF
5518   sed "$ac_vpsub
5519 $extrasub
5520 _ACEOF
5521 cat >>$CONFIG_STATUS <<\_ACEOF
5522 :t
5523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5524 s,@configure_input@,$configure_input,;t t
5525 s,@srcdir@,$ac_srcdir,;t t
5526 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5527 s,@top_srcdir@,$ac_top_srcdir,;t t
5528 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5529 s,@builddir@,$ac_builddir,;t t
5530 s,@abs_builddir@,$ac_abs_builddir,;t t
5531 s,@top_builddir@,$ac_top_builddir,;t t
5532 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5533 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5534   rm -f $tmp/stdin
5535   if test x"$ac_file" != x-; then
5536     mv $tmp/out $ac_file
5537   else
5538     cat $tmp/out
5539     rm -f $tmp/out
5540   fi
5541
5542 done
5543 _ACEOF
5544
5545 cat >>$CONFIG_STATUS <<\_ACEOF
5546
5547 { (exit 0); exit 0; }
5548 _ACEOF
5549 chmod +x $CONFIG_STATUS
5550 ac_clean_files=$ac_clean_files_save
5551
5552
5553 # configure is writing to config.log, and then calls config.status.
5554 # config.status does its own redirection, appending to config.log.
5555 # Unfortunately, on DOS this fails, as config.log is still kept open
5556 # by configure, so config.status won't be able to write to it; its
5557 # output is simply discarded.  So we exec the FD to /dev/null,
5558 # effectively closing config.log, so it can be properly (re)opened and
5559 # appended to by config.status.  When coming back to configure, we
5560 # need to make the FD available again.
5561 if test "$no_create" != yes; then
5562   ac_cs_success=:
5563   ac_config_status_args=
5564   test "$silent" = yes &&
5565     ac_config_status_args="$ac_config_status_args --quiet"
5566   exec 5>/dev/null
5567   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5568   exec 5>>config.log
5569   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5570   # would make configure fail if this is the last instruction.
5571   $ac_cs_success || { (exit 1); exit 1; }
5572 fi
5573
5574
5575 chmod oug+x rtaudio-config