> -----Original Message----- > From: autoconf-bounces+guus-leeuw=gmx.de@xxxxxxx [mailto:autoconf- > bounces+guus-leeuw=gmx.de@xxxxxxx] On Behalf Of Robert Lowe > Sent: vendredi 3 décembre 2004 00:31 > To: autoconf@xxxxxxx > Subject: A newbie asks... > > 1. POSIX threads > Is this solved as easily as adding the acx_pthread macro in > aclocal.m4, then > calling it in configure.ac and using the defined variables to properly > set > my foo_CFLAGS, foo_LIBS (or do I use LDADD?), etc., in my Makefile.am? Yes it is ;) > 2. A header file which seems to be in different places on some platforms > (net/ethernet.h, sys/ethernet.h, and perhaps others). What am I > supposed to > construct to define something that will help me include the correct > header > file? AC_CHECK_HEADERS([some.h other.h]) Will generate #define HAVE_SOME_H and #define HAVE_OTHER_H if the headers were found. Then in your code, you can do fancy stuff with the pre-processor based on these #defines. Also, there is quite a couple of predefined checks for special headers/functions that you might to check out, e.g. AC_FUNC_SELECT_ARGTYPES Regards, Guus --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004 _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf