AX_caolan_CHECK_PACKAGE(PACKAGE, FUNCTION, LIBRARY , HEADERFILE [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
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 the LIBRARY with AC_CHECK_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
Download the latest version of ax_caolan_check_package.m4 or browse the macro’s revision history.
Copyright © 2008 Caolan McNamara email@example.com
Copyright © 2008 Alexandre Duret-Lutz firstname.lastname@example.org
Copyright © 2008 Matthew Mueller email@example.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.