mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10038 lines
303 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/esden/lcdproc/lcdproc-debugdisable.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./configure.in.bak Sun Mar 16 22:31:01 2003
  20. +++ ./configure.in Mon Mar 17 00:24:17 2003
  21. @@ -16,8 +16,12 @@
  22. AC_MSG_CHECKING(whether to enable debugging)
  23. AC_ARG_ENABLE(debug,
  24. [ --enable-debug show debug information],
  25. - AC_DEFINE(DEBUG)
  26. - debug="yes",
  27. + if [[[ "$enableval" = "yes" ]]]; then
  28. + AC_DEFINE(DEBUG)
  29. + debug="yes"
  30. + else
  31. + debug="no"
  32. + fi,
  33. debug="no"
  34. )
  35. AC_MSG_RESULT($debug)
  36. --- ./configure.bak Sun Mar 16 22:30:53 2003
  37. +++ ./configure Mon Mar 17 00:24:22 2003
  38. @@ -1,44 +1,324 @@
  39. #! /bin/sh
  40. -
  41. # Guess values for system-dependent variables and create Makefiles.
  42. -# Generated automatically using autoconf version 2.13
  43. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  44. +# Generated by GNU Autoconf 2.57.
  45. #
  46. +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  47. +# Free Software Foundation, Inc.
  48. # This configure script is free software; the Free Software Foundation
  49. # gives unlimited permission to copy, distribute and modify it.
  50. +## --------------------- ##
  51. +## M4sh Initialization. ##
  52. +## --------------------- ##
  53. +
  54. +# Be Bourne compatible
  55. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  56. + emulate sh
  57. + NULLCMD=:
  58. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  59. + # is contrary to our usage. Disable this feature.
  60. + alias -g '${1+"$@"}'='"$@"'
  61. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  62. + set -o posix
  63. +fi
  64. +
  65. +# Support unset when possible.
  66. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  67. + as_unset=unset
  68. +else
  69. + as_unset=false
  70. +fi
  71. +
  72. +
  73. +# Work around bugs in pre-3.0 UWIN ksh.
  74. +$as_unset ENV MAIL MAILPATH
  75. +PS1='$ '
  76. +PS2='> '
  77. +PS4='+ '
  78. +
  79. +# NLS nuisances.
  80. +for as_var in \
  81. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  82. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  83. + LC_TELEPHONE LC_TIME
  84. +do
  85. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  86. + eval $as_var=C; export $as_var
  87. + else
  88. + $as_unset $as_var
  89. + fi
  90. +done
  91. +
  92. +# Required to use basename.
  93. +if expr a : '\(a\)' >/dev/null 2>&1; then
  94. + as_expr=expr
  95. +else
  96. + as_expr=false
  97. +fi
  98. +
  99. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  100. + as_basename=basename
  101. +else
  102. + as_basename=false
  103. +fi
  104. +
  105. +
  106. +# Name of the executable.
  107. +as_me=`$as_basename "$0" ||
  108. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  109. + X"$0" : 'X\(//\)$' \| \
  110. + X"$0" : 'X\(/\)$' \| \
  111. + . : '\(.\)' 2>/dev/null ||
  112. +echo X/"$0" |
  113. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  114. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  115. + /^X\/\(\/\).*/{ s//\1/; q; }
  116. + s/.*/./; q'`
  117. +
  118. +
  119. +# PATH needs CR, and LINENO needs CR and PATH.
  120. +# Avoid depending upon Character Ranges.
  121. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  122. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  123. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  124. +as_cr_digits='0123456789'
  125. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  126. +
  127. +# The user is always right.
  128. +if test "${PATH_SEPARATOR+set}" != set; then
  129. + echo "#! /bin/sh" >conf$$.sh
  130. + echo "exit 0" >>conf$$.sh
  131. + chmod +x conf$$.sh
  132. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  133. + PATH_SEPARATOR=';'
  134. + else
  135. + PATH_SEPARATOR=:
  136. + fi
  137. + rm -f conf$$.sh
  138. +fi
  139. +
  140. +
  141. + as_lineno_1=$LINENO
  142. + as_lineno_2=$LINENO
  143. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  144. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  145. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  146. + # Find who we are. Look in the path if we contain no path at all
  147. + # relative or not.
  148. + case $0 in
  149. + *[\\/]* ) as_myself=$0 ;;
  150. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  151. +for as_dir in $PATH
  152. +do
  153. + IFS=$as_save_IFS
  154. + test -z "$as_dir" && as_dir=.
  155. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  156. +done
  157. +
  158. + ;;
  159. + esac
  160. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  161. + # in which case we are not to be found in the path.
  162. + if test "x$as_myself" = x; then
  163. + as_myself=$0
  164. + fi
  165. + if test ! -f "$as_myself"; then
  166. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  167. + { (exit 1); exit 1; }; }
  168. + fi
  169. + case $CONFIG_SHELL in
  170. + '')
  171. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  172. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. +do
  174. + IFS=$as_save_IFS
  175. + test -z "$as_dir" && as_dir=.
  176. + for as_base in sh bash ksh sh5; do
  177. + case $as_dir in
  178. + /*)
  179. + if ("$as_dir/$as_base" -c '
  180. + as_lineno_1=$LINENO
  181. + as_lineno_2=$LINENO
  182. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  183. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  184. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  185. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  186. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  187. + CONFIG_SHELL=$as_dir/$as_base
  188. + export CONFIG_SHELL
  189. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  190. + fi;;
  191. + esac
  192. + done
  193. +done
  194. +;;
  195. + esac
  196. +
  197. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  198. + # uniformly replaced by the line number. The first 'sed' inserts a
  199. + # line-number line before each line; the second 'sed' does the real
  200. + # work. The second script uses 'N' to pair each line-number line
  201. + # with the numbered line, and appends trailing '-' during
  202. + # substitution so that $LINENO is not a special case at line end.
  203. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  204. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  205. + sed '=' <$as_myself |
  206. + sed '
  207. + N
  208. + s,$,-,
  209. + : loop
  210. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  211. + t loop
  212. + s,-$,,
  213. + s,^['$as_cr_digits']*\n,,
  214. + ' >$as_me.lineno &&
  215. + chmod +x $as_me.lineno ||
  216. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  217. + { (exit 1); exit 1; }; }
  218. +
  219. + # Don't try to exec as it changes $[0], causing all sort of problems
  220. + # (the dirname of $[0] is not the place where we might find the
  221. + # original and so on. Autoconf is especially sensible to this).
  222. + . ./$as_me.lineno
  223. + # Exit status is that of the last command.
  224. + exit
  225. +}
  226. +
  227. +
  228. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  229. + *c*,-n*) ECHO_N= ECHO_C='
  230. +' ECHO_T=' ' ;;
  231. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  232. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  233. +esac
  234. +
  235. +if expr a : '\(a\)' >/dev/null 2>&1; then
  236. + as_expr=expr
  237. +else
  238. + as_expr=false
  239. +fi
  240. +
  241. +rm -f conf$$ conf$$.exe conf$$.file
  242. +echo >conf$$.file
  243. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  244. + # We could just check for DJGPP; but this test a) works b) is more generic
  245. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  246. + if test -f conf$$.exe; then
  247. + # Don't use ln at all; we don't have any links
  248. + as_ln_s='cp -p'
  249. + else
  250. + as_ln_s='ln -s'
  251. + fi
  252. +elif ln conf$$.file conf$$ 2>/dev/null; then
  253. + as_ln_s=ln
  254. +else
  255. + as_ln_s='cp -p'
  256. +fi
  257. +rm -f conf$$ conf$$.exe conf$$.file
  258. +
  259. +if mkdir -p . 2>/dev/null; then
  260. + as_mkdir_p=:
  261. +else
  262. + as_mkdir_p=false
  263. +fi
  264. +
  265. +as_executable_p="test -f"
  266. +
  267. +# Sed expression to map a string onto a valid CPP name.
  268. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  269. +
  270. +# Sed expression to map a string onto a valid variable name.
  271. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  272. +
  273. -# Defaults:
  274. -ac_help=
  275. +# IFS
  276. +# We need space, tab and new line, in precisely that order.
  277. +as_nl='
  278. +'
  279. +IFS=" $as_nl"
  280. +
  281. +# CDPATH.
  282. +$as_unset CDPATH
  283. +
  284. +
  285. +# Name of the host.
  286. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  287. +# so uname gets run too.
  288. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  289. +
  290. +exec 6>&1
  291. +
  292. +#
  293. +# Initializations.
  294. +#
  295. ac_default_prefix=/usr/local
  296. -# Any additions from configure.in:
  297. -ac_help="$ac_help
  298. - --enable-debug show debug information"
  299. -ac_help="$ac_help
  300. - --enable-stat-nfs display filesystem stats for NFS"
  301. -ac_help="$ac_help
  302. - --enable-stat-smbfs display filesystem stats for SMBFS"
  303. -ac_help="$ac_help
  304. - --with-lcdport=<port> the server port [13666]"
  305. -ac_help="$ac_help
  306. - --with-loadmax=<load> Max Load Avg at which the backlight will
  307. - start blinking [1.3]"
  308. -ac_help="$ac_help
  309. - --with-loadmin=<load> Min Load Avg at which the backlight will
  310. - turn off (asleep) [0.05]"
  311. -ac_help="$ac_help
  312. - --enable-drivers=<list> compile driver for LCDs in <list>.
  313. - drivers may be separated with commas.
  314. - \"all\" compiles all drivers"
  315. +ac_config_libobj_dir=.
  316. +cross_compiling=no
  317. +subdirs=
  318. +MFLAGS=
  319. +MAKEFLAGS=
  320. +SHELL=${CONFIG_SHELL-/bin/sh}
  321. +
  322. +# Maximum number of lines to put in a shell here document.
  323. +# This variable seems obsolete. It should probably be removed, and
  324. +# only ac_max_sed_lines should be used.
  325. +: ${ac_max_here_lines=38}
  326. +
  327. +# Identity of this package.
  328. +PACKAGE_NAME=
  329. +PACKAGE_TARNAME=
  330. +PACKAGE_VERSION=
  331. +PACKAGE_STRING=
  332. +PACKAGE_BUGREPORT=
  333. +
  334. +ac_unique_file="clients/lcdproc/batt.c"
  335. +# Factoring default headers for most tests.
  336. +ac_includes_default="\
  337. +#include <stdio.h>
  338. +#if HAVE_SYS_TYPES_H
  339. +# include <sys/types.h>
  340. +#endif
  341. +#if HAVE_SYS_STAT_H
  342. +# include <sys/stat.h>
  343. +#endif
  344. +#if STDC_HEADERS
  345. +# include <stdlib.h>
  346. +# include <stddef.h>
  347. +#else
  348. +# if HAVE_STDLIB_H
  349. +# include <stdlib.h>
  350. +# endif
  351. +#endif
  352. +#if HAVE_STRING_H
  353. +# if !STDC_HEADERS && HAVE_MEMORY_H
  354. +# include <memory.h>
  355. +# endif
  356. +# include <string.h>
  357. +#endif
  358. +#if HAVE_STRINGS_H
  359. +# include <strings.h>
  360. +#endif
  361. +#if HAVE_INTTYPES_H
  362. +# include <inttypes.h>
  363. +#else
  364. +# if HAVE_STDINT_H
  365. +# include <stdint.h>
  366. +# endif
  367. +#endif
  368. +#if HAVE_UNISTD_H
  369. +# include <unistd.h>
  370. +#endif"
  371. +
  372. +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP RANLIB ac_ct_RANLIB EGREP LIBCURSES LIBIRMAN LIBLIRC_CLIENT DRIVERS LIBOBJS LTLIBOBJS'
  373. +ac_subst_files=''
  374. # Initialize some variables set by options.
  375. +ac_init_help=
  376. +ac_init_version=false
  377. # The variables have the same names as the options, with
  378. # dashes changed to underlines.
  379. -build=NONE
  380. -cache_file=./config.cache
  381. +cache_file=/dev/null
  382. exec_prefix=NONE
  383. -host=NONE
  384. no_create=
  385. -nonopt=NONE
  386. no_recursion=
  387. prefix=NONE
  388. program_prefix=NONE
  389. @@ -47,10 +327,15 @@
  390. silent=
  391. site=
  392. srcdir=
  393. -target=NONE
  394. verbose=
  395. x_includes=NONE
  396. x_libraries=NONE
  397. +
  398. +# Installation directory options.
  399. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  400. +# and all the variables that are supposed to be based on exec_prefix
  401. +# by default will actually change.
  402. +# Use braces instead of parens because sh, perl, etc. also accept them.
  403. bindir='${exec_prefix}/bin'
  404. sbindir='${exec_prefix}/sbin'
  405. libexecdir='${exec_prefix}/libexec'
  406. @@ -64,17 +349,9 @@
  407. infodir='${prefix}/info'
  408. mandir='${prefix}/man'
  409. -# Initialize some other variables.
  410. -subdirs=
  411. -MFLAGS= MAKEFLAGS=
  412. -SHELL=${CONFIG_SHELL-/bin/sh}
  413. -# Maximum number of lines to put in a shell here document.
  414. -ac_max_here_lines=12
  415. -
  416. ac_prev=
  417. for ac_option
  418. do
  419. -
  420. # If the previous option needs an argument, assign it.
  421. if test -n "$ac_prev"; then
  422. eval "$ac_prev=\$ac_option"
  423. @@ -82,59 +359,59 @@
  424. continue
  425. fi
  426. - case "$ac_option" in
  427. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  428. - *) ac_optarg= ;;
  429. - esac
  430. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  431. # Accept the important Cygnus configure options, so we can diagnose typos.
  432. - case "$ac_option" in
  433. + case $ac_option in
  434. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  435. ac_prev=bindir ;;
  436. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  437. - bindir="$ac_optarg" ;;
  438. + bindir=$ac_optarg ;;
  439. -build | --build | --buil | --bui | --bu)
  440. - ac_prev=build ;;
  441. + ac_prev=build_alias ;;
  442. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  443. - build="$ac_optarg" ;;
  444. + build_alias=$ac_optarg ;;
  445. -cache-file | --cache-file | --cache-fil | --cache-fi \
  446. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  447. ac_prev=cache_file ;;
  448. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  449. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  450. - cache_file="$ac_optarg" ;;
  451. + cache_file=$ac_optarg ;;
  452. +
  453. + --config-cache | -C)
  454. + cache_file=config.cache ;;
  455. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  456. ac_prev=datadir ;;
  457. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  458. | --da=*)
  459. - datadir="$ac_optarg" ;;
  460. + datadir=$ac_optarg ;;
  461. -disable-* | --disable-*)
  462. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  463. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  464. # Reject names that are not valid shell variable names.
  465. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  466. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  467. - fi
  468. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  469. - eval "enable_${ac_feature}=no" ;;
  470. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  471. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  472. + { (exit 1); exit 1; }; }
  473. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  474. + eval "enable_$ac_feature=no" ;;
  475. -enable-* | --enable-*)
  476. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  477. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  478. # Reject names that are not valid shell variable names.
  479. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  480. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  481. - fi
  482. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  483. - case "$ac_option" in
  484. - *=*) ;;
  485. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  486. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  487. + { (exit 1); exit 1; }; }
  488. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  489. + case $ac_option in
  490. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  491. *) ac_optarg=yes ;;
  492. esac
  493. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  494. + eval "enable_$ac_feature='$ac_optarg'" ;;
  495. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  496. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  497. @@ -143,95 +420,47 @@
  498. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  499. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  500. | --exec=* | --exe=* | --ex=*)
  501. - exec_prefix="$ac_optarg" ;;
  502. + exec_prefix=$ac_optarg ;;
  503. -gas | --gas | --ga | --g)
  504. # Obsolete; use --with-gas.
  505. with_gas=yes ;;
  506. - -help | --help | --hel | --he)
  507. - # Omit some internal or obsolete options to make the list less imposing.
  508. - # This message is too long to be a string in the A/UX 3.1 sh.
  509. - cat << EOF
  510. -Usage: configure [options] [host]
  511. -Options: [defaults in brackets after descriptions]
  512. -Configuration:
  513. - --cache-file=FILE cache test results in FILE
  514. - --help print this message
  515. - --no-create do not create output files
  516. - --quiet, --silent do not print \`checking...' messages
  517. - --version print the version of autoconf that created configure
  518. -Directory and file names:
  519. - --prefix=PREFIX install architecture-independent files in PREFIX
  520. - [$ac_default_prefix]
  521. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  522. - [same as prefix]
  523. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  524. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  525. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  526. - --datadir=DIR read-only architecture-independent data in DIR
  527. - [PREFIX/share]
  528. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  529. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  530. - [PREFIX/com]
  531. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  532. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  533. - --includedir=DIR C header files in DIR [PREFIX/include]
  534. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  535. - --infodir=DIR info documentation in DIR [PREFIX/info]
  536. - --mandir=DIR man documentation in DIR [PREFIX/man]
  537. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  538. - --program-prefix=PREFIX prepend PREFIX to installed program names
  539. - --program-suffix=SUFFIX append SUFFIX to installed program names
  540. - --program-transform-name=PROGRAM
  541. - run sed PROGRAM on installed program names
  542. -EOF
  543. - cat << EOF
  544. -Host type:
  545. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  546. - --host=HOST configure for HOST [guessed]
  547. - --target=TARGET configure for TARGET [TARGET=HOST]
  548. -Features and packages:
  549. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  550. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  551. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  552. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  553. - --x-includes=DIR X include files are in DIR
  554. - --x-libraries=DIR X library files are in DIR
  555. -EOF
  556. - if test -n "$ac_help"; then
  557. - echo "--enable and --with options recognized:$ac_help"
  558. - fi
  559. - exit 0 ;;
  560. + -help | --help | --hel | --he | -h)
  561. + ac_init_help=long ;;
  562. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  563. + ac_init_help=recursive ;;
  564. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  565. + ac_init_help=short ;;
  566. -host | --host | --hos | --ho)
  567. - ac_prev=host ;;
  568. + ac_prev=host_alias ;;
  569. -host=* | --host=* | --hos=* | --ho=*)
  570. - host="$ac_optarg" ;;
  571. + host_alias=$ac_optarg ;;
  572. -includedir | --includedir | --includedi | --included | --include \
  573. | --includ | --inclu | --incl | --inc)
  574. ac_prev=includedir ;;
  575. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  576. | --includ=* | --inclu=* | --incl=* | --inc=*)
  577. - includedir="$ac_optarg" ;;
  578. + includedir=$ac_optarg ;;
  579. -infodir | --infodir | --infodi | --infod | --info | --inf)
  580. ac_prev=infodir ;;
  581. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  582. - infodir="$ac_optarg" ;;
  583. + infodir=$ac_optarg ;;
  584. -libdir | --libdir | --libdi | --libd)
  585. ac_prev=libdir ;;
  586. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  587. - libdir="$ac_optarg" ;;
  588. + libdir=$ac_optarg ;;
  589. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  590. | --libexe | --libex | --libe)
  591. ac_prev=libexecdir ;;
  592. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  593. | --libexe=* | --libex=* | --libe=*)
  594. - libexecdir="$ac_optarg" ;;
  595. + libexecdir=$ac_optarg ;;
  596. -localstatedir | --localstatedir | --localstatedi | --localstated \
  597. | --localstate | --localstat | --localsta | --localst \
  598. @@ -240,19 +469,19 @@
  599. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  600. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  601. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  602. - localstatedir="$ac_optarg" ;;
  603. + localstatedir=$ac_optarg ;;
  604. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  605. ac_prev=mandir ;;
  606. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  607. - mandir="$ac_optarg" ;;
  608. + mandir=$ac_optarg ;;
  609. -nfp | --nfp | --nf)
  610. # Obsolete; use --without-fp.
  611. with_fp=no ;;
  612. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  613. - | --no-cr | --no-c)
  614. + | --no-cr | --no-c | -n)
  615. no_create=yes ;;
  616. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  617. @@ -266,26 +495,26 @@
  618. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  619. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  620. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  621. - oldincludedir="$ac_optarg" ;;
  622. + oldincludedir=$ac_optarg ;;
  623. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  624. ac_prev=prefix ;;
  625. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  626. - prefix="$ac_optarg" ;;
  627. + prefix=$ac_optarg ;;
  628. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  629. | --program-pre | --program-pr | --program-p)
  630. ac_prev=program_prefix ;;
  631. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  632. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  633. - program_prefix="$ac_optarg" ;;
  634. + program_prefix=$ac_optarg ;;
  635. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  636. | --program-suf | --program-su | --program-s)
  637. ac_prev=program_suffix ;;
  638. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  639. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  640. - program_suffix="$ac_optarg" ;;
  641. + program_suffix=$ac_optarg ;;
  642. -program-transform-name | --program-transform-name \
  643. | --program-transform-nam | --program-transform-na \
  644. @@ -302,7 +531,7 @@
  645. | --program-transfo=* | --program-transf=* \
  646. | --program-trans=* | --program-tran=* \
  647. | --progr-tra=* | --program-tr=* | --program-t=*)
  648. - program_transform_name="$ac_optarg" ;;
  649. + program_transform_name=$ac_optarg ;;
  650. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  651. | -silent | --silent | --silen | --sile | --sil)
  652. @@ -312,7 +541,7 @@
  653. ac_prev=sbindir ;;
  654. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  655. | --sbi=* | --sb=*)
  656. - sbindir="$ac_optarg" ;;
  657. + sbindir=$ac_optarg ;;
  658. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  659. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  660. @@ -323,58 +552,57 @@
  661. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  662. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  663. | --sha=* | --sh=*)
  664. - sharedstatedir="$ac_optarg" ;;
  665. + sharedstatedir=$ac_optarg ;;
  666. -site | --site | --sit)
  667. ac_prev=site ;;
  668. -site=* | --site=* | --sit=*)
  669. - site="$ac_optarg" ;;
  670. + site=$ac_optarg ;;
  671. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  672. ac_prev=srcdir ;;
  673. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  674. - srcdir="$ac_optarg" ;;
  675. + srcdir=$ac_optarg ;;
  676. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  677. | --syscon | --sysco | --sysc | --sys | --sy)
  678. ac_prev=sysconfdir ;;
  679. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  680. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  681. - sysconfdir="$ac_optarg" ;;
  682. + sysconfdir=$ac_optarg ;;
  683. -target | --target | --targe | --targ | --tar | --ta | --t)
  684. - ac_prev=target ;;
  685. + ac_prev=target_alias ;;
  686. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  687. - target="$ac_optarg" ;;
  688. + target_alias=$ac_optarg ;;
  689. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  690. verbose=yes ;;
  691. - -version | --version | --versio | --versi | --vers)
  692. - echo "configure generated by autoconf version 2.13"
  693. - exit 0 ;;
  694. + -version | --version | --versio | --versi | --vers | -V)
  695. + ac_init_version=: ;;
  696. -with-* | --with-*)
  697. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  698. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  699. # Reject names that are not valid shell variable names.
  700. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  701. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  702. - fi
  703. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  704. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  705. + { (exit 1); exit 1; }; }
  706. ac_package=`echo $ac_package| sed 's/-/_/g'`
  707. - case "$ac_option" in
  708. - *=*) ;;
  709. + case $ac_option in
  710. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  711. *) ac_optarg=yes ;;
  712. esac
  713. - eval "with_${ac_package}='$ac_optarg'" ;;
  714. + eval "with_$ac_package='$ac_optarg'" ;;
  715. -without-* | --without-*)
  716. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  717. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  718. # Reject names that are not valid shell variable names.
  719. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  720. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  721. - fi
  722. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  723. - eval "with_${ac_package}=no" ;;
  724. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  725. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  726. + { (exit 1); exit 1; }; }
  727. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  728. + eval "with_$ac_package=no" ;;
  729. --x)
  730. # Obsolete; use --with-x.
  731. @@ -385,99 +613,110 @@
  732. ac_prev=x_includes ;;
  733. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  734. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  735. - x_includes="$ac_optarg" ;;
  736. + x_includes=$ac_optarg ;;
  737. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  738. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  739. ac_prev=x_libraries ;;
  740. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  741. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  742. - x_libraries="$ac_optarg" ;;
  743. + x_libraries=$ac_optarg ;;
  744. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  745. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  746. +Try \`$0 --help' for more information." >&2
  747. + { (exit 1); exit 1; }; }
  748. ;;
  749. + *=*)
  750. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  751. + # Reject names that are not valid shell variable names.
  752. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  753. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  754. + { (exit 1); exit 1; }; }
  755. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  756. + eval "$ac_envvar='$ac_optarg'"
  757. + export $ac_envvar ;;
  758. +
  759. *)
  760. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  761. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  762. - fi
  763. - if test "x$nonopt" != xNONE; then
  764. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  765. - fi
  766. - nonopt="$ac_option"
  767. + # FIXME: should be removed in autoconf 3.0.
  768. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  769. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  770. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  771. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  772. ;;
  773. esac
  774. done
  775. if test -n "$ac_prev"; then
  776. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  777. -fi
  778. -
  779. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  780. -
  781. -# File descriptor usage:
  782. -# 0 standard input
  783. -# 1 file creation
  784. -# 2 errors and warnings
  785. -# 3 some systems may open it to /dev/tty
  786. -# 4 used on the Kubota Titan
  787. -# 6 checking for... messages and results
  788. -# 5 compiler messages saved in config.log
  789. -if test "$silent" = yes; then
  790. - exec 6>/dev/null
  791. -else
  792. - exec 6>&1
  793. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  794. + { echo "$as_me: error: missing argument to $ac_option" >&2
  795. + { (exit 1); exit 1; }; }
  796. fi
  797. -exec 5>./config.log
  798. -echo "\
  799. -This file contains any messages produced by compilers while
  800. -running configure, to aid debugging if configure makes a mistake.
  801. -" 1>&5
  802. +# Be sure to have absolute paths.
  803. +for ac_var in exec_prefix prefix
  804. +do
  805. + eval ac_val=$`echo $ac_var`
  806. + case $ac_val in
  807. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  808. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  809. + { (exit 1); exit 1; }; };;
  810. + esac
  811. +done
  812. -# Strip out --no-create and --no-recursion so they do not pile up.
  813. -# Also quote any args containing shell metacharacters.
  814. -ac_configure_args=
  815. -for ac_arg
  816. +# Be sure to have absolute paths.
  817. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  818. + localstatedir libdir includedir oldincludedir infodir mandir
  819. do
  820. - case "$ac_arg" in
  821. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  822. - | --no-cr | --no-c) ;;
  823. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  824. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  825. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  826. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  827. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  828. + eval ac_val=$`echo $ac_var`
  829. + case $ac_val in
  830. + [\\/$]* | ?:[\\/]* ) ;;
  831. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  832. + { (exit 1); exit 1; }; };;
  833. esac
  834. done
  835. -# NLS nuisances.
  836. -# Only set these to C if already set. These must not be set unconditionally
  837. -# because not all systems understand e.g. LANG=C (notably SCO).
  838. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  839. -# Non-C LC_CTYPE values break the ctype check.
  840. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  841. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  842. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  843. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  844. +# There might be people who depend on the old broken behavior: `$host'
  845. +# used to hold the argument of --host etc.
  846. +# FIXME: To remove some day.
  847. +build=$build_alias
  848. +host=$host_alias
  849. +target=$target_alias
  850. +
  851. +# FIXME: To remove some day.
  852. +if test "x$host_alias" != x; then
  853. + if test "x$build_alias" = x; then
  854. + cross_compiling=maybe
  855. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  856. + If a cross compiler is detected then cross compile mode will be used." >&2
  857. + elif test "x$build_alias" != "x$host_alias"; then
  858. + cross_compiling=yes
  859. + fi
  860. +fi
  861. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  862. -rm -rf conftest* confdefs.h
  863. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  864. -echo > confdefs.h
  865. +ac_tool_prefix=
  866. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  867. +
  868. +test "$silent" = yes && exec 6>/dev/null
  869. -# A filename unique to this package, relative to the directory that
  870. -# configure is in, which we can look for to find out if srcdir is correct.
  871. -ac_unique_file=clients/lcdproc/batt.c
  872. # Find the source files, if location was not specified.
  873. if test -z "$srcdir"; then
  874. ac_srcdir_defaulted=yes
  875. # Try the directory containing this script, then its parent.
  876. - ac_prog=$0
  877. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  878. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  879. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  880. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  881. + X"$0" : 'X\(//\)[^/]' \| \
  882. + X"$0" : 'X\(//\)$' \| \
  883. + X"$0" : 'X\(/\)' \| \
  884. + . : '\(.\)' 2>/dev/null ||
  885. +echo X"$0" |
  886. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  887. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  888. + /^X\(\/\/\)$/{ s//\1/; q; }
  889. + /^X\(\/\).*/{ s//\1/; q; }
  890. + s/.*/./; q'`
  891. srcdir=$ac_confdir
  892. if test ! -r $srcdir/$ac_unique_file; then
  893. srcdir=..
  894. @@ -487,13 +726,450 @@
  895. fi
  896. if test ! -r $srcdir/$ac_unique_file; then
  897. if test "$ac_srcdir_defaulted" = yes; then
  898. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  899. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  900. + { (exit 1); exit 1; }; }
  901. else
  902. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  903. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  904. + { (exit 1); exit 1; }; }
  905. fi
  906. fi
  907. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  908. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  909. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  910. + { (exit 1); exit 1; }; }
  911. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  912. +ac_env_build_alias_set=${build_alias+set}
  913. +ac_env_build_alias_value=$build_alias
  914. +ac_cv_env_build_alias_set=${build_alias+set}
  915. +ac_cv_env_build_alias_value=$build_alias
  916. +ac_env_host_alias_set=${host_alias+set}
  917. +ac_env_host_alias_value=$host_alias
  918. +ac_cv_env_host_alias_set=${host_alias+set}
  919. +ac_cv_env_host_alias_value=$host_alias
  920. +ac_env_target_alias_set=${target_alias+set}
  921. +ac_env_target_alias_value=$target_alias
  922. +ac_cv_env_target_alias_set=${target_alias+set}
  923. +ac_cv_env_target_alias_value=$target_alias
  924. +ac_env_CC_set=${CC+set}
  925. +ac_env_CC_value=$CC
  926. +ac_cv_env_CC_set=${CC+set}
  927. +ac_cv_env_CC_value=$CC
  928. +ac_env_CFLAGS_set=${CFLAGS+set}
  929. +ac_env_CFLAGS_value=$CFLAGS
  930. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  931. +ac_cv_env_CFLAGS_value=$CFLAGS
  932. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  933. +ac_env_LDFLAGS_value=$LDFLAGS
  934. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  935. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  936. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  937. +ac_env_CPPFLAGS_value=$CPPFLAGS
  938. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  939. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  940. +ac_env_CPP_set=${CPP+set}
  941. +ac_env_CPP_value=$CPP
  942. +ac_cv_env_CPP_set=${CPP+set}
  943. +ac_cv_env_CPP_value=$CPP
  944. +
  945. +#
  946. +# Report the --help message.
  947. +#
  948. +if test "$ac_init_help" = "long"; then
  949. + # Omit some internal or obsolete options to make the list less imposing.
  950. + # This message is too long to be a string in the A/UX 3.1 sh.
  951. + cat <<_ACEOF
  952. +\`configure' configures this package to adapt to many kinds of systems.
  953. +
  954. +Usage: $0 [OPTION]... [VAR=VALUE]...
  955. +
  956. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  957. +VAR=VALUE. See below for descriptions of some of the useful variables.
  958. +
  959. +Defaults for the options are specified in brackets.
  960. +
  961. +Configuration:
  962. + -h, --help display this help and exit
  963. + --help=short display options specific to this package
  964. + --help=recursive display the short help of all the included packages
  965. + -V, --version display version information and exit
  966. + -q, --quiet, --silent do not print \`checking...' messages
  967. + --cache-file=FILE cache test results in FILE [disabled]
  968. + -C, --config-cache alias for \`--cache-file=config.cache'
  969. + -n, --no-create do not create output files
  970. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  971. +
  972. +_ACEOF
  973. +
  974. + cat <<_ACEOF
  975. +Installation directories:
  976. + --prefix=PREFIX install architecture-independent files in PREFIX
  977. + [$ac_default_prefix]
  978. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  979. + [PREFIX]
  980. +
  981. +By default, \`make install' will install all the files in
  982. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  983. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  984. +for instance \`--prefix=\$HOME'.
  985. +
  986. +For better control, use the options below.
  987. +
  988. +Fine tuning of the installation directories:
  989. + --bindir=DIR user executables [EPREFIX/bin]
  990. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  991. + --libexecdir=DIR program executables [EPREFIX/libexec]
  992. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  993. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  994. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  995. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  996. + --libdir=DIR object code libraries [EPREFIX/lib]
  997. + --includedir=DIR C header files [PREFIX/include]
  998. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  999. + --infodir=DIR info documentation [PREFIX/info]
  1000. + --mandir=DIR man documentation [PREFIX/man]
  1001. +_ACEOF
  1002. +
  1003. + cat <<\_ACEOF
  1004. +
  1005. +Program names:
  1006. + --program-prefix=PREFIX prepend PREFIX to installed program names
  1007. + --program-suffix=SUFFIX append SUFFIX to installed program names
  1008. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1009. +
  1010. +System types:
  1011. + --build=BUILD configure for building on BUILD [guessed]
  1012. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1013. +_ACEOF
  1014. +fi
  1015. +
  1016. +if test -n "$ac_init_help"; then
  1017. +
  1018. + cat <<\_ACEOF
  1019. +
  1020. +Optional Features:
  1021. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1022. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1023. + --enable-debug show debug information
  1024. + --enable-stat-nfs display filesystem stats for NFS
  1025. + --enable-stat-smbfs display filesystem stats for SMBFS
  1026. + --enable-drivers=<list> compile driver for LCDs in <list>.
  1027. + drivers may be separated with commas.
  1028. + \"all\" compiles all drivers
  1029. +
  1030. +Optional Packages:
  1031. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1032. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1033. + --with-lcdport=<port> the server port 13666
  1034. + --with-loadmax=<load> Max Load Avg at which the backlight will
  1035. + start blinking 1.3
  1036. + --with-loadmin=<load> Min Load Avg at which the backlight will
  1037. + turn off (asleep) 0.05
  1038. +
  1039. +Some influential environment variables:
  1040. + CC C compiler command
  1041. + CFLAGS C compiler flags
  1042. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1043. + nonstandard directory <lib dir>
  1044. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1045. + headers in a nonstandard directory <include dir>
  1046. + CPP C preprocessor
  1047. +
  1048. +Use these variables to override the choices made by `configure' or to help
  1049. +it to find libraries and programs with nonstandard names/locations.
  1050. +
  1051. +_ACEOF
  1052. +fi
  1053. +
  1054. +if test "$ac_init_help" = "recursive"; then
  1055. + # If there are subdirs, report their specific --help.
  1056. + ac_popdir=`pwd`
  1057. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1058. + test -d $ac_dir || continue
  1059. + ac_builddir=.
  1060. +
  1061. +if test "$ac_dir" != .; then
  1062. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1063. + # A "../" for each directory in $ac_dir_suffix.
  1064. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1065. +else
  1066. + ac_dir_suffix= ac_top_builddir=
  1067. +fi
  1068. +
  1069. +case $srcdir in
  1070. + .) # No --srcdir option. We are building in place.
  1071. + ac_srcdir=.
  1072. + if test -z "$ac_top_builddir"; then
  1073. + ac_top_srcdir=.
  1074. + else
  1075. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1076. + fi ;;
  1077. + [\\/]* | ?:[\\/]* ) # Absolute path.
  1078. + ac_srcdir=$srcdir$ac_dir_suffix;
  1079. + ac_top_srcdir=$srcdir ;;
  1080. + *) # Relative path.
  1081. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1082. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1083. +esac
  1084. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  1085. +# absolute.
  1086. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  1087. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  1088. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  1089. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  1090. +
  1091. + cd $ac_dir
  1092. + # Check for guested configure; otherwise get Cygnus style configure.
  1093. + if test -f $ac_srcdir/configure.gnu; then
  1094. + echo
  1095. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  1096. + elif test -f $ac_srcdir/configure; then
  1097. + echo
  1098. + $SHELL $ac_srcdir/configure --help=recursive
  1099. + elif test -f $ac_srcdir/configure.ac ||
  1100. + test -f $ac_srcdir/configure.in; then
  1101. + echo
  1102. + $ac_configure --help
  1103. + else
  1104. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1105. + fi
  1106. + cd $ac_popdir
  1107. + done
  1108. +fi
  1109. +
  1110. +test -n "$ac_init_help" && exit 0
  1111. +if $ac_init_version; then
  1112. + cat <<\_ACEOF
  1113. +
  1114. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  1115. +Free Software Foundation, Inc.
  1116. +This configure script is free software; the Free Software Foundation
  1117. +gives unlimited permission to copy, distribute and modify it.
  1118. +_ACEOF
  1119. + exit 0
  1120. +fi
  1121. +exec 5>config.log
  1122. +cat >&5 <<_ACEOF
  1123. +This file contains any messages produced by compilers while
  1124. +running configure, to aid debugging if configure makes a mistake.
  1125. +
  1126. +It was created by $as_me, which was
  1127. +generated by GNU Autoconf 2.57. Invocation command line was
  1128. +
  1129. + $ $0 $@
  1130. +
  1131. +_ACEOF
  1132. +{
  1133. +cat <<_ASUNAME
  1134. +## --------- ##
  1135. +## Platform. ##
  1136. +## --------- ##
  1137. +
  1138. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1139. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1140. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1141. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1142. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1143. +
  1144. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1145. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1146. +
  1147. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1148. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1149. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1150. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1151. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1152. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1153. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1154. +
  1155. +_ASUNAME
  1156. +
  1157. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1158. +for as_dir in $PATH
  1159. +do
  1160. + IFS=$as_save_IFS
  1161. + test -z "$as_dir" && as_dir=.
  1162. + echo "PATH: $as_dir"
  1163. +done
  1164. +
  1165. +} >&5
  1166. +
  1167. +cat >&5 <<_ACEOF
  1168. +
  1169. +
  1170. +## ----------- ##
  1171. +## Core tests. ##
  1172. +## ----------- ##
  1173. +
  1174. +_ACEOF
  1175. +
  1176. +
  1177. +# Keep a trace of the command line.
  1178. +# Strip out --no-create and --no-recursion so they do not pile up.
  1179. +# Strip out --silent because we don't want to record it for future runs.
  1180. +# Also quote any args containing shell meta-characters.
  1181. +# Make two passes to allow for proper duplicate-argument suppression.
  1182. +ac_configure_args=
  1183. +ac_configure_args0=
  1184. +ac_configure_args1=
  1185. +ac_sep=
  1186. +ac_must_keep_next=false
  1187. +for ac_pass in 1 2
  1188. +do
  1189. + for ac_arg
  1190. + do
  1191. + case $ac_arg in
  1192. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1193. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1194. + | -silent | --silent | --silen | --sile | --sil)
  1195. + continue ;;
  1196. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1197. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1198. + esac
  1199. + case $ac_pass in
  1200. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1201. + 2)
  1202. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1203. + if test $ac_must_keep_next = true; then
  1204. + ac_must_keep_next=false # Got value, back to normal.
  1205. + else
  1206. + case $ac_arg in
  1207. + *=* | --config-cache | -C | -disable-* | --disable-* \
  1208. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1209. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1210. + | -with-* | --with-* | -without-* | --without-* | --x)
  1211. + case "$ac_configure_args0 " in
  1212. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1213. + esac
  1214. + ;;
  1215. + -* ) ac_must_keep_next=true ;;
  1216. + esac
  1217. + fi
  1218. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1219. + # Get rid of the leading space.
  1220. + ac_sep=" "
  1221. + ;;
  1222. + esac
  1223. + done
  1224. +done
  1225. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1226. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1227. +
  1228. +# When interrupted or exit'd, cleanup temporary files, and complete
  1229. +# config.log. We remove comments because anyway the quotes in there
  1230. +# would cause problems or look ugly.
  1231. +# WARNING: Be sure not to use single quotes in there, as some shells,
  1232. +# such as our DU 5.0 friend, will then `close' the trap.
  1233. +trap 'exit_status=$?
  1234. + # Save into config.log some information that might help in debugging.
  1235. + {
  1236. + echo
  1237. +
  1238. + cat <<\_ASBOX
  1239. +## ---------------- ##
  1240. +## Cache variables. ##
  1241. +## ---------------- ##
  1242. +_ASBOX
  1243. + echo
  1244. + # The following way of writing the cache mishandles newlines in values,
  1245. +{
  1246. + (set) 2>&1 |
  1247. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1248. + *ac_space=\ *)
  1249. + sed -n \
  1250. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1251. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1252. + ;;
  1253. + *)
  1254. + sed -n \
  1255. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1256. + ;;
  1257. + esac;
  1258. +}
  1259. + echo
  1260. +
  1261. + cat <<\_ASBOX
  1262. +## ----------------- ##
  1263. +## Output variables. ##
  1264. +## ----------------- ##
  1265. +_ASBOX
  1266. + echo
  1267. + for ac_var in $ac_subst_vars
  1268. + do
  1269. + eval ac_val=$`echo $ac_var`
  1270. + echo "$ac_var='"'"'$ac_val'"'"'"
  1271. + done | sort
  1272. + echo
  1273. +
  1274. + if test -n "$ac_subst_files"; then
  1275. + cat <<\_ASBOX
  1276. +## ------------- ##
  1277. +## Output files. ##
  1278. +## ------------- ##
  1279. +_ASBOX
  1280. + echo
  1281. + for ac_var in $ac_subst_files
  1282. + do
  1283. + eval ac_val=$`echo $ac_var`
  1284. + echo "$ac_var='"'"'$ac_val'"'"'"
  1285. + done | sort
  1286. + echo
  1287. + fi
  1288. +
  1289. + if test -s confdefs.h; then
  1290. + cat <<\_ASBOX
  1291. +## ----------- ##
  1292. +## confdefs.h. ##
  1293. +## ----------- ##
  1294. +_ASBOX
  1295. + echo
  1296. + sed "/^$/d" confdefs.h | sort
  1297. + echo
  1298. + fi
  1299. + test "$ac_signal" != 0 &&
  1300. + echo "$as_me: caught signal $ac_signal"
  1301. + echo "$as_me: exit $exit_status"
  1302. + } >&5
  1303. + rm -f core core.* *.core &&
  1304. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1305. + exit $exit_status
  1306. + ' 0
  1307. +for ac_signal in 1 2 13 15; do
  1308. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1309. +done
  1310. +ac_signal=0
  1311. +
  1312. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1313. +rm -rf conftest* confdefs.h
  1314. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1315. +echo >confdefs.h
  1316. +
  1317. +# Predefined preprocessor variables.
  1318. +
  1319. +cat >>confdefs.h <<_ACEOF
  1320. +#define PACKAGE_NAME "$PACKAGE_NAME"
  1321. +_ACEOF
  1322. +
  1323. +
  1324. +cat >>confdefs.h <<_ACEOF
  1325. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1326. +_ACEOF
  1327. +
  1328. +
  1329. +cat >>confdefs.h <<_ACEOF
  1330. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  1331. +_ACEOF
  1332. +
  1333. +
  1334. +cat >>confdefs.h <<_ACEOF
  1335. +#define PACKAGE_STRING "$PACKAGE_STRING"
  1336. +_ACEOF
  1337. +
  1338. +
  1339. +cat >>confdefs.h <<_ACEOF
  1340. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1341. +_ACEOF
  1342. +
  1343. +# Let the site file select an alternate cache file if it wants to.
  1344. # Prefer explicitly selected file to automatically selected ones.
  1345. if test -z "$CONFIG_SITE"; then
  1346. if test "x$prefix" != xNONE; then
  1347. @@ -504,39 +1180,103 @@
  1348. fi
  1349. for ac_site_file in $CONFIG_SITE; do
  1350. if test -r "$ac_site_file"; then
  1351. - echo "loading site script $ac_site_file"
  1352. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1353. +echo "$as_me: loading site script $ac_site_file" >&6;}
  1354. + sed 's/^/| /' "$ac_site_file" >&5
  1355. . "$ac_site_file"
  1356. fi
  1357. done
  1358. if test -r "$cache_file"; then
  1359. - echo "loading cache $cache_file"
  1360. - . $cache_file
  1361. + # Some versions of bash will fail to source /dev/null (special
  1362. + # files actually), so we avoid doing that.
  1363. + if test -f "$cache_file"; then
  1364. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1365. +echo "$as_me: loading cache $cache_file" >&6;}
  1366. + case $cache_file in
  1367. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  1368. + *) . ./$cache_file;;
  1369. + esac
  1370. + fi
  1371. else
  1372. - echo "creating cache $cache_file"
  1373. - > $cache_file
  1374. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1375. +echo "$as_me: creating cache $cache_file" >&6;}
  1376. + >$cache_file
  1377. +fi
  1378. +
  1379. +# Check that the precious variables saved in the cache have kept the same
  1380. +# value.
  1381. +ac_cache_corrupted=false
  1382. +for ac_var in `(set) 2>&1 |
  1383. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1384. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1385. + eval ac_new_set=\$ac_env_${ac_var}_set
  1386. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1387. + eval ac_new_val="\$ac_env_${ac_var}_value"
  1388. + case $ac_old_set,$ac_new_set in
  1389. + set,)
  1390. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1391. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1392. + ac_cache_corrupted=: ;;
  1393. + ,set)
  1394. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1395. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1396. + ac_cache_corrupted=: ;;
  1397. + ,);;
  1398. + *)
  1399. + if test "x$ac_old_val" != "x$ac_new_val"; then
  1400. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1401. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1402. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1403. +echo "$as_me: former value: $ac_old_val" >&2;}
  1404. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1405. +echo "$as_me: current value: $ac_new_val" >&2;}
  1406. + ac_cache_corrupted=:
  1407. + fi;;
  1408. + esac
  1409. + # Pass precious variables to config.status.
  1410. + if test "$ac_new_set" = set; then
  1411. + case $ac_new_val in
  1412. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1413. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1414. + *) ac_arg=$ac_var=$ac_new_val ;;
  1415. + esac
  1416. + case " $ac_configure_args " in
  1417. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1418. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1419. + esac
  1420. + fi
  1421. +done
  1422. +if $ac_cache_corrupted; then
  1423. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1424. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1425. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1426. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1427. + { (exit 1); exit 1; }; }
  1428. fi
  1429. ac_ext=c
  1430. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1431. ac_cpp='$CPP $CPPFLAGS'
  1432. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1433. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1434. -cross_compiling=$ac_cv_prog_cc_cross
  1435. -
  1436. -ac_exeext=
  1437. -ac_objext=o
  1438. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1439. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1440. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  1441. - ac_n= ac_c='
  1442. -' ac_t=' '
  1443. - else
  1444. - ac_n=-n ac_c= ac_t=
  1445. - fi
  1446. -else
  1447. - ac_n= ac_c='\c' ac_t=
  1448. -fi
  1449. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1450. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1451. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1452. +
  1453. +
  1454. +
  1455. +
  1456. +
  1457. +
  1458. +
  1459. +
  1460. +
  1461. +
  1462. +
  1463. +
  1464. +
  1465. +
  1466. +
  1467. +
  1468. +
  1469. ac_aux_dir=
  1470. @@ -549,14 +1289,20 @@
  1471. ac_aux_dir=$ac_dir
  1472. ac_install_sh="$ac_aux_dir/install.sh -c"
  1473. break
  1474. + elif test -f $ac_dir/shtool; then
  1475. + ac_aux_dir=$ac_dir
  1476. + ac_install_sh="$ac_aux_dir/shtool install -c"
  1477. + break
  1478. fi
  1479. done
  1480. if test -z "$ac_aux_dir"; then
  1481. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1482. -fi
  1483. -ac_config_guess=$ac_aux_dir/config.guess
  1484. -ac_config_sub=$ac_aux_dir/config.sub
  1485. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1486. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1487. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1488. + { (exit 1); exit 1; }; }
  1489. +fi
  1490. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1491. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1492. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1493. # Find a good install program. We prefer a C program (faster),
  1494. # so one script is as good as another. But avoid the broken or
  1495. @@ -565,65 +1311,78 @@
  1496. # SunOS /usr/etc/install
  1497. # IRIX /sbin/install
  1498. # AIX /bin/install
  1499. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  1500. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1501. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1502. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1503. # ./install, which can be erroneously created by make from ./install.sh.
  1504. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1505. -echo "configure:574: checking for a BSD compatible install" >&5
  1506. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1507. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1508. if test -z "$INSTALL"; then
  1509. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1510. - echo $ac_n "(cached) $ac_c" 1>&6
  1511. +if test "${ac_cv_path_install+set}" = set; then
  1512. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1513. else
  1514. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1515. - for ac_dir in $PATH; do
  1516. - # Account for people who put trailing slashes in PATH elements.
  1517. - case "$ac_dir/" in
  1518. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1519. - *)
  1520. - # OSF1 and SCO ODT 3.0 have their own names for install.
  1521. - # Don't use installbsd from OSF since it installs stuff as root
  1522. - # by default.
  1523. - for ac_prog in ginstall scoinst install; do
  1524. - if test -f $ac_dir/$ac_prog; then
  1525. - if test $ac_prog = install &&
  1526. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1527. - # AIX install. It has an incompatible calling convention.
  1528. - :
  1529. - else
  1530. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  1531. - break 2
  1532. - fi
  1533. - fi
  1534. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1535. +for as_dir in $PATH
  1536. +do
  1537. + IFS=$as_save_IFS
  1538. + test -z "$as_dir" && as_dir=.
  1539. + # Account for people who put trailing slashes in PATH elements.
  1540. +case $as_dir/ in
  1541. + ./ | .// | /cC/* | \
  1542. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1543. + /usr/ucb/* ) ;;
  1544. + *)
  1545. + # OSF1 and SCO ODT 3.0 have their own names for install.
  1546. + # Don't use installbsd from OSF since it installs stuff as root
  1547. + # by default.
  1548. + for ac_prog in ginstall scoinst install; do
  1549. + for ac_exec_ext in '' $ac_executable_extensions; do
  1550. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1551. + if test $ac_prog = install &&
  1552. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1553. + # AIX install. It has an incompatible calling convention.
  1554. + :
  1555. + elif test $ac_prog = install &&
  1556. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1557. + # program-specific install script used by HP pwplus--don't use.
  1558. + :
  1559. + else
  1560. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1561. + break 3
  1562. + fi
  1563. + fi
  1564. done
  1565. - ;;
  1566. - esac
  1567. - done
  1568. - IFS="$ac_save_IFS"
  1569. + done
  1570. + ;;
  1571. +esac
  1572. +done
  1573. +
  1574. fi
  1575. if test "${ac_cv_path_install+set}" = set; then
  1576. - INSTALL="$ac_cv_path_install"
  1577. + INSTALL=$ac_cv_path_install
  1578. else
  1579. # As a last resort, use the slow shell script. We don't cache a
  1580. # path for INSTALL within a source directory, because that will
  1581. # break other packages using the cache if that directory is
  1582. # removed, or if the path is relative.
  1583. - INSTALL="$ac_install_sh"
  1584. + INSTALL=$ac_install_sh
  1585. fi
  1586. fi
  1587. -echo "$ac_t""$INSTALL" 1>&6
  1588. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  1589. +echo "${ECHO_T}$INSTALL" >&6
  1590. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1591. # It thinks the first close brace ends the variable substitution.
  1592. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1593. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1594. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1595. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1596. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  1597. -echo "configure:627: checking whether build environment is sane" >&5
  1598. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1599. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1600. # Just in case
  1601. sleep 1
  1602. echo timestamp > conftestfile
  1603. @@ -645,8 +1404,11 @@
  1604. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1605. # broken ls alias from the environment. This has actually
  1606. # happened. Such a system could not be considered "sane".
  1607. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  1608. -alias in your environment" 1>&2; exit 1; }
  1609. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1610. +alias in your environment" >&5
  1611. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1612. +alias in your environment" >&2;}
  1613. + { (exit 1); exit 1; }; }
  1614. fi
  1615. test "$2" = conftestfile
  1616. @@ -655,54 +1417,54 @@
  1617. # Ok.
  1618. :
  1619. else
  1620. - { echo "configure: error: newly created file is older than distributed files!
  1621. -Check your system clock" 1>&2; exit 1; }
  1622. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1623. +Check your system clock" >&5
  1624. +echo "$as_me: error: newly created file is older than distributed files!
  1625. +Check your system clock" >&2;}
  1626. + { (exit 1); exit 1; }; }
  1627. fi
  1628. rm -f conftest*
  1629. -echo "$ac_t""yes" 1>&6
  1630. -if test "$program_transform_name" = s,x,x,; then
  1631. - program_transform_name=
  1632. -else
  1633. - # Double any \ or $. echo might interpret backslashes.
  1634. - cat <<\EOF_SED > conftestsed
  1635. -s,\\,\\\\,g; s,\$,$$,g
  1636. -EOF_SED
  1637. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  1638. - rm -f conftestsed
  1639. -fi
  1640. +echo "$as_me:$LINENO: result: yes" >&5
  1641. +echo "${ECHO_T}yes" >&6
  1642. test "$program_prefix" != NONE &&
  1643. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  1644. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1645. # Use a double $ so make ignores it.
  1646. test "$program_suffix" != NONE &&
  1647. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  1648. -
  1649. -# sed with no file args requires a program.
  1650. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  1651. -
  1652. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1653. -echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1654. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1655. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1656. - echo $ac_n "(cached) $ac_c" 1>&6
  1657. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1658. +# Double any \ or $. echo might interpret backslashes.
  1659. +# By default was `s,x,x', remove it if useless.
  1660. +cat <<\_ACEOF >conftest.sed
  1661. +s/[\\$]/&&/g;s/;s,x,x,$//
  1662. +_ACEOF
  1663. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1664. +rm conftest.sed
  1665. +
  1666. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1667. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1668. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1669. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1670. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1671. else
  1672. - cat > conftestmake <<\EOF
  1673. + cat >conftest.make <<\_ACEOF
  1674. all:
  1675. - @echo 'ac_maketemp="${MAKE}"'
  1676. -EOF
  1677. + @echo 'ac_maketemp="$(MAKE)"'
  1678. +_ACEOF
  1679. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1680. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1681. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1682. if test -n "$ac_maketemp"; then
  1683. eval ac_cv_prog_make_${ac_make}_set=yes
  1684. else
  1685. eval ac_cv_prog_make_${ac_make}_set=no
  1686. fi
  1687. -rm -f conftestmake
  1688. +rm -f conftest.make
  1689. fi
  1690. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1691. - echo "$ac_t""yes" 1>&6
  1692. + echo "$as_me:$LINENO: result: yes" >&5
  1693. +echo "${ECHO_T}yes" >&6
  1694. SET_MAKE=
  1695. else
  1696. - echo "$ac_t""no" 1>&6
  1697. + echo "$as_me:$LINENO: result: no" >&5
  1698. +echo "${ECHO_T}no" >&6
  1699. SET_MAKE="MAKE=${MAKE-make}"
  1700. fi
  1701. @@ -712,147 +1474,194 @@
  1702. VERSION=0.4.1
  1703. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1704. - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  1705. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1706. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1707. + { (exit 1); exit 1; }; }
  1708. fi
  1709. -cat >> confdefs.h <<EOF
  1710. +
  1711. +cat >>confdefs.h <<_ACEOF
  1712. #define PACKAGE "$PACKAGE"
  1713. -EOF
  1714. +_ACEOF
  1715. -cat >> confdefs.h <<EOF
  1716. +
  1717. +cat >>confdefs.h <<_ACEOF
  1718. #define VERSION "$VERSION"
  1719. -EOF
  1720. +_ACEOF
  1721. missing_dir=`cd $ac_aux_dir && pwd`
  1722. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  1723. -echo "configure:730: checking for working aclocal" >&5
  1724. +echo "$as_me:$LINENO: checking for working aclocal" >&5
  1725. +echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
  1726. # Run test in a subshell; some versions of sh will print an error if
  1727. # an executable is not found, even if stderr is redirected.
  1728. # Redirect stdin to placate older versions of autoconf. Sigh.
  1729. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  1730. ACLOCAL=aclocal
  1731. - echo "$ac_t""found" 1>&6
  1732. + echo "$as_me:$LINENO: result: found" >&5
  1733. +echo "${ECHO_T}found" >&6
  1734. else
  1735. ACLOCAL="$missing_dir/missing aclocal"
  1736. - echo "$ac_t""missing" 1>&6
  1737. + echo "$as_me:$LINENO: result: missing" >&5
  1738. +echo "${ECHO_T}missing" >&6
  1739. fi
  1740. -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  1741. -echo "configure:743: checking for working autoconf" >&5
  1742. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  1743. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  1744. # Run test in a subshell; some versions of sh will print an error if
  1745. # an executable is not found, even if stderr is redirected.
  1746. # Redirect stdin to placate older versions of autoconf. Sigh.
  1747. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1748. AUTOCONF=autoconf
  1749. - echo "$ac_t""found" 1>&6
  1750. + echo "$as_me:$LINENO: result: found" >&5
  1751. +echo "${ECHO_T}found" >&6
  1752. else
  1753. AUTOCONF="$missing_dir/missing autoconf"
  1754. - echo "$ac_t""missing" 1>&6
  1755. + echo "$as_me:$LINENO: result: missing" >&5
  1756. +echo "${ECHO_T}missing" >&6
  1757. fi
  1758. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  1759. -echo "configure:756: checking for working automake" >&5
  1760. +echo "$as_me:$LINENO: checking for working automake" >&5
  1761. +echo $ECHO_N "checking for working automake... $ECHO_C" >&6
  1762. # Run test in a subshell; some versions of sh will print an error if
  1763. # an executable is not found, even if stderr is redirected.
  1764. # Redirect stdin to placate older versions of autoconf. Sigh.
  1765. if (automake --version) < /dev/null > /dev/null 2>&1; then
  1766. AUTOMAKE=automake
  1767. - echo "$ac_t""found" 1>&6
  1768. + echo "$as_me:$LINENO: result: found" >&5
  1769. +echo "${ECHO_T}found" >&6
  1770. else
  1771. AUTOMAKE="$missing_dir/missing automake"
  1772. - echo "$ac_t""missing" 1>&6
  1773. + echo "$as_me:$LINENO: result: missing" >&5
  1774. +echo "${ECHO_T}missing" >&6
  1775. fi
  1776. -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  1777. -echo "configure:769: checking for working autoheader" >&5
  1778. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  1779. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  1780. # Run test in a subshell; some versions of sh will print an error if
  1781. # an executable is not found, even if stderr is redirected.
  1782. # Redirect stdin to placate older versions of autoconf. Sigh.
  1783. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1784. AUTOHEADER=autoheader
  1785. - echo "$ac_t""found" 1>&6
  1786. + echo "$as_me:$LINENO: result: found" >&5
  1787. +echo "${ECHO_T}found" >&6
  1788. else
  1789. AUTOHEADER="$missing_dir/missing autoheader"
  1790. - echo "$ac_t""missing" 1>&6
  1791. + echo "$as_me:$LINENO: result: missing" >&5
  1792. +echo "${ECHO_T}missing" >&6
  1793. fi
  1794. -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  1795. -echo "configure:782: checking for working makeinfo" >&5
  1796. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  1797. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  1798. # Run test in a subshell; some versions of sh will print an error if
  1799. # an executable is not found, even if stderr is redirected.
  1800. # Redirect stdin to placate older versions of autoconf. Sigh.
  1801. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1802. MAKEINFO=makeinfo
  1803. - echo "$ac_t""found" 1>&6
  1804. + echo "$as_me:$LINENO: result: found" >&5
  1805. +echo "${ECHO_T}found" >&6
  1806. else
  1807. MAKEINFO="$missing_dir/missing makeinfo"
  1808. - echo "$ac_t""missing" 1>&6
  1809. + echo "$as_me:$LINENO: result: missing" >&5
  1810. +echo "${ECHO_T}missing" >&6
  1811. fi
  1812. + ac_config_headers="$ac_config_headers config.h"
  1813. -
  1814. + ac_config_commands="$ac_config_commands default-1"
  1815. # Make sure we can run config.sub.
  1816. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1817. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1818. -fi
  1819. -
  1820. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  1821. -echo "configure:806: checking host system type" >&5
  1822. -
  1823. -host_alias=$host
  1824. -case "$host_alias" in
  1825. -NONE)
  1826. - case $nonopt in
  1827. - NONE)
  1828. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1829. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1830. - fi ;;
  1831. - *) host_alias=$nonopt ;;
  1832. - esac ;;
  1833. -esac
  1834. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  1835. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1836. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1837. + { (exit 1); exit 1; }; }
  1838. +
  1839. +echo "$as_me:$LINENO: checking build system type" >&5
  1840. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1841. +if test "${ac_cv_build+set}" = set; then
  1842. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1843. +else
  1844. + ac_cv_build_alias=$build_alias
  1845. +test -z "$ac_cv_build_alias" &&
  1846. + ac_cv_build_alias=`$ac_config_guess`
  1847. +test -z "$ac_cv_build_alias" &&
  1848. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1849. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1850. + { (exit 1); exit 1; }; }
  1851. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1852. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1853. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1854. + { (exit 1); exit 1; }; }
  1855. +
  1856. +fi
  1857. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1858. +echo "${ECHO_T}$ac_cv_build" >&6
  1859. +build=$ac_cv_build
  1860. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1861. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1862. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1863. +
  1864. +
  1865. +echo "$as_me:$LINENO: checking host system type" >&5
  1866. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1867. +if test "${ac_cv_host+set}" = set; then
  1868. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1869. +else
  1870. + ac_cv_host_alias=$host_alias
  1871. +test -z "$ac_cv_host_alias" &&
  1872. + ac_cv_host_alias=$ac_cv_build_alias
  1873. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1874. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1875. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1876. + { (exit 1); exit 1; }; }
  1877. +
  1878. +fi
  1879. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1880. +echo "${ECHO_T}$ac_cv_host" >&6
  1881. +host=$ac_cv_host
  1882. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1883. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1884. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1885. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1886. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1887. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1888. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1889. -echo "$ac_t""$host" 1>&6
  1890. case "$host" in
  1891. -*-*-*linux*)
  1892. - cat >> confdefs.h <<\EOF
  1893. +*-*-*linux*)
  1894. + cat >>confdefs.h <<\_ACEOF
  1895. #define LINUX 1
  1896. -EOF
  1897. +_ACEOF
  1898. ;;
  1899. *-*-*solaris*)
  1900. - cat >> confdefs.h <<\EOF
  1901. + cat >>confdefs.h <<\_ACEOF
  1902. #define SOLARIS 1
  1903. -EOF
  1904. +_ACEOF
  1905. ;;
  1906. esac
  1907. -echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
  1908. -echo "configure:842: checking whether to enable debugging" >&5
  1909. +echo "$as_me:$LINENO: checking whether to enable debugging" >&5
  1910. +echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
  1911. # Check whether --enable-debug or --disable-debug was given.
  1912. if test "${enable_debug+set}" = set; then
  1913. enableval="$enable_debug"
  1914. - cat >> confdefs.h <<\EOF
  1915. + if [ "$enableval" = "yes" ]; then
  1916. + cat >>confdefs.h <<\_ACEOF
  1917. #define DEBUG 1
  1918. -EOF
  1919. +_ACEOF
  1920. - debug="yes"
  1921. + debug="yes"
  1922. + else
  1923. + debug="no"
  1924. + fi
  1925. else
  1926. debug="no"
  1927. -fi
  1928. -
  1929. -echo "$ac_t""$debug" 1>&6
  1930. +fi;
  1931. +echo "$as_me:$LINENO: result: $debug" >&5
  1932. +echo "${ECHO_T}$debug" >&6
  1933. if test $debug = "yes"; then
  1934. CFLAGS="-g"
  1935. @@ -862,214 +1671,643 @@
  1936. CFLAGS="-Wall $CFLAGS"
  1937. export CFLAGS
  1938. -# Extract the first word of "gcc", so it can be a program name with args.
  1939. +ac_ext=c
  1940. +ac_cpp='$CPP $CPPFLAGS'
  1941. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1942. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1943. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1944. +if test -n "$ac_tool_prefix"; then
  1945. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1946. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1947. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1948. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1949. +if test "${ac_cv_prog_CC+set}" = set; then
  1950. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1951. +else
  1952. + if test -n "$CC"; then
  1953. + ac_cv_prog_CC="$CC" # Let the user override the test.
  1954. +else
  1955. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1956. +for as_dir in $PATH
  1957. +do
  1958. + IFS=$as_save_IFS
  1959. + test -z "$as_dir" && as_dir=.
  1960. + for ac_exec_ext in '' $ac_executable_extensions; do
  1961. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1962. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1963. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1964. + break 2
  1965. + fi
  1966. +done
  1967. +done
  1968. +
  1969. +fi
  1970. +fi
  1971. +CC=$ac_cv_prog_CC
  1972. +if test -n "$CC"; then
  1973. + echo "$as_me:$LINENO: result: $CC" >&5
  1974. +echo "${ECHO_T}$CC" >&6
  1975. +else
  1976. + echo "$as_me:$LINENO: result: no" >&5
  1977. +echo "${ECHO_T}no" >&6
  1978. +fi
  1979. +
  1980. +fi
  1981. +if test -z "$ac_cv_prog_CC"; then
  1982. + ac_ct_CC=$CC
  1983. + # Extract the first word of "gcc", so it can be a program name with args.
  1984. set dummy gcc; ac_word=$2
  1985. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1986. -echo "configure:869: checking for $ac_word" >&5
  1987. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1988. - echo $ac_n "(cached) $ac_c" 1>&6
  1989. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1990. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1991. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1992. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1993. +else
  1994. + if test -n "$ac_ct_CC"; then
  1995. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1996. +else
  1997. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1998. +for as_dir in $PATH
  1999. +do
  2000. + IFS=$as_save_IFS
  2001. + test -z "$as_dir" && as_dir=.
  2002. + for ac_exec_ext in '' $ac_executable_extensions; do
  2003. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2004. + ac_cv_prog_ac_ct_CC="gcc"
  2005. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2006. + break 2
  2007. + fi
  2008. +done
  2009. +done
  2010. +
  2011. +fi
  2012. +fi
  2013. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2014. +if test -n "$ac_ct_CC"; then
  2015. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2016. +echo "${ECHO_T}$ac_ct_CC" >&6
  2017. +else
  2018. + echo "$as_me:$LINENO: result: no" >&5
  2019. +echo "${ECHO_T}no" >&6
  2020. +fi
  2021. +
  2022. + CC=$ac_ct_CC
  2023. +else
  2024. + CC="$ac_cv_prog_CC"
  2025. +fi
  2026. +
  2027. +if test -z "$CC"; then
  2028. + if test -n "$ac_tool_prefix"; then
  2029. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2030. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  2031. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2032. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2033. +if test "${ac_cv_prog_CC+set}" = set; then
  2034. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2035. else
  2036. if test -n "$CC"; then
  2037. ac_cv_prog_CC="$CC" # Let the user override the test.
  2038. else
  2039. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2040. - ac_dummy="$PATH"
  2041. - for ac_dir in $ac_dummy; do
  2042. - test -z "$ac_dir" && ac_dir=.
  2043. - if test -f $ac_dir/$ac_word; then
  2044. - ac_cv_prog_CC="gcc"
  2045. - break
  2046. - fi
  2047. - done
  2048. - IFS="$ac_save_ifs"
  2049. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2050. +for as_dir in $PATH
  2051. +do
  2052. + IFS=$as_save_IFS
  2053. + test -z "$as_dir" && as_dir=.
  2054. + for ac_exec_ext in '' $ac_executable_extensions; do
  2055. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2056. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  2057. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2058. + break 2
  2059. + fi
  2060. +done
  2061. +done
  2062. +
  2063. fi
  2064. fi
  2065. -CC="$ac_cv_prog_CC"
  2066. +CC=$ac_cv_prog_CC
  2067. if test -n "$CC"; then
  2068. - echo "$ac_t""$CC" 1>&6
  2069. + echo "$as_me:$LINENO: result: $CC" >&5
  2070. +echo "${ECHO_T}$CC" >&6
  2071. +else
  2072. + echo "$as_me:$LINENO: result: no" >&5
  2073. +echo "${ECHO_T}no" >&6
  2074. +fi
  2075. +
  2076. +fi
  2077. +if test -z "$ac_cv_prog_CC"; then
  2078. + ac_ct_CC=$CC
  2079. + # Extract the first word of "cc", so it can be a program name with args.
  2080. +set dummy cc; ac_word=$2
  2081. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2082. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2083. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2084. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2085. +else
  2086. + if test -n "$ac_ct_CC"; then
  2087. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2088. +else
  2089. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2090. +for as_dir in $PATH
  2091. +do
  2092. + IFS=$as_save_IFS
  2093. + test -z "$as_dir" && as_dir=.
  2094. + for ac_exec_ext in '' $ac_executable_extensions; do
  2095. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2096. + ac_cv_prog_ac_ct_CC="cc"
  2097. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2098. + break 2
  2099. + fi
  2100. +done
  2101. +done
  2102. +
  2103. +fi
  2104. +fi
  2105. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2106. +if test -n "$ac_ct_CC"; then
  2107. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2108. +echo "${ECHO_T}$ac_ct_CC" >&6
  2109. +else
  2110. + echo "$as_me:$LINENO: result: no" >&5
  2111. +echo "${ECHO_T}no" >&6
  2112. +fi
  2113. +
  2114. + CC=$ac_ct_CC
  2115. else
  2116. - echo "$ac_t""no" 1>&6
  2117. + CC="$ac_cv_prog_CC"
  2118. fi
  2119. +fi
  2120. if test -z "$CC"; then
  2121. # Extract the first word of "cc", so it can be a program name with args.
  2122. set dummy cc; ac_word=$2
  2123. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2124. -echo "configure:899: checking for $ac_word" >&5
  2125. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2126. - echo $ac_n "(cached) $ac_c" 1>&6
  2127. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2128. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2129. +if test "${ac_cv_prog_CC+set}" = set; then
  2130. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2131. else
  2132. if test -n "$CC"; then
  2133. ac_cv_prog_CC="$CC" # Let the user override the test.
  2134. else
  2135. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2136. ac_prog_rejected=no
  2137. - ac_dummy="$PATH"
  2138. - for ac_dir in $ac_dummy; do
  2139. - test -z "$ac_dir" && ac_dir=.
  2140. - if test -f $ac_dir/$ac_word; then
  2141. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2142. - ac_prog_rejected=yes
  2143. - continue
  2144. - fi
  2145. - ac_cv_prog_CC="cc"
  2146. - break
  2147. - fi
  2148. - done
  2149. - IFS="$ac_save_ifs"
  2150. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2151. +for as_dir in $PATH
  2152. +do
  2153. + IFS=$as_save_IFS
  2154. + test -z "$as_dir" && as_dir=.
  2155. + for ac_exec_ext in '' $ac_executable_extensions; do
  2156. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2157. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2158. + ac_prog_rejected=yes
  2159. + continue
  2160. + fi
  2161. + ac_cv_prog_CC="cc"
  2162. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2163. + break 2
  2164. + fi
  2165. +done
  2166. +done
  2167. +
  2168. if test $ac_prog_rejected = yes; then
  2169. # We found a bogon in the path, so make sure we never use it.
  2170. set dummy $ac_cv_prog_CC
  2171. shift
  2172. - if test $# -gt 0; then
  2173. + if test $# != 0; then
  2174. # We chose a different compiler from the bogus one.
  2175. # However, it has the same basename, so the bogon will be chosen
  2176. # first if we set CC to just the basename; use the full file name.
  2177. shift
  2178. - set dummy "$ac_dir/$ac_word" "$@"
  2179. - shift
  2180. - ac_cv_prog_CC="$@"
  2181. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2182. fi
  2183. fi
  2184. fi
  2185. fi
  2186. -CC="$ac_cv_prog_CC"
  2187. +CC=$ac_cv_prog_CC
  2188. if test -n "$CC"; then
  2189. - echo "$ac_t""$CC" 1>&6
  2190. + echo "$as_me:$LINENO: result: $CC" >&5
  2191. +echo "${ECHO_T}$CC" >&6
  2192. else
  2193. - echo "$ac_t""no" 1>&6
  2194. + echo "$as_me:$LINENO: result: no" >&5
  2195. +echo "${ECHO_T}no" >&6
  2196. fi
  2197. - if test -z "$CC"; then
  2198. - case "`uname -s`" in
  2199. - *win32* | *WIN32*)
  2200. - # Extract the first word of "cl", so it can be a program name with args.
  2201. -set dummy cl; ac_word=$2
  2202. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2203. -echo "configure:950: checking for $ac_word" >&5
  2204. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2205. - echo $ac_n "(cached) $ac_c" 1>&6
  2206. +fi
  2207. +if test -z "$CC"; then
  2208. + if test -n "$ac_tool_prefix"; then
  2209. + for ac_prog in cl
  2210. + do
  2211. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2212. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2213. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2214. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2215. +if test "${ac_cv_prog_CC+set}" = set; then
  2216. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2217. else
  2218. if test -n "$CC"; then
  2219. ac_cv_prog_CC="$CC" # Let the user override the test.
  2220. else
  2221. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2222. - ac_dummy="$PATH"
  2223. - for ac_dir in $ac_dummy; do
  2224. - test -z "$ac_dir" && ac_dir=.
  2225. - if test -f $ac_dir/$ac_word; then
  2226. - ac_cv_prog_CC="cl"
  2227. - break
  2228. - fi
  2229. - done
  2230. - IFS="$ac_save_ifs"
  2231. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2232. +for as_dir in $PATH
  2233. +do
  2234. + IFS=$as_save_IFS
  2235. + test -z "$as_dir" && as_dir=.
  2236. + for ac_exec_ext in '' $ac_executable_extensions; do
  2237. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2238. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2239. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2240. + break 2
  2241. + fi
  2242. +done
  2243. +done
  2244. +
  2245. fi
  2246. fi
  2247. -CC="$ac_cv_prog_CC"
  2248. +CC=$ac_cv_prog_CC
  2249. if test -n "$CC"; then
  2250. - echo "$ac_t""$CC" 1>&6
  2251. + echo "$as_me:$LINENO: result: $CC" >&5
  2252. +echo "${ECHO_T}$CC" >&6
  2253. else
  2254. - echo "$ac_t""no" 1>&6
  2255. + echo "$as_me:$LINENO: result: no" >&5
  2256. +echo "${ECHO_T}no" >&6
  2257. fi
  2258. - ;;
  2259. - esac
  2260. +
  2261. + test -n "$CC" && break
  2262. + done
  2263. +fi
  2264. +if test -z "$CC"; then
  2265. + ac_ct_CC=$CC
  2266. + for ac_prog in cl
  2267. +do
  2268. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2269. +set dummy $ac_prog; ac_word=$2
  2270. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2271. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2272. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2273. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2274. +else
  2275. + if test -n "$ac_ct_CC"; then
  2276. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2277. +else
  2278. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2279. +for as_dir in $PATH
  2280. +do
  2281. + IFS=$as_save_IFS
  2282. + test -z "$as_dir" && as_dir=.
  2283. + for ac_exec_ext in '' $ac_executable_extensions; do
  2284. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2285. + ac_cv_prog_ac_ct_CC="$ac_prog"
  2286. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2287. + break 2
  2288. fi
  2289. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2290. +done
  2291. +done
  2292. +
  2293. +fi
  2294. +fi
  2295. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2296. +if test -n "$ac_ct_CC"; then
  2297. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2298. +echo "${ECHO_T}$ac_ct_CC" >&6
  2299. +else
  2300. + echo "$as_me:$LINENO: result: no" >&5
  2301. +echo "${ECHO_T}no" >&6
  2302. fi
  2303. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2304. -echo "configure:982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2305. + test -n "$ac_ct_CC" && break
  2306. +done
  2307. -ac_ext=c
  2308. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2309. -ac_cpp='$CPP $CPPFLAGS'
  2310. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2311. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2312. -cross_compiling=$ac_cv_prog_cc_cross
  2313. + CC=$ac_ct_CC
  2314. +fi
  2315. -cat > conftest.$ac_ext << EOF
  2316. +fi
  2317. -#line 993 "configure"
  2318. -#include "confdefs.h"
  2319. -main(){return(0);}
  2320. -EOF
  2321. -if { (eval echo configure:998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2322. - ac_cv_prog_cc_works=yes
  2323. - # If we can't run a trivial program, we are probably using a cross compiler.
  2324. - if (./conftest; exit) 2>/dev/null; then
  2325. - ac_cv_prog_cc_cross=no
  2326. - else
  2327. - ac_cv_prog_cc_cross=yes
  2328. - fi
  2329. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2330. +See \`config.log' for more details." >&5
  2331. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  2332. +See \`config.log' for more details." >&2;}
  2333. + { (exit 1); exit 1; }; }
  2334. +
  2335. +# Provide some information about the compiler.
  2336. +echo "$as_me:$LINENO:" \
  2337. + "checking for C compiler version" >&5
  2338. +ac_compiler=`set X $ac_compile; echo $2`
  2339. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2340. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  2341. + ac_status=$?
  2342. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. + (exit $ac_status); }
  2344. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2345. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  2346. + ac_status=$?
  2347. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2348. + (exit $ac_status); }
  2349. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2350. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  2351. + ac_status=$?
  2352. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2353. + (exit $ac_status); }
  2354. +
  2355. +cat >conftest.$ac_ext <<_ACEOF
  2356. +#line $LINENO "configure"
  2357. +/* confdefs.h. */
  2358. +_ACEOF
  2359. +cat confdefs.h >>conftest.$ac_ext
  2360. +cat >>conftest.$ac_ext <<_ACEOF
  2361. +/* end confdefs.h. */
  2362. +
  2363. +int
  2364. +main ()
  2365. +{
  2366. +
  2367. + ;
  2368. + return 0;
  2369. +}
  2370. +_ACEOF
  2371. +ac_clean_files_save=$ac_clean_files
  2372. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2373. +# Try to create an executable without -o first, disregard a.out.
  2374. +# It will help us diagnose broken compilers, and finding out an intuition
  2375. +# of exeext.
  2376. +echo "$as_me:$LINENO: checking for C compiler default output" >&5
  2377. +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  2378. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2379. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2380. + (eval $ac_link_default) 2>&5
  2381. + ac_status=$?
  2382. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2383. + (exit $ac_status); }; then
  2384. + # Find the output, starting from the most likely. This scheme is
  2385. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2386. +# resort.
  2387. +
  2388. +# Be careful to initialize this variable, since it used to be cached.
  2389. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2390. +ac_cv_exeext=
  2391. +# b.out is created by i960 compilers.
  2392. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2393. +do
  2394. + test -f "$ac_file" || continue
  2395. + case $ac_file in
  2396. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2397. + ;;
  2398. + conftest.$ac_ext )
  2399. + # This is the source file.
  2400. + ;;
  2401. + [ab].out )
  2402. + # We found the default executable, but exeext='' is most
  2403. + # certainly right.
  2404. + break;;
  2405. + *.* )
  2406. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2407. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  2408. + # but it would be cool to find out if it's true. Does anybody
  2409. + # maintain Libtool? --akim.
  2410. + export ac_cv_exeext
  2411. + break;;
  2412. + * )
  2413. + break;;
  2414. + esac
  2415. +done
  2416. else
  2417. - echo "configure: failed program was:" >&5
  2418. - cat conftest.$ac_ext >&5
  2419. - ac_cv_prog_cc_works=no
  2420. -fi
  2421. -rm -fr conftest*
  2422. -ac_ext=c
  2423. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2424. -ac_cpp='$CPP $CPPFLAGS'
  2425. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2426. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2427. -cross_compiling=$ac_cv_prog_cc_cross
  2428. + echo "$as_me: failed program was:" >&5
  2429. +sed 's/^/| /' conftest.$ac_ext >&5
  2430. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2431. -if test $ac_cv_prog_cc_works = no; then
  2432. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2433. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2434. +See \`config.log' for more details." >&5
  2435. +echo "$as_me: error: C compiler cannot create executables
  2436. +See \`config.log' for more details." >&2;}
  2437. + { (exit 77); exit 77; }; }
  2438. +fi
  2439. +
  2440. +ac_exeext=$ac_cv_exeext
  2441. +echo "$as_me:$LINENO: result: $ac_file" >&5
  2442. +echo "${ECHO_T}$ac_file" >&6
  2443. +
  2444. +# Check the compiler produces executables we can run. If not, either
  2445. +# the compiler is broken, or we cross compile.
  2446. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2447. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2448. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2449. +# If not cross compiling, check that we can run a simple program.
  2450. +if test "$cross_compiling" != yes; then
  2451. + if { ac_try='./$ac_file'
  2452. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2453. + (eval $ac_try) 2>&5
  2454. + ac_status=$?
  2455. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2456. + (exit $ac_status); }; }; then
  2457. + cross_compiling=no
  2458. + else
  2459. + if test "$cross_compiling" = maybe; then
  2460. + cross_compiling=yes
  2461. + else
  2462. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2463. +If you meant to cross compile, use \`--host'.
  2464. +See \`config.log' for more details." >&5
  2465. +echo "$as_me: error: cannot run C compiled programs.
  2466. +If you meant to cross compile, use \`--host'.
  2467. +See \`config.log' for more details." >&2;}
  2468. + { (exit 1); exit 1; }; }
  2469. + fi
  2470. + fi
  2471. fi
  2472. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2473. -echo "configure:1024: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2474. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2475. -cross_compiling=$ac_cv_prog_cc_cross
  2476. +echo "$as_me:$LINENO: result: yes" >&5
  2477. +echo "${ECHO_T}yes" >&6
  2478. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2479. -echo "configure:1029: checking whether we are using GNU C" >&5
  2480. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2481. - echo $ac_n "(cached) $ac_c" 1>&6
  2482. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2483. +ac_clean_files=$ac_clean_files_save
  2484. +# Check the compiler produces executables we can run. If not, either
  2485. +# the compiler is broken, or we cross compile.
  2486. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2487. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2488. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2489. +echo "${ECHO_T}$cross_compiling" >&6
  2490. +
  2491. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2492. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2493. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2494. + (eval $ac_link) 2>&5
  2495. + ac_status=$?
  2496. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. + (exit $ac_status); }; then
  2498. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2499. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2500. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  2501. +# `rm'.
  2502. +for ac_file in conftest.exe conftest conftest.*; do
  2503. + test -f "$ac_file" || continue
  2504. + case $ac_file in
  2505. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2506. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2507. + export ac_cv_exeext
  2508. + break;;
  2509. + * ) break;;
  2510. + esac
  2511. +done
  2512. else
  2513. - cat > conftest.c <<EOF
  2514. -#ifdef __GNUC__
  2515. - yes;
  2516. -#endif
  2517. -EOF
  2518. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2519. - ac_cv_prog_gcc=yes
  2520. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2521. +See \`config.log' for more details." >&5
  2522. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2523. +See \`config.log' for more details." >&2;}
  2524. + { (exit 1); exit 1; }; }
  2525. +fi
  2526. +
  2527. +rm -f conftest$ac_cv_exeext
  2528. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2529. +echo "${ECHO_T}$ac_cv_exeext" >&6
  2530. +
  2531. +rm -f conftest.$ac_ext
  2532. +EXEEXT=$ac_cv_exeext
  2533. +ac_exeext=$EXEEXT
  2534. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2535. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2536. +if test "${ac_cv_objext+set}" = set; then
  2537. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2538. +else
  2539. + cat >conftest.$ac_ext <<_ACEOF
  2540. +#line $LINENO "configure"
  2541. +/* confdefs.h. */
  2542. +_ACEOF
  2543. +cat confdefs.h >>conftest.$ac_ext
  2544. +cat >>conftest.$ac_ext <<_ACEOF
  2545. +/* end confdefs.h. */
  2546. +
  2547. +int
  2548. +main ()
  2549. +{
  2550. +
  2551. + ;
  2552. + return 0;
  2553. +}
  2554. +_ACEOF
  2555. +rm -f conftest.o conftest.obj
  2556. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2557. + (eval $ac_compile) 2>&5
  2558. + ac_status=$?
  2559. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2560. + (exit $ac_status); }; then
  2561. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2562. + case $ac_file in
  2563. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2564. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2565. + break;;
  2566. + esac
  2567. +done
  2568. else
  2569. - ac_cv_prog_gcc=no
  2570. -fi
  2571. -fi
  2572. + echo "$as_me: failed program was:" >&5
  2573. +sed 's/^/| /' conftest.$ac_ext >&5
  2574. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2575. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2576. +See \`config.log' for more details." >&5
  2577. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2578. +See \`config.log' for more details." >&2;}
  2579. + { (exit 1); exit 1; }; }
  2580. +fi
  2581. +
  2582. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2583. +fi
  2584. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2585. +echo "${ECHO_T}$ac_cv_objext" >&6
  2586. +OBJEXT=$ac_cv_objext
  2587. +ac_objext=$OBJEXT
  2588. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2589. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2590. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2591. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2592. +else
  2593. + cat >conftest.$ac_ext <<_ACEOF
  2594. +#line $LINENO "configure"
  2595. +/* confdefs.h. */
  2596. +_ACEOF
  2597. +cat confdefs.h >>conftest.$ac_ext
  2598. +cat >>conftest.$ac_ext <<_ACEOF
  2599. +/* end confdefs.h. */
  2600. +
  2601. +int
  2602. +main ()
  2603. +{
  2604. +#ifndef __GNUC__
  2605. + choke me
  2606. +#endif
  2607. -if test $ac_cv_prog_gcc = yes; then
  2608. - GCC=yes
  2609. -else
  2610. - GCC=
  2611. -fi
  2612. + ;
  2613. + return 0;
  2614. +}
  2615. +_ACEOF
  2616. +rm -f conftest.$ac_objext
  2617. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2618. + (eval $ac_compile) 2>&5
  2619. + ac_status=$?
  2620. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2621. + (exit $ac_status); } &&
  2622. + { ac_try='test -s conftest.$ac_objext'
  2623. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2624. + (eval $ac_try) 2>&5
  2625. + ac_status=$?
  2626. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2627. + (exit $ac_status); }; }; then
  2628. + ac_compiler_gnu=yes
  2629. +else
  2630. + echo "$as_me: failed program was:" >&5
  2631. +sed 's/^/| /' conftest.$ac_ext >&5
  2632. +
  2633. +ac_compiler_gnu=no
  2634. +fi
  2635. +rm -f conftest.$ac_objext conftest.$ac_ext
  2636. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2637. +
  2638. +fi
  2639. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2640. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2641. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  2642. +ac_test_CFLAGS=${CFLAGS+set}
  2643. +ac_save_CFLAGS=$CFLAGS
  2644. +CFLAGS="-g"
  2645. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2646. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2647. +if test "${ac_cv_prog_cc_g+set}" = set; then
  2648. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2649. +else
  2650. + cat >conftest.$ac_ext <<_ACEOF
  2651. +#line $LINENO "configure"
  2652. +/* confdefs.h. */
  2653. +_ACEOF
  2654. +cat confdefs.h >>conftest.$ac_ext
  2655. +cat >>conftest.$ac_ext <<_ACEOF
  2656. +/* end confdefs.h. */
  2657. +
  2658. +int
  2659. +main ()
  2660. +{
  2661. -ac_test_CFLAGS="${CFLAGS+set}"
  2662. -ac_save_CFLAGS="$CFLAGS"
  2663. -CFLAGS=
  2664. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2665. -echo "configure:1057: checking whether ${CC-cc} accepts -g" >&5
  2666. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2667. - echo $ac_n "(cached) $ac_c" 1>&6
  2668. -else
  2669. - echo 'void f(){}' > conftest.c
  2670. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2671. + ;
  2672. + return 0;
  2673. +}
  2674. +_ACEOF
  2675. +rm -f conftest.$ac_objext
  2676. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2677. + (eval $ac_compile) 2>&5
  2678. + ac_status=$?
  2679. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2680. + (exit $ac_status); } &&
  2681. + { ac_try='test -s conftest.$ac_objext'
  2682. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2683. + (eval $ac_try) 2>&5
  2684. + ac_status=$?
  2685. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. + (exit $ac_status); }; }; then
  2687. ac_cv_prog_cc_g=yes
  2688. else
  2689. - ac_cv_prog_cc_g=no
  2690. -fi
  2691. -rm -f conftest*
  2692. + echo "$as_me: failed program was:" >&5
  2693. +sed 's/^/| /' conftest.$ac_ext >&5
  2694. +ac_cv_prog_cc_g=no
  2695. fi
  2696. -
  2697. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2698. +rm -f conftest.$ac_objext conftest.$ac_ext
  2699. +fi
  2700. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2701. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2702. if test "$ac_test_CFLAGS" = set; then
  2703. - CFLAGS="$ac_save_CFLAGS"
  2704. + CFLAGS=$ac_save_CFLAGS
  2705. elif test $ac_cv_prog_cc_g = yes; then
  2706. if test "$GCC" = yes; then
  2707. CFLAGS="-g -O2"
  2708. @@ -1083,86 +2321,457 @@
  2709. CFLAGS=
  2710. fi
  2711. fi
  2712. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2713. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2714. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2715. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2716. +else
  2717. + ac_cv_prog_cc_stdc=no
  2718. +ac_save_CC=$CC
  2719. +cat >conftest.$ac_ext <<_ACEOF
  2720. +#line $LINENO "configure"
  2721. +/* confdefs.h. */
  2722. +_ACEOF
  2723. +cat confdefs.h >>conftest.$ac_ext
  2724. +cat >>conftest.$ac_ext <<_ACEOF
  2725. +/* end confdefs.h. */
  2726. +#include <stdarg.h>
  2727. +#include <stdio.h>
  2728. +#include <sys/types.h>
  2729. +#include <sys/stat.h>
  2730. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2731. +struct buf { int x; };
  2732. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2733. +static char *e (p, i)
  2734. + char **p;
  2735. + int i;
  2736. +{
  2737. + return p[i];
  2738. +}
  2739. +static char *f (char * (*g) (char **, int), char **p, ...)
  2740. +{
  2741. + char *s;
  2742. + va_list v;
  2743. + va_start (v,p);
  2744. + s = g (p, va_arg (v,int));
  2745. + va_end (v);
  2746. + return s;
  2747. +}
  2748. +int test (int i, double x);
  2749. +struct s1 {int (*f) (int a);};
  2750. +struct s2 {int (*f) (double a);};
  2751. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2752. +int argc;
  2753. +char **argv;
  2754. +int
  2755. +main ()
  2756. +{
  2757. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2758. + ;
  2759. + return 0;
  2760. +}
  2761. +_ACEOF
  2762. +# Don't try gcc -ansi; that turns off useful extensions and
  2763. +# breaks some systems' header files.
  2764. +# AIX -qlanglvl=ansi
  2765. +# Ultrix and OSF/1 -std1
  2766. +# HP-UX 10.20 and later -Ae
  2767. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  2768. +# SVR4 -Xc -D__EXTENSIONS__
  2769. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2770. +do
  2771. + CC="$ac_save_CC $ac_arg"
  2772. + rm -f conftest.$ac_objext
  2773. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2774. + (eval $ac_compile) 2>&5
  2775. + ac_status=$?
  2776. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2777. + (exit $ac_status); } &&
  2778. + { ac_try='test -s conftest.$ac_objext'
  2779. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2780. + (eval $ac_try) 2>&5
  2781. + ac_status=$?
  2782. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2783. + (exit $ac_status); }; }; then
  2784. + ac_cv_prog_cc_stdc=$ac_arg
  2785. +break
  2786. +else
  2787. + echo "$as_me: failed program was:" >&5
  2788. +sed 's/^/| /' conftest.$ac_ext >&5
  2789. +
  2790. +fi
  2791. +rm -f conftest.$ac_objext
  2792. +done
  2793. +rm -f conftest.$ac_ext conftest.$ac_objext
  2794. +CC=$ac_save_CC
  2795. +
  2796. +fi
  2797. +
  2798. +case "x$ac_cv_prog_cc_stdc" in
  2799. + x|xno)
  2800. + echo "$as_me:$LINENO: result: none needed" >&5
  2801. +echo "${ECHO_T}none needed" >&6 ;;
  2802. + *)
  2803. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2804. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2805. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  2806. +esac
  2807. +
  2808. +# Some people use a C++ compiler to compile C. Since we use `exit',
  2809. +# in C++ we need to declare it. In case someone uses the same compiler
  2810. +# for both compiling C and C++ we need to have the C++ compiler decide
  2811. +# the declaration of exit, since it's the most demanding environment.
  2812. +cat >conftest.$ac_ext <<_ACEOF
  2813. +#ifndef __cplusplus
  2814. + choke me
  2815. +#endif
  2816. +_ACEOF
  2817. +rm -f conftest.$ac_objext
  2818. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2819. + (eval $ac_compile) 2>&5
  2820. + ac_status=$?
  2821. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2822. + (exit $ac_status); } &&
  2823. + { ac_try='test -s conftest.$ac_objext'
  2824. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2825. + (eval $ac_try) 2>&5
  2826. + ac_status=$?
  2827. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2828. + (exit $ac_status); }; }; then
  2829. + for ac_declaration in \
  2830. + ''\
  2831. + '#include <stdlib.h>' \
  2832. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2833. + 'extern "C" void std::exit (int); using std::exit;' \
  2834. + 'extern "C" void exit (int) throw ();' \
  2835. + 'extern "C" void exit (int);' \
  2836. + 'void exit (int);'
  2837. +do
  2838. + cat >conftest.$ac_ext <<_ACEOF
  2839. +#line $LINENO "configure"
  2840. +/* confdefs.h. */
  2841. +_ACEOF
  2842. +cat confdefs.h >>conftest.$ac_ext
  2843. +cat >>conftest.$ac_ext <<_ACEOF
  2844. +/* end confdefs.h. */
  2845. +#include <stdlib.h>
  2846. +$ac_declaration
  2847. +int
  2848. +main ()
  2849. +{
  2850. +exit (42);
  2851. + ;
  2852. + return 0;
  2853. +}
  2854. +_ACEOF
  2855. +rm -f conftest.$ac_objext
  2856. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2857. + (eval $ac_compile) 2>&5
  2858. + ac_status=$?
  2859. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2860. + (exit $ac_status); } &&
  2861. + { ac_try='test -s conftest.$ac_objext'
  2862. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2863. + (eval $ac_try) 2>&5
  2864. + ac_status=$?
  2865. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. + (exit $ac_status); }; }; then
  2867. + :
  2868. +else
  2869. + echo "$as_me: failed program was:" >&5
  2870. +sed 's/^/| /' conftest.$ac_ext >&5
  2871. +
  2872. +continue
  2873. +fi
  2874. +rm -f conftest.$ac_objext conftest.$ac_ext
  2875. + cat >conftest.$ac_ext <<_ACEOF
  2876. +#line $LINENO "configure"
  2877. +/* confdefs.h. */
  2878. +_ACEOF
  2879. +cat confdefs.h >>conftest.$ac_ext
  2880. +cat >>conftest.$ac_ext <<_ACEOF
  2881. +/* end confdefs.h. */
  2882. +$ac_declaration
  2883. +int
  2884. +main ()
  2885. +{
  2886. +exit (42);
  2887. + ;
  2888. + return 0;
  2889. +}
  2890. +_ACEOF
  2891. +rm -f conftest.$ac_objext
  2892. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2893. + (eval $ac_compile) 2>&5
  2894. + ac_status=$?
  2895. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2896. + (exit $ac_status); } &&
  2897. + { ac_try='test -s conftest.$ac_objext'
  2898. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2899. + (eval $ac_try) 2>&5
  2900. + ac_status=$?
  2901. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2902. + (exit $ac_status); }; }; then
  2903. + break
  2904. +else
  2905. + echo "$as_me: failed program was:" >&5
  2906. +sed 's/^/| /' conftest.$ac_ext >&5
  2907. +
  2908. +fi
  2909. +rm -f conftest.$ac_objext conftest.$ac_ext
  2910. +done
  2911. +rm -f conftest*
  2912. +if test -n "$ac_declaration"; then
  2913. + echo '#ifdef __cplusplus' >>confdefs.h
  2914. + echo $ac_declaration >>confdefs.h
  2915. + echo '#endif' >>confdefs.h
  2916. +fi
  2917. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2918. -echo "configure:1089: checking how to run the C preprocessor" >&5
  2919. +else
  2920. + echo "$as_me: failed program was:" >&5
  2921. +sed 's/^/| /' conftest.$ac_ext >&5
  2922. +
  2923. +fi
  2924. +rm -f conftest.$ac_objext conftest.$ac_ext
  2925. +ac_ext=c
  2926. +ac_cpp='$CPP $CPPFLAGS'
  2927. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2928. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2929. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2930. +
  2931. +ac_ext=c
  2932. +ac_cpp='$CPP $CPPFLAGS'
  2933. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2934. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2935. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2936. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2937. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2938. # On Suns, sometimes $CPP names a directory.
  2939. if test -n "$CPP" && test -d "$CPP"; then
  2940. CPP=
  2941. fi
  2942. if test -z "$CPP"; then
  2943. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2944. - echo $ac_n "(cached) $ac_c" 1>&6
  2945. + if test "${ac_cv_prog_CPP+set}" = set; then
  2946. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2947. else
  2948. - # This must be in double quotes, not single quotes, because CPP may get
  2949. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  2950. - CPP="${CC-cc} -E"
  2951. + # Double quotes because CPP needs to be expanded
  2952. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2953. + do
  2954. + ac_preproc_ok=false
  2955. +for ac_c_preproc_warn_flag in '' yes
  2956. +do
  2957. + # Use a header file that comes with gcc, so configuring glibc
  2958. + # with a fresh cross-compiler works.
  2959. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2960. + # <limits.h> exists even on freestanding compilers.
  2961. # On the NeXT, cc -E runs the code through the compiler's parser,
  2962. - # not just through cpp.
  2963. - cat > conftest.$ac_ext <<EOF
  2964. -#line 1104 "configure"
  2965. -#include "confdefs.h"
  2966. -#include <assert.h>
  2967. -Syntax Error
  2968. -EOF
  2969. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2970. -{ (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2971. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2972. -if test -z "$ac_err"; then
  2973. - :
  2974. + # not just through cpp. "Syntax error" is here to catch this case.
  2975. + cat >conftest.$ac_ext <<_ACEOF
  2976. +#line $LINENO "configure"
  2977. +/* confdefs.h. */
  2978. +_ACEOF
  2979. +cat confdefs.h >>conftest.$ac_ext
  2980. +cat >>conftest.$ac_ext <<_ACEOF
  2981. +/* end confdefs.h. */
  2982. +#ifdef __STDC__
  2983. +# include <limits.h>
  2984. +#else
  2985. +# include <assert.h>
  2986. +#endif
  2987. + Syntax error
  2988. +_ACEOF
  2989. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2990. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2991. + ac_status=$?
  2992. + grep -v '^ *+' conftest.er1 >conftest.err
  2993. + rm -f conftest.er1
  2994. + cat conftest.err >&5
  2995. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2996. + (exit $ac_status); } >/dev/null; then
  2997. + if test -s conftest.err; then
  2998. + ac_cpp_err=$ac_c_preproc_warn_flag
  2999. + else
  3000. + ac_cpp_err=
  3001. + fi
  3002. else
  3003. - echo "$ac_err" >&5
  3004. - echo "configure: failed program was:" >&5
  3005. - cat conftest.$ac_ext >&5
  3006. - rm -rf conftest*
  3007. - CPP="${CC-cc} -E -traditional-cpp"
  3008. - cat > conftest.$ac_ext <<EOF
  3009. -#line 1121 "configure"
  3010. -#include "confdefs.h"
  3011. -#include <assert.h>
  3012. -Syntax Error
  3013. -EOF
  3014. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3015. -{ (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3016. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3017. -if test -z "$ac_err"; then
  3018. + ac_cpp_err=yes
  3019. +fi
  3020. +if test -z "$ac_cpp_err"; then
  3021. :
  3022. else
  3023. - echo "$ac_err" >&5
  3024. - echo "configure: failed program was:" >&5
  3025. - cat conftest.$ac_ext >&5
  3026. - rm -rf conftest*
  3027. - CPP="${CC-cc} -nologo -E"
  3028. - cat > conftest.$ac_ext <<EOF
  3029. -#line 1138 "configure"
  3030. -#include "confdefs.h"
  3031. -#include <assert.h>
  3032. -Syntax Error
  3033. -EOF
  3034. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3035. -{ (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3036. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3037. -if test -z "$ac_err"; then
  3038. - :
  3039. + echo "$as_me: failed program was:" >&5
  3040. +sed 's/^/| /' conftest.$ac_ext >&5
  3041. +
  3042. + # Broken: fails on valid input.
  3043. +continue
  3044. +fi
  3045. +rm -f conftest.err conftest.$ac_ext
  3046. +
  3047. + # OK, works on sane cases. Now check whether non-existent headers
  3048. + # can be detected and how.
  3049. + cat >conftest.$ac_ext <<_ACEOF
  3050. +#line $LINENO "configure"
  3051. +/* confdefs.h. */
  3052. +_ACEOF
  3053. +cat confdefs.h >>conftest.$ac_ext
  3054. +cat >>conftest.$ac_ext <<_ACEOF
  3055. +/* end confdefs.h. */
  3056. +#include <ac_nonexistent.h>
  3057. +_ACEOF
  3058. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3059. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3060. + ac_status=$?
  3061. + grep -v '^ *+' conftest.er1 >conftest.err
  3062. + rm -f conftest.er1
  3063. + cat conftest.err >&5
  3064. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3065. + (exit $ac_status); } >/dev/null; then
  3066. + if test -s conftest.err; then
  3067. + ac_cpp_err=$ac_c_preproc_warn_flag
  3068. + else
  3069. + ac_cpp_err=
  3070. + fi
  3071. else
  3072. - echo "$ac_err" >&5
  3073. - echo "configure: failed program was:" >&5
  3074. - cat conftest.$ac_ext >&5
  3075. - rm -rf conftest*
  3076. - CPP=/lib/cpp
  3077. + ac_cpp_err=yes
  3078. fi
  3079. -rm -f conftest*
  3080. +if test -z "$ac_cpp_err"; then
  3081. + # Broken: success on invalid input.
  3082. +continue
  3083. +else
  3084. + echo "$as_me: failed program was:" >&5
  3085. +sed 's/^/| /' conftest.$ac_ext >&5
  3086. +
  3087. + # Passes both tests.
  3088. +ac_preproc_ok=:
  3089. +break
  3090. fi
  3091. -rm -f conftest*
  3092. +rm -f conftest.err conftest.$ac_ext
  3093. +
  3094. +done
  3095. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3096. +rm -f conftest.err conftest.$ac_ext
  3097. +if $ac_preproc_ok; then
  3098. + break
  3099. fi
  3100. -rm -f conftest*
  3101. - ac_cv_prog_CPP="$CPP"
  3102. +
  3103. + done
  3104. + ac_cv_prog_CPP=$CPP
  3105. +
  3106. fi
  3107. - CPP="$ac_cv_prog_CPP"
  3108. + CPP=$ac_cv_prog_CPP
  3109. +else
  3110. + ac_cv_prog_CPP=$CPP
  3111. +fi
  3112. +echo "$as_me:$LINENO: result: $CPP" >&5
  3113. +echo "${ECHO_T}$CPP" >&6
  3114. +ac_preproc_ok=false
  3115. +for ac_c_preproc_warn_flag in '' yes
  3116. +do
  3117. + # Use a header file that comes with gcc, so configuring glibc
  3118. + # with a fresh cross-compiler works.
  3119. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3120. + # <limits.h> exists even on freestanding compilers.
  3121. + # On the NeXT, cc -E runs the code through the compiler's parser,
  3122. + # not just through cpp. "Syntax error" is here to catch this case.
  3123. + cat >conftest.$ac_ext <<_ACEOF
  3124. +#line $LINENO "configure"
  3125. +/* confdefs.h. */
  3126. +_ACEOF
  3127. +cat confdefs.h >>conftest.$ac_ext
  3128. +cat >>conftest.$ac_ext <<_ACEOF
  3129. +/* end confdefs.h. */
  3130. +#ifdef __STDC__
  3131. +# include <limits.h>
  3132. +#else
  3133. +# include <assert.h>
  3134. +#endif
  3135. + Syntax error
  3136. +_ACEOF
  3137. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3138. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3139. + ac_status=$?
  3140. + grep -v '^ *+' conftest.er1 >conftest.err
  3141. + rm -f conftest.er1
  3142. + cat conftest.err >&5
  3143. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3144. + (exit $ac_status); } >/dev/null; then
  3145. + if test -s conftest.err; then
  3146. + ac_cpp_err=$ac_c_preproc_warn_flag
  3147. + else
  3148. + ac_cpp_err=
  3149. + fi
  3150. else
  3151. - ac_cv_prog_CPP="$CPP"
  3152. + ac_cpp_err=yes
  3153. fi
  3154. -echo "$ac_t""$CPP" 1>&6
  3155. +if test -z "$ac_cpp_err"; then
  3156. + :
  3157. +else
  3158. + echo "$as_me: failed program was:" >&5
  3159. +sed 's/^/| /' conftest.$ac_ext >&5
  3160. +
  3161. + # Broken: fails on valid input.
  3162. +continue
  3163. +fi
  3164. +rm -f conftest.err conftest.$ac_ext
  3165. +
  3166. + # OK, works on sane cases. Now check whether non-existent headers
  3167. + # can be detected and how.
  3168. + cat >conftest.$ac_ext <<_ACEOF
  3169. +#line $LINENO "configure"
  3170. +/* confdefs.h. */
  3171. +_ACEOF
  3172. +cat confdefs.h >>conftest.$ac_ext
  3173. +cat >>conftest.$ac_ext <<_ACEOF
  3174. +/* end confdefs.h. */
  3175. +#include <ac_nonexistent.h>
  3176. +_ACEOF
  3177. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3178. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3179. + ac_status=$?
  3180. + grep -v '^ *+' conftest.er1 >conftest.err
  3181. + rm -f conftest.er1
  3182. + cat conftest.err >&5
  3183. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3184. + (exit $ac_status); } >/dev/null; then
  3185. + if test -s conftest.err; then
  3186. + ac_cpp_err=$ac_c_preproc_warn_flag
  3187. + else
  3188. + ac_cpp_err=
  3189. + fi
  3190. +else
  3191. + ac_cpp_err=yes
  3192. +fi
  3193. +if test -z "$ac_cpp_err"; then
  3194. + # Broken: success on invalid input.
  3195. +continue
  3196. +else
  3197. + echo "$as_me: failed program was:" >&5
  3198. +sed 's/^/| /' conftest.$ac_ext >&5
  3199. +
  3200. + # Passes both tests.
  3201. +ac_preproc_ok=:
  3202. +break
  3203. +fi
  3204. +rm -f conftest.err conftest.$ac_ext
  3205. +
  3206. +done
  3207. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3208. +rm -f conftest.err conftest.$ac_ext
  3209. +if $ac_preproc_ok; then
  3210. + :
  3211. +else
  3212. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3213. +See \`config.log' for more details." >&5
  3214. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3215. +See \`config.log' for more details." >&2;}
  3216. + { (exit 1); exit 1; }; }
  3217. +fi
  3218. +
  3219. +ac_ext=c
  3220. +ac_cpp='$CPP $CPPFLAGS'
  3221. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3222. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3223. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3224. # Find a good install program. We prefer a C program (faster),
  3225. # so one script is as good as another. But avoid the broken or
  3226. @@ -1171,767 +2780,1576 @@
  3227. # SunOS /usr/etc/install
  3228. # IRIX /sbin/install
  3229. # AIX /bin/install
  3230. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  3231. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3232. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3233. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3234. # ./install, which can be erroneously created by make from ./install.sh.
  3235. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  3236. -echo "configure:1180: checking for a BSD compatible install" >&5
  3237. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3238. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3239. if test -z "$INSTALL"; then
  3240. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  3241. - echo $ac_n "(cached) $ac_c" 1>&6
  3242. +if test "${ac_cv_path_install+set}" = set; then
  3243. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3244. else
  3245. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  3246. - for ac_dir in $PATH; do
  3247. - # Account for people who put trailing slashes in PATH elements.
  3248. - case "$ac_dir/" in
  3249. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  3250. - *)
  3251. - # OSF1 and SCO ODT 3.0 have their own names for install.
  3252. - # Don't use installbsd from OSF since it installs stuff as root
  3253. - # by default.
  3254. - for ac_prog in ginstall scoinst install; do
  3255. - if test -f $ac_dir/$ac_prog; then
  3256. - if test $ac_prog = install &&
  3257. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  3258. - # AIX install. It has an incompatible calling convention.
  3259. - :
  3260. - else
  3261. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  3262. - break 2
  3263. - fi
  3264. - fi
  3265. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3266. +for as_dir in $PATH
  3267. +do
  3268. + IFS=$as_save_IFS
  3269. + test -z "$as_dir" && as_dir=.
  3270. + # Account for people who put trailing slashes in PATH elements.
  3271. +case $as_dir/ in
  3272. + ./ | .// | /cC/* | \
  3273. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3274. + /usr/ucb/* ) ;;
  3275. + *)
  3276. + # OSF1 and SCO ODT 3.0 have their own names for install.
  3277. + # Don't use installbsd from OSF since it installs stuff as root
  3278. + # by default.
  3279. + for ac_prog in ginstall scoinst install; do
  3280. + for ac_exec_ext in '' $ac_executable_extensions; do
  3281. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3282. + if test $ac_prog = install &&
  3283. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3284. + # AIX install. It has an incompatible calling convention.
  3285. + :
  3286. + elif test $ac_prog = install &&
  3287. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3288. + # program-specific install script used by HP pwplus--don't use.
  3289. + :
  3290. + else
  3291. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3292. + break 3
  3293. + fi
  3294. + fi
  3295. done
  3296. - ;;
  3297. - esac
  3298. - done
  3299. - IFS="$ac_save_IFS"
  3300. + done
  3301. + ;;
  3302. +esac
  3303. +done
  3304. +
  3305. fi
  3306. if test "${ac_cv_path_install+set}" = set; then
  3307. - INSTALL="$ac_cv_path_install"
  3308. + INSTALL=$ac_cv_path_install
  3309. else
  3310. # As a last resort, use the slow shell script. We don't cache a
  3311. # path for INSTALL within a source directory, because that will
  3312. # break other packages using the cache if that directory is
  3313. # removed, or if the path is relative.
  3314. - INSTALL="$ac_install_sh"
  3315. + INSTALL=$ac_install_sh
  3316. fi
  3317. fi
  3318. -echo "$ac_t""$INSTALL" 1>&6
  3319. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  3320. +echo "${ECHO_T}$INSTALL" >&6
  3321. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3322. # It thinks the first close brace ends the variable substitution.
  3323. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3324. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  3325. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3326. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3327. -# Extract the first word of "ranlib", so it can be a program name with args.
  3328. -set dummy ranlib; ac_word=$2
  3329. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3330. -echo "configure:1235: checking for $ac_word" >&5
  3331. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  3332. - echo $ac_n "(cached) $ac_c" 1>&6
  3333. +if test -n "$ac_tool_prefix"; then
  3334. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3335. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3336. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3337. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3338. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  3339. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3340. else
  3341. if test -n "$RANLIB"; then
  3342. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3343. else
  3344. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3345. - ac_dummy="$PATH"
  3346. - for ac_dir in $ac_dummy; do
  3347. - test -z "$ac_dir" && ac_dir=.
  3348. - if test -f $ac_dir/$ac_word; then
  3349. - ac_cv_prog_RANLIB="ranlib"
  3350. - break
  3351. - fi
  3352. - done
  3353. - IFS="$ac_save_ifs"
  3354. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  3355. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3356. +for as_dir in $PATH
  3357. +do
  3358. + IFS=$as_save_IFS
  3359. + test -z "$as_dir" && as_dir=.
  3360. + for ac_exec_ext in '' $ac_executable_extensions; do
  3361. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3362. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3363. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3364. + break 2
  3365. + fi
  3366. +done
  3367. +done
  3368. +
  3369. fi
  3370. fi
  3371. -RANLIB="$ac_cv_prog_RANLIB"
  3372. +RANLIB=$ac_cv_prog_RANLIB
  3373. if test -n "$RANLIB"; then
  3374. - echo "$ac_t""$RANLIB" 1>&6
  3375. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  3376. +echo "${ECHO_T}$RANLIB" >&6
  3377. +else
  3378. + echo "$as_me:$LINENO: result: no" >&5
  3379. +echo "${ECHO_T}no" >&6
  3380. +fi
  3381. +
  3382. +fi
  3383. +if test -z "$ac_cv_prog_RANLIB"; then
  3384. + ac_ct_RANLIB=$RANLIB
  3385. + # Extract the first word of "ranlib", so it can be a program name with args.
  3386. +set dummy ranlib; ac_word=$2
  3387. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3388. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3389. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3390. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3391. +else
  3392. + if test -n "$ac_ct_RANLIB"; then
  3393. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3394. else
  3395. - echo "$ac_t""no" 1>&6
  3396. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3397. +for as_dir in $PATH
  3398. +do
  3399. + IFS=$as_save_IFS
  3400. + test -z "$as_dir" && as_dir=.
  3401. + for ac_exec_ext in '' $ac_executable_extensions; do
  3402. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3403. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  3404. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3405. + break 2
  3406. + fi
  3407. +done
  3408. +done
  3409. +
  3410. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3411. +fi
  3412. +fi
  3413. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3414. +if test -n "$ac_ct_RANLIB"; then
  3415. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3416. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3417. +else
  3418. + echo "$as_me:$LINENO: result: no" >&5
  3419. +echo "${ECHO_T}no" >&6
  3420. fi
  3421. + RANLIB=$ac_ct_RANLIB
  3422. +else
  3423. + RANLIB="$ac_cv_prog_RANLIB"
  3424. +fi
  3425. +
  3426. +
  3427. -echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3428. -echo "configure:1265: checking for gethostbyname" >&5
  3429. -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  3430. - echo $ac_n "(cached) $ac_c" 1>&6
  3431. +echo "$as_me:$LINENO: checking for gethostbyname" >&5
  3432. +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  3433. +if test "${ac_cv_func_gethostbyname+set}" = set; then
  3434. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3435. else
  3436. - cat > conftest.$ac_ext <<EOF
  3437. -#line 1270 "configure"
  3438. -#include "confdefs.h"
  3439. + cat >conftest.$ac_ext <<_ACEOF
  3440. +#line $LINENO "configure"
  3441. +/* confdefs.h. */
  3442. +_ACEOF
  3443. +cat confdefs.h >>conftest.$ac_ext
  3444. +cat >>conftest.$ac_ext <<_ACEOF
  3445. +/* end confdefs.h. */
  3446. /* System header to define __stub macros and hopefully few prototypes,
  3447. - which can conflict with char gethostbyname(); below. */
  3448. -#include <assert.h>
  3449. + which can conflict with char gethostbyname (); below.
  3450. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3451. + <limits.h> exists even on freestanding compilers. */
  3452. +#ifdef __STDC__
  3453. +# include <limits.h>
  3454. +#else
  3455. +# include <assert.h>
  3456. +#endif
  3457. /* Override any gcc2 internal prototype to avoid an error. */
  3458. +#ifdef __cplusplus
  3459. +extern "C"
  3460. +{
  3461. +#endif
  3462. /* We use char because int might match the return type of a gcc2
  3463. - builtin and then its argument prototype would still apply. */
  3464. -char gethostbyname();
  3465. -
  3466. -int main() {
  3467. -
  3468. + builtin and then its argument prototype would still apply. */
  3469. +char gethostbyname ();
  3470. /* The GNU C library defines this for functions which it implements
  3471. to always fail with ENOSYS. Some functions are actually named
  3472. something starting with __ and the normal name is an alias. */
  3473. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3474. choke me
  3475. #else
  3476. -gethostbyname();
  3477. +char (*f) () = gethostbyname;
  3478. +#endif
  3479. +#ifdef __cplusplus
  3480. +}
  3481. #endif
  3482. -; return 0; }
  3483. -EOF
  3484. -if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3485. - rm -rf conftest*
  3486. - eval "ac_cv_func_gethostbyname=yes"
  3487. -else
  3488. - echo "configure: failed program was:" >&5
  3489. - cat conftest.$ac_ext >&5
  3490. - rm -rf conftest*
  3491. - eval "ac_cv_func_gethostbyname=no"
  3492. -fi
  3493. -rm -f conftest*
  3494. -fi
  3495. -
  3496. -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3497. - echo "$ac_t""yes" 1>&6
  3498. +int
  3499. +main ()
  3500. +{
  3501. +return f != gethostbyname;
  3502. + ;
  3503. + return 0;
  3504. +}
  3505. +_ACEOF
  3506. +rm -f conftest.$ac_objext conftest$ac_exeext
  3507. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3508. + (eval $ac_link) 2>&5
  3509. + ac_status=$?
  3510. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3511. + (exit $ac_status); } &&
  3512. + { ac_try='test -s conftest$ac_exeext'
  3513. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3514. + (eval $ac_try) 2>&5
  3515. + ac_status=$?
  3516. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3517. + (exit $ac_status); }; }; then
  3518. + ac_cv_func_gethostbyname=yes
  3519. +else
  3520. + echo "$as_me: failed program was:" >&5
  3521. +sed 's/^/| /' conftest.$ac_ext >&5
  3522. +
  3523. +ac_cv_func_gethostbyname=no
  3524. +fi
  3525. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3526. +fi
  3527. +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  3528. +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  3529. +if test $ac_cv_func_gethostbyname = yes; then
  3530. :
  3531. else
  3532. - echo "$ac_t""no" 1>&6
  3533. -echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3534. -echo "configure:1311: checking for gethostbyname in -lnsl" >&5
  3535. -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3536. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3537. - echo $ac_n "(cached) $ac_c" 1>&6
  3538. +
  3539. +echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  3540. +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  3541. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3542. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3543. else
  3544. - ac_save_LIBS="$LIBS"
  3545. + ac_check_lib_save_LIBS=$LIBS
  3546. LIBS="-lnsl $LIBS"
  3547. -cat > conftest.$ac_ext <<EOF
  3548. -#line 1319 "configure"
  3549. -#include "confdefs.h"
  3550. +cat >conftest.$ac_ext <<_ACEOF
  3551. +#line $LINENO "configure"
  3552. +/* confdefs.h. */
  3553. +_ACEOF
  3554. +cat confdefs.h >>conftest.$ac_ext
  3555. +cat >>conftest.$ac_ext <<_ACEOF
  3556. +/* end confdefs.h. */
  3557. +
  3558. /* Override any gcc2 internal prototype to avoid an error. */
  3559. +#ifdef __cplusplus
  3560. +extern "C"
  3561. +#endif
  3562. /* We use char because int might match the return type of a gcc2
  3563. - builtin and then its argument prototype would still apply. */
  3564. -char gethostbyname();
  3565. -
  3566. -int main() {
  3567. -gethostbyname()
  3568. -; return 0; }
  3569. -EOF
  3570. -if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3571. - rm -rf conftest*
  3572. - eval "ac_cv_lib_$ac_lib_var=yes"
  3573. -else
  3574. - echo "configure: failed program was:" >&5
  3575. - cat conftest.$ac_ext >&5
  3576. - rm -rf conftest*
  3577. - eval "ac_cv_lib_$ac_lib_var=no"
  3578. -fi
  3579. -rm -f conftest*
  3580. -LIBS="$ac_save_LIBS"
  3581. -
  3582. -fi
  3583. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3584. - echo "$ac_t""yes" 1>&6
  3585. - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3586. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3587. - cat >> confdefs.h <<EOF
  3588. -#define $ac_tr_lib 1
  3589. -EOF
  3590. + builtin and then its argument prototype would still apply. */
  3591. +char gethostbyname ();
  3592. +int
  3593. +main ()
  3594. +{
  3595. +gethostbyname ();
  3596. + ;
  3597. + return 0;
  3598. +}
  3599. +_ACEOF
  3600. +rm -f conftest.$ac_objext conftest$ac_exeext
  3601. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3602. + (eval $ac_link) 2>&5
  3603. + ac_status=$?
  3604. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3605. + (exit $ac_status); } &&
  3606. + { ac_try='test -s conftest$ac_exeext'
  3607. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3608. + (eval $ac_try) 2>&5
  3609. + ac_status=$?
  3610. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3611. + (exit $ac_status); }; }; then
  3612. + ac_cv_lib_nsl_gethostbyname=yes
  3613. +else
  3614. + echo "$as_me: failed program was:" >&5
  3615. +sed 's/^/| /' conftest.$ac_ext >&5
  3616. +
  3617. +ac_cv_lib_nsl_gethostbyname=no
  3618. +fi
  3619. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3620. +LIBS=$ac_check_lib_save_LIBS
  3621. +fi
  3622. +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3623. +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  3624. +if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3625. + cat >>confdefs.h <<_ACEOF
  3626. +#define HAVE_LIBNSL 1
  3627. +_ACEOF
  3628. LIBS="-lnsl $LIBS"
  3629. -else
  3630. - echo "$ac_t""no" 1>&6
  3631. fi
  3632. fi
  3633. -echo $ac_n "checking for connect""... $ac_c" 1>&6
  3634. -echo "configure:1360: checking for connect" >&5
  3635. -if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  3636. - echo $ac_n "(cached) $ac_c" 1>&6
  3637. -else
  3638. - cat > conftest.$ac_ext <<EOF
  3639. -#line 1365 "configure"
  3640. -#include "confdefs.h"
  3641. +echo "$as_me:$LINENO: checking for connect" >&5
  3642. +echo $ECHO_N "checking for connect... $ECHO_C" >&6
  3643. +if test "${ac_cv_func_connect+set}" = set; then
  3644. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3645. +else
  3646. + cat >conftest.$ac_ext <<_ACEOF
  3647. +#line $LINENO "configure"
  3648. +/* confdefs.h. */
  3649. +_ACEOF
  3650. +cat confdefs.h >>conftest.$ac_ext
  3651. +cat >>conftest.$ac_ext <<_ACEOF
  3652. +/* end confdefs.h. */
  3653. /* System header to define __stub macros and hopefully few prototypes,
  3654. - which can conflict with char connect(); below. */
  3655. -#include <assert.h>
  3656. + which can conflict with char connect (); below.
  3657. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3658. + <limits.h> exists even on freestanding compilers. */
  3659. +#ifdef __STDC__
  3660. +# include <limits.h>
  3661. +#else
  3662. +# include <assert.h>
  3663. +#endif
  3664. /* Override any gcc2 internal prototype to avoid an error. */
  3665. +#ifdef __cplusplus
  3666. +extern "C"
  3667. +{
  3668. +#endif
  3669. /* We use char because int might match the return type of a gcc2
  3670. - builtin and then its argument prototype would still apply. */
  3671. -char connect();
  3672. -
  3673. -int main() {
  3674. -
  3675. + builtin and then its argument prototype would still apply. */
  3676. +char connect ();
  3677. /* The GNU C library defines this for functions which it implements
  3678. to always fail with ENOSYS. Some functions are actually named
  3679. something starting with __ and the normal name is an alias. */
  3680. #if defined (__stub_connect) || defined (__stub___connect)
  3681. choke me
  3682. #else
  3683. -connect();
  3684. +char (*f) () = connect;
  3685. +#endif
  3686. +#ifdef __cplusplus
  3687. +}
  3688. #endif
  3689. -; return 0; }
  3690. -EOF
  3691. -if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3692. - rm -rf conftest*
  3693. - eval "ac_cv_func_connect=yes"
  3694. -else
  3695. - echo "configure: failed program was:" >&5
  3696. - cat conftest.$ac_ext >&5
  3697. - rm -rf conftest*
  3698. - eval "ac_cv_func_connect=no"
  3699. -fi
  3700. -rm -f conftest*
  3701. -fi
  3702. -
  3703. -if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3704. - echo "$ac_t""yes" 1>&6
  3705. +int
  3706. +main ()
  3707. +{
  3708. +return f != connect;
  3709. + ;
  3710. + return 0;
  3711. +}
  3712. +_ACEOF
  3713. +rm -f conftest.$ac_objext conftest$ac_exeext
  3714. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3715. + (eval $ac_link) 2>&5
  3716. + ac_status=$?
  3717. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3718. + (exit $ac_status); } &&
  3719. + { ac_try='test -s conftest$ac_exeext'
  3720. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3721. + (eval $ac_try) 2>&5
  3722. + ac_status=$?
  3723. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3724. + (exit $ac_status); }; }; then
  3725. + ac_cv_func_connect=yes
  3726. +else
  3727. + echo "$as_me: failed program was:" >&5
  3728. +sed 's/^/| /' conftest.$ac_ext >&5
  3729. +
  3730. +ac_cv_func_connect=no
  3731. +fi
  3732. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3733. +fi
  3734. +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  3735. +echo "${ECHO_T}$ac_cv_func_connect" >&6
  3736. +if test $ac_cv_func_connect = yes; then
  3737. :
  3738. else
  3739. - echo "$ac_t""no" 1>&6
  3740. -echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3741. -echo "configure:1406: checking for connect in -lsocket" >&5
  3742. -ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3743. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3744. - echo $ac_n "(cached) $ac_c" 1>&6
  3745. +
  3746. +echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  3747. +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  3748. +if test "${ac_cv_lib_socket_connect+set}" = set; then
  3749. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3750. else
  3751. - ac_save_LIBS="$LIBS"
  3752. + ac_check_lib_save_LIBS=$LIBS
  3753. LIBS="-lsocket $LIBS"
  3754. -cat > conftest.$ac_ext <<EOF
  3755. -#line 1414 "configure"
  3756. -#include "confdefs.h"
  3757. +cat >conftest.$ac_ext <<_ACEOF
  3758. +#line $LINENO "configure"
  3759. +/* confdefs.h. */
  3760. +_ACEOF
  3761. +cat confdefs.h >>conftest.$ac_ext
  3762. +cat >>conftest.$ac_ext <<_ACEOF
  3763. +/* end confdefs.h. */
  3764. +
  3765. /* Override any gcc2 internal prototype to avoid an error. */
  3766. +#ifdef __cplusplus
  3767. +extern "C"
  3768. +#endif
  3769. /* We use char because int might match the return type of a gcc2
  3770. - builtin and then its argument prototype would still apply. */
  3771. -char connect();
  3772. -
  3773. -int main() {
  3774. -connect()
  3775. -; return 0; }
  3776. -EOF
  3777. -if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3778. - rm -rf conftest*
  3779. - eval "ac_cv_lib_$ac_lib_var=yes"
  3780. -else
  3781. - echo "configure: failed program was:" >&5
  3782. - cat conftest.$ac_ext >&5
  3783. - rm -rf conftest*
  3784. - eval "ac_cv_lib_$ac_lib_var=no"
  3785. -fi
  3786. -rm -f conftest*
  3787. -LIBS="$ac_save_LIBS"
  3788. -
  3789. -fi
  3790. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3791. - echo "$ac_t""yes" 1>&6
  3792. - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3793. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3794. - cat >> confdefs.h <<EOF
  3795. -#define $ac_tr_lib 1
  3796. -EOF
  3797. + builtin and then its argument prototype would still apply. */
  3798. +char connect ();
  3799. +int
  3800. +main ()
  3801. +{
  3802. +connect ();
  3803. + ;
  3804. + return 0;
  3805. +}
  3806. +_ACEOF
  3807. +rm -f conftest.$ac_objext conftest$ac_exeext
  3808. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3809. + (eval $ac_link) 2>&5
  3810. + ac_status=$?
  3811. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. + (exit $ac_status); } &&
  3813. + { ac_try='test -s conftest$ac_exeext'
  3814. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3815. + (eval $ac_try) 2>&5
  3816. + ac_status=$?
  3817. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3818. + (exit $ac_status); }; }; then
  3819. + ac_cv_lib_socket_connect=yes
  3820. +else
  3821. + echo "$as_me: failed program was:" >&5
  3822. +sed 's/^/| /' conftest.$ac_ext >&5
  3823. +
  3824. +ac_cv_lib_socket_connect=no
  3825. +fi
  3826. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3827. +LIBS=$ac_check_lib_save_LIBS
  3828. +fi
  3829. +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  3830. +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  3831. +if test $ac_cv_lib_socket_connect = yes; then
  3832. + cat >>confdefs.h <<_ACEOF
  3833. +#define HAVE_LIBSOCKET 1
  3834. +_ACEOF
  3835. LIBS="-lsocket $LIBS"
  3836. -else
  3837. - echo "$ac_t""no" 1>&6
  3838. fi
  3839. fi
  3840. -echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
  3841. -echo "configure:1455: checking for inet_aton" >&5
  3842. -if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  3843. - echo $ac_n "(cached) $ac_c" 1>&6
  3844. -else
  3845. - cat > conftest.$ac_ext <<EOF
  3846. -#line 1460 "configure"
  3847. -#include "confdefs.h"
  3848. +echo "$as_me:$LINENO: checking for inet_aton" >&5
  3849. +echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
  3850. +if test "${ac_cv_func_inet_aton+set}" = set; then
  3851. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3852. +else
  3853. + cat >conftest.$ac_ext <<_ACEOF
  3854. +#line $LINENO "configure"
  3855. +/* confdefs.h. */
  3856. +_ACEOF
  3857. +cat confdefs.h >>conftest.$ac_ext
  3858. +cat >>conftest.$ac_ext <<_ACEOF
  3859. +/* end confdefs.h. */
  3860. /* System header to define __stub macros and hopefully few prototypes,
  3861. - which can conflict with char inet_aton(); below. */
  3862. -#include <assert.h>
  3863. + which can conflict with char inet_aton (); below.
  3864. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3865. + <limits.h> exists even on freestanding compilers. */
  3866. +#ifdef __STDC__
  3867. +# include <limits.h>
  3868. +#else
  3869. +# include <assert.h>
  3870. +#endif
  3871. /* Override any gcc2 internal prototype to avoid an error. */
  3872. +#ifdef __cplusplus
  3873. +extern "C"
  3874. +{
  3875. +#endif
  3876. /* We use char because int might match the return type of a gcc2
  3877. - builtin and then its argument prototype would still apply. */
  3878. -char inet_aton();
  3879. -
  3880. -int main() {
  3881. -
  3882. + builtin and then its argument prototype would still apply. */
  3883. +char inet_aton ();
  3884. /* The GNU C library defines this for functions which it implements
  3885. to always fail with ENOSYS. Some functions are actually named
  3886. something starting with __ and the normal name is an alias. */
  3887. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  3888. choke me
  3889. #else
  3890. -inet_aton();
  3891. +char (*f) () = inet_aton;
  3892. +#endif
  3893. +#ifdef __cplusplus
  3894. +}
  3895. #endif
  3896. -; return 0; }
  3897. -EOF
  3898. -if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3899. - rm -rf conftest*
  3900. - eval "ac_cv_func_inet_aton=yes"
  3901. -else
  3902. - echo "configure: failed program was:" >&5
  3903. - cat conftest.$ac_ext >&5
  3904. - rm -rf conftest*
  3905. - eval "ac_cv_func_inet_aton=no"
  3906. -fi
  3907. -rm -f conftest*
  3908. -fi
  3909. -
  3910. -if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
  3911. - echo "$ac_t""yes" 1>&6
  3912. +int
  3913. +main ()
  3914. +{
  3915. +return f != inet_aton;
  3916. + ;
  3917. + return 0;
  3918. +}
  3919. +_ACEOF
  3920. +rm -f conftest.$ac_objext conftest$ac_exeext
  3921. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3922. + (eval $ac_link) 2>&5
  3923. + ac_status=$?
  3924. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3925. + (exit $ac_status); } &&
  3926. + { ac_try='test -s conftest$ac_exeext'
  3927. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3928. + (eval $ac_try) 2>&5
  3929. + ac_status=$?
  3930. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3931. + (exit $ac_status); }; }; then
  3932. + ac_cv_func_inet_aton=yes
  3933. +else
  3934. + echo "$as_me: failed program was:" >&5
  3935. +sed 's/^/| /' conftest.$ac_ext >&5
  3936. +
  3937. +ac_cv_func_inet_aton=no
  3938. +fi
  3939. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3940. +fi
  3941. +echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  3942. +echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
  3943. +if test $ac_cv_func_inet_aton = yes; then
  3944. :
  3945. else
  3946. - echo "$ac_t""no" 1>&6
  3947. -echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
  3948. -echo "configure:1501: checking for inet_aton in -lresolv" >&5
  3949. -ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
  3950. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3951. - echo $ac_n "(cached) $ac_c" 1>&6
  3952. +
  3953. +echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
  3954. +echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
  3955. +if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
  3956. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3957. else
  3958. - ac_save_LIBS="$LIBS"
  3959. + ac_check_lib_save_LIBS=$LIBS
  3960. LIBS="-lresolv $LIBS"
  3961. -cat > conftest.$ac_ext <<EOF
  3962. -#line 1509 "configure"
  3963. -#include "confdefs.h"
  3964. +cat >conftest.$ac_ext <<_ACEOF
  3965. +#line $LINENO "configure"
  3966. +/* confdefs.h. */
  3967. +_ACEOF
  3968. +cat confdefs.h >>conftest.$ac_ext
  3969. +cat >>conftest.$ac_ext <<_ACEOF
  3970. +/* end confdefs.h. */
  3971. +
  3972. /* Override any gcc2 internal prototype to avoid an error. */
  3973. +#ifdef __cplusplus
  3974. +extern "C"
  3975. +#endif
  3976. /* We use char because int might match the return type of a gcc2
  3977. - builtin and then its argument prototype would still apply. */
  3978. -char inet_aton();
  3979. -
  3980. -int main() {
  3981. -inet_aton()
  3982. -; return 0; }
  3983. -EOF
  3984. -if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3985. - rm -rf conftest*
  3986. - eval "ac_cv_lib_$ac_lib_var=yes"
  3987. -else
  3988. - echo "configure: failed program was:" >&5
  3989. - cat conftest.$ac_ext >&5
  3990. - rm -rf conftest*
  3991. - eval "ac_cv_lib_$ac_lib_var=no"
  3992. -fi
  3993. -rm -f conftest*
  3994. -LIBS="$ac_save_LIBS"
  3995. -
  3996. -fi
  3997. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3998. - echo "$ac_t""yes" 1>&6
  3999. - ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4000. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4001. - cat >> confdefs.h <<EOF
  4002. -#define $ac_tr_lib 1
  4003. -EOF
  4004. + builtin and then its argument prototype would still apply. */
  4005. +char inet_aton ();
  4006. +int
  4007. +main ()
  4008. +{
  4009. +inet_aton ();
  4010. + ;
  4011. + return 0;
  4012. +}
  4013. +_ACEOF
  4014. +rm -f conftest.$ac_objext conftest$ac_exeext
  4015. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4016. + (eval $ac_link) 2>&5
  4017. + ac_status=$?
  4018. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4019. + (exit $ac_status); } &&
  4020. + { ac_try='test -s conftest$ac_exeext'
  4021. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4022. + (eval $ac_try) 2>&5
  4023. + ac_status=$?
  4024. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4025. + (exit $ac_status); }; }; then
  4026. + ac_cv_lib_resolv_inet_aton=yes
  4027. +else
  4028. + echo "$as_me: failed program was:" >&5
  4029. +sed 's/^/| /' conftest.$ac_ext >&5
  4030. +
  4031. +ac_cv_lib_resolv_inet_aton=no
  4032. +fi
  4033. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4034. +LIBS=$ac_check_lib_save_LIBS
  4035. +fi
  4036. +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
  4037. +echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
  4038. +if test $ac_cv_lib_resolv_inet_aton = yes; then
  4039. + cat >>confdefs.h <<_ACEOF
  4040. +#define HAVE_LIBRESOLV 1
  4041. +_ACEOF
  4042. LIBS="-lresolv $LIBS"
  4043. -else
  4044. - echo "$ac_t""no" 1>&6
  4045. fi
  4046. fi
  4047. -echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
  4048. -echo "configure:1550: checking for kstat_open in -lkstat" >&5
  4049. -ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
  4050. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4051. - echo $ac_n "(cached) $ac_c" 1>&6
  4052. +
  4053. +echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
  4054. +echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
  4055. +if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
  4056. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4057. else
  4058. - ac_save_LIBS="$LIBS"
  4059. + ac_check_lib_save_LIBS=$LIBS
  4060. LIBS="-lkstat $LIBS"
  4061. -cat > conftest.$ac_ext <<EOF
  4062. -#line 1558 "configure"
  4063. -#include "confdefs.h"
  4064. +cat >conftest.$ac_ext <<_ACEOF
  4065. +#line $LINENO "configure"
  4066. +/* confdefs.h. */
  4067. +_ACEOF
  4068. +cat confdefs.h >>conftest.$ac_ext
  4069. +cat >>conftest.$ac_ext <<_ACEOF
  4070. +/* end confdefs.h. */
  4071. +
  4072. /* Override any gcc2 internal prototype to avoid an error. */
  4073. +#ifdef __cplusplus
  4074. +extern "C"
  4075. +#endif
  4076. /* We use char because int might match the return type of a gcc2
  4077. - builtin and then its argument prototype would still apply. */
  4078. -char kstat_open();
  4079. + builtin and then its argument prototype would still apply. */
  4080. +char kstat_open ();
  4081. +int
  4082. +main ()
  4083. +{
  4084. +kstat_open ();
  4085. + ;
  4086. + return 0;
  4087. +}
  4088. +_ACEOF
  4089. +rm -f conftest.$ac_objext conftest$ac_exeext
  4090. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4091. + (eval $ac_link) 2>&5
  4092. + ac_status=$?
  4093. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4094. + (exit $ac_status); } &&
  4095. + { ac_try='test -s conftest$ac_exeext'
  4096. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4097. + (eval $ac_try) 2>&5
  4098. + ac_status=$?
  4099. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100. + (exit $ac_status); }; }; then
  4101. + ac_cv_lib_kstat_kstat_open=yes
  4102. +else
  4103. + echo "$as_me: failed program was:" >&5
  4104. +sed 's/^/| /' conftest.$ac_ext >&5
  4105. +
  4106. +ac_cv_lib_kstat_kstat_open=no
  4107. +fi
  4108. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4109. +LIBS=$ac_check_lib_save_LIBS
  4110. +fi
  4111. +echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
  4112. +echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
  4113. +if test $ac_cv_lib_kstat_kstat_open = yes; then
  4114. + cat >>confdefs.h <<_ACEOF
  4115. +#define HAVE_LIBKSTAT 1
  4116. +_ACEOF
  4117. -int main() {
  4118. -kstat_open()
  4119. -; return 0; }
  4120. -EOF
  4121. -if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4122. - rm -rf conftest*
  4123. - eval "ac_cv_lib_$ac_lib_var=yes"
  4124. -else
  4125. - echo "configure: failed program was:" >&5
  4126. - cat conftest.$ac_ext >&5
  4127. - rm -rf conftest*
  4128. - eval "ac_cv_lib_$ac_lib_var=no"
  4129. -fi
  4130. -rm -f conftest*
  4131. -LIBS="$ac_save_LIBS"
  4132. + LIBS="-lkstat $LIBS"
  4133. fi
  4134. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4135. - echo "$ac_t""yes" 1>&6
  4136. - ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4137. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4138. - cat >> confdefs.h <<EOF
  4139. -#define $ac_tr_lib 1
  4140. -EOF
  4141. - LIBS="-lkstat $LIBS"
  4142. -else
  4143. - echo "$ac_t""no" 1>&6
  4144. -fi
  4145. for ac_func in getloadavg swapctl
  4146. do
  4147. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4148. -echo "configure:1599: checking for $ac_func" >&5
  4149. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4150. - echo $ac_n "(cached) $ac_c" 1>&6
  4151. -else
  4152. - cat > conftest.$ac_ext <<EOF
  4153. -#line 1604 "configure"
  4154. -#include "confdefs.h"
  4155. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4156. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  4157. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4158. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  4159. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4160. +else
  4161. + cat >conftest.$ac_ext <<_ACEOF
  4162. +#line $LINENO "configure"
  4163. +/* confdefs.h. */
  4164. +_ACEOF
  4165. +cat confdefs.h >>conftest.$ac_ext
  4166. +cat >>conftest.$ac_ext <<_ACEOF
  4167. +/* end confdefs.h. */
  4168. /* System header to define __stub macros and hopefully few prototypes,
  4169. - which can conflict with char $ac_func(); below. */
  4170. -#include <assert.h>
  4171. + which can conflict with char $ac_func (); below.
  4172. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4173. + <limits.h> exists even on freestanding compilers. */
  4174. +#ifdef __STDC__
  4175. +# include <limits.h>
  4176. +#else
  4177. +# include <assert.h>
  4178. +#endif
  4179. /* Override any gcc2 internal prototype to avoid an error. */
  4180. +#ifdef __cplusplus
  4181. +extern "C"
  4182. +{
  4183. +#endif
  4184. /* We use char because int might match the return type of a gcc2
  4185. - builtin and then its argument prototype would still apply. */
  4186. -char $ac_func();
  4187. -
  4188. -int main() {
  4189. -
  4190. + builtin and then its argument prototype would still apply. */
  4191. +char $ac_func ();
  4192. /* The GNU C library defines this for functions which it implements
  4193. to always fail with ENOSYS. Some functions are actually named
  4194. something starting with __ and the normal name is an alias. */
  4195. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4196. choke me
  4197. #else
  4198. -$ac_func();
  4199. +char (*f) () = $ac_func;
  4200. +#endif
  4201. +#ifdef __cplusplus
  4202. +}
  4203. #endif
  4204. -; return 0; }
  4205. -EOF
  4206. -if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4207. - rm -rf conftest*
  4208. - eval "ac_cv_func_$ac_func=yes"
  4209. -else
  4210. - echo "configure: failed program was:" >&5
  4211. - cat conftest.$ac_ext >&5
  4212. - rm -rf conftest*
  4213. - eval "ac_cv_func_$ac_func=no"
  4214. +int
  4215. +main ()
  4216. +{
  4217. +return f != $ac_func;
  4218. + ;
  4219. + return 0;
  4220. +}
  4221. +_ACEOF
  4222. +rm -f conftest.$ac_objext conftest$ac_exeext
  4223. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4224. + (eval $ac_link) 2>&5
  4225. + ac_status=$?
  4226. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4227. + (exit $ac_status); } &&
  4228. + { ac_try='test -s conftest$ac_exeext'
  4229. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4230. + (eval $ac_try) 2>&5
  4231. + ac_status=$?
  4232. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4233. + (exit $ac_status); }; }; then
  4234. + eval "$as_ac_var=yes"
  4235. +else
  4236. + echo "$as_me: failed program was:" >&5
  4237. +sed 's/^/| /' conftest.$ac_ext >&5
  4238. +
  4239. +eval "$as_ac_var=no"
  4240. +fi
  4241. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4242. +fi
  4243. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4244. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4245. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  4246. + cat >>confdefs.h <<_ACEOF
  4247. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4248. +_ACEOF
  4249. +
  4250. +fi
  4251. +done
  4252. +
  4253. +
  4254. +echo "$as_me:$LINENO: checking for egrep" >&5
  4255. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4256. +if test "${ac_cv_prog_egrep+set}" = set; then
  4257. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4258. +else
  4259. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4260. + then ac_cv_prog_egrep='grep -E'
  4261. + else ac_cv_prog_egrep='egrep'
  4262. + fi
  4263. +fi
  4264. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4265. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4266. + EGREP=$ac_cv_prog_egrep
  4267. +
  4268. +
  4269. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4270. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4271. +if test "${ac_cv_header_stdc+set}" = set; then
  4272. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4273. +else
  4274. + cat >conftest.$ac_ext <<_ACEOF
  4275. +#line $LINENO "configure"
  4276. +/* confdefs.h. */
  4277. +_ACEOF
  4278. +cat confdefs.h >>conftest.$ac_ext
  4279. +cat >>conftest.$ac_ext <<_ACEOF
  4280. +/* end confdefs.h. */
  4281. +#include <stdlib.h>
  4282. +#include <stdarg.h>
  4283. +#include <string.h>
  4284. +#include <float.h>
  4285. +
  4286. +int
  4287. +main ()
  4288. +{
  4289. +
  4290. + ;
  4291. + return 0;
  4292. +}
  4293. +_ACEOF
  4294. +rm -f conftest.$ac_objext
  4295. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4296. + (eval $ac_compile) 2>&5
  4297. + ac_status=$?
  4298. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4299. + (exit $ac_status); } &&
  4300. + { ac_try='test -s conftest.$ac_objext'
  4301. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4302. + (eval $ac_try) 2>&5
  4303. + ac_status=$?
  4304. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4305. + (exit $ac_status); }; }; then
  4306. + ac_cv_header_stdc=yes
  4307. +else
  4308. + echo "$as_me: failed program was:" >&5
  4309. +sed 's/^/| /' conftest.$ac_ext >&5
  4310. +
  4311. +ac_cv_header_stdc=no
  4312. +fi
  4313. +rm -f conftest.$ac_objext conftest.$ac_ext
  4314. +
  4315. +if test $ac_cv_header_stdc = yes; then
  4316. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4317. + cat >conftest.$ac_ext <<_ACEOF
  4318. +#line $LINENO "configure"
  4319. +/* confdefs.h. */
  4320. +_ACEOF
  4321. +cat confdefs.h >>conftest.$ac_ext
  4322. +cat >>conftest.$ac_ext <<_ACEOF
  4323. +/* end confdefs.h. */
  4324. +#include <string.h>
  4325. +
  4326. +_ACEOF
  4327. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4328. + $EGREP "memchr" >/dev/null 2>&1; then
  4329. + :
  4330. +else
  4331. + ac_cv_header_stdc=no
  4332. fi
  4333. rm -f conftest*
  4334. +
  4335. fi
  4336. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4337. - echo "$ac_t""yes" 1>&6
  4338. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4339. - cat >> confdefs.h <<EOF
  4340. -#define $ac_tr_func 1
  4341. -EOF
  4342. -
  4343. +if test $ac_cv_header_stdc = yes; then
  4344. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4345. + cat >conftest.$ac_ext <<_ACEOF
  4346. +#line $LINENO "configure"
  4347. +/* confdefs.h. */
  4348. +_ACEOF
  4349. +cat confdefs.h >>conftest.$ac_ext
  4350. +cat >>conftest.$ac_ext <<_ACEOF
  4351. +/* end confdefs.h. */
  4352. +#include <stdlib.h>
  4353. +
  4354. +_ACEOF
  4355. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4356. + $EGREP "free" >/dev/null 2>&1; then
  4357. + :
  4358. else
  4359. - echo "$ac_t""no" 1>&6
  4360. + ac_cv_header_stdc=no
  4361. +fi
  4362. +rm -f conftest*
  4363. +
  4364. fi
  4365. +
  4366. +if test $ac_cv_header_stdc = yes; then
  4367. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4368. + if test "$cross_compiling" = yes; then
  4369. + :
  4370. +else
  4371. + cat >conftest.$ac_ext <<_ACEOF
  4372. +#line $LINENO "configure"
  4373. +/* confdefs.h. */
  4374. +_ACEOF
  4375. +cat confdefs.h >>conftest.$ac_ext
  4376. +cat >>conftest.$ac_ext <<_ACEOF
  4377. +/* end confdefs.h. */
  4378. +#include <ctype.h>
  4379. +#if ((' ' & 0x0FF) == 0x020)
  4380. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4381. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4382. +#else
  4383. +# define ISLOWER(c) \
  4384. + (('a' <= (c) && (c) <= 'i') \
  4385. + || ('j' <= (c) && (c) <= 'r') \
  4386. + || ('s' <= (c) && (c) <= 'z'))
  4387. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4388. +#endif
  4389. +
  4390. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4391. +int
  4392. +main ()
  4393. +{
  4394. + int i;
  4395. + for (i = 0; i < 256; i++)
  4396. + if (XOR (islower (i), ISLOWER (i))
  4397. + || toupper (i) != TOUPPER (i))
  4398. + exit(2);
  4399. + exit (0);
  4400. +}
  4401. +_ACEOF
  4402. +rm -f conftest$ac_exeext
  4403. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4404. + (eval $ac_link) 2>&5
  4405. + ac_status=$?
  4406. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4407. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4408. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4409. + (eval $ac_try) 2>&5
  4410. + ac_status=$?
  4411. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4412. + (exit $ac_status); }; }; then
  4413. + :
  4414. +else
  4415. + echo "$as_me: program exited with status $ac_status" >&5
  4416. +echo "$as_me: failed program was:" >&5
  4417. +sed 's/^/| /' conftest.$ac_ext >&5
  4418. +
  4419. +( exit $ac_status )
  4420. +ac_cv_header_stdc=no
  4421. +fi
  4422. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4423. +fi
  4424. +fi
  4425. +fi
  4426. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4427. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4428. +if test $ac_cv_header_stdc = yes; then
  4429. +
  4430. +cat >>confdefs.h <<\_ACEOF
  4431. +#define STDC_HEADERS 1
  4432. +_ACEOF
  4433. +
  4434. +fi
  4435. +
  4436. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4437. +
  4438. +
  4439. +
  4440. +
  4441. +
  4442. +
  4443. +
  4444. +
  4445. +
  4446. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4447. + inttypes.h stdint.h unistd.h
  4448. +do
  4449. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4450. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  4451. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4452. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4453. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4454. +else
  4455. + cat >conftest.$ac_ext <<_ACEOF
  4456. +#line $LINENO "configure"
  4457. +/* confdefs.h. */
  4458. +_ACEOF
  4459. +cat confdefs.h >>conftest.$ac_ext
  4460. +cat >>conftest.$ac_ext <<_ACEOF
  4461. +/* end confdefs.h. */
  4462. +$ac_includes_default
  4463. +
  4464. +#include <$ac_header>
  4465. +_ACEOF
  4466. +rm -f conftest.$ac_objext
  4467. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4468. + (eval $ac_compile) 2>&5
  4469. + ac_status=$?
  4470. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. + (exit $ac_status); } &&
  4472. + { ac_try='test -s conftest.$ac_objext'
  4473. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4474. + (eval $ac_try) 2>&5
  4475. + ac_status=$?
  4476. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. + (exit $ac_status); }; }; then
  4478. + eval "$as_ac_Header=yes"
  4479. +else
  4480. + echo "$as_me: failed program was:" >&5
  4481. +sed 's/^/| /' conftest.$ac_ext >&5
  4482. +
  4483. +eval "$as_ac_Header=no"
  4484. +fi
  4485. +rm -f conftest.$ac_objext conftest.$ac_ext
  4486. +fi
  4487. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4488. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4489. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4490. + cat >>confdefs.h <<_ACEOF
  4491. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4492. +_ACEOF
  4493. +
  4494. +fi
  4495. +
  4496. done
  4497. -for ac_hdr in procfs.h sys/procfs.h sys/loadavg.h
  4498. +
  4499. +
  4500. +
  4501. +
  4502. +for ac_header in procfs.h sys/procfs.h sys/loadavg.h
  4503. do
  4504. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4505. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4506. -echo "configure:1655: checking for $ac_hdr" >&5
  4507. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4508. - echo $ac_n "(cached) $ac_c" 1>&6
  4509. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4510. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4511. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  4512. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4513. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4514. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4515. +fi
  4516. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4517. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4518. +else
  4519. + # Is the header compilable?
  4520. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4521. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4522. +cat >conftest.$ac_ext <<_ACEOF
  4523. +#line $LINENO "configure"
  4524. +/* confdefs.h. */
  4525. +_ACEOF
  4526. +cat confdefs.h >>conftest.$ac_ext
  4527. +cat >>conftest.$ac_ext <<_ACEOF
  4528. +/* end confdefs.h. */
  4529. +$ac_includes_default
  4530. +#include <$ac_header>
  4531. +_ACEOF
  4532. +rm -f conftest.$ac_objext
  4533. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4534. + (eval $ac_compile) 2>&5
  4535. + ac_status=$?
  4536. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4537. + (exit $ac_status); } &&
  4538. + { ac_try='test -s conftest.$ac_objext'
  4539. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4540. + (eval $ac_try) 2>&5
  4541. + ac_status=$?
  4542. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4543. + (exit $ac_status); }; }; then
  4544. + ac_header_compiler=yes
  4545. +else
  4546. + echo "$as_me: failed program was:" >&5
  4547. +sed 's/^/| /' conftest.$ac_ext >&5
  4548. +
  4549. +ac_header_compiler=no
  4550. +fi
  4551. +rm -f conftest.$ac_objext conftest.$ac_ext
  4552. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4553. +echo "${ECHO_T}$ac_header_compiler" >&6
  4554. +
  4555. +# Is the header present?
  4556. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4557. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4558. +cat >conftest.$ac_ext <<_ACEOF
  4559. +#line $LINENO "configure"
  4560. +/* confdefs.h. */
  4561. +_ACEOF
  4562. +cat confdefs.h >>conftest.$ac_ext
  4563. +cat >>conftest.$ac_ext <<_ACEOF
  4564. +/* end confdefs.h. */
  4565. +#include <$ac_header>
  4566. +_ACEOF
  4567. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4568. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4569. + ac_status=$?
  4570. + grep -v '^ *+' conftest.er1 >conftest.err
  4571. + rm -f conftest.er1
  4572. + cat conftest.err >&5
  4573. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4574. + (exit $ac_status); } >/dev/null; then
  4575. + if test -s conftest.err; then
  4576. + ac_cpp_err=$ac_c_preproc_warn_flag
  4577. + else
  4578. + ac_cpp_err=
  4579. + fi
  4580. else
  4581. - cat > conftest.$ac_ext <<EOF
  4582. -#line 1660 "configure"
  4583. -#include "confdefs.h"
  4584. -#include <$ac_hdr>
  4585. -EOF
  4586. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4587. -{ (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4588. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4589. -if test -z "$ac_err"; then
  4590. - rm -rf conftest*
  4591. - eval "ac_cv_header_$ac_safe=yes"
  4592. -else
  4593. - echo "$ac_err" >&5
  4594. - echo "configure: failed program was:" >&5
  4595. - cat conftest.$ac_ext >&5
  4596. - rm -rf conftest*
  4597. - eval "ac_cv_header_$ac_safe=no"
  4598. -fi
  4599. -rm -f conftest*
  4600. + ac_cpp_err=yes
  4601. fi
  4602. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4603. - echo "$ac_t""yes" 1>&6
  4604. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4605. - cat >> confdefs.h <<EOF
  4606. -#define $ac_tr_hdr 1
  4607. -EOF
  4608. -
  4609. +if test -z "$ac_cpp_err"; then
  4610. + ac_header_preproc=yes
  4611. else
  4612. - echo "$ac_t""no" 1>&6
  4613. + echo "$as_me: failed program was:" >&5
  4614. +sed 's/^/| /' conftest.$ac_ext >&5
  4615. +
  4616. + ac_header_preproc=no
  4617. +fi
  4618. +rm -f conftest.err conftest.$ac_ext
  4619. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4620. +echo "${ECHO_T}$ac_header_preproc" >&6
  4621. +
  4622. +# So? What about this header?
  4623. +case $ac_header_compiler:$ac_header_preproc in
  4624. + yes:no )
  4625. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4626. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4627. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4628. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4629. + (
  4630. + cat <<\_ASBOX
  4631. +## ------------------------------------ ##
  4632. +## Report this to bug-autoconf@gnu.org. ##
  4633. +## ------------------------------------ ##
  4634. +_ASBOX
  4635. + ) |
  4636. + sed "s/^/$as_me: WARNING: /" >&2
  4637. + ;;
  4638. + no:yes )
  4639. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4640. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4641. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4642. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4643. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4644. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4645. + (
  4646. + cat <<\_ASBOX
  4647. +## ------------------------------------ ##
  4648. +## Report this to bug-autoconf@gnu.org. ##
  4649. +## ------------------------------------ ##
  4650. +_ASBOX
  4651. + ) |
  4652. + sed "s/^/$as_me: WARNING: /" >&2
  4653. + ;;
  4654. +esac
  4655. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  4656. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4657. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4658. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4659. +else
  4660. + eval "$as_ac_Header=$ac_header_preproc"
  4661. +fi
  4662. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4663. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4664. +
  4665. fi
  4666. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4667. + cat >>confdefs.h <<_ACEOF
  4668. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4669. +_ACEOF
  4670. +
  4671. +fi
  4672. +
  4673. done
  4674. -echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
  4675. -echo "configure:1693: checking for kvm_open in -lkvm" >&5
  4676. -ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
  4677. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4678. - echo $ac_n "(cached) $ac_c" 1>&6
  4679. +echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
  4680. +echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
  4681. +if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
  4682. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4683. else
  4684. - ac_save_LIBS="$LIBS"
  4685. + ac_check_lib_save_LIBS=$LIBS
  4686. LIBS="-lkvm $LIBS"
  4687. -cat > conftest.$ac_ext <<EOF
  4688. -#line 1701 "configure"
  4689. -#include "confdefs.h"
  4690. +cat >conftest.$ac_ext <<_ACEOF
  4691. +#line $LINENO "configure"
  4692. +/* confdefs.h. */
  4693. +_ACEOF
  4694. +cat confdefs.h >>conftest.$ac_ext
  4695. +cat >>conftest.$ac_ext <<_ACEOF
  4696. +/* end confdefs.h. */
  4697. +
  4698. /* Override any gcc2 internal prototype to avoid an error. */
  4699. +#ifdef __cplusplus
  4700. +extern "C"
  4701. +#endif
  4702. /* We use char because int might match the return type of a gcc2
  4703. - builtin and then its argument prototype would still apply. */
  4704. -char kvm_open();
  4705. -
  4706. -int main() {
  4707. -kvm_open()
  4708. -; return 0; }
  4709. -EOF
  4710. -if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4711. - rm -rf conftest*
  4712. - eval "ac_cv_lib_$ac_lib_var=yes"
  4713. -else
  4714. - echo "configure: failed program was:" >&5
  4715. - cat conftest.$ac_ext >&5
  4716. - rm -rf conftest*
  4717. - eval "ac_cv_lib_$ac_lib_var=no"
  4718. -fi
  4719. -rm -f conftest*
  4720. -LIBS="$ac_save_LIBS"
  4721. + builtin and then its argument prototype would still apply. */
  4722. +char kvm_open ();
  4723. +int
  4724. +main ()
  4725. +{
  4726. +kvm_open ();
  4727. + ;
  4728. + return 0;
  4729. +}
  4730. +_ACEOF
  4731. +rm -f conftest.$ac_objext conftest$ac_exeext
  4732. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4733. + (eval $ac_link) 2>&5
  4734. + ac_status=$?
  4735. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4736. + (exit $ac_status); } &&
  4737. + { ac_try='test -s conftest$ac_exeext'
  4738. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4739. + (eval $ac_try) 2>&5
  4740. + ac_status=$?
  4741. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4742. + (exit $ac_status); }; }; then
  4743. + ac_cv_lib_kvm_kvm_open=yes
  4744. +else
  4745. + echo "$as_me: failed program was:" >&5
  4746. +sed 's/^/| /' conftest.$ac_ext >&5
  4747. +
  4748. +ac_cv_lib_kvm_kvm_open=no
  4749. +fi
  4750. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4751. +LIBS=$ac_check_lib_save_LIBS
  4752. +fi
  4753. +echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
  4754. +echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
  4755. +if test $ac_cv_lib_kvm_kvm_open = yes; then
  4756. -fi
  4757. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4758. - echo "$ac_t""yes" 1>&6
  4759. -
  4760. LIBS="-lkvm $LIBS"
  4761. else
  4762. - echo "$ac_t""no" 1>&6
  4763. -echo $ac_n "checking for kvm_open in -lkvm with -lelf""... $ac_c" 1>&6
  4764. -echo "configure:1733: checking for kvm_open in -lkvm with -lelf" >&5
  4765. - if eval "test \"`echo '$''{'ac_cv_lib_kvm_with_elf'+set}'`\" = set"; then
  4766. - echo $ac_n "(cached) $ac_c" 1>&6
  4767. + echo "$as_me:$LINENO: checking for kvm_open in -lkvm with -lelf" >&5
  4768. +echo $ECHO_N "checking for kvm_open in -lkvm with -lelf... $ECHO_C" >&6
  4769. + if test "${ac_cv_lib_kvm_with_elf+set}" = set; then
  4770. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4771. else
  4772. ac_save_LIBS="$LIBS"
  4773. LIBS="-lkvm -lelf $LIBS"
  4774. - cat > conftest.$ac_ext <<EOF
  4775. -#line 1740 "configure"
  4776. -#include "confdefs.h"
  4777. + cat >conftest.$ac_ext <<_ACEOF
  4778. +#line $LINENO "configure"
  4779. +/* confdefs.h. */
  4780. +_ACEOF
  4781. +cat confdefs.h >>conftest.$ac_ext
  4782. +cat >>conftest.$ac_ext <<_ACEOF
  4783. +/* end confdefs.h. */
  4784. char kvm_open();
  4785. -int main() {
  4786. +int
  4787. +main ()
  4788. +{
  4789. kvm_open()
  4790. -; return 0; }
  4791. -EOF
  4792. -if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4793. - rm -rf conftest*
  4794. + ;
  4795. + return 0;
  4796. +}
  4797. +_ACEOF
  4798. +rm -f conftest.$ac_objext conftest$ac_exeext
  4799. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4800. + (eval $ac_link) 2>&5
  4801. + ac_status=$?
  4802. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4803. + (exit $ac_status); } &&
  4804. + { ac_try='test -s conftest$ac_exeext'
  4805. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4806. + (eval $ac_try) 2>&5
  4807. + ac_status=$?
  4808. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4809. + (exit $ac_status); }; }; then
  4810. ac_cv_lib_kvm_with_elf=yes
  4811. else
  4812. - echo "configure: failed program was:" >&5
  4813. - cat conftest.$ac_ext >&5
  4814. - rm -rf conftest*
  4815. - ac_cv_lib_kvm_with_elf=no
  4816. + echo "$as_me: failed program was:" >&5
  4817. +sed 's/^/| /' conftest.$ac_ext >&5
  4818. +
  4819. +ac_cv_lib_kvm_with_elf=no
  4820. fi
  4821. -rm -f conftest*
  4822. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4823. LIBS="$ac_save_LIBS"
  4824. -
  4825. +
  4826. fi
  4827. if test "$ac_cv_lib_kvm_with_elf" = "yes"; then
  4828. - echo "$ac_t""yes" 1>&6
  4829. + echo "$as_me:$LINENO: result: yes" >&5
  4830. +echo "${ECHO_T}yes" >&6
  4831. LIBS="-lkvm -lelf $LIBS"
  4832. else
  4833. - echo "$ac_t""no" 1>&6
  4834. + echo "$as_me:$LINENO: result: no" >&5
  4835. +echo "${ECHO_T}no" >&6
  4836. fi
  4837. fi
  4838. +
  4839. +
  4840. +
  4841. +
  4842. +
  4843. ac_header_dirent=no
  4844. -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  4845. -do
  4846. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4847. -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  4848. -echo "configure:1776: checking for $ac_hdr that defines DIR" >&5
  4849. -if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  4850. - echo $ac_n "(cached) $ac_c" 1>&6
  4851. -else
  4852. - cat > conftest.$ac_ext <<EOF
  4853. -#line 1781 "configure"
  4854. -#include "confdefs.h"
  4855. +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4856. + as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4857. +echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4858. +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4859. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4860. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4861. +else
  4862. + cat >conftest.$ac_ext <<_ACEOF
  4863. +#line $LINENO "configure"
  4864. +/* confdefs.h. */
  4865. +_ACEOF
  4866. +cat confdefs.h >>conftest.$ac_ext
  4867. +cat >>conftest.$ac_ext <<_ACEOF
  4868. +/* end confdefs.h. */
  4869. #include <sys/types.h>
  4870. #include <$ac_hdr>
  4871. -int main() {
  4872. -DIR *dirp = 0;
  4873. -; return 0; }
  4874. -EOF
  4875. -if { (eval echo configure:1789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4876. - rm -rf conftest*
  4877. - eval "ac_cv_header_dirent_$ac_safe=yes"
  4878. -else
  4879. - echo "configure: failed program was:" >&5
  4880. - cat conftest.$ac_ext >&5
  4881. - rm -rf conftest*
  4882. - eval "ac_cv_header_dirent_$ac_safe=no"
  4883. -fi
  4884. -rm -f conftest*
  4885. -fi
  4886. -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  4887. - echo "$ac_t""yes" 1>&6
  4888. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4889. - cat >> confdefs.h <<EOF
  4890. -#define $ac_tr_hdr 1
  4891. -EOF
  4892. - ac_header_dirent=$ac_hdr; break
  4893. -else
  4894. - echo "$ac_t""no" 1>&6
  4895. +
  4896. +int
  4897. +main ()
  4898. +{
  4899. +if ((DIR *) 0)
  4900. +return 0;
  4901. + ;
  4902. + return 0;
  4903. +}
  4904. +_ACEOF
  4905. +rm -f conftest.$ac_objext
  4906. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4907. + (eval $ac_compile) 2>&5
  4908. + ac_status=$?
  4909. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4910. + (exit $ac_status); } &&
  4911. + { ac_try='test -s conftest.$ac_objext'
  4912. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4913. + (eval $ac_try) 2>&5
  4914. + ac_status=$?
  4915. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4916. + (exit $ac_status); }; }; then
  4917. + eval "$as_ac_Header=yes"
  4918. +else
  4919. + echo "$as_me: failed program was:" >&5
  4920. +sed 's/^/| /' conftest.$ac_ext >&5
  4921. +
  4922. +eval "$as_ac_Header=no"
  4923. +fi
  4924. +rm -f conftest.$ac_objext conftest.$ac_ext
  4925. +fi
  4926. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4927. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4928. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4929. + cat >>confdefs.h <<_ACEOF
  4930. +#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4931. +_ACEOF
  4932. +
  4933. +ac_header_dirent=$ac_hdr; break
  4934. fi
  4935. +
  4936. done
  4937. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4938. if test $ac_header_dirent = dirent.h; then
  4939. -echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  4940. -echo "configure:1814: checking for opendir in -ldir" >&5
  4941. -ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  4942. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4943. - echo $ac_n "(cached) $ac_c" 1>&6
  4944. -else
  4945. - ac_save_LIBS="$LIBS"
  4946. -LIBS="-ldir $LIBS"
  4947. -cat > conftest.$ac_ext <<EOF
  4948. -#line 1822 "configure"
  4949. -#include "confdefs.h"
  4950. + echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4951. +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4952. +if test "${ac_cv_search_opendir+set}" = set; then
  4953. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4954. +else
  4955. + ac_func_search_save_LIBS=$LIBS
  4956. +ac_cv_search_opendir=no
  4957. +cat >conftest.$ac_ext <<_ACEOF
  4958. +#line $LINENO "configure"
  4959. +/* confdefs.h. */
  4960. +_ACEOF
  4961. +cat confdefs.h >>conftest.$ac_ext
  4962. +cat >>conftest.$ac_ext <<_ACEOF
  4963. +/* end confdefs.h. */
  4964. +
  4965. /* Override any gcc2 internal prototype to avoid an error. */
  4966. +#ifdef __cplusplus
  4967. +extern "C"
  4968. +#endif
  4969. /* We use char because int might match the return type of a gcc2
  4970. - builtin and then its argument prototype would still apply. */
  4971. -char opendir();
  4972. + builtin and then its argument prototype would still apply. */
  4973. +char opendir ();
  4974. +int
  4975. +main ()
  4976. +{
  4977. +opendir ();
  4978. + ;
  4979. + return 0;
  4980. +}
  4981. +_ACEOF
  4982. +rm -f conftest.$ac_objext conftest$ac_exeext
  4983. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4984. + (eval $ac_link) 2>&5
  4985. + ac_status=$?
  4986. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4987. + (exit $ac_status); } &&
  4988. + { ac_try='test -s conftest$ac_exeext'
  4989. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4990. + (eval $ac_try) 2>&5
  4991. + ac_status=$?
  4992. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4993. + (exit $ac_status); }; }; then
  4994. + ac_cv_search_opendir="none required"
  4995. +else
  4996. + echo "$as_me: failed program was:" >&5
  4997. +sed 's/^/| /' conftest.$ac_ext >&5
  4998. +
  4999. +fi
  5000. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5001. +if test "$ac_cv_search_opendir" = no; then
  5002. + for ac_lib in dir; do
  5003. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5004. + cat >conftest.$ac_ext <<_ACEOF
  5005. +#line $LINENO "configure"
  5006. +/* confdefs.h. */
  5007. +_ACEOF
  5008. +cat confdefs.h >>conftest.$ac_ext
  5009. +cat >>conftest.$ac_ext <<_ACEOF
  5010. +/* end confdefs.h. */
  5011. -int main() {
  5012. -opendir()
  5013. -; return 0; }
  5014. -EOF
  5015. -if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5016. - rm -rf conftest*
  5017. - eval "ac_cv_lib_$ac_lib_var=yes"
  5018. -else
  5019. - echo "configure: failed program was:" >&5
  5020. - cat conftest.$ac_ext >&5
  5021. - rm -rf conftest*
  5022. - eval "ac_cv_lib_$ac_lib_var=no"
  5023. -fi
  5024. -rm -f conftest*
  5025. -LIBS="$ac_save_LIBS"
  5026. +/* Override any gcc2 internal prototype to avoid an error. */
  5027. +#ifdef __cplusplus
  5028. +extern "C"
  5029. +#endif
  5030. +/* We use char because int might match the return type of a gcc2
  5031. + builtin and then its argument prototype would still apply. */
  5032. +char opendir ();
  5033. +int
  5034. +main ()
  5035. +{
  5036. +opendir ();
  5037. + ;
  5038. + return 0;
  5039. +}
  5040. +_ACEOF
  5041. +rm -f conftest.$ac_objext conftest$ac_exeext
  5042. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5043. + (eval $ac_link) 2>&5
  5044. + ac_status=$?
  5045. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5046. + (exit $ac_status); } &&
  5047. + { ac_try='test -s conftest$ac_exeext'
  5048. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5049. + (eval $ac_try) 2>&5
  5050. + ac_status=$?
  5051. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5052. + (exit $ac_status); }; }; then
  5053. + ac_cv_search_opendir="-l$ac_lib"
  5054. +break
  5055. +else
  5056. + echo "$as_me: failed program was:" >&5
  5057. +sed 's/^/| /' conftest.$ac_ext >&5
  5058. fi
  5059. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5060. - echo "$ac_t""yes" 1>&6
  5061. - LIBS="$LIBS -ldir"
  5062. -else
  5063. - echo "$ac_t""no" 1>&6
  5064. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5065. + done
  5066. +fi
  5067. +LIBS=$ac_func_search_save_LIBS
  5068. +fi
  5069. +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5070. +echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5071. +if test "$ac_cv_search_opendir" != no; then
  5072. + test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5073. +
  5074. fi
  5075. else
  5076. -echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  5077. -echo "configure:1855: checking for opendir in -lx" >&5
  5078. -ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  5079. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5080. - echo $ac_n "(cached) $ac_c" 1>&6
  5081. -else
  5082. - ac_save_LIBS="$LIBS"
  5083. -LIBS="-lx $LIBS"
  5084. -cat > conftest.$ac_ext <<EOF
  5085. -#line 1863 "configure"
  5086. -#include "confdefs.h"
  5087. + echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5088. +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5089. +if test "${ac_cv_search_opendir+set}" = set; then
  5090. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5091. +else
  5092. + ac_func_search_save_LIBS=$LIBS
  5093. +ac_cv_search_opendir=no
  5094. +cat >conftest.$ac_ext <<_ACEOF
  5095. +#line $LINENO "configure"
  5096. +/* confdefs.h. */
  5097. +_ACEOF
  5098. +cat confdefs.h >>conftest.$ac_ext
  5099. +cat >>conftest.$ac_ext <<_ACEOF
  5100. +/* end confdefs.h. */
  5101. +
  5102. /* Override any gcc2 internal prototype to avoid an error. */
  5103. +#ifdef __cplusplus
  5104. +extern "C"
  5105. +#endif
  5106. /* We use char because int might match the return type of a gcc2
  5107. - builtin and then its argument prototype would still apply. */
  5108. -char opendir();
  5109. + builtin and then its argument prototype would still apply. */
  5110. +char opendir ();
  5111. +int
  5112. +main ()
  5113. +{
  5114. +opendir ();
  5115. + ;
  5116. + return 0;
  5117. +}
  5118. +_ACEOF
  5119. +rm -f conftest.$ac_objext conftest$ac_exeext
  5120. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5121. + (eval $ac_link) 2>&5
  5122. + ac_status=$?
  5123. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5124. + (exit $ac_status); } &&
  5125. + { ac_try='test -s conftest$ac_exeext'
  5126. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5127. + (eval $ac_try) 2>&5
  5128. + ac_status=$?
  5129. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5130. + (exit $ac_status); }; }; then
  5131. + ac_cv_search_opendir="none required"
  5132. +else
  5133. + echo "$as_me: failed program was:" >&5
  5134. +sed 's/^/| /' conftest.$ac_ext >&5
  5135. +
  5136. +fi
  5137. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5138. +if test "$ac_cv_search_opendir" = no; then
  5139. + for ac_lib in x; do
  5140. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5141. + cat >conftest.$ac_ext <<_ACEOF
  5142. +#line $LINENO "configure"
  5143. +/* confdefs.h. */
  5144. +_ACEOF
  5145. +cat confdefs.h >>conftest.$ac_ext
  5146. +cat >>conftest.$ac_ext <<_ACEOF
  5147. +/* end confdefs.h. */
  5148. -int main() {
  5149. -opendir()
  5150. -; return 0; }
  5151. -EOF
  5152. -if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5153. - rm -rf conftest*
  5154. - eval "ac_cv_lib_$ac_lib_var=yes"
  5155. -else
  5156. - echo "configure: failed program was:" >&5
  5157. - cat conftest.$ac_ext >&5
  5158. - rm -rf conftest*
  5159. - eval "ac_cv_lib_$ac_lib_var=no"
  5160. -fi
  5161. -rm -f conftest*
  5162. -LIBS="$ac_save_LIBS"
  5163. +/* Override any gcc2 internal prototype to avoid an error. */
  5164. +#ifdef __cplusplus
  5165. +extern "C"
  5166. +#endif
  5167. +/* We use char because int might match the return type of a gcc2
  5168. + builtin and then its argument prototype would still apply. */
  5169. +char opendir ();
  5170. +int
  5171. +main ()
  5172. +{
  5173. +opendir ();
  5174. + ;
  5175. + return 0;
  5176. +}
  5177. +_ACEOF
  5178. +rm -f conftest.$ac_objext conftest$ac_exeext
  5179. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5180. + (eval $ac_link) 2>&5
  5181. + ac_status=$?
  5182. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5183. + (exit $ac_status); } &&
  5184. + { ac_try='test -s conftest$ac_exeext'
  5185. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5186. + (eval $ac_try) 2>&5
  5187. + ac_status=$?
  5188. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5189. + (exit $ac_status); }; }; then
  5190. + ac_cv_search_opendir="-l$ac_lib"
  5191. +break
  5192. +else
  5193. + echo "$as_me: failed program was:" >&5
  5194. +sed 's/^/| /' conftest.$ac_ext >&5
  5195. fi
  5196. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5197. - echo "$ac_t""yes" 1>&6
  5198. - LIBS="$LIBS -lx"
  5199. -else
  5200. - echo "$ac_t""no" 1>&6
  5201. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5202. + done
  5203. +fi
  5204. +LIBS=$ac_func_search_save_LIBS
  5205. +fi
  5206. +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5207. +echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5208. +if test "$ac_cv_search_opendir" != no; then
  5209. + test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5210. +
  5211. fi
  5212. fi
  5213. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  5214. -echo "configure:1897: checking for ANSI C header files" >&5
  5215. -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  5216. - echo $ac_n "(cached) $ac_c" 1>&6
  5217. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5218. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5219. +if test "${ac_cv_header_stdc+set}" = set; then
  5220. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5221. else
  5222. - cat > conftest.$ac_ext <<EOF
  5223. -#line 1902 "configure"
  5224. -#include "confdefs.h"
  5225. + cat >conftest.$ac_ext <<_ACEOF
  5226. +#line $LINENO "configure"
  5227. +/* confdefs.h. */
  5228. +_ACEOF
  5229. +cat confdefs.h >>conftest.$ac_ext
  5230. +cat >>conftest.$ac_ext <<_ACEOF
  5231. +/* end confdefs.h. */
  5232. #include <stdlib.h>
  5233. #include <stdarg.h>
  5234. #include <string.h>
  5235. #include <float.h>
  5236. -EOF
  5237. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5238. -{ (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5239. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5240. -if test -z "$ac_err"; then
  5241. - rm -rf conftest*
  5242. +
  5243. +int
  5244. +main ()
  5245. +{
  5246. +
  5247. + ;
  5248. + return 0;
  5249. +}
  5250. +_ACEOF
  5251. +rm -f conftest.$ac_objext
  5252. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5253. + (eval $ac_compile) 2>&5
  5254. + ac_status=$?
  5255. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5256. + (exit $ac_status); } &&
  5257. + { ac_try='test -s conftest.$ac_objext'
  5258. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5259. + (eval $ac_try) 2>&5
  5260. + ac_status=$?
  5261. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5262. + (exit $ac_status); }; }; then
  5263. ac_cv_header_stdc=yes
  5264. else
  5265. - echo "$ac_err" >&5
  5266. - echo "configure: failed program was:" >&5
  5267. - cat conftest.$ac_ext >&5
  5268. - rm -rf conftest*
  5269. - ac_cv_header_stdc=no
  5270. + echo "$as_me: failed program was:" >&5
  5271. +sed 's/^/| /' conftest.$ac_ext >&5
  5272. +
  5273. +ac_cv_header_stdc=no
  5274. fi
  5275. -rm -f conftest*
  5276. +rm -f conftest.$ac_objext conftest.$ac_ext
  5277. if test $ac_cv_header_stdc = yes; then
  5278. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5279. -cat > conftest.$ac_ext <<EOF
  5280. -#line 1927 "configure"
  5281. -#include "confdefs.h"
  5282. + cat >conftest.$ac_ext <<_ACEOF
  5283. +#line $LINENO "configure"
  5284. +/* confdefs.h. */
  5285. +_ACEOF
  5286. +cat confdefs.h >>conftest.$ac_ext
  5287. +cat >>conftest.$ac_ext <<_ACEOF
  5288. +/* end confdefs.h. */
  5289. #include <string.h>
  5290. -EOF
  5291. +
  5292. +_ACEOF
  5293. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5294. - egrep "memchr" >/dev/null 2>&1; then
  5295. + $EGREP "memchr" >/dev/null 2>&1; then
  5296. :
  5297. else
  5298. - rm -rf conftest*
  5299. ac_cv_header_stdc=no
  5300. fi
  5301. rm -f conftest*
  5302. @@ -1940,16 +4358,20 @@
  5303. if test $ac_cv_header_stdc = yes; then
  5304. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5305. -cat > conftest.$ac_ext <<EOF
  5306. -#line 1945 "configure"
  5307. -#include "confdefs.h"
  5308. + cat >conftest.$ac_ext <<_ACEOF
  5309. +#line $LINENO "configure"
  5310. +/* confdefs.h. */
  5311. +_ACEOF
  5312. +cat confdefs.h >>conftest.$ac_ext
  5313. +cat >>conftest.$ac_ext <<_ACEOF
  5314. +/* end confdefs.h. */
  5315. #include <stdlib.h>
  5316. -EOF
  5317. +
  5318. +_ACEOF
  5319. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5320. - egrep "free" >/dev/null 2>&1; then
  5321. + $EGREP "free" >/dev/null 2>&1; then
  5322. :
  5323. else
  5324. - rm -rf conftest*
  5325. ac_cv_header_stdc=no
  5326. fi
  5327. rm -f conftest*
  5328. @@ -1958,436 +4380,794 @@
  5329. if test $ac_cv_header_stdc = yes; then
  5330. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5331. -if test "$cross_compiling" = yes; then
  5332. + if test "$cross_compiling" = yes; then
  5333. :
  5334. else
  5335. - cat > conftest.$ac_ext <<EOF
  5336. -#line 1966 "configure"
  5337. -#include "confdefs.h"
  5338. + cat >conftest.$ac_ext <<_ACEOF
  5339. +#line $LINENO "configure"
  5340. +/* confdefs.h. */
  5341. +_ACEOF
  5342. +cat confdefs.h >>conftest.$ac_ext
  5343. +cat >>conftest.$ac_ext <<_ACEOF
  5344. +/* end confdefs.h. */
  5345. #include <ctype.h>
  5346. -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5347. -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5348. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5349. -int main () { int i; for (i = 0; i < 256; i++)
  5350. -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  5351. -exit (0); }
  5352. +#if ((' ' & 0x0FF) == 0x020)
  5353. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5354. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5355. +#else
  5356. +# define ISLOWER(c) \
  5357. + (('a' <= (c) && (c) <= 'i') \
  5358. + || ('j' <= (c) && (c) <= 'r') \
  5359. + || ('s' <= (c) && (c) <= 'z'))
  5360. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5361. +#endif
  5362. -EOF
  5363. -if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5364. -then
  5365. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5366. +int
  5367. +main ()
  5368. +{
  5369. + int i;
  5370. + for (i = 0; i < 256; i++)
  5371. + if (XOR (islower (i), ISLOWER (i))
  5372. + || toupper (i) != TOUPPER (i))
  5373. + exit(2);
  5374. + exit (0);
  5375. +}
  5376. +_ACEOF
  5377. +rm -f conftest$ac_exeext
  5378. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5379. + (eval $ac_link) 2>&5
  5380. + ac_status=$?
  5381. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5382. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5383. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5384. + (eval $ac_try) 2>&5
  5385. + ac_status=$?
  5386. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5387. + (exit $ac_status); }; }; then
  5388. :
  5389. else
  5390. - echo "configure: failed program was:" >&5
  5391. - cat conftest.$ac_ext >&5
  5392. - rm -fr conftest*
  5393. - ac_cv_header_stdc=no
  5394. + echo "$as_me: program exited with status $ac_status" >&5
  5395. +echo "$as_me: failed program was:" >&5
  5396. +sed 's/^/| /' conftest.$ac_ext >&5
  5397. +
  5398. +( exit $ac_status )
  5399. +ac_cv_header_stdc=no
  5400. fi
  5401. -rm -fr conftest*
  5402. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5403. fi
  5404. -
  5405. fi
  5406. fi
  5407. -
  5408. -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  5409. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5410. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5411. if test $ac_cv_header_stdc = yes; then
  5412. - cat >> confdefs.h <<\EOF
  5413. +
  5414. +cat >>confdefs.h <<\_ACEOF
  5415. #define STDC_HEADERS 1
  5416. -EOF
  5417. +_ACEOF
  5418. fi
  5419. -for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
  5420. +
  5421. +
  5422. +
  5423. +
  5424. +for ac_header in fcntl.h sys/ioctl.h sys/time.h unistd.h
  5425. do
  5426. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5427. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5428. -echo "configure:2004: checking for $ac_hdr" >&5
  5429. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5430. - echo $ac_n "(cached) $ac_c" 1>&6
  5431. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5432. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5433. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  5434. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5435. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5436. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5437. +fi
  5438. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5439. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5440. +else
  5441. + # Is the header compilable?
  5442. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5443. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5444. +cat >conftest.$ac_ext <<_ACEOF
  5445. +#line $LINENO "configure"
  5446. +/* confdefs.h. */
  5447. +_ACEOF
  5448. +cat confdefs.h >>conftest.$ac_ext
  5449. +cat >>conftest.$ac_ext <<_ACEOF
  5450. +/* end confdefs.h. */
  5451. +$ac_includes_default
  5452. +#include <$ac_header>
  5453. +_ACEOF
  5454. +rm -f conftest.$ac_objext
  5455. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5456. + (eval $ac_compile) 2>&5
  5457. + ac_status=$?
  5458. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5459. + (exit $ac_status); } &&
  5460. + { ac_try='test -s conftest.$ac_objext'
  5461. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5462. + (eval $ac_try) 2>&5
  5463. + ac_status=$?
  5464. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5465. + (exit $ac_status); }; }; then
  5466. + ac_header_compiler=yes
  5467. +else
  5468. + echo "$as_me: failed program was:" >&5
  5469. +sed 's/^/| /' conftest.$ac_ext >&5
  5470. +
  5471. +ac_header_compiler=no
  5472. +fi
  5473. +rm -f conftest.$ac_objext conftest.$ac_ext
  5474. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5475. +echo "${ECHO_T}$ac_header_compiler" >&6
  5476. +
  5477. +# Is the header present?
  5478. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5479. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5480. +cat >conftest.$ac_ext <<_ACEOF
  5481. +#line $LINENO "configure"
  5482. +/* confdefs.h. */
  5483. +_ACEOF
  5484. +cat confdefs.h >>conftest.$ac_ext
  5485. +cat >>conftest.$ac_ext <<_ACEOF
  5486. +/* end confdefs.h. */
  5487. +#include <$ac_header>
  5488. +_ACEOF
  5489. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5490. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5491. + ac_status=$?
  5492. + grep -v '^ *+' conftest.er1 >conftest.err
  5493. + rm -f conftest.er1
  5494. + cat conftest.err >&5
  5495. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5496. + (exit $ac_status); } >/dev/null; then
  5497. + if test -s conftest.err; then
  5498. + ac_cpp_err=$ac_c_preproc_warn_flag
  5499. + else
  5500. + ac_cpp_err=
  5501. + fi
  5502. else
  5503. - cat > conftest.$ac_ext <<EOF
  5504. -#line 2009 "configure"
  5505. -#include "confdefs.h"
  5506. -#include <$ac_hdr>
  5507. -EOF
  5508. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5509. -{ (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5510. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5511. -if test -z "$ac_err"; then
  5512. - rm -rf conftest*
  5513. - eval "ac_cv_header_$ac_safe=yes"
  5514. -else
  5515. - echo "$ac_err" >&5
  5516. - echo "configure: failed program was:" >&5
  5517. - cat conftest.$ac_ext >&5
  5518. - rm -rf conftest*
  5519. - eval "ac_cv_header_$ac_safe=no"
  5520. -fi
  5521. -rm -f conftest*
  5522. + ac_cpp_err=yes
  5523. fi
  5524. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5525. - echo "$ac_t""yes" 1>&6
  5526. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5527. - cat >> confdefs.h <<EOF
  5528. -#define $ac_tr_hdr 1
  5529. -EOF
  5530. -
  5531. +if test -z "$ac_cpp_err"; then
  5532. + ac_header_preproc=yes
  5533. +else
  5534. + echo "$as_me: failed program was:" >&5
  5535. +sed 's/^/| /' conftest.$ac_ext >&5
  5536. +
  5537. + ac_header_preproc=no
  5538. +fi
  5539. +rm -f conftest.err conftest.$ac_ext
  5540. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5541. +echo "${ECHO_T}$ac_header_preproc" >&6
  5542. +
  5543. +# So? What about this header?
  5544. +case $ac_header_compiler:$ac_header_preproc in
  5545. + yes:no )
  5546. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5547. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5548. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5549. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5550. + (
  5551. + cat <<\_ASBOX
  5552. +## ------------------------------------ ##
  5553. +## Report this to bug-autoconf@gnu.org. ##
  5554. +## ------------------------------------ ##
  5555. +_ASBOX
  5556. + ) |
  5557. + sed "s/^/$as_me: WARNING: /" >&2
  5558. + ;;
  5559. + no:yes )
  5560. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5561. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5562. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5563. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5564. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5565. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5566. + (
  5567. + cat <<\_ASBOX
  5568. +## ------------------------------------ ##
  5569. +## Report this to bug-autoconf@gnu.org. ##
  5570. +## ------------------------------------ ##
  5571. +_ASBOX
  5572. + ) |
  5573. + sed "s/^/$as_me: WARNING: /" >&2
  5574. + ;;
  5575. +esac
  5576. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  5577. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5578. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5579. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5580. else
  5581. - echo "$ac_t""no" 1>&6
  5582. + eval "$as_ac_Header=$ac_header_preproc"
  5583. +fi
  5584. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5585. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5586. +
  5587. fi
  5588. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5589. + cat >>confdefs.h <<_ACEOF
  5590. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5591. +_ACEOF
  5592. +
  5593. +fi
  5594. +
  5595. done
  5596. -for ac_hdr in curses.h ncurses.h
  5597. +
  5598. +
  5599. +for ac_header in curses.h ncurses.h
  5600. do
  5601. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5602. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5603. -echo "configure:2044: checking for $ac_hdr" >&5
  5604. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5605. - echo $ac_n "(cached) $ac_c" 1>&6
  5606. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5607. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5608. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  5609. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5610. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5611. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5612. +fi
  5613. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5614. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5615. +else
  5616. + # Is the header compilable?
  5617. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5618. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5619. +cat >conftest.$ac_ext <<_ACEOF
  5620. +#line $LINENO "configure"
  5621. +/* confdefs.h. */
  5622. +_ACEOF
  5623. +cat confdefs.h >>conftest.$ac_ext
  5624. +cat >>conftest.$ac_ext <<_ACEOF
  5625. +/* end confdefs.h. */
  5626. +$ac_includes_default
  5627. +#include <$ac_header>
  5628. +_ACEOF
  5629. +rm -f conftest.$ac_objext
  5630. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5631. + (eval $ac_compile) 2>&5
  5632. + ac_status=$?
  5633. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5634. + (exit $ac_status); } &&
  5635. + { ac_try='test -s conftest.$ac_objext'
  5636. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5637. + (eval $ac_try) 2>&5
  5638. + ac_status=$?
  5639. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5640. + (exit $ac_status); }; }; then
  5641. + ac_header_compiler=yes
  5642. +else
  5643. + echo "$as_me: failed program was:" >&5
  5644. +sed 's/^/| /' conftest.$ac_ext >&5
  5645. +
  5646. +ac_header_compiler=no
  5647. +fi
  5648. +rm -f conftest.$ac_objext conftest.$ac_ext
  5649. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5650. +echo "${ECHO_T}$ac_header_compiler" >&6
  5651. +
  5652. +# Is the header present?
  5653. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5654. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5655. +cat >conftest.$ac_ext <<_ACEOF
  5656. +#line $LINENO "configure"
  5657. +/* confdefs.h. */
  5658. +_ACEOF
  5659. +cat confdefs.h >>conftest.$ac_ext
  5660. +cat >>conftest.$ac_ext <<_ACEOF
  5661. +/* end confdefs.h. */
  5662. +#include <$ac_header>
  5663. +_ACEOF
  5664. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5665. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5666. + ac_status=$?
  5667. + grep -v '^ *+' conftest.er1 >conftest.err
  5668. + rm -f conftest.er1
  5669. + cat conftest.err >&5
  5670. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. + (exit $ac_status); } >/dev/null; then
  5672. + if test -s conftest.err; then
  5673. + ac_cpp_err=$ac_c_preproc_warn_flag
  5674. + else
  5675. + ac_cpp_err=
  5676. + fi
  5677. else
  5678. - cat > conftest.$ac_ext <<EOF
  5679. -#line 2049 "configure"
  5680. -#include "confdefs.h"
  5681. -#include <$ac_hdr>
  5682. -EOF
  5683. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5684. -{ (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5685. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5686. -if test -z "$ac_err"; then
  5687. - rm -rf conftest*
  5688. - eval "ac_cv_header_$ac_safe=yes"
  5689. -else
  5690. - echo "$ac_err" >&5
  5691. - echo "configure: failed program was:" >&5
  5692. - cat conftest.$ac_ext >&5
  5693. - rm -rf conftest*
  5694. - eval "ac_cv_header_$ac_safe=no"
  5695. + ac_cpp_err=yes
  5696. fi
  5697. -rm -f conftest*
  5698. +if test -z "$ac_cpp_err"; then
  5699. + ac_header_preproc=yes
  5700. +else
  5701. + echo "$as_me: failed program was:" >&5
  5702. +sed 's/^/| /' conftest.$ac_ext >&5
  5703. +
  5704. + ac_header_preproc=no
  5705. +fi
  5706. +rm -f conftest.err conftest.$ac_ext
  5707. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5708. +echo "${ECHO_T}$ac_header_preproc" >&6
  5709. +
  5710. +# So? What about this header?
  5711. +case $ac_header_compiler:$ac_header_preproc in
  5712. + yes:no )
  5713. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5714. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5715. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5716. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5717. + (
  5718. + cat <<\_ASBOX
  5719. +## ------------------------------------ ##
  5720. +## Report this to bug-autoconf@gnu.org. ##
  5721. +## ------------------------------------ ##
  5722. +_ASBOX
  5723. + ) |
  5724. + sed "s/^/$as_me: WARNING: /" >&2
  5725. + ;;
  5726. + no:yes )
  5727. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5728. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5729. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5730. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5731. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5732. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5733. + (
  5734. + cat <<\_ASBOX
  5735. +## ------------------------------------ ##
  5736. +## Report this to bug-autoconf@gnu.org. ##
  5737. +## ------------------------------------ ##
  5738. +_ASBOX
  5739. + ) |
  5740. + sed "s/^/$as_me: WARNING: /" >&2
  5741. + ;;
  5742. +esac
  5743. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  5744. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5745. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5746. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5747. +else
  5748. + eval "$as_ac_Header=$ac_header_preproc"
  5749. +fi
  5750. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5751. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5752. +
  5753. +fi
  5754. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5755. + cat >>confdefs.h <<_ACEOF
  5756. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5757. +_ACEOF
  5758. +
  5759. fi
  5760. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5761. - echo "$ac_t""yes" 1>&6
  5762. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5763. - cat >> confdefs.h <<EOF
  5764. -#define $ac_tr_hdr 1
  5765. -EOF
  5766. -
  5767. -else
  5768. - echo "$ac_t""no" 1>&6
  5769. -fi
  5770. -done
  5771. -
  5772. -
  5773. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  5774. -echo "configure:2082: checking for working const" >&5
  5775. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  5776. - echo $ac_n "(cached) $ac_c" 1>&6
  5777. -else
  5778. - cat > conftest.$ac_ext <<EOF
  5779. -#line 2087 "configure"
  5780. -#include "confdefs.h"
  5781. -
  5782. -int main() {
  5783. -
  5784. -/* Ultrix mips cc rejects this. */
  5785. -typedef int charset[2]; const charset x;
  5786. -/* SunOS 4.1.1 cc rejects this. */
  5787. -char const *const *ccp;
  5788. -char **p;
  5789. -/* NEC SVR4.0.2 mips cc rejects this. */
  5790. -struct point {int x, y;};
  5791. -static struct point const zero = {0,0};
  5792. -/* AIX XL C 1.02.0.0 rejects this.
  5793. - It does not let you subtract one const X* pointer from another in an arm
  5794. - of an if-expression whose if-part is not a constant expression */
  5795. -const char *g = "string";
  5796. -ccp = &g + (g ? g-g : 0);
  5797. -/* HPUX 7.0 cc rejects these. */
  5798. -++ccp;
  5799. -p = (char**) ccp;
  5800. -ccp = (char const *const *) p;
  5801. -{ /* SCO 3.2v4 cc rejects this. */
  5802. - char *t;
  5803. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  5804. -
  5805. - *t++ = 0;
  5806. -}
  5807. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5808. - int x[] = {25, 17};
  5809. - const int *foo = &x[0];
  5810. - ++foo;
  5811. -}
  5812. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5813. - typedef const int *iptr;
  5814. - iptr p = 0;
  5815. - ++p;
  5816. -}
  5817. -{ /* AIX XL C 1.02.0.0 rejects this saying
  5818. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5819. - struct s { int j; const int *ap[3]; };
  5820. - struct s *b; b->j = 5;
  5821. -}
  5822. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5823. - const int foo = 10;
  5824. -}
  5825. -
  5826. -; return 0; }
  5827. -EOF
  5828. -if { (eval echo configure:2136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5829. - rm -rf conftest*
  5830. +
  5831. +done
  5832. +
  5833. +
  5834. +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5835. +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5836. +if test "${ac_cv_c_const+set}" = set; then
  5837. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5838. +else
  5839. + cat >conftest.$ac_ext <<_ACEOF
  5840. +#line $LINENO "configure"
  5841. +/* confdefs.h. */
  5842. +_ACEOF
  5843. +cat confdefs.h >>conftest.$ac_ext
  5844. +cat >>conftest.$ac_ext <<_ACEOF
  5845. +/* end confdefs.h. */
  5846. +
  5847. +int
  5848. +main ()
  5849. +{
  5850. +/* FIXME: Include the comments suggested by Paul. */
  5851. +#ifndef __cplusplus
  5852. + /* Ultrix mips cc rejects this. */
  5853. + typedef int charset[2];
  5854. + const charset x;
  5855. + /* SunOS 4.1.1 cc rejects this. */
  5856. + char const *const *ccp;
  5857. + char **p;
  5858. + /* NEC SVR4.0.2 mips cc rejects this. */
  5859. + struct point {int x, y;};
  5860. + static struct point const zero = {0,0};
  5861. + /* AIX XL C 1.02.0.0 rejects this.
  5862. + It does not let you subtract one const X* pointer from another in
  5863. + an arm of an if-expression whose if-part is not a constant
  5864. + expression */
  5865. + const char *g = "string";
  5866. + ccp = &g + (g ? g-g : 0);
  5867. + /* HPUX 7.0 cc rejects these. */
  5868. + ++ccp;
  5869. + p = (char**) ccp;
  5870. + ccp = (char const *const *) p;
  5871. + { /* SCO 3.2v4 cc rejects this. */
  5872. + char *t;
  5873. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  5874. +
  5875. + *t++ = 0;
  5876. + }
  5877. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5878. + int x[] = {25, 17};
  5879. + const int *foo = &x[0];
  5880. + ++foo;
  5881. + }
  5882. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5883. + typedef const int *iptr;
  5884. + iptr p = 0;
  5885. + ++p;
  5886. + }
  5887. + { /* AIX XL C 1.02.0.0 rejects this saying
  5888. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5889. + struct s { int j; const int *ap[3]; };
  5890. + struct s *b; b->j = 5;
  5891. + }
  5892. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5893. + const int foo = 10;
  5894. + }
  5895. +#endif
  5896. +
  5897. + ;
  5898. + return 0;
  5899. +}
  5900. +_ACEOF
  5901. +rm -f conftest.$ac_objext
  5902. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5903. + (eval $ac_compile) 2>&5
  5904. + ac_status=$?
  5905. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5906. + (exit $ac_status); } &&
  5907. + { ac_try='test -s conftest.$ac_objext'
  5908. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5909. + (eval $ac_try) 2>&5
  5910. + ac_status=$?
  5911. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5912. + (exit $ac_status); }; }; then
  5913. ac_cv_c_const=yes
  5914. else
  5915. - echo "configure: failed program was:" >&5
  5916. - cat conftest.$ac_ext >&5
  5917. - rm -rf conftest*
  5918. - ac_cv_c_const=no
  5919. + echo "$as_me: failed program was:" >&5
  5920. +sed 's/^/| /' conftest.$ac_ext >&5
  5921. +
  5922. +ac_cv_c_const=no
  5923. fi
  5924. -rm -f conftest*
  5925. +rm -f conftest.$ac_objext conftest.$ac_ext
  5926. fi
  5927. -
  5928. -echo "$ac_t""$ac_cv_c_const" 1>&6
  5929. +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5930. +echo "${ECHO_T}$ac_cv_c_const" >&6
  5931. if test $ac_cv_c_const = no; then
  5932. - cat >> confdefs.h <<\EOF
  5933. -#define const
  5934. -EOF
  5935. +
  5936. +cat >>confdefs.h <<\_ACEOF
  5937. +#define const
  5938. +_ACEOF
  5939. fi
  5940. -echo $ac_n "checking for inline""... $ac_c" 1>&6
  5941. -echo "configure:2157: checking for inline" >&5
  5942. -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  5943. - echo $ac_n "(cached) $ac_c" 1>&6
  5944. +echo "$as_me:$LINENO: checking for inline" >&5
  5945. +echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5946. +if test "${ac_cv_c_inline+set}" = set; then
  5947. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5948. else
  5949. ac_cv_c_inline=no
  5950. for ac_kw in inline __inline__ __inline; do
  5951. - cat > conftest.$ac_ext <<EOF
  5952. -#line 2164 "configure"
  5953. -#include "confdefs.h"
  5954. -
  5955. -int main() {
  5956. -} $ac_kw foo() {
  5957. -; return 0; }
  5958. -EOF
  5959. -if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5960. - rm -rf conftest*
  5961. + cat >conftest.$ac_ext <<_ACEOF
  5962. +#line $LINENO "configure"
  5963. +/* confdefs.h. */
  5964. +_ACEOF
  5965. +cat confdefs.h >>conftest.$ac_ext
  5966. +cat >>conftest.$ac_ext <<_ACEOF
  5967. +/* end confdefs.h. */
  5968. +#ifndef __cplusplus
  5969. +typedef int foo_t;
  5970. +static $ac_kw foo_t static_foo () {return 0; }
  5971. +$ac_kw foo_t foo () {return 0; }
  5972. +#endif
  5973. +
  5974. +_ACEOF
  5975. +rm -f conftest.$ac_objext
  5976. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5977. + (eval $ac_compile) 2>&5
  5978. + ac_status=$?
  5979. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5980. + (exit $ac_status); } &&
  5981. + { ac_try='test -s conftest.$ac_objext'
  5982. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5983. + (eval $ac_try) 2>&5
  5984. + ac_status=$?
  5985. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5986. + (exit $ac_status); }; }; then
  5987. ac_cv_c_inline=$ac_kw; break
  5988. else
  5989. - echo "configure: failed program was:" >&5
  5990. - cat conftest.$ac_ext >&5
  5991. + echo "$as_me: failed program was:" >&5
  5992. +sed 's/^/| /' conftest.$ac_ext >&5
  5993. +
  5994. fi
  5995. -rm -f conftest*
  5996. +rm -f conftest.$ac_objext conftest.$ac_ext
  5997. done
  5998. fi
  5999. -
  6000. -echo "$ac_t""$ac_cv_c_inline" 1>&6
  6001. -case "$ac_cv_c_inline" in
  6002. +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6003. +echo "${ECHO_T}$ac_cv_c_inline" >&6
  6004. +case $ac_cv_c_inline in
  6005. inline | yes) ;;
  6006. - no) cat >> confdefs.h <<\EOF
  6007. -#define inline
  6008. -EOF
  6009. + no)
  6010. +cat >>confdefs.h <<\_ACEOF
  6011. +#define inline
  6012. +_ACEOF
  6013. ;;
  6014. - *) cat >> confdefs.h <<EOF
  6015. + *) cat >>confdefs.h <<_ACEOF
  6016. #define inline $ac_cv_c_inline
  6017. -EOF
  6018. +_ACEOF
  6019. ;;
  6020. esac
  6021. -echo $ac_n "checking for size_t""... $ac_c" 1>&6
  6022. -echo "configure:2197: checking for size_t" >&5
  6023. -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  6024. - echo $ac_n "(cached) $ac_c" 1>&6
  6025. -else
  6026. - cat > conftest.$ac_ext <<EOF
  6027. -#line 2202 "configure"
  6028. -#include "confdefs.h"
  6029. -#include <sys/types.h>
  6030. -#if STDC_HEADERS
  6031. -#include <stdlib.h>
  6032. -#include <stddef.h>
  6033. -#endif
  6034. -EOF
  6035. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6036. - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  6037. - rm -rf conftest*
  6038. +echo "$as_me:$LINENO: checking for size_t" >&5
  6039. +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6040. +if test "${ac_cv_type_size_t+set}" = set; then
  6041. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6042. +else
  6043. + cat >conftest.$ac_ext <<_ACEOF
  6044. +#line $LINENO "configure"
  6045. +/* confdefs.h. */
  6046. +_ACEOF
  6047. +cat confdefs.h >>conftest.$ac_ext
  6048. +cat >>conftest.$ac_ext <<_ACEOF
  6049. +/* end confdefs.h. */
  6050. +$ac_includes_default
  6051. +int
  6052. +main ()
  6053. +{
  6054. +if ((size_t *) 0)
  6055. + return 0;
  6056. +if (sizeof (size_t))
  6057. + return 0;
  6058. + ;
  6059. + return 0;
  6060. +}
  6061. +_ACEOF
  6062. +rm -f conftest.$ac_objext
  6063. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6064. + (eval $ac_compile) 2>&5
  6065. + ac_status=$?
  6066. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6067. + (exit $ac_status); } &&
  6068. + { ac_try='test -s conftest.$ac_objext'
  6069. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6070. + (eval $ac_try) 2>&5
  6071. + ac_status=$?
  6072. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6073. + (exit $ac_status); }; }; then
  6074. ac_cv_type_size_t=yes
  6075. else
  6076. - rm -rf conftest*
  6077. - ac_cv_type_size_t=no
  6078. -fi
  6079. -rm -f conftest*
  6080. + echo "$as_me: failed program was:" >&5
  6081. +sed 's/^/| /' conftest.$ac_ext >&5
  6082. +ac_cv_type_size_t=no
  6083. +fi
  6084. +rm -f conftest.$ac_objext conftest.$ac_ext
  6085. fi
  6086. -echo "$ac_t""$ac_cv_type_size_t" 1>&6
  6087. -if test $ac_cv_type_size_t = no; then
  6088. - cat >> confdefs.h <<\EOF
  6089. +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6090. +echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6091. +if test $ac_cv_type_size_t = yes; then
  6092. + :
  6093. +else
  6094. +
  6095. +cat >>confdefs.h <<_ACEOF
  6096. #define size_t unsigned
  6097. -EOF
  6098. +_ACEOF
  6099. fi
  6100. -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  6101. -echo "configure:2230: checking whether time.h and sys/time.h may both be included" >&5
  6102. -if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  6103. - echo $ac_n "(cached) $ac_c" 1>&6
  6104. -else
  6105. - cat > conftest.$ac_ext <<EOF
  6106. -#line 2235 "configure"
  6107. -#include "confdefs.h"
  6108. +echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6109. +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  6110. +if test "${ac_cv_header_time+set}" = set; then
  6111. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6112. +else
  6113. + cat >conftest.$ac_ext <<_ACEOF
  6114. +#line $LINENO "configure"
  6115. +/* confdefs.h. */
  6116. +_ACEOF
  6117. +cat confdefs.h >>conftest.$ac_ext
  6118. +cat >>conftest.$ac_ext <<_ACEOF
  6119. +/* end confdefs.h. */
  6120. #include <sys/types.h>
  6121. #include <sys/time.h>
  6122. #include <time.h>
  6123. -int main() {
  6124. -struct tm *tp;
  6125. -; return 0; }
  6126. -EOF
  6127. -if { (eval echo configure:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6128. - rm -rf conftest*
  6129. +
  6130. +int
  6131. +main ()
  6132. +{
  6133. +if ((struct tm *) 0)
  6134. +return 0;
  6135. + ;
  6136. + return 0;
  6137. +}
  6138. +_ACEOF
  6139. +rm -f conftest.$ac_objext
  6140. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6141. + (eval $ac_compile) 2>&5
  6142. + ac_status=$?
  6143. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6144. + (exit $ac_status); } &&
  6145. + { ac_try='test -s conftest.$ac_objext'
  6146. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6147. + (eval $ac_try) 2>&5
  6148. + ac_status=$?
  6149. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6150. + (exit $ac_status); }; }; then
  6151. ac_cv_header_time=yes
  6152. else
  6153. - echo "configure: failed program was:" >&5
  6154. - cat conftest.$ac_ext >&5
  6155. - rm -rf conftest*
  6156. - ac_cv_header_time=no
  6157. + echo "$as_me: failed program was:" >&5
  6158. +sed 's/^/| /' conftest.$ac_ext >&5
  6159. +
  6160. +ac_cv_header_time=no
  6161. fi
  6162. -rm -f conftest*
  6163. +rm -f conftest.$ac_objext conftest.$ac_ext
  6164. fi
  6165. -
  6166. -echo "$ac_t""$ac_cv_header_time" 1>&6
  6167. +echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6168. +echo "${ECHO_T}$ac_cv_header_time" >&6
  6169. if test $ac_cv_header_time = yes; then
  6170. - cat >> confdefs.h <<\EOF
  6171. +
  6172. +cat >>confdefs.h <<\_ACEOF
  6173. #define TIME_WITH_SYS_TIME 1
  6174. -EOF
  6175. +_ACEOF
  6176. fi
  6177. -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  6178. -echo "configure:2265: checking whether struct tm is in sys/time.h or time.h" >&5
  6179. -if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  6180. - echo $ac_n "(cached) $ac_c" 1>&6
  6181. -else
  6182. - cat > conftest.$ac_ext <<EOF
  6183. -#line 2270 "configure"
  6184. -#include "confdefs.h"
  6185. +echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6186. +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6187. +if test "${ac_cv_struct_tm+set}" = set; then
  6188. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6189. +else
  6190. + cat >conftest.$ac_ext <<_ACEOF
  6191. +#line $LINENO "configure"
  6192. +/* confdefs.h. */
  6193. +_ACEOF
  6194. +cat confdefs.h >>conftest.$ac_ext
  6195. +cat >>conftest.$ac_ext <<_ACEOF
  6196. +/* end confdefs.h. */
  6197. #include <sys/types.h>
  6198. #include <time.h>
  6199. -int main() {
  6200. +
  6201. +int
  6202. +main ()
  6203. +{
  6204. struct tm *tp; tp->tm_sec;
  6205. -; return 0; }
  6206. -EOF
  6207. -if { (eval echo configure:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6208. - rm -rf conftest*
  6209. + ;
  6210. + return 0;
  6211. +}
  6212. +_ACEOF
  6213. +rm -f conftest.$ac_objext
  6214. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6215. + (eval $ac_compile) 2>&5
  6216. + ac_status=$?
  6217. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6218. + (exit $ac_status); } &&
  6219. + { ac_try='test -s conftest.$ac_objext'
  6220. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6221. + (eval $ac_try) 2>&5
  6222. + ac_status=$?
  6223. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6224. + (exit $ac_status); }; }; then
  6225. ac_cv_struct_tm=time.h
  6226. else
  6227. - echo "configure: failed program was:" >&5
  6228. - cat conftest.$ac_ext >&5
  6229. - rm -rf conftest*
  6230. - ac_cv_struct_tm=sys/time.h
  6231. + echo "$as_me: failed program was:" >&5
  6232. +sed 's/^/| /' conftest.$ac_ext >&5
  6233. +
  6234. +ac_cv_struct_tm=sys/time.h
  6235. fi
  6236. -rm -f conftest*
  6237. +rm -f conftest.$ac_objext conftest.$ac_ext
  6238. fi
  6239. -
  6240. -echo "$ac_t""$ac_cv_struct_tm" 1>&6
  6241. +echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6242. +echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6243. if test $ac_cv_struct_tm = sys/time.h; then
  6244. - cat >> confdefs.h <<\EOF
  6245. +
  6246. +cat >>confdefs.h <<\_ACEOF
  6247. #define TM_IN_SYS_TIME 1
  6248. -EOF
  6249. +_ACEOF
  6250. fi
  6251. -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  6252. -echo "configure:2299: checking for uid_t in sys/types.h" >&5
  6253. -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  6254. - echo $ac_n "(cached) $ac_c" 1>&6
  6255. -else
  6256. - cat > conftest.$ac_ext <<EOF
  6257. -#line 2304 "configure"
  6258. -#include "confdefs.h"
  6259. +echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6260. +echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6261. +if test "${ac_cv_type_uid_t+set}" = set; then
  6262. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6263. +else
  6264. + cat >conftest.$ac_ext <<_ACEOF
  6265. +#line $LINENO "configure"
  6266. +/* confdefs.h. */
  6267. +_ACEOF
  6268. +cat confdefs.h >>conftest.$ac_ext
  6269. +cat >>conftest.$ac_ext <<_ACEOF
  6270. +/* end confdefs.h. */
  6271. #include <sys/types.h>
  6272. -EOF
  6273. +
  6274. +_ACEOF
  6275. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6276. - egrep "uid_t" >/dev/null 2>&1; then
  6277. - rm -rf conftest*
  6278. + $EGREP "uid_t" >/dev/null 2>&1; then
  6279. ac_cv_type_uid_t=yes
  6280. else
  6281. - rm -rf conftest*
  6282. ac_cv_type_uid_t=no
  6283. fi
  6284. rm -f conftest*
  6285. fi
  6286. -
  6287. -echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  6288. +echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6289. +echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6290. if test $ac_cv_type_uid_t = no; then
  6291. - cat >> confdefs.h <<\EOF
  6292. +
  6293. +cat >>confdefs.h <<\_ACEOF
  6294. #define uid_t int
  6295. -EOF
  6296. +_ACEOF
  6297. +
  6298. - cat >> confdefs.h <<\EOF
  6299. +cat >>confdefs.h <<\_ACEOF
  6300. #define gid_t int
  6301. -EOF
  6302. +_ACEOF
  6303. fi
  6304. -if test $ac_cv_prog_gcc = yes; then
  6305. - echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  6306. -echo "configure:2335: checking whether ${CC-cc} needs -traditional" >&5
  6307. -if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  6308. - echo $ac_n "(cached) $ac_c" 1>&6
  6309. +if test $ac_cv_c_compiler_gnu = yes; then
  6310. + echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  6311. +echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  6312. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  6313. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6314. else
  6315. ac_pattern="Autoconf.*'x'"
  6316. - cat > conftest.$ac_ext <<EOF
  6317. -#line 2341 "configure"
  6318. -#include "confdefs.h"
  6319. + cat >conftest.$ac_ext <<_ACEOF
  6320. +#line $LINENO "configure"
  6321. +/* confdefs.h. */
  6322. +_ACEOF
  6323. +cat confdefs.h >>conftest.$ac_ext
  6324. +cat >>conftest.$ac_ext <<_ACEOF
  6325. +/* end confdefs.h. */
  6326. #include <sgtty.h>
  6327. Autoconf TIOCGETP
  6328. -EOF
  6329. +_ACEOF
  6330. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6331. - egrep "$ac_pattern" >/dev/null 2>&1; then
  6332. - rm -rf conftest*
  6333. + $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6334. ac_cv_prog_gcc_traditional=yes
  6335. else
  6336. - rm -rf conftest*
  6337. ac_cv_prog_gcc_traditional=no
  6338. fi
  6339. rm -f conftest*
  6340. if test $ac_cv_prog_gcc_traditional = no; then
  6341. - cat > conftest.$ac_ext <<EOF
  6342. -#line 2359 "configure"
  6343. -#include "confdefs.h"
  6344. + cat >conftest.$ac_ext <<_ACEOF
  6345. +#line $LINENO "configure"
  6346. +/* confdefs.h. */
  6347. +_ACEOF
  6348. +cat confdefs.h >>conftest.$ac_ext
  6349. +cat >>conftest.$ac_ext <<_ACEOF
  6350. +/* end confdefs.h. */
  6351. #include <termio.h>
  6352. Autoconf TCGETA
  6353. -EOF
  6354. +_ACEOF
  6355. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6356. - egrep "$ac_pattern" >/dev/null 2>&1; then
  6357. - rm -rf conftest*
  6358. + $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6359. ac_cv_prog_gcc_traditional=yes
  6360. fi
  6361. rm -f conftest*
  6362. fi
  6363. fi
  6364. -
  6365. -echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  6366. +echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  6367. +echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  6368. if test $ac_cv_prog_gcc_traditional = yes; then
  6369. CC="$CC -traditional"
  6370. fi
  6371. fi
  6372. -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  6373. -echo "configure:2381: checking return type of signal handlers" >&5
  6374. -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  6375. - echo $ac_n "(cached) $ac_c" 1>&6
  6376. -else
  6377. - cat > conftest.$ac_ext <<EOF
  6378. -#line 2386 "configure"
  6379. -#include "confdefs.h"
  6380. +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  6381. +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  6382. +if test "${ac_cv_type_signal+set}" = set; then
  6383. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6384. +else
  6385. + cat >conftest.$ac_ext <<_ACEOF
  6386. +#line $LINENO "configure"
  6387. +/* confdefs.h. */
  6388. +_ACEOF
  6389. +cat confdefs.h >>conftest.$ac_ext
  6390. +cat >>conftest.$ac_ext <<_ACEOF
  6391. +/* end confdefs.h. */
  6392. #include <sys/types.h>
  6393. #include <signal.h>
  6394. #ifdef signal
  6395. -#undef signal
  6396. +# undef signal
  6397. #endif
  6398. #ifdef __cplusplus
  6399. extern "C" void (*signal (int, void (*)(int)))(int);
  6400. @@ -2395,347 +5175,774 @@
  6401. void (*signal ()) ();
  6402. #endif
  6403. -int main() {
  6404. +int
  6405. +main ()
  6406. +{
  6407. int i;
  6408. -; return 0; }
  6409. -EOF
  6410. -if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6411. - rm -rf conftest*
  6412. + ;
  6413. + return 0;
  6414. +}
  6415. +_ACEOF
  6416. +rm -f conftest.$ac_objext
  6417. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6418. + (eval $ac_compile) 2>&5
  6419. + ac_status=$?
  6420. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6421. + (exit $ac_status); } &&
  6422. + { ac_try='test -s conftest.$ac_objext'
  6423. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6424. + (eval $ac_try) 2>&5
  6425. + ac_status=$?
  6426. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6427. + (exit $ac_status); }; }; then
  6428. ac_cv_type_signal=void
  6429. else
  6430. - echo "configure: failed program was:" >&5
  6431. - cat conftest.$ac_ext >&5
  6432. - rm -rf conftest*
  6433. - ac_cv_type_signal=int
  6434. + echo "$as_me: failed program was:" >&5
  6435. +sed 's/^/| /' conftest.$ac_ext >&5
  6436. +
  6437. +ac_cv_type_signal=int
  6438. fi
  6439. -rm -f conftest*
  6440. +rm -f conftest.$ac_objext conftest.$ac_ext
  6441. fi
  6442. +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  6443. +echo "${ECHO_T}$ac_cv_type_signal" >&6
  6444. -echo "$ac_t""$ac_cv_type_signal" 1>&6
  6445. -cat >> confdefs.h <<EOF
  6446. +cat >>confdefs.h <<_ACEOF
  6447. #define RETSIGTYPE $ac_cv_type_signal
  6448. -EOF
  6449. +_ACEOF
  6450. +
  6451. +
  6452. +
  6453. +
  6454. +
  6455. +
  6456. for ac_func in select socket strdup strerror strtol uname
  6457. do
  6458. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6459. -echo "configure:2424: checking for $ac_func" >&5
  6460. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6461. - echo $ac_n "(cached) $ac_c" 1>&6
  6462. -else
  6463. - cat > conftest.$ac_ext <<EOF
  6464. -#line 2429 "configure"
  6465. -#include "confdefs.h"
  6466. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6467. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  6468. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6469. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  6470. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6471. +else
  6472. + cat >conftest.$ac_ext <<_ACEOF
  6473. +#line $LINENO "configure"
  6474. +/* confdefs.h. */
  6475. +_ACEOF
  6476. +cat confdefs.h >>conftest.$ac_ext
  6477. +cat >>conftest.$ac_ext <<_ACEOF
  6478. +/* end confdefs.h. */
  6479. /* System header to define __stub macros and hopefully few prototypes,
  6480. - which can conflict with char $ac_func(); below. */
  6481. -#include <assert.h>
  6482. + which can conflict with char $ac_func (); below.
  6483. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6484. + <limits.h> exists even on freestanding compilers. */
  6485. +#ifdef __STDC__
  6486. +# include <limits.h>
  6487. +#else
  6488. +# include <assert.h>
  6489. +#endif
  6490. /* Override any gcc2 internal prototype to avoid an error. */
  6491. +#ifdef __cplusplus
  6492. +extern "C"
  6493. +{
  6494. +#endif
  6495. /* We use char because int might match the return type of a gcc2
  6496. - builtin and then its argument prototype would still apply. */
  6497. -char $ac_func();
  6498. -
  6499. -int main() {
  6500. -
  6501. + builtin and then its argument prototype would still apply. */
  6502. +char $ac_func ();
  6503. /* The GNU C library defines this for functions which it implements
  6504. to always fail with ENOSYS. Some functions are actually named
  6505. something starting with __ and the normal name is an alias. */
  6506. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6507. choke me
  6508. #else
  6509. -$ac_func();
  6510. +char (*f) () = $ac_func;
  6511. +#endif
  6512. +#ifdef __cplusplus
  6513. +}
  6514. #endif
  6515. -; return 0; }
  6516. -EOF
  6517. -if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6518. - rm -rf conftest*
  6519. - eval "ac_cv_func_$ac_func=yes"
  6520. -else
  6521. - echo "configure: failed program was:" >&5
  6522. - cat conftest.$ac_ext >&5
  6523. - rm -rf conftest*
  6524. - eval "ac_cv_func_$ac_func=no"
  6525. -fi
  6526. -rm -f conftest*
  6527. -fi
  6528. +int
  6529. +main ()
  6530. +{
  6531. +return f != $ac_func;
  6532. + ;
  6533. + return 0;
  6534. +}
  6535. +_ACEOF
  6536. +rm -f conftest.$ac_objext conftest$ac_exeext
  6537. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6538. + (eval $ac_link) 2>&5
  6539. + ac_status=$?
  6540. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6541. + (exit $ac_status); } &&
  6542. + { ac_try='test -s conftest$ac_exeext'
  6543. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6544. + (eval $ac_try) 2>&5
  6545. + ac_status=$?
  6546. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6547. + (exit $ac_status); }; }; then
  6548. + eval "$as_ac_var=yes"
  6549. +else
  6550. + echo "$as_me: failed program was:" >&5
  6551. +sed 's/^/| /' conftest.$ac_ext >&5
  6552. +
  6553. +eval "$as_ac_var=no"
  6554. +fi
  6555. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6556. +fi
  6557. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6558. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6559. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  6560. + cat >>confdefs.h <<_ACEOF
  6561. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6562. +_ACEOF
  6563. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6564. - echo "$ac_t""yes" 1>&6
  6565. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6566. - cat >> confdefs.h <<EOF
  6567. -#define $ac_tr_func 1
  6568. -EOF
  6569. -
  6570. -else
  6571. - echo "$ac_t""no" 1>&6
  6572. fi
  6573. done
  6574. - for ac_hdr in fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h
  6575. +
  6576. +
  6577. +
  6578. +
  6579. +
  6580. +for ac_header in fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h
  6581. do
  6582. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6583. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6584. -echo "configure:2483: checking for $ac_hdr" >&5
  6585. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6586. - echo $ac_n "(cached) $ac_c" 1>&6
  6587. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6588. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6589. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6590. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6591. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6592. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6593. +fi
  6594. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6595. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6596. +else
  6597. + # Is the header compilable?
  6598. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6599. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6600. +cat >conftest.$ac_ext <<_ACEOF
  6601. +#line $LINENO "configure"
  6602. +/* confdefs.h. */
  6603. +_ACEOF
  6604. +cat confdefs.h >>conftest.$ac_ext
  6605. +cat >>conftest.$ac_ext <<_ACEOF
  6606. +/* end confdefs.h. */
  6607. +$ac_includes_default
  6608. +#include <$ac_header>
  6609. +_ACEOF
  6610. +rm -f conftest.$ac_objext
  6611. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6612. + (eval $ac_compile) 2>&5
  6613. + ac_status=$?
  6614. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6615. + (exit $ac_status); } &&
  6616. + { ac_try='test -s conftest.$ac_objext'
  6617. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6618. + (eval $ac_try) 2>&5
  6619. + ac_status=$?
  6620. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. + (exit $ac_status); }; }; then
  6622. + ac_header_compiler=yes
  6623. +else
  6624. + echo "$as_me: failed program was:" >&5
  6625. +sed 's/^/| /' conftest.$ac_ext >&5
  6626. +
  6627. +ac_header_compiler=no
  6628. +fi
  6629. +rm -f conftest.$ac_objext conftest.$ac_ext
  6630. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6631. +echo "${ECHO_T}$ac_header_compiler" >&6
  6632. +
  6633. +# Is the header present?
  6634. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6635. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6636. +cat >conftest.$ac_ext <<_ACEOF
  6637. +#line $LINENO "configure"
  6638. +/* confdefs.h. */
  6639. +_ACEOF
  6640. +cat confdefs.h >>conftest.$ac_ext
  6641. +cat >>conftest.$ac_ext <<_ACEOF
  6642. +/* end confdefs.h. */
  6643. +#include <$ac_header>
  6644. +_ACEOF
  6645. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6646. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6647. + ac_status=$?
  6648. + grep -v '^ *+' conftest.er1 >conftest.err
  6649. + rm -f conftest.er1
  6650. + cat conftest.err >&5
  6651. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6652. + (exit $ac_status); } >/dev/null; then
  6653. + if test -s conftest.err; then
  6654. + ac_cpp_err=$ac_c_preproc_warn_flag
  6655. + else
  6656. + ac_cpp_err=
  6657. + fi
  6658. else
  6659. - cat > conftest.$ac_ext <<EOF
  6660. -#line 2488 "configure"
  6661. -#include "confdefs.h"
  6662. -#include <$ac_hdr>
  6663. -EOF
  6664. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6665. -{ (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6666. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6667. -if test -z "$ac_err"; then
  6668. - rm -rf conftest*
  6669. - eval "ac_cv_header_$ac_safe=yes"
  6670. -else
  6671. - echo "$ac_err" >&5
  6672. - echo "configure: failed program was:" >&5
  6673. - cat conftest.$ac_ext >&5
  6674. - rm -rf conftest*
  6675. - eval "ac_cv_header_$ac_safe=no"
  6676. -fi
  6677. -rm -f conftest*
  6678. + ac_cpp_err=yes
  6679. fi
  6680. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6681. - echo "$ac_t""yes" 1>&6
  6682. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6683. - cat >> confdefs.h <<EOF
  6684. -#define $ac_tr_hdr 1
  6685. -EOF
  6686. -
  6687. +if test -z "$ac_cpp_err"; then
  6688. + ac_header_preproc=yes
  6689. +else
  6690. + echo "$as_me: failed program was:" >&5
  6691. +sed 's/^/| /' conftest.$ac_ext >&5
  6692. +
  6693. + ac_header_preproc=no
  6694. +fi
  6695. +rm -f conftest.err conftest.$ac_ext
  6696. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6697. +echo "${ECHO_T}$ac_header_preproc" >&6
  6698. +
  6699. +# So? What about this header?
  6700. +case $ac_header_compiler:$ac_header_preproc in
  6701. + yes:no )
  6702. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6703. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6704. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6705. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6706. + (
  6707. + cat <<\_ASBOX
  6708. +## ------------------------------------ ##
  6709. +## Report this to bug-autoconf@gnu.org. ##
  6710. +## ------------------------------------ ##
  6711. +_ASBOX
  6712. + ) |
  6713. + sed "s/^/$as_me: WARNING: /" >&2
  6714. + ;;
  6715. + no:yes )
  6716. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6717. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6718. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6719. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6720. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6721. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6722. + (
  6723. + cat <<\_ASBOX
  6724. +## ------------------------------------ ##
  6725. +## Report this to bug-autoconf@gnu.org. ##
  6726. +## ------------------------------------ ##
  6727. +_ASBOX
  6728. + ) |
  6729. + sed "s/^/$as_me: WARNING: /" >&2
  6730. + ;;
  6731. +esac
  6732. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6733. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6734. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6735. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6736. else
  6737. - echo "$ac_t""no" 1>&6
  6738. + eval "$as_ac_Header=$ac_header_preproc"
  6739. +fi
  6740. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6741. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6742. +
  6743. +fi
  6744. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6745. + cat >>confdefs.h <<_ACEOF
  6746. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6747. +_ACEOF
  6748. +
  6749. fi
  6750. +
  6751. done
  6752. - for ac_hdr in mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h
  6753. +
  6754. +
  6755. +
  6756. +
  6757. +
  6758. +for ac_header in mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h
  6759. do
  6760. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6761. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6762. -echo "configure:2523: checking for $ac_hdr" >&5
  6763. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6764. - echo $ac_n "(cached) $ac_c" 1>&6
  6765. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6766. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6767. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6768. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6769. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6770. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6771. +fi
  6772. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6773. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6774. +else
  6775. + # Is the header compilable?
  6776. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6777. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6778. +cat >conftest.$ac_ext <<_ACEOF
  6779. +#line $LINENO "configure"
  6780. +/* confdefs.h. */
  6781. +_ACEOF
  6782. +cat confdefs.h >>conftest.$ac_ext
  6783. +cat >>conftest.$ac_ext <<_ACEOF
  6784. +/* end confdefs.h. */
  6785. +$ac_includes_default
  6786. +#include <$ac_header>
  6787. +_ACEOF
  6788. +rm -f conftest.$ac_objext
  6789. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6790. + (eval $ac_compile) 2>&5
  6791. + ac_status=$?
  6792. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6793. + (exit $ac_status); } &&
  6794. + { ac_try='test -s conftest.$ac_objext'
  6795. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6796. + (eval $ac_try) 2>&5
  6797. + ac_status=$?
  6798. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6799. + (exit $ac_status); }; }; then
  6800. + ac_header_compiler=yes
  6801. +else
  6802. + echo "$as_me: failed program was:" >&5
  6803. +sed 's/^/| /' conftest.$ac_ext >&5
  6804. +
  6805. +ac_header_compiler=no
  6806. +fi
  6807. +rm -f conftest.$ac_objext conftest.$ac_ext
  6808. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6809. +echo "${ECHO_T}$ac_header_compiler" >&6
  6810. +
  6811. +# Is the header present?
  6812. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6813. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6814. +cat >conftest.$ac_ext <<_ACEOF
  6815. +#line $LINENO "configure"
  6816. +/* confdefs.h. */
  6817. +_ACEOF
  6818. +cat confdefs.h >>conftest.$ac_ext
  6819. +cat >>conftest.$ac_ext <<_ACEOF
  6820. +/* end confdefs.h. */
  6821. +#include <$ac_header>
  6822. +_ACEOF
  6823. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6824. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6825. + ac_status=$?
  6826. + grep -v '^ *+' conftest.er1 >conftest.err
  6827. + rm -f conftest.er1
  6828. + cat conftest.err >&5
  6829. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6830. + (exit $ac_status); } >/dev/null; then
  6831. + if test -s conftest.err; then
  6832. + ac_cpp_err=$ac_c_preproc_warn_flag
  6833. + else
  6834. + ac_cpp_err=
  6835. + fi
  6836. else
  6837. - cat > conftest.$ac_ext <<EOF
  6838. -#line 2528 "configure"
  6839. -#include "confdefs.h"
  6840. -#include <$ac_hdr>
  6841. -EOF
  6842. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6843. -{ (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6844. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6845. -if test -z "$ac_err"; then
  6846. - rm -rf conftest*
  6847. - eval "ac_cv_header_$ac_safe=yes"
  6848. -else
  6849. - echo "$ac_err" >&5
  6850. - echo "configure: failed program was:" >&5
  6851. - cat conftest.$ac_ext >&5
  6852. - rm -rf conftest*
  6853. - eval "ac_cv_header_$ac_safe=no"
  6854. -fi
  6855. -rm -f conftest*
  6856. + ac_cpp_err=yes
  6857. fi
  6858. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6859. - echo "$ac_t""yes" 1>&6
  6860. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6861. - cat >> confdefs.h <<EOF
  6862. -#define $ac_tr_hdr 1
  6863. -EOF
  6864. -
  6865. +if test -z "$ac_cpp_err"; then
  6866. + ac_header_preproc=yes
  6867. else
  6868. - echo "$ac_t""no" 1>&6
  6869. + echo "$as_me: failed program was:" >&5
  6870. +sed 's/^/| /' conftest.$ac_ext >&5
  6871. +
  6872. + ac_header_preproc=no
  6873. +fi
  6874. +rm -f conftest.err conftest.$ac_ext
  6875. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6876. +echo "${ECHO_T}$ac_header_preproc" >&6
  6877. +
  6878. +# So? What about this header?
  6879. +case $ac_header_compiler:$ac_header_preproc in
  6880. + yes:no )
  6881. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6882. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6883. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6884. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6885. + (
  6886. + cat <<\_ASBOX
  6887. +## ------------------------------------ ##
  6888. +## Report this to bug-autoconf@gnu.org. ##
  6889. +## ------------------------------------ ##
  6890. +_ASBOX
  6891. + ) |
  6892. + sed "s/^/$as_me: WARNING: /" >&2
  6893. + ;;
  6894. + no:yes )
  6895. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6896. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6897. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6898. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6899. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6900. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6901. + (
  6902. + cat <<\_ASBOX
  6903. +## ------------------------------------ ##
  6904. +## Report this to bug-autoconf@gnu.org. ##
  6905. +## ------------------------------------ ##
  6906. +_ASBOX
  6907. + ) |
  6908. + sed "s/^/$as_me: WARNING: /" >&2
  6909. + ;;
  6910. +esac
  6911. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6912. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6913. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6914. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6915. +else
  6916. + eval "$as_ac_Header=$ac_header_preproc"
  6917. +fi
  6918. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6919. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6920. +
  6921. +fi
  6922. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6923. + cat >>confdefs.h <<_ACEOF
  6924. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6925. +_ACEOF
  6926. +
  6927. fi
  6928. +
  6929. done
  6930. - for ac_hdr in sys/mount.h sys/filsys.h sys/fs_types.h
  6931. +
  6932. +
  6933. +
  6934. +for ac_header in sys/mount.h sys/filsys.h sys/fs_types.h
  6935. do
  6936. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6937. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6938. -echo "configure:2563: checking for $ac_hdr" >&5
  6939. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6940. - echo $ac_n "(cached) $ac_c" 1>&6
  6941. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6942. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6943. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6944. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6945. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6946. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6947. +fi
  6948. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6949. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6950. +else
  6951. + # Is the header compilable?
  6952. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6953. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6954. +cat >conftest.$ac_ext <<_ACEOF
  6955. +#line $LINENO "configure"
  6956. +/* confdefs.h. */
  6957. +_ACEOF
  6958. +cat confdefs.h >>conftest.$ac_ext
  6959. +cat >>conftest.$ac_ext <<_ACEOF
  6960. +/* end confdefs.h. */
  6961. +$ac_includes_default
  6962. +#include <$ac_header>
  6963. +_ACEOF
  6964. +rm -f conftest.$ac_objext
  6965. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6966. + (eval $ac_compile) 2>&5
  6967. + ac_status=$?
  6968. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969. + (exit $ac_status); } &&
  6970. + { ac_try='test -s conftest.$ac_objext'
  6971. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6972. + (eval $ac_try) 2>&5
  6973. + ac_status=$?
  6974. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6975. + (exit $ac_status); }; }; then
  6976. + ac_header_compiler=yes
  6977. +else
  6978. + echo "$as_me: failed program was:" >&5
  6979. +sed 's/^/| /' conftest.$ac_ext >&5
  6980. +
  6981. +ac_header_compiler=no
  6982. +fi
  6983. +rm -f conftest.$ac_objext conftest.$ac_ext
  6984. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6985. +echo "${ECHO_T}$ac_header_compiler" >&6
  6986. +
  6987. +# Is the header present?
  6988. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6989. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6990. +cat >conftest.$ac_ext <<_ACEOF
  6991. +#line $LINENO "configure"
  6992. +/* confdefs.h. */
  6993. +_ACEOF
  6994. +cat confdefs.h >>conftest.$ac_ext
  6995. +cat >>conftest.$ac_ext <<_ACEOF
  6996. +/* end confdefs.h. */
  6997. +#include <$ac_header>
  6998. +_ACEOF
  6999. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7000. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7001. + ac_status=$?
  7002. + grep -v '^ *+' conftest.er1 >conftest.err
  7003. + rm -f conftest.er1
  7004. + cat conftest.err >&5
  7005. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7006. + (exit $ac_status); } >/dev/null; then
  7007. + if test -s conftest.err; then
  7008. + ac_cpp_err=$ac_c_preproc_warn_flag
  7009. + else
  7010. + ac_cpp_err=
  7011. + fi
  7012. else
  7013. - cat > conftest.$ac_ext <<EOF
  7014. -#line 2568 "configure"
  7015. -#include "confdefs.h"
  7016. -#include <$ac_hdr>
  7017. -EOF
  7018. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7019. -{ (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7020. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7021. -if test -z "$ac_err"; then
  7022. - rm -rf conftest*
  7023. - eval "ac_cv_header_$ac_safe=yes"
  7024. -else
  7025. - echo "$ac_err" >&5
  7026. - echo "configure: failed program was:" >&5
  7027. - cat conftest.$ac_ext >&5
  7028. - rm -rf conftest*
  7029. - eval "ac_cv_header_$ac_safe=no"
  7030. + ac_cpp_err=yes
  7031. fi
  7032. -rm -f conftest*
  7033. -fi
  7034. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7035. - echo "$ac_t""yes" 1>&6
  7036. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7037. - cat >> confdefs.h <<EOF
  7038. -#define $ac_tr_hdr 1
  7039. -EOF
  7040. -
  7041. +if test -z "$ac_cpp_err"; then
  7042. + ac_header_preproc=yes
  7043. +else
  7044. + echo "$as_me: failed program was:" >&5
  7045. +sed 's/^/| /' conftest.$ac_ext >&5
  7046. +
  7047. + ac_header_preproc=no
  7048. +fi
  7049. +rm -f conftest.err conftest.$ac_ext
  7050. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7051. +echo "${ECHO_T}$ac_header_preproc" >&6
  7052. +
  7053. +# So? What about this header?
  7054. +case $ac_header_compiler:$ac_header_preproc in
  7055. + yes:no )
  7056. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7057. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7058. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7059. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7060. + (
  7061. + cat <<\_ASBOX
  7062. +## ------------------------------------ ##
  7063. +## Report this to bug-autoconf@gnu.org. ##
  7064. +## ------------------------------------ ##
  7065. +_ASBOX
  7066. + ) |
  7067. + sed "s/^/$as_me: WARNING: /" >&2
  7068. + ;;
  7069. + no:yes )
  7070. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7071. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7072. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7073. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7074. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7075. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7076. + (
  7077. + cat <<\_ASBOX
  7078. +## ------------------------------------ ##
  7079. +## Report this to bug-autoconf@gnu.org. ##
  7080. +## ------------------------------------ ##
  7081. +_ASBOX
  7082. + ) |
  7083. + sed "s/^/$as_me: WARNING: /" >&2
  7084. + ;;
  7085. +esac
  7086. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7087. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7088. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7089. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7090. else
  7091. - echo "$ac_t""no" 1>&6
  7092. + eval "$as_ac_Header=$ac_header_preproc"
  7093. +fi
  7094. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7095. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7096. +
  7097. +fi
  7098. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7099. + cat >>confdefs.h <<_ACEOF
  7100. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7101. +_ACEOF
  7102. +
  7103. fi
  7104. +
  7105. done
  7106. - for ac_func in getmntinfo
  7107. +
  7108. +for ac_func in getmntinfo
  7109. do
  7110. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7111. -echo "configure:2602: checking for $ac_func" >&5
  7112. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7113. - echo $ac_n "(cached) $ac_c" 1>&6
  7114. -else
  7115. - cat > conftest.$ac_ext <<EOF
  7116. -#line 2607 "configure"
  7117. -#include "confdefs.h"
  7118. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7119. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  7120. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7121. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  7122. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7123. +else
  7124. + cat >conftest.$ac_ext <<_ACEOF
  7125. +#line $LINENO "configure"
  7126. +/* confdefs.h. */
  7127. +_ACEOF
  7128. +cat confdefs.h >>conftest.$ac_ext
  7129. +cat >>conftest.$ac_ext <<_ACEOF
  7130. +/* end confdefs.h. */
  7131. /* System header to define __stub macros and hopefully few prototypes,
  7132. - which can conflict with char $ac_func(); below. */
  7133. -#include <assert.h>
  7134. + which can conflict with char $ac_func (); below.
  7135. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7136. + <limits.h> exists even on freestanding compilers. */
  7137. +#ifdef __STDC__
  7138. +# include <limits.h>
  7139. +#else
  7140. +# include <assert.h>
  7141. +#endif
  7142. /* Override any gcc2 internal prototype to avoid an error. */
  7143. +#ifdef __cplusplus
  7144. +extern "C"
  7145. +{
  7146. +#endif
  7147. /* We use char because int might match the return type of a gcc2
  7148. - builtin and then its argument prototype would still apply. */
  7149. -char $ac_func();
  7150. -
  7151. -int main() {
  7152. -
  7153. + builtin and then its argument prototype would still apply. */
  7154. +char $ac_func ();
  7155. /* The GNU C library defines this for functions which it implements
  7156. to always fail with ENOSYS. Some functions are actually named
  7157. something starting with __ and the normal name is an alias. */
  7158. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7159. choke me
  7160. #else
  7161. -$ac_func();
  7162. +char (*f) () = $ac_func;
  7163. +#endif
  7164. +#ifdef __cplusplus
  7165. +}
  7166. #endif
  7167. -; return 0; }
  7168. -EOF
  7169. -if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7170. - rm -rf conftest*
  7171. - eval "ac_cv_func_$ac_func=yes"
  7172. -else
  7173. - echo "configure: failed program was:" >&5
  7174. - cat conftest.$ac_ext >&5
  7175. - rm -rf conftest*
  7176. - eval "ac_cv_func_$ac_func=no"
  7177. -fi
  7178. -rm -f conftest*
  7179. -fi
  7180. +int
  7181. +main ()
  7182. +{
  7183. +return f != $ac_func;
  7184. + ;
  7185. + return 0;
  7186. +}
  7187. +_ACEOF
  7188. +rm -f conftest.$ac_objext conftest$ac_exeext
  7189. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7190. + (eval $ac_link) 2>&5
  7191. + ac_status=$?
  7192. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. + (exit $ac_status); } &&
  7194. + { ac_try='test -s conftest$ac_exeext'
  7195. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7196. + (eval $ac_try) 2>&5
  7197. + ac_status=$?
  7198. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. + (exit $ac_status); }; }; then
  7200. + eval "$as_ac_var=yes"
  7201. +else
  7202. + echo "$as_me: failed program was:" >&5
  7203. +sed 's/^/| /' conftest.$ac_ext >&5
  7204. +
  7205. +eval "$as_ac_var=no"
  7206. +fi
  7207. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7208. +fi
  7209. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7210. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7211. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  7212. + cat >>confdefs.h <<_ACEOF
  7213. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7214. +_ACEOF
  7215. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7216. - echo "$ac_t""yes" 1>&6
  7217. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7218. - cat >> confdefs.h <<EOF
  7219. -#define $ac_tr_func 1
  7220. -EOF
  7221. -
  7222. -else
  7223. - echo "$ac_t""no" 1>&6
  7224. fi
  7225. done
  7226. - echo "checking how to get filesystem space usage" 1>&6
  7227. -echo "configure:2656: checking how to get filesystem space usage" >&5
  7228. + { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
  7229. +echo "$as_me: checking how to get filesystem space usage..." >&6;}
  7230. space=no
  7231. # Here we'll compromise a little (and perform only the link test)
  7232. # since it seems there are no variants of the statvfs function.
  7233. if test $space = no; then
  7234. # SVR4
  7235. - for ac_func in statvfs
  7236. +
  7237. +for ac_func in statvfs
  7238. do
  7239. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7240. -echo "configure:2666: checking for $ac_func" >&5
  7241. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7242. - echo $ac_n "(cached) $ac_c" 1>&6
  7243. -else
  7244. - cat > conftest.$ac_ext <<EOF
  7245. -#line 2671 "configure"
  7246. -#include "confdefs.h"
  7247. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7248. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  7249. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7250. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  7251. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7252. +else
  7253. + cat >conftest.$ac_ext <<_ACEOF
  7254. +#line $LINENO "configure"
  7255. +/* confdefs.h. */
  7256. +_ACEOF
  7257. +cat confdefs.h >>conftest.$ac_ext
  7258. +cat >>conftest.$ac_ext <<_ACEOF
  7259. +/* end confdefs.h. */
  7260. /* System header to define __stub macros and hopefully few prototypes,
  7261. - which can conflict with char $ac_func(); below. */
  7262. -#include <assert.h>
  7263. + which can conflict with char $ac_func (); below.
  7264. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7265. + <limits.h> exists even on freestanding compilers. */
  7266. +#ifdef __STDC__
  7267. +# include <limits.h>
  7268. +#else
  7269. +# include <assert.h>
  7270. +#endif
  7271. /* Override any gcc2 internal prototype to avoid an error. */
  7272. +#ifdef __cplusplus
  7273. +extern "C"
  7274. +{
  7275. +#endif
  7276. /* We use char because int might match the return type of a gcc2
  7277. - builtin and then its argument prototype would still apply. */
  7278. -char $ac_func();
  7279. -
  7280. -int main() {
  7281. -
  7282. + builtin and then its argument prototype would still apply. */
  7283. +char $ac_func ();
  7284. /* The GNU C library defines this for functions which it implements
  7285. to always fail with ENOSYS. Some functions are actually named
  7286. something starting with __ and the normal name is an alias. */
  7287. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7288. choke me
  7289. #else
  7290. -$ac_func();
  7291. +char (*f) () = $ac_func;
  7292. +#endif
  7293. +#ifdef __cplusplus
  7294. +}
  7295. #endif
  7296. -; return 0; }
  7297. -EOF
  7298. -if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7299. - rm -rf conftest*
  7300. - eval "ac_cv_func_$ac_func=yes"
  7301. -else
  7302. - echo "configure: failed program was:" >&5
  7303. - cat conftest.$ac_ext >&5
  7304. - rm -rf conftest*
  7305. - eval "ac_cv_func_$ac_func=no"
  7306. -fi
  7307. -rm -f conftest*
  7308. -fi
  7309. +int
  7310. +main ()
  7311. +{
  7312. +return f != $ac_func;
  7313. + ;
  7314. + return 0;
  7315. +}
  7316. +_ACEOF
  7317. +rm -f conftest.$ac_objext conftest$ac_exeext
  7318. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7319. + (eval $ac_link) 2>&5
  7320. + ac_status=$?
  7321. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7322. + (exit $ac_status); } &&
  7323. + { ac_try='test -s conftest$ac_exeext'
  7324. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7325. + (eval $ac_try) 2>&5
  7326. + ac_status=$?
  7327. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7328. + (exit $ac_status); }; }; then
  7329. + eval "$as_ac_var=yes"
  7330. +else
  7331. + echo "$as_me: failed program was:" >&5
  7332. +sed 's/^/| /' conftest.$ac_ext >&5
  7333. +
  7334. +eval "$as_ac_var=no"
  7335. +fi
  7336. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7337. +fi
  7338. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7339. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7340. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  7341. + cat >>confdefs.h <<_ACEOF
  7342. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7343. +_ACEOF
  7344. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7345. - echo "$ac_t""yes" 1>&6
  7346. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7347. - cat >> confdefs.h <<EOF
  7348. -#define $ac_tr_func 1
  7349. -EOF
  7350. -
  7351. -else
  7352. - echo "$ac_t""no" 1>&6
  7353. fi
  7354. done
  7355. if test $ac_cv_func_statvfs = yes; then
  7356. space=yes
  7357. - cat >> confdefs.h <<\EOF
  7358. + cat >>confdefs.h <<\_ACEOF
  7359. #define STAT_STATVFS 1
  7360. -EOF
  7361. +_ACEOF
  7362. fi
  7363. fi
  7364. if test $space = no; then
  7365. # DEC Alpha running OSF/1
  7366. - echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
  7367. -echo "configure:2730: checking for 3-argument statfs function (DEC OSF/1)" >&5
  7368. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
  7369. - echo $ac_n "(cached) $ac_c" 1>&6
  7370. + echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
  7371. +echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
  7372. + if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
  7373. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7374. else
  7375. if test "$cross_compiling" = yes; then
  7376. fu_cv_sys_stat_statfs3_osf1=no
  7377. else
  7378. - cat > conftest.$ac_ext <<EOF
  7379. -#line 2738 "configure"
  7380. -#include "confdefs.h"
  7381. + cat >conftest.$ac_ext <<_ACEOF
  7382. +#line $LINENO "configure"
  7383. +/* confdefs.h. */
  7384. +_ACEOF
  7385. +cat confdefs.h >>conftest.$ac_ext
  7386. +cat >>conftest.$ac_ext <<_ACEOF
  7387. +/* end confdefs.h. */
  7388. #include <sys/param.h>
  7389. #include <sys/types.h>
  7390. @@ -2746,44 +5953,59 @@
  7391. fsd.f_fsize = 0;
  7392. exit (statfs (".", &fsd, sizeof (struct statfs)));
  7393. }
  7394. -EOF
  7395. -if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7396. -then
  7397. +_ACEOF
  7398. +rm -f conftest$ac_exeext
  7399. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7400. + (eval $ac_link) 2>&5
  7401. + ac_status=$?
  7402. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7403. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7404. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7405. + (eval $ac_try) 2>&5
  7406. + ac_status=$?
  7407. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7408. + (exit $ac_status); }; }; then
  7409. fu_cv_sys_stat_statfs3_osf1=yes
  7410. else
  7411. - echo "configure: failed program was:" >&5
  7412. - cat conftest.$ac_ext >&5
  7413. - rm -fr conftest*
  7414. - fu_cv_sys_stat_statfs3_osf1=no
  7415. + echo "$as_me: program exited with status $ac_status" >&5
  7416. +echo "$as_me: failed program was:" >&5
  7417. +sed 's/^/| /' conftest.$ac_ext >&5
  7418. +
  7419. +( exit $ac_status )
  7420. +fu_cv_sys_stat_statfs3_osf1=no
  7421. fi
  7422. -rm -fr conftest*
  7423. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7424. fi
  7425. -
  7426. fi
  7427. - echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
  7428. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
  7429. +echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
  7430. if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
  7431. space=yes
  7432. - cat >> confdefs.h <<\EOF
  7433. + cat >>confdefs.h <<\_ACEOF
  7434. #define STAT_STATFS3_OSF1 1
  7435. -EOF
  7436. +_ACEOF
  7437. fi
  7438. fi
  7439. if test $space = no; then
  7440. # AIX
  7441. - echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
  7442. -echo "configure:2778: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
  7443. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
  7444. - echo $ac_n "(cached) $ac_c" 1>&6
  7445. + echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
  7446. +echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
  7447. + if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
  7448. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7449. else
  7450. if test "$cross_compiling" = yes; then
  7451. fu_cv_sys_stat_statfs2_bsize=no
  7452. else
  7453. - cat > conftest.$ac_ext <<EOF
  7454. -#line 2786 "configure"
  7455. -#include "confdefs.h"
  7456. + cat >conftest.$ac_ext <<_ACEOF
  7457. +#line $LINENO "configure"
  7458. +/* confdefs.h. */
  7459. +_ACEOF
  7460. +cat confdefs.h >>conftest.$ac_ext
  7461. +cat >>conftest.$ac_ext <<_ACEOF
  7462. +/* end confdefs.h. */
  7463. #ifdef HAVE_SYS_PARAM_H
  7464. #include <sys/param.h>
  7465. @@ -2800,44 +6022,59 @@
  7466. fsd.f_bsize = 0;
  7467. exit (statfs (".", &fsd));
  7468. }
  7469. -EOF
  7470. -if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7471. -then
  7472. +_ACEOF
  7473. +rm -f conftest$ac_exeext
  7474. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7475. + (eval $ac_link) 2>&5
  7476. + ac_status=$?
  7477. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7478. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7479. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7480. + (eval $ac_try) 2>&5
  7481. + ac_status=$?
  7482. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. + (exit $ac_status); }; }; then
  7484. fu_cv_sys_stat_statfs2_bsize=yes
  7485. else
  7486. - echo "configure: failed program was:" >&5
  7487. - cat conftest.$ac_ext >&5
  7488. - rm -fr conftest*
  7489. - fu_cv_sys_stat_statfs2_bsize=no
  7490. + echo "$as_me: program exited with status $ac_status" >&5
  7491. +echo "$as_me: failed program was:" >&5
  7492. +sed 's/^/| /' conftest.$ac_ext >&5
  7493. +
  7494. +( exit $ac_status )
  7495. +fu_cv_sys_stat_statfs2_bsize=no
  7496. fi
  7497. -rm -fr conftest*
  7498. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7499. fi
  7500. -
  7501. fi
  7502. - echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
  7503. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
  7504. +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
  7505. if test $fu_cv_sys_stat_statfs2_bsize = yes; then
  7506. space=yes
  7507. - cat >> confdefs.h <<\EOF
  7508. + cat >>confdefs.h <<\_ACEOF
  7509. #define STAT_STATFS2_BSIZE 1
  7510. -EOF
  7511. +_ACEOF
  7512. fi
  7513. fi
  7514. if test $space = no; then
  7515. # SVR3
  7516. - echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
  7517. -echo "configure:2832: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
  7518. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
  7519. - echo $ac_n "(cached) $ac_c" 1>&6
  7520. + echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
  7521. +echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
  7522. + if test "${fu_cv_sys_stat_statfs4+set}" = set; then
  7523. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7524. else
  7525. if test "$cross_compiling" = yes; then
  7526. fu_cv_sys_stat_statfs4=no
  7527. else
  7528. - cat > conftest.$ac_ext <<EOF
  7529. -#line 2840 "configure"
  7530. -#include "confdefs.h"
  7531. + cat >conftest.$ac_ext <<_ACEOF
  7532. +#line $LINENO "configure"
  7533. +/* confdefs.h. */
  7534. +_ACEOF
  7535. +cat confdefs.h >>conftest.$ac_ext
  7536. +cat >>conftest.$ac_ext <<_ACEOF
  7537. +/* end confdefs.h. */
  7538. #include <sys/types.h>
  7539. #include <sys/statfs.h>
  7540. main ()
  7541. @@ -2845,43 +6082,58 @@
  7542. struct statfs fsd;
  7543. exit (statfs (".", &fsd, sizeof fsd, 0));
  7544. }
  7545. -EOF
  7546. -if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7547. -then
  7548. +_ACEOF
  7549. +rm -f conftest$ac_exeext
  7550. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7551. + (eval $ac_link) 2>&5
  7552. + ac_status=$?
  7553. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7554. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7555. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7556. + (eval $ac_try) 2>&5
  7557. + ac_status=$?
  7558. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7559. + (exit $ac_status); }; }; then
  7560. fu_cv_sys_stat_statfs4=yes
  7561. else
  7562. - echo "configure: failed program was:" >&5
  7563. - cat conftest.$ac_ext >&5
  7564. - rm -fr conftest*
  7565. - fu_cv_sys_stat_statfs4=no
  7566. + echo "$as_me: program exited with status $ac_status" >&5
  7567. +echo "$as_me: failed program was:" >&5
  7568. +sed 's/^/| /' conftest.$ac_ext >&5
  7569. +
  7570. +( exit $ac_status )
  7571. +fu_cv_sys_stat_statfs4=no
  7572. fi
  7573. -rm -fr conftest*
  7574. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7575. fi
  7576. -
  7577. fi
  7578. - echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
  7579. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
  7580. +echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
  7581. if test $fu_cv_sys_stat_statfs4 = yes; then
  7582. space=yes
  7583. - cat >> confdefs.h <<\EOF
  7584. + cat >>confdefs.h <<\_ACEOF
  7585. #define STAT_STATFS4 1
  7586. -EOF
  7587. +_ACEOF
  7588. fi
  7589. fi
  7590. if test $space = no; then
  7591. # 4.4BSD and NetBSD
  7592. - echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
  7593. -echo "configure:2876: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
  7594. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
  7595. - echo $ac_n "(cached) $ac_c" 1>&6
  7596. + echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
  7597. +echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
  7598. + if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
  7599. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7600. else
  7601. if test "$cross_compiling" = yes; then
  7602. fu_cv_sys_stat_statfs2_fsize=no
  7603. else
  7604. - cat > conftest.$ac_ext <<EOF
  7605. -#line 2884 "configure"
  7606. -#include "confdefs.h"
  7607. + cat >conftest.$ac_ext <<_ACEOF
  7608. +#line $LINENO "configure"
  7609. +/* confdefs.h. */
  7610. +_ACEOF
  7611. +cat confdefs.h >>conftest.$ac_ext
  7612. +cat >>conftest.$ac_ext <<_ACEOF
  7613. +/* end confdefs.h. */
  7614. #include <sys/types.h>
  7615. #ifdef HAVE_SYS_PARAM_H
  7616. #include <sys/param.h>
  7617. @@ -2895,44 +6147,59 @@
  7618. fsd.f_fsize = 0;
  7619. exit (statfs (".", &fsd));
  7620. }
  7621. -EOF
  7622. -if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7623. -then
  7624. +_ACEOF
  7625. +rm -f conftest$ac_exeext
  7626. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7627. + (eval $ac_link) 2>&5
  7628. + ac_status=$?
  7629. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7630. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7631. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7632. + (eval $ac_try) 2>&5
  7633. + ac_status=$?
  7634. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7635. + (exit $ac_status); }; }; then
  7636. fu_cv_sys_stat_statfs2_fsize=yes
  7637. else
  7638. - echo "configure: failed program was:" >&5
  7639. - cat conftest.$ac_ext >&5
  7640. - rm -fr conftest*
  7641. - fu_cv_sys_stat_statfs2_fsize=no
  7642. + echo "$as_me: program exited with status $ac_status" >&5
  7643. +echo "$as_me: failed program was:" >&5
  7644. +sed 's/^/| /' conftest.$ac_ext >&5
  7645. +
  7646. +( exit $ac_status )
  7647. +fu_cv_sys_stat_statfs2_fsize=no
  7648. fi
  7649. -rm -fr conftest*
  7650. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7651. fi
  7652. -
  7653. fi
  7654. - echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
  7655. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
  7656. +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
  7657. if test $fu_cv_sys_stat_statfs2_fsize = yes; then
  7658. space=yes
  7659. - cat >> confdefs.h <<\EOF
  7660. + cat >>confdefs.h <<\_ACEOF
  7661. #define STAT_STATFS2_FSIZE 1
  7662. -EOF
  7663. +_ACEOF
  7664. fi
  7665. fi
  7666. if test $space = no; then
  7667. # Ultrix
  7668. - echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
  7669. -echo "configure:2927: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
  7670. - if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
  7671. - echo $ac_n "(cached) $ac_c" 1>&6
  7672. + echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
  7673. +echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
  7674. + if test "${fu_cv_sys_stat_fs_data+set}" = set; then
  7675. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7676. else
  7677. if test "$cross_compiling" = yes; then
  7678. fu_cv_sys_stat_fs_data=no
  7679. else
  7680. - cat > conftest.$ac_ext <<EOF
  7681. -#line 2935 "configure"
  7682. -#include "confdefs.h"
  7683. + cat >conftest.$ac_ext <<_ACEOF
  7684. +#line $LINENO "configure"
  7685. +/* confdefs.h. */
  7686. +_ACEOF
  7687. +cat confdefs.h >>conftest.$ac_ext
  7688. +cat >>conftest.$ac_ext <<_ACEOF
  7689. +/* end confdefs.h. */
  7690. #include <sys/types.h>
  7691. #ifdef HAVE_SYS_PARAM_H
  7692. @@ -2951,53 +6218,63 @@
  7693. 0 for not mounted, -1 for failure. */
  7694. exit (statfs (".", &fsd) != 1);
  7695. }
  7696. -EOF
  7697. -if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7698. -then
  7699. +_ACEOF
  7700. +rm -f conftest$ac_exeext
  7701. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7702. + (eval $ac_link) 2>&5
  7703. + ac_status=$?
  7704. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7706. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7707. + (eval $ac_try) 2>&5
  7708. + ac_status=$?
  7709. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7710. + (exit $ac_status); }; }; then
  7711. fu_cv_sys_stat_fs_data=yes
  7712. else
  7713. - echo "configure: failed program was:" >&5
  7714. - cat conftest.$ac_ext >&5
  7715. - rm -fr conftest*
  7716. - fu_cv_sys_stat_fs_data=no
  7717. + echo "$as_me: program exited with status $ac_status" >&5
  7718. +echo "$as_me: failed program was:" >&5
  7719. +sed 's/^/| /' conftest.$ac_ext >&5
  7720. +
  7721. +( exit $ac_status )
  7722. +fu_cv_sys_stat_fs_data=no
  7723. fi
  7724. -rm -fr conftest*
  7725. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7726. fi
  7727. -
  7728. fi
  7729. - echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
  7730. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
  7731. +echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
  7732. if test $fu_cv_sys_stat_fs_data = yes; then
  7733. space=yes
  7734. - cat >> confdefs.h <<\EOF
  7735. + cat >>confdefs.h <<\_ACEOF
  7736. #define STAT_STATFS2_FS_DATA 1
  7737. -EOF
  7738. +_ACEOF
  7739. fi
  7740. fi
  7741. -
  7742. +
  7743. # Check whether --enable-stat-nfs or --disable-stat-nfs was given.
  7744. if test "${enable_stat_nfs+set}" = set; then
  7745. enableval="$enable_stat_nfs"
  7746. - cat >> confdefs.h <<\EOF
  7747. + cat >>confdefs.h <<\_ACEOF
  7748. #define STAT_NFS 1
  7749. -EOF
  7750. +_ACEOF
  7751. -fi
  7752. -
  7753. +fi;
  7754. # Check whether --enable-stat-smbfs or --disable-stat-smbfs was given.
  7755. if test "${enable_stat_smbfs+set}" = set; then
  7756. enableval="$enable_stat_smbfs"
  7757. - cat >> confdefs.h <<\EOF
  7758. + cat >>confdefs.h <<\_ACEOF
  7759. #define STAT_SMBFS 1
  7760. -EOF
  7761. +_ACEOF
  7762. -fi
  7763. +fi;
  7764. @@ -3008,16 +6285,16 @@
  7765. else
  7766. LCDPORT="13666"
  7767. -fi
  7768. -
  7769. -cat >> confdefs.h <<EOF
  7770. +fi;
  7771. +cat >>confdefs.h <<_ACEOF
  7772. #define LCDPORT $LCDPORT
  7773. -EOF
  7774. +_ACEOF
  7775. -cat >> confdefs.h <<EOF
  7776. +cat >>confdefs.h <<_ACEOF
  7777. #define PROTOCOL_VERSION "0.3"
  7778. -EOF
  7779. +_ACEOF
  7780. +
  7781. @@ -3028,11 +6305,11 @@
  7782. else
  7783. LOAD_MAX=1.3
  7784. -fi
  7785. -
  7786. -cat >> confdefs.h <<EOF
  7787. +fi;
  7788. +cat >>confdefs.h <<_ACEOF
  7789. #define LOAD_MAX $LOAD_MAX
  7790. -EOF
  7791. +_ACEOF
  7792. +
  7793. # Check whether --with-loadmin or --without-loadmin was given.
  7794. @@ -3042,16 +6319,15 @@
  7795. else
  7796. LOAD_MIN=0.05
  7797. -fi
  7798. -
  7799. -cat >> confdefs.h <<EOF
  7800. +fi;
  7801. +cat >>confdefs.h <<_ACEOF
  7802. #define LOAD_MIN $LOAD_MIN
  7803. -EOF
  7804. +_ACEOF
  7805. -echo $ac_n "checking for which drivers to compile""... $ac_c" 1>&6
  7806. -echo "configure:3055: checking for which drivers to compile" >&5
  7807. +echo "$as_me:$LINENO: checking for which drivers to compile" >&5
  7808. +echo $ECHO_N "checking for which drivers to compile... $ECHO_C" >&6
  7809. # Check whether --enable-drivers or --disable-drivers was given.
  7810. if test "${enable_drivers+set}" = set; then
  7811. @@ -3059,252 +6335,329 @@
  7812. drivers="$enableval"
  7813. else
  7814. drivers=mtxorb,cfontz,curses,text,lb216,bayrad,glk
  7815. -fi
  7816. -
  7817. +fi;
  7818. if test "$drivers" = "all"; then
  7819. drivers=mtxorb,cfontz,curses,text,lb216,hd44780,joy,irman,lircin,bayrad,glk
  7820. - echo "$ac_t""all" 1>&6
  7821. + echo "$as_me:$LINENO: result: all" >&5
  7822. +echo "${ECHO_T}all" >&6
  7823. fi
  7824. drivers=`echo $drivers | sed 's/,/ /g'`
  7825. - echo "$ac_t""$drivers" 1>&6
  7826. + echo "$as_me:$LINENO: result: $drivers" >&5
  7827. +echo "${ECHO_T}$drivers" >&6
  7828. for driver in $drivers
  7829. do
  7830. case "$driver" in
  7831. mtxorb)
  7832. DRIVERS="$DRIVERS MtxOrb.o"
  7833. - cat >> confdefs.h <<\EOF
  7834. + cat >>confdefs.h <<\_ACEOF
  7835. #define MTXORB_DRV 1
  7836. -EOF
  7837. +_ACEOF
  7838. ;;
  7839. glk)
  7840. DRIVERS="$DRIVERS glk.o glkproto.o"
  7841. - cat >> confdefs.h <<\EOF
  7842. + cat >>confdefs.h <<\_ACEOF
  7843. #define GLK_DRV 1
  7844. -EOF
  7845. +_ACEOF
  7846. ;;
  7847. bayrad)
  7848. DRIVERS="$DRIVERS bayrad.o"
  7849. - cat >> confdefs.h <<\EOF
  7850. + cat >>confdefs.h <<\_ACEOF
  7851. #define BAYRAD_DRV 1
  7852. -EOF
  7853. +_ACEOF
  7854. ;;
  7855. cfontz)
  7856. DRIVERS="$DRIVERS CFontz.o"
  7857. - cat >> confdefs.h <<\EOF
  7858. + cat >>confdefs.h <<\_ACEOF
  7859. #define CFONTZ_DRV 1
  7860. -EOF
  7861. +_ACEOF
  7862. ;;
  7863. - sli)
  7864. + sli)
  7865. DRIVERS="$DRIVERS wirz-sli.o"
  7866. - cat >> confdefs.h <<\EOF
  7867. + cat >>confdefs.h <<\_ACEOF
  7868. #define SLI_DRV 1
  7869. -EOF
  7870. +_ACEOF
  7871. ;;
  7872. curses)
  7873. - echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
  7874. -echo "configure:3113: checking for main in -lncurses" >&5
  7875. -ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
  7876. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7877. - echo $ac_n "(cached) $ac_c" 1>&6
  7878. + echo "$as_me:$LINENO: checking for main in -lncurses" >&5
  7879. +echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
  7880. +if test "${ac_cv_lib_ncurses_main+set}" = set; then
  7881. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7882. else
  7883. - ac_save_LIBS="$LIBS"
  7884. + ac_check_lib_save_LIBS=$LIBS
  7885. LIBS="-lncurses $LIBS"
  7886. -cat > conftest.$ac_ext <<EOF
  7887. -#line 3121 "configure"
  7888. -#include "confdefs.h"
  7889. -
  7890. -int main() {
  7891. -main()
  7892. -; return 0; }
  7893. -EOF
  7894. -if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7895. - rm -rf conftest*
  7896. - eval "ac_cv_lib_$ac_lib_var=yes"
  7897. -else
  7898. - echo "configure: failed program was:" >&5
  7899. - cat conftest.$ac_ext >&5
  7900. - rm -rf conftest*
  7901. - eval "ac_cv_lib_$ac_lib_var=no"
  7902. -fi
  7903. -rm -f conftest*
  7904. -LIBS="$ac_save_LIBS"
  7905. +cat >conftest.$ac_ext <<_ACEOF
  7906. +#line $LINENO "configure"
  7907. +/* confdefs.h. */
  7908. +_ACEOF
  7909. +cat confdefs.h >>conftest.$ac_ext
  7910. +cat >>conftest.$ac_ext <<_ACEOF
  7911. +/* end confdefs.h. */
  7912. -fi
  7913. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7914. - echo "$ac_t""yes" 1>&6
  7915. +
  7916. +int
  7917. +main ()
  7918. +{
  7919. +main ();
  7920. + ;
  7921. + return 0;
  7922. +}
  7923. +_ACEOF
  7924. +rm -f conftest.$ac_objext conftest$ac_exeext
  7925. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7926. + (eval $ac_link) 2>&5
  7927. + ac_status=$?
  7928. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7929. + (exit $ac_status); } &&
  7930. + { ac_try='test -s conftest$ac_exeext'
  7931. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7932. + (eval $ac_try) 2>&5
  7933. + ac_status=$?
  7934. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7935. + (exit $ac_status); }; }; then
  7936. + ac_cv_lib_ncurses_main=yes
  7937. +else
  7938. + echo "$as_me: failed program was:" >&5
  7939. +sed 's/^/| /' conftest.$ac_ext >&5
  7940. +
  7941. +ac_cv_lib_ncurses_main=no
  7942. +fi
  7943. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7944. +LIBS=$ac_check_lib_save_LIBS
  7945. +fi
  7946. +echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
  7947. +echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
  7948. +if test $ac_cv_lib_ncurses_main = yes; then
  7949. LIBCURSES="-lncurses"
  7950. else
  7951. - echo "$ac_t""no" 1>&6
  7952. -echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
  7953. -echo "configure:3147: checking for main in -lcurses" >&5
  7954. -ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
  7955. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7956. - echo $ac_n "(cached) $ac_c" 1>&6
  7957. + echo "$as_me:$LINENO: checking for main in -lcurses" >&5
  7958. +echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
  7959. +if test "${ac_cv_lib_curses_main+set}" = set; then
  7960. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7961. else
  7962. - ac_save_LIBS="$LIBS"
  7963. + ac_check_lib_save_LIBS=$LIBS
  7964. LIBS="-lcurses $LIBS"
  7965. -cat > conftest.$ac_ext <<EOF
  7966. -#line 3155 "configure"
  7967. -#include "confdefs.h"
  7968. -
  7969. -int main() {
  7970. -main()
  7971. -; return 0; }
  7972. -EOF
  7973. -if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7974. - rm -rf conftest*
  7975. - eval "ac_cv_lib_$ac_lib_var=yes"
  7976. -else
  7977. - echo "configure: failed program was:" >&5
  7978. - cat conftest.$ac_ext >&5
  7979. - rm -rf conftest*
  7980. - eval "ac_cv_lib_$ac_lib_var=no"
  7981. -fi
  7982. -rm -f conftest*
  7983. -LIBS="$ac_save_LIBS"
  7984. +cat >conftest.$ac_ext <<_ACEOF
  7985. +#line $LINENO "configure"
  7986. +/* confdefs.h. */
  7987. +_ACEOF
  7988. +cat confdefs.h >>conftest.$ac_ext
  7989. +cat >>conftest.$ac_ext <<_ACEOF
  7990. +/* end confdefs.h. */
  7991. -fi
  7992. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7993. - echo "$ac_t""yes" 1>&6
  7994. +
  7995. +int
  7996. +main ()
  7997. +{
  7998. +main ();
  7999. + ;
  8000. + return 0;
  8001. +}
  8002. +_ACEOF
  8003. +rm -f conftest.$ac_objext conftest$ac_exeext
  8004. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8005. + (eval $ac_link) 2>&5
  8006. + ac_status=$?
  8007. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8008. + (exit $ac_status); } &&
  8009. + { ac_try='test -s conftest$ac_exeext'
  8010. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8011. + (eval $ac_try) 2>&5
  8012. + ac_status=$?
  8013. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8014. + (exit $ac_status); }; }; then
  8015. + ac_cv_lib_curses_main=yes
  8016. +else
  8017. + echo "$as_me: failed program was:" >&5
  8018. +sed 's/^/| /' conftest.$ac_ext >&5
  8019. +
  8020. +ac_cv_lib_curses_main=no
  8021. +fi
  8022. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8023. +LIBS=$ac_check_lib_save_LIBS
  8024. +fi
  8025. +echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
  8026. +echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
  8027. +if test $ac_cv_lib_curses_main = yes; then
  8028. LIBCURSES="-lcurses"
  8029. else
  8030. - echo "$ac_t""no" 1>&6
  8031. -{ echo "configure: error: The curses driver needs the curses library" 1>&2; exit 1; }
  8032. + { { echo "$as_me:$LINENO: error: The curses driver needs the curses library" >&5
  8033. +echo "$as_me: error: The curses driver needs the curses library" >&2;}
  8034. + { (exit 1); exit 1; }; }
  8035. fi
  8036. fi
  8037. DRIVERS="$DRIVERS curses_drv.o"
  8038. - cat >> confdefs.h <<\EOF
  8039. + cat >>confdefs.h <<\_ACEOF
  8040. #define CURSES_DRV 1
  8041. -EOF
  8042. +_ACEOF
  8043. ;;
  8044. text)
  8045. DRIVERS="$DRIVERS text.o"
  8046. - cat >> confdefs.h <<\EOF
  8047. + cat >>confdefs.h <<\_ACEOF
  8048. #define TEXT_DRV 1
  8049. -EOF
  8050. +_ACEOF
  8051. ;;
  8052. lb216)
  8053. DRIVERS="$DRIVERS lb216.o"
  8054. - cat >> confdefs.h <<\EOF
  8055. + cat >>confdefs.h <<\_ACEOF
  8056. #define LB216_DRV 1
  8057. -EOF
  8058. +_ACEOF
  8059. ;;
  8060. hd44780)
  8061. DRIVERS="$DRIVERS hd44780.o hd44780-4bit.o hd44780-ext8bit.o lcd_sem.o hd44780-serialLpt.o hd44780-winamp.o"
  8062. - cat >> confdefs.h <<\EOF
  8063. + cat >>confdefs.h <<\_ACEOF
  8064. #define HD44780_DRV 1
  8065. -EOF
  8066. +_ACEOF
  8067. ;;
  8068. - joy)
  8069. + joy)
  8070. DRIVERS="$DRIVERS joy.o"
  8071. - cat >> confdefs.h <<\EOF
  8072. + cat >>confdefs.h <<\_ACEOF
  8073. #define JOY_DRV 1
  8074. -EOF
  8075. +_ACEOF
  8076. ;;
  8077. irman)
  8078. - echo $ac_n "checking for main in -lirman""... $ac_c" 1>&6
  8079. -echo "configure:3221: checking for main in -lirman" >&5
  8080. -ac_lib_var=`echo irman'_'main | sed 'y%./+-%__p_%'`
  8081. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8082. - echo $ac_n "(cached) $ac_c" 1>&6
  8083. + echo "$as_me:$LINENO: checking for main in -lirman" >&5
  8084. +echo $ECHO_N "checking for main in -lirman... $ECHO_C" >&6
  8085. +if test "${ac_cv_lib_irman_main+set}" = set; then
  8086. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8087. else
  8088. - ac_save_LIBS="$LIBS"
  8089. + ac_check_lib_save_LIBS=$LIBS
  8090. LIBS="-lirman $LIBS"
  8091. -cat > conftest.$ac_ext <<EOF
  8092. -#line 3229 "configure"
  8093. -#include "confdefs.h"
  8094. -
  8095. -int main() {
  8096. -main()
  8097. -; return 0; }
  8098. -EOF
  8099. -if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8100. - rm -rf conftest*
  8101. - eval "ac_cv_lib_$ac_lib_var=yes"
  8102. -else
  8103. - echo "configure: failed program was:" >&5
  8104. - cat conftest.$ac_ext >&5
  8105. - rm -rf conftest*
  8106. - eval "ac_cv_lib_$ac_lib_var=no"
  8107. -fi
  8108. -rm -f conftest*
  8109. -LIBS="$ac_save_LIBS"
  8110. +cat >conftest.$ac_ext <<_ACEOF
  8111. +#line $LINENO "configure"
  8112. +/* confdefs.h. */
  8113. +_ACEOF
  8114. +cat confdefs.h >>conftest.$ac_ext
  8115. +cat >>conftest.$ac_ext <<_ACEOF
  8116. +/* end confdefs.h. */
  8117. -fi
  8118. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8119. - echo "$ac_t""yes" 1>&6
  8120. +
  8121. +int
  8122. +main ()
  8123. +{
  8124. +main ();
  8125. + ;
  8126. + return 0;
  8127. +}
  8128. +_ACEOF
  8129. +rm -f conftest.$ac_objext conftest$ac_exeext
  8130. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8131. + (eval $ac_link) 2>&5
  8132. + ac_status=$?
  8133. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8134. + (exit $ac_status); } &&
  8135. + { ac_try='test -s conftest$ac_exeext'
  8136. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8137. + (eval $ac_try) 2>&5
  8138. + ac_status=$?
  8139. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8140. + (exit $ac_status); }; }; then
  8141. + ac_cv_lib_irman_main=yes
  8142. +else
  8143. + echo "$as_me: failed program was:" >&5
  8144. +sed 's/^/| /' conftest.$ac_ext >&5
  8145. +
  8146. +ac_cv_lib_irman_main=no
  8147. +fi
  8148. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8149. +LIBS=$ac_check_lib_save_LIBS
  8150. +fi
  8151. +echo "$as_me:$LINENO: result: $ac_cv_lib_irman_main" >&5
  8152. +echo "${ECHO_T}$ac_cv_lib_irman_main" >&6
  8153. +if test $ac_cv_lib_irman_main = yes; then
  8154. LIBIRMAN="-lirman"
  8155. else
  8156. - echo "$ac_t""no" 1>&6
  8157. -{ echo "configure: error: The irman driver needs the irman library" 1>&2; exit 1; }
  8158. + { { echo "$as_me:$LINENO: error: The irman driver needs the irman library" >&5
  8159. +echo "$as_me: error: The irman driver needs the irman library" >&2;}
  8160. + { (exit 1); exit 1; }; }
  8161. fi
  8162. DRIVERS="$DRIVERS irmanin.o"
  8163. - cat >> confdefs.h <<\EOF
  8164. + cat >>confdefs.h <<\_ACEOF
  8165. #define IRMANIN_DRV 1
  8166. -EOF
  8167. +_ACEOF
  8168. ;;
  8169. lircin)
  8170. - echo $ac_n "checking for main in -llirc_client""... $ac_c" 1>&6
  8171. -echo "configure:3265: checking for main in -llirc_client" >&5
  8172. -ac_lib_var=`echo lirc_client'_'main | sed 'y%./+-%__p_%'`
  8173. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8174. - echo $ac_n "(cached) $ac_c" 1>&6
  8175. + echo "$as_me:$LINENO: checking for main in -llirc_client" >&5
  8176. +echo $ECHO_N "checking for main in -llirc_client... $ECHO_C" >&6
  8177. +if test "${ac_cv_lib_lirc_client_main+set}" = set; then
  8178. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8179. else
  8180. - ac_save_LIBS="$LIBS"
  8181. + ac_check_lib_save_LIBS=$LIBS
  8182. LIBS="-llirc_client $LIBS"
  8183. -cat > conftest.$ac_ext <<EOF
  8184. -#line 3273 "configure"
  8185. -#include "confdefs.h"
  8186. -
  8187. -int main() {
  8188. -main()
  8189. -; return 0; }
  8190. -EOF
  8191. -if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8192. - rm -rf conftest*
  8193. - eval "ac_cv_lib_$ac_lib_var=yes"
  8194. -else
  8195. - echo "configure: failed program was:" >&5
  8196. - cat conftest.$ac_ext >&5
  8197. - rm -rf conftest*
  8198. - eval "ac_cv_lib_$ac_lib_var=no"
  8199. -fi
  8200. -rm -f conftest*
  8201. -LIBS="$ac_save_LIBS"
  8202. +cat >conftest.$ac_ext <<_ACEOF
  8203. +#line $LINENO "configure"
  8204. +/* confdefs.h. */
  8205. +_ACEOF
  8206. +cat confdefs.h >>conftest.$ac_ext
  8207. +cat >>conftest.$ac_ext <<_ACEOF
  8208. +/* end confdefs.h. */
  8209. -fi
  8210. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8211. - echo "$ac_t""yes" 1>&6
  8212. +
  8213. +int
  8214. +main ()
  8215. +{
  8216. +main ();
  8217. + ;
  8218. + return 0;
  8219. +}
  8220. +_ACEOF
  8221. +rm -f conftest.$ac_objext conftest$ac_exeext
  8222. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8223. + (eval $ac_link) 2>&5
  8224. + ac_status=$?
  8225. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8226. + (exit $ac_status); } &&
  8227. + { ac_try='test -s conftest$ac_exeext'
  8228. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8229. + (eval $ac_try) 2>&5
  8230. + ac_status=$?
  8231. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8232. + (exit $ac_status); }; }; then
  8233. + ac_cv_lib_lirc_client_main=yes
  8234. +else
  8235. + echo "$as_me: failed program was:" >&5
  8236. +sed 's/^/| /' conftest.$ac_ext >&5
  8237. +
  8238. +ac_cv_lib_lirc_client_main=no
  8239. +fi
  8240. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8241. +LIBS=$ac_check_lib_save_LIBS
  8242. +fi
  8243. +echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_main" >&5
  8244. +echo "${ECHO_T}$ac_cv_lib_lirc_client_main" >&6
  8245. +if test $ac_cv_lib_lirc_client_main = yes; then
  8246. LIBLIRC_CLIENT="-llirc_client"
  8247. else
  8248. - echo "$ac_t""no" 1>&6
  8249. -{ echo "configure: error: The lirc driver needs the lirc client library" 1>&2; exit 1; }
  8250. + { { echo "$as_me:$LINENO: error: The lirc driver needs the lirc client library" >&5
  8251. +echo "$as_me: error: The lirc driver needs the lirc client library" >&2;}
  8252. + { (exit 1); exit 1; }; }
  8253. fi
  8254. DRIVERS="$DRIVERS lircin.o"
  8255. - cat >> confdefs.h <<\EOF
  8256. + cat >>confdefs.h <<\_ACEOF
  8257. #define LIRCIN_DRV 1
  8258. -EOF
  8259. +_ACEOF
  8260. ;;
  8261. - *)
  8262. - { echo "configure: error: Unknown driver $driver" 1>&2; exit 1; }
  8263. + *)
  8264. + { { echo "$as_me:$LINENO: error: Unknown driver $driver" >&5
  8265. +echo "$as_me: error: Unknown driver $driver" >&2;}
  8266. + { (exit 1); exit 1; }; }
  8267. ;;
  8268. esac
  8269. done
  8270. @@ -3315,396 +6668,1187 @@
  8271. -trap '' 1 2 15
  8272. -cat > confcache <<\EOF
  8273. + ac_config_files="$ac_config_files Makefile shared/Makefile server/Makefile server/drivers/Makefile clients/Makefile clients/lcdproc/Makefile clients/examples/Makefile clients/headlines/Makefile docs/Makefile"
  8274. +cat >confcache <<\_ACEOF
  8275. # This file is a shell script that caches the results of configure
  8276. # tests run on this system so they can be shared between configure
  8277. -# scripts and configure runs. It is not useful on other systems.
  8278. -# If it contains results you don't want to keep, you may remove or edit it.
  8279. +# scripts and configure runs, see configure's option --config-cache.
  8280. +# It is not useful on other systems. If it contains results you don't
  8281. +# want to keep, you may remove or edit it.
  8282. #
  8283. -# By default, configure uses ./config.cache as the cache file,
  8284. -# creating it if it does not exist already. You can give configure
  8285. -# the --cache-file=FILE option to use a different cache file; that is
  8286. -# what configure does when it calls configure scripts in
  8287. -# subdirectories, so they share the cache.
  8288. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  8289. -# config.status only pays attention to the cache file if you give it the
  8290. -# --recheck option to rerun configure.
  8291. +# config.status only pays attention to the cache file if you give it
  8292. +# the --recheck option to rerun configure.
  8293. #
  8294. -EOF
  8295. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  8296. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  8297. +# following values.
  8298. +
  8299. +_ACEOF
  8300. +
  8301. # The following way of writing the cache mishandles newlines in values,
  8302. # but we know of no workaround that is simple, portable, and efficient.
  8303. # So, don't put newlines in cache variables' values.
  8304. # Ultrix sh set writes to stderr and can't be redirected directly,
  8305. # and sets the high bit in the cache file unless we assign to the vars.
  8306. -(set) 2>&1 |
  8307. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8308. - *ac_space=\ *)
  8309. - # `set' does not quote correctly, so add quotes (double-quote substitution
  8310. - # turns \\\\ into \\, and sed turns \\ into \).
  8311. - sed -n \
  8312. - -e "s/'/'\\\\''/g" \
  8313. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  8314. - ;;
  8315. - *)
  8316. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  8317. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  8318. - ;;
  8319. - esac >> confcache
  8320. -if cmp -s $cache_file confcache; then
  8321. - :
  8322. -else
  8323. +{
  8324. + (set) 2>&1 |
  8325. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8326. + *ac_space=\ *)
  8327. + # `set' does not quote correctly, so add quotes (double-quote
  8328. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  8329. + sed -n \
  8330. + "s/'/'\\\\''/g;
  8331. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8332. + ;;
  8333. + *)
  8334. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  8335. + sed -n \
  8336. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8337. + ;;
  8338. + esac;
  8339. +} |
  8340. + sed '
  8341. + t clear
  8342. + : clear
  8343. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8344. + t end
  8345. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8346. + : end' >>confcache
  8347. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8348. if test -w $cache_file; then
  8349. - echo "updating cache $cache_file"
  8350. - cat confcache > $cache_file
  8351. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8352. + cat confcache >$cache_file
  8353. else
  8354. echo "not updating unwritable cache $cache_file"
  8355. fi
  8356. fi
  8357. rm -f confcache
  8358. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  8359. -
  8360. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8361. # Let make expand exec_prefix.
  8362. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8363. -# Any assignment to VPATH causes Sun make to only execute
  8364. -# the first set of double-colon rules, so remove it if not needed.
  8365. -# If there is a colon in the path, we need to keep it.
  8366. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  8367. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8368. +# trailing colons and then remove the whole line if VPATH becomes empty
  8369. +# (actually we leave an empty line to preserve line numbers).
  8370. if test "x$srcdir" = x.; then
  8371. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  8372. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8373. +s/:*\$(srcdir):*/:/;
  8374. +s/:*\${srcdir}:*/:/;
  8375. +s/:*@srcdir@:*/:/;
  8376. +s/^\([^=]*=[ ]*\):*/\1/;
  8377. +s/:*$//;
  8378. +s/^[^=]*=[ ]*$//;
  8379. +}'
  8380. fi
  8381. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  8382. -
  8383. DEFS=-DHAVE_CONFIG_H
  8384. -# Without the "./", some shells look in PATH for config.status.
  8385. -: ${CONFIG_STATUS=./config.status}
  8386. +ac_libobjs=
  8387. +ac_ltlibobjs=
  8388. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8389. + # 1. Remove the extension, and $U if already installed.
  8390. + ac_i=`echo "$ac_i" |
  8391. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8392. + # 2. Add them.
  8393. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8394. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8395. +done
  8396. +LIBOBJS=$ac_libobjs
  8397. +
  8398. +LTLIBOBJS=$ac_ltlibobjs
  8399. -echo creating $CONFIG_STATUS
  8400. -rm -f $CONFIG_STATUS
  8401. -cat > $CONFIG_STATUS <<EOF
  8402. -#! /bin/sh
  8403. -# Generated automatically by configure.
  8404. +
  8405. +
  8406. +: ${CONFIG_STATUS=./config.status}
  8407. +ac_clean_files_save=$ac_clean_files
  8408. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8409. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8410. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8411. +cat >$CONFIG_STATUS <<_ACEOF
  8412. +#! $SHELL
  8413. +# Generated by $as_me.
  8414. # Run this file to recreate the current configuration.
  8415. -# This directory was configured as follows,
  8416. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8417. -#
  8418. -# $0 $ac_configure_args
  8419. -#
  8420. # Compiler output produced by configure, useful for debugging
  8421. -# configure, is in ./config.log if it exists.
  8422. +# configure, is in config.log if it exists.
  8423. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  8424. -for ac_option
  8425. +debug=false
  8426. +ac_cs_recheck=false
  8427. +ac_cs_silent=false
  8428. +SHELL=\${CONFIG_SHELL-$SHELL}
  8429. +_ACEOF
  8430. +
  8431. +cat >>$CONFIG_STATUS <<\_ACEOF
  8432. +## --------------------- ##
  8433. +## M4sh Initialization. ##
  8434. +## --------------------- ##
  8435. +
  8436. +# Be Bourne compatible
  8437. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8438. + emulate sh
  8439. + NULLCMD=:
  8440. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8441. + # is contrary to our usage. Disable this feature.
  8442. + alias -g '${1+"$@"}'='"$@"'
  8443. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8444. + set -o posix
  8445. +fi
  8446. +
  8447. +# Support unset when possible.
  8448. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  8449. + as_unset=unset
  8450. +else
  8451. + as_unset=false
  8452. +fi
  8453. +
  8454. +
  8455. +# Work around bugs in pre-3.0 UWIN ksh.
  8456. +$as_unset ENV MAIL MAILPATH
  8457. +PS1='$ '
  8458. +PS2='> '
  8459. +PS4='+ '
  8460. +
  8461. +# NLS nuisances.
  8462. +for as_var in \
  8463. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8464. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8465. + LC_TELEPHONE LC_TIME
  8466. +do
  8467. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8468. + eval $as_var=C; export $as_var
  8469. + else
  8470. + $as_unset $as_var
  8471. + fi
  8472. +done
  8473. +
  8474. +# Required to use basename.
  8475. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8476. + as_expr=expr
  8477. +else
  8478. + as_expr=false
  8479. +fi
  8480. +
  8481. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8482. + as_basename=basename
  8483. +else
  8484. + as_basename=false
  8485. +fi
  8486. +
  8487. +
  8488. +# Name of the executable.
  8489. +as_me=`$as_basename "$0" ||
  8490. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8491. + X"$0" : 'X\(//\)$' \| \
  8492. + X"$0" : 'X\(/\)$' \| \
  8493. + . : '\(.\)' 2>/dev/null ||
  8494. +echo X/"$0" |
  8495. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8496. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  8497. + /^X\/\(\/\).*/{ s//\1/; q; }
  8498. + s/.*/./; q'`
  8499. +
  8500. +
  8501. +# PATH needs CR, and LINENO needs CR and PATH.
  8502. +# Avoid depending upon Character Ranges.
  8503. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8504. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8505. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8506. +as_cr_digits='0123456789'
  8507. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8508. +
  8509. +# The user is always right.
  8510. +if test "${PATH_SEPARATOR+set}" != set; then
  8511. + echo "#! /bin/sh" >conf$$.sh
  8512. + echo "exit 0" >>conf$$.sh
  8513. + chmod +x conf$$.sh
  8514. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8515. + PATH_SEPARATOR=';'
  8516. + else
  8517. + PATH_SEPARATOR=:
  8518. + fi
  8519. + rm -f conf$$.sh
  8520. +fi
  8521. +
  8522. +
  8523. + as_lineno_1=$LINENO
  8524. + as_lineno_2=$LINENO
  8525. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8526. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8527. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  8528. + # Find who we are. Look in the path if we contain no path at all
  8529. + # relative or not.
  8530. + case $0 in
  8531. + *[\\/]* ) as_myself=$0 ;;
  8532. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8533. +for as_dir in $PATH
  8534. +do
  8535. + IFS=$as_save_IFS
  8536. + test -z "$as_dir" && as_dir=.
  8537. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8538. +done
  8539. +
  8540. + ;;
  8541. + esac
  8542. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  8543. + # in which case we are not to be found in the path.
  8544. + if test "x$as_myself" = x; then
  8545. + as_myself=$0
  8546. + fi
  8547. + if test ! -f "$as_myself"; then
  8548. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8549. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8550. + { (exit 1); exit 1; }; }
  8551. + fi
  8552. + case $CONFIG_SHELL in
  8553. + '')
  8554. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8555. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8556. +do
  8557. + IFS=$as_save_IFS
  8558. + test -z "$as_dir" && as_dir=.
  8559. + for as_base in sh bash ksh sh5; do
  8560. + case $as_dir in
  8561. + /*)
  8562. + if ("$as_dir/$as_base" -c '
  8563. + as_lineno_1=$LINENO
  8564. + as_lineno_2=$LINENO
  8565. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8566. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8567. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8568. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8569. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8570. + CONFIG_SHELL=$as_dir/$as_base
  8571. + export CONFIG_SHELL
  8572. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8573. + fi;;
  8574. + esac
  8575. + done
  8576. +done
  8577. +;;
  8578. + esac
  8579. +
  8580. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8581. + # uniformly replaced by the line number. The first 'sed' inserts a
  8582. + # line-number line before each line; the second 'sed' does the real
  8583. + # work. The second script uses 'N' to pair each line-number line
  8584. + # with the numbered line, and appends trailing '-' during
  8585. + # substitution so that $LINENO is not a special case at line end.
  8586. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8587. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8588. + sed '=' <$as_myself |
  8589. + sed '
  8590. + N
  8591. + s,$,-,
  8592. + : loop
  8593. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8594. + t loop
  8595. + s,-$,,
  8596. + s,^['$as_cr_digits']*\n,,
  8597. + ' >$as_me.lineno &&
  8598. + chmod +x $as_me.lineno ||
  8599. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8600. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8601. + { (exit 1); exit 1; }; }
  8602. +
  8603. + # Don't try to exec as it changes $[0], causing all sort of problems
  8604. + # (the dirname of $[0] is not the place where we might find the
  8605. + # original and so on. Autoconf is especially sensible to this).
  8606. + . ./$as_me.lineno
  8607. + # Exit status is that of the last command.
  8608. + exit
  8609. +}
  8610. +
  8611. +
  8612. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8613. + *c*,-n*) ECHO_N= ECHO_C='
  8614. +' ECHO_T=' ' ;;
  8615. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8616. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8617. +esac
  8618. +
  8619. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8620. + as_expr=expr
  8621. +else
  8622. + as_expr=false
  8623. +fi
  8624. +
  8625. +rm -f conf$$ conf$$.exe conf$$.file
  8626. +echo >conf$$.file
  8627. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  8628. + # We could just check for DJGPP; but this test a) works b) is more generic
  8629. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8630. + if test -f conf$$.exe; then
  8631. + # Don't use ln at all; we don't have any links
  8632. + as_ln_s='cp -p'
  8633. + else
  8634. + as_ln_s='ln -s'
  8635. + fi
  8636. +elif ln conf$$.file conf$$ 2>/dev/null; then
  8637. + as_ln_s=ln
  8638. +else
  8639. + as_ln_s='cp -p'
  8640. +fi
  8641. +rm -f conf$$ conf$$.exe conf$$.file
  8642. +
  8643. +if mkdir -p . 2>/dev/null; then
  8644. + as_mkdir_p=:
  8645. +else
  8646. + as_mkdir_p=false
  8647. +fi
  8648. +
  8649. +as_executable_p="test -f"
  8650. +
  8651. +# Sed expression to map a string onto a valid CPP name.
  8652. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  8653. +
  8654. +# Sed expression to map a string onto a valid variable name.
  8655. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  8656. +
  8657. +
  8658. +# IFS
  8659. +# We need space, tab and new line, in precisely that order.
  8660. +as_nl='
  8661. +'
  8662. +IFS=" $as_nl"
  8663. +
  8664. +# CDPATH.
  8665. +$as_unset CDPATH
  8666. +
  8667. +exec 6>&1
  8668. +
  8669. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  8670. +# report actual input values of CONFIG_FILES etc. instead of their
  8671. +# values after options handling. Logging --version etc. is OK.
  8672. +exec 5>>config.log
  8673. +{
  8674. + echo
  8675. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8676. +## Running $as_me. ##
  8677. +_ASBOX
  8678. +} >&5
  8679. +cat >&5 <<_CSEOF
  8680. +
  8681. +This file was extended by $as_me, which was
  8682. +generated by GNU Autoconf 2.57. Invocation command line was
  8683. +
  8684. + CONFIG_FILES = $CONFIG_FILES
  8685. + CONFIG_HEADERS = $CONFIG_HEADERS
  8686. + CONFIG_LINKS = $CONFIG_LINKS
  8687. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  8688. + $ $0 $@
  8689. +
  8690. +_CSEOF
  8691. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8692. +echo >&5
  8693. +_ACEOF
  8694. +
  8695. +# Files that config.status was made for.
  8696. +if test -n "$ac_config_files"; then
  8697. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8698. +fi
  8699. +
  8700. +if test -n "$ac_config_headers"; then
  8701. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8702. +fi
  8703. +
  8704. +if test -n "$ac_config_links"; then
  8705. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8706. +fi
  8707. +
  8708. +if test -n "$ac_config_commands"; then
  8709. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8710. +fi
  8711. +
  8712. +cat >>$CONFIG_STATUS <<\_ACEOF
  8713. +
  8714. +ac_cs_usage="\
  8715. +\`$as_me' instantiates files from templates according to the
  8716. +current configuration.
  8717. +
  8718. +Usage: $0 [OPTIONS] [FILE]...
  8719. +
  8720. + -h, --help print this help, then exit
  8721. + -V, --version print version number, then exit
  8722. + -q, --quiet do not print progress messages
  8723. + -d, --debug don't remove temporary files
  8724. + --recheck update $as_me by reconfiguring in the same conditions
  8725. + --file=FILE[:TEMPLATE]
  8726. + instantiate the configuration file FILE
  8727. + --header=FILE[:TEMPLATE]
  8728. + instantiate the configuration header FILE
  8729. +
  8730. +Configuration files:
  8731. +$config_files
  8732. +
  8733. +Configuration headers:
  8734. +$config_headers
  8735. +
  8736. +Configuration commands:
  8737. +$config_commands
  8738. +
  8739. +Report bugs to <bug-autoconf@gnu.org>."
  8740. +_ACEOF
  8741. +
  8742. +cat >>$CONFIG_STATUS <<_ACEOF
  8743. +ac_cs_version="\\
  8744. +config.status
  8745. +configured by $0, generated by GNU Autoconf 2.57,
  8746. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8747. +
  8748. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  8749. +Free Software Foundation, Inc.
  8750. +This config.status script is free software; the Free Software Foundation
  8751. +gives unlimited permission to copy, distribute and modify it."
  8752. +srcdir=$srcdir
  8753. +INSTALL="$INSTALL"
  8754. +_ACEOF
  8755. +
  8756. +cat >>$CONFIG_STATUS <<\_ACEOF
  8757. +# If no file are specified by the user, then we need to provide default
  8758. +# value. By we need to know if files were specified by the user.
  8759. +ac_need_defaults=:
  8760. +while test $# != 0
  8761. do
  8762. - case "\$ac_option" in
  8763. + case $1 in
  8764. + --*=*)
  8765. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8766. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8767. + ac_shift=:
  8768. + ;;
  8769. + -*)
  8770. + ac_option=$1
  8771. + ac_optarg=$2
  8772. + ac_shift=shift
  8773. + ;;
  8774. + *) # This is not an option, so the user has probably given explicit
  8775. + # arguments.
  8776. + ac_option=$1
  8777. + ac_need_defaults=false;;
  8778. + esac
  8779. +
  8780. + case $ac_option in
  8781. + # Handling of the options.
  8782. +_ACEOF
  8783. +cat >>$CONFIG_STATUS <<\_ACEOF
  8784. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8785. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  8786. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  8787. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  8788. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  8789. - exit 0 ;;
  8790. - -help | --help | --hel | --he | --h)
  8791. - echo "\$ac_cs_usage"; exit 0 ;;
  8792. - *) echo "\$ac_cs_usage"; exit 1 ;;
  8793. + ac_cs_recheck=: ;;
  8794. + --version | --vers* | -V )
  8795. + echo "$ac_cs_version"; exit 0 ;;
  8796. + --he | --h)
  8797. + # Conflict between --help and --header
  8798. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8799. +Try \`$0 --help' for more information." >&5
  8800. +echo "$as_me: error: ambiguous option: $1
  8801. +Try \`$0 --help' for more information." >&2;}
  8802. + { (exit 1); exit 1; }; };;
  8803. + --help | --hel | -h )
  8804. + echo "$ac_cs_usage"; exit 0 ;;
  8805. + --debug | --d* | -d )
  8806. + debug=: ;;
  8807. + --file | --fil | --fi | --f )
  8808. + $ac_shift
  8809. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8810. + ac_need_defaults=false;;
  8811. + --header | --heade | --head | --hea )
  8812. + $ac_shift
  8813. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8814. + ac_need_defaults=false;;
  8815. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8816. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8817. + ac_cs_silent=: ;;
  8818. +
  8819. + # This is an error.
  8820. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8821. +Try \`$0 --help' for more information." >&5
  8822. +echo "$as_me: error: unrecognized option: $1
  8823. +Try \`$0 --help' for more information." >&2;}
  8824. + { (exit 1); exit 1; }; } ;;
  8825. +
  8826. + *) ac_config_targets="$ac_config_targets $1" ;;
  8827. +
  8828. esac
  8829. + shift
  8830. done
  8831. -ac_given_srcdir=$srcdir
  8832. -ac_given_INSTALL="$INSTALL"
  8833. +ac_configure_extra_args=
  8834. -trap 'rm -fr `echo "Makefile
  8835. - shared/Makefile
  8836. - server/Makefile
  8837. - server/drivers/Makefile
  8838. - clients/Makefile
  8839. - clients/lcdproc/Makefile
  8840. - clients/examples/Makefile
  8841. - clients/headlines/Makefile
  8842. - docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  8843. -EOF
  8844. -cat >> $CONFIG_STATUS <<EOF
  8845. -
  8846. -# Protect against being on the right side of a sed subst in config.status.
  8847. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  8848. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  8849. -$ac_vpsub
  8850. -$extrasub
  8851. -s%@SHELL@%$SHELL%g
  8852. -s%@CFLAGS@%$CFLAGS%g
  8853. -s%@CPPFLAGS@%$CPPFLAGS%g
  8854. -s%@CXXFLAGS@%$CXXFLAGS%g
  8855. -s%@FFLAGS@%$FFLAGS%g
  8856. -s%@DEFS@%$DEFS%g
  8857. -s%@LDFLAGS@%$LDFLAGS%g
  8858. -s%@LIBS@%$LIBS%g
  8859. -s%@exec_prefix@%$exec_prefix%g
  8860. -s%@prefix@%$prefix%g
  8861. -s%@program_transform_name@%$program_transform_name%g
  8862. -s%@bindir@%$bindir%g
  8863. -s%@sbindir@%$sbindir%g
  8864. -s%@libexecdir@%$libexecdir%g
  8865. -s%@datadir@%$datadir%g
  8866. -s%@sysconfdir@%$sysconfdir%g
  8867. -s%@sharedstatedir@%$sharedstatedir%g
  8868. -s%@localstatedir@%$localstatedir%g
  8869. -s%@libdir@%$libdir%g
  8870. -s%@includedir@%$includedir%g
  8871. -s%@oldincludedir@%$oldincludedir%g
  8872. -s%@infodir@%$infodir%g
  8873. -s%@mandir@%$mandir%g
  8874. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  8875. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  8876. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  8877. -s%@PACKAGE@%$PACKAGE%g
  8878. -s%@VERSION@%$VERSION%g
  8879. -s%@ACLOCAL@%$ACLOCAL%g
  8880. -s%@AUTOCONF@%$AUTOCONF%g
  8881. -s%@AUTOMAKE@%$AUTOMAKE%g
  8882. -s%@AUTOHEADER@%$AUTOHEADER%g
  8883. -s%@MAKEINFO@%$MAKEINFO%g
  8884. -s%@SET_MAKE@%$SET_MAKE%g
  8885. -s%@host@%$host%g
  8886. -s%@host_alias@%$host_alias%g
  8887. -s%@host_cpu@%$host_cpu%g
  8888. -s%@host_vendor@%$host_vendor%g
  8889. -s%@host_os@%$host_os%g
  8890. -s%@CC@%$CC%g
  8891. -s%@CPP@%$CPP%g
  8892. -s%@RANLIB@%$RANLIB%g
  8893. -s%@LIBCURSES@%$LIBCURSES%g
  8894. -s%@LIBIRMAN@%$LIBIRMAN%g
  8895. -s%@LIBLIRC_CLIENT@%$LIBLIRC_CLIENT%g
  8896. -s%@DRIVERS@%$DRIVERS%g
  8897. +if $ac_cs_silent; then
  8898. + exec 6>/dev/null
  8899. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  8900. +fi
  8901. +
  8902. +_ACEOF
  8903. +cat >>$CONFIG_STATUS <<_ACEOF
  8904. +if \$ac_cs_recheck; then
  8905. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8906. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8907. +fi
  8908. +
  8909. +_ACEOF
  8910. +
  8911. +cat >>$CONFIG_STATUS <<_ACEOF
  8912. +#
  8913. +# INIT-COMMANDS section.
  8914. +#
  8915. +
  8916. +
  8917. +
  8918. +_ACEOF
  8919. +
  8920. +
  8921. +
  8922. +cat >>$CONFIG_STATUS <<\_ACEOF
  8923. +for ac_config_target in $ac_config_targets
  8924. +do
  8925. + case "$ac_config_target" in
  8926. + # Handling of arguments.
  8927. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8928. + "shared/Makefile" ) CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
  8929. + "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  8930. + "server/drivers/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/drivers/Makefile" ;;
  8931. + "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
  8932. + "clients/lcdproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lcdproc/Makefile" ;;
  8933. + "clients/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/examples/Makefile" ;;
  8934. + "clients/headlines/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/headlines/Makefile" ;;
  8935. + "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  8936. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8937. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8938. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8939. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8940. + { (exit 1); exit 1; }; };;
  8941. + esac
  8942. +done
  8943. +
  8944. +# If the user did not use the arguments to specify the items to instantiate,
  8945. +# then the envvar interface is used. Set only those that are not.
  8946. +# We use the long form for the default assignment because of an extremely
  8947. +# bizarre bug on SunOS 4.1.3.
  8948. +if $ac_need_defaults; then
  8949. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8950. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8951. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8952. +fi
  8953. +
  8954. +# Have a temporary directory for convenience. Make it in the build tree
  8955. +# simply because there is no reason to put it here, and in addition,
  8956. +# creating and moving files from /tmp can sometimes cause problems.
  8957. +# Create a temporary directory, and hook for its removal unless debugging.
  8958. +$debug ||
  8959. +{
  8960. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8961. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  8962. +}
  8963. +# Create a (secure) tmp directory for tmp files.
  8964. +
  8965. +{
  8966. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8967. + test -n "$tmp" && test -d "$tmp"
  8968. +} ||
  8969. +{
  8970. + tmp=./confstat$$-$RANDOM
  8971. + (umask 077 && mkdir $tmp)
  8972. +} ||
  8973. +{
  8974. + echo "$me: cannot create a temporary directory in ." >&2
  8975. + { (exit 1); exit 1; }
  8976. +}
  8977. +
  8978. +_ACEOF
  8979. +
  8980. +cat >>$CONFIG_STATUS <<_ACEOF
  8981. +
  8982. +#
  8983. +# CONFIG_FILES section.
  8984. +#
  8985. +
  8986. +# No need to generate the scripts if there are no CONFIG_FILES.
  8987. +# This happens for instance when ./config.status config.h
  8988. +if test -n "\$CONFIG_FILES"; then
  8989. + # Protect against being on the right side of a sed subst in config.status.
  8990. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8991. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8992. +s,@SHELL@,$SHELL,;t t
  8993. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8994. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8995. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8996. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8997. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8998. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8999. +s,@exec_prefix@,$exec_prefix,;t t
  9000. +s,@prefix@,$prefix,;t t
  9001. +s,@program_transform_name@,$program_transform_name,;t t
  9002. +s,@bindir@,$bindir,;t t
  9003. +s,@sbindir@,$sbindir,;t t
  9004. +s,@libexecdir@,$libexecdir,;t t
  9005. +s,@datadir@,$datadir,;t t
  9006. +s,@sysconfdir@,$sysconfdir,;t t
  9007. +s,@sharedstatedir@,$sharedstatedir,;t t
  9008. +s,@localstatedir@,$localstatedir,;t t
  9009. +s,@libdir@,$libdir,;t t
  9010. +s,@includedir@,$includedir,;t t
  9011. +s,@oldincludedir@,$oldincludedir,;t t
  9012. +s,@infodir@,$infodir,;t t
  9013. +s,@mandir@,$mandir,;t t
  9014. +s,@build_alias@,$build_alias,;t t
  9015. +s,@host_alias@,$host_alias,;t t
  9016. +s,@target_alias@,$target_alias,;t t
  9017. +s,@DEFS@,$DEFS,;t t
  9018. +s,@ECHO_C@,$ECHO_C,;t t
  9019. +s,@ECHO_N@,$ECHO_N,;t t
  9020. +s,@ECHO_T@,$ECHO_T,;t t
  9021. +s,@LIBS@,$LIBS,;t t
  9022. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9023. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9024. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9025. +s,@PACKAGE@,$PACKAGE,;t t
  9026. +s,@VERSION@,$VERSION,;t t
  9027. +s,@ACLOCAL@,$ACLOCAL,;t t
  9028. +s,@AUTOCONF@,$AUTOCONF,;t t
  9029. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  9030. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  9031. +s,@MAKEINFO@,$MAKEINFO,;t t
  9032. +s,@SET_MAKE@,$SET_MAKE,;t t
  9033. +s,@build@,$build,;t t
  9034. +s,@build_cpu@,$build_cpu,;t t
  9035. +s,@build_vendor@,$build_vendor,;t t
  9036. +s,@build_os@,$build_os,;t t
  9037. +s,@host@,$host,;t t
  9038. +s,@host_cpu@,$host_cpu,;t t
  9039. +s,@host_vendor@,$host_vendor,;t t
  9040. +s,@host_os@,$host_os,;t t
  9041. +s,@CC@,$CC,;t t
  9042. +s,@CFLAGS@,$CFLAGS,;t t
  9043. +s,@LDFLAGS@,$LDFLAGS,;t t
  9044. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  9045. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  9046. +s,@EXEEXT@,$EXEEXT,;t t
  9047. +s,@OBJEXT@,$OBJEXT,;t t
  9048. +s,@CPP@,$CPP,;t t
  9049. +s,@RANLIB@,$RANLIB,;t t
  9050. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9051. +s,@EGREP@,$EGREP,;t t
  9052. +s,@LIBCURSES@,$LIBCURSES,;t t
  9053. +s,@LIBIRMAN@,$LIBIRMAN,;t t
  9054. +s,@LIBLIRC_CLIENT@,$LIBLIRC_CLIENT,;t t
  9055. +s,@DRIVERS@,$DRIVERS,;t t
  9056. +s,@LIBOBJS@,$LIBOBJS,;t t
  9057. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9058. CEOF
  9059. -EOF
  9060. -cat >> $CONFIG_STATUS <<\EOF
  9061. +_ACEOF
  9062. -# Split the substitutions into bite-sized pieces for seds with
  9063. -# small command number limits, like on Digital OSF/1 and HP-UX.
  9064. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  9065. -ac_file=1 # Number of current file.
  9066. -ac_beg=1 # First line for current file.
  9067. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  9068. -ac_more_lines=:
  9069. -ac_sed_cmds=""
  9070. -while $ac_more_lines; do
  9071. - if test $ac_beg -gt 1; then
  9072. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  9073. - else
  9074. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  9075. - fi
  9076. - if test ! -s conftest.s$ac_file; then
  9077. - ac_more_lines=false
  9078. - rm -f conftest.s$ac_file
  9079. - else
  9080. - if test -z "$ac_sed_cmds"; then
  9081. - ac_sed_cmds="sed -f conftest.s$ac_file"
  9082. + cat >>$CONFIG_STATUS <<\_ACEOF
  9083. + # Split the substitutions into bite-sized pieces for seds with
  9084. + # small command number limits, like on Digital OSF/1 and HP-UX.
  9085. + ac_max_sed_lines=48
  9086. + ac_sed_frag=1 # Number of current file.
  9087. + ac_beg=1 # First line for current file.
  9088. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  9089. + ac_more_lines=:
  9090. + ac_sed_cmds=
  9091. + while $ac_more_lines; do
  9092. + if test $ac_beg -gt 1; then
  9093. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9094. + else
  9095. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9096. + fi
  9097. + if test ! -s $tmp/subs.frag; then
  9098. + ac_more_lines=false
  9099. else
  9100. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  9101. + # The purpose of the label and of the branching condition is to
  9102. + # speed up the sed processing (if there are no `@' at all, there
  9103. + # is no need to browse any of the substitutions).
  9104. + # These are the two extra sed commands mentioned above.
  9105. + (echo ':t
  9106. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9107. + if test -z "$ac_sed_cmds"; then
  9108. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9109. + else
  9110. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9111. + fi
  9112. + ac_sed_frag=`expr $ac_sed_frag + 1`
  9113. + ac_beg=$ac_end
  9114. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  9115. fi
  9116. - ac_file=`expr $ac_file + 1`
  9117. - ac_beg=$ac_end
  9118. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  9119. - fi
  9120. -done
  9121. -if test -z "$ac_sed_cmds"; then
  9122. - ac_sed_cmds=cat
  9123. -fi
  9124. -EOF
  9125. -
  9126. -cat >> $CONFIG_STATUS <<EOF
  9127. -
  9128. -CONFIG_FILES=\${CONFIG_FILES-"Makefile
  9129. - shared/Makefile
  9130. - server/Makefile
  9131. - server/drivers/Makefile
  9132. - clients/Makefile
  9133. - clients/lcdproc/Makefile
  9134. - clients/examples/Makefile
  9135. - clients/headlines/Makefile
  9136. - docs/Makefile"}
  9137. -EOF
  9138. -cat >> $CONFIG_STATUS <<\EOF
  9139. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  9140. + done
  9141. + if test -z "$ac_sed_cmds"; then
  9142. + ac_sed_cmds=cat
  9143. + fi
  9144. +fi # test -n "$CONFIG_FILES"
  9145. +
  9146. +_ACEOF
  9147. +cat >>$CONFIG_STATUS <<\_ACEOF
  9148. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9149. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9150. - case "$ac_file" in
  9151. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9152. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9153. - *) ac_file_in="${ac_file}.in" ;;
  9154. + case $ac_file in
  9155. + - | *:- | *:-:* ) # input from stdin
  9156. + cat >$tmp/stdin
  9157. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9158. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9159. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9160. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9161. + * ) ac_file_in=$ac_file.in ;;
  9162. esac
  9163. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  9164. -
  9165. - # Remove last slash and all that follows it. Not all systems have dirname.
  9166. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9167. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9168. - # The file is in a subdirectory.
  9169. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9170. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  9171. - # A "../" for each directory in $ac_dir_suffix.
  9172. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  9173. - else
  9174. - ac_dir_suffix= ac_dots=
  9175. - fi
  9176. -
  9177. - case "$ac_given_srcdir" in
  9178. - .) srcdir=.
  9179. - if test -z "$ac_dots"; then top_srcdir=.
  9180. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  9181. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  9182. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9183. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9184. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9185. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9186. + X"$ac_file" : 'X\(//\)$' \| \
  9187. + X"$ac_file" : 'X\(/\)' \| \
  9188. + . : '\(.\)' 2>/dev/null ||
  9189. +echo X"$ac_file" |
  9190. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9191. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9192. + /^X\(\/\/\)$/{ s//\1/; q; }
  9193. + /^X\(\/\).*/{ s//\1/; q; }
  9194. + s/.*/./; q'`
  9195. + { if $as_mkdir_p; then
  9196. + mkdir -p "$ac_dir"
  9197. + else
  9198. + as_dir="$ac_dir"
  9199. + as_dirs=
  9200. + while test ! -d "$as_dir"; do
  9201. + as_dirs="$as_dir $as_dirs"
  9202. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9203. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9204. + X"$as_dir" : 'X\(//\)[^/]' \| \
  9205. + X"$as_dir" : 'X\(//\)$' \| \
  9206. + X"$as_dir" : 'X\(/\)' \| \
  9207. + . : '\(.\)' 2>/dev/null ||
  9208. +echo X"$as_dir" |
  9209. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9210. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9211. + /^X\(\/\/\)$/{ s//\1/; q; }
  9212. + /^X\(\/\).*/{ s//\1/; q; }
  9213. + s/.*/./; q'`
  9214. + done
  9215. + test ! -n "$as_dirs" || mkdir $as_dirs
  9216. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9217. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9218. + { (exit 1); exit 1; }; }; }
  9219. +
  9220. + ac_builddir=.
  9221. +
  9222. +if test "$ac_dir" != .; then
  9223. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9224. + # A "../" for each directory in $ac_dir_suffix.
  9225. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9226. +else
  9227. + ac_dir_suffix= ac_top_builddir=
  9228. +fi
  9229. +
  9230. +case $srcdir in
  9231. + .) # No --srcdir option. We are building in place.
  9232. + ac_srcdir=.
  9233. + if test -z "$ac_top_builddir"; then
  9234. + ac_top_srcdir=.
  9235. + else
  9236. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9237. + fi ;;
  9238. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9239. + ac_srcdir=$srcdir$ac_dir_suffix;
  9240. + ac_top_srcdir=$srcdir ;;
  9241. *) # Relative path.
  9242. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  9243. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9244. - esac
  9245. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9246. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9247. +esac
  9248. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9249. +# absolute.
  9250. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9251. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9252. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9253. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9254. - case "$ac_given_INSTALL" in
  9255. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  9256. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  9257. - esac
  9258. - echo creating "$ac_file"
  9259. - rm -f "$ac_file"
  9260. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  9261. - case "$ac_file" in
  9262. - *Makefile*) ac_comsub="1i\\
  9263. -# $configure_input" ;;
  9264. - *) ac_comsub= ;;
  9265. + case $INSTALL in
  9266. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9267. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9268. esac
  9269. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9270. - sed -e "$ac_comsub
  9271. -s%@configure_input@%$configure_input%g
  9272. -s%@srcdir@%$srcdir%g
  9273. -s%@top_srcdir@%$top_srcdir%g
  9274. -s%@INSTALL@%$INSTALL%g
  9275. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  9276. -fi; done
  9277. -rm -f conftest.s*
  9278. + if test x"$ac_file" != x-; then
  9279. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  9280. +echo "$as_me: creating $ac_file" >&6;}
  9281. + rm -f "$ac_file"
  9282. + fi
  9283. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9284. + # use $as_me), people would be surprised to read:
  9285. + # /* config.h. Generated by config.status. */
  9286. + if test x"$ac_file" = x-; then
  9287. + configure_input=
  9288. + else
  9289. + configure_input="$ac_file. "
  9290. + fi
  9291. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  9292. + sed 's,.*/,,'` by configure."
  9293. +
  9294. + # First look for the input files in the build tree, otherwise in the
  9295. + # src tree.
  9296. + ac_file_inputs=`IFS=:
  9297. + for f in $ac_file_in; do
  9298. + case $f in
  9299. + -) echo $tmp/stdin ;;
  9300. + [\\/$]*)
  9301. + # Absolute (can't be DOS-style, as IFS=:)
  9302. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9303. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9304. + { (exit 1); exit 1; }; }
  9305. + echo $f;;
  9306. + *) # Relative
  9307. + if test -f "$f"; then
  9308. + # Build tree
  9309. + echo $f
  9310. + elif test -f "$srcdir/$f"; then
  9311. + # Source tree
  9312. + echo $srcdir/$f
  9313. + else
  9314. + # /dev/null tree
  9315. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9316. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9317. + { (exit 1); exit 1; }; }
  9318. + fi;;
  9319. + esac
  9320. + done` || { (exit 1); exit 1; }
  9321. +_ACEOF
  9322. +cat >>$CONFIG_STATUS <<_ACEOF
  9323. + sed "$ac_vpsub
  9324. +$extrasub
  9325. +_ACEOF
  9326. +cat >>$CONFIG_STATUS <<\_ACEOF
  9327. +:t
  9328. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9329. +s,@configure_input@,$configure_input,;t t
  9330. +s,@srcdir@,$ac_srcdir,;t t
  9331. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9332. +s,@top_srcdir@,$ac_top_srcdir,;t t
  9333. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9334. +s,@builddir@,$ac_builddir,;t t
  9335. +s,@abs_builddir@,$ac_abs_builddir,;t t
  9336. +s,@top_builddir@,$ac_top_builddir,;t t
  9337. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9338. +s,@INSTALL@,$ac_INSTALL,;t t
  9339. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9340. + rm -f $tmp/stdin
  9341. + if test x"$ac_file" != x-; then
  9342. + mv $tmp/out $ac_file
  9343. + else
  9344. + cat $tmp/out
  9345. + rm -f $tmp/out
  9346. + fi
  9347. +
  9348. +done
  9349. +_ACEOF
  9350. +cat >>$CONFIG_STATUS <<\_ACEOF
  9351. +
  9352. +#
  9353. +# CONFIG_HEADER section.
  9354. +#
  9355. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9356. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9357. #
  9358. # ac_d sets the value in "#define NAME VALUE" lines.
  9359. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9360. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  9361. -ac_dC='\3'
  9362. -ac_dD='%g'
  9363. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  9364. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9365. -ac_uB='\([ ]\)%\1#\2define\3'
  9366. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9367. +ac_dB='[ ].*$,\1#\2'
  9368. +ac_dC=' '
  9369. +ac_dD=',;t'
  9370. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9371. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9372. +ac_uB='$,\1#\2define\3'
  9373. ac_uC=' '
  9374. -ac_uD='\4%g'
  9375. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9376. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9377. -ac_eB='$%\1#\2define\3'
  9378. -ac_eC=' '
  9379. -ac_eD='%g'
  9380. -
  9381. -if test "${CONFIG_HEADERS+set}" != set; then
  9382. -EOF
  9383. -cat >> $CONFIG_STATUS <<EOF
  9384. - CONFIG_HEADERS="config.h"
  9385. -EOF
  9386. -cat >> $CONFIG_STATUS <<\EOF
  9387. -fi
  9388. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  9389. +ac_uD=',;t'
  9390. +
  9391. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9392. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9393. - case "$ac_file" in
  9394. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9395. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9396. - *) ac_file_in="${ac_file}.in" ;;
  9397. + case $ac_file in
  9398. + - | *:- | *:-:* ) # input from stdin
  9399. + cat >$tmp/stdin
  9400. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9401. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9402. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9403. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9404. + * ) ac_file_in=$ac_file.in ;;
  9405. esac
  9406. - echo creating $ac_file
  9407. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9408. +echo "$as_me: creating $ac_file" >&6;}
  9409. - rm -f conftest.frag conftest.in conftest.out
  9410. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9411. - cat $ac_file_inputs > conftest.in
  9412. -
  9413. -EOF
  9414. -
  9415. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  9416. -# the proper values into config.h.in to produce config.h. And first:
  9417. -# Protect against being on the right side of a sed subst in config.status.
  9418. -# Protect against being in an unquoted here document in config.status.
  9419. -rm -f conftest.vals
  9420. -cat > conftest.hdr <<\EOF
  9421. -s/[\\&%]/\\&/g
  9422. -s%[\\$`]%\\&%g
  9423. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  9424. -s%ac_d%ac_u%gp
  9425. -s%ac_u%ac_e%gp
  9426. -EOF
  9427. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  9428. -rm -f conftest.hdr
  9429. + # First look for the input files in the build tree, otherwise in the
  9430. + # src tree.
  9431. + ac_file_inputs=`IFS=:
  9432. + for f in $ac_file_in; do
  9433. + case $f in
  9434. + -) echo $tmp/stdin ;;
  9435. + [\\/$]*)
  9436. + # Absolute (can't be DOS-style, as IFS=:)
  9437. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9438. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9439. + { (exit 1); exit 1; }; }
  9440. + echo $f;;
  9441. + *) # Relative
  9442. + if test -f "$f"; then
  9443. + # Build tree
  9444. + echo $f
  9445. + elif test -f "$srcdir/$f"; then
  9446. + # Source tree
  9447. + echo $srcdir/$f
  9448. + else
  9449. + # /dev/null tree
  9450. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9451. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9452. + { (exit 1); exit 1; }; }
  9453. + fi;;
  9454. + esac
  9455. + done` || { (exit 1); exit 1; }
  9456. + # Remove the trailing spaces.
  9457. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9458. +
  9459. +_ACEOF
  9460. +
  9461. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  9462. +# `conftest.undefs', that substitutes the proper values into
  9463. +# config.h.in to produce config.h. The first handles `#define'
  9464. +# templates, and the second `#undef' templates.
  9465. +# And first: Protect against being on the right side of a sed subst in
  9466. +# config.status. Protect against being in an unquoted here document
  9467. +# in config.status.
  9468. +rm -f conftest.defines conftest.undefs
  9469. +# Using a here document instead of a string reduces the quoting nightmare.
  9470. +# Putting comments in sed scripts is not portable.
  9471. +#
  9472. +# `end' is used to avoid that the second main sed command (meant for
  9473. +# 0-ary CPP macros) applies to n-ary macro definitions.
  9474. +# See the Autoconf documentation for `clear'.
  9475. +cat >confdef2sed.sed <<\_ACEOF
  9476. +s/[\\&,]/\\&/g
  9477. +s,[\\$`],\\&,g
  9478. +t clear
  9479. +: clear
  9480. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9481. +t end
  9482. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9483. +: end
  9484. +_ACEOF
  9485. +# If some macros were called several times there might be several times
  9486. +# the same #defines, which is useless. Nevertheless, we may not want to
  9487. +# sort them, since we want the *last* AC-DEFINE to be honored.
  9488. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9489. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9490. +rm -f confdef2sed.sed
  9491. # This sed command replaces #undef with comments. This is necessary, for
  9492. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9493. # on some systems where configure will not decide to define it.
  9494. -cat >> conftest.vals <<\EOF
  9495. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  9496. -EOF
  9497. -
  9498. -# Break up conftest.vals because some shells have a limit on
  9499. -# the size of here documents, and old seds have small limits too.
  9500. -
  9501. +cat >>conftest.undefs <<\_ACEOF
  9502. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9503. +_ACEOF
  9504. +
  9505. +# Break up conftest.defines because some shells have a limit on the size
  9506. +# of here documents, and old seds have small limits too (100 cmds).
  9507. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9508. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9509. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9510. +echo ' :' >>$CONFIG_STATUS
  9511. +rm -f conftest.tail
  9512. +while grep . conftest.defines >/dev/null
  9513. +do
  9514. + # Write a limited-size here document to $tmp/defines.sed.
  9515. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9516. + # Speed up: don't consider the non `#define' lines.
  9517. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9518. + # Work around the forget-to-reset-the-flag bug.
  9519. + echo 't clr' >>$CONFIG_STATUS
  9520. + echo ': clr' >>$CONFIG_STATUS
  9521. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9522. + echo 'CEOF
  9523. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9524. + rm -f $tmp/in
  9525. + mv $tmp/out $tmp/in
  9526. +' >>$CONFIG_STATUS
  9527. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9528. + rm -f conftest.defines
  9529. + mv conftest.tail conftest.defines
  9530. +done
  9531. +rm -f conftest.defines
  9532. +echo ' fi # grep' >>$CONFIG_STATUS
  9533. +echo >>$CONFIG_STATUS
  9534. +
  9535. +# Break up conftest.undefs because some shells have a limit on the size
  9536. +# of here documents, and old seds have small limits too (100 cmds).
  9537. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9538. rm -f conftest.tail
  9539. -while :
  9540. +while grep . conftest.undefs >/dev/null
  9541. do
  9542. - ac_lines=`grep -c . conftest.vals`
  9543. - # grep -c gives empty output for an empty file on some AIX systems.
  9544. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  9545. - # Write a limited-size here document to conftest.frag.
  9546. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  9547. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  9548. + # Write a limited-size here document to $tmp/undefs.sed.
  9549. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9550. + # Speed up: don't consider the non `#undef'
  9551. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9552. + # Work around the forget-to-reset-the-flag bug.
  9553. + echo 't clr' >>$CONFIG_STATUS
  9554. + echo ': clr' >>$CONFIG_STATUS
  9555. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9556. echo 'CEOF
  9557. - sed -f conftest.frag conftest.in > conftest.out
  9558. - rm -f conftest.in
  9559. - mv conftest.out conftest.in
  9560. -' >> $CONFIG_STATUS
  9561. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  9562. - rm -f conftest.vals
  9563. - mv conftest.tail conftest.vals
  9564. -done
  9565. -rm -f conftest.vals
  9566. -
  9567. -cat >> $CONFIG_STATUS <<\EOF
  9568. - rm -f conftest.frag conftest.h
  9569. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  9570. - cat conftest.in >> conftest.h
  9571. - rm -f conftest.in
  9572. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  9573. - echo "$ac_file is unchanged"
  9574. - rm -f conftest.h
  9575. - else
  9576. - # Remove last slash and all that follows it. Not all systems have dirname.
  9577. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9578. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9579. - # The file is in a subdirectory.
  9580. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9581. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9582. + rm -f $tmp/in
  9583. + mv $tmp/out $tmp/in
  9584. +' >>$CONFIG_STATUS
  9585. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9586. + rm -f conftest.undefs
  9587. + mv conftest.tail conftest.undefs
  9588. +done
  9589. +rm -f conftest.undefs
  9590. +
  9591. +cat >>$CONFIG_STATUS <<\_ACEOF
  9592. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9593. + # use $as_me), people would be surprised to read:
  9594. + # /* config.h. Generated by config.status. */
  9595. + if test x"$ac_file" = x-; then
  9596. + echo "/* Generated by configure. */" >$tmp/config.h
  9597. + else
  9598. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9599. + fi
  9600. + cat $tmp/in >>$tmp/config.h
  9601. + rm -f $tmp/in
  9602. + if test x"$ac_file" != x-; then
  9603. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9604. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9605. +echo "$as_me: $ac_file is unchanged" >&6;}
  9606. + else
  9607. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9608. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9609. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9610. + X"$ac_file" : 'X\(//\)$' \| \
  9611. + X"$ac_file" : 'X\(/\)' \| \
  9612. + . : '\(.\)' 2>/dev/null ||
  9613. +echo X"$ac_file" |
  9614. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9615. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9616. + /^X\(\/\/\)$/{ s//\1/; q; }
  9617. + /^X\(\/\).*/{ s//\1/; q; }
  9618. + s/.*/./; q'`
  9619. + { if $as_mkdir_p; then
  9620. + mkdir -p "$ac_dir"
  9621. + else
  9622. + as_dir="$ac_dir"
  9623. + as_dirs=
  9624. + while test ! -d "$as_dir"; do
  9625. + as_dirs="$as_dir $as_dirs"
  9626. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9627. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9628. + X"$as_dir" : 'X\(//\)[^/]' \| \
  9629. + X"$as_dir" : 'X\(//\)$' \| \
  9630. + X"$as_dir" : 'X\(/\)' \| \
  9631. + . : '\(.\)' 2>/dev/null ||
  9632. +echo X"$as_dir" |
  9633. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9634. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9635. + /^X\(\/\/\)$/{ s//\1/; q; }
  9636. + /^X\(\/\).*/{ s//\1/; q; }
  9637. + s/.*/./; q'`
  9638. + done
  9639. + test ! -n "$as_dirs" || mkdir $as_dirs
  9640. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9641. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9642. + { (exit 1); exit 1; }; }; }
  9643. +
  9644. + rm -f $ac_file
  9645. + mv $tmp/config.h $ac_file
  9646. fi
  9647. - rm -f $ac_file
  9648. - mv conftest.h $ac_file
  9649. + else
  9650. + cat $tmp/config.h
  9651. + rm -f $tmp/config.h
  9652. fi
  9653. -fi; done
  9654. +done
  9655. +_ACEOF
  9656. +cat >>$CONFIG_STATUS <<\_ACEOF
  9657. +
  9658. +#
  9659. +# CONFIG_COMMANDS section.
  9660. +#
  9661. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9662. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9663. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9664. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9665. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9666. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  9667. + X"$ac_dest" : 'X\(//\)$' \| \
  9668. + X"$ac_dest" : 'X\(/\)' \| \
  9669. + . : '\(.\)' 2>/dev/null ||
  9670. +echo X"$ac_dest" |
  9671. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9672. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9673. + /^X\(\/\/\)$/{ s//\1/; q; }
  9674. + /^X\(\/\).*/{ s//\1/; q; }
  9675. + s/.*/./; q'`
  9676. + ac_builddir=.
  9677. +
  9678. +if test "$ac_dir" != .; then
  9679. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9680. + # A "../" for each directory in $ac_dir_suffix.
  9681. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9682. +else
  9683. + ac_dir_suffix= ac_top_builddir=
  9684. +fi
  9685. +
  9686. +case $srcdir in
  9687. + .) # No --srcdir option. We are building in place.
  9688. + ac_srcdir=.
  9689. + if test -z "$ac_top_builddir"; then
  9690. + ac_top_srcdir=.
  9691. + else
  9692. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9693. + fi ;;
  9694. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9695. + ac_srcdir=$srcdir$ac_dir_suffix;
  9696. + ac_top_srcdir=$srcdir ;;
  9697. + *) # Relative path.
  9698. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9699. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9700. +esac
  9701. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9702. +# absolute.
  9703. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9704. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9705. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9706. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9707. -EOF
  9708. -cat >> $CONFIG_STATUS <<EOF
  9709. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9710. +echo "$as_me: executing $ac_dest commands" >&6;}
  9711. + case $ac_dest in
  9712. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  9713. + esac
  9714. +done
  9715. +_ACEOF
  9716. -EOF
  9717. -cat >> $CONFIG_STATUS <<\EOF
  9718. -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  9719. +cat >>$CONFIG_STATUS <<\_ACEOF
  9720. -exit 0
  9721. -EOF
  9722. +{ (exit 0); exit 0; }
  9723. +_ACEOF
  9724. chmod +x $CONFIG_STATUS
  9725. -rm -fr confdefs* $ac_clean_files
  9726. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  9727. +ac_clean_files=$ac_clean_files_save
  9728. +
  9729. +
  9730. +# configure is writing to config.log, and then calls config.status.
  9731. +# config.status does its own redirection, appending to config.log.
  9732. +# Unfortunately, on DOS this fails, as config.log is still kept open
  9733. +# by configure, so config.status won't be able to write to it; its
  9734. +# output is simply discarded. So we exec the FD to /dev/null,
  9735. +# effectively closing config.log, so it can be properly (re)opened and
  9736. +# appended to by config.status. When coming back to configure, we
  9737. +# need to make the FD available again.
  9738. +if test "$no_create" != yes; then
  9739. + ac_cs_success=:
  9740. + ac_config_status_args=
  9741. + test "$silent" = yes &&
  9742. + ac_config_status_args="$ac_config_status_args --quiet"
  9743. + exec 5>/dev/null
  9744. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9745. + exec 5>>config.log
  9746. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9747. + # would make configure fail if this is the last instruction.
  9748. + $ac_cs_success || { (exit 1); exit 1; }
  9749. +fi