aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac.tpl5
-rw-r--r--crypto/Makefile.am.tpl6
2 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac.tpl b/configure.ac.tpl
index 84d2f69..ac66565 100644
--- a/configure.ac.tpl
+++ b/configure.ac.tpl
@@ -105,6 +105,11 @@ AC_CHECK_FUNC(strtonum,[AC_SEARCH_LIBS(write,, [NO_STRTONUM=],
105AC_SUBST(NO_STRTONUM) 105AC_SUBST(NO_STRTONUM)
106AM_CONDITIONAL(NO_STRTONUM, test "x$NO_STRTONUM" = "xyes") 106AM_CONDITIONAL(NO_STRTONUM, test "x$NO_STRTONUM" = "xyes")
107 107
108AC_CHECK_FUNC(explicit_bzero,[AC_SEARCH_LIBS(write,, [NO_EXPLICIT_BZERO=],
109 [NO_EXPLICIT_BZERO=yes])], [NO_EXPLICIT_BZERO=yes])
110AC_SUBST(NO_EXPLICIT_BZERO)
111AM_CONDITIONAL(NO_EXPLICIT_BZERO, test "x$NO_EXPLICIT_BZERO" = "xyes")
112
108AC_CHECK_FUNC(getauxval, AC_DEFINE(HAVE_GETAUXVAL)) 113AC_CHECK_FUNC(getauxval, AC_DEFINE(HAVE_GETAUXVAL))
109 114
110AC_CHECK_FUNC(funopen, AC_DEFINE(HAVE_FUNOPEN)) 115AC_CHECK_FUNC(funopen, AC_DEFINE(HAVE_FUNOPEN))
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl
index ac87a77..6e1c423 100644
--- a/crypto/Makefile.am.tpl
+++ b/crypto/Makefile.am.tpl
@@ -14,7 +14,11 @@ noinst_LTLIBRARIES = libcompat.la libcompatnoopt.la
14 14
15# compatibility functions that need to be built without optimizations 15# compatibility functions that need to be built without optimizations
16libcompatnoopt_la_CFLAGS = -O0 16libcompatnoopt_la_CFLAGS = -O0
17libcompatnoopt_la_SOURCES = compat/explicit_bzero.c 17libcompatnoopt_la_SOURCES =
18
19if NO_EXPLICIT_BZERO
20libcompatnoopt_la_SOURCES += compat/explicit_bzero.c
21endif
18 22
19# other compatibility functions 23# other compatibility functions
20libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) 24libcompat_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)