summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJungshik Shin <jungshik@google.com>2013-11-24 10:56:12 -0500
committerAdrian Thurston <thurston@complang.org>2013-11-24 10:56:12 -0500
commitffac11030a7c652808dcbe54ff6fd2ec0ce72209 (patch)
treef2c0c982d5c9b39e38078078bf00555b71a52fa7
parentc1d4588d691d443bcfc327471bfb6df01fed8b9e (diff)
downloadragel-ffac11030a7c652808dcbe54ff6fd2ec0ce72209.tar.gz
use AS_IF and test to check if the DIST file is present
AC_CHECK_FILE doesn't work when cross compiling
-rw-r--r--configure.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 4ef153d5..cb075f2b 100644
--- a/configure.in
+++ b/configure.in
@@ -27,9 +27,9 @@ AC_CONFIG_HEADER(ragel/config.h)
dnl Choose defaults for the build_parsers and build_manual vars. If the dist
dnl file is present in the root then default to no, otherwise go for it.
-AC_CHECK_FILES( $srcdir/DIST,
- [ . $srcdir/DIST; ],
- [ build_parsers=yes; build_manual=yes; ] )
+
+AS_IF([test -r $srcdir/DIST], [. $srcdir/DIST], [build_parsers=yes;
+ build_manual=yes])
dnl
dnl Enable arg to explicitly control the building of the manual