mirror of https://gitlab.freedesktop.org/mesa/mesa
configure.ac: simplify --enable-libunwind=auto check
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
adadadc151
commit
845d07978f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue