]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-ldap.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-ldap.m4
1 dnl
2 dnl "$Id: cups-ldap.m4 6649 2007-07-11 21:46:42Z mike $"
3 dnl
4 dnl LDAP configuration stuff for the Common UNIX Printing System (CUPS).
5 dnl
6 dnl Copyright 2007 by Apple Inc.
7 dnl Copyright 2003-2006 by Easy Software Products, all rights reserved.
8 dnl
9 dnl These coded instructions, statements, and computer programs are the
10 dnl property of Apple Inc. and are protected by Federal copyright
11 dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 dnl which should have been included with this file. If this file is
13 dnl file is missing or damaged, see the license at "http://www.cups.org/".
14 dnl
15
16 AC_ARG_ENABLE(ldap, [ --enable-ldap turn on LDAP support, default=yes])
17 AC_ARG_WITH(openldap-libs, [ --with-openldap-libs set directory for OpenLDAP library],
18 LDFLAGS="-L$withval $LDFLAGS"
19 DSOFLAGS="-L$withval $DSOFLAGS",)
20 AC_ARG_WITH(openldap-includes, [ --with-openldap-includes
21 set directory for OpenLDAP includes],
22 CFLAGS="-I$withval $CFLAGS"
23 CXXFLAGS="-I$withval $CXXFLAGS"
24 CPPFLAGS="-I$withval $CPPFLAGS",)
25
26 LIBLDAP=""
27
28 if test x$enable_ldap != xno; then
29 AC_CHECK_HEADER(ldap.h,
30 AC_CHECK_LIB(ldap, ldap_initialize,
31 AC_DEFINE(HAVE_LDAP)
32 AC_DEFINE(HAVE_OPENLDAP)
33 LIBLDAP="-lldap"))
34 fi
35
36 AC_SUBST(LIBLDAP)
37
38
39 dnl
40 dnl End of "$Id: cups-ldap.m4 6649 2007-07-11 21:46:42Z mike $".
41 dnl