Commit Graph

473 Commits

Author SHA1 Message Date
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
Jose Rubio 0086a7067e Fix to compile warnings.
* discarded-qualifiers warnings.
* Function definitions, the .h doesn't match the .c.
* Added some include to ensure the .c has function definition.
2019-10-11 10:49:48 +02:00
Jose Rubio f9790767f3 Fix to different compile warnings.
Fix to multiple int-conversion
Removal of duplicated function definition in dtudcfonted/util.h
Added XtEventHandler prototypes to mtfgui
2019-10-10 19:59:40 +02:00
Jon Trulson 6e23c81914 Merge /u/jrubio/cdesktopenv/ branch pointer-compare into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/8/
2019-09-12 22:11:52 +00:00
Jon Trulson 426a18d9ef isfname.c: remove register keyword 2019-09-11 17:48:06 -06:00
Jose Rubio db7370b62b Cleanup of -Wpointer-compare warnings. 2019-08-19 18:02:25 +02:00
Peter Howkins cb4075e855 libDtHelp: Fix another regression caused by Coverity fix, clicking 'Help Manager' works again. 2018-11-07 17:04:59 +00:00
Peter Howkins fff0c54538 libDtHelp: Fix a regression with the Help Index pages caused by an overzealous Coverity fix 2018-11-07 01:05:56 +00:00
Jon Trulson 59dc231872 linux: DtHelp/StringFuncs, enable real iconv() support
For some reason, the #include of iconv.h was removed, and dummy stubs
were put in place on linux systems (only).  This caused iconv() calls
to be completely ignored.

Now we use iconv() just like very other OS we support.
2018-11-05 15:33:16 -07:00
Jon Trulson 2c1f56d37c Merge branch 'master' into cde-next 2018-11-04 10:56:04 -07:00
chase dd68514e4f Remove hpversion.h from repository
This patch removes hpversion.h from the repository, this also untangles a
lot of ifdef mess. This closes bug CDExc19524.
2018-10-06 17:00:38 -06:00
chase 90a2b2848a remove ultrix support 2018-09-30 17:27:04 -06:00
Jon Trulson 2dadc23e0e Merge branch 'master' into cde-next 2018-09-22 15:50:13 -06:00
Jon Trulson 6a72e2cea8 Change version to 2.3.0a (devel) 2018-09-20 16:49:01 -06:00
chase bf0b602b9a il: Remove deprecated files 2018-08-26 16:58:38 -06:00
chase 5e96644596 DtsMM.c: Remove null in string 2018-08-26 15:44:47 -06:00
chase d12ad886c1 Remove old windows support 2018-08-25 15:47:54 -06:00
Peter Howkins ddaa606d36 libDtHelp: Cov 88381 2018-08-11 01:28:57 +01:00
Peter Howkins 6a15c3deaa libDtHelp: Cov 88365 2018-08-11 01:26:59 +01:00
Peter Howkins f14e247a41 libDtHelp: Cov 89129 and 88355 2018-08-11 01:18:45 +01:00
Peter Howkins c9f5a14778 libDtHelp: Cov 88302 2018-08-11 01:14:03 +01:00
Peter Howkins 027bc031fd libDtHelp: Cov 88890 and 88294 2018-08-11 01:11:04 +01:00
Peter Howkins b4c10b4d63 libDtHelp: Cov 88275 2018-08-11 01:08:17 +01:00
Peter Howkins 5571bbceae libDtHelp: Cov 88262 and 88459 2018-08-11 01:05:01 +01:00
Peter Howkins f74bf1a29f libDtHelp: Cov 88240 2018-08-11 01:03:23 +01:00
Peter Howkins a97c7370a5 libDtHelp: Cov 88209 2018-08-11 01:01:13 +01:00
Peter Howkins 1c0312de48 libDtHelp: Cov 88162 2018-08-11 00:58:46 +01:00
Peter Howkins 2b2a1225da libDtHelp: Cov 88119 2018-08-11 00:57:11 +01:00
Peter Howkins 30809197c7 libDtHelp: Cov 88109 2018-08-11 00:55:03 +01:00
Peter Howkins 258a7e3803 libDtHelp: Cov 174697 2018-08-11 00:53:10 +01:00
Peter Howkins a895cc3e9c libDtHelp: Cov 89532 2018-08-11 00:51:59 +01:00
Peter Howkins ef54b70ac1 libDtHelp: Cov 89524 2018-08-11 00:50:33 +01:00
Peter Howkins 0be3e91f4d libDtHelp: Cov 89401 2018-08-11 00:47:42 +01:00
Peter Howkins 6441ea4bf4 libDtHelp: Cov 89084 2018-08-11 00:46:06 +01:00
Peter Howkins 7c7e25683b libDtHelp: Cov 89012 2018-08-11 00:44:52 +01:00
Peter Howkins 1ab2d10f01 libDtHelp: Cov 88952 2018-08-11 00:43:46 +01:00
Peter Howkins f896256ec9 libDtHelp: Cov 88724 2018-08-11 00:40:36 +01:00
Peter Howkins d476596c82 libDtHelp: Cov 88526 2018-08-11 00:39:05 +01:00
Peter Howkins e45be6a434 libDtHelp: Cov 88465 2018-08-11 00:37:42 +01:00
Peter Howkins cd09a20dfc libDtHelp: Cov 88221 2018-08-11 00:36:29 +01:00
Peter Howkins a69ed1cf9b libDtHelp: Cov 89366 2018-08-11 00:34:40 +01:00
Peter Howkins e85dfc66be libDtHelp: Cov 89172 2018-08-11 00:32:39 +01:00
Peter Howkins e620df0d0d libDtUtil: Cov 88127 2018-08-11 00:31:12 +01:00
Peter Howkins 8982069031 libDtUtil: Cov 88123 2018-08-11 00:30:24 +01:00
Peter Howkins cb363a5965 libDtHelp: Cov 88084 2018-08-11 00:27:52 +01:00
Peter Howkins 9c2c796d1b libDtHelp: Cov 88527 2018-08-11 00:26:42 +01:00
Peter Howkins b69319e43c libDtHelp: Cov 88839 2018-08-11 00:25:20 +01:00
Peter Howkins 0e66cfee7f libDtHelp: Cov 89582 2018-08-11 00:24:04 +01:00
Peter Howkins db779f870e libDtHelp: Cov 87607 2018-08-11 00:21:18 +01:00
Jon Trulson 050fd75e80 lib/DtSearch/raima/proto.h: fix OBSD build - don't redef system functions
Remove redeclaration of system functions (strlen, free, open, etc).
Use the system header files.  That's what they are for.
2018-07-09 13:11:33 -06:00
Jon Trulson 3d8e76a69f Merge branch 'master' into cde-next
Need to resync before folding current cde-next into master.
2018-07-06 13:19:33 -06:00
Jon Trulson cf86199b19 Stable release: 2.3.0 2018-07-06 12:05:20 -06:00
Jon Trulson 87ad4219da Merge branch 'master' into update-with-master
Resync one last time with master for 2.3 release tomorrow.
2018-07-05 14:18:07 -06:00
Peter Howkins adb9a3d8cd libDtHelp: Coverity 88440 2018-07-04 01:40:12 +01:00
Peter Howkins 1fb5110337 libDtHelp: 88550 2018-07-04 01:38:14 +01:00
Peter Howkins a7e09ae1c3 libDtHelp: Coverity 88665 2018-07-04 01:36:03 +01:00
Peter Howkins 9383267ded libDtHelp: Coverity 88906 2018-07-04 01:34:02 +01:00
Peter Howkins 25c12cad4a libDtHelp: Coverity 88813 2018-07-04 01:32:53 +01:00
Peter Howkins 49b69c257a libDtHelp: Coverity 89548 2018-07-04 01:31:19 +01:00
Peter Howkins 045643d4db libDtHelp: Coverity 88776 2018-07-04 01:29:49 +01:00
Peter Howkins 2a988f5ad3 libDtSearch: Coverity 86459 2018-07-02 23:28:31 +01:00