]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add support for autoconf-2.50.
authorBruno Haible <bruno@clisp.org>
Thu, 14 Jun 2001 18:17:46 +0000 (18:17 +0000)
committerBruno Haible <bruno@clisp.org>
Thu, 14 Jun 2001 18:17:46 +0000 (18:17 +0000)
m4/ChangeLog
m4/gettext.m4

index 073537dea2d821e3bb6bef92686d00a07a9e295c..087b37bc43c4fb20a08c6f68550d6031a627752b 100644 (file)
@@ -1,3 +1,7 @@
+2001-06-14  Bruno Haible  <haible@clisp.cons.org>
+
+       * gettext.m4 (AM_WITH_NLS): Add support for autoconf-2.50.
+
 2001-06-10  Bruno Haible  <haible@clisp.cons.org>
 
        * ssize_t.m4: New file.
index 110e79b752c25a807c414478aa594a0f680b5024..c54818941db839b1d3ebdfc7e821a5b1a0d5dad9 100644 (file)
@@ -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
           ;;