From: Quanah Gibson-Mount Date: Thu, 24 Mar 2011 01:52:17 +0000 (+0000) Subject: ITS#6125 X-Git-Tag: OPENLDAP_REL_ENG_2_4_25~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9273637f2dd162bdc2b4f63de3588b30f1f371c1;p=openldap ITS#6125 --- diff --git a/configure b/configure index b218376a2e..4fd8f0af4e 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.33 2011/01/31 20:51:37 hyc Exp . +# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.32 2011/01/04 23:49:25 kurt Exp . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65. # @@ -21730,6 +21730,39 @@ else have_odbc32=no fi + + if test $have_odbc32 = no ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5 +$as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; } + save_LIBS="$LIBS" + LIBS="$LIBS -lodbc32" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + #include + +int +main () +{ + + SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + have_odbc32=yes +else + have_odbc32=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5 +$as_echo "$have_odbc32" >&6; } + fi + if test $have_odbc32 = yes ; then ol_link_sql="-lodbc32" fi