[Packages] net/dansguardian: Fix compilation
[openwrt/svn-archive/archive.git] / net / dansguardian / patches / 001-include_dir.patch
1 Index: dansguardian-2.9.9.2/configure
2 ===================================================================
3 --- dansguardian-2.9.9.2.orig/configure 2008-02-27 17:52:06.000000000 +0100
4 +++ dansguardian-2.9.9.2/configure 2008-02-27 17:52:06.000000000 +0100
5 @@ -799,7 +799,7 @@
6 sharedstatedir='${prefix}/com'
7 localstatedir='${prefix}/var'
8 includedir='${prefix}/include'
9 -oldincludedir='/usr/include'
10 +oldincludedir='${prefix}/usr/include'
11 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
12 infodir='${datarootdir}/info'
13 htmldir='${docdir}'
14 @@ -6429,7 +6429,7 @@
15 # Check whether --with-zlib was given.
16 if test "${with_zlib+set}" = set; then
17 withval=$with_zlib; # check for header & func (in library) in given prefix
18 - CPPFLAGS="${CPPFLAGS} -I${withval}/include"
19 + CPPFLAGS="${CPPFLAGS}"
20 if test "x$staticzlib" = "xtrue"; then
21 LIBS="-Bstatic -L${withval} -lz -Bdynamic ${LIBS}"
22 else
23 @@ -9637,7 +9637,7 @@
24 PCRE_PREFIX=`pcre-config --prefix`
25
26 LIBS="${PCRE_LIBS} ${LIBS}"
27 - CPPFLAGS="${CPPFLAGS} -I${PCRE_PREFIX}/include"
28 + CPPFLAGS="${CPPFLAGS}"
29
30 { echo "$as_me:$LINENO: checking for REG_DOTALL in pcreposix.h" >&5
31 echo $ECHO_N "checking for REG_DOTALL in pcreposix.h... $ECHO_C" >&6; }
32 @@ -10076,7 +10076,7 @@
33 CLAMAV_PREFIX=`clamav-config --prefix`
34
35 LIBS="${CLAMAV_LIBS} -lclamav ${LIBS}"
36 - CPPFLAGS="${CPPFLAGS} -I${CLAMAV_PREFIX}/include"
37 + CPPFLAGS="${CPPFLAGS}"
38
39
40 cat >>confdefs.h <<\_ACEOF
41 @@ -10753,7 +10753,7 @@
42 if test "${with_libiconv+set}" = set; then
43 withval=$with_libiconv; # check for header & func (in library) in given prefix
44 if test "x$withval" != "x"; then
45 - CPPFLAGS="${CPPFLAGS} -I${withval}/include"
46 + CPPFLAGS="${CPPFLAGS}"
47 LIBS="-L${withval}/lib -liconv ${LIBS}"
48 else
49 LIBS="-liconv ${LIBS}"