Lines 5-12
Link Here
|
5 |
AC_INIT(gnome.h) |
5 |
AC_INIT(gnome.h) |
6 |
AM_CONFIG_HEADER(config.h) |
6 |
AM_CONFIG_HEADER(config.h) |
7 |
|
7 |
|
8 |
AC_CANONICAL_SYSTEM |
8 |
AC_CANONICAL_TARGET |
9 |
|
9 |
|
|
|
10 |
AC_ARG_PROGRAM |
10 |
AM_INIT_AUTOMAKE(gnome-libs, 1.4.2) |
11 |
AM_INIT_AUTOMAKE(gnome-libs, 1.4.2) |
11 |
|
12 |
|
12 |
AM_ACLOCAL_INCLUDE(macros) |
13 |
AM_ACLOCAL_INCLUDE(macros) |
Lines 14-29
Link Here
|
14 |
AC_ISC_POSIX |
15 |
AC_ISC_POSIX |
15 |
AC_PROG_CC |
16 |
AC_PROG_CC |
16 |
AC_STDC_HEADERS |
17 |
AC_STDC_HEADERS |
17 |
AC_ARG_PROGRAM |
18 |
AC_PROG_LIBTOOL |
18 |
|
|
|
19 |
AM_PROG_LIBTOOL |
20 |
|
19 |
|
21 |
AM_MAINTAINER_MODE |
20 |
AM_MAINTAINER_MODE |
22 |
|
21 |
|
23 |
dnl |
22 |
dnl |
24 |
dnl let applications configure for gnome |
23 |
dnl let applications configure for gnome |
25 |
dnl |
24 |
dnl |
26 |
gnome_cv_use_gnome=yes |
25 |
gnome_cv_use_gnome="yes" |
27 |
|
26 |
|
28 |
GNOME_COMPILE_WARNINGS |
27 |
GNOME_COMPILE_WARNINGS |
29 |
|
28 |
|
Lines 36-47
Link Here
|
36 |
dnl (we want to make sure it matches with the gtk we're using) |
35 |
dnl (we want to make sure it matches with the gtk we're using) |
37 |
|
36 |
|
38 |
changequote(,)dnl |
37 |
changequote(,)dnl |
39 |
GLIB_CFLAGS=`echo $GTK_CFLAGS | sed 's/^.*\(-I[^ ]*glib[^ ]* *-I[^ ]*\).*$/\1/'` |
38 |
GLIB_CFLAGS=`echo $GTK_CFLAGS | sed -e 's/^.*\(-I[^ ]*glib[^ ]* *-I[^ ]*\).*$/\1/'` |
40 |
GLIB_LDFLAGS=`echo $GTK_LIBS | sed -e 's/^.*-lgdk[^ ]* *\(-L[^ ]*\).*$/\1/' -e 's/^.* -lgdk[^ ]* .*$//'` |
39 |
GLIB_LDFLAGS=`echo $GTK_LIBS | \ |
|
|
40 |
sed -e 's/^.*-lgdk[^ ]* *\(-L[^ ]*\).*$/\1/' -e 's/^.* -lgdk[^ ]* .*$//'` |
41 |
if test -z "$GLIB_LDFLAGS" ; then |
41 |
if test -z "$GLIB_LDFLAGS" ; then |
42 |
GLIB_LDFLAGS=`echo $GTK_LIBS | sed -e 's/\(-L[^ ]*\) .*$/\1/' -e 's/^.*\(-L[^ ]*\)$/\1/'` |
42 |
GLIB_LDFLAGS=`echo $GTK_LIBS | sed -e 's/^.*\(-L[^ ]*\) .*$/\1/'` |
43 |
fi |
43 |
fi |
44 |
GLIB_LIBS="$GLIB_LDFLAGS `echo $GTK_LIBS | sed 's/^.*\(-lglib[^ ]*\).*$/\1/'`" |
44 |
GLIB_LIBS=`echo $GTK_LIBS | sed -e 's/^.*\(-lglib[^ ]*\).*$/\1/'` |
|
|
45 |
GMODULE_LIBS=`echo $GTK_LIBS | \ |
46 |
sed -e 's/^.*\(-lgmodule[^ ]*\).*\(-lglib[^ ]*\).*\(-ldl[^ ]*\).*$/\1 \2 \3/'` |
45 |
changequote([,])dnl |
47 |
changequote([,])dnl |
46 |
|
48 |
|
47 |
AC_SUBST(GLIB_CFLAGS) |
49 |
AC_SUBST(GLIB_CFLAGS) |
Lines 58-95
Link Here
|
58 |
AC_SUBST(HAVE_GTK_DOC) |
60 |
AC_SUBST(HAVE_GTK_DOC) |
59 |
|
61 |
|
60 |
dnl Let people disable the gtk-doc stuff. |
62 |
dnl Let people disable the gtk-doc stuff. |
61 |
AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto) |
63 |
AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]],[enable_gtk_doc="$enableval"],[enable_gtk_doc="auto"]) |
62 |
|
64 |
|
63 |
if test x$enable_gtk_doc = xauto ; then |
65 |
if test "x$enable_gtk_doc" = "xauto" ; then |
64 |
if test x$GTKDOC = xtrue ; then |
66 |
if test "x$GTKDOC" = "xtrue" ; then |
65 |
enable_gtk_doc=yes |
67 |
enable_gtk_doc="yes" |
66 |
else |
68 |
else |
67 |
enable_gtk_doc=no |
69 |
enable_gtk_doc="no" |
68 |
fi |
70 |
fi |
69 |
fi |
71 |
fi |
70 |
|
72 |
|
71 |
dnl NOTE: We need to use a separate automake conditional for this |
73 |
dnl NOTE: We need to use a separate automake conditional for this |
72 |
dnl to make this work with the tarballs. |
74 |
dnl to make this work with the tarballs. |
73 |
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes) |
75 |
AM_CONDITIONAL(ENABLE_GTK_DOC, test "x$enable_gtk_doc" = "xyes") |
74 |
|
76 |
|
75 |
|
77 |
|
76 |
# We would like indent, but don't require it. |
78 |
# We would like indent, but don't require it. |
77 |
AC_CHECK_PROG(INDENT, indent, indent) |
79 |
AC_CHECK_PROG(INDENT, indent, indent) |
78 |
|
80 |
|
79 |
_found_perl=0 |
81 |
_found_perl="no" |
80 |
if test -n "$PERL" && $PERL -v | grep 'version 5.' > /dev/null ; then |
82 |
if test -n "$PERL" && $PERL -v | grep 'version 5.' > /dev/null ; then |
81 |
_found_perl=1 |
83 |
_found_perl="yes" |
82 |
else |
84 |
else |
83 |
# The version string for perl changed for 'version 5' to 'v5' in |
85 |
# The version string for perl changed for 'version 5' to 'v5' in |
84 |
# perl 5.6 or therabouts |
86 |
# perl 5.6 or therabouts |
85 |
if test -n "$PERL" && $PERL -v | grep 'v5.' > /dev/null ; then |
87 |
if test -n "$PERL" && $PERL -v | grep 'v5.' > /dev/null ; then |
86 |
_found_perl=1 |
88 |
_found_perl="yes" |
87 |
fi |
89 |
fi |
88 |
|
|
|
89 |
fi |
90 |
fi |
90 |
|
91 |
|
91 |
REBUILD=\# |
92 |
REBUILD=\# |
92 |
if test $_found_perl -eq 1; then |
93 |
if test "$_found_perl" = "yes"; then |
93 |
if test -n "$AWK" ; then |
94 |
if test -n "$AWK" ; then |
94 |
REBUILD= |
95 |
REBUILD= |
95 |
fi |
96 |
fi |
Lines 97-111
Link Here
|
97 |
AC_SUBST(REBUILD) |
98 |
AC_SUBST(REBUILD) |
98 |
|
99 |
|
99 |
dnl Utility conditional |
100 |
dnl Utility conditional |
100 |
AM_CONDITIONAL(FALSE, test x = y) |
101 |
AM_CONDITIONAL(FALSE, test "x" = "y") |
101 |
|
102 |
|
102 |
AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]], enable_debug="$enableval", enable_debug=no) |
103 |
AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],[enable_debug="$enableval"],[enable_debug="no"]) |
103 |
|
104 |
|
104 |
if test x$enable_debug = xyes ; then |
105 |
if test "x$enable_debug" = "xyes"; then |
105 |
AC_DEFINE(GNOME_ENABLE_DEBUG) |
106 |
AC_DEFINE(GNOME_ENABLE_DEBUG) |
106 |
fi |
107 |
fi |
107 |
|
108 |
|
108 |
ALL_LINGUAS="az ca cs da de el en_GB es et eu fi fr ga gl hr hu it ja ko lt lv ms nl nn no pl pt pt_BR ro ru sk sl sp sr sv ta tr uk vi wa zh_CN zh_TW" |
109 |
ALL_LINGUAS="az ca cs da de el en_GB es et eu fi fr ga gl hr hu it ja ko lt lv ms nl nn no pl pt pt_BR ro ru sk sl sp sr sv ta tr uk vi wa zh_CN zh_TW" |
|
|
110 |
|
109 |
AM_GNOME_GETTEXT |
111 |
AM_GNOME_GETTEXT |
110 |
# AM_GNOME_GETTEXT above substs $DATADIRNAME |
112 |
# AM_GNOME_GETTEXT above substs $DATADIRNAME |
111 |
# this is the directory where the *.{mo,gmo} files are installed |
113 |
# this is the directory where the *.{mo,gmo} files are installed |
Lines 115-142
Link Here
|
115 |
AC_CHECK_LIB(m, floor) |
117 |
AC_CHECK_LIB(m, floor) |
116 |
|
118 |
|
117 |
AC_CHECK_HEADERS(dlfcn.h locale.h) |
119 |
AC_CHECK_HEADERS(dlfcn.h locale.h) |
118 |
|
120 |
AC_CACHE_CHECK([for gmodule support],ac_cv_gmodule, |
119 |
AC_CACHE_CHECK([for gmodule support], ac_cv_gmodule,[ |
121 |
[save_LIBS="$LIBS" |
120 |
save_LDFLAGS="$LDFLAGS" |
122 |
LIBS="$GMODULE_LIBS" |
121 |
LDFLAGS="$LDFLAGS `glib-config --libs gmodule`" |
123 |
AC_TRY_RUN([#include <gmodule.h> |
122 |
AC_TRY_RUN([ |
124 |
int main() { |
123 |
#include <gmodule.h> |
125 |
return g_module_supported()==0; |
124 |
|
126 |
}], |
125 |
int main() |
127 |
ac_cv_gmodule="yes", |
126 |
{ |
128 |
ac_cv_gmodule="no", |
127 |
return g_module_supported() == 0; |
129 |
ac_cv_gmodule="yes" |
128 |
}],ac_cv_gmodule=yes,ac_cv_gmodule=no,ac_cv_gmodule=yes) |
130 |
) |
129 |
LDFLAGS="$save_LDFLAGS"]) |
131 |
LIBS="$save_LIBS"] |
130 |
if test $ac_cv_gmodule = no; then |
132 |
) |
131 |
AC_MSG_ERROR([Dynamic linking is not available on this platform. Some apps, |
133 |
if test "$ac_cv_gmodule" = "no"; then |
132 |
like panel, will not run properly.]) |
134 |
AC_MSG_ERROR([Dynamic linking is not available on this platform. Some apps, like panel, will not run properly.]) |
133 |
fi |
135 |
fi |
134 |
|
136 |
|
135 |
AC_CHECK_FUNCS(strerror gethostbyname setfsgid setenv putenv strdup) |
137 |
AC_CHECK_FUNCS(strerror gethostbyname setfsgid setenv putenv strdup) |
136 |
|
138 |
|
137 |
NSL_LIBS="" |
139 |
NSL_LIBS="" |
138 |
if test $ac_cv_func_gethostbyname = no; then |
140 |
if test "$ac_cv_func_gethostbyname" = "no"; then |
139 |
AC_CHECK_LIB(nsl,gethostbyname,NSL_LIBS=-lnsl) |
141 |
AC_CHECK_LIB(nsl,gethostbyname,NSL_LIBS="-lnsl") |
140 |
fi |
142 |
fi |
141 |
AC_SUBST(NSL_LIBS) |
143 |
AC_SUBST(NSL_LIBS) |
142 |
AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton)]) |
144 |
AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton)]) |
Lines 157-178
Link Here
|
157 |
dnl |
159 |
dnl |
158 |
AC_MSG_CHECKING([for sa_len in struct sockaddr]) |
160 |
AC_MSG_CHECKING([for sa_len in struct sockaddr]) |
159 |
AC_TRY_COMPILE( |
161 |
AC_TRY_COMPILE( |
|
|
162 |
[#include <sys/socket.h>], |
163 |
[struct sockaddr s; s.sa_len;], |
164 |
[sa_len_ok="yes"], |
165 |
[sa_len_ok="no"]) |
166 |
AC_MSG_RESULT($sa_len_ok) |
167 |
if test "x$sa_len_ok" = "xno"; then |
168 |
AC_MSG_CHECKING([for sa_len with -D_SOCKADDR_LEN]) |
169 |
xCPPFLAGS="$CPPFLAGS" |
170 |
CPPFLAGS="$CPPFLAGS -D_SOCKADDR_LEN" |
171 |
AC_TRY_COMPILE( |
160 |
[#include <sys/socket.h>], |
172 |
[#include <sys/socket.h>], |
161 |
[struct sockaddr s; s.sa_len;], |
173 |
[struct sockaddr s; s.sa_len;], |
162 |
[sa_len_ok=yes], |
174 |
[AC_DEFINE(_SOCKADDR_LEN) |
163 |
[sa_len_ok=no]) |
175 |
sa_len_ok="yes"], |
164 |
AC_MSG_RESULT($sa_len_ok) |
176 |
[sa_len_ok="no"]) |
165 |
if test x$sa_len_ok = xno; then |
177 |
CPPFLAGS="$xCPPFLAGS" |
166 |
AC_MSG_CHECKING([for sa_len with -D_SOCKADDR_LEN]) |
|
|
167 |
xCPPFLAGS="$CPPFLAGS" |
168 |
CPPFLAGS="$CPPFLAGS -D_SOCKADDR_LEN" |
169 |
AC_TRY_COMPILE( |
170 |
[#include <sys/socket.h>], |
171 |
[struct sockaddr s; s.sa_len;], |
172 |
[AC_DEFINE(_SOCKADDR_LEN) |
173 |
sa_len_ok=yes], |
174 |
[sa_len_ok=no]) |
175 |
CPPFLAGS="$xCPPFLAGS" |
176 |
fi |
178 |
fi |
177 |
AC_MSG_RESULT($sa_len_ok) |
179 |
AC_MSG_RESULT($sa_len_ok) |
178 |
|
180 |
|
Lines 182-198
Link Here
|
182 |
|
184 |
|
183 |
AC_MSG_CHECKING([for Unix98 sendmsg]) |
185 |
AC_MSG_CHECKING([for Unix98 sendmsg]) |
184 |
AC_TRY_LINK([ |
186 |
AC_TRY_LINK([ |
185 |
#include <stdio.h> |
187 |
#include <stdio.h> |
186 |
#include <sys/types.h> |
188 |
#include <sys/types.h> |
187 |
#include <sys/socket.h> |
189 |
#include <sys/socket.h> |
188 |
],[ |
190 |
],[struct msghdr hdr; |
189 |
struct msghdr hdr; |
191 |
hdr.msg_control = NULL; |
190 |
hdr.msg_control = NULL; |
192 |
hdr.msg_controllen = 0; |
191 |
hdr.msg_controllen = 0; |
193 |
sendmsg (0, &hdr, 0);], |
192 |
sendmsg (0, &hdr, 0); |
194 |
[AC_DEFINE(HAVE_SENDMSG) |
193 |
],[ |
195 |
AC_MSG_RESULT(yes)], |
194 |
AC_DEFINE(HAVE_SENDMSG) |
196 |
[AC_MSG_RESULT(no)] |
195 |
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) |
197 |
) |
196 |
|
198 |
|
197 |
AC_CHECK_UTMP |
199 |
AC_CHECK_UTMP |
198 |
AC_CHECK_LASTLOG |
200 |
AC_CHECK_LASTLOG |
Lines 200-212
Link Here
|
200 |
AC_CHECK_HEADERS(pty.h util.h libutil.h ttyent.h) |
202 |
AC_CHECK_HEADERS(pty.h util.h libutil.h ttyent.h) |
201 |
|
203 |
|
202 |
AC_CHECK_LIB(util, openpty, |
204 |
AC_CHECK_LIB(util, openpty, |
203 |
[ |
205 |
[AC_CHECK_LIB(util, login_tty,[AC_DEFINE(HAVE_LOGIN_TTY)]) |
204 |
AC_CHECK_LIB(util, login_tty, [AC_DEFINE(HAVE_LOGIN_TTY)]) |
|
|
205 |
AC_DEFINE(HAVE_OPENPTY) |
206 |
AC_DEFINE(HAVE_OPENPTY) |
206 |
AC_DEFINE(HAVE_LIBUTIL) |
207 |
AC_DEFINE(HAVE_LIBUTIL) |
207 |
UTIL_LIBS="-lutil" |
208 |
UTIL_LIBS="-lutil" |
208 |
AC_SUBST(UTIL_LIBS) |
209 |
AC_SUBST(UTIL_LIBS)] |
209 |
]) |
210 |
) |
210 |
|
211 |
|
211 |
AC_CHECK_FUNCS(grantpt utmpxname utmpname getutmpx getutent getttyent) |
212 |
AC_CHECK_FUNCS(grantpt utmpxname utmpname getutmpx getutent getttyent) |
212 |
AC_CHECK_FUNCS(updwtmpx updwtmp fcntl flock strrchr seteuid setreuid) |
213 |
AC_CHECK_FUNCS(updwtmpx updwtmp fcntl flock strrchr seteuid setreuid) |
Lines 214-223
Link Here
|
214 |
AC_CHECK_HEADERS(stropts.h) |
215 |
AC_CHECK_HEADERS(stropts.h) |
215 |
|
216 |
|
216 |
dnl And workaround for a Autoconf 2.4 bug: |
217 |
dnl And workaround for a Autoconf 2.4 bug: |
217 |
if test x$ac_cv_func_grantpt = xyes; then |
218 |
if test "x$ac_cv_func_grantpt" = "xyes"; then |
218 |
: |
219 |
: |
219 |
else |
220 |
else |
220 |
AC_CHECK_LIB(pt, grantpt) |
221 |
AC_CHECK_LIB(pt, grantpt) |
221 |
fi |
222 |
fi |
222 |
|
223 |
|
223 |
dnl |
224 |
dnl |
Lines 227-301
Link Here
|
227 |
|
228 |
|
228 |
dnl Test for libz |
229 |
dnl Test for libz |
229 |
AC_CHECK_LIB(z, inflate, |
230 |
AC_CHECK_LIB(z, inflate, |
230 |
AC_CHECK_HEADER(zlib.h, |
231 |
[AC_CHECK_LIB(z, compress, |
231 |
Z_LIBS="-lz"; AC_DEFINE(HAVE_LIBZ))) |
232 |
[AC_CHECK_HEADER(zlib.h, |
232 |
AC_CHECK_LIB(z, compress, , |
233 |
Z_LIBS="-lz" |
233 |
AC_MSG_ERROR([[ |
234 |
AC_DEFINE(HAVE_LIBZ), |
|
|
235 |
AC_MSG_ERROR([**** LIBZ header file not found ***]) |
236 |
)] |
237 |
)], |
238 |
AC_MSG_ERROR([[ |
234 |
*** Incorrect libz version found. Please make sure you do not have |
239 |
*** Incorrect libz version found. Please make sure you do not have |
235 |
*** an outdated libz.a or libz.so hiding in your X11 distribution or |
240 |
*** an outdated libz.a or libz.so hiding in your X11 distribution or |
236 |
*** elsewhere on your system. Versions of libz with the "compress" and |
241 |
*** elsewhere on your system. Versions of libz with the "compress" and |
237 |
*** "uncompress" symbols are sufficiently recent to build GNOME.]])) |
242 |
*** "uncompress" symbols are sufficiently recent to build GNOME.]]) |
|
|
243 |
) |
238 |
|
244 |
|
239 |
dnl Test for libjpeg |
245 |
dnl Test for libjpeg |
240 |
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, |
246 |
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, |
241 |
jpeg_ok=yes, |
247 |
[AC_CHECK_HEADER(jpeglib.h, |
242 |
jpeg_ok=no) |
248 |
JPEG_LIBS="-ljpeg" |
243 |
if test "$jpeg_ok" = yes; then |
249 |
AC_DEFINE(HAVE_LIBJPEG) |
244 |
AC_MSG_CHECKING([for jpeglib.h]) |
250 |
)] |
245 |
AC_TRY_CPP( |
251 |
) |
246 |
[#include <stdio.h> |
252 |
dnl AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, |
247 |
#undef PACKAGE |
253 |
dnl jpeg_ok="yes", |
248 |
#undef VERSION |
254 |
dnl jpeg_ok="no") |
249 |
/* AAARGH!!! jpeglib.h defines HAVE_STDLIB_H. */ |
255 |
dnl if test "$jpeg_ok" = "yes"; then |
250 |
#undef HAVE_STDDEF_H |
256 |
dnl AC_MSG_CHECKING([for jpeglib.h]) |
251 |
#undef HAVE_STDLIB_H |
257 |
dnl AC_TRY_CPP([#include <stdio.h> |
252 |
#include <jpeglib.h>], |
258 |
dnl #undef PACKAGE |
253 |
jpeg_ok=yes, |
259 |
dnl #undef VERSION |
254 |
jpeg_ok=no) |
260 |
dnl /* AAARGH!!! jpeglib.h defines HAVE_STDLIB_H.*/ |
255 |
AC_MSG_RESULT($jpeg_ok) |
261 |
dnl #undef HAVE_STDDEF_H |
256 |
if test "$jpeg_ok" = yes; then |
262 |
dnl #undef HAVE_STDLIB_H |
257 |
JPEG_LIBS="-ljpeg"; AC_DEFINE(HAVE_LIBJPEG) |
263 |
dnl #include <jpeglib.h> |
258 |
fi |
264 |
dnl ],jpeg_ok="yes", |
259 |
fi |
265 |
dnl jpeg_ok="no") |
|
|
266 |
dnl AC_MSG_RESULT($jpeg_ok) |
267 |
dnl if test "$jpeg_ok" = "yes"; then |
268 |
dnl JPEG_LIBS="-ljpeg" |
269 |
dnl AC_DEFINE(HAVE_LIBJPEG) |
270 |
dnl fi |
271 |
dnl fi |
260 |
|
272 |
|
261 |
dnl Test for libtiff |
273 |
dnl Test for libtiff |
262 |
AC_CHECK_LIB(tiff, TIFFReadScanline, |
274 |
AC_CHECK_LIB(tiff, TIFFReadScanline, |
263 |
AC_CHECK_HEADER(tiffio.h, |
275 |
[AC_CHECK_HEADER(tiffio.h, |
264 |
TIFF_LIBS="-ltiff"; AC_DEFINE(HAVE_LIBTIFF)), |
276 |
TIFF_LIBS="-ltiff" |
265 |
AC_CHECK_LIB(tiff, TIFFWriteScanline, |
277 |
AC_DEFINE(HAVE_LIBTIFF))], |
266 |
AC_CHECK_HEADER(tiffio.h, |
278 |
[AC_CHECK_LIB(tiff, TIFFWriteScanline, |
267 |
TIFF_LIBS="-ltiff $JPEG_LIBS $Z_LIBS"; AC_DEFINE(HAVE_LIBTIFF)), |
279 |
[AC_CHECK_HEADER(tiffio.h, |
268 |
AC_CHECK_LIB(tiff34, TIFFFlushData, |
280 |
TIFF_LIBS="-ltiff $JPEG_LIBS $Z_LIBS" |
269 |
AC_CHECK_HEADER(tiffio.h, |
281 |
AC_DEFINE(HAVE_LIBTIFF))], |
270 |
TIFF_LIBS="-ltiff34 $JPEG_LIBS $Z_LIBS"; AC_DEFINE(HAVE_LIBTIFF)),, |
282 |
[AC_CHECK_LIB(tiff34, TIFFFlushData, |
271 |
$JPEG_LIBS $Z_LIBS -lm), $JPEG_LIBS $Z_LIBS -lm), -lm) |
283 |
[AC_CHECK_HEADER(tiffio.h, |
|
|
284 |
TIFF_LIBS="-ltiff34 $JPEG_LIBS $Z_LIBS" |
285 |
AC_DEFINE(HAVE_LIBTIFF))],, |
286 |
$JPEG_LIBS $Z_LIBS -lm)], |
287 |
$JPEG_LIBS $Z_LIBS -lm)], |
288 |
-lm) |
272 |
|
289 |
|
273 |
dnl Test for libgif |
290 |
dnl Test for libgif |
274 |
AC_CHECK_LIB(gif, DGifOpenFileName, |
291 |
AC_CHECK_LIB(gif, DGifOpenFileName, |
275 |
AC_CHECK_HEADER(gif_lib.h, |
292 |
[AC_CHECK_HEADER(gif_lib.h, |
276 |
GIF_LIBS="-lgif"; AC_DEFINE(HAVE_LIBGIF)),,$GTK_LIBS) |
293 |
GIF_LIBS="-lgif" |
|
|
294 |
AC_DEFINE(HAVE_LIBGIF))],, |
295 |
$GTK_LIBS |
296 |
) |
277 |
|
297 |
|
278 |
dnl Test for libungif |
298 |
dnl Test for libungif |
279 |
AC_CHECK_LIB(ungif, DGifOpenFileName, |
299 |
AC_CHECK_LIB(ungif, DGifOpenFileName, |
280 |
AC_CHECK_HEADER(gif_lib.h, |
300 |
[AC_CHECK_HEADER(gif_lib.h, |
281 |
GIF_LIBS="-lungif"; AC_DEFINE(HAVE_LIBGIF)),,$GTK_LIBS) |
301 |
GIF_LIBS="-lungif" |
|
|
302 |
AC_DEFINE(HAVE_LIBGIF))],, |
303 |
$GTK_LIBS |
304 |
) |
282 |
|
305 |
|
283 |
dnl Test for libpng |
306 |
dnl Test for libpng |
284 |
AC_CHECK_LIB(png, png_read_info, |
307 |
AC_CHECK_LIB(png, png_read_info, |
285 |
AC_CHECK_HEADER(png.h, |
308 |
[AC_CHECK_HEADER(png.h, |
286 |
png_ok=yes, |
309 |
png_ok="yes", |
287 |
png_ok=no),,$Z_LIBS -lm) |
310 |
png_ok="no")],, |
288 |
if test "$png_ok" = yes; then |
311 |
$Z_LIBS -lm |
|
|
312 |
) |
313 |
if test "$png_ok" = "yes"; then |
289 |
AC_MSG_CHECKING([for png_structp in png.h]) |
314 |
AC_MSG_CHECKING([for png_structp in png.h]) |
290 |
AC_TRY_COMPILE([#include <png.h>], |
315 |
AC_TRY_COMPILE([#include <png.h> |
291 |
[png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct |
316 |
],[png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;], |
292 |
;], |
317 |
png_ok="yes", |
293 |
png_ok=yes, |
318 |
png_ok="no") |
294 |
png_ok=no) |
319 |
AC_CHECK_LIB(png, png_get_IHDR, |
295 |
AC_CHECK_LIB(png, png_get_IHDR, |
320 |
png_ok="yes", |
296 |
png_ok=yes,png_ok=no) |
321 |
png_ok="no") |
297 |
AC_MSG_RESULT($png_ok) |
322 |
AC_MSG_RESULT($png_ok) |
298 |
if test "$png_ok" = yes; then |
323 |
if test "$png_ok" = "yes"; then |
299 |
PNG_LIBS="-lpng $Z_LIBS"; AC_DEFINE(HAVE_LIBPNG) |
324 |
PNG_LIBS="-lpng $Z_LIBS"; AC_DEFINE(HAVE_LIBPNG) |
300 |
fi |
325 |
fi |
301 |
fi |
326 |
fi |
Lines 305-352
Link Here
|
305 |
AC_CHECK_HEADERS(utime.h) |
330 |
AC_CHECK_HEADERS(utime.h) |
306 |
AC_FUNC_MMAP |
331 |
AC_FUNC_MMAP |
307 |
|
332 |
|
308 |
AC_ARG_ENABLE(prefer-db1, [ --enable-prefer-db1 Prefer Berkeley DB 1.x] [default=no]],[prefer_db1="$enableval"],[prefer_db1=no]) |
333 |
AC_ARG_ENABLE(prefer-db1, [ --enable-prefer-db1 Prefer Berkeley DB 1.x] [default=no]], |
|
|
334 |
[prefer_db1="$enableval"],[prefer_db1="no"]) |
309 |
dnl |
335 |
dnl |
310 |
dnl Check for db stuff (gnome-metadata) |
336 |
dnl Check for db stuff (gnome-metadata) |
311 |
dnl |
337 |
dnl |
312 |
DB_LIB= |
338 |
DB_LIB= |
313 |
AC_CHECK_FUNC(dbopen, [], |
339 |
AC_CHECK_FUNC(dbopen, [], |
314 |
if test "$prefer_db1" = "yes"; then |
340 |
[if test "$prefer_db1" = "yes"; then |
315 |
AC_CHECK_LIB(db1, dbopen, DB_LIB="-ldb1", |
341 |
AC_CHECK_LIB(db1, dbopen, DB_LIB="-ldb1", |
316 |
AC_CHECK_LIB(db, dbopen, DB_LIB="-ldb", |
342 |
[AC_CHECK_LIB(db, dbopen, DB_LIB="-ldb", |
317 |
AC_CHECK_LIB(db-3, __db185_open, DB_LIB="-ldb-3", |
343 |
[AC_CHECK_LIB(db-3, __db185_open, DB_LIB="-ldb-3", |
318 |
AC_CHECK_LIB(db-4, __db185_open, DB_LIB="-ldb-4", |
344 |
[AC_CHECK_LIB(db-4, __db185_open, DB_LIB="-ldb-4", |
319 |
AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode]) |
345 |
AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode]) |
|
|
346 |
)] |
347 |
)] |
348 |
)] |
320 |
) |
349 |
) |
321 |
) |
350 |
else |
322 |
) |
351 |
AC_CHECK_LIB(db, dbopen, DB_LIB="-ldb", |
323 |
) |
352 |
[AC_CHECK_LIB(db1, dbopen, DB_LIB="-ldb1", |
324 |
else |
353 |
[AC_CHECK_LIB(db-3, __db185_open, DB_LIB="-ldb-3", |
325 |
AC_CHECK_LIB(db, dbopen, DB_LIB="-ldb", |
354 |
[AC_CHECK_LIB(db-4, __db185_open, DB_LIB="-ldb-4", |
326 |
AC_CHECK_LIB(db1, dbopen, DB_LIB="-ldb1", |
355 |
AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode]) |
327 |
AC_CHECK_LIB(db-3, __db185_open, DB_LIB="-ldb-3", |
356 |
)] |
328 |
AC_CHECK_LIB(db-4, __db185_open, DB_LIB="-ldb-4", |
357 |
)] |
329 |
AC_MSG_ERROR([Your db library is missing db 1.85 compatibility mode]) |
358 |
)] |
330 |
) |
359 |
) |
331 |
) |
360 |
fi] |
332 |
) |
|
|
333 |
) |
334 |
fi |
335 |
) |
361 |
) |
336 |
|
362 |
|
337 |
dnl look for db headers |
363 |
dnl look for db headers |
338 |
if test "$prefer_db1" = "yes"; then |
364 |
if test "$prefer_db1" = "yes"; then |
339 |
AC_CHECK_HEADERS(db_185.h db1/db.h) |
365 |
AC_CHECK_HEADERS(db_185.h db1/db.h) |
340 |
if test "$ac_cv_header_db_185_h$ac_cv_header_db1_db_h" = nono; then |
366 |
if test "$ac_cv_header_db_185_h$ac_cv_header_db1_db_h" = "nono"; then |
341 |
AC_MSG_ERROR([Berkeley db library required for Gnome]) |
367 |
AC_MSG_ERROR([Berkeley db library required for Gnome]) |
342 |
fi |
368 |
fi |
343 |
AC_DEFINE(PREFER_DB1) |
369 |
AC_DEFINE(PREFER_DB1) |
344 |
else |
370 |
else |
345 |
AC_CHECK_HEADERS(db.h db_185.h db1/db.h) |
371 |
AC_CHECK_HEADERS(db.h db_185.h db1/db.h) |
346 |
|
372 |
|
347 |
if test "$ac_cv_header_db_h$ac_cv_header_db_185_h$ac_cv_header_db1_db_h" = nonono; then |
373 |
if test "$ac_cv_header_db_h$ac_cv_header_db_185_h$ac_cv_header_db1_db_h" = "nonono"; then |
348 |
AC_MSG_ERROR([Berkeley db library required for Gnome]) |
374 |
AC_MSG_ERROR([Berkeley db library required for Gnome]) |
349 |
fi |
375 |
fi |
350 |
fi |
376 |
fi |
351 |
|
377 |
|
352 |
dnl |
378 |
dnl |
Lines 356-368
Link Here
|
356 |
AC_PATH_X |
382 |
AC_PATH_X |
357 |
AC_PATH_XTRA |
383 |
AC_PATH_XTRA |
358 |
|
384 |
|
359 |
AM_PATH_GDK_IMLIB(1.9, [define_imlib_1_9=true],[ |
385 |
AM_PATH_GDK_IMLIB(1.9,[define_imlib_1_9="true"], |
360 |
AM_PATH_GDK_IMLIB(1.8,[ |
386 |
[AM_PATH_GDK_IMLIB(1.8, |
361 |
LIBGNOMEUI_LIBS="$LIBGNOMEUI_LIBS $PNG_LIBS" |
387 |
[LIBGNOMEUI_LIBS="$LIBGNOMEUI_LIBS $PNG_LIBS"], |
362 |
],[AC_MSG_ERROR([*** IMLIB 1.8 not installed - please install first ***])])]) |
388 |
[AC_MSG_ERROR([*** IMLIB 1.8 not installed - please install first ***])] |
363 |
|
389 |
)] |
364 |
|
390 |
) |
365 |
if test x$define_imlib_1_9 = xtrue; then |
391 |
if test "x$define_imlib_1_9" = "xtrue"; then |
366 |
AC_DEFINE(HAVE_IMLIB_1_9) |
392 |
AC_DEFINE(HAVE_IMLIB_1_9) |
367 |
fi |
393 |
fi |
368 |
|
394 |
|
Lines 406-413
Link Here
|
406 |
dnl test-gnome |
432 |
dnl test-gnome |
407 |
dnl |
433 |
dnl |
408 |
|
434 |
|
409 |
AC_ARG_ENABLE(test-gnome, [ --enable-test-gnome compile the test-gnome examples [default=yes]],[compile_test_gnome="$enableval"],[compile_test_gnome=yes]) |
435 |
AC_ARG_ENABLE(test-gnome, [ --enable-test-gnome compile the test-gnome examples [default=yes]], |
410 |
AM_CONDITIONAL(COMPILE_TEST_GNOME, test x$compile_test_gnome = xyes) |
436 |
[compile_test_gnome="$enableval"],[compile_test_gnome="yes"]) |
|
|
437 |
AM_CONDITIONAL(COMPILE_TEST_GNOME, test "x$compile_test_gnome" = "xyes") |
411 |
|
438 |
|
412 |
dnl AC_CONFIG_SUBDIRS(libgtktty) |
439 |
dnl AC_CONFIG_SUBDIRS(libgtktty) |
413 |
|
440 |
|
Lines 429-435
Link Here
|
429 |
dnl |
456 |
dnl |
430 |
AC_ARG_WITH(kde-datadir, [ --with-kde-datadir=DIR Location of KDE data]) |
457 |
AC_ARG_WITH(kde-datadir, [ --with-kde-datadir=DIR Location of KDE data]) |
431 |
|
458 |
|
432 |
if test "x$with_kde_datadir" = x ; then |
459 |
if test "x$with_kde_datadir" = "x"; then |
433 |
kde_datadir=/usr/share |
460 |
kde_datadir=/usr/share |
434 |
else |
461 |
else |
435 |
kde_datadir=$with_kde_datadir |
462 |
kde_datadir=$with_kde_datadir |
Lines 453-459
Link Here
|
453 |
AC_SUBST(GNOME_IDLDIR) |
480 |
AC_SUBST(GNOME_IDLDIR) |
454 |
AC_SUBST(LIBSUPPORT) |
481 |
AC_SUBST(LIBSUPPORT) |
455 |
AC_SUBST(SUPPORTINCS) |
482 |
AC_SUBST(SUPPORTINCS) |
456 |
|
|
|
457 |
AC_SUBST(LIBGNOME_LIBS) |
483 |
AC_SUBST(LIBGNOME_LIBS) |
458 |
AC_SUBST(LIBGNOMEUI_LIBS) |
484 |
AC_SUBST(LIBGNOMEUI_LIBS) |
459 |
AC_SUBST(LIBGTKXMHTML_LIBS) |
485 |
AC_SUBST(LIBGTKXMHTML_LIBS) |