diff options
author | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-10-04 20:43:34 +0000 |
---|---|---|
committer | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-10-04 20:43:34 +0000 |
commit | 1e7afb777caa66827d06ce144df4cf1559f07de8 (patch) | |
tree | d289cac96acf06c2109e5d926fb807360a81f72d /configure.in | |
parent | 6bec562dc303b263733c6114a3ed003035cb4dfe (diff) | |
download | nautilus-1e7afb777caa66827d06ce144df4cf1559f07de8.tar.gz |
Add profiling support via --enable-profiler.
* acconfig.h:
* configure.in:
Add profiling support via --enable-profiler.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/configure.in b/configure.in index b76b53eb8..f3d0689c1 100644 --- a/configure.in +++ b/configure.in @@ -25,6 +25,34 @@ AC_ISC_POSIX dnl ORBit AM_PATH_ORBIT +dnl ==================================== +dnl = +dnl = Profiling support +dnl = +dnl ==================================== +PROFILE_CFLAGS= +PROFILE_LIBS= + +PROFILER= +AC_ARG_ENABLE(profiler, +[ --enable-profiler Enable profiler], +ENABLE_PROFILER=1 +AC_DEFINE(ENABLE_PROFILER)) + +AC_SUBST(ENABLE_PROFILER) +AM_CONDITIONAL(ENABLE_PROFILER, test "x$ENABLE_PROFILER" = "x1") + +if test "x$ENABLE_PROFILER" = "x1" +then + CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES" + LDFLAGS="/gnome/lib/libprofiler.so -lpthread" +fi + +dnl ==================================== +dnl = end authenticate helper +dnl ==================================== + + dnl Check for "RedHat-style" font setup AM_CONDITIONAL(TYPE1_FONT_DIR_EXISTS, test -d /usr/share/fonts/default/Type1) @@ -680,5 +708,23 @@ Tree View : Shared Library" ;; esac echo "=>" +dnl <= Profile support? => +case "X$ENABLE_PROFILER" in +X1) +echo " +Enable profiler : YES + PROFILE_CFLAGS : $PROFILE_CFLAGS + PROFILE_LIBS : $PROFILE_LIBS" +;; +*) +echo " +Enable profiler : NO" +;; +esac + +dnl <= CFLAGS and LDFLAGS => +echo " +CFLAGS : $CFLAGS +LDFLAGS : $LDFLAGS" dnl <= End of configuration summary => |