Release 2.1 tarball
[rtaudio.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52 for RtAudio 2.1.
4 #
5 # Report bugs to <gary@ccrma.stanford.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
18
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27   emulate sh
28   NULLCMD=:
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30   set -o posix
31 fi
32
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35
36 if expr a : '\(a\)' >/dev/null 2>&1; then
37   as_expr=expr
38 else
39   as_expr=false
40 fi
41
42 rm -f conf$$ conf$$.exe conf$$.file
43 echo >conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45   # We could just check for DJGPP; but this test a) works b) is more generic
46   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47   if test -f conf$$.exe; then
48     # Don't use ln at all; we don't have any links
49     as_ln_s='cp -p'
50   else
51     as_ln_s='ln -s'
52   fi
53 elif ln conf$$.file conf$$ 2>/dev/null; then
54   as_ln_s=ln
55 else
56   as_ln_s='cp -p'
57 fi
58 rm -f conf$$ conf$$.exe conf$$.file
59
60 as_executable_p="test -f"
61
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
64   as_unset=unset
65 else
66   as_unset=false
67 fi
68
69 # NLS nuisances.
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78
79 # IFS
80 # We need space, tab and new line, in precisely that order.
81 as_nl='
82 '
83 IFS="   $as_nl"
84
85 # CDPATH.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87
88 # Name of the host.
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
92
93 exec 6>&1
94
95 #
96 # Initializations.
97 #
98 ac_default_prefix=/usr/local
99 cross_compiling=no
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete.  It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : ${ac_max_here_lines=38}
108
109 ac_unique_file="RtAudio.cpp"
110
111 # Initialize some variables set by options.
112 ac_init_help=
113 ac_init_version=false
114 # The variables have the same names as the options, with
115 # dashes changed to underlines.
116 cache_file=/dev/null
117 exec_prefix=NONE
118 no_create=
119 no_recursion=
120 prefix=NONE
121 program_prefix=NONE
122 program_suffix=NONE
123 program_transform_name=s,x,x,
124 silent=
125 site=
126 srcdir=
127 verbose=
128 x_includes=NONE
129 x_libraries=NONE
130
131 # Installation directory options.
132 # These are left unexpanded so users can "make install exec_prefix=/foo"
133 # and all the variables that are supposed to be based on exec_prefix
134 # by default will actually change.
135 # Use braces instead of parens because sh, perl, etc. also accept them.
136 bindir='${exec_prefix}/bin'
137 sbindir='${exec_prefix}/sbin'
138 libexecdir='${exec_prefix}/libexec'
139 datadir='${prefix}/share'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${prefix}/info'
147 mandir='${prefix}/man'
148
149 # Identity of this package.
150 PACKAGE_NAME='RtAudio'
151 PACKAGE_TARNAME='rtaudio'
152 PACKAGE_VERSION='2.1'
153 PACKAGE_STRING='RtAudio 2.1'
154 PACKAGE_BUGREPORT='gary@ccrma.stanford.edu'
155
156 ac_prev=
157 for ac_option
158 do
159   # If the previous option needs an argument, assign it.
160   if test -n "$ac_prev"; then
161     eval "$ac_prev=\$ac_option"
162     ac_prev=
163     continue
164   fi
165
166   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167
168   # Accept the important Cygnus configure options, so we can diagnose typos.
169
170   case $ac_option in
171
172   -bindir | --bindir | --bindi | --bind | --bin | --bi)
173     ac_prev=bindir ;;
174   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175     bindir=$ac_optarg ;;
176
177   -build | --build | --buil | --bui | --bu)
178     ac_prev=build_alias ;;
179   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180     build_alias=$ac_optarg ;;
181
182   -cache-file | --cache-file | --cache-fil | --cache-fi \
183   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184     ac_prev=cache_file ;;
185   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187     cache_file=$ac_optarg ;;
188
189   --config-cache | -C)
190     cache_file=config.cache ;;
191
192   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193     ac_prev=datadir ;;
194   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195   | --da=*)
196     datadir=$ac_optarg ;;
197
198   -disable-* | --disable-*)
199     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
200     # Reject names that are not valid shell variable names.
201     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
202       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
203    { (exit 1); exit 1; }; }
204     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
205     eval "enable_$ac_feature=no" ;;
206
207   -enable-* | --enable-*)
208     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
209     # Reject names that are not valid shell variable names.
210     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
211       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
212    { (exit 1); exit 1; }; }
213     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214     case $ac_option in
215       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216       *) ac_optarg=yes ;;
217     esac
218     eval "enable_$ac_feature='$ac_optarg'" ;;
219
220   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
221   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
222   | --exec | --exe | --ex)
223     ac_prev=exec_prefix ;;
224   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
225   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
226   | --exec=* | --exe=* | --ex=*)
227     exec_prefix=$ac_optarg ;;
228
229   -gas | --gas | --ga | --g)
230     # Obsolete; use --with-gas.
231     with_gas=yes ;;
232
233   -help | --help | --hel | --he | -h)
234     ac_init_help=long ;;
235   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
236     ac_init_help=recursive ;;
237   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
238     ac_init_help=short ;;
239
240   -host | --host | --hos | --ho)
241     ac_prev=host_alias ;;
242   -host=* | --host=* | --hos=* | --ho=*)
243     host_alias=$ac_optarg ;;
244
245   -includedir | --includedir | --includedi | --included | --include \
246   | --includ | --inclu | --incl | --inc)
247     ac_prev=includedir ;;
248   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249   | --includ=* | --inclu=* | --incl=* | --inc=*)
250     includedir=$ac_optarg ;;
251
252   -infodir | --infodir | --infodi | --infod | --info | --inf)
253     ac_prev=infodir ;;
254   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255     infodir=$ac_optarg ;;
256
257   -libdir | --libdir | --libdi | --libd)
258     ac_prev=libdir ;;
259   -libdir=* | --libdir=* | --libdi=* | --libd=*)
260     libdir=$ac_optarg ;;
261
262   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263   | --libexe | --libex | --libe)
264     ac_prev=libexecdir ;;
265   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266   | --libexe=* | --libex=* | --libe=*)
267     libexecdir=$ac_optarg ;;
268
269   -localstatedir | --localstatedir | --localstatedi | --localstated \
270   | --localstate | --localstat | --localsta | --localst \
271   | --locals | --local | --loca | --loc | --lo)
272     ac_prev=localstatedir ;;
273   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276     localstatedir=$ac_optarg ;;
277
278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279     ac_prev=mandir ;;
280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281     mandir=$ac_optarg ;;
282
283   -nfp | --nfp | --nf)
284     # Obsolete; use --without-fp.
285     with_fp=no ;;
286
287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288   | --no-cr | --no-c)
289     no_create=yes ;;
290
291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293     no_recursion=yes ;;
294
295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297   | --oldin | --oldi | --old | --ol | --o)
298     ac_prev=oldincludedir ;;
299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302     oldincludedir=$ac_optarg ;;
303
304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305     ac_prev=prefix ;;
306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307     prefix=$ac_optarg ;;
308
309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
310   | --program-pre | --program-pr | --program-p)
311     ac_prev=program_prefix ;;
312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314     program_prefix=$ac_optarg ;;
315
316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
317   | --program-suf | --program-su | --program-s)
318     ac_prev=program_suffix ;;
319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321     program_suffix=$ac_optarg ;;
322
323   -program-transform-name | --program-transform-name \
324   | --program-transform-nam | --program-transform-na \
325   | --program-transform-n | --program-transform- \
326   | --program-transform | --program-transfor \
327   | --program-transfo | --program-transf \
328   | --program-trans | --program-tran \
329   | --progr-tra | --program-tr | --program-t)
330     ac_prev=program_transform_name ;;
331   -program-transform-name=* | --program-transform-name=* \
332   | --program-transform-nam=* | --program-transform-na=* \
333   | --program-transform-n=* | --program-transform-=* \
334   | --program-transform=* | --program-transfor=* \
335   | --program-transfo=* | --program-transf=* \
336   | --program-trans=* | --program-tran=* \
337   | --progr-tra=* | --program-tr=* | --program-t=*)
338     program_transform_name=$ac_optarg ;;
339
340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341   | -silent | --silent | --silen | --sile | --sil)
342     silent=yes ;;
343
344   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345     ac_prev=sbindir ;;
346   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347   | --sbi=* | --sb=*)
348     sbindir=$ac_optarg ;;
349
350   -sharedstatedir | --sharedstatedir | --sharedstatedi \
351   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352   | --sharedst | --shareds | --shared | --share | --shar \
353   | --sha | --sh)
354     ac_prev=sharedstatedir ;;
355   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358   | --sha=* | --sh=*)
359     sharedstatedir=$ac_optarg ;;
360
361   -site | --site | --sit)
362     ac_prev=site ;;
363   -site=* | --site=* | --sit=*)
364     site=$ac_optarg ;;
365
366   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367     ac_prev=srcdir ;;
368   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369     srcdir=$ac_optarg ;;
370
371   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372   | --syscon | --sysco | --sysc | --sys | --sy)
373     ac_prev=sysconfdir ;;
374   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376     sysconfdir=$ac_optarg ;;
377
378   -target | --target | --targe | --targ | --tar | --ta | --t)
379     ac_prev=target_alias ;;
380   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381     target_alias=$ac_optarg ;;
382
383   -v | -verbose | --verbose | --verbos | --verbo | --verb)
384     verbose=yes ;;
385
386   -version | --version | --versio | --versi | --vers | -V)
387     ac_init_version=: ;;
388
389   -with-* | --with-*)
390     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
391     # Reject names that are not valid shell variable names.
392     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393       { echo "$as_me: error: invalid package name: $ac_package" >&2
394    { (exit 1); exit 1; }; }
395     ac_package=`echo $ac_package| sed 's/-/_/g'`
396     case $ac_option in
397       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398       *) ac_optarg=yes ;;
399     esac
400     eval "with_$ac_package='$ac_optarg'" ;;
401
402   -without-* | --without-*)
403     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
404     # Reject names that are not valid shell variable names.
405     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
406       { echo "$as_me: error: invalid package name: $ac_package" >&2
407    { (exit 1); exit 1; }; }
408     ac_package=`echo $ac_package | sed 's/-/_/g'`
409     eval "with_$ac_package=no" ;;
410
411   --x)
412     # Obsolete; use --with-x.
413     with_x=yes ;;
414
415   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416   | --x-incl | --x-inc | --x-in | --x-i)
417     ac_prev=x_includes ;;
418   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420     x_includes=$ac_optarg ;;
421
422   -x-libraries | --x-libraries | --x-librarie | --x-librari \
423   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424     ac_prev=x_libraries ;;
425   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427     x_libraries=$ac_optarg ;;
428
429   -*) { echo "$as_me: error: unrecognized option: $ac_option
430 Try \`$0 --help' for more information." >&2
431    { (exit 1); exit 1; }; }
432     ;;
433
434   *=*)
435     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
436     # Reject names that are not valid shell variable names.
437     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
438       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
439    { (exit 1); exit 1; }; }
440     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
441     eval "$ac_envvar='$ac_optarg'"
442     export $ac_envvar ;;
443
444   *)
445     # FIXME: should be removed in autoconf 3.0.
446     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
447     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
448       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
449     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
450     ;;
451
452   esac
453 done
454
455 if test -n "$ac_prev"; then
456   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
457   { echo "$as_me: error: missing argument to $ac_option" >&2
458    { (exit 1); exit 1; }; }
459 fi
460
461 # Be sure to have absolute paths.
462 for ac_var in exec_prefix prefix
463 do
464   eval ac_val=$`echo $ac_var`
465   case $ac_val in
466     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
467     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
468    { (exit 1); exit 1; }; };;
469   esac
470 done
471
472 # Be sure to have absolute paths.
473 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
474               localstatedir libdir includedir oldincludedir infodir mandir
475 do
476   eval ac_val=$`echo $ac_var`
477   case $ac_val in
478     [\\/$]* | ?:[\\/]* ) ;;
479     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
480    { (exit 1); exit 1; }; };;
481   esac
482 done
483
484 # There might be people who depend on the old broken behavior: `$host'
485 # used to hold the argument of --host etc.
486 build=$build_alias
487 host=$host_alias
488 target=$target_alias
489
490 # FIXME: should be removed in autoconf 3.0.
491 if test "x$host_alias" != x; then
492   if test "x$build_alias" = x; then
493     cross_compiling=maybe
494     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
495     If a cross compiler is detected then cross compile mode will be used." >&2
496   elif test "x$build_alias" != "x$host_alias"; then
497     cross_compiling=yes
498   fi
499 fi
500
501 ac_tool_prefix=
502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503
504 test "$silent" = yes && exec 6>/dev/null
505
506 # Find the source files, if location was not specified.
507 if test -z "$srcdir"; then
508   ac_srcdir_defaulted=yes
509   # Try the directory containing this script, then its parent.
510   ac_prog=$0
511   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
512   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513   srcdir=$ac_confdir
514   if test ! -r $srcdir/$ac_unique_file; then
515     srcdir=..
516   fi
517 else
518   ac_srcdir_defaulted=no
519 fi
520 if test ! -r $srcdir/$ac_unique_file; then
521   if test "$ac_srcdir_defaulted" = yes; then
522     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
523    { (exit 1); exit 1; }; }
524   else
525     { echo "$as_me: error: cannot find sources in $srcdir" >&2
526    { (exit 1); exit 1; }; }
527   fi
528 fi
529 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
530 ac_env_build_alias_set=${build_alias+set}
531 ac_env_build_alias_value=$build_alias
532 ac_cv_env_build_alias_set=${build_alias+set}
533 ac_cv_env_build_alias_value=$build_alias
534 ac_env_host_alias_set=${host_alias+set}
535 ac_env_host_alias_value=$host_alias
536 ac_cv_env_host_alias_set=${host_alias+set}
537 ac_cv_env_host_alias_value=$host_alias
538 ac_env_target_alias_set=${target_alias+set}
539 ac_env_target_alias_value=$target_alias
540 ac_cv_env_target_alias_set=${target_alias+set}
541 ac_cv_env_target_alias_value=$target_alias
542 ac_env_CC_set=${CC+set}
543 ac_env_CC_value=$CC
544 ac_cv_env_CC_set=${CC+set}
545 ac_cv_env_CC_value=$CC
546 ac_env_CFLAGS_set=${CFLAGS+set}
547 ac_env_CFLAGS_value=$CFLAGS
548 ac_cv_env_CFLAGS_set=${CFLAGS+set}
549 ac_cv_env_CFLAGS_value=$CFLAGS
550 ac_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_env_LDFLAGS_value=$LDFLAGS
552 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
553 ac_cv_env_LDFLAGS_value=$LDFLAGS
554 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_env_CPPFLAGS_value=$CPPFLAGS
556 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
557 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
558 ac_env_CXX_set=${CXX+set}
559 ac_env_CXX_value=$CXX
560 ac_cv_env_CXX_set=${CXX+set}
561 ac_cv_env_CXX_value=$CXX
562 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
563 ac_env_CXXFLAGS_value=$CXXFLAGS
564 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
565 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
566 ac_env_CPP_set=${CPP+set}
567 ac_env_CPP_value=$CPP
568 ac_cv_env_CPP_set=${CPP+set}
569 ac_cv_env_CPP_value=$CPP
570
571 #
572 # Report the --help message.
573 #
574 if test "$ac_init_help" = "long"; then
575   # Omit some internal or obsolete options to make the list less imposing.
576   # This message is too long to be a string in the A/UX 3.1 sh.
577   cat <<EOF
578 \`configure' configures RtAudio 2.1 to adapt to many kinds of systems.
579
580 Usage: $0 [OPTION]... [VAR=VALUE]...
581
582 To assign environment variables (e.g., CC, CFLAGS...), specify them as
583 VAR=VALUE.  See below for descriptions of some of the useful variables.
584
585 Defaults for the options are specified in brackets.
586
587 Configuration:
588   -h, --help              display this help and exit
589       --help=short        display options specific to this package
590       --help=recursive    display the short help of all the included packages
591   -V, --version           display version information and exit
592   -q, --quiet, --silent   do not print \`checking...' messages
593       --cache-file=FILE   cache test results in FILE [disabled]
594   -C, --config-cache      alias for \`--cache-file=config.cache'
595   -n, --no-create         do not create output files
596       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
597
598 EOF
599
600   cat <<EOF
601 Installation directories:
602   --prefix=PREFIX         install architecture-independent files in PREFIX
603                           [$ac_default_prefix]
604   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
605                           [PREFIX]
606
607 By default, \`make install' will install all the files in
608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
610 for instance \`--prefix=\$HOME'.
611
612 For better control, use the options below.
613
614 Fine tuning of the installation directories:
615   --bindir=DIR           user executables [EPREFIX/bin]
616   --sbindir=DIR          system admin executables [EPREFIX/sbin]
617   --libexecdir=DIR       program executables [EPREFIX/libexec]
618   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
619   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
620   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
621   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
622   --libdir=DIR           object code libraries [EPREFIX/lib]
623   --includedir=DIR       C header files [PREFIX/include]
624   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
625   --infodir=DIR          info documentation [PREFIX/info]
626   --mandir=DIR           man documentation [PREFIX/man]
627 EOF
628
629   cat <<\EOF
630
631 System types:
632   --build=BUILD     configure for building on BUILD [guessed]
633   --host=HOST       build programs to run on HOST [BUILD]
634 EOF
635 fi
636
637 if test -n "$ac_init_help"; then
638   case $ac_init_help in
639      short | recursive ) echo "Configuration of RtAudio 2.1:";;
640    esac
641   cat <<\EOF
642
643 Optional Features:
644   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
645   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
646   --enable-debug = enable various debug output
647
648 Optional Packages:
649   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
650   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
651   --with-alsa = choose native ALSA API support (linux only)
652
653 Some influential environment variables:
654   CC          C compiler command
655   CFLAGS      C compiler flags
656   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
657               nonstandard directory <lib dir>
658   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
659               headers in a nonstandard directory <include dir>
660   CXX         C++ compiler command
661   CXXFLAGS    C++ compiler flags
662   CPP         C preprocessor
663
664 Use these variables to override the choices made by `configure' or to help
665 it to find libraries and programs with nonstandard names/locations.
666
667 Report bugs to <gary@ccrma.stanford.edu>.
668 EOF
669 fi
670
671 if test "$ac_init_help" = "recursive"; then
672   # If there are subdirs, report their specific --help.
673   ac_popdir=`pwd`
674   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
675     cd $ac_subdir
676     # A "../" for each directory in /$ac_subdir.
677     ac_dots=`echo $ac_subdir |
678              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
679
680     case $srcdir in
681     .) # No --srcdir option.  We are building in place.
682       ac_sub_srcdir=$srcdir ;;
683     [\\/]* | ?:[\\/]* ) # Absolute path.
684       ac_sub_srcdir=$srcdir/$ac_subdir ;;
685     *) # Relative path.
686       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
687     esac
688
689     # Check for guested configure; otherwise get Cygnus style configure.
690     if test -f $ac_sub_srcdir/configure.gnu; then
691       echo
692       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
693     elif test -f $ac_sub_srcdir/configure; then
694       echo
695       $SHELL $ac_sub_srcdir/configure  --help=recursive
696     elif test -f $ac_sub_srcdir/configure.ac ||
697            test -f $ac_sub_srcdir/configure.in; then
698       echo
699       $ac_configure --help
700     else
701       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
702     fi
703     cd $ac_popdir
704   done
705 fi
706
707 test -n "$ac_init_help" && exit 0
708 if $ac_init_version; then
709   cat <<\EOF
710 RtAudio configure 2.1
711 generated by GNU Autoconf 2.52
712
713 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
714 Free Software Foundation, Inc.
715 This configure script is free software; the Free Software Foundation
716 gives unlimited permission to copy, distribute and modify it.
717 EOF
718   exit 0
719 fi
720 exec 5>config.log
721 cat >&5 <<EOF
722 This file contains any messages produced by compilers while
723 running configure, to aid debugging if configure makes a mistake.
724
725 It was created by RtAudio $as_me 2.1, which was
726 generated by GNU Autoconf 2.52.  Invocation command line was
727
728   $ $0 $@
729
730 EOF
731 {
732 cat <<_ASUNAME
733 ## ---------- ##
734 ## Platform.  ##
735 ## ---------- ##
736
737 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
738 uname -m = `(uname -m) 2>/dev/null || echo unknown`
739 uname -r = `(uname -r) 2>/dev/null || echo unknown`
740 uname -s = `(uname -s) 2>/dev/null || echo unknown`
741 uname -v = `(uname -v) 2>/dev/null || echo unknown`
742
743 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
744 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
745
746 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
747 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
748 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
749 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
750 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
751 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
752 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
753
754 PATH = $PATH
755
756 _ASUNAME
757 } >&5
758
759 cat >&5 <<EOF
760 ## ------------ ##
761 ## Core tests.  ##
762 ## ------------ ##
763
764 EOF
765
766 # Keep a trace of the command line.
767 # Strip out --no-create and --no-recursion so they do not pile up.
768 # Also quote any args containing shell meta-characters.
769 ac_configure_args=
770 ac_sep=
771 for ac_arg
772 do
773   case $ac_arg in
774   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
775   | --no-cr | --no-c) ;;
776   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
777   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
778   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
779     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
780     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
781     ac_sep=" " ;;
782   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
783      ac_sep=" " ;;
784   esac
785   # Get rid of the leading space.
786 done
787
788 # When interrupted or exit'd, cleanup temporary files, and complete
789 # config.log.  We remove comments because anyway the quotes in there
790 # would cause problems or look ugly.
791 trap 'exit_status=$?
792   # Save into config.log some information that might help in debugging.
793   echo >&5
794   echo "## ----------------- ##" >&5
795   echo "## Cache variables.  ##" >&5
796   echo "## ----------------- ##" >&5
797   echo >&5
798   # The following way of writing the cache mishandles newlines in values,
799 {
800   (set) 2>&1 |
801     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
802     *ac_space=\ *)
803       sed -n \
804         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
805           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
806       ;;
807     *)
808       sed -n \
809         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
810       ;;
811     esac;
812 } >&5
813   sed "/^$/d" confdefs.h >conftest.log
814   if test -s conftest.log; then
815     echo >&5
816     echo "## ------------ ##" >&5
817     echo "## confdefs.h.  ##" >&5
818     echo "## ------------ ##" >&5
819     echo >&5
820     cat conftest.log >&5
821   fi
822   (echo; echo) >&5
823   test "$ac_signal" != 0 &&
824     echo "$as_me: caught signal $ac_signal" >&5
825   echo "$as_me: exit $exit_status" >&5
826   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
827     exit $exit_status
828      ' 0
829 for ac_signal in 1 2 13 15; do
830   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
831 done
832 ac_signal=0
833
834 # confdefs.h avoids OS command line length limits that DEFS can exceed.
835 rm -rf conftest* confdefs.h
836 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
837 echo >confdefs.h
838
839 # Let the site file select an alternate cache file if it wants to.
840 # Prefer explicitly selected file to automatically selected ones.
841 if test -z "$CONFIG_SITE"; then
842   if test "x$prefix" != xNONE; then
843     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
844   else
845     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
846   fi
847 fi
848 for ac_site_file in $CONFIG_SITE; do
849   if test -r "$ac_site_file"; then
850     { echo "$as_me:850: loading site script $ac_site_file" >&5
851 echo "$as_me: loading site script $ac_site_file" >&6;}
852     cat "$ac_site_file" >&5
853     . "$ac_site_file"
854   fi
855 done
856
857 if test -r "$cache_file"; then
858   # Some versions of bash will fail to source /dev/null (special
859   # files actually), so we avoid doing that.
860   if test -f "$cache_file"; then
861     { echo "$as_me:861: loading cache $cache_file" >&5
862 echo "$as_me: loading cache $cache_file" >&6;}
863     case $cache_file in
864       [\\/]* | ?:[\\/]* ) . $cache_file;;
865       *)                      . ./$cache_file;;
866     esac
867   fi
868 else
869   { echo "$as_me:869: creating cache $cache_file" >&5
870 echo "$as_me: creating cache $cache_file" >&6;}
871   >$cache_file
872 fi
873
874 # Check that the precious variables saved in the cache have kept the same
875 # value.
876 ac_cache_corrupted=false
877 for ac_var in `(set) 2>&1 |
878                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
880   eval ac_new_set=\$ac_env_${ac_var}_set
881   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
882   eval ac_new_val="\$ac_env_${ac_var}_value"
883   case $ac_old_set,$ac_new_set in
884     set,)
885       { echo "$as_me:885: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
887       ac_cache_corrupted=: ;;
888     ,set)
889       { echo "$as_me:889: error: \`$ac_var' was not set in the previous run" >&5
890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
891       ac_cache_corrupted=: ;;
892     ,);;
893     *)
894       if test "x$ac_old_val" != "x$ac_new_val"; then
895         { echo "$as_me:895: error: \`$ac_var' has changed since the previous run:" >&5
896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
897         { echo "$as_me:897:   former value:  $ac_old_val" >&5
898 echo "$as_me:   former value:  $ac_old_val" >&2;}
899         { echo "$as_me:899:   current value: $ac_new_val" >&5
900 echo "$as_me:   current value: $ac_new_val" >&2;}
901         ac_cache_corrupted=:
902       fi;;
903   esac
904   # Pass precious variables to config.status.  It doesn't matter if
905   # we pass some twice (in addition to the command line arguments).
906   if test "$ac_new_set" = set; then
907     case $ac_new_val in
908     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
909       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
910       ac_configure_args="$ac_configure_args '$ac_arg'"
911       ;;
912     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
913        ;;
914     esac
915   fi
916 done
917 if $ac_cache_corrupted; then
918   { echo "$as_me:918: error: changes in the environment can compromise the build" >&5
919 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
920   { { echo "$as_me:920: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
921 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
922    { (exit 1); exit 1; }; }
923 fi
924
925 ac_ext=c
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
930
931 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
932   *c*,-n*) ECHO_N= ECHO_C='
933 ' ECHO_T='      ' ;;
934   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
935   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
936 esac
937 echo "#! $SHELL" >conftest.sh
938 echo  "exit 0"   >>conftest.sh
939 chmod +x conftest.sh
940 if { (echo "$as_me:940: PATH=\".;.\"; conftest.sh") >&5
941   (PATH=".;."; conftest.sh) 2>&5
942   ac_status=$?
943   echo "$as_me:943: \$? = $ac_status" >&5
944   (exit $ac_status); }; then
945   ac_path_separator=';'
946 else
947   ac_path_separator=:
948 fi
949 PATH_SEPARATOR="$ac_path_separator"
950 rm -f conftest.sh
951
952 ac_config_files="$ac_config_files tests/Makefile"
953
954 # Checks for programs.
955 ac_ext=c
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
960 if test -n "$ac_tool_prefix"; then
961   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
962 set dummy ${ac_tool_prefix}gcc; ac_word=$2
963 echo "$as_me:963: checking for $ac_word" >&5
964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
965 if test "${ac_cv_prog_CC+set}" = set; then
966   echo $ECHO_N "(cached) $ECHO_C" >&6
967 else
968   if test -n "$CC"; then
969   ac_cv_prog_CC="$CC" # Let the user override the test.
970 else
971   ac_save_IFS=$IFS; IFS=$ac_path_separator
972 ac_dummy="$PATH"
973 for ac_dir in $ac_dummy; do
974   IFS=$ac_save_IFS
975   test -z "$ac_dir" && ac_dir=.
976   $as_executable_p "$ac_dir/$ac_word" || continue
977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
978 echo "$as_me:978: found $ac_dir/$ac_word" >&5
979 break
980 done
981
982 fi
983 fi
984 CC=$ac_cv_prog_CC
985 if test -n "$CC"; then
986   echo "$as_me:986: result: $CC" >&5
987 echo "${ECHO_T}$CC" >&6
988 else
989   echo "$as_me:989: result: no" >&5
990 echo "${ECHO_T}no" >&6
991 fi
992
993 fi
994 if test -z "$ac_cv_prog_CC"; then
995   ac_ct_CC=$CC
996   # Extract the first word of "gcc", so it can be a program name with args.
997 set dummy gcc; ac_word=$2
998 echo "$as_me:998: checking for $ac_word" >&5
999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1001   echo $ECHO_N "(cached) $ECHO_C" >&6
1002 else
1003   if test -n "$ac_ct_CC"; then
1004   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1005 else
1006   ac_save_IFS=$IFS; IFS=$ac_path_separator
1007 ac_dummy="$PATH"
1008 for ac_dir in $ac_dummy; do
1009   IFS=$ac_save_IFS
1010   test -z "$ac_dir" && ac_dir=.
1011   $as_executable_p "$ac_dir/$ac_word" || continue
1012 ac_cv_prog_ac_ct_CC="gcc"
1013 echo "$as_me:1013: found $ac_dir/$ac_word" >&5
1014 break
1015 done
1016
1017 fi
1018 fi
1019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1020 if test -n "$ac_ct_CC"; then
1021   echo "$as_me:1021: result: $ac_ct_CC" >&5
1022 echo "${ECHO_T}$ac_ct_CC" >&6
1023 else
1024   echo "$as_me:1024: result: no" >&5
1025 echo "${ECHO_T}no" >&6
1026 fi
1027
1028   CC=$ac_ct_CC
1029 else
1030   CC="$ac_cv_prog_CC"
1031 fi
1032
1033 if test -z "$CC"; then
1034   if test -n "$ac_tool_prefix"; then
1035   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1036 set dummy ${ac_tool_prefix}cc; ac_word=$2
1037 echo "$as_me:1037: checking for $ac_word" >&5
1038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1039 if test "${ac_cv_prog_CC+set}" = set; then
1040   echo $ECHO_N "(cached) $ECHO_C" >&6
1041 else
1042   if test -n "$CC"; then
1043   ac_cv_prog_CC="$CC" # Let the user override the test.
1044 else
1045   ac_save_IFS=$IFS; IFS=$ac_path_separator
1046 ac_dummy="$PATH"
1047 for ac_dir in $ac_dummy; do
1048   IFS=$ac_save_IFS
1049   test -z "$ac_dir" && ac_dir=.
1050   $as_executable_p "$ac_dir/$ac_word" || continue
1051 ac_cv_prog_CC="${ac_tool_prefix}cc"
1052 echo "$as_me:1052: found $ac_dir/$ac_word" >&5
1053 break
1054 done
1055
1056 fi
1057 fi
1058 CC=$ac_cv_prog_CC
1059 if test -n "$CC"; then
1060   echo "$as_me:1060: result: $CC" >&5
1061 echo "${ECHO_T}$CC" >&6
1062 else
1063   echo "$as_me:1063: result: no" >&5
1064 echo "${ECHO_T}no" >&6
1065 fi
1066
1067 fi
1068 if test -z "$ac_cv_prog_CC"; then
1069   ac_ct_CC=$CC
1070   # Extract the first word of "cc", so it can be a program name with args.
1071 set dummy cc; ac_word=$2
1072 echo "$as_me:1072: checking for $ac_word" >&5
1073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1075   echo $ECHO_N "(cached) $ECHO_C" >&6
1076 else
1077   if test -n "$ac_ct_CC"; then
1078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1079 else
1080   ac_save_IFS=$IFS; IFS=$ac_path_separator
1081 ac_dummy="$PATH"
1082 for ac_dir in $ac_dummy; do
1083   IFS=$ac_save_IFS
1084   test -z "$ac_dir" && ac_dir=.
1085   $as_executable_p "$ac_dir/$ac_word" || continue
1086 ac_cv_prog_ac_ct_CC="cc"
1087 echo "$as_me:1087: found $ac_dir/$ac_word" >&5
1088 break
1089 done
1090
1091 fi
1092 fi
1093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1094 if test -n "$ac_ct_CC"; then
1095   echo "$as_me:1095: result: $ac_ct_CC" >&5
1096 echo "${ECHO_T}$ac_ct_CC" >&6
1097 else
1098   echo "$as_me:1098: result: no" >&5
1099 echo "${ECHO_T}no" >&6
1100 fi
1101
1102   CC=$ac_ct_CC
1103 else
1104   CC="$ac_cv_prog_CC"
1105 fi
1106
1107 fi
1108 if test -z "$CC"; then
1109   # Extract the first word of "cc", so it can be a program name with args.
1110 set dummy cc; ac_word=$2
1111 echo "$as_me:1111: checking for $ac_word" >&5
1112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1113 if test "${ac_cv_prog_CC+set}" = set; then
1114   echo $ECHO_N "(cached) $ECHO_C" >&6
1115 else
1116   if test -n "$CC"; then
1117   ac_cv_prog_CC="$CC" # Let the user override the test.
1118 else
1119   ac_prog_rejected=no
1120   ac_save_IFS=$IFS; IFS=$ac_path_separator
1121 ac_dummy="$PATH"
1122 for ac_dir in $ac_dummy; do
1123   IFS=$ac_save_IFS
1124   test -z "$ac_dir" && ac_dir=.
1125   $as_executable_p "$ac_dir/$ac_word" || continue
1126 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1127   ac_prog_rejected=yes
1128   continue
1129 fi
1130 ac_cv_prog_CC="cc"
1131 echo "$as_me:1131: found $ac_dir/$ac_word" >&5
1132 break
1133 done
1134
1135 if test $ac_prog_rejected = yes; then
1136   # We found a bogon in the path, so make sure we never use it.
1137   set dummy $ac_cv_prog_CC
1138   shift
1139   if test $# != 0; then
1140     # We chose a different compiler from the bogus one.
1141     # However, it has the same basename, so the bogon will be chosen
1142     # first if we set CC to just the basename; use the full file name.
1143     shift
1144     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1145     shift
1146     ac_cv_prog_CC="$@"
1147   fi
1148 fi
1149 fi
1150 fi
1151 CC=$ac_cv_prog_CC
1152 if test -n "$CC"; then
1153   echo "$as_me:1153: result: $CC" >&5
1154 echo "${ECHO_T}$CC" >&6
1155 else
1156   echo "$as_me:1156: result: no" >&5
1157 echo "${ECHO_T}no" >&6
1158 fi
1159
1160 fi
1161 if test -z "$CC"; then
1162   if test -n "$ac_tool_prefix"; then
1163   for ac_prog in cl
1164   do
1165     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1167 echo "$as_me:1167: checking for $ac_word" >&5
1168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1169 if test "${ac_cv_prog_CC+set}" = set; then
1170   echo $ECHO_N "(cached) $ECHO_C" >&6
1171 else
1172   if test -n "$CC"; then
1173   ac_cv_prog_CC="$CC" # Let the user override the test.
1174 else
1175   ac_save_IFS=$IFS; IFS=$ac_path_separator
1176 ac_dummy="$PATH"
1177 for ac_dir in $ac_dummy; do
1178   IFS=$ac_save_IFS
1179   test -z "$ac_dir" && ac_dir=.
1180   $as_executable_p "$ac_dir/$ac_word" || continue
1181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1182 echo "$as_me:1182: found $ac_dir/$ac_word" >&5
1183 break
1184 done
1185
1186 fi
1187 fi
1188 CC=$ac_cv_prog_CC
1189 if test -n "$CC"; then
1190   echo "$as_me:1190: result: $CC" >&5
1191 echo "${ECHO_T}$CC" >&6
1192 else
1193   echo "$as_me:1193: result: no" >&5
1194 echo "${ECHO_T}no" >&6
1195 fi
1196
1197     test -n "$CC" && break
1198   done
1199 fi
1200 if test -z "$CC"; then
1201   ac_ct_CC=$CC
1202   for ac_prog in cl
1203 do
1204   # Extract the first word of "$ac_prog", so it can be a program name with args.
1205 set dummy $ac_prog; ac_word=$2
1206 echo "$as_me:1206: checking for $ac_word" >&5
1207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1208 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1209   echo $ECHO_N "(cached) $ECHO_C" >&6
1210 else
1211   if test -n "$ac_ct_CC"; then
1212   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1213 else
1214   ac_save_IFS=$IFS; IFS=$ac_path_separator
1215 ac_dummy="$PATH"
1216 for ac_dir in $ac_dummy; do
1217   IFS=$ac_save_IFS
1218   test -z "$ac_dir" && ac_dir=.
1219   $as_executable_p "$ac_dir/$ac_word" || continue
1220 ac_cv_prog_ac_ct_CC="$ac_prog"
1221 echo "$as_me:1221: found $ac_dir/$ac_word" >&5
1222 break
1223 done
1224
1225 fi
1226 fi
1227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1228 if test -n "$ac_ct_CC"; then
1229   echo "$as_me:1229: result: $ac_ct_CC" >&5
1230 echo "${ECHO_T}$ac_ct_CC" >&6
1231 else
1232   echo "$as_me:1232: result: no" >&5
1233 echo "${ECHO_T}no" >&6
1234 fi
1235
1236   test -n "$ac_ct_CC" && break
1237 done
1238
1239   CC=$ac_ct_CC
1240 fi
1241
1242 fi
1243
1244 test -z "$CC" && { { echo "$as_me:1244: error: no acceptable cc found in \$PATH" >&5
1245 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1246    { (exit 1); exit 1; }; }
1247
1248 # Provide some information about the compiler.
1249 echo "$as_me:1249:" \
1250      "checking for C compiler version" >&5
1251 ac_compiler=`set X $ac_compile; echo $2`
1252 { (eval echo "$as_me:1252: \"$ac_compiler --version </dev/null >&5\"") >&5
1253   (eval $ac_compiler --version </dev/null >&5) 2>&5
1254   ac_status=$?
1255   echo "$as_me:1255: \$? = $ac_status" >&5
1256   (exit $ac_status); }
1257 { (eval echo "$as_me:1257: \"$ac_compiler -v </dev/null >&5\"") >&5
1258   (eval $ac_compiler -v </dev/null >&5) 2>&5
1259   ac_status=$?
1260   echo "$as_me:1260: \$? = $ac_status" >&5
1261   (exit $ac_status); }
1262 { (eval echo "$as_me:1262: \"$ac_compiler -V </dev/null >&5\"") >&5
1263   (eval $ac_compiler -V </dev/null >&5) 2>&5
1264   ac_status=$?
1265   echo "$as_me:1265: \$? = $ac_status" >&5
1266   (exit $ac_status); }
1267
1268 cat >conftest.$ac_ext <<_ACEOF
1269 #line 1269 "configure"
1270 #include "confdefs.h"
1271
1272 int
1273 main ()
1274 {
1275
1276   ;
1277   return 0;
1278 }
1279 _ACEOF
1280 ac_clean_files_save=$ac_clean_files
1281 ac_clean_files="$ac_clean_files a.out a.exe"
1282 # Try to create an executable without -o first, disregard a.out.
1283 # It will help us diagnose broken compilers, and finding out an intuition
1284 # of exeext.
1285 echo "$as_me:1285: checking for C compiler default output" >&5
1286 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1287 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1288 if { (eval echo "$as_me:1288: \"$ac_link_default\"") >&5
1289   (eval $ac_link_default) 2>&5
1290   ac_status=$?
1291   echo "$as_me:1291: \$? = $ac_status" >&5
1292   (exit $ac_status); }; then
1293   # Find the output, starting from the most likely.  This scheme is
1294 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1295 # resort.
1296 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1297                 ls a.out conftest 2>/dev/null;
1298                 ls a.* conftest.* 2>/dev/null`; do
1299   case $ac_file in
1300     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1301     a.out ) # We found the default executable, but exeext='' is most
1302             # certainly right.
1303             break;;
1304     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1305           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1306           export ac_cv_exeext
1307           break;;
1308     * ) break;;
1309   esac
1310 done
1311 else
1312   echo "$as_me: failed program was:" >&5
1313 cat conftest.$ac_ext >&5
1314 { { echo "$as_me:1314: error: C compiler cannot create executables" >&5
1315 echo "$as_me: error: C compiler cannot create executables" >&2;}
1316    { (exit 77); exit 77; }; }
1317 fi
1318
1319 ac_exeext=$ac_cv_exeext
1320 echo "$as_me:1320: result: $ac_file" >&5
1321 echo "${ECHO_T}$ac_file" >&6
1322
1323 # Check the compiler produces executables we can run.  If not, either
1324 # the compiler is broken, or we cross compile.
1325 echo "$as_me:1325: checking whether the C compiler works" >&5
1326 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1328 # If not cross compiling, check that we can run a simple program.
1329 if test "$cross_compiling" != yes; then
1330   if { ac_try='./$ac_file'
1331   { (eval echo "$as_me:1331: \"$ac_try\"") >&5
1332   (eval $ac_try) 2>&5
1333   ac_status=$?
1334   echo "$as_me:1334: \$? = $ac_status" >&5
1335   (exit $ac_status); }; }; then
1336     cross_compiling=no
1337   else
1338     if test "$cross_compiling" = maybe; then
1339         cross_compiling=yes
1340     else
1341         { { echo "$as_me:1341: error: cannot run C compiled programs.
1342 If you meant to cross compile, use \`--host'." >&5
1343 echo "$as_me: error: cannot run C compiled programs.
1344 If you meant to cross compile, use \`--host'." >&2;}
1345    { (exit 1); exit 1; }; }
1346     fi
1347   fi
1348 fi
1349 echo "$as_me:1349: result: yes" >&5
1350 echo "${ECHO_T}yes" >&6
1351
1352 rm -f a.out a.exe conftest$ac_cv_exeext
1353 ac_clean_files=$ac_clean_files_save
1354 # Check the compiler produces executables we can run.  If not, either
1355 # the compiler is broken, or we cross compile.
1356 echo "$as_me:1356: checking whether we are cross compiling" >&5
1357 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1358 echo "$as_me:1358: result: $cross_compiling" >&5
1359 echo "${ECHO_T}$cross_compiling" >&6
1360
1361 echo "$as_me:1361: checking for executable suffix" >&5
1362 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1363 if { (eval echo "$as_me:1363: \"$ac_link\"") >&5
1364   (eval $ac_link) 2>&5
1365   ac_status=$?
1366   echo "$as_me:1366: \$? = $ac_status" >&5
1367   (exit $ac_status); }; then
1368   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1369 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1370 # work properly (i.e., refer to `conftest.exe'), while it won't with
1371 # `rm'.
1372 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1373   case $ac_file in
1374     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1375     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1376           export ac_cv_exeext
1377           break;;
1378     * ) break;;
1379   esac
1380 done
1381 else
1382   { { echo "$as_me:1382: error: cannot compute EXEEXT: cannot compile and link" >&5
1383 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1384    { (exit 1); exit 1; }; }
1385 fi
1386
1387 rm -f conftest$ac_cv_exeext
1388 echo "$as_me:1388: result: $ac_cv_exeext" >&5
1389 echo "${ECHO_T}$ac_cv_exeext" >&6
1390
1391 rm -f conftest.$ac_ext
1392 EXEEXT=$ac_cv_exeext
1393 ac_exeext=$EXEEXT
1394 echo "$as_me:1394: checking for object suffix" >&5
1395 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1396 if test "${ac_cv_objext+set}" = set; then
1397   echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399   cat >conftest.$ac_ext <<_ACEOF
1400 #line 1400 "configure"
1401 #include "confdefs.h"
1402
1403 int
1404 main ()
1405 {
1406
1407   ;
1408   return 0;
1409 }
1410 _ACEOF
1411 rm -f conftest.o conftest.obj
1412 if { (eval echo "$as_me:1412: \"$ac_compile\"") >&5
1413   (eval $ac_compile) 2>&5
1414   ac_status=$?
1415   echo "$as_me:1415: \$? = $ac_status" >&5
1416   (exit $ac_status); }; then
1417   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1418   case $ac_file in
1419     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1420     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1421        break;;
1422   esac
1423 done
1424 else
1425   echo "$as_me: failed program was:" >&5
1426 cat conftest.$ac_ext >&5
1427 { { echo "$as_me:1427: error: cannot compute OBJEXT: cannot compile" >&5
1428 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1429    { (exit 1); exit 1; }; }
1430 fi
1431
1432 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1433 fi
1434 echo "$as_me:1434: result: $ac_cv_objext" >&5
1435 echo "${ECHO_T}$ac_cv_objext" >&6
1436 OBJEXT=$ac_cv_objext
1437 ac_objext=$OBJEXT
1438 echo "$as_me:1438: checking whether we are using the GNU C compiler" >&5
1439 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1440 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   cat >conftest.$ac_ext <<_ACEOF
1444 #line 1444 "configure"
1445 #include "confdefs.h"
1446
1447 int
1448 main ()
1449 {
1450 #ifndef __GNUC__
1451        choke me
1452 #endif
1453
1454   ;
1455   return 0;
1456 }
1457 _ACEOF
1458 rm -f conftest.$ac_objext
1459 if { (eval echo "$as_me:1459: \"$ac_compile\"") >&5
1460   (eval $ac_compile) 2>&5
1461   ac_status=$?
1462   echo "$as_me:1462: \$? = $ac_status" >&5
1463   (exit $ac_status); } &&
1464          { ac_try='test -s conftest.$ac_objext'
1465   { (eval echo "$as_me:1465: \"$ac_try\"") >&5
1466   (eval $ac_try) 2>&5
1467   ac_status=$?
1468   echo "$as_me:1468: \$? = $ac_status" >&5
1469   (exit $ac_status); }; }; then
1470   ac_compiler_gnu=yes
1471 else
1472   echo "$as_me: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1474 ac_compiler_gnu=no
1475 fi
1476 rm -f conftest.$ac_objext conftest.$ac_ext
1477 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1478
1479 fi
1480 echo "$as_me:1480: result: $ac_cv_c_compiler_gnu" >&5
1481 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1482 GCC=`test $ac_compiler_gnu = yes && echo yes`
1483 ac_test_CFLAGS=${CFLAGS+set}
1484 ac_save_CFLAGS=$CFLAGS
1485 CFLAGS="-g"
1486 echo "$as_me:1486: checking whether $CC accepts -g" >&5
1487 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1488 if test "${ac_cv_prog_cc_g+set}" = set; then
1489   echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491   cat >conftest.$ac_ext <<_ACEOF
1492 #line 1492 "configure"
1493 #include "confdefs.h"
1494
1495 int
1496 main ()
1497 {
1498
1499   ;
1500   return 0;
1501 }
1502 _ACEOF
1503 rm -f conftest.$ac_objext
1504 if { (eval echo "$as_me:1504: \"$ac_compile\"") >&5
1505   (eval $ac_compile) 2>&5
1506   ac_status=$?
1507   echo "$as_me:1507: \$? = $ac_status" >&5
1508   (exit $ac_status); } &&
1509          { ac_try='test -s conftest.$ac_objext'
1510   { (eval echo "$as_me:1510: \"$ac_try\"") >&5
1511   (eval $ac_try) 2>&5
1512   ac_status=$?
1513   echo "$as_me:1513: \$? = $ac_status" >&5
1514   (exit $ac_status); }; }; then
1515   ac_cv_prog_cc_g=yes
1516 else
1517   echo "$as_me: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1519 ac_cv_prog_cc_g=no
1520 fi
1521 rm -f conftest.$ac_objext conftest.$ac_ext
1522 fi
1523 echo "$as_me:1523: result: $ac_cv_prog_cc_g" >&5
1524 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1525 if test "$ac_test_CFLAGS" = set; then
1526   CFLAGS=$ac_save_CFLAGS
1527 elif test $ac_cv_prog_cc_g = yes; then
1528   if test "$GCC" = yes; then
1529     CFLAGS="-g -O2"
1530   else
1531     CFLAGS="-g"
1532   fi
1533 else
1534   if test "$GCC" = yes; then
1535     CFLAGS="-O2"
1536   else
1537     CFLAGS=
1538   fi
1539 fi
1540 # Some people use a C++ compiler to compile C.  Since we use `exit',
1541 # in C++ we need to declare it.  In case someone uses the same compiler
1542 # for both compiling C and C++ we need to have the C++ compiler decide
1543 # the declaration of exit, since it's the most demanding environment.
1544 cat >conftest.$ac_ext <<_ACEOF
1545 #ifndef __cplusplus
1546   choke me
1547 #endif
1548 _ACEOF
1549 rm -f conftest.$ac_objext
1550 if { (eval echo "$as_me:1550: \"$ac_compile\"") >&5
1551   (eval $ac_compile) 2>&5
1552   ac_status=$?
1553   echo "$as_me:1553: \$? = $ac_status" >&5
1554   (exit $ac_status); } &&
1555          { ac_try='test -s conftest.$ac_objext'
1556   { (eval echo "$as_me:1556: \"$ac_try\"") >&5
1557   (eval $ac_try) 2>&5
1558   ac_status=$?
1559   echo "$as_me:1559: \$? = $ac_status" >&5
1560   (exit $ac_status); }; }; then
1561   for ac_declaration in \
1562    ''\
1563    '#include <stdlib.h>' \
1564    'extern "C" void std::exit (int) throw (); using std::exit;' \
1565    'extern "C" void std::exit (int); using std::exit;' \
1566    'extern "C" void exit (int) throw ();' \
1567    'extern "C" void exit (int);' \
1568    'void exit (int);'
1569 do
1570   cat >conftest.$ac_ext <<_ACEOF
1571 #line 1571 "configure"
1572 #include "confdefs.h"
1573 #include <stdlib.h>
1574 $ac_declaration
1575 int
1576 main ()
1577 {
1578 exit (42);
1579   ;
1580   return 0;
1581 }
1582 _ACEOF
1583 rm -f conftest.$ac_objext
1584 if { (eval echo "$as_me:1584: \"$ac_compile\"") >&5
1585   (eval $ac_compile) 2>&5
1586   ac_status=$?
1587   echo "$as_me:1587: \$? = $ac_status" >&5
1588   (exit $ac_status); } &&
1589          { ac_try='test -s conftest.$ac_objext'
1590   { (eval echo "$as_me:1590: \"$ac_try\"") >&5
1591   (eval $ac_try) 2>&5
1592   ac_status=$?
1593   echo "$as_me:1593: \$? = $ac_status" >&5
1594   (exit $ac_status); }; }; then
1595   :
1596 else
1597   echo "$as_me: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1599 continue
1600 fi
1601 rm -f conftest.$ac_objext conftest.$ac_ext
1602   cat >conftest.$ac_ext <<_ACEOF
1603 #line 1603 "configure"
1604 #include "confdefs.h"
1605 $ac_declaration
1606 int
1607 main ()
1608 {
1609 exit (42);
1610   ;
1611   return 0;
1612 }
1613 _ACEOF
1614 rm -f conftest.$ac_objext
1615 if { (eval echo "$as_me:1615: \"$ac_compile\"") >&5
1616   (eval $ac_compile) 2>&5
1617   ac_status=$?
1618   echo "$as_me:1618: \$? = $ac_status" >&5
1619   (exit $ac_status); } &&
1620          { ac_try='test -s conftest.$ac_objext'
1621   { (eval echo "$as_me:1621: \"$ac_try\"") >&5
1622   (eval $ac_try) 2>&5
1623   ac_status=$?
1624   echo "$as_me:1624: \$? = $ac_status" >&5
1625   (exit $ac_status); }; }; then
1626   break
1627 else
1628   echo "$as_me: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 fi
1631 rm -f conftest.$ac_objext conftest.$ac_ext
1632 done
1633 rm -f conftest*
1634 if test -n "$ac_declaration"; then
1635   echo '#ifdef __cplusplus' >>confdefs.h
1636   echo $ac_declaration      >>confdefs.h
1637   echo '#endif'             >>confdefs.h
1638 fi
1639
1640 else
1641   echo "$as_me: failed program was:" >&5
1642 cat conftest.$ac_ext >&5
1643 fi
1644 rm -f conftest.$ac_objext conftest.$ac_ext
1645 ac_ext=c
1646 ac_cpp='$CPP $CPPFLAGS'
1647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1650
1651 ac_ext=cc
1652 ac_cpp='$CXXCPP $CPPFLAGS'
1653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1656 if test -n "$ac_tool_prefix"; then
1657   for ac_prog in $CCC CC g++ c++ cxx
1658   do
1659     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661 echo "$as_me:1661: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_CXX+set}" = set; then
1664   echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666   if test -n "$CXX"; then
1667   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1668 else
1669   ac_save_IFS=$IFS; IFS=$ac_path_separator
1670 ac_dummy="$PATH"
1671 for ac_dir in $ac_dummy; do
1672   IFS=$ac_save_IFS
1673   test -z "$ac_dir" && ac_dir=.
1674   $as_executable_p "$ac_dir/$ac_word" || continue
1675 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:1676: found $ac_dir/$ac_word" >&5
1677 break
1678 done
1679
1680 fi
1681 fi
1682 CXX=$ac_cv_prog_CXX
1683 if test -n "$CXX"; then
1684   echo "$as_me:1684: result: $CXX" >&5
1685 echo "${ECHO_T}$CXX" >&6
1686 else
1687   echo "$as_me:1687: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691     test -n "$CXX" && break
1692   done
1693 fi
1694 if test -z "$CXX"; then
1695   ac_ct_CXX=$CXX
1696   for ac_prog in $CCC CC g++ c++ cxx
1697 do
1698   # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:1700: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   if test -n "$ac_ct_CXX"; then
1706   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1707 else
1708   ac_save_IFS=$IFS; IFS=$ac_path_separator
1709 ac_dummy="$PATH"
1710 for ac_dir in $ac_dummy; do
1711   IFS=$ac_save_IFS
1712   test -z "$ac_dir" && ac_dir=.
1713   $as_executable_p "$ac_dir/$ac_word" || continue
1714 ac_cv_prog_ac_ct_CXX="$ac_prog"
1715 echo "$as_me:1715: found $ac_dir/$ac_word" >&5
1716 break
1717 done
1718
1719 fi
1720 fi
1721 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1722 if test -n "$ac_ct_CXX"; then
1723   echo "$as_me:1723: result: $ac_ct_CXX" >&5
1724 echo "${ECHO_T}$ac_ct_CXX" >&6
1725 else
1726   echo "$as_me:1726: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730   test -n "$ac_ct_CXX" && break
1731 done
1732 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1733
1734   CXX=$ac_ct_CXX
1735 fi
1736
1737 # Provide some information about the compiler.
1738 echo "$as_me:1738:" \
1739      "checking for C++ compiler version" >&5
1740 ac_compiler=`set X $ac_compile; echo $2`
1741 { (eval echo "$as_me:1741: \"$ac_compiler --version </dev/null >&5\"") >&5
1742   (eval $ac_compiler --version </dev/null >&5) 2>&5
1743   ac_status=$?
1744   echo "$as_me:1744: \$? = $ac_status" >&5
1745   (exit $ac_status); }
1746 { (eval echo "$as_me:1746: \"$ac_compiler -v </dev/null >&5\"") >&5
1747   (eval $ac_compiler -v </dev/null >&5) 2>&5
1748   ac_status=$?
1749   echo "$as_me:1749: \$? = $ac_status" >&5
1750   (exit $ac_status); }
1751 { (eval echo "$as_me:1751: \"$ac_compiler -V </dev/null >&5\"") >&5
1752   (eval $ac_compiler -V </dev/null >&5) 2>&5
1753   ac_status=$?
1754   echo "$as_me:1754: \$? = $ac_status" >&5
1755   (exit $ac_status); }
1756
1757 echo "$as_me:1757: checking whether we are using the GNU C++ compiler" >&5
1758 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1759 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   cat >conftest.$ac_ext <<_ACEOF
1763 #line 1763 "configure"
1764 #include "confdefs.h"
1765
1766 int
1767 main ()
1768 {
1769 #ifndef __GNUC__
1770        choke me
1771 #endif
1772
1773   ;
1774   return 0;
1775 }
1776 _ACEOF
1777 rm -f conftest.$ac_objext
1778 if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
1779   (eval $ac_compile) 2>&5
1780   ac_status=$?
1781   echo "$as_me:1781: \$? = $ac_status" >&5
1782   (exit $ac_status); } &&
1783          { ac_try='test -s conftest.$ac_objext'
1784   { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1785   (eval $ac_try) 2>&5
1786   ac_status=$?
1787   echo "$as_me:1787: \$? = $ac_status" >&5
1788   (exit $ac_status); }; }; then
1789   ac_compiler_gnu=yes
1790 else
1791   echo "$as_me: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 ac_compiler_gnu=no
1794 fi
1795 rm -f conftest.$ac_objext conftest.$ac_ext
1796 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1797
1798 fi
1799 echo "$as_me:1799: result: $ac_cv_cxx_compiler_gnu" >&5
1800 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1801 GXX=`test $ac_compiler_gnu = yes && echo yes`
1802 ac_test_CXXFLAGS=${CXXFLAGS+set}
1803 ac_save_CXXFLAGS=$CXXFLAGS
1804 CXXFLAGS="-g"
1805 echo "$as_me:1805: checking whether $CXX accepts -g" >&5
1806 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1807 if test "${ac_cv_prog_cxx_g+set}" = set; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   cat >conftest.$ac_ext <<_ACEOF
1811 #line 1811 "configure"
1812 #include "confdefs.h"
1813
1814 int
1815 main ()
1816 {
1817
1818   ;
1819   return 0;
1820 }
1821 _ACEOF
1822 rm -f conftest.$ac_objext
1823 if { (eval echo "$as_me:1823: \"$ac_compile\"") >&5
1824   (eval $ac_compile) 2>&5
1825   ac_status=$?
1826   echo "$as_me:1826: \$? = $ac_status" >&5
1827   (exit $ac_status); } &&
1828          { ac_try='test -s conftest.$ac_objext'
1829   { (eval echo "$as_me:1829: \"$ac_try\"") >&5
1830   (eval $ac_try) 2>&5
1831   ac_status=$?
1832   echo "$as_me:1832: \$? = $ac_status" >&5
1833   (exit $ac_status); }; }; then
1834   ac_cv_prog_cxx_g=yes
1835 else
1836   echo "$as_me: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1838 ac_cv_prog_cxx_g=no
1839 fi
1840 rm -f conftest.$ac_objext conftest.$ac_ext
1841 fi
1842 echo "$as_me:1842: result: $ac_cv_prog_cxx_g" >&5
1843 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1844 if test "$ac_test_CXXFLAGS" = set; then
1845   CXXFLAGS=$ac_save_CXXFLAGS
1846 elif test $ac_cv_prog_cxx_g = yes; then
1847   if test "$GXX" = yes; then
1848     CXXFLAGS="-g -O2"
1849   else
1850     CXXFLAGS="-g"
1851   fi
1852 else
1853   if test "$GXX" = yes; then
1854     CXXFLAGS="-O2"
1855   else
1856     CXXFLAGS=
1857   fi
1858 fi
1859 for ac_declaration in \
1860    ''\
1861    '#include <stdlib.h>' \
1862    'extern "C" void std::exit (int) throw (); using std::exit;' \
1863    'extern "C" void std::exit (int); using std::exit;' \
1864    'extern "C" void exit (int) throw ();' \
1865    'extern "C" void exit (int);' \
1866    'void exit (int);'
1867 do
1868   cat >conftest.$ac_ext <<_ACEOF
1869 #line 1869 "configure"
1870 #include "confdefs.h"
1871 #include <stdlib.h>
1872 $ac_declaration
1873 int
1874 main ()
1875 {
1876 exit (42);
1877   ;
1878   return 0;
1879 }
1880 _ACEOF
1881 rm -f conftest.$ac_objext
1882 if { (eval echo "$as_me:1882: \"$ac_compile\"") >&5
1883   (eval $ac_compile) 2>&5
1884   ac_status=$?
1885   echo "$as_me:1885: \$? = $ac_status" >&5
1886   (exit $ac_status); } &&
1887          { ac_try='test -s conftest.$ac_objext'
1888   { (eval echo "$as_me:1888: \"$ac_try\"") >&5
1889   (eval $ac_try) 2>&5
1890   ac_status=$?
1891   echo "$as_me:1891: \$? = $ac_status" >&5
1892   (exit $ac_status); }; }; then
1893   :
1894 else
1895   echo "$as_me: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 continue
1898 fi
1899 rm -f conftest.$ac_objext conftest.$ac_ext
1900   cat >conftest.$ac_ext <<_ACEOF
1901 #line 1901 "configure"
1902 #include "confdefs.h"
1903 $ac_declaration
1904 int
1905 main ()
1906 {
1907 exit (42);
1908   ;
1909   return 0;
1910 }
1911 _ACEOF
1912 rm -f conftest.$ac_objext
1913 if { (eval echo "$as_me:1913: \"$ac_compile\"") >&5
1914   (eval $ac_compile) 2>&5
1915   ac_status=$?
1916   echo "$as_me:1916: \$? = $ac_status" >&5
1917   (exit $ac_status); } &&
1918          { ac_try='test -s conftest.$ac_objext'
1919   { (eval echo "$as_me:1919: \"$ac_try\"") >&5
1920   (eval $ac_try) 2>&5
1921   ac_status=$?
1922   echo "$as_me:1922: \$? = $ac_status" >&5
1923   (exit $ac_status); }; }; then
1924   break
1925 else
1926   echo "$as_me: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 fi
1929 rm -f conftest.$ac_objext conftest.$ac_ext
1930 done
1931 rm -f conftest*
1932 if test -n "$ac_declaration"; then
1933   echo '#ifdef __cplusplus' >>confdefs.h
1934   echo $ac_declaration      >>confdefs.h
1935   echo '#endif'             >>confdefs.h
1936 fi
1937
1938 ac_ext=c
1939 ac_cpp='$CPP $CPPFLAGS'
1940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943
1944 # Checks for libraries.
1945
1946 echo "$as_me:1946: checking for pthread_create in -lpthread" >&5
1947 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
1948 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   ac_check_lib_save_LIBS=$LIBS
1952 LIBS="-lpthread  $LIBS"
1953 cat >conftest.$ac_ext <<_ACEOF
1954 #line 1954 "configure"
1955 #include "confdefs.h"
1956
1957 /* Override any gcc2 internal prototype to avoid an error.  */
1958 #ifdef __cplusplus
1959 extern "C"
1960 #endif
1961 /* We use char because int might match the return type of a gcc2
1962    builtin and then its argument prototype would still apply.  */
1963 char pthread_create ();
1964 int
1965 main ()
1966 {
1967 pthread_create ();
1968   ;
1969   return 0;
1970 }
1971 _ACEOF
1972 rm -f conftest.$ac_objext conftest$ac_exeext
1973 if { (eval echo "$as_me:1973: \"$ac_link\"") >&5
1974   (eval $ac_link) 2>&5
1975   ac_status=$?
1976   echo "$as_me:1976: \$? = $ac_status" >&5
1977   (exit $ac_status); } &&
1978          { ac_try='test -s conftest$ac_exeext'
1979   { (eval echo "$as_me:1979: \"$ac_try\"") >&5
1980   (eval $ac_try) 2>&5
1981   ac_status=$?
1982   echo "$as_me:1982: \$? = $ac_status" >&5
1983   (exit $ac_status); }; }; then
1984   ac_cv_lib_pthread_pthread_create=yes
1985 else
1986   echo "$as_me: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 ac_cv_lib_pthread_pthread_create=no
1989 fi
1990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1991 LIBS=$ac_check_lib_save_LIBS
1992 fi
1993 echo "$as_me:1993: result: $ac_cv_lib_pthread_pthread_create" >&5
1994 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
1995 if test $ac_cv_lib_pthread_pthread_create = yes; then
1996   cat >>confdefs.h <<EOF
1997 #define HAVE_LIBPTHREAD 1
1998 EOF
1999
2000   LIBS="-lpthread $LIBS"
2001
2002 else
2003   { { echo "$as_me:2003: error: RtAudio requires the pthread library!" >&5
2004 echo "$as_me: error: RtAudio requires the pthread library!" >&2;}
2005    { (exit 1); exit 1; }; }
2006 fi
2007
2008 # Checks for header files.
2009 ac_ext=c
2010 ac_cpp='$CPP $CPPFLAGS'
2011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 echo "$as_me:2014: checking how to run the C preprocessor" >&5
2015 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2016 # On Suns, sometimes $CPP names a directory.
2017 if test -n "$CPP" && test -d "$CPP"; then
2018   CPP=
2019 fi
2020 if test -z "$CPP"; then
2021   if test "${ac_cv_prog_CPP+set}" = set; then
2022   echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024       # Double quotes because CPP needs to be expanded
2025     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2026     do
2027       ac_preproc_ok=false
2028 for ac_c_preproc_warn_flag in '' yes
2029 do
2030   # Use a header file that comes with gcc, so configuring glibc
2031   # with a fresh cross-compiler works.
2032   # On the NeXT, cc -E runs the code through the compiler's parser,
2033   # not just through cpp. "Syntax error" is here to catch this case.
2034   cat >conftest.$ac_ext <<_ACEOF
2035 #line 2035 "configure"
2036 #include "confdefs.h"
2037 #include <assert.h>
2038                      Syntax error
2039 _ACEOF
2040 if { (eval echo "$as_me:2040: \"$ac_cpp conftest.$ac_ext\"") >&5
2041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2042   ac_status=$?
2043   egrep -v '^ *\+' conftest.er1 >conftest.err
2044   rm -f conftest.er1
2045   cat conftest.err >&5
2046   echo "$as_me:2046: \$? = $ac_status" >&5
2047   (exit $ac_status); } >/dev/null; then
2048   if test -s conftest.err; then
2049     ac_cpp_err=$ac_c_preproc_warn_flag
2050   else
2051     ac_cpp_err=
2052   fi
2053 else
2054   ac_cpp_err=yes
2055 fi
2056 if test -z "$ac_cpp_err"; then
2057   :
2058 else
2059   echo "$as_me: failed program was:" >&5
2060   cat conftest.$ac_ext >&5
2061   # Broken: fails on valid input.
2062 continue
2063 fi
2064 rm -f conftest.err conftest.$ac_ext
2065
2066   # OK, works on sane cases.  Now check whether non-existent headers
2067   # can be detected and how.
2068   cat >conftest.$ac_ext <<_ACEOF
2069 #line 2069 "configure"
2070 #include "confdefs.h"
2071 #include <ac_nonexistent.h>
2072 _ACEOF
2073 if { (eval echo "$as_me:2073: \"$ac_cpp conftest.$ac_ext\"") >&5
2074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2075   ac_status=$?
2076   egrep -v '^ *\+' conftest.er1 >conftest.err
2077   rm -f conftest.er1
2078   cat conftest.err >&5
2079   echo "$as_me:2079: \$? = $ac_status" >&5
2080   (exit $ac_status); } >/dev/null; then
2081   if test -s conftest.err; then
2082     ac_cpp_err=$ac_c_preproc_warn_flag
2083   else
2084     ac_cpp_err=
2085   fi
2086 else
2087   ac_cpp_err=yes
2088 fi
2089 if test -z "$ac_cpp_err"; then
2090   # Broken: success on invalid input.
2091 continue
2092 else
2093   echo "$as_me: failed program was:" >&5
2094   cat conftest.$ac_ext >&5
2095   # Passes both tests.
2096 ac_preproc_ok=:
2097 break
2098 fi
2099 rm -f conftest.err conftest.$ac_ext
2100
2101 done
2102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2103 rm -f conftest.err conftest.$ac_ext
2104 if $ac_preproc_ok; then
2105   break
2106 fi
2107
2108     done
2109     ac_cv_prog_CPP=$CPP
2110
2111 fi
2112   CPP=$ac_cv_prog_CPP
2113 else
2114   ac_cv_prog_CPP=$CPP
2115 fi
2116 echo "$as_me:2116: result: $CPP" >&5
2117 echo "${ECHO_T}$CPP" >&6
2118 ac_preproc_ok=false
2119 for ac_c_preproc_warn_flag in '' yes
2120 do
2121   # Use a header file that comes with gcc, so configuring glibc
2122   # with a fresh cross-compiler works.
2123   # On the NeXT, cc -E runs the code through the compiler's parser,
2124   # not just through cpp. "Syntax error" is here to catch this case.
2125   cat >conftest.$ac_ext <<_ACEOF
2126 #line 2126 "configure"
2127 #include "confdefs.h"
2128 #include <assert.h>
2129                      Syntax error
2130 _ACEOF
2131 if { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5
2132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2133   ac_status=$?
2134   egrep -v '^ *\+' conftest.er1 >conftest.err
2135   rm -f conftest.er1
2136   cat conftest.err >&5
2137   echo "$as_me:2137: \$? = $ac_status" >&5
2138   (exit $ac_status); } >/dev/null; then
2139   if test -s conftest.err; then
2140     ac_cpp_err=$ac_c_preproc_warn_flag
2141   else
2142     ac_cpp_err=
2143   fi
2144 else
2145   ac_cpp_err=yes
2146 fi
2147 if test -z "$ac_cpp_err"; then
2148   :
2149 else
2150   echo "$as_me: failed program was:" >&5
2151   cat conftest.$ac_ext >&5
2152   # Broken: fails on valid input.
2153 continue
2154 fi
2155 rm -f conftest.err conftest.$ac_ext
2156
2157   # OK, works on sane cases.  Now check whether non-existent headers
2158   # can be detected and how.
2159   cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2162 #include <ac_nonexistent.h>
2163 _ACEOF
2164 if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2165   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2166   ac_status=$?
2167   egrep -v '^ *\+' conftest.er1 >conftest.err
2168   rm -f conftest.er1
2169   cat conftest.err >&5
2170   echo "$as_me:2170: \$? = $ac_status" >&5
2171   (exit $ac_status); } >/dev/null; then
2172   if test -s conftest.err; then
2173     ac_cpp_err=$ac_c_preproc_warn_flag
2174   else
2175     ac_cpp_err=
2176   fi
2177 else
2178   ac_cpp_err=yes
2179 fi
2180 if test -z "$ac_cpp_err"; then
2181   # Broken: success on invalid input.
2182 continue
2183 else
2184   echo "$as_me: failed program was:" >&5
2185   cat conftest.$ac_ext >&5
2186   # Passes both tests.
2187 ac_preproc_ok=:
2188 break
2189 fi
2190 rm -f conftest.err conftest.$ac_ext
2191
2192 done
2193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2194 rm -f conftest.err conftest.$ac_ext
2195 if $ac_preproc_ok; then
2196   :
2197 else
2198   { { echo "$as_me:2198: error: C preprocessor \"$CPP\" fails sanity check" >&5
2199 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 ac_ext=c
2204 ac_cpp='$CPP $CPPFLAGS'
2205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2208
2209 echo "$as_me:2209: checking for ANSI C header files" >&5
2210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2211 if test "${ac_cv_header_stdc+set}" = set; then
2212   echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214   cat >conftest.$ac_ext <<_ACEOF
2215 #line 2215 "configure"
2216 #include "confdefs.h"
2217 #include <stdlib.h>
2218 #include <stdarg.h>
2219 #include <string.h>
2220 #include <float.h>
2221
2222 _ACEOF
2223 if { (eval echo "$as_me:2223: \"$ac_cpp conftest.$ac_ext\"") >&5
2224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2225   ac_status=$?
2226   egrep -v '^ *\+' conftest.er1 >conftest.err
2227   rm -f conftest.er1
2228   cat conftest.err >&5
2229   echo "$as_me:2229: \$? = $ac_status" >&5
2230   (exit $ac_status); } >/dev/null; then
2231   if test -s conftest.err; then
2232     ac_cpp_err=$ac_c_preproc_warn_flag
2233   else
2234     ac_cpp_err=
2235   fi
2236 else
2237   ac_cpp_err=yes
2238 fi
2239 if test -z "$ac_cpp_err"; then
2240   ac_cv_header_stdc=yes
2241 else
2242   echo "$as_me: failed program was:" >&5
2243   cat conftest.$ac_ext >&5
2244   ac_cv_header_stdc=no
2245 fi
2246 rm -f conftest.err conftest.$ac_ext
2247
2248 if test $ac_cv_header_stdc = yes; then
2249   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2250   cat >conftest.$ac_ext <<_ACEOF
2251 #line 2251 "configure"
2252 #include "confdefs.h"
2253 #include <string.h>
2254
2255 _ACEOF
2256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2257   egrep "memchr" >/dev/null 2>&1; then
2258   :
2259 else
2260   ac_cv_header_stdc=no
2261 fi
2262 rm -f conftest*
2263
2264 fi
2265
2266 if test $ac_cv_header_stdc = yes; then
2267   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2268   cat >conftest.$ac_ext <<_ACEOF
2269 #line 2269 "configure"
2270 #include "confdefs.h"
2271 #include <stdlib.h>
2272
2273 _ACEOF
2274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2275   egrep "free" >/dev/null 2>&1; then
2276   :
2277 else
2278   ac_cv_header_stdc=no
2279 fi
2280 rm -f conftest*
2281
2282 fi
2283
2284 if test $ac_cv_header_stdc = yes; then
2285   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2286   if test "$cross_compiling" = yes; then
2287   :
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 #line 2290 "configure"
2291 #include "confdefs.h"
2292 #include <ctype.h>
2293 #if ((' ' & 0x0FF) == 0x020)
2294 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2295 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2296 #else
2297 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2298                      || ('j' <= (c) && (c) <= 'r') \
2299                      || ('s' <= (c) && (c) <= 'z'))
2300 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2301 #endif
2302
2303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2304 int
2305 main ()
2306 {
2307   int i;
2308   for (i = 0; i < 256; i++)
2309     if (XOR (islower (i), ISLOWER (i))
2310         || toupper (i) != TOUPPER (i))
2311       exit(2);
2312   exit (0);
2313 }
2314 _ACEOF
2315 rm -f conftest$ac_exeext
2316 if { (eval echo "$as_me:2316: \"$ac_link\"") >&5
2317   (eval $ac_link) 2>&5
2318   ac_status=$?
2319   echo "$as_me:2319: \$? = $ac_status" >&5
2320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2321   { (eval echo "$as_me:2321: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:2324: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   :
2327 else
2328   echo "$as_me: program exited with status $ac_status" >&5
2329 echo "$as_me: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 ac_cv_header_stdc=no
2332 fi
2333 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2334 fi
2335 fi
2336 fi
2337 echo "$as_me:2337: result: $ac_cv_header_stdc" >&5
2338 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2339 if test $ac_cv_header_stdc = yes; then
2340
2341 cat >>confdefs.h <<\EOF
2342 #define STDC_HEADERS 1
2343 EOF
2344
2345 fi
2346
2347 for ac_header in sys/ioctl.h unistd.h
2348 do
2349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2350 echo "$as_me:2350: checking for $ac_header" >&5
2351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   cat >conftest.$ac_ext <<_ACEOF
2356 #line 2356 "configure"
2357 #include "confdefs.h"
2358 #include <$ac_header>
2359 _ACEOF
2360 if { (eval echo "$as_me:2360: \"$ac_cpp conftest.$ac_ext\"") >&5
2361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2362   ac_status=$?
2363   egrep -v '^ *\+' conftest.er1 >conftest.err
2364   rm -f conftest.er1
2365   cat conftest.err >&5
2366   echo "$as_me:2366: \$? = $ac_status" >&5
2367   (exit $ac_status); } >/dev/null; then
2368   if test -s conftest.err; then
2369     ac_cpp_err=$ac_c_preproc_warn_flag
2370   else
2371     ac_cpp_err=
2372   fi
2373 else
2374   ac_cpp_err=yes
2375 fi
2376 if test -z "$ac_cpp_err"; then
2377   eval "$as_ac_Header=yes"
2378 else
2379   echo "$as_me: failed program was:" >&5
2380   cat conftest.$ac_ext >&5
2381   eval "$as_ac_Header=no"
2382 fi
2383 rm -f conftest.err conftest.$ac_ext
2384 fi
2385 echo "$as_me:2385: result: `eval echo '${'$as_ac_Header'}'`" >&5
2386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2388   cat >>confdefs.h <<EOF
2389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2390 EOF
2391
2392 fi
2393 done
2394
2395 # Checks for typedefs, structures, and compiler characteristics.
2396 echo "$as_me:2396: checking for $CC option to accept ANSI C" >&5
2397 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2398 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   ac_cv_prog_cc_stdc=no
2402 ac_save_CC=$CC
2403 cat >conftest.$ac_ext <<_ACEOF
2404 #line 2404 "configure"
2405 #include "confdefs.h"
2406 #include <stdarg.h>
2407 #include <stdio.h>
2408 #include <sys/types.h>
2409 #include <sys/stat.h>
2410 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2411 struct buf { int x; };
2412 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2413 static char *e (p, i)
2414      char **p;
2415      int i;
2416 {
2417   return p[i];
2418 }
2419 static char *f (char * (*g) (char **, int), char **p, ...)
2420 {
2421   char *s;
2422   va_list v;
2423   va_start (v,p);
2424   s = g (p, va_arg (v,int));
2425   va_end (v);
2426   return s;
2427 }
2428 int test (int i, double x);
2429 struct s1 {int (*f) (int a);};
2430 struct s2 {int (*f) (double a);};
2431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2432 int argc;
2433 char **argv;
2434 int
2435 main ()
2436 {
2437 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 # Don't try gcc -ansi; that turns off useful extensions and
2443 # breaks some systems' header files.
2444 # AIX                   -qlanglvl=ansi
2445 # Ultrix and OSF/1      -std1
2446 # HP-UX 10.20 and later -Ae
2447 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2448 # SVR4                  -Xc -D__EXTENSIONS__
2449 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2450 do
2451   CC="$ac_save_CC $ac_arg"
2452   rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:2453: \"$ac_compile\"") >&5
2454   (eval $ac_compile) 2>&5
2455   ac_status=$?
2456   echo "$as_me:2456: \$? = $ac_status" >&5
2457   (exit $ac_status); } &&
2458          { ac_try='test -s conftest.$ac_objext'
2459   { (eval echo "$as_me:2459: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:2462: \$? = $ac_status" >&5
2463   (exit $ac_status); }; }; then
2464   ac_cv_prog_cc_stdc=$ac_arg
2465 break
2466 else
2467   echo "$as_me: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2469 fi
2470 rm -f conftest.$ac_objext
2471 done
2472 rm -f conftest.$ac_ext conftest.$ac_objext
2473 CC=$ac_save_CC
2474
2475 fi
2476
2477 case "x$ac_cv_prog_cc_stdc" in
2478   x|xno)
2479     echo "$as_me:2479: result: none needed" >&5
2480 echo "${ECHO_T}none needed" >&6 ;;
2481   *)
2482     echo "$as_me:2482: result: $ac_cv_prog_cc_stdc" >&5
2483 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2484     CC="$CC $ac_cv_prog_cc_stdc" ;;
2485 esac
2486
2487 echo "$as_me:2487: checking for an ANSI C-conforming const" >&5
2488 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2489 if test "${ac_cv_c_const+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   cat >conftest.$ac_ext <<_ACEOF
2493 #line 2493 "configure"
2494 #include "confdefs.h"
2495
2496 int
2497 main ()
2498 {
2499 /* FIXME: Include the comments suggested by Paul. */
2500 #ifndef __cplusplus
2501   /* Ultrix mips cc rejects this.  */
2502   typedef int charset[2];
2503   const charset x;
2504   /* SunOS 4.1.1 cc rejects this.  */
2505   char const *const *ccp;
2506   char **p;
2507   /* NEC SVR4.0.2 mips cc rejects this.  */
2508   struct point {int x, y;};
2509   static struct point const zero = {0,0};
2510   /* AIX XL C 1.02.0.0 rejects this.
2511      It does not let you subtract one const X* pointer from another in
2512      an arm of an if-expression whose if-part is not a constant
2513      expression */
2514   const char *g = "string";
2515   ccp = &g + (g ? g-g : 0);
2516   /* HPUX 7.0 cc rejects these. */
2517   ++ccp;
2518   p = (char**) ccp;
2519   ccp = (char const *const *) p;
2520   { /* SCO 3.2v4 cc rejects this.  */
2521     char *t;
2522     char const *s = 0 ? (char *) 0 : (char const *) 0;
2523
2524     *t++ = 0;
2525   }
2526   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2527     int x[] = {25, 17};
2528     const int *foo = &x[0];
2529     ++foo;
2530   }
2531   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2532     typedef const int *iptr;
2533     iptr p = 0;
2534     ++p;
2535   }
2536   { /* AIX XL C 1.02.0.0 rejects this saying
2537        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2538     struct s { int j; const int *ap[3]; };
2539     struct s *b; b->j = 5;
2540   }
2541   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2542     const int foo = 10;
2543   }
2544 #endif
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:2551: \"$ac_compile\"") >&5
2552   (eval $ac_compile) 2>&5
2553   ac_status=$?
2554   echo "$as_me:2554: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (eval echo "$as_me:2557: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:2560: \$? = $ac_status" >&5
2561   (exit $ac_status); }; }; then
2562   ac_cv_c_const=yes
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2566 ac_cv_c_const=no
2567 fi
2568 rm -f conftest.$ac_objext conftest.$ac_ext
2569 fi
2570 echo "$as_me:2570: result: $ac_cv_c_const" >&5
2571 echo "${ECHO_T}$ac_cv_c_const" >&6
2572 if test $ac_cv_c_const = no; then
2573
2574 cat >>confdefs.h <<\EOF
2575 #define const
2576 EOF
2577
2578 fi
2579
2580 # Check for debug
2581 echo "$as_me:2581: checking whether to compile debug version" >&5
2582 echo $ECHO_N "checking whether to compile debug version... $ECHO_C" >&6
2583 # Check whether --enable-debug or --disable-debug was given.
2584 if test "${enable_debug+set}" = set; then
2585   enableval="$enable_debug"
2586   debug=-D__RTAUDIO_DEBUG__
2587  cflags=-g
2588  object_path=Debug
2589  echo "$as_me:2589: result: yes" >&5
2590 echo "${ECHO_T}yes" >&6
2591 else
2592   debug=
2593  cflags=-O2
2594  object_path=Release
2595  echo "$as_me:2595: result: no" >&5
2596 echo "${ECHO_T}no" >&6
2597 fi;
2598
2599 # Check compiler and use -Wall if gnu.
2600 if test $GXX = "yes" ; then
2601   warn=-Wall
2602
2603 fi
2604
2605 # Checks for package options and external software
2606 ac_aux_dir=
2607 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2608   if test -f $ac_dir/install-sh; then
2609     ac_aux_dir=$ac_dir
2610     ac_install_sh="$ac_aux_dir/install-sh -c"
2611     break
2612   elif test -f $ac_dir/install.sh; then
2613     ac_aux_dir=$ac_dir
2614     ac_install_sh="$ac_aux_dir/install.sh -c"
2615     break
2616   elif test -f $ac_dir/shtool; then
2617     ac_aux_dir=$ac_dir
2618     ac_install_sh="$ac_aux_dir/shtool install -c"
2619     break
2620   fi
2621 done
2622 if test -z "$ac_aux_dir"; then
2623   { { echo "$as_me:2623: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2624 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2625    { (exit 1); exit 1; }; }
2626 fi
2627 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2628 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2629 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2630
2631 # Make sure we can run config.sub.
2632 $ac_config_sub sun4 >/dev/null 2>&1 ||
2633   { { echo "$as_me:2633: error: cannot run $ac_config_sub" >&5
2634 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2635    { (exit 1); exit 1; }; }
2636
2637 echo "$as_me:2637: checking build system type" >&5
2638 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2639 if test "${ac_cv_build+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   ac_cv_build_alias=$build_alias
2643 test -z "$ac_cv_build_alias" &&
2644   ac_cv_build_alias=`$ac_config_guess`
2645 test -z "$ac_cv_build_alias" &&
2646   { { echo "$as_me:2646: error: cannot guess build type; you must specify one" >&5
2647 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2648    { (exit 1); exit 1; }; }
2649 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2650   { { echo "$as_me:2650: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2651 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2652    { (exit 1); exit 1; }; }
2653
2654 fi
2655 echo "$as_me:2655: result: $ac_cv_build" >&5
2656 echo "${ECHO_T}$ac_cv_build" >&6
2657 build=$ac_cv_build
2658 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2659 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2660 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2661
2662 echo "$as_me:2662: checking host system type" >&5
2663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2664 if test "${ac_cv_host+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   ac_cv_host_alias=$host_alias
2668 test -z "$ac_cv_host_alias" &&
2669   ac_cv_host_alias=$ac_cv_build_alias
2670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2671   { { echo "$as_me:2671: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2673    { (exit 1); exit 1; }; }
2674
2675 fi
2676 echo "$as_me:2676: result: $ac_cv_host" >&5
2677 echo "${ECHO_T}$ac_cv_host" >&6
2678 host=$ac_cv_host
2679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2682
2683 echo "$as_me:2683: checking for audio API" >&5
2684 echo $ECHO_N "checking for audio API... $ECHO_C" >&6
2685 case $host in
2686   *-*-linux*)
2687
2688 # Check whether --with-alsa or --without-alsa was given.
2689 if test "${with_alsa+set}" = set; then
2690   withval="$with_alsa"
2691   sound_api=-D__LINUX_ALSA__
2692  echo "$as_me:2692: result: using ALSA" >&5
2693 echo "${ECHO_T}using ALSA" >&6
2694 else
2695   sound_api=-D__LINUX_OSS__
2696  echo "$as_me:2696: result: using OSS" >&5
2697 echo "${ECHO_T}using OSS" >&6
2698 fi;
2699
2700   if test $sound_api = -D__LINUX_ALSA__; then
2701
2702 echo "$as_me:2702: checking for snd_pcm_open in -lasound" >&5
2703 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
2704 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
2705   echo $ECHO_N "(cached) $ECHO_C" >&6
2706 else
2707   ac_check_lib_save_LIBS=$LIBS
2708 LIBS="-lasound  $LIBS"
2709 cat >conftest.$ac_ext <<_ACEOF
2710 #line 2710 "configure"
2711 #include "confdefs.h"
2712
2713 /* Override any gcc2 internal prototype to avoid an error.  */
2714 #ifdef __cplusplus
2715 extern "C"
2716 #endif
2717 /* We use char because int might match the return type of a gcc2
2718    builtin and then its argument prototype would still apply.  */
2719 char snd_pcm_open ();
2720 int
2721 main ()
2722 {
2723 snd_pcm_open ();
2724   ;
2725   return 0;
2726 }
2727 _ACEOF
2728 rm -f conftest.$ac_objext conftest$ac_exeext
2729 if { (eval echo "$as_me:2729: \"$ac_link\"") >&5
2730   (eval $ac_link) 2>&5
2731   ac_status=$?
2732   echo "$as_me:2732: \$? = $ac_status" >&5
2733   (exit $ac_status); } &&
2734          { ac_try='test -s conftest$ac_exeext'
2735   { (eval echo "$as_me:2735: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:2738: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   ac_cv_lib_asound_snd_pcm_open=yes
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 ac_cv_lib_asound_snd_pcm_open=no
2745 fi
2746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2747 LIBS=$ac_check_lib_save_LIBS
2748 fi
2749 echo "$as_me:2749: result: $ac_cv_lib_asound_snd_pcm_open" >&5
2750 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
2751 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
2752   cat >>confdefs.h <<EOF
2753 #define HAVE_LIBASOUND 1
2754 EOF
2755
2756   LIBS="-lasound $LIBS"
2757
2758 else
2759   { { echo "$as_me:2759: error: ALSA support requires the asound library!" >&5
2760 echo "$as_me: error: ALSA support requires the asound library!" >&2;}
2761    { (exit 1); exit 1; }; }
2762 fi
2763
2764   fi
2765   ;;
2766
2767   *-sgi*)
2768   sound_api=-D__IRIX_AL__
2769
2770   echo "$as_me:2770: result: using IRIX AL" >&5
2771 echo "${ECHO_T}using IRIX AL" >&6
2772
2773 echo "$as_me:2773: checking for alOpenPort in -laudio" >&5
2774 echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6
2775 if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
2776   echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778   ac_check_lib_save_LIBS=$LIBS
2779 LIBS="-laudio  $LIBS"
2780 cat >conftest.$ac_ext <<_ACEOF
2781 #line 2781 "configure"
2782 #include "confdefs.h"
2783
2784 /* Override any gcc2 internal prototype to avoid an error.  */
2785 #ifdef __cplusplus
2786 extern "C"
2787 #endif
2788 /* We use char because int might match the return type of a gcc2
2789    builtin and then its argument prototype would still apply.  */
2790 char alOpenPort ();
2791 int
2792 main ()
2793 {
2794 alOpenPort ();
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext conftest$ac_exeext
2800 if { (eval echo "$as_me:2800: \"$ac_link\"") >&5
2801   (eval $ac_link) 2>&5
2802   ac_status=$?
2803   echo "$as_me:2803: \$? = $ac_status" >&5
2804   (exit $ac_status); } &&
2805          { ac_try='test -s conftest$ac_exeext'
2806   { (eval echo "$as_me:2806: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:2809: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   ac_cv_lib_audio_alOpenPort=yes
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 ac_cv_lib_audio_alOpenPort=no
2816 fi
2817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2818 LIBS=$ac_check_lib_save_LIBS
2819 fi
2820 echo "$as_me:2820: result: $ac_cv_lib_audio_alOpenPort" >&5
2821 echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6
2822 if test $ac_cv_lib_audio_alOpenPort = yes; then
2823   cat >>confdefs.h <<EOF
2824 #define HAVE_LIBAUDIO 1
2825 EOF
2826
2827   LIBS="-laudio $LIBS"
2828
2829 else
2830   { { echo "$as_me:2830: error: IRIX audio support requires the audio library!" >&5
2831 echo "$as_me: error: IRIX audio support requires the audio library!" >&2;}
2832    { (exit 1); exit 1; }; }
2833 fi
2834
2835   ;;
2836
2837   *-apple*)
2838   # Check for CoreAudio framework
2839   echo "$as_me:2839: checking for CoreAudio/CoreAudio.h" >&5
2840 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
2841 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
2842   echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844   cat >conftest.$ac_ext <<_ACEOF
2845 #line 2845 "configure"
2846 #include "confdefs.h"
2847 #include <CoreAudio/CoreAudio.h>
2848 _ACEOF
2849 if { (eval echo "$as_me:2849: \"$ac_cpp conftest.$ac_ext\"") >&5
2850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2851   ac_status=$?
2852   egrep -v '^ *\+' conftest.er1 >conftest.err
2853   rm -f conftest.er1
2854   cat conftest.err >&5
2855   echo "$as_me:2855: \$? = $ac_status" >&5
2856   (exit $ac_status); } >/dev/null; then
2857   if test -s conftest.err; then
2858     ac_cpp_err=$ac_c_preproc_warn_flag
2859   else
2860     ac_cpp_err=
2861   fi
2862 else
2863   ac_cpp_err=yes
2864 fi
2865 if test -z "$ac_cpp_err"; then
2866   ac_cv_header_CoreAudio_CoreAudio_h=yes
2867 else
2868   echo "$as_me: failed program was:" >&5
2869   cat conftest.$ac_ext >&5
2870   ac_cv_header_CoreAudio_CoreAudio_h=no
2871 fi
2872 rm -f conftest.err conftest.$ac_ext
2873 fi
2874 echo "$as_me:2874: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
2875 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
2876 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
2877   sound_api=-D__MACOSX_CORE__
2878
2879 else
2880   { { echo "$as_me:2880: error: CoreAudio header files not found!" >&5
2881 echo "$as_me: error: CoreAudio header files not found!" >&2;}
2882    { (exit 1); exit 1; }; }
2883 fi
2884
2885   frameworks="-framework CoreAudio"
2886
2887 echo "$as_me:2887: checking for printf in -lstdc++" >&5
2888 echo $ECHO_N "checking for printf in -lstdc++... $ECHO_C" >&6
2889 if test "${ac_cv_lib_stdcpp_printf+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   ac_check_lib_save_LIBS=$LIBS
2893 LIBS="-lstdc++  $LIBS"
2894 cat >conftest.$ac_ext <<_ACEOF
2895 #line 2895 "configure"
2896 #include "confdefs.h"
2897
2898 /* Override any gcc2 internal prototype to avoid an error.  */
2899 #ifdef __cplusplus
2900 extern "C"
2901 #endif
2902 /* We use char because int might match the return type of a gcc2
2903    builtin and then its argument prototype would still apply.  */
2904 char printf ();
2905 int
2906 main ()
2907 {
2908 printf ();
2909   ;
2910   return 0;
2911 }
2912 _ACEOF
2913 rm -f conftest.$ac_objext conftest$ac_exeext
2914 if { (eval echo "$as_me:2914: \"$ac_link\"") >&5
2915   (eval $ac_link) 2>&5
2916   ac_status=$?
2917   echo "$as_me:2917: \$? = $ac_status" >&5
2918   (exit $ac_status); } &&
2919          { ac_try='test -s conftest$ac_exeext'
2920   { (eval echo "$as_me:2920: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:2923: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925   ac_cv_lib_stdcpp_printf=yes
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 ac_cv_lib_stdcpp_printf=no
2930 fi
2931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2932 LIBS=$ac_check_lib_save_LIBS
2933 fi
2934 echo "$as_me:2934: result: $ac_cv_lib_stdcpp_printf" >&5
2935 echo "${ECHO_T}$ac_cv_lib_stdcpp_printf" >&6
2936 if test $ac_cv_lib_stdcpp_printf = yes; then
2937   cat >>confdefs.h <<EOF
2938 #define HAVE_LIBSTDC__ 1
2939 EOF
2940
2941   LIBS="-lstdc++ $LIBS"
2942
2943 else
2944   { { echo "$as_me:2944: error: RtAudio requires the C++ library!" >&5
2945 echo "$as_me: error: RtAudio requires the C++ library!" >&2;}
2946    { (exit 1); exit 1; }; }
2947 fi
2948
2949   ;;
2950
2951   *)
2952   # Default case for unknown realtime systems.
2953   { { echo "$as_me:2953: error: Unknown system type for realtime support!" >&5
2954 echo "$as_me: error: Unknown system type for realtime support!" >&2;}
2955    { (exit 1); exit 1; }; }
2956   ;;
2957 esac
2958
2959 # Checks for library functions.
2960 if test $ac_cv_c_compiler_gnu = yes; then
2961     echo "$as_me:2961: checking whether $CC needs -traditional" >&5
2962 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2963 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966     ac_pattern="Autoconf.*'x'"
2967   cat >conftest.$ac_ext <<_ACEOF
2968 #line 2968 "configure"
2969 #include "confdefs.h"
2970 #include <sgtty.h>
2971 Autoconf TIOCGETP
2972 _ACEOF
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974   egrep "$ac_pattern" >/dev/null 2>&1; then
2975   ac_cv_prog_gcc_traditional=yes
2976 else
2977   ac_cv_prog_gcc_traditional=no
2978 fi
2979 rm -f conftest*
2980
2981   if test $ac_cv_prog_gcc_traditional = no; then
2982     cat >conftest.$ac_ext <<_ACEOF
2983 #line 2983 "configure"
2984 #include "confdefs.h"
2985 #include <termio.h>
2986 Autoconf TCGETA
2987 _ACEOF
2988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2989   egrep "$ac_pattern" >/dev/null 2>&1; then
2990   ac_cv_prog_gcc_traditional=yes
2991 fi
2992 rm -f conftest*
2993
2994   fi
2995 fi
2996 echo "$as_me:2996: result: $ac_cv_prog_gcc_traditional" >&5
2997 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2998   if test $ac_cv_prog_gcc_traditional = yes; then
2999     CC="$CC -traditional"
3000   fi
3001 fi
3002
3003 cat >confcache <<\_ACEOF
3004 # This file is a shell script that caches the results of configure
3005 # tests run on this system so they can be shared between configure
3006 # scripts and configure runs, see configure's option --config-cache.
3007 # It is not useful on other systems.  If it contains results you don't
3008 # want to keep, you may remove or edit it.
3009 #
3010 # config.status only pays attention to the cache file if you give it
3011 # the --recheck option to rerun configure.
3012 #
3013 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3015 # following values.
3016
3017 _ACEOF
3018
3019 # The following way of writing the cache mishandles newlines in values,
3020 # but we know of no workaround that is simple, portable, and efficient.
3021 # So, don't put newlines in cache variables' values.
3022 # Ultrix sh set writes to stderr and can't be redirected directly,
3023 # and sets the high bit in the cache file unless we assign to the vars.
3024 {
3025   (set) 2>&1 |
3026     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3027     *ac_space=\ *)
3028       # `set' does not quote correctly, so add quotes (double-quote
3029       # substitution turns \\\\ into \\, and sed turns \\ into \).
3030       sed -n \
3031         "s/'/'\\\\''/g;
3032           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3033       ;;
3034     *)
3035       # `set' quotes correctly as required by POSIX, so do not add quotes.
3036       sed -n \
3037         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3038       ;;
3039     esac;
3040 } |
3041   sed '
3042      t clear
3043      : clear
3044      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3045      t end
3046      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3047      : end' >>confcache
3048 if cmp -s $cache_file confcache; then :; else
3049   if test -w $cache_file; then
3050     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3051     cat confcache >$cache_file
3052   else
3053     echo "not updating unwritable cache $cache_file"
3054   fi
3055 fi
3056 rm -f confcache
3057
3058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3059 # Let make expand exec_prefix.
3060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3061
3062 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3063 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3064 # trailing colons and then remove the whole line if VPATH becomes empty
3065 # (actually we leave an empty line to preserve line numbers).
3066 if test "x$srcdir" = x.; then
3067   ac_vpsub='/^[         ]*VPATH[        ]*=/{
3068 s/:*\$(srcdir):*/:/;
3069 s/:*\${srcdir}:*/:/;
3070 s/:*@srcdir@:*/:/;
3071 s/^\([^=]*=[    ]*\):*/\1/;
3072 s/:*$//;
3073 s/^[^=]*=[      ]*$//;
3074 }'
3075 fi
3076
3077 # Transform confdefs.h into DEFS.
3078 # Protect against shell expansion while executing Makefile rules.
3079 # Protect against Makefile macro expansion.
3080 #
3081 # If the first sed substitution is executed (which looks for macros that
3082 # take arguments), then we branch to the quote section.  Otherwise,
3083 # look for a macro that doesn't take arguments.
3084 cat >confdef2opt.sed <<\EOF
3085 t clear
3086 : clear
3087 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3088 t quote
3089 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3090 t quote
3091 d
3092 : quote
3093 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
3094 s,\[,\\&,g
3095 s,\],\\&,g
3096 s,\$,$$,g
3097 p
3098 EOF
3099 # We use echo to avoid assuming a particular line-breaking character.
3100 # The extra dot is to prevent the shell from consuming trailing
3101 # line-breaks from the sub-command output.  A line-break within
3102 # single-quotes doesn't work because, if this script is created in a
3103 # platform that uses two characters for line-breaks (e.g., DOS), tr
3104 # would break.
3105 ac_LF_and_DOT=`echo; echo .`
3106 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3107 rm -f confdef2opt.sed
3108
3109 : ${CONFIG_STATUS=./config.status}
3110 ac_clean_files_save=$ac_clean_files
3111 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3112 { echo "$as_me:3112: creating $CONFIG_STATUS" >&5
3113 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3114 cat >$CONFIG_STATUS <<_ACEOF
3115 #! $SHELL
3116 # Generated automatically by configure.
3117 # Run this file to recreate the current configuration.
3118 # Compiler output produced by configure, useful for debugging
3119 # configure, is in config.log if it exists.
3120
3121 debug=false
3122 SHELL=\${CONFIG_SHELL-$SHELL}
3123 ac_cs_invocation="\$0 \$@"
3124
3125 _ACEOF
3126
3127 cat >>$CONFIG_STATUS <<\_ACEOF
3128 # Be Bourne compatible
3129 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3130   emulate sh
3131   NULLCMD=:
3132 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3133   set -o posix
3134 fi
3135
3136 # Name of the executable.
3137 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3138
3139 if expr a : '\(a\)' >/dev/null 2>&1; then
3140   as_expr=expr
3141 else
3142   as_expr=false
3143 fi
3144
3145 rm -f conf$$ conf$$.exe conf$$.file
3146 echo >conf$$.file
3147 if ln -s conf$$.file conf$$ 2>/dev/null; then
3148   # We could just check for DJGPP; but this test a) works b) is more generic
3149   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3150   if test -f conf$$.exe; then
3151     # Don't use ln at all; we don't have any links
3152     as_ln_s='cp -p'
3153   else
3154     as_ln_s='ln -s'
3155   fi
3156 elif ln conf$$.file conf$$ 2>/dev/null; then
3157   as_ln_s=ln
3158 else
3159   as_ln_s='cp -p'
3160 fi
3161 rm -f conf$$ conf$$.exe conf$$.file
3162
3163 as_executable_p="test -f"
3164
3165 # Support unset when possible.
3166 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3167   as_unset=unset
3168 else
3169   as_unset=false
3170 fi
3171
3172 # NLS nuisances.
3173 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3174 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3175 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3176 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3177 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3178 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3179 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3180 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3181
3182 # IFS
3183 # We need space, tab and new line, in precisely that order.
3184 as_nl='
3185 '
3186 IFS="   $as_nl"
3187
3188 # CDPATH.
3189 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3190
3191 exec 6>&1
3192
3193 _ACEOF
3194
3195 # Files that config.status was made for.
3196 if test -n "$ac_config_files"; then
3197   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3198 fi
3199
3200 if test -n "$ac_config_headers"; then
3201   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3202 fi
3203
3204 if test -n "$ac_config_links"; then
3205   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3206 fi
3207
3208 if test -n "$ac_config_commands"; then
3209   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3210 fi
3211
3212 cat >>$CONFIG_STATUS <<\EOF
3213
3214 ac_cs_usage="\
3215 \`$as_me' instantiates files from templates according to the
3216 current configuration.
3217
3218 Usage: $0 [OPTIONS] [FILE]...
3219
3220   -h, --help       print this help, then exit
3221   -V, --version    print version number, then exit
3222   -d, --debug      don't remove temporary files
3223       --recheck    update $as_me by reconfiguring in the same conditions
3224   --file=FILE[:TEMPLATE]
3225                    instantiate the configuration file FILE
3226
3227 Configuration files:
3228 $config_files
3229
3230 Report bugs to <bug-autoconf@gnu.org>."
3231 EOF
3232
3233 cat >>$CONFIG_STATUS <<EOF
3234 ac_cs_version="\\
3235 RtAudio config.status 2.1
3236 configured by $0, generated by GNU Autoconf 2.52,
3237   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3238
3239 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3240 Free Software Foundation, Inc.
3241 This config.status script is free software; the Free Software Foundation
3242 gives unlimited permission to copy, distribute and modify it."
3243 srcdir=$srcdir
3244 EOF
3245
3246 cat >>$CONFIG_STATUS <<\EOF
3247 # If no file are specified by the user, then we need to provide default
3248 # value.  By we need to know if files were specified by the user.
3249 ac_need_defaults=:
3250 while test $# != 0
3251 do
3252   case $1 in
3253   --*=*)
3254     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3255     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3256     shift
3257     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3258     shift
3259     ;;
3260   -*);;
3261   *) # This is not an option, so the user has probably given explicit
3262      # arguments.
3263      ac_need_defaults=false;;
3264   esac
3265
3266   case $1 in
3267   # Handling of the options.
3268 EOF
3269 cat >>$CONFIG_STATUS <<EOF
3270   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3271     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3272     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3273 EOF
3274 cat >>$CONFIG_STATUS <<\EOF
3275   --version | --vers* | -V )
3276     echo "$ac_cs_version"; exit 0 ;;
3277   --he | --h)
3278     # Conflict between --help and --header
3279     { { echo "$as_me:3279: error: ambiguous option: $1
3280 Try \`$0 --help' for more information." >&5
3281 echo "$as_me: error: ambiguous option: $1
3282 Try \`$0 --help' for more information." >&2;}
3283    { (exit 1); exit 1; }; };;
3284   --help | --hel | -h )
3285     echo "$ac_cs_usage"; exit 0 ;;
3286   --debug | --d* | -d )
3287     debug=: ;;
3288   --file | --fil | --fi | --f )
3289     shift
3290     CONFIG_FILES="$CONFIG_FILES $1"
3291     ac_need_defaults=false;;
3292   --header | --heade | --head | --hea )
3293     shift
3294     CONFIG_HEADERS="$CONFIG_HEADERS $1"
3295     ac_need_defaults=false;;
3296
3297   # This is an error.
3298   -*) { { echo "$as_me:3298: error: unrecognized option: $1
3299 Try \`$0 --help' for more information." >&5
3300 echo "$as_me: error: unrecognized option: $1
3301 Try \`$0 --help' for more information." >&2;}
3302    { (exit 1); exit 1; }; } ;;
3303
3304   *) ac_config_targets="$ac_config_targets $1" ;;
3305
3306   esac
3307   shift
3308 done
3309
3310 exec 5>>config.log
3311 cat >&5 << _ACEOF
3312
3313 ## ----------------------- ##
3314 ## Running config.status.  ##
3315 ## ----------------------- ##
3316
3317 This file was extended by $as_me (RtAudio 2.1) 2.52, executed with
3318   CONFIG_FILES    = $CONFIG_FILES
3319   CONFIG_HEADERS  = $CONFIG_HEADERS
3320   CONFIG_LINKS    = $CONFIG_LINKS
3321   CONFIG_COMMANDS = $CONFIG_COMMANDS
3322   > $ac_cs_invocation
3323 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3324
3325 _ACEOF
3326 EOF
3327
3328 cat >>$CONFIG_STATUS <<\EOF
3329 for ac_config_target in $ac_config_targets
3330 do
3331   case "$ac_config_target" in
3332   # Handling of arguments.
3333   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
3334   *) { { echo "$as_me:3334: error: invalid argument: $ac_config_target" >&5
3335 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3336    { (exit 1); exit 1; }; };;
3337   esac
3338 done
3339
3340 # If the user did not use the arguments to specify the items to instantiate,
3341 # then the envvar interface is used.  Set only those that are not.
3342 # We use the long form for the default assignment because of an extremely
3343 # bizarre bug on SunOS 4.1.3.
3344 if $ac_need_defaults; then
3345   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3346 fi
3347
3348 # Create a temporary directory, and hook for its removal unless debugging.
3349 $debug ||
3350 {
3351   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3352   trap '{ (exit 1); exit 1; }' 1 2 13 15
3353 }
3354
3355 # Create a (secure) tmp directory for tmp files.
3356 : ${TMPDIR=/tmp}
3357 {
3358   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3359   test -n "$tmp" && test -d "$tmp"
3360 }  ||
3361 {
3362   tmp=$TMPDIR/cs$$-$RANDOM
3363   (umask 077 && mkdir $tmp)
3364 } ||
3365 {
3366    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3367    { (exit 1); exit 1; }
3368 }
3369
3370 EOF
3371
3372 cat >>$CONFIG_STATUS <<EOF
3373
3374 #
3375 # CONFIG_FILES section.
3376 #
3377
3378 # No need to generate the scripts if there are no CONFIG_FILES.
3379 # This happens for instance when ./config.status config.h
3380 if test -n "\$CONFIG_FILES"; then
3381   # Protect against being on the right side of a sed subst in config.status.
3382   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3383    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3384 s,@SHELL@,$SHELL,;t t
3385 s,@exec_prefix@,$exec_prefix,;t t
3386 s,@prefix@,$prefix,;t t
3387 s,@program_transform_name@,$program_transform_name,;t t
3388 s,@bindir@,$bindir,;t t
3389 s,@sbindir@,$sbindir,;t t
3390 s,@libexecdir@,$libexecdir,;t t
3391 s,@datadir@,$datadir,;t t
3392 s,@sysconfdir@,$sysconfdir,;t t
3393 s,@sharedstatedir@,$sharedstatedir,;t t
3394 s,@localstatedir@,$localstatedir,;t t
3395 s,@libdir@,$libdir,;t t
3396 s,@includedir@,$includedir,;t t
3397 s,@oldincludedir@,$oldincludedir,;t t
3398 s,@infodir@,$infodir,;t t
3399 s,@mandir@,$mandir,;t t
3400 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3401 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3402 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3403 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3404 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3405 s,@build_alias@,$build_alias,;t t
3406 s,@host_alias@,$host_alias,;t t
3407 s,@target_alias@,$target_alias,;t t
3408 s,@ECHO_C@,$ECHO_C,;t t
3409 s,@ECHO_N@,$ECHO_N,;t t
3410 s,@ECHO_T@,$ECHO_T,;t t
3411 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3412 s,@DEFS@,$DEFS,;t t
3413 s,@LIBS@,$LIBS,;t t
3414 s,@CC@,$CC,;t t
3415 s,@CFLAGS@,$CFLAGS,;t t
3416 s,@LDFLAGS@,$LDFLAGS,;t t
3417 s,@CPPFLAGS@,$CPPFLAGS,;t t
3418 s,@ac_ct_CC@,$ac_ct_CC,;t t
3419 s,@EXEEXT@,$EXEEXT,;t t
3420 s,@OBJEXT@,$OBJEXT,;t t
3421 s,@CXX@,$CXX,;t t
3422 s,@CXXFLAGS@,$CXXFLAGS,;t t
3423 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
3424 s,@CPP@,$CPP,;t t
3425 s,@debug@,$debug,;t t
3426 s,@cflags@,$cflags,;t t
3427 s,@object_path@,$object_path,;t t
3428 s,@warn@,$warn,;t t
3429 s,@build@,$build,;t t
3430 s,@build_cpu@,$build_cpu,;t t
3431 s,@build_vendor@,$build_vendor,;t t
3432 s,@build_os@,$build_os,;t t
3433 s,@host@,$host,;t t
3434 s,@host_cpu@,$host_cpu,;t t
3435 s,@host_vendor@,$host_vendor,;t t
3436 s,@host_os@,$host_os,;t t
3437 s,@sound_api@,$sound_api,;t t
3438 s,@frameworks@,$frameworks,;t t
3439 CEOF
3440
3441 EOF
3442
3443   cat >>$CONFIG_STATUS <<\EOF
3444   # Split the substitutions into bite-sized pieces for seds with
3445   # small command number limits, like on Digital OSF/1 and HP-UX.
3446   ac_max_sed_lines=48
3447   ac_sed_frag=1 # Number of current file.
3448   ac_beg=1 # First line for current file.
3449   ac_end=$ac_max_sed_lines # Line after last line for current file.
3450   ac_more_lines=:
3451   ac_sed_cmds=
3452   while $ac_more_lines; do
3453     if test $ac_beg -gt 1; then
3454       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3455     else
3456       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3457     fi
3458     if test ! -s $tmp/subs.frag; then
3459       ac_more_lines=false
3460     else
3461       # The purpose of the label and of the branching condition is to
3462       # speed up the sed processing (if there are no `@' at all, there
3463       # is no need to browse any of the substitutions).
3464       # These are the two extra sed commands mentioned above.
3465       (echo ':t
3466   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3467       if test -z "$ac_sed_cmds"; then
3468         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3469       else
3470         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3471       fi
3472       ac_sed_frag=`expr $ac_sed_frag + 1`
3473       ac_beg=$ac_end
3474       ac_end=`expr $ac_end + $ac_max_sed_lines`
3475     fi
3476   done
3477   if test -z "$ac_sed_cmds"; then
3478     ac_sed_cmds=cat
3479   fi
3480 fi # test -n "$CONFIG_FILES"
3481
3482 EOF
3483 cat >>$CONFIG_STATUS <<\EOF
3484 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3485   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3486   case $ac_file in
3487   - | *:- | *:-:* ) # input from stdin
3488         cat >$tmp/stdin
3489         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3490         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3491   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3492         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3493   * )   ac_file_in=$ac_file.in ;;
3494   esac
3495
3496   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3497   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3498          X"$ac_file" : 'X\(//\)[^/]' \| \
3499          X"$ac_file" : 'X\(//\)$' \| \
3500          X"$ac_file" : 'X\(/\)' \| \
3501          .     : '\(.\)' 2>/dev/null ||
3502 echo X"$ac_file" |
3503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3505           /^X\(\/\/\)$/{ s//\1/; q; }
3506           /^X\(\/\).*/{ s//\1/; q; }
3507           s/.*/./; q'`
3508   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3509     { case "$ac_dir" in
3510   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3511   *)                      as_incr_dir=.;;
3512 esac
3513 as_dummy="$ac_dir"
3514 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3515   case $as_mkdir_dir in
3516     # Skip DOS drivespec
3517     ?:) as_incr_dir=$as_mkdir_dir ;;
3518     *)
3519       as_incr_dir=$as_incr_dir/$as_mkdir_dir
3520       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3521     ;;
3522   esac
3523 done; }
3524
3525     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3526     # A "../" for each directory in $ac_dir_suffix.
3527     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3528   else
3529     ac_dir_suffix= ac_dots=
3530   fi
3531
3532   case $srcdir in
3533   .)  ac_srcdir=.
3534       if test -z "$ac_dots"; then
3535          ac_top_srcdir=.
3536       else
3537          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3538       fi ;;
3539   [\\/]* | ?:[\\/]* )
3540       ac_srcdir=$srcdir$ac_dir_suffix;
3541       ac_top_srcdir=$srcdir ;;
3542   *) # Relative path.
3543     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3544     ac_top_srcdir=$ac_dots$srcdir ;;
3545   esac
3546
3547   if test x"$ac_file" != x-; then
3548     { echo "$as_me:3548: creating $ac_file" >&5
3549 echo "$as_me: creating $ac_file" >&6;}
3550     rm -f "$ac_file"
3551   fi
3552   # Let's still pretend it is `configure' which instantiates (i.e., don't
3553   # use $as_me), people would be surprised to read:
3554   #    /* config.h.  Generated automatically by config.status.  */
3555   configure_input="Generated automatically from `echo $ac_file_in |
3556                                                  sed 's,.*/,,'` by configure."
3557
3558   # First look for the input files in the build tree, otherwise in the
3559   # src tree.
3560   ac_file_inputs=`IFS=:
3561     for f in $ac_file_in; do
3562       case $f in
3563       -) echo $tmp/stdin ;;
3564       [\\/$]*)
3565          # Absolute (can't be DOS-style, as IFS=:)
3566          test -f "$f" || { { echo "$as_me:3566: error: cannot find input file: $f" >&5
3567 echo "$as_me: error: cannot find input file: $f" >&2;}
3568    { (exit 1); exit 1; }; }
3569          echo $f;;
3570       *) # Relative
3571          if test -f "$f"; then
3572            # Build tree
3573            echo $f
3574          elif test -f "$srcdir/$f"; then
3575            # Source tree
3576            echo $srcdir/$f
3577          else
3578            # /dev/null tree
3579            { { echo "$as_me:3579: error: cannot find input file: $f" >&5
3580 echo "$as_me: error: cannot find input file: $f" >&2;}
3581    { (exit 1); exit 1; }; }
3582          fi;;
3583       esac
3584     done` || { (exit 1); exit 1; }
3585 EOF
3586 cat >>$CONFIG_STATUS <<EOF
3587   sed "$ac_vpsub
3588 $extrasub
3589 EOF
3590 cat >>$CONFIG_STATUS <<\EOF
3591 :t
3592 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3593 s,@configure_input@,$configure_input,;t t
3594 s,@srcdir@,$ac_srcdir,;t t
3595 s,@top_srcdir@,$ac_top_srcdir,;t t
3596 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3597   rm -f $tmp/stdin
3598   if test x"$ac_file" != x-; then
3599     mv $tmp/out $ac_file
3600   else
3601     cat $tmp/out
3602     rm -f $tmp/out
3603   fi
3604
3605 done
3606 EOF
3607
3608 cat >>$CONFIG_STATUS <<\EOF
3609
3610 { (exit 0); exit 0; }
3611 EOF
3612 chmod +x $CONFIG_STATUS
3613 ac_clean_files=$ac_clean_files_save
3614
3615 # configure is writing to config.log, and then calls config.status.
3616 # config.status does its own redirection, appending to config.log.
3617 # Unfortunately, on DOS this fails, as config.log is still kept open
3618 # by configure, so config.status won't be able to write to it; its
3619 # output is simply discarded.  So we exec the FD to /dev/null,
3620 # effectively closing config.log, so it can be properly (re)opened and
3621 # appended to by config.status.  When coming back to configure, we
3622 # need to make the FD available again.
3623 if test "$no_create" != yes; then
3624   ac_cs_success=:
3625   exec 5>/dev/null
3626   $SHELL $CONFIG_STATUS || ac_cs_success=false
3627   exec 5>>config.log
3628   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3629   # would make configure fail if this is the last instruction.
3630   $ac_cs_success || { (exit 1); exit 1; }
3631 fi
3632