updated configure.ac to capture configure command and arguments
All checks were successful
continuous-integration/drone Build is passing

> used the captured info in bin/main.c
This commit is contained in:
2023-10-08 00:51:07 +09:00
parent 206df863cf
commit fe2b9456f4
10 changed files with 101 additions and 59 deletions

View File

@ -680,6 +680,16 @@ dnl ==== subsititution of some key items ====
AC_SUBST(HCL_PROJECT_AUTHOR, "${PACKAGE_BUGREPORT}")
AC_SUBST(HCL_PROJECT_URL, "${PACKAGE_URL}")
dnl === configure arguments
if test `expr " [$]0" : " '.*"` = 0; then
hcl_configure_cmd="'[$]0'"
else
hcl_configure_cmd="[$]0"
fi
AC_DEFINE_UNQUOTED(HCL_CONFIGURE_ARGS, ["$ac_configure_args"], [configure arguments])
AC_DEFINE_UNQUOTED(HCL_CONFIGURE_CMD, ["$hcl_configure_cmd"], [configure command])
AC_CONFIG_FILES([
Makefile
lib/Makefile