PageRenderTime 522ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 1ms

/configure

http://github.com/bengardner/uncrustify
Shell | 6547 lines | 5408 code | 493 blank | 646 comment | 607 complexity | d99896f216c606ac6845f80e4ae0ffce MD5 | raw file
Possible License(s): GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for uncrustify 0.61.
  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. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME='uncrustify'
  531. PACKAGE_TARNAME='uncrustify'
  532. PACKAGE_VERSION='0.61'
  533. PACKAGE_STRING='uncrustify 0.61'
  534. PACKAGE_BUGREPORT=''
  535. PACKAGE_URL='http://uncrustify.sourceforge.net/'
  536. ac_unique_file="src/uncrustify.cpp"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='am__EXEEXT_FALSE
  573. am__EXEEXT_TRUE
  574. LTLIBOBJS
  575. LIBOBJS
  576. EGREP
  577. GREP
  578. CPP
  579. am__fastdepCC_FALSE
  580. am__fastdepCC_TRUE
  581. CCDEPMODE
  582. ac_ct_CC
  583. CFLAGS
  584. CC
  585. am__fastdepCXX_FALSE
  586. am__fastdepCXX_TRUE
  587. CXXDEPMODE
  588. am__nodep
  589. AMDEPBACKSLASH
  590. AMDEP_FALSE
  591. AMDEP_TRUE
  592. am__quote
  593. am__include
  594. DEPDIR
  595. OBJEXT
  596. EXEEXT
  597. ac_ct_CXX
  598. CPPFLAGS
  599. LDFLAGS
  600. CXXFLAGS
  601. CXX
  602. MAINT
  603. MAINTAINER_MODE_FALSE
  604. MAINTAINER_MODE_TRUE
  605. AM_BACKSLASH
  606. AM_DEFAULT_VERBOSITY
  607. AM_DEFAULT_V
  608. AM_V
  609. am__untar
  610. am__tar
  611. AMTAR
  612. am__leading_dot
  613. SET_MAKE
  614. AWK
  615. mkdir_p
  616. MKDIR_P
  617. INSTALL_STRIP_PROGRAM
  618. STRIP
  619. install_sh
  620. MAKEINFO
  621. AUTOHEADER
  622. AUTOMAKE
  623. AUTOCONF
  624. ACLOCAL
  625. VERSION
  626. PACKAGE
  627. CYGPATH_W
  628. am__isrc
  629. INSTALL_DATA
  630. INSTALL_SCRIPT
  631. INSTALL_PROGRAM
  632. target_alias
  633. host_alias
  634. build_alias
  635. LIBS
  636. ECHO_T
  637. ECHO_N
  638. ECHO_C
  639. DEFS
  640. mandir
  641. localedir
  642. libdir
  643. psdir
  644. pdfdir
  645. dvidir
  646. htmldir
  647. infodir
  648. docdir
  649. oldincludedir
  650. includedir
  651. localstatedir
  652. sharedstatedir
  653. sysconfdir
  654. datadir
  655. datarootdir
  656. libexecdir
  657. sbindir
  658. bindir
  659. program_transform_name
  660. prefix
  661. exec_prefix
  662. PACKAGE_URL
  663. PACKAGE_BUGREPORT
  664. PACKAGE_STRING
  665. PACKAGE_VERSION
  666. PACKAGE_TARNAME
  667. PACKAGE_NAME
  668. PATH_SEPARATOR
  669. SHELL'
  670. ac_subst_files=''
  671. ac_user_opts='
  672. enable_option_checking
  673. enable_silent_rules
  674. enable_maintainer_mode
  675. enable_dependency_tracking
  676. '
  677. ac_precious_vars='build_alias
  678. host_alias
  679. target_alias
  680. CXX
  681. CXXFLAGS
  682. LDFLAGS
  683. LIBS
  684. CPPFLAGS
  685. CCC
  686. CC
  687. CFLAGS
  688. CPP'
  689. # Initialize some variables set by options.
  690. ac_init_help=
  691. ac_init_version=false
  692. ac_unrecognized_opts=
  693. ac_unrecognized_sep=
  694. # The variables have the same names as the options, with
  695. # dashes changed to underlines.
  696. cache_file=/dev/null
  697. exec_prefix=NONE
  698. no_create=
  699. no_recursion=
  700. prefix=NONE
  701. program_prefix=NONE
  702. program_suffix=NONE
  703. program_transform_name=s,x,x,
  704. silent=
  705. site=
  706. srcdir=
  707. verbose=
  708. x_includes=NONE
  709. x_libraries=NONE
  710. # Installation directory options.
  711. # These are left unexpanded so users can "make install exec_prefix=/foo"
  712. # and all the variables that are supposed to be based on exec_prefix
  713. # by default will actually change.
  714. # Use braces instead of parens because sh, perl, etc. also accept them.
  715. # (The list follows the same order as the GNU Coding Standards.)
  716. bindir='${exec_prefix}/bin'
  717. sbindir='${exec_prefix}/sbin'
  718. libexecdir='${exec_prefix}/libexec'
  719. datarootdir='${prefix}/share'
  720. datadir='${datarootdir}'
  721. sysconfdir='${prefix}/etc'
  722. sharedstatedir='${prefix}/com'
  723. localstatedir='${prefix}/var'
  724. includedir='${prefix}/include'
  725. oldincludedir='/usr/include'
  726. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  727. infodir='${datarootdir}/info'
  728. htmldir='${docdir}'
  729. dvidir='${docdir}'
  730. pdfdir='${docdir}'
  731. psdir='${docdir}'
  732. libdir='${exec_prefix}/lib'
  733. localedir='${datarootdir}/locale'
  734. mandir='${datarootdir}/man'
  735. ac_prev=
  736. ac_dashdash=
  737. for ac_option
  738. do
  739. # If the previous option needs an argument, assign it.
  740. if test -n "$ac_prev"; then
  741. eval $ac_prev=\$ac_option
  742. ac_prev=
  743. continue
  744. fi
  745. case $ac_option in
  746. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  747. *=) ac_optarg= ;;
  748. *) ac_optarg=yes ;;
  749. esac
  750. # Accept the important Cygnus configure options, so we can diagnose typos.
  751. case $ac_dashdash$ac_option in
  752. --)
  753. ac_dashdash=yes ;;
  754. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  755. ac_prev=bindir ;;
  756. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  757. bindir=$ac_optarg ;;
  758. -build | --build | --buil | --bui | --bu)
  759. ac_prev=build_alias ;;
  760. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  761. build_alias=$ac_optarg ;;
  762. -cache-file | --cache-file | --cache-fil | --cache-fi \
  763. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  764. ac_prev=cache_file ;;
  765. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  766. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  767. cache_file=$ac_optarg ;;
  768. --config-cache | -C)
  769. cache_file=config.cache ;;
  770. -datadir | --datadir | --datadi | --datad)
  771. ac_prev=datadir ;;
  772. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  773. datadir=$ac_optarg ;;
  774. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  775. | --dataroo | --dataro | --datar)
  776. ac_prev=datarootdir ;;
  777. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  778. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  779. datarootdir=$ac_optarg ;;
  780. -disable-* | --disable-*)
  781. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  782. # Reject names that are not valid shell variable names.
  783. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  784. as_fn_error $? "invalid feature name: $ac_useropt"
  785. ac_useropt_orig=$ac_useropt
  786. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  787. case $ac_user_opts in
  788. *"
  789. "enable_$ac_useropt"
  790. "*) ;;
  791. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  792. ac_unrecognized_sep=', ';;
  793. esac
  794. eval enable_$ac_useropt=no ;;
  795. -docdir | --docdir | --docdi | --doc | --do)
  796. ac_prev=docdir ;;
  797. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  798. docdir=$ac_optarg ;;
  799. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  800. ac_prev=dvidir ;;
  801. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  802. dvidir=$ac_optarg ;;
  803. -enable-* | --enable-*)
  804. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  805. # Reject names that are not valid shell variable names.
  806. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  807. as_fn_error $? "invalid feature name: $ac_useropt"
  808. ac_useropt_orig=$ac_useropt
  809. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  810. case $ac_user_opts in
  811. *"
  812. "enable_$ac_useropt"
  813. "*) ;;
  814. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  815. ac_unrecognized_sep=', ';;
  816. esac
  817. eval enable_$ac_useropt=\$ac_optarg ;;
  818. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  819. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  820. | --exec | --exe | --ex)
  821. ac_prev=exec_prefix ;;
  822. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  823. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  824. | --exec=* | --exe=* | --ex=*)
  825. exec_prefix=$ac_optarg ;;
  826. -gas | --gas | --ga | --g)
  827. # Obsolete; use --with-gas.
  828. with_gas=yes ;;
  829. -help | --help | --hel | --he | -h)
  830. ac_init_help=long ;;
  831. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  832. ac_init_help=recursive ;;
  833. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  834. ac_init_help=short ;;
  835. -host | --host | --hos | --ho)
  836. ac_prev=host_alias ;;
  837. -host=* | --host=* | --hos=* | --ho=*)
  838. host_alias=$ac_optarg ;;
  839. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  840. ac_prev=htmldir ;;
  841. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  842. | --ht=*)
  843. htmldir=$ac_optarg ;;
  844. -includedir | --includedir | --includedi | --included | --include \
  845. | --includ | --inclu | --incl | --inc)
  846. ac_prev=includedir ;;
  847. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  848. | --includ=* | --inclu=* | --incl=* | --inc=*)
  849. includedir=$ac_optarg ;;
  850. -infodir | --infodir | --infodi | --infod | --info | --inf)
  851. ac_prev=infodir ;;
  852. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  853. infodir=$ac_optarg ;;
  854. -libdir | --libdir | --libdi | --libd)
  855. ac_prev=libdir ;;
  856. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  857. libdir=$ac_optarg ;;
  858. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  859. | --libexe | --libex | --libe)
  860. ac_prev=libexecdir ;;
  861. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  862. | --libexe=* | --libex=* | --libe=*)
  863. libexecdir=$ac_optarg ;;
  864. -localedir | --localedir | --localedi | --localed | --locale)
  865. ac_prev=localedir ;;
  866. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  867. localedir=$ac_optarg ;;
  868. -localstatedir | --localstatedir | --localstatedi | --localstated \
  869. | --localstate | --localstat | --localsta | --localst | --locals)
  870. ac_prev=localstatedir ;;
  871. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  872. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  873. localstatedir=$ac_optarg ;;
  874. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  875. ac_prev=mandir ;;
  876. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  877. mandir=$ac_optarg ;;
  878. -nfp | --nfp | --nf)
  879. # Obsolete; use --without-fp.
  880. with_fp=no ;;
  881. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  882. | --no-cr | --no-c | -n)
  883. no_create=yes ;;
  884. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  885. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  886. no_recursion=yes ;;
  887. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  888. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  889. | --oldin | --oldi | --old | --ol | --o)
  890. ac_prev=oldincludedir ;;
  891. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  892. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  893. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  894. oldincludedir=$ac_optarg ;;
  895. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  896. ac_prev=prefix ;;
  897. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  898. prefix=$ac_optarg ;;
  899. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  900. | --program-pre | --program-pr | --program-p)
  901. ac_prev=program_prefix ;;
  902. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  903. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  904. program_prefix=$ac_optarg ;;
  905. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  906. | --program-suf | --program-su | --program-s)
  907. ac_prev=program_suffix ;;
  908. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  909. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  910. program_suffix=$ac_optarg ;;
  911. -program-transform-name | --program-transform-name \
  912. | --program-transform-nam | --program-transform-na \
  913. | --program-transform-n | --program-transform- \
  914. | --program-transform | --program-transfor \
  915. | --program-transfo | --program-transf \
  916. | --program-trans | --program-tran \
  917. | --progr-tra | --program-tr | --program-t)
  918. ac_prev=program_transform_name ;;
  919. -program-transform-name=* | --program-transform-name=* \
  920. | --program-transform-nam=* | --program-transform-na=* \
  921. | --program-transform-n=* | --program-transform-=* \
  922. | --program-transform=* | --program-transfor=* \
  923. | --program-transfo=* | --program-transf=* \
  924. | --program-trans=* | --program-tran=* \
  925. | --progr-tra=* | --program-tr=* | --program-t=*)
  926. program_transform_name=$ac_optarg ;;
  927. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  928. ac_prev=pdfdir ;;
  929. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  930. pdfdir=$ac_optarg ;;
  931. -psdir | --psdir | --psdi | --psd | --ps)
  932. ac_prev=psdir ;;
  933. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  934. psdir=$ac_optarg ;;
  935. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  936. | -silent | --silent | --silen | --sile | --sil)
  937. silent=yes ;;
  938. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  939. ac_prev=sbindir ;;
  940. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  941. | --sbi=* | --sb=*)
  942. sbindir=$ac_optarg ;;
  943. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  944. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  945. | --sharedst | --shareds | --shared | --share | --shar \
  946. | --sha | --sh)
  947. ac_prev=sharedstatedir ;;
  948. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  949. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  950. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  951. | --sha=* | --sh=*)
  952. sharedstatedir=$ac_optarg ;;
  953. -site | --site | --sit)
  954. ac_prev=site ;;
  955. -site=* | --site=* | --sit=*)
  956. site=$ac_optarg ;;
  957. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  958. ac_prev=srcdir ;;
  959. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  960. srcdir=$ac_optarg ;;
  961. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  962. | --syscon | --sysco | --sysc | --sys | --sy)
  963. ac_prev=sysconfdir ;;
  964. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  965. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  966. sysconfdir=$ac_optarg ;;
  967. -target | --target | --targe | --targ | --tar | --ta | --t)
  968. ac_prev=target_alias ;;
  969. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  970. target_alias=$ac_optarg ;;
  971. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  972. verbose=yes ;;
  973. -version | --version | --versio | --versi | --vers | -V)
  974. ac_init_version=: ;;
  975. -with-* | --with-*)
  976. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  977. # Reject names that are not valid shell variable names.
  978. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  979. as_fn_error $? "invalid package name: $ac_useropt"
  980. ac_useropt_orig=$ac_useropt
  981. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  982. case $ac_user_opts in
  983. *"
  984. "with_$ac_useropt"
  985. "*) ;;
  986. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  987. ac_unrecognized_sep=', ';;
  988. esac
  989. eval with_$ac_useropt=\$ac_optarg ;;
  990. -without-* | --without-*)
  991. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  994. as_fn_error $? "invalid package name: $ac_useropt"
  995. ac_useropt_orig=$ac_useropt
  996. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  997. case $ac_user_opts in
  998. *"
  999. "with_$ac_useropt"
  1000. "*) ;;
  1001. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1002. ac_unrecognized_sep=', ';;
  1003. esac
  1004. eval with_$ac_useropt=no ;;
  1005. --x)
  1006. # Obsolete; use --with-x.
  1007. with_x=yes ;;
  1008. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1009. | --x-incl | --x-inc | --x-in | --x-i)
  1010. ac_prev=x_includes ;;
  1011. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1012. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1013. x_includes=$ac_optarg ;;
  1014. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1015. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1016. ac_prev=x_libraries ;;
  1017. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1018. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1019. x_libraries=$ac_optarg ;;
  1020. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1021. Try \`$0 --help' for more information"
  1022. ;;
  1023. *=*)
  1024. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1025. # Reject names that are not valid shell variable names.
  1026. case $ac_envvar in #(
  1027. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1028. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1029. esac
  1030. eval $ac_envvar=\$ac_optarg
  1031. export $ac_envvar ;;
  1032. *)
  1033. # FIXME: should be removed in autoconf 3.0.
  1034. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1035. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1036. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1037. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1038. ;;
  1039. esac
  1040. done
  1041. if test -n "$ac_prev"; then
  1042. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1043. as_fn_error $? "missing argument to $ac_option"
  1044. fi
  1045. if test -n "$ac_unrecognized_opts"; then
  1046. case $enable_option_checking in
  1047. no) ;;
  1048. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1049. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1050. esac
  1051. fi
  1052. # Check all directory arguments for consistency.
  1053. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1054. datadir sysconfdir sharedstatedir localstatedir includedir \
  1055. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1056. libdir localedir mandir
  1057. do
  1058. eval ac_val=\$$ac_var
  1059. # Remove trailing slashes.
  1060. case $ac_val in
  1061. */ )
  1062. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1063. eval $ac_var=\$ac_val;;
  1064. esac
  1065. # Be sure to have absolute directory names.
  1066. case $ac_val in
  1067. [\\/$]* | ?:[\\/]* ) continue;;
  1068. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1069. esac
  1070. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1071. done
  1072. # There might be people who depend on the old broken behavior: `$host'
  1073. # used to hold the argument of --host etc.
  1074. # FIXME: To remove some day.
  1075. build=$build_alias
  1076. host=$host_alias
  1077. target=$target_alias
  1078. # FIXME: To remove some day.
  1079. if test "x$host_alias" != x; then
  1080. if test "x$build_alias" = x; then
  1081. cross_compiling=maybe
  1082. elif test "x$build_alias" != "x$host_alias"; then
  1083. cross_compiling=yes
  1084. fi
  1085. fi
  1086. ac_tool_prefix=
  1087. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1088. test "$silent" = yes && exec 6>/dev/null
  1089. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1090. ac_ls_di=`ls -di .` &&
  1091. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1092. as_fn_error $? "working directory cannot be determined"
  1093. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1094. as_fn_error $? "pwd does not report name of working directory"
  1095. # Find the source files, if location was not specified.
  1096. if test -z "$srcdir"; then
  1097. ac_srcdir_defaulted=yes
  1098. # Try the directory containing this script, then the parent directory.
  1099. ac_confdir=`$as_dirname -- "$as_myself" ||
  1100. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1101. X"$as_myself" : 'X\(//\)[^/]' \| \
  1102. X"$as_myself" : 'X\(//\)$' \| \
  1103. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1104. $as_echo X"$as_myself" |
  1105. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1106. s//\1/
  1107. q
  1108. }
  1109. /^X\(\/\/\)[^/].*/{
  1110. s//\1/
  1111. q
  1112. }
  1113. /^X\(\/\/\)$/{
  1114. s//\1/
  1115. q
  1116. }
  1117. /^X\(\/\).*/{
  1118. s//\1/
  1119. q
  1120. }
  1121. s/.*/./; q'`
  1122. srcdir=$ac_confdir
  1123. if test ! -r "$srcdir/$ac_unique_file"; then
  1124. srcdir=..
  1125. fi
  1126. else
  1127. ac_srcdir_defaulted=no
  1128. fi
  1129. if test ! -r "$srcdir/$ac_unique_file"; then
  1130. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1131. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1132. fi
  1133. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1134. ac_abs_confdir=`(
  1135. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1136. pwd)`
  1137. # When building in place, set srcdir=.
  1138. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1139. srcdir=.
  1140. fi
  1141. # Remove unnecessary trailing slashes from srcdir.
  1142. # Double slashes in file names in object file debugging info
  1143. # mess up M-x gdb in Emacs.
  1144. case $srcdir in
  1145. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1146. esac
  1147. for ac_var in $ac_precious_vars; do
  1148. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1149. eval ac_env_${ac_var}_value=\$${ac_var}
  1150. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1151. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1152. done
  1153. #
  1154. # Report the --help message.
  1155. #
  1156. if test "$ac_init_help" = "long"; then
  1157. # Omit some internal or obsolete options to make the list less imposing.
  1158. # This message is too long to be a string in the A/UX 3.1 sh.
  1159. cat <<_ACEOF
  1160. \`configure' configures uncrustify 0.61 to adapt to many kinds of systems.
  1161. Usage: $0 [OPTION]... [VAR=VALUE]...
  1162. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1163. VAR=VALUE. See below for descriptions of some of the useful variables.
  1164. Defaults for the options are specified in brackets.
  1165. Configuration:
  1166. -h, --help display this help and exit
  1167. --help=short display options specific to this package
  1168. --help=recursive display the short help of all the included packages
  1169. -V, --version display version information and exit
  1170. -q, --quiet, --silent do not print \`checking ...' messages
  1171. --cache-file=FILE cache test results in FILE [disabled]
  1172. -C, --config-cache alias for \`--cache-file=config.cache'
  1173. -n, --no-create do not create output files
  1174. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1175. Installation directories:
  1176. --prefix=PREFIX install architecture-independent files in PREFIX
  1177. [$ac_default_prefix]
  1178. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1179. [PREFIX]
  1180. By default, \`make install' will install all the files in
  1181. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1182. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1183. for instance \`--prefix=\$HOME'.
  1184. For better control, use the options below.
  1185. Fine tuning of the installation directories:
  1186. --bindir=DIR user executables [EPREFIX/bin]
  1187. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1188. --libexecdir=DIR program executables [EPREFIX/libexec]
  1189. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1190. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1191. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1192. --libdir=DIR object code libraries [EPREFIX/lib]
  1193. --includedir=DIR C header files [PREFIX/include]
  1194. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1195. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1196. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1197. --infodir=DIR info documentation [DATAROOTDIR/info]
  1198. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1199. --mandir=DIR man documentation [DATAROOTDIR/man]
  1200. --docdir=DIR documentation root [DATAROOTDIR/doc/uncrustify]
  1201. --htmldir=DIR html documentation [DOCDIR]
  1202. --dvidir=DIR dvi documentation [DOCDIR]
  1203. --pdfdir=DIR pdf documentation [DOCDIR]
  1204. --psdir=DIR ps documentation [DOCDIR]
  1205. _ACEOF
  1206. cat <<\_ACEOF
  1207. Program names:
  1208. --program-prefix=PREFIX prepend PREFIX to installed program names
  1209. --program-suffix=SUFFIX append SUFFIX to installed program names
  1210. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1211. _ACEOF
  1212. fi
  1213. if test -n "$ac_init_help"; then
  1214. case $ac_init_help in
  1215. short | recursive ) echo "Configuration of uncrustify 0.61:";;
  1216. esac
  1217. cat <<\_ACEOF
  1218. Optional Features:
  1219. --disable-option-checking ignore unrecognized --enable/--with options
  1220. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1221. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1222. --enable-silent-rules less verbose build output (undo: "make V=1")
  1223. --disable-silent-rules verbose build output (undo: "make V=0")
  1224. --enable-maintainer-mode
  1225. enable make rules and dependencies not useful (and
  1226. sometimes confusing) to the casual installer
  1227. --enable-dependency-tracking
  1228. do not reject slow dependency extractors
  1229. --disable-dependency-tracking
  1230. speeds up one-time build
  1231. Some influential environment variables:
  1232. CXX C++ compiler command
  1233. CXXFLAGS C++ compiler flags
  1234. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1235. nonstandard directory <lib dir>
  1236. LIBS libraries to pass to the linker, e.g. -l<library>
  1237. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1238. you have headers in a nonstandard directory <include dir>
  1239. CC C compiler command
  1240. CFLAGS C compiler flags
  1241. CPP C preprocessor
  1242. Use these variables to override the choices made by `configure' or to help
  1243. it to find libraries and programs with nonstandard names/locations.
  1244. Report bugs to the package provider.
  1245. uncrustify home page: <http://uncrustify.sourceforge.net/>.
  1246. _ACEOF
  1247. ac_status=$?
  1248. fi
  1249. if test "$ac_init_help" = "recursive"; then
  1250. # If there are subdirs, report their specific --help.
  1251. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1252. test -d "$ac_dir" ||
  1253. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1254. continue
  1255. ac_builddir=.
  1256. case "$ac_dir" in
  1257. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1258. *)
  1259. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1260. # A ".." for each directory in $ac_dir_suffix.
  1261. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1262. case $ac_top_builddir_sub in
  1263. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1264. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1265. esac ;;
  1266. esac
  1267. ac_abs_top_builddir=$ac_pwd
  1268. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1269. # for backward compatibility:
  1270. ac_top_builddir=$ac_top_build_prefix
  1271. case $srcdir in
  1272. .) # We are building in place.
  1273. ac_srcdir=.
  1274. ac_top_srcdir=$ac_top_builddir_sub
  1275. ac_abs_top_srcdir=$ac_pwd ;;
  1276. [\\/]* | ?:[\\/]* ) # Absolute name.
  1277. ac_srcdir=$srcdir$ac_dir_suffix;
  1278. ac_top_srcdir=$srcdir
  1279. ac_abs_top_srcdir=$srcdir ;;
  1280. *) # Relative name.
  1281. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1282. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1283. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1284. esac
  1285. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1286. cd "$ac_dir" || { ac_status=$?; continue; }
  1287. # Check for guested configure.
  1288. if test -f "$ac_srcdir/configure.gnu"; then
  1289. echo &&
  1290. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1291. elif test -f "$ac_srcdir/configure"; then
  1292. echo &&
  1293. $SHELL "$ac_srcdir/configure" --help=recursive
  1294. else
  1295. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1296. fi || ac_status=$?
  1297. cd "$ac_pwd" || { ac_status=$?; break; }
  1298. done
  1299. fi
  1300. test -n "$ac_init_help" && exit $ac_status
  1301. if $ac_init_version; then
  1302. cat <<\_ACEOF
  1303. uncrustify configure 0.61
  1304. generated by GNU Autoconf 2.69
  1305. Copyright (C) 2012 Free Software Foundation, Inc.
  1306. This configure script is free software; the Free Software Foundation
  1307. gives unlimited permission to copy, distribute and modify it.
  1308. _ACEOF
  1309. exit
  1310. fi
  1311. ## ------------------------ ##
  1312. ## Autoconf initialization. ##
  1313. ## ------------------------ ##
  1314. # ac_fn_cxx_try_compile LINENO
  1315. # ----------------------------
  1316. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1317. ac_fn_cxx_try_compile ()
  1318. {
  1319. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1320. rm -f conftest.$ac_objext
  1321. if { { ac_try="$ac_compile"
  1322. case "(($ac_try" in
  1323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1324. *) ac_try_echo=$ac_try;;
  1325. esac
  1326. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1327. $as_echo "$ac_try_echo"; } >&5
  1328. (eval "$ac_compile") 2>conftest.err
  1329. ac_status=$?
  1330. if test -s conftest.err; then
  1331. grep -v '^ *+' conftest.err >conftest.er1
  1332. cat conftest.er1 >&5
  1333. mv -f conftest.er1 conftest.err
  1334. fi
  1335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1336. test $ac_status = 0; } && {
  1337. test -z "$ac_cxx_werror_flag" ||
  1338. test ! -s conftest.err
  1339. } && test -s conftest.$ac_objext; then :
  1340. ac_retval=0
  1341. else
  1342. $as_echo "$as_me: failed program was:" >&5
  1343. sed 's/^/| /' conftest.$ac_ext >&5
  1344. ac_retval=1
  1345. fi
  1346. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1347. as_fn_set_status $ac_retval
  1348. } # ac_fn_cxx_try_compile
  1349. # ac_fn_c_try_compile LINENO
  1350. # --------------------------
  1351. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1352. ac_fn_c_try_compile ()
  1353. {
  1354. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1355. rm -f conftest.$ac_objext
  1356. if { { ac_try="$ac_compile"
  1357. case "(($ac_try" in
  1358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1359. *) ac_try_echo=$ac_try;;
  1360. esac
  1361. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1362. $as_echo "$ac_try_echo"; } >&5
  1363. (eval "$ac_compile") 2>conftest.err
  1364. ac_status=$?
  1365. if test -s conftest.err; then
  1366. grep -v '^ *+' conftest.err >conftest.er1
  1367. cat conftest.er1 >&5
  1368. mv -f conftest.er1 conftest.err
  1369. fi
  1370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1371. test $ac_status = 0; } && {
  1372. test -z "$ac_c_werror_flag" ||
  1373. test ! -s conftest.err
  1374. } && test -s conftest.$ac_objext; then :
  1375. ac_retval=0
  1376. else
  1377. $as_echo "$as_me: failed program was:" >&5
  1378. sed 's/^/| /' conftest.$ac_ext >&5
  1379. ac_retval=1
  1380. fi
  1381. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1382. as_fn_set_status $ac_retval
  1383. } # ac_fn_c_try_compile
  1384. # ac_fn_c_try_cpp LINENO
  1385. # ----------------------
  1386. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1387. ac_fn_c_try_cpp ()
  1388. {
  1389. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1390. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1391. case "(($ac_try" in
  1392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1393. *) ac_try_echo=$ac_try;;
  1394. esac
  1395. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1396. $as_echo "$ac_try_echo"; } >&5
  1397. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1398. ac_status=$?
  1399. if test -s conftest.err; then
  1400. grep -v '^ *+' conftest.err >conftest.er1
  1401. cat conftest.er1 >&5
  1402. mv -f conftest.er1 conftest.err
  1403. fi
  1404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1405. test $ac_status = 0; } > conftest.i && {
  1406. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1407. test ! -s conftest.err
  1408. }; then :
  1409. ac_retval=0
  1410. else
  1411. $as_echo "$as_me: failed program was:" >&5
  1412. sed 's/^/| /' conftest.$ac_ext >&5
  1413. ac_retval=1
  1414. fi
  1415. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1416. as_fn_set_status $ac_retval
  1417. } # ac_fn_c_try_cpp
  1418. # ac_fn_c_try_run LINENO
  1419. # ----------------------
  1420. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1421. # that executables *can* be run.
  1422. ac_fn_c_try_run ()
  1423. {
  1424. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1425. if { { ac_try="$ac_link"
  1426. case "(($ac_try" in
  1427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1428. *) ac_try_echo=$ac_try;;
  1429. esac
  1430. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1431. $as_echo "$ac_try_echo"; } >&5
  1432. (eval "$ac_link") 2>&5
  1433. ac_status=$?
  1434. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1435. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1436. { { case "(($ac_try" in
  1437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1438. *) ac_try_echo=$ac_try;;
  1439. esac
  1440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1441. $as_echo "$ac_try_echo"; } >&5
  1442. (eval "$ac_try") 2>&5
  1443. ac_status=$?
  1444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1445. test $ac_status = 0; }; }; then :
  1446. ac_retval=0
  1447. else
  1448. $as_echo "$as_me: program exited with status $ac_status" >&5
  1449. $as_echo "$as_me: failed program was:" >&5
  1450. sed 's/^/| /' conftest.$ac_ext >&5
  1451. ac_retval=$ac_status
  1452. fi
  1453. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1454. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1455. as_fn_set_status $ac_retval
  1456. } # ac_fn_c_try_run
  1457. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1458. # -------------------------------------------------------
  1459. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1460. # the include files in INCLUDES and setting the cache variable VAR
  1461. # accordingly.
  1462. ac_fn_c_check_header_mongrel ()
  1463. {
  1464. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1465. if eval \${$3+:} false; then :
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1467. $as_echo_n "checking for $2... " >&6; }
  1468. if eval \${$3+:} false; then :
  1469. $as_echo_n "(cached) " >&6
  1470. fi
  1471. eval ac_res=\$$3
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1473. $as_echo "$ac_res" >&6; }
  1474. else
  1475. # Is the header compilable?
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1477. $as_echo_n "checking $2 usability... " >&6; }
  1478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1479. /* end confdefs.h. */
  1480. $4
  1481. #include <$2>
  1482. _ACEOF
  1483. if ac_fn_c_try_compile "$LINENO"; then :
  1484. ac_header_compiler=yes
  1485. else
  1486. ac_header_compiler=no
  1487. fi
  1488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1490. $as_echo "$ac_header_compiler" >&6; }
  1491. # Is the header present?
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1493. $as_echo_n "checking $2 presence... " >&6; }
  1494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1495. /* end confdefs.h. */
  1496. #include <$2>
  1497. _ACEOF
  1498. if ac_fn_c_try_cpp "$LINENO"; then :
  1499. ac_header_preproc=yes
  1500. else
  1501. ac_header_preproc=no
  1502. fi
  1503. rm -f conftest.err conftest.i conftest.$ac_ext
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1505. $as_echo "$ac_header_preproc" >&6; }
  1506. # So? What about this header?
  1507. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1508. yes:no: )
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1510. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1512. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1513. ;;
  1514. no:yes:* )
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1516. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1518. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1520. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1522. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1524. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1525. ;;
  1526. esac
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1528. $as_echo_n "checking for $2... " >&6; }
  1529. if eval \${$3+:} false; then :
  1530. $as_echo_n "(cached) " >&6
  1531. else
  1532. eval "$3=\$ac_header_compiler"
  1533. fi
  1534. eval ac_res=\$$3
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1536. $as_echo "$ac_res" >&6; }
  1537. fi
  1538. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1539. } # ac_fn_c_check_header_mongrel
  1540. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1541. # -------------------------------------------------------
  1542. # Tests whether HEADER exists and can be compiled using the include files in
  1543. # INCLUDES, setting the cache variable VAR accordingly.
  1544. ac_fn_c_check_header_compile ()
  1545. {
  1546. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1548. $as_echo_n "checking for $2... " >&6; }
  1549. if eval \${$3+:} false; then :
  1550. $as_echo_n "(cached) " >&6
  1551. else
  1552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1553. /* end confdefs.h. */
  1554. $4
  1555. #include <$2>
  1556. _ACEOF
  1557. if ac_fn_c_try_compile "$LINENO"; then :
  1558. eval "$3=yes"
  1559. else
  1560. eval "$3=no"
  1561. fi
  1562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1563. fi
  1564. eval ac_res=\$$3
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1566. $as_echo "$ac_res" >&6; }
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. } # ac_fn_c_check_header_compile
  1569. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1570. # -------------------------------------------
  1571. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1572. # variable VAR accordingly.
  1573. ac_fn_c_check_type ()
  1574. {
  1575. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1577. $as_echo_n "checking for $2... " >&6; }
  1578. if eval \${$3+:} false; then :
  1579. $as_echo_n "(cached) " >&6
  1580. else
  1581. eval "$3=no"
  1582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1583. /* end confdefs.h. */
  1584. $4
  1585. int
  1586. main ()
  1587. {
  1588. if (sizeof ($2))
  1589. return 0;
  1590. ;
  1591. return 0;
  1592. }
  1593. _ACEOF
  1594. if ac_fn_c_try_compile "$LINENO"; then :
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. $4
  1598. int
  1599. main ()
  1600. {
  1601. if (sizeof (($2)))
  1602. return 0;
  1603. ;
  1604. return 0;
  1605. }
  1606. _ACEOF
  1607. if ac_fn_c_try_compile "$LINENO"; then :
  1608. else
  1609. eval "$3=yes"
  1610. fi
  1611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1612. fi
  1613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1614. fi
  1615. eval ac_res=\$$3
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1617. $as_echo "$ac_res" >&6; }
  1618. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1619. } # ac_fn_c_check_type
  1620. # ac_fn_c_try_link LINENO
  1621. # -----------------------
  1622. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1623. ac_fn_c_try_link ()
  1624. {
  1625. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1626. rm -f conftest.$ac_objext conftest$ac_exeext
  1627. if { { ac_try="$ac_link"
  1628. case "(($ac_try" in
  1629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1630. *) ac_try_echo=$ac_try;;
  1631. esac
  1632. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1633. $as_echo "$ac_try_echo"; } >&5
  1634. (eval "$ac_link") 2>conftest.err
  1635. ac_status=$?
  1636. if test -s conftest.err; then
  1637. grep -v '^ *+' conftest.err >conftest.er1
  1638. cat conftest.er1 >&5
  1639. mv -f conftest.er1 conftest.err
  1640. fi
  1641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1642. test $ac_status = 0; } && {
  1643. test -z "$ac_c_werror_flag" ||
  1644. test ! -s conftest.err
  1645. } && test -s conftest$ac_exeext && {
  1646. test "$cross_compiling" = yes ||
  1647. test -x conftest$ac_exeext
  1648. }; then :
  1649. ac_retval=0
  1650. else
  1651. $as_echo "$as_me: failed program was:" >&5
  1652. sed 's/^/| /' conftest.$ac_ext >&5
  1653. ac_retval=1
  1654. fi
  1655. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1656. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1657. # interfere with the next link command; also delete a directory that is
  1658. # left behind by Apple's compiler. We do this before executing the actions.
  1659. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1660. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1661. as_fn_set_status $ac_retval
  1662. } # ac_fn_c_try_link
  1663. # ac_fn_c_check_func LINENO FUNC VAR
  1664. # ----------------------------------
  1665. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1666. ac_fn_c_check_func ()
  1667. {
  1668. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1670. $as_echo_n "checking for $2... " >&6; }
  1671. if eval \${$3+:} false; then :
  1672. $as_echo_n "(cached) " >&6
  1673. else
  1674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1675. /* end confdefs.h. */
  1676. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1677. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1678. #define $2 innocuous_$2
  1679. /* System header to define __stub macros and hopefully few prototypes,
  1680. which can conflict with char $2 (); below.
  1681. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1682. <limits.h> exists even on freestanding compilers. */
  1683. #ifdef __STDC__
  1684. # include <limits.h>
  1685. #else
  1686. # include <assert.h>
  1687. #endif
  1688. #undef $2
  1689. /* Override any GCC internal prototype to avoid an error.
  1690. Use char because int might match the return type of a GCC
  1691. builtin and then its argument prototype would still apply. */
  1692. #ifdef __cplusplus
  1693. extern "C"
  1694. #endif
  1695. char $2 ();
  1696. /* The GNU C library defines this for functions which it implements
  1697. to always fail with ENOSYS. Some functions are actually named
  1698. something starting with __ and the normal name is an alias. */
  1699. #if defined __stub_$2 || defined __stub___$2
  1700. choke me
  1701. #endif
  1702. int
  1703. main ()
  1704. {
  1705. return $2 ();
  1706. ;
  1707. return 0;
  1708. }
  1709. _ACEOF
  1710. if ac_fn_c_try_link "$LINENO"; then :
  1711. eval "$3=yes"
  1712. else
  1713. eval "$3=no"
  1714. fi
  1715. rm -f core conftest.err conftest.$ac_objext \
  1716. conftest$ac_exeext conftest.$ac_ext
  1717. fi
  1718. eval ac_res=\$$3
  1719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1720. $as_echo "$ac_res" >&6; }
  1721. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1722. } # ac_fn_c_check_func
  1723. cat >config.log <<_ACEOF
  1724. This file contains any messages produced by compilers while
  1725. running configure, to aid debugging if configure makes a mistake.
  1726. It was created by uncrustify $as_me 0.61, which was
  1727. generated by GNU Autoconf 2.69. Invocation command line was
  1728. $ $0 $@
  1729. _ACEOF
  1730. exec 5>>config.log
  1731. {
  1732. cat <<_ASUNAME
  1733. ## --------- ##
  1734. ## Platform. ##
  1735. ## --------- ##
  1736. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1737. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1738. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1739. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1740. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1741. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1742. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1743. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1744. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1745. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1746. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1747. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1748. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1749. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1750. _ASUNAME
  1751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1752. for as_dir in $PATH
  1753. do
  1754. IFS=$as_save_IFS
  1755. test -z "$as_dir" && as_dir=.
  1756. $as_echo "PATH: $as_dir"
  1757. done
  1758. IFS=$as_save_IFS
  1759. } >&5
  1760. cat >&5 <<_ACEOF
  1761. ## ----------- ##
  1762. ## Core tests. ##
  1763. ## ----------- ##
  1764. _ACEOF
  1765. # Keep a trace of the command line.
  1766. # Strip out --no-create and --no-recursion so they do not pile up.
  1767. # Strip out --silent because we don't want to record it for future runs.
  1768. # Also quote any args containing shell meta-characters.
  1769. # Make two passes to allow for proper duplicate-argument suppression.
  1770. ac_configure_args=
  1771. ac_configure_args0=
  1772. ac_configure_args1=
  1773. ac_must_keep_next=false
  1774. for ac_pass in 1 2
  1775. do
  1776. for ac_arg
  1777. do
  1778. case $ac_arg in
  1779. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1780. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1781. | -silent | --silent | --silen | --sile | --sil)
  1782. continue ;;
  1783. *\'*)
  1784. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1785. esac
  1786. case $ac_pass in
  1787. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1788. 2)
  1789. as_fn_append ac_configure_args1 " '$ac_arg'"
  1790. if test $ac_must_keep_next = true; then
  1791. ac_must_keep_next=false # Got value, back to normal.
  1792. else
  1793. case $ac_arg in
  1794. *=* | --config-cache | -C | -disable-* | --disable-* \
  1795. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1796. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1797. | -with-* | --with-* | -without-* | --without-* | --x)
  1798. case "$ac_configure_args0 " in
  1799. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1800. esac
  1801. ;;
  1802. -* ) ac_must_keep_next=true ;;
  1803. esac
  1804. fi
  1805. as_fn_append ac_configure_args " '$ac_arg'"
  1806. ;;
  1807. esac
  1808. done
  1809. done
  1810. { ac_configure_args0=; unset ac_configure_args0;}
  1811. { ac_configure_args1=; unset ac_configure_args1;}
  1812. # When interrupted or exit'd, cleanup temporary files, and complete
  1813. # config.log. We remove comments because anyway the quotes in there
  1814. # would cause problems or look ugly.
  1815. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1816. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1817. trap 'exit_status=$?
  1818. # Save into config.log some information that might help in debugging.
  1819. {
  1820. echo
  1821. $as_echo "## ---------------- ##
  1822. ## Cache variables. ##
  1823. ## ---------------- ##"
  1824. echo
  1825. # The following way of writing the cache mishandles newlines in values,
  1826. (
  1827. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1828. eval ac_val=\$$ac_var
  1829. case $ac_val in #(
  1830. *${as_nl}*)
  1831. case $ac_var in #(
  1832. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1833. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1834. esac
  1835. case $ac_var in #(
  1836. _ | IFS | as_nl) ;; #(
  1837. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1838. *) { eval $ac_var=; unset $ac_var;} ;;
  1839. esac ;;
  1840. esac
  1841. done
  1842. (set) 2>&1 |
  1843. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1844. *${as_nl}ac_space=\ *)
  1845. sed -n \
  1846. "s/'\''/'\''\\\\'\'''\''/g;
  1847. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1848. ;; #(
  1849. *)
  1850. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1851. ;;
  1852. esac |
  1853. sort
  1854. )
  1855. echo
  1856. $as_echo "## ----------------- ##
  1857. ## Output variables. ##
  1858. ## ----------------- ##"
  1859. echo
  1860. for ac_var in $ac_subst_vars
  1861. do
  1862. eval ac_val=\$$ac_var
  1863. case $ac_val in
  1864. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1865. esac
  1866. $as_echo "$ac_var='\''$ac_val'\''"
  1867. done | sort
  1868. echo
  1869. if test -n "$ac_subst_files"; then
  1870. $as_echo "## ------------------- ##
  1871. ## File substitutions. ##
  1872. ## ------------------- ##"
  1873. echo
  1874. for ac_var in $ac_subst_files
  1875. do
  1876. eval ac_val=\$$ac_var
  1877. case $ac_val in
  1878. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1879. esac
  1880. $as_echo "$ac_var='\''$ac_val'\''"
  1881. done | sort
  1882. echo
  1883. fi
  1884. if test -s confdefs.h; then
  1885. $as_echo "## ----------- ##
  1886. ## confdefs.h. ##
  1887. ## ----------- ##"
  1888. echo
  1889. cat confdefs.h
  1890. echo
  1891. fi
  1892. test "$ac_signal" != 0 &&
  1893. $as_echo "$as_me: caught signal $ac_signal"
  1894. $as_echo "$as_me: exit $exit_status"
  1895. } >&5
  1896. rm -f core *.core core.conftest.* &&
  1897. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1898. exit $exit_status
  1899. ' 0
  1900. for ac_signal in 1 2 13 15; do
  1901. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1902. done
  1903. ac_signal=0
  1904. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1905. rm -f -r conftest* confdefs.h
  1906. $as_echo "/* confdefs.h */" > confdefs.h
  1907. # Predefined preprocessor variables.
  1908. cat >>confdefs.h <<_ACEOF
  1909. #define PACKAGE_NAME "$PACKAGE_NAME"
  1910. _ACEOF
  1911. cat >>confdefs.h <<_ACEOF
  1912. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1913. _ACEOF
  1914. cat >>confdefs.h <<_ACEOF
  1915. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1916. _ACEOF
  1917. cat >>confdefs.h <<_ACEOF
  1918. #define PACKAGE_STRING "$PACKAGE_STRING"
  1919. _ACEOF
  1920. cat >>confdefs.h <<_ACEOF
  1921. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1922. _ACEOF
  1923. cat >>confdefs.h <<_ACEOF
  1924. #define PACKAGE_URL "$PACKAGE_URL"
  1925. _ACEOF
  1926. # Let the site file select an alternate cache file if it wants to.
  1927. # Prefer an explicitly selected file to automatically selected ones.
  1928. ac_site_file1=NONE
  1929. ac_site_file2=NONE
  1930. if test -n "$CONFIG_SITE"; then
  1931. # We do not want a PATH search for config.site.
  1932. case $CONFIG_SITE in #((
  1933. -*) ac_site_file1=./$CONFIG_SITE;;
  1934. */*) ac_site_file1=$CONFIG_SITE;;
  1935. *) ac_site_file1=./$CONFIG_SITE;;
  1936. esac
  1937. elif test "x$prefix" != xNONE; then
  1938. ac_site_file1=$prefix/share/config.site
  1939. ac_site_file2=$prefix/etc/config.site
  1940. else
  1941. ac_site_file1=$ac_default_prefix/share/config.site
  1942. ac_site_file2=$ac_default_prefix/etc/config.site
  1943. fi
  1944. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1945. do
  1946. test "x$ac_site_file" = xNONE && continue
  1947. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1949. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1950. sed 's/^/| /' "$ac_site_file" >&5
  1951. . "$ac_site_file" \
  1952. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1953. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1954. as_fn_error $? "failed to load site script $ac_site_file
  1955. See \`config.log' for more details" "$LINENO" 5; }
  1956. fi
  1957. done
  1958. if test -r "$cache_file"; then
  1959. # Some versions of bash will fail to source /dev/null (special files
  1960. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1961. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1963. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1964. case $cache_file in
  1965. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1966. *) . "./$cache_file";;
  1967. esac
  1968. fi
  1969. else
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1971. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1972. >$cache_file
  1973. fi
  1974. # Check that the precious variables saved in the cache have kept the same
  1975. # value.
  1976. ac_cache_corrupted=false
  1977. for ac_var in $ac_precious_vars; do
  1978. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1979. eval ac_new_set=\$ac_env_${ac_var}_set
  1980. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1981. eval ac_new_val=\$ac_env_${ac_var}_value
  1982. case $ac_old_set,$ac_new_set in
  1983. set,)
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1985. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1986. ac_cache_corrupted=: ;;
  1987. ,set)
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1989. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1990. ac_cache_corrupted=: ;;
  1991. ,);;
  1992. *)
  1993. if test "x$ac_old_val" != "x$ac_new_val"; then
  1994. # differences in whitespace do not lead to failure.
  1995. ac_old_val_w=`echo x $ac_old_val`
  1996. ac_new_val_w=`echo x $ac_new_val`
  1997. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1999. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2000. ac_cache_corrupted=:
  2001. else
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2003. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2004. eval $ac_var=\$ac_old_val
  2005. fi
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2007. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2009. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2010. fi;;
  2011. esac
  2012. # Pass precious variables to config.status.
  2013. if test "$ac_new_set" = set; then
  2014. case $ac_new_val in
  2015. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2016. *) ac_arg=$ac_var=$ac_new_val ;;
  2017. esac
  2018. case " $ac_configure_args " in
  2019. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2020. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2021. esac
  2022. fi
  2023. done
  2024. if $ac_cache_corrupted; then
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2026. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2028. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2029. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2030. fi
  2031. ## -------------------- ##
  2032. ## Main body of script. ##
  2033. ## -------------------- ##
  2034. ac_ext=c
  2035. ac_cpp='$CPP $CPPFLAGS'
  2036. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2037. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2038. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2039. enable_silent_rules=${enable_silent_rules-yes}
  2040. am__api_version='1.14'
  2041. ac_aux_dir=
  2042. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2043. if test -f "$ac_dir/install-sh"; then
  2044. ac_aux_dir=$ac_dir
  2045. ac_install_sh="$ac_aux_dir/install-sh -c"
  2046. break
  2047. elif test -f "$ac_dir/install.sh"; then
  2048. ac_aux_dir=$ac_dir
  2049. ac_install_sh="$ac_aux_dir/install.sh -c"
  2050. break
  2051. elif test -f "$ac_dir/shtool"; then
  2052. ac_aux_dir=$ac_dir
  2053. ac_install_sh="$ac_aux_dir/shtool install -c"
  2054. break
  2055. fi
  2056. done
  2057. if test -z "$ac_aux_dir"; then
  2058. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2059. fi
  2060. # These three variables are undocumented and unsupported,
  2061. # and are intended to be withdrawn in a future Autoconf release.
  2062. # They can cause serious problems if a builder's source tree is in a directory
  2063. # whose full name contains unusual characters.
  2064. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2065. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2066. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2067. # Find a good install program. We prefer a C program (faster),
  2068. # so one script is as good as another. But avoid the broken or
  2069. # incompatible versions:
  2070. # SysV /etc/install, /usr/sbin/install
  2071. # SunOS /usr/etc/install
  2072. # IRIX /sbin/install
  2073. # AIX /bin/install
  2074. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2075. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2076. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2077. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2078. # OS/2's system install, which has a completely different semantic
  2079. # ./install, which can be erroneously created by make from ./install.sh.
  2080. # Reject install programs that cannot install multiple files.
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2082. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2083. if test -z "$INSTALL"; then
  2084. if ${ac_cv_path_install+:} false; then :
  2085. $as_echo_n "(cached) " >&6
  2086. else
  2087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2088. for as_dir in $PATH
  2089. do
  2090. IFS=$as_save_IFS
  2091. test -z "$as_dir" && as_dir=.
  2092. # Account for people who put trailing slashes in PATH elements.
  2093. case $as_dir/ in #((
  2094. ./ | .// | /[cC]/* | \
  2095. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2096. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2097. /usr/ucb/* ) ;;
  2098. *)
  2099. # OSF1 and SCO ODT 3.0 have their own names for install.
  2100. # Don't use installbsd from OSF since it installs stuff as root
  2101. # by default.
  2102. for ac_prog in ginstall scoinst install; do
  2103. for ac_exec_ext in '' $ac_executable_extensions; do
  2104. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2105. if test $ac_prog = install &&
  2106. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2107. # AIX install. It has an incompatible calling convention.
  2108. :
  2109. elif test $ac_prog = install &&
  2110. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2111. # program-specific install script used by HP pwplus--don't use.
  2112. :
  2113. else
  2114. rm -rf conftest.one conftest.two conftest.dir
  2115. echo one > conftest.one
  2116. echo two > conftest.two
  2117. mkdir conftest.dir
  2118. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2119. test -s conftest.one && test -s conftest.two &&
  2120. test -s conftest.dir/conftest.one &&
  2121. test -s conftest.dir/conftest.two
  2122. then
  2123. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2124. break 3
  2125. fi
  2126. fi
  2127. fi
  2128. done
  2129. done
  2130. ;;
  2131. esac
  2132. done
  2133. IFS=$as_save_IFS
  2134. rm -rf conftest.one conftest.two conftest.dir
  2135. fi
  2136. if test "${ac_cv_path_install+set}" = set; then
  2137. INSTALL=$ac_cv_path_install
  2138. else
  2139. # As a last resort, use the slow shell script. Don't cache a
  2140. # value for INSTALL within a source directory, because that will
  2141. # break other packages using the cache if that directory is
  2142. # removed, or if the value is a relative name.
  2143. INSTALL=$ac_install_sh
  2144. fi
  2145. fi
  2146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2147. $as_echo "$INSTALL" >&6; }
  2148. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2149. # It thinks the first close brace ends the variable substitution.
  2150. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2151. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2152. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2154. $as_echo_n "checking whether build environment is sane... " >&6; }
  2155. # Reject unsafe characters in $srcdir or the absolute working directory
  2156. # name. Accept space and tab only in the latter.
  2157. am_lf='
  2158. '
  2159. case `pwd` in
  2160. *[\\\"\#\$\&\'\`$am_lf]*)
  2161. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2162. esac
  2163. case $srcdir in
  2164. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2165. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2166. esac
  2167. # Do 'set' in a subshell so we don't clobber the current shell's
  2168. # arguments. Must try -L first in case configure is actually a
  2169. # symlink; some systems play weird games with the mod time of symlinks
  2170. # (eg FreeBSD returns the mod time of the symlink's containing
  2171. # directory).
  2172. if (
  2173. am_has_slept=no
  2174. for am_try in 1 2; do
  2175. echo "timestamp, slept: $am_has_slept" > conftest.file
  2176. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2177. if test "$*" = "X"; then
  2178. # -L didn't work.
  2179. set X `ls -t "$srcdir/configure" conftest.file`
  2180. fi
  2181. if test "$*" != "X $srcdir/configure conftest.file" \
  2182. && test "$*" != "X conftest.file $srcdir/configure"; then
  2183. # If neither matched, then we have a broken ls. This can happen
  2184. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2185. # broken ls alias from the environment. This has actually
  2186. # happened. Such a system could not be considered "sane".
  2187. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2188. alias in your environment" "$LINENO" 5
  2189. fi
  2190. if test "$2" = conftest.file || test $am_try -eq 2; then
  2191. break
  2192. fi
  2193. # Just in case.
  2194. sleep 1
  2195. am_has_slept=yes
  2196. done
  2197. test "$2" = conftest.file
  2198. )
  2199. then
  2200. # Ok.
  2201. :
  2202. else
  2203. as_fn_error $? "newly created file is older than distributed files!
  2204. Check your system clock" "$LINENO" 5
  2205. fi
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2207. $as_echo "yes" >&6; }
  2208. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2209. # generated files are strictly newer.
  2210. am_sleep_pid=
  2211. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2212. ( sleep 1 ) &
  2213. am_sleep_pid=$!
  2214. fi
  2215. rm -f conftest.file
  2216. test "$program_prefix" != NONE &&
  2217. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2218. # Use a double $ so make ignores it.
  2219. test "$program_suffix" != NONE &&
  2220. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2221. # Double any \ or $.
  2222. # By default was `s,x,x', remove it if useless.
  2223. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2224. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2225. # expand $ac_aux_dir to an absolute path
  2226. am_aux_dir=`cd $ac_aux_dir && pwd`
  2227. if test x"${MISSING+set}" != xset; then
  2228. case $am_aux_dir in
  2229. *\ * | *\ *)
  2230. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2231. *)
  2232. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2233. esac
  2234. fi
  2235. # Use eval to expand $SHELL
  2236. if eval "$MISSING --is-lightweight"; then
  2237. am_missing_run="$MISSING "
  2238. else
  2239. am_missing_run=
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2241. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2242. fi
  2243. if test x"${install_sh}" != xset; then
  2244. case $am_aux_dir in
  2245. *\ * | *\ *)
  2246. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2247. *)
  2248. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2249. esac
  2250. fi
  2251. # Installed binaries are usually stripped using 'strip' when the user
  2252. # run "make install-strip". However 'strip' might not be the right
  2253. # tool to use in cross-compilation environments, therefore Automake
  2254. # will honor the 'STRIP' environment variable to overrule this program.
  2255. if test "$cross_compiling" != no; then
  2256. if test -n "$ac_tool_prefix"; then
  2257. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2258. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2260. $as_echo_n "checking for $ac_word... " >&6; }
  2261. if ${ac_cv_prog_STRIP+:} false; then :
  2262. $as_echo_n "(cached) " >&6
  2263. else
  2264. if test -n "$STRIP"; then
  2265. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2266. else
  2267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2268. for as_dir in $PATH
  2269. do
  2270. IFS=$as_save_IFS
  2271. test -z "$as_dir" && as_dir=.
  2272. for ac_exec_ext in '' $ac_executable_extensions; do
  2273. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2274. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2276. break 2
  2277. fi
  2278. done
  2279. done
  2280. IFS=$as_save_IFS
  2281. fi
  2282. fi
  2283. STRIP=$ac_cv_prog_STRIP
  2284. if test -n "$STRIP"; then
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2286. $as_echo "$STRIP" >&6; }
  2287. else
  2288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2289. $as_echo "no" >&6; }
  2290. fi
  2291. fi
  2292. if test -z "$ac_cv_prog_STRIP"; then
  2293. ac_ct_STRIP=$STRIP
  2294. # Extract the first word of "strip", so it can be a program name with args.
  2295. set dummy strip; ac_word=$2
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2297. $as_echo_n "checking for $ac_word... " >&6; }
  2298. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2299. $as_echo_n "(cached) " >&6
  2300. else
  2301. if test -n "$ac_ct_STRIP"; then
  2302. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2303. else
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. for ac_exec_ext in '' $ac_executable_extensions; do
  2310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2311. ac_cv_prog_ac_ct_STRIP="strip"
  2312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2313. break 2
  2314. fi
  2315. done
  2316. done
  2317. IFS=$as_save_IFS
  2318. fi
  2319. fi
  2320. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2321. if test -n "$ac_ct_STRIP"; then
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2323. $as_echo "$ac_ct_STRIP" >&6; }
  2324. else
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2326. $as_echo "no" >&6; }
  2327. fi
  2328. if test "x$ac_ct_STRIP" = x; then
  2329. STRIP=":"
  2330. else
  2331. case $cross_compiling:$ac_tool_warned in
  2332. yes:)
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2334. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2335. ac_tool_warned=yes ;;
  2336. esac
  2337. STRIP=$ac_ct_STRIP
  2338. fi
  2339. else
  2340. STRIP="$ac_cv_prog_STRIP"
  2341. fi
  2342. fi
  2343. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2345. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2346. if test -z "$MKDIR_P"; then
  2347. if ${ac_cv_path_mkdir+:} false; then :
  2348. $as_echo_n "(cached) " >&6
  2349. else
  2350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2351. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2352. do
  2353. IFS=$as_save_IFS
  2354. test -z "$as_dir" && as_dir=.
  2355. for ac_prog in mkdir gmkdir; do
  2356. for ac_exec_ext in '' $ac_executable_extensions; do
  2357. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2358. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2359. 'mkdir (GNU coreutils) '* | \
  2360. 'mkdir (coreutils) '* | \
  2361. 'mkdir (fileutils) '4.1*)
  2362. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2363. break 3;;
  2364. esac
  2365. done
  2366. done
  2367. done
  2368. IFS=$as_save_IFS
  2369. fi
  2370. test -d ./--version && rmdir ./--version
  2371. if test "${ac_cv_path_mkdir+set}" = set; then
  2372. MKDIR_P="$ac_cv_path_mkdir -p"
  2373. else
  2374. # As a last resort, use the slow shell script. Don't cache a
  2375. # value for MKDIR_P within a source directory, because that will
  2376. # break other packages using the cache if that directory is
  2377. # removed, or if the value is a relative name.
  2378. MKDIR_P="$ac_install_sh -d"
  2379. fi
  2380. fi
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2382. $as_echo "$MKDIR_P" >&6; }
  2383. for ac_prog in gawk mawk nawk awk
  2384. do
  2385. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2386. set dummy $ac_prog; ac_word=$2
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2388. $as_echo_n "checking for $ac_word... " >&6; }
  2389. if ${ac_cv_prog_AWK+:} false; then :
  2390. $as_echo_n "(cached) " >&6
  2391. else
  2392. if test -n "$AWK"; then
  2393. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2394. else
  2395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. for as_dir in $PATH
  2397. do
  2398. IFS=$as_save_IFS
  2399. test -z "$as_dir" && as_dir=.
  2400. for ac_exec_ext in '' $ac_executable_extensions; do
  2401. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2402. ac_cv_prog_AWK="$ac_prog"
  2403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2404. break 2
  2405. fi
  2406. done
  2407. done
  2408. IFS=$as_save_IFS
  2409. fi
  2410. fi
  2411. AWK=$ac_cv_prog_AWK
  2412. if test -n "$AWK"; then
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2414. $as_echo "$AWK" >&6; }
  2415. else
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2417. $as_echo "no" >&6; }
  2418. fi
  2419. test -n "$AWK" && break
  2420. done
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2422. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2423. set x ${MAKE-make}
  2424. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2425. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2426. $as_echo_n "(cached) " >&6
  2427. else
  2428. cat >conftest.make <<\_ACEOF
  2429. SHELL = /bin/sh
  2430. all:
  2431. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2432. _ACEOF
  2433. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2434. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2435. *@@@%%%=?*=@@@%%%*)
  2436. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2437. *)
  2438. eval ac_cv_prog_make_${ac_make}_set=no;;
  2439. esac
  2440. rm -f conftest.make
  2441. fi
  2442. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2444. $as_echo "yes" >&6; }
  2445. SET_MAKE=
  2446. else
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2448. $as_echo "no" >&6; }
  2449. SET_MAKE="MAKE=${MAKE-make}"
  2450. fi
  2451. rm -rf .tst 2>/dev/null
  2452. mkdir .tst 2>/dev/null
  2453. if test -d .tst; then
  2454. am__leading_dot=.
  2455. else
  2456. am__leading_dot=_
  2457. fi
  2458. rmdir .tst 2>/dev/null
  2459. # Check whether --enable-silent-rules was given.
  2460. if test "${enable_silent_rules+set}" = set; then :
  2461. enableval=$enable_silent_rules;
  2462. fi
  2463. case $enable_silent_rules in # (((
  2464. yes) AM_DEFAULT_VERBOSITY=0;;
  2465. no) AM_DEFAULT_VERBOSITY=1;;
  2466. *) AM_DEFAULT_VERBOSITY=1;;
  2467. esac
  2468. am_make=${MAKE-make}
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2470. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2471. if ${am_cv_make_support_nested_variables+:} false; then :
  2472. $as_echo_n "(cached) " >&6
  2473. else
  2474. if $as_echo 'TRUE=$(BAR$(V))
  2475. BAR0=false
  2476. BAR1=true
  2477. V=1
  2478. am__doit:
  2479. @$(TRUE)
  2480. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2481. am_cv_make_support_nested_variables=yes
  2482. else
  2483. am_cv_make_support_nested_variables=no
  2484. fi
  2485. fi
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2487. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2488. if test $am_cv_make_support_nested_variables = yes; then
  2489. AM_V='$(V)'
  2490. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2491. else
  2492. AM_V=$AM_DEFAULT_VERBOSITY
  2493. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2494. fi
  2495. AM_BACKSLASH='\'
  2496. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2497. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2498. # is not polluted with repeated "-I."
  2499. am__isrc=' -I$(srcdir)'
  2500. # test to see if srcdir already configured
  2501. if test -f $srcdir/config.status; then
  2502. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2503. fi
  2504. fi
  2505. # test whether we have cygpath
  2506. if test -z "$CYGPATH_W"; then
  2507. if (cygpath --version) >/dev/null 2>/dev/null; then
  2508. CYGPATH_W='cygpath -w'
  2509. else
  2510. CYGPATH_W=echo
  2511. fi
  2512. fi
  2513. # Define the identity of the package.
  2514. PACKAGE='uncrustify'
  2515. VERSION='0.61'
  2516. cat >>confdefs.h <<_ACEOF
  2517. #define PACKAGE "$PACKAGE"
  2518. _ACEOF
  2519. cat >>confdefs.h <<_ACEOF
  2520. #define VERSION "$VERSION"
  2521. _ACEOF
  2522. # Some tools Automake needs.
  2523. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2524. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2525. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2526. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2527. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2528. # For better backward compatibility. To be removed once Automake 1.9.x
  2529. # dies out for good. For more background, see:
  2530. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2531. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2532. mkdir_p='$(MKDIR_P)'
  2533. # We need awk for the "check" target. The system "awk" is bad on
  2534. # some platforms.
  2535. # Always define AMTAR for backward compatibility. Yes, it's still used
  2536. # in the wild :-( We should find a proper way to deprecate it ...
  2537. AMTAR='$${TAR-tar}'
  2538. # We'll loop over all known methods to create a tar archive until one works.
  2539. _am_tools='gnutar pax cpio none'
  2540. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2541. # POSIX will say in a future version that running "rm -f" with no argument
  2542. # is OK; and we want to be able to make that assumption in our Makefile
  2543. # recipes. So use an aggressive probe to check that the usage we want is
  2544. # actually supported "in the wild" to an acceptable degree.
  2545. # See automake bug#10828.
  2546. # To make any issue more visible, cause the running configure to be aborted
  2547. # by default if the 'rm' program in use doesn't match our expectations; the
  2548. # user can still override this though.
  2549. if rm -f && rm -fr && rm -rf; then : OK; else
  2550. cat >&2 <<'END'
  2551. Oops!
  2552. Your 'rm' program seems unable to run without file operands specified
  2553. on the command line, even when the '-f' option is present. This is contrary
  2554. to the behaviour of most rm programs out there, and not conforming with
  2555. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2556. Please tell bug-automake@gnu.org about your system, including the value
  2557. of your $PATH and any error possibly output before this message. This
  2558. can help us improve future automake versions.
  2559. END
  2560. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2561. echo 'Configuration will proceed anyway, since you have set the' >&2
  2562. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2563. echo >&2
  2564. else
  2565. cat >&2 <<'END'
  2566. Aborting the configuration process, to ensure you take notice of the issue.
  2567. You can download and install GNU coreutils to get an 'rm' implementation
  2568. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2569. If you want to complete the configuration process using your problematic
  2570. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2571. to "yes", and re-run configure.
  2572. END
  2573. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2574. fi
  2575. fi
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2577. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2578. # Check whether --enable-maintainer-mode was given.
  2579. if test "${enable_maintainer_mode+set}" = set; then :
  2580. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2581. else
  2582. USE_MAINTAINER_MODE=no
  2583. fi
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2585. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2586. if test $USE_MAINTAINER_MODE = yes; then
  2587. MAINTAINER_MODE_TRUE=
  2588. MAINTAINER_MODE_FALSE='#'
  2589. else
  2590. MAINTAINER_MODE_TRUE='#'
  2591. MAINTAINER_MODE_FALSE=
  2592. fi
  2593. MAINT=$MAINTAINER_MODE_TRUE
  2594. ac_config_headers="$ac_config_headers src/config.h"
  2595. # Checks for programs.
  2596. ac_ext=cpp
  2597. ac_cpp='$CXXCPP $CPPFLAGS'
  2598. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2599. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2600. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2601. if test -z "$CXX"; then
  2602. if test -n "$CCC"; then
  2603. CXX=$CCC
  2604. else
  2605. if test -n "$ac_tool_prefix"; then
  2606. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2607. do
  2608. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2609. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2611. $as_echo_n "checking for $ac_word... " >&6; }
  2612. if ${ac_cv_prog_CXX+:} false; then :
  2613. $as_echo_n "(cached) " >&6
  2614. else
  2615. if test -n "$CXX"; then
  2616. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2617. else
  2618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2619. for as_dir in $PATH
  2620. do
  2621. IFS=$as_save_IFS
  2622. test -z "$as_dir" && as_dir=.
  2623. for ac_exec_ext in '' $ac_executable_extensions; do
  2624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2625. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2627. break 2
  2628. fi
  2629. done
  2630. done
  2631. IFS=$as_save_IFS
  2632. fi
  2633. fi
  2634. CXX=$ac_cv_prog_CXX
  2635. if test -n "$CXX"; then
  2636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2637. $as_echo "$CXX" >&6; }
  2638. else
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2640. $as_echo "no" >&6; }
  2641. fi
  2642. test -n "$CXX" && break
  2643. done
  2644. fi
  2645. if test -z "$CXX"; then
  2646. ac_ct_CXX=$CXX
  2647. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2648. do
  2649. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2650. set dummy $ac_prog; ac_word=$2
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2652. $as_echo_n "checking for $ac_word... " >&6; }
  2653. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2654. $as_echo_n "(cached) " >&6
  2655. else
  2656. if test -n "$ac_ct_CXX"; then
  2657. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2658. else
  2659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2660. for as_dir in $PATH
  2661. do
  2662. IFS=$as_save_IFS
  2663. test -z "$as_dir" && as_dir=.
  2664. for ac_exec_ext in '' $ac_executable_extensions; do
  2665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2666. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2668. break 2
  2669. fi
  2670. done
  2671. done
  2672. IFS=$as_save_IFS
  2673. fi
  2674. fi
  2675. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2676. if test -n "$ac_ct_CXX"; then
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2678. $as_echo "$ac_ct_CXX" >&6; }
  2679. else
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2681. $as_echo "no" >&6; }
  2682. fi
  2683. test -n "$ac_ct_CXX" && break
  2684. done
  2685. if test "x$ac_ct_CXX" = x; then
  2686. CXX="g++"
  2687. else
  2688. case $cross_compiling:$ac_tool_warned in
  2689. yes:)
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2692. ac_tool_warned=yes ;;
  2693. esac
  2694. CXX=$ac_ct_CXX
  2695. fi
  2696. fi
  2697. fi
  2698. fi
  2699. # Provide some information about the compiler.
  2700. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2701. set X $ac_compile
  2702. ac_compiler=$2
  2703. for ac_option in --version -v -V -qversion; do
  2704. { { ac_try="$ac_compiler $ac_option >&5"
  2705. case "(($ac_try" in
  2706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2707. *) ac_try_echo=$ac_try;;
  2708. esac
  2709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2710. $as_echo "$ac_try_echo"; } >&5
  2711. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2712. ac_status=$?
  2713. if test -s conftest.err; then
  2714. sed '10a\
  2715. ... rest of stderr output deleted ...
  2716. 10q' conftest.err >conftest.er1
  2717. cat conftest.er1 >&5
  2718. fi
  2719. rm -f conftest.er1 conftest.err
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2721. test $ac_status = 0; }
  2722. done
  2723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2724. /* end confdefs.h. */
  2725. int
  2726. main ()
  2727. {
  2728. ;
  2729. return 0;
  2730. }
  2731. _ACEOF
  2732. ac_clean_files_save=$ac_clean_files
  2733. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2734. # Try to create an executable without -o first, disregard a.out.
  2735. # It will help us diagnose broken compilers, and finding out an intuition
  2736. # of exeext.
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2738. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2739. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2740. # The possible output files:
  2741. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2742. ac_rmfiles=
  2743. for ac_file in $ac_files
  2744. do
  2745. case $ac_file in
  2746. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2747. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2748. esac
  2749. done
  2750. rm -f $ac_rmfiles
  2751. if { { ac_try="$ac_link_default"
  2752. case "(($ac_try" in
  2753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2754. *) ac_try_echo=$ac_try;;
  2755. esac
  2756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2757. $as_echo "$ac_try_echo"; } >&5
  2758. (eval "$ac_link_default") 2>&5
  2759. ac_status=$?
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2761. test $ac_status = 0; }; then :
  2762. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2763. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2764. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2765. # so that the user can short-circuit this test for compilers unknown to
  2766. # Autoconf.
  2767. for ac_file in $ac_files ''
  2768. do
  2769. test -f "$ac_file" || continue
  2770. case $ac_file in
  2771. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2772. ;;
  2773. [ab].out )
  2774. # We found the default executable, but exeext='' is most
  2775. # certainly right.
  2776. break;;
  2777. *.* )
  2778. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2779. then :; else
  2780. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2781. fi
  2782. # We set ac_cv_exeext here because the later test for it is not
  2783. # safe: cross compilers may not add the suffix if given an `-o'
  2784. # argument, so we may need to know it at that point already.
  2785. # Even if this section looks crufty: it has the advantage of
  2786. # actually working.
  2787. break;;
  2788. * )
  2789. break;;
  2790. esac
  2791. done
  2792. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2793. else
  2794. ac_file=''
  2795. fi
  2796. if test -z "$ac_file"; then :
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2798. $as_echo "no" >&6; }
  2799. $as_echo "$as_me: failed program was:" >&5
  2800. sed 's/^/| /' conftest.$ac_ext >&5
  2801. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2802. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2803. as_fn_error 77 "C++ compiler cannot create executables
  2804. See \`config.log' for more details" "$LINENO" 5; }
  2805. else
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2807. $as_echo "yes" >&6; }
  2808. fi
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2810. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2812. $as_echo "$ac_file" >&6; }
  2813. ac_exeext=$ac_cv_exeext
  2814. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2815. ac_clean_files=$ac_clean_files_save
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2817. $as_echo_n "checking for suffix of executables... " >&6; }
  2818. if { { ac_try="$ac_link"
  2819. case "(($ac_try" in
  2820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2821. *) ac_try_echo=$ac_try;;
  2822. esac
  2823. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2824. $as_echo "$ac_try_echo"; } >&5
  2825. (eval "$ac_link") 2>&5
  2826. ac_status=$?
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2828. test $ac_status = 0; }; then :
  2829. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2830. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2831. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2832. # `rm'.
  2833. for ac_file in conftest.exe conftest conftest.*; do
  2834. test -f "$ac_file" || continue
  2835. case $ac_file in
  2836. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2837. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2838. break;;
  2839. * ) break;;
  2840. esac
  2841. done
  2842. else
  2843. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2844. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2845. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2846. See \`config.log' for more details" "$LINENO" 5; }
  2847. fi
  2848. rm -f conftest conftest$ac_cv_exeext
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2850. $as_echo "$ac_cv_exeext" >&6; }
  2851. rm -f conftest.$ac_ext
  2852. EXEEXT=$ac_cv_exeext
  2853. ac_exeext=$EXEEXT
  2854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2855. /* end confdefs.h. */
  2856. #include <stdio.h>
  2857. int
  2858. main ()
  2859. {
  2860. FILE *f = fopen ("conftest.out", "w");
  2861. return ferror (f) || fclose (f) != 0;
  2862. ;
  2863. return 0;
  2864. }
  2865. _ACEOF
  2866. ac_clean_files="$ac_clean_files conftest.out"
  2867. # Check that the compiler produces executables we can run. If not, either
  2868. # the compiler is broken, or we cross compile.
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2870. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2871. if test "$cross_compiling" != yes; then
  2872. { { ac_try="$ac_link"
  2873. case "(($ac_try" in
  2874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2875. *) ac_try_echo=$ac_try;;
  2876. esac
  2877. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2878. $as_echo "$ac_try_echo"; } >&5
  2879. (eval "$ac_link") 2>&5
  2880. ac_status=$?
  2881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2882. test $ac_status = 0; }
  2883. if { ac_try='./conftest$ac_cv_exeext'
  2884. { { case "(($ac_try" in
  2885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2886. *) ac_try_echo=$ac_try;;
  2887. esac
  2888. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2889. $as_echo "$ac_try_echo"; } >&5
  2890. (eval "$ac_try") 2>&5
  2891. ac_status=$?
  2892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2893. test $ac_status = 0; }; }; then
  2894. cross_compiling=no
  2895. else
  2896. if test "$cross_compiling" = maybe; then
  2897. cross_compiling=yes
  2898. else
  2899. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2900. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2901. as_fn_error $? "cannot run C++ compiled programs.
  2902. If you meant to cross compile, use \`--host'.
  2903. See \`config.log' for more details" "$LINENO" 5; }
  2904. fi
  2905. fi
  2906. fi
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2908. $as_echo "$cross_compiling" >&6; }
  2909. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2910. ac_clean_files=$ac_clean_files_save
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2912. $as_echo_n "checking for suffix of object files... " >&6; }
  2913. if ${ac_cv_objext+:} false; then :
  2914. $as_echo_n "(cached) " >&6
  2915. else
  2916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2917. /* end confdefs.h. */
  2918. int
  2919. main ()
  2920. {
  2921. ;
  2922. return 0;
  2923. }
  2924. _ACEOF
  2925. rm -f conftest.o conftest.obj
  2926. if { { ac_try="$ac_compile"
  2927. case "(($ac_try" in
  2928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2929. *) ac_try_echo=$ac_try;;
  2930. esac
  2931. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2932. $as_echo "$ac_try_echo"; } >&5
  2933. (eval "$ac_compile") 2>&5
  2934. ac_status=$?
  2935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2936. test $ac_status = 0; }; then :
  2937. for ac_file in conftest.o conftest.obj conftest.*; do
  2938. test -f "$ac_file" || continue;
  2939. case $ac_file in
  2940. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2941. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2942. break;;
  2943. esac
  2944. done
  2945. else
  2946. $as_echo "$as_me: failed program was:" >&5
  2947. sed 's/^/| /' conftest.$ac_ext >&5
  2948. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2949. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2950. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2951. See \`config.log' for more details" "$LINENO" 5; }
  2952. fi
  2953. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2954. fi
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2956. $as_echo "$ac_cv_objext" >&6; }
  2957. OBJEXT=$ac_cv_objext
  2958. ac_objext=$OBJEXT
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2960. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2961. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2962. $as_echo_n "(cached) " >&6
  2963. else
  2964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2965. /* end confdefs.h. */
  2966. int
  2967. main ()
  2968. {
  2969. #ifndef __GNUC__
  2970. choke me
  2971. #endif
  2972. ;
  2973. return 0;
  2974. }
  2975. _ACEOF
  2976. if ac_fn_cxx_try_compile "$LINENO"; then :
  2977. ac_compiler_gnu=yes
  2978. else
  2979. ac_compiler_gnu=no
  2980. fi
  2981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2982. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2983. fi
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2985. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2986. if test $ac_compiler_gnu = yes; then
  2987. GXX=yes
  2988. else
  2989. GXX=
  2990. fi
  2991. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2992. ac_save_CXXFLAGS=$CXXFLAGS
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2994. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2995. if ${ac_cv_prog_cxx_g+:} false; then :
  2996. $as_echo_n "(cached) " >&6
  2997. else
  2998. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2999. ac_cxx_werror_flag=yes
  3000. ac_cv_prog_cxx_g=no
  3001. CXXFLAGS="-g"
  3002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3003. /* end confdefs.h. */
  3004. int
  3005. main ()
  3006. {
  3007. ;
  3008. return 0;
  3009. }
  3010. _ACEOF
  3011. if ac_fn_cxx_try_compile "$LINENO"; then :
  3012. ac_cv_prog_cxx_g=yes
  3013. else
  3014. CXXFLAGS=""
  3015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3016. /* end confdefs.h. */
  3017. int
  3018. main ()
  3019. {
  3020. ;
  3021. return 0;
  3022. }
  3023. _ACEOF
  3024. if ac_fn_cxx_try_compile "$LINENO"; then :
  3025. else
  3026. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3027. CXXFLAGS="-g"
  3028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3029. /* end confdefs.h. */
  3030. int
  3031. main ()
  3032. {
  3033. ;
  3034. return 0;
  3035. }
  3036. _ACEOF
  3037. if ac_fn_cxx_try_compile "$LINENO"; then :
  3038. ac_cv_prog_cxx_g=yes
  3039. fi
  3040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3041. fi
  3042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3043. fi
  3044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3045. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3046. fi
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3048. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3049. if test "$ac_test_CXXFLAGS" = set; then
  3050. CXXFLAGS=$ac_save_CXXFLAGS
  3051. elif test $ac_cv_prog_cxx_g = yes; then
  3052. if test "$GXX" = yes; then
  3053. CXXFLAGS="-g -O2"
  3054. else
  3055. CXXFLAGS="-g"
  3056. fi
  3057. else
  3058. if test "$GXX" = yes; then
  3059. CXXFLAGS="-O2"
  3060. else
  3061. CXXFLAGS=
  3062. fi
  3063. fi
  3064. ac_ext=c
  3065. ac_cpp='$CPP $CPPFLAGS'
  3066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3069. DEPDIR="${am__leading_dot}deps"
  3070. ac_config_commands="$ac_config_commands depfiles"
  3071. am_make=${MAKE-make}
  3072. cat > confinc << 'END'
  3073. am__doit:
  3074. @echo this is the am__doit target
  3075. .PHONY: am__doit
  3076. END
  3077. # If we don't find an include directive, just comment out the code.
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3079. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3080. am__include="#"
  3081. am__quote=
  3082. _am_result=none
  3083. # First try GNU make style include.
  3084. echo "include confinc" > confmf
  3085. # Ignore all kinds of additional output from 'make'.
  3086. case `$am_make -s -f confmf 2> /dev/null` in #(
  3087. *the\ am__doit\ target*)
  3088. am__include=include
  3089. am__quote=
  3090. _am_result=GNU
  3091. ;;
  3092. esac
  3093. # Now try BSD make style include.
  3094. if test "$am__include" = "#"; then
  3095. echo '.include "confinc"' > confmf
  3096. case `$am_make -s -f confmf 2> /dev/null` in #(
  3097. *the\ am__doit\ target*)
  3098. am__include=.include
  3099. am__quote="\""
  3100. _am_result=BSD
  3101. ;;
  3102. esac
  3103. fi
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3105. $as_echo "$_am_result" >&6; }
  3106. rm -f confinc confmf
  3107. # Check whether --enable-dependency-tracking was given.
  3108. if test "${enable_dependency_tracking+set}" = set; then :
  3109. enableval=$enable_dependency_tracking;
  3110. fi
  3111. if test "x$enable_dependency_tracking" != xno; then
  3112. am_depcomp="$ac_aux_dir/depcomp"
  3113. AMDEPBACKSLASH='\'
  3114. am__nodep='_no'
  3115. fi
  3116. if test "x$enable_dependency_tracking" != xno; then
  3117. AMDEP_TRUE=
  3118. AMDEP_FALSE='#'
  3119. else
  3120. AMDEP_TRUE='#'
  3121. AMDEP_FALSE=
  3122. fi
  3123. depcc="$CXX" am_compiler_list=
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3125. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3126. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3127. $as_echo_n "(cached) " >&6
  3128. else
  3129. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3130. # We make a subdir and do the tests there. Otherwise we can end up
  3131. # making bogus files that we don't know about and never remove. For
  3132. # instance it was reported that on HP-UX the gcc test will end up
  3133. # making a dummy file named 'D' -- because '-MD' means "put the output
  3134. # in D".
  3135. rm -rf conftest.dir
  3136. mkdir conftest.dir
  3137. # Copy depcomp to subdir because otherwise we won't find it if we're
  3138. # using a relative directory.
  3139. cp "$am_depcomp" conftest.dir
  3140. cd conftest.dir
  3141. # We will build objects and dependencies in a subdirectory because
  3142. # it helps to detect inapplicable dependency modes. For instance
  3143. # both Tru64's cc and ICC support -MD to output dependencies as a
  3144. # side effect of compilation, but ICC will put the dependencies in
  3145. # the current directory while Tru64 will put them in the object
  3146. # directory.
  3147. mkdir sub
  3148. am_cv_CXX_dependencies_compiler_type=none
  3149. if test "$am_compiler_list" = ""; then
  3150. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3151. fi
  3152. am__universal=false
  3153. case " $depcc " in #(
  3154. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3155. esac
  3156. for depmode in $am_compiler_list; do
  3157. # Setup a source with many dependencies, because some compilers
  3158. # like to wrap large dependency lists on column 80 (with \), and
  3159. # we should not choose a depcomp mode which is confused by this.
  3160. #
  3161. # We need to recreate these files for each test, as the compiler may
  3162. # overwrite some of them when testing with obscure command lines.
  3163. # This happens at least with the AIX C compiler.
  3164. : > sub/conftest.c
  3165. for i in 1 2 3 4 5 6; do
  3166. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3167. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3168. # Solaris 10 /bin/sh.
  3169. echo '/* dummy */' > sub/conftst$i.h
  3170. done
  3171. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3172. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3173. # mode. It turns out that the SunPro C++ compiler does not properly
  3174. # handle '-M -o', and we need to detect this. Also, some Intel
  3175. # versions had trouble with output in subdirs.
  3176. am__obj=sub/conftest.${OBJEXT-o}
  3177. am__minus_obj="-o $am__obj"
  3178. case $depmode in
  3179. gcc)
  3180. # This depmode causes a compiler race in universal mode.
  3181. test "$am__universal" = false || continue
  3182. ;;
  3183. nosideeffect)
  3184. # After this tag, mechanisms are not by side-effect, so they'll
  3185. # only be used when explicitly requested.
  3186. if test "x$enable_dependency_tracking" = xyes; then
  3187. continue
  3188. else
  3189. break
  3190. fi
  3191. ;;
  3192. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3193. # This compiler won't grok '-c -o', but also, the minuso test has
  3194. # not run yet. These depmodes are late enough in the game, and
  3195. # so weak that their functioning should not be impacted.
  3196. am__obj=conftest.${OBJEXT-o}
  3197. am__minus_obj=
  3198. ;;
  3199. none) break ;;
  3200. esac
  3201. if depmode=$depmode \
  3202. source=sub/conftest.c object=$am__obj \
  3203. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3204. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3205. >/dev/null 2>conftest.err &&
  3206. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3207. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3208. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3209. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3210. # icc doesn't choke on unknown options, it will just issue warnings
  3211. # or remarks (even with -Werror). So we grep stderr for any message
  3212. # that says an option was ignored or not supported.
  3213. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3214. # icc: Command line warning: ignoring option '-M'; no argument required
  3215. # The diagnosis changed in icc 8.0:
  3216. # icc: Command line remark: option '-MP' not supported
  3217. if (grep 'ignoring option' conftest.err ||
  3218. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3219. am_cv_CXX_dependencies_compiler_type=$depmode
  3220. break
  3221. fi
  3222. fi
  3223. done
  3224. cd ..
  3225. rm -rf conftest.dir
  3226. else
  3227. am_cv_CXX_dependencies_compiler_type=none
  3228. fi
  3229. fi
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3231. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3232. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3233. if
  3234. test "x$enable_dependency_tracking" != xno \
  3235. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3236. am__fastdepCXX_TRUE=
  3237. am__fastdepCXX_FALSE='#'
  3238. else
  3239. am__fastdepCXX_TRUE='#'
  3240. am__fastdepCXX_FALSE=
  3241. fi
  3242. ac_ext=c
  3243. ac_cpp='$CPP $CPPFLAGS'
  3244. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3245. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3246. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3247. if test -n "$ac_tool_prefix"; then
  3248. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3249. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3251. $as_echo_n "checking for $ac_word... " >&6; }
  3252. if ${ac_cv_prog_CC+:} false; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. if test -n "$CC"; then
  3256. ac_cv_prog_CC="$CC" # Let the user override the test.
  3257. else
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_exec_ext in '' $ac_executable_extensions; do
  3264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3265. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3267. break 2
  3268. fi
  3269. done
  3270. done
  3271. IFS=$as_save_IFS
  3272. fi
  3273. fi
  3274. CC=$ac_cv_prog_CC
  3275. if test -n "$CC"; then
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3277. $as_echo "$CC" >&6; }
  3278. else
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3280. $as_echo "no" >&6; }
  3281. fi
  3282. fi
  3283. if test -z "$ac_cv_prog_CC"; then
  3284. ac_ct_CC=$CC
  3285. # Extract the first word of "gcc", so it can be a program name with args.
  3286. set dummy gcc; ac_word=$2
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3288. $as_echo_n "checking for $ac_word... " >&6; }
  3289. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3290. $as_echo_n "(cached) " >&6
  3291. else
  3292. if test -n "$ac_ct_CC"; then
  3293. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3294. else
  3295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3296. for as_dir in $PATH
  3297. do
  3298. IFS=$as_save_IFS
  3299. test -z "$as_dir" && as_dir=.
  3300. for ac_exec_ext in '' $ac_executable_extensions; do
  3301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3302. ac_cv_prog_ac_ct_CC="gcc"
  3303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3304. break 2
  3305. fi
  3306. done
  3307. done
  3308. IFS=$as_save_IFS
  3309. fi
  3310. fi
  3311. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3312. if test -n "$ac_ct_CC"; then
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3314. $as_echo "$ac_ct_CC" >&6; }
  3315. else
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3317. $as_echo "no" >&6; }
  3318. fi
  3319. if test "x$ac_ct_CC" = x; then
  3320. CC=""
  3321. else
  3322. case $cross_compiling:$ac_tool_warned in
  3323. yes:)
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3325. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3326. ac_tool_warned=yes ;;
  3327. esac
  3328. CC=$ac_ct_CC
  3329. fi
  3330. else
  3331. CC="$ac_cv_prog_CC"
  3332. fi
  3333. if test -z "$CC"; then
  3334. if test -n "$ac_tool_prefix"; then
  3335. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3336. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3338. $as_echo_n "checking for $ac_word... " >&6; }
  3339. if ${ac_cv_prog_CC+:} false; then :
  3340. $as_echo_n "(cached) " >&6
  3341. else
  3342. if test -n "$CC"; then
  3343. ac_cv_prog_CC="$CC" # Let the user override the test.
  3344. else
  3345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3346. for as_dir in $PATH
  3347. do
  3348. IFS=$as_save_IFS
  3349. test -z "$as_dir" && as_dir=.
  3350. for ac_exec_ext in '' $ac_executable_extensions; do
  3351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3352. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3354. break 2
  3355. fi
  3356. done
  3357. done
  3358. IFS=$as_save_IFS
  3359. fi
  3360. fi
  3361. CC=$ac_cv_prog_CC
  3362. if test -n "$CC"; then
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3364. $as_echo "$CC" >&6; }
  3365. else
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3367. $as_echo "no" >&6; }
  3368. fi
  3369. fi
  3370. fi
  3371. if test -z "$CC"; then
  3372. # Extract the first word of "cc", so it can be a program name with args.
  3373. set dummy cc; ac_word=$2
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3375. $as_echo_n "checking for $ac_word... " >&6; }
  3376. if ${ac_cv_prog_CC+:} false; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. if test -n "$CC"; then
  3380. ac_cv_prog_CC="$CC" # Let the user override the test.
  3381. else
  3382. ac_prog_rejected=no
  3383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3384. for as_dir in $PATH
  3385. do
  3386. IFS=$as_save_IFS
  3387. test -z "$as_dir" && as_dir=.
  3388. for ac_exec_ext in '' $ac_executable_extensions; do
  3389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3390. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3391. ac_prog_rejected=yes
  3392. continue
  3393. fi
  3394. ac_cv_prog_CC="cc"
  3395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3396. break 2
  3397. fi
  3398. done
  3399. done
  3400. IFS=$as_save_IFS
  3401. if test $ac_prog_rejected = yes; then
  3402. # We found a bogon in the path, so make sure we never use it.
  3403. set dummy $ac_cv_prog_CC
  3404. shift
  3405. if test $# != 0; then
  3406. # We chose a different compiler from the bogus one.
  3407. # However, it has the same basename, so the bogon will be chosen
  3408. # first if we set CC to just the basename; use the full file name.
  3409. shift
  3410. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3411. fi
  3412. fi
  3413. fi
  3414. fi
  3415. CC=$ac_cv_prog_CC
  3416. if test -n "$CC"; then
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3418. $as_echo "$CC" >&6; }
  3419. else
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3421. $as_echo "no" >&6; }
  3422. fi
  3423. fi
  3424. if test -z "$CC"; then
  3425. if test -n "$ac_tool_prefix"; then
  3426. for ac_prog in cl.exe
  3427. do
  3428. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3429. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3431. $as_echo_n "checking for $ac_word... " >&6; }
  3432. if ${ac_cv_prog_CC+:} false; then :
  3433. $as_echo_n "(cached) " >&6
  3434. else
  3435. if test -n "$CC"; then
  3436. ac_cv_prog_CC="$CC" # Let the user override the test.
  3437. else
  3438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3439. for as_dir in $PATH
  3440. do
  3441. IFS=$as_save_IFS
  3442. test -z "$as_dir" && as_dir=.
  3443. for ac_exec_ext in '' $ac_executable_extensions; do
  3444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3445. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3447. break 2
  3448. fi
  3449. done
  3450. done
  3451. IFS=$as_save_IFS
  3452. fi
  3453. fi
  3454. CC=$ac_cv_prog_CC
  3455. if test -n "$CC"; then
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3457. $as_echo "$CC" >&6; }
  3458. else
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3460. $as_echo "no" >&6; }
  3461. fi
  3462. test -n "$CC" && break
  3463. done
  3464. fi
  3465. if test -z "$CC"; then
  3466. ac_ct_CC=$CC
  3467. for ac_prog in cl.exe
  3468. do
  3469. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3470. set dummy $ac_prog; ac_word=$2
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3472. $as_echo_n "checking for $ac_word... " >&6; }
  3473. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3474. $as_echo_n "(cached) " >&6
  3475. else
  3476. if test -n "$ac_ct_CC"; then
  3477. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3478. else
  3479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3480. for as_dir in $PATH
  3481. do
  3482. IFS=$as_save_IFS
  3483. test -z "$as_dir" && as_dir=.
  3484. for ac_exec_ext in '' $ac_executable_extensions; do
  3485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3486. ac_cv_prog_ac_ct_CC="$ac_prog"
  3487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3488. break 2
  3489. fi
  3490. done
  3491. done
  3492. IFS=$as_save_IFS
  3493. fi
  3494. fi
  3495. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3496. if test -n "$ac_ct_CC"; then
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3498. $as_echo "$ac_ct_CC" >&6; }
  3499. else
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3501. $as_echo "no" >&6; }
  3502. fi
  3503. test -n "$ac_ct_CC" && break
  3504. done
  3505. if test "x$ac_ct_CC" = x; then
  3506. CC=""
  3507. else
  3508. case $cross_compiling:$ac_tool_warned in
  3509. yes:)
  3510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3511. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3512. ac_tool_warned=yes ;;
  3513. esac
  3514. CC=$ac_ct_CC
  3515. fi
  3516. fi
  3517. fi
  3518. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3519. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3520. as_fn_error $? "no acceptable C compiler found in \$PATH
  3521. See \`config.log' for more details" "$LINENO" 5; }
  3522. # Provide some information about the compiler.
  3523. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3524. set X $ac_compile
  3525. ac_compiler=$2
  3526. for ac_option in --version -v -V -qversion; do
  3527. { { ac_try="$ac_compiler $ac_option >&5"
  3528. case "(($ac_try" in
  3529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3530. *) ac_try_echo=$ac_try;;
  3531. esac
  3532. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3533. $as_echo "$ac_try_echo"; } >&5
  3534. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3535. ac_status=$?
  3536. if test -s conftest.err; then
  3537. sed '10a\
  3538. ... rest of stderr output deleted ...
  3539. 10q' conftest.err >conftest.er1
  3540. cat conftest.er1 >&5
  3541. fi
  3542. rm -f conftest.er1 conftest.err
  3543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3544. test $ac_status = 0; }
  3545. done
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3547. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3548. if ${ac_cv_c_compiler_gnu+:} false; then :
  3549. $as_echo_n "(cached) " >&6
  3550. else
  3551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3552. /* end confdefs.h. */
  3553. int
  3554. main ()
  3555. {
  3556. #ifndef __GNUC__
  3557. choke me
  3558. #endif
  3559. ;
  3560. return 0;
  3561. }
  3562. _ACEOF
  3563. if ac_fn_c_try_compile "$LINENO"; then :
  3564. ac_compiler_gnu=yes
  3565. else
  3566. ac_compiler_gnu=no
  3567. fi
  3568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3569. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3570. fi
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3572. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3573. if test $ac_compiler_gnu = yes; then
  3574. GCC=yes
  3575. else
  3576. GCC=
  3577. fi
  3578. ac_test_CFLAGS=${CFLAGS+set}
  3579. ac_save_CFLAGS=$CFLAGS
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3581. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3582. if ${ac_cv_prog_cc_g+:} false; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. ac_save_c_werror_flag=$ac_c_werror_flag
  3586. ac_c_werror_flag=yes
  3587. ac_cv_prog_cc_g=no
  3588. CFLAGS="-g"
  3589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3590. /* end confdefs.h. */
  3591. int
  3592. main ()
  3593. {
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. if ac_fn_c_try_compile "$LINENO"; then :
  3599. ac_cv_prog_cc_g=yes
  3600. else
  3601. CFLAGS=""
  3602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3603. /* end confdefs.h. */
  3604. int
  3605. main ()
  3606. {
  3607. ;
  3608. return 0;
  3609. }
  3610. _ACEOF
  3611. if ac_fn_c_try_compile "$LINENO"; then :
  3612. else
  3613. ac_c_werror_flag=$ac_save_c_werror_flag
  3614. CFLAGS="-g"
  3615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3616. /* end confdefs.h. */
  3617. int
  3618. main ()
  3619. {
  3620. ;
  3621. return 0;
  3622. }
  3623. _ACEOF
  3624. if ac_fn_c_try_compile "$LINENO"; then :
  3625. ac_cv_prog_cc_g=yes
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3628. fi
  3629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. ac_c_werror_flag=$ac_save_c_werror_flag
  3633. fi
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3635. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3636. if test "$ac_test_CFLAGS" = set; then
  3637. CFLAGS=$ac_save_CFLAGS
  3638. elif test $ac_cv_prog_cc_g = yes; then
  3639. if test "$GCC" = yes; then
  3640. CFLAGS="-g -O2"
  3641. else
  3642. CFLAGS="-g"
  3643. fi
  3644. else
  3645. if test "$GCC" = yes; then
  3646. CFLAGS="-O2"
  3647. else
  3648. CFLAGS=
  3649. fi
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3652. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3653. if ${ac_cv_prog_cc_c89+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. ac_cv_prog_cc_c89=no
  3657. ac_save_CC=$CC
  3658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3659. /* end confdefs.h. */
  3660. #include <stdarg.h>
  3661. #include <stdio.h>
  3662. struct stat;
  3663. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3664. struct buf { int x; };
  3665. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3666. static char *e (p, i)
  3667. char **p;
  3668. int i;
  3669. {
  3670. return p[i];
  3671. }
  3672. static char *f (char * (*g) (char **, int), char **p, ...)
  3673. {
  3674. char *s;
  3675. va_list v;
  3676. va_start (v,p);
  3677. s = g (p, va_arg (v,int));
  3678. va_end (v);
  3679. return s;
  3680. }
  3681. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3682. function prototypes and stuff, but not '\xHH' hex character constants.
  3683. These don't provoke an error unfortunately, instead are silently treated
  3684. as 'x'. The following induces an error, until -std is added to get
  3685. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3686. array size at least. It's necessary to write '\x00'==0 to get something
  3687. that's true only with -std. */
  3688. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3689. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3690. inside strings and character constants. */
  3691. #define FOO(x) 'x'
  3692. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3693. int test (int i, double x);
  3694. struct s1 {int (*f) (int a);};
  3695. struct s2 {int (*f) (double a);};
  3696. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3697. int argc;
  3698. char **argv;
  3699. int
  3700. main ()
  3701. {
  3702. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3703. ;
  3704. return 0;
  3705. }
  3706. _ACEOF
  3707. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3708. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3709. do
  3710. CC="$ac_save_CC $ac_arg"
  3711. if ac_fn_c_try_compile "$LINENO"; then :
  3712. ac_cv_prog_cc_c89=$ac_arg
  3713. fi
  3714. rm -f core conftest.err conftest.$ac_objext
  3715. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3716. done
  3717. rm -f conftest.$ac_ext
  3718. CC=$ac_save_CC
  3719. fi
  3720. # AC_CACHE_VAL
  3721. case "x$ac_cv_prog_cc_c89" in
  3722. x)
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3724. $as_echo "none needed" >&6; } ;;
  3725. xno)
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3727. $as_echo "unsupported" >&6; } ;;
  3728. *)
  3729. CC="$CC $ac_cv_prog_cc_c89"
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3731. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3732. esac
  3733. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3734. fi
  3735. ac_ext=c
  3736. ac_cpp='$CPP $CPPFLAGS'
  3737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3740. ac_ext=c
  3741. ac_cpp='$CPP $CPPFLAGS'
  3742. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3743. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3744. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3746. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3747. if ${am_cv_prog_cc_c_o+:} false; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3751. /* end confdefs.h. */
  3752. int
  3753. main ()
  3754. {
  3755. ;
  3756. return 0;
  3757. }
  3758. _ACEOF
  3759. # Make sure it works both with $CC and with simple cc.
  3760. # Following AC_PROG_CC_C_O, we do the test twice because some
  3761. # compilers refuse to overwrite an existing .o file with -o,
  3762. # though they will create one.
  3763. am_cv_prog_cc_c_o=yes
  3764. for am_i in 1 2; do
  3765. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3766. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3767. ac_status=$?
  3768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); } \
  3770. && test -f conftest2.$ac_objext; then
  3771. : OK
  3772. else
  3773. am_cv_prog_cc_c_o=no
  3774. break
  3775. fi
  3776. done
  3777. rm -f core conftest*
  3778. unset am_i
  3779. fi
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3781. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3782. if test "$am_cv_prog_cc_c_o" != yes; then
  3783. # Losing compiler, so override with the script.
  3784. # FIXME: It is wrong to rewrite CC.
  3785. # But if we don't then we get into trouble of one sort or another.
  3786. # A longer-term fix would be to have automake use am__CC in this case,
  3787. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3788. CC="$am_aux_dir/compile $CC"
  3789. fi
  3790. ac_ext=c
  3791. ac_cpp='$CPP $CPPFLAGS'
  3792. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3793. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3794. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3795. depcc="$CC" am_compiler_list=
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3797. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3798. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3799. $as_echo_n "(cached) " >&6
  3800. else
  3801. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3802. # We make a subdir and do the tests there. Otherwise we can end up
  3803. # making bogus files that we don't know about and never remove. For
  3804. # instance it was reported that on HP-UX the gcc test will end up
  3805. # making a dummy file named 'D' -- because '-MD' means "put the output
  3806. # in D".
  3807. rm -rf conftest.dir
  3808. mkdir conftest.dir
  3809. # Copy depcomp to subdir because otherwise we won't find it if we're
  3810. # using a relative directory.
  3811. cp "$am_depcomp" conftest.dir
  3812. cd conftest.dir
  3813. # We will build objects and dependencies in a subdirectory because
  3814. # it helps to detect inapplicable dependency modes. For instance
  3815. # both Tru64's cc and ICC support -MD to output dependencies as a
  3816. # side effect of compilation, but ICC will put the dependencies in
  3817. # the current directory while Tru64 will put them in the object
  3818. # directory.
  3819. mkdir sub
  3820. am_cv_CC_dependencies_compiler_type=none
  3821. if test "$am_compiler_list" = ""; then
  3822. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3823. fi
  3824. am__universal=false
  3825. case " $depcc " in #(
  3826. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3827. esac
  3828. for depmode in $am_compiler_list; do
  3829. # Setup a source with many dependencies, because some compilers
  3830. # like to wrap large dependency lists on column 80 (with \), and
  3831. # we should not choose a depcomp mode which is confused by this.
  3832. #
  3833. # We need to recreate these files for each test, as the compiler may
  3834. # overwrite some of them when testing with obscure command lines.
  3835. # This happens at least with the AIX C compiler.
  3836. : > sub/conftest.c
  3837. for i in 1 2 3 4 5 6; do
  3838. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3839. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3840. # Solaris 10 /bin/sh.
  3841. echo '/* dummy */' > sub/conftst$i.h
  3842. done
  3843. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3844. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3845. # mode. It turns out that the SunPro C++ compiler does not properly
  3846. # handle '-M -o', and we need to detect this. Also, some Intel
  3847. # versions had trouble with output in subdirs.
  3848. am__obj=sub/conftest.${OBJEXT-o}
  3849. am__minus_obj="-o $am__obj"
  3850. case $depmode in
  3851. gcc)
  3852. # This depmode causes a compiler race in universal mode.
  3853. test "$am__universal" = false || continue
  3854. ;;
  3855. nosideeffect)
  3856. # After this tag, mechanisms are not by side-effect, so they'll
  3857. # only be used when explicitly requested.
  3858. if test "x$enable_dependency_tracking" = xyes; then
  3859. continue
  3860. else
  3861. break
  3862. fi
  3863. ;;
  3864. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3865. # This compiler won't grok '-c -o', but also, the minuso test has
  3866. # not run yet. These depmodes are late enough in the game, and
  3867. # so weak that their functioning should not be impacted.
  3868. am__obj=conftest.${OBJEXT-o}
  3869. am__minus_obj=
  3870. ;;
  3871. none) break ;;
  3872. esac
  3873. if depmode=$depmode \
  3874. source=sub/conftest.c object=$am__obj \
  3875. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3876. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3877. >/dev/null 2>conftest.err &&
  3878. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3879. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3880. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3881. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3882. # icc doesn't choke on unknown options, it will just issue warnings
  3883. # or remarks (even with -Werror). So we grep stderr for any message
  3884. # that says an option was ignored or not supported.
  3885. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3886. # icc: Command line warning: ignoring option '-M'; no argument required
  3887. # The diagnosis changed in icc 8.0:
  3888. # icc: Command line remark: option '-MP' not supported
  3889. if (grep 'ignoring option' conftest.err ||
  3890. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3891. am_cv_CC_dependencies_compiler_type=$depmode
  3892. break
  3893. fi
  3894. fi
  3895. done
  3896. cd ..
  3897. rm -rf conftest.dir
  3898. else
  3899. am_cv_CC_dependencies_compiler_type=none
  3900. fi
  3901. fi
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3903. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3904. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3905. if
  3906. test "x$enable_dependency_tracking" != xno \
  3907. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3908. am__fastdepCC_TRUE=
  3909. am__fastdepCC_FALSE='#'
  3910. else
  3911. am__fastdepCC_TRUE='#'
  3912. am__fastdepCC_FALSE=
  3913. fi
  3914. # Checks for libraries.
  3915. # Checks for header files.
  3916. ac_ext=c
  3917. ac_cpp='$CPP $CPPFLAGS'
  3918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3922. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3923. # On Suns, sometimes $CPP names a directory.
  3924. if test -n "$CPP" && test -d "$CPP"; then
  3925. CPP=
  3926. fi
  3927. if test -z "$CPP"; then
  3928. if ${ac_cv_prog_CPP+:} false; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. # Double quotes because CPP needs to be expanded
  3932. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3933. do
  3934. ac_preproc_ok=false
  3935. for ac_c_preproc_warn_flag in '' yes
  3936. do
  3937. # Use a header file that comes with gcc, so configuring glibc
  3938. # with a fresh cross-compiler works.
  3939. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3940. # <limits.h> exists even on freestanding compilers.
  3941. # On the NeXT, cc -E runs the code through the compiler's parser,
  3942. # not just through cpp. "Syntax error" is here to catch this case.
  3943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3944. /* end confdefs.h. */
  3945. #ifdef __STDC__
  3946. # include <limits.h>
  3947. #else
  3948. # include <assert.h>
  3949. #endif
  3950. Syntax error
  3951. _ACEOF
  3952. if ac_fn_c_try_cpp "$LINENO"; then :
  3953. else
  3954. # Broken: fails on valid input.
  3955. continue
  3956. fi
  3957. rm -f conftest.err conftest.i conftest.$ac_ext
  3958. # OK, works on sane cases. Now check whether nonexistent headers
  3959. # can be detected and how.
  3960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3961. /* end confdefs.h. */
  3962. #include <ac_nonexistent.h>
  3963. _ACEOF
  3964. if ac_fn_c_try_cpp "$LINENO"; then :
  3965. # Broken: success on invalid input.
  3966. continue
  3967. else
  3968. # Passes both tests.
  3969. ac_preproc_ok=:
  3970. break
  3971. fi
  3972. rm -f conftest.err conftest.i conftest.$ac_ext
  3973. done
  3974. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3975. rm -f conftest.i conftest.err conftest.$ac_ext
  3976. if $ac_preproc_ok; then :
  3977. break
  3978. fi
  3979. done
  3980. ac_cv_prog_CPP=$CPP
  3981. fi
  3982. CPP=$ac_cv_prog_CPP
  3983. else
  3984. ac_cv_prog_CPP=$CPP
  3985. fi
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3987. $as_echo "$CPP" >&6; }
  3988. ac_preproc_ok=false
  3989. for ac_c_preproc_warn_flag in '' yes
  3990. do
  3991. # Use a header file that comes with gcc, so configuring glibc
  3992. # with a fresh cross-compiler works.
  3993. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3994. # <limits.h> exists even on freestanding compilers.
  3995. # On the NeXT, cc -E runs the code through the compiler's parser,
  3996. # not just through cpp. "Syntax error" is here to catch this case.
  3997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3998. /* end confdefs.h. */
  3999. #ifdef __STDC__
  4000. # include <limits.h>
  4001. #else
  4002. # include <assert.h>
  4003. #endif
  4004. Syntax error
  4005. _ACEOF
  4006. if ac_fn_c_try_cpp "$LINENO"; then :
  4007. else
  4008. # Broken: fails on valid input.
  4009. continue
  4010. fi
  4011. rm -f conftest.err conftest.i conftest.$ac_ext
  4012. # OK, works on sane cases. Now check whether nonexistent headers
  4013. # can be detected and how.
  4014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4015. /* end confdefs.h. */
  4016. #include <ac_nonexistent.h>
  4017. _ACEOF
  4018. if ac_fn_c_try_cpp "$LINENO"; then :
  4019. # Broken: success on invalid input.
  4020. continue
  4021. else
  4022. # Passes both tests.
  4023. ac_preproc_ok=:
  4024. break
  4025. fi
  4026. rm -f conftest.err conftest.i conftest.$ac_ext
  4027. done
  4028. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4029. rm -f conftest.i conftest.err conftest.$ac_ext
  4030. if $ac_preproc_ok; then :
  4031. else
  4032. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4033. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4034. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4035. See \`config.log' for more details" "$LINENO" 5; }
  4036. fi
  4037. ac_ext=c
  4038. ac_cpp='$CPP $CPPFLAGS'
  4039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4043. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4044. if ${ac_cv_path_GREP+:} false; then :
  4045. $as_echo_n "(cached) " >&6
  4046. else
  4047. if test -z "$GREP"; then
  4048. ac_path_GREP_found=false
  4049. # Loop through the user's path and test for each of PROGNAME-LIST
  4050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4051. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4052. do
  4053. IFS=$as_save_IFS
  4054. test -z "$as_dir" && as_dir=.
  4055. for ac_prog in grep ggrep; do
  4056. for ac_exec_ext in '' $ac_executable_extensions; do
  4057. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4058. as_fn_executable_p "$ac_path_GREP" || continue
  4059. # Check for GNU ac_path_GREP and select it if it is found.
  4060. # Check for GNU $ac_path_GREP
  4061. case `"$ac_path_GREP" --version 2>&1` in
  4062. *GNU*)
  4063. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4064. *)
  4065. ac_count=0
  4066. $as_echo_n 0123456789 >"conftest.in"
  4067. while :
  4068. do
  4069. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4070. mv "conftest.tmp" "conftest.in"
  4071. cp "conftest.in" "conftest.nl"
  4072. $as_echo 'GREP' >> "conftest.nl"
  4073. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4074. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4075. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4076. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4077. # Best one so far, save it but keep looking for a better one
  4078. ac_cv_path_GREP="$ac_path_GREP"
  4079. ac_path_GREP_max=$ac_count
  4080. fi
  4081. # 10*(2^10) chars as input seems more than enough
  4082. test $ac_count -gt 10 && break
  4083. done
  4084. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4085. esac
  4086. $ac_path_GREP_found && break 3
  4087. done
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. if test -z "$ac_cv_path_GREP"; then
  4092. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4093. fi
  4094. else
  4095. ac_cv_path_GREP=$GREP
  4096. fi
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4099. $as_echo "$ac_cv_path_GREP" >&6; }
  4100. GREP="$ac_cv_path_GREP"
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4102. $as_echo_n "checking for egrep... " >&6; }
  4103. if ${ac_cv_path_EGREP+:} false; then :
  4104. $as_echo_n "(cached) " >&6
  4105. else
  4106. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4107. then ac_cv_path_EGREP="$GREP -E"
  4108. else
  4109. if test -z "$EGREP"; then
  4110. ac_path_EGREP_found=false
  4111. # Loop through the user's path and test for each of PROGNAME-LIST
  4112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4113. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4114. do
  4115. IFS=$as_save_IFS
  4116. test -z "$as_dir" && as_dir=.
  4117. for ac_prog in egrep; do
  4118. for ac_exec_ext in '' $ac_executable_extensions; do
  4119. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4120. as_fn_executable_p "$ac_path_EGREP" || continue
  4121. # Check for GNU ac_path_EGREP and select it if it is found.
  4122. # Check for GNU $ac_path_EGREP
  4123. case `"$ac_path_EGREP" --version 2>&1` in
  4124. *GNU*)
  4125. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4126. *)
  4127. ac_count=0
  4128. $as_echo_n 0123456789 >"conftest.in"
  4129. while :
  4130. do
  4131. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4132. mv "conftest.tmp" "conftest.in"
  4133. cp "conftest.in" "conftest.nl"
  4134. $as_echo 'EGREP' >> "conftest.nl"
  4135. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4136. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4137. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4138. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4139. # Best one so far, save it but keep looking for a better one
  4140. ac_cv_path_EGREP="$ac_path_EGREP"
  4141. ac_path_EGREP_max=$ac_count
  4142. fi
  4143. # 10*(2^10) chars as input seems more than enough
  4144. test $ac_count -gt 10 && break
  4145. done
  4146. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4147. esac
  4148. $ac_path_EGREP_found && break 3
  4149. done
  4150. done
  4151. done
  4152. IFS=$as_save_IFS
  4153. if test -z "$ac_cv_path_EGREP"; then
  4154. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4155. fi
  4156. else
  4157. ac_cv_path_EGREP=$EGREP
  4158. fi
  4159. fi
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4162. $as_echo "$ac_cv_path_EGREP" >&6; }
  4163. EGREP="$ac_cv_path_EGREP"
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4165. $as_echo_n "checking for ANSI C header files... " >&6; }
  4166. if ${ac_cv_header_stdc+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4170. /* end confdefs.h. */
  4171. #include <stdlib.h>
  4172. #include <stdarg.h>
  4173. #include <string.h>
  4174. #include <float.h>
  4175. int
  4176. main ()
  4177. {
  4178. ;
  4179. return 0;
  4180. }
  4181. _ACEOF
  4182. if ac_fn_c_try_compile "$LINENO"; then :
  4183. ac_cv_header_stdc=yes
  4184. else
  4185. ac_cv_header_stdc=no
  4186. fi
  4187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4188. if test $ac_cv_header_stdc = yes; then
  4189. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4191. /* end confdefs.h. */
  4192. #include <string.h>
  4193. _ACEOF
  4194. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4195. $EGREP "memchr" >/dev/null 2>&1; then :
  4196. else
  4197. ac_cv_header_stdc=no
  4198. fi
  4199. rm -f conftest*
  4200. fi
  4201. if test $ac_cv_header_stdc = yes; then
  4202. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4204. /* end confdefs.h. */
  4205. #include <stdlib.h>
  4206. _ACEOF
  4207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4208. $EGREP "free" >/dev/null 2>&1; then :
  4209. else
  4210. ac_cv_header_stdc=no
  4211. fi
  4212. rm -f conftest*
  4213. fi
  4214. if test $ac_cv_header_stdc = yes; then
  4215. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4216. if test "$cross_compiling" = yes; then :
  4217. :
  4218. else
  4219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4220. /* end confdefs.h. */
  4221. #include <ctype.h>
  4222. #include <stdlib.h>
  4223. #if ((' ' & 0x0FF) == 0x020)
  4224. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4225. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4226. #else
  4227. # define ISLOWER(c) \
  4228. (('a' <= (c) && (c) <= 'i') \
  4229. || ('j' <= (c) && (c) <= 'r') \
  4230. || ('s' <= (c) && (c) <= 'z'))
  4231. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4232. #endif
  4233. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4234. int
  4235. main ()
  4236. {
  4237. int i;
  4238. for (i = 0; i < 256; i++)
  4239. if (XOR (islower (i), ISLOWER (i))
  4240. || toupper (i) != TOUPPER (i))
  4241. return 2;
  4242. return 0;
  4243. }
  4244. _ACEOF
  4245. if ac_fn_c_try_run "$LINENO"; then :
  4246. else
  4247. ac_cv_header_stdc=no
  4248. fi
  4249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4250. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4251. fi
  4252. fi
  4253. fi
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4255. $as_echo "$ac_cv_header_stdc" >&6; }
  4256. if test $ac_cv_header_stdc = yes; then
  4257. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4258. fi
  4259. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4260. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4261. inttypes.h stdint.h unistd.h
  4262. do :
  4263. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4264. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4265. "
  4266. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4267. cat >>confdefs.h <<_ACEOF
  4268. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4269. _ACEOF
  4270. fi
  4271. done
  4272. for ac_header in inttypes.h stdint.h
  4273. do :
  4274. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4275. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4276. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4277. cat >>confdefs.h <<_ACEOF
  4278. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4279. _ACEOF
  4280. fi
  4281. done
  4282. for ac_header in utime.h
  4283. do :
  4284. ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
  4285. if test "x$ac_cv_header_utime_h" = xyes; then :
  4286. cat >>confdefs.h <<_ACEOF
  4287. #define HAVE_UTIME_H 1
  4288. _ACEOF
  4289. fi
  4290. done
  4291. # Checks for typedefs, structures, and compiler characteristics.
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  4293. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  4294. if ${ac_cv_header_stdbool_h+:} false; then :
  4295. $as_echo_n "(cached) " >&6
  4296. else
  4297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4298. /* end confdefs.h. */
  4299. #include <stdbool.h>
  4300. #ifndef bool
  4301. "error: bool is not defined"
  4302. #endif
  4303. #ifndef false
  4304. "error: false is not defined"
  4305. #endif
  4306. #if false
  4307. "error: false is not 0"
  4308. #endif
  4309. #ifndef true
  4310. "error: true is not defined"
  4311. #endif
  4312. #if true != 1
  4313. "error: true is not 1"
  4314. #endif
  4315. #ifndef __bool_true_false_are_defined
  4316. "error: __bool_true_false_are_defined is not defined"
  4317. #endif
  4318. struct s { _Bool s: 1; _Bool t; } s;
  4319. char a[true == 1 ? 1 : -1];
  4320. char b[false == 0 ? 1 : -1];
  4321. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4322. char d[(bool) 0.5 == true ? 1 : -1];
  4323. /* See body of main program for 'e'. */
  4324. char f[(_Bool) 0.0 == false ? 1 : -1];
  4325. char g[true];
  4326. char h[sizeof (_Bool)];
  4327. char i[sizeof s.t];
  4328. enum { j = false, k = true, l = false * true, m = true * 256 };
  4329. /* The following fails for
  4330. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  4331. _Bool n[m];
  4332. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  4333. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  4334. /* Catch a bug in an HP-UX C compiler. See
  4335. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  4336. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  4337. */
  4338. _Bool q = true;
  4339. _Bool *pq = &q;
  4340. int
  4341. main ()
  4342. {
  4343. bool e = &s;
  4344. *pq |= q;
  4345. *pq |= ! q;
  4346. /* Refer to every declared value, to avoid compiler optimizations. */
  4347. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  4348. + !m + !n + !o + !p + !q + !pq);
  4349. ;
  4350. return 0;
  4351. }
  4352. _ACEOF
  4353. if ac_fn_c_try_compile "$LINENO"; then :
  4354. ac_cv_header_stdbool_h=yes
  4355. else
  4356. ac_cv_header_stdbool_h=no
  4357. fi
  4358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4359. fi
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  4361. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  4362. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  4363. if test "x$ac_cv_type__Bool" = xyes; then :
  4364. cat >>confdefs.h <<_ACEOF
  4365. #define HAVE__BOOL 1
  4366. _ACEOF
  4367. fi
  4368. if test $ac_cv_header_stdbool_h = yes; then
  4369. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  4370. fi
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4372. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4373. if ${ac_cv_c_const+:} false; then :
  4374. $as_echo_n "(cached) " >&6
  4375. else
  4376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4377. /* end confdefs.h. */
  4378. int
  4379. main ()
  4380. {
  4381. #ifndef __cplusplus
  4382. /* Ultrix mips cc rejects this sort of thing. */
  4383. typedef int charset[2];
  4384. const charset cs = { 0, 0 };
  4385. /* SunOS 4.1.1 cc rejects this. */
  4386. char const *const *pcpcc;
  4387. char **ppc;
  4388. /* NEC SVR4.0.2 mips cc rejects this. */
  4389. struct point {int x, y;};
  4390. static struct point const zero = {0,0};
  4391. /* AIX XL C 1.02.0.0 rejects this.
  4392. It does not let you subtract one const X* pointer from another in
  4393. an arm of an if-expression whose if-part is not a constant
  4394. expression */
  4395. const char *g = "string";
  4396. pcpcc = &g + (g ? g-g : 0);
  4397. /* HPUX 7.0 cc rejects these. */
  4398. ++pcpcc;
  4399. ppc = (char**) pcpcc;
  4400. pcpcc = (char const *const *) ppc;
  4401. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4402. char tx;
  4403. char *t = &tx;
  4404. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4405. *t++ = 0;
  4406. if (s) return 0;
  4407. }
  4408. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4409. int x[] = {25, 17};
  4410. const int *foo = &x[0];
  4411. ++foo;
  4412. }
  4413. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4414. typedef const int *iptr;
  4415. iptr p = 0;
  4416. ++p;
  4417. }
  4418. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4419. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4420. struct s { int j; const int *ap[3]; } bx;
  4421. struct s *b = &bx; b->j = 5;
  4422. }
  4423. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4424. const int foo = 10;
  4425. if (!foo) return 0;
  4426. }
  4427. return !cs[0] && !zero.x;
  4428. #endif
  4429. ;
  4430. return 0;
  4431. }
  4432. _ACEOF
  4433. if ac_fn_c_try_compile "$LINENO"; then :
  4434. ac_cv_c_const=yes
  4435. else
  4436. ac_cv_c_const=no
  4437. fi
  4438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4439. fi
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4441. $as_echo "$ac_cv_c_const" >&6; }
  4442. if test $ac_cv_c_const = no; then
  4443. $as_echo "#define const /**/" >>confdefs.h
  4444. fi
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4446. $as_echo_n "checking for inline... " >&6; }
  4447. if ${ac_cv_c_inline+:} false; then :
  4448. $as_echo_n "(cached) " >&6
  4449. else
  4450. ac_cv_c_inline=no
  4451. for ac_kw in inline __inline__ __inline; do
  4452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4453. /* end confdefs.h. */
  4454. #ifndef __cplusplus
  4455. typedef int foo_t;
  4456. static $ac_kw foo_t static_foo () {return 0; }
  4457. $ac_kw foo_t foo () {return 0; }
  4458. #endif
  4459. _ACEOF
  4460. if ac_fn_c_try_compile "$LINENO"; then :
  4461. ac_cv_c_inline=$ac_kw
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4464. test "$ac_cv_c_inline" != no && break
  4465. done
  4466. fi
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4468. $as_echo "$ac_cv_c_inline" >&6; }
  4469. case $ac_cv_c_inline in
  4470. inline | yes) ;;
  4471. *)
  4472. case $ac_cv_c_inline in
  4473. no) ac_val=;;
  4474. *) ac_val=$ac_cv_c_inline;;
  4475. esac
  4476. cat >>confdefs.h <<_ACEOF
  4477. #ifndef __cplusplus
  4478. #define inline $ac_val
  4479. #endif
  4480. _ACEOF
  4481. ;;
  4482. esac
  4483. # Checks for library functions.
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  4485. $as_echo_n "checking for working memcmp... " >&6; }
  4486. if ${ac_cv_func_memcmp_working+:} false; then :
  4487. $as_echo_n "(cached) " >&6
  4488. else
  4489. if test "$cross_compiling" = yes; then :
  4490. ac_cv_func_memcmp_working=no
  4491. else
  4492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4493. /* end confdefs.h. */
  4494. $ac_includes_default
  4495. int
  4496. main ()
  4497. {
  4498. /* Some versions of memcmp are not 8-bit clean. */
  4499. char c0 = '\100', c1 = '\200', c2 = '\201';
  4500. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  4501. return 1;
  4502. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  4503. or more and with at least one buffer not starting on a 4-byte boundary.
  4504. William Lewis provided this test program. */
  4505. {
  4506. char foo[21];
  4507. char bar[21];
  4508. int i;
  4509. for (i = 0; i < 4; i++)
  4510. {
  4511. char *a = foo + i;
  4512. char *b = bar + i;
  4513. strcpy (a, "--------01111111");
  4514. strcpy (b, "--------10000000");
  4515. if (memcmp (a, b, 16) >= 0)
  4516. return 1;
  4517. }
  4518. return 0;
  4519. }
  4520. ;
  4521. return 0;
  4522. }
  4523. _ACEOF
  4524. if ac_fn_c_try_run "$LINENO"; then :
  4525. ac_cv_func_memcmp_working=yes
  4526. else
  4527. ac_cv_func_memcmp_working=no
  4528. fi
  4529. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4530. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4531. fi
  4532. fi
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  4534. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  4535. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  4536. *" memcmp.$ac_objext "* ) ;;
  4537. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  4538. ;;
  4539. esac
  4540. for ac_func in memset strcasecmp strchr strdup strerror strtol strtoul
  4541. do :
  4542. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4543. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4544. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4545. cat >>confdefs.h <<_ACEOF
  4546. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4547. _ACEOF
  4548. fi
  4549. done
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
  4551. $as_echo_n "checking whether our compiler supports __func__... " >&6; }
  4552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4553. /* end confdefs.h. */
  4554. int
  4555. main ()
  4556. {
  4557. const char *cp = __func__
  4558. ;
  4559. return 0;
  4560. }
  4561. _ACEOF
  4562. if ac_fn_c_try_compile "$LINENO"; then :
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4564. $as_echo "yes" >&6; }
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4567. $as_echo "no" >&6; }
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
  4569. $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
  4570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4571. /* end confdefs.h. */
  4572. int
  4573. main ()
  4574. {
  4575. const char *cp = __FUNCTION__
  4576. ;
  4577. return 0;
  4578. }
  4579. _ACEOF
  4580. if ac_fn_c_try_compile "$LINENO"; then :
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4582. $as_echo "yes" >&6; }
  4583. $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
  4584. else
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4586. $as_echo "no" >&6; }
  4587. $as_echo "#define __func__ __FILE__" >>confdefs.h
  4588. fi
  4589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4590. fi
  4591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4592. ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile man/uncrustify.1 src/uncrustify_version.h"
  4593. cat >confcache <<\_ACEOF
  4594. # This file is a shell script that caches the results of configure
  4595. # tests run on this system so they can be shared between configure
  4596. # scripts and configure runs, see configure's option --config-cache.
  4597. # It is not useful on other systems. If it contains results you don't
  4598. # want to keep, you may remove or edit it.
  4599. #
  4600. # config.status only pays attention to the cache file if you give it
  4601. # the --recheck option to rerun configure.
  4602. #
  4603. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4604. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4605. # following values.
  4606. _ACEOF
  4607. # The following way of writing the cache mishandles newlines in values,
  4608. # but we know of no workaround that is simple, portable, and efficient.
  4609. # So, we kill variables containing newlines.
  4610. # Ultrix sh set writes to stderr and can't be redirected directly,
  4611. # and sets the high bit in the cache file unless we assign to the vars.
  4612. (
  4613. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4614. eval ac_val=\$$ac_var
  4615. case $ac_val in #(
  4616. *${as_nl}*)
  4617. case $ac_var in #(
  4618. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4619. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4620. esac
  4621. case $ac_var in #(
  4622. _ | IFS | as_nl) ;; #(
  4623. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4624. *) { eval $ac_var=; unset $ac_var;} ;;
  4625. esac ;;
  4626. esac
  4627. done
  4628. (set) 2>&1 |
  4629. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4630. *${as_nl}ac_space=\ *)
  4631. # `set' does not quote correctly, so add quotes: double-quote
  4632. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4633. sed -n \
  4634. "s/'/'\\\\''/g;
  4635. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4636. ;; #(
  4637. *)
  4638. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4639. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4640. ;;
  4641. esac |
  4642. sort
  4643. ) |
  4644. sed '
  4645. /^ac_cv_env_/b end
  4646. t clear
  4647. :clear
  4648. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4649. t end
  4650. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4651. :end' >>confcache
  4652. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4653. if test -w "$cache_file"; then
  4654. if test "x$cache_file" != "x/dev/null"; then
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4656. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4657. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4658. cat confcache >"$cache_file"
  4659. else
  4660. case $cache_file in #(
  4661. */* | ?:*)
  4662. mv -f confcache "$cache_file"$$ &&
  4663. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4664. *)
  4665. mv -f confcache "$cache_file" ;;
  4666. esac
  4667. fi
  4668. fi
  4669. else
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4671. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4672. fi
  4673. fi
  4674. rm -f confcache
  4675. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4676. # Let make expand exec_prefix.
  4677. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4678. DEFS=-DHAVE_CONFIG_H
  4679. ac_libobjs=
  4680. ac_ltlibobjs=
  4681. U=
  4682. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4683. # 1. Remove the extension, and $U if already installed.
  4684. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4685. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4686. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4687. # will be set to the directory where LIBOBJS objects are built.
  4688. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4689. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4690. done
  4691. LIBOBJS=$ac_libobjs
  4692. LTLIBOBJS=$ac_ltlibobjs
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  4694. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  4695. if test -n "$am_sleep_pid"; then
  4696. # Hide warnings about reused PIDs.
  4697. wait $am_sleep_pid 2>/dev/null
  4698. fi
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  4700. $as_echo "done" >&6; }
  4701. if test -n "$EXEEXT"; then
  4702. am__EXEEXT_TRUE=
  4703. am__EXEEXT_FALSE='#'
  4704. else
  4705. am__EXEEXT_TRUE='#'
  4706. am__EXEEXT_FALSE=
  4707. fi
  4708. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  4709. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  4710. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  4711. fi
  4712. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  4713. as_fn_error $? "conditional \"AMDEP\" was never defined.
  4714. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  4715. fi
  4716. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  4717. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  4718. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  4719. fi
  4720. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  4721. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  4722. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  4723. fi
  4724. : "${CONFIG_STATUS=./config.status}"
  4725. ac_write_fail=0
  4726. ac_clean_files_save=$ac_clean_files
  4727. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4729. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4730. as_write_fail=0
  4731. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4732. #! $SHELL
  4733. # Generated by $as_me.
  4734. # Run this file to recreate the current configuration.
  4735. # Compiler output produced by configure, useful for debugging
  4736. # configure, is in config.log if it exists.
  4737. debug=false
  4738. ac_cs_recheck=false
  4739. ac_cs_silent=false
  4740. SHELL=\${CONFIG_SHELL-$SHELL}
  4741. export SHELL
  4742. _ASEOF
  4743. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4744. ## -------------------- ##
  4745. ## M4sh Initialization. ##
  4746. ## -------------------- ##
  4747. # Be more Bourne compatible
  4748. DUALCASE=1; export DUALCASE # for MKS sh
  4749. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4750. emulate sh
  4751. NULLCMD=:
  4752. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4753. # is contrary to our usage. Disable this feature.
  4754. alias -g '${1+"$@"}'='"$@"'
  4755. setopt NO_GLOB_SUBST
  4756. else
  4757. case `(set -o) 2>/dev/null` in #(
  4758. *posix*) :
  4759. set -o posix ;; #(
  4760. *) :
  4761. ;;
  4762. esac
  4763. fi
  4764. as_nl='
  4765. '
  4766. export as_nl
  4767. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4768. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4769. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4770. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4771. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4772. # but without wasting forks for bash or zsh.
  4773. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4774. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4775. as_echo='print -r --'
  4776. as_echo_n='print -rn --'
  4777. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4778. as_echo='printf %s\n'
  4779. as_echo_n='printf %s'
  4780. else
  4781. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4782. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4783. as_echo_n='/usr/ucb/echo -n'
  4784. else
  4785. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4786. as_echo_n_body='eval
  4787. arg=$1;
  4788. case $arg in #(
  4789. *"$as_nl"*)
  4790. expr "X$arg" : "X\\(.*\\)$as_nl";
  4791. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4792. esac;
  4793. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4794. '
  4795. export as_echo_n_body
  4796. as_echo_n='sh -c $as_echo_n_body as_echo'
  4797. fi
  4798. export as_echo_body
  4799. as_echo='sh -c $as_echo_body as_echo'
  4800. fi
  4801. # The user is always right.
  4802. if test "${PATH_SEPARATOR+set}" != set; then
  4803. PATH_SEPARATOR=:
  4804. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4805. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4806. PATH_SEPARATOR=';'
  4807. }
  4808. fi
  4809. # IFS
  4810. # We need space, tab and new line, in precisely that order. Quoting is
  4811. # there to prevent editors from complaining about space-tab.
  4812. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4813. # splitting by setting IFS to empty value.)
  4814. IFS=" "" $as_nl"
  4815. # Find who we are. Look in the path if we contain no directory separator.
  4816. as_myself=
  4817. case $0 in #((
  4818. *[\\/]* ) as_myself=$0 ;;
  4819. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4820. for as_dir in $PATH
  4821. do
  4822. IFS=$as_save_IFS
  4823. test -z "$as_dir" && as_dir=.
  4824. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4825. done
  4826. IFS=$as_save_IFS
  4827. ;;
  4828. esac
  4829. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4830. # in which case we are not to be found in the path.
  4831. if test "x$as_myself" = x; then
  4832. as_myself=$0
  4833. fi
  4834. if test ! -f "$as_myself"; then
  4835. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4836. exit 1
  4837. fi
  4838. # Unset variables that we do not need and which cause bugs (e.g. in
  4839. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4840. # suppresses any "Segmentation fault" message there. '((' could
  4841. # trigger a bug in pdksh 5.2.14.
  4842. for as_var in BASH_ENV ENV MAIL MAILPATH
  4843. do eval test x\${$as_var+set} = xset \
  4844. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4845. done
  4846. PS1='$ '
  4847. PS2='> '
  4848. PS4='+ '
  4849. # NLS nuisances.
  4850. LC_ALL=C
  4851. export LC_ALL
  4852. LANGUAGE=C
  4853. export LANGUAGE
  4854. # CDPATH.
  4855. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4856. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  4857. # ----------------------------------------
  4858. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4859. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4860. # script with STATUS, using 1 if that was 0.
  4861. as_fn_error ()
  4862. {
  4863. as_status=$1; test $as_status -eq 0 && as_status=1
  4864. if test "$4"; then
  4865. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4866. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  4867. fi
  4868. $as_echo "$as_me: error: $2" >&2
  4869. as_fn_exit $as_status
  4870. } # as_fn_error
  4871. # as_fn_set_status STATUS
  4872. # -----------------------
  4873. # Set $? to STATUS, without forking.
  4874. as_fn_set_status ()
  4875. {
  4876. return $1
  4877. } # as_fn_set_status
  4878. # as_fn_exit STATUS
  4879. # -----------------
  4880. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4881. as_fn_exit ()
  4882. {
  4883. set +e
  4884. as_fn_set_status $1
  4885. exit $1
  4886. } # as_fn_exit
  4887. # as_fn_unset VAR
  4888. # ---------------
  4889. # Portably unset VAR.
  4890. as_fn_unset ()
  4891. {
  4892. { eval $1=; unset $1;}
  4893. }
  4894. as_unset=as_fn_unset
  4895. # as_fn_append VAR VALUE
  4896. # ----------------------
  4897. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4898. # advantage of any shell optimizations that allow amortized linear growth over
  4899. # repeated appends, instead of the typical quadratic growth present in naive
  4900. # implementations.
  4901. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4902. eval 'as_fn_append ()
  4903. {
  4904. eval $1+=\$2
  4905. }'
  4906. else
  4907. as_fn_append ()
  4908. {
  4909. eval $1=\$$1\$2
  4910. }
  4911. fi # as_fn_append
  4912. # as_fn_arith ARG...
  4913. # ------------------
  4914. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4915. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4916. # must be portable across $(()) and expr.
  4917. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4918. eval 'as_fn_arith ()
  4919. {
  4920. as_val=$(( $* ))
  4921. }'
  4922. else
  4923. as_fn_arith ()
  4924. {
  4925. as_val=`expr "$@" || test $? -eq 1`
  4926. }
  4927. fi # as_fn_arith
  4928. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4929. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4930. as_expr=expr
  4931. else
  4932. as_expr=false
  4933. fi
  4934. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4935. as_basename=basename
  4936. else
  4937. as_basename=false
  4938. fi
  4939. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4940. as_dirname=dirname
  4941. else
  4942. as_dirname=false
  4943. fi
  4944. as_me=`$as_basename -- "$0" ||
  4945. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4946. X"$0" : 'X\(//\)$' \| \
  4947. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4948. $as_echo X/"$0" |
  4949. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4950. s//\1/
  4951. q
  4952. }
  4953. /^X\/\(\/\/\)$/{
  4954. s//\1/
  4955. q
  4956. }
  4957. /^X\/\(\/\).*/{
  4958. s//\1/
  4959. q
  4960. }
  4961. s/.*/./; q'`
  4962. # Avoid depending upon Character Ranges.
  4963. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4964. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4965. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4966. as_cr_digits='0123456789'
  4967. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4968. ECHO_C= ECHO_N= ECHO_T=
  4969. case `echo -n x` in #(((((
  4970. -n*)
  4971. case `echo 'xy\c'` in
  4972. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4973. xy) ECHO_C='\c';;
  4974. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4975. ECHO_T=' ';;
  4976. esac;;
  4977. *)
  4978. ECHO_N='-n';;
  4979. esac
  4980. rm -f conf$$ conf$$.exe conf$$.file
  4981. if test -d conf$$.dir; then
  4982. rm -f conf$$.dir/conf$$.file
  4983. else
  4984. rm -f conf$$.dir
  4985. mkdir conf$$.dir 2>/dev/null
  4986. fi
  4987. if (echo >conf$$.file) 2>/dev/null; then
  4988. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4989. as_ln_s='ln -s'
  4990. # ... but there are two gotchas:
  4991. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4992. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4993. # In both cases, we have to default to `cp -pR'.
  4994. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4995. as_ln_s='cp -pR'
  4996. elif ln conf$$.file conf$$ 2>/dev/null; then
  4997. as_ln_s=ln
  4998. else
  4999. as_ln_s='cp -pR'
  5000. fi
  5001. else
  5002. as_ln_s='cp -pR'
  5003. fi
  5004. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5005. rmdir conf$$.dir 2>/dev/null
  5006. # as_fn_mkdir_p
  5007. # -------------
  5008. # Create "$as_dir" as a directory, including parents if necessary.
  5009. as_fn_mkdir_p ()
  5010. {
  5011. case $as_dir in #(
  5012. -*) as_dir=./$as_dir;;
  5013. esac
  5014. test -d "$as_dir" || eval $as_mkdir_p || {
  5015. as_dirs=
  5016. while :; do
  5017. case $as_dir in #(
  5018. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5019. *) as_qdir=$as_dir;;
  5020. esac
  5021. as_dirs="'$as_qdir' $as_dirs"
  5022. as_dir=`$as_dirname -- "$as_dir" ||
  5023. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5024. X"$as_dir" : 'X\(//\)[^/]' \| \
  5025. X"$as_dir" : 'X\(//\)$' \| \
  5026. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5027. $as_echo X"$as_dir" |
  5028. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5029. s//\1/
  5030. q
  5031. }
  5032. /^X\(\/\/\)[^/].*/{
  5033. s//\1/
  5034. q
  5035. }
  5036. /^X\(\/\/\)$/{
  5037. s//\1/
  5038. q
  5039. }
  5040. /^X\(\/\).*/{
  5041. s//\1/
  5042. q
  5043. }
  5044. s/.*/./; q'`
  5045. test -d "$as_dir" && break
  5046. done
  5047. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5048. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  5049. } # as_fn_mkdir_p
  5050. if mkdir -p . 2>/dev/null; then
  5051. as_mkdir_p='mkdir -p "$as_dir"'
  5052. else
  5053. test -d ./-p && rmdir ./-p
  5054. as_mkdir_p=false
  5055. fi
  5056. # as_fn_executable_p FILE
  5057. # -----------------------
  5058. # Test if FILE is an executable regular file.
  5059. as_fn_executable_p ()
  5060. {
  5061. test -f "$1" && test -x "$1"
  5062. } # as_fn_executable_p
  5063. as_test_x='test -x'
  5064. as_executable_p=as_fn_executable_p
  5065. # Sed expression to map a string onto a valid CPP name.
  5066. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5067. # Sed expression to map a string onto a valid variable name.
  5068. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5069. exec 6>&1
  5070. ## ----------------------------------- ##
  5071. ## Main body of $CONFIG_STATUS script. ##
  5072. ## ----------------------------------- ##
  5073. _ASEOF
  5074. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5075. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5076. # Save the log message, to keep $0 and so on meaningful, and to
  5077. # report actual input values of CONFIG_FILES etc. instead of their
  5078. # values after options handling.
  5079. ac_log="
  5080. This file was extended by uncrustify $as_me 0.61, which was
  5081. generated by GNU Autoconf 2.69. Invocation command line was
  5082. CONFIG_FILES = $CONFIG_FILES
  5083. CONFIG_HEADERS = $CONFIG_HEADERS
  5084. CONFIG_LINKS = $CONFIG_LINKS
  5085. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5086. $ $0 $@
  5087. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5088. "
  5089. _ACEOF
  5090. case $ac_config_files in *"
  5091. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5092. esac
  5093. case $ac_config_headers in *"
  5094. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5095. esac
  5096. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5097. # Files that config.status was made for.
  5098. config_files="$ac_config_files"
  5099. config_headers="$ac_config_headers"
  5100. config_commands="$ac_config_commands"
  5101. _ACEOF
  5102. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5103. ac_cs_usage="\
  5104. \`$as_me' instantiates files and other configuration actions
  5105. from templates according to the current configuration. Unless the files
  5106. and actions are specified as TAGs, all are instantiated by default.
  5107. Usage: $0 [OPTION]... [TAG]...
  5108. -h, --help print this help, then exit
  5109. -V, --version print version number and configuration settings, then exit
  5110. --config print configuration, then exit
  5111. -q, --quiet, --silent
  5112. do not print progress messages
  5113. -d, --debug don't remove temporary files
  5114. --recheck update $as_me by reconfiguring in the same conditions
  5115. --file=FILE[:TEMPLATE]
  5116. instantiate the configuration file FILE
  5117. --header=FILE[:TEMPLATE]
  5118. instantiate the configuration header FILE
  5119. Configuration files:
  5120. $config_files
  5121. Configuration headers:
  5122. $config_headers
  5123. Configuration commands:
  5124. $config_commands
  5125. Report bugs to the package provider.
  5126. uncrustify home page: <http://uncrustify.sourceforge.net/>."
  5127. _ACEOF
  5128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5129. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  5130. ac_cs_version="\\
  5131. uncrustify config.status 0.61
  5132. configured by $0, generated by GNU Autoconf 2.69,
  5133. with options \\"\$ac_cs_config\\"
  5134. Copyright (C) 2012 Free Software Foundation, Inc.
  5135. This config.status script is free software; the Free Software Foundation
  5136. gives unlimited permission to copy, distribute and modify it."
  5137. ac_pwd='$ac_pwd'
  5138. srcdir='$srcdir'
  5139. INSTALL='$INSTALL'
  5140. MKDIR_P='$MKDIR_P'
  5141. AWK='$AWK'
  5142. test -n "\$AWK" || AWK=awk
  5143. _ACEOF
  5144. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5145. # The default lists apply if the user does not specify any file.
  5146. ac_need_defaults=:
  5147. while test $# != 0
  5148. do
  5149. case $1 in
  5150. --*=?*)
  5151. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5152. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5153. ac_shift=:
  5154. ;;
  5155. --*=)
  5156. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5157. ac_optarg=
  5158. ac_shift=:
  5159. ;;
  5160. *)
  5161. ac_option=$1
  5162. ac_optarg=$2
  5163. ac_shift=shift
  5164. ;;
  5165. esac
  5166. case $ac_option in
  5167. # Handling of the options.
  5168. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5169. ac_cs_recheck=: ;;
  5170. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5171. $as_echo "$ac_cs_version"; exit ;;
  5172. --config | --confi | --conf | --con | --co | --c )
  5173. $as_echo "$ac_cs_config"; exit ;;
  5174. --debug | --debu | --deb | --de | --d | -d )
  5175. debug=: ;;
  5176. --file | --fil | --fi | --f )
  5177. $ac_shift
  5178. case $ac_optarg in
  5179. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5180. '') as_fn_error $? "missing file argument" ;;
  5181. esac
  5182. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5183. ac_need_defaults=false;;
  5184. --header | --heade | --head | --hea )
  5185. $ac_shift
  5186. case $ac_optarg in
  5187. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5188. esac
  5189. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5190. ac_need_defaults=false;;
  5191. --he | --h)
  5192. # Conflict between --help and --header
  5193. as_fn_error $? "ambiguous option: \`$1'
  5194. Try \`$0 --help' for more information.";;
  5195. --help | --hel | -h )
  5196. $as_echo "$ac_cs_usage"; exit ;;
  5197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5198. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5199. ac_cs_silent=: ;;
  5200. # This is an error.
  5201. -*) as_fn_error $? "unrecognized option: \`$1'
  5202. Try \`$0 --help' for more information." ;;
  5203. *) as_fn_append ac_config_targets " $1"
  5204. ac_need_defaults=false ;;
  5205. esac
  5206. shift
  5207. done
  5208. ac_configure_extra_args=
  5209. if $ac_cs_silent; then
  5210. exec 6>/dev/null
  5211. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5212. fi
  5213. _ACEOF
  5214. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5215. if \$ac_cs_recheck; then
  5216. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5217. shift
  5218. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5219. CONFIG_SHELL='$SHELL'
  5220. export CONFIG_SHELL
  5221. exec "\$@"
  5222. fi
  5223. _ACEOF
  5224. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5225. exec 5>>config.log
  5226. {
  5227. echo
  5228. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5229. ## Running $as_me. ##
  5230. _ASBOX
  5231. $as_echo "$ac_log"
  5232. } >&5
  5233. _ACEOF
  5234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5235. #
  5236. # INIT-COMMANDS
  5237. #
  5238. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  5239. _ACEOF
  5240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5241. # Handling of arguments.
  5242. for ac_config_target in $ac_config_targets
  5243. do
  5244. case $ac_config_target in
  5245. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  5246. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  5247. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5248. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  5249. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  5250. "man/uncrustify.1") CONFIG_FILES="$CONFIG_FILES man/uncrustify.1" ;;
  5251. "src/uncrustify_version.h") CONFIG_FILES="$CONFIG_FILES src/uncrustify_version.h" ;;
  5252. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5253. esac
  5254. done
  5255. # If the user did not use the arguments to specify the items to instantiate,
  5256. # then the envvar interface is used. Set only those that are not.
  5257. # We use the long form for the default assignment because of an extremely
  5258. # bizarre bug on SunOS 4.1.3.
  5259. if $ac_need_defaults; then
  5260. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5261. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5262. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  5263. fi
  5264. # Have a temporary directory for convenience. Make it in the build tree
  5265. # simply because there is no reason against having it here, and in addition,
  5266. # creating and moving files from /tmp can sometimes cause problems.
  5267. # Hook for its removal unless debugging.
  5268. # Note that there is a small window in which the directory will not be cleaned:
  5269. # after its creation but before its name has been assigned to `$tmp'.
  5270. $debug ||
  5271. {
  5272. tmp= ac_tmp=
  5273. trap 'exit_status=$?
  5274. : "${ac_tmp:=$tmp}"
  5275. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5276. ' 0
  5277. trap 'as_fn_exit 1' 1 2 13 15
  5278. }
  5279. # Create a (secure) tmp directory for tmp files.
  5280. {
  5281. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5282. test -d "$tmp"
  5283. } ||
  5284. {
  5285. tmp=./conf$$-$RANDOM
  5286. (umask 077 && mkdir "$tmp")
  5287. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5288. ac_tmp=$tmp
  5289. # Set up the scripts for CONFIG_FILES section.
  5290. # No need to generate them if there are no CONFIG_FILES.
  5291. # This happens for instance with `./config.status config.h'.
  5292. if test -n "$CONFIG_FILES"; then
  5293. ac_cr=`echo X | tr X '\015'`
  5294. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5295. # But we know of no other shell where ac_cr would be empty at this
  5296. # point, so we can use a bashism as a fallback.
  5297. if test "x$ac_cr" = x; then
  5298. eval ac_cr=\$\'\\r\'
  5299. fi
  5300. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5301. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5302. ac_cs_awk_cr='\\r'
  5303. else
  5304. ac_cs_awk_cr=$ac_cr
  5305. fi
  5306. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5307. _ACEOF
  5308. {
  5309. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5310. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5311. echo "_ACEOF"
  5312. } >conf$$subs.sh ||
  5313. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5314. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5315. ac_delim='%!_!# '
  5316. for ac_last_try in false false false false false :; do
  5317. . ./conf$$subs.sh ||
  5318. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5319. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5320. if test $ac_delim_n = $ac_delim_num; then
  5321. break
  5322. elif $ac_last_try; then
  5323. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5324. else
  5325. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5326. fi
  5327. done
  5328. rm -f conf$$subs.sh
  5329. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5330. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5331. _ACEOF
  5332. sed -n '
  5333. h
  5334. s/^/S["/; s/!.*/"]=/
  5335. p
  5336. g
  5337. s/^[^!]*!//
  5338. :repl
  5339. t repl
  5340. s/'"$ac_delim"'$//
  5341. t delim
  5342. :nl
  5343. h
  5344. s/\(.\{148\}\)..*/\1/
  5345. t more1
  5346. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5347. p
  5348. n
  5349. b repl
  5350. :more1
  5351. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5352. p
  5353. g
  5354. s/.\{148\}//
  5355. t nl
  5356. :delim
  5357. h
  5358. s/\(.\{148\}\)..*/\1/
  5359. t more2
  5360. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5361. p
  5362. b
  5363. :more2
  5364. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5365. p
  5366. g
  5367. s/.\{148\}//
  5368. t delim
  5369. ' <conf$$subs.awk | sed '
  5370. /^[^""]/{
  5371. N
  5372. s/\n//
  5373. }
  5374. ' >>$CONFIG_STATUS || ac_write_fail=1
  5375. rm -f conf$$subs.awk
  5376. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5377. _ACAWK
  5378. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5379. for (key in S) S_is_set[key] = 1
  5380. FS = ""
  5381. }
  5382. {
  5383. line = $ 0
  5384. nfields = split(line, field, "@")
  5385. substed = 0
  5386. len = length(field[1])
  5387. for (i = 2; i < nfields; i++) {
  5388. key = field[i]
  5389. keylen = length(key)
  5390. if (S_is_set[key]) {
  5391. value = S[key]
  5392. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5393. len += length(value) + length(field[++i])
  5394. substed = 1
  5395. } else
  5396. len += 1 + keylen
  5397. }
  5398. print line
  5399. }
  5400. _ACAWK
  5401. _ACEOF
  5402. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5403. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5404. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5405. else
  5406. cat
  5407. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5408. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5409. _ACEOF
  5410. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5411. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5412. # trailing colons and then remove the whole line if VPATH becomes empty
  5413. # (actually we leave an empty line to preserve line numbers).
  5414. if test "x$srcdir" = x.; then
  5415. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5416. h
  5417. s///
  5418. s/^/:/
  5419. s/[ ]*$/:/
  5420. s/:\$(srcdir):/:/g
  5421. s/:\${srcdir}:/:/g
  5422. s/:@srcdir@:/:/g
  5423. s/^:*//
  5424. s/:*$//
  5425. x
  5426. s/\(=[ ]*\).*/\1/
  5427. G
  5428. s/\n//
  5429. s/^[^=]*=[ ]*$//
  5430. }'
  5431. fi
  5432. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5433. fi # test -n "$CONFIG_FILES"
  5434. # Set up the scripts for CONFIG_HEADERS section.
  5435. # No need to generate them if there are no CONFIG_HEADERS.
  5436. # This happens for instance with `./config.status Makefile'.
  5437. if test -n "$CONFIG_HEADERS"; then
  5438. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5439. BEGIN {
  5440. _ACEOF
  5441. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5442. # here-document in config.status, that substitutes the proper values into
  5443. # config.h.in to produce config.h.
  5444. # Create a delimiter string that does not exist in confdefs.h, to ease
  5445. # handling of long lines.
  5446. ac_delim='%!_!# '
  5447. for ac_last_try in false false :; do
  5448. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5449. if test -z "$ac_tt"; then
  5450. break
  5451. elif $ac_last_try; then
  5452. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5453. else
  5454. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5455. fi
  5456. done
  5457. # For the awk script, D is an array of macro values keyed by name,
  5458. # likewise P contains macro parameters if any. Preserve backslash
  5459. # newline sequences.
  5460. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5461. sed -n '
  5462. s/.\{148\}/&'"$ac_delim"'/g
  5463. t rset
  5464. :rset
  5465. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5466. t def
  5467. d
  5468. :def
  5469. s/\\$//
  5470. t bsnl
  5471. s/["\\]/\\&/g
  5472. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5473. D["\1"]=" \3"/p
  5474. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5475. d
  5476. :bsnl
  5477. s/["\\]/\\&/g
  5478. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5479. D["\1"]=" \3\\\\\\n"\\/p
  5480. t cont
  5481. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5482. t cont
  5483. d
  5484. :cont
  5485. n
  5486. s/.\{148\}/&'"$ac_delim"'/g
  5487. t clear
  5488. :clear
  5489. s/\\$//
  5490. t bsnlc
  5491. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5492. d
  5493. :bsnlc
  5494. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5495. b cont
  5496. ' <confdefs.h | sed '
  5497. s/'"$ac_delim"'/"\\\
  5498. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5499. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5500. for (key in D) D_is_set[key] = 1
  5501. FS = ""
  5502. }
  5503. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5504. line = \$ 0
  5505. split(line, arg, " ")
  5506. if (arg[1] == "#") {
  5507. defundef = arg[2]
  5508. mac1 = arg[3]
  5509. } else {
  5510. defundef = substr(arg[1], 2)
  5511. mac1 = arg[2]
  5512. }
  5513. split(mac1, mac2, "(") #)
  5514. macro = mac2[1]
  5515. prefix = substr(line, 1, index(line, defundef) - 1)
  5516. if (D_is_set[macro]) {
  5517. # Preserve the white space surrounding the "#".
  5518. print prefix "define", macro P[macro] D[macro]
  5519. next
  5520. } else {
  5521. # Replace #undef with comments. This is necessary, for example,
  5522. # in the case of _POSIX_SOURCE, which is predefined and required
  5523. # on some systems where configure will not decide to define it.
  5524. if (defundef == "undef") {
  5525. print "/*", prefix defundef, macro, "*/"
  5526. next
  5527. }
  5528. }
  5529. }
  5530. { print }
  5531. _ACAWK
  5532. _ACEOF
  5533. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5534. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5535. fi # test -n "$CONFIG_HEADERS"
  5536. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  5537. shift
  5538. for ac_tag
  5539. do
  5540. case $ac_tag in
  5541. :[FHLC]) ac_mode=$ac_tag; continue;;
  5542. esac
  5543. case $ac_mode$ac_tag in
  5544. :[FHL]*:*);;
  5545. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5546. :[FH]-) ac_tag=-:-;;
  5547. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5548. esac
  5549. ac_save_IFS=$IFS
  5550. IFS=:
  5551. set x $ac_tag
  5552. IFS=$ac_save_IFS
  5553. shift
  5554. ac_file=$1
  5555. shift
  5556. case $ac_mode in
  5557. :L) ac_source=$1;;
  5558. :[FH])
  5559. ac_file_inputs=
  5560. for ac_f
  5561. do
  5562. case $ac_f in
  5563. -) ac_f="$ac_tmp/stdin";;
  5564. *) # Look for the file first in the build tree, then in the source tree
  5565. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5566. # because $ac_f cannot contain `:'.
  5567. test -f "$ac_f" ||
  5568. case $ac_f in
  5569. [\\/$]*) false;;
  5570. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5571. esac ||
  5572. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5573. esac
  5574. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5575. as_fn_append ac_file_inputs " '$ac_f'"
  5576. done
  5577. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5578. # use $as_me), people would be surprised to read:
  5579. # /* config.h. Generated by config.status. */
  5580. configure_input='Generated from '`
  5581. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5582. `' by configure.'
  5583. if test x"$ac_file" != x-; then
  5584. configure_input="$ac_file. $configure_input"
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5586. $as_echo "$as_me: creating $ac_file" >&6;}
  5587. fi
  5588. # Neutralize special characters interpreted by sed in replacement strings.
  5589. case $configure_input in #(
  5590. *\&* | *\|* | *\\* )
  5591. ac_sed_conf_input=`$as_echo "$configure_input" |
  5592. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5593. *) ac_sed_conf_input=$configure_input;;
  5594. esac
  5595. case $ac_tag in
  5596. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5597. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5598. esac
  5599. ;;
  5600. esac
  5601. ac_dir=`$as_dirname -- "$ac_file" ||
  5602. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5603. X"$ac_file" : 'X\(//\)[^/]' \| \
  5604. X"$ac_file" : 'X\(//\)$' \| \
  5605. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5606. $as_echo X"$ac_file" |
  5607. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5608. s//\1/
  5609. q
  5610. }
  5611. /^X\(\/\/\)[^/].*/{
  5612. s//\1/
  5613. q
  5614. }
  5615. /^X\(\/\/\)$/{
  5616. s//\1/
  5617. q
  5618. }
  5619. /^X\(\/\).*/{
  5620. s//\1/
  5621. q
  5622. }
  5623. s/.*/./; q'`
  5624. as_dir="$ac_dir"; as_fn_mkdir_p
  5625. ac_builddir=.
  5626. case "$ac_dir" in
  5627. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5628. *)
  5629. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5630. # A ".." for each directory in $ac_dir_suffix.
  5631. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5632. case $ac_top_builddir_sub in
  5633. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5634. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5635. esac ;;
  5636. esac
  5637. ac_abs_top_builddir=$ac_pwd
  5638. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5639. # for backward compatibility:
  5640. ac_top_builddir=$ac_top_build_prefix
  5641. case $srcdir in
  5642. .) # We are building in place.
  5643. ac_srcdir=.
  5644. ac_top_srcdir=$ac_top_builddir_sub
  5645. ac_abs_top_srcdir=$ac_pwd ;;
  5646. [\\/]* | ?:[\\/]* ) # Absolute name.
  5647. ac_srcdir=$srcdir$ac_dir_suffix;
  5648. ac_top_srcdir=$srcdir
  5649. ac_abs_top_srcdir=$srcdir ;;
  5650. *) # Relative name.
  5651. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5652. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5653. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5654. esac
  5655. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5656. case $ac_mode in
  5657. :F)
  5658. #
  5659. # CONFIG_FILE
  5660. #
  5661. case $INSTALL in
  5662. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5663. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5664. esac
  5665. ac_MKDIR_P=$MKDIR_P
  5666. case $MKDIR_P in
  5667. [\\/$]* | ?:[\\/]* ) ;;
  5668. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  5669. esac
  5670. _ACEOF
  5671. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5672. # If the template does not know about datarootdir, expand it.
  5673. # FIXME: This hack should be removed a few years after 2.60.
  5674. ac_datarootdir_hack=; ac_datarootdir_seen=
  5675. ac_sed_dataroot='
  5676. /datarootdir/ {
  5677. p
  5678. q
  5679. }
  5680. /@datadir@/p
  5681. /@docdir@/p
  5682. /@infodir@/p
  5683. /@localedir@/p
  5684. /@mandir@/p'
  5685. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5686. *datarootdir*) ac_datarootdir_seen=yes;;
  5687. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5689. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5690. _ACEOF
  5691. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5692. ac_datarootdir_hack='
  5693. s&@datadir@&$datadir&g
  5694. s&@docdir@&$docdir&g
  5695. s&@infodir@&$infodir&g
  5696. s&@localedir@&$localedir&g
  5697. s&@mandir@&$mandir&g
  5698. s&\\\${datarootdir}&$datarootdir&g' ;;
  5699. esac
  5700. _ACEOF
  5701. # Neutralize VPATH when `$srcdir' = `.'.
  5702. # Shell code in configure.ac might set extrasub.
  5703. # FIXME: do we really want to maintain this feature?
  5704. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5705. ac_sed_extra="$ac_vpsub
  5706. $extrasub
  5707. _ACEOF
  5708. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5709. :t
  5710. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5711. s|@configure_input@|$ac_sed_conf_input|;t t
  5712. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5713. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5714. s&@srcdir@&$ac_srcdir&;t t
  5715. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5716. s&@top_srcdir@&$ac_top_srcdir&;t t
  5717. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5718. s&@builddir@&$ac_builddir&;t t
  5719. s&@abs_builddir@&$ac_abs_builddir&;t t
  5720. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5721. s&@INSTALL@&$ac_INSTALL&;t t
  5722. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  5723. $ac_datarootdir_hack
  5724. "
  5725. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5726. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5727. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5728. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5729. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5730. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5732. which seems to be undefined. Please make sure it is defined" >&5
  5733. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5734. which seems to be undefined. Please make sure it is defined" >&2;}
  5735. rm -f "$ac_tmp/stdin"
  5736. case $ac_file in
  5737. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5738. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5739. esac \
  5740. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5741. ;;
  5742. :H)
  5743. #
  5744. # CONFIG_HEADER
  5745. #
  5746. if test x"$ac_file" != x-; then
  5747. {
  5748. $as_echo "/* $configure_input */" \
  5749. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5750. } >"$ac_tmp/config.h" \
  5751. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5752. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5754. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5755. else
  5756. rm -f "$ac_file"
  5757. mv "$ac_tmp/config.h" "$ac_file" \
  5758. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5759. fi
  5760. else
  5761. $as_echo "/* $configure_input */" \
  5762. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5763. || as_fn_error $? "could not create -" "$LINENO" 5
  5764. fi
  5765. # Compute "$ac_file"'s index in $config_headers.
  5766. _am_arg="$ac_file"
  5767. _am_stamp_count=1
  5768. for _am_header in $config_headers :; do
  5769. case $_am_header in
  5770. $_am_arg | $_am_arg:* )
  5771. break ;;
  5772. * )
  5773. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  5774. esac
  5775. done
  5776. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  5777. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5778. X"$_am_arg" : 'X\(//\)[^/]' \| \
  5779. X"$_am_arg" : 'X\(//\)$' \| \
  5780. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  5781. $as_echo X"$_am_arg" |
  5782. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5783. s//\1/
  5784. q
  5785. }
  5786. /^X\(\/\/\)[^/].*/{
  5787. s//\1/
  5788. q
  5789. }
  5790. /^X\(\/\/\)$/{
  5791. s//\1/
  5792. q
  5793. }
  5794. /^X\(\/\).*/{
  5795. s//\1/
  5796. q
  5797. }
  5798. s/.*/./; q'`/stamp-h$_am_stamp_count
  5799. ;;
  5800. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  5801. $as_echo "$as_me: executing $ac_file commands" >&6;}
  5802. ;;
  5803. esac
  5804. case $ac_file$ac_mode in
  5805. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  5806. # Older Autoconf quotes --file arguments for eval, but not when files
  5807. # are listed without --file. Let's play safe and only enable the eval
  5808. # if we detect the quoting.
  5809. case $CONFIG_FILES in
  5810. *\'*) eval set x "$CONFIG_FILES" ;;
  5811. *) set x $CONFIG_FILES ;;
  5812. esac
  5813. shift
  5814. for mf
  5815. do
  5816. # Strip MF so we end up with the name of the file.
  5817. mf=`echo "$mf" | sed -e 's/:.*$//'`
  5818. # Check whether this is an Automake generated Makefile or not.
  5819. # We used to match only the files named 'Makefile.in', but
  5820. # some people rename them; so instead we look at the file content.
  5821. # Grep'ing the first line is not enough: some people post-process
  5822. # each Makefile.in and add a new line on top of each file to say so.
  5823. # Grep'ing the whole file is not good either: AIX grep has a line
  5824. # limit of 2048, but all sed's we know have understand at least 4000.
  5825. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  5826. dirpart=`$as_dirname -- "$mf" ||
  5827. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5828. X"$mf" : 'X\(//\)[^/]' \| \
  5829. X"$mf" : 'X\(//\)$' \| \
  5830. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  5831. $as_echo X"$mf" |
  5832. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5833. s//\1/
  5834. q
  5835. }
  5836. /^X\(\/\/\)[^/].*/{
  5837. s//\1/
  5838. q
  5839. }
  5840. /^X\(\/\/\)$/{
  5841. s//\1/
  5842. q
  5843. }
  5844. /^X\(\/\).*/{
  5845. s//\1/
  5846. q
  5847. }
  5848. s/.*/./; q'`
  5849. else
  5850. continue
  5851. fi
  5852. # Extract the definition of DEPDIR, am__include, and am__quote
  5853. # from the Makefile without running 'make'.
  5854. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  5855. test -z "$DEPDIR" && continue
  5856. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  5857. test -z "$am__include" && continue
  5858. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  5859. # Find all dependency output files, they are included files with
  5860. # $(DEPDIR) in their names. We invoke sed twice because it is the
  5861. # simplest approach to changing $(DEPDIR) to its actual value in the
  5862. # expansion.
  5863. for file in `sed -n "
  5864. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  5865. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  5866. # Make sure the directory exists.
  5867. test -f "$dirpart/$file" && continue
  5868. fdir=`$as_dirname -- "$file" ||
  5869. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5870. X"$file" : 'X\(//\)[^/]' \| \
  5871. X"$file" : 'X\(//\)$' \| \
  5872. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  5873. $as_echo X"$file" |
  5874. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5875. s//\1/
  5876. q
  5877. }
  5878. /^X\(\/\/\)[^/].*/{
  5879. s//\1/
  5880. q
  5881. }
  5882. /^X\(\/\/\)$/{
  5883. s//\1/
  5884. q
  5885. }
  5886. /^X\(\/\).*/{
  5887. s//\1/
  5888. q
  5889. }
  5890. s/.*/./; q'`
  5891. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  5892. # echo "creating $dirpart/$file"
  5893. echo '# dummy' > "$dirpart/$file"
  5894. done
  5895. done
  5896. }
  5897. ;;
  5898. esac
  5899. done # for ac_tag
  5900. as_fn_exit 0
  5901. _ACEOF
  5902. ac_clean_files=$ac_clean_files_save
  5903. test $ac_write_fail = 0 ||
  5904. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5905. # configure is writing to config.log, and then calls config.status.
  5906. # config.status does its own redirection, appending to config.log.
  5907. # Unfortunately, on DOS this fails, as config.log is still kept open
  5908. # by configure, so config.status won't be able to write to it; its
  5909. # output is simply discarded. So we exec the FD to /dev/null,
  5910. # effectively closing config.log, so it can be properly (re)opened and
  5911. # appended to by config.status. When coming back to configure, we
  5912. # need to make the FD available again.
  5913. if test "$no_create" != yes; then
  5914. ac_cs_success=:
  5915. ac_config_status_args=
  5916. test "$silent" = yes &&
  5917. ac_config_status_args="$ac_config_status_args --quiet"
  5918. exec 5>/dev/null
  5919. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5920. exec 5>>config.log
  5921. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5922. # would make configure fail if this is the last instruction.
  5923. $ac_cs_success || as_fn_exit 1
  5924. fi
  5925. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5927. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5928. fi