how to include m4 macros stored in m4 folder of port's sources?

Scot Hetzel swhetzel at gmail.com
Sat May 25 06:00:19 UTC 2013


On Fri, May 24, 2013 at 1:51 PM, O. Hartmann
<ohartman at zedat.fu-berlin.de> wrote:
> The sources of of port provide their own m4 macros (i.e. AX_PTHREAD,
> AX_BOOST) store in ax_boost.m4 in m4 of the toplevel dir of the sources.
>
> I have to issue USE_AUTOTOOLS= aclocal autoheader libtoolize libtool
> autoconf automake to create the proper configure file.
>
> The configure file fails with an error of a missing macro, in particular
> AX_BOOST([]) which is present in the m4 folder and as far as I know, it
> should be addressed with libtool.
>
> I can not find any useful information within the porter's handbook about
> this very common case of having pristine autotool environments and how
> to handle them.
>
> My question in specific is: what is the tag/sequence in the toplevel
> Makefile to endure that macros stored in the m4-folder of the sources
> are loaded automatically? When issuing the
> aclocal-autoheader-libtoolize-autoconf-automake chain in the source
> folder, everything works fine except the fact that the FreeBSD specific
> environment variables are not set.
>
> Please CC me, I do not subscribe this list.
>
> Regards and thanks in advance,
> Oliver

Have a look at Mk/bsd.autotools.mk for the variables that you can define:

http://svnweb.freebsd.org/ports/head/Mk/bsd.autotools.mk

-- 
DISCLAIMER:

No electrons were maimed while sending this message. Only slightly bruised.


More information about the freebsd-ports mailing list