Nife version Beta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

6302 line
179 KiB

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