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