3 AS_HELP_STRING([--enable-gprof], [turn on profiling [default=no]]),
4 [case "${enableval}" in
5 yes) enable_gprof=yes ;;
7 *) AC_MSG_ERROR([bad value ${enableval} for --enable-gprof]) ;;
8 esac], [enable_gprof=no])
10 dnl -g is added by AC_PROG_CC if the compiler understands it
11 if test "x$enable_gprof" = "xyes"; then
12 FC_C_FLAGS([-pg], [], [EXTRA_DEBUG_CFLAGS])
13 if test "x$cxx_works" = "xyes" ; then
14 FC_CXX_FLAGS([-pg], [], [EXTRA_DEBUG_CXXFLAGS])