-I$(top_srcdir)/lib/topfish \
-I$(top_srcdir)/lib/common \
-I$(top_srcdir)/cmd/smyrna/gui \
- $(GTK_CFLAGS) $(GTKGLEXT_CFLAGS) $(GLADE_CFLAGS) $(FREETYPE2_CFLAGS) $(FONTCONFIG_CFLAGS)
+ $(GTK_CFLAGS) $(GTKGLEXT_CFLAGS) $(GLADE_CFLAGS) $(FREETYPE2_CFLAGS) $(FONTCONFIG_CFLAGS) $(GTS_CFLAGS)
if WITH_SMYRNA
noinst_HEADERS = btree.h draw.h filter.h glexpose.h glmotion.h gltemplate.h \
$(top_builddir)/lib/glcomp/libglcomp_C.la \
$(top_builddir)/lib/topfish/libtopfish_C.la \
$(top_builddir)/lib/common/libcommon_C.la \
- $(GTK_LIBS) $(GTKGLEXT_LIBS) $(GLADE_LIBS) $(EXPAT_LIBS)
+ $(GTK_LIBS) $(GTKGLEXT_LIBS) $(GLADE_LIBS) $(EXPAT_LIBS) $(GTS_LIBS)
[HAVE_GTK=1
AC_DEFINE_UNQUOTED(HAVE_GTK,1,
[Define if you have the gtk+ library])],
- [AC_MSG_WARN(gtk+ library not available. desktop features will not be built)])
+ [AC_MSG_WARN(gtk+ library not available.)])
fi
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
[HAVE_GTKGL=1
AC_DEFINE_UNQUOTED(HAVE_GTKGL,1,
[Define if you have the gtkgl library])],
- [AC_MSG_WARN(gtkgl library not available. desktop features will not be built)])
+ [AC_MSG_WARN(gtkgl library not available.)])
fi
AC_SUBST(GTKGL_CFLAGS)
AC_SUBST(GTKGL_LIBS)
[HAVE_GTKGLEXT=1
AC_DEFINE_UNQUOTED(HAVE_GTKGLEXT,1,
[Define if you have the gtkglext library])],
- [AC_MSG_WARN(gtkglext library not available. desktop features will not be built)])
+ [AC_MSG_WARN(gtkglext library not available.)])
fi
AC_SUBST(GTKGLEXT_CFLAGS)
AC_SUBST(GTKGLEXT_LIBS)
AM_CONDITIONAL(WITH_GTKGLEXT, [test "x$HAVE_GTKGLEXT" != "x"])
+dnl -----------------------------------
+dnl INCLUDES and LIBS for GTS.
+
+AC_ARG_WITH(gts,
+ [AC_HELP_STRING([--with-gts=yes], [gts library])],
+ [], [with_gts=yes])
+
+if test "x$with_gts" = "xyes"; then
+PKG_CHECK_MODULES(GTS, [gts],
+ [HAVE_GTS=1
+ AC_DEFINE_UNQUOTED(HAVE_GTS,1,
+ [Define if you have the gts library])],
+ [AC_MSG_WARN(gts library not available.)])
+fi
+AC_SUBST(GTS_CFLAGS)
+AC_SUBST(GTS_LIBS)
+AM_CONDITIONAL(WITH_GTS, [test "x$HAVE_GTS" != "x"])
+
dnl -----------------------------------
dnl INCLUDES and LIBS for GLADE.
with_smyrna=no
AC_MSG_WARN(SMYRNA requires GTK)
fi
-#if test "x$HAVE_GTKGL" != "x1"; then
-# with_smyrna=no
-# AC_MSG_WARN(SMYRNA requires GTKGL on Linux, but not on Mac)
-#fi
if test "x$HAVE_GTKGLEXT" != "x1"; then
with_smyrna=no
AC_MSG_WARN(SMYRNA requires GTKGLEXT)
with_smyrna=no
AC_MSG_WARN(SMYRNA requires GLADE)
fi
+if test "x$HAVE_GTS" != "x1"; then
+ with_smyrna=no
+ AC_MSG_WARN(SMYRNA requires GTS)
+fi
if test "x$with_smyrna" = "xyes"; then
AC_DEFINE_UNQUOTED(SMYRNA,1,[Define if you want SMYRNA])
# packaging is ok, but code is not ready for distribution
#
# <percent>define SMYRNA 1
-# BuildRequires: gtkglarea2-devel gtkglext-devel glade3-libgladeui-devel
+# BuildRequires: gtkglarea2-devel gtkglext-devel glade3-libgladeui-devel gts-devel
# <percent>define GLITZ 1
# BuildRequires: glitz-devel
%endif
%define R_LANG 1
BuildRequires: R-devel swig >= 1.3.33
%define SMYRNA 1
-BuildRequires: gtkglarea2-devel gtkglext-devel glade3-libgladeui-devel
+BuildRequires: gtkglarea2-devel gtkglext-devel glade3-libgladeui-devel gts-devel
# <percent>define GLITZ 1
# BuildRequires: glitz-devel
%endif