aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2017-07-08 17:46:16 -0500
committerBrent Cook <bcook@openbsd.org>2017-07-08 17:46:16 -0500
commit9b88fa46bb727d811d95f7696d91cbc07278f65e (patch)
treee2ce2533d826ca4507ddbdfad1f2a2f3f27f065b /configure.ac
parent334245374a084ba175225c209ac9e18af5a60150 (diff)
downloadportable-9b88fa46bb727d811d95f7696d91cbc07278f65e.tar.gz
portable-9b88fa46bb727d811d95f7696d91cbc07278f65e.tar.bz2
portable-9b88fa46bb727d811d95f7696d91cbc07278f65e.zip
generate the crypto export symbol list at build time
we currently do it at configure time, which makes this a generated source, but generated sources should be cleaned up, which breaks 'make clean; make'
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac24
1 files changed, 9 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index 9fd7c2d..6f98b3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,8 +54,6 @@ CHECK_CRYPTO_COMPAT
54CHECK_VA_COPY 54CHECK_VA_COPY
55CHECK_B64_NTOP 55CHECK_B64_NTOP
56 56
57GENERATE_CRYPTO_PORTABLE_SYM
58
59AC_ARG_WITH([openssldir], 57AC_ARG_WITH([openssldir],
60 AS_HELP_STRING([--with-openssldir], 58 AS_HELP_STRING([--with-openssldir],
61 [Set the default openssl directory]), 59 [Set the default openssl directory]),
@@ -80,19 +78,15 @@ AC_TRY_COMPILE([#include "$srcdir/crypto/modes/modes_lcl.h"],
80 BSWAP4=no) 78 BSWAP4=no)
81CFLAGS="$old_cflags" 79CFLAGS="$old_cflags"
82 80
83case $host_cpu in 81AS_CASE([$host_cpu],
84 *sparc*) 82 [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"],
85 CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT" 83 [*arm*], AS_IF([test "x$BSWAP4" = "xyes"],,
86 ;; 84 CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"),
87 *arm*) 85 [*amd64*], [host_cpu=x86_64, HOSTARCH=intel],
88 AS_IF([test "x$BSWAP4" = "xyes"],, 86 [i?86], [HOSTARCH=intel],
89 CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT") 87 [x86_64], [HOSTARCH=intel]
90 ;; 88)
91 *amd64*) 89AM_CONDITIONAL([HOST_CPU_IS_INTEL], [test "x$HOSTARCH" = "xintel"])
92 host_cpu=x86_64
93 ;;
94
95esac
96 90
97AC_MSG_CHECKING([if .gnu.warning accepts long strings]) 91AC_MSG_CHECKING([if .gnu.warning accepts long strings])
98AC_LINK_IFELSE([AC_LANG_SOURCE([[ 92AC_LINK_IFELSE([AC_LANG_SOURCE([[