summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-01-24 12:22:29 -0500
committerRyan Lortie <desrt@desrt.ca>2013-02-11 14:24:45 -0500
commitbd257c69988a596cb0c9f061982acadbdb49dd7f (patch)
treefc9e747b6419bdb6ca3772abef3c1c565ed84768
parente0724e2f74b93970f5a4a2099c4444611b8f14e3 (diff)
downloaddconf-bd257c69988a596cb0c9f061982acadbdb49dd7f.tar.gz
build: enable running autoreconf on tarballs
A couple of things were preventing autoreconf from working properly on our tarball releases. Fix those up: - the m4/ directory (with intltool and gtk-doc m4) was not being disted - our ./autogen.sh invoked automake with --foreign, suppressing warnings about missing ChangeLog, etc. Move that flag into configure.ac so that they are still suppressed when using autoreconf. https://bugzilla.gnome.org/show_bug.cgi?id=663961
-rw-r--r--Makefile.am2
-rwxr-xr-xautogen.sh2
-rw-r--r--configure.ac2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 677194f..e40b6d8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,7 +9,7 @@ SUBDIRS += editor
endif
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
-EXTRA_DIST = trim-lcov.py
+EXTRA_DIST = trim-lcov.py m4
clean-am: lcov-clean gcno-clean
diff --git a/autogen.sh b/autogen.sh
index 364c213..3595fa1 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -19,7 +19,7 @@ intltoolize --force
gtkdocize --docdir docs --flavour no-tmpl
aclocal${automake_suffix} ${ACLOCAL_FLAGS}
autoheader
-automake${automake_suffix} --add-missing --foreign
+automake${automake_suffix} --add-missing
autoconf
CFLAGS=${CFLAGS=-ggdb}
diff --git a/configure.ac b/configure.ac
index 6ac2a34..4375b89 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,7 +8,7 @@ AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([aux])
AC_CONFIG_HEADERS([config.h])
-AM_INIT_AUTOMAKE([1.11 -Wno-portability no-dist-gzip dist-xz])
+AM_INIT_AUTOMAKE([1.11 foreign -Wno-portability no-dist-gzip dist-xz])
AM_SILENT_RULES([yes])
# Set default CFLAGS before AC_PROG_CC does