branch Attitude Adjustment packages
[12.09/packages.git] / net / dansguardian / patches / 001-include_dir.patch
1 --- a/configure
2 +++ b/configure
3 @@ -861,7 +861,7 @@ sysconfdir='${prefix}/etc'
4  sharedstatedir='${prefix}/com'
5  localstatedir='${prefix}/var'
6  includedir='${prefix}/include'
7 -oldincludedir='/usr/include'
8 +oldincludedir='${prefix}/usr/include'
9  docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
10  infodir='${datarootdir}/info'
11  htmldir='${docdir}'
12 @@ -6317,7 +6317,7 @@ $as_echo_n "checking for zlib... " >&6; 
13  # Check whether --with-zlib was given.
14  if test "${with_zlib+set}" = set; then
15    withval=$with_zlib;  # check for header & func (in library) in given prefix
16 -       CPPFLAGS="${CPPFLAGS} -I${withval}/include"
17 +       CPPFLAGS="${CPPFLAGS}"
18         if test "x$staticzlib" = "xtrue"; then
19                 LIBS="-Bstatic -L${withval} -lz -Bdynamic ${LIBS}"
20         else
21 @@ -10042,7 +10042,7 @@ _ACEOF
22  if test "${with_libiconv+set}" = set; then
23    withval=$with_libiconv;  # check for header & func (in library) in given prefix
24                         if test "x$withval" != "x"; then
25 -                               CPPFLAGS="${CPPFLAGS} -I${withval}/include"
26 +                               CPPFLAGS="${CPPFLAGS}"
27                                 LIBS="-L${withval}/lib -liconv ${LIBS}"
28                         else
29                                 LIBS="-liconv ${LIBS}"