[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AM_GNU_GETTEXT working with autoconf 2.50, yet again
From: |
karl |
Subject: |
AM_GNU_GETTEXT working with autoconf 2.50, yet again |
Date: |
Mon, 11 Jun 2001 12:00:31 -0400 |
One more (final?) revision of the patch to make AM_WITH_NLS work with
autoconf 2.50 ...
*** /usr/local/gnu/share/aclocal/ORIG/gettext.m4 Thu May 17 06:35:37 2001
--- /usr/local/gnu/share/aclocal/gettext.m4 Mon Jun 11 07:15:00 2001
***************
*** 177,197 ****
esac
# PO directories have a Makefile.in generated from Makefile.in.in.
case "$ac_file" in */Makefile.in)
! # Adjust a relative srcdir.
! ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
! ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
! ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
! case "$ac_given_srcdir" in
! .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
! /*) top_srcdir="$ac_given_srcdir" ;;
! *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
! esac
! if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
! rm -f "$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"
! sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" >
"$ac_dir/Makefile"
fi
;;
esac
--- 177,202 ----
esac
# PO directories have a Makefile.in generated from Makefile.in.in.
case "$ac_file" in */Makefile.in)
! # ac_dir is set to the last thing in the output list here,
! # not necessarily the po.
! po_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
! # ac_top_srcdir has been computed assuming that we are in a
! # subdirectory, but the po stuff is running at the top level.
! if echo "$ac_top_srcdir" | grep /. >/dev/null; then
! po_top_srcdir=`echo "$ac_top_srcdir"|sed 's%/[^/][^/]*$%%'`
! elif test "$ac_top_srcdir" = .; then
! po_top_srcdir=. # po stuff at top level
! elif test "$ac_top_srcdir" = ..; then
! po_top_srcdir=. # po stuff one level down
! else
! po_top_srcdir="$ac_top_srcdir/.."
! fi
! if test -f "$po_top_srcdir/$po_dir/POTFILES.in"; then
! rm -f "$po_dir/POTFILES"
! echo $as_me: creating "$po_dir/POTFILES"
! sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $ac_top_srcdir/&
\\\\," -e "\$s/\(.*\) \\\\/\1/" < "$po_top_srcdir/$po_dir/POTFILES.in" >
"$po_dir/POTFILES"
! echo $as_me: creating "$po_dir/Makefile"
! sed -e "/POTFILES =/r $po_dir/POTFILES" "$po_dir/Makefile.in" >
"$po_dir/Makefile"
fi
;;
esac
Diff finished at Mon Jun 11 08:24:56
- AM_GNU_GETTEXT working with autoconf 2.50, yet again,
karl <=