summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-10-21 17:29:09 +0200
committerinfirit <[email protected]>2013-10-21 17:29:09 +0200
commit2ac8d0bc96911e0b939dc6baa5b0240f9a163efd (patch)
treec2b6cdb39cedfa869bf718beb03e6055b720a058
parenta6ac554554388107bbd68df30a07393af6fba790 (diff)
downloadmate-media-2ac8d0bc96911e0b939dc6baa5b0240f9a163efd.tar.bz2
mate-media-2ac8d0bc96911e0b939dc6baa5b0240f9a163efd.tar.xz
just use MATE_COMPILE_WARNINGS(maximum) and remove custom macros
-rw-r--r--configure.ac10
-rw-r--r--m4/as-compiler-flag.m433
2 files changed, 1 insertions, 42 deletions
diff --git a/configure.ac b/configure.ac
index e39286e..629fca5 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
GTK_REQUIRED_VERSION=2.18.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])
-])
-