I've just been doing a build test of the pre-3.3.6 version of
XFree86 on a recent FreeBSD 4.0-current, and I've noticed that
/usr/libexec/cpp doesn't predefine the symbol __FreeBSD__. imake
uses /usr/libexec/cpp. Is it intentional that /usr/libexec/cpp
not predefine any symbols like this? I've changed imake to use
/usr/bin/cpp instead, and it seems to work on 3.4 and 4.0. Should
this be OK on all FreeBSD versions?
--- imakemdep.h 1999/07/29 09:22:27 3.24.2.14
+++ xc/config/imake/imakemdep.h 2000/01/06 04:39:59
@@ -265,8 +265,11 @@
#ifdef _CRAY
#define DEFAULT_CPP "/lib/pcpp"
#endif
-#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) ||
defined(__FreeBSD__)
+#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#define DEFAULT_CPP "/usr/libexec/cpp"
+#endif
+#if defined(__FreeBSD__)
+#define DEFAULT_CPP "/usr/bin/cpp"
#endif
#if defined(__sgi) defined(__ANSI_CPP__)
#define USE_CC_E
David
--
David Dawes Email: [EMAIL PROTECTED]
Co-founder/President, The XFree86 Project, Inc Phone: +1 570 775 9502
http://www.xfree86.org/ Fax: +61 2 9897 3755
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message