X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=configure.in;h=fb5a128a2b7f052aaa11907b453c0e2343df551d;hp=b42a7289a46c25b02d3157e2d5515f1c848c7d38;hb=db59ee1476515a65cfcca10a3059d8ccb2d24d32;hpb=9f56f874416db295bdb50d448bd99cdd34db969d diff --git a/configure.in b/configure.in index b42a728..fb5a128 100644 --- a/configure.in +++ b/configure.in @@ -32,6 +32,7 @@ AC_ARG_ENABLE(debug, if test "x$enable_debug" = xyes; then DEBUGDEFS="-DDEBUG -DVARDIR='\"$crdir/vd\"' -DSYSTEMCONFIGDIR='\"$crdir/slash-etc\"' -DSERVICEUSERDIR='\"$crdir/tilde\"'" DEBUGLIBS=-lefence + echo will build debugging version elif test "x$enable_debug" != xno; then AC_MSG_ERROR(--enable-debug does not allow any arguments except 'yes' and 'no') fi @@ -77,10 +78,10 @@ DPKG_CACHED_TRY_COMPILE(__attribute__((,,)),dpkg_cv_c_attribute_supported,, AC_MSG_RESULT(yes) AC_DEFINE(HAVE_GNUC25_NORETURN), AC_MSG_RESULT(no)) - DPKG_CACHED_TRY_COMPILE(__attribute__((const)),dpkg_cv_c_attribute_const,, - [extern int testfunction(int x) __attribute__((const))], + DPKG_CACHED_TRY_COMPILE(__attribute__((unused)),dpkg_cv_c_attribute_unused,, + [extern int testfunction(int x) __attribute__((unused))], AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_GNUC25_CONST), + AC_DEFINE(HAVE_GNUC25_UNUSED), AC_MSG_RESULT(no)) DPKG_CACHED_TRY_COMPILE(__attribute__((format...)),dpkg_cv_attribute_format,, [extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))],