From 68e1d8b68f5260ba6dc2d3f950ced434a4a9b55c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 13 Jul 2014 18:14:08 +0200 Subject: Add some info and a check for the hugin submodule. --- autogen.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 6a3f901..c027031 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,5 +1,16 @@ #!/bin/sh -e +# Check if hugin has been obtained: +if [ ! -d hugin ] +then + echo "You are missing the hugin submodule." + echo "Run" + echo " git submodule init" + echo " git submodule update" + echo "to obtain it." + exit 1 +fi + # Check for the existence of cppunit.m4. If missing emulate it. mkdir -p actest cat << EOF > actest/configure.ac @@ -7,7 +18,7 @@ AC_INIT([actest], [1.0.0]) AM_PATH_CPPUNIT(1.9.6) EOF [ -f acinclude.m4 ] && rm acinclude.m4 -autoreconf -W error actest 2>/dev/null || echo "AC_DEFUN([AM_PATH_CPPUNIT],[])" > acinclude.m4 +autoreconf -W error actest 2>/dev/null || echo "AC_DEFUN([AM_PATH_CPPUNIT],[echo 'cppunit hack'])" > acinclude.m4 rm -Rf actest # Now run autoreconf -- cgit v1.2.3