]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Never return -I/usr/include from --cflags. It's already in the default
authorRuss Allbery <rra@stanford.edu>
Mon, 12 Jun 2006 19:47:52 +0000 (19:47 +0000)
committerRuss Allbery <rra@stanford.edu>
Mon, 12 Jun 2006 19:47:52 +0000 (19:47 +0000)
compiler search path, causes gcc warnings, and can cause obscure failures
with gcc by including system headers before gcc's internal headers.

Ticket: 3011
Version_Reported: 1.4.2

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18116 dc483132-0cff-0310-8789-dd5450dbe970

src/krb5-config.in

index dc9baa465eb4383d9fbcdcec612e89897c350982..cf2be4947de9e0a2ddc9c163d98bf9494d4f922f 100755 (executable)
@@ -166,7 +166,11 @@ if test -n "$do_exec_prefix"; then
 fi
 
 if test -n "$do_cflags"; then
-    echo "-I${includedir}"
+    if test x"$includedir" != x"/usr/include" ; then
+        echo "-I${includedir}"
+    else
+        echo ''
+    fi
 fi