summaryrefslogtreecommitdiffstats
path: root/m4/gettext.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-06-14 18:17:46 +0000
committerBruno Haible <bruno@clisp.org>2001-06-14 18:17:46 +0000
commitbd0c13e82241659e06958be67a37206faf31a1c8 (patch)
treea6c78820a3c1fe65bdafd18ba4b8394d4c21d99f /m4/gettext.m4
parent66662c6480489904c87b8dc569dae3cbb2589b05 (diff)
downloadexternal_gettext-bd0c13e82241659e06958be67a37206faf31a1c8.zip
external_gettext-bd0c13e82241659e06958be67a37206faf31a1c8.tar.gz
external_gettext-bd0c13e82241659e06958be67a37206faf31a1c8.tar.bz2
Add support for autoconf-2.50.
Diffstat (limited to 'm4/gettext.m4')
-rw-r--r--m4/gettext.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/gettext.m4 b/m4/gettext.m4
index 110e79b..c548189 100644
--- a/m4/gettext.m4
+++ b/m4/gettext.m4
@@ -196,6 +196,9 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
+ # In autoconf-2.13 it is called $ac_given_srcdir.
+ # In autoconf-2.50 it is called $srcdir.
+ test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
case "$ac_given_srcdir" in
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
/*) top_srcdir="$ac_given_srcdir" ;;
@@ -203,9 +206,9 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", ""
esac
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
rm -f "$ac_dir/POTFILES"
- echo creating "$ac_dir/POTFILES"
+ test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
- echo creating "$ac_dir/Makefile"
+ test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
fi
;;