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