configure: add programs/ dthelp, dsdm, dtmail, dtpad, and dtfile

At this stage, these certainly won't actually build yet.

Just fix up the relevent Makefile.am files so that autogen does not
emit errors and warnings for them.

Removed AIX/HPUX support in Makefile.am files.  No point in
propogating that stuff when we've already removed much of that
unmaintained code from the codebase.

Commented out all of the Sun Pro stuff.  Someone whos using that will
need to go through and fix it.  This is mostly in dtmail and dthelp.

In fact, someone who does Solaris in general will need to go through
this stuff.

Next up, we'll replace any remaining 'if SUN' conditionals with 'if
SOLARIS' which is a more appropriate name and was already defined in
configure.ac.

Then we'll see about getting these new directories building.
This commit is contained in:
Jon Trulson
2019-10-28 18:39:21 -06:00
parent 4b8a65e884
commit 24171c3194
15 changed files with 130 additions and 163 deletions

View File

@@ -6,46 +6,34 @@ dtmailpr_CXXFLAGS = -I../include -I../../dtcompat -I../../../. \
-I$(srcdir)/lib $(TIRPCINC)
dtmailpr_LDADD = ../libDtMail/libDtMail.a $(LIBPRINT) $(LIBHELP) $(LIBWIDGET) \
$(LIBSVC) $(LIBTT) -lXm $(XTOOLLIB) ${X_LIBS} -lm
$(LIBSVC) $(LIBTT) -lXm $(XTOOLLIB) ${X_LIBS}
if FREEBSD
dtmailpr_LDADD += -liconv
endif
if AIX
dtmailpr_CXXFLAGS += -DI_HAVE_NO_BOOL -DI_HAVE_SELECT_H \
-DBIG_ENDIAN -DSTRCASECMP_NOT_DEFINED -DDO_ANONYMOUS_MAP \
-DSENDMAIL_LOCKS -DMAILGROUP_REQUIRED \
-DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\"
dtmailpr_LDADD += -ldl -liconv -lgen
endif
if HPUX
dtmailpr_CXXFLAGS += -DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER \
-DSENDMAIL_LOCKS -DMAILGROUP_REQUIRED \
-DMAIL_SPOOL_PATH=\"/var/mail/%s\"
endif
if SUN
if SUNPRODIR
SUNPRO_DIR = /opt/SUNWspro
else
SUNPRO_DIR = SUNPRODIR
endif
if I386
dtmailpr_CXXFLAGS += -DBIG_ENDIAN
endif
if USE_SPRO_V3
dtmailpr_CXXFLAGS += -noex -USPRO_V2
if DEBUGTREE
dtmailpr_CXXFLAGS += -xsb
endif
endif
dtmailpr_CXXFLAGS += -L$(SUNPRO_DIR)/lib -xstrconst -Xc -v -DMMAP_NORESERVE \
-DSPRO_V2 +p +w
dtmailpr_LDADD += -Bstatic -lC -Bdynamic -lc -Bstatic -ldl -lgen -lm -lw \
-lintl -lnsl
endif
# FIXME - solaris
#if SOLARIS
# if SUNPRODIR
# SUNPRO_DIR = /opt/SUNWspro
# else
# SUNPRO_DIR = SUNPRODIR
#endif
#if I386
# JET -- i386 is NOT big endian...
#dtmailpr_CXXFLAGS += -DBIG_ENDIAN
#endif
#if USE_SPRO_V3
#dtmailpr_CXXFLAGS += -noex -USPRO_V2
#if DEBUGTREE
#dtmailpr_CXXFLAGS += -xsb
#endif
#endif
#
#dtmailpr_CXXFLAGS += -L$(SUNPRO_DIR)/lib -xstrconst -Xc -v -DMMAP_NORESERVE \
# -DSPRO_V2 +p +w
#dtmailpr_LDADD += -Bstatic -lC -Bdynamic -lc -Bstatic -ldl -lgen -lm -lw \
# -lintl -lnsl
#endif
dtmailpr_SOURCES = main.C message.C mailbox.C utils.C