home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume44 / dist-3.0 / patch33 < prev    next >
Encoding:
Internet Message Format  |  1994-09-05  |  44.4 KB

  1. From: ram@acri.fr (Raphael Manfredi)
  2. Newsgroups: comp.sources.misc
  3. Subject: v44i047:  dist-3.0 - Configure script generator and related tools, Patch33
  4. Date: 5 Sep 1994 11:34:30 -0500
  5. Organization: Advanced Computer Research Institute, Lyon, France
  6. Sender: kent@sparky.sterling.com
  7. Approved: kent@sparky.sterling.com
  8. Message-ID: <34fham$25q@sparky.sterling.com>
  9. X-Md4-Signature: 6f11db6115aa4ced9b422f6e21c94b0e
  10.  
  11. Submitted-by: ram@acri.fr (Raphael Manfredi)
  12. Posting-number: Volume 44, Issue 47
  13. Archive-name: dist-3.0/patch33
  14. Environment: UNIX, Perl, RCS
  15. Patch-To: dist-3.0: Volume 39, Issue 5-32
  16.  
  17. [The latest patch for dist version 3.0 is #35.]
  18.  
  19. System: dist version 3.0
  20. Patch #: 33
  21. Priority: LOW
  22. Subject: patch #32, continued
  23. Date: Mon Aug 29 18:47:30 MET DST 1994
  24. From: Raphael Manfredi <ram@acri.fr>
  25.  
  26. Description:
  27.     See patch #32.
  28.  
  29.  
  30. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your dist source
  31.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  32.     If you don't have the patch program, apply the following by hand,
  33.     or get patch (version 2.0, latest patchlevel).
  34.  
  35.     After patching:
  36.         *** DO NOTHING--INSTALL ALL PATCHES UP THROUGH #35 FIRST ***
  37.  
  38.     If patch indicates that patchlevel is the wrong version, you may need
  39.     to apply one or more previous patches, or the patch may already
  40.     have been applied.  See the patchlevel.h file to find out what has or
  41.     has not been applied.  In any event, don't continue with the patch.
  42.  
  43.     If you are missing previous patches they can be obtained from me:
  44.  
  45.         Raphael Manfredi <ram@acri.fr>
  46.  
  47.     If you send a mail message of the following form it will greatly speed
  48.     processing:
  49.  
  50.         Subject: Command
  51.         @SH mailpatch PATH dist 3.0 LIST
  52.                ^ note the c
  53.  
  54.     where PATH is a return path FROM ME TO YOU either in Internet notation,
  55.     or in bang notation from some well-known host, and LIST is the number
  56.     of one or more patches you need, separated by spaces, commas, and/or
  57.     hyphens.  Saying 35- says everything from 35 to the end.
  58.  
  59.     To get some more detailed instructions, send me the following mail:
  60.  
  61.         Subject: Command
  62.         @SH mailhelp PATH
  63.  
  64.  
  65. Index: patchlevel.h
  66. Prereq: 32
  67. 4c4
  68. < #define PATCHLEVEL 32
  69. ---
  70. > #define PATCHLEVEL 33
  71.  
  72. Index: mcon/U/spitshell.U
  73. Prereq: 3.0.1.1
  74. *** mcon/U/spitshell.U.old    Mon Aug 29 18:38:37 1994
  75. --- mcon/U/spitshell.U    Mon Aug 29 18:38:37 1994
  76. ***************
  77. *** 1,4 ****
  78. ! ?RCS: $Id: spitshell.U,v 3.0.1.1 1993/09/13 16:12:58 ram Exp $
  79.   ?RCS:
  80.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  81.   ?RCS: 
  82. --- 1,4 ----
  83. ! ?RCS: $Id: spitshell.U,v 3.0.1.2 1994/08/29 16:33:00 ram Exp $
  84.   ?RCS:
  85.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  86.   ?RCS: 
  87. ***************
  88. *** 9,14 ****
  89. --- 9,18 ----
  90.   ?RCS: of the source tree for dist 3.0.
  91.   ?RCS:
  92.   ?RCS: $Log: spitshell.U,v $
  93. + ?RCS: Revision 3.0.1.2  1994/08/29  16:33:00  ram
  94. + ?RCS: patch32: don't create spitshell under the UU directory
  95. + ?RCS: patch32: allow for cat in /bin or /usr/bin
  96. + ?RCS:
  97.   ?RCS: Revision 3.0.1.1  1993/09/13  16:12:58  ram
  98.   ?RCS: patch10: made #!-failure message more friendly (WAD)
  99.   ?RCS:
  100. ***************
  101. *** 29,34 ****
  102. --- 33,39 ----
  103.   ?S:    This variable contains the string #! if this system supports that
  104.   ?S:    construct.
  105.   ?S:.
  106. + ?T:xcat
  107.   : see if sh knows # comments
  108.   echo " "
  109.   echo "Checking your sh to see if it knows about # comments..." >&4
  110. ***************
  111. *** 38,44 ****
  112.       spitshell=cat
  113.       echo " "
  114.       echo "Okay, let's see if #! works on this system..."
  115. !     echo "#!/bin/cat" >try
  116.       $eunicefix try
  117.       chmod +x try
  118.       ./try > today
  119. --- 43,51 ----
  120.       spitshell=cat
  121.       echo " "
  122.       echo "Okay, let's see if #! works on this system..."
  123. !     xcat=/bin/cat
  124. !     test -r $xcat || xcat=/usr/bin/cat
  125. !     echo "#!$xcat" >try
  126.       $eunicefix try
  127.       chmod +x try
  128.       ./try > today
  129. ***************
  130. *** 46,52 ****
  131.           echo "It does."
  132.           sharpbang='#!'
  133.       else
  134. !         echo "#! /bin/cat" > try
  135.           $eunicefix try
  136.           chmod +x try
  137.           ./try > today
  138. --- 53,59 ----
  139.           echo "It does."
  140.           sharpbang='#!'
  141.       else
  142. !         echo "#! $xcat" > try
  143.           $eunicefix try
  144.           chmod +x try
  145.           ./try > today
  146. ***************
  147. *** 61,70 ****
  148. --- 68,80 ----
  149.   else
  150.       echo "Your sh doesn't grok # comments--I will strip them later on."
  151.       shsharp=false
  152. + ?X: The spitshell script will be perused, so leave it out the UU directory
  153. +     cd ..
  154.       echo "exec grep -v '^[     ]*#'" >spitshell
  155.       chmod +x spitshell
  156.       $eunicefix spitshell
  157.       spitshell=`pwd`/spitshell
  158. +     cd UU
  159.       echo "I presume that if # doesn't work, #! won't work either!"
  160.       sharpbang=': use '
  161.   fi
  162.  
  163. Index: mcon/U/d_casti32.U
  164. *** mcon/U/d_casti32.U.old    Mon Aug 29 18:34:42 1994
  165. --- mcon/U/d_casti32.U    Mon Aug 29 18:34:43 1994
  166. ***************
  167. *** 0 ****
  168. --- 1,80 ----
  169. + ?RCS: $Id: d_casti32.U,v 3.0.1.1 1994/08/29 16:07:06 ram Exp $
  170. + ?RCS:
  171. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  172. + ?RCS: 
  173. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  174. + ?RCS: as specified in the README file that comes with the distribution.
  175. + ?RCS: You may reuse parts of this distribution only within the terms of
  176. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  177. + ?RCS: of the source tree for dist 3.0.
  178. + ?RCS:
  179. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  180. + ?RCS:
  181. + ?RCS: $Log: d_casti32.U,v $
  182. + ?RCS: Revision 3.0.1.1  1994/08/29  16:07:06  ram
  183. + ?RCS: patch32: created by ADO
  184. + ?RCS:
  185. + ?X:
  186. + ?X:    Can the compiler cast large floats to 32-bit integers?
  187. + ?X:
  188. + ?MAKE:d_casti32: cat cc ccflags rm intsize Setvar test
  189. + ?MAKE:    -pick add $@ %<
  190. + ?S:d_casti32:
  191. + ?S:    This variable conditionally defines CASTI32, which indicates
  192. + ?S:    whether the C compiler can cast large floats to 32-bit ints.
  193. + ?S:.
  194. + ?C:CASTI32:
  195. + ?C:    This symbol is defined if the C compiler can cast negative
  196. + ?C:    or large floating point numbers to 32-bit ints.
  197. + ?C:.
  198. + ?T:xxx yyy
  199. + ?H:#$d_casti32    CASTI32        /**/
  200. + ?H:.
  201. + ?LINT:set d_casti32
  202. + : check for ability to cast large floats to 32-bit ints.
  203. + echo " "
  204. + echo 'Checking whether your C compiler can cast large floats to int32.' >&4
  205. + if $test "$intsize" -eq 4; then
  206. +     xxx=int
  207. + else
  208. +     xxx=long
  209. + fi
  210. + $cat >try.c <<EOCP
  211. + #include <sys/types.h>
  212. + #include <signal.h>
  213. + blech() { exit(3); }
  214. + main()
  215. + {
  216. +     $xxx i32;
  217. +     double f;
  218. +     int result = 0;
  219. +     signal(SIGFPE, blech);
  220. +     f = (double) 0x7fffffff;
  221. +     f = 10 * f;
  222. +     i32  = ($xxx) f;
  223. +     if (i32 != ($xxx) f)
  224. +         result |= 1;
  225. +     exit(result);
  226. + }
  227. + EOCP
  228. + if $cc -o try $ccflags try.c >/dev/null 2>&1; then
  229. +     ./try
  230. +     yyy=$?
  231. + else
  232. +     echo "(I can't seem to compile the test program--assuming it can't)"
  233. +     yyy=1
  234. + fi
  235. + case "$yyy" in
  236. + 0)    val="$define"
  237. +     echo "Yup, it can."
  238. +     ;;
  239. + *)    val="$undef"
  240. +     echo "Nope, it can't."
  241. +     ;;
  242. + esac
  243. + set d_casti32
  244. + eval $setvar
  245. + $rm -f try try.*
  246.  
  247. Index: mcon/U/d_voidsig.U
  248. Prereq: 3.0.1.1
  249. *** mcon/U/d_voidsig.U.old    Mon Aug 29 18:35:09 1994
  250. --- mcon/U/d_voidsig.U    Mon Aug 29 18:35:09 1994
  251. ***************
  252. *** 1,4 ****
  253. ! ?RCS: $Id: d_voidsig.U,v 3.0.1.1 1994/06/20 06:59:54 ram Exp $
  254.   ?RCS:
  255.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  256.   ?RCS: 
  257. --- 1,4 ----
  258. ! ?RCS: $Id: d_voidsig.U,v 3.0.1.2 1994/08/29 16:20:35 ram Exp $
  259.   ?RCS:
  260.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  261.   ?RCS: 
  262. ***************
  263. *** 9,14 ****
  264. --- 9,17 ----
  265.   ?RCS: of the source tree for dist 3.0.
  266.   ?RCS:
  267.   ?RCS: $Log: d_voidsig.U,v $
  268. + ?RCS: Revision 3.0.1.2  1994/08/29  16:20:35  ram
  269. + ?RCS: patch32: now sets signal_t only once d_voidsig is known (WED)
  270. + ?RCS:
  271.   ?RCS: Revision 3.0.1.1  1994/06/20  06:59:54  ram
  272.   ?RCS: patch30: now properly sets signal_t when re-using previous value
  273.   ?RCS:
  274. ***************
  275. *** 50,64 ****
  276.   if $contains 'int.*\*[     ]*signal' $$.tmp >/dev/null 2>&1 ; then
  277.       echo "You have int (*signal())() instead of void." >&4
  278.       val="$undef"
  279. -     signal_t="int"
  280.   elif $contains 'void.*\*[     ]*signal' $$.tmp >/dev/null 2>&1 ; then
  281.       echo "You have void (*signal())() instead of int." >&4
  282.       val="$define"
  283. -     signal_t="void"
  284.   elif $contains 'extern[     ]*[(\*]*signal' $$.tmp >/dev/null 2>&1 ; then
  285.       echo "You have int (*signal())() instead of void." >&4
  286.       val="$undef"
  287. -     signal_t="int"
  288.   else
  289.       case "$d_voidsig" in
  290.       '')
  291. --- 53,64 ----
  292. ***************
  293. *** 66,81 ****
  294.           dflt=void
  295.           rp="What type does your signal handler return?"
  296.           . ./myread
  297. !         signal_t="$ans"
  298. !         ;;
  299. !     *) echo "As you already told me, signal handler returns $signal_t." >&4;;
  300. !     esac
  301. !     case "$signal_t" in
  302. !     void) val="$define";;
  303. !     *) val="$undef";;
  304.       esac
  305.   fi
  306.   set d_voidsig
  307.   eval $setvar
  308.   $rm -f $$.tmp
  309.   
  310. --- 66,86 ----
  311.           dflt=void
  312.           rp="What type does your signal handler return?"
  313.           . ./myread
  314. !         case "$ans" in
  315. !         v*) val="$define";;
  316. !         *) val="$undef";;
  317. !         esac;;
  318. !     "$define")
  319. !         echo "As you already told me, signal handler returns void." >&4;;
  320. !     *)
  321. !         echo "As you already told me, signal handler returns int." >&4;;
  322.       esac
  323.   fi
  324.   set d_voidsig
  325.   eval $setvar
  326. + case "$d_voidsig" in
  327. + "$define") signal_t="void";;
  328. + *) signal_t="int";;
  329. + esac
  330.   $rm -f $$.tmp
  331.   
  332.  
  333. Index: mcon/U/d_dbl_dig.U
  334. *** mcon/U/d_dbl_dig.U.old    Mon Aug 29 18:34:46 1994
  335. --- mcon/U/d_dbl_dig.U    Mon Aug 29 18:34:46 1994
  336. ***************
  337. *** 0 ****
  338. --- 1,60 ----
  339. + ?RCS: $Id: d_dbl_dig.U,v 3.0.1.1 1994/08/29 16:07:28 ram Exp $
  340. + ?RCS:
  341. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  342. + ?RCS: 
  343. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  344. + ?RCS: as specified in the README file that comes with the distribution.
  345. + ?RCS: You may reuse parts of this distribution only within the terms of
  346. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  347. + ?RCS: of the source tree for dist 3.0.
  348. + ?RCS:
  349. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  350. + ?RCS:
  351. + ?RCS: $Log: d_dbl_dig.U,v $
  352. + ?RCS: Revision 3.0.1.1  1994/08/29  16:07:28  ram
  353. + ?RCS: patch32: created by ADO
  354. + ?RCS:
  355. + ?MAKE:d_dbl_dig: Myread contains cat rm Setvar i_limits i_float \
  356. +     cppstdin cppflags cppminus
  357. + ?MAKE:    -pick add $@ %<
  358. + ?S:d_dbl_dig:
  359. + ?S:    This variable conditionally defines d_dbl_dig if this system's
  360. + ?S:    header files provide DBL_DIG, which is the number of significant
  361. + ?S:    digits in a double precision number.
  362. + ?S:.
  363. + ?C:HAS_DBL_DIG:
  364. + ?C:    This symbol, if defined, indicates that this system's <float.h>
  365. + ?C:    or <limits.h> defines the symbol DBL_DIG, which is the number
  366. + ?C:    of significant digits in a double precision number.  If this
  367. + ?C:    symbol is not defined, a guess of 15 is usually pretty good.
  368. + ?C:.
  369. + ?H:#$d_dbl_dig HAS_DBL_DIG     /* */
  370. + ?H:.
  371. + ?LINT:set d_dbl_dig
  372. + : See if number of significant digits in a double precision number is known
  373. + echo " "
  374. + $cat >dbl_dig.c <<EOM
  375. + #$i_limits I_LIMITS
  376. + #$i_float I_FLOAT
  377. + #ifdef I_LIMITS
  378. + #include <limits.h>
  379. + #endif
  380. + #ifdef I_FLOAT
  381. + #include <float.h>
  382. + #endif
  383. + #ifdef DBL_DIG
  384. + printf("Contains DBL_DIG");
  385. + #endif
  386. + EOM
  387. + $cppstdin $cppflags $cppminus < dbl_dig.c >dbl_dig.E 2>/dev/null
  388. + if $contains 'DBL_DIG' dbl_dig.E >/dev/null 2>&1; then
  389. +     echo "DBL_DIG found." >&4
  390. +     val="$define"
  391. + else
  392. +     echo "DBL_DIG NOT found." >&4
  393. +     val="$undef"
  394. + fi
  395. + $rm -f dbl_dig.?
  396. + set d_dbl_dig
  397. + eval $setvar
  398.  
  399. Index: mcon/U/fpostype.U
  400. Prereq: 3.0.1.1
  401. *** mcon/U/fpostype.U.old    Mon Aug 29 18:35:11 1994
  402. --- mcon/U/fpostype.U    Mon Aug 29 18:35:11 1994
  403. ***************
  404. *** 1,4 ****
  405. ! ?RCS: $Id: fpostype.U,v 3.0.1.1 1994/06/20 06:59:59 ram Exp $
  406.   ?RCS:
  407.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  408.   ?RCS: 
  409. --- 1,4 ----
  410. ! ?RCS: $Id: fpostype.U,v 3.0.1.2 1994/08/29 16:20:52 ram Exp $
  411.   ?RCS:
  412.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  413.   ?RCS: 
  414. ***************
  415. *** 9,18 ****
  416.   ?RCS: of the source tree for dist 3.0.
  417.   ?RCS:
  418.   ?RCS: $Log: fpostype.U,v $
  419.   ?RCS: Revision 3.0.1.1  1994/06/20  06:59:59  ram
  420.   ?RCS: patch30: created
  421.   ?RCS:
  422. ! ?MAKE:fpostype: Myread Oldconfig contains Findhdr Setvar
  423.   ?MAKE:    -pick add $@ %<
  424.   ?S:fpostype:
  425.   ?S:    This variable defines Fpos_t to be something like fpost_t, long, 
  426. --- 9,21 ----
  427.   ?RCS: of the source tree for dist 3.0.
  428.   ?RCS:
  429.   ?RCS: $Log: fpostype.U,v $
  430. + ?RCS: Revision 3.0.1.2  1994/08/29  16:20:52  ram
  431. + ?RCS: patch32: now uses new Typedef unit to compute type information
  432. + ?RCS:
  433.   ?RCS: Revision 3.0.1.1  1994/06/20  06:59:59  ram
  434.   ?RCS: patch30: created
  435.   ?RCS:
  436. ! ?MAKE:fpostype: Myread Typedef
  437.   ?MAKE:    -pick add $@ %<
  438.   ?S:fpostype:
  439.   ?S:    This variable defines Fpos_t to be something like fpost_t, long, 
  440. ***************
  441. *** 25,46 ****
  442.   ?C:.
  443.   ?H:#define Fpos_t $fpostype        /* File position type */
  444.   ?H:.
  445. - ?LINT:set fpostype
  446.   : see what type file positions are declared as in the library
  447.   echo " "
  448. ! case "$fpostype" in
  449. ! '')
  450. !     if $contains 'fpos_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
  451. !         dflt='fpos_t'
  452. !     else
  453. !         dflt='long'
  454. !     fi
  455. !     ;;
  456. ! *)  dflt="$fpostype";;
  457. ! esac
  458.   rp="What is the type for file position used by fsetpos()?"
  459.   . ./myread
  460. ! val="$ans"
  461. ! set fpostype
  462. ! eval $setvar
  463.   
  464. --- 28,39 ----
  465.   ?C:.
  466.   ?H:#define Fpos_t $fpostype        /* File position type */
  467.   ?H:.
  468.   : see what type file positions are declared as in the library
  469. + set fpos_t fpostype long stdio.h sys/types.h
  470. + eval $typedef
  471.   echo " "
  472. ! dflt="$fpostype"
  473.   rp="What is the type for file position used by fsetpos()?"
  474.   . ./myread
  475. ! fpostype="$ans"
  476.   
  477.  
  478. Index: mcon/U/scriptdir.U
  479. Prereq: 3.0
  480. *** mcon/U/scriptdir.U.old    Mon Aug 29 18:38:36 1994
  481. --- mcon/U/scriptdir.U    Mon Aug 29 18:38:36 1994
  482. ***************
  483. *** 1,4 ****
  484. ! ?RCS: $Id: scriptdir.U,v 3.0 1993/08/18 12:09:45 ram Exp $
  485.   ?RCS:
  486.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  487.   ?RCS: 
  488. --- 1,4 ----
  489. ! ?RCS: $Id: scriptdir.U,v 3.0.1.1 1994/08/29 16:32:04 ram Exp $
  490.   ?RCS:
  491.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  492.   ?RCS: 
  493. ***************
  494. *** 9,19 ****
  495.   ?RCS: of the source tree for dist 3.0.
  496.   ?RCS:
  497.   ?RCS: $Log: scriptdir.U,v $
  498.   ?RCS: Revision 3.0  1993/08/18  12:09:45  ram
  499.   ?RCS: Baseline for dist 3.0 netwide release.
  500.   ?RCS:
  501.   ?MAKE:scriptdir scriptdirexp installscript: afs cat test Getfile Loc \
  502. !     Oldconfig +bin
  503.   ?MAKE:    -pick add $@ %<
  504.   ?S:scriptdir:
  505.   ?S:    This variable holds the name of the directory in which the user wants
  506. --- 9,22 ----
  507.   ?RCS: of the source tree for dist 3.0.
  508.   ?RCS:
  509.   ?RCS: $Log: scriptdir.U,v $
  510. + ?RCS: Revision 3.0.1.1  1994/08/29  16:32:04  ram
  511. + ?RCS: patch32: now uses installation prefix
  512. + ?RCS:
  513.   ?RCS: Revision 3.0  1993/08/18  12:09:45  ram
  514.   ?RCS: Baseline for dist 3.0 netwide release.
  515.   ?RCS:
  516.   ?MAKE:scriptdir scriptdirexp installscript: afs cat test Getfile Loc \
  517. !     Oldconfig +bin prefix
  518.   ?MAKE:    -pick add $@ %<
  519.   ?S:scriptdir:
  520.   ?S:    This variable holds the name of the directory in which the user wants
  521. ***************
  522. *** 45,51 ****
  523.   ?H:#define SCRIPTDIR "$scriptdir"    /**/
  524.   ?H:#define SCRIPTDIR_EXP "$scriptdirexp"    /**/
  525.   ?H:.
  526. ! : determine where public executables go
  527.   case "$scriptdir" in
  528.   '')
  529.       dflt="$bin"
  530. --- 48,54 ----
  531.   ?H:#define SCRIPTDIR "$scriptdir"    /**/
  532.   ?H:#define SCRIPTDIR_EXP "$scriptdirexp"    /**/
  533.   ?H:.
  534. ! : determine where public executable scripts go
  535.   case "$scriptdir" in
  536.   '')
  537.       dflt="$bin"
  538. ***************
  539. *** 53,58 ****
  540. --- 56,62 ----
  541.       $test -d /usr/share/scripts && dflt=/usr/share/scripts
  542.       $test -d /usr/share/bin && dflt=/usr/share/bin
  543.       $test -d /usr/local/script && dflt=/usr/local/script
  544. +     $test -d $prefix/script && dflt=$prefix/script
  545.       ;;
  546.   *)  dflt="$scriptdir"
  547.       ;;
  548.  
  549. Index: mcon/U/prefix.U
  550. *** mcon/U/prefix.U.old    Mon Aug 29 18:35:24 1994
  551. --- mcon/U/prefix.U    Mon Aug 29 18:35:24 1994
  552. ***************
  553. *** 0 ****
  554. --- 1,51 ----
  555. + ?RCS: $Id: prefix.U,v 3.0.1.1 1994/08/29 16:31:34 ram Exp $
  556. + ?RCS:
  557. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  558. + ?RCS: 
  559. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  560. + ?RCS: as specified in the README file that comes with the distribution.
  561. + ?RCS: You may reuse parts of this distribution only within the terms of
  562. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  563. + ?RCS: of the source tree for dist 3.0.
  564. + ?RCS:
  565. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  566. + ?RCS:
  567. + ?RCS: $Log: prefix.U,v $
  568. + ?RCS: Revision 3.0.1.1  1994/08/29  16:31:34  ram
  569. + ?RCS: patch32: created by ADO
  570. + ?RCS:
  571. + ?MAKE:prefix: Getfile Loc Oldconfig cat package
  572. + ?MAKE:    -pick add $@ %<
  573. + ?S:prefix:
  574. + ?S:    This variable holds the name of the directory below which the
  575. + ?S:    user will install the package.  Usually, this is /usr/local, and
  576. + ?S:    executables go in /usr/local/bin, library stuff in /usr/local/lib,
  577. + ?S:    man pages in /usr/local/man, etc.  It is only used to set defaults
  578. + ?S: for things in bin.U, mansrc.U, privlib.U, or scriptdir.U.
  579. + ?S:.
  580. + : determine root of directory hierarchy where package will be installed.
  581. + case "$prefix" in
  582. + '')
  583. +     dflt=`./loc . /usr/local /usr/local /local /opt /usr`
  584. +     ;;
  585. + *)
  586. +     dflt="$prefix"
  587. +     ;;
  588. + esac
  589. + $cat <<EOM
  590. + By default, $package will be installed in $dflt/bin, manual
  591. + pages under $dflt/man, etc..., i.e. with $dflt as prefix for
  592. + all installation directories. Typically set to /usr/local, but you
  593. + may choose /usr if you wish to install $package among your system
  594. + binaries. If you wish to have binaries under /bin but manual pages
  595. + under /usr/local/man, that's ok: you will be prompted separately
  596. + for each of the installation directories, the prefix being only used
  597. + to set defaults.
  598. + EOM
  599. + fn=d~
  600. + rp='Installation prefix to use?'
  601. + . ./getfile
  602. + prefix="$ans"
  603.  
  604. Index: mcon/U/lseektype.U
  605. Prereq: 3.0
  606. *** mcon/U/lseektype.U.old    Mon Aug 29 18:35:21 1994
  607. --- mcon/U/lseektype.U    Mon Aug 29 18:35:21 1994
  608. ***************
  609. *** 1,4 ****
  610. ! ?RCS: $Id: lseektype.U,v 3.0 1993/08/18 12:09:08 ram Exp $
  611.   ?RCS:
  612.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  613.   ?RCS: 
  614. --- 1,4 ----
  615. ! ?RCS: $Id: lseektype.U,v 3.0.1.1 1994/08/29 16:30:10 ram Exp $
  616.   ?RCS:
  617.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  618.   ?RCS: 
  619. ***************
  620. *** 9,18 ****
  621.   ?RCS: of the source tree for dist 3.0.
  622.   ?RCS:
  623.   ?RCS: $Log: lseektype.U,v $
  624.   ?RCS: Revision 3.0  1993/08/18  12:09:08  ram
  625.   ?RCS: Baseline for dist 3.0 netwide release.
  626.   ?RCS:
  627. ! ?MAKE:lseektype: Myread Oldconfig Loc contains Findhdr
  628.   ?MAKE:    -pick add $@ %<
  629.   ?S:lseektype:
  630.   ?S:    This variable defines lseektype to be something like off_t, long, 
  631. --- 9,21 ----
  632.   ?RCS: of the source tree for dist 3.0.
  633.   ?RCS:
  634.   ?RCS: $Log: lseektype.U,v $
  635. + ?RCS: Revision 3.0.1.1  1994/08/29  16:30:10  ram
  636. + ?RCS: patch32: now uses new Typedef unit to compute type information
  637. + ?RCS:
  638.   ?RCS: Revision 3.0  1993/08/18  12:09:08  ram
  639.   ?RCS: Baseline for dist 3.0 netwide release.
  640.   ?RCS:
  641. ! ?MAKE:lseektype: Myread Typedef
  642.   ?MAKE:    -pick add $@ %<
  643.   ?S:lseektype:
  644.   ?S:    This variable defines lseektype to be something like off_t, long, 
  645. ***************
  646. *** 27,44 ****
  647.   ?H:#define Off_t $lseektype        /* <offset> type */
  648.   ?H:.
  649.   : see what type lseek is declared as in the kernel
  650. ! case "$lseektype" in
  651. ! '')
  652. !     if $contains 'off_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
  653. !         dflt='off_t';
  654. !     else
  655. !         dflt='long';
  656. !     fi
  657. !     ;;
  658. ! *)  dflt="$lseektype"
  659. !     ;;
  660. ! esac
  661.   echo " "
  662.   rp="What type is lseek's offset on this system declared as?"
  663.   . ./myread
  664.   lseektype="$ans"
  665. --- 30,39 ----
  666.   ?H:#define Off_t $lseektype        /* <offset> type */
  667.   ?H:.
  668.   : see what type lseek is declared as in the kernel
  669. ! set off_t lseektype long stdio.h sys/types.h
  670. ! eval $typedef
  671.   echo " "
  672. + dflt="$lseektype"
  673.   rp="What type is lseek's offset on this system declared as?"
  674.   . ./myread
  675.   lseektype="$ans"
  676.  
  677. Index: mcon/U/d_perror.U
  678. Prereq: 3.0
  679. *** mcon/U/d_perror.U.old    Mon Aug 29 18:35:00 1994
  680. --- mcon/U/d_perror.U    Mon Aug 29 18:35:00 1994
  681. ***************
  682. *** 1,4 ****
  683. ! ?RCS: $Id: d_perror.U,v 3.0 1993/08/18 12:06:45 ram Exp $
  684.   ?RCS:
  685.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  686.   ?RCS: 
  687. --- 1,4 ----
  688. ! ?RCS: $Id: d_perror.U,v 3.0.1.1 1994/08/29 16:11:38 ram Exp $
  689.   ?RCS:
  690.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  691.   ?RCS: 
  692. ***************
  693. *** 9,14 ****
  694. --- 9,17 ----
  695.   ?RCS: of the source tree for dist 3.0.
  696.   ?RCS:
  697.   ?RCS: $Log: d_perror.U,v $
  698. + ?RCS: Revision 3.0.1.1  1994/08/29  16:11:38  ram
  699. + ?RCS: patch32: always define HAS_PERROR even when not used in C code
  700. + ?RCS:
  701.   ?RCS: Revision 3.0  1993/08/18  12:06:45  ram
  702.   ?RCS: Baseline for dist 3.0 netwide release.
  703.   ?RCS:
  704. ***************
  705. *** 20,35 ****
  706.   ?S:    that the perror() routine is not available to print system
  707.   ?S:    error messages.
  708.   ?S:.
  709. ! ?C:HAS_PERROR:
  710.   ?C:    This symbol, if defined, indicates that the perror() routine is
  711.   ?C:    available to print system error messages. If not defined, you should
  712.   ?C:    use your own diagnostic routine...
  713.   ?C:.
  714. ! ?C:perror:
  715.   ?C:    This symbol is maped to null if the  perror() routine is not
  716.   ?C:    available to print system error messages.
  717.   ?C:.
  718. ! ?H:#$d_perror HAS_PERROR        /**/
  719.   ?H:?%<:#ifndef HAS_PERROR
  720.   ?H:?%<:#define perror(s)    ;        /* mapped to a null statement */
  721.   ?H:?%<:#endif
  722. --- 23,38 ----
  723.   ?S:    that the perror() routine is not available to print system
  724.   ?S:    error messages.
  725.   ?S:.
  726. ! ?C:HAS_PERROR ~ %<:
  727.   ?C:    This symbol, if defined, indicates that the perror() routine is
  728.   ?C:    available to print system error messages. If not defined, you should
  729.   ?C:    use your own diagnostic routine...
  730.   ?C:.
  731. ! ?C:perror ~ %<:
  732.   ?C:    This symbol is maped to null if the  perror() routine is not
  733.   ?C:    available to print system error messages.
  734.   ?C:.
  735. ! ?H:?%<:#$d_perror HAS_PERROR    /**/
  736.   ?H:?%<:#ifndef HAS_PERROR
  737.   ?H:?%<:#define perror(s)    ;        /* mapped to a null statement */
  738.   ?H:?%<:#endif
  739.  
  740. Index: mcon/U/Typedef.U
  741. *** mcon/U/Typedef.U.old    Mon Aug 29 18:34:40 1994
  742. --- mcon/U/Typedef.U    Mon Aug 29 18:34:40 1994
  743. ***************
  744. *** 0 ****
  745. --- 1,56 ----
  746. + ?RCS: $Id: Typedef.U,v 3.0.1.1 1994/08/29 16:05:14 ram Exp $
  747. + ?RCS:
  748. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  749. + ?RCS: 
  750. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  751. + ?RCS: as specified in the README file that comes with the distribution.
  752. + ?RCS: You may reuse parts of this distribution only within the terms of
  753. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  754. + ?RCS: of the source tree for dist 3.0.
  755. + ?RCS:
  756. + ?RCS: $Log: Typedef.U,v $
  757. + ?RCS: Revision 3.0.1.1  1994/08/29  16:05:14  ram
  758. + ?RCS: patch32: created
  759. + ?RCS:
  760. + ?X:
  761. + ?X: This unit checks for the definition of a given typedef.
  762. + ?X:
  763. + ?X: To use it, say:
  764. + ?X: set typedef val_t default [includes]
  765. + ?X: eval $typedef
  766. + ?X:
  767. + ?MAKE:Typedef: cppstdin cppminus cppflags rm contains Oldconfig
  768. + ?MAKE:    -pick add $@ %<
  769. + ?LINT:define typedef
  770. + ?V:typedef
  771. + ?S:typedef:
  772. + ?S:    This shell variable is used internally by Configure to check
  773. + ?S:    wether a given typedef is defined or not. A typical use is:
  774. + ?S:        set typedef val_t default [includes]
  775. + ?S:        eval $typedef
  776. + ?S:    That will return val_t set to default if the typedef was not found,
  777. + ?S:    to typedef otherwise. If no includes are specified, look in sys/types.h.
  778. + ?S:.
  779. + ?T:type var def inclist val inc
  780. + : define an is-a-typedef? function
  781. + typedef='type=$1; var=$2; def=$3; shift; shift; shift; inclist=$@;
  782. + case "$inclist" in
  783. + "") inclist="sys/types.h";;
  784. + esac;
  785. + eval "val=\$$var";
  786. + case "$val" in
  787. + "")
  788. +     $rm -f temp.c;
  789. +     for inc in $inclist; do
  790. +         echo "#include <$inc>" >>temp.c;
  791. +     done;
  792. +     $cppstdin $cppflags $cppminus < temp.c >temp.E 2>/dev/null;
  793. +     if $contains $type temp.E >/dev/null 2>&1; then
  794. +         eval "$var=$type";
  795. +     else
  796. +         eval "$var=$def";
  797. +     fi;
  798. +     $rm -f temp.?;;
  799. + *) eval "$var=$val";;
  800. + esac'
  801.  
  802. Index: mcon/man/mconfig.SH
  803. Prereq: 3.0.1.9
  804. *** mcon/man/mconfig.SH.old    Mon Aug 29 18:38:40 1994
  805. --- mcon/man/mconfig.SH    Mon Aug 29 18:38:41 1994
  806. ***************
  807. *** 20,26 ****
  808.   .TH METACONFIG $manext "Version $VERSION PL$PATCHLEVEL"
  809.   ''' @(#) Manual page for metaconfig
  810.   '''
  811. ! ''' $Id: mconfig.SH,v 3.0.1.9 1994/06/20 07:10:14 ram Exp $
  812.   '''
  813.   '''  Copyright (c) 1991-1993, Raphael Manfredi
  814.   '''  
  815. --- 20,26 ----
  816.   .TH METACONFIG $manext "Version $VERSION PL$PATCHLEVEL"
  817.   ''' @(#) Manual page for metaconfig
  818.   '''
  819. ! ''' $Id: mconfig.SH,v 3.0.1.10 1994/08/29 16:33:40 ram Exp $
  820.   '''
  821.   '''  Copyright (c) 1991-1993, Raphael Manfredi
  822.   '''  
  823. ***************
  824. *** 31,36 ****
  825. --- 31,39 ----
  826.   '''  of the source tree for dist 3.0.
  827.   '''
  828.   ''' $Log: mconfig.SH,v $
  829. + ''' Revision 3.0.1.10  1994/08/29  16:33:40  ram
  830. + ''' patch32: documented new Typedef.U unit for typedef lookup
  831. + '''
  832.   ''' Revision 3.0.1.9  1994/06/20  07:10:14  ram
  833.   ''' patch30: added -L option for easier unit testing
  834.   ''' patch30: new -D and -U options supported by Configure
  835. ***************
  836. *** 1544,1549 ****
  837. --- 1547,1566 ----
  838.   getting the old answers from \fIconfig.sh\fR or providing useful hints
  839.   when running on a given platform for the first time. See the \fIConfigure
  840.   Hints\fR paragraph for more information about hints.
  841. + .TP
  842. + Typedef.U
  843. + This unit produces the \fI\$typedef\fR shell variable, used internally by
  844. + \fIConfigure\fR to check whether a typedef exists or not. A typical
  845. + use is:
  846. + .Ex
  847. + set typedef val_t default [ includes ]
  848. + eval \$\&typedef
  849. + .Ef
  850. + This will set the variable \fIval_t\fR to the value of \fIdefault\fR if the
  851. + typedef was not found among the listed include files, or to \fItypedef\fR
  852. + if found. If no include files are specified, the unit looks
  853. + in \fI<sys/types.h>\fR only. If you specifiy some includes, only those are
  854. + looked at.
  855.   .TP
  856.   Setvar.U
  857.   This unit produces the \fI$setvar\fR variable, which is used internally
  858.  
  859. Index: mcon/U/pidtype.U
  860. Prereq: 3.0
  861. *** mcon/U/pidtype.U.old    Mon Aug 29 18:35:24 1994
  862. --- mcon/U/pidtype.U    Mon Aug 29 18:35:24 1994
  863. ***************
  864. *** 1,4 ****
  865. ! ?RCS: $Id: pidtype.U,v 3.0 1993/08/18 12:09:33 ram Exp $
  866.   ?RCS:
  867.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  868.   ?RCS: 
  869. --- 1,4 ----
  870. ! ?RCS: $Id: pidtype.U,v 3.0.1.1 1994/08/29 16:31:27 ram Exp $
  871.   ?RCS:
  872.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  873.   ?RCS: 
  874. ***************
  875. *** 9,18 ****
  876.   ?RCS: of the source tree for dist 3.0.
  877.   ?RCS:
  878.   ?RCS: $Log: pidtype.U,v $
  879.   ?RCS: Revision 3.0  1993/08/18  12:09:33  ram
  880.   ?RCS: Baseline for dist 3.0 netwide release.
  881.   ?RCS:
  882. ! ?MAKE:pidtype: Myread Oldconfig contains Findhdr
  883.   ?MAKE:    -pick add $@ %<
  884.   ?S:pidtype:
  885.   ?S:    This variable defines PIDTYPE to be something like pid_t, int, 
  886. --- 9,21 ----
  887.   ?RCS: of the source tree for dist 3.0.
  888.   ?RCS:
  889.   ?RCS: $Log: pidtype.U,v $
  890. + ?RCS: Revision 3.0.1.1  1994/08/29  16:31:27  ram
  891. + ?RCS: patch32: now uses new Typedef unit to compute type information
  892. + ?RCS:
  893.   ?RCS: Revision 3.0  1993/08/18  12:09:33  ram
  894.   ?RCS: Baseline for dist 3.0 netwide release.
  895.   ?RCS:
  896. ! ?MAKE:pidtype: Myread Typedef
  897.   ?MAKE:    -pick add $@ %<
  898.   ?S:pidtype:
  899.   ?S:    This variable defines PIDTYPE to be something like pid_t, int, 
  900. ***************
  901. *** 26,41 ****
  902.   ?H:#define Pid_t $pidtype        /* PID type */
  903.   ?H:.
  904.   : see what type pids are declared as in the kernel
  905. ! case "$pidtype" in
  906. ! '')
  907. !     if $contains 'pid_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
  908. !         dflt='pid_t';
  909. !     else
  910. !         dflt="int"
  911. !     fi
  912. !     ;;
  913. ! *)  dflt="$pidtype";;
  914. ! esac
  915.   echo " "
  916.   rp="What type are process ids on this system declared as?"
  917.   . ./myread
  918. --- 29,37 ----
  919.   ?H:#define Pid_t $pidtype        /* PID type */
  920.   ?H:.
  921.   : see what type pids are declared as in the kernel
  922. ! set pid_t pidtype int stdio.h sys/types.h
  923. ! eval $typedef
  924. ! dflt="$pidtype"
  925.   echo " "
  926.   rp="What type are process ids on this system declared as?"
  927.   . ./myread
  928.  
  929. Index: mcon/U/privlib.U
  930. Prereq: 3.0.1.1
  931. *** mcon/U/privlib.U.old    Mon Aug 29 18:38:35 1994
  932. --- mcon/U/privlib.U    Mon Aug 29 18:38:35 1994
  933. ***************
  934. *** 1,4 ****
  935. ! ?RCS: $Id: privlib.U,v 3.0.1.1 1993/09/13 16:12:34 ram Exp $
  936.   ?RCS:
  937.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  938.   ?RCS: 
  939. --- 1,4 ----
  940. ! ?RCS: $Id: privlib.U,v 3.0.1.2 1994/08/29 16:31:52 ram Exp $
  941.   ?RCS:
  942.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  943.   ?RCS: 
  944. ***************
  945. *** 9,14 ****
  946. --- 9,17 ----
  947.   ?RCS: of the source tree for dist 3.0.
  948.   ?RCS:
  949.   ?RCS: $Log: privlib.U,v $
  950. + ?RCS: Revision 3.0.1.2  1994/08/29  16:31:52  ram
  951. + ?RCS: patch32: now uses installation prefix
  952. + ?RCS:
  953.   ?RCS: Revision 3.0.1.1  1993/09/13  16:12:34  ram
  954.   ?RCS: patch10: added support for /local/lib (WAD)
  955.   ?RCS: patch10: prompt phrasing made more explicit (WAD)
  956. ***************
  957. *** 16,23 ****
  958.   ?RCS: Revision 3.0  1993/08/18  12:09:35  ram
  959.   ?RCS: Baseline for dist 3.0 netwide release.
  960.   ?RCS:
  961. ! ?MAKE:privlib privlibexp installprivlib: afs package test cat Getfile \
  962. !     Oldconfig
  963.   ?MAKE:    -pick add $@ %<
  964.   ?S:privlib:
  965.   ?S:    This variable contains the eventual value of the PRIVLIB symbol,
  966. --- 19,26 ----
  967.   ?RCS: Revision 3.0  1993/08/18  12:09:35  ram
  968.   ?RCS: Baseline for dist 3.0 netwide release.
  969.   ?RCS:
  970. ! ?MAKE:privlib privlibexp installprivlib: afs package cat Getfile \
  971. !     Oldconfig prefix
  972.   ?MAKE:    -pick add $@ %<
  973.   ?S:privlib:
  974.   ?S:    This variable contains the eventual value of the PRIVLIB symbol,
  975. ***************
  976. *** 50,58 ****
  977.   : determine where private executables go
  978.   case "$privlib" in
  979.   '')
  980. !     dflt=/usr/lib/$package
  981. !     $test -d /usr/local/lib && dflt=/usr/local/lib/$package
  982. !     $test -d /local/lib && dflt=/local/lib/$package
  983.       ;;
  984.   *)  dflt="$privlib"
  985.       ;;
  986. --- 53,59 ----
  987.   : determine where private executables go
  988.   case "$privlib" in
  989.   '')
  990. !     dflt=$prefix/lib/$package
  991.       ;;
  992.   *)  dflt="$privlib"
  993.       ;;
  994.  
  995. Index: mcon/U/MailAuthor.U
  996. Prereq: 3.0.1.3
  997. *** mcon/U/MailAuthor.U.old    Mon Aug 29 18:34:39 1994
  998. --- mcon/U/MailAuthor.U    Mon Aug 29 18:34:39 1994
  999. ***************
  1000. *** 1,4 ****
  1001. ! ?RCS: $Id: MailAuthor.U,v 3.0.1.3 1993/10/16 13:47:30 ram Exp $
  1002.   ?RCS:
  1003.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1004.   ?RCS: 
  1005. --- 1,4 ----
  1006. ! ?RCS: $Id: MailAuthor.U,v 3.0.1.4 1994/08/29 16:05:09 ram Exp $
  1007.   ?RCS:
  1008.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1009.   ?RCS: 
  1010. ***************
  1011. *** 11,16 ****
  1012. --- 11,19 ----
  1013.   ?RCS: Original Author: Graham Stoney <greyham@research.canon.oz.au>
  1014.   ?RCS:
  1015.   ?RCS: $Log: MailAuthor.U,v $
  1016. + ?RCS: Revision 3.0.1.4  1994/08/29  16:05:09  ram
  1017. + ?RCS: patch32: avoid message sending if they said no previously
  1018. + ?RCS:
  1019.   ?RCS: Revision 3.0.1.3  1993/10/16  13:47:30  ram
  1020.   ?RCS: patch12: now makes sure user-specified address is in Internet format
  1021.   ?RCS:
  1022. ***************
  1023. *** 84,89 ****
  1024. --- 87,96 ----
  1025.   EOM
  1026.       rp='Should I send mail to <MAINTLOC>?'
  1027.       dflt=y
  1028. + ?X: Ensure default is 'n' if question has been asked already, in case they
  1029. + ?X: run Configure -d next time and answered 'n' the first time. Therefore,
  1030. + ?X: an empty nomail will be created later on even if no mail is sent.
  1031. +     $test -f ../.config/nomail && dflt=n
  1032.   fi
  1033.   . ./myread
  1034.   case "$ans" in
  1035. ***************
  1036. *** 167,178 ****
  1037.   
  1038.   $atsh package $usermail $package $baserev $patchlevel$opt
  1039.   EOM
  1040. !     $rm -f ../.config/mailauthor
  1041.       cp ../patchlevel.h ../.config/mailauthor
  1042.       ;;
  1043.   *)
  1044.       case "$dflt" in
  1045. !     "y") echo "Oh well, maybe next time.";;
  1046.       esac
  1047.       ;;
  1048.   esac
  1049. --- 174,188 ----
  1050.   
  1051.   $atsh package $usermail $package $baserev $patchlevel$opt
  1052.   EOM
  1053. !     $rm -f ../.config/mailauthor ../.config/nomail
  1054.       cp ../patchlevel.h ../.config/mailauthor
  1055.       ;;
  1056.   *)
  1057.       case "$dflt" in
  1058. !     "y")
  1059. !         echo "Oh well, maybe next time."
  1060. !         cp /dev/null ../.config/nomail
  1061. !         ;;
  1062.       esac
  1063.       ;;
  1064.   esac
  1065.  
  1066. Index: mcon/U/bin.U
  1067. Prereq: 3.0.1.1
  1068. *** mcon/U/bin.U.old    Mon Aug 29 18:34:40 1994
  1069. --- mcon/U/bin.U    Mon Aug 29 18:34:40 1994
  1070. ***************
  1071. *** 1,4 ****
  1072. ! ?RCS: $Id: bin.U,v 3.0.1.1 1993/09/13 15:56:51 ram Exp $
  1073.   ?RCS:
  1074.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1075.   ?RCS: 
  1076. --- 1,4 ----
  1077. ! ?RCS: $Id: bin.U,v 3.0.1.2 1994/08/29 16:05:28 ram Exp $
  1078.   ?RCS:
  1079.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1080.   ?RCS: 
  1081. ***************
  1082. *** 9,21 ****
  1083.   ?RCS: of the source tree for dist 3.0.
  1084.   ?RCS:
  1085.   ?RCS: $Log: bin.U,v $
  1086.   ?RCS: Revision 3.0.1.1  1993/09/13  15:56:51  ram
  1087.   ?RCS: patch10: made prompting more explicit (WAD)
  1088.   ?RCS:
  1089.   ?RCS: Revision 3.0  1993/08/18  12:05:26  ram
  1090.   ?RCS: Baseline for dist 3.0 netwide release.
  1091.   ?RCS:
  1092. ! ?MAKE:bin binexp installbin: Getfile Loc Oldconfig afs cat
  1093.   ?MAKE:    -pick add $@ %<
  1094.   ?S:bin:
  1095.   ?S:    This variable holds the name of the directory in which the user wants
  1096. --- 9,24 ----
  1097.   ?RCS: of the source tree for dist 3.0.
  1098.   ?RCS:
  1099.   ?RCS: $Log: bin.U,v $
  1100. + ?RCS: Revision 3.0.1.2  1994/08/29  16:05:28  ram
  1101. + ?RCS: patch32: now uses installation prefix
  1102. + ?RCS:
  1103.   ?RCS: Revision 3.0.1.1  1993/09/13  15:56:51  ram
  1104.   ?RCS: patch10: made prompting more explicit (WAD)
  1105.   ?RCS:
  1106.   ?RCS: Revision 3.0  1993/08/18  12:05:26  ram
  1107.   ?RCS: Baseline for dist 3.0 netwide release.
  1108.   ?RCS:
  1109. ! ?MAKE:bin binexp installbin: Getfile Oldconfig afs cat prefix
  1110.   ?MAKE:    -pick add $@ %<
  1111.   ?S:bin:
  1112.   ?S:    This variable holds the name of the directory in which the user wants
  1113. ***************
  1114. *** 48,54 ****
  1115.   echo " "
  1116.   case "$bin" in
  1117.   '')
  1118. !     dflt=`./loc . /bin /usr/local/bin /usr/lbin /usr/local /usr/bin`
  1119.       ;;
  1120.   *)
  1121.       dflt="$bin"
  1122. --- 51,57 ----
  1123.   echo " "
  1124.   case "$bin" in
  1125.   '')
  1126. !     dflt="$prefix/bin"
  1127.       ;;
  1128.   *)
  1129.       dflt="$bin"
  1130.  
  1131. Index: mcon/U/d_isascii.U
  1132. *** mcon/U/d_isascii.U.old    Mon Aug 29 18:34:53 1994
  1133. --- mcon/U/d_isascii.U    Mon Aug 29 18:34:53 1994
  1134. ***************
  1135. *** 0 ****
  1136. --- 1,54 ----
  1137. + ?RCS: $Id: d_isascii.U,v 3.0.1.1 1994/08/29 16:09:32 ram Exp $
  1138. + ?RCS:
  1139. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1140. + ?RCS: 
  1141. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  1142. + ?RCS: as specified in the README file that comes with the distribution.
  1143. + ?RCS: You may reuse parts of this distribution only within the terms of
  1144. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1145. + ?RCS: of the source tree for dist 3.0.
  1146. + ?RCS:
  1147. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  1148. + ?RCS:
  1149. + ?RCS: $Log: d_isascii.U,v $
  1150. + ?RCS: Revision 3.0.1.1  1994/08/29  16:09:32  ram
  1151. + ?RCS: patch32: created by ADO
  1152. + ?RCS:
  1153. + ?MAKE:d_isascii: cc cat ccflags rm libs Setvar
  1154. + ?MAKE:    -pick add $@ %<
  1155. + ?S:d_isascii:
  1156. + ?S:    This variable conditionally defines the HAS_ISASCII constant,
  1157. + ?S:    which indicates to the C program that isascii() is available.
  1158. + ?S:.
  1159. + ?C:HAS_ISASCII:
  1160. + ?C:    This manifest constant lets the C program know that isascii 
  1161. + ?C:    is available.
  1162. + ?C:.
  1163. + ?H:#$d_isascii HAS_ISASCII        /**/
  1164. + ?H:.
  1165. + ?LINT:set d_isascii
  1166. + ?X: Can't use Inlibc because isascii() might be a macro.
  1167. + : Look for isascii
  1168. + echo " "
  1169. + $cat >isascii.c <<'EOCP'
  1170. + #include <stdio.h>
  1171. + #include <ctype.h>
  1172. + main() {
  1173. +     int c = 'A';
  1174. +     if (isascii(c))
  1175. +         exit(0);
  1176. +     else
  1177. +         exit(1);
  1178. + }
  1179. + EOCP
  1180. + if $cc $ccflags -o isascii isascii.c $libs >/dev/null 2>&1 ; then
  1181. +     echo "isascii() found." >&4
  1182. +     val="$define"
  1183. + else
  1184. +     echo "isascii() NOT found." >&4
  1185. +     val="$undef"
  1186. + fi
  1187. + set d_isascii
  1188. + eval $setvar
  1189. + $rm -f isascii*
  1190.  
  1191. Index: mcon/U/sizetype.U
  1192. *** mcon/U/sizetype.U.old    Mon Aug 29 18:38:37 1994
  1193. --- mcon/U/sizetype.U    Mon Aug 29 18:38:37 1994
  1194. ***************
  1195. *** 0 ****
  1196. --- 1,40 ----
  1197. + ?RCS: $Id: sizetype.U,v 3.0.1.1 1994/08/29 16:32:10 ram Exp $
  1198. + ?RCS:
  1199. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1200. + ?RCS: 
  1201. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  1202. + ?RCS: as specified in the README file that comes with the distribution.
  1203. + ?RCS: You may reuse parts of this distribution only within the terms of
  1204. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1205. + ?RCS: of the source tree for dist 3.0.
  1206. + ?RCS:
  1207. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  1208. + ?RCS:
  1209. + ?RCS: $Log: sizetype.U,v $
  1210. + ?RCS: Revision 3.0.1.1  1994/08/29  16:32:10  ram
  1211. + ?RCS: patch32: created by ADO
  1212. + ?RCS:
  1213. + ?MAKE:sizetype: Myread Typedef
  1214. + ?MAKE:    -pick add $@ %<
  1215. + ?S:sizetype:
  1216. + ?S:    This variable defines sizetype to be something like size_t, 
  1217. + ?S:    unsigned long, or whatever type is used to declare length 
  1218. + ?S:    parameters for string functions.
  1219. + ?S:.
  1220. + ?C:Size_t:
  1221. + ?C:    This symbol holds the type used to declare length parameters
  1222. + ?C:    for string functions.  It is usually size_t, but may be
  1223. + ?C:    unsigned long, int, etc.  It may be necessary to include
  1224. + ?C:    <sys/types.h> to get any typedef'ed information.
  1225. + ?C:.
  1226. + ?H:#define Size_t $sizetype     /* length paramater for string functions */
  1227. + ?H:.
  1228. + : see what type is used for size_t
  1229. + set size_t sizetype 'unsigned int' stdio.h sys/types.h
  1230. + eval $typedef
  1231. + dflt="$sizetype"
  1232. + echo " "
  1233. + rp="What type is used for the length parameter for string functions?"
  1234. + . ./myread
  1235. + sizetype="$ans"
  1236.  
  1237. Index: mcon/U/lib.U
  1238. Prereq: 3.0
  1239. *** mcon/U/lib.U.old    Mon Aug 29 18:35:18 1994
  1240. --- mcon/U/lib.U    Mon Aug 29 18:35:18 1994
  1241. ***************
  1242. *** 1,4 ****
  1243. ! ?RCS: $Id: lib.U,v 3.0 1993/08/18 12:08:56 ram Exp $
  1244.   ?RCS:
  1245.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1246.   ?RCS: 
  1247. --- 1,4 ----
  1248. ! ?RCS: $Id: lib.U,v 3.0.1.1 1994/08/29 16:27:40 ram Exp $
  1249.   ?RCS:
  1250.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1251.   ?RCS: 
  1252. ***************
  1253. *** 9,18 ****
  1254.   ?RCS: of the source tree for dist 3.0.
  1255.   ?RCS:
  1256.   ?RCS: $Log: lib.U,v $
  1257.   ?RCS: Revision 3.0  1993/08/18  12:08:56  ram
  1258.   ?RCS: Baseline for dist 3.0 netwide release.
  1259.   ?RCS:
  1260. ! ?MAKE:lib libexp: Getfile Loc Oldconfig
  1261.   ?MAKE:    -pick add $@ %<
  1262.   ?S:lib:
  1263.   ?S:    This variable holds the name of the directory in which the user wants
  1264. --- 9,21 ----
  1265.   ?RCS: of the source tree for dist 3.0.
  1266.   ?RCS:
  1267.   ?RCS: $Log: lib.U,v $
  1268. + ?RCS: Revision 3.0.1.1  1994/08/29  16:27:40  ram
  1269. + ?RCS: patch32: now uses installation prefix to set the default
  1270. + ?RCS:
  1271.   ?RCS: Revision 3.0  1993/08/18  12:08:56  ram
  1272.   ?RCS: Baseline for dist 3.0 netwide release.
  1273.   ?RCS:
  1274. ! ?MAKE:lib libexp: Getfile Loc Oldconfig prefix
  1275.   ?MAKE:    -pick add $@ %<
  1276.   ?S:lib:
  1277.   ?S:    This variable holds the name of the directory in which the user wants
  1278. ***************
  1279. *** 26,32 ****
  1280.   ?S:.
  1281.   : determine where public libraries go
  1282.   case "$lib" in
  1283. ! '') dflt=`./loc . "." /usr/local/lib /usr/lib /lib`;;
  1284.   *)  dflt="$lib";;
  1285.   esac
  1286.   echo " "
  1287. --- 29,35 ----
  1288.   ?S:.
  1289.   : determine where public libraries go
  1290.   case "$lib" in
  1291. ! '') dflt=`./loc . "." $prefix/lib /usr/local/lib /usr/lib /lib`;;
  1292.   *)  dflt="$lib";;
  1293.   esac
  1294.   echo " "
  1295.  
  1296. Index: mcon/U/libc.U
  1297. Prereq: 3.0.1.5
  1298. *** mcon/U/libc.U.old    Mon Aug 29 18:35:20 1994
  1299. --- mcon/U/libc.U    Mon Aug 29 18:35:20 1994
  1300. ***************
  1301. *** 1,4 ****
  1302. ! ?RCS: $Id: libc.U,v 3.0.1.5 1994/06/20 07:03:24 ram Exp $
  1303.   ?RCS:
  1304.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1305.   ?RCS: 
  1306. --- 1,4 ----
  1307. ! ?RCS: $Id: libc.U,v 3.0.1.6 1994/08/29 16:28:10 ram Exp $
  1308.   ?RCS:
  1309.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1310.   ?RCS: 
  1311. ***************
  1312. *** 9,14 ****
  1313. --- 9,17 ----
  1314.   ?RCS: of the source tree for dist 3.0.
  1315.   ?RCS:
  1316.   ?RCS: $Log: libc.U,v $
  1317. + ?RCS: Revision 3.0.1.6  1994/08/29  16:28:10  ram
  1318. + ?RCS: patch32: added I-type symbols for nm output parsing on Linux
  1319. + ?RCS:
  1320.   ?RCS: Revision 3.0.1.5  1994/06/20  07:03:24  ram
  1321.   ?RCS: patch30: checks are now presented by succession of if/elif
  1322.   ?RCS: patch30: uniformized checks for shared objects with new so symbol
  1323. ***************
  1324. *** 207,214 ****
  1325.   ?X:
  1326.   xscan='eval "<libc.ptf $com >libc.list"; $echo $n ".$c" >&4'
  1327.   xrun='eval "<libc.tmp $com >libc.list"; echo "done" >&4'
  1328. ! ?X: BSD-like output
  1329. ! if com="$sed -n -e 's/^.* [ADTS]  *_[_.]*//p' -e 's/^.* [ADTS] //p'";\
  1330.       eval $xscan;\
  1331.       $contains '^fprintf$' libc.list >/dev/null 2>&1; then
  1332.           eval $xrun
  1333. --- 210,217 ----
  1334.   ?X:
  1335.   xscan='eval "<libc.ptf $com >libc.list"; $echo $n ".$c" >&4'
  1336.   xrun='eval "<libc.tmp $com >libc.list"; echo "done" >&4'
  1337. ! ?X: BSD-like output, I-type for Linux
  1338. ! if com="$sed -n -e 's/^.* [ADTSI]  *_[_.]*//p' -e 's/^.* [ADTSI] //p'";\
  1339.       eval $xscan;\
  1340.       $contains '^fprintf$' libc.list >/dev/null 2>&1; then
  1341.           eval $xrun
  1342.  
  1343. Index: mcon/U/d_setlnbuf.U
  1344. *** mcon/U/d_setlnbuf.U.old    Mon Aug 29 18:35:02 1994
  1345. --- mcon/U/d_setlnbuf.U    Mon Aug 29 18:35:02 1994
  1346. ***************
  1347. *** 0 ****
  1348. --- 1,36 ----
  1349. + ?RCS: $Id: d_setlnbuf.U,v 3.0.1.1 1994/08/29 16:11:57 ram Exp $
  1350. + ?RCS:
  1351. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1352. + ?RCS: 
  1353. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  1354. + ?RCS: as specified in the README file that comes with the distribution.
  1355. + ?RCS: You may reuse parts of this distribution only within the terms of
  1356. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1357. + ?RCS: of the source tree for dist 3.0.
  1358. + ?RCS:
  1359. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  1360. + ?RCS:
  1361. + ?RCS: $Log: d_setlnbuf.U,v $
  1362. + ?RCS: Revision 3.0.1.1  1994/08/29  16:11:57  ram
  1363. + ?RCS: patch32: created by ADO
  1364. + ?RCS:
  1365. + ?MAKE:d_setlinebuf: Inlibc
  1366. + ?MAKE:    -pick add $@ %<
  1367. + ?S:d_setlinebuf:
  1368. + ?S:    This variable conditionally defines the HAS_SETLINEBUF symbol, which
  1369. + ?S:    indicates to the C program that the setlinebuf() routine is available
  1370. + ?S:    to change stderr or stdout from block-buffered or unbuffered to a
  1371. + ?S:    line-buffered mode.
  1372. + ?S:.
  1373. + ?C:HAS_SETLINEBUF :
  1374. + ?C:    This symbol, if defined, indicates that the setlinebuf routine is
  1375. + ?C:    available to change stderr or stdout from block-buffered or unbuffered
  1376. + ?C:    to a line-buffered mode.
  1377. + ?C:.
  1378. + ?H:#$d_setlinebuf HAS_SETLINEBUF        /**/
  1379. + ?H:.
  1380. + ?LINT:set d_setlinebuf
  1381. + : see if setlinebuf exists
  1382. + set setlinebuf d_setlinebuf
  1383. + eval $inlibc
  1384.  
  1385. Index: mcon/U/i_termio.U
  1386. Prereq: 3.0.1.2
  1387. *** mcon/U/i_termio.U.old    Mon Aug 29 18:35:17 1994
  1388. --- mcon/U/i_termio.U    Mon Aug 29 18:35:17 1994
  1389. ***************
  1390. *** 1,4 ****
  1391. ! ?RCS: $Id: i_termio.U,v 3.0.1.2 1994/05/13 15:25:03 ram Exp $
  1392.   ?RCS:
  1393.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1394.   ?RCS: 
  1395. --- 1,4 ----
  1396. ! ?RCS: $Id: i_termio.U,v 3.0.1.3 1994/08/29 16:26:38 ram Exp $
  1397.   ?RCS:
  1398.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1399.   ?RCS: 
  1400. ***************
  1401. *** 9,14 ****
  1402. --- 9,18 ----
  1403.   ?RCS: of the source tree for dist 3.0.
  1404.   ?RCS:
  1405.   ?RCS: $Log: i_termio.U,v $
  1406. + ?RCS: Revision 3.0.1.3  1994/08/29  16:26:38  ram
  1407. + ?RCS: patch32: don't include all threee I_* symbols in config.h
  1408. + ?RCS: patch32: (had forgotten to undo this part last time)
  1409. + ?RCS:
  1410.   ?RCS: Revision 3.0.1.2  1994/05/13  15:25:03  ram
  1411.   ?RCS: patch27: undone ADO's fix in previous patch since it was useless
  1412.   ?RCS:
  1413. ***************
  1414. *** 51,59 ****
  1415.   ?C:    <sgtty.h> rather than <termio.h>.  There are also differences in
  1416.   ?C:    the ioctl() calls that depend on the value of this symbol.
  1417.   ?C:.
  1418. ! ?H:?%<:#$i_termio I_TERMIO        /**/
  1419. ! ?H:?%<:#$i_termios I_TERMIOS        /**/
  1420. ! ?H:?%<:#$i_sgtty I_SGTTY        /**/
  1421.   ?H:.
  1422.   ?T:val2 val3
  1423.   ?LINT:set i_termio i_sgtty i_termios
  1424. --- 55,63 ----
  1425.   ?C:    <sgtty.h> rather than <termio.h>.  There are also differences in
  1426.   ?C:    the ioctl() calls that depend on the value of this symbol.
  1427.   ?C:.
  1428. ! ?H:#$i_termio I_TERMIO        /**/
  1429. ! ?H:#$i_termios I_TERMIOS        /**/
  1430. ! ?H:#$i_sgtty I_SGTTY        /**/
  1431.   ?H:.
  1432.   ?T:val2 val3
  1433.   ?LINT:set i_termio i_sgtty i_termios
  1434.  
  1435. Index: mcon/U/i_float.U
  1436. *** mcon/U/i_float.U.old    Mon Aug 29 18:35:13 1994
  1437. --- mcon/U/i_float.U    Mon Aug 29 18:35:13 1994
  1438. ***************
  1439. *** 0 ****
  1440. --- 1,35 ----
  1441. + ?RCS: $Id: i_float.U,v 3.0.1.1 1994/08/29 16:21:57 ram Exp $
  1442. + ?RCS:
  1443. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1444. + ?RCS: 
  1445. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  1446. + ?RCS: as specified in the README file that comes with the distribution.
  1447. + ?RCS: You may reuse parts of this distribution only within the terms of
  1448. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1449. + ?RCS: of the source tree for dist 3.0.
  1450. + ?RCS:
  1451. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  1452. + ?RCS:
  1453. + ?RCS: $Log: i_float.U,v $
  1454. + ?RCS: Revision 3.0.1.1  1994/08/29  16:21:57  ram
  1455. + ?RCS: patch32: created by ADO
  1456. + ?RCS:
  1457. + ?MAKE:i_float: Inhdr
  1458. + ?MAKE:    -pick add $@ %<
  1459. + ?S:i_float:
  1460. + ?S:    This variable conditionally defines the I_FLOAT symbol, and indicates
  1461. + ?S:    whether a C program may include <float.h> to get symbols like DBL_MAX
  1462. + ?S:    or DBL_MIN, i.e. machine dependent floating point values.
  1463. + ?S:.
  1464. + ?C:I_FLOAT:
  1465. + ?C:    This symbol, if defined, indicates to the C program that it should
  1466. + ?C:    include <float.h> to get definition of symbols like DBL_MAX or
  1467. + ?C:    DBL_MIN, i.e. machine dependent floating point values.
  1468. + ?C:.
  1469. + ?H:#$i_float I_FLOAT        /**/
  1470. + ?H:.
  1471. + ?LINT:set i_float
  1472. + : see if this is a float.h system
  1473. + set float.h i_float
  1474. + eval $inhdr
  1475.  
  1476. Index: mcon/U/d_tcgtpgrp.U
  1477. *** mcon/U/d_tcgtpgrp.U.old    Mon Aug 29 18:35:05 1994
  1478. --- mcon/U/d_tcgtpgrp.U    Mon Aug 29 18:35:05 1994
  1479. ***************
  1480. *** 0 ****
  1481. --- 1,34 ----
  1482. + ?RCS: $Id: d_tcgtpgrp.U,v 3.0.1.1 1994/08/29 16:12:08 ram Exp $
  1483. + ?RCS:
  1484. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1485. + ?RCS: 
  1486. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  1487. + ?RCS: as specified in the README file that comes with the distribution.
  1488. + ?RCS: You may reuse parts of this distribution only within the terms of
  1489. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1490. + ?RCS: of the source tree for dist 3.0.
  1491. + ?RCS:
  1492. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  1493. + ?RCS:
  1494. + ?RCS: $Log: d_tcgtpgrp.U,v $
  1495. + ?RCS: Revision 3.0.1.1  1994/08/29  16:12:08  ram
  1496. + ?RCS: patch32: created by ADO
  1497. + ?RCS:
  1498. + ?MAKE:d_tcgetpgrp: Inlibc
  1499. + ?MAKE:    -pick add $@ %<
  1500. + ?S:d_tcgetpgrp:
  1501. + ?S:    This variable conditionally defines the HAS_TCGETPGRP symbol, which
  1502. + ?S:    indicates to the C program that the tcgetpgrp() routine is available.
  1503. + ?S:    to get foreground process group ID.
  1504. + ?S:.
  1505. + ?C:HAS_TCGETPGRP :
  1506. + ?C:    This symbol, if defined, indicates that the tcgetpgrp routine is
  1507. + ?C:    available to get foreground process group ID.
  1508. + ?C:.
  1509. + ?H:#$d_tcgetpgrp HAS_TCGETPGRP        /**/
  1510. + ?H:.
  1511. + ?LINT:set d_tcgetpgrp
  1512. + : see if tcgetpgrp exists
  1513. + set tcgetpgrp d_tcgetpgrp
  1514. + eval $inlibc
  1515.  
  1516. *** End of Patch 33 ***
  1517.  
  1518. exit 0 # Just in case...
  1519.