configure: remove unneeded bits around libunwind handling
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 8 May 2017 16:37:02 +0000 (17:37 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 11 May 2017 13:02:07 +0000 (14:02 +0100)
If libunwind is not found we'll fail at PKG_CHECK_MODULES, so the
follow-up check will be false. Additionally the AM_CONDITIONAL is not
used, so we can drop it.

Fixes: 3bcef6aa245 ("configure.ac: honour --disable-libunwind if the .pc file is present")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
configure.ac

index 5c460f43d579910195bfd1d9bed29898f98219e5..ce5301f3e45fe736b559542d9db6c24643e9cbb1 100644 (file)
@@ -1079,14 +1079,9 @@ fi
 
 if test "x$LIBUNWIND" = "xyes"; then
     PKG_CHECK_MODULES(LIBUNWIND, libunwind)
-    if test "x$HAVE_LIBUNWIND" != "xyes"; then
-        AC_MSG_ERROR([libunwind requested but not installed.])
-    fi
     AC_DEFINE(HAVE_LIBUNWIND, 1, [Have libunwind support])
 fi
 
-AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$LIBUNWIND" = xyes])
-
 
 dnl Options for APIs
 AC_ARG_ENABLE([opengl],