This is an automated email from the ASF dual-hosted git repository.

sorber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 25f302e158c7407c546090a85ba163a8098cef1f
Author: Phil Sorber <sor...@apache.org>
AuthorDate: Wed Sep 13 14:58:05 2017 -0600

    Error if enable is explicitly passed
---
 configure.ac | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index fa67405..c77d511 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1271,6 +1271,7 @@ AC_ARG_ENABLE([unwind],
   AS_HELP_STRING([--disable-unwind],[Don't use the unwind library]), [
   ], [
     enable_unwind="yes"
+    enable_unwind_default="yes"
 ])
 AC_MSG_RESULT([$enable_unwind])
 
@@ -1281,9 +1282,17 @@ AS_IF([test "x$enable_unwind" = "xyes"], [
     PKG_CHECK_MODULES([LIBUNWIND], [libunwind-ptrace], [
       enable_remote_unwinding=yes
     ], [
-      AC_MSG_WARN([unwind not found, try disabling it --disable-unwind])
+      AS_IF([test "x$enable_unwind_default" = "xyes"], [
+        AC_MSG_WARN([unwind not found, try disabling it --disable-unwind])
+      ], [
+        AC_MSG_ERROR([unwind not found, try disabling it --disable-unwind])
+      ])
     ])], [
-    AC_MSG_WARN([unwind only available on linux, try disabling it 
--disable-unwind])
+    AS_IF([test "x$enable_unwind_default" = "xyes"], [
+      AC_MSG_WARN([unwind only available on linux, try disabling it 
--disable-unwind])
+    ], [
+      AC_MSG_ERROR([unwind only available on linux, try disabling it 
--disable-unwind])
+    ])
   ])
 ])
 TS_ARG_ENABLE_VAR([use], [remote_unwinding])

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>.

Reply via email to