[empathy] Add a configure option for GProf
- From: Alban Crequy <albanc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Add a configure option for GProf
- Date: Tue, 23 Aug 2011 12:42:01 +0000 (UTC)
commit ec1594416d7fc29c7baeeb10f7645934a9679bb5
Author: Alban Crequy <alban crequy collabora co uk>
Date: Mon Aug 22 16:57:52 2011 +0100
Add a configure option for GProf
It should help to investigate
https://bugzilla.gnome.org/show_bug.cgi?id=657086
configure.ac | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9773190..cb60cf5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,6 +152,17 @@ AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-proto
AC_SUBST(ERROR_CFLAGS)
+AC_ARG_ENABLE(gprof,
+ AS_HELP_STRING([--enable-gprof=@<:@no/yes@:>@],
+ [build with support for gprof]),,
+ [enable_gprof=no])
+if test "x$enable_gprof" != "xno" ; then
+ CFLAGS="$CFLAGS -pg"
+ LDFLAGS="$LDFLAGS -pg"
+fi
+
+AC_SUBST(LDFLAGS)
+
# -----------------------------------------------------------
# Pkg-Config dependency checks
# -----------------------------------------------------------
@@ -639,6 +650,7 @@ Configure summary:
Compiler....................: ${CC}
Compiler Flags..............: ${CFLAGS} ${ERROR_CFLAGS}
+ Linker Flags................: ${LDFLAGS}
Prefix......................: ${prefix}
Coding style checks.........: ${ENABLE_CODING_STYLE_CHECKS}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]