aboutsummaryrefslogtreecommitdiff
path: root/config/open-axiom.m4
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2012-05-19 16:56:14 +0000
committerdos-reis <gdr@axiomatics.org>2012-05-19 16:56:14 +0000
commit80f83173c3cf324301923ce03c4614ba496ac94f (patch)
tree6cb516a8d3fcb483de00e959b8a6fbe205248288 /config/open-axiom.m4
parentc849886ef096a445a65041c0e54ab02728b7b512 (diff)
downloadopen-axiom-80f83173c3cf324301923ce03c4614ba496ac94f.tar.gz
* Makefile.in: Regenerate.
* config/aclocal.m4: Move to toplevel. * config/libtool.m4: Remove. * config/ltoptions.m4: Likewise. * config/ltversion.m4: Likewise. * config/lt~obsolete.m4: Likewise. * config/open-axiom.m4 (OPENAXIOM_ALIGNMENT_OPERATOR): Use AC_LANG_SOURCE to generate test program. (OPENAXIOM_ALIGNAS_SPECIFIER): Likewise.
Diffstat (limited to 'config/open-axiom.m4')
-rw-r--r--config/open-axiom.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/config/open-axiom.m4 b/config/open-axiom.m4
index f3c8afd5..26614d14 100644
--- a/config/open-axiom.m4
+++ b/config/open-axiom.m4
@@ -1002,9 +1002,9 @@ dnl or vendor lock-ins such as `__alignof'.
AC_DEFUN([OPENAXIOM_ALIGNMENT_OPERATOR],[
AC_MSG_CHECKING([name of alignment query operator])
oa_alignment=
-AC_COMPILE_IFELSE([int a = __alignof(int);],
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int a = __alignof(int);]])],
[oa_alignment="__alignof"],
- [AC_COMPILE_IFELSE([int a = alignof(int);],
+ [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int a = alignof(int);]])],
[oa_alignment="alignof"],
[AC_MSG_ERROR([C++ compiler does not support alignment query operator])])])
AC_DEFINE_UNQUOTED([openaxiom_alignment],[$oa_alignment],
@@ -1020,9 +1020,9 @@ dnl Vendor lock-ins are of the attribute form.
AC_DEFUN([OPENAXIOM_ALIGNAS_SPECIFIER],[
AC_MSG_CHECKING([alignment boundary specifier syntax])
oa_alignas=
-AC_COMPILE_IFELSE([alignas(16) int a = 42;],
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[alignas(16) int a = 42;]])],
[oa_alignas="alignas(N)"],
- [AC_COMPILE_IFELSE([__attribute__((__aligned__(16))) int a = 42;],
+ [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[__attribute__((__aligned__(16))) int a = 42;]])],
[oa_alignas="__attribute__((__aligned__(N)))"],
[AC_MSG_ERROR([C++ compiler does not support alignment specifier])])])
AC_DEFINE_UNQUOTED([openaxiom_alignas(N)],[$oa_alignas],