As AC_SUBST doesn't expand to anything in the shell script, this
will generate a bad script on older versions of autoconf.
Change the logic to eliminate the possibility of an empty
if or else block.
Redmine issue:
https://redmine.openinfosecfoundation.org/issues/3124
printf("llc-%s.%s llc-%s llc", v[[1]], v[[2]], v[[1]])
}')
AC_CHECK_PROGS([LLC], [$llc_candidates], "no")
- AS_IF([test "$LLC" != "no"],
- [AC_SUBST(LLC)],
- [AC_MSG_ERROR([unable to find any of $llc_candidates needed to build ebpf files])])
+ if test "$LLC" = "no"; then
+ AC_MSG_ERROR([unable to find any of $llc_candidates needed to build ebpf files])
+ fi
+ AC_SUBST(LLC)
],
[AC_MSG_ERROR([clang needed to build ebpf files])])
])