[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -ldir added when not needed
From: |
Russ Allbery |
Subject: |
Re: -ldir added when not needed |
Date: |
25 Oct 2000 17:33:30 -0700 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
David Morgan <address@hidden> 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 (address@hidden) <http://www.eyrie.org/~eagle/>