-
-AC_ARG_WITH(qmake,
- AC_HELP_STRING([--with-qmake],
- [Use qmake instead of automake to generate Makefiles]),,
- [with_qmake=no])
-
-AC_ARG_ENABLE(monolithic-boost,
- AC_HELP_STRING([--enable-monolithic-boost],
- [Use monolithic boost compilations]),,
- [enable_monolithic_boost=no])
-AM_CONDITIONAL(MONOLITHIC_BOOST, test $enable_monolithic_boost = yes)
+m4_define([ALLPARTS],[boost,client,insets,mathed,core,tex2lyx,frontend_qt4])
+AC_ARG_ENABLE(monolithic-build,
+ AC_HELP_STRING([--enable-monolithic-build@<:@=LIST@:>@],
+ [Use monolithic build for modules in LIST (default: ALLPARTS)]),
+ [test "$enable_monolithic_build" = yes && enable_monolithic_build="ALLPARTS"
+ test "$enable_monolithic_build" = no && enable_monolithic_build=
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=" ,"
+ for i in $enable_monolithic_build ; do
+ eval "enable_monolithic_$i=yes"
+ done
+ IFS="$ac_save_ifs"],
+ [enable_monolithic_build=])
+
+AM_CONDITIONAL(MONOLITHIC_BOOST, test -n "$enable_monolithic_boost")
+AM_CONDITIONAL(MONOLITHIC_CLIENT, test -n "$enable_monolithic_client")
+AM_CONDITIONAL(MONOLITHIC_INSETS, test -n "$enable_monolithic_insets")
+AM_CONDITIONAL(MONOLITHIC_MATHED, test -n "$enable_monolithic_mathed")
+AM_CONDITIONAL(MONOLITHIC_CORE, test -n "$enable_monolithic_core")
+AM_CONDITIONAL(MONOLITHIC_TEX2LYX, test -n "$enable_monolithic_tex2lyx")
+AM_CONDITIONAL(MONOLITHIC_FRONTEND_QT4, test -n "$enable_monolithic_frontend_qt4")
+
+MSYS_AC_CANONICAL_PATH(lyx_abs_top_srcdir, ${srcdir})
+MSYS_AC_CANONICAL_PATH(lyx_abs_installed_localedir, ${real_localedir})
+MSYS_AC_CANONICAL_PATH(lyx_abs_installed_datadir, ${real_pkgdatadir})
+
+AC_DEFINE_UNQUOTED([LYX_ABS_TOP_SRCDIR],
+ "${lyx_abs_top_srcdir}", [Top source directory])
+AC_DEFINE_UNQUOTED([LYX_ABS_INSTALLED_LOCALEDIR],
+ "${lyx_abs_installed_localedir}",[Hard coded locale directory])
+AC_DEFINE_UNQUOTED([LYX_ABS_INSTALLED_DATADIR],
+ "${lyx_abs_installed_datadir}",[Hard system support directory])
+AC_DEFINE_UNQUOTED([PROGRAM_SUFFIX],
+ "${version_suffix}",[Program version suffix])