summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac3
2 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 50903dd..414b166 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -37,10 +37,10 @@ dist_man_MANS = \
xinitrcdir = $(XINITDIR)
xinitrc: xinitrc.cpp
- $(SED) s/XINITDIR/`echo $(XINITDIR) | sed -e s/\\\\//\\\\\\\\\\\\\//g`/ < $< | $(SED) s/XCOMM/\#/ > $@
+ $(SED) s/XINITDIR/`echo $(XINITDIR) | sed -e s/\\\\//\\\\\\\\\\\\\//g`/ < $(srcdir)/xinitrc.cpp | $(SED) s/XCOMM/\#/ > $@
startx: startx.cpp Makefile
- $(CPP) -DXINITDIR=$(XINITDIR) -DBINDIR=$(bindir) $< | $(SED) -e /^\#/d | $(SED) -e s/XCOMM/\#/ > $@
+ $(RAWCPP) -DXINITDIR=$(XINITDIR) -DBINDIR=$(bindir) $(srcdir)/startx.cpp | $(SED) -e /^\#/d | $(SED) -e s/XCOMM/\#/ > $@
xinitrc_DATA = xinitrc
diff --git a/configure.ac b/configure.ac
index 2652ecf..005654a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,9 @@ AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
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])
AC_PROG_INSTALL
AC_PATH_PROG(SED,sed)