diff options
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | m4/as-compiler-flag.m4 | 33 |
2 files changed, 1 insertions, 42 deletions
diff --git a/configure.ac b/configure.ac index d7b068d..55beeac 100644 --- a/configure.ac +++ b/configure.ac @@ -44,15 +44,7 @@ AC_PROG_GCC_TRADITIONAL AC_FUNC_MMAP # CFLAGS -MATE_COMPILE_WARNINGS - -AS_COMPILER_FLAG(-Wall, GM_ERROR_CFLAGS="-Wall") - -if test "x$GM_RELEASE" = "xno" -then - AS_COMPILER_FLAG(-Werror, GM_ERROR_CFLAGS="$GM_ERROR_CFLAGS -Werror") -fi -AC_MSG_NOTICE([Using $GM_ERROR_CFLAGS as error checking CFLAGS]) +MATE_COMPILE_WARNINGS(maximum) GLIB_REQUIRED_VERSION=2.18.2 GIO_REQUIRED_VERSION=2.25.0 diff --git a/m4/as-compiler-flag.m4 b/m4/as-compiler-flag.m4 deleted file mode 100644 index c828bf4..0000000 --- a/m4/as-compiler-flag.m4 +++ /dev/null @@ -1,33 +0,0 @@ -dnl as-compiler-flag.m4 0.1.0 - -dnl autostars m4 macro for detection of compiler flags - -dnl David Schleef <[email protected]> - -dnl $Id: as-compiler-flag.m4,v 1.1 2004/06/01 10:08:56 thomasvs Exp $ - -dnl AS_COMPILER_FLAG(CFLAGS, ACTION-IF-ACCEPTED, [ACTION-IF-NOT-ACCEPTED]) -dnl Tries to compile with the given CFLAGS. -dnl Runs ACTION-IF-ACCEPTED if the compiler can compile with the flags, -dnl and ACTION-IF-NOT-ACCEPTED otherwise. - -AC_DEFUN([AS_COMPILER_FLAG], -[ - AC_MSG_CHECKING([to see if compiler understands $1]) - - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $1" - - AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no]) - CFLAGS="$save_CFLAGS" - - if test "X$flag_ok" = Xyes ; then - $2 - true - else - $3 - true - fi - AC_MSG_RESULT([$flag_ok]) -]) - |