--- configure.in.ori 2002-03-26 16:48:16.000000000 +0100 +++ configure.in 2009-05-13 20:36:31.000000000 +0200 @@ -27,6 +27,7 @@ AC_PROG_CC AC_PROG_INSTALL AC_PROG_RANLIB +PKG_PROG_PKG_CONFIG dnl Checks for typedefs, structures, and compiler characteristics. AC_SYS_LARGEFILE @@ -134,10 +135,10 @@ # support for pcre if test x"$testpcre" = x"yes"; then - if pcre-config --cflags >/dev/null 2>&1; then - CFLAGS="$CFLAGS `pcre-config --cflags`" - LIBS="$LIBS `pcre-config --libs`" - fi + PKG_CHECK_MODULES(pcre, [libpcre]) + CFLAGS="$CFLAGS $pcre_CFLAGS" + LIBS="$LIBS $pcre_LIBS" + AC_CHECK_LIB(pcre, pcre_exec) fi