aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-18 09:28:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-18 09:28:55 +0000
commit1ee7f92ce4da92337cb284cb19d4c73a4d5fc8eb (patch)
treee88e0933d301b62cffec4d6c6d343c714a287cd5 /configure.in
parent3fd65fb7d83a8e3e6acd1a40c48b46088ebd536f (diff)
configure sets variables that curl-config uses to display what features
that have been built-in
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in40
1 files changed, 39 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 12607fa36..ee36ce3d1 100644
--- a/configure.in
+++ b/configure.in
@@ -82,6 +82,9 @@ void main(void) {
if test "$ac_cv_working_getaddrinfo" = "yes"; then
AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo exists and works])
AC_DEFINE(ENABLE_IPV6, 1, [Define if you want to enable IPv6 support])
+
+ IPV6_ENABLED=1
+ AC_SUBST(IPV6_ENABLED)
fi
])
@@ -506,6 +509,10 @@ then
dnl add define KRB4
AC_DEFINE(KRB4)
+ dnl substitute it too!
+ KRB4_ENABLED=1
+ AC_SUBST(KRB4_ENABLED)
+
dnl the krb4 stuff needs a strlcpy()
AC_CHECK_FUNCS(strlcpy)
@@ -572,14 +579,45 @@ else
dnl Check for SSLeay headers
- AC_CHECK_HEADERS(openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h)
+ AC_CHECK_HEADERS(openssl/x509.h openssl/rsa.h openssl/crypto.h \
+ openssl/pem.h openssl/ssl.h openssl/err.h)
if test $ac_cv_header_openssl_x509_h = no; then
AC_CHECK_HEADERS(x509.h rsa.h crypto.h pem.h ssl.h err.h)
fi
+ dnl
+ dnl If all heades are present, we have enabled SSL!
+ if test "$ac_cv_header_openssl_x509_h" = "yes" &&
+ test "$ac_cv_header_openssl_rsa_h" = "yes" &&
+ test "$ac_cv_header_openssl_crypto_h" = "yes" &&
+ test "$ac_cv_header_openssl_pem_h" = "yes" &&
+ test "$ac_cv_header_openssl_ssl_h" = "yes" &&
+ test "$ac_cv_header_openssl_err_h" = "yes"; then
+ OPENSSL_ENABLED="1";
+ fi
+
+ dnl
+ dnl Check the alternative headers too
+ if test "$ac_cv_header_x509_h" = "yes" &&
+ test "$ac_cv_header_rsa_h" = "yes" &&
+ test "$ac_cv_header_crypto_h" = "yes" &&
+ test "$ac_cv_header_pem_h" = "yes" &&
+ test "$ac_cv_header_ssl_h" = "yes" &&
+ test "$ac_cv_header_err_h" = "yes"; then
+ OPENSSL_ENABLED="1";
+ fi
+
+ AC_SUBST(OPENSSL_ENABLED)
+
fi
+ if test X"$OPT_SSL" != Xoff &&
+ test "$OPENSSL_ENABLED" != "1"; then
+ AC_MSG_ERROR([OpenSSL libs and/or directories were not found where specified!])
+ fi
+
+
dnl these can only exist if openssl exists
AC_CHECK_FUNCS( RAND_status \