aboutsummaryrefslogtreecommitdiffstats
path: root/macros/need-declaration.m4
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-03-06 00:57:29 +0800
committerDan Winship <danw@src.gnome.org>2002-03-06 00:57:29 +0800
commit60eaaca663551f03031a82cc4a135e5ac668dd90 (patch)
treef85f905e02753177fac47a46b0f015e17d960d1f /macros/need-declaration.m4
parent33c3f207a59810fa1323454d3afd015bcba1184b (diff)
downloadgsoc2013-evolution-60eaaca663551f03031a82cc4a135e5ac668dd90.tar.gz
gsoc2013-evolution-60eaaca663551f03031a82cc4a135e5ac668dd90.tar.zst
gsoc2013-evolution-60eaaca663551f03031a82cc4a135e5ac668dd90.zip
I'm not dead yet!
svn path=/trunk/; revision=15919
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
+]
+)
tr>* security/libgcrypt: update to 1.8.0cpm2017-07-213-7/+7 * security/py-bcrypt: update to 3.1.3swills2017-07-213-17/+9 * Update to 0.5.2sunpoet2017-07-212-5/+5 * These ports were not deleted with my previous commit as intendedfeld2017-07-203-39/+0 * security/sshguard: Update to 2.0.0feld2017-07-208-54/+76 * security/sshguard: reset MAINTAINERfeld2017-07-201-1/+1 * Update to 1.4.22.adamw2017-07-202-5/+4 * Document GitLab vulnerabilitiestz2017-07-201-0/+71 * Add sha2wordlist.zeising2017-07-204-0/+35 * Update to 2.49btobik2017-07-202-4/+4 * security/vuxml: Document MySQL vulnerabilitiesbrnrd2017-07-191-0/+109 * Fix vuxmlbuild by replacing lower case by upper case in cvenameolivier2017-07-191-1/+1 * Update strongswan to 5.5.3olivier2017-07-193-81/+4 * Document vulnerability in collectd5olivier2017-07-191-0/+27 * Document vulnerability in strongswanolivier2017-07-191-0/+56 * Update to 0.050.vanilla2017-07-192-4/+4 * - New port: security/veracryptacm2017-07-196-0/+251 * security/softhsm2: Combine if statementsdbaio2017-07-171-5/+1 * security/softhsm2: Update to 2.3.0, Fix build with SQLITE3 storage backenddbaio2017-07-174-10/+31 * security/vuxml: Document vulnerability in cactidbaio2017-07-171-0/+29 * security/suricata: Bump PORTREVISIONkoobs2017-07-171-0/+1 * - Fix typocpm2017-07-171-1/+1 * security/rkhunter: Update to 1.4.4dbaio2017-07-173-5/+10 * - Update to 5.42zi2017-07-172-4/+4 * - Fix LICENSEcpm2017-07-174-2/+116 * Remove copy-paste errorsunpoet2017-07-171-1/+0 * security/py-rsa: Update to 3.4.2koobs2017-07-164-17/+7 * security/softether: Add conflict with softether-develpi2017-07-161-0/+2 * Add ports/krb5-115 option.cy2017-07-161-1/+2 * Update security/elixir-comeonin to version 3.2.olgeni2017-07-153-6/+6 * Update security/erlang-fast_tls to 1.0.14farrokhi2017-07-152-4/+4 * security/sqlmap: update to 1.1.7rm2017-07-152-4/+4 * Update security/p5-IO-Socket-SSL to 2.047brd2017-07-152-5/+5 * - Update WWWamdmi32017-07-151-1/+1 * Update to 2.47btobik2017-07-144-10/+30 * Remove MASTER_SITE_SUBDIR, this is not required and can be added to MASTER_SI...ultima2017-07-141-2/+1 * security/keepassxc: update to 2.2.0cpm2017-07-146-6/+81 * Update to 4.15.0antoine2017-07-142-9/+12 * Update to 0.1.10antoine2017-07-142-4/+5 * Update to 1.2.37antoine2017-07-142-4/+4 * security/vuxml: Document vulnerability in apache24brnrd2017-07-141-0/+38 * Update to 2.0.15antoine2017-07-142-4/+4 * Update to 2.0.5antoine2017-07-142-4/+4 * Update to 6.1.0antoine2017-07-142-4/+4 * Update to 2.1.11antoine2017-07-142-4/+4 * Update to 0.1.8antoine2017-07-142-4/+4 * Update to 0.1.11antoine2017-07-142-4/+4 * Document latest Flash Player vulnerabilities.jkim2017-07-141-0/+35 * security/libressl-devel: Update to 2.6.0brnrd2017-07-143-55/+16 * Add new REDIS option (off by default) to security/suricatagarga2017-07-141-1/+8 * Add an entry for the CVE-2017-11103 in Samba.timur2017-07-131-0/+43 * ecurity/vuxml: add node.js vulnerabilities announced 2017-07-11bhughes2017-07-131-0/+54 * security/libressl: Update to 2.5.5brnrd2017-07-132-7/+4 * Update to 0.20sunpoet2017-07-132-3/+5 * security/py-pyptlib: Fix checksum mismatch, remove BROKENloader2017-07-122-6/+12 * Update KDE Frameworks to 5.36.0tcberner2017-07-121-3/+3 * security/lynis: Update to 2.5.2lme2017-07-123-4/+5 * Document nginx security advisory (CVE-2017-7529).osa2017-07-121-0/+33 * Update to 7.4.0. This release fixes a critical vulnerability namedhrs2017-07-122-5/+4 * Update to 0.24sunpoet2017-07-122-6/+6 * ntroducing the new krb5-devel port, tracking MIT KRB5 developmentcy2017-07-1113-0/+524 * New port libu2f-hostbapt2017-07-105-0/+48 * security/py-{acme,certbot}: Update to 0.16.0cpm2017-07-104-10/+8 * Update to 0.32sunpoet2017-07-092-4/+4 * * Changed MASTER_SITES to DEBIAN poolultima2017-07-091-2/+2 * Document security issue fixed in CodeIgniter 3.1.5junovitch2017-07-091-0/+26 * Capitalize COMMENTantoine2017-07-091-1/+1 * New port: security/rubygem-metasploit-aggregatorantoine2017-07-094-0/+28 * Update to 20170706antoine2017-07-092-4/+4 * Document irssi vulnerabilitiesfeld2017-07-081-0/+33 * - Add LICENSEamdmi32017-07-083-20/+21 * Remove dependency on libffi. It's already in linux_base-c7.tijl2017-07-081-1/+1 * - Update security/linux-c7-nss to 3.28.4-1.2.el7_3. [1]tijl2017-07-084-32/+10 * - Update security/linux-c6-nss to 3.28.4-3.el6_9. [1]tijl2017-07-074-30/+10 * Fix dependencies.tijl2017-07-071-1/+2 * Add security/linux-c7-trousers, needed by security/linux-c7-gnutls.tijl2017-07-075-0/+49 * Add security/linux-c7-p11-kit, needed by security/linux-c7-gnutls.tijl2017-07-075-0/+57 * Add security/linux-c7-nettle, needed by security/linux-c7-gnutls.tijl2017-07-075-0/+70 * Add dependency on libgpg-error.tijl2017-07-071-1/+2 * security/vuxml: Fix <url> for latest PHP entrybrnrd2017-07-071-1/+1 * Add dependency on libgpg-error.tijl2017-07-071-1/+2 * Update to 0.4.7 release.ale2017-07-073-5/+6 * security/vuxml: Register oniguruma/php-mbstring vulnsbrnrd2017-07-071-7/+83 * - Add drupal7 to vuxml entryacm2017-07-071-3/+7 * Update to 20170703antoine2017-07-072-4/+4 * Update to 20170704antoine2017-07-072-4/+4 * - Document new vulnerabilities in www/drupal8 < 8.3.4acm2017-07-071-0/+30 * Update to 3.6.3antoine2017-07-065-9/+9 * - Update devel/courier-unicode to 2.0madpilot2017-07-068-151/+141 * New port: security/hardening-checkpi2017-07-064-0/+46 * Add The Unlicense to Mk/bsd.licenses.db.mktobik2017-07-051-1/+1 * Only use enable-ec_nistp_64_gcc_128 on amd64 since it requires atobik2017-07-051-2/+10 * Another round of spelling fixes, covering entries of the year 2015.danfe2017-07-051-43/+43 * Fix a bunch of noticed typos and spelling mistakes, covering yearsdanfe2017-07-051-59/+59