Commit Graph

125 Commits

Author SHA1 Message Date
Jon Trulson
f246e25e55 configure: fix some bsd issues
1. On OpenBSD, and check is made for only bison or byacc.  yacc is
present, but not usable apparently.  So - need to install bison on the
BSD's.

2. the libjpeg.h check fails as it is located in a non-standard
location (/usr/local) on BSD systems.  Just remove the check for now
until we have a better way to check that stuff (like X11 and Xm
headers too).
2020-01-02 19:20:53 -07:00
Jon Trulson
3b1a54ca81 configure: add some more error checking/reporting for required programs
A list of major things like ksh, cpp, etc are saved in a list if they
are not found.  If this list is non-empty when configure is nearly
done, an error message is displayed listing the missing programs.
This is less annoying than stopping after every missing programs.

Also, removed the X11/Xm header checks for now.  Those need to take
into account X_CFLAGS in some way since these files are located in
dirfferent areas on different OS's (obsd puts them in
/usr/X11R6/include for example).
2020-01-02 18:35:36 -07:00
Jon Trulson
f634c682df configure: make sure X_EXTRA_LIBS and X_PRE_LIBS are accounted for 2020-01-02 18:35:36 -07:00
Peter Howkins
8ae6933a15 Add a few configure checks to make sure various programs and headers
needed for build are available.
2020-01-02 23:59:53 +00:00
Jon Trulson
6c0c619df3 configure: set a compiler search option
... and move the PROG_CC and PROG_CXX checks toward the beginning.
Without the move the compiler search arguments are ignored.  We search
for 'cc gcc clang' and 'c++ g++ clang++', in that order for CC and CXX
respectively.

This means there should be no need to override the CC
and CXX variables on the configure command line for BSD systems.

On OpenBSD for example, cc links to clang.  On Linux, cc links to
gcc.  You can still override these if you like with CC=... and
CXX=... on the configure command line.

gmake (MAKE=gmake) still needs to be used on the BSD's though.

With these and previous changes, CDE builds, installs, and runs
correctly on OpenBSD 6.5 now.
2019-12-15 12:47:57 -07:00
Jon Trulson
c0a6f6c6e3 configure: fix another bsd related typo 2019-12-14 19:04:22 -07:00
Jon Trulson
c0da389d46 configure: first stab at a BSD (openbsd 6.5) build 2019-12-14 14:17:07 -07:00
Jon Trulson
25035724af cpp revisited: look for a cpp binary in various locations for use at runtime
Certain programs like dtlogin and tt_type_comp need access to the
system's cpp command to process certain files at runtime.  tradcpp is
not installed on most systems, and is intended for use as a imake-cpp
replacement which is all we are using it for.  We still need an
honest cpp for the CDE components to use.

Now, we look in various places for a 'cpp' command and set CPP_COMMAND
to it's value.  This way tt_type_comp and other CDE programs can do
required processing at runtime.
2019-12-04 14:28:44 -07:00
Jon Trulson
c6b31ebd5f Get the palettes installed properly on make install 2019-12-02 19:20:36 -07:00
Jon Trulson
d8e218c865 localization: finish up with getting message catalogs building
There are still some issues here - specifically with the C
dtbuilder/dtcodegen catalogs.  They may be broken due to dtbuilder not
being built yet.

Also, once dtinfo can be built, the msgs and app-defaults for it
should be re-enabled.

I also see gencat coredumping in localization/ while doing a multicore
(-jX) make.  Regular single core builds seem to work fine.
2019-11-30 20:26:59 -07:00
Jon Trulson
805d22c5a8 localized: make palettes build 2019-11-30 17:12:15 -07:00
Jon Trulson
bfc5b2eef1 localized: make types build 2019-11-30 17:00:34 -07:00
Jon Trulson
376f1e15ee localized: make configs build 2019-11-30 16:59:14 -07:00
Jon Trulson
e42c0cc1be localization: make FR, DE, IT, and ES app-defaults/ build 2019-11-24 18:55:11 -07:00
Jon Trulson
3ee747ac6b localized/C/app-defaults: make it build 2019-11-24 17:54:52 -07:00
Jon Trulson
56fb574793 dtopen: make it build
Also, move localized subdir to last in current list of programs/ SUBDIRS
2019-11-22 17:18:51 -07:00
Jon Trulson
aa0bfe0471 dttypes: make it build 2019-11-22 17:07:34 -07:00
Jon Trulson
ad2ad2b66b tttypes: make it build 2019-11-22 16:58:58 -07:00
Jon Trulson
c8c1f986f8 types: make it build 2019-11-22 16:57:47 -07:00
Jon Trulson
89f91f0091 dtpdmd: make it build 2019-11-22 13:13:41 -07:00
Jon Trulson
a63016758e dtsr: make it build; configure: fix cpu detection 2019-11-22 13:01:36 -07:00
Jon Trulson
53d3304ebe dtpdm: make it build 2019-11-22 12:12:23 -07:00
Jon Trulson
bcc1ca537e dtimsstart: make it build 2019-11-21 20:06:29 -07:00
Jon Trulson
2832a1eb6d dtdspmsg: make it build 2019-11-21 19:53:30 -07:00
Jon Trulson
70c07a7b68 fontaliases: make it build, and rework somewhat 2019-11-21 19:47:38 -07:00
Jon Trulson
5bb7b74efd dtprintinfo: make it build
Also, it was easier just to use a single Makefile.am rather than one for
every subdir, so thats what we did here.
2019-11-21 17:51:35 -07:00
Jon Trulson
afabfd8bd7 configure: rework libXinerama detection a bit, remove hardcoded -lXinerama's
Make -lXinerama a dep on libDtXinerama so it doen't need to be
specified in Makefile.am files or in LIBS as it was being done
previously.

This still needs a little work, ideally Xinerama should be completely
optional and only enabled if present.  But we can save that for
later.
2019-11-21 14:14:59 -07:00
Jon Trulson
0f1223a07e configure: rework the way TIRPC is detected and handled
Previously we would detect whether TIRPC is installed or not, and set
TIRPCINC to the include directory with the -DOPT_TIRPC macro defined.
Then, pretty much every Makefile.am needs to be sure that $(TIRPCINC) is
specified in the cpp/c/cxx flags.

Since we can never be sure that an RPC header file might be indirectly
included, a better approach is to simply add TIRPCINC to the global
list of CXXFLAGS and CFLAGS in configure.ac for everybody.  This way,
it is always specified properly on tirpc systems, and we don't need to
always add it to every individual Makefile.am since everyone will get
it by default.

TIRPCLIB is still marked as a dep in libtt, so as long as libtt is
linked, you should automatically get the tirpc library too.  This is
still unchanged.
2019-11-20 18:26:59 -07:00
Jon Trulson
10eb9a6975 dtcreate: make it build 2019-11-20 17:54:12 -07:00
Jon Trulson
58505b904d dtconfig: make it build 2019-11-20 17:46:20 -07:00
Jon Trulson
9c70437ee7 dtprintegrate: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson
a2c18db66b dtappintegrate: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson
e831b06896 dtsearchpath: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson
444aa700c0 dtcm: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson
427a0611cd dtscreen: make it build 2019-11-19 19:59:20 -07:00
Jon Trulson
e675e06dd1 dtspcd: make it build 2019-11-19 19:43:34 -07:00
Jon Trulson
a8085dca9b dtaction: make it build 2019-11-19 19:30:20 -07:00
Jon Trulson
61506685a4 dtcalc: make it build 2019-11-19 19:27:47 -07:00
Jon Trulson
c8329a4ead dtterm: make it build 2019-11-19 19:14:38 -07:00
Jon Trulson
427e455321 dticon: make it build 2019-11-19 18:38:51 -07:00
Jon Trulson
a36ab9e796 dtdbcache: make it build 2019-11-19 18:31:36 -07:00
Jon Trulson
8684607c8c dtexec: make it build 2019-11-19 18:26:55 -07:00
Jon Trulson
1b8ef6a6c1 dtstyle: make it build 2019-11-19 18:17:34 -07:00
Jon Trulson
a77d9259f9 dthello: make it build 2019-11-19 17:30:27 -07:00
Jon Trulson
11eafe767b dtsession: make it build, add check for the full path to xrdb 2019-11-19 17:19:14 -07:00
Jon Trulson
67ee2216f5 configure: use tradcpp as GENCPP 2019-10-30 19:19:49 -06:00
Jon Trulson
8b065d9110 configure: use AC_PATH_PROG to find ksh 2019-10-30 18:53:16 -06:00
Jon Trulson
2b8803a8fb configure: Several changes related to locating cpp and ksh
For ksh, we need a full pathname.  AC_CHECK_PROGS only sets the name,
so we can't use that (think of a "#!" in a shell script.

We use some shell scripting to locate the ksh pathname.

While on that subject, the current use of CPP (gcc -E) as a general
preprocessor does not work very well.  I messes up whitespace,
adds/translates random whitespace, and complains bitterly about single
quotes (') in various places like comments.  It's not usable for what
CDE needs.

So, now we use GENCPP.  Using shell scripting like that used for ksh,
we locate the cpp program, and set GENCPP to "/full/path/to/cpp
-traditional -nostdinc".  This is what Linux uses now in an Imake
build, and it works fine.  We'll have to see what the BSD/Solari do.

We might need to just include BSD's "tradcpp" into the build and use
that.  It too works well in limited testing, but eats blank lines.  We
can live with that if we have to.
2019-10-30 17:42:31 -06:00
Jon Trulson
47d691e8ca configure: check for -lcrypt, add dtlogin/Makefile.am 2019-10-30 13:28:14 -06:00
Jon Trulson
9bc595a0a6 configure: Add -lm and vfork checks. Add dtwm to AC_OUTPUT. 2019-10-30 12:10:30 -06:00