aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2015-07-17 16:54:23 -0500
committerBrent Cook <bcook@openbsd.org>2015-07-17 16:54:23 -0500
commita1a0f2c6e2c3029020d0f6d0a4277483af05822e (patch)
tree9a92211446e69453753840ad2a945bf8c38dcd39 /configure.ac
parentfafc3e47f24d9ac25eb41221e2d91ee0b17f5c5b (diff)
downloadportable-a1a0f2c6e2c3029020d0f6d0a4277483af05822e.tar.gz
portable-a1a0f2c6e2c3029020d0f6d0a4277483af05822e.tar.bz2
portable-a1a0f2c6e2c3029020d0f6d0a4277483af05822e.zip
implement compatibility shim for __warn_references
This will allow us to warn about deprecated function references at link-time.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 43ef0cd..91ae7ce 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,18 @@ case $host_cpu in
88 ;; 88 ;;
89esac 89esac
90 90
91AC_MSG_CHECKING([if .gnu.warning accepts long strings])
92AC_LINK_IFELSE([AC_LANG_SOURCE([[
93extern void SSLv3_method();
94__asm__(".section .gnu.warning.SSLv3_method; .ascii \"SSLv3_method is insecure\" ; .text");
95int main() {return 0;}
96]])], [
97 AC_DEFINE(HAS_GNU_WARNING_LONG, 1, [Define if .gnu.warning accepts long strings.])
98 AC_MSG_RESULT(yes)
99], [
100 AC_MSG_RESULT(no)
101])
102
91AC_ARG_ENABLE([asm], 103AC_ARG_ENABLE([asm],
92 AS_HELP_STRING([--disable-asm], [Disable assembly])) 104 AS_HELP_STRING([--disable-asm], [Disable assembly]))
93AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"]) 105AM_CONDITIONAL([OPENSSL_NO_ASM], [test "x$enable_asm" = "xno"])