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