ObjFW  Check-in [119a09c7af]

Overview
Comment:configure: Fix error messages around Mbed TLS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 119a09c7af3d120d330d5d0b3b15be43383ec291c02436104d608534a8dccdfa
User & Date: js on 2024-01-11 20:42:12
Other Links: manifest | tags
Context
2024-01-11
20:50
GitHub Actions: Test Mbed TLS on Ubuntu check-in: ee1e7c73be user: js tags: trunk
20:42
configure: Fix error messages around Mbed TLS check-in: 119a09c7af user: js tags: trunk
2024-01-06
15:36
OFDNSResolver: Use correct run loop mode for cache check-in: c13f9f78f1 user: js tags: trunk
Changes

Modified configure.ac from [17ac08d8ed] to [92123c5a4c].

1855
1856
1857
1858
1859
1860
1861

1862


1863
1864
1865
1866
1867
1868
1869
1855
1856
1857
1858
1859
1860
1861
1862

1863
1864
1865
1866
1867
1868
1869
1870
1871







+
-
+
+







	])

	AS_IF([test x"$with_tls" = x"mbedtls"], [
		AC_ARG_WITH(mbedtls-ca-path,
			AS_HELP_STRING([path to CA file for Mbed TLS]))

		AS_IF([test x"$with_mbedtls_ca_path" = x""], [
			AC_MSG_ERROR(m4_normalize([
			AC_MSG_ERROR([--mbedtls-ca-path needs to be specified!])
				--with-mbedtls-ca-path needs to be specified!
			]))
		])
		AC_DEFINE_UNQUOTED(OF_MBEDTLS_CA_PATH, "$with_mbedtls_ca_path",
			[Path to CA file for Mbed TLS])

		AC_CHECK_LIB(mbedtls, mbedtls_net_init, [
			AC_CHECK_HEADER(mbedtls/ssl.h, [
				tls_support="Mbed TLS"
1898
1899
1900
1901
1902
1903
1904
1905

1906
1907
1908
1909
1910
1911
1912
1900
1901
1902
1903
1904
1905
1906

1907
1908
1909
1910
1911
1912
1913
1914







-
+







			AC_SUBST(OBJFWTLS_FRAMEWORK, "ObjFWTLS.framework")
		])
	])

	AS_IF([test x"$with_tls" != x"no" -a x"$tls_support" = x"no"], [
		AC_MSG_ERROR(m4_normalize([
			No TLS implementation was found. Please install OpenSSL,
			GnuTLS or use --without-tls.
			GnuTLS, Mbed TLS or use --without-tls.
		]))
	])

	AS_IF([test x"$enable_threads" != x"no"], [
		AC_SUBST(OF_HTTP_CLIENT_TESTS_M, "OFHTTPClientTests.m")
	])