]>
git.ipfire.org Git - thirdparty/cups.git/blob - cups-config.in
5 # CUPS configuration utility.
7 # Copyright 2001-2005 by Easy Software Products, all rights reserved.
9 # These coded instructions, statements, and computer programs are the
10 # property of Easy Software Products and are protected by Federal
11 # copyright law. Distribution and use rights are outlined in the file
12 # "LICENSE.txt" which should have been included with this file. If this
13 # file is missing or damaged please contact Easy Software Products
16 # Attn: CUPS Licensing Information
17 # Easy Software Products
18 # 44141 Airport View Drive, Suite 204
19 # Hollywood, Maryland 20636 USA
21 # Voice: (301) 373-9600
22 # EMail: cups-info@cups.org
23 # WWW: http://www.cups.org
26 VERSION
="@CUPS_VERSION@"
30 exec_prefix
=@exec_prefix@
32 includedir
=@includedir@
35 sysconfdir
=@sysconfdir@
36 cups_datadir
=@CUPS_DATADIR@
37 cups_serverbin
=@CUPS_SERVERBIN@
38 cups_serverroot
=@CUPS_SERVERROOT@
40 # flags for C++ compiler:
42 LDFLAGS
="@EXPORT_LDFLAGS@"
43 LIBS
="@EXPORT_SSLLIBS@ @LIBS@"
44 IMGLIBS
="@EXPORT_LIBTIFF@ @EXPORT_LIBJPEG@ @EXPORT_LIBPNG@ @EXPORT_LIBZ@"
46 if test $includedir != /usr
/include
; then
47 CFLAGS
="$CFLAGS -I$includedir"
50 if test $libdir != /usr
/lib
-a $libdir != /usr
/lib32
; then
51 LDFLAGS
="$LDFLAGS -L$libdir"
56 echo "Usage: cups-config --api-version"
57 echo " cups-config --cflags"
58 echo " cups-config --datadir"
59 echo " cups-config --help"
60 echo " cups-config --ldflags"
61 echo " cups-config [--image] [--static] --libs"
62 echo " cups-config --serverbin"
63 echo " cups-config --serverroot"
64 echo " cups-config --version"
69 if test $# -eq 0; then
73 # Parse command line options
77 while test $# -gt 0; do
98 if test $static = no
; then
99 if test $image = no
; then
102 echo -lcupsimage $IMGLIBS -lcups $LIBS
105 if test $image = no
; then
106 echo $libdir/libcups.a
$LIBS
108 echo $libdir/libcupsimage.a
$IMGLIBS $libdir/libcups.a
$LIBS
116 echo $cups_serverroot