On Tue, Aug 23, 2005 at 03:36:57PM +0100, Simon Morgan wrote:
> On 8/23/05, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote:
> > Trying -lpthread, if not available, trying -lkse?
>
> That sounds like a better idea than simply checking the
> OS version but unfortunately I have no idea how to implement
> such a test. Any suggestions?
I do it like follows, but want to do better if anyone knows a better
way. Basically, it's just sh scripting:
AC_CHECK_LIB(lib1, func, [LDFLAGS=-llib1], [])
if [ -z "$LDFLAGS" ]; then
AC_CHECK_LIB(lib2, func, [LDFLAGS=-llib2], [
echo "$0: Need lib1 or lib2" >&2
exit 2
])
fi
I've tried to simplify my actual configure.ac, so this might not work
OOTB.
With kind regards,
Baurzhan.
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf