Checking for executable permission on antlr3 script
authorChristopher L. Conway <christopherleeconway@gmail.com>
Tue, 1 Jun 2010 20:01:07 +0000 (20:01 +0000)
committerChristopher L. Conway <christopherleeconway@gmail.com>
Tue, 1 Jun 2010 20:01:07 +0000 (20:01 +0000)
config/antlr.m4

index 604d2f6bceeada608b409dbd0645a56397208f62..8f2e26b51716333cea64c3b0bb5fdbc90c20d8f4 100644 (file)
@@ -19,9 +19,10 @@ AC_DEFUN([AC_PROG_ANTLR], [
     )
     AC_MSG_RESULT(no)
   fi
-
-  # Define the ANTL related variables
-  # AC_SUBST(ANTLR)
+  if test ! -x "$ANTLR";
+  then
+    AC_MSG_ERROR([antlr3 script is not executable])
+  fi
 ])
 
 ##