Error message: sh ./autogen.sh Preparing package directory /home/mrmedia/Downloads/mousepad-git/src/mousepad... Running glib-gettextize --force --copy... Copying file mkinstalldirs Copying file po/Makefile.in.in Please add the files codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 from the /usr/share/aclocal directory to your autoconf macro directory or directly to your aclocal.m4 file. You will also need config.guess and config.sub, which you can get from ftp://ftp.gnu.org/pub/gnu/config/. Running intltoolize --automake --copy --force Patching file 'po/Makefile.in.in' Running libtoolize --force --copy... libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: You should add the contents of the following files to `aclocal.m4': libtoolize: `/usr/share/aclocal/libtool.m4' libtoolize: `/usr/share/aclocal/ltoptions.m4' libtoolize: `/usr/share/aclocal/ltversion.m4' libtoolize: `/usr/share/aclocal/ltsugar.m4' libtoolize: `/usr/share/aclocal/lt~obsolete.m4' libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. Running aclocal -I /usr/share/xfce4/dev-tools/m4macros -I /usr/share/xfce4/dev-tools/m4macros... configure.ac:36: error: 'AM_CONFIG_HEADER': this macro is obsolete. You should use the 'AC_CONFIG_HEADERS' macro instead. /usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from... configure.ac:36: the top level autom4te: /usr/bin/m4 failed with exit status: 1 aclocal: error: echo failed with exit status: 1 I'm the ARCH AUR maintainer of the git version and all dependencies are updated. Versions: automake 1.13.1-1 xfce4-dev-tools 4.10.0-1 gettext 0.18.2.1-1 gtksourceview2 2.10.5-2 gcc 4.7.2-4 I'm on 32-bit fully updated ARCH. Please advise if more info is needed.
Seems to relate to automake version. Adding ; sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.ac.in to the ARCH build script fixes it.
Strange, here I can build from git smoothly. I'm also running an fully updated Arch setup, but 64-bit. My versions are: automake 1.14-1 xfce4-dev-tools 4.10.0-1 gettext 0.18.3.1-1 gtksourceview2 2.10.5-2 gcc 4.8.1-3 I ran makepkg with your PKGBUILD with and without the sed patch, no problems occurred. Does the error still happens without the sed patch?
Created attachment 5472 Fix configure.ac.in As noted by the bug's author, this bug is not affecting the build anymore[1]. The macro AM_CONFIG_HEADER is marked as deprecated for ages, but in automake 1.12 it started to throw errors instead of warnings. In version 1.13, they changed their minds and the macro is again just throwing warnings again[2]. The attached patch fixes the configure.ac.in to use the correct macro. [1] https://aur.archlinux.org/packages/mousepad-git/ [2] http://git.savannah.gnu.org/cgit/automake.git/tree/NEWS?id=v1.13.2#n128
Fixed in http://git.xfce.org/apps/mousepad/commit/?id=a34472e50d5e05b59a8e7b46187d6aaaaa1820c6.