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.

10041 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- ./configure.in.bak Sun Mar 16 22:31:01 2003
  23. +++ ./configure.in Mon Mar 17 00:24:17 2003
  24. @@ -16,8 +16,12 @@
  25. AC_MSG_CHECKING(whether to enable debugging)
  26. AC_ARG_ENABLE(debug,
  27. [ --enable-debug show debug information],
  28. - AC_DEFINE(DEBUG)
  29. - debug="yes",
  30. + if [[[ "$enableval" = "yes" ]]]; then
  31. + AC_DEFINE(DEBUG)
  32. + debug="yes"
  33. + else
  34. + debug="no"
  35. + fi,
  36. debug="no"
  37. )
  38. AC_MSG_RESULT($debug)
  39. --- ./configure.bak Sun Mar 16 22:30:53 2003
  40. +++ ./configure Mon Mar 17 00:24:22 2003
  41. @@ -1,44 +1,324 @@
  42. #! /bin/sh
  43. -
  44. # Guess values for system-dependent variables and create Makefiles.
  45. -# Generated automatically using autoconf version 2.13
  46. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  47. +# Generated by GNU Autoconf 2.57.
  48. #
  49. +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  50. +# Free Software Foundation, Inc.
  51. # This configure script is free software; the Free Software Foundation
  52. # gives unlimited permission to copy, distribute and modify it.
  53. +## --------------------- ##
  54. +## M4sh Initialization. ##
  55. +## --------------------- ##
  56. +
  57. +# Be Bourne compatible
  58. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  59. + emulate sh
  60. + NULLCMD=:
  61. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  62. + # is contrary to our usage. Disable this feature.
  63. + alias -g '${1+"$@"}'='"$@"'
  64. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  65. + set -o posix
  66. +fi
  67. +
  68. +# Support unset when possible.
  69. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  70. + as_unset=unset
  71. +else
  72. + as_unset=false
  73. +fi
  74. +
  75. +
  76. +# Work around bugs in pre-3.0 UWIN ksh.
  77. +$as_unset ENV MAIL MAILPATH
  78. +PS1='$ '
  79. +PS2='> '
  80. +PS4='+ '
  81. +
  82. +# NLS nuisances.
  83. +for as_var in \
  84. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  85. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  86. + LC_TELEPHONE LC_TIME
  87. +do
  88. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  89. + eval $as_var=C; export $as_var
  90. + else
  91. + $as_unset $as_var
  92. + fi
  93. +done
  94. +
  95. +# Required to use basename.
  96. +if expr a : '\(a\)' >/dev/null 2>&1; then
  97. + as_expr=expr
  98. +else
  99. + as_expr=false
  100. +fi
  101. +
  102. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  103. + as_basename=basename
  104. +else
  105. + as_basename=false
  106. +fi
  107. +
  108. +
  109. +# Name of the executable.
  110. +as_me=`$as_basename "$0" ||
  111. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  112. + X"$0" : 'X\(//\)$' \| \
  113. + X"$0" : 'X\(/\)$' \| \
  114. + . : '\(.\)' 2>/dev/null ||
  115. +echo X/"$0" |
  116. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  117. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  118. + /^X\/\(\/\).*/{ s//\1/; q; }
  119. + s/.*/./; q'`
  120. +
  121. +
  122. +# PATH needs CR, and LINENO needs CR and PATH.
  123. +# Avoid depending upon Character Ranges.
  124. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  125. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  126. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  127. +as_cr_digits='0123456789'
  128. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  129. +
  130. +# The user is always right.
  131. +if test "${PATH_SEPARATOR+set}" != set; then
  132. + echo "#! /bin/sh" >conf$$.sh
  133. + echo "exit 0" >>conf$$.sh
  134. + chmod +x conf$$.sh
  135. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  136. + PATH_SEPARATOR=';'
  137. + else
  138. + PATH_SEPARATOR=:
  139. + fi
  140. + rm -f conf$$.sh
  141. +fi
  142. +
  143. +
  144. + as_lineno_1=$LINENO
  145. + as_lineno_2=$LINENO
  146. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  147. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  148. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  149. + # Find who we are. Look in the path if we contain no path at all
  150. + # relative or not.
  151. + case $0 in
  152. + *[\\/]* ) as_myself=$0 ;;
  153. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  154. +for as_dir in $PATH
  155. +do
  156. + IFS=$as_save_IFS
  157. + test -z "$as_dir" && as_dir=.
  158. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  159. +done
  160. +
  161. + ;;
  162. + esac
  163. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  164. + # in which case we are not to be found in the path.
  165. + if test "x$as_myself" = x; then
  166. + as_myself=$0
  167. + fi
  168. + if test ! -f "$as_myself"; then
  169. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  170. + { (exit 1); exit 1; }; }
  171. + fi
  172. + case $CONFIG_SHELL in
  173. + '')
  174. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  175. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. +do
  177. + IFS=$as_save_IFS
  178. + test -z "$as_dir" && as_dir=.
  179. + for as_base in sh bash ksh sh5; do
  180. + case $as_dir in
  181. + /*)
  182. + if ("$as_dir/$as_base" -c '
  183. + as_lineno_1=$LINENO
  184. + as_lineno_2=$LINENO
  185. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  186. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  187. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  188. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  189. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  190. + CONFIG_SHELL=$as_dir/$as_base
  191. + export CONFIG_SHELL
  192. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  193. + fi;;
  194. + esac
  195. + done
  196. +done
  197. +;;
  198. + esac
  199. +
  200. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  201. + # uniformly replaced by the line number. The first 'sed' inserts a
  202. + # line-number line before each line; the second 'sed' does the real
  203. + # work. The second script uses 'N' to pair each line-number line
  204. + # with the numbered line, and appends trailing '-' during
  205. + # substitution so that $LINENO is not a special case at line end.
  206. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  207. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  208. + sed '=' <$as_myself |
  209. + sed '
  210. + N
  211. + s,$,-,
  212. + : loop
  213. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  214. + t loop
  215. + s,-$,,
  216. + s,^['$as_cr_digits']*\n,,
  217. + ' >$as_me.lineno &&
  218. + chmod +x $as_me.lineno ||
  219. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  220. + { (exit 1); exit 1; }; }
  221. +
  222. + # Don't try to exec as it changes $[0], causing all sort of problems
  223. + # (the dirname of $[0] is not the place where we might find the
  224. + # original and so on. Autoconf is especially sensible to this).
  225. + . ./$as_me.lineno
  226. + # Exit status is that of the last command.
  227. + exit
  228. +}
  229. +
  230. +
  231. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  232. + *c*,-n*) ECHO_N= ECHO_C='
  233. +' ECHO_T=' ' ;;
  234. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  235. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  236. +esac
  237. +
  238. +if expr a : '\(a\)' >/dev/null 2>&1; then
  239. + as_expr=expr
  240. +else
  241. + as_expr=false
  242. +fi
  243. +
  244. +rm -f conf$$ conf$$.exe conf$$.file
  245. +echo >conf$$.file
  246. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  247. + # We could just check for DJGPP; but this test a) works b) is more generic
  248. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  249. + if test -f conf$$.exe; then
  250. + # Don't use ln at all; we don't have any links
  251. + as_ln_s='cp -p'
  252. + else
  253. + as_ln_s='ln -s'
  254. + fi
  255. +elif ln conf$$.file conf$$ 2>/dev/null; then
  256. + as_ln_s=ln
  257. +else
  258. + as_ln_s='cp -p'
  259. +fi
  260. +rm -f conf$$ conf$$.exe conf$$.file
  261. +
  262. +if mkdir -p . 2>/dev/null; then
  263. + as_mkdir_p=:
  264. +else
  265. + as_mkdir_p=false
  266. +fi
  267. +
  268. +as_executable_p="test -f"
  269. +
  270. +# Sed expression to map a string onto a valid CPP name.
  271. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  272. +
  273. +# Sed expression to map a string onto a valid variable name.
  274. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  275. +
  276. -# Defaults:
  277. -ac_help=
  278. +# IFS
  279. +# We need space, tab and new line, in precisely that order.
  280. +as_nl='
  281. +'
  282. +IFS=" $as_nl"
  283. +
  284. +# CDPATH.
  285. +$as_unset CDPATH
  286. +
  287. +
  288. +# Name of the host.
  289. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  290. +# so uname gets run too.
  291. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  292. +
  293. +exec 6>&1
  294. +
  295. +#
  296. +# Initializations.
  297. +#
  298. ac_default_prefix=/usr/local
  299. -# Any additions from configure.in:
  300. -ac_help="$ac_help
  301. - --enable-debug show debug information"
  302. -ac_help="$ac_help
  303. - --enable-stat-nfs display filesystem stats for NFS"
  304. -ac_help="$ac_help
  305. - --enable-stat-smbfs display filesystem stats for SMBFS"
  306. -ac_help="$ac_help
  307. - --with-lcdport=<port> the server port [13666]"
  308. -ac_help="$ac_help
  309. - --with-loadmax=<load> Max Load Avg at which the backlight will
  310. - start blinking [1.3]"
  311. -ac_help="$ac_help
  312. - --with-loadmin=<load> Min Load Avg at which the backlight will
  313. - turn off (asleep) [0.05]"
  314. -ac_help="$ac_help
  315. - --enable-drivers=<list> compile driver for LCDs in <list>.
  316. - drivers may be separated with commas.
  317. - \"all\" compiles all drivers"
  318. +ac_config_libobj_dir=.
  319. +cross_compiling=no
  320. +subdirs=
  321. +MFLAGS=
  322. +MAKEFLAGS=
  323. +SHELL=${CONFIG_SHELL-/bin/sh}
  324. +
  325. +# Maximum number of lines to put in a shell here document.
  326. +# This variable seems obsolete. It should probably be removed, and
  327. +# only ac_max_sed_lines should be used.
  328. +: ${ac_max_here_lines=38}
  329. +
  330. +# Identity of this package.
  331. +PACKAGE_NAME=
  332. +PACKAGE_TARNAME=
  333. +PACKAGE_VERSION=
  334. +PACKAGE_STRING=
  335. +PACKAGE_BUGREPORT=
  336. +
  337. +ac_unique_file="clients/lcdproc/batt.c"
  338. +# Factoring default headers for most tests.
  339. +ac_includes_default="\
  340. +#include <stdio.h>
  341. +#if HAVE_SYS_TYPES_H
  342. +# include <sys/types.h>
  343. +#endif
  344. +#if HAVE_SYS_STAT_H
  345. +# include <sys/stat.h>
  346. +#endif
  347. +#if STDC_HEADERS
  348. +# include <stdlib.h>
  349. +# include <stddef.h>
  350. +#else
  351. +# if HAVE_STDLIB_H
  352. +# include <stdlib.h>
  353. +# endif
  354. +#endif
  355. +#if HAVE_STRING_H
  356. +# if !STDC_HEADERS && HAVE_MEMORY_H
  357. +# include <memory.h>
  358. +# endif
  359. +# include <string.h>
  360. +#endif
  361. +#if HAVE_STRINGS_H
  362. +# include <strings.h>
  363. +#endif
  364. +#if HAVE_INTTYPES_H
  365. +# include <inttypes.h>
  366. +#else
  367. +# if HAVE_STDINT_H
  368. +# include <stdint.h>
  369. +# endif
  370. +#endif
  371. +#if HAVE_UNISTD_H
  372. +# include <unistd.h>
  373. +#endif"
  374. +
  375. +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'
  376. +ac_subst_files=''
  377. # Initialize some variables set by options.
  378. +ac_init_help=
  379. +ac_init_version=false
  380. # The variables have the same names as the options, with
  381. # dashes changed to underlines.
  382. -build=NONE
  383. -cache_file=./config.cache
  384. +cache_file=/dev/null
  385. exec_prefix=NONE
  386. -host=NONE
  387. no_create=
  388. -nonopt=NONE
  389. no_recursion=
  390. prefix=NONE
  391. program_prefix=NONE
  392. @@ -47,10 +327,15 @@
  393. silent=
  394. site=
  395. srcdir=
  396. -target=NONE
  397. verbose=
  398. x_includes=NONE
  399. x_libraries=NONE
  400. +
  401. +# Installation directory options.
  402. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  403. +# and all the variables that are supposed to be based on exec_prefix
  404. +# by default will actually change.
  405. +# Use braces instead of parens because sh, perl, etc. also accept them.
  406. bindir='${exec_prefix}/bin'
  407. sbindir='${exec_prefix}/sbin'
  408. libexecdir='${exec_prefix}/libexec'
  409. @@ -64,17 +349,9 @@
  410. infodir='${prefix}/info'
  411. mandir='${prefix}/man'
  412. -# Initialize some other variables.
  413. -subdirs=
  414. -MFLAGS= MAKEFLAGS=
  415. -SHELL=${CONFIG_SHELL-/bin/sh}
  416. -# Maximum number of lines to put in a shell here document.
  417. -ac_max_here_lines=12
  418. -
  419. ac_prev=
  420. for ac_option
  421. do
  422. -
  423. # If the previous option needs an argument, assign it.
  424. if test -n "$ac_prev"; then
  425. eval "$ac_prev=\$ac_option"
  426. @@ -82,59 +359,59 @@
  427. continue
  428. fi
  429. - case "$ac_option" in
  430. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  431. - *) ac_optarg= ;;
  432. - esac
  433. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  434. # Accept the important Cygnus configure options, so we can diagnose typos.
  435. - case "$ac_option" in
  436. + case $ac_option in
  437. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  438. ac_prev=bindir ;;
  439. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  440. - bindir="$ac_optarg" ;;
  441. + bindir=$ac_optarg ;;
  442. -build | --build | --buil | --bui | --bu)
  443. - ac_prev=build ;;
  444. + ac_prev=build_alias ;;
  445. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  446. - build="$ac_optarg" ;;
  447. + build_alias=$ac_optarg ;;
  448. -cache-file | --cache-file | --cache-fil | --cache-fi \
  449. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  450. ac_prev=cache_file ;;
  451. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  452. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  453. - cache_file="$ac_optarg" ;;
  454. + cache_file=$ac_optarg ;;
  455. +
  456. + --config-cache | -C)
  457. + cache_file=config.cache ;;
  458. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  459. ac_prev=datadir ;;
  460. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  461. | --da=*)
  462. - datadir="$ac_optarg" ;;
  463. + datadir=$ac_optarg ;;
  464. -disable-* | --disable-*)
  465. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  466. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  467. # Reject names that are not valid shell variable names.
  468. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  469. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  470. - fi
  471. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  472. - eval "enable_${ac_feature}=no" ;;
  473. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  474. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  475. + { (exit 1); exit 1; }; }
  476. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  477. + eval "enable_$ac_feature=no" ;;
  478. -enable-* | --enable-*)
  479. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  480. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  481. # Reject names that are not valid shell variable names.
  482. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  483. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  484. - fi
  485. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  486. - case "$ac_option" in
  487. - *=*) ;;
  488. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. + { (exit 1); exit 1; }; }
  491. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. + case $ac_option in
  493. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  494. *) ac_optarg=yes ;;
  495. esac
  496. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  497. + eval "enable_$ac_feature='$ac_optarg'" ;;
  498. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  499. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  500. @@ -143,95 +420,47 @@
  501. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  502. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  503. | --exec=* | --exe=* | --ex=*)
  504. - exec_prefix="$ac_optarg" ;;
  505. + exec_prefix=$ac_optarg ;;
  506. -gas | --gas | --ga | --g)
  507. # Obsolete; use --with-gas.
  508. with_gas=yes ;;
  509. - -help | --help | --hel | --he)
  510. - # Omit some internal or obsolete options to make the list less imposing.
  511. - # This message is too long to be a string in the A/UX 3.1 sh.
  512. - cat << EOF
  513. -Usage: configure [options] [host]
  514. -Options: [defaults in brackets after descriptions]
  515. -Configuration:
  516. - --cache-file=FILE cache test results in FILE
  517. - --help print this message
  518. - --no-create do not create output files
  519. - --quiet, --silent do not print \`checking...' messages
  520. - --version print the version of autoconf that created configure
  521. -Directory and file names:
  522. - --prefix=PREFIX install architecture-independent files in PREFIX
  523. - [$ac_default_prefix]
  524. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  525. - [same as prefix]
  526. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  527. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  528. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  529. - --datadir=DIR read-only architecture-independent data in DIR
  530. - [PREFIX/share]
  531. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  532. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  533. - [PREFIX/com]
  534. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  535. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  536. - --includedir=DIR C header files in DIR [PREFIX/include]
  537. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  538. - --infodir=DIR info documentation in DIR [PREFIX/info]
  539. - --mandir=DIR man documentation in DIR [PREFIX/man]
  540. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  541. - --program-prefix=PREFIX prepend PREFIX to installed program names
  542. - --program-suffix=SUFFIX append SUFFIX to installed program names
  543. - --program-transform-name=PROGRAM
  544. - run sed PROGRAM on installed program names
  545. -EOF
  546. - cat << EOF
  547. -Host type:
  548. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  549. - --host=HOST configure for HOST [guessed]
  550. - --target=TARGET configure for TARGET [TARGET=HOST]
  551. -Features and packages:
  552. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  553. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  554. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  555. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  556. - --x-includes=DIR X include files are in DIR
  557. - --x-libraries=DIR X library files are in DIR
  558. -EOF
  559. - if test -n "$ac_help"; then
  560. - echo "--enable and --with options recognized:$ac_help"
  561. - fi
  562. - exit 0 ;;
  563. + -help | --help | --hel | --he | -h)
  564. + ac_init_help=long ;;
  565. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  566. + ac_init_help=recursive ;;
  567. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  568. + ac_init_help=short ;;
  569. -host | --host | --hos | --ho)
  570. - ac_prev=host ;;
  571. + ac_prev=host_alias ;;
  572. -host=* | --host=* | --hos=* | --ho=*)
  573. - host="$ac_optarg" ;;
  574. + host_alias=$ac_optarg ;;
  575. -includedir | --includedir | --includedi | --included | --include \
  576. | --includ | --inclu | --incl | --inc)
  577. ac_prev=includedir ;;
  578. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  579. | --includ=* | --inclu=* | --incl=* | --inc=*)
  580. - includedir="$ac_optarg" ;;
  581. + includedir=$ac_optarg ;;
  582. -infodir | --infodir | --infodi | --infod | --info | --inf)
  583. ac_prev=infodir ;;
  584. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  585. - infodir="$ac_optarg" ;;
  586. + infodir=$ac_optarg ;;
  587. -libdir | --libdir | --libdi | --libd)
  588. ac_prev=libdir ;;
  589. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  590. - libdir="$ac_optarg" ;;
  591. + libdir=$ac_optarg ;;
  592. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  593. | --libexe | --libex | --libe)
  594. ac_prev=libexecdir ;;
  595. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  596. | --libexe=* | --libex=* | --libe=*)
  597. - libexecdir="$ac_optarg" ;;
  598. + libexecdir=$ac_optarg ;;
  599. -localstatedir | --localstatedir | --localstatedi | --localstated \
  600. | --localstate | --localstat | --localsta | --localst \
  601. @@ -240,19 +469,19 @@
  602. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  603. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  604. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  605. - localstatedir="$ac_optarg" ;;
  606. + localstatedir=$ac_optarg ;;
  607. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  608. ac_prev=mandir ;;
  609. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  610. - mandir="$ac_optarg" ;;
  611. + mandir=$ac_optarg ;;
  612. -nfp | --nfp | --nf)
  613. # Obsolete; use --without-fp.
  614. with_fp=no ;;
  615. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  616. - | --no-cr | --no-c)
  617. + | --no-cr | --no-c | -n)
  618. no_create=yes ;;
  619. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  620. @@ -266,26 +495,26 @@
  621. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  622. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  623. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  624. - oldincludedir="$ac_optarg" ;;
  625. + oldincludedir=$ac_optarg ;;
  626. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  627. ac_prev=prefix ;;
  628. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  629. - prefix="$ac_optarg" ;;
  630. + prefix=$ac_optarg ;;
  631. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  632. | --program-pre | --program-pr | --program-p)
  633. ac_prev=program_prefix ;;
  634. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  635. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  636. - program_prefix="$ac_optarg" ;;
  637. + program_prefix=$ac_optarg ;;
  638. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  639. | --program-suf | --program-su | --program-s)
  640. ac_prev=program_suffix ;;
  641. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  642. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  643. - program_suffix="$ac_optarg" ;;
  644. + program_suffix=$ac_optarg ;;
  645. -program-transform-name | --program-transform-name \
  646. | --program-transform-nam | --program-transform-na \
  647. @@ -302,7 +531,7 @@
  648. | --program-transfo=* | --program-transf=* \
  649. | --program-trans=* | --program-tran=* \
  650. | --progr-tra=* | --program-tr=* | --program-t=*)
  651. - program_transform_name="$ac_optarg" ;;
  652. + program_transform_name=$ac_optarg ;;
  653. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  654. | -silent | --silent | --silen | --sile | --sil)
  655. @@ -312,7 +541,7 @@
  656. ac_prev=sbindir ;;
  657. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  658. | --sbi=* | --sb=*)
  659. - sbindir="$ac_optarg" ;;
  660. + sbindir=$ac_optarg ;;
  661. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  662. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  663. @@ -323,58 +552,57 @@
  664. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  665. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  666. | --sha=* | --sh=*)
  667. - sharedstatedir="$ac_optarg" ;;
  668. + sharedstatedir=$ac_optarg ;;
  669. -site | --site | --sit)
  670. ac_prev=site ;;
  671. -site=* | --site=* | --sit=*)
  672. - site="$ac_optarg" ;;
  673. + site=$ac_optarg ;;
  674. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  675. ac_prev=srcdir ;;
  676. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  677. - srcdir="$ac_optarg" ;;
  678. + srcdir=$ac_optarg ;;
  679. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  680. | --syscon | --sysco | --sysc | --sys | --sy)
  681. ac_prev=sysconfdir ;;
  682. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  683. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  684. - sysconfdir="$ac_optarg" ;;
  685. + sysconfdir=$ac_optarg ;;
  686. -target | --target | --targe | --targ | --tar | --ta | --t)
  687. - ac_prev=target ;;
  688. + ac_prev=target_alias ;;
  689. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  690. - target="$ac_optarg" ;;
  691. + target_alias=$ac_optarg ;;
  692. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  693. verbose=yes ;;
  694. - -version | --version | --versio | --versi | --vers)
  695. - echo "configure generated by autoconf version 2.13"
  696. - exit 0 ;;
  697. + -version | --version | --versio | --versi | --vers | -V)
  698. + ac_init_version=: ;;
  699. -with-* | --with-*)
  700. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  701. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  702. # Reject names that are not valid shell variable names.
  703. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  704. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  705. - fi
  706. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  707. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  708. + { (exit 1); exit 1; }; }
  709. ac_package=`echo $ac_package| sed 's/-/_/g'`
  710. - case "$ac_option" in
  711. - *=*) ;;
  712. + case $ac_option in
  713. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  714. *) ac_optarg=yes ;;
  715. esac
  716. - eval "with_${ac_package}='$ac_optarg'" ;;
  717. + eval "with_$ac_package='$ac_optarg'" ;;
  718. -without-* | --without-*)
  719. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  720. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  721. # Reject names that are not valid shell variable names.
  722. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  723. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  724. - fi
  725. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  726. - eval "with_${ac_package}=no" ;;
  727. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  728. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  729. + { (exit 1); exit 1; }; }
  730. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  731. + eval "with_$ac_package=no" ;;
  732. --x)
  733. # Obsolete; use --with-x.
  734. @@ -385,99 +613,110 @@
  735. ac_prev=x_includes ;;
  736. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  737. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  738. - x_includes="$ac_optarg" ;;
  739. + x_includes=$ac_optarg ;;
  740. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  741. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  742. ac_prev=x_libraries ;;
  743. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  744. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  745. - x_libraries="$ac_optarg" ;;
  746. + x_libraries=$ac_optarg ;;
  747. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  748. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  749. +Try \`$0 --help' for more information." >&2
  750. + { (exit 1); exit 1; }; }
  751. ;;
  752. + *=*)
  753. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  754. + # Reject names that are not valid shell variable names.
  755. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  756. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  757. + { (exit 1); exit 1; }; }
  758. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  759. + eval "$ac_envvar='$ac_optarg'"
  760. + export $ac_envvar ;;
  761. +
  762. *)
  763. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  764. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  765. - fi
  766. - if test "x$nonopt" != xNONE; then
  767. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  768. - fi
  769. - nonopt="$ac_option"
  770. + # FIXME: should be removed in autoconf 3.0.
  771. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  772. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  773. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  774. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  775. ;;
  776. esac
  777. done
  778. if test -n "$ac_prev"; then
  779. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  780. -fi
  781. -
  782. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  783. -
  784. -# File descriptor usage:
  785. -# 0 standard input
  786. -# 1 file creation
  787. -# 2 errors and warnings
  788. -# 3 some systems may open it to /dev/tty
  789. -# 4 used on the Kubota Titan
  790. -# 6 checking for... messages and results
  791. -# 5 compiler messages saved in config.log
  792. -if test "$silent" = yes; then
  793. - exec 6>/dev/null
  794. -else
  795. - exec 6>&1
  796. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  797. + { echo "$as_me: error: missing argument to $ac_option" >&2
  798. + { (exit 1); exit 1; }; }
  799. fi
  800. -exec 5>./config.log
  801. -echo "\
  802. -This file contains any messages produced by compilers while
  803. -running configure, to aid debugging if configure makes a mistake.
  804. -" 1>&5
  805. +# Be sure to have absolute paths.
  806. +for ac_var in exec_prefix prefix
  807. +do
  808. + eval ac_val=$`echo $ac_var`
  809. + case $ac_val in
  810. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  811. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  812. + { (exit 1); exit 1; }; };;
  813. + esac
  814. +done
  815. -# Strip out --no-create and --no-recursion so they do not pile up.
  816. -# Also quote any args containing shell metacharacters.
  817. -ac_configure_args=
  818. -for ac_arg
  819. +# Be sure to have absolute paths.
  820. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  821. + localstatedir libdir includedir oldincludedir infodir mandir
  822. do
  823. - case "$ac_arg" in
  824. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  825. - | --no-cr | --no-c) ;;
  826. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  827. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  828. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  829. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  830. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  831. + eval ac_val=$`echo $ac_var`
  832. + case $ac_val in
  833. + [\\/$]* | ?:[\\/]* ) ;;
  834. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  835. + { (exit 1); exit 1; }; };;
  836. esac
  837. done
  838. -# NLS nuisances.
  839. -# Only set these to C if already set. These must not be set unconditionally
  840. -# because not all systems understand e.g. LANG=C (notably SCO).
  841. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  842. -# Non-C LC_CTYPE values break the ctype check.
  843. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  844. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  845. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  846. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  847. +# There might be people who depend on the old broken behavior: `$host'
  848. +# used to hold the argument of --host etc.
  849. +# FIXME: To remove some day.
  850. +build=$build_alias
  851. +host=$host_alias
  852. +target=$target_alias
  853. +
  854. +# FIXME: To remove some day.
  855. +if test "x$host_alias" != x; then
  856. + if test "x$build_alias" = x; then
  857. + cross_compiling=maybe
  858. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  859. + If a cross compiler is detected then cross compile mode will be used." >&2
  860. + elif test "x$build_alias" != "x$host_alias"; then
  861. + cross_compiling=yes
  862. + fi
  863. +fi
  864. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  865. -rm -rf conftest* confdefs.h
  866. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  867. -echo > confdefs.h
  868. +ac_tool_prefix=
  869. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  870. +
  871. +test "$silent" = yes && exec 6>/dev/null
  872. -# A filename unique to this package, relative to the directory that
  873. -# configure is in, which we can look for to find out if srcdir is correct.
  874. -ac_unique_file=clients/lcdproc/batt.c
  875. # Find the source files, if location was not specified.
  876. if test -z "$srcdir"; then
  877. ac_srcdir_defaulted=yes
  878. # Try the directory containing this script, then its parent.
  879. - ac_prog=$0
  880. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  881. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  882. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  883. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  884. + X"$0" : 'X\(//\)[^/]' \| \
  885. + X"$0" : 'X\(//\)$' \| \
  886. + X"$0" : 'X\(/\)' \| \
  887. + . : '\(.\)' 2>/dev/null ||
  888. +echo X"$0" |
  889. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  890. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  891. + /^X\(\/\/\)$/{ s//\1/; q; }
  892. + /^X\(\/\).*/{ s//\1/; q; }
  893. + s/.*/./; q'`
  894. srcdir=$ac_confdir
  895. if test ! -r $srcdir/$ac_unique_file; then
  896. srcdir=..
  897. @@ -487,13 +726,450 @@
  898. fi
  899. if test ! -r $srcdir/$ac_unique_file; then
  900. if test "$ac_srcdir_defaulted" = yes; then
  901. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  902. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  903. + { (exit 1); exit 1; }; }
  904. else
  905. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  906. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  907. + { (exit 1); exit 1; }; }
  908. fi
  909. fi
  910. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  911. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  912. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  913. + { (exit 1); exit 1; }; }
  914. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  915. +ac_env_build_alias_set=${build_alias+set}
  916. +ac_env_build_alias_value=$build_alias
  917. +ac_cv_env_build_alias_set=${build_alias+set}
  918. +ac_cv_env_build_alias_value=$build_alias
  919. +ac_env_host_alias_set=${host_alias+set}
  920. +ac_env_host_alias_value=$host_alias
  921. +ac_cv_env_host_alias_set=${host_alias+set}
  922. +ac_cv_env_host_alias_value=$host_alias
  923. +ac_env_target_alias_set=${target_alias+set}
  924. +ac_env_target_alias_value=$target_alias
  925. +ac_cv_env_target_alias_set=${target_alias+set}
  926. +ac_cv_env_target_alias_value=$target_alias
  927. +ac_env_CC_set=${CC+set}
  928. +ac_env_CC_value=$CC
  929. +ac_cv_env_CC_set=${CC+set}
  930. +ac_cv_env_CC_value=$CC
  931. +ac_env_CFLAGS_set=${CFLAGS+set}
  932. +ac_env_CFLAGS_value=$CFLAGS
  933. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  934. +ac_cv_env_CFLAGS_value=$CFLAGS
  935. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  936. +ac_env_LDFLAGS_value=$LDFLAGS
  937. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  938. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  939. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  940. +ac_env_CPPFLAGS_value=$CPPFLAGS
  941. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  942. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  943. +ac_env_CPP_set=${CPP+set}
  944. +ac_env_CPP_value=$CPP
  945. +ac_cv_env_CPP_set=${CPP+set}
  946. +ac_cv_env_CPP_value=$CPP
  947. +
  948. +#
  949. +# Report the --help message.
  950. +#
  951. +if test "$ac_init_help" = "long"; then
  952. + # Omit some internal or obsolete options to make the list less imposing.
  953. + # This message is too long to be a string in the A/UX 3.1 sh.
  954. + cat <<_ACEOF
  955. +\`configure' configures this package to adapt to many kinds of systems.
  956. +
  957. +Usage: $0 [OPTION]... [VAR=VALUE]...
  958. +
  959. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  960. +VAR=VALUE. See below for descriptions of some of the useful variables.
  961. +
  962. +Defaults for the options are specified in brackets.
  963. +
  964. +Configuration:
  965. + -h, --help display this help and exit
  966. + --help=short display options specific to this package
  967. + --help=recursive display the short help of all the included packages
  968. + -V, --version display version information and exit
  969. + -q, --quiet, --silent do not print \`checking...' messages
  970. + --cache-file=FILE cache test results in FILE [disabled]
  971. + -C, --config-cache alias for \`--cache-file=config.cache'
  972. + -n, --no-create do not create output files
  973. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  974. +
  975. +_ACEOF
  976. +
  977. + cat <<_ACEOF
  978. +Installation directories:
  979. + --prefix=PREFIX install architecture-independent files in PREFIX
  980. + [$ac_default_prefix]
  981. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  982. + [PREFIX]
  983. +
  984. +By default, \`make install' will install all the files in
  985. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  986. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  987. +for instance \`--prefix=\$HOME'.
  988. +
  989. +For better control, use the options below.
  990. +
  991. +Fine tuning of the installation directories:
  992. + --bindir=DIR user executables [EPREFIX/bin]
  993. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  994. + --libexecdir=DIR program executables [EPREFIX/libexec]
  995. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  996. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  997. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  998. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  999. + --libdir=DIR object code libraries [EPREFIX/lib]
  1000. + --includedir=DIR C header files [PREFIX/include]
  1001. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1002. + --infodir=DIR info documentation [PREFIX/info]
  1003. + --mandir=DIR man documentation [PREFIX/man]
  1004. +_ACEOF
  1005. +
  1006. + cat <<\_ACEOF
  1007. +
  1008. +Program names:
  1009. + --program-prefix=PREFIX prepend PREFIX to installed program names
  1010. + --program-suffix=SUFFIX append SUFFIX to installed program names
  1011. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1012. +
  1013. +System types:
  1014. + --build=BUILD configure for building on BUILD [guessed]
  1015. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1016. +_ACEOF
  1017. +fi
  1018. +
  1019. +if test -n "$ac_init_help"; then
  1020. +
  1021. + cat <<\_ACEOF
  1022. +
  1023. +Optional Features:
  1024. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1025. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1026. + --enable-debug show debug information
  1027. + --enable-stat-nfs display filesystem stats for NFS
  1028. + --enable-stat-smbfs display filesystem stats for SMBFS
  1029. + --enable-drivers=<list> compile driver for LCDs in <list>.
  1030. + drivers may be separated with commas.
  1031. + \"all\" compiles all drivers
  1032. +
  1033. +Optional Packages:
  1034. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1035. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1036. + --with-lcdport=<port> the server port 13666
  1037. + --with-loadmax=<load> Max Load Avg at which the backlight will
  1038. + start blinking 1.3
  1039. + --with-loadmin=<load> Min Load Avg at which the backlight will
  1040. + turn off (asleep) 0.05
  1041. +
  1042. +Some influential environment variables:
  1043. + CC C compiler command
  1044. + CFLAGS C compiler flags
  1045. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1046. + nonstandard directory <lib dir>
  1047. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1048. + headers in a nonstandard directory <include dir>
  1049. + CPP C preprocessor
  1050. +
  1051. +Use these variables to override the choices made by `configure' or to help
  1052. +it to find libraries and programs with nonstandard names/locations.
  1053. +
  1054. +_ACEOF
  1055. +fi
  1056. +
  1057. +if test "$ac_init_help" = "recursive"; then
  1058. + # If there are subdirs, report their specific --help.
  1059. + ac_popdir=`pwd`
  1060. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1061. + test -d $ac_dir || continue
  1062. + ac_builddir=.
  1063. +
  1064. +if test "$ac_dir" != .; then
  1065. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1066. + # A "../" for each directory in $ac_dir_suffix.
  1067. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1068. +else
  1069. + ac_dir_suffix= ac_top_builddir=
  1070. +fi
  1071. +
  1072. +case $srcdir in
  1073. + .) # No --srcdir option. We are building in place.
  1074. + ac_srcdir=.
  1075. + if test -z "$ac_top_builddir"; then
  1076. + ac_top_srcdir=.
  1077. + else
  1078. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1079. + fi ;;
  1080. + [\\/]* | ?:[\\/]* ) # Absolute path.
  1081. + ac_srcdir=$srcdir$ac_dir_suffix;
  1082. + ac_top_srcdir=$srcdir ;;
  1083. + *) # Relative path.
  1084. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1085. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1086. +esac
  1087. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  1088. +# absolute.
  1089. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  1090. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  1091. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  1092. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  1093. +
  1094. + cd $ac_dir
  1095. + # Check for guested configure; otherwise get Cygnus style configure.
  1096. + if test -f $ac_srcdir/configure.gnu; then
  1097. + echo
  1098. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  1099. + elif test -f $ac_srcdir/configure; then
  1100. + echo
  1101. + $SHELL $ac_srcdir/configure --help=recursive
  1102. + elif test -f $ac_srcdir/configure.ac ||
  1103. + test -f $ac_srcdir/configure.in; then
  1104. + echo
  1105. + $ac_configure --help
  1106. + else
  1107. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1108. + fi
  1109. + cd $ac_popdir
  1110. + done
  1111. +fi
  1112. +
  1113. +test -n "$ac_init_help" && exit 0
  1114. +if $ac_init_version; then
  1115. + cat <<\_ACEOF
  1116. +
  1117. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  1118. +Free Software Foundation, Inc.
  1119. +This configure script is free software; the Free Software Foundation
  1120. +gives unlimited permission to copy, distribute and modify it.
  1121. +_ACEOF
  1122. + exit 0
  1123. +fi
  1124. +exec 5>config.log
  1125. +cat >&5 <<_ACEOF
  1126. +This file contains any messages produced by compilers while
  1127. +running configure, to aid debugging if configure makes a mistake.
  1128. +
  1129. +It was created by $as_me, which was
  1130. +generated by GNU Autoconf 2.57. Invocation command line was
  1131. +
  1132. + $ $0 $@
  1133. +
  1134. +_ACEOF
  1135. +{
  1136. +cat <<_ASUNAME
  1137. +## --------- ##
  1138. +## Platform. ##
  1139. +## --------- ##
  1140. +
  1141. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1142. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1143. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1144. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1145. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1146. +
  1147. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1148. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1149. +
  1150. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1151. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1152. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1153. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1154. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1155. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1156. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1157. +
  1158. +_ASUNAME
  1159. +
  1160. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1161. +for as_dir in $PATH
  1162. +do
  1163. + IFS=$as_save_IFS
  1164. + test -z "$as_dir" && as_dir=.
  1165. + echo "PATH: $as_dir"
  1166. +done
  1167. +
  1168. +} >&5
  1169. +
  1170. +cat >&5 <<_ACEOF
  1171. +
  1172. +
  1173. +## ----------- ##
  1174. +## Core tests. ##
  1175. +## ----------- ##
  1176. +
  1177. +_ACEOF
  1178. +
  1179. +
  1180. +# Keep a trace of the command line.
  1181. +# Strip out --no-create and --no-recursion so they do not pile up.
  1182. +# Strip out --silent because we don't want to record it for future runs.
  1183. +# Also quote any args containing shell meta-characters.
  1184. +# Make two passes to allow for proper duplicate-argument suppression.
  1185. +ac_configure_args=
  1186. +ac_configure_args0=
  1187. +ac_configure_args1=
  1188. +ac_sep=
  1189. +ac_must_keep_next=false
  1190. +for ac_pass in 1 2
  1191. +do
  1192. + for ac_arg
  1193. + do
  1194. + case $ac_arg in
  1195. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1196. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1197. + | -silent | --silent | --silen | --sile | --sil)
  1198. + continue ;;
  1199. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1200. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1201. + esac
  1202. + case $ac_pass in
  1203. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1204. + 2)
  1205. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1206. + if test $ac_must_keep_next = true; then
  1207. + ac_must_keep_next=false # Got value, back to normal.
  1208. + else
  1209. + case $ac_arg in
  1210. + *=* | --config-cache | -C | -disable-* | --disable-* \
  1211. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1212. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1213. + | -with-* | --with-* | -without-* | --without-* | --x)
  1214. + case "$ac_configure_args0 " in
  1215. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1216. + esac
  1217. + ;;
  1218. + -* ) ac_must_keep_next=true ;;
  1219. + esac
  1220. + fi
  1221. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1222. + # Get rid of the leading space.
  1223. + ac_sep=" "
  1224. + ;;
  1225. + esac
  1226. + done
  1227. +done
  1228. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1229. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1230. +
  1231. +# When interrupted or exit'd, cleanup temporary files, and complete
  1232. +# config.log. We remove comments because anyway the quotes in there
  1233. +# would cause problems or look ugly.
  1234. +# WARNING: Be sure not to use single quotes in there, as some shells,
  1235. +# such as our DU 5.0 friend, will then `close' the trap.
  1236. +trap 'exit_status=$?
  1237. + # Save into config.log some information that might help in debugging.
  1238. + {
  1239. + echo
  1240. +
  1241. + cat <<\_ASBOX
  1242. +## ---------------- ##
  1243. +## Cache variables. ##
  1244. +## ---------------- ##
  1245. +_ASBOX
  1246. + echo
  1247. + # The following way of writing the cache mishandles newlines in values,
  1248. +{
  1249. + (set) 2>&1 |
  1250. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1251. + *ac_space=\ *)
  1252. + sed -n \
  1253. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1254. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1255. + ;;
  1256. + *)
  1257. + sed -n \
  1258. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1259. + ;;
  1260. + esac;
  1261. +}
  1262. + echo
  1263. +
  1264. + cat <<\_ASBOX
  1265. +## ----------------- ##
  1266. +## Output variables. ##
  1267. +## ----------------- ##
  1268. +_ASBOX
  1269. + echo
  1270. + for ac_var in $ac_subst_vars
  1271. + do
  1272. + eval ac_val=$`echo $ac_var`
  1273. + echo "$ac_var='"'"'$ac_val'"'"'"
  1274. + done | sort
  1275. + echo
  1276. +
  1277. + if test -n "$ac_subst_files"; then
  1278. + cat <<\_ASBOX
  1279. +## ------------- ##
  1280. +## Output files. ##
  1281. +## ------------- ##
  1282. +_ASBOX
  1283. + echo
  1284. + for ac_var in $ac_subst_files
  1285. + do
  1286. + eval ac_val=$`echo $ac_var`
  1287. + echo "$ac_var='"'"'$ac_val'"'"'"
  1288. + done | sort
  1289. + echo
  1290. + fi
  1291. +
  1292. + if test -s confdefs.h; then
  1293. + cat <<\_ASBOX
  1294. +## ----------- ##
  1295. +## confdefs.h. ##
  1296. +## ----------- ##
  1297. +_ASBOX
  1298. + echo
  1299. + sed "/^$/d" confdefs.h | sort
  1300. + echo
  1301. + fi
  1302. + test "$ac_signal" != 0 &&
  1303. + echo "$as_me: caught signal $ac_signal"
  1304. + echo "$as_me: exit $exit_status"
  1305. + } >&5
  1306. + rm -f core core.* *.core &&
  1307. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1308. + exit $exit_status
  1309. + ' 0
  1310. +for ac_signal in 1 2 13 15; do
  1311. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1312. +done
  1313. +ac_signal=0
  1314. +
  1315. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1316. +rm -rf conftest* confdefs.h
  1317. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1318. +echo >confdefs.h
  1319. +
  1320. +# Predefined preprocessor variables.
  1321. +
  1322. +cat >>confdefs.h <<_ACEOF
  1323. +#define PACKAGE_NAME "$PACKAGE_NAME"
  1324. +_ACEOF
  1325. +
  1326. +
  1327. +cat >>confdefs.h <<_ACEOF
  1328. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1329. +_ACEOF
  1330. +
  1331. +
  1332. +cat >>confdefs.h <<_ACEOF
  1333. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  1334. +_ACEOF
  1335. +
  1336. +
  1337. +cat >>confdefs.h <<_ACEOF
  1338. +#define PACKAGE_STRING "$PACKAGE_STRING"
  1339. +_ACEOF
  1340. +
  1341. +
  1342. +cat >>confdefs.h <<_ACEOF
  1343. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1344. +_ACEOF
  1345. +
  1346. +# Let the site file select an alternate cache file if it wants to.
  1347. # Prefer explicitly selected file to automatically selected ones.
  1348. if test -z "$CONFIG_SITE"; then
  1349. if test "x$prefix" != xNONE; then
  1350. @@ -504,39 +1180,103 @@
  1351. fi
  1352. for ac_site_file in $CONFIG_SITE; do
  1353. if test -r "$ac_site_file"; then
  1354. - echo "loading site script $ac_site_file"
  1355. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1356. +echo "$as_me: loading site script $ac_site_file" >&6;}
  1357. + sed 's/^/| /' "$ac_site_file" >&5
  1358. . "$ac_site_file"
  1359. fi
  1360. done
  1361. if test -r "$cache_file"; then
  1362. - echo "loading cache $cache_file"
  1363. - . $cache_file
  1364. + # Some versions of bash will fail to source /dev/null (special
  1365. + # files actually), so we avoid doing that.
  1366. + if test -f "$cache_file"; then
  1367. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1368. +echo "$as_me: loading cache $cache_file" >&6;}
  1369. + case $cache_file in
  1370. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  1371. + *) . ./$cache_file;;
  1372. + esac
  1373. + fi
  1374. else
  1375. - echo "creating cache $cache_file"
  1376. - > $cache_file
  1377. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1378. +echo "$as_me: creating cache $cache_file" >&6;}
  1379. + >$cache_file
  1380. +fi
  1381. +
  1382. +# Check that the precious variables saved in the cache have kept the same
  1383. +# value.
  1384. +ac_cache_corrupted=false
  1385. +for ac_var in `(set) 2>&1 |
  1386. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1387. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1388. + eval ac_new_set=\$ac_env_${ac_var}_set
  1389. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1390. + eval ac_new_val="\$ac_env_${ac_var}_value"
  1391. + case $ac_old_set,$ac_new_set in
  1392. + set,)
  1393. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1394. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1395. + ac_cache_corrupted=: ;;
  1396. + ,set)
  1397. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1398. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1399. + ac_cache_corrupted=: ;;
  1400. + ,);;
  1401. + *)
  1402. + if test "x$ac_old_val" != "x$ac_new_val"; then
  1403. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1404. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1405. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1406. +echo "$as_me: former value: $ac_old_val" >&2;}
  1407. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1408. +echo "$as_me: current value: $ac_new_val" >&2;}
  1409. + ac_cache_corrupted=:
  1410. + fi;;
  1411. + esac
  1412. + # Pass precious variables to config.status.
  1413. + if test "$ac_new_set" = set; then
  1414. + case $ac_new_val in
  1415. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1416. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1417. + *) ac_arg=$ac_var=$ac_new_val ;;
  1418. + esac
  1419. + case " $ac_configure_args " in
  1420. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1421. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1422. + esac
  1423. + fi
  1424. +done
  1425. +if $ac_cache_corrupted; then
  1426. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1427. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1428. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1429. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1430. + { (exit 1); exit 1; }; }
  1431. fi
  1432. ac_ext=c
  1433. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1434. ac_cpp='$CPP $CPPFLAGS'
  1435. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1436. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1437. -cross_compiling=$ac_cv_prog_cc_cross
  1438. -
  1439. -ac_exeext=
  1440. -ac_objext=o
  1441. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1442. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1443. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  1444. - ac_n= ac_c='
  1445. -' ac_t=' '
  1446. - else
  1447. - ac_n=-n ac_c= ac_t=
  1448. - fi
  1449. -else
  1450. - ac_n= ac_c='\c' ac_t=
  1451. -fi
  1452. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1453. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1454. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1455. +
  1456. +
  1457. +
  1458. +
  1459. +
  1460. +
  1461. +
  1462. +
  1463. +
  1464. +
  1465. +
  1466. +
  1467. +
  1468. +
  1469. +
  1470. +
  1471. +
  1472. ac_aux_dir=
  1473. @@ -549,14 +1289,20 @@
  1474. ac_aux_dir=$ac_dir
  1475. ac_install_sh="$ac_aux_dir/install.sh -c"
  1476. break
  1477. + elif test -f $ac_dir/shtool; then
  1478. + ac_aux_dir=$ac_dir
  1479. + ac_install_sh="$ac_aux_dir/shtool install -c"
  1480. + break
  1481. fi
  1482. done
  1483. if test -z "$ac_aux_dir"; then
  1484. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1485. -fi
  1486. -ac_config_guess=$ac_aux_dir/config.guess
  1487. -ac_config_sub=$ac_aux_dir/config.sub
  1488. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1489. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1490. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1491. + { (exit 1); exit 1; }; }
  1492. +fi
  1493. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1494. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1495. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1496. # Find a good install program. We prefer a C program (faster),
  1497. # so one script is as good as another. But avoid the broken or
  1498. @@ -565,65 +1311,78 @@
  1499. # SunOS /usr/etc/install
  1500. # IRIX /sbin/install
  1501. # AIX /bin/install
  1502. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  1503. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1504. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1505. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1506. # ./install, which can be erroneously created by make from ./install.sh.
  1507. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1508. -echo "configure:574: checking for a BSD compatible install" >&5
  1509. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1510. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1511. if test -z "$INSTALL"; then
  1512. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1513. - echo $ac_n "(cached) $ac_c" 1>&6
  1514. +if test "${ac_cv_path_install+set}" = set; then
  1515. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1516. else
  1517. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  1518. - for ac_dir in $PATH; do
  1519. - # Account for people who put trailing slashes in PATH elements.
  1520. - case "$ac_dir/" in
  1521. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1522. - *)
  1523. - # OSF1 and SCO ODT 3.0 have their own names for install.
  1524. - # Don't use installbsd from OSF since it installs stuff as root
  1525. - # by default.
  1526. - for ac_prog in ginstall scoinst install; do
  1527. - if test -f $ac_dir/$ac_prog; then
  1528. - if test $ac_prog = install &&
  1529. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1530. - # AIX install. It has an incompatible calling convention.
  1531. - :
  1532. - else
  1533. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  1534. - break 2
  1535. - fi
  1536. - fi
  1537. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1538. +for as_dir in $PATH
  1539. +do
  1540. + IFS=$as_save_IFS
  1541. + test -z "$as_dir" && as_dir=.
  1542. + # Account for people who put trailing slashes in PATH elements.
  1543. +case $as_dir/ in
  1544. + ./ | .// | /cC/* | \
  1545. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1546. + /usr/ucb/* ) ;;
  1547. + *)
  1548. + # OSF1 and SCO ODT 3.0 have their own names for install.
  1549. + # Don't use installbsd from OSF since it installs stuff as root
  1550. + # by default.
  1551. + for ac_prog in ginstall scoinst install; do
  1552. + for ac_exec_ext in '' $ac_executable_extensions; do
  1553. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1554. + if test $ac_prog = install &&
  1555. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1556. + # AIX install. It has an incompatible calling convention.
  1557. + :
  1558. + elif test $ac_prog = install &&
  1559. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1560. + # program-specific install script used by HP pwplus--don't use.
  1561. + :
  1562. + else
  1563. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1564. + break 3
  1565. + fi
  1566. + fi
  1567. done
  1568. - ;;
  1569. - esac
  1570. - done
  1571. - IFS="$ac_save_IFS"
  1572. + done
  1573. + ;;
  1574. +esac
  1575. +done
  1576. +
  1577. fi
  1578. if test "${ac_cv_path_install+set}" = set; then
  1579. - INSTALL="$ac_cv_path_install"
  1580. + INSTALL=$ac_cv_path_install
  1581. else
  1582. # As a last resort, use the slow shell script. We don't cache a
  1583. # path for INSTALL within a source directory, because that will
  1584. # break other packages using the cache if that directory is
  1585. # removed, or if the path is relative.
  1586. - INSTALL="$ac_install_sh"
  1587. + INSTALL=$ac_install_sh
  1588. fi
  1589. fi
  1590. -echo "$ac_t""$INSTALL" 1>&6
  1591. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  1592. +echo "${ECHO_T}$INSTALL" >&6
  1593. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1594. # It thinks the first close brace ends the variable substitution.
  1595. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1596. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1597. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1598. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1599. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  1600. -echo "configure:627: checking whether build environment is sane" >&5
  1601. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1602. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1603. # Just in case
  1604. sleep 1
  1605. echo timestamp > conftestfile
  1606. @@ -645,8 +1404,11 @@
  1607. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1608. # broken ls alias from the environment. This has actually
  1609. # happened. Such a system could not be considered "sane".
  1610. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  1611. -alias in your environment" 1>&2; exit 1; }
  1612. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1613. +alias in your environment" >&5
  1614. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1615. +alias in your environment" >&2;}
  1616. + { (exit 1); exit 1; }; }
  1617. fi
  1618. test "$2" = conftestfile
  1619. @@ -655,54 +1417,54 @@
  1620. # Ok.
  1621. :
  1622. else
  1623. - { echo "configure: error: newly created file is older than distributed files!
  1624. -Check your system clock" 1>&2; exit 1; }
  1625. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1626. +Check your system clock" >&5
  1627. +echo "$as_me: error: newly created file is older than distributed files!
  1628. +Check your system clock" >&2;}
  1629. + { (exit 1); exit 1; }; }
  1630. fi
  1631. rm -f conftest*
  1632. -echo "$ac_t""yes" 1>&6
  1633. -if test "$program_transform_name" = s,x,x,; then
  1634. - program_transform_name=
  1635. -else
  1636. - # Double any \ or $. echo might interpret backslashes.
  1637. - cat <<\EOF_SED > conftestsed
  1638. -s,\\,\\\\,g; s,\$,$$,g
  1639. -EOF_SED
  1640. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  1641. - rm -f conftestsed
  1642. -fi
  1643. +echo "$as_me:$LINENO: result: yes" >&5
  1644. +echo "${ECHO_T}yes" >&6
  1645. test "$program_prefix" != NONE &&
  1646. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  1647. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1648. # Use a double $ so make ignores it.
  1649. test "$program_suffix" != NONE &&
  1650. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  1651. -
  1652. -# sed with no file args requires a program.
  1653. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  1654. -
  1655. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  1656. -echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
  1657. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  1658. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  1659. - echo $ac_n "(cached) $ac_c" 1>&6
  1660. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1661. +# Double any \ or $. echo might interpret backslashes.
  1662. +# By default was `s,x,x', remove it if useless.
  1663. +cat <<\_ACEOF >conftest.sed
  1664. +s/[\\$]/&&/g;s/;s,x,x,$//
  1665. +_ACEOF
  1666. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1667. +rm conftest.sed
  1668. +
  1669. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1670. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1671. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  1672. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1673. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1674. else
  1675. - cat > conftestmake <<\EOF
  1676. + cat >conftest.make <<\_ACEOF
  1677. all:
  1678. - @echo 'ac_maketemp="${MAKE}"'
  1679. -EOF
  1680. + @echo 'ac_maketemp="$(MAKE)"'
  1681. +_ACEOF
  1682. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1683. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  1684. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1685. if test -n "$ac_maketemp"; then
  1686. eval ac_cv_prog_make_${ac_make}_set=yes
  1687. else
  1688. eval ac_cv_prog_make_${ac_make}_set=no
  1689. fi
  1690. -rm -f conftestmake
  1691. +rm -f conftest.make
  1692. fi
  1693. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1694. - echo "$ac_t""yes" 1>&6
  1695. + echo "$as_me:$LINENO: result: yes" >&5
  1696. +echo "${ECHO_T}yes" >&6
  1697. SET_MAKE=
  1698. else
  1699. - echo "$ac_t""no" 1>&6
  1700. + echo "$as_me:$LINENO: result: no" >&5
  1701. +echo "${ECHO_T}no" >&6
  1702. SET_MAKE="MAKE=${MAKE-make}"
  1703. fi
  1704. @@ -712,147 +1474,194 @@
  1705. VERSION=0.4.1
  1706. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  1707. - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  1708. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1709. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1710. + { (exit 1); exit 1; }; }
  1711. fi
  1712. -cat >> confdefs.h <<EOF
  1713. +
  1714. +cat >>confdefs.h <<_ACEOF
  1715. #define PACKAGE "$PACKAGE"
  1716. -EOF
  1717. +_ACEOF
  1718. -cat >> confdefs.h <<EOF
  1719. +
  1720. +cat >>confdefs.h <<_ACEOF
  1721. #define VERSION "$VERSION"
  1722. -EOF
  1723. +_ACEOF
  1724. missing_dir=`cd $ac_aux_dir && pwd`
  1725. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  1726. -echo "configure:730: checking for working aclocal" >&5
  1727. +echo "$as_me:$LINENO: checking for working aclocal" >&5
  1728. +echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
  1729. # Run test in a subshell; some versions of sh will print an error if
  1730. # an executable is not found, even if stderr is redirected.
  1731. # Redirect stdin to placate older versions of autoconf. Sigh.
  1732. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  1733. ACLOCAL=aclocal
  1734. - echo "$ac_t""found" 1>&6
  1735. + echo "$as_me:$LINENO: result: found" >&5
  1736. +echo "${ECHO_T}found" >&6
  1737. else
  1738. ACLOCAL="$missing_dir/missing aclocal"
  1739. - echo "$ac_t""missing" 1>&6
  1740. + echo "$as_me:$LINENO: result: missing" >&5
  1741. +echo "${ECHO_T}missing" >&6
  1742. fi
  1743. -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  1744. -echo "configure:743: checking for working autoconf" >&5
  1745. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  1746. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  1747. # Run test in a subshell; some versions of sh will print an error if
  1748. # an executable is not found, even if stderr is redirected.
  1749. # Redirect stdin to placate older versions of autoconf. Sigh.
  1750. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  1751. AUTOCONF=autoconf
  1752. - echo "$ac_t""found" 1>&6
  1753. + echo "$as_me:$LINENO: result: found" >&5
  1754. +echo "${ECHO_T}found" >&6
  1755. else
  1756. AUTOCONF="$missing_dir/missing autoconf"
  1757. - echo "$ac_t""missing" 1>&6
  1758. + echo "$as_me:$LINENO: result: missing" >&5
  1759. +echo "${ECHO_T}missing" >&6
  1760. fi
  1761. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  1762. -echo "configure:756: checking for working automake" >&5
  1763. +echo "$as_me:$LINENO: checking for working automake" >&5
  1764. +echo $ECHO_N "checking for working automake... $ECHO_C" >&6
  1765. # Run test in a subshell; some versions of sh will print an error if
  1766. # an executable is not found, even if stderr is redirected.
  1767. # Redirect stdin to placate older versions of autoconf. Sigh.
  1768. if (automake --version) < /dev/null > /dev/null 2>&1; then
  1769. AUTOMAKE=automake
  1770. - echo "$ac_t""found" 1>&6
  1771. + echo "$as_me:$LINENO: result: found" >&5
  1772. +echo "${ECHO_T}found" >&6
  1773. else
  1774. AUTOMAKE="$missing_dir/missing automake"
  1775. - echo "$ac_t""missing" 1>&6
  1776. + echo "$as_me:$LINENO: result: missing" >&5
  1777. +echo "${ECHO_T}missing" >&6
  1778. fi
  1779. -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  1780. -echo "configure:769: checking for working autoheader" >&5
  1781. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  1782. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  1783. # Run test in a subshell; some versions of sh will print an error if
  1784. # an executable is not found, even if stderr is redirected.
  1785. # Redirect stdin to placate older versions of autoconf. Sigh.
  1786. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  1787. AUTOHEADER=autoheader
  1788. - echo "$ac_t""found" 1>&6
  1789. + echo "$as_me:$LINENO: result: found" >&5
  1790. +echo "${ECHO_T}found" >&6
  1791. else
  1792. AUTOHEADER="$missing_dir/missing autoheader"
  1793. - echo "$ac_t""missing" 1>&6
  1794. + echo "$as_me:$LINENO: result: missing" >&5
  1795. +echo "${ECHO_T}missing" >&6
  1796. fi
  1797. -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  1798. -echo "configure:782: checking for working makeinfo" >&5
  1799. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  1800. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  1801. # Run test in a subshell; some versions of sh will print an error if
  1802. # an executable is not found, even if stderr is redirected.
  1803. # Redirect stdin to placate older versions of autoconf. Sigh.
  1804. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  1805. MAKEINFO=makeinfo
  1806. - echo "$ac_t""found" 1>&6
  1807. + echo "$as_me:$LINENO: result: found" >&5
  1808. +echo "${ECHO_T}found" >&6
  1809. else
  1810. MAKEINFO="$missing_dir/missing makeinfo"
  1811. - echo "$ac_t""missing" 1>&6
  1812. + echo "$as_me:$LINENO: result: missing" >&5
  1813. +echo "${ECHO_T}missing" >&6
  1814. fi
  1815. + ac_config_headers="$ac_config_headers config.h"
  1816. -
  1817. + ac_config_commands="$ac_config_commands default-1"
  1818. # Make sure we can run config.sub.
  1819. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1820. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1821. -fi
  1822. -
  1823. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  1824. -echo "configure:806: checking host system type" >&5
  1825. -
  1826. -host_alias=$host
  1827. -case "$host_alias" in
  1828. -NONE)
  1829. - case $nonopt in
  1830. - NONE)
  1831. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1832. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1833. - fi ;;
  1834. - *) host_alias=$nonopt ;;
  1835. - esac ;;
  1836. -esac
  1837. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  1838. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1839. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1840. + { (exit 1); exit 1; }; }
  1841. +
  1842. +echo "$as_me:$LINENO: checking build system type" >&5
  1843. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1844. +if test "${ac_cv_build+set}" = set; then
  1845. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1846. +else
  1847. + ac_cv_build_alias=$build_alias
  1848. +test -z "$ac_cv_build_alias" &&
  1849. + ac_cv_build_alias=`$ac_config_guess`
  1850. +test -z "$ac_cv_build_alias" &&
  1851. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1852. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1853. + { (exit 1); exit 1; }; }
  1854. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1855. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1856. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1857. + { (exit 1); exit 1; }; }
  1858. +
  1859. +fi
  1860. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1861. +echo "${ECHO_T}$ac_cv_build" >&6
  1862. +build=$ac_cv_build
  1863. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1864. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1865. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1866. +
  1867. +
  1868. +echo "$as_me:$LINENO: checking host system type" >&5
  1869. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1870. +if test "${ac_cv_host+set}" = set; then
  1871. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1872. +else
  1873. + ac_cv_host_alias=$host_alias
  1874. +test -z "$ac_cv_host_alias" &&
  1875. + ac_cv_host_alias=$ac_cv_build_alias
  1876. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1877. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1878. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1879. + { (exit 1); exit 1; }; }
  1880. +
  1881. +fi
  1882. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1883. +echo "${ECHO_T}$ac_cv_host" >&6
  1884. +host=$ac_cv_host
  1885. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1886. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1887. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1888. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1889. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1890. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1891. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1892. -echo "$ac_t""$host" 1>&6
  1893. case "$host" in
  1894. -*-*-*linux*)
  1895. - cat >> confdefs.h <<\EOF
  1896. +*-*-*linux*)
  1897. + cat >>confdefs.h <<\_ACEOF
  1898. #define LINUX 1
  1899. -EOF
  1900. +_ACEOF
  1901. ;;
  1902. *-*-*solaris*)
  1903. - cat >> confdefs.h <<\EOF
  1904. + cat >>confdefs.h <<\_ACEOF
  1905. #define SOLARIS 1
  1906. -EOF
  1907. +_ACEOF
  1908. ;;
  1909. esac
  1910. -echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
  1911. -echo "configure:842: checking whether to enable debugging" >&5
  1912. +echo "$as_me:$LINENO: checking whether to enable debugging" >&5
  1913. +echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
  1914. # Check whether --enable-debug or --disable-debug was given.
  1915. if test "${enable_debug+set}" = set; then
  1916. enableval="$enable_debug"
  1917. - cat >> confdefs.h <<\EOF
  1918. + if [ "$enableval" = "yes" ]; then
  1919. + cat >>confdefs.h <<\_ACEOF
  1920. #define DEBUG 1
  1921. -EOF
  1922. +_ACEOF
  1923. - debug="yes"
  1924. + debug="yes"
  1925. + else
  1926. + debug="no"
  1927. + fi
  1928. else
  1929. debug="no"
  1930. -fi
  1931. -
  1932. -echo "$ac_t""$debug" 1>&6
  1933. +fi;
  1934. +echo "$as_me:$LINENO: result: $debug" >&5
  1935. +echo "${ECHO_T}$debug" >&6
  1936. if test $debug = "yes"; then
  1937. CFLAGS="-g"
  1938. @@ -862,214 +1671,643 @@
  1939. CFLAGS="-Wall $CFLAGS"
  1940. export CFLAGS
  1941. -# Extract the first word of "gcc", so it can be a program name with args.
  1942. +ac_ext=c
  1943. +ac_cpp='$CPP $CPPFLAGS'
  1944. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1945. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1946. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1947. +if test -n "$ac_tool_prefix"; then
  1948. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1949. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1950. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1951. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1952. +if test "${ac_cv_prog_CC+set}" = set; then
  1953. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1954. +else
  1955. + if test -n "$CC"; then
  1956. + ac_cv_prog_CC="$CC" # Let the user override the test.
  1957. +else
  1958. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1959. +for as_dir in $PATH
  1960. +do
  1961. + IFS=$as_save_IFS
  1962. + test -z "$as_dir" && as_dir=.
  1963. + for ac_exec_ext in '' $ac_executable_extensions; do
  1964. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1965. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1966. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1967. + break 2
  1968. + fi
  1969. +done
  1970. +done
  1971. +
  1972. +fi
  1973. +fi
  1974. +CC=$ac_cv_prog_CC
  1975. +if test -n "$CC"; then
  1976. + echo "$as_me:$LINENO: result: $CC" >&5
  1977. +echo "${ECHO_T}$CC" >&6
  1978. +else
  1979. + echo "$as_me:$LINENO: result: no" >&5
  1980. +echo "${ECHO_T}no" >&6
  1981. +fi
  1982. +
  1983. +fi
  1984. +if test -z "$ac_cv_prog_CC"; then
  1985. + ac_ct_CC=$CC
  1986. + # Extract the first word of "gcc", so it can be a program name with args.
  1987. set dummy gcc; ac_word=$2
  1988. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1989. -echo "configure:869: checking for $ac_word" >&5
  1990. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1991. - echo $ac_n "(cached) $ac_c" 1>&6
  1992. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1993. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1994. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1995. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1996. +else
  1997. + if test -n "$ac_ct_CC"; then
  1998. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1999. +else
  2000. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2001. +for as_dir in $PATH
  2002. +do
  2003. + IFS=$as_save_IFS
  2004. + test -z "$as_dir" && as_dir=.
  2005. + for ac_exec_ext in '' $ac_executable_extensions; do
  2006. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2007. + ac_cv_prog_ac_ct_CC="gcc"
  2008. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2009. + break 2
  2010. + fi
  2011. +done
  2012. +done
  2013. +
  2014. +fi
  2015. +fi
  2016. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2017. +if test -n "$ac_ct_CC"; then
  2018. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2019. +echo "${ECHO_T}$ac_ct_CC" >&6
  2020. +else
  2021. + echo "$as_me:$LINENO: result: no" >&5
  2022. +echo "${ECHO_T}no" >&6
  2023. +fi
  2024. +
  2025. + CC=$ac_ct_CC
  2026. +else
  2027. + CC="$ac_cv_prog_CC"
  2028. +fi
  2029. +
  2030. +if test -z "$CC"; then
  2031. + if test -n "$ac_tool_prefix"; then
  2032. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2033. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  2034. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2035. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2036. +if test "${ac_cv_prog_CC+set}" = set; then
  2037. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2038. else
  2039. if test -n "$CC"; then
  2040. ac_cv_prog_CC="$CC" # Let the user override the test.
  2041. else
  2042. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2043. - ac_dummy="$PATH"
  2044. - for ac_dir in $ac_dummy; do
  2045. - test -z "$ac_dir" && ac_dir=.
  2046. - if test -f $ac_dir/$ac_word; then
  2047. - ac_cv_prog_CC="gcc"
  2048. - break
  2049. - fi
  2050. - done
  2051. - IFS="$ac_save_ifs"
  2052. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2053. +for as_dir in $PATH
  2054. +do
  2055. + IFS=$as_save_IFS
  2056. + test -z "$as_dir" && as_dir=.
  2057. + for ac_exec_ext in '' $ac_executable_extensions; do
  2058. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2059. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  2060. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2061. + break 2
  2062. + fi
  2063. +done
  2064. +done
  2065. +
  2066. fi
  2067. fi
  2068. -CC="$ac_cv_prog_CC"
  2069. +CC=$ac_cv_prog_CC
  2070. if test -n "$CC"; then
  2071. - echo "$ac_t""$CC" 1>&6
  2072. + echo "$as_me:$LINENO: result: $CC" >&5
  2073. +echo "${ECHO_T}$CC" >&6
  2074. +else
  2075. + echo "$as_me:$LINENO: result: no" >&5
  2076. +echo "${ECHO_T}no" >&6
  2077. +fi
  2078. +
  2079. +fi
  2080. +if test -z "$ac_cv_prog_CC"; then
  2081. + ac_ct_CC=$CC
  2082. + # Extract the first word of "cc", so it can be a program name with args.
  2083. +set dummy cc; ac_word=$2
  2084. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2085. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2086. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2087. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2088. +else
  2089. + if test -n "$ac_ct_CC"; then
  2090. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2091. +else
  2092. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2093. +for as_dir in $PATH
  2094. +do
  2095. + IFS=$as_save_IFS
  2096. + test -z "$as_dir" && as_dir=.
  2097. + for ac_exec_ext in '' $ac_executable_extensions; do
  2098. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2099. + ac_cv_prog_ac_ct_CC="cc"
  2100. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2101. + break 2
  2102. + fi
  2103. +done
  2104. +done
  2105. +
  2106. +fi
  2107. +fi
  2108. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2109. +if test -n "$ac_ct_CC"; then
  2110. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2111. +echo "${ECHO_T}$ac_ct_CC" >&6
  2112. +else
  2113. + echo "$as_me:$LINENO: result: no" >&5
  2114. +echo "${ECHO_T}no" >&6
  2115. +fi
  2116. +
  2117. + CC=$ac_ct_CC
  2118. else
  2119. - echo "$ac_t""no" 1>&6
  2120. + CC="$ac_cv_prog_CC"
  2121. fi
  2122. +fi
  2123. if test -z "$CC"; then
  2124. # Extract the first word of "cc", so it can be a program name with args.
  2125. set dummy cc; ac_word=$2
  2126. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2127. -echo "configure:899: checking for $ac_word" >&5
  2128. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2129. - echo $ac_n "(cached) $ac_c" 1>&6
  2130. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2131. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2132. +if test "${ac_cv_prog_CC+set}" = set; then
  2133. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2134. else
  2135. if test -n "$CC"; then
  2136. ac_cv_prog_CC="$CC" # Let the user override the test.
  2137. else
  2138. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2139. ac_prog_rejected=no
  2140. - ac_dummy="$PATH"
  2141. - for ac_dir in $ac_dummy; do
  2142. - test -z "$ac_dir" && ac_dir=.
  2143. - if test -f $ac_dir/$ac_word; then
  2144. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2145. - ac_prog_rejected=yes
  2146. - continue
  2147. - fi
  2148. - ac_cv_prog_CC="cc"
  2149. - break
  2150. - fi
  2151. - done
  2152. - IFS="$ac_save_ifs"
  2153. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2154. +for as_dir in $PATH
  2155. +do
  2156. + IFS=$as_save_IFS
  2157. + test -z "$as_dir" && as_dir=.
  2158. + for ac_exec_ext in '' $ac_executable_extensions; do
  2159. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2160. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2161. + ac_prog_rejected=yes
  2162. + continue
  2163. + fi
  2164. + ac_cv_prog_CC="cc"
  2165. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2166. + break 2
  2167. + fi
  2168. +done
  2169. +done
  2170. +
  2171. if test $ac_prog_rejected = yes; then
  2172. # We found a bogon in the path, so make sure we never use it.
  2173. set dummy $ac_cv_prog_CC
  2174. shift
  2175. - if test $# -gt 0; then
  2176. + if test $# != 0; then
  2177. # We chose a different compiler from the bogus one.
  2178. # However, it has the same basename, so the bogon will be chosen
  2179. # first if we set CC to just the basename; use the full file name.
  2180. shift
  2181. - set dummy "$ac_dir/$ac_word" "$@"
  2182. - shift
  2183. - ac_cv_prog_CC="$@"
  2184. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2185. fi
  2186. fi
  2187. fi
  2188. fi
  2189. -CC="$ac_cv_prog_CC"
  2190. +CC=$ac_cv_prog_CC
  2191. if test -n "$CC"; then
  2192. - echo "$ac_t""$CC" 1>&6
  2193. + echo "$as_me:$LINENO: result: $CC" >&5
  2194. +echo "${ECHO_T}$CC" >&6
  2195. else
  2196. - echo "$ac_t""no" 1>&6
  2197. + echo "$as_me:$LINENO: result: no" >&5
  2198. +echo "${ECHO_T}no" >&6
  2199. fi
  2200. - if test -z "$CC"; then
  2201. - case "`uname -s`" in
  2202. - *win32* | *WIN32*)
  2203. - # Extract the first word of "cl", so it can be a program name with args.
  2204. -set dummy cl; ac_word=$2
  2205. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2206. -echo "configure:950: checking for $ac_word" >&5
  2207. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2208. - echo $ac_n "(cached) $ac_c" 1>&6
  2209. +fi
  2210. +if test -z "$CC"; then
  2211. + if test -n "$ac_tool_prefix"; then
  2212. + for ac_prog in cl
  2213. + do
  2214. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2215. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2216. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2217. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2218. +if test "${ac_cv_prog_CC+set}" = set; then
  2219. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2220. else
  2221. if test -n "$CC"; then
  2222. ac_cv_prog_CC="$CC" # Let the user override the test.
  2223. else
  2224. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2225. - ac_dummy="$PATH"
  2226. - for ac_dir in $ac_dummy; do
  2227. - test -z "$ac_dir" && ac_dir=.
  2228. - if test -f $ac_dir/$ac_word; then
  2229. - ac_cv_prog_CC="cl"
  2230. - break
  2231. - fi
  2232. - done
  2233. - IFS="$ac_save_ifs"
  2234. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2235. +for as_dir in $PATH
  2236. +do
  2237. + IFS=$as_save_IFS
  2238. + test -z "$as_dir" && as_dir=.
  2239. + for ac_exec_ext in '' $ac_executable_extensions; do
  2240. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2241. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2242. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2243. + break 2
  2244. + fi
  2245. +done
  2246. +done
  2247. +
  2248. fi
  2249. fi
  2250. -CC="$ac_cv_prog_CC"
  2251. +CC=$ac_cv_prog_CC
  2252. if test -n "$CC"; then
  2253. - echo "$ac_t""$CC" 1>&6
  2254. + echo "$as_me:$LINENO: result: $CC" >&5
  2255. +echo "${ECHO_T}$CC" >&6
  2256. else
  2257. - echo "$ac_t""no" 1>&6
  2258. + echo "$as_me:$LINENO: result: no" >&5
  2259. +echo "${ECHO_T}no" >&6
  2260. fi
  2261. - ;;
  2262. - esac
  2263. +
  2264. + test -n "$CC" && break
  2265. + done
  2266. +fi
  2267. +if test -z "$CC"; then
  2268. + ac_ct_CC=$CC
  2269. + for ac_prog in cl
  2270. +do
  2271. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2272. +set dummy $ac_prog; ac_word=$2
  2273. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2274. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2275. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2276. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2277. +else
  2278. + if test -n "$ac_ct_CC"; then
  2279. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2280. +else
  2281. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2282. +for as_dir in $PATH
  2283. +do
  2284. + IFS=$as_save_IFS
  2285. + test -z "$as_dir" && as_dir=.
  2286. + for ac_exec_ext in '' $ac_executable_extensions; do
  2287. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2288. + ac_cv_prog_ac_ct_CC="$ac_prog"
  2289. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2290. + break 2
  2291. fi
  2292. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2293. +done
  2294. +done
  2295. +
  2296. +fi
  2297. +fi
  2298. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2299. +if test -n "$ac_ct_CC"; then
  2300. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2301. +echo "${ECHO_T}$ac_ct_CC" >&6
  2302. +else
  2303. + echo "$as_me:$LINENO: result: no" >&5
  2304. +echo "${ECHO_T}no" >&6
  2305. fi
  2306. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2307. -echo "configure:982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2308. + test -n "$ac_ct_CC" && break
  2309. +done
  2310. -ac_ext=c
  2311. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2312. -ac_cpp='$CPP $CPPFLAGS'
  2313. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2314. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2315. -cross_compiling=$ac_cv_prog_cc_cross
  2316. + CC=$ac_ct_CC
  2317. +fi
  2318. -cat > conftest.$ac_ext << EOF
  2319. +fi
  2320. -#line 993 "configure"
  2321. -#include "confdefs.h"
  2322. -main(){return(0);}
  2323. -EOF
  2324. -if { (eval echo configure:998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2325. - ac_cv_prog_cc_works=yes
  2326. - # If we can't run a trivial program, we are probably using a cross compiler.
  2327. - if (./conftest; exit) 2>/dev/null; then
  2328. - ac_cv_prog_cc_cross=no
  2329. - else
  2330. - ac_cv_prog_cc_cross=yes
  2331. - fi
  2332. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2333. +See \`config.log' for more details." >&5
  2334. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  2335. +See \`config.log' for more details." >&2;}
  2336. + { (exit 1); exit 1; }; }
  2337. +
  2338. +# Provide some information about the compiler.
  2339. +echo "$as_me:$LINENO:" \
  2340. + "checking for C compiler version" >&5
  2341. +ac_compiler=`set X $ac_compile; echo $2`
  2342. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2343. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  2344. + ac_status=$?
  2345. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2346. + (exit $ac_status); }
  2347. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2348. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  2349. + ac_status=$?
  2350. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2351. + (exit $ac_status); }
  2352. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2353. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  2354. + ac_status=$?
  2355. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2356. + (exit $ac_status); }
  2357. +
  2358. +cat >conftest.$ac_ext <<_ACEOF
  2359. +#line $LINENO "configure"
  2360. +/* confdefs.h. */
  2361. +_ACEOF
  2362. +cat confdefs.h >>conftest.$ac_ext
  2363. +cat >>conftest.$ac_ext <<_ACEOF
  2364. +/* end confdefs.h. */
  2365. +
  2366. +int
  2367. +main ()
  2368. +{
  2369. +
  2370. + ;
  2371. + return 0;
  2372. +}
  2373. +_ACEOF
  2374. +ac_clean_files_save=$ac_clean_files
  2375. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2376. +# Try to create an executable without -o first, disregard a.out.
  2377. +# It will help us diagnose broken compilers, and finding out an intuition
  2378. +# of exeext.
  2379. +echo "$as_me:$LINENO: checking for C compiler default output" >&5
  2380. +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  2381. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2382. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2383. + (eval $ac_link_default) 2>&5
  2384. + ac_status=$?
  2385. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2386. + (exit $ac_status); }; then
  2387. + # Find the output, starting from the most likely. This scheme is
  2388. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2389. +# resort.
  2390. +
  2391. +# Be careful to initialize this variable, since it used to be cached.
  2392. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2393. +ac_cv_exeext=
  2394. +# b.out is created by i960 compilers.
  2395. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2396. +do
  2397. + test -f "$ac_file" || continue
  2398. + case $ac_file in
  2399. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2400. + ;;
  2401. + conftest.$ac_ext )
  2402. + # This is the source file.
  2403. + ;;
  2404. + [ab].out )
  2405. + # We found the default executable, but exeext='' is most
  2406. + # certainly right.
  2407. + break;;
  2408. + *.* )
  2409. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2410. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  2411. + # but it would be cool to find out if it's true. Does anybody
  2412. + # maintain Libtool? --akim.
  2413. + export ac_cv_exeext
  2414. + break;;
  2415. + * )
  2416. + break;;
  2417. + esac
  2418. +done
  2419. else
  2420. - echo "configure: failed program was:" >&5
  2421. - cat conftest.$ac_ext >&5
  2422. - ac_cv_prog_cc_works=no
  2423. -fi
  2424. -rm -fr conftest*
  2425. -ac_ext=c
  2426. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2427. -ac_cpp='$CPP $CPPFLAGS'
  2428. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2429. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2430. -cross_compiling=$ac_cv_prog_cc_cross
  2431. + echo "$as_me: failed program was:" >&5
  2432. +sed 's/^/| /' conftest.$ac_ext >&5
  2433. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2434. -if test $ac_cv_prog_cc_works = no; then
  2435. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2436. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2437. +See \`config.log' for more details." >&5
  2438. +echo "$as_me: error: C compiler cannot create executables
  2439. +See \`config.log' for more details." >&2;}
  2440. + { (exit 77); exit 77; }; }
  2441. +fi
  2442. +
  2443. +ac_exeext=$ac_cv_exeext
  2444. +echo "$as_me:$LINENO: result: $ac_file" >&5
  2445. +echo "${ECHO_T}$ac_file" >&6
  2446. +
  2447. +# Check the compiler produces executables we can run. If not, either
  2448. +# the compiler is broken, or we cross compile.
  2449. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2450. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2451. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2452. +# If not cross compiling, check that we can run a simple program.
  2453. +if test "$cross_compiling" != yes; then
  2454. + if { ac_try='./$ac_file'
  2455. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2456. + (eval $ac_try) 2>&5
  2457. + ac_status=$?
  2458. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2459. + (exit $ac_status); }; }; then
  2460. + cross_compiling=no
  2461. + else
  2462. + if test "$cross_compiling" = maybe; then
  2463. + cross_compiling=yes
  2464. + else
  2465. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2466. +If you meant to cross compile, use \`--host'.
  2467. +See \`config.log' for more details." >&5
  2468. +echo "$as_me: error: cannot run C compiled programs.
  2469. +If you meant to cross compile, use \`--host'.
  2470. +See \`config.log' for more details." >&2;}
  2471. + { (exit 1); exit 1; }; }
  2472. + fi
  2473. + fi
  2474. fi
  2475. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2476. -echo "configure:1024: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2477. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2478. -cross_compiling=$ac_cv_prog_cc_cross
  2479. +echo "$as_me:$LINENO: result: yes" >&5
  2480. +echo "${ECHO_T}yes" >&6
  2481. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2482. -echo "configure:1029: checking whether we are using GNU C" >&5
  2483. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2484. - echo $ac_n "(cached) $ac_c" 1>&6
  2485. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2486. +ac_clean_files=$ac_clean_files_save
  2487. +# Check the compiler produces executables we can run. If not, either
  2488. +# the compiler is broken, or we cross compile.
  2489. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2490. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2491. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2492. +echo "${ECHO_T}$cross_compiling" >&6
  2493. +
  2494. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2495. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2496. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2497. + (eval $ac_link) 2>&5
  2498. + ac_status=$?
  2499. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2500. + (exit $ac_status); }; then
  2501. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2502. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2503. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  2504. +# `rm'.
  2505. +for ac_file in conftest.exe conftest conftest.*; do
  2506. + test -f "$ac_file" || continue
  2507. + case $ac_file in
  2508. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2509. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2510. + export ac_cv_exeext
  2511. + break;;
  2512. + * ) break;;
  2513. + esac
  2514. +done
  2515. else
  2516. - cat > conftest.c <<EOF
  2517. -#ifdef __GNUC__
  2518. - yes;
  2519. -#endif
  2520. -EOF
  2521. -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
  2522. - ac_cv_prog_gcc=yes
  2523. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2524. +See \`config.log' for more details." >&5
  2525. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2526. +See \`config.log' for more details." >&2;}
  2527. + { (exit 1); exit 1; }; }
  2528. +fi
  2529. +
  2530. +rm -f conftest$ac_cv_exeext
  2531. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2532. +echo "${ECHO_T}$ac_cv_exeext" >&6
  2533. +
  2534. +rm -f conftest.$ac_ext
  2535. +EXEEXT=$ac_cv_exeext
  2536. +ac_exeext=$EXEEXT
  2537. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2538. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2539. +if test "${ac_cv_objext+set}" = set; then
  2540. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2541. +else
  2542. + cat >conftest.$ac_ext <<_ACEOF
  2543. +#line $LINENO "configure"
  2544. +/* confdefs.h. */
  2545. +_ACEOF
  2546. +cat confdefs.h >>conftest.$ac_ext
  2547. +cat >>conftest.$ac_ext <<_ACEOF
  2548. +/* end confdefs.h. */
  2549. +
  2550. +int
  2551. +main ()
  2552. +{
  2553. +
  2554. + ;
  2555. + return 0;
  2556. +}
  2557. +_ACEOF
  2558. +rm -f conftest.o conftest.obj
  2559. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2560. + (eval $ac_compile) 2>&5
  2561. + ac_status=$?
  2562. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2563. + (exit $ac_status); }; then
  2564. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2565. + case $ac_file in
  2566. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2567. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2568. + break;;
  2569. + esac
  2570. +done
  2571. else
  2572. - ac_cv_prog_gcc=no
  2573. -fi
  2574. -fi
  2575. + echo "$as_me: failed program was:" >&5
  2576. +sed 's/^/| /' conftest.$ac_ext >&5
  2577. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2578. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2579. +See \`config.log' for more details." >&5
  2580. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2581. +See \`config.log' for more details." >&2;}
  2582. + { (exit 1); exit 1; }; }
  2583. +fi
  2584. +
  2585. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2586. +fi
  2587. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2588. +echo "${ECHO_T}$ac_cv_objext" >&6
  2589. +OBJEXT=$ac_cv_objext
  2590. +ac_objext=$OBJEXT
  2591. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2592. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2593. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2594. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2595. +else
  2596. + cat >conftest.$ac_ext <<_ACEOF
  2597. +#line $LINENO "configure"
  2598. +/* confdefs.h. */
  2599. +_ACEOF
  2600. +cat confdefs.h >>conftest.$ac_ext
  2601. +cat >>conftest.$ac_ext <<_ACEOF
  2602. +/* end confdefs.h. */
  2603. +
  2604. +int
  2605. +main ()
  2606. +{
  2607. +#ifndef __GNUC__
  2608. + choke me
  2609. +#endif
  2610. -if test $ac_cv_prog_gcc = yes; then
  2611. - GCC=yes
  2612. -else
  2613. - GCC=
  2614. -fi
  2615. + ;
  2616. + return 0;
  2617. +}
  2618. +_ACEOF
  2619. +rm -f conftest.$ac_objext
  2620. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2621. + (eval $ac_compile) 2>&5
  2622. + ac_status=$?
  2623. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2624. + (exit $ac_status); } &&
  2625. + { ac_try='test -s conftest.$ac_objext'
  2626. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2627. + (eval $ac_try) 2>&5
  2628. + ac_status=$?
  2629. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2630. + (exit $ac_status); }; }; then
  2631. + ac_compiler_gnu=yes
  2632. +else
  2633. + echo "$as_me: failed program was:" >&5
  2634. +sed 's/^/| /' conftest.$ac_ext >&5
  2635. +
  2636. +ac_compiler_gnu=no
  2637. +fi
  2638. +rm -f conftest.$ac_objext conftest.$ac_ext
  2639. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2640. +
  2641. +fi
  2642. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2643. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2644. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  2645. +ac_test_CFLAGS=${CFLAGS+set}
  2646. +ac_save_CFLAGS=$CFLAGS
  2647. +CFLAGS="-g"
  2648. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2649. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2650. +if test "${ac_cv_prog_cc_g+set}" = set; then
  2651. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2652. +else
  2653. + cat >conftest.$ac_ext <<_ACEOF
  2654. +#line $LINENO "configure"
  2655. +/* confdefs.h. */
  2656. +_ACEOF
  2657. +cat confdefs.h >>conftest.$ac_ext
  2658. +cat >>conftest.$ac_ext <<_ACEOF
  2659. +/* end confdefs.h. */
  2660. +
  2661. +int
  2662. +main ()
  2663. +{
  2664. -ac_test_CFLAGS="${CFLAGS+set}"
  2665. -ac_save_CFLAGS="$CFLAGS"
  2666. -CFLAGS=
  2667. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2668. -echo "configure:1057: checking whether ${CC-cc} accepts -g" >&5
  2669. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2670. - echo $ac_n "(cached) $ac_c" 1>&6
  2671. -else
  2672. - echo 'void f(){}' > conftest.c
  2673. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2674. + ;
  2675. + return 0;
  2676. +}
  2677. +_ACEOF
  2678. +rm -f conftest.$ac_objext
  2679. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2680. + (eval $ac_compile) 2>&5
  2681. + ac_status=$?
  2682. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2683. + (exit $ac_status); } &&
  2684. + { ac_try='test -s conftest.$ac_objext'
  2685. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2686. + (eval $ac_try) 2>&5
  2687. + ac_status=$?
  2688. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2689. + (exit $ac_status); }; }; then
  2690. ac_cv_prog_cc_g=yes
  2691. else
  2692. - ac_cv_prog_cc_g=no
  2693. -fi
  2694. -rm -f conftest*
  2695. + echo "$as_me: failed program was:" >&5
  2696. +sed 's/^/| /' conftest.$ac_ext >&5
  2697. +ac_cv_prog_cc_g=no
  2698. fi
  2699. -
  2700. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2701. +rm -f conftest.$ac_objext conftest.$ac_ext
  2702. +fi
  2703. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2704. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2705. if test "$ac_test_CFLAGS" = set; then
  2706. - CFLAGS="$ac_save_CFLAGS"
  2707. + CFLAGS=$ac_save_CFLAGS
  2708. elif test $ac_cv_prog_cc_g = yes; then
  2709. if test "$GCC" = yes; then
  2710. CFLAGS="-g -O2"
  2711. @@ -1083,86 +2321,457 @@
  2712. CFLAGS=
  2713. fi
  2714. fi
  2715. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2716. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2717. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2718. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2719. +else
  2720. + ac_cv_prog_cc_stdc=no
  2721. +ac_save_CC=$CC
  2722. +cat >conftest.$ac_ext <<_ACEOF
  2723. +#line $LINENO "configure"
  2724. +/* confdefs.h. */
  2725. +_ACEOF
  2726. +cat confdefs.h >>conftest.$ac_ext
  2727. +cat >>conftest.$ac_ext <<_ACEOF
  2728. +/* end confdefs.h. */
  2729. +#include <stdarg.h>
  2730. +#include <stdio.h>
  2731. +#include <sys/types.h>
  2732. +#include <sys/stat.h>
  2733. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2734. +struct buf { int x; };
  2735. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2736. +static char *e (p, i)
  2737. + char **p;
  2738. + int i;
  2739. +{
  2740. + return p[i];
  2741. +}
  2742. +static char *f (char * (*g) (char **, int), char **p, ...)
  2743. +{
  2744. + char *s;
  2745. + va_list v;
  2746. + va_start (v,p);
  2747. + s = g (p, va_arg (v,int));
  2748. + va_end (v);
  2749. + return s;
  2750. +}
  2751. +int test (int i, double x);
  2752. +struct s1 {int (*f) (int a);};
  2753. +struct s2 {int (*f) (double a);};
  2754. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2755. +int argc;
  2756. +char **argv;
  2757. +int
  2758. +main ()
  2759. +{
  2760. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2761. + ;
  2762. + return 0;
  2763. +}
  2764. +_ACEOF
  2765. +# Don't try gcc -ansi; that turns off useful extensions and
  2766. +# breaks some systems' header files.
  2767. +# AIX -qlanglvl=ansi
  2768. +# Ultrix and OSF/1 -std1
  2769. +# HP-UX 10.20 and later -Ae
  2770. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  2771. +# SVR4 -Xc -D__EXTENSIONS__
  2772. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2773. +do
  2774. + CC="$ac_save_CC $ac_arg"
  2775. + rm -f conftest.$ac_objext
  2776. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2777. + (eval $ac_compile) 2>&5
  2778. + ac_status=$?
  2779. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2780. + (exit $ac_status); } &&
  2781. + { ac_try='test -s conftest.$ac_objext'
  2782. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2783. + (eval $ac_try) 2>&5
  2784. + ac_status=$?
  2785. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2786. + (exit $ac_status); }; }; then
  2787. + ac_cv_prog_cc_stdc=$ac_arg
  2788. +break
  2789. +else
  2790. + echo "$as_me: failed program was:" >&5
  2791. +sed 's/^/| /' conftest.$ac_ext >&5
  2792. +
  2793. +fi
  2794. +rm -f conftest.$ac_objext
  2795. +done
  2796. +rm -f conftest.$ac_ext conftest.$ac_objext
  2797. +CC=$ac_save_CC
  2798. +
  2799. +fi
  2800. +
  2801. +case "x$ac_cv_prog_cc_stdc" in
  2802. + x|xno)
  2803. + echo "$as_me:$LINENO: result: none needed" >&5
  2804. +echo "${ECHO_T}none needed" >&6 ;;
  2805. + *)
  2806. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2807. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2808. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  2809. +esac
  2810. +
  2811. +# Some people use a C++ compiler to compile C. Since we use `exit',
  2812. +# in C++ we need to declare it. In case someone uses the same compiler
  2813. +# for both compiling C and C++ we need to have the C++ compiler decide
  2814. +# the declaration of exit, since it's the most demanding environment.
  2815. +cat >conftest.$ac_ext <<_ACEOF
  2816. +#ifndef __cplusplus
  2817. + choke me
  2818. +#endif
  2819. +_ACEOF
  2820. +rm -f conftest.$ac_objext
  2821. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2822. + (eval $ac_compile) 2>&5
  2823. + ac_status=$?
  2824. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2825. + (exit $ac_status); } &&
  2826. + { ac_try='test -s conftest.$ac_objext'
  2827. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2828. + (eval $ac_try) 2>&5
  2829. + ac_status=$?
  2830. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2831. + (exit $ac_status); }; }; then
  2832. + for ac_declaration in \
  2833. + ''\
  2834. + '#include <stdlib.h>' \
  2835. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2836. + 'extern "C" void std::exit (int); using std::exit;' \
  2837. + 'extern "C" void exit (int) throw ();' \
  2838. + 'extern "C" void exit (int);' \
  2839. + 'void exit (int);'
  2840. +do
  2841. + cat >conftest.$ac_ext <<_ACEOF
  2842. +#line $LINENO "configure"
  2843. +/* confdefs.h. */
  2844. +_ACEOF
  2845. +cat confdefs.h >>conftest.$ac_ext
  2846. +cat >>conftest.$ac_ext <<_ACEOF
  2847. +/* end confdefs.h. */
  2848. +#include <stdlib.h>
  2849. +$ac_declaration
  2850. +int
  2851. +main ()
  2852. +{
  2853. +exit (42);
  2854. + ;
  2855. + return 0;
  2856. +}
  2857. +_ACEOF
  2858. +rm -f conftest.$ac_objext
  2859. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2860. + (eval $ac_compile) 2>&5
  2861. + ac_status=$?
  2862. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. + (exit $ac_status); } &&
  2864. + { ac_try='test -s conftest.$ac_objext'
  2865. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2866. + (eval $ac_try) 2>&5
  2867. + ac_status=$?
  2868. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2869. + (exit $ac_status); }; }; then
  2870. + :
  2871. +else
  2872. + echo "$as_me: failed program was:" >&5
  2873. +sed 's/^/| /' conftest.$ac_ext >&5
  2874. +
  2875. +continue
  2876. +fi
  2877. +rm -f conftest.$ac_objext conftest.$ac_ext
  2878. + cat >conftest.$ac_ext <<_ACEOF
  2879. +#line $LINENO "configure"
  2880. +/* confdefs.h. */
  2881. +_ACEOF
  2882. +cat confdefs.h >>conftest.$ac_ext
  2883. +cat >>conftest.$ac_ext <<_ACEOF
  2884. +/* end confdefs.h. */
  2885. +$ac_declaration
  2886. +int
  2887. +main ()
  2888. +{
  2889. +exit (42);
  2890. + ;
  2891. + return 0;
  2892. +}
  2893. +_ACEOF
  2894. +rm -f conftest.$ac_objext
  2895. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2896. + (eval $ac_compile) 2>&5
  2897. + ac_status=$?
  2898. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2899. + (exit $ac_status); } &&
  2900. + { ac_try='test -s conftest.$ac_objext'
  2901. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2902. + (eval $ac_try) 2>&5
  2903. + ac_status=$?
  2904. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2905. + (exit $ac_status); }; }; then
  2906. + break
  2907. +else
  2908. + echo "$as_me: failed program was:" >&5
  2909. +sed 's/^/| /' conftest.$ac_ext >&5
  2910. +
  2911. +fi
  2912. +rm -f conftest.$ac_objext conftest.$ac_ext
  2913. +done
  2914. +rm -f conftest*
  2915. +if test -n "$ac_declaration"; then
  2916. + echo '#ifdef __cplusplus' >>confdefs.h
  2917. + echo $ac_declaration >>confdefs.h
  2918. + echo '#endif' >>confdefs.h
  2919. +fi
  2920. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  2921. -echo "configure:1089: checking how to run the C preprocessor" >&5
  2922. +else
  2923. + echo "$as_me: failed program was:" >&5
  2924. +sed 's/^/| /' conftest.$ac_ext >&5
  2925. +
  2926. +fi
  2927. +rm -f conftest.$ac_objext conftest.$ac_ext
  2928. +ac_ext=c
  2929. +ac_cpp='$CPP $CPPFLAGS'
  2930. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2931. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2932. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2933. +
  2934. +ac_ext=c
  2935. +ac_cpp='$CPP $CPPFLAGS'
  2936. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2937. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2938. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2939. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2940. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2941. # On Suns, sometimes $CPP names a directory.
  2942. if test -n "$CPP" && test -d "$CPP"; then
  2943. CPP=
  2944. fi
  2945. if test -z "$CPP"; then
  2946. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  2947. - echo $ac_n "(cached) $ac_c" 1>&6
  2948. + if test "${ac_cv_prog_CPP+set}" = set; then
  2949. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2950. else
  2951. - # This must be in double quotes, not single quotes, because CPP may get
  2952. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  2953. - CPP="${CC-cc} -E"
  2954. + # Double quotes because CPP needs to be expanded
  2955. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2956. + do
  2957. + ac_preproc_ok=false
  2958. +for ac_c_preproc_warn_flag in '' yes
  2959. +do
  2960. + # Use a header file that comes with gcc, so configuring glibc
  2961. + # with a fresh cross-compiler works.
  2962. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2963. + # <limits.h> exists even on freestanding compilers.
  2964. # On the NeXT, cc -E runs the code through the compiler's parser,
  2965. - # not just through cpp.
  2966. - cat > conftest.$ac_ext <<EOF
  2967. -#line 1104 "configure"
  2968. -#include "confdefs.h"
  2969. -#include <assert.h>
  2970. -Syntax Error
  2971. -EOF
  2972. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2973. -{ (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2974. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2975. -if test -z "$ac_err"; then
  2976. - :
  2977. + # not just through cpp. "Syntax error" is here to catch this case.
  2978. + cat >conftest.$ac_ext <<_ACEOF
  2979. +#line $LINENO "configure"
  2980. +/* confdefs.h. */
  2981. +_ACEOF
  2982. +cat confdefs.h >>conftest.$ac_ext
  2983. +cat >>conftest.$ac_ext <<_ACEOF
  2984. +/* end confdefs.h. */
  2985. +#ifdef __STDC__
  2986. +# include <limits.h>
  2987. +#else
  2988. +# include <assert.h>
  2989. +#endif
  2990. + Syntax error
  2991. +_ACEOF
  2992. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2993. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2994. + ac_status=$?
  2995. + grep -v '^ *+' conftest.er1 >conftest.err
  2996. + rm -f conftest.er1
  2997. + cat conftest.err >&5
  2998. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2999. + (exit $ac_status); } >/dev/null; then
  3000. + if test -s conftest.err; then
  3001. + ac_cpp_err=$ac_c_preproc_warn_flag
  3002. + else
  3003. + ac_cpp_err=
  3004. + fi
  3005. else
  3006. - echo "$ac_err" >&5
  3007. - echo "configure: failed program was:" >&5
  3008. - cat conftest.$ac_ext >&5
  3009. - rm -rf conftest*
  3010. - CPP="${CC-cc} -E -traditional-cpp"
  3011. - cat > conftest.$ac_ext <<EOF
  3012. -#line 1121 "configure"
  3013. -#include "confdefs.h"
  3014. -#include <assert.h>
  3015. -Syntax Error
  3016. -EOF
  3017. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3018. -{ (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3019. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3020. -if test -z "$ac_err"; then
  3021. + ac_cpp_err=yes
  3022. +fi
  3023. +if test -z "$ac_cpp_err"; then
  3024. :
  3025. else
  3026. - echo "$ac_err" >&5
  3027. - echo "configure: failed program was:" >&5
  3028. - cat conftest.$ac_ext >&5
  3029. - rm -rf conftest*
  3030. - CPP="${CC-cc} -nologo -E"
  3031. - cat > conftest.$ac_ext <<EOF
  3032. -#line 1138 "configure"
  3033. -#include "confdefs.h"
  3034. -#include <assert.h>
  3035. -Syntax Error
  3036. -EOF
  3037. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3038. -{ (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3039. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  3040. -if test -z "$ac_err"; then
  3041. - :
  3042. + echo "$as_me: failed program was:" >&5
  3043. +sed 's/^/| /' conftest.$ac_ext >&5
  3044. +
  3045. + # Broken: fails on valid input.
  3046. +continue
  3047. +fi
  3048. +rm -f conftest.err conftest.$ac_ext
  3049. +
  3050. + # OK, works on sane cases. Now check whether non-existent headers
  3051. + # can be detected and how.
  3052. + cat >conftest.$ac_ext <<_ACEOF
  3053. +#line $LINENO "configure"
  3054. +/* confdefs.h. */
  3055. +_ACEOF
  3056. +cat confdefs.h >>conftest.$ac_ext
  3057. +cat >>conftest.$ac_ext <<_ACEOF
  3058. +/* end confdefs.h. */
  3059. +#include <ac_nonexistent.h>
  3060. +_ACEOF
  3061. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3062. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3063. + ac_status=$?
  3064. + grep -v '^ *+' conftest.er1 >conftest.err
  3065. + rm -f conftest.er1
  3066. + cat conftest.err >&5
  3067. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3068. + (exit $ac_status); } >/dev/null; then
  3069. + if test -s conftest.err; then
  3070. + ac_cpp_err=$ac_c_preproc_warn_flag
  3071. + else
  3072. + ac_cpp_err=
  3073. + fi
  3074. else
  3075. - echo "$ac_err" >&5
  3076. - echo "configure: failed program was:" >&5
  3077. - cat conftest.$ac_ext >&5
  3078. - rm -rf conftest*
  3079. - CPP=/lib/cpp
  3080. + ac_cpp_err=yes
  3081. fi
  3082. -rm -f conftest*
  3083. +if test -z "$ac_cpp_err"; then
  3084. + # Broken: success on invalid input.
  3085. +continue
  3086. +else
  3087. + echo "$as_me: failed program was:" >&5
  3088. +sed 's/^/| /' conftest.$ac_ext >&5
  3089. +
  3090. + # Passes both tests.
  3091. +ac_preproc_ok=:
  3092. +break
  3093. fi
  3094. -rm -f conftest*
  3095. +rm -f conftest.err conftest.$ac_ext
  3096. +
  3097. +done
  3098. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3099. +rm -f conftest.err conftest.$ac_ext
  3100. +if $ac_preproc_ok; then
  3101. + break
  3102. fi
  3103. -rm -f conftest*
  3104. - ac_cv_prog_CPP="$CPP"
  3105. +
  3106. + done
  3107. + ac_cv_prog_CPP=$CPP
  3108. +
  3109. fi
  3110. - CPP="$ac_cv_prog_CPP"
  3111. + CPP=$ac_cv_prog_CPP
  3112. +else
  3113. + ac_cv_prog_CPP=$CPP
  3114. +fi
  3115. +echo "$as_me:$LINENO: result: $CPP" >&5
  3116. +echo "${ECHO_T}$CPP" >&6
  3117. +ac_preproc_ok=false
  3118. +for ac_c_preproc_warn_flag in '' yes
  3119. +do
  3120. + # Use a header file that comes with gcc, so configuring glibc
  3121. + # with a fresh cross-compiler works.
  3122. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3123. + # <limits.h> exists even on freestanding compilers.
  3124. + # On the NeXT, cc -E runs the code through the compiler's parser,
  3125. + # not just through cpp. "Syntax error" is here to catch this case.
  3126. + cat >conftest.$ac_ext <<_ACEOF
  3127. +#line $LINENO "configure"
  3128. +/* confdefs.h. */
  3129. +_ACEOF
  3130. +cat confdefs.h >>conftest.$ac_ext
  3131. +cat >>conftest.$ac_ext <<_ACEOF
  3132. +/* end confdefs.h. */
  3133. +#ifdef __STDC__
  3134. +# include <limits.h>
  3135. +#else
  3136. +# include <assert.h>
  3137. +#endif
  3138. + Syntax error
  3139. +_ACEOF
  3140. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3141. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3142. + ac_status=$?
  3143. + grep -v '^ *+' conftest.er1 >conftest.err
  3144. + rm -f conftest.er1
  3145. + cat conftest.err >&5
  3146. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3147. + (exit $ac_status); } >/dev/null; then
  3148. + if test -s conftest.err; then
  3149. + ac_cpp_err=$ac_c_preproc_warn_flag
  3150. + else
  3151. + ac_cpp_err=
  3152. + fi
  3153. else
  3154. - ac_cv_prog_CPP="$CPP"
  3155. + ac_cpp_err=yes
  3156. fi
  3157. -echo "$ac_t""$CPP" 1>&6
  3158. +if test -z "$ac_cpp_err"; then
  3159. + :
  3160. +else
  3161. + echo "$as_me: failed program was:" >&5
  3162. +sed 's/^/| /' conftest.$ac_ext >&5
  3163. +
  3164. + # Broken: fails on valid input.
  3165. +continue
  3166. +fi
  3167. +rm -f conftest.err conftest.$ac_ext
  3168. +
  3169. + # OK, works on sane cases. Now check whether non-existent headers
  3170. + # can be detected and how.
  3171. + cat >conftest.$ac_ext <<_ACEOF
  3172. +#line $LINENO "configure"
  3173. +/* confdefs.h. */
  3174. +_ACEOF
  3175. +cat confdefs.h >>conftest.$ac_ext
  3176. +cat >>conftest.$ac_ext <<_ACEOF
  3177. +/* end confdefs.h. */
  3178. +#include <ac_nonexistent.h>
  3179. +_ACEOF
  3180. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3181. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3182. + ac_status=$?
  3183. + grep -v '^ *+' conftest.er1 >conftest.err
  3184. + rm -f conftest.er1
  3185. + cat conftest.err >&5
  3186. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3187. + (exit $ac_status); } >/dev/null; then
  3188. + if test -s conftest.err; then
  3189. + ac_cpp_err=$ac_c_preproc_warn_flag
  3190. + else
  3191. + ac_cpp_err=
  3192. + fi
  3193. +else
  3194. + ac_cpp_err=yes
  3195. +fi
  3196. +if test -z "$ac_cpp_err"; then
  3197. + # Broken: success on invalid input.
  3198. +continue
  3199. +else
  3200. + echo "$as_me: failed program was:" >&5
  3201. +sed 's/^/| /' conftest.$ac_ext >&5
  3202. +
  3203. + # Passes both tests.
  3204. +ac_preproc_ok=:
  3205. +break
  3206. +fi
  3207. +rm -f conftest.err conftest.$ac_ext
  3208. +
  3209. +done
  3210. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3211. +rm -f conftest.err conftest.$ac_ext
  3212. +if $ac_preproc_ok; then
  3213. + :
  3214. +else
  3215. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3216. +See \`config.log' for more details." >&5
  3217. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3218. +See \`config.log' for more details." >&2;}
  3219. + { (exit 1); exit 1; }; }
  3220. +fi
  3221. +
  3222. +ac_ext=c
  3223. +ac_cpp='$CPP $CPPFLAGS'
  3224. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3225. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3226. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3227. # Find a good install program. We prefer a C program (faster),
  3228. # so one script is as good as another. But avoid the broken or
  3229. @@ -1171,767 +2780,1576 @@
  3230. # SunOS /usr/etc/install
  3231. # IRIX /sbin/install
  3232. # AIX /bin/install
  3233. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  3234. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3235. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3236. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3237. # ./install, which can be erroneously created by make from ./install.sh.
  3238. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  3239. -echo "configure:1180: checking for a BSD compatible install" >&5
  3240. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3241. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3242. if test -z "$INSTALL"; then
  3243. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  3244. - echo $ac_n "(cached) $ac_c" 1>&6
  3245. +if test "${ac_cv_path_install+set}" = set; then
  3246. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3247. else
  3248. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  3249. - for ac_dir in $PATH; do
  3250. - # Account for people who put trailing slashes in PATH elements.
  3251. - case "$ac_dir/" in
  3252. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  3253. - *)
  3254. - # OSF1 and SCO ODT 3.0 have their own names for install.
  3255. - # Don't use installbsd from OSF since it installs stuff as root
  3256. - # by default.
  3257. - for ac_prog in ginstall scoinst install; do
  3258. - if test -f $ac_dir/$ac_prog; then
  3259. - if test $ac_prog = install &&
  3260. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  3261. - # AIX install. It has an incompatible calling convention.
  3262. - :
  3263. - else
  3264. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  3265. - break 2
  3266. - fi
  3267. - fi
  3268. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3269. +for as_dir in $PATH
  3270. +do
  3271. + IFS=$as_save_IFS
  3272. + test -z "$as_dir" && as_dir=.
  3273. + # Account for people who put trailing slashes in PATH elements.
  3274. +case $as_dir/ in
  3275. + ./ | .// | /cC/* | \
  3276. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3277. + /usr/ucb/* ) ;;
  3278. + *)
  3279. + # OSF1 and SCO ODT 3.0 have their own names for install.
  3280. + # Don't use installbsd from OSF since it installs stuff as root
  3281. + # by default.
  3282. + for ac_prog in ginstall scoinst install; do
  3283. + for ac_exec_ext in '' $ac_executable_extensions; do
  3284. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3285. + if test $ac_prog = install &&
  3286. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3287. + # AIX install. It has an incompatible calling convention.
  3288. + :
  3289. + elif test $ac_prog = install &&
  3290. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3291. + # program-specific install script used by HP pwplus--don't use.
  3292. + :
  3293. + else
  3294. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3295. + break 3
  3296. + fi
  3297. + fi
  3298. done
  3299. - ;;
  3300. - esac
  3301. - done
  3302. - IFS="$ac_save_IFS"
  3303. + done
  3304. + ;;
  3305. +esac
  3306. +done
  3307. +
  3308. fi
  3309. if test "${ac_cv_path_install+set}" = set; then
  3310. - INSTALL="$ac_cv_path_install"
  3311. + INSTALL=$ac_cv_path_install
  3312. else
  3313. # As a last resort, use the slow shell script. We don't cache a
  3314. # path for INSTALL within a source directory, because that will
  3315. # break other packages using the cache if that directory is
  3316. # removed, or if the path is relative.
  3317. - INSTALL="$ac_install_sh"
  3318. + INSTALL=$ac_install_sh
  3319. fi
  3320. fi
  3321. -echo "$ac_t""$INSTALL" 1>&6
  3322. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  3323. +echo "${ECHO_T}$INSTALL" >&6
  3324. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3325. # It thinks the first close brace ends the variable substitution.
  3326. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3327. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  3328. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3329. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3330. -# Extract the first word of "ranlib", so it can be a program name with args.
  3331. -set dummy ranlib; ac_word=$2
  3332. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3333. -echo "configure:1235: checking for $ac_word" >&5
  3334. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  3335. - echo $ac_n "(cached) $ac_c" 1>&6
  3336. +if test -n "$ac_tool_prefix"; then
  3337. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3338. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3339. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3340. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3341. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  3342. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3343. else
  3344. if test -n "$RANLIB"; then
  3345. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3346. else
  3347. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3348. - ac_dummy="$PATH"
  3349. - for ac_dir in $ac_dummy; do
  3350. - test -z "$ac_dir" && ac_dir=.
  3351. - if test -f $ac_dir/$ac_word; then
  3352. - ac_cv_prog_RANLIB="ranlib"
  3353. - break
  3354. - fi
  3355. - done
  3356. - IFS="$ac_save_ifs"
  3357. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  3358. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3359. +for as_dir in $PATH
  3360. +do
  3361. + IFS=$as_save_IFS
  3362. + test -z "$as_dir" && as_dir=.
  3363. + for ac_exec_ext in '' $ac_executable_extensions; do
  3364. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3365. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3366. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3367. + break 2
  3368. + fi
  3369. +done
  3370. +done
  3371. +
  3372. fi
  3373. fi
  3374. -RANLIB="$ac_cv_prog_RANLIB"
  3375. +RANLIB=$ac_cv_prog_RANLIB
  3376. if test -n "$RANLIB"; then
  3377. - echo "$ac_t""$RANLIB" 1>&6
  3378. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  3379. +echo "${ECHO_T}$RANLIB" >&6
  3380. +else
  3381. + echo "$as_me:$LINENO: result: no" >&5
  3382. +echo "${ECHO_T}no" >&6
  3383. +fi
  3384. +
  3385. +fi
  3386. +if test -z "$ac_cv_prog_RANLIB"; then
  3387. + ac_ct_RANLIB=$RANLIB
  3388. + # Extract the first word of "ranlib", so it can be a program name with args.
  3389. +set dummy ranlib; ac_word=$2
  3390. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3391. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3392. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3393. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3394. +else
  3395. + if test -n "$ac_ct_RANLIB"; then
  3396. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3397. else
  3398. - echo "$ac_t""no" 1>&6
  3399. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3400. +for as_dir in $PATH
  3401. +do
  3402. + IFS=$as_save_IFS
  3403. + test -z "$as_dir" && as_dir=.
  3404. + for ac_exec_ext in '' $ac_executable_extensions; do
  3405. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3406. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  3407. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3408. + break 2
  3409. + fi
  3410. +done
  3411. +done
  3412. +
  3413. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3414. +fi
  3415. +fi
  3416. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3417. +if test -n "$ac_ct_RANLIB"; then
  3418. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3419. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3420. +else
  3421. + echo "$as_me:$LINENO: result: no" >&5
  3422. +echo "${ECHO_T}no" >&6
  3423. fi
  3424. + RANLIB=$ac_ct_RANLIB
  3425. +else
  3426. + RANLIB="$ac_cv_prog_RANLIB"
  3427. +fi
  3428. +
  3429. +
  3430. -echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3431. -echo "configure:1265: checking for gethostbyname" >&5
  3432. -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  3433. - echo $ac_n "(cached) $ac_c" 1>&6
  3434. +echo "$as_me:$LINENO: checking for gethostbyname" >&5
  3435. +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
  3436. +if test "${ac_cv_func_gethostbyname+set}" = set; then
  3437. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3438. else
  3439. - cat > conftest.$ac_ext <<EOF
  3440. -#line 1270 "configure"
  3441. -#include "confdefs.h"
  3442. + cat >conftest.$ac_ext <<_ACEOF
  3443. +#line $LINENO "configure"
  3444. +/* confdefs.h. */
  3445. +_ACEOF
  3446. +cat confdefs.h >>conftest.$ac_ext
  3447. +cat >>conftest.$ac_ext <<_ACEOF
  3448. +/* end confdefs.h. */
  3449. /* System header to define __stub macros and hopefully few prototypes,
  3450. - which can conflict with char gethostbyname(); below. */
  3451. -#include <assert.h>
  3452. + which can conflict with char gethostbyname (); below.
  3453. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3454. + <limits.h> exists even on freestanding compilers. */
  3455. +#ifdef __STDC__
  3456. +# include <limits.h>
  3457. +#else
  3458. +# include <assert.h>
  3459. +#endif
  3460. /* Override any gcc2 internal prototype to avoid an error. */
  3461. +#ifdef __cplusplus
  3462. +extern "C"
  3463. +{
  3464. +#endif
  3465. /* We use char because int might match the return type of a gcc2
  3466. - builtin and then its argument prototype would still apply. */
  3467. -char gethostbyname();
  3468. -
  3469. -int main() {
  3470. -
  3471. + builtin and then its argument prototype would still apply. */
  3472. +char gethostbyname ();
  3473. /* The GNU C library defines this for functions which it implements
  3474. to always fail with ENOSYS. Some functions are actually named
  3475. something starting with __ and the normal name is an alias. */
  3476. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3477. choke me
  3478. #else
  3479. -gethostbyname();
  3480. +char (*f) () = gethostbyname;
  3481. +#endif
  3482. +#ifdef __cplusplus
  3483. +}
  3484. #endif
  3485. -; return 0; }
  3486. -EOF
  3487. -if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3488. - rm -rf conftest*
  3489. - eval "ac_cv_func_gethostbyname=yes"
  3490. -else
  3491. - echo "configure: failed program was:" >&5
  3492. - cat conftest.$ac_ext >&5
  3493. - rm -rf conftest*
  3494. - eval "ac_cv_func_gethostbyname=no"
  3495. -fi
  3496. -rm -f conftest*
  3497. -fi
  3498. -
  3499. -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3500. - echo "$ac_t""yes" 1>&6
  3501. +int
  3502. +main ()
  3503. +{
  3504. +return f != gethostbyname;
  3505. + ;
  3506. + return 0;
  3507. +}
  3508. +_ACEOF
  3509. +rm -f conftest.$ac_objext conftest$ac_exeext
  3510. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3511. + (eval $ac_link) 2>&5
  3512. + ac_status=$?
  3513. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3514. + (exit $ac_status); } &&
  3515. + { ac_try='test -s conftest$ac_exeext'
  3516. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3517. + (eval $ac_try) 2>&5
  3518. + ac_status=$?
  3519. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3520. + (exit $ac_status); }; }; then
  3521. + ac_cv_func_gethostbyname=yes
  3522. +else
  3523. + echo "$as_me: failed program was:" >&5
  3524. +sed 's/^/| /' conftest.$ac_ext >&5
  3525. +
  3526. +ac_cv_func_gethostbyname=no
  3527. +fi
  3528. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3529. +fi
  3530. +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
  3531. +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
  3532. +if test $ac_cv_func_gethostbyname = yes; then
  3533. :
  3534. else
  3535. - echo "$ac_t""no" 1>&6
  3536. -echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3537. -echo "configure:1311: checking for gethostbyname in -lnsl" >&5
  3538. -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3539. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3540. - echo $ac_n "(cached) $ac_c" 1>&6
  3541. +
  3542. +echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  3543. +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  3544. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  3545. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3546. else
  3547. - ac_save_LIBS="$LIBS"
  3548. + ac_check_lib_save_LIBS=$LIBS
  3549. LIBS="-lnsl $LIBS"
  3550. -cat > conftest.$ac_ext <<EOF
  3551. -#line 1319 "configure"
  3552. -#include "confdefs.h"
  3553. +cat >conftest.$ac_ext <<_ACEOF
  3554. +#line $LINENO "configure"
  3555. +/* confdefs.h. */
  3556. +_ACEOF
  3557. +cat confdefs.h >>conftest.$ac_ext
  3558. +cat >>conftest.$ac_ext <<_ACEOF
  3559. +/* end confdefs.h. */
  3560. +
  3561. /* Override any gcc2 internal prototype to avoid an error. */
  3562. +#ifdef __cplusplus
  3563. +extern "C"
  3564. +#endif
  3565. /* We use char because int might match the return type of a gcc2
  3566. - builtin and then its argument prototype would still apply. */
  3567. -char gethostbyname();
  3568. -
  3569. -int main() {
  3570. -gethostbyname()
  3571. -; return 0; }
  3572. -EOF
  3573. -if { (eval echo configure:1330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3574. - rm -rf conftest*
  3575. - eval "ac_cv_lib_$ac_lib_var=yes"
  3576. -else
  3577. - echo "configure: failed program was:" >&5
  3578. - cat conftest.$ac_ext >&5
  3579. - rm -rf conftest*
  3580. - eval "ac_cv_lib_$ac_lib_var=no"
  3581. -fi
  3582. -rm -f conftest*
  3583. -LIBS="$ac_save_LIBS"
  3584. -
  3585. -fi
  3586. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3587. - echo "$ac_t""yes" 1>&6
  3588. - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3589. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3590. - cat >> confdefs.h <<EOF
  3591. -#define $ac_tr_lib 1
  3592. -EOF
  3593. + builtin and then its argument prototype would still apply. */
  3594. +char gethostbyname ();
  3595. +int
  3596. +main ()
  3597. +{
  3598. +gethostbyname ();
  3599. + ;
  3600. + return 0;
  3601. +}
  3602. +_ACEOF
  3603. +rm -f conftest.$ac_objext conftest$ac_exeext
  3604. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3605. + (eval $ac_link) 2>&5
  3606. + ac_status=$?
  3607. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3608. + (exit $ac_status); } &&
  3609. + { ac_try='test -s conftest$ac_exeext'
  3610. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3611. + (eval $ac_try) 2>&5
  3612. + ac_status=$?
  3613. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3614. + (exit $ac_status); }; }; then
  3615. + ac_cv_lib_nsl_gethostbyname=yes
  3616. +else
  3617. + echo "$as_me: failed program was:" >&5
  3618. +sed 's/^/| /' conftest.$ac_ext >&5
  3619. +
  3620. +ac_cv_lib_nsl_gethostbyname=no
  3621. +fi
  3622. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3623. +LIBS=$ac_check_lib_save_LIBS
  3624. +fi
  3625. +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  3626. +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  3627. +if test $ac_cv_lib_nsl_gethostbyname = yes; then
  3628. + cat >>confdefs.h <<_ACEOF
  3629. +#define HAVE_LIBNSL 1
  3630. +_ACEOF
  3631. LIBS="-lnsl $LIBS"
  3632. -else
  3633. - echo "$ac_t""no" 1>&6
  3634. fi
  3635. fi
  3636. -echo $ac_n "checking for connect""... $ac_c" 1>&6
  3637. -echo "configure:1360: checking for connect" >&5
  3638. -if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  3639. - echo $ac_n "(cached) $ac_c" 1>&6
  3640. -else
  3641. - cat > conftest.$ac_ext <<EOF
  3642. -#line 1365 "configure"
  3643. -#include "confdefs.h"
  3644. +echo "$as_me:$LINENO: checking for connect" >&5
  3645. +echo $ECHO_N "checking for connect... $ECHO_C" >&6
  3646. +if test "${ac_cv_func_connect+set}" = set; then
  3647. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3648. +else
  3649. + cat >conftest.$ac_ext <<_ACEOF
  3650. +#line $LINENO "configure"
  3651. +/* confdefs.h. */
  3652. +_ACEOF
  3653. +cat confdefs.h >>conftest.$ac_ext
  3654. +cat >>conftest.$ac_ext <<_ACEOF
  3655. +/* end confdefs.h. */
  3656. /* System header to define __stub macros and hopefully few prototypes,
  3657. - which can conflict with char connect(); below. */
  3658. -#include <assert.h>
  3659. + which can conflict with char connect (); below.
  3660. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3661. + <limits.h> exists even on freestanding compilers. */
  3662. +#ifdef __STDC__
  3663. +# include <limits.h>
  3664. +#else
  3665. +# include <assert.h>
  3666. +#endif
  3667. /* Override any gcc2 internal prototype to avoid an error. */
  3668. +#ifdef __cplusplus
  3669. +extern "C"
  3670. +{
  3671. +#endif
  3672. /* We use char because int might match the return type of a gcc2
  3673. - builtin and then its argument prototype would still apply. */
  3674. -char connect();
  3675. -
  3676. -int main() {
  3677. -
  3678. + builtin and then its argument prototype would still apply. */
  3679. +char connect ();
  3680. /* The GNU C library defines this for functions which it implements
  3681. to always fail with ENOSYS. Some functions are actually named
  3682. something starting with __ and the normal name is an alias. */
  3683. #if defined (__stub_connect) || defined (__stub___connect)
  3684. choke me
  3685. #else
  3686. -connect();
  3687. +char (*f) () = connect;
  3688. +#endif
  3689. +#ifdef __cplusplus
  3690. +}
  3691. #endif
  3692. -; return 0; }
  3693. -EOF
  3694. -if { (eval echo configure:1388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3695. - rm -rf conftest*
  3696. - eval "ac_cv_func_connect=yes"
  3697. -else
  3698. - echo "configure: failed program was:" >&5
  3699. - cat conftest.$ac_ext >&5
  3700. - rm -rf conftest*
  3701. - eval "ac_cv_func_connect=no"
  3702. -fi
  3703. -rm -f conftest*
  3704. -fi
  3705. -
  3706. -if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3707. - echo "$ac_t""yes" 1>&6
  3708. +int
  3709. +main ()
  3710. +{
  3711. +return f != connect;
  3712. + ;
  3713. + return 0;
  3714. +}
  3715. +_ACEOF
  3716. +rm -f conftest.$ac_objext conftest$ac_exeext
  3717. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3718. + (eval $ac_link) 2>&5
  3719. + ac_status=$?
  3720. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3721. + (exit $ac_status); } &&
  3722. + { ac_try='test -s conftest$ac_exeext'
  3723. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3724. + (eval $ac_try) 2>&5
  3725. + ac_status=$?
  3726. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3727. + (exit $ac_status); }; }; then
  3728. + ac_cv_func_connect=yes
  3729. +else
  3730. + echo "$as_me: failed program was:" >&5
  3731. +sed 's/^/| /' conftest.$ac_ext >&5
  3732. +
  3733. +ac_cv_func_connect=no
  3734. +fi
  3735. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3736. +fi
  3737. +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
  3738. +echo "${ECHO_T}$ac_cv_func_connect" >&6
  3739. +if test $ac_cv_func_connect = yes; then
  3740. :
  3741. else
  3742. - echo "$ac_t""no" 1>&6
  3743. -echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3744. -echo "configure:1406: checking for connect in -lsocket" >&5
  3745. -ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3746. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3747. - echo $ac_n "(cached) $ac_c" 1>&6
  3748. +
  3749. +echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
  3750. +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
  3751. +if test "${ac_cv_lib_socket_connect+set}" = set; then
  3752. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3753. else
  3754. - ac_save_LIBS="$LIBS"
  3755. + ac_check_lib_save_LIBS=$LIBS
  3756. LIBS="-lsocket $LIBS"
  3757. -cat > conftest.$ac_ext <<EOF
  3758. -#line 1414 "configure"
  3759. -#include "confdefs.h"
  3760. +cat >conftest.$ac_ext <<_ACEOF
  3761. +#line $LINENO "configure"
  3762. +/* confdefs.h. */
  3763. +_ACEOF
  3764. +cat confdefs.h >>conftest.$ac_ext
  3765. +cat >>conftest.$ac_ext <<_ACEOF
  3766. +/* end confdefs.h. */
  3767. +
  3768. /* Override any gcc2 internal prototype to avoid an error. */
  3769. +#ifdef __cplusplus
  3770. +extern "C"
  3771. +#endif
  3772. /* We use char because int might match the return type of a gcc2
  3773. - builtin and then its argument prototype would still apply. */
  3774. -char connect();
  3775. -
  3776. -int main() {
  3777. -connect()
  3778. -; return 0; }
  3779. -EOF
  3780. -if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3781. - rm -rf conftest*
  3782. - eval "ac_cv_lib_$ac_lib_var=yes"
  3783. -else
  3784. - echo "configure: failed program was:" >&5
  3785. - cat conftest.$ac_ext >&5
  3786. - rm -rf conftest*
  3787. - eval "ac_cv_lib_$ac_lib_var=no"
  3788. -fi
  3789. -rm -f conftest*
  3790. -LIBS="$ac_save_LIBS"
  3791. -
  3792. -fi
  3793. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3794. - echo "$ac_t""yes" 1>&6
  3795. - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  3796. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  3797. - cat >> confdefs.h <<EOF
  3798. -#define $ac_tr_lib 1
  3799. -EOF
  3800. + builtin and then its argument prototype would still apply. */
  3801. +char connect ();
  3802. +int
  3803. +main ()
  3804. +{
  3805. +connect ();
  3806. + ;
  3807. + return 0;
  3808. +}
  3809. +_ACEOF
  3810. +rm -f conftest.$ac_objext conftest$ac_exeext
  3811. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3812. + (eval $ac_link) 2>&5
  3813. + ac_status=$?
  3814. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3815. + (exit $ac_status); } &&
  3816. + { ac_try='test -s conftest$ac_exeext'
  3817. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3818. + (eval $ac_try) 2>&5
  3819. + ac_status=$?
  3820. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3821. + (exit $ac_status); }; }; then
  3822. + ac_cv_lib_socket_connect=yes
  3823. +else
  3824. + echo "$as_me: failed program was:" >&5
  3825. +sed 's/^/| /' conftest.$ac_ext >&5
  3826. +
  3827. +ac_cv_lib_socket_connect=no
  3828. +fi
  3829. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3830. +LIBS=$ac_check_lib_save_LIBS
  3831. +fi
  3832. +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
  3833. +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
  3834. +if test $ac_cv_lib_socket_connect = yes; then
  3835. + cat >>confdefs.h <<_ACEOF
  3836. +#define HAVE_LIBSOCKET 1
  3837. +_ACEOF
  3838. LIBS="-lsocket $LIBS"
  3839. -else
  3840. - echo "$ac_t""no" 1>&6
  3841. fi
  3842. fi
  3843. -echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
  3844. -echo "configure:1455: checking for inet_aton" >&5
  3845. -if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  3846. - echo $ac_n "(cached) $ac_c" 1>&6
  3847. -else
  3848. - cat > conftest.$ac_ext <<EOF
  3849. -#line 1460 "configure"
  3850. -#include "confdefs.h"
  3851. +echo "$as_me:$LINENO: checking for inet_aton" >&5
  3852. +echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
  3853. +if test "${ac_cv_func_inet_aton+set}" = set; then
  3854. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3855. +else
  3856. + cat >conftest.$ac_ext <<_ACEOF
  3857. +#line $LINENO "configure"
  3858. +/* confdefs.h. */
  3859. +_ACEOF
  3860. +cat confdefs.h >>conftest.$ac_ext
  3861. +cat >>conftest.$ac_ext <<_ACEOF
  3862. +/* end confdefs.h. */
  3863. /* System header to define __stub macros and hopefully few prototypes,
  3864. - which can conflict with char inet_aton(); below. */
  3865. -#include <assert.h>
  3866. + which can conflict with char inet_aton (); below.
  3867. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3868. + <limits.h> exists even on freestanding compilers. */
  3869. +#ifdef __STDC__
  3870. +# include <limits.h>
  3871. +#else
  3872. +# include <assert.h>
  3873. +#endif
  3874. /* Override any gcc2 internal prototype to avoid an error. */
  3875. +#ifdef __cplusplus
  3876. +extern "C"
  3877. +{
  3878. +#endif
  3879. /* We use char because int might match the return type of a gcc2
  3880. - builtin and then its argument prototype would still apply. */
  3881. -char inet_aton();
  3882. -
  3883. -int main() {
  3884. -
  3885. + builtin and then its argument prototype would still apply. */
  3886. +char inet_aton ();
  3887. /* The GNU C library defines this for functions which it implements
  3888. to always fail with ENOSYS. Some functions are actually named
  3889. something starting with __ and the normal name is an alias. */
  3890. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  3891. choke me
  3892. #else
  3893. -inet_aton();
  3894. +char (*f) () = inet_aton;
  3895. +#endif
  3896. +#ifdef __cplusplus
  3897. +}
  3898. #endif
  3899. -; return 0; }
  3900. -EOF
  3901. -if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3902. - rm -rf conftest*
  3903. - eval "ac_cv_func_inet_aton=yes"
  3904. -else
  3905. - echo "configure: failed program was:" >&5
  3906. - cat conftest.$ac_ext >&5
  3907. - rm -rf conftest*
  3908. - eval "ac_cv_func_inet_aton=no"
  3909. -fi
  3910. -rm -f conftest*
  3911. -fi
  3912. -
  3913. -if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
  3914. - echo "$ac_t""yes" 1>&6
  3915. +int
  3916. +main ()
  3917. +{
  3918. +return f != inet_aton;
  3919. + ;
  3920. + return 0;
  3921. +}
  3922. +_ACEOF
  3923. +rm -f conftest.$ac_objext conftest$ac_exeext
  3924. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3925. + (eval $ac_link) 2>&5
  3926. + ac_status=$?
  3927. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3928. + (exit $ac_status); } &&
  3929. + { ac_try='test -s conftest$ac_exeext'
  3930. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3931. + (eval $ac_try) 2>&5
  3932. + ac_status=$?
  3933. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3934. + (exit $ac_status); }; }; then
  3935. + ac_cv_func_inet_aton=yes
  3936. +else
  3937. + echo "$as_me: failed program was:" >&5
  3938. +sed 's/^/| /' conftest.$ac_ext >&5
  3939. +
  3940. +ac_cv_func_inet_aton=no
  3941. +fi
  3942. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3943. +fi
  3944. +echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  3945. +echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
  3946. +if test $ac_cv_func_inet_aton = yes; then
  3947. :
  3948. else
  3949. - echo "$ac_t""no" 1>&6
  3950. -echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
  3951. -echo "configure:1501: checking for inet_aton in -lresolv" >&5
  3952. -ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
  3953. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3954. - echo $ac_n "(cached) $ac_c" 1>&6
  3955. +
  3956. +echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
  3957. +echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
  3958. +if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
  3959. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3960. else
  3961. - ac_save_LIBS="$LIBS"
  3962. + ac_check_lib_save_LIBS=$LIBS
  3963. LIBS="-lresolv $LIBS"
  3964. -cat > conftest.$ac_ext <<EOF
  3965. -#line 1509 "configure"
  3966. -#include "confdefs.h"
  3967. +cat >conftest.$ac_ext <<_ACEOF
  3968. +#line $LINENO "configure"
  3969. +/* confdefs.h. */
  3970. +_ACEOF
  3971. +cat confdefs.h >>conftest.$ac_ext
  3972. +cat >>conftest.$ac_ext <<_ACEOF
  3973. +/* end confdefs.h. */
  3974. +
  3975. /* Override any gcc2 internal prototype to avoid an error. */
  3976. +#ifdef __cplusplus
  3977. +extern "C"
  3978. +#endif
  3979. /* We use char because int might match the return type of a gcc2
  3980. - builtin and then its argument prototype would still apply. */
  3981. -char inet_aton();
  3982. -
  3983. -int main() {
  3984. -inet_aton()
  3985. -; return 0; }
  3986. -EOF
  3987. -if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3988. - rm -rf conftest*
  3989. - eval "ac_cv_lib_$ac_lib_var=yes"
  3990. -else
  3991. - echo "configure: failed program was:" >&5
  3992. - cat conftest.$ac_ext >&5
  3993. - rm -rf conftest*
  3994. - eval "ac_cv_lib_$ac_lib_var=no"
  3995. -fi
  3996. -rm -f conftest*
  3997. -LIBS="$ac_save_LIBS"
  3998. -
  3999. -fi
  4000. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4001. - echo "$ac_t""yes" 1>&6
  4002. - ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4003. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4004. - cat >> confdefs.h <<EOF
  4005. -#define $ac_tr_lib 1
  4006. -EOF
  4007. + builtin and then its argument prototype would still apply. */
  4008. +char inet_aton ();
  4009. +int
  4010. +main ()
  4011. +{
  4012. +inet_aton ();
  4013. + ;
  4014. + return 0;
  4015. +}
  4016. +_ACEOF
  4017. +rm -f conftest.$ac_objext conftest$ac_exeext
  4018. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4019. + (eval $ac_link) 2>&5
  4020. + ac_status=$?
  4021. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4022. + (exit $ac_status); } &&
  4023. + { ac_try='test -s conftest$ac_exeext'
  4024. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4025. + (eval $ac_try) 2>&5
  4026. + ac_status=$?
  4027. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4028. + (exit $ac_status); }; }; then
  4029. + ac_cv_lib_resolv_inet_aton=yes
  4030. +else
  4031. + echo "$as_me: failed program was:" >&5
  4032. +sed 's/^/| /' conftest.$ac_ext >&5
  4033. +
  4034. +ac_cv_lib_resolv_inet_aton=no
  4035. +fi
  4036. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4037. +LIBS=$ac_check_lib_save_LIBS
  4038. +fi
  4039. +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
  4040. +echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
  4041. +if test $ac_cv_lib_resolv_inet_aton = yes; then
  4042. + cat >>confdefs.h <<_ACEOF
  4043. +#define HAVE_LIBRESOLV 1
  4044. +_ACEOF
  4045. LIBS="-lresolv $LIBS"
  4046. -else
  4047. - echo "$ac_t""no" 1>&6
  4048. fi
  4049. fi
  4050. -echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
  4051. -echo "configure:1550: checking for kstat_open in -lkstat" >&5
  4052. -ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
  4053. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4054. - echo $ac_n "(cached) $ac_c" 1>&6
  4055. +
  4056. +echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
  4057. +echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
  4058. +if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
  4059. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4060. else
  4061. - ac_save_LIBS="$LIBS"
  4062. + ac_check_lib_save_LIBS=$LIBS
  4063. LIBS="-lkstat $LIBS"
  4064. -cat > conftest.$ac_ext <<EOF
  4065. -#line 1558 "configure"
  4066. -#include "confdefs.h"
  4067. +cat >conftest.$ac_ext <<_ACEOF
  4068. +#line $LINENO "configure"
  4069. +/* confdefs.h. */
  4070. +_ACEOF
  4071. +cat confdefs.h >>conftest.$ac_ext
  4072. +cat >>conftest.$ac_ext <<_ACEOF
  4073. +/* end confdefs.h. */
  4074. +
  4075. /* Override any gcc2 internal prototype to avoid an error. */
  4076. +#ifdef __cplusplus
  4077. +extern "C"
  4078. +#endif
  4079. /* We use char because int might match the return type of a gcc2
  4080. - builtin and then its argument prototype would still apply. */
  4081. -char kstat_open();
  4082. + builtin and then its argument prototype would still apply. */
  4083. +char kstat_open ();
  4084. +int
  4085. +main ()
  4086. +{
  4087. +kstat_open ();
  4088. + ;
  4089. + return 0;
  4090. +}
  4091. +_ACEOF
  4092. +rm -f conftest.$ac_objext conftest$ac_exeext
  4093. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4094. + (eval $ac_link) 2>&5
  4095. + ac_status=$?
  4096. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4097. + (exit $ac_status); } &&
  4098. + { ac_try='test -s conftest$ac_exeext'
  4099. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4100. + (eval $ac_try) 2>&5
  4101. + ac_status=$?
  4102. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. + (exit $ac_status); }; }; then
  4104. + ac_cv_lib_kstat_kstat_open=yes
  4105. +else
  4106. + echo "$as_me: failed program was:" >&5
  4107. +sed 's/^/| /' conftest.$ac_ext >&5
  4108. +
  4109. +ac_cv_lib_kstat_kstat_open=no
  4110. +fi
  4111. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4112. +LIBS=$ac_check_lib_save_LIBS
  4113. +fi
  4114. +echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
  4115. +echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
  4116. +if test $ac_cv_lib_kstat_kstat_open = yes; then
  4117. + cat >>confdefs.h <<_ACEOF
  4118. +#define HAVE_LIBKSTAT 1
  4119. +_ACEOF
  4120. -int main() {
  4121. -kstat_open()
  4122. -; return 0; }
  4123. -EOF
  4124. -if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4125. - rm -rf conftest*
  4126. - eval "ac_cv_lib_$ac_lib_var=yes"
  4127. -else
  4128. - echo "configure: failed program was:" >&5
  4129. - cat conftest.$ac_ext >&5
  4130. - rm -rf conftest*
  4131. - eval "ac_cv_lib_$ac_lib_var=no"
  4132. -fi
  4133. -rm -f conftest*
  4134. -LIBS="$ac_save_LIBS"
  4135. + LIBS="-lkstat $LIBS"
  4136. fi
  4137. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4138. - echo "$ac_t""yes" 1>&6
  4139. - ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  4140. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  4141. - cat >> confdefs.h <<EOF
  4142. -#define $ac_tr_lib 1
  4143. -EOF
  4144. - LIBS="-lkstat $LIBS"
  4145. -else
  4146. - echo "$ac_t""no" 1>&6
  4147. -fi
  4148. for ac_func in getloadavg swapctl
  4149. do
  4150. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4151. -echo "configure:1599: checking for $ac_func" >&5
  4152. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4153. - echo $ac_n "(cached) $ac_c" 1>&6
  4154. -else
  4155. - cat > conftest.$ac_ext <<EOF
  4156. -#line 1604 "configure"
  4157. -#include "confdefs.h"
  4158. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4159. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  4160. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4161. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  4162. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4163. +else
  4164. + cat >conftest.$ac_ext <<_ACEOF
  4165. +#line $LINENO "configure"
  4166. +/* confdefs.h. */
  4167. +_ACEOF
  4168. +cat confdefs.h >>conftest.$ac_ext
  4169. +cat >>conftest.$ac_ext <<_ACEOF
  4170. +/* end confdefs.h. */
  4171. /* System header to define __stub macros and hopefully few prototypes,
  4172. - which can conflict with char $ac_func(); below. */
  4173. -#include <assert.h>
  4174. + which can conflict with char $ac_func (); below.
  4175. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4176. + <limits.h> exists even on freestanding compilers. */
  4177. +#ifdef __STDC__
  4178. +# include <limits.h>
  4179. +#else
  4180. +# include <assert.h>
  4181. +#endif
  4182. /* Override any gcc2 internal prototype to avoid an error. */
  4183. +#ifdef __cplusplus
  4184. +extern "C"
  4185. +{
  4186. +#endif
  4187. /* We use char because int might match the return type of a gcc2
  4188. - builtin and then its argument prototype would still apply. */
  4189. -char $ac_func();
  4190. -
  4191. -int main() {
  4192. -
  4193. + builtin and then its argument prototype would still apply. */
  4194. +char $ac_func ();
  4195. /* The GNU C library defines this for functions which it implements
  4196. to always fail with ENOSYS. Some functions are actually named
  4197. something starting with __ and the normal name is an alias. */
  4198. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4199. choke me
  4200. #else
  4201. -$ac_func();
  4202. +char (*f) () = $ac_func;
  4203. +#endif
  4204. +#ifdef __cplusplus
  4205. +}
  4206. #endif
  4207. -; return 0; }
  4208. -EOF
  4209. -if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4210. - rm -rf conftest*
  4211. - eval "ac_cv_func_$ac_func=yes"
  4212. -else
  4213. - echo "configure: failed program was:" >&5
  4214. - cat conftest.$ac_ext >&5
  4215. - rm -rf conftest*
  4216. - eval "ac_cv_func_$ac_func=no"
  4217. +int
  4218. +main ()
  4219. +{
  4220. +return f != $ac_func;
  4221. + ;
  4222. + return 0;
  4223. +}
  4224. +_ACEOF
  4225. +rm -f conftest.$ac_objext conftest$ac_exeext
  4226. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4227. + (eval $ac_link) 2>&5
  4228. + ac_status=$?
  4229. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4230. + (exit $ac_status); } &&
  4231. + { ac_try='test -s conftest$ac_exeext'
  4232. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4233. + (eval $ac_try) 2>&5
  4234. + ac_status=$?
  4235. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4236. + (exit $ac_status); }; }; then
  4237. + eval "$as_ac_var=yes"
  4238. +else
  4239. + echo "$as_me: failed program was:" >&5
  4240. +sed 's/^/| /' conftest.$ac_ext >&5
  4241. +
  4242. +eval "$as_ac_var=no"
  4243. +fi
  4244. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4245. +fi
  4246. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4247. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4248. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  4249. + cat >>confdefs.h <<_ACEOF
  4250. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4251. +_ACEOF
  4252. +
  4253. +fi
  4254. +done
  4255. +
  4256. +
  4257. +echo "$as_me:$LINENO: checking for egrep" >&5
  4258. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4259. +if test "${ac_cv_prog_egrep+set}" = set; then
  4260. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4261. +else
  4262. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4263. + then ac_cv_prog_egrep='grep -E'
  4264. + else ac_cv_prog_egrep='egrep'
  4265. + fi
  4266. +fi
  4267. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4268. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4269. + EGREP=$ac_cv_prog_egrep
  4270. +
  4271. +
  4272. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4273. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4274. +if test "${ac_cv_header_stdc+set}" = set; then
  4275. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4276. +else
  4277. + cat >conftest.$ac_ext <<_ACEOF
  4278. +#line $LINENO "configure"
  4279. +/* confdefs.h. */
  4280. +_ACEOF
  4281. +cat confdefs.h >>conftest.$ac_ext
  4282. +cat >>conftest.$ac_ext <<_ACEOF
  4283. +/* end confdefs.h. */
  4284. +#include <stdlib.h>
  4285. +#include <stdarg.h>
  4286. +#include <string.h>
  4287. +#include <float.h>
  4288. +
  4289. +int
  4290. +main ()
  4291. +{
  4292. +
  4293. + ;
  4294. + return 0;
  4295. +}
  4296. +_ACEOF
  4297. +rm -f conftest.$ac_objext
  4298. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4299. + (eval $ac_compile) 2>&5
  4300. + ac_status=$?
  4301. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4302. + (exit $ac_status); } &&
  4303. + { ac_try='test -s conftest.$ac_objext'
  4304. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4305. + (eval $ac_try) 2>&5
  4306. + ac_status=$?
  4307. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. + (exit $ac_status); }; }; then
  4309. + ac_cv_header_stdc=yes
  4310. +else
  4311. + echo "$as_me: failed program was:" >&5
  4312. +sed 's/^/| /' conftest.$ac_ext >&5
  4313. +
  4314. +ac_cv_header_stdc=no
  4315. +fi
  4316. +rm -f conftest.$ac_objext conftest.$ac_ext
  4317. +
  4318. +if test $ac_cv_header_stdc = yes; then
  4319. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4320. + cat >conftest.$ac_ext <<_ACEOF
  4321. +#line $LINENO "configure"
  4322. +/* confdefs.h. */
  4323. +_ACEOF
  4324. +cat confdefs.h >>conftest.$ac_ext
  4325. +cat >>conftest.$ac_ext <<_ACEOF
  4326. +/* end confdefs.h. */
  4327. +#include <string.h>
  4328. +
  4329. +_ACEOF
  4330. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4331. + $EGREP "memchr" >/dev/null 2>&1; then
  4332. + :
  4333. +else
  4334. + ac_cv_header_stdc=no
  4335. fi
  4336. rm -f conftest*
  4337. +
  4338. fi
  4339. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4340. - echo "$ac_t""yes" 1>&6
  4341. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4342. - cat >> confdefs.h <<EOF
  4343. -#define $ac_tr_func 1
  4344. -EOF
  4345. -
  4346. +if test $ac_cv_header_stdc = yes; then
  4347. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4348. + cat >conftest.$ac_ext <<_ACEOF
  4349. +#line $LINENO "configure"
  4350. +/* confdefs.h. */
  4351. +_ACEOF
  4352. +cat confdefs.h >>conftest.$ac_ext
  4353. +cat >>conftest.$ac_ext <<_ACEOF
  4354. +/* end confdefs.h. */
  4355. +#include <stdlib.h>
  4356. +
  4357. +_ACEOF
  4358. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4359. + $EGREP "free" >/dev/null 2>&1; then
  4360. + :
  4361. else
  4362. - echo "$ac_t""no" 1>&6
  4363. + ac_cv_header_stdc=no
  4364. +fi
  4365. +rm -f conftest*
  4366. +
  4367. fi
  4368. +
  4369. +if test $ac_cv_header_stdc = yes; then
  4370. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4371. + if test "$cross_compiling" = yes; then
  4372. + :
  4373. +else
  4374. + cat >conftest.$ac_ext <<_ACEOF
  4375. +#line $LINENO "configure"
  4376. +/* confdefs.h. */
  4377. +_ACEOF
  4378. +cat confdefs.h >>conftest.$ac_ext
  4379. +cat >>conftest.$ac_ext <<_ACEOF
  4380. +/* end confdefs.h. */
  4381. +#include <ctype.h>
  4382. +#if ((' ' & 0x0FF) == 0x020)
  4383. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4384. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4385. +#else
  4386. +# define ISLOWER(c) \
  4387. + (('a' <= (c) && (c) <= 'i') \
  4388. + || ('j' <= (c) && (c) <= 'r') \
  4389. + || ('s' <= (c) && (c) <= 'z'))
  4390. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4391. +#endif
  4392. +
  4393. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4394. +int
  4395. +main ()
  4396. +{
  4397. + int i;
  4398. + for (i = 0; i < 256; i++)
  4399. + if (XOR (islower (i), ISLOWER (i))
  4400. + || toupper (i) != TOUPPER (i))
  4401. + exit(2);
  4402. + exit (0);
  4403. +}
  4404. +_ACEOF
  4405. +rm -f conftest$ac_exeext
  4406. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4407. + (eval $ac_link) 2>&5
  4408. + ac_status=$?
  4409. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4410. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4411. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4412. + (eval $ac_try) 2>&5
  4413. + ac_status=$?
  4414. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4415. + (exit $ac_status); }; }; then
  4416. + :
  4417. +else
  4418. + echo "$as_me: program exited with status $ac_status" >&5
  4419. +echo "$as_me: failed program was:" >&5
  4420. +sed 's/^/| /' conftest.$ac_ext >&5
  4421. +
  4422. +( exit $ac_status )
  4423. +ac_cv_header_stdc=no
  4424. +fi
  4425. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4426. +fi
  4427. +fi
  4428. +fi
  4429. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4430. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4431. +if test $ac_cv_header_stdc = yes; then
  4432. +
  4433. +cat >>confdefs.h <<\_ACEOF
  4434. +#define STDC_HEADERS 1
  4435. +_ACEOF
  4436. +
  4437. +fi
  4438. +
  4439. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4440. +
  4441. +
  4442. +
  4443. +
  4444. +
  4445. +
  4446. +
  4447. +
  4448. +
  4449. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4450. + inttypes.h stdint.h unistd.h
  4451. +do
  4452. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4453. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  4454. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4455. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4456. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4457. +else
  4458. + cat >conftest.$ac_ext <<_ACEOF
  4459. +#line $LINENO "configure"
  4460. +/* confdefs.h. */
  4461. +_ACEOF
  4462. +cat confdefs.h >>conftest.$ac_ext
  4463. +cat >>conftest.$ac_ext <<_ACEOF
  4464. +/* end confdefs.h. */
  4465. +$ac_includes_default
  4466. +
  4467. +#include <$ac_header>
  4468. +_ACEOF
  4469. +rm -f conftest.$ac_objext
  4470. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4471. + (eval $ac_compile) 2>&5
  4472. + ac_status=$?
  4473. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4474. + (exit $ac_status); } &&
  4475. + { ac_try='test -s conftest.$ac_objext'
  4476. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4477. + (eval $ac_try) 2>&5
  4478. + ac_status=$?
  4479. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4480. + (exit $ac_status); }; }; then
  4481. + eval "$as_ac_Header=yes"
  4482. +else
  4483. + echo "$as_me: failed program was:" >&5
  4484. +sed 's/^/| /' conftest.$ac_ext >&5
  4485. +
  4486. +eval "$as_ac_Header=no"
  4487. +fi
  4488. +rm -f conftest.$ac_objext conftest.$ac_ext
  4489. +fi
  4490. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4491. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4492. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4493. + cat >>confdefs.h <<_ACEOF
  4494. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4495. +_ACEOF
  4496. +
  4497. +fi
  4498. +
  4499. done
  4500. -for ac_hdr in procfs.h sys/procfs.h sys/loadavg.h
  4501. +
  4502. +
  4503. +
  4504. +
  4505. +for ac_header in procfs.h sys/procfs.h sys/loadavg.h
  4506. do
  4507. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4508. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  4509. -echo "configure:1655: checking for $ac_hdr" >&5
  4510. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4511. - echo $ac_n "(cached) $ac_c" 1>&6
  4512. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4513. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4514. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  4515. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4516. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4517. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4518. +fi
  4519. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4520. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4521. +else
  4522. + # Is the header compilable?
  4523. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4524. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4525. +cat >conftest.$ac_ext <<_ACEOF
  4526. +#line $LINENO "configure"
  4527. +/* confdefs.h. */
  4528. +_ACEOF
  4529. +cat confdefs.h >>conftest.$ac_ext
  4530. +cat >>conftest.$ac_ext <<_ACEOF
  4531. +/* end confdefs.h. */
  4532. +$ac_includes_default
  4533. +#include <$ac_header>
  4534. +_ACEOF
  4535. +rm -f conftest.$ac_objext
  4536. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4537. + (eval $ac_compile) 2>&5
  4538. + ac_status=$?
  4539. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4540. + (exit $ac_status); } &&
  4541. + { ac_try='test -s conftest.$ac_objext'
  4542. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4543. + (eval $ac_try) 2>&5
  4544. + ac_status=$?
  4545. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4546. + (exit $ac_status); }; }; then
  4547. + ac_header_compiler=yes
  4548. +else
  4549. + echo "$as_me: failed program was:" >&5
  4550. +sed 's/^/| /' conftest.$ac_ext >&5
  4551. +
  4552. +ac_header_compiler=no
  4553. +fi
  4554. +rm -f conftest.$ac_objext conftest.$ac_ext
  4555. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4556. +echo "${ECHO_T}$ac_header_compiler" >&6
  4557. +
  4558. +# Is the header present?
  4559. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4560. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4561. +cat >conftest.$ac_ext <<_ACEOF
  4562. +#line $LINENO "configure"
  4563. +/* confdefs.h. */
  4564. +_ACEOF
  4565. +cat confdefs.h >>conftest.$ac_ext
  4566. +cat >>conftest.$ac_ext <<_ACEOF
  4567. +/* end confdefs.h. */
  4568. +#include <$ac_header>
  4569. +_ACEOF
  4570. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4571. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4572. + ac_status=$?
  4573. + grep -v '^ *+' conftest.er1 >conftest.err
  4574. + rm -f conftest.er1
  4575. + cat conftest.err >&5
  4576. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4577. + (exit $ac_status); } >/dev/null; then
  4578. + if test -s conftest.err; then
  4579. + ac_cpp_err=$ac_c_preproc_warn_flag
  4580. + else
  4581. + ac_cpp_err=
  4582. + fi
  4583. else
  4584. - cat > conftest.$ac_ext <<EOF
  4585. -#line 1660 "configure"
  4586. -#include "confdefs.h"
  4587. -#include <$ac_hdr>
  4588. -EOF
  4589. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  4590. -{ (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  4591. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  4592. -if test -z "$ac_err"; then
  4593. - rm -rf conftest*
  4594. - eval "ac_cv_header_$ac_safe=yes"
  4595. -else
  4596. - echo "$ac_err" >&5
  4597. - echo "configure: failed program was:" >&5
  4598. - cat conftest.$ac_ext >&5
  4599. - rm -rf conftest*
  4600. - eval "ac_cv_header_$ac_safe=no"
  4601. -fi
  4602. -rm -f conftest*
  4603. + ac_cpp_err=yes
  4604. fi
  4605. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4606. - echo "$ac_t""yes" 1>&6
  4607. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4608. - cat >> confdefs.h <<EOF
  4609. -#define $ac_tr_hdr 1
  4610. -EOF
  4611. -
  4612. +if test -z "$ac_cpp_err"; then
  4613. + ac_header_preproc=yes
  4614. else
  4615. - echo "$ac_t""no" 1>&6
  4616. + echo "$as_me: failed program was:" >&5
  4617. +sed 's/^/| /' conftest.$ac_ext >&5
  4618. +
  4619. + ac_header_preproc=no
  4620. +fi
  4621. +rm -f conftest.err conftest.$ac_ext
  4622. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4623. +echo "${ECHO_T}$ac_header_preproc" >&6
  4624. +
  4625. +# So? What about this header?
  4626. +case $ac_header_compiler:$ac_header_preproc in
  4627. + yes:no )
  4628. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4629. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4630. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4631. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4632. + (
  4633. + cat <<\_ASBOX
  4634. +## ------------------------------------ ##
  4635. +## Report this to bug-autoconf@gnu.org. ##
  4636. +## ------------------------------------ ##
  4637. +_ASBOX
  4638. + ) |
  4639. + sed "s/^/$as_me: WARNING: /" >&2
  4640. + ;;
  4641. + no:yes )
  4642. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4643. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4644. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4645. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4646. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4647. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4648. + (
  4649. + cat <<\_ASBOX
  4650. +## ------------------------------------ ##
  4651. +## Report this to bug-autoconf@gnu.org. ##
  4652. +## ------------------------------------ ##
  4653. +_ASBOX
  4654. + ) |
  4655. + sed "s/^/$as_me: WARNING: /" >&2
  4656. + ;;
  4657. +esac
  4658. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  4659. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4660. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4661. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4662. +else
  4663. + eval "$as_ac_Header=$ac_header_preproc"
  4664. +fi
  4665. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4666. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4667. +
  4668. fi
  4669. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4670. + cat >>confdefs.h <<_ACEOF
  4671. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4672. +_ACEOF
  4673. +
  4674. +fi
  4675. +
  4676. done
  4677. -echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
  4678. -echo "configure:1693: checking for kvm_open in -lkvm" >&5
  4679. -ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
  4680. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4681. - echo $ac_n "(cached) $ac_c" 1>&6
  4682. +echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
  4683. +echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
  4684. +if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
  4685. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4686. else
  4687. - ac_save_LIBS="$LIBS"
  4688. + ac_check_lib_save_LIBS=$LIBS
  4689. LIBS="-lkvm $LIBS"
  4690. -cat > conftest.$ac_ext <<EOF
  4691. -#line 1701 "configure"
  4692. -#include "confdefs.h"
  4693. +cat >conftest.$ac_ext <<_ACEOF
  4694. +#line $LINENO "configure"
  4695. +/* confdefs.h. */
  4696. +_ACEOF
  4697. +cat confdefs.h >>conftest.$ac_ext
  4698. +cat >>conftest.$ac_ext <<_ACEOF
  4699. +/* end confdefs.h. */
  4700. +
  4701. /* Override any gcc2 internal prototype to avoid an error. */
  4702. +#ifdef __cplusplus
  4703. +extern "C"
  4704. +#endif
  4705. /* We use char because int might match the return type of a gcc2
  4706. - builtin and then its argument prototype would still apply. */
  4707. -char kvm_open();
  4708. -
  4709. -int main() {
  4710. -kvm_open()
  4711. -; return 0; }
  4712. -EOF
  4713. -if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4714. - rm -rf conftest*
  4715. - eval "ac_cv_lib_$ac_lib_var=yes"
  4716. -else
  4717. - echo "configure: failed program was:" >&5
  4718. - cat conftest.$ac_ext >&5
  4719. - rm -rf conftest*
  4720. - eval "ac_cv_lib_$ac_lib_var=no"
  4721. -fi
  4722. -rm -f conftest*
  4723. -LIBS="$ac_save_LIBS"
  4724. + builtin and then its argument prototype would still apply. */
  4725. +char kvm_open ();
  4726. +int
  4727. +main ()
  4728. +{
  4729. +kvm_open ();
  4730. + ;
  4731. + return 0;
  4732. +}
  4733. +_ACEOF
  4734. +rm -f conftest.$ac_objext conftest$ac_exeext
  4735. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4736. + (eval $ac_link) 2>&5
  4737. + ac_status=$?
  4738. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4739. + (exit $ac_status); } &&
  4740. + { ac_try='test -s conftest$ac_exeext'
  4741. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4742. + (eval $ac_try) 2>&5
  4743. + ac_status=$?
  4744. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4745. + (exit $ac_status); }; }; then
  4746. + ac_cv_lib_kvm_kvm_open=yes
  4747. +else
  4748. + echo "$as_me: failed program was:" >&5
  4749. +sed 's/^/| /' conftest.$ac_ext >&5
  4750. +
  4751. +ac_cv_lib_kvm_kvm_open=no
  4752. +fi
  4753. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4754. +LIBS=$ac_check_lib_save_LIBS
  4755. +fi
  4756. +echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
  4757. +echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
  4758. +if test $ac_cv_lib_kvm_kvm_open = yes; then
  4759. -fi
  4760. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4761. - echo "$ac_t""yes" 1>&6
  4762. -
  4763. LIBS="-lkvm $LIBS"
  4764. else
  4765. - echo "$ac_t""no" 1>&6
  4766. -echo $ac_n "checking for kvm_open in -lkvm with -lelf""... $ac_c" 1>&6
  4767. -echo "configure:1733: checking for kvm_open in -lkvm with -lelf" >&5
  4768. - if eval "test \"`echo '$''{'ac_cv_lib_kvm_with_elf'+set}'`\" = set"; then
  4769. - echo $ac_n "(cached) $ac_c" 1>&6
  4770. + echo "$as_me:$LINENO: checking for kvm_open in -lkvm with -lelf" >&5
  4771. +echo $ECHO_N "checking for kvm_open in -lkvm with -lelf... $ECHO_C" >&6
  4772. + if test "${ac_cv_lib_kvm_with_elf+set}" = set; then
  4773. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4774. else
  4775. ac_save_LIBS="$LIBS"
  4776. LIBS="-lkvm -lelf $LIBS"
  4777. - cat > conftest.$ac_ext <<EOF
  4778. -#line 1740 "configure"
  4779. -#include "confdefs.h"
  4780. + cat >conftest.$ac_ext <<_ACEOF
  4781. +#line $LINENO "configure"
  4782. +/* confdefs.h. */
  4783. +_ACEOF
  4784. +cat confdefs.h >>conftest.$ac_ext
  4785. +cat >>conftest.$ac_ext <<_ACEOF
  4786. +/* end confdefs.h. */
  4787. char kvm_open();
  4788. -int main() {
  4789. +int
  4790. +main ()
  4791. +{
  4792. kvm_open()
  4793. -; return 0; }
  4794. -EOF
  4795. -if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4796. - rm -rf conftest*
  4797. + ;
  4798. + return 0;
  4799. +}
  4800. +_ACEOF
  4801. +rm -f conftest.$ac_objext conftest$ac_exeext
  4802. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4803. + (eval $ac_link) 2>&5
  4804. + ac_status=$?
  4805. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4806. + (exit $ac_status); } &&
  4807. + { ac_try='test -s conftest$ac_exeext'
  4808. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4809. + (eval $ac_try) 2>&5
  4810. + ac_status=$?
  4811. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4812. + (exit $ac_status); }; }; then
  4813. ac_cv_lib_kvm_with_elf=yes
  4814. else
  4815. - echo "configure: failed program was:" >&5
  4816. - cat conftest.$ac_ext >&5
  4817. - rm -rf conftest*
  4818. - ac_cv_lib_kvm_with_elf=no
  4819. + echo "$as_me: failed program was:" >&5
  4820. +sed 's/^/| /' conftest.$ac_ext >&5
  4821. +
  4822. +ac_cv_lib_kvm_with_elf=no
  4823. fi
  4824. -rm -f conftest*
  4825. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4826. LIBS="$ac_save_LIBS"
  4827. -
  4828. +
  4829. fi
  4830. if test "$ac_cv_lib_kvm_with_elf" = "yes"; then
  4831. - echo "$ac_t""yes" 1>&6
  4832. + echo "$as_me:$LINENO: result: yes" >&5
  4833. +echo "${ECHO_T}yes" >&6
  4834. LIBS="-lkvm -lelf $LIBS"
  4835. else
  4836. - echo "$ac_t""no" 1>&6
  4837. + echo "$as_me:$LINENO: result: no" >&5
  4838. +echo "${ECHO_T}no" >&6
  4839. fi
  4840. fi
  4841. +
  4842. +
  4843. +
  4844. +
  4845. +
  4846. ac_header_dirent=no
  4847. -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  4848. -do
  4849. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  4850. -echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  4851. -echo "configure:1776: checking for $ac_hdr that defines DIR" >&5
  4852. -if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  4853. - echo $ac_n "(cached) $ac_c" 1>&6
  4854. -else
  4855. - cat > conftest.$ac_ext <<EOF
  4856. -#line 1781 "configure"
  4857. -#include "confdefs.h"
  4858. +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4859. + as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4860. +echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4861. +echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4862. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4863. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4864. +else
  4865. + cat >conftest.$ac_ext <<_ACEOF
  4866. +#line $LINENO "configure"
  4867. +/* confdefs.h. */
  4868. +_ACEOF
  4869. +cat confdefs.h >>conftest.$ac_ext
  4870. +cat >>conftest.$ac_ext <<_ACEOF
  4871. +/* end confdefs.h. */
  4872. #include <sys/types.h>
  4873. #include <$ac_hdr>
  4874. -int main() {
  4875. -DIR *dirp = 0;
  4876. -; return 0; }
  4877. -EOF
  4878. -if { (eval echo configure:1789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4879. - rm -rf conftest*
  4880. - eval "ac_cv_header_dirent_$ac_safe=yes"
  4881. -else
  4882. - echo "configure: failed program was:" >&5
  4883. - cat conftest.$ac_ext >&5
  4884. - rm -rf conftest*
  4885. - eval "ac_cv_header_dirent_$ac_safe=no"
  4886. -fi
  4887. -rm -f conftest*
  4888. -fi
  4889. -if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  4890. - echo "$ac_t""yes" 1>&6
  4891. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  4892. - cat >> confdefs.h <<EOF
  4893. -#define $ac_tr_hdr 1
  4894. -EOF
  4895. - ac_header_dirent=$ac_hdr; break
  4896. -else
  4897. - echo "$ac_t""no" 1>&6
  4898. +
  4899. +int
  4900. +main ()
  4901. +{
  4902. +if ((DIR *) 0)
  4903. +return 0;
  4904. + ;
  4905. + return 0;
  4906. +}
  4907. +_ACEOF
  4908. +rm -f conftest.$ac_objext
  4909. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4910. + (eval $ac_compile) 2>&5
  4911. + ac_status=$?
  4912. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4913. + (exit $ac_status); } &&
  4914. + { ac_try='test -s conftest.$ac_objext'
  4915. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4916. + (eval $ac_try) 2>&5
  4917. + ac_status=$?
  4918. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4919. + (exit $ac_status); }; }; then
  4920. + eval "$as_ac_Header=yes"
  4921. +else
  4922. + echo "$as_me: failed program was:" >&5
  4923. +sed 's/^/| /' conftest.$ac_ext >&5
  4924. +
  4925. +eval "$as_ac_Header=no"
  4926. +fi
  4927. +rm -f conftest.$ac_objext conftest.$ac_ext
  4928. +fi
  4929. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4930. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4931. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4932. + cat >>confdefs.h <<_ACEOF
  4933. +#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4934. +_ACEOF
  4935. +
  4936. +ac_header_dirent=$ac_hdr; break
  4937. fi
  4938. +
  4939. done
  4940. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4941. if test $ac_header_dirent = dirent.h; then
  4942. -echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  4943. -echo "configure:1814: checking for opendir in -ldir" >&5
  4944. -ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  4945. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4946. - echo $ac_n "(cached) $ac_c" 1>&6
  4947. -else
  4948. - ac_save_LIBS="$LIBS"
  4949. -LIBS="-ldir $LIBS"
  4950. -cat > conftest.$ac_ext <<EOF
  4951. -#line 1822 "configure"
  4952. -#include "confdefs.h"
  4953. + echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4954. +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4955. +if test "${ac_cv_search_opendir+set}" = set; then
  4956. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4957. +else
  4958. + ac_func_search_save_LIBS=$LIBS
  4959. +ac_cv_search_opendir=no
  4960. +cat >conftest.$ac_ext <<_ACEOF
  4961. +#line $LINENO "configure"
  4962. +/* confdefs.h. */
  4963. +_ACEOF
  4964. +cat confdefs.h >>conftest.$ac_ext
  4965. +cat >>conftest.$ac_ext <<_ACEOF
  4966. +/* end confdefs.h. */
  4967. +
  4968. /* Override any gcc2 internal prototype to avoid an error. */
  4969. +#ifdef __cplusplus
  4970. +extern "C"
  4971. +#endif
  4972. /* We use char because int might match the return type of a gcc2
  4973. - builtin and then its argument prototype would still apply. */
  4974. -char opendir();
  4975. + builtin and then its argument prototype would still apply. */
  4976. +char opendir ();
  4977. +int
  4978. +main ()
  4979. +{
  4980. +opendir ();
  4981. + ;
  4982. + return 0;
  4983. +}
  4984. +_ACEOF
  4985. +rm -f conftest.$ac_objext conftest$ac_exeext
  4986. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4987. + (eval $ac_link) 2>&5
  4988. + ac_status=$?
  4989. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4990. + (exit $ac_status); } &&
  4991. + { ac_try='test -s conftest$ac_exeext'
  4992. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4993. + (eval $ac_try) 2>&5
  4994. + ac_status=$?
  4995. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4996. + (exit $ac_status); }; }; then
  4997. + ac_cv_search_opendir="none required"
  4998. +else
  4999. + echo "$as_me: failed program was:" >&5
  5000. +sed 's/^/| /' conftest.$ac_ext >&5
  5001. +
  5002. +fi
  5003. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5004. +if test "$ac_cv_search_opendir" = no; then
  5005. + for ac_lib in dir; do
  5006. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5007. + cat >conftest.$ac_ext <<_ACEOF
  5008. +#line $LINENO "configure"
  5009. +/* confdefs.h. */
  5010. +_ACEOF
  5011. +cat confdefs.h >>conftest.$ac_ext
  5012. +cat >>conftest.$ac_ext <<_ACEOF
  5013. +/* end confdefs.h. */
  5014. -int main() {
  5015. -opendir()
  5016. -; return 0; }
  5017. -EOF
  5018. -if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5019. - rm -rf conftest*
  5020. - eval "ac_cv_lib_$ac_lib_var=yes"
  5021. -else
  5022. - echo "configure: failed program was:" >&5
  5023. - cat conftest.$ac_ext >&5
  5024. - rm -rf conftest*
  5025. - eval "ac_cv_lib_$ac_lib_var=no"
  5026. -fi
  5027. -rm -f conftest*
  5028. -LIBS="$ac_save_LIBS"
  5029. +/* Override any gcc2 internal prototype to avoid an error. */
  5030. +#ifdef __cplusplus
  5031. +extern "C"
  5032. +#endif
  5033. +/* We use char because int might match the return type of a gcc2
  5034. + builtin and then its argument prototype would still apply. */
  5035. +char opendir ();
  5036. +int
  5037. +main ()
  5038. +{
  5039. +opendir ();
  5040. + ;
  5041. + return 0;
  5042. +}
  5043. +_ACEOF
  5044. +rm -f conftest.$ac_objext conftest$ac_exeext
  5045. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5046. + (eval $ac_link) 2>&5
  5047. + ac_status=$?
  5048. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. + (exit $ac_status); } &&
  5050. + { ac_try='test -s conftest$ac_exeext'
  5051. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5052. + (eval $ac_try) 2>&5
  5053. + ac_status=$?
  5054. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055. + (exit $ac_status); }; }; then
  5056. + ac_cv_search_opendir="-l$ac_lib"
  5057. +break
  5058. +else
  5059. + echo "$as_me: failed program was:" >&5
  5060. +sed 's/^/| /' conftest.$ac_ext >&5
  5061. fi
  5062. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5063. - echo "$ac_t""yes" 1>&6
  5064. - LIBS="$LIBS -ldir"
  5065. -else
  5066. - echo "$ac_t""no" 1>&6
  5067. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5068. + done
  5069. +fi
  5070. +LIBS=$ac_func_search_save_LIBS
  5071. +fi
  5072. +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5073. +echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5074. +if test "$ac_cv_search_opendir" != no; then
  5075. + test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5076. +
  5077. fi
  5078. else
  5079. -echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  5080. -echo "configure:1855: checking for opendir in -lx" >&5
  5081. -ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  5082. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5083. - echo $ac_n "(cached) $ac_c" 1>&6
  5084. -else
  5085. - ac_save_LIBS="$LIBS"
  5086. -LIBS="-lx $LIBS"
  5087. -cat > conftest.$ac_ext <<EOF
  5088. -#line 1863 "configure"
  5089. -#include "confdefs.h"
  5090. + echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5091. +echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5092. +if test "${ac_cv_search_opendir+set}" = set; then
  5093. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5094. +else
  5095. + ac_func_search_save_LIBS=$LIBS
  5096. +ac_cv_search_opendir=no
  5097. +cat >conftest.$ac_ext <<_ACEOF
  5098. +#line $LINENO "configure"
  5099. +/* confdefs.h. */
  5100. +_ACEOF
  5101. +cat confdefs.h >>conftest.$ac_ext
  5102. +cat >>conftest.$ac_ext <<_ACEOF
  5103. +/* end confdefs.h. */
  5104. +
  5105. /* Override any gcc2 internal prototype to avoid an error. */
  5106. +#ifdef __cplusplus
  5107. +extern "C"
  5108. +#endif
  5109. /* We use char because int might match the return type of a gcc2
  5110. - builtin and then its argument prototype would still apply. */
  5111. -char opendir();
  5112. + builtin and then its argument prototype would still apply. */
  5113. +char opendir ();
  5114. +int
  5115. +main ()
  5116. +{
  5117. +opendir ();
  5118. + ;
  5119. + return 0;
  5120. +}
  5121. +_ACEOF
  5122. +rm -f conftest.$ac_objext conftest$ac_exeext
  5123. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5124. + (eval $ac_link) 2>&5
  5125. + ac_status=$?
  5126. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5127. + (exit $ac_status); } &&
  5128. + { ac_try='test -s conftest$ac_exeext'
  5129. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5130. + (eval $ac_try) 2>&5
  5131. + ac_status=$?
  5132. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5133. + (exit $ac_status); }; }; then
  5134. + ac_cv_search_opendir="none required"
  5135. +else
  5136. + echo "$as_me: failed program was:" >&5
  5137. +sed 's/^/| /' conftest.$ac_ext >&5
  5138. +
  5139. +fi
  5140. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5141. +if test "$ac_cv_search_opendir" = no; then
  5142. + for ac_lib in x; do
  5143. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5144. + cat >conftest.$ac_ext <<_ACEOF
  5145. +#line $LINENO "configure"
  5146. +/* confdefs.h. */
  5147. +_ACEOF
  5148. +cat confdefs.h >>conftest.$ac_ext
  5149. +cat >>conftest.$ac_ext <<_ACEOF
  5150. +/* end confdefs.h. */
  5151. -int main() {
  5152. -opendir()
  5153. -; return 0; }
  5154. -EOF
  5155. -if { (eval echo configure:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5156. - rm -rf conftest*
  5157. - eval "ac_cv_lib_$ac_lib_var=yes"
  5158. -else
  5159. - echo "configure: failed program was:" >&5
  5160. - cat conftest.$ac_ext >&5
  5161. - rm -rf conftest*
  5162. - eval "ac_cv_lib_$ac_lib_var=no"
  5163. -fi
  5164. -rm -f conftest*
  5165. -LIBS="$ac_save_LIBS"
  5166. +/* Override any gcc2 internal prototype to avoid an error. */
  5167. +#ifdef __cplusplus
  5168. +extern "C"
  5169. +#endif
  5170. +/* We use char because int might match the return type of a gcc2
  5171. + builtin and then its argument prototype would still apply. */
  5172. +char opendir ();
  5173. +int
  5174. +main ()
  5175. +{
  5176. +opendir ();
  5177. + ;
  5178. + return 0;
  5179. +}
  5180. +_ACEOF
  5181. +rm -f conftest.$ac_objext conftest$ac_exeext
  5182. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5183. + (eval $ac_link) 2>&5
  5184. + ac_status=$?
  5185. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5186. + (exit $ac_status); } &&
  5187. + { ac_try='test -s conftest$ac_exeext'
  5188. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5189. + (eval $ac_try) 2>&5
  5190. + ac_status=$?
  5191. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5192. + (exit $ac_status); }; }; then
  5193. + ac_cv_search_opendir="-l$ac_lib"
  5194. +break
  5195. +else
  5196. + echo "$as_me: failed program was:" >&5
  5197. +sed 's/^/| /' conftest.$ac_ext >&5
  5198. fi
  5199. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5200. - echo "$ac_t""yes" 1>&6
  5201. - LIBS="$LIBS -lx"
  5202. -else
  5203. - echo "$ac_t""no" 1>&6
  5204. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5205. + done
  5206. +fi
  5207. +LIBS=$ac_func_search_save_LIBS
  5208. +fi
  5209. +echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5210. +echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5211. +if test "$ac_cv_search_opendir" != no; then
  5212. + test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5213. +
  5214. fi
  5215. fi
  5216. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  5217. -echo "configure:1897: checking for ANSI C header files" >&5
  5218. -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  5219. - echo $ac_n "(cached) $ac_c" 1>&6
  5220. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5221. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  5222. +if test "${ac_cv_header_stdc+set}" = set; then
  5223. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5224. else
  5225. - cat > conftest.$ac_ext <<EOF
  5226. -#line 1902 "configure"
  5227. -#include "confdefs.h"
  5228. + cat >conftest.$ac_ext <<_ACEOF
  5229. +#line $LINENO "configure"
  5230. +/* confdefs.h. */
  5231. +_ACEOF
  5232. +cat confdefs.h >>conftest.$ac_ext
  5233. +cat >>conftest.$ac_ext <<_ACEOF
  5234. +/* end confdefs.h. */
  5235. #include <stdlib.h>
  5236. #include <stdarg.h>
  5237. #include <string.h>
  5238. #include <float.h>
  5239. -EOF
  5240. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5241. -{ (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5242. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5243. -if test -z "$ac_err"; then
  5244. - rm -rf conftest*
  5245. +
  5246. +int
  5247. +main ()
  5248. +{
  5249. +
  5250. + ;
  5251. + return 0;
  5252. +}
  5253. +_ACEOF
  5254. +rm -f conftest.$ac_objext
  5255. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5256. + (eval $ac_compile) 2>&5
  5257. + ac_status=$?
  5258. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5259. + (exit $ac_status); } &&
  5260. + { ac_try='test -s conftest.$ac_objext'
  5261. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5262. + (eval $ac_try) 2>&5
  5263. + ac_status=$?
  5264. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5265. + (exit $ac_status); }; }; then
  5266. ac_cv_header_stdc=yes
  5267. else
  5268. - echo "$ac_err" >&5
  5269. - echo "configure: failed program was:" >&5
  5270. - cat conftest.$ac_ext >&5
  5271. - rm -rf conftest*
  5272. - ac_cv_header_stdc=no
  5273. + echo "$as_me: failed program was:" >&5
  5274. +sed 's/^/| /' conftest.$ac_ext >&5
  5275. +
  5276. +ac_cv_header_stdc=no
  5277. fi
  5278. -rm -f conftest*
  5279. +rm -f conftest.$ac_objext conftest.$ac_ext
  5280. if test $ac_cv_header_stdc = yes; then
  5281. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5282. -cat > conftest.$ac_ext <<EOF
  5283. -#line 1927 "configure"
  5284. -#include "confdefs.h"
  5285. + cat >conftest.$ac_ext <<_ACEOF
  5286. +#line $LINENO "configure"
  5287. +/* confdefs.h. */
  5288. +_ACEOF
  5289. +cat confdefs.h >>conftest.$ac_ext
  5290. +cat >>conftest.$ac_ext <<_ACEOF
  5291. +/* end confdefs.h. */
  5292. #include <string.h>
  5293. -EOF
  5294. +
  5295. +_ACEOF
  5296. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5297. - egrep "memchr" >/dev/null 2>&1; then
  5298. + $EGREP "memchr" >/dev/null 2>&1; then
  5299. :
  5300. else
  5301. - rm -rf conftest*
  5302. ac_cv_header_stdc=no
  5303. fi
  5304. rm -f conftest*
  5305. @@ -1940,16 +4358,20 @@
  5306. if test $ac_cv_header_stdc = yes; then
  5307. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5308. -cat > conftest.$ac_ext <<EOF
  5309. -#line 1945 "configure"
  5310. -#include "confdefs.h"
  5311. + cat >conftest.$ac_ext <<_ACEOF
  5312. +#line $LINENO "configure"
  5313. +/* confdefs.h. */
  5314. +_ACEOF
  5315. +cat confdefs.h >>conftest.$ac_ext
  5316. +cat >>conftest.$ac_ext <<_ACEOF
  5317. +/* end confdefs.h. */
  5318. #include <stdlib.h>
  5319. -EOF
  5320. +
  5321. +_ACEOF
  5322. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5323. - egrep "free" >/dev/null 2>&1; then
  5324. + $EGREP "free" >/dev/null 2>&1; then
  5325. :
  5326. else
  5327. - rm -rf conftest*
  5328. ac_cv_header_stdc=no
  5329. fi
  5330. rm -f conftest*
  5331. @@ -1958,436 +4380,794 @@
  5332. if test $ac_cv_header_stdc = yes; then
  5333. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5334. -if test "$cross_compiling" = yes; then
  5335. + if test "$cross_compiling" = yes; then
  5336. :
  5337. else
  5338. - cat > conftest.$ac_ext <<EOF
  5339. -#line 1966 "configure"
  5340. -#include "confdefs.h"
  5341. + cat >conftest.$ac_ext <<_ACEOF
  5342. +#line $LINENO "configure"
  5343. +/* confdefs.h. */
  5344. +_ACEOF
  5345. +cat confdefs.h >>conftest.$ac_ext
  5346. +cat >>conftest.$ac_ext <<_ACEOF
  5347. +/* end confdefs.h. */
  5348. #include <ctype.h>
  5349. -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5350. -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5351. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5352. -int main () { int i; for (i = 0; i < 256; i++)
  5353. -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  5354. -exit (0); }
  5355. +#if ((' ' & 0x0FF) == 0x020)
  5356. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5357. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5358. +#else
  5359. +# define ISLOWER(c) \
  5360. + (('a' <= (c) && (c) <= 'i') \
  5361. + || ('j' <= (c) && (c) <= 'r') \
  5362. + || ('s' <= (c) && (c) <= 'z'))
  5363. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5364. +#endif
  5365. -EOF
  5366. -if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  5367. -then
  5368. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5369. +int
  5370. +main ()
  5371. +{
  5372. + int i;
  5373. + for (i = 0; i < 256; i++)
  5374. + if (XOR (islower (i), ISLOWER (i))
  5375. + || toupper (i) != TOUPPER (i))
  5376. + exit(2);
  5377. + exit (0);
  5378. +}
  5379. +_ACEOF
  5380. +rm -f conftest$ac_exeext
  5381. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5382. + (eval $ac_link) 2>&5
  5383. + ac_status=$?
  5384. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5385. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5386. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5387. + (eval $ac_try) 2>&5
  5388. + ac_status=$?
  5389. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5390. + (exit $ac_status); }; }; then
  5391. :
  5392. else
  5393. - echo "configure: failed program was:" >&5
  5394. - cat conftest.$ac_ext >&5
  5395. - rm -fr conftest*
  5396. - ac_cv_header_stdc=no
  5397. + echo "$as_me: program exited with status $ac_status" >&5
  5398. +echo "$as_me: failed program was:" >&5
  5399. +sed 's/^/| /' conftest.$ac_ext >&5
  5400. +
  5401. +( exit $ac_status )
  5402. +ac_cv_header_stdc=no
  5403. fi
  5404. -rm -fr conftest*
  5405. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5406. fi
  5407. -
  5408. fi
  5409. fi
  5410. -
  5411. -echo "$ac_t""$ac_cv_header_stdc" 1>&6
  5412. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5413. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5414. if test $ac_cv_header_stdc = yes; then
  5415. - cat >> confdefs.h <<\EOF
  5416. +
  5417. +cat >>confdefs.h <<\_ACEOF
  5418. #define STDC_HEADERS 1
  5419. -EOF
  5420. +_ACEOF
  5421. fi
  5422. -for ac_hdr in fcntl.h sys/ioctl.h sys/time.h unistd.h
  5423. +
  5424. +
  5425. +
  5426. +
  5427. +for ac_header in fcntl.h sys/ioctl.h sys/time.h unistd.h
  5428. do
  5429. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5430. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5431. -echo "configure:2004: checking for $ac_hdr" >&5
  5432. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5433. - echo $ac_n "(cached) $ac_c" 1>&6
  5434. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5435. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5436. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  5437. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5438. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5439. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5440. +fi
  5441. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5442. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5443. +else
  5444. + # Is the header compilable?
  5445. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5446. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5447. +cat >conftest.$ac_ext <<_ACEOF
  5448. +#line $LINENO "configure"
  5449. +/* confdefs.h. */
  5450. +_ACEOF
  5451. +cat confdefs.h >>conftest.$ac_ext
  5452. +cat >>conftest.$ac_ext <<_ACEOF
  5453. +/* end confdefs.h. */
  5454. +$ac_includes_default
  5455. +#include <$ac_header>
  5456. +_ACEOF
  5457. +rm -f conftest.$ac_objext
  5458. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5459. + (eval $ac_compile) 2>&5
  5460. + ac_status=$?
  5461. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5462. + (exit $ac_status); } &&
  5463. + { ac_try='test -s conftest.$ac_objext'
  5464. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5465. + (eval $ac_try) 2>&5
  5466. + ac_status=$?
  5467. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5468. + (exit $ac_status); }; }; then
  5469. + ac_header_compiler=yes
  5470. +else
  5471. + echo "$as_me: failed program was:" >&5
  5472. +sed 's/^/| /' conftest.$ac_ext >&5
  5473. +
  5474. +ac_header_compiler=no
  5475. +fi
  5476. +rm -f conftest.$ac_objext conftest.$ac_ext
  5477. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5478. +echo "${ECHO_T}$ac_header_compiler" >&6
  5479. +
  5480. +# Is the header present?
  5481. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5482. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5483. +cat >conftest.$ac_ext <<_ACEOF
  5484. +#line $LINENO "configure"
  5485. +/* confdefs.h. */
  5486. +_ACEOF
  5487. +cat confdefs.h >>conftest.$ac_ext
  5488. +cat >>conftest.$ac_ext <<_ACEOF
  5489. +/* end confdefs.h. */
  5490. +#include <$ac_header>
  5491. +_ACEOF
  5492. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5493. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5494. + ac_status=$?
  5495. + grep -v '^ *+' conftest.er1 >conftest.err
  5496. + rm -f conftest.er1
  5497. + cat conftest.err >&5
  5498. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5499. + (exit $ac_status); } >/dev/null; then
  5500. + if test -s conftest.err; then
  5501. + ac_cpp_err=$ac_c_preproc_warn_flag
  5502. + else
  5503. + ac_cpp_err=
  5504. + fi
  5505. else
  5506. - cat > conftest.$ac_ext <<EOF
  5507. -#line 2009 "configure"
  5508. -#include "confdefs.h"
  5509. -#include <$ac_hdr>
  5510. -EOF
  5511. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5512. -{ (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5513. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5514. -if test -z "$ac_err"; then
  5515. - rm -rf conftest*
  5516. - eval "ac_cv_header_$ac_safe=yes"
  5517. -else
  5518. - echo "$ac_err" >&5
  5519. - echo "configure: failed program was:" >&5
  5520. - cat conftest.$ac_ext >&5
  5521. - rm -rf conftest*
  5522. - eval "ac_cv_header_$ac_safe=no"
  5523. -fi
  5524. -rm -f conftest*
  5525. + ac_cpp_err=yes
  5526. fi
  5527. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5528. - echo "$ac_t""yes" 1>&6
  5529. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5530. - cat >> confdefs.h <<EOF
  5531. -#define $ac_tr_hdr 1
  5532. -EOF
  5533. -
  5534. +if test -z "$ac_cpp_err"; then
  5535. + ac_header_preproc=yes
  5536. +else
  5537. + echo "$as_me: failed program was:" >&5
  5538. +sed 's/^/| /' conftest.$ac_ext >&5
  5539. +
  5540. + ac_header_preproc=no
  5541. +fi
  5542. +rm -f conftest.err conftest.$ac_ext
  5543. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5544. +echo "${ECHO_T}$ac_header_preproc" >&6
  5545. +
  5546. +# So? What about this header?
  5547. +case $ac_header_compiler:$ac_header_preproc in
  5548. + yes:no )
  5549. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5550. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5551. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5552. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5553. + (
  5554. + cat <<\_ASBOX
  5555. +## ------------------------------------ ##
  5556. +## Report this to bug-autoconf@gnu.org. ##
  5557. +## ------------------------------------ ##
  5558. +_ASBOX
  5559. + ) |
  5560. + sed "s/^/$as_me: WARNING: /" >&2
  5561. + ;;
  5562. + no:yes )
  5563. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5564. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5565. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5566. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5567. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5568. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5569. + (
  5570. + cat <<\_ASBOX
  5571. +## ------------------------------------ ##
  5572. +## Report this to bug-autoconf@gnu.org. ##
  5573. +## ------------------------------------ ##
  5574. +_ASBOX
  5575. + ) |
  5576. + sed "s/^/$as_me: WARNING: /" >&2
  5577. + ;;
  5578. +esac
  5579. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  5580. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5581. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5582. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5583. else
  5584. - echo "$ac_t""no" 1>&6
  5585. + eval "$as_ac_Header=$ac_header_preproc"
  5586. +fi
  5587. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5588. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5589. +
  5590. fi
  5591. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5592. + cat >>confdefs.h <<_ACEOF
  5593. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5594. +_ACEOF
  5595. +
  5596. +fi
  5597. +
  5598. done
  5599. -for ac_hdr in curses.h ncurses.h
  5600. +
  5601. +
  5602. +for ac_header in curses.h ncurses.h
  5603. do
  5604. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5605. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  5606. -echo "configure:2044: checking for $ac_hdr" >&5
  5607. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5608. - echo $ac_n "(cached) $ac_c" 1>&6
  5609. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5610. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5611. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  5612. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5613. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5614. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5615. +fi
  5616. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5617. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5618. +else
  5619. + # Is the header compilable?
  5620. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5621. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5622. +cat >conftest.$ac_ext <<_ACEOF
  5623. +#line $LINENO "configure"
  5624. +/* confdefs.h. */
  5625. +_ACEOF
  5626. +cat confdefs.h >>conftest.$ac_ext
  5627. +cat >>conftest.$ac_ext <<_ACEOF
  5628. +/* end confdefs.h. */
  5629. +$ac_includes_default
  5630. +#include <$ac_header>
  5631. +_ACEOF
  5632. +rm -f conftest.$ac_objext
  5633. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5634. + (eval $ac_compile) 2>&5
  5635. + ac_status=$?
  5636. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5637. + (exit $ac_status); } &&
  5638. + { ac_try='test -s conftest.$ac_objext'
  5639. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5640. + (eval $ac_try) 2>&5
  5641. + ac_status=$?
  5642. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5643. + (exit $ac_status); }; }; then
  5644. + ac_header_compiler=yes
  5645. +else
  5646. + echo "$as_me: failed program was:" >&5
  5647. +sed 's/^/| /' conftest.$ac_ext >&5
  5648. +
  5649. +ac_header_compiler=no
  5650. +fi
  5651. +rm -f conftest.$ac_objext conftest.$ac_ext
  5652. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5653. +echo "${ECHO_T}$ac_header_compiler" >&6
  5654. +
  5655. +# Is the header present?
  5656. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5657. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5658. +cat >conftest.$ac_ext <<_ACEOF
  5659. +#line $LINENO "configure"
  5660. +/* confdefs.h. */
  5661. +_ACEOF
  5662. +cat confdefs.h >>conftest.$ac_ext
  5663. +cat >>conftest.$ac_ext <<_ACEOF
  5664. +/* end confdefs.h. */
  5665. +#include <$ac_header>
  5666. +_ACEOF
  5667. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5668. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5669. + ac_status=$?
  5670. + grep -v '^ *+' conftest.er1 >conftest.err
  5671. + rm -f conftest.er1
  5672. + cat conftest.err >&5
  5673. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5674. + (exit $ac_status); } >/dev/null; then
  5675. + if test -s conftest.err; then
  5676. + ac_cpp_err=$ac_c_preproc_warn_flag
  5677. + else
  5678. + ac_cpp_err=
  5679. + fi
  5680. else
  5681. - cat > conftest.$ac_ext <<EOF
  5682. -#line 2049 "configure"
  5683. -#include "confdefs.h"
  5684. -#include <$ac_hdr>
  5685. -EOF
  5686. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  5687. -{ (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  5688. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  5689. -if test -z "$ac_err"; then
  5690. - rm -rf conftest*
  5691. - eval "ac_cv_header_$ac_safe=yes"
  5692. -else
  5693. - echo "$ac_err" >&5
  5694. - echo "configure: failed program was:" >&5
  5695. - cat conftest.$ac_ext >&5
  5696. - rm -rf conftest*
  5697. - eval "ac_cv_header_$ac_safe=no"
  5698. + ac_cpp_err=yes
  5699. fi
  5700. -rm -f conftest*
  5701. +if test -z "$ac_cpp_err"; then
  5702. + ac_header_preproc=yes
  5703. +else
  5704. + echo "$as_me: failed program was:" >&5
  5705. +sed 's/^/| /' conftest.$ac_ext >&5
  5706. +
  5707. + ac_header_preproc=no
  5708. +fi
  5709. +rm -f conftest.err conftest.$ac_ext
  5710. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5711. +echo "${ECHO_T}$ac_header_preproc" >&6
  5712. +
  5713. +# So? What about this header?
  5714. +case $ac_header_compiler:$ac_header_preproc in
  5715. + yes:no )
  5716. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5717. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5718. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5719. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5720. + (
  5721. + cat <<\_ASBOX
  5722. +## ------------------------------------ ##
  5723. +## Report this to bug-autoconf@gnu.org. ##
  5724. +## ------------------------------------ ##
  5725. +_ASBOX
  5726. + ) |
  5727. + sed "s/^/$as_me: WARNING: /" >&2
  5728. + ;;
  5729. + no:yes )
  5730. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5731. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5732. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5733. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5734. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5735. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5736. + (
  5737. + cat <<\_ASBOX
  5738. +## ------------------------------------ ##
  5739. +## Report this to bug-autoconf@gnu.org. ##
  5740. +## ------------------------------------ ##
  5741. +_ASBOX
  5742. + ) |
  5743. + sed "s/^/$as_me: WARNING: /" >&2
  5744. + ;;
  5745. +esac
  5746. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  5747. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5748. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5749. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5750. +else
  5751. + eval "$as_ac_Header=$ac_header_preproc"
  5752. +fi
  5753. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5754. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5755. +
  5756. +fi
  5757. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5758. + cat >>confdefs.h <<_ACEOF
  5759. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5760. +_ACEOF
  5761. +
  5762. fi
  5763. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5764. - echo "$ac_t""yes" 1>&6
  5765. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5766. - cat >> confdefs.h <<EOF
  5767. -#define $ac_tr_hdr 1
  5768. -EOF
  5769. -
  5770. -else
  5771. - echo "$ac_t""no" 1>&6
  5772. -fi
  5773. -done
  5774. -
  5775. -
  5776. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  5777. -echo "configure:2082: checking for working const" >&5
  5778. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  5779. - echo $ac_n "(cached) $ac_c" 1>&6
  5780. -else
  5781. - cat > conftest.$ac_ext <<EOF
  5782. -#line 2087 "configure"
  5783. -#include "confdefs.h"
  5784. -
  5785. -int main() {
  5786. -
  5787. -/* Ultrix mips cc rejects this. */
  5788. -typedef int charset[2]; const charset x;
  5789. -/* SunOS 4.1.1 cc rejects this. */
  5790. -char const *const *ccp;
  5791. -char **p;
  5792. -/* NEC SVR4.0.2 mips cc rejects this. */
  5793. -struct point {int x, y;};
  5794. -static struct point const zero = {0,0};
  5795. -/* AIX XL C 1.02.0.0 rejects this.
  5796. - It does not let you subtract one const X* pointer from another in an arm
  5797. - of an if-expression whose if-part is not a constant expression */
  5798. -const char *g = "string";
  5799. -ccp = &g + (g ? g-g : 0);
  5800. -/* HPUX 7.0 cc rejects these. */
  5801. -++ccp;
  5802. -p = (char**) ccp;
  5803. -ccp = (char const *const *) p;
  5804. -{ /* SCO 3.2v4 cc rejects this. */
  5805. - char *t;
  5806. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  5807. -
  5808. - *t++ = 0;
  5809. -}
  5810. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5811. - int x[] = {25, 17};
  5812. - const int *foo = &x[0];
  5813. - ++foo;
  5814. -}
  5815. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5816. - typedef const int *iptr;
  5817. - iptr p = 0;
  5818. - ++p;
  5819. -}
  5820. -{ /* AIX XL C 1.02.0.0 rejects this saying
  5821. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5822. - struct s { int j; const int *ap[3]; };
  5823. - struct s *b; b->j = 5;
  5824. -}
  5825. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5826. - const int foo = 10;
  5827. -}
  5828. -
  5829. -; return 0; }
  5830. -EOF
  5831. -if { (eval echo configure:2136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5832. - rm -rf conftest*
  5833. +
  5834. +done
  5835. +
  5836. +
  5837. +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5838. +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5839. +if test "${ac_cv_c_const+set}" = set; then
  5840. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5841. +else
  5842. + cat >conftest.$ac_ext <<_ACEOF
  5843. +#line $LINENO "configure"
  5844. +/* confdefs.h. */
  5845. +_ACEOF
  5846. +cat confdefs.h >>conftest.$ac_ext
  5847. +cat >>conftest.$ac_ext <<_ACEOF
  5848. +/* end confdefs.h. */
  5849. +
  5850. +int
  5851. +main ()
  5852. +{
  5853. +/* FIXME: Include the comments suggested by Paul. */
  5854. +#ifndef __cplusplus
  5855. + /* Ultrix mips cc rejects this. */
  5856. + typedef int charset[2];
  5857. + const charset x;
  5858. + /* SunOS 4.1.1 cc rejects this. */
  5859. + char const *const *ccp;
  5860. + char **p;
  5861. + /* NEC SVR4.0.2 mips cc rejects this. */
  5862. + struct point {int x, y;};
  5863. + static struct point const zero = {0,0};
  5864. + /* AIX XL C 1.02.0.0 rejects this.
  5865. + It does not let you subtract one const X* pointer from another in
  5866. + an arm of an if-expression whose if-part is not a constant
  5867. + expression */
  5868. + const char *g = "string";
  5869. + ccp = &g + (g ? g-g : 0);
  5870. + /* HPUX 7.0 cc rejects these. */
  5871. + ++ccp;
  5872. + p = (char**) ccp;
  5873. + ccp = (char const *const *) p;
  5874. + { /* SCO 3.2v4 cc rejects this. */
  5875. + char *t;
  5876. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  5877. +
  5878. + *t++ = 0;
  5879. + }
  5880. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5881. + int x[] = {25, 17};
  5882. + const int *foo = &x[0];
  5883. + ++foo;
  5884. + }
  5885. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5886. + typedef const int *iptr;
  5887. + iptr p = 0;
  5888. + ++p;
  5889. + }
  5890. + { /* AIX XL C 1.02.0.0 rejects this saying
  5891. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5892. + struct s { int j; const int *ap[3]; };
  5893. + struct s *b; b->j = 5;
  5894. + }
  5895. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5896. + const int foo = 10;
  5897. + }
  5898. +#endif
  5899. +
  5900. + ;
  5901. + return 0;
  5902. +}
  5903. +_ACEOF
  5904. +rm -f conftest.$ac_objext
  5905. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5906. + (eval $ac_compile) 2>&5
  5907. + ac_status=$?
  5908. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5909. + (exit $ac_status); } &&
  5910. + { ac_try='test -s conftest.$ac_objext'
  5911. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5912. + (eval $ac_try) 2>&5
  5913. + ac_status=$?
  5914. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5915. + (exit $ac_status); }; }; then
  5916. ac_cv_c_const=yes
  5917. else
  5918. - echo "configure: failed program was:" >&5
  5919. - cat conftest.$ac_ext >&5
  5920. - rm -rf conftest*
  5921. - ac_cv_c_const=no
  5922. + echo "$as_me: failed program was:" >&5
  5923. +sed 's/^/| /' conftest.$ac_ext >&5
  5924. +
  5925. +ac_cv_c_const=no
  5926. fi
  5927. -rm -f conftest*
  5928. +rm -f conftest.$ac_objext conftest.$ac_ext
  5929. fi
  5930. -
  5931. -echo "$ac_t""$ac_cv_c_const" 1>&6
  5932. +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5933. +echo "${ECHO_T}$ac_cv_c_const" >&6
  5934. if test $ac_cv_c_const = no; then
  5935. - cat >> confdefs.h <<\EOF
  5936. -#define const
  5937. -EOF
  5938. +
  5939. +cat >>confdefs.h <<\_ACEOF
  5940. +#define const
  5941. +_ACEOF
  5942. fi
  5943. -echo $ac_n "checking for inline""... $ac_c" 1>&6
  5944. -echo "configure:2157: checking for inline" >&5
  5945. -if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  5946. - echo $ac_n "(cached) $ac_c" 1>&6
  5947. +echo "$as_me:$LINENO: checking for inline" >&5
  5948. +echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5949. +if test "${ac_cv_c_inline+set}" = set; then
  5950. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5951. else
  5952. ac_cv_c_inline=no
  5953. for ac_kw in inline __inline__ __inline; do
  5954. - cat > conftest.$ac_ext <<EOF
  5955. -#line 2164 "configure"
  5956. -#include "confdefs.h"
  5957. -
  5958. -int main() {
  5959. -} $ac_kw foo() {
  5960. -; return 0; }
  5961. -EOF
  5962. -if { (eval echo configure:2171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5963. - rm -rf conftest*
  5964. + cat >conftest.$ac_ext <<_ACEOF
  5965. +#line $LINENO "configure"
  5966. +/* confdefs.h. */
  5967. +_ACEOF
  5968. +cat confdefs.h >>conftest.$ac_ext
  5969. +cat >>conftest.$ac_ext <<_ACEOF
  5970. +/* end confdefs.h. */
  5971. +#ifndef __cplusplus
  5972. +typedef int foo_t;
  5973. +static $ac_kw foo_t static_foo () {return 0; }
  5974. +$ac_kw foo_t foo () {return 0; }
  5975. +#endif
  5976. +
  5977. +_ACEOF
  5978. +rm -f conftest.$ac_objext
  5979. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5980. + (eval $ac_compile) 2>&5
  5981. + ac_status=$?
  5982. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5983. + (exit $ac_status); } &&
  5984. + { ac_try='test -s conftest.$ac_objext'
  5985. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5986. + (eval $ac_try) 2>&5
  5987. + ac_status=$?
  5988. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5989. + (exit $ac_status); }; }; then
  5990. ac_cv_c_inline=$ac_kw; break
  5991. else
  5992. - echo "configure: failed program was:" >&5
  5993. - cat conftest.$ac_ext >&5
  5994. + echo "$as_me: failed program was:" >&5
  5995. +sed 's/^/| /' conftest.$ac_ext >&5
  5996. +
  5997. fi
  5998. -rm -f conftest*
  5999. +rm -f conftest.$ac_objext conftest.$ac_ext
  6000. done
  6001. fi
  6002. -
  6003. -echo "$ac_t""$ac_cv_c_inline" 1>&6
  6004. -case "$ac_cv_c_inline" in
  6005. +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6006. +echo "${ECHO_T}$ac_cv_c_inline" >&6
  6007. +case $ac_cv_c_inline in
  6008. inline | yes) ;;
  6009. - no) cat >> confdefs.h <<\EOF
  6010. -#define inline
  6011. -EOF
  6012. + no)
  6013. +cat >>confdefs.h <<\_ACEOF
  6014. +#define inline
  6015. +_ACEOF
  6016. ;;
  6017. - *) cat >> confdefs.h <<EOF
  6018. + *) cat >>confdefs.h <<_ACEOF
  6019. #define inline $ac_cv_c_inline
  6020. -EOF
  6021. +_ACEOF
  6022. ;;
  6023. esac
  6024. -echo $ac_n "checking for size_t""... $ac_c" 1>&6
  6025. -echo "configure:2197: checking for size_t" >&5
  6026. -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  6027. - echo $ac_n "(cached) $ac_c" 1>&6
  6028. -else
  6029. - cat > conftest.$ac_ext <<EOF
  6030. -#line 2202 "configure"
  6031. -#include "confdefs.h"
  6032. -#include <sys/types.h>
  6033. -#if STDC_HEADERS
  6034. -#include <stdlib.h>
  6035. -#include <stddef.h>
  6036. -#endif
  6037. -EOF
  6038. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6039. - egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  6040. - rm -rf conftest*
  6041. +echo "$as_me:$LINENO: checking for size_t" >&5
  6042. +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6043. +if test "${ac_cv_type_size_t+set}" = set; then
  6044. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6045. +else
  6046. + cat >conftest.$ac_ext <<_ACEOF
  6047. +#line $LINENO "configure"
  6048. +/* confdefs.h. */
  6049. +_ACEOF
  6050. +cat confdefs.h >>conftest.$ac_ext
  6051. +cat >>conftest.$ac_ext <<_ACEOF
  6052. +/* end confdefs.h. */
  6053. +$ac_includes_default
  6054. +int
  6055. +main ()
  6056. +{
  6057. +if ((size_t *) 0)
  6058. + return 0;
  6059. +if (sizeof (size_t))
  6060. + return 0;
  6061. + ;
  6062. + return 0;
  6063. +}
  6064. +_ACEOF
  6065. +rm -f conftest.$ac_objext
  6066. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6067. + (eval $ac_compile) 2>&5
  6068. + ac_status=$?
  6069. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6070. + (exit $ac_status); } &&
  6071. + { ac_try='test -s conftest.$ac_objext'
  6072. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6073. + (eval $ac_try) 2>&5
  6074. + ac_status=$?
  6075. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6076. + (exit $ac_status); }; }; then
  6077. ac_cv_type_size_t=yes
  6078. else
  6079. - rm -rf conftest*
  6080. - ac_cv_type_size_t=no
  6081. -fi
  6082. -rm -f conftest*
  6083. + echo "$as_me: failed program was:" >&5
  6084. +sed 's/^/| /' conftest.$ac_ext >&5
  6085. +ac_cv_type_size_t=no
  6086. +fi
  6087. +rm -f conftest.$ac_objext conftest.$ac_ext
  6088. fi
  6089. -echo "$ac_t""$ac_cv_type_size_t" 1>&6
  6090. -if test $ac_cv_type_size_t = no; then
  6091. - cat >> confdefs.h <<\EOF
  6092. +echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6093. +echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6094. +if test $ac_cv_type_size_t = yes; then
  6095. + :
  6096. +else
  6097. +
  6098. +cat >>confdefs.h <<_ACEOF
  6099. #define size_t unsigned
  6100. -EOF
  6101. +_ACEOF
  6102. fi
  6103. -echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  6104. -echo "configure:2230: checking whether time.h and sys/time.h may both be included" >&5
  6105. -if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  6106. - echo $ac_n "(cached) $ac_c" 1>&6
  6107. -else
  6108. - cat > conftest.$ac_ext <<EOF
  6109. -#line 2235 "configure"
  6110. -#include "confdefs.h"
  6111. +echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6112. +echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  6113. +if test "${ac_cv_header_time+set}" = set; then
  6114. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6115. +else
  6116. + cat >conftest.$ac_ext <<_ACEOF
  6117. +#line $LINENO "configure"
  6118. +/* confdefs.h. */
  6119. +_ACEOF
  6120. +cat confdefs.h >>conftest.$ac_ext
  6121. +cat >>conftest.$ac_ext <<_ACEOF
  6122. +/* end confdefs.h. */
  6123. #include <sys/types.h>
  6124. #include <sys/time.h>
  6125. #include <time.h>
  6126. -int main() {
  6127. -struct tm *tp;
  6128. -; return 0; }
  6129. -EOF
  6130. -if { (eval echo configure:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6131. - rm -rf conftest*
  6132. +
  6133. +int
  6134. +main ()
  6135. +{
  6136. +if ((struct tm *) 0)
  6137. +return 0;
  6138. + ;
  6139. + return 0;
  6140. +}
  6141. +_ACEOF
  6142. +rm -f conftest.$ac_objext
  6143. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6144. + (eval $ac_compile) 2>&5
  6145. + ac_status=$?
  6146. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6147. + (exit $ac_status); } &&
  6148. + { ac_try='test -s conftest.$ac_objext'
  6149. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6150. + (eval $ac_try) 2>&5
  6151. + ac_status=$?
  6152. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6153. + (exit $ac_status); }; }; then
  6154. ac_cv_header_time=yes
  6155. else
  6156. - echo "configure: failed program was:" >&5
  6157. - cat conftest.$ac_ext >&5
  6158. - rm -rf conftest*
  6159. - ac_cv_header_time=no
  6160. + echo "$as_me: failed program was:" >&5
  6161. +sed 's/^/| /' conftest.$ac_ext >&5
  6162. +
  6163. +ac_cv_header_time=no
  6164. fi
  6165. -rm -f conftest*
  6166. +rm -f conftest.$ac_objext conftest.$ac_ext
  6167. fi
  6168. -
  6169. -echo "$ac_t""$ac_cv_header_time" 1>&6
  6170. +echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6171. +echo "${ECHO_T}$ac_cv_header_time" >&6
  6172. if test $ac_cv_header_time = yes; then
  6173. - cat >> confdefs.h <<\EOF
  6174. +
  6175. +cat >>confdefs.h <<\_ACEOF
  6176. #define TIME_WITH_SYS_TIME 1
  6177. -EOF
  6178. +_ACEOF
  6179. fi
  6180. -echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  6181. -echo "configure:2265: checking whether struct tm is in sys/time.h or time.h" >&5
  6182. -if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  6183. - echo $ac_n "(cached) $ac_c" 1>&6
  6184. -else
  6185. - cat > conftest.$ac_ext <<EOF
  6186. -#line 2270 "configure"
  6187. -#include "confdefs.h"
  6188. +echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6189. +echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6190. +if test "${ac_cv_struct_tm+set}" = set; then
  6191. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6192. +else
  6193. + cat >conftest.$ac_ext <<_ACEOF
  6194. +#line $LINENO "configure"
  6195. +/* confdefs.h. */
  6196. +_ACEOF
  6197. +cat confdefs.h >>conftest.$ac_ext
  6198. +cat >>conftest.$ac_ext <<_ACEOF
  6199. +/* end confdefs.h. */
  6200. #include <sys/types.h>
  6201. #include <time.h>
  6202. -int main() {
  6203. +
  6204. +int
  6205. +main ()
  6206. +{
  6207. struct tm *tp; tp->tm_sec;
  6208. -; return 0; }
  6209. -EOF
  6210. -if { (eval echo configure:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6211. - rm -rf conftest*
  6212. + ;
  6213. + return 0;
  6214. +}
  6215. +_ACEOF
  6216. +rm -f conftest.$ac_objext
  6217. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6218. + (eval $ac_compile) 2>&5
  6219. + ac_status=$?
  6220. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6221. + (exit $ac_status); } &&
  6222. + { ac_try='test -s conftest.$ac_objext'
  6223. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6224. + (eval $ac_try) 2>&5
  6225. + ac_status=$?
  6226. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6227. + (exit $ac_status); }; }; then
  6228. ac_cv_struct_tm=time.h
  6229. else
  6230. - echo "configure: failed program was:" >&5
  6231. - cat conftest.$ac_ext >&5
  6232. - rm -rf conftest*
  6233. - ac_cv_struct_tm=sys/time.h
  6234. + echo "$as_me: failed program was:" >&5
  6235. +sed 's/^/| /' conftest.$ac_ext >&5
  6236. +
  6237. +ac_cv_struct_tm=sys/time.h
  6238. fi
  6239. -rm -f conftest*
  6240. +rm -f conftest.$ac_objext conftest.$ac_ext
  6241. fi
  6242. -
  6243. -echo "$ac_t""$ac_cv_struct_tm" 1>&6
  6244. +echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6245. +echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6246. if test $ac_cv_struct_tm = sys/time.h; then
  6247. - cat >> confdefs.h <<\EOF
  6248. +
  6249. +cat >>confdefs.h <<\_ACEOF
  6250. #define TM_IN_SYS_TIME 1
  6251. -EOF
  6252. +_ACEOF
  6253. fi
  6254. -echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  6255. -echo "configure:2299: checking for uid_t in sys/types.h" >&5
  6256. -if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  6257. - echo $ac_n "(cached) $ac_c" 1>&6
  6258. -else
  6259. - cat > conftest.$ac_ext <<EOF
  6260. -#line 2304 "configure"
  6261. -#include "confdefs.h"
  6262. +echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6263. +echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6264. +if test "${ac_cv_type_uid_t+set}" = set; then
  6265. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6266. +else
  6267. + cat >conftest.$ac_ext <<_ACEOF
  6268. +#line $LINENO "configure"
  6269. +/* confdefs.h. */
  6270. +_ACEOF
  6271. +cat confdefs.h >>conftest.$ac_ext
  6272. +cat >>conftest.$ac_ext <<_ACEOF
  6273. +/* end confdefs.h. */
  6274. #include <sys/types.h>
  6275. -EOF
  6276. +
  6277. +_ACEOF
  6278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6279. - egrep "uid_t" >/dev/null 2>&1; then
  6280. - rm -rf conftest*
  6281. + $EGREP "uid_t" >/dev/null 2>&1; then
  6282. ac_cv_type_uid_t=yes
  6283. else
  6284. - rm -rf conftest*
  6285. ac_cv_type_uid_t=no
  6286. fi
  6287. rm -f conftest*
  6288. fi
  6289. -
  6290. -echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  6291. +echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6292. +echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6293. if test $ac_cv_type_uid_t = no; then
  6294. - cat >> confdefs.h <<\EOF
  6295. +
  6296. +cat >>confdefs.h <<\_ACEOF
  6297. #define uid_t int
  6298. -EOF
  6299. +_ACEOF
  6300. +
  6301. - cat >> confdefs.h <<\EOF
  6302. +cat >>confdefs.h <<\_ACEOF
  6303. #define gid_t int
  6304. -EOF
  6305. +_ACEOF
  6306. fi
  6307. -if test $ac_cv_prog_gcc = yes; then
  6308. - echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  6309. -echo "configure:2335: checking whether ${CC-cc} needs -traditional" >&5
  6310. -if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  6311. - echo $ac_n "(cached) $ac_c" 1>&6
  6312. +if test $ac_cv_c_compiler_gnu = yes; then
  6313. + echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  6314. +echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  6315. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  6316. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6317. else
  6318. ac_pattern="Autoconf.*'x'"
  6319. - cat > conftest.$ac_ext <<EOF
  6320. -#line 2341 "configure"
  6321. -#include "confdefs.h"
  6322. + cat >conftest.$ac_ext <<_ACEOF
  6323. +#line $LINENO "configure"
  6324. +/* confdefs.h. */
  6325. +_ACEOF
  6326. +cat confdefs.h >>conftest.$ac_ext
  6327. +cat >>conftest.$ac_ext <<_ACEOF
  6328. +/* end confdefs.h. */
  6329. #include <sgtty.h>
  6330. Autoconf TIOCGETP
  6331. -EOF
  6332. +_ACEOF
  6333. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6334. - egrep "$ac_pattern" >/dev/null 2>&1; then
  6335. - rm -rf conftest*
  6336. + $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6337. ac_cv_prog_gcc_traditional=yes
  6338. else
  6339. - rm -rf conftest*
  6340. ac_cv_prog_gcc_traditional=no
  6341. fi
  6342. rm -f conftest*
  6343. if test $ac_cv_prog_gcc_traditional = no; then
  6344. - cat > conftest.$ac_ext <<EOF
  6345. -#line 2359 "configure"
  6346. -#include "confdefs.h"
  6347. + cat >conftest.$ac_ext <<_ACEOF
  6348. +#line $LINENO "configure"
  6349. +/* confdefs.h. */
  6350. +_ACEOF
  6351. +cat confdefs.h >>conftest.$ac_ext
  6352. +cat >>conftest.$ac_ext <<_ACEOF
  6353. +/* end confdefs.h. */
  6354. #include <termio.h>
  6355. Autoconf TCGETA
  6356. -EOF
  6357. +_ACEOF
  6358. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6359. - egrep "$ac_pattern" >/dev/null 2>&1; then
  6360. - rm -rf conftest*
  6361. + $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6362. ac_cv_prog_gcc_traditional=yes
  6363. fi
  6364. rm -f conftest*
  6365. fi
  6366. fi
  6367. -
  6368. -echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  6369. +echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  6370. +echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  6371. if test $ac_cv_prog_gcc_traditional = yes; then
  6372. CC="$CC -traditional"
  6373. fi
  6374. fi
  6375. -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  6376. -echo "configure:2381: checking return type of signal handlers" >&5
  6377. -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  6378. - echo $ac_n "(cached) $ac_c" 1>&6
  6379. -else
  6380. - cat > conftest.$ac_ext <<EOF
  6381. -#line 2386 "configure"
  6382. -#include "confdefs.h"
  6383. +echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  6384. +echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  6385. +if test "${ac_cv_type_signal+set}" = set; then
  6386. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6387. +else
  6388. + cat >conftest.$ac_ext <<_ACEOF
  6389. +#line $LINENO "configure"
  6390. +/* confdefs.h. */
  6391. +_ACEOF
  6392. +cat confdefs.h >>conftest.$ac_ext
  6393. +cat >>conftest.$ac_ext <<_ACEOF
  6394. +/* end confdefs.h. */
  6395. #include <sys/types.h>
  6396. #include <signal.h>
  6397. #ifdef signal
  6398. -#undef signal
  6399. +# undef signal
  6400. #endif
  6401. #ifdef __cplusplus
  6402. extern "C" void (*signal (int, void (*)(int)))(int);
  6403. @@ -2395,347 +5175,774 @@
  6404. void (*signal ()) ();
  6405. #endif
  6406. -int main() {
  6407. +int
  6408. +main ()
  6409. +{
  6410. int i;
  6411. -; return 0; }
  6412. -EOF
  6413. -if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6414. - rm -rf conftest*
  6415. + ;
  6416. + return 0;
  6417. +}
  6418. +_ACEOF
  6419. +rm -f conftest.$ac_objext
  6420. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6421. + (eval $ac_compile) 2>&5
  6422. + ac_status=$?
  6423. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6424. + (exit $ac_status); } &&
  6425. + { ac_try='test -s conftest.$ac_objext'
  6426. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6427. + (eval $ac_try) 2>&5
  6428. + ac_status=$?
  6429. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6430. + (exit $ac_status); }; }; then
  6431. ac_cv_type_signal=void
  6432. else
  6433. - echo "configure: failed program was:" >&5
  6434. - cat conftest.$ac_ext >&5
  6435. - rm -rf conftest*
  6436. - ac_cv_type_signal=int
  6437. + echo "$as_me: failed program was:" >&5
  6438. +sed 's/^/| /' conftest.$ac_ext >&5
  6439. +
  6440. +ac_cv_type_signal=int
  6441. fi
  6442. -rm -f conftest*
  6443. +rm -f conftest.$ac_objext conftest.$ac_ext
  6444. fi
  6445. +echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  6446. +echo "${ECHO_T}$ac_cv_type_signal" >&6
  6447. -echo "$ac_t""$ac_cv_type_signal" 1>&6
  6448. -cat >> confdefs.h <<EOF
  6449. +cat >>confdefs.h <<_ACEOF
  6450. #define RETSIGTYPE $ac_cv_type_signal
  6451. -EOF
  6452. +_ACEOF
  6453. +
  6454. +
  6455. +
  6456. +
  6457. +
  6458. +
  6459. for ac_func in select socket strdup strerror strtol uname
  6460. do
  6461. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6462. -echo "configure:2424: checking for $ac_func" >&5
  6463. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6464. - echo $ac_n "(cached) $ac_c" 1>&6
  6465. -else
  6466. - cat > conftest.$ac_ext <<EOF
  6467. -#line 2429 "configure"
  6468. -#include "confdefs.h"
  6469. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6470. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  6471. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6472. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  6473. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6474. +else
  6475. + cat >conftest.$ac_ext <<_ACEOF
  6476. +#line $LINENO "configure"
  6477. +/* confdefs.h. */
  6478. +_ACEOF
  6479. +cat confdefs.h >>conftest.$ac_ext
  6480. +cat >>conftest.$ac_ext <<_ACEOF
  6481. +/* end confdefs.h. */
  6482. /* System header to define __stub macros and hopefully few prototypes,
  6483. - which can conflict with char $ac_func(); below. */
  6484. -#include <assert.h>
  6485. + which can conflict with char $ac_func (); below.
  6486. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6487. + <limits.h> exists even on freestanding compilers. */
  6488. +#ifdef __STDC__
  6489. +# include <limits.h>
  6490. +#else
  6491. +# include <assert.h>
  6492. +#endif
  6493. /* Override any gcc2 internal prototype to avoid an error. */
  6494. +#ifdef __cplusplus
  6495. +extern "C"
  6496. +{
  6497. +#endif
  6498. /* We use char because int might match the return type of a gcc2
  6499. - builtin and then its argument prototype would still apply. */
  6500. -char $ac_func();
  6501. -
  6502. -int main() {
  6503. -
  6504. + builtin and then its argument prototype would still apply. */
  6505. +char $ac_func ();
  6506. /* The GNU C library defines this for functions which it implements
  6507. to always fail with ENOSYS. Some functions are actually named
  6508. something starting with __ and the normal name is an alias. */
  6509. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6510. choke me
  6511. #else
  6512. -$ac_func();
  6513. +char (*f) () = $ac_func;
  6514. +#endif
  6515. +#ifdef __cplusplus
  6516. +}
  6517. #endif
  6518. -; return 0; }
  6519. -EOF
  6520. -if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6521. - rm -rf conftest*
  6522. - eval "ac_cv_func_$ac_func=yes"
  6523. -else
  6524. - echo "configure: failed program was:" >&5
  6525. - cat conftest.$ac_ext >&5
  6526. - rm -rf conftest*
  6527. - eval "ac_cv_func_$ac_func=no"
  6528. -fi
  6529. -rm -f conftest*
  6530. -fi
  6531. +int
  6532. +main ()
  6533. +{
  6534. +return f != $ac_func;
  6535. + ;
  6536. + return 0;
  6537. +}
  6538. +_ACEOF
  6539. +rm -f conftest.$ac_objext conftest$ac_exeext
  6540. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6541. + (eval $ac_link) 2>&5
  6542. + ac_status=$?
  6543. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6544. + (exit $ac_status); } &&
  6545. + { ac_try='test -s conftest$ac_exeext'
  6546. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6547. + (eval $ac_try) 2>&5
  6548. + ac_status=$?
  6549. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6550. + (exit $ac_status); }; }; then
  6551. + eval "$as_ac_var=yes"
  6552. +else
  6553. + echo "$as_me: failed program was:" >&5
  6554. +sed 's/^/| /' conftest.$ac_ext >&5
  6555. +
  6556. +eval "$as_ac_var=no"
  6557. +fi
  6558. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6559. +fi
  6560. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6561. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6562. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  6563. + cat >>confdefs.h <<_ACEOF
  6564. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6565. +_ACEOF
  6566. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6567. - echo "$ac_t""yes" 1>&6
  6568. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6569. - cat >> confdefs.h <<EOF
  6570. -#define $ac_tr_func 1
  6571. -EOF
  6572. -
  6573. -else
  6574. - echo "$ac_t""no" 1>&6
  6575. fi
  6576. done
  6577. - for ac_hdr in fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h
  6578. +
  6579. +
  6580. +
  6581. +
  6582. +
  6583. +for ac_header in fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h
  6584. do
  6585. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6586. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6587. -echo "configure:2483: checking for $ac_hdr" >&5
  6588. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6589. - echo $ac_n "(cached) $ac_c" 1>&6
  6590. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6591. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6592. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6593. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6594. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6595. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6596. +fi
  6597. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6598. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6599. +else
  6600. + # Is the header compilable?
  6601. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6602. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6603. +cat >conftest.$ac_ext <<_ACEOF
  6604. +#line $LINENO "configure"
  6605. +/* confdefs.h. */
  6606. +_ACEOF
  6607. +cat confdefs.h >>conftest.$ac_ext
  6608. +cat >>conftest.$ac_ext <<_ACEOF
  6609. +/* end confdefs.h. */
  6610. +$ac_includes_default
  6611. +#include <$ac_header>
  6612. +_ACEOF
  6613. +rm -f conftest.$ac_objext
  6614. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6615. + (eval $ac_compile) 2>&5
  6616. + ac_status=$?
  6617. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6618. + (exit $ac_status); } &&
  6619. + { ac_try='test -s conftest.$ac_objext'
  6620. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6621. + (eval $ac_try) 2>&5
  6622. + ac_status=$?
  6623. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6624. + (exit $ac_status); }; }; then
  6625. + ac_header_compiler=yes
  6626. +else
  6627. + echo "$as_me: failed program was:" >&5
  6628. +sed 's/^/| /' conftest.$ac_ext >&5
  6629. +
  6630. +ac_header_compiler=no
  6631. +fi
  6632. +rm -f conftest.$ac_objext conftest.$ac_ext
  6633. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6634. +echo "${ECHO_T}$ac_header_compiler" >&6
  6635. +
  6636. +# Is the header present?
  6637. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6638. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6639. +cat >conftest.$ac_ext <<_ACEOF
  6640. +#line $LINENO "configure"
  6641. +/* confdefs.h. */
  6642. +_ACEOF
  6643. +cat confdefs.h >>conftest.$ac_ext
  6644. +cat >>conftest.$ac_ext <<_ACEOF
  6645. +/* end confdefs.h. */
  6646. +#include <$ac_header>
  6647. +_ACEOF
  6648. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6649. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6650. + ac_status=$?
  6651. + grep -v '^ *+' conftest.er1 >conftest.err
  6652. + rm -f conftest.er1
  6653. + cat conftest.err >&5
  6654. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6655. + (exit $ac_status); } >/dev/null; then
  6656. + if test -s conftest.err; then
  6657. + ac_cpp_err=$ac_c_preproc_warn_flag
  6658. + else
  6659. + ac_cpp_err=
  6660. + fi
  6661. else
  6662. - cat > conftest.$ac_ext <<EOF
  6663. -#line 2488 "configure"
  6664. -#include "confdefs.h"
  6665. -#include <$ac_hdr>
  6666. -EOF
  6667. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6668. -{ (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6669. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6670. -if test -z "$ac_err"; then
  6671. - rm -rf conftest*
  6672. - eval "ac_cv_header_$ac_safe=yes"
  6673. -else
  6674. - echo "$ac_err" >&5
  6675. - echo "configure: failed program was:" >&5
  6676. - cat conftest.$ac_ext >&5
  6677. - rm -rf conftest*
  6678. - eval "ac_cv_header_$ac_safe=no"
  6679. -fi
  6680. -rm -f conftest*
  6681. + ac_cpp_err=yes
  6682. fi
  6683. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6684. - echo "$ac_t""yes" 1>&6
  6685. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6686. - cat >> confdefs.h <<EOF
  6687. -#define $ac_tr_hdr 1
  6688. -EOF
  6689. -
  6690. +if test -z "$ac_cpp_err"; then
  6691. + ac_header_preproc=yes
  6692. +else
  6693. + echo "$as_me: failed program was:" >&5
  6694. +sed 's/^/| /' conftest.$ac_ext >&5
  6695. +
  6696. + ac_header_preproc=no
  6697. +fi
  6698. +rm -f conftest.err conftest.$ac_ext
  6699. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6700. +echo "${ECHO_T}$ac_header_preproc" >&6
  6701. +
  6702. +# So? What about this header?
  6703. +case $ac_header_compiler:$ac_header_preproc in
  6704. + yes:no )
  6705. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6706. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6707. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6708. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6709. + (
  6710. + cat <<\_ASBOX
  6711. +## ------------------------------------ ##
  6712. +## Report this to bug-autoconf@gnu.org. ##
  6713. +## ------------------------------------ ##
  6714. +_ASBOX
  6715. + ) |
  6716. + sed "s/^/$as_me: WARNING: /" >&2
  6717. + ;;
  6718. + no:yes )
  6719. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6720. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6721. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6722. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6723. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6724. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6725. + (
  6726. + cat <<\_ASBOX
  6727. +## ------------------------------------ ##
  6728. +## Report this to bug-autoconf@gnu.org. ##
  6729. +## ------------------------------------ ##
  6730. +_ASBOX
  6731. + ) |
  6732. + sed "s/^/$as_me: WARNING: /" >&2
  6733. + ;;
  6734. +esac
  6735. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6736. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6737. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6738. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6739. else
  6740. - echo "$ac_t""no" 1>&6
  6741. + eval "$as_ac_Header=$ac_header_preproc"
  6742. +fi
  6743. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6744. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6745. +
  6746. +fi
  6747. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6748. + cat >>confdefs.h <<_ACEOF
  6749. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6750. +_ACEOF
  6751. +
  6752. fi
  6753. +
  6754. done
  6755. - for ac_hdr in mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h
  6756. +
  6757. +
  6758. +
  6759. +
  6760. +
  6761. +for ac_header in mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h
  6762. do
  6763. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6764. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6765. -echo "configure:2523: checking for $ac_hdr" >&5
  6766. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6767. - echo $ac_n "(cached) $ac_c" 1>&6
  6768. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6769. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6770. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6771. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6772. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6773. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6774. +fi
  6775. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6776. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6777. +else
  6778. + # Is the header compilable?
  6779. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6780. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6781. +cat >conftest.$ac_ext <<_ACEOF
  6782. +#line $LINENO "configure"
  6783. +/* confdefs.h. */
  6784. +_ACEOF
  6785. +cat confdefs.h >>conftest.$ac_ext
  6786. +cat >>conftest.$ac_ext <<_ACEOF
  6787. +/* end confdefs.h. */
  6788. +$ac_includes_default
  6789. +#include <$ac_header>
  6790. +_ACEOF
  6791. +rm -f conftest.$ac_objext
  6792. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6793. + (eval $ac_compile) 2>&5
  6794. + ac_status=$?
  6795. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6796. + (exit $ac_status); } &&
  6797. + { ac_try='test -s conftest.$ac_objext'
  6798. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6799. + (eval $ac_try) 2>&5
  6800. + ac_status=$?
  6801. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6802. + (exit $ac_status); }; }; then
  6803. + ac_header_compiler=yes
  6804. +else
  6805. + echo "$as_me: failed program was:" >&5
  6806. +sed 's/^/| /' conftest.$ac_ext >&5
  6807. +
  6808. +ac_header_compiler=no
  6809. +fi
  6810. +rm -f conftest.$ac_objext conftest.$ac_ext
  6811. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6812. +echo "${ECHO_T}$ac_header_compiler" >&6
  6813. +
  6814. +# Is the header present?
  6815. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6816. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6817. +cat >conftest.$ac_ext <<_ACEOF
  6818. +#line $LINENO "configure"
  6819. +/* confdefs.h. */
  6820. +_ACEOF
  6821. +cat confdefs.h >>conftest.$ac_ext
  6822. +cat >>conftest.$ac_ext <<_ACEOF
  6823. +/* end confdefs.h. */
  6824. +#include <$ac_header>
  6825. +_ACEOF
  6826. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6827. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6828. + ac_status=$?
  6829. + grep -v '^ *+' conftest.er1 >conftest.err
  6830. + rm -f conftest.er1
  6831. + cat conftest.err >&5
  6832. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6833. + (exit $ac_status); } >/dev/null; then
  6834. + if test -s conftest.err; then
  6835. + ac_cpp_err=$ac_c_preproc_warn_flag
  6836. + else
  6837. + ac_cpp_err=
  6838. + fi
  6839. else
  6840. - cat > conftest.$ac_ext <<EOF
  6841. -#line 2528 "configure"
  6842. -#include "confdefs.h"
  6843. -#include <$ac_hdr>
  6844. -EOF
  6845. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6846. -{ (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6847. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6848. -if test -z "$ac_err"; then
  6849. - rm -rf conftest*
  6850. - eval "ac_cv_header_$ac_safe=yes"
  6851. -else
  6852. - echo "$ac_err" >&5
  6853. - echo "configure: failed program was:" >&5
  6854. - cat conftest.$ac_ext >&5
  6855. - rm -rf conftest*
  6856. - eval "ac_cv_header_$ac_safe=no"
  6857. -fi
  6858. -rm -f conftest*
  6859. + ac_cpp_err=yes
  6860. fi
  6861. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6862. - echo "$ac_t""yes" 1>&6
  6863. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6864. - cat >> confdefs.h <<EOF
  6865. -#define $ac_tr_hdr 1
  6866. -EOF
  6867. -
  6868. +if test -z "$ac_cpp_err"; then
  6869. + ac_header_preproc=yes
  6870. else
  6871. - echo "$ac_t""no" 1>&6
  6872. + echo "$as_me: failed program was:" >&5
  6873. +sed 's/^/| /' conftest.$ac_ext >&5
  6874. +
  6875. + ac_header_preproc=no
  6876. +fi
  6877. +rm -f conftest.err conftest.$ac_ext
  6878. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6879. +echo "${ECHO_T}$ac_header_preproc" >&6
  6880. +
  6881. +# So? What about this header?
  6882. +case $ac_header_compiler:$ac_header_preproc in
  6883. + yes:no )
  6884. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6885. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6886. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6887. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6888. + (
  6889. + cat <<\_ASBOX
  6890. +## ------------------------------------ ##
  6891. +## Report this to bug-autoconf@gnu.org. ##
  6892. +## ------------------------------------ ##
  6893. +_ASBOX
  6894. + ) |
  6895. + sed "s/^/$as_me: WARNING: /" >&2
  6896. + ;;
  6897. + no:yes )
  6898. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6899. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6900. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6901. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6902. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6903. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6904. + (
  6905. + cat <<\_ASBOX
  6906. +## ------------------------------------ ##
  6907. +## Report this to bug-autoconf@gnu.org. ##
  6908. +## ------------------------------------ ##
  6909. +_ASBOX
  6910. + ) |
  6911. + sed "s/^/$as_me: WARNING: /" >&2
  6912. + ;;
  6913. +esac
  6914. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  6915. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6916. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6917. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6918. +else
  6919. + eval "$as_ac_Header=$ac_header_preproc"
  6920. +fi
  6921. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6922. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6923. +
  6924. +fi
  6925. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6926. + cat >>confdefs.h <<_ACEOF
  6927. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6928. +_ACEOF
  6929. +
  6930. fi
  6931. +
  6932. done
  6933. - for ac_hdr in sys/mount.h sys/filsys.h sys/fs_types.h
  6934. +
  6935. +
  6936. +
  6937. +for ac_header in sys/mount.h sys/filsys.h sys/fs_types.h
  6938. do
  6939. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6940. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6941. -echo "configure:2563: checking for $ac_hdr" >&5
  6942. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6943. - echo $ac_n "(cached) $ac_c" 1>&6
  6944. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6945. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6946. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  6947. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6948. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6949. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6950. +fi
  6951. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6952. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6953. +else
  6954. + # Is the header compilable?
  6955. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6956. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6957. +cat >conftest.$ac_ext <<_ACEOF
  6958. +#line $LINENO "configure"
  6959. +/* confdefs.h. */
  6960. +_ACEOF
  6961. +cat confdefs.h >>conftest.$ac_ext
  6962. +cat >>conftest.$ac_ext <<_ACEOF
  6963. +/* end confdefs.h. */
  6964. +$ac_includes_default
  6965. +#include <$ac_header>
  6966. +_ACEOF
  6967. +rm -f conftest.$ac_objext
  6968. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6969. + (eval $ac_compile) 2>&5
  6970. + ac_status=$?
  6971. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6972. + (exit $ac_status); } &&
  6973. + { ac_try='test -s conftest.$ac_objext'
  6974. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6975. + (eval $ac_try) 2>&5
  6976. + ac_status=$?
  6977. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6978. + (exit $ac_status); }; }; then
  6979. + ac_header_compiler=yes
  6980. +else
  6981. + echo "$as_me: failed program was:" >&5
  6982. +sed 's/^/| /' conftest.$ac_ext >&5
  6983. +
  6984. +ac_header_compiler=no
  6985. +fi
  6986. +rm -f conftest.$ac_objext conftest.$ac_ext
  6987. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6988. +echo "${ECHO_T}$ac_header_compiler" >&6
  6989. +
  6990. +# Is the header present?
  6991. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6992. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6993. +cat >conftest.$ac_ext <<_ACEOF
  6994. +#line $LINENO "configure"
  6995. +/* confdefs.h. */
  6996. +_ACEOF
  6997. +cat confdefs.h >>conftest.$ac_ext
  6998. +cat >>conftest.$ac_ext <<_ACEOF
  6999. +/* end confdefs.h. */
  7000. +#include <$ac_header>
  7001. +_ACEOF
  7002. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7003. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7004. + ac_status=$?
  7005. + grep -v '^ *+' conftest.er1 >conftest.err
  7006. + rm -f conftest.er1
  7007. + cat conftest.err >&5
  7008. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7009. + (exit $ac_status); } >/dev/null; then
  7010. + if test -s conftest.err; then
  7011. + ac_cpp_err=$ac_c_preproc_warn_flag
  7012. + else
  7013. + ac_cpp_err=
  7014. + fi
  7015. else
  7016. - cat > conftest.$ac_ext <<EOF
  7017. -#line 2568 "configure"
  7018. -#include "confdefs.h"
  7019. -#include <$ac_hdr>
  7020. -EOF
  7021. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7022. -{ (eval echo configure:2573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7023. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7024. -if test -z "$ac_err"; then
  7025. - rm -rf conftest*
  7026. - eval "ac_cv_header_$ac_safe=yes"
  7027. -else
  7028. - echo "$ac_err" >&5
  7029. - echo "configure: failed program was:" >&5
  7030. - cat conftest.$ac_ext >&5
  7031. - rm -rf conftest*
  7032. - eval "ac_cv_header_$ac_safe=no"
  7033. + ac_cpp_err=yes
  7034. fi
  7035. -rm -f conftest*
  7036. -fi
  7037. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7038. - echo "$ac_t""yes" 1>&6
  7039. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7040. - cat >> confdefs.h <<EOF
  7041. -#define $ac_tr_hdr 1
  7042. -EOF
  7043. -
  7044. +if test -z "$ac_cpp_err"; then
  7045. + ac_header_preproc=yes
  7046. +else
  7047. + echo "$as_me: failed program was:" >&5
  7048. +sed 's/^/| /' conftest.$ac_ext >&5
  7049. +
  7050. + ac_header_preproc=no
  7051. +fi
  7052. +rm -f conftest.err conftest.$ac_ext
  7053. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7054. +echo "${ECHO_T}$ac_header_preproc" >&6
  7055. +
  7056. +# So? What about this header?
  7057. +case $ac_header_compiler:$ac_header_preproc in
  7058. + yes:no )
  7059. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7060. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7061. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7062. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7063. + (
  7064. + cat <<\_ASBOX
  7065. +## ------------------------------------ ##
  7066. +## Report this to bug-autoconf@gnu.org. ##
  7067. +## ------------------------------------ ##
  7068. +_ASBOX
  7069. + ) |
  7070. + sed "s/^/$as_me: WARNING: /" >&2
  7071. + ;;
  7072. + no:yes )
  7073. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7074. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7075. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7076. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7077. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7078. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7079. + (
  7080. + cat <<\_ASBOX
  7081. +## ------------------------------------ ##
  7082. +## Report this to bug-autoconf@gnu.org. ##
  7083. +## ------------------------------------ ##
  7084. +_ASBOX
  7085. + ) |
  7086. + sed "s/^/$as_me: WARNING: /" >&2
  7087. + ;;
  7088. +esac
  7089. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7090. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7091. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7092. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7093. else
  7094. - echo "$ac_t""no" 1>&6
  7095. + eval "$as_ac_Header=$ac_header_preproc"
  7096. +fi
  7097. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7098. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7099. +
  7100. +fi
  7101. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7102. + cat >>confdefs.h <<_ACEOF
  7103. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7104. +_ACEOF
  7105. +
  7106. fi
  7107. +
  7108. done
  7109. - for ac_func in getmntinfo
  7110. +
  7111. +for ac_func in getmntinfo
  7112. do
  7113. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7114. -echo "configure:2602: checking for $ac_func" >&5
  7115. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7116. - echo $ac_n "(cached) $ac_c" 1>&6
  7117. -else
  7118. - cat > conftest.$ac_ext <<EOF
  7119. -#line 2607 "configure"
  7120. -#include "confdefs.h"
  7121. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7122. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  7123. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7124. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  7125. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7126. +else
  7127. + cat >conftest.$ac_ext <<_ACEOF
  7128. +#line $LINENO "configure"
  7129. +/* confdefs.h. */
  7130. +_ACEOF
  7131. +cat confdefs.h >>conftest.$ac_ext
  7132. +cat >>conftest.$ac_ext <<_ACEOF
  7133. +/* end confdefs.h. */
  7134. /* System header to define __stub macros and hopefully few prototypes,
  7135. - which can conflict with char $ac_func(); below. */
  7136. -#include <assert.h>
  7137. + which can conflict with char $ac_func (); below.
  7138. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7139. + <limits.h> exists even on freestanding compilers. */
  7140. +#ifdef __STDC__
  7141. +# include <limits.h>
  7142. +#else
  7143. +# include <assert.h>
  7144. +#endif
  7145. /* Override any gcc2 internal prototype to avoid an error. */
  7146. +#ifdef __cplusplus
  7147. +extern "C"
  7148. +{
  7149. +#endif
  7150. /* We use char because int might match the return type of a gcc2
  7151. - builtin and then its argument prototype would still apply. */
  7152. -char $ac_func();
  7153. -
  7154. -int main() {
  7155. -
  7156. + builtin and then its argument prototype would still apply. */
  7157. +char $ac_func ();
  7158. /* The GNU C library defines this for functions which it implements
  7159. to always fail with ENOSYS. Some functions are actually named
  7160. something starting with __ and the normal name is an alias. */
  7161. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7162. choke me
  7163. #else
  7164. -$ac_func();
  7165. +char (*f) () = $ac_func;
  7166. +#endif
  7167. +#ifdef __cplusplus
  7168. +}
  7169. #endif
  7170. -; return 0; }
  7171. -EOF
  7172. -if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7173. - rm -rf conftest*
  7174. - eval "ac_cv_func_$ac_func=yes"
  7175. -else
  7176. - echo "configure: failed program was:" >&5
  7177. - cat conftest.$ac_ext >&5
  7178. - rm -rf conftest*
  7179. - eval "ac_cv_func_$ac_func=no"
  7180. -fi
  7181. -rm -f conftest*
  7182. -fi
  7183. +int
  7184. +main ()
  7185. +{
  7186. +return f != $ac_func;
  7187. + ;
  7188. + return 0;
  7189. +}
  7190. +_ACEOF
  7191. +rm -f conftest.$ac_objext conftest$ac_exeext
  7192. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7193. + (eval $ac_link) 2>&5
  7194. + ac_status=$?
  7195. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7196. + (exit $ac_status); } &&
  7197. + { ac_try='test -s conftest$ac_exeext'
  7198. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7199. + (eval $ac_try) 2>&5
  7200. + ac_status=$?
  7201. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7202. + (exit $ac_status); }; }; then
  7203. + eval "$as_ac_var=yes"
  7204. +else
  7205. + echo "$as_me: failed program was:" >&5
  7206. +sed 's/^/| /' conftest.$ac_ext >&5
  7207. +
  7208. +eval "$as_ac_var=no"
  7209. +fi
  7210. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7211. +fi
  7212. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7213. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7214. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  7215. + cat >>confdefs.h <<_ACEOF
  7216. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7217. +_ACEOF
  7218. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7219. - echo "$ac_t""yes" 1>&6
  7220. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7221. - cat >> confdefs.h <<EOF
  7222. -#define $ac_tr_func 1
  7223. -EOF
  7224. -
  7225. -else
  7226. - echo "$ac_t""no" 1>&6
  7227. fi
  7228. done
  7229. - echo "checking how to get filesystem space usage" 1>&6
  7230. -echo "configure:2656: checking how to get filesystem space usage" >&5
  7231. + { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
  7232. +echo "$as_me: checking how to get filesystem space usage..." >&6;}
  7233. space=no
  7234. # Here we'll compromise a little (and perform only the link test)
  7235. # since it seems there are no variants of the statvfs function.
  7236. if test $space = no; then
  7237. # SVR4
  7238. - for ac_func in statvfs
  7239. +
  7240. +for ac_func in statvfs
  7241. do
  7242. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7243. -echo "configure:2666: checking for $ac_func" >&5
  7244. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7245. - echo $ac_n "(cached) $ac_c" 1>&6
  7246. -else
  7247. - cat > conftest.$ac_ext <<EOF
  7248. -#line 2671 "configure"
  7249. -#include "confdefs.h"
  7250. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7251. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  7252. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7253. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  7254. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7255. +else
  7256. + cat >conftest.$ac_ext <<_ACEOF
  7257. +#line $LINENO "configure"
  7258. +/* confdefs.h. */
  7259. +_ACEOF
  7260. +cat confdefs.h >>conftest.$ac_ext
  7261. +cat >>conftest.$ac_ext <<_ACEOF
  7262. +/* end confdefs.h. */
  7263. /* System header to define __stub macros and hopefully few prototypes,
  7264. - which can conflict with char $ac_func(); below. */
  7265. -#include <assert.h>
  7266. + which can conflict with char $ac_func (); below.
  7267. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7268. + <limits.h> exists even on freestanding compilers. */
  7269. +#ifdef __STDC__
  7270. +# include <limits.h>
  7271. +#else
  7272. +# include <assert.h>
  7273. +#endif
  7274. /* Override any gcc2 internal prototype to avoid an error. */
  7275. +#ifdef __cplusplus
  7276. +extern "C"
  7277. +{
  7278. +#endif
  7279. /* We use char because int might match the return type of a gcc2
  7280. - builtin and then its argument prototype would still apply. */
  7281. -char $ac_func();
  7282. -
  7283. -int main() {
  7284. -
  7285. + builtin and then its argument prototype would still apply. */
  7286. +char $ac_func ();
  7287. /* The GNU C library defines this for functions which it implements
  7288. to always fail with ENOSYS. Some functions are actually named
  7289. something starting with __ and the normal name is an alias. */
  7290. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7291. choke me
  7292. #else
  7293. -$ac_func();
  7294. +char (*f) () = $ac_func;
  7295. +#endif
  7296. +#ifdef __cplusplus
  7297. +}
  7298. #endif
  7299. -; return 0; }
  7300. -EOF
  7301. -if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7302. - rm -rf conftest*
  7303. - eval "ac_cv_func_$ac_func=yes"
  7304. -else
  7305. - echo "configure: failed program was:" >&5
  7306. - cat conftest.$ac_ext >&5
  7307. - rm -rf conftest*
  7308. - eval "ac_cv_func_$ac_func=no"
  7309. -fi
  7310. -rm -f conftest*
  7311. -fi
  7312. +int
  7313. +main ()
  7314. +{
  7315. +return f != $ac_func;
  7316. + ;
  7317. + return 0;
  7318. +}
  7319. +_ACEOF
  7320. +rm -f conftest.$ac_objext conftest$ac_exeext
  7321. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7322. + (eval $ac_link) 2>&5
  7323. + ac_status=$?
  7324. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. + (exit $ac_status); } &&
  7326. + { ac_try='test -s conftest$ac_exeext'
  7327. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7328. + (eval $ac_try) 2>&5
  7329. + ac_status=$?
  7330. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. + (exit $ac_status); }; }; then
  7332. + eval "$as_ac_var=yes"
  7333. +else
  7334. + echo "$as_me: failed program was:" >&5
  7335. +sed 's/^/| /' conftest.$ac_ext >&5
  7336. +
  7337. +eval "$as_ac_var=no"
  7338. +fi
  7339. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7340. +fi
  7341. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7342. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7343. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  7344. + cat >>confdefs.h <<_ACEOF
  7345. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7346. +_ACEOF
  7347. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7348. - echo "$ac_t""yes" 1>&6
  7349. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7350. - cat >> confdefs.h <<EOF
  7351. -#define $ac_tr_func 1
  7352. -EOF
  7353. -
  7354. -else
  7355. - echo "$ac_t""no" 1>&6
  7356. fi
  7357. done
  7358. if test $ac_cv_func_statvfs = yes; then
  7359. space=yes
  7360. - cat >> confdefs.h <<\EOF
  7361. + cat >>confdefs.h <<\_ACEOF
  7362. #define STAT_STATVFS 1
  7363. -EOF
  7364. +_ACEOF
  7365. fi
  7366. fi
  7367. if test $space = no; then
  7368. # DEC Alpha running OSF/1
  7369. - echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
  7370. -echo "configure:2730: checking for 3-argument statfs function (DEC OSF/1)" >&5
  7371. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
  7372. - echo $ac_n "(cached) $ac_c" 1>&6
  7373. + echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
  7374. +echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
  7375. + if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
  7376. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7377. else
  7378. if test "$cross_compiling" = yes; then
  7379. fu_cv_sys_stat_statfs3_osf1=no
  7380. else
  7381. - cat > conftest.$ac_ext <<EOF
  7382. -#line 2738 "configure"
  7383. -#include "confdefs.h"
  7384. + cat >conftest.$ac_ext <<_ACEOF
  7385. +#line $LINENO "configure"
  7386. +/* confdefs.h. */
  7387. +_ACEOF
  7388. +cat confdefs.h >>conftest.$ac_ext
  7389. +cat >>conftest.$ac_ext <<_ACEOF
  7390. +/* end confdefs.h. */
  7391. #include <sys/param.h>
  7392. #include <sys/types.h>
  7393. @@ -2746,44 +5953,59 @@
  7394. fsd.f_fsize = 0;
  7395. exit (statfs (".", &fsd, sizeof (struct statfs)));
  7396. }
  7397. -EOF
  7398. -if { (eval echo configure:2751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7399. -then
  7400. +_ACEOF
  7401. +rm -f conftest$ac_exeext
  7402. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7403. + (eval $ac_link) 2>&5
  7404. + ac_status=$?
  7405. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7406. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7407. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7408. + (eval $ac_try) 2>&5
  7409. + ac_status=$?
  7410. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7411. + (exit $ac_status); }; }; then
  7412. fu_cv_sys_stat_statfs3_osf1=yes
  7413. else
  7414. - echo "configure: failed program was:" >&5
  7415. - cat conftest.$ac_ext >&5
  7416. - rm -fr conftest*
  7417. - fu_cv_sys_stat_statfs3_osf1=no
  7418. + echo "$as_me: program exited with status $ac_status" >&5
  7419. +echo "$as_me: failed program was:" >&5
  7420. +sed 's/^/| /' conftest.$ac_ext >&5
  7421. +
  7422. +( exit $ac_status )
  7423. +fu_cv_sys_stat_statfs3_osf1=no
  7424. fi
  7425. -rm -fr conftest*
  7426. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7427. fi
  7428. -
  7429. fi
  7430. - echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
  7431. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
  7432. +echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
  7433. if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
  7434. space=yes
  7435. - cat >> confdefs.h <<\EOF
  7436. + cat >>confdefs.h <<\_ACEOF
  7437. #define STAT_STATFS3_OSF1 1
  7438. -EOF
  7439. +_ACEOF
  7440. fi
  7441. fi
  7442. if test $space = no; then
  7443. # AIX
  7444. - echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
  7445. -echo "configure:2778: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
  7446. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
  7447. - echo $ac_n "(cached) $ac_c" 1>&6
  7448. + echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
  7449. +echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
  7450. + if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
  7451. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7452. else
  7453. if test "$cross_compiling" = yes; then
  7454. fu_cv_sys_stat_statfs2_bsize=no
  7455. else
  7456. - cat > conftest.$ac_ext <<EOF
  7457. -#line 2786 "configure"
  7458. -#include "confdefs.h"
  7459. + cat >conftest.$ac_ext <<_ACEOF
  7460. +#line $LINENO "configure"
  7461. +/* confdefs.h. */
  7462. +_ACEOF
  7463. +cat confdefs.h >>conftest.$ac_ext
  7464. +cat >>conftest.$ac_ext <<_ACEOF
  7465. +/* end confdefs.h. */
  7466. #ifdef HAVE_SYS_PARAM_H
  7467. #include <sys/param.h>
  7468. @@ -2800,44 +6022,59 @@
  7469. fsd.f_bsize = 0;
  7470. exit (statfs (".", &fsd));
  7471. }
  7472. -EOF
  7473. -if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7474. -then
  7475. +_ACEOF
  7476. +rm -f conftest$ac_exeext
  7477. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7478. + (eval $ac_link) 2>&5
  7479. + ac_status=$?
  7480. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7481. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7482. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7483. + (eval $ac_try) 2>&5
  7484. + ac_status=$?
  7485. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7486. + (exit $ac_status); }; }; then
  7487. fu_cv_sys_stat_statfs2_bsize=yes
  7488. else
  7489. - echo "configure: failed program was:" >&5
  7490. - cat conftest.$ac_ext >&5
  7491. - rm -fr conftest*
  7492. - fu_cv_sys_stat_statfs2_bsize=no
  7493. + echo "$as_me: program exited with status $ac_status" >&5
  7494. +echo "$as_me: failed program was:" >&5
  7495. +sed 's/^/| /' conftest.$ac_ext >&5
  7496. +
  7497. +( exit $ac_status )
  7498. +fu_cv_sys_stat_statfs2_bsize=no
  7499. fi
  7500. -rm -fr conftest*
  7501. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7502. fi
  7503. -
  7504. fi
  7505. - echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
  7506. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
  7507. +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
  7508. if test $fu_cv_sys_stat_statfs2_bsize = yes; then
  7509. space=yes
  7510. - cat >> confdefs.h <<\EOF
  7511. + cat >>confdefs.h <<\_ACEOF
  7512. #define STAT_STATFS2_BSIZE 1
  7513. -EOF
  7514. +_ACEOF
  7515. fi
  7516. fi
  7517. if test $space = no; then
  7518. # SVR3
  7519. - echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
  7520. -echo "configure:2832: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
  7521. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
  7522. - echo $ac_n "(cached) $ac_c" 1>&6
  7523. + echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
  7524. +echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
  7525. + if test "${fu_cv_sys_stat_statfs4+set}" = set; then
  7526. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7527. else
  7528. if test "$cross_compiling" = yes; then
  7529. fu_cv_sys_stat_statfs4=no
  7530. else
  7531. - cat > conftest.$ac_ext <<EOF
  7532. -#line 2840 "configure"
  7533. -#include "confdefs.h"
  7534. + cat >conftest.$ac_ext <<_ACEOF
  7535. +#line $LINENO "configure"
  7536. +/* confdefs.h. */
  7537. +_ACEOF
  7538. +cat confdefs.h >>conftest.$ac_ext
  7539. +cat >>conftest.$ac_ext <<_ACEOF
  7540. +/* end confdefs.h. */
  7541. #include <sys/types.h>
  7542. #include <sys/statfs.h>
  7543. main ()
  7544. @@ -2845,43 +6082,58 @@
  7545. struct statfs fsd;
  7546. exit (statfs (".", &fsd, sizeof fsd, 0));
  7547. }
  7548. -EOF
  7549. -if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7550. -then
  7551. +_ACEOF
  7552. +rm -f conftest$ac_exeext
  7553. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7554. + (eval $ac_link) 2>&5
  7555. + ac_status=$?
  7556. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7557. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7558. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7559. + (eval $ac_try) 2>&5
  7560. + ac_status=$?
  7561. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7562. + (exit $ac_status); }; }; then
  7563. fu_cv_sys_stat_statfs4=yes
  7564. else
  7565. - echo "configure: failed program was:" >&5
  7566. - cat conftest.$ac_ext >&5
  7567. - rm -fr conftest*
  7568. - fu_cv_sys_stat_statfs4=no
  7569. + echo "$as_me: program exited with status $ac_status" >&5
  7570. +echo "$as_me: failed program was:" >&5
  7571. +sed 's/^/| /' conftest.$ac_ext >&5
  7572. +
  7573. +( exit $ac_status )
  7574. +fu_cv_sys_stat_statfs4=no
  7575. fi
  7576. -rm -fr conftest*
  7577. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7578. fi
  7579. -
  7580. fi
  7581. - echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
  7582. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
  7583. +echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
  7584. if test $fu_cv_sys_stat_statfs4 = yes; then
  7585. space=yes
  7586. - cat >> confdefs.h <<\EOF
  7587. + cat >>confdefs.h <<\_ACEOF
  7588. #define STAT_STATFS4 1
  7589. -EOF
  7590. +_ACEOF
  7591. fi
  7592. fi
  7593. if test $space = no; then
  7594. # 4.4BSD and NetBSD
  7595. - echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
  7596. -echo "configure:2876: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
  7597. - if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
  7598. - echo $ac_n "(cached) $ac_c" 1>&6
  7599. + echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
  7600. +echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
  7601. + if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
  7602. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7603. else
  7604. if test "$cross_compiling" = yes; then
  7605. fu_cv_sys_stat_statfs2_fsize=no
  7606. else
  7607. - cat > conftest.$ac_ext <<EOF
  7608. -#line 2884 "configure"
  7609. -#include "confdefs.h"
  7610. + cat >conftest.$ac_ext <<_ACEOF
  7611. +#line $LINENO "configure"
  7612. +/* confdefs.h. */
  7613. +_ACEOF
  7614. +cat confdefs.h >>conftest.$ac_ext
  7615. +cat >>conftest.$ac_ext <<_ACEOF
  7616. +/* end confdefs.h. */
  7617. #include <sys/types.h>
  7618. #ifdef HAVE_SYS_PARAM_H
  7619. #include <sys/param.h>
  7620. @@ -2895,44 +6147,59 @@
  7621. fsd.f_fsize = 0;
  7622. exit (statfs (".", &fsd));
  7623. }
  7624. -EOF
  7625. -if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7626. -then
  7627. +_ACEOF
  7628. +rm -f conftest$ac_exeext
  7629. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7630. + (eval $ac_link) 2>&5
  7631. + ac_status=$?
  7632. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7633. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7634. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7635. + (eval $ac_try) 2>&5
  7636. + ac_status=$?
  7637. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. + (exit $ac_status); }; }; then
  7639. fu_cv_sys_stat_statfs2_fsize=yes
  7640. else
  7641. - echo "configure: failed program was:" >&5
  7642. - cat conftest.$ac_ext >&5
  7643. - rm -fr conftest*
  7644. - fu_cv_sys_stat_statfs2_fsize=no
  7645. + echo "$as_me: program exited with status $ac_status" >&5
  7646. +echo "$as_me: failed program was:" >&5
  7647. +sed 's/^/| /' conftest.$ac_ext >&5
  7648. +
  7649. +( exit $ac_status )
  7650. +fu_cv_sys_stat_statfs2_fsize=no
  7651. fi
  7652. -rm -fr conftest*
  7653. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7654. fi
  7655. -
  7656. fi
  7657. - echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
  7658. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
  7659. +echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
  7660. if test $fu_cv_sys_stat_statfs2_fsize = yes; then
  7661. space=yes
  7662. - cat >> confdefs.h <<\EOF
  7663. + cat >>confdefs.h <<\_ACEOF
  7664. #define STAT_STATFS2_FSIZE 1
  7665. -EOF
  7666. +_ACEOF
  7667. fi
  7668. fi
  7669. if test $space = no; then
  7670. # Ultrix
  7671. - echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
  7672. -echo "configure:2927: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
  7673. - if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
  7674. - echo $ac_n "(cached) $ac_c" 1>&6
  7675. + echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
  7676. +echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
  7677. + if test "${fu_cv_sys_stat_fs_data+set}" = set; then
  7678. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7679. else
  7680. if test "$cross_compiling" = yes; then
  7681. fu_cv_sys_stat_fs_data=no
  7682. else
  7683. - cat > conftest.$ac_ext <<EOF
  7684. -#line 2935 "configure"
  7685. -#include "confdefs.h"
  7686. + cat >conftest.$ac_ext <<_ACEOF
  7687. +#line $LINENO "configure"
  7688. +/* confdefs.h. */
  7689. +_ACEOF
  7690. +cat confdefs.h >>conftest.$ac_ext
  7691. +cat >>conftest.$ac_ext <<_ACEOF
  7692. +/* end confdefs.h. */
  7693. #include <sys/types.h>
  7694. #ifdef HAVE_SYS_PARAM_H
  7695. @@ -2951,53 +6218,63 @@
  7696. 0 for not mounted, -1 for failure. */
  7697. exit (statfs (".", &fsd) != 1);
  7698. }
  7699. -EOF
  7700. -if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7701. -then
  7702. +_ACEOF
  7703. +rm -f conftest$ac_exeext
  7704. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7705. + (eval $ac_link) 2>&5
  7706. + ac_status=$?
  7707. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7709. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7710. + (eval $ac_try) 2>&5
  7711. + ac_status=$?
  7712. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7713. + (exit $ac_status); }; }; then
  7714. fu_cv_sys_stat_fs_data=yes
  7715. else
  7716. - echo "configure: failed program was:" >&5
  7717. - cat conftest.$ac_ext >&5
  7718. - rm -fr conftest*
  7719. - fu_cv_sys_stat_fs_data=no
  7720. + echo "$as_me: program exited with status $ac_status" >&5
  7721. +echo "$as_me: failed program was:" >&5
  7722. +sed 's/^/| /' conftest.$ac_ext >&5
  7723. +
  7724. +( exit $ac_status )
  7725. +fu_cv_sys_stat_fs_data=no
  7726. fi
  7727. -rm -fr conftest*
  7728. +rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7729. fi
  7730. -
  7731. fi
  7732. - echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
  7733. + echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
  7734. +echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
  7735. if test $fu_cv_sys_stat_fs_data = yes; then
  7736. space=yes
  7737. - cat >> confdefs.h <<\EOF
  7738. + cat >>confdefs.h <<\_ACEOF
  7739. #define STAT_STATFS2_FS_DATA 1
  7740. -EOF
  7741. +_ACEOF
  7742. fi
  7743. fi
  7744. -
  7745. +
  7746. # Check whether --enable-stat-nfs or --disable-stat-nfs was given.
  7747. if test "${enable_stat_nfs+set}" = set; then
  7748. enableval="$enable_stat_nfs"
  7749. - cat >> confdefs.h <<\EOF
  7750. + cat >>confdefs.h <<\_ACEOF
  7751. #define STAT_NFS 1
  7752. -EOF
  7753. +_ACEOF
  7754. -fi
  7755. -
  7756. +fi;
  7757. # Check whether --enable-stat-smbfs or --disable-stat-smbfs was given.
  7758. if test "${enable_stat_smbfs+set}" = set; then
  7759. enableval="$enable_stat_smbfs"
  7760. - cat >> confdefs.h <<\EOF
  7761. + cat >>confdefs.h <<\_ACEOF
  7762. #define STAT_SMBFS 1
  7763. -EOF
  7764. +_ACEOF
  7765. -fi
  7766. +fi;
  7767. @@ -3008,16 +6285,16 @@
  7768. else
  7769. LCDPORT="13666"
  7770. -fi
  7771. -
  7772. -cat >> confdefs.h <<EOF
  7773. +fi;
  7774. +cat >>confdefs.h <<_ACEOF
  7775. #define LCDPORT $LCDPORT
  7776. -EOF
  7777. +_ACEOF
  7778. -cat >> confdefs.h <<EOF
  7779. +cat >>confdefs.h <<_ACEOF
  7780. #define PROTOCOL_VERSION "0.3"
  7781. -EOF
  7782. +_ACEOF
  7783. +
  7784. @@ -3028,11 +6305,11 @@
  7785. else
  7786. LOAD_MAX=1.3
  7787. -fi
  7788. -
  7789. -cat >> confdefs.h <<EOF
  7790. +fi;
  7791. +cat >>confdefs.h <<_ACEOF
  7792. #define LOAD_MAX $LOAD_MAX
  7793. -EOF
  7794. +_ACEOF
  7795. +
  7796. # Check whether --with-loadmin or --without-loadmin was given.
  7797. @@ -3042,16 +6319,15 @@
  7798. else
  7799. LOAD_MIN=0.05
  7800. -fi
  7801. -
  7802. -cat >> confdefs.h <<EOF
  7803. +fi;
  7804. +cat >>confdefs.h <<_ACEOF
  7805. #define LOAD_MIN $LOAD_MIN
  7806. -EOF
  7807. +_ACEOF
  7808. -echo $ac_n "checking for which drivers to compile""... $ac_c" 1>&6
  7809. -echo "configure:3055: checking for which drivers to compile" >&5
  7810. +echo "$as_me:$LINENO: checking for which drivers to compile" >&5
  7811. +echo $ECHO_N "checking for which drivers to compile... $ECHO_C" >&6
  7812. # Check whether --enable-drivers or --disable-drivers was given.
  7813. if test "${enable_drivers+set}" = set; then
  7814. @@ -3059,252 +6335,329 @@
  7815. drivers="$enableval"
  7816. else
  7817. drivers=mtxorb,cfontz,curses,text,lb216,bayrad,glk
  7818. -fi
  7819. -
  7820. +fi;
  7821. if test "$drivers" = "all"; then
  7822. drivers=mtxorb,cfontz,curses,text,lb216,hd44780,joy,irman,lircin,bayrad,glk
  7823. - echo "$ac_t""all" 1>&6
  7824. + echo "$as_me:$LINENO: result: all" >&5
  7825. +echo "${ECHO_T}all" >&6
  7826. fi
  7827. drivers=`echo $drivers | sed 's/,/ /g'`
  7828. - echo "$ac_t""$drivers" 1>&6
  7829. + echo "$as_me:$LINENO: result: $drivers" >&5
  7830. +echo "${ECHO_T}$drivers" >&6
  7831. for driver in $drivers
  7832. do
  7833. case "$driver" in
  7834. mtxorb)
  7835. DRIVERS="$DRIVERS MtxOrb.o"
  7836. - cat >> confdefs.h <<\EOF
  7837. + cat >>confdefs.h <<\_ACEOF
  7838. #define MTXORB_DRV 1
  7839. -EOF
  7840. +_ACEOF
  7841. ;;
  7842. glk)
  7843. DRIVERS="$DRIVERS glk.o glkproto.o"
  7844. - cat >> confdefs.h <<\EOF
  7845. + cat >>confdefs.h <<\_ACEOF
  7846. #define GLK_DRV 1
  7847. -EOF
  7848. +_ACEOF
  7849. ;;
  7850. bayrad)
  7851. DRIVERS="$DRIVERS bayrad.o"
  7852. - cat >> confdefs.h <<\EOF
  7853. + cat >>confdefs.h <<\_ACEOF
  7854. #define BAYRAD_DRV 1
  7855. -EOF
  7856. +_ACEOF
  7857. ;;
  7858. cfontz)
  7859. DRIVERS="$DRIVERS CFontz.o"
  7860. - cat >> confdefs.h <<\EOF
  7861. + cat >>confdefs.h <<\_ACEOF
  7862. #define CFONTZ_DRV 1
  7863. -EOF
  7864. +_ACEOF
  7865. ;;
  7866. - sli)
  7867. + sli)
  7868. DRIVERS="$DRIVERS wirz-sli.o"
  7869. - cat >> confdefs.h <<\EOF
  7870. + cat >>confdefs.h <<\_ACEOF
  7871. #define SLI_DRV 1
  7872. -EOF
  7873. +_ACEOF
  7874. ;;
  7875. curses)
  7876. - echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
  7877. -echo "configure:3113: checking for main in -lncurses" >&5
  7878. -ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
  7879. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7880. - echo $ac_n "(cached) $ac_c" 1>&6
  7881. + echo "$as_me:$LINENO: checking for main in -lncurses" >&5
  7882. +echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
  7883. +if test "${ac_cv_lib_ncurses_main+set}" = set; then
  7884. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7885. else
  7886. - ac_save_LIBS="$LIBS"
  7887. + ac_check_lib_save_LIBS=$LIBS
  7888. LIBS="-lncurses $LIBS"
  7889. -cat > conftest.$ac_ext <<EOF
  7890. -#line 3121 "configure"
  7891. -#include "confdefs.h"
  7892. -
  7893. -int main() {
  7894. -main()
  7895. -; return 0; }
  7896. -EOF
  7897. -if { (eval echo configure:3128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7898. - rm -rf conftest*
  7899. - eval "ac_cv_lib_$ac_lib_var=yes"
  7900. -else
  7901. - echo "configure: failed program was:" >&5
  7902. - cat conftest.$ac_ext >&5
  7903. - rm -rf conftest*
  7904. - eval "ac_cv_lib_$ac_lib_var=no"
  7905. -fi
  7906. -rm -f conftest*
  7907. -LIBS="$ac_save_LIBS"
  7908. +cat >conftest.$ac_ext <<_ACEOF
  7909. +#line $LINENO "configure"
  7910. +/* confdefs.h. */
  7911. +_ACEOF
  7912. +cat confdefs.h >>conftest.$ac_ext
  7913. +cat >>conftest.$ac_ext <<_ACEOF
  7914. +/* end confdefs.h. */
  7915. -fi
  7916. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7917. - echo "$ac_t""yes" 1>&6
  7918. +
  7919. +int
  7920. +main ()
  7921. +{
  7922. +main ();
  7923. + ;
  7924. + return 0;
  7925. +}
  7926. +_ACEOF
  7927. +rm -f conftest.$ac_objext conftest$ac_exeext
  7928. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7929. + (eval $ac_link) 2>&5
  7930. + ac_status=$?
  7931. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7932. + (exit $ac_status); } &&
  7933. + { ac_try='test -s conftest$ac_exeext'
  7934. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7935. + (eval $ac_try) 2>&5
  7936. + ac_status=$?
  7937. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7938. + (exit $ac_status); }; }; then
  7939. + ac_cv_lib_ncurses_main=yes
  7940. +else
  7941. + echo "$as_me: failed program was:" >&5
  7942. +sed 's/^/| /' conftest.$ac_ext >&5
  7943. +
  7944. +ac_cv_lib_ncurses_main=no
  7945. +fi
  7946. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  7947. +LIBS=$ac_check_lib_save_LIBS
  7948. +fi
  7949. +echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
  7950. +echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
  7951. +if test $ac_cv_lib_ncurses_main = yes; then
  7952. LIBCURSES="-lncurses"
  7953. else
  7954. - echo "$ac_t""no" 1>&6
  7955. -echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
  7956. -echo "configure:3147: checking for main in -lcurses" >&5
  7957. -ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
  7958. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7959. - echo $ac_n "(cached) $ac_c" 1>&6
  7960. + echo "$as_me:$LINENO: checking for main in -lcurses" >&5
  7961. +echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
  7962. +if test "${ac_cv_lib_curses_main+set}" = set; then
  7963. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7964. else
  7965. - ac_save_LIBS="$LIBS"
  7966. + ac_check_lib_save_LIBS=$LIBS
  7967. LIBS="-lcurses $LIBS"
  7968. -cat > conftest.$ac_ext <<EOF
  7969. -#line 3155 "configure"
  7970. -#include "confdefs.h"
  7971. -
  7972. -int main() {
  7973. -main()
  7974. -; return 0; }
  7975. -EOF
  7976. -if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7977. - rm -rf conftest*
  7978. - eval "ac_cv_lib_$ac_lib_var=yes"
  7979. -else
  7980. - echo "configure: failed program was:" >&5
  7981. - cat conftest.$ac_ext >&5
  7982. - rm -rf conftest*
  7983. - eval "ac_cv_lib_$ac_lib_var=no"
  7984. -fi
  7985. -rm -f conftest*
  7986. -LIBS="$ac_save_LIBS"
  7987. +cat >conftest.$ac_ext <<_ACEOF
  7988. +#line $LINENO "configure"
  7989. +/* confdefs.h. */
  7990. +_ACEOF
  7991. +cat confdefs.h >>conftest.$ac_ext
  7992. +cat >>conftest.$ac_ext <<_ACEOF
  7993. +/* end confdefs.h. */
  7994. -fi
  7995. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7996. - echo "$ac_t""yes" 1>&6
  7997. +
  7998. +int
  7999. +main ()
  8000. +{
  8001. +main ();
  8002. + ;
  8003. + return 0;
  8004. +}
  8005. +_ACEOF
  8006. +rm -f conftest.$ac_objext conftest$ac_exeext
  8007. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8008. + (eval $ac_link) 2>&5
  8009. + ac_status=$?
  8010. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8011. + (exit $ac_status); } &&
  8012. + { ac_try='test -s conftest$ac_exeext'
  8013. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8014. + (eval $ac_try) 2>&5
  8015. + ac_status=$?
  8016. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8017. + (exit $ac_status); }; }; then
  8018. + ac_cv_lib_curses_main=yes
  8019. +else
  8020. + echo "$as_me: failed program was:" >&5
  8021. +sed 's/^/| /' conftest.$ac_ext >&5
  8022. +
  8023. +ac_cv_lib_curses_main=no
  8024. +fi
  8025. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8026. +LIBS=$ac_check_lib_save_LIBS
  8027. +fi
  8028. +echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
  8029. +echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
  8030. +if test $ac_cv_lib_curses_main = yes; then
  8031. LIBCURSES="-lcurses"
  8032. else
  8033. - echo "$ac_t""no" 1>&6
  8034. -{ echo "configure: error: The curses driver needs the curses library" 1>&2; exit 1; }
  8035. + { { echo "$as_me:$LINENO: error: The curses driver needs the curses library" >&5
  8036. +echo "$as_me: error: The curses driver needs the curses library" >&2;}
  8037. + { (exit 1); exit 1; }; }
  8038. fi
  8039. fi
  8040. DRIVERS="$DRIVERS curses_drv.o"
  8041. - cat >> confdefs.h <<\EOF
  8042. + cat >>confdefs.h <<\_ACEOF
  8043. #define CURSES_DRV 1
  8044. -EOF
  8045. +_ACEOF
  8046. ;;
  8047. text)
  8048. DRIVERS="$DRIVERS text.o"
  8049. - cat >> confdefs.h <<\EOF
  8050. + cat >>confdefs.h <<\_ACEOF
  8051. #define TEXT_DRV 1
  8052. -EOF
  8053. +_ACEOF
  8054. ;;
  8055. lb216)
  8056. DRIVERS="$DRIVERS lb216.o"
  8057. - cat >> confdefs.h <<\EOF
  8058. + cat >>confdefs.h <<\_ACEOF
  8059. #define LB216_DRV 1
  8060. -EOF
  8061. +_ACEOF
  8062. ;;
  8063. hd44780)
  8064. DRIVERS="$DRIVERS hd44780.o hd44780-4bit.o hd44780-ext8bit.o lcd_sem.o hd44780-serialLpt.o hd44780-winamp.o"
  8065. - cat >> confdefs.h <<\EOF
  8066. + cat >>confdefs.h <<\_ACEOF
  8067. #define HD44780_DRV 1
  8068. -EOF
  8069. +_ACEOF
  8070. ;;
  8071. - joy)
  8072. + joy)
  8073. DRIVERS="$DRIVERS joy.o"
  8074. - cat >> confdefs.h <<\EOF
  8075. + cat >>confdefs.h <<\_ACEOF
  8076. #define JOY_DRV 1
  8077. -EOF
  8078. +_ACEOF
  8079. ;;
  8080. irman)
  8081. - echo $ac_n "checking for main in -lirman""... $ac_c" 1>&6
  8082. -echo "configure:3221: checking for main in -lirman" >&5
  8083. -ac_lib_var=`echo irman'_'main | sed 'y%./+-%__p_%'`
  8084. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8085. - echo $ac_n "(cached) $ac_c" 1>&6
  8086. + echo "$as_me:$LINENO: checking for main in -lirman" >&5
  8087. +echo $ECHO_N "checking for main in -lirman... $ECHO_C" >&6
  8088. +if test "${ac_cv_lib_irman_main+set}" = set; then
  8089. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8090. else
  8091. - ac_save_LIBS="$LIBS"
  8092. + ac_check_lib_save_LIBS=$LIBS
  8093. LIBS="-lirman $LIBS"
  8094. -cat > conftest.$ac_ext <<EOF
  8095. -#line 3229 "configure"
  8096. -#include "confdefs.h"
  8097. -
  8098. -int main() {
  8099. -main()
  8100. -; return 0; }
  8101. -EOF
  8102. -if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8103. - rm -rf conftest*
  8104. - eval "ac_cv_lib_$ac_lib_var=yes"
  8105. -else
  8106. - echo "configure: failed program was:" >&5
  8107. - cat conftest.$ac_ext >&5
  8108. - rm -rf conftest*
  8109. - eval "ac_cv_lib_$ac_lib_var=no"
  8110. -fi
  8111. -rm -f conftest*
  8112. -LIBS="$ac_save_LIBS"
  8113. +cat >conftest.$ac_ext <<_ACEOF
  8114. +#line $LINENO "configure"
  8115. +/* confdefs.h. */
  8116. +_ACEOF
  8117. +cat confdefs.h >>conftest.$ac_ext
  8118. +cat >>conftest.$ac_ext <<_ACEOF
  8119. +/* end confdefs.h. */
  8120. -fi
  8121. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8122. - echo "$ac_t""yes" 1>&6
  8123. +
  8124. +int
  8125. +main ()
  8126. +{
  8127. +main ();
  8128. + ;
  8129. + return 0;
  8130. +}
  8131. +_ACEOF
  8132. +rm -f conftest.$ac_objext conftest$ac_exeext
  8133. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8134. + (eval $ac_link) 2>&5
  8135. + ac_status=$?
  8136. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8137. + (exit $ac_status); } &&
  8138. + { ac_try='test -s conftest$ac_exeext'
  8139. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8140. + (eval $ac_try) 2>&5
  8141. + ac_status=$?
  8142. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8143. + (exit $ac_status); }; }; then
  8144. + ac_cv_lib_irman_main=yes
  8145. +else
  8146. + echo "$as_me: failed program was:" >&5
  8147. +sed 's/^/| /' conftest.$ac_ext >&5
  8148. +
  8149. +ac_cv_lib_irman_main=no
  8150. +fi
  8151. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8152. +LIBS=$ac_check_lib_save_LIBS
  8153. +fi
  8154. +echo "$as_me:$LINENO: result: $ac_cv_lib_irman_main" >&5
  8155. +echo "${ECHO_T}$ac_cv_lib_irman_main" >&6
  8156. +if test $ac_cv_lib_irman_main = yes; then
  8157. LIBIRMAN="-lirman"
  8158. else
  8159. - echo "$ac_t""no" 1>&6
  8160. -{ echo "configure: error: The irman driver needs the irman library" 1>&2; exit 1; }
  8161. + { { echo "$as_me:$LINENO: error: The irman driver needs the irman library" >&5
  8162. +echo "$as_me: error: The irman driver needs the irman library" >&2;}
  8163. + { (exit 1); exit 1; }; }
  8164. fi
  8165. DRIVERS="$DRIVERS irmanin.o"
  8166. - cat >> confdefs.h <<\EOF
  8167. + cat >>confdefs.h <<\_ACEOF
  8168. #define IRMANIN_DRV 1
  8169. -EOF
  8170. +_ACEOF
  8171. ;;
  8172. lircin)
  8173. - echo $ac_n "checking for main in -llirc_client""... $ac_c" 1>&6
  8174. -echo "configure:3265: checking for main in -llirc_client" >&5
  8175. -ac_lib_var=`echo lirc_client'_'main | sed 'y%./+-%__p_%'`
  8176. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8177. - echo $ac_n "(cached) $ac_c" 1>&6
  8178. + echo "$as_me:$LINENO: checking for main in -llirc_client" >&5
  8179. +echo $ECHO_N "checking for main in -llirc_client... $ECHO_C" >&6
  8180. +if test "${ac_cv_lib_lirc_client_main+set}" = set; then
  8181. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8182. else
  8183. - ac_save_LIBS="$LIBS"
  8184. + ac_check_lib_save_LIBS=$LIBS
  8185. LIBS="-llirc_client $LIBS"
  8186. -cat > conftest.$ac_ext <<EOF
  8187. -#line 3273 "configure"
  8188. -#include "confdefs.h"
  8189. -
  8190. -int main() {
  8191. -main()
  8192. -; return 0; }
  8193. -EOF
  8194. -if { (eval echo configure:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8195. - rm -rf conftest*
  8196. - eval "ac_cv_lib_$ac_lib_var=yes"
  8197. -else
  8198. - echo "configure: failed program was:" >&5
  8199. - cat conftest.$ac_ext >&5
  8200. - rm -rf conftest*
  8201. - eval "ac_cv_lib_$ac_lib_var=no"
  8202. -fi
  8203. -rm -f conftest*
  8204. -LIBS="$ac_save_LIBS"
  8205. +cat >conftest.$ac_ext <<_ACEOF
  8206. +#line $LINENO "configure"
  8207. +/* confdefs.h. */
  8208. +_ACEOF
  8209. +cat confdefs.h >>conftest.$ac_ext
  8210. +cat >>conftest.$ac_ext <<_ACEOF
  8211. +/* end confdefs.h. */
  8212. -fi
  8213. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8214. - echo "$ac_t""yes" 1>&6
  8215. +
  8216. +int
  8217. +main ()
  8218. +{
  8219. +main ();
  8220. + ;
  8221. + return 0;
  8222. +}
  8223. +_ACEOF
  8224. +rm -f conftest.$ac_objext conftest$ac_exeext
  8225. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8226. + (eval $ac_link) 2>&5
  8227. + ac_status=$?
  8228. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229. + (exit $ac_status); } &&
  8230. + { ac_try='test -s conftest$ac_exeext'
  8231. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8232. + (eval $ac_try) 2>&5
  8233. + ac_status=$?
  8234. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8235. + (exit $ac_status); }; }; then
  8236. + ac_cv_lib_lirc_client_main=yes
  8237. +else
  8238. + echo "$as_me: failed program was:" >&5
  8239. +sed 's/^/| /' conftest.$ac_ext >&5
  8240. +
  8241. +ac_cv_lib_lirc_client_main=no
  8242. +fi
  8243. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8244. +LIBS=$ac_check_lib_save_LIBS
  8245. +fi
  8246. +echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_main" >&5
  8247. +echo "${ECHO_T}$ac_cv_lib_lirc_client_main" >&6
  8248. +if test $ac_cv_lib_lirc_client_main = yes; then
  8249. LIBLIRC_CLIENT="-llirc_client"
  8250. else
  8251. - echo "$ac_t""no" 1>&6
  8252. -{ echo "configure: error: The lirc driver needs the lirc client library" 1>&2; exit 1; }
  8253. + { { echo "$as_me:$LINENO: error: The lirc driver needs the lirc client library" >&5
  8254. +echo "$as_me: error: The lirc driver needs the lirc client library" >&2;}
  8255. + { (exit 1); exit 1; }; }
  8256. fi
  8257. DRIVERS="$DRIVERS lircin.o"
  8258. - cat >> confdefs.h <<\EOF
  8259. + cat >>confdefs.h <<\_ACEOF
  8260. #define LIRCIN_DRV 1
  8261. -EOF
  8262. +_ACEOF
  8263. ;;
  8264. - *)
  8265. - { echo "configure: error: Unknown driver $driver" 1>&2; exit 1; }
  8266. + *)
  8267. + { { echo "$as_me:$LINENO: error: Unknown driver $driver" >&5
  8268. +echo "$as_me: error: Unknown driver $driver" >&2;}
  8269. + { (exit 1); exit 1; }; }
  8270. ;;
  8271. esac
  8272. done
  8273. @@ -3315,396 +6668,1187 @@
  8274. -trap '' 1 2 15
  8275. -cat > confcache <<\EOF
  8276. + 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"
  8277. +cat >confcache <<\_ACEOF
  8278. # This file is a shell script that caches the results of configure
  8279. # tests run on this system so they can be shared between configure
  8280. -# scripts and configure runs. It is not useful on other systems.
  8281. -# If it contains results you don't want to keep, you may remove or edit it.
  8282. +# scripts and configure runs, see configure's option --config-cache.
  8283. +# It is not useful on other systems. If it contains results you don't
  8284. +# want to keep, you may remove or edit it.
  8285. #
  8286. -# By default, configure uses ./config.cache as the cache file,
  8287. -# creating it if it does not exist already. You can give configure
  8288. -# the --cache-file=FILE option to use a different cache file; that is
  8289. -# what configure does when it calls configure scripts in
  8290. -# subdirectories, so they share the cache.
  8291. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  8292. -# config.status only pays attention to the cache file if you give it the
  8293. -# --recheck option to rerun configure.
  8294. +# config.status only pays attention to the cache file if you give it
  8295. +# the --recheck option to rerun configure.
  8296. #
  8297. -EOF
  8298. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  8299. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  8300. +# following values.
  8301. +
  8302. +_ACEOF
  8303. +
  8304. # The following way of writing the cache mishandles newlines in values,
  8305. # but we know of no workaround that is simple, portable, and efficient.
  8306. # So, don't put newlines in cache variables' values.
  8307. # Ultrix sh set writes to stderr and can't be redirected directly,
  8308. # and sets the high bit in the cache file unless we assign to the vars.
  8309. -(set) 2>&1 |
  8310. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8311. - *ac_space=\ *)
  8312. - # `set' does not quote correctly, so add quotes (double-quote substitution
  8313. - # turns \\\\ into \\, and sed turns \\ into \).
  8314. - sed -n \
  8315. - -e "s/'/'\\\\''/g" \
  8316. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  8317. - ;;
  8318. - *)
  8319. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  8320. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  8321. - ;;
  8322. - esac >> confcache
  8323. -if cmp -s $cache_file confcache; then
  8324. - :
  8325. -else
  8326. +{
  8327. + (set) 2>&1 |
  8328. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8329. + *ac_space=\ *)
  8330. + # `set' does not quote correctly, so add quotes (double-quote
  8331. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  8332. + sed -n \
  8333. + "s/'/'\\\\''/g;
  8334. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8335. + ;;
  8336. + *)
  8337. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  8338. + sed -n \
  8339. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8340. + ;;
  8341. + esac;
  8342. +} |
  8343. + sed '
  8344. + t clear
  8345. + : clear
  8346. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8347. + t end
  8348. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8349. + : end' >>confcache
  8350. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8351. if test -w $cache_file; then
  8352. - echo "updating cache $cache_file"
  8353. - cat confcache > $cache_file
  8354. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8355. + cat confcache >$cache_file
  8356. else
  8357. echo "not updating unwritable cache $cache_file"
  8358. fi
  8359. fi
  8360. rm -f confcache
  8361. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  8362. -
  8363. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8364. # Let make expand exec_prefix.
  8365. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8366. -# Any assignment to VPATH causes Sun make to only execute
  8367. -# the first set of double-colon rules, so remove it if not needed.
  8368. -# If there is a colon in the path, we need to keep it.
  8369. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  8370. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8371. +# trailing colons and then remove the whole line if VPATH becomes empty
  8372. +# (actually we leave an empty line to preserve line numbers).
  8373. if test "x$srcdir" = x.; then
  8374. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  8375. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8376. +s/:*\$(srcdir):*/:/;
  8377. +s/:*\${srcdir}:*/:/;
  8378. +s/:*@srcdir@:*/:/;
  8379. +s/^\([^=]*=[ ]*\):*/\1/;
  8380. +s/:*$//;
  8381. +s/^[^=]*=[ ]*$//;
  8382. +}'
  8383. fi
  8384. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  8385. -
  8386. DEFS=-DHAVE_CONFIG_H
  8387. -# Without the "./", some shells look in PATH for config.status.
  8388. -: ${CONFIG_STATUS=./config.status}
  8389. +ac_libobjs=
  8390. +ac_ltlibobjs=
  8391. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8392. + # 1. Remove the extension, and $U if already installed.
  8393. + ac_i=`echo "$ac_i" |
  8394. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8395. + # 2. Add them.
  8396. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8397. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8398. +done
  8399. +LIBOBJS=$ac_libobjs
  8400. +
  8401. +LTLIBOBJS=$ac_ltlibobjs
  8402. -echo creating $CONFIG_STATUS
  8403. -rm -f $CONFIG_STATUS
  8404. -cat > $CONFIG_STATUS <<EOF
  8405. -#! /bin/sh
  8406. -# Generated automatically by configure.
  8407. +
  8408. +
  8409. +: ${CONFIG_STATUS=./config.status}
  8410. +ac_clean_files_save=$ac_clean_files
  8411. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8412. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8413. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8414. +cat >$CONFIG_STATUS <<_ACEOF
  8415. +#! $SHELL
  8416. +# Generated by $as_me.
  8417. # Run this file to recreate the current configuration.
  8418. -# This directory was configured as follows,
  8419. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8420. -#
  8421. -# $0 $ac_configure_args
  8422. -#
  8423. # Compiler output produced by configure, useful for debugging
  8424. -# configure, is in ./config.log if it exists.
  8425. +# configure, is in config.log if it exists.
  8426. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  8427. -for ac_option
  8428. +debug=false
  8429. +ac_cs_recheck=false
  8430. +ac_cs_silent=false
  8431. +SHELL=\${CONFIG_SHELL-$SHELL}
  8432. +_ACEOF
  8433. +
  8434. +cat >>$CONFIG_STATUS <<\_ACEOF
  8435. +## --------------------- ##
  8436. +## M4sh Initialization. ##
  8437. +## --------------------- ##
  8438. +
  8439. +# Be Bourne compatible
  8440. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8441. + emulate sh
  8442. + NULLCMD=:
  8443. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8444. + # is contrary to our usage. Disable this feature.
  8445. + alias -g '${1+"$@"}'='"$@"'
  8446. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8447. + set -o posix
  8448. +fi
  8449. +
  8450. +# Support unset when possible.
  8451. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  8452. + as_unset=unset
  8453. +else
  8454. + as_unset=false
  8455. +fi
  8456. +
  8457. +
  8458. +# Work around bugs in pre-3.0 UWIN ksh.
  8459. +$as_unset ENV MAIL MAILPATH
  8460. +PS1='$ '
  8461. +PS2='> '
  8462. +PS4='+ '
  8463. +
  8464. +# NLS nuisances.
  8465. +for as_var in \
  8466. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8467. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8468. + LC_TELEPHONE LC_TIME
  8469. +do
  8470. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8471. + eval $as_var=C; export $as_var
  8472. + else
  8473. + $as_unset $as_var
  8474. + fi
  8475. +done
  8476. +
  8477. +# Required to use basename.
  8478. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8479. + as_expr=expr
  8480. +else
  8481. + as_expr=false
  8482. +fi
  8483. +
  8484. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8485. + as_basename=basename
  8486. +else
  8487. + as_basename=false
  8488. +fi
  8489. +
  8490. +
  8491. +# Name of the executable.
  8492. +as_me=`$as_basename "$0" ||
  8493. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8494. + X"$0" : 'X\(//\)$' \| \
  8495. + X"$0" : 'X\(/\)$' \| \
  8496. + . : '\(.\)' 2>/dev/null ||
  8497. +echo X/"$0" |
  8498. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8499. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  8500. + /^X\/\(\/\).*/{ s//\1/; q; }
  8501. + s/.*/./; q'`
  8502. +
  8503. +
  8504. +# PATH needs CR, and LINENO needs CR and PATH.
  8505. +# Avoid depending upon Character Ranges.
  8506. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8507. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8508. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8509. +as_cr_digits='0123456789'
  8510. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8511. +
  8512. +# The user is always right.
  8513. +if test "${PATH_SEPARATOR+set}" != set; then
  8514. + echo "#! /bin/sh" >conf$$.sh
  8515. + echo "exit 0" >>conf$$.sh
  8516. + chmod +x conf$$.sh
  8517. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8518. + PATH_SEPARATOR=';'
  8519. + else
  8520. + PATH_SEPARATOR=:
  8521. + fi
  8522. + rm -f conf$$.sh
  8523. +fi
  8524. +
  8525. +
  8526. + as_lineno_1=$LINENO
  8527. + as_lineno_2=$LINENO
  8528. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8529. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8530. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  8531. + # Find who we are. Look in the path if we contain no path at all
  8532. + # relative or not.
  8533. + case $0 in
  8534. + *[\\/]* ) as_myself=$0 ;;
  8535. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8536. +for as_dir in $PATH
  8537. +do
  8538. + IFS=$as_save_IFS
  8539. + test -z "$as_dir" && as_dir=.
  8540. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8541. +done
  8542. +
  8543. + ;;
  8544. + esac
  8545. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  8546. + # in which case we are not to be found in the path.
  8547. + if test "x$as_myself" = x; then
  8548. + as_myself=$0
  8549. + fi
  8550. + if test ! -f "$as_myself"; then
  8551. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8552. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8553. + { (exit 1); exit 1; }; }
  8554. + fi
  8555. + case $CONFIG_SHELL in
  8556. + '')
  8557. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8558. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8559. +do
  8560. + IFS=$as_save_IFS
  8561. + test -z "$as_dir" && as_dir=.
  8562. + for as_base in sh bash ksh sh5; do
  8563. + case $as_dir in
  8564. + /*)
  8565. + if ("$as_dir/$as_base" -c '
  8566. + as_lineno_1=$LINENO
  8567. + as_lineno_2=$LINENO
  8568. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8569. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8570. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8571. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8572. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8573. + CONFIG_SHELL=$as_dir/$as_base
  8574. + export CONFIG_SHELL
  8575. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8576. + fi;;
  8577. + esac
  8578. + done
  8579. +done
  8580. +;;
  8581. + esac
  8582. +
  8583. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8584. + # uniformly replaced by the line number. The first 'sed' inserts a
  8585. + # line-number line before each line; the second 'sed' does the real
  8586. + # work. The second script uses 'N' to pair each line-number line
  8587. + # with the numbered line, and appends trailing '-' during
  8588. + # substitution so that $LINENO is not a special case at line end.
  8589. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8590. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8591. + sed '=' <$as_myself |
  8592. + sed '
  8593. + N
  8594. + s,$,-,
  8595. + : loop
  8596. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8597. + t loop
  8598. + s,-$,,
  8599. + s,^['$as_cr_digits']*\n,,
  8600. + ' >$as_me.lineno &&
  8601. + chmod +x $as_me.lineno ||
  8602. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8603. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8604. + { (exit 1); exit 1; }; }
  8605. +
  8606. + # Don't try to exec as it changes $[0], causing all sort of problems
  8607. + # (the dirname of $[0] is not the place where we might find the
  8608. + # original and so on. Autoconf is especially sensible to this).
  8609. + . ./$as_me.lineno
  8610. + # Exit status is that of the last command.
  8611. + exit
  8612. +}
  8613. +
  8614. +
  8615. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8616. + *c*,-n*) ECHO_N= ECHO_C='
  8617. +' ECHO_T=' ' ;;
  8618. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8619. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8620. +esac
  8621. +
  8622. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8623. + as_expr=expr
  8624. +else
  8625. + as_expr=false
  8626. +fi
  8627. +
  8628. +rm -f conf$$ conf$$.exe conf$$.file
  8629. +echo >conf$$.file
  8630. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  8631. + # We could just check for DJGPP; but this test a) works b) is more generic
  8632. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8633. + if test -f conf$$.exe; then
  8634. + # Don't use ln at all; we don't have any links
  8635. + as_ln_s='cp -p'
  8636. + else
  8637. + as_ln_s='ln -s'
  8638. + fi
  8639. +elif ln conf$$.file conf$$ 2>/dev/null; then
  8640. + as_ln_s=ln
  8641. +else
  8642. + as_ln_s='cp -p'
  8643. +fi
  8644. +rm -f conf$$ conf$$.exe conf$$.file
  8645. +
  8646. +if mkdir -p . 2>/dev/null; then
  8647. + as_mkdir_p=:
  8648. +else
  8649. + as_mkdir_p=false
  8650. +fi
  8651. +
  8652. +as_executable_p="test -f"
  8653. +
  8654. +# Sed expression to map a string onto a valid CPP name.
  8655. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  8656. +
  8657. +# Sed expression to map a string onto a valid variable name.
  8658. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  8659. +
  8660. +
  8661. +# IFS
  8662. +# We need space, tab and new line, in precisely that order.
  8663. +as_nl='
  8664. +'
  8665. +IFS=" $as_nl"
  8666. +
  8667. +# CDPATH.
  8668. +$as_unset CDPATH
  8669. +
  8670. +exec 6>&1
  8671. +
  8672. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  8673. +# report actual input values of CONFIG_FILES etc. instead of their
  8674. +# values after options handling. Logging --version etc. is OK.
  8675. +exec 5>>config.log
  8676. +{
  8677. + echo
  8678. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8679. +## Running $as_me. ##
  8680. +_ASBOX
  8681. +} >&5
  8682. +cat >&5 <<_CSEOF
  8683. +
  8684. +This file was extended by $as_me, which was
  8685. +generated by GNU Autoconf 2.57. Invocation command line was
  8686. +
  8687. + CONFIG_FILES = $CONFIG_FILES
  8688. + CONFIG_HEADERS = $CONFIG_HEADERS
  8689. + CONFIG_LINKS = $CONFIG_LINKS
  8690. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  8691. + $ $0 $@
  8692. +
  8693. +_CSEOF
  8694. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8695. +echo >&5
  8696. +_ACEOF
  8697. +
  8698. +# Files that config.status was made for.
  8699. +if test -n "$ac_config_files"; then
  8700. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8701. +fi
  8702. +
  8703. +if test -n "$ac_config_headers"; then
  8704. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8705. +fi
  8706. +
  8707. +if test -n "$ac_config_links"; then
  8708. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8709. +fi
  8710. +
  8711. +if test -n "$ac_config_commands"; then
  8712. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8713. +fi
  8714. +
  8715. +cat >>$CONFIG_STATUS <<\_ACEOF
  8716. +
  8717. +ac_cs_usage="\
  8718. +\`$as_me' instantiates files from templates according to the
  8719. +current configuration.
  8720. +
  8721. +Usage: $0 [OPTIONS] [FILE]...
  8722. +
  8723. + -h, --help print this help, then exit
  8724. + -V, --version print version number, then exit
  8725. + -q, --quiet do not print progress messages
  8726. + -d, --debug don't remove temporary files
  8727. + --recheck update $as_me by reconfiguring in the same conditions
  8728. + --file=FILE[:TEMPLATE]
  8729. + instantiate the configuration file FILE
  8730. + --header=FILE[:TEMPLATE]
  8731. + instantiate the configuration header FILE
  8732. +
  8733. +Configuration files:
  8734. +$config_files
  8735. +
  8736. +Configuration headers:
  8737. +$config_headers
  8738. +
  8739. +Configuration commands:
  8740. +$config_commands
  8741. +
  8742. +Report bugs to <bug-autoconf@gnu.org>."
  8743. +_ACEOF
  8744. +
  8745. +cat >>$CONFIG_STATUS <<_ACEOF
  8746. +ac_cs_version="\\
  8747. +config.status
  8748. +configured by $0, generated by GNU Autoconf 2.57,
  8749. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8750. +
  8751. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  8752. +Free Software Foundation, Inc.
  8753. +This config.status script is free software; the Free Software Foundation
  8754. +gives unlimited permission to copy, distribute and modify it."
  8755. +srcdir=$srcdir
  8756. +INSTALL="$INSTALL"
  8757. +_ACEOF
  8758. +
  8759. +cat >>$CONFIG_STATUS <<\_ACEOF
  8760. +# If no file are specified by the user, then we need to provide default
  8761. +# value. By we need to know if files were specified by the user.
  8762. +ac_need_defaults=:
  8763. +while test $# != 0
  8764. do
  8765. - case "\$ac_option" in
  8766. + case $1 in
  8767. + --*=*)
  8768. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8769. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8770. + ac_shift=:
  8771. + ;;
  8772. + -*)
  8773. + ac_option=$1
  8774. + ac_optarg=$2
  8775. + ac_shift=shift
  8776. + ;;
  8777. + *) # This is not an option, so the user has probably given explicit
  8778. + # arguments.
  8779. + ac_option=$1
  8780. + ac_need_defaults=false;;
  8781. + esac
  8782. +
  8783. + case $ac_option in
  8784. + # Handling of the options.
  8785. +_ACEOF
  8786. +cat >>$CONFIG_STATUS <<\_ACEOF
  8787. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8788. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  8789. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  8790. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  8791. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  8792. - exit 0 ;;
  8793. - -help | --help | --hel | --he | --h)
  8794. - echo "\$ac_cs_usage"; exit 0 ;;
  8795. - *) echo "\$ac_cs_usage"; exit 1 ;;
  8796. + ac_cs_recheck=: ;;
  8797. + --version | --vers* | -V )
  8798. + echo "$ac_cs_version"; exit 0 ;;
  8799. + --he | --h)
  8800. + # Conflict between --help and --header
  8801. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8802. +Try \`$0 --help' for more information." >&5
  8803. +echo "$as_me: error: ambiguous option: $1
  8804. +Try \`$0 --help' for more information." >&2;}
  8805. + { (exit 1); exit 1; }; };;
  8806. + --help | --hel | -h )
  8807. + echo "$ac_cs_usage"; exit 0 ;;
  8808. + --debug | --d* | -d )
  8809. + debug=: ;;
  8810. + --file | --fil | --fi | --f )
  8811. + $ac_shift
  8812. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8813. + ac_need_defaults=false;;
  8814. + --header | --heade | --head | --hea )
  8815. + $ac_shift
  8816. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8817. + ac_need_defaults=false;;
  8818. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8819. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8820. + ac_cs_silent=: ;;
  8821. +
  8822. + # This is an error.
  8823. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8824. +Try \`$0 --help' for more information." >&5
  8825. +echo "$as_me: error: unrecognized option: $1
  8826. +Try \`$0 --help' for more information." >&2;}
  8827. + { (exit 1); exit 1; }; } ;;
  8828. +
  8829. + *) ac_config_targets="$ac_config_targets $1" ;;
  8830. +
  8831. esac
  8832. + shift
  8833. done
  8834. -ac_given_srcdir=$srcdir
  8835. -ac_given_INSTALL="$INSTALL"
  8836. +ac_configure_extra_args=
  8837. -trap 'rm -fr `echo "Makefile
  8838. - shared/Makefile
  8839. - server/Makefile
  8840. - server/drivers/Makefile
  8841. - clients/Makefile
  8842. - clients/lcdproc/Makefile
  8843. - clients/examples/Makefile
  8844. - clients/headlines/Makefile
  8845. - docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  8846. -EOF
  8847. -cat >> $CONFIG_STATUS <<EOF
  8848. -
  8849. -# Protect against being on the right side of a sed subst in config.status.
  8850. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  8851. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  8852. -$ac_vpsub
  8853. -$extrasub
  8854. -s%@SHELL@%$SHELL%g
  8855. -s%@CFLAGS@%$CFLAGS%g
  8856. -s%@CPPFLAGS@%$CPPFLAGS%g
  8857. -s%@CXXFLAGS@%$CXXFLAGS%g
  8858. -s%@FFLAGS@%$FFLAGS%g
  8859. -s%@DEFS@%$DEFS%g
  8860. -s%@LDFLAGS@%$LDFLAGS%g
  8861. -s%@LIBS@%$LIBS%g
  8862. -s%@exec_prefix@%$exec_prefix%g
  8863. -s%@prefix@%$prefix%g
  8864. -s%@program_transform_name@%$program_transform_name%g
  8865. -s%@bindir@%$bindir%g
  8866. -s%@sbindir@%$sbindir%g
  8867. -s%@libexecdir@%$libexecdir%g
  8868. -s%@datadir@%$datadir%g
  8869. -s%@sysconfdir@%$sysconfdir%g
  8870. -s%@sharedstatedir@%$sharedstatedir%g
  8871. -s%@localstatedir@%$localstatedir%g
  8872. -s%@libdir@%$libdir%g
  8873. -s%@includedir@%$includedir%g
  8874. -s%@oldincludedir@%$oldincludedir%g
  8875. -s%@infodir@%$infodir%g
  8876. -s%@mandir@%$mandir%g
  8877. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  8878. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  8879. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  8880. -s%@PACKAGE@%$PACKAGE%g
  8881. -s%@VERSION@%$VERSION%g
  8882. -s%@ACLOCAL@%$ACLOCAL%g
  8883. -s%@AUTOCONF@%$AUTOCONF%g
  8884. -s%@AUTOMAKE@%$AUTOMAKE%g
  8885. -s%@AUTOHEADER@%$AUTOHEADER%g
  8886. -s%@MAKEINFO@%$MAKEINFO%g
  8887. -s%@SET_MAKE@%$SET_MAKE%g
  8888. -s%@host@%$host%g
  8889. -s%@host_alias@%$host_alias%g
  8890. -s%@host_cpu@%$host_cpu%g
  8891. -s%@host_vendor@%$host_vendor%g
  8892. -s%@host_os@%$host_os%g
  8893. -s%@CC@%$CC%g
  8894. -s%@CPP@%$CPP%g
  8895. -s%@RANLIB@%$RANLIB%g
  8896. -s%@LIBCURSES@%$LIBCURSES%g
  8897. -s%@LIBIRMAN@%$LIBIRMAN%g
  8898. -s%@LIBLIRC_CLIENT@%$LIBLIRC_CLIENT%g
  8899. -s%@DRIVERS@%$DRIVERS%g
  8900. +if $ac_cs_silent; then
  8901. + exec 6>/dev/null
  8902. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  8903. +fi
  8904. +
  8905. +_ACEOF
  8906. +cat >>$CONFIG_STATUS <<_ACEOF
  8907. +if \$ac_cs_recheck; then
  8908. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8909. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8910. +fi
  8911. +
  8912. +_ACEOF
  8913. +
  8914. +cat >>$CONFIG_STATUS <<_ACEOF
  8915. +#
  8916. +# INIT-COMMANDS section.
  8917. +#
  8918. +
  8919. +
  8920. +
  8921. +_ACEOF
  8922. +
  8923. +
  8924. +
  8925. +cat >>$CONFIG_STATUS <<\_ACEOF
  8926. +for ac_config_target in $ac_config_targets
  8927. +do
  8928. + case "$ac_config_target" in
  8929. + # Handling of arguments.
  8930. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8931. + "shared/Makefile" ) CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
  8932. + "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  8933. + "server/drivers/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/drivers/Makefile" ;;
  8934. + "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
  8935. + "clients/lcdproc/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/lcdproc/Makefile" ;;
  8936. + "clients/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/examples/Makefile" ;;
  8937. + "clients/headlines/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/headlines/Makefile" ;;
  8938. + "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  8939. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8940. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8941. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8942. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8943. + { (exit 1); exit 1; }; };;
  8944. + esac
  8945. +done
  8946. +
  8947. +# If the user did not use the arguments to specify the items to instantiate,
  8948. +# then the envvar interface is used. Set only those that are not.
  8949. +# We use the long form for the default assignment because of an extremely
  8950. +# bizarre bug on SunOS 4.1.3.
  8951. +if $ac_need_defaults; then
  8952. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8953. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8954. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8955. +fi
  8956. +
  8957. +# Have a temporary directory for convenience. Make it in the build tree
  8958. +# simply because there is no reason to put it here, and in addition,
  8959. +# creating and moving files from /tmp can sometimes cause problems.
  8960. +# Create a temporary directory, and hook for its removal unless debugging.
  8961. +$debug ||
  8962. +{
  8963. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8964. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  8965. +}
  8966. +# Create a (secure) tmp directory for tmp files.
  8967. +
  8968. +{
  8969. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8970. + test -n "$tmp" && test -d "$tmp"
  8971. +} ||
  8972. +{
  8973. + tmp=./confstat$$-$RANDOM
  8974. + (umask 077 && mkdir $tmp)
  8975. +} ||
  8976. +{
  8977. + echo "$me: cannot create a temporary directory in ." >&2
  8978. + { (exit 1); exit 1; }
  8979. +}
  8980. +
  8981. +_ACEOF
  8982. +
  8983. +cat >>$CONFIG_STATUS <<_ACEOF
  8984. +
  8985. +#
  8986. +# CONFIG_FILES section.
  8987. +#
  8988. +
  8989. +# No need to generate the scripts if there are no CONFIG_FILES.
  8990. +# This happens for instance when ./config.status config.h
  8991. +if test -n "\$CONFIG_FILES"; then
  8992. + # Protect against being on the right side of a sed subst in config.status.
  8993. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8994. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8995. +s,@SHELL@,$SHELL,;t t
  8996. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8997. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8998. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8999. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9000. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9001. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9002. +s,@exec_prefix@,$exec_prefix,;t t
  9003. +s,@prefix@,$prefix,;t t
  9004. +s,@program_transform_name@,$program_transform_name,;t t
  9005. +s,@bindir@,$bindir,;t t
  9006. +s,@sbindir@,$sbindir,;t t
  9007. +s,@libexecdir@,$libexecdir,;t t
  9008. +s,@datadir@,$datadir,;t t
  9009. +s,@sysconfdir@,$sysconfdir,;t t
  9010. +s,@sharedstatedir@,$sharedstatedir,;t t
  9011. +s,@localstatedir@,$localstatedir,;t t
  9012. +s,@libdir@,$libdir,;t t
  9013. +s,@includedir@,$includedir,;t t
  9014. +s,@oldincludedir@,$oldincludedir,;t t
  9015. +s,@infodir@,$infodir,;t t
  9016. +s,@mandir@,$mandir,;t t
  9017. +s,@build_alias@,$build_alias,;t t
  9018. +s,@host_alias@,$host_alias,;t t
  9019. +s,@target_alias@,$target_alias,;t t
  9020. +s,@DEFS@,$DEFS,;t t
  9021. +s,@ECHO_C@,$ECHO_C,;t t
  9022. +s,@ECHO_N@,$ECHO_N,;t t
  9023. +s,@ECHO_T@,$ECHO_T,;t t
  9024. +s,@LIBS@,$LIBS,;t t
  9025. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9026. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9027. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9028. +s,@PACKAGE@,$PACKAGE,;t t
  9029. +s,@VERSION@,$VERSION,;t t
  9030. +s,@ACLOCAL@,$ACLOCAL,;t t
  9031. +s,@AUTOCONF@,$AUTOCONF,;t t
  9032. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  9033. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  9034. +s,@MAKEINFO@,$MAKEINFO,;t t
  9035. +s,@SET_MAKE@,$SET_MAKE,;t t
  9036. +s,@build@,$build,;t t
  9037. +s,@build_cpu@,$build_cpu,;t t
  9038. +s,@build_vendor@,$build_vendor,;t t
  9039. +s,@build_os@,$build_os,;t t
  9040. +s,@host@,$host,;t t
  9041. +s,@host_cpu@,$host_cpu,;t t
  9042. +s,@host_vendor@,$host_vendor,;t t
  9043. +s,@host_os@,$host_os,;t t
  9044. +s,@CC@,$CC,;t t
  9045. +s,@CFLAGS@,$CFLAGS,;t t
  9046. +s,@LDFLAGS@,$LDFLAGS,;t t
  9047. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  9048. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  9049. +s,@EXEEXT@,$EXEEXT,;t t
  9050. +s,@OBJEXT@,$OBJEXT,;t t
  9051. +s,@CPP@,$CPP,;t t
  9052. +s,@RANLIB@,$RANLIB,;t t
  9053. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9054. +s,@EGREP@,$EGREP,;t t
  9055. +s,@LIBCURSES@,$LIBCURSES,;t t
  9056. +s,@LIBIRMAN@,$LIBIRMAN,;t t
  9057. +s,@LIBLIRC_CLIENT@,$LIBLIRC_CLIENT,;t t
  9058. +s,@DRIVERS@,$DRIVERS,;t t
  9059. +s,@LIBOBJS@,$LIBOBJS,;t t
  9060. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9061. CEOF
  9062. -EOF
  9063. -cat >> $CONFIG_STATUS <<\EOF
  9064. +_ACEOF
  9065. -# Split the substitutions into bite-sized pieces for seds with
  9066. -# small command number limits, like on Digital OSF/1 and HP-UX.
  9067. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  9068. -ac_file=1 # Number of current file.
  9069. -ac_beg=1 # First line for current file.
  9070. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  9071. -ac_more_lines=:
  9072. -ac_sed_cmds=""
  9073. -while $ac_more_lines; do
  9074. - if test $ac_beg -gt 1; then
  9075. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  9076. - else
  9077. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  9078. - fi
  9079. - if test ! -s conftest.s$ac_file; then
  9080. - ac_more_lines=false
  9081. - rm -f conftest.s$ac_file
  9082. - else
  9083. - if test -z "$ac_sed_cmds"; then
  9084. - ac_sed_cmds="sed -f conftest.s$ac_file"
  9085. + cat >>$CONFIG_STATUS <<\_ACEOF
  9086. + # Split the substitutions into bite-sized pieces for seds with
  9087. + # small command number limits, like on Digital OSF/1 and HP-UX.
  9088. + ac_max_sed_lines=48
  9089. + ac_sed_frag=1 # Number of current file.
  9090. + ac_beg=1 # First line for current file.
  9091. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  9092. + ac_more_lines=:
  9093. + ac_sed_cmds=
  9094. + while $ac_more_lines; do
  9095. + if test $ac_beg -gt 1; then
  9096. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9097. + else
  9098. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9099. + fi
  9100. + if test ! -s $tmp/subs.frag; then
  9101. + ac_more_lines=false
  9102. else
  9103. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  9104. + # The purpose of the label and of the branching condition is to
  9105. + # speed up the sed processing (if there are no `@' at all, there
  9106. + # is no need to browse any of the substitutions).
  9107. + # These are the two extra sed commands mentioned above.
  9108. + (echo ':t
  9109. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9110. + if test -z "$ac_sed_cmds"; then
  9111. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9112. + else
  9113. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9114. + fi
  9115. + ac_sed_frag=`expr $ac_sed_frag + 1`
  9116. + ac_beg=$ac_end
  9117. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  9118. fi
  9119. - ac_file=`expr $ac_file + 1`
  9120. - ac_beg=$ac_end
  9121. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  9122. - fi
  9123. -done
  9124. -if test -z "$ac_sed_cmds"; then
  9125. - ac_sed_cmds=cat
  9126. -fi
  9127. -EOF
  9128. -
  9129. -cat >> $CONFIG_STATUS <<EOF
  9130. -
  9131. -CONFIG_FILES=\${CONFIG_FILES-"Makefile
  9132. - shared/Makefile
  9133. - server/Makefile
  9134. - server/drivers/Makefile
  9135. - clients/Makefile
  9136. - clients/lcdproc/Makefile
  9137. - clients/examples/Makefile
  9138. - clients/headlines/Makefile
  9139. - docs/Makefile"}
  9140. -EOF
  9141. -cat >> $CONFIG_STATUS <<\EOF
  9142. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  9143. + done
  9144. + if test -z "$ac_sed_cmds"; then
  9145. + ac_sed_cmds=cat
  9146. + fi
  9147. +fi # test -n "$CONFIG_FILES"
  9148. +
  9149. +_ACEOF
  9150. +cat >>$CONFIG_STATUS <<\_ACEOF
  9151. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9152. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9153. - case "$ac_file" in
  9154. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9155. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9156. - *) ac_file_in="${ac_file}.in" ;;
  9157. + case $ac_file in
  9158. + - | *:- | *:-:* ) # input from stdin
  9159. + cat >$tmp/stdin
  9160. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9161. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9162. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9163. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9164. + * ) ac_file_in=$ac_file.in ;;
  9165. esac
  9166. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  9167. -
  9168. - # Remove last slash and all that follows it. Not all systems have dirname.
  9169. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9170. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9171. - # The file is in a subdirectory.
  9172. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9173. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  9174. - # A "../" for each directory in $ac_dir_suffix.
  9175. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  9176. - else
  9177. - ac_dir_suffix= ac_dots=
  9178. - fi
  9179. -
  9180. - case "$ac_given_srcdir" in
  9181. - .) srcdir=.
  9182. - if test -z "$ac_dots"; then top_srcdir=.
  9183. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  9184. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  9185. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9186. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9187. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9188. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9189. + X"$ac_file" : 'X\(//\)$' \| \
  9190. + X"$ac_file" : 'X\(/\)' \| \
  9191. + . : '\(.\)' 2>/dev/null ||
  9192. +echo X"$ac_file" |
  9193. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9194. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9195. + /^X\(\/\/\)$/{ s//\1/; q; }
  9196. + /^X\(\/\).*/{ s//\1/; q; }
  9197. + s/.*/./; q'`
  9198. + { if $as_mkdir_p; then
  9199. + mkdir -p "$ac_dir"
  9200. + else
  9201. + as_dir="$ac_dir"
  9202. + as_dirs=
  9203. + while test ! -d "$as_dir"; do
  9204. + as_dirs="$as_dir $as_dirs"
  9205. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9206. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9207. + X"$as_dir" : 'X\(//\)[^/]' \| \
  9208. + X"$as_dir" : 'X\(//\)$' \| \
  9209. + X"$as_dir" : 'X\(/\)' \| \
  9210. + . : '\(.\)' 2>/dev/null ||
  9211. +echo X"$as_dir" |
  9212. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9213. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9214. + /^X\(\/\/\)$/{ s//\1/; q; }
  9215. + /^X\(\/\).*/{ s//\1/; q; }
  9216. + s/.*/./; q'`
  9217. + done
  9218. + test ! -n "$as_dirs" || mkdir $as_dirs
  9219. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9220. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9221. + { (exit 1); exit 1; }; }; }
  9222. +
  9223. + ac_builddir=.
  9224. +
  9225. +if test "$ac_dir" != .; then
  9226. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9227. + # A "../" for each directory in $ac_dir_suffix.
  9228. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9229. +else
  9230. + ac_dir_suffix= ac_top_builddir=
  9231. +fi
  9232. +
  9233. +case $srcdir in
  9234. + .) # No --srcdir option. We are building in place.
  9235. + ac_srcdir=.
  9236. + if test -z "$ac_top_builddir"; then
  9237. + ac_top_srcdir=.
  9238. + else
  9239. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9240. + fi ;;
  9241. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9242. + ac_srcdir=$srcdir$ac_dir_suffix;
  9243. + ac_top_srcdir=$srcdir ;;
  9244. *) # Relative path.
  9245. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  9246. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  9247. - esac
  9248. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9249. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9250. +esac
  9251. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9252. +# absolute.
  9253. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9254. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9255. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9256. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9257. - case "$ac_given_INSTALL" in
  9258. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  9259. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  9260. - esac
  9261. - echo creating "$ac_file"
  9262. - rm -f "$ac_file"
  9263. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  9264. - case "$ac_file" in
  9265. - *Makefile*) ac_comsub="1i\\
  9266. -# $configure_input" ;;
  9267. - *) ac_comsub= ;;
  9268. + case $INSTALL in
  9269. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9270. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9271. esac
  9272. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9273. - sed -e "$ac_comsub
  9274. -s%@configure_input@%$configure_input%g
  9275. -s%@srcdir@%$srcdir%g
  9276. -s%@top_srcdir@%$top_srcdir%g
  9277. -s%@INSTALL@%$INSTALL%g
  9278. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  9279. -fi; done
  9280. -rm -f conftest.s*
  9281. + if test x"$ac_file" != x-; then
  9282. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  9283. +echo "$as_me: creating $ac_file" >&6;}
  9284. + rm -f "$ac_file"
  9285. + fi
  9286. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9287. + # use $as_me), people would be surprised to read:
  9288. + # /* config.h. Generated by config.status. */
  9289. + if test x"$ac_file" = x-; then
  9290. + configure_input=
  9291. + else
  9292. + configure_input="$ac_file. "
  9293. + fi
  9294. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  9295. + sed 's,.*/,,'` by configure."
  9296. +
  9297. + # First look for the input files in the build tree, otherwise in the
  9298. + # src tree.
  9299. + ac_file_inputs=`IFS=:
  9300. + for f in $ac_file_in; do
  9301. + case $f in
  9302. + -) echo $tmp/stdin ;;
  9303. + [\\/$]*)
  9304. + # Absolute (can't be DOS-style, as IFS=:)
  9305. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9306. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9307. + { (exit 1); exit 1; }; }
  9308. + echo $f;;
  9309. + *) # Relative
  9310. + if test -f "$f"; then
  9311. + # Build tree
  9312. + echo $f
  9313. + elif test -f "$srcdir/$f"; then
  9314. + # Source tree
  9315. + echo $srcdir/$f
  9316. + else
  9317. + # /dev/null tree
  9318. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9319. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9320. + { (exit 1); exit 1; }; }
  9321. + fi;;
  9322. + esac
  9323. + done` || { (exit 1); exit 1; }
  9324. +_ACEOF
  9325. +cat >>$CONFIG_STATUS <<_ACEOF
  9326. + sed "$ac_vpsub
  9327. +$extrasub
  9328. +_ACEOF
  9329. +cat >>$CONFIG_STATUS <<\_ACEOF
  9330. +:t
  9331. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9332. +s,@configure_input@,$configure_input,;t t
  9333. +s,@srcdir@,$ac_srcdir,;t t
  9334. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9335. +s,@top_srcdir@,$ac_top_srcdir,;t t
  9336. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9337. +s,@builddir@,$ac_builddir,;t t
  9338. +s,@abs_builddir@,$ac_abs_builddir,;t t
  9339. +s,@top_builddir@,$ac_top_builddir,;t t
  9340. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9341. +s,@INSTALL@,$ac_INSTALL,;t t
  9342. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9343. + rm -f $tmp/stdin
  9344. + if test x"$ac_file" != x-; then
  9345. + mv $tmp/out $ac_file
  9346. + else
  9347. + cat $tmp/out
  9348. + rm -f $tmp/out
  9349. + fi
  9350. +
  9351. +done
  9352. +_ACEOF
  9353. +cat >>$CONFIG_STATUS <<\_ACEOF
  9354. +
  9355. +#
  9356. +# CONFIG_HEADER section.
  9357. +#
  9358. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9359. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9360. #
  9361. # ac_d sets the value in "#define NAME VALUE" lines.
  9362. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9363. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  9364. -ac_dC='\3'
  9365. -ac_dD='%g'
  9366. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  9367. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9368. -ac_uB='\([ ]\)%\1#\2define\3'
  9369. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9370. +ac_dB='[ ].*$,\1#\2'
  9371. +ac_dC=' '
  9372. +ac_dD=',;t'
  9373. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9374. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9375. +ac_uB='$,\1#\2define\3'
  9376. ac_uC=' '
  9377. -ac_uD='\4%g'
  9378. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9379. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9380. -ac_eB='$%\1#\2define\3'
  9381. -ac_eC=' '
  9382. -ac_eD='%g'
  9383. -
  9384. -if test "${CONFIG_HEADERS+set}" != set; then
  9385. -EOF
  9386. -cat >> $CONFIG_STATUS <<EOF
  9387. - CONFIG_HEADERS="config.h"
  9388. -EOF
  9389. -cat >> $CONFIG_STATUS <<\EOF
  9390. -fi
  9391. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  9392. +ac_uD=',;t'
  9393. +
  9394. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9395. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9396. - case "$ac_file" in
  9397. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  9398. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  9399. - *) ac_file_in="${ac_file}.in" ;;
  9400. + case $ac_file in
  9401. + - | *:- | *:-:* ) # input from stdin
  9402. + cat >$tmp/stdin
  9403. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9404. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9405. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9406. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9407. + * ) ac_file_in=$ac_file.in ;;
  9408. esac
  9409. - echo creating $ac_file
  9410. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9411. +echo "$as_me: creating $ac_file" >&6;}
  9412. - rm -f conftest.frag conftest.in conftest.out
  9413. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  9414. - cat $ac_file_inputs > conftest.in
  9415. -
  9416. -EOF
  9417. -
  9418. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  9419. -# the proper values into config.h.in to produce config.h. And first:
  9420. -# Protect against being on the right side of a sed subst in config.status.
  9421. -# Protect against being in an unquoted here document in config.status.
  9422. -rm -f conftest.vals
  9423. -cat > conftest.hdr <<\EOF
  9424. -s/[\\&%]/\\&/g
  9425. -s%[\\$`]%\\&%g
  9426. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  9427. -s%ac_d%ac_u%gp
  9428. -s%ac_u%ac_e%gp
  9429. -EOF
  9430. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  9431. -rm -f conftest.hdr
  9432. + # First look for the input files in the build tree, otherwise in the
  9433. + # src tree.
  9434. + ac_file_inputs=`IFS=:
  9435. + for f in $ac_file_in; do
  9436. + case $f in
  9437. + -) echo $tmp/stdin ;;
  9438. + [\\/$]*)
  9439. + # Absolute (can't be DOS-style, as IFS=:)
  9440. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9441. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9442. + { (exit 1); exit 1; }; }
  9443. + echo $f;;
  9444. + *) # Relative
  9445. + if test -f "$f"; then
  9446. + # Build tree
  9447. + echo $f
  9448. + elif test -f "$srcdir/$f"; then
  9449. + # Source tree
  9450. + echo $srcdir/$f
  9451. + else
  9452. + # /dev/null tree
  9453. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9454. +echo "$as_me: error: cannot find input file: $f" >&2;}
  9455. + { (exit 1); exit 1; }; }
  9456. + fi;;
  9457. + esac
  9458. + done` || { (exit 1); exit 1; }
  9459. + # Remove the trailing spaces.
  9460. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9461. +
  9462. +_ACEOF
  9463. +
  9464. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  9465. +# `conftest.undefs', that substitutes the proper values into
  9466. +# config.h.in to produce config.h. The first handles `#define'
  9467. +# templates, and the second `#undef' templates.
  9468. +# And first: Protect against being on the right side of a sed subst in
  9469. +# config.status. Protect against being in an unquoted here document
  9470. +# in config.status.
  9471. +rm -f conftest.defines conftest.undefs
  9472. +# Using a here document instead of a string reduces the quoting nightmare.
  9473. +# Putting comments in sed scripts is not portable.
  9474. +#
  9475. +# `end' is used to avoid that the second main sed command (meant for
  9476. +# 0-ary CPP macros) applies to n-ary macro definitions.
  9477. +# See the Autoconf documentation for `clear'.
  9478. +cat >confdef2sed.sed <<\_ACEOF
  9479. +s/[\\&,]/\\&/g
  9480. +s,[\\$`],\\&,g
  9481. +t clear
  9482. +: clear
  9483. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9484. +t end
  9485. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9486. +: end
  9487. +_ACEOF
  9488. +# If some macros were called several times there might be several times
  9489. +# the same #defines, which is useless. Nevertheless, we may not want to
  9490. +# sort them, since we want the *last* AC-DEFINE to be honored.
  9491. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9492. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9493. +rm -f confdef2sed.sed
  9494. # This sed command replaces #undef with comments. This is necessary, for
  9495. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9496. # on some systems where configure will not decide to define it.
  9497. -cat >> conftest.vals <<\EOF
  9498. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  9499. -EOF
  9500. -
  9501. -# Break up conftest.vals because some shells have a limit on
  9502. -# the size of here documents, and old seds have small limits too.
  9503. -
  9504. +cat >>conftest.undefs <<\_ACEOF
  9505. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9506. +_ACEOF
  9507. +
  9508. +# Break up conftest.defines because some shells have a limit on the size
  9509. +# of here documents, and old seds have small limits too (100 cmds).
  9510. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9511. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9512. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9513. +echo ' :' >>$CONFIG_STATUS
  9514. +rm -f conftest.tail
  9515. +while grep . conftest.defines >/dev/null
  9516. +do
  9517. + # Write a limited-size here document to $tmp/defines.sed.
  9518. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9519. + # Speed up: don't consider the non `#define' lines.
  9520. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9521. + # Work around the forget-to-reset-the-flag bug.
  9522. + echo 't clr' >>$CONFIG_STATUS
  9523. + echo ': clr' >>$CONFIG_STATUS
  9524. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9525. + echo 'CEOF
  9526. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9527. + rm -f $tmp/in
  9528. + mv $tmp/out $tmp/in
  9529. +' >>$CONFIG_STATUS
  9530. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9531. + rm -f conftest.defines
  9532. + mv conftest.tail conftest.defines
  9533. +done
  9534. +rm -f conftest.defines
  9535. +echo ' fi # grep' >>$CONFIG_STATUS
  9536. +echo >>$CONFIG_STATUS
  9537. +
  9538. +# Break up conftest.undefs because some shells have a limit on the size
  9539. +# of here documents, and old seds have small limits too (100 cmds).
  9540. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9541. rm -f conftest.tail
  9542. -while :
  9543. +while grep . conftest.undefs >/dev/null
  9544. do
  9545. - ac_lines=`grep -c . conftest.vals`
  9546. - # grep -c gives empty output for an empty file on some AIX systems.
  9547. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  9548. - # Write a limited-size here document to conftest.frag.
  9549. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  9550. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  9551. + # Write a limited-size here document to $tmp/undefs.sed.
  9552. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9553. + # Speed up: don't consider the non `#undef'
  9554. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9555. + # Work around the forget-to-reset-the-flag bug.
  9556. + echo 't clr' >>$CONFIG_STATUS
  9557. + echo ': clr' >>$CONFIG_STATUS
  9558. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9559. echo 'CEOF
  9560. - sed -f conftest.frag conftest.in > conftest.out
  9561. - rm -f conftest.in
  9562. - mv conftest.out conftest.in
  9563. -' >> $CONFIG_STATUS
  9564. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  9565. - rm -f conftest.vals
  9566. - mv conftest.tail conftest.vals
  9567. -done
  9568. -rm -f conftest.vals
  9569. -
  9570. -cat >> $CONFIG_STATUS <<\EOF
  9571. - rm -f conftest.frag conftest.h
  9572. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  9573. - cat conftest.in >> conftest.h
  9574. - rm -f conftest.in
  9575. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  9576. - echo "$ac_file is unchanged"
  9577. - rm -f conftest.h
  9578. - else
  9579. - # Remove last slash and all that follows it. Not all systems have dirname.
  9580. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  9581. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  9582. - # The file is in a subdirectory.
  9583. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  9584. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9585. + rm -f $tmp/in
  9586. + mv $tmp/out $tmp/in
  9587. +' >>$CONFIG_STATUS
  9588. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9589. + rm -f conftest.undefs
  9590. + mv conftest.tail conftest.undefs
  9591. +done
  9592. +rm -f conftest.undefs
  9593. +
  9594. +cat >>$CONFIG_STATUS <<\_ACEOF
  9595. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  9596. + # use $as_me), people would be surprised to read:
  9597. + # /* config.h. Generated by config.status. */
  9598. + if test x"$ac_file" = x-; then
  9599. + echo "/* Generated by configure. */" >$tmp/config.h
  9600. + else
  9601. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9602. + fi
  9603. + cat $tmp/in >>$tmp/config.h
  9604. + rm -f $tmp/in
  9605. + if test x"$ac_file" != x-; then
  9606. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9607. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9608. +echo "$as_me: $ac_file is unchanged" >&6;}
  9609. + else
  9610. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9611. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9612. + X"$ac_file" : 'X\(//\)[^/]' \| \
  9613. + X"$ac_file" : 'X\(//\)$' \| \
  9614. + X"$ac_file" : 'X\(/\)' \| \
  9615. + . : '\(.\)' 2>/dev/null ||
  9616. +echo X"$ac_file" |
  9617. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9618. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9619. + /^X\(\/\/\)$/{ s//\1/; q; }
  9620. + /^X\(\/\).*/{ s//\1/; q; }
  9621. + s/.*/./; q'`
  9622. + { if $as_mkdir_p; then
  9623. + mkdir -p "$ac_dir"
  9624. + else
  9625. + as_dir="$ac_dir"
  9626. + as_dirs=
  9627. + while test ! -d "$as_dir"; do
  9628. + as_dirs="$as_dir $as_dirs"
  9629. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9630. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9631. + X"$as_dir" : 'X\(//\)[^/]' \| \
  9632. + X"$as_dir" : 'X\(//\)$' \| \
  9633. + X"$as_dir" : 'X\(/\)' \| \
  9634. + . : '\(.\)' 2>/dev/null ||
  9635. +echo X"$as_dir" |
  9636. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9637. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9638. + /^X\(\/\/\)$/{ s//\1/; q; }
  9639. + /^X\(\/\).*/{ s//\1/; q; }
  9640. + s/.*/./; q'`
  9641. + done
  9642. + test ! -n "$as_dirs" || mkdir $as_dirs
  9643. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9644. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9645. + { (exit 1); exit 1; }; }; }
  9646. +
  9647. + rm -f $ac_file
  9648. + mv $tmp/config.h $ac_file
  9649. fi
  9650. - rm -f $ac_file
  9651. - mv conftest.h $ac_file
  9652. + else
  9653. + cat $tmp/config.h
  9654. + rm -f $tmp/config.h
  9655. fi
  9656. -fi; done
  9657. +done
  9658. +_ACEOF
  9659. +cat >>$CONFIG_STATUS <<\_ACEOF
  9660. +
  9661. +#
  9662. +# CONFIG_COMMANDS section.
  9663. +#
  9664. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9665. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9666. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9667. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9668. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9669. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  9670. + X"$ac_dest" : 'X\(//\)$' \| \
  9671. + X"$ac_dest" : 'X\(/\)' \| \
  9672. + . : '\(.\)' 2>/dev/null ||
  9673. +echo X"$ac_dest" |
  9674. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9675. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9676. + /^X\(\/\/\)$/{ s//\1/; q; }
  9677. + /^X\(\/\).*/{ s//\1/; q; }
  9678. + s/.*/./; q'`
  9679. + ac_builddir=.
  9680. +
  9681. +if test "$ac_dir" != .; then
  9682. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9683. + # A "../" for each directory in $ac_dir_suffix.
  9684. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9685. +else
  9686. + ac_dir_suffix= ac_top_builddir=
  9687. +fi
  9688. +
  9689. +case $srcdir in
  9690. + .) # No --srcdir option. We are building in place.
  9691. + ac_srcdir=.
  9692. + if test -z "$ac_top_builddir"; then
  9693. + ac_top_srcdir=.
  9694. + else
  9695. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9696. + fi ;;
  9697. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9698. + ac_srcdir=$srcdir$ac_dir_suffix;
  9699. + ac_top_srcdir=$srcdir ;;
  9700. + *) # Relative path.
  9701. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9702. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9703. +esac
  9704. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9705. +# absolute.
  9706. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9707. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9708. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9709. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9710. -EOF
  9711. -cat >> $CONFIG_STATUS <<EOF
  9712. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9713. +echo "$as_me: executing $ac_dest commands" >&6;}
  9714. + case $ac_dest in
  9715. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  9716. + esac
  9717. +done
  9718. +_ACEOF
  9719. -EOF
  9720. -cat >> $CONFIG_STATUS <<\EOF
  9721. -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  9722. +cat >>$CONFIG_STATUS <<\_ACEOF
  9723. -exit 0
  9724. -EOF
  9725. +{ (exit 0); exit 0; }
  9726. +_ACEOF
  9727. chmod +x $CONFIG_STATUS
  9728. -rm -fr confdefs* $ac_clean_files
  9729. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  9730. +ac_clean_files=$ac_clean_files_save
  9731. +
  9732. +
  9733. +# configure is writing to config.log, and then calls config.status.
  9734. +# config.status does its own redirection, appending to config.log.
  9735. +# Unfortunately, on DOS this fails, as config.log is still kept open
  9736. +# by configure, so config.status won't be able to write to it; its
  9737. +# output is simply discarded. So we exec the FD to /dev/null,
  9738. +# effectively closing config.log, so it can be properly (re)opened and
  9739. +# appended to by config.status. When coming back to configure, we
  9740. +# need to make the FD available again.
  9741. +if test "$no_create" != yes; then
  9742. + ac_cs_success=:
  9743. + ac_config_status_args=
  9744. + test "$silent" = yes &&
  9745. + ac_config_status_args="$ac_config_status_args --quiet"
  9746. + exec 5>/dev/null
  9747. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9748. + exec 5>>config.log
  9749. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9750. + # would make configure fail if this is the last instruction.
  9751. + $ac_cs_success || { (exit 1); exit 1; }
  9752. +fi