From: Akim Demaille Date: Sun, 25 Feb 2001 18:47:53 +0000 (+0000) Subject: * automake.in (&handle_gettext): Simplify redundant `if'. X-Git-Tag: handle-languages~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dda7868acd82d81cb8b8dcd35a793f2d7c3b8a5b;p=thirdparty%2Fautomake.git * automake.in (&handle_gettext): Simplify redundant `if'. Used &variable_value, don't read %contents directly. --- diff --git a/ChangeLog b/ChangeLog index 411e25f0e..741cf8b64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-02-25 Akim Demaille + + * automake.in (&handle_gettext): Simplify redundant `if'. + Used &variable_value, don't read %contents directly. + 2001-02-25 Akim Demaille * automake.in ($install_recursive): Remove, replaced with calls to diff --git a/automake.in b/automake.in index f6ff51225..a567f8ac0 100755 --- a/automake.in +++ b/automake.in @@ -3466,21 +3466,15 @@ sub handle_gettext ("AM_GNU_GETTEXT used but SUBDIRS not defined"); return; } + &am_line_error ('SUBDIRS', + "AM_GNU_GETTEXT used but \`po' not in SUBDIRS") + if &variable_value ('SUBDIRS') !~ /\bpo\b/; + &am_line_error ('SUBDIRS', + "AM_GNU_GETTEXT used but \`intl' not in SUBDIRS") + if &variable_value ('SUBDIRS') !~ /\bintl\b/; &require_file_with_conf_line ($ac_gettext_line, $GNU, 'ABOUT-NLS'); - if (&variable_defined ('SUBDIRS')) - { - &am_line_error - ('SUBDIRS', - "AM_GNU_GETTEXT in \`$configure_ac' but \`po' not in SUBDIRS") - if $contents{'SUBDIRS'} !~ /\bpo\b/; - &am_line_error - ('SUBDIRS', - "AM_GNU_GETTEXT in \`$configure_ac' but \`intl' not in SUBDIRS") - if $contents{'SUBDIRS'} !~ /\bintl\b/; - } - # Ensure that each language in ALL_LINGUAS has a .po file, and # each po file is mentioned in ALL_LINGUAS. if ($seen_linguas)