bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with AM_GNU_GETTEXT_VERSION


From: Bruno Haible
Subject: Re: problems with AM_GNU_GETTEXT_VERSION
Date: Sat, 19 Jan 2008 00:30:49 +0100
User-agent: KMail/1.5.4

Hi,

Michael Bauschert wrote:
> i get the following message:
> 
> autopoint --force
>  or newer.version               is older. Please upgrade to gettext-[0.14]
> file requires the infrastructure from gettext-[0.14]
> autopoint: *** Stop.
> make: *** [make] Error 1

The message that you reproduced here is a bit mutilated or wrapped around,
but I recognize it nevertheless :-)

> i have defined AM_GNU_GETTEXT_VERSION([0.14]) in the file configure.ac:
>
> # gettext
> AM_ICONV
> AM_GNU_GETTEXT([external])
> AM_GNU_GETTEXT_VERSION([0.14])

The error message indicates that the extraction of the version number 0.14
from this snippet did not succeed in removing the enclosing brackets. The
problem is probably related to the type of /bin/sh on your system. Anyway,
I'm making this code more robust (patch below). For you the workaround is
to omit the brackets here:
  AM_GNU_GETTEXT_VERSION(0.14)
(Although it is good style to normally put brackets around every macro
arguments.)

Bruno


2008-01-18  Bruno Haible  <address@hidden>

        * autopoint.in (xver): Make its computation more robust.
        Reported by Michael Bauschert <address@hidden>.

*** autopoint.in        18 Jan 2008 23:17:46 -0000      1.36
--- autopoint.in        18 Jan 2008 23:25:40 -0000
***************
*** 266,272 ****
  
  # Check whether the -V option and the version number in configure.in match.
  # At least one of the two must be given. If both are given, they must agree.
! xver=`cat "$configure_in" | grep '^AM_GNU_GETTEXT_VERSION(' | sed -e 
's/^AM_GNU_GETTEXT_VERSION(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | 
sed -e 1q`
  if test -z "$xver" && test -f intl/VERSION; then
    xver=`cat intl/VERSION | LC_ALL=C sed -n -e 
's/^.*gettext-\([-+_.0-9A-Za-z]*\).*$/\1/p'`
  fi
--- 266,274 ----
  
  # Check whether the -V option and the version number in configure.in match.
  # At least one of the two must be given. If both are given, they must agree.
! 
sed_extract_AM_GNU_GETTEXT_VERSION_argument='s/^AM_GNU_GETTEXT_VERSION(\([^()]*\)).*$/\1/'
! sed_remove_outer_brackets='s/^\[\(.*\)\]$/\1/'
! xver=`cat "$configure_in" | grep '^AM_GNU_GETTEXT_VERSION(' | sed -n -e 
"$sed_extract_AM_GNU_GETTEXT_VERSION_argument"p | sed -e 
"$sed_remove_outer_brackets" | sed -e 1q`
  if test -z "$xver" && test -f intl/VERSION; then
    xver=`cat intl/VERSION | LC_ALL=C sed -n -e 
's/^.*gettext-\([-+_.0-9A-Za-z]*\).*$/\1/p'`
  fi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]