On 24/05/2007, at 2:00 AM, Martin-Gilles Lavoie wrote:
To resume the problem, I need to build a Universal Binary (aka, PPC + i386) library of BerkeleyDB. Now, normally, this is a simple task but it seems Autoconfig is working against me. At the strict minimum, I need to have the following flags set in the generated makefile: CFLAGS= -c $(CPPFLAGS) -O3 -isysroot /Developer/SDKs/ MacOSX10.4u.sdk -arch i386 -arch ppc LDFLAGS= -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk The problem is, whatever I set for LDFLAGS or CFLAGS in the .ac file passed to autoconf, the output Makefile is invariably stripped down to an empty LDFLAGS declaration and a CFLAGS devoid of the -isysroot and -arch parameters.
I suspect this is a libtool (http://www.gnu.org/software/libtool/ libtool.html) issue. In your sources, you have version 1.5.22 which dates from 2005 (before the release of Intel Macs). There has been a lot of work done on libtool since then to handle multiple archs.
If I were you, I would first try the 1.5.23b development version. If that does not work for you, try the libtool list.
Cheers Bill Northcott _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf