check for pcre lib and set PCRE_LIBS and PCRE_CFLAGS accordingly.
also provide –with-pcre option that may point to the $prefix of the pcre installation - the macro will check $pcre/include and $pcre/lib to contain the necessary files.
the usual two ACTION-IF-FOUND / ACTION-IF-NOT-FOUND are supported and they can take advantage of the LIBS/CFLAGS additions.
Download the latest version of ax_path_lib_pcre.m4 or browse the macro’s revision history.
Copyright © 2008 Guido U. Draheim firstname.lastname@example.org
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.