]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
5 # CUPS configuration utility.
7 # Copyright 2007-2011 by Apple Inc.
8 # Copyright 2001-2006 by Easy Software Products, all rights reserved.
10 # These coded instructions, statements, and computer programs are the
11 # property of Apple Inc. and are protected by Federal copyright
12 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 # which should have been included with this file. If this file is
14 # file is missing or damaged, see the license at "http://www.cups.org/".
17 VERSION
="@CUPS_VERSION@"
22 exec_prefix
=@exec_prefix@
24 includedir
=@includedir@
29 sysconfdir
=@sysconfdir@
30 cups_datadir
=@CUPS_DATADIR@
31 cups_serverbin
=@CUPS_SERVERBIN@
32 cups_serverroot
=@CUPS_SERVERROOT@
33 INSTALLSTATIC
=@INSTALLSTATIC@
35 # flags for C++ compiler:
37 LDFLAGS
="@EXPORT_LDFLAGS@"
38 LIBS
="@LIBGSSAPI@ @EXPORT_SSLLIBS@ @LIBZ@ @LIBS@"
40 # Check for local invocation...
43 if test -f "$selfdir/cups/cups.h"; then
45 LDFLAGS
="-L$selfdir/cups -L$selfdir/filter $LDFLAGS"
46 libdir
="$selfdir/cups"
47 imagelibdir
="$selfdir/filter"
49 if test $includedir != /usr
/include
; then
50 CFLAGS
="$CFLAGS -I$includedir"
53 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
-a $libdir != /usr
/lib64
; then
54 LDFLAGS
="$LDFLAGS -L$libdir"
61 echo "Usage: cups-config --api-version"
62 echo " cups-config --build"
63 echo " cups-config --cflags"
64 echo " cups-config --datadir"
65 echo " cups-config --help"
66 echo " cups-config --ldflags"
67 echo " cups-config [--image] [--static] --libs"
68 echo " cups-config --serverbin"
69 echo " cups-config --serverroot"
70 echo " cups-config --version"
75 if test $# -eq 0; then
79 # Parse command line options
83 while test $# -gt 0; do
107 if test $static = no
; then
108 libs
="@EXTLINKCUPS@ $LIBS";
109 if test $image = yes; then
110 libs
="@EXTLINKCUPSIMAGE@ $libs"
113 libs
="$libdir/libcups.a $LIBS";
114 if test $image = yes; then
115 libs
="$libdir/libcupsimage.a $libs"
124 echo $cups_serverroot
127 if test -z "$INSTALLSTATIC"; then
128 echo "WARNING: Static libraries not installed!" >&2