summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@koto.keithp.com>2007-08-14 02:21:58 (GMT)
committerKeith Packard <keithp@koto.keithp.com>2007-08-14 02:21:58 (GMT)
commite20c503d24e5ccf03035aa0f6d833d235d2179df (patch)
treecf81b9fa0bd1856893d2a8e6fc80a649b40f9f96
parentf2ddb356d86225a8ff6d1d1397fb2156cebd360f (diff)
Cannot use AC_CHECK_FILE when cross compiling; assume no LINUXDOC.
As AC_CHECK_FILE cannot be used when cross compiling, just assume linuxdoc is not present.
-rw-r--r--xorg-macros.m4.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index 11b1419..0eda9a8 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -194,7 +194,11 @@ AC_DEFUN([XORG_CHECK_LINUXDOC],[
XORG_SGML_PATH=$prefix/share/sgml
HAVE_DEFS_ENT=
-AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
+if test x"$cross_compiling" = x"yes" ; then
+ HAVE_DEFS_ENT=no
+else
+ AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
+fi
AC_PATH_PROG(LINUXDOC, linuxdoc)
AC_PATH_PROG(PS2PDF, ps2pdf)