[libgweather] build: Modernize build system a bit



commit b061aa1790e88ec41310c99aa2256e2bf77efac3
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Jun 14 15:07:17 2011 +0200

    build: Modernize build system a bit
    
    Use the tar-ustar option for AM_INIT_AUTOMAKE for better tarballs.
    Do not use AM_MAINTAINER_MODE as it is not recommended by automake
    developers.
    Use LT_PREREQ & LT_INIT for libtool checks.
    Require intltool 0.40.6 to avoid various bugs.
    Do not use AC_ISC_POSIX, AC_HEADER_STDC, AM_PROG_CC_C_O as they
    shouldn't be needed on modern systems.
    Drop manual check for additional compiler flags and pass maximum to
    GNOME_COMPILE_WARNINGS instead.

 configure.ac |   55 ++++++++-----------------------------------------------
 1 files changed, 8 insertions(+), 47 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4c3a1dd..ee89c49 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,8 +1,9 @@
-AC_INIT([libgweather],[3.1.1])
+AC_INIT([libgweather], [3.1.1],
+        [http://bugzilla.gnome.org/enter_bug.cgi?product=libgweather])
 AC_PREREQ(2.62)
 
 AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2])
+AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-bzip2 tar-ustar])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 AC_CONFIG_MACRO_DIR([m4])
 
@@ -37,17 +38,15 @@ LIBSOUP_GNOME_REQUIRED=2.25.1
 GCONF_REQUIRED=2.8.0
 LIBXML_REQUIRED=2.6.0
 
-AM_MAINTAINER_MODE
 GNOME_MAINTAINER_MODE_DEFINES
 
-IT_PROG_INTLTOOL([0.40.3])
+LT_PREREQ([2.2.6])
+LT_INIT([dlopen win32-dll disable-static])
+
+IT_PROG_INTLTOOL([0.40.6])
 PKG_PROG_PKG_CONFIG([0.19])
 
 AC_PROG_CC
-AM_PROG_CC_C_O
-AC_ISC_POSIX
-AC_STDC_HEADERS
-AM_PROG_LIBTOOL
 AC_PATH_PROG(GCONFTOOL, gconftool-2)
 
 AC_ARG_ENABLE(all-translations-in-one-xml,
@@ -69,45 +68,7 @@ else
 fi
 AC_SUBST(COMPRESS_EXT)
 
-GNOME_COMPILE_WARNINGS
-
-dnl ***************************************************************************
-dnl *** --enable-more-warnings turns on more compiler warnings              ***
-dnl ***************************************************************************
-AC_ARG_ENABLE(more-warnings,
-[  --enable-more-warnings  Maximum compiler warnings],
-set_more_warnings="$enableval",[
-    set_more_warnings=no
-])
-AC_MSG_CHECKING(for more warnings, including -Werror)
-if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
-    AC_MSG_RESULT(yes)
-    CFLAGS="\
-    -Wall \
-    -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
-    -Wnested-externs -Wpointer-arith \
-    -Wcast-align -Wsign-compare \
-    -std=gnu89 \
-    $CFLAGS"
-
-    for option in -Wno-strict-aliasing -Wno-sign-compare; do
-        SAVE_CFLAGS="$CFLAGS"
-        CFLAGS="$CFLAGS $option"
-        AC_MSG_CHECKING([whether gcc understands $option])
-        AC_TRY_COMPILE([], [],
-            has_option=yes,
-            has_option=no,)
-        if test $has_option = no; then
-            CFLAGS="$SAVE_CFLAGS"
-        fi
-        AC_MSG_RESULT($has_option)
-        unset has_option
-        unset SAVE_CFLAGS
-    done
-    unset option
-else
-    AC_MSG_RESULT(no)
-fi
+GNOME_COMPILE_WARNINGS([maximum])
 
 if test "x$enable_maintainer_mode" = "xyes"; then
 	CFLAGS="$CFLAGS $DISABLE_DEPRECATED"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]