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.

5768 lines
166KB

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