From: Nikos Mavrogiannopoulos Date: Mon, 30 Jul 2001 09:56:28 +0000 (+0000) Subject: added profiler option X-Git-Tag: gnutls_0_1_9~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7e2ee106479eb3166a3e6ac5c40ec7b80a13fdb;p=thirdparty%2Fgnutls.git added profiler option --- diff --git a/configure.in b/configure.in index 898835beb8..666983ca81 100644 --- a/configure.in +++ b/configure.in @@ -67,7 +67,7 @@ AC_MSG_RESULT($opt_maintainer_mode) opt_profiler_mode=no AC_MSG_CHECKING([whether in profile mode]) AC_ARG_ENABLE(profile-mode, -[ --enable-profile-mode enable profiler (gcov/gprof)], +[ --enable-profile-mode enable profiler], opt_profiler_mode=$enableval) AC_MSG_RESULT($opt_profiler_mode) @@ -104,10 +104,15 @@ if test $ac_cv_c_compiler_gnu != no; then CFLAGS="" if test $opt_profiler_mode = yes; then - CFLAGS="${CFLAGS} -O0 -fprofile-arcs -ftest-coverage -pg" + CFLAGS="${CFLAGS} -O0 -fprofile-arcs -finstrument-functions -ftest-coverage" + AC_CHECK_LIB(fnccheck, main, + LIBS="$LIBS -lfnccheck", + AC_MSG_ERROR("You must install libfnccheck in order to enable profiling. http://www710.univ-lyon1.fr/~yperret/fnccheck/profiler.html") + ) fi if test $opt_maintainer_mode = yes; then + CFLAGS="${CFLAGS} -O0 -ggdb3 -Wall -Wpointer-arith" else CFLAGS="${CFLAGS} -O2"