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.

6234 lines
172KB

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