Blob Blame History Raw
@node ax_caolan_search_package
@unnumberedsec ax_caolan_search_package

@majorheading Synopsis

@smallexample
AX_caolan_SEARCH_PACKAGE(PACKAGE, FUNCTION, LIBRARY LIST, HEADERFILE [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
@end smallexample

@majorheading Description

Provides --with-PACKAGE, --with-PACKAGE-include and
--with-PACKAGE-libdir options to configure. Supports the now standard
--with-PACKAGE=DIR approach where the package's include dir and lib dir
are underneath DIR, but also allows the include and lib directories to
be specified separately

adds the extra -Ipath to CFLAGS if needed adds extra -Lpath to LD_FLAGS
if needed searches for the FUNCTION in each of the LIBRARY LIST with
AC_SEARCH_LIBRARY and thus adds the lib to LIBS

defines HAVE_PKG_PACKAGE if it is found, (where PACKAGE in the
HAVE_PKG_PACKAGE is replaced with the actual first parameter passed)
note that autoheader will complain of not having the HAVE_PKG_PACKAGE
and you will have to add it to acconfig.h manually

@majorheading Source Code

Download the
@uref{http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_caolan_search_package.m4,latest
version of @file{ax_caolan_search_package.m4}} or browse
@uref{http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=history;f=m4/ax_caolan_search_package.m4,the
macro's revision history}.

@majorheading License

@w{Copyright @copyright{} 2009 Caolan McNamara @email{caolan@@skynet.ie}} @* @w{Copyright @copyright{} 2009 Alexandre Duret-Lutz @email{adl@@gnu.org}} @* @w{Copyright @copyright{} 2009 Matthew Mueller @email{donut@@azstarnet.com}}

Copying and distribution of this file, with or without modification, are
permitted in any medium without royalty provided the copyright notice
and this notice are preserved. This file is offered as-is, without any
warranty.