aboutsummaryrefslogtreecommitdiffstats
path: root/macros/need-declaration.m4
diff options
context:
space:
mode:
authorJP Rosevear <jpr@src.gnome.org>2004-10-02 00:50:41 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-02 00:50:41 +0800
commitacb88c209ef296564123666cdc18c787a0f91082 (patch)
treee14476f6aad71d7fd4365f557704f84e1f56c7bd /macros/need-declaration.m4
parent8820b3da918a837632cc44dbd589aa3eae2d74e4 (diff)
downloadgsoc2013-evolution-acb88c209ef296564123666cdc18c787a0f91082.tar
gsoc2013-evolution-acb88c209ef296564123666cdc18c787a0f91082.tar.gz
gsoc2013-evolution-acb88c209ef296564123666cdc18c787a0f91082.tar.bz2
gsoc2013-evolution-acb88c209ef296564123666cdc18c787a0f91082.tar.lz
gsoc2013-evolution-acb88c209ef296564123666cdc18c787a0f91082.tar.xz
gsoc2013-evolution-acb88c209ef296564123666cdc18c787a0f91082.tar.zst
gsoc2013-evolution-acb88c209ef296564123666cdc18c787a0f91082.zip
Remove macros dir, we haven't needed it in ages.
svn path=/trunk/; revision=27448
Diffstat (limited to 'macros/need-declaration.m4')
-rw-r--r--macros/need-declaration.m442
1 files changed, 0 insertions, 42 deletions
diff --git a/macros/need-declaration.m4 b/macros/need-declaration.m4
deleted file mode 100644
index 8a217b8a30..0000000000
--- a/macros/need-declaration.m4
+++ /dev/null
@@ -1,42 +0,0 @@
-dnl See whether we need a declaration for a function.
-dnl GCC_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES])
-AC_DEFUN([GCC_NEED_DECLARATION],
-[AC_MSG_CHECKING([whether $1 must be declared])
-AC_CACHE_VAL(gcc_cv_decl_needed_$1,
-[AC_TRY_COMPILE([
-#include <stdio.h>
-#ifdef HAVE_STRING_H
-#include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-$2],
-[char *(*pfn) = (char *(*)) $1],
-eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])
-if eval "test \"`echo '$gcc_cv_decl_needed_'$1`\" = yes"; then
- AC_MSG_RESULT(yes)
- gcc_need_declarations="$gcc_need_declarations $1"
- gcc_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- AC_DEFINE_UNQUOTED($gcc_tr_decl)
-else
- AC_MSG_RESULT(no)
-fi
-])dnl
-
-dnl Check multiple functions to see whether each needs a declaration.
-dnl GCC_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES])
-AC_DEFUN([GCC_NEED_DECLARATIONS],
-[for ac_func in $1
-do
-GCC_NEED_DECLARATION($ac_func, $2)
-done
-]
-)