modified configure.ac to capture configure command and arguments

This commit is contained in:
2023-10-08 14:36:25 +09:00
parent 1623786eef
commit 6037c47e3f
11 changed files with 93 additions and 68 deletions

View File

@ -1057,6 +1057,17 @@ dnl ==== subsititution of some key items ====
AC_SUBST(HAWK_PROJECT_AUTHOR, "${PACKAGE_BUGREPORT}")
AC_SUBST(HAWK_PROJECT_URL, "${PACKAGE_URL}")
dnl === configure arguments
if test `expr " [$]0" : " '.*"` = 0; then
hawk_configure_cmd="'[$]0'"
else
hawk_configure_cmd="[$]0"
fi
AC_DEFINE_UNQUOTED(HAWK_CONFIGURE_ARGS, ["$ac_configure_args"], [configure arguments])
AC_DEFINE_UNQUOTED(HAWK_CONFIGURE_CMD, ["$hawk_configure_cmd"], [configure command])
AC_CONFIG_FILES([
Makefile
tools/Makefile