diff options
author | Matthieu Herrb <matthieu@bluenote.herrb.com> | 2007-09-15 18:11:58 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@bluenote.herrb.com> | 2007-09-15 18:11:58 +0200 |
commit | 2e2dc15ddecd3bd13b3663df9db019d921194a4f (patch) | |
tree | 2131bed23c2241ff4ef013f3e2df3a25bfe01801 /configure.ac | |
parent | 68a4fd15b81f8931bdf5f87fc0b56b1f975d1c04 (diff) |
Add configure options to specify the default window manager and applications
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1aee1d2..a67d912 100644 --- a/configure.ac +++ b/configure.ac @@ -51,6 +51,8 @@ DEFAULT_XTERM=xterm DEFAULT_XSERVER=${bindir}/X DEFAULT_XAUTH=xauth DEFAULT_XINIT=xinit +DEFAULT_WM=fvwm +DEFAULT_XCONSOLE=xconsole AC_ARG_WITH(xrdb, AS_HELP_STRING([--with-xrdb=XRDB], [Path to xrdb]), @@ -92,6 +94,16 @@ AC_ARG_WITH(xinit, [XINIT="$withval"], [XINIT="$DEFAULT_XINIT"]) +AC_ARG_WITH(wm, + AS_HELP_STRING([--with-wm=WM], [Path to default window manager]), + [WM="$withval"], + [WM="$DEFAULT_WM"]) + +AC_ARG_WITH(xconsole, + AS_HELP_STRING([--with-xconsole=XCONSOLE], [Path to xconsole]), + [XCONSOLE="$withval"], + [XCONSOLE="$DEFAULT_XCONSOLE"]) + # Checks for pkg-config packages PKG_CHECK_MODULES(XINIT, x11) @@ -106,6 +118,13 @@ AC_SUBST(XINIT_LIBS) AC_PATH_PROGS(MCOOKIE, [mcookie], [$MCOOKIE], [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin]) + +case $host_os in + *openbsd*) + MCOOKIE='dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\\"%08x\\\"' + ;; +esac + if test "x$MCOOKIE" != x ; then STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"' fi @@ -133,6 +152,8 @@ AC_SUBST(XTERM) AC_SUBST(XSERVER) AC_SUBST(XAUTH) AC_SUBST(XINIT) +AC_SUBST(WM) +AC_SUBST(XCONSOLE) # Defines which X servers are listed in help output in xinit.c # Cheat, lie, and assume all the world is Xorg for now |