]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-slp.m4
60141d49a9aa6e10ed4b0aeeb8c6573383037cbc
[thirdparty/cups.git] / config-scripts / cups-slp.m4
1 dnl
2 dnl "$Id: cups-slp.m4 6649 2007-07-11 21:46:42Z mike $"
3 dnl
4 dnl OpenSLP configuration stuff for the Common UNIX Printing System (CUPS).
5 dnl
6 dnl Copyright 2007 by Apple Inc.
7 dnl Copyright 1997-2005 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(slp, [ --enable-slp turn on SLP support, default=yes])
17 AC_ARG_WITH(openslp-libs, [ --with-openslp-libs set directory for OpenSLP library],
18 LDFLAGS="-L$withval $LDFLAGS"
19 DSOFLAGS="-L$withval $DSOFLAGS",)
20 AC_ARG_WITH(openslp-includes, [ --with-openslp-includes set directory for OpenSLP includes],
21 CFLAGS="-I$withval $CFLAGS"
22 CXXFLAGS="-I$withval $CXXFLAGS"
23 CPPFLAGS="-I$withval $CPPFLAGS",)
24
25 LIBSLP=""
26
27 if test x$enable_slp != xno; then
28 AC_CHECK_HEADER(slp.h,
29 AC_CHECK_LIB(slp, SLPOpen,
30 AC_DEFINE(HAVE_LIBSLP)
31 LIBSLP="-lslp"))
32 fi
33
34 AC_SUBST(LIBSLP)
35
36
37 dnl
38 dnl End of "$Id: cups-slp.m4 6649 2007-07-11 21:46:42Z mike $".
39 dnl