Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6581 lines
182KB

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