]> git.lyx.org Git - lyx.git/blobdiff - configure.ac
Fix InsetInclude properly. Data is now stored in an InsetCommandParams
[lyx.git] / configure.ac
index 04385e51b5a81b525657cad0d73c1b5626face69..b4fefe0a7c6f0fd8f8c4e893c64bce140c17e173 100644 (file)
@@ -66,8 +66,6 @@ dnl we do not need that currently (and probably all our supported
 dnl compiler allow that)
 dnl LYX_CXX_PARTIAL
 LYX_CXX_EXPLICIT
-LYX_CXX_STL_STRING
-LYX_CXX_GOOD_STD_STRING
 LYX_CXX_CHEADERS
 LYX_CXX_GLOBAL_CSTD
 LYX_STD_COUNT
@@ -76,6 +74,19 @@ dnl LYX_CXX_RTTI
 AC_CHECK_HEADERS(ostream istream sstream locale limits ios)
 LYX_CXX_STL_MODERN_STREAMS
 
+###
+AC_ARG_WITH(included-string,
+    AC_HELP_STRING([--with-included-string],[use std::string through namespace lyx]),
+       [lyx_cv_with_included_string=$withval
+       AC_MSG_RESULT([$with_included_string])],
+       [AC_CACHE_CHECK([],lyx_cv_with_included_string,[lyx_cv_with_included_string=no])])
+if test x$lyx_cv_with_included_string = xyes ; then
+    AC_DEFINE(USE_INCLUDED_STRING, 1,
+       [Define to use std::string through namespace lyx.])
+    lyx_flags="$lyx_flags included-string"
+fi
+
+
 ### and now some special lyx flags.
 AC_ARG_ENABLE(assertions,
   AC_HELP_STRING([--enable-assertions],[add runtime sanity checks in the program]),,
@@ -188,6 +199,19 @@ for frontend in $FRONTENDS ; do
   dnl     FRONTEND_INCLUDES="${GNOME_FRONTEND_CFLAGS}"
   dnl     FRONTEND_LIBS="@XPM_LIB@ @XFORMS_LIB@ ${GNOME_FRONTEND_LIBS}"
   dnl  ;;
+    gtk)
+         XFORMS_DO_IT_ALL
+         PKG_CHECK_MODULES(GTK_FRONTEND, gtkmm-2.0 libglademm-2.0)
+         FRONTENDS_PROGS="$FRONTENDS_PROGS lyx-gtk\$(EXEEXT)"
+         FRONTENDS_SUBDIRS="$FRONTENDS_SUBDIRS xforms gtk"
+         RPM_FRONTEND="gtk"
+         RPM_FRONTEND_DEPS='gtkmm >= 2.2.0'
+         GTKMM_VERSION=`pkg-config --modversion gtkmm-2.0`
+         LIBGLADEMM_VERSION=`pkg-config --modversion libglademm-2.0`
+         FRONTEND_INFO="    libgtkmm version:             ${GTKMM_VERSION}\n\
+    libglademm version:           ${LIBGLADEMM_VERSION}\n"
+         ;;
+
     qt)
          QT_DO_IT_ALL
          FRONTENDS_PROGS="$FRONTENDS_PROGS lyx-qt\$(EXEEXT)"
@@ -358,6 +382,12 @@ int mkstemp(char*);
 #define USE_BOOST_FORMAT 0
 #endif
 
+#if defined(ENABLE_ASSERTIONS)
+#define BOOST_ENABLE_ASSERT_HANDLER 1
+#else
+#define BOOST_DISABLE_ASSERTS 1
+#endif
+
 #define BOOST_DISABLE_THREADS 1
 #define BOOST_NO_WREGEX 1
 #define BOOST_NO_WSTRING 1
@@ -395,6 +425,8 @@ AC_CONFIG_FILES([Makefile \
        src/frontends/xforms/lyx_forms.h-tmp:src/frontends/xforms/lyx_forms.h.in \
        src/frontends/xforms/lyx_xpm.h-tmp:src/frontends/xforms/lyx_xpm.h.in \
        src/frontends/xforms/forms/Makefile \
+       src/frontends/gtk/Makefile \
+       src/frontends/gtk/glade/Makefile \
        src/frontends/qt2/Makefile \
        src/frontends/qt2/moc/Makefile \
        src/frontends/qt2/ui/Makefile \