Updates to configure.ac to include:

*  tests for multiple assemblers (nasm and yasm)
*  update to configure output to identify assembler used
*  space/tab cleanups for consistency in lib checks
*  small correction to test = "no " removing the trailing space
*  remove unused variable ASM_CMD
This commit is contained in:
Peter Hyman 2019-12-03 15:35:30 -06:00
parent 4f1adeaec4
commit 6bb6fee628

View file

@ -69,8 +69,8 @@ AC_ARG_ENABLE(
)
if test x"$ASM" = x"yes"; then
AC_CHECK_PROG( ASM_PROG, nasm, nasm, no ) # fix to set ASM_PROG to nasm, not yes.
if test x"$ASM_PROG" = x"no "; then
AC_CHECK_PROGS( ASM_PROG, nasm yasm, no ) # Allow test for multiple Assemblers.
if test x"$ASM_PROG" = x"no"; then
ASM=no
fi
fi
@ -143,7 +143,6 @@ else
fi
AM_CONDITIONAL([USE_ASM], [test x"$ASM" = x"yes"])
AC_SUBST([ASM_OPT])
AC_SUBST([ASM_CMD])
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
AC_CONFIG_FILES([
@ -166,7 +165,12 @@ echo
echo
echo "Configuration Options Summary:"
echo
echo " ASM................: $ASM"
echo -n " ASM................:"
if test x"$ASM_PROG" = x"no"; then
echo " $ASM"
else
echo " $ASM, using $ASM_PROG Assembler"
fi
echo " Static binary......: $static"
echo
echo "Documentation..........: ${build_doc}"