[glib/glib-2-26] Don't enable dtrace support when dtrace isn't available
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-26] Don't enable dtrace support when dtrace isn't available
- Date: Thu, 28 Oct 2010 22:51:29 +0000 (UTC)
commit 231ee5eddf98d2d23bda6d69f372892201a0783b
Author: Emilio Pozuelo Monfort <pochu27 gmail com>
Date: Tue Sep 28 11:53:03 2010 +0200
Don't enable dtrace support when dtrace isn't available
Fixes FTBFS when dtrace isn't available but <sys/sdt.h> is.
configure.ac | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ea73394..1c84524 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2785,11 +2785,12 @@ if test "x$enable_dtrace" != xno; then
if test "x$enable_dtrace" = xyes; then
AC_MSG_ERROR([dtrace not found])
fi
+ else
+ AC_CHECK_HEADER([sys/sdt.h],have_dtrace=yes,
+ [if test "x$enable_dtrace" = xyes; then
+ AC_MSG_ERROR([dtrace support needs sys/sdt.h header])
+ fi])
fi
- AC_CHECK_HEADER([sys/sdt.h],have_dtrace=yes,
- [if test "x$enable_dtrace" = xyes; then
- AC_MSG_ERROR([dtrace support needs sys/sdt.h header])
- fi])
fi
else
AC_MSG_RESULT([no])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]