Commit 9418763d authored by Niels Möller's avatar Niels Möller

New option --enable-profiling.

Rev: configure.ac:1.38
parent bda12bcf
......@@ -51,6 +51,11 @@ AC_ARG_ENABLE(gcov,
AC_HELP_STRING([--enable-gcov], [Instrument for gcov (requires a modern gcc)]),,
[enable_gcov=no])
AC_ARG_ENABLE(profiling,
AC_HELP_STRING([--enable-profiling], [Instrument for gprof profiling]),,
[enable_profiling=no])
AC_ARG_WITH(zlib,
AC_HELP_STRING([--without-zlib], [Don't use zlib compression]),,
[with_zlib=yes])
......@@ -493,6 +498,10 @@ if test "x$enable_gcov" = "xyes"; then
AC_DEFINE(WITH_GCOV)
fi
if test "x$enable_profiling" = "xyes"; then
CFLAGS="$CFLAGS -pg"
fi
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment