summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2005-08-15 19:53:37 +0000
committerAlan Coopersmith <alan.coopersmith@sun.com>2005-08-15 19:53:37 +0000
commit83406d69c62070d2eeef23eb47f1ca887f711ee5 (patch)
tree7751b63b018d9afe5ea05d6795d9ef37d75521a4
parent5bb43de17de8e71d967488a713bf2b3448533444 (diff)
Move RAWCPP macro to xorg-macros.m4 so other modules can use it Add check for whether or not RAWCPP needs -traditional instead of hardcoding it, so non-gcc cpp's can be used
-rw-r--r--configure.ac5
-rw-r--r--cpprules.in2
2 files changed, 2 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 4123283..0bfa732 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,9 +17,8 @@ AC_CONFIG_HEADER([include/X11/XlibConf.h])
# Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CC
-AC_PROG_CPP
-AC_PATH_PROGS(RAWCPP, [cpp], [$(CPP)],
- [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
+
+XORG_PROG_RAWCPP
# Checks for pkg-config packages
PKG_CHECK_MODULES(BIGREQS, bigreqsproto)
diff --git a/cpprules.in b/cpprules.in
index 36bfc36..12964fa 100644
--- a/cpprules.in
+++ b/cpprules.in
@@ -10,8 +10,6 @@ WCHAR32_FLAGS = -DWCHAR32=@WCHAR32@
CPP_FILES_FLAGS = $(WCHAR32_FLAGS)
-RAWCPPFLAGS = -traditional
-
# Translate XCOMM into pound sign with sed, rather than passing -DXCOMM=XCOMM
# to cpp, because that trick does not work on all ANSI C preprocessors.
# Delete line numbers from the cpp output (-P is not portable, I guess).