PageRenderTime 85ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 1ms

/contrib/tcsh/configure

https://bitbucket.org/freebsd/freebsd-head/
Shell | 8087 lines | 7201 code | 434 blank | 452 comment | 630 complexity | 53302836b5fe533d6a85e3b8f32a0dea MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for tcsh 6.18.01.
  4. #
  5. # Report bugs to <http://bugs.gw.com/>.
  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. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1"
  164. if (eval "$as_required") 2>/dev/null; then :
  165. as_have_required=yes
  166. else
  167. as_have_required=no
  168. fi
  169. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  170. else
  171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. as_found=false
  173. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  174. do
  175. IFS=$as_save_IFS
  176. test -z "$as_dir" && as_dir=.
  177. as_found=:
  178. case $as_dir in #(
  179. /*)
  180. for as_base in sh bash ksh sh5; do
  181. # Try only shells that exist, to save several forks.
  182. as_shell=$as_dir/$as_base
  183. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  184. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  185. CONFIG_SHELL=$as_shell as_have_required=yes
  186. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. break 2
  188. fi
  189. fi
  190. done;;
  191. esac
  192. as_found=false
  193. done
  194. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  195. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  196. CONFIG_SHELL=$SHELL as_have_required=yes
  197. fi; }
  198. IFS=$as_save_IFS
  199. if test "x$CONFIG_SHELL" != x; then :
  200. # We cannot yet assume a decent shell, so we have to provide a
  201. # neutralization value for shells without unset; and this also
  202. # works around shells that cannot unset nonexistent variables.
  203. # Preserve -v and -x to the replacement shell.
  204. BASH_ENV=/dev/null
  205. ENV=/dev/null
  206. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  207. export CONFIG_SHELL
  208. case $- in # ((((
  209. *v*x* | *x*v* ) as_opts=-vx ;;
  210. *v* ) as_opts=-v ;;
  211. *x* ) as_opts=-x ;;
  212. * ) as_opts= ;;
  213. esac
  214. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  215. fi
  216. if test x$as_have_required = xno; then :
  217. $as_echo "$0: This script requires a shell more modern than all"
  218. $as_echo "$0: the shells that I found on your system."
  219. if test x${ZSH_VERSION+set} = xset ; then
  220. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  221. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  222. else
  223. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  224. $0: http://bugs.gw.com/ about your system, including any
  225. $0: error possibly output before this message. Then install
  226. $0: a modern shell, or manually run the script under such a
  227. $0: shell if you do have one."
  228. fi
  229. exit 1
  230. fi
  231. fi
  232. fi
  233. SHELL=${CONFIG_SHELL-/bin/sh}
  234. export SHELL
  235. # Unset more variables known to interfere with behavior of common tools.
  236. CLICOLOR_FORCE= GREP_OPTIONS=
  237. unset CLICOLOR_FORCE GREP_OPTIONS
  238. ## --------------------- ##
  239. ## M4sh Shell Functions. ##
  240. ## --------------------- ##
  241. # as_fn_unset VAR
  242. # ---------------
  243. # Portably unset VAR.
  244. as_fn_unset ()
  245. {
  246. { eval $1=; unset $1;}
  247. }
  248. as_unset=as_fn_unset
  249. # as_fn_set_status STATUS
  250. # -----------------------
  251. # Set $? to STATUS, without forking.
  252. as_fn_set_status ()
  253. {
  254. return $1
  255. } # as_fn_set_status
  256. # as_fn_exit STATUS
  257. # -----------------
  258. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  259. as_fn_exit ()
  260. {
  261. set +e
  262. as_fn_set_status $1
  263. exit $1
  264. } # as_fn_exit
  265. # as_fn_mkdir_p
  266. # -------------
  267. # Create "$as_dir" as a directory, including parents if necessary.
  268. as_fn_mkdir_p ()
  269. {
  270. case $as_dir in #(
  271. -*) as_dir=./$as_dir;;
  272. esac
  273. test -d "$as_dir" || eval $as_mkdir_p || {
  274. as_dirs=
  275. while :; do
  276. case $as_dir in #(
  277. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  278. *) as_qdir=$as_dir;;
  279. esac
  280. as_dirs="'$as_qdir' $as_dirs"
  281. as_dir=`$as_dirname -- "$as_dir" ||
  282. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  283. X"$as_dir" : 'X\(//\)[^/]' \| \
  284. X"$as_dir" : 'X\(//\)$' \| \
  285. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  286. $as_echo X"$as_dir" |
  287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)[^/].*/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)$/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\).*/{
  300. s//\1/
  301. q
  302. }
  303. s/.*/./; q'`
  304. test -d "$as_dir" && break
  305. done
  306. test -z "$as_dirs" || eval "mkdir $as_dirs"
  307. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  308. } # as_fn_mkdir_p
  309. # as_fn_append VAR VALUE
  310. # ----------------------
  311. # Append the text in VALUE to the end of the definition contained in VAR. Take
  312. # advantage of any shell optimizations that allow amortized linear growth over
  313. # repeated appends, instead of the typical quadratic growth present in naive
  314. # implementations.
  315. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  316. eval 'as_fn_append ()
  317. {
  318. eval $1+=\$2
  319. }'
  320. else
  321. as_fn_append ()
  322. {
  323. eval $1=\$$1\$2
  324. }
  325. fi # as_fn_append
  326. # as_fn_arith ARG...
  327. # ------------------
  328. # Perform arithmetic evaluation on the ARGs, and store the result in the
  329. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  330. # must be portable across $(()) and expr.
  331. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  332. eval 'as_fn_arith ()
  333. {
  334. as_val=$(( $* ))
  335. }'
  336. else
  337. as_fn_arith ()
  338. {
  339. as_val=`expr "$@" || test $? -eq 1`
  340. }
  341. fi # as_fn_arith
  342. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  343. # ----------------------------------------
  344. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  345. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  346. # script with STATUS, using 1 if that was 0.
  347. as_fn_error ()
  348. {
  349. as_status=$1; test $as_status -eq 0 && as_status=1
  350. if test "$4"; then
  351. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  352. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  353. fi
  354. $as_echo "$as_me: error: $2" >&2
  355. as_fn_exit $as_status
  356. } # as_fn_error
  357. if expr a : '\(a\)' >/dev/null 2>&1 &&
  358. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  359. as_expr=expr
  360. else
  361. as_expr=false
  362. fi
  363. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  364. as_basename=basename
  365. else
  366. as_basename=false
  367. fi
  368. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  369. as_dirname=dirname
  370. else
  371. as_dirname=false
  372. fi
  373. as_me=`$as_basename -- "$0" ||
  374. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  375. X"$0" : 'X\(//\)$' \| \
  376. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  377. $as_echo X/"$0" |
  378. sed '/^.*\/\([^/][^/]*\)\/*$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\/\)$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\).*/{
  387. s//\1/
  388. q
  389. }
  390. s/.*/./; q'`
  391. # Avoid depending upon Character Ranges.
  392. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  393. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  394. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  395. as_cr_digits='0123456789'
  396. as_cr_alnum=$as_cr_Letters$as_cr_digits
  397. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  398. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  399. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  400. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  401. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  402. sed -n '
  403. p
  404. /[$]LINENO/=
  405. ' <$as_myself |
  406. sed '
  407. s/[$]LINENO.*/&-/
  408. t lineno
  409. b
  410. :lineno
  411. N
  412. :loop
  413. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  414. t loop
  415. s/-\n.*//
  416. ' >$as_me.lineno &&
  417. chmod +x "$as_me.lineno" ||
  418. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  419. # Don't try to exec as it changes $[0], causing all sort of problems
  420. # (the dirname of $[0] is not the place where we might find the
  421. # original and so on. Autoconf is especially sensitive to this).
  422. . "./$as_me.lineno"
  423. # Exit status is that of the last command.
  424. exit
  425. }
  426. ECHO_C= ECHO_N= ECHO_T=
  427. case `echo -n x` in #(((((
  428. -n*)
  429. case `echo 'xy\c'` in
  430. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  431. xy) ECHO_C='\c';;
  432. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  433. ECHO_T=' ';;
  434. esac;;
  435. *)
  436. ECHO_N='-n';;
  437. esac
  438. rm -f conf$$ conf$$.exe conf$$.file
  439. if test -d conf$$.dir; then
  440. rm -f conf$$.dir/conf$$.file
  441. else
  442. rm -f conf$$.dir
  443. mkdir conf$$.dir 2>/dev/null
  444. fi
  445. if (echo >conf$$.file) 2>/dev/null; then
  446. if ln -s conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s='ln -s'
  448. # ... but there are two gotchas:
  449. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  450. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  451. # In both cases, we have to default to `cp -p'.
  452. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  453. as_ln_s='cp -p'
  454. elif ln conf$$.file conf$$ 2>/dev/null; then
  455. as_ln_s=ln
  456. else
  457. as_ln_s='cp -p'
  458. fi
  459. else
  460. as_ln_s='cp -p'
  461. fi
  462. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  463. rmdir conf$$.dir 2>/dev/null
  464. if mkdir -p . 2>/dev/null; then
  465. as_mkdir_p='mkdir -p "$as_dir"'
  466. else
  467. test -d ./-p && rmdir ./-p
  468. as_mkdir_p=false
  469. fi
  470. if test -x / >/dev/null 2>&1; then
  471. as_test_x='test -x'
  472. else
  473. if ls -dL / >/dev/null 2>&1; then
  474. as_ls_L_option=L
  475. else
  476. as_ls_L_option=
  477. fi
  478. as_test_x='
  479. eval sh -c '\''
  480. if test -d "$1"; then
  481. test -d "$1/.";
  482. else
  483. case $1 in #(
  484. -*)set "./$1";;
  485. esac;
  486. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  487. ???[sx]*):;;*)false;;esac;fi
  488. '\'' sh
  489. '
  490. fi
  491. as_executable_p=$as_test_x
  492. # Sed expression to map a string onto a valid CPP name.
  493. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  494. # Sed expression to map a string onto a valid variable name.
  495. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  496. test -n "$DJDIR" || exec 7<&0 </dev/null
  497. exec 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. # Identity of this package.
  514. PACKAGE_NAME='tcsh'
  515. PACKAGE_TARNAME='tcsh'
  516. PACKAGE_VERSION='6.18.01'
  517. PACKAGE_STRING='tcsh 6.18.01'
  518. PACKAGE_BUGREPORT='http://bugs.gw.com/'
  519. PACKAGE_URL=''
  520. ac_unique_file="tc.vers.c"
  521. # Factoring default headers for most tests.
  522. ac_includes_default="\
  523. #include <stdio.h>
  524. #ifdef HAVE_SYS_TYPES_H
  525. # include <sys/types.h>
  526. #endif
  527. #ifdef HAVE_SYS_STAT_H
  528. # include <sys/stat.h>
  529. #endif
  530. #ifdef STDC_HEADERS
  531. # include <stdlib.h>
  532. # include <stddef.h>
  533. #else
  534. # ifdef HAVE_STDLIB_H
  535. # include <stdlib.h>
  536. # endif
  537. #endif
  538. #ifdef HAVE_STRING_H
  539. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  540. # include <memory.h>
  541. # endif
  542. # include <string.h>
  543. #endif
  544. #ifdef HAVE_STRINGS_H
  545. # include <strings.h>
  546. #endif
  547. #ifdef HAVE_INTTYPES_H
  548. # include <inttypes.h>
  549. #endif
  550. #ifdef HAVE_STDINT_H
  551. # include <stdint.h>
  552. #endif
  553. #ifdef HAVE_UNISTD_H
  554. # include <unistd.h>
  555. #endif"
  556. ac_subst_vars='LTLIBOBJS
  557. LIBOBJS
  558. BUILD_CATALOGS
  559. HESLIB
  560. HESDEF
  561. DFLAGS
  562. LTLIBICONV
  563. LIBICONV
  564. CC_FOR_GETHOST
  565. GENCAT
  566. EGREP
  567. GREP
  568. CPP
  569. OBJEXT
  570. EXEEXT
  571. ac_ct_CC
  572. CPPFLAGS
  573. LDFLAGS
  574. CFLAGS
  575. CC
  576. host_os
  577. host_vendor
  578. host_cpu
  579. host
  580. build_os
  581. build_vendor
  582. build_cpu
  583. build
  584. INSTALL_DATA
  585. INSTALL_SCRIPT
  586. INSTALL_PROGRAM
  587. target_alias
  588. host_alias
  589. build_alias
  590. LIBS
  591. ECHO_T
  592. ECHO_N
  593. ECHO_C
  594. DEFS
  595. mandir
  596. localedir
  597. libdir
  598. psdir
  599. pdfdir
  600. dvidir
  601. htmldir
  602. infodir
  603. docdir
  604. oldincludedir
  605. includedir
  606. localstatedir
  607. sharedstatedir
  608. sysconfdir
  609. datadir
  610. datarootdir
  611. libexecdir
  612. sbindir
  613. bindir
  614. program_transform_name
  615. prefix
  616. exec_prefix
  617. PACKAGE_URL
  618. PACKAGE_BUGREPORT
  619. PACKAGE_STRING
  620. PACKAGE_VERSION
  621. PACKAGE_TARNAME
  622. PACKAGE_NAME
  623. PATH_SEPARATOR
  624. SHELL'
  625. ac_subst_files=''
  626. ac_user_opts='
  627. enable_option_checking
  628. with_gnu_ld
  629. enable_rpath
  630. with_libiconv_prefix
  631. enable_nls
  632. enable_nls_catalogs
  633. with_hesiod
  634. '
  635. ac_precious_vars='build_alias
  636. host_alias
  637. target_alias
  638. CC
  639. CFLAGS
  640. LDFLAGS
  641. LIBS
  642. CPPFLAGS
  643. CPP'
  644. # Initialize some variables set by options.
  645. ac_init_help=
  646. ac_init_version=false
  647. ac_unrecognized_opts=
  648. ac_unrecognized_sep=
  649. # The variables have the same names as the options, with
  650. # dashes changed to underlines.
  651. cache_file=/dev/null
  652. exec_prefix=NONE
  653. no_create=
  654. no_recursion=
  655. prefix=NONE
  656. program_prefix=NONE
  657. program_suffix=NONE
  658. program_transform_name=s,x,x,
  659. silent=
  660. site=
  661. srcdir=
  662. verbose=
  663. x_includes=NONE
  664. x_libraries=NONE
  665. # Installation directory options.
  666. # These are left unexpanded so users can "make install exec_prefix=/foo"
  667. # and all the variables that are supposed to be based on exec_prefix
  668. # by default will actually change.
  669. # Use braces instead of parens because sh, perl, etc. also accept them.
  670. # (The list follows the same order as the GNU Coding Standards.)
  671. bindir='${exec_prefix}/bin'
  672. sbindir='${exec_prefix}/sbin'
  673. libexecdir='${exec_prefix}/libexec'
  674. datarootdir='${prefix}/share'
  675. datadir='${datarootdir}'
  676. sysconfdir='${prefix}/etc'
  677. sharedstatedir='${prefix}/com'
  678. localstatedir='${prefix}/var'
  679. includedir='${prefix}/include'
  680. oldincludedir='/usr/include'
  681. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  682. infodir='${datarootdir}/info'
  683. htmldir='${docdir}'
  684. dvidir='${docdir}'
  685. pdfdir='${docdir}'
  686. psdir='${docdir}'
  687. libdir='${exec_prefix}/lib'
  688. localedir='${datarootdir}/locale'
  689. mandir='${datarootdir}/man'
  690. ac_prev=
  691. ac_dashdash=
  692. for ac_option
  693. do
  694. # If the previous option needs an argument, assign it.
  695. if test -n "$ac_prev"; then
  696. eval $ac_prev=\$ac_option
  697. ac_prev=
  698. continue
  699. fi
  700. case $ac_option in
  701. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  702. *=) ac_optarg= ;;
  703. *) ac_optarg=yes ;;
  704. esac
  705. # Accept the important Cygnus configure options, so we can diagnose typos.
  706. case $ac_dashdash$ac_option in
  707. --)
  708. ac_dashdash=yes ;;
  709. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  710. ac_prev=bindir ;;
  711. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  712. bindir=$ac_optarg ;;
  713. -build | --build | --buil | --bui | --bu)
  714. ac_prev=build_alias ;;
  715. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  716. build_alias=$ac_optarg ;;
  717. -cache-file | --cache-file | --cache-fil | --cache-fi \
  718. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  719. ac_prev=cache_file ;;
  720. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  721. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  722. cache_file=$ac_optarg ;;
  723. --config-cache | -C)
  724. cache_file=config.cache ;;
  725. -datadir | --datadir | --datadi | --datad)
  726. ac_prev=datadir ;;
  727. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  728. datadir=$ac_optarg ;;
  729. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  730. | --dataroo | --dataro | --datar)
  731. ac_prev=datarootdir ;;
  732. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  733. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  734. datarootdir=$ac_optarg ;;
  735. -disable-* | --disable-*)
  736. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  737. # Reject names that are not valid shell variable names.
  738. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  739. as_fn_error $? "invalid feature name: $ac_useropt"
  740. ac_useropt_orig=$ac_useropt
  741. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  742. case $ac_user_opts in
  743. *"
  744. "enable_$ac_useropt"
  745. "*) ;;
  746. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  747. ac_unrecognized_sep=', ';;
  748. esac
  749. eval enable_$ac_useropt=no ;;
  750. -docdir | --docdir | --docdi | --doc | --do)
  751. ac_prev=docdir ;;
  752. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  753. docdir=$ac_optarg ;;
  754. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  755. ac_prev=dvidir ;;
  756. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  757. dvidir=$ac_optarg ;;
  758. -enable-* | --enable-*)
  759. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  760. # Reject names that are not valid shell variable names.
  761. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  762. as_fn_error $? "invalid feature name: $ac_useropt"
  763. ac_useropt_orig=$ac_useropt
  764. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  765. case $ac_user_opts in
  766. *"
  767. "enable_$ac_useropt"
  768. "*) ;;
  769. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  770. ac_unrecognized_sep=', ';;
  771. esac
  772. eval enable_$ac_useropt=\$ac_optarg ;;
  773. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  774. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  775. | --exec | --exe | --ex)
  776. ac_prev=exec_prefix ;;
  777. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  778. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  779. | --exec=* | --exe=* | --ex=*)
  780. exec_prefix=$ac_optarg ;;
  781. -gas | --gas | --ga | --g)
  782. # Obsolete; use --with-gas.
  783. with_gas=yes ;;
  784. -help | --help | --hel | --he | -h)
  785. ac_init_help=long ;;
  786. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  787. ac_init_help=recursive ;;
  788. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  789. ac_init_help=short ;;
  790. -host | --host | --hos | --ho)
  791. ac_prev=host_alias ;;
  792. -host=* | --host=* | --hos=* | --ho=*)
  793. host_alias=$ac_optarg ;;
  794. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  795. ac_prev=htmldir ;;
  796. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  797. | --ht=*)
  798. htmldir=$ac_optarg ;;
  799. -includedir | --includedir | --includedi | --included | --include \
  800. | --includ | --inclu | --incl | --inc)
  801. ac_prev=includedir ;;
  802. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  803. | --includ=* | --inclu=* | --incl=* | --inc=*)
  804. includedir=$ac_optarg ;;
  805. -infodir | --infodir | --infodi | --infod | --info | --inf)
  806. ac_prev=infodir ;;
  807. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  808. infodir=$ac_optarg ;;
  809. -libdir | --libdir | --libdi | --libd)
  810. ac_prev=libdir ;;
  811. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  812. libdir=$ac_optarg ;;
  813. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  814. | --libexe | --libex | --libe)
  815. ac_prev=libexecdir ;;
  816. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  817. | --libexe=* | --libex=* | --libe=*)
  818. libexecdir=$ac_optarg ;;
  819. -localedir | --localedir | --localedi | --localed | --locale)
  820. ac_prev=localedir ;;
  821. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  822. localedir=$ac_optarg ;;
  823. -localstatedir | --localstatedir | --localstatedi | --localstated \
  824. | --localstate | --localstat | --localsta | --localst | --locals)
  825. ac_prev=localstatedir ;;
  826. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  827. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  828. localstatedir=$ac_optarg ;;
  829. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  830. ac_prev=mandir ;;
  831. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  832. mandir=$ac_optarg ;;
  833. -nfp | --nfp | --nf)
  834. # Obsolete; use --without-fp.
  835. with_fp=no ;;
  836. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  837. | --no-cr | --no-c | -n)
  838. no_create=yes ;;
  839. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  840. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  841. no_recursion=yes ;;
  842. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  843. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  844. | --oldin | --oldi | --old | --ol | --o)
  845. ac_prev=oldincludedir ;;
  846. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  847. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  848. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  849. oldincludedir=$ac_optarg ;;
  850. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  851. ac_prev=prefix ;;
  852. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  853. prefix=$ac_optarg ;;
  854. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  855. | --program-pre | --program-pr | --program-p)
  856. ac_prev=program_prefix ;;
  857. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  858. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  859. program_prefix=$ac_optarg ;;
  860. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  861. | --program-suf | --program-su | --program-s)
  862. ac_prev=program_suffix ;;
  863. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  864. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  865. program_suffix=$ac_optarg ;;
  866. -program-transform-name | --program-transform-name \
  867. | --program-transform-nam | --program-transform-na \
  868. | --program-transform-n | --program-transform- \
  869. | --program-transform | --program-transfor \
  870. | --program-transfo | --program-transf \
  871. | --program-trans | --program-tran \
  872. | --progr-tra | --program-tr | --program-t)
  873. ac_prev=program_transform_name ;;
  874. -program-transform-name=* | --program-transform-name=* \
  875. | --program-transform-nam=* | --program-transform-na=* \
  876. | --program-transform-n=* | --program-transform-=* \
  877. | --program-transform=* | --program-transfor=* \
  878. | --program-transfo=* | --program-transf=* \
  879. | --program-trans=* | --program-tran=* \
  880. | --progr-tra=* | --program-tr=* | --program-t=*)
  881. program_transform_name=$ac_optarg ;;
  882. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  883. ac_prev=pdfdir ;;
  884. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  885. pdfdir=$ac_optarg ;;
  886. -psdir | --psdir | --psdi | --psd | --ps)
  887. ac_prev=psdir ;;
  888. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  889. psdir=$ac_optarg ;;
  890. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  891. | -silent | --silent | --silen | --sile | --sil)
  892. silent=yes ;;
  893. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  894. ac_prev=sbindir ;;
  895. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  896. | --sbi=* | --sb=*)
  897. sbindir=$ac_optarg ;;
  898. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  899. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  900. | --sharedst | --shareds | --shared | --share | --shar \
  901. | --sha | --sh)
  902. ac_prev=sharedstatedir ;;
  903. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  904. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  905. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  906. | --sha=* | --sh=*)
  907. sharedstatedir=$ac_optarg ;;
  908. -site | --site | --sit)
  909. ac_prev=site ;;
  910. -site=* | --site=* | --sit=*)
  911. site=$ac_optarg ;;
  912. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  913. ac_prev=srcdir ;;
  914. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  915. srcdir=$ac_optarg ;;
  916. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  917. | --syscon | --sysco | --sysc | --sys | --sy)
  918. ac_prev=sysconfdir ;;
  919. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  920. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  921. sysconfdir=$ac_optarg ;;
  922. -target | --target | --targe | --targ | --tar | --ta | --t)
  923. ac_prev=target_alias ;;
  924. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  925. target_alias=$ac_optarg ;;
  926. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  927. verbose=yes ;;
  928. -version | --version | --versio | --versi | --vers | -V)
  929. ac_init_version=: ;;
  930. -with-* | --with-*)
  931. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  932. # Reject names that are not valid shell variable names.
  933. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  934. as_fn_error $? "invalid package name: $ac_useropt"
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "with_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval with_$ac_useropt=\$ac_optarg ;;
  945. -without-* | --without-*)
  946. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  949. as_fn_error $? "invalid package name: $ac_useropt"
  950. ac_useropt_orig=$ac_useropt
  951. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  952. case $ac_user_opts in
  953. *"
  954. "with_$ac_useropt"
  955. "*) ;;
  956. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  957. ac_unrecognized_sep=', ';;
  958. esac
  959. eval with_$ac_useropt=no ;;
  960. --x)
  961. # Obsolete; use --with-x.
  962. with_x=yes ;;
  963. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  964. | --x-incl | --x-inc | --x-in | --x-i)
  965. ac_prev=x_includes ;;
  966. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  967. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  968. x_includes=$ac_optarg ;;
  969. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  970. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  971. ac_prev=x_libraries ;;
  972. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  973. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  974. x_libraries=$ac_optarg ;;
  975. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  976. Try \`$0 --help' for more information"
  977. ;;
  978. *=*)
  979. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  980. # Reject names that are not valid shell variable names.
  981. case $ac_envvar in #(
  982. '' | [0-9]* | *[!_$as_cr_alnum]* )
  983. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  984. esac
  985. eval $ac_envvar=\$ac_optarg
  986. export $ac_envvar ;;
  987. *)
  988. # FIXME: should be removed in autoconf 3.0.
  989. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  990. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  991. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  992. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  993. ;;
  994. esac
  995. done
  996. if test -n "$ac_prev"; then
  997. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  998. as_fn_error $? "missing argument to $ac_option"
  999. fi
  1000. if test -n "$ac_unrecognized_opts"; then
  1001. case $enable_option_checking in
  1002. no) ;;
  1003. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1004. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1005. esac
  1006. fi
  1007. # Check all directory arguments for consistency.
  1008. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1009. datadir sysconfdir sharedstatedir localstatedir includedir \
  1010. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1011. libdir localedir mandir
  1012. do
  1013. eval ac_val=\$$ac_var
  1014. # Remove trailing slashes.
  1015. case $ac_val in
  1016. */ )
  1017. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1018. eval $ac_var=\$ac_val;;
  1019. esac
  1020. # Be sure to have absolute directory names.
  1021. case $ac_val in
  1022. [\\/$]* | ?:[\\/]* ) continue;;
  1023. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1024. esac
  1025. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1026. done
  1027. # There might be people who depend on the old broken behavior: `$host'
  1028. # used to hold the argument of --host etc.
  1029. # FIXME: To remove some day.
  1030. build=$build_alias
  1031. host=$host_alias
  1032. target=$target_alias
  1033. # FIXME: To remove some day.
  1034. if test "x$host_alias" != x; then
  1035. if test "x$build_alias" = x; then
  1036. cross_compiling=maybe
  1037. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1038. If a cross compiler is detected then cross compile mode will be used" >&2
  1039. elif test "x$build_alias" != "x$host_alias"; then
  1040. cross_compiling=yes
  1041. fi
  1042. fi
  1043. ac_tool_prefix=
  1044. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1045. test "$silent" = yes && exec 6>/dev/null
  1046. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1047. ac_ls_di=`ls -di .` &&
  1048. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1049. as_fn_error $? "working directory cannot be determined"
  1050. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1051. as_fn_error $? "pwd does not report name of working directory"
  1052. # Find the source files, if location was not specified.
  1053. if test -z "$srcdir"; then
  1054. ac_srcdir_defaulted=yes
  1055. # Try the directory containing this script, then the parent directory.
  1056. ac_confdir=`$as_dirname -- "$as_myself" ||
  1057. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1058. X"$as_myself" : 'X\(//\)[^/]' \| \
  1059. X"$as_myself" : 'X\(//\)$' \| \
  1060. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1061. $as_echo X"$as_myself" |
  1062. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1063. s//\1/
  1064. q
  1065. }
  1066. /^X\(\/\/\)[^/].*/{
  1067. s//\1/
  1068. q
  1069. }
  1070. /^X\(\/\/\)$/{
  1071. s//\1/
  1072. q
  1073. }
  1074. /^X\(\/\).*/{
  1075. s//\1/
  1076. q
  1077. }
  1078. s/.*/./; q'`
  1079. srcdir=$ac_confdir
  1080. if test ! -r "$srcdir/$ac_unique_file"; then
  1081. srcdir=..
  1082. fi
  1083. else
  1084. ac_srcdir_defaulted=no
  1085. fi
  1086. if test ! -r "$srcdir/$ac_unique_file"; then
  1087. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1088. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1089. fi
  1090. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1091. ac_abs_confdir=`(
  1092. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1093. pwd)`
  1094. # When building in place, set srcdir=.
  1095. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1096. srcdir=.
  1097. fi
  1098. # Remove unnecessary trailing slashes from srcdir.
  1099. # Double slashes in file names in object file debugging info
  1100. # mess up M-x gdb in Emacs.
  1101. case $srcdir in
  1102. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1103. esac
  1104. for ac_var in $ac_precious_vars; do
  1105. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1106. eval ac_env_${ac_var}_value=\$${ac_var}
  1107. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1108. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1109. done
  1110. #
  1111. # Report the --help message.
  1112. #
  1113. if test "$ac_init_help" = "long"; then
  1114. # Omit some internal or obsolete options to make the list less imposing.
  1115. # This message is too long to be a string in the A/UX 3.1 sh.
  1116. cat <<_ACEOF
  1117. \`configure' configures tcsh 6.18.01 to adapt to many kinds of systems.
  1118. Usage: $0 [OPTION]... [VAR=VALUE]...
  1119. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1120. VAR=VALUE. See below for descriptions of some of the useful variables.
  1121. Defaults for the options are specified in brackets.
  1122. Configuration:
  1123. -h, --help display this help and exit
  1124. --help=short display options specific to this package
  1125. --help=recursive display the short help of all the included packages
  1126. -V, --version display version information and exit
  1127. -q, --quiet, --silent do not print \`checking ...' messages
  1128. --cache-file=FILE cache test results in FILE [disabled]
  1129. -C, --config-cache alias for \`--cache-file=config.cache'
  1130. -n, --no-create do not create output files
  1131. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1132. Installation directories:
  1133. --prefix=PREFIX install architecture-independent files in PREFIX
  1134. [$ac_default_prefix]
  1135. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1136. [PREFIX]
  1137. By default, \`make install' will install all the files in
  1138. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1139. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1140. for instance \`--prefix=\$HOME'.
  1141. For better control, use the options below.
  1142. Fine tuning of the installation directories:
  1143. --bindir=DIR user executables [EPREFIX/bin]
  1144. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1145. --libexecdir=DIR program executables [EPREFIX/libexec]
  1146. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1147. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1148. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1149. --libdir=DIR object code libraries [EPREFIX/lib]
  1150. --includedir=DIR C header files [PREFIX/include]
  1151. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1152. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1153. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1154. --infodir=DIR info documentation [DATAROOTDIR/info]
  1155. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1156. --mandir=DIR man documentation [DATAROOTDIR/man]
  1157. --docdir=DIR documentation root [DATAROOTDIR/doc/tcsh]
  1158. --htmldir=DIR html documentation [DOCDIR]
  1159. --dvidir=DIR dvi documentation [DOCDIR]
  1160. --pdfdir=DIR pdf documentation [DOCDIR]
  1161. --psdir=DIR ps documentation [DOCDIR]
  1162. _ACEOF
  1163. cat <<\_ACEOF
  1164. System types:
  1165. --build=BUILD configure for building on BUILD [guessed]
  1166. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1167. _ACEOF
  1168. fi
  1169. if test -n "$ac_init_help"; then
  1170. case $ac_init_help in
  1171. short | recursive ) echo "Configuration of tcsh 6.18.01:";;
  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-rpath do not hardcode runtime library paths
  1179. --disable-nls Disable NLS support
  1180. --disable-nls-catalogs Disable NLS catalog support
  1181. Optional Packages:
  1182. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1183. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1184. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1185. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1186. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1187. --with-hesiod=PREFIX Use Hesiod lookup for ~ expansion
  1188. Some influential environment variables:
  1189. CC C compiler command
  1190. CFLAGS C compiler flags
  1191. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1192. nonstandard directory <lib dir>
  1193. LIBS libraries to pass to the linker, e.g. -l<library>
  1194. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1195. you have headers in a nonstandard directory <include dir>
  1196. CPP C preprocessor
  1197. Use these variables to override the choices made by `configure' or to help
  1198. it to find libraries and programs with nonstandard names/locations.
  1199. Report bugs to <http://bugs.gw.com/>.
  1200. _ACEOF
  1201. ac_status=$?
  1202. fi
  1203. if test "$ac_init_help" = "recursive"; then
  1204. # If there are subdirs, report their specific --help.
  1205. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1206. test -d "$ac_dir" ||
  1207. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1208. continue
  1209. ac_builddir=.
  1210. case "$ac_dir" in
  1211. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1212. *)
  1213. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1214. # A ".." for each directory in $ac_dir_suffix.
  1215. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1216. case $ac_top_builddir_sub in
  1217. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1218. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1219. esac ;;
  1220. esac
  1221. ac_abs_top_builddir=$ac_pwd
  1222. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1223. # for backward compatibility:
  1224. ac_top_builddir=$ac_top_build_prefix
  1225. case $srcdir in
  1226. .) # We are building in place.
  1227. ac_srcdir=.
  1228. ac_top_srcdir=$ac_top_builddir_sub
  1229. ac_abs_top_srcdir=$ac_pwd ;;
  1230. [\\/]* | ?:[\\/]* ) # Absolute name.
  1231. ac_srcdir=$srcdir$ac_dir_suffix;
  1232. ac_top_srcdir=$srcdir
  1233. ac_abs_top_srcdir=$srcdir ;;
  1234. *) # Relative name.
  1235. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1236. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1237. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1238. esac
  1239. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1240. cd "$ac_dir" || { ac_status=$?; continue; }
  1241. # Check for guested configure.
  1242. if test -f "$ac_srcdir/configure.gnu"; then
  1243. echo &&
  1244. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1245. elif test -f "$ac_srcdir/configure"; then
  1246. echo &&
  1247. $SHELL "$ac_srcdir/configure" --help=recursive
  1248. else
  1249. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1250. fi || ac_status=$?
  1251. cd "$ac_pwd" || { ac_status=$?; break; }
  1252. done
  1253. fi
  1254. test -n "$ac_init_help" && exit $ac_status
  1255. if $ac_init_version; then
  1256. cat <<\_ACEOF
  1257. tcsh configure 6.18.01
  1258. generated by GNU Autoconf 2.68
  1259. Copyright (C) 2010 Free Software Foundation, Inc.
  1260. This configure script is free software; the Free Software Foundation
  1261. gives unlimited permission to copy, distribute and modify it.
  1262. _ACEOF
  1263. exit
  1264. fi
  1265. ## ------------------------ ##
  1266. ## Autoconf initialization. ##
  1267. ## ------------------------ ##
  1268. # ac_fn_c_try_compile LINENO
  1269. # --------------------------
  1270. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1271. ac_fn_c_try_compile ()
  1272. {
  1273. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1274. rm -f conftest.$ac_objext
  1275. if { { ac_try="$ac_compile"
  1276. case "(($ac_try" in
  1277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1278. *) ac_try_echo=$ac_try;;
  1279. esac
  1280. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1281. $as_echo "$ac_try_echo"; } >&5
  1282. (eval "$ac_compile") 2>conftest.err
  1283. ac_status=$?
  1284. if test -s conftest.err; then
  1285. grep -v '^ *+' conftest.err >conftest.er1
  1286. cat conftest.er1 >&5
  1287. mv -f conftest.er1 conftest.err
  1288. fi
  1289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1290. test $ac_status = 0; } && {
  1291. test -z "$ac_c_werror_flag" ||
  1292. test ! -s conftest.err
  1293. } && test -s conftest.$ac_objext; then :
  1294. ac_retval=0
  1295. else
  1296. $as_echo "$as_me: failed program was:" >&5
  1297. sed 's/^/| /' conftest.$ac_ext >&5
  1298. ac_retval=1
  1299. fi
  1300. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1301. as_fn_set_status $ac_retval
  1302. } # ac_fn_c_try_compile
  1303. # ac_fn_c_try_cpp LINENO
  1304. # ----------------------
  1305. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1306. ac_fn_c_try_cpp ()
  1307. {
  1308. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1309. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1310. case "(($ac_try" in
  1311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1312. *) ac_try_echo=$ac_try;;
  1313. esac
  1314. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1315. $as_echo "$ac_try_echo"; } >&5
  1316. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1317. ac_status=$?
  1318. if test -s conftest.err; then
  1319. grep -v '^ *+' conftest.err >conftest.er1
  1320. cat conftest.er1 >&5
  1321. mv -f conftest.er1 conftest.err
  1322. fi
  1323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1324. test $ac_status = 0; } > conftest.i && {
  1325. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1326. test ! -s conftest.err
  1327. }; then :
  1328. ac_retval=0
  1329. else
  1330. $as_echo "$as_me: failed program was:" >&5
  1331. sed 's/^/| /' conftest.$ac_ext >&5
  1332. ac_retval=1
  1333. fi
  1334. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1335. as_fn_set_status $ac_retval
  1336. } # ac_fn_c_try_cpp
  1337. # ac_fn_c_try_link LINENO
  1338. # -----------------------
  1339. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1340. ac_fn_c_try_link ()
  1341. {
  1342. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1343. rm -f conftest.$ac_objext conftest$ac_exeext
  1344. if { { ac_try="$ac_link"
  1345. case "(($ac_try" in
  1346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1347. *) ac_try_echo=$ac_try;;
  1348. esac
  1349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1350. $as_echo "$ac_try_echo"; } >&5
  1351. (eval "$ac_link") 2>conftest.err
  1352. ac_status=$?
  1353. if test -s conftest.err; then
  1354. grep -v '^ *+' conftest.err >conftest.er1
  1355. cat conftest.er1 >&5
  1356. mv -f conftest.er1 conftest.err
  1357. fi
  1358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1359. test $ac_status = 0; } && {
  1360. test -z "$ac_c_werror_flag" ||
  1361. test ! -s conftest.err
  1362. } && test -s conftest$ac_exeext && {
  1363. test "$cross_compiling" = yes ||
  1364. $as_test_x conftest$ac_exeext
  1365. }; then :
  1366. ac_retval=0
  1367. else
  1368. $as_echo "$as_me: failed program was:" >&5
  1369. sed 's/^/| /' conftest.$ac_ext >&5
  1370. ac_retval=1
  1371. fi
  1372. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1373. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1374. # interfere with the next link command; also delete a directory that is
  1375. # left behind by Apple's compiler. We do this before executing the actions.
  1376. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1377. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1378. as_fn_set_status $ac_retval
  1379. } # ac_fn_c_try_link
  1380. # ac_fn_c_try_run LINENO
  1381. # ----------------------
  1382. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1383. # that executables *can* be run.
  1384. ac_fn_c_try_run ()
  1385. {
  1386. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1387. if { { ac_try="$ac_link"
  1388. case "(($ac_try" in
  1389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1390. *) ac_try_echo=$ac_try;;
  1391. esac
  1392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1393. $as_echo "$ac_try_echo"; } >&5
  1394. (eval "$ac_link") 2>&5
  1395. ac_status=$?
  1396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1397. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1398. { { case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_try") 2>&5
  1405. ac_status=$?
  1406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1407. test $ac_status = 0; }; }; then :
  1408. ac_retval=0
  1409. else
  1410. $as_echo "$as_me: program exited with status $ac_status" >&5
  1411. $as_echo "$as_me: failed program was:" >&5
  1412. sed 's/^/| /' conftest.$ac_ext >&5
  1413. ac_retval=$ac_status
  1414. fi
  1415. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1416. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1417. as_fn_set_status $ac_retval
  1418. } # ac_fn_c_try_run
  1419. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1420. # -------------------------------------------------------
  1421. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1422. # the include files in INCLUDES and setting the cache variable VAR
  1423. # accordingly.
  1424. ac_fn_c_check_header_mongrel ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. if eval \${$3+:} false; then :
  1428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1429. $as_echo_n "checking for $2... " >&6; }
  1430. if eval \${$3+:} false; then :
  1431. $as_echo_n "(cached) " >&6
  1432. fi
  1433. eval ac_res=\$$3
  1434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1435. $as_echo "$ac_res" >&6; }
  1436. else
  1437. # Is the header compilable?
  1438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1439. $as_echo_n "checking $2 usability... " >&6; }
  1440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1441. /* end confdefs.h. */
  1442. $4
  1443. #include <$2>
  1444. _ACEOF
  1445. if ac_fn_c_try_compile "$LINENO"; then :
  1446. ac_header_compiler=yes
  1447. else
  1448. ac_header_compiler=no
  1449. fi
  1450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1452. $as_echo "$ac_header_compiler" >&6; }
  1453. # Is the header present?
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1455. $as_echo_n "checking $2 presence... " >&6; }
  1456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1457. /* end confdefs.h. */
  1458. #include <$2>
  1459. _ACEOF
  1460. if ac_fn_c_try_cpp "$LINENO"; then :
  1461. ac_header_preproc=yes
  1462. else
  1463. ac_header_preproc=no
  1464. fi
  1465. rm -f conftest.err conftest.i conftest.$ac_ext
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1467. $as_echo "$ac_header_preproc" >&6; }
  1468. # So? What about this header?
  1469. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1470. yes:no: )
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1472. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1474. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1475. ;;
  1476. no:yes:* )
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1478. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1480. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1482. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1484. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1486. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1487. ( $as_echo "## ---------------------------------- ##
  1488. ## Report this to http://bugs.gw.com/ ##
  1489. ## ---------------------------------- ##"
  1490. ) | sed "s/^/$as_me: WARNING: /" >&2
  1491. ;;
  1492. esac
  1493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1494. $as_echo_n "checking for $2... " >&6; }
  1495. if eval \${$3+:} false; then :
  1496. $as_echo_n "(cached) " >&6
  1497. else
  1498. eval "$3=\$ac_header_compiler"
  1499. fi
  1500. eval ac_res=\$$3
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1502. $as_echo "$ac_res" >&6; }
  1503. fi
  1504. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1505. } # ac_fn_c_check_header_mongrel
  1506. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1507. # -------------------------------------------------------
  1508. # Tests whether HEADER exists and can be compiled using the include files in
  1509. # INCLUDES, setting the cache variable VAR accordingly.
  1510. ac_fn_c_check_header_compile ()
  1511. {
  1512. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1514. $as_echo_n "checking for $2... " >&6; }
  1515. if eval \${$3+:} false; then :
  1516. $as_echo_n "(cached) " >&6
  1517. else
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. $4
  1521. #include <$2>
  1522. _ACEOF
  1523. if ac_fn_c_try_compile "$LINENO"; then :
  1524. eval "$3=yes"
  1525. else
  1526. eval "$3=no"
  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; ${as_lineno_stack:+:} unset as_lineno
  1534. } # ac_fn_c_check_header_compile
  1535. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1536. # --------------------------------------------
  1537. # Tries to find the compile-time value of EXPR in a program that includes
  1538. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1539. # computed
  1540. ac_fn_c_compute_int ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. if test "$cross_compiling" = yes; then
  1544. # Depending upon the size, compute the lo and hi bounds.
  1545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1546. /* end confdefs.h. */
  1547. $4
  1548. int
  1549. main ()
  1550. {
  1551. static int test_array [1 - 2 * !(($2) >= 0)];
  1552. test_array [0] = 0
  1553. ;
  1554. return 0;
  1555. }
  1556. _ACEOF
  1557. if ac_fn_c_try_compile "$LINENO"; then :
  1558. ac_lo=0 ac_mid=0
  1559. while :; do
  1560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1561. /* end confdefs.h. */
  1562. $4
  1563. int
  1564. main ()
  1565. {
  1566. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1567. test_array [0] = 0
  1568. ;
  1569. return 0;
  1570. }
  1571. _ACEOF
  1572. if ac_fn_c_try_compile "$LINENO"; then :
  1573. ac_hi=$ac_mid; break
  1574. else
  1575. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1576. if test $ac_lo -le $ac_mid; then
  1577. ac_lo= ac_hi=
  1578. break
  1579. fi
  1580. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1581. fi
  1582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1583. done
  1584. else
  1585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1586. /* end confdefs.h. */
  1587. $4
  1588. int
  1589. main ()
  1590. {
  1591. static int test_array [1 - 2 * !(($2) < 0)];
  1592. test_array [0] = 0
  1593. ;
  1594. return 0;
  1595. }
  1596. _ACEOF
  1597. if ac_fn_c_try_compile "$LINENO"; then :
  1598. ac_hi=-1 ac_mid=-1
  1599. while :; do
  1600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1601. /* end confdefs.h. */
  1602. $4
  1603. int
  1604. main ()
  1605. {
  1606. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1607. test_array [0] = 0
  1608. ;
  1609. return 0;
  1610. }
  1611. _ACEOF
  1612. if ac_fn_c_try_compile "$LINENO"; then :
  1613. ac_lo=$ac_mid; break
  1614. else
  1615. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1616. if test $ac_mid -le $ac_hi; then
  1617. ac_lo= ac_hi=
  1618. break
  1619. fi
  1620. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1621. fi
  1622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1623. done
  1624. else
  1625. ac_lo= ac_hi=
  1626. fi
  1627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1628. fi
  1629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1630. # Binary search between lo and hi bounds.
  1631. while test "x$ac_lo" != "x$ac_hi"; do
  1632. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1634. /* end confdefs.h. */
  1635. $4
  1636. int
  1637. main ()
  1638. {
  1639. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1640. test_array [0] = 0
  1641. ;
  1642. return 0;
  1643. }
  1644. _ACEOF
  1645. if ac_fn_c_try_compile "$LINENO"; then :
  1646. ac_hi=$ac_mid
  1647. else
  1648. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. done
  1652. case $ac_lo in #((
  1653. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1654. '') ac_retval=1 ;;
  1655. esac
  1656. else
  1657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1658. /* end confdefs.h. */
  1659. $4
  1660. static long int longval () { return $2; }
  1661. static unsigned long int ulongval () { return $2; }
  1662. #include <stdio.h>
  1663. #include <stdlib.h>
  1664. int
  1665. main ()
  1666. {
  1667. FILE *f = fopen ("conftest.val", "w");
  1668. if (! f)
  1669. return 1;
  1670. if (($2) < 0)
  1671. {
  1672. long int i = longval ();
  1673. if (i != ($2))
  1674. return 1;
  1675. fprintf (f, "%ld", i);
  1676. }
  1677. else
  1678. {
  1679. unsigned long int i = ulongval ();
  1680. if (i != ($2))
  1681. return 1;
  1682. fprintf (f, "%lu", i);
  1683. }
  1684. /* Do not output a trailing newline, as this causes \r\n confusion
  1685. on some platforms. */
  1686. return ferror (f) || fclose (f) != 0;
  1687. ;
  1688. return 0;
  1689. }
  1690. _ACEOF
  1691. if ac_fn_c_try_run "$LINENO"; then :
  1692. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1693. else
  1694. ac_retval=1
  1695. fi
  1696. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1697. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1698. rm -f conftest.val
  1699. fi
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. as_fn_set_status $ac_retval
  1702. } # ac_fn_c_compute_int
  1703. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1704. # -------------------------------------------
  1705. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1706. # variable VAR accordingly.
  1707. ac_fn_c_check_type ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1711. $as_echo_n "checking for $2... " >&6; }
  1712. if eval \${$3+:} false; then :
  1713. $as_echo_n "(cached) " >&6
  1714. else
  1715. eval "$3=no"
  1716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1717. /* end confdefs.h. */
  1718. $4
  1719. int
  1720. main ()
  1721. {
  1722. if (sizeof ($2))
  1723. return 0;
  1724. ;
  1725. return 0;
  1726. }
  1727. _ACEOF
  1728. if ac_fn_c_try_compile "$LINENO"; then :
  1729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1730. /* end confdefs.h. */
  1731. $4
  1732. int
  1733. main ()
  1734. {
  1735. if (sizeof (($2)))
  1736. return 0;
  1737. ;
  1738. return 0;
  1739. }
  1740. _ACEOF
  1741. if ac_fn_c_try_compile "$LINENO"; then :
  1742. else
  1743. eval "$3=yes"
  1744. fi
  1745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1746. fi
  1747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1748. fi
  1749. eval ac_res=\$$3
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1751. $as_echo "$ac_res" >&6; }
  1752. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1753. } # ac_fn_c_check_type
  1754. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1755. # ------------------------------------
  1756. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1757. # accordingly.
  1758. ac_fn_c_find_uintX_t ()
  1759. {
  1760. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1762. $as_echo_n "checking for uint$2_t... " >&6; }
  1763. if eval \${$3+:} false; then :
  1764. $as_echo_n "(cached) " >&6
  1765. else
  1766. eval "$3=no"
  1767. # Order is important - never check a type that is potentially smaller
  1768. # than half of the expected target width.
  1769. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1770. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1772. /* end confdefs.h. */
  1773. $ac_includes_default
  1774. int
  1775. main ()
  1776. {
  1777. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1778. test_array [0] = 0
  1779. ;
  1780. return 0;
  1781. }
  1782. _ACEOF
  1783. if ac_fn_c_try_compile "$LINENO"; then :
  1784. case $ac_type in #(
  1785. uint$2_t) :
  1786. eval "$3=yes" ;; #(
  1787. *) :
  1788. eval "$3=\$ac_type" ;;
  1789. esac
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1792. if eval test \"x\$"$3"\" = x"no"; then :
  1793. else
  1794. break
  1795. fi
  1796. done
  1797. fi
  1798. eval ac_res=\$$3
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1800. $as_echo "$ac_res" >&6; }
  1801. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1802. } # ac_fn_c_find_uintX_t
  1803. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1804. # ----------------------------------------------------
  1805. # Tries to find if the field MEMBER exists in type AGGR, after including
  1806. # INCLUDES, setting cache variable VAR accordingly.
  1807. ac_fn_c_check_member ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1811. $as_echo_n "checking for $2.$3... " >&6; }
  1812. if eval \${$4+:} false; then :
  1813. $as_echo_n "(cached) " >&6
  1814. else
  1815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1816. /* end confdefs.h. */
  1817. $5
  1818. int
  1819. main ()
  1820. {
  1821. static $2 ac_aggr;
  1822. if (ac_aggr.$3)
  1823. return 0;
  1824. ;
  1825. return 0;
  1826. }
  1827. _ACEOF
  1828. if ac_fn_c_try_compile "$LINENO"; then :
  1829. eval "$4=yes"
  1830. else
  1831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1832. /* end confdefs.h. */
  1833. $5
  1834. int
  1835. main ()
  1836. {
  1837. static $2 ac_aggr;
  1838. if (sizeof ac_aggr.$3)
  1839. return 0;
  1840. ;
  1841. return 0;
  1842. }
  1843. _ACEOF
  1844. if ac_fn_c_try_compile "$LINENO"; then :
  1845. eval "$4=yes"
  1846. else
  1847. eval "$4=no"
  1848. fi
  1849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1850. fi
  1851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1852. fi
  1853. eval ac_res=\$$4
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1855. $as_echo "$ac_res" >&6; }
  1856. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1857. } # ac_fn_c_check_member
  1858. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1859. # ---------------------------------------------
  1860. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1861. # accordingly.
  1862. ac_fn_c_check_decl ()
  1863. {
  1864. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1865. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1866. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1868. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1869. if eval \${$3+:} false; then :
  1870. $as_echo_n "(cached) " >&6
  1871. else
  1872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1873. /* end confdefs.h. */
  1874. $4
  1875. int
  1876. main ()
  1877. {
  1878. #ifndef $as_decl_name
  1879. #ifdef __cplusplus
  1880. (void) $as_decl_use;
  1881. #else
  1882. (void) $as_decl_name;
  1883. #endif
  1884. #endif
  1885. ;
  1886. return 0;
  1887. }
  1888. _ACEOF
  1889. if ac_fn_c_try_compile "$LINENO"; then :
  1890. eval "$3=yes"
  1891. else
  1892. eval "$3=no"
  1893. fi
  1894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1895. fi
  1896. eval ac_res=\$$3
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1898. $as_echo "$ac_res" >&6; }
  1899. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1900. } # ac_fn_c_check_decl
  1901. # ac_fn_c_check_func LINENO FUNC VAR
  1902. # ----------------------------------
  1903. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1904. ac_fn_c_check_func ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1908. $as_echo_n "checking for $2... " >&6; }
  1909. if eval \${$3+:} false; then :
  1910. $as_echo_n "(cached) " >&6
  1911. else
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h. */
  1914. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1915. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1916. #define $2 innocuous_$2
  1917. /* System header to define __stub macros and hopefully few prototypes,
  1918. which can conflict with char $2 (); below.
  1919. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1920. <limits.h> exists even on freestanding compilers. */
  1921. #ifdef __STDC__
  1922. # include <limits.h>
  1923. #else
  1924. # include <assert.h>
  1925. #endif
  1926. #undef $2
  1927. /* Override any GCC internal prototype to avoid an error.
  1928. Use char because int might match the return type of a GCC
  1929. builtin and then its argument prototype would still apply. */
  1930. #ifdef __cplusplus
  1931. extern "C"
  1932. #endif
  1933. char $2 ();
  1934. /* The GNU C library defines this for functions which it implements
  1935. to always fail with ENOSYS. Some functions are actually named
  1936. something starting with __ and the normal name is an alias. */
  1937. #if defined __stub_$2 || defined __stub___$2
  1938. choke me
  1939. #endif
  1940. int
  1941. main ()
  1942. {
  1943. return $2 ();
  1944. ;
  1945. return 0;
  1946. }
  1947. _ACEOF
  1948. if ac_fn_c_try_link "$LINENO"; then :
  1949. eval "$3=yes"
  1950. else
  1951. eval "$3=no"
  1952. fi
  1953. rm -f core conftest.err conftest.$ac_objext \
  1954. conftest$ac_exeext conftest.$ac_ext
  1955. fi
  1956. eval ac_res=\$$3
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. $as_echo "$ac_res" >&6; }
  1959. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1960. } # ac_fn_c_check_func
  1961. cat >config.log <<_ACEOF
  1962. This file contains any messages produced by compilers while
  1963. running configure, to aid debugging if configure makes a mistake.
  1964. It was created by tcsh $as_me 6.18.01, which was
  1965. generated by GNU Autoconf 2.68. Invocation command line was
  1966. $ $0 $@
  1967. _ACEOF
  1968. exec 5>>config.log
  1969. {
  1970. cat <<_ASUNAME
  1971. ## --------- ##
  1972. ## Platform. ##
  1973. ## --------- ##
  1974. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1975. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1976. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1977. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1978. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1979. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1980. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1981. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1982. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1983. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1984. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1985. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1986. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1987. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1988. _ASUNAME
  1989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1990. for as_dir in $PATH
  1991. do
  1992. IFS=$as_save_IFS
  1993. test -z "$as_dir" && as_dir=.
  1994. $as_echo "PATH: $as_dir"
  1995. done
  1996. IFS=$as_save_IFS
  1997. } >&5
  1998. cat >&5 <<_ACEOF
  1999. ## ----------- ##
  2000. ## Core tests. ##
  2001. ## ----------- ##
  2002. _ACEOF
  2003. # Keep a trace of the command line.
  2004. # Strip out --no-create and --no-recursion so they do not pile up.
  2005. # Strip out --silent because we don't want to record it for future runs.
  2006. # Also quote any args containing shell meta-characters.
  2007. # Make two passes to allow for proper duplicate-argument suppression.
  2008. ac_configure_args=
  2009. ac_configure_args0=
  2010. ac_configure_args1=
  2011. ac_must_keep_next=false
  2012. for ac_pass in 1 2
  2013. do
  2014. for ac_arg
  2015. do
  2016. case $ac_arg in
  2017. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2018. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2019. | -silent | --silent | --silen | --sile | --sil)
  2020. continue ;;
  2021. *\'*)
  2022. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2023. esac
  2024. case $ac_pass in
  2025. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2026. 2)
  2027. as_fn_append ac_configure_args1 " '$ac_arg'"
  2028. if test $ac_must_keep_next = true; then
  2029. ac_must_keep_next=false # Got value, back to normal.
  2030. else
  2031. case $ac_arg in
  2032. *=* | --config-cache | -C | -disable-* | --disable-* \
  2033. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2034. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2035. | -with-* | --with-* | -without-* | --without-* | --x)
  2036. case "$ac_configure_args0 " in
  2037. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2038. esac
  2039. ;;
  2040. -* ) ac_must_keep_next=true ;;
  2041. esac
  2042. fi
  2043. as_fn_append ac_configure_args " '$ac_arg'"
  2044. ;;
  2045. esac
  2046. done
  2047. done
  2048. { ac_configure_args0=; unset ac_configure_args0;}
  2049. { ac_configure_args1=; unset ac_configure_args1;}
  2050. # When interrupted or exit'd, cleanup temporary files, and complete
  2051. # config.log. We remove comments because anyway the quotes in there
  2052. # would cause problems or look ugly.
  2053. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2054. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2055. trap 'exit_status=$?
  2056. # Save into config.log some information that might help in debugging.
  2057. {
  2058. echo
  2059. $as_echo "## ---------------- ##
  2060. ## Cache variables. ##
  2061. ## ---------------- ##"
  2062. echo
  2063. # The following way of writing the cache mishandles newlines in values,
  2064. (
  2065. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2066. eval ac_val=\$$ac_var
  2067. case $ac_val in #(
  2068. *${as_nl}*)
  2069. case $ac_var in #(
  2070. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2071. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2072. esac
  2073. case $ac_var in #(
  2074. _ | IFS | as_nl) ;; #(
  2075. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2076. *) { eval $ac_var=; unset $ac_var;} ;;
  2077. esac ;;
  2078. esac
  2079. done
  2080. (set) 2>&1 |
  2081. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2082. *${as_nl}ac_space=\ *)
  2083. sed -n \
  2084. "s/'\''/'\''\\\\'\'''\''/g;
  2085. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2086. ;; #(
  2087. *)
  2088. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2089. ;;
  2090. esac |
  2091. sort
  2092. )
  2093. echo
  2094. $as_echo "## ----------------- ##
  2095. ## Output variables. ##
  2096. ## ----------------- ##"
  2097. echo
  2098. for ac_var in $ac_subst_vars
  2099. do
  2100. eval ac_val=\$$ac_var
  2101. case $ac_val in
  2102. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2103. esac
  2104. $as_echo "$ac_var='\''$ac_val'\''"
  2105. done | sort
  2106. echo
  2107. if test -n "$ac_subst_files"; then
  2108. $as_echo "## ------------------- ##
  2109. ## File substitutions. ##
  2110. ## ------------------- ##"
  2111. echo
  2112. for ac_var in $ac_subst_files
  2113. do
  2114. eval ac_val=\$$ac_var
  2115. case $ac_val in
  2116. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2117. esac
  2118. $as_echo "$ac_var='\''$ac_val'\''"
  2119. done | sort
  2120. echo
  2121. fi
  2122. if test -s confdefs.h; then
  2123. $as_echo "## ----------- ##
  2124. ## confdefs.h. ##
  2125. ## ----------- ##"
  2126. echo
  2127. cat confdefs.h
  2128. echo
  2129. fi
  2130. test "$ac_signal" != 0 &&
  2131. $as_echo "$as_me: caught signal $ac_signal"
  2132. $as_echo "$as_me: exit $exit_status"
  2133. } >&5
  2134. rm -f core *.core core.conftest.* &&
  2135. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2136. exit $exit_status
  2137. ' 0
  2138. for ac_signal in 1 2 13 15; do
  2139. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2140. done
  2141. ac_signal=0
  2142. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2143. rm -f -r conftest* confdefs.h
  2144. $as_echo "/* confdefs.h */" > confdefs.h
  2145. # Predefined preprocessor variables.
  2146. cat >>confdefs.h <<_ACEOF
  2147. #define PACKAGE_NAME "$PACKAGE_NAME"
  2148. _ACEOF
  2149. cat >>confdefs.h <<_ACEOF
  2150. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2151. _ACEOF
  2152. cat >>confdefs.h <<_ACEOF
  2153. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2154. _ACEOF
  2155. cat >>confdefs.h <<_ACEOF
  2156. #define PACKAGE_STRING "$PACKAGE_STRING"
  2157. _ACEOF
  2158. cat >>confdefs.h <<_ACEOF
  2159. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2160. _ACEOF
  2161. cat >>confdefs.h <<_ACEOF
  2162. #define PACKAGE_URL "$PACKAGE_URL"
  2163. _ACEOF
  2164. # Let the site file select an alternate cache file if it wants to.
  2165. # Prefer an explicitly selected file to automatically selected ones.
  2166. ac_site_file1=NONE
  2167. ac_site_file2=NONE
  2168. if test -n "$CONFIG_SITE"; then
  2169. # We do not want a PATH search for config.site.
  2170. case $CONFIG_SITE in #((
  2171. -*) ac_site_file1=./$CONFIG_SITE;;
  2172. */*) ac_site_file1=$CONFIG_SITE;;
  2173. *) ac_site_file1=./$CONFIG_SITE;;
  2174. esac
  2175. elif test "x$prefix" != xNONE; then
  2176. ac_site_file1=$prefix/share/config.site
  2177. ac_site_file2=$prefix/etc/config.site
  2178. else
  2179. ac_site_file1=$ac_default_prefix/share/config.site
  2180. ac_site_file2=$ac_default_prefix/etc/config.site
  2181. fi
  2182. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2183. do
  2184. test "x$ac_site_file" = xNONE && continue
  2185. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2187. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2188. sed 's/^/| /' "$ac_site_file" >&5
  2189. . "$ac_site_file" \
  2190. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2191. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2192. as_fn_error $? "failed to load site script $ac_site_file
  2193. See \`config.log' for more details" "$LINENO" 5; }
  2194. fi
  2195. done
  2196. if test -r "$cache_file"; then
  2197. # Some versions of bash will fail to source /dev/null (special files
  2198. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2199. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2201. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2202. case $cache_file in
  2203. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2204. *) . "./$cache_file";;
  2205. esac
  2206. fi
  2207. else
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2209. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2210. >$cache_file
  2211. fi
  2212. # Check that the precious variables saved in the cache have kept the same
  2213. # value.
  2214. ac_cache_corrupted=false
  2215. for ac_var in $ac_precious_vars; do
  2216. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2217. eval ac_new_set=\$ac_env_${ac_var}_set
  2218. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2219. eval ac_new_val=\$ac_env_${ac_var}_value
  2220. case $ac_old_set,$ac_new_set in
  2221. set,)
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2223. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2224. ac_cache_corrupted=: ;;
  2225. ,set)
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2227. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2228. ac_cache_corrupted=: ;;
  2229. ,);;
  2230. *)
  2231. if test "x$ac_old_val" != "x$ac_new_val"; then
  2232. # differences in whitespace do not lead to failure.
  2233. ac_old_val_w=`echo x $ac_old_val`
  2234. ac_new_val_w=`echo x $ac_new_val`
  2235. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2237. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2238. ac_cache_corrupted=:
  2239. else
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2241. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2242. eval $ac_var=\$ac_old_val
  2243. fi
  2244. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2245. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2247. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2248. fi;;
  2249. esac
  2250. # Pass precious variables to config.status.
  2251. if test "$ac_new_set" = set; then
  2252. case $ac_new_val in
  2253. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2254. *) ac_arg=$ac_var=$ac_new_val ;;
  2255. esac
  2256. case " $ac_configure_args " in
  2257. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2258. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2259. esac
  2260. fi
  2261. done
  2262. if $ac_cache_corrupted; then
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2264. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2266. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2267. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2268. fi
  2269. ## -------------------- ##
  2270. ## Main body of script. ##
  2271. ## -------------------- ##
  2272. ac_ext=c
  2273. ac_cpp='$CPP $CPPFLAGS'
  2274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2277. ac_config_headers="$ac_config_headers config.h"
  2278. ac_config_commands="$ac_config_commands ./atconfig"
  2279. ac_aux_dir=
  2280. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2281. if test -f "$ac_dir/install-sh"; then
  2282. ac_aux_dir=$ac_dir
  2283. ac_install_sh="$ac_aux_dir/install-sh -c"
  2284. break
  2285. elif test -f "$ac_dir/install.sh"; then
  2286. ac_aux_dir=$ac_dir
  2287. ac_install_sh="$ac_aux_dir/install.sh -c"
  2288. break
  2289. elif test -f "$ac_dir/shtool"; then
  2290. ac_aux_dir=$ac_dir
  2291. ac_install_sh="$ac_aux_dir/shtool install -c"
  2292. break
  2293. fi
  2294. done
  2295. if test -z "$ac_aux_dir"; then
  2296. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2297. fi
  2298. # These three variables are undocumented and unsupported,
  2299. # and are intended to be withdrawn in a future Autoconf release.
  2300. # They can cause serious problems if a builder's source tree is in a directory
  2301. # whose full name contains unusual characters.
  2302. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2303. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2304. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2305. # Find a good install program. We prefer a C program (faster),
  2306. # so one script is as good as another. But avoid the broken or
  2307. # incompatible versions:
  2308. # SysV /etc/install, /usr/sbin/install
  2309. # SunOS /usr/etc/install
  2310. # IRIX /sbin/install
  2311. # AIX /bin/install
  2312. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2313. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2314. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2315. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2316. # OS/2's system install, which has a completely different semantic
  2317. # ./install, which can be erroneously created by make from ./install.sh.
  2318. # Reject install programs that cannot install multiple files.
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2320. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2321. if test -z "$INSTALL"; then
  2322. if ${ac_cv_path_install+:} false; then :
  2323. $as_echo_n "(cached) " >&6
  2324. else
  2325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2326. for as_dir in $PATH
  2327. do
  2328. IFS=$as_save_IFS
  2329. test -z "$as_dir" && as_dir=.
  2330. # Account for people who put trailing slashes in PATH elements.
  2331. case $as_dir/ in #((
  2332. ./ | .// | /[cC]/* | \
  2333. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2334. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2335. /usr/ucb/* ) ;;
  2336. *)
  2337. # OSF1 and SCO ODT 3.0 have their own names for install.
  2338. # Don't use installbsd from OSF since it installs stuff as root
  2339. # by default.
  2340. for ac_prog in ginstall scoinst install; do
  2341. for ac_exec_ext in '' $ac_executable_extensions; do
  2342. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2343. if test $ac_prog = install &&
  2344. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2345. # AIX install. It has an incompatible calling convention.
  2346. :
  2347. elif test $ac_prog = install &&
  2348. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2349. # program-specific install script used by HP pwplus--don't use.
  2350. :
  2351. else
  2352. rm -rf conftest.one conftest.two conftest.dir
  2353. echo one > conftest.one
  2354. echo two > conftest.two
  2355. mkdir conftest.dir
  2356. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2357. test -s conftest.one && test -s conftest.two &&
  2358. test -s conftest.dir/conftest.one &&
  2359. test -s conftest.dir/conftest.two
  2360. then
  2361. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2362. break 3
  2363. fi
  2364. fi
  2365. fi
  2366. done
  2367. done
  2368. ;;
  2369. esac
  2370. done
  2371. IFS=$as_save_IFS
  2372. rm -rf conftest.one conftest.two conftest.dir
  2373. fi
  2374. if test "${ac_cv_path_install+set}" = set; then
  2375. INSTALL=$ac_cv_path_install
  2376. else
  2377. # As a last resort, use the slow shell script. Don't cache a
  2378. # value for INSTALL within a source directory, because that will
  2379. # break other packages using the cache if that directory is
  2380. # removed, or if the value is a relative name.
  2381. INSTALL=$ac_install_sh
  2382. fi
  2383. fi
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2385. $as_echo "$INSTALL" >&6; }
  2386. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2387. # It thinks the first close brace ends the variable substitution.
  2388. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2389. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2390. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2391. # Make sure we can run config.sub.
  2392. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2393. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2395. $as_echo_n "checking build system type... " >&6; }
  2396. if ${ac_cv_build+:} false; then :
  2397. $as_echo_n "(cached) " >&6
  2398. else
  2399. ac_build_alias=$build_alias
  2400. test "x$ac_build_alias" = x &&
  2401. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2402. test "x$ac_build_alias" = x &&
  2403. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2404. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2405. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2406. fi
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2408. $as_echo "$ac_cv_build" >&6; }
  2409. case $ac_cv_build in
  2410. *-*-*) ;;
  2411. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2412. esac
  2413. build=$ac_cv_build
  2414. ac_save_IFS=$IFS; IFS='-'
  2415. set x $ac_cv_build
  2416. shift
  2417. build_cpu=$1
  2418. build_vendor=$2
  2419. shift; shift
  2420. # Remember, the first character of IFS is used to create $*,
  2421. # except with old shells:
  2422. build_os=$*
  2423. IFS=$ac_save_IFS
  2424. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2426. $as_echo_n "checking host system type... " >&6; }
  2427. if ${ac_cv_host+:} false; then :
  2428. $as_echo_n "(cached) " >&6
  2429. else
  2430. if test "x$host_alias" = x; then
  2431. ac_cv_host=$ac_cv_build
  2432. else
  2433. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2434. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2435. fi
  2436. fi
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2438. $as_echo "$ac_cv_host" >&6; }
  2439. case $ac_cv_host in
  2440. *-*-*) ;;
  2441. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2442. esac
  2443. host=$ac_cv_host
  2444. ac_save_IFS=$IFS; IFS='-'
  2445. set x $ac_cv_host
  2446. shift
  2447. host_cpu=$1
  2448. host_vendor=$2
  2449. shift; shift
  2450. # Remember, the first character of IFS is used to create $*,
  2451. # except with old shells:
  2452. host_os=$*
  2453. IFS=$ac_save_IFS
  2454. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking cached host tuple" >&5
  2456. $as_echo_n "checking cached host tuple... " >&6; }
  2457. if { test x"${ac_cv_host_system_type+set}" = x"set" &&
  2458. test x"$ac_cv_host_system_type" != x"$host"; }; then
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: different" >&5
  2460. $as_echo "different" >&6; }
  2461. as_fn_error $? "remove config.cache and re-run configure" "$LINENO" 5
  2462. else
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  2464. $as_echo "ok" >&6; }
  2465. fi
  2466. ac_cv_host_system_type="$host"
  2467. case "${host}" in
  2468. ## Alpha (DEC) machines.
  2469. alpha*-dec-osf* )
  2470. tcsh_config_file=decosf1
  2471. ;;
  2472. ## Ultrix
  2473. *-dec-ultrix* )
  2474. tcsh_config_file=ultrix
  2475. ;;
  2476. ## DGUX
  2477. *-dg-dguxR4* )
  2478. tcsh_config_file=dgux5.4
  2479. ;;
  2480. m88k-dg-dgux5.4R* )
  2481. tcsh_config_file=dgux5.4
  2482. ;;
  2483. ## HP/UX
  2484. *-hp-hpux7* )
  2485. tcsh_config_file=hpux7
  2486. ;;
  2487. *-hp-hpux[89]* )
  2488. tcsh_config_file=hpux8
  2489. ;;
  2490. *-hp-hpux1[0-9]* )
  2491. tcsh_config_file=hpux11
  2492. ;;
  2493. ## IBM AIX systems
  2494. *-ibm-aix*)
  2495. tcsh_config_file=aix
  2496. ;;
  2497. ## SX-4
  2498. sx4-nec-*)
  2499. CC='cc -h0,ansi,novector,float0'
  2500. LDFLAGS='-Gsmall'
  2501. tcsh_config_file=superux8
  2502. ;;
  2503. ## IBM OS/390 systems
  2504. *-ibm-os390*)
  2505. CC='c89'
  2506. tcsh_config_file=os390
  2507. ;;
  2508. ## Android
  2509. *-*-android*)
  2510. tcsh_config_file=android
  2511. ;;
  2512. ## Linux
  2513. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
  2514. tcsh_config_file=linux
  2515. ;;
  2516. ## Motorola systems
  2517. m68k-motorola-sysv* )
  2518. tcsh_config_file=sysV68
  2519. ;;
  2520. m88k-motorola-sysv3* )
  2521. tcsh_config_file=sysV88
  2522. ;;
  2523. ## NetBSD systems
  2524. *-*-netbsd*)
  2525. tcsh_config_file=bsd4.4
  2526. ;;
  2527. ## FreeBSD systems
  2528. *-*-freebsd*)
  2529. tcsh_config_file=bsd4.4
  2530. ;;
  2531. ## MidnightBSD systems
  2532. *-*-midnightbsd*)
  2533. tcsh_config_file=bsd4.4
  2534. ;;
  2535. ## DragonFlyBSD systems
  2536. *-*-dragonfly*)
  2537. tcsh_config_file=bsd4.4
  2538. ;;
  2539. ## OpenBSD systems
  2540. *-*-openbsd*)
  2541. tcsh_config_file=bsd4.4
  2542. ;;
  2543. ## BSDI systems
  2544. *-*-bsdi*)
  2545. tcsh_config_file=bsd4.4
  2546. ;;
  2547. ## Mac OS X Server
  2548. *-*-rhapsody* )
  2549. tcsh_config_file=bsd4.4
  2550. ;;
  2551. ## Mac OS X Server
  2552. *-*-darwin* )
  2553. tcsh_config_file=bsd4.4
  2554. ;;
  2555. ## DragonFly systems
  2556. *-*-dragonfly*)
  2557. tcsh_config_file=bsd4.4
  2558. ;;
  2559. ## Silicon Graphics machines
  2560. *-sgi-iri* )
  2561. tcsh_config_file=irix
  2562. case "${host_os}" in
  2563. irix[34]*) # Irix-3.x - Irix 4.x
  2564. NON_GNU_DFLAGS='-D__STDC__'
  2565. LIBS='-lsun -lbsd -lc_s'
  2566. ;;
  2567. irix5* | irix6.[01]*) # Irix 5.x, Irix 6.0 - 6.1
  2568. LIBS='-lbsd'
  2569. ;;
  2570. irix6.[2-9]*) # Irix 6.2 and later
  2571. tcsh_config_file=irix62
  2572. ;;
  2573. esac
  2574. ;;
  2575. ## Suns
  2576. *-sun-sunos3* )
  2577. tcsh_config_file=sunos35
  2578. ;;
  2579. *-sun-sunos4.0* )
  2580. tcsh_config_file=sunos40
  2581. ;;
  2582. *-sun-sunos4.1.[12]* )
  2583. tcsh_config_file=sunos41
  2584. ;;
  2585. *-sun-sunos4.1.[3456]* )
  2586. tcsh_config_file=sunos413
  2587. ;;
  2588. *-*-solaris2.[01] ) # Should handle sparc or x86
  2589. tcsh_config_file=sol2
  2590. ;;
  2591. *-sun-solaris2.2 ) # Sparc only release
  2592. tcsh_config_file=sol22
  2593. ;;
  2594. *-sun-solaris2.3 ) # Sparc only release
  2595. tcsh_config_file=sol23
  2596. ;;
  2597. *-*-solaris2.[45] ) # Should handle sparc, x86 and powerpc
  2598. tcsh_config_file=sol24
  2599. ;;
  2600. *-*-solaris2.[678] ) # Should handle sparc, x86 and powerpc
  2601. tcsh_config_file=sol26
  2602. ;;
  2603. *-*-solaris2.* ) # Should handle sparc, x86 and powerpc
  2604. tcsh_config_file=sol29
  2605. ;;
  2606. ## Dell SVR4
  2607. *-dell-sysv4* )
  2608. tcsh_config_file=sysv4
  2609. DFLAGS="$DFLAGS -DDELL"
  2610. ;;
  2611. ## SVR4 (Generic and otherwise)
  2612. *-*-sysv4* )
  2613. tcsh_config_file=sysv4
  2614. ;;
  2615. ## Tektronix systems
  2616. m68k-tektronix-bsd* )
  2617. tcsh_config_file=bsd
  2618. NON_GNU_DFLAGS='-DBSD -DUTek'
  2619. ;;
  2620. m88k-tektronix-sysv3* )
  2621. tcsh_config_file=tekXD88
  2622. ;;
  2623. ## SCO
  2624. *-sco3.2v5*)
  2625. tcsh_config_file=sco32v5
  2626. ;;
  2627. *-sco3.2v4*)
  2628. tcsh_config_file=sco32v4
  2629. ;;
  2630. *-sco3.2v2*)
  2631. tcsh_config_file=sco32v2
  2632. ;;
  2633. ## Siemens BS2000 Mainframe
  2634. bs2000-siemens-*)
  2635. tcsh_config_file=bs2000
  2636. ;;
  2637. ## Convex
  2638. *-convex*)
  2639. tcsh_config_file=convex
  2640. ;;
  2641. ## Cray
  2642. *-cray-unicos*)
  2643. tcsh_config_file=cray
  2644. ;;
  2645. ## Red Hat Cygwin
  2646. *-cygwin)
  2647. tcsh_config_file=cygwin
  2648. ;;
  2649. ## mips-compaq-nonstopux
  2650. *-*-nonstopux)
  2651. tcsh_config_file=sysv4
  2652. ;;
  2653. ## Apollo Domain/OS
  2654. *-apollo-*)
  2655. tcsh_config_file=apollo
  2656. ;;
  2657. ## QNX6
  2658. *-qnx6*)
  2659. tcsh_config_file=qnx6
  2660. ;;
  2661. * )
  2662. as_fn_error $? "Tcsh can't guess the configuration file name
  2663. for \`${host}' systems.
  2664. Check tcsh's \`Ported' file for manual configuration instructions." "$LINENO" 5
  2665. ;;
  2666. esac
  2667. echo "Tcsh will use configuration file \`$tcsh_config_file'."
  2668. cp ${srcdir}/config/${tcsh_config_file} config_p.h
  2669. ac_ext=c
  2670. ac_cpp='$CPP $CPPFLAGS'
  2671. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2672. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2673. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2674. if test -n "$ac_tool_prefix"; then
  2675. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2676. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2678. $as_echo_n "checking for $ac_word... " >&6; }
  2679. if ${ac_cv_prog_CC+:} false; then :
  2680. $as_echo_n "(cached) " >&6
  2681. else
  2682. if test -n "$CC"; then
  2683. ac_cv_prog_CC="$CC" # Let the user override the test.
  2684. else
  2685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2686. for as_dir in $PATH
  2687. do
  2688. IFS=$as_save_IFS
  2689. test -z "$as_dir" && as_dir=.
  2690. for ac_exec_ext in '' $ac_executable_extensions; do
  2691. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2692. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2694. break 2
  2695. fi
  2696. done
  2697. done
  2698. IFS=$as_save_IFS
  2699. fi
  2700. fi
  2701. CC=$ac_cv_prog_CC
  2702. if test -n "$CC"; then
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2704. $as_echo "$CC" >&6; }
  2705. else
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2707. $as_echo "no" >&6; }
  2708. fi
  2709. fi
  2710. if test -z "$ac_cv_prog_CC"; then
  2711. ac_ct_CC=$CC
  2712. # Extract the first word of "gcc", so it can be a program name with args.
  2713. set dummy gcc; ac_word=$2
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2715. $as_echo_n "checking for $ac_word... " >&6; }
  2716. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2717. $as_echo_n "(cached) " >&6
  2718. else
  2719. if test -n "$ac_ct_CC"; then
  2720. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2721. else
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. for ac_exec_ext in '' $ac_executable_extensions; do
  2728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2729. ac_cv_prog_ac_ct_CC="gcc"
  2730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2731. break 2
  2732. fi
  2733. done
  2734. done
  2735. IFS=$as_save_IFS
  2736. fi
  2737. fi
  2738. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2739. if test -n "$ac_ct_CC"; then
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2741. $as_echo "$ac_ct_CC" >&6; }
  2742. else
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2744. $as_echo "no" >&6; }
  2745. fi
  2746. if test "x$ac_ct_CC" = x; then
  2747. CC=""
  2748. else
  2749. case $cross_compiling:$ac_tool_warned in
  2750. yes:)
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2752. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2753. ac_tool_warned=yes ;;
  2754. esac
  2755. CC=$ac_ct_CC
  2756. fi
  2757. else
  2758. CC="$ac_cv_prog_CC"
  2759. fi
  2760. if test -z "$CC"; then
  2761. if test -n "$ac_tool_prefix"; then
  2762. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2763. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2765. $as_echo_n "checking for $ac_word... " >&6; }
  2766. if ${ac_cv_prog_CC+:} false; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test -n "$CC"; then
  2770. ac_cv_prog_CC="$CC" # Let the user override the test.
  2771. else
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2779. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. CC=$ac_cv_prog_CC
  2789. if test -n "$CC"; then
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2791. $as_echo "$CC" >&6; }
  2792. else
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. fi
  2796. fi
  2797. fi
  2798. if test -z "$CC"; then
  2799. # Extract the first word of "cc", so it can be a program name with args.
  2800. set dummy cc; ac_word=$2
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2802. $as_echo_n "checking for $ac_word... " >&6; }
  2803. if ${ac_cv_prog_CC+:} false; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. if test -n "$CC"; then
  2807. ac_cv_prog_CC="$CC" # Let the user override the test.
  2808. else
  2809. ac_prog_rejected=no
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2817. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2818. ac_prog_rejected=yes
  2819. continue
  2820. fi
  2821. ac_cv_prog_CC="cc"
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2823. break 2
  2824. fi
  2825. done
  2826. done
  2827. IFS=$as_save_IFS
  2828. if test $ac_prog_rejected = yes; then
  2829. # We found a bogon in the path, so make sure we never use it.
  2830. set dummy $ac_cv_prog_CC
  2831. shift
  2832. if test $# != 0; then
  2833. # We chose a different compiler from the bogus one.
  2834. # However, it has the same basename, so the bogon will be chosen
  2835. # first if we set CC to just the basename; use the full file name.
  2836. shift
  2837. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2838. fi
  2839. fi
  2840. fi
  2841. fi
  2842. CC=$ac_cv_prog_CC
  2843. if test -n "$CC"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2845. $as_echo "$CC" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. fi
  2851. if test -z "$CC"; then
  2852. if test -n "$ac_tool_prefix"; then
  2853. for ac_prog in cl.exe
  2854. do
  2855. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2856. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2858. $as_echo_n "checking for $ac_word... " >&6; }
  2859. if ${ac_cv_prog_CC+:} false; then :
  2860. $as_echo_n "(cached) " >&6
  2861. else
  2862. if test -n "$CC"; then
  2863. ac_cv_prog_CC="$CC" # Let the user override the test.
  2864. else
  2865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2866. for as_dir in $PATH
  2867. do
  2868. IFS=$as_save_IFS
  2869. test -z "$as_dir" && as_dir=.
  2870. for ac_exec_ext in '' $ac_executable_extensions; do
  2871. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2872. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2874. break 2
  2875. fi
  2876. done
  2877. done
  2878. IFS=$as_save_IFS
  2879. fi
  2880. fi
  2881. CC=$ac_cv_prog_CC
  2882. if test -n "$CC"; then
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2884. $as_echo "$CC" >&6; }
  2885. else
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2887. $as_echo "no" >&6; }
  2888. fi
  2889. test -n "$CC" && break
  2890. done
  2891. fi
  2892. if test -z "$CC"; then
  2893. ac_ct_CC=$CC
  2894. for ac_prog in cl.exe
  2895. do
  2896. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2897. set dummy $ac_prog; ac_word=$2
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2899. $as_echo_n "checking for $ac_word... " >&6; }
  2900. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2901. $as_echo_n "(cached) " >&6
  2902. else
  2903. if test -n "$ac_ct_CC"; then
  2904. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2905. else
  2906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2907. for as_dir in $PATH
  2908. do
  2909. IFS=$as_save_IFS
  2910. test -z "$as_dir" && as_dir=.
  2911. for ac_exec_ext in '' $ac_executable_extensions; do
  2912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2913. ac_cv_prog_ac_ct_CC="$ac_prog"
  2914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2915. break 2
  2916. fi
  2917. done
  2918. done
  2919. IFS=$as_save_IFS
  2920. fi
  2921. fi
  2922. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2923. if test -n "$ac_ct_CC"; then
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2925. $as_echo "$ac_ct_CC" >&6; }
  2926. else
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2928. $as_echo "no" >&6; }
  2929. fi
  2930. test -n "$ac_ct_CC" && break
  2931. done
  2932. if test "x$ac_ct_CC" = x; then
  2933. CC=""
  2934. else
  2935. case $cross_compiling:$ac_tool_warned in
  2936. yes:)
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2939. ac_tool_warned=yes ;;
  2940. esac
  2941. CC=$ac_ct_CC
  2942. fi
  2943. fi
  2944. fi
  2945. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2946. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2947. as_fn_error $? "no acceptable C compiler found in \$PATH
  2948. See \`config.log' for more details" "$LINENO" 5; }
  2949. # Provide some information about the compiler.
  2950. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2951. set X $ac_compile
  2952. ac_compiler=$2
  2953. for ac_option in --version -v -V -qversion; do
  2954. { { ac_try="$ac_compiler $ac_option >&5"
  2955. case "(($ac_try" in
  2956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2957. *) ac_try_echo=$ac_try;;
  2958. esac
  2959. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2960. $as_echo "$ac_try_echo"; } >&5
  2961. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2962. ac_status=$?
  2963. if test -s conftest.err; then
  2964. sed '10a\
  2965. ... rest of stderr output deleted ...
  2966. 10q' conftest.err >conftest.er1
  2967. cat conftest.er1 >&5
  2968. fi
  2969. rm -f conftest.er1 conftest.err
  2970. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2971. test $ac_status = 0; }
  2972. done
  2973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2974. /* end confdefs.h. */
  2975. int
  2976. main ()
  2977. {
  2978. ;
  2979. return 0;
  2980. }
  2981. _ACEOF
  2982. ac_clean_files_save=$ac_clean_files
  2983. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2984. # Try to create an executable without -o first, disregard a.out.
  2985. # It will help us diagnose broken compilers, and finding out an intuition
  2986. # of exeext.
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2988. $as_echo_n "checking whether the C compiler works... " >&6; }
  2989. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2990. # The possible output files:
  2991. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2992. ac_rmfiles=
  2993. for ac_file in $ac_files
  2994. do
  2995. case $ac_file in
  2996. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2997. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2998. esac
  2999. done
  3000. rm -f $ac_rmfiles
  3001. if { { ac_try="$ac_link_default"
  3002. case "(($ac_try" in
  3003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3004. *) ac_try_echo=$ac_try;;
  3005. esac
  3006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3007. $as_echo "$ac_try_echo"; } >&5
  3008. (eval "$ac_link_default") 2>&5
  3009. ac_status=$?
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3011. test $ac_status = 0; }; then :
  3012. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3013. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3014. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3015. # so that the user can short-circuit this test for compilers unknown to
  3016. # Autoconf.
  3017. for ac_file in $ac_files ''
  3018. do
  3019. test -f "$ac_file" || continue
  3020. case $ac_file in
  3021. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3022. ;;
  3023. [ab].out )
  3024. # We found the default executable, but exeext='' is most
  3025. # certainly right.
  3026. break;;
  3027. *.* )
  3028. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3029. then :; else
  3030. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3031. fi
  3032. # We set ac_cv_exeext here because the later test for it is not
  3033. # safe: cross compilers may not add the suffix if given an `-o'
  3034. # argument, so we may need to know it at that point already.
  3035. # Even if this section looks crufty: it has the advantage of
  3036. # actually working.
  3037. break;;
  3038. * )
  3039. break;;
  3040. esac
  3041. done
  3042. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3043. else
  3044. ac_file=''
  3045. fi
  3046. if test -z "$ac_file"; then :
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3048. $as_echo "no" >&6; }
  3049. $as_echo "$as_me: failed program was:" >&5
  3050. sed 's/^/| /' conftest.$ac_ext >&5
  3051. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3052. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3053. as_fn_error 77 "C compiler cannot create executables
  3054. See \`config.log' for more details" "$LINENO" 5; }
  3055. else
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3057. $as_echo "yes" >&6; }
  3058. fi
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3060. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3062. $as_echo "$ac_file" >&6; }
  3063. ac_exeext=$ac_cv_exeext
  3064. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3065. ac_clean_files=$ac_clean_files_save
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3067. $as_echo_n "checking for suffix of executables... " >&6; }
  3068. if { { ac_try="$ac_link"
  3069. case "(($ac_try" in
  3070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3071. *) ac_try_echo=$ac_try;;
  3072. esac
  3073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3074. $as_echo "$ac_try_echo"; } >&5
  3075. (eval "$ac_link") 2>&5
  3076. ac_status=$?
  3077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3078. test $ac_status = 0; }; then :
  3079. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3080. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3081. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3082. # `rm'.
  3083. for ac_file in conftest.exe conftest conftest.*; do
  3084. test -f "$ac_file" || continue
  3085. case $ac_file in
  3086. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3087. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3088. break;;
  3089. * ) break;;
  3090. esac
  3091. done
  3092. else
  3093. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3094. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3095. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3096. See \`config.log' for more details" "$LINENO" 5; }
  3097. fi
  3098. rm -f conftest conftest$ac_cv_exeext
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3100. $as_echo "$ac_cv_exeext" >&6; }
  3101. rm -f conftest.$ac_ext
  3102. EXEEXT=$ac_cv_exeext
  3103. ac_exeext=$EXEEXT
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. #include <stdio.h>
  3107. int
  3108. main ()
  3109. {
  3110. FILE *f = fopen ("conftest.out", "w");
  3111. return ferror (f) || fclose (f) != 0;
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. ac_clean_files="$ac_clean_files conftest.out"
  3117. # Check that the compiler produces executables we can run. If not, either
  3118. # the compiler is broken, or we cross compile.
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3120. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3121. if test "$cross_compiling" != yes; then
  3122. { { ac_try="$ac_link"
  3123. case "(($ac_try" in
  3124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3125. *) ac_try_echo=$ac_try;;
  3126. esac
  3127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3128. $as_echo "$ac_try_echo"; } >&5
  3129. (eval "$ac_link") 2>&5
  3130. ac_status=$?
  3131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3132. test $ac_status = 0; }
  3133. if { ac_try='./conftest$ac_cv_exeext'
  3134. { { case "(($ac_try" in
  3135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3136. *) ac_try_echo=$ac_try;;
  3137. esac
  3138. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3139. $as_echo "$ac_try_echo"; } >&5
  3140. (eval "$ac_try") 2>&5
  3141. ac_status=$?
  3142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3143. test $ac_status = 0; }; }; then
  3144. cross_compiling=no
  3145. else
  3146. if test "$cross_compiling" = maybe; then
  3147. cross_compiling=yes
  3148. else
  3149. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3150. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3151. as_fn_error $? "cannot run C compiled programs.
  3152. If you meant to cross compile, use \`--host'.
  3153. See \`config.log' for more details" "$LINENO" 5; }
  3154. fi
  3155. fi
  3156. fi
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3158. $as_echo "$cross_compiling" >&6; }
  3159. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3160. ac_clean_files=$ac_clean_files_save
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3162. $as_echo_n "checking for suffix of object files... " >&6; }
  3163. if ${ac_cv_objext+:} false; then :
  3164. $as_echo_n "(cached) " >&6
  3165. else
  3166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3167. /* end confdefs.h. */
  3168. int
  3169. main ()
  3170. {
  3171. ;
  3172. return 0;
  3173. }
  3174. _ACEOF
  3175. rm -f conftest.o conftest.obj
  3176. if { { ac_try="$ac_compile"
  3177. case "(($ac_try" in
  3178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3179. *) ac_try_echo=$ac_try;;
  3180. esac
  3181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3182. $as_echo "$ac_try_echo"; } >&5
  3183. (eval "$ac_compile") 2>&5
  3184. ac_status=$?
  3185. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3186. test $ac_status = 0; }; then :
  3187. for ac_file in conftest.o conftest.obj conftest.*; do
  3188. test -f "$ac_file" || continue;
  3189. case $ac_file in
  3190. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3191. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3192. break;;
  3193. esac
  3194. done
  3195. else
  3196. $as_echo "$as_me: failed program was:" >&5
  3197. sed 's/^/| /' conftest.$ac_ext >&5
  3198. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3200. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3201. See \`config.log' for more details" "$LINENO" 5; }
  3202. fi
  3203. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3204. fi
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3206. $as_echo "$ac_cv_objext" >&6; }
  3207. OBJEXT=$ac_cv_objext
  3208. ac_objext=$OBJEXT
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3210. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3211. if ${ac_cv_c_compiler_gnu+:} false; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. int
  3217. main ()
  3218. {
  3219. #ifndef __GNUC__
  3220. choke me
  3221. #endif
  3222. ;
  3223. return 0;
  3224. }
  3225. _ACEOF
  3226. if ac_fn_c_try_compile "$LINENO"; then :
  3227. ac_compiler_gnu=yes
  3228. else
  3229. ac_compiler_gnu=no
  3230. fi
  3231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3232. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3233. fi
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3235. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3236. if test $ac_compiler_gnu = yes; then
  3237. GCC=yes
  3238. else
  3239. GCC=
  3240. fi
  3241. ac_test_CFLAGS=${CFLAGS+set}
  3242. ac_save_CFLAGS=$CFLAGS
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3244. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3245. if ${ac_cv_prog_cc_g+:} false; then :
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. ac_save_c_werror_flag=$ac_c_werror_flag
  3249. ac_c_werror_flag=yes
  3250. ac_cv_prog_cc_g=no
  3251. CFLAGS="-g"
  3252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3253. /* end confdefs.h. */
  3254. int
  3255. main ()
  3256. {
  3257. ;
  3258. return 0;
  3259. }
  3260. _ACEOF
  3261. if ac_fn_c_try_compile "$LINENO"; then :
  3262. ac_cv_prog_cc_g=yes
  3263. else
  3264. CFLAGS=""
  3265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3266. /* end confdefs.h. */
  3267. int
  3268. main ()
  3269. {
  3270. ;
  3271. return 0;
  3272. }
  3273. _ACEOF
  3274. if ac_fn_c_try_compile "$LINENO"; then :
  3275. else
  3276. ac_c_werror_flag=$ac_save_c_werror_flag
  3277. CFLAGS="-g"
  3278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3279. /* end confdefs.h. */
  3280. int
  3281. main ()
  3282. {
  3283. ;
  3284. return 0;
  3285. }
  3286. _ACEOF
  3287. if ac_fn_c_try_compile "$LINENO"; then :
  3288. ac_cv_prog_cc_g=yes
  3289. fi
  3290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3291. fi
  3292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3293. fi
  3294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3295. ac_c_werror_flag=$ac_save_c_werror_flag
  3296. fi
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3298. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3299. if test "$ac_test_CFLAGS" = set; then
  3300. CFLAGS=$ac_save_CFLAGS
  3301. elif test $ac_cv_prog_cc_g = yes; then
  3302. if test "$GCC" = yes; then
  3303. CFLAGS="-g -O2"
  3304. else
  3305. CFLAGS="-g"
  3306. fi
  3307. else
  3308. if test "$GCC" = yes; then
  3309. CFLAGS="-O2"
  3310. else
  3311. CFLAGS=
  3312. fi
  3313. fi
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3315. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3316. if ${ac_cv_prog_cc_c89+:} false; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. ac_cv_prog_cc_c89=no
  3320. ac_save_CC=$CC
  3321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end confdefs.h. */
  3323. #include <stdarg.h>
  3324. #include <stdio.h>
  3325. #include <sys/types.h>
  3326. #include <sys/stat.h>
  3327. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3328. struct buf { int x; };
  3329. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3330. static char *e (p, i)
  3331. char **p;
  3332. int i;
  3333. {
  3334. return p[i];
  3335. }
  3336. static char *f (char * (*g) (char **, int), char **p, ...)
  3337. {
  3338. char *s;
  3339. va_list v;
  3340. va_start (v,p);
  3341. s = g (p, va_arg (v,int));
  3342. va_end (v);
  3343. return s;
  3344. }
  3345. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3346. function prototypes and stuff, but not '\xHH' hex character constants.
  3347. These don't provoke an error unfortunately, instead are silently treated
  3348. as 'x'. The following induces an error, until -std is added to get
  3349. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3350. array size at least. It's necessary to write '\x00'==0 to get something
  3351. that's true only with -std. */
  3352. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3353. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3354. inside strings and character constants. */
  3355. #define FOO(x) 'x'
  3356. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3357. int test (int i, double x);
  3358. struct s1 {int (*f) (int a);};
  3359. struct s2 {int (*f) (double a);};
  3360. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3361. int argc;
  3362. char **argv;
  3363. int
  3364. main ()
  3365. {
  3366. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3372. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3373. do
  3374. CC="$ac_save_CC $ac_arg"
  3375. if ac_fn_c_try_compile "$LINENO"; then :
  3376. ac_cv_prog_cc_c89=$ac_arg
  3377. fi
  3378. rm -f core conftest.err conftest.$ac_objext
  3379. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3380. done
  3381. rm -f conftest.$ac_ext
  3382. CC=$ac_save_CC
  3383. fi
  3384. # AC_CACHE_VAL
  3385. case "x$ac_cv_prog_cc_c89" in
  3386. x)
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3388. $as_echo "none needed" >&6; } ;;
  3389. xno)
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3391. $as_echo "unsupported" >&6; } ;;
  3392. *)
  3393. CC="$CC $ac_cv_prog_cc_c89"
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3395. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3396. esac
  3397. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3398. fi
  3399. ac_ext=c
  3400. ac_cpp='$CPP $CPPFLAGS'
  3401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3404. ac_ext=c
  3405. ac_cpp='$CPP $CPPFLAGS'
  3406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3410. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3411. # On Suns, sometimes $CPP names a directory.
  3412. if test -n "$CPP" && test -d "$CPP"; then
  3413. CPP=
  3414. fi
  3415. if test -z "$CPP"; then
  3416. if ${ac_cv_prog_CPP+:} false; then :
  3417. $as_echo_n "(cached) " >&6
  3418. else
  3419. # Double quotes because CPP needs to be expanded
  3420. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3421. do
  3422. ac_preproc_ok=false
  3423. for ac_c_preproc_warn_flag in '' yes
  3424. do
  3425. # Use a header file that comes with gcc, so configuring glibc
  3426. # with a fresh cross-compiler works.
  3427. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3428. # <limits.h> exists even on freestanding compilers.
  3429. # On the NeXT, cc -E runs the code through the compiler's parser,
  3430. # not just through cpp. "Syntax error" is here to catch this case.
  3431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3432. /* end confdefs.h. */
  3433. #ifdef __STDC__
  3434. # include <limits.h>
  3435. #else
  3436. # include <assert.h>
  3437. #endif
  3438. Syntax error
  3439. _ACEOF
  3440. if ac_fn_c_try_cpp "$LINENO"; then :
  3441. else
  3442. # Broken: fails on valid input.
  3443. continue
  3444. fi
  3445. rm -f conftest.err conftest.i conftest.$ac_ext
  3446. # OK, works on sane cases. Now check whether nonexistent headers
  3447. # can be detected and how.
  3448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3449. /* end confdefs.h. */
  3450. #include <ac_nonexistent.h>
  3451. _ACEOF
  3452. if ac_fn_c_try_cpp "$LINENO"; then :
  3453. # Broken: success on invalid input.
  3454. continue
  3455. else
  3456. # Passes both tests.
  3457. ac_preproc_ok=:
  3458. break
  3459. fi
  3460. rm -f conftest.err conftest.i conftest.$ac_ext
  3461. done
  3462. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3463. rm -f conftest.i conftest.err conftest.$ac_ext
  3464. if $ac_preproc_ok; then :
  3465. break
  3466. fi
  3467. done
  3468. ac_cv_prog_CPP=$CPP
  3469. fi
  3470. CPP=$ac_cv_prog_CPP
  3471. else
  3472. ac_cv_prog_CPP=$CPP
  3473. fi
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3475. $as_echo "$CPP" >&6; }
  3476. ac_preproc_ok=false
  3477. for ac_c_preproc_warn_flag in '' yes
  3478. do
  3479. # Use a header file that comes with gcc, so configuring glibc
  3480. # with a fresh cross-compiler works.
  3481. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3482. # <limits.h> exists even on freestanding compilers.
  3483. # On the NeXT, cc -E runs the code through the compiler's parser,
  3484. # not just through cpp. "Syntax error" is here to catch this case.
  3485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3486. /* end confdefs.h. */
  3487. #ifdef __STDC__
  3488. # include <limits.h>
  3489. #else
  3490. # include <assert.h>
  3491. #endif
  3492. Syntax error
  3493. _ACEOF
  3494. if ac_fn_c_try_cpp "$LINENO"; then :
  3495. else
  3496. # Broken: fails on valid input.
  3497. continue
  3498. fi
  3499. rm -f conftest.err conftest.i conftest.$ac_ext
  3500. # OK, works on sane cases. Now check whether nonexistent headers
  3501. # can be detected and how.
  3502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3503. /* end confdefs.h. */
  3504. #include <ac_nonexistent.h>
  3505. _ACEOF
  3506. if ac_fn_c_try_cpp "$LINENO"; then :
  3507. # Broken: success on invalid input.
  3508. continue
  3509. else
  3510. # Passes both tests.
  3511. ac_preproc_ok=:
  3512. break
  3513. fi
  3514. rm -f conftest.err conftest.i conftest.$ac_ext
  3515. done
  3516. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3517. rm -f conftest.i conftest.err conftest.$ac_ext
  3518. if $ac_preproc_ok; then :
  3519. else
  3520. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3521. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3522. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3523. See \`config.log' for more details" "$LINENO" 5; }
  3524. fi
  3525. ac_ext=c
  3526. ac_cpp='$CPP $CPPFLAGS'
  3527. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3528. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3529. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3531. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3532. if ${ac_cv_path_GREP+:} false; then :
  3533. $as_echo_n "(cached) " >&6
  3534. else
  3535. if test -z "$GREP"; then
  3536. ac_path_GREP_found=false
  3537. # Loop through the user's path and test for each of PROGNAME-LIST
  3538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3539. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3540. do
  3541. IFS=$as_save_IFS
  3542. test -z "$as_dir" && as_dir=.
  3543. for ac_prog in grep ggrep; do
  3544. for ac_exec_ext in '' $ac_executable_extensions; do
  3545. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3546. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3547. # Check for GNU ac_path_GREP and select it if it is found.
  3548. # Check for GNU $ac_path_GREP
  3549. case `"$ac_path_GREP" --version 2>&1` in
  3550. *GNU*)
  3551. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3552. *)
  3553. ac_count=0
  3554. $as_echo_n 0123456789 >"conftest.in"
  3555. while :
  3556. do
  3557. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3558. mv "conftest.tmp" "conftest.in"
  3559. cp "conftest.in" "conftest.nl"
  3560. $as_echo 'GREP' >> "conftest.nl"
  3561. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3562. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3563. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3564. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3565. # Best one so far, save it but keep looking for a better one
  3566. ac_cv_path_GREP="$ac_path_GREP"
  3567. ac_path_GREP_max=$ac_count
  3568. fi
  3569. # 10*(2^10) chars as input seems more than enough
  3570. test $ac_count -gt 10 && break
  3571. done
  3572. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3573. esac
  3574. $ac_path_GREP_found && break 3
  3575. done
  3576. done
  3577. done
  3578. IFS=$as_save_IFS
  3579. if test -z "$ac_cv_path_GREP"; then
  3580. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3581. fi
  3582. else
  3583. ac_cv_path_GREP=$GREP
  3584. fi
  3585. fi
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3587. $as_echo "$ac_cv_path_GREP" >&6; }
  3588. GREP="$ac_cv_path_GREP"
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3590. $as_echo_n "checking for egrep... " >&6; }
  3591. if ${ac_cv_path_EGREP+:} false; then :
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3595. then ac_cv_path_EGREP="$GREP -E"
  3596. else
  3597. if test -z "$EGREP"; then
  3598. ac_path_EGREP_found=false
  3599. # Loop through the user's path and test for each of PROGNAME-LIST
  3600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3601. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3602. do
  3603. IFS=$as_save_IFS
  3604. test -z "$as_dir" && as_dir=.
  3605. for ac_prog in egrep; do
  3606. for ac_exec_ext in '' $ac_executable_extensions; do
  3607. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3608. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3609. # Check for GNU ac_path_EGREP and select it if it is found.
  3610. # Check for GNU $ac_path_EGREP
  3611. case `"$ac_path_EGREP" --version 2>&1` in
  3612. *GNU*)
  3613. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3614. *)
  3615. ac_count=0
  3616. $as_echo_n 0123456789 >"conftest.in"
  3617. while :
  3618. do
  3619. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3620. mv "conftest.tmp" "conftest.in"
  3621. cp "conftest.in" "conftest.nl"
  3622. $as_echo 'EGREP' >> "conftest.nl"
  3623. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3624. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3625. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3626. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3627. # Best one so far, save it but keep looking for a better one
  3628. ac_cv_path_EGREP="$ac_path_EGREP"
  3629. ac_path_EGREP_max=$ac_count
  3630. fi
  3631. # 10*(2^10) chars as input seems more than enough
  3632. test $ac_count -gt 10 && break
  3633. done
  3634. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3635. esac
  3636. $ac_path_EGREP_found && break 3
  3637. done
  3638. done
  3639. done
  3640. IFS=$as_save_IFS
  3641. if test -z "$ac_cv_path_EGREP"; then
  3642. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3643. fi
  3644. else
  3645. ac_cv_path_EGREP=$EGREP
  3646. fi
  3647. fi
  3648. fi
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3650. $as_echo "$ac_cv_path_EGREP" >&6; }
  3651. EGREP="$ac_cv_path_EGREP"
  3652. if test $ac_cv_c_compiler_gnu = yes; then
  3653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  3654. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  3655. if ${ac_cv_prog_gcc_traditional+:} false; then :
  3656. $as_echo_n "(cached) " >&6
  3657. else
  3658. ac_pattern="Autoconf.*'x'"
  3659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3660. /* end confdefs.h. */
  3661. #include <sgtty.h>
  3662. Autoconf TIOCGETP
  3663. _ACEOF
  3664. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3665. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  3666. ac_cv_prog_gcc_traditional=yes
  3667. else
  3668. ac_cv_prog_gcc_traditional=no
  3669. fi
  3670. rm -f conftest*
  3671. if test $ac_cv_prog_gcc_traditional = no; then
  3672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h. */
  3674. #include <termio.h>
  3675. Autoconf TCGETA
  3676. _ACEOF
  3677. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3678. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  3679. ac_cv_prog_gcc_traditional=yes
  3680. fi
  3681. rm -f conftest*
  3682. fi
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  3685. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  3686. if test $ac_cv_prog_gcc_traditional = yes; then
  3687. CC="$CC -traditional"
  3688. fi
  3689. fi
  3690. # Extract the first word of "gencat", so it can be a program name with args.
  3691. set dummy gencat; ac_word=$2
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3693. $as_echo_n "checking for $ac_word... " >&6; }
  3694. if ${ac_cv_path_GENCAT+:} false; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. case $GENCAT in
  3698. [\\/]* | ?:[\\/]*)
  3699. ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  3700. ;;
  3701. *)
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. test -z "$as_dir" && as_dir=.
  3707. for ac_exec_ext in '' $ac_executable_extensions; do
  3708. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3709. ac_cv_path_GENCAT="$as_dir/$ac_word$ac_exec_ext"
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3711. break 2
  3712. fi
  3713. done
  3714. done
  3715. IFS=$as_save_IFS
  3716. ;;
  3717. esac
  3718. fi
  3719. GENCAT=$ac_cv_path_GENCAT
  3720. if test -n "$GENCAT"; then
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCAT" >&5
  3722. $as_echo "$GENCAT" >&6; }
  3723. else
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3725. $as_echo "no" >&6; }
  3726. fi
  3727. if test "x${cross_compiling}" = xyes ; then
  3728. CC_FOR_GETHOST="cc"
  3729. else
  3730. CC_FOR_GETHOST="\$(CC)"
  3731. fi
  3732. if test "x$GCC" != xyes ; then
  3733. DFLAGS="$DFLAGS $NON_GNU_DFLAGS"
  3734. CFLAGS="$CFLAGS $NON_GNU_CFLAGS"
  3735. fi
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
  3737. $as_echo_n "checking for library containing crypt... " >&6; }
  3738. if ${ac_cv_search_crypt+:} false; then :
  3739. $as_echo_n "(cached) " >&6
  3740. else
  3741. ac_func_search_save_LIBS=$LIBS
  3742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3743. /* end confdefs.h. */
  3744. /* Override any GCC internal prototype to avoid an error.
  3745. Use char because int might match the return type of a GCC
  3746. builtin and then its argument prototype would still apply. */
  3747. #ifdef __cplusplus
  3748. extern "C"
  3749. #endif
  3750. char crypt ();
  3751. int
  3752. main ()
  3753. {
  3754. return crypt ();
  3755. ;
  3756. return 0;
  3757. }
  3758. _ACEOF
  3759. for ac_lib in '' crypt; do
  3760. if test -z "$ac_lib"; then
  3761. ac_res="none required"
  3762. else
  3763. ac_res=-l$ac_lib
  3764. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3765. fi
  3766. if ac_fn_c_try_link "$LINENO"; then :
  3767. ac_cv_search_crypt=$ac_res
  3768. fi
  3769. rm -f core conftest.err conftest.$ac_objext \
  3770. conftest$ac_exeext
  3771. if ${ac_cv_search_crypt+:} false; then :
  3772. break
  3773. fi
  3774. done
  3775. if ${ac_cv_search_crypt+:} false; then :
  3776. else
  3777. ac_cv_search_crypt=no
  3778. fi
  3779. rm conftest.$ac_ext
  3780. LIBS=$ac_func_search_save_LIBS
  3781. fi
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
  3783. $as_echo "$ac_cv_search_crypt" >&6; }
  3784. ac_res=$ac_cv_search_crypt
  3785. if test "$ac_res" != no; then :
  3786. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3787. fi
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
  3789. $as_echo_n "checking for library containing getspnam... " >&6; }
  3790. if ${ac_cv_search_getspnam+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. ac_func_search_save_LIBS=$LIBS
  3794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3795. /* end confdefs.h. */
  3796. /* Override any GCC internal prototype to avoid an error.
  3797. Use char because int might match the return type of a GCC
  3798. builtin and then its argument prototype would still apply. */
  3799. #ifdef __cplusplus
  3800. extern "C"
  3801. #endif
  3802. char getspnam ();
  3803. int
  3804. main ()
  3805. {
  3806. return getspnam ();
  3807. ;
  3808. return 0;
  3809. }
  3810. _ACEOF
  3811. for ac_lib in '' sec; do
  3812. if test -z "$ac_lib"; then
  3813. ac_res="none required"
  3814. else
  3815. ac_res=-l$ac_lib
  3816. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3817. fi
  3818. if ac_fn_c_try_link "$LINENO"; then :
  3819. ac_cv_search_getspnam=$ac_res
  3820. fi
  3821. rm -f core conftest.err conftest.$ac_objext \
  3822. conftest$ac_exeext
  3823. if ${ac_cv_search_getspnam+:} false; then :
  3824. break
  3825. fi
  3826. done
  3827. if ${ac_cv_search_getspnam+:} false; then :
  3828. else
  3829. ac_cv_search_getspnam=no
  3830. fi
  3831. rm conftest.$ac_ext
  3832. LIBS=$ac_func_search_save_LIBS
  3833. fi
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
  3835. $as_echo "$ac_cv_search_getspnam" >&6; }
  3836. ac_res=$ac_cv_search_getspnam
  3837. if test "$ac_res" != no; then :
  3838. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
  3841. $as_echo_n "checking for library containing tgetent... " >&6; }
  3842. if ${ac_cv_search_tgetent+:} false; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. ac_func_search_save_LIBS=$LIBS
  3846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3847. /* end confdefs.h. */
  3848. /* Override any GCC internal prototype to avoid an error.
  3849. Use char because int might match the return type of a GCC
  3850. builtin and then its argument prototype would still apply. */
  3851. #ifdef __cplusplus
  3852. extern "C"
  3853. #endif
  3854. char tgetent ();
  3855. int
  3856. main ()
  3857. {
  3858. return tgetent ();
  3859. ;
  3860. return 0;
  3861. }
  3862. _ACEOF
  3863. for ac_lib in '' termlib termcap curses ncurses; do
  3864. if test -z "$ac_lib"; then
  3865. ac_res="none required"
  3866. else
  3867. ac_res=-l$ac_lib
  3868. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3869. fi
  3870. if ac_fn_c_try_link "$LINENO"; then :
  3871. ac_cv_search_tgetent=$ac_res
  3872. fi
  3873. rm -f core conftest.err conftest.$ac_objext \
  3874. conftest$ac_exeext
  3875. if ${ac_cv_search_tgetent+:} false; then :
  3876. break
  3877. fi
  3878. done
  3879. if ${ac_cv_search_tgetent+:} false; then :
  3880. else
  3881. ac_cv_search_tgetent=no
  3882. fi
  3883. rm conftest.$ac_ext
  3884. LIBS=$ac_func_search_save_LIBS
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
  3887. $as_echo "$ac_cv_search_tgetent" >&6; }
  3888. ac_res=$ac_cv_search_tgetent
  3889. if test "$ac_res" != no; then :
  3890. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3891. fi
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  3893. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  3894. if ${ac_cv_search_gethostbyname+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. ac_func_search_save_LIBS=$LIBS
  3898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3899. /* end confdefs.h. */
  3900. /* Override any GCC internal prototype to avoid an error.
  3901. Use char because int might match the return type of a GCC
  3902. builtin and then its argument prototype would still apply. */
  3903. #ifdef __cplusplus
  3904. extern "C"
  3905. #endif
  3906. char gethostbyname ();
  3907. int
  3908. main ()
  3909. {
  3910. return gethostbyname ();
  3911. ;
  3912. return 0;
  3913. }
  3914. _ACEOF
  3915. for ac_lib in '' nsl; do
  3916. if test -z "$ac_lib"; then
  3917. ac_res="none required"
  3918. else
  3919. ac_res=-l$ac_lib
  3920. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3921. fi
  3922. if ac_fn_c_try_link "$LINENO"; then :
  3923. ac_cv_search_gethostbyname=$ac_res
  3924. fi
  3925. rm -f core conftest.err conftest.$ac_objext \
  3926. conftest$ac_exeext
  3927. if ${ac_cv_search_gethostbyname+:} false; then :
  3928. break
  3929. fi
  3930. done
  3931. if ${ac_cv_search_gethostbyname+:} false; then :
  3932. else
  3933. ac_cv_search_gethostbyname=no
  3934. fi
  3935. rm conftest.$ac_ext
  3936. LIBS=$ac_func_search_save_LIBS
  3937. fi
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  3939. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  3940. ac_res=$ac_cv_search_gethostbyname
  3941. if test "$ac_res" != no; then :
  3942. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
  3945. $as_echo_n "checking for library containing connect... " >&6; }
  3946. if ${ac_cv_search_connect+:} false; then :
  3947. $as_echo_n "(cached) " >&6
  3948. else
  3949. ac_func_search_save_LIBS=$LIBS
  3950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3951. /* end confdefs.h. */
  3952. /* Override any GCC internal prototype to avoid an error.
  3953. Use char because int might match the return type of a GCC
  3954. builtin and then its argument prototype would still apply. */
  3955. #ifdef __cplusplus
  3956. extern "C"
  3957. #endif
  3958. char connect ();
  3959. int
  3960. main ()
  3961. {
  3962. return connect ();
  3963. ;
  3964. return 0;
  3965. }
  3966. _ACEOF
  3967. for ac_lib in '' socket; do
  3968. if test -z "$ac_lib"; then
  3969. ac_res="none required"
  3970. else
  3971. ac_res=-l$ac_lib
  3972. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3973. fi
  3974. if ac_fn_c_try_link "$LINENO"; then :
  3975. ac_cv_search_connect=$ac_res
  3976. fi
  3977. rm -f core conftest.err conftest.$ac_objext \
  3978. conftest$ac_exeext
  3979. if ${ac_cv_search_connect+:} false; then :
  3980. break
  3981. fi
  3982. done
  3983. if ${ac_cv_search_connect+:} false; then :
  3984. else
  3985. ac_cv_search_connect=no
  3986. fi
  3987. rm conftest.$ac_ext
  3988. LIBS=$ac_func_search_save_LIBS
  3989. fi
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
  3991. $as_echo "$ac_cv_search_connect" >&6; }
  3992. ac_res=$ac_cv_search_connect
  3993. if test "$ac_res" != no; then :
  3994. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing catgets" >&5
  3997. $as_echo_n "checking for library containing catgets... " >&6; }
  3998. if ${ac_cv_search_catgets+:} false; then :
  3999. $as_echo_n "(cached) " >&6
  4000. else
  4001. ac_func_search_save_LIBS=$LIBS
  4002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4003. /* end confdefs.h. */
  4004. /* Override any GCC internal prototype to avoid an error.
  4005. Use char because int might match the return type of a GCC
  4006. builtin and then its argument prototype would still apply. */
  4007. #ifdef __cplusplus
  4008. extern "C"
  4009. #endif
  4010. char catgets ();
  4011. int
  4012. main ()
  4013. {
  4014. return catgets ();
  4015. ;
  4016. return 0;
  4017. }
  4018. _ACEOF
  4019. for ac_lib in '' catgets; do
  4020. if test -z "$ac_lib"; then
  4021. ac_res="none required"
  4022. else
  4023. ac_res=-l$ac_lib
  4024. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4025. fi
  4026. if ac_fn_c_try_link "$LINENO"; then :
  4027. ac_cv_search_catgets=$ac_res
  4028. fi
  4029. rm -f core conftest.err conftest.$ac_objext \
  4030. conftest$ac_exeext
  4031. if ${ac_cv_search_catgets+:} false; then :
  4032. break
  4033. fi
  4034. done
  4035. if ${ac_cv_search_catgets+:} false; then :
  4036. else
  4037. ac_cv_search_catgets=no
  4038. fi
  4039. rm conftest.$ac_ext
  4040. LIBS=$ac_func_search_save_LIBS
  4041. fi
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_catgets" >&5
  4043. $as_echo "$ac_cv_search_catgets" >&6; }
  4044. ac_res=$ac_cv_search_catgets
  4045. if test "$ac_res" != no; then :
  4046. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4047. fi
  4048. if test "X$prefix" = "XNONE"; then
  4049. acl_final_prefix="$ac_default_prefix"
  4050. else
  4051. acl_final_prefix="$prefix"
  4052. fi
  4053. if test "X$exec_prefix" = "XNONE"; then
  4054. acl_final_exec_prefix='${prefix}'
  4055. else
  4056. acl_final_exec_prefix="$exec_prefix"
  4057. fi
  4058. acl_save_prefix="$prefix"
  4059. prefix="$acl_final_prefix"
  4060. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  4061. prefix="$acl_save_prefix"
  4062. # Check whether --with-gnu-ld was given.
  4063. if test "${with_gnu_ld+set}" = set; then :
  4064. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4065. else
  4066. with_gnu_ld=no
  4067. fi
  4068. # Prepare PATH_SEPARATOR.
  4069. # The user is always right.
  4070. if test "${PATH_SEPARATOR+set}" != set; then
  4071. echo "#! /bin/sh" >conf$$.sh
  4072. echo "exit 0" >>conf$$.sh
  4073. chmod +x conf$$.sh
  4074. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4075. PATH_SEPARATOR=';'
  4076. else
  4077. PATH_SEPARATOR=:
  4078. fi
  4079. rm -f conf$$.sh
  4080. fi
  4081. ac_prog=ld
  4082. if test "$GCC" = yes; then
  4083. # Check if gcc -print-prog-name=ld gives a path.
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  4085. $as_echo_n "checking for ld used by GCC... " >&6; }
  4086. case $host in
  4087. *-*-mingw*)
  4088. # gcc leaves a trailing carriage return which upsets mingw
  4089. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4090. *)
  4091. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4092. esac
  4093. case $ac_prog in
  4094. # Accept absolute paths.
  4095. [\\/]* | [A-Za-z]:[\\/]*)
  4096. re_direlt='/[^/][^/]*/\.\./'
  4097. # Canonicalize the path of ld
  4098. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4099. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4100. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4101. done
  4102. test -z "$LD" && LD="$ac_prog"
  4103. ;;
  4104. "")
  4105. # If it fails, then pretend we aren't using GCC.
  4106. ac_prog=ld
  4107. ;;
  4108. *)
  4109. # If it is relative, then search for the first ld in PATH.
  4110. with_gnu_ld=unknown
  4111. ;;
  4112. esac
  4113. elif test "$with_gnu_ld" = yes; then
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4115. $as_echo_n "checking for GNU ld... " >&6; }
  4116. else
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4118. $as_echo_n "checking for non-GNU ld... " >&6; }
  4119. fi
  4120. if ${acl_cv_path_LD+:} false; then :
  4121. $as_echo_n "(cached) " >&6
  4122. else
  4123. if test -z "$LD"; then
  4124. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  4125. for ac_dir in $PATH; do
  4126. test -z "$ac_dir" && ac_dir=.
  4127. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4128. acl_cv_path_LD="$ac_dir/$ac_prog"
  4129. # Check to see if the program is GNU ld. I'd rather use --version,
  4130. # but apparently some GNU ld's only accept -v.
  4131. # Break only if it was the GNU/non-GNU ld that we prefer.
  4132. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  4133. *GNU* | *'with BFD'*)
  4134. test "$with_gnu_ld" != no && break ;;
  4135. *)
  4136. test "$with_gnu_ld" != yes && break ;;
  4137. esac
  4138. fi
  4139. done
  4140. IFS="$ac_save_ifs"
  4141. else
  4142. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  4143. fi
  4144. fi
  4145. LD="$acl_cv_path_LD"
  4146. if test -n "$LD"; then
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4148. $as_echo "$LD" >&6; }
  4149. else
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4151. $as_echo "no" >&6; }
  4152. fi
  4153. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4155. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4156. if ${acl_cv_prog_gnu_ld+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4160. case `$LD -v 2>&1 </dev/null` in
  4161. *GNU* | *'with BFD'*)
  4162. acl_cv_prog_gnu_ld=yes ;;
  4163. *)
  4164. acl_cv_prog_gnu_ld=no ;;
  4165. esac
  4166. fi
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  4168. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  4169. with_gnu_ld=$acl_cv_prog_gnu_ld
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  4171. $as_echo_n "checking for shared library run path origin... " >&6; }
  4172. if ${acl_cv_rpath+:} false; then :
  4173. $as_echo_n "(cached) " >&6
  4174. else
  4175. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  4176. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  4177. . ./conftest.sh
  4178. rm -f ./conftest.sh
  4179. acl_cv_rpath=done
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  4182. $as_echo "$acl_cv_rpath" >&6; }
  4183. wl="$acl_cv_wl"
  4184. acl_libext="$acl_cv_libext"
  4185. acl_shlibext="$acl_cv_shlibext"
  4186. acl_libname_spec="$acl_cv_libname_spec"
  4187. acl_library_names_spec="$acl_cv_library_names_spec"
  4188. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  4189. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  4190. acl_hardcode_direct="$acl_cv_hardcode_direct"
  4191. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  4192. # Check whether --enable-rpath was given.
  4193. if test "${enable_rpath+set}" = set; then :
  4194. enableval=$enable_rpath; :
  4195. else
  4196. enable_rpath=yes
  4197. fi
  4198. acl_libdirstem=lib
  4199. acl_libdirstem2=
  4200. case "$host_os" in
  4201. solaris*)
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  4203. $as_echo_n "checking for 64-bit host... " >&6; }
  4204. if ${gl_cv_solaris_64bit+:} false; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4208. /* end confdefs.h. */
  4209. #ifdef _LP64
  4210. sixtyfour bits
  4211. #endif
  4212. _ACEOF
  4213. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4214. $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  4215. gl_cv_solaris_64bit=yes
  4216. else
  4217. gl_cv_solaris_64bit=no
  4218. fi
  4219. rm -f conftest*
  4220. fi
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  4222. $as_echo "$gl_cv_solaris_64bit" >&6; }
  4223. if test $gl_cv_solaris_64bit = yes; then
  4224. acl_libdirstem=lib/64
  4225. case "$host_cpu" in
  4226. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  4227. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  4228. esac
  4229. fi
  4230. ;;
  4231. *)
  4232. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  4233. if test -n "$searchpath"; then
  4234. acl_save_IFS="${IFS= }"; IFS=":"
  4235. for searchdir in $searchpath; do
  4236. if test -d "$searchdir"; then
  4237. case "$searchdir" in
  4238. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  4239. */../ | */.. )
  4240. # Better ignore directories of this form. They are misleading.
  4241. ;;
  4242. *) searchdir=`cd "$searchdir" && pwd`
  4243. case "$searchdir" in
  4244. */lib64 ) acl_libdirstem=lib64 ;;
  4245. esac ;;
  4246. esac
  4247. fi
  4248. done
  4249. IFS="$acl_save_IFS"
  4250. fi
  4251. ;;
  4252. esac
  4253. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  4254. use_additional=yes
  4255. acl_save_prefix="$prefix"
  4256. prefix="$acl_final_prefix"
  4257. acl_save_exec_prefix="$exec_prefix"
  4258. exec_prefix="$acl_final_exec_prefix"
  4259. eval additional_includedir=\"$includedir\"
  4260. eval additional_libdir=\"$libdir\"
  4261. exec_prefix="$acl_save_exec_prefix"
  4262. prefix="$acl_save_prefix"
  4263. # Check whether --with-libiconv-prefix was given.
  4264. if test "${with_libiconv_prefix+set}" = set; then :
  4265. withval=$with_libiconv_prefix;
  4266. if test "X$withval" = "Xno"; then
  4267. use_additional=no
  4268. else
  4269. if test "X$withval" = "X"; then
  4270. acl_save_prefix="$prefix"
  4271. prefix="$acl_final_prefix"
  4272. acl_save_exec_prefix="$exec_prefix"
  4273. exec_prefix="$acl_final_exec_prefix"
  4274. eval additional_includedir=\"$includedir\"
  4275. eval additional_libdir=\"$libdir\"
  4276. exec_prefix="$acl_save_exec_prefix"
  4277. prefix="$acl_save_prefix"
  4278. else
  4279. additional_includedir="$withval/include"
  4280. additional_libdir="$withval/$acl_libdirstem"
  4281. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  4282. && ! test -d "$withval/$acl_libdirstem"; then
  4283. additional_libdir="$withval/$acl_libdirstem2"
  4284. fi
  4285. fi
  4286. fi
  4287. fi
  4288. LIBICONV=
  4289. LTLIBICONV=
  4290. INCICONV=
  4291. LIBICONV_PREFIX=
  4292. HAVE_LIBICONV=
  4293. rpathdirs=
  4294. ltrpathdirs=
  4295. names_already_handled=
  4296. names_next_round='iconv '
  4297. while test -n "$names_next_round"; do
  4298. names_this_round="$names_next_round"
  4299. names_next_round=
  4300. for name in $names_this_round; do
  4301. already_handled=
  4302. for n in $names_already_handled; do
  4303. if test "$n" = "$name"; then
  4304. already_handled=yes
  4305. break
  4306. fi
  4307. done
  4308. if test -z "$already_handled"; then
  4309. names_already_handled="$names_already_handled $name"
  4310. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  4311. eval value=\"\$HAVE_LIB$uppername\"
  4312. if test -n "$value"; then
  4313. if test "$value" = yes; then
  4314. eval value=\"\$LIB$uppername\"
  4315. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  4316. eval value=\"\$LTLIB$uppername\"
  4317. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  4318. else
  4319. :
  4320. fi
  4321. else
  4322. found_dir=
  4323. found_la=
  4324. found_so=
  4325. found_a=
  4326. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  4327. if test -n "$acl_shlibext"; then
  4328. shrext=".$acl_shlibext" # typically: shrext=.so
  4329. else
  4330. shrext=
  4331. fi
  4332. if test $use_additional = yes; then
  4333. dir="$additional_libdir"
  4334. if test -n "$acl_shlibext"; then
  4335. if test -f "$dir/$libname$shrext"; then
  4336. found_dir="$dir"
  4337. found_so="$dir/$libname$shrext"
  4338. else
  4339. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  4340. ver=`(cd "$dir" && \
  4341. for f in "$libname$shrext".*; do echo "$f"; done \
  4342. | sed -e "s,^$libname$shrext\\\\.,," \
  4343. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  4344. | sed 1q ) 2>/dev/null`
  4345. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  4346. found_dir="$dir"
  4347. found_so="$dir/$libname$shrext.$ver"
  4348. fi
  4349. else
  4350. eval library_names=\"$acl_library_names_spec\"
  4351. for f in $library_names; do
  4352. if test -f "$dir/$f"; then
  4353. found_dir="$dir"
  4354. found_so="$dir/$f"
  4355. break
  4356. fi
  4357. done
  4358. fi
  4359. fi
  4360. fi
  4361. if test "X$found_dir" = "X"; then
  4362. if test -f "$dir/$libname.$acl_libext"; then
  4363. found_dir="$dir"
  4364. found_a="$dir/$libname.$acl_libext"
  4365. fi
  4366. fi
  4367. if test "X$found_dir" != "X"; then
  4368. if test -f "$dir/$libname.la"; then
  4369. found_la="$dir/$libname.la"
  4370. fi
  4371. fi
  4372. fi
  4373. if test "X$found_dir" = "X"; then
  4374. for x in $LDFLAGS $LTLIBICONV; do
  4375. acl_save_prefix="$prefix"
  4376. prefix="$acl_final_prefix"
  4377. acl_save_exec_prefix="$exec_prefix"
  4378. exec_prefix="$acl_final_exec_prefix"
  4379. eval x=\"$x\"
  4380. exec_prefix="$acl_save_exec_prefix"
  4381. prefix="$acl_save_prefix"
  4382. case "$x" in
  4383. -L*)
  4384. dir=`echo "X$x" | sed -e 's/^X-L//'`
  4385. if test -n "$acl_shlibext"; then
  4386. if test -f "$dir/$libname$shrext"; then
  4387. found_dir="$dir"
  4388. found_so="$dir/$libname$shrext"
  4389. else
  4390. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  4391. ver=`(cd "$dir" && \
  4392. for f in "$libname$shrext".*; do echo "$f"; done \
  4393. | sed -e "s,^$libname$shrext\\\\.,," \
  4394. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  4395. | sed 1q ) 2>/dev/null`
  4396. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  4397. found_dir="$dir"
  4398. found_so="$dir/$libname$shrext.$ver"
  4399. fi
  4400. else
  4401. eval library_names=\"$acl_library_names_spec\"
  4402. for f in $library_names; do
  4403. if test -f "$dir/$f"; then
  4404. found_dir="$dir"
  4405. found_so="$dir/$f"
  4406. break
  4407. fi
  4408. done
  4409. fi
  4410. fi
  4411. fi
  4412. if test "X$found_dir" = "X"; then
  4413. if test -f "$dir/$libname.$acl_libext"; then
  4414. found_dir="$dir"
  4415. found_a="$dir/$libname.$acl_libext"
  4416. fi
  4417. fi
  4418. if test "X$found_dir" != "X"; then
  4419. if test -f "$dir/$libname.la"; then
  4420. found_la="$dir/$libname.la"
  4421. fi
  4422. fi
  4423. ;;
  4424. esac
  4425. if test "X$found_dir" != "X"; then
  4426. break
  4427. fi
  4428. done
  4429. fi
  4430. if test "X$found_dir" != "X"; then
  4431. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  4432. if test "X$found_so" != "X"; then
  4433. if test "$enable_rpath" = no \
  4434. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  4435. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  4436. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4437. else
  4438. haveit=
  4439. for x in $ltrpathdirs; do
  4440. if test "X$x" = "X$found_dir"; then
  4441. haveit=yes
  4442. break
  4443. fi
  4444. done
  4445. if test -z "$haveit"; then
  4446. ltrpathdirs="$ltrpathdirs $found_dir"
  4447. fi
  4448. if test "$acl_hardcode_direct" = yes; then
  4449. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4450. else
  4451. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  4452. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4453. haveit=
  4454. for x in $rpathdirs; do
  4455. if test "X$x" = "X$found_dir"; then
  4456. haveit=yes
  4457. break
  4458. fi
  4459. done
  4460. if test -z "$haveit"; then
  4461. rpathdirs="$rpathdirs $found_dir"
  4462. fi
  4463. else
  4464. haveit=
  4465. for x in $LDFLAGS $LIBICONV; do
  4466. acl_save_prefix="$prefix"
  4467. prefix="$acl_final_prefix"
  4468. acl_save_exec_prefix="$exec_prefix"
  4469. exec_prefix="$acl_final_exec_prefix"
  4470. eval x=\"$x\"
  4471. exec_prefix="$acl_save_exec_prefix"
  4472. prefix="$acl_save_prefix"
  4473. if test "X$x" = "X-L$found_dir"; then
  4474. haveit=yes
  4475. break
  4476. fi
  4477. done
  4478. if test -z "$haveit"; then
  4479. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  4480. fi
  4481. if test "$acl_hardcode_minus_L" != no; then
  4482. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  4483. else
  4484. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  4485. fi
  4486. fi
  4487. fi
  4488. fi
  4489. else
  4490. if test "X$found_a" != "X"; then
  4491. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  4492. else
  4493. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  4494. fi
  4495. fi
  4496. additional_includedir=
  4497. case "$found_dir" in
  4498. */$acl_libdirstem | */$acl_libdirstem/)
  4499. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  4500. if test "$name" = 'iconv'; then
  4501. LIBICONV_PREFIX="$basedir"
  4502. fi
  4503. additional_includedir="$basedir/include"
  4504. ;;
  4505. */$acl_libdirstem2 | */$acl_libdirstem2/)
  4506. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  4507. if test "$name" = 'iconv'; then
  4508. LIBICONV_PREFIX="$basedir"
  4509. fi
  4510. additional_includedir="$basedir/include"
  4511. ;;
  4512. esac
  4513. if test "X$additional_includedir" != "X"; then
  4514. if test "X$additional_includedir" != "X/usr/include"; then
  4515. haveit=
  4516. if test "X$additional_includedir" = "X/usr/local/include"; then
  4517. if test -n "$GCC"; then
  4518. case $host_os in
  4519. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  4520. esac
  4521. fi
  4522. fi
  4523. if test -z "$haveit"; then
  4524. for x in $CPPFLAGS $INCICONV; do
  4525. acl_save_prefix="$prefix"
  4526. prefix="$acl_final_prefix"
  4527. acl_save_exec_prefix="$exec_prefix"
  4528. exec_prefix="$acl_final_exec_prefix"
  4529. eval x=\"$x\"
  4530. exec_prefix="$acl_save_exec_prefix"
  4531. prefix="$acl_save_prefix"
  4532. if test "X$x" = "X-I$additional_includedir"; then
  4533. haveit=yes
  4534. break
  4535. fi
  4536. done
  4537. if test -z "$haveit"; then
  4538. if test -d "$additional_includedir"; then
  4539. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  4540. fi
  4541. fi
  4542. fi
  4543. fi
  4544. fi
  4545. if test -n "$found_la"; then
  4546. save_libdir="$libdir"
  4547. case "$found_la" in
  4548. */* | *\\*) . "$found_la" ;;
  4549. *) . "./$found_la" ;;
  4550. esac
  4551. libdir="$save_libdir"
  4552. for dep in $dependency_libs; do
  4553. case "$dep" in
  4554. -L*)
  4555. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  4556. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  4557. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  4558. haveit=
  4559. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  4560. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  4561. if test -n "$GCC"; then
  4562. case $host_os in
  4563. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  4564. esac
  4565. fi
  4566. fi
  4567. if test -z "$haveit"; then
  4568. haveit=
  4569. for x in $LDFLAGS $LIBICONV; do
  4570. acl_save_prefix="$prefix"
  4571. prefix="$acl_final_prefix"
  4572. acl_save_exec_prefix="$exec_prefix"
  4573. exec_prefix="$acl_final_exec_prefix"
  4574. eval x=\"$x\"
  4575. exec_prefix="$acl_save_exec_prefix"
  4576. prefix="$acl_save_prefix"
  4577. if test "X$x" = "X-L$additional_libdir"; then
  4578. haveit=yes
  4579. break
  4580. fi
  4581. done
  4582. if test -z "$haveit"; then
  4583. if test -d "$additional_libdir"; then
  4584. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  4585. fi
  4586. fi
  4587. haveit=
  4588. for x in $LDFLAGS $LTLIBICONV; do
  4589. acl_save_prefix="$prefix"
  4590. prefix="$acl_final_prefix"
  4591. acl_save_exec_prefix="$exec_prefix"
  4592. exec_prefix="$acl_final_exec_prefix"
  4593. eval x=\"$x\"
  4594. exec_prefix="$acl_save_exec_prefix"
  4595. prefix="$acl_save_prefix"
  4596. if test "X$x" = "X-L$additional_libdir"; then
  4597. haveit=yes
  4598. break
  4599. fi
  4600. done
  4601. if test -z "$haveit"; then
  4602. if test -d "$additional_libdir"; then
  4603. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  4604. fi
  4605. fi
  4606. fi
  4607. fi
  4608. ;;
  4609. -R*)
  4610. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  4611. if test "$enable_rpath" != no; then
  4612. haveit=
  4613. for x in $rpathdirs; do
  4614. if test "X$x" = "X$dir"; then
  4615. haveit=yes
  4616. break
  4617. fi
  4618. done
  4619. if test -z "$haveit"; then
  4620. rpathdirs="$rpathdirs $dir"
  4621. fi
  4622. haveit=
  4623. for x in $ltrpathdirs; do
  4624. if test "X$x" = "X$dir"; then
  4625. haveit=yes
  4626. break
  4627. fi
  4628. done
  4629. if test -z "$haveit"; then
  4630. ltrpathdirs="$ltrpathdirs $dir"
  4631. fi
  4632. fi
  4633. ;;
  4634. -l*)
  4635. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  4636. ;;
  4637. *.la)
  4638. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  4639. ;;
  4640. *)
  4641. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  4642. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  4643. ;;
  4644. esac
  4645. done
  4646. fi
  4647. else
  4648. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  4649. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  4650. fi
  4651. fi
  4652. fi
  4653. done
  4654. done
  4655. if test "X$rpathdirs" != "X"; then
  4656. if test -n "$acl_hardcode_libdir_separator"; then
  4657. alldirs=
  4658. for found_dir in $rpathdirs; do
  4659. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  4660. done
  4661. acl_save_libdir="$libdir"
  4662. libdir="$alldirs"
  4663. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  4664. libdir="$acl_save_libdir"
  4665. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  4666. else
  4667. for found_dir in $rpathdirs; do
  4668. acl_save_libdir="$libdir"
  4669. libdir="$found_dir"
  4670. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  4671. libdir="$acl_save_libdir"
  4672. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  4673. done
  4674. fi
  4675. fi
  4676. if test "X$ltrpathdirs" != "X"; then
  4677. for found_dir in $ltrpathdirs; do
  4678. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  4679. done
  4680. fi
  4681. am_save_CPPFLAGS="$CPPFLAGS"
  4682. for element in $INCICONV; do
  4683. haveit=
  4684. for x in $CPPFLAGS; do
  4685. acl_save_prefix="$prefix"
  4686. prefix="$acl_final_prefix"
  4687. acl_save_exec_prefix="$exec_prefix"
  4688. exec_prefix="$acl_final_exec_prefix"
  4689. eval x=\"$x\"
  4690. exec_prefix="$acl_save_exec_prefix"
  4691. prefix="$acl_save_prefix"
  4692. if test "X$x" = "X$element"; then
  4693. haveit=yes
  4694. break
  4695. fi
  4696. done
  4697. if test -z "$haveit"; then
  4698. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  4699. fi
  4700. done
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  4702. $as_echo_n "checking for iconv... " >&6; }
  4703. if ${am_cv_func_iconv+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. am_cv_func_iconv="no, consider installing GNU libiconv"
  4707. am_cv_lib_iconv=no
  4708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4709. /* end confdefs.h. */
  4710. #include <stdlib.h>
  4711. #include <iconv.h>
  4712. int
  4713. main ()
  4714. {
  4715. iconv_t cd = iconv_open("","");
  4716. iconv(cd,NULL,NULL,NULL,NULL);
  4717. iconv_close(cd);
  4718. ;
  4719. return 0;
  4720. }
  4721. _ACEOF
  4722. if ac_fn_c_try_link "$LINENO"; then :
  4723. am_cv_func_iconv=yes
  4724. fi
  4725. rm -f core conftest.err conftest.$ac_objext \
  4726. conftest$ac_exeext conftest.$ac_ext
  4727. if test "$am_cv_func_iconv" != yes; then
  4728. am_save_LIBS="$LIBS"
  4729. LIBS="$LIBS $LIBICONV"
  4730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4731. /* end confdefs.h. */
  4732. #include <stdlib.h>
  4733. #include <iconv.h>
  4734. int
  4735. main ()
  4736. {
  4737. iconv_t cd = iconv_open("","");
  4738. iconv(cd,NULL,NULL,NULL,NULL);
  4739. iconv_close(cd);
  4740. ;
  4741. return 0;
  4742. }
  4743. _ACEOF
  4744. if ac_fn_c_try_link "$LINENO"; then :
  4745. am_cv_lib_iconv=yes
  4746. am_cv_func_iconv=yes
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext \
  4749. conftest$ac_exeext conftest.$ac_ext
  4750. LIBS="$am_save_LIBS"
  4751. fi
  4752. fi
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  4754. $as_echo "$am_cv_func_iconv" >&6; }
  4755. if test "$am_cv_func_iconv" = yes; then
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  4757. $as_echo_n "checking for working iconv... " >&6; }
  4758. if ${am_cv_func_iconv_works+:} false; then :
  4759. $as_echo_n "(cached) " >&6
  4760. else
  4761. am_save_LIBS="$LIBS"
  4762. if test $am_cv_lib_iconv = yes; then
  4763. LIBS="$LIBS $LIBICONV"
  4764. fi
  4765. if test "$cross_compiling" = yes; then :
  4766. case "$host_os" in
  4767. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  4768. *) am_cv_func_iconv_works="guessing yes" ;;
  4769. esac
  4770. else
  4771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4772. /* end confdefs.h. */
  4773. #include <iconv.h>
  4774. #include <string.h>
  4775. int main ()
  4776. {
  4777. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  4778. returns. */
  4779. {
  4780. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  4781. if (cd_utf8_to_88591 != (iconv_t)(-1))
  4782. {
  4783. static const char input[] = "\342\202\254"; /* EURO SIGN */
  4784. char buf[10];
  4785. const char *inptr = input;
  4786. size_t inbytesleft = strlen (input);
  4787. char *outptr = buf;
  4788. size_t outbytesleft = sizeof (buf);
  4789. size_t res = iconv (cd_utf8_to_88591,
  4790. (char **) &inptr, &inbytesleft,
  4791. &outptr, &outbytesleft);
  4792. if (res == 0)
  4793. return 1;
  4794. }
  4795. }
  4796. /* Test against Solaris 10 bug: Failures are not distinguishable from
  4797. successful returns. */
  4798. {
  4799. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  4800. if (cd_ascii_to_88591 != (iconv_t)(-1))
  4801. {
  4802. static const char input[] = "\263";
  4803. char buf[10];
  4804. const char *inptr = input;
  4805. size_t inbytesleft = strlen (input);
  4806. char *outptr = buf;
  4807. size_t outbytesleft = sizeof (buf);
  4808. size_t res = iconv (cd_ascii_to_88591,
  4809. (char **) &inptr, &inbytesleft,
  4810. &outptr, &outbytesleft);
  4811. if (res == 0)
  4812. return 1;
  4813. }
  4814. }
  4815. #if 0 /* This bug could be worked around by the caller. */
  4816. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  4817. {
  4818. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  4819. if (cd_88591_to_utf8 != (iconv_t)(-1))
  4820. {
  4821. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  4822. char buf[50];
  4823. const char *inptr = input;
  4824. size_t inbytesleft = strlen (input);
  4825. char *outptr = buf;
  4826. size_t outbytesleft = sizeof (buf);
  4827. size_t res = iconv (cd_88591_to_utf8,
  4828. (char **) &inptr, &inbytesleft,
  4829. &outptr, &outbytesleft);
  4830. if ((int)res > 0)
  4831. return 1;
  4832. }
  4833. }
  4834. #endif
  4835. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  4836. provided. */
  4837. if (/* Try standardized names. */
  4838. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  4839. /* Try IRIX, OSF/1 names. */
  4840. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  4841. /* Try AIX names. */
  4842. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  4843. /* Try HP-UX names. */
  4844. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  4845. return 1;
  4846. return 0;
  4847. }
  4848. _ACEOF
  4849. if ac_fn_c_try_run "$LINENO"; then :
  4850. am_cv_func_iconv_works=yes
  4851. else
  4852. am_cv_func_iconv_works=no
  4853. fi
  4854. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4855. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4856. fi
  4857. LIBS="$am_save_LIBS"
  4858. fi
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  4860. $as_echo "$am_cv_func_iconv_works" >&6; }
  4861. case "$am_cv_func_iconv_works" in
  4862. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  4863. *) am_func_iconv=yes ;;
  4864. esac
  4865. else
  4866. am_func_iconv=no am_cv_lib_iconv=no
  4867. fi
  4868. if test "$am_func_iconv" = yes; then
  4869. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  4870. fi
  4871. if test "$am_cv_lib_iconv" = yes; then
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  4873. $as_echo_n "checking how to link with libiconv... " >&6; }
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  4875. $as_echo "$LIBICONV" >&6; }
  4876. else
  4877. CPPFLAGS="$am_save_CPPFLAGS"
  4878. LIBICONV=
  4879. LTLIBICONV=
  4880. fi
  4881. if test "$am_cv_func_iconv" = yes; then
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  4883. $as_echo_n "checking for iconv declaration... " >&6; }
  4884. if ${am_cv_proto_iconv+:} false; then :
  4885. $as_echo_n "(cached) " >&6
  4886. else
  4887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4888. /* end confdefs.h. */
  4889. #include <stdlib.h>
  4890. #include <iconv.h>
  4891. extern
  4892. #ifdef __cplusplus
  4893. "C"
  4894. #endif
  4895. #if defined(__STDC__) || defined(__cplusplus)
  4896. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  4897. #else
  4898. size_t iconv();
  4899. #endif
  4900. int
  4901. main ()
  4902. {
  4903. ;
  4904. return 0;
  4905. }
  4906. _ACEOF
  4907. if ac_fn_c_try_compile "$LINENO"; then :
  4908. am_cv_proto_iconv_arg1=""
  4909. else
  4910. am_cv_proto_iconv_arg1="const"
  4911. fi
  4912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4913. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  4914. fi
  4915. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  4917. $am_cv_proto_iconv" >&5
  4918. $as_echo "
  4919. $am_cv_proto_iconv" >&6; }
  4920. cat >>confdefs.h <<_ACEOF
  4921. #define ICONV_CONST $am_cv_proto_iconv_arg1
  4922. _ACEOF
  4923. fi
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4925. $as_echo_n "checking for ANSI C header files... " >&6; }
  4926. if ${ac_cv_header_stdc+:} false; then :
  4927. $as_echo_n "(cached) " >&6
  4928. else
  4929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4930. /* end confdefs.h. */
  4931. #include <stdlib.h>
  4932. #include <stdarg.h>
  4933. #include <string.h>
  4934. #include <float.h>
  4935. int
  4936. main ()
  4937. {
  4938. ;
  4939. return 0;
  4940. }
  4941. _ACEOF
  4942. if ac_fn_c_try_compile "$LINENO"; then :
  4943. ac_cv_header_stdc=yes
  4944. else
  4945. ac_cv_header_stdc=no
  4946. fi
  4947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4948. if test $ac_cv_header_stdc = yes; then
  4949. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4951. /* end confdefs.h. */
  4952. #include <string.h>
  4953. _ACEOF
  4954. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4955. $EGREP "memchr" >/dev/null 2>&1; then :
  4956. else
  4957. ac_cv_header_stdc=no
  4958. fi
  4959. rm -f conftest*
  4960. fi
  4961. if test $ac_cv_header_stdc = yes; then
  4962. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4964. /* end confdefs.h. */
  4965. #include <stdlib.h>
  4966. _ACEOF
  4967. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4968. $EGREP "free" >/dev/null 2>&1; then :
  4969. else
  4970. ac_cv_header_stdc=no
  4971. fi
  4972. rm -f conftest*
  4973. fi
  4974. if test $ac_cv_header_stdc = yes; then
  4975. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4976. if test "$cross_compiling" = yes; then :
  4977. :
  4978. else
  4979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4980. /* end confdefs.h. */
  4981. #include <ctype.h>
  4982. #include <stdlib.h>
  4983. #if ((' ' & 0x0FF) == 0x020)
  4984. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4985. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4986. #else
  4987. # define ISLOWER(c) \
  4988. (('a' <= (c) && (c) <= 'i') \
  4989. || ('j' <= (c) && (c) <= 'r') \
  4990. || ('s' <= (c) && (c) <= 'z'))
  4991. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4992. #endif
  4993. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4994. int
  4995. main ()
  4996. {
  4997. int i;
  4998. for (i = 0; i < 256; i++)
  4999. if (XOR (islower (i), ISLOWER (i))
  5000. || toupper (i) != TOUPPER (i))
  5001. return 2;
  5002. return 0;
  5003. }
  5004. _ACEOF
  5005. if ac_fn_c_try_run "$LINENO"; then :
  5006. else
  5007. ac_cv_header_stdc=no
  5008. fi
  5009. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5010. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5011. fi
  5012. fi
  5013. fi
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5015. $as_echo "$ac_cv_header_stdc" >&6; }
  5016. if test $ac_cv_header_stdc = yes; then
  5017. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5018. fi
  5019. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5020. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5021. inttypes.h stdint.h unistd.h
  5022. do :
  5023. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5024. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5025. "
  5026. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5027. cat >>confdefs.h <<_ACEOF
  5028. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5029. _ACEOF
  5030. fi
  5031. done
  5032. for ac_header in auth.h crypt.h features.h inttypes.h paths.h shadow.h stdint.h utmp.h utmpx.h
  5033. do :
  5034. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5035. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5036. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5037. cat >>confdefs.h <<_ACEOF
  5038. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5039. _ACEOF
  5040. fi
  5041. done
  5042. for ac_header in wchar.h
  5043. do :
  5044. ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  5045. if test "x$ac_cv_header_wchar_h" = xyes; then :
  5046. cat >>confdefs.h <<_ACEOF
  5047. #define HAVE_WCHAR_H 1
  5048. _ACEOF
  5049. # The cast to long int works around a bug in the HP C Compiler
  5050. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5051. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5052. # This bug is HP SR number 8606223364.
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
  5054. $as_echo_n "checking size of wchar_t... " >&6; }
  5055. if ${ac_cv_sizeof_wchar_t+:} false; then :
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <stdio.h>
  5059. #include <wchar.h>
  5060. "; then :
  5061. else
  5062. if test "$ac_cv_type_wchar_t" = yes; then
  5063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5065. as_fn_error 77 "cannot compute sizeof (wchar_t)
  5066. See \`config.log' for more details" "$LINENO" 5; }
  5067. else
  5068. ac_cv_sizeof_wchar_t=0
  5069. fi
  5070. fi
  5071. fi
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
  5073. $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
  5074. cat >>confdefs.h <<_ACEOF
  5075. #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
  5076. _ACEOF
  5077. for ac_header in wctype.h
  5078. do :
  5079. ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
  5080. if test "x$ac_cv_header_wctype_h" = xyes; then :
  5081. cat >>confdefs.h <<_ACEOF
  5082. #define HAVE_WCTYPE_H 1
  5083. _ACEOF
  5084. fi
  5085. done
  5086. fi
  5087. done
  5088. ac_header_dirent=no
  5089. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5090. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5092. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  5093. if eval \${$as_ac_Header+:} false; then :
  5094. $as_echo_n "(cached) " >&6
  5095. else
  5096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5097. /* end confdefs.h. */
  5098. #include <sys/types.h>
  5099. #include <$ac_hdr>
  5100. int
  5101. main ()
  5102. {
  5103. if ((DIR *) 0)
  5104. return 0;
  5105. ;
  5106. return 0;
  5107. }
  5108. _ACEOF
  5109. if ac_fn_c_try_compile "$LINENO"; then :
  5110. eval "$as_ac_Header=yes"
  5111. else
  5112. eval "$as_ac_Header=no"
  5113. fi
  5114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5115. fi
  5116. eval ac_res=\$$as_ac_Header
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5118. $as_echo "$ac_res" >&6; }
  5119. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5120. cat >>confdefs.h <<_ACEOF
  5121. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5122. _ACEOF
  5123. ac_header_dirent=$ac_hdr; break
  5124. fi
  5125. done
  5126. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5127. if test $ac_header_dirent = dirent.h; then
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5129. $as_echo_n "checking for library containing opendir... " >&6; }
  5130. if ${ac_cv_search_opendir+:} false; then :
  5131. $as_echo_n "(cached) " >&6
  5132. else
  5133. ac_func_search_save_LIBS=$LIBS
  5134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5135. /* end confdefs.h. */
  5136. /* Override any GCC internal prototype to avoid an error.
  5137. Use char because int might match the return type of a GCC
  5138. builtin and then its argument prototype would still apply. */
  5139. #ifdef __cplusplus
  5140. extern "C"
  5141. #endif
  5142. char opendir ();
  5143. int
  5144. main ()
  5145. {
  5146. return opendir ();
  5147. ;
  5148. return 0;
  5149. }
  5150. _ACEOF
  5151. for ac_lib in '' dir; do
  5152. if test -z "$ac_lib"; then
  5153. ac_res="none required"
  5154. else
  5155. ac_res=-l$ac_lib
  5156. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5157. fi
  5158. if ac_fn_c_try_link "$LINENO"; then :
  5159. ac_cv_search_opendir=$ac_res
  5160. fi
  5161. rm -f core conftest.err conftest.$ac_objext \
  5162. conftest$ac_exeext
  5163. if ${ac_cv_search_opendir+:} false; then :
  5164. break
  5165. fi
  5166. done
  5167. if ${ac_cv_search_opendir+:} false; then :
  5168. else
  5169. ac_cv_search_opendir=no
  5170. fi
  5171. rm conftest.$ac_ext
  5172. LIBS=$ac_func_search_save_LIBS
  5173. fi
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5175. $as_echo "$ac_cv_search_opendir" >&6; }
  5176. ac_res=$ac_cv_search_opendir
  5177. if test "$ac_res" != no; then :
  5178. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5179. fi
  5180. else
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5182. $as_echo_n "checking for library containing opendir... " >&6; }
  5183. if ${ac_cv_search_opendir+:} false; then :
  5184. $as_echo_n "(cached) " >&6
  5185. else
  5186. ac_func_search_save_LIBS=$LIBS
  5187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5188. /* end confdefs.h. */
  5189. /* Override any GCC internal prototype to avoid an error.
  5190. Use char because int might match the return type of a GCC
  5191. builtin and then its argument prototype would still apply. */
  5192. #ifdef __cplusplus
  5193. extern "C"
  5194. #endif
  5195. char opendir ();
  5196. int
  5197. main ()
  5198. {
  5199. return opendir ();
  5200. ;
  5201. return 0;
  5202. }
  5203. _ACEOF
  5204. for ac_lib in '' x; do
  5205. if test -z "$ac_lib"; then
  5206. ac_res="none required"
  5207. else
  5208. ac_res=-l$ac_lib
  5209. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5210. fi
  5211. if ac_fn_c_try_link "$LINENO"; then :
  5212. ac_cv_search_opendir=$ac_res
  5213. fi
  5214. rm -f core conftest.err conftest.$ac_objext \
  5215. conftest$ac_exeext
  5216. if ${ac_cv_search_opendir+:} false; then :
  5217. break
  5218. fi
  5219. done
  5220. if ${ac_cv_search_opendir+:} false; then :
  5221. else
  5222. ac_cv_search_opendir=no
  5223. fi
  5224. rm conftest.$ac_ext
  5225. LIBS=$ac_func_search_save_LIBS
  5226. fi
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5228. $as_echo "$ac_cv_search_opendir" >&6; }
  5229. ac_res=$ac_cv_search_opendir
  5230. if test "$ac_res" != no; then :
  5231. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5232. fi
  5233. fi
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5235. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  5236. if ${ac_cv_header_stat_broken+:} false; then :
  5237. $as_echo_n "(cached) " >&6
  5238. else
  5239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5240. /* end confdefs.h. */
  5241. #include <sys/types.h>
  5242. #include <sys/stat.h>
  5243. #if defined S_ISBLK && defined S_IFDIR
  5244. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5245. #endif
  5246. #if defined S_ISBLK && defined S_IFCHR
  5247. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5248. #endif
  5249. #if defined S_ISLNK && defined S_IFREG
  5250. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5251. #endif
  5252. #if defined S_ISSOCK && defined S_IFREG
  5253. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5254. #endif
  5255. _ACEOF
  5256. if ac_fn_c_try_compile "$LINENO"; then :
  5257. ac_cv_header_stat_broken=no
  5258. else
  5259. ac_cv_header_stat_broken=yes
  5260. fi
  5261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5262. fi
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5264. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5265. if test $ac_cv_header_stat_broken = yes; then
  5266. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  5267. fi
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5269. $as_echo_n "checking for ANSI C header files... " >&6; }
  5270. if ${ac_cv_header_stdc+:} false; then :
  5271. $as_echo_n "(cached) " >&6
  5272. else
  5273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5274. /* end confdefs.h. */
  5275. #include <stdlib.h>
  5276. #include <stdarg.h>
  5277. #include <string.h>
  5278. #include <float.h>
  5279. int
  5280. main ()
  5281. {
  5282. ;
  5283. return 0;
  5284. }
  5285. _ACEOF
  5286. if ac_fn_c_try_compile "$LINENO"; then :
  5287. ac_cv_header_stdc=yes
  5288. else
  5289. ac_cv_header_stdc=no
  5290. fi
  5291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5292. if test $ac_cv_header_stdc = yes; then
  5293. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5295. /* end confdefs.h. */
  5296. #include <string.h>
  5297. _ACEOF
  5298. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5299. $EGREP "memchr" >/dev/null 2>&1; then :
  5300. else
  5301. ac_cv_header_stdc=no
  5302. fi
  5303. rm -f conftest*
  5304. fi
  5305. if test $ac_cv_header_stdc = yes; then
  5306. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5308. /* end confdefs.h. */
  5309. #include <stdlib.h>
  5310. _ACEOF
  5311. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5312. $EGREP "free" >/dev/null 2>&1; then :
  5313. else
  5314. ac_cv_header_stdc=no
  5315. fi
  5316. rm -f conftest*
  5317. fi
  5318. if test $ac_cv_header_stdc = yes; then
  5319. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5320. if test "$cross_compiling" = yes; then :
  5321. :
  5322. else
  5323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5324. /* end confdefs.h. */
  5325. #include <ctype.h>
  5326. #include <stdlib.h>
  5327. #if ((' ' & 0x0FF) == 0x020)
  5328. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5329. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5330. #else
  5331. # define ISLOWER(c) \
  5332. (('a' <= (c) && (c) <= 'i') \
  5333. || ('j' <= (c) && (c) <= 'r') \
  5334. || ('s' <= (c) && (c) <= 'z'))
  5335. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5336. #endif
  5337. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5338. int
  5339. main ()
  5340. {
  5341. int i;
  5342. for (i = 0; i < 256; i++)
  5343. if (XOR (islower (i), ISLOWER (i))
  5344. || toupper (i) != TOUPPER (i))
  5345. return 2;
  5346. return 0;
  5347. }
  5348. _ACEOF
  5349. if ac_fn_c_try_run "$LINENO"; then :
  5350. else
  5351. ac_cv_header_stdc=no
  5352. fi
  5353. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5354. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5355. fi
  5356. fi
  5357. fi
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5359. $as_echo "$ac_cv_header_stdc" >&6; }
  5360. if test $ac_cv_header_stdc = yes; then
  5361. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5362. fi
  5363. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  5364. if test "x$ac_cv_type_long_long" = xyes; then :
  5365. cat >>confdefs.h <<_ACEOF
  5366. #define HAVE_LONG_LONG 1
  5367. _ACEOF
  5368. fi
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5370. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5371. if ${ac_cv_type_uid_t+:} false; then :
  5372. $as_echo_n "(cached) " >&6
  5373. else
  5374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5375. /* end confdefs.h. */
  5376. #include <sys/types.h>
  5377. _ACEOF
  5378. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5379. $EGREP "uid_t" >/dev/null 2>&1; then :
  5380. ac_cv_type_uid_t=yes
  5381. else
  5382. ac_cv_type_uid_t=no
  5383. fi
  5384. rm -f conftest*
  5385. fi
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5387. $as_echo "$ac_cv_type_uid_t" >&6; }
  5388. if test $ac_cv_type_uid_t = no; then
  5389. $as_echo "#define uid_t int" >>confdefs.h
  5390. $as_echo "#define gid_t int" >>confdefs.h
  5391. fi
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
  5393. $as_echo_n "checking type of array argument to getgroups... " >&6; }
  5394. if ${ac_cv_type_getgroups+:} false; then :
  5395. $as_echo_n "(cached) " >&6
  5396. else
  5397. if test "$cross_compiling" = yes; then :
  5398. ac_cv_type_getgroups=cross
  5399. else
  5400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5401. /* end confdefs.h. */
  5402. /* Thanks to Mike Rendell for this test. */
  5403. $ac_includes_default
  5404. #define NGID 256
  5405. #undef MAX
  5406. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  5407. int
  5408. main ()
  5409. {
  5410. gid_t gidset[NGID];
  5411. int i, n;
  5412. union { gid_t gval; long int lval; } val;
  5413. val.lval = -1;
  5414. for (i = 0; i < NGID; i++)
  5415. gidset[i] = val.gval;
  5416. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  5417. gidset);
  5418. /* Exit non-zero if getgroups seems to require an array of ints. This
  5419. happens when gid_t is short int but getgroups modifies an array
  5420. of ints. */
  5421. return n > 0 && gidset[n] != val.gval;
  5422. }
  5423. _ACEOF
  5424. if ac_fn_c_try_run "$LINENO"; then :
  5425. ac_cv_type_getgroups=gid_t
  5426. else
  5427. ac_cv_type_getgroups=int
  5428. fi
  5429. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5430. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5431. fi
  5432. if test $ac_cv_type_getgroups = cross; then
  5433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5434. /* end confdefs.h. */
  5435. #include <unistd.h>
  5436. _ACEOF
  5437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5438. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
  5439. ac_cv_type_getgroups=gid_t
  5440. else
  5441. ac_cv_type_getgroups=int
  5442. fi
  5443. rm -f conftest*
  5444. fi
  5445. fi
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
  5447. $as_echo "$ac_cv_type_getgroups" >&6; }
  5448. cat >>confdefs.h <<_ACEOF
  5449. #define GETGROUPS_T $ac_cv_type_getgroups
  5450. _ACEOF
  5451. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  5452. if test "x$ac_cv_type_mode_t" = xyes; then :
  5453. else
  5454. cat >>confdefs.h <<_ACEOF
  5455. #define mode_t int
  5456. _ACEOF
  5457. fi
  5458. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5459. if test "x$ac_cv_type_size_t" = xyes; then :
  5460. else
  5461. cat >>confdefs.h <<_ACEOF
  5462. #define size_t unsigned int
  5463. _ACEOF
  5464. fi
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  5466. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  5467. if ${ac_cv_type_uid_t+:} false; then :
  5468. $as_echo_n "(cached) " >&6
  5469. else
  5470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5471. /* end confdefs.h. */
  5472. #include <sys/types.h>
  5473. _ACEOF
  5474. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5475. $EGREP "uid_t" >/dev/null 2>&1; then :
  5476. ac_cv_type_uid_t=yes
  5477. else
  5478. ac_cv_type_uid_t=no
  5479. fi
  5480. rm -f conftest*
  5481. fi
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  5483. $as_echo "$ac_cv_type_uid_t" >&6; }
  5484. if test $ac_cv_type_uid_t = no; then
  5485. $as_echo "#define uid_t int" >>confdefs.h
  5486. $as_echo "#define gid_t int" >>confdefs.h
  5487. fi
  5488. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  5489. case $ac_cv_c_uint32_t in #(
  5490. no|yes) ;; #(
  5491. *)
  5492. $as_echo "#define _UINT32_T 1" >>confdefs.h
  5493. cat >>confdefs.h <<_ACEOF
  5494. #define uint32_t $ac_cv_c_uint32_t
  5495. _ACEOF
  5496. ;;
  5497. esac
  5498. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
  5499. #include <sys/types.h>
  5500. "
  5501. if test "x$ac_cv_type_ssize_t" = xyes; then :
  5502. else
  5503. $as_echo "#define ssize_t int" >>confdefs.h
  5504. fi
  5505. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  5506. #include <sys/types.h>
  5507. #include <sys/socket.h>
  5508. "
  5509. if test "x$ac_cv_type_socklen_t" = xyes; then :
  5510. else
  5511. $as_echo "#define socklen_t int" >>confdefs.h
  5512. fi
  5513. ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#ifdef HAVE_DIRENT_H
  5514. # include <dirent.h>
  5515. #else
  5516. # ifdef HAVE_NDIR_H
  5517. # include <ndir.h>
  5518. # else
  5519. # include <sys/dir.h>
  5520. # endif
  5521. # define dirent direct
  5522. #endif
  5523. "
  5524. if test "x$ac_cv_member_struct_dirent_d_ino" = xyes; then :
  5525. cat >>confdefs.h <<_ACEOF
  5526. #define HAVE_STRUCT_DIRENT_D_INO 1
  5527. _ACEOF
  5528. fi
  5529. ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <sys/types.h>
  5530. #ifdef HAVE_UTMPX_H
  5531. #include <utmpx.h>
  5532. #define utmp utmpx
  5533. #elif defined HAVE_UTMP_H
  5534. #include <utmp.h>
  5535. #endif
  5536. "
  5537. if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
  5538. cat >>confdefs.h <<_ACEOF
  5539. #define HAVE_STRUCT_UTMP_UT_HOST 1
  5540. _ACEOF
  5541. fi
  5542. ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <sys/types.h>
  5543. #ifdef HAVE_UTMPX_H
  5544. #include <utmpx.h>
  5545. #define utmp utmpx
  5546. #elif defined HAVE_UTMP_H
  5547. #include <utmp.h>
  5548. #endif
  5549. "
  5550. if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
  5551. cat >>confdefs.h <<_ACEOF
  5552. #define HAVE_STRUCT_UTMP_UT_USER 1
  5553. _ACEOF
  5554. fi
  5555. ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <sys/types.h>
  5556. #ifdef HAVE_UTMPX_H
  5557. #include <utmpx.h>
  5558. #define utmp utmpx
  5559. #elif defined HAVE_UTMP_H
  5560. #include <utmp.h>
  5561. #endif
  5562. "
  5563. if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
  5564. cat >>confdefs.h <<_ACEOF
  5565. #define HAVE_STRUCT_UTMP_UT_TV 1
  5566. _ACEOF
  5567. fi
  5568. ac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <sys/types.h>
  5569. #ifdef HAVE_UTMPX_H
  5570. #include <utmpx.h>
  5571. #define utmp utmpx
  5572. #elif defined HAVE_UTMP_H
  5573. #include <utmp.h>
  5574. #endif
  5575. "
  5576. if test "x$ac_cv_member_struct_utmp_ut_xtime" = xyes; then :
  5577. cat >>confdefs.h <<_ACEOF
  5578. #define HAVE_STRUCT_UTMP_UT_XTIME 1
  5579. _ACEOF
  5580. fi
  5581. ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <sys/types.h>
  5582. #ifdef HAVE_UTMPX_H
  5583. #include <utmpx.h>
  5584. #define utmp utmpx
  5585. #elif defined HAVE_UTMP_H
  5586. #include <utmp.h>
  5587. #endif
  5588. "
  5589. if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
  5590. cat >>confdefs.h <<_ACEOF
  5591. #define HAVE_STRUCT_UTMPX_UT_HOST 1
  5592. _ACEOF
  5593. fi
  5594. ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_user" "ac_cv_member_struct_utmpx_ut_user" "#include <sys/types.h>
  5595. #ifdef HAVE_UTMPX_H
  5596. #include <utmpx.h>
  5597. #define utmp utmpx
  5598. #elif defined HAVE_UTMP_H
  5599. #include <utmp.h>
  5600. #endif
  5601. "
  5602. if test "x$ac_cv_member_struct_utmpx_ut_user" = xyes; then :
  5603. cat >>confdefs.h <<_ACEOF
  5604. #define HAVE_STRUCT_UTMPX_UT_USER 1
  5605. _ACEOF
  5606. fi
  5607. ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "#include <sys/types.h>
  5608. #ifdef HAVE_UTMPX_H
  5609. #include <utmpx.h>
  5610. #define utmp utmpx
  5611. #elif defined HAVE_UTMP_H
  5612. #include <utmp.h>
  5613. #endif
  5614. "
  5615. if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
  5616. cat >>confdefs.h <<_ACEOF
  5617. #define HAVE_STRUCT_UTMPX_UT_TV 1
  5618. _ACEOF
  5619. fi
  5620. ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <sys/types.h>
  5621. #ifdef HAVE_UTMPX_H
  5622. #include <utmpx.h>
  5623. #define utmp utmpx
  5624. #elif defined HAVE_UTMP_H
  5625. #include <utmp.h>
  5626. #endif
  5627. "
  5628. if test "x$ac_cv_member_struct_utmpx_ut_xtime" = xyes; then :
  5629. cat >>confdefs.h <<_ACEOF
  5630. #define HAVE_STRUCT_UTMPX_UT_XTIME 1
  5631. _ACEOF
  5632. fi
  5633. ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
  5634. #include <sys/socket.h>
  5635. "
  5636. if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
  5637. cat >>confdefs.h <<_ACEOF
  5638. #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
  5639. _ACEOF
  5640. fi
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  5642. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  5643. if ${ac_cv_c_const+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5647. /* end confdefs.h. */
  5648. int
  5649. main ()
  5650. {
  5651. /* FIXME: Include the comments suggested by Paul. */
  5652. #ifndef __cplusplus
  5653. /* Ultrix mips cc rejects this. */
  5654. typedef int charset[2];
  5655. const charset cs;
  5656. /* SunOS 4.1.1 cc rejects this. */
  5657. char const *const *pcpcc;
  5658. char **ppc;
  5659. /* NEC SVR4.0.2 mips cc rejects this. */
  5660. struct point {int x, y;};
  5661. static struct point const zero = {0,0};
  5662. /* AIX XL C 1.02.0.0 rejects this.
  5663. It does not let you subtract one const X* pointer from another in
  5664. an arm of an if-expression whose if-part is not a constant
  5665. expression */
  5666. const char *g = "string";
  5667. pcpcc = &g + (g ? g-g : 0);
  5668. /* HPUX 7.0 cc rejects these. */
  5669. ++pcpcc;
  5670. ppc = (char**) pcpcc;
  5671. pcpcc = (char const *const *) ppc;
  5672. { /* SCO 3.2v4 cc rejects this. */
  5673. char *t;
  5674. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5675. *t++ = 0;
  5676. if (s) return 0;
  5677. }
  5678. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5679. int x[] = {25, 17};
  5680. const int *foo = &x[0];
  5681. ++foo;
  5682. }
  5683. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5684. typedef const int *iptr;
  5685. iptr p = 0;
  5686. ++p;
  5687. }
  5688. { /* AIX XL C 1.02.0.0 rejects this saying
  5689. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5690. struct s { int j; const int *ap[3]; };
  5691. struct s *b; b->j = 5;
  5692. }
  5693. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5694. const int foo = 10;
  5695. if (!foo) return 0;
  5696. }
  5697. return !cs[0] && !zero.x;
  5698. #endif
  5699. ;
  5700. return 0;
  5701. }
  5702. _ACEOF
  5703. if ac_fn_c_try_compile "$LINENO"; then :
  5704. ac_cv_c_const=yes
  5705. else
  5706. ac_cv_c_const=no
  5707. fi
  5708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5709. fi
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  5711. $as_echo "$ac_cv_c_const" >&6; }
  5712. if test $ac_cv_c_const = no; then
  5713. $as_echo "#define const /**/" >>confdefs.h
  5714. fi
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  5716. $as_echo_n "checking for working volatile... " >&6; }
  5717. if ${ac_cv_c_volatile+:} false; then :
  5718. $as_echo_n "(cached) " >&6
  5719. else
  5720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5721. /* end confdefs.h. */
  5722. int
  5723. main ()
  5724. {
  5725. volatile int x;
  5726. int * volatile y = (int *) 0;
  5727. return !x && !y;
  5728. ;
  5729. return 0;
  5730. }
  5731. _ACEOF
  5732. if ac_fn_c_try_compile "$LINENO"; then :
  5733. ac_cv_c_volatile=yes
  5734. else
  5735. ac_cv_c_volatile=no
  5736. fi
  5737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5738. fi
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  5740. $as_echo "$ac_cv_c_volatile" >&6; }
  5741. if test $ac_cv_c_volatile = no; then
  5742. $as_echo "#define volatile /**/" >>confdefs.h
  5743. fi
  5744. ac_fn_c_check_decl "$LINENO" "crypt" "ac_cv_have_decl_crypt" "#include \"config_p.h\"
  5745. $ac_includes_default
  5746. #ifdef HAVE_CRYPT_H
  5747. #include <crypt.h>
  5748. #endif
  5749. "
  5750. if test "x$ac_cv_have_decl_crypt" = xyes; then :
  5751. ac_have_decl=1
  5752. else
  5753. ac_have_decl=0
  5754. fi
  5755. cat >>confdefs.h <<_ACEOF
  5756. #define HAVE_DECL_CRYPT $ac_have_decl
  5757. _ACEOF
  5758. ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "#include \"config_p.h\"
  5759. $ac_includes_default
  5760. #ifdef HAVE_CRYPT_H
  5761. #include <crypt.h>
  5762. #endif
  5763. "
  5764. if test "x$ac_cv_have_decl_environ" = xyes; then :
  5765. ac_have_decl=1
  5766. else
  5767. ac_have_decl=0
  5768. fi
  5769. cat >>confdefs.h <<_ACEOF
  5770. #define HAVE_DECL_ENVIRON $ac_have_decl
  5771. _ACEOF
  5772. ac_fn_c_check_decl "$LINENO" "gethostname" "ac_cv_have_decl_gethostname" "#include \"config_p.h\"
  5773. $ac_includes_default
  5774. #ifdef HAVE_CRYPT_H
  5775. #include <crypt.h>
  5776. #endif
  5777. "
  5778. if test "x$ac_cv_have_decl_gethostname" = xyes; then :
  5779. ac_have_decl=1
  5780. else
  5781. ac_have_decl=0
  5782. fi
  5783. cat >>confdefs.h <<_ACEOF
  5784. #define HAVE_DECL_GETHOSTNAME $ac_have_decl
  5785. _ACEOF
  5786. ac_fn_c_check_decl "$LINENO" "getpgrp" "ac_cv_have_decl_getpgrp" "#include \"config_p.h\"
  5787. $ac_includes_default
  5788. #ifdef HAVE_CRYPT_H
  5789. #include <crypt.h>
  5790. #endif
  5791. "
  5792. if test "x$ac_cv_have_decl_getpgrp" = xyes; then :
  5793. ac_have_decl=1
  5794. else
  5795. ac_have_decl=0
  5796. fi
  5797. cat >>confdefs.h <<_ACEOF
  5798. #define HAVE_DECL_GETPGRP $ac_have_decl
  5799. _ACEOF
  5800. ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
  5801. if test "x$ac_cv_func_setlocale" = xyes; then :
  5802. have_setlocale=yes
  5803. else
  5804. have_setlocale=no
  5805. fi
  5806. ac_fn_c_check_func "$LINENO" "catgets" "ac_cv_func_catgets"
  5807. if test "x$ac_cv_func_catgets" = xyes; then :
  5808. have_catgets=yes
  5809. else
  5810. have_catgets=no
  5811. fi
  5812. for ac_func in dup2 getauthid getcwd gethostname getpwent getutent getutxent mallinfo memmove memset mkstemp nice nl_langinfo sbrk setpgid setpriority strerror strstr sysconf wcwidth
  5813. do :
  5814. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5815. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5816. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5817. cat >>confdefs.h <<_ACEOF
  5818. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5819. _ACEOF
  5820. fi
  5821. done
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
  5823. $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
  5824. if ${ac_cv_func_getpgrp_void+:} false; then :
  5825. $as_echo_n "(cached) " >&6
  5826. else
  5827. # Use it with a single arg.
  5828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5829. /* end confdefs.h. */
  5830. $ac_includes_default
  5831. int
  5832. main ()
  5833. {
  5834. getpgrp (0);
  5835. ;
  5836. return 0;
  5837. }
  5838. _ACEOF
  5839. if ac_fn_c_try_compile "$LINENO"; then :
  5840. ac_cv_func_getpgrp_void=no
  5841. else
  5842. ac_cv_func_getpgrp_void=yes
  5843. fi
  5844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5845. fi
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
  5847. $as_echo "$ac_cv_func_getpgrp_void" >&6; }
  5848. if test $ac_cv_func_getpgrp_void = yes; then
  5849. $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
  5850. fi
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  5852. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  5853. if ${ac_cv_func_mbrtowc+:} false; then :
  5854. $as_echo_n "(cached) " >&6
  5855. else
  5856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5857. /* end confdefs.h. */
  5858. #include <wchar.h>
  5859. int
  5860. main ()
  5861. {
  5862. wchar_t wc;
  5863. char const s[] = "";
  5864. size_t n = 1;
  5865. mbstate_t state;
  5866. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  5867. ;
  5868. return 0;
  5869. }
  5870. _ACEOF
  5871. if ac_fn_c_try_link "$LINENO"; then :
  5872. ac_cv_func_mbrtowc=yes
  5873. else
  5874. ac_cv_func_mbrtowc=no
  5875. fi
  5876. rm -f core conftest.err conftest.$ac_objext \
  5877. conftest$ac_exeext conftest.$ac_ext
  5878. fi
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  5880. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  5881. if test $ac_cv_func_mbrtowc = yes; then
  5882. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  5883. fi
  5884. if test "x${cross_compiling}" != xyes ; then
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  5886. $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  5887. if ${ac_cv_func_setpgrp_void+:} false; then :
  5888. $as_echo_n "(cached) " >&6
  5889. else
  5890. if test "$cross_compiling" = yes; then :
  5891. as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
  5892. else
  5893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5894. /* end confdefs.h. */
  5895. $ac_includes_default
  5896. int
  5897. main ()
  5898. {
  5899. /* If this system has a BSD-style setpgrp which takes arguments,
  5900. setpgrp(1, 1) will fail with ESRCH and return -1, in that case
  5901. exit successfully. */
  5902. return setpgrp (1,1) != -1;
  5903. ;
  5904. return 0;
  5905. }
  5906. _ACEOF
  5907. if ac_fn_c_try_run "$LINENO"; then :
  5908. ac_cv_func_setpgrp_void=no
  5909. else
  5910. ac_cv_func_setpgrp_void=yes
  5911. fi
  5912. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5913. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5914. fi
  5915. fi
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  5917. $as_echo "$ac_cv_func_setpgrp_void" >&6; }
  5918. if test $ac_cv_func_setpgrp_void = yes; then
  5919. $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
  5920. fi
  5921. else
  5922. ac_cv_func_setpgrp_void=yes
  5923. fi
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
  5925. $as_echo_n "checking for working strcoll... " >&6; }
  5926. if ${ac_cv_func_strcoll_works+:} false; then :
  5927. $as_echo_n "(cached) " >&6
  5928. else
  5929. if test "$cross_compiling" = yes; then :
  5930. ac_cv_func_strcoll_works=no
  5931. else
  5932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5933. /* end confdefs.h. */
  5934. $ac_includes_default
  5935. int
  5936. main ()
  5937. {
  5938. return (strcoll ("abc", "def") >= 0 ||
  5939. strcoll ("ABC", "DEF") >= 0 ||
  5940. strcoll ("123", "456") >= 0)
  5941. ;
  5942. return 0;
  5943. }
  5944. _ACEOF
  5945. if ac_fn_c_try_run "$LINENO"; then :
  5946. ac_cv_func_strcoll_works=yes
  5947. else
  5948. ac_cv_func_strcoll_works=no
  5949. fi
  5950. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5951. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5952. fi
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
  5955. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  5956. if test $ac_cv_func_strcoll_works = yes; then
  5957. $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
  5958. fi
  5959. if test "$have_setlocale" != no; then
  5960. # Check whether --enable-nls was given.
  5961. if test "${enable_nls+set}" = set; then :
  5962. enableval=$enable_nls;
  5963. else
  5964. enable_nls=yes
  5965. fi
  5966. if test "x$enable_nls" != xno; then
  5967. $as_echo "#define NLS 1" >>confdefs.h
  5968. fi
  5969. fi
  5970. if test "x$enable_nls" != xno -a "$have_catgets" != no -a -n "$GENCAT" ; then
  5971. # Check whether --enable-nls-catalogs was given.
  5972. if test "${enable_nls_catalogs+set}" = set; then :
  5973. enableval=$enable_nls_catalogs;
  5974. else
  5975. enable_nls_catalogs=yes
  5976. fi
  5977. if test "x$enable_nls_catalogs" != xno; then
  5978. BUILD_CATALOGS="yes"
  5979. $as_echo "#define NLS_CATALOGS 1" >>confdefs.h
  5980. fi
  5981. fi
  5982. # Check whether --with-hesiod was given.
  5983. if test "${with_hesiod+set}" = set; then :
  5984. withval=$with_hesiod; hesiod="$withval"
  5985. else
  5986. hesiod=no
  5987. fi
  5988. if test "$hesiod" != no; then
  5989. HESLIB="-lhesiod"
  5990. ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
  5991. if test "x$ac_cv_func_res_send" = xyes; then :
  5992. :
  5993. else
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
  5995. $as_echo_n "checking for res_send in -lresolv... " >&6; }
  5996. if ${ac_cv_lib_resolv_res_send+:} false; then :
  5997. $as_echo_n "(cached) " >&6
  5998. else
  5999. ac_check_lib_save_LIBS=$LIBS
  6000. LIBS="-lresolv $LIBS"
  6001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6002. /* end confdefs.h. */
  6003. /* Override any GCC internal prototype to avoid an error.
  6004. Use char because int might match the return type of a GCC
  6005. builtin and then its argument prototype would still apply. */
  6006. #ifdef __cplusplus
  6007. extern "C"
  6008. #endif
  6009. char res_send ();
  6010. int
  6011. main ()
  6012. {
  6013. return res_send ();
  6014. ;
  6015. return 0;
  6016. }
  6017. _ACEOF
  6018. if ac_fn_c_try_link "$LINENO"; then :
  6019. ac_cv_lib_resolv_res_send=yes
  6020. else
  6021. ac_cv_lib_resolv_res_send=no
  6022. fi
  6023. rm -f core conftest.err conftest.$ac_objext \
  6024. conftest$ac_exeext conftest.$ac_ext
  6025. LIBS=$ac_check_lib_save_LIBS
  6026. fi
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
  6028. $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
  6029. if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
  6030. HESLIB="$HESLIB -lresolv"
  6031. fi
  6032. fi
  6033. HESDEF=-DHESIOD
  6034. if test "$hesiod" != yes; then
  6035. HESDEF="$HESDEF -I$hesiod/include"
  6036. HESLIB="-L$hesiod/lib $HESLIB"
  6037. fi
  6038. fi
  6039. ac_config_files="$ac_config_files Makefile nls/Makefile"
  6040. cat >confcache <<\_ACEOF
  6041. # This file is a shell script that caches the results of configure
  6042. # tests run on this system so they can be shared between configure
  6043. # scripts and configure runs, see configure's option --config-cache.
  6044. # It is not useful on other systems. If it contains results you don't
  6045. # want to keep, you may remove or edit it.
  6046. #
  6047. # config.status only pays attention to the cache file if you give it
  6048. # the --recheck option to rerun configure.
  6049. #
  6050. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6051. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6052. # following values.
  6053. _ACEOF
  6054. # The following way of writing the cache mishandles newlines in values,
  6055. # but we know of no workaround that is simple, portable, and efficient.
  6056. # So, we kill variables containing newlines.
  6057. # Ultrix sh set writes to stderr and can't be redirected directly,
  6058. # and sets the high bit in the cache file unless we assign to the vars.
  6059. (
  6060. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6061. eval ac_val=\$$ac_var
  6062. case $ac_val in #(
  6063. *${as_nl}*)
  6064. case $ac_var in #(
  6065. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6066. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6067. esac
  6068. case $ac_var in #(
  6069. _ | IFS | as_nl) ;; #(
  6070. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6071. *) { eval $ac_var=; unset $ac_var;} ;;
  6072. esac ;;
  6073. esac
  6074. done
  6075. (set) 2>&1 |
  6076. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6077. *${as_nl}ac_space=\ *)
  6078. # `set' does not quote correctly, so add quotes: double-quote
  6079. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6080. sed -n \
  6081. "s/'/'\\\\''/g;
  6082. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6083. ;; #(
  6084. *)
  6085. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6086. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6087. ;;
  6088. esac |
  6089. sort
  6090. ) |
  6091. sed '
  6092. /^ac_cv_env_/b end
  6093. t clear
  6094. :clear
  6095. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6096. t end
  6097. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6098. :end' >>confcache
  6099. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6100. if test -w "$cache_file"; then
  6101. if test "x$cache_file" != "x/dev/null"; then
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6103. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6104. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6105. cat confcache >"$cache_file"
  6106. else
  6107. case $cache_file in #(
  6108. */* | ?:*)
  6109. mv -f confcache "$cache_file"$$ &&
  6110. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6111. *)
  6112. mv -f confcache "$cache_file" ;;
  6113. esac
  6114. fi
  6115. fi
  6116. else
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6118. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6119. fi
  6120. fi
  6121. rm -f confcache
  6122. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6123. # Let make expand exec_prefix.
  6124. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6125. DEFS=-DHAVE_CONFIG_H
  6126. ac_libobjs=
  6127. ac_ltlibobjs=
  6128. U=
  6129. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6130. # 1. Remove the extension, and $U if already installed.
  6131. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6132. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6133. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6134. # will be set to the directory where LIBOBJS objects are built.
  6135. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6136. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6137. done
  6138. LIBOBJS=$ac_libobjs
  6139. LTLIBOBJS=$ac_ltlibobjs
  6140. : "${CONFIG_STATUS=./config.status}"
  6141. ac_write_fail=0
  6142. ac_clean_files_save=$ac_clean_files
  6143. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6145. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6146. as_write_fail=0
  6147. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6148. #! $SHELL
  6149. # Generated by $as_me.
  6150. # Run this file to recreate the current configuration.
  6151. # Compiler output produced by configure, useful for debugging
  6152. # configure, is in config.log if it exists.
  6153. debug=false
  6154. ac_cs_recheck=false
  6155. ac_cs_silent=false
  6156. SHELL=\${CONFIG_SHELL-$SHELL}
  6157. export SHELL
  6158. _ASEOF
  6159. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6160. ## -------------------- ##
  6161. ## M4sh Initialization. ##
  6162. ## -------------------- ##
  6163. # Be more Bourne compatible
  6164. DUALCASE=1; export DUALCASE # for MKS sh
  6165. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6166. emulate sh
  6167. NULLCMD=:
  6168. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6169. # is contrary to our usage. Disable this feature.
  6170. alias -g '${1+"$@"}'='"$@"'
  6171. setopt NO_GLOB_SUBST
  6172. else
  6173. case `(set -o) 2>/dev/null` in #(
  6174. *posix*) :
  6175. set -o posix ;; #(
  6176. *) :
  6177. ;;
  6178. esac
  6179. fi
  6180. as_nl='
  6181. '
  6182. export as_nl
  6183. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6184. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6185. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6186. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6187. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6188. # but without wasting forks for bash or zsh.
  6189. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6190. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6191. as_echo='print -r --'
  6192. as_echo_n='print -rn --'
  6193. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6194. as_echo='printf %s\n'
  6195. as_echo_n='printf %s'
  6196. else
  6197. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6198. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6199. as_echo_n='/usr/ucb/echo -n'
  6200. else
  6201. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6202. as_echo_n_body='eval
  6203. arg=$1;
  6204. case $arg in #(
  6205. *"$as_nl"*)
  6206. expr "X$arg" : "X\\(.*\\)$as_nl";
  6207. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6208. esac;
  6209. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6210. '
  6211. export as_echo_n_body
  6212. as_echo_n='sh -c $as_echo_n_body as_echo'
  6213. fi
  6214. export as_echo_body
  6215. as_echo='sh -c $as_echo_body as_echo'
  6216. fi
  6217. # The user is always right.
  6218. if test "${PATH_SEPARATOR+set}" != set; then
  6219. PATH_SEPARATOR=:
  6220. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6221. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6222. PATH_SEPARATOR=';'
  6223. }
  6224. fi
  6225. # IFS
  6226. # We need space, tab and new line, in precisely that order. Quoting is
  6227. # there to prevent editors from complaining about space-tab.
  6228. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6229. # splitting by setting IFS to empty value.)
  6230. IFS=" "" $as_nl"
  6231. # Find who we are. Look in the path if we contain no directory separator.
  6232. as_myself=
  6233. case $0 in #((
  6234. *[\\/]* ) as_myself=$0 ;;
  6235. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6236. for as_dir in $PATH
  6237. do
  6238. IFS=$as_save_IFS
  6239. test -z "$as_dir" && as_dir=.
  6240. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6241. done
  6242. IFS=$as_save_IFS
  6243. ;;
  6244. esac
  6245. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6246. # in which case we are not to be found in the path.
  6247. if test "x$as_myself" = x; then
  6248. as_myself=$0
  6249. fi
  6250. if test ! -f "$as_myself"; then
  6251. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6252. exit 1
  6253. fi
  6254. # Unset variables that we do not need and which cause bugs (e.g. in
  6255. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6256. # suppresses any "Segmentation fault" message there. '((' could
  6257. # trigger a bug in pdksh 5.2.14.
  6258. for as_var in BASH_ENV ENV MAIL MAILPATH
  6259. do eval test x\${$as_var+set} = xset \
  6260. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6261. done
  6262. PS1='$ '
  6263. PS2='> '
  6264. PS4='+ '
  6265. # NLS nuisances.
  6266. LC_ALL=C
  6267. export LC_ALL
  6268. LANGUAGE=C
  6269. export LANGUAGE
  6270. # CDPATH.
  6271. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6272. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  6273. # ----------------------------------------
  6274. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6275. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6276. # script with STATUS, using 1 if that was 0.
  6277. as_fn_error ()
  6278. {
  6279. as_status=$1; test $as_status -eq 0 && as_status=1
  6280. if test "$4"; then
  6281. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6282. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  6283. fi
  6284. $as_echo "$as_me: error: $2" >&2
  6285. as_fn_exit $as_status
  6286. } # as_fn_error
  6287. # as_fn_set_status STATUS
  6288. # -----------------------
  6289. # Set $? to STATUS, without forking.
  6290. as_fn_set_status ()
  6291. {
  6292. return $1
  6293. } # as_fn_set_status
  6294. # as_fn_exit STATUS
  6295. # -----------------
  6296. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6297. as_fn_exit ()
  6298. {
  6299. set +e
  6300. as_fn_set_status $1
  6301. exit $1
  6302. } # as_fn_exit
  6303. # as_fn_unset VAR
  6304. # ---------------
  6305. # Portably unset VAR.
  6306. as_fn_unset ()
  6307. {
  6308. { eval $1=; unset $1;}
  6309. }
  6310. as_unset=as_fn_unset
  6311. # as_fn_append VAR VALUE
  6312. # ----------------------
  6313. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6314. # advantage of any shell optimizations that allow amortized linear growth over
  6315. # repeated appends, instead of the typical quadratic growth present in naive
  6316. # implementations.
  6317. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6318. eval 'as_fn_append ()
  6319. {
  6320. eval $1+=\$2
  6321. }'
  6322. else
  6323. as_fn_append ()
  6324. {
  6325. eval $1=\$$1\$2
  6326. }
  6327. fi # as_fn_append
  6328. # as_fn_arith ARG...
  6329. # ------------------
  6330. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6331. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6332. # must be portable across $(()) and expr.
  6333. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6334. eval 'as_fn_arith ()
  6335. {
  6336. as_val=$(( $* ))
  6337. }'
  6338. else
  6339. as_fn_arith ()
  6340. {
  6341. as_val=`expr "$@" || test $? -eq 1`
  6342. }
  6343. fi # as_fn_arith
  6344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6346. as_expr=expr
  6347. else
  6348. as_expr=false
  6349. fi
  6350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6351. as_basename=basename
  6352. else
  6353. as_basename=false
  6354. fi
  6355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6356. as_dirname=dirname
  6357. else
  6358. as_dirname=false
  6359. fi
  6360. as_me=`$as_basename -- "$0" ||
  6361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6362. X"$0" : 'X\(//\)$' \| \
  6363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6364. $as_echo X/"$0" |
  6365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6366. s//\1/
  6367. q
  6368. }
  6369. /^X\/\(\/\/\)$/{
  6370. s//\1/
  6371. q
  6372. }
  6373. /^X\/\(\/\).*/{
  6374. s//\1/
  6375. q
  6376. }
  6377. s/.*/./; q'`
  6378. # Avoid depending upon Character Ranges.
  6379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6382. as_cr_digits='0123456789'
  6383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6384. ECHO_C= ECHO_N= ECHO_T=
  6385. case `echo -n x` in #(((((
  6386. -n*)
  6387. case `echo 'xy\c'` in
  6388. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6389. xy) ECHO_C='\c';;
  6390. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6391. ECHO_T=' ';;
  6392. esac;;
  6393. *)
  6394. ECHO_N='-n';;
  6395. esac
  6396. rm -f conf$$ conf$$.exe conf$$.file
  6397. if test -d conf$$.dir; then
  6398. rm -f conf$$.dir/conf$$.file
  6399. else
  6400. rm -f conf$$.dir
  6401. mkdir conf$$.dir 2>/dev/null
  6402. fi
  6403. if (echo >conf$$.file) 2>/dev/null; then
  6404. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6405. as_ln_s='ln -s'
  6406. # ... but there are two gotchas:
  6407. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6408. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6409. # In both cases, we have to default to `cp -p'.
  6410. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6411. as_ln_s='cp -p'
  6412. elif ln conf$$.file conf$$ 2>/dev/null; then
  6413. as_ln_s=ln
  6414. else
  6415. as_ln_s='cp -p'
  6416. fi
  6417. else
  6418. as_ln_s='cp -p'
  6419. fi
  6420. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6421. rmdir conf$$.dir 2>/dev/null
  6422. # as_fn_mkdir_p
  6423. # -------------
  6424. # Create "$as_dir" as a directory, including parents if necessary.
  6425. as_fn_mkdir_p ()
  6426. {
  6427. case $as_dir in #(
  6428. -*) as_dir=./$as_dir;;
  6429. esac
  6430. test -d "$as_dir" || eval $as_mkdir_p || {
  6431. as_dirs=
  6432. while :; do
  6433. case $as_dir in #(
  6434. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6435. *) as_qdir=$as_dir;;
  6436. esac
  6437. as_dirs="'$as_qdir' $as_dirs"
  6438. as_dir=`$as_dirname -- "$as_dir" ||
  6439. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6440. X"$as_dir" : 'X\(//\)[^/]' \| \
  6441. X"$as_dir" : 'X\(//\)$' \| \
  6442. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6443. $as_echo X"$as_dir" |
  6444. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6445. s//\1/
  6446. q
  6447. }
  6448. /^X\(\/\/\)[^/].*/{
  6449. s//\1/
  6450. q
  6451. }
  6452. /^X\(\/\/\)$/{
  6453. s//\1/
  6454. q
  6455. }
  6456. /^X\(\/\).*/{
  6457. s//\1/
  6458. q
  6459. }
  6460. s/.*/./; q'`
  6461. test -d "$as_dir" && break
  6462. done
  6463. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6464. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  6465. } # as_fn_mkdir_p
  6466. if mkdir -p . 2>/dev/null; then
  6467. as_mkdir_p='mkdir -p "$as_dir"'
  6468. else
  6469. test -d ./-p && rmdir ./-p
  6470. as_mkdir_p=false
  6471. fi
  6472. if test -x / >/dev/null 2>&1; then
  6473. as_test_x='test -x'
  6474. else
  6475. if ls -dL / >/dev/null 2>&1; then
  6476. as_ls_L_option=L
  6477. else
  6478. as_ls_L_option=
  6479. fi
  6480. as_test_x='
  6481. eval sh -c '\''
  6482. if test -d "$1"; then
  6483. test -d "$1/.";
  6484. else
  6485. case $1 in #(
  6486. -*)set "./$1";;
  6487. esac;
  6488. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6489. ???[sx]*):;;*)false;;esac;fi
  6490. '\'' sh
  6491. '
  6492. fi
  6493. as_executable_p=$as_test_x
  6494. # Sed expression to map a string onto a valid CPP name.
  6495. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6496. # Sed expression to map a string onto a valid variable name.
  6497. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6498. exec 6>&1
  6499. ## ----------------------------------- ##
  6500. ## Main body of $CONFIG_STATUS script. ##
  6501. ## ----------------------------------- ##
  6502. _ASEOF
  6503. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6504. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6505. # Save the log message, to keep $0 and so on meaningful, and to
  6506. # report actual input values of CONFIG_FILES etc. instead of their
  6507. # values after options handling.
  6508. ac_log="
  6509. This file was extended by tcsh $as_me 6.18.01, which was
  6510. generated by GNU Autoconf 2.68. Invocation command line was
  6511. CONFIG_FILES = $CONFIG_FILES
  6512. CONFIG_HEADERS = $CONFIG_HEADERS
  6513. CONFIG_LINKS = $CONFIG_LINKS
  6514. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6515. $ $0 $@
  6516. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6517. "
  6518. _ACEOF
  6519. case $ac_config_files in *"
  6520. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6521. esac
  6522. case $ac_config_headers in *"
  6523. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6524. esac
  6525. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6526. # Files that config.status was made for.
  6527. config_files="$ac_config_files"
  6528. config_headers="$ac_config_headers"
  6529. config_commands="$ac_config_commands"
  6530. _ACEOF
  6531. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6532. ac_cs_usage="\
  6533. \`$as_me' instantiates files and other configuration actions
  6534. from templates according to the current configuration. Unless the files
  6535. and actions are specified as TAGs, all are instantiated by default.
  6536. Usage: $0 [OPTION]... [TAG]...
  6537. -h, --help print this help, then exit
  6538. -V, --version print version number and configuration settings, then exit
  6539. --config print configuration, then exit
  6540. -q, --quiet, --silent
  6541. do not print progress messages
  6542. -d, --debug don't remove temporary files
  6543. --recheck update $as_me by reconfiguring in the same conditions
  6544. --file=FILE[:TEMPLATE]
  6545. instantiate the configuration file FILE
  6546. --header=FILE[:TEMPLATE]
  6547. instantiate the configuration header FILE
  6548. Configuration files:
  6549. $config_files
  6550. Configuration headers:
  6551. $config_headers
  6552. Configuration commands:
  6553. $config_commands
  6554. Report bugs to <http://bugs.gw.com/>."
  6555. _ACEOF
  6556. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6557. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  6558. ac_cs_version="\\
  6559. tcsh config.status 6.18.01
  6560. configured by $0, generated by GNU Autoconf 2.68,
  6561. with options \\"\$ac_cs_config\\"
  6562. Copyright (C) 2010 Free Software Foundation, Inc.
  6563. This config.status script is free software; the Free Software Foundation
  6564. gives unlimited permission to copy, distribute and modify it."
  6565. ac_pwd='$ac_pwd'
  6566. srcdir='$srcdir'
  6567. INSTALL='$INSTALL'
  6568. test -n "\$AWK" || AWK=awk
  6569. _ACEOF
  6570. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6571. # The default lists apply if the user does not specify any file.
  6572. ac_need_defaults=:
  6573. while test $# != 0
  6574. do
  6575. case $1 in
  6576. --*=?*)
  6577. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6578. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  6579. ac_shift=:
  6580. ;;
  6581. --*=)
  6582. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  6583. ac_optarg=
  6584. ac_shift=:
  6585. ;;
  6586. *)
  6587. ac_option=$1
  6588. ac_optarg=$2
  6589. ac_shift=shift
  6590. ;;
  6591. esac
  6592. case $ac_option in
  6593. # Handling of the options.
  6594. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6595. ac_cs_recheck=: ;;
  6596. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  6597. $as_echo "$ac_cs_version"; exit ;;
  6598. --config | --confi | --conf | --con | --co | --c )
  6599. $as_echo "$ac_cs_config"; exit ;;
  6600. --debug | --debu | --deb | --de | --d | -d )
  6601. debug=: ;;
  6602. --file | --fil | --fi | --f )
  6603. $ac_shift
  6604. case $ac_optarg in
  6605. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6606. '') as_fn_error $? "missing file argument" ;;
  6607. esac
  6608. as_fn_append CONFIG_FILES " '$ac_optarg'"
  6609. ac_need_defaults=false;;
  6610. --header | --heade | --head | --hea )
  6611. $ac_shift
  6612. case $ac_optarg in
  6613. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6614. esac
  6615. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  6616. ac_need_defaults=false;;
  6617. --he | --h)
  6618. # Conflict between --help and --header
  6619. as_fn_error $? "ambiguous option: \`$1'
  6620. Try \`$0 --help' for more information.";;
  6621. --help | --hel | -h )
  6622. $as_echo "$ac_cs_usage"; exit ;;
  6623. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6624. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6625. ac_cs_silent=: ;;
  6626. # This is an error.
  6627. -*) as_fn_error $? "unrecognized option: \`$1'
  6628. Try \`$0 --help' for more information." ;;
  6629. *) as_fn_append ac_config_targets " $1"
  6630. ac_need_defaults=false ;;
  6631. esac
  6632. shift
  6633. done
  6634. ac_configure_extra_args=
  6635. if $ac_cs_silent; then
  6636. exec 6>/dev/null
  6637. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6638. fi
  6639. _ACEOF
  6640. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6641. if \$ac_cs_recheck; then
  6642. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6643. shift
  6644. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  6645. CONFIG_SHELL='$SHELL'
  6646. export CONFIG_SHELL
  6647. exec "\$@"
  6648. fi
  6649. _ACEOF
  6650. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6651. exec 5>>config.log
  6652. {
  6653. echo
  6654. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6655. ## Running $as_me. ##
  6656. _ASBOX
  6657. $as_echo "$ac_log"
  6658. } >&5
  6659. _ACEOF
  6660. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6661. #
  6662. # INIT-COMMANDS
  6663. #
  6664. _ACEOF
  6665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6666. # Handling of arguments.
  6667. for ac_config_target in $ac_config_targets
  6668. do
  6669. case $ac_config_target in
  6670. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  6671. "./atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS ./atconfig" ;;
  6672. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6673. "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
  6674. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  6675. esac
  6676. done
  6677. # If the user did not use the arguments to specify the items to instantiate,
  6678. # then the envvar interface is used. Set only those that are not.
  6679. # We use the long form for the default assignment because of an extremely
  6680. # bizarre bug on SunOS 4.1.3.
  6681. if $ac_need_defaults; then
  6682. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6683. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6684. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  6685. fi
  6686. # Have a temporary directory for convenience. Make it in the build tree
  6687. # simply because there is no reason against having it here, and in addition,
  6688. # creating and moving files from /tmp can sometimes cause problems.
  6689. # Hook for its removal unless debugging.
  6690. # Note that there is a small window in which the directory will not be cleaned:
  6691. # after its creation but before its name has been assigned to `$tmp'.
  6692. $debug ||
  6693. {
  6694. tmp= ac_tmp=
  6695. trap 'exit_status=$?
  6696. : "${ac_tmp:=$tmp}"
  6697. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  6698. ' 0
  6699. trap 'as_fn_exit 1' 1 2 13 15
  6700. }
  6701. # Create a (secure) tmp directory for tmp files.
  6702. {
  6703. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  6704. test -d "$tmp"
  6705. } ||
  6706. {
  6707. tmp=./conf$$-$RANDOM
  6708. (umask 077 && mkdir "$tmp")
  6709. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  6710. ac_tmp=$tmp
  6711. # Set up the scripts for CONFIG_FILES section.
  6712. # No need to generate them if there are no CONFIG_FILES.
  6713. # This happens for instance with `./config.status config.h'.
  6714. if test -n "$CONFIG_FILES"; then
  6715. ac_cr=`echo X | tr X '\015'`
  6716. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  6717. # But we know of no other shell where ac_cr would be empty at this
  6718. # point, so we can use a bashism as a fallback.
  6719. if test "x$ac_cr" = x; then
  6720. eval ac_cr=\$\'\\r\'
  6721. fi
  6722. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  6723. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  6724. ac_cs_awk_cr='\\r'
  6725. else
  6726. ac_cs_awk_cr=$ac_cr
  6727. fi
  6728. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  6729. _ACEOF
  6730. {
  6731. echo "cat >conf$$subs.awk <<_ACEOF" &&
  6732. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  6733. echo "_ACEOF"
  6734. } >conf$$subs.sh ||
  6735. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6736. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  6737. ac_delim='%!_!# '
  6738. for ac_last_try in false false false false false :; do
  6739. . ./conf$$subs.sh ||
  6740. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6741. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  6742. if test $ac_delim_n = $ac_delim_num; then
  6743. break
  6744. elif $ac_last_try; then
  6745. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  6746. else
  6747. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6748. fi
  6749. done
  6750. rm -f conf$$subs.sh
  6751. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6752. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  6753. _ACEOF
  6754. sed -n '
  6755. h
  6756. s/^/S["/; s/!.*/"]=/
  6757. p
  6758. g
  6759. s/^[^!]*!//
  6760. :repl
  6761. t repl
  6762. s/'"$ac_delim"'$//
  6763. t delim
  6764. :nl
  6765. h
  6766. s/\(.\{148\}\)..*/\1/
  6767. t more1
  6768. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  6769. p
  6770. n
  6771. b repl
  6772. :more1
  6773. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6774. p
  6775. g
  6776. s/.\{148\}//
  6777. t nl
  6778. :delim
  6779. h
  6780. s/\(.\{148\}\)..*/\1/
  6781. t more2
  6782. s/["\\]/\\&/g; s/^/"/; s/$/"/
  6783. p
  6784. b
  6785. :more2
  6786. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  6787. p
  6788. g
  6789. s/.\{148\}//
  6790. t delim
  6791. ' <conf$$subs.awk | sed '
  6792. /^[^""]/{
  6793. N
  6794. s/\n//
  6795. }
  6796. ' >>$CONFIG_STATUS || ac_write_fail=1
  6797. rm -f conf$$subs.awk
  6798. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6799. _ACAWK
  6800. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  6801. for (key in S) S_is_set[key] = 1
  6802. FS = ""
  6803. }
  6804. {
  6805. line = $ 0
  6806. nfields = split(line, field, "@")
  6807. substed = 0
  6808. len = length(field[1])
  6809. for (i = 2; i < nfields; i++) {
  6810. key = field[i]
  6811. keylen = length(key)
  6812. if (S_is_set[key]) {
  6813. value = S[key]
  6814. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  6815. len += length(value) + length(field[++i])
  6816. substed = 1
  6817. } else
  6818. len += 1 + keylen
  6819. }
  6820. print line
  6821. }
  6822. _ACAWK
  6823. _ACEOF
  6824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6825. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  6826. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  6827. else
  6828. cat
  6829. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  6830. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  6831. _ACEOF
  6832. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  6833. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  6834. # trailing colons and then remove the whole line if VPATH becomes empty
  6835. # (actually we leave an empty line to preserve line numbers).
  6836. if test "x$srcdir" = x.; then
  6837. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  6838. h
  6839. s///
  6840. s/^/:/
  6841. s/[ ]*$/:/
  6842. s/:\$(srcdir):/:/g
  6843. s/:\${srcdir}:/:/g
  6844. s/:@srcdir@:/:/g
  6845. s/^:*//
  6846. s/:*$//
  6847. x
  6848. s/\(=[ ]*\).*/\1/
  6849. G
  6850. s/\n//
  6851. s/^[^=]*=[ ]*$//
  6852. }'
  6853. fi
  6854. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6855. fi # test -n "$CONFIG_FILES"
  6856. # Set up the scripts for CONFIG_HEADERS section.
  6857. # No need to generate them if there are no CONFIG_HEADERS.
  6858. # This happens for instance with `./config.status Makefile'.
  6859. if test -n "$CONFIG_HEADERS"; then
  6860. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  6861. BEGIN {
  6862. _ACEOF
  6863. # Transform confdefs.h into an awk script `defines.awk', embedded as
  6864. # here-document in config.status, that substitutes the proper values into
  6865. # config.h.in to produce config.h.
  6866. # Create a delimiter string that does not exist in confdefs.h, to ease
  6867. # handling of long lines.
  6868. ac_delim='%!_!# '
  6869. for ac_last_try in false false :; do
  6870. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  6871. if test -z "$ac_tt"; then
  6872. break
  6873. elif $ac_last_try; then
  6874. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  6875. else
  6876. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  6877. fi
  6878. done
  6879. # For the awk script, D is an array of macro values keyed by name,
  6880. # likewise P contains macro parameters if any. Preserve backslash
  6881. # newline sequences.
  6882. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6883. sed -n '
  6884. s/.\{148\}/&'"$ac_delim"'/g
  6885. t rset
  6886. :rset
  6887. s/^[ ]*#[ ]*define[ ][ ]*/ /
  6888. t def
  6889. d
  6890. :def
  6891. s/\\$//
  6892. t bsnl
  6893. s/["\\]/\\&/g
  6894. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6895. D["\1"]=" \3"/p
  6896. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  6897. d
  6898. :bsnl
  6899. s/["\\]/\\&/g
  6900. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  6901. D["\1"]=" \3\\\\\\n"\\/p
  6902. t cont
  6903. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  6904. t cont
  6905. d
  6906. :cont
  6907. n
  6908. s/.\{148\}/&'"$ac_delim"'/g
  6909. t clear
  6910. :clear
  6911. s/\\$//
  6912. t bsnlc
  6913. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  6914. d
  6915. :bsnlc
  6916. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  6917. b cont
  6918. ' <confdefs.h | sed '
  6919. s/'"$ac_delim"'/"\\\
  6920. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  6921. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6922. for (key in D) D_is_set[key] = 1
  6923. FS = ""
  6924. }
  6925. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  6926. line = \$ 0
  6927. split(line, arg, " ")
  6928. if (arg[1] == "#") {
  6929. defundef = arg[2]
  6930. mac1 = arg[3]
  6931. } else {
  6932. defundef = substr(arg[1], 2)
  6933. mac1 = arg[2]
  6934. }
  6935. split(mac1, mac2, "(") #)
  6936. macro = mac2[1]
  6937. prefix = substr(line, 1, index(line, defundef) - 1)
  6938. if (D_is_set[macro]) {
  6939. # Preserve the white space surrounding the "#".
  6940. print prefix "define", macro P[macro] D[macro]
  6941. next
  6942. } else {
  6943. # Replace #undef with comments. This is necessary, for example,
  6944. # in the case of _POSIX_SOURCE, which is predefined and required
  6945. # on some systems where configure will not decide to define it.
  6946. if (defundef == "undef") {
  6947. print "/*", prefix defundef, macro, "*/"
  6948. next
  6949. }
  6950. }
  6951. }
  6952. { print }
  6953. _ACAWK
  6954. _ACEOF
  6955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6956. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  6957. fi # test -n "$CONFIG_HEADERS"
  6958. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  6959. shift
  6960. for ac_tag
  6961. do
  6962. case $ac_tag in
  6963. :[FHLC]) ac_mode=$ac_tag; continue;;
  6964. esac
  6965. case $ac_mode$ac_tag in
  6966. :[FHL]*:*);;
  6967. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  6968. :[FH]-) ac_tag=-:-;;
  6969. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  6970. esac
  6971. ac_save_IFS=$IFS
  6972. IFS=:
  6973. set x $ac_tag
  6974. IFS=$ac_save_IFS
  6975. shift
  6976. ac_file=$1
  6977. shift
  6978. case $ac_mode in
  6979. :L) ac_source=$1;;
  6980. :[FH])
  6981. ac_file_inputs=
  6982. for ac_f
  6983. do
  6984. case $ac_f in
  6985. -) ac_f="$ac_tmp/stdin";;
  6986. *) # Look for the file first in the build tree, then in the source tree
  6987. # (if the path is not absolute). The absolute path cannot be DOS-style,
  6988. # because $ac_f cannot contain `:'.
  6989. test -f "$ac_f" ||
  6990. case $ac_f in
  6991. [\\/$]*) false;;
  6992. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  6993. esac ||
  6994. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  6995. esac
  6996. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  6997. as_fn_append ac_file_inputs " '$ac_f'"
  6998. done
  6999. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7000. # use $as_me), people would be surprised to read:
  7001. # /* config.h. Generated by config.status. */
  7002. configure_input='Generated from '`
  7003. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7004. `' by configure.'
  7005. if test x"$ac_file" != x-; then
  7006. configure_input="$ac_file. $configure_input"
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7008. $as_echo "$as_me: creating $ac_file" >&6;}
  7009. fi
  7010. # Neutralize special characters interpreted by sed in replacement strings.
  7011. case $configure_input in #(
  7012. *\&* | *\|* | *\\* )
  7013. ac_sed_conf_input=`$as_echo "$configure_input" |
  7014. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7015. *) ac_sed_conf_input=$configure_input;;
  7016. esac
  7017. case $ac_tag in
  7018. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7019. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7020. esac
  7021. ;;
  7022. esac
  7023. ac_dir=`$as_dirname -- "$ac_file" ||
  7024. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7025. X"$ac_file" : 'X\(//\)[^/]' \| \
  7026. X"$ac_file" : 'X\(//\)$' \| \
  7027. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7028. $as_echo X"$ac_file" |
  7029. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7030. s//\1/
  7031. q
  7032. }
  7033. /^X\(\/\/\)[^/].*/{
  7034. s//\1/
  7035. q
  7036. }
  7037. /^X\(\/\/\)$/{
  7038. s//\1/
  7039. q
  7040. }
  7041. /^X\(\/\).*/{
  7042. s//\1/
  7043. q
  7044. }
  7045. s/.*/./; q'`
  7046. as_dir="$ac_dir"; as_fn_mkdir_p
  7047. ac_builddir=.
  7048. case "$ac_dir" in
  7049. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7050. *)
  7051. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7052. # A ".." for each directory in $ac_dir_suffix.
  7053. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7054. case $ac_top_builddir_sub in
  7055. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7056. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7057. esac ;;
  7058. esac
  7059. ac_abs_top_builddir=$ac_pwd
  7060. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7061. # for backward compatibility:
  7062. ac_top_builddir=$ac_top_build_prefix
  7063. case $srcdir in
  7064. .) # We are building in place.
  7065. ac_srcdir=.
  7066. ac_top_srcdir=$ac_top_builddir_sub
  7067. ac_abs_top_srcdir=$ac_pwd ;;
  7068. [\\/]* | ?:[\\/]* ) # Absolute name.
  7069. ac_srcdir=$srcdir$ac_dir_suffix;
  7070. ac_top_srcdir=$srcdir
  7071. ac_abs_top_srcdir=$srcdir ;;
  7072. *) # Relative name.
  7073. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7074. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7075. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7076. esac
  7077. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7078. case $ac_mode in
  7079. :F)
  7080. #
  7081. # CONFIG_FILE
  7082. #
  7083. case $INSTALL in
  7084. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7085. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7086. esac
  7087. _ACEOF
  7088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7089. # If the template does not know about datarootdir, expand it.
  7090. # FIXME: This hack should be removed a few years after 2.60.
  7091. ac_datarootdir_hack=; ac_datarootdir_seen=
  7092. ac_sed_dataroot='
  7093. /datarootdir/ {
  7094. p
  7095. q
  7096. }
  7097. /@datadir@/p
  7098. /@docdir@/p
  7099. /@infodir@/p
  7100. /@localedir@/p
  7101. /@mandir@/p'
  7102. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7103. *datarootdir*) ac_datarootdir_seen=yes;;
  7104. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7106. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7107. _ACEOF
  7108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7109. ac_datarootdir_hack='
  7110. s&@datadir@&$datadir&g
  7111. s&@docdir@&$docdir&g
  7112. s&@infodir@&$infodir&g
  7113. s&@localedir@&$localedir&g
  7114. s&@mandir@&$mandir&g
  7115. s&\\\${datarootdir}&$datarootdir&g' ;;
  7116. esac
  7117. _ACEOF
  7118. # Neutralize VPATH when `$srcdir' = `.'.
  7119. # Shell code in configure.ac might set extrasub.
  7120. # FIXME: do we really want to maintain this feature?
  7121. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7122. ac_sed_extra="$ac_vpsub
  7123. $extrasub
  7124. _ACEOF
  7125. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7126. :t
  7127. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7128. s|@configure_input@|$ac_sed_conf_input|;t t
  7129. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7130. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7131. s&@srcdir@&$ac_srcdir&;t t
  7132. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7133. s&@top_srcdir@&$ac_top_srcdir&;t t
  7134. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7135. s&@builddir@&$ac_builddir&;t t
  7136. s&@abs_builddir@&$ac_abs_builddir&;t t
  7137. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7138. s&@INSTALL@&$ac_INSTALL&;t t
  7139. $ac_datarootdir_hack
  7140. "
  7141. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  7142. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7143. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7144. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  7145. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  7146. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7148. which seems to be undefined. Please make sure it is defined" >&5
  7149. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7150. which seems to be undefined. Please make sure it is defined" >&2;}
  7151. rm -f "$ac_tmp/stdin"
  7152. case $ac_file in
  7153. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  7154. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  7155. esac \
  7156. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7157. ;;
  7158. :H)
  7159. #
  7160. # CONFIG_HEADER
  7161. #
  7162. if test x"$ac_file" != x-; then
  7163. {
  7164. $as_echo "/* $configure_input */" \
  7165. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  7166. } >"$ac_tmp/config.h" \
  7167. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7168. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7170. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7171. else
  7172. rm -f "$ac_file"
  7173. mv "$ac_tmp/config.h" "$ac_file" \
  7174. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  7175. fi
  7176. else
  7177. $as_echo "/* $configure_input */" \
  7178. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  7179. || as_fn_error $? "could not create -" "$LINENO" 5
  7180. fi
  7181. ;;
  7182. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7183. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7184. ;;
  7185. esac
  7186. case $ac_file$ac_mode in
  7187. "./atconfig":C) cat >./atconfig <<ATEOF
  7188. # Configurable variable values for building test suites.
  7189. # Generated by $0.
  7190. # Copyright (C) 2010 Free Software Foundation, Inc.
  7191. # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
  7192. at_testdir='.'
  7193. abs_builddir='$ac_abs_builddir'
  7194. at_srcdir='$ac_srcdir'
  7195. abs_srcdir='$ac_abs_srcdir'
  7196. at_top_srcdir='$ac_top_srcdir'
  7197. abs_top_srcdir='$ac_abs_top_srcdir'
  7198. at_top_build_prefix='$ac_top_build_prefix'
  7199. abs_top_builddir='$ac_abs_top_builddir'
  7200. # Backward compatibility with Autotest <= 2.59b:
  7201. at_top_builddir=\$at_top_build_prefix
  7202. AUTOTEST_PATH='.'
  7203. SHELL=\${CONFIG_SHELL-'$SHELL'}
  7204. ATEOF
  7205. ;;
  7206. esac
  7207. done # for ac_tag
  7208. as_fn_exit 0
  7209. _ACEOF
  7210. ac_clean_files=$ac_clean_files_save
  7211. test $ac_write_fail = 0 ||
  7212. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7213. # configure is writing to config.log, and then calls config.status.
  7214. # config.status does its own redirection, appending to config.log.
  7215. # Unfortunately, on DOS this fails, as config.log is still kept open
  7216. # by configure, so config.status won't be able to write to it; its
  7217. # output is simply discarded. So we exec the FD to /dev/null,
  7218. # effectively closing config.log, so it can be properly (re)opened and
  7219. # appended to by config.status. When coming back to configure, we
  7220. # need to make the FD available again.
  7221. if test "$no_create" != yes; then
  7222. ac_cs_success=:
  7223. ac_config_status_args=
  7224. test "$silent" = yes &&
  7225. ac_config_status_args="$ac_config_status_args --quiet"
  7226. exec 5>/dev/null
  7227. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7228. exec 5>>config.log
  7229. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7230. # would make configure fail if this is the last instruction.
  7231. $ac_cs_success || as_fn_exit 1
  7232. fi
  7233. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7235. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7236. fi