Le mercredi 13 mai 2009 à 20h45, « Bertrand Jacquin » racontait :

> --- configure.ac.ori  2009-02-10 05:35:21.000000000 +0100
> +++ configure.ac      2009-05-13 20:42:46.000000000 +0200
>  
>  # support for pcre
>  if test x"$testpcre" = x"yes"; then
> -     if pcre-config --cflags >/dev/null 2>&1; then
> -             CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
> -             LIBS="$LIBS `pcre-config --libs`"
> -     fi
> +     PKG_CHECK_MODULES(pcre, [libpcre])
> +     CFLAGS="$CFLAGS $pcre_CFLAGS"
> +     LIBS="$LIBS $pcre_LIBS"
> +

Wrong file, s/CFLAGS/CPPFLAGS/g. Correction attached. Sorry for noise.

Bertrand

-- 
Beber
--- configure.ac.ori	2009-02-10 05:35:21.000000000 +0100
+++ configure.ac	2009-05-13 20:53:20.000000000 +0200
@@ -43,6 +43,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
@@ -153,10 +154,10 @@
 
 # support for pcre
 if test x"$testpcre" = x"yes"; then
-	if pcre-config --cflags >/dev/null 2>&1; then
-		CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
-		LIBS="$LIBS `pcre-config --libs`"
-	fi
+	PKG_CHECK_MODULES(pcre, [libpcre])
+	CPPFLAGS="$CPPFLAGS $pcre_CFLAGS"
+	LIBS="$LIBS $pcre_LIBS"
+
 	AC_CHECK_LIB(pcre, pcre_exec)
 fi
 

Attachment: signature.asc
Description: Digital signature

Reply via email to