Re: [Audacity-devel] Can't get autoconf to create working portsmf/configure
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: Richard A. <ri...@au...> - 2010-10-18 21:30:28
|
On Mon, 2010-10-18 at 12:30 -0400, Roger Dannenberg wrote: > I thought I would take a stab at setting up autoconf for portmidi in > Audacity, using portsmf as a template. As far as I can tell, portsmf > builds using configure from SVN, but configure is originally created by > autoconf. Correct > When I try running aclocal, autoconf, and configure, I get > warnings from both aclocal and autoconf: > configure.ac:31: warning: unexpected argument to AM_MAINTAINER_MODE: enabled What versions of autoconf and automake are you using? These look like errors from an old version of automake. Specifically, the AM_MAINTAINER_MODE macro only got it's (optional) argument in automake 1.10a (http://www.mail-archive.com/aut...@gn.../msg01208.html) so any older automake won't work. Shipping an updated maintainer.m4 might help, but I'm inclined to regard automake-1.10 as the minimum for building Audacity seeing as 1.11 is out. > and configure complains: > ./configure: line 4475: syntax error near unexpected token `CFLAGS' > ./configure: line 4475: `AX_CFLAGS_STRICT_PROTOTYPES(CFLAGS)' > I think this has been solved in the past by adding missing .m4 files to > autotools/m4/ or installing a new autoconf package. I tried both, and > autotools/m4/ax_cflags_strict_prototypes.m4 exists. Am I correct that you are currently trying just to rebuild portsmf's configure and haven't yet tried to do anything to portmidi? portsmf should find the copy of AX_CFLAGS_STRICT_PROTOTYPES declared in lib-src/portsmf/autotools/m4/ax_cflags_strict_prototypes.m4 because Makefile.am contains ACLOCAL_AMFLAGS = -I autotools/m4 which tells the aclocal run (which collects macros from all over the place and places them in lib-src/portsmf/aclocal.m4) to check in the given directory, i.e. lib-src/portsmf/autotools/m4/ > Any idea what's wrong? I'm using a PlanetCCRMA distribution of Fedora > 11. This makes me suspect that your version of aclocal (which is part of the automake package) is too old and at fault. I'm not quite sure why this would be, because Fedora 11 got an update to aclocal 1.11.1 (what I'm using) as a security fix before it reached end of support (you do know that fedora are ignoring anything before fedora 12 now that 13 is out and 14 nearly here?) > I started this to try to support EXPERIMENTAL_MIDI_OUT on Linux, so > if I'm just taking resources away from that eventual goal, feel free to > ignore this. It's not at the moment because I have more pressing autotools issues (the Ubuntu build issue in portaudio), which make anything that isn't on the beta/stable release path fairly low priority for me. Richard |