Renamed configure.in to configure.ac

Recent versions of automake prefer configure.ac naming convention
This commit is contained in:
Jean-Michel Vourgère
2012-06-30 15:38:55 +02:00
parent 1c26aa14f8
commit bc704e7575
2 changed files with 12 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ DIE=0
DIE=1 DIE=1
} }
grep "^A[CM]_PROG_LIBTOOL" configure.in >/dev/null && { grep "^A[CM]_PROG_LIBTOOL" configure.ac >/dev/null && {
if which libtoolize && (libtoolize --version) < /dev/null > /dev/null 2>&1; then if which libtoolize && (libtoolize --version) < /dev/null > /dev/null 2>&1; then
LIBTOOLIZE=libtoolize LIBTOOLIZE=libtoolize
else else
@@ -34,8 +34,8 @@ grep "^A[CM]_PROG_LIBTOOL" configure.in >/dev/null && {
fi fi
} }
grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && { grep "^AM_GNU_GETTEXT" $srcdir/configure.ac >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \ grep "sed.*POTFILES" $srcdir/configure.ac >/dev/null || \
(gettext --version) < /dev/null > /dev/null 2>&1 || { (gettext --version) < /dev/null > /dev/null 2>&1 || {
echo echo
echo "**Error**: You must have \`gettext' installed." echo "**Error**: You must have \`gettext' installed."
@@ -45,8 +45,8 @@ grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
} }
} }
grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && { grep "^AM_GNOME_GETTEXT" $srcdir/configure.ac >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \ grep "sed.*POTFILES" $srcdir/configure.ac >/dev/null || \
(gettext --version) < /dev/null > /dev/null 2>&1 || { (gettext --version) < /dev/null > /dev/null 2>&1 || {
echo echo
echo "**Error**: You must have \`gettext' installed." echo "**Error**: You must have \`gettext' installed."
@@ -94,7 +94,7 @@ xlc )
am_opt=--include-deps;; am_opt=--include-deps;;
esac esac
for coin in `find $srcdir -name configure.in -print` for coin in `find $srcdir -name configure.ac -print`
do do
dr=`dirname $coin` dr=`dirname $coin`
if test -f $dr/NO-AUTO-GEN; then if test -f $dr/NO-AUTO-GEN; then
@@ -111,9 +111,9 @@ do
## echo "**Warning**: No such directory \`$k'. Ignored." ## echo "**Warning**: No such directory \`$k'. Ignored."
fi fi
done done
if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then if grep "^AM_GNU_GETTEXT" configure.ac >/dev/null; then
if grep "sed.*POTFILES" configure.in >/dev/null; then if grep "sed.*POTFILES" configure.ac >/dev/null; then
: do nothing -- we still have an old unmodified configure.in : do nothing -- we still have an old unmodified configure.ac
else else
echo "Creating $dr/aclocal.m4 ..." echo "Creating $dr/aclocal.m4 ..."
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
@@ -123,7 +123,7 @@ do
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
fi fi
fi fi
if grep "^AM_GNOME_GETTEXT" configure.in >/dev/null; then if grep "^AM_GNOME_GETTEXT" configure.ac >/dev/null; then
echo "Creating $dr/aclocal.m4 ..." echo "Creating $dr/aclocal.m4 ..."
test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 test -r $dr/aclocal.m4 || touch $dr/aclocal.m4
echo "Running gettextize... Ignore non-fatal messages." echo "Running gettextize... Ignore non-fatal messages."
@@ -133,11 +133,11 @@ do
fi fi
echo "Running aclocal $aclocalinclude ..." echo "Running aclocal $aclocalinclude ..."
aclocal $aclocalinclude aclocal $aclocalinclude
if grep "^A[CM]_PROG_LIBTOOL" configure.in >/dev/null; then if grep "^A[CM]_PROG_LIBTOOL" configure.ac >/dev/null; then
echo "Running libtoolize..." echo "Running libtoolize..."
${LIBTOOLIZE} --force --copy ${LIBTOOLIZE} --force --copy
fi fi
if grep "^A[CM]_CONFIG_HEADER" configure.in >/dev/null; then if grep "^A[CM]_CONFIG_HEADER" configure.ac >/dev/null; then
echo "Running autoheader..." echo "Running autoheader..."
autoheader autoheader
fi fi