cURL / Mailing Lists / curl-library / Single Mail

curl-library

buildconf patches for FreeBSD and other systems where GNU m4 is gm4

From: Fabian Keil <freebsd-listen_at_fabiankeil.de>
Date: Fri, 20 Aug 2010 17:28:44 +0200

Trying to run buildconf on FreeBSD 9.0-CURRENT with GNU m4
installed from ports, I get a confusing error message:

fk_at_r500 ~/git/curl $./buildconf
buildconf: autoconf version 2.62 (ok)
buildconf: autom4te version 2.62 (ok)
buildconf: autoheader version 2.62 (ok)
buildconf: automake version 1.10.1 (ok)
buildconf: aclocal version 1.10.1 (ok)
buildconf: libtool version 2.2.6 (ok)
buildconf: libtoolize found
buildconf: m4 version found. You need a GNU m4 installed!
fk_at_r500 ~/git/curl $

The first attached patch changes this to:

fk_at_r500 ~/git/curl $./buildconf
buildconf: autoconf version 2.62 (ok)
buildconf: autom4te version 2.62 (ok)
buildconf: autoheader version 2.62 (ok)
buildconf: automake version 1.10.1 (ok)
buildconf: aclocal version 1.10.1 (ok)
buildconf: libtool version 2.2.6 (ok)
buildconf: libtoolize found
buildconf: m4 version not recognized. You need a GNU m4 installed!
fk_at_r500 ~/git/curl $

Note that this still implies that some m4 version is available
so maybe it should simply say "no usable m4 version found ...".

With the second patch, GNU m4 is properly picked up:

fk_at_r500 ~/git/curl $./buildconf
buildconf: autoconf version 2.62 (ok)
buildconf: autom4te version 2.62 (ok)
buildconf: autoheader version 2.62 (ok)
buildconf: automake version 1.10.1 (ok)
buildconf: aclocal version 1.10.1 (ok)
buildconf: libtool version 2.2.6 (ok)
buildconf: libtoolize found
buildconf: GNU m4 version 1.4.14 (ok)
buildconf: running libtoolize
buildconf: running aclocal
/usr/local/share/aclocal/smpeg.m4:13: warning: underquoted definition of AM_PATH_SMPEG
/usr/local/share/aclocal/smpeg.m4:13: run info '(automake)Extending aclocal'
/usr/local/share/aclocal/smpeg.m4:13: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
buildconf: running aclocal hack to convert all mv to mv -f
buildconf: running autoheader
buildconf: cp lib/curl_config.h.in src/curl_config.h.in
buildconf: running autoconf
buildconf: running automake
Useless use of /d modifier in transliteration operator at /usr/local/share/automake-1.10/Automake/Wrap.pm line 60.
configure.ac:169: installing `./config.guess'
configure.ac:169: installing `./config.sub'
docs/examples/Makefile.am: installing `./depcomp'
buildconf: OK
fk_at_r500 ~/git/curl $

The third patch is purely cosmetical and could be viewed
either as an improvement or an obfuscation.

Even without the patch it is, of course, possible to simply
run "M4=gm4 ./buildconf", but this isn't exactly obvious and
not mentioned in GIT-INFO either.

Fabian

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-08-20