From: Pierangelo Masarati Date: Sat, 9 Nov 2002 17:03:07 +0000 (+0000) Subject: Add checks for SQL headers in configure.in (need to rerun autoheader X-Git-Tag: NO_SLAP_OP_BLOCKS~811 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5794b3a2dd58fd61a19cfb63943a35e49d9b75a7;p=openldap Add checks for SQL headers in configure.in (need to rerun autoheader and autoconf); #include "ac/string.h" instead of --- diff --git a/configure.in b/configure.in index 381ee80a56..346865f0c2 100644 --- a/configure.in +++ b/configure.in @@ -2090,6 +2090,10 @@ dnl ---------------------------------------------------------------- dnl SQL ol_link_sql=no if test $ol_enable_sql != no ; then + AC_CHECK_HEADERS(sql.h sqlext.h,[],[ + AC_MSG_ERROR([could not locate SQL headers]) + ]) + AC_CHECK_LIB(iodbc,SQLDriverConnect,[have_iodbc=yes],[have_iodbc=no]) if test $have_iodbc = yes ; then ol_link_sql="-liodbc" diff --git a/servers/slapd/back-sql/config.c b/servers/slapd/back-sql/config.c index e26c6b9489..4508bef971 100644 --- a/servers/slapd/back-sql/config.c +++ b/servers/slapd/back-sql/config.c @@ -12,7 +12,7 @@ #ifdef SLAPD_SQL #include -#include +#include "ac/string.h" #include #include "slap.h" #include "back-sql.h" diff --git a/servers/slapd/back-sql/modify.c b/servers/slapd/back-sql/modify.c index d83eec1837..3511ce9240 100644 --- a/servers/slapd/back-sql/modify.c +++ b/servers/slapd/back-sql/modify.c @@ -13,7 +13,7 @@ #include #include -#include +#include "ac/string.h" #include "slap.h" #include "ldap_pvt.h" #include "back-sql.h" diff --git a/servers/slapd/back-sql/schema-map.c b/servers/slapd/back-sql/schema-map.c index 2f9fd207b7..c78620445f 100644 --- a/servers/slapd/back-sql/schema-map.c +++ b/servers/slapd/back-sql/schema-map.c @@ -13,7 +13,7 @@ #include #include -#include +#include "ac/string.h" #include "slap.h" #include "lber_pvt.h" #include "ldap_pvt.h"