home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume39 / dist-3.0 / part21 < prev    next >
Encoding:
Text File  |  1993-08-19  |  54.5 KB  |  1,704 lines

  1. Newsgroups: comp.sources.misc
  2. From: Raphael Manfredi <ram@acri.fr>
  3. Subject: v39i025:  dist-3.0 - Configure script generator and related tools, Part21/28
  4. Message-ID: <1993Aug19.131541.6049@sparky.sterling.com>
  5. X-Md4-Signature: cf1d50d1a9226858a25f7663892387d1
  6. Sender: kent@sparky.sterling.com (Kent Landfield)
  7. Organization: Advanced Computer Research Institute, Lyon, France.
  8. Date: Thu, 19 Aug 1993 13:15:41 GMT
  9. Approved: kent@sparky.sterling.com
  10.  
  11. Submitted-by: Raphael Manfredi <ram@acri.fr>
  12. Posting-number: Volume 39, Issue 25
  13. Archive-name: dist-3.0/part21
  14. Environment: UNIX, Perl, RCS
  15.  
  16. #! /bin/sh
  17. # This is a shell archive.  Remove anything before this line, then feed it
  18. # into a shell via "sh file" or similar.  To overwrite existing files,
  19. # type "sh file -c".
  20. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  21. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  22. # Contents:  jmake/jmkmf.SH kit/makeSH.man lib/Jmakefile
  23. #   lib/errnolist.a mcon/U/Filexp.U mcon/U/Inlibc.U mcon/U/active.U
  24. #   mcon/U/d_charsprf.U mcon/U/d_ckeypad.U mcon/U/d_htonl.U
  25. #   mcon/U/d_internet.U mcon/U/d_raster.U mcon/U/d_setregid.U
  26. #   mcon/U/d_setreuid.U mcon/U/d_tzmin.U mcon/U/gidtype.U
  27. #   mcon/U/i_fcntl.U mcon/U/i_niin.U mcon/U/i_syssock.U
  28. #   mcon/U/libpth.U mcon/U/mailer.U mcon/U/newslevel.U
  29. #   mcon/U/newsspool.U mcon/U/prefshell.U mcon/U/warnflags.U
  30. #   pat/patindex.SH
  31. # Wrapped by ram@soft208 on Wed Aug 18 14:42:24 1993
  32. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  33. echo If this archive is complete, you will see the following message:
  34. echo '          "shar: End of archive 21 (of 28)."'
  35. if test -f 'jmake/jmkmf.SH' -a "${1}" != "-c" ; then 
  36.   echo shar: Will not clobber existing file \"'jmake/jmkmf.SH'\"
  37. else
  38.   echo shar: Extracting \"'jmake/jmkmf.SH'\" \(1621 characters\)
  39.   sed "s/^X//" >'jmake/jmkmf.SH' <<'END_OF_FILE'
  40. Xcase $CONFIG in
  41. X'')
  42. X    if test -f config.sh; then TOP=.;
  43. X    elif test -f ../config.sh; then TOP=..;
  44. X    elif test -f ../../config.sh; then TOP=../..;
  45. X    elif test -f ../../../config.sh; then TOP=../../..;
  46. X    elif test -f ../../../../config.sh; then TOP=../../../..;
  47. X    else
  48. X        (echo "Can't find config.sh."; exit 1)
  49. X    fi
  50. X    . $TOP/config.sh
  51. X    ;;
  52. Xesac
  53. Xcase "$0" in
  54. X*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
  55. Xesac
  56. Xecho "Extracting jmake/jmkmf (with variable substitutions)"
  57. X$spitshell >jmkmf <<!GROK!THIS!
  58. X$startsh
  59. X!GROK!THIS!
  60. X$spitshell >>jmkmf <<'!NO!SUBS!'
  61. X# @(#) Generates a Makefile from a Jmakefile
  62. X
  63. X# $Id: jmkmf.SH,v 3.0 1993/08/18 12:04:19 ram Exp $
  64. X#
  65. X#  Copyright (c) 1991-1993, Raphael Manfredi
  66. X#  
  67. X#  You may redistribute only under the terms of the Artistic Licence,
  68. X#  as specified in the README file that comes with the distribution.
  69. X#  You may reuse parts of this distribution only within the terms of
  70. X#  that same Artistic Licence; a copy of which may be found at the root
  71. X#  of the source tree for dist 3.0.
  72. X#
  73. X# $Log: jmkmf.SH,v $
  74. X# Revision 3.0  1993/08/18  12:04:19  ram
  75. X# Baseline for dist 3.0 netwide release.
  76. X#
  77. X
  78. Xusage="usage:  $0 [top_of_sources_pathname [current_directory]]"
  79. X
  80. Xtopdir=.
  81. Xcurdir=.
  82. X
  83. Xcase $# in 
  84. X    0) ;;
  85. X    1) topdir=$1 ;;
  86. X    2) topdir=$1  curdir=$2 ;;
  87. X    *) echo "$usage" 1>&2; exit 1 ;;
  88. Xesac
  89. X
  90. Xcase "$topdir" in
  91. X    -*) echo "$usage" 1>&2; exit 1 ;;
  92. Xesac
  93. X
  94. Xif test -f Makefile.SH; then 
  95. X    echo mv Makefile.SH Makefile.SH~
  96. X    mv Makefile.SH Makefile.SH~
  97. Xfi
  98. X
  99. Xargs="-DTOPDIR=$topdir -DCURDIR=$curdir"
  100. X
  101. Xecho jmake $args
  102. Xjmake $args
  103. Xecho sh Makefile.SH
  104. Xsh Makefile.SH
  105. X!NO!SUBS!
  106. Xchmod 755 jmkmf
  107. X$eunicefix jmkmf
  108. END_OF_FILE
  109.   if test 1621 -ne `wc -c <'jmake/jmkmf.SH'`; then
  110.     echo shar: \"'jmake/jmkmf.SH'\" unpacked with wrong size!
  111.   fi
  112.   chmod +x 'jmake/jmkmf.SH'
  113.   # end of 'jmake/jmkmf.SH'
  114. fi
  115. if test -f 'kit/makeSH.man' -a "${1}" != "-c" ; then 
  116.   echo shar: Will not clobber existing file \"'kit/makeSH.man'\"
  117. else
  118.   echo shar: Extracting \"'kit/makeSH.man'\" \(1710 characters\)
  119.   sed "s/^X//" >'kit/makeSH.man' <<'END_OF_FILE'
  120. X''' $Id: makeSH.man,v 3.0 1993/08/18 12:04:27 ram Exp $
  121. X'''
  122. X'''  Copyright (c) 1991-1993, Raphael Manfredi
  123. X'''  
  124. X'''  You may redistribute only under the terms of the Artistic Licence,
  125. X'''  as specified in the README file that comes with the distribution.
  126. X'''  You may reuse parts of this distribution only within the terms of
  127. X'''  that same Artistic Licence; a copy of which may be found at the root
  128. X'''  of the source tree for dist 3.0.
  129. X'''
  130. X''' $Log: makeSH.man,v $
  131. X''' Revision 3.0  1993/08/18  12:04:27  ram
  132. X''' Baseline for dist 3.0 netwide release.
  133. X'''
  134. X''' 
  135. X.TH MAKESH 1 LOCAL
  136. X.SH NAME
  137. XmakeSH \- a .SH script maker
  138. X.SH SYNOPSIS
  139. X.B makeSH
  140. X.I files
  141. X.SH DESCRIPTION
  142. X.I MakeSH
  143. Xexamines one or more scripts and produces a .SH file that, when run under sh,
  144. Xwill produce the original script.
  145. XThe .SH script so produced has two sections containing code destined for
  146. Xthe output.
  147. XThe first section has variable substitutions performed on it (taking values
  148. Xfrom config.sh), while the second section does not.
  149. XMakeSH does not know which variables you want to have substituted, so it puts
  150. Xthe whole script into the second section.
  151. XIt's up to you to insert any variable substitutions in the first section
  152. Xfor any values you want from config.sh.
  153. X.PP
  154. XYou should run
  155. X.I makeSH
  156. Xfrom within your top-level directory and use the relative path to the file
  157. Xas an argument, so that the "Extracting ..." line printed while running
  158. Xthe produced .SH file later on will give that same path.
  159. X.SH AUTHOR
  160. XLarry Wall <lwall@netlabs.com>
  161. X.SH SEE ALSO
  162. Xpat(1), metaconfig(1), makedist(1).
  163. X.SH BUGS
  164. XIt could assume that variables from metaconfig's Glossary need to be
  165. Xinitialized in the first section, but I'm too lazy to make it do that.
  166. END_OF_FILE
  167.   if test 1710 -ne `wc -c <'kit/makeSH.man'`; then
  168.     echo shar: \"'kit/makeSH.man'\" unpacked with wrong size!
  169.   fi
  170.   # end of 'kit/makeSH.man'
  171. fi
  172. if test -f 'lib/Jmakefile' -a "${1}" != "-c" ; then 
  173.   echo shar: Will not clobber existing file \"'lib/Jmakefile'\"
  174. else
  175.   echo shar: Extracting \"'lib/Jmakefile'\" \(1578 characters\)
  176.   sed "s/^X//" >'lib/Jmakefile' <<'END_OF_FILE'
  177. X/*
  178. X * Jmakefile for lib subdirectory.
  179. X */
  180. X
  181. X;# $Id: Jmakefile,v 3.0 1993/08/18 12:04:34 ram Exp $
  182. X;#
  183. X;#  Copyright (c) 1991-1993, Raphael Manfredi
  184. X;#  
  185. X;#  You may redistribute only under the terms of the Artistic Licence,
  186. X;#  as specified in the README file that comes with the distribution.
  187. X;#  You may reuse parts of this distribution only within the terms of
  188. X;#  that same Artistic Licence; a copy of which may be found at the root
  189. X;#  of the source tree for dist 3.0.
  190. X;#
  191. X;# $Log: Jmakefile,v $
  192. X;# Revision 3.0  1993/08/18  12:04:34  ram
  193. X;# Baseline for dist 3.0 netwide release.
  194. X;#
  195. X
  196. XFILES = errnolist.a errnolist.mk
  197. XFILES_SH = errnolist makedepend makedir
  198. X
  199. XINSTALLFLAGS = -m 444
  200. X
  201. Xall::        /* So that default make does not default to install */
  202. X
  203. X>PRIVLIB    /* Grrr.. Have to let jmake know I need this */
  204. X
  205. XMakeDirectories(install,$(PRIVLIB)/lib)
  206. XInstallMultiple($(FILES),$(PRIVLIB)/lib)
  207. X
  208. X/*
  209. X * InstallSingleExt:
  210. X *    This rule installs a single file whose basename is 'file' and
  211. X *    extension is 'old' into 'file^^new'. This allows changing the
  212. X *    dot extension of a file, for instance file.sh can be installed as
  213. X *    file.SH.
  214. X */
  215. X#define InstallSingleExt(step,file,dest,flags,old,new)    @!\
  216. X>INSTALL @!\
  217. X>RM @!\
  218. Xstep:: file^^old                        @@\
  219. X    @case '${MFLAGS}' in *[i]*) set +e;; esac; \    @@\
  220. X    (set -x; $(INSTALL) -c flags file^^old dest/file^^new)    @@\
  221. X                                    @!\
  222. Xde^^step::                        @@\
  223. X    @case '${MFLAGS}' in *[i]*) set +e;; esac; \    @@\
  224. X    (set -x; $(RM) dest/file^^new)
  225. X
  226. X#define install_rule \
  227. X    InstallSingleExt(install,!f,$(PRIVLIB)/lib,-m 444,.sh,.SH)
  228. X
  229. XExpand(install_rule,f!$(FILES_SH)!)
  230. END_OF_FILE
  231.   if test 1578 -ne `wc -c <'lib/Jmakefile'`; then
  232.     echo shar: \"'lib/Jmakefile'\" unpacked with wrong size!
  233.   fi
  234.   # end of 'lib/Jmakefile'
  235. fi
  236. if test -f 'lib/errnolist.a' -a "${1}" != "-c" ; then 
  237.   echo shar: Will not clobber existing file \"'lib/errnolist.a'\"
  238. else
  239.   echo shar: Extracting \"'lib/errnolist.a'\" \(1561 characters\)
  240.   sed "s/^X//" >'lib/errnolist.a' <<'END_OF_FILE'
  241. X# $Id: errnolist.a,v 3.0 1993/08/18 12:04:35 ram Exp $
  242. X#
  243. X#  Copyright (c) 1991-1993, Raphael Manfredi
  244. X#  
  245. X#  You may redistribute only under the terms of the Artistic Licence,
  246. X#  as specified in the README file that comes with the distribution.
  247. X#  You may reuse parts of this distribution only within the terms of
  248. X#  that same Artistic Licence; a copy of which may be found at the root
  249. X#  of the source tree for dist 3.0.
  250. X#
  251. X# Original Author: Harlan Stenn <harlan@mumps.pfcs.com>
  252. X#
  253. X# $Log: errnolist.a,v $
  254. X# Revision 3.0  1993/08/18  12:04:35  ram
  255. X# Baseline for dist 3.0 netwide release.
  256. X#
  257. X#
  258. X# This is a simple-minded awk script to generate an initialization for
  259. X# sys_errnolist on systems that don't have it.
  260. X# This file now depends only on sys/errno.h error numbers under maxerr being
  261. X# in order.  It will complain and die if not.  NOTE: It will still produce
  262. X# a compilable output file, even with errors, so you must check the output.
  263. X
  264. X
  265. XBEGIN        {
  266. X            format = "\t\"%s\",\n"
  267. X            printf("/*\n** This is a generated file.  Do NOT edit it unless you really have to...\n*/\n\n")
  268. X            printf("char *sys_errnolist[] = {\n")
  269. X            maxerr = 89
  270. X        }
  271. X
  272. X$1=="#define"    {    
  273. X            if(count > maxerr || substr($2,1,1) != "E")
  274. X                next   # we're not interested
  275. X            if($3 < count) {    # this is bad
  276. X                printf("Fatal error: %s out of order at %s\n",\
  277. X                FILENAME, $2)>"/dev/tty"
  278. X                exit 1
  279. X            }
  280. X            # fill in the blanks
  281. X            while($3 > count) {
  282. X                dummy=sprintf("EDUMMY%d",count)
  283. X                printf(format,dummy)
  284. X                count++
  285. X            }
  286. X            printf(format,$2)
  287. X            count++
  288. X        }
  289. X
  290. XEND        {
  291. X            printf("\t0\n};\n")
  292. X        }
  293. END_OF_FILE
  294.   if test 1561 -ne `wc -c <'lib/errnolist.a'`; then
  295.     echo shar: \"'lib/errnolist.a'\" unpacked with wrong size!
  296.   fi
  297.   # end of 'lib/errnolist.a'
  298. fi
  299. if test -f 'mcon/U/Filexp.U' -a "${1}" != "-c" ; then 
  300.   echo shar: Will not clobber existing file \"'mcon/U/Filexp.U'\"
  301. else
  302.   echo shar: Extracting \"'mcon/U/Filexp.U'\" \(1550 characters\)
  303.   sed "s/^X//" >'mcon/U/Filexp.U' <<'END_OF_FILE'
  304. X?RCS: $Id: Filexp.U,v 3.0 1993/08/18 12:04:53 ram Exp $
  305. X?RCS:
  306. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  307. X?RCS: 
  308. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  309. X?RCS: as specified in the README file that comes with the distribution.
  310. X?RCS: You may reuse parts of this distribution only within the terms of
  311. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  312. X?RCS: of the source tree for dist 3.0.
  313. X?RCS:
  314. X?RCS: $Log: Filexp.U,v $
  315. X?RCS: Revision 3.0  1993/08/18  12:04:53  ram
  316. X?RCS: Baseline for dist 3.0 netwide release.
  317. X?RCS:
  318. X?X: 
  319. X?X: This unit produces a shell script which will expand filenames beginning
  320. X?X: with tildes.  The script is deleted at the end of Configure.
  321. X?X: 
  322. X?MAKE:Filexp: startsh sed test expr eunicefix
  323. X?MAKE:    -pick add $@ %<
  324. X?T:LOGDIR dir me name failed
  325. X: set up shell script to do ~ expansion
  326. Xcat >filexp <<EOSS
  327. X$startsh
  328. X: expand filename
  329. Xcase "\$1" in
  330. X ~/*|~)
  331. X    echo \$1 | $sed "s|~|\${HOME-\$LOGDIR}|"
  332. X    ;;
  333. X ~*)
  334. X    if $test -f /bin/csh; then
  335. X        /bin/csh -f -c "glob \$1"
  336. X        failed=$?
  337. X        echo ""
  338. X        exit \$failed
  339. X    else
  340. X        name=\`$expr x\$1 : '..\([^/]*\)'\`
  341. X        dir=\`$sed -n -e "/^\${name}:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\).*"'\$'"/\1/" -e p -e q -e '}' </etc/passwd\`
  342. X        if $test ! -d "\$dir"; then
  343. X            me=\`basename \$0\`
  344. X            echo "\$me: can't locate home directory for: \$name" >&2
  345. X            exit 1
  346. X        fi
  347. X        case "\$1" in
  348. X        */*)
  349. X            echo \$dir/\`$expr x\$1 : '..[^/]*/\(.*\)'\`
  350. X            ;;
  351. X        *)
  352. X            echo \$dir
  353. X            ;;
  354. X        esac
  355. X    fi
  356. X    ;;
  357. X*)
  358. X    echo \$1
  359. X    ;;
  360. Xesac
  361. XEOSS
  362. Xchmod +x filexp
  363. X$eunicefix filexp
  364. X
  365. END_OF_FILE
  366.   if test 1550 -ne `wc -c <'mcon/U/Filexp.U'`; then
  367.     echo shar: \"'mcon/U/Filexp.U'\" unpacked with wrong size!
  368.   fi
  369.   # end of 'mcon/U/Filexp.U'
  370. fi
  371. if test -f 'mcon/U/Inlibc.U' -a "${1}" != "-c" ; then 
  372.   echo shar: Will not clobber existing file \"'mcon/U/Inlibc.U'\"
  373. else
  374.   echo shar: Extracting \"'mcon/U/Inlibc.U'\" \(1672 characters\)
  375.   sed "s/^X//" >'mcon/U/Inlibc.U' <<'END_OF_FILE'
  376. X?RCS: $Id: Inlibc.U,v 3.0 1993/08/18 12:05:03 ram Exp $
  377. X?RCS:
  378. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  379. X?RCS: 
  380. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  381. X?RCS: as specified in the README file that comes with the distribution.
  382. X?RCS: You may reuse parts of this distribution only within the terms of
  383. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  384. X?RCS: of the source tree for dist 3.0.
  385. X?RCS:
  386. X?RCS: $Log: Inlibc.U,v $
  387. X?RCS: Revision 3.0  1993/08/18  12:05:03  ram
  388. X?RCS: Baseline for dist 3.0 netwide release.
  389. X?RCS:
  390. X?X:
  391. X?X: This unit checks for the definition of a given function.
  392. X?X:
  393. X?X: To use it, say:
  394. X?X: set function d_func
  395. X?X: eval $inlibc
  396. X?X:
  397. X?MAKE:Inlibc: Csym Whoa Oldconfig
  398. X?MAKE:    -pick add $@ %<
  399. X?LINT:define inlibc
  400. X?LINT:use libc
  401. X?V:inlibc
  402. X?S:inlibc:
  403. X?S:    This shell variable is used internally by Configure to check
  404. X?S:    wether a given function is defined or not. A typical use is:
  405. X?S:        set function d_func
  406. X?S:        eval $inlibc
  407. X?S:    That will print a message, saying wether function was found or
  408. X?S:    not and set d_func accordingly.
  409. X?S:.
  410. X?T:was tx sym tres td tu var
  411. X: define an is-in-libc? function
  412. Xinlibc='echo " "; td=$define; tu=$undef;
  413. Xsym=$1; var=$2; eval "was=\$$2";
  414. Xtx=yes;
  415. Xcase "$reuseval$was" in
  416. Xtrue) ;;
  417. Xtrue*) tx=no;;
  418. Xesac;
  419. Xcase "$tx" in
  420. Xyes)
  421. X    set $sym tres -f;
  422. X    eval $csym;
  423. X    case "$tres" in
  424. X    true)
  425. X        echo "$sym() found." >&4;
  426. X        case "$was" in $undef) . whoa; esac; eval "$var=\$td";;
  427. X    *)
  428. X        echo "$sym() NOT found." >&4;
  429. X        case "$was" in $define) . whoa; esac; eval "$var=\$tu";;
  430. X    esac;;
  431. X*)
  432. X    case "$was" in
  433. X    $define) echo "$sym() found." >&4;;
  434. X    *) echo "$sym() NOT found." >&4;;
  435. X    esac;;
  436. Xesac'
  437. X
  438. END_OF_FILE
  439.   if test 1672 -ne `wc -c <'mcon/U/Inlibc.U'`; then
  440.     echo shar: \"'mcon/U/Inlibc.U'\" unpacked with wrong size!
  441.   fi
  442.   # end of 'mcon/U/Inlibc.U'
  443. fi
  444. if test -f 'mcon/U/active.U' -a "${1}" != "-c" ; then 
  445.   echo shar: Will not clobber existing file \"'mcon/U/active.U'\"
  446. else
  447.   echo shar: Extracting \"'mcon/U/active.U'\" \(1624 characters\)
  448.   sed "s/^X//" >'mcon/U/active.U' <<'END_OF_FILE'
  449. X?RCS: $Id: active.U,v 3.0 1993/08/18 12:05:21 ram Exp $
  450. X?RCS:
  451. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  452. X?RCS: 
  453. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  454. X?RCS: as specified in the README file that comes with the distribution.
  455. X?RCS: You may reuse parts of this distribution only within the terms of
  456. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  457. X?RCS: of the source tree for dist 3.0.
  458. X?RCS:
  459. X?RCS: $Log: active.U,v $
  460. X?RCS: Revision 3.0  1993/08/18  12:05:21  ram
  461. X?RCS: Baseline for dist 3.0 netwide release.
  462. X?RCS:
  463. X?MAKE:active activeexp: newslib Oldconfig Getfile
  464. X?MAKE:    -pick add $@ %<
  465. X?S:active:
  466. X?S:    The name of the active file for the news system.  This file contains
  467. X?S:    the list of active newsgroups.  The name may have ~ on the front.
  468. X?S:    The variable myactive is the expanded form.
  469. X?S:.
  470. X?S:activeexp (myactive):
  471. X?S:    This is the same as the active variable, but is filename expanded
  472. X?S:    so that later Configure units can look at the active file if desired.
  473. X?S:.
  474. X?C:ACTIVE:
  475. X?C:    The name of the active file for the news system.  This file contains
  476. X?C:    the list of active newsgroups.  The name may have ~ on the front.
  477. X?C:.
  478. X?C:ACTIVE_EXP:
  479. X?C:    This is the same as ACTIVE, but is filename expanded at configuration
  480. X?C:    time, for programs that do not want to deal with it themselves.
  481. X?C:.
  482. X?H:#define ACTIVE "$active"    /**/
  483. X?H:#define ACTIVE_EXP "$activeexp"    /**/
  484. X?H:.
  485. X: locate active file
  486. Xecho " "
  487. Xcase "$active" in
  488. X'')
  489. X    dflt=$newslib/active
  490. X    ;;
  491. X*)  dflt="$active";;
  492. Xesac
  493. Xfn=l~:active
  494. Xrp='Where is the active file?'
  495. X. ./getfile
  496. Xactive="$ans"
  497. Xactiveexp="$ansexp"
  498. X
  499. END_OF_FILE
  500.   if test 1624 -ne `wc -c <'mcon/U/active.U'`; then
  501.     echo shar: \"'mcon/U/active.U'\" unpacked with wrong size!
  502.   fi
  503.   # end of 'mcon/U/active.U'
  504. fi
  505. if test -f 'mcon/U/d_charsprf.U' -a "${1}" != "-c" ; then 
  506.   echo shar: Will not clobber existing file \"'mcon/U/d_charsprf.U'\"
  507. else
  508.   echo shar: Extracting \"'mcon/U/d_charsprf.U'\" \(1565 characters\)
  509.   sed "s/^X//" >'mcon/U/d_charsprf.U' <<'END_OF_FILE'
  510. X?RCS: $Id: d_charsprf.U,v 3.0 1993/08/18 12:05:49 ram Exp $
  511. X?RCS:
  512. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  513. X?RCS: 
  514. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  515. X?RCS: as specified in the README file that comes with the distribution.
  516. X?RCS: You may reuse parts of this distribution only within the terms of
  517. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  518. X?RCS: of the source tree for dist 3.0.
  519. X?RCS:
  520. X?RCS: $Log: d_charsprf.U,v $
  521. X?RCS: Revision 3.0  1993/08/18  12:05:49  ram
  522. X?RCS: Baseline for dist 3.0 netwide release.
  523. X?RCS:
  524. X?MAKE:d_charsprf: cat rm +cc Setvar
  525. X?MAKE:    -pick add $@ %<
  526. X?S:d_charsprf:
  527. X?S:    This variable conditionally defines CHARSPRINTF if this system
  528. X?S:    declares "char *sprintf()" in stdio.h.  The trend seems to be to
  529. X?S:    declare it as "int sprintf()".
  530. X?S:.
  531. X?C:CHARSPRINTF:
  532. X?C:    This symbol is defined if this system declares "char *sprintf()" in
  533. X?C:    stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
  534. X?C:    is up to the package author to declare sprintf correctly based on the
  535. X?C:    symbol.
  536. X?C:.
  537. X?H:#$d_charsprf    CHARSPRINTF     /**/
  538. X?H:.
  539. X?LINT:set d_charsprf
  540. X: see if sprintf is declared as int or pointer to char
  541. Xecho " "
  542. X$cat >ucbsprf.c <<'EOF'
  543. Xmain()
  544. X{
  545. X    int sprintf();
  546. X    char buf[10];
  547. X    exit((unsigned long)sprintf(buf,"%s","foo") > 10L);
  548. X}
  549. XEOF
  550. Xif $cc ucbsprf.c -o ucbsprf >/dev/null 2>&1 && ./ucbsprf; then
  551. X    echo "Your sprintf() returns (int)." >&4
  552. X    val="$undef"
  553. Xelse
  554. X    echo "Your sprintf() returns (char*)." >&4
  555. X    val="$define"
  556. Xfi
  557. Xset d_charsprf
  558. Xeval $setvar
  559. X$rm -f ucbsprf*
  560. X
  561. END_OF_FILE
  562.   if test 1565 -ne `wc -c <'mcon/U/d_charsprf.U'`; then
  563.     echo shar: \"'mcon/U/d_charsprf.U'\" unpacked with wrong size!
  564.   fi
  565.   # end of 'mcon/U/d_charsprf.U'
  566. fi
  567. if test -f 'mcon/U/d_ckeypad.U' -a "${1}" != "-c" ; then 
  568.   echo shar: Will not clobber existing file \"'mcon/U/d_ckeypad.U'\"
  569. else
  570.   echo shar: Extracting \"'mcon/U/d_ckeypad.U'\" \(1627 characters\)
  571.   sed "s/^X//" >'mcon/U/d_ckeypad.U' <<'END_OF_FILE'
  572. X?RCS: $Id: d_ckeypad.U,v 3.0 1993/08/18 12:05:50 ram Exp $
  573. X?RCS:
  574. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  575. X?RCS: 
  576. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  577. X?RCS: as specified in the README file that comes with the distribution.
  578. X?RCS: You may reuse parts of this distribution only within the terms of
  579. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  580. X?RCS: of the source tree for dist 3.0.
  581. X?RCS:
  582. X?RCS: $Log: d_ckeypad.U,v $
  583. X?RCS: Revision 3.0  1993/08/18  12:05:50  ram
  584. X?RCS: Baseline for dist 3.0 netwide release.
  585. X?RCS:
  586. X?MAKE:d_ckeypad: cat cc termlib Setvar
  587. X?MAKE:    -pick add $@ %<
  588. X?S:d_ckeypad:
  589. X?S:    This variable controls the definition of HAS_CURSES_KEYPAD,
  590. X?S:    which tells the application that the keypad() curses function
  591. X?S:    is available.
  592. X?S:.
  593. X?C:HAS_CURSES_KEYPAD:
  594. X?C:    This symbol indicates the availability of the keypad() function
  595. X?C:    of the curses library.
  596. X?C:.
  597. X?H:#$d_ckeypad HAS_CURSES_KEYPAD    /**/
  598. X?H:.
  599. X?LINT:set d_ckeypad
  600. X: check for the keypad() function in the curses library
  601. Xecho " "
  602. Xcase "$termlib" in
  603. X'')
  604. X    echo "You don't have a curses library, so I won't waste time looking" >&4
  605. X    echo "to see if has the keypad() function." >&4
  606. X*)
  607. Xecho "Checking the curses library ($termlib) for the keypad() function..." >&4
  608. X    $cat >c_keypad.c <<'EOCP'
  609. X#include <curses.h>
  610. Xmain() {
  611. X    keypad(stdscr, TRUE);
  612. X    exit(0);
  613. X}
  614. XEOCP
  615. X    if $cc c_keypad.c >c_keypad.out 2>&1 ; then
  616. X        val=$define
  617. X        echo "It appears to have the keypad() function."
  618. X    else
  619. X        val=$undef
  620. X        echo "Your curses library doesn't appear to have the keypad() function."
  621. X    fi
  622. Xesac
  623. Xset d_ckeypad
  624. Xeval $setvar
  625. X
  626. END_OF_FILE
  627.   if test 1627 -ne `wc -c <'mcon/U/d_ckeypad.U'`; then
  628.     echo shar: \"'mcon/U/d_ckeypad.U'\" unpacked with wrong size!
  629.   fi
  630.   # end of 'mcon/U/d_ckeypad.U'
  631. fi
  632. if test -f 'mcon/U/d_htonl.U' -a "${1}" != "-c" ; then 
  633.   echo shar: Will not clobber existing file \"'mcon/U/d_htonl.U'\"
  634. else
  635.   echo shar: Extracting \"'mcon/U/d_htonl.U'\" \(1723 characters\)
  636.   sed "s/^X//" >'mcon/U/d_htonl.U' <<'END_OF_FILE'
  637. X?RCS: $Id: d_htonl.U,v 3.0 1993/08/18 12:06:22 ram Exp $
  638. X?RCS:
  639. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  640. X?RCS: 
  641. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  642. X?RCS: as specified in the README file that comes with the distribution.
  643. X?RCS: You may reuse parts of this distribution only within the terms of
  644. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  645. X?RCS: of the source tree for dist 3.0.
  646. X?RCS:
  647. X?RCS: $Log: d_htonl.U,v $
  648. X?RCS: Revision 3.0  1993/08/18  12:06:22  ram
  649. X?RCS: Baseline for dist 3.0 netwide release.
  650. X?RCS:
  651. X?MAKE:d_htonl: Inlibc
  652. X?MAKE:    -pick add $@ %<
  653. X?S:d_htonl:
  654. X?S:    This variable conditionally defines HAS_HTONL if htonl() and its
  655. X?S:    friends are available to do network order byte swapping.
  656. X?S:.
  657. X?C:HAS_HTONL (HTONL):
  658. X?C:    This symbol, if defined, indicates that the htonl() routine (and
  659. X?C:    friends htons() ntohl() ntohs()) are available to do network
  660. X?C:    order byte swapping.
  661. X?C:.
  662. X?C:HAS_HTONS (HTONS):
  663. X?C:    This symbol, if defined, indicates that the htons() routine (and
  664. X?C:    friends htonl() ntohl() ntohs()) are available to do network
  665. X?C:    order byte swapping.
  666. X?C:.
  667. X?C:HAS_NTOHL (NTOHL):
  668. X?C:    This symbol, if defined, indicates that the ntohl() routine (and
  669. X?C:    friends htonl() htons() ntohs()) are available to do network
  670. X?C:    order byte swapping.
  671. X?C:.
  672. X?C:HAS_NTOHS (NTOHS):
  673. X?C:    This symbol, if defined, indicates that the ntohs() routine (and
  674. X?C:    friends htonl() htons() ntohl()) are available to do network
  675. X?C:    order byte swapping.
  676. X?C:.
  677. X?H:#$d_htonl HAS_HTONL        /**/
  678. X?H:#$d_htonl HAS_HTONS        /**/
  679. X?H:#$d_htonl HAS_NTOHL        /**/
  680. X?H:#$d_htonl HAS_NTOHS        /**/
  681. X?H:.
  682. X?LINT:set d_htonl
  683. X: see if htonl --and friends-- exists
  684. Xset htonl d_htonl
  685. Xeval $inlibc
  686. X
  687. END_OF_FILE
  688.   if test 1723 -ne `wc -c <'mcon/U/d_htonl.U'`; then
  689.     echo shar: \"'mcon/U/d_htonl.U'\" unpacked with wrong size!
  690.   fi
  691.   # end of 'mcon/U/d_htonl.U'
  692. fi
  693. if test -f 'mcon/U/d_internet.U' -a "${1}" != "-c" ; then 
  694.   echo shar: Will not clobber existing file \"'mcon/U/d_internet.U'\"
  695. else
  696.   echo shar: Extracting \"'mcon/U/d_internet.U'\" \(1624 characters\)
  697.   sed "s/^X//" >'mcon/U/d_internet.U' <<'END_OF_FILE'
  698. X?RCS: $Id: d_internet.U,v 3.0 1993/08/18 12:06:24 ram Exp $
  699. X?RCS:
  700. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  701. X?RCS: 
  702. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  703. X?RCS: as specified in the README file that comes with the distribution.
  704. X?RCS: You may reuse parts of this distribution only within the terms of
  705. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  706. X?RCS: of the source tree for dist 3.0.
  707. X?RCS:
  708. X?RCS: $Log: d_internet.U,v $
  709. X?RCS: Revision 3.0  1993/08/18  12:06:24  ram
  710. X?RCS: Baseline for dist 3.0 netwide release.
  711. X?RCS:
  712. X?MAKE:d_internet: Myread Oldconfig Setvar mailer
  713. X?MAKE:    -pick add $@ %<
  714. X?S:d_internet:
  715. X?S:    This variable conditionally defines the INTERNET symbol, which
  716. X?S:    indicates to the C program that there is a mailer available which
  717. X?S:    supports internet-style addresses (user@site.domain).
  718. X?S:.
  719. X?C:INTERNET:
  720. X?C:    This symbol, if defined, indicates that there is a mailer available
  721. X?C:    which supports internet-style addresses (user@site.domain).
  722. X?C:.
  723. X?H:#$d_internet    INTERNET    /**/
  724. X?H:.
  725. X?LINT:set d_internet
  726. X: check for internet mailer
  727. Xcase "$d_internet" in
  728. X"$define") dflt=y;;
  729. X"$undef")    dflt=n;;
  730. X*)
  731. X    dflt=n
  732. X    case "$mailer" in
  733. X    *sendmail*) dflt=y;;
  734. X    *smail*) dflt=y;;
  735. X    esac
  736. X    ;;
  737. Xesac
  738. Xcat <<EOM
  739. XSome newer mailers can deliver mail to addresses of the INTERNET persuasion,
  740. Xsuch as user@host.UUCP.  Other older mailers require the complete path to
  741. Xthe destination to be specified in the address.
  742. X
  743. XEOM
  744. Xrp="Does your mailer understand INTERNET addresses?"
  745. X. ./myread
  746. Xcase "$ans" in
  747. Xy*) val="$define";;
  748. X*)  val="$undef";;
  749. Xesac
  750. Xset d_internet
  751. Xeval $setvar
  752. X
  753. END_OF_FILE
  754.   if test 1624 -ne `wc -c <'mcon/U/d_internet.U'`; then
  755.     echo shar: \"'mcon/U/d_internet.U'\" unpacked with wrong size!
  756.   fi
  757.   # end of 'mcon/U/d_internet.U'
  758. fi
  759. if test -f 'mcon/U/d_raster.U' -a "${1}" != "-c" ; then 
  760.   echo shar: Will not clobber existing file \"'mcon/U/d_raster.U'\"
  761. else
  762.   echo shar: Extracting \"'mcon/U/d_raster.U'\" \(1541 characters\)
  763.   sed "s/^X//" >'mcon/U/d_raster.U' <<'END_OF_FILE'
  764. X?RCS: $Id: d_raster.U,v 3.0 1993/08/18 12:06:50 ram Exp $
  765. X?RCS:
  766. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  767. X?RCS: 
  768. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  769. X?RCS: as specified in the README file that comes with the distribution.
  770. X?RCS: You may reuse parts of this distribution only within the terms of
  771. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  772. X?RCS: of the source tree for dist 3.0.
  773. X?RCS:
  774. X?RCS: $Log: d_raster.U,v $
  775. X?RCS: Revision 3.0  1993/08/18  12:06:50  ram
  776. X?RCS: Baseline for dist 3.0 netwide release.
  777. X?RCS:
  778. X?MAKE:d_raster rasterlib: cat test Setvar Myread Oldconfig
  779. X?MAKE:    -pick add $@ %<
  780. X?S:d_raster:
  781. X?S:    Conditionally defines RASTER_TEK if this is a raster tech machine.
  782. X?S:.
  783. X?S:rasterlib (d_rasterlib):
  784. X?S:    Set to the needed compile flag if this is a raster tech machine.
  785. X?S:    It is up to the Makefile to use this variable.
  786. X?S:.
  787. X?C:RASTER_TEK:
  788. X?C:    Defined if this is a rastertech machine.
  789. X?C:.
  790. X?H:#$d_raster RASTER_TEK /**/
  791. X?H:.
  792. X?LINT:set d_raster
  793. X: See if this is a raster tech machine.
  794. Xval="$undef"
  795. Xrasterlib=''
  796. Xif $test -r /dev/mirage; then
  797. X    $cat <<'EOM'
  798. X
  799. XYou seem to have a mirage device... this is normally associated with a raster
  800. Xtechnologies graphics workstation. If this is right, you may want to use raster
  801. Xtech in this program.
  802. X
  803. XEOM
  804. X    dflt=y
  805. X    case "$d_raster" in
  806. X    "$undef") dflt=n;;
  807. X    esac
  808. X    rp='Use raster tech?'
  809. X    . ./myread
  810. X    case "$ans" in
  811. X    y*) val="$define";;
  812. X    esac
  813. Xfi
  814. Xset d_raster
  815. Xeval $setvar
  816. X
  817. Xcase "$d_raster" in
  818. X"$define") rasterlib='-lphigs';;
  819. Xesac
  820. X
  821. END_OF_FILE
  822.   if test 1541 -ne `wc -c <'mcon/U/d_raster.U'`; then
  823.     echo shar: \"'mcon/U/d_raster.U'\" unpacked with wrong size!
  824.   fi
  825.   # end of 'mcon/U/d_raster.U'
  826. fi
  827. if test -f 'mcon/U/d_setregid.U' -a "${1}" != "-c" ; then 
  828.   echo shar: Will not clobber existing file \"'mcon/U/d_setregid.U'\"
  829. else
  830.   echo shar: Extracting \"'mcon/U/d_setregid.U'\" \(1575 characters\)
  831.   sed "s/^X//" >'mcon/U/d_setregid.U' <<'END_OF_FILE'
  832. X?RCS: $Id: d_setregid.U,v 3.0 1993/08/18 12:07:12 ram Exp $
  833. X?RCS:
  834. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  835. X?RCS: 
  836. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  837. X?RCS: as specified in the README file that comes with the distribution.
  838. X?RCS: You may reuse parts of this distribution only within the terms of
  839. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  840. X?RCS: of the source tree for dist 3.0.
  841. X?RCS:
  842. X?RCS: $Log: d_setregid.U,v $
  843. X?RCS: Revision 3.0  1993/08/18  12:07:12  ram
  844. X?RCS: Baseline for dist 3.0 netwide release.
  845. X?RCS:
  846. X?MAKE:d_setregid d_setresgid: Inlibc
  847. X?MAKE:    -pick add $@ %<
  848. X?S:d_setregid:
  849. X?S:    This variable conditionally defines HAS_SETREGID if setregid() is
  850. X?S:    available to change the real and effective gid of the current
  851. X?S:    process.
  852. X?S:.
  853. X?S:d_setresgid:
  854. X?S:    This variable conditionally defines HAS_SETRESGID if setresgid() is
  855. X?S:    available to change the real, effective and saved gid of the current
  856. X?S:    process.
  857. X?S:.
  858. X?C:HAS_SETREGID (SETREGID):
  859. X?C:    This symbol, if defined, indicates that the setregid routine is
  860. X?C:    available to change the real and effective gid of the current
  861. X?C:    process.
  862. X?C:.
  863. X?C:HAS_SETRESGID (SETRESGID):
  864. X?C:    This symbol, if defined, indicates that the setresgid routine is
  865. X?C:    available to change the real, effective and saved gid of the current
  866. X?C:    process.
  867. X?C:.
  868. X?H:#$d_setregid HAS_SETREGID        /**/
  869. X?H:#$d_setresgid HAS_SETRESGID        /**/
  870. X?H:.
  871. X?LINT: set d_setregid d_setresgid
  872. X: see if setregid exists
  873. Xset setregid d_setregid
  874. Xeval $inlibc
  875. Xset setresgid d_setresgid
  876. Xeval $inlibc
  877. X
  878. END_OF_FILE
  879.   if test 1575 -ne `wc -c <'mcon/U/d_setregid.U'`; then
  880.     echo shar: \"'mcon/U/d_setregid.U'\" unpacked with wrong size!
  881.   fi
  882.   # end of 'mcon/U/d_setregid.U'
  883. fi
  884. if test -f 'mcon/U/d_setreuid.U' -a "${1}" != "-c" ; then 
  885.   echo shar: Will not clobber existing file \"'mcon/U/d_setreuid.U'\"
  886. else
  887.   echo shar: Extracting \"'mcon/U/d_setreuid.U'\" \(1573 characters\)
  888.   sed "s/^X//" >'mcon/U/d_setreuid.U' <<'END_OF_FILE'
  889. X?RCS: $Id: d_setreuid.U,v 3.0 1993/08/18 12:07:13 ram Exp $
  890. X?RCS:
  891. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  892. X?RCS: 
  893. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  894. X?RCS: as specified in the README file that comes with the distribution.
  895. X?RCS: You may reuse parts of this distribution only within the terms of
  896. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  897. X?RCS: of the source tree for dist 3.0.
  898. X?RCS:
  899. X?RCS: $Log: d_setreuid.U,v $
  900. X?RCS: Revision 3.0  1993/08/18  12:07:13  ram
  901. X?RCS: Baseline for dist 3.0 netwide release.
  902. X?RCS:
  903. X?MAKE:d_setreuid d_setresuid: Inlibc
  904. X?MAKE:    -pick add $@ %<
  905. X?S:d_setreuid:
  906. X?S:    This variable conditionally defines HAS_SETREUID if setreuid() is
  907. X?S:    available to change the real and effective uid of the current
  908. X?S:    process.
  909. X?S:.
  910. X?S:d_setresuid:
  911. X?S:    This variable conditionally defines HAS_SETREUID if setresuid() is
  912. X?S:    available to change the real, effective and saved uid of the current
  913. X?S:    process.
  914. X?S:.
  915. X?C:HAS_SETREUID (SETREUID):
  916. X?C:    This symbol, if defined, indicates that the setreuid routine is
  917. X?C:    available to change the real and effective uid of the current
  918. X?C:    process.
  919. X?C:.
  920. X?C:HAS_SETRESUID (SETRESUID):
  921. X?C:    This symbol, if defined, indicates that the setresuid routine is
  922. X?C:    available to change the real, effective and saved uid of the current
  923. X?C:    process.
  924. X?C:.
  925. X?H:#$d_setreuid HAS_SETREUID        /**/
  926. X?H:#$d_setresuid HAS_SETRESUID        /**/
  927. X?H:.
  928. X?LINT:set d_setreuid d_setresuid
  929. X: see if setreuid exists
  930. Xset setreuid d_setreuid
  931. Xeval $inlibc
  932. Xset setresuid d_setresuid
  933. Xeval $inlibc
  934. X
  935. END_OF_FILE
  936.   if test 1573 -ne `wc -c <'mcon/U/d_setreuid.U'`; then
  937.     echo shar: \"'mcon/U/d_setreuid.U'\" unpacked with wrong size!
  938.   fi
  939.   # end of 'mcon/U/d_setreuid.U'
  940. fi
  941. if test -f 'mcon/U/d_tzmin.U' -a "${1}" != "-c" ; then 
  942.   echo shar: Will not clobber existing file \"'mcon/U/d_tzmin.U'\"
  943. else
  944.   echo shar: Extracting \"'mcon/U/d_tzmin.U'\" \(1705 characters\)
  945.   sed "s/^X//" >'mcon/U/d_tzmin.U' <<'END_OF_FILE'
  946. X?RCS: $Id: d_tzmin.U,v 3.0 1993/08/18 12:07:49 ram Exp $
  947. X?RCS:
  948. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  949. X?RCS: 
  950. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  951. X?RCS: as specified in the README file that comes with the distribution.
  952. X?RCS: You may reuse parts of this distribution only within the terms of
  953. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  954. X?RCS: of the source tree for dist 3.0.
  955. X?RCS:
  956. X?RCS: $Log: d_tzmin.U,v $
  957. X?RCS: Revision 3.0  1993/08/18  12:07:49  ram
  958. X?RCS: Baseline for dist 3.0 netwide release.
  959. X?RCS:
  960. X?MAKE:d_tzmin: contains cppstdin cppminus timeincl rm Setvar Guess
  961. X?MAKE:    -pick add $@ %<
  962. X?S:d_tzmin:
  963. X?S:    This symbol conditionally defines TZ_MINUTESWEST if the system uses
  964. X?S:    tz_minuteswest in time header instead of timezone.
  965. X?S:.
  966. X?C:TZ_MINUTESWEST:
  967. X?C:    This symbol is defined if this system uses tz_minuteswest
  968. X?C:    in time header instead of timezone.
  969. X?C: If not defined, you may have to use struct timeb and ftime() rather
  970. X?C:    than the new gettimeofday() system call.
  971. X?C:.
  972. X?H:#$d_tzmin TZ_MINUTESWEST        /**/
  973. X?H:.
  974. X?LINT:set d_tzmin
  975. X: see if tz_minuteswest is defined in time header
  976. Xecho " "
  977. Xval="$undef"
  978. X$cppstdin $cppminus < $timeincl > try 2>&1
  979. Xif $contains 'tz_minuteswest' try >/dev/null 2>&1; then
  980. Xecho "You have tz_minuteswest defined in $timeincl rather than timezone." >&4
  981. X    val="$define"
  982. Xelif $contains 'timezone' try >/dev/null 2>&1; then
  983. Xecho "You have timezone defined in $timeincl rather than tz_minuteswest." >&4
  984. Xelse
  985. X    echo "Your $timeincl file looks strange." >&4
  986. Xfi
  987. Xif bsd; then
  988. X    case "$d_tzmin" in
  989. X    "$undef") echo "(Maybe your system is an USG one after all?)";;
  990. X    esac
  991. Xfi
  992. Xset d_tzmin
  993. Xeval $setvar
  994. X$rm -f try
  995. X
  996. END_OF_FILE
  997.   if test 1705 -ne `wc -c <'mcon/U/d_tzmin.U'`; then
  998.     echo shar: \"'mcon/U/d_tzmin.U'\" unpacked with wrong size!
  999.   fi
  1000.   # end of 'mcon/U/d_tzmin.U'
  1001. fi
  1002. if test -f 'mcon/U/gidtype.U' -a "${1}" != "-c" ; then 
  1003.   echo shar: Will not clobber existing file \"'mcon/U/gidtype.U'\"
  1004. else
  1005.   echo shar: Extracting \"'mcon/U/gidtype.U'\" \(1557 characters\)
  1006.   sed "s/^X//" >'mcon/U/gidtype.U' <<'END_OF_FILE'
  1007. X?RCS: $Id: gidtype.U,v 3.0 1993/08/18 12:08:11 ram Exp $
  1008. X?RCS:
  1009. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1010. X?RCS: 
  1011. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1012. X?RCS: as specified in the README file that comes with the distribution.
  1013. X?RCS: You may reuse parts of this distribution only within the terms of
  1014. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1015. X?RCS: of the source tree for dist 3.0.
  1016. X?RCS:
  1017. X?RCS: $Log: gidtype.U,v $
  1018. X?RCS: Revision 3.0  1993/08/18  12:08:11  ram
  1019. X?RCS: Baseline for dist 3.0 netwide release.
  1020. X?RCS:
  1021. X?MAKE:gidtype: Myread Oldconfig contains Findhdr
  1022. X?MAKE:    -pick add $@ %<
  1023. X?S:gidtype:
  1024. X?S:    This variable defines GIDTYPE to be something like gid_t, int, 
  1025. X?S:    ushort, or whatever type is used to declare group ids in the kernel.
  1026. X?S:.
  1027. X?C:Gid_t (GIDTYPE):
  1028. X?C:    This symbol holds the type used to declare user ids in the kernel.
  1029. X?C:    It can be int, ushort, uid_t, etc... It may be necessary to include
  1030. X?C:    <sys/types.h> to get any typedef'ed information.
  1031. X?C:.
  1032. X?H:#define Gid_t $gidtype        /* Type for getgid(), etc... */
  1033. X?H:.
  1034. X?T:xxx
  1035. X: see what type gids are declared as in the kernel
  1036. Xcase "$gidtype" in
  1037. X'')
  1038. X    if $contains 'gid_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
  1039. X        dflt='gid_t';
  1040. X    else
  1041. X        xxx=`./findhdr sys/user.h`
  1042. X        set `grep 'groups\[NGROUPS\];' "$xxx" 2>/dev/null` unsigned short
  1043. X        case $1 in
  1044. X        unsigned) dflt="$1 $2" ;;
  1045. X        *) dflt="$1" ;;
  1046. X        esac
  1047. X    fi
  1048. X    ;;
  1049. X*)  dflt="$gidtype";;
  1050. Xesac
  1051. Xecho " "
  1052. Xrp="What type are group ids on this system declared as?"
  1053. X. ./myread
  1054. Xgidtype="$ans"
  1055. X
  1056. END_OF_FILE
  1057.   if test 1557 -ne `wc -c <'mcon/U/gidtype.U'`; then
  1058.     echo shar: \"'mcon/U/gidtype.U'\" unpacked with wrong size!
  1059.   fi
  1060.   # end of 'mcon/U/gidtype.U'
  1061. fi
  1062. if test -f 'mcon/U/i_fcntl.U' -a "${1}" != "-c" ; then 
  1063.   echo shar: Will not clobber existing file \"'mcon/U/i_fcntl.U'\"
  1064. else
  1065.   echo shar: Extracting \"'mcon/U/i_fcntl.U'\" \(1639 characters\)
  1066.   sed "s/^X//" >'mcon/U/i_fcntl.U' <<'END_OF_FILE'
  1067. X?RCS: $Id: i_fcntl.U,v 3.0 1993/08/18 12:08:18 ram Exp $
  1068. X?RCS:
  1069. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1070. X?RCS: 
  1071. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1072. X?RCS: as specified in the README file that comes with the distribution.
  1073. X?RCS: You may reuse parts of this distribution only within the terms of
  1074. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1075. X?RCS: of the source tree for dist 3.0.
  1076. X?RCS:
  1077. X?RCS: $Log: i_fcntl.U,v $
  1078. X?RCS: Revision 3.0  1993/08/18  12:08:18  ram
  1079. X?RCS: Baseline for dist 3.0 netwide release.
  1080. X?RCS:
  1081. X?MAKE:i_fcntl: h_fcntl h_sysfile +i_sysfile Inhdr Setvar
  1082. X?MAKE:    -pick add $@ %<
  1083. X?S:i_fcntl:
  1084. X?S:    This variable controls the value of I_FCNTL (which tells
  1085. X?S:    the C program to include <fcntl.h>).
  1086. X?S:.
  1087. X?C:I_FCNTL (HDR_O_STUFF FCNTL):
  1088. X?C:    This manifest constant tells the C program to include <fcntl.h>.
  1089. X?C:.
  1090. X?H:#$i_fcntl I_FCNTL    /**/
  1091. X?H:.
  1092. X?T:val
  1093. X?X: Make line lists +i_sysfile to ensure tests for <sys/file.h> will be
  1094. X?X: conducted prior tests for <fcntl.h>, hece making sure the h_sysfile
  1095. X?X: variable is correctly set when we reach that unit.
  1096. X?LINT:set i_fcntl
  1097. X?LINT:use i_sysfile
  1098. X?LINT:change h_fcntl
  1099. X: see if fcntl.h is there
  1100. Xval=''
  1101. Xset fcntl.h val
  1102. Xeval $inhdr
  1103. X
  1104. X: see if we can include fcntl.h
  1105. Xcase "$val" in
  1106. X"$define")
  1107. X    echo " "
  1108. X    if $h_fcntl; then
  1109. X        val="$define"
  1110. X        echo "We'll be including <fcntl.h>." >&4
  1111. X    else
  1112. X        val="$undef"
  1113. X        if $h_sysfile; then
  1114. X    echo "We don't need to include <fcntl.h> if we include <sys/file.h>." >&4
  1115. X        else
  1116. X            echo "We won't be including <fcntl.h>." >&4
  1117. X        fi
  1118. X    fi
  1119. X    ;;
  1120. X*)
  1121. X    h_fcntl=false
  1122. X    val="$undef"
  1123. X    ;;
  1124. Xesac
  1125. Xset i_fcntl
  1126. Xeval $setvar
  1127. X
  1128. END_OF_FILE
  1129.   if test 1639 -ne `wc -c <'mcon/U/i_fcntl.U'`; then
  1130.     echo shar: \"'mcon/U/i_fcntl.U'\" unpacked with wrong size!
  1131.   fi
  1132.   # end of 'mcon/U/i_fcntl.U'
  1133. fi
  1134. if test -f 'mcon/U/i_niin.U' -a "${1}" != "-c" ; then 
  1135.   echo shar: Will not clobber existing file \"'mcon/U/i_niin.U'\"
  1136. else
  1137.   echo shar: Extracting \"'mcon/U/i_niin.U'\" \(1549 characters\)
  1138.   sed "s/^X//" >'mcon/U/i_niin.U' <<'END_OF_FILE'
  1139. X?RCS: $Id: i_niin.U,v 3.0 1993/08/18 12:08:24 ram Exp $
  1140. X?RCS:
  1141. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1142. X?RCS: 
  1143. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1144. X?RCS: as specified in the README file that comes with the distribution.
  1145. X?RCS: You may reuse parts of this distribution only within the terms of
  1146. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1147. X?RCS: of the source tree for dist 3.0.
  1148. X?RCS:
  1149. X?RCS: $Log: i_niin.U,v $
  1150. X?RCS: Revision 3.0  1993/08/18  12:08:24  ram
  1151. X?RCS: Baseline for dist 3.0 netwide release.
  1152. X?RCS:
  1153. X?X:
  1154. X?X: This unit looks wether <netinet/in.h> is available or not
  1155. X?X:
  1156. X?MAKE:i_niin i_sysin: Inhdr
  1157. X?MAKE:    -pick add $@ %<
  1158. X?S:i_niin:
  1159. X?S:    This variable conditionally defines I_NETINET_IN, which indicates
  1160. X?S:    to the C program that it should include <netinet/in.h>. Otherwise,
  1161. X?S: you may try <sys/in.h>.
  1162. X?S:.
  1163. X?S:i_sysin:
  1164. X?S:    This variable conditionally defines I_SYS_IN, which indicates
  1165. X?S:    to the C program that it should include <sys/in.h> instead of
  1166. X?S: <netinet/in.h>.
  1167. X?S:.
  1168. X?C:I_NETINET_IN:
  1169. X?C:    This symbol, if defined, indicates to the C program that it should
  1170. X?C:    include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
  1171. X?C:.
  1172. X?C:I_SYS_IN (I_SYSIN):
  1173. X?C:    This symbol, if defined, indicates to the C program that it should
  1174. X?C:    include <sys/in.h> instead of <netinet/in.h>.
  1175. X?C:.
  1176. X?H:#$i_niin I_NETINET_IN    /**/
  1177. X?H:#$i_sysin I_SYS_IN        /**/
  1178. X?H:.
  1179. X?LINT:set i_niin i_sysin
  1180. X: see if this is a netinet/in.h or sys/in.h system
  1181. Xset netinet/in.h i_niin sys/in.h i_sysin
  1182. Xeval $inhdr
  1183. X
  1184. END_OF_FILE
  1185.   if test 1549 -ne `wc -c <'mcon/U/i_niin.U'`; then
  1186.     echo shar: \"'mcon/U/i_niin.U'\" unpacked with wrong size!
  1187.   fi
  1188.   # end of 'mcon/U/i_niin.U'
  1189. fi
  1190. if test -f 'mcon/U/i_syssock.U' -a "${1}" != "-c" ; then 
  1191.   echo shar: Will not clobber existing file \"'mcon/U/i_syssock.U'\"
  1192. else
  1193.   echo shar: Extracting \"'mcon/U/i_syssock.U'\" \(1111 characters\)
  1194.   sed "s/^X//" >'mcon/U/i_syssock.U' <<'END_OF_FILE'
  1195. X?RCS: $Id: i_syssock.U,v 3.0 1993/08/18 12:08:36 ram Exp $
  1196. X?RCS:
  1197. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1198. X?RCS: 
  1199. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1200. X?RCS: as specified in the README file that comes with the distribution.
  1201. X?RCS: You may reuse parts of this distribution only within the terms of
  1202. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1203. X?RCS: of the source tree for dist 3.0.
  1204. X?RCS:
  1205. X?RCS: $Log: i_syssock.U,v $
  1206. X?RCS: Revision 3.0  1993/08/18  12:08:36  ram
  1207. X?RCS: Baseline for dist 3.0 netwide release.
  1208. X?RCS:
  1209. X?MAKE:i_syssock: Inhdr
  1210. X?MAKE:    -pick add $@ %<
  1211. X?S:i_syssock:
  1212. X?S:    This variable conditionally defines the I_SYS_SOCKET symbol, and indicates
  1213. X?S:    whether a C program should include <sys/socket.h> before performing socket
  1214. X?S: operations.
  1215. X?S:.
  1216. X?C:I_SYS_SOCKET:
  1217. X?C:    This symbol, if defined, indicates to the C program that it should
  1218. X?C:    include <sys/socket.h> before performing socket calls.
  1219. X?C:.
  1220. X?H:#$i_syssock I_SYS_SOCKET        /**/
  1221. X?H:.
  1222. X?LINT:set i_syssock
  1223. X: see if this is a sys/socket.h system
  1224. Xset sys/socket.h i_syssock
  1225. Xeval $inhdr
  1226. X
  1227. END_OF_FILE
  1228.   if test 1111 -ne `wc -c <'mcon/U/i_syssock.U'`; then
  1229.     echo shar: \"'mcon/U/i_syssock.U'\" unpacked with wrong size!
  1230.   fi
  1231.   # end of 'mcon/U/i_syssock.U'
  1232. fi
  1233. if test -f 'mcon/U/libpth.U' -a "${1}" != "-c" ; then 
  1234.   echo shar: Will not clobber existing file \"'mcon/U/libpth.U'\"
  1235. else
  1236.   echo shar: Extracting \"'mcon/U/libpth.U'\" \(1626 characters\)
  1237.   sed "s/^X//" >'mcon/U/libpth.U' <<'END_OF_FILE'
  1238. X?RCS: $Id: libpth.U,v 3.0 1993/08/18 12:09:02 ram Exp $
  1239. X?RCS:
  1240. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1241. X?RCS: 
  1242. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1243. X?RCS: as specified in the README file that comes with the distribution.
  1244. X?RCS: You may reuse parts of this distribution only within the terms of
  1245. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1246. X?RCS: of the source tree for dist 3.0.
  1247. X?RCS:
  1248. X?RCS: $Log: libpth.U,v $
  1249. X?RCS: Revision 3.0  1993/08/18  12:09:02  ram
  1250. X?RCS: Baseline for dist 3.0 netwide release.
  1251. X?RCS:
  1252. X?X:
  1253. X?X:    This unit initializes the path for C library lookup.
  1254. X?X:
  1255. X?MAKE:libpth xlibpth plibpth: mips incpath
  1256. X?MAKE:    -pick add $@ %<
  1257. X?S:libpth:
  1258. X?S:    This variable holds the general path used to find libraries. It is
  1259. X?S:    intended to be used by other units.
  1260. X?S:.
  1261. X?S:plibpth:
  1262. X?S:    Holds the private path used by Configure to find out the libraries.
  1263. X?S:    Its value is prepend to libpth. This variable takes care of special
  1264. X?S:    machines, like the mips.
  1265. X?S:.
  1266. X?INIT:: change the next line if compiling for Xenix/286 on Xenix/386
  1267. X?INIT:xlibpth='/usr/lib/386 /lib/386'
  1268. X?INIT:
  1269. X?INIT:: general looking path for locating libraries
  1270. X?INIT:libpth='/usr/lib/large /lib '$xlibpth' /lib/large'
  1271. X?INIT:libpth=$libpth' /usr/lib/small /lib/small'
  1272. X?INIT:
  1273. X?LINT:describe xlibpth
  1274. X?LINT:use mips
  1275. X: Set private lib path
  1276. Xcase "$plibpth" in
  1277. X'') if mips; then
  1278. X?X: on mips, we DO NOT want /lib, and we want $incpath/usr/lib
  1279. X        plibpth="$incpath/usr/lib /usr/local/lib /usr/ccs/lib"
  1280. X    else
  1281. X        plibpth="/usr/ccs/lib /usr/lib /usr/ucblib /usr/local/lib"
  1282. X    fi;;
  1283. Xesac
  1284. Xlibpth="$plibpth $libpth"
  1285. X
  1286. END_OF_FILE
  1287.   if test 1626 -ne `wc -c <'mcon/U/libpth.U'`; then
  1288.     echo shar: \"'mcon/U/libpth.U'\" unpacked with wrong size!
  1289.   fi
  1290.   # end of 'mcon/U/libpth.U'
  1291. fi
  1292. if test -f 'mcon/U/mailer.U' -a "${1}" != "-c" ; then 
  1293.   echo shar: Will not clobber existing file \"'mcon/U/mailer.U'\"
  1294. else
  1295.   echo shar: Extracting \"'mcon/U/mailer.U'\" \(1617 characters\)
  1296.   sed "s/^X//" >'mcon/U/mailer.U' <<'END_OF_FILE'
  1297. X?RCS: $Id: mailer.U,v 3.0 1993/08/18 12:09:10 ram Exp $
  1298. X?RCS:
  1299. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1300. X?RCS: 
  1301. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1302. X?RCS: as specified in the README file that comes with the distribution.
  1303. X?RCS: You may reuse parts of this distribution only within the terms of
  1304. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1305. X?RCS: of the source tree for dist 3.0.
  1306. X?RCS:
  1307. X?RCS: $Log: mailer.U,v $
  1308. X?RCS: Revision 3.0  1993/08/18  12:09:10  ram
  1309. X?RCS: Baseline for dist 3.0 netwide release.
  1310. X?RCS:
  1311. X?MAKE:mailer: test cat rmail mail smail sendmail Getfile Oldconfig
  1312. X?MAKE:    -pick add $@ %<
  1313. X?S:mailer:
  1314. X?S:    This variable contains the full pathname of a reasonable mailer.
  1315. X?S:    By reasonable, we mean some program which can understand internet
  1316. X?S:    addresses or at least forward them to some internet router. This
  1317. X?S:    mailer should be invoked as "mailer [options] recipients <mail".
  1318. X?S:.
  1319. X: determine the name of a reasonable mailer
  1320. Xcase "$mailer" in
  1321. X'')
  1322. X    if $test -f "$sendmail"; then
  1323. X        dflt="$sendmail"
  1324. X    elif $test -f "$smail"; then
  1325. X        dflt="$smail"
  1326. X    elif $test -f "$rmail"; then
  1327. X        dflt="$rmail"
  1328. X    elif $test -f /bin/mail; then
  1329. X        dflt=/bin/mail
  1330. X    else
  1331. X        dflt=$mail
  1332. X    fi
  1333. X    ;;
  1334. X*)  dflt="$mailer";;
  1335. Xesac
  1336. X$cat <<EOM
  1337. X
  1338. XI need the full pathname of the program used to deliver mail on your system.
  1339. XA typical answer would be /usr/lib/sendmail or /bin/rmail, but you may choose
  1340. Xany other program, as long as it can be fed from standard input and will
  1341. Xhonour any user-supplied headers.
  1342. X
  1343. XEOM
  1344. Xfn=f
  1345. Xrp='Mail transport agent to be used?'
  1346. X. ./getfile
  1347. Xmailer="$ans"
  1348. X
  1349. END_OF_FILE
  1350.   if test 1617 -ne `wc -c <'mcon/U/mailer.U'`; then
  1351.     echo shar: \"'mcon/U/mailer.U'\" unpacked with wrong size!
  1352.   fi
  1353.   # end of 'mcon/U/mailer.U'
  1354. fi
  1355. if test -f 'mcon/U/newslevel.U' -a "${1}" != "-c" ; then 
  1356.   echo shar: Will not clobber existing file \"'mcon/U/newslevel.U'\"
  1357. else
  1358.   echo shar: Extracting \"'mcon/U/newslevel.U'\" \(1665 characters\)
  1359.   sed "s/^X//" >'mcon/U/newslevel.U' <<'END_OF_FILE'
  1360. X?RCS: $Id: newslevel.U,v 3.0 1993/08/18 12:09:21 ram Exp $
  1361. X?RCS:
  1362. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1363. X?RCS: 
  1364. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1365. X?RCS: as specified in the README file that comes with the distribution.
  1366. X?RCS: You may reuse parts of this distribution only within the terms of
  1367. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1368. X?RCS: of the source tree for dist 3.0.
  1369. X?RCS:
  1370. X?RCS: $Log: newslevel.U,v $
  1371. X?RCS: Revision 3.0  1993/08/18  12:09:21  ram
  1372. X?RCS: Baseline for dist 3.0 netwide release.
  1373. X?RCS:
  1374. X?MAKE:newslevel: cat contains test activeexp newslib Myread Oldconfig
  1375. X?MAKE:    -pick add $@ %<
  1376. X?S:newslevel: 
  1377. X?S:    The current revision level of the Usenet news system, encoded
  1378. X?S:    as 1000 * major rev + 10 * minor rev + sub rev.  For instance,
  1379. X?S:    news 2.10.3 is encode as 2103, and 2.11 as 2110.
  1380. X?S:.
  1381. X?C:NEWSLEVEL:
  1382. X?C:    The current revision level of the Usenet news system, encoded
  1383. X?C:    as 1000 * major rev + 10 * minor rev + sub rev.  For instance,
  1384. X?C:    news 2.10.3 is encode as 2103, and 2.11 as 2110.
  1385. X?C:.
  1386. X?H:#define NEWSLEVEL $newslevel    /**/
  1387. X?H:.
  1388. X: check for news version
  1389. Xif $test -f $activeexp; then
  1390. X    if ??? >/dev/null 2>&1; then
  1391. X        dflt=2110
  1392. X    elif $test -f $newslib/cunbatch; then
  1393. X        dflt=2103
  1394. X    elif $contains ' [0-9][0-9]* [0-9]' "$activeexp" >/dev/null 2>&1; then
  1395. X        dflt=2102
  1396. X    else
  1397. X        dflt=2101
  1398. X    fi
  1399. Xelse
  1400. X    dflt=$newslevel
  1401. Xfi
  1402. X$cat <<EOM
  1403. X
  1404. XThe following news version number is a multiplexed integer:
  1405. X    1000 * major rev + 10 * minor rev + sub rev.
  1406. XNews 2.10.3 would be 2103.  2.11 comes out as 2110.
  1407. X
  1408. XEOM
  1409. Xrp="What version of news are you going to be running?"
  1410. X. ./myread
  1411. Xnewslevel="$ans"
  1412. X
  1413. END_OF_FILE
  1414.   if test 1665 -ne `wc -c <'mcon/U/newslevel.U'`; then
  1415.     echo shar: \"'mcon/U/newslevel.U'\" unpacked with wrong size!
  1416.   fi
  1417.   # end of 'mcon/U/newslevel.U'
  1418. fi
  1419. if test -f 'mcon/U/newsspool.U' -a "${1}" != "-c" ; then 
  1420.   echo shar: Will not clobber existing file \"'mcon/U/newsspool.U'\"
  1421. else
  1422.   echo shar: Extracting \"'mcon/U/newsspool.U'\" \(1648 characters\)
  1423.   sed "s/^X//" >'mcon/U/newsspool.U' <<'END_OF_FILE'
  1424. X?RCS: $Id: newsspool.U,v 3.0 1993/08/18 12:09:24 ram Exp $
  1425. X?RCS:
  1426. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1427. X?RCS: 
  1428. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1429. X?RCS: as specified in the README file that comes with the distribution.
  1430. X?RCS: You may reuse parts of this distribution only within the terms of
  1431. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1432. X?RCS: of the source tree for dist 3.0.
  1433. X?RCS:
  1434. X?RCS: $Log: newsspool.U,v $
  1435. X?RCS: Revision 3.0  1993/08/18  12:09:24  ram
  1436. X?RCS: Baseline for dist 3.0 netwide release.
  1437. X?RCS:
  1438. X?MAKE:newsspool newsspoolexp: Getfile Oldconfig
  1439. X?MAKE:    -pick add $@ %<
  1440. X?S:newsspool:
  1441. X?S:    This variable contains the eventual value of the NEWSSPOOL symbol,
  1442. X?S:    which is the directory name where news articles are spooled.  It
  1443. X?S:    may have a ~ on the front of it.
  1444. X?S:.
  1445. X?S:newsspoolexp:
  1446. X?S:    This is the same as the newsspool variable, but is filename expanded
  1447. X?S:    at configuration time, for programs not wanting to deal with it at
  1448. X?S:    run-time.
  1449. X?S:.
  1450. X?C:NEWSSPOOL:
  1451. X?C:    This symbol contains the directory name where news articles are
  1452. X?C:    spooled.  The program must be prepared to do ~ expansion on it.
  1453. X?C:.
  1454. X?C:NEWSSPOOL_EXP:
  1455. X?C:    This is the same as NEWSSPOOL, but is filename expanded at
  1456. X?C:    configuration time, for use in programs not willing to do so
  1457. X?C:    at run-time.
  1458. X?C:.
  1459. X?H:#define NEWSSPOOL "$newsspool"    /**/
  1460. X?H:#define NEWSSPOOL_EXP "$newsspoolexp"    /**/
  1461. X?H:.
  1462. X: locate news spool directory
  1463. Xcase "$newsspool" in
  1464. X'')
  1465. X    dflt=/usr/spool/news
  1466. X    ;;
  1467. X*) dflt="$newsspool";;
  1468. Xesac
  1469. Xecho " "
  1470. Xfn=d~
  1471. Xrp='Where are news spooled?'
  1472. X. ./getfile
  1473. Xnewsspool="$ans"
  1474. Xnewsspoolexp="$ansexp"
  1475. X
  1476. END_OF_FILE
  1477.   if test 1648 -ne `wc -c <'mcon/U/newsspool.U'`; then
  1478.     echo shar: \"'mcon/U/newsspool.U'\" unpacked with wrong size!
  1479.   fi
  1480.   # end of 'mcon/U/newsspool.U'
  1481. fi
  1482. if test -f 'mcon/U/prefshell.U' -a "${1}" != "-c" ; then 
  1483.   echo shar: Will not clobber existing file \"'mcon/U/prefshell.U'\"
  1484. else
  1485.   echo shar: Extracting \"'mcon/U/prefshell.U'\" \(1658 characters\)
  1486.   sed "s/^X//" >'mcon/U/prefshell.U' <<'END_OF_FILE'
  1487. X?RCS: $Id: prefshell.U,v 3.0 1993/08/18 12:09:34 ram Exp $
  1488. X?RCS:
  1489. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1490. X?RCS: 
  1491. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1492. X?RCS: as specified in the README file that comes with the distribution.
  1493. X?RCS: You may reuse parts of this distribution only within the terms of
  1494. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1495. X?RCS: of the source tree for dist 3.0.
  1496. X?RCS:
  1497. X?RCS: $Log: prefshell.U,v $
  1498. X?RCS: Revision 3.0  1993/08/18  12:09:34  ram
  1499. X?RCS: Baseline for dist 3.0 netwide release.
  1500. X?RCS:
  1501. X?MAKE:prefshell: cat package Getfile Oldconfig ksh csh bash
  1502. X?MAKE:    -pick add $@ %<
  1503. X?S:prefshell:
  1504. X?S:    This variable contains the eventual value of the PREFSHELL symbol,
  1505. X?S:    which contains the full name of the preferred user shell on this
  1506. X?S:    system.  Usual values are /bin/csh, /bin/ksh, /bin/sh.
  1507. X?S:.
  1508. X?C:PREFSHELL:
  1509. X?C:    This symbol contains the full name of the preferred user shell on this
  1510. X?C:    system.  Usual values are /bin/csh, /bin/ksh, /bin/sh.
  1511. X?C:.
  1512. X?H:#define PREFSHELL "$prefshell"        /**/
  1513. X?H:.
  1514. X: find out which shell people like to use most
  1515. Xcase "$prefshell" in
  1516. X'')
  1517. X    case "$ksh $bash $csh" in
  1518. X    */ksh*) dflt="$ksh" ;;
  1519. X    */bash*) dflt="$bash" ;;
  1520. X    */csh*) dflt="$csh" ;;
  1521. X    *) dflt='/bin/sh' ;;
  1522. X    esac
  1523. X    ;;
  1524. X*)  dflt="$prefshell";;
  1525. Xesac
  1526. X$cat <<EOM
  1527. X
  1528. XGive the full path name of the shell most people like to use on your system.
  1529. XThis will be used by $package whenever the user wants to get a shell
  1530. Xescape (for instance) and is not necessarily the same as the shell you are
  1531. Xcurrently using (${SHELL:-/bin/sh}).
  1532. X
  1533. XEOM
  1534. Xfn=f/~
  1535. Xrp='Preferred shell to be used?'
  1536. X. ./getfile
  1537. Xprefshell=$ans
  1538. X
  1539. END_OF_FILE
  1540.   if test 1658 -ne `wc -c <'mcon/U/prefshell.U'`; then
  1541.     echo shar: \"'mcon/U/prefshell.U'\" unpacked with wrong size!
  1542.   fi
  1543.   # end of 'mcon/U/prefshell.U'
  1544. fi
  1545. if test -f 'mcon/U/warnflags.U' -a "${1}" != "-c" ; then 
  1546.   echo shar: Will not clobber existing file \"'mcon/U/warnflags.U'\"
  1547. else
  1548.   echo shar: Extracting \"'mcon/U/warnflags.U'\" \(1552 characters\)
  1549.   sed "s/^X//" >'mcon/U/warnflags.U' <<'END_OF_FILE'
  1550. X?RCS: $Id: warnflags.U,v 3.0 1993/08/18 12:10:02 ram Exp $
  1551. X?RCS:
  1552. X?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1553. X?RCS: 
  1554. X?RCS: You may redistribute only under the terms of the Artistic Licence,
  1555. X?RCS: as specified in the README file that comes with the distribution.
  1556. X?RCS: You may reuse parts of this distribution only within the terms of
  1557. X?RCS: that same Artistic Licence; a copy of which may be found at the root
  1558. X?RCS: of the source tree for dist 3.0.
  1559. X?RCS:
  1560. X?RCS: Orginal Author: Graham Stoney <greyham@research.canon.oz.au>
  1561. X?RCS:
  1562. X?RCS: $Log: warnflags.U,v $
  1563. X?RCS: Revision 3.0  1993/08/18  12:10:02  ram
  1564. X?RCS: Baseline for dist 3.0 netwide release.
  1565. X?RCS:
  1566. X?MAKE:warnflags: cat cc contains Myread Guess Oldconfig Findhdr
  1567. X?MAKE:    -pick add $@ %<
  1568. X?S:warnflags:
  1569. X?S:    This variable contains any additional C compiler flags to generate
  1570. X?S:    warnings from the compiler. It is up to the Makefile to use this.
  1571. X?S:.
  1572. X$cat <<EOH
  1573. X
  1574. XYou may wish to compile with extra compiler warnings enabled.
  1575. XNote that doing so enhances your chance of receiving your free set of steak
  1576. Xknives, particularly if you find any bugs and report them.
  1577. XIf you don't want extra warnings, answer "none".
  1578. X  
  1579. XEOH
  1580. Xcase "$warnflags" in
  1581. X'') case "$cc" in
  1582. X    *gcc*)
  1583. X        dflt="-Wall -Wno-comment"
  1584. X        if $contains 'fprintf' `./findhdr stdio.h` >/dev/null 2>&1; then
  1585. X            :
  1586. X        else
  1587. X            dflt="$dflt -Wno-implicit"
  1588. X        fi
  1589. X        ;;
  1590. X    *) dflt="none";;
  1591. X    esac
  1592. X    ;;
  1593. X' ') dflt="none";;
  1594. X*) dflt="$warnflags";;
  1595. Xesac
  1596. X
  1597. Xrp="Any $cc flags to enable warnings?"
  1598. X. ./myread
  1599. Xcase "$ans" in
  1600. Xnone) warnflags=' ';;
  1601. X*) warnflags="$ans";;
  1602. Xesac
  1603. X
  1604. END_OF_FILE
  1605.   if test 1552 -ne `wc -c <'mcon/U/warnflags.U'`; then
  1606.     echo shar: \"'mcon/U/warnflags.U'\" unpacked with wrong size!
  1607.   fi
  1608.   # end of 'mcon/U/warnflags.U'
  1609. fi
  1610. if test -f 'pat/patindex.SH' -a "${1}" != "-c" ; then 
  1611.   echo shar: Will not clobber existing file \"'pat/patindex.SH'\"
  1612. else
  1613.   echo shar: Extracting \"'pat/patindex.SH'\" \(1588 characters\)
  1614.   sed "s/^X//" >'pat/patindex.SH' <<'END_OF_FILE'
  1615. Xcase $CONFIG in
  1616. X'')
  1617. X    if test -f config.sh; then TOP=.;
  1618. X    elif test -f ../config.sh; then TOP=..;
  1619. X    elif test -f ../../config.sh; then TOP=../..;
  1620. X    elif test -f ../../../config.sh; then TOP=../../..;
  1621. X    elif test -f ../../../../config.sh; then TOP=../../../..;
  1622. X    else
  1623. X        (echo "Can't find config.sh."; exit 1)
  1624. X    fi
  1625. X    . $TOP/config.sh
  1626. X    ;;
  1627. Xesac
  1628. Xcase "$0" in
  1629. X*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
  1630. Xesac
  1631. Xecho "Extracting pat/patindex (with variable substitutions)"
  1632. X$spitshell >patindex <<!GROK!THIS!
  1633. X$startsh
  1634. X
  1635. X# $Id: patindex.SH,v 3.0 1993/08/18 12:10:44 ram Exp $
  1636. X#
  1637. X#  Copyright (c) 1991-1993, Raphael Manfredi
  1638. X#  
  1639. X#  You may redistribute only under the terms of the Artistic Licence,
  1640. X#  as specified in the README file that comes with the distribution.
  1641. X#  You may reuse parts of this distribution only within the terms of
  1642. X#  that same Artistic Licence; a copy of which may be found at the root
  1643. X#  of the source tree for dist 3.0.
  1644. X#
  1645. X# Original Author: Larry Wall <lwall@netlabs.com>
  1646. X#
  1647. X# $Log: patindex.SH,v $
  1648. X# Revision 3.0  1993/08/18  12:10:44  ram
  1649. X# Baseline for dist 3.0 netwide release.
  1650. X#
  1651. X
  1652. Xzcat='$zcat'
  1653. Xtest='$test'
  1654. Xsed='$sed'
  1655. Xgrep='$grep'
  1656. X
  1657. X!GROK!THIS!
  1658. X$spitshell >>patindex <<'!NO!SUBS!'
  1659. Xif test -d bugs; then
  1660. X    cd bugs
  1661. Xfi
  1662. Xfor i in patch? patch??; do
  1663. X    if $test -f $i; then
  1664. X        echo "=== $i ==="
  1665. X        $grep '^Subject: ' $i | $sed 's/^patch\(.*\):Subject/\1/'
  1666. X    fi
  1667. Xdone
  1668. Xfor i in patch?.Z patch??.Z; do
  1669. X    if $test -f $i; then
  1670. X        name=`echo $i | $sed "s|\.Z$||"`
  1671. X        echo "=== $name ==="
  1672. X        $zcat $i | $grep '^Subject: ' | $sed 's/^patch\(.*\):Subject/\1/'
  1673. X    fi
  1674. Xdone
  1675. X!NO!SUBS!
  1676. Xchmod 755 patindex
  1677. X$eunicefix patindex
  1678. END_OF_FILE
  1679.   if test 1588 -ne `wc -c <'pat/patindex.SH'`; then
  1680.     echo shar: \"'pat/patindex.SH'\" unpacked with wrong size!
  1681.   fi
  1682.   # end of 'pat/patindex.SH'
  1683. fi
  1684. echo shar: End of archive 21 \(of 28\).
  1685. cp /dev/null ark21isdone
  1686. MISSING=""
  1687. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ; do
  1688.     if test ! -f ark${I}isdone ; then
  1689.     MISSING="${MISSING} ${I}"
  1690.     fi
  1691. done
  1692. if test "${MISSING}" = "" ; then
  1693.     echo You have unpacked all 28 archives.
  1694.     echo "Please run PACKNOTES through sh, read REAMDE and then type Configure."
  1695.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1696. else
  1697.     echo You still must unpack the following archives:
  1698.     echo "        " ${MISSING}
  1699. fi
  1700. exit 0
  1701.  
  1702. exit 0 # Just in case...
  1703.