aboutsummaryrefslogtreecommitdiffstats
path: root/macros/need-declaration.m4
diff options
context:
space:
mode:
authorJames Henstridge <jamesh@src.gnome.org>2001-12-04 13:43:50 +0800
committerJames Henstridge <jamesh@src.gnome.org>2001-12-04 13:43:50 +0800
commitec65c861a6b515529474629a3b04a8a2099e51e4 (patch)
treecc454fbf703b919d633a10a0a928b1d11fd407ef /macros/need-declaration.m4
parentedd7c48be63e486f0c8c424fdc556c57503c4374 (diff)
downloadgsoc2013-evolution-ec65c861a6b515529474629a3b04a8a2099e51e4.tar.gz
gsoc2013-evolution-ec65c861a6b515529474629a3b04a8a2099e51e4.tar.zst
gsoc2013-evolution-ec65c861a6b515529474629a3b04a8a2099e51e4.zip
fix up gfarris's mistaken commit to gnome-common (revert to yesterday's versions)
svn path=/trunk/; revision=14858
Diffstat (limited to 'macros/need-declaration.m4')
-rw-r--r--macros/need-declaration.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/macros/need-declaration.m4 b/macros/need-declaration.m4
new file mode 100644
index 0000000000..8a217b8a30
--- /dev/null
+++ b/macros/need-declaration.m4
@@ -0,0 +1,42 @@
+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
+]
+)
eletions'>-5/+7 * Fixed up the table behavior so that it's not always in an edit mode.Christopher James Lahey2000-07-283-18/+91 * Small fixes.Ettore Perazzoli2000-07-281-3/+3 * Fix silly error of not chaining destructor for canvas.Matthew Loper2000-07-283-1/+10 * 0.3 "Jelly Fish".Ettore Perazzoli2000-07-284-33/+80 * Added a comment.Christopher James Lahey2000-07-273-0/+6 * Fixed shift click selections.Christopher James Lahey2000-07-273-75/+86 * Allocate correctly in the insert method.Christopher James Lahey2000-07-275-14/+13 * Grab focus properly.Christopher James Lahey2000-07-275-56/+145 * flesh out ifdef'ed out code. need to write merge_ecard_with_remote_record.Seth Alves2000-07-271-12/+10 * add handling for phone labels, going either direction (from pilot and to pilot.)Seth Alves2000-07-271-5/+56 * Changed the URI to load to.Christopher James Lahey2000-07-272-1/+13 * Clear the selection model when activating.Christopher James Lahey2000-07-277-136/+169 * remove double freeSeth Alves2000-07-271-4/+1 * bug fixesSeth Alves2000-07-272-5/+5 * more work on addressbook syncerSeth Alves2000-07-272-18/+105 * Translations from KeldKenneth Christiansen2000-07-271-281/+344 * Fixed a warning.Christopher James Lahey2000-07-273-4/+4 * Fixed a reference.Christopher James Lahey2000-07-2711-12/+82 * Added an ETableSelectionModel so this won't crash.Christopher James Lahey2000-07-275