X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/70ed474b3868def0f14623e2093494112b4b5b48..759c0627e1cf7638371e9143a8d33c8677a634f2:/configure.in diff --git a/configure.in b/configure.in index b5b5e9aa..38acc96e 100644 --- a/configure.in +++ b/configure.in @@ -53,6 +53,21 @@ else dnl CFLAGS=${CFLAGS-"-g"} fi + + + +AC_ARG_ENABLE(profile, + AC_HELP_STRING([--enable-profile], + [turn on CPU profiling (default no)], + [], [])) +if test x"$enable_profile" = xyes +then + CFLAGS="$CFLAGS -pg" +fi + + +# This is needed for our included version of popt. Kind of silly, but +# I don't want our version too far out of sync. CFLAGS="$CFLAGS -DHAVE_CONFIG_H" # If GCC, turn on warnings.