diff options
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/configure.in b/configure.in index ddd5bdf4f..c7f51b672 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ AC_PREREQ(2.50) dnl First some basic init macros AC_INIT AC_CONFIG_SRCDIR([lib/urldata.h]) -AM_CONFIG_HEADER(lib/config.h src/config.h tests/server/config.h) +AM_CONFIG_HEADER(lib/config.h src/config.h tests/server/config.h lib/ca-bundle.h) dnl figure out the libcurl version VERSION=`sed -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curl.h` @@ -691,6 +691,32 @@ AC_PATH_PROGS( NROFF, gnroff nroff, , $PATH:/usr/bin/:/usr/local/bin ) AC_SUBST(NROFF) + +AC_MSG_CHECKING([CA cert bundle install path]) + +AC_ARG_WITH(ca-bundle, +AC_HELP_STRING([--with-ca-bundle=FILE], [File name to install the CA bundle as]) +AC_HELP_STRING([--without-ca-bundle], [Don't install the CA bundle]), + [ ca="$withval" ], + [ + if test "x$prefix" != xNONE; then + ca="$prefix/share/curl/curl-ca-bundle.crt" + else + ca="$ac_default_prefix/share/curl/curl-ca-bundle.crt" + fi + ] ) + +if test "x$ca" = "xno"; then + dnl let's not keep "no" as path name, blank it instead + ca="" +else + AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, $ca, [CA bundle full path name]) +fi + +CURL_CA_BUNDLE="$ca" +AC_SUBST(CURL_CA_BUNDLE) +AC_MSG_RESULT([$ca]) + AC_PROG_YACC dnl AC_PATH_PROG( RANLIB, ranlib, /usr/bin/ranlib, |
