> * Bruno Haible <[EMAIL PROTECTED]> [2005-08-11 16:46:35 +0200]:
>
>> > +  AC_CHECK_LIB(readline, readline)
>
> Can you please use AC_LIB_LINKFLAGS (from lib-link.m4) instead? So
> that the library is recognized (and the -rpath linker option is used)
> when it is installed in the $PREFIX directory but not in /usr/lib ?

DIUC that the correct order is this:

AC_LIB_LINKFLAGS
AC_CHECK_HEADERS
AC_SEARCH_LIBS

e.g.

AC_LIB_LINKFLAGS([z])
AC_CHECK_HEADERS(zlib.h)
if test "$ac_cv_header_zlib_h" = "no" ;
then AC_MSG_ERROR([cannot find ZLIB headers])
fi
AC_SEARCH_LIBS(compress2, z)
if test "$ac_cv_search_compress2" = "no"; then
  AC_MSG_ERROR([cannot find ZLIB library])
fi


(one can have AC_CHECK_HEADERS and AC_SEARCH_LIBS in any order)


-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://ffii.org/> <http://www.dhimmi.com/>
<http://pmw.org.il/> <http://www.iris.org.il> <http://www.camera.org>
Good programmers treat Microsoft products as damage and route around it.



_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to