Reject --enable-prof-libunwind without --enable-prof

Prior to the change you could specify --enable-prof-libunwind without
--enable-prof which would do effectively nothing. This was confusing as I
expected --enable-prof-libunwind to act like --enable-prof, but use libunwind.
This commit is contained in:
Alex Lapenkou 2021-09-01 10:45:16 -07:00 committed by Alexander Lapenkov
parent e5062e9fb9
commit 26140dd246

View File

@ -1281,6 +1281,9 @@ AC_ARG_ENABLE([prof-libunwind],
enable_prof_libunwind="0"
else
enable_prof_libunwind="1"
if test "x$enable_prof" = "x0" ; then
AC_MSG_ERROR([--enable-prof-libunwind should only be used with --enable-prof])
fi
fi
],
[enable_prof_libunwind="0"]