[packages] rrdtool: extend host include fix to cover acinclude.m4 as well
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 25 Dec 2010 21:47:09 +0000 (21:47 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 25 Dec 2010 21:47:09 +0000 (21:47 +0000)
SVN-Revision: 24826

utils/rrdtool/patches/010-dont-add-host-include-paths.patch

index 3284877..507a0e9 100644 (file)
@@ -1,5 +1,3 @@
-diff --git a/configure b/configure
-index d3ab0a5..ba60d52 100755
 --- a/configure
 +++ b/configure
 @@ -26319,9 +26319,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
@@ -22,3 +20,15 @@ index d3ab0a5..ba60d52 100755
    { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
  echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
  if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -20,9 +20,6 @@ AC_DEFUN([EX_CHECK_ALL],
+  ex_check_save_LIBS=${LIBS}
+  ex_check_save_CPPFLAGS=${CPPFLAGS}
+  ex_check_save_LDFLAGS=${LDFLAGS}
+- if test "x$7" != "x"; then
+-   CPPFLAGS="$CPPFLAGS -I$7"
+- fi
+  dnl try compiling naked first
+  AC_CHECK_LIB($1,$2, [
+     AC_CHECK_HEADER($3,[LIBS="-l$1 ${LIBS}";EX_CHECK_STATE=YES],[])],[])