Mercurial > pidgin.yaz
comparison aclocal.m4 @ 0:a5ace2e037bc
Tailorization
Import of the upstream sources from
Repository: https://svn.sourceforge.net/svnroot/gaim
Kind: svn
Module: /trunk
Revision: 9
author | Tailor Script <tailor@pidgin.im> |
---|---|
date | Thu, 23 Mar 2000 03:09:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a5ace2e037bc |
---|---|
1 dnl aclocal.m4 generated automatically by aclocal 1.4 | |
2 | |
3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. | |
4 dnl This file is free software; the Free Software Foundation | |
5 dnl gives unlimited permission to copy and/or distribute it, | |
6 dnl with or without modifications, as long as this notice is preserved. | |
7 | |
8 dnl This program is distributed in the hope that it will be useful, | |
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
11 dnl PARTICULAR PURPOSE. | |
12 | |
13 # Do all the work for Automake. This macro actually does too much -- | |
14 # some checks are only needed if your package does certain things. | |
15 # But this isn't really a big deal. | |
16 | |
17 # serial 1 | |
18 | |
19 dnl Usage: | |
20 dnl AM_INIT_AUTOMAKE(package,version, [no-define]) | |
21 | |
22 AC_DEFUN(AM_INIT_AUTOMAKE, | |
23 [AC_REQUIRE([AC_PROG_INSTALL]) | |
24 PACKAGE=[$1] | |
25 AC_SUBST(PACKAGE) | |
26 VERSION=[$2] | |
27 AC_SUBST(VERSION) | |
28 dnl test to see if srcdir already configured | |
29 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
30 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
31 fi | |
32 ifelse([$3],, | |
33 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
34 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) | |
35 AC_REQUIRE([AM_SANITY_CHECK]) | |
36 AC_REQUIRE([AC_ARG_PROGRAM]) | |
37 dnl FIXME This is truly gross. | |
38 missing_dir=`cd $ac_aux_dir && pwd` | |
39 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) | |
40 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) | |
41 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) | |
42 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) | |
43 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) | |
44 AC_REQUIRE([AC_PROG_MAKE_SET])]) | |
45 | |
46 # | |
47 # Check to make sure that the build environment is sane. | |
48 # | |
49 | |
50 AC_DEFUN(AM_SANITY_CHECK, | |
51 [AC_MSG_CHECKING([whether build environment is sane]) | |
52 # Just in case | |
53 sleep 1 | |
54 echo timestamp > conftestfile | |
55 # Do `set' in a subshell so we don't clobber the current shell's | |
56 # arguments. Must try -L first in case configure is actually a | |
57 # symlink; some systems play weird games with the mod time of symlinks | |
58 # (eg FreeBSD returns the mod time of the symlink's containing | |
59 # directory). | |
60 if ( | |
61 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
62 if test "[$]*" = "X"; then | |
63 # -L didn't work. | |
64 set X `ls -t $srcdir/configure conftestfile` | |
65 fi | |
66 if test "[$]*" != "X $srcdir/configure conftestfile" \ | |
67 && test "[$]*" != "X conftestfile $srcdir/configure"; then | |
68 | |
69 # If neither matched, then we have a broken ls. This can happen | |
70 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
71 # broken ls alias from the environment. This has actually | |
72 # happened. Such a system could not be considered "sane". | |
73 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
74 alias in your environment]) | |
75 fi | |
76 | |
77 test "[$]2" = conftestfile | |
78 ) | |
79 then | |
80 # Ok. | |
81 : | |
82 else | |
83 AC_MSG_ERROR([newly created file is older than distributed files! | |
84 Check your system clock]) | |
85 fi | |
86 rm -f conftest* | |
87 AC_MSG_RESULT(yes)]) | |
88 | |
89 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) | |
90 dnl The program must properly implement --version. | |
91 AC_DEFUN(AM_MISSING_PROG, | |
92 [AC_MSG_CHECKING(for working $2) | |
93 # Run test in a subshell; some versions of sh will print an error if | |
94 # an executable is not found, even if stderr is redirected. | |
95 # Redirect stdin to placate older versions of autoconf. Sigh. | |
96 if ($2 --version) < /dev/null > /dev/null 2>&1; then | |
97 $1=$2 | |
98 AC_MSG_RESULT(found) | |
99 else | |
100 $1="$3/missing $2" | |
101 AC_MSG_RESULT(missing) | |
102 fi | |
103 AC_SUBST($1)]) | |
104 | |
105 | |
106 # serial 39 AC_PROG_LIBTOOL | |
107 AC_DEFUN(AC_PROG_LIBTOOL, | |
108 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | |
109 | |
110 # Save cache, so that ltconfig can load it | |
111 AC_CACHE_SAVE | |
112 | |
113 # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
114 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
115 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
116 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | |
117 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | |
118 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
119 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ | |
120 || AC_MSG_ERROR([libtool configure failed]) | |
121 | |
122 # Reload cache, that may have been modified by ltconfig | |
123 AC_CACHE_LOAD | |
124 | |
125 # This can be used to rebuild libtool when needed | |
126 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" | |
127 | |
128 # Always use our own libtool. | |
129 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
130 AC_SUBST(LIBTOOL)dnl | |
131 | |
132 # Redirect the config.log output again, so that the ltconfig log is not | |
133 # clobbered by the next message. | |
134 exec 5>>./config.log | |
135 ]) | |
136 | |
137 AC_DEFUN(AC_LIBTOOL_SETUP, | |
138 [AC_PREREQ(2.13)dnl | |
139 AC_REQUIRE([AC_ENABLE_SHARED])dnl | |
140 AC_REQUIRE([AC_ENABLE_STATIC])dnl | |
141 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | |
142 AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
143 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
144 AC_REQUIRE([AC_PROG_RANLIB])dnl | |
145 AC_REQUIRE([AC_PROG_CC])dnl | |
146 AC_REQUIRE([AC_PROG_LD])dnl | |
147 AC_REQUIRE([AC_PROG_NM])dnl | |
148 AC_REQUIRE([AC_PROG_LN_S])dnl | |
149 dnl | |
150 | |
151 # Check for any special flags to pass to ltconfig. | |
152 libtool_flags="--cache-file=$cache_file" | |
153 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
154 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
155 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
156 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | |
157 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
158 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], | |
159 [libtool_flags="$libtool_flags --enable-dlopen"]) | |
160 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | |
161 [libtool_flags="$libtool_flags --enable-win32-dll"]) | |
162 AC_ARG_ENABLE(libtool-lock, | |
163 [ --disable-libtool-lock avoid locking (might break parallel builds)]) | |
164 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
165 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
166 | |
167 # Some flags need to be propagated to the compiler or linker for good | |
168 # libtool support. | |
169 case "$host" in | |
170 *-*-irix6*) | |
171 # Find out which ABI we are using. | |
172 echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
173 if AC_TRY_EVAL(ac_compile); then | |
174 case "`/usr/bin/file conftest.o`" in | |
175 *32-bit*) | |
176 LD="${LD-ld} -32" | |
177 ;; | |
178 *N32*) | |
179 LD="${LD-ld} -n32" | |
180 ;; | |
181 *64-bit*) | |
182 LD="${LD-ld} -64" | |
183 ;; | |
184 esac | |
185 fi | |
186 rm -rf conftest* | |
187 ;; | |
188 | |
189 *-*-sco3.2v5*) | |
190 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
191 SAVE_CFLAGS="$CFLAGS" | |
192 CFLAGS="$CFLAGS -belf" | |
193 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | |
194 [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])]) | |
195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
197 CFLAGS="$SAVE_CFLAGS" | |
198 fi | |
199 ;; | |
200 | |
201 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | |
202 [*-*-cygwin* | *-*-mingw*) | |
203 AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
204 AC_CHECK_TOOL(AS, as, false) | |
205 AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
206 ;; | |
207 ]) | |
208 esac | |
209 ]) | |
210 | |
211 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support | |
212 AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) | |
213 | |
214 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's | |
215 AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) | |
216 | |
217 # AC_ENABLE_SHARED - implement the --enable-shared flag | |
218 # Usage: AC_ENABLE_SHARED[(DEFAULT)] | |
219 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | |
220 # `yes'. | |
221 AC_DEFUN(AC_ENABLE_SHARED, [dnl | |
222 define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | |
223 AC_ARG_ENABLE(shared, | |
224 changequote(<<, >>)dnl | |
225 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], | |
226 changequote([, ])dnl | |
227 [p=${PACKAGE-default} | |
228 case "$enableval" in | |
229 yes) enable_shared=yes ;; | |
230 no) enable_shared=no ;; | |
231 *) | |
232 enable_shared=no | |
233 # Look at the argument we got. We use all the common list separators. | |
234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
235 for pkg in $enableval; do | |
236 if test "X$pkg" = "X$p"; then | |
237 enable_shared=yes | |
238 fi | |
239 done | |
240 IFS="$ac_save_ifs" | |
241 ;; | |
242 esac], | |
243 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl | |
244 ]) | |
245 | |
246 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared | |
247 AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
248 AC_ENABLE_SHARED(no)]) | |
249 | |
250 # AC_ENABLE_STATIC - implement the --enable-static flag | |
251 # Usage: AC_ENABLE_STATIC[(DEFAULT)] | |
252 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | |
253 # `yes'. | |
254 AC_DEFUN(AC_ENABLE_STATIC, [dnl | |
255 define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | |
256 AC_ARG_ENABLE(static, | |
257 changequote(<<, >>)dnl | |
258 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], | |
259 changequote([, ])dnl | |
260 [p=${PACKAGE-default} | |
261 case "$enableval" in | |
262 yes) enable_static=yes ;; | |
263 no) enable_static=no ;; | |
264 *) | |
265 enable_static=no | |
266 # Look at the argument we got. We use all the common list separators. | |
267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
268 for pkg in $enableval; do | |
269 if test "X$pkg" = "X$p"; then | |
270 enable_static=yes | |
271 fi | |
272 done | |
273 IFS="$ac_save_ifs" | |
274 ;; | |
275 esac], | |
276 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl | |
277 ]) | |
278 | |
279 # AC_DISABLE_STATIC - set the default static flag to --disable-static | |
280 AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
281 AC_ENABLE_STATIC(no)]) | |
282 | |
283 | |
284 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag | |
285 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] | |
286 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | |
287 # `yes'. | |
288 AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl | |
289 define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | |
290 AC_ARG_ENABLE(fast-install, | |
291 changequote(<<, >>)dnl | |
292 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], | |
293 changequote([, ])dnl | |
294 [p=${PACKAGE-default} | |
295 case "$enableval" in | |
296 yes) enable_fast_install=yes ;; | |
297 no) enable_fast_install=no ;; | |
298 *) | |
299 enable_fast_install=no | |
300 # Look at the argument we got. We use all the common list separators. | |
301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
302 for pkg in $enableval; do | |
303 if test "X$pkg" = "X$p"; then | |
304 enable_fast_install=yes | |
305 fi | |
306 done | |
307 IFS="$ac_save_ifs" | |
308 ;; | |
309 esac], | |
310 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl | |
311 ]) | |
312 | |
313 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install | |
314 AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
315 AC_ENABLE_FAST_INSTALL(no)]) | |
316 | |
317 # AC_PROG_LD - find the path to the GNU or non-GNU linker | |
318 AC_DEFUN(AC_PROG_LD, | |
319 [AC_ARG_WITH(gnu-ld, | |
320 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], | |
321 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) | |
322 AC_REQUIRE([AC_PROG_CC])dnl | |
323 AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
324 AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
325 ac_prog=ld | |
326 if test "$ac_cv_prog_gcc" = yes; then | |
327 # Check if gcc -print-prog-name=ld gives a path. | |
328 AC_MSG_CHECKING([for ld used by GCC]) | |
329 ac_prog=`($CC -print-prog-name=ld) 2>&5` | |
330 case "$ac_prog" in | |
331 # Accept absolute paths. | |
332 changequote(,)dnl | |
333 [\\/]* | [A-Za-z]:[\\/]*) | |
334 re_direlt='/[^/][^/]*/\.\./' | |
335 changequote([,])dnl | |
336 # Canonicalize the path of ld | |
337 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
338 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
339 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
340 done | |
341 test -z "$LD" && LD="$ac_prog" | |
342 ;; | |
343 "") | |
344 # If it fails, then pretend we aren't using GCC. | |
345 ac_prog=ld | |
346 ;; | |
347 *) | |
348 # If it is relative, then search for the first ld in PATH. | |
349 with_gnu_ld=unknown | |
350 ;; | |
351 esac | |
352 elif test "$with_gnu_ld" = yes; then | |
353 AC_MSG_CHECKING([for GNU ld]) | |
354 else | |
355 AC_MSG_CHECKING([for non-GNU ld]) | |
356 fi | |
357 AC_CACHE_VAL(ac_cv_path_LD, | |
358 [if test -z "$LD"; then | |
359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
360 for ac_dir in $PATH; do | |
361 test -z "$ac_dir" && ac_dir=. | |
362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
363 ac_cv_path_LD="$ac_dir/$ac_prog" | |
364 # Check to see if the program is GNU ld. I'd rather use --version, | |
365 # but apparently some GNU ld's only accept -v. | |
366 # Break only if it was the GNU/non-GNU ld that we prefer. | |
367 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
368 test "$with_gnu_ld" != no && break | |
369 else | |
370 test "$with_gnu_ld" != yes && break | |
371 fi | |
372 fi | |
373 done | |
374 IFS="$ac_save_ifs" | |
375 else | |
376 ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
377 fi]) | |
378 LD="$ac_cv_path_LD" | |
379 if test -n "$LD"; then | |
380 AC_MSG_RESULT($LD) | |
381 else | |
382 AC_MSG_RESULT(no) | |
383 fi | |
384 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
385 AC_SUBST(LD) | |
386 AC_PROG_LD_GNU | |
387 ]) | |
388 | |
389 AC_DEFUN(AC_PROG_LD_GNU, | |
390 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, | |
391 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
392 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
393 ac_cv_prog_gnu_ld=yes | |
394 else | |
395 ac_cv_prog_gnu_ld=no | |
396 fi]) | |
397 ]) | |
398 | |
399 # AC_PROG_NM - find the path to a BSD-compatible name lister | |
400 AC_DEFUN(AC_PROG_NM, | |
401 [AC_MSG_CHECKING([for BSD-compatible nm]) | |
402 AC_CACHE_VAL(ac_cv_path_NM, | |
403 [if test -n "$NM"; then | |
404 # Let the user override the test. | |
405 ac_cv_path_NM="$NM" | |
406 else | |
407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
408 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
409 test -z "$ac_dir" && ac_dir=. | |
410 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then | |
411 # Check to see if the nm accepts a BSD-compat flag. | |
412 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
413 # nm: unknown option "B" ignored | |
414 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
415 ac_cv_path_NM="$ac_dir/nm -B" | |
416 break | |
417 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
418 ac_cv_path_NM="$ac_dir/nm -p" | |
419 break | |
420 else | |
421 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but | |
422 continue # so that we can try to find one that supports BSD flags | |
423 fi | |
424 fi | |
425 done | |
426 IFS="$ac_save_ifs" | |
427 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
428 fi]) | |
429 NM="$ac_cv_path_NM" | |
430 AC_MSG_RESULT([$NM]) | |
431 AC_SUBST(NM) | |
432 ]) | |
433 | |
434 # AC_CHECK_LIBM - check for math library | |
435 AC_DEFUN(AC_CHECK_LIBM, | |
436 [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
437 LIBM= | |
438 case "$host" in | |
439 *-*-beos* | *-*-cygwin*) | |
440 # These system don't have libm | |
441 ;; | |
442 *-ncr-sysv4.3*) | |
443 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | |
444 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") | |
445 ;; | |
446 *) | |
447 AC_CHECK_LIB(m, main, LIBM="-lm") | |
448 ;; | |
449 esac | |
450 ]) | |
451 | |
452 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for | |
453 # the libltdl convenience library, adds --enable-ltdl-convenience to | |
454 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor | |
455 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed | |
456 # to be `${top_builddir}/libltdl'. Make sure you start DIR with | |
457 # '${top_builddir}/' (note the single quotes!) if your package is not | |
458 # flat, and, if you're not using automake, define top_builddir as | |
459 # appropriate in the Makefiles. | |
460 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
461 case "$enable_ltdl_convenience" in | |
462 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | |
463 "") enable_ltdl_convenience=yes | |
464 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
465 esac | |
466 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la | |
467 ]) | |
468 | |
469 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for | |
470 # the libltdl installable library, and adds --enable-ltdl-install to | |
471 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor | |
472 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed | |
473 # to be `${top_builddir}/libltdl'. Make sure you start DIR with | |
474 # '${top_builddir}/' (note the single quotes!) if your package is not | |
475 # flat, and, if you're not using automake, define top_builddir as | |
476 # appropriate in the Makefiles. | |
477 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | |
478 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
479 AC_CHECK_LIB(ltdl, main, | |
480 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | |
481 [if test x"$enable_ltdl_install" = xno; then | |
482 AC_MSG_WARN([libltdl not installed, but installation disabled]) | |
483 else | |
484 enable_ltdl_install=yes | |
485 fi | |
486 ]) | |
487 if test x"$enable_ltdl_install" = x"yes"; then | |
488 ac_configure_args="$ac_configure_args --enable-ltdl-install" | |
489 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la | |
490 else | |
491 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | |
492 LIBLTDL="-lltdl" | |
493 fi | |
494 ]) | |
495 | |
496 dnl old names | |
497 AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl | |
498 AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl | |
499 AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl | |
500 AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl | |
501 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl | |
502 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl | |
503 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl | |
504 | |
505 dnl This is just to quiet aclocal about the macro not being used | |
506 if(a,b,[AC_DISABLE_FAST_INSTALL])dnl | |
507 | |
508 dnl | |
509 dnl GNOME_INIT_HOOK (script-if-gnome-enabled, [failflag], [additional-inits]) | |
510 dnl | |
511 dnl if failflag is "fail" then GNOME_INIT_HOOK will abort if gnomeConf.sh | |
512 dnl is not found. | |
513 dnl | |
514 | |
515 AC_DEFUN([GNOME_INIT_HOOK],[ | |
516 AC_SUBST(GNOME_LIBS) | |
517 AC_SUBST(GNOMEUI_LIBS) | |
518 AC_SUBST(GNOMEGNORBA_LIBS) | |
519 AC_SUBST(GTKXMHTML_LIBS) | |
520 AC_SUBST(ZVT_LIBS) | |
521 AC_SUBST(GNOME_LIBDIR) | |
522 AC_SUBST(GNOME_INCLUDEDIR) | |
523 | |
524 AC_ARG_WITH(gnome-includes, | |
525 [ --with-gnome-includes Specify location of GNOME headers],[ | |
526 CFLAGS="$CFLAGS -I$withval" | |
527 ]) | |
528 | |
529 AC_ARG_WITH(gnome-libs, | |
530 [ --with-gnome-libs Specify location of GNOME libs],[ | |
531 LDFLAGS="$LDFLAGS -L$withval" | |
532 gnome_prefix=$withval | |
533 ]) | |
534 | |
535 AC_ARG_WITH(gnome, | |
536 [ --with-gnome Specify prefix for GNOME files], | |
537 if test x$withval = xyes; then | |
538 want_gnome=yes | |
539 dnl Note that an empty true branch is not | |
540 dnl valid sh syntax. | |
541 ifelse([$1], [], :, [$1]) | |
542 else | |
543 if test "x$withval" = xno; then | |
544 want_gnome=no | |
545 else | |
546 want_gnome=yes | |
547 LDFLAGS="$LDFLAGS -L$withval/lib" | |
548 CFLAGS="$CFLAGS -I$withval/include" | |
549 gnome_prefix=$withval/lib | |
550 fi | |
551 fi, | |
552 want_gnome=yes) | |
553 | |
554 if test "x$want_gnome" = xyes; then | |
555 | |
556 AC_PATH_PROG(GNOME_CONFIG,gnome-config,no) | |
557 if test "$GNOME_CONFIG" = "no"; then | |
558 no_gnome_config="yes" | |
559 else | |
560 AC_MSG_CHECKING(if $GNOME_CONFIG works) | |
561 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then | |
562 AC_MSG_RESULT(yes) | |
563 GNOME_GNORBA_HOOK([],$2) | |
564 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`" | |
565 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`" | |
566 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`" | |
567 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`" | |
568 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`" | |
569 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" | |
570 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" | |
571 $1 | |
572 else | |
573 AC_MSG_RESULT(no) | |
574 no_gnome_config="yes" | |
575 fi | |
576 fi | |
577 | |
578 if test x$exec_prefix = xNONE; then | |
579 if test x$prefix = xNONE; then | |
580 gnome_prefix=$ac_default_prefix/lib | |
581 else | |
582 gnome_prefix=$prefix/lib | |
583 fi | |
584 else | |
585 gnome_prefix=`eval echo \`echo $libdir\`` | |
586 fi | |
587 | |
588 if test "$no_gnome_config" = "yes"; then | |
589 AC_MSG_CHECKING(for gnomeConf.sh file in $gnome_prefix) | |
590 if test -f $gnome_prefix/gnomeConf.sh; then | |
591 AC_MSG_RESULT(found) | |
592 echo "loading gnome configuration from" \ | |
593 "$gnome_prefix/gnomeConf.sh" | |
594 . $gnome_prefix/gnomeConf.sh | |
595 $1 | |
596 else | |
597 AC_MSG_RESULT(not found) | |
598 if test x$2 = xfail; then | |
599 AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install) | |
600 fi | |
601 fi | |
602 fi | |
603 fi | |
604 | |
605 if test -n "$3"; then | |
606 n="$3" | |
607 for i in $n; do | |
608 AC_MSG_CHECKING(extra library $i) | |
609 case $i in | |
610 applets) | |
611 AC_SUBST(GNOME_APPLETS_LIBS) | |
612 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets` | |
613 AC_MSG_RESULT($GNOME_APPLETS_LIBS);; | |
614 capplet) | |
615 AC_SUBST(GNOME_CAPPLET_LIBS) | |
616 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet` | |
617 AC_MSG_RESULT($GNOME_CAPPLET_LIBS);; | |
618 *) | |
619 AC_MSG_RESULT(unknown library) | |
620 esac | |
621 done | |
622 fi | |
623 ]) | |
624 | |
625 dnl | |
626 dnl GNOME_INIT ([additional-inits]) | |
627 dnl | |
628 | |
629 AC_DEFUN([GNOME_INIT],[ | |
630 GNOME_INIT_HOOK([],fail,$1) | |
631 ]) | |
632 | |
633 dnl | |
634 dnl GNOME_GNORBA_HOOK (script-if-gnorba-found, failflag) | |
635 dnl | |
636 dnl if failflag is "failure" it aborts if gnorba is not found. | |
637 dnl | |
638 | |
639 AC_DEFUN([GNOME_GNORBA_HOOK],[ | |
640 GNOME_ORBIT_HOOK([],$2) | |
641 AC_CACHE_CHECK([for gnorba libraries],gnome_cv_gnorba_found,[ | |
642 gnome_cv_gnorba_found=no | |
643 if test x$gnome_cv_orbit_found = xyes; then | |
644 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`" | |
645 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`" | |
646 if test -n "$GNORBA_LIBS"; then | |
647 gnome_cv_gnorba_found=yes | |
648 fi | |
649 fi | |
650 ]) | |
651 AM_CONDITIONAL(HAVE_GNORBA, test x$gnome_cv_gnorba_found = xyes) | |
652 if test x$gnome_cv_orbit_found = xyes; then | |
653 $1 | |
654 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`" | |
655 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`" | |
656 AC_SUBST(GNORBA_CFLAGS) | |
657 AC_SUBST(GNORBA_LIBS) | |
658 else | |
659 if test x$2 = xfailure; then | |
660 AC_MSG_ERROR(gnorba library not installed or installation problem) | |
661 fi | |
662 fi | |
663 ]) | |
664 | |
665 AC_DEFUN([GNOME_GNORBA_CHECK], [ | |
666 GNOME_GNORBA_HOOK([],failure) | |
667 ]) | |
668 | |
669 dnl | |
670 dnl GNOME_ORBIT_HOOK (script-if-orbit-found, failflag) | |
671 dnl | |
672 dnl if failflag is "failure" it aborts if orbit is not found. | |
673 dnl | |
674 | |
675 AC_DEFUN([GNOME_ORBIT_HOOK],[ | |
676 AC_PATH_PROG(ORBIT_CONFIG,orbit-config,no) | |
677 AC_PATH_PROG(ORBIT_IDL,orbit-idl,no) | |
678 AC_CACHE_CHECK([for working ORBit environment],gnome_cv_orbit_found,[ | |
679 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then | |
680 gnome_cv_orbit_found=no | |
681 else | |
682 gnome_cv_orbit_found=yes | |
683 fi | |
684 ]) | |
685 AM_CONDITIONAL(HAVE_ORBIT, test x$gnome_cv_orbit_found = xyes) | |
686 if test x$gnome_cv_orbit_found = xyes; then | |
687 $1 | |
688 ORBIT_CFLAGS=`orbit-config --cflags client server` | |
689 ORBIT_LIBS=`orbit-config --use-service=name --libs client server` | |
690 AC_SUBST(ORBIT_CFLAGS) | |
691 AC_SUBST(ORBIT_LIBS) | |
692 else | |
693 if test x$2 = xfailure; then | |
694 AC_MSG_ERROR(ORBit not installed or installation problem) | |
695 fi | |
696 fi | |
697 ]) | |
698 | |
699 AC_DEFUN([GNOME_ORBIT_CHECK], [ | |
700 GNOME_ORBIT_HOOK([],failure) | |
701 ]) | |
702 | |
703 # Define a conditional. | |
704 | |
705 AC_DEFUN(AM_CONDITIONAL, | |
706 [AC_SUBST($1_TRUE) | |
707 AC_SUBST($1_FALSE) | |
708 if $2; then | |
709 $1_TRUE= | |
710 $1_FALSE='#' | |
711 else | |
712 $1_TRUE='#' | |
713 $1_FALSE= | |
714 fi]) | |
715 | |
716 dnl GNOME_X_CHECKS | |
717 dnl | |
718 dnl Basic X11 related checks for X11. At the end, the following will be | |
719 dnl defined/changed: | |
720 dnl GTK_{CFLAGS,LIBS} From AM_PATH_GTK | |
721 dnl CPPFLAGS Will include $X_CFLAGS | |
722 dnl GNOME_HAVE_SM `true' or `false' depending on whether session | |
723 dnl management is available. It is available if | |
724 dnl both -lSM and X11/SM/SMlib.h exist. (Some | |
725 dnl Solaris boxes have the library but not the header) | |
726 dnl XPM_LIBS -lXpm if Xpm library is present, otherwise "" | |
727 dnl | |
728 dnl The following configure cache variables are defined (but not used): | |
729 dnl gnome_cv_passdown_{x_libs,X_LIBS,X_CFLAGS} | |
730 dnl | |
731 AC_DEFUN([GNOME_X_CHECKS], | |
732 [ | |
733 AM_PATH_GTK(1.2.0,,AC_MSG_ERROR(GTK not installed, or gtk-config not in path)) | |
734 dnl Hope that GTK_CFLAGS have only -I and -D. Otherwise, we could | |
735 dnl test -z "$x_includes" || CPPFLAGS="$CPPFLAGS -I$x_includes" | |
736 dnl | |
737 dnl Use CPPFLAGS instead of CFLAGS because AC_CHECK_HEADERS uses | |
738 dnl CPPFLAGS, not CFLAGS | |
739 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS" | |
740 | |
741 saved_ldflags="$LDFLAGS" | |
742 LDFLAGS="$LDFLAGS $GTK_LIBS" | |
743 | |
744 gnome_cv_passdown_x_libs="$GTK_LIBS" | |
745 gnome_cv_passdown_X_LIBS="$GTK_LIBS" | |
746 gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS" | |
747 gnome_cv_passdown_GTK_LIBS="$GTK_LIBS" | |
748 | |
749 LDFLAGS="$saved_ldflags $GTK_LIBS" | |
750 | |
751 dnl We are requiring GTK >= 1.1.1, which means this will be fine anyhow. | |
752 USE_DEVGTK=true | |
753 | |
754 dnl AC_MSG_CHECKING([whether to use features from (unstable) GTK+ 1.1.x]) | |
755 dnl AC_EGREP_CPP(answer_affirmatively, | |
756 dnl [#include <gtk/gtkfeatures.h> | |
757 dnl #ifdef GTK_HAVE_FEATURES_1_1_0 | |
758 dnl answer_affirmatively | |
759 dnl #endif | |
760 dnl ], dev_gtk=yes, dev_gtk=no) | |
761 dnl if test "$dev_gtk" = "yes"; then | |
762 dnl USE_DEVGTK=true | |
763 dnl fi | |
764 dnl AC_MSG_RESULT("$dev_gtk") | |
765 | |
766 GNOME_HAVE_SM=true | |
767 case "$GTK_LIBS" in | |
768 *-lSM*) | |
769 dnl Already found it. | |
770 ;; | |
771 *) | |
772 dnl Assume that if we have -lSM then we also have -lICE. | |
773 AC_CHECK_LIB(SM, SmcSaveYourselfDone, | |
774 [GTK_LIBS="-lSM -lICE $GTK_LIBS"],GNOME_HAVE_SM=false, | |
775 $x_libs -lICE) | |
776 ;; | |
777 esac | |
778 | |
779 if test "$GNOME_HAVE_SM" = true; then | |
780 AC_CHECK_HEADERS(X11/SM/SMlib.h,,GNOME_HAVE_SM=false) | |
781 fi | |
782 | |
783 if test "$GNOME_HAVE_SM" = true; then | |
784 AC_DEFINE(HAVE_LIBSM) | |
785 fi | |
786 | |
787 XPM_LIBS="" | |
788 AC_CHECK_LIB(Xpm, XpmFreeXpmImage, [XPM_LIBS="-lXpm"], , $x_libs) | |
789 AC_SUBST(XPM_LIBS) | |
790 | |
791 AC_REQUIRE([GNOME_PTHREAD_CHECK]) | |
792 LDFLAGS="$saved_ldflags" | |
793 | |
794 AC_PROVIDE([GNOME_X_CHECKS]) | |
795 ]) | |
796 | |
797 # Configure paths for GTK+ | |
798 # Owen Taylor 97-11-3 | |
799 | |
800 dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) | |
801 dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS | |
802 dnl | |
803 AC_DEFUN(AM_PATH_GTK, | |
804 [dnl | |
805 dnl Get the cflags and libraries from the gtk-config script | |
806 dnl | |
807 AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)], | |
808 gtk_config_prefix="$withval", gtk_config_prefix="") | |
809 AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)], | |
810 gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="") | |
811 AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program], | |
812 , enable_gtktest=yes) | |
813 | |
814 for module in . $4 | |
815 do | |
816 case "$module" in | |
817 gthread) | |
818 gtk_config_args="$gtk_config_args gthread" | |
819 ;; | |
820 esac | |
821 done | |
822 | |
823 if test x$gtk_config_exec_prefix != x ; then | |
824 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
825 if test x${GTK_CONFIG+set} != xset ; then | |
826 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
827 fi | |
828 fi | |
829 if test x$gtk_config_prefix != x ; then | |
830 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
831 if test x${GTK_CONFIG+set} != xset ; then | |
832 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
833 fi | |
834 fi | |
835 | |
836 AC_PATH_PROG(GTK_CONFIG, gtk-config, no) | |
837 min_gtk_version=ifelse([$1], ,0.99.7,$1) | |
838 AC_MSG_CHECKING(for GTK - version >= $min_gtk_version) | |
839 no_gtk="" | |
840 if test "$GTK_CONFIG" = "no" ; then | |
841 no_gtk=yes | |
842 else | |
843 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
844 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
845 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
846 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | |
847 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
848 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | |
849 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
850 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | |
851 if test "x$enable_gtktest" = "xyes" ; then | |
852 ac_save_CFLAGS="$CFLAGS" | |
853 ac_save_LIBS="$LIBS" | |
854 CFLAGS="$CFLAGS $GTK_CFLAGS" | |
855 LIBS="$GTK_LIBS $LIBS" | |
856 dnl | |
857 dnl Now check if the installed GTK is sufficiently new. (Also sanity | |
858 dnl checks the results of gtk-config to some extent | |
859 dnl | |
860 rm -f conf.gtktest | |
861 AC_TRY_RUN([ | |
862 #include <gtk/gtk.h> | |
863 #include <stdio.h> | |
864 #include <stdlib.h> | |
865 | |
866 int | |
867 main () | |
868 { | |
869 int major, minor, micro; | |
870 char *tmp_version; | |
871 | |
872 system ("touch conf.gtktest"); | |
873 | |
874 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
875 tmp_version = g_strdup("$min_gtk_version"); | |
876 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
877 printf("%s, bad version string\n", "$min_gtk_version"); | |
878 exit(1); | |
879 } | |
880 | |
881 if ((gtk_major_version != $gtk_config_major_version) || | |
882 (gtk_minor_version != $gtk_config_minor_version) || | |
883 (gtk_micro_version != $gtk_config_micro_version)) | |
884 { | |
885 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
886 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
887 gtk_major_version, gtk_minor_version, gtk_micro_version); | |
888 printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
889 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
890 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
891 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
892 printf("*** required on your system.\n"); | |
893 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
894 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
895 printf("*** before re-running configure\n"); | |
896 } | |
897 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
898 else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
899 (gtk_minor_version != GTK_MINOR_VERSION) || | |
900 (gtk_micro_version != GTK_MICRO_VERSION)) | |
901 { | |
902 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
903 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
904 printf("*** library (version %d.%d.%d)\n", | |
905 gtk_major_version, gtk_minor_version, gtk_micro_version); | |
906 } | |
907 #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
908 else | |
909 { | |
910 if ((gtk_major_version > major) || | |
911 ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
912 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
913 { | |
914 return 0; | |
915 } | |
916 else | |
917 { | |
918 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
919 gtk_major_version, gtk_minor_version, gtk_micro_version); | |
920 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
921 major, minor, micro); | |
922 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
923 printf("***\n"); | |
924 printf("*** If you have already installed a sufficiently new version, this error\n"); | |
925 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
926 printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
927 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
928 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
929 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
930 printf("*** so that the correct libraries are found at run-time))\n"); | |
931 } | |
932 } | |
933 return 1; | |
934 } | |
935 ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | |
936 CFLAGS="$ac_save_CFLAGS" | |
937 LIBS="$ac_save_LIBS" | |
938 fi | |
939 fi | |
940 if test "x$no_gtk" = x ; then | |
941 AC_MSG_RESULT(yes) | |
942 ifelse([$2], , :, [$2]) | |
943 else | |
944 AC_MSG_RESULT(no) | |
945 if test "$GTK_CONFIG" = "no" ; then | |
946 echo "*** The gtk-config script installed by GTK could not be found" | |
947 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
948 echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
949 echo "*** full path to gtk-config." | |
950 else | |
951 if test -f conf.gtktest ; then | |
952 : | |
953 else | |
954 echo "*** Could not run GTK test program, checking why..." | |
955 CFLAGS="$CFLAGS $GTK_CFLAGS" | |
956 LIBS="$LIBS $GTK_LIBS" | |
957 AC_TRY_LINK([ | |
958 #include <gtk/gtk.h> | |
959 #include <stdio.h> | |
960 ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ], | |
961 [ echo "*** The test program compiled, but did not run. This usually means" | |
962 echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
963 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
964 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
965 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
966 echo "*** is required on your system" | |
967 echo "***" | |
968 echo "*** If you have an old version installed, it is best to remove it, although" | |
969 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
970 echo "***" | |
971 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
972 echo "*** came with the system with the command" | |
973 echo "***" | |
974 echo "*** rpm --erase --nodeps gtk gtk-devel" ], | |
975 [ echo "*** The test program failed to compile or link. See the file config.log for the" | |
976 echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
977 echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
978 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ]) | |
979 CFLAGS="$ac_save_CFLAGS" | |
980 LIBS="$ac_save_LIBS" | |
981 fi | |
982 fi | |
983 GTK_CFLAGS="" | |
984 GTK_LIBS="" | |
985 ifelse([$3], , :, [$3]) | |
986 fi | |
987 AC_SUBST(GTK_CFLAGS) | |
988 AC_SUBST(GTK_LIBS) | |
989 rm -f conf.gtktest | |
990 ]) | |
991 | |
992 dnl | |
993 dnl And better, use gthreads instead... | |
994 dnl | |
995 | |
996 AC_DEFUN([GNOME_PTHREAD_CHECK],[ | |
997 PTHREAD_LIB="" | |
998 AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIB="-lpthread", | |
999 [AC_CHECK_LIB(pthreads, pthread_create, PTHREAD_LIB="-lpthreads", | |
1000 [AC_CHECK_LIB(c_r, pthread_create, PTHREAD_LIB="-lc_r", | |
1001 [AC_CHECK_FUNC(pthread_create)] | |
1002 )] | |
1003 )] | |
1004 ) | |
1005 AC_SUBST(PTHREAD_LIB) | |
1006 AC_PROVIDE([GNOME_PTHREAD_CHECK]) | |
1007 ]) | |
1008 | |
1009 # Configure paths for GLIB | |
1010 # Owen Taylor 97-11-3 | |
1011 | |
1012 dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) | |
1013 dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or | |
1014 dnl gthread is specified in MODULES, pass to glib-config | |
1015 dnl | |
1016 AC_DEFUN(AM_PATH_GLIB, | |
1017 [dnl | |
1018 dnl Get the cflags and libraries from the glib-config script | |
1019 dnl | |
1020 AC_ARG_WITH(glib-prefix,[ --with-glib-prefix=PFX Prefix where GLIB is installed (optional)], | |
1021 glib_config_prefix="$withval", glib_config_prefix="") | |
1022 AC_ARG_WITH(glib-exec-prefix,[ --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)], | |
1023 glib_config_exec_prefix="$withval", glib_config_exec_prefix="") | |
1024 AC_ARG_ENABLE(glibtest, [ --disable-glibtest Do not try to compile and run a test GLIB program], | |
1025 , enable_glibtest=yes) | |
1026 | |
1027 if test x$glib_config_exec_prefix != x ; then | |
1028 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" | |
1029 if test x${GLIB_CONFIG+set} != xset ; then | |
1030 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config | |
1031 fi | |
1032 fi | |
1033 if test x$glib_config_prefix != x ; then | |
1034 glib_config_args="$glib_config_args --prefix=$glib_config_prefix" | |
1035 if test x${GLIB_CONFIG+set} != xset ; then | |
1036 GLIB_CONFIG=$glib_config_prefix/bin/glib-config | |
1037 fi | |
1038 fi | |
1039 | |
1040 for module in . $4 | |
1041 do | |
1042 case "$module" in | |
1043 gmodule) | |
1044 glib_config_args="$glib_config_args gmodule" | |
1045 ;; | |
1046 gthread) | |
1047 glib_config_args="$glib_config_args gthread" | |
1048 ;; | |
1049 esac | |
1050 done | |
1051 | |
1052 AC_PATH_PROG(GLIB_CONFIG, glib-config, no) | |
1053 min_glib_version=ifelse([$1], ,0.99.7,$1) | |
1054 AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) | |
1055 no_glib="" | |
1056 if test "$GLIB_CONFIG" = "no" ; then | |
1057 no_glib=yes | |
1058 else | |
1059 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` | |
1060 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` | |
1061 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ | |
1062 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | |
1063 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ | |
1064 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | |
1065 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ | |
1066 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | |
1067 if test "x$enable_glibtest" = "xyes" ; then | |
1068 ac_save_CFLAGS="$CFLAGS" | |
1069 ac_save_LIBS="$LIBS" | |
1070 CFLAGS="$CFLAGS $GLIB_CFLAGS" | |
1071 LIBS="$GLIB_LIBS $LIBS" | |
1072 dnl | |
1073 dnl Now check if the installed GLIB is sufficiently new. (Also sanity | |
1074 dnl checks the results of glib-config to some extent | |
1075 dnl | |
1076 rm -f conf.glibtest | |
1077 AC_TRY_RUN([ | |
1078 #include <glib.h> | |
1079 #include <stdio.h> | |
1080 #include <stdlib.h> | |
1081 | |
1082 int | |
1083 main () | |
1084 { | |
1085 int major, minor, micro; | |
1086 char *tmp_version; | |
1087 | |
1088 system ("touch conf.glibtest"); | |
1089 | |
1090 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
1091 tmp_version = g_strdup("$min_glib_version"); | |
1092 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
1093 printf("%s, bad version string\n", "$min_glib_version"); | |
1094 exit(1); | |
1095 } | |
1096 | |
1097 if ((glib_major_version != $glib_config_major_version) || | |
1098 (glib_minor_version != $glib_config_minor_version) || | |
1099 (glib_micro_version != $glib_config_micro_version)) | |
1100 { | |
1101 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | |
1102 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | |
1103 glib_major_version, glib_minor_version, glib_micro_version); | |
1104 printf ("*** was found! If glib-config was correct, then it is best\n"); | |
1105 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); | |
1106 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
1107 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
1108 printf("*** required on your system.\n"); | |
1109 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); | |
1110 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); | |
1111 printf("*** before re-running configure\n"); | |
1112 } | |
1113 else if ((glib_major_version != GLIB_MAJOR_VERSION) || | |
1114 (glib_minor_version != GLIB_MINOR_VERSION) || | |
1115 (glib_micro_version != GLIB_MICRO_VERSION)) | |
1116 { | |
1117 printf("*** GLIB header files (version %d.%d.%d) do not match\n", | |
1118 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | |
1119 printf("*** library (version %d.%d.%d)\n", | |
1120 glib_major_version, glib_minor_version, glib_micro_version); | |
1121 } | |
1122 else | |
1123 { | |
1124 if ((glib_major_version > major) || | |
1125 ((glib_major_version == major) && (glib_minor_version > minor)) || | |
1126 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | |
1127 { | |
1128 return 0; | |
1129 } | |
1130 else | |
1131 { | |
1132 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | |
1133 glib_major_version, glib_minor_version, glib_micro_version); | |
1134 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | |
1135 major, minor, micro); | |
1136 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | |
1137 printf("***\n"); | |
1138 printf("*** If you have already installed a sufficiently new version, this error\n"); | |
1139 printf("*** probably means that the wrong copy of the glib-config shell script is\n"); | |
1140 printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
1141 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); | |
1142 printf("*** correct copy of glib-config. (In this case, you will have to\n"); | |
1143 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
1144 printf("*** so that the correct libraries are found at run-time))\n"); | |
1145 } | |
1146 } | |
1147 return 1; | |
1148 } | |
1149 ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | |
1150 CFLAGS="$ac_save_CFLAGS" | |
1151 LIBS="$ac_save_LIBS" | |
1152 fi | |
1153 fi | |
1154 if test "x$no_glib" = x ; then | |
1155 AC_MSG_RESULT(yes) | |
1156 ifelse([$2], , :, [$2]) | |
1157 else | |
1158 AC_MSG_RESULT(no) | |
1159 if test "$GLIB_CONFIG" = "no" ; then | |
1160 echo "*** The glib-config script installed by GLIB could not be found" | |
1161 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" | |
1162 echo "*** your path, or set the GLIB_CONFIG environment variable to the" | |
1163 echo "*** full path to glib-config." | |
1164 else | |
1165 if test -f conf.glibtest ; then | |
1166 : | |
1167 else | |
1168 echo "*** Could not run GLIB test program, checking why..." | |
1169 CFLAGS="$CFLAGS $GLIB_CFLAGS" | |
1170 LIBS="$LIBS $GLIB_LIBS" | |
1171 AC_TRY_LINK([ | |
1172 #include <glib.h> | |
1173 #include <stdio.h> | |
1174 ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], | |
1175 [ echo "*** The test program compiled, but did not run. This usually means" | |
1176 echo "*** that the run-time linker is not finding GLIB or finding the wrong" | |
1177 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | |
1178 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
1179 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
1180 echo "*** is required on your system" | |
1181 echo "***" | |
1182 echo "*** If you have an old version installed, it is best to remove it, although" | |
1183 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
1184 echo "***" | |
1185 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
1186 echo "*** came with the system with the command" | |
1187 echo "***" | |
1188 echo "*** rpm --erase --nodeps gtk gtk-devel" ], | |
1189 [ echo "*** The test program failed to compile or link. See the file config.log for the" | |
1190 echo "*** exact error that occured. This usually means GLIB was incorrectly installed" | |
1191 echo "*** or that you have moved GLIB since it was installed. In the latter case, you" | |
1192 echo "*** may want to edit the glib-config script: $GLIB_CONFIG" ]) | |
1193 CFLAGS="$ac_save_CFLAGS" | |
1194 LIBS="$ac_save_LIBS" | |
1195 fi | |
1196 fi | |
1197 GLIB_CFLAGS="" | |
1198 GLIB_LIBS="" | |
1199 ifelse([$3], , :, [$3]) | |
1200 fi | |
1201 AC_SUBST(GLIB_CFLAGS) | |
1202 AC_SUBST(GLIB_LIBS) | |
1203 rm -f conf.glibtest | |
1204 ]) | |
1205 | |
1206 # Configure paths for ESD | |
1207 # Manish Singh 98-9-30 | |
1208 # stolen back from Frank Belew | |
1209 # stolen from Manish Singh | |
1210 # Shamelessly stolen from Owen Taylor | |
1211 | |
1212 dnl AM_PATH_GESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | |
1213 dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS | |
1214 dnl | |
1215 AC_DEFUN(AM_PATH_GESD, | |
1216 [dnl | |
1217 dnl Get the cflags and libraries from the esd-config script | |
1218 dnl | |
1219 AC_ARG_WITH(esd-prefix,[ --with-esd-prefix=PFX Prefix where ESD is installed (optional)], | |
1220 esd_prefix="$withval", esd_prefix="") | |
1221 AC_ARG_WITH(esd-exec-prefix,[ --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)], | |
1222 esd_exec_prefix="$withval", esd_exec_prefix="") | |
1223 AC_ARG_ENABLE(esdtest, [ --disable-esdtest Do not try to compile and run a test ESD program], | |
1224 , enable_esdtest=yes) | |
1225 | |
1226 if test x$esd_exec_prefix != x ; then | |
1227 esd_args="$esd_args --exec-prefix=$esd_exec_prefix" | |
1228 if test x${ESD_CONFIG+set} != xset ; then | |
1229 ESD_CONFIG=$esd_exec_prefix/bin/esd-config | |
1230 fi | |
1231 fi | |
1232 if test x$esd_prefix != x ; then | |
1233 esd_args="$esd_args --prefix=$esd_prefix" | |
1234 if test x${ESD_CONFIG+set} != xset ; then | |
1235 ESD_CONFIG=$esd_prefix/bin/esd-config | |
1236 fi | |
1237 fi | |
1238 | |
1239 AC_PATH_PROG(ESD_CONFIG, esd-config, no) | |
1240 min_esd_version=ifelse([$1], ,0.2.7,$1) | |
1241 AC_MSG_CHECKING(for ESD - version >= $min_esd_version) | |
1242 no_esd="" | |
1243 if test "$ESD_CONFIG" = "no" ; then | |
1244 no_esd=yes | |
1245 else | |
1246 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags` | |
1247 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs` | |
1248 | |
1249 esd_major_version=`$ESD_CONFIG $esd_args --version | \ | |
1250 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` | |
1251 esd_minor_version=`$ESD_CONFIG $esd_args --version | \ | |
1252 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` | |
1253 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \ | |
1254 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` | |
1255 if test "x$enable_esdtest" = "xyes" ; then | |
1256 ac_save_CFLAGS="$CFLAGS" | |
1257 ac_save_LIBS="$LIBS" | |
1258 CFLAGS="$CFLAGS $ESD_CFLAGS" | |
1259 LIBS="$LIBS $ESD_LIBS" | |
1260 dnl | |
1261 dnl Now check if the installed ESD is sufficiently new. (Also sanity | |
1262 dnl checks the results of esd-config to some extent | |
1263 dnl | |
1264 rm -f conf.esdtest | |
1265 AC_TRY_RUN([ | |
1266 #include <stdio.h> | |
1267 #include <stdlib.h> | |
1268 #include <string.h> | |
1269 #include <esd.h> | |
1270 | |
1271 char* | |
1272 my_strdup (char *str) | |
1273 { | |
1274 char *new_str; | |
1275 | |
1276 if (str) | |
1277 { | |
1278 new_str = malloc ((strlen (str) + 1) * sizeof(char)); | |
1279 strcpy (new_str, str); | |
1280 } | |
1281 else | |
1282 new_str = NULL; | |
1283 | |
1284 return new_str; | |
1285 } | |
1286 | |
1287 int main () | |
1288 { | |
1289 int major, minor, micro; | |
1290 char *tmp_version; | |
1291 | |
1292 system ("touch conf.esdtest"); | |
1293 | |
1294 /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
1295 tmp_version = my_strdup("$min_esd_version"); | |
1296 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
1297 printf("%s, bad version string\n", "$min_esd_version"); | |
1298 exit(1); | |
1299 } | |
1300 | |
1301 if (($esd_major_version > major) || | |
1302 (($esd_major_version == major) && ($esd_minor_version > minor)) || | |
1303 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro))) | |
1304 { | |
1305 return 0; | |
1306 } | |
1307 else | |
1308 { | |
1309 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version); | |
1310 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro); | |
1311 printf("*** best to upgrade to the required version.\n"); | |
1312 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n"); | |
1313 printf("*** to point to the correct copy of esd-config, and remove the file\n"); | |
1314 printf("*** config.cache before re-running configure\n"); | |
1315 return 1; | |
1316 } | |
1317 } | |
1318 | |
1319 ],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | |
1320 CFLAGS="$ac_save_CFLAGS" | |
1321 LIBS="$ac_save_LIBS" | |
1322 fi | |
1323 fi | |
1324 if test "x$no_esd" = x ; then | |
1325 AC_MSG_RESULT(yes) | |
1326 ifelse([$2], , :, [$2]) | |
1327 else | |
1328 AC_MSG_RESULT(no) | |
1329 if test "$ESD_CONFIG" = "no" ; then | |
1330 echo "*** The esd-config script installed by ESD could not be found" | |
1331 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in" | |
1332 echo "*** your path, or set the ESD_CONFIG environment variable to the" | |
1333 echo "*** full path to esd-config." | |
1334 else | |
1335 if test -f conf.esdtest ; then | |
1336 : | |
1337 else | |
1338 echo "*** Could not run ESD test program, checking why..." | |
1339 CFLAGS="$CFLAGS $ESD_CFLAGS" | |
1340 LIBS="$LIBS $ESD_LIBS" | |
1341 AC_TRY_LINK([ | |
1342 #include <stdio.h> | |
1343 #include <esd.h> | |
1344 ], [ return 0; ], | |
1345 [ echo "*** The test program compiled, but did not run. This usually means" | |
1346 echo "*** that the run-time linker is not finding ESD or finding the wrong" | |
1347 echo "*** version of ESD. If it is not finding ESD, you'll need to set your" | |
1348 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
1349 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
1350 echo "*** is required on your system" | |
1351 echo "***" | |
1352 echo "*** If you have an old version installed, it is best to remove it, although" | |
1353 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], | |
1354 [ echo "*** The test program failed to compile or link. See the file config.log for the" | |
1355 echo "*** exact error that occured. This usually means ESD was incorrectly installed" | |
1356 echo "*** or that you have moved ESD since it was installed. In the latter case, you" | |
1357 echo "*** may want to edit the esd-config script: $ESD_CONFIG" ]) | |
1358 CFLAGS="$ac_save_CFLAGS" | |
1359 LIBS="$ac_save_LIBS" | |
1360 fi | |
1361 fi | |
1362 ESD_CFLAGS="" | |
1363 ESD_LIBS="" | |
1364 ifelse([$3], , :, [$3]) | |
1365 fi | |
1366 AC_SUBST(ESD_CFLAGS) | |
1367 AC_SUBST(ESD_LIBS) | |
1368 rm -f conf.esdtest | |
1369 ]) | |
1370 |