]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
3 # CUPS configuration utility.
5 # Copyright © 2007-2018 by Apple Inc.
6 # Copyright © 2001-2006 by Easy Software Products, all rights reserved.
8 # Licensed under Apache License v2.0. See the file "LICENSE" for more
12 VERSION
="@CUPS_VERSION@"
17 exec_prefix
=@exec_prefix@
19 includedir
=@includedir@
24 sysconfdir
=@sysconfdir@
25 cups_datadir
=@CUPS_DATADIR@
26 cups_serverbin
=@CUPS_SERVERBIN@
27 cups_serverroot
=@CUPS_SERVERROOT@
28 INSTALLSTATIC
=@INSTALLSTATIC@
30 # flags for C++ compiler:
32 LDFLAGS
="@EXPORT_LDFLAGS@"
33 LIBS
="@LIBGSSAPI@ @EXPORT_SSLLIBS@ @LIBZ@ @LIBS@"
35 # Check for local invocation...
38 if test -f "$selfdir/cups/cups.h"; then
40 LDFLAGS
="-L$selfdir/cups -L$selfdir/filter $LDFLAGS"
41 libdir
="$selfdir/cups"
42 imagelibdir
="$selfdir/filter"
44 if test $includedir != /usr
/include
; then
45 CFLAGS
="$CFLAGS -I$includedir"
48 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
-a $libdir != /usr
/lib64
; then
49 LDFLAGS
="$LDFLAGS -L$libdir"
56 echo "Usage: cups-config --api-version"
57 echo " cups-config --build"
58 echo " cups-config --cflags"
59 echo " cups-config --datadir"
60 echo " cups-config --help"
61 echo " cups-config --ldflags"
62 echo " cups-config [--image] [--static] --libs"
63 echo " cups-config --serverbin"
64 echo " cups-config --serverroot"
65 echo " cups-config --version"
70 if test $# -eq 0; then
74 # Parse command line options
78 while test $# -gt 0; do
102 if test $static = no
; then
103 libs
="@EXTLINKCUPS@ $LIBS";
104 if test $image = yes; then
105 libs
="@EXTLINKCUPSIMAGE@ $libs"
108 libs
="$libdir/libcups.a $LIBS";
109 if test $image = yes; then
110 libs
="$libdir/libcupsimage.a $libs"
119 echo $cups_serverroot
122 if test -z "$INSTALLSTATIC"; then
123 echo "WARNING: Static libraries not installed!" >&2