From c8c8d0437d17b3eed2e79ba47b13009f1c3bf181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 22 Jul 2011 13:18:56 +0200 Subject: [PATCH] Configure: Added --with-atomic-svalue. --- src/acconfig.h | 3 +++ src/configure.in | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/src/acconfig.h b/src/acconfig.h index f0864d62a4..6e8df0866c 100644 --- a/src/acconfig.h +++ b/src/acconfig.h @@ -68,6 +68,9 @@ /* With this, dmalloc will report leaks made by malloc(3) calls */ #undef REPORT_ENCAPSULATED_MALLOC +/* Define this to enable atomic svalues */ +#undef ATOMIC_SVALUE + /* Define this to enable the internal Pike security system */ #undef PIKE_SECURITY diff --git a/src/configure.in b/src/configure.in index de90ac41bc..1e656f7d92 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1622,6 +1622,13 @@ MY_AC_ARG_WITH(oob, MY_DESCR([--without-oob], MY_AC_ARG_WITH(compiler-trace, MY_DESCR([--with-compiler-trace], [enable tracing of the compiler]), [AC_DEFINE(YYDEBUG)]) +MY_AC_ARG_WITH(atomic-svalue, + MY_DESCR([--with-atomic-svalue], + [change the svalue representation to one]) +MY_DESCR([],[supporting atomic changes (EXPERIMENTAL)]), + [ AC_DEFINE(ATOMIC_SVALUE) + PIKE_MSG_WARN([Atomic svalues enabled.]) + ]) AC_ARG_WITH(security, MY_DESCR([--with-security], [enable internal pike security system]), [AC_DEFINE(PIKE_SECURITY)]) -- GitLab