[Wayland-bugs] [Bug 103684] Building weston fails with configure.ac:15: error: possibly undefined macro: AC_SUBST

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 11 16:29:04 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103684

            Bug ID: 103684
           Summary: Building weston fails with configure.ac:15: error:
                    possibly undefined macro: AC_SUBST
           Product: Wayland
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: weston
          Assignee: wayland-bugs at lists.freedesktop.org
          Reporter: dyle71 at gmail.com

#!/bin/hi *

I was following instructions on https://wayland.freedesktop.org/building.html
on a fresh new plain Debian 9 installment.

I also took a peek at https://wayland.freedesktop.org/ubuntu16.04.html to get
inspired.

However, right at the first step autoconf fails to me with:

$ ./autogen.sh --prefix=$WLD 
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I /home/dyle/install/share/aclocal --force -I m4
${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
configure.ac:15: error: possibly undefined macro: AC_SUBST
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:102: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:110: error: possibly undefined macro: AC_CHECK_HEADERS
configure.ac:117: error: possibly undefined macro: AC_SEARCH_LIBS
autoreconf: /usr/bin/autoconf failed with exit status: 1


I'm using this environment:

export WLD=$HOME/install
export LD_LIBRARY_PATH=$WLD/lib
export PKG_CONFIG_PATH=$WLD/lib/pkgconfig:$WLD/share/pkgconfig
export PATH=$WLD/bin:$PATH
export ACLOCAL_PATH=$WLD/share/aclocal
export ACLOCAL="aclocal -I $ACLOCAL_PATH"

With a 'mkdir -p $WLD/share/aclocal'


This is my current setup:
$ git branch -v
* master 2420056 wayland-server: document WL_HIDE_DEPRECATED

$ dpkg --list | grep -E 'autotool|libtool|autoconf'
ii  autoconf                      2.69-10                        all         
automatic configure script builder
ii  autotools-dev                 20161112.1                     all         
Update infrastructure for config.{guess,sub} files
ii  libltdl-dev:amd64             2.4.6-2                        amd64       
System independent dlopen wrapper for GNU libtool
ii  libltdl7:amd64                2.4.6-2                        amd64       
System independent dlopen wrapper for GNU libtool
ii  libtool                       2.4.6-2                        all         
Generic library support script

... besides the usual suspects: build-essentials, sed, gawk, ...

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.2 (stretch)
Release:        9.2
Codename:       stretch

The Debian is installed fresh anew from the shelf. No WM or DE currently
installed or running. 

I refrain to hack configure.ac myself. I think it just needs a nudge somewhere,
it must be just a tiny little thingie - but I don't know where and what to
tweak.

Using "m4_pattern_allow" seems wrong to me, though.

Should I drop the ACLOCAL exports?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171111/1c36d0dc/attachment.html>


More information about the wayland-bugs mailing list