home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / diffs / rcs-5.6.0.1.diffs < prev    next >
Encoding:
Text File  |  1995-01-21  |  94.9 KB  |  3,128 lines

  1. diff -rc --new-file rcs-5.6.0.1/COPYING /gnu/src/amiga/rcs-5.6.0.1/COPYING
  2. *** rcs-5.6.0.1/COPYING    Thu Jan  1 00:00:00 1970
  3. --- /gnu/src/amiga/rcs-5.6.0.1/COPYING    Sun Jun  2 20:03:17 1991
  4. ***************
  5. *** 0 ****
  6. --- 1,339 ----
  7. +             GNU GENERAL PUBLIC LICENSE
  8. +                Version 2, June 1991
  9. +  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  10. +                           675 Mass Ave, Cambridge, MA 02139, USA
  11. +  Everyone is permitted to copy and distribute verbatim copies
  12. +  of this license document, but changing it is not allowed.
  13. +                 Preamble
  14. +   The licenses for most software are designed to take away your
  15. + freedom to share and change it.  By contrast, the GNU General Public
  16. + License is intended to guarantee your freedom to share and change free
  17. + software--to make sure the software is free for all its users.  This
  18. + General Public License applies to most of the Free Software
  19. + Foundation's software and to any other program whose authors commit to
  20. + using it.  (Some other Free Software Foundation software is covered by
  21. + the GNU Library General Public License instead.)  You can apply it to
  22. + your programs, too.
  23. +   When we speak of free software, we are referring to freedom, not
  24. + price.  Our General Public Licenses are designed to make sure that you
  25. + have the freedom to distribute copies of free software (and charge for
  26. + this service if you wish), that you receive source code or can get it
  27. + if you want it, that you can change the software or use pieces of it
  28. + in new free programs; and that you know you can do these things.
  29. +   To protect your rights, we need to make restrictions that forbid
  30. + anyone to deny you these rights or to ask you to surrender the rights.
  31. + These restrictions translate to certain responsibilities for you if you
  32. + distribute copies of the software, or if you modify it.
  33. +   For example, if you distribute copies of such a program, whether
  34. + gratis or for a fee, you must give the recipients all the rights that
  35. + you have.  You must make sure that they, too, receive or can get the
  36. + source code.  And you must show them these terms so they know their
  37. + rights.
  38. +   We protect your rights with two steps: (1) copyright the software, and
  39. + (2) offer you this license which gives you legal permission to copy,
  40. + distribute and/or modify the software.
  41. +   Also, for each author's protection and ours, we want to make certain
  42. + that everyone understands that there is no warranty for this free
  43. + software.  If the software is modified by someone else and passed on, we
  44. + want its recipients to know that what they have is not the original, so
  45. + that any problems introduced by others will not reflect on the original
  46. + authors' reputations.
  47. +   Finally, any free program is threatened constantly by software
  48. + patents.  We wish to avoid the danger that redistributors of a free
  49. + program will individually obtain patent licenses, in effect making the
  50. + program proprietary.  To prevent this, we have made it clear that any
  51. + patent must be licensed for everyone's free use or not licensed at all.
  52. +   The precise terms and conditions for copying, distribution and
  53. + modification follow.
  54. +             GNU GENERAL PUBLIC LICENSE
  55. +    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  56. +   0. This License applies to any program or other work which contains
  57. + a notice placed by the copyright holder saying it may be distributed
  58. + under the terms of this General Public License.  The "Program", below,
  59. + refers to any such program or work, and a "work based on the Program"
  60. + means either the Program or any derivative work under copyright law:
  61. + that is to say, a work containing the Program or a portion of it,
  62. + either verbatim or with modifications and/or translated into another
  63. + language.  (Hereinafter, translation is included without limitation in
  64. + the term "modification".)  Each licensee is addressed as "you".
  65. + Activities other than copying, distribution and modification are not
  66. + covered by this License; they are outside its scope.  The act of
  67. + running the Program is not restricted, and the output from the Program
  68. + is covered only if its contents constitute a work based on the
  69. + Program (independent of having been made by running the Program).
  70. + Whether that is true depends on what the Program does.
  71. +   1. You may copy and distribute verbatim copies of the Program's
  72. + source code as you receive it, in any medium, provided that you
  73. + conspicuously and appropriately publish on each copy an appropriate
  74. + copyright notice and disclaimer of warranty; keep intact all the
  75. + notices that refer to this License and to the absence of any warranty;
  76. + and give any other recipients of the Program a copy of this License
  77. + along with the Program.
  78. + You may charge a fee for the physical act of transferring a copy, and
  79. + you may at your option offer warranty protection in exchange for a fee.
  80. +   2. You may modify your copy or copies of the Program or any portion
  81. + of it, thus forming a work based on the Program, and copy and
  82. + distribute such modifications or work under the terms of Section 1
  83. + above, provided that you also meet all of these conditions:
  84. +     a) You must cause the modified files to carry prominent notices
  85. +     stating that you changed the files and the date of any change.
  86. +     b) You must cause any work that you distribute or publish, that in
  87. +     whole or in part contains or is derived from the Program or any
  88. +     part thereof, to be licensed as a whole at no charge to all third
  89. +     parties under the terms of this License.
  90. +     c) If the modified program normally reads commands interactively
  91. +     when run, you must cause it, when started running for such
  92. +     interactive use in the most ordinary way, to print or display an
  93. +     announcement including an appropriate copyright notice and a
  94. +     notice that there is no warranty (or else, saying that you provide
  95. +     a warranty) and that users may redistribute the program under
  96. +     these conditions, and telling the user how to view a copy of this
  97. +     License.  (Exception: if the Program itself is interactive but
  98. +     does not normally print such an announcement, your work based on
  99. +     the Program is not required to print an announcement.)
  100. + These requirements apply to the modified work as a whole.  If
  101. + identifiable sections of that work are not derived from the Program,
  102. + and can be reasonably considered independent and separate works in
  103. + themselves, then this License, and its terms, do not apply to those
  104. + sections when you distribute them as separate works.  But when you
  105. + distribute the same sections as part of a whole which is a work based
  106. + on the Program, the distribution of the whole must be on the terms of
  107. + this License, whose permissions for other licensees extend to the
  108. + entire whole, and thus to each and every part regardless of who wrote it.
  109. + Thus, it is not the intent of this section to claim rights or contest
  110. + your rights to work written entirely by you; rather, the intent is to
  111. + exercise the right to control the distribution of derivative or
  112. + collective works based on the Program.
  113. + In addition, mere aggregation of another work not based on the Program
  114. + with the Program (or with a work based on the Program) on a volume of
  115. + a storage or distribution medium does not bring the other work under
  116. + the scope of this License.
  117. +   3. You may copy and distribute the Program (or a work based on it,
  118. + under Section 2) in object code or executable form under the terms of
  119. + Sections 1 and 2 above provided that you also do one of the following:
  120. +     a) Accompany it with the complete corresponding machine-readable
  121. +     source code, which must be distributed under the terms of Sections
  122. +     1 and 2 above on a medium customarily used for software interchange; or,
  123. +     b) Accompany it with a written offer, valid for at least three
  124. +     years, to give any third party, for a charge no more than your
  125. +     cost of physically performing source distribution, a complete
  126. +     machine-readable copy of the corresponding source code, to be
  127. +     distributed under the terms of Sections 1 and 2 above on a medium
  128. +     customarily used for software interchange; or,
  129. +     c) Accompany it with the information you received as to the offer
  130. +     to distribute corresponding source code.  (This alternative is
  131. +     allowed only for noncommercial distribution and only if you
  132. +     received the program in object code or executable form with such
  133. +     an offer, in accord with Subsection b above.)
  134. + The source code for a work means the preferred form of the work for
  135. + making modifications to it.  For an executable work, complete source
  136. + code means all the source code for all modules it contains, plus any
  137. + associated interface definition files, plus the scripts used to
  138. + control compilation and installation of the executable.  However, as a
  139. + special exception, the source code distributed need not include
  140. + anything that is normally distributed (in either source or binary
  141. + form) with the major components (compiler, kernel, and so on) of the
  142. + operating system on which the executable runs, unless that component
  143. + itself accompanies the executable.
  144. + If distribution of executable or object code is made by offering
  145. + access to copy from a designated place, then offering equivalent
  146. + access to copy the source code from the same place counts as
  147. + distribution of the source code, even though third parties are not
  148. + compelled to copy the source along with the object code.
  149. +   4. You may not copy, modify, sublicense, or distribute the Program
  150. + except as expressly provided under this License.  Any attempt
  151. + otherwise to copy, modify, sublicense or distribute the Program is
  152. + void, and will automatically terminate your rights under this License.
  153. + However, parties who have received copies, or rights, from you under
  154. + this License will not have their licenses terminated so long as such
  155. + parties remain in full compliance.
  156. +   5. You are not required to accept this License, since you have not
  157. + signed it.  However, nothing else grants you permission to modify or
  158. + distribute the Program or its derivative works.  These actions are
  159. + prohibited by law if you do not accept this License.  Therefore, by
  160. + modifying or distributing the Program (or any work based on the
  161. + Program), you indicate your acceptance of this License to do so, and
  162. + all its terms and conditions for copying, distributing or modifying
  163. + the Program or works based on it.
  164. +   6. Each time you redistribute the Program (or any work based on the
  165. + Program), the recipient automatically receives a license from the
  166. + original licensor to copy, distribute or modify the Program subject to
  167. + these terms and conditions.  You may not impose any further
  168. + restrictions on the recipients' exercise of the rights granted herein.
  169. + You are not responsible for enforcing compliance by third parties to
  170. + this License.
  171. +   7. If, as a consequence of a court judgment or allegation of patent
  172. + infringement or for any other reason (not limited to patent issues),
  173. + conditions are imposed on you (whether by court order, agreement or
  174. + otherwise) that contradict the conditions of this License, they do not
  175. + excuse you from the conditions of this License.  If you cannot
  176. + distribute so as to satisfy simultaneously your obligations under this
  177. + License and any other pertinent obligations, then as a consequence you
  178. + may not distribute the Program at all.  For example, if a patent
  179. + license would not permit royalty-free redistribution of the Program by
  180. + all those who receive copies directly or indirectly through you, then
  181. + the only way you could satisfy both it and this License would be to
  182. + refrain entirely from distribution of the Program.
  183. + If any portion of this section is held invalid or unenforceable under
  184. + any particular circumstance, the balance of the section is intended to
  185. + apply and the section as a whole is intended to apply in other
  186. + circumstances.
  187. + It is not the purpose of this section to induce you to infringe any
  188. + patents or other property right claims or to contest validity of any
  189. + such claims; this section has the sole purpose of protecting the
  190. + integrity of the free software distribution system, which is
  191. + implemented by public license practices.  Many people have made
  192. + generous contributions to the wide range of software distributed
  193. + through that system in reliance on consistent application of that
  194. + system; it is up to the author/donor to decide if he or she is willing
  195. + to distribute software through any other system and a licensee cannot
  196. + impose that choice.
  197. + This section is intended to make thoroughly clear what is believed to
  198. + be a consequence of the rest of this License.
  199. +   8. If the distribution and/or use of the Program is restricted in
  200. + certain countries either by patents or by copyrighted interfaces, the
  201. + original copyright holder who places the Program under this License
  202. + may add an explicit geographical distribution limitation excluding
  203. + those countries, so that distribution is permitted only in or among
  204. + countries not thus excluded.  In such case, this License incorporates
  205. + the limitation as if written in the body of this License.
  206. +   9. The Free Software Foundation may publish revised and/or new versions
  207. + of the General Public License from time to time.  Such new versions will
  208. + be similar in spirit to the present version, but may differ in detail to
  209. + address new problems or concerns.
  210. + Each version is given a distinguishing version number.  If the Program
  211. + specifies a version number of this License which applies to it and "any
  212. + later version", you have the option of following the terms and conditions
  213. + either of that version or of any later version published by the Free
  214. + Software Foundation.  If the Program does not specify a version number of
  215. + this License, you may choose any version ever published by the Free Software
  216. + Foundation.
  217. +   10. If you wish to incorporate parts of the Program into other free
  218. + programs whose distribution conditions are different, write to the author
  219. + to ask for permission.  For software which is copyrighted by the Free
  220. + Software Foundation, write to the Free Software Foundation; we sometimes
  221. + make exceptions for this.  Our decision will be guided by the two goals
  222. + of preserving the free status of all derivatives of our free software and
  223. + of promoting the sharing and reuse of software generally.
  224. +                 NO WARRANTY
  225. +   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  226. + FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  227. + OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  228. + PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  229. + OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  230. + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
  231. + TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  232. + PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  233. + REPAIR OR CORRECTION.
  234. +   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  235. + WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  236. + REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  237. + INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  238. + OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  239. + TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  240. + YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  241. + PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  242. + POSSIBILITY OF SUCH DAMAGES.
  243. +              END OF TERMS AND CONDITIONS
  244. +     Appendix: How to Apply These Terms to Your New Programs
  245. +   If you develop a new program, and you want it to be of the greatest
  246. + possible use to the public, the best way to achieve this is to make it
  247. + free software which everyone can redistribute and change under these terms.
  248. +   To do so, attach the following notices to the program.  It is safest
  249. + to attach them to the start of each source file to most effectively
  250. + convey the exclusion of warranty; and each file should have at least
  251. + the "copyright" line and a pointer to where the full notice is found.
  252. +     <one line to give the program's name and a brief idea of what it does.>
  253. +     Copyright (C) 19yy  <name of author>
  254. +     This program is free software; you can redistribute it and/or modify
  255. +     it under the terms of the GNU General Public License as published by
  256. +     the Free Software Foundation; either version 2 of the License, or
  257. +     (at your option) any later version.
  258. +     This program is distributed in the hope that it will be useful,
  259. +     but WITHOUT ANY WARRANTY; without even the implied warranty of
  260. +     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  261. +     GNU General Public License for more details.
  262. +     You should have received a copy of the GNU General Public License
  263. +     along with this program; if not, write to the Free Software
  264. +     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  265. + Also add information on how to contact you by electronic and paper mail.
  266. + If the program is interactive, make it output a short notice like this
  267. + when it starts in an interactive mode:
  268. +     Gnomovision version 69, Copyright (C) 19yy name of author
  269. +     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  270. +     This is free software, and you are welcome to redistribute it
  271. +     under certain conditions; type `show c' for details.
  272. + The hypothetical commands `show w' and `show c' should show the appropriate
  273. + parts of the General Public License.  Of course, the commands you use may
  274. + be called something other than `show w' and `show c'; they could even be
  275. + mouse-clicks or menu items--whatever suits your program.
  276. + You should also get your employer (if you work as a programmer) or your
  277. + school, if any, to sign a "copyright disclaimer" for the program, if
  278. + necessary.  Here is a sample; alter the names:
  279. +   Yoyodyne, Inc., hereby disclaims all copyright interest in the program
  280. +   `Gnomovision' (which makes passes at compilers) written by James Hacker.
  281. +   <signature of Ty Coon>, 1 April 1989
  282. +   Ty Coon, President of Vice
  283. + This General Public License does not permit incorporating your program into
  284. + proprietary programs.  If your program is a subroutine library, you may
  285. + consider it more useful to permit linking proprietary applications with the
  286. + library.  If this is what you want to do, use the GNU Library General
  287. + Public License instead of this License.
  288. diff -rc --new-file rcs-5.6.0.1/Makefile.in /gnu/src/amiga/rcs-5.6.0.1/Makefile.in
  289. *** rcs-5.6.0.1/Makefile.in    Thu Jan  1 00:00:00 1970
  290. --- /gnu/src/amiga/rcs-5.6.0.1/Makefile.in    Sun Jul 10 10:31:46 1994
  291. ***************
  292. *** 0 ****
  293. --- 1,19 ----
  294. + SUBDIR=    src man
  295. + all: ${SUBDIR}
  296. + ${SUBDIR}: FRC
  297. +     @cd $@; make ${MFLAGS}
  298. + install:
  299. +     @for i in ${SUBDIR}; do \
  300. +         (cd $$i; make ${MFLAGS} install); \
  301. +     done
  302. + clean:
  303. +     @for i in ${SUBDIR}; do \
  304. +         (cd $$i; make ${MFLAGS} clean); \
  305. +     done
  306. + FRC:
  307. diff -rc --new-file rcs-5.6.0.1/Product-Info /gnu/src/amiga/rcs-5.6.0.1/Product-Info
  308. *** rcs-5.6.0.1/Product-Info    Thu Jan  1 00:00:00 1970
  309. --- /gnu/src/amiga/rcs-5.6.0.1/Product-Info    Tue Jul 12 17:43:07 1994
  310. ***************
  311. *** 0 ****
  312. --- 1,22 ----
  313. + .name
  314. + rcs
  315. + .fullname
  316. + Revision Control System
  317. + .type
  318. + Programmer Tool
  319. + .short
  320. + Revision Control System
  321. + .description
  322. + RCS, the Revision Control System, manages multiple revisions of files.
  323. + RCS can store, retrieve, log, identify, and merge revisions.  It is
  324. + useful for files that are revised frequently, e.g. programs,
  325. + documentation, graphics, and papers.
  326. + .version
  327. + 5.6.0.1
  328. + .author
  329. + Walter F. Tichy
  330. + et. al.
  331. + .distribution
  332. + GNU Public License
  333. + .described-by
  334. + Fred Fish (fnf@amigalib.com)
  335. diff -rc --new-file rcs-5.6.0.1/configure /gnu/src/amiga/rcs-5.6.0.1/configure
  336. *** rcs-5.6.0.1/configure    Thu Jan  1 00:00:00 1970
  337. --- /gnu/src/amiga/rcs-5.6.0.1/configure    Mon May  2 19:48:17 1994
  338. ***************
  339. *** 0 ****
  340. --- 1,623 ----
  341. + #!/bin/sh
  342. + # Guess values for system-dependent variables and create Makefiles.
  343. + # Generated automatically using autoconf version 1.9 
  344. + # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  345. + # This configure script is free software; you can redistribute it and/or
  346. + # modify it under the terms of the GNU General Public License as published
  347. + # by the Free Software Foundation; either version 2, or (at your option)
  348. + # any later version.
  349. + # This script is distributed in the hope that it will be useful, but
  350. + # WITHOUT ANY WARRANTY; without even the implied warranty of
  351. + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  352. + # Public License for more details.
  353. + # You should have received a copy of the GNU General Public License
  354. + # along with this program; if not, write to the Free Software
  355. + # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  356. + # Save the original args to write them into config.status later.
  357. + configure_args="$*"
  358. + # Only options that might do something get documented.
  359. + ac_usage="Usage: configure [options] [host]
  360. + Options: [defaults in brackets after descriptions]
  361. + --build=BUILD        configure for building on BUILD [BUILD=HOST]
  362. + --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  363. + --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  364. + --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  365. + --help            print this message
  366. + --host=HOST        configure for HOST [guessed]
  367. + --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  368. + --quiet, --silent    do not print \`checking for...' messages
  369. + --srcdir=DIR        find the sources in DIR [configure dir or ..]
  370. + --target=TARGET        configure for TARGET [TARGET=HOST]
  371. + --verbose        print results of checks
  372. + --version        print the version of autoconf that created configure
  373. + --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  374. + --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  375. + --x-includes=DIR    X include files are in DIR
  376. + --x-libraries=DIR    X library files are in DIR"
  377. + # Initialize some variables set by options.
  378. + # The variables have the same names as the options, with
  379. + # dashes changed to underlines.
  380. + build=NONE
  381. + exec_prefix=
  382. + host=NONE
  383. + no_create=
  384. + nonopt=NONE
  385. + norecursion=
  386. + prefix=
  387. + program_prefix=
  388. + program_suffix=
  389. + program_transform_name=
  390. + silent=
  391. + srcdir=
  392. + target=NONE
  393. + verbose=
  394. + x_includes=
  395. + x_libraries=
  396. + ac_prev=
  397. + for ac_option
  398. + do
  399. +   # If the previous option needs an argument, assign it.
  400. +   if test -n "$ac_prev"; then
  401. +     eval "$ac_prev=\$ac_option"
  402. +     ac_prev=
  403. +     continue
  404. +   fi
  405. +   # Accept (but ignore some of) the important Cygnus configure
  406. +   # options, so we can diagnose typos.
  407. +   case "$ac_option" in
  408. +   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  409. +   *) ac_optarg= ;;
  410. +   esac
  411. +   case "$ac_option" in
  412. +   -build | --build | --buil | --bui | --bu | --b)
  413. +     ac_prev=build ;;
  414. +   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  415. +     build="$ac_optarg" ;;
  416. +   -disable-* | --disable-*)
  417. +     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  418. +     # Reject names that aren't valid shell variable names.
  419. +     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  420. +       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  421. +     fi
  422. +     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  423. +     eval "enable_${ac_feature}=no" ;;
  424. +   -enable-* | --enable-*)
  425. +     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  426. +     # Reject names that aren't valid shell variable names.
  427. +     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  428. +       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  429. +     fi
  430. +     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  431. +     case "$ac_option" in
  432. +       *=*) ;;
  433. +       *) ac_optarg=yes ;;
  434. +     esac
  435. +     eval "enable_${ac_feature}='$ac_optarg'" ;;
  436. +   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  437. +   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  438. +   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  439. +   | --exec | --exe | --ex)
  440. +     ac_prev=exec_prefix ;;
  441. +   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  442. +   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  443. +   | --exec=* | --exe=* | --ex=*)
  444. +     exec_prefix="$ac_optarg" ;;
  445. +   -gas | --gas | --ga | --g)
  446. +     with_gas=yes ;; # Obsolete; use --with-gas.
  447. +   -help | --help | --hel | --he)
  448. +     cat << EOF
  449. + $ac_usage
  450. + EOF
  451. +     exit 0 ;;
  452. +   -host | --host | --hos | --ho)
  453. +     ac_prev=host ;;
  454. +   -host=* | --host=* | --hos=* | --ho=*)
  455. +     host="$ac_optarg" ;;
  456. +   -nfp | --nfp | --nf)
  457. +     with_fp=no ;; # Obsolete; use --without-fp.
  458. +   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  459. +   | --no-cr | --no-c)
  460. +     no_create=yes ;;
  461. +   -norecursion | --norecursion | --norecursio | --norecursi \
  462. +   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  463. +     norecursion=yes ;;
  464. +   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  465. +     ac_prev=prefix ;;
  466. +   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  467. +     prefix="$ac_optarg" ;;
  468. +   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  469. +   | --program-pre | --program-pr | --program-p)
  470. +     ac_prev=program_prefix ;;
  471. +   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  472. +   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  473. +     program_prefix="$ac_optarg" ;;
  474. +   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  475. +   | --program-suf | --program-su | --program-s)
  476. +     ac_prev=program_suffix ;;
  477. +   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  478. +   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  479. +     program_suffix="$ac_optarg" ;;
  480. +   -program-transform-name | --program-transform-name \
  481. +   | --program-transform-nam | --program-transform-na \
  482. +   | --program-transform-n | --program-transform- \
  483. +   | --program-transform | --program-transfor \
  484. +   | --program-transfo | --program-transf \
  485. +   | --program-trans | --program-tran \
  486. +   | --progr-tra | --program-tr | --program-t)
  487. +     ac_prev=program_transform_name ;;
  488. +   -program-transform-name=* | --program-transform-name=* \
  489. +   | --program-transform-nam=* | --program-transform-na=* \
  490. +   | --program-transform-n=* | --program-transform-=* \
  491. +   | --program-transform=* | --program-transfor=* \
  492. +   | --program-transfo=* | --program-transf=* \
  493. +   | --program-trans=* | --program-tran=* \
  494. +   | --progr-tra=* | --program-tr=* | --program-t=*)
  495. +     program_transform_name="$ac_optarg" ;;
  496. +   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  497. +   | -silent | --silent | --silen | --sile | --sil)
  498. +     silent=yes ;;
  499. +   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  500. +     ac_prev=srcdir ;;
  501. +   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  502. +     srcdir="$ac_optarg" ;;
  503. +   -target | --target | --targe | --targ | --tar | --ta | --t)
  504. +     ac_prev=target ;;
  505. +   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. +     target="$ac_optarg" ;;
  507. +   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. +     verbose=yes ;;
  509. +   -version | --version | --versio | --versi | --vers)
  510. +     /bin/echo "configure generated by autoconf version 1.9"
  511. +     exit 0 ;;
  512. +   -with-* | --with-*)
  513. +     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  514. +     # Reject names that aren't valid shell variable names.
  515. +     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  516. +       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  517. +     fi
  518. +     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  519. +     case "$ac_option" in
  520. +       *=*) ;;
  521. +       *) ac_optarg=yes ;;
  522. +     esac
  523. +     eval "with_${ac_package}='$ac_optarg'" ;;
  524. +   -without-* | --without-*)
  525. +     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  526. +     # Reject names that aren't valid shell variable names.
  527. +     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  528. +       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  529. +     fi
  530. +     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  531. +     eval "with_${ac_package}=no" ;;
  532. +   --x) with_x=yes ;; # Obsolete; use --with-x.
  533. +   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  534. +   | --x-incl | --x-inc | --x-in | --x-i)
  535. +     ac_prev=x_includes ;;
  536. +   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  537. +   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  538. +     x_includes="$ac_optarg" ;;
  539. +   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  540. +   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  541. +     ac_prev=x_libraries ;;
  542. +   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  543. +   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  544. +     x_libraries="$ac_optarg" ;;
  545. +   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  546. +     ;;
  547. +   *) 
  548. +     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  549. +       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  550. +     fi
  551. +     if test "x$nonopt" != xNONE; then
  552. +       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  553. +     fi
  554. +     nonopt="$ac_option"
  555. +     ;;
  556. +   esac
  557. + done
  558. + if test -n "$ac_prev"; then
  559. +   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  560. + fi
  561. + trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  562. + trap 'rm -fr confdefs* $ac_clean_files' 0
  563. + # Save the original args if we used an alternate arg parser.
  564. + ac_configure_temp="${configure_args-$*}"
  565. + # Strip out --no-create and --norecursion so they don't pile up.
  566. + configure_args=
  567. + for ac_arg in $ac_configure_temp; do
  568. +   case "$ac_arg" in
  569. +   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  570. +   | --no-cr | --no-c) ;;
  571. +   -norecursion | --norecursion | --norecursio | --norecursi \
  572. +   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  573. +   *) configure_args="$configure_args $ac_arg" ;;
  574. +   esac
  575. + done
  576. + # NLS nuisances.
  577. + # These must not be set unconditionally because not all systems understand
  578. + # e.g. LANG=C (notably SCO).
  579. + if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  580. + if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  581. + # confdefs.h avoids OS command line length limits that DEFS can exceed.
  582. + rm -rf conftest* confdefs.h
  583. + # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  584. + /bin/echo > confdefs.h
  585. + # A filename unique to this package, relative to the directory that
  586. + # configure is in, which we can look for to find out if srcdir is correct.
  587. + ac_unique_file=rcs.ms
  588. + # Find the source files, if location was not specified.
  589. + if test -z "$srcdir"; then
  590. +   ac_srcdir_defaulted=yes
  591. +   # Try the directory containing this script, then `..'.
  592. +   ac_prog=$0
  593. +   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  594. +   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  595. +   srcdir=$ac_confdir
  596. +   if test ! -r $srcdir/$ac_unique_file; then
  597. +     srcdir=..
  598. +   fi
  599. + fi
  600. + if test ! -r $srcdir/$ac_unique_file; then
  601. +   if test x$ac_srcdir_defaulted = xyes; then
  602. +     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  603. +   else
  604. +     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  605. +   fi
  606. + fi
  607. + ac_ext=c
  608. + ac_cpp='${CPP} $CFLAGS'
  609. + ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  610. + # We want these before the checks, so the checks can modify their values.
  611. + test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  612. + test -z "$LDFLAGS" && LDFLAGS=
  613. + if test -z "$CC"; then
  614. +   # Extract the first word of `gcc', so it can be a program name with args.
  615. +   set ac_dummy gcc; ac_word=$2
  616. +   test -n "$silent" || /bin/echo "checking for $ac_word"
  617. +   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  618. +   for ac_dir in $PATH; do
  619. +     test -z "$ac_dir" && ac_dir=.
  620. +     if test -f $ac_dir/$ac_word; then
  621. +       CC="gcc"
  622. +       break
  623. +     fi
  624. +   done
  625. +   IFS="$ac_save_ifs"
  626. + fi
  627. + test -z "$CC" && CC="cc"
  628. + test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  629. + # Find out if we are using GNU C, under whatever name.
  630. + cat > conftest.c <<EOF
  631. + #ifdef __GNUC__
  632. +   yes
  633. + #endif
  634. + EOF
  635. + ${CC-cc} -E conftest.c > conftest.out 2>&1
  636. + if egrep yes conftest.out >/dev/null 2>&1; then
  637. +   GCC=1 # For later tests.
  638. + fi
  639. + rm -f conftest*
  640. + # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  641. + test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  642. + test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  643. + if test -z "$CPP"; then
  644. +   # This must be in double quotes, not single quotes, because CPP may get
  645. +   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  646. +   # make.  It must be expanded now.
  647. +   CPP="${CC-cc} -E"
  648. +   cat > conftest.${ac_ext} <<EOF
  649. + #include "confdefs.h"
  650. + #include <stdio.h>
  651. + Syntax Error
  652. + EOF
  653. + # Some shells (Coherent) do redirections in the wrong order, so need
  654. + # the parens.
  655. + ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  656. + if test -z "$ac_err"; then
  657. +   :
  658. + else
  659. +   rm -rf conftest*
  660. +   CPP="${CC-cc} -E -traditional-cpp"
  661. +   cat > conftest.${ac_ext} <<EOF
  662. + #include "confdefs.h"
  663. + #include <stdio.h>
  664. + Syntax Error
  665. + EOF
  666. + # Some shells (Coherent) do redirections in the wrong order, so need
  667. + # the parens.
  668. + ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  669. + if test -z "$ac_err"; then
  670. +   :
  671. + else
  672. +   rm -rf conftest*
  673. +   CPP=/lib/cpp
  674. + fi
  675. + rm -f conftest*
  676. + fi
  677. + rm -f conftest*
  678. + fi
  679. + test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  680. + if test -n "$GCC"; then
  681. +   test -n "$silent" || /bin/echo "checking whether -traditional is needed"
  682. +   ac_pattern="Autoconf.*'x'"
  683. +   ac_prog='#include <sgtty.h>
  684. + Autoconf TIOCGETP'
  685. +   cat > conftest.${ac_ext} <<EOF
  686. + #include "confdefs.h"
  687. + $ac_prog
  688. + EOF
  689. + eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  690. + if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  691. +   rm -rf conftest*
  692. +   ac_need_trad=1
  693. + fi
  694. + rm -f conftest*
  695. +   if test -z "$ac_need_trad"; then
  696. +     ac_prog='#include <termio.h>
  697. + Autoconf TCGETA'
  698. +     cat > conftest.${ac_ext} <<EOF
  699. + #include "confdefs.h"
  700. + $ac_prog
  701. + EOF
  702. + eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  703. + if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  704. +   rm -rf conftest*
  705. +   ac_need_trad=1
  706. + fi
  707. + rm -f conftest*
  708. +   fi
  709. +   test -n "$ac_need_trad" && CC="$CC -traditional"
  710. + fi
  711. + # Make sure to not get the incompatible SysV /etc/install and
  712. + # /usr/sbin/install, which might be in PATH before a BSD-like install,
  713. + # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  714. + # or the AFS install, which mishandles nonexistent args, or
  715. + # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  716. + # `staff', or /sbin/install on IRIX which has incompatible command-line
  717. + # syntax.  Sigh.
  718. + #
  719. + #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  720. + #     anyway.
  721. + # This turns out not to be true, so the mere pathname isn't an indication
  722. + # of whether the program works.  What we really need is a set of tests for
  723. + # the install program to see if it actually works in all the required ways.
  724. + #
  725. + # Avoid using ./install, which might have been erroneously created
  726. + # by make from ./install.sh.
  727. + if test "z${INSTALL}" = "z" ; then
  728. +   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  729. +   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  730. +   for ac_dir in $PATH; do
  731. +     case "$ac_dir" in
  732. +     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  733. +     *)
  734. +       # OSF1 and SCO ODT 3.0 have their own names for install.
  735. +       for ac_prog in installbsd scoinst install; do
  736. +         if test -f $ac_dir/$ac_prog; then
  737. +       if test $ac_prog = install &&
  738. +             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  739. +         # AIX install.  It has an incompatible calling convention.
  740. +         # OSF/1 installbsd also uses dspmsg, but is usable.
  741. +         :
  742. +       else
  743. +         INSTALL="$ac_dir/$ac_prog -c"
  744. +         INSTALL_PROGRAM='${INSTALL}'
  745. +         INSTALL_DATA='${INSTALL} -m 644'
  746. +         break 2
  747. +       fi
  748. +     fi
  749. +       done
  750. +       ;;
  751. +     esac
  752. +   done
  753. +   IFS="$ac_save_ifs"
  754. + fi
  755. + if test -z "$INSTALL"; then
  756. +   if test -f ${srcdir}/install.sh; then
  757. +     # As a last resort, use the slow shell script.
  758. +     INSTALL='@top_srcdir@/install.sh -c'
  759. +   else
  760. +     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  761. +     INSTALL=cp
  762. +   fi
  763. + fi
  764. + test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  765. + # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  766. + # It thinks the first close brace ends the variable substitution.
  767. + test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  768. + test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  769. + test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  770. + test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  771. + # Set default prefixes.
  772. + if test -n "$prefix"; then
  773. +   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  774. +   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  775. + fi
  776. + if test -n "$exec_prefix"; then
  777. +   ac_prsub="$ac_prsub
  778. + s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  779. + fi
  780. + # Any assignment to VPATH causes Sun make to only execute
  781. + # the first set of double-colon rules, so remove it if not needed.
  782. + # If there is a colon in the path, we need to keep it.
  783. + if test "x$srcdir" = x.; then
  784. +   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  785. + fi
  786. + # Quote sed substitution magic chars in DEFS.
  787. + cat >conftest.def <<EOF
  788. + $DEFS
  789. + EOF
  790. + ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  791. + DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  792. + rm -f conftest.def
  793. + # Substitute for predefined variables.
  794. + trap 'rm -f config.status; exit 1' 1 2 15
  795. + /bin/echo creating config.status
  796. + rm -f config.status
  797. + cat > config.status <<EOF
  798. + #!/bin/sh
  799. + # Generated automatically by configure.
  800. + # Run this file to recreate the current configuration.
  801. + # This directory was configured as follows,
  802. + # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  803. + #
  804. + # $0 $configure_args
  805. + ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  806. + for ac_option
  807. + do
  808. +   case "\$ac_option" in
  809. +   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  810. +     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  811. +     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  812. +   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  813. +     /bin/echo "config.status generated by autoconf version 1.9"
  814. +     exit 0 ;;
  815. +   -help | --help | --hel | --he | --h)
  816. +     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  817. +   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  818. +   esac
  819. + done
  820. + trap 'rm -f Makefile src/Makefile man/Makefile; exit 1' 1 2 15
  821. + CC='$CC'
  822. + CFLAGS='$CFLAGS'
  823. + LDFLAGS='$LDFLAGS'
  824. + CPP='$CPP'
  825. + INSTALL='$INSTALL'
  826. + INSTALL_PROGRAM='$INSTALL_PROGRAM'
  827. + INSTALL_DATA='$INSTALL_DATA'
  828. + LIBS='$LIBS'
  829. + srcdir='$srcdir'
  830. + top_srcdir='$top_srcdir'
  831. + prefix='$prefix'
  832. + exec_prefix='$exec_prefix'
  833. + DEFS='$DEFS'
  834. + ac_prsub='$ac_prsub'
  835. + ac_vpsub='$ac_vpsub'
  836. + extrasub='$extrasub'
  837. + EOF
  838. + cat >> config.status <<\EOF
  839. + ac_given_srcdir=$srcdir
  840. + CONFIG_FILES=${CONFIG_FILES-"Makefile src/Makefile man/Makefile"}
  841. + for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  842. +   # Remove last slash and all that follows it.  Not all systems have dirname.
  843. +   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  844. +   if test "$ac_dir" != "$ac_file"; then
  845. +     # The file is in a subdirectory.
  846. +     test ! -d "$ac_dir" && mkdir "$ac_dir"
  847. +     ac_dir_suffix="/$ac_dir"
  848. +   else
  849. +     ac_dir_suffix=
  850. +   fi
  851. +   # A "../" for each directory in $ac_dir_suffix.
  852. +   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  853. +   case "$ac_given_srcdir" in
  854. +   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  855. +   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  856. +   *) # Relative path.
  857. +     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  858. +     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  859. +   esac
  860. +   /bin/echo creating "$ac_file"
  861. +   rm -f "$ac_file"
  862. +   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  863. +   case "$ac_file" in
  864. +     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  865. +     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  866. +   esac
  867. +   sed -e "
  868. + $ac_prsub
  869. + $ac_vpsub
  870. + $extrasub
  871. + s%@CC@%$CC%g
  872. + s%@CFLAGS@%$CFLAGS%g
  873. + s%@LDFLAGS@%$LDFLAGS%g
  874. + s%@CPP@%$CPP%g
  875. + s%@INSTALL@%$INSTALL%g
  876. + s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  877. + s%@INSTALL_DATA@%$INSTALL_DATA%g
  878. + s%@LIBS@%$LIBS%g
  879. + s%@srcdir@%$srcdir%g
  880. + s%@top_srcdir@%$top_srcdir%g
  881. + s%@prefix@%$prefix%g
  882. + s%@exec_prefix@%$exec_prefix%g
  883. + s%@DEFS@%$DEFS%
  884. + " $ac_given_srcdir/${ac_file}.in >> $ac_file
  885. + fi; done
  886. + exit 0
  887. + EOF
  888. + chmod +x config.status
  889. + test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  890. diff -rc --new-file rcs-5.6.0.1/configure.in /gnu/src/amiga/rcs-5.6.0.1/configure.in
  891. *** rcs-5.6.0.1/configure.in    Thu Jan  1 00:00:00 1970
  892. --- /gnu/src/amiga/rcs-5.6.0.1/configure.in    Mon May  2 19:48:17 1994
  893. ***************
  894. *** 0 ****
  895. --- 1,20 ----
  896. + dnl Process this file with autoconf to produce a configure script.
  897. + AC_INIT(rcs.ms)
  898. + # We want these before the checks, so the checks can modify their values.
  899. + test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  900. + test -z "$LDFLAGS" && LDFLAGS=
  901. + AC_PROG_CC
  902. + # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  903. + test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  904. + AC_SUBST(CFLAGS)dnl
  905. + AC_SUBST(LDFLAGS)dnl
  906. + AC_PROG_CPP
  907. + AC_GCC_TRADITIONAL
  908. + AC_PROG_INSTALL
  909. + AC_OUTPUT(Makefile src/Makefile man/Makefile)
  910. diff -rc --new-file rcs-5.6.0.1/man/Makefile /gnu/src/amiga/rcs-5.6.0.1/man/Makefile
  911. *** rcs-5.6.0.1/man/Makefile    Fri Nov 22 15:25:19 1991
  912. --- /gnu/src/amiga/rcs-5.6.0.1/man/Makefile    Thu Feb 24 09:42:47 1994
  913. ***************
  914. *** 2,8 ****
  915.   
  916.   #    $Id: Makefile,v 5.2 1991/08/19 03:13:55 eggert Exp $
  917.   
  918. ! MANDIR = /usr/man
  919.   
  920.   install = install -c -m 444
  921.   
  922. --- 2,8 ----
  923.   
  924.   #    $Id: Makefile,v 5.2 1991/08/19 03:13:55 eggert Exp $
  925.   
  926. ! MANDIR = /gnu/man
  927.   
  928.   install = install -c -m 444
  929.   
  930. diff -rc --new-file rcs-5.6.0.1/man/Makefile.in /gnu/src/amiga/rcs-5.6.0.1/man/Makefile.in
  931. *** rcs-5.6.0.1/man/Makefile.in    Thu Jan  1 00:00:00 1970
  932. --- /gnu/src/amiga/rcs-5.6.0.1/man/Makefile.in    Tue May  3 14:30:51 1994
  933. ***************
  934. *** 0 ****
  935. --- 1,39 ----
  936. + # Make RCS man pages.
  937. + #    $Id: Makefile,v 5.2 1991/08/19 03:13:55 eggert Exp $
  938. + #### Start of system configuration section. ####
  939. + VPATH = @srcdir@
  940. + srcdir = @srcdir@
  941. + # Common prefix for machine-independent installed files.
  942. + prefix = /gnu
  943. + # Directory to install the Info files in.
  944. + infodir = $(prefix)/info
  945. + # Directory to install the man page in.
  946. + mandir1 = $(prefix)/man/man1
  947. + mandir5 = $(prefix)/man/man5
  948. + # Program to install data like man pages.
  949. + INSTALL_DATA = @INSTALL_DATA@
  950. + # Generic install program.
  951. + INSTALL = @INSTALL@
  952. + #### End of system configuration section. ####
  953. + all clean ::
  954. + install ::
  955. +     $(INSTALL_DATA) $(srcdir)/ci.1 $(mandir1)/ci.1
  956. +     $(INSTALL_DATA) $(srcdir)/co.1 $(mandir1)/co.1
  957. +     $(INSTALL_DATA) $(srcdir)/ident.1 $(mandir1)/ident.1
  958. +     $(INSTALL_DATA) $(srcdir)/merge.1 $(mandir1)/merge.1
  959. +     $(INSTALL_DATA) $(srcdir)/rcs.1 $(mandir1)/rcs.1
  960. +     $(INSTALL_DATA) $(srcdir)/rcsdiff.1 $(mandir1)/rcsdiff.1
  961. +     $(INSTALL_DATA) $(srcdir)/rcsintro.1 $(mandir1)/rcsintro.1
  962. +     $(INSTALL_DATA) $(srcdir)/rcsmerge.1 $(mandir1)/rcsmerg.1
  963. +     $(INSTALL_DATA) $(srcdir)/rlog.1 $(mandir1)/rlog.1
  964. +     $(INSTALL_DATA) $(srcdir)/rcsfile.5 $(mandir5)/rcsfile.5
  965. diff -rc --new-file rcs-5.6.0.1/src/Makefile /gnu/src/amiga/rcs-5.6.0.1/src/Makefile
  966. *** rcs-5.6.0.1/src/Makefile    Thu Mar 25 04:36:22 1993
  967. --- /gnu/src/amiga/rcs-5.6.0.1/src/Makefile    Thu Feb 24 09:37:30 1994
  968. ***************
  969. *** 32,45 ****
  970.   
  971.   #(Unix
  972.   
  973. !  CC = cc
  974.   #CC = bsdcc -qlanglvl=ansi# AIX
  975.   #CC = cc -g# debug
  976.   #CC = gcc -g# GCC
  977.   
  978.    CC_D =
  979.   
  980. !  CC_O = -O
  981.   #CC_O =# debug
  982.   #CC_O = -O -R# BSD compilers that do not support `const'
  983.   #CC_O = -O -fdelayed-branch -finline-functions -fomit-frame-pointer -fstrength-reduce# GCC options for brave souls
  984. --- 32,45 ----
  985.   
  986.   #(Unix
  987.   
  988. !  CC = gcc
  989.   #CC = bsdcc -qlanglvl=ansi# AIX
  990.   #CC = cc -g# debug
  991.   #CC = gcc -g# GCC
  992.   
  993.    CC_D =
  994.   
  995. !  CC_O = -O2
  996.   #CC_O =# debug
  997.   #CC_O = -O -R# BSD compilers that do not support `const'
  998.   #CC_O = -O -fdelayed-branch -finline-functions -fomit-frame-pointer -fstrength-reduce# GCC options for brave souls
  999. ***************
  1000. *** 55,61 ****
  1001.    DIFF = $(DIFFPREFIX)diff
  1002.   #DIFF = $(DIFFPREFIX)rdiff# short for ``RCS diff'' on some hosts
  1003.   
  1004. !  DIFFPREFIX = /usr/local/gnu/# GNU diff -- must be version 1.15 or later
  1005.   #DIFFPREFIX = /bin/# traditional diff
  1006.   #DIFFPREFIX = /usr/bin/# traditional diff (alternate name)
  1007.   
  1008. --- 55,61 ----
  1009.    DIFF = $(DIFFPREFIX)diff
  1010.   #DIFF = $(DIFFPREFIX)rdiff# short for ``RCS diff'' on some hosts
  1011.   
  1012. !  DIFFPREFIX = /gnu/bin/# GNU diff -- must be version 1.15 or later
  1013.   #DIFFPREFIX = /bin/# traditional diff
  1014.   #DIFFPREFIX = /usr/bin/# traditional diff (alternate name)
  1015.   
  1016. ***************
  1017. *** 84,94 ****
  1018.    DIFF3_BIN = 1# GNU diff
  1019.   #DIFF3_BIN = 0# traditional diff
  1020.   
  1021. !  ED = /bin/ed
  1022.   
  1023.    EXECUTABLE_GROUP = staff# BSD unix installation
  1024.    EXECUTABLE_PERMISSIONS = -g $(EXECUTABLE_GROUP) -m 775# BSD unix installation
  1025. !  INSTALL = install -c $(EXECUTABLE_PERMISSIONS)# BSD unix installation
  1026.   #INSTALL = cp# traditional Unix installation
  1027.   
  1028.    LDFLAGS =
  1029. --- 84,94 ----
  1030.    DIFF3_BIN = 1# GNU diff
  1031.   #DIFF3_BIN = 0# traditional diff
  1032.   
  1033. !  ED = /gnu/bin/emacs
  1034.   
  1035.    EXECUTABLE_GROUP = staff# BSD unix installation
  1036.    EXECUTABLE_PERMISSIONS = -g $(EXECUTABLE_GROUP) -m 775# BSD unix installation
  1037. !  INSTALL = /gnu/bin/install -c $(EXECUTABLE_PERMISSIONS)# BSD unix installation
  1038.   #INSTALL = cp# traditional Unix installation
  1039.   
  1040.    LDFLAGS =
  1041. ***************
  1042. *** 104,110 ****
  1043.   
  1044.    OTHER_OBJECT =
  1045.   
  1046. !  RCSDIR = /usr/local/bin
  1047.   #RCSDIR = /bin
  1048.   #RCSDIR = /usr/bin
  1049.   
  1050. --- 104,110 ----
  1051.   
  1052.    OTHER_OBJECT =
  1053.   
  1054. !  RCSDIR = /gnu/bin
  1055.   #RCSDIR = /bin
  1056.   #RCSDIR = /usr/bin
  1057.   
  1058. ***************
  1059. *** 113,119 ****
  1060.   
  1061.    REMOVE = rm -f
  1062.   
  1063. !  SENDMAIL = "/bin/mail"
  1064.   #SENDMAIL = "/etc/delivermail", "-w"
  1065.   #SENDMAIL = "/usr/bin/mail"
  1066.   #SENDMAIL = "/usr/lib/sendmail"
  1067. --- 113,119 ----
  1068.   
  1069.    REMOVE = rm -f
  1070.   
  1071. !  SENDMAIL =
  1072.   #SENDMAIL = "/etc/delivermail", "-w"
  1073.   #SENDMAIL = "/usr/bin/mail"
  1074.   #SENDMAIL = "/usr/lib/sendmail"
  1075. ***************
  1076. *** 175,181 ****
  1077.       LDFLAGS='$(LDFLAGS)' LDLIBS='$(LDLIBS)' \
  1078.       RCSPREFIX='$(RCSPREFIX)' \
  1079.       SENDMAIL='$(SENDMAIL)' \
  1080. !     sh -x conf.sh >a.h 2>conf.error
  1081.       mv a.h $@
  1082.       $(REMOVE) a.*
  1083.   #)
  1084. --- 175,181 ----
  1085.       LDFLAGS='$(LDFLAGS)' LDLIBS='$(LDLIBS)' \
  1086.       RCSPREFIX='$(RCSPREFIX)' \
  1087.       SENDMAIL='$(SENDMAIL)' \
  1088. !     sh -x conf.sh 2>conf.error
  1089.       mv a.h $@
  1090.       $(REMOVE) a.*
  1091.   #)
  1092. diff -rc --new-file rcs-5.6.0.1/src/Makefile.in /gnu/src/amiga/rcs-5.6.0.1/src/Makefile.in
  1093. *** rcs-5.6.0.1/src/Makefile.in    Thu Jan  1 00:00:00 1970
  1094. --- /gnu/src/amiga/rcs-5.6.0.1/src/Makefile.in    Tue May  3 14:28:05 1994
  1095. ***************
  1096. *** 0 ****
  1097. --- 1,178 ----
  1098. + # $Id: Makefile,v 5.16.0.1 1993/03/25 04:36:22 eggert Exp $
  1099. + # Copyright (C) 1982, 1988, 1989 Walter Tichy
  1100. + # Copyright 1990, 1991 by Paul Eggert
  1101. + #   Distributed under license by the Free Software Foundation, Inc.
  1102. + #
  1103. + # This file is part of RCS.
  1104. + #
  1105. + # RCS is free software; you can redistribute it and/or modify
  1106. + # it under the terms of the GNU General Public License as published by
  1107. + # the Free Software Foundation; either version 2, or (at your option)
  1108. + # any later version.
  1109. + #
  1110. + # RCS is distributed in the hope that it will be useful,
  1111. + # but WITHOUT ANY WARRANTY; without even the implied warranty of
  1112. + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1113. + # GNU General Public License for more details.
  1114. + #
  1115. + # You should have received a copy of the GNU General Public License
  1116. + # along with RCS; see the file COPYING.  If not, write to
  1117. + # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  1118. + #
  1119. + # Report problems and direct all questions to:
  1120. + #
  1121. + #    rcs-bugs@cs.purdue.edu
  1122. + #
  1123. + #### Start of system configuration section. ####
  1124. + VPATH =        @srcdir@
  1125. + srcdir =    @srcdir@
  1126. + # Common prefix for machine-independent installed files.
  1127. + prefix =    /gnu
  1128. + # Common prefix for machine-dependent installed files.
  1129. + exec_prefix =    $(prefix)
  1130. + # Directory to install executables in.
  1131. + bindir =    $(exec_prefix)/bin
  1132. + # Program to install executables.
  1133. + INSTALL_PROGRAM = @INSTALL_PROGRAM@
  1134. + # Program to install data like man pages.
  1135. + INSTALL_DATA =    @INSTALL_DATA@
  1136. + # Generic install program.
  1137. + INSTALL =    @INSTALL@
  1138. + CC =        @CC@
  1139. + DEFS =        @DEFS@
  1140. + CFLAGS =    @CFLAGS@
  1141. + LDFLAGS =    @LDFLAGS@
  1142. + LIBS =        @LIBS@
  1143. + SHELL =        /bin/sh
  1144. + LINT =        lint -abchx# traditional and BSD lint
  1145. + MAKE =        make
  1146. + REMOVE =    rm -f
  1147. + #### End of system configuration section. ####
  1148. + SOURCE=        ci.c co.c ident.c maketime.c merge.c merger.c partime.c \
  1149. +         rcs.c rcsclean.c rcsdiff.c rcsedit.c rcsfcmp.c rcsfnms.c \
  1150. +         rcsgen.c rcskeep.c rcskeys.c rcslex.c rcsmap.c rcsmerge.c \
  1151. +         rcsrev.c rcssyn.c rcsutil.c rlog.c
  1152. + OBJECT=        ci.o co.o ident.o maketime.o merge.o merger.o partime.o \
  1153. +         rcs.o rcsclean.o rcsdiff.o rcsedit.o rcsfcmp.o rcsfnms.o \
  1154. +         rcsgen.o rcskeep.o rcskeys.o rcslex.o rcsmap.o rcsmerge.o \
  1155. +         rcsrev.o rcssyn.o rcsutil.o rlog.o
  1156. + CI_OBJ =    ci.o rcslex.o rcssyn.o rcsgen.o rcsedit.o rcskeys.o \
  1157. +         rcsmap.o rcsrev.o rcsutil.o rcsfnms.o partime.o maketime.o \
  1158. +         rcskeep.o rcsfcmp.o $(OTHER_OBJECT)
  1159. + CO_OBJ =    co.o rcslex.o rcssyn.o rcsgen.o rcsedit.o rcskeys.o \
  1160. +         rcsmap.o rcsrev.o rcsutil.o rcsfnms.o partime.o maketime.o \
  1161. +         rcskeep.o $(OTHER_OBJECT)
  1162. + IDENT_OBJ =    ident.o rcsmap.o $(OTHER_OBJECT)
  1163. + MERGE_OBJ =    merge.o merger.o rcsfnms.o rcslex.o rcsmap.o rcsrev.o \
  1164. +         rcssyn.o rcsutil.o rcskeep.o rcskeys.o $(OTHER_OBJECT)
  1165. + RLOG_OBJ =    rlog.o rcslex.o rcsmap.o rcssyn.o rcsrev.o rcsutil.o \
  1166. +         partime.o maketime.o rcsfnms.o rcskeep.o rcskeys.o \
  1167. +         $(OTHER_OBJECT)
  1168. + RCS_OBJ =    rcs.o rcslex.o rcssyn.o rcsrev.o rcsutil.o rcsgen.o \
  1169. +         rcsedit.o rcskeys.o rcsmap.o rcsfnms.o rcskeep.o \
  1170. +         $(OTHER_OBJECT)
  1171. + RCSCLEAN_OBJ =    rcsclean.o rcsedit.o rcsfcmp.o rcsfnms.o rcsgen.o \
  1172. +         rcskeys.o rcslex.o rcsmap.o rcsrev.o rcssyn.o rcsutil.o \
  1173. +         rcskeep.o $(OTHER_OBJECT)
  1174. + RCSDIFF_OBJ =    rcsdiff.o rcsutil.o rcsfnms.o rcsmap.o rcsrev.o rcssyn.o \
  1175. +         rcslex.o maketime.o partime.o rcskeep.o rcskeys.o \
  1176. +         $(OTHER_OBJECT)
  1177. + RCSMERGE_OBJ =    rcsmerge.o merger.o rcsutil.o rcsfnms.o rcsmap.o rcsrev.o \
  1178. +         rcssyn.o rcslex.o rcskeep.o rcskeys.o $(OTHER_OBJECT)
  1179. + RCSCOMMANDS =    ci co ident merge rcs rcsdiff rcsmerge rlog
  1180. + RCSTEST =    PATH=$(RCSDIR):$(bindir)/.:$$PATH sh $(TESTPREFIX)rcstest
  1181. + # "-I." is needed to find conf.h in the build directory.
  1182. + .c.o:
  1183. +         $(CC) -c -I. -I$(srcdir) $(DEFS) $(CFLAGS) $< $(OUTPUT_OPTION)
  1184. + default ::    all
  1185. + all ::        $(RCSCOMMANDS)
  1186. + ci :        $(CI_OBJ)
  1187. +         $(CC) $(LDFLAGS) $(CI_OBJ) $(LIBS) -o $@
  1188. + co :        $(CO_OBJ)
  1189. +         $(CC) $(LDFLAGS) $(CO_OBJ) $(LIBS) -o $@
  1190. + ident :        $(IDENT_OBJ)
  1191. +         $(CC) $(LDFLAGS) $(IDENT_OBJ) $(LIBS) -o $@
  1192. + merge :        $(MERGE_OBJ)
  1193. +         $(CC) $(LDFLAGS) $(MERGE_OBJ) $(LIBS) -o $@
  1194. + rlog :        $(RLOG_OBJ)
  1195. +         $(CC) $(LDFLAGS) $(RLOG_OBJ) $(LIBS) -o $@
  1196. + rcs :        $(RCS_OBJ)
  1197. +         $(CC) $(LDFLAGS) $(RCS_OBJ) $(LIBS) -o $@
  1198. + rcsclean :    $(RCSCLEAN_OBJ)
  1199. +         $(CC) $(LDFLAGS) $(RCSCLEAN_OBJ) $(LIBS) -o $@
  1200. + rcsdiff :    $(RCSDIFF_OBJ)
  1201. +         $(CC) $(LDFLAGS) $(RCSDIFF_OBJ) $(LIBS) -o $@
  1202. + rcsmerge :    $(RCSMERGE_OBJ)
  1203. +         $(CC) $(LDFLAGS) $(RCSMERGE_OBJ) $(LIBS) -o $@
  1204. + lint ::        conf.h
  1205. +         $(LINT) $(CC_D) -Dlint=1 $(SOURCE)
  1206. + $(OBJECT) :     conf.h rcsbase.h
  1207. + install :: all
  1208. +         $(INSTALL_PROGRAM) ci $(bindir)/ci
  1209. +         $(INSTALL_PROGRAM) co $(bindir)/co
  1210. +         $(INSTALL_PROGRAM) ident $(bindir)/ident
  1211. +         $(INSTALL_PROGRAM) merge $(bindir)/merge
  1212. +         $(INSTALL_PROGRAM) rcs $(bindir)/rcs
  1213. +         $(INSTALL_PROGRAM) rcsdiff $(bindir)/rcsdiff
  1214. +         $(INSTALL_PROGRAM) rcsmerge $(bindir)/rcsmerge
  1215. +         $(INSTALL_PROGRAM) rlog $(bindir)/rlog
  1216. + # Install RCS and (if applicable) GNU diff before running these tests.
  1217. + # To test RCS before installing it, see README.
  1218. + installtest ::
  1219. +         $(RCSTEST)
  1220. + installdebug ::
  1221. +         $(RCSTEST) -v
  1222. + clean ::
  1223. +         $(REMOVE) a.* *.o conf.h conf.error
  1224. +         $(REMOVE) $(RCSCOMMANDS) rcsclean
  1225. diff -rc --new-file rcs-5.6.0.1/src/conf.h /gnu/src/amiga/rcs-5.6.0.1/src/conf.h
  1226. *** rcs-5.6.0.1/src/conf.h    Thu Jan  1 00:00:00 1970
  1227. --- /gnu/src/amiga/rcs-5.6.0.1/src/conf.h    Mon May  2 19:47:58 1994
  1228. ***************
  1229. *** 0 ****
  1230. --- 1,498 ----
  1231. + /* ***NOTE***  This file cannot yet be easily generated on the Amiga.  -fnf */
  1232. + /* RCS compile-time configuration */
  1233. +     /* $Id: conf.sh,v 5.14.0.1 1993/03/25 04:24:49 eggert Exp $ */
  1234. + /*
  1235. +  * This file is generated automatically.
  1236. +  * If you edit it by hand your changes may be lost.
  1237. +  * Instead, please try to fix conf.sh,
  1238. +  * and send your fixes to rcs-bugs@cs.purdue.edu.
  1239. +  */
  1240. + #define exitmain(n) return n /* how to exit from main() */
  1241. + /* #define _POSIX_SOURCE */ /* Define this if Posix + strict Standard C.  */
  1242. + #include <errno.h>
  1243. + #include <stdio.h>
  1244. + #include <time.h>
  1245. + /* Comment out #include lines below that do not work.  */
  1246. + #include <sys/types.h>
  1247. + #include <sys/stat.h>
  1248. + #include <dirent.h>
  1249. + #include <fcntl.h>
  1250. + #include <limits.h>
  1251. + #include <pwd.h>
  1252. + #include <signal.h>
  1253. + #include <stdlib.h>
  1254. + #include <string.h>
  1255. + /* #include <sys/mman.h> */
  1256. + #include <sys/wait.h>
  1257. + #include <unistd.h>
  1258. + #include <utime.h>
  1259. + /* #include <vfork.h> */
  1260. + /* Define the following symbols to be 1 or 0.  */
  1261. + #define has_sys_dir_h 1 /* Does #include <sys/dir.h> work?  */
  1262. + #define has_sys_param_h 1 /* Does #include <sys/param.h> work?  */
  1263. + #define has_readlink 1 /* Does readlink() work?  */
  1264. + /* #undef NAME_MAX */ /* Uncomment this if NAME_MAX is broken.  */
  1265. + #if !defined(NAME_MAX) && !defined(_POSIX_NAME_MAX)
  1266. + #    if has_sys_dir_h
  1267. + #        include <sys/dir.h>
  1268. + #    endif
  1269. + #    ifndef NAME_MAX
  1270. + #        ifndef MAXNAMLEN
  1271. + #            define MAXNAMLEN 14
  1272. + #        endif
  1273. + #        define NAME_MAX MAXNAMLEN
  1274. + #    endif
  1275. + #endif
  1276. + #if !defined(PATH_MAX) && !defined(_POSIX_PATH_MAX)
  1277. + #    if has_sys_param_h
  1278. + #        include <sys/param.h>
  1279. + #        define included_sys_param_h 1
  1280. + #    endif
  1281. + #    ifndef PATH_MAX
  1282. + #        ifndef MAXPATHLEN
  1283. + #            define MAXPATHLEN 1024
  1284. + #        endif
  1285. + #        define PATH_MAX (MAXPATHLEN-1)
  1286. + #    endif
  1287. + #endif
  1288. + #if has_readlink && !defined(MAXSYMLINKS)
  1289. + #    if has_sys_param_h && !included_sys_param_h
  1290. + #        include <sys/param.h>
  1291. + #    endif
  1292. + #    ifndef MAXSYMLINKS
  1293. + #        define MAXSYMLINKS 20 /* BSD; not standard yet */
  1294. + #    endif
  1295. + #endif
  1296. + /* Comment out the keyword definitions below if the keywords work.  */
  1297. + /* #define const */
  1298. + /* #define volatile */
  1299. + /* Comment out the typedefs below if the types are already declared.  */
  1300. + /* Fix any uncommented typedefs that are wrong.  */
  1301. + /* typedef int mode_t; */
  1302. + /* typedef int pid_t; */
  1303. + typedef int sig_atomic_t;
  1304. + /* typedef unsigned size_t; */
  1305. + /* typedef int ssize_t; */
  1306. + /* typedef long time_t; */
  1307. + /* typedef int uid_t; */
  1308. + /* Define the following symbols to be 1 or 0.  */
  1309. + #define has_prototypes 1 /* Do function prototypes work?  */
  1310. + #define has_stdarg 1 /* Does <stdarg.h> work?  */
  1311. + #define has_varargs 0 /* Does <varargs.h> work?  */
  1312. + #define va_start_args 2 /* How many args does va_start() take?  */
  1313. + #if has_prototypes
  1314. + #    define P(params) params
  1315. + #else
  1316. + #    define P(params) ()
  1317. + #endif
  1318. + #if has_stdarg
  1319. + #    include <stdarg.h>
  1320. + #else
  1321. + #    if has_varargs
  1322. + #        include <varargs.h>
  1323. + #    else
  1324. +         typedef char *va_list;
  1325. + #        define va_dcl int va_alist;
  1326. + #        define va_start(ap) ((ap) = (va_list)&va_alist)
  1327. + #        define va_arg(ap,t) (((t*) ((ap)+=sizeof(t)))  [-1])
  1328. + #        define va_end(ap)
  1329. + #    endif
  1330. + #endif
  1331. + #if va_start_args == 2
  1332. + #    define vararg_start va_start
  1333. + #else
  1334. + #    define vararg_start(ap,p) va_start(ap)
  1335. + #endif
  1336. + #define text_equals_binary_stdio 1 /* Does stdio treat text like binary?  */
  1337. + #define text_work_stdio 0 /* Text i/o for working file, binary for RCS file?  */
  1338. + #if text_equals_binary_stdio
  1339. +     /* Text and binary i/o behave the same, or binary i/o does not work.  */
  1340. + #    define FOPEN_R "r"
  1341. + #    define FOPEN_W "w"
  1342. + #    define FOPEN_WPLUS "w+"
  1343. + #else
  1344. +     /* Text and binary i/o behave differently.  */
  1345. +     /* This is incompatible with Posix and Unix.  */
  1346. + #    define FOPEN_R "rb"
  1347. + #    define FOPEN_W "wb"
  1348. + #    define FOPEN_WPLUS "w+b"
  1349. + #endif
  1350. + #if text_work_stdio
  1351. + #    define FOPEN_R_WORK "r"
  1352. + #    define FOPEN_W_WORK "w"
  1353. + #    define FOPEN_WPLUS_WORK "w+"
  1354. + #else
  1355. + #    define FOPEN_R_WORK FOPEN_R
  1356. + #    define FOPEN_W_WORK FOPEN_W
  1357. + #    define FOPEN_WPLUS_WORK FOPEN_WPLUS
  1358. + #endif
  1359. + /* Define or comment out the following symbols as needed.  */
  1360. + #define bad_fopen_wplus 0 /* Does fopen(f,FOPEN_WPLUS) fail to truncate f?  */
  1361. + #define getlogin_is_secure 0 /* Is getlogin() secure?  Usually it's not.  */
  1362. + #define has_dirent 1 /* Do opendir(), readdir(), closedir() work?  */
  1363. + #define has_fchmod 1 /* Does fchmod() work?  */
  1364. + #define has_fputs 0 /* Does fputs() work?  */
  1365. + #define has_ftruncate 0 /* Does ftruncate() work?  */
  1366. + #define has_getuid 1 /* Does getuid() work?  */
  1367. + #define has_getpwuid 1 /* Does getpwuid() work?  */
  1368. + #define has_link 1 /* Does link() work?  */
  1369. + #define has_memcmp 1 /* Does memcmp() work?  */
  1370. + #define has_memcpy 1 /* Does memcpy() work?  */
  1371. + #define has_memmove 1 /* Does memmove() work?  */
  1372. + #define has_madvise 0 /* Does madvise() work?  */
  1373. + #define has_mmap 0 /* Does mmap() work on regular files?  */
  1374. + #define has_rename 1 /* Does rename() work?  */
  1375. + #define bad_a_rename 0 /* Does rename(A,B) fail if A is unwritable?  */
  1376. + #define bad_b_rename 0 /* Does rename(A,B) fail if B is unwritable?  */
  1377. + #define VOID (void) /* 'VOID e;' discards the value of an expression 'e'.  */
  1378. + #define has_seteuid 0 /* Does seteuid() work?  See README.  */
  1379. + #define has_setuid 1 /* Does setuid() exist?  */
  1380. + #define has_signal 1 /* Does signal() work?  */
  1381. + #define signal_args P((int)) /* arguments of signal handlers */
  1382. + #define signal_type void /* type returned by signal handlers */
  1383. + #define sig_zaps_handler 0 /* Must a signal handler reinvoke signal()?  */
  1384. + #define has_sigaction 0 /* Does struct sigaction work?  */
  1385. + #define has_sigblock 1 /* Does sigblock() work?  */
  1386. + /* #define sigmask(s) (1 << ((s)-1)) */ /* Yield mask for signal number.  */
  1387. + #define has_sys_siglist 0 /* Does sys_siglist[] work?  */
  1388. + typedef ssize_t fread_type; /* type returned by fread() and fwrite() */
  1389. + typedef size_t freadarg_type; /* type of their size arguments */
  1390. + typedef void *malloc_type; /* type returned by malloc() */
  1391. + #define has_getcwd 1 /* Does getcwd() work?  */
  1392. + /* #define has_getwd ? */ /* Does getwd() work?  */
  1393. + #define has_mktemp 1 /* Does mktemp() work?  */
  1394. + #define has_NFS 1 /* Might NFS be used?  */
  1395. + /* #define strchr index */ /* Use old-fashioned name for strchr()?  */
  1396. + /* #define strrchr rindex */ /* Use old-fashioned name for strrchr()?  */
  1397. + #define bad_unlink 0 /* Does unlink() fail on unwritable files?  */
  1398. + #define has_vfork 1 /* Does vfork() work?  */
  1399. + #define has_fork 1 /* Does fork() work?  */
  1400. + #define has_spawn 0 /* Does spawn*() work?  */
  1401. + #define has_wait 1 /* Does wait() work?  */
  1402. + #define has_waitpid 1 /* Does waitpid() work?  */
  1403. + #define RCS_SHELL "/bin/sh" /* shell to run RCS subprograms */
  1404. + #define has_vfprintf 1 /* Does vfprintf() work?  */
  1405. + /* #define has__doprintf ? */ /* Does _doprintf() work?  */
  1406. + /* #define has__doprnt ? */ /* Does _doprnt() work?  */
  1407. + /* #undef EXIT_FAILURE */ /* Uncomment this if EXIT_FAILURE is broken.  */
  1408. + #define large_memory 0 /* Can main memory hold entire RCS files?  */
  1409. + /* #undef ULONG_MAX */ /* Uncomment this if ULONG_MAX is broken (e.g. < 0).  */
  1410. + /* struct utimbuf { time_t actime, modtime; }; */ /* Uncomment this if needed.  */
  1411. + #define CO "/gnu/bin/co" /* name of 'co' program */
  1412. + #define COMPAT2 0 /* Are version 2 files supported?  */
  1413. + #define DATEFORM "%.2d.%.2d.%.2d.%.2d.%.2d.%.2d" /* e.g. 01.01.01.01.01.01 */
  1414. + #define DIFF "/gnu/bin/diff" /* name of 'diff' program */
  1415. + #define DIFF3 "/gnu/bin/diff3" /* name of 'diff3' program */
  1416. + #define DIFF3_A 1 /* Does diff3 have an -A option?  */
  1417. + #define DIFF3_BIN 1 /* Is diff3 user-visible (not the /usr/lib auxiliary)?  */
  1418. + #define DIFF_FLAGS , "-an" /* Make diff output suitable for RCS.  */
  1419. + #define DIFF_L 1 /* Does diff -L work? */
  1420. + #define DIFF_SUCCESS 0 /* DIFF status if no differences are found */
  1421. + #define DIFF_FAILURE 1 /* DIFF status if differences are found */
  1422. + #define DIFF_TROUBLE 2 /* DIFF status if trouble */
  1423. + #define ED "/gnu/bin/ed" /* name of 'ed' program (used only if !DIFF3_BIN) */
  1424. + #define MERGE "/gnu/bin/merge" /* name of 'merge' program */
  1425. + #define TMPDIR "/tmp" /* default directory for temporary files */
  1426. + #define SLASH '/' /* principal pathname separator */
  1427. + #define SLASHes '/' /* `case SLASHes:' labels all pathname separators */
  1428. + #define isSLASH(c) ((c) == SLASH) /* Is arg a pathname separator?  */
  1429. + #define ROOTPATH(p) isSLASH((p)[0]) /* Is p an absolute pathname?  */
  1430. + #define X_DEFAULT ",v/" /* default value for -x option */
  1431. + #define DIFF_ABSOLUTE 1 /* Is ROOTPATH(DIFF) true?  */
  1432. + #define ALL_ABSOLUTE 1 /* Are all subprograms absolute pathnames?  */
  1433. + /* #define SENDMAIL  */ /* how to send mail */
  1434. + #define TZ_must_be_set 0 /* Must TZ be set for gmtime() to work?  */
  1435. + /* Adjust the following declarations as needed.  */
  1436. + #if __GNUC__ && !__STRICT_ANSI__
  1437. + #    define exiting volatile /* GCC extension: function cannot return */
  1438. + #else
  1439. + #    define exiting
  1440. + #endif
  1441. + #if has_ftruncate
  1442. +     int ftruncate P((int,off_t));
  1443. + #endif
  1444. + /* <sys/mman.h> */
  1445. + #if has_madvise
  1446. +     int madvise P((caddr_t,size_t,int));
  1447. + #endif
  1448. + #if has_mmap
  1449. +     caddr_t mmap P((caddr_t,size_t,int,int,int,off_t));
  1450. +     int munmap P((caddr_t,size_t));
  1451. + #endif
  1452. + /* Posix (ISO/IEC 9945-1: 1990 / IEEE Std 1003.1-1990) */
  1453. + /* These definitions are for the benefit of non-Posix hosts, and */
  1454. + /* Posix hosts that have Standard C compilers but traditional include files.  */
  1455. + /* Unfortunately, mixed-up hosts are all too common.  */
  1456. + /* <fcntl.h> */
  1457. + #ifdef F_DUPFD
  1458. +     int fcntl P((int,int,...));
  1459. + #else
  1460. +     int dup2 P((int,int));
  1461. + #endif
  1462. + #ifndef O_BINARY /* some non-Posix hosts need O_BINARY */
  1463. + #    define O_BINARY 0 /* no effect on Posix */
  1464. + #endif
  1465. + #ifdef O_CREAT
  1466. + #    define open_can_creat 1
  1467. + #else
  1468. + #    define open_can_creat 0
  1469. + #    define O_RDONLY 0
  1470. + #    define O_WRONLY 1
  1471. + #    define O_RDWR 2
  1472. + #    define O_CREAT 01000
  1473. + #    define O_TRUNC 02000
  1474. +     int creat P((char const*,mode_t));
  1475. + #endif
  1476. + #ifndef O_EXCL
  1477. + #    define O_EXCL 0
  1478. + #endif
  1479. + /* <pwd.h> */
  1480. + #if has_getpwuid
  1481. +     struct passwd *getpwuid P((uid_t));
  1482. + #endif
  1483. + /* <signal.h> */
  1484. + #if has_sigaction
  1485. +     int sigaction P((int,struct sigaction const*,struct sigaction*));
  1486. +     int sigaddset P((sigset_t*,int));
  1487. +     int sigemptyset P((sigset_t*));
  1488. + #else
  1489. + #if has_sigblock
  1490. +     /* BSD */
  1491. +     int sigblock P((int));
  1492. +     int sigmask P((int));
  1493. +     int sigsetmask P((int));
  1494. + #endif
  1495. + #endif
  1496. + /* <stdio.h> */
  1497. + FILE *fdopen P((int,char const*));
  1498. + int fileno P((FILE*));
  1499. + /* <sys/stat.h> */
  1500. + int chmod P((char const*,mode_t));
  1501. + int fstat P((int,struct stat*));
  1502. + int stat P((char const*,struct stat*));
  1503. + mode_t umask P((mode_t));
  1504. + #if has_fchmod
  1505. +     int fchmod P((int,mode_t));
  1506. + #endif
  1507. + #ifndef S_IRUSR
  1508. + #    ifdef S_IREAD
  1509. + #        define S_IRUSR S_IREAD
  1510. + #    else
  1511. + #        define S_IRUSR 0400
  1512. + #    endif
  1513. + #    ifdef S_IWRITE
  1514. + #        define S_IWUSR S_IWRITE
  1515. + #    else
  1516. + #        define S_IWUSR (S_IRUSR/2)
  1517. + #    endif
  1518. + #endif
  1519. + #ifndef S_IRGRP
  1520. + #    if has_getuid
  1521. + #        define S_IRGRP (S_IRUSR / 0010)
  1522. + #        define S_IWGRP (S_IWUSR / 0010)
  1523. + #        define S_IROTH (S_IRUSR / 0100)
  1524. + #        define S_IWOTH (S_IWUSR / 0100)
  1525. + #    else
  1526. +         /* single user OS -- not Posix or Unix */
  1527. + #        define S_IRGRP 0
  1528. + #        define S_IWGRP 0
  1529. + #        define S_IROTH 0
  1530. + #        define S_IWOTH 0
  1531. + #    endif
  1532. + #endif
  1533. + #ifndef S_ISREG
  1534. + #    define S_ISREG(n) (((n) & S_IFMT) == S_IFREG)
  1535. + #endif
  1536. + /* <sys/wait.h> */
  1537. + #if has_wait
  1538. +     pid_t wait P((int*));
  1539. + #endif
  1540. + #ifndef WEXITSTATUS
  1541. + #    define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1542. + #    undef WIFEXITED /* Avoid 4.3BSD incompatibility with Posix.  */
  1543. + #endif
  1544. + #ifndef WIFEXITED
  1545. + #    define WIFEXITED(stat_val) (!((stat_val) & 255))
  1546. + #endif
  1547. + /* <unistd.h> */
  1548. + char *getlogin P((void));
  1549. + int close P((int));
  1550. + int isatty P((int));
  1551. + int link P((char const*,char const*));
  1552. + int open P((char const*,int,...));
  1553. + int unlink P((char const*));
  1554. + int _filbuf P((FILE*)); /* keeps lint quiet in traditional C */
  1555. + int _flsbuf P((int,FILE*)); /* keeps lint quiet in traditional C */
  1556. + long pathconf P((char const*,int));
  1557. + ssize_t write P((int,void const*,size_t));
  1558. + #ifndef STDIN_FILENO
  1559. + #    define STDIN_FILENO 0
  1560. + #    define STDOUT_FILENO 1
  1561. + #    define STDERR_FILENO 2
  1562. + #endif
  1563. + #if has_fork
  1564. + #    if !has_vfork
  1565. + #        undef vfork
  1566. + #        define vfork fork
  1567. + #    endif
  1568. +     pid_t vfork P((void)); /* vfork is nonstandard but faster */
  1569. + #endif
  1570. + #if has_getcwd || !has_getwd
  1571. +     char *getcwd P((char*,size_t));
  1572. + #else
  1573. +     char *getwd P((char*));
  1574. + #endif
  1575. + #if has_getuid
  1576. +     uid_t getuid P((void));
  1577. + #endif
  1578. + #if has_readlink
  1579. +     ssize_t readlink P((char const*,char*,size_t)); /* BSD; not standard yet */
  1580. + #endif
  1581. + #if has_setuid
  1582. + #    if !has_seteuid
  1583. + #        undef seteuid
  1584. + #        define seteuid setuid
  1585. + #    endif
  1586. +     int seteuid P((uid_t));
  1587. +     uid_t geteuid P((void));
  1588. + #endif
  1589. + #if has_spawn
  1590. +     int spawnv P((int,char const*,char*const*));
  1591. + #    if ALL_ABSOLUTE
  1592. + #        define spawn_RCS spawnv
  1593. + #    else
  1594. + #        define spawn_RCS spawnvp
  1595. +         int spawnvp P((int,char const*,char*const*));
  1596. + #    endif
  1597. + #else
  1598. +     int execv P((char const*,char*const*));
  1599. + #    if ALL_ABSOLUTE
  1600. + #        define exec_RCS execv
  1601. + #    else
  1602. + #        define exec_RCS execvp
  1603. +         int execvp P((char const*,char*const*));
  1604. + #    endif
  1605. + #endif
  1606. + /* utime.h */
  1607. + int utime P((char const*,struct utimbuf const*));
  1608. + /* Standard C library */
  1609. + /* These definitions are for the benefit of hosts that have */
  1610. + /* traditional C include files, possibly with Standard C compilers.  */
  1611. + /* Unfortunately, mixed-up hosts are all too common.  */
  1612. + /* <errno.h> */
  1613. + extern int errno;
  1614. + /* <limits.h> */
  1615. + #ifndef ULONG_MAX
  1616. +     /* This does not work in #ifs, but it's good enough for us.  */
  1617. + #    define ULONG_MAX ((unsigned long)-1)
  1618. + #endif
  1619. + /* <signal.h> */
  1620. + #if has_signal
  1621. +     signal_type (*signal P((int,signal_type(*)signal_args)))signal_args;
  1622. + #endif
  1623. + /* <stdio.h> */
  1624. + FILE *fopen P((char const*,char const*));
  1625. + fread_type fread P((void*,freadarg_type,freadarg_type,FILE*));
  1626. + fread_type fwrite P((void const*,freadarg_type,freadarg_type,FILE*));
  1627. + int fclose P((FILE*));
  1628. + int feof P((FILE*));
  1629. + int ferror P((FILE*));
  1630. + int fflush P((FILE*));
  1631. + int fprintf P((FILE*,char const*,...));
  1632. + int fputs P((char const*,FILE*));
  1633. + int fseek P((FILE*,long,int));
  1634. + int printf P((char const*,...));
  1635. + int rename P((char const*,char const*));
  1636. + int sprintf P((char*,char const*,...));
  1637. + /*long ftell P((FILE*));*/
  1638. + void clearerr P((FILE*));
  1639. + void perror P((char const*));
  1640. + #ifndef L_tmpnam
  1641. + #    define L_tmpnam 32 /* power of 2 > sizeof("/tmp/xxxxxxxxxxxxxxx") */
  1642. + #endif
  1643. + #ifndef SEEK_SET
  1644. + #    define SEEK_SET 0
  1645. + #endif
  1646. + #if has_mktemp
  1647. +     char *mktemp P((char*)); /* traditional */
  1648. + #else
  1649. +     char *tmpnam P((char*));
  1650. + #endif
  1651. + #if has_vfprintf
  1652. + /*    int vfprintf P((FILE*,char const*,va_list));*/
  1653. + #else
  1654. + #if has__doprintf
  1655. +     void _doprintf P((FILE*,char const*,va_list)); /* Minix */
  1656. + #else
  1657. +     void _doprnt P((char const*,va_list,FILE*)); /* BSD */
  1658. + #endif
  1659. + #endif
  1660. + /* <stdlib.h> */
  1661. + char *getenv P((char const*));
  1662. + /* exiting void _exit P((int)); */
  1663. + /* exiting void exit P((int)); */
  1664. + malloc_type malloc P((size_t));
  1665. + malloc_type realloc P((malloc_type,size_t));
  1666. + void free P((malloc_type));
  1667. + #ifndef EXIT_FAILURE
  1668. + #    define EXIT_FAILURE 1
  1669. + #endif
  1670. + #ifndef EXIT_SUCCESS
  1671. + #    define EXIT_SUCCESS 0
  1672. + #endif
  1673. + #if !has_fork && !has_spawn
  1674. +     int system P((char const*));
  1675. + #endif
  1676. + /* <string.h> */
  1677. + char *strcpy P((char*,char const*));
  1678. + char *strchr P((char const*,int));
  1679. + char *strrchr P((char const*,int));
  1680. + int memcmp P((void const*,void const*,size_t));
  1681. + int strcmp P((char const*,char const*));
  1682. + size_t strlen P((char const*));
  1683. + void *memcpy P((void*,void const*,size_t));
  1684. + #if has_memmove
  1685. +     void *memmove P((void*,void const*,size_t));
  1686. + #endif
  1687. + /* <time.h> */
  1688. + time_t time P((time_t*));
  1689. diff -rc --new-file rcs-5.6.0.1/src/conf.sh /gnu/src/amiga/rcs-5.6.0.1/src/conf.sh
  1690. *** rcs-5.6.0.1/src/conf.sh    Thu Mar 25 04:24:49 1993
  1691. --- /gnu/src/amiga/rcs-5.6.0.1/src/conf.sh    Thu Feb 24 09:41:30 1994
  1692. ***************
  1693. *** 24,32 ****
  1694.   #
  1695.   #     rcs-bugs@cs.purdue.edu
  1696.   
  1697.   
  1698. ! # Standard output should already be directed to "a.h";
  1699. ! # later parts of this procedure need it.
  1700.   # Standard error can be ignored if a.h is OK,
  1701.   # and can be inspected for clues otherwise.
  1702.   
  1703. --- 24,49 ----
  1704.   #
  1705.   #     rcs-bugs@cs.purdue.edu
  1706.   
  1707. + CC='gcc'
  1708. + CFLAGS=' -O2 '
  1709. + COMPAT2='0'
  1710. + DIFF3='/gnu/bin/diff3'
  1711. + DIFF3_A='1'
  1712. + DIFF3_BIN='1'
  1713. + DIFF='/gnu/bin/diff'
  1714. + DIFF_FLAGS='-an'
  1715. + DIFF_L='1'
  1716. + DIFF_SUCCESS='0'
  1717. + DIFF_FAILURE='1'
  1718. + DIFF_TROUBLE='2'
  1719. + ED='/gnu/bin/emacs'
  1720. + LDFLAGS=''
  1721. + LDLIBS=''
  1722. + RCSPREFIX='/gnu/bin/'
  1723. + SENDMAIL=''
  1724.   
  1725. ! # Take care of doing redirection to a.h ourself, since some systems may have
  1726. ! # problems reading a file that is already open for write.
  1727.   # Standard error can be ignored if a.h is OK,
  1728.   # and can be inspected for clues otherwise.
  1729.   
  1730. ***************
  1731. *** 51,57 ****
  1732.   L=$LDLIBS
  1733.   RM='rm -f a.out'
  1734.   
  1735. ! cat <<EOF
  1736.   /* RCS compile-time configuration */
  1737.   
  1738.       /* $Id */
  1739. --- 68,74 ----
  1740.   L=$LDLIBS
  1741.   RM='rm -f a.out'
  1742.   
  1743. ! cat >>a.h <<'EOF'
  1744.   /* RCS compile-time configuration */
  1745.   
  1746.       /* $Id */
  1747. ***************
  1748. *** 66,72 ****
  1749.   EOF
  1750.   
  1751.   : exitmain
  1752. ! cat >a.c <<EOF
  1753.   #include "a.h"
  1754.   int main(argc,argv) int argc; char **argv; { return argc-1; }
  1755.   EOF
  1756. --- 83,89 ----
  1757.   EOF
  1758.   
  1759.   : exitmain
  1760. ! cat >a.c <<'EOF'
  1761.   #include "a.h"
  1762.   int main(argc,argv) int argc; char **argv; { return argc-1; }
  1763.   EOF
  1764. ***************
  1765. *** 77,83 ****
  1766.   elif ./a.out
  1767.   then e=n
  1768.   fi
  1769. ! echo "#define exitmain(n) return $e /* how to exit from main() */"
  1770.   
  1771.   : _POSIX_SOURCE
  1772.   cat >a.c <<'EOF'
  1773. --- 94,100 ----
  1774.   elif ./a.out
  1775.   then e=n
  1776.   fi
  1777. ! echo >>a.h "#define exitmain(n) return $e /* how to exit from main() */"
  1778.   
  1779.   : _POSIX_SOURCE
  1780.   cat >a.c <<'EOF'
  1781. ***************
  1782. *** 92,98 ****
  1783.   elif $RM || exit; ($CL -D_POSIX_SOURCE a.c $L && ./a.out) >&2
  1784.   then a= z=
  1785.   fi
  1786. ! cat <<EOF
  1787.   $a#define _POSIX_SOURCE $z/* Define this if Posix + strict Standard C.  */
  1788.   
  1789.   #include <errno.h>
  1790. --- 109,115 ----
  1791.   elif $RM || exit; ($CL -D_POSIX_SOURCE a.c $L && ./a.out) >&2
  1792.   then a= z=
  1793.   fi
  1794. ! cat >>a.h <<'EOF'
  1795.   $a#define _POSIX_SOURCE $z/* Define this if Posix + strict Standard C.  */
  1796.   
  1797.   #include <errno.h>
  1798. ***************
  1799. *** 100,106 ****
  1800.   #include <time.h>
  1801.   EOF
  1802.   
  1803. ! cat <<'EOF'
  1804.   
  1805.   /* Comment out #include lines below that do not work.  */
  1806.   EOF
  1807. --- 117,123 ----
  1808.   #include <time.h>
  1809.   EOF
  1810.   
  1811. ! cat >>a.h <<'EOF'
  1812.   
  1813.   /* Comment out #include lines below that do not work.  */
  1814.   EOF
  1815. ***************
  1816. *** 123,129 ****
  1817.   do
  1818.       i="#include <$h.h>"
  1819.       : $i
  1820. !     cat >a.c <<EOF
  1821.   #include "a.h"
  1822.   $i
  1823.   int main(){ exitmain(0); }
  1824. --- 140,146 ----
  1825.   do
  1826.       i="#include <$h.h>"
  1827.       : $i
  1828. !     cat >a.c <<'EOF'
  1829.   #include "a.h"
  1830.   $i
  1831.   int main(){ exitmain(0); }
  1832. ***************
  1833. *** 140,149 ****
  1834.           signal) has_signal=0
  1835.           esac
  1836.       }
  1837. !     echo "$i"
  1838.   done
  1839.   
  1840. ! cat <<'EOF'
  1841.   
  1842.   /* Define the following symbols to be 1 or 0.  */
  1843.   EOF
  1844. --- 157,166 ----
  1845.           signal) has_signal=0
  1846.           esac
  1847.       }
  1848. !     echo >>a.h "$i"
  1849.   done
  1850.   
  1851. ! cat >>a.h <<'EOF'
  1852.   
  1853.   /* Define the following symbols to be 1 or 0.  */
  1854.   EOF
  1855. ***************
  1856. *** 152,158 ****
  1857.   for H in dir param
  1858.   do
  1859.       : has_sys_${H}_h
  1860. !     cat >a.c <<EOF
  1861.   #include "a.h"
  1862.   #include <sys/$H.h>
  1863.   int main() { exitmain(0); }
  1864. --- 169,175 ----
  1865.   for H in dir param
  1866.   do
  1867.       : has_sys_${H}_h
  1868. !     cat >a.c <<'EOF'
  1869.   #include "a.h"
  1870.   #include <sys/$H.h>
  1871.   int main() { exitmain(0); }
  1872. ***************
  1873. *** 162,168 ****
  1874.       then h=1
  1875.       else h=0
  1876.       fi
  1877. !     echo "#define has_sys_${H}_h $h /* Does #include <sys/$H.h> work?  */"
  1878.   done
  1879.   
  1880.   
  1881. --- 179,185 ----
  1882.       then h=1
  1883.       else h=0
  1884.       fi
  1885. !     echo >>a.h "#define has_sys_${H}_h $h /* Does #include <sys/$H.h> work?  */"
  1886.   done
  1887.   
  1888.   
  1889. ***************
  1890. *** 208,214 ****
  1891.   then h=1
  1892.   else h=0
  1893.   fi
  1894. ! cat <<EOF
  1895.   #define has_readlink $h /* Does readlink() work?  */
  1896.   
  1897.   $a#undef NAME_MAX $z/* Uncomment this if NAME_MAX is broken.  */
  1898. --- 225,231 ----
  1899.   then h=1
  1900.   else h=0
  1901.   fi
  1902. ! cat >>a.h <<'EOF'
  1903.   #define has_readlink $h /* Does readlink() work?  */
  1904.   
  1905.   $a#undef NAME_MAX $z/* Uncomment this if NAME_MAX is broken.  */
  1906. ***************
  1907. *** 246,252 ****
  1908.   #endif
  1909.   EOF
  1910.   
  1911. ! cat <<'EOF'
  1912.   
  1913.   /* Comment out the keyword definitions below if the keywords work.  */
  1914.   EOF
  1915. --- 263,269 ----
  1916.   #endif
  1917.   EOF
  1918.   
  1919. ! cat >>a.h <<'EOF'
  1920.   
  1921.   /* Comment out the keyword definitions below if the keywords work.  */
  1922.   EOF
  1923. ***************
  1924. *** 254,260 ****
  1925.   : const, volatile
  1926.   for i in const volatile
  1927.   do
  1928. !     cat >a.c <<EOF
  1929.   #    include "a.h"
  1930.       enum Boolean { false, true };
  1931.       static enum Boolean $i zero;
  1932. --- 271,277 ----
  1933.   : const, volatile
  1934.   for i in const volatile
  1935.   do
  1936. !     cat >a.c <<'EOF'
  1937.   #    include "a.h"
  1938.       enum Boolean { false, true };
  1939.       static enum Boolean $i zero;
  1940. ***************
  1941. *** 265,271 ****
  1942.       a= z=
  1943.       if $CS a.c $LS >&2
  1944.       then
  1945. !         cat >a.c <<EOF
  1946.               typedef unsigned char $i *Iptr_type;
  1947.               struct { Iptr_type lim; } s, *f = &s;
  1948.               int main() {
  1949. --- 282,288 ----
  1950.       a= z=
  1951.       if $CS a.c $LS >&2
  1952.       then
  1953. !         cat >a.c <<'EOF'
  1954.               typedef unsigned char $i *Iptr_type;
  1955.               struct { Iptr_type lim; } s, *f = &s;
  1956.               int main() {
  1957. ***************
  1958. *** 278,288 ****
  1959.           then a='/* ' z=' */'
  1960.           fi
  1961.       fi
  1962. !     echo "$a#define $i$z"
  1963.   done
  1964.   
  1965.   # *_t
  1966. ! cat <<'EOF'
  1967.   
  1968.   /* Comment out the typedefs below if the types are already declared.  */
  1969.   /* Fix any uncommented typedefs that are wrong.  */
  1970. --- 295,305 ----
  1971.           then a='/* ' z=' */'
  1972.           fi
  1973.       fi
  1974. !     echo >>a.h "$a#define $i$z"
  1975.   done
  1976.   
  1977.   # *_t
  1978. ! cat >>a.h <<'EOF'
  1979.   
  1980.   /* Comment out the typedefs below if the types are already declared.  */
  1981.   /* Fix any uncommented typedefs that are wrong.  */
  1982. ***************
  1983. *** 304,310 ****
  1984.       then a='/* ' z=' */'
  1985.       else a= z=
  1986.       fi
  1987. !     echo "${a}typedef $i $t;$z"
  1988.   done
  1989.   
  1990.   : has_prototypes, has_stdarg, has_varargs, va_start_args
  1991. --- 321,327 ----
  1992.       then a='/* ' z=' */'
  1993.       else a= z=
  1994.       fi
  1995. !     echo >>a.h "${a}typedef $i $t;$z"
  1996.   done
  1997.   
  1998.   : has_prototypes, has_stdarg, has_varargs, va_start_args
  1999. ***************
  2000. *** 381,387 ****
  2001.       echo >&2 "cannot deduce has_prototypes, has_stdarg, va_start_args"
  2002.       exit 1
  2003.   }
  2004. ! cat - a.ha <<EOF
  2005.   
  2006.   /* Define the following symbols to be 1 or 0.  */
  2007.   #define has_prototypes $has_prototypes /* Do function prototypes work?  */
  2008. --- 398,404 ----
  2009.       echo >&2 "cannot deduce has_prototypes, has_stdarg, va_start_args"
  2010.       exit 1
  2011.   }
  2012. ! cat >>a.h - a.ha <<'EOF'
  2013.   
  2014.   /* Define the following symbols to be 1 or 0.  */
  2015.   #define has_prototypes $has_prototypes /* Do function prototypes work?  */
  2016. ***************
  2017. *** 413,419 ****
  2018.   $CL a.c $L >&2 && ./a.out && cmp a.out a.d && {
  2019.       cmp a.out a.e || e=0
  2020.   }
  2021. ! cat <<EOF
  2022.   
  2023.   #define text_equals_binary_stdio $e /* Does stdio treat text like binary?  */
  2024.   #define text_work_stdio 0 /* Text i/o for working file, binary for RCS file?  */
  2025. --- 430,436 ----
  2026.   $CL a.c $L >&2 && ./a.out && cmp a.out a.d && {
  2027.       cmp a.out a.e || e=0
  2028.   }
  2029. ! cat >>a.h <<'EOF'
  2030.   
  2031.   #define text_equals_binary_stdio $e /* Does stdio treat text like binary?  */
  2032.   #define text_work_stdio 0 /* Text i/o for working file, binary for RCS file?  */
  2033. ***************
  2034. *** 452,461 ****
  2035.   then b=0
  2036.   else b=1
  2037.   fi
  2038. ! echo "#define bad_fopen_wplus $b /* Does fopen(f,FOPEN_WPLUS) fail to truncate f?  */"
  2039.   
  2040.   : getlogin_is_secure
  2041. ! echo "#define getlogin_is_secure 0 /* Is getlogin() secure?  Usually it's not.  */"
  2042.   
  2043.   : has_dirent
  2044.   cat >a.c <<'EOF'
  2045. --- 469,478 ----
  2046.   then b=0
  2047.   else b=1
  2048.   fi
  2049. ! echo >>a.h "#define bad_fopen_wplus $b /* Does fopen(f,FOPEN_WPLUS) fail to truncate f?  */"
  2050.   
  2051.   : getlogin_is_secure
  2052. ! echo >>a.h "#define getlogin_is_secure 0 /* Is getlogin() secure?  Usually it's not.  */"
  2053.   
  2054.   : has_dirent
  2055.   cat >a.c <<'EOF'
  2056. ***************
  2057. *** 474,480 ****
  2058.   then h=1
  2059.   else h=0
  2060.   fi
  2061. ! echo "#define has_dirent $h /* Do opendir(), readdir(), closedir() work?  */"
  2062.   
  2063.   : has_fchmod
  2064.   cat >a.c <<'EOF'
  2065. --- 491,497 ----
  2066.   then h=1
  2067.   else h=0
  2068.   fi
  2069. ! echo >>a.h "#define has_dirent $h /* Do opendir(), readdir(), closedir() work?  */"
  2070.   
  2071.   : has_fchmod
  2072.   cat >a.c <<'EOF'
  2073. ***************
  2074. *** 486,492 ****
  2075.   then h=1
  2076.   else h=0
  2077.   fi
  2078. ! echo "#define has_fchmod $h /* Does fchmod() work?  */"
  2079.   rm -f a.c || exit
  2080.   
  2081.   : has_fputs
  2082. --- 503,509 ----
  2083.   then h=1
  2084.   else h=0
  2085.   fi
  2086. ! echo >>a.h "#define has_fchmod $h /* Does fchmod() work?  */"
  2087.   rm -f a.c || exit
  2088.   
  2089.   : has_fputs
  2090. ***************
  2091. *** 501,507 ****
  2092.   then h=1
  2093.   else h=0
  2094.   fi
  2095. ! echo "#define has_fputs $h /* Does fputs() work?  */"
  2096.   
  2097.   : has_ftruncate
  2098.   cat >a.c <<'EOF'
  2099. --- 518,524 ----
  2100.   then h=1
  2101.   else h=0
  2102.   fi
  2103. ! echo >>a.h "#define has_fputs $h /* Does fputs() work?  */"
  2104.   
  2105.   : has_ftruncate
  2106.   cat >a.c <<'EOF'
  2107. ***************
  2108. *** 530,536 ****
  2109.       done
  2110.   else h=0
  2111.   fi
  2112. ! echo "#define has_ftruncate $h /* Does ftruncate() work?  */"
  2113.   
  2114.   : has_getuid
  2115.   cat >a.c <<'EOF'
  2116. --- 547,553 ----
  2117.       done
  2118.   else h=0
  2119.   fi
  2120. ! echo >>a.h "#define has_ftruncate $h /* Does ftruncate() work?  */"
  2121.   
  2122.   : has_getuid
  2123.   cat >a.c <<'EOF'
  2124. ***************
  2125. *** 545,551 ****
  2126.   then has_getuid=1
  2127.   else has_getuid=0
  2128.   fi
  2129. ! echo "#define has_getuid $has_getuid /* Does getuid() work?  */"
  2130.   
  2131.   : has_getpwuid
  2132.   case $has_getuid in
  2133. --- 562,568 ----
  2134.   then has_getuid=1
  2135.   else has_getuid=0
  2136.   fi
  2137. ! echo >>a.h "#define has_getuid $has_getuid /* Does getuid() work?  */"
  2138.   
  2139.   : has_getpwuid
  2140.   case $has_getuid in
  2141. ***************
  2142. *** 563,569 ****
  2143.       else h=0
  2144.       fi
  2145.   esac
  2146. ! echo "$a#define has_getpwuid $h $z/* Does getpwuid() work?  */"
  2147.   
  2148.   : has_link
  2149.   cat >a.c <<'EOF'
  2150. --- 580,586 ----
  2151.       else h=0
  2152.       fi
  2153.   esac
  2154. ! echo >>a.h "$a#define has_getpwuid $h $z/* Does getpwuid() work?  */"
  2155.   
  2156.   : has_link
  2157.   cat >a.c <<'EOF'
  2158. ***************
  2159. *** 576,582 ****
  2160.   else h=0
  2161.   fi
  2162.   rm -f a.d || exit
  2163. ! echo "#define has_link $h /* Does link() work?  */"
  2164.   
  2165.   : has_memcmp
  2166.   cat >a.c <<'EOF'
  2167. --- 593,599 ----
  2168.   else h=0
  2169.   fi
  2170.   rm -f a.d || exit
  2171. ! echo >>a.h "#define has_link $h /* Does link() work?  */"
  2172.   
  2173.   : has_memcmp
  2174.   cat >a.c <<'EOF'
  2175. ***************
  2176. *** 588,594 ****
  2177.   then h=1
  2178.   else h=0
  2179.   fi
  2180. ! echo "#define has_memcmp $h /* Does memcmp() work?  */"
  2181.   
  2182.   : has_memcpy
  2183.   cat >a.c <<'EOF'
  2184. --- 605,611 ----
  2185.   then h=1
  2186.   else h=0
  2187.   fi
  2188. ! echo >>a.h "#define has_memcmp $h /* Does memcmp() work?  */"
  2189.   
  2190.   : has_memcpy
  2191.   cat >a.c <<'EOF'
  2192. ***************
  2193. *** 604,610 ****
  2194.   then h=1
  2195.   else h=0
  2196.   fi
  2197. ! echo "#define has_memcpy $h /* Does memcpy() work?  */"
  2198.   
  2199.   : has_memmove
  2200.   cat >a.c <<'EOF'
  2201. --- 621,627 ----
  2202.   then h=1
  2203.   else h=0
  2204.   fi
  2205. ! echo >>a.h "#define has_memcpy $h /* Does memcpy() work?  */"
  2206.   
  2207.   : has_memmove
  2208.   cat >a.c <<'EOF'
  2209. ***************
  2210. *** 621,627 ****
  2211.   then h=1
  2212.   else h=0
  2213.   fi
  2214. ! echo "#define has_memmove $h /* Does memmove() work?  */"
  2215.   
  2216.   : has_mmap, has_madvise
  2217.   cat >a.c <<'EOF'
  2218. --- 638,644 ----
  2219.   then h=1
  2220.   else h=0
  2221.   fi
  2222. ! echo >>a.h "#define has_memmove $h /* Does memmove() work?  */"
  2223.   
  2224.   : has_mmap, has_madvise
  2225.   cat >a.c <<'EOF'
  2226. ***************
  2227. *** 659,666 ****
  2228.       $RM || exit
  2229.       ($CL a.c $L && ./a.out <a.c) >&2 && a=1
  2230.   fi
  2231. ! echo "#define has_madvise $a /* Does madvise() work?  */"
  2232. ! echo "#define has_mmap $has_mmap /* Does mmap() work on regular files?  */"
  2233.   
  2234.   : has_rename, bad_a_rename, bad_b_rename
  2235.   cat >a.c <<'EOF'
  2236. --- 676,683 ----
  2237.       $RM || exit
  2238.       ($CL a.c $L && ./a.out <a.c) >&2 && a=1
  2239.   fi
  2240. ! echo >>a.h "#define has_madvise $a /* Does madvise() work?  */"
  2241. ! echo >>a.h "#define has_mmap $has_mmap /* Does mmap() work on regular files?  */"
  2242.   
  2243.   : has_rename, bad_a_rename, bad_b_rename
  2244.   cat >a.c <<'EOF'
  2245. ***************
  2246. *** 686,694 ****
  2247.       rm -f a.a a.b || exit
  2248.   else h=0 a=0 b=0
  2249.   fi
  2250. ! echo "#define has_rename $h /* Does rename() work?  */"
  2251. ! echo "#define bad_a_rename $a /* Does rename(A,B) fail if A is unwritable?  */"
  2252. ! echo "#define bad_b_rename $b /* Does rename(A,B) fail if B is unwritable?  */"
  2253.   
  2254.   : void, VOID
  2255.   cat >a.c <<'EOF'
  2256. --- 703,711 ----
  2257.       rm -f a.a a.b || exit
  2258.   else h=0 a=0 b=0
  2259.   fi
  2260. ! echo >>a.h "#define has_rename $h /* Does rename() work?  */"
  2261. ! echo >>a.h "#define bad_a_rename $a /* Does rename(A,B) fail if A is unwritable?  */"
  2262. ! echo >>a.h "#define bad_b_rename $b /* Does rename(A,B) fail if B is unwritable?  */"
  2263.   
  2264.   : void, VOID
  2265.   cat >a.c <<'EOF'
  2266. ***************
  2267. *** 701,709 ****
  2268.       v='(void) '
  2269.   else
  2270.       v=
  2271. !     echo 'typedef int void;'
  2272.   fi
  2273. ! echo "#define VOID $v/* 'VOID e;' discards the value of an expression 'e'.  */"
  2274.   
  2275.   : has_seteuid
  2276.   case $has_getuid in
  2277. --- 718,726 ----
  2278.       v='(void) '
  2279.   else
  2280.       v=
  2281. !     echo >>a.h 'typedef int void;'
  2282.   fi
  2283. ! echo >>a.h "#define VOID $v/* 'VOID e;' discards the value of an expression 'e'.  */"
  2284.   
  2285.   : has_seteuid
  2286.   case $has_getuid in
  2287. ***************
  2288. *** 732,738 ****
  2289.       else has_seteuid=0
  2290.       fi
  2291.   esac
  2292. ! echo "$a#define has_seteuid $has_seteuid $z/* Does seteuid() work?  See README.  */"
  2293.   
  2294.   : has_setuid
  2295.   h=$has_seteuid
  2296. --- 749,755 ----
  2297.       else has_seteuid=0
  2298.       fi
  2299.   esac
  2300. ! echo >>a.h "$a#define has_seteuid $has_seteuid $z/* Does seteuid() work?  See README.  */"
  2301.   
  2302.   : has_setuid
  2303.   h=$has_seteuid
  2304. ***************
  2305. *** 748,754 ****
  2306.       $RM || exit
  2307.       ($CL a.c $L && ./a.out) >&2 && h=1
  2308.   esac
  2309. ! echo "$a#define has_setuid $h $z/* Does setuid() exist?  */"
  2310.   
  2311.   : has_signal, signal_args, signal_type, sig_zaps_handler
  2312.   cat >a.c <<'EOF'
  2313. --- 765,771 ----
  2314.       $RM || exit
  2315.       ($CL a.c $L && ./a.out) >&2 && h=1
  2316.   esac
  2317. ! echo >>a.h "$a#define has_setuid $h $z/* Does setuid() exist?  */"
  2318.   
  2319.   : has_signal, signal_args, signal_type, sig_zaps_handler
  2320.   cat >a.c <<'EOF'
  2321. ***************
  2322. *** 790,796 ****
  2323.   then z=0
  2324.   else z=1
  2325.   fi
  2326. ! cat <<EOF
  2327.   #define has_signal $has_signal /* Does signal() work?  */
  2328.   #define signal_args $signal_args /* arguments of signal handlers */
  2329.   #define signal_type $signal_type /* type returned by signal handlers */
  2330. --- 807,813 ----
  2331.   then z=0
  2332.   else z=1
  2333.   fi
  2334. ! cat >>a.h <<'EOF'
  2335.   #define has_signal $has_signal /* Does signal() work?  */
  2336.   #define signal_args $signal_args /* arguments of signal handlers */
  2337.   #define signal_type $signal_type /* type returned by signal handlers */
  2338. ***************
  2339. *** 826,832 ****
  2340.   then has_sigaction=1
  2341.   else has_sigaction=0
  2342.   fi
  2343. ! echo "#define has_sigaction $has_sigaction /* Does struct sigaction work?  */"
  2344.   
  2345.   : has_sigblock, sigmask
  2346.   a='/* ' z='*/ '
  2347. --- 843,849 ----
  2348.   then has_sigaction=1
  2349.   else has_sigaction=0
  2350.   fi
  2351. ! echo >>a.h "#define has_sigaction $has_sigaction /* Does struct sigaction work?  */"
  2352.   
  2353.   : has_sigblock, sigmask
  2354.   a='/* ' z='*/ '
  2355. ***************
  2356. *** 855,862 ****
  2357.       else h=0
  2358.       fi
  2359.   esac
  2360. ! echo "$a#define has_sigblock $h $z/* Does sigblock() work?  */"
  2361. ! echo "$b#define sigmask(s) (1 << ((s)-1)) $y/* Yield mask for signal number.  */"
  2362.   
  2363.   : has_sys_siglist
  2364.   cat >a.c <<'EOF'
  2365. --- 872,879 ----
  2366.       else h=0
  2367.       fi
  2368.   esac
  2369. ! echo >>a.h "$a#define has_sigblock $h $z/* Does sigblock() work?  */"
  2370. ! echo >>a.h "$b#define sigmask(s) (1 << ((s)-1)) $y/* Yield mask for signal number.  */"
  2371.   
  2372.   : has_sys_siglist
  2373.   cat >a.c <<'EOF'
  2374. ***************
  2375. *** 871,877 ****
  2376.   then h=1
  2377.   else h=0
  2378.   fi
  2379. ! echo "#define has_sys_siglist $h /* Does sys_siglist[] work?  */"
  2380.   
  2381.   : fread_type, Fread, Fwrite
  2382.   cat >a.c <<'EOF'
  2383. --- 888,894 ----
  2384.   then h=1
  2385.   else h=0
  2386.   fi
  2387. ! echo >>a.h "#define has_sys_siglist $h /* Does sys_siglist[] work?  */"
  2388.   
  2389.   : fread_type, Fread, Fwrite
  2390.   cat >a.c <<'EOF'
  2391. ***************
  2392. *** 910,916 ****
  2393.       echo >&2 "cannot deduce fread types"
  2394.       exit 1
  2395.   }
  2396. ! cat <<EOF
  2397.   typedef $fread_type fread_type; /* type returned by fread() and fwrite() */
  2398.   typedef $freadarg_type freadarg_type; /* type of their size arguments */
  2399.   EOF
  2400. --- 927,933 ----
  2401.       echo >&2 "cannot deduce fread types"
  2402.       exit 1
  2403.   }
  2404. ! cat >>a.h <<'EOF'
  2405.   typedef $fread_type fread_type; /* type returned by fread() and fwrite() */
  2406.   typedef $freadarg_type freadarg_type; /* type of their size arguments */
  2407.   EOF
  2408. ***************
  2409. *** 928,934 ****
  2410.   then t=void
  2411.   else t=char
  2412.   fi
  2413. ! echo "typedef $t *malloc_type; /* type returned by malloc() */"
  2414.   
  2415.   : has_getcwd
  2416.   cat >a.c <<'EOF'
  2417. --- 945,951 ----
  2418.   then t=void
  2419.   else t=char
  2420.   fi
  2421. ! echo >>a.h "typedef $t *malloc_type; /* type returned by malloc() */"
  2422.   
  2423.   : has_getcwd
  2424.   cat >a.c <<'EOF'
  2425. ***************
  2426. *** 944,950 ****
  2427.   then has_getcwd=1
  2428.   else has_getcwd=0
  2429.   fi
  2430. ! echo "#define has_getcwd $has_getcwd /* Does getcwd() work?  */"
  2431.   
  2432.   : has_getwd
  2433.   case $has_getcwd in
  2434. --- 961,967 ----
  2435.   then has_getcwd=1
  2436.   else has_getcwd=0
  2437.   fi
  2438. ! echo >>a.h "#define has_getcwd $has_getcwd /* Does getcwd() work?  */"
  2439.   
  2440.   : has_getwd
  2441.   case $has_getcwd in
  2442. ***************
  2443. *** 967,973 ****
  2444.       else h=0
  2445.       fi
  2446.   esac
  2447. ! echo "$a#define has_getwd $h $z/* Does getwd() work?  */"
  2448.   
  2449.   : has_mktemp
  2450.   cat >a.c <<'EOF'
  2451. --- 984,990 ----
  2452.       else h=0
  2453.       fi
  2454.   esac
  2455. ! echo >>a.h "$a#define has_getwd $h $z/* Does getwd() work?  */"
  2456.   
  2457.   : has_mktemp
  2458.   cat >a.c <<'EOF'
  2459. ***************
  2460. *** 987,996 ****
  2461.   then h=1
  2462.   else h=0
  2463.   fi
  2464. ! echo "#define has_mktemp $h /* Does mktemp() work?  */"
  2465.   
  2466.   : has_NFS
  2467. ! echo "#define has_NFS 1 /* Might NFS be used?  */"
  2468.   
  2469.   : strchr
  2470.   cat >a.c <<'EOF'
  2471. --- 1004,1013 ----
  2472.   then h=1
  2473.   else h=0
  2474.   fi
  2475. ! echo >>a.h "#define has_mktemp $h /* Does mktemp() work?  */"
  2476.   
  2477.   : has_NFS
  2478. ! echo >>a.h "#define has_NFS 1 /* Might NFS be used?  */"
  2479.   
  2480.   : strchr
  2481.   cat >a.c <<'EOF'
  2482. ***************
  2483. *** 1005,1011 ****
  2484.   then a='/* ' z='*/ '
  2485.   else a= z=
  2486.   fi
  2487. ! echo "$a#define strchr index $z/* Use old-fashioned name for strchr()?  */"
  2488.   
  2489.   : strrchr
  2490.   cat >a.c <<'EOF'
  2491. --- 1022,1028 ----
  2492.   then a='/* ' z='*/ '
  2493.   else a= z=
  2494.   fi
  2495. ! echo >>a.h "$a#define strchr index $z/* Use old-fashioned name for strchr()?  */"
  2496.   
  2497.   : strrchr
  2498.   cat >a.c <<'EOF'
  2499. ***************
  2500. *** 1020,1026 ****
  2501.   then a='/* ' z='*/ '
  2502.   else a= z=
  2503.   fi
  2504. ! echo "$a#define strrchr rindex $z/* Use old-fashioned name for strrchr()?  */"
  2505.   
  2506.   : bad_unlink
  2507.   cat >a.c <<'EOF'
  2508. --- 1037,1043 ----
  2509.   then a='/* ' z='*/ '
  2510.   else a= z=
  2511.   fi
  2512. ! echo >>a.h "$a#define strrchr rindex $z/* Use old-fashioned name for strrchr()?  */"
  2513.   
  2514.   : bad_unlink
  2515.   cat >a.c <<'EOF'
  2516. ***************
  2517. *** 1033,1039 ****
  2518.   else b=1
  2519.   fi
  2520.   rm -f a.c || exit
  2521. ! echo "#define bad_unlink $b /* Does unlink() fail on unwritable files?  */"
  2522.   
  2523.   : has_vfork, has_fork, has_spawn, has_wait, has_waitpid, RCS_SHELL
  2524.   cat >a.c <<'EOF'
  2525. --- 1050,1056 ----
  2526.   else b=1
  2527.   fi
  2528.   rm -f a.c || exit
  2529. ! echo >>a.h "#define bad_unlink $b /* Does unlink() fail on unwritable files?  */"
  2530.   
  2531.   : has_vfork, has_fork, has_spawn, has_wait, has_waitpid, RCS_SHELL
  2532.   cat >a.c <<'EOF'
  2533. ***************
  2534. *** 1092,1114 ****
  2535.   then has_vfork=1
  2536.   else has_vfork=0
  2537.   fi
  2538. ! echo "#define has_vfork $has_vfork /* Does vfork() work?  */"
  2539.   h=$has_vfork
  2540.   case $h in
  2541.   0)
  2542.       $RM || exit
  2543.       ($CL a.c $L && ./a.out) >&2 && h=1
  2544.   esac
  2545. ! echo "#define has_fork $h /* Does fork() work?  */"
  2546.   $RM || exit
  2547.   if ($CL -DTRY_VFORK=$has_vfork -DTRY_WAITPID=1 a.c $L && ./a.out) >&2
  2548.   then h=1
  2549.   else h=0
  2550.   fi
  2551. ! echo "#define has_spawn 0 /* Does spawn*() work?  */"
  2552. ! echo "#define has_wait 1 /* Does wait() work?  */"
  2553. ! echo "#define has_waitpid $h /* Does waitpid() work?  */"
  2554. ! echo '#define RCS_SHELL "/bin/sh" /* shell to run RCS subprograms */'
  2555.   
  2556.   : has_vfprintf
  2557.   cat >a.c <<'EOF'
  2558. --- 1109,1131 ----
  2559.   then has_vfork=1
  2560.   else has_vfork=0
  2561.   fi
  2562. ! echo >>a.h "#define has_vfork $has_vfork /* Does vfork() work?  */"
  2563.   h=$has_vfork
  2564.   case $h in
  2565.   0)
  2566.       $RM || exit
  2567.       ($CL a.c $L && ./a.out) >&2 && h=1
  2568.   esac
  2569. ! echo >>a.h "#define has_fork $h /* Does fork() work?  */"
  2570.   $RM || exit
  2571.   if ($CL -DTRY_VFORK=$has_vfork -DTRY_WAITPID=1 a.c $L && ./a.out) >&2
  2572.   then h=1
  2573.   else h=0
  2574.   fi
  2575. ! echo >>a.h "#define has_spawn 0 /* Does spawn*() work?  */"
  2576. ! echo >>a.h "#define has_wait 1 /* Does wait() work?  */"
  2577. ! echo >>a.h "#define has_waitpid $h /* Does waitpid() work?  */"
  2578. ! echo >>a.h '#define RCS_SHELL "/bin/sh" /* shell to run RCS subprograms */'
  2579.   
  2580.   : has_vfprintf
  2581.   cat >a.c <<'EOF'
  2582. ***************
  2583. *** 1133,1139 ****
  2584.   then h=1
  2585.   else h=0
  2586.   fi
  2587. ! echo "#define has_vfprintf $h /* Does vfprintf() work?  */"
  2588.   
  2589.   : has__doprintf, has__doprnt
  2590.   case $h in
  2591. --- 1150,1156 ----
  2592.   then h=1
  2593.   else h=0
  2594.   fi
  2595. ! echo >>a.h "#define has_vfprintf $h /* Does vfprintf() work?  */"
  2596.   
  2597.   : has__doprintf, has__doprnt
  2598.   case $h in
  2599. ***************
  2600. *** 1166,1172 ****
  2601.       else h=0
  2602.       fi
  2603.   esac
  2604. ! echo "$a#define has__doprintf $h $z/* Does _doprintf() work?  */"
  2605.   case $h in
  2606.   0)
  2607.       $RM || exit
  2608. --- 1183,1189 ----
  2609.       else h=0
  2610.       fi
  2611.   esac
  2612. ! echo >>a.h "$a#define has__doprintf $h $z/* Does _doprintf() work?  */"
  2613.   case $h in
  2614.   0)
  2615.       $RM || exit
  2616. ***************
  2617. *** 1178,1184 ****
  2618.   *)
  2619.       h=? a='/* ' z='*/ '
  2620.   esac
  2621. ! echo "$a#define has__doprnt $h $z/* Does _doprnt() work?  */"
  2622.   
  2623.   : EXIT_FAILURE
  2624.   cat >a.c <<'EOF'
  2625. --- 1195,1201 ----
  2626.   *)
  2627.       h=? a='/* ' z='*/ '
  2628.   esac
  2629. ! echo >>a.h "$a#define has__doprnt $h $z/* Does _doprnt() work?  */"
  2630.   
  2631.   : EXIT_FAILURE
  2632.   cat >a.c <<'EOF'
  2633. ***************
  2634. *** 1190,1199 ****
  2635.   then a= z=
  2636.   else a='/* ' z='*/ '
  2637.   fi
  2638. ! echo "$a#undef EXIT_FAILURE $z/* Uncomment this if EXIT_FAILURE is broken.  */"
  2639.   
  2640.   : large_memory
  2641. ! echo "#define large_memory $has_mmap /* Can main memory hold entire RCS files?  */"
  2642.   
  2643.   : ULONG_MAX
  2644.   cat >a.c <<'EOF'
  2645. --- 1207,1216 ----
  2646.   then a= z=
  2647.   else a='/* ' z='*/ '
  2648.   fi
  2649. ! echo >>a.h "$a#undef EXIT_FAILURE $z/* Uncomment this if EXIT_FAILURE is broken.  */"
  2650.   
  2651.   : large_memory
  2652. ! echo >>a.h "#define large_memory $has_mmap /* Can main memory hold entire RCS files?  */"
  2653.   
  2654.   : ULONG_MAX
  2655.   cat >a.c <<'EOF'
  2656. ***************
  2657. *** 1213,1219 ****
  2658.   then a='/* ' z='*/ '
  2659.   else a= z=
  2660.   fi
  2661. ! echo "$a#undef ULONG_MAX $z/* Uncomment this if ULONG_MAX is broken (e.g. < 0).  */"
  2662.   
  2663.   : struct utimbuf
  2664.   cat >a.c <<'EOF'
  2665. --- 1230,1236 ----
  2666.   then a='/* ' z='*/ '
  2667.   else a= z=
  2668.   fi
  2669. ! echo >>a.h "$a#undef ULONG_MAX $z/* Uncomment this if ULONG_MAX is broken (e.g. < 0).  */"
  2670.   
  2671.   : struct utimbuf
  2672.   cat >a.c <<'EOF'
  2673. ***************
  2674. *** 1226,1238 ****
  2675.   then a='/* ' z=' */'
  2676.   else a= z=
  2677.   fi
  2678. ! echo "${a}struct utimbuf { time_t actime, modtime; };$z /* Uncomment this if needed.  */"
  2679.   
  2680.   : CO
  2681. ! echo "#define CO \"${RCSPREFIX}co\" /* name of 'co' program */"
  2682.   
  2683.   : COMPAT2
  2684. ! echo "#define COMPAT2 $COMPAT2 /* Are version 2 files supported?  */"
  2685.   
  2686.   : DATEFORM
  2687.   cat >a.c <<'EOF'
  2688. --- 1243,1255 ----
  2689.   then a='/* ' z=' */'
  2690.   else a= z=
  2691.   fi
  2692. ! echo >>a.h "${a}struct utimbuf { time_t actime, modtime; };$z /* Uncomment this if needed.  */"
  2693.   
  2694.   : CO
  2695. ! echo >>a.h "#define CO \"${RCSPREFIX}co\" /* name of 'co' program */"
  2696.   
  2697.   : COMPAT2
  2698. ! echo >>a.h "#define COMPAT2 $COMPAT2 /* Are version 2 files supported?  */"
  2699.   
  2700.   : DATEFORM
  2701.   cat >a.c <<'EOF'
  2702. ***************
  2703. *** 1244,1283 ****
  2704.   01)    f=%.2d;;
  2705.   *)    f=%02d
  2706.   esac
  2707. ! echo "#define DATEFORM \"$f.$f.$f.$f.$f.${f}\" /* e.g. 01.01.01.01.01.01 */"
  2708.   
  2709.   : DIFF
  2710. ! echo "#define DIFF \"${DIFF}\" /* name of 'diff' program */"
  2711.   
  2712.   : DIFF3
  2713. ! echo "#define DIFF3 \"${DIFF3}\" /* name of 'diff3' program */"
  2714.   
  2715. ! echo "#define DIFF3_A $DIFF3_A /* Does diff3 have an -A option?  */"
  2716.   
  2717. ! echo "#define DIFF3_BIN $DIFF3_BIN /* Is diff3 user-visible (not the /usr/lib auxiliary)?  */"
  2718.   
  2719.   : DIFF_FLAGS
  2720.   dfs=
  2721.   for df in $DIFF_FLAGS
  2722.   do dfs="$dfs, \"${df}\""
  2723.   done
  2724. ! echo "#define DIFF_FLAGS $dfs /* Make diff output suitable for RCS.  */"
  2725.   
  2726.   : DIFF_L
  2727. ! echo "#define DIFF_L $DIFF_L /* Does diff -L work? */"
  2728.   
  2729.   : DIFF_SUCCESS, DIFF_FAILURE, DIFF_TROUBLE
  2730. ! cat <<EOF
  2731.   #define DIFF_SUCCESS $DIFF_SUCCESS /* DIFF status if no differences are found */
  2732.   #define DIFF_FAILURE $DIFF_FAILURE /* DIFF status if differences are found */
  2733.   #define DIFF_TROUBLE $DIFF_TROUBLE /* DIFF status if trouble */
  2734.   EOF
  2735.   
  2736.   : ED
  2737. ! echo "#define ED \"${ED}\" /* name of 'ed' program (used only if !DIFF3_BIN) */"
  2738.   
  2739.   : MERGE
  2740. ! echo "#define MERGE \"${RCSPREFIX}merge\" /* name of 'merge' program */"
  2741.   
  2742.   : '*SLASH*', ROOTPATH, TMPDIR, X_DEFAULT
  2743.   case ${PWD-`pwd`} in
  2744. --- 1261,1300 ----
  2745.   01)    f=%.2d;;
  2746.   *)    f=%02d
  2747.   esac
  2748. ! echo >>a.h "#define DATEFORM \"$f.$f.$f.$f.$f.${f}\" /* e.g. 01.01.01.01.01.01 */"
  2749.   
  2750.   : DIFF
  2751. ! echo >>a.h "#define DIFF \"${DIFF}\" /* name of 'diff' program */"
  2752.   
  2753.   : DIFF3
  2754. ! echo >>a.h "#define DIFF3 \"${DIFF3}\" /* name of 'diff3' program */"
  2755.   
  2756. ! echo >>a.h "#define DIFF3_A $DIFF3_A /* Does diff3 have an -A option?  */"
  2757.   
  2758. ! echo >>a.h "#define DIFF3_BIN $DIFF3_BIN /* Is diff3 user-visible (not the /usr/lib auxiliary)?  */"
  2759.   
  2760.   : DIFF_FLAGS
  2761.   dfs=
  2762.   for df in $DIFF_FLAGS
  2763.   do dfs="$dfs, \"${df}\""
  2764.   done
  2765. ! echo >>a.h "#define DIFF_FLAGS $dfs /* Make diff output suitable for RCS.  */"
  2766.   
  2767.   : DIFF_L
  2768. ! echo >>a.h "#define DIFF_L $DIFF_L /* Does diff -L work? */"
  2769.   
  2770.   : DIFF_SUCCESS, DIFF_FAILURE, DIFF_TROUBLE
  2771. ! cat >>a.h <<'EOF'
  2772.   #define DIFF_SUCCESS $DIFF_SUCCESS /* DIFF status if no differences are found */
  2773.   #define DIFF_FAILURE $DIFF_FAILURE /* DIFF status if differences are found */
  2774.   #define DIFF_TROUBLE $DIFF_TROUBLE /* DIFF status if trouble */
  2775.   EOF
  2776.   
  2777.   : ED
  2778. ! echo >>a.h "#define ED \"${ED}\" /* name of 'ed' program (used only if !DIFF3_BIN) */"
  2779.   
  2780.   : MERGE
  2781. ! echo >>a.h "#define MERGE \"${RCSPREFIX}merge\" /* name of 'merge' program */"
  2782.   
  2783.   : '*SLASH*', ROOTPATH, TMPDIR, X_DEFAULT
  2784.   case ${PWD-`pwd`} in
  2785. ***************
  2786. *** 1298,1304 ****
  2787.   *)
  2788.       echo >&2 "cannot deduce SLASH"; exit 1
  2789.   esac
  2790. ! cat <<EOF
  2791.   #define TMPDIR "${SLASH}tmp" /* default directory for temporary files */
  2792.   #define SLASH $qSLASH /* principal pathname separator */
  2793.   #define SLASHes $SLASHes /* \`case SLASHes:' labels all pathname separators */
  2794. --- 1315,1321 ----
  2795.   *)
  2796.       echo >&2 "cannot deduce SLASH"; exit 1
  2797.   esac
  2798. ! cat >>a.h <<'EOF'
  2799.   #define TMPDIR "${SLASH}tmp" /* default directory for temporary files */
  2800.   #define SLASH $qSLASH /* principal pathname separator */
  2801.   #define SLASHes $SLASHes /* \`case SLASHes:' labels all pathname separators */
  2802. ***************
  2803. *** 1312,1318 ****
  2804.   "$SLASH"*) a=1;;
  2805.   *) a=0
  2806.   esac
  2807. ! echo "#define DIFF_ABSOLUTE $a /* Is ROOTPATH(DIFF) true?  */"
  2808.   
  2809.   : ALL_ABSOLUTE
  2810.   a=1
  2811. --- 1329,1335 ----
  2812.   "$SLASH"*) a=1;;
  2813.   *) a=0
  2814.   esac
  2815. ! echo >>a.h "#define DIFF_ABSOLUTE $a /* Is ROOTPATH(DIFF) true?  */"
  2816.   
  2817.   : ALL_ABSOLUTE
  2818.   a=1
  2819. ***************
  2820. *** 1323,1344 ****
  2821.       *) a=0 break
  2822.       esac
  2823.   done
  2824. ! echo "#define ALL_ABSOLUTE $a /* Are all subprograms absolute pathnames?  */"
  2825.   
  2826.   : SENDMAIL
  2827.   case $SENDMAIL in
  2828.   '') a='/* ' z='*/ ';;
  2829.   *) a= z=
  2830.   esac
  2831. ! echo "$a#define SENDMAIL $SENDMAIL $z/* how to send mail */"
  2832.   
  2833.   : TZ_must_be_set
  2834. ! echo "#define TZ_must_be_set 0 /* Must TZ be set for gmtime() to work?  */"
  2835.   
  2836.   
  2837.   : standard function declarations
  2838.   
  2839. ! cat <<'EOF'
  2840.   
  2841.   
  2842.   
  2843. --- 1340,1361 ----
  2844.       *) a=0 break
  2845.       esac
  2846.   done
  2847. ! echo >>a.h "#define ALL_ABSOLUTE $a /* Are all subprograms absolute pathnames?  */"
  2848.   
  2849.   : SENDMAIL
  2850.   case $SENDMAIL in
  2851.   '') a='/* ' z='*/ ';;
  2852.   *) a= z=
  2853.   esac
  2854. ! echo >>a.h "$a#define SENDMAIL $SENDMAIL $z/* how to send mail */"
  2855.   
  2856.   : TZ_must_be_set
  2857. ! echo >>a.h "#define TZ_must_be_set 0 /* Must TZ be set for gmtime() to work?  */"
  2858.   
  2859.   
  2860.   : standard function declarations
  2861.   
  2862. ! cat >>a.h <<'EOF'
  2863.   
  2864.   
  2865.   
  2866. ***************
  2867. *** 1352,1358 ****
  2868.   #endif
  2869.   EOF
  2870.   
  2871. ! cat >a.ha <<EOF
  2872.   
  2873.   #if has_ftruncate
  2874.       int ftruncate P((int,off_t));
  2875. --- 1369,1375 ----
  2876.   #endif
  2877.   EOF
  2878.   
  2879. ! cat >a.ha <<'EOF'
  2880.   
  2881.   #if has_ftruncate
  2882.       int ftruncate P((int,off_t));
  2883.