MacPorts recently upgraded automake to 1.12 [1]. Inkscape's 'autogen.sh' script doesn't detect this version. The script instead falls back to the system version (automake 1.10 - if present at all, no longer provided with Xcode >= 4.3.x on Lion and Mountain Lion AFAIK). The system version of automake however lacks several required macros (only present in MacPorts' version), and the script fails:
I am testing that you have the required versions of autoconf,
automake, glib-gettextize and intltoolize. This test is not foolproof and
if anything goes wrong, there may be guidance in the file HACKING.txt
checking for autoconf >= 2.52 ... yes (version 2.69)
checking for automake >= 1.10 ... yes (version 1.10)
checking for glib-gettextize >= 2.0.0 ... yes (version 2.32.1)
checking for intltool >= 0.17 ... yes (version 0.50.2)
WARNING: aclocal's directory is /usr/bin/../share/aclocal, but...
no file /usr/bin/../share/aclocal/glib-2.0.m4
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS environment variable to "-I /some/dir", or install /usr/bin/../share/aclocal/glib-2.0.m4.
WARNING: aclocal's directory is /usr/bin/../share/aclocal, but...
no file /usr/bin/../share/aclocal/glib-gettext.m4
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS environment variable to "-I /some/dir", or install /usr/bin/../share/aclocal/glib-gettext.m4.
WARNING: aclocal's directory is /usr/bin/../share/aclocal, but...
no file /usr/bin/../share/aclocal/gtk-2.0.m4
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS environment variable to "-I /some/dir", or install /usr/bin/../share/aclocal/gtk-2.0.m4.
WARNING: aclocal's directory is /usr/bin/../share/aclocal, but...
no file /usr/bin/../share/aclocal/intltool.m4
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS environment variable to "-I /some/dir", or install /usr/bin/../share/aclocal/intltool.m4.
WARNING: aclocal's directory is /usr/bin/../share/aclocal, but...
no file /usr/bin/../share/aclocal/pkg.m4
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS environment variable to "-I /some/dir", or install /usr/bin/../share/aclocal/pkg.m4.
Running aclocal-1.10 ...
configure.ac:181: warning: macro `AM_GLIB_GNU_GETTEXT' not found in library
Running autoheader ...
aclocal.m4:14: error: this file was generated for autoconf 2.61.
You have another version of autoconf. If you want to use that,
you should regenerate the build system entirely.
aclocal.m4:14: the top level
autom4te: /opt/local/bin/gm4 failed with exit status: 63
autoheader: '/opt/local/bin/autom4te' failed with exit status: 63
Please fix the error conditions and try again.
MacPorts recently upgraded automake to 1.12 [1]. Inkscape's 'autogen.sh' script doesn't detect this version. The script instead falls back to the system version (automake 1.10 - if present at all, no longer provided with Xcode >= 4.3.x on Lion and Mountain Lion AFAIK). The system version of automake however lacks several required macros (only present in MacPorts' version), and the script fails:
I am testing that you have the required versions of autoconf,
automake, glib-gettextize and intltoolize. This test is not foolproof and
if anything goes wrong, there may be guidance in the file HACKING.txt
checking for autoconf >= 2.52 ... yes (version 2.69)
checking for automake >= 1.10 ... yes (version 1.10)
checking for glib-gettextize >= 2.0.0 ... yes (version 2.32.1)
checking for intltool >= 0.17 ... yes (version 0.50.2)
WARNING: aclocal's directory is /usr/bin/ ../share/ aclocal, but... ../share/ aclocal/ glib-2. 0.m4
environment variable to "-I /some/dir", or install
/usr/ bin/../ share/aclocal/ glib-2. 0.m4.
no file /usr/bin/
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS
WARNING: aclocal's directory is /usr/bin/ ../share/ aclocal, but... ../share/ aclocal/ glib-gettext. m4
environment variable to "-I /some/dir", or install
/usr/ bin/../ share/aclocal/ glib-gettext. m4.
no file /usr/bin/
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS
WARNING: aclocal's directory is /usr/bin/ ../share/ aclocal, but... ../share/ aclocal/ gtk-2.0. m4
environment variable to "-I /some/dir", or install
/usr/ bin/../ share/aclocal/ gtk-2.0. m4.
no file /usr/bin/
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS
WARNING: aclocal's directory is /usr/bin/ ../share/ aclocal, but... ../share/ aclocal/ intltool. m4
environment variable to "-I /some/dir", or install
/usr/ bin/../ share/aclocal/ intltool. m4.
no file /usr/bin/
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS
WARNING: aclocal's directory is /usr/bin/ ../share/ aclocal, but... ../share/ aclocal/ pkg.m4
environment variable to "-I /some/dir", or install
/usr/ bin/../ share/aclocal/ pkg.m4.
no file /usr/bin/
You may see fatal macro warnings below.
If these files are installed in /some/dir, set the ACLOCAL_FLAGS
Running aclocal-1.10 ... GNU_GETTEXT' not found in library bin/autom4te' failed with exit status: 63
configure.ac:181: warning: macro `AM_GLIB_
Running autoheader ...
aclocal.m4:14: error: this file was generated for autoconf 2.61.
You have another version of autoconf. If you want to use that,
you should regenerate the build system entirely.
aclocal.m4:14: the top level
autom4te: /opt/local/bin/gm4 failed with exit status: 63
autoheader: '/opt/local/
Please fix the error conditions and try again.
Attached patch works around the issue similar to the earlier fix for automake 1.11 in revision 9109: bazaar. launchpad. net/~inkscape. dev/inkscape/ trunk/revision/ 9109>
<http://
A better solution might be to modify/update 'autgen.sh' as proposed in the merge request to update the autotools (untested): /code.launchpad .net/~jjardon/ inkscape/ autotools/ +merge/ 77850> bazaar. launchpad. net/~jjardon/ inkscape/ autotools/ revision/ 10658>
<https:/
Revision 10658: "autogen.sh: Use autoreconf instead custom script"
<http://
--- lists.macosforg e.org/pipermail /macports- changes/ 2012-April/ 076121. html> /trac.macports. org/ticket/ 19880>
[1] <http://
[2] See also the ticket in MacPorts for automake 1.11:
<https:/