tt: begin to get it building under autotools
authorJon Trulson <jon@radscan.com>
Thu, 24 Oct 2019 04:07:26 +0000 (22:07 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 24 Oct 2019 04:07:26 +0000 (22:07 -0600)
cde/configure.ac
cde/lib/tt/mini_isam/Makefile.am
cde/lib/tt/tooltalk.inc [new file with mode: 0644]

index 0dd10634d08274bac98f13c5a0bd0436f9cd5340..7501470348a04a8c6f612e5f0e1752cb62c33a44 100644 (file)
@@ -185,7 +185,7 @@ dnl headers
 AC_HEADER_STDC
 
 dnl libraries
-AC_CHECK_LIB(tirpc, main, [TIRPCINC=-I/usr/include/tirpc; TIRPCLIB=-ltirpc])
+AC_CHECK_LIB(tirpc, main, [TIRPCINC="-DOPT_TIRPC -I/usr/include/tirpc"; TIRPCLIB=-ltirpc])
 AC_SUBST(TIRPCINC)
 AC_SUBST(TIRPCLIB)
 
index 8d302761dc103c2a29cf5044e460a01dd3e4d280..a8a8901c852e880a17a4adda66155c4b492f7be6 100644 (file)
@@ -1,6 +1,6 @@
 MAINTAINERCLEANFILES = Makefile.in
 
-include ../tooltalk.tmpl
+include ../tooltalk.inc
 
 noinst_LIBRARIES= libisam.a
 
diff --git a/cde/lib/tt/tooltalk.inc b/cde/lib/tt/tooltalk.inc
new file mode 100644 (file)
index 0000000..a27ce50
--- /dev/null
@@ -0,0 +1,13 @@
+# This file is imbedded near the top of  every ToolTalk Imakefile.
+# It contains definitions and redefinitions that are common to all
+# of ToolTalk but which aren't referred to anywhere else in the
+# build. 
+
+# It should match tooltalk.tmpl in terms of definitions...
+
+# TT_VERSION defines the version string which is imbedded in all the 
+# binaries and shipped libraries.
+
+TT_VERSION = "CDE Version 2.3.0a"
+TT_VERSION_DEFINE = -DTT_VERSION_STRING=\"$(TT_VERSION)\"
+