SHA256
1
0
forked from pool/sssd
sssd/0001-Silence-autoconf-2.28-warnings.patch

35 lines
1.3 KiB
Diff

From 90fc734631c26c762cc87bd0cd90a8e6b3ee9e95 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Fri, 29 Jul 2011 09:51:23 +0200
Subject: [PATCH] Silence autoconf 2.28 warnings
---
configure.ac | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index ec29cb7..d79ccfd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -177,13 +177,13 @@ AC_CHECK_HEADERS([sys/inotify.h])
AC_CHECK_HEADERS([sasl/sasl.h],,AC_MSG_ERROR([Could not find SASL headers]))
AC_CACHE_CHECK([whether compiler supports __attribute__((destructor))],
- sss_client_attribute_destructor,
+ sss_client_cv_attribute_destructor,
[AC_COMPILE_IFELSE(
- [__attribute__((destructor)) static void cleanup(void) { }],
- sss_client_attribute_destructor=yes)
+ [AC_LANG_SOURCE([__attribute__((destructor)) static void cleanup(void) { }])],
+ sss_client_cv_attribute_destructor=yes)
])
-if test x"$sss_client_attribute_destructor" = xyes ; then
+if test x"$sss_client_cv_attribute_destructor" = xyes ; then
AC_DEFINE(HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR, 1,
[whether compiler supports __attribute__((destructor))])
fi
--
1.7.6