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])
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.