summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-12-26 11:34:49 +0100
committerJim Meyering <meyering@redhat.com>2010-01-06 11:59:44 +0100
commitfb0afb735fbe7b7b9ff7787df5e19293cba024e3 (patch)
tree72e7a403c1bde3dd8a2d8b56f2c242a8008aa27e /m4
parent2d3ef003112d0d6ddf9b46f0e5da1285ea5eef32 (diff)
downloadgrep-fb0afb735fbe7b7b9ff7787df5e19293cba024e3.tar.gz
maint: remove decl.m4
* m4/decl.m4: Remove unused file.
Diffstat (limited to 'm4')
-rw-r--r--m4/decl.m437
1 files changed, 0 insertions, 37 deletions
diff --git a/m4/decl.m4 b/m4/decl.m4
deleted file mode 100644
index c503a5de..00000000
--- a/m4/decl.m4
+++ /dev/null
@@ -1,37 +0,0 @@
-#serial 5
-
-AC_DEFUN([jm_CHECK_DECLARATION],
-[
- AC_MSG_CHECKING([whether $1 is declared])
- AC_CACHE_VAL(jm_cv_func_decl_$1,
- [AC_TRY_COMPILE([$2],
- [
-#ifndef $1
-char *(*pfn) = (char *(*)) $1
-#endif
- ],
- eval "jm_cv_func_decl_$1=yes",
- eval "jm_cv_func_decl_$1=no")])
-
- if eval "test \"`echo '$jm_cv_func_decl_'$1`\" = yes"; then
- AC_MSG_RESULT(yes)
- ifelse([$3], , :, [$3])
- else
- AC_MSG_RESULT(no)
- ifelse([$4], , , [$4
-])dnl
- fi
-])dnl
-
-dnl jm_CHECK_DECLARATIONS(INCLUDES, FUNCTION... [, ACTION-IF-DECLARED
-dnl [, ACTION-IF-NOT-DECLARED]])
-AC_DEFUN([jm_CHECK_DECLARATIONS],
-[
- for jm_func in $2
- do
- jm_CHECK_DECLARATION($jm_func, [$1],
- [
- jm_tr_func=HAVE_DECL_`echo $jm_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
- AC_DEFINE_UNQUOTED($jm_tr_func, 1, [Define if your system declares $1]) $3], [$4])dnl
- done
-])