Add ./configure option to create release build.
This commit is contained in:
parent
68853090ab
commit
74adbca249
6 changed files with 123 additions and 60 deletions
12
configure.ac
12
configure.ac
|
|
@ -13,6 +13,16 @@ AM_PROG_CC_C_O
|
|||
|
||||
|
||||
|
||||
AC_MSG_CHECKING([whether to build for release])
|
||||
AC_ARG_ENABLE(release_build,
|
||||
AC_HELP_STRING([--enable-release-build], [build for release]))
|
||||
if test "$enable_release_build" = "yes"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
AM_CONDITIONAL(RELEASE_BUILD, [test "$enable_release_build" = "yes"])
|
||||
|
||||
AC_MSG_CHECKING([whether to enable debugging])
|
||||
AC_ARG_ENABLE(debug,
|
||||
AC_HELP_STRING([--enable-debug], [build debug executable]))
|
||||
|
|
@ -139,4 +149,4 @@ AM_CONDITIONAL(OS_LINUX, [test "$build_linux" = "yes"])
|
|||
AM_CONDITIONAL(OS_WINDOWS, [test "$build_win" = "yes"])
|
||||
AM_CONDITIONAL(OS_MACOSX, [test "$build_macosx" = "yes"])
|
||||
|
||||
AC_OUTPUT([Makefile src/Makefile])
|
||||
AC_OUTPUT([Makefile src/Makefile])
|
||||
|
|
|
|||
Loading…
Reference in a new issue