X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4775934364a15296fe874339d3f48c938cb24dd7..3816cae7456a9abd70283c92c8c9dd4681cdee94:/configure.in diff --git a/configure.in b/configure.in index 2931927d..38acc96e 100644 --- a/configure.in +++ b/configure.in @@ -22,6 +22,9 @@ AC_PROG_INSTALL AC_PROG_CC_STDC AC_SUBST(SHELL) +AC_DEFINE([_GNU_SOURCE], 1, + [Define _GNU_SOURCE so that we get all necessary prototypes]) + if test "$xac_cv_prog_cc_stdc" = xno then AC_MSG_WARN([rsync requires an ANSI C compiler and you don't seem to have one]) @@ -50,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.