Source
219
219
AC_MSG_RESULT([$CAIRO])
220
220
AM_CONDITIONAL(HAVE_CAIRO, [test "x$CAIRO" = xyes])
221
221
222
222
# For enumerating devices in test case
223
223
PKG_CHECK_MODULES(LIBUDEV, libudev, [HAVE_LIBUDEV=yes], [HAVE_LIBUDEV=no])
224
224
if test "x$HAVE_LIBUDEV" = xyes; then
225
225
AC_DEFINE(HAVE_LIBUDEV, 1, [Have libudev support])
226
226
fi
227
227
AM_CONDITIONAL(HAVE_LIBUDEV, [test "x$HAVE_LIBUDEV" = xyes])
228
228
229
+
# xsltproc for docbook manpages
230
+
AC_ARG_ENABLE([manpages],
231
+
AS_HELP_STRING([--disable-manpages], [disable manpages @<:@default=enabled@:>@]),
232
+
[MANS=$enableval], [MANS=auto])
229
233
AC_PATH_PROG(XSLTPROC, xsltproc)
230
-
AM_CONDITIONAL([HAVE_XSLTPROC], [test "x$XSLTPROC" != "x"])
234
+
AM_CONDITIONAL([BUILD_MANPAGES], [test "x$XSLTPROC" != "x" -a "x$MANS" != "xno"])
235
+
236
+
# check for offline man-pages stylesheet
237
+
AC_MSG_CHECKING([for docbook manpages stylesheet])
238
+
MANPAGES_STYLESHEET="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
239
+
AC_PATH_PROGS_FEATURE_CHECK([XSLTPROC_TMP], [xsltproc],
240
+
AS_IF([`"$ac_path_XSLTPROC_TMP" --nonet "$MANPAGES_STYLESHEET" > /dev/null 2>&1`],
241
+
[HAVE_MANPAGES_STYLESHEET=yes]))
242
+
if test "x$HAVE_MANPAGES_STYLESHEET" = "xyes"; then
243
+
AC_SUBST(MANPAGES_STYLESHEET)
244
+
AC_MSG_RESULT([yes])
245
+
else
246
+
AC_MSG_RESULT([no])
247
+
fi
248
+
AM_CONDITIONAL([HAVE_MANPAGES_STYLESHEET], [test "x$HAVE_MANPAGES_STYLESHEET" = "xyes"])
231
249
232
250
if test "x$INTEL" != "xno" -o "x$RADEON" != "xno" -o "x$NOUVEAU" != "xno" -o "x$OMAP" != "xno"; then
233
251
# Check for atomic intrinsics
234
252
AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives,
235
253
[
236
254
drm_cv_atomic_primitives="none"
237
255
238
256
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
239
257
int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
240
258
int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }