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.
This commit is contained in:
Jon Trulson
2019-10-26 14:13:19 -06:00
parent a048cea50f
commit 056144488a
4 changed files with 243 additions and 455 deletions

View File

@@ -5,15 +5,16 @@ noinst_LTLIBRARIES = libraima.la
libraima_la_LIBADD = -lc -lm
libraima_la_CFLAGS = -DCDE_INSTALLATION_TOP=\"${prefix}\" \
-I$(top_builddir)/include/Dt \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
-DNO_TRANS -DUNIX -D_POSIX_SOURCE -DMULTIBYTE
if LINUX
libraima_la_CFLAGS += DBYTE_SWAP -D_XOPEN_SOURCE=700
libraima_la_CFLAGS += -DBYTE_SWAP -D_XOPEN_SOURCE=700
endif
if BSD
libraima_la_CFLAGS += DBYTE_SWAP -D_XOPEN_SOURCE=700
libraima_la_CFLAGS += -DBYTE_SWAP -D_XOPEN_SOURCE=700
endif
if SOLARIS