home *** CD-ROM | disk | FTP | other *** search
- --- Configure
- +++ Configure 1994/06/17 12:16:58
- @@ -56,7 +56,7 @@
- ranlib=''
- package=''
- pager=''
- -prefshell=''
- +prefshell='/bin/bash'
- startsh=''
- d_eunice=''
- define=''
- @@ -124,31 +124,29 @@
- c_date=''
- d_ascii=''
- d_broke_ctype=''
- -d_calendar=''
- +d_calendar='undef'
- calendar=''
- d_chown_neg1=''
- -d_content=''
- +d_content='define'
- d_crypt=''
- cryptlib=''
- d_cuserid=''
- -d_disphost=''
- -d_domname=''
- -d_usegetdom=''
- -d_errlst=''
- -d_flock=''
- -d_dotlock=''
- -d_fcntlock=''
- +d_disphost='define'
- +d_errlst='define'
- +d_flock='define'
- +d_dotlock='undef'
- +d_fcntlock='undef'
- lock_dir=''
- has_flock=''
- has_fcntl=''
- d_ftruncate=''
- -d_gethname=''
- +d_gethname='define'
- d_douname=''
- d_host_comp=''
- ign_hname=''
- d_havetlib=''
- termlib=''
- -d_index=''
- +d_index='undef'
- d_internet=''
- d_ispell=''
- ispell_path=''
- @@ -158,11 +156,11 @@
- d_msgcat=''
- d_usenls=''
- d_mallocvoid=''
- -d_mboxedit=''
- -d_mime=''
- -defencoding=''
- +d_mboxedit='define'
- +d_mime='define'
- +defencoding='7bit'
- defcharset=''
- -defdispcharset=''
- +defdispcharset='ISO-8859-1'
- d_mmdf=''
- d_newauto=''
- d_noaddfrom=''
- @@ -208,7 +206,6 @@
- editoropts=''
- hostname=''
- phostname=''
- -mydomain=''
- autohostname=''
- i_memory=''
- i_stdarg=''
- @@ -222,11 +219,11 @@
- lib=''
- libc=''
- linepr=''
- -maildir=''
- +maildir='/var/mail'
- mailer=''
- mailgrp=''
- -mansrc=''
- -catmansrc=''
- +mansrc='/usr/man/man1'
- +catmansrc='none'
- manext=''
- manext_choice=''
- catmanext=''
- @@ -242,15 +239,15 @@
- medium=''
- large=''
- huge=''
- -optimize=''
- +optimize='-O6 -fomit-frame-pointer -m486'
- ccflags=''
- cppflags=''
- -ldflags=''
- +ldflags='-s -v'
- cc=''
- libs=''
- nametype=''
- d_passnames=''
- -d_berknames=''
- +d_berknames='define'
- d_usgnames=''
- passcat=''
- rmttape=''
- @@ -2384,6 +2381,9 @@
- elif $contains EWOULDBLOCK /usr/include/sys/errno.h > /dev/null 2>&1; then
- has_flock="$define"
- echo 'flock locking available.'
- + elif $contains EWOULDBLOCK /usr/include/linux/errno.h > /dev/null 2>&1; then
- + has_flock="$define"
- + echo 'flock locking available.'
- else
- has_flock="$undef"
- echo 'flock locking not available.'
- @@ -2406,6 +2406,9 @@
- elif $contains F_SETLK /usr/include/fcntl.h >/dev/null 2>&1; then
- echo 'F_SETLK found, fcntl locking available'
- has_fcntl="$define"
- +elif $contains F_SETLK /usr/include/linux/fcntl.h >/dev/null 2>&1; then
- + echo 'F_SETLK found, fcntl locking available'
- + has_fcntl="$define"
- else
- echo 'F_SETLK not found, fcntl locking not available'
- has_fcntl="$undef"
- @@ -2624,34 +2627,11 @@
- autohostname="$undef"
- done
-
- -echo " "
- -case "$hostname" in
- -*.*)
- - dflt=`$expr "X$hostname" : "X[^.]*\(\..*\)"`
- - hostname=`$expr "X$hostname" : "X\([^.]*\)\."`
- - echo "(Trimming domain name from host name--host name is now $hostname)"
- - ;;
- -*) case "$mydomain" in
- - '') dflt='.UUCP';;
- - *) dflt="$mydomain";;
- - esac
- - ;;
- -esac
- -rp="What is your domain name? [$dflt]"
- -$echo $n "$rp $c"
- -. myread
- -case "$ans" in
- -'') ;;
- -.*) ;;
- -*) ans=".$ans";;
- -esac
- -mydomain="$ans"
- -
- : a little sanity check here
- case "$phostname" in
- '') ;;
- *) case `$phostname` in
- - $hostname$mydomain|$hostname) ;;
- + $hostname) ;;
- *)
- case "$phostname" in
- sed*)
- @@ -3885,47 +3865,6 @@
- *) d_useembed="$undef";;
- esac
-
- -: see if getdomainname exists
- -if $contains "^getdomainname\$" libc.list > /dev/null 2>&1; then
- - echo "getdomainname() found"
- - d_domname=$define;
- -elif $contains "^getdomnm\$" libc.list > /dev/null 2>&1; then
- - echo "getdomainname() found"
- - d_domname=$define;
- -else
- - echo "getdomainname() not found"
- - d_domname=$undef
- -fi
- -
- -case "$d_domname" in
- -"$define") cat <<EOM
- -
- -The getdomainname system call was found. When running NIS, this usually
- -returns the NIS domain and not the mail domain. If this is the case,
- -it should not be used to obtain the domain name, and the domain name
- -should be compiled into the code, and the global elm.rc file should
- -be used to override the compiled in value.
- -
- -If the getdomainname call does return the correct mail domain, it can
- -be used.
- -
- -EOM
- - case "$d_usegetdom" in
- - "$define") dflt=y;;
- - "$undef") dflt=n;;
- - *) dflt=y;;
- - esac
- - echo " "
- - rp="Should getdomainname() be used to obtain the mail domain? [$dflt]"
- - $echo $n "$rp $c"
- - . myread
- - case "$ans" in
- - y*) d_usegetdom="$define";;
- - *) d_usegetdom="$undef";;
- - esac
- - ;;
- -*) d_usegetdom="$undef";;
- -esac;
- : see if we should include time.h, sys/time.h, or both
- cat <<'EOM'
-
- @@ -4853,8 +4792,6 @@
- cryptlib='$cryptlib'
- d_cuserid='$d_cuserid'
- d_disphost='$d_disphost'
- -d_domname='$d_domname'
- -d_usegetdom='$d_usegetdom'
- d_errlst='$d_errlst'
- d_flock='$d_flock'
- d_dotlock='$d_dotlock'
- @@ -4929,7 +4866,6 @@
- editoropts='$editoropts'
- hostname='$hostname'
- phostname='$phostname'
- -mydomain='$mydomain'
- autohostname='$autohostname'
- i_memory='$i_memory'
- i_stdarg='$i_stdarg'
- --- Makefile.Linux
- +++ Makefile.Linux 1994/06/17 12:16:58
- @@ -0,0 +1,11 @@
- +Makefile:
- + sh Configure
- +
- +compile: Makefile
- + make documentation
- + make
- +
- +install: compile
- + make install
- +
- +
- --- config.h.SH
- +++ config.h.SH 1994/06/17 12:16:58
- @@ -154,22 +154,6 @@
- */
- #$d_disphost DISP_HOST /**/
-
- -/* GETDOMAINNAME
- - * This symbol, if defined, indicates that the getdomainname system call
- - * is available to obtain the domain name. Note that the $LIB/domain
- - * file overrides the value of getdomainname(). If getdomainname() exists,
- - * MYDOMAIN will be ignored.
- - */
- -/* USEGETDOMAINNAME
- - * This symbol, if defined, indicates that the getdomainname system call
- - * should be used to obtain the domain name. Note that the $LIB/domain
- - * file overrides the value of getdomainname(). If this variable is set
- - * MYDOMAIN (and therefore DEFAULT_DOMAIN) will be ignored.
- - */
- -#$d_domname GETDOMAINNAME /**/
- -
- -#$d_usegetdom USEGETDOMAINNAME /**/
- -
- /* ERRLST:
- * This symbol, if defined, indicates that the sys_errlist and sys_nerr
- * symbols exist.
- @@ -501,15 +485,7 @@
- * The dot comes with MYDOMAIN, and need not be supplied by the program.
- * If gethostname() or uname() exist, HOSTNAME may be ignored.
- */
- -/* MYDOMAIN:
- - * This symbol contains the domain of the host the program is going to
- - * run on. The domain must be appended to HOSTNAME to form a complete
- - * host name. The dot comes with MYDOMAIN, and need not be supplied by
- - * the program. If the host name is derived from PHOSTNAME, the domain
- - * may or may not already be there, and the program should check.
- - */
- #define HOSTNAME "$hostname" /**/
- -#define MYDOMAIN "$mydomain" /**/
-
- /* I_MEMORY:
- * This symbol, if defined, indicates that the file memory.h
- --- hdrs/sysdefs.SH
- +++ hdrs/sysdefs.SH 1994/06/17 12:16:58
- @@ -64,8 +64,6 @@
-
- #define DEFAULT_BATCH_SUBJECT "$defbatsub"
-
- -#define DEFAULT_DOMAIN "$mydomain" /* if mydomain file is missing */
- -
- /** If you want to implement 'site hiding' in the mail, then you'll need to
- uncomment the following lines and set them to reasonable values. See
- the configuration guide for more details....(actually these are undoc-
- --- lib/Makefile.SH
- +++ lib/Makefile.SH 1994/06/17 12:17:21
- @@ -292,6 +292,7 @@
- libutil.a: $(LIB_OBJ)
- $(AR) r $@ $?
- $(RANLIB) $@
- + ranlib libutil.a
-
- lint:
- $(LINT) $(LINTFLAGS) $(LIB_SRC) > LINT.OUT
- --- lib/opt_utils.c
- +++ lib/opt_utils.c 1994/06/17 12:22:17
- @@ -85,7 +85,9 @@
- # endif
- #endif
-
- -#ifndef GETHOSTNAME
- +#include <netdb.h>
- +
- +#if ! defined( GETHOSTNAME) && ! defined(__linux__)
-
- gethostname(cur_hostname,size) /* get name of current host */
- char *cur_hostname;
- @@ -136,7 +138,7 @@
- char *hostdom;
- int size;
- {
- - char buf[64];
- + char buf[128];
- FILE *fp;
- char *p;
-
- @@ -152,10 +154,18 @@
- *p = '\0';
- }
- else {
- -#ifdef USEGETDOMAINNAME
- - if (getdomainname(buf, sizeof(buf)) != 0)
- -#endif
- - strfcpy(buf, DEFAULT_DOMAIN, sizeof(buf));
- + if (gethostname(buf, sizeof(buf)) != 0)
- + strfcpy(buf, ".no.domain.at.all", sizeof(buf));
- + else {
- + struct hostent * hp;
- + char *tmp;
- + if ((hp = gethostbyname(buf))) {
- + tmp = strchr(hp->h_name, '.');
- + /* We should do something better in case of 'tmp == NULL'.
- + But this will happen only on misconfigured hosts. */
- + strfcpy(buf, tmp? tmp : ".no.domain.at.all", sizeof(buf));
- + } else strfcpy(buf, ".no.domain.at.all", sizeof(buf));
- + }
- }
- if (buf[0] != '\0' && buf[0] != '.') {
- *hostdom++ = '.';
-