David Morgan <[EMAIL PROTECTED]> writes:

> I have seen this problem in 2.13 and cvs
> The macro AC_HEADER_DIRENT in acspecific.m4 has a call in it to

> AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")

> This is problematic on compilers which do not emit an error return code
> with missing libraries but instead happily link and complain when they
> can't find the library.  This gets really tiresome in a user's autoconf'd 
> compile where there are numerous messages about library not found and the
> compile completes successfully.

> I'd like the line to be:
> AC_CHECK_FUNCS(dir, break, AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir"))

Even better, it should be:

AC_SEARCH_LIBS(opendir, dir)

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

Reply via email to