]> 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
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
bc44d920 6dnl Copyright 2007 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"
23 CXXFLAGS="-I$withval $CXXFLAGS"
24 CPPFLAGS="-I$withval $CPPFLAGS",)
25
26LIBLDAP=""
27
28if test x$enable_ldap != xno; then
29 AC_CHECK_HEADER(ldap.h,
f301802f 30 AC_CHECK_LIB(ldap, ldap_initialize,
b423cd4c 31 AC_DEFINE(HAVE_LDAP)
32 AC_DEFINE(HAVE_OPENLDAP)
33 LIBLDAP="-lldap"))
34fi
35
36AC_SUBST(LIBLDAP)
37
38
39dnl
bc44d920 40dnl End of "$Id: cups-ldap.m4 6649 2007-07-11 21:46:42Z mike $".
b423cd4c 41dnl