]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-3264.m4
Load cups into easysw/current.
[thirdparty/cups.git] / config-scripts / cups-3264.m4
CommitLineData
b86bc4cf 1dnl
2dnl "$Id$"
3dnl
4dnl 32/64-bit library support stuff for the Common UNIX Printing System (CUPS).
5dnl
6dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
7dnl
8dnl These coded instructions, statements, and computer programs are the
9dnl property of Easy Software Products and are protected by Federal
10dnl copyright law. Distribution and use rights are outlined in the file
11dnl "LICENSE.txt" which should have been included with this file. If this
12dnl file is missing or damaged please contact Easy Software Products
13dnl at:
14dnl
15dnl Attn: CUPS Licensing Information
16dnl Easy Software Products
17dnl 44141 Airport View Drive, Suite 204
18dnl Hollywood, Maryland 20636 USA
19dnl
20dnl Voice: (301) 373-9600
21dnl EMail: cups-info@cups.org
22dnl WWW: http://www.cups.org
23dnl
24
25dnl Setup support for separate 32/64-bit library generation...
26AC_ARG_ENABLE(32bit, [ --enable-32bit generate 32-bit libraries on 32/64-bit systems, default=no])
27
28INSTALL32=""
29LIB32CUPS=""
30LIB32CUPSIMAGE=""
31LIB32DIR=""
32UNINSTALL32=""
33
34AC_SUBST(INSTALL32)
35AC_SUBST(LIB32CUPS)
36AC_SUBST(LIB32CUPSIMAGE)
37AC_SUBST(LIB32DIR)
38AC_SUBST(UNINSTALL32)
39
40AC_ARG_ENABLE(64bit, [ --enable-64bit generate 64-bit libraries on 32/64-bit systems, default=no])
41
42INSTALL64=""
43LIB64CUPS=""
44LIB64CUPSIMAGE=""
45LIB64DIR=""
46UNINSTALL64=""
47
48AC_SUBST(INSTALL64)
49AC_SUBST(LIB64CUPS)
50AC_SUBST(LIB64CUPSIMAGE)
51AC_SUBST(LIB64DIR)
52AC_SUBST(UNINSTALL64)
53
54case "$uname" in
55 HP-UX*)
56 if test "x$enable_32bit" = xyes; then
57 # Build 32-bit libraries, 64-bit base...
58 INSTALL32="install32bit"
59 LIB32CUPS="32bit/libcups.so.2"
60 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
61 LIB32DIR="$exec_prefix/lib"
62 if test -d /usr/lib/hpux32; then
63 LIB32DIR="${LIB32DIR}/hpux32"
64 fi
65 UNINSTALL32="uninstall32bit"
66 fi
67
68 if test "x$enable_64bit" = xyes; then
69 # Build 64-bit libraries, 32-bit base...
70 INSTALL64="install64bit"
71 LIB64CUPS="64bit/libcups.so.2"
72 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
73 LIB64DIR="$exec_prefix/lib"
74 if test -d /usr/lib/hpux64; then
75 LIB64DIR="${LIB64DIR}/hpux64"
76 fi
77 UNINSTALL64="uninstall64bit"
78 fi
79 ;;
80
81 IRIX)
82 if test "x$enable_32bit" = xyes; then
83 INSTALL32="install32bit"
84 LIB32CUPS="32bit/libcups.so.2"
85 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
86 LIB32DIR="$prefix/lib32"
87 UNINSTALL32="uninstall32bit"
88 fi
89
90 if test "x$enable_64bit" = xyes; then
91 # Build 64-bit libraries, 32-bit base...
92 INSTALL64="install64bit"
93 LIB64CUPS="64bit/libcups.so.2"
94 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
95 LIB64DIR="$prefix/lib64"
96 UNINSTALL64="uninstall64bit"
97 fi
98 ;;
99
100 Linux*)
101 if test "x$enable_32bit" = xyes; then
102 # Build 32-bit libraries, 64-bit base...
103 INSTALL32="install32bit"
104 LIB32CUPS="32bit/libcups.so.2"
105 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
106 LIB32DIR="$exec_prefix/lib"
107 if test -d /usr/lib32; then
108 LIB32DIR="${LIB32DIR}32"
109 fi
110 UNINSTALL32="uninstall32bit"
111 fi
112
113 if test "x$enable_64bit" = xyes; then
114 # Build 64-bit libraries, 32-bit base...
115 INSTALL64="install64bit"
116 LIB64CUPS="64bit/libcups.so.2"
117 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
118 LIB64DIR="$exec_prefix/lib"
119 if test -d /usr/lib64; then
120 LIB64DIR="${LIB64DIR}64"
121 fi
122 UNINSTALL64="uninstall64bit"
123 fi
124 ;;
125
126 SunOS*)
127 if test "x$enable_32bit" = xyes; then
128 # Build 32-bit libraries, 64-bit base...
129 INSTALL32="install32bit"
130 LIB32CUPS="32bit/libcups.so.2"
131 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
132 LIB32DIR="$exec_prefix/lib/32"
133 UNINSTALL32="uninstall32bit"
134 fi
135
136 if test "x$enable_64bit" = xyes; then
137 # Build 64-bit libraries, 32-bit base...
138 INSTALL64="install64bit"
139 LIB64CUPS="64bit/libcups.so.2"
140 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
141 LIB64DIR="$exec_prefix/lib/64"
142 UNINSTALL64="uninstall64bit"
143 fi
144 ;;
145esac
146
147dnl
148dnl End of "$Id$".
149dnl