home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / trn / trn-no-n.con < prev   
Text File  |  1995-10-10  |  20KB  |  560 lines

  1. Script started on Mon Sep 12 01:53:00 1994
  2. fuzzy:~/trn-3.4# Configure 
  3.   
  4. Beginning of configuration questions for trn. 
  5.   
  6. Checking echo to see how to suppress newlines... 
  7. ...using -n. 
  8. The star should be here-->* 
  9.   
  10. First let's make sure your kit is complete.  Checking... 
  11. Looks good... 
  12.   
  13. This installation shell script will examine your system and ask you questions 
  14. to determine how the trn package should be installed. If you get 
  15. stuck on a question, you may use a ! shell escape to start a subshell or 
  16. execute a command.  Many of the questions will have default answers in square 
  17. brackets; typing carriage return will give you the default. 
  18.  
  19. On some of the questions which ask for file or directory names you are allowed 
  20. to use the ~name construct to specify the login directory belonging to "name", 
  21. even if you don't have a shell which knows about that.  Questions where this is 
  22. allowed will be marked "(~name ok)". 
  23.  
  24. [Type carriage return to continue]  
  25.  
  26. The prompter used in this script allows you to use shell variables and 
  27. backticks in your answers.  You may use $1, $2, etc...  to refer to the words 
  28. in the default answer, as if the default line was a set of arguments given to a 
  29. script shell.  This means you may also use $* to repeat the whole default line, 
  30. so you do not have to re-type everything to add something to the default. 
  31.  
  32. Everytime there is a substitution, you will have to confirm.  If there is an 
  33. error (e.g. an unmatched backtick), the default answer will remain unchanged 
  34. and you will be prompted again. 
  35.  
  36. If you are in a hurry, you may run 'Configure -d'.  This will bypass nearly all 
  37. the questions and use the computed defaults (or the previous answers if there 
  38. was already a config.sh file). Type 'Configure -h' for a list of options. 
  39.  
  40. [Type carriage return to continue]  
  41.  
  42. Much effort has been expended to ensure that this shell script will run on any 
  43. Unix system.  If despite that it blows up on yours, your best bet is to edit 
  44. Configure and run it again.  Also, let me (davison@borland.com) 
  45. know how I blew it.  If you can't run Configure for some reason, you'll have to 
  46. generate a config.sh file by hand. 
  47.  
  48. This installation script affects things in two ways: 
  49.  
  50. 1) it may do direct variable substitutions on some of the files included 
  51.    in this kit. 
  52. 2) it builds a config.h file for inclusion in C programs.  You may edit 
  53.    any of these files as the need arises after running this script. 
  54.  
  55. If you make a mistake on a question, there is no easy way to back up to it 
  56. currently.  The easiest thing to do is to edit config.sh and rerun all the SH 
  57. files.  Configure will offer to let you do this before it runs the SH files. 
  58.  
  59. [Type carriage return to continue]  
  60.   
  61. Checking your sh to see if it knows about # comments... 
  62. Your sh handles # comments correctly. 
  63.   
  64. Okay, let's see if #! works on this system... 
  65. It does. 
  66.   
  67. Checking out how to guarantee sh startup... 
  68. Let's see if '#!/bin/sh' works... 
  69. Yup, it does. 
  70.   
  71. Locating common programs... 
  72. awk is in /usr/bin/awk. 
  73. cat is in /bin/cat. 
  74. echo is in /bin/echo. 
  75. expr is in /usr/bin/expr. 
  76. grep is in /usr/bin/grep. 
  77. mkdir is in /bin/mkdir. 
  78. mv is in /bin/mv. 
  79. rm is in /bin/rm. 
  80. sed is in /usr/bin/sed. 
  81. sort is in /usr/bin/sort. 
  82. tail is in /usr/bin/tail. 
  83. tr is in /usr/bin/tr. 
  84. uniq is in /usr/bin/uniq. 
  85.   
  86. Don't worry if any of the following aren't found... 
  87. I don't see Mcc out there, offhand. 
  88. bash is in /bin/bash. 
  89. cpp is in /lib/cpp. 
  90. csh is in /bin/csh. 
  91. date is in /bin/date. 
  92. egrep is in /usr/bin/egrep. 
  93. inews is in /usr/bin/inews. 
  94. ispell is in /usr/bin/ispell. 
  95. I don't see ksh out there, either. 
  96. less is in /usr/bin/less. 
  97. mail is in /bin/mail. 
  98. I don't see metamail out there, either. 
  99. I don't see mhn out there, either. 
  100. more is in /bin/more. 
  101. nroff is in /usr/bin/nroff. 
  102. I don't see pg out there, either. 
  103. rmail is in /usr/bin/rmail. 
  104. sendmail is in /usr/sbin/sendmail. 
  105. I don't see smail out there, either. 
  106. test is in /usr/bin/test. 
  107. uname is in /bin/uname. 
  108. I don't see uuname out there, either. 
  109. vi is in /usr/bin/vi. 
  110. Using the test built into your sh. 
  111.   
  112. Checking compatibility between /bin/echo and builtin echo (if any)... 
  113. They are compatible.  In fact, they may be identical. 
  114.  
  115. First time through, eh?  I have some defaults handy for the following systems: 
  116.  
  117. aix_rs       dynix       isc_3_2_3       sco_3_2_4       sunos_4_1    
  118. altos486       hp9000_800       mc6000       sco_xenix       svr4    
  119. convexos       hpux           mips           sgi    
  120. dec_osf1       i386           next           solaris_2_0    
  121. dgux           isc_2_2_1       osf1           solaris_2_1    
  122. domainos       isc_3_2_2       sco_3       solaris_2_2    
  123.  
  124. You may give one or more space-separated answers, or "none" if appropriate. 
  125. If your OS version has no hints, DO NOT give a wrong version -- say "none". 
  126.  
  127. Which of these apply, if any? [none]  
  128.   
  129. Do you want to access news via NNTP? [n]  
  130.   
  131. I can set things up so that your shell scripts and binaries are more portable, 
  132. at what may be a noticable cost in performance.  In particular, if you 
  133. ask to be portable, the following happens: 
  134.  
  135.      1) Shell scripts will rely on the PATH variable rather than using 
  136.     the paths derived above. 
  137.      2) ~username interpretations will be done at run time rather than 
  138.     by Configure. 
  139.      3) The system name will be determined at run time, if at all possible. 
  140.  
  141. Do you expect to run these scripts and binaries on multiple machines? [n] y 
  142.   
  143. Where is the news library directory? (~name ok) [/usr/lib/news] /var/lib/news 
  144. Directory /var/lib/news doesn't exist.  Use that name anyway? [n] y 
  145.   
  146. Which inews should be used for posting articles? [/usr/bin/inews]  
  147.   
  148. Where is the active file? (~name ok) [/var/lib/news/active]  
  149. File /var/lib/news/active doesn't exist.  Use that name anyway? [n] y 
  150.  
  151. If your news system maintains an "active.times" file, trn can use it for a 
  152. fast new-group check.  If it's not around, answer "none" and the active 
  153. file will be scanned for new groups when it changes size. 
  154.  
  155. The full pathname of active.times or "none"? (~name ok) 
  156. [/var/lib/news/active.times] none 
  157.   
  158. Hmm...  Looks kind of like a Version 7 system, but we'll see... 
  159.   
  160. Congratulations.  You aren't running Eunice. 
  161.   
  162. It's not Xenix... 
  163.   
  164. Nor is it Venix... 
  165.  
  166. Does your /etc/passwd file keep full names in Berkeley/V7 format (name first 
  167. thing after ':' in GCOS field)?  In that case, a typical entry in the password 
  168. file looks like this: 
  169.  
  170.     guest:**paswword**:10:100:Mister Guest User:/usr/users:/bin/sh 
  171.                               ^^^^^^^^^^^^^^^^^ 
  172. Berkeley/V7 format for full name in /etc/password? [n] y 
  173.   
  174. System manual is in /usr/man/man1. 
  175.   
  176. Use which C compiler? [cc] gcc 
  177.   
  178. Hmm...  Doesn't look like a MIPS system. 
  179.   
  180. Where are the include files you want to use? [/usr/include]  
  181.   
  182. Checking for optional libraries... 
  183. No -lmalloc. 
  184. Found -lbsd. 
  185. No -lsocket. 
  186. No -lbsdipc. 
  187. No -lsun. 
  188. No -lnet. 
  189. No -lhdb. 
  190. No -lbbn. 
  191. No -lstr. 
  192. No -lnls. 
  193. No -lnsl. 
  194. No -lc_s. 
  195. No -lintl. 
  196. No -lx. 
  197. No -lucb. 
  198.   
  199. Some versions of Unix support shared libraries, which make executables smaller 
  200. but make load time slightly longer. 
  201.  
  202. On some systems, mostly newer Unix System V's, the shared library is included 
  203. by putting the option "-lc_s" as the last thing on the cc command line when 
  204. linking.  Other systems use shared libraries by default.  There may be other 
  205. libraries needed to compile trn on your machine as well.  If your system 
  206. needs the "-lc_s" option, include it here.  Include any other special libraries 
  207. here as well.  Say "none" for none. 
  208.   
  209. Any additional libraries? [-lbsd]  
  210.   
  211. Your C library seems to be in /usr/lib/libc.a.  That's fine. 
  212.  
  213. If the guess above is wrong (which it might be if you're using a strange 
  214. compiler, or your machine supports multiple models), you can override it here. 
  215.  
  216. Where is your C library? [/usr/lib/libc.a]  
  217.   
  218. Extracting names from the following files for later perusal: 
  219.   
  220.     /usr/lib/libbsd.a 
  221.     /usr/lib/libc.a 
  222.   
  223. This may take a while.............  
  224. nm didn't seem to work right. Trying ar instead... 
  225. Ok. 
  226.  
  227. Some C compilers have problems with their optimizers, by default, trn 
  228. compiles with the -O flag to use the optimizer.  Alternately, you might want 
  229. to use the symbolic debugger, which uses the -g flag (on traditional Unix 
  230. systems).  Either flag can be specified here.  To use neither flag, specify 
  231. the word "none". 
  232.  
  233. What optimizer/debugger flag should be used? [-O] -O2 
  234.  
  235. Your C compiler may want other flags.  For this question you should include 
  236. -I/whatever and -DWHATEVER flags and any other flags used by the C compiler, 
  237. but you should NOT include libraries or ld flags like -lwhatever.  If you 
  238. want trn to honor its debug switch, you should include -DDEBUG here. 
  239. To use no flags, specify the word "none". 
  240.  
  241. Any additional cc flags? [none]  
  242.   
  243. Any additional ld flags (NOT including libraries)? [none] -s 
  244.   
  245. ftime() found. 
  246.   
  247. getwd() found. 
  248.   
  249. Figuring out local host name... 
  250. Maybe "hostname" will work... 
  251.  
  252. Trn wants to know what hostname your news software (usually inews) puts 
  253. into the "From" line of news articles posted from this machine.  If you 
  254. get this wrong the ownership checks done for Cancel, Supersede and 
  255. auto-post-selection (the -p option) will fail to recognize articles as 
  256. belonging to the poster. 
  257.  
  258. (NOTE: trn does NOT create "From" lines when posting news or sending mail 
  259. as this is the job of your news/mail software, not trn.) 
  260.  
  261. If you enter a filename here (by starting the name with '/' or '~') trn 
  262. will read the hostname from a file, otherwise specify as much of the 
  263. hostname as you want to be matched in the aforementioned comparisons. 
  264. If your response contains the current machine's name (fuzzy) trn 
  265. will determine that portion at run-time. 
  266.  
  267. What hostname appears in the From line of this machine's postings? 
  268. [fuzzy.UUCP] /etc/HOSTNAME 
  269. Trn will read the host name from /etc/HOSTNAME. 
  270.   
  271.   
  272. getpwent() found. 
  273.   
  274. Termcap library found. 
  275.  
  276. Trn normally looks in the environment variables NEWSORG and ORGANIZATION 
  277. for an overriding organization name.  However, if your operating system 
  278. reserves the environment variable ORGANIZATION for other purposes, you 
  279. will want to ignore it and only have trn check for NEWSORG. 
  280.  
  281. Should ORGANIZATION be ignored? [n]  
  282.   
  283. Most mailers can deliver mail to addresses of the INTERNET persuasion, 
  284. such as user@host.edu.  Some older mailers, however, require the complete 
  285. path to the destination to be specified in the address. 
  286.  
  287. Does your mailer understand INTERNET addresses? [y]  
  288.   
  289. Now, how can we feed standard input to your C preprocessor... 
  290. Using gcc, eh?  We'll try to force gcc -E using a wrapper... 
  291. Yup, we can. 
  292.   
  293. Computing filename position in cpp output for #include directives... 
  294. Your cpp writes the filename in the third field of the line. 
  295.   
  296. No ndir library found, but you have readdir() so we'll use that. 
  297.   
  298. memcmp() found. 
  299.   
  300. memcpy() found. 
  301.   
  302. memset() found. 
  303.  
  304. Trn is able to use an external mime-processing program such as metamail 
  305. or mhn to display and store non-text mime articles.  If you don't have any 
  306. mime-processing programs installed at the moment answer no (you can come 
  307. back and Configure it in later). 
  308.  
  309. Do you want to include mime support? [n]  
  310.   
  311. Many systems keep their news in a private directory, or have a non-superuser 
  312. in charge of administering news.  (If you don't have such a user, take the 
  313. default answer.)  I need the login name (not directory) which is used for 
  314. news administration. 
  315.  
  316. News admin login? [news]  
  317.   
  318. Checking for buffering of stdout to terminal. 
  319.  
  320. Observe the following characters as they are printed out, to see whether they 
  321. print out all at once, or with a 1 second pause between each of them.  If they 
  322. print out one by one, you don't have buffering.  If they print together (after 
  323. about a 5 second pause), you do have buffering. 
  324.  
  325. [Type return to start printing the test characters]  
  326. abcde 
  327. Would you like to see that again? [n]  
  328. Do you have buffering (printed all at once)? [y]  
  329.   
  330. No jobs library found. (That's okay, we all have our faults.) 
  331.   
  332. Checking to see how well your C compiler groks the void type... 
  333. Yup, it does. 
  334.   
  335. rdchk() NOT found. 
  336.   
  337. rename() found. 
  338.   
  339. sigblock() found. 
  340.   
  341. sighold() NOT found. 
  342.   
  343. strcasecmp() found. 
  344.   
  345. Using <string.h> instead of <strings.h>. 
  346.   
  347. strchr() found. 
  348.   
  349. strftime() found. 
  350.   
  351. Where is news spooled? (~name ok) [/usr/spool/news] /var/spool/news 
  352.  
  353. Trn can take advantage of an mthreads or news overview database if 
  354. one or both of these are available on your system.  Usually trn will 
  355. figure out what's available for itself, but you can have support for 
  356. one or both of these databases disabled by default, if desired. 
  357.  
  358. Default database support for 't'hreads, 'o'verviews, 'b'oth, or 'n'one? 
  359. [both] n 
  360.   
  361. vfork() found. 
  362.   
  363. Pathname where the public executables will reside? (~name ok) 
  364. [/usr/local/bin] /usr/bin 
  365.  
  366. To install the files in this directory, a few strange systems need 
  367. to use a different directory name to get the files there. 
  368.  
  369. What directory name should be used for the install? (~name ok) [/usr/bin]  
  370.   
  371. Distribution groups are the things you use on the Distribution line to limit 
  372. where an article will go to.  You are likely to be a member of several 
  373. distribution groups, such as organization, city, state, province, country, 
  374. continent, etc.  For example, Los Angeles has the distribution code "la", 
  375. New Jersey has the code "nj", and Europe has the code "eunet". 
  376.  
  377. The categories you will be asked are:  
  378.  
  379. local organization    (Could be just one machine or a cluster or an office) 
  380. organization        att, dec, kgb, ... 
  381. city            la, ny, mosc, ... 
  382. state/province        ca, nj, bc, ... 
  383. country            usa, can, rok, whatever 
  384. continent        na (North America), asia, etc. 
  385.  
  386. Use 'none' for any distributions you don't have. 
  387.   
  388. What is the distribution code for your local organization? [none]  
  389. What is the distribution code for your organization? [none]  
  390. What is the distribution code for your city? [none]  
  391. What is the distribution code for your state/province? [none]  
  392. What is the distribution code for your country? [none]  
  393. What is the distribution code for your continent? [none]  
  394.    
  395. If you have any other distribution groups you will need to edit Pnews 
  396. and newsetup to add them. 
  397.   
  398. What is the default editor on your system? [/usr/bin/vi]  
  399.  
  400. There are some auxiliary files for trn that need to be put into a 
  401. private library directory that is accessible by everyone. 
  402.  
  403. Pathname where the private library files will reside? (~name ok) 
  404. [/usr/local/lib/trn] /usr/lib/trn 
  405.  
  406. To install the files in this directory, a few strange systems need 
  407. to use a different directory name to get the files there. 
  408.  
  409. What directory name should be used for the install? (~name ok) 
  410. [/usr/lib/trn]  
  411. Directory /usr/lib/trn doesn't exist.  Use that name anyway? [n] y 
  412.  
  413. trn has manual pages available in source form. 
  414. If you don't want the manual sources installed, answer 'none'. 
  415.   
  416. Where do the manual pages (source) go? (~name ok) [/usr/local/man/man1] /usr/man/man1 
  417. What directory name should be used for the install? (~name ok) 
  418. [/usr/man/man1]  
  419.  
  420. Pnews has a "Check spelling" option that will allow you to correct spelling 
  421. errors if you have ispell or vspell, or will simply list possible spelling 
  422. errors via spell if you don't (assuming you have a spell program!). 
  423.  
  424. Configure has found a spell checker known as /usr/bin/ispell 
  425. Do you want to use an interactive speller? [y]  
  426. What is the full pathname of the executable? [/usr/bin/ispell]  
  427.  
  428. (NOTE: gnu ispell doesn't yet understand -x -- use "none" for no options.) 
  429.  
  430. What options should be used? [-x]  
  431.  
  432. I need the full pathname of the program used to deliver mail on your system. 
  433. A typical answer would be /usr/lib/sendmail or /bin/rmail, but you may choose 
  434. any other program, as long as it can be fed from standard input and will 
  435. honour any user-supplied headers. 
  436.  
  437. Mail transport agent to be used? [/usr/sbin/sendmail] /usr/lib/sendmail 
  438.  
  439. In the following question, you may use %~ to represent the user's home 
  440. directory, and %L to represent a users name. 
  441.  
  442. In which file is yet-to-be-read mail spooled? (~name ok) 
  443. [/usr/spool/mail/%L] /var/spool/mail/%L 
  444.   
  445. In saving articles, trn wants to differentiate between saving to 
  446. mailbox format files and normal files.  It does this by examining the 
  447. first character of the file in question.  On most systems the first line 
  448. starts with "From ...", so the first character is an F.  Other systems 
  449. use magic cookies like control codes between articles, so one of those 
  450. would be first. 
  451.  
  452. What's the first character of a mailbox file? [F]  
  453.   
  454. Please type the name of your organization as you want it to appear on the 
  455. Organization line of outgoing articles.  (It's nice if this also specifies 
  456. your location.  Your city name is probably sufficient if well known.) 
  457. For example: 
  458.  
  459.     University of Southern North Dakota, Hoople 
  460.  
  461. You may also put the name of a file, as long as it begins with a slash. 
  462. For example: 
  463.  
  464.     /etc/organization 
  465.  
  466. Organization: /etc/ORGANIZATION            organization 
  467.  
  468. Some of the support scripts want to use a paging program such as "more" 
  469. to help the user page through the generated output.  You'll probably 
  470. want the most innocuous pager you have, since some lists consist of only 
  471. one line (if your kernel does terminal paging then you may answer this 
  472. with "cat").  Also note that this does not affect the paging of 
  473. articles, as trn uses an internal pager for that. 
  474.  
  475. What pager should we use? [/bin/more]  
  476.  
  477. Give the full path name of the shell most people like to use on your system. 
  478. This will be used by trn whenever the user wants to get a shell 
  479. escape (for instance) and is not necessarily the same as the shell you are 
  480. currently using (/bin/bash). 
  481.  
  482. Preferred shell to be used? (~name ok) [/bin/bash]  
  483.   
  484. Root uid = 0 
  485.   
  486. I can't determine whether signal handler returns void or int... 
  487. What type does your signal handler returns? [void]  
  488.  
  489. Trn has two distinct operating modes (selected by the -x option): 
  490. traditional rn and threaded rn.  If you like, trn will check the first 
  491. letter of the command name and default to threaded mode (-x) if it is 
  492. a 't', or run as traditional rn (+x) if it isn't (this lets you install 
  493. as both trn and rn, linked together).  Otherwise, you can install trn 
  494. to default to threaded rn (-x) no matter what its name is. 
  495.  
  496. Do you want trn to default to -x, regardless of name? [y] n 
  497.  
  498. When the -X option is specified, trn will set the default command 
  499. for starting a newsgroup to be the selector. 
  500.  
  501. Should the -X option be on by default for trn (not rn)? [y]  
  502.   
  503. <dirent.h> found. 
  504.   
  505. Your C preprocessor defines the following symbols: 
  506. __STDC__ 
  507. i386 
  508. unix 
  509. __unix__ 
  510.   
  511. tcsetattr() found. 
  512.   
  513. You have POSIX termios.h... good! 
  514.   
  515. <stdlib.h> found. 
  516.   
  517. <sys/dir.h> found. 
  518.   
  519. <sys/ioctl.h> found. 
  520.   
  521. <sys/ndir.h> NOT found. 
  522.   
  523. Testing to see if we should include <time.h>, <sys/time.h> or both. 
  524. I'm now running the test program....  
  525. Succeeded with -DI_SYSTIME -DS_TIMEVAL  
  526. We'll include <sys/time.h>. 
  527.   
  528. <unistd.h> found. 
  529.   
  530. <vfork.h> NOT found. 
  531.   
  532. End of configuration questions. 
  533.   
  534.   
  535. Creating config.sh... 
  536.   
  537. If you didn't make any mistakes, then just type a carriage return here. 
  538. If you need to edit config.sh, do it as a shell escape here:  
  539.   
  540. Doing variable substitutions on .SH files... 
  541. Extracting Makefile (with variable substitutions) 
  542. Extracting Pnews (with variable substitutions) 
  543. Extracting Policy.sh (with variable substitutions) 
  544. Extracting Rnmail (with variable substitutions) 
  545. Extracting Speller (with variable substitutions) 
  546. Extracting config.h (with variable substitutions) 
  547. Extracting makedepend (with variable substitutions) 
  548. Extracting makedir (with variable substitutions) 
  549. Extracting mbox.saver (with variable substitutions) 
  550. Extracting newsetup (with variable substitutions) 
  551. Extracting newsgroups (with variable substitutions) 
  552. Extracting newsnews (with variable substitutions) 
  553. Extracting norm.saver (with variable substitutions) 
  554.   
  555. Now type "make". 
  556. fuzzy:~/trn-3.4# exit 
  557. exit 
  558.  
  559. Script done on Mon Sep 12 01:58:41 1994
  560.