From d3e25e7486e4b938f386f4957b71dba115c4aa23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Wed, 15 Jul 1998 13:18:26 -0700
Subject: [PATCH] added a fix to make sure that we do *NOT* add -I/usr/include
 to CFLAGS since this breaks #include_next in gcc.

Rev: src/configure.in:1.216
---
 src/configure.in | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index a2661ed44d..ae5330f742 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.215 1998/07/11 15:49:27 grubba Exp $")
+AC_REVISION("$Id: configure.in,v 1.216 1998/07/15 20:18:26 hubbe Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -411,12 +411,18 @@ if test $cppflags_is_set = no -a x${C_INCLUDE_PATH-} = x ; then
     `echo /usr/X11*/include | sort -r`
   do
     AC_MSG_CHECKING($d)
-    if test -d "$d/." ; then
-      AC_MSG_RESULT(added)
-      CPPFLAGS="${CPPFLAGS} -I$d"
-    else
-      AC_MSG_RESULT(no)
-    fi
+    case x$d in
+      x/usr/include | x/usr//include)
+      ;;
+      *)
+        if test -d "$d/." ; then
+          AC_MSG_RESULT(added)
+          CPPFLAGS="${CPPFLAGS} -I$d"
+        else
+          AC_MSG_RESULT(no)
+        fi
+      ;;
+    esac
   done
 else
   :
-- 
GitLab