Add checks for SQL headers in configure.in (need to rerun autoheader

and autoconf); #include "ac/string.h" instead of <string.h>
This commit is contained in:
Pierangelo Masarati 2002-11-09 17:03:07 +00:00
parent 0491710fa7
commit 5794b3a2dd
4 changed files with 7 additions and 3 deletions

View file

@ -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"

View file

@ -12,7 +12,7 @@
#ifdef SLAPD_SQL
#include <stdio.h>
#include <string.h>
#include "ac/string.h"
#include <sys/types.h>
#include "slap.h"
#include "back-sql.h"

View file

@ -13,7 +13,7 @@
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include "ac/string.h"
#include "slap.h"
#include "ldap_pvt.h"
#include "back-sql.h"

View file

@ -13,7 +13,7 @@
#include <stdio.h>
#include <sys/types.h>
#include <string.h>
#include "ac/string.h"
#include "slap.h"
#include "lber_pvt.h"
#include "ldap_pvt.h"