Commit Graph

433 Commits

Author SHA1 Message Date
Jon Trulson d183ade8b3 DtSvc: we can't use archive .a libs in building libDtSvc.so
We were building subsets of this library as archive.a objects, then
trying to combine them into a shared object.  This warnings, and link
failures due to the lack of 0fPIC when building the archive libraries.

Now, we do not buld archive libraries, and the main libDtSvc.so
library is build by adding all of the .lo file in the component
subdirectories.

In a future commit, we could just remove the SUBDIR builds (DtUtil1,
etc) and build the sub objects directly.
2019-10-29 18:11:42 -06:00
Jon Trulson d99b3eb895 DtXinerama: build as shared lib, all dep on libXinerama 2019-10-29 18:07:58 -06:00
Jon Trulson 86bae29d78 Protect inclusions of autotools_config.h with HAVE_CONFIG_H 2019-10-28 15:01:02 -06:00
Jon Trulson c0e3f08c9f DtSvc/DtUtil2: fix implicit function declarations 2019-10-28 13:27:47 -06:00
Jon Trulson 951ae0d327 DtSvc/DtUtil1: fix implicit function declarations 2019-10-28 13:22:09 -06:00
Jon Trulson 7bd6429b8a csa: add dep for reparser.h to fix multicore build
Also rework a bit to make sure reparser.o is actually linked into the
lib.  Ahem.
2019-10-26 17:31:59 -06:00
Jon Trulson c15237ddac csa: make it build 2019-10-26 17:08:41 -06:00
Jon Trulson 6186a4c631 DtMrm: make it build 2019-10-26 16:36:37 -06:00
Jon Trulson c3d7858424 DtTerm: make it build 2019-10-26 16:34:29 -06:00
Jon Trulson 7ff1995da0 DtPrint: make it build 2019-10-26 16:09:18 -06:00
Jon Trulson b0cc0c8747 DtHelp: make it build
Use configure's endian checks to determine whether to set LSB in il/.

Add locale.h check, include to Helpos.c

Both via including autotools_config.h.
2019-10-26 16:05:48 -06:00
Jon Trulson 61ab4a5b95 DtWidget: make it build, change include/cppfile.inc a bit
cppfile.inc - don't set BUIT_SOURCES or CLEANFILES here as they
overwrite (or in case of the CLEANFILES +=...) ignore the settings.
Do those in the Makefile.am always.

We still need a better way to preprocess generic files.  cppfile.inc
will only work for one file per Makefile...
2019-10-26 15:05:52 -06:00
Jon Trulson 1079ffa240 configure: create some convenience AC_SUBST's for the global includes
Modify the various makefiles that were doing $(top_builddir)/include/Dt
to use them like @DT_INCDIR@, @TT_INCDIR@, etc...
2019-10-26 14:30:36 -06:00
Jon Trulson 056144488a DtSearch: get it to build, fix up some confusion
There are/were two dproto.h files, one in DtSearch, one in raima.  The
one in raima is the one we want, so replace the global Dt/dproto.h
with it.  Also correct a prototype declaration error in that file.

Delete the dproto.h file in DtSearch, it's garbage and unused.

Next, redo the way yacc is used.  Autotools does "the right thing" by
simply including the .y file in *_SOURCES and using
BUILT_SOURCES/CLEANFILES to manage it.  No need for special rules to
handle yacc and lex.
2019-10-26 14:13:19 -06:00
Jon Trulson 43387e7368 libDtSvc: get it to build 2019-10-25 18:33:06 -06:00
Jon Trulson 0d78e17036 DtSvc,DtXinerama: More include fixes to deal with new order. 2019-10-25 18:06:54 -06:00
Jon Trulson 647d0ae96a DtXinerama.h header file - moved to main include/ dir 2019-10-25 17:52:20 -06:00
Jon Trulson 31fec7edb5 tt: Fixup tt build for new includes locations
Some files were trying to access the global includes directy in the
build area with things like #include <api/c/tt_c.h>, which is now
wrong.  Se we fix all of those up.  tt_c.h and tttk.h are now global,
so we no longer need to root around various build dirs to find them.

TT builds again.
2019-10-25 17:37:58 -06:00
Jon Trulson 369308b737 The great includes migration of 2019 (autotools)
Ok - so one of the steps in building CDE is an early phase called the
includes phase (make includes).  At this point, all of the public
header files are exported to exports/include/Dt, DtI, ...

Then, the software is built using that include dir.

This of course does not work in autotools.  Much of the software does
things like #include <Dt/something.h>, so in order for the build to
succeed, this behavior must be represented/replicated in some way.

It seems the usual way of dealing with this is to place all public
headers (and in some projects, ALL headers) into a toplevel include
directory.

We now do this for all public headers - they have been moved from
wherever they were and placed in the appropriate spot in includes/

This will break the Imake 'make includes' phase unless the Imakefiles
are fixed (remove the HEADERS = stuff, and the incdir defines).  This
has not been done at this point since in reality, once autotools works
properly, there will be no need for the Imake stuff anymore, and I
intend to get rid of it.

This is just a warning for now - Imake builds in this tree will now
fail at the 'includes' stage.

This commit is only the migration.  In upcoming commits, libtt will be
fixed so that the hack being used before to get around this problem is
removed as there will no longer be any need.

And then the autotools work continues...
2019-10-25 17:01:34 -06:00
Jon Trulson 7c2983185d Re-fix tt_type_comp -- it doesn't actually need yacc/lex 2019-10-25 10:43:05 -06:00
Jon Trulson 9182ddfcc3 tt: fixup remaining build issues 2019-10-24 21:29:03 -06:00
Jon Trulson e8f3c6eee2 tt: get tt_type_comp to build 2019-10-24 20:55:04 -06:00
Jon Trulson bb4a2c7694 configure/Makefiles for TT: many fixups
Redo the way the main CDE libs are specified in configure.ac... The
current way could not work due to evaluation issues, and the fact that
variables like $srcdir and the like are only valid in Makefiles, not
configure.

Use @LIBNAME@ rather then $(LIBNAME) in Makefile.am files - this way
the location is always evaluated when it's run, not in configure -
which can't work for a variety of reasons.

Got some of the TT binaries to build.

Made a new include/cppfile.inc file that can be used to pre-process
files.  The downside is that currently you can only pre-process one
file at a time per Makefile.  Something more robust is needed, but at
least tt/bin/shell now builds.  Will need to come up with a better way.
2019-10-24 20:06:39 -06:00
Jon Trulson f55e448fc7 tt/slib: include hack 2019-10-24 17:50:02 -06:00
Jon Trulson b4295847c6 tt/tttk: play symlink games so tttk can build
With this, we can now build the tooltalk library successfully.
2019-10-24 14:29:29 -06:00
Jon Trulson ff2e991ce8 tt: create Makefile.am for tt/util 2019-10-24 14:05:03 -06:00
Jon Trulson e3028d4eff lib/tt: replace tooltalk.tmpl with tooltalk.inc in all Makefile.am files
This fixes the remaining warnings from autogen in lib/
2019-10-24 12:43:02 -06:00
Jon Trulson 4186507c72 tt shell: fix up build - use LDADD rather than AM_LDADD 2019-10-24 12:40:57 -06:00
Jon Trulson 6996d53f91 tooltalk.tmpl: restore to previous version for use with Imake
For autotools we will include lib/tt/tooltalk.inc instead.
2019-10-24 11:27:39 -06:00
Jon Trulson 03544e68ad tt: begin to get it building under autotools 2019-10-23 22:07:26 -06:00
Jon Trulson db16ffd968 Fixup some more autogen wanrings. Only lib/tt/bin/shell remaining 2019-10-23 21:49:34 -06:00
Jon Trulson 1d7ed3a17e autotools: many fixups, SUN->SOLARIS, typos, etc
This should allow an autoregen and ./confiure to work.  We only
generate Makefiles for lib/* and ./Makefile for now.  We'll ad more as
we go along.

Make still fails as we need to figure out TT - tirpc lib, rpcgen,
etc.  But it's a start!
2019-10-23 17:34:55 -06:00
Chase 500b30b2b3 lib/tt: add automake files 2019-10-23 15:34:20 -06:00
Chase 63956c4f61 lib/pam: add automake files: 2019-10-23 15:34:20 -06:00
Chase 6ec8c9e89c lib/csa: add automake file 2019-10-23 15:34:20 -06:00
Chase e4f4a4cfb5 lib: add automake file 2019-10-23 15:34:20 -06:00
Chase 97f55834e7 lib/DtXinerama: add automake file 2019-10-23 15:34:20 -06:00
Chase 91b0497ba0 lib/DtWidget: add automake file 2019-10-23 15:34:20 -06:00
Chase eb907bd68c lib/DtTerm: add automake files 2019-10-23 15:34:20 -06:00
Chase b587eb7bf3 lib/DtSvc: add automake files 2019-10-23 15:34:19 -06:00
Chase 8dfc0f62eb lib/DtSearch: add automake files 2019-10-23 15:34:19 -06:00
Chase 2deca46f0b lib/DtPrint: add automake file 2019-10-23 15:34:19 -06:00
Chase f1ed9a9919 lib/DtMrm: add automake file 2019-10-23 15:34:19 -06:00
Chase f6820cc8fd lib/DtHelp: add automakefiles 2019-10-23 15:34:19 -06:00
Jon Trulson 5e05b59025 ttserver: fixup forward (vexing) fucntion decl's in main, get rid of **environ 2019-10-19 18:36:54 -06:00
wmoxam ab741a1241 'notdef' means it's not used, so we remove it 2019-10-15 20:32:13 -06:00
wmoxam de81a5b518 Remove ancient HP VUE compatibility support 2019-10-15 20:32:05 -06:00
Chase 4107a1b6be Remove old jpeg files 2019-10-14 19:18:40 -06:00
Jon Trulson ad94f2089d dtterm: add scroll wheel support
This patch was manually added via a diff supplied from a user on the
CDE mailing list: Michele Ghisolfo <ghisolfo.m@gmail.com>
2019-10-14 14:08:43 -06:00
wmoxam 923951b414 Remove NOTDONE code 2019-10-14 11:57:41 -06:00