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.

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