mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Don't enable dtrace support when dtrace isn't available
Fixes FTBFS when dtrace isn't available but <sys/sdt.h> is.
This commit is contained in:
parent
7c184df292
commit
dd9f8b8cc6
@ -2787,12 +2787,13 @@ if test "x$enable_dtrace" != xno; then
|
|||||||
if test "x$enable_dtrace" = xyes; then
|
if test "x$enable_dtrace" = xyes; then
|
||||||
AC_MSG_ERROR([dtrace not found])
|
AC_MSG_ERROR([dtrace not found])
|
||||||
fi
|
fi
|
||||||
fi
|
else
|
||||||
AC_CHECK_HEADER([sys/sdt.h],have_dtrace=yes,
|
AC_CHECK_HEADER([sys/sdt.h],have_dtrace=yes,
|
||||||
[if test "x$enable_dtrace" = xyes; then
|
[if test "x$enable_dtrace" = xyes; then
|
||||||
AC_MSG_ERROR([dtrace support needs sys/sdt.h header])
|
AC_MSG_ERROR([dtrace support needs sys/sdt.h header])
|
||||||
fi])
|
fi])
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user