commit 0bc2cf1263d57c9464234d491254ea7b435bbbcd from: Thomas Adam via: Thomas Adam date: Thu Mar 16 14:40:31 2023 UTC portable: template: allow for YACC As with the main got project, allow for template to use the YACC environment variable -- either directly, or indirectly if set via ./configure in the main got project. commit - 8d60d668faa58a809d2f1244697a7a5e285951b7 commit + 0bc2cf1263d57c9464234d491254ea7b435bbbcd blob - 2970357a4c1e353d359696deeb168b0f20d39dad blob + b6a78ab567e1b010a38fbb130b5682c837986041 --- template/configure.ac +++ template/configure.ac @@ -20,8 +20,14 @@ SAVED_CFLAGS="$CFLAGS" test -n "$HOSTCC" && export CC="$HOSTCC" test -n "$HOSTCFLAGS" && export CFLAGS="$SAVED_CFLAGS $HOSTCFLAGS" +YACC_OVERRIDE=yes + AC_PROG_CC -AC_PROG_YACC + +if test -z "$YACC"; then + YACC_OVERRIDE="no" + AC_PROG_YACC +fi PKG_PROG_PKG_CONFIG PKG_CHECK_MODULES(LIBBSD, libbsd-overlay, [