summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2013-03-12 15:41:54 +0200
committerPekka Enberg <penberg@kernel.org>2013-03-12 20:46:32 +0200
commitd0dbd5beebaf92e6ade9d136c57b0b46572fc41e (patch)
tree3b5695375925a08e06dcd34c9689f97467ad47c6
parent628d267a783838f3a0fc46052b7876c772826aaf (diff)
downloadclasspath-d0dbd5beebaf92e6ade9d136c57b0b46572fc41e.tar.gz
Check for gettext m4 macros in autogen.sh
If gettext-devel package is not installed on Fedora, autogen.sh fails as follows: [penberg@tux classpath]$ sh autogen.sh configure.ac:505: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not m4_defun'd m4/iconv.m4:11: AM_ICONV_LINKFLAGS_BODY is expanded from... m4/iconv.m4:22: AM_ICONV_LINK is expanded from... m4/iconv.m4:77: AM_ICONV is expanded from... Make the script more user fiendly by explicitly checking for the presence of gettext.m4 in the system. Cc: Andrew John Hughes <gnu_andrew@member.fsf.org> Cc: Brian Jones <cbjones1@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--ChangeLog5
-rwxr-xr-xautogen.sh7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 289a979f9..e26f6277e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-12 Pekka Enberg <penberg@kernel.org>
+
+ * autogen.sh:
+ Check that gettext.m4 is installed.
+
2013-03-09 Pekka Enberg <penberg@kernel.org>
* .gitignore: Exclude autogen-generated files.
diff --git a/autogen.sh b/autogen.sh
index adb8f0c94..df0095faf 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -34,6 +34,13 @@ if $have_libtool ; then : ; else
DIE=1
fi
+if [ ! -e $(aclocal --print-ac-dir)/gettext.m4 ] ; then
+ echo
+ echo "You must have gettext package and, if applicable to your"
+ echo "system, gettext-devel package installed to compile $PROJECT."
+ DIE=1
+fi
+
if test "$DIE" -eq 1; then
exit 1
fi