summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
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