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.

5576 lines
161KB

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