From: Eric Engestrom Date: Thu, 1 Jun 2017 14:06:57 +0000 (+0100) Subject: configure.ac: simplify --enable-libunwind=auto check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=845d07978f8eef9b87b952c430edcb8c2b50b1b5;p=mesa.git configure.ac: simplify --enable-libunwind=auto check Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- diff --git a/configure.ac b/configure.ac index b57be07e24a..5caf316089a 100644 --- a/configure.ac +++ b/configure.ac @@ -1066,16 +1066,12 @@ AC_SUBST([LLVM_INCLUDEDIR]) dnl dnl libunwind dnl +PKG_CHECK_EXISTS(libunwind, [HAVE_LIBUNWIND=yes], [HAVE_LIBUNWIND=no]) AC_ARG_ENABLE([libunwind], [AS_HELP_STRING([--enable-libunwind], [Use libunwind for backtracing (default: auto)])], [LIBUNWIND="$enableval"], - [LIBUNWIND="auto"]) - -PKG_CHECK_EXISTS(libunwind, [HAVE_LIBUNWIND=yes], [HAVE_LIBUNWIND=no]) -if test "x$LIBUNWIND" = "xauto"; then - LIBUNWIND="$HAVE_LIBUNWIND" -fi + [LIBUNWIND="$HAVE_LIBUNWIND"]) if test "x$LIBUNWIND" = "xyes"; then PKG_CHECK_MODULES(LIBUNWIND, libunwind)