]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-ldap.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-ldap.m4
CommitLineData
b423cd4c 1dnl
f301802f 2dnl "$Id: cups-ldap.m4 5563 2006-05-21 17:18:40Z mike $"
b423cd4c 3dnl
4dnl LDAP configuration stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 2003-2006 by Easy Software Products, all rights reserved.
7dnl
8dnl These coded instructions, statements, and computer programs are the
9dnl property of Easy Software Products and are protected by Federal
10dnl copyright law. Distribution and use rights are outlined in the file
11dnl "LICENSE.txt" which should have been included with this file. If this
12dnl file is missing or damaged please contact Easy Software Products
13dnl at:
14dnl
15dnl Attn: CUPS Licensing Information
16dnl Easy Software Products
17dnl 44141 Airport View Drive, Suite 204
18dnl Hollywood, Maryland 20636 USA
19dnl
20dnl Voice: (301) 373-9600
21dnl EMail: cups-info@cups.org
22dnl WWW: http://www.cups.org/
23dnl
24
25AC_ARG_ENABLE(ldap, [ --enable-ldap turn on LDAP support, default=yes])
26AC_ARG_WITH(openldap-libs, [ --with-openldap-libs set directory for OpenLDAP library],
27 LDFLAGS="-L$withval $LDFLAGS"
28 DSOFLAGS="-L$withval $DSOFLAGS",)
29AC_ARG_WITH(openldap-includes, [ --with-openldap-includes
30 set directory for OpenLDAP includes],
31 CFLAGS="-I$withval $CFLAGS"
32 CXXFLAGS="-I$withval $CXXFLAGS"
33 CPPFLAGS="-I$withval $CPPFLAGS",)
34
35LIBLDAP=""
36
37if test x$enable_ldap != xno; then
38 AC_CHECK_HEADER(ldap.h,
f301802f 39 AC_CHECK_LIB(ldap, ldap_initialize,
b423cd4c 40 AC_DEFINE(HAVE_LDAP)
41 AC_DEFINE(HAVE_OPENLDAP)
42 LIBLDAP="-lldap"))
43fi
44
45AC_SUBST(LIBLDAP)
46
47
48dnl
f301802f 49dnl End of "$Id: cups-ldap.m4 5563 2006-05-21 17:18:40Z mike $".
b423cd4c 50dnl