X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/25f2cb3d6b7537149b5645ed13cdd9785fa225ab..4775934364a15296fe874339d3f48c938cb24dd7:/configure.in diff --git a/configure.in b/configure.in index f7704cb6..2931927d 100644 --- a/configure.in +++ b/configure.in @@ -30,6 +30,9 @@ fi # compile with optimisation and without debugging by default, unless # --debug is given. We must decide this before testing the compiler. +# Please allow this to default to yes, so that your users have more +# chance of getting a useful stack trace if problems occur. + AC_MSG_CHECKING([whether to include debugging symbols]) AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], @@ -49,6 +52,12 @@ fi CFLAGS="$CFLAGS -DHAVE_CONFIG_H" +# If GCC, turn on warnings. +if test "x$GCC" = "xyes" +then + CFLAGS="$CFLAGS -Wall" +fi + AC_ARG_WITH(included-popt, [ --with-included-popt use bundled popt library, not from system])