🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
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.

4442 lines
128 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  185. if (eval "$as_required") 2>/dev/null; then :
  186. as_have_required=yes
  187. else
  188. as_have_required=no
  189. fi
  190. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  191. else
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. as_found=false
  194. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  195. do
  196. IFS=$as_save_IFS
  197. test -z "$as_dir" && as_dir=.
  198. as_found=:
  199. case $as_dir in #(
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. # Try only shells that exist, to save several forks.
  203. as_shell=$as_dir/$as_base
  204. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  205. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  206. CONFIG_SHELL=$as_shell as_have_required=yes
  207. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  216. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  217. CONFIG_SHELL=$SHELL as_have_required=yes
  218. fi; }
  219. IFS=$as_save_IFS
  220. if test "x$CONFIG_SHELL" != x; then :
  221. export CONFIG_SHELL
  222. # We cannot yet assume a decent shell, so we have to provide a
  223. # neutralization value for shells without unset; and this also
  224. # works around shells that cannot unset nonexistent variables.
  225. # Preserve -v and -x to the replacement shell.
  226. BASH_ENV=/dev/null
  227. ENV=/dev/null
  228. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  229. case $- in # ((((
  230. *v*x* | *x*v* ) as_opts=-vx ;;
  231. *v* ) as_opts=-v ;;
  232. *x* ) as_opts=-x ;;
  233. * ) as_opts= ;;
  234. esac
  235. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  236. # Admittedly, this is quite paranoid, since all the known shells bail
  237. # out after a failed `exec'.
  238. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  239. exit 255
  240. fi
  241. if test x$as_have_required = xno; then :
  242. $as_echo "$0: This script requires a shell more modern than all"
  243. $as_echo "$0: the shells that I found on your system."
  244. if test x${ZSH_VERSION+set} = xset ; then
  245. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  246. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  247. else
  248. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  249. $0: including any error possibly output before this
  250. $0: message. Then install a modern shell, or manually run
  251. $0: the script under such a shell if you do have one."
  252. fi
  253. exit 1
  254. fi
  255. fi
  256. fi
  257. SHELL=${CONFIG_SHELL-/bin/sh}
  258. export SHELL
  259. # Unset more variables known to interfere with behavior of common tools.
  260. CLICOLOR_FORCE= GREP_OPTIONS=
  261. unset CLICOLOR_FORCE GREP_OPTIONS
  262. ## --------------------- ##
  263. ## M4sh Shell Functions. ##
  264. ## --------------------- ##
  265. # as_fn_unset VAR
  266. # ---------------
  267. # Portably unset VAR.
  268. as_fn_unset ()
  269. {
  270. { eval $1=; unset $1;}
  271. }
  272. as_unset=as_fn_unset
  273. # as_fn_set_status STATUS
  274. # -----------------------
  275. # Set $? to STATUS, without forking.
  276. as_fn_set_status ()
  277. {
  278. return $1
  279. } # as_fn_set_status
  280. # as_fn_exit STATUS
  281. # -----------------
  282. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  283. as_fn_exit ()
  284. {
  285. set +e
  286. as_fn_set_status $1
  287. exit $1
  288. } # as_fn_exit
  289. # as_fn_mkdir_p
  290. # -------------
  291. # Create "$as_dir" as a directory, including parents if necessary.
  292. as_fn_mkdir_p ()
  293. {
  294. case $as_dir in #(
  295. -*) as_dir=./$as_dir;;
  296. esac
  297. test -d "$as_dir" || eval $as_mkdir_p || {
  298. as_dirs=
  299. while :; do
  300. case $as_dir in #(
  301. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  302. *) as_qdir=$as_dir;;
  303. esac
  304. as_dirs="'$as_qdir' $as_dirs"
  305. as_dir=`$as_dirname -- "$as_dir" ||
  306. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  307. X"$as_dir" : 'X\(//\)[^/]' \| \
  308. X"$as_dir" : 'X\(//\)$' \| \
  309. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  310. $as_echo X"$as_dir" |
  311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  312. s//\1/
  313. q
  314. }
  315. /^X\(\/\/\)[^/].*/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\).*/{
  324. s//\1/
  325. q
  326. }
  327. s/.*/./; q'`
  328. test -d "$as_dir" && break
  329. done
  330. test -z "$as_dirs" || eval "mkdir $as_dirs"
  331. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  332. } # as_fn_mkdir_p
  333. # as_fn_executable_p FILE
  334. # -----------------------
  335. # Test if FILE is an executable regular file.
  336. as_fn_executable_p ()
  337. {
  338. test -f "$1" && test -x "$1"
  339. } # as_fn_executable_p
  340. # as_fn_append VAR VALUE
  341. # ----------------------
  342. # Append the text in VALUE to the end of the definition contained in VAR. Take
  343. # advantage of any shell optimizations that allow amortized linear growth over
  344. # repeated appends, instead of the typical quadratic growth present in naive
  345. # implementations.
  346. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  347. eval 'as_fn_append ()
  348. {
  349. eval $1+=\$2
  350. }'
  351. else
  352. as_fn_append ()
  353. {
  354. eval $1=\$$1\$2
  355. }
  356. fi # as_fn_append
  357. # as_fn_arith ARG...
  358. # ------------------
  359. # Perform arithmetic evaluation on the ARGs, and store the result in the
  360. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  361. # must be portable across $(()) and expr.
  362. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  363. eval 'as_fn_arith ()
  364. {
  365. as_val=$(( $* ))
  366. }'
  367. else
  368. as_fn_arith ()
  369. {
  370. as_val=`expr "$@" || test $? -eq 1`
  371. }
  372. fi # as_fn_arith
  373. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  374. # ----------------------------------------
  375. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  376. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  377. # script with STATUS, using 1 if that was 0.
  378. as_fn_error ()
  379. {
  380. as_status=$1; test $as_status -eq 0 && as_status=1
  381. if test "$4"; then
  382. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  383. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  384. fi
  385. $as_echo "$as_me: error: $2" >&2
  386. as_fn_exit $as_status
  387. } # as_fn_error
  388. if expr a : '\(a\)' >/dev/null 2>&1 &&
  389. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  390. as_expr=expr
  391. else
  392. as_expr=false
  393. fi
  394. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  395. as_basename=basename
  396. else
  397. as_basename=false
  398. fi
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. as_me=`$as_basename -- "$0" ||
  405. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  406. X"$0" : 'X\(//\)$' \| \
  407. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  408. $as_echo X/"$0" |
  409. sed '/^.*\/\([^/][^/]*\)\/*$/{
  410. s//\1/
  411. q
  412. }
  413. /^X\/\(\/\/\)$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\).*/{
  418. s//\1/
  419. q
  420. }
  421. s/.*/./; q'`
  422. # Avoid depending upon Character Ranges.
  423. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  424. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  425. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  426. as_cr_digits='0123456789'
  427. as_cr_alnum=$as_cr_Letters$as_cr_digits
  428. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  429. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  430. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  431. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  432. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  433. sed -n '
  434. p
  435. /[$]LINENO/=
  436. ' <$as_myself |
  437. sed '
  438. s/[$]LINENO.*/&-/
  439. t lineno
  440. b
  441. :lineno
  442. N
  443. :loop
  444. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  445. t loop
  446. s/-\n.*//
  447. ' >$as_me.lineno &&
  448. chmod +x "$as_me.lineno" ||
  449. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  450. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  451. # already done that, so ensure we don't try to do so again and fall
  452. # in an infinite loop. This has already happened in practice.
  453. _as_can_reexec=no; export _as_can_reexec
  454. # Don't try to exec as it changes $[0], causing all sort of problems
  455. # (the dirname of $[0] is not the place where we might find the
  456. # original and so on. Autoconf is especially sensitive to this).
  457. . "./$as_me.lineno"
  458. # Exit status is that of the last command.
  459. exit
  460. }
  461. ECHO_C= ECHO_N= ECHO_T=
  462. case `echo -n x` in #(((((
  463. -n*)
  464. case `echo 'xy\c'` in
  465. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  466. xy) ECHO_C='\c';;
  467. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  468. ECHO_T=' ';;
  469. esac;;
  470. *)
  471. ECHO_N='-n';;
  472. esac
  473. rm -f conf$$ conf$$.exe conf$$.file
  474. if test -d conf$$.dir; then
  475. rm -f conf$$.dir/conf$$.file
  476. else
  477. rm -f conf$$.dir
  478. mkdir conf$$.dir 2>/dev/null
  479. fi
  480. if (echo >conf$$.file) 2>/dev/null; then
  481. if ln -s conf$$.file conf$$ 2>/dev/null; then
  482. as_ln_s='ln -s'
  483. # ... but there are two gotchas:
  484. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  485. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  486. # In both cases, we have to default to `cp -pR'.
  487. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  488. as_ln_s='cp -pR'
  489. elif ln conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s=ln
  491. else
  492. as_ln_s='cp -pR'
  493. fi
  494. else
  495. as_ln_s='cp -pR'
  496. fi
  497. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  498. rmdir conf$$.dir 2>/dev/null
  499. if mkdir -p . 2>/dev/null; then
  500. as_mkdir_p='mkdir -p "$as_dir"'
  501. else
  502. test -d ./-p && rmdir ./-p
  503. as_mkdir_p=false
  504. fi
  505. as_test_x='test -x'
  506. as_executable_p=as_fn_executable_p
  507. # Sed expression to map a string onto a valid CPP name.
  508. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  509. # Sed expression to map a string onto a valid variable name.
  510. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  511. test -n "$DJDIR" || exec 7<&0 </dev/null
  512. exec 6>&1
  513. # Name of the host.
  514. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  515. # so uname gets run too.
  516. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  517. #
  518. # Initializations.
  519. #
  520. ac_default_prefix=/usr/local
  521. ac_clean_files=
  522. ac_config_libobj_dir=.
  523. LIBOBJS=
  524. cross_compiling=no
  525. subdirs=
  526. MFLAGS=
  527. MAKEFLAGS=
  528. # Identity of this package.
  529. PACKAGE_NAME=
  530. PACKAGE_TARNAME=
  531. PACKAGE_VERSION=
  532. PACKAGE_STRING=
  533. PACKAGE_BUGREPORT=
  534. PACKAGE_URL=
  535. ac_unique_file="unittest/testquit.c"
  536. ac_subst_vars='LTLIBOBJS
  537. LIBOBJS
  538. LIBUNWIND_LIBS
  539. LIBUNWIND_CFLAGS
  540. SDL2_CONFIG
  541. SDL_LIBS
  542. SDL_CFLAGS
  543. PKG_CONFIG_LIBDIR
  544. PKG_CONFIG_PATH
  545. PKG_CONFIG
  546. EXE
  547. OBJEXT
  548. EXEEXT
  549. ac_ct_CC
  550. CPPFLAGS
  551. LDFLAGS
  552. CFLAGS
  553. CC
  554. host_os
  555. host_vendor
  556. host_cpu
  557. host
  558. build_os
  559. build_vendor
  560. build_cpu
  561. build
  562. target_alias
  563. host_alias
  564. build_alias
  565. LIBS
  566. ECHO_T
  567. ECHO_N
  568. ECHO_C
  569. DEFS
  570. mandir
  571. localedir
  572. libdir
  573. psdir
  574. pdfdir
  575. dvidir
  576. htmldir
  577. infodir
  578. docdir
  579. oldincludedir
  580. includedir
  581. localstatedir
  582. sharedstatedir
  583. sysconfdir
  584. datadir
  585. datarootdir
  586. libexecdir
  587. sbindir
  588. bindir
  589. program_transform_name
  590. prefix
  591. exec_prefix
  592. PACKAGE_URL
  593. PACKAGE_BUGREPORT
  594. PACKAGE_STRING
  595. PACKAGE_VERSION
  596. PACKAGE_TARNAME
  597. PACKAGE_NAME
  598. PATH_SEPARATOR
  599. SHELL'
  600. ac_subst_files=''
  601. ac_user_opts='
  602. enable_option_checking
  603. with_sdl_prefix
  604. with_sdl_exec_prefix
  605. enable_sdltest
  606. '
  607. ac_precious_vars='build_alias
  608. host_alias
  609. target_alias
  610. CC
  611. CFLAGS
  612. LDFLAGS
  613. LIBS
  614. CPPFLAGS
  615. PKG_CONFIG
  616. PKG_CONFIG_PATH
  617. PKG_CONFIG_LIBDIR
  618. SDL_CFLAGS
  619. SDL_LIBS
  620. LIBUNWIND_CFLAGS
  621. LIBUNWIND_LIBS'
  622. # Initialize some variables set by options.
  623. ac_init_help=
  624. ac_init_version=false
  625. ac_unrecognized_opts=
  626. ac_unrecognized_sep=
  627. # The variables have the same names as the options, with
  628. # dashes changed to underlines.
  629. cache_file=/dev/null
  630. exec_prefix=NONE
  631. no_create=
  632. no_recursion=
  633. prefix=NONE
  634. program_prefix=NONE
  635. program_suffix=NONE
  636. program_transform_name=s,x,x,
  637. silent=
  638. site=
  639. srcdir=
  640. verbose=
  641. x_includes=NONE
  642. x_libraries=NONE
  643. # Installation directory options.
  644. # These are left unexpanded so users can "make install exec_prefix=/foo"
  645. # and all the variables that are supposed to be based on exec_prefix
  646. # by default will actually change.
  647. # Use braces instead of parens because sh, perl, etc. also accept them.
  648. # (The list follows the same order as the GNU Coding Standards.)
  649. bindir='${exec_prefix}/bin'
  650. sbindir='${exec_prefix}/sbin'
  651. libexecdir='${exec_prefix}/libexec'
  652. datarootdir='${prefix}/share'
  653. datadir='${datarootdir}'
  654. sysconfdir='${prefix}/etc'
  655. sharedstatedir='${prefix}/com'
  656. localstatedir='${prefix}/var'
  657. includedir='${prefix}/include'
  658. oldincludedir='/usr/include'
  659. docdir='${datarootdir}/doc/${PACKAGE}'
  660. infodir='${datarootdir}/info'
  661. htmldir='${docdir}'
  662. dvidir='${docdir}'
  663. pdfdir='${docdir}'
  664. psdir='${docdir}'
  665. libdir='${exec_prefix}/lib'
  666. localedir='${datarootdir}/locale'
  667. mandir='${datarootdir}/man'
  668. ac_prev=
  669. ac_dashdash=
  670. for ac_option
  671. do
  672. # If the previous option needs an argument, assign it.
  673. if test -n "$ac_prev"; then
  674. eval $ac_prev=\$ac_option
  675. ac_prev=
  676. continue
  677. fi
  678. case $ac_option in
  679. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  680. *=) ac_optarg= ;;
  681. *) ac_optarg=yes ;;
  682. esac
  683. # Accept the important Cygnus configure options, so we can diagnose typos.
  684. case $ac_dashdash$ac_option in
  685. --)
  686. ac_dashdash=yes ;;
  687. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  688. ac_prev=bindir ;;
  689. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  690. bindir=$ac_optarg ;;
  691. -build | --build | --buil | --bui | --bu)
  692. ac_prev=build_alias ;;
  693. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  694. build_alias=$ac_optarg ;;
  695. -cache-file | --cache-file | --cache-fil | --cache-fi \
  696. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  697. ac_prev=cache_file ;;
  698. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  699. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  700. cache_file=$ac_optarg ;;
  701. --config-cache | -C)
  702. cache_file=config.cache ;;
  703. -datadir | --datadir | --datadi | --datad)
  704. ac_prev=datadir ;;
  705. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  706. datadir=$ac_optarg ;;
  707. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  708. | --dataroo | --dataro | --datar)
  709. ac_prev=datarootdir ;;
  710. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  711. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  712. datarootdir=$ac_optarg ;;
  713. -disable-* | --disable-*)
  714. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  715. # Reject names that are not valid shell variable names.
  716. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  717. as_fn_error $? "invalid feature name: $ac_useropt"
  718. ac_useropt_orig=$ac_useropt
  719. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  720. case $ac_user_opts in
  721. *"
  722. "enable_$ac_useropt"
  723. "*) ;;
  724. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  725. ac_unrecognized_sep=', ';;
  726. esac
  727. eval enable_$ac_useropt=no ;;
  728. -docdir | --docdir | --docdi | --doc | --do)
  729. ac_prev=docdir ;;
  730. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  731. docdir=$ac_optarg ;;
  732. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  733. ac_prev=dvidir ;;
  734. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  735. dvidir=$ac_optarg ;;
  736. -enable-* | --enable-*)
  737. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  738. # Reject names that are not valid shell variable names.
  739. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  740. as_fn_error $? "invalid feature name: $ac_useropt"
  741. ac_useropt_orig=$ac_useropt
  742. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  743. case $ac_user_opts in
  744. *"
  745. "enable_$ac_useropt"
  746. "*) ;;
  747. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  748. ac_unrecognized_sep=', ';;
  749. esac
  750. eval enable_$ac_useropt=\$ac_optarg ;;
  751. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  752. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  753. | --exec | --exe | --ex)
  754. ac_prev=exec_prefix ;;
  755. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  756. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  757. | --exec=* | --exe=* | --ex=*)
  758. exec_prefix=$ac_optarg ;;
  759. -gas | --gas | --ga | --g)
  760. # Obsolete; use --with-gas.
  761. with_gas=yes ;;
  762. -help | --help | --hel | --he | -h)
  763. ac_init_help=long ;;
  764. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  765. ac_init_help=recursive ;;
  766. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  767. ac_init_help=short ;;
  768. -host | --host | --hos | --ho)
  769. ac_prev=host_alias ;;
  770. -host=* | --host=* | --hos=* | --ho=*)
  771. host_alias=$ac_optarg ;;
  772. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  773. ac_prev=htmldir ;;
  774. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  775. | --ht=*)
  776. htmldir=$ac_optarg ;;
  777. -includedir | --includedir | --includedi | --included | --include \
  778. | --includ | --inclu | --incl | --inc)
  779. ac_prev=includedir ;;
  780. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  781. | --includ=* | --inclu=* | --incl=* | --inc=*)
  782. includedir=$ac_optarg ;;
  783. -infodir | --infodir | --infodi | --infod | --info | --inf)
  784. ac_prev=infodir ;;
  785. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  786. infodir=$ac_optarg ;;
  787. -libdir | --libdir | --libdi | --libd)
  788. ac_prev=libdir ;;
  789. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  790. libdir=$ac_optarg ;;
  791. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  792. | --libexe | --libex | --libe)
  793. ac_prev=libexecdir ;;
  794. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  795. | --libexe=* | --libex=* | --libe=*)
  796. libexecdir=$ac_optarg ;;
  797. -localedir | --localedir | --localedi | --localed | --locale)
  798. ac_prev=localedir ;;
  799. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  800. localedir=$ac_optarg ;;
  801. -localstatedir | --localstatedir | --localstatedi | --localstated \
  802. | --localstate | --localstat | --localsta | --localst | --locals)
  803. ac_prev=localstatedir ;;
  804. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  805. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  806. localstatedir=$ac_optarg ;;
  807. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  808. ac_prev=mandir ;;
  809. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  810. mandir=$ac_optarg ;;
  811. -nfp | --nfp | --nf)
  812. # Obsolete; use --without-fp.
  813. with_fp=no ;;
  814. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  815. | --no-cr | --no-c | -n)
  816. no_create=yes ;;
  817. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  818. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  819. no_recursion=yes ;;
  820. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  821. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  822. | --oldin | --oldi | --old | --ol | --o)
  823. ac_prev=oldincludedir ;;
  824. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  825. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  826. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  827. oldincludedir=$ac_optarg ;;
  828. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  829. ac_prev=prefix ;;
  830. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  831. prefix=$ac_optarg ;;
  832. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  833. | --program-pre | --program-pr | --program-p)
  834. ac_prev=program_prefix ;;
  835. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  836. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  837. program_prefix=$ac_optarg ;;
  838. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  839. | --program-suf | --program-su | --program-s)
  840. ac_prev=program_suffix ;;
  841. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  842. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  843. program_suffix=$ac_optarg ;;
  844. -program-transform-name | --program-transform-name \
  845. | --program-transform-nam | --program-transform-na \
  846. | --program-transform-n | --program-transform- \
  847. | --program-transform | --program-transfor \
  848. | --program-transfo | --program-transf \
  849. | --program-trans | --program-tran \
  850. | --progr-tra | --program-tr | --program-t)
  851. ac_prev=program_transform_name ;;
  852. -program-transform-name=* | --program-transform-name=* \
  853. | --program-transform-nam=* | --program-transform-na=* \
  854. | --program-transform-n=* | --program-transform-=* \
  855. | --program-transform=* | --program-transfor=* \
  856. | --program-transfo=* | --program-transf=* \
  857. | --program-trans=* | --program-tran=* \
  858. | --progr-tra=* | --program-tr=* | --program-t=*)
  859. program_transform_name=$ac_optarg ;;
  860. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  861. ac_prev=pdfdir ;;
  862. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  863. pdfdir=$ac_optarg ;;
  864. -psdir | --psdir | --psdi | --psd | --ps)
  865. ac_prev=psdir ;;
  866. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  867. psdir=$ac_optarg ;;
  868. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  869. | -silent | --silent | --silen | --sile | --sil)
  870. silent=yes ;;
  871. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  872. ac_prev=sbindir ;;
  873. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  874. | --sbi=* | --sb=*)
  875. sbindir=$ac_optarg ;;
  876. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  877. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  878. | --sharedst | --shareds | --shared | --share | --shar \
  879. | --sha | --sh)
  880. ac_prev=sharedstatedir ;;
  881. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  882. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  883. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  884. | --sha=* | --sh=*)
  885. sharedstatedir=$ac_optarg ;;
  886. -site | --site | --sit)
  887. ac_prev=site ;;
  888. -site=* | --site=* | --sit=*)
  889. site=$ac_optarg ;;
  890. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  891. ac_prev=srcdir ;;
  892. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  893. srcdir=$ac_optarg ;;
  894. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  895. | --syscon | --sysco | --sysc | --sys | --sy)
  896. ac_prev=sysconfdir ;;
  897. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  898. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  899. sysconfdir=$ac_optarg ;;
  900. -target | --target | --targe | --targ | --tar | --ta | --t)
  901. ac_prev=target_alias ;;
  902. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  903. target_alias=$ac_optarg ;;
  904. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  905. verbose=yes ;;
  906. -version | --version | --versio | --versi | --vers | -V)
  907. ac_init_version=: ;;
  908. -with-* | --with-*)
  909. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  910. # Reject names that are not valid shell variable names.
  911. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  912. as_fn_error $? "invalid package name: $ac_useropt"
  913. ac_useropt_orig=$ac_useropt
  914. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  915. case $ac_user_opts in
  916. *"
  917. "with_$ac_useropt"
  918. "*) ;;
  919. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  920. ac_unrecognized_sep=', ';;
  921. esac
  922. eval with_$ac_useropt=\$ac_optarg ;;
  923. -without-* | --without-*)
  924. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  925. # Reject names that are not valid shell variable names.
  926. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  927. as_fn_error $? "invalid package name: $ac_useropt"
  928. ac_useropt_orig=$ac_useropt
  929. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  930. case $ac_user_opts in
  931. *"
  932. "with_$ac_useropt"
  933. "*) ;;
  934. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  935. ac_unrecognized_sep=', ';;
  936. esac
  937. eval with_$ac_useropt=no ;;
  938. --x)
  939. # Obsolete; use --with-x.
  940. with_x=yes ;;
  941. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  942. | --x-incl | --x-inc | --x-in | --x-i)
  943. ac_prev=x_includes ;;
  944. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  945. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  946. x_includes=$ac_optarg ;;
  947. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  948. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  949. ac_prev=x_libraries ;;
  950. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  951. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  952. x_libraries=$ac_optarg ;;
  953. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  954. Try \`$0 --help' for more information"
  955. ;;
  956. *=*)
  957. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  958. # Reject names that are not valid shell variable names.
  959. case $ac_envvar in #(
  960. '' | [0-9]* | *[!_$as_cr_alnum]* )
  961. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  962. esac
  963. eval $ac_envvar=\$ac_optarg
  964. export $ac_envvar ;;
  965. *)
  966. # FIXME: should be removed in autoconf 3.0.
  967. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  968. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  969. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  970. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  971. ;;
  972. esac
  973. done
  974. if test -n "$ac_prev"; then
  975. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  976. as_fn_error $? "missing argument to $ac_option"
  977. fi
  978. if test -n "$ac_unrecognized_opts"; then
  979. case $enable_option_checking in
  980. no) ;;
  981. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  982. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  983. esac
  984. fi
  985. # Check all directory arguments for consistency.
  986. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  987. datadir sysconfdir sharedstatedir localstatedir includedir \
  988. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  989. libdir localedir mandir
  990. do
  991. eval ac_val=\$$ac_var
  992. # Remove trailing slashes.
  993. case $ac_val in
  994. */ )
  995. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  996. eval $ac_var=\$ac_val;;
  997. esac
  998. # Be sure to have absolute directory names.
  999. case $ac_val in
  1000. [\\/$]* | ?:[\\/]* ) continue;;
  1001. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1002. esac
  1003. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1004. done
  1005. # There might be people who depend on the old broken behavior: `$host'
  1006. # used to hold the argument of --host etc.
  1007. # FIXME: To remove some day.
  1008. build=$build_alias
  1009. host=$host_alias
  1010. target=$target_alias
  1011. # FIXME: To remove some day.
  1012. if test "x$host_alias" != x; then
  1013. if test "x$build_alias" = x; then
  1014. cross_compiling=maybe
  1015. elif test "x$build_alias" != "x$host_alias"; then
  1016. cross_compiling=yes
  1017. fi
  1018. fi
  1019. ac_tool_prefix=
  1020. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1021. test "$silent" = yes && exec 6>/dev/null
  1022. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1023. ac_ls_di=`ls -di .` &&
  1024. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1025. as_fn_error $? "working directory cannot be determined"
  1026. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1027. as_fn_error $? "pwd does not report name of working directory"
  1028. # Find the source files, if location was not specified.
  1029. if test -z "$srcdir"; then
  1030. ac_srcdir_defaulted=yes
  1031. # Try the directory containing this script, then the parent directory.
  1032. ac_confdir=`$as_dirname -- "$as_myself" ||
  1033. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1034. X"$as_myself" : 'X\(//\)[^/]' \| \
  1035. X"$as_myself" : 'X\(//\)$' \| \
  1036. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1037. $as_echo X"$as_myself" |
  1038. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1039. s//\1/
  1040. q
  1041. }
  1042. /^X\(\/\/\)[^/].*/{
  1043. s//\1/
  1044. q
  1045. }
  1046. /^X\(\/\/\)$/{
  1047. s//\1/
  1048. q
  1049. }
  1050. /^X\(\/\).*/{
  1051. s//\1/
  1052. q
  1053. }
  1054. s/.*/./; q'`
  1055. srcdir=$ac_confdir
  1056. if test ! -r "$srcdir/$ac_unique_file"; then
  1057. srcdir=..
  1058. fi
  1059. else
  1060. ac_srcdir_defaulted=no
  1061. fi
  1062. if test ! -r "$srcdir/$ac_unique_file"; then
  1063. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1064. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1065. fi
  1066. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1067. ac_abs_confdir=`(
  1068. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1069. pwd)`
  1070. # When building in place, set srcdir=.
  1071. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1072. srcdir=.
  1073. fi
  1074. # Remove unnecessary trailing slashes from srcdir.
  1075. # Double slashes in file names in object file debugging info
  1076. # mess up M-x gdb in Emacs.
  1077. case $srcdir in
  1078. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1079. esac
  1080. for ac_var in $ac_precious_vars; do
  1081. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1082. eval ac_env_${ac_var}_value=\$${ac_var}
  1083. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1084. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1085. done
  1086. #
  1087. # Report the --help message.
  1088. #
  1089. if test "$ac_init_help" = "long"; then
  1090. # Omit some internal or obsolete options to make the list less imposing.
  1091. # This message is too long to be a string in the A/UX 3.1 sh.
  1092. cat <<_ACEOF
  1093. \`configure' configures this package to adapt to many kinds of systems.
  1094. Usage: $0 [OPTION]... [VAR=VALUE]...
  1095. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1096. VAR=VALUE. See below for descriptions of some of the useful variables.
  1097. Defaults for the options are specified in brackets.
  1098. Configuration:
  1099. -h, --help display this help and exit
  1100. --help=short display options specific to this package
  1101. --help=recursive display the short help of all the included packages
  1102. -V, --version display version information and exit
  1103. -q, --quiet, --silent do not print \`checking ...' messages
  1104. --cache-file=FILE cache test results in FILE [disabled]
  1105. -C, --config-cache alias for \`--cache-file=config.cache'
  1106. -n, --no-create do not create output files
  1107. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1108. Installation directories:
  1109. --prefix=PREFIX install architecture-independent files in PREFIX
  1110. [$ac_default_prefix]
  1111. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1112. [PREFIX]
  1113. By default, \`make install' will install all the files in
  1114. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1115. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1116. for instance \`--prefix=\$HOME'.
  1117. For better control, use the options below.
  1118. Fine tuning of the installation directories:
  1119. --bindir=DIR user executables [EPREFIX/bin]
  1120. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1121. --libexecdir=DIR program executables [EPREFIX/libexec]
  1122. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1123. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1124. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1125. --libdir=DIR object code libraries [EPREFIX/lib]
  1126. --includedir=DIR C header files [PREFIX/include]
  1127. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1128. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1129. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1130. --infodir=DIR info documentation [DATAROOTDIR/info]
  1131. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1132. --mandir=DIR man documentation [DATAROOTDIR/man]
  1133. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1134. --htmldir=DIR html documentation [DOCDIR]
  1135. --dvidir=DIR dvi documentation [DOCDIR]
  1136. --pdfdir=DIR pdf documentation [DOCDIR]
  1137. --psdir=DIR ps documentation [DOCDIR]
  1138. _ACEOF
  1139. cat <<\_ACEOF
  1140. System types:
  1141. --build=BUILD configure for building on BUILD [guessed]
  1142. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1143. _ACEOF
  1144. fi
  1145. if test -n "$ac_init_help"; then
  1146. cat <<\_ACEOF
  1147. Optional Features:
  1148. --disable-option-checking ignore unrecognized --enable/--with options
  1149. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1150. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1151. --disable-sdltest Do not try to compile and run a test SDL program
  1152. Optional Packages:
  1153. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1154. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1155. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1156. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1157. Some influential environment variables:
  1158. CC C compiler command
  1159. CFLAGS C compiler flags
  1160. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1161. nonstandard directory <lib dir>
  1162. LIBS libraries to pass to the linker, e.g. -l<library>
  1163. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1164. you have headers in a nonstandard directory <include dir>
  1165. PKG_CONFIG path to pkg-config utility
  1166. PKG_CONFIG_PATH
  1167. directories to add to pkg-config's search path
  1168. PKG_CONFIG_LIBDIR
  1169. path overriding pkg-config's built-in search path
  1170. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1171. SDL_LIBS linker flags for SDL, overriding pkg-config
  1172. LIBUNWIND_CFLAGS
  1173. C compiler flags for LIBUNWIND, overriding pkg-config
  1174. LIBUNWIND_LIBS
  1175. linker flags for LIBUNWIND, overriding pkg-config
  1176. Use these variables to override the choices made by `configure' or to help
  1177. it to find libraries and programs with nonstandard names/locations.
  1178. Report bugs to the package provider.
  1179. _ACEOF
  1180. ac_status=$?
  1181. fi
  1182. if test "$ac_init_help" = "recursive"; then
  1183. # If there are subdirs, report their specific --help.
  1184. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1185. test -d "$ac_dir" ||
  1186. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1187. continue
  1188. ac_builddir=.
  1189. case "$ac_dir" in
  1190. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1191. *)
  1192. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1193. # A ".." for each directory in $ac_dir_suffix.
  1194. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1195. case $ac_top_builddir_sub in
  1196. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1197. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1198. esac ;;
  1199. esac
  1200. ac_abs_top_builddir=$ac_pwd
  1201. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1202. # for backward compatibility:
  1203. ac_top_builddir=$ac_top_build_prefix
  1204. case $srcdir in
  1205. .) # We are building in place.
  1206. ac_srcdir=.
  1207. ac_top_srcdir=$ac_top_builddir_sub
  1208. ac_abs_top_srcdir=$ac_pwd ;;
  1209. [\\/]* | ?:[\\/]* ) # Absolute name.
  1210. ac_srcdir=$srcdir$ac_dir_suffix;
  1211. ac_top_srcdir=$srcdir
  1212. ac_abs_top_srcdir=$srcdir ;;
  1213. *) # Relative name.
  1214. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1215. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1216. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1217. esac
  1218. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1219. cd "$ac_dir" || { ac_status=$?; continue; }
  1220. # Check for guested configure.
  1221. if test -f "$ac_srcdir/configure.gnu"; then
  1222. echo &&
  1223. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1224. elif test -f "$ac_srcdir/configure"; then
  1225. echo &&
  1226. $SHELL "$ac_srcdir/configure" --help=recursive
  1227. else
  1228. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1229. fi || ac_status=$?
  1230. cd "$ac_pwd" || { ac_status=$?; break; }
  1231. done
  1232. fi
  1233. test -n "$ac_init_help" && exit $ac_status
  1234. if $ac_init_version; then
  1235. cat <<\_ACEOF
  1236. configure
  1237. generated by GNU Autoconf 2.69
  1238. Copyright (C) 2012 Free Software Foundation, Inc.
  1239. This configure script is free software; the Free Software Foundation
  1240. gives unlimited permission to copy, distribute and modify it.
  1241. _ACEOF
  1242. exit
  1243. fi
  1244. ## ------------------------ ##
  1245. ## Autoconf initialization. ##
  1246. ## ------------------------ ##
  1247. # ac_fn_c_try_compile LINENO
  1248. # --------------------------
  1249. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1250. ac_fn_c_try_compile ()
  1251. {
  1252. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1253. rm -f conftest.$ac_objext
  1254. if { { ac_try="$ac_compile"
  1255. case "(($ac_try" in
  1256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1257. *) ac_try_echo=$ac_try;;
  1258. esac
  1259. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1260. $as_echo "$ac_try_echo"; } >&5
  1261. (eval "$ac_compile") 2>conftest.err
  1262. ac_status=$?
  1263. if test -s conftest.err; then
  1264. grep -v '^ *+' conftest.err >conftest.er1
  1265. cat conftest.er1 >&5
  1266. mv -f conftest.er1 conftest.err
  1267. fi
  1268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1269. test $ac_status = 0; } && {
  1270. test -z "$ac_c_werror_flag" ||
  1271. test ! -s conftest.err
  1272. } && test -s conftest.$ac_objext; then :
  1273. ac_retval=0
  1274. else
  1275. $as_echo "$as_me: failed program was:" >&5
  1276. sed 's/^/| /' conftest.$ac_ext >&5
  1277. ac_retval=1
  1278. fi
  1279. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1280. as_fn_set_status $ac_retval
  1281. } # ac_fn_c_try_compile
  1282. # ac_fn_c_try_run LINENO
  1283. # ----------------------
  1284. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1285. # that executables *can* be run.
  1286. ac_fn_c_try_run ()
  1287. {
  1288. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1289. if { { ac_try="$ac_link"
  1290. case "(($ac_try" in
  1291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1292. *) ac_try_echo=$ac_try;;
  1293. esac
  1294. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1295. $as_echo "$ac_try_echo"; } >&5
  1296. (eval "$ac_link") 2>&5
  1297. ac_status=$?
  1298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1299. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1300. { { case "(($ac_try" in
  1301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1302. *) ac_try_echo=$ac_try;;
  1303. esac
  1304. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1305. $as_echo "$ac_try_echo"; } >&5
  1306. (eval "$ac_try") 2>&5
  1307. ac_status=$?
  1308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1309. test $ac_status = 0; }; }; then :
  1310. ac_retval=0
  1311. else
  1312. $as_echo "$as_me: program exited with status $ac_status" >&5
  1313. $as_echo "$as_me: failed program was:" >&5
  1314. sed 's/^/| /' conftest.$ac_ext >&5
  1315. ac_retval=$ac_status
  1316. fi
  1317. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1318. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1319. as_fn_set_status $ac_retval
  1320. } # ac_fn_c_try_run
  1321. # ac_fn_c_try_link LINENO
  1322. # -----------------------
  1323. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1324. ac_fn_c_try_link ()
  1325. {
  1326. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1327. rm -f conftest.$ac_objext conftest$ac_exeext
  1328. if { { ac_try="$ac_link"
  1329. case "(($ac_try" in
  1330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1331. *) ac_try_echo=$ac_try;;
  1332. esac
  1333. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1334. $as_echo "$ac_try_echo"; } >&5
  1335. (eval "$ac_link") 2>conftest.err
  1336. ac_status=$?
  1337. if test -s conftest.err; then
  1338. grep -v '^ *+' conftest.err >conftest.er1
  1339. cat conftest.er1 >&5
  1340. mv -f conftest.er1 conftest.err
  1341. fi
  1342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1343. test $ac_status = 0; } && {
  1344. test -z "$ac_c_werror_flag" ||
  1345. test ! -s conftest.err
  1346. } && test -s conftest$ac_exeext && {
  1347. test "$cross_compiling" = yes ||
  1348. test -x conftest$ac_exeext
  1349. }; then :
  1350. ac_retval=0
  1351. else
  1352. $as_echo "$as_me: failed program was:" >&5
  1353. sed 's/^/| /' conftest.$ac_ext >&5
  1354. ac_retval=1
  1355. fi
  1356. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1357. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1358. # interfere with the next link command; also delete a directory that is
  1359. # left behind by Apple's compiler. We do this before executing the actions.
  1360. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1361. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1362. as_fn_set_status $ac_retval
  1363. } # ac_fn_c_try_link
  1364. cat >config.log <<_ACEOF
  1365. This file contains any messages produced by compilers while
  1366. running configure, to aid debugging if configure makes a mistake.
  1367. It was created by $as_me, which was
  1368. generated by GNU Autoconf 2.69. Invocation command line was
  1369. $ $0 $@
  1370. _ACEOF
  1371. exec 5>>config.log
  1372. {
  1373. cat <<_ASUNAME
  1374. ## --------- ##
  1375. ## Platform. ##
  1376. ## --------- ##
  1377. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1378. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1379. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1380. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1381. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1382. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1383. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1384. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1385. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1386. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1387. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1388. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1389. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1390. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1391. _ASUNAME
  1392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1393. for as_dir in $PATH
  1394. do
  1395. IFS=$as_save_IFS
  1396. test -z "$as_dir" && as_dir=.
  1397. $as_echo "PATH: $as_dir"
  1398. done
  1399. IFS=$as_save_IFS
  1400. } >&5
  1401. cat >&5 <<_ACEOF
  1402. ## ----------- ##
  1403. ## Core tests. ##
  1404. ## ----------- ##
  1405. _ACEOF
  1406. # Keep a trace of the command line.
  1407. # Strip out --no-create and --no-recursion so they do not pile up.
  1408. # Strip out --silent because we don't want to record it for future runs.
  1409. # Also quote any args containing shell meta-characters.
  1410. # Make two passes to allow for proper duplicate-argument suppression.
  1411. ac_configure_args=
  1412. ac_configure_args0=
  1413. ac_configure_args1=
  1414. ac_must_keep_next=false
  1415. for ac_pass in 1 2
  1416. do
  1417. for ac_arg
  1418. do
  1419. case $ac_arg in
  1420. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1421. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1422. | -silent | --silent | --silen | --sile | --sil)
  1423. continue ;;
  1424. *\'*)
  1425. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1426. esac
  1427. case $ac_pass in
  1428. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1429. 2)
  1430. as_fn_append ac_configure_args1 " '$ac_arg'"
  1431. if test $ac_must_keep_next = true; then
  1432. ac_must_keep_next=false # Got value, back to normal.
  1433. else
  1434. case $ac_arg in
  1435. *=* | --config-cache | -C | -disable-* | --disable-* \
  1436. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1437. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1438. | -with-* | --with-* | -without-* | --without-* | --x)
  1439. case "$ac_configure_args0 " in
  1440. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1441. esac
  1442. ;;
  1443. -* ) ac_must_keep_next=true ;;
  1444. esac
  1445. fi
  1446. as_fn_append ac_configure_args " '$ac_arg'"
  1447. ;;
  1448. esac
  1449. done
  1450. done
  1451. { ac_configure_args0=; unset ac_configure_args0;}
  1452. { ac_configure_args1=; unset ac_configure_args1;}
  1453. # When interrupted or exit'd, cleanup temporary files, and complete
  1454. # config.log. We remove comments because anyway the quotes in there
  1455. # would cause problems or look ugly.
  1456. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1457. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1458. trap 'exit_status=$?
  1459. # Save into config.log some information that might help in debugging.
  1460. {
  1461. echo
  1462. $as_echo "## ---------------- ##
  1463. ## Cache variables. ##
  1464. ## ---------------- ##"
  1465. echo
  1466. # The following way of writing the cache mishandles newlines in values,
  1467. (
  1468. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1469. eval ac_val=\$$ac_var
  1470. case $ac_val in #(
  1471. *${as_nl}*)
  1472. case $ac_var in #(
  1473. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1474. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1475. esac
  1476. case $ac_var in #(
  1477. _ | IFS | as_nl) ;; #(
  1478. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1479. *) { eval $ac_var=; unset $ac_var;} ;;
  1480. esac ;;
  1481. esac
  1482. done
  1483. (set) 2>&1 |
  1484. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1485. *${as_nl}ac_space=\ *)
  1486. sed -n \
  1487. "s/'\''/'\''\\\\'\'''\''/g;
  1488. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1489. ;; #(
  1490. *)
  1491. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1492. ;;
  1493. esac |
  1494. sort
  1495. )
  1496. echo
  1497. $as_echo "## ----------------- ##
  1498. ## Output variables. ##
  1499. ## ----------------- ##"
  1500. echo
  1501. for ac_var in $ac_subst_vars
  1502. do
  1503. eval ac_val=\$$ac_var
  1504. case $ac_val in
  1505. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1506. esac
  1507. $as_echo "$ac_var='\''$ac_val'\''"
  1508. done | sort
  1509. echo
  1510. if test -n "$ac_subst_files"; then
  1511. $as_echo "## ------------------- ##
  1512. ## File substitutions. ##
  1513. ## ------------------- ##"
  1514. echo
  1515. for ac_var in $ac_subst_files
  1516. do
  1517. eval ac_val=\$$ac_var
  1518. case $ac_val in
  1519. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1520. esac
  1521. $as_echo "$ac_var='\''$ac_val'\''"
  1522. done | sort
  1523. echo
  1524. fi
  1525. if test -s confdefs.h; then
  1526. $as_echo "## ----------- ##
  1527. ## confdefs.h. ##
  1528. ## ----------- ##"
  1529. echo
  1530. cat confdefs.h
  1531. echo
  1532. fi
  1533. test "$ac_signal" != 0 &&
  1534. $as_echo "$as_me: caught signal $ac_signal"
  1535. $as_echo "$as_me: exit $exit_status"
  1536. } >&5
  1537. rm -f core *.core core.conftest.* &&
  1538. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1539. exit $exit_status
  1540. ' 0
  1541. for ac_signal in 1 2 13 15; do
  1542. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1543. done
  1544. ac_signal=0
  1545. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1546. rm -f -r conftest* confdefs.h
  1547. $as_echo "/* confdefs.h */" > confdefs.h
  1548. # Predefined preprocessor variables.
  1549. cat >>confdefs.h <<_ACEOF
  1550. #define PACKAGE_NAME "$PACKAGE_NAME"
  1551. _ACEOF
  1552. cat >>confdefs.h <<_ACEOF
  1553. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1554. _ACEOF
  1555. cat >>confdefs.h <<_ACEOF
  1556. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1557. _ACEOF
  1558. cat >>confdefs.h <<_ACEOF
  1559. #define PACKAGE_STRING "$PACKAGE_STRING"
  1560. _ACEOF
  1561. cat >>confdefs.h <<_ACEOF
  1562. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1563. _ACEOF
  1564. cat >>confdefs.h <<_ACEOF
  1565. #define PACKAGE_URL "$PACKAGE_URL"
  1566. _ACEOF
  1567. # Let the site file select an alternate cache file if it wants to.
  1568. # Prefer an explicitly selected file to automatically selected ones.
  1569. ac_site_file1=NONE
  1570. ac_site_file2=NONE
  1571. if test -n "$CONFIG_SITE"; then
  1572. # We do not want a PATH search for config.site.
  1573. case $CONFIG_SITE in #((
  1574. -*) ac_site_file1=./$CONFIG_SITE;;
  1575. */*) ac_site_file1=$CONFIG_SITE;;
  1576. *) ac_site_file1=./$CONFIG_SITE;;
  1577. esac
  1578. elif test "x$prefix" != xNONE; then
  1579. ac_site_file1=$prefix/share/config.site
  1580. ac_site_file2=$prefix/etc/config.site
  1581. else
  1582. ac_site_file1=$ac_default_prefix/share/config.site
  1583. ac_site_file2=$ac_default_prefix/etc/config.site
  1584. fi
  1585. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1586. do
  1587. test "x$ac_site_file" = xNONE && continue
  1588. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1590. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1591. sed 's/^/| /' "$ac_site_file" >&5
  1592. . "$ac_site_file" \
  1593. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1594. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1595. as_fn_error $? "failed to load site script $ac_site_file
  1596. See \`config.log' for more details" "$LINENO" 5; }
  1597. fi
  1598. done
  1599. if test -r "$cache_file"; then
  1600. # Some versions of bash will fail to source /dev/null (special files
  1601. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1602. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1604. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1605. case $cache_file in
  1606. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1607. *) . "./$cache_file";;
  1608. esac
  1609. fi
  1610. else
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1612. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1613. >$cache_file
  1614. fi
  1615. # Check that the precious variables saved in the cache have kept the same
  1616. # value.
  1617. ac_cache_corrupted=false
  1618. for ac_var in $ac_precious_vars; do
  1619. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1620. eval ac_new_set=\$ac_env_${ac_var}_set
  1621. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1622. eval ac_new_val=\$ac_env_${ac_var}_value
  1623. case $ac_old_set,$ac_new_set in
  1624. set,)
  1625. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1626. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1627. ac_cache_corrupted=: ;;
  1628. ,set)
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1630. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1631. ac_cache_corrupted=: ;;
  1632. ,);;
  1633. *)
  1634. if test "x$ac_old_val" != "x$ac_new_val"; then
  1635. # differences in whitespace do not lead to failure.
  1636. ac_old_val_w=`echo x $ac_old_val`
  1637. ac_new_val_w=`echo x $ac_new_val`
  1638. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1640. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1641. ac_cache_corrupted=:
  1642. else
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1644. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1645. eval $ac_var=\$ac_old_val
  1646. fi
  1647. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1648. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1650. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1651. fi;;
  1652. esac
  1653. # Pass precious variables to config.status.
  1654. if test "$ac_new_set" = set; then
  1655. case $ac_new_val in
  1656. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1657. *) ac_arg=$ac_var=$ac_new_val ;;
  1658. esac
  1659. case " $ac_configure_args " in
  1660. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1661. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1662. esac
  1663. fi
  1664. done
  1665. if $ac_cache_corrupted; then
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1667. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1669. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1670. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1671. fi
  1672. ## -------------------- ##
  1673. ## Main body of script. ##
  1674. ## -------------------- ##
  1675. ac_ext=c
  1676. ac_cpp='$CPP $CPPFLAGS'
  1677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1680. ac_aux_dir=
  1681. for ac_dir in ../build-scripts "$srcdir"/../build-scripts; do
  1682. if test -f "$ac_dir/install-sh"; then
  1683. ac_aux_dir=$ac_dir
  1684. ac_install_sh="$ac_aux_dir/install-sh -c"
  1685. break
  1686. elif test -f "$ac_dir/install.sh"; then
  1687. ac_aux_dir=$ac_dir
  1688. ac_install_sh="$ac_aux_dir/install.sh -c"
  1689. break
  1690. elif test -f "$ac_dir/shtool"; then
  1691. ac_aux_dir=$ac_dir
  1692. ac_install_sh="$ac_aux_dir/shtool install -c"
  1693. break
  1694. fi
  1695. done
  1696. if test -z "$ac_aux_dir"; then
  1697. as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-scripts \"$srcdir\"/../build-scripts" "$LINENO" 5
  1698. fi
  1699. # These three variables are undocumented and unsupported,
  1700. # and are intended to be withdrawn in a future Autoconf release.
  1701. # They can cause serious problems if a builder's source tree is in a directory
  1702. # whose full name contains unusual characters.
  1703. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1704. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1705. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1706. # Make sure we can run config.sub.
  1707. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1708. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1710. $as_echo_n "checking build system type... " >&6; }
  1711. if ${ac_cv_build+:} false; then :
  1712. $as_echo_n "(cached) " >&6
  1713. else
  1714. ac_build_alias=$build_alias
  1715. test "x$ac_build_alias" = x &&
  1716. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1717. test "x$ac_build_alias" = x &&
  1718. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1719. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1720. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1721. fi
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1723. $as_echo "$ac_cv_build" >&6; }
  1724. case $ac_cv_build in
  1725. *-*-*) ;;
  1726. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1727. esac
  1728. build=$ac_cv_build
  1729. ac_save_IFS=$IFS; IFS='-'
  1730. set x $ac_cv_build
  1731. shift
  1732. build_cpu=$1
  1733. build_vendor=$2
  1734. shift; shift
  1735. # Remember, the first character of IFS is used to create $*,
  1736. # except with old shells:
  1737. build_os=$*
  1738. IFS=$ac_save_IFS
  1739. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1741. $as_echo_n "checking host system type... " >&6; }
  1742. if ${ac_cv_host+:} false; then :
  1743. $as_echo_n "(cached) " >&6
  1744. else
  1745. if test "x$host_alias" = x; then
  1746. ac_cv_host=$ac_cv_build
  1747. else
  1748. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1749. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1750. fi
  1751. fi
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1753. $as_echo "$ac_cv_host" >&6; }
  1754. case $ac_cv_host in
  1755. *-*-*) ;;
  1756. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1757. esac
  1758. host=$ac_cv_host
  1759. ac_save_IFS=$IFS; IFS='-'
  1760. set x $ac_cv_host
  1761. shift
  1762. host_cpu=$1
  1763. host_vendor=$2
  1764. shift; shift
  1765. # Remember, the first character of IFS is used to create $*,
  1766. # except with old shells:
  1767. host_os=$*
  1768. IFS=$ac_save_IFS
  1769. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1770. ac_ext=c
  1771. ac_cpp='$CPP $CPPFLAGS'
  1772. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1773. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1774. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1775. if test -n "$ac_tool_prefix"; then
  1776. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1777. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1779. $as_echo_n "checking for $ac_word... " >&6; }
  1780. if ${ac_cv_prog_CC+:} false; then :
  1781. $as_echo_n "(cached) " >&6
  1782. else
  1783. if test -n "$CC"; then
  1784. ac_cv_prog_CC="$CC" # Let the user override the test.
  1785. else
  1786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1787. for as_dir in $PATH
  1788. do
  1789. IFS=$as_save_IFS
  1790. test -z "$as_dir" && as_dir=.
  1791. for ac_exec_ext in '' $ac_executable_extensions; do
  1792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1793. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1795. break 2
  1796. fi
  1797. done
  1798. done
  1799. IFS=$as_save_IFS
  1800. fi
  1801. fi
  1802. CC=$ac_cv_prog_CC
  1803. if test -n "$CC"; then
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1805. $as_echo "$CC" >&6; }
  1806. else
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1808. $as_echo "no" >&6; }
  1809. fi
  1810. fi
  1811. if test -z "$ac_cv_prog_CC"; then
  1812. ac_ct_CC=$CC
  1813. # Extract the first word of "gcc", so it can be a program name with args.
  1814. set dummy gcc; ac_word=$2
  1815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1816. $as_echo_n "checking for $ac_word... " >&6; }
  1817. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1818. $as_echo_n "(cached) " >&6
  1819. else
  1820. if test -n "$ac_ct_CC"; then
  1821. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1822. else
  1823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1824. for as_dir in $PATH
  1825. do
  1826. IFS=$as_save_IFS
  1827. test -z "$as_dir" && as_dir=.
  1828. for ac_exec_ext in '' $ac_executable_extensions; do
  1829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1830. ac_cv_prog_ac_ct_CC="gcc"
  1831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1832. break 2
  1833. fi
  1834. done
  1835. done
  1836. IFS=$as_save_IFS
  1837. fi
  1838. fi
  1839. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1840. if test -n "$ac_ct_CC"; then
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1842. $as_echo "$ac_ct_CC" >&6; }
  1843. else
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1845. $as_echo "no" >&6; }
  1846. fi
  1847. if test "x$ac_ct_CC" = x; then
  1848. CC=""
  1849. else
  1850. case $cross_compiling:$ac_tool_warned in
  1851. yes:)
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1854. ac_tool_warned=yes ;;
  1855. esac
  1856. CC=$ac_ct_CC
  1857. fi
  1858. else
  1859. CC="$ac_cv_prog_CC"
  1860. fi
  1861. if test -z "$CC"; then
  1862. if test -n "$ac_tool_prefix"; then
  1863. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1864. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1866. $as_echo_n "checking for $ac_word... " >&6; }
  1867. if ${ac_cv_prog_CC+:} false; then :
  1868. $as_echo_n "(cached) " >&6
  1869. else
  1870. if test -n "$CC"; then
  1871. ac_cv_prog_CC="$CC" # Let the user override the test.
  1872. else
  1873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1874. for as_dir in $PATH
  1875. do
  1876. IFS=$as_save_IFS
  1877. test -z "$as_dir" && as_dir=.
  1878. for ac_exec_ext in '' $ac_executable_extensions; do
  1879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1880. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1882. break 2
  1883. fi
  1884. done
  1885. done
  1886. IFS=$as_save_IFS
  1887. fi
  1888. fi
  1889. CC=$ac_cv_prog_CC
  1890. if test -n "$CC"; then
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1892. $as_echo "$CC" >&6; }
  1893. else
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1895. $as_echo "no" >&6; }
  1896. fi
  1897. fi
  1898. fi
  1899. if test -z "$CC"; then
  1900. # Extract the first word of "cc", so it can be a program name with args.
  1901. set dummy cc; ac_word=$2
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1903. $as_echo_n "checking for $ac_word... " >&6; }
  1904. if ${ac_cv_prog_CC+:} false; then :
  1905. $as_echo_n "(cached) " >&6
  1906. else
  1907. if test -n "$CC"; then
  1908. ac_cv_prog_CC="$CC" # Let the user override the test.
  1909. else
  1910. ac_prog_rejected=no
  1911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1912. for as_dir in $PATH
  1913. do
  1914. IFS=$as_save_IFS
  1915. test -z "$as_dir" && as_dir=.
  1916. for ac_exec_ext in '' $ac_executable_extensions; do
  1917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1918. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1919. ac_prog_rejected=yes
  1920. continue
  1921. fi
  1922. ac_cv_prog_CC="cc"
  1923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1924. break 2
  1925. fi
  1926. done
  1927. done
  1928. IFS=$as_save_IFS
  1929. if test $ac_prog_rejected = yes; then
  1930. # We found a bogon in the path, so make sure we never use it.
  1931. set dummy $ac_cv_prog_CC
  1932. shift
  1933. if test $# != 0; then
  1934. # We chose a different compiler from the bogus one.
  1935. # However, it has the same basename, so the bogon will be chosen
  1936. # first if we set CC to just the basename; use the full file name.
  1937. shift
  1938. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1939. fi
  1940. fi
  1941. fi
  1942. fi
  1943. CC=$ac_cv_prog_CC
  1944. if test -n "$CC"; then
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1946. $as_echo "$CC" >&6; }
  1947. else
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1949. $as_echo "no" >&6; }
  1950. fi
  1951. fi
  1952. if test -z "$CC"; then
  1953. if test -n "$ac_tool_prefix"; then
  1954. for ac_prog in cl.exe
  1955. do
  1956. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1957. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1959. $as_echo_n "checking for $ac_word... " >&6; }
  1960. if ${ac_cv_prog_CC+:} false; then :
  1961. $as_echo_n "(cached) " >&6
  1962. else
  1963. if test -n "$CC"; then
  1964. ac_cv_prog_CC="$CC" # Let the user override the test.
  1965. else
  1966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1967. for as_dir in $PATH
  1968. do
  1969. IFS=$as_save_IFS
  1970. test -z "$as_dir" && as_dir=.
  1971. for ac_exec_ext in '' $ac_executable_extensions; do
  1972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1973. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1975. break 2
  1976. fi
  1977. done
  1978. done
  1979. IFS=$as_save_IFS
  1980. fi
  1981. fi
  1982. CC=$ac_cv_prog_CC
  1983. if test -n "$CC"; then
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1985. $as_echo "$CC" >&6; }
  1986. else
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1988. $as_echo "no" >&6; }
  1989. fi
  1990. test -n "$CC" && break
  1991. done
  1992. fi
  1993. if test -z "$CC"; then
  1994. ac_ct_CC=$CC
  1995. for ac_prog in cl.exe
  1996. do
  1997. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1998. set dummy $ac_prog; ac_word=$2
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2000. $as_echo_n "checking for $ac_word... " >&6; }
  2001. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2002. $as_echo_n "(cached) " >&6
  2003. else
  2004. if test -n "$ac_ct_CC"; then
  2005. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2006. else
  2007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2008. for as_dir in $PATH
  2009. do
  2010. IFS=$as_save_IFS
  2011. test -z "$as_dir" && as_dir=.
  2012. for ac_exec_ext in '' $ac_executable_extensions; do
  2013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2014. ac_cv_prog_ac_ct_CC="$ac_prog"
  2015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2016. break 2
  2017. fi
  2018. done
  2019. done
  2020. IFS=$as_save_IFS
  2021. fi
  2022. fi
  2023. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2024. if test -n "$ac_ct_CC"; then
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2026. $as_echo "$ac_ct_CC" >&6; }
  2027. else
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2029. $as_echo "no" >&6; }
  2030. fi
  2031. test -n "$ac_ct_CC" && break
  2032. done
  2033. if test "x$ac_ct_CC" = x; then
  2034. CC=""
  2035. else
  2036. case $cross_compiling:$ac_tool_warned in
  2037. yes:)
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2039. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2040. ac_tool_warned=yes ;;
  2041. esac
  2042. CC=$ac_ct_CC
  2043. fi
  2044. fi
  2045. fi
  2046. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2047. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2048. as_fn_error $? "no acceptable C compiler found in \$PATH
  2049. See \`config.log' for more details" "$LINENO" 5; }
  2050. # Provide some information about the compiler.
  2051. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2052. set X $ac_compile
  2053. ac_compiler=$2
  2054. for ac_option in --version -v -V -qversion; do
  2055. { { ac_try="$ac_compiler $ac_option >&5"
  2056. case "(($ac_try" in
  2057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2058. *) ac_try_echo=$ac_try;;
  2059. esac
  2060. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2061. $as_echo "$ac_try_echo"; } >&5
  2062. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2063. ac_status=$?
  2064. if test -s conftest.err; then
  2065. sed '10a\
  2066. ... rest of stderr output deleted ...
  2067. 10q' conftest.err >conftest.er1
  2068. cat conftest.er1 >&5
  2069. fi
  2070. rm -f conftest.er1 conftest.err
  2071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2072. test $ac_status = 0; }
  2073. done
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. int
  2077. main ()
  2078. {
  2079. ;
  2080. return 0;
  2081. }
  2082. _ACEOF
  2083. ac_clean_files_save=$ac_clean_files
  2084. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2085. # Try to create an executable without -o first, disregard a.out.
  2086. # It will help us diagnose broken compilers, and finding out an intuition
  2087. # of exeext.
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2089. $as_echo_n "checking whether the C compiler works... " >&6; }
  2090. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2091. # The possible output files:
  2092. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2093. ac_rmfiles=
  2094. for ac_file in $ac_files
  2095. do
  2096. case $ac_file in
  2097. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2098. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2099. esac
  2100. done
  2101. rm -f $ac_rmfiles
  2102. if { { ac_try="$ac_link_default"
  2103. case "(($ac_try" in
  2104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2105. *) ac_try_echo=$ac_try;;
  2106. esac
  2107. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2108. $as_echo "$ac_try_echo"; } >&5
  2109. (eval "$ac_link_default") 2>&5
  2110. ac_status=$?
  2111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2112. test $ac_status = 0; }; then :
  2113. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2114. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2115. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2116. # so that the user can short-circuit this test for compilers unknown to
  2117. # Autoconf.
  2118. for ac_file in $ac_files ''
  2119. do
  2120. test -f "$ac_file" || continue
  2121. case $ac_file in
  2122. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2123. ;;
  2124. [ab].out )
  2125. # We found the default executable, but exeext='' is most
  2126. # certainly right.
  2127. break;;
  2128. *.* )
  2129. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2130. then :; else
  2131. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2132. fi
  2133. # We set ac_cv_exeext here because the later test for it is not
  2134. # safe: cross compilers may not add the suffix if given an `-o'
  2135. # argument, so we may need to know it at that point already.
  2136. # Even if this section looks crufty: it has the advantage of
  2137. # actually working.
  2138. break;;
  2139. * )
  2140. break;;
  2141. esac
  2142. done
  2143. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2144. else
  2145. ac_file=''
  2146. fi
  2147. if test -z "$ac_file"; then :
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2149. $as_echo "no" >&6; }
  2150. $as_echo "$as_me: failed program was:" >&5
  2151. sed 's/^/| /' conftest.$ac_ext >&5
  2152. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2153. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2154. as_fn_error 77 "C compiler cannot create executables
  2155. See \`config.log' for more details" "$LINENO" 5; }
  2156. else
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2158. $as_echo "yes" >&6; }
  2159. fi
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2161. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2163. $as_echo "$ac_file" >&6; }
  2164. ac_exeext=$ac_cv_exeext
  2165. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2166. ac_clean_files=$ac_clean_files_save
  2167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2168. $as_echo_n "checking for suffix of executables... " >&6; }
  2169. if { { ac_try="$ac_link"
  2170. case "(($ac_try" in
  2171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2172. *) ac_try_echo=$ac_try;;
  2173. esac
  2174. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2175. $as_echo "$ac_try_echo"; } >&5
  2176. (eval "$ac_link") 2>&5
  2177. ac_status=$?
  2178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2179. test $ac_status = 0; }; then :
  2180. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2181. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2182. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2183. # `rm'.
  2184. for ac_file in conftest.exe conftest conftest.*; do
  2185. test -f "$ac_file" || continue
  2186. case $ac_file in
  2187. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2188. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2189. break;;
  2190. * ) break;;
  2191. esac
  2192. done
  2193. else
  2194. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2195. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2196. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2197. See \`config.log' for more details" "$LINENO" 5; }
  2198. fi
  2199. rm -f conftest conftest$ac_cv_exeext
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2201. $as_echo "$ac_cv_exeext" >&6; }
  2202. rm -f conftest.$ac_ext
  2203. EXEEXT=$ac_cv_exeext
  2204. ac_exeext=$EXEEXT
  2205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2206. /* end confdefs.h. */
  2207. #include <stdio.h>
  2208. int
  2209. main ()
  2210. {
  2211. FILE *f = fopen ("conftest.out", "w");
  2212. return ferror (f) || fclose (f) != 0;
  2213. ;
  2214. return 0;
  2215. }
  2216. _ACEOF
  2217. ac_clean_files="$ac_clean_files conftest.out"
  2218. # Check that the compiler produces executables we can run. If not, either
  2219. # the compiler is broken, or we cross compile.
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2221. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2222. if test "$cross_compiling" != yes; then
  2223. { { ac_try="$ac_link"
  2224. case "(($ac_try" in
  2225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2226. *) ac_try_echo=$ac_try;;
  2227. esac
  2228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2229. $as_echo "$ac_try_echo"; } >&5
  2230. (eval "$ac_link") 2>&5
  2231. ac_status=$?
  2232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2233. test $ac_status = 0; }
  2234. if { ac_try='./conftest$ac_cv_exeext'
  2235. { { case "(($ac_try" in
  2236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2237. *) ac_try_echo=$ac_try;;
  2238. esac
  2239. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2240. $as_echo "$ac_try_echo"; } >&5
  2241. (eval "$ac_try") 2>&5
  2242. ac_status=$?
  2243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2244. test $ac_status = 0; }; }; then
  2245. cross_compiling=no
  2246. else
  2247. if test "$cross_compiling" = maybe; then
  2248. cross_compiling=yes
  2249. else
  2250. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2252. as_fn_error $? "cannot run C compiled programs.
  2253. If you meant to cross compile, use \`--host'.
  2254. See \`config.log' for more details" "$LINENO" 5; }
  2255. fi
  2256. fi
  2257. fi
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2259. $as_echo "$cross_compiling" >&6; }
  2260. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2261. ac_clean_files=$ac_clean_files_save
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2263. $as_echo_n "checking for suffix of object files... " >&6; }
  2264. if ${ac_cv_objext+:} false; then :
  2265. $as_echo_n "(cached) " >&6
  2266. else
  2267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2268. /* end confdefs.h. */
  2269. int
  2270. main ()
  2271. {
  2272. ;
  2273. return 0;
  2274. }
  2275. _ACEOF
  2276. rm -f conftest.o conftest.obj
  2277. if { { ac_try="$ac_compile"
  2278. case "(($ac_try" in
  2279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2280. *) ac_try_echo=$ac_try;;
  2281. esac
  2282. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2283. $as_echo "$ac_try_echo"; } >&5
  2284. (eval "$ac_compile") 2>&5
  2285. ac_status=$?
  2286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2287. test $ac_status = 0; }; then :
  2288. for ac_file in conftest.o conftest.obj conftest.*; do
  2289. test -f "$ac_file" || continue;
  2290. case $ac_file in
  2291. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2292. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2293. break;;
  2294. esac
  2295. done
  2296. else
  2297. $as_echo "$as_me: failed program was:" >&5
  2298. sed 's/^/| /' conftest.$ac_ext >&5
  2299. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2300. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2301. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2302. See \`config.log' for more details" "$LINENO" 5; }
  2303. fi
  2304. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2305. fi
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2307. $as_echo "$ac_cv_objext" >&6; }
  2308. OBJEXT=$ac_cv_objext
  2309. ac_objext=$OBJEXT
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2311. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2312. if ${ac_cv_c_compiler_gnu+:} false; then :
  2313. $as_echo_n "(cached) " >&6
  2314. else
  2315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2316. /* end confdefs.h. */
  2317. int
  2318. main ()
  2319. {
  2320. #ifndef __GNUC__
  2321. choke me
  2322. #endif
  2323. ;
  2324. return 0;
  2325. }
  2326. _ACEOF
  2327. if ac_fn_c_try_compile "$LINENO"; then :
  2328. ac_compiler_gnu=yes
  2329. else
  2330. ac_compiler_gnu=no
  2331. fi
  2332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2333. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2334. fi
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2336. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2337. if test $ac_compiler_gnu = yes; then
  2338. GCC=yes
  2339. else
  2340. GCC=
  2341. fi
  2342. ac_test_CFLAGS=${CFLAGS+set}
  2343. ac_save_CFLAGS=$CFLAGS
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2345. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2346. if ${ac_cv_prog_cc_g+:} false; then :
  2347. $as_echo_n "(cached) " >&6
  2348. else
  2349. ac_save_c_werror_flag=$ac_c_werror_flag
  2350. ac_c_werror_flag=yes
  2351. ac_cv_prog_cc_g=no
  2352. CFLAGS="-g"
  2353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2354. /* end confdefs.h. */
  2355. int
  2356. main ()
  2357. {
  2358. ;
  2359. return 0;
  2360. }
  2361. _ACEOF
  2362. if ac_fn_c_try_compile "$LINENO"; then :
  2363. ac_cv_prog_cc_g=yes
  2364. else
  2365. CFLAGS=""
  2366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2367. /* end confdefs.h. */
  2368. int
  2369. main ()
  2370. {
  2371. ;
  2372. return 0;
  2373. }
  2374. _ACEOF
  2375. if ac_fn_c_try_compile "$LINENO"; then :
  2376. else
  2377. ac_c_werror_flag=$ac_save_c_werror_flag
  2378. CFLAGS="-g"
  2379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2380. /* end confdefs.h. */
  2381. int
  2382. main ()
  2383. {
  2384. ;
  2385. return 0;
  2386. }
  2387. _ACEOF
  2388. if ac_fn_c_try_compile "$LINENO"; then :
  2389. ac_cv_prog_cc_g=yes
  2390. fi
  2391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2392. fi
  2393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2394. fi
  2395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2396. ac_c_werror_flag=$ac_save_c_werror_flag
  2397. fi
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2399. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2400. if test "$ac_test_CFLAGS" = set; then
  2401. CFLAGS=$ac_save_CFLAGS
  2402. elif test $ac_cv_prog_cc_g = yes; then
  2403. if test "$GCC" = yes; then
  2404. CFLAGS="-g -O2"
  2405. else
  2406. CFLAGS="-g"
  2407. fi
  2408. else
  2409. if test "$GCC" = yes; then
  2410. CFLAGS="-O2"
  2411. else
  2412. CFLAGS=
  2413. fi
  2414. fi
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2416. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2417. if ${ac_cv_prog_cc_c89+:} false; then :
  2418. $as_echo_n "(cached) " >&6
  2419. else
  2420. ac_cv_prog_cc_c89=no
  2421. ac_save_CC=$CC
  2422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2423. /* end confdefs.h. */
  2424. #include <stdarg.h>
  2425. #include <stdio.h>
  2426. struct stat;
  2427. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2428. struct buf { int x; };
  2429. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2430. static char *e (p, i)
  2431. char **p;
  2432. int i;
  2433. {
  2434. return p[i];
  2435. }
  2436. static char *f (char * (*g) (char **, int), char **p, ...)
  2437. {
  2438. char *s;
  2439. va_list v;
  2440. va_start (v,p);
  2441. s = g (p, va_arg (v,int));
  2442. va_end (v);
  2443. return s;
  2444. }
  2445. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2446. function prototypes and stuff, but not '\xHH' hex character constants.
  2447. These don't provoke an error unfortunately, instead are silently treated
  2448. as 'x'. The following induces an error, until -std is added to get
  2449. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2450. array size at least. It's necessary to write '\x00'==0 to get something
  2451. that's true only with -std. */
  2452. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2453. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2454. inside strings and character constants. */
  2455. #define FOO(x) 'x'
  2456. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2457. int test (int i, double x);
  2458. struct s1 {int (*f) (int a);};
  2459. struct s2 {int (*f) (double a);};
  2460. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2461. int argc;
  2462. char **argv;
  2463. int
  2464. main ()
  2465. {
  2466. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2467. ;
  2468. return 0;
  2469. }
  2470. _ACEOF
  2471. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2472. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2473. do
  2474. CC="$ac_save_CC $ac_arg"
  2475. if ac_fn_c_try_compile "$LINENO"; then :
  2476. ac_cv_prog_cc_c89=$ac_arg
  2477. fi
  2478. rm -f core conftest.err conftest.$ac_objext
  2479. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2480. done
  2481. rm -f conftest.$ac_ext
  2482. CC=$ac_save_CC
  2483. fi
  2484. # AC_CACHE_VAL
  2485. case "x$ac_cv_prog_cc_c89" in
  2486. x)
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2488. $as_echo "none needed" >&6; } ;;
  2489. xno)
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2491. $as_echo "unsupported" >&6; } ;;
  2492. *)
  2493. CC="$CC $ac_cv_prog_cc_c89"
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2495. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2496. esac
  2497. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2498. fi
  2499. ac_ext=c
  2500. ac_cpp='$CPP $CPPFLAGS'
  2501. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2502. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2503. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2504. case "$host" in
  2505. *-*-cygwin* | *-*-mingw*)
  2506. EXE=".exe"
  2507. EXTRALIB="-lshlwapi"
  2508. ;;
  2509. *)
  2510. EXE=""
  2511. EXTRALIB=""
  2512. ;;
  2513. esac
  2514. SDL_VERSION=2.0.0
  2515. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  2516. if test -n "$ac_tool_prefix"; then
  2517. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  2518. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2520. $as_echo_n "checking for $ac_word... " >&6; }
  2521. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  2522. $as_echo_n "(cached) " >&6
  2523. else
  2524. case $PKG_CONFIG in
  2525. [\\/]* | ?:[\\/]*)
  2526. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  2527. ;;
  2528. *)
  2529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2530. for as_dir in $PATH
  2531. do
  2532. IFS=$as_save_IFS
  2533. test -z "$as_dir" && as_dir=.
  2534. for ac_exec_ext in '' $ac_executable_extensions; do
  2535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2536. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2538. break 2
  2539. fi
  2540. done
  2541. done
  2542. IFS=$as_save_IFS
  2543. ;;
  2544. esac
  2545. fi
  2546. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  2547. if test -n "$PKG_CONFIG"; then
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  2549. $as_echo "$PKG_CONFIG" >&6; }
  2550. else
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2552. $as_echo "no" >&6; }
  2553. fi
  2554. fi
  2555. if test -z "$ac_cv_path_PKG_CONFIG"; then
  2556. ac_pt_PKG_CONFIG=$PKG_CONFIG
  2557. # Extract the first word of "pkg-config", so it can be a program name with args.
  2558. set dummy pkg-config; ac_word=$2
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2560. $as_echo_n "checking for $ac_word... " >&6; }
  2561. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. case $ac_pt_PKG_CONFIG in
  2565. [\\/]* | ?:[\\/]*)
  2566. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  2567. ;;
  2568. *)
  2569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2570. for as_dir in $PATH
  2571. do
  2572. IFS=$as_save_IFS
  2573. test -z "$as_dir" && as_dir=.
  2574. for ac_exec_ext in '' $ac_executable_extensions; do
  2575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2576. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2578. break 2
  2579. fi
  2580. done
  2581. done
  2582. IFS=$as_save_IFS
  2583. ;;
  2584. esac
  2585. fi
  2586. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  2587. if test -n "$ac_pt_PKG_CONFIG"; then
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  2589. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  2590. else
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2592. $as_echo "no" >&6; }
  2593. fi
  2594. if test "x$ac_pt_PKG_CONFIG" = x; then
  2595. PKG_CONFIG=""
  2596. else
  2597. case $cross_compiling:$ac_tool_warned in
  2598. yes:)
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2600. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2601. ac_tool_warned=yes ;;
  2602. esac
  2603. PKG_CONFIG=$ac_pt_PKG_CONFIG
  2604. fi
  2605. else
  2606. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  2607. fi
  2608. fi
  2609. if test -n "$PKG_CONFIG"; then
  2610. _pkg_min_version=0.9.0
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  2612. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  2613. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2615. $as_echo "yes" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. PKG_CONFIG=""
  2620. fi
  2621. fi
  2622. # Check whether --with-sdl-prefix was given.
  2623. if test "${with_sdl_prefix+set}" = set; then :
  2624. withval=$with_sdl_prefix; sdl_prefix="$withval"
  2625. else
  2626. sdl_prefix=""
  2627. fi
  2628. # Check whether --with-sdl-exec-prefix was given.
  2629. if test "${with_sdl_exec_prefix+set}" = set; then :
  2630. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  2631. else
  2632. sdl_exec_prefix=""
  2633. fi
  2634. # Check whether --enable-sdltest was given.
  2635. if test "${enable_sdltest+set}" = set; then :
  2636. enableval=$enable_sdltest;
  2637. else
  2638. enable_sdltest=yes
  2639. fi
  2640. min_sdl_version=$SDL_VERSION
  2641. if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
  2642. pkg_failed=no
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl2 >= $min_sdl_version" >&5
  2644. $as_echo_n "checking for sdl2 >= $min_sdl_version... " >&6; }
  2645. if test -n "$SDL_CFLAGS"; then
  2646. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  2647. elif test -n "$PKG_CONFIG"; then
  2648. if test -n "$PKG_CONFIG" && \
  2649. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  2650. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  2651. ac_status=$?
  2652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2653. test $ac_status = 0; }; then
  2654. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
  2655. else
  2656. pkg_failed=yes
  2657. fi
  2658. else
  2659. pkg_failed=untried
  2660. fi
  2661. if test -n "$SDL_LIBS"; then
  2662. pkg_cv_SDL_LIBS="$SDL_LIBS"
  2663. elif test -n "$PKG_CONFIG"; then
  2664. if test -n "$PKG_CONFIG" && \
  2665. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  2666. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  2667. ac_status=$?
  2668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2669. test $ac_status = 0; }; then
  2670. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
  2671. else
  2672. pkg_failed=yes
  2673. fi
  2674. else
  2675. pkg_failed=untried
  2676. fi
  2677. if test $pkg_failed = yes; then
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2679. $as_echo "no" >&6; }
  2680. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  2681. _pkg_short_errors_supported=yes
  2682. else
  2683. _pkg_short_errors_supported=no
  2684. fi
  2685. if test $_pkg_short_errors_supported = yes; then
  2686. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl2 >= $min_sdl_version" 2>&1`
  2687. else
  2688. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl2 >= $min_sdl_version" 2>&1`
  2689. fi
  2690. # Put the nasty error message in config.log where it belongs
  2691. echo "$SDL_PKG_ERRORS" >&5
  2692. sdl_pc=no
  2693. elif test $pkg_failed = untried; then
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2695. $as_echo "no" >&6; }
  2696. sdl_pc=no
  2697. else
  2698. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  2699. SDL_LIBS=$pkg_cv_SDL_LIBS
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2701. $as_echo "yes" >&6; }
  2702. sdl_pc=yes
  2703. fi
  2704. else
  2705. sdl_pc=no
  2706. if test x$sdl_exec_prefix != x ; then
  2707. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  2708. if test x${SDL2_CONFIG+set} != xset ; then
  2709. SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
  2710. fi
  2711. fi
  2712. if test x$sdl_prefix != x ; then
  2713. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  2714. if test x${SDL2_CONFIG+set} != xset ; then
  2715. SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
  2716. fi
  2717. fi
  2718. fi
  2719. if test "x$sdl_pc" = xyes ; then
  2720. no_sdl=""
  2721. SDL2_CONFIG="pkg-config sdl2"
  2722. else
  2723. as_save_PATH="$PATH"
  2724. if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
  2725. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  2726. fi
  2727. # Extract the first word of "sdl2-config", so it can be a program name with args.
  2728. set dummy sdl2-config; ac_word=$2
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2730. $as_echo_n "checking for $ac_word... " >&6; }
  2731. if ${ac_cv_path_SDL2_CONFIG+:} false; then :
  2732. $as_echo_n "(cached) " >&6
  2733. else
  2734. case $SDL2_CONFIG in
  2735. [\\/]* | ?:[\\/]*)
  2736. ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
  2737. ;;
  2738. *)
  2739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2740. for as_dir in $PATH
  2741. do
  2742. IFS=$as_save_IFS
  2743. test -z "$as_dir" && as_dir=.
  2744. for ac_exec_ext in '' $ac_executable_extensions; do
  2745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2746. ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2748. break 2
  2749. fi
  2750. done
  2751. done
  2752. IFS=$as_save_IFS
  2753. test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
  2754. ;;
  2755. esac
  2756. fi
  2757. SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
  2758. if test -n "$SDL2_CONFIG"; then
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
  2760. $as_echo "$SDL2_CONFIG" >&6; }
  2761. else
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2763. $as_echo "no" >&6; }
  2764. fi
  2765. PATH="$as_save_PATH"
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  2767. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  2768. no_sdl=""
  2769. if test "$SDL2_CONFIG" = "no" ; then
  2770. no_sdl=yes
  2771. else
  2772. SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
  2773. SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
  2774. sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
  2775. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2776. sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
  2777. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2778. sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
  2779. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2780. if test "x$enable_sdltest" = "xyes" ; then
  2781. ac_save_CFLAGS="$CFLAGS"
  2782. ac_save_CXXFLAGS="$CXXFLAGS"
  2783. ac_save_LIBS="$LIBS"
  2784. CFLAGS="$CFLAGS $SDL_CFLAGS"
  2785. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  2786. LIBS="$LIBS $SDL_LIBS"
  2787. rm -f conf.sdltest
  2788. if test "$cross_compiling" = yes; then :
  2789. echo $ac_n "cross compiling; assumed OK... $ac_c"
  2790. else
  2791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2792. /* end confdefs.h. */
  2793. #include <stdio.h>
  2794. #include <stdlib.h>
  2795. #include "SDL.h"
  2796. int main (int argc, char *argv[])
  2797. {
  2798. int major, minor, micro;
  2799. FILE *fp = fopen("conf.sdltest", "w");
  2800. if (fp) fclose(fp);
  2801. if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  2802. printf("%s, bad version string\n", "$min_sdl_version");
  2803. exit(1);
  2804. }
  2805. if (($sdl_major_version > major) ||
  2806. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  2807. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  2808. {
  2809. return 0;
  2810. }
  2811. else
  2812. {
  2813. printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  2814. printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
  2815. printf("*** best to upgrade to the required version.\n");
  2816. printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
  2817. printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
  2818. printf("*** config.cache before re-running configure\n");
  2819. return 1;
  2820. }
  2821. }
  2822. _ACEOF
  2823. if ac_fn_c_try_run "$LINENO"; then :
  2824. else
  2825. no_sdl=yes
  2826. fi
  2827. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2828. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2829. fi
  2830. CFLAGS="$ac_save_CFLAGS"
  2831. CXXFLAGS="$ac_save_CXXFLAGS"
  2832. LIBS="$ac_save_LIBS"
  2833. fi
  2834. fi
  2835. if test "x$no_sdl" = x ; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2837. $as_echo "yes" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. fi
  2843. if test "x$no_sdl" = x ; then
  2844. :
  2845. else
  2846. if test "$SDL2_CONFIG" = "no" ; then
  2847. echo "*** The sdl2-config script installed by SDL could not be found"
  2848. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  2849. echo "*** your path, or set the SDL2_CONFIG environment variable to the"
  2850. echo "*** full path to sdl2-config."
  2851. else
  2852. if test -f conf.sdltest ; then
  2853. :
  2854. else
  2855. echo "*** Could not run SDL test program, checking why..."
  2856. CFLAGS="$CFLAGS $SDL_CFLAGS"
  2857. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  2858. LIBS="$LIBS $SDL_LIBS"
  2859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2860. /* end confdefs.h. */
  2861. #include <stdio.h>
  2862. #include "SDL.h"
  2863. int main(int argc, char *argv[])
  2864. { return 0; }
  2865. #undef main
  2866. #define main K_and_R_C_main
  2867. int
  2868. main ()
  2869. {
  2870. return 0;
  2871. ;
  2872. return 0;
  2873. }
  2874. _ACEOF
  2875. if ac_fn_c_try_link "$LINENO"; then :
  2876. echo "*** The test program compiled, but did not run. This usually means"
  2877. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  2878. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  2879. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  2880. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  2881. echo "*** is required on your system"
  2882. echo "***"
  2883. echo "*** If you have an old version installed, it is best to remove it, although"
  2884. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  2885. else
  2886. echo "*** The test program failed to compile or link. See the file config.log for the"
  2887. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  2888. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  2889. echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
  2890. fi
  2891. rm -f core conftest.err conftest.$ac_objext \
  2892. conftest$ac_exeext conftest.$ac_ext
  2893. CFLAGS="$ac_save_CFLAGS"
  2894. CXXFLAGS="$ac_save_CXXFLAGS"
  2895. LIBS="$ac_save_LIBS"
  2896. fi
  2897. fi
  2898. SDL_CFLAGS=""
  2899. SDL_LIBS=""
  2900. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  2901. fi
  2902. rm -f conf.sdltest
  2903. CFLAGS="$CFLAGS $SDL_CFLAGS"
  2904. LIBS="$LIBS -lSDL2_test $SDL_LIBS $EXTRALIB"
  2905. pkg_failed=no
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5
  2907. $as_echo_n "checking for libunwind... " >&6; }
  2908. if test -n "$LIBUNWIND_CFLAGS"; then
  2909. pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
  2910. elif test -n "$PKG_CONFIG"; then
  2911. if test -n "$PKG_CONFIG" && \
  2912. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
  2913. ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
  2914. ac_status=$?
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2916. test $ac_status = 0; }; then
  2917. pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
  2918. else
  2919. pkg_failed=yes
  2920. fi
  2921. else
  2922. pkg_failed=untried
  2923. fi
  2924. if test -n "$LIBUNWIND_LIBS"; then
  2925. pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
  2926. elif test -n "$PKG_CONFIG"; then
  2927. if test -n "$PKG_CONFIG" && \
  2928. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
  2929. ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
  2930. ac_status=$?
  2931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2932. test $ac_status = 0; }; then
  2933. pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
  2934. else
  2935. pkg_failed=yes
  2936. fi
  2937. else
  2938. pkg_failed=untried
  2939. fi
  2940. if test $pkg_failed = yes; then
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2942. $as_echo "no" >&6; }
  2943. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  2944. _pkg_short_errors_supported=yes
  2945. else
  2946. _pkg_short_errors_supported=no
  2947. fi
  2948. if test $_pkg_short_errors_supported = yes; then
  2949. LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libunwind" 2>&1`
  2950. else
  2951. LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors "libunwind" 2>&1`
  2952. fi
  2953. # Put the nasty error message in config.log where it belongs
  2954. echo "$LIBUNWIND_PKG_ERRORS" >&5
  2955. have_libunwind=no
  2956. elif test $pkg_failed = untried; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2958. $as_echo "no" >&6; }
  2959. have_libunwind=no
  2960. else
  2961. LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
  2962. LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2964. $as_echo "yes" >&6; }
  2965. have_libunwind=yes
  2966. fi
  2967. if test x$have_libunwind = xyes ; then
  2968. LIBS="$LIBS $LIBUNWIND_LIBS"
  2969. fi
  2970. ac_config_files="$ac_config_files Makefile"
  2971. cat >confcache <<\_ACEOF
  2972. # This file is a shell script that caches the results of configure
  2973. # tests run on this system so they can be shared between configure
  2974. # scripts and configure runs, see configure's option --config-cache.
  2975. # It is not useful on other systems. If it contains results you don't
  2976. # want to keep, you may remove or edit it.
  2977. #
  2978. # config.status only pays attention to the cache file if you give it
  2979. # the --recheck option to rerun configure.
  2980. #
  2981. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2982. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2983. # following values.
  2984. _ACEOF
  2985. # The following way of writing the cache mishandles newlines in values,
  2986. # but we know of no workaround that is simple, portable, and efficient.
  2987. # So, we kill variables containing newlines.
  2988. # Ultrix sh set writes to stderr and can't be redirected directly,
  2989. # and sets the high bit in the cache file unless we assign to the vars.
  2990. (
  2991. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  2992. eval ac_val=\$$ac_var
  2993. case $ac_val in #(
  2994. *${as_nl}*)
  2995. case $ac_var in #(
  2996. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2997. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2998. esac
  2999. case $ac_var in #(
  3000. _ | IFS | as_nl) ;; #(
  3001. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3002. *) { eval $ac_var=; unset $ac_var;} ;;
  3003. esac ;;
  3004. esac
  3005. done
  3006. (set) 2>&1 |
  3007. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3008. *${as_nl}ac_space=\ *)
  3009. # `set' does not quote correctly, so add quotes: double-quote
  3010. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3011. sed -n \
  3012. "s/'/'\\\\''/g;
  3013. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3014. ;; #(
  3015. *)
  3016. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3017. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3018. ;;
  3019. esac |
  3020. sort
  3021. ) |
  3022. sed '
  3023. /^ac_cv_env_/b end
  3024. t clear
  3025. :clear
  3026. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3027. t end
  3028. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3029. :end' >>confcache
  3030. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3031. if test -w "$cache_file"; then
  3032. if test "x$cache_file" != "x/dev/null"; then
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3034. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3035. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3036. cat confcache >"$cache_file"
  3037. else
  3038. case $cache_file in #(
  3039. */* | ?:*)
  3040. mv -f confcache "$cache_file"$$ &&
  3041. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3042. *)
  3043. mv -f confcache "$cache_file" ;;
  3044. esac
  3045. fi
  3046. fi
  3047. else
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3049. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3050. fi
  3051. fi
  3052. rm -f confcache
  3053. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3054. # Let make expand exec_prefix.
  3055. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3056. # Transform confdefs.h into DEFS.
  3057. # Protect against shell expansion while executing Makefile rules.
  3058. # Protect against Makefile macro expansion.
  3059. #
  3060. # If the first sed substitution is executed (which looks for macros that
  3061. # take arguments), then branch to the quote section. Otherwise,
  3062. # look for a macro that doesn't take arguments.
  3063. ac_script='
  3064. :mline
  3065. /\\$/{
  3066. N
  3067. s,\\\n,,
  3068. b mline
  3069. }
  3070. t clear
  3071. :clear
  3072. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  3073. t quote
  3074. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  3075. t quote
  3076. b any
  3077. :quote
  3078. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  3079. s/\[/\\&/g
  3080. s/\]/\\&/g
  3081. s/\$/$$/g
  3082. H
  3083. :any
  3084. ${
  3085. g
  3086. s/^\n//
  3087. s/\n/ /g
  3088. p
  3089. }
  3090. '
  3091. DEFS=`sed -n "$ac_script" confdefs.h`
  3092. ac_libobjs=
  3093. ac_ltlibobjs=
  3094. U=
  3095. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3096. # 1. Remove the extension, and $U if already installed.
  3097. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3098. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3099. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3100. # will be set to the directory where LIBOBJS objects are built.
  3101. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3102. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  3103. done
  3104. LIBOBJS=$ac_libobjs
  3105. LTLIBOBJS=$ac_ltlibobjs
  3106. : "${CONFIG_STATUS=./config.status}"
  3107. ac_write_fail=0
  3108. ac_clean_files_save=$ac_clean_files
  3109. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  3111. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3112. as_write_fail=0
  3113. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  3114. #! $SHELL
  3115. # Generated by $as_me.
  3116. # Run this file to recreate the current configuration.
  3117. # Compiler output produced by configure, useful for debugging
  3118. # configure, is in config.log if it exists.
  3119. debug=false
  3120. ac_cs_recheck=false
  3121. ac_cs_silent=false
  3122. SHELL=\${CONFIG_SHELL-$SHELL}
  3123. export SHELL
  3124. _ASEOF
  3125. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  3126. ## -------------------- ##
  3127. ## M4sh Initialization. ##
  3128. ## -------------------- ##
  3129. # Be more Bourne compatible
  3130. DUALCASE=1; export DUALCASE # for MKS sh
  3131. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  3132. emulate sh
  3133. NULLCMD=:
  3134. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3135. # is contrary to our usage. Disable this feature.
  3136. alias -g '${1+"$@"}'='"$@"'
  3137. setopt NO_GLOB_SUBST
  3138. else
  3139. case `(set -o) 2>/dev/null` in #(
  3140. *posix*) :
  3141. set -o posix ;; #(
  3142. *) :
  3143. ;;
  3144. esac
  3145. fi
  3146. as_nl='
  3147. '
  3148. export as_nl
  3149. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  3150. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3151. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  3152. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  3153. # Prefer a ksh shell builtin over an external printf program on Solaris,
  3154. # but without wasting forks for bash or zsh.
  3155. if test -z "$BASH_VERSION$ZSH_VERSION" \
  3156. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  3157. as_echo='print -r --'
  3158. as_echo_n='print -rn --'
  3159. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  3160. as_echo='printf %s\n'
  3161. as_echo_n='printf %s'
  3162. else
  3163. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  3164. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  3165. as_echo_n='/usr/ucb/echo -n'
  3166. else
  3167. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  3168. as_echo_n_body='eval
  3169. arg=$1;
  3170. case $arg in #(
  3171. *"$as_nl"*)
  3172. expr "X$arg" : "X\\(.*\\)$as_nl";
  3173. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  3174. esac;
  3175. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  3176. '
  3177. export as_echo_n_body
  3178. as_echo_n='sh -c $as_echo_n_body as_echo'
  3179. fi
  3180. export as_echo_body
  3181. as_echo='sh -c $as_echo_body as_echo'
  3182. fi
  3183. # The user is always right.
  3184. if test "${PATH_SEPARATOR+set}" != set; then
  3185. PATH_SEPARATOR=:
  3186. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3187. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3188. PATH_SEPARATOR=';'
  3189. }
  3190. fi
  3191. # IFS
  3192. # We need space, tab and new line, in precisely that order. Quoting is
  3193. # there to prevent editors from complaining about space-tab.
  3194. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3195. # splitting by setting IFS to empty value.)
  3196. IFS=" "" $as_nl"
  3197. # Find who we are. Look in the path if we contain no directory separator.
  3198. as_myself=
  3199. case $0 in #((
  3200. *[\\/]* ) as_myself=$0 ;;
  3201. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3202. for as_dir in $PATH
  3203. do
  3204. IFS=$as_save_IFS
  3205. test -z "$as_dir" && as_dir=.
  3206. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3207. done
  3208. IFS=$as_save_IFS
  3209. ;;
  3210. esac
  3211. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3212. # in which case we are not to be found in the path.
  3213. if test "x$as_myself" = x; then
  3214. as_myself=$0
  3215. fi
  3216. if test ! -f "$as_myself"; then
  3217. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3218. exit 1
  3219. fi
  3220. # Unset variables that we do not need and which cause bugs (e.g. in
  3221. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  3222. # suppresses any "Segmentation fault" message there. '((' could
  3223. # trigger a bug in pdksh 5.2.14.
  3224. for as_var in BASH_ENV ENV MAIL MAILPATH
  3225. do eval test x\${$as_var+set} = xset \
  3226. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  3227. done
  3228. PS1='$ '
  3229. PS2='> '
  3230. PS4='+ '
  3231. # NLS nuisances.
  3232. LC_ALL=C
  3233. export LC_ALL
  3234. LANGUAGE=C
  3235. export LANGUAGE
  3236. # CDPATH.
  3237. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3238. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  3239. # ----------------------------------------
  3240. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  3241. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  3242. # script with STATUS, using 1 if that was 0.
  3243. as_fn_error ()
  3244. {
  3245. as_status=$1; test $as_status -eq 0 && as_status=1
  3246. if test "$4"; then
  3247. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3248. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  3249. fi
  3250. $as_echo "$as_me: error: $2" >&2
  3251. as_fn_exit $as_status
  3252. } # as_fn_error
  3253. # as_fn_set_status STATUS
  3254. # -----------------------
  3255. # Set $? to STATUS, without forking.
  3256. as_fn_set_status ()
  3257. {
  3258. return $1
  3259. } # as_fn_set_status
  3260. # as_fn_exit STATUS
  3261. # -----------------
  3262. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  3263. as_fn_exit ()
  3264. {
  3265. set +e
  3266. as_fn_set_status $1
  3267. exit $1
  3268. } # as_fn_exit
  3269. # as_fn_unset VAR
  3270. # ---------------
  3271. # Portably unset VAR.
  3272. as_fn_unset ()
  3273. {
  3274. { eval $1=; unset $1;}
  3275. }
  3276. as_unset=as_fn_unset
  3277. # as_fn_append VAR VALUE
  3278. # ----------------------
  3279. # Append the text in VALUE to the end of the definition contained in VAR. Take
  3280. # advantage of any shell optimizations that allow amortized linear growth over
  3281. # repeated appends, instead of the typical quadratic growth present in naive
  3282. # implementations.
  3283. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  3284. eval 'as_fn_append ()
  3285. {
  3286. eval $1+=\$2
  3287. }'
  3288. else
  3289. as_fn_append ()
  3290. {
  3291. eval $1=\$$1\$2
  3292. }
  3293. fi # as_fn_append
  3294. # as_fn_arith ARG...
  3295. # ------------------
  3296. # Perform arithmetic evaluation on the ARGs, and store the result in the
  3297. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  3298. # must be portable across $(()) and expr.
  3299. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  3300. eval 'as_fn_arith ()
  3301. {
  3302. as_val=$(( $* ))
  3303. }'
  3304. else
  3305. as_fn_arith ()
  3306. {
  3307. as_val=`expr "$@" || test $? -eq 1`
  3308. }
  3309. fi # as_fn_arith
  3310. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3311. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3312. as_expr=expr
  3313. else
  3314. as_expr=false
  3315. fi
  3316. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  3317. as_basename=basename
  3318. else
  3319. as_basename=false
  3320. fi
  3321. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  3322. as_dirname=dirname
  3323. else
  3324. as_dirname=false
  3325. fi
  3326. as_me=`$as_basename -- "$0" ||
  3327. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3328. X"$0" : 'X\(//\)$' \| \
  3329. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3330. $as_echo X/"$0" |
  3331. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3332. s//\1/
  3333. q
  3334. }
  3335. /^X\/\(\/\/\)$/{
  3336. s//\1/
  3337. q
  3338. }
  3339. /^X\/\(\/\).*/{
  3340. s//\1/
  3341. q
  3342. }
  3343. s/.*/./; q'`
  3344. # Avoid depending upon Character Ranges.
  3345. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3346. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3347. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3348. as_cr_digits='0123456789'
  3349. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3350. ECHO_C= ECHO_N= ECHO_T=
  3351. case `echo -n x` in #(((((
  3352. -n*)
  3353. case `echo 'xy\c'` in
  3354. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  3355. xy) ECHO_C='\c';;
  3356. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  3357. ECHO_T=' ';;
  3358. esac;;
  3359. *)
  3360. ECHO_N='-n';;
  3361. esac
  3362. rm -f conf$$ conf$$.exe conf$$.file
  3363. if test -d conf$$.dir; then
  3364. rm -f conf$$.dir/conf$$.file
  3365. else
  3366. rm -f conf$$.dir
  3367. mkdir conf$$.dir 2>/dev/null
  3368. fi
  3369. if (echo >conf$$.file) 2>/dev/null; then
  3370. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3371. as_ln_s='ln -s'
  3372. # ... but there are two gotchas:
  3373. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3374. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3375. # In both cases, we have to default to `cp -pR'.
  3376. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3377. as_ln_s='cp -pR'
  3378. elif ln conf$$.file conf$$ 2>/dev/null; then
  3379. as_ln_s=ln
  3380. else
  3381. as_ln_s='cp -pR'
  3382. fi
  3383. else
  3384. as_ln_s='cp -pR'
  3385. fi
  3386. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  3387. rmdir conf$$.dir 2>/dev/null
  3388. # as_fn_mkdir_p
  3389. # -------------
  3390. # Create "$as_dir" as a directory, including parents if necessary.
  3391. as_fn_mkdir_p ()
  3392. {
  3393. case $as_dir in #(
  3394. -*) as_dir=./$as_dir;;
  3395. esac
  3396. test -d "$as_dir" || eval $as_mkdir_p || {
  3397. as_dirs=
  3398. while :; do
  3399. case $as_dir in #(
  3400. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  3401. *) as_qdir=$as_dir;;
  3402. esac
  3403. as_dirs="'$as_qdir' $as_dirs"
  3404. as_dir=`$as_dirname -- "$as_dir" ||
  3405. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3406. X"$as_dir" : 'X\(//\)[^/]' \| \
  3407. X"$as_dir" : 'X\(//\)$' \| \
  3408. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  3409. $as_echo X"$as_dir" |
  3410. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3411. s//\1/
  3412. q
  3413. }
  3414. /^X\(\/\/\)[^/].*/{
  3415. s//\1/
  3416. q
  3417. }
  3418. /^X\(\/\/\)$/{
  3419. s//\1/
  3420. q
  3421. }
  3422. /^X\(\/\).*/{
  3423. s//\1/
  3424. q
  3425. }
  3426. s/.*/./; q'`
  3427. test -d "$as_dir" && break
  3428. done
  3429. test -z "$as_dirs" || eval "mkdir $as_dirs"
  3430. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  3431. } # as_fn_mkdir_p
  3432. if mkdir -p . 2>/dev/null; then
  3433. as_mkdir_p='mkdir -p "$as_dir"'
  3434. else
  3435. test -d ./-p && rmdir ./-p
  3436. as_mkdir_p=false
  3437. fi
  3438. # as_fn_executable_p FILE
  3439. # -----------------------
  3440. # Test if FILE is an executable regular file.
  3441. as_fn_executable_p ()
  3442. {
  3443. test -f "$1" && test -x "$1"
  3444. } # as_fn_executable_p
  3445. as_test_x='test -x'
  3446. as_executable_p=as_fn_executable_p
  3447. # Sed expression to map a string onto a valid CPP name.
  3448. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  3449. # Sed expression to map a string onto a valid variable name.
  3450. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  3451. exec 6>&1
  3452. ## ----------------------------------- ##
  3453. ## Main body of $CONFIG_STATUS script. ##
  3454. ## ----------------------------------- ##
  3455. _ASEOF
  3456. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  3457. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3458. # Save the log message, to keep $0 and so on meaningful, and to
  3459. # report actual input values of CONFIG_FILES etc. instead of their
  3460. # values after options handling.
  3461. ac_log="
  3462. This file was extended by $as_me, which was
  3463. generated by GNU Autoconf 2.69. Invocation command line was
  3464. CONFIG_FILES = $CONFIG_FILES
  3465. CONFIG_HEADERS = $CONFIG_HEADERS
  3466. CONFIG_LINKS = $CONFIG_LINKS
  3467. CONFIG_COMMANDS = $CONFIG_COMMANDS
  3468. $ $0 $@
  3469. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  3470. "
  3471. _ACEOF
  3472. case $ac_config_files in *"
  3473. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  3474. esac
  3475. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3476. # Files that config.status was made for.
  3477. config_files="$ac_config_files"
  3478. _ACEOF
  3479. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3480. ac_cs_usage="\
  3481. \`$as_me' instantiates files and other configuration actions
  3482. from templates according to the current configuration. Unless the files
  3483. and actions are specified as TAGs, all are instantiated by default.
  3484. Usage: $0 [OPTION]... [TAG]...
  3485. -h, --help print this help, then exit
  3486. -V, --version print version number and configuration settings, then exit
  3487. --config print configuration, then exit
  3488. -q, --quiet, --silent
  3489. do not print progress messages
  3490. -d, --debug don't remove temporary files
  3491. --recheck update $as_me by reconfiguring in the same conditions
  3492. --file=FILE[:TEMPLATE]
  3493. instantiate the configuration file FILE
  3494. Configuration files:
  3495. $config_files
  3496. Report bugs to the package provider."
  3497. _ACEOF
  3498. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3499. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  3500. ac_cs_version="\\
  3501. config.status
  3502. configured by $0, generated by GNU Autoconf 2.69,
  3503. with options \\"\$ac_cs_config\\"
  3504. Copyright (C) 2012 Free Software Foundation, Inc.
  3505. This config.status script is free software; the Free Software Foundation
  3506. gives unlimited permission to copy, distribute and modify it."
  3507. ac_pwd='$ac_pwd'
  3508. srcdir='$srcdir'
  3509. test -n "\$AWK" || AWK=awk
  3510. _ACEOF
  3511. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3512. # The default lists apply if the user does not specify any file.
  3513. ac_need_defaults=:
  3514. while test $# != 0
  3515. do
  3516. case $1 in
  3517. --*=?*)
  3518. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  3519. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  3520. ac_shift=:
  3521. ;;
  3522. --*=)
  3523. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  3524. ac_optarg=
  3525. ac_shift=:
  3526. ;;
  3527. *)
  3528. ac_option=$1
  3529. ac_optarg=$2
  3530. ac_shift=shift
  3531. ;;
  3532. esac
  3533. case $ac_option in
  3534. # Handling of the options.
  3535. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3536. ac_cs_recheck=: ;;
  3537. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  3538. $as_echo "$ac_cs_version"; exit ;;
  3539. --config | --confi | --conf | --con | --co | --c )
  3540. $as_echo "$ac_cs_config"; exit ;;
  3541. --debug | --debu | --deb | --de | --d | -d )
  3542. debug=: ;;
  3543. --file | --fil | --fi | --f )
  3544. $ac_shift
  3545. case $ac_optarg in
  3546. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  3547. '') as_fn_error $? "missing file argument" ;;
  3548. esac
  3549. as_fn_append CONFIG_FILES " '$ac_optarg'"
  3550. ac_need_defaults=false;;
  3551. --he | --h | --help | --hel | -h )
  3552. $as_echo "$ac_cs_usage"; exit ;;
  3553. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3554. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3555. ac_cs_silent=: ;;
  3556. # This is an error.
  3557. -*) as_fn_error $? "unrecognized option: \`$1'
  3558. Try \`$0 --help' for more information." ;;
  3559. *) as_fn_append ac_config_targets " $1"
  3560. ac_need_defaults=false ;;
  3561. esac
  3562. shift
  3563. done
  3564. ac_configure_extra_args=
  3565. if $ac_cs_silent; then
  3566. exec 6>/dev/null
  3567. ac_configure_extra_args="$ac_configure_extra_args --silent"
  3568. fi
  3569. _ACEOF
  3570. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3571. if \$ac_cs_recheck; then
  3572. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3573. shift
  3574. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  3575. CONFIG_SHELL='$SHELL'
  3576. export CONFIG_SHELL
  3577. exec "\$@"
  3578. fi
  3579. _ACEOF
  3580. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3581. exec 5>>config.log
  3582. {
  3583. echo
  3584. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3585. ## Running $as_me. ##
  3586. _ASBOX
  3587. $as_echo "$ac_log"
  3588. } >&5
  3589. _ACEOF
  3590. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3591. _ACEOF
  3592. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3593. # Handling of arguments.
  3594. for ac_config_target in $ac_config_targets
  3595. do
  3596. case $ac_config_target in
  3597. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  3598. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  3599. esac
  3600. done
  3601. # If the user did not use the arguments to specify the items to instantiate,
  3602. # then the envvar interface is used. Set only those that are not.
  3603. # We use the long form for the default assignment because of an extremely
  3604. # bizarre bug on SunOS 4.1.3.
  3605. if $ac_need_defaults; then
  3606. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  3607. fi
  3608. # Have a temporary directory for convenience. Make it in the build tree
  3609. # simply because there is no reason against having it here, and in addition,
  3610. # creating and moving files from /tmp can sometimes cause problems.
  3611. # Hook for its removal unless debugging.
  3612. # Note that there is a small window in which the directory will not be cleaned:
  3613. # after its creation but before its name has been assigned to `$tmp'.
  3614. $debug ||
  3615. {
  3616. tmp= ac_tmp=
  3617. trap 'exit_status=$?
  3618. : "${ac_tmp:=$tmp}"
  3619. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  3620. ' 0
  3621. trap 'as_fn_exit 1' 1 2 13 15
  3622. }
  3623. # Create a (secure) tmp directory for tmp files.
  3624. {
  3625. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  3626. test -d "$tmp"
  3627. } ||
  3628. {
  3629. tmp=./conf$$-$RANDOM
  3630. (umask 077 && mkdir "$tmp")
  3631. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  3632. ac_tmp=$tmp
  3633. # Set up the scripts for CONFIG_FILES section.
  3634. # No need to generate them if there are no CONFIG_FILES.
  3635. # This happens for instance with `./config.status config.h'.
  3636. if test -n "$CONFIG_FILES"; then
  3637. ac_cr=`echo X | tr X '\015'`
  3638. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  3639. # But we know of no other shell where ac_cr would be empty at this
  3640. # point, so we can use a bashism as a fallback.
  3641. if test "x$ac_cr" = x; then
  3642. eval ac_cr=\$\'\\r\'
  3643. fi
  3644. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  3645. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  3646. ac_cs_awk_cr='\\r'
  3647. else
  3648. ac_cs_awk_cr=$ac_cr
  3649. fi
  3650. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  3651. _ACEOF
  3652. {
  3653. echo "cat >conf$$subs.awk <<_ACEOF" &&
  3654. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  3655. echo "_ACEOF"
  3656. } >conf$$subs.sh ||
  3657. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3658. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  3659. ac_delim='%!_!# '
  3660. for ac_last_try in false false false false false :; do
  3661. . ./conf$$subs.sh ||
  3662. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3663. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  3664. if test $ac_delim_n = $ac_delim_num; then
  3665. break
  3666. elif $ac_last_try; then
  3667. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  3668. else
  3669. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  3670. fi
  3671. done
  3672. rm -f conf$$subs.sh
  3673. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3674. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  3675. _ACEOF
  3676. sed -n '
  3677. h
  3678. s/^/S["/; s/!.*/"]=/
  3679. p
  3680. g
  3681. s/^[^!]*!//
  3682. :repl
  3683. t repl
  3684. s/'"$ac_delim"'$//
  3685. t delim
  3686. :nl
  3687. h
  3688. s/\(.\{148\}\)..*/\1/
  3689. t more1
  3690. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  3691. p
  3692. n
  3693. b repl
  3694. :more1
  3695. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3696. p
  3697. g
  3698. s/.\{148\}//
  3699. t nl
  3700. :delim
  3701. h
  3702. s/\(.\{148\}\)..*/\1/
  3703. t more2
  3704. s/["\\]/\\&/g; s/^/"/; s/$/"/
  3705. p
  3706. b
  3707. :more2
  3708. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3709. p
  3710. g
  3711. s/.\{148\}//
  3712. t delim
  3713. ' <conf$$subs.awk | sed '
  3714. /^[^""]/{
  3715. N
  3716. s/\n//
  3717. }
  3718. ' >>$CONFIG_STATUS || ac_write_fail=1
  3719. rm -f conf$$subs.awk
  3720. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3721. _ACAWK
  3722. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  3723. for (key in S) S_is_set[key] = 1
  3724. FS = ""
  3725. }
  3726. {
  3727. line = $ 0
  3728. nfields = split(line, field, "@")
  3729. substed = 0
  3730. len = length(field[1])
  3731. for (i = 2; i < nfields; i++) {
  3732. key = field[i]
  3733. keylen = length(key)
  3734. if (S_is_set[key]) {
  3735. value = S[key]
  3736. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  3737. len += length(value) + length(field[++i])
  3738. substed = 1
  3739. } else
  3740. len += 1 + keylen
  3741. }
  3742. print line
  3743. }
  3744. _ACAWK
  3745. _ACEOF
  3746. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3747. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  3748. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  3749. else
  3750. cat
  3751. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  3752. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  3753. _ACEOF
  3754. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  3755. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  3756. # trailing colons and then remove the whole line if VPATH becomes empty
  3757. # (actually we leave an empty line to preserve line numbers).
  3758. if test "x$srcdir" = x.; then
  3759. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  3760. h
  3761. s///
  3762. s/^/:/
  3763. s/[ ]*$/:/
  3764. s/:\$(srcdir):/:/g
  3765. s/:\${srcdir}:/:/g
  3766. s/:@srcdir@:/:/g
  3767. s/^:*//
  3768. s/:*$//
  3769. x
  3770. s/\(=[ ]*\).*/\1/
  3771. G
  3772. s/\n//
  3773. s/^[^=]*=[ ]*$//
  3774. }'
  3775. fi
  3776. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3777. fi # test -n "$CONFIG_FILES"
  3778. eval set X " :F $CONFIG_FILES "
  3779. shift
  3780. for ac_tag
  3781. do
  3782. case $ac_tag in
  3783. :[FHLC]) ac_mode=$ac_tag; continue;;
  3784. esac
  3785. case $ac_mode$ac_tag in
  3786. :[FHL]*:*);;
  3787. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  3788. :[FH]-) ac_tag=-:-;;
  3789. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  3790. esac
  3791. ac_save_IFS=$IFS
  3792. IFS=:
  3793. set x $ac_tag
  3794. IFS=$ac_save_IFS
  3795. shift
  3796. ac_file=$1
  3797. shift
  3798. case $ac_mode in
  3799. :L) ac_source=$1;;
  3800. :[FH])
  3801. ac_file_inputs=
  3802. for ac_f
  3803. do
  3804. case $ac_f in
  3805. -) ac_f="$ac_tmp/stdin";;
  3806. *) # Look for the file first in the build tree, then in the source tree
  3807. # (if the path is not absolute). The absolute path cannot be DOS-style,
  3808. # because $ac_f cannot contain `:'.
  3809. test -f "$ac_f" ||
  3810. case $ac_f in
  3811. [\\/$]*) false;;
  3812. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  3813. esac ||
  3814. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  3815. esac
  3816. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  3817. as_fn_append ac_file_inputs " '$ac_f'"
  3818. done
  3819. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3820. # use $as_me), people would be surprised to read:
  3821. # /* config.h. Generated by config.status. */
  3822. configure_input='Generated from '`
  3823. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  3824. `' by configure.'
  3825. if test x"$ac_file" != x-; then
  3826. configure_input="$ac_file. $configure_input"
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  3828. $as_echo "$as_me: creating $ac_file" >&6;}
  3829. fi
  3830. # Neutralize special characters interpreted by sed in replacement strings.
  3831. case $configure_input in #(
  3832. *\&* | *\|* | *\\* )
  3833. ac_sed_conf_input=`$as_echo "$configure_input" |
  3834. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  3835. *) ac_sed_conf_input=$configure_input;;
  3836. esac
  3837. case $ac_tag in
  3838. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  3839. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  3840. esac
  3841. ;;
  3842. esac
  3843. ac_dir=`$as_dirname -- "$ac_file" ||
  3844. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3845. X"$ac_file" : 'X\(//\)[^/]' \| \
  3846. X"$ac_file" : 'X\(//\)$' \| \
  3847. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  3848. $as_echo X"$ac_file" |
  3849. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3850. s//\1/
  3851. q
  3852. }
  3853. /^X\(\/\/\)[^/].*/{
  3854. s//\1/
  3855. q
  3856. }
  3857. /^X\(\/\/\)$/{
  3858. s//\1/
  3859. q
  3860. }
  3861. /^X\(\/\).*/{
  3862. s//\1/
  3863. q
  3864. }
  3865. s/.*/./; q'`
  3866. as_dir="$ac_dir"; as_fn_mkdir_p
  3867. ac_builddir=.
  3868. case "$ac_dir" in
  3869. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3870. *)
  3871. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  3872. # A ".." for each directory in $ac_dir_suffix.
  3873. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  3874. case $ac_top_builddir_sub in
  3875. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3876. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  3877. esac ;;
  3878. esac
  3879. ac_abs_top_builddir=$ac_pwd
  3880. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  3881. # for backward compatibility:
  3882. ac_top_builddir=$ac_top_build_prefix
  3883. case $srcdir in
  3884. .) # We are building in place.
  3885. ac_srcdir=.
  3886. ac_top_srcdir=$ac_top_builddir_sub
  3887. ac_abs_top_srcdir=$ac_pwd ;;
  3888. [\\/]* | ?:[\\/]* ) # Absolute name.
  3889. ac_srcdir=$srcdir$ac_dir_suffix;
  3890. ac_top_srcdir=$srcdir
  3891. ac_abs_top_srcdir=$srcdir ;;
  3892. *) # Relative name.
  3893. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  3894. ac_top_srcdir=$ac_top_build_prefix$srcdir
  3895. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  3896. esac
  3897. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  3898. case $ac_mode in
  3899. :F)
  3900. #
  3901. # CONFIG_FILE
  3902. #
  3903. _ACEOF
  3904. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3905. # If the template does not know about datarootdir, expand it.
  3906. # FIXME: This hack should be removed a few years after 2.60.
  3907. ac_datarootdir_hack=; ac_datarootdir_seen=
  3908. ac_sed_dataroot='
  3909. /datarootdir/ {
  3910. p
  3911. q
  3912. }
  3913. /@datadir@/p
  3914. /@docdir@/p
  3915. /@infodir@/p
  3916. /@localedir@/p
  3917. /@mandir@/p'
  3918. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  3919. *datarootdir*) ac_datarootdir_seen=yes;;
  3920. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  3922. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  3923. _ACEOF
  3924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3925. ac_datarootdir_hack='
  3926. s&@datadir@&$datadir&g
  3927. s&@docdir@&$docdir&g
  3928. s&@infodir@&$infodir&g
  3929. s&@localedir@&$localedir&g
  3930. s&@mandir@&$mandir&g
  3931. s&\\\${datarootdir}&$datarootdir&g' ;;
  3932. esac
  3933. _ACEOF
  3934. # Neutralize VPATH when `$srcdir' = `.'.
  3935. # Shell code in configure.ac might set extrasub.
  3936. # FIXME: do we really want to maintain this feature?
  3937. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3938. ac_sed_extra="$ac_vpsub
  3939. $extrasub
  3940. _ACEOF
  3941. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3942. :t
  3943. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3944. s|@configure_input@|$ac_sed_conf_input|;t t
  3945. s&@top_builddir@&$ac_top_builddir_sub&;t t
  3946. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  3947. s&@srcdir@&$ac_srcdir&;t t
  3948. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  3949. s&@top_srcdir@&$ac_top_srcdir&;t t
  3950. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  3951. s&@builddir@&$ac_builddir&;t t
  3952. s&@abs_builddir@&$ac_abs_builddir&;t t
  3953. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  3954. $ac_datarootdir_hack
  3955. "
  3956. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  3957. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  3958. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  3959. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  3960. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  3961. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3963. which seems to be undefined. Please make sure it is defined" >&5
  3964. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3965. which seems to be undefined. Please make sure it is defined" >&2;}
  3966. rm -f "$ac_tmp/stdin"
  3967. case $ac_file in
  3968. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  3969. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  3970. esac \
  3971. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  3972. ;;
  3973. esac
  3974. done # for ac_tag
  3975. as_fn_exit 0
  3976. _ACEOF
  3977. ac_clean_files=$ac_clean_files_save
  3978. test $ac_write_fail = 0 ||
  3979. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  3980. # configure is writing to config.log, and then calls config.status.
  3981. # config.status does its own redirection, appending to config.log.
  3982. # Unfortunately, on DOS this fails, as config.log is still kept open
  3983. # by configure, so config.status won't be able to write to it; its
  3984. # output is simply discarded. So we exec the FD to /dev/null,
  3985. # effectively closing config.log, so it can be properly (re)opened and
  3986. # appended to by config.status. When coming back to configure, we
  3987. # need to make the FD available again.
  3988. if test "$no_create" != yes; then
  3989. ac_cs_success=:
  3990. ac_config_status_args=
  3991. test "$silent" = yes &&
  3992. ac_config_status_args="$ac_config_status_args --quiet"
  3993. exec 5>/dev/null
  3994. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  3995. exec 5>>config.log
  3996. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  3997. # would make configure fail if this is the last instruction.
  3998. $ac_cs_success || as_fn_exit 1
  3999. fi
  4000. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4002. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4003. fi