summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-11 01:09:43 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2005-10-11 01:09:43 +0000
commit9c8787d2ce69e55b9ba362a92f01592d8ee0a3a3 (patch)
tree4250d9d774d1bd2cda386be451ccb918da27866f /configure.ac
parente2dd25d3cf2f10c0cff0d37d05f58b81344db68b (diff)
Don't define HAS_COOKIE_MAKER if mcookie wasn't found.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index bef3670..5b17f71 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,8 +51,12 @@ esac
AC_SUBST(XINIT_CFLAGS)
AC_SUBST(XINIT_LIBS)
-AC_PATH_PROGS(MCOOKIE, [mcookie], [$(MCOOKIE)],
+AC_PATH_PROGS(MCOOKIE, [mcookie], [$MCOOKIE],
[$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin])
+if test x$MCOOKIE != x ; then
+ STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE=$(MCOOKIE)'
+fi
+AC_SUBST(STARTX_COOKIE_FLAGS)
XORG_RELEASE_VERSION