]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | dnl |
bc44d920 | 2 | dnl "$Id: cups-slp.m4 6649 2007-07-11 21:46:42Z mike $" |
ef416fc2 | 3 | dnl |
4 | dnl OpenSLP configuration stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
bc44d920 | 6 | dnl Copyright 2007 by Apple Inc. |
ef416fc2 | 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 | |
bc44d920 | 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/". | |
ef416fc2 | 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 | |
bc44d920 | 38 | dnl End of "$Id: cups-slp.m4 6649 2007-07-11 21:46:42Z mike $". |
ef416fc2 | 39 | dnl |