aboutsummaryrefslogtreecommitdiff
path: root/m4/attribute.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/attribute.m4')
-rw-r--r--m4/attribute.m416
1 files changed, 0 insertions, 16 deletions
diff --git a/m4/attribute.m4 b/m4/attribute.m4
deleted file mode 100644
index 3aa2e5fc..00000000
--- a/m4/attribute.m4
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/m4
-dnl Check for compiler attributes
-
-AC_DEFUN([PAM_ATTRIBUTE_UNUSED], [
- AC_CACHE_CHECK([for __attribute__((unused))], [pam_cv_attribute_unused],
- [AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM([[int fun(int i __attribute__((unused)));]],
- [[return fun(0);]])],
- [pam_cv_attribute_unused=yes],
- [pam_cv_attribute_unused=no])])
- AS_IF([test "$pam_cv_attribute_unused" = yes],
- [unused='__attribute__((unused))'],
- [unused=])
- AC_DEFINE_UNQUOTED([UNUSED], [$unused],
- [Define if the compiler supports __attribute__((unused))])
-])