home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gdbm-1.7.3-diffs.gz / gdbm-1.7.3-diffs
Text File  |  1996-10-13  |  128KB  |  4,047 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/gdbm/INSTALL amiga/fsf/gdbm/INSTALL
  12. --- baseline/fsf/gdbm/INSTALL    Fri Oct 29 06:13:35 1993
  13. +++ amiga/fsf/gdbm/INSTALL    Sat Sep 28 00:00:00 1996
  14. @@ -66,8 +66,8 @@ In that case, run `configure' with the o
  15.  DIR is the directory that contains the source code.
  16.  
  17.  By default, `make install' will install the package's files in
  18. -/usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify an
  19. -installation prefix other than /usr/local by giving `configure' the option
  20. +/gnu/bin, /gnu/lib, /gnu/man, etc.  You can specify an
  21. +installation prefix other than /gnu by giving `configure' the option
  22.  `--prefix=PATH'.  Alternately, you can do so by consistently giving a value
  23.  for the `prefix' variable when you run `make', e.g.,
  24.      make prefix=/usr/gnu
  25. diff -rup --new-file baseline/fsf/gdbm/Makefile.in amiga/fsf/gdbm/Makefile.in
  26. --- baseline/fsf/gdbm/Makefile.in    Sun May 15 02:28:49 1994
  27. +++ amiga/fsf/gdbm/Makefile.in    Sat Sep 28 00:00:00 1996
  28. @@ -11,19 +11,20 @@ INSTALL_DATA = @INSTALL_DATA@
  29.  
  30.  MAKEINFO = makeinfo
  31.  TEXI2DVI = texi2dvi
  32. +DVIPS = dvips
  33.  RANLIB = @RANLIB@
  34.  
  35. -DEFS =
  36. +DEFS = @DEFS@
  37.  
  38.  # Where the system [n]dbm routines are...
  39.  LIBS = @LIBS@ -lc
  40.  
  41.  # SunOS users might wish to add '-fpcc-struct-return' to CFLAGS. see INSTALL.
  42. -CFLAGS = -O
  43. -LDFLAGS =
  44. +CFLAGS = @CFLAGS@
  45. +LDFLAGS = @LDFLAGS@
  46.  
  47.  # Common prefix for installation directories
  48. -prefix = /usr/local
  49. +prefix = @prefix@
  50.  exec_prefix = $(prefix)
  51.  binprefix = $(exec_prefix)
  52.  manprefix = $(prefix)
  53. @@ -33,7 +34,10 @@ libdir = $(exec_prefix)/lib
  54.  # The include directory for gdbm.h and dbm.h.
  55.  includedir = $(prefix)/include
  56.  # Info and man directories.
  57. -infodir = $(prefix)/info
  58. +infodir = @infodir@
  59. +guidedir = @guidedir@
  60. +dvidir = @dvidir@
  61. +psdir = @psdir@
  62.  man3dir = $(prefix)/man/man3
  63.  manext = 3
  64.  
  65. @@ -44,7 +48,7 @@ manext = 3
  66.  
  67.  SHELL = /bin/sh
  68.  
  69. -PROGS = libgdbm.a testgdbm testdbm testndbm tndbm tdbm conv2gdbm
  70. +PROGS = libgdbm.a testgdbm testdbm testndbm # tndbm tdbm conv2gdbm
  71.  
  72.  DBM_CF = dbminit.c delete.c fetch.c store.c seq.c close.c
  73.  
  74. @@ -72,11 +76,23 @@ GDBM_OF = gdbmopen.o gdbmdelete.o gdbmfe
  75.  TEX_F = gdbm.aux gdbm.cp gdbm.dvi gdbm.fn gdbm.ky gdbm.log gdbm.pg \
  76.      gdbm.toc gdbm.tp gdbm.vr
  77.  
  78. -TEXI_F = gdbm.info
  79. +TEXI_F = gdbm.info gdbm.dvi gdbm.guide gdbm.ps
  80.       
  81.  SRCS = $(DBM_CF) $(NDBM_CF) $(GDBM_CF) $(TEST_CF)
  82.  
  83. -OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF) @ALLOCA@
  84. +# ADE hack.  Disable inclusion of the dbm and ndbm compatibility functions
  85. +# since the standard ndbm.h file comes from ixemul, which has dbm/ndbm
  86. +# functions.  We don't want to overwrite that file with the one from gdbm,
  87. +# and we must not try to use the compatibility functions without including
  88. +# the correct ndbm.h, since some functions like dbm_error are handled
  89. +# differently (#defined away in the gdbm ndbm.h file).  Longterm the
  90. +# way this should be handled is configure should check to see if the
  91. +# system already supplies dbm or ndbm functions, and if so, arrange to
  92. +# substitute null for @DBM_OF@, @NDBM_OF@, and @install-compat@.
  93. +# On systems without dbm or ndbm support, the compatibility functions
  94. +# should be put into libgdbm.a and dbm.h/ndbm.h should be installed.
  95. +#OBJS = $(DBM_OF) $(NDBM_OF) $(GDBM_OF) @ALLOCA@
  96. +OBJS = $(GDBM_OF) @ALLOCA@ # @DBM_OF@ @NDBM_OF@ 
  97.  
  98.  HDRS = gdbmdefs.h extern.h gdbmerrno.h systems.h dbm.h ndbm.h gdbmconst.h \
  99.      proto.h
  100. @@ -88,19 +104,30 @@ MSCFILES = COPYING ChangeLog Makefile.in
  101.  
  102.  DISTFILES = $(SRCS) $(HDRS) $(MSCFILES)
  103.  
  104. -all: libgdbm.a
  105. +all: libgdbm.a gdbm.h gdbm.info gdbm.guide gdbm.dvi gdbm.ps
  106.  
  107.  progs: $(PROGS)
  108.  
  109. -install: libgdbm.a gdbm.h gdbm.info
  110. +install: all # @install-compat@
  111. +    -if [ -d $(libdir) ] ; then true ; else mkdir -p $(libdir) ; fi
  112.      $(INSTALL_DATA) libgdbm.a $(libdir)/libgdbm.a
  113. +    -if [ -d $(includedir) ] ; then true ; else mkdir -p $(includedir) ; fi
  114.      $(INSTALL_DATA) gdbm.h $(includedir)/gdbm.h
  115. +    -if [ -d $(man3dir) ] ; then true ; else mkdir -p $(man3dir) ; fi
  116.      $(INSTALL_DATA) $(srcdir)/gdbm.3 $(man3dir)/gdbm.3
  117. -    $(INSTALL_DATA) $(srcdir)/gdbm.info $(infodir)/gdbm.info
  118. +    -if [ -d $(infodir) ] ; then true ; else mkdir -p $(infodir) ; fi
  119. +    $(INSTALL_DATA) gdbm.info $(infodir)/gdbm.info
  120. +    -if [ -d $(guidedir) ] ; then true ; else mkdir -p $(guidedir) ; fi
  121. +    $(INSTALL_DATA) gdbm.guide $(guidedir)/gdbm.guide
  122. +    -if [ -d $(dvidir) ] ; then true ; else mkdir -p $(dvidir) ; fi
  123. +    $(INSTALL_DATA) gdbm.dvi $(dvidir)/gdbm.dvi
  124. +    -if [ -d $(psdir) ] ; then true ; else mkdir -p $(psdir) ; fi
  125. +    $(INSTALL_DATA) gdbm.ps $(psdir)/gdbm.ps
  126.  
  127.  install-compat:
  128. +    -if [ -d $(includedir) ] ; then true ; else mkdir -p $(includedir) ; fi
  129.      $(INSTALL_DATA) $(srcdir)/dbm.h $(includedir)/dbm.h
  130. -    $(INSTALL_DATA) $(srcdir/ndbm.h $(includedir)/ndbm.h
  131. +    $(INSTALL_DATA) $(srcdir)/ndbm.h $(includedir)/ndbm.h
  132.  
  133.  libgdbm.a: $(OBJS) gdbm.h
  134.      rm -f libgdbm.a
  135. @@ -149,13 +176,22 @@ TAGS: $(SRCS)
  136.  
  137.  info: gdbm.info
  138.  
  139. -gdbm.info:
  140. -    $(MAKEINFO) $(srcdir)/gdbm.texinfo
  141. +gdbm.info: gdbm.texinfo
  142. +    $(MAKEINFO) -I$(srcdir) $? --output=$@
  143. +
  144. +guide: gdbm.guide
  145. +
  146. +gdbm.guide: gdbm.texinfo
  147. +    $(MAKEINFO) --amiga-39 $? -o $@
  148.  
  149.  dvi: gdbm.dvi
  150.  
  151. -gdbm.dvi:
  152. -    $(TEXI2DVI) $(srcdir)/gdbm.texinfo
  153. +gdbm.dvi: gdbm.texinfo
  154. +    $(TEXI2DVI) $?
  155. +
  156. +ps: gdbm.ps
  157. +gdbm.ps: gdbm.dvi
  158. +    $(DVIPS) -o $@ $?
  159.  
  160.  clean:
  161.      rm -f $(PROGS) $(TEX_F) *.o core junk*
  162. diff -rup --new-file baseline/fsf/gdbm/Product-Info amiga/fsf/gdbm/Product-Info
  163. --- baseline/fsf/gdbm/Product-Info    Wed Dec 31 17:00:00 1969
  164. +++ amiga/fsf/gdbm/Product-Info    Sat Sep 28 00:00:00 1996
  165. @@ -0,0 +1,21 @@
  166. +.name
  167. +gdbm
  168. +.fullname
  169. +GNU database manager library
  170. +.type
  171. +Library
  172. +.short
  173. +GNU database manager library
  174. +.description
  175. +GNU dbm is a library of routines that manages data files that contain
  176. +key/data pairs.  The access provided is that of storing, retrieval,
  177. +and deletion by key and a non-sorted traversal of all keys.  A process
  178. +is allowed to use multiple data files at the same time.
  179. +.version
  180. +1.7.3
  181. +.author
  182. +Philip A. Nelson
  183. +.distribution
  184. +GNU Public License
  185. +.described-by
  186. +Fred Fish (fnf@amigalib.com)
  187. diff -rup --new-file baseline/fsf/gdbm/configure amiga/fsf/gdbm/configure
  188. --- baseline/fsf/gdbm/configure    Sun May 15 02:28:57 1994
  189. +++ amiga/fsf/gdbm/configure    Mon Sep 30 22:44:44 1996
  190. @@ -1,293 +1,969 @@
  191. -#!/bin/sh
  192. +#! /bin/sh
  193. +
  194.  # Guess values for system-dependent variables and create Makefiles.
  195. -# Generated automatically using autoconf.
  196. -# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  197. +# Generated automatically using autoconf version 2.10 
  198. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  199. +#
  200. +# This configure script is free software; the Free Software Foundation
  201. +# gives unlimited permission to copy, distribute and modify it.
  202.  
  203. -# This program is free software; you can redistribute it and/or modify
  204. -# it under the terms of the GNU General Public License as published by
  205. -# the Free Software Foundation; either version 2, or (at your option)
  206. -# any later version.
  207. -
  208. -# This program is distributed in the hope that it will be useful,
  209. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  210. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  211. -# GNU General Public License for more details.
  212. -
  213. -# You should have received a copy of the GNU General Public License
  214. -# along with this program; if not, write to the Free Software
  215. -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  216. -
  217. -# Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  218. -#        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  219. -# Ignores all args except --srcdir, --prefix, --exec-prefix, and
  220. -# --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  221. +# Defaults:
  222. +ac_help=
  223. +ac_default_prefix=/usr/local
  224. +# Any additions from configure.in:
  225. +
  226. +# Initialize some variables set by options.
  227. +# The variables have the same names as the options, with
  228. +# dashes changed to underlines.
  229. +build=NONE
  230. +cache_file=./config.cache
  231. +exec_prefix=NONE
  232. +host=NONE
  233. +no_create=
  234. +nonopt=NONE
  235. +no_recursion=
  236. +prefix=NONE
  237. +program_prefix=NONE
  238. +program_suffix=NONE
  239. +program_transform_name=s,x,x,
  240. +silent=
  241. +site=
  242. +srcdir=
  243. +target=NONE
  244. +verbose=
  245. +x_includes=NONE
  246. +x_libraries=NONE
  247. +bindir='${exec_prefix}/bin'
  248. +sbindir='${exec_prefix}/sbin'
  249. +libexecdir='${exec_prefix}/libexec'
  250. +datadir='${prefix}/share'
  251. +sysconfdir='${prefix}/etc'
  252. +sharedstatedir='${prefix}/com'
  253. +localstatedir='${prefix}/var'
  254. +libdir='${exec_prefix}/lib'
  255. +includedir='${prefix}/include'
  256. +oldincludedir='/usr/include'
  257. +infodir='${prefix}/info'
  258. +guidedir='${prefix}/guide'
  259. +psdir='${prefix}/ps'
  260. +dvidir='${prefix}/dvi'
  261. +mandir='${prefix}/man'
  262. +
  263. +# Initialize some other variables.
  264. +subdirs=
  265. +MFLAGS= MAKEFLAGS=
  266.  
  267. -for arg
  268. +ac_prev=
  269. +for ac_option
  270.  do
  271. -  # Handle --exec-prefix with a space before the argument.
  272. -  if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  273. -  # Handle --host with a space before the argument.
  274. -  elif test x$next_host = xyes; then next_host=
  275. -  # Handle --prefix with a space before the argument.
  276. -  elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  277. -  # Handle --srcdir with a space before the argument.
  278. -  elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  279. -  else
  280. -    case $arg in
  281. -     # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  282. -     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  283. -    exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  284. -     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  285. -    next_exec_prefix=yes ;;
  286. -
  287. -     -gas | --gas | --ga | --g) ;;
  288. -
  289. -     -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  290. -     -host | --host | --hos | --ho | --h)
  291. -    next_host=yes ;;
  292. -
  293. -     -nfp | --nfp | --nf) ;;
  294. -
  295. -     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  296. -    prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  297. -     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  298. -    next_prefix=yes ;;
  299. -
  300. -     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  301. -    srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  302. -     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  303. -    next_srcdir=yes ;;
  304. -
  305. -     -with-* | --with-*)
  306. -       package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  307. -       # Reject names that aren't valid shell variable names.
  308. -       if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  309. -         echo "configure: $package: invalid package name" >&2; exit 1
  310. -       fi
  311. -       package=`echo $package| sed 's/-/_/g'`
  312. -       case "$arg" in
  313. -         *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  314. -         *) val=1 ;;
  315. -       esac
  316. -       eval "with_$package='$val'" ;;
  317.  
  318. -     -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  319. -       verbose=yes ;;
  320. +  # If the previous option needs an argument, assign it.
  321. +  if test -n "$ac_prev"; then
  322. +    eval "$ac_prev=\$ac_option"
  323. +    ac_prev=
  324. +    continue
  325. +  fi
  326. +
  327. +  case "$ac_option" in
  328. +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  329. +  *) ac_optarg= ;;
  330. +  esac
  331. +
  332. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  333. +
  334. +  case "$ac_option" in
  335.  
  336. -     *) ;;
  337. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  338. +    ac_prev=bindir ;;
  339. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  340. +    bindir="$ac_optarg" ;;
  341. +
  342. +  -build | --build | --buil | --bui | --bu)
  343. +    ac_prev=build ;;
  344. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  345. +    build="$ac_optarg" ;;
  346. +
  347. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  348. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  349. +    ac_prev=cache_file ;;
  350. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  351. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  352. +    cache_file="$ac_optarg" ;;
  353. +
  354. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  355. +    ac_prev=datadir ;;
  356. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  357. +  | --da=*)
  358. +    datadir="$ac_optarg" ;;
  359. +
  360. +  -disable-* | --disable-*)
  361. +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  362. +    # Reject names that are not valid shell variable names.
  363. +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  364. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  365. +    fi
  366. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  367. +    eval "enable_${ac_feature}=no" ;;
  368. +
  369. +  -enable-* | --enable-*)
  370. +    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  371. +    # Reject names that are not valid shell variable names.
  372. +    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  373. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  374. +    fi
  375. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  376. +    case "$ac_option" in
  377. +      *=*) ;;
  378. +      *) ac_optarg=yes ;;
  379.      esac
  380. -  fi
  381. +    eval "enable_${ac_feature}='$ac_optarg'" ;;
  382. +
  383. +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  384. +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  385. +  | --exec | --exe | --ex)
  386. +    ac_prev=exec_prefix ;;
  387. +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  388. +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  389. +  | --exec=* | --exe=* | --ex=*)
  390. +    exec_prefix="$ac_optarg" ;;
  391. +
  392. +  -gas | --gas | --ga | --g)
  393. +    # Obsolete; use --with-gas.
  394. +    with_gas=yes ;;
  395. +
  396. +  -help | --help | --hel | --he)
  397. +    # Omit some internal or obsolete options to make the list less imposing.
  398. +    # This message is too long to be a string in the A/UX 3.1 sh.
  399. +    cat << EOF
  400. +Usage: configure [options] [host]
  401. +Options: [defaults in brackets after descriptions]
  402. +Configuration:
  403. +  --cache-file=FILE       cache test results in FILE
  404. +  --help                  print this message
  405. +  --no-create             do not create output files
  406. +  --quiet, --silent       do not print \`checking...' messages
  407. +  --version               print the version of autoconf that created configure
  408. +Directory and file names:
  409. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  410. +                          [$ac_default_prefix]
  411. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  412. +                          [same as prefix]
  413. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  414. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  415. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  416. +  --datadir=DIR           read-only architecture-independent data in DIR
  417. +                          [PREFIX/share]
  418. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  419. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  420. +                          [PREFIX/com]
  421. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  422. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  423. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  424. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  425. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  426. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  427. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  428. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  429. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  430. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  431. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  432. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  433. +  --program-transform-name=PROGRAM
  434. +                          run sed PROGRAM on installed program names
  435. +EOF
  436. +    cat << EOF
  437. +Host type:
  438. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  439. +  --host=HOST             configure for HOST [guessed]
  440. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  441. +Features and packages:
  442. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  443. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  444. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  445. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  446. +  --x-includes=DIR        X include files are in DIR
  447. +  --x-libraries=DIR       X library files are in DIR
  448. +EOF
  449. +    if test -n "$ac_help"; then
  450. +      echo "--enable and --with options recognized:$ac_help"
  451. +    fi
  452. +    exit 0 ;;
  453. +
  454. +  -host | --host | --hos | --ho)
  455. +    ac_prev=host ;;
  456. +  -host=* | --host=* | --hos=* | --ho=*)
  457. +    host="$ac_optarg" ;;
  458. +
  459. +  -includedir | --includedir | --includedi | --included | --include \
  460. +  | --includ | --inclu | --incl | --inc)
  461. +    ac_prev=includedir ;;
  462. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  463. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  464. +    includedir="$ac_optarg" ;;
  465. +
  466. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  467. +    ac_prev=infodir ;;
  468. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  469. +    infodir="$ac_optarg" ;;
  470. +
  471. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  472. +   ac_prev=guidedir ;;
  473. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  474. +
  475. + -psdir | --psdir | --psdi | --psd | --ps)
  476. +   ac_prev=psdir ;;
  477. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  478. +
  479. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  480. +   ac_prev=dvidir ;;
  481. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  482. +
  483. +  -libdir | --libdir | --libdi | --libd)
  484. +    ac_prev=libdir ;;
  485. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  486. +    libdir="$ac_optarg" ;;
  487. +
  488. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  489. +  | --libexe | --libex | --libe)
  490. +    ac_prev=libexecdir ;;
  491. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  492. +  | --libexe=* | --libex=* | --libe=*)
  493. +    libexecdir="$ac_optarg" ;;
  494. +
  495. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  496. +  | --localstate | --localstat | --localsta | --localst \
  497. +  | --locals | --local | --loca | --loc | --lo)
  498. +    ac_prev=localstatedir ;;
  499. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  500. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  501. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  502. +    localstatedir="$ac_optarg" ;;
  503. +
  504. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  505. +    ac_prev=mandir ;;
  506. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  507. +    mandir="$ac_optarg" ;;
  508. +
  509. +  -nfp | --nfp | --nf)
  510. +    # Obsolete; use --without-fp.
  511. +    with_fp=no ;;
  512. +
  513. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  514. +  | --no-cr | --no-c)
  515. +    no_create=yes ;;
  516. +
  517. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  518. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  519. +    no_recursion=yes ;;
  520. +
  521. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  522. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  523. +  | --oldin | --oldi | --old | --ol | --o)
  524. +    ac_prev=oldincludedir ;;
  525. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  526. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  527. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  528. +    oldincludedir="$ac_optarg" ;;
  529. +
  530. +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  531. +    ac_prev=prefix ;;
  532. +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  533. +    prefix="$ac_optarg" ;;
  534. +
  535. +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  536. +  | --program-pre | --program-pr | --program-p)
  537. +    ac_prev=program_prefix ;;
  538. +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  539. +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  540. +    program_prefix="$ac_optarg" ;;
  541. +
  542. +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  543. +  | --program-suf | --program-su | --program-s)
  544. +    ac_prev=program_suffix ;;
  545. +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  546. +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  547. +    program_suffix="$ac_optarg" ;;
  548. +
  549. +  -program-transform-name | --program-transform-name \
  550. +  | --program-transform-nam | --program-transform-na \
  551. +  | --program-transform-n | --program-transform- \
  552. +  | --program-transform | --program-transfor \
  553. +  | --program-transfo | --program-transf \
  554. +  | --program-trans | --program-tran \
  555. +  | --progr-tra | --program-tr | --program-t)
  556. +    ac_prev=program_transform_name ;;
  557. +  -program-transform-name=* | --program-transform-name=* \
  558. +  | --program-transform-nam=* | --program-transform-na=* \
  559. +  | --program-transform-n=* | --program-transform-=* \
  560. +  | --program-transform=* | --program-transfor=* \
  561. +  | --program-transfo=* | --program-transf=* \
  562. +  | --program-trans=* | --program-tran=* \
  563. +  | --progr-tra=* | --program-tr=* | --program-t=*)
  564. +    program_transform_name="$ac_optarg" ;;
  565. +
  566. +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  567. +  | -silent | --silent | --silen | --sile | --sil)
  568. +    silent=yes ;;
  569. +
  570. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  571. +    ac_prev=sbindir ;;
  572. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  573. +  | --sbi=* | --sb=*)
  574. +    sbindir="$ac_optarg" ;;
  575. +
  576. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  577. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  578. +  | --sharedst | --shareds | --shared | --share | --shar \
  579. +  | --sha | --sh)
  580. +    ac_prev=sharedstatedir ;;
  581. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  582. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  583. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  584. +  | --sha=* | --sh=*)
  585. +    sharedstatedir="$ac_optarg" ;;
  586. +
  587. +  -site | --site | --sit)
  588. +    ac_prev=site ;;
  589. +  -site=* | --site=* | --sit=*)
  590. +    site="$ac_optarg" ;;
  591. +
  592. +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  593. +    ac_prev=srcdir ;;
  594. +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  595. +    srcdir="$ac_optarg" ;;
  596. +
  597. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  598. +  | --syscon | --sysco | --sysc | --sys | --sy)
  599. +    ac_prev=sysconfdir ;;
  600. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  601. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  602. +    sysconfdir="$ac_optarg" ;;
  603. +
  604. +  -target | --target | --targe | --targ | --tar | --ta | --t)
  605. +    ac_prev=target ;;
  606. +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  607. +    target="$ac_optarg" ;;
  608. +
  609. +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  610. +    verbose=yes ;;
  611. +
  612. +  -version | --version | --versio | --versi | --vers)
  613. +    echo "configure generated by autoconf version 2.10"
  614. +    exit 0 ;;
  615. +
  616. +  -with-* | --with-*)
  617. +    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  618. +    # Reject names that are not valid shell variable names.
  619. +    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  620. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  621. +    fi
  622. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  623. +    case "$ac_option" in
  624. +      *=*) ;;
  625. +      *) ac_optarg=yes ;;
  626. +    esac
  627. +    eval "with_${ac_package}='$ac_optarg'" ;;
  628. +
  629. +  -without-* | --without-*)
  630. +    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  631. +    # Reject names that are not valid shell variable names.
  632. +    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  633. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  634. +    fi
  635. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  636. +    eval "with_${ac_package}=no" ;;
  637. +
  638. +  --x)
  639. +    # Obsolete; use --with-x.
  640. +    with_x=yes ;;
  641. +
  642. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  643. +  | --x-incl | --x-inc | --x-in | --x-i)
  644. +    ac_prev=x_includes ;;
  645. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  646. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  647. +    x_includes="$ac_optarg" ;;
  648. +
  649. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  650. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  651. +    ac_prev=x_libraries ;;
  652. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  653. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  654. +    x_libraries="$ac_optarg" ;;
  655. +
  656. +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  657. +    ;;
  658. +
  659. +  *)
  660. +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  661. +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  662. +    fi
  663. +    if test "x$nonopt" != xNONE; then
  664. +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  665. +    fi
  666. +    nonopt="$ac_option"
  667. +    ;;
  668. +
  669. +  esac
  670.  done
  671.  
  672. -trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  673. -trap 'rm -f confdefs*' 0
  674. +if test -n "$ac_prev"; then
  675. +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  676. +fi
  677. +
  678. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  679. +
  680. +# File descriptor usage:
  681. +# 0 standard input
  682. +# 1 file creation
  683. +# 2 errors and warnings
  684. +# 3 some systems may open it to /dev/tty
  685. +# 4 used on the Kubota Titan
  686. +# 6 checking for... messages and results
  687. +# 5 compiler messages saved in config.log
  688. +if test "$silent" = yes; then
  689. +  exec 6>/dev/null
  690. +else
  691. +  exec 6>&1
  692. +fi
  693. +exec 5>./config.log
  694. +
  695. +echo "\
  696. +This file contains any messages produced by compilers while
  697. +running configure, to aid debugging if configure makes a mistake.
  698. +" 1>&5
  699. +
  700. +# Strip out --no-create and --no-recursion so they do not pile up.
  701. +# Also quote any args containing shell metacharacters.
  702. +ac_configure_args=
  703. +for ac_arg
  704. +do
  705. +  case "$ac_arg" in
  706. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  707. +  | --no-cr | --no-c) ;;
  708. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  709. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  710. +  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  711. +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  712. +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  713. +  esac
  714. +done
  715.  
  716.  # NLS nuisances.
  717. +# Only set LANG and LC_ALL to C if already set.
  718.  # These must not be set unconditionally because not all systems understand
  719.  # e.g. LANG=C (notably SCO).
  720. -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  721. -if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  722. +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  723. +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  724.  
  725. -rm -f conftest* confdefs.h
  726. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  727. +rm -rf conftest* confdefs.h
  728.  # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  729.  echo > confdefs.h
  730. -compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  731.  
  732.  # A filename unique to this package, relative to the directory that
  733.  # configure is in, which we can look for to find out if srcdir is correct.
  734. -unique_file=gdbmdefs.h
  735. +ac_unique_file=gdbmdefs.h
  736.  
  737.  # Find the source files, if location was not specified.
  738.  if test -z "$srcdir"; then
  739. -  srcdirdefaulted=yes
  740. -  # Try the directory containing this script, then `..'.
  741. -  prog=$0
  742. -  confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  743. -  test "X$confdir" = "X$prog" && confdir=.
  744. -  srcdir=$confdir
  745. -  if test ! -r $srcdir/$unique_file; then
  746. +  ac_srcdir_defaulted=yes
  747. +  # Try the directory containing this script, then its parent.
  748. +  ac_prog=$0
  749. +  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  750. +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  751. +  srcdir=$ac_confdir
  752. +  if test ! -r $srcdir/$ac_unique_file; then
  753.      srcdir=..
  754.    fi
  755. +else
  756. +  ac_srcdir_defaulted=no
  757. +fi
  758. +if test ! -r $srcdir/$ac_unique_file; then
  759. +  if test "$ac_srcdir_defaulted" = yes; then
  760. +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  761. +  else
  762. +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  763. +  fi
  764. +fi
  765. +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  766. +
  767. +# Prefer explicitly selected file to automatically selected ones.
  768. +if test -z "$CONFIG_SITE"; then
  769. +  if test "x$prefix" != xNONE; then
  770. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  771. +  else
  772. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  773. +  fi
  774. +fi
  775. +for ac_site_file in $CONFIG_SITE; do
  776. +  if test -r "$ac_site_file"; then
  777. +    echo "loading site script $ac_site_file"
  778. +    . "$ac_site_file"
  779. +  fi
  780. +done
  781. +
  782. +if test -r "$cache_file"; then
  783. +  echo "loading cache $cache_file"
  784. +  . $cache_file
  785. +else
  786. +  echo "creating cache $cache_file"
  787. +  > $cache_file
  788.  fi
  789. -if test ! -r $srcdir/$unique_file; then
  790. -  if test x$srcdirdefaulted = xyes; then
  791. -    echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  792. +
  793. +ac_ext=c
  794. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  795. +ac_cpp='$CPP $CPPFLAGS'
  796. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  797. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  798. +
  799. +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  800. +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  801. +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  802. +    ac_n= ac_c='
  803. +' ac_t='    '
  804.    else
  805. -    echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  806. +    ac_n=-n ac_c= ac_t=
  807.    fi
  808. -  exit 1
  809. +else
  810. +  ac_n= ac_c='\c' ac_t=
  811.  fi
  812. -# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  813. -# But we can't avoid them for `..', to make subdirectories work.
  814. -case $srcdir in
  815. -  .|/*|~*) ;;
  816. -  *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  817. -esac
  818.  
  819.  
  820. -# Save the original args to write them into config.status later.
  821. -configure_args="$*"
  822.  
  823. +# Extract the first word of "gcc", so it can be a program name with args.
  824. +set dummy gcc; ac_word=$2
  825. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  826. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  827. +  echo $ac_n "(cached) $ac_c" 1>&6
  828. +else
  829. +  if test -n "$CC"; then
  830. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  831. +else
  832. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  833. +  for ac_dir in $PATH; do
  834. +    test -z "$ac_dir" && ac_dir=.
  835. +    if test -f $ac_dir/$ac_word; then
  836. +      ac_cv_prog_CC="gcc"
  837. +      break
  838. +    fi
  839. +  done
  840. +  IFS="$ac_save_ifs"
  841. +fi
  842. +fi
  843. +CC="$ac_cv_prog_CC"
  844. +if test -n "$CC"; then
  845. +  echo "$ac_t""$CC" 1>&6
  846. +else
  847. +  echo "$ac_t""no" 1>&6
  848. +fi
  849.  
  850.  if test -z "$CC"; then
  851. -  # Extract the first word of `gcc', so it can be a program name with args.
  852. -  set dummy gcc; word=$2
  853. -  echo checking for $word
  854. -  IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  855. -  for dir in $PATH; do
  856. -    test -z "$dir" && dir=.
  857. -    if test -f $dir/$word; then
  858. -      CC="gcc"
  859. +  # Extract the first word of "cc", so it can be a program name with args.
  860. +set dummy cc; ac_word=$2
  861. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  862. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  863. +  echo $ac_n "(cached) $ac_c" 1>&6
  864. +else
  865. +  if test -n "$CC"; then
  866. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  867. +else
  868. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  869. +  ac_prog_rejected=no
  870. +  for ac_dir in $PATH; do
  871. +    test -z "$ac_dir" && ac_dir=.
  872. +    if test -f $ac_dir/$ac_word; then
  873. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  874. +        ac_prog_rejected=yes
  875. +    continue
  876. +      fi
  877. +      ac_cv_prog_CC="cc"
  878.        break
  879.      fi
  880.    done
  881. -  IFS="$saveifs"
  882. +  IFS="$ac_save_ifs"
  883. +if test $ac_prog_rejected = yes; then
  884. +  # We found a bogon in the path, so make sure we never use it.
  885. +  set dummy $ac_cv_prog_CC
  886. +  shift
  887. +  if test $# -gt 0; then
  888. +    # We chose a different compiler from the bogus one.
  889. +    # However, it has the same basename, so the bogon will be chosen
  890. +    # first if we set CC to just the basename; use the full file name.
  891. +    shift
  892. +    set dummy "$ac_dir/$ac_word" "$@"
  893. +    shift
  894. +    ac_cv_prog_CC="$@"
  895. +  fi
  896. +fi
  897. +fi
  898. +fi
  899. +CC="$ac_cv_prog_CC"
  900. +if test -n "$CC"; then
  901. +  echo "$ac_t""$CC" 1>&6
  902. +else
  903. +  echo "$ac_t""no" 1>&6
  904. +fi
  905. +
  906. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  907.  fi
  908. -test -z "$CC" && CC="cc"
  909. -test -n "$CC" && test -n "$verbose" && echo "    setting CC to $CC"
  910.  
  911. -# Find out if we are using GNU C, under whatever name.
  912. -cat > conftest.c <<EOF
  913. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  914. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  915. +  echo $ac_n "(cached) $ac_c" 1>&6
  916. +else
  917. +  cat > conftest.c <<EOF
  918.  #ifdef __GNUC__
  919. -  yes
  920. +  yes;
  921.  #endif
  922.  EOF
  923. -${CC-cc} -E conftest.c > conftest.out 2>&1
  924. -if egrep yes conftest.out >/dev/null 2>&1; then
  925. -  GCC=1 # For later tests.
  926. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  927. +  ac_cv_prog_gcc=yes
  928. +else
  929. +  ac_cv_prog_gcc=no
  930. +fi
  931. +fi
  932. +
  933. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  934. +if test $ac_cv_prog_gcc = yes; then
  935. +  GCC=yes
  936. +  if test "${CFLAGS+set}" != set; then
  937. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  938. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  939. +  echo $ac_n "(cached) $ac_c" 1>&6
  940. +else
  941. +  echo 'void f(){}' > conftest.c
  942. +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  943. +  ac_cv_prog_gcc_g=yes
  944. +else
  945. +  ac_cv_prog_gcc_g=no
  946.  fi
  947.  rm -f conftest*
  948.  
  949. -echo checking how to run the C preprocessor
  950. +fi
  951. +
  952. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  953. +    if test $ac_cv_prog_gcc_g = yes; then
  954. +      CFLAGS="-g -O2"
  955. +    else
  956. +      CFLAGS="-O2"
  957. +    fi
  958. +  fi
  959. +else
  960. +  GCC=
  961. +  test "${CFLAGS+set}" = set || CFLAGS="-g"
  962. +fi
  963. +
  964. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  965. +# On Suns, sometimes $CPP names a directory.
  966. +if test -n "$CPP" && test -d "$CPP"; then
  967. +  CPP=
  968. +fi
  969.  if test -z "$CPP"; then
  970. -  # This must be in double quotes, not single quotes, because CPP may get
  971. -  # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  972. -  # make.  It must be expanded now.
  973. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  974. +  echo $ac_n "(cached) $ac_c" 1>&6
  975. +else
  976. +    # This must be in double quotes, not single quotes, because CPP may get
  977. +  # substituted into the Makefile and "${CC-cc}" will confuse make.
  978.    CPP="${CC-cc} -E"
  979. -  cat > conftest.c <<EOF
  980. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  981. +  # not just through cpp.
  982. +  cat > conftest.$ac_ext <<EOF
  983. +#line 673 "configure"
  984.  #include "confdefs.h"
  985. -#include <stdio.h>
  986. +#include <assert.h>
  987. +Syntax Error
  988. +EOF
  989. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  990. +{ (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  991. +ac_err=`grep -v '^ *+' conftest.out`
  992. +if test -z "$ac_err"; then
  993. +  :
  994. +else
  995. +  echo "$ac_err" >&5
  996. +  rm -rf conftest*
  997. +  CPP="${CC-cc} -E -traditional-cpp"
  998. +  cat > conftest.$ac_ext <<EOF
  999. +#line 688 "configure"
  1000. +#include "confdefs.h"
  1001. +#include <assert.h>
  1002.  Syntax Error
  1003.  EOF
  1004. -err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1005. -if test -z "$err"; then
  1006. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1007. +{ (eval echo configure:694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1008. +ac_err=`grep -v '^ *+' conftest.out`
  1009. +if test -z "$ac_err"; then
  1010.    :
  1011.  else
  1012. +  echo "$ac_err" >&5
  1013.    rm -rf conftest*
  1014.    CPP=/lib/cpp
  1015.  fi
  1016.  rm -f conftest*
  1017.  fi
  1018. -test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  1019. +rm -f conftest*
  1020. +  ac_cv_prog_CPP="$CPP"
  1021. +fi
  1022. +  CPP="$ac_cv_prog_CPP"
  1023. +else
  1024. +  ac_cv_prog_CPP="$CPP"
  1025. +fi
  1026. +echo "$ac_t""$CPP" 1>&6
  1027.  
  1028. -# Make sure to not get the incompatible SysV /etc/install and
  1029. -# /usr/sbin/install, which might be in PATH before a BSD-like install,
  1030. -# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  1031. -# or the AFS install, which mishandles nonexistent args, or
  1032. -# /usr/ucb/install on SVR4, which tries to use the nonexistent group
  1033. -# `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  1034. -# anyway.  Sigh.
  1035. -if test "z${INSTALL}" = "z" ; then
  1036. -  echo checking for install
  1037. -  IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1038. -  for dir in $PATH; do
  1039. -    test -z "$dir" && dir=.
  1040. -    case $dir in
  1041. -    /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  1042. +ac_aux_dir=
  1043. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1044. +  if test -f $ac_dir/install-sh; then
  1045. +    ac_aux_dir=$ac_dir
  1046. +    ac_install_sh="$ac_aux_dir/install-sh -c"
  1047. +    break
  1048. +  elif test -f $ac_dir/install.sh; then
  1049. +    ac_aux_dir=$ac_dir
  1050. +    ac_install_sh="$ac_aux_dir/install.sh -c"
  1051. +    break
  1052. +  fi
  1053. +done
  1054. +if test -z "$ac_aux_dir"; then
  1055. +  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1056. +fi
  1057. +ac_config_guess=$ac_aux_dir/config.guess
  1058. +ac_config_sub=$ac_aux_dir/config.sub
  1059. +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1060. +
  1061. +# Find a good install program.  We prefer a C program (faster),
  1062. +# so one script is as good as another.  But avoid the broken or
  1063. +# incompatible versions:
  1064. +# SysV /etc/install, /usr/sbin/install
  1065. +# SunOS /usr/etc/install
  1066. +# IRIX /sbin/install
  1067. +# AIX /bin/install
  1068. +# AmigaOS /c/install
  1069. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1070. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1071. +# ./install, which can be erroneously created by make from ./install.sh.
  1072. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1073. +if test -z "$INSTALL"; then
  1074. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1075. +  echo $ac_n "(cached) $ac_c" 1>&6
  1076. +else
  1077. +    IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1078. +  for ac_dir in $PATH; do
  1079. +    # Account for people who put trailing slashes in PATH elements.
  1080. +    case "$ac_dir/" in
  1081. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1082.      *)
  1083. -      if test -f $dir/installbsd; then
  1084. -    INSTALL="$dir/installbsd -c" # OSF1
  1085. -    INSTALL_PROGRAM='$(INSTALL)'
  1086. -    INSTALL_DATA='$(INSTALL) -m 644'
  1087. -    break
  1088. -      fi
  1089. -      if test -f $dir/install; then
  1090. -    if grep dspmsg $dir/install >/dev/null 2>&1; then
  1091. -      : # AIX
  1092. -    else
  1093. -      INSTALL="$dir/install -c"
  1094. -      INSTALL_PROGRAM='$(INSTALL)'
  1095. -      INSTALL_DATA='$(INSTALL) -m 644'
  1096. -      break
  1097. +      # OSF1 and SCO ODT 3.0 have their own names for install.
  1098. +      for ac_prog in ginstall installbsd scoinst install; do
  1099. +        if test -f $ac_dir/$ac_prog; then
  1100. +      if test $ac_prog = install &&
  1101. +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1102. +        # AIX install.  It has an incompatible calling convention.
  1103. +        # OSF/1 installbsd also uses dspmsg, but is usable.
  1104. +        :
  1105. +      else
  1106. +        ac_cv_path_install="$ac_dir/$ac_prog -c"
  1107. +        break 2
  1108. +      fi
  1109.      fi
  1110. -      fi
  1111. +      done
  1112.        ;;
  1113.      esac
  1114.    done
  1115. -  IFS="$saveifs"
  1116. +  IFS="$ac_save_ifs"
  1117. +
  1118.  fi
  1119. -INSTALL=${INSTALL-cp}
  1120. -test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  1121. -INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  1122. -test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  1123. -INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  1124. -test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  1125. -
  1126. -if test -z "$RANLIB"; then
  1127. -  # Extract the first word of `ranlib', so it can be a program name with args.
  1128. -  set dummy ranlib; word=$2
  1129. -  echo checking for $word
  1130. -  IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1131. -  for dir in $PATH; do
  1132. -    test -z "$dir" && dir=.
  1133. -    if test -f $dir/$word; then
  1134. -      RANLIB="ranlib"
  1135. +  if test "${ac_cv_path_install+set}" = set; then
  1136. +    INSTALL="$ac_cv_path_install"
  1137. +  else
  1138. +    # As a last resort, use the slow shell script.  We don't cache a
  1139. +    # path for INSTALL within a source directory, because that will
  1140. +    # break other packages using the cache if that directory is
  1141. +    # removed, or if the path is relative.
  1142. +    INSTALL="$ac_install_sh"
  1143. +  fi
  1144. +fi
  1145. +echo "$ac_t""$INSTALL" 1>&6
  1146. +
  1147. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1148. +# It thinks the first close brace ends the variable substitution.
  1149. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1150. +
  1151. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1152. +
  1153. +# Extract the first word of "ranlib", so it can be a program name with args.
  1154. +set dummy ranlib; ac_word=$2
  1155. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1156. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1157. +  echo $ac_n "(cached) $ac_c" 1>&6
  1158. +else
  1159. +  if test -n "$RANLIB"; then
  1160. +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1161. +else
  1162. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1163. +  for ac_dir in $PATH; do
  1164. +    test -z "$ac_dir" && ac_dir=.
  1165. +    if test -f $ac_dir/$ac_word; then
  1166. +      ac_cv_prog_RANLIB="ranlib"
  1167.        break
  1168.      fi
  1169.    done
  1170. -  IFS="$saveifs"
  1171. +  IFS="$ac_save_ifs"
  1172. +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1173. +fi
  1174. +fi
  1175. +RANLIB="$ac_cv_prog_RANLIB"
  1176. +if test -n "$RANLIB"; then
  1177. +  echo "$ac_t""$RANLIB" 1>&6
  1178. +else
  1179. +  echo "$ac_t""no" 1>&6
  1180.  fi
  1181. -test -z "$RANLIB" && RANLIB=":"
  1182. -test -n "$RANLIB" && test -n "$verbose" && echo "    setting RANLIB to $RANLIB"
  1183.  
  1184. -echo checking integer size
  1185. -cat > conftest.c <<EOF
  1186. +# If we cannot run a trivial program, we must be cross compiling.
  1187. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1188. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1189. +  echo $ac_n "(cached) $ac_c" 1>&6
  1190. +else
  1191. +  if test "$cross_compiling" = yes; then
  1192. +  ac_cv_c_cross=yes
  1193. +else
  1194. +cat > conftest.$ac_ext <<EOF
  1195. +#line 830 "configure"
  1196.  #include "confdefs.h"
  1197. -main() { exit(sizeof(int) != 2); }
  1198. +main(){return(0);}
  1199.  EOF
  1200. -eval $compile
  1201. +{ (eval echo configure:834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1202.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1203. -  
  1204. +  ac_cv_c_cross=no
  1205. +else
  1206. +  ac_cv_c_cross=yes
  1207. +fi
  1208. +fi
  1209. +rm -fr conftest*
  1210. +fi
  1211. +
  1212. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  1213. +cross_compiling=$ac_cv_c_cross
  1214. +
  1215. +echo $ac_n "checking size of int""... $ac_c" 1>&6
  1216. +if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  1217. +  echo $ac_n "(cached) $ac_c" 1>&6
  1218. +else
  1219. +  if test "$cross_compiling" = yes; then
  1220. +  ac_cv_sizeof_int=sizevar
  1221. +else
  1222. +cat > conftest.$ac_ext <<EOF
  1223. +#line 855 "configure"
  1224. +#include "confdefs.h"
  1225. +#include <stdio.h>
  1226. +main()
  1227.  {
  1228. -test -n "$verbose" && \
  1229. -echo "    defining INT_16_BITS"
  1230. -echo "#define" INT_16_BITS 1 >> confdefs.h
  1231. -DEFS="$DEFS -DINT_16_BITS=1"
  1232. -SEDDEFS="${SEDDEFS}\${SEDdA}INT_16_BITS\${SEDdB}INT_16_BITS\${SEDdC}1\${SEDdD}
  1233. -\${SEDuA}INT_16_BITS\${SEDuB}INT_16_BITS\${SEDuC}1\${SEDuD}
  1234. -\${SEDeA}INT_16_BITS\${SEDeB}INT_16_BITS\${SEDeC}1\${SEDeD}
  1235. -"
  1236. +  FILE *f=fopen("conftestval", "w");
  1237. +  if (!f) exit(1);
  1238. +  fprintf(f, "%d\n", sizeof(int));
  1239. +  exit(0);
  1240.  }
  1241. +EOF
  1242. +{ (eval echo configure:866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1243. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1244. +  ac_cv_sizeof_int=`cat conftestval`
  1245. +else
  1246. +  ac_cv_sizeof_int=0
  1247. +fi
  1248. +fi
  1249. +rm -fr conftest*
  1250. +fi
  1251. +echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  1252. +cat >> confdefs.h <<EOF
  1253. +#define SIZEOF_INT $ac_cv_sizeof_int
  1254. +EOF
  1255.  
  1256.  
  1257. +echo $ac_n "checking size of long""... $ac_c" 1>&6
  1258. +if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  1259. +  echo $ac_n "(cached) $ac_c" 1>&6
  1260. +else
  1261. +  if test "$cross_compiling" = yes; then
  1262. +  ac_cv_sizeof_long=sizevar
  1263. +else
  1264. +cat > conftest.$ac_ext <<EOF
  1265. +#line 889 "configure"
  1266. +#include "confdefs.h"
  1267. +#include <stdio.h>
  1268. +main()
  1269. +{
  1270. +  FILE *f=fopen("conftestval", "w");
  1271. +  if (!f) exit(1);
  1272. +  fprintf(f, "%d\n", sizeof(long));
  1273. +  exit(0);
  1274. +}
  1275. +EOF
  1276. +{ (eval echo configure:900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1277. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1278. +  ac_cv_sizeof_long=`cat conftestval`
  1279. +else
  1280. +  ac_cv_sizeof_long=0
  1281. +fi
  1282.  fi
  1283.  rm -fr conftest*
  1284. +fi
  1285. +echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  1286. +cat >> confdefs.h <<EOF
  1287. +#define SIZEOF_LONG $ac_cv_sizeof_long
  1288. +EOF
  1289. +
  1290.  
  1291. -echo checking for 64-bit long ints
  1292. -cat > conftest.c <<EOF
  1293. +echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1294. +if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1295. +  echo $ac_n "(cached) $ac_c" 1>&6
  1296. +else
  1297. +  ac_cv_c_bigendian=unknown
  1298. +# See if sys/param.h defines the BYTE_ORDER macro.
  1299. +cat > conftest.$ac_ext <<EOF
  1300. +#line 922 "configure"
  1301.  #include "confdefs.h"
  1302. -main() { exit(sizeof(long int) != 8); }
  1303. +#include <sys/types.h>
  1304. +#include <sys/param.h>
  1305. +int main() { return 0; }
  1306. +int t() {
  1307. +
  1308. +#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1309. + bogus endian macros
  1310. +#endif
  1311. +; return 0; }
  1312.  EOF
  1313. -eval $compile
  1314. -if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1315. -  
  1316. -{
  1317. -test -n "$verbose" && \
  1318. -echo "    defining LONG_64_BITS"
  1319. -echo "#define" LONG_64_BITS 1 >> confdefs.h
  1320. -DEFS="$DEFS -DLONG_64_BITS=1"
  1321. -SEDDEFS="${SEDDEFS}\${SEDdA}LONG_64_BITS\${SEDdB}LONG_64_BITS\${SEDdC}1\${SEDdD}
  1322. -\${SEDuA}LONG_64_BITS\${SEDuB}LONG_64_BITS\${SEDuC}1\${SEDuD}
  1323. -\${SEDeA}LONG_64_BITS\${SEDeB}LONG_64_BITS\${SEDeC}1\${SEDeD}
  1324. -"
  1325. -}
  1326. +if { (eval echo configure:934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1327. +  rm -rf conftest*
  1328. +  # It does; now see whether it defined to BIG_ENDIAN or not.
  1329. +cat > conftest.$ac_ext <<EOF
  1330. +#line 938 "configure"
  1331. +#include "confdefs.h"
  1332. +#include <sys/types.h>
  1333. +#include <sys/param.h>
  1334. +int main() { return 0; }
  1335. +int t() {
  1336.  
  1337. +#if BYTE_ORDER != BIG_ENDIAN
  1338. + not big endian
  1339. +#endif
  1340. +; return 0; }
  1341. +EOF
  1342. +if { (eval echo configure:950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1343. +  rm -rf conftest*
  1344. +  ac_cv_c_bigendian=yes
  1345. +else
  1346. +  rm -rf conftest*
  1347. +  ac_cv_c_bigendian=no
  1348. +fi
  1349. +rm -f conftest*
  1350.  
  1351.  fi
  1352. -rm -fr conftest*
  1353. +rm -f conftest*
  1354.  
  1355. -echo checking byte ordering
  1356. -cat > conftest.c <<EOF
  1357. +if test $ac_cv_c_bigendian = unknown; then
  1358. +if test "$cross_compiling" = yes; then
  1359. +    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1360. +else
  1361. +cat > conftest.$ac_ext <<EOF
  1362. +#line 967 "configure"
  1363.  #include "confdefs.h"
  1364.  main () {
  1365.    /* Are we little or big endian?  From Harbison&Steele.  */
  1366. @@ -300,30 +976,44 @@ main () {
  1367.    exit (u.c[sizeof (long) - 1] == 1);
  1368.  }
  1369.  EOF
  1370. -eval $compile
  1371. +{ (eval echo configure:980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1372.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1373. -  :
  1374. +  ac_cv_c_bigendian=no
  1375.  else
  1376. -  
  1377. -{
  1378. -test -n "$verbose" && \
  1379. -echo "    defining WORDS_BIGENDIAN"
  1380. -echo "#define" WORDS_BIGENDIAN 1 >> confdefs.h
  1381. -DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1382. -SEDDEFS="${SEDDEFS}\${SEDdA}WORDS_BIGENDIAN\${SEDdB}WORDS_BIGENDIAN\${SEDdC}1\${SEDdD}
  1383. -\${SEDuA}WORDS_BIGENDIAN\${SEDuB}WORDS_BIGENDIAN\${SEDuC}1\${SEDuD}
  1384. -\${SEDeA}WORDS_BIGENDIAN\${SEDeB}WORDS_BIGENDIAN\${SEDeC}1\${SEDeD}
  1385. -"
  1386. -}
  1387. -
  1388. +  ac_cv_c_bigendian=yes
  1389. +fi
  1390.  fi
  1391.  rm -fr conftest*
  1392. +fi
  1393. +fi
  1394. +
  1395. +echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1396. +if test $ac_cv_c_bigendian = yes; then
  1397. +  cat >> confdefs.h <<\EOF
  1398. +#define WORDS_BIGENDIAN 1
  1399. +EOF
  1400. +
  1401. +fi
  1402. +
  1403. +echo $ac_n "checking for working const""... $ac_c" 1>&6
  1404. +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1405. +  echo $ac_n "(cached) $ac_c" 1>&6
  1406. +else
  1407. +  cat > conftest.$ac_ext <<EOF
  1408. +#line 1004 "configure"
  1409. +#include "confdefs.h"
  1410.  
  1411. -prog='/* Ultrix mips cc rejects this.  */
  1412. +int main() { return 0; }
  1413. +int t() {
  1414. +
  1415. +/* Ultrix mips cc rejects this.  */
  1416.  typedef int charset[2]; const charset x;
  1417.  /* SunOS 4.1.1 cc rejects this.  */
  1418.  char const *const *ccp;
  1419.  char **p;
  1420. +/* NEC SVR4.0.2 mips cc rejects this.  */
  1421. +struct point {int x, y;};
  1422. +static struct point const zero = {0,0};
  1423.  /* AIX XL C 1.02.0.0 rejects this.
  1424.     It does not let you subtract one const X* pointer from another in an arm
  1425.     of an if-expression whose if-part is not a constant expression */
  1426. @@ -340,7 +1030,7 @@ ccp = (char const *const *) p;
  1427.    *t++ = 0;
  1428.  }
  1429.  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1430. -  int x[] = {25,17};
  1431. +  int x[] = {25, 17};
  1432.    const int *foo = &x[0];
  1433.    ++foo;
  1434.  }
  1435. @@ -356,453 +1046,463 @@ ccp = (char const *const *) p;
  1436.  }
  1437.  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1438.    const int foo = 10;
  1439. -}'
  1440. -echo checking for lack of working const
  1441. -cat > conftest.c <<EOF
  1442. -#include "confdefs.h"
  1443. +}
  1444.  
  1445. -int main() { exit(0); }
  1446. -int t() { $prog }
  1447. +; return 0; }
  1448.  EOF
  1449. -if eval $compile; then
  1450. -  :
  1451. +if { (eval echo configure:1054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1452. +  rm -rf conftest*
  1453. +  ac_cv_c_const=yes
  1454.  else
  1455.    rm -rf conftest*
  1456. -  
  1457. -{
  1458. -test -n "$verbose" && \
  1459. -echo "    defining" const to be empty
  1460. -echo "#define" const  >> confdefs.h
  1461. -DEFS="$DEFS -Dconst="
  1462. -SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
  1463. -\${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
  1464. -\${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
  1465. -"
  1466. -}
  1467. -
  1468. +  ac_cv_c_const=no
  1469.  fi
  1470.  rm -f conftest*
  1471.  
  1472. -for hdr in stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h
  1473. +fi
  1474. +
  1475. +echo "$ac_t""$ac_cv_c_const" 1>&6
  1476. +if test $ac_cv_c_const = no; then
  1477. +  cat >> confdefs.h <<\EOF
  1478. +#define const 
  1479. +EOF
  1480. +
  1481. +fi
  1482. +
  1483. +for ac_hdr in stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h
  1484.  do
  1485. -trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1486. -echo checking for ${hdr}
  1487. -cat > conftest.c <<EOF
  1488. +ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1489. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1490. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1491. +  echo $ac_n "(cached) $ac_c" 1>&6
  1492. +else
  1493. +  cat > conftest.$ac_ext <<EOF
  1494. +#line 1081 "configure"
  1495.  #include "confdefs.h"
  1496. -#include <${hdr}>
  1497. +#include <$ac_hdr>
  1498.  EOF
  1499. -err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1500. -if test -z "$err"; then
  1501. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1502. +{ (eval echo configure:1086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1503. +ac_err=`grep -v '^ *+' conftest.out`
  1504. +if test -z "$ac_err"; then
  1505.    rm -rf conftest*
  1506. -  
  1507. -{
  1508. -test -n "$verbose" && \
  1509. -echo "    defining ${trhdr}"
  1510. -echo "#define" ${trhdr} 1 >> confdefs.h
  1511. -DEFS="$DEFS -D${trhdr}=1"
  1512. -SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  1513. -\${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  1514. -\${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  1515. -"
  1516. -}
  1517. -
  1518. -
  1519. +  eval "ac_cv_header_$ac_safe=yes"
  1520. +else
  1521. +  echo "$ac_err" >&5
  1522. +  rm -rf conftest*
  1523. +  eval "ac_cv_header_$ac_safe=no"
  1524.  fi
  1525.  rm -f conftest*
  1526. +fi
  1527. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1528. +  echo "$ac_t""yes" 1>&6
  1529. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1530. +  cat >> confdefs.h <<EOF
  1531. +#define $ac_tr_hdr 1
  1532. +EOF
  1533. +else
  1534. +  echo "$ac_t""no" 1>&6
  1535. +fi
  1536.  done
  1537.  
  1538. -for hdr in memory.h
  1539. +for ac_hdr in memory.h
  1540.  do
  1541. -trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1542. -echo checking for ${hdr}
  1543. -cat > conftest.c <<EOF
  1544. +ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1545. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1546. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1547. +  echo $ac_n "(cached) $ac_c" 1>&6
  1548. +else
  1549. +  cat > conftest.$ac_ext <<EOF
  1550. +#line 1118 "configure"
  1551.  #include "confdefs.h"
  1552. -#include <${hdr}>
  1553. +#include <$ac_hdr>
  1554.  EOF
  1555. -err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1556. -if test -z "$err"; then
  1557. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1558. +{ (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1559. +ac_err=`grep -v '^ *+' conftest.out`
  1560. +if test -z "$ac_err"; then
  1561.    rm -rf conftest*
  1562. -  
  1563. -{
  1564. -test -n "$verbose" && \
  1565. -echo "    defining ${trhdr}"
  1566. -echo "#define" ${trhdr} 1 >> confdefs.h
  1567. -DEFS="$DEFS -D${trhdr}=1"
  1568. -SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  1569. -\${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  1570. -\${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  1571. -"
  1572. -}
  1573. -
  1574. -
  1575. +  eval "ac_cv_header_$ac_safe=yes"
  1576. +else
  1577. +  echo "$ac_err" >&5
  1578. +  rm -rf conftest*
  1579. +  eval "ac_cv_header_$ac_safe=no"
  1580.  fi
  1581.  rm -f conftest*
  1582. +fi
  1583. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1584. +  echo "$ac_t""yes" 1>&6
  1585. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1586. +  cat >> confdefs.h <<EOF
  1587. +#define $ac_tr_hdr 1
  1588. +EOF
  1589. +else
  1590. +  echo "$ac_t""no" 1>&6
  1591. +fi
  1592.  done
  1593.  
  1594. -LIBS_save="${LIBS}"
  1595. -LIBS="${LIBS} -ldbm"
  1596. -have_lib=""
  1597. -echo checking for -ldbm
  1598. -cat > conftest.c <<EOF
  1599. +echo $ac_n "checking for -ldbm""... $ac_c" 1>&6
  1600. +if eval "test \"`echo '$''{'ac_cv_lib_dbm'+set}'`\" = set"; then
  1601. +  echo $ac_n "(cached) $ac_c" 1>&6
  1602. +else
  1603. +  ac_save_LIBS="$LIBS"
  1604. +LIBS="-ldbm  $LIBS"
  1605. +cat > conftest.$ac_ext <<EOF
  1606. +#line 1154 "configure"
  1607.  #include "confdefs.h"
  1608.  
  1609. -int main() { exit(0); }
  1610. -int t() { main(); }
  1611. +int main() { t(); return 0; }
  1612. +int t() {
  1613. +main()
  1614. +; return 0; }
  1615.  EOF
  1616. -if eval $compile; then
  1617. +if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1618.    rm -rf conftest*
  1619. -  have_lib="1"
  1620. -
  1621. +  ac_cv_lib_dbm=yes
  1622. +else
  1623. +  rm -rf conftest*
  1624. +  ac_cv_lib_dbm=no
  1625.  fi
  1626.  rm -f conftest*
  1627. -LIBS="${LIBS_save}"
  1628. -if test -n "${have_lib}"; then
  1629. -   
  1630. -{
  1631. -test -n "$verbose" && \
  1632. -echo "    defining HAVE_LIBDBM"
  1633. -echo "#define" HAVE_LIBDBM 1 >> confdefs.h
  1634. -DEFS="$DEFS -DHAVE_LIBDBM=1"
  1635. -SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBDBM\${SEDdB}HAVE_LIBDBM\${SEDdC}1\${SEDdD}
  1636. -\${SEDuA}HAVE_LIBDBM\${SEDuB}HAVE_LIBDBM\${SEDuC}1\${SEDuD}
  1637. -\${SEDeA}HAVE_LIBDBM\${SEDeB}HAVE_LIBDBM\${SEDeC}1\${SEDeD}
  1638. -"
  1639. -}
  1640. +LIBS="$ac_save_LIBS"
  1641. +
  1642. +fi
  1643. +echo "$ac_t""$ac_cv_lib_dbm" 1>&6
  1644. +if test "$ac_cv_lib_dbm" = yes; then
  1645. +  cat >> confdefs.h <<\EOF
  1646. +#define HAVE_LIBDBM 1
  1647. +EOF
  1648. +
  1649. +  LIBS="-ldbm $LIBS"
  1650.  
  1651. -   LIBS="${LIBS} -ldbm"
  1652.  fi
  1653.  
  1654. -LIBS_save="${LIBS}"
  1655. -LIBS="${LIBS} -lndbm"
  1656. -have_lib=""
  1657. -echo checking for -lndbm
  1658. -cat > conftest.c <<EOF
  1659. +echo $ac_n "checking for -lndbm""... $ac_c" 1>&6
  1660. +if eval "test \"`echo '$''{'ac_cv_lib_ndbm'+set}'`\" = set"; then
  1661. +  echo $ac_n "(cached) $ac_c" 1>&6
  1662. +else
  1663. +  ac_save_LIBS="$LIBS"
  1664. +LIBS="-lndbm  $LIBS"
  1665. +cat > conftest.$ac_ext <<EOF
  1666. +#line 1190 "configure"
  1667.  #include "confdefs.h"
  1668.  
  1669. -int main() { exit(0); }
  1670. -int t() { main(); }
  1671. +int main() { t(); return 0; }
  1672. +int t() {
  1673. +main()
  1674. +; return 0; }
  1675.  EOF
  1676. -if eval $compile; then
  1677. +if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1678.    rm -rf conftest*
  1679. -  have_lib="1"
  1680. -
  1681. +  ac_cv_lib_ndbm=yes
  1682. +else
  1683. +  rm -rf conftest*
  1684. +  ac_cv_lib_ndbm=no
  1685.  fi
  1686.  rm -f conftest*
  1687. -LIBS="${LIBS_save}"
  1688. -if test -n "${have_lib}"; then
  1689. -   
  1690. -{
  1691. -test -n "$verbose" && \
  1692. -echo "    defining HAVE_LIBNDBM"
  1693. -echo "#define" HAVE_LIBNDBM 1 >> confdefs.h
  1694. -DEFS="$DEFS -DHAVE_LIBNDBM=1"
  1695. -SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_LIBNDBM\${SEDdB}HAVE_LIBNDBM\${SEDdC}1\${SEDdD}
  1696. -\${SEDuA}HAVE_LIBNDBM\${SEDuB}HAVE_LIBNDBM\${SEDuC}1\${SEDuD}
  1697. -\${SEDeA}HAVE_LIBNDBM\${SEDeB}HAVE_LIBNDBM\${SEDeC}1\${SEDeD}
  1698. -"
  1699. -}
  1700. +LIBS="$ac_save_LIBS"
  1701. +
  1702. +fi
  1703. +echo "$ac_t""$ac_cv_lib_ndbm" 1>&6
  1704. +if test "$ac_cv_lib_ndbm" = yes; then
  1705. +  cat >> confdefs.h <<\EOF
  1706. +#define HAVE_LIBNDBM 1
  1707. +EOF
  1708. +
  1709. +  LIBS="-lndbm $LIBS"
  1710.  
  1711. -   LIBS="${LIBS} -lndbm"
  1712.  fi
  1713.  
  1714. -for func in rename ftruncate flock bcopy fsync
  1715. +for ac_func in rename ftruncate flock bcopy fsync
  1716.  do
  1717. -trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1718. -echo checking for ${func}
  1719. -cat > conftest.c <<EOF
  1720. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1721. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1722. +  echo $ac_n "(cached) $ac_c" 1>&6
  1723. +else
  1724. +  cat > conftest.$ac_ext <<EOF
  1725. +#line 1226 "configure"
  1726.  #include "confdefs.h"
  1727. -#include <ctype.h>
  1728. -int main() { exit(0); }
  1729. -int t() { 
  1730. +/* System header to define __stub macros and hopefully few prototypes,
  1731. +    which can conflict with char $ac_func(); below.  */
  1732. +#include <assert.h>
  1733. +/* Override any gcc2 internal prototype to avoid an error.  */
  1734. +/* We use char because int might match the return type of a gcc2
  1735. +    builtin and then its argument prototype would still apply.  */
  1736. +char $ac_func();
  1737. +
  1738. +int main() { t(); return 0; }
  1739. +int t() {
  1740. +
  1741.  /* The GNU C library defines this for functions which it implements
  1742.      to always fail with ENOSYS.  Some functions are actually named
  1743.      something starting with __ and the normal name is an alias.  */
  1744. -#if defined (__stub_${func}) || defined (__stub___${func})
  1745. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1746.  choke me
  1747.  #else
  1748. -/* Override any gcc2 internal prototype to avoid an error.  */
  1749. -extern char ${func}(); ${func}();
  1750. +$ac_func();
  1751.  #endif
  1752. - }
  1753. +
  1754. +; return 0; }
  1755.  EOF
  1756. -if eval $compile; then
  1757. +if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1758.    rm -rf conftest*
  1759. -  {
  1760. -test -n "$verbose" && \
  1761. -echo "    defining ${trfunc}"
  1762. -echo "#define" ${trfunc} 1 >> confdefs.h
  1763. -DEFS="$DEFS -D${trfunc}=1"
  1764. -SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
  1765. -\${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
  1766. -\${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
  1767. -"
  1768. -}
  1769. -
  1770. -
  1771. +  eval "ac_cv_func_$ac_func=yes"
  1772. +else
  1773. +  rm -rf conftest*
  1774. +  eval "ac_cv_func_$ac_func=no"
  1775.  fi
  1776.  rm -f conftest*
  1777. +
  1778. +fi
  1779. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1780. +  echo "$ac_t""yes" 1>&6
  1781. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1782. +  cat >> confdefs.h <<EOF
  1783. +#define $ac_tr_func 1
  1784. +EOF
  1785. +else
  1786. +  echo "$ac_t""no" 1>&6
  1787. +fi
  1788.  done
  1789.  
  1790. -for func in getopt
  1791. +for ac_func in getopt
  1792.  do
  1793. -echo checking for ${func}
  1794. -cat > conftest.c <<EOF
  1795. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1796. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1797. +  echo $ac_n "(cached) $ac_c" 1>&6
  1798. +else
  1799. +  cat > conftest.$ac_ext <<EOF
  1800. +#line 1279 "configure"
  1801.  #include "confdefs.h"
  1802. -#include <ctype.h>
  1803. -int main() { exit(0); }
  1804. -int t() { 
  1805. +/* System header to define __stub macros and hopefully few prototypes,
  1806. +    which can conflict with char $ac_func(); below.  */
  1807. +#include <assert.h>
  1808. +/* Override any gcc2 internal prototype to avoid an error.  */
  1809. +/* We use char because int might match the return type of a gcc2
  1810. +    builtin and then its argument prototype would still apply.  */
  1811. +char $ac_func();
  1812. +
  1813. +int main() { t(); return 0; }
  1814. +int t() {
  1815. +
  1816.  /* The GNU C library defines this for functions which it implements
  1817.      to always fail with ENOSYS.  Some functions are actually named
  1818.      something starting with __ and the normal name is an alias.  */
  1819. -#if defined (__stub_${func}) || defined (__stub___${func})
  1820. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1821.  choke me
  1822.  #else
  1823. -/* Override any gcc2 internal prototype to avoid an error.  */
  1824. -extern char ${func}(); ${func}();
  1825. +$ac_func();
  1826.  #endif
  1827. - }
  1828. +
  1829. +; return 0; }
  1830.  EOF
  1831. -if eval $compile; then
  1832. -  :
  1833. +if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1834. +  rm -rf conftest*
  1835. +  eval "ac_cv_func_$ac_func=yes"
  1836.  else
  1837.    rm -rf conftest*
  1838. -  LIBOBJS="$LIBOBJS ${func}.o"
  1839. -test -n "$verbose" && echo "    using ${func}.o instead"
  1840. +  eval "ac_cv_func_$ac_func=no"
  1841.  fi
  1842.  rm -f conftest*
  1843.  
  1844. +fi
  1845. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1846. +  echo "$ac_t""yes" 1>&6
  1847. +  :
  1848. +else
  1849. +  echo "$ac_t""no" 1>&6
  1850. +LIBOBJS="$LIBOBJS ${ac_func}.o"
  1851. +fi
  1852. +
  1853.  done
  1854.  
  1855.  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1856.  # for constant arguments.  Useless!
  1857. -echo checking for working alloca.h
  1858. -cat > conftest.c <<EOF
  1859. +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1860. +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1861. +  echo $ac_n "(cached) $ac_c" 1>&6
  1862. +else
  1863. +  cat > conftest.$ac_ext <<EOF
  1864. +#line 1330 "configure"
  1865.  #include "confdefs.h"
  1866.  #include <alloca.h>
  1867. -int main() { exit(0); }
  1868. -int t() { char *p = alloca(2 * sizeof(int)); }
  1869. +int main() { t(); return 0; }
  1870. +int t() {
  1871. +char *p = alloca(2 * sizeof(int));
  1872. +; return 0; }
  1873.  EOF
  1874. -if eval $compile; then
  1875. +if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1876.    rm -rf conftest*
  1877. -  
  1878. -{
  1879. -test -n "$verbose" && \
  1880. -echo "    defining HAVE_ALLOCA_H"
  1881. -echo "#define" HAVE_ALLOCA_H 1 >> confdefs.h
  1882. -DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  1883. -SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ALLOCA_H\${SEDdB}HAVE_ALLOCA_H\${SEDdC}1\${SEDdD}
  1884. -\${SEDuA}HAVE_ALLOCA_H\${SEDuB}HAVE_ALLOCA_H\${SEDuC}1\${SEDuD}
  1885. -\${SEDeA}HAVE_ALLOCA_H\${SEDeB}HAVE_ALLOCA_H\${SEDeC}1\${SEDeD}
  1886. -"
  1887. -}
  1888. +  ac_cv_header_alloca_h=yes
  1889. +else
  1890. +  rm -rf conftest*
  1891. +  ac_cv_header_alloca_h=no
  1892. +fi
  1893. +rm -f conftest*
  1894.  
  1895. +fi
  1896. +
  1897. +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1898. +if test $ac_cv_header_alloca_h = yes; then
  1899. +  cat >> confdefs.h <<\EOF
  1900. +#define HAVE_ALLOCA_H 1
  1901. +EOF
  1902.  
  1903.  fi
  1904. -rm -f conftest*
  1905.  
  1906. -decl="#ifdef __GNUC__
  1907. -#define alloca __builtin_alloca
  1908. -#else
  1909. -#if HAVE_ALLOCA_H
  1910. -#include <alloca.h>
  1911. +echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1912. +if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1913. +  echo $ac_n "(cached) $ac_c" 1>&6
  1914. +else
  1915. +  cat > conftest.$ac_ext <<EOF
  1916. +#line 1362 "configure"
  1917. +#include "confdefs.h"
  1918. +
  1919. +#ifdef __GNUC__
  1920. +# define alloca __builtin_alloca
  1921.  #else
  1922. -#ifdef _AIX
  1923. +# if HAVE_ALLOCA_H
  1924. +#  include <alloca.h>
  1925. +# else
  1926. +#  ifdef _AIX
  1927.   #pragma alloca
  1928. -#else
  1929. +#  else
  1930. +#   ifndef alloca /* predefined by HP cc +Olibcalls */
  1931.  char *alloca ();
  1932. +#   endif
  1933. +#  endif
  1934. +# endif
  1935.  #endif
  1936. -#endif
  1937. -#endif
  1938. -"
  1939. -echo checking for alloca
  1940. -cat > conftest.c <<EOF
  1941. -#include "confdefs.h"
  1942. -$decl
  1943. -int main() { exit(0); }
  1944. -int t() { char *p = (char *) alloca(1); }
  1945. +
  1946. +int main() { t(); return 0; }
  1947. +int t() {
  1948. +char *p = (char *) alloca(1);
  1949. +; return 0; }
  1950.  EOF
  1951. -if eval $compile; then
  1952. -  :
  1953. +if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1954. +  rm -rf conftest*
  1955. +  ac_cv_func_alloca=yes
  1956.  else
  1957.    rm -rf conftest*
  1958. -  alloca_missing=1
  1959. -cat > conftest.c <<EOF
  1960. -#include "confdefs.h"
  1961. +  ac_cv_func_alloca=no
  1962. +fi
  1963. +rm -f conftest*
  1964.  
  1965. -#if defined(CRAY) && ! defined(CRAY2)
  1966. -winnitude
  1967. -#else
  1968. -lossage
  1969. -#endif
  1970. +fi
  1971.  
  1972. +echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1973. +if test $ac_cv_func_alloca = yes; then
  1974. +  cat >> confdefs.h <<\EOF
  1975. +#define HAVE_ALLOCA 1
  1976.  EOF
  1977. -eval "$CPP conftest.c > conftest.out 2>&1"
  1978. -if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  1979. -  rm -rf conftest*
  1980. -  echo checking for _getb67
  1981. -cat > conftest.c <<EOF
  1982. -#include "confdefs.h"
  1983. -#include <ctype.h>
  1984. -int main() { exit(0); }
  1985. -int t() { 
  1986. -/* The GNU C library defines this for functions which it implements
  1987. -    to always fail with ENOSYS.  Some functions are actually named
  1988. -    something starting with __ and the normal name is an alias.  */
  1989. -#if defined (__stub__getb67) || defined (__stub____getb67)
  1990. -choke me
  1991. -#else
  1992. -/* Override any gcc2 internal prototype to avoid an error.  */
  1993. -extern char _getb67(); _getb67();
  1994. -#endif
  1995. - }
  1996. +
  1997. +fi
  1998. +
  1999. +if test $ac_cv_func_alloca = no; then
  2000. +  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2001. +  # that cause trouble.  Some versions do not even contain alloca or
  2002. +  # contain a buggy version.  If you still want to use their alloca,
  2003. +  # use ar to extract alloca.o from them instead of compiling alloca.c.
  2004. +  ALLOCA=alloca.o
  2005. +  cat >> confdefs.h <<\EOF
  2006. +#define C_ALLOCA 1
  2007.  EOF
  2008. -if eval $compile; then
  2009. -  rm -rf conftest*
  2010. -  {
  2011. -test -n "$verbose" && \
  2012. -echo "    defining" CRAY_STACKSEG_END to be _getb67
  2013. -echo "#define" CRAY_STACKSEG_END _getb67 >> confdefs.h
  2014. -DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  2015. -SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}_getb67\${SEDdD}
  2016. -\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}_getb67\${SEDuD}
  2017. -\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}_getb67\${SEDeD}
  2018. -"
  2019. -}
  2020.  
  2021.  
  2022. +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2023. +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2024. +  echo $ac_n "(cached) $ac_c" 1>&6
  2025.  else
  2026. -  rm -rf conftest*
  2027. -  echo checking for GETB67
  2028. -cat > conftest.c <<EOF
  2029. +  cat > conftest.$ac_ext <<EOF
  2030. +#line 1421 "configure"
  2031.  #include "confdefs.h"
  2032. -#include <ctype.h>
  2033. -int main() { exit(0); }
  2034. -int t() { 
  2035. -/* The GNU C library defines this for functions which it implements
  2036. -    to always fail with ENOSYS.  Some functions are actually named
  2037. -    something starting with __ and the normal name is an alias.  */
  2038. -#if defined (__stub_GETB67) || defined (__stub___GETB67)
  2039. -choke me
  2040. +#if defined(CRAY) && ! defined(CRAY2)
  2041. +webecray
  2042.  #else
  2043. -/* Override any gcc2 internal prototype to avoid an error.  */
  2044. -extern char GETB67(); GETB67();
  2045. +wenotbecray
  2046.  #endif
  2047. - }
  2048. +
  2049.  EOF
  2050. -if eval $compile; then
  2051. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2052. +  egrep "webecray" >/dev/null 2>&1; then
  2053.    rm -rf conftest*
  2054. -  {
  2055. -test -n "$verbose" && \
  2056. -echo "    defining" CRAY_STACKSEG_END to be GETB67
  2057. -echo "#define" CRAY_STACKSEG_END GETB67 >> confdefs.h
  2058. -DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  2059. -SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}GETB67\${SEDdD}
  2060. -\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}GETB67\${SEDuD}
  2061. -\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}GETB67\${SEDeD}
  2062. -"
  2063. -}
  2064. +  ac_cv_os_cray=yes
  2065. +else
  2066. +  rm -rf conftest*
  2067. +  ac_cv_os_cray=no
  2068. +fi
  2069. +rm -f conftest*
  2070.  
  2071. +fi
  2072.  
  2073. +echo "$ac_t""$ac_cv_os_cray" 1>&6
  2074. +if test $ac_cv_os_cray = yes; then
  2075. +for ac_func in _getb67 GETB67 getb67; do
  2076. +  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2077. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2078. +  echo $ac_n "(cached) $ac_c" 1>&6
  2079.  else
  2080. -  rm -rf conftest*
  2081. -  echo checking for getb67
  2082. -cat > conftest.c <<EOF
  2083. +  cat > conftest.$ac_ext <<EOF
  2084. +#line 1450 "configure"
  2085.  #include "confdefs.h"
  2086. -#include <ctype.h>
  2087. -int main() { exit(0); }
  2088. -int t() { 
  2089. +/* System header to define __stub macros and hopefully few prototypes,
  2090. +    which can conflict with char $ac_func(); below.  */
  2091. +#include <assert.h>
  2092. +/* Override any gcc2 internal prototype to avoid an error.  */
  2093. +/* We use char because int might match the return type of a gcc2
  2094. +    builtin and then its argument prototype would still apply.  */
  2095. +char $ac_func();
  2096. +
  2097. +int main() { t(); return 0; }
  2098. +int t() {
  2099. +
  2100.  /* The GNU C library defines this for functions which it implements
  2101.      to always fail with ENOSYS.  Some functions are actually named
  2102.      something starting with __ and the normal name is an alias.  */
  2103. -#if defined (__stub_getb67) || defined (__stub___getb67)
  2104. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2105.  choke me
  2106.  #else
  2107. -/* Override any gcc2 internal prototype to avoid an error.  */
  2108. -extern char getb67(); getb67();
  2109. +$ac_func();
  2110.  #endif
  2111. - }
  2112. +
  2113. +; return 0; }
  2114.  EOF
  2115. -if eval $compile; then
  2116. +if { (eval echo configure:1474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2117.    rm -rf conftest*
  2118. -  {
  2119. -test -n "$verbose" && \
  2120. -echo "    defining" CRAY_STACKSEG_END to be getb67
  2121. -echo "#define" CRAY_STACKSEG_END getb67 >> confdefs.h
  2122. -DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  2123. -SEDDEFS="${SEDDEFS}\${SEDdA}CRAY_STACKSEG_END\${SEDdB}CRAY_STACKSEG_END\${SEDdC}getb67\${SEDdD}
  2124. -\${SEDuA}CRAY_STACKSEG_END\${SEDuB}CRAY_STACKSEG_END\${SEDuC}getb67\${SEDuD}
  2125. -\${SEDeA}CRAY_STACKSEG_END\${SEDeB}CRAY_STACKSEG_END\${SEDeC}getb67\${SEDeD}
  2126. -"
  2127. -}
  2128. -
  2129. -
  2130. -fi
  2131. -rm -f conftest*
  2132. -
  2133. +  eval "ac_cv_func_$ac_func=yes"
  2134. +else
  2135. +  rm -rf conftest*
  2136. +  eval "ac_cv_func_$ac_func=no"
  2137.  fi
  2138.  rm -f conftest*
  2139.  
  2140.  fi
  2141. -rm -f conftest*
  2142. -
  2143. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2144. +  echo "$ac_t""yes" 1>&6
  2145. +  cat >> confdefs.h <<EOF
  2146. +#define CRAY_STACKSEG_END $ac_func
  2147. +EOF
  2148.  
  2149. +  break
  2150. +else
  2151. +  echo "$ac_t""no" 1>&6
  2152.  fi
  2153. -rm -f conftest*
  2154. -
  2155.  
  2156. +done
  2157.  fi
  2158. -rm -f conftest*
  2159.  
  2160. -if test -n "$alloca_missing"; then
  2161. -  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2162. -  # that cause trouble.  Some versions do not even contain alloca or
  2163. -  # contain a buggy version.  If you still want to use their alloca,
  2164. -  # use ar to extract alloca.o from them instead of compiling alloca.c.
  2165. -  ALLOCA=alloca.o
  2166. -  
  2167. -{
  2168. -test -n "$verbose" && \
  2169. -echo "    defining C_ALLOCA"
  2170. -echo "#define" C_ALLOCA 1 >> confdefs.h
  2171. -DEFS="$DEFS -DC_ALLOCA=1"
  2172. -SEDDEFS="${SEDDEFS}\${SEDdA}C_ALLOCA\${SEDdB}C_ALLOCA\${SEDdC}1\${SEDdD}
  2173. -\${SEDuA}C_ALLOCA\${SEDuB}C_ALLOCA\${SEDuC}1\${SEDuD}
  2174. -\${SEDeA}C_ALLOCA\${SEDeB}C_ALLOCA\${SEDeC}1\${SEDeD}
  2175. -"
  2176. -}
  2177. -
  2178. -
  2179. -  echo 'checking stack direction for C alloca'
  2180. -  echo checking whether cross-compiling
  2181. -# If we cannot run a trivial program, we must be cross compiling.
  2182. -cat > conftest.c <<EOF
  2183. -#include "confdefs.h"
  2184. -main(){exit(0);}
  2185. -EOF
  2186. -eval $compile
  2187. -if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2188. -  :
  2189. +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2190. +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2191. +  echo $ac_n "(cached) $ac_c" 1>&6
  2192.  else
  2193. -  cross_compiling=1
  2194. -fi
  2195. -rm -fr conftest*
  2196. -
  2197. -if test -n "$cross_compiling"
  2198. -then
  2199. -  
  2200. -{
  2201. -test -n "$verbose" && \
  2202. -echo "    defining" STACK_DIRECTION to be 0
  2203. -echo "#define" STACK_DIRECTION 0 >> confdefs.h
  2204. -DEFS="$DEFS -DSTACK_DIRECTION=0"
  2205. -SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}0\${SEDdD}
  2206. -\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}0\${SEDuD}
  2207. -\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}0\${SEDeD}
  2208. -"
  2209. -}
  2210. -
  2211. +  if test "$cross_compiling" = yes; then
  2212. +  ac_cv_c_stack_direction=0
  2213.  else
  2214. -cat > conftest.c <<EOF
  2215. +cat > conftest.$ac_ext <<EOF
  2216. +#line 1506 "configure"
  2217.  #include "confdefs.h"
  2218.  find_stack_direction ()
  2219.  {
  2220. @@ -821,275 +1521,482 @@ main ()
  2221.    exit (find_stack_direction() < 0);
  2222.  }
  2223.  EOF
  2224. -eval $compile
  2225. +{ (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2226.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2227. -  
  2228. -{
  2229. -test -n "$verbose" && \
  2230. -echo "    defining" STACK_DIRECTION to be 1
  2231. -echo "#define" STACK_DIRECTION 1 >> confdefs.h
  2232. -DEFS="$DEFS -DSTACK_DIRECTION=1"
  2233. -SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}1\${SEDdD}
  2234. -\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}1\${SEDuD}
  2235. -\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}1\${SEDeD}
  2236. -"
  2237. -}
  2238. +  ac_cv_c_stack_direction=1
  2239. +else
  2240. +  ac_cv_c_stack_direction=-1
  2241. +fi
  2242. +fi
  2243. +rm -fr conftest*
  2244. +fi
  2245.  
  2246. +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2247. +cat >> confdefs.h <<EOF
  2248. +#define STACK_DIRECTION $ac_cv_c_stack_direction
  2249. +EOF
  2250.  
  2251. -else
  2252. -  
  2253. -{
  2254. -test -n "$verbose" && \
  2255. -echo "    defining" STACK_DIRECTION to be -1
  2256. -echo "#define" STACK_DIRECTION -1 >> confdefs.h
  2257. -DEFS="$DEFS -DSTACK_DIRECTION=-1"
  2258. -SEDDEFS="${SEDDEFS}\${SEDdA}STACK_DIRECTION\${SEDdB}STACK_DIRECTION\${SEDdC}-1\${SEDdD}
  2259. -\${SEDuA}STACK_DIRECTION\${SEDuB}STACK_DIRECTION\${SEDuC}-1\${SEDuD}
  2260. -\${SEDeA}STACK_DIRECTION\${SEDeB}STACK_DIRECTION\${SEDeC}-1\${SEDeD}
  2261. -"
  2262. -}
  2263. +fi
  2264.  
  2265. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2266. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2267. +  echo $ac_n "(cached) $ac_c" 1>&6
  2268. +else
  2269. +  cat > conftest.$ac_ext <<EOF
  2270. +#line 1547 "configure"
  2271. +#include "confdefs.h"
  2272. +#include <stdlib.h>
  2273. +#include <stdarg.h>
  2274. +#include <string.h>
  2275. +#include <float.h>
  2276. +EOF
  2277. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2278. +{ (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2279. +ac_err=`grep -v '^ *+' conftest.out`
  2280. +if test -z "$ac_err"; then
  2281. +  rm -rf conftest*
  2282. +  ac_cv_header_stdc=yes
  2283. +else
  2284. +  echo "$ac_err" >&5
  2285. +  rm -rf conftest*
  2286. +  ac_cv_header_stdc=no
  2287.  fi
  2288. +rm -f conftest*
  2289. +
  2290. +if test $ac_cv_header_stdc = yes; then
  2291. +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2292. +cat > conftest.$ac_ext <<EOF
  2293. +#line 1570 "configure"
  2294. +#include "confdefs.h"
  2295. +#include <string.h>
  2296. +EOF
  2297. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2298. +  egrep "memchr" >/dev/null 2>&1; then
  2299. +  :
  2300. +else
  2301. +  rm -rf conftest*
  2302. +  ac_cv_header_stdc=no
  2303.  fi
  2304. -rm -fr conftest*
  2305. +rm -f conftest*
  2306. +
  2307.  fi
  2308.  
  2309. -echo checking for off_t in sys/types.h
  2310. -echo '#include "confdefs.h"
  2311. -#include <sys/types.h>' > conftest.c
  2312. -eval "$CPP conftest.c > conftest.out 2>&1"
  2313. -if egrep "off_t" conftest.out >/dev/null 2>&1; then
  2314. +if test $ac_cv_header_stdc = yes; then
  2315. +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2316. +cat > conftest.$ac_ext <<EOF
  2317. +#line 1588 "configure"
  2318. +#include "confdefs.h"
  2319. +#include <stdlib.h>
  2320. +EOF
  2321. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2322. +  egrep "free" >/dev/null 2>&1; then
  2323.    :
  2324.  else
  2325.    rm -rf conftest*
  2326. -  
  2327. -{
  2328. -test -n "$verbose" && \
  2329. -echo "    defining" off_t to be long
  2330. -echo "#define" off_t long >> confdefs.h
  2331. -DEFS="$DEFS -Doff_t=long"
  2332. -SEDDEFS="${SEDDEFS}\${SEDdA}off_t\${SEDdB}off_t\${SEDdC}long\${SEDdD}
  2333. -\${SEDuA}off_t\${SEDuB}off_t\${SEDuC}long\${SEDuD}
  2334. -\${SEDeA}off_t\${SEDeB}off_t\${SEDeC}long\${SEDeD}
  2335. -"
  2336. -}
  2337. +  ac_cv_header_stdc=no
  2338. +fi
  2339. +rm -f conftest*
  2340. +
  2341. +fi
  2342. +
  2343. +if test $ac_cv_header_stdc = yes; then
  2344. +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2345. +if test "$cross_compiling" = yes; then
  2346. +  :
  2347. +else
  2348. +cat > conftest.$ac_ext <<EOF
  2349. +#line 1609 "configure"
  2350. +#include "confdefs.h"
  2351. +#include <ctype.h>
  2352. +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2353. +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2354. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2355. +int main () { int i; for (i = 0; i < 256; i++)
  2356. +if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2357. +exit (0); }
  2358.  
  2359. +EOF
  2360. +{ (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2361. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2362. +  :
  2363. +else
  2364. +  ac_cv_header_stdc=no
  2365. +fi
  2366. +fi
  2367. +rm -fr conftest*
  2368. +fi
  2369. +fi
  2370. +
  2371. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2372. +if test $ac_cv_header_stdc = yes; then
  2373. +  cat >> confdefs.h <<\EOF
  2374. +#define STDC_HEADERS 1
  2375. +EOF
  2376. +
  2377. +fi
  2378. +
  2379. +echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2380. +if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  2381. +  echo $ac_n "(cached) $ac_c" 1>&6
  2382. +else
  2383. +  cat > conftest.$ac_ext <<EOF
  2384. +#line 1644 "configure"
  2385. +#include "confdefs.h"
  2386. +#include <sys/types.h>
  2387. +#if STDC_HEADERS
  2388. +#include <stdlib.h>
  2389. +#endif
  2390. +EOF
  2391. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2392. +  egrep "off_t" >/dev/null 2>&1; then
  2393. +  rm -rf conftest*
  2394. +  ac_cv_type_off_t=yes
  2395. +else
  2396. +  rm -rf conftest*
  2397. +  ac_cv_type_off_t=no
  2398.  fi
  2399.  rm -f conftest*
  2400.  
  2401. -echo checking for st_blksize in struct stat
  2402. -cat > conftest.c <<EOF
  2403. +fi
  2404. +echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2405. +if test $ac_cv_type_off_t = no; then
  2406. +  cat >> confdefs.h <<\EOF
  2407. +#define off_t long
  2408. +EOF
  2409. +
  2410. +fi
  2411. +
  2412. +echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
  2413. +if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  2414. +  echo $ac_n "(cached) $ac_c" 1>&6
  2415. +else
  2416. +  cat > conftest.$ac_ext <<EOF
  2417. +#line 1675 "configure"
  2418.  #include "confdefs.h"
  2419.  #include <sys/types.h>
  2420.  #include <sys/stat.h>
  2421. -int main() { exit(0); }
  2422. -int t() { struct stat s; s.st_blksize; }
  2423. +int main() { return 0; }
  2424. +int t() {
  2425. +struct stat s; s.st_blksize;
  2426. +; return 0; }
  2427.  EOF
  2428. -if eval $compile; then
  2429. +if { (eval echo configure:1684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2430.    rm -rf conftest*
  2431. -  
  2432. -{
  2433. -test -n "$verbose" && \
  2434. -echo "    defining HAVE_ST_BLKSIZE"
  2435. -echo "#define" HAVE_ST_BLKSIZE 1 >> confdefs.h
  2436. -DEFS="$DEFS -DHAVE_ST_BLKSIZE=1"
  2437. -SEDDEFS="${SEDDEFS}\${SEDdA}HAVE_ST_BLKSIZE\${SEDdB}HAVE_ST_BLKSIZE\${SEDdC}1\${SEDdD}
  2438. -\${SEDuA}HAVE_ST_BLKSIZE\${SEDuB}HAVE_ST_BLKSIZE\${SEDuC}1\${SEDuD}
  2439. -\${SEDeA}HAVE_ST_BLKSIZE\${SEDeB}HAVE_ST_BLKSIZE\${SEDeC}1\${SEDeD}
  2440. -"
  2441. -}
  2442. +  ac_cv_struct_st_blksize=yes
  2443. +else
  2444. +  rm -rf conftest*
  2445. +  ac_cv_struct_st_blksize=no
  2446. +fi
  2447. +rm -f conftest*
  2448.  
  2449. +fi
  2450. +
  2451. +echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
  2452. +if test $ac_cv_struct_st_blksize = yes; then
  2453. +  cat >> confdefs.h <<\EOF
  2454. +#define HAVE_ST_BLKSIZE 1
  2455. +EOF
  2456.  
  2457.  fi
  2458. -rm -f conftest*
  2459.  
  2460. -# Set default prefixes.
  2461. -if test -n "$prefix"; then
  2462. -  test -z "$exec_prefix" && exec_prefix='${prefix}'
  2463. -  prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2464. -fi
  2465. -if test -n "$exec_prefix"; then
  2466. -  prsub="$prsub
  2467. -s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2468. -fi
  2469. -# Quote sed substitution magic chars in DEFS.
  2470. -cat >conftest.def <<EOF
  2471. -$DEFS
  2472. -EOF
  2473. -escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2474. -DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  2475. -rm -f conftest.def
  2476. -# Substitute for predefined variables.
  2477. -
  2478. -trap 'rm -f config.status; exit 1' 1 3 15
  2479. -echo creating config.status
  2480. -rm -f config.status
  2481. -cat > config.status <<EOF
  2482. -#!/bin/sh
  2483. +trap '' 1 2 15
  2484. +cat > confcache <<\EOF
  2485. +# This file is a shell script that caches the results of configure
  2486. +# tests run on this system so they can be shared between configure
  2487. +# scripts and configure runs.  It is not useful on other systems.
  2488. +# If it contains results you don't want to keep, you may remove or edit it.
  2489. +#
  2490. +# By default, configure uses ./config.cache as the cache file,
  2491. +# creating it if it does not exist already.  You can give configure
  2492. +# the --cache-file=FILE option to use a different cache file; that is
  2493. +# what configure does when it calls configure scripts in
  2494. +# subdirectories, so they share the cache.
  2495. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  2496. +# config.status only pays attention to the cache file if you give it the
  2497. +# --recheck option to rerun configure.
  2498. +#
  2499. +EOF
  2500. +# Ultrix sh set writes to stderr and can't be redirected directly,
  2501. +# and sets the high bit in the cache file unless we assign to the vars.
  2502. +(set) 2>&1 |
  2503. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2504. +  >> confcache
  2505. +if cmp -s $cache_file confcache; then
  2506. +  :
  2507. +else
  2508. +  if test -w $cache_file; then
  2509. +    echo "updating cache $cache_file"
  2510. +    cat confcache > $cache_file
  2511. +  else
  2512. +    echo "not updating unwritable cache $cache_file"
  2513. +  fi
  2514. +fi
  2515. +rm -f confcache
  2516. +
  2517. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2518. +
  2519. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2520. +# Let make expand exec_prefix.
  2521. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2522. +
  2523. +# Any assignment to VPATH causes Sun make to only execute
  2524. +# the first set of double-colon rules, so remove it if not needed.
  2525. +# If there is a colon in the path, we need to keep it.
  2526. +if test "x$srcdir" = x.; then
  2527. +  ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2528. +fi
  2529. +
  2530. +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2531. +
  2532. +DEFS=-DHAVE_CONFIG_H
  2533. +
  2534. +# Without the "./", some shells look in PATH for config.status.
  2535. +: ${CONFIG_STATUS=./config.status}
  2536. +
  2537. +echo creating $CONFIG_STATUS
  2538. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  2539. +# being executed, so just move it out of the way instead.
  2540. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2541. +cat > $CONFIG_STATUS <<EOF
  2542. +#! /bin/sh
  2543.  # Generated automatically by configure.
  2544.  # Run this file to recreate the current configuration.
  2545.  # This directory was configured as follows,
  2546.  # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2547.  #
  2548. -# $0 $configure_args
  2549. +# $0 $ac_configure_args
  2550. +#
  2551. +# Compiler output produced by configure, useful for debugging
  2552. +# configure, is in ./config.log if it exists.
  2553.  
  2554. -for arg
  2555. +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2556. +for ac_option
  2557.  do
  2558. -  case "\$arg" in
  2559. -    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2560. -    echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  2561. -    exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  2562. -    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  2563. +  case "\$ac_option" in
  2564. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2565. +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2566. +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2567. +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2568. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  2569. +    exit 0 ;;
  2570. +  -help | --help | --hel | --he | --h)
  2571. +    echo "\$ac_cs_usage"; exit 0 ;;
  2572. +  *) echo "\$ac_cs_usage"; exit 1 ;;
  2573.    esac
  2574.  done
  2575.  
  2576. -trap 'rm -fr Makefile autoconf.h conftest*; exit 1' 1 3 15
  2577. -CC='$CC'
  2578. -CPP='$CPP'
  2579. -INSTALL='$INSTALL'
  2580. -INSTALL_PROGRAM='$INSTALL_PROGRAM'
  2581. -INSTALL_DATA='$INSTALL_DATA'
  2582. -RANLIB='$RANLIB'
  2583. -LIBOBJS='$LIBOBJS'
  2584. -ALLOCA='$ALLOCA'
  2585. -LIBS='$LIBS'
  2586. -srcdir='$srcdir'
  2587. -prefix='$prefix'
  2588. -exec_prefix='$exec_prefix'
  2589. -prsub='$prsub'
  2590. -extrasub='$extrasub'
  2591. -EOF
  2592. -cat >> config.status <<\EOF
  2593. -
  2594. -top_srcdir=$srcdir
  2595. -
  2596. -CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  2597. -for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  2598. -  srcdir=$top_srcdir
  2599. -  # Remove last slash and all that follows it.  Not all systems have dirname.
  2600. -  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  2601. -  if test "$dir" != "$file"; then
  2602. -    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  2603. -    test ! -d $dir && mkdir $dir
  2604. -  fi
  2605. -  echo creating $file
  2606. -  rm -f $file
  2607. -  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  2608. -  sed -e "
  2609. -$prsub
  2610. +ac_given_srcdir=$srcdir
  2611. +ac_given_INSTALL="$INSTALL"
  2612. +
  2613. +trap 'rm -fr `echo "Makefile autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2614. +EOF
  2615. +cat >> $CONFIG_STATUS <<EOF
  2616. +
  2617. +# Protect against being on the right side of a sed subst in config.status.
  2618. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2619. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2620. +$ac_vpsub
  2621.  $extrasub
  2622. +s%@CFLAGS@%$CFLAGS%g
  2623. +s%@CPPFLAGS@%$CPPFLAGS%g
  2624. +s%@CXXFLAGS@%$CXXFLAGS%g
  2625. +s%@DEFS@%$DEFS%g
  2626. +s%@LDFLAGS@%$LDFLAGS%g
  2627. +s%@LIBS@%$LIBS%g
  2628. +s%@exec_prefix@%$exec_prefix%g
  2629. +s%@prefix@%$prefix%g
  2630. +s%@program_transform_name@%$program_transform_name%g
  2631. +s%@bindir@%$bindir%g
  2632. +s%@sbindir@%$sbindir%g
  2633. +s%@libexecdir@%$libexecdir%g
  2634. +s%@datadir@%$datadir%g
  2635. +s%@sysconfdir@%$sysconfdir%g
  2636. +s%@sharedstatedir@%$sharedstatedir%g
  2637. +s%@localstatedir@%$localstatedir%g
  2638. +s%@libdir@%$libdir%g
  2639. +s%@includedir@%$includedir%g
  2640. +s%@oldincludedir@%$oldincludedir%g
  2641. +s%@infodir@%$infodir%g
  2642. +s%@guidedir@%$guidedir%g
  2643. +s%@psdir@%$psdir%g
  2644. +s%@dvidir@%$dvidir%g
  2645. +s%@mandir@%$mandir%g
  2646.  s%@CC@%$CC%g
  2647.  s%@CPP@%$CPP%g
  2648. -s%@INSTALL@%$INSTALL%g
  2649.  s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2650.  s%@INSTALL_DATA@%$INSTALL_DATA%g
  2651.  s%@RANLIB@%$RANLIB%g
  2652.  s%@LIBOBJS@%$LIBOBJS%g
  2653.  s%@ALLOCA@%$ALLOCA%g
  2654. -s%@LIBS@%$LIBS%g
  2655. +
  2656. +CEOF
  2657. +EOF
  2658. +cat >> $CONFIG_STATUS <<EOF
  2659. +
  2660. +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2661. +EOF
  2662. +cat >> $CONFIG_STATUS <<\EOF
  2663. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2664. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  2665. +  case "$ac_file" in
  2666. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2667. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2668. +  *) ac_file_in="${ac_file}.in" ;;
  2669. +  esac
  2670. +
  2671. +  # Adjust relative srcdir, etc. for subdirectories.
  2672. +
  2673. +  # Remove last slash and all that follows it.  Not all systems have dirname.
  2674. +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2675. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2676. +    # The file is in a subdirectory.
  2677. +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  2678. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2679. +    # A "../" for each directory in $ac_dir_suffix.
  2680. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2681. +  else
  2682. +    ac_dir_suffix= ac_dots=
  2683. +  fi
  2684. +
  2685. +  case "$ac_given_srcdir" in
  2686. +  .)  srcdir=.
  2687. +      if test -z "$ac_dots"; then top_srcdir=.
  2688. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2689. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2690. +  *) # Relative path.
  2691. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2692. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2693. +  esac
  2694. +
  2695. +  case "$ac_given_INSTALL" in
  2696. +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2697. +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2698. +  esac
  2699. +  echo creating "$ac_file"
  2700. +  rm -f "$ac_file"
  2701. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2702. +  case "$ac_file" in
  2703. +  *Makefile*) ac_comsub="1i\\
  2704. +# $configure_input" ;;
  2705. +  *) ac_comsub= ;;
  2706. +  esac
  2707. +  sed -e "$ac_comsub
  2708. +s%@configure_input@%$configure_input%g
  2709.  s%@srcdir@%$srcdir%g
  2710. -s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  2711. +s%@top_srcdir@%$top_srcdir%g
  2712. +s%@INSTALL@%$INSTALL%g
  2713. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2714.  fi; done
  2715. +rm -f conftest.subs
  2716. +
  2717. +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2718. +# NAME is the cpp macro being defined and VALUE is the value it is being given.
  2719. +#
  2720. +# ac_d sets the value in "#define NAME VALUE" lines.
  2721. +ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2722. +ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2723. +ac_dC='\3'
  2724. +ac_dD='%g'
  2725. +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2726. +ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2727. +ac_uB='\([     ]\)%\1#\2define\3'
  2728. +ac_uC=' '
  2729. +ac_uD='\4%g'
  2730. +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2731. +ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2732. +ac_eB='$%\1#\2define\3'
  2733. +ac_eC=' '
  2734. +ac_eD='%g'
  2735.  
  2736.  CONFIG_HEADERS=${CONFIG_HEADERS-"autoconf.h"}
  2737. -for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  2738. -echo creating $file
  2739. +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2740. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  2741. +  case "$ac_file" in
  2742. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2743. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2744. +  *) ac_file_in="${ac_file}.in" ;;
  2745. +  esac
  2746.  
  2747. -# These sed commands are put into SEDDEFS when defining a macro.
  2748. -# They are broken into pieces to make the sed script easier to manage.
  2749. -# They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  2750. -# is the cpp macro being defined and VALUE is the value it is being given.
  2751. -# Each defining turns into a single global substitution command.
  2752. -#
  2753. -# SEDd sets the value in "#define NAME VALUE" lines.
  2754. -SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2755. -SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  2756. -SEDdC='\3'
  2757. -SEDdD='@g'
  2758. -# SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2759. -SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2760. -SEDuB='\([     ]\)@\1#\2define\3'
  2761. -SEDuC=' '
  2762. -SEDuD='\4@g'
  2763. -# SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2764. -SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2765. -SEDeB='$@\1#\2define\3'
  2766. -SEDeC=' '
  2767. -SEDeD='@g'
  2768. -rm -f conftest.sed
  2769. -EOF
  2770. -# Turn off quoting long enough to insert the sed commands.
  2771. -rm -f conftest.sh
  2772. -cat > conftest.sh <<EOF
  2773. -$SEDDEFS
  2774. +  echo creating $ac_file
  2775. +
  2776. +  rm -f conftest.frag conftest.in conftest.out
  2777. +  cp $ac_given_srcdir/$ac_file_in conftest.in
  2778. +
  2779. +EOF
  2780. +
  2781. +# Transform confdefs.h into a sed script conftest.vals that substitutes
  2782. +# the proper values into config.h.in to produce config.h.  And first:
  2783. +# Protect against being on the right side of a sed subst in config.status.
  2784. +# Protect against being in an unquoted here document in config.status.
  2785. +rm -f conftest.vals
  2786. +cat > conftest.hdr <<\EOF
  2787. +s/[\\&%]/\\&/g
  2788. +s%[\\$`]%\\&%g
  2789. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2790. +s%ac_d%ac_u%gp
  2791. +s%ac_u%ac_e%gp
  2792.  EOF
  2793. +sed -n -f conftest.hdr confdefs.h > conftest.vals
  2794. +rm -f conftest.hdr
  2795.  
  2796. -# Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  2797. -# on the size of here documents.
  2798. +# This sed command replaces #undef with comments.  This is necessary, for
  2799. +# example, in the case of _POSIX_SOURCE, which is predefined and required
  2800. +# on some systems where configure will not decide to define it.
  2801. +cat >> conftest.vals <<\EOF
  2802. +s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2803. +EOF
  2804.  
  2805. +# Break up conftest.vals because some shells have a limit on
  2806. +# the size of here documents, and old seds have small limits too.
  2807.  # Maximum number of lines to put in a single here document.
  2808. -maxshlines=9
  2809. +ac_max_here_lines=12
  2810.  
  2811. +rm -f conftest.tail
  2812.  while :
  2813.  do
  2814. -  # wc gives bogus results for an empty file on some systems.
  2815. -  lines=`grep -c . conftest.sh`
  2816. -  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  2817. -  rm -f conftest.s1 conftest.s2
  2818. -  sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  2819. -  sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  2820. -  # Write a limited-size here document to append to conftest.sed.
  2821. -  echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  2822. -  cat conftest.s1 >> config.status
  2823. -  echo 'CONFEOF' >> config.status
  2824. -  rm -f conftest.s1 conftest.sh
  2825. -  mv conftest.s2 conftest.sh
  2826. +  ac_lines=`grep -c . conftest.vals`
  2827. +  # grep -c gives empty output for an empty file on some AIX systems.
  2828. +  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2829. +  # Write a limited-size here document to conftest.frag.
  2830. +  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2831. +  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2832. +  echo 'CEOF
  2833. +  sed -f conftest.frag conftest.in > conftest.out
  2834. +  rm -f conftest.in
  2835. +  mv conftest.out conftest.in
  2836. +' >> $CONFIG_STATUS
  2837. +  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2838. +  rm -f conftest.vals
  2839. +  mv conftest.tail conftest.vals
  2840.  done
  2841. -rm -f conftest.sh
  2842. +rm -f conftest.vals
  2843.  
  2844. -# Now back to your regularly scheduled config.status.
  2845. -cat >> config.status <<\EOF
  2846. -# This sed command replaces #undef's with comments.  This is necessary, for
  2847. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  2848. -# on some systems where configure will not decide to define it in
  2849. -# autoconf.h.
  2850. -cat >> conftest.sed <<\CONFEOF
  2851. -s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  2852. -CONFEOF
  2853. -rm -f conftest.h
  2854. -# Break up the sed commands because old seds have small limits.
  2855. -maxsedlines=20
  2856. -cp $top_srcdir/$file.in conftest.h1
  2857. -while :
  2858. -do
  2859. -  lines=`grep -c . conftest.sed`
  2860. -  if test -z "$lines" || test "$lines" -eq 0; then break; fi
  2861. -  rm -f conftest.s1 conftest.s2 conftest.h2
  2862. -  sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  2863. -  sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  2864. -  sed -f conftest.s1 < conftest.h1 > conftest.h2
  2865. -  rm -f conftest.s1 conftest.h1 conftest.sed
  2866. -  mv conftest.h2 conftest.h1
  2867. -  mv conftest.s2 conftest.sed
  2868. -done
  2869. -rm -f conftest.sed conftest.h
  2870. -echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  2871. -cat conftest.h1 >> conftest.h
  2872. -rm -f conftest.h1
  2873. -if cmp -s $file conftest.h 2>/dev/null; then
  2874. -  # The file exists and we would not be changing it.
  2875. -  echo "$file is unchanged"
  2876. -  rm -f conftest.h
  2877. -else
  2878. -  rm -f $file
  2879. -  mv conftest.h $file
  2880. -fi
  2881. +cat >> $CONFIG_STATUS <<\EOF
  2882. +  rm -f conftest.frag conftest.h
  2883. +  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2884. +  cat conftest.in >> conftest.h
  2885. +  rm -f conftest.in
  2886. +  if cmp -s $ac_file conftest.h 2>/dev/null; then
  2887. +    echo "$ac_file is unchanged"
  2888. +    rm -f conftest.h
  2889. +  else
  2890. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  2891. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2892. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2893. +      # The file is in a subdirectory.
  2894. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  2895. +    fi
  2896. +    rm -f $ac_file
  2897. +    mv conftest.h $ac_file
  2898. +  fi
  2899.  fi; done
  2900.  
  2901.  
  2902.  
  2903.  exit 0
  2904.  EOF
  2905. -chmod +x config.status
  2906. -${CONFIG_SHELL-/bin/sh} config.status
  2907. +chmod +x $CONFIG_STATUS
  2908. +rm -f CONFIG.STATUS.old
  2909. +rm -fr confdefs* $ac_clean_files
  2910. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2911.  
  2912. diff -rup --new-file baseline/fsf/gdbm/configure.in amiga/fsf/gdbm/configure.in
  2913. --- baseline/fsf/gdbm/configure.in    Sun May 15 02:27:16 1994
  2914. +++ amiga/fsf/gdbm/configure.in    Sat Sep 28 00:00:00 1996
  2915. @@ -6,8 +6,8 @@ AC_PROG_CC
  2916.  AC_PROG_CPP
  2917.  AC_PROG_INSTALL
  2918.  AC_PROG_RANLIB
  2919. -AC_INT_16_BITS
  2920. -AC_LONG_64_BITS
  2921. +AC_SIZEOF_TYPE(int, sizevar)
  2922. +AC_SIZEOF_TYPE(long, sizevar)
  2923.  AC_WORDS_BIGENDIAN
  2924.  AC_CONST
  2925.  AC_HAVE_HEADERS(stdlib.h string.h sys/file.h unistd.h fcntl.h sys/types.h)
  2926. diff -rup --new-file baseline/fsf/gdbm/gdbm.3 amiga/fsf/gdbm/gdbm.3
  2927. --- baseline/fsf/gdbm/gdbm.3    Thu May 19 15:13:45 1994
  2928. +++ amiga/fsf/gdbm/gdbm.3    Sat Sep 28 00:00:00 1996
  2929. @@ -356,7 +356,7 @@ To search for some data, without retriev
  2930.  the key data to search for.
  2931.  
  2932.  If the \fIkey\fR is found within the database, the return value \fIret\fR
  2933. -will be true.  If nothing appropiate is found, \fIret\fR will be false.
  2934. +will be true.  If nothing appropriate is found, \fIret\fR will be false.
  2935.  This routine is useful for checking for the existance of a record,
  2936.  without performing the memory allocation done by \fBgdbm_fetch\fR.
  2937.  
  2938. @@ -433,7 +433,7 @@ To convert a \fBgdbm\fR error code into 
  2939.    ret = gdbm_strerror ( errno )
  2940.  
  2941.  Where \fBerrno\fR is of type \fBgdbm_error\fR, usually the global
  2942. -variable \fBgdbm_errno\fR.  The appropiate phrase is returned.
  2943. +variable \fBgdbm_errno\fR.  The appropriate phrase is returned.
  2944.  
  2945.  
  2946.  \fBGdbm\fR now supports the ability to set certain options on an
  2947. diff -rup --new-file baseline/fsf/gdbm/gdbm.info amiga/fsf/gdbm/gdbm.info
  2948. --- baseline/fsf/gdbm/gdbm.info    Thu May 19 16:12:37 1994
  2949. +++ amiga/fsf/gdbm/gdbm.info    Wed Dec 31 17:00:00 1969
  2950. @@ -1,705 +0,0 @@
  2951. -This is Info file gdbm.info, produced by Makeinfo-1.55 from the input
  2952. -file ./gdbm.texinfo.
  2953. -
  2954. -   This file documents the GNU dbm utility.
  2955. -
  2956. -   Copyright (C) 1989-1993 Free Software Foundation, Inc.
  2957. -
  2958. -   Permission is granted to make and distribute verbatim copies of this
  2959. -manual provided the copyright notice and this permission notice are
  2960. -preserved on all copies.
  2961. -
  2962. -   Permission is granted to copy and distribute modified versions of
  2963. -this manual under the conditions for verbatim copying, provided also
  2964. -that the entire resulting derived work is distributed under the terms
  2965. -of a permission notice identical to this one.
  2966. -
  2967. -   Permission is granted to copy and distribute translations of this
  2968. -manual into another language, under the above conditions for modified
  2969. -versions.
  2970. -
  2971. -
  2972. -File: gdbm.info,  Node: Top,  Next: Copying,  Prev: (dir),  Up: (dir)
  2973. -
  2974. -   GNU `dbm' is a library of functions implementing a hashed database
  2975. -on a disk file.  This manual documents GNU `dbm' Version 1.7.1
  2976. -(`gdbm').  The software was written by Philip A. Nelson. This document
  2977. -was originally written by Pierre Gaumond from texts written by Phil.
  2978. -
  2979. -* Menu:
  2980. -
  2981. -Introduction:
  2982. -
  2983. -* Copying::                    Your rights.
  2984. -* Intro::                      Introduction to GNU dbm.
  2985. -* List::                       List of functions.
  2986. -
  2987. -Functions:
  2988. -
  2989. -* Open::                       Opening the database.
  2990. -* Close::                      Closing the database.
  2991. -* Store::                      Inserting and replacing records in the database.
  2992. -* Fetch::                      Searching records in the database.
  2993. -* Delete::                     Removing records from the database.
  2994. -* Sequential::                 Sequential access to records.
  2995. -* Reorganization::             Database reorganization.
  2996. -* Sync::                       Insure all writes to disk have competed.
  2997. -* Errors::                     Convert internal error codes into English.
  2998. -* Options::                    Setting internal options.
  2999. -
  3000. -Other topics:
  3001. -
  3002. -* Variables::                  Two useful variables.
  3003. -* Compatibility::              Compatibility with UNIX dbm and ndbm.
  3004. -* Conversion::                 Converting dbm files to gdbm format.
  3005. -* Bugs::                       Problems and bugs.
  3006. -
  3007. -
  3008. -File: gdbm.info,  Node: Copying,  Next: Intro,  Prev: Top,  Up: Top
  3009. -
  3010. -Copying Conditions.
  3011. -*******************
  3012. -
  3013. -   This library is "free"; this means that everyone is free to use it
  3014. -and free to redistribute it on a free basis.  GNU `dbm' (`gdbm') is not
  3015. -in the public domain; it is copyrighted and there are restrictions on
  3016. -its distribution, but these restrictions are designed to permit
  3017. -everything that a good cooperating citizen would want to do.  What is
  3018. -not allowed is to try to prevent others from further sharing any
  3019. -version of `gdbm' that they might get from you.
  3020. -
  3021. -   Specifically, we want to make sure that you have the right to give
  3022. -away copies `gdbm', that you receive source code or else can get it if
  3023. -you want it, that you can change these functions or use pieces of them
  3024. -in new free programs, and that you know you can do these things.
  3025. -
  3026. -   To make sure that everyone has such rights, we have to forbid you to
  3027. -deprive anyone else of these rights.  For example, if you distribute
  3028. -copies `gdbm', you must give the recipients all the rights that you
  3029. -have.  You must make sure that they, too, receive or can get the source
  3030. -code.  And you must tell them their rights.
  3031. -
  3032. -   Also, for our own protection, we must make certain that everyone
  3033. -finds out that there is no warranty for anything in the `gdbm'
  3034. -distribution.  If these functions are modified by someone else and
  3035. -passed on, we want their recipients to know that what they have is not
  3036. -what we distributed, so that any problems introduced by others will not
  3037. -reflect on our reputation.
  3038. -
  3039. -   `gdbm' is currently distributed under the terms of the GNU General
  3040. -Public License, Version 2.  (*NOT* under the GNU General Library Public
  3041. -License.)  A copy the GNU General Public License is included with the
  3042. -distribution of `gdbm'.
  3043. -
  3044. -
  3045. -File: gdbm.info,  Node: Intro,  Next: List,  Prev: Copying,  Up: Top
  3046. -
  3047. -Introduction to GNU `dbm'.
  3048. -**************************
  3049. -
  3050. -   GNU `dbm' (`gdbm')is a library of database functions that use
  3051. -extendible hashing and works similar to the standard UNIX `dbm'
  3052. -functions.  These routines are provided to a programmer needing to
  3053. -create and manipulate a hashed database. (`gdbm' is *NOT* a complete
  3054. -database package for an end user.)
  3055. -
  3056. -   The basic use of `gdbm' is to store key/data pairs in a data file.
  3057. -Each key must be unique and each key is paired with only one data item.
  3058. -The keys can not be directly accessed in sorted order.  The basic unit
  3059. -of data in `gdbm' is the structure:
  3060. -
  3061. -       typedef struct {
  3062. -                  char *dptr;
  3063. -                  int  dsize;
  3064. -               } datum;
  3065. -
  3066. -   This structure allows for arbitrary sized keys and data items.
  3067. -
  3068. -   The key/data pairs are stored in a `gdbm' disk file, called a `gdbm'
  3069. -database.  An application must open a `gdbm' database to be able
  3070. -manipulate the keys and data contained in the database.  `gdbm' allows
  3071. -an application to have multiple databases open at the same time.  When
  3072. -an application opens a `gdbm' database, it is designated as a `reader'
  3073. -or a `writer'.  A `gdbm' database opened by at most one writer at a
  3074. -time.  However, many readers may open the database open simultaneously.
  3075. -Readers and writers can not open the `gdbm' database at the same time.
  3076. -
  3077. -
  3078. -File: gdbm.info,  Node: List,  Next: Open,  Prev: Intro,  Up: Top
  3079. -
  3080. -List of functions.
  3081. -******************
  3082. -
  3083. -   The following is a quick list of the functions contained in the
  3084. -`gdbm' library. The include file `gdbm.h', that can be included by the
  3085. -user, contains a definition of these functions.
  3086. -
  3087. -     #include <gdbm.h>
  3088. -     
  3089. -     GDBM_FILE gdbm_open(name, block_size, flags, mode, fatal_func);
  3090. -     void gdbm_close(dbf);
  3091. -     int gdbm_store(dbf, key, content, flag);
  3092. -     datum gdbm_fetch(dbf, key);
  3093. -     int gdbm_delete(dbf, key);
  3094. -     datum gdbm_firstkey(dbf);
  3095. -     datum gdbm_nextkey(dbf, key);
  3096. -     int gdbm_reorganize(dbf);
  3097. -     void gdbm_sync(dbf);
  3098. -     int gdbm_exists(dbf, key);
  3099. -     char *gdbm_strerror(errno);
  3100. -     int gdbm_setopt(dbf, option, value, size)
  3101. -
  3102. -   The `gdbm.h' include file is often in the `/usr/local/gnu/include'
  3103. -directory. (The actual location of `gdbm.h' depends on your local
  3104. -installation of `gdbm'.)
  3105. -
  3106. -
  3107. -File: gdbm.info,  Node: Open,  Next: Close,  Prev: List,  Up: Top
  3108. -
  3109. -Opening the database.
  3110. -*********************
  3111. -
  3112. -   Initialize `gdbm' system. If the file has a size of zero bytes, a
  3113. -file initialization procedure is performed, setting up the initial
  3114. -structure in the file.
  3115. -
  3116. -   The procedure for opening a `gdbm' file is:
  3117. -
  3118. -     GDBM_FILE dbf;
  3119. -     
  3120. -     dbf = gdbm_open(name, block_size, flags, mode, fatal_func);
  3121. -
  3122. -   The parameters are:
  3123. -
  3124. -char *name
  3125. -     The name of the file (the complete name, `gdbm' does not append any
  3126. -     characters to this name).
  3127. -
  3128. -int block_size
  3129. -     It is used during initialization to determine the size of various
  3130. -     constructs. It is the size of a single transfer from disk to
  3131. -     memory. This parameter is ignored if the file has been previously
  3132. -     initialized. The minimum size is 512.  If the value is less than
  3133. -     512, the file system blocksize is used, otherwise the value of
  3134. -     `block_size' is used.
  3135. -
  3136. -int flags
  3137. -     If `flags' is set to GDBM_READER, the user wants to just read the
  3138. -     database and any call to `gdbm_store' or `gdbm_delete' will fail.
  3139. -     Many readers can access the database at the same time. If `flags'
  3140. -     is set to GDBM_WRITER, the user wants both read and write access
  3141. -     to the database and requires exclusive access. If `flags' is set
  3142. -     to GDBM_WRCREAT, the user wants both read and write access to the
  3143. -     database and if the database does not exist, create a new one. If
  3144. -     `flags' is set to GDBM_NEWDB, the user want a new database
  3145. -     created, regardless of whether one existed, and wants read and
  3146. -     write access to the new database.  For all writers (GDBM_WRITER,
  3147. -     GDBM_WRCREAT and GDBM_NEWDB) the value GDBM_FAST can be added to
  3148. -     the `flags' field using logical or.  This option causes `gdbm' to
  3149. -     write the database without any disk file synchronization.  This
  3150. -     allows faster writes, but may produce an inconsistent database in
  3151. -     the event of abnormal termination of the writer.  Any error
  3152. -     detected will cause a return value of NULL and an appropriate
  3153. -     value will be in `gdbm_errno' (see Variables). If no errors occur,
  3154. -     a pointer to the `gdbm' file descriptor will be returned.
  3155. -
  3156. -int mode
  3157. -     File mode (see chmod(2) and open(2) if the file is created).
  3158. -
  3159. -void (*fatal_func) ()
  3160. -     A function for `gdbm' to call if it detects a fatal error. The only
  3161. -     parameter of this function is a string. If the value of NULL is
  3162. -     provided, `gdbm' will use a default function.
  3163. -
  3164. -   The return value, `dbf', is the pointer needed by all other
  3165. -functions to access that `gdbm' file. If the return is the NULL pointer,
  3166. -`gdbm_open' was not successful. The errors can be found in `gdbm_errno'
  3167. -for `gdbm' errors and in `errno' for file system errors (for error
  3168. -codes, see `gdbm.h').
  3169. -
  3170. -   In all of the following calls, the parameter `dbf' refers to the
  3171. -pointer returned from `gdbm_open'.
  3172. -
  3173. -
  3174. -File: gdbm.info,  Node: Close,  Next: Store,  Prev: Open,  Up: Top
  3175. -
  3176. -Closing the database.
  3177. -*********************
  3178. -
  3179. -   It is important that every file opened is also closed. This is
  3180. -needed to update the reader/writer count on the file. This is done by:
  3181. -
  3182. -     gdbm_close(dbf);
  3183. -
  3184. -   The parameter is:
  3185. -
  3186. -GDBM_FILE dbf
  3187. -     The pointer returned by `gdbm_open'.
  3188. -
  3189. -   Closes the `gdbm' file and frees all memory associated with the file
  3190. -`dbf'.
  3191. -
  3192. -
  3193. -File: gdbm.info,  Node: Store,  Next: Fetch,  Prev: Close,  Up: Top
  3194. -
  3195. -Inserting and replacing records in the database.
  3196. -************************************************
  3197. -
  3198. -   The function `gdbm_store' inserts or replaces records in the
  3199. -database.
  3200. -
  3201. -     ret = gdbm_store(dbf, key, content, flag);
  3202. -
  3203. -   The parameters are:
  3204. -
  3205. -GDBM_FILE dbf
  3206. -     The pointer returned by `gdbm_open'.
  3207. -
  3208. -datum key
  3209. -     The `key' data.
  3210. -
  3211. -datum content
  3212. -     The data to be associated with the key.
  3213. -
  3214. -int flag
  3215. -     Defines the action to take when the key is already in the
  3216. -     database. The value GDBM_REPLACE (defined in `gdbm.h') asks that
  3217. -     the old data be replaced by the new `content'. The value
  3218. -     GDBM_INSERT asks that an error be returned and no action taken if
  3219. -     the `key' already exists.
  3220. -
  3221. -   The values returned in `ret' are:
  3222. -
  3223. --1
  3224. -     The item was not stored in the database because the caller was not
  3225. -     an official writer or either `key' or `content' have a NULL dptr
  3226. -     field.  Both `key' and `content' must have the dptr field be a
  3227. -     non-NULL value.  Since a NULL dptr field is used by other
  3228. -     functions to indicate an error, a NULL field cannot be valid data.
  3229. -
  3230. -+1
  3231. -     The item was not stored because the argument `flag' was
  3232. -     GDBM_INSERT and the `key' was already in the database.
  3233. -
  3234. -0
  3235. -     No error. `content' is keyed by `key'. The file on disk is updated
  3236. -     to reflect the structure of the new database before returning from
  3237. -     this function.
  3238. -
  3239. -   If you store data for a `key' that is already in the data base,
  3240. -`gdbm' replaces the old data with the new data if called with
  3241. -GDBM_REPLACE. You do not get two data items for the same `key' and you
  3242. -do not get an error from `gdbm_store'.
  3243. -
  3244. -   The size in `gdbm' is not restricted like `dbm' or `ndbm'. Your data
  3245. -can be as large as you want.
  3246. -
  3247. -
  3248. -File: gdbm.info,  Node: Fetch,  Next: Delete,  Prev: Store,  Up: Top
  3249. -
  3250. -Searching for records in the database.
  3251. -**************************************
  3252. -
  3253. -   Looks up a given `key' and returns the information associated with
  3254. -that key. The pointer in the structure that is  returned is a pointer
  3255. -to dynamically allocated memory block. To search for some data:
  3256. -
  3257. -     content = gdbm_fetch(dbf, key);
  3258. -
  3259. -   The parameters are:
  3260. -
  3261. -GDBM_FILE dbf
  3262. -     The pointer returned by `gdbm_open'.
  3263. -
  3264. -datum key
  3265. -     The `key' data.
  3266. -
  3267. -   The datum returned in `content' is a pointer to the data found. If
  3268. -the dptr is NULL, no data was found. If dptr is not NULL, then it points
  3269. -to data allocated by malloc. `gdbm' does not automatically free this
  3270. -data.  The user must free this storage when done using it. This
  3271. -eliminates the need to copy the result to save it for later use (you
  3272. -just save the pointer).
  3273. -
  3274. -   You may also search for a particular key without retrieving it,
  3275. -using:
  3276. -
  3277. -     ret = gdbm_exists(dbf, key);
  3278. -
  3279. -   The parameters are:
  3280. -
  3281. -GDBM_FILE dbf
  3282. -     The pointer returned by `gdbm_open'.
  3283. -
  3284. -datum key
  3285. -     The `key' data.
  3286. -
  3287. -   Unlike `gdbm_fetch', this routine does not allocate any memory, and
  3288. -simply returns true or false, depending on whether the `key' exists, or
  3289. -not.
  3290. -
  3291. -
  3292. -File: gdbm.info,  Node: Delete,  Next: Sequential,  Prev: Fetch,  Up: Top
  3293. -
  3294. -Removing records from the database.
  3295. -***********************************
  3296. -
  3297. -   To remove some data from the database:
  3298. -
  3299. -     ret = gdbm_delete(dbf, key);
  3300. -
  3301. -   The parameters are:
  3302. -
  3303. -GDBM_FILE dbf
  3304. -     The pointer returned by `gdbm_open'.
  3305. -
  3306. -datum key
  3307. -     The `key' data.
  3308. -
  3309. -   The ret value is -1 if the item is not present or the requester is a
  3310. -reader.  The ret value is 0 if there was a successful delete.
  3311. -
  3312. -   `gdbm_delete' removes the keyed item and the `key' from the database
  3313. -`dbf'. The file on disk is updated to reflect the structure of the new
  3314. -database before returning from this function.
  3315. -
  3316. -
  3317. -File: gdbm.info,  Node: Sequential,  Next: Reorganization,  Prev: Delete,  Up: Top
  3318. -
  3319. -Sequential access to records.
  3320. -*****************************
  3321. -
  3322. -   The next two functions allow for accessing all items in the
  3323. -database. This access is not `key' sequential, but it is guaranteed to
  3324. -visit every `key' in the database once. The order has to do with the
  3325. -hash values.  `gdbm_firstkey' starts the visit of all keys in the
  3326. -database.  `gdbm_nextkey' finds and reads the next entry in the hash
  3327. -structure for `dbf'.
  3328. -
  3329. -     key = gdbm_firstkey(dbf);
  3330. -     
  3331. -     nextkey = gdbm_nextkey(dbf, key);
  3332. -
  3333. -   The parameters are:
  3334. -
  3335. -GDBM_FILE dbf
  3336. -     The pointer returned by `gdbm_open'.
  3337. -
  3338. -datum `key'
  3339. -datum nextkey
  3340. -     The `key' data.
  3341. -
  3342. -   The return values are both datum. If `key'.dptr or nextkey.dptr is
  3343. -NULL, there is no first `key' or next `key'. Again notice that dptr
  3344. -points to data allocated by malloc and `gdbm' will not free it for you.
  3345. -
  3346. -   These functions were intended to visit the database in read-only
  3347. -algorithms, for instance, to validate the database or similar
  3348. -operations.
  3349. -
  3350. -   File `visiting' is based on a `hash table'. `gdbm_delete'
  3351. -re-arranges the hash table to make sure that any collisions in the
  3352. -table do not leave some item `un-findable'. The original key order is
  3353. -NOT guaranteed to remain unchanged in ALL instances. It is possible
  3354. -that some key will not be visited if a loop like the following is
  3355. -executed:
  3356. -
  3357. -        key = gdbm_firstkey ( dbf );
  3358. -        while ( key.dptr ) {
  3359. -           nextkey = gdbm_nextkey ( dbf, key );
  3360. -           if ( some condition ) {
  3361. -              gdbm_delete ( dbf, key );
  3362. -              free ( key.dptr );
  3363. -           }
  3364. -           key = nextkey;
  3365. -        }
  3366. -
  3367. -
  3368. -File: gdbm.info,  Node: Reorganization,  Next: Sync,  Prev: Sequential,  Up: Top
  3369. -
  3370. -Database reorganization.
  3371. -************************
  3372. -
  3373. -   The following function should be used very seldom.
  3374. -
  3375. -     ret = gdbm_reorganize(dbf);
  3376. -
  3377. -   The parameter is:
  3378. -
  3379. -GDBM_FILE dbf
  3380. -     The pointer returned by `gdbm_open'.
  3381. -
  3382. -   If you have had a lot of deletions and would like to shrink the space
  3383. -used by the `gdbm' file, this function will reorganize the database.
  3384. -`gdbm' will not shorten the length of a `gdbm' file (deleted file space
  3385. -will be reused) except by using this reorganization.
  3386. -
  3387. -   This reorganization requires creating a new file and inserting all
  3388. -the elements in the old file `dbf' into the new file. The new file is
  3389. -then renamed to the same name as the old file and `dbf' is updated to
  3390. -contain all the correct information about the new file. If an error is
  3391. -detected, the return value is negative. The value zero is returned
  3392. -after a successful reorganization.
  3393. -
  3394. -
  3395. -File: gdbm.info,  Node: Sync,  Next: Errors,  Prev: Reorganization,  Up: Top
  3396. -
  3397. -Database Synchronization
  3398. -************************
  3399. -
  3400. -   If your database was opened with the GDBM_FAST flag, `gdbm' does not
  3401. -wait for writes to the disk to complete before continuing.  This allows
  3402. -faster writing of databases at the risk of having a corrupted database
  3403. -if the application terminates in an abnormal fashion.  The following
  3404. -function allows the programmer to make sure the disk version of the
  3405. -database has been completely updated with all changes to the current
  3406. -time.
  3407. -
  3408. -     gdbm_sync(dbf);
  3409. -
  3410. -   The parameter is:
  3411. -
  3412. -GDBM_FILE dbf
  3413. -     The pointer returned by `gdbm_open'.
  3414. -
  3415. -   This would usually be called after a complete set of changes have
  3416. -been made to the database and before some long waiting time.
  3417. -`gdbm_close' automatically calls the equivalent of `gdbm_sync' so no
  3418. -call is needed if the database is to be closed immediately after the
  3419. -set of changes have been made.
  3420. -
  3421. -
  3422. -File: gdbm.info,  Node: Errors,  Next: Options,  Prev: Sync,  Up: Top
  3423. -
  3424. -Error strings.
  3425. -**************
  3426. -
  3427. -   To convert a `gdbm' error code into English text, use this routine:
  3428. -
  3429. -     ret = gdbm_strerror(errno)
  3430. -
  3431. -   The parameter is:
  3432. -
  3433. -gdbm_error errno
  3434. -     The `gdbm' error code, usually `gdbm_errno'.
  3435. -
  3436. -   The appropiate phrase for reading by humans is returned.
  3437. -
  3438. -
  3439. -File: gdbm.info,  Node: Options,  Next: Variables,  Prev: Errors,  Up: Top
  3440. -
  3441. -Seting options.
  3442. -***************
  3443. -
  3444. -   `Gdbm' now supports the ability to set certain options on an already
  3445. -open database.
  3446. -
  3447. -     ret = gdbm_setopt(dbf, option, value, size)
  3448. -
  3449. -   The parameters are:
  3450. -
  3451. -GDBM_FILE dbf
  3452. -     The pointer returned by `gdbm_open'.
  3453. -
  3454. -int option
  3455. -     The option to be set.
  3456. -
  3457. -int *value
  3458. -     A pointer to the value to which `option' will be set.
  3459. -
  3460. -int size
  3461. -     The length of the data pointed to by `value'.
  3462. -
  3463. -   The valid options are currently:
  3464. -
  3465. -   GDBM_CACHESIZE - Set the size of the internal bucket cache.  This
  3466. -option may only be set once on each GDBM_FILE descriptor, and   is set
  3467. -automatically to 100 upon the first access to the database.
  3468. -
  3469. -   GDBM_FASTMODE - Set fast mode to either on or off.  This allows
  3470. -fast mode to be toggled on an already open and active database.
  3471. -value (see below) should be set to either TRUE or FALSE.
  3472. -
  3473. -   The return value will be -1 upon failure, or 0 upon success.  The
  3474. -global variable `gdbm_errno' will be set upon failure.
  3475. -
  3476. -   For instance, to set a database to use a cache of 10, after opening
  3477. -it with `gdbm_open', but prior to accessing it in any way, the following
  3478. -code could be used:
  3479. -
  3480. -     int value = 10;
  3481. -     ret = gdbm_setopt(dbf, GDBM_CACHESIZE, &value, sizeof(int));
  3482. -
  3483. -
  3484. -File: gdbm.info,  Node: Variables,  Next: Compatibility,  Prev: Options,  Up: Top
  3485. -
  3486. -Two useful variables.
  3487. -*********************
  3488. -
  3489. -   The following two variables are variables that may need to be used:
  3490. -
  3491. -gdbm_error gdbm_errno
  3492. -     The variable that contains more information about `gdbm' errors
  3493. -     (`gdbm.h' has the definitions of the error values).
  3494. -
  3495. -const char * gdbm_version
  3496. -     The string containing the version information.
  3497. -
  3498. -
  3499. -File: gdbm.info,  Node: Compatibility,  Next: Conversion,  Prev: Variables,  Up: Top
  3500. -
  3501. -Compatibility with standard `dbm' and `ndbm'.
  3502. -*********************************************
  3503. -
  3504. -   GNU `dbm' files are not `sparse'. You can copy them with the UNIX
  3505. -`cp' command and they will not expand in the copying process.
  3506. -
  3507. -   There is a compatibility mode for use with programs that already use
  3508. -UNIX `dbm' and UNIX `ndbm'.
  3509. -
  3510. -   GNU `dbm' has compatibility functions for `dbm'. For `dbm'
  3511. -compatibility functions, you need the include file `dbm.h'.
  3512. -
  3513. -   In this compatibility mode, no `gdbm' file pointer is required by
  3514. -the user, and Only one file may be opened at a time. All users in
  3515. -compatibility mode are assumed to be writers. If the `gdbm' file is a
  3516. -read only, it will fail as a writer, but will also try to open it as a
  3517. -reader.  All returned pointers in datum structures point to data that
  3518. -`gdbm' WILL free. They should be treated as static pointers (as
  3519. -standard UNIX `dbm' does). The compatibility function names are the
  3520. -same as the UNIX `dbm' function names. Their definitions follow:
  3521. -
  3522. -     int dbminit(name);
  3523. -     int store(key, content);
  3524. -     datum fetch(key);
  3525. -     int delete(key);
  3526. -     datum firstkey();
  3527. -     datum nextkey(key);
  3528. -     int dbmclose();
  3529. -
  3530. -   Standard UNIX `dbm' and GNU `dbm' do not have the same data format
  3531. -in the file. You cannot access a standard UNIX `dbm' file with GNU
  3532. -`dbm'!  If you want to use an old database with GNU `dbm', you must use
  3533. -the `conv2gdbm' program.
  3534. -
  3535. -   Also, GNU `dbm' has compatibility functions for `ndbm'. For `ndbm'
  3536. -compatibility functions, you need the include file `ndbm.h'.
  3537. -
  3538. -   Again, just like `ndbm', any returned datum can be assumed to be
  3539. -static storage. You do not have to free that memory, the `ndbm'
  3540. -compatibility functions will do it for you.
  3541. -
  3542. -   The functions are:
  3543. -
  3544. -     DBM *dbm_open(name, flags, mode);
  3545. -     void dbm_close(file);
  3546. -     datum dbm_fetch(file, key);
  3547. -     int dbm_store(file, key, `content', flags);
  3548. -     int dbm_delete(file, key);
  3549. -     datum dbm_firstkey(file);
  3550. -     datum dbm_nextkey(file);
  3551. -     int dbm_error(file);
  3552. -     int dbm_clearerr(file);
  3553. -     int dbm_dirfno(file);
  3554. -     int dbm_pagfno(file);
  3555. -     int dbm_rdonly(file);
  3556. -
  3557. -   If you want to compile an old C program that used UNIX `dbm' or
  3558. -`ndbm' and want to use `gdbm' files, execute the following `cc' command:
  3559. -
  3560. -     cc ... -L /usr/local/lib -lgdbm
  3561. -
  3562. -
  3563. -File: gdbm.info,  Node: Conversion,  Next: Bugs,  Prev: Compatibility,  Up: Top
  3564. -
  3565. -Converting `dbm' files to `gdbm' format.
  3566. -****************************************
  3567. -
  3568. -   The program `conv2gdbm' has been provided to help you convert from
  3569. -`dbm' databases to `gdbm'. The usage is:
  3570. -
  3571. -     conv2gdbm [-q] [-b block_size] dbm_file [gdbm_file]
  3572. -
  3573. -   The options are:
  3574. -
  3575. --q
  3576. -     Causes `conv2gdbm' to work quietly.
  3577. -
  3578. -block_size
  3579. -     Is the same as in `gdbm_open'.
  3580. -
  3581. -dbm_file
  3582. -     Is the name of the `dbm' file without the `.pag' or `.dir'
  3583. -     extensions.
  3584. -
  3585. -gdbm_file
  3586. -     Is the complete file name. If not included, the `gdbm' file name
  3587. -     is the same as the `dbm' file name without any extensions. That is
  3588. -     `conv2gdbm' `dbmfile' converts the files `dbmfile.pag' and
  3589. -     `dbmfile.dir' into a `gdbm' file called `dbmfile'.
  3590. -
  3591. -
  3592. -File: gdbm.info,  Node: Bugs,  Prev: Conversion,  Up: Top
  3593. -
  3594. -Problems and bugs.
  3595. -******************
  3596. -
  3597. -   If you have problems with GNU `dbm' or think you've found a bug,
  3598. -please report it. Before reporting a bug, make sure you've actually
  3599. -found a real bug. Carefully reread the documentation and see if it
  3600. -really says you can do what you're trying to do. If it's not clear
  3601. -whether you should be able to do something or not, report that too; it's
  3602. -a bug in the documentation!
  3603. -
  3604. -   Before reporting a bug or trying to fix it yourself, try to isolate
  3605. -it to the smallest possible input file that reproduces the problem. Then
  3606. -send us the input file and the exact results `gdbm' gave you. Also say
  3607. -what you expected to occur; this will help us decide whether the
  3608. -problem was really in the documentation.
  3609. -
  3610. -   Once you've got a precise problem, send e-mail to:
  3611. -
  3612. -     Internet: `bug-gnu-utils@prep.ai.mit.edu'.
  3613. -     UUCP: `mit-eddie!prep.ai.mit.edu!bug-gnu-utils'.
  3614. -
  3615. -   Please include the version number of GNU `dbm' you are using. You
  3616. -can get this information by printing the variable `gdbm_version' (see
  3617. -Variables).
  3618. -
  3619. -   Non-bug suggestions are always welcome as well. If you have questions
  3620. -about things that are unclear in the documentation or are just obscure
  3621. -features, please report them too.
  3622. -
  3623. -   You may contact the author by:
  3624. -         e-mail:  phil@cs.wwu.edu
  3625. -        us-mail:  Philip A. Nelson
  3626. -                  Computer Science Department
  3627. -                  Western Washington University
  3628. -                  Bellingham, WA 98226
  3629. -
  3630. -   You may contact the current maintainer by:
  3631. -         e-mail:  downsj@CSOS.ORST.EDU
  3632. -
  3633. -
  3634. -
  3635. -Tag Table:
  3636. -Node: Top767
  3637. -Node: Copying2197
  3638. -Node: Intro3979
  3639. -Node: List5395
  3640. -Node: Open6324
  3641. -Node: Close9217
  3642. -Node: Store9652
  3643. -Node: Fetch11447
  3644. -Node: Delete12696
  3645. -Node: Sequential13362
  3646. -Node: Reorganization15044
  3647. -Node: Sync15999
  3648. -Node: Errors16959
  3649. -Node: Options17319
  3650. -Node: Variables18625
  3651. -Node: Compatibility19055
  3652. -Node: Conversion21429
  3653. -Node: Bugs22243
  3654. -
  3655. -End Tag Table
  3656. diff -rup --new-file baseline/fsf/gdbm/gdbm.texinfo amiga/fsf/gdbm/gdbm.texinfo
  3657. --- baseline/fsf/gdbm/gdbm.texinfo    Thu May 19 15:14:11 1994
  3658. +++ amiga/fsf/gdbm/gdbm.texinfo    Sat Sep 28 00:00:00 1996
  3659. @@ -209,7 +209,7 @@ char *gdbm_strerror(errno);
  3660.  int gdbm_setopt(dbf, option, value, size)
  3661.  @end example
  3662.  
  3663. -The @code{gdbm.h} include file is often in the @file{/usr/local/gnu/include}
  3664. +The @code{gdbm.h} include file is often in the @file{/gnu/include}
  3665.  directory. (The actual location of @code{gdbm.h} depends on your local
  3666.  installation of @code{gdbm}.)
  3667.  
  3668. @@ -541,7 +541,7 @@ The parameter is:
  3669.  The @code{gdbm} error code, usually @code{gdbm_errno}.
  3670.  @end table
  3671.  
  3672. -The appropiate phrase for reading by humans is returned.
  3673. +The appropriate phrase for reading by humans is returned.
  3674.  
  3675.  @node Options, Variables, Errors, top
  3676.  @chapter Seting options.
  3677. @@ -665,7 +665,7 @@ If you want to compile an old C program 
  3678.  and want to use @code{gdbm} files, execute the following @code{cc} command:
  3679.  
  3680.  @example
  3681. -cc ... -L /usr/local/lib -lgdbm
  3682. +cc ... -L /gnu/lib -lgdbm
  3683.  @end example
  3684.  
  3685.  @node Conversion, Bugs, Compatibility, Top
  3686. diff -rup --new-file baseline/fsf/gdbm/gdbmerrno.c amiga/fsf/gdbm/gdbmerrno.c
  3687. --- baseline/fsf/gdbm/gdbmerrno.c    Sun Dec 26 05:53:26 1993
  3688. +++ amiga/fsf/gdbm/gdbmerrno.c    Sat Sep 28 00:00:00 1996
  3689. @@ -53,7 +53,7 @@ gdbm_strerror(error)
  3690.  {
  3691.    if(((int)error < 0) || ((int)error > 18))
  3692.      {
  3693. -      return("Unkown error");
  3694. +      return("Unknown error");
  3695.      }
  3696.    else
  3697.      {
  3698. diff -rup --new-file baseline/fsf/gdbm/gdbmopen.c amiga/fsf/gdbm/gdbmopen.c
  3699. --- baseline/fsf/gdbm/gdbmopen.c    Sun Dec 26 05:57:32 1993
  3700. +++ amiga/fsf/gdbm/gdbmopen.c    Sat Sep 28 00:00:00 1996
  3701. @@ -53,7 +53,7 @@
  3702.     exist, create a new one.  If FLAGS is GDBM_NEWDB, the user want a
  3703.     new database created, regardless of whether one existed, and wants read
  3704.     and write access to the new database.  Any error detected will cause a 
  3705. -   return value of null and an approprate value will be in gdbm_errno.  If
  3706. +   return value of null and an appropriate value will be in gdbm_errno.  If
  3707.     no errors occur, a pointer to the "gdbm file descriptor" will be
  3708.     returned. */
  3709.     
  3710. @@ -153,7 +153,7 @@ gdbm_open (file, block_size, flags, mode
  3711.    /* Get the status of the file. */
  3712.    fstat (dbf->desc, &file_stat);
  3713.  
  3714. -  /* Lock the file in the approprate way. */
  3715. +  /* Lock the file in the appropriate way. */
  3716.    if (flags == GDBM_READER)
  3717.      {
  3718.        if (file_stat.st_size == 0)
  3719. diff -rup --new-file baseline/fsf/gdbm/install-sh amiga/fsf/gdbm/install-sh
  3720. --- baseline/fsf/gdbm/install-sh    Wed Dec 31 17:00:00 1969
  3721. +++ amiga/fsf/gdbm/install-sh    Sat Sep 28 00:00:00 1996
  3722. @@ -0,0 +1,238 @@
  3723. +#! /bin/sh
  3724. +#
  3725. +# install - install a program, script, or datafile
  3726. +# This comes from X11R5.
  3727. +#
  3728. +# Calling this script install-sh is preferred over install.sh, to prevent
  3729. +# `make' implicit rules from creating a file called install from it
  3730. +# when there is no Makefile.
  3731. +#
  3732. +# This script is compatible with the BSD install script, but was written
  3733. +# from scratch.
  3734. +#
  3735. +
  3736. +
  3737. +# set DOITPROG to echo to test this script
  3738. +
  3739. +# Don't use :- since 4.3BSD and earlier shells don't like it.
  3740. +doit="${DOITPROG-}"
  3741. +
  3742. +
  3743. +# put in absolute paths if you don't have them in your path; or use env. vars.
  3744. +
  3745. +mvprog="${MVPROG-mv}"
  3746. +cpprog="${CPPROG-cp}"
  3747. +chmodprog="${CHMODPROG-chmod}"
  3748. +chownprog="${CHOWNPROG-chown}"
  3749. +chgrpprog="${CHGRPPROG-chgrp}"
  3750. +stripprog="${STRIPPROG-strip}"
  3751. +rmprog="${RMPROG-rm}"
  3752. +mkdirprog="${MKDIRPROG-mkdir}"
  3753. +
  3754. +transformbasename=""
  3755. +transform_arg=""
  3756. +instcmd="$mvprog"
  3757. +chmodcmd="$chmodprog 0755"
  3758. +chowncmd=""
  3759. +chgrpcmd=""
  3760. +stripcmd=""
  3761. +rmcmd="$rmprog -f"
  3762. +mvcmd="$mvprog"
  3763. +src=""
  3764. +dst=""
  3765. +dir_arg=""
  3766. +
  3767. +while [ x"$1" != x ]; do
  3768. +    case $1 in
  3769. +    -c) instcmd="$cpprog"
  3770. +        shift
  3771. +        continue;;
  3772. +
  3773. +    -d) dir_arg=true
  3774. +        shift
  3775. +        continue;;
  3776. +
  3777. +    -m) chmodcmd="$chmodprog $2"
  3778. +        shift
  3779. +        shift
  3780. +        continue;;
  3781. +
  3782. +    -o) chowncmd="$chownprog $2"
  3783. +        shift
  3784. +        shift
  3785. +        continue;;
  3786. +
  3787. +    -g) chgrpcmd="$chgrpprog $2"
  3788. +        shift
  3789. +        shift
  3790. +        continue;;
  3791. +
  3792. +    -s) stripcmd="$stripprog"
  3793. +        shift
  3794. +        continue;;
  3795. +
  3796. +    -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  3797. +        shift
  3798. +        continue;;
  3799. +
  3800. +    -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  3801. +        shift
  3802. +        continue;;
  3803. +
  3804. +    *)  if [ x"$src" = x ]
  3805. +        then
  3806. +        src=$1
  3807. +        else
  3808. +        # this colon is to work around a 386BSD /bin/sh bug
  3809. +        :
  3810. +        dst=$1
  3811. +        fi
  3812. +        shift
  3813. +        continue;;
  3814. +    esac
  3815. +done
  3816. +
  3817. +if [ x"$src" = x ]
  3818. +then
  3819. +    echo "install:    no input file specified"
  3820. +    exit 1
  3821. +else
  3822. +    true
  3823. +fi
  3824. +
  3825. +if [ x"$dir_arg" != x ]; then
  3826. +    dst=$src
  3827. +    src=""
  3828. +    
  3829. +    if [ -d $dst ]; then
  3830. +        instcmd=:
  3831. +    else
  3832. +        instcmd=mkdir
  3833. +    fi
  3834. +else
  3835. +
  3836. +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  3837. +# might cause directories to be created, which would be especially bad 
  3838. +# if $src (and thus $dsttmp) contains '*'.
  3839. +
  3840. +    if [ -f $src -o -d $src ]
  3841. +    then
  3842. +        true
  3843. +    else
  3844. +        echo "install:  $src does not exist"
  3845. +        exit 1
  3846. +    fi
  3847. +    
  3848. +    if [ x"$dst" = x ]
  3849. +    then
  3850. +        echo "install:    no destination specified"
  3851. +        exit 1
  3852. +    else
  3853. +        true
  3854. +    fi
  3855. +
  3856. +# If destination is a directory, append the input filename; if your system
  3857. +# does not like double slashes in filenames, you may need to add some logic
  3858. +
  3859. +    if [ -d $dst ]
  3860. +    then
  3861. +        dst="$dst"/`basename $src`
  3862. +    else
  3863. +        true
  3864. +    fi
  3865. +fi
  3866. +
  3867. +## this sed command emulates the dirname command
  3868. +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  3869. +
  3870. +# Make sure that the destination directory exists.
  3871. +#  this part is taken from Noah Friedman's mkinstalldirs script
  3872. +
  3873. +# Skip lots of stat calls in the usual case.
  3874. +if [ ! -d "$dstdir" ]; then
  3875. +defaultIFS='    
  3876. +'
  3877. +IFS="${IFS-${defaultIFS}}"
  3878. +
  3879. +oIFS="${IFS}"
  3880. +# Some sh's can't handle IFS=/ for some reason.
  3881. +IFS='%'
  3882. +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  3883. +IFS="${oIFS}"
  3884. +
  3885. +pathcomp=''
  3886. +
  3887. +while [ $# -ne 0 ] ; do
  3888. +    pathcomp="${pathcomp}${1}"
  3889. +    shift
  3890. +
  3891. +    if [ ! -d "${pathcomp}" ] ;
  3892. +        then
  3893. +        $mkdirprog "${pathcomp}"
  3894. +    else
  3895. +        true
  3896. +    fi
  3897. +
  3898. +    pathcomp="${pathcomp}/"
  3899. +done
  3900. +fi
  3901. +
  3902. +if [ x"$dir_arg" != x ]
  3903. +then
  3904. +    $doit $instcmd $dst &&
  3905. +
  3906. +    if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
  3907. +    if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
  3908. +    if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
  3909. +    if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
  3910. +else
  3911. +
  3912. +# If we're going to rename the final executable, determine the name now.
  3913. +
  3914. +    if [ x"$transformarg" = x ] 
  3915. +    then
  3916. +        dstfile=`basename $dst`
  3917. +    else
  3918. +        dstfile=`basename $dst $transformbasename | 
  3919. +            sed $transformarg`$transformbasename
  3920. +    fi
  3921. +
  3922. +# don't allow the sed command to completely eliminate the filename
  3923. +
  3924. +    if [ x"$dstfile" = x ] 
  3925. +    then
  3926. +        dstfile=`basename $dst`
  3927. +    else
  3928. +        true
  3929. +    fi
  3930. +
  3931. +# Make a temp file name in the proper directory.
  3932. +
  3933. +    dsttmp=$dstdir/#inst.$$#
  3934. +
  3935. +# Move or copy the file name to the temp name
  3936. +
  3937. +    $doit $instcmd $src $dsttmp &&
  3938. +
  3939. +    trap "rm -f ${dsttmp}" 0 &&
  3940. +
  3941. +# and set any options; do chmod last to preserve setuid bits
  3942. +
  3943. +# If any of these fail, we abort the whole thing.  If we want to
  3944. +# ignore errors from any of these, just make sure not to ignore
  3945. +# errors from the above "$doit $instcmd $src $dsttmp" command.
  3946. +
  3947. +    if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
  3948. +    if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
  3949. +    if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
  3950. +    if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
  3951. +
  3952. +# Now rename the file to the real destination.
  3953. +
  3954. +    $doit $rmcmd -f $dstdir/$dstfile &&
  3955. +    $doit $mvcmd $dsttmp $dstdir/$dstfile 
  3956. +
  3957. +fi &&
  3958. +
  3959. +
  3960. +exit 0
  3961. diff -rup --new-file baseline/fsf/gdbm/manifests/bin amiga/fsf/gdbm/manifests/bin
  3962. --- baseline/fsf/gdbm/manifests/bin    Wed Dec 31 17:00:00 1969
  3963. +++ amiga/fsf/gdbm/manifests/bin    Wed Oct  9 23:17:45 1996
  3964. @@ -0,0 +1,9 @@
  3965. +COPYING
  3966. +COPYING.info
  3967. +dvi/gdbm.dvi
  3968. +guide/gdbm.guide
  3969. +include/gdbm.h
  3970. +info/gdbm.info
  3971. +lib/libgdbm.a
  3972. +man/man3/gdbm.3
  3973. +ps/gdbm.ps
  3974. diff -rup --new-file baseline/fsf/gdbm/manifests/src amiga/fsf/gdbm/manifests/src
  3975. --- baseline/fsf/gdbm/manifests/src    Wed Dec 31 17:00:00 1969
  3976. +++ amiga/fsf/gdbm/manifests/src    Mon Sep 30 13:03:57 1996
  3977. @@ -0,0 +1,66 @@
  3978. +fsf/gdbm/COPYING
  3979. +fsf/gdbm/ChangeLog
  3980. +fsf/gdbm/INSTALL
  3981. +fsf/gdbm/Makefile.in
  3982. +fsf/gdbm/NEWS
  3983. +fsf/gdbm/Product-Info
  3984. +fsf/gdbm/README
  3985. +fsf/gdbm/alloca.c
  3986. +fsf/gdbm/autoconf.h.in
  3987. +fsf/gdbm/bucket.c
  3988. +fsf/gdbm/close.c
  3989. +fsf/gdbm/configure
  3990. +fsf/gdbm/configure.in
  3991. +fsf/gdbm/conv2gdbm.c
  3992. +fsf/gdbm/dbm.h
  3993. +fsf/gdbm/dbmclose.c
  3994. +fsf/gdbm/dbmdelete.c
  3995. +fsf/gdbm/dbmdirfno.c
  3996. +fsf/gdbm/dbmfetch.c
  3997. +fsf/gdbm/dbminit.c
  3998. +fsf/gdbm/dbmopen.c
  3999. +fsf/gdbm/dbmpagfno.c
  4000. +fsf/gdbm/dbmrdonly.c
  4001. +fsf/gdbm/dbmseq.c
  4002. +fsf/gdbm/dbmstore.c
  4003. +fsf/gdbm/delete.c
  4004. +fsf/gdbm/extern.h
  4005. +fsf/gdbm/falloc.c
  4006. +fsf/gdbm/fetch.c
  4007. +fsf/gdbm/findkey.c
  4008. +fsf/gdbm/gdbm.3
  4009. +fsf/gdbm/gdbm.proto
  4010. +fsf/gdbm/gdbm.proto2
  4011. +fsf/gdbm/gdbm.texinfo
  4012. +fsf/gdbm/gdbmclose.c
  4013. +fsf/gdbm/gdbmconst.h
  4014. +fsf/gdbm/gdbmdefs.h
  4015. +fsf/gdbm/gdbmdelete.c
  4016. +fsf/gdbm/gdbmerrno.c
  4017. +fsf/gdbm/gdbmerrno.h
  4018. +fsf/gdbm/gdbmexists.c
  4019. +fsf/gdbm/gdbmfetch.c
  4020. +fsf/gdbm/gdbmopen.c
  4021. +fsf/gdbm/gdbmreorg.c
  4022. +fsf/gdbm/gdbmseq.c
  4023. +fsf/gdbm/gdbmsetopt.c
  4024. +fsf/gdbm/gdbmstore.c
  4025. +fsf/gdbm/gdbmsync.c
  4026. +fsf/gdbm/getopt.c
  4027. +fsf/gdbm/getopt.h
  4028. +fsf/gdbm/global.c
  4029. +fsf/gdbm/hash.c
  4030. +fsf/gdbm/install-sh
  4031. +fsf/gdbm/manifests/bin
  4032. +fsf/gdbm/manifests/src
  4033. +fsf/gdbm/ndbm.h
  4034. +fsf/gdbm/proto.h
  4035. +fsf/gdbm/samp1.cc
  4036. +fsf/gdbm/seq.c
  4037. +fsf/gdbm/store.c
  4038. +fsf/gdbm/systems.h
  4039. +fsf/gdbm/testdbm.c
  4040. +fsf/gdbm/testgdbm.c
  4041. +fsf/gdbm/testndbm.c
  4042. +fsf/gdbm/update.c
  4043. +fsf/gdbm/version.c
  4044.