The configure script includes /usr/include in CFLAGS in Makefile when
compiled with ssl. This causes gcc to issue warning message:
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
The following patch should avoid adding /usr/include in CFLAGS:
===========================================================================
Index: fetchmail/configure.in
===================================================================
RCS file: /usr/local/cvsroot/fetchmail/configure.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 configure.in
--- fetchmail/configure.in 21 May 2003 06:54:04 -0000 1.1.1.1
+++ fetchmail/configure.in 21 May 2003 12:37:53 -0000
@@ -601,7 +601,7 @@
then
### ssl.h found under openssl. Use openssl configuration
preferentially
echo "Enabling OpenSSL support in $with_ssl"
- CEFLAGS="$CEFLAGS -I$with_ssl/include -I$with_ssl/include/openssl"
+ CEFLAGS="$CEFLAGS -I$with_ssl/include/openssl"
### OpenBSD comes with ssl headers
elif test -r /usr/include/ssl/ssl.h
then
@@ -609,7 +609,7 @@
CEFLAGS="$CEFLAGS -I/usr/include/ssl"
else
echo "Enabling SSLeay support in $with_ssl"
- CEFLAGS="$CEFLAGS -I$with_ssl/include"
+ test "$with_ssl" != "/usr" && CEFLAGS="$CEFLAGS -I$with_ssl/include"
fi
LDEFLAGS="$LDEFLAGS -L$with_ssl/lib"
LIBS="$LIBS -lssl -lcrypto"
@@ -668,7 +668,8 @@
do
if test -f "$dir/include/hesiod.h"
then
- test "$dir" != "/usr" && CEFLAGS="$CEFLAGS -DHESIOD -I$dir/include"
+ CEFLAGS="$CEFLAGS -DHESIOD"
+ test "$dir" != "/usr" && CEFLAGS="$CEFLAGS -I$dir/include"
LDEFLAGS="$LDEFLAGS -L$dir/lib"
LIBS="$LIBS -lhesiod"
with_hesiod=$dir
@@ -678,7 +679,8 @@
;;
*)
# Path given
- CEFLAGS="$CEFLAGS -DHESIOD -I$with_hesiod/include"
+ CEFLAGS="$CEFLAGS -DHESIOD"
+ test "$with_hesiod" != "/usr" && CEFLAGS="$CEFLAGS -I$with_hesiod/include"
LDEFLAGS="$LDEFLAGS -L$with_hesiod/lib"
LIBS="$LIBS -lhesiod"
;;
===========================================================================
The configure script will have to be regenerated after this.
--
Sunil Shetye.