summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>2000-01-17 18:04:06 +0000
committerElliot Lee <sopwith@src.gnome.org>2000-01-17 18:04:06 +0000
commit8c613436a919b6a8bac4214b1fcedb57bba4d408 (patch)
treef6b4446ae375dc12b1ee24c18e5da19d704dda17
parent3e3a7fea32f0ac89acfc93dfad5a34401fe22ff7 (diff)
downloadshared-mime-info-8c613436a919b6a8bac4214b1fcedb57bba4d408.tar.gz
do the rm-gnome-gettext.m4 hokey pokey
svn path=/trunk/; revision=1065
-rw-r--r--macros/autogen.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/macros/autogen.sh b/macros/autogen.sh
index c1b687c6..5662d01f 100644
--- a/macros/autogen.sh
+++ b/macros/autogen.sh
@@ -85,8 +85,6 @@ xlc )
am_opt=--include-deps;;
esac
-DELETEME="gnome-gettext.m4"
-DELETEFILES="`find $srcdir -name $DELETEME`"
for coin in `find $srcdir -name configure.in -print`
do
dr=`dirname $coin`
@@ -96,15 +94,21 @@ do
echo processing $dr
macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
( cd $dr
+ DELETEFILES="`find . -name gnome-gettext.m4`"
aclocalinclude="$ACLOCAL_FLAGS"
+ for k in $aclocalinclude; do
+ if test -d $k; then
+ if [ -f $k/gnome.m4 -a "$GNOME_INTERFACE_VERSION" = "1.0" ]; then
+ rm -f $DELETEFILES
+ fi
+ fi
+ done
for k in $macrodirs; do
if test -d $k; then
aclocalinclude="$aclocalinclude -I $k"
if [ -f $k/gnome.m4 -a "$GNOME_INTERFACE_VERSION" = "1.0" ]; then
rm -f $DELETEFILES
fi
- ##else
- ## echo "**Warning**: No such directory \`$k'. Ignored."
fi
done
if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then