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