Next: , Previous: , Up: The Macros  


ax_caolan_search_package

Synopsis

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

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 seperately

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

Source Code

Download the latest version of ax_caolan_search_package.m4 or browse the macro’s revision history.

License

Copyright © 2009 Caolan McNamara caolan@skynet.ie
Copyright © 2009 Alexandre Duret-Lutz adl@gnu.org
Copyright © 2009 Matthew Mueller 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.