X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.in;h=a0f0713bdf03f16ba6b7f5dd63a0c7a62719f557;hb=528ea2f808af3fbea0a0f12cb5c61f0c78632afb;hp=5d5684f0f48122b8af9c6851264e12408f893dd0;hpb=b5bba83a31e8f5c1cf82214ab88c294fe8cf3fd9;p=openldap diff --git a/configure.in b/configure.in index 5d5684f0f4..a0f0713bdf 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl $OpenLDAP$ dnl This work is part of OpenLDAP Software . dnl -dnl Copyright 1998-2003 The OpenLDAP Foundation. +dnl Copyright 1998-2004 The OpenLDAP Foundation. dnl All rights reserved. dnl dnl Redistribution and use in source and binary forms, with or without @@ -23,7 +23,7 @@ define([AC_INIT_BINSH], # This work is part of OpenLDAP Software . # -# Copyright 1998-2003 The OpenLDAP Foundation. +# Copyright 1998-2004 The OpenLDAP Foundation. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -34,7 +34,7 @@ define([AC_INIT_BINSH], # top-level directory of the distribution or, alternatively, at # . -echo "Copyright 1998-2003 The OpenLDAP Foundation. All rights reserved." +echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved." echo " Restrictions apply, see COPYRIGHT and LICENSE files." ])dnl dnl ---------------------------------------------------------------- @@ -815,15 +815,15 @@ else ol_with_sql_module=static if test $ol_with_dyngroup = mod ; then AC_MSG_WARN([building static dyngroup overlay]) - ol_with_dyngroup = yes + ol_with_dyngroup=yes fi if test $ol_with_proxycache = mod ; then AC_MSG_WARN([building static proxycache overlay]) - ol_with_proxycache = yes + ol_with_proxycache=yes fi if test $ol_with_rwm = mod ; then AC_MSG_WARN([building static rwm overlay]) - ol_with_rwm = yes + ol_with_rwm=yes fi fi @@ -847,6 +847,7 @@ AC_CHECK_HEADERS( \ arpa/inet.h \ arpa/nameser.h \ assert.h \ + bits/types.h \ conio.h \ crypt.h \ direct.h \ @@ -897,8 +898,6 @@ AC_CHECK_HEADERS( \ dnl ---------------------------------------------------------------- dnl Checks for libraries -AC_CHECK_FUNC(dlopen, :, [AC_CHECK_LIB(dl, dlopen)]) - dnl HP-UX requires -lV3 dnl this is not needed on newer versions of HP-UX AC_CHECK_LIB(V3, sigset) @@ -906,40 +905,37 @@ AC_CHECK_LIB(V3, sigset) dnl The following is INTENTIONALLY scripted out because shell does not dnl support variable names with the '@' character, which is what dnl autoconf would try to generate if one merely used AC_SEARCH_LIBS -AC_MSG_CHECKING(for winsock) +if test "$ac_cv_header_winsock_h" = yes; then +AC_CACHE_CHECK([for winsock], [ol_cv_winsock], save_LIBS="$LIBS" for curlib in ws2_32 wsock32; do LIBS="$LIBS -l$curlib" - AC_TRY_LINK([ - char socket@12(); - char select@20(); - char closesocket@4(); - char gethostname@8(); + AC_TRY_LINK([#include ], [ - socket@12(); - select@20(); - closesocket@4(); - gethostname@8(); + socket(0,0,0); + select(0,NULL,NULL,NULL,NULL); + closesocket(0); + gethostname(NULL,0); ], - have_winsock=yes, have_winsock=no) + ol_cv_winsock=yes, ol_cv_winsock=no) - if test $have_winsock = yes; then + if test $ol_cv_winsock = yes; then AC_DEFINE(HAVE_WINSOCK, 1, [define if you have winsock]) ac_cv_func_socket=yes ac_cv_func_select=yes ac_cv_func_closesocket=yes ac_cv_func_gethostname=yes if test $curlib = ws2_32; then - have_winsock=winsock2 + ol_cv_winsock=winsock2 AC_DEFINE(HAVE_WINSOCK2, 1, [define if you have winsock2]) fi break fi LIBS="$save_LIBS" -done -AC_MSG_RESULT($have_winsock) +done) +fi dnl Find socket() dnl Likely combinations: @@ -1008,12 +1004,12 @@ if test $have_uuid = no ; then save_LIBS="$LIBS" LIBS="$LIBS -lrpcrt4" AC_TRY_LINK([ - char UuidCreate@4(); - char UuidToStringA@8(); + int __stdcall UuidCreate(void *); + int __stdcall UuidToStringA(void *,void **); ], [ - UuidCreate@4(); - UuidToStringA@8(); + UuidCreate(0); + UuidToStringA(0,0); ], need_rpcrt=yes, need_rpcrt=no) if test $need_rpcrt = yes; then @@ -2941,7 +2937,7 @@ servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \ servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \ servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \ -servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk:build/lib-shared.mk \ +servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \ servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \ servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \ tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \