--- David O'Brien <[EMAIL PROTECTED]> wrote:
> 
> *sigh*, why not a *real* fix?
> 
> --- configure.in.orig Thu Sep 27 01:03:56 2001
> +++ configure.in      Mon Apr 29 13:20:27 2002
> @@ -200,7 +200,9 @@
>       done
>       if test "$ac_found_openssl_lib_dir" != "no";
then
>               echo "found in
$ac_found_openssl_lib_dir"
> -             INCLUDES="-I$ac_found_openssl_inc_dir
$INCLUDES"
> +             if test "$ac_found_openssl_inc_dir" !=
> "/usr/include"; then
> +              
INCLUDES="-I$ac_found_openssl_inc_dir
> $INCLUDES"
> +             fi
>               DEFINES="-DOPENSSL $DEFINES"
>       else
>               echo "not found."
> 
> 
> You'll note that they bother with this kind of check
> for other headers,
> but for some reason didn't consider it for openssl
> headers.
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of
> the message

Hi David,

Which version of postgresql that you are using? I have
cvsupped the postgresql7 ports and didn't find what
you referred here. However, I didn't manage to patch
"configure" not to include "/usr/include" based on
your advice. Here's the patch if anyone is interested.

Thanks


--- configure.orig      Mon Mar 18 23:04:09 2002
+++ configure   Mon Jun 10 18:06:57 2002
@@ -1697,7 +1697,9 @@
 # SRCH_INC comes from the template file
 for dir in $with_includes $SRCH_INC; do
   if test -d "$dir"; then
-    INCLUDES="$INCLUDES -I$dir"
+    if test "$dir" != "/usr/include"; then
+      INCLUDES="$INCLUDES -I$dir"
+    fi
   else
     echo "configure: warning: *** Include directory
$dir does not exist." 1>&2
   fi
@@ -2008,7 +2010,9 @@
 
 
   if test -d "$krb4_prefix/include"; then
-    INCLUDES="$INCLUDES -I$krb4_prefix/include"
+    if test "$krb4_prefix/include" != "/usr/include";
then
+      INCLUDES="$INCLUDES -I$krb4_prefix/include"
+    fi
   fi
   if test -d "$krb4_prefix/lib"; then
     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
@@ -2053,7 +2057,9 @@
 
 
   if test -d "$krb5_prefix/include"; then
-    INCLUDES="$INCLUDES -I$krb5_prefix/include"
+    if test "$krb5_prefix/include" != "/usr/include";
then
+      INCLUDES="$INCLUDES -I$krb5_prefix/include"
+    fi
   fi
   if test -d "$krb5_prefix/lib"; then
     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
@@ -2158,7 +2164,9 @@
 
 
   if test -d "${openssl_prefix}/include" ; then
-    INCLUDES="$INCLUDES -I${openssl_prefix}/include"
+    if test "${openssl_prefix}/include" !=
"/usr/include"; then
+      INCLUDES="$INCLUDES
-I${openssl_prefix}/include"
+    fi
   fi
   if test -d "${openssl_prefix}/lib" ; then
     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to