home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / grep-2.0-diffs.lha / GNU / src / diffs / grep-2.0.diffs
Encoding:
Text File  |  1994-09-07  |  58.0 KB  |  2,052 lines

  1. diff -rc --new-file grep-2.0/INSTALL /gnu/src/amiga/grep-2.0/INSTALL
  2. *** grep-2.0/INSTALL    Mon Sep 28 02:56:25 1992
  3. --- /gnu/src/amiga/grep-2.0/INSTALL    Wed Feb 23 17:26:59 1994
  4. ***************
  5. *** 32,39 ****
  6.   source code in `..' if it does not find it in the current directory.
  7.   
  8.   By default, `make install' will install the package's files in
  9. ! /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
  10. ! an installation prefix other than /usr/local by giving `configure' the
  11.   option `--prefix=PATH'.  Alternately, you can do so by changing the
  12.   `prefix' variable in the Makefile that `configure' creates (the
  13.   Makefile in the top-level directory, if the package contains
  14. --- 32,39 ----
  15.   source code in `..' if it does not find it in the current directory.
  16.   
  17.   By default, `make install' will install the package's files in
  18. ! /gnu/bin, /gnu/lib, /gnu/man, etc.  You can specify
  19. ! an installation prefix other than /gnu by giving `configure' the
  20.   option `--prefix=PATH'.  Alternately, you can do so by changing the
  21.   `prefix' variable in the Makefile that `configure' creates (the
  22.   Makefile in the top-level directory, if the package contains
  23. diff -rc --new-file grep-2.0/Makefile.in /gnu/src/amiga/grep-2.0/Makefile.in
  24. *** grep-2.0/Makefile.in    Sun May  2 20:54:24 1993
  25. --- /gnu/src/amiga/grep-2.0/Makefile.in    Wed Feb 23 17:21:33 1994
  26. ***************
  27. *** 43,52 ****
  28.   LIBS=@LIBS@
  29.   ALLOCA=@ALLOCA@
  30.   
  31. ! CFLAGS=-O
  32. ! LDFLAGS=$(CFLAGS)
  33.   
  34. ! prefix=/usr/local
  35.   exec_prefix=$(prefix)
  36.   
  37.   # Prefix for installed program, normally empty or `g'.
  38. --- 43,52 ----
  39.   LIBS=@LIBS@
  40.   ALLOCA=@ALLOCA@
  41.   
  42. ! CFLAGS=-O2
  43. ! LDFLAGS=
  44.   
  45. ! prefix=/gnu
  46.   exec_prefix=$(prefix)
  47.   
  48.   # Prefix for installed program, normally empty or `g'.
  49. diff -rc --new-file grep-2.0/Product-Info /gnu/src/amiga/grep-2.0/Product-Info
  50. *** grep-2.0/Product-Info    Thu Jan  1 00:00:00 1970
  51. --- /gnu/src/amiga/grep-2.0/Product-Info    Tue Jul 12 17:21:58 1994
  52. ***************
  53. *** 0 ****
  54. --- 1,37 ----
  55. + # This file contains product information that can be used by
  56. + # KingFisher 2.0 and other similar tools.
  57. + .name
  58. + grep
  59. + .fullname
  60. + GNU grep package
  61. + .type
  62. + Programmer Tool
  63. + .short
  64. + GNU grep package
  65. + .description
  66. + GNU grep is based on a fast lazy-state deterministic matcher (about
  67. + twice as fast as stock Unix egrep) hybridized with a Boyer-Moore-
  68. + Gosper search for a fixed string that eliminates impossible text from
  69. + being considered by the full regexp matcher without necessarily having
  70. + to look at every character.  The result is typically many times faster
  71. + than Unix grep or egrep.  (Regular expressions containing
  72. + backreferencing will run more slowly, however.)
  73. + .version
  74. + 2.0
  75. + .author
  76. + Mike Haertel
  77. + Arthur David Olson
  78. + Richard Stallman
  79. + Karl Berry
  80. + Henry Spencer
  81. + Scott Anderson
  82. + David MacKenzie
  83. + James Woods
  84. + Andrew Hume
  85. + .requirements
  86. + Amiga binaries require ixemul.library.
  87. + .distribution
  88. + GNU Public License
  89. + .described-by
  90. + Fred Fish (fnf@amigalib.com)
  91. diff -rc --new-file grep-2.0/configure /gnu/src/amiga/grep-2.0/configure
  92. *** grep-2.0/configure    Sat May 22 04:20:23 1993
  93. --- /gnu/src/amiga/grep-2.0/configure    Mon Apr 25 16:58:51 1994
  94. ***************
  95. *** 1,162 ****
  96.   #!/bin/sh
  97.   # Guess values for system-dependent variables and create Makefiles.
  98. ! # Generated automatically using autoconf.
  99. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  100.   
  101. ! # This program is free software; you can redistribute it and/or modify
  102. ! # it under the terms of the GNU General Public License as published by
  103. ! # the Free Software Foundation; either version 2, or (at your option)
  104.   # any later version.
  105.   
  106. ! # This program is distributed in the hope that it will be useful,
  107. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  108. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  109. ! # GNU General Public License for more details.
  110.   
  111.   # You should have received a copy of the GNU General Public License
  112.   # along with this program; if not, write to the Free Software
  113.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  114.   
  115. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  116. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  117. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  118. ! # --with-PACKAGE unless this script has special code to handle it.
  119.   
  120.   
  121. ! for arg
  122.   do
  123. -   # Handle --exec-prefix with a space before the argument.
  124. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  125. -   # Handle --host with a space before the argument.
  126. -   elif test x$next_host = xyes; then next_host=
  127. -   # Handle --prefix with a space before the argument.
  128. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  129. -   # Handle --srcdir with a space before the argument.
  130. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  131. -   else
  132. -     case $arg in
  133. -      # For backward compatibility, also recognize exact --exec_prefix.
  134. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  135. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  136. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  137. -     next_exec_prefix=yes ;;
  138. -      -gas | --gas | --ga | --g) ;;
  139. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  140. -      -host | --host | --hos | --ho | --h)
  141. -     next_host=yes ;;
  142. -      -nfp | --nfp | --nf) ;;
  143. -      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  144. -         no_create=1 ;;
  145. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  146. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  147. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  148. -     next_prefix=yes ;;
  149. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  150. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  151. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  152. -     next_srcdir=yes ;;
  153. -      -with-* | --with-*)
  154. -        package=`echo $arg|sed 's/-*with-//'`
  155. -        # Delete all the valid chars; see if any are left.
  156. -        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  157. -          echo "configure: $package: invalid package name" >&2; exit 1
  158. -        fi
  159. -        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  160.   
  161. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  162. !        verbose=yes ;;
  163.   
  164. !      *) ;;
  165.       esac
  166. !   fi
  167. ! done
  168.   
  169. ! trap 'rm -f conftest* core; exit 1' 1 3 15
  170.   
  171. ! # Needed for some versions of `tr' so that character classes in `[]' work.
  172. ! if test "${LANG+set}" = "set" ; then
  173. !    LANG=C
  174.   fi
  175.   
  176. ! rm -f conftest*
  177. ! compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  178.   
  179.   # A filename unique to this package, relative to the directory that
  180.   # configure is in, which we can look for to find out if srcdir is correct.
  181. ! unique_file=grep.c
  182.   
  183.   # Find the source files, if location was not specified.
  184.   if test -z "$srcdir"; then
  185. !   srcdirdefaulted=yes
  186.     # Try the directory containing this script, then `..'.
  187. !   prog=$0
  188. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  189. !   test "X$confdir" = "X$prog" && confdir=.
  190. !   srcdir=$confdir
  191. !   if test ! -r $srcdir/$unique_file; then
  192.       srcdir=..
  193.     fi
  194.   fi
  195. ! if test ! -r $srcdir/$unique_file; then
  196. !   if test x$srcdirdefaulted = xyes; then
  197. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  198.     else
  199. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  200.     fi
  201. -   exit 1
  202.   fi
  203. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  204. ! # But we can't avoid them for `..', to make subdirectories work.
  205. ! case $srcdir in
  206. !   .|/*|~*) ;;
  207. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  208. ! esac
  209.   
  210. ! for p in mawk gawk nawk awk
  211.   do
  212.   if test -z "$AWK"; then
  213. !   # Extract the first word of `$p', so it can be a program name with args.
  214. !   set dummy $p; word=$2
  215. !   echo checking for $word
  216. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  217. !   for dir in $PATH; do
  218. !     test -z "$dir" && dir=.
  219. !     if test -f $dir/$word; then
  220. !       AWK="$p"
  221.         break
  222.       fi
  223.     done
  224. !   IFS="$saveifs"
  225.   fi
  226.   
  227. ! test -n "$AWK" -a -n "$verbose" && echo "    setting AWK to $AWK"
  228.   
  229.   test -n "$AWK" && break
  230.   done
  231.   
  232.   if test -z "$CC"; then
  233.     # Extract the first word of `gcc', so it can be a program name with args.
  234. !   set dummy gcc; word=$2
  235. !   echo checking for $word
  236. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  237. !   for dir in $PATH; do
  238. !     test -z "$dir" && dir=.
  239. !     if test -f $dir/$word; then
  240.         CC="gcc"
  241.         break
  242.       fi
  243.     done
  244. !   IFS="$saveifs"
  245.   fi
  246.   test -z "$CC" && CC="cc"
  247. ! test -n "$CC" -a -n "$verbose" && echo "    setting CC to $CC"
  248.   
  249.   # Find out if we are using GNU C, under whatever name.
  250.   cat > conftest.c <<EOF
  251. --- 1,357 ----
  252.   #!/bin/sh
  253.   # Guess values for system-dependent variables and create Makefiles.
  254. ! # Generated automatically using autoconf version 1.9 
  255. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  256.   
  257. ! # This configure script is free software; you can redistribute it and/or
  258. ! # modify it under the terms of the GNU General Public License as published
  259. ! # by the Free Software Foundation; either version 2, or (at your option)
  260.   # any later version.
  261.   
  262. ! # This script is distributed in the hope that it will be useful, but
  263. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  264. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  265. ! # Public License for more details.
  266.   
  267.   # You should have received a copy of the GNU General Public License
  268.   # along with this program; if not, write to the Free Software
  269.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  270.   
  271. ! # Save the original args to write them into config.status later.
  272. ! configure_args="$*"
  273.   
  274. + # Only options that might do something get documented.
  275. + ac_usage="Usage: configure [options] [host]
  276. + Options: [defaults in brackets after descriptions]
  277. + --build=BUILD        configure for building on BUILD [BUILD=HOST]
  278. + --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  279. + --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  280. + --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  281. + --help            print this message
  282. + --host=HOST        configure for HOST [guessed]
  283. + --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  284. + --quiet, --silent    do not print \`checking for...' messages
  285. + --srcdir=DIR        find the sources in DIR [configure dir or ..]
  286. + --target=TARGET        configure for TARGET [TARGET=HOST]
  287. + --verbose        print results of checks
  288. + --version        print the version of autoconf that created configure
  289. + --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  290. + --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  291. + --x-includes=DIR    X include files are in DIR
  292. + --x-libraries=DIR    X library files are in DIR"
  293. + # Initialize some variables set by options.
  294. + # The variables have the same names as the options, with
  295. + # dashes changed to underlines.
  296. + build=NONE
  297. + exec_prefix=
  298. + host=NONE
  299. + no_create=
  300. + nonopt=NONE
  301. + norecursion=
  302. + prefix=
  303. + program_prefix=
  304. + program_suffix=
  305. + program_transform_name=
  306. + silent=
  307. + srcdir=
  308. + target=NONE
  309. + verbose=
  310. + x_includes=
  311. + x_libraries=
  312.   
  313. ! ac_prev=
  314. ! for ac_option
  315.   do
  316.   
  317. !   # If the previous option needs an argument, assign it.
  318. !   if test -n "$ac_prev"; then
  319. !     eval "$ac_prev=\$ac_option"
  320. !     ac_prev=
  321. !     continue
  322. !   fi
  323. !   # Accept (but ignore some of) the important Cygnus configure
  324. !   # options, so we can diagnose typos.
  325. !   case "$ac_option" in
  326. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  327. !   *) ac_optarg= ;;
  328. !   esac
  329. !   case "$ac_option" in
  330. !   -build | --build | --buil | --bui | --bu | --b)
  331. !     ac_prev=build ;;
  332. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  333. !     build="$ac_optarg" ;;
  334. !   -disable-* | --disable-*)
  335. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  336. !     # Reject names that aren't valid shell variable names.
  337. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  338. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  339. !     fi
  340. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  341. !     eval "enable_${ac_feature}=no" ;;
  342. !   -enable-* | --enable-*)
  343. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  344. !     # Reject names that aren't valid shell variable names.
  345. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  346. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  347. !     fi
  348. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  349. !     case "$ac_option" in
  350. !       *=*) ;;
  351. !       *) ac_optarg=yes ;;
  352. !     esac
  353. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  354.   
  355. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  356. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  357. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  358. !   | --exec | --exe | --ex)
  359. !     ac_prev=exec_prefix ;;
  360. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  361. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  362. !   | --exec=* | --exe=* | --ex=*)
  363. !     exec_prefix="$ac_optarg" ;;
  364. !   -gas | --gas | --ga | --g)
  365. !     with_gas=yes ;; # Obsolete; use --with-gas.
  366. !   -help | --help | --hel | --he)
  367. !     cat << EOF
  368. ! $ac_usage
  369. ! EOF
  370. !     exit 0 ;;
  371. !   -host | --host | --hos | --ho)
  372. !     ac_prev=host ;;
  373. !   -host=* | --host=* | --hos=* | --ho=*)
  374. !     host="$ac_optarg" ;;
  375. !   -nfp | --nfp | --nf)
  376. !     with_fp=no ;; # Obsolete; use --without-fp.
  377. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  378. !   | --no-cr | --no-c)
  379. !     no_create=yes ;;
  380. !   -norecursion | --norecursion | --norecursio | --norecursi \
  381. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  382. !     norecursion=yes ;;
  383. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  384. !     ac_prev=prefix ;;
  385. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  386. !     prefix="$ac_optarg" ;;
  387. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  388. !   | --program-pre | --program-pr | --program-p)
  389. !     ac_prev=program_prefix ;;
  390. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  391. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  392. !     program_prefix="$ac_optarg" ;;
  393. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  394. !   | --program-suf | --program-su | --program-s)
  395. !     ac_prev=program_suffix ;;
  396. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  397. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  398. !     program_suffix="$ac_optarg" ;;
  399. !   -program-transform-name | --program-transform-name \
  400. !   | --program-transform-nam | --program-transform-na \
  401. !   | --program-transform-n | --program-transform- \
  402. !   | --program-transform | --program-transfor \
  403. !   | --program-transfo | --program-transf \
  404. !   | --program-trans | --program-tran \
  405. !   | --progr-tra | --program-tr | --program-t)
  406. !     ac_prev=program_transform_name ;;
  407. !   -program-transform-name=* | --program-transform-name=* \
  408. !   | --program-transform-nam=* | --program-transform-na=* \
  409. !   | --program-transform-n=* | --program-transform-=* \
  410. !   | --program-transform=* | --program-transfor=* \
  411. !   | --program-transfo=* | --program-transf=* \
  412. !   | --program-trans=* | --program-tran=* \
  413. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  414. !     program_transform_name="$ac_optarg" ;;
  415. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  416. !   | -silent | --silent | --silen | --sile | --sil)
  417. !     silent=yes ;;
  418. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  419. !     ac_prev=srcdir ;;
  420. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  421. !     srcdir="$ac_optarg" ;;
  422. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  423. !     ac_prev=target ;;
  424. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  425. !     target="$ac_optarg" ;;
  426. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  427. !     verbose=yes ;;
  428. !   -version | --version | --versio | --versi | --vers)
  429. !     /bin/echo "configure generated by autoconf version 1.9"
  430. !     exit 0 ;;
  431. !   -with-* | --with-*)
  432. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  433. !     # Reject names that aren't valid shell variable names.
  434. !     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  435. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  436. !     fi
  437. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  438. !     case "$ac_option" in
  439. !       *=*) ;;
  440. !       *) ac_optarg=yes ;;
  441.       esac
  442. !     eval "with_${ac_package}='$ac_optarg'" ;;
  443.   
  444. !   -without-* | --without-*)
  445. !     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  446. !     # Reject names that aren't valid shell variable names.
  447. !     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  448. !       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  449. !     fi
  450. !     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  451. !     eval "with_${ac_package}=no" ;;
  452. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  453.   
  454. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  455. !   | --x-incl | --x-inc | --x-in | --x-i)
  456. !     ac_prev=x_includes ;;
  457. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  458. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  459. !     x_includes="$ac_optarg" ;;
  460. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  461. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  462. !     ac_prev=x_libraries ;;
  463. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  464. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  465. !     x_libraries="$ac_optarg" ;;
  466. !   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  467. !     ;;
  468. !   *) 
  469. !     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  470. !       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  471. !     fi
  472. !     if test "x$nonopt" != xNONE; then
  473. !       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  474. !     fi
  475. !     nonopt="$ac_option"
  476. !     ;;
  477. !   esac
  478. ! done
  479. ! if test -n "$ac_prev"; then
  480. !   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  481.   fi
  482.   
  483. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  484. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  485. ! # Save the original args if we used an alternate arg parser.
  486. ! ac_configure_temp="${configure_args-$*}"
  487. ! # Strip out --no-create and --norecursion so they don't pile up.
  488. ! configure_args=
  489. ! for ac_arg in $ac_configure_temp; do
  490. !   case "$ac_arg" in
  491. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  492. !   | --no-cr | --no-c) ;;
  493. !   -norecursion | --norecursion | --norecursio | --norecursi \
  494. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  495. !   *) configure_args="$configure_args $ac_arg" ;;
  496. !   esac
  497. ! done
  498. ! # NLS nuisances.
  499. ! # These must not be set unconditionally because not all systems understand
  500. ! # e.g. LANG=C (notably SCO).
  501. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  502. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  503. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  504. ! rm -rf conftest* confdefs.h
  505. ! # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  506. ! /bin/echo > confdefs.h
  507.   
  508.   # A filename unique to this package, relative to the directory that
  509.   # configure is in, which we can look for to find out if srcdir is correct.
  510. ! ac_unique_file=grep.c
  511.   
  512.   # Find the source files, if location was not specified.
  513.   if test -z "$srcdir"; then
  514. !   ac_srcdir_defaulted=yes
  515.     # Try the directory containing this script, then `..'.
  516. !   ac_prog=$0
  517. !   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  518. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  519. !   srcdir=$ac_confdir
  520. !   if test ! -r $srcdir/$ac_unique_file; then
  521.       srcdir=..
  522.     fi
  523.   fi
  524. ! if test ! -r $srcdir/$ac_unique_file; then
  525. !   if test x$ac_srcdir_defaulted = xyes; then
  526. !     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  527.     else
  528. !     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  529.     fi
  530.   fi
  531. ! ac_ext=c
  532. ! ac_cpp='${CPP} $CFLAGS'
  533. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  534.   
  535. ! for ac_prog in mawk gawk nawk awk
  536.   do
  537.   if test -z "$AWK"; then
  538. !   # Extract the first word of `$ac_prog', so it can be a program name with args.
  539. !   set ac_dummy $ac_prog; ac_word=$2
  540. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  541. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  542. !   for ac_dir in $PATH; do
  543. !     test -z "$ac_dir" && ac_dir=.
  544. !     if test -f $ac_dir/$ac_word; then
  545. !       AWK="$ac_prog"
  546.         break
  547.       fi
  548.     done
  549. !   IFS="$ac_save_ifs"
  550.   fi
  551.   
  552. ! test -n "$AWK" && test -n "$verbose" && /bin/echo "    setting AWK to $AWK"
  553.   
  554.   test -n "$AWK" && break
  555.   done
  556.   
  557.   if test -z "$CC"; then
  558.     # Extract the first word of `gcc', so it can be a program name with args.
  559. !   set ac_dummy gcc; ac_word=$2
  560. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  561. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  562. !   for ac_dir in $PATH; do
  563. !     test -z "$ac_dir" && ac_dir=.
  564. !     if test -f $ac_dir/$ac_word; then
  565.         CC="gcc"
  566.         break
  567.       fi
  568.     done
  569. !   IFS="$ac_save_ifs"
  570.   fi
  571.   test -z "$CC" && CC="cc"
  572. ! test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  573.   
  574.   # Find out if we are using GNU C, under whatever name.
  575.   cat > conftest.c <<EOF
  576. ***************
  577. *** 170,183 ****
  578.   fi
  579.   rm -f conftest*
  580.   
  581. ! echo checking for POSIXized ISC
  582. ! if test -d /etc/conf/kconfig.d &&
  583. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  584.   then
  585.     ISC=1 # If later tests want to check for ISC.
  586. !   {
  587.   test -n "$verbose" && \
  588. ! echo '    defining' _POSIX_SOURCE
  589.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  590.   }
  591.   
  592. --- 365,380 ----
  593.   fi
  594.   rm -f conftest*
  595.   
  596. ! test -n "$silent" || /bin/echo "checking for POSIXized ISC"
  597. ! if test -d /gnu/etc/conf/kconfig.d &&
  598. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  599.   then
  600.     ISC=1 # If later tests want to check for ISC.
  601. !   
  602. ! {
  603.   test -n "$verbose" && \
  604. ! /bin/echo "    defining _POSIX_SOURCE"
  605. ! /bin/echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  606.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  607.   }
  608.   
  609. ***************
  610. *** 188,263 ****
  611.     fi
  612.   fi
  613.   
  614. ! echo checking how to run the C preprocessor
  615.   if test -z "$CPP"; then
  616. !   CPP='${CC-cc} -E'
  617. !   cat > conftest.c <<EOF
  618.   #include <stdio.h>
  619.   EOF
  620. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  621. ! if test -z "$err"; then
  622.     :
  623.   else
  624.     CPP=/lib/cpp
  625.   fi
  626.   rm -f conftest*
  627.   fi
  628.   
  629.   # Make sure to not get the incompatible SysV /etc/install and
  630.   # /usr/sbin/install, which might be in PATH before a BSD-like install,
  631.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  632.   # or the AFS install, which mishandles nonexistent args, or
  633.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  634. ! # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  635. ! # anyway.  Sigh.
  636.   if test "z${INSTALL}" = "z" ; then
  637. !   echo checking for install
  638. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  639. !   for dir in $PATH; do
  640. !     test -z "$dir" && dir=.
  641. !     case $dir in
  642. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  643.       *)
  644. !       if test -f $dir/installbsd; then
  645. !     INSTALL="$dir/installbsd -c" # OSF1
  646. !     INSTALL_PROGRAM='$(INSTALL)'
  647. !     INSTALL_DATA='$(INSTALL) -m 644'
  648. !     break
  649. !       fi
  650. !       if test -f $dir/install; then
  651. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  652. !       : # AIX
  653. !     else
  654. !       INSTALL="$dir/install -c"
  655. !       INSTALL_PROGRAM='$(INSTALL)'
  656. !       INSTALL_DATA='$(INSTALL) -m 644'
  657. !       break
  658.       fi
  659. !       fi
  660.         ;;
  661.       esac
  662.     done
  663. !   IFS="$saveifs"
  664.   fi
  665. ! INSTALL=${INSTALL-cp}
  666. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  667. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  668. ! echo checking for ANSI C header files
  669. ! cat > conftest.c <<EOF
  670.   #include <stdlib.h>
  671.   #include <stdarg.h>
  672.   #include <string.h>
  673.   #include <float.h>
  674.   EOF
  675. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  676. ! if test -z "$err"; then
  677.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  678. ! echo '#include <string.h>' > conftest.c
  679. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  680.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  681.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  682. ! cat > conftest.c <<EOF
  683.   #include <ctype.h>
  684.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  685.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  686. --- 385,512 ----
  687.     fi
  688.   fi
  689.   
  690. ! test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  691.   if test -z "$CPP"; then
  692. !   # This must be in double quotes, not single quotes, because CPP may get
  693. !   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  694. !   # make.  It must be expanded now.
  695. !   CPP="${CC-cc} -E"
  696. !   cat > conftest.${ac_ext} <<EOF
  697. ! #include "confdefs.h"
  698. ! #include <stdio.h>
  699. ! Syntax Error
  700. ! EOF
  701. ! # Some shells (Coherent) do redirections in the wrong order, so need
  702. ! # the parens.
  703. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  704. ! if test -z "$ac_err"; then
  705. !   :
  706. ! else
  707. !   rm -rf conftest*
  708. !   CPP="${CC-cc} -E -traditional-cpp"
  709. !   cat > conftest.${ac_ext} <<EOF
  710. ! #include "confdefs.h"
  711.   #include <stdio.h>
  712. + Syntax Error
  713.   EOF
  714. ! # Some shells (Coherent) do redirections in the wrong order, so need
  715. ! # the parens.
  716. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  717. ! if test -z "$ac_err"; then
  718.     :
  719.   else
  720. +   rm -rf conftest*
  721.     CPP=/lib/cpp
  722.   fi
  723.   rm -f conftest*
  724.   fi
  725. + rm -f conftest*
  726. + fi
  727. + test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  728.   
  729.   # Make sure to not get the incompatible SysV /etc/install and
  730.   # /usr/sbin/install, which might be in PATH before a BSD-like install,
  731.   # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  732.   # or the AFS install, which mishandles nonexistent args, or
  733.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  734. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  735. ! # syntax.  Sigh.
  736. ! #
  737. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  738. ! #     anyway.
  739. ! # This turns out not to be true, so the mere pathname isn't an indication
  740. ! # of whether the program works.  What we really need is a set of tests for
  741. ! # the install program to see if it actually works in all the required ways.
  742. ! #
  743. ! # Avoid using ./install, which might have been erroneously created
  744. ! # by make from ./install.sh.
  745.   if test "z${INSTALL}" = "z" ; then
  746. !   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  747. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  748. !   for ac_dir in $PATH; do
  749. !     case "$ac_dir" in
  750. !     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  751.       *)
  752. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  753. !       for ac_prog in installbsd scoinst install; do
  754. !         if test -f $ac_dir/$ac_prog; then
  755. !       if test $ac_prog = install &&
  756. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  757. !         # AIX install.  It has an incompatible calling convention.
  758. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  759. !         :
  760. !       else
  761. !         INSTALL="$ac_dir/$ac_prog -c"
  762. !         INSTALL_PROGRAM='${INSTALL}'
  763. !         INSTALL_DATA='${INSTALL} -m 644'
  764. !         break 2
  765. !       fi
  766.       fi
  767. !       done
  768.         ;;
  769.       esac
  770.     done
  771. !   IFS="$ac_save_ifs"
  772.   fi
  773. ! if test -z "$INSTALL"; then
  774. !   if test -f ${srcdir}/install.sh; then
  775. !     # As a last resort, use the slow shell script.
  776. !     INSTALL='@top_srcdir@/install.sh -c'
  777. !   else
  778. !     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  779. !     INSTALL=cp
  780. !   fi
  781. ! fi
  782. ! test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  783. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  784. ! # It thinks the first close brace ends the variable substitution.
  785. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  786. ! test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  787. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  788. ! test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  789. ! test -n "$silent" || /bin/echo "checking for ANSI C header files"
  790. ! cat > conftest.${ac_ext} <<EOF
  791. ! #include "confdefs.h"
  792.   #include <stdlib.h>
  793.   #include <stdarg.h>
  794.   #include <string.h>
  795.   #include <float.h>
  796.   EOF
  797. ! # Some shells (Coherent) do redirections in the wrong order, so need
  798. ! # the parens.
  799. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  800. ! if test -z "$ac_err"; then
  801. !   rm -rf conftest*
  802.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  803. ! /bin/echo '#include "confdefs.h"
  804. ! #include <string.h>' > conftest.${ac_ext}
  805. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  806.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  807. +   rm -rf conftest*
  808.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  809. ! cat > conftest.${ac_ext} <<EOF
  810. ! #include "confdefs.h"
  811.   #include <ctype.h>
  812.   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  813.   #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  814. ***************
  815. *** 267,356 ****
  816.   exit (0); }
  817.   
  818.   EOF
  819. ! eval $compile
  820.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  821. !   {
  822.   test -n "$verbose" && \
  823. ! echo '    defining' STDC_HEADERS
  824.   DEFS="$DEFS -DSTDC_HEADERS=1"
  825.   }
  826.   
  827.   fi
  828.   rm -f conftest*
  829.   fi
  830.   rm -f conftest*
  831.   
  832.   fi
  833.   rm -f conftest*
  834.   
  835. ! for hdr in string.h sys/param.h
  836.   do
  837. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  838. ! echo checking for ${hdr}
  839. ! cat > conftest.c <<EOF
  840. ! #include <${hdr}>
  841. ! EOF
  842. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  843. ! if test -z "$err"; then
  844. !   {
  845.   test -n "$verbose" && \
  846. ! echo '    defining' ${trhdr}
  847. ! DEFS="$DEFS -D${trhdr}=1"
  848.   }
  849.   
  850.   fi
  851.   rm -f conftest*
  852.   done
  853.   
  854. ! echo checking whether string.h declares mem functions
  855. ! echo '#include <string.h>' > conftest.c
  856. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  857. ! if egrep "memchr" conftest.out >/dev/null 2>&1; then
  858. !   :
  859. ! else
  860. !   echo checking for memory.h
  861. ! cat > conftest.c <<EOF
  862. ! #include <memory.h>
  863. ! EOF
  864. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  865. ! if test -z "$err"; then
  866. !   {
  867.   test -n "$verbose" && \
  868. ! echo '    defining' NEED_MEMORY_H
  869. ! DEFS="$DEFS -DNEED_MEMORY_H=1"
  870.   }
  871.   
  872. - fi
  873. - rm -f conftest*
  874.   
  875.   fi
  876.   rm -f conftest*
  877.   
  878. ! echo checking for unistd.h
  879. ! cat > conftest.c <<EOF
  880. ! #include <unistd.h>
  881. ! EOF
  882. ! err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  883. ! if test -z "$err"; then
  884. !   {
  885.   test -n "$verbose" && \
  886. ! echo '    defining' HAVE_UNISTD_H
  887. ! DEFS="$DEFS -DHAVE_UNISTD_H=1"
  888.   }
  889.   
  890.   fi
  891.   rm -f conftest*
  892.   
  893. ! echo checking for size_t in sys/types.h
  894. ! echo '#include <sys/types.h>' > conftest.c
  895. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  896.   if egrep "size_t" conftest.out >/dev/null 2>&1; then
  897.     :
  898.   else
  899. !   {
  900.   test -n "$verbose" && \
  901. ! echo '    defining' size_t to be 'unsigned'
  902.   DEFS="$DEFS -Dsize_t=unsigned"
  903.   }
  904.   
  905. --- 516,643 ----
  906.   exit (0); }
  907.   
  908.   EOF
  909. ! eval $ac_compile
  910.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  911. !   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  912. ! /bin/echo '#include "confdefs.h"
  913. ! #include <stdlib.h>' > conftest.${ac_ext}
  914. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  915. ! if egrep "free" conftest.out >/dev/null 2>&1; then
  916. !   rm -rf conftest*
  917. !   
  918. ! {
  919.   test -n "$verbose" && \
  920. ! /bin/echo "    defining STDC_HEADERS"
  921. ! /bin/echo "#define" STDC_HEADERS "1" >> confdefs.h
  922.   DEFS="$DEFS -DSTDC_HEADERS=1"
  923.   }
  924.   
  925.   fi
  926.   rm -f conftest*
  927. + fi
  928. + rm -fr conftest*
  929.   fi
  930.   rm -f conftest*
  931.   
  932.   fi
  933.   rm -f conftest*
  934.   
  935. ! for ac_hdr in string.h sys/param.h
  936.   do
  937. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  938. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  939. ! cat > conftest.${ac_ext} <<EOF
  940. ! #include "confdefs.h"
  941. ! #include <${ac_hdr}>
  942. ! EOF
  943. ! # Some shells (Coherent) do redirections in the wrong order, so need
  944. ! # the parens.
  945. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  946. ! if test -z "$ac_err"; then
  947. !   rm -rf conftest*
  948. !   
  949. ! {
  950.   test -n "$verbose" && \
  951. ! /bin/echo "    defining ${ac_tr_hdr}"
  952. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  953. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  954.   }
  955.   
  956.   fi
  957.   rm -f conftest*
  958.   done
  959.   
  960. ! for ac_hdr in memory.h
  961. ! do
  962. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  963. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  964. ! cat > conftest.${ac_ext} <<EOF
  965. ! #include "confdefs.h"
  966. ! #include <${ac_hdr}>
  967. ! EOF
  968. ! # Some shells (Coherent) do redirections in the wrong order, so need
  969. ! # the parens.
  970. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  971. ! if test -z "$ac_err"; then
  972. !   rm -rf conftest*
  973. !   
  974. ! {
  975.   test -n "$verbose" && \
  976. ! /bin/echo "    defining ${ac_tr_hdr}"
  977. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  978. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  979.   }
  980.   
  981.   
  982.   fi
  983.   rm -f conftest*
  984. + done
  985.   
  986. ! for ac_hdr in unistd.h
  987. ! do
  988. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  989. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  990. ! cat > conftest.${ac_ext} <<EOF
  991. ! #include "confdefs.h"
  992. ! #include <${ac_hdr}>
  993. ! EOF
  994. ! # Some shells (Coherent) do redirections in the wrong order, so need
  995. ! # the parens.
  996. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  997. ! if test -z "$ac_err"; then
  998. !   rm -rf conftest*
  999. !   
  1000. ! {
  1001.   test -n "$verbose" && \
  1002. ! /bin/echo "    defining ${ac_tr_hdr}"
  1003. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1004. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1005.   }
  1006.   
  1007.   fi
  1008.   rm -f conftest*
  1009. + done
  1010.   
  1011. ! test -n "$silent" || /bin/echo "checking for size_t in sys/types.h"
  1012. ! /bin/echo '#include "confdefs.h"
  1013. ! #include <sys/types.h>' > conftest.${ac_ext}
  1014. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1015.   if egrep "size_t" conftest.out >/dev/null 2>&1; then
  1016.     :
  1017.   else
  1018. !   rm -rf conftest*
  1019. !   
  1020. ! {
  1021.   test -n "$verbose" && \
  1022. ! /bin/echo "    defining" size_t to be "unsigned"
  1023. ! /bin/echo "#define" size_t "unsigned" >> confdefs.h
  1024.   DEFS="$DEFS -Dsize_t=unsigned"
  1025.   }
  1026.   
  1027. ***************
  1028. *** 359,381 ****
  1029.   
  1030.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1031.   # for constant arguments.  Useless!
  1032. ! echo checking for working alloca.h
  1033. ! cat > conftest.c <<EOF
  1034.   #include <alloca.h>
  1035. ! int main() { exit(0); }
  1036. ! int t() { char *p = alloca(2 * sizeof(int)); }
  1037.   EOF
  1038. ! if eval $compile; then
  1039. !   {
  1040.   test -n "$verbose" && \
  1041. ! echo '    defining' HAVE_ALLOCA_H
  1042.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  1043.   }
  1044.   
  1045.   fi
  1046.   rm -f conftest*
  1047.   
  1048. ! decl="#ifdef __GNUC__
  1049.   #define alloca __builtin_alloca
  1050.   #else
  1051.   #if HAVE_ALLOCA_H
  1052. --- 646,673 ----
  1053.   
  1054.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1055.   # for constant arguments.  Useless!
  1056. ! test -n "$silent" || /bin/echo "checking for working alloca.h"
  1057. ! cat > conftest.${ac_ext} <<EOF
  1058. ! #include "confdefs.h"
  1059.   #include <alloca.h>
  1060. ! int main() { return 0; }
  1061. ! int t() { char *p = alloca(2 * sizeof(int));; return 0; }
  1062.   EOF
  1063. ! if eval $ac_compile; then
  1064. !   rm -rf conftest*
  1065. !   
  1066. ! {
  1067.   test -n "$verbose" && \
  1068. ! /bin/echo "    defining HAVE_ALLOCA_H"
  1069. ! /bin/echo "#define" HAVE_ALLOCA_H "1" >> confdefs.h
  1070.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  1071.   }
  1072.   
  1073.   fi
  1074.   rm -f conftest*
  1075.   
  1076. ! ac_decl="#ifdef __GNUC__
  1077.   #define alloca __builtin_alloca
  1078.   #else
  1079.   #if HAVE_ALLOCA_H
  1080. ***************
  1081. *** 389,405 ****
  1082.   #endif
  1083.   #endif
  1084.   "
  1085. ! echo checking for alloca
  1086. ! cat > conftest.c <<EOF
  1087. ! $decl
  1088. ! int main() { exit(0); }
  1089. ! int t() { char *p = (char *) alloca(1); }
  1090. ! EOF
  1091. ! if eval $compile; then
  1092. !   :
  1093.   else
  1094. !   alloca_missing=1
  1095. ! cat > conftest.c <<EOF
  1096.   
  1097.   #if defined(CRAY) && ! defined(CRAY2)
  1098.   winnitude
  1099. --- 681,709 ----
  1100.   #endif
  1101.   #endif
  1102.   "
  1103. ! test -n "$silent" || /bin/echo "checking for alloca"
  1104. ! cat > conftest.${ac_ext} <<EOF
  1105. ! #include "confdefs.h"
  1106. ! $ac_decl
  1107. ! int main() { return 0; }
  1108. ! int t() { char *p = (char *) alloca(1);; return 0; }
  1109. ! EOF
  1110. ! if eval $ac_compile; then
  1111. !   rm -rf conftest*
  1112. !   
  1113. ! {
  1114. ! test -n "$verbose" && \
  1115. ! /bin/echo "    defining HAVE_ALLOCA"
  1116. ! /bin/echo "#define" HAVE_ALLOCA "1" >> confdefs.h
  1117. ! DEFS="$DEFS -DHAVE_ALLOCA=1"
  1118. ! }
  1119.   else
  1120. !   rm -rf conftest*
  1121. !   ac_alloca_missing=1
  1122. ! cat > conftest.${ac_ext} <<EOF
  1123. ! #include "confdefs.h"
  1124.   
  1125.   #if defined(CRAY) && ! defined(CRAY2)
  1126.   winnitude
  1127. ***************
  1128. *** 408,419 ****
  1129.   #endif
  1130.   
  1131.   EOF
  1132. ! eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1133.   if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  1134. !   echo checking for _getb67
  1135. ! cat > conftest.c <<EOF
  1136.   #include <ctype.h>
  1137. ! int main() { exit(0); }
  1138.   int t() { 
  1139.   /* The GNU C library defines this for functions which it implements
  1140.       to always fail with ENOSYS.  Some functions are actually named
  1141. --- 712,725 ----
  1142.   #endif
  1143.   
  1144.   EOF
  1145. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1146.   if egrep "winnitude" conftest.out >/dev/null 2>&1; then
  1147. !   rm -rf conftest*
  1148. !   test -n "$silent" || /bin/echo "checking for _getb67"
  1149. ! cat > conftest.${ac_ext} <<EOF
  1150. ! #include "confdefs.h"
  1151.   #include <ctype.h>
  1152. ! int main() { return 0; }
  1153.   int t() { 
  1154.   /* The GNU C library defines this for functions which it implements
  1155.       to always fail with ENOSYS.  Some functions are actually named
  1156. ***************
  1157. *** 424,443 ****
  1158.   /* Override any gcc2 internal prototype to avoid an error.  */
  1159.   extern char _getb67(); _getb67();
  1160.   #endif
  1161. !  }
  1162.   EOF
  1163. ! if eval $compile; then
  1164.     {
  1165.   test -n "$verbose" && \
  1166. ! echo '    defining' CRAY_STACKSEG_END to be '_getb67'
  1167.   DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  1168.   }
  1169.   
  1170.   else
  1171. !   echo checking for GETB67
  1172. ! cat > conftest.c <<EOF
  1173.   #include <ctype.h>
  1174. ! int main() { exit(0); }
  1175.   int t() { 
  1176.   /* The GNU C library defines this for functions which it implements
  1177.       to always fail with ENOSYS.  Some functions are actually named
  1178. --- 730,754 ----
  1179.   /* Override any gcc2 internal prototype to avoid an error.  */
  1180.   extern char _getb67(); _getb67();
  1181.   #endif
  1182. ! ; return 0; }
  1183.   EOF
  1184. ! if eval $ac_compile; then
  1185. !   rm -rf conftest*
  1186.     {
  1187.   test -n "$verbose" && \
  1188. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "_getb67"
  1189. ! /bin/echo "#define" CRAY_STACKSEG_END "_getb67" >> confdefs.h
  1190.   DEFS="$DEFS -DCRAY_STACKSEG_END=_getb67"
  1191.   }
  1192.   
  1193.   else
  1194. !   rm -rf conftest*
  1195. !   test -n "$silent" || /bin/echo "checking for GETB67"
  1196. ! cat > conftest.${ac_ext} <<EOF
  1197. ! #include "confdefs.h"
  1198.   #include <ctype.h>
  1199. ! int main() { return 0; }
  1200.   int t() { 
  1201.   /* The GNU C library defines this for functions which it implements
  1202.       to always fail with ENOSYS.  Some functions are actually named
  1203. ***************
  1204. *** 448,467 ****
  1205.   /* Override any gcc2 internal prototype to avoid an error.  */
  1206.   extern char GETB67(); GETB67();
  1207.   #endif
  1208. !  }
  1209.   EOF
  1210. ! if eval $compile; then
  1211.     {
  1212.   test -n "$verbose" && \
  1213. ! echo '    defining' CRAY_STACKSEG_END to be 'GETB67'
  1214.   DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  1215.   }
  1216.   
  1217.   else
  1218. !   echo checking for getb67
  1219. ! cat > conftest.c <<EOF
  1220.   #include <ctype.h>
  1221. ! int main() { exit(0); }
  1222.   int t() { 
  1223.   /* The GNU C library defines this for functions which it implements
  1224.       to always fail with ENOSYS.  Some functions are actually named
  1225. --- 759,783 ----
  1226.   /* Override any gcc2 internal prototype to avoid an error.  */
  1227.   extern char GETB67(); GETB67();
  1228.   #endif
  1229. ! ; return 0; }
  1230.   EOF
  1231. ! if eval $ac_compile; then
  1232. !   rm -rf conftest*
  1233.     {
  1234.   test -n "$verbose" && \
  1235. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "GETB67"
  1236. ! /bin/echo "#define" CRAY_STACKSEG_END "GETB67" >> confdefs.h
  1237.   DEFS="$DEFS -DCRAY_STACKSEG_END=GETB67"
  1238.   }
  1239.   
  1240.   else
  1241. !   rm -rf conftest*
  1242. !   test -n "$silent" || /bin/echo "checking for getb67"
  1243. ! cat > conftest.${ac_ext} <<EOF
  1244. ! #include "confdefs.h"
  1245.   #include <ctype.h>
  1246. ! int main() { return 0; }
  1247.   int t() { 
  1248.   /* The GNU C library defines this for functions which it implements
  1249.       to always fail with ENOSYS.  Some functions are actually named
  1250. ***************
  1251. *** 472,486 ****
  1252.   /* Override any gcc2 internal prototype to avoid an error.  */
  1253.   extern char getb67(); getb67();
  1254.   #endif
  1255. !  }
  1256.   EOF
  1257. ! if eval $compile; then
  1258.     {
  1259.   test -n "$verbose" && \
  1260. ! echo '    defining' CRAY_STACKSEG_END to be 'getb67'
  1261.   DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  1262.   }
  1263.   
  1264.   fi
  1265.   rm -f conftest*
  1266.   
  1267. --- 788,805 ----
  1268.   /* Override any gcc2 internal prototype to avoid an error.  */
  1269.   extern char getb67(); getb67();
  1270.   #endif
  1271. ! ; return 0; }
  1272.   EOF
  1273. ! if eval $ac_compile; then
  1274. !   rm -rf conftest*
  1275.     {
  1276.   test -n "$verbose" && \
  1277. ! /bin/echo "    defining" CRAY_STACKSEG_END to be "getb67"
  1278. ! /bin/echo "#define" CRAY_STACKSEG_END "getb67" >> confdefs.h
  1279.   DEFS="$DEFS -DCRAY_STACKSEG_END=getb67"
  1280.   }
  1281.   
  1282.   fi
  1283.   rm -f conftest*
  1284.   
  1285. ***************
  1286. *** 490,495 ****
  1287. --- 809,815 ----
  1288.   fi
  1289.   rm -f conftest*
  1290.   
  1291.   fi
  1292.   rm -f conftest*
  1293.   
  1294. ***************
  1295. *** 497,533 ****
  1296.   fi
  1297.   rm -f conftest*
  1298.   
  1299. ! if test -n "$alloca_missing"; then
  1300.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1301.     # that cause trouble.  Some versions do not even contain alloca or
  1302.     # contain a buggy version.  If you still want to use their alloca,
  1303.     # use ar to extract alloca.o from them instead of compiling alloca.c.
  1304.     ALLOCA=alloca.o
  1305.   
  1306. !   echo 'checking stack direction for C alloca'
  1307. !   echo checking whether cross-compiling
  1308.   # If we cannot run a trivial program, we must be cross compiling.
  1309. ! cat > conftest.c <<EOF
  1310.   main(){exit(0);}
  1311.   EOF
  1312. ! eval $compile
  1313.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1314.     :
  1315.   else
  1316.     cross_compiling=1
  1317.   fi
  1318. ! rm -f conftest*
  1319.   
  1320.   if test -n "$cross_compiling"
  1321.   then
  1322. !   {
  1323.   test -n "$verbose" && \
  1324. ! echo '    defining' STACK_DIRECTION to be '0'
  1325.   DEFS="$DEFS -DSTACK_DIRECTION=0"
  1326.   }
  1327.   
  1328.   else
  1329. ! cat > conftest.c <<EOF
  1330.   find_stack_direction ()
  1331.   {
  1332.     static char *addr = 0;
  1333. --- 817,865 ----
  1334.   fi
  1335.   rm -f conftest*
  1336.   
  1337. ! if test -n "$ac_alloca_missing"; then
  1338.     # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1339.     # that cause trouble.  Some versions do not even contain alloca or
  1340.     # contain a buggy version.  If you still want to use their alloca,
  1341.     # use ar to extract alloca.o from them instead of compiling alloca.c.
  1342.     ALLOCA=alloca.o
  1343. +   
  1344. + {
  1345. + test -n "$verbose" && \
  1346. + /bin/echo "    defining C_ALLOCA"
  1347. + /bin/echo "#define" C_ALLOCA "1" >> confdefs.h
  1348. + DEFS="$DEFS -DC_ALLOCA=1"
  1349. + }
  1350.   
  1351. !   test -n "$silent" || /bin/echo "checking stack direction for C alloca"
  1352. !   test -n "$silent" || /bin/echo "checking whether cross-compiling"
  1353.   # If we cannot run a trivial program, we must be cross compiling.
  1354. ! cat > conftest.${ac_ext} <<EOF
  1355. ! #include "confdefs.h"
  1356.   main(){exit(0);}
  1357.   EOF
  1358. ! eval $ac_compile
  1359.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1360.     :
  1361.   else
  1362.     cross_compiling=1
  1363.   fi
  1364. ! rm -fr conftest*
  1365.   
  1366.   if test -n "$cross_compiling"
  1367.   then
  1368. !   
  1369. ! {
  1370.   test -n "$verbose" && \
  1371. ! /bin/echo "    defining" STACK_DIRECTION to be "0"
  1372. ! /bin/echo "#define" STACK_DIRECTION "0" >> confdefs.h
  1373.   DEFS="$DEFS -DSTACK_DIRECTION=0"
  1374.   }
  1375.   
  1376.   else
  1377. ! cat > conftest.${ac_ext} <<EOF
  1378. ! #include "confdefs.h"
  1379.   find_stack_direction ()
  1380.   {
  1381.     static char *addr = 0;
  1382. ***************
  1383. *** 545,602 ****
  1384.     exit (find_stack_direction() < 0);
  1385.   }
  1386.   EOF
  1387. ! eval $compile
  1388.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1389. !   {
  1390.   test -n "$verbose" && \
  1391. ! echo '    defining' STACK_DIRECTION to be '1'
  1392.   DEFS="$DEFS -DSTACK_DIRECTION=1"
  1393.   }
  1394.   
  1395.   else
  1396. !   {
  1397.   test -n "$verbose" && \
  1398. ! echo '    defining' STACK_DIRECTION to be '-1'
  1399.   DEFS="$DEFS -DSTACK_DIRECTION=-1"
  1400.   }
  1401.   
  1402.   fi
  1403.   fi
  1404. ! rm -f conftest*
  1405.   fi
  1406.   
  1407. ! for func in getpagesize memchr strerror valloc
  1408.   do
  1409. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1410. ! echo checking for ${func}
  1411. ! cat > conftest.c <<EOF
  1412.   #include <ctype.h>
  1413. ! int main() { exit(0); }
  1414.   int t() { 
  1415.   /* The GNU C library defines this for functions which it implements
  1416.       to always fail with ENOSYS.  Some functions are actually named
  1417.       something starting with __ and the normal name is an alias.  */
  1418. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1419.   choke me
  1420.   #else
  1421.   /* Override any gcc2 internal prototype to avoid an error.  */
  1422. ! extern char ${func}(); ${func}();
  1423.   #endif
  1424. !  }
  1425.   EOF
  1426. ! if eval $compile; then
  1427.     {
  1428.   test -n "$verbose" && \
  1429. ! echo '    defining' ${trfunc}
  1430. ! DEFS="$DEFS -D${trfunc}=1"
  1431.   }
  1432.   
  1433.   fi
  1434.   rm -f conftest*
  1435.   done
  1436.   
  1437. ! echo checking for unsigned characters
  1438. ! cat > conftest.c <<EOF
  1439.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1440.   #if !__STDC__
  1441.   #define volatile
  1442. --- 877,944 ----
  1443.     exit (find_stack_direction() < 0);
  1444.   }
  1445.   EOF
  1446. ! eval $ac_compile
  1447.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1448. !   
  1449. ! {
  1450.   test -n "$verbose" && \
  1451. ! /bin/echo "    defining" STACK_DIRECTION to be "1"
  1452. ! /bin/echo "#define" STACK_DIRECTION "1" >> confdefs.h
  1453.   DEFS="$DEFS -DSTACK_DIRECTION=1"
  1454.   }
  1455.   
  1456.   else
  1457. !   
  1458. ! {
  1459.   test -n "$verbose" && \
  1460. ! /bin/echo "    defining" STACK_DIRECTION to be "-1"
  1461. ! /bin/echo "#define" STACK_DIRECTION "-1" >> confdefs.h
  1462.   DEFS="$DEFS -DSTACK_DIRECTION=-1"
  1463.   }
  1464.   
  1465.   fi
  1466.   fi
  1467. ! rm -fr conftest*
  1468.   fi
  1469.   
  1470. ! for ac_func in getpagesize memchr strerror valloc
  1471.   do
  1472. ! ac_tr_func=HAVE_`/bin/echo $ac_func | tr '[a-z]' '[A-Z]'`
  1473. ! test -n "$silent" || /bin/echo "checking for ${ac_func}"
  1474. ! cat > conftest.${ac_ext} <<EOF
  1475. ! #include "confdefs.h"
  1476.   #include <ctype.h>
  1477. ! int main() { return 0; }
  1478.   int t() { 
  1479.   /* The GNU C library defines this for functions which it implements
  1480.       to always fail with ENOSYS.  Some functions are actually named
  1481.       something starting with __ and the normal name is an alias.  */
  1482. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1483.   choke me
  1484.   #else
  1485.   /* Override any gcc2 internal prototype to avoid an error.  */
  1486. ! extern char ${ac_func}(); ${ac_func}();
  1487.   #endif
  1488. ! ; return 0; }
  1489.   EOF
  1490. ! if eval $ac_compile; then
  1491. !   rm -rf conftest*
  1492.     {
  1493.   test -n "$verbose" && \
  1494. ! /bin/echo "    defining ${ac_tr_func}"
  1495. ! /bin/echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1496. ! DEFS="$DEFS -D${ac_tr_func}=1"
  1497.   }
  1498.   
  1499.   fi
  1500.   rm -f conftest*
  1501.   done
  1502.   
  1503. ! test -n "$silent" || /bin/echo "checking for unsigned characters"
  1504. ! cat > conftest.${ac_ext} <<EOF
  1505. ! #include "confdefs.h"
  1506.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1507.   #if !__STDC__
  1508.   #define volatile
  1509. ***************
  1510. *** 609,626 ****
  1511.   #endif
  1512.   }
  1513.   EOF
  1514. ! eval $compile
  1515.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1516. !   {
  1517.   test -n "$verbose" && \
  1518. ! echo '    defining' __CHAR_UNSIGNED__
  1519.   DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1520.   }
  1521.   
  1522.   fi
  1523. ! rm -f conftest*
  1524.   
  1525. ! prog='/* Ultrix mips cc rejects this.  */
  1526.   typedef int charset[2]; const charset x;
  1527.   /* SunOS 4.1.1 cc rejects this.  */
  1528.   char const *const *ccp;
  1529. --- 951,971 ----
  1530.   #endif
  1531.   }
  1532.   EOF
  1533. ! eval $ac_compile
  1534.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1535. !   
  1536. ! {
  1537.   test -n "$verbose" && \
  1538. ! /bin/echo "    defining __CHAR_UNSIGNED__"
  1539. ! /bin/echo "#define" __CHAR_UNSIGNED__ "1" >> confdefs.h
  1540.   DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1541.   }
  1542.   
  1543.   fi
  1544. ! rm -fr conftest*
  1545.   
  1546. ! ac_prog='/* Ultrix mips cc rejects this.  */
  1547.   typedef int charset[2]; const charset x;
  1548.   /* SunOS 4.1.1 cc rejects this.  */
  1549.   char const *const *ccp;
  1550. ***************
  1551. *** 629,635 ****
  1552.      It does not let you subtract one const X* pointer from another in an arm
  1553.      of an if-expression whose if-part is not a constant expression */
  1554.   const char *g = "string";
  1555. ! p = &g + (g ? g-g : 0);
  1556.   /* HPUX 7.0 cc rejects these. */
  1557.   ++ccp;
  1558.   p = (char**) ccp;
  1559. --- 974,980 ----
  1560.      It does not let you subtract one const X* pointer from another in an arm
  1561.      of an if-expression whose if-part is not a constant expression */
  1562.   const char *g = "string";
  1563. ! ccp = &g + (g ? g-g : 0);
  1564.   /* HPUX 7.0 cc rejects these. */
  1565.   ++ccp;
  1566.   p = (char**) ccp;
  1567. ***************
  1568. *** 654,672 ****
  1569.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1570.     struct s { int j; const int *ap[3]; };
  1571.     struct s *b; b->j = 5;
  1572.   }'
  1573. ! echo checking for working const
  1574. ! cat > conftest.c <<EOF
  1575.   
  1576. ! int main() { exit(0); }
  1577. ! int t() { $prog }
  1578.   EOF
  1579. ! if eval $compile; then
  1580.     :
  1581.   else
  1582. !   {
  1583.   test -n "$verbose" && \
  1584. ! echo '    defining' const to be 'empty'
  1585.   DEFS="$DEFS -Dconst="
  1586.   }
  1587.   
  1588. --- 999,1024 ----
  1589.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1590.     struct s { int j; const int *ap[3]; };
  1591.     struct s *b; b->j = 5;
  1592. + }
  1593. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1594. +   const int foo = 10;
  1595.   }'
  1596. ! test -n "$silent" || /bin/echo "checking for lack of working const"
  1597. ! cat > conftest.${ac_ext} <<EOF
  1598. ! #include "confdefs.h"
  1599.   
  1600. ! int main() { return 0; }
  1601. ! int t() { $ac_prog; return 0; }
  1602.   EOF
  1603. ! if eval $ac_compile; then
  1604.     :
  1605.   else
  1606. !   rm -rf conftest*
  1607. !   
  1608. ! {
  1609.   test -n "$verbose" && \
  1610. ! /bin/echo "    defining" const to be empty
  1611. ! /bin/echo "#define" const "" >> confdefs.h
  1612.   DEFS="$DEFS -Dconst="
  1613.   }
  1614.   
  1615. ***************
  1616. *** 674,680 ****
  1617.   rm -f conftest*
  1618.   
  1619.   echo checking for working mmap
  1620. ! cat > conftest.c <<EOF
  1621.   
  1622.   #include <fcntl.h>
  1623.   #include <sys/types.h>
  1624. --- 1026,1033 ----
  1625.   rm -f conftest*
  1626.   
  1627.   echo checking for working mmap
  1628. ! cat > conftest.${ac_ext} <<EOF
  1629. ! #include "confdefs.h"
  1630.   
  1631.   #include <fcntl.h>
  1632.   #include <sys/types.h>
  1633. ***************
  1634. *** 728,756 ****
  1635.   }
  1636.   
  1637.   EOF
  1638. ! eval $compile
  1639.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1640. !   {
  1641.   test -n "$verbose" && \
  1642. ! echo '    defining' HAVE_WORKING_MMAP
  1643.   DEFS="$DEFS -DHAVE_WORKING_MMAP=1"
  1644.   }
  1645.   
  1646.   fi
  1647. ! rm -f conftest*
  1648.   if test -n "$prefix"; then
  1649. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  1650. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  1651.   fi
  1652.   if test -n "$exec_prefix"; then
  1653. !   prsub="$prsub
  1654. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%\
  1655. ! exec_prefix\\1=\\2$exec_prefix%"
  1656.   fi
  1657. ! DEFS="`echo \"$DEFS\" | sed 's%[&\\\]%\\\&%g'`"
  1658.   
  1659. ! trap 'rm -f config.status; exit 1' 1 3 15
  1660. ! echo creating config.status
  1661.   rm -f config.status
  1662.   cat > config.status <<EOF
  1663.   #!/bin/sh
  1664. --- 1081,1126 ----
  1665.   }
  1666.   
  1667.   EOF
  1668. ! eval $ac_compile
  1669.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1670. !   
  1671. ! {
  1672.   test -n "$verbose" && \
  1673. ! /bin/echo "    defining HAVE_WORKING_MMAP"
  1674. ! /bin/echo "#define" HAVE_WORKING_MMAP "1" >> confdefs.h
  1675.   DEFS="$DEFS -DHAVE_WORKING_MMAP=1"
  1676.   }
  1677.   
  1678.   fi
  1679. ! rm -fr conftest*
  1680. ! # Set default prefixes.
  1681.   if test -n "$prefix"; then
  1682. !   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  1683. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  1684.   fi
  1685.   if test -n "$exec_prefix"; then
  1686. !   ac_prsub="$ac_prsub
  1687. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  1688.   fi
  1689. ! # Any assignment to VPATH causes Sun make to only execute
  1690. ! # the first set of double-colon rules, so remove it if not needed.
  1691. ! # If there is a colon in the path, we need to keep it.
  1692. ! if test "x$srcdir" = x.; then
  1693. !   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1694. ! fi
  1695. ! # Quote sed substitution magic chars in DEFS.
  1696. ! cat >conftest.def <<EOF
  1697. ! $DEFS
  1698. ! EOF
  1699. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  1700. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  1701. ! rm -f conftest.def
  1702. ! # Substitute for predefined variables.
  1703.   
  1704. ! trap 'rm -f config.status; exit 1' 1 2 15
  1705. ! /bin/echo creating config.status
  1706.   rm -f config.status
  1707.   cat > config.status <<EOF
  1708.   #!/bin/sh
  1709. ***************
  1710. *** 759,776 ****
  1711.   # This directory was configured as follows,
  1712.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1713.   #
  1714. ! # $0 $*
  1715.   
  1716. ! for arg
  1717.   do
  1718. !   case "\$arg" in
  1719. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1720. !     exec /bin/sh $0 $* ;;
  1721. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  1722.     esac
  1723.   done
  1724.   
  1725. ! trap 'rm -f Makefile; exit 1' 1 3 15
  1726.   AWK='$AWK'
  1727.   CC='$CC'
  1728.   CPP='$CPP'
  1729. --- 1129,1153 ----
  1730.   # This directory was configured as follows,
  1731.   # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1732.   #
  1733. ! # $0 $configure_args
  1734.   
  1735. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  1736. ! for ac_option
  1737.   do
  1738. !   case "\$ac_option" in
  1739. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1740. !     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  1741. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  1742. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1743. !     /bin/echo "config.status generated by autoconf version 1.9"
  1744. !     exit 0 ;;
  1745. !   -help | --help | --hel | --he | --h)
  1746. !     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  1747. !   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  1748.     esac
  1749.   done
  1750.   
  1751. ! trap 'rm -f Makefile; exit 1' 1 2 15
  1752.   AWK='$AWK'
  1753.   CC='$CC'
  1754.   CPP='$CPP'
  1755. ***************
  1756. *** 780,810 ****
  1757.   ALLOCA='$ALLOCA'
  1758.   LIBS='$LIBS'
  1759.   srcdir='$srcdir'
  1760. ! DEFS='$DEFS'
  1761.   prefix='$prefix'
  1762.   exec_prefix='$exec_prefix'
  1763. ! prsub='$prsub'
  1764.   EOF
  1765.   cat >> config.status <<\EOF
  1766.   
  1767. ! top_srcdir=$srcdir
  1768. ! # Allow make-time overrides of the generated file list.
  1769. ! test -n "$gen_files" || gen_files="Makefile"
  1770.   
  1771. ! for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  1772. !   srcdir=$top_srcdir
  1773.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1774. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  1775. !   if test "$dir" != "$file"; then
  1776. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  1777. !     test ! -d $dir && mkdir $dir
  1778.     fi
  1779. !   echo creating $file
  1780. !   rm -f $file
  1781. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  1782.     sed -e "
  1783. ! $prsub
  1784.   s%@AWK@%$AWK%g
  1785.   s%@CC@%$CC%g
  1786.   s%@CPP@%$CPP%g
  1787. --- 1157,1207 ----
  1788.   ALLOCA='$ALLOCA'
  1789.   LIBS='$LIBS'
  1790.   srcdir='$srcdir'
  1791. ! top_srcdir='$top_srcdir'
  1792.   prefix='$prefix'
  1793.   exec_prefix='$exec_prefix'
  1794. ! DEFS='$DEFS'
  1795. ! ac_prsub='$ac_prsub'
  1796. ! ac_vpsub='$ac_vpsub'
  1797. ! extrasub='$extrasub'
  1798.   EOF
  1799.   cat >> config.status <<\EOF
  1800.   
  1801. ! ac_given_srcdir=$srcdir
  1802.   
  1803. ! CONFIG_FILES=${CONFIG_FILES-"Makefile"}
  1804. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  1805.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1806. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1807. !   if test "$ac_dir" != "$ac_file"; then
  1808. !     # The file is in a subdirectory.
  1809. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1810. !     ac_dir_suffix="/$ac_dir"
  1811. !   else
  1812. !     ac_dir_suffix=
  1813.     fi
  1814. !   # A "../" for each directory in $ac_dir_suffix.
  1815. !   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1816. !   case "$ac_given_srcdir" in
  1817. !   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  1818. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1819. !   *) # Relative path.
  1820. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1821. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1822. !   esac
  1823. !   /bin/echo creating "$ac_file"
  1824. !   rm -f "$ac_file"
  1825. !   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  1826. !   case "$ac_file" in
  1827. !     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  1828. !     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  1829. !   esac
  1830.     sed -e "
  1831. ! $ac_prsub
  1832. ! $ac_vpsub
  1833. ! $extrasub
  1834.   s%@AWK@%$AWK%g
  1835.   s%@CC@%$CC%g
  1836.   s%@CPP@%$CPP%g
  1837. ***************
  1838. *** 814,825 ****
  1839.   s%@ALLOCA@%$ALLOCA%g
  1840.   s%@LIBS@%$LIBS%g
  1841.   s%@srcdir@%$srcdir%g
  1842.   s%@DEFS@%$DEFS%
  1843. ! " $top_srcdir/${file}.in >> $file
  1844.   fi; done
  1845.   
  1846.   exit 0
  1847.   EOF
  1848.   chmod +x config.status
  1849. ! test -n "$no_create" || ./config.status
  1850.   
  1851. --- 1211,1226 ----
  1852.   s%@ALLOCA@%$ALLOCA%g
  1853.   s%@LIBS@%$LIBS%g
  1854.   s%@srcdir@%$srcdir%g
  1855. + s%@top_srcdir@%$top_srcdir%g
  1856. + s%@prefix@%$prefix%g
  1857. + s%@exec_prefix@%$exec_prefix%g
  1858.   s%@DEFS@%$DEFS%
  1859. ! " $ac_given_srcdir/${ac_file}.in >> $ac_file
  1860.   fi; done
  1861.   
  1862.   exit 0
  1863.   EOF
  1864.   chmod +x config.status
  1865. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  1866.   
  1867. diff -rc --new-file grep-2.0/configure.in /gnu/src/amiga/grep-2.0/configure.in
  1868. *** grep-2.0/configure.in    Sat May 22 04:20:16 1993
  1869. --- /gnu/src/amiga/grep-2.0/configure.in    Mon Apr 25 16:58:51 1994
  1870. ***************
  1871. *** 7,14 ****
  1872.   AC_PROG_INSTALL
  1873.   AC_STDC_HEADERS
  1874.   AC_HAVE_HEADERS(string.h sys/param.h)
  1875. ! AC_MEMORY_H
  1876. ! AC_UNISTD_H
  1877.   AC_SIZE_T
  1878.   AC_ALLOCA
  1879.   AC_HAVE_FUNCS(getpagesize memchr strerror valloc)
  1880. --- 7,14 ----
  1881.   AC_PROG_INSTALL
  1882.   AC_STDC_HEADERS
  1883.   AC_HAVE_HEADERS(string.h sys/param.h)
  1884. ! AC_HAVE_HEADERS(memory.h)
  1885. ! AC_HAVE_HEADERS(unistd.h)
  1886.   AC_SIZE_T
  1887.   AC_ALLOCA
  1888.   AC_HAVE_FUNCS(getpagesize memchr strerror valloc)
  1889. diff -rc --new-file grep-2.0/dfa.h /gnu/src/amiga/grep-2.0/dfa.h
  1890. *** grep-2.0/dfa.h    Sun Apr 11 21:17:22 1993
  1891. --- /gnu/src/amiga/grep-2.0/dfa.h    Wed Feb 23 17:20:03 1994
  1892. ***************
  1893. *** 23,35 ****
  1894. --- 23,39 ----
  1895.      name space. */
  1896.   
  1897.   /* Number of bits in an unsigned char. */
  1898. + #ifndef CHARBITS
  1899.   #define CHARBITS 8
  1900. + #endif
  1901.   
  1902.   /* First integer value that is greater than any character code. */
  1903.   #define NOTCHAR (1 << CHARBITS)
  1904.   
  1905.   /* INTBITS need not be exact, just a lower bound. */
  1906. + #ifndef INTBITS
  1907.   #define INTBITS (CHARBITS * sizeof (int))
  1908. + #endif
  1909.   
  1910.   /* Number of ints required to hold a bit for every character. */
  1911.   #define CHARCLASS_INTS ((NOTCHAR + INTBITS - 1) / INTBITS)
  1912. diff -rc --new-file grep-2.0/grep.c /gnu/src/amiga/grep-2.0/grep.c
  1913. *** grep-2.0/grep.c    Sun May 23 05:52:52 1993
  1914. --- /gnu/src/amiga/grep-2.0/grep.c    Mon Apr 25 16:58:50 1994
  1915. ***************
  1916. *** 34,46 ****
  1917.   
  1918.   #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  1919.   #include <string.h>
  1920. ! #ifdef NEED_MEMORY_H
  1921.   #include <memory.h>
  1922.   #endif
  1923.   #else
  1924.   #include <strings.h>
  1925.   #ifdef __STDC__
  1926. ! extern void *memchr();
  1927.   #else
  1928.   extern char *memchr();
  1929.   #endif
  1930. --- 34,46 ----
  1931.   
  1932.   #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  1933.   #include <string.h>
  1934. ! #ifdef HAVE_MEMORY_H
  1935.   #include <memory.h>
  1936.   #endif
  1937.   #else
  1938.   #include <strings.h>
  1939.   #ifdef __STDC__
  1940. ! extern void *memchr(void *, int, size_t);
  1941.   #else
  1942.   extern char *memchr();
  1943.   #endif
  1944. diff -rc --new-file grep-2.0/kwset.c /gnu/src/amiga/grep-2.0/kwset.c
  1945. *** grep-2.0/kwset.c    Sun May  2 19:26:20 1993
  1946. --- /gnu/src/amiga/grep-2.0/kwset.c    Mon Apr 25 16:58:51 1994
  1947. ***************
  1948. *** 45,51 ****
  1949.   
  1950.   #ifdef HAVE_MEMCHR
  1951.   #include <string.h>
  1952. ! #ifdef NEED_MEMORY_H
  1953.   #include <memory.h>
  1954.   #endif
  1955.   #else
  1956. --- 45,51 ----
  1957.   
  1958.   #ifdef HAVE_MEMCHR
  1959.   #include <string.h>
  1960. ! #ifdef HAVE_MEMORY_H
  1961.   #include <memory.h>
  1962.   #endif
  1963.   #else
  1964. diff -rc --new-file grep-2.0/search.c /gnu/src/amiga/grep-2.0/search.c
  1965. *** grep-2.0/search.c    Sun May  2 21:02:00 1993
  1966. --- /gnu/src/amiga/grep-2.0/search.c    Mon Apr 25 16:58:51 1994
  1967. ***************
  1968. *** 30,36 ****
  1969.   
  1970.   #ifdef HAVE_MEMCHR
  1971.   #include <string.h>
  1972. ! #ifdef NEED_MEMORY_H
  1973.   #include <memory.h>
  1974.   #endif
  1975.   #else
  1976. --- 30,36 ----
  1977.   
  1978.   #ifdef HAVE_MEMCHR
  1979.   #include <string.h>
  1980. ! #ifdef HAVE_MEMORY_H
  1981.   #include <memory.h>
  1982.   #endif
  1983.   #else
  1984.