diff options
Diffstat (limited to 'm4/simpleops_initfini.m4')
-rw-r--r-- | m4/simpleops_initfini.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/simpleops_initfini.m4 b/m4/simpleops_initfini.m4 new file mode 100644 index 0000000..86cf0e9 --- /dev/null +++ b/m4/simpleops_initfini.m4 @@ -0,0 +1,13 @@ +AC_DEFUN([SIMPLEOPS_CHECK_INITFINI], +[dnl + AC_ARG_ENABLE([initfini], + [AS_HELP_STRING([--disable-initfini], [disable init/fini operations])], + [AC_DEFINE(DISABLE_INITFINI, 1, [Define to 1 to disable init/fini operations.])] + ) + + AX_C_ATTRIBUTE([constructor]) + AX_C_ATTRIBUTE([destructor]) + + AX_C_PRAGMA([init]) + AX_C_PRAGMA([fini]) +]) |