From f54e5388fbced20f06e697d62206b07e2fb83639 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sat, 12 Feb 2011 22:37:46 +0100 Subject: [PATCH] configure.ac: Add --without-xvfb-run --- configure.ac | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 54f11a777d..4f80fb0ec2 100644 --- a/configure.ac +++ b/configure.ac @@ -1824,8 +1824,18 @@ AM_CONDITIONAL(HAVE_XSLTPROC, test "x$XSLTPROC" != "xno") # Check for xvfb-run #################### -AC_PATH_PROG(XVFB_RUN, xvfb-run, no) -AM_CONDITIONAL(HAVE_XVFB_RUN, test "x$XVFB_RUN" != "xno") +AC_ARG_WITH(xvfb-run, [ --without-xvfb-run Do not use xvfb-run for UI-dependent automatic tests]) + +have_xvfb_run="no (disabled)" +if test "x$with_xvfb_run" != "xno"; then + AC_PATH_PROG(XVFB_RUN, xvfb-run, no) + if test "x$XVFB_RUN" != "xno"; then + have_xvfb_run="yes" + else + have_xvfb_run="no (not found)" + fi +fi +AM_CONDITIONAL(HAVE_XVFB_RUN, test "x$have_xvfb_run" == "xyes") ###################################### @@ -2259,4 +2269,7 @@ Optional Modules: DirectInput (Win32): $have_dx_dinput Color Correction: $have_lcms Soft Proof: $have_lcms + +Tests: + Use xvfb-run $have_xvfb_run ]);