autotoolsconfigurefedora-25

Autorreconf and "error: possibly undefined macro: AM_NLS"


I'm trying to produce a configure script for systemd.

$ git clone https://github.com/systemd/systemd.git
$ cd systemd

$ autoreconf -i
configure.ac:74: warning: macro 'AM_NLS' not found in library
configure.ac:74: error: possibly undefined macro: AM_NLS
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

I'm on a fairly modern machine that's fully patched. Its Fedora 25, x86_64:

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description:    Fedora release 25 (Twenty Five)
Release:        25
Codename:       TwentyFive

I'm not an Autotools expert, and searching for "error: possibly undefined macro: AM_NLS" is not returning useful hits for me. I found Linphone configuration results in multiple undefined Autotools macros, but its not exactly clear what I should do. Unix & Linux Stack Exchange has Some M4 macros don't seem to be defined, but its still not clear what I should do for this issue.

What is the problem and how do I fix it?


Solution

  • What is the problem and how do I fix it?

    The problem is it's expecting GNU gettext, specifically on Fedora 25 gettext-devel. It's in /usr/share/aclocal/nls.m4 contained in that package. You should be able to install that package and build.