summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-11-10 04:25:39 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-11-10 04:25:39 +0000
commit277975ec73744657e556a0c6380614d8684db7df (patch)
tree465503c121858ce59f6aaf1aa6331d4462d7245e
parent6e7bcf4f2ea8bb868ed8b0459f1c0d6cc172f4ae (diff)
Add settings for SHELL_CMD & ARCHMANDEFS to match monolith changes for bugXORG-6_99_99_902
#3180. AC_DEFINE(XORG,...) so it is listed as available server in xinit help output. Update cpp -D flags to match monolith changes for bug #3180.
-rw-r--r--ChangeLog12
-rw-r--r--Makefile.am11
-rw-r--r--configure.ac18
3 files changed, 38 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c91d2be..8be9baf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2005-11-09 Alan Coopersmith <alan.coopersmith@sun.com>
+
+ * configure.ac:
+ Add settings for SHELL_CMD & ARCHMANDEFS to match monolith
+ changes for bug #3180.
+
+ AC_DEFINE(XORG,...) so it is listed as available server in xinit
+ help output.
+
+ * Makefile.am:
+ Update cpp -D flags to match monolith changes for bug #3180.
+
2005-11-09 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
diff --git a/Makefile.am b/Makefile.am
index 132a2c8..26f0c0b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -63,7 +63,8 @@ MANDEFS = \
-D__libmansuffix__=$(LIB_MAN_SUFFIX) \
-D__miscmansuffix__=$(MISC_MAN_SUFFIX) \
-D__XSERVERNAME__=Xorg -D__XCONFIGFILE__=xorg.conf \
- -D__xinitdir__=$(XINITDIR)
+ -D__xinitdir__=$(XINITDIR) \
+ -DSHELL_CMD=$(SHELL_CMD) $(ARCHMANDEFS)
SUFFIXES = .$(APP_MAN_SUFFIX) .man
@@ -72,11 +73,15 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man
xinitrcdir = $(XINITDIR)
+SCRIPTDEFS = \
+ -DXINITDIR=$(XINITDIR) -DBINDIR=$(bindir) -DLIBDIR=$(libdir) \
+ -DSHELL_CMD=$(SHELL_CMD) $(STARTX_COOKIE_FLAGS)
+
xinitrc: xinitrc.cpp
- $(RAWCPP) -DXINITDIR=$(XINITDIR) < $(srcdir)/xinitrc.cpp | $(CPP_SED_MAGIC) > $@
+ $(RAWCPP) $(SCRIPTDEFS) < $(srcdir)/xinitrc.cpp | $(CPP_SED_MAGIC) > $@
startx: startx.cpp Makefile
- $(RAWCPP) -DXINITDIR=$(XINITDIR) -DBINDIR=$(bindir) $(STARTX_COOKIE_FLAGS) $(srcdir)/startx.cpp | $(CPP_SED_MAGIC) > $@
+ $(RAWCPP) $(SCRIPTDEFS) < $(srcdir)/startx.cpp | $(CPP_SED_MAGIC) > $@
xinitrc_DATA = xinitrc
diff --git a/configure.ac b/configure.ac
index 9896bf1..e89500b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,6 +56,24 @@ if test x$MCOOKIE != x ; then
fi
AC_SUBST(STARTX_COOKIE_FLAGS)
+# Additional substitutions in xinitrc & man pages
+case $host_os in
+ *sco*)
+ SHELL_CMD="/bin/ksh"
+ ARCHMANDEFS="-D__SCOMAN__"
+ ;;
+ *)
+ SHELL_CMD="/bin/sh"
+ ARCHMANDEFS=""
+ ;;
+esac
+AC_SUBST(SHELL_CMD)
+AC_SUBST(ARCHMANDEFS)
+
+# Defines which X servers are listed in help output in xinit.c
+# Cheat, lie, and assume all the world is Xorg for now
+AC_DEFINE(XORG, 1, [Define if you have Xorg X server])
+
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION