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