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