+2005-07-15 <lgb@tandberg.net>
+
+ * lyxinclude.m4 (lyx_pch_comp): add profiling switch
+
2005-07-12 Angus Leeming <leeming@lyx.org>
* qt.m4 (QT_CHECK_IS_MULTITHREADED): ascertain whether the Qt library
enable_concept_checks=no;
fi;])
+AC_ARG_ENABLE(profiling,
+ AC_HELP_STRING([--enable-profiling],[enable profiling]),,
+ enable_profiling=yes;)
+
### set up optimization
AC_ARG_ENABLE(optimization,
AC_HELP_STRING([--enable-optimization[=value]],[enable compiler optimisation]),,
CFLAGS="-g $CFLAGS"
CXXFLAGS="-g $CXXFLAGS"
fi
+ if test x$enable_profiling = xyes ; then
+ CFLAGS="-pg $CFLAGS"
+ CXXFLAGS="-pg $CXXFLAGS"
+ LDFLAGS="-pg $LDFLAGS"
+ fi
if test x$enable_warnings = xyes ; then
case $gxx_version in
2.*|3.1*|3.2*|3.3*)