AM_CONDITIONAL([PPC], [test "is_ppc" = yes])
dnl our main libraries
+dnl we use single quotes so that $top_builder is evaluated in the makfiles,
+dnl not here.
AC_SUBST(LIBTT, '$(top_builddir)/lib/tt/lib/libtt.la')
AC_SUBST(LIBXIN, '$(top_builddir)/lib/DtXinerama/libDtXinerama.a')
AC_SUBST(LIBWIDGET, '$(top_builddir)/lib/DtWidget/libDtWidget.la')
AC_SUBST(LIBHELP, '$(top_builddir)/lib/DtHelp/libDtHelp.la')
AC_SUBST(LIBCSA, '$(top_builddir)/lib/csa/libcsa.la')
+dnl set up come convenience replacements for global include dirs
+AC_SUBST(DT_INCDIR, '-I$(top_builddir)/include/Dt')
+AC_SUBST(TT_INCDIR, '-I$(top_builddir)/include/Tt')
+AC_SUBST(XM_INCDIR, '-I$(top_builddir)/include/Xm')
+
dnl JET FIXME/CHECKME
AC_SUBST(XTOOLLIB, "-lICE -lSM -lXt")
AM_YFLAGS = -d
libDtSearch_la_CFLAGS = -DI18N_MSG -DMULTIBYTE -I./raima \
- -I$(top_builddir)/include/Dt
+ @DT_INCDIR@
libDtSearch_la_LIBADD = raima/libraima.la
libraima_la_LIBADD = -lc -lm
libraima_la_CFLAGS = -DCDE_INSTALLATION_TOP=\"${prefix}\" \
- -I$(top_builddir)/include/Dt \
+ @DT_INCDIR@ \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
-DNO_TRANS -DUNIX -D_POSIX_SOURCE -DMULTIBYTE
noinst_LTLIBRARIES = libDtEncap.la
libDtEncap_la_CFLAGS = -DMULTIBYTE -I../include -I../DtUtil2 $(TIRPCINC) \
- -I$(top_builddir)/include/Dt \
+ @DT_INCDIR@ \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
-DCDE_INSTALLATION_TOP=\"${prefix}\" \
-DCDE_LOGFILES_TOP=\"$(CDE_LOGFILES_TOP)/tmp\"
noinst_LTLIBRARIES = libDtUtil1.la
libDtUtil1_la_CFLAGS = -I../include $(TIRPCINC) -DMULTIBYTE \
- -I$(top_builddir)/include/Dt \
+ @DT_INCDIR@ \
-DCDE_INSTALLATION_TOP=\"${prefix}\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
noinst_LTLIBRARIES = libDtUtil2.la
libDtUtil2_la_CFLAGS = -I../include $(TIRPCINC) -DMULTIBYTE \
- -I$(top_builddir)/include/Dt \
+ @DT_INCDIR@ \
-DCDE_INSTALLATION_TOP=\"${prefix}\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
-DMULTIBYTE -DUSE_XINERAMA $(TIRPCINC)