Differences From Artifact [1eafb580d4]:
- File
configure.ac
— part of check-in
[32bcbfa301]
at
2018-11-05 22:24:15
on branch trunk
— configure: Do not use pkg-config to find OpenSSL
This allows working with both OpenSSL and LibreSSL. (user: js, size: 1876) [annotate] [blame] [check-ins using]
To Artifact [74b3799f6c]:
- File configure.ac — part of check-in [67a5b6b160] at 2019-01-16 23:16:00 on branch trunk — configure: Add --with-openssl=PREFIX (user: js, size: 2093) [annotate] [blame] [check-ins using]
︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | + + + + + + + - | ]) AC_ARG_ENABLE(static, AS_HELP_STRING([--enable-static], [build static library])) AS_IF([test x"$enable_static" = x"yes" -o x"$enable_shared" = x"no"], [ AC_PATH_TOOL(AR, ar) AC_PROG_RANLIB AC_SUBST(OBJOPENSSL_STATIC_LIB, "libobjopenssl.a") ]) AC_ARG_WITH(openssl, AS_HELP_STRING([--with-openssl=PREFIX], [build with OpenSSL in the specified prefix])) AS_IF([test x"$with_openssl" != x"no"], [ CPPFLAGS="$CPPFLAGS -I$with_openssl/include" LIBS="$LIBS -L$with_openssl/lib" ]) AC_CHECK_LIB(ssl, main, [ LIBS="$LIBS -lssl -lcrypto" ], [ AC_MSG_ERROR(You need openssl >= 1.0.2 installed!) ], [-lcrypto]) AS_IF([test x"$GOBJC" = x"yes"], [ OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror" ]) BUILDSYS_INIT dnl We don't call AC_PROG_CPP, but only AC_PROG_OBJCPP and set CPP to OBJCPP dnl and add OBJCPPFLAGS to CPPFLAGS, thus we need to AC_SUBST these ourself. AC_SUBST(CPP) AC_SUBST(CPPFLAGS) |