diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-10-19 01:49:11 -0400 |
---|---|---|
committer | Jeff Mahoney <jeffm@suse.com> | 2012-10-30 17:51:38 -0400 |
commit | ecb8f6ed3cce6c07afeeb438bbcbef9f226d3a1b (patch) | |
tree | b6a26a41dc5a06f2f0bbab5c2189a0e9f8dc36db | |
parent | 942e488bcd550a07a1d5ef502ee38313e195c24a (diff) | |
download | reiserfsprogs-ecb8f6ed3cce6c07afeeb438bbcbef9f226d3a1b.tar.gz |
clean up io-failure-emulation logic a bit
Use standard autoconf macros rather than open coding the logic.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
-rw-r--r-- | configure.ac | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 8f280a6..14d7563 100644 --- a/configure.ac +++ b/configure.ac @@ -98,12 +98,11 @@ fi dnl Never enable this. It is for debugging only AC_ARG_ENABLE(io-failure-emulation, -[ --enable-io-failure-emulation Never use that. It is for debugging only], -[ if test "$enableval" = "yes" ; then - echo -e "\nCarefull! IO failure emulation is ON\n" - AC_DEFINE(IO_FAILURE_EMULATION, 1, [gets set when configure --enable-io-failure-emulation]) - fi -]) + [AS_HELP_STRING([--enable-io-failure-emulation], [Never use this. It is for debugging only])]) +if test "$enable_io_failure_emulation" = "yes" ; then + AC_MSG_WARN([Careful! IO failure emulation is ON]) + AC_DEFINE(IO_FAILURE_EMULATION, 1, [gets set when configure --enable-io-failure-emulation]) +fi if test "x$ac_cv_wno_unused_parameter_flag" = xyes; then CFLAGS="$CFLAGS -Wno-unused-parameter" |