bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect usage of GNU libc.


From: Paul Jarc
Subject: Re: Detect usage of GNU libc.
Date: Fri, 16 Jan 2004 11:42:19 -0500
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Johan Rydberg <address@hidden> wrote:
> The reason for all this is that I want to be able to use the endian
> swap functions in byteswap.h, whenever they are available.

Testing for glibc specifically, by whatever means, is not the right
way to go about this.  Instead, try to compile and link (but not run,
if you care about cross-compiling) a test program that uses those
functions.  If that succeeds, then let your main program use them too.
autoconf can help with tests like this.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]