>>>>> "Mike" == Mike Perry <[EMAIL PROTECTED]> writes:

Mike> Also, I need to support OS's like Linux and Solaris, that put
Mike> their threaded functions in libpthread, and only require one
Mike> library to be built.

Mike> Any ideas? I've spent a good amount of time pouring over the
Mike> automake/autoconf docs looking for ways to rebuild the same set
Mike> of .c files with different CFLAGS (IE the threadsafe versions
Mike> need -pthread, and possibly my own internal -DBUILD_THREADSAFE),
Mike> but I couldn't find anything.

You can do this, but not with Automake 1.4.  You need the development
Automake.  Then you can write:

if BSD   ## a conditional you define in configure.in.
lib_LIBRARIES = libzardoz.a libzardoz_r.a
else
lib_LIBRARIES = libzardoz.a
endif

libzardoz_a_SOURCES = ...
libzardoz_r_a_SOURCES = ...
libzardoz_r_a_CFLAGS  = -pthread


Tom

Reply via email to