aboutsummaryrefslogtreecommitdiff
path: root/build-aux/m4/ax_gcc_func_attribute.m4
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2016-03-19 15:24:00 +0800
committerfanquake <fanquake@gmail.com>2016-03-19 15:24:00 +0800
commitcf5c786fc3244b6aedcc4a2f839f5248f95fafa1 (patch)
tree5cdc61abe600b62b3192afe23e52aeac647aca0a /build-aux/m4/ax_gcc_func_attribute.m4
parentf034bced269c4859809d320dcfbdc4b008191b85 (diff)
[build-aux] Update Boost & check macros to latest serials
Diffstat (limited to 'build-aux/m4/ax_gcc_func_attribute.m4')
-rw-r--r--build-aux/m4/ax_gcc_func_attribute.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/build-aux/m4/ax_gcc_func_attribute.m4 b/build-aux/m4/ax_gcc_func_attribute.m4
index 275ca63a2c..c788ca9bd4 100644
--- a/build-aux/m4/ax_gcc_func_attribute.m4
+++ b/build-aux/m4/ax_gcc_func_attribute.m4
@@ -31,6 +31,7 @@
# cold
# const
# constructor
+# constructor_priority for constructor attribute with priority
# deprecated
# destructor
# dllexport
@@ -73,7 +74,7 @@
# and this notice are preserved. This file is offered as-is, without any
# warranty.
-#serial 2
+#serial 3
AC_DEFUN([AX_GCC_FUNC_ATTRIBUTE], [
AS_VAR_PUSHDEF([ac_var], [ax_cv_have_func_attribute_$1])
@@ -103,6 +104,9 @@ AC_DEFUN([AX_GCC_FUNC_ATTRIBUTE], [
[const], [
int foo( void ) __attribute__(($1));
],
+ [constructor_priority], [
+ int foo( void ) __attribute__((__constructor__(65535/2)));
+ ],
[constructor], [
int foo( void ) __attribute__(($1));
],
@@ -180,6 +184,8 @@ AC_DEFUN([AX_GCC_FUNC_ATTRIBUTE], [
[visibility], [
int foo_def( void ) __attribute__(($1("default")));
int foo_hid( void ) __attribute__(($1("hidden")));
+ int foo_int( void ) __attribute__(($1("internal")));
+ int foo_pro( void ) __attribute__(($1("protected")));
],
[warning], [
int foo( void ) __attribute__(($1("")));