Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
7660018e
Commit
7660018e
authored
19 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
cleanup --with-tls handle
parent
c57eb180
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build/openldap.m4
+4
-5
4 additions, 5 deletions
build/openldap.m4
configure
+25
-26
25 additions, 26 deletions
configure
configure.in
+14
-14
14 additions, 14 deletions
configure.in
with
43 additions
and
45 deletions
build/openldap.m4
+
4
−
5
View file @
7660018e
...
...
@@ -1439,17 +1439,16 @@ AC_DEFUN([OL_SASL_COMPAT],
dnl ====================================================================
dnl check for SSL compatibility
AC_DEFUN([OL_SSL_COMPAT],
[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)], [ol_cv_ssl_crl_compat],[
AC_EGREP_CPP(__ssl_compat,[
[AC_CACHE_CHECK([OpenSSL library version (CRL checking capability)],
[ol_cv_ssl_crl_compat],[
AC_EGREP_CPP(__ssl_compat,[
#ifdef HAVE_OPENSSL_SSL_H
#include <openssl/ssl.h>
#else
#include <ssl.h>
#endif
/* Require 0.9.7d+ */
#if OPENSSL_VERSION_NUMBER >= 0x0090704fL
char *__ssl_compat = "0.9.7d";
#endif
],
[ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
],
[ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])])
])
This diff is collapsed.
Click to expand it.
configure
+
25
−
26
View file @
7660018e
#! /bin/sh
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.62
6
2006/02/1
0
0
7
:2
1:09 kurt
Exp .
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.62
8
2006/02/1
3
0
1
:2
4:33 lukeh
Exp .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
#
...
...
@@ -5764,7 +5764,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 57
40
"configure"' > conftest.$ac_ext
echo '#line 57
67
"configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
...
...
@@ -7744,11 +7744,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:77
20
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:77
47
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:77
24
: \$? = $ac_status" >&5
echo "$as_me:77
51
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
...
...
@@ -8006,11 +8006,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:
7982
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:
8009
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:
7986
: \$? = $ac_status" >&5
echo "$as_me:
8013
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
...
...
@@ -8068,11 +8068,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:80
44
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:80
71
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:80
48
: \$? = $ac_status" >&5
echo "$as_me:80
75
: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
...
...
@@ -10316,7 +10316,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 10
292
"configure"
#line 10
319
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -10414,7 +10414,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 10
390
"configure"
#line 10
417
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -19309,8 +19309,12 @@ echo "$as_me: error: Kerberos detection failed" >&2;}
fi
if test $ol_with_tls = yes ; then
ol_with_tls=auto
fi
ol_link_tls=no
if test $ol_with_tls
!
=
n
o ; then
if test $ol_with_tls =
openssl || test $ol_with_tls = aut
o ; then
for ac_header in openssl/ssl.h
do
...
...
@@ -19610,7 +19614,7 @@ fi
fi
if test $have_openssl = yes ; then
ol_with_tls=
found
ol_with_tls=
openssl
ol_link_tls=yes
...
...
@@ -19630,14 +19634,14 @@ _ACEOF
else
TLS_LIBS="-lssl -lcrypto"
fi
fi
echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
if test "${ol_cv_ssl_crl_compat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
...
...
@@ -19646,8 +19650,6 @@ cat >>conftest.$ac_ext <<_ACEOF
#ifdef HAVE_OPENSSL_SSL_H
#include <openssl/ssl.h>
#else
#include <ssl.h>
#endif
/* Require 0.9.7d+ */
...
...
@@ -19668,20 +19670,15 @@ fi
echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
if test $ol_cv_ssl_crl_compat = no ; then
ol_link_ssl=no
else
if test $ol_cv_ssl_crl_compat = yes ; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_OPENSSL_CRL 1
_ACEOF
fi
fi
fi
else
{ echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
fi
WITH_TLS=no
...
...
@@ -19692,17 +19689,18 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
WITH_TLS=yes
elif test $ol_with_tls = auto ; then
{ echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
{ echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
elif test $ol_with_tls != no ; then
{ { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
{ (exit 1); exit 1; }; }
else
{ echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
fi
if test $ol_enable_lmpasswd != no; then
...
...
@@ -45282,6 +45280,7 @@ fi
# Check whether --with-xxinstall or --without-xxinstall was given.
This diff is collapsed.
Click to expand it.
configure.in
+
14
−
14
View file @
7660018e
...
...
@@ -1324,8 +1324,12 @@ fi
dnl ----------------------------------------------------------------
dnl TLS/SSL
if test $ol_with_tls = yes ; then
ol_with_tls=auto
fi
ol_link_tls=no
if test $ol_with_tls
!
=
n
o ; then
if test $ol_with_tls =
openssl || test $ol_with_tls = aut
o ; then
AC_CHECK_HEADERS(openssl/ssl.h)
if test $ac_cv_header_openssl_ssl_h = yes ; then
...
...
@@ -1342,7 +1346,7 @@ if test $ol_with_tls != no ; then
fi
if test $have_openssl = yes ; then
ol_with_tls=
found
ol_with_tls=
openssl
ol_link_tls=yes
AC_DEFINE(HAVE_OPENSSL, 1,
...
...
@@ -1356,31 +1360,27 @@ if test $ol_with_tls != no ; then
else
TLS_LIBS="-lssl -lcrypto"
fi
fi
OL_SSL_COMPAT
if test $ol_cv_ssl_crl_compat = no ; then
ol_link_ssl=no
else
AC_DEFINE(HAVE_OPENSSL_CRL, 1,
[define if you have OpenSSL with CRL checking capability])
OL_SSL_COMPAT
if test $ol_cv_ssl_crl_compat = yes ; then
AC_DEFINE(HAVE_OPENSSL_CRL, 1,
[define if you have OpenSSL with CRL checking capability])
fi
fi
fi
else
AC_MSG_WARN([TLS data protection not supported!])
fi
WITH_TLS=no
if test $ol_link_tls = yes ; then
AC_DEFINE(HAVE_TLS, 1, [define if you have TLS])
WITH_TLS=yes
elif test $ol_with_tls = auto ; then
AC_MSG_WARN([Could not locate TLS/SSL package])
AC_MSG_WARN([TLS data protection not supported!])
elif test $ol_with_tls != no ; then
AC_MSG_ERROR([Could not locate TLS/SSL package])
else
AC_MSG_WARN([TLS data protection not supported!])
fi
dnl ----------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment