]>
Commit | Line | Data |
---|---|---|
b86bc4cf | 1 | dnl |
2 | dnl "$Id$" | |
3 | dnl | |
4 | dnl 32/64-bit library support stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
6 | dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. | |
7 | dnl | |
8 | dnl These coded instructions, statements, and computer programs are the | |
9 | dnl property of Easy Software Products and are protected by Federal | |
10 | dnl copyright law. Distribution and use rights are outlined in the file | |
11 | dnl "LICENSE.txt" which should have been included with this file. If this | |
12 | dnl file is missing or damaged please contact Easy Software Products | |
13 | dnl at: | |
14 | dnl | |
15 | dnl Attn: CUPS Licensing Information | |
16 | dnl Easy Software Products | |
17 | dnl 44141 Airport View Drive, Suite 204 | |
18 | dnl Hollywood, Maryland 20636 USA | |
19 | dnl | |
20 | dnl Voice: (301) 373-9600 | |
21 | dnl EMail: cups-info@cups.org | |
22 | dnl WWW: http://www.cups.org | |
23 | dnl | |
24 | ||
25 | dnl Setup support for separate 32/64-bit library generation... | |
26 | AC_ARG_ENABLE(32bit, [ --enable-32bit generate 32-bit libraries on 32/64-bit systems, default=no]) | |
27 | ||
28 | INSTALL32="" | |
29 | LIB32CUPS="" | |
30 | LIB32CUPSIMAGE="" | |
31 | LIB32DIR="" | |
32 | UNINSTALL32="" | |
33 | ||
34 | AC_SUBST(INSTALL32) | |
35 | AC_SUBST(LIB32CUPS) | |
36 | AC_SUBST(LIB32CUPSIMAGE) | |
37 | AC_SUBST(LIB32DIR) | |
38 | AC_SUBST(UNINSTALL32) | |
39 | ||
40 | AC_ARG_ENABLE(64bit, [ --enable-64bit generate 64-bit libraries on 32/64-bit systems, default=no]) | |
41 | ||
42 | INSTALL64="" | |
43 | LIB64CUPS="" | |
44 | LIB64CUPSIMAGE="" | |
45 | LIB64DIR="" | |
46 | UNINSTALL64="" | |
47 | ||
48 | AC_SUBST(INSTALL64) | |
49 | AC_SUBST(LIB64CUPS) | |
50 | AC_SUBST(LIB64CUPSIMAGE) | |
51 | AC_SUBST(LIB64DIR) | |
52 | AC_SUBST(UNINSTALL64) | |
53 | ||
54 | case "$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 | ;; | |
145 | esac | |
146 | ||
147 | dnl | |
148 | dnl End of "$Id$". | |
149 | dnl |