[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Bug detecting X headers in autoconf 2.59

From: Andrew Church
Subject: [PATCH] Bug detecting X headers in autoconf 2.59
Date: Tue, 06 Apr 2004 14:18:57 JST

     When checking for the location of X11 headers in autoconf 2.59, if
xmkmf returns an include path of "/usr/include", ac_x_includes is left
unchanged; since this variable is initialized to "no", the subsequent code
erroneously concludes that X is not present.  Patch follows.

  --Andrew Church


--- lib/autoconf/libs.m4.old    2003-05-22 21:05:13 +0900
+++ lib/autoconf/libs.m4        2004-04-06 12:18:47 +0900
@@ -202,7 +202,7 @@
     # bogus both because they are the default anyway, and because
     # using them would break gcc on systems where it needs fixed includes.
     case $ac_im_incroot in
-       /usr/include) ;;
+       /usr/include) ac_x_includes="" ;;
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     case $ac_im_usrlibdir in

reply via email to

[Prev in Thread] Current Thread [Next in Thread]