--- embedaddon/smartmontools/autogen.sh 2012/02/21 16:32:16 1.1.1.1 +++ embedaddon/smartmontools/autogen.sh 2013/10/14 07:54:03 1.1.1.4 @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: autogen.sh,v 1.1.1.1 2012/02/21 16:32:16 misho Exp $ +# $Id: autogen.sh,v 1.1.1.4 2013/10/14 07:54:03 misho Exp $ # # Generate ./configure from config.in and Makefile.in from Makefile.am. # This also adds files like missing,depcomp,install-sh to the source @@ -32,7 +32,8 @@ typep() return 1 } -test -x "$AUTOMAKE" || AUTOMAKE=`typep automake-1.11` || AUTOMAKE=`typep automake-1.10` || +test -x "$AUTOMAKE" || AUTOMAKE=`typep automake-1.12` || + AUTOMAKE=`typep automake-1.11` || AUTOMAKE=`typep automake-1.10` || AUTOMAKE=`typep automake-1.9` || AUTOMAKE=`typep automake-1.8` || AUTOMAKE=`typep automake-1.7` || AUTOMAKE=`typep automake17` || { @@ -83,7 +84,7 @@ case "$ver" in rm -f casetest.tmp ;; - 1.9.[1-6]|1.10|1.10.[12]|1.11|1.11.1) + 1.9.[1-6]|1.10|1.10.[12]|1.11|1.11.[1-6]|1.12.[2-5]) # OK ;; @@ -92,9 +93,21 @@ case "$ver" in echo "Please report success/failure to the smartmontools-support mailing list." esac +# Install pkg-config macros +# (Don't use 'aclocal -I m4 --install' to keep support for automake < 1.10) +test -d m4 || mkdir m4 || exit 1 +test -f m4/pkg.m4 || acdir=`${ACLOCAL} --print-ac-dir` && + test -n "$acdir" && test -f "$acdir/pkg.m4" && +{ + echo "$0: installing \`m4/pkg.m4' from \`$acdir/pkg.m4'" + cp "$acdir/pkg.m4" m4/pkg.m4 +} +test -f m4/pkg.m4 || + echo "Warning: cannot install m4/pkg.m4, 'make dist' and systemd detection will not work." + set -e # stops on error status -${ACLOCAL} +${ACLOCAL} -I m4 autoheader -${AUTOMAKE} --add-missing --copy --foreign +${AUTOMAKE} --add-missing --copy autoconf