Do not allow configuration where neither static or shared library is installed

Fixes [Bug #18000]
This commit is contained in:
Jeremy Evans 2021-08-13 08:16:24 -07:00
parent b4afedb0dd
commit 06c3e80611
Notes: git 2021-10-09 08:02:14 +09:00

View File

@ -3678,7 +3678,10 @@ AC_SUBST(MJIT_SUPPORT)
AC_ARG_ENABLE(install-static-library,
AS_HELP_STRING([--disable-install-static-library], [do not install static ruby library]),
[INSTALL_STATIC_LIBRARY=$enableval],
[INSTALL_STATIC_LIBRARY=$enableval
AS_IF([test x"$enable_shared" = xno -a x"$INSTALL_STATIC_LIBRARY" = xno],
[AC_MSG_ERROR([must install either static or shared library])],
[])],
AS_IF([test x"$enable_shared" = xyes],
[INSTALL_STATIC_LIBRARY=no],
[INSTALL_STATIC_LIBRARY=yes]))