configure: higher precedence for $LEMON
authorMichael Wallner <mike@php.net>
Tue, 29 Nov 2016 08:32:17 +0000 (09:32 +0100)
committerMichael Wallner <mike@php.net>
Tue, 29 Nov 2016 08:32:17 +0000 (09:32 +0100)
m4/psi/psi.m4

index 4012ec1..63ed194 100644 (file)
@@ -294,7 +294,10 @@ dnl PSI_LEMON()
 dnl Declare $LEMON precious, and check for a `lemon` in $PATH.
 AC_DEFUN(PSI_LEMON, [
        AC_ARG_VAR(LEMON, The lemon parser generator of the SQLite project)
-       AC_PATH_PROG(LEMON, lemon, ./lemon)
+       if test -z "$LEMON"
+       then
+               AC_PATH_PROG(LEMON, lemon, ./lemon)
+       fi
        PHP_SUBST(LEMON)
 ])