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
François Kooman
OpenLDAP
Commits
9cd4f91a
Commit
9cd4f91a
authored
18 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
allow to select the desired ODBC sequence (ITS#4735)
parent
efb04832
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+62
-18
62 additions, 18 deletions
configure
configure.in
+29
-8
29 additions, 8 deletions
configure.in
with
91 additions
and
26 deletions
configure
+
62
−
18
View file @
9cd4f91a
#! /bin/sh
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.63
8
2006/
09/21 15:54:37 hyc
Exp .
# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.63
9
2006/
10/11 10:36:54 kurt
Exp .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
#
...
...
@@ -1088,6 +1088,7 @@ Optional Packages:
--with-tls with TLS/SSL support [auto]
--with-yielding-select with implicitly yielding select [auto]
--with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
--with-odbc with specific ODBC support iodbc|unixodbc|auto [auto]
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-pic try to use only PIC/non-PIC objects [default=use
both]
...
...
@@ -2449,6 +2450,29 @@ else
ol_with_mp="auto"
fi; # end --with-mp
# OpenLDAP --with-odbc
# Check whether --with-odbc or --without-odbc was given.
if test "${with_odbc+set}" = set; then
withval="$with_odbc"
ol_arg=invalid
for ol_val in auto iodbc unixodbc ; do
if test "$withval" = "$ol_val" ; then
ol_arg="$ol_val"
fi
done
if test "$ol_arg" = "invalid" ; then
{ { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
{ (exit 1); exit 1; }; }
fi
ol_with_odbc="$ol_arg"
else
ol_with_odbc="auto"
fi; # end --with-odbc
# Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
...
...
@@ -5662,7 +5686,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 56
65
"configure"' > conftest.$ac_ext
echo '#line 56
89
"configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
...
...
@@ -7642,11 +7666,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:76
45
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:76
69
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:76
49
: \$? = $ac_status" >&5
echo "$as_me:76
73
: \$? = $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.
...
...
@@ -7904,11 +7928,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:79
07
: $lt_compile\"" >&5)
(eval echo "\"\$as_me:79
31
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:79
11
: \$? = $ac_status" >&5
echo "$as_me:79
35
: \$? = $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.
...
...
@@ -7966,11 +7990,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:79
6
9: $lt_compile\"" >&5)
(eval echo "\"\$as_me:799
3
: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:797
3
: \$? = $ac_status" >&5
echo "$as_me:79
9
7: \$? = $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
...
...
@@ -10214,7 +10238,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 1021
7
"configure"
#line 102
4
1 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -10312,7 +10336,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 103
15
"configure"
#line 103
39
"configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
...
...
@@ -32184,7 +32208,15 @@ done
sql_LIBS="$LIBS"
LIBS="$LTHREAD_LIBS"
echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
if test $ol_with_odbc = auto ; then
ol_with_odbc="iodbc unixodbc"
fi
for odbc in $ol_with_odbc ; do
if test $ol_link_sql = no ; then
case $odbc in
iodbc)
echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
...
...
@@ -32254,10 +32286,13 @@ else
have_iodbc=no
fi
if test $have_iodbc = yes ; then
ol_link_sql="-liodbc"
else
echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
if test $have_iodbc = yes ; then
ol_link_sql="-liodbc"
fi
;;
unixodbc)
echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
...
...
@@ -32327,10 +32362,19 @@ else
have_odbc=no
fi
if test $have_odbc = yes ; then
ol_link_sql="-lodbc"
if test $have_odbc = yes ; then
ol_link_sql="-lodbc"
fi
;;
*)
{ { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
echo "$as_me: error: unknown ODBC library" >&2;}
{ (exit 1); exit 1; }; }
;;
esac
fi
fi
done
LIBS="$sql_LIBS"
This diff is collapsed.
Click to expand it.
configure.in
+
29
−
8
View file @
9cd4f91a
...
...
@@ -254,6 +254,9 @@ OL_ARG_WITH(yielding_select,
OL_ARG_WITH(mp,
[ --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp],
auto, [auto longlong long bignum gmp yes no])
OL_ARG_WITH(odbc,
[ --with-odbc with specific ODBC support iodbc|unixodbc|auto],
auto, [auto iodbc unixodbc] )
dnl ----------------------------------------------------------------
dnl Server options
...
...
@@ -2071,16 +2074,34 @@ if test $ol_enable_sql != no ; then
sql_LIBS="$LIBS"
LIBS="$LTHREAD_LIBS"
AC_CHECK_LIB(iodbc,SQLDriverConnect,[have_iodbc=yes],[have_iodbc=no])
if test $have_iodbc = yes ; then
ol_link_sql="-liodbc"
else
AC_CHECK_LIB(odbc,SQLDriverConnect,[have_odbc=yes],[have_odbc=no])
if test $have_odbc = yes ; then
ol_link_sql="-lodbc"
fi
if test $ol_with_odbc = auto ; then
ol_with_odbc="iodbc unixodbc"
fi
for odbc in $ol_with_odbc ; do
if test $ol_link_sql = no ; then
case $odbc in
iodbc)
AC_CHECK_LIB(iodbc, SQLDriverConnect, [have_iodbc=yes], [have_iodbc=no])
if test $have_iodbc = yes ; then
ol_link_sql="-liodbc"
fi
;;
unixodbc)
AC_CHECK_LIB(odbc, SQLDriverConnect, [have_odbc=yes], [have_odbc=no])
if test $have_odbc = yes ; then
ol_link_sql="-lodbc"
fi
;;
*)
AC_MSG_ERROR([unknown ODBC library])
;;
esac
fi
done
LIBS="$sql_LIBS"
if test $ol_link_sql != no ; then
...
...
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