I use the following in configure.in:
AC_CHECK_LIB(popt, poptGetContext, [AC_CHECK_HEADER(popt.h,,)],
AC_MSG_ERROR([popt library is required.]))This works fine with Linux and Solaris, but FreeBSD is unable to find the header or library (they are installed in /usr/local/...). I've tried several variations of the above including checking for the header separately. Does AC_CHECK_LIB/HEADER() not search /usr/local on FreeBSD? Any help would be greatly appreciated. -Brad
