home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / indent-1.9.1-diffs.gz / indent-1.9.1-diffs
Text File  |  1996-10-13  |  62KB  |  1,932 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/indent/CONF-README amiga/fsf/indent/CONF-README
  12. --- baseline/fsf/indent/CONF-README    Wed Sep 15 16:05:10 1993
  13. +++ amiga/fsf/indent/CONF-README    Sat Sep 28 00:00:00 1996
  14. @@ -35,8 +35,8 @@ code.  In that case, run `configure' wit
  15.  where DIR is the directory that contains the source code.
  16.  
  17.     By default, `make install' will install the package's files in
  18. -`/usr/local/bin', `/usr/local/man', etc.  You can specify an
  19. -installation prefix other than `/usr/local' by giving `configure' the
  20. +`/gnu/bin', `/gnu/man', etc.  You can specify an
  21. +installation prefix other than `/gnu' by giving `configure' the
  22.  option `--prefix=PATH'.  Alternately, you can do so by consistently
  23.  giving a value for the `prefix' variable when you run `make', e.g.,
  24.       make prefix=/usr/gnu
  25. diff -rup --new-file baseline/fsf/indent/Product-Info amiga/fsf/indent/Product-Info
  26. --- baseline/fsf/indent/Product-Info    Wed Dec 31 17:00:00 1969
  27. +++ amiga/fsf/indent/Product-Info    Sat Sep 28 00:00:00 1996
  28. @@ -0,0 +1,24 @@
  29. +.name
  30. +indent
  31. +.fullname
  32. +C code beautifier
  33. +.type
  34. +Programmer Tool
  35. +.short
  36. +C code beautifier
  37. +.description
  38. +The `indent' program can be used to make code easier to read.  It can
  39. +also convert from one style of writing C to another, and understands a
  40. +substantial amount about the syntax of C, but it also attempts to cope
  41. +with incomplete and misformed syntax.  In version 1.2 and more recent
  42. +versions, the GNU style of indenting is the default.
  43. +.version
  44. +1.9.1
  45. +.author
  46. +Free Software Foundation
  47. +.requirements
  48. +Amiga binary requires ixemul.library.
  49. +.distribution
  50. +GNU Public License
  51. +.described-by
  52. +Fred Fish (fnf@amigalib.com)
  53. diff -rup --new-file baseline/fsf/indent/README amiga/fsf/indent/README
  54. --- baseline/fsf/indent/README    Sat Jan 29 19:22:04 1994
  55. +++ amiga/fsf/indent/README    Sat Sep 28 00:00:00 1996
  56. @@ -10,8 +10,8 @@ SIMPLE INSTALLATION
  57.    Once you have unpacked the tar file, simply type "make" in the source
  58.    directory to produce an executable copy of `indent' in that directory.
  59.    If you then type "make install", the program will be installed by
  60. -  default as /usr/local/bin/indent and the on-line help will be
  61. -  installed as /usr/local/info/indent.info (see DOCUMENTATION, below).
  62. +  default as /ade/bin/indent and the on-line help will be
  63. +  installed as /ade/info/indent.info (see DOCUMENTATION, below).
  64.  
  65.    It is possible to change these default installation paths.  To change
  66.    the place where `indent' is installed, you may specify the prefix
  67. diff -rup --new-file baseline/fsf/indent/configure amiga/fsf/indent/configure
  68. --- baseline/fsf/indent/configure    Thu Jul  8 16:57:50 1993
  69. +++ amiga/fsf/indent/configure    Mon Sep 30 22:46:08 1996
  70. @@ -1,554 +1,1314 @@
  71. -#!/bin/sh
  72. -# Guess values for system-dependent variables and create Makefiles.
  73. -# Generated automatically using autoconf.
  74. -# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  75. +#! /bin/sh
  76.  
  77. -# This program is free software; you can redistribute it and/or modify
  78. -# it under the terms of the GNU General Public License as published by
  79. -# the Free Software Foundation; either version 2, or (at your option)
  80. -# any later version.
  81. -
  82. -# This program is distributed in the hope that it will be useful,
  83. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  84. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  85. -# GNU General Public License for more details.
  86. -
  87. -# You should have received a copy of the GNU General Public License
  88. -# along with this program; if not, write to the Free Software
  89. -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  90. -
  91. -# Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  92. -#        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  93. -# Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  94. -# --with-PACKAGE unless this script has special code to handle it.
  95. +# Guess values for system-dependent variables and create Makefiles.
  96. +# Generated automatically using autoconf version 2.10 
  97. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  98. +#
  99. +# This configure script is free software; the Free Software Foundation
  100. +# gives unlimited permission to copy, distribute and modify it.
  101.  
  102. +# Defaults:
  103. +ac_help=
  104. +ac_default_prefix=/usr/local
  105. +# Any additions from configure.in:
  106. +
  107. +# Initialize some variables set by options.
  108. +# The variables have the same names as the options, with
  109. +# dashes changed to underlines.
  110. +build=NONE
  111. +cache_file=./config.cache
  112. +exec_prefix=NONE
  113. +host=NONE
  114. +no_create=
  115. +nonopt=NONE
  116. +no_recursion=
  117. +prefix=NONE
  118. +program_prefix=NONE
  119. +program_suffix=NONE
  120. +program_transform_name=s,x,x,
  121. +silent=
  122. +site=
  123. +srcdir=
  124. +target=NONE
  125. +verbose=
  126. +x_includes=NONE
  127. +x_libraries=NONE
  128. +bindir='${exec_prefix}/bin'
  129. +sbindir='${exec_prefix}/sbin'
  130. +libexecdir='${exec_prefix}/libexec'
  131. +datadir='${prefix}/share'
  132. +sysconfdir='${prefix}/etc'
  133. +sharedstatedir='${prefix}/com'
  134. +localstatedir='${prefix}/var'
  135. +libdir='${exec_prefix}/lib'
  136. +includedir='${prefix}/include'
  137. +oldincludedir='/usr/include'
  138. +infodir='${prefix}/info'
  139. +guidedir='${prefix}/guide'
  140. +psdir='${prefix}/ps'
  141. +dvidir='${prefix}/dvi'
  142. +mandir='${prefix}/man'
  143. +
  144. +# Initialize some other variables.
  145. +subdirs=
  146. +MFLAGS= MAKEFLAGS=
  147.  
  148. -for arg
  149. +ac_prev=
  150. +for ac_option
  151.  do
  152. -  # Handle --exec-prefix with a space before the argument.
  153. -  if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  154. -  # Handle --host with a space before the argument.
  155. -  elif test x$next_host = xyes; then next_host=
  156. -  # Handle --prefix with a space before the argument.
  157. -  elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  158. -  # Handle --srcdir with a space before the argument.
  159. -  elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  160. -  else
  161. -    case $arg in
  162. -     # For backward compatibility, also recognize exact --exec_prefix.
  163. -     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  164. -    exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  165. -     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  166. -    next_exec_prefix=yes ;;
  167. -
  168. -     -gas | --gas | --ga | --g) ;;
  169. -
  170. -     -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  171. -     -host | --host | --hos | --ho | --h)
  172. -    next_host=yes ;;
  173. -
  174. -     -nfp | --nfp | --nf) ;;
  175. -
  176. -     -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  177. -        no_create=1 ;;
  178. -
  179. -     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  180. -    prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  181. -     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  182. -    next_prefix=yes ;;
  183. -
  184. -     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  185. -    srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  186. -     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  187. -    next_srcdir=yes ;;
  188. -
  189. -     -with-* | --with-*)
  190. -       package=`echo $arg|sed 's/-*with-//'`
  191. -       # Delete all the valid chars; see if any are left.
  192. -       if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  193. -         echo "configure: $package: invalid package name" >&2; exit 1
  194. -       fi
  195. -       eval "with_`echo $package|sed s/-/_/g`=1" ;;
  196.  
  197. -     -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  198. -       verbose=yes ;;
  199. +  # If the previous option needs an argument, assign it.
  200. +  if test -n "$ac_prev"; then
  201. +    eval "$ac_prev=\$ac_option"
  202. +    ac_prev=
  203. +    continue
  204. +  fi
  205. +
  206. +  case "$ac_option" in
  207. +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  208. +  *) ac_optarg= ;;
  209. +  esac
  210. +
  211. +  # Accept the important Cygnus configure options, so we can diagnose typos.
  212.  
  213. -     *) ;;
  214. +  case "$ac_option" in
  215. +
  216. +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  217. +    ac_prev=bindir ;;
  218. +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  219. +    bindir="$ac_optarg" ;;
  220. +
  221. +  -build | --build | --buil | --bui | --bu)
  222. +    ac_prev=build ;;
  223. +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  224. +    build="$ac_optarg" ;;
  225. +
  226. +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  227. +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  228. +    ac_prev=cache_file ;;
  229. +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  230. +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  231. +    cache_file="$ac_optarg" ;;
  232. +
  233. +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  234. +    ac_prev=datadir ;;
  235. +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  236. +  | --da=*)
  237. +    datadir="$ac_optarg" ;;
  238. +
  239. +  -disable-* | --disable-*)
  240. +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  241. +    # Reject names that are not valid shell variable names.
  242. +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  243. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  244. +    fi
  245. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  246. +    eval "enable_${ac_feature}=no" ;;
  247. +
  248. +  -enable-* | --enable-*)
  249. +    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  250. +    # Reject names that are not valid shell variable names.
  251. +    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  252. +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  253. +    fi
  254. +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  255. +    case "$ac_option" in
  256. +      *=*) ;;
  257. +      *) ac_optarg=yes ;;
  258.      esac
  259. -  fi
  260. +    eval "enable_${ac_feature}='$ac_optarg'" ;;
  261. +
  262. +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  263. +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  264. +  | --exec | --exe | --ex)
  265. +    ac_prev=exec_prefix ;;
  266. +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  267. +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  268. +  | --exec=* | --exe=* | --ex=*)
  269. +    exec_prefix="$ac_optarg" ;;
  270. +
  271. +  -gas | --gas | --ga | --g)
  272. +    # Obsolete; use --with-gas.
  273. +    with_gas=yes ;;
  274. +
  275. +  -help | --help | --hel | --he)
  276. +    # Omit some internal or obsolete options to make the list less imposing.
  277. +    # This message is too long to be a string in the A/UX 3.1 sh.
  278. +    cat << EOF
  279. +Usage: configure [options] [host]
  280. +Options: [defaults in brackets after descriptions]
  281. +Configuration:
  282. +  --cache-file=FILE       cache test results in FILE
  283. +  --help                  print this message
  284. +  --no-create             do not create output files
  285. +  --quiet, --silent       do not print \`checking...' messages
  286. +  --version               print the version of autoconf that created configure
  287. +Directory and file names:
  288. +  --prefix=PREFIX         install architecture-independent files in PREFIX
  289. +                          [$ac_default_prefix]
  290. +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  291. +                          [same as prefix]
  292. +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  293. +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  294. +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  295. +  --datadir=DIR           read-only architecture-independent data in DIR
  296. +                          [PREFIX/share]
  297. +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  298. +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  299. +                          [PREFIX/com]
  300. +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  301. +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  302. +  --includedir=DIR        C header files in DIR [PREFIX/include]
  303. +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  304. +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  305. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  306. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  307. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  308. +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  309. +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  310. +  --program-prefix=PREFIX prepend PREFIX to installed program names
  311. +  --program-suffix=SUFFIX append SUFFIX to installed program names
  312. +  --program-transform-name=PROGRAM
  313. +                          run sed PROGRAM on installed program names
  314. +EOF
  315. +    cat << EOF
  316. +Host type:
  317. +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  318. +  --host=HOST             configure for HOST [guessed]
  319. +  --target=TARGET         configure for TARGET [TARGET=HOST]
  320. +Features and packages:
  321. +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  322. +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  323. +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  324. +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  325. +  --x-includes=DIR        X include files are in DIR
  326. +  --x-libraries=DIR       X library files are in DIR
  327. +EOF
  328. +    if test -n "$ac_help"; then
  329. +      echo "--enable and --with options recognized:$ac_help"
  330. +    fi
  331. +    exit 0 ;;
  332. +
  333. +  -host | --host | --hos | --ho)
  334. +    ac_prev=host ;;
  335. +  -host=* | --host=* | --hos=* | --ho=*)
  336. +    host="$ac_optarg" ;;
  337. +
  338. +  -includedir | --includedir | --includedi | --included | --include \
  339. +  | --includ | --inclu | --incl | --inc)
  340. +    ac_prev=includedir ;;
  341. +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  342. +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  343. +    includedir="$ac_optarg" ;;
  344. +
  345. +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  346. +    ac_prev=infodir ;;
  347. +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  348. +    infodir="$ac_optarg" ;;
  349. +
  350. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  351. +   ac_prev=guidedir ;;
  352. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  353. +
  354. + -psdir | --psdir | --psdi | --psd | --ps)
  355. +   ac_prev=psdir ;;
  356. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  357. +
  358. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  359. +   ac_prev=dvidir ;;
  360. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  361. +
  362. +  -libdir | --libdir | --libdi | --libd)
  363. +    ac_prev=libdir ;;
  364. +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  365. +    libdir="$ac_optarg" ;;
  366. +
  367. +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  368. +  | --libexe | --libex | --libe)
  369. +    ac_prev=libexecdir ;;
  370. +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  371. +  | --libexe=* | --libex=* | --libe=*)
  372. +    libexecdir="$ac_optarg" ;;
  373. +
  374. +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  375. +  | --localstate | --localstat | --localsta | --localst \
  376. +  | --locals | --local | --loca | --loc | --lo)
  377. +    ac_prev=localstatedir ;;
  378. +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  379. +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  380. +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  381. +    localstatedir="$ac_optarg" ;;
  382. +
  383. +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  384. +    ac_prev=mandir ;;
  385. +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  386. +    mandir="$ac_optarg" ;;
  387. +
  388. +  -nfp | --nfp | --nf)
  389. +    # Obsolete; use --without-fp.
  390. +    with_fp=no ;;
  391. +
  392. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  393. +  | --no-cr | --no-c)
  394. +    no_create=yes ;;
  395. +
  396. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  397. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  398. +    no_recursion=yes ;;
  399. +
  400. +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  401. +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  402. +  | --oldin | --oldi | --old | --ol | --o)
  403. +    ac_prev=oldincludedir ;;
  404. +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  405. +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  406. +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  407. +    oldincludedir="$ac_optarg" ;;
  408. +
  409. +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  410. +    ac_prev=prefix ;;
  411. +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  412. +    prefix="$ac_optarg" ;;
  413. +
  414. +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  415. +  | --program-pre | --program-pr | --program-p)
  416. +    ac_prev=program_prefix ;;
  417. +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  418. +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  419. +    program_prefix="$ac_optarg" ;;
  420. +
  421. +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  422. +  | --program-suf | --program-su | --program-s)
  423. +    ac_prev=program_suffix ;;
  424. +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  425. +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  426. +    program_suffix="$ac_optarg" ;;
  427. +
  428. +  -program-transform-name | --program-transform-name \
  429. +  | --program-transform-nam | --program-transform-na \
  430. +  | --program-transform-n | --program-transform- \
  431. +  | --program-transform | --program-transfor \
  432. +  | --program-transfo | --program-transf \
  433. +  | --program-trans | --program-tran \
  434. +  | --progr-tra | --program-tr | --program-t)
  435. +    ac_prev=program_transform_name ;;
  436. +  -program-transform-name=* | --program-transform-name=* \
  437. +  | --program-transform-nam=* | --program-transform-na=* \
  438. +  | --program-transform-n=* | --program-transform-=* \
  439. +  | --program-transform=* | --program-transfor=* \
  440. +  | --program-transfo=* | --program-transf=* \
  441. +  | --program-trans=* | --program-tran=* \
  442. +  | --progr-tra=* | --program-tr=* | --program-t=*)
  443. +    program_transform_name="$ac_optarg" ;;
  444. +
  445. +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  446. +  | -silent | --silent | --silen | --sile | --sil)
  447. +    silent=yes ;;
  448. +
  449. +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  450. +    ac_prev=sbindir ;;
  451. +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  452. +  | --sbi=* | --sb=*)
  453. +    sbindir="$ac_optarg" ;;
  454. +
  455. +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  456. +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  457. +  | --sharedst | --shareds | --shared | --share | --shar \
  458. +  | --sha | --sh)
  459. +    ac_prev=sharedstatedir ;;
  460. +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  461. +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  462. +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  463. +  | --sha=* | --sh=*)
  464. +    sharedstatedir="$ac_optarg" ;;
  465. +
  466. +  -site | --site | --sit)
  467. +    ac_prev=site ;;
  468. +  -site=* | --site=* | --sit=*)
  469. +    site="$ac_optarg" ;;
  470. +
  471. +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  472. +    ac_prev=srcdir ;;
  473. +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  474. +    srcdir="$ac_optarg" ;;
  475. +
  476. +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  477. +  | --syscon | --sysco | --sysc | --sys | --sy)
  478. +    ac_prev=sysconfdir ;;
  479. +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  480. +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  481. +    sysconfdir="$ac_optarg" ;;
  482. +
  483. +  -target | --target | --targe | --targ | --tar | --ta | --t)
  484. +    ac_prev=target ;;
  485. +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  486. +    target="$ac_optarg" ;;
  487. +
  488. +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  489. +    verbose=yes ;;
  490. +
  491. +  -version | --version | --versio | --versi | --vers)
  492. +    echo "configure generated by autoconf version 2.10"
  493. +    exit 0 ;;
  494. +
  495. +  -with-* | --with-*)
  496. +    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  497. +    # Reject names that are not valid shell variable names.
  498. +    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  499. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  500. +    fi
  501. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  502. +    case "$ac_option" in
  503. +      *=*) ;;
  504. +      *) ac_optarg=yes ;;
  505. +    esac
  506. +    eval "with_${ac_package}='$ac_optarg'" ;;
  507. +
  508. +  -without-* | --without-*)
  509. +    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  510. +    # Reject names that are not valid shell variable names.
  511. +    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  512. +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  513. +    fi
  514. +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  515. +    eval "with_${ac_package}=no" ;;
  516. +
  517. +  --x)
  518. +    # Obsolete; use --with-x.
  519. +    with_x=yes ;;
  520. +
  521. +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  522. +  | --x-incl | --x-inc | --x-in | --x-i)
  523. +    ac_prev=x_includes ;;
  524. +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  525. +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  526. +    x_includes="$ac_optarg" ;;
  527. +
  528. +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  529. +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  530. +    ac_prev=x_libraries ;;
  531. +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  532. +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  533. +    x_libraries="$ac_optarg" ;;
  534. +
  535. +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  536. +    ;;
  537. +
  538. +  *)
  539. +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  540. +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  541. +    fi
  542. +    if test "x$nonopt" != xNONE; then
  543. +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  544. +    fi
  545. +    nonopt="$ac_option"
  546. +    ;;
  547. +
  548. +  esac
  549.  done
  550.  
  551. -trap 'rm -fr conftest* core; exit 1' 1 3 15
  552. +if test -n "$ac_prev"; then
  553. +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  554. +fi
  555. +
  556. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  557. +
  558. +# File descriptor usage:
  559. +# 0 standard input
  560. +# 1 file creation
  561. +# 2 errors and warnings
  562. +# 3 some systems may open it to /dev/tty
  563. +# 4 used on the Kubota Titan
  564. +# 6 checking for... messages and results
  565. +# 5 compiler messages saved in config.log
  566. +if test "$silent" = yes; then
  567. +  exec 6>/dev/null
  568. +else
  569. +  exec 6>&1
  570. +fi
  571. +exec 5>./config.log
  572. +
  573. +echo "\
  574. +This file contains any messages produced by compilers while
  575. +running configure, to aid debugging if configure makes a mistake.
  576. +" 1>&5
  577. +
  578. +# Strip out --no-create and --no-recursion so they do not pile up.
  579. +# Also quote any args containing shell metacharacters.
  580. +ac_configure_args=
  581. +for ac_arg
  582. +do
  583. +  case "$ac_arg" in
  584. +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  585. +  | --no-cr | --no-c) ;;
  586. +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  587. +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  588. +  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  589. +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  590. +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  591. +  esac
  592. +done
  593.  
  594.  # NLS nuisances.
  595. +# Only set LANG and LC_ALL to C if already set.
  596.  # These must not be set unconditionally because not all systems understand
  597.  # e.g. LANG=C (notably SCO).
  598. -if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  599. -if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  600. +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  601. +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  602.  
  603. -rm -f conftest*
  604. -compile='${CC-cc} $CFLAGS $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  605. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  606. +rm -rf conftest* confdefs.h
  607. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  608. +echo > confdefs.h
  609.  
  610.  # A filename unique to this package, relative to the directory that
  611.  # configure is in, which we can look for to find out if srcdir is correct.
  612. -unique_file=indent.c
  613. +ac_unique_file=indent.c
  614.  
  615.  # Find the source files, if location was not specified.
  616.  if test -z "$srcdir"; then
  617. -  srcdirdefaulted=yes
  618. -  # Try the directory containing this script, then `..'.
  619. -  prog=$0
  620. -  confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  621. -  test "X$confdir" = "X$prog" && confdir=.
  622. -  srcdir=$confdir
  623. -  if test ! -r $srcdir/$unique_file; then
  624. +  ac_srcdir_defaulted=yes
  625. +  # Try the directory containing this script, then its parent.
  626. +  ac_prog=$0
  627. +  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  628. +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  629. +  srcdir=$ac_confdir
  630. +  if test ! -r $srcdir/$ac_unique_file; then
  631.      srcdir=..
  632.    fi
  633. +else
  634. +  ac_srcdir_defaulted=no
  635.  fi
  636. -if test ! -r $srcdir/$unique_file; then
  637. -  if test x$srcdirdefaulted = xyes; then
  638. -    echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  639. +if test ! -r $srcdir/$ac_unique_file; then
  640. +  if test "$ac_srcdir_defaulted" = yes; then
  641. +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  642.    else
  643. -    echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  644. +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  645.    fi
  646. -  exit 1
  647.  fi
  648. -# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  649. -# But we can't avoid them for `..', to make subdirectories work.
  650. -case $srcdir in
  651. -  .|/*|~*) ;;
  652. -  *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  653. -esac
  654. +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  655. +
  656. +# Prefer explicitly selected file to automatically selected ones.
  657. +if test -z "$CONFIG_SITE"; then
  658. +  if test "x$prefix" != xNONE; then
  659. +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  660. +  else
  661. +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  662. +  fi
  663. +fi
  664. +for ac_site_file in $CONFIG_SITE; do
  665. +  if test -r "$ac_site_file"; then
  666. +    echo "loading site script $ac_site_file"
  667. +    . "$ac_site_file"
  668. +  fi
  669. +done
  670. +
  671. +if test -r "$cache_file"; then
  672. +  echo "loading cache $cache_file"
  673. +  . $cache_file
  674. +else
  675. +  echo "creating cache $cache_file"
  676. +  > $cache_file
  677. +fi
  678. +
  679. +ac_ext=c
  680. +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  681. +ac_cpp='$CPP $CPPFLAGS'
  682. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  683. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  684. +
  685. +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  686. +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  687. +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  688. +    ac_n= ac_c='
  689. +' ac_t='    '
  690. +  else
  691. +    ac_n=-n ac_c= ac_t=
  692. +  fi
  693. +else
  694. +  ac_n= ac_c='\c' ac_t=
  695. +fi
  696. +
  697.  
  698. -# Save the original args to write them into config.status later.
  699. -configure_args="$*"
  700. +# Extract the first word of "gcc", so it can be a program name with args.
  701. +set dummy gcc; ac_word=$2
  702. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  703. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  704. +  echo $ac_n "(cached) $ac_c" 1>&6
  705. +else
  706. +  if test -n "$CC"; then
  707. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  708. +else
  709. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  710. +  for ac_dir in $PATH; do
  711. +    test -z "$ac_dir" && ac_dir=.
  712. +    if test -f $ac_dir/$ac_word; then
  713. +      ac_cv_prog_CC="gcc"
  714. +      break
  715. +    fi
  716. +  done
  717. +  IFS="$ac_save_ifs"
  718. +fi
  719. +fi
  720. +CC="$ac_cv_prog_CC"
  721. +if test -n "$CC"; then
  722. +  echo "$ac_t""$CC" 1>&6
  723. +else
  724. +  echo "$ac_t""no" 1>&6
  725. +fi
  726.  
  727.  if test -z "$CC"; then
  728. -  # Extract the first word of `gcc', so it can be a program name with args.
  729. -  set dummy gcc; word=$2
  730. -  echo checking for $word
  731. -  IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  732. -  for dir in $PATH; do
  733. -    test -z "$dir" && dir=.
  734. -    if test -f $dir/$word; then
  735. -      CC="gcc"
  736. +  # Extract the first word of "cc", so it can be a program name with args.
  737. +set dummy cc; ac_word=$2
  738. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  739. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  740. +  echo $ac_n "(cached) $ac_c" 1>&6
  741. +else
  742. +  if test -n "$CC"; then
  743. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  744. +else
  745. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  746. +  ac_prog_rejected=no
  747. +  for ac_dir in $PATH; do
  748. +    test -z "$ac_dir" && ac_dir=.
  749. +    if test -f $ac_dir/$ac_word; then
  750. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  751. +        ac_prog_rejected=yes
  752. +    continue
  753. +      fi
  754. +      ac_cv_prog_CC="cc"
  755.        break
  756.      fi
  757.    done
  758. -  IFS="$saveifs"
  759. +  IFS="$ac_save_ifs"
  760. +if test $ac_prog_rejected = yes; then
  761. +  # We found a bogon in the path, so make sure we never use it.
  762. +  set dummy $ac_cv_prog_CC
  763. +  shift
  764. +  if test $# -gt 0; then
  765. +    # We chose a different compiler from the bogus one.
  766. +    # However, it has the same basename, so the bogon will be chosen
  767. +    # first if we set CC to just the basename; use the full file name.
  768. +    shift
  769. +    set dummy "$ac_dir/$ac_word" "$@"
  770. +    shift
  771. +    ac_cv_prog_CC="$@"
  772. +  fi
  773. +fi
  774. +fi
  775. +fi
  776. +CC="$ac_cv_prog_CC"
  777. +if test -n "$CC"; then
  778. +  echo "$ac_t""$CC" 1>&6
  779. +else
  780. +  echo "$ac_t""no" 1>&6
  781.  fi
  782. -test -z "$CC" && CC="cc"
  783. -test -n "$CC" -a -n "$verbose" && echo "    setting CC to $CC"
  784.  
  785. -# Find out if we are using GNU C, under whatever name.
  786. -cat > conftest.c <<EOF
  787. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  788. +fi
  789. +
  790. +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  791. +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  792. +  echo $ac_n "(cached) $ac_c" 1>&6
  793. +else
  794. +  cat > conftest.c <<EOF
  795.  #ifdef __GNUC__
  796. -  yes
  797. +  yes;
  798.  #endif
  799.  EOF
  800. -${CC-cc} -E conftest.c > conftest.out 2>&1
  801. -if egrep yes conftest.out >/dev/null 2>&1; then
  802. -  GCC=1 # For later tests.
  803. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  804. +  ac_cv_prog_gcc=yes
  805. +else
  806. +  ac_cv_prog_gcc=no
  807. +fi
  808. +fi
  809. +
  810. +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  811. +if test $ac_cv_prog_gcc = yes; then
  812. +  GCC=yes
  813. +  if test "${CFLAGS+set}" != set; then
  814. +    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  815. +if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  816. +  echo $ac_n "(cached) $ac_c" 1>&6
  817. +else
  818. +  echo 'void f(){}' > conftest.c
  819. +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  820. +  ac_cv_prog_gcc_g=yes
  821. +else
  822. +  ac_cv_prog_gcc_g=no
  823.  fi
  824.  rm -f conftest*
  825.  
  826. -echo checking how to run the C preprocessor
  827. +fi
  828. +
  829. +echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  830. +    if test $ac_cv_prog_gcc_g = yes; then
  831. +      CFLAGS="-g -O2"
  832. +    else
  833. +      CFLAGS="-O2"
  834. +    fi
  835. +  fi
  836. +else
  837. +  GCC=
  838. +  test "${CFLAGS+set}" = set || CFLAGS="-g"
  839. +fi
  840. +
  841. +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  842. +# On Suns, sometimes $CPP names a directory.
  843. +if test -n "$CPP" && test -d "$CPP"; then
  844. +  CPP=
  845. +fi
  846.  if test -z "$CPP"; then
  847. -  # This must be in double quotes, not single quotes, because CPP may get
  848. -  # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  849. -  # make.  It must be expanded now.
  850. +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  851. +  echo $ac_n "(cached) $ac_c" 1>&6
  852. +else
  853. +    # This must be in double quotes, not single quotes, because CPP may get
  854. +  # substituted into the Makefile and "${CC-cc}" will confuse make.
  855.    CPP="${CC-cc} -E"
  856. -  cat > conftest.c <<EOF
  857. -#include <stdio.h>
  858. +  # On the NeXT, cc -E runs the code through the compiler's parser,
  859. +  # not just through cpp.
  860. +  cat > conftest.$ac_ext <<EOF
  861. +#line 672 "configure"
  862. +#include "confdefs.h"
  863. +#include <assert.h>
  864. +Syntax Error
  865. +EOF
  866. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  867. +{ (eval echo configure:678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  868. +ac_err=`grep -v '^ *+' conftest.out`
  869. +if test -z "$ac_err"; then
  870. +  :
  871. +else
  872. +  echo "$ac_err" >&5
  873. +  rm -rf conftest*
  874. +  CPP="${CC-cc} -E -traditional-cpp"
  875. +  cat > conftest.$ac_ext <<EOF
  876. +#line 687 "configure"
  877. +#include "confdefs.h"
  878. +#include <assert.h>
  879.  Syntax Error
  880.  EOF
  881. -err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  882. -if test -z "$err"; then
  883. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  884. +{ (eval echo configure:693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  885. +ac_err=`grep -v '^ *+' conftest.out`
  886. +if test -z "$ac_err"; then
  887.    :
  888.  else
  889. +  echo "$ac_err" >&5
  890. +  rm -rf conftest*
  891.    CPP=/lib/cpp
  892.  fi
  893.  rm -f conftest*
  894.  fi
  895. -test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  896. +rm -f conftest*
  897. +  ac_cv_prog_CPP="$CPP"
  898. +fi
  899. +  CPP="$ac_cv_prog_CPP"
  900. +else
  901. +  ac_cv_prog_CPP="$CPP"
  902. +fi
  903. +echo "$ac_t""$CPP" 1>&6
  904.  
  905. -# Make sure to not get the incompatible SysV /etc/install and
  906. -# /usr/sbin/install, which might be in PATH before a BSD-like install,
  907. -# or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  908. -# or the AFS install, which mishandles nonexistent args, or
  909. -# /usr/ucb/install on SVR4, which tries to use the nonexistent group
  910. -# `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  911. -# anyway.  Sigh.
  912. -if test "z${INSTALL}" = "z" ; then
  913. -  echo checking for install
  914. -  IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  915. -  for dir in $PATH; do
  916. -    test -z "$dir" && dir=.
  917. -    case $dir in
  918. -    /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  919. +ac_aux_dir=
  920. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  921. +  if test -f $ac_dir/install-sh; then
  922. +    ac_aux_dir=$ac_dir
  923. +    ac_install_sh="$ac_aux_dir/install-sh -c"
  924. +    break
  925. +  elif test -f $ac_dir/install.sh; then
  926. +    ac_aux_dir=$ac_dir
  927. +    ac_install_sh="$ac_aux_dir/install.sh -c"
  928. +    break
  929. +  fi
  930. +done
  931. +if test -z "$ac_aux_dir"; then
  932. +  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  933. +fi
  934. +ac_config_guess=$ac_aux_dir/config.guess
  935. +ac_config_sub=$ac_aux_dir/config.sub
  936. +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  937. +
  938. +# Find a good install program.  We prefer a C program (faster),
  939. +# so one script is as good as another.  But avoid the broken or
  940. +# incompatible versions:
  941. +# SysV /etc/install, /usr/sbin/install
  942. +# SunOS /usr/etc/install
  943. +# IRIX /sbin/install
  944. +# AIX /bin/install
  945. +# AmigaOS /c/install
  946. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  947. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  948. +# ./install, which can be erroneously created by make from ./install.sh.
  949. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  950. +if test -z "$INSTALL"; then
  951. +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  952. +  echo $ac_n "(cached) $ac_c" 1>&6
  953. +else
  954. +    IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  955. +  for ac_dir in $PATH; do
  956. +    # Account for people who put trailing slashes in PATH elements.
  957. +    case "$ac_dir/" in
  958. +    /|./|.//|/etc/*|/c/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  959.      *)
  960. -      if test -f $dir/installbsd; then
  961. -    INSTALL="$dir/installbsd -c" # OSF1
  962. -    INSTALL_PROGRAM='$(INSTALL)'
  963. -    INSTALL_DATA='$(INSTALL) -m 644'
  964. -    break
  965. -      fi
  966. -      if test -f $dir/install; then
  967. -    if grep dspmsg $dir/install >/dev/null 2>&1; then
  968. -      : # AIX
  969. -    else
  970. -      INSTALL="$dir/install -c"
  971. -      INSTALL_PROGRAM='$(INSTALL)'
  972. -      INSTALL_DATA='$(INSTALL) -m 644'
  973. -      break
  974. +      # OSF1 and SCO ODT 3.0 have their own names for install.
  975. +      for ac_prog in ginstall installbsd scoinst install; do
  976. +        if test -f $ac_dir/$ac_prog; then
  977. +      if test $ac_prog = install &&
  978. +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  979. +        # AIX install.  It has an incompatible calling convention.
  980. +        # OSF/1 installbsd also uses dspmsg, but is usable.
  981. +        :
  982. +      else
  983. +        ac_cv_path_install="$ac_dir/$ac_prog -c"
  984. +        break 2
  985. +      fi
  986.      fi
  987. -      fi
  988. +      done
  989.        ;;
  990.      esac
  991.    done
  992. -  IFS="$saveifs"
  993. +  IFS="$ac_save_ifs"
  994. +
  995.  fi
  996. -INSTALL=${INSTALL-cp}
  997. -INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  998. -INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  999. +  if test "${ac_cv_path_install+set}" = set; then
  1000. +    INSTALL="$ac_cv_path_install"
  1001. +  else
  1002. +    # As a last resort, use the slow shell script.  We don't cache a
  1003. +    # path for INSTALL within a source directory, because that will
  1004. +    # break other packages using the cache if that directory is
  1005. +    # removed, or if the path is relative.
  1006. +    INSTALL="$ac_install_sh"
  1007. +  fi
  1008. +fi
  1009. +echo "$ac_t""$INSTALL" 1>&6
  1010.  
  1011. -echo checking for AIX
  1012. -cat > conftest.c <<EOF
  1013. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1014. +# It thinks the first close brace ends the variable substitution.
  1015. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1016. +
  1017. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1018. +
  1019. +echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1020. +cat > conftest.$ac_ext <<EOF
  1021. +#line 794 "configure"
  1022. +#include "confdefs.h"
  1023.  #ifdef _AIX
  1024.    yes
  1025.  #endif
  1026.  
  1027.  EOF
  1028. -eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1029. -if egrep "yes" conftest.out >/dev/null 2>&1; then
  1030. -  {
  1031. -test -n "$verbose" && \
  1032. -echo '    defining' _ALL_SOURCE
  1033. -DEFS="$DEFS -D_ALL_SOURCE=1"
  1034. -}
  1035. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1036. +  egrep "yes" >/dev/null 2>&1; then
  1037. +  rm -rf conftest*
  1038. +  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1039. +#define _ALL_SOURCE 1
  1040. +EOF
  1041.  
  1042. +else
  1043. +  rm -rf conftest*
  1044. +  echo "$ac_t""no" 1>&6
  1045.  fi
  1046.  rm -f conftest*
  1047.  
  1048.  
  1049. -echo checking for minix/config.h
  1050. -cat > conftest.c <<EOF
  1051. +ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  1052. +echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1053. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1054. +  echo $ac_n "(cached) $ac_c" 1>&6
  1055. +else
  1056. +  cat > conftest.$ac_ext <<EOF
  1057. +#line 821 "configure"
  1058. +#include "confdefs.h"
  1059.  #include <minix/config.h>
  1060.  EOF
  1061. -err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1062. -if test -z "$err"; then
  1063. -  MINIX=1
  1064. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1065. +{ (eval echo configure:826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1066. +ac_err=`grep -v '^ *+' conftest.out`
  1067. +if test -z "$ac_err"; then
  1068. +  rm -rf conftest*
  1069. +  eval "ac_cv_header_$ac_safe=yes"
  1070. +else
  1071. +  echo "$ac_err" >&5
  1072. +  rm -rf conftest*
  1073. +  eval "ac_cv_header_$ac_safe=no"
  1074.  fi
  1075.  rm -f conftest*
  1076. +fi
  1077. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1078. +  echo "$ac_t""yes" 1>&6
  1079. +  MINIX=yes
  1080. +else
  1081. +  echo "$ac_t""no" 1>&6
  1082. +MINIX=
  1083. +fi
  1084. +
  1085. +if test "$MINIX" = yes; then
  1086. +  cat >> confdefs.h <<\EOF
  1087. +#define _POSIX_SOURCE 1
  1088. +EOF
  1089. +
  1090. +  cat >> confdefs.h <<\EOF
  1091. +#define _POSIX_1_SOURCE 2
  1092. +EOF
  1093.  
  1094. -# The Minix shell can't assign to the same variable on the same line!
  1095. -if test -n "$MINIX"; then
  1096. -  {
  1097. -test -n "$verbose" && \
  1098. -echo '    defining' _POSIX_SOURCE
  1099. -DEFS="$DEFS -D_POSIX_SOURCE=1"
  1100. -}
  1101. -
  1102. -  {
  1103. -test -n "$verbose" && \
  1104. -echo '    defining' _POSIX_1_SOURCE to be '2'
  1105. -DEFS="$DEFS -D_POSIX_1_SOURCE=2"
  1106. -}
  1107. -
  1108. -  {
  1109. -test -n "$verbose" && \
  1110. -echo '    defining' _MINIX
  1111. -DEFS="$DEFS -D_MINIX=1"
  1112. -}
  1113. +  cat >> confdefs.h <<\EOF
  1114. +#define _MINIX 1
  1115. +EOF
  1116.  
  1117.  fi
  1118.  
  1119. -echo checking for POSIXized ISC
  1120. +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1121.  if test -d /etc/conf/kconfig.d &&
  1122.    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1123.  then
  1124. -  ISC=1 # If later tests want to check for ISC.
  1125. -  {
  1126. -test -n "$verbose" && \
  1127. -echo '    defining' _POSIX_SOURCE
  1128. -DEFS="$DEFS -D_POSIX_SOURCE=1"
  1129. -}
  1130. +  echo "$ac_t""yes" 1>&6
  1131. +  ISC=yes # If later tests want to check for ISC.
  1132. +  cat >> confdefs.h <<\EOF
  1133. +#define _POSIX_SOURCE 1
  1134. +EOF
  1135.  
  1136. -  if test -n "$GCC"; then
  1137. +  if test "$GCC" = yes; then
  1138.      CC="$CC -posix"
  1139.    else
  1140.      CC="$CC -Xp"
  1141.    fi
  1142. +else
  1143. +  echo "$ac_t""no" 1>&6
  1144. +  ISC=
  1145.  fi
  1146.  
  1147. -echo checking for BSD string and memory functions
  1148. -cat > conftest.c <<EOF
  1149. -#include <strings.h>
  1150. -int main() { exit(0); }
  1151. -int t() { rindex(0, 0); bzero(0, 0); }
  1152. -EOF
  1153. -if eval $compile; then
  1154. -  :
  1155. +for ac_func in memcpy
  1156. +do
  1157. +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1158. +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1159. +  echo $ac_n "(cached) $ac_c" 1>&6
  1160.  else
  1161. -  {
  1162. -test -n "$verbose" && \
  1163. -echo '    defining' USG
  1164. -DEFS="$DEFS -DUSG=1"
  1165. -}
  1166. +  cat > conftest.$ac_ext <<EOF
  1167. +#line 888 "configure"
  1168. +#include "confdefs.h"
  1169. +/* System header to define __stub macros and hopefully few prototypes,
  1170. +    which can conflict with char $ac_func(); below.  */
  1171. +#include <assert.h>
  1172. +/* Override any gcc2 internal prototype to avoid an error.  */
  1173. +/* We use char because int might match the return type of a gcc2
  1174. +    builtin and then its argument prototype would still apply.  */
  1175. +char $ac_func();
  1176.  
  1177. -fi
  1178. -rm -f conftest*
  1179. +int main() { t(); return 0; }
  1180. +int t() {
  1181.  
  1182. -for func in memcpy
  1183. -do
  1184. -echo checking for ${func}
  1185. -cat > conftest.c <<EOF
  1186. -#include <ctype.h>
  1187. -int main() { exit(0); }
  1188. -int t() { 
  1189.  /* The GNU C library defines this for functions which it implements
  1190.      to always fail with ENOSYS.  Some functions are actually named
  1191.      something starting with __ and the normal name is an alias.  */
  1192. -#if defined (__stub_${func}) || defined (__stub___${func})
  1193. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1194.  choke me
  1195.  #else
  1196. -/* Override any gcc2 internal prototype to avoid an error.  */
  1197. -extern char ${func}(); ${func}();
  1198. +$ac_func();
  1199.  #endif
  1200. - }
  1201. +
  1202. +; return 0; }
  1203.  EOF
  1204. -if eval $compile; then
  1205. -  :
  1206. +if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1207. +  rm -rf conftest*
  1208. +  eval "ac_cv_func_$ac_func=yes"
  1209.  else
  1210. -  LIBOBJS="$LIBOBJS ${func}.o"
  1211. -test -n "$verbose" && echo "    using ${func}.o instead"
  1212. +  rm -rf conftest*
  1213. +  eval "ac_cv_func_$ac_func=no"
  1214.  fi
  1215.  rm -f conftest*
  1216.  
  1217. -done
  1218. -
  1219. -echo checking for unistd.h
  1220. -cat > conftest.c <<EOF
  1221. -#include <unistd.h>
  1222. -EOF
  1223. -err=`eval "($CPP \$DEFS conftest.c >/dev/null) 2>&1"`
  1224. -if test -z "$err"; then
  1225. -  {
  1226. -test -n "$verbose" && \
  1227. -echo '    defining' HAVE_UNISTD_H
  1228. -DEFS="$DEFS -DHAVE_UNISTD_H=1"
  1229. -}
  1230. -
  1231.  fi
  1232. -rm -f conftest*
  1233. +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1234. +  echo "$ac_t""yes" 1>&6
  1235. +  :
  1236. +else
  1237. +  echo "$ac_t""no" 1>&6
  1238. +LIBOBJS="$LIBOBJS ${ac_func}.o"
  1239. +fi
  1240.  
  1241. -echo checking for directory library header
  1242. -dirheader=
  1243. -if test -z "$dirheader"; then
  1244. -  echo checking for dirent.h
  1245. -cat > conftest.c <<EOF
  1246. -#include <sys/types.h>
  1247. -#include <dirent.h>
  1248. -int main() { exit(0); }
  1249. -int t() { DIR *dirp = opendir ("/"); }
  1250. -EOF
  1251. -if eval $compile; then
  1252. -  {
  1253. -test -n "$verbose" && \
  1254. -echo '    defining' DIRENT
  1255. -DEFS="$DEFS -DDIRENT=1"
  1256. -}
  1257. - dirheader=dirent.h
  1258. +done
  1259. +
  1260. +for ac_hdr in unistd.h
  1261. +do
  1262. +ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1263. +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1264. +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1265. +  echo $ac_n "(cached) $ac_c" 1>&6
  1266. +else
  1267. +  cat > conftest.$ac_ext <<EOF
  1268. +#line 940 "configure"
  1269. +#include "confdefs.h"
  1270. +#include <$ac_hdr>
  1271. +EOF
  1272. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1273. +{ (eval echo configure:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1274. +ac_err=`grep -v '^ *+' conftest.out`
  1275. +if test -z "$ac_err"; then
  1276. +  rm -rf conftest*
  1277. +  eval "ac_cv_header_$ac_safe=yes"
  1278. +else
  1279. +  echo "$ac_err" >&5
  1280. +  rm -rf conftest*
  1281. +  eval "ac_cv_header_$ac_safe=no"
  1282.  fi
  1283.  rm -f conftest*
  1284.  fi
  1285. -if test -z "$dirheader"; then
  1286. -  echo checking for sys/ndir.h
  1287. -cat > conftest.c <<EOF
  1288. -#include <sys/types.h>
  1289. -#include <sys/ndir.h>
  1290. -int main() { exit(0); }
  1291. -int t() { DIR *dirp = opendir ("/"); }
  1292. -EOF
  1293. -if eval $compile; then
  1294. -  {
  1295. -test -n "$verbose" && \
  1296. -echo '    defining' SYSNDIR
  1297. -DEFS="$DEFS -DSYSNDIR=1"
  1298. -}
  1299. - dirheader=sys/ndir.h
  1300. +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1301. +  echo "$ac_t""yes" 1>&6
  1302. +    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1303. +  cat >> confdefs.h <<EOF
  1304. +#define $ac_tr_hdr 1
  1305. +EOF
  1306. +else
  1307. +  echo "$ac_t""no" 1>&6
  1308.  fi
  1309. -rm -f conftest*
  1310. +done
  1311. +
  1312. +# If we cannot run a trivial program, we must be cross compiling.
  1313. +echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1314. +if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1315. +  echo $ac_n "(cached) $ac_c" 1>&6
  1316. +else
  1317. +  if test "$cross_compiling" = yes; then
  1318. +  ac_cv_c_cross=yes
  1319. +else
  1320. +cat > conftest.$ac_ext <<EOF
  1321. +#line 978 "configure"
  1322. +#include "confdefs.h"
  1323. +main(){return(0);}
  1324. +EOF
  1325. +{ (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1326. +if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1327. +  ac_cv_c_cross=no
  1328. +else
  1329. +  ac_cv_c_cross=yes
  1330.  fi
  1331. -if test -z "$dirheader"; then
  1332. -  echo checking for sys/dir.h
  1333. -cat > conftest.c <<EOF
  1334. -#include <sys/types.h>
  1335. -#include <sys/dir.h>
  1336. -int main() { exit(0); }
  1337. -int t() { DIR *dirp = opendir ("/"); }
  1338. -EOF
  1339. -if eval $compile; then
  1340. -  {
  1341. -test -n "$verbose" && \
  1342. -echo '    defining' SYSDIR
  1343. -DEFS="$DEFS -DSYSDIR=1"
  1344. -}
  1345. - dirheader=sys/dir.h
  1346.  fi
  1347. -rm -f conftest*
  1348. +rm -fr conftest*
  1349.  fi
  1350. -if test -z "$dirheader"; then
  1351. -  echo checking for ndir.h
  1352. -cat > conftest.c <<EOF
  1353. +
  1354. +echo "$ac_t""$ac_cv_c_cross" 1>&6
  1355. +cross_compiling=$ac_cv_c_cross
  1356. +
  1357. +ac_header_dirent=no
  1358. +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  1359. +  ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1360. +echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1361. +if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1362. +  echo $ac_n "(cached) $ac_c" 1>&6
  1363. +else
  1364. +  cat > conftest.$ac_ext <<EOF
  1365. +#line 1003 "configure"
  1366. +#include "confdefs.h"
  1367.  #include <sys/types.h>
  1368. -#include <ndir.h>
  1369. -int main() { exit(0); }
  1370. -int t() { DIR *dirp = opendir ("/"); }
  1371. -EOF
  1372. -if eval $compile; then
  1373. -  {
  1374. -test -n "$verbose" && \
  1375. -echo '    defining' NDIR
  1376. -DEFS="$DEFS -DNDIR=1"
  1377. -}
  1378. - dirheader=ndir.h
  1379. +#include <$ac_hdr>
  1380. +int main() { return 0; }
  1381. +int t() {
  1382. +DIR *dirp = 0;
  1383. +; return 0; }
  1384. +EOF
  1385. +if { (eval echo configure:1012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1386. +  rm -rf conftest*
  1387. +  eval "ac_cv_header_dirent_$ac_safe=yes"
  1388. +else
  1389. +  rm -rf conftest*
  1390. +  eval "ac_cv_header_dirent_$ac_safe=no"
  1391.  fi
  1392.  rm -f conftest*
  1393. +
  1394.  fi
  1395. +if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1396. +  echo "$ac_t""yes" 1>&6
  1397. +  ac_header_dirent=$ac_hdr; break
  1398. +else
  1399. +  echo "$ac_t""no" 1>&6
  1400. +fi
  1401. +
  1402. +done
  1403.  
  1404. -echo checking for closedir return value
  1405. -cat > conftest.c <<EOF
  1406. +case "$ac_header_dirent" in
  1407. +dirent.h) cat >> confdefs.h <<\EOF
  1408. +#define DIRENT 1
  1409. +EOF
  1410. + ;;
  1411. +sys/ndir.h) cat >> confdefs.h <<\EOF
  1412. +#define SYSNDIR 1
  1413. +EOF
  1414. + ;;
  1415. +sys/dir.h) cat >> confdefs.h <<\EOF
  1416. +#define SYSDIR 1
  1417. +EOF
  1418. + ;;
  1419. +ndir.h) cat >> confdefs.h <<\EOF
  1420. +#define NDIR 1
  1421. +EOF
  1422. + ;;
  1423. +esac
  1424. +
  1425. +echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1426. +if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1427. +  echo $ac_n "(cached) $ac_c" 1>&6
  1428. +else
  1429. +  if test "$cross_compiling" = yes; then
  1430. +  ac_cv_func_closedir_void=yes
  1431. +else
  1432. +cat > conftest.$ac_ext <<EOF
  1433. +#line 1058 "configure"
  1434. +#include "confdefs.h"
  1435.  #include <sys/types.h>
  1436. -#include <$dirheader>
  1437. +#include <$ac_header_dirent>
  1438.  int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1439.  EOF
  1440. -eval $compile
  1441. +{ (eval echo configure:1064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1442.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1443. -  :
  1444. +  ac_cv_func_closedir_void=no
  1445.  else
  1446. -  {
  1447. -test -n "$verbose" && \
  1448. -echo '    defining' VOID_CLOSEDIR
  1449. -DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1450. -}
  1451. -
  1452. +  ac_cv_func_closedir_void=yes
  1453. +fi
  1454. +fi
  1455. +rm -fr conftest*
  1456.  fi
  1457. -rm -f conftest*
  1458.  
  1459. -if test -z "$dirheader"; then
  1460. -  {
  1461. -test -n "$verbose" && \
  1462. -echo '    defining' NODIR
  1463. -DEFS="$DEFS -DNODIR=1"
  1464. -}
  1465. +echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1466. +if test $ac_cv_func_closedir_void = yes; then
  1467. +  cat >> confdefs.h <<\EOF
  1468. +#define VOID_CLOSEDIR 1
  1469. +EOF
  1470.  
  1471.  fi
  1472. -echo checking for Xenix
  1473. -cat > conftest.c <<EOF
  1474. +
  1475. +echo $ac_n "checking for Xenix""... $ac_c" 1>&6
  1476. +cat > conftest.$ac_ext <<EOF
  1477. +#line 1084 "configure"
  1478. +#include "confdefs.h"
  1479.  #if defined(M_XENIX) && !defined(M_UNIX)
  1480.    yes
  1481.  #endif
  1482.  
  1483.  EOF
  1484. -eval "$CPP \$DEFS conftest.c > conftest.out 2>&1"
  1485. -if egrep "yes" conftest.out >/dev/null 2>&1; then
  1486. -  XENIX=1
  1487. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1488. +  egrep "yes" >/dev/null 2>&1; then
  1489. +  rm -rf conftest*
  1490. +  echo "$ac_t""yes" 1>&6; XENIX=yes
  1491. +else
  1492. +  rm -rf conftest*
  1493. +  echo "$ac_t""no" 1>&6; XENIX=
  1494.  fi
  1495.  rm -f conftest*
  1496.  
  1497. -if test -n "$XENIX"; then
  1498. +if test "$XENIX" = yes; then
  1499. +  # Make sure -ldir precedes -lx.
  1500. +  test $ac_header_dirent = dirent.h && LIBS="-ldir $LIBS"
  1501.    LIBS="$LIBS -lx"
  1502. -  case "$DEFS" in
  1503. -  *SYSNDIR*) ;;
  1504. -  *) LIBS="-ldir $LIBS" ;; # Make sure -ldir precedes any -lx.
  1505. -  esac
  1506.  fi
  1507.  
  1508. -if test -n "$prefix"; then
  1509. -  test -z "$exec_prefix" && exec_prefix='${prefix}'
  1510. -  prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  1511. -fi
  1512. -if test -n "$exec_prefix"; then
  1513. -  prsub="$prsub
  1514. -s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  1515. -fi
  1516. -cat >conftest.def <<EOF
  1517. -$DEFS
  1518. -EOF
  1519. -escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  1520. -DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  1521. -rm -f conftest.def
  1522. -
  1523. -trap 'rm -f config.status; exit 1' 1 3 15
  1524. -echo creating config.status
  1525. -rm -f config.status
  1526. -cat > config.status <<EOF
  1527. -#!/bin/sh
  1528. +trap '' 1 2 15
  1529. +cat > confcache <<\EOF
  1530. +# This file is a shell script that caches the results of configure
  1531. +# tests run on this system so they can be shared between configure
  1532. +# scripts and configure runs.  It is not useful on other systems.
  1533. +# If it contains results you don't want to keep, you may remove or edit it.
  1534. +#
  1535. +# By default, configure uses ./config.cache as the cache file,
  1536. +# creating it if it does not exist already.  You can give configure
  1537. +# the --cache-file=FILE option to use a different cache file; that is
  1538. +# what configure does when it calls configure scripts in
  1539. +# subdirectories, so they share the cache.
  1540. +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  1541. +# config.status only pays attention to the cache file if you give it the
  1542. +# --recheck option to rerun configure.
  1543. +#
  1544. +EOF
  1545. +# Ultrix sh set writes to stderr and can't be redirected directly,
  1546. +# and sets the high bit in the cache file unless we assign to the vars.
  1547. +(set) 2>&1 |
  1548. +  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  1549. +  >> confcache
  1550. +if cmp -s $cache_file confcache; then
  1551. +  :
  1552. +else
  1553. +  if test -w $cache_file; then
  1554. +    echo "updating cache $cache_file"
  1555. +    cat confcache > $cache_file
  1556. +  else
  1557. +    echo "not updating unwritable cache $cache_file"
  1558. +  fi
  1559. +fi
  1560. +rm -f confcache
  1561. +
  1562. +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1563. +
  1564. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1565. +# Let make expand exec_prefix.
  1566. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1567. +
  1568. +# Any assignment to VPATH causes Sun make to only execute
  1569. +# the first set of double-colon rules, so remove it if not needed.
  1570. +# If there is a colon in the path, we need to keep it.
  1571. +if test "x$srcdir" = x.; then
  1572. +  ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1573. +fi
  1574. +
  1575. +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1576. +
  1577. +# Transform confdefs.h into DEFS.
  1578. +# Protect against shell expansion while executing Makefile rules.
  1579. +# Protect against Makefile macro expansion.
  1580. +cat > conftest.defs <<\EOF
  1581. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1582. +s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1583. +s%\[%\\&%g
  1584. +s%\]%\\&%g
  1585. +s%\$%$$%g
  1586. +EOF
  1587. +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1588. +rm -f conftest.defs
  1589. +
  1590. +
  1591. +# Without the "./", some shells look in PATH for config.status.
  1592. +: ${CONFIG_STATUS=./config.status}
  1593. +
  1594. +echo creating $CONFIG_STATUS
  1595. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1596. +# being executed, so just move it out of the way instead.
  1597. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1598. +cat > $CONFIG_STATUS <<EOF
  1599. +#! /bin/sh
  1600.  # Generated automatically by configure.
  1601.  # Run this file to recreate the current configuration.
  1602.  # This directory was configured as follows,
  1603.  # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1604.  #
  1605. -# $0 $configure_args
  1606. +# $0 $ac_configure_args
  1607. +#
  1608. +# Compiler output produced by configure, useful for debugging
  1609. +# configure, is in ./config.log if it exists.
  1610.  
  1611. -for arg
  1612. +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1613. +for ac_option
  1614.  do
  1615. -  case "\$arg" in
  1616. -    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1617. -    exec /bin/sh $0 $configure_args ;;
  1618. -    *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  1619. +  case "\$ac_option" in
  1620. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1621. +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1622. +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1623. +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1624. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1625. +    exit 0 ;;
  1626. +  -help | --help | --hel | --he | --h)
  1627. +    echo "\$ac_cs_usage"; exit 0 ;;
  1628. +  *) echo "\$ac_cs_usage"; exit 1 ;;
  1629.    esac
  1630.  done
  1631.  
  1632. -trap 'rm -f makefile; exit 1' 1 3 15
  1633. -CC='$CC'
  1634. -CPP='$CPP'
  1635. -INSTALL='$INSTALL'
  1636. -INSTALL_PROGRAM='$INSTALL_PROGRAM'
  1637. -INSTALL_DATA='$INSTALL_DATA'
  1638. -LIBOBJS='$LIBOBJS'
  1639. -LIBS='$LIBS'
  1640. -srcdir='$srcdir'
  1641. -DEFS='$DEFS'
  1642. -prefix='$prefix'
  1643. -exec_prefix='$exec_prefix'
  1644. -prsub='$prsub'
  1645. -EOF
  1646. -cat >> config.status <<\EOF
  1647. +ac_given_srcdir=$srcdir
  1648. +ac_given_INSTALL="$INSTALL"
  1649.  
  1650. -top_srcdir=$srcdir
  1651. -
  1652. -# Allow make-time overrides of the generated file list.
  1653. -test -n "$gen_files" || gen_files="makefile"
  1654. +trap 'rm -fr `echo "makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1655. +EOF
  1656. +cat >> $CONFIG_STATUS <<EOF
  1657.  
  1658. -for file in .. $gen_files; do if [ "x$file" != "x.." ]; then
  1659. -  srcdir=$top_srcdir
  1660. -  # Remove last slash and all that follows it.  Not all systems have dirname.
  1661. -  dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  1662. -  if test "$dir" != "$file"; then
  1663. -    test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  1664. -    test ! -d $dir && mkdir $dir
  1665. -  fi
  1666. -  echo creating $file
  1667. -  rm -f $file
  1668. -  echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  1669. -  sed -e "
  1670. -$prsub
  1671. +# Protect against being on the right side of a sed subst in config.status.
  1672. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1673. + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1674. +$ac_vpsub
  1675. +$extrasub
  1676. +s%@CFLAGS@%$CFLAGS%g
  1677. +s%@CPPFLAGS@%$CPPFLAGS%g
  1678. +s%@CXXFLAGS@%$CXXFLAGS%g
  1679. +s%@DEFS@%$DEFS%g
  1680. +s%@LDFLAGS@%$LDFLAGS%g
  1681. +s%@LIBS@%$LIBS%g
  1682. +s%@exec_prefix@%$exec_prefix%g
  1683. +s%@prefix@%$prefix%g
  1684. +s%@program_transform_name@%$program_transform_name%g
  1685. +s%@bindir@%$bindir%g
  1686. +s%@sbindir@%$sbindir%g
  1687. +s%@libexecdir@%$libexecdir%g
  1688. +s%@datadir@%$datadir%g
  1689. +s%@sysconfdir@%$sysconfdir%g
  1690. +s%@sharedstatedir@%$sharedstatedir%g
  1691. +s%@localstatedir@%$localstatedir%g
  1692. +s%@libdir@%$libdir%g
  1693. +s%@includedir@%$includedir%g
  1694. +s%@oldincludedir@%$oldincludedir%g
  1695. +s%@infodir@%$infodir%g
  1696. +s%@guidedir@%$guidedir%g
  1697. +s%@psdir@%$psdir%g
  1698. +s%@dvidir@%$dvidir%g
  1699. +s%@mandir@%$mandir%g
  1700.  s%@CC@%$CC%g
  1701.  s%@CPP@%$CPP%g
  1702. -s%@INSTALL@%$INSTALL%g
  1703.  s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1704.  s%@INSTALL_DATA@%$INSTALL_DATA%g
  1705.  s%@LIBOBJS@%$LIBOBJS%g
  1706. -s%@LIBS@%$LIBS%g
  1707. +
  1708. +CEOF
  1709. +EOF
  1710. +cat >> $CONFIG_STATUS <<EOF
  1711. +
  1712. +CONFIG_FILES=\${CONFIG_FILES-"makefile"}
  1713. +EOF
  1714. +cat >> $CONFIG_STATUS <<\EOF
  1715. +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1716. +  # Support "outfile[:infile]", defaulting infile="outfile.in".
  1717. +  case "$ac_file" in
  1718. +  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  1719. +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1720. +  *) ac_file_in="${ac_file}.in" ;;
  1721. +  esac
  1722. +
  1723. +  # Adjust relative srcdir, etc. for subdirectories.
  1724. +
  1725. +  # Remove last slash and all that follows it.  Not all systems have dirname.
  1726. +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1727. +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1728. +    # The file is in a subdirectory.
  1729. +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  1730. +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1731. +    # A "../" for each directory in $ac_dir_suffix.
  1732. +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1733. +  else
  1734. +    ac_dir_suffix= ac_dots=
  1735. +  fi
  1736. +
  1737. +  case "$ac_given_srcdir" in
  1738. +  .)  srcdir=.
  1739. +      if test -z "$ac_dots"; then top_srcdir=.
  1740. +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1741. +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1742. +  *) # Relative path.
  1743. +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1744. +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1745. +  esac
  1746. +
  1747. +  case "$ac_given_INSTALL" in
  1748. +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1749. +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1750. +  esac
  1751. +  echo creating "$ac_file"
  1752. +  rm -f "$ac_file"
  1753. +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1754. +  case "$ac_file" in
  1755. +  *Makefile*) ac_comsub="1i\\
  1756. +# $configure_input" ;;
  1757. +  *) ac_comsub= ;;
  1758. +  esac
  1759. +  sed -e "$ac_comsub
  1760. +s%@configure_input@%$configure_input%g
  1761.  s%@srcdir@%$srcdir%g
  1762. -s%@DEFS@%$DEFS%
  1763. -" $top_srcdir/${file}.in >> $file
  1764. +s%@top_srcdir@%$top_srcdir%g
  1765. +s%@INSTALL@%$INSTALL%g
  1766. +" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  1767.  fi; done
  1768. +rm -f conftest.subs
  1769. +
  1770. +
  1771.  
  1772.  exit 0
  1773.  EOF
  1774. -chmod +x config.status
  1775. -test -n "$no_create" || ./config.status
  1776. +chmod +x $CONFIG_STATUS
  1777. +rm -f CONFIG.STATUS.old
  1778. +rm -fr confdefs* $ac_clean_files
  1779. +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1780.  
  1781. diff -rup --new-file baseline/fsf/indent/configure.in amiga/fsf/indent/configure.in
  1782. --- baseline/fsf/indent/configure.in    Wed Jun 16 11:50:22 1993
  1783. +++ amiga/fsf/indent/configure.in    Sat Sep 28 00:00:00 1996
  1784. @@ -6,12 +6,8 @@ AC_PROG_INSTALL
  1785.  AC_AIX
  1786.  AC_MINIX
  1787.  AC_ISC_POSIX
  1788. -AC_USG
  1789.  AC_REPLACE_FUNCS(memcpy)
  1790. -AC_UNISTD_H
  1791. +AC_HAVE_HEADERS(unistd.h)
  1792.  AC_DIR_HEADER
  1793. -if test -z "$dirheader"; then
  1794. -  AC_DEFINE(NODIR)
  1795. -fi
  1796.  AC_XENIX_DIR
  1797.  AC_OUTPUT(makefile)
  1798. diff -rup --new-file baseline/fsf/indent/indent.1 amiga/fsf/indent/indent.1
  1799. --- baseline/fsf/indent/indent.1    Wed Jul  1 16:15:21 1992
  1800. +++ amiga/fsf/indent/indent.1    Sat Sep 28 00:00:00 1996
  1801. @@ -991,7 +991,7 @@ Unknown
  1802.  .br
  1803.  .nf
  1804.  .\" set tabstop to longest possible filename, plus a wee bit
  1805. -.ta \w'/usr/lib/perl/getopts.pl   'u
  1806. +.ta \w'/ade/lib/perl/getopts.pl   'u
  1807.  \fI$HOME/.indent.pro\fR    holds default options for indent.
  1808.  .SH AUTHOR
  1809.  The Free Software Foundation.
  1810. diff -rup --new-file baseline/fsf/indent/indent.info amiga/fsf/indent/indent.info
  1811. --- baseline/fsf/indent/indent.info    Thu Feb  3 10:54:12 1994
  1812. +++ amiga/fsf/indent/indent.info    Sat Sep 28 00:00:00 1996
  1813. @@ -1,5 +1,5 @@
  1814. -This is Info file indent.info, produced by Makeinfo-1.54 from the input
  1815. -file ./indent.texinfo.
  1816. +This is Info file indent.info, produced by Makeinfo-1.63 from the input
  1817. +file /ade-src/fsf/indent/indent.texinfo.
  1818.  
  1819.     Copyright (C) 1989, 1992, 1993, 1994 Free Software Foundation, Inc.
  1820.  
  1821. @@ -1222,23 +1222,23 @@ Index
  1822.  
  1823.  
  1824.  Tag Table:
  1825. -Node: Top423
  1826. -Node: Indent Program934
  1827. -Node: Invoking indent1965
  1828. -Node: Backup files5146
  1829. -Node: Common styles7011
  1830. -Node: Blank lines9216
  1831. -Node: -bad10168
  1832. -Node: -bap10815
  1833. -Node: Comments11676
  1834. -Node: Statements15997
  1835. -Node: Declarations18421
  1836. -Node: Indentation20038
  1837. -Node: Disabling Formatting22362
  1838. -Node: Miscellaneous options24101
  1839. -Node: Bugs24652
  1840. -Node: Copyright24964
  1841. -Node: Option Summary26344
  1842. -Node: Index35844
  1843. +Node: Top441
  1844. +Node: Indent Program952
  1845. +Node: Invoking indent1983
  1846. +Node: Backup files5164
  1847. +Node: Common styles7029
  1848. +Node: Blank lines9234
  1849. +Node: -bad10186
  1850. +Node: -bap10833
  1851. +Node: Comments11694
  1852. +Node: Statements16015
  1853. +Node: Declarations18439
  1854. +Node: Indentation20056
  1855. +Node: Disabling Formatting22380
  1856. +Node: Miscellaneous options24119
  1857. +Node: Bugs24670
  1858. +Node: Copyright24982
  1859. +Node: Option Summary26362
  1860. +Node: Index35862
  1861.  
  1862.  End Tag Table
  1863. diff -rup --new-file baseline/fsf/indent/makefile.in amiga/fsf/indent/makefile.in
  1864. --- baseline/fsf/indent/makefile.in    Sat Jan 29 19:48:43 1994
  1865. +++ amiga/fsf/indent/makefile.in    Sat Sep 28 00:00:00 1996
  1866. @@ -40,14 +40,14 @@ ZIP = gzip
  1867.  DVITOGHOSTSCRIPT = dvi2ps indent.dvi > indent.ps
  1868.  CTAGS = etags
  1869.  
  1870. -CFLAGS = -O
  1871. -LDFLAGS = -g
  1872. +CFLAGS = -O2
  1873. +LDFLAGS =
  1874.  
  1875.  # C compiler -D options.
  1876.  DEFS = @DEFS@
  1877.  
  1878.  # Where to install indent and its documentation.
  1879. -prefix = /usr/local
  1880. +prefix = /ade
  1881.  exec_prefix = ${prefix}
  1882.  bindir = $(exec_prefix)/bin
  1883.  infodir = ${prefix}/info
  1884. diff -rup --new-file baseline/fsf/indent/manifests/bin amiga/fsf/indent/manifests/bin
  1885. --- baseline/fsf/indent/manifests/bin    Wed Dec 31 17:00:00 1969
  1886. +++ amiga/fsf/indent/manifests/bin    Sat Sep 28 00:00:00 1996
  1887. @@ -0,0 +1,4 @@
  1888. +COPYING
  1889. +COPYING.info
  1890. +bin/indent
  1891. +info/indent.info
  1892. diff -rup --new-file baseline/fsf/indent/manifests/src amiga/fsf/indent/manifests/src
  1893. --- baseline/fsf/indent/manifests/src    Wed Dec 31 17:00:00 1969
  1894. +++ amiga/fsf/indent/manifests/src    Sat Sep 28 00:00:00 1996
  1895. @@ -0,0 +1,35 @@
  1896. +fsf/indent/CONF-README
  1897. +fsf/indent/COPYING
  1898. +fsf/indent/ChangeLog
  1899. +fsf/indent/Makefile
  1900. +fsf/indent/NEWS
  1901. +fsf/indent/OChangeLog
  1902. +fsf/indent/Product-Info
  1903. +fsf/indent/Projects
  1904. +fsf/indent/README
  1905. +fsf/indent/VMS-README
  1906. +fsf/indent/args.c
  1907. +fsf/indent/backup.c
  1908. +fsf/indent/backup.h
  1909. +fsf/indent/comments.c
  1910. +fsf/indent/configure
  1911. +fsf/indent/configure.in
  1912. +fsf/indent/globs.c
  1913. +fsf/indent/gnuc-make.com
  1914. +fsf/indent/indent.1
  1915. +fsf/indent/indent.c
  1916. +fsf/indent/indent.gperf
  1917. +fsf/indent/indent.h
  1918. +fsf/indent/indent.info
  1919. +fsf/indent/indent.texinfo
  1920. +fsf/indent/io.c
  1921. +fsf/indent/lexi.c
  1922. +fsf/indent/makefile.in
  1923. +fsf/indent/manifests/bin
  1924. +fsf/indent/manifests/src
  1925. +fsf/indent/memcpy.c
  1926. +fsf/indent/parse.c
  1927. +fsf/indent/sys.h
  1928. +fsf/indent/texinfo.tex
  1929. +fsf/indent/vaxc-make.com
  1930. +fsf/indent/version.h
  1931.