home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / wdiff-0.5-diffs.gz / wdiff-0.5-diffs
Text File  |  1996-10-13  |  77KB  |  2,335 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/fsf/wdiff/Makefile.in amiga/fsf/wdiff/Makefile.in
  12. --- baseline/fsf/wdiff/Makefile.in    Sun Nov  6 00:45:13 1994
  13. +++ amiga/fsf/wdiff/Makefile.in    Sat Sep 28 00:00:00 1996
  14. @@ -43,6 +43,7 @@ exec_prefix = @exec_prefix@
  15.  transform = @program_transform_name@
  16.  bindir = $(exec_prefix)/bin
  17.  infodir = $(prefix)/info
  18. +guidedir = $(prefix)/guide
  19.  mandir = $(prefix)/man/man1
  20.  manext = .1
  21.  
  22. @@ -85,12 +86,17 @@ wdiff.texi texinfo.tex wdiff.1 ansi2knr.
  23.  $(HEADERS) $(SOURCES) $(LIBHDRS) $(LIBSRCS) cbars.sh check_it \
  24.  stamp-h.in config.h.in configure stamp-vti version.texi wdiff.info TAGS BACKLOG
  25.  
  26. -all: wdiff.info $(PROGRAMS)
  27. +all: wdiff.info wdiff.guide $(PROGRAMS)
  28.  
  29.  info: wdiff.info
  30.  
  31.  wdiff.info: wdiff.texi version.texi
  32. -    cd $(srcdir) && $(MAKEINFO) --no-split wdiff.texi
  33. +    $(MAKEINFO) --no-split -I$(srcdir) $(srcdir)/wdiff.texi -o $@
  34. +
  35. +guide: wdiff.guide
  36. +
  37. +wdiff.guide: wdiff.texi version.texi
  38. +    $(MAKEINFO) --amiga-39 --no-split -I$(srcdir) $(srcdir)/wdiff.texi -o wdiff.guide
  39.  
  40.  dvi: wdiff.dvi
  41.  
  42. @@ -110,7 +116,8 @@ wdiff: $(OBJECTS) libwd.a
  43.      $(LINK) $(OBJECTS) libwd.a $(LIBS)
  44.  
  45.  cbars: cbars.sh
  46. -    sed -e 's|@bindir@|$(bindir)|' cbars.sh > cbars
  47. +    # Amiga hack - avoid autoconf substitution of @bindir@
  48. +    sed -e 's|@bin.*dir@|$(bindir)|' cbars.sh > cbars
  49.      
  50.  $(OBJECTS): $(ANSI2KNR) config.h
  51.  wdiff$O: getopt.h pathmax.h
  52. @@ -130,18 +137,19 @@ check: wdiff
  53.      $(srcdir)/check_it
  54.  
  55.  install: all
  56. -    $(srcdir)/mkinstalldirs $(bindir) $(infodir)
  57. +    $(srcdir)/mkinstalldirs $(bindir) $(infodir) $(guidedir)
  58.      for name in $(PROGRAMS); do \
  59.        $(INSTALL_PROGRAM) $$name \
  60.          $(bindir)/`echo $$name | sed '$(transform)'`; \
  61.      done
  62. -    $(INSTALL_DATA) $(srcdir)/wdiff.info $(infodir)/wdiff.info
  63. +    $(INSTALL_DATA) wdiff.info $(infodir)/wdiff.info
  64. +    $(INSTALL_DATA) wdiff.guide $(guidedir)/wdiff.guide
  65.  
  66.  uninstall:
  67.      for name in $(PROGRAMS); do
  68.        rm -f $(bindir)/`echo $$name | sed '$(transform)'`; \
  69.      done
  70. -    rm -f $(infodir)/wdiff.info
  71. +    rm -f $(infodir)/wdiff.info $(guidedir)/wdiff.guide
  72.  
  73.  # man page installation is kept separate from install.  Better think
  74.  # GNU and switch to Info.  The following is for irreductible fellows.
  75. diff -rup --new-file baseline/fsf/wdiff/Product-Info amiga/fsf/wdiff/Product-Info
  76. --- baseline/fsf/wdiff/Product-Info    Wed Dec 31 17:00:00 1969
  77. +++ amiga/fsf/wdiff/Product-Info    Sat Sep 28 00:00:00 1996
  78. @@ -0,0 +1,29 @@
  79. +.name
  80. +wdiff
  81. +.type
  82. +Text Processing
  83. +.short
  84. +Display word diffs between text files.
  85. +.description
  86. +`wdiff' is a front-end to GNU `diff'.  It compares two files, finding
  87. +which words have been deleted or added to the first in order to create
  88. +the second.  It has many output formats and interacts well with
  89. +terminals and pagers (notably with `less').  `wdiff' is particularily
  90. +useful when two texts differ only by a few words and paragraphs have
  91. +been refilled.
  92. +.version
  93. +0.5
  94. +.date
  95. +1994.11.05
  96. +.author
  97. +Francois Pinard
  98. +.distribution
  99. +GNU Public License
  100. +.email
  101. +pinard@iro.umontreal.ca
  102. +.source
  103. +Includes source in C.
  104. +.described-by
  105. +Fred Fish (fnf@amigalib.com)
  106. +.submittal
  107. +Downloaded via ftp from prep.ai.mit.edu:pub/gnu
  108. diff -rup --new-file baseline/fsf/wdiff/configure amiga/fsf/wdiff/configure
  109. --- baseline/fsf/wdiff/configure    Sun Nov  6 00:59:26 1994
  110. +++ amiga/fsf/wdiff/configure    Mon Sep 30 22:51:39 1996
  111. @@ -1,8 +1,8 @@
  112. -#!/bin/sh
  113. +#! /bin/sh
  114.  
  115.  # Guess values for system-dependent variables and create Makefiles.
  116. -# Generated automatically using autoconf version 2.1 
  117. -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  118. +# Generated automatically using autoconf version 2.10 
  119. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  120.  #
  121.  # This configure script is free software; the Free Software Foundation
  122.  # gives unlimited permission to copy, distribute and modify it.
  123. @@ -38,9 +38,25 @@ target=NONE
  124.  verbose=
  125.  x_includes=NONE
  126.  x_libraries=NONE
  127. +bindir='${exec_prefix}/bin'
  128. +sbindir='${exec_prefix}/sbin'
  129. +libexecdir='${exec_prefix}/libexec'
  130. +datadir='${prefix}/share'
  131. +sysconfdir='${prefix}/etc'
  132. +sharedstatedir='${prefix}/com'
  133. +localstatedir='${prefix}/var'
  134. +libdir='${exec_prefix}/lib'
  135. +includedir='${prefix}/include'
  136. +oldincludedir='/usr/include'
  137. +infodir='${prefix}/info'
  138. +guidedir='${prefix}/guide'
  139. +psdir='${prefix}/ps'
  140. +dvidir='${prefix}/dvi'
  141. +mandir='${prefix}/man'
  142.  
  143.  # Initialize some other variables.
  144.  subdirs=
  145. +MFLAGS= MAKEFLAGS=
  146.  
  147.  ac_prev=
  148.  for ac_option
  149. @@ -62,9 +78,14 @@ do
  150.  
  151.    case "$ac_option" in
  152.  
  153. -  -build | --build | --buil | --bui | --bu | --b)
  154. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  155. +    ac_prev=bindir ;;
  156. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  157. +    bindir="$ac_optarg" ;;
  158. +
  159. +  -build | --build | --buil | --bui | --bu)
  160.      ac_prev=build ;;
  161. -  -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  162. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  163.      build="$ac_optarg" ;;
  164.  
  165.    -cache-file | --cache-file | --cache-fil | --cache-fi \
  166. @@ -74,6 +95,12 @@ do
  167.    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  168.      cache_file="$ac_optarg" ;;
  169.  
  170. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  171. +    ac_prev=datadir ;;
  172. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  173. +  | --da=*)
  174. +    datadir="$ac_optarg" ;;
  175. +
  176.    -disable-* | --disable-*)
  177.      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  178.      # Reject names that are not valid shell variable names.
  179. @@ -124,12 +151,32 @@ Configuration:
  180.  Directory and file names:
  181.    --prefix=PREFIX         install architecture-independent files in PREFIX
  182.                            [$ac_default_prefix]
  183. -  --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  184. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  185.                            [same as prefix]
  186. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  187. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  188. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  189. +  --datadir=DIR           read-only architecture-independent data in DIR
  190. +                          [PREFIX/share]
  191. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  192. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  193. +                          [PREFIX/com]
  194. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  195. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  196. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  197. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  198. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  199. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  200. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  201. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  202. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  203.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  204.    --program-prefix=PREFIX prepend PREFIX to installed program names
  205.    --program-suffix=SUFFIX append SUFFIX to installed program names
  206. -  --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  207. +  --program-transform-name=PROGRAM
  208. +                          run sed PROGRAM on installed program names
  209. +EOF
  210. +    cat << EOF
  211.  Host type:
  212.    --build=BUILD           configure for building on BUILD [BUILD=HOST]
  213.    --host=HOST             configure for HOST [guessed]
  214. @@ -141,8 +188,10 @@ Features and packages:
  215.    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  216.    --x-includes=DIR        X include files are in DIR
  217.    --x-libraries=DIR       X library files are in DIR
  218. ---enable and --with options recognized:$ac_help
  219.  EOF
  220. +    if test -n "$ac_help"; then
  221. +      echo "--enable and --with options recognized:$ac_help"
  222. +    fi
  223.      exit 0 ;;
  224.  
  225.    -host | --host | --hos | --ho)
  226. @@ -150,6 +199,56 @@ EOF
  227.    -host=* | --host=* | --hos=* | --ho=*)
  228.      host="$ac_optarg" ;;
  229.  
  230. +  -includedir | --includedir | --includedi | --included | --include \
  231. +  | --includ | --inclu | --incl | --inc)
  232. +    ac_prev=includedir ;;
  233. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  234. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  235. +    includedir="$ac_optarg" ;;
  236. +
  237. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  238. +    ac_prev=infodir ;;
  239. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  240. +    infodir="$ac_optarg" ;;
  241. +
  242. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  243. +   ac_prev=guidedir ;;
  244. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  245. +
  246. + -psdir | --psdir | --psdi | --psd | --ps)
  247. +   ac_prev=psdir ;;
  248. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  249. +
  250. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  251. +   ac_prev=dvidir ;;
  252. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  253. +
  254. +  -libdir | --libdir | --libdi | --libd)
  255. +    ac_prev=libdir ;;
  256. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  257. +    libdir="$ac_optarg" ;;
  258. +
  259. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  260. +  | --libexe | --libex | --libe)
  261. +    ac_prev=libexecdir ;;
  262. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  263. +  | --libexe=* | --libex=* | --libe=*)
  264. +    libexecdir="$ac_optarg" ;;
  265. +
  266. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  267. +  | --localstate | --localstat | --localsta | --localst \
  268. +  | --locals | --local | --loca | --loc | --lo)
  269. +    ac_prev=localstatedir ;;
  270. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  271. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  272. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  273. +    localstatedir="$ac_optarg" ;;
  274. +
  275. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  276. +    ac_prev=mandir ;;
  277. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  278. +    mandir="$ac_optarg" ;;
  279. +
  280.    -nfp | --nfp | --nf)
  281.      # Obsolete; use --without-fp.
  282.      with_fp=no ;;
  283. @@ -162,6 +261,15 @@ EOF
  284.    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  285.      no_recursion=yes ;;
  286.  
  287. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  288. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  289. +  | --oldin | --oldi | --old | --ol | --o)
  290. +    ac_prev=oldincludedir ;;
  291. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  292. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  293. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  294. +    oldincludedir="$ac_optarg" ;;
  295. +
  296.    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  297.      ac_prev=prefix ;;
  298.    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  299. @@ -202,6 +310,23 @@ EOF
  300.    | -silent | --silent | --silen | --sile | --sil)
  301.      silent=yes ;;
  302.  
  303. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  304. +    ac_prev=sbindir ;;
  305. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  306. +  | --sbi=* | --sb=*)
  307. +    sbindir="$ac_optarg" ;;
  308. +
  309. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  310. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  311. +  | --sharedst | --shareds | --shared | --share | --shar \
  312. +  | --sha | --sh)
  313. +    ac_prev=sharedstatedir ;;
  314. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  315. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  316. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  317. +  | --sha=* | --sh=*)
  318. +    sharedstatedir="$ac_optarg" ;;
  319. +
  320.    -site | --site | --sit)
  321.      ac_prev=site ;;
  322.    -site=* | --site=* | --sit=*)
  323. @@ -212,6 +337,13 @@ EOF
  324.    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  325.      srcdir="$ac_optarg" ;;
  326.  
  327. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  328. +  | --syscon | --sysco | --sysc | --sys | --sy)
  329. +    ac_prev=sysconfdir ;;
  330. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  331. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  332. +    sysconfdir="$ac_optarg" ;;
  333. +
  334.    -target | --target | --targe | --targ | --tar | --ta | --t)
  335.      ac_prev=target ;;
  336.    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  337. @@ -221,7 +353,7 @@ EOF
  338.      verbose=yes ;;
  339.  
  340.    -version | --version | --versio | --versi | --vers)
  341. -    echo "configure generated by autoconf version 2.1"
  342. +    echo "configure generated by autoconf version 2.10"
  343.      exit 0 ;;
  344.  
  345.    -with-* | --with-*)
  346. @@ -267,7 +399,7 @@ EOF
  347.    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  348.      ;;
  349.  
  350. -  *) 
  351. +  *)
  352.      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  353.        echo "configure: warning: $ac_option: invalid host type" 1>&2
  354.      fi
  355. @@ -284,19 +416,20 @@ if test -n "$ac_prev"; then
  356.    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  357.  fi
  358.  
  359. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  360. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  361.  
  362.  # File descriptor usage:
  363. -# 0 unused; standard input
  364. +# 0 standard input
  365.  # 1 file creation
  366.  # 2 errors and warnings
  367. -# 3 unused; some systems may open it to /dev/tty
  368. -# 4 checking for... messages and results
  369. +# 3 some systems may open it to /dev/tty
  370. +# 4 used on the Kubota Titan
  371. +# 6 checking for... messages and results
  372.  # 5 compiler messages saved in config.log
  373.  if test "$silent" = yes; then
  374. -  exec 4>/dev/null
  375. +  exec 6>/dev/null
  376.  else
  377. -  exec 4>&1
  378. +  exec 6>&1
  379.  fi
  380.  exec 5>./config.log
  381.  
  382. @@ -386,8 +519,8 @@ fi
  383.  ac_ext=c
  384.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  385.  ac_cpp='$CPP $CPPFLAGS'
  386. -ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  387. -ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  388. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  389. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  390.  
  391.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  392.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  393. @@ -406,8 +539,10 @@ fi
  394.  if test "$program_transform_name" = s,x,x,; then
  395.    program_transform_name=
  396.  else
  397. -  # Double any \ or $.
  398. -  echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
  399. +  # Double any \ or $.  echo might interpret backslashes.
  400. +  cat <<\EOF_SED > conftestsed
  401. +s,\\,\\\\,g; s,\$,$$,g
  402. +EOF_SED
  403.    program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  404.    rm -f conftestsed
  405.  fi
  406. @@ -440,9 +575,9 @@ for ac_prog in gnudiff diffgnu gdiff dif
  407.  do
  408.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  409.  set dummy $ac_prog; ac_word=$2
  410. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  411. -if eval "test \"`echo '${'ac_cv_path_DIFF'+set}'`\" = set"; then
  412. -  echo $ac_n "(cached) $ac_c" 1>&4
  413. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  414. +if eval "test \"`echo '$''{'ac_cv_path_DIFF'+set}'`\" = set"; then
  415. +  echo $ac_n "(cached) $ac_c" 1>&6
  416.  else
  417.    case "$DIFF" in
  418.    /*)
  419. @@ -463,9 +598,9 @@ esac
  420.  fi
  421.  DIFF="$ac_cv_path_DIFF"
  422.  if test -n "$DIFF"; then
  423. -  echo "$ac_t""$DIFF" 1>&4
  424. +  echo "$ac_t""$DIFF" 1>&6
  425.  else
  426. -  echo "$ac_t""no" 1>&4
  427. +  echo "$ac_t""no" 1>&6
  428.  fi
  429.  
  430.  test -n "$DIFF" && break
  431. @@ -482,9 +617,9 @@ for ac_prog in less more
  432.  do
  433.  # Extract the first word of "$ac_prog", so it can be a program name with args.
  434.  set dummy $ac_prog; ac_word=$2
  435. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  436. -if eval "test \"`echo '${'ac_cv_path_PAGER'+set}'`\" = set"; then
  437. -  echo $ac_n "(cached) $ac_c" 1>&4
  438. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  439. +if eval "test \"`echo '$''{'ac_cv_path_PAGER'+set}'`\" = set"; then
  440. +  echo $ac_n "(cached) $ac_c" 1>&6
  441.  else
  442.    case "$PAGER" in
  443.    /*)
  444. @@ -505,9 +640,9 @@ esac
  445.  fi
  446.  PAGER="$ac_cv_path_PAGER"
  447.  if test -n "$PAGER"; then
  448. -  echo "$ac_t""$PAGER" 1>&4
  449. +  echo "$ac_t""$PAGER" 1>&6
  450.  else
  451. -  echo "$ac_t""no" 1>&4
  452. +  echo "$ac_t""no" 1>&6
  453.  fi
  454.  
  455.  test -n "$PAGER" && break
  456. @@ -524,9 +659,9 @@ EOF
  457.  
  458.  # Extract the first word of "gcc", so it can be a program name with args.
  459.  set dummy gcc; ac_word=$2
  460. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  461. -if eval "test \"`echo '${'ac_cv_prog_CC'+set}'`\" = set"; then
  462. -  echo $ac_n "(cached) $ac_c" 1>&4
  463. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  464. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  465. +  echo $ac_n "(cached) $ac_c" 1>&6
  466.  else
  467.    if test -n "$CC"; then
  468.    ac_cv_prog_CC="$CC" # Let the user override the test.
  469. @@ -540,39 +675,88 @@ else
  470.      fi
  471.    done
  472.    IFS="$ac_save_ifs"
  473. -  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  474.  fi
  475.  fi
  476.  CC="$ac_cv_prog_CC"
  477.  if test -n "$CC"; then
  478. -  echo "$ac_t""$CC" 1>&4
  479. +  echo "$ac_t""$CC" 1>&6
  480. +else
  481. +  echo "$ac_t""no" 1>&6
  482. +fi
  483. +
  484. +if test -z "$CC"; then
  485. +  # Extract the first word of "cc", so it can be a program name with args.
  486. +set dummy cc; ac_word=$2
  487. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  488. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  489. +  echo $ac_n "(cached) $ac_c" 1>&6
  490. +else
  491. +  if test -n "$CC"; then
  492. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  493. +else
  494. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  495. +  ac_prog_rejected=no
  496. +  for ac_dir in $PATH; do
  497. +    test -z "$ac_dir" && ac_dir=.
  498. +    if test -f $ac_dir/$ac_word; then
  499. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  500. +        ac_prog_rejected=yes
  501. +    continue
  502. +      fi
  503. +      ac_cv_prog_CC="cc"
  504. +      break
  505. +    fi
  506. +  done
  507. +  IFS="$ac_save_ifs"
  508. +if test $ac_prog_rejected = yes; then
  509. +  # We found a bogon in the path, so make sure we never use it.
  510. +  set dummy $ac_cv_prog_CC
  511. +  shift
  512. +  if test $# -gt 0; then
  513. +    # We chose a different compiler from the bogus one.
  514. +    # However, it has the same basename, so the bogon will be chosen
  515. +    # first if we set CC to just the basename; use the full file name.
  516. +    shift
  517. +    set dummy "$ac_dir/$ac_word" "$@"
  518. +    shift
  519. +    ac_cv_prog_CC="$@"
  520. +  fi
  521. +fi
  522. +fi
  523. +fi
  524. +CC="$ac_cv_prog_CC"
  525. +if test -n "$CC"; then
  526. +  echo "$ac_t""$CC" 1>&6
  527.  else
  528. -  echo "$ac_t""no" 1>&4
  529. +  echo "$ac_t""no" 1>&6
  530.  fi
  531.  
  532. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  533. +fi
  534.  
  535. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&4
  536. -if eval "test \"`echo '${'ac_cv_prog_gcc'+set}'`\" = set"; then
  537. -  echo $ac_n "(cached) $ac_c" 1>&4
  538. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  539. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  540. +  echo $ac_n "(cached) $ac_c" 1>&6
  541.  else
  542.    cat > conftest.c <<EOF
  543.  #ifdef __GNUC__
  544.    yes;
  545.  #endif
  546.  EOF
  547. -if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  548. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  549.    ac_cv_prog_gcc=yes
  550.  else
  551.    ac_cv_prog_gcc=no
  552.  fi
  553.  fi
  554. -echo "$ac_t""$ac_cv_prog_gcc" 1>&4
  555. +
  556. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  557.  if test $ac_cv_prog_gcc = yes; then
  558.    GCC=yes
  559.    if test "${CFLAGS+set}" != set; then
  560. -    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&4
  561. -if eval "test \"`echo '${'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  562. -  echo $ac_n "(cached) $ac_c" 1>&4
  563. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  564. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  565. +  echo $ac_n "(cached) $ac_c" 1>&6
  566.  else
  567.    echo 'void f(){}' > conftest.c
  568.  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  569. @@ -583,11 +767,12 @@ fi
  570.  rm -f conftest*
  571.  
  572.  fi
  573. -    echo "$ac_t""$ac_cv_prog_gcc_g" 1>&4
  574. +
  575. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  576.      if test $ac_cv_prog_gcc_g = yes; then
  577. -      CFLAGS="-g -O"
  578. +      CFLAGS="-g -O2"
  579.      else
  580. -      CFLAGS="-O"
  581. +      CFLAGS="-O2"
  582.      fi
  583.    fi
  584.  else
  585. @@ -621,18 +806,20 @@ ac_configure=$ac_aux_dir/configure # Thi
  586.  # SunOS /usr/etc/install
  587.  # IRIX /sbin/install
  588.  # AIX /bin/install
  589. +# AmigaOS /c/install
  590.  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  591.  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  592.  # ./install, which can be erroneously created by make from ./install.sh.
  593. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  594. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  595.  if test -z "$INSTALL"; then
  596. -if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  597. -  echo $ac_n "(cached) $ac_c" 1>&4
  598. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  599. +  echo $ac_n "(cached) $ac_c" 1>&6
  600.  else
  601.      IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  602.    for ac_dir in $PATH; do
  603. -    case "$ac_dir" in
  604. -    ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  605. +    # Account for people who put trailing slashes in PATH elements.
  606. +    case "$ac_dir/" in
  607. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  608.      *)
  609.        # OSF1 and SCO ODT 3.0 have their own names for install.
  610.        for ac_prog in ginstall installbsd scoinst install; do
  611. @@ -652,12 +839,19 @@ else
  612.      esac
  613.    done
  614.    IFS="$ac_save_ifs"
  615. -  # As a last resort, use the slow shell script.
  616. -  test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  617. +
  618.  fi
  619. -  INSTALL="$ac_cv_path_install"
  620. +  if test "${ac_cv_path_install+set}" = set; then
  621. +    INSTALL="$ac_cv_path_install"
  622. +  else
  623. +    # As a last resort, use the slow shell script.  We don't cache a
  624. +    # path for INSTALL within a source directory, because that will
  625. +    # break other packages using the cache if that directory is
  626. +    # removed, or if the path is relative.
  627. +    INSTALL="$ac_install_sh"
  628. +  fi
  629.  fi
  630. -echo "$ac_t""$INSTALL" 1>&4
  631. +echo "$ac_t""$INSTALL" 1>&6
  632.  
  633.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  634.  # It thinks the first close brace ends the variable substitution.
  635. @@ -667,9 +861,9 @@ test -z "$INSTALL_DATA" && INSTALL_DATA=
  636.  
  637.  # Extract the first word of "ranlib", so it can be a program name with args.
  638.  set dummy ranlib; ac_word=$2
  639. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
  640. -if eval "test \"`echo '${'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  641. -  echo $ac_n "(cached) $ac_c" 1>&4
  642. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  643. +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  644. +  echo $ac_n "(cached) $ac_c" 1>&6
  645.  else
  646.    if test -n "$RANLIB"; then
  647.    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  648. @@ -688,20 +882,20 @@ fi
  649.  fi
  650.  RANLIB="$ac_cv_prog_RANLIB"
  651.  if test -n "$RANLIB"; then
  652. -  echo "$ac_t""$RANLIB" 1>&4
  653. +  echo "$ac_t""$RANLIB" 1>&6
  654.  else
  655. -  echo "$ac_t""no" 1>&4
  656. +  echo "$ac_t""no" 1>&6
  657.  fi
  658.  
  659.  
  660. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
  661. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  662.  # On Suns, sometimes $CPP names a directory.
  663.  if test -n "$CPP" && test -d "$CPP"; then
  664.    CPP=
  665.  fi
  666.  if test -z "$CPP"; then
  667. -if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
  668. -  echo $ac_n "(cached) $ac_c" 1>&4
  669. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  670. +  echo $ac_n "(cached) $ac_c" 1>&6
  671.  else
  672.      # This must be in double quotes, not single quotes, because CPP may get
  673.    # substituted into the Makefile and "${CC-cc}" will confuse make.
  674. @@ -709,12 +903,13 @@ else
  675.    # On the NeXT, cc -E runs the code through the compiler's parser,
  676.    # not just through cpp.
  677.    cat > conftest.$ac_ext <<EOF
  678. -#line 713 "configure"
  679. +#line 907 "configure"
  680.  #include "confdefs.h"
  681.  #include <assert.h>
  682.  Syntax Error
  683.  EOF
  684. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  685. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  686. +{ (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  687.  ac_err=`grep -v '^ *+' conftest.out`
  688.  if test -z "$ac_err"; then
  689.    :
  690. @@ -723,12 +918,13 @@ else
  691.    rm -rf conftest*
  692.    CPP="${CC-cc} -E -traditional-cpp"
  693.    cat > conftest.$ac_ext <<EOF
  694. -#line 727 "configure"
  695. +#line 922 "configure"
  696.  #include "confdefs.h"
  697.  #include <assert.h>
  698.  Syntax Error
  699.  EOF
  700. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  701. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  702. +{ (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  703.  ac_err=`grep -v '^ *+' conftest.out`
  704.  if test -z "$ac_err"; then
  705.    :
  706. @@ -742,13 +938,15 @@ fi
  707.  rm -f conftest*
  708.    ac_cv_prog_CPP="$CPP"
  709.  fi
  710. +  CPP="$ac_cv_prog_CPP"
  711. +else
  712. +  ac_cv_prog_CPP="$CPP"
  713.  fi
  714. -CPP="$ac_cv_prog_CPP"
  715. -echo "$ac_t""$CPP" 1>&4
  716. +echo "$ac_t""$CPP" 1>&6
  717.  
  718. -echo $ac_n "checking for AIX""... $ac_c" 1>&4
  719. +echo $ac_n "checking for AIX""... $ac_c" 1>&6
  720.  cat > conftest.$ac_ext <<EOF
  721. -#line 752 "configure"
  722. +#line 950 "configure"
  723.  #include "confdefs.h"
  724.  #ifdef _AIX
  725.    yes
  726. @@ -758,22 +956,22 @@ EOF
  727.  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  728.    egrep "yes" >/dev/null 2>&1; then
  729.    rm -rf conftest*
  730. -  echo "$ac_t""yes" 1>&4; cat >> confdefs.h <<\EOF
  731. +  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  732.  #define _ALL_SOURCE 1
  733.  EOF
  734.  
  735.  else
  736.    rm -rf conftest*
  737. -  echo "$ac_t""no" 1>&4
  738. +  echo "$ac_t""no" 1>&6
  739.  fi
  740.  rm -f conftest*
  741.  
  742.  
  743. -echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&4
  744. +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  745.  if test -d /etc/conf/kconfig.d &&
  746.    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  747.  then
  748. -  echo "$ac_t""yes" 1>&4
  749. +  echo "$ac_t""yes" 1>&6
  750.    ISC=yes # If later tests want to check for ISC.
  751.    cat >> confdefs.h <<\EOF
  752.  #define _POSIX_SOURCE 1
  753. @@ -785,21 +983,22 @@ EOF
  754.      CC="$CC -Xp"
  755.    fi
  756.  else
  757. -  echo "$ac_t""no" 1>&4
  758. +  echo "$ac_t""no" 1>&6
  759.    ISC=
  760.  fi
  761.  
  762.  ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  763. -echo $ac_n "checking for minix/config.h""... $ac_c" 1>&4
  764. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  765. -  echo $ac_n "(cached) $ac_c" 1>&4
  766. +echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  767. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  768. +  echo $ac_n "(cached) $ac_c" 1>&6
  769.  else
  770.    cat > conftest.$ac_ext <<EOF
  771. -#line 799 "configure"
  772. +#line 997 "configure"
  773.  #include "confdefs.h"
  774.  #include <minix/config.h>
  775.  EOF
  776. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  777. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  778. +{ (eval echo configure:1002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  779.  ac_err=`grep -v '^ *+' conftest.out`
  780.  if test -z "$ac_err"; then
  781.    rm -rf conftest*
  782. @@ -812,10 +1011,10 @@ fi
  783.  rm -f conftest*
  784.  fi
  785.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  786. -  echo "$ac_t""yes" 1>&4
  787. +  echo "$ac_t""yes" 1>&6
  788.    MINIX=yes
  789.  else
  790. -  echo "$ac_t""no" 1>&4
  791. +  echo "$ac_t""no" 1>&6
  792.  MINIX=
  793.  fi
  794.  
  795. @@ -834,9 +1033,9 @@ EOF
  796.  
  797.  fi
  798.  
  799. -echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&4
  800. -if eval "test \"`echo '${'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  801. -  echo $ac_n "(cached) $ac_c" 1>&4
  802. +echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  803. +if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  804. +  echo $ac_n "(cached) $ac_c" 1>&6
  805.  else
  806.    ac_cv_prog_cc_stdc=no
  807.  ac_save_CFLAGS="$CFLAGS"
  808. @@ -850,7 +1049,7 @@ for ac_arg in "" -qlanglvl=ansi -std1 "-
  809.  do
  810.    CFLAGS="$ac_save_CFLAGS $ac_arg"
  811.    cat > conftest.$ac_ext <<EOF
  812. -#line 854 "configure"
  813. +#line 1053 "configure"
  814.  #include "confdefs.h"
  815.  #if !defined(__STDC__) || __STDC__ != 1
  816.  choke me
  817. @@ -863,7 +1062,7 @@ struct s1 {int (*f) (int a);};
  818.  struct s2 {int (*f) (double a);};
  819.  ; return 0; }
  820.  EOF
  821. -if eval $ac_compile; then
  822. +if { (eval echo configure:1066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  823.    rm -rf conftest*
  824.    ac_cv_prog_cc_stdc="$ac_arg"; break
  825.  fi
  826. @@ -874,32 +1073,32 @@ CFLAGS="$ac_save_CFLAGS"
  827.  
  828.  fi
  829.  
  830. -echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&4
  831. +echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  832.  case "x$ac_cv_prog_cc_stdc" in
  833.    x|xno) ;;
  834.    *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  835.  esac
  836.  
  837.  
  838. -echo $ac_n "checking for function prototypes""... $ac_c" 1>&4
  839. +echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  840.  if test "$ac_cv_prog_cc_stdc" != no; then
  841. -  echo "$ac_t""yes" 1>&4
  842. +  echo "$ac_t""yes" 1>&6
  843.    cat >> confdefs.h <<\EOF
  844.  #define PROTOTYPES 1
  845.  EOF
  846.  
  847.    U= ANSI2KNR=
  848.  else
  849. -  echo "$ac_t""no" 1>&4
  850. +  echo "$ac_t""no" 1>&6
  851.    U=_ ANSI2KNR=ansi2knr
  852.  fi
  853.  
  854. -echo $ac_n "checking for working const""... $ac_c" 1>&4
  855. -if eval "test \"`echo '${'ac_cv_c_const'+set}'`\" = set"; then
  856. -  echo $ac_n "(cached) $ac_c" 1>&4
  857. +echo $ac_n "checking for working const""... $ac_c" 1>&6
  858. +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  859. +  echo $ac_n "(cached) $ac_c" 1>&6
  860.  else
  861.    cat > conftest.$ac_ext <<EOF
  862. -#line 903 "configure"
  863. +#line 1102 "configure"
  864.  #include "confdefs.h"
  865.  
  866.  int main() { return 0; }
  867. @@ -912,7 +1111,7 @@ char const *const *ccp;
  868.  char **p;
  869.  /* NEC SVR4.0.2 mips cc rejects this.  */
  870.  struct point {int x, y;};
  871. -static struct point const zero;
  872. +static struct point const zero = {0,0};
  873.  /* AIX XL C 1.02.0.0 rejects this.
  874.     It does not let you subtract one const X* pointer from another in an arm
  875.     of an if-expression whose if-part is not a constant expression */
  876. @@ -949,7 +1148,7 @@ ccp = (char const *const *) p;
  877.  
  878.  ; return 0; }
  879.  EOF
  880. -if eval $ac_compile; then
  881. +if { (eval echo configure:1152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  882.    rm -rf conftest*
  883.    ac_cv_c_const=yes
  884.  else
  885. @@ -959,7 +1158,8 @@ fi
  886.  rm -f conftest*
  887.  
  888.  fi
  889. -echo "$ac_t""$ac_cv_c_const" 1>&4
  890. +
  891. +echo "$ac_t""$ac_cv_c_const" 1>&6
  892.  if test $ac_cv_c_const = no; then
  893.    cat >> confdefs.h <<\EOF
  894.  #define const 
  895. @@ -971,16 +1171,17 @@ fi
  896.  for ac_hdr in string.h termcap.h unistd.h
  897.  do
  898.  ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  899. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&4
  900. -if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  901. -  echo $ac_n "(cached) $ac_c" 1>&4
  902. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  903. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  904. +  echo $ac_n "(cached) $ac_c" 1>&6
  905.  else
  906.    cat > conftest.$ac_ext <<EOF
  907. -#line 980 "configure"
  908. +#line 1180 "configure"
  909.  #include "confdefs.h"
  910.  #include <$ac_hdr>
  911.  EOF
  912. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  913. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  914. +{ (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  915.  ac_err=`grep -v '^ *+' conftest.out`
  916.  if test -z "$ac_err"; then
  917.    rm -rf conftest*
  918. @@ -993,31 +1194,31 @@ fi
  919.  rm -f conftest*
  920.  fi
  921.  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  922. -  echo "$ac_t""yes" 1>&4
  923. -    ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  924. +  echo "$ac_t""yes" 1>&6
  925. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  926.    cat >> confdefs.h <<EOF
  927.  #define $ac_tr_hdr 1
  928.  EOF
  929.   
  930.  else
  931. -  echo "$ac_t""no" 1>&4
  932. +  echo "$ac_t""no" 1>&6
  933.  fi
  934.  done
  935.  
  936.  # If we cannot run a trivial program, we must be cross compiling.
  937. -echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  938. -if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  939. -  echo $ac_n "(cached) $ac_c" 1>&4
  940. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  941. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  942. +  echo $ac_n "(cached) $ac_c" 1>&6
  943.  else
  944.    if test "$cross_compiling" = yes; then
  945. -  ac_cv_cross=yes
  946. +  ac_cv_c_cross=yes
  947.  else
  948.  cat > conftest.$ac_ext <<EOF
  949. -#line 1017 "configure"
  950. +#line 1218 "configure"
  951.  #include "confdefs.h"
  952.  main(){return(0);}
  953.  EOF
  954. -eval $ac_link
  955. +{ (eval echo configure:1222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  956.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  957.    ac_cv_c_cross=no
  958.  else
  959. @@ -1026,22 +1227,24 @@ fi
  960.  fi
  961.  rm -fr conftest*
  962.  fi
  963. +
  964. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  965.  cross_compiling=$ac_cv_c_cross
  966. -echo "$ac_t""$ac_cv_c_cross" 1>&4
  967.  
  968. -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&4
  969. -if eval "test \"`echo '${'ac_cv_header_stdc'+set}'`\" = set"; then
  970. -  echo $ac_n "(cached) $ac_c" 1>&4
  971. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  972. +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  973. +  echo $ac_n "(cached) $ac_c" 1>&6
  974.  else
  975.    cat > conftest.$ac_ext <<EOF
  976. -#line 1038 "configure"
  977. +#line 1240 "configure"
  978.  #include "confdefs.h"
  979.  #include <stdlib.h>
  980.  #include <stdarg.h>
  981.  #include <string.h>
  982.  #include <float.h>
  983.  EOF
  984. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  985. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  986. +{ (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  987.  ac_err=`grep -v '^ *+' conftest.out`
  988.  if test -z "$ac_err"; then
  989.    rm -rf conftest*
  990. @@ -1056,7 +1259,7 @@ rm -f conftest*
  991.  if test $ac_cv_header_stdc = yes; then
  992.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  993.  cat > conftest.$ac_ext <<EOF
  994. -#line 1060 "configure"
  995. +#line 1263 "configure"
  996.  #include "confdefs.h"
  997.  #include <string.h>
  998.  EOF
  999. @@ -1074,7 +1277,7 @@ fi
  1000.  if test $ac_cv_header_stdc = yes; then
  1001.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1002.  cat > conftest.$ac_ext <<EOF
  1003. -#line 1078 "configure"
  1004. +#line 1281 "configure"
  1005.  #include "confdefs.h"
  1006.  #include <stdlib.h>
  1007.  EOF
  1008. @@ -1092,10 +1295,10 @@ fi
  1009.  if test $ac_cv_header_stdc = yes; then
  1010.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1011.  if test "$cross_compiling" = yes; then
  1012. -  ac_cv_header_stdc=no
  1013. +  :
  1014.  else
  1015.  cat > conftest.$ac_ext <<EOF
  1016. -#line 1099 "configure"
  1017. +#line 1302 "configure"
  1018.  #include "confdefs.h"
  1019.  #include <ctype.h>
  1020.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1021. @@ -1106,7 +1309,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  1022.  exit (0); }
  1023.  
  1024.  EOF
  1025. -eval $ac_link
  1026. +{ (eval echo configure:1313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1027.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1028.    :
  1029.  else
  1030. @@ -1116,7 +1319,8 @@ fi
  1031.  rm -fr conftest*
  1032.  fi
  1033.  fi
  1034. -echo "$ac_t""$ac_cv_header_stdc" 1>&4
  1035. +
  1036. +echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1037.  if test $ac_cv_header_stdc = yes; then
  1038.    cat >> confdefs.h <<\EOF
  1039.  #define STDC_HEADERS 1
  1040. @@ -1124,25 +1328,30 @@ EOF
  1041.  
  1042.  fi
  1043.  
  1044. -echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&4
  1045. -if eval "test \"`echo '${'ac_cv_type_signal'+set}'`\" = set"; then
  1046. -  echo $ac_n "(cached) $ac_c" 1>&4
  1047. +echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1048. +if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1049. +  echo $ac_n "(cached) $ac_c" 1>&6
  1050.  else
  1051.    cat > conftest.$ac_ext <<EOF
  1052. -#line 1133 "configure"
  1053. +#line 1337 "configure"
  1054.  #include "confdefs.h"
  1055.  #include <sys/types.h>
  1056.  #include <signal.h>
  1057.  #ifdef signal
  1058.  #undef signal
  1059.  #endif
  1060. -extern void (*signal ()) ();
  1061. +#ifdef __cplusplus
  1062. +extern "C" void (*signal (int, void (*)(int)))(int);
  1063. +#else
  1064. +void (*signal ()) ();
  1065. +#endif
  1066. +
  1067.  int main() { return 0; }
  1068.  int t() {
  1069.  int i;
  1070.  ; return 0; }
  1071.  EOF
  1072. -if eval $ac_compile; then
  1073. +if { (eval echo configure:1355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1074.    rm -rf conftest*
  1075.    ac_cv_type_signal=void
  1076.  else
  1077. @@ -1152,7 +1361,8 @@ fi
  1078.  rm -f conftest*
  1079.  
  1080.  fi
  1081. -echo "$ac_t""$ac_cv_type_signal" 1>&4
  1082. +
  1083. +echo "$ac_t""$ac_cv_type_signal" 1>&6
  1084.  cat >> confdefs.h <<EOF
  1085.  #define RETSIGTYPE $ac_cv_type_signal
  1086.  EOF
  1087. @@ -1161,18 +1371,22 @@ EOF
  1088.  
  1089.  for ac_func in strerror tputs
  1090.  do
  1091. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1092. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1093. -  echo $ac_n "(cached) $ac_c" 1>&4
  1094. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1095. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1096. +  echo $ac_n "(cached) $ac_c" 1>&6
  1097.  else
  1098.    cat > conftest.$ac_ext <<EOF
  1099. -#line 1170 "configure"
  1100. +#line 1380 "configure"
  1101.  #include "confdefs.h"
  1102. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1103. +/* System header to define __stub macros and hopefully few prototypes,
  1104. +    which can conflict with char $ac_func(); below.  */
  1105. +#include <assert.h>
  1106.  /* Override any gcc2 internal prototype to avoid an error.  */
  1107. -char $ac_func(); 
  1108. +/* We use char because int might match the return type of a gcc2
  1109. +    builtin and then its argument prototype would still apply.  */
  1110. +char $ac_func();
  1111.  
  1112. -int main() { return 0; }
  1113. +int main() { t(); return 0; }
  1114.  int t() {
  1115.  
  1116.  /* The GNU C library defines this for functions which it implements
  1117. @@ -1186,7 +1400,7 @@ $ac_func();
  1118.  
  1119.  ; return 0; }
  1120.  EOF
  1121. -if eval $ac_link; then
  1122. +if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1123.    rm -rf conftest*
  1124.    eval "ac_cv_func_$ac_func=yes"
  1125.  else
  1126. @@ -1197,33 +1411,33 @@ rm -f conftest*
  1127.  
  1128.  fi
  1129.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1130. -  echo "$ac_t""yes" 1>&4
  1131. -    ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1132. +  echo "$ac_t""yes" 1>&6
  1133. +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1134.    cat >> confdefs.h <<EOF
  1135.  #define $ac_tr_func 1
  1136.  EOF
  1137.   
  1138.  else
  1139. -  echo "$ac_t""no" 1>&4
  1140. +  echo "$ac_t""no" 1>&6
  1141.  fi
  1142.  done
  1143.  
  1144.  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1145.  # for constant arguments.  Useless!
  1146. -echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
  1147. -if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1148. -  echo $ac_n "(cached) $ac_c" 1>&4
  1149. +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1150. +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1151. +  echo $ac_n "(cached) $ac_c" 1>&6
  1152.  else
  1153.    cat > conftest.$ac_ext <<EOF
  1154. -#line 1219 "configure"
  1155. +#line 1433 "configure"
  1156.  #include "confdefs.h"
  1157.  #include <alloca.h>
  1158. -int main() { return 0; }
  1159. +int main() { t(); return 0; }
  1160.  int t() {
  1161.  char *p = alloca(2 * sizeof(int));
  1162.  ; return 0; }
  1163.  EOF
  1164. -if eval $ac_link; then
  1165. +if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1166.    rm -rf conftest*
  1167.    ac_cv_header_alloca_h=yes
  1168.  else
  1169. @@ -1233,7 +1447,8 @@ fi
  1170.  rm -f conftest*
  1171.  
  1172.  fi
  1173. -echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
  1174. +
  1175. +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1176.  if test $ac_cv_header_alloca_h = yes; then
  1177.    cat >> confdefs.h <<\EOF
  1178.  #define HAVE_ALLOCA_H 1
  1179. @@ -1241,12 +1456,12 @@ EOF
  1180.  
  1181.  fi
  1182.  
  1183. -echo $ac_n "checking for alloca""... $ac_c" 1>&4
  1184. -if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
  1185. -  echo $ac_n "(cached) $ac_c" 1>&4
  1186. +echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1187. +if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1188. +  echo $ac_n "(cached) $ac_c" 1>&6
  1189.  else
  1190.    cat > conftest.$ac_ext <<EOF
  1191. -#line 1250 "configure"
  1192. +#line 1465 "configure"
  1193.  #include "confdefs.h"
  1194.  
  1195.  #ifdef __GNUC__
  1196. @@ -1265,12 +1480,12 @@ char *alloca ();
  1197.  # endif
  1198.  #endif
  1199.  
  1200. -int main() { return 0; }
  1201. +int main() { t(); return 0; }
  1202.  int t() {
  1203.  char *p = (char *) alloca(1);
  1204.  ; return 0; }
  1205.  EOF
  1206. -if eval $ac_link; then
  1207. +if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1208.    rm -rf conftest*
  1209.    ac_cv_func_alloca=yes
  1210.  else
  1211. @@ -1280,7 +1495,8 @@ fi
  1212.  rm -f conftest*
  1213.  
  1214.  fi
  1215. -echo "$ac_t""$ac_cv_func_alloca" 1>&4
  1216. +
  1217. +echo "$ac_t""$ac_cv_func_alloca" 1>&6
  1218.  if test $ac_cv_func_alloca = yes; then
  1219.    cat >> confdefs.h <<\EOF
  1220.  #define HAVE_ALLOCA 1
  1221. @@ -1299,12 +1515,12 @@ if test $ac_cv_func_alloca = no; then
  1222.  EOF
  1223.  
  1224.  
  1225. -echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
  1226. -if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
  1227. -  echo $ac_n "(cached) $ac_c" 1>&4
  1228. +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1229. +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1230. +  echo $ac_n "(cached) $ac_c" 1>&6
  1231.  else
  1232.    cat > conftest.$ac_ext <<EOF
  1233. -#line 1308 "configure"
  1234. +#line 1524 "configure"
  1235.  #include "confdefs.h"
  1236.  #if defined(CRAY) && ! defined(CRAY2)
  1237.  webecray
  1238. @@ -1324,154 +1540,72 @@ fi
  1239.  rm -f conftest*
  1240.  
  1241.  fi
  1242. -echo "$ac_t""$ac_cv_os_cray" 1>&4
  1243. -if test $ac_cv_os_cray = yes; then
  1244. -echo $ac_n "checking for _getb67""... $ac_c" 1>&4
  1245. -if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
  1246. -  echo $ac_n "(cached) $ac_c" 1>&4
  1247. -else
  1248. -  cat > conftest.$ac_ext <<EOF
  1249. -#line 1335 "configure"
  1250. -#include "confdefs.h"
  1251. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1252. -/* Override any gcc2 internal prototype to avoid an error.  */
  1253. -char _getb67(); 
  1254. -
  1255. -int main() { return 0; }
  1256. -int t() {
  1257.  
  1258. -/* The GNU C library defines this for functions which it implements
  1259. -    to always fail with ENOSYS.  Some functions are actually named
  1260. -    something starting with __ and the normal name is an alias.  */
  1261. -#if defined (__stub__getb67) || defined (__stub____getb67)
  1262. -choke me
  1263. -#else
  1264. -_getb67();
  1265. -#endif
  1266. -
  1267. -; return 0; }
  1268. -EOF
  1269. -if eval $ac_link; then
  1270. -  rm -rf conftest*
  1271. -  eval "ac_cv_func__getb67=yes"
  1272. -else
  1273. -  rm -rf conftest*
  1274. -  eval "ac_cv_func__getb67=no"
  1275. -fi
  1276. -rm -f conftest*
  1277. -
  1278. -fi
  1279. -if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
  1280. -  echo "$ac_t""yes" 1>&4
  1281. -  cat >> confdefs.h <<\EOF
  1282. -#define CRAY_STACKSEG_END _getb67
  1283. -EOF
  1284. -
  1285. -else
  1286. -  echo "$ac_t""no" 1>&4
  1287. -echo $ac_n "checking for GETB67""... $ac_c" 1>&4
  1288. -if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
  1289. -  echo $ac_n "(cached) $ac_c" 1>&4
  1290. -else
  1291. -  cat > conftest.$ac_ext <<EOF
  1292. -#line 1378 "configure"
  1293. -#include "confdefs.h"
  1294. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1295. -/* Override any gcc2 internal prototype to avoid an error.  */
  1296. -char GETB67(); 
  1297. -
  1298. -int main() { return 0; }
  1299. -int t() {
  1300. -
  1301. -/* The GNU C library defines this for functions which it implements
  1302. -    to always fail with ENOSYS.  Some functions are actually named
  1303. -    something starting with __ and the normal name is an alias.  */
  1304. -#if defined (__stub_GETB67) || defined (__stub___GETB67)
  1305. -choke me
  1306. -#else
  1307. -GETB67();
  1308. -#endif
  1309. -
  1310. -; return 0; }
  1311. -EOF
  1312. -if eval $ac_link; then
  1313. -  rm -rf conftest*
  1314. -  eval "ac_cv_func_GETB67=yes"
  1315. -else
  1316. -  rm -rf conftest*
  1317. -  eval "ac_cv_func_GETB67=no"
  1318. -fi
  1319. -rm -f conftest*
  1320. -
  1321. -fi
  1322. -if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
  1323. -  echo "$ac_t""yes" 1>&4
  1324. -  cat >> confdefs.h <<\EOF
  1325. -#define CRAY_STACKSEG_END GETB67
  1326. -EOF
  1327. -
  1328. -else
  1329. -  echo "$ac_t""no" 1>&4
  1330. -echo $ac_n "checking for getb67""... $ac_c" 1>&4
  1331. -if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
  1332. -  echo $ac_n "(cached) $ac_c" 1>&4
  1333. +echo "$ac_t""$ac_cv_os_cray" 1>&6
  1334. +if test $ac_cv_os_cray = yes; then
  1335. +for ac_func in _getb67 GETB67 getb67; do
  1336. +  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1337. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1338. +  echo $ac_n "(cached) $ac_c" 1>&6
  1339.  else
  1340.    cat > conftest.$ac_ext <<EOF
  1341. -#line 1421 "configure"
  1342. +#line 1553 "configure"
  1343.  #include "confdefs.h"
  1344. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1345. +/* System header to define __stub macros and hopefully few prototypes,
  1346. +    which can conflict with char $ac_func(); below.  */
  1347. +#include <assert.h>
  1348.  /* Override any gcc2 internal prototype to avoid an error.  */
  1349. -char getb67(); 
  1350. +/* We use char because int might match the return type of a gcc2
  1351. +    builtin and then its argument prototype would still apply.  */
  1352. +char $ac_func();
  1353.  
  1354. -int main() { return 0; }
  1355. +int main() { t(); return 0; }
  1356.  int t() {
  1357.  
  1358.  /* The GNU C library defines this for functions which it implements
  1359.      to always fail with ENOSYS.  Some functions are actually named
  1360.      something starting with __ and the normal name is an alias.  */
  1361. -#if defined (__stub_getb67) || defined (__stub___getb67)
  1362. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1363.  choke me
  1364.  #else
  1365. -getb67();
  1366. +$ac_func();
  1367.  #endif
  1368.  
  1369.  ; return 0; }
  1370.  EOF
  1371. -if eval $ac_link; then
  1372. +if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1373.    rm -rf conftest*
  1374. -  eval "ac_cv_func_getb67=yes"
  1375. +  eval "ac_cv_func_$ac_func=yes"
  1376.  else
  1377.    rm -rf conftest*
  1378. -  eval "ac_cv_func_getb67=no"
  1379. +  eval "ac_cv_func_$ac_func=no"
  1380.  fi
  1381.  rm -f conftest*
  1382.  
  1383.  fi
  1384. -if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
  1385. -  echo "$ac_t""yes" 1>&4
  1386. -  cat >> confdefs.h <<\EOF
  1387. -#define CRAY_STACKSEG_END getb67
  1388. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1389. +  echo "$ac_t""yes" 1>&6
  1390. +  cat >> confdefs.h <<EOF
  1391. +#define CRAY_STACKSEG_END $ac_func
  1392.  EOF
  1393.  
  1394. +  break
  1395.  else
  1396. -  echo "$ac_t""no" 1>&4
  1397. -fi
  1398. -
  1399. -fi
  1400. -
  1401. +  echo "$ac_t""no" 1>&6
  1402.  fi
  1403.  
  1404. +done
  1405.  fi
  1406.  
  1407. -echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
  1408. -if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1409. -  echo $ac_n "(cached) $ac_c" 1>&4
  1410. +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1411. +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1412. +  echo $ac_n "(cached) $ac_c" 1>&6
  1413.  else
  1414.    if test "$cross_compiling" = yes; then
  1415.    ac_cv_c_stack_direction=0
  1416.  else
  1417.  cat > conftest.$ac_ext <<EOF
  1418. -#line 1475 "configure"
  1419. +#line 1609 "configure"
  1420.  #include "confdefs.h"
  1421.  find_stack_direction ()
  1422.  {
  1423. @@ -1490,7 +1624,7 @@ main ()
  1424.    exit (find_stack_direction() < 0);
  1425.  }
  1426.  EOF
  1427. -eval $ac_link
  1428. +{ (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1429.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1430.    ac_cv_c_stack_direction=1
  1431.  else
  1432. @@ -1499,7 +1633,8 @@ fi
  1433.  fi
  1434.  rm -fr conftest*
  1435.  fi
  1436. -echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
  1437. +
  1438. +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1439.  cat >> confdefs.h <<EOF
  1440.  #define STACK_DIRECTION $ac_cv_c_stack_direction
  1441.  EOF
  1442. @@ -1507,18 +1642,22 @@ EOF
  1443.  fi
  1444.  
  1445.  test "$ALLOCA" = alloca.o && LIBOBJS="$LIBOBJS xmalloc.o"
  1446. -echo $ac_n "checking for vprintf""... $ac_c" 1>&4
  1447. -if eval "test \"`echo '${'ac_cv_func_vprintf'+set}'`\" = set"; then
  1448. -  echo $ac_n "(cached) $ac_c" 1>&4
  1449. +echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  1450. +if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  1451. +  echo $ac_n "(cached) $ac_c" 1>&6
  1452.  else
  1453.    cat > conftest.$ac_ext <<EOF
  1454. -#line 1516 "configure"
  1455. +#line 1651 "configure"
  1456.  #include "confdefs.h"
  1457. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1458. +/* System header to define __stub macros and hopefully few prototypes,
  1459. +    which can conflict with char vprintf(); below.  */
  1460. +#include <assert.h>
  1461.  /* Override any gcc2 internal prototype to avoid an error.  */
  1462. -char vprintf(); 
  1463. +/* We use char because int might match the return type of a gcc2
  1464. +    builtin and then its argument prototype would still apply.  */
  1465. +char vprintf();
  1466.  
  1467. -int main() { return 0; }
  1468. +int main() { t(); return 0; }
  1469.  int t() {
  1470.  
  1471.  /* The GNU C library defines this for functions which it implements
  1472. @@ -1532,7 +1671,7 @@ vprintf();
  1473.  
  1474.  ; return 0; }
  1475.  EOF
  1476. -if eval $ac_link; then
  1477. +if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1478.    rm -rf conftest*
  1479.    eval "ac_cv_func_vprintf=yes"
  1480.  else
  1481. @@ -1543,28 +1682,32 @@ rm -f conftest*
  1482.  
  1483.  fi
  1484.  if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  1485. -  echo "$ac_t""yes" 1>&4
  1486. +  echo "$ac_t""yes" 1>&6
  1487.    cat >> confdefs.h <<\EOF
  1488.  #define HAVE_VPRINTF 1
  1489.  EOF
  1490.  
  1491.  else
  1492. -  echo "$ac_t""no" 1>&4
  1493. +  echo "$ac_t""no" 1>&6
  1494.  fi
  1495.  
  1496.  if test "$ac_cv_func_vprintf" != yes; then
  1497. -echo $ac_n "checking for _doprnt""... $ac_c" 1>&4
  1498. -if eval "test \"`echo '${'ac_cv_func__doprnt'+set}'`\" = set"; then
  1499. -  echo $ac_n "(cached) $ac_c" 1>&4
  1500. +echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  1501. +if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  1502. +  echo $ac_n "(cached) $ac_c" 1>&6
  1503.  else
  1504.    cat > conftest.$ac_ext <<EOF
  1505. -#line 1562 "configure"
  1506. +#line 1701 "configure"
  1507.  #include "confdefs.h"
  1508. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1509. +/* System header to define __stub macros and hopefully few prototypes,
  1510. +    which can conflict with char _doprnt(); below.  */
  1511. +#include <assert.h>
  1512.  /* Override any gcc2 internal prototype to avoid an error.  */
  1513. -char _doprnt(); 
  1514. +/* We use char because int might match the return type of a gcc2
  1515. +    builtin and then its argument prototype would still apply.  */
  1516. +char _doprnt();
  1517.  
  1518. -int main() { return 0; }
  1519. +int main() { t(); return 0; }
  1520.  int t() {
  1521.  
  1522.  /* The GNU C library defines this for functions which it implements
  1523. @@ -1578,7 +1721,7 @@ _doprnt();
  1524.  
  1525.  ; return 0; }
  1526.  EOF
  1527. -if eval $ac_link; then
  1528. +if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1529.    rm -rf conftest*
  1530.    eval "ac_cv_func__doprnt=yes"
  1531.  else
  1532. @@ -1589,31 +1732,35 @@ rm -f conftest*
  1533.  
  1534.  fi
  1535.  if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  1536. -  echo "$ac_t""yes" 1>&4
  1537. +  echo "$ac_t""yes" 1>&6
  1538.    cat >> confdefs.h <<\EOF
  1539.  #define HAVE_DOPRNT 1
  1540.  EOF
  1541.  
  1542.  else
  1543. -  echo "$ac_t""no" 1>&4
  1544. +  echo "$ac_t""no" 1>&6
  1545.  fi
  1546.  
  1547.  fi
  1548.  
  1549.  for ac_func in strstr
  1550.  do
  1551. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  1552. -if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1553. -  echo $ac_n "(cached) $ac_c" 1>&4
  1554. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1555. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1556. +  echo $ac_n "(cached) $ac_c" 1>&6
  1557.  else
  1558.    cat > conftest.$ac_ext <<EOF
  1559. -#line 1611 "configure"
  1560. +#line 1754 "configure"
  1561.  #include "confdefs.h"
  1562. -#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  1563. +/* System header to define __stub macros and hopefully few prototypes,
  1564. +    which can conflict with char $ac_func(); below.  */
  1565. +#include <assert.h>
  1566.  /* Override any gcc2 internal prototype to avoid an error.  */
  1567. -char $ac_func(); 
  1568. +/* We use char because int might match the return type of a gcc2
  1569. +    builtin and then its argument prototype would still apply.  */
  1570. +char $ac_func();
  1571.  
  1572. -int main() { return 0; }
  1573. +int main() { t(); return 0; }
  1574.  int t() {
  1575.  
  1576.  /* The GNU C library defines this for functions which it implements
  1577. @@ -1627,7 +1774,7 @@ $ac_func();
  1578.  
  1579.  ; return 0; }
  1580.  EOF
  1581. -if eval $ac_link; then
  1582. +if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1583.    rm -rf conftest*
  1584.    eval "ac_cv_func_$ac_func=yes"
  1585.  else
  1586. @@ -1638,10 +1785,10 @@ rm -f conftest*
  1587.  
  1588.  fi
  1589.  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1590. -  echo "$ac_t""yes" 1>&4
  1591. +  echo "$ac_t""yes" 1>&6
  1592.    :
  1593.  else
  1594. -  echo "$ac_t""no" 1>&4
  1595. +  echo "$ac_t""no" 1>&6
  1596.  LIBOBJS="$LIBOBJS ${ac_func}.o"
  1597.  fi
  1598.  
  1599. @@ -1649,49 +1796,54 @@ done
  1600.  
  1601.  
  1602.  # Irix requires -lmalloc for some unknown reason.
  1603. -echo $ac_n "checking for -lmalloc""... $ac_c" 1>&4
  1604. -if eval "test \"`echo '${'ac_cv_lib_malloc'+set}'`\" = set"; then
  1605. -  echo $ac_n "(cached) $ac_c" 1>&4
  1606. +echo $ac_n "checking for -lmalloc""... $ac_c" 1>&6
  1607. +ac_lib_var=`echo malloc'_'malloc | tr './+\055' '__p_'`
  1608. +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1609. +  echo $ac_n "(cached) $ac_c" 1>&6
  1610.  else
  1611.    ac_save_LIBS="$LIBS"
  1612. -LIBS="$LIBS -lmalloc "
  1613. +LIBS="-lmalloc  $LIBS"
  1614.  cat > conftest.$ac_ext <<EOF
  1615. -#line 1660 "configure"
  1616. +#line 1808 "configure"
  1617.  #include "confdefs.h"
  1618. +/* Override any gcc2 internal prototype to avoid an error.  */
  1619. +/* We use char because int might match the return type of a gcc2
  1620. +    builtin and then its argument prototype would still apply.  */
  1621. +char malloc();
  1622.  
  1623. -int main() { return 0; }
  1624. +int main() { t(); return 0; }
  1625.  int t() {
  1626.  malloc()
  1627.  ; return 0; }
  1628.  EOF
  1629. -if eval $ac_link; then
  1630. +if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1631.    rm -rf conftest*
  1632. -  eval "ac_cv_lib_malloc=yes"
  1633. +  eval "ac_cv_lib_$ac_lib_var=yes"
  1634.  else
  1635.    rm -rf conftest*
  1636. -  eval "ac_cv_lib_malloc=no"
  1637. +  eval "ac_cv_lib_$ac_lib_var=no"
  1638.  fi
  1639.  rm -f conftest*
  1640.  LIBS="$ac_save_LIBS"
  1641.  
  1642.  fi
  1643. -if eval "test \"`echo '$ac_cv_lib_'malloc`\" = yes"; then
  1644. -  echo "$ac_t""yes" 1>&4
  1645. -    ac_tr_lib=HAVE_LIB`echo malloc | tr '[a-z]' '[A-Z]'`
  1646. +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1647. +  echo "$ac_t""yes" 1>&6
  1648. +    ac_tr_lib=HAVE_LIB`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1649.    cat >> confdefs.h <<EOF
  1650.  #define $ac_tr_lib 1
  1651.  EOF
  1652.  
  1653. -  LIBS="$LIBS -lmalloc"
  1654. +  LIBS="-lmalloc $LIBS"
  1655.  
  1656.  else
  1657. -  echo "$ac_t""no" 1>&4
  1658. +  echo "$ac_t""no" 1>&6
  1659.  fi
  1660.  
  1661.  
  1662. -echo $ac_n "checking for Xenix""... $ac_c" 1>&4
  1663. +echo $ac_n "checking for Xenix""... $ac_c" 1>&6
  1664.  cat > conftest.$ac_ext <<EOF
  1665. -#line 1695 "configure"
  1666. +#line 1847 "configure"
  1667.  #include "confdefs.h"
  1668.  #if defined(M_XENIX) && !defined(M_UNIX)
  1669.    yes
  1670. @@ -1701,40 +1853,40 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
  1671.    egrep "yes" >/dev/null 2>&1; then
  1672.    rm -rf conftest*
  1673.    
  1674. -  echo "$ac_t""yes" 1>&4
  1675. +  echo "$ac_t""yes" 1>&6
  1676.    LIBS="$LIBS -ltermlib"
  1677.  
  1678.  else
  1679.    rm -rf conftest*
  1680.    
  1681. -  echo "$ac_t""no" 1>&4
  1682. +  echo "$ac_t""no" 1>&6
  1683.    LIBS="$LIBS -ltermcap"
  1684.  
  1685.  fi
  1686.  rm -f conftest*
  1687.  
  1688.  
  1689. -echo $ac_n "checking if cbars is wanted""... $ac_c" 1>&4
  1690. +echo $ac_n "checking if cbars is wanted""... $ac_c" 1>&6
  1691.  # Check whether --enable-cbars or --disable-cbars was given.
  1692. -enableval="$enable_cbars"
  1693. -if test -n "$enableval"; then
  1694. +if test "${enable_cbars+set}" = set; then
  1695. +  enableval="$enable_cbars"
  1696.    if test "$enableval" = yes; then
  1697. -  echo "$ac_t""yes" 1>&4
  1698. +  echo "$ac_t""yes" 1>&6
  1699.    PROGRAMS="$PROGRAMS cbars"
  1700.  else
  1701. -  echo "$ac_t""no" 1>&4
  1702. +  echo "$ac_t""no" 1>&6
  1703.  fi
  1704.  else
  1705. -  echo "$ac_t""no" 1>&4
  1706. +  echo "$ac_t""no" 1>&6
  1707.  fi
  1708.  
  1709.  
  1710. -echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&4
  1711. +echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
  1712.  # Check whether --with-dmalloc or --without-dmalloc was given.
  1713. -withval="$with_dmalloc"
  1714. -if test -n "$withval"; then
  1715. +if test "${with_dmalloc+set}" = set; then
  1716. +  withval="$with_dmalloc"
  1717.    if test "$withval" = yes; then
  1718. -  echo "$ac_t""yes" 1>&4
  1719. +  echo "$ac_t""yes" 1>&6
  1720.    cat >> confdefs.h <<\EOF
  1721.  #define WITH_DMALLOC 1
  1722.  EOF
  1723. @@ -1742,17 +1894,15 @@ EOF
  1724.    LIBS="$LIBS -ldmalloc"
  1725.    LDFLAGS="$LDFLAGS -g"
  1726.  else
  1727. -  echo "$ac_t""no" 1>&4
  1728. +  echo "$ac_t""no" 1>&6
  1729.  fi
  1730.  else
  1731. -  echo "$ac_t""no" 1>&4
  1732. +  echo "$ac_t""no" 1>&6
  1733.  fi
  1734.  
  1735.  
  1736.  trap '' 1 2 15
  1737. -if test -w $cache_file; then
  1738. -echo "updating cache $cache_file"
  1739. -cat > $cache_file <<\EOF
  1740. +cat > confcache <<\EOF
  1741.  # This file is a shell script that caches the results of configure
  1742.  # tests run on this system so they can be shared between configure
  1743.  # scripts and configure runs.  It is not useful on other systems.
  1744. @@ -1768,15 +1918,24 @@ cat > $cache_file <<\EOF
  1745.  # --recheck option to rerun configure.
  1746.  #
  1747.  EOF
  1748. -# Ultrix sh set writes to stderr and can't be redirected directly.
  1749. +# Ultrix sh set writes to stderr and can't be redirected directly,
  1750. +# and sets the high bit in the cache file unless we assign to the vars.
  1751.  (set) 2>&1 |
  1752. -  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  1753. -  >> $cache_file
  1754. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1755. +  >> confcache
  1756. +if cmp -s $cache_file confcache; then
  1757. +  :
  1758.  else
  1759. -echo "not updating unwritable cache $cache_file"
  1760. +  if test -w $cache_file; then
  1761. +    echo "updating cache $cache_file"
  1762. +    cat confcache > $cache_file
  1763. +  else
  1764. +    echo "not updating unwritable cache $cache_file"
  1765. +  fi
  1766.  fi
  1767. +rm -f confcache
  1768.  
  1769. -trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  1770. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1771.  
  1772.  test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1773.  # Let make expand exec_prefix.
  1774. @@ -1797,9 +1956,11 @@ DEFS=-DHAVE_CONFIG_H
  1775.  : ${CONFIG_STATUS=./config.status}
  1776.  
  1777.  echo creating $CONFIG_STATUS
  1778. -rm -f $CONFIG_STATUS
  1779. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1780. +# being executed, so just move it out of the way instead.
  1781. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1782.  cat > $CONFIG_STATUS <<EOF
  1783. -#!/bin/sh
  1784. +#! /bin/sh
  1785.  # Generated automatically by configure.
  1786.  # Run this file to recreate the current configuration.
  1787.  # This directory was configured as follows,
  1788. @@ -1818,7 +1979,7 @@ do
  1789.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1790.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1791.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1792. -    echo "$CONFIG_STATUS generated by autoconf version 2.1"
  1793. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1794.      exit 0 ;;
  1795.    -help | --help | --hel | --he | --h)
  1796.      echo "\$ac_cs_usage"; exit 0 ;;
  1797. @@ -1829,11 +1990,13 @@ done
  1798.  ac_given_srcdir=$srcdir
  1799.  ac_given_INSTALL="$INSTALL"
  1800.  
  1801. -trap 'rm -fr Makefile config.h conftest*; exit 1' 1 2 15
  1802. +trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1803. +EOF
  1804. +cat >> $CONFIG_STATUS <<EOF
  1805.  
  1806. -# Protect against being on the right side of a sed subst in config.status. 
  1807. -sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  1808. - s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  1809. +# Protect against being on the right side of a sed subst in config.status.
  1810. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1811. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1812.  $ac_vpsub
  1813.  $extrasub
  1814.  s%@CFLAGS@%$CFLAGS%g
  1815. @@ -1845,6 +2008,21 @@ s%@LIBS@%$LIBS%g
  1816.  s%@exec_prefix@%$exec_prefix%g
  1817.  s%@prefix@%$prefix%g
  1818.  s%@program_transform_name@%$program_transform_name%g
  1819. +s%@bindir@%$bindir%g
  1820. +s%@sbindir@%$sbindir%g
  1821. +s%@libexecdir@%$libexecdir%g
  1822. +s%@datadir@%$datadir%g
  1823. +s%@sysconfdir@%$sysconfdir%g
  1824. +s%@sharedstatedir@%$sharedstatedir%g
  1825. +s%@localstatedir@%$localstatedir%g
  1826. +s%@libdir@%$libdir%g
  1827. +s%@includedir@%$includedir%g
  1828. +s%@oldincludedir@%$oldincludedir%g
  1829. +s%@infodir@%$infodir%g
  1830. +s%@guidedir@%$guidedir%g
  1831. +s%@psdir@%$psdir%g
  1832. +s%@dvidir@%$dvidir%g
  1833. +s%@mandir@%$mandir%g
  1834.  s%@PRODUCT@%$PRODUCT%g
  1835.  s%@VERSION@%$VERSION%g
  1836.  s%@PROGRAMS@%$PROGRAMS%g
  1837. @@ -1882,7 +2060,7 @@ for ac_file in .. $CONFIG_FILES; do if t
  1838.    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1839.      # The file is in a subdirectory.
  1840.      test ! -d "$ac_dir" && mkdir "$ac_dir"
  1841. -    ac_dir_suffix="/$ac_dir"
  1842. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1843.      # A "../" for each directory in $ac_dir_suffix.
  1844.      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1845.    else
  1846. @@ -1957,13 +2135,13 @@ EOF
  1847.  
  1848.  # Transform confdefs.h into a sed script conftest.vals that substitutes
  1849.  # the proper values into config.h.in to produce config.h.  And first:
  1850. -# Protect against being on the right side of a sed subst in config.status. 
  1851. +# Protect against being on the right side of a sed subst in config.status.
  1852.  # Protect against being in an unquoted here document in config.status.
  1853.  rm -f conftest.vals
  1854.  cat > conftest.hdr <<\EOF
  1855.  s/[\\&%]/\\&/g
  1856.  s%[\\$`]%\\&%g
  1857. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1858. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1859.  s%ac_d%ac_u%gp
  1860.  s%ac_u%ac_e%gp
  1861.  EOF
  1862. @@ -2011,6 +2189,12 @@ cat >> $CONFIG_STATUS <<\EOF
  1863.      echo "$ac_file is unchanged"
  1864.      rm -f conftest.h
  1865.    else
  1866. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  1867. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1868. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1869. +      # The file is in a subdirectory.
  1870. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  1871. +    fi
  1872.      rm -f $ac_file
  1873.      mv conftest.h $ac_file
  1874.    fi
  1875. @@ -2021,6 +2205,7 @@ test -z "$CONFIG_HEADERS" || date > stam
  1876.  exit 0
  1877.  EOF
  1878.  chmod +x $CONFIG_STATUS
  1879. +rm -f CONFIG.STATUS.old
  1880.  rm -fr confdefs* $ac_clean_files
  1881. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  1882. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1883.  
  1884. diff -rup --new-file baseline/fsf/wdiff/manifests/bin amiga/fsf/wdiff/manifests/bin
  1885. --- baseline/fsf/wdiff/manifests/bin    Wed Dec 31 17:00:00 1969
  1886. +++ amiga/fsf/wdiff/manifests/bin    Sat Sep 28 00:00:00 1996
  1887. @@ -0,0 +1,3 @@
  1888. +bin/wdiff
  1889. +guide/wdiff.guide
  1890. +info/wdiff.info
  1891. diff -rup --new-file baseline/fsf/wdiff/manifests/src amiga/fsf/wdiff/manifests/src
  1892. --- baseline/fsf/wdiff/manifests/src    Wed Dec 31 17:00:00 1969
  1893. +++ amiga/fsf/wdiff/manifests/src    Sat Sep 28 00:00:00 1996
  1894. @@ -0,0 +1,42 @@
  1895. +fsf/wdiff/BACKLOG
  1896. +fsf/wdiff/COPYING
  1897. +fsf/wdiff/ChangeLog
  1898. +fsf/wdiff/INSTALL
  1899. +fsf/wdiff/Makefile.in
  1900. +fsf/wdiff/NEWS
  1901. +fsf/wdiff/Product-Info
  1902. +fsf/wdiff/README
  1903. +fsf/wdiff/TAGS
  1904. +fsf/wdiff/THANKS
  1905. +fsf/wdiff/TODO
  1906. +fsf/wdiff/acconfig.h
  1907. +fsf/wdiff/aclocal.m4
  1908. +fsf/wdiff/alloca.c
  1909. +fsf/wdiff/ansi2knr.1
  1910. +fsf/wdiff/ansi2knr.c
  1911. +fsf/wdiff/c-boxes.el
  1912. +fsf/wdiff/cbars.sh
  1913. +fsf/wdiff/check_it
  1914. +fsf/wdiff/config.h.in
  1915. +fsf/wdiff/configure
  1916. +fsf/wdiff/configure.in
  1917. +fsf/wdiff/error.c
  1918. +fsf/wdiff/getopt.c
  1919. +fsf/wdiff/getopt.h
  1920. +fsf/wdiff/getopt1.c
  1921. +fsf/wdiff/install-sh
  1922. +fsf/wdiff/manifests/bin
  1923. +fsf/wdiff/manifests/src
  1924. +fsf/wdiff/mkinstalldirs
  1925. +fsf/wdiff/pathmax.h
  1926. +fsf/wdiff/readpipe.c
  1927. +fsf/wdiff/stamp-h.in
  1928. +fsf/wdiff/stamp-vti
  1929. +fsf/wdiff/strstr.c
  1930. +fsf/wdiff/texinfo.tex
  1931. +fsf/wdiff/version.texi
  1932. +fsf/wdiff/wdiff.1
  1933. +fsf/wdiff/wdiff.c
  1934. +fsf/wdiff/wdiff.texi
  1935. +fsf/wdiff/writepipe.c
  1936. +fsf/wdiff/xmalloc.c
  1937. diff -rup --new-file baseline/fsf/wdiff/readpipe.c amiga/fsf/wdiff/readpipe.c
  1938. --- baseline/fsf/wdiff/readpipe.c    Sun Nov  6 01:03:33 1994
  1939. +++ amiga/fsf/wdiff/readpipe.c    Sat Sep 28 00:00:00 1996
  1940. @@ -33,6 +33,10 @@
  1941.  # include <unistd.h>
  1942.  #endif
  1943.  
  1944. +#ifdef __amigaos__
  1945. +#define fork vfork
  1946. +#endif
  1947. +
  1948.  /* Open a pipe to read from a program without intermediary sh.  Checks
  1949.     PATH.  Sample use:
  1950.     
  1951. diff -rup --new-file baseline/fsf/wdiff/wdiff.c amiga/fsf/wdiff/wdiff.c
  1952. --- baseline/fsf/wdiff/wdiff.c    Sun Nov  6 00:57:23 1994
  1953. +++ amiga/fsf/wdiff/wdiff.c    Sat Sep 28 00:00:00 1996
  1954. @@ -1135,7 +1135,7 @@ Mandatory arguments to long options are 
  1955.  | Main program.     |
  1956.  `---------------*/
  1957.  
  1958. -void
  1959. +int
  1960.  main (int argc, char *const argv[])
  1961.  {
  1962.    int option_char;        /* option character */
  1963. diff -rup --new-file baseline/fsf/wdiff/wdiff.info amiga/fsf/wdiff/wdiff.info
  1964. --- baseline/fsf/wdiff/wdiff.info    Sun Nov  6 01:05:58 1994
  1965. +++ amiga/fsf/wdiff/wdiff.info    Wed Dec 31 17:00:00 1969
  1966. @@ -1,354 +0,0 @@
  1967. -This is Info file wdiff.info, produced by Makeinfo-1.55 from the input
  1968. -file wdiff.texi.
  1969. -
  1970. -START-INFO-DIR-ENTRY
  1971. -* wdiff: (wdiff).       Word difference finder.
  1972. -END-INFO-DIR-ENTRY
  1973. -
  1974. -   This file documents the `wdiff' command, which compares two files,
  1975. -finding which words have been deleted or added to the first for getting
  1976. -the second.
  1977. -
  1978. -   Copyright (C) 1992, 1994 Free Software Foundation, Inc.
  1979. -
  1980. -   Permission is granted to make and distribute verbatim copies of this
  1981. -manual provided the copyright notice and this permission notice are
  1982. -preserved on all copies.
  1983. -
  1984. -   Permission is granted to copy and distribute modified versions of
  1985. -this manual under the conditions for verbatim copying, provided that
  1986. -the entire resulting derived work is distributed under the terms of a
  1987. -permission notice identical to this one.
  1988. -
  1989. -   Permission is granted to copy and distribute translations of this
  1990. -manual into another language, under the above conditions for modified
  1991. -versions, except that this permission notice may be stated in a
  1992. -translation approved by the Foundation.
  1993. -
  1994. -
  1995. -File: wdiff.info,  Node: Top,  Next: Overview,  Prev: (dir),  Up: (dir)
  1996. -
  1997. -GNU `wdiff'
  1998. -***********
  1999. -
  2000. -   `wdiff' is a front-end to GNU `diff'.  It compares two files,
  2001. -finding which words have been deleted or added to the first in order to
  2002. -create the second.  It has many output formats and interacts well with
  2003. -terminals and pagers (notably with `less').  `wdiff' is particularily
  2004. -useful when two texts differ only by a few words and paragraphs have
  2005. -been refilled.
  2006. -
  2007. -   This is release 0.5.
  2008. -
  2009. -* Menu:
  2010. -
  2011. -* Overview::                    Preliminary information.
  2012. -* Invoking wdiff::              How to run `wdiff'.
  2013. -* Examples::                    Actual examples of `wdiff' usage.
  2014. -
  2015. -
  2016. -File: wdiff.info,  Node: Overview,  Next: Invoking wdiff,  Prev: Top,  Up: Top
  2017. -
  2018. -Overview
  2019. -********
  2020. -
  2021. -   The program `wdiff' is a front end to `diff' for comparing files on
  2022. -a word per word basis.  A word is anything between whitespace.  This is
  2023. -useful for comparing two texts in which a few words have been changed
  2024. -and for which paragraphs have been refilled.  It works by creating two
  2025. -temporary files, one word per line, and then executes `diff' on these
  2026. -files.  It collects the `diff' output and uses it to produce a nicer
  2027. -display of word differences between the original files.
  2028. -
  2029. -   Ideally, `wdiff' should avoid calling `diff' and do all the work
  2030. -internally, allowing it to be faster and more polished.  However, I
  2031. -loathe replicating the `diff' algorithm and development effort, instead
  2032. -of improving `diff' itself.  It would be more sensible to integrate
  2033. -`wdiff' into `diff' than the other way around.  I did it this way only
  2034. -because I had a sudden and urgent need for it, and it would have taken
  2035. -too much time to integrate it correctly into GNU `diff'.  Your advice
  2036. -or opinions about this are welcome.
  2037. -
  2038. -   `wdiff' was written by Franc,ois Pinard.  Please report bugs to
  2039. -`bug-gnu-utils@prep.ai.mit.edu'.  Include the version number, which you
  2040. -can find by running `wdiff --version'.  Include in your message
  2041. -sufficient input to reproduce the problem and also, the output you
  2042. -expected.
  2043. -
  2044. -
  2045. -File: wdiff.info,  Node: Invoking wdiff,  Next: Examples,  Prev: Overview,  Up: Top
  2046. -
  2047. -Invoking `wdiff'
  2048. -****************
  2049. -
  2050. -   The format for running the `wdiff' program is:
  2051. -
  2052. -     wdiff OPTION ... OLD_FILE NEW_FILE
  2053. -
  2054. -   `wdiff' compares files OLD_FILE and NEW_FILE and produces an
  2055. -annotated copy of NEW_FILE on standard output.  The empty string or the
  2056. -string `-' denotes standard input, but standard input cannot be used
  2057. -twice in the same invocation.  The complete path of a file should be
  2058. -given, a directory name is not accepted.  `wdiff' will exit with a
  2059. -status of 0 if no differences were found, a status of 1 if any
  2060. -differences were found, or a status of 2 for any error.
  2061. -
  2062. -   In this documentation, "deleted text" refers to text in OLD_FILE
  2063. -which is not in NEW_FILE, while "inserted text" refers to text on
  2064. -NEW_FILE which is not in OLD_FILE.
  2065. -
  2066. -   `wdiff' supports the following command line options:
  2067. -
  2068. -`--help'
  2069. -`-h'
  2070. -     Print an informative help message describing the options.
  2071. -
  2072. -`--version'
  2073. -`-v'
  2074. -     Print the version number of `wdiff' on the standard error output.
  2075. -
  2076. -`--no-deleted'
  2077. -`-1'
  2078. -     Avoid producing deleted words on the output.  If neither `-1' or
  2079. -     `-2' is selected, the original right margin may be exceeded for
  2080. -     some lines.
  2081. -
  2082. -`--no-inserted'
  2083. -`-2'
  2084. -     Avoid producing inserted words on the output.  When this flag is
  2085. -     given, the whitespace in the output is taken from OLD_FILE instead
  2086. -     of NEW_FILE.  If neither `-1' or `-2' is selected, the original
  2087. -     right margin may be exceeded for some lines.
  2088. -
  2089. -`--no-common'
  2090. -`-3'
  2091. -     Avoid producing common words on the output.  When this option is
  2092. -     not selected, common words and whitespace are taken from NEW_FILE,
  2093. -     unless option `-2' is given, in which case common words and
  2094. -     whitespace are rather taken from OLD_FILE.  When selected,
  2095. -     differences are separated from one another by lines of dashes.
  2096. -     Moreover, if this option is selected at the same time as `-1' or
  2097. -     `-2', then none of the output will have any emphasis, i.e. no bold
  2098. -     or underlining.  Finally, if this option is not selected, but both
  2099. -     `-1' and `-2' are, then sections of common words between
  2100. -     differences are segregated by lines of dashes.
  2101. -
  2102. -`--ignore-case'
  2103. -`-c'
  2104. -     Do not consider case difference while comparing words.  Each lower
  2105. -     case letter is seen as identical to its upper case equivalent for
  2106. -     the purpose of deciding if two words are the same.
  2107. -
  2108. -`--statistics'
  2109. -`-s'
  2110. -     On completion, for each file, the total number of words, the
  2111. -     number of common words between the files, the number of words
  2112. -     deleted or inserted and the number of words that have changed is
  2113. -     output.  (A changed word is one that has been replaced or is part
  2114. -     of a replacement.)  Except for the total number of words, all of
  2115. -     the numbers are followed by a percentage relative to the total
  2116. -     number of words in the file.
  2117. -
  2118. -`--auto-pager'
  2119. -`-a'
  2120. -     Some initiatives which were previously automatically taken in
  2121. -     previous versions of `wdiff' are now put under the control of this
  2122. -     option.  By using it, a pager is interposed whenever the `wdiff'
  2123. -     output is directed to the user's terminal.  Without this option,
  2124. -     no pager will be called, the user is then responsible for
  2125. -     explicitly piping `wdiff' output into a pager, if required.
  2126. -
  2127. -     The pager is selected by the value of the `PAGER' environment
  2128. -     variable when `wdiff' is run.  If `PAGER' is not defined at run
  2129. -     time, then a default pager, selected at installation time, will be
  2130. -     used instead.  A defined but empty value of `PAGER' means no pager
  2131. -     at all.
  2132. -
  2133. -     When a pager is interposed through the use of this option, one of
  2134. -     the options `-l' or `-t' is also selected, depending on whether
  2135. -     the string `less' appears in the pager's name or not.
  2136. -
  2137. -     It is often useful to define `wdiff' as an alias for `wdiff -a'.
  2138. -     However, this *hides* the normal `wdiff' behaviour.  The default
  2139. -     behaviour may be restored simply by piping the output from `wdiff'
  2140. -     through `cat'.  This dissociates the output from the user's
  2141. -     terminal.
  2142. -
  2143. -`--printer'
  2144. -`-p'
  2145. -     Use over-striking to emphasize parts of the output.  Each
  2146. -     character of the deleted text is underlined by writing an
  2147. -     underscore `_' first, then a backspace and then the letter to be
  2148. -     underlined.  Each character of the inserted text is emboldened by
  2149. -     writing it twice, with a backspace in between.  This option is not
  2150. -     selected by default.
  2151. -
  2152. -`--less-mode'
  2153. -`-l'
  2154. -     Use over-striking to emphasize parts of output.  This option works
  2155. -     as option `-p', but also over-strikes whitespace associated with
  2156. -     inserted text.  `less' shows such whitespace using reverse video.
  2157. -     This option is not selected by default.  However, it is
  2158. -     automatically turned on whenever `wdiff' launches the pager
  2159. -     `less'.  See option `-a'.
  2160. -
  2161. -     This option is commonly used in conjunction with `less':
  2162. -
  2163. -          wdiff -l OLD_FILE NEW_FILE | less
  2164. -
  2165. -`--terminal'
  2166. -`-t'
  2167. -     Force the production of `termcap' strings for emphasising parts of
  2168. -     output, even if the standard output is not associated with a
  2169. -     terminal.  The `TERM' environment variable must contain the name
  2170. -     of a valid `termcap' entry.  If the terminal description permits,
  2171. -     underlining is used for marking deleted text, while bold or
  2172. -     reverse video is used for marking inserted text.  This option is
  2173. -     not selected by default.  However, it is automatically turned on
  2174. -     whenever `wdiff' launches a pager, and it is known that the pager
  2175. -     is *not* `less'.  See option `-a'.
  2176. -
  2177. -     This option is commonly used when `wdiff' output is not redirected,
  2178. -     but sent directly to the user terminal, as in:
  2179. -
  2180. -          wdiff -t OLD_FILE NEW_FILE
  2181. -
  2182. -     A common kludge uses `wdiff' together with the pager `more', as in:
  2183. -
  2184. -          wdiff -t OLD_FILE NEW_FILE | more
  2185. -
  2186. -     However, some versions of `more' use `termcap' emphasis for their
  2187. -     own purposes, so strange interactions are possible.
  2188. -
  2189. -`--start-delete ARGUMENT'
  2190. -`-w ARGUMENT'
  2191. -     Use ARGUMENT as the "start delete" string.  This string will be
  2192. -     output prior to any sequence of deleted text, to mark where it
  2193. -     starts.  By default, no start delete string is used unless there
  2194. -     is no other means of distinguishing where such text starts; in
  2195. -     this case the default start delete string is `[-'.
  2196. -
  2197. -`--end-delete ARGUMENT'
  2198. -`-x ARGUMENT'
  2199. -     Use ARGUMENT as the "end delete" string.  This string will be
  2200. -     output after any sequence of deleted text, to mark where it ends.
  2201. -     By default, no end delete string is used unless there is no other
  2202. -     means of distinguishing where such text ends; in this case the
  2203. -     default end delete string is `-]'.
  2204. -
  2205. -`--start-insert ARGUMENT'
  2206. -`-y ARGUMENT'
  2207. -     Use ARGUMENT as the "start insert" string.  This string will be
  2208. -     output prior to any sequence of inserted text, to mark where it
  2209. -     starts.  By default, no start insert string is used unless there
  2210. -     is no other means of distinguishing where such text starts; in
  2211. -     this case the default start insert string is `{+'.
  2212. -
  2213. -`--end-insert ARGUMENT'
  2214. -`-z ARGUMENT'
  2215. -     Use ARGUMENT as the "end insert" string.  This string will be
  2216. -     output after any sequence of inserted text, to mark where it ends.
  2217. -     By default, no end insert string is used unless there is no other
  2218. -     means of distinguishing where such text ends; in this case the
  2219. -     default end insert string is `+}'.
  2220. -
  2221. -`--avoid-wraps'
  2222. -`-n'
  2223. -     Avoid spanning the end of line while showing deleted or inserted
  2224. -     text.  Any single fragment of deleted or inserted text spanning
  2225. -     many lines will be considered as being made up of many smaller
  2226. -     fragments not containing a newline.  So deleted text, for example,
  2227. -     will have an end delete string at the end of each line, just
  2228. -     before the new line, and a start delete string at the beginning of
  2229. -     the next line.  A long paragraph of inserted text will have each
  2230. -     line bracketed between start insert and end insert strings.  This
  2231. -     behaviour is not selected by default.
  2232. -
  2233. -   Note that options `-p', `-t', and `-[wxyz]' are not mutually
  2234. -exclusive.  If you use a combination of them, you will merely
  2235. -accumulate the effect of each.  Option `-l' is a variant of option `-p'.
  2236. -
  2237. -
  2238. -File: wdiff.info,  Node: Examples,  Prev: Invoking wdiff,  Up: Top
  2239. -
  2240. -Actual examples of `wdiff' usage
  2241. -********************************
  2242. -
  2243. -   This section presents a few examples of usage, most of them have been
  2244. -contributed by `wdiff' users.
  2245. -
  2246. -   * Change bars example.
  2247. -
  2248. -     This example comes from a discussion with Joe Wells,
  2249. -     `jbw@cs.bu.edu'.
  2250. -
  2251. -     The following command produces a copy of NEW_FILE, shifted right
  2252. -     one space to accommodate change bars since the last revision,
  2253. -     ignoring those changes coming only from paragraph refilling.  Any
  2254. -     line with new or changed text will get a `|' in column 1.
  2255. -     However, deleted text is not shown nor marked.
  2256. -
  2257. -          wdiff -1n OLD_FILE NEW_FILE |
  2258. -            sed -e 's/^/  /;/{+/s/^ /|/;s/{+//g;s/+}//g'
  2259. -
  2260. -     Here is how it works.  Word differences are found, paying
  2261. -     attention only to additions, as requested by option `-1'.  For
  2262. -     bigger changes which span line boundaries, the insert bracket
  2263. -     strings are repeated on each output line, as requested by option
  2264. -     `-n'.  This output is then reformatted with a `sed' script which
  2265. -     shifts the text right two columns, turns the initial space into a
  2266. -     bar only if there is some new text on that line, then removes all
  2267. -     insert bracket strings.
  2268. -
  2269. -   * `LaTeX' example.
  2270. -
  2271. -     This example has been provided by Steve Fisk,
  2272. -     `fisk@polar.bowdoin.edu'.
  2273. -
  2274. -     The following uses LaTeX to put deleted text in boxes, and new text
  2275. -     in double boxes:
  2276. -
  2277. -          wdiff -w "\fbox{" -x "}" -y "\fbox{\fbox{" -z "}}" ...
  2278. -
  2279. -     works nicely.
  2280. -
  2281. -   * `troff' example.
  2282. -
  2283. -     This example comes from Paul Fox, `pgf@cayman.com'.
  2284. -
  2285. -     Using `wdiff', with some `troff'-specific delimiters gives *much*
  2286. -     better output.  The delimiters I used:
  2287. -
  2288. -          wdiff -w'\s-5' -x'\s0' -y'\fB' -z'\fP' ...
  2289. -
  2290. -     This makes the pointsize of deletions 5 points smaller than
  2291. -     normal, and emboldens insertions.  Fantastic!
  2292. -
  2293. -     I experimented with:
  2294. -
  2295. -          wdiff -w'\fI' -x'\fP' -y'\fB' -z'\fP'
  2296. -
  2297. -     since that's more like the defaults you use for
  2298. -     terminals/printers, but since I actually use italics for emphasis
  2299. -     in my documents, I thought the point size thing was clearer.
  2300. -
  2301. -     I tried it on code, and it works surprisingly well there, too...
  2302. -
  2303. -     Marty Leisner `leisner@eso.mc.xerox.com' says:
  2304. -
  2305. -     In the previous example, you had smaller text being taken out and
  2306. -     bold face inserted.  I had smaller text being taken out and larger
  2307. -     text being inserted, I'm using bold face for other things, so this
  2308. -     is more clear.
  2309. -
  2310. -          wdiff -w '\s-3' -x'\s0' -y'\s+3' -z'\s0'
  2311. -
  2312. -
  2313. -
  2314. -Tag Table:
  2315. -Node: Top1053
  2316. -Node: Overview1726
  2317. -Node: Invoking wdiff3113
  2318. -Node: Examples11420
  2319. -
  2320. -End Tag Table
  2321. diff -rup --new-file baseline/fsf/wdiff/writepipe.c amiga/fsf/wdiff/writepipe.c
  2322. --- baseline/fsf/wdiff/writepipe.c    Sun Nov  6 01:03:32 1994
  2323. +++ amiga/fsf/wdiff/writepipe.c    Sat Sep 28 00:00:00 1996
  2324. @@ -33,6 +33,10 @@
  2325.  # include <unistd.h>
  2326.  #endif
  2327.  
  2328. +#ifdef __amigaos__
  2329. +#define fork vfork
  2330. +#endif
  2331. +
  2332.  /* Open a pipe to write to a program without intermediary sh.  Checks
  2333.     PATH.  Sample use:
  2334.     
  2335.