]> git.lyx.org Git - lyx.git/blobdiff - config/lyxinclude.m4
Accelerators
[lyx.git] / config / lyxinclude.m4
index f0e2ad1c841fa27f111a0cf531ca6bf55235517f..369ecaefbb8e2fda55bede36284a3668b9983ea5 100644 (file)
@@ -408,10 +408,11 @@ if test x$GXX = xyes; then
   fi
   dnl Warnings are for preprocessor too
   if test x$enable_warnings = xyes ; then
+      AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra"
       case $gxx_version in
-         9.*) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra"
-              AM_CXXFLAGS="$AM_CXXFLAGS  -Wno-deprecated-copy";;
-         *) AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra";;
+         9.*|10.*|clang-10*)
+             AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-copy";;
+         *);;
       esac
     fi
   case $gxx_version in
@@ -607,6 +608,21 @@ dnl prevent clash with system zlib that might be dragged in by other libs
 ])
 
 
+dnl Usage: LYX_BUILD_INCLUDED_DTL : select if the included dtl should
+dnl        be built and installed.
+AC_DEFUN([LYX_BUILD_INCLUDED_DTL],[
+       AC_MSG_CHECKING([whether to build dv2dt and dt2dv])
+       AC_ARG_WITH(included-dtl,
+           [AS_HELP_STRING([--with-included-dtl], [build and install the dv2dt and dt2dv programs supplied with LyX])],
+           [lyx_cv_with_included_dtl=$withval],
+           [lyx_cv_with_included_dtl=no])
+       AM_CONDITIONAL(BUILD_INCLUDED_DTL, test x$lyx_cv_with_included_dtl = xyes)
+       AC_MSG_RESULT([$lyx_cv_with_included_dtl])
+       if test x$lyx_cv_with_included_dtl = xyes ; then
+           lyx_flags="$lyx_flags build-dtl"
+       fi])
+
+
 dnl Usage: LYX_CHECK_CALLSTACK_PRINTING: define LYX_CALLSTACK_PRINTING if the
 dnl        necessary APIs are available to print callstacks.
 AC_DEFUN([LYX_CHECK_CALLSTACK_PRINTING],