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.

4891 lines
139KB

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