home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / gnu / perl-4.036-diffs.lha / GNU / src / diffs / perl-4.036.diffs
Encoding:
Text File  |  1994-09-07  |  221.8 KB  |  8,455 lines

  1. diff -rc --new-file perl-4.036/Configure /gnu/src/amiga/perl-4.036/Configure
  2. *** perl-4.036/Configure    Mon Feb  8 20:37:48 1993
  3. --- /gnu/src/amiga/perl-4.036/Configure    Mon May  2 16:14:42 1994
  4. ***************
  5. *** 1,4055 ****
  6. ! #! /bin/sh
  7. ! #
  8. ! # If these # comments don't work, trim them.  Don't worry about any other
  9. ! # shell scripts, Configure will trim # comments from them for you.
  10. ! #
  11. ! # (If you are trying to port this package to a machine without sh, I would
  12. ! # suggest you cut out the prototypical config.h from the end of Configure
  13. ! # and edit it to reflect your system.  Some packages may include samples
  14. ! # of config.h for certain machines, so you might look for one of those.)
  15. ! #
  16. ! # $RCSfile: Configure,v $$Revision: 4.0.1.9 $$Date: 92/06/23 12:28:33 $
  17. ! #
  18. ! # Yes, you may rip this off to use in other distribution packages.
  19. ! # (Note: this Configure script was generated automatically.  Rather than
  20. ! # working with this copy of Configure, you may wish to get metaconfig.)
  21. ! cat >/tmp/c1$$ <<EOF
  22. ! ARGGGHHHH!!!!!
  23. ! Your csh still thinks true is false.  Write to your vendor today and tell
  24. ! them that next year Configure ought to "rm /bin/csh" unless they fix their
  25. ! blasted shell. :-)
  26. ! [End of diatribe.  We now return you to your regularly scheduled
  27. ! programming...]
  28.   EOF
  29. ! cat >/tmp/c2$$ <<EOF
  30. ! OOPS!  You naughty creature!  You didn't run Configure with sh!
  31. ! I will attempt to remedy the situation by running sh for you...
  32.   
  33.   EOF
  34. ! true || cat /tmp/c1$$ /tmp/c2$$
  35. ! true || exec sh $0
  36. ! export PATH || cat /tmp/c2$$
  37. ! export PATH || exec sh $0
  38. ! rm -f /tmp/c1$$ /tmp/c2$$
  39. ! PATH=".:$PATH:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin:/etc:/usr/new:/usr/new/bin:/usr/nbin"
  40. ! if test ! -t 0; then
  41. !     echo "Say 'sh Configure', not 'sh <Configure'"
  42. !     exit 1
  43.   fi
  44.   
  45. - (alias) >/dev/null 2>&1 && \
  46. -     echo "(I see you are using the Korn shell.  Some ksh's blow up on Configure," && \
  47. -     echo "especially on exotic machines.  If yours does, try the Bourne shell instead.)"
  48.   
  49. ! unset CDPATH
  50. ! if test ! -d ../UU; then
  51. !     if test ! -d UU; then
  52. !     mkdir UU
  53. !     fi
  54. !     cd UU
  55. ! fi
  56.   
  57. - case "$1" in
  58. - -d) shift; fastread='yes';;
  59. - esac
  60. - d_eunice=''
  61. - define=''
  62. - eunicefix=''
  63. - loclist=''
  64. - expr=''
  65. - sed=''
  66. - echo=''
  67. - cat=''
  68. - rm=''
  69. - mv=''
  70. - cp=''
  71. - tail=''
  72. - tr=''
  73. - mkdir=''
  74. - sort=''
  75. - uniq=''
  76. - grep=''
  77. - trylist=''
  78. - test=''
  79. - inews=''
  80. - egrep=''
  81. - more=''
  82. - pg=''
  83. - Mcc=''
  84. - vi=''
  85. - mailx=''
  86. - mail=''
  87. - cpp=''
  88. - perl=''
  89. - emacs=''
  90. - ls=''
  91. - rmail=''
  92. - sendmail=''
  93. - shar=''
  94. - smail=''
  95. - tbl=''
  96. - troff=''
  97. - nroff=''
  98. - uname=''
  99. - uuname=''
  100. - line=''
  101. - chgrp=''
  102. - chmod=''
  103. - lint=''
  104. - sleep=''
  105. - pr=''
  106. - tar=''
  107. - ln=''
  108. - lpr=''
  109. - lp=''
  110. - touch=''
  111. - make=''
  112. - date=''
  113. - csh=''
  114. - bash=''
  115. - ksh=''
  116. - lex=''
  117. - flex=''
  118. - bison=''
  119. - Log=''
  120. - Header=''
  121. - Id=''
  122. - lastuname=''
  123. - alignbytes=''
  124. - bin=''
  125. - installbin=''
  126. - byteorder=''
  127. - contains=''
  128. - cppstdin=''
  129. - cppminus=''
  130. - d_bcmp=''
  131. - d_bcopy=''
  132. - d_safebcpy=''
  133. - d_bzero=''
  134. - d_castneg=''
  135. - castflags=''
  136. - d_charsprf=''
  137. - d_chsize=''
  138. - d_crypt=''
  139. - cryptlib=''
  140. - d_csh=''
  141. - d_dosuid=''
  142. - d_dup2=''
  143. - d_fchmod=''
  144. - d_fchown=''
  145. - d_fcntl=''
  146. - d_flexfnam=''
  147. - d_flock=''
  148. - d_getgrps=''
  149. - d_gethent=''
  150. - d_getpgrp=''
  151. - d_getpgrp2=''
  152. - d_getprior=''
  153. - d_htonl=''
  154. - d_index=''
  155. - d_isascii=''
  156. - d_killpg=''
  157. - d_lstat=''
  158. - d_memcmp=''
  159. - d_memcpy=''
  160. - d_safemcpy=''
  161. - d_memmove=''
  162. - d_memset=''
  163. - d_mkdir=''
  164. - d_msg=''
  165. - d_msgctl=''
  166. - d_msgget=''
  167. - d_msgrcv=''
  168. - d_msgsnd=''
  169. - d_ndbm=''
  170. - d_odbm=''
  171. - d_open3=''
  172. - d_readdir=''
  173. - d_rename=''
  174. - d_rewindir=''
  175. - d_rmdir=''
  176. - d_seekdir=''
  177. - d_select=''
  178. - d_sem=''
  179. - d_semctl=''
  180. - d_semget=''
  181. - d_semop=''
  182. - d_setegid=''
  183. - d_seteuid=''
  184. - d_setpgrp=''
  185. - d_setpgrp2=''
  186. - d_setprior=''
  187. - d_setregid=''
  188. - d_setresgid=''
  189. - d_setreuid=''
  190. - d_setresuid=''
  191. - d_setrgid=''
  192. - d_setruid=''
  193. - d_shm=''
  194. - d_shmat=''
  195. - d_voidshmat=''
  196. - d_shmctl=''
  197. - d_shmdt=''
  198. - d_shmget=''
  199. - d_socket=''
  200. - d_sockpair=''
  201. - d_oldsock=''
  202. - socketlib=''
  203. - d_statblks=''
  204. - d_stdstdio=''
  205. - d_strctcpy=''
  206. - d_strerror=''
  207. - d_symlink=''
  208. - d_syscall=''
  209. - d_telldir=''
  210. - d_truncate=''
  211. - d_vfork=''
  212. - d_voidsig=''
  213. - d_tosignal=''
  214. - d_volatile=''
  215. - d_vprintf=''
  216. - d_charvspr=''
  217. - d_wait4=''
  218. - d_waitpid=''
  219. - gidtype=''
  220. - groupstype=''
  221. - i_fcntl=''
  222. - i_gdbm=''
  223. - i_grp=''
  224. - i_niin=''
  225. - i_sysin=''
  226. - i_pwd=''
  227. - d_pwquota=''
  228. - d_pwage=''
  229. - d_pwchange=''
  230. - d_pwclass=''
  231. - d_pwexpire=''
  232. - d_pwcomment=''
  233. - i_sys_file=''
  234. - i_sysioctl=''
  235. - i_time=''
  236. - i_sys_time=''
  237. - i_sys_select=''
  238. - d_systimekernel=''
  239. - i_utime=''
  240. - i_varargs=''
  241. - i_vfork=''
  242. - intsize=''
  243. - libc=''
  244. - nm_opts=''
  245. - libndir=''
  246. - i_my_dir=''
  247. - i_ndir=''
  248. - i_sys_ndir=''
  249. - i_dirent=''
  250. - i_sys_dir=''
  251. - d_dirnamlen=''
  252. - ndirc=''
  253. - ndiro=''
  254. - mallocsrc=''
  255. - mallocobj=''
  256. - d_mymalloc=''
  257. - mallocptrtype=''
  258. - mansrc=''
  259. - manext=''
  260. - models=''
  261. - split=''
  262. - small=''
  263. - medium=''
  264. - large=''
  265. - huge=''
  266. - optimize=''
  267. - ccflags=''
  268. - cppflags=''
  269. - ldflags=''
  270. - cc=''
  271. - nativegcc=''
  272. - libs=''
  273. - n=''
  274. - c=''
  275. - package=''
  276. - randbits=''
  277. - scriptdir=''
  278. - installscr=''
  279. - sig_name=''
  280. - spitshell=''
  281. - shsharp=''
  282. - sharpbang=''
  283. - startsh=''
  284. - stdchar=''
  285. - uidtype=''
  286. - usrinclude=''
  287. - inclPath=''
  288. - void=''
  289. - voidhave=''
  290. - voidwant=''
  291. - w_localtim=''
  292. - w_s_timevl=''
  293. - w_s_tm=''
  294. - yacc=''
  295. - lib=''
  296. - privlib=''
  297. - installprivlib=''
  298. - CONFIG=''
  299. - : get the name of the package
  300. - package=perl
  301. - : Here we go...
  302. - echo " "
  303. - echo "Beginning of configuration questions for $package kit."
  304. - : Eunice requires " " instead of "", can you believe it
  305. - echo " "
  306. - define='define'
  307. - undef='undef'
  308. - : change the next line if compiling for Xenix/286 on Xenix/386
  309. - xlibpth='/usr/lib/386 /lib/386'
  310. - : the hints files may add more components to libpth
  311. - test -d /usr/cs/lib        && libpth="$libpth /usr/cs/lib"
  312. - test -d /usr/ccs/lib        && libpth="$libpth /usr/ccs/lib"
  313. - test -d /usr/lib        && libpth="$libpth /usr/lib"
  314. - test -d /usr/ucblib        && libpth="$libpth /usr/ucblib"
  315. - test -d /usr/local/lib        && libpth="$libpth /usr/local/lib"
  316. - test -d /usr/lib/large        && libpth="$libpth /usr/lib/large"
  317. - test -d /lib            && libpth="$libpth /lib"
  318. -                    libpth="$libpth $xlibpth"
  319. - test -d /lib/large        && libpth="$libpth /lib/large"
  320. - test -d /usr/lib/small        && libpth="$libpth /usr/lib/small"
  321. - test -d /lib/small        && libpth="$libpth /lib/small"
  322. - test -d /usr/lib/cmplrs/cc    && libpth="$libpth /usr/lib/cmplrs/cc"
  323. - smallmach='pdp11 i8086 z8000 i80286 iAPX286'
  324. - trap 'echo " "; exit 1' 1 2 3
  325. - : We must find out about Eunice early
  326. - eunicefix=':'
  327. - if test -f /etc/unixtovms; then
  328. -     eunicefix=/etc/unixtovms
  329. - fi
  330. - if test -f /etc/unixtovms.exe; then
  331. -     eunicefix=/etc/unixtovms.exe
  332. - fi
  333. - attrlist="DGUX M_I186 M_I286 M_I386 M_I8086 M_XENIX UTS __DGUX__"
  334. - attrlist="$attrlist __STDC__ __m88k__ ansi bsd4_2 gcos gimpel"
  335. - attrlist="$attrlist hp9000s300 hp9000s500 hp9000s800 hpux"
  336. - attrlist="$attrlist i186 i386 i8086 iAPX286 ibm interdata"
  337. - attrlist="$attrlist m68k m88k mc300 mc500 mc68000 mc68k mc700 mert"
  338. - attrlist="$attrlist ns16000 ns32000 nsc32000 os pdp11 posix pyr sinix"
  339. - attrlist="$attrlist sparc sun tower tower32 tower32_600 tower32_800 tss"
  340. - attrlist="$attrlist u3b2 u3b20 u3b200 u3b5 ultrix unix vax venix xenix"
  341. - attrlist="$attrlist z8000"
  342. - boPATH=""
  343. - eoPATH="/usr/ucb /bin /usr/bin /usr/local /usr/local/bin /usr/lbin /usr/plx /usr/5bin /vol/local/bin /etc /usr/lib /lib /usr/local/lib /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/bin /bsd4.3/usr/ucb /bsd43/usr/bin /usr/ccs/lib /opt/SUNWste/bin /usr/opt/SUNWste/bin"
  344. - d_newshome="/usr/NeWS"
  345. - errnolist=errnolist
  346. - h_fcntl=false
  347. - h_sys_file=false
  348. - serve_shm=""
  349. - serve_msg="$undef"
  350. - serve_inet_udp=""
  351. - serve_inet_tcp=""
  352. - serve_unix_udp=""
  353. - serve_unix_tcp=""
  354. - d_ndir=ndir
  355. - voidwant=1
  356. - voidwant=7
  357. - libswanted="c_s net_s net socket nsl_s nsl nm ndir dir ndbm dbm PW malloc sun m bsd BSD x posix ucb"
  358. - inclwanted='/usr/include /usr/netinclude /usr/include/sun /usr/include/bsd /usr/include/lan /usr/ucbinclude'
  359. - : Now test for existence of everything in MANIFEST
  360. - echo "First let's make sure your kit is complete.  Checking..."
  361. - awk '$1 !~ /PACKINGLIST/ {print $1}' ../MANIFEST | split -100
  362. - rm -f missing
  363. - for filelist in x??; do
  364. -     (cd ..; ls `cat UU/$filelist` >/dev/null 2>>UU/missing)
  365. - done
  366. - if test -s missing; then
  367. -     echo "WARNING: the following files are missing:"
  368. -     cat missing
  369. -     echo "INTERRUPT NOW, OR HIT RETURN TO PROCEED AT YOUR OWN RISK"
  370. -     read junk
  371. - else
  372. -     echo "Looks good..."
  373. - fi
  374. - : some greps do not return status, grrr.
  375. - echo "grimblepritz" >contains.txt
  376. - if grep blurfldyick contains.txt >/dev/null 2>&1 ; then
  377. -     contains=contains
  378. - elif grep grimblepritz contains.txt >/dev/null 2>&1 ; then
  379. -     contains=grep
  380. - else
  381. -     contains=contains
  382. - fi
  383. - : the following should work in any shell
  384. - case "$contains" in
  385. - contains*)
  386. -     echo " "
  387. -     echo "AGH!  Grep doesn't return a status.  Attempting remedial action."
  388. -     cat >contains <<'EOSS'
  389. - grep "$1" "$2" >.greptmp && cat .greptmp && test -s .greptmp
  390. - EOSS
  391. - chmod +x contains
  392. - esac
  393. - : see if sh knows # comments
  394. - echo " "
  395. - echo "Checking your sh to see if it knows about # comments..."
  396. - if sh -c '#' >/dev/null 2>&1 ; then
  397. -     echo "Your sh handles # comments correctly."
  398. -     shsharp=true
  399. -     spitshell=cat
  400. -     echo " "
  401. -     echo "Okay, let's see if #! works on this system..."
  402. -     if test -f /bsd43/bin/echo; then
  403. -     echo "#!/bsd43/bin/echo hi" > spit.sh
  404. -     else
  405. -     echo "#!/bin/echo hi" > spit.sh
  406. -     fi
  407. -     $eunicefix spit.sh
  408. -     chmod +x spit.sh
  409. -     ./spit.sh > today
  410. -     if $contains hi today >/dev/null 2>&1; then
  411. -     echo "It does."
  412. -     sharpbang='#!'
  413. -     else
  414. -     echo "#! /bin/echo hi" > spit.sh
  415. -     $eunicefix spit.sh
  416. -     chmod +x spit.sh
  417. -     ./spit.sh > today
  418. -     if test -s today; then
  419. -         echo "It does."
  420. -         sharpbang='#! '
  421. -     else
  422. -         echo "It doesn't."
  423. -         sharpbang=': use '
  424. -     fi
  425. -     fi
  426. - else
  427. -     echo "Your sh doesn't grok # comments--I will strip them later on."
  428. -     shsharp=false
  429. -     echo "exec grep -v '^#'" >spitshell
  430. -     chmod +x spitshell
  431. -     $eunicefix spitshell
  432. -     spitshell=`pwd`/spitshell
  433. -     echo "I presume that if # doesn't work, #! won't work either!"
  434. -     sharpbang=': use '
  435. - fi
  436. - : figure out how to guarantee sh startup
  437. - echo " "
  438. - echo "Checking out how to guarantee sh startup..."
  439. - startsh=$sharpbang'/bin/sh'
  440. - echo "Let's see if '$startsh' works..."
  441. - cat >start.sh <<EOSS
  442. - $startsh
  443. - set abc
  444. - test "$?abc" != 1
  445. - EOSS
  446. - chmod +x start.sh
  447. - $eunicefix start.sh
  448. - if ./start.sh; then
  449. -     echo "Yup, it does."
  450. - else
  451. -     echo "Nope.  You may have to fix up the shell scripts to make sure sh runs them."
  452. - fi
  453. - : first determine how to suppress newline on echo command
  454. - echo "Checking echo to see how to suppress newlines..."
  455. - (echo "hi there\c" ; echo " ") >echotmp
  456. - if $contains c echotmp >/dev/null 2>&1 ; then
  457. -     echo "...using -n."
  458. -     n='-n'
  459. -     c=''
  460. - else
  461. -     cat <<'EOM'
  462. - ...using \c
  463. - EOM
  464. -     n=''
  465. -     c='\c'
  466. - fi
  467. - echo $n "Type carriage return to continue.  Your cursor should be here-->$c"
  468. - read ans
  469. - : now set up to do reads with possible shell escape and default assignment
  470. - cat <<EOSC >myread
  471. - case "\$fastread" in
  472. - yes) ans=''; echo " " ;;
  473. - *) ans='!';;
  474. - esac
  475. - while expr "X\$ans" : "X!" >/dev/null; do
  476. -     read ans
  477. -     case "\$ans" in
  478. -     !)
  479. -     sh
  480. -     echo " "
  481. -     echo $n "\$rp $c"
  482. -     ;;
  483. -     !*)
  484. -     set \`expr "X\$ans" : "X!\(.*\)\$"\`
  485. -     sh -c "\$*"
  486. -     echo " "
  487. -     echo $n "\$rp $c"
  488. -     ;;
  489. -     esac
  490. - done
  491. - rp='Your answer:'
  492. - case "\$ans" in
  493. - '') ans="\$dflt";;
  494. - esac
  495. - EOSC
  496. - : general instructions
  497. - cat <<EOH
  498. -  
  499. - This installation shell script will examine your system and ask you questions
  500. - to determine how the $package package should be installed.  If you get stuck
  501. - on a question, you may use a ! shell escape to start a subshell or execute
  502. - a command.  Many of the questions will have default answers in square
  503. - brackets--typing carriage return will give you the default.
  504. - On some of the questions which ask for file or directory names you are
  505. - allowed to use the ~name construct to specify the login directory belonging
  506. - to "name", even if you don't have a shell which knows about that.  Questions
  507. - where this is allowed will be marked "(~name ok)".
  508. - EOH
  509. - rp="[Type carriage return to continue]"
  510. - echo $n "$rp $c"
  511. - . myread
  512. - cat <<EOH
  513. - Much effort has been expended to ensure that this shell script will run on any
  514. - Unix system.  If despite that it blows up on you, your best bet is to edit
  515. - Configure and run it again. Also, let me (lwall@netlabs.com)
  516. - know how I blew it.  If you can't run Configure for some reason, you'll have
  517. - to generate a config.sh file by hand.
  518. - This installation script affects things in two ways: 1) it may do direct
  519. - variable substitutions on some of the files included in this kit, and
  520. - 2) it builds a config.h file for inclusion in C programs.  You may edit
  521. - any of these files as the need arises after running this script.
  522. - If you make a mistake on a question, there is no easy way to back up to it
  523. - currently.  The easiest thing to do is to edit config.sh and rerun all the
  524. - SH files.  Configure will offer to let you do this before it runs the SH files.
  525. - EOH
  526. - rp="[Type carriage return to continue]"
  527. - echo $n "$rp $c"
  528. - . myread
  529. - : find out where common programs are
  530. - echo " "
  531. - echo "Locating common programs..."
  532. - cat <<EOSC >loc
  533. - $startsh
  534. - case \$# in
  535. - 0) exit 1;;
  536. - esac
  537. - thing=\$1
  538. - shift
  539. - dflt=\$1
  540. - shift
  541. - for dir in \$*; do
  542. -     case "\$thing" in
  543. -     .)
  544. -     if test -d \$dir/\$thing; then
  545. -         echo \$dir
  546. -         exit 0
  547. -     fi
  548. -     ;;
  549. -     *)
  550. -     if test -f \$dir/\$thing; then
  551. -         echo \$dir/\$thing
  552. -         exit 0
  553. -     elif test -f \$dir/\$thing.exe; then
  554. -         : on Eunice apparently
  555. -         echo \$dir/\$thing
  556. -         exit 0
  557. -     fi
  558. -     ;;
  559. -     esac
  560. - done
  561. - echo \$dflt
  562. - exit 1
  563. - EOSC
  564. - chmod +x loc
  565. - $eunicefix loc
  566. - loclist="
  567. - cat
  568. - cp
  569. - echo
  570. - expr
  571. - grep
  572. - mkdir
  573. - mv
  574. - rm
  575. - sed
  576. - sort
  577. - tr
  578. - uniq
  579. - "
  580. - trylist="
  581. - Mcc
  582. - bison
  583. - cpp
  584. - csh
  585. - egrep
  586. - line
  587. - nroff
  588. - perl
  589. - test
  590. - uname
  591. - yacc
  592. - "
  593. - pth=`echo :$boPATH:$PATH:$eoPATH: | sed -e 's/:/ /g'`
  594. - for file in $loclist; do
  595. -     xxx=`./loc $file $file $pth`
  596. -     eval $file=$xxx
  597. -     eval _$file=$xxx
  598. -     case "$xxx" in
  599. -     /*)
  600. -     echo $file is in $xxx.
  601. -     ;;
  602. -     *)
  603. -     echo "I don't know where $file is.  I hope it's in everyone's PATH."
  604. -     ;;
  605. -     esac
  606. - done
  607. - echo " "
  608. - echo "Don't worry if any of the following aren't found..."
  609. - ans=offhand
  610. - for file in $trylist; do
  611. -     xxx=`./loc $file $file $pth`
  612. -     eval $file=$xxx
  613. -     eval _$file=$xxx
  614. -     case "$xxx" in
  615. -     /*)
  616. -     echo $file is in $xxx.
  617. -     ;;
  618. -     *)
  619. -     echo "I don't see $file out there, $ans."
  620. -     ans=either
  621. -     ;;
  622. -     esac
  623. - done
  624. - case "$egrep" in
  625. - egrep)
  626. -     echo "Substituting grep for egrep."
  627. -     egrep=$grep
  628. -     ;;
  629. - esac
  630. - case "$test" in
  631. - test)
  632. -     echo "Hopefully test is built into your sh."
  633. -     ;;
  634. - /bin/test)
  635. -     if sh -c "PATH= test true" >/dev/null 2>&1; then
  636. -     echo "Using the test built into your sh."
  637. -     test=test
  638. -     fi
  639. -     ;;
  640. - *)
  641. -     test=test
  642. -     ;;
  643. - esac
  644. - case "$echo" in
  645. - echo)
  646. -     echo "Hopefully echo is built into your sh."
  647. -     ;;
  648. - /bin/echo)
  649. -     echo " "
  650. -     echo "Checking compatibility between /bin/echo and builtin echo (if any)..."
  651. -     $echo $n "hi there$c" >Loc1.txt
  652. -     echo $n "hi there$c" >Loc2.txt
  653. -     if cmp Loc1.txt Loc2.txt >/dev/null 2>&1; then
  654. -     echo "They are compatible.  In fact, they may be identical."
  655. -     else
  656. -     case "$n" in
  657. -     '-n') n='' c='\c' ans='\c' ;;
  658. -     *) n='-n' c='' ans='-n' ;;
  659. -     esac
  660. -     cat <<FOO
  661. - They are not compatible!  You are probably running ksh on a non-USG system.
  662. - I'll have to use /bin/echo instead of the builtin, since Bourne shell doesn't
  663. - have echo built in and we may have to run some Bourne shell scripts.  That
  664. - means I'll have to use $ans to suppress newlines now.  Life is ridiculous.
  665. - FOO
  666. -     rp="Your cursor should be here-->"
  667. -     $echo $n "$rp$c"
  668. -     . myread
  669. -     fi
  670. -     ;;
  671. - *)
  672. -     : cross your fingers
  673. -     echo=echo
  674. -     ;;
  675. - esac
  676. - : set up shell script to do ~ expansion
  677. - cat >filexp <<EOSS
  678. - $startsh
  679. - : expand filename
  680. - case "\$1" in
  681. -  ~/*|~)
  682. -     echo \$1 | $sed "s|~|\${HOME-\$LOGDIR}|"
  683. -     ;;
  684. -  ~*)
  685. -     if $test -f /bin/csh; then
  686. -     /bin/csh -f -c "glob \$1"
  687. -     echo ""
  688. -     else
  689. -     name=\`$expr x\$1 : '..\([^/]*\)'\`
  690. -     dir=\`$sed -n -e "/^\${name}:/{s/^[^:]*:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\).*"'\$'"/\1/" -e p -e q -e '}' </etc/passwd\`
  691. -     if $test ! -d "\$dir"; then
  692. -         me=\`basename \$0\`
  693. -         echo "\$me: can't locate home directory for: \$name" >&2
  694. -         exit 1
  695. -     fi
  696. -     case "\$1" in
  697. -     */*)
  698. -         echo \$dir/\`$expr x\$1 : '..[^/]*/\(.*\)'\`
  699. -         ;;
  700. -     *)
  701. -         echo \$dir
  702. -         ;;
  703. -     esac
  704. -     fi
  705. -     ;;
  706. - *)
  707. -     echo \$1
  708. -     ;;
  709. - esac
  710. - EOSS
  711. - chmod +x filexp
  712. - $eunicefix filexp
  713. - : get old answers, if there is a config file out there
  714. - hint=default
  715. - if test -f ../config.sh; then
  716. -     echo " "
  717. -     eval "`grep lastuname ../config.sh`"
  718. -     tmp=`(uname -a) 2>&1`
  719. -     if test "X$tmp" = "X$lastuname"; then
  720. -     dflt=y
  721. -     else
  722. -     dflt=n
  723. -     fi
  724. -     lastuname="$tmp"
  725. -     rp="I see a config.sh file.  Did Configure make it on THIS system? [$dflt]"
  726. -     echo $n "$rp $c"
  727. -     . myread
  728. -     case "$ans" in
  729. -     n*) echo "OK, I'll ignore it."; mv ../config.sh ../config.sh.old;;
  730. -     *)  echo "Fetching default answers from your old config.sh file..."
  731. -     tmp="$n"
  732. -     ans="$c"
  733. -         . ../config.sh
  734. -     n="$tmp"
  735. -     c="$ans"
  736. -     hint=previous
  737. -     ;;
  738. -     esac
  739. - else
  740. -     lastuname=`(uname -a) 2>&1`
  741. - fi
  742. - if test -d ../hints && test ! -f ../config.sh; then
  743. -     echo ' '
  744. -     echo "First time through, eh?  I have some defaults handy for the following systems:"
  745. -     (cd ../hints; ls -C *.sh | sed 's/\.sh/   /g')
  746. -     dflt=''
  747. -     : Half the following guesses are probably wrong...
  748. -     test -f /irix && dflt="$dflt sgi"
  749. -     test -f /xenix && dflt="$dflt sco_xenix"
  750. -     test -f /dynix && dflt="$dflt dynix"
  751. -     test -f /dnix && dflt="$dflt dnix"
  752. -     test -f /bin/mips && /bin/mips && dflt="$dflt mips"
  753. -     test -d /NextApps && test -f /usr/adm/software_version && dflt="$dflt next"
  754. -     if test -f /bin/uname || test -f /usr/bin/uname; then
  755. -     set `uname -a | tr '[A-Z]' '[a-z]'`
  756. -     test -f "../hints/$5.sh" && dflt="$dflt $5"
  757. -     case "$5" in
  758. -     3b2) dflt="$dflt 3b2";;
  759. -     fps*) dflt="$dflt fps";;
  760. -     mips*) dflt="$dflt mips";;
  761. -     [23]100) dflt="$dflt mips";;
  762. -     next*) dflt="$dflt next" ;;
  763. -     6000) dflt="$dflt mc6000";;
  764. -     esac
  765. -     test -f "../hints/$1.sh" && dflt="$dflt $1"
  766. -     case "$1" in
  767. -     aix) dflt="$dflt aix_rs" ;;
  768. -     sunos) case "$3" in
  769. -         3.4) dflt="$dflt sunos_3_4" ;;
  770. -         3.5) dflt="$dflt sunos_3_5" ;;
  771. -         4.0.1) dflt="$dflt sunos_4_0_1" ;;
  772. -         4.0.2) dflt="$dflt sunos_4_0_2" ;;
  773. -         esac
  774. -         ;;
  775. -     hp*ux) dflt="$dflt hpux"
  776. -         extra_hints="hp"`echo $5 | sed -e s#/#_#g -e s/..$/00/`
  777. -         if test -f ../hints/$extra_hints.sh; then
  778. -         dflt="$dflt $extra_hints"
  779. -         fi;;
  780. -     irix) dflt="$dflt sgi" ;;
  781. -     ultrix) case "$3" in
  782. -         1*) dflt="$dflt ultrix_1" ;;
  783. -         3*) dflt="$dflt ultrix_3" ;;
  784. -         4*) dflt="$dflt ultrix_4" ;;
  785. -         esac
  786. -         ;;
  787. -     uts) dflt="$dflt uts" ;;
  788. -     $2) if test -f /etc/systemid; then
  789. -         set `echo $3 | sed 's/\./ /'` $4
  790. -         if test -f ../hints/sco_$1_$2_$3.sh; then
  791. -             dflt="$dflt sco_$1_$2_$3"
  792. -         elif test -f ../hints/sco_$1_$2.sh; then
  793. -             dflt="$dflt sco_$1_$2"
  794. -         elif test -f ../hints/sco_$1.sh; then
  795. -             dflt="$dflt sco_$1"
  796. -         fi
  797. -         fi
  798. -         ;;
  799. -     esac
  800. -     fi
  801. -     set X `echo $dflt | tr ' ' '\012' | sort | uniq`
  802. -     shift
  803. -     dflt=${1+"$@"}
  804. -     case "$dflt" in
  805. -     '') dflt=none;;
  806. -     esac
  807. -     echo '(You may give one or more space-separated answers, or "none" if appropriate.'
  808. -     echo 'If your OS version has no hints, do not give a wrong version--say "none".)'
  809. -     rp="Which of these apply, if any? [$dflt]"
  810. -     echo $n "$rp $c"
  811. -     . myread
  812. -     for file in $ans; do
  813. -     if test -f ../hints/$file.sh; then
  814. -         . ../hints/$file.sh
  815. -         cat ../hints/$file.sh >>../config.sh
  816. -         hint=recommended
  817. -     fi
  818. -     done
  819. - fi
  820.   
  821. ! cat >whoa <<'EOF'
  822. ! eval "was=\$$2"
  823. ! dflt=y
  824. ! echo ' '
  825. ! echo "*** WHOA THERE!!! ***"
  826. ! echo "    The $hint value for \$$2 on this machine was \"$was\"!"
  827. ! rp="    Keep the $hint value? [y]"
  828. ! echo $n "$rp $c"
  829. ! . myread
  830. ! case "$ans" in
  831. ! y) td=$was; tu=$was;;
  832. ! esac
  833.   EOF
  834. ! setvar='td=$define; tu=$undef; set X $1; eval "was=\$$2";
  835. ! case "$val$was" in
  836. ! defineundef) . whoa; eval "$2=\$td";;
  837. ! undefdefine) . whoa; eval "$2=\$tu";;
  838. ! *) eval "$2=$val";;
  839. ! esac'
  840. ! : determine where manual pages go
  841. ! $cat <<EOM
  842. !   
  843. ! $package has manual pages available in source form.
  844. ! EOM
  845. ! case "$nroff" in
  846. ! 'nroff')
  847. !     echo "However, you don't have nroff, so they're probably useless to you."
  848. !     case "$mansrc" in
  849. !     '')
  850. !     mansrc="none"
  851. !     ;;
  852. !     esac
  853. ! esac
  854. ! echo "If you don't want the manual sources installed, answer 'none'."
  855. ! case "$mansrc" in
  856. ! '')
  857. !     dflt=`./loc . none /usr/man/local/man1 /usr/man/man.L /usr/man/manl /usr/man/mann /usr/man/u_man/man1 /usr/man/man1 /usr/local/man/man1`
  858. !     ;;
  859. ! *)  dflt="$mansrc"
  860. !     ;;
  861. ! esac
  862. ! cont=true
  863. ! while $test "$cont" ; do
  864. !     echo " "
  865. !     rp="Where do the manual pages (source) go (~name ok)? [$dflt]"
  866. !     $echo $n "$rp $c"
  867. !     . myread
  868. !     case "$ans" in
  869. !     'none')
  870. !     mansrc=''
  871. !     cont=''
  872. !     ;;
  873. !     *)
  874. !         mansrc=`./filexp "$ans"`
  875. !         if $test -d "$mansrc"; then
  876. !         cont=''
  877. !         else
  878. !         if $test "$fastread" = yes; then
  879. !             dflt=y
  880. !         else
  881. !             dflt=n
  882. !         fi
  883. !         rp="Directory $mansrc doesn't exist.  Use that name anyway? [$dflt]"
  884. !         $echo $n "$rp $c"
  885. !         . myread
  886. !         dflt=''
  887. !         case "$ans" in
  888. !         y*) cont='';;
  889. !         esac
  890. !         fi
  891. !     ;;
  892. !     esac
  893. ! done
  894. ! case "$mansrc" in
  895. ! '')
  896. !     manext=''
  897. !     ;;
  898. ! *l)
  899. !     manext=l
  900. !     ;;
  901. ! *n)
  902. !     manext=n
  903. !     ;;
  904. ! *o)
  905. !     manext=l
  906. !     ;;
  907. ! *p)
  908. !     manext=n
  909. !     ;;
  910. ! *C)
  911. !     manext=C
  912. !     ;;
  913. ! *L)
  914. !     manext=L
  915. !     ;;
  916. ! *)
  917. !     manext=1
  918. !     ;;
  919. ! esac
  920. ! : Sigh.  Well, at least the box is fast...
  921. ! echo " "
  922. ! $echo $n "Hmm...  $c"
  923. ! case "$usrinclude" in
  924. ! '') dflt='/usr/include';;
  925. ! *) dflt=$usrinclude;;
  926. ! esac
  927. ! inclPath=''
  928. ! if $test -f /bin/mips && /bin/mips; then
  929. !     echo "Looks like a MIPS system..."
  930. !     $cat >usrinclude.c <<'EOCP'
  931. ! #ifdef SYSTYPE_BSD43
  932. ! /bsd43
  933. ! #endif
  934. ! EOCP
  935. !     if cc -E usrinclude.c > usrinclude.out && $contains / usrinclude.out >/dev/null 2>&1 ; then
  936. !     echo "and you're compiling with the BSD43 compiler and libraries."
  937. !     dflt='/bsd43/usr/include'
  938. !     inclPath='/bsd43'
  939. !     else
  940. !     echo "and you're compiling with the SysV compiler and libraries."
  941. !     fi
  942. ! else
  943. !     echo "Doesn't look like a MIPS system."
  944. !     echo "exit 1" >mips
  945. !     chmod +x mips
  946. !     $eunicefix mips
  947. ! fi
  948. ! cont=true
  949. ! while $test "$cont" ; do
  950. !     echo " "
  951. !     rp="Where are the include files you want to use? [$dflt]"
  952. !     $echo $n "$rp $c"
  953. !     . myread
  954. !     usrinclude="$ans"
  955. !     if $test -d $ans; then
  956. !     cont=''
  957. !     else
  958. !     if $test "$fastread" = yes; then
  959. !         dflt=y
  960. !     else
  961. !         dflt=n
  962. !     fi
  963. !     rp="Directory $ans doesn't exist.  Use that name anyway? [$dflt]"
  964. !     $echo $n "$rp $c"
  965. !     . myread
  966. !     dflt=''
  967. !     case "$ans" in
  968. !     y*) cont='';;
  969. !     esac
  970. !     fi
  971. ! done
  972. ! : make some quick guesses about what we are up against
  973. ! echo " "
  974. ! echo exit 1 >bsd
  975. ! echo exit 1 >usg
  976. ! echo exit 1 >v7
  977. ! echo exit 1 >osf1
  978. ! echo exit 1 >eunice
  979. ! echo exit 1 >xenix
  980. ! echo exit 1 >venix
  981. ! cat $usrinclude/signal.h $usrinclude/sys/signal.h >guess.txt 2>/dev/null
  982. ! if test "$usrinclude" = "/bsd43/usr/include" ; then
  983. !     echo "Looks kind of like a SysV MIPS running BSD, but we'll see..."
  984. !     echo exit 0 >bsd
  985. ! elif test -f /osf_boot || $contains "OSF/1" /usr/include/ctype.h; then
  986. !     echo "Looks like an OSF/1 system, but we'll see..."
  987. !     echo exit 0 >osf1
  988. ! elif test `echo abc | tr a-z A-Z` = Abc ; then
  989. !     echo "Looks kind of like a USG system, but we'll see..."
  990. !     echo exit 0 >usg
  991. ! elif $contains SIGTSTP guess.txt >/dev/null 2>&1 ; then
  992. !     echo "Looks kind of like a BSD system, but we'll see..."
  993. !     echo exit 0 >bsd
  994. ! else
  995. !     echo "Looks kind of like a version 7 system, but we'll see..."
  996. !     echo exit 0 >v7
  997. ! fi
  998. ! case "$eunicefix" in
  999. ! *unixtovms*)
  1000. !     cat <<'EOI'
  1001. ! There is, however, a strange, musty smell in the air that reminds me of
  1002. ! something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
  1003. ! EOI
  1004. !     echo "exit 0" >eunice
  1005. !     d_eunice="$define"
  1006. !     ;;
  1007. ! *)
  1008. !     echo " "
  1009. !     echo "Congratulations.  You aren't running Eunice."
  1010. !     d_eunice="$undef"
  1011. !     ;;
  1012. ! esac
  1013. ! if test -f /xenix; then
  1014. !     echo "Actually, this looks more like a XENIX system..."
  1015. !     echo "exit 0" >xenix
  1016. ! else
  1017. !     echo " "
  1018. !     echo "It's not Xenix..."
  1019. ! fi
  1020. ! chmod +x xenix
  1021. ! $eunicefix xenix
  1022. ! if test -f /venix; then
  1023. !     echo "Actually, this looks more like a VENIX system..."
  1024. !     echo "exit 0" >venix
  1025. ! else
  1026. !     echo " "
  1027. !     if xenix; then
  1028. !     : null
  1029. !     else
  1030. !     echo "Nor is it Venix..."
  1031. !     fi
  1032. ! fi
  1033. ! chmod +x bsd usg v7 osf1 eunice venix
  1034. ! $eunicefix bsd usg v7 eunice venix
  1035. ! : see what memory models we can support
  1036. ! case "$models" in
  1037. ! '')
  1038. !     : We may not use Cppsym or we get a circular dependency through cc.
  1039. !     : But this should work regardless of which cc we eventually use.
  1040. !     cat >pdp11.c <<'EOP'
  1041. ! main() {
  1042. ! #ifdef pdp11
  1043. !     exit(0);
  1044. ! #else
  1045. !     exit(1);
  1046. ! #endif
  1047. ! }
  1048. ! EOP
  1049. !     cc -o pdp11 pdp11.c >/dev/null 2>&1
  1050. !     if pdp11 2>/dev/null; then
  1051. !     dflt='unsplit split'
  1052. !     else
  1053. !     ans=`./loc . X /lib/small /lib/large /usr/lib/small /usr/lib/large /lib/medium /usr/lib/medium /lib/huge`
  1054. !     case "$ans" in
  1055. !     X) dflt='none';;
  1056. !     *)  if $test -d /lib/small || $test -d /usr/lib/small; then
  1057. !         dflt='small'
  1058. !         else
  1059. !         dflt=''
  1060. !         fi
  1061. !         if $test -d /lib/medium || $test -d /usr/lib/medium; then
  1062. !         dflt="$dflt medium"
  1063. !         fi
  1064. !         if $test -d /lib/large || $test -d /usr/lib/large; then
  1065. !         dflt="$dflt large"
  1066. !         fi
  1067. !         if $test -d /lib/huge || $test -d /usr/lib/huge; then
  1068. !         dflt="$dflt huge"
  1069. !         fi
  1070. !     esac
  1071. !     fi
  1072. !     ;;
  1073. ! *)  dflt="$models" ;;
  1074. ! esac
  1075. ! $cat <<EOM
  1076. !  
  1077. ! Some systems have different model sizes.  On most systems they are called
  1078. ! small, medium, large, and huge.  On the PDP11 they are called unsplit and
  1079. ! split.  If your system doesn't support different memory models, say "none".
  1080. ! If you wish to force everything to one memory model, say "none" here and
  1081. ! put the appropriate flags later when it asks you for other cc and ld flags.
  1082. ! Venix systems may wish to put "none" and let the compiler figure things out.
  1083. ! (In the following question multiple model names should be space separated.)
  1084. ! EOM
  1085. ! rp="Which models are supported? [$dflt]"
  1086. ! $echo $n "$rp $c"
  1087. ! . myread
  1088. ! models="$ans"
  1089. ! case "$models" in
  1090. ! none)
  1091. !     small=''
  1092. !     medium=''
  1093. !     large=''
  1094. !     huge=''
  1095. !     unsplit=''
  1096. !     split=''
  1097. !     ;;
  1098. ! *split)
  1099. !     case "$split" in
  1100. !     '') 
  1101. !     if $contains '\-i' $mansrc/man1/ld.1 >/dev/null 2>&1 || \
  1102. !        $contains '\-i' $mansrc/man1/cc.1 >/dev/null 2>&1; then
  1103. !         dflt='-i'
  1104. !     else
  1105. !         dflt='none'
  1106. !     fi
  1107. !     ;;
  1108. !     *) dflt="$split";;
  1109. !     esac
  1110. !     rp="What flag indicates separate I and D space? [$dflt]"
  1111. !     $echo $n "$rp $c"
  1112. !     . myread
  1113. !     case "$ans" in
  1114. !     none) ans='';;
  1115. !     esac
  1116. !     split="$ans"
  1117. !     unsplit=''
  1118. !     ;;
  1119. ! *large*|*small*|*medium*|*huge*)
  1120. !     case "$models" in
  1121. !     *large*)
  1122. !     case "$large" in
  1123. !     '') dflt='-Ml';;
  1124. !     *) dflt="$large";;
  1125. !     esac
  1126. !     rp="What flag indicates large model? [$dflt]"
  1127. !     $echo $n "$rp $c"
  1128. !     . myread
  1129. !     case "$ans" in
  1130. !     none) ans='';
  1131. !     esac
  1132. !     large="$ans"
  1133. !     ;;
  1134. !     *) large='';;
  1135. !     esac
  1136. !     case "$models" in
  1137. !     *huge*)
  1138. !     case "$huge" in
  1139. !     '') dflt='-Mh';;
  1140. !     *) dflt="$huge";;
  1141. !     esac
  1142. !     rp="What flag indicates huge model? [$dflt]"
  1143. !     $echo $n "$rp $c"
  1144. !     . myread
  1145. !     case "$ans" in
  1146. !     none) ans='';
  1147. !     esac
  1148. !     huge="$ans"
  1149. !     ;;
  1150. !     *) huge="$large";;
  1151. !     esac
  1152. !     case "$models" in
  1153. !     *medium*)
  1154. !     case "$medium" in
  1155. !     '') dflt='-Mm';;
  1156. !     *) dflt="$medium";;
  1157. !     esac
  1158. !     rp="What flag indicates medium model? [$dflt]"
  1159. !     $echo $n "$rp $c"
  1160. !     . myread
  1161. !     case "$ans" in
  1162. !     none) ans='';
  1163. !     esac
  1164. !     medium="$ans"
  1165. !     ;;
  1166. !     *) medium="$large";;
  1167. !     esac
  1168. !     case "$models" in
  1169. !     *small*)
  1170. !     case "$small" in
  1171. !     '') dflt='none';;
  1172. !     *) dflt="$small";;
  1173. !     esac
  1174. !     rp="What flag indicates small model? [$dflt]"
  1175. !     $echo $n "$rp $c"
  1176. !     . myread
  1177. !     case "$ans" in
  1178. !     none) ans='';
  1179. !     esac
  1180. !     small="$ans"
  1181. !     ;;
  1182. !     *) small='';;
  1183. !     esac
  1184. !     ;;
  1185. ! *)
  1186. !     echo "Unrecognized memory models--you may have to edit Makefile.SH"
  1187. !     ;;
  1188. ! esac
  1189. ! : see if we need a special compiler
  1190. ! echo " "
  1191. ! if usg; then
  1192. !     case "$cc" in
  1193. !     '')
  1194. !     case "$Mcc" in
  1195. !     /*) dflt='Mcc'
  1196. !         ;;
  1197. !     *)
  1198. !         case "$large" in
  1199. !         -M*)
  1200. !         dflt='cc'
  1201. !         ;;
  1202. !         *)
  1203. !         if $contains '\-M' $mansrc/cc.1 >/dev/null 2>&1 ; then
  1204. !             dflt='cc -M'
  1205. !         else
  1206. !             dflt='cc'
  1207. !         fi
  1208. !         ;;
  1209. !         esac
  1210. !         ;;
  1211. !     esac
  1212. !     ;;
  1213. !     *)  dflt="$cc";;
  1214. !     esac
  1215. !     $cat <<'EOM'
  1216. !   
  1217. ! On some systems the default C compiler will not resolve multiple global
  1218. ! references that happen to have the same name.  On some such systems the
  1219. ! "Mcc" command may be used to force these to be resolved.  On other systems
  1220. ! a "cc -M" command is required.  (Note that the -M flag on other systems
  1221. ! indicates a memory model to use!)  If you have the Gnu C compiler, you
  1222. ! might wish to use that instead.  What command will force resolution on
  1223. ! EOM
  1224. !     $echo $n "this system? [$dflt] $c"
  1225. !     rp="Command to resolve multiple refs? [$dflt]"
  1226. !     . myread
  1227. !     cc="$ans"
  1228. ! else
  1229. !     case "$cc" in
  1230. !     '') dflt=cc;;
  1231. !     *) dflt="$cc";;
  1232. !     esac
  1233. !     rp="Use which C compiler? [$dflt]"
  1234. !     $echo $n "$rp $c"
  1235. !     . myread
  1236. !     cc="$ans"
  1237. ! fi
  1238. ! case "$cc" in
  1239. ! *gcc*) cpp=`./loc gcc-cpp $cpp $pth`
  1240. !     case "$nativegcc" in
  1241. !     '') case "$ccflags" in
  1242. !     *-fpcc-struct-return*) dflt=n;;
  1243. !     *) dflt=y;;
  1244. !     esac
  1245. !     ;;
  1246. !     undef) dflt=n;;
  1247. !     *) dflt=y;;
  1248. !     esac
  1249. !     echo " "
  1250. !     rp="Are your system (especially dbm) libraries compiled with gcc? [$dflt]"
  1251. !     $echo $n "$rp $c"
  1252. !     . myread
  1253. !     case "$ans" in
  1254. !     n*) nativegcc="$undef"; gccflags='-fpcc-struct-return';;
  1255. !     *) nativegcc="$define"; gccflags='';;
  1256. !     esac
  1257. !     case "$gccflags" in
  1258. !     *-ansi*) ;;
  1259. !     *-traditional*) ;;
  1260. !     *) gccflags="$gccflags -traditional -Dvolatile=__volatile__" ;;
  1261. !     esac
  1262. !     ;;
  1263. ! esac
  1264. ! : determine optimize, if desired, or use for debug flag also
  1265. ! case "$optimize" in
  1266. ! ' ') dflt="none"
  1267. !      ;;
  1268. ! '') dflt="-O";
  1269. !     ;;
  1270. ! *)  dflt="$optimize"
  1271. !     ;;
  1272. ! esac
  1273. ! cat <<EOH
  1274. ! Some C compilers have problems with their optimizers, by default, $package
  1275. ! compiles with the -O flag to use the optimizer.  Alternately, you might
  1276. ! want to use the symbolic debugger, which uses the -g flag (on traditional
  1277. ! Unix systems).  Either flag can be specified here.  To use neither flag,
  1278. ! specify the word "none".
  1279. !   
  1280. ! EOH
  1281. ! rp="What optimizer/debugger flag should be used? [$dflt]"
  1282. ! $echo $n "$rp $c"
  1283. ! . myread
  1284. ! optimize="$ans"
  1285. ! case "$optimize" in
  1286. ! 'none') optimize=" "
  1287. !      ;;
  1288. ! esac
  1289. ! case "$ccflags" in
  1290. ! '') case "$cc" in
  1291. !     *gcc*) dflt="$gccflags";;
  1292. !     *) dflt='';;
  1293. !     esac
  1294. !     ;;
  1295. ! *-fpcc-struct-return*) dflt="$ccflags";;
  1296. ! *) case "$cc" in
  1297. !     *gcc*) dflt="$ccflags $gccflags";;
  1298. !     *) dflt="$ccflags";;
  1299. !     esac
  1300. !     ;;
  1301. ! esac
  1302. ! for thisincl in $inclwanted; do
  1303. !     if test -d $thisincl; then
  1304. !     if test "x$thisincl" != "x$usrinclude"; then
  1305. !         case "$dflt" in
  1306. !         *$thisincl*);;
  1307. !         *) dflt="$dflt -I$thisincl";;
  1308. !         esac
  1309. !     fi
  1310. !     fi
  1311. ! done
  1312. ! case "$optimize" in
  1313. ! -g*)
  1314. !     case "$dflt" in
  1315. !     *DEBUGGING*);;
  1316. !     *) dflt="$dflt -DDEBUGGING";;
  1317. !     esac
  1318. !     ;;
  1319. ! esac
  1320. ! if $contains 'LANGUAGE_C' $usrinclude/signal.h >/dev/null 2>&1; then
  1321. !     case "$dflt" in
  1322. !     *LANGUAGE_C*);;
  1323. !     *) dflt="$dflt -DLANGUAGE_C";;
  1324. !     *) if osf1; then
  1325. !           dflt="$dflt -D__LANGUAGE_C__"
  1326. !        else
  1327. !           dflt="$dflt -DLANGUAGE_C"
  1328. !        fi
  1329. !        ;;
  1330. !     esac
  1331. ! fi
  1332. ! if $contains '_NO_PROTO' $usrinclude/signal.h >/dev/null 2>&1; then
  1333. !     case "$dflt" in
  1334. !     *_NO_PROTO*);;
  1335. !     *) osf1 || dflt="$dflt -D_NO_PROTO";;
  1336. !     esac
  1337. ! fi
  1338. ! case "$dflt" in
  1339. ! '') dflt=none;;
  1340. ! esac
  1341. ! cat <<EOH
  1342. ! Your C compiler may want other flags.  For this question you should
  1343. ! include -I/whatever and -DWHATEVER flags and any other flags used by
  1344. ! the C compiler, but you should NOT include libraries or ld flags like
  1345. ! -lwhatever.  For instance, this would be a good place to specify
  1346. ! -DDEBUGGING.  To use no flags, specify the word "none".
  1347. !   
  1348. ! EOH
  1349. ! rp="Any additional cc flags? [$dflt]"
  1350. ! $echo $n "$rp $c"
  1351. ! . myread
  1352. ! case "$ans" in
  1353. ! none) ans='';
  1354. ! esac
  1355. ! ccflags="$ans"
  1356. ! : the following weeds options from ccflags that are of no interest to cpp
  1357. ! cppflags="$ccflags"
  1358. ! case "$cc" in
  1359. ! *gcc*) cppflags="$cppflags -D__GNUC__";;
  1360. ! esac
  1361. ! case "$cppflags" in
  1362. ! '');;
  1363. ! *)  set X $cppflags
  1364. !     cppflags=''
  1365. !     for flag do
  1366. !     case $flag in
  1367. !     -D*|-U*|-I*|-traditional|-ansi|-nostdinc) cppflags="$cppflags $flag";;
  1368. !     esac
  1369. !     done
  1370. !     case "$cppflags" in
  1371. !     *-*)  echo "(C preprocessor flags: $cppflags)";;
  1372. !     esac
  1373. !     ;;
  1374. ! esac
  1375. ! case "$ldflags" in
  1376. ! '') if venix; then
  1377. !     dflt='-i -z'
  1378. !     else
  1379. !     dflt='none'
  1380. !     fi
  1381. !     ;;
  1382. ! *) dflt="$ldflags";;
  1383. ! esac
  1384. ! echo " "
  1385. ! rp="Any additional ld flags (NOT including libraries)? [$dflt]"
  1386. ! $echo $n "$rp $c"
  1387. ! . myread
  1388. ! case "$ans" in
  1389. ! none) ans='';
  1390. ! esac
  1391. ! ldflags="$ans"
  1392. ! echo " "
  1393. ! echo "Checking for optional libraries..."
  1394. ! case "$libs" in
  1395. ! '') dflt=' ';;
  1396. ! *) dflt="$libs ";;
  1397. ! esac
  1398. ! case "$libswanted" in
  1399. ! '') libswanted='c_s';;
  1400. ! esac
  1401. ! for thislib in $libswanted; do
  1402. !     case "$thislib" in
  1403. !     dbm) thatlib=ndbm;;
  1404. !     *_s) thatlib=NONE;;
  1405. !     *) thatlib="${thislib}_s";;
  1406. !     *) thatlib=NONE;;
  1407. !     esac
  1408. !     xxx=`./loc lib$thislib.a X /usr/ccs/lib /usr/lib /usr/ucblib /usr/local/lib /lib`
  1409. !     if test -f $xxx; then
  1410. !     echo "Found -l$thislib."
  1411. !     case "$dflt" in
  1412. !     *-l$thislib\ *|*-l$thatlib\ *);;
  1413. !     *) dflt="$dflt -l$thislib ";;
  1414. !     esac
  1415. !     else
  1416. !     xxx=`./loc lib$thislib.a X $libpth`
  1417. !     if test -f $xxx; then
  1418. !         echo "Found $xxx."
  1419. !         case "$dflt" in
  1420. !         *"$xxx "*);;
  1421. !         *) dflt="$dflt $xxx ";;
  1422. !         esac
  1423. !     else
  1424. !         xxx=`./loc Slib$thislib.a X $xlibpth`
  1425. !         if test -f $xxx; then
  1426. !         echo "Found -l$thislib."
  1427. !         case "$dflt" in
  1428. !         *-l$thislib\ *|*-l$thatlib\ *);;
  1429. !         *) dflt="$dflt -l$thislib ";;
  1430. !         esac
  1431. !         else
  1432. !         xxx=`./loc lib$thislib.so X /usr/ccs/lib /usr/lib /usr/ucblib /usr/local/lib /lib`
  1433. !         if test -f $xxx; then
  1434. !             echo "Found -l$thislib as a shared object only."
  1435. !             case "$dflt" in
  1436. !             *-l$thislib\ *|*-l$thatlib\ *);;
  1437. !             *) dflt="$dflt -l$thislib ";;
  1438. !             esac
  1439. !         else
  1440. !             echo "No -l$thislib."
  1441. !         fi
  1442. !         fi
  1443. !     fi
  1444. !     fi
  1445. ! done
  1446. ! set X $dflt
  1447. ! shift
  1448. ! dflt="$*"
  1449. ! case "$dflt" in
  1450. ! '') dflt='none';;
  1451. ! esac
  1452. ! $cat <<EOM
  1453. !  
  1454. ! Some versions of Unix support shared libraries, which make
  1455. ! executables smaller but make load time slightly longer.
  1456. ! On some systems, mostly newer Unix System V's, the shared library
  1457. ! is included by putting the option "-lc_s" as the last thing on the
  1458. ! cc command line when linking.  Other systems use shared libraries
  1459. ! by default.  There may be other libraries needed to compile $package
  1460. ! on your machine as well.  If your system needs the "-lc_s" option,
  1461. ! include it here.  Include any other special libraries here as well.
  1462. ! Say "none" for none.
  1463. ! EOM
  1464. ! echo " "
  1465. ! rp="Any additional libraries? [$dflt]"
  1466. ! $echo $n "$rp $c"
  1467. ! . myread
  1468. ! case "$ans" in
  1469. ! none) ans='';
  1470. ! esac
  1471. ! libs="$ans"
  1472. ! : check for size of random number generator
  1473. ! echo " "
  1474. ! case "$alignbytes" in
  1475. ! '')
  1476. !     echo "Checking alignment constraints..."
  1477. !     $cat >try.c <<'EOCP'
  1478. ! struct foobar {
  1479. !     char foo;
  1480. !     double bar;
  1481. ! } try;
  1482. ! main()
  1483. ! {
  1484. !     printf("%d\n", (char*)&try.bar - (char*)&try.foo);
  1485. ! }
  1486. ! EOCP
  1487. !     if $cc $ccflags try.c -o try >/dev/null 2>&1 ; then
  1488. !     dflt=`./try`
  1489. !     else
  1490. !     dflt='?'
  1491. !     echo "(I can't seem to compile the test program...)"
  1492. !     fi
  1493. !     ;;
  1494. ! *)
  1495. !     dflt="$alignbytes"
  1496. !     ;;
  1497. ! esac
  1498. ! rp="Doubles must be aligned on a how-many-byte boundary? [$dflt]"
  1499. ! $echo $n "$rp $c"
  1500. ! . myread
  1501. ! alignbytes="$ans"
  1502. ! $rm -f try.c try
  1503. ! : determine where public executables go
  1504. ! cat <<EOF
  1505. !  
  1506. ! The following questions distinguish the directory in which executables
  1507. ! reside from the directory in which they are installed (and from which they
  1508. ! are presumably copied to the former directory by occult means).  This
  1509. ! distinction is often necessary under afs.  On most other systems, however,
  1510. ! the two directories are the same.
  1511. !  
  1512.   EOF
  1513. ! case "$bin" in
  1514. ! '')
  1515. !     dflt=`./loc . /usr/local/bin /usr/local/bin /usr/lbin /usr/local /usr/bin /bin`
  1516. !     ;;
  1517. ! *)  dflt="$bin"
  1518. !     ;;
  1519. ! esac
  1520. ! cont=true
  1521. ! while $test "$cont" ; do
  1522. !     rp="In which directory will public executables reside (~name ok)? [$dflt]"
  1523. !     $echo "In which directory will public executables reside (~name ok)?"
  1524. !     $echo $n "[$dflt] $c"
  1525. !     . myread
  1526. !     bin="$ans"
  1527. !     bin=`./filexp $bin`
  1528. !     if test -d $bin; then
  1529. !     cont=''
  1530. !     else
  1531. !     case "$fastread" in
  1532. !     yes) dflt=y;;
  1533. !     *) dflt=n;;
  1534. !     esac
  1535. !     rp="Directory $bin doesn't exist.  Use that name anyway? [$dflt]"
  1536. !     $echo $n "$rp $c"
  1537. !     . myread
  1538. !     dflt=''
  1539. !     case "$ans" in
  1540. !     y*) cont='';;
  1541. !     esac
  1542. !     fi
  1543. ! done
  1544. ! case "$bin" in
  1545. !   ?????????????????????????)
  1546. !     cat <<EOF
  1547. ! NOTE: you have a fairly long path name there.  Some systems have trouble
  1548. ! executing a script if the #! line ends up longer than 32 characters.  If
  1549. ! you have this trouble you may have to reinstall somewhere else, or make
  1550. ! a symbolic link from someplace with a shorter name.
  1551.   EOF
  1552. !     ;;
  1553. ! esac
  1554.   
  1555. - case "$installbin" in
  1556. - '')
  1557. -     dflt=`echo $bin | sed 's#^/afs/#/afs/.#'`
  1558. -     test -d $dflt || dflt="$bin"
  1559. -     ;;
  1560. - *)  dflt="$installbin"
  1561. -     ;;
  1562. - esac
  1563. - cont=true
  1564. - while $test "$cont" ; do
  1565. -     rp="In which directory will public executables be installed (~name ok)? [$dflt]"
  1566. -     $echo "In which directory will public executables be installed (~name ok)?"
  1567. -     $echo $n "[$dflt] $c"
  1568. -     . myread
  1569. -     installbin="$ans"
  1570. -     installbin=`./filexp $installbin`
  1571. -     if test -d $installbin; then
  1572. -     cont=''
  1573. -     else
  1574. -     case "$fastread" in
  1575. -     yes) dflt=y;;
  1576. -     *) dflt=n;;
  1577. -     esac
  1578. -     rp="Directory $installbin doesn't exist.  Use that name anyway? [$dflt]"
  1579. -     $echo $n "$rp $c"
  1580. -     . myread
  1581. -     dflt=''
  1582. -     case "$ans" in
  1583. -     y*) cont='';;
  1584. -     esac
  1585. -     fi
  1586. - done
  1587. - : check for ordering of bytes in a long
  1588. - case "$byteorder" in
  1589. - '')
  1590. - cat <<'EOM'
  1591. -   
  1592. - In the following, larger digits indicate more significance.  A big-endian
  1593. - machine like a Pyramid or a Motorola 680?0 chip will come out to 4321.  A
  1594. - little-endian machine like a Vax or an Intel 80?86 chip would be 1234.  Other
  1595. - machines may have weird orders like 3412.  A Cray will report 87654321.  If
  1596. - the test program works the default is probably right.
  1597. - I'm now running the test program...
  1598. - EOM
  1599. -     $cat >byteorder.c <<'EOCP'
  1600. - #include <stdio.h>
  1601. - main()
  1602. - {
  1603. -     int i;
  1604. -     union {
  1605. -     unsigned long l;
  1606. -     char c[sizeof(long)];
  1607. -     } u;
  1608. -     if (sizeof(long) > 4)
  1609. -     u.l = (0x08070605L << 32) | 0x04030201L;
  1610. -     else
  1611. -     u.l = 0x04030201L;
  1612. -     for (i=0; i < sizeof(long); i++)
  1613. -     printf("%c",u.c[i]+'0');
  1614. -     printf("\n");
  1615. - }
  1616. - EOCP
  1617. -     if $cc byteorder.c -o byteorder >/dev/null 2>&1 ; then
  1618. -     dflt=`./byteorder`
  1619. -     case "$dflt" in
  1620. -     ????|????????) echo "(The test program ran ok.)";;
  1621. -     *) echo "(The test program didn't run right for some reason.)";;
  1622. -     esac
  1623. -     else
  1624. -     dflt='4321'
  1625. -     echo "(I can't seem to compile the test program.  Guessing big-endian...)"
  1626. -     fi
  1627. -     ;;
  1628. - *)
  1629. -     echo " "
  1630. -     dflt="$byteorder"
  1631. -     ;;
  1632. - esac
  1633. - rp="What is the order of bytes in a long? [$dflt]"
  1634. - $echo $n "$rp $c"
  1635. - . myread
  1636. - byteorder="$ans"
  1637. - : check for ability to cast negative floats to unsigned
  1638. - echo " "
  1639. - echo 'Checking to see if your C compiler can cast weird floats to unsigned'
  1640. - $cat >try.c <<'EOCP'
  1641. - #include <signal.h>
  1642. - blech() { exit(3); }
  1643. - main()
  1644. - {
  1645. -     double f = -123;
  1646. -     unsigned long along;
  1647. -     unsigned int aint;
  1648. -     unsigned short ashort;
  1649. -     int result = 0;
  1650. -     signal(SIGFPE, blech);
  1651. -     along = (unsigned long)f;
  1652. -     aint = (unsigned int)f;
  1653. -     ashort = (unsigned short)f;
  1654. -     if (along != (unsigned long)-123)
  1655. -         result |= 1;
  1656. -     if (aint != (unsigned int)-123)
  1657. -         result |= 1;
  1658. -     if (ashort != (unsigned short)-123)
  1659. -         result |= 1;
  1660. -     f = (double)0x40000000;
  1661. -     f = f + f;
  1662. -     along = 0;
  1663. -     along = (unsigned long)f;
  1664. -     if (along != 0x80000000)
  1665. -         result |= 2;
  1666. -     f -= 1;
  1667. -     along = 0;
  1668. -     along = (unsigned long)f;
  1669. -     if (along != 0x7fffffff)
  1670. -         result |= 1;
  1671. -     f += 2;
  1672. -     along = 0;
  1673. -     along = (unsigned long)f;
  1674. -     if (along != 0x80000001)
  1675. -         result |= 2;
  1676. -     exit(result);
  1677. - }
  1678. - EOCP
  1679. - if $cc -o try $ccflags try.c >/dev/null 2>&1; then
  1680. -     ./try
  1681. -     castflags=$?
  1682. - else
  1683. -     castflags=3
  1684. - fi
  1685. - case "$castflags" in
  1686. - 0)  val="$define"
  1687. -     echo "Yup, it does."
  1688. -     ;;
  1689. - *)  val="$undef"
  1690. -     echo "Nope, it doesn't."
  1691. -     ;;
  1692. - esac
  1693. - set d_castneg
  1694. - eval $setvar
  1695. - $rm -f try.*
  1696. - : see how we invoke the C preprocessor
  1697. - echo " "
  1698. - echo "Now, how can we feed standard input to your C preprocessor..."
  1699. - cat <<'EOT' >testcpp.c
  1700. - #define ABC abc
  1701. - #define XYZ xyz
  1702. - ABC.XYZ
  1703. - EOT
  1704. - cd ..
  1705. - echo 'cat >.$$.c; '"$cc"' -E ${1+"$@"} .$$.c; rm .$$.c' >cppstdin
  1706. - chmod 755 cppstdin
  1707. - wrapper=cppstdin
  1708. - case "$cppstdin" in
  1709. - /*cppstdin) cppstdin=cppstdin;;
  1710. - esac
  1711. - cp cppstdin UU
  1712. - cd UU
  1713. - if test "X$cppstdin" != "X" && \
  1714. -   $cppstdin $cppminus <testcpp.c >testcpp.out 2>&1 && \
  1715. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1716. -     echo "You used to use $cppstdin $cppminus so we'll use that again."
  1717. - elif test "$cc" = gcc && \
  1718. -   (echo "Using gcc, eh?  We'll try to force gcc -E using a wrapper..."; \
  1719. -   $wrapper <testcpp.c >testcpp.out 2>&1; \
  1720. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1) ; then
  1721. -     echo "Yup, we can."
  1722. -     cppstdin="$wrapper"
  1723. -     cppminus='';
  1724. - elif echo 'Maybe "'"$cc"' -E" will work...'; \
  1725. -   $cc -E <testcpp.c >testcpp.out 2>&1; \
  1726. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1727. -     echo "Yup, it does."
  1728. -     cppstdin="$cc -E"
  1729. -     cppminus='';
  1730. - elif echo 'Nope...maybe "'"$cc"' -E -" will work...'; \
  1731. -   $cc -E - <testcpp.c >testcpp.out 2>&1; \
  1732. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1733. -     echo "Yup, it does."
  1734. -     cppstdin="$cc -E"
  1735. -     cppminus='-';
  1736. - elif echo 'No such luck, maybe "'$cpp'" will work...'; \
  1737. -   $cpp <testcpp.c >testcpp.out 2>&1; \
  1738. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1739. -     echo "It works!"
  1740. -     cppstdin="$cpp"
  1741. -     cppminus='';
  1742. - elif echo 'Nixed again...maybe "'$cpp' -" will work...'; \
  1743. -   $cpp - <testcpp.c >testcpp.out 2>&1; \
  1744. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1745. -     echo "Hooray, it works!  I was beginning to wonder."
  1746. -     cppstdin="$cpp"
  1747. -     cppminus='-';
  1748. - elif echo 'Uh-uh.  Time to get fancy.  Trying a wrapper...'; \
  1749. -   $wrapper <testcpp.c >testcpp.out 2>&1; \
  1750. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1751. -     cppstdin="$wrapper"
  1752. -     cppminus=''
  1753. -     echo "Eureka!."
  1754. - elif echo 'Nope...maybe "'"$cc"' -P" will work...'; \
  1755. -   $cc -P <testcpp.c >testcpp.out 2>&1; \
  1756. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1757. -     echo "Yipee, that works!"
  1758. -     cppstdin="$cc -P"
  1759. -     cppminus='';
  1760. - elif echo 'Nope...maybe "'"$cc"' -P -" will work...'; \
  1761. -   $cc -P - <testcpp.c >testcpp.out 2>&1; \
  1762. -   $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1763. -     echo "At long last!"
  1764. -     cppstdin="$cc -P"
  1765. -     cppminus='-';
  1766. - else
  1767. -     dflt=blurfl
  1768. -     $echo $n "No dice.  I can't find a C preprocessor.  Name one: $c"
  1769. -     rp='Name a C preprocessor:'
  1770. -     . myread
  1771. -     cppstdin="$ans"
  1772. -     $cppstdin <testcpp.c >testcpp.out 2>&1
  1773. -     if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  1774. -     echo "OK, that will do."
  1775. -     else
  1776. -     echo "Sorry, I can't get that to work.  Go find one and rerun Configure."
  1777. -     exit 1
  1778. -     fi
  1779.   fi
  1780.   
  1781. - : get list of predefined functions in a handy place
  1782. - echo " "
  1783. - case "$libc" in
  1784. - '') libc=unknown;;
  1785. - esac
  1786. - case "$nm_opts" in
  1787. - '') if test -f /mach_boot; then
  1788. -     nm_opts=''
  1789. -     elif test -d /usr/ccs/lib; then
  1790. -     nm_opts='-p'
  1791. -     else
  1792. -     nm_opts=''
  1793. -     fi
  1794. -     ;;
  1795. - esac
  1796. - : on mips, we DO NOT want /lib, and we want inclPath/usr/lib
  1797. - case "$libpth" in
  1798. - '') if mips; then
  1799. -     libpth='$inclPath/usr/lib /usr/local/lib'
  1800. -     nm_opts="-B"
  1801. -     else
  1802. -     libpth='/usr/ccs/lib /lib /usr/lib /usr/ucblib /usr/local/lib'
  1803. -     fi
  1804. -     ;;
  1805. - esac
  1806. - case "$libs" in
  1807. - *-lc_s*) libc=`./loc libc_s.a $libc $libpth`
  1808. - esac
  1809. - libnames='';
  1810. - case "$libs" in
  1811. - '') ;;
  1812. - *)  for thislib in $libs; do
  1813. -     case "$thislib" in
  1814. -     -l*) thislib=`expr X$thislib : 'X-l\(.*\)'`
  1815. -         try=`./loc lib$thislib.a blurfl/dyick $libpth`
  1816. -         if test ! -f $try; then
  1817. -         try=`./loc lib$thislib blurfl/dyick $libpth`
  1818. -         if test ! -f $try; then
  1819. -             try=`./loc $thislib blurfl/dyick $libpth`
  1820. -             if test ! -f $try; then
  1821. -             try=`./loc Slib$thislib.a blurfl/dyick $xlibpth`
  1822. -             if test ! -f $try; then
  1823. -                 try=''
  1824. -             fi
  1825. -             fi
  1826. -         fi
  1827. -         fi
  1828. -         libnames="$libnames $try"
  1829. -         ;;
  1830. -     *) libnames="$libnames $thislib" ;;
  1831. -     esac
  1832. -     done
  1833. -     ;;
  1834. - esac
  1835. - set /usr/ccs/lib/libc.so
  1836. - test -f $1 || set /usr/lib/libc.so
  1837. - test -f $1 || set /usr/shlib/libc.so
  1838. - test -f $1 || set /usr/lib/libc.so.[0-9]*
  1839. - test -f $1 || set /lib/libsys_s.a
  1840. - eval set \$$#
  1841. - if test -f "$1"; then
  1842. -     echo "Your (shared) C library seems to be in $1."
  1843. -     libc="$1"
  1844. - elif test -f "$libc"; then
  1845. -     echo "Your C library seems to be in $libc."
  1846. - elif test -f /lib/libc.a; then
  1847. -     echo "Your C library seems to be in /lib/libc.a.  You're normal."
  1848. -     libc=/lib/libc.a
  1849. - else
  1850. -     if   ans=`./loc libc.a  blurfl/dyick $libpth`; test -f "$ans"; then
  1851. -     :
  1852. -     elif ans=`./loc libc    blurfl/dyick $libpth`; test -f "$ans"; then
  1853. -         libnames="$libnames "`./loc clib blurfl/dyick $libpth`
  1854. -     elif ans=`./loc clib    blurfl/dyick $libpth`; test -f "$ans"; then
  1855. -     :
  1856. -     elif ans=`./loc Slibc.a blurfl/dyick $xlibpth`; test -f "$ans"; then
  1857. -     :
  1858. -     elif ans=`./loc Mlibc.a blurfl/dyick $xlibpth`; test -f "$ans"; then
  1859. -     :
  1860. -     elif ans=`./loc Llibc.a blurfl/dyick $xlibpth`; test -f "$ans"; then
  1861. -     :
  1862. -     fi
  1863. -     if test -f "$ans"; then
  1864. -     echo "Your C library seems to be in $ans, of all places."
  1865. -     libc=$ans
  1866. -     else
  1867. -     cat <<EOM
  1868. -  
  1869. - I can't seem to find your C library.  I've looked in the following places:
  1870. -     $libpth
  1871. - None of these seems to contain your C library.  What is the full name
  1872. - EOM
  1873. -     dflt=None
  1874. -     $echo $n "of your C library? $c"
  1875. -     rp='C library full name?'
  1876. -     . myread
  1877. -     libc="$ans"
  1878. -     fi
  1879. - fi
  1880. - echo " "
  1881. - if test $libc = "/lib/libc"; then
  1882. -     libc="$libc /lib/clib"
  1883. - fi
  1884. - cat <<END
  1885. -  
  1886. - If the guess above is wrong (which it might be if you're using a strange
  1887. - compiler, or your machine supports multiple models), you can override it here.
  1888. - END
  1889. - dflt="$libc";
  1890. - rp="Your C library is where? [$dflt]"
  1891. - $echo $n "$rp $c"
  1892. - . myread
  1893. - libc="$ans"
  1894. - echo " "
  1895. - echo $libc $libnames | tr ' ' '\012' | sort | uniq >libnames
  1896. - $echo "Extracting names from the following files for later perusal:"
  1897. - sed 's/^/    /' libnames
  1898. - echo $n "This may take a while...$c"
  1899. - set X `cat libnames`
  1900. - shift
  1901. - nm $nm_opts $* 2>/dev/null >libc.tmp
  1902. - $sed -n -e 's/^.* [ATDS]  *[_.]*//p' -e 's/^.* [ATDS] //p' <libc.tmp >libc.list
  1903. - if $contains '^printf$' libc.list >/dev/null 2>&1; then
  1904. -     echo done
  1905. - elif $sed -n -e 's/^__*//' -e 's/^\([a-zA-Z_0-9$]*\).*xtern.*/\1/p' \
  1906. -     <libc.tmp >libc.list; \
  1907. -   $contains '^printf$' libc.list >/dev/null 2>&1; then
  1908. -     echo done
  1909. - elif $sed -n -e '/|UNDEF/d' -e '/FUNC..GL/s/^.*|__*//p' <libc.tmp >libc.list; \
  1910. -   $contains '^printf$' libc.list >/dev/null 2>&1; then
  1911. -     echo done
  1912. - elif $sed -n -e 's/^.* D __*//p' -e 's/^.* D //p' <libc.tmp >libc.list; \
  1913. -   $contains '^printf$' libc.list >/dev/null 2>&1; then
  1914. -     echo done
  1915. - elif $sed -n -e 's/^_//' -e 's/^\([a-zA-Z_0-9]*\).*xtern.*text.*/\1/p' \
  1916. -         <libc.tmp >libc.list; \
  1917. -   $contains '^printf$' libc.list >/dev/null 2>&1; then
  1918. -     echo done
  1919. - elif $grep '|' <libc.tmp | $sed -n -e '/|COMMON/d' -e '/|DATA/d' -e '/ file/d' \
  1920. -                                    -e 's/^\([^     ]*\).*/\1/p' >libc.list
  1921. -   $contains '^printf$' libc.list >/dev/null 2>&1; then
  1922. -     echo done
  1923. - elif $sed -n -e 's/^.*|FUNC |GLOB .*|//p' -e 's/^.*|FUNC |WEAK .*|//p' \
  1924. -        <libc.tmp >libc.list; \
  1925. -   $contains '^printf$' libc.list >/dev/null 2>&1; then
  1926. -     echo done
  1927. - elif $sed -n -e 's/^[         ]*[0-9][0-9a-f]*[       ]*Def. Text[    ]*//p' \
  1928. -        < libc.tmp | $sed -e 's/\[.*\]//' > libc.list; \
  1929. -   $contains '^printf$' libc.list >/dev/null 2>&1; then
  1930. -       echo done
  1931. - else
  1932. -     nm -p $* 2>/dev/null >libc.tmp
  1933. -     $sed -n -e 's/^.* [AT]  *_[_.]*//p' -e 's/^.* [AT] //p' <libc.tmp >libc.list
  1934. -     if $contains '^printf$' libc.list >/dev/null 2>&1; then
  1935. -     nm_opts='-p'
  1936. -     echo "done"
  1937. -     else
  1938. -     echo " "
  1939. -     echo "nm didn't seem to work right."
  1940. -     echo "Trying ar instead..."
  1941. -     if ar t $libc > libc.tmp; then
  1942. -         for thisname in $libnames; do
  1943. -         ar t $thisname >>libc.tmp
  1944. -         done
  1945. -         $sed -e 's/\.o$//' < libc.tmp > libc.list
  1946. -         echo "Ok."
  1947. -     else
  1948. -         echo "ar didn't seem to work right."
  1949. -         echo "Maybe this is a Cray...trying bld instead..."
  1950. -         if bld t $libc | $sed -e 's/.*\///' -e 's/\.o:.*$//' > libc.list; then
  1951. -         for thisname in $libnames; do
  1952. -             bld t $libnames | \
  1953. -             $sed -e 's/.*\///' -e 's/\.o:.*$//' >>libc.list
  1954. -             ar t $thisname >>libc.tmp
  1955. -         done
  1956. -         echo "Ok."
  1957. -         else
  1958. -         echo "That didn't work either.  Giving up."
  1959. -         exit 1
  1960. -         fi
  1961. -     fi
  1962. -     fi
  1963. - fi
  1964. - if test -f /lib/syscalls.exp; then
  1965. -     echo "Also extracting names from /lib/syscalls.exp for good ole AIX..."
  1966. -     sed -n 's/^\([^     ]*\)[     ]*syscall$/\1/p' /lib/syscalls.exp >>libc.list
  1967. - fi
  1968. - inlibc='echo " "; td=$define; tu=$undef;
  1969. - if $contains "^$1\$" libc.list >/dev/null 2>&1;
  1970. - then echo "$1() found";
  1971. -   eval "case \"\$$2\" in undef) . whoa; esac"; eval "$2=\$td";
  1972. - else echo "$1() NOT found";
  1973. -   eval "case \"\$$2\" in define) . whoa; esac"; eval "$2=\$tu"; fi'
  1974. - : see if bcmp exists
  1975. - set bcmp d_bcmp
  1976. - eval $inlibc
  1977. - : see if bcopy exists
  1978. - set bcopy d_bcopy
  1979. - eval $inlibc
  1980. - case "$d_safebcpy" in
  1981. - '')
  1982. -     : assume the worst
  1983. -     d_safebcpy=undef
  1984. -     case "$d_bcopy" in
  1985. -     define)
  1986. -     echo "Checking to see if your bcopy() can do overlapping copies..."
  1987. -     $cat >safebcpy.c <<'EOCP'
  1988. - main()
  1989. - {
  1990. -     char buf[128];
  1991. -     register char *b;
  1992. -     register int len;
  1993. -     register int off;
  1994. -     register int align;
  1995. -     for (align = 7; align >= 0; align--) {
  1996. -     for (len = 36; len; len--) {
  1997. -         b = buf+align;
  1998. -         bcopy("abcdefghijklmnopqrstuvwxyz0123456789", b, len);
  1999. -         for (off = 1; off <= len; off++) {
  2000. -         bcopy(b, b+off, len);
  2001. -         bcopy(b+off, b, len);
  2002. -         if (bcmp(b, "abcdefghijklmnopqrstuvwxyz0123456789", len))
  2003. -             exit(1);
  2004. -         }
  2005. -     }
  2006. -     }
  2007. -     exit(0);
  2008. - }
  2009. - EOCP
  2010. -     if $cc safebcpy.c -o safebcpy $ccflags $libs >/dev/null 2>&1 ; then
  2011. -         if ./safebcpy; then
  2012. -         echo "It can."
  2013. -         d_safebcpy=define
  2014. -         else
  2015. -         echo "It can't."
  2016. -         fi
  2017. -     else
  2018. -         echo "(I can't compile the test program, so we'll assume not...)"
  2019. -     fi
  2020. -     ;;
  2021. -     esac
  2022. -     ;;
  2023. - esac
  2024.   
  2025. ! : see if bzero exists
  2026. ! set bzero d_bzero
  2027. ! eval $inlibc
  2028. ! : see if sprintf is declared as int or pointer to char
  2029. ! echo " "
  2030. ! cat >ucbsprf.c <<'EOF'
  2031. ! #include <stdio.h>
  2032. ! main()
  2033. ! {
  2034. !     int sprintf();
  2035. !     char buf[10];
  2036. !     exit((unsigned long)sprintf(buf,"%s","foo") > 10L);
  2037. ! }
  2038.   EOF
  2039. ! if $cc $ccflags ucbsprf.c -o ucbsprf >/dev/null 2>&1 && ./ucbsprf; then
  2040. !     echo "Your sprintf() returns (int)."
  2041. !     val="$undef"
  2042. ! else
  2043. !     echo "Your sprintf() returns (char*)."
  2044. !     val="$define"
  2045. ! fi
  2046. ! set d_charsprf
  2047. ! eval $setvar
  2048.   
  2049. - : see if vprintf exists
  2050. - echo " "
  2051. - if $contains '^vprintf$' libc.list >/dev/null 2>&1; then
  2052. -     echo 'vprintf() found.'
  2053. -     val="$define"
  2054. -     cat >vprintf.c <<'EOF'
  2055. - #include <varargs.h>
  2056. - main() { xxx("foo"); }
  2057. - xxx(va_alist)
  2058. - va_dcl
  2059. - {
  2060. -     va_list args;
  2061. -     char buf[10];
  2062. -     va_start(args);
  2063. -     exit((unsigned long)vsprintf(buf,"%s",args) > 10L);
  2064. - }
  2065. - EOF
  2066. -     if $cc $ccflags vprintf.c -o vprintf >/dev/null 2>&1 && ./vprintf; then
  2067. -     echo "Your vsprintf() returns (int)."
  2068. -     val2="$undef"
  2069. -     else
  2070. -     echo "Your vsprintf() returns (char*)."
  2071. -     val2="$define"
  2072. -     fi
  2073. - else
  2074. -     echo 'vprintf() NOT found.'
  2075. -     val="$undef"
  2076. -     val2="$undef"
  2077. - fi
  2078. - set d_vprintf
  2079. - eval $setvar
  2080. - val=$val2
  2081. - set d_charvspr
  2082. - eval $setvar
  2083. - : see if chsize exists
  2084. - set chsize d_chsize
  2085. - eval $inlibc
  2086. - : see if crypt exists
  2087. - echo " "
  2088. - if $contains '^crypt$' libc.list >/dev/null 2>&1; then
  2089. -     echo 'crypt() found.'
  2090. -     val="$define"
  2091. -     cryptlib=''
  2092. - else
  2093. -     cryptlib=`./loc Slibcrypt.a "" $xlibpth`
  2094. -     if $test -z "$cryptlib"; then
  2095. -     cryptlib=`./loc Mlibcrypt.a "" $xlibpth`
  2096. -     else
  2097. -     cryptlib=-lcrypt
  2098. -     fi
  2099. -     if $test -z "$cryptlib"; then
  2100. -     cryptlib=`./loc Llibcrypt.a "" $xlibpth`
  2101. -     else
  2102. -     cryptlib=-lcrypt
  2103. -     fi
  2104. -     if $test -z "$cryptlib"; then
  2105. -     cryptlib=`./loc libcrypt.a "" $libpth`
  2106. -     else
  2107. -     cryptlib=-lcrypt
  2108. -     fi
  2109. -     if $test -z "$cryptlib"; then
  2110. -     echo 'crypt() NOT found.'
  2111. -     val="$undef"
  2112. -     else
  2113. -     val="$define"
  2114. -     fi
  2115.   fi
  2116. ! set d_crypt
  2117. ! eval $setvar
  2118.   
  2119. ! : get csh whereabouts
  2120. ! case "$csh" in
  2121. ! 'csh') val="$undef" ;;
  2122. ! *)     val="$define" ;;
  2123. ! esac
  2124. ! set d_csh
  2125. ! eval $setvar
  2126. ! : see if readdir exists
  2127. ! set readdir d_readdir
  2128. ! eval $inlibc
  2129. ! : see if there are directory access routines out there
  2130. ! echo " "
  2131. ! xxx=`./loc ndir.h x $usrinclude /usr/local/include $inclwanted`
  2132. ! case "$xxx" in
  2133. ! x)
  2134. !     xxx=`./loc sys/ndir.h x $usrinclude /usr/local/include $inclwanted`
  2135. !     ;;
  2136. ! esac
  2137. ! D_dirnamlen="$undef"
  2138. ! I_dirent="$undef"
  2139. ! I_sys_dir="$undef"
  2140. ! I_my_dir="$undef"
  2141. ! I_ndir="$undef"
  2142. ! I_sys_ndir="$undef"
  2143. ! libndir=''
  2144. ! ndirc=''
  2145. ! ndiro=''
  2146. ! if $test -r $usrinclude/dirent.h; then
  2147. !     echo "dirent.h found."
  2148. !     if $contains 'd_namlen' $usrinclude/dirent.h >/dev/null 2>&1; then
  2149. !     D_dirnamlen="$define"
  2150. !     fi
  2151. !     I_dirent="$define"
  2152. ! elif $test -r $xxx; then
  2153. !     echo "You seem to use <$xxx>,"
  2154. !     if $test "$d_readdir" = "$define"; then
  2155. !     echo "and I can get readdir() from your C library."
  2156. !     elif $test -r /usr/lib/libndir.a || $test -r /usr/local/lib/libndir.a; then
  2157. !     echo "and I'll get the routines using -lndir ."
  2158. !     libndir='-lndir'
  2159. !     else
  2160. !     ans=`./loc libndir.a x $libpth`
  2161. !     case "$ans" in
  2162. !     x)
  2163. !         echo "but I can't find the ndir library!"
  2164. !         ;;
  2165. !     *)
  2166. !         echo "and I found the directory library in $ans."
  2167. !         libndir="$ans"
  2168. !         ;;
  2169. !     esac
  2170. !     fi
  2171. !     if $contains 'd_namlen' $xxx >/dev/null 2>&1; then
  2172. !     D_dirnamlen="$define"
  2173. !     fi
  2174. !     case "$xxx" in
  2175. !     sys/)
  2176. !     I_sys_ndir="$define"
  2177. !     ;;
  2178. !     *)
  2179. !     I_ndir="$define"
  2180. !     ;;
  2181. !     esac
  2182. ! else
  2183. !     : The next line used to require this to be a bsd system.
  2184. !     if $contains '^readdir$' libc.list >/dev/null 2>&1 ; then
  2185. !     echo "No ndir library found, but you have readdir() so we'll use that."
  2186. !     if $contains 'd_namlen' $usrinclude/sys/dir.h >/dev/null 2>&1; then
  2187. !         D_dirnamlen="$define"
  2188. !     fi
  2189. !     I_sys_dir="$define"
  2190. !     else
  2191. !     echo "No ndir library found--using ./$d_ndir.c."
  2192. ! : This will lose since $d_ndir.h is in another directory.
  2193. ! : I doubt we can rely on it being in ../$d_ndir.h . 
  2194. ! : At least it will fail in a conservative manner.
  2195. !     if $contains 'd_namlen' $d_ndir.h >/dev/null 2>&1; then
  2196. !         D_dirnamlen="$define"
  2197. !     fi
  2198. !     I_my_dir="$define"
  2199. !     ndirc="$d_ndir.c"
  2200. !     ndiro="$d_ndir.o"
  2201. !     fi
  2202. ! fi
  2203. ! val=$D_dirnamlen;    set d_dirnamlen;    eval $setvar
  2204. ! val=$I_dirent;        set i_dirent;        eval $setvar
  2205. ! val=$I_sys_dir;        set i_sys_dir;        eval $setvar
  2206. ! val=$I_my_dir;        set i_my_dir;        eval $setvar
  2207. ! val=$I_ndir;        set i_ndir;        eval $setvar
  2208. ! val=$I_sys_ndir;    set i_sys_ndir;        eval $setvar
  2209. ! : now see if they want to do setuid emulation
  2210. ! case "$d_dosuid" in
  2211. ! '') dflt=n;;
  2212. ! *undef*) dflt=n;;
  2213. ! *) dflt=y;;
  2214. ! esac
  2215. ! cat <<EOM
  2216. !  
  2217. ! Some sites have disabled setuid #! scripts because of a bug in the kernel
  2218. ! that prevents them from being secure.  If you are on such a system, the
  2219. ! setuid/setgid bits on scripts are currently useless.  It is possible for
  2220. ! $package to detect those bits and emulate setuid/setgid in a secure fashion
  2221. ! until a better solution is devised for the kernel problem.
  2222. ! EOM
  2223. ! rp="Do you want to do setuid/setgid emulation? [$dflt]"
  2224. ! $echo $n "$rp $c"
  2225. ! . myread
  2226. ! case "$ans" in
  2227. ! '') $ans="$dflt";;
  2228. ! esac
  2229. ! case "$ans" in
  2230. ! y*)  d_dosuid="$define";;
  2231. ! *) d_dosuid="$undef";;
  2232. ! esac
  2233. ! : see if dup2 exists
  2234. ! set dup2 d_dup2
  2235. ! eval $inlibc
  2236. ! : see if fchmod exists
  2237. ! set fchmod d_fchmod
  2238. ! eval $inlibc
  2239. ! : see if fchown exists
  2240. ! set fchown d_fchown
  2241. ! eval $inlibc
  2242. ! : see if this is an fcntl system
  2243. ! set fcntl d_fcntl
  2244. ! eval $inlibc
  2245. ! : see if we can have long filenames
  2246. ! echo " "
  2247. ! rm -f 123456789abcde
  2248. ! if (echo hi >123456789abcdef) 2>/dev/null; then
  2249. !     : not version 8
  2250. !     if test -f 123456789abcde; then
  2251. !     echo 'You cannot have filenames longer than 14 characters.  Sigh.'
  2252. !     val="$undef"
  2253. !     else
  2254. !     echo 'You can have filenames longer than 14 characters.'
  2255. !     val="$define"
  2256. !     fi
  2257. ! else
  2258. !     : version 8 probably
  2259. !     echo "You can't have filenames longer than 14 chars.  You can't even think about them!"
  2260. !     val="$undef"
  2261. ! fi 
  2262. ! set d_flexfnam
  2263. ! eval $setvar
  2264. ! : see if flock exists
  2265. ! set flock d_flock
  2266. ! eval $inlibc
  2267. ! : see if getgroups exists
  2268. ! set getgroups d_getgrps
  2269. ! eval $inlibc
  2270. ! : see if gethostent exists
  2271. ! set gethostent d_gethent
  2272. ! eval $inlibc
  2273. ! : see if getpgrp exists
  2274. ! set getpgrp d_getpgrp
  2275. ! eval $inlibc
  2276. ! : see if getpgrp2 exists
  2277. ! set getpgrp2 d_getpgrp2
  2278. ! eval $inlibc
  2279. ! : see if getpriority exists
  2280. ! set getpriority d_getprior
  2281. ! eval $inlibc
  2282. ! : see if htonl exists
  2283. ! set htonl d_htonl
  2284. ! eval $inlibc
  2285. ! : index or strcpy
  2286. ! echo " "
  2287. ! case "$d_index" in
  2288. ! undef) dflt=y;;
  2289. ! define) dflt=n;;
  2290. ! *)  if $test -f /unix; then
  2291. !     dflt=n
  2292. !     else
  2293. !     dflt=y
  2294. !     fi
  2295. !     ;;
  2296. ! esac
  2297. ! if $contains '^index$' libc.list >/dev/null 2>&1 ; then
  2298. !     if $contains '^strchr$' libc.list >/dev/null 2>&1 ; then
  2299. !     echo "Your system has both index() and strchr().  Shall I use"
  2300. !     rp="index() rather than strchr()? [$dflt]"
  2301. !     $echo $n "$rp $c"
  2302. !     . myread
  2303. !     case "$ans" in
  2304. !         n*) d_index="$define" ;;
  2305. !         *)  d_index="$undef" ;;
  2306. !     esac
  2307. !     else
  2308. !     d_index="$undef"
  2309. !     echo "index() found."
  2310. !     fi
  2311. ! else
  2312. !     if $contains '^strchr$' libc.list >/dev/null 2>&1 ; then
  2313. !     d_index="$define"
  2314. !     echo "strchr() found."
  2315. !     else
  2316. !     echo "No index() or strchr() found!"
  2317. !     d_index="$undef"
  2318. !     fi
  2319.   fi
  2320.   
  2321. ! : see if isascii exists
  2322. ! set isascii d_isascii
  2323. ! eval $inlibc
  2324. ! : see if killpg exists
  2325. ! set killpg d_killpg
  2326. ! eval $inlibc
  2327. ! : see if lstat exists
  2328. ! set lstat d_lstat
  2329. ! eval $inlibc
  2330. ! : see if memcmp exists
  2331. ! set memcmp d_memcmp
  2332. ! eval $inlibc
  2333. ! : see if memcpy exists
  2334. ! set memcpy d_memcpy
  2335. ! eval $inlibc
  2336. ! case "$d_safemcpy" in
  2337. ! '')
  2338. !     : assume the worst
  2339. !     d_safemcpy=undef
  2340. !     case "$d_memcpy" in
  2341. !     define)
  2342. !     echo "Checking to see if your memcpy() can do overlapping copies..."
  2343. !     $cat >safemcpy.c <<'EOCP'
  2344. ! main()
  2345.   {
  2346. !     char buf[128];
  2347. !     register char *b;
  2348. !     register int len;
  2349. !     register int off;
  2350. !     register int align;
  2351. !     for (align = 7; align >= 0; align--) {
  2352. !     for (len = 36; len; len--) {
  2353. !         b = buf+align;
  2354. !         memcpy(b,"abcdefghijklmnopqrstuvwxyz0123456789", len);
  2355. !         for (off = 1; off <= len; off++) {
  2356. !         memcpy(b+off, b, len);
  2357. !         memcpy(b, b+off, len);
  2358. !         if (memcmp(b, "abcdefghijklmnopqrstuvwxyz0123456789", len))
  2359. !             exit(1);
  2360. !         }
  2361. !     }
  2362. !     }
  2363. !     exit(0);
  2364.   }
  2365. - EOCP
  2366. -     if $cc safemcpy.c -o safemcpy $ccflags $libs >/dev/null 2>&1 ; then
  2367. -         if ./safemcpy; then
  2368. -         echo "It can."
  2369. -         d_safemcpy=define
  2370. -         else
  2371. -         echo "It can't."
  2372. -         fi
  2373. -     else
  2374. -         echo "(I can't compile the test program, so we'll assume not...)"
  2375. -     fi
  2376. -     ;;
  2377. -     esac
  2378. -     ;;
  2379. - esac
  2380. - : see if memmove exists
  2381. - set memmove d_memmove
  2382. - eval $inlibc
  2383. - : see if memset exists
  2384. - set memset d_memset
  2385. - eval $inlibc
  2386. - : see if mkdir exists
  2387. - set mkdir d_mkdir
  2388. - eval $inlibc
  2389. - : see if msgctl exists
  2390. - set msgctl d_msgctl
  2391. - eval $inlibc
  2392. - : see if msgget exists
  2393. - set msgget d_msgget
  2394. - eval $inlibc
  2395. - : see if msgsnd exists
  2396. - set msgsnd d_msgsnd
  2397. - eval $inlibc
  2398. - : see if msgrcv exists
  2399. - set msgrcv d_msgrcv
  2400. - eval $inlibc
  2401. - : see how much of the 'msg*(2)' library is present.
  2402. - h_msg=true
  2403. - echo " "
  2404. - case "$d_msgctl$d_msgget$d_msgsnd$d_msgrcv" in
  2405. - *undef*) h_msg=false;;
  2406. - esac
  2407. - : we could also check for sys/ipc.h ...
  2408. - if $h_msg && $test -r $usrinclude/sys/msg.h; then
  2409. -     echo "You have the full msg*(2) library."
  2410. -     val="$define"
  2411. - else
  2412. -     echo "You don't have the full msg*(2) library."
  2413. -     val="$undef"
  2414. - fi
  2415. - set d_msg
  2416. - eval $setvar
  2417. - : determine which malloc to compile in
  2418. - echo " "
  2419. - case "$d_mymalloc" in
  2420. - '')
  2421. -     case "$usemymalloc" in
  2422. -     '')
  2423. -     if bsd || v7; then
  2424. -         dflt='y'
  2425. -     else
  2426. -         dflt='n'
  2427. -     fi
  2428. -     ;;
  2429. -     n*) dflt=n;;
  2430. -     *)  dflt=y;;
  2431. -     esac
  2432. -     ;;
  2433. - define)  dflt="y"
  2434. -     ;;
  2435. - *)  dflt="n"
  2436. -     ;;
  2437. - esac
  2438. - rp="Do you wish to attempt to use the malloc that comes with $package? [$dflt]"
  2439. - $echo $n "$rp $c"
  2440. - . myread
  2441. - case "$ans" in
  2442. - '') ans=$dflt;;
  2443. - esac
  2444. - case "$ans" in
  2445. - y*) mallocsrc='malloc.c'; mallocobj='malloc.o'
  2446. -     libs=`echo $libs | sed 's/-lmalloc//'`
  2447. -     val="$define"
  2448. -     case "$mallocptrtype" in
  2449. -     '')
  2450. -     cat >usemymalloc.c <<'END'
  2451. - #ifdef __STDC__
  2452. - #include <stdlib.h>
  2453. - #else
  2454. - #include <malloc.h>
  2455. - #endif
  2456. - void *malloc();
  2457. - END
  2458. -     if $cc $ccflags -c usemymalloc.c >/dev/null 2>&1; then
  2459. -         mallocptrtype=void
  2460. -     else
  2461. -         mallocptrtype=char
  2462. -     fi
  2463. -     ;;
  2464. -     esac
  2465. -     echo " "
  2466. -     echo "Your system wants malloc to return $mallocptrtype*, it would seem."
  2467. -     ;;
  2468. - *)  mallocsrc='';
  2469. -     mallocobj='';
  2470. -     mallocptrtype=void
  2471. -     val="$undef"
  2472. -     ;;
  2473. - esac
  2474. - set d_mymalloc
  2475. - eval $setvar
  2476. - : see if ndbm is available
  2477. - echo " "
  2478. - xxx=`./loc ndbm.h x $usrinclude /usr/local/include $inclwanted`
  2479. - if test -f $xxx; then
  2480. -     val="$define"
  2481. -     echo "ndbm.h found."
  2482. - else
  2483. -     val="$undef"
  2484. -     echo "ndbm.h NOT found."
  2485. - fi
  2486. - set d_ndbm
  2487. - eval $setvar
  2488. - : see if we have the old dbm
  2489. - echo " "
  2490. - xxx=`./loc dbm.h x $usrinclude /usr/local/include $inclwanted`
  2491. - if test -f $xxx; then
  2492. -     val="$define"
  2493. -     echo "dbm.h found."
  2494. - else
  2495. -     val="$undef"
  2496. -     echo "dbm.h NOT found."
  2497. - fi
  2498. - set d_odbm
  2499. - eval $setvar
  2500.   
  2501. - : see whether socket exists
  2502. - echo " "
  2503. - socketlib=''
  2504. - if $contains socket libc.list >/dev/null 2>&1; then
  2505. -     echo "Looks like you have Berkeley networking support."
  2506. -     val="$define"
  2507. -     : now check for advanced features
  2508. -     if $contains setsockopt libc.list >/dev/null 2>&1; then
  2509. -     val2="$undef"
  2510. -     else
  2511. -     echo "...but it uses the old 4.1c interface, rather than 4.2"
  2512. -     val2="$define"
  2513. -     fi
  2514. - else
  2515. -     : hpux, for one, puts all the socket stuff in socklib.o
  2516. -     if $contains socklib libc.list >/dev/null 2>&1; then
  2517. -     echo "Looks like you have Berkeley networking support."
  2518. -     val="$define"
  2519. -     : we will have to assume that it supports the 4.2 BSD interface
  2520. -     val2="$undef"
  2521. -     else
  2522. -     echo "Hmmm...you don't have Berkeley networking in libc.a..."
  2523. -     : look for an optional networking library
  2524. -     if test -f /usr/lib/libnet.a; then
  2525. -         (ar t /usr/lib/libnet.a ||
  2526. -         nm -g /usr/lib/libnet.a) 2>/dev/null >> libc.list
  2527. -         if $contains socket libc.list >/dev/null 2>&1; then
  2528. -         echo "but the Wollongong group seems to have hacked it in."
  2529. -         socketlib="-lnet -lnsl_s"
  2530. -         val="$define"
  2531. -         : now check for advanced features
  2532. -         if $contains setsockopt libc.list >/dev/null 2>&1; then
  2533. -             val2="$undef"
  2534. -         else
  2535. -             echo "...using the old 4.1c interface, rather than 4.2"
  2536. -             val2="$define"
  2537. -         fi
  2538. -         else
  2539. -         echo "or even in libnet.a, which is peculiar."
  2540. -         val="$undef"
  2541. -         val2="$undef"
  2542. -         fi
  2543. -     else
  2544. -         echo "or anywhere else I see."
  2545. -         val="$undef"
  2546. -         val2="$undef"
  2547. -     fi
  2548. -     fi
  2549. - fi
  2550. - set d_socket
  2551. - eval $setvar
  2552.   
  2553. - if $contains socketpair libc.list >/dev/null 2>&1; then
  2554. -     val="$define"
  2555.   else
  2556. !     val="$undef"
  2557. ! fi
  2558. ! set d_sockpair
  2559. ! eval $setvar
  2560. ! val=$val2
  2561. ! set d_oldsock
  2562. ! eval $setvar
  2563. ! : Locate the flags for 'open()'
  2564. ! echo " "
  2565. ! $cat >open3.c <<'EOCP'
  2566. ! #include <sys/types.h>
  2567. ! #ifdef I_FCNTL
  2568. ! #include <fcntl.h>
  2569. ! #endif
  2570. ! #ifdef I_SYS_FILE
  2571. ! #include <sys/file.h>
  2572. ! #endif
  2573. ! main() {
  2574. !     if(O_RDONLY);
  2575. ! #ifdef O_TRUNC
  2576. !     exit(0);
  2577. ! #else
  2578. !     exit(1);
  2579. ! #endif
  2580.   }
  2581. - EOCP
  2582. - : check sys/file.h first to get FREAD on Sun
  2583. - if $test -r $usrinclude/sys/file.h && \
  2584. -    $cc $cppflags "-DI_SYS_FILE" open3.c -o open3 >/dev/null 2>&1 ; then
  2585. -     h_sys_file=true;
  2586. -     echo "sys/file.h defines the O_* constants..."
  2587. -     if ./open3; then
  2588. -     echo "and you have the 3 argument form of open()."
  2589. -     val="$define"
  2590. -     else
  2591. -     echo "but not the 3 argument form of open().  Oh, well."
  2592. -     val="$undef"
  2593. -     fi
  2594. - elif $test -r $usrinclude/fcntl.h && \
  2595. -    $cc "-DI_FCNTL" open3.c -o open3 >/dev/null 2>&1 ; then
  2596. -     h_fcntl=true;
  2597. -     echo "fcntl.h defines the O_* constants..."
  2598. -     if ./open3; then
  2599. -     echo "and you have the 3 argument form of open()."
  2600. -     val="$define"
  2601. -     else
  2602. -     echo "but not the 3 argument form of open().  Oh, well."
  2603. -     val="$undef"
  2604. -     fi
  2605. - else
  2606. -     val="$undef"
  2607. -     echo "I can't find the O_* constant definitions!  You got problems."
  2608. - fi
  2609. - set d_open3
  2610. - eval $setvar
  2611.   
  2612. - : see if how pwd stuff is defined
  2613. - echo " "
  2614. - if $test -r $usrinclude/pwd.h ; then
  2615. -     i_pwd="$define"
  2616. -     echo "pwd.h found."
  2617. -     $cppstdin $cppflags $cppminus <$usrinclude/pwd.h | \
  2618. -     sed -n '/struct[     ][     ]*passwd/,/^};/p' >pwd.txt
  2619. -     if $contains 'pw_quota' pwd.txt >/dev/null 2>&1; then
  2620. -     d_pwquota="$define"
  2621. -     else
  2622. -     d_pwquota="$undef"
  2623. -     fi
  2624. -     if $contains 'pw_age' pwd.txt >/dev/null 2>&1; then
  2625. -     d_pwage="$define"
  2626. -     else
  2627. -     d_pwage="$undef"
  2628. -     fi
  2629. -     if $contains 'pw_change' pwd.txt >/dev/null 2>&1; then
  2630. -     d_pwchange="$define"
  2631. -     else
  2632. -     d_pwchange="$undef"
  2633. -     fi
  2634. -     if $contains 'pw_class' pwd.txt >/dev/null 2>&1; then
  2635. -     d_pwclass="$define"
  2636. -     else
  2637. -     d_pwclass="$undef"
  2638. -     fi
  2639. -     if $contains 'pw_expire' pwd.txt >/dev/null 2>&1; then
  2640. -     d_pwexpire="$define"
  2641. -     else
  2642. -     d_pwexpire="$undef"
  2643. -     fi
  2644. -     if $contains 'pw_comment' pwd.txt >/dev/null 2>&1; then
  2645. -     d_pwcomment="$define"
  2646. -     else
  2647. -     d_pwcomment="$undef"
  2648. -     fi
  2649. - else
  2650. -     i_pwd="$undef"
  2651. -     d_pwquota="$undef"
  2652. -     d_pwage="$undef"
  2653. -     d_pwchange="$undef"
  2654. -     d_pwclass="$undef"
  2655. -     d_pwexpire="$undef"
  2656. -     d_pwcomment="$undef"
  2657. -     echo "No pwd.h found."
  2658. - fi
  2659. - : see if rename exists
  2660. - set rename d_rename
  2661. - eval $inlibc
  2662. - : see if rewindir exists
  2663. - set rewinddir d_rewindir
  2664. - eval $inlibc
  2665. - : see if rmdir exists
  2666. - set rmdir d_rmdir
  2667. - eval $inlibc
  2668. - : see if seekdir exists
  2669. - set seekdir d_seekdir
  2670. - eval $inlibc
  2671. - : see if select exists
  2672. - set select d_select
  2673. - eval $inlibc
  2674. - : see if semctl exists
  2675. - set semctl d_semctl
  2676. - eval $inlibc
  2677. - : see if semget exists
  2678. - set semget d_semget
  2679. - eval $inlibc
  2680. - : see if semop exists
  2681. - set semop d_semop
  2682. - eval $inlibc
  2683. - : see how much of the 'sem*(2)' library is present.
  2684. - h_sem=true
  2685. - echo " "
  2686. - case "$d_semctl$d_semget$d_semop" in
  2687. - *undef*) h_sem=false;;
  2688. - esac
  2689. - : we could also check for sys/ipc.h ...
  2690. - if $h_sem && $test -r $usrinclude/sys/sem.h; then
  2691. -     echo "You have the full sem*(2) library."
  2692. -     val="$define"
  2693. - else
  2694. -     echo "You don't have the full sem*(2) library."
  2695. -     val="$undef"
  2696.   fi
  2697. ! set d_sem
  2698. ! eval $setvar
  2699. ! : see if setegid exists
  2700. ! set setegid d_setegid
  2701. ! eval $inlibc
  2702. ! : see if seteuid exists
  2703. ! set seteuid d_seteuid
  2704. ! eval $inlibc
  2705. ! : see if setpgrp exists
  2706. ! set setpgrp d_setpgrp
  2707. ! eval $inlibc
  2708. ! : see if setpgrp2 exists
  2709. ! set setpgrp2 d_setpgrp2
  2710. ! eval $inlibc
  2711. ! : see if setpriority exists
  2712. ! set setpriority d_setprior
  2713. ! eval $inlibc
  2714. ! : see if setregid exists
  2715. ! set setregid d_setregid
  2716. ! eval $inlibc
  2717. ! set setresgid d_setresgid
  2718. ! eval $inlibc
  2719. ! : see if setreuid exists
  2720. ! set setreuid d_setreuid
  2721. ! eval $inlibc
  2722. ! set setresuid d_setresuid
  2723. ! eval $inlibc
  2724. ! : see if setrgid exists
  2725. ! set setrgid d_setrgid
  2726. ! eval $inlibc
  2727. ! : see if setruid exists
  2728. ! set setruid d_setruid
  2729. ! eval $inlibc
  2730. ! : see if shmctl exists
  2731. ! set shmctl d_shmctl
  2732. ! eval $inlibc
  2733. ! : see if shmget exists
  2734. ! set shmget d_shmget
  2735. ! eval $inlibc
  2736. ! : see if shmat exists
  2737. ! set shmat d_shmat
  2738. ! eval $inlibc
  2739. ! d_voidshmat="$undef"
  2740. ! case "$d_shmat" in
  2741. ! define)
  2742. !     $cppstdin $cppflags $cppminus < $usrinclude/sys/shm.h >voidshmat.txt 2>/dev/null
  2743. !     if $contains "void.*shmat" voidshmat.txt >/dev/null 2>&1; then
  2744. !     echo "and shmat returns (void*)"
  2745. !     d_voidshmat="$define"
  2746. !     else
  2747. !     echo "and shmat returns (char*)"
  2748. !     fi
  2749. !     ;;
  2750. ! esac
  2751.   
  2752. - : see if shmdt exists
  2753. - set shmdt d_shmdt
  2754. - eval $inlibc
  2755. - : see how much of the 'shm*(2)' library is present.
  2756. - h_shm=true
  2757. - echo " "
  2758. - case "$d_shmctl$d_shmget$d_shmat$d_shmdt" in
  2759. - *undef*) h_shm=false;;
  2760. - esac
  2761. - : we could also check for sys/ipc.h ...
  2762. - if $h_shm && $test -r $usrinclude/sys/shm.h; then
  2763. -     echo "You have the full shm*(2) library."
  2764. -     val="$define"
  2765. - else
  2766. -     echo "You don't have the full shm*(2) library."
  2767. -     val="$undef"
  2768. - fi
  2769. - set d_shm
  2770. - eval $setvar
  2771.   
  2772. ! : see if stat knows about block sizes
  2773. ! echo " "
  2774. ! if $contains 'st_blocks;' $usrinclude/sys/stat.h >/dev/null 2>&1 ; then
  2775. !     if $contains 'st_blksize;' $usrinclude/sys/stat.h >/dev/null 2>&1 ; then
  2776. !     echo "Your stat knows about block sizes."
  2777. !     val="$define"
  2778. !     else
  2779. !     echo "Your stat doesn't know about block sizes."
  2780. !     val="$undef"
  2781. !     fi
  2782.   else
  2783. !     echo "Your stat doesn't know about block sizes."
  2784. !     val="$undef"
  2785.   fi
  2786. - set d_statblks
  2787. - eval $setvar
  2788.   
  2789. - : see if stdio is really std
  2790. - echo " "
  2791. - if $contains 'char.*_ptr.*;' $usrinclude/stdio.h >/dev/null 2>&1 ; then
  2792. -     if $contains '_cnt;' $usrinclude/stdio.h >/dev/null 2>&1 ; then
  2793. -     echo "Your stdio is pretty std."
  2794. -     val="$define"
  2795. -     else
  2796. -     echo "Your stdio isn't very std."
  2797. -     val="$undef"
  2798. -     fi
  2799. - else
  2800. -     echo "Your stdio isn't very std."
  2801. -     val="$undef"
  2802. - fi
  2803. - set d_stdstdio
  2804. - eval $setvar
  2805.   
  2806. ! : check for structure copying
  2807. ! echo " "
  2808. ! echo "Checking to see if your C compiler can copy structs..."
  2809. ! $cat >strctcpy.c <<'EOCP'
  2810. ! main()
  2811. ! {
  2812. !     struct blurfl {
  2813. !         int dyick;
  2814. !     } foo, bar;
  2815.   
  2816. !     foo = bar;
  2817.   }
  2818. ! EOCP
  2819. ! if $cc -c strctcpy.c >/dev/null 2>&1 ; then
  2820. !     val="$define"
  2821. !     echo "Yup, it can."
  2822. ! else
  2823. !     val="$undef"
  2824. !     echo "Nope, it can't."
  2825.   fi
  2826. - set d_strctcpy
  2827. - eval $setvar
  2828.   
  2829. ! : see if strerror exists
  2830. ! set strerror d_strerror
  2831. ! eval $inlibc
  2832. ! : see if symlink exists
  2833. ! set symlink d_symlink
  2834. ! eval $inlibc
  2835. ! : see if syscall exists
  2836. ! set syscall d_syscall
  2837. ! eval $inlibc
  2838. ! : set if package uses struct tm
  2839. ! w_s_tm=1
  2840. ! : set if package uses struct timeval
  2841. ! case "$d_select" in
  2842. ! define) w_s_timevl=1 ;;
  2843. ! esac
  2844. ! : set if package uses localtime function
  2845. ! w_localtim=1
  2846. ! : see which of time.h, sys/time.h, and sys/select should be included.
  2847. ! idefs=''
  2848. ! cat <<'EOM'
  2849.     
  2850. - Testing to see which of <time.h>, <sys/time.h>, and <sys/select.h>
  2851. - should be included, because this application wants:
  2852. - EOM
  2853. - case "$w_s_itimer" in
  2854. - 1)
  2855. -     echo "    struct itimerval"
  2856. -     idefs="-DS_ITIMERVAL $idefs"
  2857. -     ;;
  2858. - esac
  2859. - case "$w_s_timevl" in
  2860. - 1)
  2861. -     echo "    struct timeval"
  2862. -     idefs="-DS_TIMEVAL $idefs"
  2863. -     ;;
  2864. - esac
  2865. - case "$w_s_tm" in
  2866. - 1)
  2867. -     echo "    struct tm"
  2868. -     idefs="-DS_TM $idefs"
  2869. -     ;;
  2870. - esac
  2871. - case "$w_localtim" in
  2872. - 1)
  2873. -     echo "    ctime(3) declarations"
  2874. -     idefs="-DD_CTIME $idefs"
  2875. -     ;;
  2876. - esac
  2877. - case "$idefs" in
  2878. - '')
  2879. -     echo "    (something I don't know about)"
  2880. -     ;;
  2881. - esac
  2882. - echo " "
  2883. - echo "I'm now running the test program..."
  2884. - $cat >i_time.c <<'EOCP'
  2885. - #include <sys/types.h>
  2886. - #ifdef I_TIME
  2887. - #include <time.h>
  2888. - #endif
  2889. - #ifdef I_SYS_TIME
  2890. - #ifdef SYSTIMEKERNEL
  2891. - #define KERNEL
  2892. - #endif
  2893. - #include <sys/time.h>
  2894. - #endif
  2895. - #ifdef I_SYS_SELECT
  2896. - #include <sys/select.h>
  2897. - #endif
  2898. - main()
  2899.   {
  2900. !     struct tm foo;
  2901. !     struct tm *tmp;
  2902. ! #ifdef S_TIMEVAL
  2903. !     struct timeval bar;
  2904. ! #endif
  2905. ! #ifdef S_ITIMERVAL
  2906. !     struct itimerval baz;
  2907. ! #endif
  2908. !     if (foo.tm_sec == foo.tm_sec)
  2909. !     exit(0);
  2910. ! #ifdef S_TIMEVAL
  2911. !     if (bar.tv_sec == bar.tv_sec)
  2912. !     exit(0);
  2913. ! #endif
  2914. ! #ifdef S_ITIMERVAL
  2915. !     if (baz.it_interval == baz.it_interval)
  2916. !     exit(0);
  2917. ! #endif
  2918. ! #ifdef S_TIMEVAL
  2919. !     if (bar.tv_sec == bar.tv_sec)
  2920. !     exit(0);
  2921. ! #endif
  2922. ! #ifdef D_CTIME
  2923. !     /* this might not do anything for us... */
  2924. !     tmp = localtime((time_t *)0);
  2925. ! #endif
  2926. !     exit(1);
  2927. ! }
  2928. ! EOCP
  2929. ! flags=''
  2930. ! for i_sys_select in '' '-DI_SYS_SELECT'; do
  2931. !     for d_systimekernel in '' '-DSYSTIMEKERNEL'; do
  2932. !     for i_time in '' '-DI_TIME'; do
  2933. !         for i_systime in '-DI_SYS_TIME' ''; do
  2934. !         case "$flags" in
  2935. !         '') echo Trying $i_time $i_systime $d_systimekernel $i_sys_select
  2936. !             if $cc $ccflags $idefs \
  2937. !                 $i_time $i_systime $d_systimekernel $i_sys_select \
  2938. !                 i_time.c -o i_time >/dev/null 2>&1 ; then
  2939. !             set X $i_time $i_systime $d_systimekernel $i_sys_select
  2940. !             shift
  2941. !             flags="$*"
  2942. !             echo Succeeded with $flags
  2943. !             fi
  2944. !             ;;
  2945. !         esac
  2946. !         done
  2947. !     done
  2948. !     done
  2949. ! done
  2950. ! case "$flags" in
  2951. ! *SYSTIMEKERNEL*) val="$define";;
  2952. ! *) val="$undef";;
  2953. ! esac
  2954. ! set d_systimekernel
  2955. ! eval $setvar
  2956. ! case "$flags" in
  2957. ! *I_TIME*) val="$define";;
  2958. ! *) val="$undef";;
  2959. ! esac
  2960. ! set i_time
  2961. ! eval $setvar
  2962. ! case "$flags" in
  2963. ! *I_SYS_SELECT*) val="$define";;
  2964. ! *) val="$undef";;
  2965. ! esac
  2966. ! set i_sys_select
  2967. ! eval $setvar
  2968. ! case "$flags" in
  2969. ! *I_SYS_TIME*) val="$define";;
  2970. ! *) val="$undef";;
  2971. ! esac
  2972. ! set i_sys_time
  2973. ! eval $setvar
  2974. ! case "$flags$i_sys_time$i_time" in
  2975. ! undefundef) i_sys_time="$define"; i_time="$define";
  2976. !     echo "ICK, NOTHING WORKED!!!  You may have to diddle the includes.";;
  2977. ! esac
  2978. ! : see if telldir exists
  2979. ! set telldir d_telldir
  2980. ! eval $inlibc
  2981. ! : see if signal is declared as pointer to function returning int or void
  2982. ! echo " "
  2983. ! $cppstdin $cppflags $cppminus < $usrinclude/signal.h >d_voidsig.txt
  2984. ! if $contains 'int[^A-Za-z]*signal' d_voidsig.txt >/dev/null 2>&1 ; then
  2985. !     echo "You have int (*signal())() instead of void."
  2986. !     val="$undef"
  2987. ! else
  2988. !     echo "You have void (*signal())() instead of int."
  2989. !     val="$define"
  2990. ! fi
  2991. ! set d_voidsig
  2992. ! eval $setvar
  2993. ! case $voidsig in
  2994. ! define) d_tosignal=void;;
  2995. ! *) d_tosignal=int;;
  2996. ! esac
  2997. ! : see if truncate exists
  2998. ! set truncate d_truncate
  2999. ! eval $inlibc
  3000. ! : see if there is a vfork
  3001. ! set vfork d_vfork
  3002. ! eval $inlibc
  3003. ! : check for volatile keyword
  3004. ! echo " "
  3005. ! echo 'Checking to see if your C compiler knows about "volatile"...'
  3006. ! $cat >try.c <<'EOCP'
  3007. ! main()
  3008. ! {
  3009. !     typedef unsigned short foo_t;
  3010. !     char *volatile foo;
  3011. !     volatile int bar;
  3012. !     volatile foo_t blech;
  3013. !     foo = foo;
  3014. ! }
  3015. ! EOCP
  3016. ! if $cc -c $ccflags try.c >/dev/null 2>&1 ; then
  3017. !     val="$define"
  3018. !     echo "Yup, it does."
  3019. ! else
  3020. !     val="$undef"
  3021. !     echo "Nope, it doesn't."
  3022. ! fi
  3023. ! set d_volatile
  3024. ! eval $setvar
  3025. ! $rm -f try.*
  3026. ! : see if there is a wait4
  3027. ! set wait4 d_wait4
  3028. ! eval $inlibc
  3029. ! : see if there is a waitpid
  3030. ! set waitpid d_waitpid
  3031. ! eval $inlibc
  3032. ! : see what type gids are declared as in the kernel
  3033. ! case "$gidtype" in
  3034. ! '')
  3035. !     if $contains 'gid_t;' $usrinclude/sys/types.h >/dev/null 2>&1 ; then
  3036. !     dflt='gid_t';
  3037. !     else
  3038. !     set `grep '_rgid;' $usrinclude/sys/user.h 2>/dev/null` unsigned short
  3039. !     case $1 in
  3040. !     unsigned) dflt="$1 $2" ;;
  3041. !     *) dflt="$1" ;;
  3042. !     esac
  3043. !     fi
  3044. !     ;;
  3045. ! *)  dflt="$gidtype"
  3046. !     ;;
  3047. ! esac
  3048. ! cont=true
  3049. ! echo " "
  3050. ! rp="What type are groups ids returned by getgid(), etc.? [$dflt]"
  3051. ! $echo $n "$rp $c"
  3052. ! . myread
  3053. ! gidtype="$ans"
  3054. ! : see what type gids are returned by getgroups
  3055. ! echo " "
  3056. ! case "$groupstype" in
  3057. ! '')
  3058. !     if $contains 'getgroups.*short' /usr/lib/lint/llib-lc >/dev/null 2>&1; then
  3059. !     dflt='short'
  3060. !     elif $contains 'getgroups.*int' /usr/lib/lint/llib-lc >/dev/null 2>&1; then
  3061. !     dflt='int'
  3062. !     elif $contains 'getgroups.*short' /usr/include/libc.h >/dev/null 2>&1; then
  3063. !     dflt='short'
  3064. !     elif $contains 'getgroups.*int' /usr/include/libc.h >/dev/null 2>&1; then
  3065. !     dflt='int'
  3066. !     elif $contains 'getgroups.*short' /usr/lib/lint/llib-lbsd >/dev/null 2>&1; then
  3067. !     dflt='short'
  3068. !     elif $contains 'getgroups.*int' /usr/lib/lint/llib-lbsd >/dev/null 2>&1; then
  3069. !     dflt='int'
  3070. !     elif $contains 'int.*gidset' /usr/man/man2/getgroups.2 >/dev/null 2>&1; then
  3071. !     dflt='int'
  3072. !     elif $contains 'gid_t;' $usrinclude/sys/types.h >/dev/null 2>&1 ; then
  3073. !     dflt='gid_t'
  3074. !     else
  3075. !     set `grep 'groups\[NGROUPS\];' $usrinclude/sys/user.h 2>/dev/null` unsigned short
  3076. !     case $1 in
  3077. !     unsigned) dflt="$1 $2" ;;
  3078. !     *) dflt="$1" ;;
  3079. !     esac
  3080. !     fi
  3081. !     ;;
  3082. ! *)  dflt="$groupstype"
  3083. !     ;;
  3084. ! esac
  3085. ! cont=true
  3086. ! echo "(The following only matters if you have getgroups().)"
  3087. ! rp="What type are the group ids returned by getgroups()? [$dflt]"
  3088. ! $echo $n "$rp $c"
  3089. ! . myread
  3090. ! groupstype="$ans"
  3091. ! : check for length of integer
  3092. ! echo " "
  3093. ! case "$intsize" in
  3094. ! '')
  3095. !     echo "Checking to see how big your integers are..."
  3096. !     $cat >intsize.c <<'EOCP'
  3097. ! #include <stdio.h>
  3098. ! main()
  3099. ! {
  3100. !     printf("%d\n", sizeof(int));
  3101.   }
  3102. - EOCP
  3103. -     if $cc intsize.c -o intsize >/dev/null 2>&1 ; then
  3104. -     dflt=`./intsize`
  3105. -     else
  3106. -     dflt='4'
  3107. -     echo "(I can't seem to compile the test program.  Guessing...)"
  3108. -     fi
  3109. -     ;;
  3110. - *)
  3111. -     dflt="$intsize"
  3112. -     ;;
  3113. - esac
  3114. - rp="What is the size of an integer (in bytes)? [$dflt]"
  3115. - $echo $n "$rp $c"
  3116. - . myread
  3117. - intsize="$ans"
  3118. - : determine where private executables go
  3119. - case "$privlib" in
  3120. - '')
  3121. -     dflt=/usr/lib/$package
  3122. -     test -d /usr/local/lib && dflt=/usr/local/lib/$package
  3123. -     ;;
  3124. - *)  dflt="$privlib"
  3125. -     ;;
  3126. - esac
  3127. - $cat <<EOM
  3128. - The $package package has some auxiliary files that should be reside in a library
  3129. - that is accessible by everyone.  Where should these "private" but accessible
  3130. - EOM
  3131. - $echo $n "files reside? (~name ok) [$dflt] $c"
  3132. - rp="Private files will reside where? [$dflt]"
  3133. - . myread
  3134. - privlib=`./filexp "$ans"`
  3135. - case "$installprivlib" in
  3136. - '')
  3137. -     dflt=`echo $privlib | sed 's#^/afs/#/afs/.#'`
  3138. -     test -d $dflt || dflt="$privlib"
  3139. -     ;;
  3140. - *)  dflt="$installprivlib"
  3141. -     ;;
  3142. - esac
  3143. - $cat <<EOM
  3144.   
  3145. - On some systems (such as afs) you have to install the library files in a
  3146. - different directory to get them to go to the right place.  Where should the
  3147. - EOM
  3148. - $echo $n "library files be installed? (~name ok) [$dflt] $c"
  3149. - rp="Install private files where? [$dflt]"
  3150. - . myread
  3151. - installprivlib=`./filexp "$ans"`
  3152. - : check for size of random number generator
  3153. - echo " "
  3154. - case "$randbits" in
  3155. - '')
  3156. -     echo "Checking to see how many bits your rand function produces..."
  3157. -     $cat >randbits.c <<'EOCP'
  3158. - #include <stdio.h>
  3159. - main()
  3160. - {
  3161. -     register int i;
  3162. -     register unsigned long tmp;
  3163. -     register unsigned long max = 0L;
  3164. -     for (i=1000; i; i--) {
  3165. -     tmp = (unsigned long)rand();
  3166. -     if (tmp > max) max = tmp;
  3167. -     }
  3168. -     for (i=0; max; i++)
  3169. -     max /= 2;
  3170. -     printf("%d\n",i);
  3171. - }
  3172. - EOCP
  3173. -     if $cc randbits.c -o randbits >/dev/null 2>&1 ; then
  3174. -     dflt=`./randbits`
  3175. -     else
  3176. -     dflt='?'
  3177. -     echo "(I can't seem to compile the test program...)"
  3178. -     fi
  3179. -     ;;
  3180. - *)
  3181. -     dflt="$randbits"
  3182. -     ;;
  3183. - esac
  3184. - rp="How many bits does your rand() function produce? [$dflt]"
  3185. - $echo $n "$rp $c"
  3186. - . myread
  3187. - randbits="$ans"
  3188. - : determine where publicly executable scripts go
  3189. - case "$scriptdir" in
  3190. - '')
  3191. -     dflt="$bin"
  3192. -     : guess some guesses
  3193. -     test -d /usr/share/scripts && dflt=/usr/share/scripts
  3194. -     test -d /usr/share/bin && dflt=/usr/share/bin
  3195. -     ;;
  3196. - *)  dflt="$scriptdir"
  3197. -     ;;
  3198. - esac
  3199. - cont=true
  3200. - $cat <<EOM
  3201. -  
  3202. - Some installations have a separate directory just for executable scripts so
  3203. - that they can mount it across multiple architectures but keep the scripts in
  3204. - one spot.  You might, for example, have a subdirectory of /usr/share for this.
  3205. - Or you might just lump your scripts in with all your other executables.
  3206. -  
  3207. - EOM
  3208. - while $test "$cont" ; do
  3209. -     rp="Where will publicly executable scripts reside (~name ok)? [$dflt]"
  3210. -     $echo $n "$rp $c"
  3211. -     . myread
  3212. -     scriptdir="$ans"
  3213. -     scriptdir=`./filexp "$scriptdir"`
  3214. -     if test -d $scriptdir; then
  3215. -     cont=''
  3216. -     else
  3217. -     case "$fastread" in
  3218. -     yes) dflt=y;;
  3219. -     *) dflt=n;;
  3220. -     esac
  3221. -     rp="Directory $scriptdir doesn't exist.  Use that name anyway? [$dflt]"
  3222. -     $echo $n "$rp $c"
  3223. -     . myread
  3224. -     dflt=''
  3225. -     case "$ans" in
  3226. -     y*) cont='';;
  3227. -     esac
  3228. -     fi
  3229. - done
  3230.   
  3231. ! case "$installscr" in
  3232. ! '')
  3233. !     dflt=`echo $scriptdir | sed 's#^/afs/#/afs/.#'`
  3234. !     test -d $dflt || dflt="$scriptdir"
  3235. !     ;;
  3236. ! *)  dflt="$scriptdir"
  3237. !     ;;
  3238. ! esac
  3239. ! cont=true
  3240. ! $cat <<EOM
  3241. !  
  3242. ! Some installations must install scripts in a different directory than where
  3243. ! they will eventually reside.  On most systems they're the same directory.
  3244. ! EOM
  3245. ! while $test "$cont" ; do
  3246. !     rp="Where do you install publicly executable scripts (~name ok)? [$dflt]"
  3247. !     $echo $n "$rp $c"
  3248. !     . myread
  3249. !     installscr="$ans"
  3250. !     installscr=`./filexp "$installscr"`
  3251. !     if test -d $installscr; then
  3252. !     cont=''
  3253. !     else
  3254. !     case "$fastread" in
  3255. !     yes) dflt=y;;
  3256. !     *) dflt=n;;
  3257. !     esac
  3258. !     rp="Directory $installscr doesn't exist.  Use that name anyway? [$dflt]"
  3259. !     $echo $n "$rp $c"
  3260. !     . myread
  3261. !     dflt=''
  3262. !     case "$ans" in
  3263. !     y*) cont='';;
  3264. !     esac
  3265. !     fi
  3266.   done
  3267.   
  3268. ! : generate list of signal names
  3269. ! echo " "
  3270. ! case "$sig_name" in
  3271. ! '')
  3272. !     echo "Generating a list of signal names..."
  3273. !     set X `cat $usrinclude/signal.h $usrinclude/sys/signal.h 2>&1 | awk '
  3274. ! $1 ~ /^#define$/ && $2 ~ /^SIG[A-Z0-9]*$/ && $3 ~ /^[1-9][0-9]*$/ {
  3275. !     sig[$3] = substr($2,4,20)
  3276. !     if (max < $3 && $3 < 60) {
  3277. !     max = $3
  3278. !     }
  3279. ! }
  3280.   
  3281. ! END {
  3282. !     for (i=1; i<=max; i++) {
  3283. !     if (sig[i] == "")
  3284. !         printf "%d", i
  3285. !     else
  3286. !         printf "%s", sig[i]
  3287. !     if (i < max)
  3288. !         printf " "
  3289. !     }
  3290. !     printf "\n"
  3291.   }
  3292. - '`
  3293. -     shift
  3294. -     case $# in
  3295. -     0)  echo 'kill -l' >/tmp/foo$$
  3296. -     set X `$csh -f </tmp/foo$$`
  3297. -     shift
  3298. -     case $# in
  3299. -     0)set HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM
  3300. -         ;;
  3301. -     esac
  3302. -     ;;
  3303. -     esac
  3304. -     sig_name="ZERO $*"
  3305. -     ;;
  3306. - esac
  3307. - echo "Signals are: $sig_name"
  3308.   
  3309. ! : see what type of char stdio uses.
  3310. ! echo " "
  3311. ! if $contains 'unsigned.*char.*\*.*_ptr.*;' $usrinclude/stdio.h >/dev/null 2>&1 ; then
  3312. !     echo "Your stdio uses unsigned chars."
  3313. !     stdchar="unsigned char"
  3314. ! else
  3315. !     echo "Your stdio uses signed chars."
  3316. !     stdchar="char"
  3317.   fi
  3318.   
  3319. - : see what type uids are declared as in the kernel
  3320. - case "$uidtype" in
  3321. - '')
  3322. -     if $contains 'uid_t;' $usrinclude/sys/types.h >/dev/null 2>&1 ; then
  3323. -     dflt='uid_t';
  3324. -     else
  3325. -     set `grep '_ruid;' $usrinclude/sys/user.h 2>/dev/null` unsigned short
  3326. -     case $1 in
  3327. -     unsigned) dflt="$1 $2" ;;
  3328. -     *) dflt="$1" ;;
  3329. -     esac
  3330. -     fi
  3331. -     ;;
  3332. - *)  dflt="$uidtype"
  3333. -     ;;
  3334. - esac
  3335. - cont=true
  3336. - echo " "
  3337. - rp="What type are user ids returned by getuid(), etc.? [$dflt]"
  3338. - $echo $n "$rp $c"
  3339. - . myread
  3340. - uidtype="$ans"
  3341. - : check for void type
  3342. - echo " "
  3343. - $cat <<EOM
  3344. - Checking to see how well your C compiler groks the void type...
  3345. -   Support flag bits are:
  3346. -     1: basic void declarations.
  3347. -     2: arrays of pointers to functions returning void.
  3348. -     4: operations between pointers to and addresses of void functions.
  3349. - EOM
  3350. - case "$voidhave" in
  3351. - '')
  3352. -     $cat >void.c <<'EOCP'
  3353. - #if TRY & 1
  3354. - void main() {
  3355. - #else
  3356. - main() {
  3357. - #endif
  3358. -     extern void moo();    /* function returning void */
  3359. -     void (*goo)();        /* ptr to func returning void */
  3360. - #if TRY & 2
  3361. -     void (*foo[10])();
  3362. - #endif
  3363.   
  3364. ! #if TRY & 4
  3365. !     if(goo == moo) {
  3366. !         exit(0);
  3367. !     }
  3368. ! #endif
  3369. !     exit(0);
  3370. ! }
  3371. ! EOCP
  3372. !     if $cc -c -DTRY=$voidwant void.c >void.out 2>&1 ; then
  3373. !     voidhave=$voidwant
  3374. !     echo "It appears to support void to the level $package wants ($voidwant)."
  3375. !     if $contains warning void.out >/dev/null 2>&1; then
  3376. !         echo "However, you might get some warnings that look like this:"
  3377. !         $cat void.out
  3378. !     fi
  3379. !     else
  3380. !     echo "Hmm, your compiler has some difficulty with void.  Checking further..."
  3381. !     if $cc -c -DTRY=1 void.c >/dev/null 2>&1 ; then
  3382. !         echo "It supports 1..."
  3383. !         if $cc -c -DTRY=3 void.c >/dev/null 2>&1 ; then
  3384. !         voidhave=3
  3385. !         echo "And it supports 2 but not 4."
  3386. !         else
  3387. !         echo "It doesn't support 2..."
  3388. !         if $cc -c -DTRY=5 void.c >/dev/null 2>&1 ; then
  3389. !             voidhave=5
  3390. !             echo "But it supports 4."
  3391. !         else
  3392. !             voidhave=1
  3393. !             echo "And it doesn't support 4."
  3394. !         fi
  3395. !         fi
  3396. !     else
  3397. !         echo "There is no support at all for void."
  3398. !         voidhave=0
  3399. !     fi
  3400. !     fi
  3401. ! esac
  3402. ! dflt="$voidhave";
  3403. ! rp="Your void support flags add up to what? [$dflt]"
  3404. ! $echo $n "$rp $c"
  3405. ! . myread
  3406. ! voidhave="$ans"
  3407. ! : preserve RCS keywords in files with variable substitution, grrr
  3408. ! Log='$Log'
  3409. ! Header='$Header'
  3410. ! Id='$Id'
  3411. ! Author='$Author'
  3412. ! Date='$Date'
  3413. ! Locker='$Locker'
  3414. ! RCSfile='$RCSfile'
  3415. ! Revision='$Revision'
  3416. ! Source='$Source'
  3417. ! State='$State'
  3418. ! : determine compiler compiler
  3419. ! case "$yacc" in
  3420. ! '') if xenix; then
  3421. !     dflt=yacc
  3422. !     else
  3423. !     dflt='yacc -Sm25000'
  3424. !     fi
  3425. !     ;;
  3426. ! *)  dflt="$yacc";;
  3427. ! esac
  3428. ! cont=true
  3429. !     echo " "
  3430. ! rp="Which compiler compiler (yacc or bison -y) will you use? [$dflt]"
  3431. ! $echo $n "$rp $c"
  3432. ! . myread
  3433. ! case "$ans" in
  3434. ! '') ans="$dflt";;
  3435. ! esac
  3436. ! yacc="$ans"
  3437. ! : see if we can include fcntl.h
  3438. ! echo " "
  3439. ! if $h_fcntl; then
  3440. !     val="$define"
  3441. !     echo "We'll be including <fcntl.h>."
  3442. ! else
  3443. !     val="$undef"
  3444. !     if $h_sys_file; then
  3445. !     echo "We don't need to <fcntl.h> if we include <sys/file.h>."
  3446. !     else
  3447. !     echo "We won't be including <fcntl.h>."
  3448. !     fi
  3449.   fi
  3450. ! set i_fcntl
  3451. ! eval $setvar
  3452. ! : see if gdbm is available
  3453. ! echo " "
  3454. ! xxx=`./loc gdbm.h x $usrinclude /usr/local/include $inclwanted`
  3455. ! if test -f $xxx; then
  3456. !     val="$define"
  3457. !     echo "gdbm.h found."
  3458. ! else
  3459. !     val="$undef"
  3460. !     echo "gdbm.h NOT found."
  3461.   fi
  3462. ! set i_gdbm
  3463. ! eval $setvar
  3464. ! : see if this is an grp system
  3465. ! echo " "
  3466. ! if $test -r $usrinclude/grp.h ; then
  3467. !     val="$define"
  3468. !     echo "grp.h found."
  3469. ! else
  3470. !     val="$undef"
  3471. !     echo "No grp.h found."
  3472.   fi
  3473. - set i_grp
  3474. - eval $setvar
  3475.   
  3476. ! : see if this is a netinet/in.h or sys/in.h system
  3477. ! echo " "
  3478. ! xxx=`./loc netinet/in.h x $usrinclude /usr/local/include $inclwanted`
  3479. ! if test -f $xxx; then
  3480. !     val="$define"
  3481. !     val2="$undef"
  3482. !     echo "netinet/in.h found."
  3483. ! else
  3484. !     val="$undef"
  3485. !     echo "No netinet/in.h found, ..."
  3486. !     xxx=`./loc sys/in.h x $usrinclude /usr/local/include $inclwanted`
  3487. !     if test -f $xxx; then
  3488. !     val2="$define"
  3489. !     echo "but I found sys/in.h instead."
  3490. !     else
  3491. !     val2="$undef"
  3492. !     echo "and I didn't find sys/in.h either."
  3493. !     fi
  3494. ! fi
  3495. ! set i_niin
  3496. ! eval $setvar
  3497. ! val=$val2
  3498. ! set i_sysin
  3499. ! eval $setvar
  3500. ! : Do we need to #include <sys/file.h> ?
  3501. ! echo " "
  3502. ! if $h_sys_file; then
  3503. !     val="$define"
  3504. !     echo "We'll be including <sys/file.h>."
  3505. ! else
  3506. !     val="$undef"
  3507. !     echo "We won't be including <sys/file.h>."
  3508. ! fi
  3509. ! set i_sys_file
  3510. ! eval $setvar
  3511.   
  3512. ! : see if ioctl defs are in sgtty/termio or sys/ioctl
  3513. ! echo " "
  3514. ! if $test -r $usrinclude/sys/ioctl.h ; then
  3515. !     val="$define"
  3516. !     echo "sys/ioctl.h found."
  3517. ! else
  3518. !     val="$undef"
  3519. !     echo "sys/ioctl.h NOT found, assuming ioctl args are defined in sgtty.h."
  3520. ! fi
  3521. ! set i_sysioctl
  3522. ! eval $setvar
  3523.   
  3524. ! : see if we should include utime.h
  3525. ! echo " "
  3526. ! if $test -r $usrinclude/utime.h ; then
  3527. !     val="$define"
  3528. !     echo "utime.h found."
  3529. ! else
  3530. !     val="$undef"
  3531. !     echo "No utime.h found, but that's ok."
  3532. ! fi
  3533. ! set i_utime
  3534. ! eval $setvar
  3535.   
  3536. ! : see if this is a varargs system
  3537. ! echo " "
  3538. ! if $test -r $usrinclude/varargs.h ; then
  3539. !     val="$define"
  3540. !     echo "varargs.h found."
  3541. ! else
  3542. !     val="$undef"
  3543. !     echo "No varargs.h found, but that's ok (I hope)."
  3544. ! fi
  3545. ! set i_varargs
  3546. ! eval $setvar
  3547.   
  3548. ! : see if this is a vfork system
  3549. ! echo " "
  3550. ! if $test -r $usrinclude/vfork.h ; then
  3551. !     val="$define"
  3552. !     echo "vfork.h found."
  3553. ! else
  3554. !     val="$undef"
  3555. !     echo "No vfork.h found."
  3556. ! fi
  3557. ! set i_vfork
  3558. ! eval $setvar
  3559.   
  3560. ! : end of configuration questions
  3561. ! echo " "
  3562. ! echo "End of configuration questions."
  3563. ! echo " "
  3564. ! : create config.sh file
  3565. ! echo " "
  3566. ! if test -d ../UU; then
  3567. !     cd ..
  3568. ! fi
  3569. ! echo "Creating config.sh..."
  3570. ! test -f config.sh && cp config.sh UU/oldconfig.sh
  3571. ! $spitshell <<EOT >config.sh
  3572. ! $startsh
  3573. ! # config.sh
  3574. ! # This file was produced by running the Configure script.
  3575. ! d_eunice='$d_eunice'
  3576. ! define='$define'
  3577. ! eunicefix='$eunicefix'
  3578. ! loclist='$loclist'
  3579. ! expr='$expr'
  3580. ! sed='$sed'
  3581. ! echo='$echo'
  3582. ! cat='$cat'
  3583. ! rm='$rm'
  3584. ! mv='$mv'
  3585. ! cp='$cp'
  3586. ! tail='$tail'
  3587. ! tr='$tr'
  3588. ! mkdir='$mkdir'
  3589. ! sort='$sort'
  3590. ! uniq='$uniq'
  3591. ! grep='$grep'
  3592. ! trylist='$trylist'
  3593. ! test='$test'
  3594. ! inews='$inews'
  3595. ! egrep='$egrep'
  3596. ! more='$more'
  3597. ! pg='$pg'
  3598. ! Mcc='$Mcc'
  3599. ! vi='$vi'
  3600. ! mailx='$mailx'
  3601. ! mail='$mail'
  3602. ! cpp='$cpp'
  3603. ! perl='$perl'
  3604. ! emacs='$emacs'
  3605. ! ls='$ls'
  3606. ! rmail='$rmail'
  3607. ! sendmail='$sendmail'
  3608. ! shar='$shar'
  3609. ! smail='$smail'
  3610. ! tbl='$tbl'
  3611. ! troff='$troff'
  3612. ! nroff='$nroff'
  3613. ! uname='$uname'
  3614. ! uuname='$uuname'
  3615. ! line='$line'
  3616. ! chgrp='$chgrp'
  3617. ! chmod='$chmod'
  3618. ! lint='$lint'
  3619. ! sleep='$sleep'
  3620. ! pr='$pr'
  3621. ! tar='$tar'
  3622. ! ln='$ln'
  3623. ! lpr='$lpr'
  3624. ! lp='$lp'
  3625. ! touch='$touch'
  3626. ! make='$make'
  3627. ! date='$date'
  3628. ! csh='$csh'
  3629. ! bash='$bash'
  3630. ! ksh='$ksh'
  3631. ! lex='$lex'
  3632. ! flex='$flex'
  3633. ! bison='$bison'
  3634. ! Log='$Log'
  3635. ! Header='$Header'
  3636. ! Id='$Id'
  3637. ! lastuname='$lastuname'
  3638. ! alignbytes='$alignbytes'
  3639. ! bin='$bin'
  3640. ! installbin='$installbin'
  3641. ! byteorder='$byteorder'
  3642. ! contains='$contains'
  3643. ! cppstdin='$cppstdin'
  3644. ! cppminus='$cppminus'
  3645. ! d_bcmp='$d_bcmp'
  3646. ! d_bcopy='$d_bcopy'
  3647. ! d_safebcpy='$d_safebcpy'
  3648. ! d_bzero='$d_bzero'
  3649. ! d_castneg='$d_castneg'
  3650. ! castflags='$castflags'
  3651. ! d_charsprf='$d_charsprf'
  3652. ! d_chsize='$d_chsize'
  3653. ! d_crypt='$d_crypt'
  3654. ! cryptlib='$cryptlib'
  3655. ! d_csh='$d_csh'
  3656. ! d_dosuid='$d_dosuid'
  3657. ! d_dup2='$d_dup2'
  3658. ! d_fchmod='$d_fchmod'
  3659. ! d_fchown='$d_fchown'
  3660. ! d_fcntl='$d_fcntl'
  3661. ! d_flexfnam='$d_flexfnam'
  3662. ! d_flock='$d_flock'
  3663. ! d_getgrps='$d_getgrps'
  3664. ! d_gethent='$d_gethent'
  3665. ! d_getpgrp='$d_getpgrp'
  3666. ! d_getpgrp2='$d_getpgrp2'
  3667. ! d_getprior='$d_getprior'
  3668. ! d_htonl='$d_htonl'
  3669. ! d_index='$d_index'
  3670. ! d_isascii='$d_isascii'
  3671. ! d_killpg='$d_killpg'
  3672. ! d_lstat='$d_lstat'
  3673. ! d_memcmp='$d_memcmp'
  3674. ! d_memcpy='$d_memcpy'
  3675. ! d_safemcpy='$d_safemcpy'
  3676. ! d_memmove='$d_memmove'
  3677. ! d_memset='$d_memset'
  3678. ! d_mkdir='$d_mkdir'
  3679. ! d_msg='$d_msg'
  3680. ! d_msgctl='$d_msgctl'
  3681. ! d_msgget='$d_msgget'
  3682. ! d_msgrcv='$d_msgrcv'
  3683. ! d_msgsnd='$d_msgsnd'
  3684. ! d_ndbm='$d_ndbm'
  3685. ! d_odbm='$d_odbm'
  3686. ! d_open3='$d_open3'
  3687. ! d_readdir='$d_readdir'
  3688. ! d_rename='$d_rename'
  3689. ! d_rewindir='$d_rewindir'
  3690. ! d_rmdir='$d_rmdir'
  3691. ! d_seekdir='$d_seekdir'
  3692. ! d_select='$d_select'
  3693. ! d_sem='$d_sem'
  3694. ! d_semctl='$d_semctl'
  3695. ! d_semget='$d_semget'
  3696. ! d_semop='$d_semop'
  3697. ! d_setegid='$d_setegid'
  3698. ! d_seteuid='$d_seteuid'
  3699. ! d_setpgrp='$d_setpgrp'
  3700. ! d_setpgrp2='$d_setpgrp2'
  3701. ! d_setprior='$d_setprior'
  3702. ! d_setregid='$d_setregid'
  3703. ! d_setresgid='$d_setresgid'
  3704. ! d_setreuid='$d_setreuid'
  3705. ! d_setresuid='$d_setresuid'
  3706. ! d_setrgid='$d_setrgid'
  3707. ! d_setruid='$d_setruid'
  3708. ! d_shm='$d_shm'
  3709. ! d_shmat='$d_shmat'
  3710. ! d_voidshmat='$d_voidshmat'
  3711. ! d_shmctl='$d_shmctl'
  3712. ! d_shmdt='$d_shmdt'
  3713. ! d_shmget='$d_shmget'
  3714. ! d_socket='$d_socket'
  3715. ! d_sockpair='$d_sockpair'
  3716. ! d_oldsock='$d_oldsock'
  3717. ! socketlib='$socketlib'
  3718. ! d_statblks='$d_statblks'
  3719. ! d_stdstdio='$d_stdstdio'
  3720. ! d_strctcpy='$d_strctcpy'
  3721. ! d_strerror='$d_strerror'
  3722. ! d_symlink='$d_symlink'
  3723. ! d_syscall='$d_syscall'
  3724. ! d_telldir='$d_telldir'
  3725. ! d_truncate='$d_truncate'
  3726. ! d_vfork='$d_vfork'
  3727. ! d_voidsig='$d_voidsig'
  3728. ! d_tosignal='$d_tosignal'
  3729. ! d_volatile='$d_volatile'
  3730. ! d_vprintf='$d_vprintf'
  3731. ! d_charvspr='$d_charvspr'
  3732. ! d_wait4='$d_wait4'
  3733. ! d_waitpid='$d_waitpid'
  3734. ! gidtype='$gidtype'
  3735. ! groupstype='$groupstype'
  3736. ! i_fcntl='$i_fcntl'
  3737. ! i_gdbm='$i_gdbm'
  3738. ! i_grp='$i_grp'
  3739. ! i_niin='$i_niin'
  3740. ! i_sysin='$i_sysin'
  3741. ! i_pwd='$i_pwd'
  3742. ! d_pwquota='$d_pwquota'
  3743. ! d_pwage='$d_pwage'
  3744. ! d_pwchange='$d_pwchange'
  3745. ! d_pwclass='$d_pwclass'
  3746. ! d_pwexpire='$d_pwexpire'
  3747. ! d_pwcomment='$d_pwcomment'
  3748. ! i_sys_file='$i_sys_file'
  3749. ! i_sysioctl='$i_sysioctl'
  3750. ! i_time='$i_time'
  3751. ! i_sys_time='$i_sys_time'
  3752. ! i_sys_select='$i_sys_select'
  3753. ! d_systimekernel='$d_systimekernel'
  3754. ! i_utime='$i_utime'
  3755. ! i_varargs='$i_varargs'
  3756. ! i_vfork='$i_vfork'
  3757. ! intsize='$intsize'
  3758. ! libc='$libc'
  3759. ! nm_opts='$nm_opts'
  3760. ! libndir='$libndir'
  3761. ! i_my_dir='$i_my_dir'
  3762. ! i_ndir='$i_ndir'
  3763. ! i_sys_ndir='$i_sys_ndir'
  3764. ! i_dirent='$i_dirent'
  3765. ! i_sys_dir='$i_sys_dir'
  3766. ! d_dirnamlen='$d_dirnamlen'
  3767. ! ndirc='$ndirc'
  3768. ! ndiro='$ndiro'
  3769. ! mallocsrc='$mallocsrc'
  3770. ! mallocobj='$mallocobj'
  3771. ! d_mymalloc='$d_mymalloc'
  3772. ! mallocptrtype='$mallocptrtype'
  3773. ! mansrc='$mansrc'
  3774. ! manext='$manext'
  3775. ! models='$models'
  3776. ! split='$split'
  3777. ! small='$small'
  3778. ! medium='$medium'
  3779. ! large='$large'
  3780. ! huge='$huge'
  3781. ! optimize='$optimize'
  3782. ! ccflags='$ccflags'
  3783. ! cppflags='$cppflags'
  3784. ! ldflags='$ldflags'
  3785. ! cc='$cc'
  3786. ! nativegcc='$nativegcc'
  3787. ! libs='$libs'
  3788. ! n='$n'
  3789. ! c='$c'
  3790. ! package='$package'
  3791. ! randbits='$randbits'
  3792. ! scriptdir='$scriptdir'
  3793. ! installscr='$installscr'
  3794. ! sig_name='$sig_name'
  3795. ! spitshell='$spitshell'
  3796. ! shsharp='$shsharp'
  3797. ! sharpbang='$sharpbang'
  3798. ! startsh='$startsh'
  3799. ! stdchar='$stdchar'
  3800. ! uidtype='$uidtype'
  3801. ! usrinclude='$usrinclude'
  3802. ! inclPath='$inclPath'
  3803. ! void='$void'
  3804. ! voidhave='$voidhave'
  3805. ! voidwant='$voidwant'
  3806. ! w_localtim='$w_localtim'
  3807. ! w_s_timevl='$w_s_timevl'
  3808. ! w_s_tm='$w_s_tm'
  3809. ! yacc='$yacc'
  3810. ! lib='$lib'
  3811. ! privlib='$privlib'
  3812. ! installprivlib='$installprivlib'
  3813. ! EOT
  3814. ! test -f patchlevel.h && awk '{printf "%s=%s\n",$2,$3}' patchlevel.h >>config.sh
  3815. ! echo "CONFIG=true" >>config.sh
  3816. ! if test -f UU/oldconfig.sh; then
  3817. !     sed -n 's/^\([a-zA-Z_0-9]*\)=.*/\1/p' config.sh config.sh UU/oldconfig.sh |\
  3818. !       sort | uniq -u >UU/oldsyms
  3819. !     set X `cat UU/oldsyms`
  3820. !     shift
  3821. !     case $# in
  3822. !     0) ;;
  3823. !     *)  echo "Hmm...You had some extra variables I don't know about...I'll try to keep 'em..."
  3824. !     for sym in `cat UU/oldsyms`; do
  3825. !         echo "    Propagating $hint variable "'$'"$sym..."
  3826. !         eval 'tmp="$'"${sym}"'"'
  3827. !         echo "$tmp" | \
  3828. !           sed -e "s/'/'\"'\"'/g" -e "s/^/$sym='/" -e "s/$/'/" >>config.sh
  3829. !     done
  3830. !     ;;
  3831. !     esac
  3832. ! fi
  3833.   
  3834. ! : Finish up
  3835. ! CONFIG=true
  3836.   
  3837. - echo " "
  3838. - dflt=''
  3839. - fastread=''
  3840. - echo "If you didn't make any mistakes, then just type a carriage return here."
  3841. - rp="If you need to edit config.sh, do it as a shell escape here:"
  3842. - $echo $n "$rp $c"
  3843. - . UU/myread
  3844. - case "$ans" in
  3845. - '') ;;
  3846. - *) : in case they cannot read
  3847. -     eval $ans;;
  3848. - esac
  3849. - chmod +x doSH
  3850. - ./doSH
  3851. - if $contains '^depend:' [Mm]akefile >/dev/null 2>&1; then
  3852. -     dflt=n
  3853. -     $cat <<EOM
  3854. - Now you need to generate make dependencies by running "make depend".
  3855. - You might prefer to run it in background: "make depend > makedepend.out &"
  3856. - It can take a while, so you might not want to run it right now.
  3857. - EOM
  3858. -     rp="Run make depend now? [$dflt]"
  3859. -     $echo $n "$rp $c"
  3860. -     . UU/myread
  3861. -     case "$ans" in
  3862. -     y*) make depend && echo "Now you must run a make."
  3863. -     ;;
  3864. -     *)  echo "You must run 'make depend' then 'make'."
  3865. -     ;;
  3866. -     esac
  3867. - elif test -f [Mm]akefile; then
  3868. -     echo " "
  3869. -     echo "Now you must run a make."
  3870. - else
  3871. -     echo "Done."
  3872. - fi
  3873.   
  3874. ! $rm -f kit*isdone
  3875. ! $rm -rf UU
  3876. ! : end of Configure
  3877. --- 1,900 ----
  3878. ! #!/bin/sh
  3879. ! # Guess values for system-dependent variables and create Makefiles.
  3880. ! # Generated automatically using autoconf version 1.9 
  3881. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  3882. ! # This configure script is free software; you can redistribute it and/or
  3883. ! # modify it under the terms of the GNU General Public License as published
  3884. ! # by the Free Software Foundation; either version 2, or (at your option)
  3885. ! # any later version.
  3886. ! # This script is distributed in the hope that it will be useful, but
  3887. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  3888. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  3889. ! # Public License for more details.
  3890. ! # You should have received a copy of the GNU General Public License
  3891. ! # along with this program; if not, write to the Free Software
  3892. ! # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  3893. ! # Save the original args to write them into config.status later.
  3894. ! configure_args="$*"
  3895. ! # Only options that might do something get documented.
  3896. ! ac_usage="Usage: configure [options] [host]
  3897. ! Options: [defaults in brackets after descriptions]
  3898. ! --build=BUILD        configure for building on BUILD [BUILD=HOST]
  3899. ! --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  3900. ! --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  3901. ! --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  3902. ! --help            print this message
  3903. ! --host=HOST        configure for HOST [guessed]
  3904. ! --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  3905. ! --quiet, --silent    do not print \`checking for...' messages
  3906. ! --srcdir=DIR        find the sources in DIR [configure dir or ..]
  3907. ! --target=TARGET        configure for TARGET [TARGET=HOST]
  3908. ! --verbose        print results of checks
  3909. ! --version        print the version of autoconf that created configure
  3910. ! --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  3911. ! --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  3912. ! --x-includes=DIR    X include files are in DIR
  3913. ! --x-libraries=DIR    X library files are in DIR"
  3914. ! # Initialize some variables set by options.
  3915. ! # The variables have the same names as the options, with
  3916. ! # dashes changed to underlines.
  3917. ! build=NONE
  3918. ! exec_prefix=
  3919. ! host=NONE
  3920. ! no_create=
  3921. ! nonopt=NONE
  3922. ! norecursion=
  3923. ! prefix=
  3924. ! program_prefix=
  3925. ! program_suffix=
  3926. ! program_transform_name=
  3927. ! silent=
  3928. ! srcdir=
  3929. ! target=NONE
  3930. ! verbose=
  3931. ! x_includes=
  3932. ! x_libraries=
  3933. ! ac_prev=
  3934. ! for ac_option
  3935. ! do
  3936. !   # If the previous option needs an argument, assign it.
  3937. !   if test -n "$ac_prev"; then
  3938. !     eval "$ac_prev=\$ac_option"
  3939. !     ac_prev=
  3940. !     continue
  3941. !   fi
  3942. !   # Accept (but ignore some of) the important Cygnus configure
  3943. !   # options, so we can diagnose typos.
  3944. !   case "$ac_option" in
  3945. !   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  3946. !   *) ac_optarg= ;;
  3947. !   esac
  3948. !   case "$ac_option" in
  3949. !   -build | --build | --buil | --bui | --bu | --b)
  3950. !     ac_prev=build ;;
  3951. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  3952. !     build="$ac_optarg" ;;
  3953. !   -disable-* | --disable-*)
  3954. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  3955. !     # Reject names that aren't valid shell variable names.
  3956. !     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  3957. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  3958. !     fi
  3959. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  3960. !     eval "enable_${ac_feature}=no" ;;
  3961. !   -enable-* | --enable-*)
  3962. !     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  3963. !     # Reject names that aren't valid shell variable names.
  3964. !     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  3965. !       /bin/echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  3966. !     fi
  3967. !     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  3968. !     case "$ac_option" in
  3969. !       *=*) ;;
  3970. !       *) ac_optarg=yes ;;
  3971. !     esac
  3972. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  3973. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  3974. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  3975. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  3976. !   | --exec | --exe | --ex)
  3977. !     ac_prev=exec_prefix ;;
  3978. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  3979. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  3980. !   | --exec=* | --exe=* | --ex=*)
  3981. !     exec_prefix="$ac_optarg" ;;
  3982. !   -gas | --gas | --ga | --g)
  3983. !     with_gas=yes ;; # Obsolete; use --with-gas.
  3984. !   -help | --help | --hel | --he)
  3985. !     cat << EOF
  3986. ! $ac_usage
  3987.   EOF
  3988. !     exit 0 ;;
  3989.   
  3990. +   -host | --host | --hos | --ho)
  3991. +     ac_prev=host ;;
  3992. +   -host=* | --host=* | --hos=* | --ho=*)
  3993. +     host="$ac_optarg" ;;
  3994. +   -nfp | --nfp | --nf)
  3995. +     with_fp=no ;; # Obsolete; use --without-fp.
  3996. +   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  3997. +   | --no-cr | --no-c)
  3998. +     no_create=yes ;;
  3999. +   -norecursion | --norecursion | --norecursio | --norecursi \
  4000. +   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  4001. +     norecursion=yes ;;
  4002. +   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  4003. +     ac_prev=prefix ;;
  4004. +   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  4005. +     prefix="$ac_optarg" ;;
  4006. +   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  4007. +   | --program-pre | --program-pr | --program-p)
  4008. +     ac_prev=program_prefix ;;
  4009. +   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  4010. +   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  4011. +     program_prefix="$ac_optarg" ;;
  4012. +   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  4013. +   | --program-suf | --program-su | --program-s)
  4014. +     ac_prev=program_suffix ;;
  4015. +   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  4016. +   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  4017. +     program_suffix="$ac_optarg" ;;
  4018. +   -program-transform-name | --program-transform-name \
  4019. +   | --program-transform-nam | --program-transform-na \
  4020. +   | --program-transform-n | --program-transform- \
  4021. +   | --program-transform | --program-transfor \
  4022. +   | --program-transfo | --program-transf \
  4023. +   | --program-trans | --program-tran \
  4024. +   | --progr-tra | --program-tr | --program-t)
  4025. +     ac_prev=program_transform_name ;;
  4026. +   -program-transform-name=* | --program-transform-name=* \
  4027. +   | --program-transform-nam=* | --program-transform-na=* \
  4028. +   | --program-transform-n=* | --program-transform-=* \
  4029. +   | --program-transform=* | --program-transfor=* \
  4030. +   | --program-transfo=* | --program-transf=* \
  4031. +   | --program-trans=* | --program-tran=* \
  4032. +   | --progr-tra=* | --program-tr=* | --program-t=*)
  4033. +     program_transform_name="$ac_optarg" ;;
  4034. +   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4035. +   | -silent | --silent | --silen | --sile | --sil)
  4036. +     silent=yes ;;
  4037. +   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  4038. +     ac_prev=srcdir ;;
  4039. +   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  4040. +     srcdir="$ac_optarg" ;;
  4041. +   -target | --target | --targe | --targ | --tar | --ta | --t)
  4042. +     ac_prev=target ;;
  4043. +   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  4044. +     target="$ac_optarg" ;;
  4045. +   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  4046. +     verbose=yes ;;
  4047. +   -version | --version | --versio | --versi | --vers)
  4048. +     /bin/echo "configure generated by autoconf version 1.9"
  4049. +     exit 0 ;;
  4050. +   -with-* | --with-*)
  4051. +     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  4052. +     # Reject names that aren't valid shell variable names.
  4053. +     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  4054. +       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  4055. +     fi
  4056. +     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  4057. +     case "$ac_option" in
  4058. +       *=*) ;;
  4059. +       *) ac_optarg=yes ;;
  4060. +     esac
  4061. +     eval "with_${ac_package}='$ac_optarg'" ;;
  4062. +   -without-* | --without-*)
  4063. +     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  4064. +     # Reject names that aren't valid shell variable names.
  4065. +     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  4066. +       /bin/echo "configure: $ac_package: invalid package name" >&2; exit 1
  4067. +     fi
  4068. +     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  4069. +     eval "with_${ac_package}=no" ;;
  4070. +   --x) with_x=yes ;; # Obsolete; use --with-x.
  4071. +   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  4072. +   | --x-incl | --x-inc | --x-in | --x-i)
  4073. +     ac_prev=x_includes ;;
  4074. +   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  4075. +   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  4076. +     x_includes="$ac_optarg" ;;
  4077. +   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  4078. +   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  4079. +     ac_prev=x_libraries ;;
  4080. +   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  4081. +   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  4082. +     x_libraries="$ac_optarg" ;;
  4083. +   -*) /bin/echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  4084. +     ;;
  4085. +   *) 
  4086. +     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  4087. +       /bin/echo "configure: warning: $ac_option: invalid host type" >&2
  4088. +     fi
  4089. +     if test "x$nonopt" != xNONE; then
  4090. +       /bin/echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  4091. +     fi
  4092. +     nonopt="$ac_option"
  4093. +     ;;
  4094. +   esac
  4095. + done
  4096. + if test -n "$ac_prev"; then
  4097. +   /bin/echo "configure: missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  4098. + fi
  4099. + trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  4100. + trap 'rm -fr confdefs* $ac_clean_files' 0
  4101. + # Save the original args if we used an alternate arg parser.
  4102. + ac_configure_temp="${configure_args-$*}"
  4103. + # Strip out --no-create and --norecursion so they don't pile up.
  4104. + configure_args=
  4105. + for ac_arg in $ac_configure_temp; do
  4106. +   case "$ac_arg" in
  4107. +   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  4108. +   | --no-cr | --no-c) ;;
  4109. +   -norecursion | --norecursion | --norecursio | --norecursi \
  4110. +   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  4111. +   *) configure_args="$configure_args $ac_arg" ;;
  4112. +   esac
  4113. + done
  4114. + # NLS nuisances.
  4115. + # These must not be set unconditionally because not all systems understand
  4116. + # e.g. LANG=C (notably SCO).
  4117. + if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  4118. + if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  4119. + # confdefs.h avoids OS command line length limits that DEFS can exceed.
  4120. + rm -rf conftest* confdefs.h
  4121. + # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  4122. + /bin/echo > confdefs.h
  4123. + # A filename unique to this package, relative to the directory that
  4124. + # configure is in, which we can look for to find out if srcdir is correct.
  4125. + ac_unique_file=perl.c
  4126. + # Find the source files, if location was not specified.
  4127. + if test -z "$srcdir"; then
  4128. +   ac_srcdir_defaulted=yes
  4129. +   # Try the directory containing this script, then `..'.
  4130. +   ac_prog=$0
  4131. +   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  4132. +   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  4133. +   srcdir=$ac_confdir
  4134. +   if test ! -r $srcdir/$ac_unique_file; then
  4135. +     srcdir=..
  4136. +   fi
  4137. + fi
  4138. + if test ! -r $srcdir/$ac_unique_file; then
  4139. +   if test x$ac_srcdir_defaulted = xyes; then
  4140. +     /bin/echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  4141. +   else
  4142. +     /bin/echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  4143. +   fi
  4144. + fi
  4145. + ac_ext=c
  4146. + ac_cpp='${CPP} $CFLAGS'
  4147. + ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  4148. + # We want these before the checks, so the checks can modify their values.
  4149. + test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  4150. + test -z "$LDFLAGS" && LDFLAGS=
  4151. + if test -z "$CC"; then
  4152. +   # Extract the first word of `gcc', so it can be a program name with args.
  4153. +   set ac_dummy gcc; ac_word=$2
  4154. +   test -n "$silent" || /bin/echo "checking for $ac_word"
  4155. +   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4156. +   for ac_dir in $PATH; do
  4157. +     test -z "$ac_dir" && ac_dir=.
  4158. +     if test -f $ac_dir/$ac_word; then
  4159. +       CC="gcc"
  4160. +       break
  4161. +     fi
  4162. +   done
  4163. +   IFS="$ac_save_ifs"
  4164. + fi
  4165. + test -z "$CC" && CC="cc"
  4166. + test -n "$CC" && test -n "$verbose" && /bin/echo "    setting CC to $CC"
  4167. + # Find out if we are using GNU C, under whatever name.
  4168. + cat > conftest.c <<EOF
  4169. + #ifdef __GNUC__
  4170. +   yes
  4171. + #endif
  4172.   EOF
  4173. ! ${CC-cc} -E conftest.c > conftest.out 2>&1
  4174. ! if egrep yes conftest.out >/dev/null 2>&1; then
  4175. !   GCC=1 # For later tests.
  4176.   fi
  4177. + rm -f conftest*
  4178.   
  4179.   
  4180. ! # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  4181. ! test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
  4182.   
  4183.   
  4184. ! test -n "$silent" || /bin/echo "checking how to run the C preprocessor"
  4185. ! if test -z "$CPP"; then
  4186. !   # This must be in double quotes, not single quotes, because CPP may get
  4187. !   # substituted into the Makefile and ``${CC-cc}'' will simply confuse
  4188. !   # make.  It must be expanded now.
  4189. !   CPP="${CC-cc} -E"
  4190. !   cat > conftest.${ac_ext} <<EOF
  4191. ! #include "confdefs.h"
  4192. ! #include <stdio.h>
  4193. ! Syntax Error
  4194.   EOF
  4195. ! # Some shells (Coherent) do redirections in the wrong order, so need
  4196. ! # the parens.
  4197. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4198. ! if test -z "$ac_err"; then
  4199. !   :
  4200. ! else
  4201. !   rm -rf conftest*
  4202. !   CPP="${CC-cc} -E -traditional-cpp"
  4203. !   cat > conftest.${ac_ext} <<EOF
  4204. ! #include "confdefs.h"
  4205. ! #include <stdio.h>
  4206. ! Syntax Error
  4207.   EOF
  4208. ! # Some shells (Coherent) do redirections in the wrong order, so need
  4209. ! # the parens.
  4210. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4211. ! if test -z "$ac_err"; then
  4212. !   :
  4213. ! else
  4214. !   rm -rf conftest*
  4215. !   CPP=/lib/cpp
  4216. ! fi
  4217. ! rm -f conftest*
  4218. ! fi
  4219. ! rm -f conftest*
  4220. ! fi
  4221. ! test -n "$verbose" && /bin/echo "    setting CPP to $CPP"
  4222. ! if test -n "$GCC"; then
  4223. !   test -n "$silent" || /bin/echo "checking whether -traditional is needed"
  4224. !   ac_pattern="Autoconf.*'x'"
  4225. !   ac_prog='#include <sgtty.h>
  4226. ! Autoconf TIOCGETP'
  4227. !   cat > conftest.${ac_ext} <<EOF
  4228. ! #include "confdefs.h"
  4229. ! $ac_prog
  4230.   EOF
  4231. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  4232. ! if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  4233. !   rm -rf conftest*
  4234. !   ac_need_trad=1
  4235.   
  4236.   fi
  4237. + rm -f conftest*
  4238.   
  4239.   
  4240. !   if test -z "$ac_need_trad"; then
  4241. !     ac_prog='#include <termio.h>
  4242. ! Autoconf TCGETA'
  4243. !     cat > conftest.${ac_ext} <<EOF
  4244. ! #include "confdefs.h"
  4245. ! $ac_prog
  4246.   EOF
  4247. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  4248. ! if egrep "$ac_pattern" conftest.out >/dev/null 2>&1; then
  4249. !   rm -rf conftest*
  4250. !   ac_need_trad=1
  4251.   
  4252.   fi
  4253. ! rm -f conftest*
  4254.   
  4255. !   fi
  4256. !   test -n "$ac_need_trad" && CC="$CC -traditional"
  4257.   fi
  4258.   
  4259. ! # Make sure to not get the incompatible SysV /etc/install and
  4260. ! # /usr/sbin/install, which might be in PATH before a BSD-like install,
  4261. ! # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  4262. ! # or the AFS install, which mishandles nonexistent args, or
  4263. ! # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  4264. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  4265. ! # syntax.  Sigh.
  4266. ! #
  4267. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  4268. ! #     anyway.
  4269. ! # This turns out not to be true, so the mere pathname isn't an indication
  4270. ! # of whether the program works.  What we really need is a set of tests for
  4271. ! # the install program to see if it actually works in all the required ways.
  4272. ! #
  4273. ! # Avoid using ./install, which might have been erroneously created
  4274. ! # by make from ./install.sh.
  4275. ! if test "z${INSTALL}" = "z" ; then
  4276. !   test -n "$silent" || /bin/echo "checking for a BSD compatible install"
  4277. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4278. !   for ac_dir in $PATH; do
  4279. !     case "$ac_dir" in
  4280. !     ''|.|/gnu/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  4281. !     *)
  4282. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  4283. !       for ac_prog in installbsd scoinst install; do
  4284. !         if test -f $ac_dir/$ac_prog; then
  4285. !       if test $ac_prog = install &&
  4286. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  4287. !         # AIX install.  It has an incompatible calling convention.
  4288. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  4289. !         :
  4290. !       else
  4291. !         INSTALL="$ac_dir/$ac_prog -c"
  4292. !         INSTALL_PROGRAM='${INSTALL}'
  4293. !         INSTALL_DATA='${INSTALL} -m 644'
  4294. !         break 2
  4295. !       fi
  4296. !     fi
  4297. !       done
  4298. !       ;;
  4299. !     esac
  4300. !   done
  4301. !   IFS="$ac_save_ifs"
  4302. ! fi
  4303. ! if test -z "$INSTALL"; then
  4304. !   if test -f ${srcdir}/install.sh; then
  4305. !     # As a last resort, use the slow shell script.
  4306. !     INSTALL='@top_srcdir@/install.sh -c'
  4307. !   else
  4308. !     /bin/echo "configure: warning: ${srcdir}/install.sh not found; using cp" >&2
  4309. !     INSTALL=cp
  4310. !   fi
  4311. ! fi
  4312. ! test -n "$verbose" && /bin/echo "    setting INSTALL to $INSTALL"
  4313. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  4314. ! # It thinks the first close brace ends the variable substitution.
  4315. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4316. ! test -n "$verbose" && /bin/echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  4317. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL}'
  4318. ! test -n "$verbose" && /bin/echo "    setting INSTALL_DATA to $INSTALL_DATA"
  4319. ! for ac_prog in 'bison -y' byacc
  4320. ! do
  4321. ! if test -z "$YACC"; then
  4322. !   # Extract the first word of `$ac_prog', so it can be a program name with args.
  4323. !   set ac_dummy $ac_prog; ac_word=$2
  4324. !   test -n "$silent" || /bin/echo "checking for $ac_word"
  4325. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  4326. !   for ac_dir in $PATH; do
  4327. !     test -z "$ac_dir" && ac_dir=.
  4328. !     if test -f $ac_dir/$ac_word; then
  4329. !       YACC="$ac_prog"
  4330. !       break
  4331. !     fi
  4332. !   done
  4333. !   IFS="$ac_save_ifs"
  4334. ! fi
  4335. ! test -n "$YACC" && test -n "$verbose" && /bin/echo "    setting YACC to $YACC"
  4336. ! test -n "$YACC" && break
  4337. ! done
  4338. ! test -n "$YACC" || YACC="yacc"
  4339. ! test -n "$silent" || /bin/echo "checking for return type of signal handlers"
  4340. ! cat > conftest.${ac_ext} <<EOF
  4341. ! #include "confdefs.h"
  4342. ! #include <sys/types.h>
  4343. ! #include <signal.h>
  4344. ! #ifdef signal
  4345. ! #undef signal
  4346. ! #endif
  4347. ! extern void (*signal ()) ();
  4348. ! int main() { return 0; }
  4349. ! int t() { int i;; return 0; }
  4350. ! EOF
  4351. ! if eval $ac_compile; then
  4352. !   rm -rf conftest*
  4353. !   
  4354.   {
  4355. ! test -n "$verbose" && \
  4356. ! /bin/echo "    defining" RETSIGTYPE to be "void"
  4357. ! /bin/echo "#define" RETSIGTYPE "void" >> confdefs.h
  4358. ! DEFS="$DEFS -DRETSIGTYPE=void"
  4359. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  4360. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  4361. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  4362. ! "
  4363.   }
  4364.   
  4365.   
  4366.   else
  4367. !   rm -rf conftest*
  4368. !   
  4369. ! {
  4370. ! test -n "$verbose" && \
  4371. ! /bin/echo "    defining" RETSIGTYPE to be "int"
  4372. ! /bin/echo "#define" RETSIGTYPE "int" >> confdefs.h
  4373. ! DEFS="$DEFS -DRETSIGTYPE=int"
  4374. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  4375. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  4376. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  4377. ! "
  4378.   }
  4379.   
  4380.   fi
  4381. ! rm -f conftest*
  4382.   
  4383.   
  4384. ! test -n "$silent" || /bin/echo "checking for ln -s"
  4385. ! rm -f conftestdata
  4386. ! if ln -s X conftestdata 2>/dev/null
  4387. ! then
  4388. !   rm -f conftestdata
  4389. !   LN_S="ln -s"
  4390.   else
  4391. !   LN_S=ln
  4392.   fi
  4393.   
  4394.   
  4395. ! ac_save_LIBS="${LIBS}"
  4396. ! LIBS="${LIBS} -lm"
  4397. ! ac_have_lib=""
  4398. ! test -n "$silent" || /bin/echo "checking for -lm"
  4399. ! cat > conftest.${ac_ext} <<EOF
  4400. ! #include "confdefs.h"
  4401.   
  4402. ! int main() { return 0; }
  4403. ! int t() { main();; return 0; }
  4404. ! EOF
  4405. ! if eval $ac_compile; then
  4406. !   rm -rf conftest*
  4407. !   ac_have_lib="1"
  4408. ! fi
  4409. ! rm -f conftest*
  4410. ! LIBS="${ac_save_LIBS}"
  4411. ! if test -n "${ac_have_lib}"; then
  4412. !    
  4413. ! {
  4414. ! test -n "$verbose" && \
  4415. ! /bin/echo "    defining HAVE_LIBM"
  4416. ! /bin/echo "#define" HAVE_LIBM "1" >> confdefs.h
  4417. ! DEFS="$DEFS -DHAVE_LIBM=1"
  4418. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBM\${ac_dB}HAVE_LIBM\${ac_dC}1\${ac_dD}
  4419. ! \${ac_uA}HAVE_LIBM\${ac_uB}HAVE_LIBM\${ac_uC}1\${ac_uD}
  4420. ! \${ac_eA}HAVE_LIBM\${ac_eB}HAVE_LIBM\${ac_eC}1\${ac_eD}
  4421. ! "
  4422.   }
  4423. !    LIBS="${LIBS} -lm"
  4424.   fi
  4425.   
  4426. ! for ac_hdr in gdbm.h ndbm.h dbz.h dbm.h
  4427. ! do
  4428. ! ac_tr_hdr=HAVE_`/bin/echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  4429. ! test -n "$silent" || /bin/echo "checking for ${ac_hdr}"
  4430. ! cat > conftest.${ac_ext} <<EOF
  4431. ! #include "confdefs.h"
  4432. ! #include <${ac_hdr}>
  4433. ! EOF
  4434. ! # Some shells (Coherent) do redirections in the wrong order, so need
  4435. ! # the parens.
  4436. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  4437. ! if test -z "$ac_err"; then
  4438. !   rm -rf conftest*
  4439.     
  4440.   {
  4441. ! test -n "$verbose" && \
  4442. ! /bin/echo "    defining ${ac_tr_hdr}"
  4443. ! /bin/echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  4444. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  4445. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  4446. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  4447. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  4448. ! "
  4449.   }
  4450.   
  4451.   
  4452. ! fi
  4453. ! rm -f conftest*
  4454.   done
  4455.   
  4456. ! ac_save_LIBS="${LIBS}"
  4457. ! LIBS="${LIBS} -lgdbm"
  4458. ! ac_have_lib=""
  4459. ! test -n "$silent" || /bin/echo "checking for -lgdbm"
  4460. ! cat > conftest.${ac_ext} <<EOF
  4461. ! #include "confdefs.h"
  4462.   
  4463. ! int main() { return 0; }
  4464. ! int t() { main();; return 0; }
  4465. ! EOF
  4466. ! if eval $ac_compile; then
  4467. !   rm -rf conftest*
  4468. !   ac_have_lib="1"
  4469. ! fi
  4470. ! rm -f conftest*
  4471. ! LIBS="${ac_save_LIBS}"
  4472. ! if test -n "${ac_have_lib}"; then
  4473. !    
  4474. ! {
  4475. ! test -n "$verbose" && \
  4476. ! /bin/echo "    defining HAVE_LIBGDBM"
  4477. ! /bin/echo "#define" HAVE_LIBGDBM "1" >> confdefs.h
  4478. ! DEFS="$DEFS -DHAVE_LIBGDBM=1"
  4479. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_LIBGDBM\${ac_dB}HAVE_LIBGDBM\${ac_dC}1\${ac_dD}
  4480. ! \${ac_uA}HAVE_LIBGDBM\${ac_uB}HAVE_LIBGDBM\${ac_uC}1\${ac_uD}
  4481. ! \${ac_eA}HAVE_LIBGDBM\${ac_eB}HAVE_LIBGDBM\${ac_eC}1\${ac_eD}
  4482. ! "
  4483.   }
  4484.   
  4485. !    LIBS="${LIBS} -lgdbm"
  4486.   fi
  4487.   
  4488.   
  4489. ! # Set default prefixes.
  4490. ! if test -n "$prefix"; then
  4491. !   test -z "$exec_prefix" && exec_prefix='${prefix}' # Let make expand it.
  4492. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  4493.   fi
  4494. ! if test -n "$exec_prefix"; then
  4495. !   ac_prsub="$ac_prsub
  4496. ! s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  4497.   fi
  4498. ! # Any assignment to VPATH causes Sun make to only execute
  4499. ! # the first set of double-colon rules, so remove it if not needed.
  4500. ! # If there is a colon in the path, we need to keep it.
  4501. ! if test "x$srcdir" = x.; then
  4502. !   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  4503.   fi
  4504.   
  4505. ! # Quote sed substitution magic chars in DEFS.
  4506. ! cat >conftest.def <<EOF
  4507. ! $DEFS
  4508. ! EOF
  4509. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  4510. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  4511. ! rm -f conftest.def
  4512. ! # Substitute for predefined variables.
  4513. ! trap 'rm -f config.status; exit 1' 1 2 15
  4514. ! /bin/echo creating config.status
  4515. ! rm -f config.status
  4516. ! cat > config.status <<EOF
  4517. ! #!/bin/sh
  4518. ! # Generated automatically by configure.
  4519. ! # Run this file to recreate the current configuration.
  4520. ! # This directory was configured as follows,
  4521. ! # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4522. ! #
  4523. ! # $0 $configure_args
  4524.   
  4525. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  4526. ! for ac_option
  4527. ! do
  4528. !   case "\$ac_option" in
  4529. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4530. !     /bin/echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  4531. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  4532. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  4533. !     /bin/echo "config.status generated by autoconf version 1.9"
  4534. !     exit 0 ;;
  4535. !   -help | --help | --hel | --he | --h)
  4536. !     /bin/echo "\$ac_cs_usage"; exit 0 ;;
  4537. !   *) /bin/echo "\$ac_cs_usage"; exit 1 ;;
  4538. !   esac
  4539. ! done
  4540. ! trap 'rm -fr Makefile x2p/Makefile config.h conftest*; exit 1' 1 2 15
  4541. ! CC='$CC'
  4542. ! CFLAGS='$CFLAGS'
  4543. ! LDFLAGS='$LDFLAGS'
  4544. ! CPP='$CPP'
  4545. ! INSTALL='$INSTALL'
  4546. ! INSTALL_PROGRAM='$INSTALL_PROGRAM'
  4547. ! INSTALL_DATA='$INSTALL_DATA'
  4548. ! YACC='$YACC'
  4549. ! LN_S='$LN_S'
  4550. ! LIBS='$LIBS'
  4551. ! srcdir='$srcdir'
  4552. ! top_srcdir='$top_srcdir'
  4553. ! prefix='$prefix'
  4554. ! exec_prefix='$exec_prefix'
  4555. ! ac_prsub='$ac_prsub'
  4556. ! ac_vpsub='$ac_vpsub'
  4557. ! extrasub='$extrasub'
  4558. ! EOF
  4559. ! cat >> config.status <<\EOF
  4560.   
  4561. ! ac_given_srcdir=$srcdir
  4562.   
  4563. ! CONFIG_FILES=${CONFIG_FILES-"Makefile x2p/Makefile"}
  4564. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  4565. !   # Remove last slash and all that follows it.  Not all systems have dirname.
  4566. !   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4567. !   if test "$ac_dir" != "$ac_file"; then
  4568. !     # The file is in a subdirectory.
  4569. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  4570. !     ac_dir_suffix="/$ac_dir"
  4571. !   else
  4572. !     ac_dir_suffix=
  4573. !   fi
  4574. !   # A "../" for each directory in $ac_dir_suffix.
  4575. !   ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4576. !   case "$ac_given_srcdir" in
  4577. !   .)  srcdir=.; top_srcdir="$ac_dots." ;;
  4578. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4579. !   *) # Relative path.
  4580. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4581. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4582. !   esac
  4583. !   /bin/echo creating "$ac_file"
  4584. !   rm -f "$ac_file"
  4585. !   comment_str="Generated automatically from `/bin/echo $ac_file|sed 's|.*/||'`.in by configure."
  4586. !   case "$ac_file" in
  4587. !     *.c | *.h | *.C | *.cc | *.m )  /bin/echo "/* $comment_str */" > "$ac_file" ;;
  4588. !     * )          /bin/echo "# $comment_str"     > "$ac_file" ;;
  4589. !   esac
  4590. !   sed -e "
  4591. ! $ac_prsub
  4592. ! $ac_vpsub
  4593. ! $extrasub
  4594. ! s%@CC@%$CC%g
  4595. ! s%@CFLAGS@%$CFLAGS%g
  4596. ! s%@LDFLAGS@%$LDFLAGS%g
  4597. ! s%@CPP@%$CPP%g
  4598. ! s%@INSTALL@%$INSTALL%g
  4599. ! s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  4600. ! s%@INSTALL_DATA@%$INSTALL_DATA%g
  4601. ! s%@YACC@%$YACC%g
  4602. ! s%@LN_S@%$LN_S%g
  4603. ! s%@LIBS@%$LIBS%g
  4604. ! s%@srcdir@%$srcdir%g
  4605. ! s%@top_srcdir@%$top_srcdir%g
  4606. ! s%@prefix@%$prefix%g
  4607. ! s%@exec_prefix@%$exec_prefix%g
  4608. ! s%@DEFS@%-DHAVE_CONFIG_H%" $ac_given_srcdir/${ac_file}.in >> $ac_file
  4609. ! fi; done
  4610. ! # These sed commands are put into ac_sed_defs when defining a macro.
  4611. ! # They are broken into pieces to make the sed script easier to manage.
  4612. ! # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  4613. ! # is the cpp macro being defined and VALUE is the value it is being given.
  4614. ! # Each defining turns into a single global substitution command.
  4615. ! # Hopefully no one uses "!" as a variable value.
  4616. ! # Other candidates for the sed separators, like , and @, do get used.
  4617. ! #
  4618. ! # ac_d sets the value in "#define NAME VALUE" lines.
  4619. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  4620. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  4621. ! ac_dC='\3'
  4622. ! ac_dD='!g'
  4623. ! # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4624. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4625. ! ac_uB='\([     ]\)!\1#\2define\3'
  4626. ! ac_uC=' '
  4627. ! ac_uD='\4!g'
  4628. ! # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4629. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4630. ! ac_eB='$!\1#\2define\3'
  4631. ! ac_eC=' '
  4632. ! ac_eD='!g'
  4633. ! rm -f conftest.sed
  4634. ! EOF
  4635. ! # Turn off quoting long enough to insert the sed commands.
  4636. ! rm -f conftest.sh
  4637. ! cat > conftest.sh <<EOF
  4638. ! $ac_sed_defs
  4639. ! EOF
  4640.   
  4641. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  4642. ! # on the size of here documents.
  4643.   
  4644. ! # Maximum number of lines to put in a single here document.
  4645. ! ac_max_sh_lines=9
  4646.   
  4647. ! while :
  4648. ! do
  4649. !   # wc gives bogus results for an empty file on some AIX systems.
  4650. !   ac_lines=`grep -c . conftest.sh`
  4651. !   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4652. !   rm -f conftest.s1 conftest.s2
  4653. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -20.
  4654. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +21.
  4655. !   # Write a limited-size here document to append to conftest.sed.
  4656. !   /bin/echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  4657. !   cat conftest.s1 >> config.status
  4658. !   /bin/echo 'CONFEOF' >> config.status
  4659. !   rm -f conftest.s1 conftest.sh
  4660. !   mv conftest.s2 conftest.sh
  4661. ! done
  4662. ! rm -f conftest.sh
  4663. ! # Now back to your regularly scheduled config.status.
  4664. ! cat >> config.status <<\EOF
  4665. ! # This sed command replaces #undef's with comments.  This is necessary, for
  4666. ! # example, in the case of _POSIX_SOURCE, which is predefined and required
  4667. ! # on some systems where configure will not decide to define it in
  4668. ! # config.h.
  4669. ! cat >> conftest.sed <<\CONFEOF
  4670. ! s,^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  4671. ! CONFEOF
  4672. ! rm -f conftest.h
  4673. ! # Break up the sed commands because old seds have small limits.
  4674. ! ac_max_sed_lines=20
  4675. ! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  4676. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  4677. !   /bin/echo creating $ac_file
  4678. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  4679. !   while :
  4680. !   do
  4681. !     ac_lines=`grep -c . conftest.sed`
  4682. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4683. !     rm -f conftest.s1 conftest.s2 conftest.h2
  4684. !     sed ${ac_max_sed_lines}q conftest.sed > conftest.s1 # Like head -20.
  4685. !     sed 1,${ac_max_sed_lines}d conftest.sed > conftest.s2 # Like tail +21.
  4686. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  4687. !     rm -f conftest.s1 conftest.h1 conftest.sed
  4688. !     mv conftest.h2 conftest.h1
  4689. !     mv conftest.s2 conftest.sed
  4690. !   done
  4691. !   rm -f conftest.sed conftest.h
  4692. !   /bin/echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  4693. !   cat conftest.h1 >> conftest.h
  4694. !   rm -f conftest.h1
  4695. !   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4696. !     # The file exists and we would not be changing it.
  4697. !     /bin/echo "$ac_file is unchanged"
  4698. !     rm -f conftest.h
  4699. !   else
  4700. !     rm -f $ac_file
  4701. !     mv conftest.h $ac_file
  4702. !   fi
  4703. ! fi; done
  4704.   
  4705.   
  4706. ! exit 0
  4707. ! EOF
  4708. ! chmod +x config.status
  4709. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} config.status
  4710. diff -rc --new-file perl-4.036/Makefile.SH /gnu/src/amiga/perl-4.036/Makefile.SH
  4711. *** perl-4.036/Makefile.SH    Mon Feb  8 20:35:21 1993
  4712. --- /gnu/src/amiga/perl-4.036/Makefile.SH    Tue Sep 28 07:16:24 1993
  4713. ***************
  4714. *** 349,355 ****
  4715.   
  4716.   test: perl
  4717.       - cd t && chmod +x TEST */*.t
  4718. !     - cd t && (rm -f perl; $(SLN) ../perl perl) && ./perl TEST </dev/tty
  4719.   
  4720.   clist:
  4721.       echo $(c) | tr ' ' '\012' >.clist
  4722. --- 349,355 ----
  4723.   
  4724.   test: perl
  4725.       - cd t && chmod +x TEST */*.t
  4726. !     - cd t && (rm -f perl; $(SLN) ../perl perl) && ./perl TEST
  4727.   
  4728.   clist:
  4729.       echo $(c) | tr ' ' '\012' >.clist
  4730. ***************
  4731. *** 373,376 ****
  4732.       ln Makefile ../Makefile
  4733.       ;;
  4734.   esac
  4735. ! rm -f makefile
  4736. --- 373,377 ----
  4737.       ln Makefile ../Makefile
  4738.       ;;
  4739.   esac
  4740. ! #rm -f makefile  (AmigaDOS is case-independent)
  4741. diff -rc --new-file perl-4.036/Makefile.in /gnu/src/amiga/perl-4.036/Makefile.in
  4742. *** perl-4.036/Makefile.in    Thu Jan  1 00:00:00 1970
  4743. --- /gnu/src/amiga/perl-4.036/Makefile.in    Wed May  4 21:28:59 1994
  4744. ***************
  4745. *** 0 ****
  4746. --- 1,1155 ----
  4747. + # : Makefile.SH,v 120183736Revision: 4.0.1.4 120183736Date: 92/06/08 11:40:43 $
  4748. + #
  4749. + # $Log:    Makefile.SH,v $
  4750. + # Revision 4.0.1.4  92/06/08  11:40:43  lwall
  4751. + # patch20: cray didn't give enough memory to /bin/sh
  4752. + # patch20: various and sundry fixes
  4753. + # 
  4754. + # Revision 4.0.1.3  91/11/05  15:48:11  lwall
  4755. + # patch11: saberized perl
  4756. + # patch11: added support for dbz
  4757. + # 
  4758. + # Revision 4.0.1.2  91/06/07  10:14:43  lwall
  4759. + # patch4: cflags now emits entire cc command except for the filename
  4760. + # patch4: alternate make programs are now semi-supported
  4761. + # patch4: uperl.o no longer tries to link in libraries prematurely
  4762. + # patch4: installperl now installs x2p stuff too
  4763. + # 
  4764. + # Revision 4.0.1.1  91/04/11  17:30:39  lwall
  4765. + # patch1: C flags are now settable on a per-file basis
  4766. + # 
  4767. + # Revision 4.0  91/03/20  00:58:54  lwall
  4768. + # 4.0 baseline.
  4769. + # 
  4770. + # 
  4771. + #### Start of system configuration section. ####
  4772. + VPATH = @srcdir@
  4773. + srcdir = @srcdir@
  4774. + # Common prefix for machine-independent installed files.
  4775. + prefix = /gnu
  4776. + # Common prefix for machine-dependent installed files.
  4777. + exec_prefix = $(prefix)
  4778. + # Directory to install executables in.
  4779. + bindir = $(exec_prefix)/bin
  4780. + # Directory to install libraries in.
  4781. + libdir = $(exec_prefix)/lib
  4782. + # Directory to install the Info files in.
  4783. + infodir = $(prefix)/info
  4784. + # Directory to install the man page in.
  4785. + mandir = $(prefix)/man/man$(manext)
  4786. + # Number to put on the man page filename.
  4787. + manext = 1
  4788. + # Program to install executables.
  4789. + INSTALL_PROGRAM = @INSTALL_PROGRAM@
  4790. + # Program to install data like man pages.
  4791. + INSTALL_DATA = @INSTALL_DATA@
  4792. + # Generic install program.
  4793. + INSTALL = @INSTALL@
  4794. + CC = @CC@
  4795. + DEFS = @DEFS@ -traditional
  4796. + CFLAGS = @CFLAGS@
  4797. + LDFLAGS = @LDFLAGS@
  4798. + LIBS = @LIBS@
  4799. + YACC = @YACC@
  4800. + # AmigaDOS hack.  Symbolic links are available, but the actual link
  4801. + # name needs to be AmigaDOS format (device:path1/path2/...).  When
  4802. + # ixemul.library makes them in this format, this can be enabled.
  4803. + #LN_S = @LN_S@
  4804. + LN_S = cp
  4805. + #### End of system configuration section. ####
  4806. + # "-I." is needed to find config.h in the build directory.
  4807. + .c.o:
  4808. +     $(CC) -c -I. -I$(srcdir) $(DEFS) $(CFLAGS) $< $(OUTPUT_OPTION)
  4809. + RMS = rm -f
  4810. + public = perl taintperl 
  4811. + shellflags = 
  4812. + # To use an alternate make, set  in config.sh.
  4813. + MAKE = make
  4814. + CCCMD = $(CC) -c -I. -I$(srcdir) $(DEFS) $(CFLAGS)
  4815. + private = 
  4816. + #scripts = h2ph
  4817. + manpages = perl.man h2ph.man
  4818. + util =
  4819. + sh = Makefile.SH makedepend.SH h2ph.SH
  4820. + h1 = EXTERN.h INTERN.h arg.h array.h cmd.h config.h form.h handy.h
  4821. + h2 = hash.h perl.h regcomp.h regexp.h spat.h stab.h str.h util.h
  4822. + h = $(h1) $(h2)
  4823. + c1 = array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c
  4824. + c2 = eval.c form.c hash.c $(mallocsrc) perl.c regcomp.c regexec.c
  4825. + c3 = stab.c str.c toke.c util.c usersub.c
  4826. + c = $(c1) $(c2) $(c3)
  4827. + s1 = array.c cmd.c cons.c consarg.c doarg.c doio.c dolist.c dump.c
  4828. + s2 = eval.c form.c hash.c perl.c regcomp.c regexec.c
  4829. + s3 = stab.c str.c toke.c util.c usersub.c perly.c
  4830. + saber = $(s1) $(s2) $(s3)
  4831. + obj1 = array.o cmd.o cons.o consarg.o doarg.o doio.o dolist.o dump.o
  4832. + obj2 = eval.o form.o $(mallocobj) perl.o regcomp.o regexec.o
  4833. + obj3 = stab.o str.o toke.o util.o
  4834. + obj = $(obj1) $(obj2) $(obj3)
  4835. + tobj1 = tarray.o tcmd.o tcons.o tconsarg.o tdoarg.o tdoio.o tdolist.o tdump.o
  4836. + tobj2 = teval.o tform.o thash.o $(mallocobj) tregcomp.o tregexec.o
  4837. + tobj3 = tstab.o tstr.o ttoke.o tutil.o
  4838. + tobj = $(tobj1) $(tobj2) $(tobj3)
  4839. + lintflags = -hbvxac
  4840. + addedbyconf = Makefile.old bsd eunice filexp loc pdp11 usg v7
  4841. + # grrr
  4842. + SHELL = /bin/sh
  4843. + all: $(public) $(private) $(util) uperl.o $(scripts)
  4844. + #    cd x2p; $(MAKE) all
  4845. + # This is the standard version that contains no "taint" checks and is
  4846. + # used for all scripts that aren't set-id or running under something set-id.
  4847. + # The $& notation is tells Sequent machines that it can do a parallel make,
  4848. + # and is harmless otherwise.
  4849. + perl: $& perly.o $(obj) hash.o usersub.o
  4850. +     $(CC) $(LARGE) $(LDFLAGS) $(obj) hash.o perly.o usersub.o $(LIBS) -o perl
  4851. + # This command assumes that /usr/include/dbz.h and /usr/lib/dbz.o exist.
  4852. + dbzperl: $& perly.o $(obj) zhash.o usersub.o
  4853. +     $(CC) $(LARGE) $(LDFLAGS) $(obj) zhash.o /usr/lib/dbz.o perly.o usersub.o $(LIBS) -o dbzperl
  4854. + zhash.o: hash.c $(h)
  4855. +     $(RMS) zhash.c
  4856. +     $(LN_S) $(srcdir)/hash.c zhash.c
  4857. +     $(CCCMD) -DWANT_DBZ zhash.c
  4858. +     $(RMS) zhash.c
  4859. + uperl.o: $& perly.o $(obj) hash.o
  4860. +     -ld $(LARGE) $(LDFLAGS) -r $(obj) hash.o perly.o -o uperl.o
  4861. + saber: $(saber)
  4862. +     # load $(saber)
  4863. +     # load /lib/libm.a
  4864. + # This version, if specified in Configure, does ONLY those scripts which need
  4865. + # set-id emulation.  Suidperl must be setuid root.  It contains the "taint"
  4866. + # checks as well as the special code to validate that the script in question
  4867. + # has been invoked correctly.
  4868. + suidperl: $& tperly.o sperl.o $(tobj) usersub.o
  4869. +     $(CC) $(LARGE) $(LDFLAGS) sperl.o $(tobj) tperly.o usersub.o $(LIBS) \
  4870. +         -o suidperl
  4871. + # This version interprets scripts that are already set-id either via a wrapper
  4872. + # or through the kernel allowing set-id scripts (bad idea).  Taintperl must
  4873. + # NOT be setuid to root or anything else.  The only difference between it
  4874. + # and normal perl is the presence of the "taint" checks.
  4875. + taintperl: $& tperly.o tperl.o $(tobj) usersub.o
  4876. +     $(CC) $(LARGE) $(LDFLAGS) tperl.o $(tobj) tperly.o usersub.o $(LIBS) \
  4877. +         -o taintperl
  4878. + # Replicating all this junk is yucky, but I don't see a portable way to fix it.
  4879. + tperly.o: perly.c perly.h $(h)
  4880. +     $(RMS) tperly.c
  4881. +     $(LN_S) perly.c tperly.c
  4882. +     $(CCCMD) -DTAINT tperly.c
  4883. +     $(RMS) tperly.c
  4884. + tperl.o: perl.c perly.h patchlevel.h perl.h $(h)
  4885. +     $(RMS) tperl.c
  4886. +     $(LN_S) $(srcdir)/perl.c tperl.c
  4887. +     $(CCCMD) -DTAINT tperl.c
  4888. +     $(RMS) tperl.c
  4889. + sperl.o: perl.c perly.h patchlevel.h $(h)
  4890. +     $(RMS) sperl.c
  4891. +     $(LN_S) $(srcdir)/perl.c sperl.c
  4892. +     $(CCCMD) -DTAINT -DIAMSUID sperl.c
  4893. +     $(RMS) sperl.c
  4894. + tarray.o: array.c $(h)
  4895. +     $(RMS) tarray.c
  4896. +     $(LN_S) $(srcdir)/array.c tarray.c
  4897. +     $(CCCMD) -DTAINT tarray.c
  4898. +     $(RMS) tarray.c
  4899. + tcmd.o: cmd.c $(h)
  4900. +     $(RMS) tcmd.c
  4901. +     $(LN_S) $(srcdir)/cmd.c tcmd.c
  4902. +     $(CCCMD) -DTAINT tcmd.c
  4903. +     $(RMS) tcmd.c
  4904. + tcons.o: cons.c $(h) perly.h
  4905. +     $(RMS) tcons.c
  4906. +     $(LN_S) $(srcdir)/cons.c tcons.c
  4907. +     $(CCCMD) -DTAINT tcons.c
  4908. +     $(RMS) tcons.c
  4909. + tconsarg.o: consarg.c $(h)
  4910. +     $(RMS) tconsarg.c
  4911. +     $(LN_S) $(srcdir)/consarg.c tconsarg.c
  4912. +     $(CCCMD) -DTAINT tconsarg.c
  4913. +     $(RMS) tconsarg.c
  4914. + tdoarg.o: doarg.c $(h)
  4915. +     $(RMS) tdoarg.c
  4916. +     $(LN_S) $(srcdir)/doarg.c tdoarg.c
  4917. +     $(CCCMD) -DTAINT tdoarg.c
  4918. +     $(RMS) tdoarg.c
  4919. + tdoio.o: doio.c $(h)
  4920. +     $(RMS) tdoio.c
  4921. +     $(LN_S) $(srcdir)/doio.c tdoio.c
  4922. +     $(CCCMD) -DTAINT tdoio.c
  4923. +     $(RMS) tdoio.c
  4924. + tdolist.o: dolist.c $(h)
  4925. +     $(RMS) tdolist.c
  4926. +     $(LN_S) $(srcdir)/dolist.c tdolist.c
  4927. +     $(CCCMD) -DTAINT tdolist.c
  4928. +     $(RMS) tdolist.c
  4929. + tdump.o: dump.c $(h)
  4930. +     $(RMS) tdump.c
  4931. +     $(LN_S) $(srcdir)/dump.c tdump.c
  4932. +     $(CCCMD) -DTAINT tdump.c
  4933. +     $(RMS) tdump.c
  4934. + teval.o: eval.c $(h)
  4935. +     $(RMS) teval.c
  4936. +     $(LN_S) $(srcdir)/eval.c teval.c
  4937. +     $(CCCMD) -DTAINT teval.c
  4938. +     $(RMS) teval.c
  4939. + tform.o: form.c $(h)
  4940. +     $(RMS) tform.c
  4941. +     $(LN_S) $(srcdir)/form.c tform.c
  4942. +     $(CCCMD) -DTAINT tform.c
  4943. +     $(RMS) tform.c
  4944. + thash.o: hash.c $(h)
  4945. +     $(RMS) thash.c
  4946. +     $(LN_S) $(srcdir)/hash.c thash.c
  4947. +     $(CCCMD) -DTAINT thash.c
  4948. +     $(RMS) thash.c
  4949. + tregcomp.o: regcomp.c $(h)
  4950. +     $(RMS) tregcomp.c
  4951. +     $(LN_S) $(srcdir)/regcomp.c tregcomp.c
  4952. +     $(CCCMD) -DTAINT tregcomp.c
  4953. +     $(RMS) tregcomp.c
  4954. + tregexec.o: regexec.c $(h)
  4955. +     $(RMS) tregexec.c
  4956. +     $(LN_S) $(srcdir)/regexec.c tregexec.c
  4957. +     $(CCCMD) -DTAINT tregexec.c
  4958. +     $(RMS) tregexec.c
  4959. + tstab.o: stab.c $(h)
  4960. +     $(RMS) tstab.c
  4961. +     $(LN_S) $(srcdir)/stab.c tstab.c
  4962. +     $(CCCMD) -DTAINT tstab.c
  4963. +     $(RMS) tstab.c
  4964. + tstr.o: str.c $(h) perly.h
  4965. +     $(RMS) tstr.c
  4966. +     $(LN_S) $(srcdir)/str.c tstr.c
  4967. +     $(CCCMD) -DTAINT tstr.c
  4968. +     $(RMS) tstr.c
  4969. + ttoke.o: toke.c $(h) perly.h
  4970. +     $(RMS) ttoke.c
  4971. +     $(LN_S) $(srcdir)/toke.c ttoke.c
  4972. +     $(CCCMD) -DTAINT ttoke.c
  4973. +     $(RMS) ttoke.c
  4974. + tutil.o: util.c $(h)
  4975. +     $(RMS) tutil.c
  4976. +     $(LN_S) $(srcdir)/util.c tutil.c
  4977. +     $(CCCMD) -DTAINT tutil.c
  4978. +     $(RMS) tutil.c
  4979. + perly.h: perly.c
  4980. +     @ echo Dummy dependency for dumb parallel make
  4981. +     touch perly.h
  4982. + perly.c: perly.y perly.fixer
  4983. +     @ \
  4984. + case "$(YACC)" in \
  4985. +     *bison*) echo 'Expect' 25 shift/reduce and 59 reduce/reduce conflicts;; \
  4986. +     *) echo 'Expect' 27 shift/reduce and 57 reduce/reduce conflicts;; \
  4987. + esac
  4988. +     $(YACC) -d $(srcdir)/perly.y
  4989. +     sh $(shellflags) $(srcdir)/perly.fixer y.tab.c perly.c
  4990. +     mv y.tab.h perly.h
  4991. +     echo 'extern YYSTYPE yylval;' >>perly.h
  4992. + perly.o: perly.c perly.h $(h)
  4993. +     $(CCCMD) perly.c
  4994. + install: all
  4995. +     $(INSTALL_PROGRAM) perl $(bindir)/perl
  4996. +     $(INSTALL_PROGRAM) taintperl $(bindir)/taintperl
  4997. +     $(INSTALL_DATA) $(srcdir)/perl.man $(mandir)/perl.$(manext)
  4998. + #    $(INSTALL_DATA) $(srcdir)/h2ph.man $(mandir)/h2ph.$(manext)
  4999. + #    $(INSTALL_DATA) $(srcdir)/x2p/a2p.man $(mandir)/a2p.$(manext)
  5000. + #    $(INSTALL_DATA) $(srcdir)/x2p/s2p.man $(mandir)/s2p.$(manext)
  5001. + clean:
  5002. +     rm -f *.o all perl taintperl suidperl perly.c
  5003. +     cd x2p; $(MAKE) clean
  5004. + realclean: clean
  5005. +     cd x2p; $(MAKE) realclean
  5006. +     rm -f *.orig */*.orig *~ */*~ core $(addedbyconf) h2ph h2ph.man
  5007. +     rm -f perly.c perly.h t/perl Makefile config.h makedepend makedir
  5008. +     rm -f makefile x2p/Makefile x2p/makefile cflags x2p/cflags
  5009. +     rm -f c2ph pstruct
  5010. + # The following lint has practically everything turned on.  Unfortunately,
  5011. + # you have to wade through a lot of mumbo jumbo that can't be suppressed.
  5012. + # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
  5013. + # for that spot.
  5014. + lint: perly.c $(c)
  5015. +     lint $(lintflags) $(defs) perly.c $(c) > perl.fuzz
  5016. + depend: makedepend
  5017. +     - test -f perly.h || cp /dev/null perly.h
  5018. +     ./makedepend
  5019. +     - test -s perly.h || /bin/rm -f perly.h
  5020. +     cd x2p; $(MAKE) depend
  5021. + test: perl
  5022. +     - cd t && chmod +x TEST */*.t
  5023. +     - cd t && (rm -f perl; $(LN_S) ../perl perl) && ./perl TEST
  5024. + clist:
  5025. +     echo $(c) | tr ' ' '\012' >.clist
  5026. + hlist:
  5027. +     echo $(h) | tr ' ' '\012' >.hlist
  5028. + shlist:
  5029. +     echo $(sh) | tr ' ' '\012' >.shlist
  5030. + Makefile:    config.status $(srcdir)/Makefile.in
  5031. +         $(SHELL) config.status
  5032. + config.h:    stamp-config ;
  5033. + stamp-config:    config.status $(srcdir)/config.h.in
  5034. +         $(SHELL) config.status
  5035. +         touch stamp-config
  5036. + configure:    configure.in
  5037. +         autoconf $(ACFLAGS)
  5038. + #config.h.in:    configure.in
  5039. + #        autoheader $(ACFLAGS)
  5040. + # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
  5041. + # If this runs make out of memory, delete /gnu/include lines.
  5042. + array.o: 
  5043. + array.o: EXTERN.h
  5044. + array.o: arg.h
  5045. + array.o: array.c
  5046. + array.o: array.h
  5047. + array.o: cmd.h
  5048. + array.o: config.h
  5049. + array.o: form.h
  5050. + array.o: /gnu/include/ctype.h
  5051. + array.o: /gnu/include/db.h
  5052. + array.o: /gnu/include/dirent.h
  5053. + array.o: /gnu/include/errno.h
  5054. + array.o: /gnu/include/machine/ansi.h
  5055. + array.o: /gnu/include/machine/endian.h
  5056. + array.o: /gnu/include/machine/limits.h
  5057. + array.o: /gnu/include/machine/param.h
  5058. + array.o: /gnu/include/machine/types.h
  5059. + array.o: /gnu/include/ndbm.h
  5060. + array.o: /gnu/include/setjmp.h
  5061. + array.o: /gnu/include/signal.h
  5062. + array.o: /gnu/include/stdio.h
  5063. + array.o: /gnu/include/sys/cdefs.h
  5064. + array.o: /gnu/include/sys/ioctl.h
  5065. + array.o: /gnu/include/sys/param.h
  5066. + array.o: /gnu/include/sys/signal.h
  5067. + array.o: /gnu/include/sys/stat.h
  5068. + array.o: /gnu/include/sys/syslimits.h
  5069. + array.o: /gnu/include/sys/time.h
  5070. + array.o: /gnu/include/sys/times.h
  5071. + array.o: /gnu/include/sys/types.h
  5072. + array.o: /gnu/include/time.h
  5073. + array.o: handy.h
  5074. + array.o: hash.h
  5075. + array.o: perl.h
  5076. + array.o: regexp.h
  5077. + array.o: spat.h
  5078. + array.o: stab.h
  5079. + array.o: str.h
  5080. + array.o: util.h
  5081. + cmd.o: 
  5082. + cmd.o: EXTERN.h
  5083. + cmd.o: arg.h
  5084. + cmd.o: array.h
  5085. + cmd.o: cmd.c
  5086. + cmd.o: cmd.h
  5087. + cmd.o: config.h
  5088. + cmd.o: form.h
  5089. + cmd.o: /gnu/include/ctype.h
  5090. + cmd.o: /gnu/include/db.h
  5091. + cmd.o: /gnu/include/dirent.h
  5092. + cmd.o: /gnu/include/errno.h
  5093. + cmd.o: /gnu/include/machine/ansi.h
  5094. + cmd.o: /gnu/include/machine/endian.h
  5095. + cmd.o: /gnu/include/machine/limits.h
  5096. + cmd.o: /gnu/include/machine/param.h
  5097. + cmd.o: /gnu/include/machine/stdarg.h
  5098. + cmd.o: /gnu/include/machine/types.h
  5099. + cmd.o: /gnu/include/ndbm.h
  5100. + cmd.o: /gnu/include/setjmp.h
  5101. + cmd.o: /gnu/include/signal.h
  5102. + cmd.o: /gnu/include/stdarg.h
  5103. + cmd.o: /gnu/include/stdio.h
  5104. + cmd.o: /gnu/include/sys/cdefs.h
  5105. + cmd.o: /gnu/include/sys/ioctl.h
  5106. + cmd.o: /gnu/include/sys/param.h
  5107. + cmd.o: /gnu/include/sys/signal.h
  5108. + cmd.o: /gnu/include/sys/stat.h
  5109. + cmd.o: /gnu/include/sys/syslimits.h
  5110. + cmd.o: /gnu/include/sys/time.h
  5111. + cmd.o: /gnu/include/sys/times.h
  5112. + cmd.o: /gnu/include/sys/types.h
  5113. + cmd.o: /gnu/include/time.h
  5114. + cmd.o: /gnu/include/varargs.h
  5115. + cmd.o: handy.h
  5116. + cmd.o: hash.h
  5117. + cmd.o: perl.h
  5118. + cmd.o: regexp.h
  5119. + cmd.o: spat.h
  5120. + cmd.o: stab.h
  5121. + cmd.o: str.h
  5122. + cmd.o: util.h
  5123. + cons.o: 
  5124. + cons.o: EXTERN.h
  5125. + cons.o: arg.h
  5126. + cons.o: array.h
  5127. + cons.o: cmd.h
  5128. + cons.o: config.h
  5129. + cons.o: cons.c
  5130. + cons.o: form.h
  5131. + cons.o: /gnu/include/ctype.h
  5132. + cons.o: /gnu/include/db.h
  5133. + cons.o: /gnu/include/dirent.h
  5134. + cons.o: /gnu/include/errno.h
  5135. + cons.o: /gnu/include/machine/ansi.h
  5136. + cons.o: /gnu/include/machine/endian.h
  5137. + cons.o: /gnu/include/machine/limits.h
  5138. + cons.o: /gnu/include/machine/param.h
  5139. + cons.o: /gnu/include/machine/types.h
  5140. + cons.o: /gnu/include/ndbm.h
  5141. + cons.o: /gnu/include/setjmp.h
  5142. + cons.o: /gnu/include/signal.h
  5143. + cons.o: /gnu/include/stdio.h
  5144. + cons.o: /gnu/include/sys/cdefs.h
  5145. + cons.o: /gnu/include/sys/ioctl.h
  5146. + cons.o: /gnu/include/sys/param.h
  5147. + cons.o: /gnu/include/sys/signal.h
  5148. + cons.o: /gnu/include/sys/stat.h
  5149. + cons.o: /gnu/include/sys/syslimits.h
  5150. + cons.o: /gnu/include/sys/time.h
  5151. + cons.o: /gnu/include/sys/times.h
  5152. + cons.o: /gnu/include/sys/types.h
  5153. + cons.o: /gnu/include/time.h
  5154. + cons.o: handy.h
  5155. + cons.o: hash.h
  5156. + cons.o: perl.h
  5157. + cons.o: perly.h
  5158. + cons.o: regexp.h
  5159. + cons.o: spat.h
  5160. + cons.o: stab.h
  5161. + cons.o: str.h
  5162. + cons.o: util.h
  5163. + consarg.o: 
  5164. + consarg.o: EXTERN.h
  5165. + consarg.o: arg.h
  5166. + consarg.o: array.h
  5167. + consarg.o: cmd.h
  5168. + consarg.o: config.h
  5169. + consarg.o: consarg.c
  5170. + consarg.o: form.h
  5171. + consarg.o: /gnu/include/ctype.h
  5172. + consarg.o: /gnu/include/db.h
  5173. + consarg.o: /gnu/include/dirent.h
  5174. + consarg.o: /gnu/include/errno.h
  5175. + consarg.o: /gnu/include/machine/ansi.h
  5176. + consarg.o: /gnu/include/machine/endian.h
  5177. + consarg.o: /gnu/include/machine/limits.h
  5178. + consarg.o: /gnu/include/machine/param.h
  5179. + consarg.o: /gnu/include/machine/types.h
  5180. + consarg.o: /gnu/include/ndbm.h
  5181. + consarg.o: /gnu/include/setjmp.h
  5182. + consarg.o: /gnu/include/signal.h
  5183. + consarg.o: /gnu/include/stdio.h
  5184. + consarg.o: /gnu/include/sys/cdefs.h
  5185. + consarg.o: /gnu/include/sys/ioctl.h
  5186. + consarg.o: /gnu/include/sys/param.h
  5187. + consarg.o: /gnu/include/sys/signal.h
  5188. + consarg.o: /gnu/include/sys/stat.h
  5189. + consarg.o: /gnu/include/sys/syslimits.h
  5190. + consarg.o: /gnu/include/sys/time.h
  5191. + consarg.o: /gnu/include/sys/times.h
  5192. + consarg.o: /gnu/include/sys/types.h
  5193. + consarg.o: /gnu/include/time.h
  5194. + consarg.o: handy.h
  5195. + consarg.o: hash.h
  5196. + consarg.o: perl.h
  5197. + consarg.o: regexp.h
  5198. + consarg.o: spat.h
  5199. + consarg.o: stab.h
  5200. + consarg.o: str.h
  5201. + consarg.o: util.h
  5202. + doarg.o: 
  5203. + doarg.o: EXTERN.h
  5204. + doarg.o: arg.h
  5205. + doarg.o: array.h
  5206. + doarg.o: cmd.h
  5207. + doarg.o: config.h
  5208. + doarg.o: doarg.c
  5209. + doarg.o: form.h
  5210. + doarg.o: /gnu/include/ctype.h
  5211. + doarg.o: /gnu/include/db.h
  5212. + doarg.o: /gnu/include/dirent.h
  5213. + doarg.o: /gnu/include/errno.h
  5214. + doarg.o: /gnu/include/machine/ansi.h
  5215. + doarg.o: /gnu/include/machine/endian.h
  5216. + doarg.o: /gnu/include/machine/limits.h
  5217. + doarg.o: /gnu/include/machine/param.h
  5218. + doarg.o: /gnu/include/machine/types.h
  5219. + doarg.o: /gnu/include/ndbm.h
  5220. + doarg.o: /gnu/include/setjmp.h
  5221. + doarg.o: /gnu/include/signal.h
  5222. + doarg.o: /gnu/include/stdio.h
  5223. + doarg.o: /gnu/include/sys/cdefs.h
  5224. + doarg.o: /gnu/include/sys/ioctl.h
  5225. + doarg.o: /gnu/include/sys/param.h
  5226. + doarg.o: /gnu/include/sys/signal.h
  5227. + doarg.o: /gnu/include/sys/stat.h
  5228. + doarg.o: /gnu/include/sys/syslimits.h
  5229. + doarg.o: /gnu/include/sys/time.h
  5230. + doarg.o: /gnu/include/sys/times.h
  5231. + doarg.o: /gnu/include/sys/types.h
  5232. + doarg.o: /gnu/include/time.h
  5233. + doarg.o: handy.h
  5234. + doarg.o: hash.h
  5235. + doarg.o: perl.h
  5236. + doarg.o: regexp.h
  5237. + doarg.o: spat.h
  5238. + doarg.o: stab.h
  5239. + doarg.o: str.h
  5240. + doarg.o: util.h
  5241. + doio.o: 
  5242. + doio.o: EXTERN.h
  5243. + doio.o: arg.h
  5244. + doio.o: array.h
  5245. + doio.o: cmd.h
  5246. + doio.o: config.h
  5247. + doio.o: doio.c
  5248. + doio.o: form.h
  5249. + doio.o: /gnu/include/ctype.h
  5250. + doio.o: /gnu/include/db.h
  5251. + doio.o: /gnu/include/dirent.h
  5252. + doio.o: /gnu/include/errno.h
  5253. + doio.o: /gnu/include/grp.h
  5254. + doio.o: /gnu/include/machine/ansi.h
  5255. + doio.o: /gnu/include/machine/endian.h
  5256. + doio.o: /gnu/include/machine/limits.h
  5257. + doio.o: /gnu/include/machine/param.h
  5258. + doio.o: /gnu/include/machine/types.h
  5259. + doio.o: /gnu/include/ndbm.h
  5260. + doio.o: /gnu/include/setjmp.h
  5261. + doio.o: /gnu/include/signal.h
  5262. + doio.o: /gnu/include/stdio.h
  5263. + doio.o: /gnu/include/sys/cdefs.h
  5264. + doio.o: /gnu/include/sys/fcntl.h
  5265. + doio.o: /gnu/include/sys/file.h
  5266. + doio.o: /gnu/include/sys/ioctl.h
  5267. + doio.o: /gnu/include/sys/param.h
  5268. + doio.o: /gnu/include/sys/signal.h
  5269. + doio.o: /gnu/include/sys/stat.h
  5270. + doio.o: /gnu/include/sys/syslimits.h
  5271. + doio.o: /gnu/include/sys/time.h
  5272. + doio.o: /gnu/include/sys/times.h
  5273. + doio.o: /gnu/include/sys/types.h
  5274. + doio.o: /gnu/include/sys/unistd.h
  5275. + doio.o: /gnu/include/time.h
  5276. + doio.o: /gnu/include/utime.h
  5277. + doio.o: handy.h
  5278. + doio.o: hash.h
  5279. + doio.o: perl.h
  5280. + doio.o: regexp.h
  5281. + doio.o: spat.h
  5282. + doio.o: stab.h
  5283. + doio.o: str.h
  5284. + doio.o: util.h
  5285. + dolist.o: 
  5286. + dolist.o: EXTERN.h
  5287. + dolist.o: arg.h
  5288. + dolist.o: array.h
  5289. + dolist.o: cmd.h
  5290. + dolist.o: config.h
  5291. + dolist.o: dolist.c
  5292. + dolist.o: form.h
  5293. + dolist.o: /gnu/include/ctype.h
  5294. + dolist.o: /gnu/include/db.h
  5295. + dolist.o: /gnu/include/dirent.h
  5296. + dolist.o: /gnu/include/errno.h
  5297. + dolist.o: /gnu/include/machine/ansi.h
  5298. + dolist.o: /gnu/include/machine/endian.h
  5299. + dolist.o: /gnu/include/machine/limits.h
  5300. + dolist.o: /gnu/include/machine/param.h
  5301. + dolist.o: /gnu/include/machine/types.h
  5302. + dolist.o: /gnu/include/ndbm.h
  5303. + dolist.o: /gnu/include/setjmp.h
  5304. + dolist.o: /gnu/include/signal.h
  5305. + dolist.o: /gnu/include/stdio.h
  5306. + dolist.o: /gnu/include/sys/cdefs.h
  5307. + dolist.o: /gnu/include/sys/ioctl.h
  5308. + dolist.o: /gnu/include/sys/param.h
  5309. + dolist.o: /gnu/include/sys/signal.h
  5310. + dolist.o: /gnu/include/sys/stat.h
  5311. + dolist.o: /gnu/include/sys/syslimits.h
  5312. + dolist.o: /gnu/include/sys/time.h
  5313. + dolist.o: /gnu/include/sys/times.h
  5314. + dolist.o: /gnu/include/sys/types.h
  5315. + dolist.o: /gnu/include/time.h
  5316. + dolist.o: handy.h
  5317. + dolist.o: hash.h
  5318. + dolist.o: perl.h
  5319. + dolist.o: regexp.h
  5320. + dolist.o: spat.h
  5321. + dolist.o: stab.h
  5322. + dolist.o: str.h
  5323. + dolist.o: util.h
  5324. + dump.o: 
  5325. + dump.o: EXTERN.h
  5326. + dump.o: arg.h
  5327. + dump.o: array.h
  5328. + dump.o: cmd.h
  5329. + dump.o: config.h
  5330. + dump.o: dump.c
  5331. + dump.o: form.h
  5332. + dump.o: /gnu/include/ctype.h
  5333. + dump.o: /gnu/include/db.h
  5334. + dump.o: /gnu/include/dirent.h
  5335. + dump.o: /gnu/include/errno.h
  5336. + dump.o: /gnu/include/machine/ansi.h
  5337. + dump.o: /gnu/include/machine/endian.h
  5338. + dump.o: /gnu/include/machine/limits.h
  5339. + dump.o: /gnu/include/machine/param.h
  5340. + dump.o: /gnu/include/machine/types.h
  5341. + dump.o: /gnu/include/ndbm.h
  5342. + dump.o: /gnu/include/setjmp.h
  5343. + dump.o: /gnu/include/signal.h
  5344. + dump.o: /gnu/include/stdio.h
  5345. + dump.o: /gnu/include/sys/cdefs.h
  5346. + dump.o: /gnu/include/sys/ioctl.h
  5347. + dump.o: /gnu/include/sys/param.h
  5348. + dump.o: /gnu/include/sys/signal.h
  5349. + dump.o: /gnu/include/sys/stat.h
  5350. + dump.o: /gnu/include/sys/syslimits.h
  5351. + dump.o: /gnu/include/sys/time.h
  5352. + dump.o: /gnu/include/sys/times.h
  5353. + dump.o: /gnu/include/sys/types.h
  5354. + dump.o: /gnu/include/time.h
  5355. + dump.o: handy.h
  5356. + dump.o: hash.h
  5357. + dump.o: perl.h
  5358. + dump.o: regexp.h
  5359. + dump.o: spat.h
  5360. + dump.o: stab.h
  5361. + dump.o: str.h
  5362. + dump.o: util.h
  5363. + eval.o: 
  5364. + eval.o: EXTERN.h
  5365. + eval.o: arg.h
  5366. + eval.o: array.h
  5367. + eval.o: cmd.h
  5368. + eval.o: config.h
  5369. + eval.o: eval.c
  5370. + eval.o: form.h
  5371. + eval.o: /gnu/include/ctype.h
  5372. + eval.o: /gnu/include/db.h
  5373. + eval.o: /gnu/include/dirent.h
  5374. + eval.o: /gnu/include/errno.h
  5375. + eval.o: /gnu/include/machine/ansi.h
  5376. + eval.o: /gnu/include/machine/endian.h
  5377. + eval.o: /gnu/include/machine/limits.h
  5378. + eval.o: /gnu/include/machine/param.h
  5379. + eval.o: /gnu/include/machine/types.h
  5380. + eval.o: /gnu/include/ndbm.h
  5381. + eval.o: /gnu/include/setjmp.h
  5382. + eval.o: /gnu/include/signal.h
  5383. + eval.o: /gnu/include/stdio.h
  5384. + eval.o: /gnu/include/sys/cdefs.h
  5385. + eval.o: /gnu/include/sys/fcntl.h
  5386. + eval.o: /gnu/include/sys/file.h
  5387. + eval.o: /gnu/include/sys/ioctl.h
  5388. + eval.o: /gnu/include/sys/param.h
  5389. + eval.o: /gnu/include/sys/signal.h
  5390. + eval.o: /gnu/include/sys/stat.h
  5391. + eval.o: /gnu/include/sys/syslimits.h
  5392. + eval.o: /gnu/include/sys/time.h
  5393. + eval.o: /gnu/include/sys/times.h
  5394. + eval.o: /gnu/include/sys/types.h
  5395. + eval.o: /gnu/include/sys/unistd.h
  5396. + eval.o: /gnu/include/time.h
  5397. + eval.o: handy.h
  5398. + eval.o: hash.h
  5399. + eval.o: perl.h
  5400. + eval.o: regexp.h
  5401. + eval.o: spat.h
  5402. + eval.o: stab.h
  5403. + eval.o: str.h
  5404. + eval.o: util.h
  5405. + form.o: 
  5406. + form.o: EXTERN.h
  5407. + form.o: arg.h
  5408. + form.o: array.h
  5409. + form.o: cmd.h
  5410. + form.o: config.h
  5411. + form.o: form.c
  5412. + form.o: form.h
  5413. + form.o: /gnu/include/ctype.h
  5414. + form.o: /gnu/include/db.h
  5415. + form.o: /gnu/include/dirent.h
  5416. + form.o: /gnu/include/errno.h
  5417. + form.o: /gnu/include/machine/ansi.h
  5418. + form.o: /gnu/include/machine/endian.h
  5419. + form.o: /gnu/include/machine/limits.h
  5420. + form.o: /gnu/include/machine/param.h
  5421. + form.o: /gnu/include/machine/types.h
  5422. + form.o: /gnu/include/ndbm.h
  5423. + form.o: /gnu/include/setjmp.h
  5424. + form.o: /gnu/include/signal.h
  5425. + form.o: /gnu/include/stdio.h
  5426. + form.o: /gnu/include/sys/cdefs.h
  5427. + form.o: /gnu/include/sys/ioctl.h
  5428. + form.o: /gnu/include/sys/param.h
  5429. + form.o: /gnu/include/sys/signal.h
  5430. + form.o: /gnu/include/sys/stat.h
  5431. + form.o: /gnu/include/sys/syslimits.h
  5432. + form.o: /gnu/include/sys/time.h
  5433. + form.o: /gnu/include/sys/times.h
  5434. + form.o: /gnu/include/sys/types.h
  5435. + form.o: /gnu/include/time.h
  5436. + form.o: handy.h
  5437. + form.o: hash.h
  5438. + form.o: perl.h
  5439. + form.o: regexp.h
  5440. + form.o: spat.h
  5441. + form.o: stab.h
  5442. + form.o: str.h
  5443. + form.o: util.h
  5444. + hash.o: 
  5445. + hash.o: EXTERN.h
  5446. + hash.o: arg.h
  5447. + hash.o: array.h
  5448. + hash.o: cmd.h
  5449. + hash.o: config.h
  5450. + hash.o: form.h
  5451. + hash.o: /gnu/include/ctype.h
  5452. + hash.o: /gnu/include/db.h
  5453. + hash.o: /gnu/include/dirent.h
  5454. + hash.o: /gnu/include/errno.h
  5455. + hash.o: /gnu/include/machine/ansi.h
  5456. + hash.o: /gnu/include/machine/endian.h
  5457. + hash.o: /gnu/include/machine/limits.h
  5458. + hash.o: /gnu/include/machine/param.h
  5459. + hash.o: /gnu/include/machine/types.h
  5460. + hash.o: /gnu/include/ndbm.h
  5461. + hash.o: /gnu/include/setjmp.h
  5462. + hash.o: /gnu/include/signal.h
  5463. + hash.o: /gnu/include/stdio.h
  5464. + hash.o: /gnu/include/sys/cdefs.h
  5465. + hash.o: /gnu/include/sys/fcntl.h
  5466. + hash.o: /gnu/include/sys/file.h
  5467. + hash.o: /gnu/include/sys/ioctl.h
  5468. + hash.o: /gnu/include/sys/param.h
  5469. + hash.o: /gnu/include/sys/signal.h
  5470. + hash.o: /gnu/include/sys/stat.h
  5471. + hash.o: /gnu/include/sys/syslimits.h
  5472. + hash.o: /gnu/include/sys/time.h
  5473. + hash.o: /gnu/include/sys/times.h
  5474. + hash.o: /gnu/include/sys/types.h
  5475. + hash.o: /gnu/include/sys/unistd.h
  5476. + hash.o: /gnu/include/time.h
  5477. + hash.o: handy.h
  5478. + hash.o: hash.c
  5479. + hash.o: hash.h
  5480. + hash.o: perl.h
  5481. + hash.o: regexp.h
  5482. + hash.o: spat.h
  5483. + hash.o: stab.h
  5484. + hash.o: str.h
  5485. + hash.o: util.h
  5486. + perl.o: 
  5487. + perl.o: EXTERN.h
  5488. + perl.o: arg.h
  5489. + perl.o: array.h
  5490. + perl.o: cmd.h
  5491. + perl.o: config.h
  5492. + perl.o: form.h
  5493. + perl.o: /gnu/include/ctype.h
  5494. + perl.o: /gnu/include/db.h
  5495. + perl.o: /gnu/include/dirent.h
  5496. + perl.o: /gnu/include/errno.h
  5497. + perl.o: /gnu/include/machine/ansi.h
  5498. + perl.o: /gnu/include/machine/endian.h
  5499. + perl.o: /gnu/include/machine/limits.h
  5500. + perl.o: /gnu/include/machine/param.h
  5501. + perl.o: /gnu/include/machine/types.h
  5502. + perl.o: /gnu/include/ndbm.h
  5503. + perl.o: /gnu/include/setjmp.h
  5504. + perl.o: /gnu/include/signal.h
  5505. + perl.o: /gnu/include/stdio.h
  5506. + perl.o: /gnu/include/sys/cdefs.h
  5507. + perl.o: /gnu/include/sys/ioctl.h
  5508. + perl.o: /gnu/include/sys/param.h
  5509. + perl.o: /gnu/include/sys/signal.h
  5510. + perl.o: /gnu/include/sys/stat.h
  5511. + perl.o: /gnu/include/sys/syslimits.h
  5512. + perl.o: /gnu/include/sys/time.h
  5513. + perl.o: /gnu/include/sys/times.h
  5514. + perl.o: /gnu/include/sys/types.h
  5515. + perl.o: /gnu/include/time.h
  5516. + perl.o: handy.h
  5517. + perl.o: hash.h
  5518. + perl.o: patchlevel.h
  5519. + perl.o: perl.c
  5520. + perl.o: perl.h
  5521. + perl.o: perly.h
  5522. + perl.o: regexp.h
  5523. + perl.o: spat.h
  5524. + perl.o: stab.h
  5525. + perl.o: str.h
  5526. + perl.o: util.h
  5527. + regcomp.o: 
  5528. + regcomp.o: EXTERN.h
  5529. + regcomp.o: INTERN.h
  5530. + regcomp.o: arg.h
  5531. + regcomp.o: array.h
  5532. + regcomp.o: cmd.h
  5533. + regcomp.o: config.h
  5534. + regcomp.o: form.h
  5535. + regcomp.o: /gnu/include/ctype.h
  5536. + regcomp.o: /gnu/include/db.h
  5537. + regcomp.o: /gnu/include/dirent.h
  5538. + regcomp.o: /gnu/include/errno.h
  5539. + regcomp.o: /gnu/include/machine/ansi.h
  5540. + regcomp.o: /gnu/include/machine/endian.h
  5541. + regcomp.o: /gnu/include/machine/limits.h
  5542. + regcomp.o: /gnu/include/machine/param.h
  5543. + regcomp.o: /gnu/include/machine/types.h
  5544. + regcomp.o: /gnu/include/ndbm.h
  5545. + regcomp.o: /gnu/include/setjmp.h
  5546. + regcomp.o: /gnu/include/signal.h
  5547. + regcomp.o: /gnu/include/stdio.h
  5548. + regcomp.o: /gnu/include/sys/cdefs.h
  5549. + regcomp.o: /gnu/include/sys/ioctl.h
  5550. + regcomp.o: /gnu/include/sys/param.h
  5551. + regcomp.o: /gnu/include/sys/signal.h
  5552. + regcomp.o: /gnu/include/sys/stat.h
  5553. + regcomp.o: /gnu/include/sys/syslimits.h
  5554. + regcomp.o: /gnu/include/sys/time.h
  5555. + regcomp.o: /gnu/include/sys/times.h
  5556. + regcomp.o: /gnu/include/sys/types.h
  5557. + regcomp.o: /gnu/include/time.h
  5558. + regcomp.o: handy.h
  5559. + regcomp.o: hash.h
  5560. + regcomp.o: perl.h
  5561. + regcomp.o: regcomp.c
  5562. + regcomp.o: regcomp.h
  5563. + regcomp.o: regexp.h
  5564. + regcomp.o: spat.h
  5565. + regcomp.o: stab.h
  5566. + regcomp.o: str.h
  5567. + regcomp.o: util.h
  5568. + regexec.o: 
  5569. + regexec.o: EXTERN.h
  5570. + regexec.o: arg.h
  5571. + regexec.o: array.h
  5572. + regexec.o: cmd.h
  5573. + regexec.o: config.h
  5574. + regexec.o: form.h
  5575. + regexec.o: /gnu/include/ctype.h
  5576. + regexec.o: /gnu/include/db.h
  5577. + regexec.o: /gnu/include/dirent.h
  5578. + regexec.o: /gnu/include/errno.h
  5579. + regexec.o: /gnu/include/machine/ansi.h
  5580. + regexec.o: /gnu/include/machine/endian.h
  5581. + regexec.o: /gnu/include/machine/limits.h
  5582. + regexec.o: /gnu/include/machine/param.h
  5583. + regexec.o: /gnu/include/machine/types.h
  5584. + regexec.o: /gnu/include/ndbm.h
  5585. + regexec.o: /gnu/include/setjmp.h
  5586. + regexec.o: /gnu/include/signal.h
  5587. + regexec.o: /gnu/include/stdio.h
  5588. + regexec.o: /gnu/include/sys/cdefs.h
  5589. + regexec.o: /gnu/include/sys/ioctl.h
  5590. + regexec.o: /gnu/include/sys/param.h
  5591. + regexec.o: /gnu/include/sys/signal.h
  5592. + regexec.o: /gnu/include/sys/stat.h
  5593. + regexec.o: /gnu/include/sys/syslimits.h
  5594. + regexec.o: /gnu/include/sys/time.h
  5595. + regexec.o: /gnu/include/sys/times.h
  5596. + regexec.o: /gnu/include/sys/types.h
  5597. + regexec.o: /gnu/include/time.h
  5598. + regexec.o: handy.h
  5599. + regexec.o: hash.h
  5600. + regexec.o: perl.h
  5601. + regexec.o: regcomp.h
  5602. + regexec.o: regexec.c
  5603. + regexec.o: regexp.h
  5604. + regexec.o: spat.h
  5605. + regexec.o: stab.h
  5606. + regexec.o: str.h
  5607. + regexec.o: util.h
  5608. + stab.o: 
  5609. + stab.o: EXTERN.h
  5610. + stab.o: arg.h
  5611. + stab.o: array.h
  5612. + stab.o: cmd.h
  5613. + stab.o: config.h
  5614. + stab.o: form.h
  5615. + stab.o: /gnu/include/ctype.h
  5616. + stab.o: /gnu/include/db.h
  5617. + stab.o: /gnu/include/dirent.h
  5618. + stab.o: /gnu/include/errno.h
  5619. + stab.o: /gnu/include/machine/ansi.h
  5620. + stab.o: /gnu/include/machine/endian.h
  5621. + stab.o: /gnu/include/machine/limits.h
  5622. + stab.o: /gnu/include/machine/param.h
  5623. + stab.o: /gnu/include/machine/types.h
  5624. + stab.o: /gnu/include/ndbm.h
  5625. + stab.o: /gnu/include/setjmp.h
  5626. + stab.o: /gnu/include/signal.h
  5627. + stab.o: /gnu/include/stdio.h
  5628. + stab.o: /gnu/include/sys/cdefs.h
  5629. + stab.o: /gnu/include/sys/ioctl.h
  5630. + stab.o: /gnu/include/sys/param.h
  5631. + stab.o: /gnu/include/sys/signal.h
  5632. + stab.o: /gnu/include/sys/stat.h
  5633. + stab.o: /gnu/include/sys/syslimits.h
  5634. + stab.o: /gnu/include/sys/time.h
  5635. + stab.o: /gnu/include/sys/times.h
  5636. + stab.o: /gnu/include/sys/types.h
  5637. + stab.o: /gnu/include/time.h
  5638. + stab.o: handy.h
  5639. + stab.o: hash.h
  5640. + stab.o: perl.h
  5641. + stab.o: regexp.h
  5642. + stab.o: spat.h
  5643. + stab.o: stab.c
  5644. + stab.o: stab.h
  5645. + stab.o: str.h
  5646. + stab.o: util.h
  5647. + str.o: 
  5648. + str.o: EXTERN.h
  5649. + str.o: arg.h
  5650. + str.o: array.h
  5651. + str.o: cmd.h
  5652. + str.o: config.h
  5653. + str.o: form.h
  5654. + str.o: /gnu/include/ctype.h
  5655. + str.o: /gnu/include/db.h
  5656. + str.o: /gnu/include/dirent.h
  5657. + str.o: /gnu/include/errno.h
  5658. + str.o: /gnu/include/machine/ansi.h
  5659. + str.o: /gnu/include/machine/endian.h
  5660. + str.o: /gnu/include/machine/limits.h
  5661. + str.o: /gnu/include/machine/param.h
  5662. + str.o: /gnu/include/machine/types.h
  5663. + str.o: /gnu/include/ndbm.h
  5664. + str.o: /gnu/include/setjmp.h
  5665. + str.o: /gnu/include/signal.h
  5666. + str.o: /gnu/include/stdio.h
  5667. + str.o: /gnu/include/sys/cdefs.h
  5668. + str.o: /gnu/include/sys/ioctl.h
  5669. + str.o: /gnu/include/sys/param.h
  5670. + str.o: /gnu/include/sys/signal.h
  5671. + str.o: /gnu/include/sys/stat.h
  5672. + str.o: /gnu/include/sys/syslimits.h
  5673. + str.o: /gnu/include/sys/time.h
  5674. + str.o: /gnu/include/sys/times.h
  5675. + str.o: /gnu/include/sys/types.h
  5676. + str.o: /gnu/include/time.h
  5677. + str.o: handy.h
  5678. + str.o: hash.h
  5679. + str.o: perl.h
  5680. + str.o: perly.h
  5681. + str.o: regexp.h
  5682. + str.o: spat.h
  5683. + str.o: stab.h
  5684. + str.o: str.c
  5685. + str.o: str.h
  5686. + str.o: util.h
  5687. + toke.o: 
  5688. + toke.o: EXTERN.h
  5689. + toke.o: arg.h
  5690. + toke.o: array.h
  5691. + toke.o: cmd.h
  5692. + toke.o: config.h
  5693. + toke.o: form.h
  5694. + toke.o: /gnu/include/ctype.h
  5695. + toke.o: /gnu/include/db.h
  5696. + toke.o: /gnu/include/dirent.h
  5697. + toke.o: /gnu/include/errno.h
  5698. + toke.o: /gnu/include/machine/ansi.h
  5699. + toke.o: /gnu/include/machine/endian.h
  5700. + toke.o: /gnu/include/machine/limits.h
  5701. + toke.o: /gnu/include/machine/param.h
  5702. + toke.o: /gnu/include/machine/types.h
  5703. + toke.o: /gnu/include/ndbm.h
  5704. + toke.o: /gnu/include/setjmp.h
  5705. + toke.o: /gnu/include/signal.h
  5706. + toke.o: /gnu/include/stdio.h
  5707. + toke.o: /gnu/include/sys/cdefs.h
  5708. + toke.o: /gnu/include/sys/fcntl.h
  5709. + toke.o: /gnu/include/sys/file.h
  5710. + toke.o: /gnu/include/sys/ioctl.h
  5711. + toke.o: /gnu/include/sys/param.h
  5712. + toke.o: /gnu/include/sys/signal.h
  5713. + toke.o: /gnu/include/sys/stat.h
  5714. + toke.o: /gnu/include/sys/syslimits.h
  5715. + toke.o: /gnu/include/sys/time.h
  5716. + toke.o: /gnu/include/sys/times.h
  5717. + toke.o: /gnu/include/sys/types.h
  5718. + toke.o: /gnu/include/sys/unistd.h
  5719. + toke.o: /gnu/include/time.h
  5720. + toke.o: handy.h
  5721. + toke.o: hash.h
  5722. + toke.o: perl.h
  5723. + toke.o: perly.h
  5724. + toke.o: regexp.h
  5725. + toke.o: spat.h
  5726. + toke.o: stab.h
  5727. + toke.o: str.h
  5728. + toke.o: toke.c
  5729. + toke.o: util.h
  5730. + util.o: 
  5731. + util.o: EXTERN.h
  5732. + util.o: arg.h
  5733. + util.o: array.h
  5734. + util.o: cmd.h
  5735. + util.o: config.h
  5736. + util.o: form.h
  5737. + util.o: /gnu/include/ctype.h
  5738. + util.o: /gnu/include/db.h
  5739. + util.o: /gnu/include/dirent.h
  5740. + util.o: /gnu/include/errno.h
  5741. + util.o: /gnu/include/machine/ansi.h
  5742. + util.o: /gnu/include/machine/endian.h
  5743. + util.o: /gnu/include/machine/limits.h
  5744. + util.o: /gnu/include/machine/param.h
  5745. + util.o: /gnu/include/machine/stdarg.h
  5746. + util.o: /gnu/include/machine/types.h
  5747. + util.o: /gnu/include/ndbm.h
  5748. + util.o: /gnu/include/setjmp.h
  5749. + util.o: /gnu/include/signal.h
  5750. + util.o: /gnu/include/stdarg.h
  5751. + util.o: /gnu/include/stdio.h
  5752. + util.o: /gnu/include/sys/cdefs.h
  5753. + util.o: /gnu/include/sys/fcntl.h
  5754. + util.o: /gnu/include/sys/file.h
  5755. + util.o: /gnu/include/sys/ioctl.h
  5756. + util.o: /gnu/include/sys/param.h
  5757. + util.o: /gnu/include/sys/signal.h
  5758. + util.o: /gnu/include/sys/stat.h
  5759. + util.o: /gnu/include/sys/syslimits.h
  5760. + util.o: /gnu/include/sys/time.h
  5761. + util.o: /gnu/include/sys/times.h
  5762. + util.o: /gnu/include/sys/types.h
  5763. + util.o: /gnu/include/sys/unistd.h
  5764. + util.o: /gnu/include/time.h
  5765. + util.o: /gnu/include/varargs.h
  5766. + util.o: handy.h
  5767. + util.o: hash.h
  5768. + util.o: perl.h
  5769. + util.o: regexp.h
  5770. + util.o: spat.h
  5771. + util.o: stab.h
  5772. + util.o: str.h
  5773. + util.o: util.c
  5774. + util.o: util.h
  5775. + usersub.o: 
  5776. + usersub.o: EXTERN.h
  5777. + usersub.o: arg.h
  5778. + usersub.o: array.h
  5779. + usersub.o: cmd.h
  5780. + usersub.o: config.h
  5781. + usersub.o: form.h
  5782. + usersub.o: /gnu/include/ctype.h
  5783. + usersub.o: /gnu/include/db.h
  5784. + usersub.o: /gnu/include/dirent.h
  5785. + usersub.o: /gnu/include/errno.h
  5786. + usersub.o: /gnu/include/machine/ansi.h
  5787. + usersub.o: /gnu/include/machine/endian.h
  5788. + usersub.o: /gnu/include/machine/limits.h
  5789. + usersub.o: /gnu/include/machine/param.h
  5790. + usersub.o: /gnu/include/machine/types.h
  5791. + usersub.o: /gnu/include/ndbm.h
  5792. + usersub.o: /gnu/include/setjmp.h
  5793. + usersub.o: /gnu/include/signal.h
  5794. + usersub.o: /gnu/include/stdio.h
  5795. + usersub.o: /gnu/include/sys/cdefs.h
  5796. + usersub.o: /gnu/include/sys/ioctl.h
  5797. + usersub.o: /gnu/include/sys/param.h
  5798. + usersub.o: /gnu/include/sys/signal.h
  5799. + usersub.o: /gnu/include/sys/stat.h
  5800. + usersub.o: /gnu/include/sys/syslimits.h
  5801. + usersub.o: /gnu/include/sys/time.h
  5802. + usersub.o: /gnu/include/sys/times.h
  5803. + usersub.o: /gnu/include/sys/types.h
  5804. + usersub.o: /gnu/include/time.h
  5805. + usersub.o: handy.h
  5806. + usersub.o: hash.h
  5807. + usersub.o: perl.h
  5808. + usersub.o: regexp.h
  5809. + usersub.o: spat.h
  5810. + usersub.o: stab.h
  5811. + usersub.o: str.h
  5812. + usersub.o: usersub.c
  5813. + usersub.o: util.h
  5814. + # WARNING: Put nothing here or make depend will gobble it up!
  5815. diff -rc --new-file perl-4.036/Product-Info /gnu/src/amiga/perl-4.036/Product-Info
  5816. *** perl-4.036/Product-Info    Thu Jan  1 00:00:00 1970
  5817. --- /gnu/src/amiga/perl-4.036/Product-Info    Tue Jul 12 17:42:14 1994
  5818. ***************
  5819. *** 0 ****
  5820. --- 1,46 ----
  5821. + .name
  5822. + perl
  5823. + .fullname
  5824. + Practical Extraction and Report Language
  5825. + .type
  5826. + Programmer Tool
  5827. + .short
  5828. + Practical Extraction and Report Language
  5829. + .description
  5830. + Perl is an interpreted language optimized for scanning arbitrary text
  5831. + files, extracting information from those text files, and printing
  5832. + reports based on that information.  It's also a good language for many
  5833. + system management tasks.  The language is intended to be practical
  5834. + (easy to use, efficient, complete) rather than beautiful (tiny,
  5835. + elegant, minimal).  It combines (in the author's opinion, anyway) some
  5836. + of the best features of C, sed, awk, and sh, so people familiar with
  5837. + those languages should have little difficulty with it.  (Language
  5838. + historians will also note some vestiges of csh, Pascal, and even
  5839. + BASIC-PLUS.)  Expression syntax corresponds quite closely to C
  5840. + expression syntax.
  5841. + Unlike most Unix utilities, perl does not arbitrarily limit the size
  5842. + of your data.  If you've got the memory, perl can slurp in your whole
  5843. + file as a single string.  Recursion is of unlimited depth.  And the
  5844. + hash tables used by associative arrays grow as necessary to prevent
  5845. + degraded performance.  Perl uses sophisticated pattern matching
  5846. + techniques to scan large amounts of data very quickly.  Although
  5847. + optimized for scanning text, perl can also deal with binary data, and
  5848. + can make dbm files look like associative arrays (where dbm is
  5849. + available).  Setuid perl scripts are safer than C programs through a
  5850. + dataflow tracing mechanism which prevents many stupid security holes.
  5851. + If you have a problem that would ordinarily use sed or awk or sh, but
  5852. + it exceeds their capabilities or must run a little faster, and you
  5853. + don't want to write the silly thing in C, then perl may be for you.
  5854. + There are also translators to turn your sed and awk scripts into perl
  5855. + scripts.
  5856. + .version
  5857. + 4.036
  5858. + .author
  5859. + Larry Wall
  5860. + .distribution
  5861. + GNU Public License
  5862. + .email
  5863. + lwall@netlabs.com
  5864. + .described-by
  5865. + Fred Fish (fnf@amigalib.com)
  5866. diff -rc --new-file perl-4.036/config.H /gnu/src/amiga/perl-4.036/config.H
  5867. *** perl-4.036/config.H    Mon Feb  8 20:35:50 1993
  5868. --- /gnu/src/amiga/perl-4.036/config.H    Thu Jan  1 00:00:00 1970
  5869. ***************
  5870. *** 1,892 ****
  5871. - #ifndef config_h
  5872. - #define config_h
  5873. - /* config.h
  5874. -  * This file was produced by running the config.h.SH script, which
  5875. -  * gets its values from config.sh, which is generally produced by
  5876. -  * running Configure.
  5877. -  *
  5878. -  * Feel free to modify any of this as the need arises.  Note, however,
  5879. -  * that running config.h.SH again will wipe out any changes you've made.
  5880. -  * For a more permanent change edit config.sh and rerun config.h.SH.
  5881. -  */
  5882. -  /*SUPPRESS 460*/
  5883. - /* EUNICE
  5884. -  *    This symbol, if defined, indicates that the program is being compiled
  5885. -  *    under the EUNICE package under VMS.  The program will need to handle
  5886. -  *    things like files that don't go away the first time you unlink them,
  5887. -  *    due to version numbering.  It will also need to compensate for lack
  5888. -  *    of a respectable link() command.
  5889. -  */
  5890. - /* VMS
  5891. -  *    This symbol, if defined, indicates that the program is running under
  5892. -  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  5893. -  */
  5894. - /*#undef    EUNICE        /**/
  5895. - /*#undef    VMS        /**/
  5896. - /* LOC_SED
  5897. -  *     This symbol holds the complete pathname to the sed program.
  5898. -  */
  5899. - #define LOC_SED "/bin/sed"             /**/
  5900. - /* ALIGNBYTES
  5901. -  *    This symbol contains the number of bytes required to align a double.
  5902. -  *    Usual values are 2, 4, and 8.
  5903. -  */
  5904. - #define ALIGNBYTES 8        /**/
  5905. - /* BIN
  5906. -  *    This symbol holds the name of the directory in which the user wants
  5907. -  *    to keep publicly executable images for the package in question.  It
  5908. -  *    is most often a local directory such as /usr/local/bin.
  5909. -  */
  5910. - #define BIN "/usr/local/bin"             /**/
  5911. - /* BYTEORDER
  5912. -  *    This symbol contains an encoding of the order of bytes in a long.
  5913. -  *    Usual values (in hex) are 0x1234, 0x4321, 0x2143, 0x3412...
  5914. -  */
  5915. - #define BYTEORDER 0x4321        /**/
  5916. - /* CPPSTDIN
  5917. -  *    This symbol contains the first part of the string which will invoke
  5918. -  *    the C preprocessor on the standard input and produce to standard
  5919. -  *    output.     Typical value of "cc -E" or "/lib/cpp".
  5920. -  */
  5921. - /* CPPMINUS
  5922. -  *    This symbol contains the second part of the string which will invoke
  5923. -  *    the C preprocessor on the standard input and produce to standard
  5924. -  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  5925. -  *    to specify standard input, otherwise the value is "".
  5926. -  */
  5927. - #define CPPSTDIN "/usr/lib/cpp"
  5928. - #define CPPMINUS ""
  5929. - /* HAS_BCMP
  5930. -  *    This symbol, if defined, indicates that the bcmp routine is available
  5931. -  *    to compare blocks of memory.  If undefined, use memcmp.  If that's
  5932. -  *    not available, roll your own.
  5933. -  */
  5934. - #define    HAS_BCMP        /**/
  5935. - /* HAS_BCOPY
  5936. -  *    This symbol, if defined, indicates that the bcopy routine is available
  5937. -  *    to copy blocks of memory.  Otherwise you should probably use memcpy().
  5938. -  *    If neither is defined, roll your own.
  5939. -  */
  5940. - /* SAFE_BCOPY
  5941. -  *    This symbol, if defined, indicates that the bcopy routine is available
  5942. -  *    to copy potentially overlapping copy blocks of bcopy.  Otherwise you
  5943. -  *    should probably use memmove() or memcpy().  If neither is defined,
  5944. -  *    roll your own.
  5945. -  */
  5946. - #define    HAS_BCOPY        /**/
  5947. - #define    SAFE_BCOPY        /**/
  5948. - /* HAS_BZERO
  5949. -  *    This symbol, if defined, indicates that the bzero routine is available
  5950. -  *    to zero blocks of memory.  Otherwise you should probably use memset()
  5951. -  *    or roll your own.
  5952. -  */
  5953. - #define    HAS_BZERO        /**/
  5954. - /* CASTNEGFLOAT
  5955. -  *    This symbol, if defined, indicates that this C compiler knows how to
  5956. -  *    cast negative or large floating point numbers to unsigned longs, ints
  5957. -  *    and shorts.
  5958. -  */
  5959. - /* CASTFLAGS
  5960. -  *    This symbol contains flags that say what difficulties the compiler
  5961. -  *    has casting odd floating values to unsigned long:
  5962. -  *        1 = couldn't cast < 0
  5963. -  *        2 = couldn't cast >= 0x80000000
  5964. -  */
  5965. - #define    CASTNEGFLOAT    /**/
  5966. - #define    CASTFLAGS 0    /**/
  5967. - /* CHARSPRINTF
  5968. -  *    This symbol is defined if this system declares "char *sprintf()" in
  5969. -  *    stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
  5970. -  *    is up to the package author to declare sprintf correctly based on the
  5971. -  *    symbol.
  5972. -  */
  5973. - #define    CHARSPRINTF     /**/
  5974. - /* HAS_CHSIZE
  5975. -  *    This symbol, if defined, indicates that the chsize routine is available
  5976. -  *    to truncate files.  You might need a -lx to get this routine.
  5977. -  */
  5978. - /*#undef    HAS_CHSIZE        /**/
  5979. - /* HAS_CRYPT
  5980. -  *    This symbol, if defined, indicates that the crypt routine is available
  5981. -  *    to encrypt passwords and the like.
  5982. -  */
  5983. - #define    HAS_CRYPT        /**/
  5984. - /* CSH
  5985. -  *    This symbol, if defined, indicates that the C-shell exists.
  5986. -  *    If defined, contains the full pathname of csh.
  5987. -  */
  5988. - #define CSH "/bin/csh"        /**/
  5989. - /* DOSUID
  5990. -  *    This symbol, if defined, indicates that the C program should
  5991. -  *    check the script that it is executing for setuid/setgid bits, and
  5992. -  *    attempt to emulate setuid/setgid on systems that have disabled
  5993. -  *    setuid #! scripts because the kernel can't do it securely.
  5994. -  *    It is up to the package designer to make sure that this emulation
  5995. -  *    is done securely.  Among other things, it should do an fstat on
  5996. -  *    the script it just opened to make sure it really is a setuid/setgid
  5997. -  *    script, it should make sure the arguments passed correspond exactly
  5998. -  *    to the argument on the #! line, and it should not trust any
  5999. -  *    subprocesses to which it must pass the filename rather than the
  6000. -  *    file descriptor of the script to be executed.
  6001. -  */
  6002. - /*#undef DOSUID        /**/
  6003. - /* HAS_DUP2
  6004. -  *    This symbol, if defined, indicates that the dup2 routine is available
  6005. -  *    to dup file descriptors.  Otherwise you should use dup().
  6006. -  */
  6007. - #define    HAS_DUP2        /**/
  6008. - /* HAS_FCHMOD
  6009. -  *    This symbol, if defined, indicates that the fchmod routine is available
  6010. -  *    to change mode of opened files.  If unavailable, use chmod().
  6011. -  */
  6012. - #define    HAS_FCHMOD        /**/
  6013. - /* HAS_FCHOWN
  6014. -  *    This symbol, if defined, indicates that the fchown routine is available
  6015. -  *    to change ownership of opened files.  If unavailable, use chown().
  6016. -  */
  6017. - #define    HAS_FCHOWN        /**/
  6018. - /* HAS_FCNTL
  6019. -  *    This symbol, if defined, indicates to the C program that
  6020. -  *    the fcntl() function exists.
  6021. -  */
  6022. - #define    HAS_FCNTL        /**/
  6023. - /* FLEXFILENAMES
  6024. -  *    This symbol, if defined, indicates that the system supports filenames
  6025. -  *    longer than 14 characters.
  6026. -  */
  6027. - #define    FLEXFILENAMES        /**/
  6028. - /* HAS_FLOCK
  6029. -  *    This symbol, if defined, indicates that the flock() routine is
  6030. -  *    available to do file locking.
  6031. -  */
  6032. - #define    HAS_FLOCK        /**/
  6033. - /* HAS_GETGROUPS
  6034. -  *    This symbol, if defined, indicates that the getgroups() routine is
  6035. -  *    available to get the list of process groups.  If unavailable, multiple
  6036. -  *    groups are probably not supported.
  6037. -  */
  6038. - #define    HAS_GETGROUPS        /**/
  6039. - /* HAS_GETHOSTENT
  6040. -  *    This symbol, if defined, indicates that the gethostent() routine is
  6041. -  *    available to lookup host names in some data base or other.
  6042. -  */
  6043. - #define    HAS_GETHOSTENT        /**/
  6044. - /* HAS_GETPGRP
  6045. -  *    This symbol, if defined, indicates that the getpgrp() routine is
  6046. -  *    available to get the current process group.
  6047. -  */
  6048. - #define    HAS_GETPGRP        /**/
  6049. - /* HAS_GETPGRP2
  6050. -  *    This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
  6051. -  *    routine is available to get the current process group.
  6052. -  */
  6053. - /*#undef    HAS_GETPGRP2        /**/
  6054. - /* HAS_GETPRIORITY
  6055. -  *    This symbol, if defined, indicates that the getpriority() routine is
  6056. -  *    available to get a process's priority.
  6057. -  */
  6058. - #define    HAS_GETPRIORITY        /**/
  6059. - /* HAS_HTONS
  6060. -  *    This symbol, if defined, indicates that the htons routine (and friends)
  6061. -  *    are available to do network order byte swapping.
  6062. -  */
  6063. - /* HAS_HTONL
  6064. -  *    This symbol, if defined, indicates that the htonl routine (and friends)
  6065. -  *    are available to do network order byte swapping.
  6066. -  */
  6067. - /* HAS_NTOHS
  6068. -  *    This symbol, if defined, indicates that the ntohs routine (and friends)
  6069. -  *    are available to do network order byte swapping.
  6070. -  */
  6071. - /* HAS_NTOHL
  6072. -  *    This symbol, if defined, indicates that the ntohl routine (and friends)
  6073. -  *    are available to do network order byte swapping.
  6074. -  */
  6075. - #define    HAS_HTONS    /**/
  6076. - #define    HAS_HTONL    /**/
  6077. - #define    HAS_NTOHS    /**/
  6078. - #define    HAS_NTOHL    /**/
  6079. - /* index
  6080. -  *    This preprocessor symbol is defined, along with rindex, if the system
  6081. -  *    uses the strchr and strrchr routines instead.
  6082. -  */
  6083. - /* rindex
  6084. -  *    This preprocessor symbol is defined, along with index, if the system
  6085. -  *    uses the strchr and strrchr routines instead.
  6086. -  */
  6087. - /*#undef    index strchr    /* cultural */
  6088. - /*#undef    rindex strrchr    /*  differences? */
  6089. - /* HAS_ISASCII
  6090. -  *    This symbol, if defined, indicates that the isascii routine is available
  6091. -  *    to test characters for asciiness.
  6092. -  */
  6093. - #define    HAS_ISASCII        /**/
  6094. - /* HAS_KILLPG
  6095. -  *    This symbol, if defined, indicates that the killpg routine is available
  6096. -  *    to kill process groups.  If unavailable, you probably should use kill
  6097. -  *    with a negative process number.
  6098. -  */
  6099. - #define    HAS_KILLPG        /**/
  6100. - /* HAS_LSTAT
  6101. -  *    This symbol, if defined, indicates that the lstat() routine is
  6102. -  *    available to stat symbolic links.
  6103. -  */
  6104. - #define    HAS_LSTAT        /**/
  6105. - /* HAS_MEMCMP
  6106. -  *    This symbol, if defined, indicates that the memcmp routine is available
  6107. -  *    to compare blocks of memory.  If undefined, roll your own.
  6108. -  */
  6109. - #define    HAS_MEMCMP        /**/
  6110. - /* HAS_MEMCPY
  6111. -  *    This symbol, if defined, indicates that the memcpy routine is available
  6112. -  *    to copy blocks of memory.  Otherwise you should probably use bcopy().
  6113. -  *    If neither is defined, roll your own.
  6114. -  */
  6115. - /* SAFE_MEMCPY
  6116. -  *    This symbol, if defined, indicates that the memcpy routine is available
  6117. -  *    to copy potentially overlapping copy blocks of memory.  Otherwise you
  6118. -  *    should probably use memmove() or bcopy().  If neither is defined,
  6119. -  *    roll your own.
  6120. -  */
  6121. - #define    HAS_MEMCPY        /**/
  6122. - /*#undef    SAFE_MEMCPY        /**/
  6123. - /* HAS_MEMMOVE
  6124. -  *    This symbol, if defined, indicates that the memmove routine is available
  6125. -  *    to move potentially overlapping blocks of memory.  Otherwise you
  6126. -  *    should use bcopy() or roll your own.
  6127. -  */
  6128. - /*#undef    HAS_MEMMOVE        /**/
  6129. - /* HAS_MEMSET
  6130. -  *    This symbol, if defined, indicates that the memset routine is available
  6131. -  *    to set a block of memory to a character.  If undefined, roll your own.
  6132. -  */
  6133. - #define    HAS_MEMSET        /**/
  6134. - /* HAS_MKDIR
  6135. -  *    This symbol, if defined, indicates that the mkdir routine is available
  6136. -  *    to create directories.  Otherwise you should fork off a new process to
  6137. -  *    exec /bin/mkdir.
  6138. -  */
  6139. - #define    HAS_MKDIR        /**/
  6140. - /* HAS_MSG
  6141. -  *    This symbol, if defined, indicates that the entire msg*(2) library is
  6142. -  *    supported.
  6143. -  */
  6144. - #define    HAS_MSG        /**/
  6145. - /* HAS_MSGCTL
  6146. -  *    This symbol, if defined, indicates that the msgctl() routine is
  6147. -  *    available to control message passing.
  6148. -  */
  6149. - #define    HAS_MSGCTL        /**/
  6150. - /* HAS_MSGGET
  6151. -  *    This symbol, if defined, indicates that the msgget() routine is
  6152. -  *    available to get messages.
  6153. -  */
  6154. - #define    HAS_MSGGET        /**/
  6155. - /* HAS_MSGRCV
  6156. -  *    This symbol, if defined, indicates that the msgrcv() routine is
  6157. -  *    available to receive messages.
  6158. -  */
  6159. - #define    HAS_MSGRCV        /**/
  6160. - /* HAS_MSGSND
  6161. -  *    This symbol, if defined, indicates that the msgsnd() routine is
  6162. -  *    available to send messages.
  6163. -  */
  6164. - #define    HAS_MSGSND        /**/
  6165. - /* HAS_NDBM
  6166. -  *    This symbol, if defined, indicates that ndbm.h exists and should
  6167. -  *    be included.
  6168. -  */
  6169. - #define    HAS_NDBM        /**/
  6170. - /* HAS_ODBM
  6171. -  *    This symbol, if defined, indicates that dbm.h exists and should
  6172. -  *    be included.
  6173. -  */
  6174. - #define    HAS_ODBM        /**/
  6175. - /* HAS_OPEN3
  6176. -  *    This manifest constant lets the C program know that the three
  6177. -  *    argument form of open(2) is available.
  6178. -  */
  6179. - #define    HAS_OPEN3        /**/
  6180. - /* HAS_READDIR
  6181. -  *    This symbol, if defined, indicates that the readdir routine is available
  6182. -  *    from the C library to read directories.
  6183. -  */
  6184. - #define    HAS_READDIR        /**/
  6185. - /* HAS_RENAME
  6186. -  *    This symbol, if defined, indicates that the rename routine is available
  6187. -  *    to rename files.  Otherwise you should do the unlink(), link(), unlink()
  6188. -  *    trick.
  6189. -  */
  6190. - #define    HAS_RENAME        /**/
  6191. - /* HAS_REWINDDIR
  6192. -  *    This symbol, if defined, indicates that the rewindir routine is
  6193. -  *    available to rewind directories.
  6194. -  */
  6195. - #define    HAS_REWINDDIR        /**/
  6196. - /* HAS_RMDIR
  6197. -  *    This symbol, if defined, indicates that the rmdir routine is available
  6198. -  *    to remove directories.  Otherwise you should fork off a new process to
  6199. -  *    exec /bin/rmdir.
  6200. -  */
  6201. - #define    HAS_RMDIR        /**/
  6202. - /* HAS_SEEKDIR
  6203. -  *    This symbol, if defined, indicates that the seekdir routine is
  6204. -  *    available to seek into directories.
  6205. -  */
  6206. - #define    HAS_SEEKDIR        /**/
  6207. - /* HAS_SELECT
  6208. -  *    This symbol, if defined, indicates that the select() subroutine
  6209. -  *    exists.
  6210. -  */
  6211. - #define    HAS_SELECT    /**/
  6212. - /* HAS_SEM
  6213. -  *    This symbol, if defined, indicates that the entire sem*(2) library is
  6214. -  *    supported.
  6215. -  */
  6216. - #define    HAS_SEM        /**/
  6217. - /* HAS_SEMCTL
  6218. -  *    This symbol, if defined, indicates that the semctl() routine is
  6219. -  *    available to control semaphores.
  6220. -  */
  6221. - #define    HAS_SEMCTL        /**/
  6222. - /* HAS_SEMGET
  6223. -  *    This symbol, if defined, indicates that the semget() routine is
  6224. -  *    available to get semaphores ids.
  6225. -  */
  6226. - #define    HAS_SEMGET        /**/
  6227. - /* HAS_SEMOP
  6228. -  *    This symbol, if defined, indicates that the semop() routine is
  6229. -  *    available to perform semaphore operations.
  6230. -  */
  6231. - #define    HAS_SEMOP        /**/
  6232. - /* HAS_SETEGID
  6233. -  *    This symbol, if defined, indicates that the setegid routine is available
  6234. -  *    to change the effective gid of the current program.
  6235. -  */
  6236. - #define    HAS_SETEGID        /**/
  6237. - /* HAS_SETEUID
  6238. -  *    This symbol, if defined, indicates that the seteuid routine is available
  6239. -  *    to change the effective uid of the current program.
  6240. -  */
  6241. - #define    HAS_SETEUID        /**/
  6242. - /* HAS_SETPGRP
  6243. -  *    This symbol, if defined, indicates that the setpgrp() routine is
  6244. -  *    available to set the current process group.
  6245. -  */
  6246. - #define    HAS_SETPGRP        /**/
  6247. - /* HAS_SETPGRP2
  6248. -  *    This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
  6249. -  *    routine is available to set the current process group.
  6250. -  */
  6251. - /*#undef    HAS_SETPGRP2        /**/
  6252. - /* HAS_SETPRIORITY
  6253. -  *    This symbol, if defined, indicates that the setpriority() routine is
  6254. -  *    available to set a process's priority.
  6255. -  */
  6256. - #define    HAS_SETPRIORITY        /**/
  6257. - /* HAS_SETREGID
  6258. -  *    This symbol, if defined, indicates that the setregid routine is
  6259. -  *    available to change the real and effective gid of the current program.
  6260. -  */
  6261. - /* HAS_SETRESGID
  6262. -  *    This symbol, if defined, indicates that the setresgid routine is
  6263. -  *    available to change the real, effective and saved gid of the current
  6264. -  *    program.
  6265. -  */
  6266. - #define    HAS_SETREGID        /**/
  6267. - /*#undef    HAS_SETRESGID        /**/
  6268. - /* HAS_SETREUID
  6269. -  *    This symbol, if defined, indicates that the setreuid routine is
  6270. -  *    available to change the real and effective uid of the current program.
  6271. -  */
  6272. - /* HAS_SETRESUID
  6273. -  *    This symbol, if defined, indicates that the setresuid routine is
  6274. -  *    available to change the real, effective and saved uid of the current
  6275. -  *    program.
  6276. -  */
  6277. - #define    HAS_SETREUID        /**/
  6278. - /*#undef    HAS_SETRESUID        /**/
  6279. - /* HAS_SETRGID
  6280. -  *    This symbol, if defined, indicates that the setrgid routine is available
  6281. -  *    to change the real gid of the current program.
  6282. -  */
  6283. - #define    HAS_SETRGID        /**/
  6284. - /* HAS_SETRUID
  6285. -  *    This symbol, if defined, indicates that the setruid routine is available
  6286. -  *    to change the real uid of the current program.
  6287. -  */
  6288. - #define    HAS_SETRUID        /**/
  6289. - /* HAS_SHM
  6290. -  *    This symbol, if defined, indicates that the entire shm*(2) library is
  6291. -  *    supported.
  6292. -  */
  6293. - #define    HAS_SHM        /**/
  6294. - /* HAS_SHMAT
  6295. -  *    This symbol, if defined, indicates that the shmat() routine is
  6296. -  *    available to attach a shared memory segment.
  6297. -  */
  6298. - /* VOID_SHMAT
  6299. -  *    This symbol, if defined, indicates that the shmat() routine
  6300. -  *    returns a pointer of type void*.
  6301. -  */
  6302. - #define    HAS_SHMAT        /**/
  6303. - /*#undef    VOIDSHMAT        /**/
  6304. - /* HAS_SHMCTL
  6305. -  *    This symbol, if defined, indicates that the shmctl() routine is
  6306. -  *    available to control a shared memory segment.
  6307. -  */
  6308. - #define    HAS_SHMCTL        /**/
  6309. - /* HAS_SHMDT
  6310. -  *    This symbol, if defined, indicates that the shmdt() routine is
  6311. -  *    available to detach a shared memory segment.
  6312. -  */
  6313. - #define    HAS_SHMDT        /**/
  6314. - /* HAS_SHMGET
  6315. -  *    This symbol, if defined, indicates that the shmget() routine is
  6316. -  *    available to get a shared memory segment id.
  6317. -  */
  6318. - #define    HAS_SHMGET        /**/
  6319. - /* HAS_SOCKET
  6320. -  *    This symbol, if defined, indicates that the BSD socket interface is
  6321. -  *    supported.
  6322. -  */
  6323. - /* HAS_SOCKETPAIR
  6324. -  *    This symbol, if defined, indicates that the BSD socketpair call is
  6325. -  *    supported.
  6326. -  */
  6327. - /* OLDSOCKET
  6328. -  *    This symbol, if defined, indicates that the 4.1c BSD socket interface
  6329. -  *    is supported instead of the 4.2/4.3 BSD socket interface.
  6330. -  */
  6331. - #define    HAS_SOCKET        /**/
  6332. - #define    HAS_SOCKETPAIR    /**/
  6333. - /*#undef    OLDSOCKET    /**/
  6334. - /* STATBLOCKS
  6335. -  *    This symbol is defined if this system has a stat structure declaring
  6336. -  *    st_blksize and st_blocks.
  6337. -  */
  6338. - #define    STATBLOCKS     /**/
  6339. - /* STDSTDIO
  6340. -  *    This symbol is defined if this system has a FILE structure declaring
  6341. -  *    _ptr and _cnt in stdio.h.
  6342. -  */
  6343. - #define    STDSTDIO     /**/
  6344. - /* STRUCTCOPY
  6345. -  *    This symbol, if defined, indicates that this C compiler knows how
  6346. -  *    to copy structures.  If undefined, you'll need to use a block copy
  6347. -  *    routine of some sort instead.
  6348. -  */
  6349. - #define    STRUCTCOPY    /**/
  6350. - /* HAS_STRERROR
  6351. -  *    This symbol, if defined, indicates that the strerror() routine is
  6352. -  *    available to translate error numbers to strings.
  6353. -  */
  6354. - /*#undef    HAS_STRERROR        /**/
  6355. - /* HAS_SYMLINK
  6356. -  *    This symbol, if defined, indicates that the symlink routine is available
  6357. -  *    to create symbolic links.
  6358. -  */
  6359. - #define    HAS_SYMLINK        /**/
  6360. - /* HAS_SYSCALL
  6361. -  *    This symbol, if defined, indicates that the syscall routine is available
  6362. -  *    to call arbitrary system calls.  If undefined, that's tough.
  6363. -  */
  6364. - #define    HAS_SYSCALL        /**/
  6365. - /* HAS_TELLDIR
  6366. -  *    This symbol, if defined, indicates that the telldir routine is
  6367. -  *    available to tell your location in directories.
  6368. -  */
  6369. - #define    HAS_TELLDIR        /**/
  6370. - /* HAS_TRUNCATE
  6371. -  *    This symbol, if defined, indicates that the truncate routine is
  6372. -  *    available to truncate files.
  6373. -  */
  6374. - #define    HAS_TRUNCATE        /**/
  6375. - /* HAS_VFORK
  6376. -  *    This symbol, if defined, indicates that vfork() exists.
  6377. -  */
  6378. - #define    HAS_VFORK    /**/
  6379. - /* VOIDSIG
  6380. -  *    This symbol is defined if this system declares "void (*signal())()" in
  6381. -  *    signal.h.  The old way was to declare it as "int (*signal())()".  It
  6382. -  *    is up to the package author to declare things correctly based on the
  6383. -  *    symbol.
  6384. -  */
  6385. - /* TO_SIGNAL
  6386. -  *    This symbol's value is either "void" or "int", corresponding to the
  6387. -  *    appropriate return "type" of a signal handler.  Thus, one can declare
  6388. -  *    a signal handler using "TO_SIGNAL (*handler())()", and define the
  6389. -  *    handler using "TO_SIGNAL handler(sig)".
  6390. -  */
  6391. - #define    VOIDSIG     /**/
  6392. - #define    TO_SIGNAL    int     /**/
  6393. - /* HASVOLATILE
  6394. -  *    This symbol, if defined, indicates that this C compiler knows about
  6395. -  *    the volatile declaration.
  6396. -  */
  6397. - /*#undef    HASVOLATILE    /**/
  6398. - /* HAS_VPRINTF
  6399. -  *    This symbol, if defined, indicates that the vprintf routine is available
  6400. -  *    to printf with a pointer to an argument list.  If unavailable, you
  6401. -  *    may need to write your own, probably in terms of _doprnt().
  6402. -  */
  6403. - /* CHARVSPRINTF
  6404. -  *    This symbol is defined if this system has vsprintf() returning type
  6405. -  *    (char*).  The trend seems to be to declare it as "int vsprintf()".  It
  6406. -  *    is up to the package author to declare vsprintf correctly based on the
  6407. -  *    symbol.
  6408. -  */
  6409. - #define    HAS_VPRINTF    /**/
  6410. - #define    CHARVSPRINTF     /**/
  6411. - /* HAS_WAIT4
  6412. -  *    This symbol, if defined, indicates that wait4() exists.
  6413. -  */
  6414. - #define    HAS_WAIT4    /**/
  6415. - /* HAS_WAITPID
  6416. -  *    This symbol, if defined, indicates that waitpid() exists.
  6417. -  */
  6418. - #define    HAS_WAITPID    /**/
  6419. - /* GIDTYPE
  6420. -  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  6421. -  *    used to declare group ids in the kernel.
  6422. -  */
  6423. - #define GIDTYPE gid_t        /**/
  6424. - /* GROUPSTYPE
  6425. -  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  6426. -  *    used in the return value of getgroups().
  6427. -  */
  6428. - #define GROUPSTYPE int        /**/
  6429. - /* I_FCNTL
  6430. -  *    This manifest constant tells the C program to include <fcntl.h>.
  6431. -  */
  6432. - /*#undef    I_FCNTL    /**/
  6433. - /* I_GDBM
  6434. -  *    This symbol, if defined, indicates that gdbm.h exists and should
  6435. -  *    be included.
  6436. -  */
  6437. - /*#undef    I_GDBM        /**/
  6438. - /* I_GRP
  6439. -  *    This symbol, if defined, indicates to the C program that it should
  6440. -  *    include grp.h.
  6441. -  */
  6442. - #define    I_GRP        /**/
  6443. - /* I_NETINET_IN
  6444. -  *    This symbol, if defined, indicates to the C program that it should
  6445. -  *    include netinet/in.h.
  6446. -  */
  6447. - /* I_SYS_IN
  6448. -  *    This symbol, if defined, indicates to the C program that it should
  6449. -  *    include sys/in.h.
  6450. -  */
  6451. - #define    I_NETINET_IN        /**/
  6452. - /*#undef    I_SYS_IN        /**/
  6453. - /* I_PWD
  6454. -  *    This symbol, if defined, indicates to the C program that it should
  6455. -  *    include pwd.h.
  6456. -  */
  6457. - /* PWQUOTA
  6458. -  *    This symbol, if defined, indicates to the C program that struct passwd
  6459. -  *    contains pw_quota.
  6460. -  */
  6461. - /* PWAGE
  6462. -  *    This symbol, if defined, indicates to the C program that struct passwd
  6463. -  *    contains pw_age.
  6464. -  */
  6465. - /* PWCHANGE
  6466. -  *    This symbol, if defined, indicates to the C program that struct passwd
  6467. -  *    contains pw_change.
  6468. -  */
  6469. - /* PWCLASS
  6470. -  *    This symbol, if defined, indicates to the C program that struct passwd
  6471. -  *    contains pw_class.
  6472. -  */
  6473. - /* PWEXPIRE
  6474. -  *    This symbol, if defined, indicates to the C program that struct passwd
  6475. -  *    contains pw_expire.
  6476. -  */
  6477. - /* PWCOMMENT
  6478. -  *    This symbol, if defined, indicates to the C program that struct passwd
  6479. -  *    contains pw_comment.
  6480. -  */
  6481. - #define    I_PWD        /**/
  6482. - /*#undef    PWQUOTA        /**/
  6483. - #define    PWAGE        /**/
  6484. - /*#undef    PWCHANGE    /**/
  6485. - /*#undef    PWCLASS        /**/
  6486. - /*#undef    PWEXPIRE    /**/
  6487. - #define    PWCOMMENT    /**/
  6488. - /* I_SYS_FILE
  6489. -  *    This manifest constant tells the C program to include <sys/file.h>.
  6490. -  */
  6491. - #define    I_SYS_FILE    /**/
  6492. - /* I_SYSIOCTL
  6493. -  *    This symbol, if defined, indicates that sys/ioctl.h exists and should
  6494. -  *    be included.
  6495. -  */
  6496. - #define    I_SYSIOCTL        /**/
  6497. - /* I_TIME
  6498. -  *    This symbol is defined if the program should include <time.h>.
  6499. -  */
  6500. - /* I_SYS_TIME
  6501. -  *    This symbol is defined if the program should include <sys/time.h>.
  6502. -  */
  6503. - /* SYSTIMEKERNEL
  6504. -  *    This symbol is defined if the program should include <sys/time.h>
  6505. -  *    with KERNEL defined.
  6506. -  */
  6507. - /* I_SYS_SELECT
  6508. -  *    This symbol is defined if the program should include <sys/select.h>.
  6509. -  */
  6510. - /*#undef    I_TIME         /**/
  6511. - #define    I_SYS_TIME     /**/
  6512. - /*#undef    SYSTIMEKERNEL     /**/
  6513. - /*#undef    I_SYS_SELECT     /**/
  6514. - /* I_UTIME
  6515. -  *    This symbol, if defined, indicates to the C program that it should
  6516. -  *    include utime.h.
  6517. -  */
  6518. - #define    I_UTIME        /**/
  6519. - /* I_VARARGS
  6520. -  *    This symbol, if defined, indicates to the C program that it should
  6521. -  *    include varargs.h.
  6522. -  */
  6523. - #define    I_VARARGS        /**/
  6524. - /* I_VFORK
  6525. -  *    This symbol, if defined, indicates to the C program that it should
  6526. -  *    include vfork.h.
  6527. -  */
  6528. - #define    I_VFORK        /**/
  6529. - /* INTSIZE
  6530. -  *    This symbol contains the size of an int, so that the C preprocessor
  6531. -  *    can make decisions based on it.
  6532. -  */
  6533. - #define INTSIZE 4        /**/
  6534. - /* I_DIRENT
  6535. -  *    This symbol, if defined, indicates that the program should use the
  6536. -  *    P1003-style directory routines, and include <dirent.h>.
  6537. -  */
  6538. - /* I_SYS_DIR
  6539. -  *    This symbol, if defined, indicates that the program should use the
  6540. -  *    directory functions by including <sys/dir.h>.
  6541. -  */
  6542. - /* I_NDIR
  6543. -  *    This symbol, if defined, indicates that the program should include the
  6544. -  *    system's version of ndir.h, rather than the one with this package.
  6545. -  */
  6546. - /* I_SYS_NDIR
  6547. -  *    This symbol, if defined, indicates that the program should include the
  6548. -  *    system's version of sys/ndir.h, rather than the one with this package.
  6549. -  */
  6550. - /* I_MY_DIR
  6551. -  *    This symbol, if defined, indicates that the program should compile
  6552. -  *    the ndir.c code provided with the package.
  6553. -  */
  6554. - /* DIRNAMLEN
  6555. -  *    This symbol, if defined, indicates to the C program that the length
  6556. -  *    of directory entry names is provided by a d_namlen field.  Otherwise
  6557. -  *    you need to do strlen() on the d_name field.
  6558. -  */
  6559. - #define    I_DIRENT    /**/
  6560. - /*#undef    I_SYS_DIR    /**/
  6561. - /*#undef    I_NDIR        /**/
  6562. - /*#undef    I_SYS_NDIR    /**/
  6563. - /*#undef    I_MY_DIR    /**/
  6564. - /*#undef    DIRNAMLEN    /**/
  6565. - /* MYMALLOC
  6566. -  *    This symbol, if defined, indicates that we're using our own malloc.
  6567. -  */
  6568. - /* MALLOCPTRTYPE
  6569. -  *    This symbol defines the kind of ptr returned by malloc and realloc.
  6570. -  */
  6571. - #define MYMALLOC            /**/
  6572. - #define MALLOCPTRTYPE char         /**/
  6573. - /* RANDBITS
  6574. -  *    This symbol contains the number of bits of random number the rand()
  6575. -  *    function produces.  Usual values are 15, 16, and 31.
  6576. -  */
  6577. - #define RANDBITS 31        /**/
  6578. - /* SCRIPTDIR
  6579. -  *    This symbol holds the name of the directory in which the user wants
  6580. -  *    to keep publicly executable scripts for the package in question.  It
  6581. -  *    is often a directory that is mounted across diverse architectures.
  6582. -  */
  6583. - #define SCRIPTDIR "/usr/local/bin"             /**/
  6584. - /* SIG_NAME
  6585. -  *    This symbol contains an list of signal names in order.
  6586. -  */
  6587. - #define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","ABRT","EMT","FPE","KILL","BUS","SEGV","SYS","PIPE","ALRM","TERM","URG","STOP","TSTP","CONT","CLD","TTIN","TTOU","IO","XCPU","XFSZ","VTALRM","PROF","WINCH","LOST","USR1","USR2"        /**/
  6588. - /* STDCHAR
  6589. -  *    This symbol is defined to be the type of char used in stdio.h.
  6590. -  *    It has the values "unsigned char" or "char".
  6591. -  */
  6592. - #define STDCHAR unsigned char    /**/
  6593. - /* UIDTYPE
  6594. -  *    This symbol has a value like uid_t, int, ushort, or whatever type is
  6595. -  *    used to declare user ids in the kernel.
  6596. -  */
  6597. - #define UIDTYPE uid_t        /**/
  6598. - /* VOIDHAVE
  6599. -  *    This symbol indicates how much support of the void type is given by this
  6600. -  *    compiler.  What various bits mean:
  6601. -  *
  6602. -  *        1 = supports declaration of void
  6603. -  *        2 = supports arrays of pointers to functions returning void
  6604. -  *        4 = supports comparisons between pointers to void functions and
  6605. -  *            addresses of void functions
  6606. -  *
  6607. -  *    The package designer should define VOIDWANT to indicate the requirements
  6608. -  *    of the package.  This can be done either by #defining VOIDWANT before
  6609. -  *    including config.h, or by defining voidwant in Myinit.U.  If the level
  6610. -  *    of void support necessary is not present, config.h defines void to "int",
  6611. -  *    VOID to the empty string, and VOIDP to "char *".
  6612. -  */
  6613. - /* void
  6614. -  *    This symbol is used for void casts.  On implementations which support
  6615. -  *    void appropriately, its value is "void".  Otherwise, its value maps
  6616. -  *    to "int".
  6617. -  */
  6618. - /* VOID
  6619. -  *    This symbol's value is "void" if the implementation supports void
  6620. -  *    appropriately.  Otherwise, its value is the empty string.  The primary
  6621. -  *    use of this symbol is in specifying void parameter lists for function
  6622. -  *    prototypes.
  6623. -  */
  6624. - /* VOIDP
  6625. -  *    This symbol is used for casting generic pointers.  On implementations
  6626. -  *    which support void appropriately, its value is "void *".  Otherwise,
  6627. -  *    its value is "char *".
  6628. -  */
  6629. - #ifndef VOIDWANT
  6630. - #define VOIDWANT 7
  6631. - #endif
  6632. - #define VOIDHAVE 7
  6633. - #if (VOIDHAVE & VOIDWANT) != VOIDWANT
  6634. - #define void int        /* is void to be avoided? */
  6635. - #define VOID
  6636. - #define VOIDP (char *)
  6637. - #define M_VOID        /* Xenix strikes again */
  6638. - #else
  6639. - #define VOID void
  6640. - #define VOIDP (void *)
  6641. - #endif
  6642. - /* PRIVLIB
  6643. -  *    This symbol contains the name of the private library for this package.
  6644. -  *    The library is private in the sense that it needn't be in anyone's
  6645. -  *    execution path, but it should be accessible by the world.  The program
  6646. -  *    should be prepared to do ~ expansion.
  6647. -  */
  6648. - #define PRIVLIB "/usr/local/lib/perl"        /**/
  6649. - #endif
  6650. --- 0 ----
  6651. diff -rc --new-file perl-4.036/config.h.in /gnu/src/amiga/perl-4.036/config.h.in
  6652. *** perl-4.036/config.h.in    Thu Jan  1 00:00:00 1970
  6653. --- /gnu/src/amiga/perl-4.036/config.h.in    Wed May  4 16:22:14 1994
  6654. ***************
  6655. *** 0 ****
  6656. --- 1,990 ----
  6657. + #ifndef config_h
  6658. + #define config_h
  6659. + /* EUNICE
  6660. +  *    This symbol, if defined, indicates that the program is being compiled
  6661. +  *    under the EUNICE package under VMS.  The program will need to handle
  6662. +  *    things like files that don't go away the first time you unlink them,
  6663. +  *    due to version numbering.  It will also need to compensate for lack
  6664. +  *    of a respectable link() command.
  6665. +  */
  6666. + #undef EUNICE
  6667. + /* VMS
  6668. +  *    This symbol, if defined, indicates that the program is running under
  6669. +  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  6670. +  */
  6671. + #undef VMS
  6672. + /* LOC_SED
  6673. +  *     This symbol holds the complete pathname to the sed program.
  6674. +  */
  6675. + #define LOC_SED "/bin/sed"
  6676. + /* ALIGNBYTES
  6677. +  *    This symbol contains the number of bytes required to align a double.
  6678. +  *    Usual values are 2, 4, and 8.
  6679. +  */
  6680. + #define ALIGNBYTES 4
  6681. + /* BIN
  6682. +  *    This symbol holds the name of the directory in which the user wants
  6683. +  *    to keep publicly executable images for the package in question.  It
  6684. +  *    is most often a local directory such as /usr/local/bin.
  6685. +  */
  6686. + #define BIN "/bin"
  6687. + /* BYTEORDER
  6688. +  *    This symbol contains an encoding of the order of bytes in a long.
  6689. +  *    Usual values (in hex) are 0x1234, 0x4321, 0x2143, 0x3412...
  6690. +  */
  6691. + #define BYTEORDER 0x4321
  6692. + /* CPPSTDIN
  6693. +  *    This symbol contains the first part of the string which will invoke
  6694. +  *    the C preprocessor on the standard input and produce to standard
  6695. +  *    output.     Typical value of "cc -E" or "/lib/cpp".
  6696. +  */
  6697. + /* CPPMINUS
  6698. +  *    This symbol contains the second part of the string which will invoke
  6699. +  *    the C preprocessor on the standard input and produce to standard
  6700. +  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  6701. +  *    to specify standard input, otherwise the value is "".
  6702. +  */
  6703. + #define CPPSTDIN "/gnu/lib/cpp"
  6704. + #define CPPMINUS ""
  6705. + /* HAS_BCMP
  6706. +  *    This symbol, if defined, indicates that the bcmp routine is available
  6707. +  *    to compare blocks of memory.  If undefined, use memcmp.  If that's
  6708. +  *    not available, roll your own.
  6709. +  */
  6710. + #define HAS_BCMP
  6711. + /* HAS_BCOPY
  6712. +  *    This symbol, if defined, indicates that the bcopy routine is available
  6713. +  *    to copy blocks of memory.  Otherwise you should probably use memcpy().
  6714. +  *    If neither is defined, roll your own.
  6715. +  */
  6716. + /* SAFE_BCOPY
  6717. +  *    This symbol, if defined, indicates that the bcopy routine is available
  6718. +  *    to copy potentially overlapping copy blocks of bcopy.  Otherwise you
  6719. +  *    should probably use memmove() or memcpy().  If neither is defined,
  6720. +  *    roll your own.
  6721. +  */
  6722. + #define HAS_BCOPY
  6723. + #define SAFE_BCOPY
  6724. + /* HAS_BZERO
  6725. +  *    This symbol, if defined, indicates that the bzero routine is available
  6726. +  *    to zero blocks of memory.  Otherwise you should probably use memset()
  6727. +  *    or roll your own.
  6728. +  */
  6729. + #define HAS_BZERO
  6730. + /* CASTNEGFLOAT
  6731. +  *    This symbol, if defined, indicates that this C compiler knows how to
  6732. +  *    cast negative or large floating point numbers to unsigned longs, ints
  6733. +  *    and shorts.
  6734. +  */
  6735. + /* CASTFLAGS
  6736. +  *    This symbol contains flags that say what difficulties the compiler
  6737. +  *    has casting odd floating values to unsigned long:
  6738. +  *        1 = couldn't cast < 0
  6739. +  *        2 = couldn't cast >= 0x80000000
  6740. +  */
  6741. + #define CASTNEGFLOAT
  6742. + #define CASTFLAGS 0
  6743. + /* CHARSPRINTF
  6744. +  *    This symbol is defined if this system declares "char *sprintf()" in
  6745. +  *    stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
  6746. +  *    is up to the package author to declare sprintf correctly based on the
  6747. +  *    symbol.
  6748. +  */
  6749. + #undef CHARSPRINTF
  6750. + /* HAS_CHSIZE
  6751. +  *    This symbol, if defined, indicates that the chsize routine is available
  6752. +  *    to truncate files.  You might need a -lx to get this routine.
  6753. +  */
  6754. + #undef HAS_CHSIZE
  6755. + /* HAS_CRYPT
  6756. +  *    This symbol, if defined, indicates that the crypt routine is available
  6757. +  *    to encrypt passwords and the like.
  6758. +  */
  6759. + #undef HAS_CRYPT
  6760. + /* CSH
  6761. +  *    This symbol, if defined, indicates that the C-shell exists.
  6762. +  *    If defined, contains the full pathname of csh.
  6763. +  */
  6764. + #undef CSH /*"csh"*/
  6765. + /* DOSUID
  6766. +  *    This symbol, if defined, indicates that the C program should
  6767. +  *    check the script that it is executing for setuid/setgid bits, and
  6768. +  *    attempt to emulate setuid/setgid on systems that have disabled
  6769. +  *    setuid #! scripts because the kernel can't do it securely.
  6770. +  *    It is up to the package designer to make sure that this emulation
  6771. +  *    is done securely.  Among other things, it should do an fstat on
  6772. +  *    the script it just opened to make sure it really is a setuid/setgid
  6773. +  *    script, it should make sure the arguments passed correspond exactly
  6774. +  *    to the argument on the #! line, and it should not trust any
  6775. +  *    subprocesses to which it must pass the filename rather than the
  6776. +  *    file descriptor of the script to be executed.
  6777. +  */
  6778. + #undef DOSUID
  6779. + /* HAS_DUP2
  6780. +  *    This symbol, if defined, indicates that the dup2 routine is available
  6781. +  *    to dup file descriptors.  Otherwise you should use dup().
  6782. +  */
  6783. + #define HAS_DUP2
  6784. + /* HAS_FCHMOD
  6785. +  *    This symbol, if defined, indicates that the fchmod routine is available
  6786. +  *    to change mode of opened files.  If unavailable, use chmod().
  6787. +  */
  6788. + #define HAS_FCHMOD
  6789. + /* HAS_FCHOWN
  6790. +  *    This symbol, if defined, indicates that the fchown routine is available
  6791. +  *    to change ownership of opened files.  If unavailable, use chown().
  6792. +  */
  6793. + #undef HAS_FCHOWN
  6794. + /* HAS_FCNTL
  6795. +  *    This symbol, if defined, indicates to the C program that
  6796. +  *    the fcntl() function exists.
  6797. +  */
  6798. + #define HAS_FCNTL
  6799. + /* FLEXFILENAMES
  6800. +  *    This symbol, if defined, indicates that the system supports filenames
  6801. +  *    longer than 14 characters.
  6802. +  */
  6803. + #define FLEXFILENAMES
  6804. + /* HAS_FLOCK
  6805. +  *    This symbol, if defined, indicates that the flock() routine is
  6806. +  *    available to do file locking.
  6807. +  */
  6808. + #define HAS_FLOCK
  6809. + /* HAS_GETGROUPS
  6810. +  *    This symbol, if defined, indicates that the getgroups() routine is
  6811. +  *    available to get the list of process groups.  If unavailable, multiple
  6812. +  *    groups are probably not supported.
  6813. +  */
  6814. + #define HAS_GETGROUPS
  6815. + /* HAS_GETHOSTENT
  6816. +  *    This symbol, if defined, indicates that the gethostent() routine is
  6817. +  *    available to lookup host names in some data base or other.
  6818. +  */
  6819. + #undef HAS_GETHOSTENT
  6820. + /* HAS_GETPGRP
  6821. +  *    This symbol, if defined, indicates that the getpgrp() routine is
  6822. +  *    available to get the current process group.
  6823. +  */
  6824. + #define HAS_GETPGRP
  6825. + /* HAS_GETPGRP2
  6826. +  *    This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
  6827. +  *    routine is available to get the current process group.
  6828. +  */
  6829. + #undef HAS_GETPGRP2
  6830. + /* HAS_GETPRIORITY
  6831. +  *    This symbol, if defined, indicates that the getpriority() routine is
  6832. +  *    available to get a process's priority.
  6833. +  */
  6834. + #define HAS_GETPRIORITY
  6835. + /* HAS_HTONS
  6836. +  *    This symbol, if defined, indicates that the htons routine (and friends)
  6837. +  *    are available to do network order byte swapping.
  6838. +  */
  6839. + /* HAS_HTONL
  6840. +  *    This symbol, if defined, indicates that the htonl routine (and friends)
  6841. +  *    are available to do network order byte swapping.
  6842. +  */
  6843. + /* HAS_NTOHS
  6844. +  *    This symbol, if defined, indicates that the ntohs routine (and friends)
  6845. +  *    are available to do network order byte swapping.
  6846. +  */
  6847. + /* HAS_NTOHL
  6848. +  *    This symbol, if defined, indicates that the ntohl routine (and friends)
  6849. +  *    are available to do network order byte swapping.
  6850. +  */
  6851. + #undef HAS_HTONS
  6852. + #undef HAS_HTONL
  6853. + #undef HAS_NTOHS
  6854. + #undef HAS_NTOHL
  6855. + /* index
  6856. +  *    This preprocessor symbol is defined, along with rindex, if the system
  6857. +  *    uses the strchr and strrchr routines instead.
  6858. +  */
  6859. + /* rindex
  6860. +  *    This preprocessor symbol is defined, along with index, if the system
  6861. +  *    uses the strchr and strrchr routines instead.
  6862. +  */
  6863. + #undef index /*strchr*/
  6864. + #undef rindex /*strrchr*/
  6865. + /* HAS_ISASCII
  6866. +  *    This symbol, if defined, indicates that the isascii routine is available
  6867. +  *    to test characters for asciiness.
  6868. +  */
  6869. + #undef HAS_ISASCII
  6870. + /* HAS_KILLPG
  6871. +  *    This symbol, if defined, indicates that the killpg routine is available
  6872. +  *    to kill process groups.  If unavailable, you probably should use kill
  6873. +  *    with a negative process number.
  6874. +  */
  6875. + #define HAS_KILLPG
  6876. + /* HAS_LSTAT
  6877. +  *    This symbol, if defined, indicates that the lstat() routine is
  6878. +  *    available to stat symbolic links.
  6879. +  */
  6880. + #define HAS_LSTAT
  6881. + /* HAS_MEMCMP
  6882. +  *    This symbol, if defined, indicates that the memcmp routine is available
  6883. +  *    to compare blocks of memory.  If undefined, roll your own.
  6884. +  */
  6885. + #define HAS_MEMCMP
  6886. + /* HAS_MEMCPY
  6887. +  *    This symbol, if defined, indicates that the memcpy routine is available
  6888. +  *    to copy blocks of memory.  Otherwise you should probably use bcopy().
  6889. +  *    If neither is defined, roll your own.
  6890. +  */
  6891. + /* SAFE_MEMCPY
  6892. +  *    This symbol, if defined, indicates that the memcpy routine is available
  6893. +  *    to copy potentially overlapping copy blocks of memory.  Otherwise you
  6894. +  *    should probably use memmove() or bcopy().  If neither is defined,
  6895. +  *    roll your own.
  6896. +  */
  6897. + #define HAS_MEMCPY
  6898. + #undef SAFE_MEMCPY
  6899. + /* HAS_MEMMOVE
  6900. +  *    This symbol, if defined, indicates that the memmove routine is available
  6901. +  *    to move potentially overlapping blocks of memory.  Otherwise you
  6902. +  *    should use bcopy() or roll your own.
  6903. +  */
  6904. + #define HAS_MEMMOVE
  6905. + /* HAS_MEMSET
  6906. +  *    This symbol, if defined, indicates that the memset routine is available
  6907. +  *    to set a block of memory to a character.  If undefined, roll your own.
  6908. +  */
  6909. + #define HAS_MEMSET
  6910. + /* HAS_MKDIR
  6911. +  *    This symbol, if defined, indicates that the mkdir routine is available
  6912. +  *    to create directories.  Otherwise you should fork off a new process to
  6913. +  *    exec /bin/mkdir.
  6914. +  */
  6915. + #define HAS_MKDIR
  6916. + /* HAS_MSG
  6917. +  *    This symbol, if defined, indicates that the entire msg*(2) library is
  6918. +  *    supported.
  6919. +  */
  6920. + #undef HAS_MSG
  6921. + /* HAS_MSGCTL
  6922. +  *    This symbol, if defined, indicates that the msgctl() routine is
  6923. +  *    available to control message passing.
  6924. +  */
  6925. + #undef HAS_MSGCTL
  6926. + /* HAS_MSGGET
  6927. +  *    This symbol, if defined, indicates that the msgget() routine is
  6928. +  *    available to get messages.
  6929. +  */
  6930. + #undef HAS_MSGGET
  6931. + /* HAS_MSGRCV
  6932. +  *    This symbol, if defined, indicates that the msgrcv() routine is
  6933. +  *    available to receive messages.
  6934. +  */
  6935. + #undef HAS_MSGRCV
  6936. + /* HAS_MSGSND
  6937. +  *    This symbol, if defined, indicates that the msgsnd() routine is
  6938. +  *    available to send messages.
  6939. +  */
  6940. + #undef HAS_MSGSND
  6941. + /* HAVE_LIBGDBM
  6942. +  * HAVE_GDBM_H
  6943. +  *
  6944. +  *    GNU dbm library and header files are available.
  6945. +  */
  6946. + #undef HAVE_LIBGDBM
  6947. + #undef HAVE_GDBM_H
  6948. + /* HAVE_LIBNDBM
  6949. +  * HAVE_NDBM_H
  6950. +  *
  6951. +  *    Have ndbm.h support.
  6952. +  */
  6953. + #undef HAVE_LIBNDBM
  6954. + #undef HAVE_NDBM_H
  6955. + /* HAVE_DBM
  6956. +  *
  6957. +  *    Have traditional "dbm" support.
  6958. +  */
  6959. + #undef HAVE_LIBDBM
  6960. + #undef HAVE_DBM_H
  6961. + /* HAS_OPEN3
  6962. +  *    This manifest constant lets the C program know that the three
  6963. +  *    argument form of open(2) is available.
  6964. +  */
  6965. + #define HAS_OPEN3
  6966. + /* HAS_READDIR
  6967. +  *    This symbol, if defined, indicates that the readdir routine is available
  6968. +  *    from the C library to read directories.
  6969. +  */
  6970. + #define HAS_READDIR
  6971. + /* HAS_RENAME
  6972. +  *    This symbol, if defined, indicates that the rename routine is available
  6973. +  *    to rename files.  Otherwise you should do the unlink(), link(), unlink()
  6974. +  *    trick.
  6975. +  */
  6976. + #define HAS_RENAME
  6977. + /* HAS_REWINDDIR
  6978. +  *    This symbol, if defined, indicates that the rewindir routine is
  6979. +  *    available to rewind directories.
  6980. +  */
  6981. + #define HAS_REWINDDIR
  6982. + /* HAS_RMDIR
  6983. +  *    This symbol, if defined, indicates that the rmdir routine is available
  6984. +  *    to remove directories.  Otherwise you should fork off a new process to
  6985. +  *    exec /bin/rmdir.
  6986. +  */
  6987. + #define HAS_RMDIR
  6988. + /* HAS_SEEKDIR
  6989. +  *    This symbol, if defined, indicates that the seekdir routine is
  6990. +  *    available to seek into directories.
  6991. +  */
  6992. + #define HAS_SEEKDIR
  6993. + /* HAS_SELECT
  6994. +  *    This symbol, if defined, indicates that the select() subroutine
  6995. +  *    exists.
  6996. +  */
  6997. + #define HAS_SELECT
  6998. + /* HAS_SEM
  6999. +  *    This symbol, if defined, indicates that the entire sem*(2) library is
  7000. +  *    supported.
  7001. +  */
  7002. + #undef HAS_SEM
  7003. + /* HAS_SEMCTL
  7004. +  *    This symbol, if defined, indicates that the semctl() routine is
  7005. +  *    available to control semaphores.
  7006. +  */
  7007. + #undef HAS_SEMCTL
  7008. + /* HAS_SEMGET
  7009. +  *    This symbol, if defined, indicates that the semget() routine is
  7010. +  *    available to get semaphores ids.
  7011. +  */
  7012. + #undef HAS_SEMGET
  7013. + /* HAS_SEMOP
  7014. +  *    This symbol, if defined, indicates that the semop() routine is
  7015. +  *    available to perform semaphore operations.
  7016. +  */
  7017. + #undef HAS_SEMOP
  7018. + /* HAS_SETEGID
  7019. +  *    This symbol, if defined, indicates that the setegid routine is available
  7020. +  *    to change the effective gid of the current program.
  7021. +  */
  7022. + #undef HAS_SETEGID
  7023. + /* HAS_SETEUID
  7024. +  *    This symbol, if defined, indicates that the seteuid routine is available
  7025. +  *    to change the effective uid of the current program.
  7026. +  */
  7027. + #undef HAS_SETEUID
  7028. + /* HAS_SETPGRP
  7029. +  *    This symbol, if defined, indicates that the setpgrp() routine is
  7030. +  *    available to set the current process group.
  7031. +  */
  7032. + #define HAS_SETPGRP
  7033. + /* HAS_SETPGRP2
  7034. +  *    This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
  7035. +  *    routine is available to set the current process group.
  7036. +  */
  7037. + #undef HAS_SETPGRP2
  7038. + /* HAS_SETPRIORITY
  7039. +  *    This symbol, if defined, indicates that the setpriority() routine is
  7040. +  *    available to set a process's priority.
  7041. +  */
  7042. + #define HAS_SETPRIORITY
  7043. + /* HAS_SETREGID
  7044. +  *    This symbol, if defined, indicates that the setregid routine is
  7045. +  *    available to change the real and effective gid of the current program.
  7046. +  */
  7047. + /* HAS_SETRESGID
  7048. +  *    This symbol, if defined, indicates that the setresgid routine is
  7049. +  *    available to change the real, effective and saved gid of the current
  7050. +  *    program.
  7051. +  */
  7052. + #undef HAS_SETREGID
  7053. + #undef HAS_SETRESGID
  7054. + /* HAS_SETREUID
  7055. +  *    This symbol, if defined, indicates that the setreuid routine is
  7056. +  *    available to change the real and effective uid of the current program.
  7057. +  */
  7058. + /* HAS_SETRESUID
  7059. +  *    This symbol, if defined, indicates that the setresuid routine is
  7060. +  *    available to change the real, effective and saved uid of the current
  7061. +  *    program.
  7062. +  */
  7063. + #undef HAS_SETREUID
  7064. + #undef HAS_SETRESUID
  7065. + /* HAS_SETRGID
  7066. +  *    This symbol, if defined, indicates that the setrgid routine is available
  7067. +  *    to change the real gid of the current program.
  7068. +  */
  7069. + #undef HAS_SETRGID
  7070. + /* HAS_SETRUID
  7071. +  *    This symbol, if defined, indicates that the setruid routine is available
  7072. +  *    to change the real uid of the current program.
  7073. +  */
  7074. + #undef HAS_SETRUID
  7075. + /* HAS_SHM
  7076. +  *    This symbol, if defined, indicates that the entire shm*(2) library is
  7077. +  *    supported.
  7078. +  */
  7079. + #undef HAS_SHM
  7080. + /* HAS_SHMAT
  7081. +  *    This symbol, if defined, indicates that the shmat() routine is
  7082. +  *    available to attach a shared memory segment.
  7083. +  */
  7084. + /* VOID_SHMAT
  7085. +  *    This symbol, if defined, indicates that the shmat() routine
  7086. +  *    returns a pointer of type void*.
  7087. +  */
  7088. + #undef HAS_SHMAT
  7089. + #undef VOIDSHMAT
  7090. + /* HAS_SHMCTL
  7091. +  *    This symbol, if defined, indicates that the shmctl() routine is
  7092. +  *    available to control a shared memory segment.
  7093. +  */
  7094. + #undef HAS_SHMCTL
  7095. + /* HAS_SHMDT
  7096. +  *    This symbol, if defined, indicates that the shmdt() routine is
  7097. +  *    available to detach a shared memory segment.
  7098. +  */
  7099. + #undef HAS_SHMDT
  7100. + /* HAS_SHMGET
  7101. +  *    This symbol, if defined, indicates that the shmget() routine is
  7102. +  *    available to get a shared memory segment id.
  7103. +  */
  7104. + #undef HAS_SHMGET
  7105. + /* HAS_SOCKET
  7106. +  *    This symbol, if defined, indicates that the BSD socket interface is
  7107. +  *    supported.
  7108. +  */
  7109. + /* HAS_SOCKETPAIR
  7110. +  *    This symbol, if defined, indicates that the BSD socketpair call is
  7111. +  *    supported.
  7112. +  */
  7113. + /* OLDSOCKET
  7114. +  *    This symbol, if defined, indicates that the 4.1c BSD socket interface
  7115. +  *    is supported instead of the 4.2/4.3 BSD socket interface.
  7116. +  */
  7117. + #undef HAS_SOCKET
  7118. + #undef HAS_SOCKETPAIR
  7119. + #undef OLDSOCKET
  7120. + /* STATBLOCKS
  7121. +  *    This symbol is defined if this system has a stat structure declaring
  7122. +  *    st_blksize and st_blocks.
  7123. +  */
  7124. + #define STATBLOCKS
  7125. + /* STDSTDIO
  7126. +  *    This symbol is defined if this system has a FILE structure declaring
  7127. +  *    _ptr and _cnt in stdio.h.
  7128. +  */
  7129. + #undef STDSTDIO
  7130. + /* STRUCTCOPY
  7131. +  *    This symbol, if defined, indicates that this C compiler knows how
  7132. +  *    to copy structures.  If undefined, you'll need to use a block copy
  7133. +  *    routine of some sort instead.
  7134. +  */
  7135. + #define STRUCTCOPY
  7136. + /* HAS_STRERROR
  7137. +  *    This symbol, if defined, indicates that the strerror() routine is
  7138. +  *    available to translate error numbers to strings.
  7139. +  */
  7140. + #define HAS_STRERROR
  7141. + /* HAS_SYMLINK
  7142. +  *    This symbol, if defined, indicates that the symlink routine is available
  7143. +  *    to create symbolic links.
  7144. +  */
  7145. + #define HAS_SYMLINK
  7146. + /* HAS_SYSCALL
  7147. +  *    This symbol, if defined, indicates that the syscall routine is available
  7148. +  *    to call arbitrary system calls.  If undefined, that's tough.
  7149. +  */
  7150. + #undef HAS_SYSCALL
  7151. + /* HAS_TELLDIR
  7152. +  *    This symbol, if defined, indicates that the telldir routine is
  7153. +  *    available to tell your location in directories.
  7154. +  */
  7155. + #define HAS_TELLDIR
  7156. + /* HAS_TRUNCATE
  7157. +  *    This symbol, if defined, indicates that the truncate routine is
  7158. +  *    available to truncate files.
  7159. +  */
  7160. + #define HAS_TRUNCATE        /**/
  7161. + /* HAS_VFORK
  7162. +  *    This symbol, if defined, indicates that vfork() exists.
  7163. +  */
  7164. + #define HAS_VFORK
  7165. + /* RETSIGTYPE
  7166. +  *    This symbol is defined if this system declares "void (*signal())()" in
  7167. +  *    signal.h.  The old way was to declare it as "int (*signal())()".  It
  7168. +  *    is up to the package author to declare things correctly based on the
  7169. +  *    symbol.
  7170. +  */
  7171. + /* TO_SIGNAL
  7172. +  *    This symbol's value is either "void" or "int", corresponding to the
  7173. +  *    appropriate return "type" of a signal handler.  Thus, one can declare
  7174. +  *    a signal handler using "TO_SIGNAL (*handler())()", and define the
  7175. +  *    handler using "TO_SIGNAL handler(sig)".
  7176. +  */
  7177. + #undef RETSIGTYPE
  7178. + #define TO_SIGNAL
  7179. + /* HASVOLATILE
  7180. +  *    This symbol, if defined, indicates that this C compiler knows about
  7181. +  *    the volatile declaration.
  7182. +  */
  7183. + #undef HASVOLATILE
  7184. + /* HAS_VPRINTF
  7185. +  *    This symbol, if defined, indicates that the vprintf routine is available
  7186. +  *    to printf with a pointer to an argument list.  If unavailable, you
  7187. +  *    may need to write your own, probably in terms of _doprnt().
  7188. +  */
  7189. + /* CHARVSPRINTF
  7190. +  *    This symbol is defined if this system has vsprintf() returning type
  7191. +  *    (char*).  The trend seems to be to declare it as "int vsprintf()".  It
  7192. +  *    is up to the package author to declare vsprintf correctly based on the
  7193. +  *    symbol.
  7194. +  */
  7195. + #define HAS_VPRINTF
  7196. + #undef CHARVSPRINTF
  7197. + /* HAS_WAIT4
  7198. +  *    This symbol, if defined, indicates that wait4() exists.
  7199. +  */
  7200. + #define HAS_WAIT4
  7201. + /* HAS_WAITPID
  7202. +  *    This symbol, if defined, indicates that waitpid() exists.
  7203. +  */
  7204. + #define HAS_WAITPID
  7205. + /* GIDTYPE
  7206. +  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  7207. +  *    used to declare group ids in the kernel.
  7208. +  */
  7209. + #define GIDTYPE gid_t
  7210. + /* GROUPSTYPE
  7211. +  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  7212. +  *    used in the return value of getgroups().
  7213. +  */
  7214. + #define GROUPSTYPE gid_t
  7215. + /* I_FCNTL
  7216. +  *    This manifest constant tells the C program to include <fcntl.h>.
  7217. +  */
  7218. + #undef I_FCNTL
  7219. + /* I_GRP
  7220. +  *    This symbol, if defined, indicates to the C program that it should
  7221. +  *    include grp.h.
  7222. +  */
  7223. + #define I_GRP
  7224. + /* I_NETINET_IN
  7225. +  *    This symbol, if defined, indicates to the C program that it should
  7226. +  *    include netinet/in.h.
  7227. +  */
  7228. + /* I_SYS_IN
  7229. +  *    This symbol, if defined, indicates to the C program that it should
  7230. +  *    include sys/in.h.
  7231. +  */
  7232. + #undef I_NETINET_IN
  7233. + #undef I_SYS_IN
  7234. + /* I_PWD
  7235. +  *    This symbol, if defined, indicates to the C program that it should
  7236. +  *    include pwd.h.
  7237. +  */
  7238. + /* PWQUOTA
  7239. +  *    This symbol, if defined, indicates to the C program that struct passwd
  7240. +  *    contains pw_quota.
  7241. +  */
  7242. + /* PWAGE
  7243. +  *    This symbol, if defined, indicates to the C program that struct passwd
  7244. +  *    contains pw_age.
  7245. +  */
  7246. + /* PWCHANGE
  7247. +  *    This symbol, if defined, indicates to the C program that struct passwd
  7248. +  *    contains pw_change.
  7249. +  */
  7250. + /* PWCLASS
  7251. +  *    This symbol, if defined, indicates to the C program that struct passwd
  7252. +  *    contains pw_class.
  7253. +  */
  7254. + /* PWEXPIRE
  7255. +  *    This symbol, if defined, indicates to the C program that struct passwd
  7256. +  *    contains pw_expire.
  7257. +  */
  7258. + /* PWCOMMENT
  7259. +  *    This symbol, if defined, indicates to the C program that struct passwd
  7260. +  *    contains pw_comment.
  7261. +  */
  7262. + #undef I_PWD
  7263. + #undef PWQUOTA
  7264. + #undef PWAGE
  7265. + #define PWCHANGE
  7266. + #define PWCLASS
  7267. + #define PWEXPIRE
  7268. + #undef PWCOMMENT
  7269. + /* I_SYS_FILE
  7270. +  *    This manifest constant tells the C program to include <sys/file.h>.
  7271. +  */
  7272. + #define I_SYS_FILE
  7273. + /* I_SYSIOCTL
  7274. +  *    This symbol, if defined, indicates that sys/ioctl.h exists and should
  7275. +  *    be included.
  7276. +  */
  7277. + #define I_SYSIOCTL
  7278. + /* I_TIME
  7279. +  *    This symbol is defined if the program should include <time.h>.
  7280. +  */
  7281. + /* I_SYS_TIME
  7282. +  *    This symbol is defined if the program should include <sys/time.h>.
  7283. +  */
  7284. + /* SYSTIMEKERNEL
  7285. +  *    This symbol is defined if the program should include <sys/time.h>
  7286. +  *    with KERNEL defined.
  7287. +  */
  7288. + /* I_SYS_SELECT
  7289. +  *    This symbol is defined if the program should include <sys/select.h>.
  7290. +  */
  7291. + #undef I_TIME
  7292. + #define I_SYS_TIME
  7293. + #undef SYSTIMEKERNEL
  7294. + #undef I_SYS_SELECT
  7295. + /* I_UTIME
  7296. +  *    This symbol, if defined, indicates to the C program that it should
  7297. +  *    include utime.h.
  7298. +  */
  7299. + #define I_UTIME
  7300. + /* I_VARARGS
  7301. +  *    This symbol, if defined, indicates to the C program that it should
  7302. +  *    include varargs.h.
  7303. +  */
  7304. + #define I_VARARGS
  7305. + /* I_VFORK
  7306. +  *    This symbol, if defined, indicates to the C program that it should
  7307. +  *    include vfork.h.
  7308. +  */
  7309. + #undef I_VFORK
  7310. + /* INTSIZE
  7311. +  *    This symbol contains the size of an int, so that the C preprocessor
  7312. +  *    can make decisions based on it.
  7313. +  */
  7314. + #define INTSIZE 4
  7315. + /* I_DIRENT
  7316. +  *    This symbol, if defined, indicates that the program should use the
  7317. +  *    P1003-style directory routines, and include <dirent.h>.
  7318. +  */
  7319. + /* I_SYS_DIR
  7320. +  *    This symbol, if defined, indicates that the program should use the
  7321. +  *    directory functions by including <sys/dir.h>.
  7322. +  */
  7323. + /* I_NDIR
  7324. +  *    This symbol, if defined, indicates that the program should include the
  7325. +  *    system's version of ndir.h, rather than the one with this package.
  7326. +  */
  7327. + /* I_SYS_NDIR
  7328. +  *    This symbol, if defined, indicates that the program should include the
  7329. +  *    system's version of sys/ndir.h, rather than the one with this package.
  7330. +  */
  7331. + /* I_MY_DIR
  7332. +  *    This symbol, if defined, indicates that the program should compile
  7333. +  *    the ndir.c code provided with the package.
  7334. +  */
  7335. + /* DIRNAMLEN
  7336. +  *    This symbol, if defined, indicates to the C program that the length
  7337. +  *    of directory entry names is provided by a d_namlen field.  Otherwise
  7338. +  *    you need to do strlen() on the d_name field.
  7339. +  */
  7340. + #define I_DIRENT
  7341. + #undef I_SYS_DIR
  7342. + #undef I_NDIR
  7343. + #undef I_SYS_NDIR
  7344. + #undef I_MY_DIR
  7345. + #define DIRNAMLEN
  7346. + /* MYMALLOC
  7347. +  *    This symbol, if defined, indicates that we're using our own malloc.
  7348. +  */
  7349. + /* MALLOCPTRTYPE
  7350. +  *    This symbol defines the kind of ptr returned by malloc and realloc.
  7351. +  */
  7352. + #undef MYMALLOC
  7353. + #define MALLOCPTRTYPE void
  7354. + /* RANDBITS
  7355. +  *    This symbol contains the number of bits of random number the rand()
  7356. +  *    function produces.  Usual values are 15, 16, and 31.
  7357. +  */
  7358. + #define RANDBITS 31
  7359. + /* SCRIPTDIR
  7360. +  *    This symbol holds the name of the directory in which the user wants
  7361. +  *    to keep publicly executable scripts for the package in question.  It
  7362. +  *    is often a directory that is mounted across diverse architectures.
  7363. +  */
  7364. + #define SCRIPTDIR "/bin"
  7365. + /* SIG_NAME
  7366. +  *    This symbol contains an list of signal names in order.
  7367. +  */
  7368. + #define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","ABRT","EMT","FPE","KILL","10","SEGV","SYS","PIPE","ALRM","TERM","URG","STOP","TSTP","CONT","20","TTIN","TTOU","IO","XCPU","XFSZ","VTALRM","PROF","WINCH","INFO","30","USR2","MSG"
  7369. + /* STDCHAR
  7370. +  *    This symbol is defined to be the type of char used in stdio.h.
  7371. +  *    It has the values "unsigned char" or "char".
  7372. +  */
  7373. + #define STDCHAR char
  7374. + /* UIDTYPE
  7375. +  *    This symbol has a value like uid_t, int, ushort, or whatever type is
  7376. +  *    used to declare user ids in the kernel.
  7377. +  */
  7378. + #define UIDTYPE uid_t
  7379. + /* VOIDHAVE
  7380. +  *    This symbol indicates how much support of the void type is given by this
  7381. +  *    compiler.  What various bits mean:
  7382. +  *
  7383. +  *        1 = supports declaration of void
  7384. +  *        2 = supports arrays of pointers to functions returning void
  7385. +  *        4 = supports comparisons between pointers to void functions and
  7386. +  *            addresses of void functions
  7387. +  *
  7388. +  *    The package designer should define VOIDWANT to indicate the requirements
  7389. +  *    of the package.  This can be done either by #defining VOIDWANT before
  7390. +  *    including config.h, or by defining voidwant in Myinit.U.  If the level
  7391. +  *    of void support necessary is not present, config.h defines void to "int",
  7392. +  *    VOID to the empty string, and VOIDP to "char *".
  7393. +  */
  7394. + /* void
  7395. +  *    This symbol is used for void casts.  On implementations which support
  7396. +  *    void appropriately, its value is "void".  Otherwise, its value maps
  7397. +  *    to "int".
  7398. +  */
  7399. + /* VOID
  7400. +  *    This symbol's value is "void" if the implementation supports void
  7401. +  *    appropriately.  Otherwise, its value is the empty string.  The primary
  7402. +  *    use of this symbol is in specifying void parameter lists for function
  7403. +  *    prototypes.
  7404. +  */
  7405. + /* VOIDP
  7406. +  *    This symbol is used for casting generic pointers.  On implementations
  7407. +  *    which support void appropriately, its value is "void *".  Otherwise,
  7408. +  *    its value is "char *".
  7409. +  */
  7410. + #ifndef VOIDWANT
  7411. + #define VOIDWANT 7
  7412. + #endif
  7413. + #define VOIDHAVE 7
  7414. + #if (VOIDHAVE & VOIDWANT) != VOIDWANT
  7415. + #define void int        /* is void to be avoided? */
  7416. + #define VOID
  7417. + #define VOIDP (char *)
  7418. + #define M_VOID        /* Xenix strikes again */
  7419. + #else
  7420. + #define VOID void
  7421. + #define VOIDP (void *)
  7422. + #endif
  7423. + /* PRIVLIB
  7424. +  *    This symbol contains the name of the private library for this package.
  7425. +  *    The library is private in the sense that it needn't be in anyone's
  7426. +  *    execution path, but it should be accessible by the world.  The program
  7427. +  *    should be prepared to do ~ expansion.
  7428. +  */
  7429. + #define PRIVLIB "/gnu/lib/perl"
  7430. + #endif
  7431. diff -rc --new-file perl-4.036/configure.in /gnu/src/amiga/perl-4.036/configure.in
  7432. *** perl-4.036/configure.in    Thu Jan  1 00:00:00 1970
  7433. --- /gnu/src/amiga/perl-4.036/configure.in    Tue Aug 23 12:35:24 1994
  7434. ***************
  7435. *** 0 ****
  7436. --- 1,29 ----
  7437. + dnl Process this file with autoconf to produce a configure script.
  7438. + AC_INIT(perl.c)
  7439. + AC_CONFIG_HEADER(config.h)
  7440. + # We want these before the checks, so the checks can modify their values.
  7441. + test -z "$CFLAGS" && CFLAGS= auto_cflags=1
  7442. + test -z "$LDFLAGS" && LDFLAGS=
  7443. + AC_PROG_CC
  7444. + # If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
  7445. + # FIXME:  gcc 2.6.0 has trouble compiling tperl.c with -O2 and also generates
  7446. + # random mungwall hits on some other files, so for now, don't optimize.
  7447. + test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS"
  7448. + AC_SUBST(CFLAGS)dnl
  7449. + AC_SUBST(LDFLAGS)dnl
  7450. + AC_PROG_CPP
  7451. + AC_GCC_TRADITIONAL
  7452. + AC_PROG_INSTALL
  7453. + AC_PROG_YACC
  7454. + AC_RETSIGTYPE
  7455. + AC_LN_S
  7456. + AC_HAVE_LIBRARY(m)
  7457. + AC_HAVE_HEADERS(gdbm.h ndbm.h dbz.h dbm.h)
  7458. + AC_HAVE_LIBRARY(gdbm)
  7459. + AC_OUTPUT(Makefile x2p/Makefile)
  7460. diff -rc --new-file perl-4.036/eval.c /gnu/src/amiga/perl-4.036/eval.c
  7461. *** perl-4.036/eval.c    Mon Feb  8 20:37:47 1993
  7462. --- /gnu/src/amiga/perl-4.036/eval.c    Wed May  4 16:21:05 1994
  7463. ***************
  7464. *** 66,78 ****
  7465.   #   include <vfork.h>
  7466.   #endif
  7467.   
  7468. ! #ifdef VOIDSIG
  7469. ! static void (*ihand)();
  7470. ! static void (*qhand)();
  7471. ! #else
  7472. ! static int (*ihand)();
  7473. ! static int (*qhand)();
  7474. ! #endif
  7475.   
  7476.   ARG *debarg;
  7477.   STR str_args;
  7478. --- 66,73 ----
  7479.   #   include <vfork.h>
  7480.   #endif
  7481.   
  7482. ! static RETSIGTYPE (*ihand)();
  7483. ! static RETSIGTYPE (*qhand)();
  7484.   
  7485.   ARG *debarg;
  7486.   STR str_args;
  7487. diff -rc --new-file perl-4.036/makedepend.SH /gnu/src/amiga/perl-4.036/makedepend.SH
  7488. *** perl-4.036/makedepend.SH    Mon Feb  8 20:36:27 1993
  7489. --- /gnu/src/amiga/perl-4.036/makedepend.SH    Mon Sep 27 22:06:33 1993
  7490. ***************
  7491. *** 63,71 ****
  7492.   $cat /dev/null >.deptmp
  7493.   $rm -f *.c.c c/*.c.c
  7494.   if test -f Makefile; then
  7495. !     cp Makefile makefile
  7496.   fi
  7497. ! mf=makefile
  7498.   if test -f $mf; then
  7499.       defrule=`<$mf sed -n        \
  7500.       -e '/^\.c\.o:.*;/{'        \
  7501. --- 63,71 ----
  7502.   $cat /dev/null >.deptmp
  7503.   $rm -f *.c.c c/*.c.c
  7504.   if test -f Makefile; then
  7505. !     cp Makefile Makefile.bak
  7506.   fi
  7507. ! mf=Makefile
  7508.   if test -f $mf; then
  7509.       defrule=`<$mf sed -n        \
  7510.       -e '/^\.c\.o:.*;/{'        \
  7511. diff -rc --new-file perl-4.036/perl.h /gnu/src/amiga/perl-4.036/perl.h
  7512. *** perl-4.036/perl.h    Mon Feb  8 20:36:01 1993
  7513. --- /gnu/src/amiga/perl-4.036/perl.h    Mon Sep 27 22:06:19 1993
  7514. ***************
  7515. *** 79,85 ****
  7516. --- 79,87 ----
  7517.    */
  7518.   #define HAS_ALARM
  7519.   #define HAS_CHOWN
  7520. + #ifndef amigados
  7521.   #define HAS_CHROOT
  7522. + #endif
  7523.   #define HAS_FORK
  7524.   #define HAS_GETLOGIN
  7525.   #define HAS_GETPPID
  7526. ***************
  7527. *** 93,99 ****
  7528. --- 95,103 ----
  7529.    * password and group functions in general.  All Unix systems do.
  7530.    */
  7531.   #define HAS_GROUP
  7532. + #ifndef amigados
  7533.   #define HAS_PASSWD
  7534. + #endif
  7535.   
  7536.   #endif /* !MSDOS */
  7537.   
  7538. diff -rc --new-file perl-4.036/stab.c /gnu/src/amiga/perl-4.036/stab.c
  7539. *** perl-4.036/stab.c    Mon Feb  8 20:35:58 1993
  7540. --- /gnu/src/amiga/perl-4.036/stab.c    Wed May  4 16:24:16 1994
  7541. ***************
  7542. *** 52,64 ****
  7543.       SIG_NAME,0
  7544.   };
  7545.   
  7546. ! #ifdef VOIDSIG
  7547. ! #define handlertype void
  7548. ! #else
  7549. ! #define handlertype int
  7550. ! #endif
  7551. ! static handlertype sighandler();
  7552.   
  7553.   static int origalen = 0;
  7554.   
  7555. --- 52,58 ----
  7556.       SIG_NAME,0
  7557.   };
  7558.   
  7559. ! static RETSIGTYPE sighandler();
  7560.   
  7561.   static int origalen = 0;
  7562.   
  7563. ***************
  7564. *** 719,725 ****
  7565.       return 0;
  7566.   }
  7567.   
  7568. ! static handlertype
  7569.   sighandler(sig)
  7570.   int sig;
  7571.   {
  7572. --- 713,719 ----
  7573.       return 0;
  7574.   }
  7575.   
  7576. ! static RETSIGTYPE
  7577.   sighandler(sig)
  7578.   int sig;
  7579.   {
  7580. diff -rc --new-file perl-4.036/util.c /gnu/src/amiga/perl-4.036/util.c
  7581. *** perl-4.036/util.c    Mon Feb  8 20:35:26 1993
  7582. --- /gnu/src/amiga/perl-4.036/util.c    Wed May  4 16:23:00 1994
  7583. ***************
  7584. *** 1545,1555 ****
  7585.   mypclose(ptr)
  7586.   FILE *ptr;
  7587.   {
  7588. ! #ifdef VOIDSIG
  7589. !     void (*hstat)(), (*istat)(), (*qstat)();
  7590. ! #else
  7591. !     int (*hstat)(), (*istat)(), (*qstat)();
  7592. ! #endif
  7593.       int status;
  7594.       STR *str;
  7595.       int pid;
  7596. --- 1545,1551 ----
  7597.   mypclose(ptr)
  7598.   FILE *ptr;
  7599.   {
  7600. !     RETSIGTYPE (*hstat)(), (*istat)(), (*qstat)();
  7601.       int status;
  7602.       STR *str;
  7603.       int pid;
  7604. diff -rc --new-file perl-4.036/x2p/Makefile.SH /gnu/src/amiga/perl-4.036/x2p/Makefile.SH
  7605. *** perl-4.036/x2p/Makefile.SH    Mon Feb  8 20:36:33 1993
  7606. --- /gnu/src/amiga/perl-4.036/x2p/Makefile.SH    Mon Sep 27 22:07:15 1993
  7607. ***************
  7608. *** 157,160 ****
  7609.       ln Makefile ../Makefile
  7610.       ;;
  7611.   esac
  7612. ! rm -f makefile
  7613. --- 157,160 ----
  7614.       ln Makefile ../Makefile
  7615.       ;;
  7616.   esac
  7617. ! #rm -f makefile
  7618. diff -rc --new-file perl-4.036/x2p/Makefile.in /gnu/src/amiga/perl-4.036/x2p/Makefile.in
  7619. *** perl-4.036/x2p/Makefile.in    Thu Jan  1 00:00:00 1970
  7620. --- /gnu/src/amiga/perl-4.036/x2p/Makefile.in    Mon May  2 16:20:50 1994
  7621. ***************
  7622. *** 0 ****
  7623. --- 1,154 ----
  7624. + # : Makefile.SH,v 123379328Revision: 4.0.1.3 123379328Date: 92/06/08 16:11:32 $
  7625. + #
  7626. + # $Log:    Makefile.SH,v $
  7627. + # Revision 4.0.1.3  92/06/08  16:11:32  lwall
  7628. + # patch20: SH files didn't work well with symbolic links
  7629. + # patch20: cray didn't give enough memory to /bin/sh
  7630. + # patch20: makefiles now display new shift/reduce expectations
  7631. + # 
  7632. + # Revision 4.0.1.2  91/11/05  19:19:04  lwall
  7633. + # patch11: random cleanup
  7634. + # 
  7635. + # Revision 4.0.1.1  91/06/07  12:12:14  lwall
  7636. + # patch4: cflags now emits entire cc command except for the filename
  7637. + # 
  7638. + # Revision 4.0  91/03/20  01:57:03  lwall
  7639. + # 4.0 baseline.
  7640. + # 
  7641. + # 
  7642. + #### Start of system configuration section. ####
  7643. + VPATH = @srcdir@
  7644. + srcdir = @srcdir@
  7645. + # Common prefix for machine-independent installed files.
  7646. + prefix = /gnu
  7647. + # Common prefix for machine-dependent installed files.
  7648. + exec_prefix = $(prefix)
  7649. + # Directory to install executables in.
  7650. + bindir = $(exec_prefix)/bin
  7651. + # Directory to install libraries in.
  7652. + libdir = $(exec_prefix)/lib
  7653. + # Directory to install the Info files in.
  7654. + infodir = $(prefix)/info
  7655. + # Directory to install the man page in.
  7656. + mandir = $(prefix)/man/man$(manext)
  7657. + # Number to put on the man page filename.
  7658. + manext = 1
  7659. + # Program to install executables.
  7660. + INSTALL_PROGRAM = @INSTALL_PROGRAM@
  7661. + # Program to install data like man pages.
  7662. + INSTALL_DATA = @INSTALL_DATA@
  7663. + # Generic install program.
  7664. + INSTALL = @INSTALL@
  7665. + CC = @CC@
  7666. + DEFS = @DEFS@ -traditional
  7667. + CFLAGS = @CFLAGS@
  7668. + LDFLAGS = @LDFLAGS@
  7669. + LIBS = @LIBS@
  7670. + YACC = @YACC@
  7671. + LN_S = @LN_S@
  7672. + #### End of system configuration section. ####
  7673. + # "-I." is needed to find config.h in the build directory.
  7674. + .c.o:
  7675. +     $(CC) -c -I. -I$(srcdir) $(DEFS) $(CFLAGS) $< $(OUTPUT_OPTION)
  7676. + public = a2p s2p find2perl
  7677. + private = 
  7678. + manpages = a2p.man s2p.man
  7679. + util =
  7680. + sh = Makefile.SH makedepend.SH
  7681. + h = EXTERN.h INTERN.h ../config.h handy.h hash.h a2p.h str.h util.h
  7682. + c = hash.c $(mallocsrc) str.c util.c walk.c
  7683. + obj = hash.o $(mallocobj) str.o util.o walk.o
  7684. + lintflags = -phbvxac
  7685. + addedbyconf = Makefile.old bsd eunice filexp loc pdp11 usg v7
  7686. + # grrr
  7687. + SHELL = /bin/sh
  7688. + all: $(public) $(private) $(util)
  7689. +     touch all
  7690. + a2p: $(obj) a2p.o
  7691. +     $(CC) $(LDFLAGS) $(obj) a2p.o $(LIBS) -o a2p
  7692. + a2p.c: a2p.y
  7693. +     @ echo Expect 231 shift/reduce conflicts...
  7694. +     $(YACC) $(srcdir)/a2p.y
  7695. +     mv y.tab.c a2p.c
  7696. + a2p.o: a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h handy.h ../config.h str.h hash.h
  7697. +     $(CC) -c -I. -I$(srcdir) $(DEFS) $(CFLAGS) $(srcdir)/a2p.c
  7698. + install: a2p s2p
  7699. + # won't work with csh
  7700. +     export PATH || exit 1
  7701. +     - mv $(bindir)/a2p $(bindir)/a2p.old 2>/dev/null
  7702. +     - mv $(bindir)/s2p $(bindir)/s2p.old 2>/dev/null
  7703. +     - if test `pwd` != $(bindir); then cp $(public) $(bindir); fi
  7704. +     cd $(bindir); \
  7705. + for pub in $(public); do \
  7706. + chmod +x `basename $$pub`; \
  7707. + done
  7708. +     - if test `pwd` != $(mandir); then \
  7709. + for page in $(manpages); do \
  7710. + cp $$page $(mandir)/`basename $$page .man`.$(manext); \
  7711. + done; \
  7712. + fi
  7713. + clean:
  7714. +     rm -f a2p *.o a2p.c
  7715. + realclean: clean
  7716. +     rm -f *.orig */*.orig core $(addedbyconf) a2p.c s2p find2perl all cflags
  7717. + # The following lint has practically everything turned on.  Unfortunately,
  7718. + # you have to wade through a lot of mumbo jumbo that can't be suppressed.
  7719. + # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
  7720. + # for that spot.
  7721. + lint:
  7722. +     lint $(lintflags) $(defs) $(c) > a2p.fuzz
  7723. + depend: $(mallocsrc) ../makedepend
  7724. +     ../makedepend
  7725. + clist:
  7726. +     echo $(c) | tr ' ' '\012' >.clist
  7727. + hlist:
  7728. +     echo $(h) | tr ' ' '\012' >.hlist
  7729. + shlist:
  7730. +     echo $(sh) | tr ' ' '\012' >.shlist
  7731. + config.sh: ../config.sh
  7732. +     rm -f config.sh
  7733. +     ln ../config.sh .
  7734. + malloc.c: ../malloc.c
  7735. +     sed 's/"perl.h"/"..\/perl.h"/' ../malloc.c >malloc.c
  7736. + # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
  7737. + $(obj):
  7738. +     @ echo "You haven't done a "'"make depend" yet!'; exit 1
  7739. + makedepend: makedepend.SH
  7740. +     /bin/sh $(shellflags) makedepend.SH
  7741.