From c3e1e50cb19621ec5bcea424868f8e70fde60cdf Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 15 Feb 2023 19:32:16 -0600 Subject: update Makefile.am.tpl to build and install correct opensslconf.h --- include/openssl/Makefile.am.tpl | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/include/openssl/Makefile.am.tpl b/include/openssl/Makefile.am.tpl index 1bea34d..167183a 100644 --- a/include/openssl/Makefile.am.tpl +++ b/include/openssl/Makefile.am.tpl @@ -3,4 +3,40 @@ include $(top_srcdir)/Makefile.am.common if !ENABLE_LIBTLS_ONLY opensslincludedir=$(includedir)/openssl -opensslinclude_HEADERS = +noinst_HEADERS = opensslconf.h.in +BUILT_SOURCES = opensslconf.h +CLEANFILES = opensslconf.h + +opensslconf.h: opensslconf.h.in Makefile + -echo "generating opensslconf.h ..." + -cp $(top_srcdir)/include/openssl/opensslconf.h.in opensslconf.h + -chmod u+w opensslconf.h +if HOST_AARCH64 + -cat $(top_srcdir)/include/arch/aarch64/opensslconf.h >> opensslconf.h +endif +if HOST_ARM + -cat $(top_srcdir)/include/arch/arm/opensslconf.h >> opensslconf.h +endif +if HOST_I386 + -cat $(top_srcdir)/include/arch/i386/opensslconf.h >> opensslconf.h +endif +if HOST_MIPS64 + -cat $(top_srcdir)/include/arch/mips64/opensslconf.h >> opensslconf.h +endif +if HOST_POWERPC + -cat $(top_srcdir)/include/arch/powerpc/opensslconf.h >> opensslconf.h +endif +if HOST_POWERPC64 + -cat $(top_srcdir)/include/arch/powerpc64/opensslconf.h >> opensslconf.h +endif +if HOST_RISCV64 + -cat $(top_srcdir)/include/arch/riscv64/opensslconf.h >> opensslconf.h +endif +if HOST_SPARC64 + -cat $(top_srcdir)/include/arch/sparc64/opensslconf.h >> opensslconf.h +endif +if HOST_X86_64 + -cat $(top_srcdir)/include/arch/amd64/opensslconf.h >> opensslconf.h +endif + +opensslinclude_HEADERS = opensslconf.h -- cgit v1.2.3-55-g6feb