1*4882a593SmuzhiyunFrom 11d30916dd9c11a26c7c8a0f6db9e6ebca301594 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Samuel Martin <s.martin49@gmail.com>
3*4882a593SmuzhiyunDate: Mon, 18 Jan 2016 21:45:23 +0100
4*4882a593SmuzhiyunSubject: [PATCH] configure.ac: make sure m4 macros are included in the build
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThis change prevents the following error to occur when calling
7*4882a593Smuzhiyunautoreconf:
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun  >>> scrub 2.6.1 Autoreconfiguring
10*4882a593Smuzhiyun  cd /work/build/scrub/build/scrub-2.6.1/ &&  PATH="/work/build/scrub/host/bin:/work/build/scrub/host/sbin:/work/build/scrub/host/usr/bin:/work/build/scrub/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/sbin:/usr/sbin" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/work/build/scrub/host/usr/include" CFLAGS="-O2 -I/work/build/scrub/host/usr/include" CXXFLAGS="-O2 -I/work/build/scrub/host/usr/include" LDFLAGS="-L/work/build/scrub/host/lib -L/work/build/scrub/host/usr/lib -Wl,-rpath,/work/build/scrub/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/work/build/scrub/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/work/build/scrub/host/usr/lib/pkgconfig:/work/build/scrub/host/usr/share/pkgconfig" INTLTOOL_PERL=/usr/bin/perl ACLOCAL="/work/build/scrub/host/usr/bin/aclocal -I /work/build/scrub/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/share/aclocal" AUTOCONF="/work/build/scrub/host/usr/bin/autoconf" AUTOHEADER="/work/build/scrub/host/usr/bin/autoheader" AUTOMAKE="/work/build/scrub/host/usr/bin/automake" AUTOPOINT=/bin/true /work/build/scrub/host/usr/bin/autoreconf -f -i -I "/work/build/scrub/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/share/aclocal" -I "/work/build/scrub/host/usr/share/aclocal"
11*4882a593Smuzhiyun  libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
12*4882a593Smuzhiyun  libtoolize: copying file 'config/ltmain.sh'
13*4882a593Smuzhiyun  libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
14*4882a593Smuzhiyun  libtoolize: and rerunning libtoolize and aclocal.
15*4882a593Smuzhiyun  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
16*4882a593Smuzhiyun  configure.ac:10: error possibly undefined macro: X_AC_META
17*4882a593Smuzhiyun        If this token and others are legitimate, please use m4_pattern_allow.
18*4882a593Smuzhiyun        See the Autoconf documentation.
19*4882a593Smuzhiyun  configure.ac:11: error possibly undefined macro: X_AC_EXPAND_INSTALL_DIRS
20*4882a593Smuzhiyun  configure.ac:51: error possibly undefined macro: AC_PKGCONFIG
21*4882a593Smuzhiyun  configure.ac:70: error possibly undefined macro: X_AC_CHECK_PTHREADS
22*4882a593Smuzhiyun  autoreconf: /work/build/scrub/host/usr/bin/autoconf failed with exit status: 1
23*4882a593Smuzhiyun  package/pkg-generic.mk:185: recipe for target '/work/build/scrub/build/scrub-2.6.1/.stamp_configured' failed
24*4882a593Smuzhiyun  make: *** [/work/build/scrub/build/scrub-2.6.1/.stamp_configured] Error 1
25*4882a593Smuzhiyun  make: Leaving directory '/work/repos/buildroot'
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunSigned-off-by: Samuel Martin <s.martin49@gmail.com>
28*4882a593Smuzhiyun[Upstream commit: https://github.com/chaos/scrub/commit/11d30916dd9c11a26c7c8a0f6db9e6ebca301594]
29*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30*4882a593Smuzhiyun---
31*4882a593Smuzhiyun configure.ac | 1 +
32*4882a593Smuzhiyun 1 file changed, 1 insertion(+)
33*4882a593Smuzhiyun
34*4882a593Smuzhiyundiff --git a/configure.ac b/configure.ac
35*4882a593Smuzhiyunindex 3d71289..07eaf33 100644
36*4882a593Smuzhiyun--- a/configure.ac
37*4882a593Smuzhiyun+++ b/configure.ac
38*4882a593Smuzhiyun@@ -7,6 +7,7 @@ AC_INIT(m4_esyscmd([awk '/Name:/ {printf "%s",$2; exit}' META]),
39*4882a593Smuzhiyun AC_CONFIG_AUX_DIR([config])
40*4882a593Smuzhiyun AC_CONFIG_SRCDIR([NEWS])
41*4882a593Smuzhiyun AC_CANONICAL_SYSTEM
42*4882a593Smuzhiyun+AC_CONFIG_MACRO_DIR([config])
43*4882a593Smuzhiyun X_AC_META
44*4882a593Smuzhiyun X_AC_EXPAND_INSTALL_DIRS
45*4882a593Smuzhiyun
46