home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / diffs / sed-2.05.diffs < prev    next >
Encoding:
Text File  |  1995-01-21  |  54.2 KB  |  1,921 lines

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