source: trunk/FACT++/aclocal.m4@ 13957

Last change on this file since 13957 was 12832, checked in by tbretz, 13 years ago
Updated to the latest version produced by autoconf 2.68 and Ubuntu 11.11
File size: 113.4 KB
Line 
1# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17[m4_warning([this file was generated for autoconf 2.68.
18You have another version of autoconf. It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22# ===========================================================================
23# http://www.gnu.org/software/autoconf-archive/ax_boost_asio.html
24# ===========================================================================
25#
26# SYNOPSIS
27#
28# AX_BOOST_ASIO
29#
30# DESCRIPTION
31#
32# Test for Asio library from the Boost C++ libraries. The macro requires a
33# preceding call to AX_BOOST_BASE. Further documentation is available at
34# <http://randspringer.de/boost/index.html>.
35#
36# This macro calls:
37#
38# AC_SUBST(BOOST_ASIO_LIB)
39#
40# And sets:
41#
42# HAVE_BOOST_ASIO
43#
44# LICENSE
45#
46# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
47# Copyright (c) 2008 Pete Greenwell <pete@mu.org>
48#
49# Copying and distribution of this file, with or without modification, are
50# permitted in any medium without royalty provided the copyright notice
51# and this notice are preserved. This file is offered as-is, without any
52# warranty.
53
54#serial 13
55
56AC_DEFUN([AX_BOOST_ASIO],
57[
58 AC_ARG_WITH([boost-asio],
59 AS_HELP_STRING([--with-boost-asio@<:@=special-lib@:>@],
60 [use the ASIO library from boost - it is possible to specify a certain library for the linker
61 e.g. --with-boost-asio=boost_system-gcc41-mt-1_34 ]),
62 [
63 if test "$withval" = "no"; then
64 want_boost="no"
65 elif test "$withval" = "yes"; then
66 want_boost="yes"
67 ax_boost_user_asio_lib=""
68 else
69 want_boost="yes"
70 ax_boost_user_asio_lib="$withval"
71 fi
72 ],
73 [want_boost="yes"]
74 )
75
76 if test "x$want_boost" = "xyes"; then
77 AC_REQUIRE([AC_PROG_CC])
78 CPPFLAGS_SAVED="$CPPFLAGS"
79 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
80 export CPPFLAGS
81
82 LDFLAGS_SAVED="$LDFLAGS"
83 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
84 export LDFLAGS
85
86 AC_CACHE_CHECK(whether the Boost::ASIO library is available,
87 ax_cv_boost_asio,
88 [AC_LANG_PUSH([C++])
89 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ @%:@include <boost/asio.hpp>
90 ]],
91 [[
92
93 boost::asio::io_service io;
94 boost::system::error_code timer_result;
95 boost::asio::deadline_timer t(io);
96 t.cancel();
97 io.run_one();
98 return 0;
99 ]])],
100 ax_cv_boost_asio=yes, ax_cv_boost_asio=no)
101 AC_LANG_POP([C++])
102 ])
103 if test "x$ax_cv_boost_asio" = "xyes"; then
104 AC_DEFINE(HAVE_BOOST_ASIO,,[define if the Boost::ASIO library is available])
105 BN=boost_system
106 if test "x$ax_boost_user_asio_lib" = "x"; then
107 for ax_lib in $BN $BN-$CC $BN-$CC-mt $BN-$CC-mt-s $BN-$CC-s \
108 lib$BN lib$BN-$CC lib$BN-$CC-mt lib$BN-$CC-mt-s lib$BN-$CC-s \
109 $BN-mgw $BN-mgw $BN-mgw-mt $BN-mgw-mt-s $BN-mgw-s ; do
110 AC_CHECK_LIB($ax_lib, main, [BOOST_ASIO_LIB="-l$ax_lib" AC_SUBST(BOOST_ASIO_LIB) link_thread="yes" break],
111 [link_thread="no"])
112 done
113 else
114 for ax_lib in $ax_boost_user_asio_lib $BN-$ax_boost_user_asio_lib; do
115 AC_CHECK_LIB($ax_lib, main,
116 [BOOST_ASIO_LIB="-l$ax_lib" AC_SUBST(BOOST_ASIO_LIB) link_asio="yes" break],
117 [link_asio="no"])
118 done
119
120 fi
121 if test "x$ax_lib" = "x"; then
122 AC_MSG_ERROR(Could not find a version of the library!)
123 fi
124 if test "x$link_asio" = "xno"; then
125 AC_MSG_ERROR(Could not link against $ax_lib !)
126 fi
127 fi
128
129 CPPFLAGS="$CPPFLAGS_SAVED"
130 LDFLAGS="$LDFLAGS_SAVED"
131 fi
132])
133
134# ===========================================================================
135# http://www.gnu.org/software/autoconf-archive/ax_boost_base.html
136# ===========================================================================
137#
138# SYNOPSIS
139#
140# AX_BOOST_BASE([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
141#
142# DESCRIPTION
143#
144# Test for the Boost C++ libraries of a particular version (or newer)
145#
146# If no path to the installed boost library is given the macro searchs
147# under /usr, /usr/local, /opt and /opt/local and evaluates the
148# $BOOST_ROOT environment variable. Further documentation is available at
149# <http://randspringer.de/boost/index.html>.
150#
151# This macro calls:
152#
153# AC_SUBST(BOOST_CPPFLAGS) / AC_SUBST(BOOST_LDFLAGS)
154#
155# And sets:
156#
157# HAVE_BOOST
158#
159# LICENSE
160#
161# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
162# Copyright (c) 2009 Peter Adolphs
163#
164# Copying and distribution of this file, with or without modification, are
165# permitted in any medium without royalty provided the copyright notice
166# and this notice are preserved. This file is offered as-is, without any
167# warranty.
168
169#serial 20
170
171AC_DEFUN([AX_BOOST_BASE],
172[
173AC_ARG_WITH([boost],
174 [AS_HELP_STRING([--with-boost@<:@=ARG@:>@],
175 [use Boost library from a standard location (ARG=yes),
176 from the specified location (ARG=<path>),
177 or disable it (ARG=no)
178 @<:@ARG=yes@:>@ ])],
179 [
180 if test "$withval" = "no"; then
181 want_boost="no"
182 elif test "$withval" = "yes"; then
183 want_boost="yes"
184 ac_boost_path=""
185 else
186 want_boost="yes"
187 ac_boost_path="$withval"
188 fi
189 ],
190 [want_boost="yes"])
191
192
193AC_ARG_WITH([boost-libdir],
194 AS_HELP_STRING([--with-boost-libdir=LIB_DIR],
195 [Force given directory for boost libraries. Note that this will override library path detection, so use this parameter only if default library detection fails and you know exactly where your boost libraries are located.]),
196 [
197 if test -d "$withval"
198 then
199 ac_boost_lib_path="$withval"
200 else
201 AC_MSG_ERROR(--with-boost-libdir expected directory name)
202 fi
203 ],
204 [ac_boost_lib_path=""]
205)
206
207if test "x$want_boost" = "xyes"; then
208 boost_lib_version_req=ifelse([$1], ,1.20.0,$1)
209 boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([[0-9]]*\.[[0-9]]*\)'`
210 boost_lib_version_req_major=`expr $boost_lib_version_req : '\([[0-9]]*\)'`
211 boost_lib_version_req_minor=`expr $boost_lib_version_req : '[[0-9]]*\.\([[0-9]]*\)'`
212 boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[[0-9]]*\.[[0-9]]*\.\([[0-9]]*\)'`
213 if test "x$boost_lib_version_req_sub_minor" = "x" ; then
214 boost_lib_version_req_sub_minor="0"
215 fi
216 WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
217 AC_MSG_CHECKING(for boostlib >= $boost_lib_version_req)
218 succeeded=no
219
220 dnl On 64-bit systems check for system libraries in both lib64 and lib.
221 dnl The former is specified by FHS, but e.g. Debian does not adhere to
222 dnl this (as it rises problems for generic multi-arch support).
223 dnl The last entry in the list is chosen by default when no libraries
224 dnl are found, e.g. when only header-only libraries are installed!
225 libsubdirs="lib"
226 ax_arch=`uname -m`
227 if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
228 libsubdirs="lib64 lib lib64"
229 fi
230
231 dnl first we check the system location for boost libraries
232 dnl this location ist chosen if boost libraries are installed with the --layout=system option
233 dnl or if you install boost with RPM
234 if test "$ac_boost_path" != ""; then
235 BOOST_CPPFLAGS="-I$ac_boost_path/include"
236 for ac_boost_path_tmp in $libsubdirs; do
237 if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
238 BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
239 break
240 fi
241 done
242 elif test "$cross_compiling" != yes; then
243 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
244 if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
245 for libsubdir in $libsubdirs ; do
246 if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
247 done
248 BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
249 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
250 break;
251 fi
252 done
253 fi
254
255 dnl overwrite ld flags if we have required special directory with
256 dnl --with-boost-libdir parameter
257 if test "$ac_boost_lib_path" != ""; then
258 BOOST_LDFLAGS="-L$ac_boost_lib_path"
259 fi
260
261 CPPFLAGS_SAVED="$CPPFLAGS"
262 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
263 export CPPFLAGS
264
265 LDFLAGS_SAVED="$LDFLAGS"
266 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
267 export LDFLAGS
268
269 AC_REQUIRE([AC_PROG_CXX])
270 AC_LANG_PUSH(C++)
271 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
272 @%:@include <boost/version.hpp>
273 ]], [[
274 #if BOOST_VERSION >= $WANT_BOOST_VERSION
275 // Everything is okay
276 #else
277 # error Boost version is too old
278 #endif
279 ]])],[
280 AC_MSG_RESULT(yes)
281 succeeded=yes
282 found_system=yes
283 ],[
284 ])
285 AC_LANG_POP([C++])
286
287
288
289 dnl if we found no boost with system layout we search for boost libraries
290 dnl built and installed without the --layout=system option or for a staged(not installed) version
291 if test "x$succeeded" != "xyes"; then
292 _version=0
293 if test "$ac_boost_path" != ""; then
294 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
295 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
296 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
297 V_CHECK=`expr $_version_tmp \> $_version`
298 if test "$V_CHECK" = "1" ; then
299 _version=$_version_tmp
300 fi
301 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
302 BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
303 done
304 fi
305 else
306 if test "$cross_compiling" != yes; then
307 for ac_boost_path in /usr /usr/local /opt /opt/local ; do
308 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
309 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
310 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
311 V_CHECK=`expr $_version_tmp \> $_version`
312 if test "$V_CHECK" = "1" ; then
313 _version=$_version_tmp
314 best_path=$ac_boost_path
315 fi
316 done
317 fi
318 done
319
320 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
321 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
322 if test "$ac_boost_lib_path" = ""; then
323 for libsubdir in $libsubdirs ; do
324 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
325 done
326 BOOST_LDFLAGS="-L$best_path/$libsubdir"
327 fi
328 fi
329
330 if test "x$BOOST_ROOT" != "x"; then
331 for libsubdir in $libsubdirs ; do
332 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
333 done
334 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
335 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
336 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
337 stage_version_shorten=`expr $stage_version : '\([[0-9]]*\.[[0-9]]*\)'`
338 V_CHECK=`expr $stage_version_shorten \>\= $_version`
339 if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
340 AC_MSG_NOTICE(We will use a staged boost library from $BOOST_ROOT)
341 BOOST_CPPFLAGS="-I$BOOST_ROOT"
342 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
343 fi
344 fi
345 fi
346 fi
347
348 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
349 export CPPFLAGS
350 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
351 export LDFLAGS
352
353 AC_LANG_PUSH(C++)
354 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
355 @%:@include <boost/version.hpp>
356 ]], [[
357 #if BOOST_VERSION >= $WANT_BOOST_VERSION
358 // Everything is okay
359 #else
360 # error Boost version is too old
361 #endif
362 ]])],[
363 AC_MSG_RESULT(yes)
364 succeeded=yes
365 found_system=yes
366 ],[
367 ])
368 AC_LANG_POP([C++])
369 fi
370
371 if test "$succeeded" != "yes" ; then
372 if test "$_version" = "0" ; then
373 AC_MSG_NOTICE([[We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.]])
374 else
375 AC_MSG_NOTICE([Your boost libraries seems to old (version $_version).])
376 fi
377 # execute ACTION-IF-NOT-FOUND (if present):
378 ifelse([$3], , :, [$3])
379 else
380 AC_SUBST(BOOST_CPPFLAGS)
381 AC_SUBST(BOOST_LDFLAGS)
382 AC_DEFINE(HAVE_BOOST,,[define if the Boost library is available])
383 # execute ACTION-IF-FOUND (if present):
384 ifelse([$2], , :, [$2])
385 fi
386
387 CPPFLAGS="$CPPFLAGS_SAVED"
388 LDFLAGS="$LDFLAGS_SAVED"
389fi
390
391])
392
393# ===========================================================================
394# http://www.gnu.org/software/autoconf-archive/ax_boost_date_time.html
395# ===========================================================================
396#
397# SYNOPSIS
398#
399# AX_BOOST_DATE_TIME
400#
401# DESCRIPTION
402#
403# Test for Date_Time library from the Boost C++ libraries. The macro
404# requires a preceding call to AX_BOOST_BASE. Further documentation is
405# available at <http://randspringer.de/boost/index.html>.
406#
407# This macro calls:
408#
409# AC_SUBST(BOOST_DATE_TIME_LIB)
410#
411# And sets:
412#
413# HAVE_BOOST_DATE_TIME
414#
415# LICENSE
416#
417# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
418# Copyright (c) 2008 Michael Tindal
419#
420# Copying and distribution of this file, with or without modification, are
421# permitted in any medium without royalty provided the copyright notice
422# and this notice are preserved. This file is offered as-is, without any
423# warranty.
424
425#serial 19
426
427AC_DEFUN([AX_BOOST_DATE_TIME],
428[
429 AC_ARG_WITH([boost-date-time],
430 AS_HELP_STRING([--with-boost-date-time@<:@=special-lib@:>@],
431 [use the Date_Time library from boost - it is possible to specify a certain library for the linker
432 e.g. --with-boost-date-time=boost_date_time-gcc-mt-d-1_33_1 ]),
433 [
434 if test "$withval" = "no"; then
435 want_boost="no"
436 elif test "$withval" = "yes"; then
437 want_boost="yes"
438 ax_boost_user_date_time_lib=""
439 else
440 want_boost="yes"
441 ax_boost_user_date_time_lib="$withval"
442 fi
443 ],
444 [want_boost="yes"]
445 )
446
447 if test "x$want_boost" = "xyes"; then
448 AC_REQUIRE([AC_PROG_CC])
449 CPPFLAGS_SAVED="$CPPFLAGS"
450 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
451 export CPPFLAGS
452
453 LDFLAGS_SAVED="$LDFLAGS"
454 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
455 export LDFLAGS
456
457 AC_CACHE_CHECK(whether the Boost::Date_Time library is available,
458 ax_cv_boost_date_time,
459 [AC_LANG_PUSH([C++])
460 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/date_time/gregorian/gregorian_types.hpp>]],
461 [[using namespace boost::gregorian; date d(2002,Jan,10);
462 return 0;
463 ]])],
464 ax_cv_boost_date_time=yes, ax_cv_boost_date_time=no)
465 AC_LANG_POP([C++])
466 ])
467 if test "x$ax_cv_boost_date_time" = "xyes"; then
468 AC_DEFINE(HAVE_BOOST_DATE_TIME,,[define if the Boost::Date_Time library is available])
469 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
470 if test "x$ax_boost_user_date_time_lib" = "x"; then
471 for libextension in `ls $BOOSTLIBDIR/libboost_date_time*.so* $BOOSTLIBDIR/libboost_date_time*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_date_time.*\)\.so.*$;\1;' -e 's;^lib\(boost_date_time.*\)\.a*$;\1;'` ; do
472 ax_lib=${libextension}
473 AC_CHECK_LIB($ax_lib, exit,
474 [BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break],
475 [link_date_time="no"])
476 done
477 if test "x$link_date_time" != "xyes"; then
478 for libextension in `ls $BOOSTLIBDIR/boost_date_time*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_date_time.*\)\.dll.*$;\1;' -e 's;^\(boost_date_time.*\)\.a*$;\1;'` ; do
479 ax_lib=${libextension}
480 AC_CHECK_LIB($ax_lib, exit,
481 [BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break],
482 [link_date_time="no"])
483 done
484 fi
485
486 else
487 for ax_lib in $ax_boost_user_date_time_lib boost_date_time-$ax_boost_user_date_time_lib; do
488 AC_CHECK_LIB($ax_lib, main,
489 [BOOST_DATE_TIME_LIB="-l$ax_lib"; AC_SUBST(BOOST_DATE_TIME_LIB) link_date_time="yes"; break],
490 [link_date_time="no"])
491 done
492
493 fi
494 if test "x$ax_lib" = "x"; then
495 AC_MSG_ERROR(Could not find a version of the library!)
496 fi
497 if test "x$link_date_time" != "xyes"; then
498 AC_MSG_ERROR(Could not link against $ax_lib !)
499 fi
500 fi
501
502 CPPFLAGS="$CPPFLAGS_SAVED"
503 LDFLAGS="$LDFLAGS_SAVED"
504 fi
505])
506
507# ===========================================================================
508# http://www.gnu.org/software/autoconf-archive/ax_boost_filesystem.html
509# ===========================================================================
510#
511# SYNOPSIS
512#
513# AX_BOOST_FILESYSTEM
514#
515# DESCRIPTION
516#
517# Test for Filesystem library from the Boost C++ libraries. The macro
518# requires a preceding call to AX_BOOST_BASE. Further documentation is
519# available at <http://randspringer.de/boost/index.html>.
520#
521# This macro calls:
522#
523# AC_SUBST(BOOST_FILESYSTEM_LIB)
524#
525# And sets:
526#
527# HAVE_BOOST_FILESYSTEM
528#
529# LICENSE
530#
531# Copyright (c) 2009 Thomas Porschberg <thomas@randspringer.de>
532# Copyright (c) 2009 Michael Tindal
533# Copyright (c) 2009 Roman Rybalko <libtorrent@romanr.info>
534#
535# Copying and distribution of this file, with or without modification, are
536# permitted in any medium without royalty provided the copyright notice
537# and this notice are preserved. This file is offered as-is, without any
538# warranty.
539
540#serial 22
541
542AC_DEFUN([AX_BOOST_FILESYSTEM],
543[
544 AC_ARG_WITH([boost-filesystem],
545 AS_HELP_STRING([--with-boost-filesystem@<:@=special-lib@:>@],
546 [use the Filesystem library from boost - it is possible to specify a certain library for the linker
547 e.g. --with-boost-filesystem=boost_filesystem-gcc-mt ]),
548 [
549 if test "$withval" = "no"; then
550 want_boost="no"
551 elif test "$withval" = "yes"; then
552 want_boost="yes"
553 ax_boost_user_filesystem_lib=""
554 else
555 want_boost="yes"
556 ax_boost_user_filesystem_lib="$withval"
557 fi
558 ],
559 [want_boost="yes"]
560 )
561
562 if test "x$want_boost" = "xyes"; then
563 AC_REQUIRE([AC_PROG_CC])
564 CPPFLAGS_SAVED="$CPPFLAGS"
565 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
566 export CPPFLAGS
567
568 LDFLAGS_SAVED="$LDFLAGS"
569 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
570 export LDFLAGS
571
572 LIBS_SAVED=$LIBS
573 LIBS="$LIBS $BOOST_SYSTEM_LIB"
574 export LIBS
575
576 AC_CACHE_CHECK(whether the Boost::Filesystem library is available,
577 ax_cv_boost_filesystem,
578 [AC_LANG_PUSH([C++])
579 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/filesystem/path.hpp>]],
580 [[using namespace boost::filesystem;
581 path my_path( "foo/bar/data.txt" );
582 return 0;]])],
583 ax_cv_boost_filesystem=yes, ax_cv_boost_filesystem=no)
584 AC_LANG_POP([C++])
585 ])
586 if test "x$ax_cv_boost_filesystem" = "xyes"; then
587 AC_DEFINE(HAVE_BOOST_FILESYSTEM,,[define if the Boost::Filesystem library is available])
588 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
589 if test "x$ax_boost_user_filesystem_lib" = "x"; then
590 for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
591 ax_lib=${libextension}
592 AC_CHECK_LIB($ax_lib, exit,
593 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
594 [link_filesystem="no"])
595 done
596 if test "x$link_filesystem" != "xyes"; then
597 for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do
598 ax_lib=${libextension}
599 AC_CHECK_LIB($ax_lib, exit,
600 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
601 [link_filesystem="no"])
602 done
603 fi
604 else
605 for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
606 AC_CHECK_LIB($ax_lib, exit,
607 [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break],
608 [link_filesystem="no"])
609 done
610
611 fi
612 if test "x$ax_lib" = "x"; then
613 AC_MSG_ERROR(Could not find a version of the library!)
614 fi
615 if test "x$link_filesystem" != "xyes"; then
616 AC_MSG_ERROR(Could not link against $ax_lib !)
617 fi
618 fi
619
620 CPPFLAGS="$CPPFLAGS_SAVED"
621 LDFLAGS="$LDFLAGS_SAVED"
622 LIBS="$LIBS_SAVED"
623 fi
624])
625
626# ============================================================================
627# http://www.gnu.org/software/autoconf-archive/ax_boost_program_options.html
628# ============================================================================
629#
630# SYNOPSIS
631#
632# AX_BOOST_PROGRAM_OPTIONS
633#
634# DESCRIPTION
635#
636# Test for program options library from the Boost C++ libraries. The macro
637# requires a preceding call to AX_BOOST_BASE. Further documentation is
638# available at <http://randspringer.de/boost/index.html>.
639#
640# This macro calls:
641#
642# AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB)
643#
644# And sets:
645#
646# HAVE_BOOST_PROGRAM_OPTIONS
647#
648# LICENSE
649#
650# Copyright (c) 2009 Thomas Porschberg <thomas@randspringer.de>
651#
652# Copying and distribution of this file, with or without modification, are
653# permitted in any medium without royalty provided the copyright notice
654# and this notice are preserved. This file is offered as-is, without any
655# warranty.
656
657#serial 20
658
659AC_DEFUN([AX_BOOST_PROGRAM_OPTIONS],
660[
661 AC_ARG_WITH([boost-program-options],
662 AS_HELP_STRING([--with-boost-program-options@<:@=special-lib@:>@],
663 [use the program options library from boost - it is possible to specify a certain library for the linker
664 e.g. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1 ]),
665 [
666 if test "$withval" = "no"; then
667 want_boost="no"
668 elif test "$withval" = "yes"; then
669 want_boost="yes"
670 ax_boost_user_program_options_lib=""
671 else
672 want_boost="yes"
673 ax_boost_user_program_options_lib="$withval"
674 fi
675 ],
676 [want_boost="yes"]
677 )
678
679 if test "x$want_boost" = "xyes"; then
680 AC_REQUIRE([AC_PROG_CC])
681 export want_boost
682 CPPFLAGS_SAVED="$CPPFLAGS"
683 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
684 export CPPFLAGS
685 LDFLAGS_SAVED="$LDFLAGS"
686 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
687 export LDFLAGS
688 AC_CACHE_CHECK([whether the Boost::Program_Options library is available],
689 ax_cv_boost_program_options,
690 [AC_LANG_PUSH(C++)
691 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/program_options.hpp>
692 ]],
693 [[boost::program_options::options_description generic("Generic options");
694 return 0;]])],
695 ax_cv_boost_program_options=yes, ax_cv_boost_program_options=no)
696 AC_LANG_POP([C++])
697 ])
698 if test "$ax_cv_boost_program_options" = yes; then
699 AC_DEFINE(HAVE_BOOST_PROGRAM_OPTIONS,,[define if the Boost::PROGRAM_OPTIONS library is available])
700 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
701 if test "x$ax_boost_user_program_options_lib" = "x"; then
702 for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do
703 ax_lib=${libextension}
704 AC_CHECK_LIB($ax_lib, exit,
705 [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break],
706 [link_program_options="no"])
707 done
708 if test "x$link_program_options" != "xyes"; then
709 for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do
710 ax_lib=${libextension}
711 AC_CHECK_LIB($ax_lib, exit,
712 [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break],
713 [link_program_options="no"])
714 done
715 fi
716 else
717 for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
718 AC_CHECK_LIB($ax_lib, main,
719 [BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; AC_SUBST(BOOST_PROGRAM_OPTIONS_LIB) link_program_options="yes"; break],
720 [link_program_options="no"])
721 done
722 fi
723 if test "x$ax_lib" = "x"; then
724 AC_MSG_ERROR(Could not find a version of the library!)
725 fi
726 if test "x$link_program_options" != "xyes"; then
727 AC_MSG_ERROR([Could not link against [$ax_lib] !])
728 fi
729 fi
730 CPPFLAGS="$CPPFLAGS_SAVED"
731 LDFLAGS="$LDFLAGS_SAVED"
732 fi
733])
734
735# ===========================================================================
736# http://www.gnu.org/software/autoconf-archive/ax_boost_regex.html
737# ===========================================================================
738#
739# SYNOPSIS
740#
741# AX_BOOST_REGEX
742#
743# DESCRIPTION
744#
745# Test for Regex library from the Boost C++ libraries. The macro requires
746# a preceding call to AX_BOOST_BASE. Further documentation is available at
747# <http://randspringer.de/boost/index.html>.
748#
749# This macro calls:
750#
751# AC_SUBST(BOOST_REGEX_LIB)
752#
753# And sets:
754#
755# HAVE_BOOST_REGEX
756#
757# LICENSE
758#
759# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
760# Copyright (c) 2008 Michael Tindal
761#
762# Copying and distribution of this file, with or without modification, are
763# permitted in any medium without royalty provided the copyright notice
764# and this notice are preserved. This file is offered as-is, without any
765# warranty.
766
767#serial 20
768
769AC_DEFUN([AX_BOOST_REGEX],
770[
771 AC_ARG_WITH([boost-regex],
772 AS_HELP_STRING([--with-boost-regex@<:@=special-lib@:>@],
773 [use the Regex library from boost - it is possible to specify a certain library for the linker
774 e.g. --with-boost-regex=boost_regex-gcc-mt-d-1_33_1 ]),
775 [
776 if test "$withval" = "no"; then
777 want_boost="no"
778 elif test "$withval" = "yes"; then
779 want_boost="yes"
780 ax_boost_user_regex_lib=""
781 else
782 want_boost="yes"
783 ax_boost_user_regex_lib="$withval"
784 fi
785 ],
786 [want_boost="yes"]
787 )
788
789 if test "x$want_boost" = "xyes"; then
790 AC_REQUIRE([AC_PROG_CC])
791 CPPFLAGS_SAVED="$CPPFLAGS"
792 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
793 export CPPFLAGS
794
795 LDFLAGS_SAVED="$LDFLAGS"
796 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
797 export LDFLAGS
798
799 AC_CACHE_CHECK(whether the Boost::Regex library is available,
800 ax_cv_boost_regex,
801 [AC_LANG_PUSH([C++])
802 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/regex.hpp>
803 ]],
804 [[boost::regex r(); return 0;]])],
805 ax_cv_boost_regex=yes, ax_cv_boost_regex=no)
806 AC_LANG_POP([C++])
807 ])
808 if test "x$ax_cv_boost_regex" = "xyes"; then
809 AC_DEFINE(HAVE_BOOST_REGEX,,[define if the Boost::Regex library is available])
810 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
811 if test "x$ax_boost_user_regex_lib" = "x"; then
812 for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.a*$;\1;'` ; do
813 ax_lib=${libextension}
814 AC_CHECK_LIB($ax_lib, exit,
815 [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break],
816 [link_regex="no"])
817 done
818 if test "x$link_regex" != "xyes"; then
819 for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do
820 ax_lib=${libextension}
821 AC_CHECK_LIB($ax_lib, exit,
822 [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break],
823 [link_regex="no"])
824 done
825 fi
826
827 else
828 for ax_lib in $ax_boost_user_regex_lib boost_regex-$ax_boost_user_regex_lib; do
829 AC_CHECK_LIB($ax_lib, main,
830 [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break],
831 [link_regex="no"])
832 done
833 fi
834 if test "x$ax_lib" = "x"; then
835 AC_MSG_ERROR(Could not find a version of the Boost::Regex library!)
836 fi
837 if test "x$link_regex" != "xyes"; then
838 AC_MSG_ERROR(Could not link against $ax_lib !)
839 fi
840 fi
841
842 CPPFLAGS="$CPPFLAGS_SAVED"
843 LDFLAGS="$LDFLAGS_SAVED"
844 fi
845])
846
847# ===========================================================================
848# http://www.gnu.org/software/autoconf-archive/ax_boost_system.html
849# ===========================================================================
850#
851# SYNOPSIS
852#
853# AX_BOOST_SYSTEM
854#
855# DESCRIPTION
856#
857# Test for System library from the Boost C++ libraries. The macro requires
858# a preceding call to AX_BOOST_BASE. Further documentation is available at
859# <http://randspringer.de/boost/index.html>.
860#
861# This macro calls:
862#
863# AC_SUBST(BOOST_SYSTEM_LIB)
864#
865# And sets:
866#
867# HAVE_BOOST_SYSTEM
868#
869# LICENSE
870#
871# Copyright (c) 2008 Thomas Porschberg <thomas@randspringer.de>
872# Copyright (c) 2008 Michael Tindal
873# Copyright (c) 2008 Daniel Casimiro <dan.casimiro@gmail.com>
874#
875# Copying and distribution of this file, with or without modification, are
876# permitted in any medium without royalty provided the copyright notice
877# and this notice are preserved. This file is offered as-is, without any
878# warranty.
879
880#serial 14
881
882AC_DEFUN([AX_BOOST_SYSTEM],
883[
884 AC_ARG_WITH([boost-system],
885 AS_HELP_STRING([--with-boost-system@<:@=special-lib@:>@],
886 [use the System library from boost - it is possible to specify a certain library for the linker
887 e.g. --with-boost-system=boost_system-gcc-mt ]),
888 [
889 if test "$withval" = "no"; then
890 want_boost="no"
891 elif test "$withval" = "yes"; then
892 want_boost="yes"
893 ax_boost_user_system_lib=""
894 else
895 want_boost="yes"
896 ax_boost_user_system_lib="$withval"
897 fi
898 ],
899 [want_boost="yes"]
900 )
901
902 if test "x$want_boost" = "xyes"; then
903 AC_REQUIRE([AC_PROG_CC])
904 AC_REQUIRE([AC_CANONICAL_BUILD])
905 CPPFLAGS_SAVED="$CPPFLAGS"
906 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
907 export CPPFLAGS
908
909 LDFLAGS_SAVED="$LDFLAGS"
910 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
911 export LDFLAGS
912
913 AC_CACHE_CHECK(whether the Boost::System library is available,
914 ax_cv_boost_system,
915 [AC_LANG_PUSH([C++])
916 CXXFLAGS_SAVE=$CXXFLAGS
917
918 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/system/error_code.hpp>]],
919 [[boost::system::system_category]])],
920 ax_cv_boost_system=yes, ax_cv_boost_system=no)
921 CXXFLAGS=$CXXFLAGS_SAVE
922 AC_LANG_POP([C++])
923 ])
924 if test "x$ax_cv_boost_system" = "xyes"; then
925 AC_SUBST(BOOST_CPPFLAGS)
926
927 AC_DEFINE(HAVE_BOOST_SYSTEM,,[define if the Boost::System library is available])
928 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
929
930 LDFLAGS_SAVE=$LDFLAGS
931 if test "x$ax_boost_user_system_lib" = "x"; then
932 for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
933 ax_lib=${libextension}
934 AC_CHECK_LIB($ax_lib, exit,
935 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
936 [link_system="no"])
937 done
938 if test "x$link_system" != "xyes"; then
939 for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do
940 ax_lib=${libextension}
941 AC_CHECK_LIB($ax_lib, exit,
942 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
943 [link_system="no"])
944 done
945 fi
946
947 else
948 for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
949 AC_CHECK_LIB($ax_lib, exit,
950 [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break],
951 [link_system="no"])
952 done
953
954 fi
955 if test "x$ax_lib" = "x"; then
956 AC_MSG_ERROR(Could not find a version of the library!)
957 fi
958 if test "x$link_system" = "xno"; then
959 AC_MSG_ERROR(Could not link against $ax_lib !)
960 fi
961 fi
962
963 CPPFLAGS="$CPPFLAGS_SAVED"
964 LDFLAGS="$LDFLAGS_SAVED"
965 fi
966])
967
968# ===========================================================================
969# http://www.gnu.org/software/autoconf-archive/ax_boost_thread.html
970# ===========================================================================
971#
972# SYNOPSIS
973#
974# AX_BOOST_THREAD
975#
976# DESCRIPTION
977#
978# Test for Thread library from the Boost C++ libraries. The macro requires
979# a preceding call to AX_BOOST_BASE. Further documentation is available at
980# <http://randspringer.de/boost/index.html>.
981#
982# This macro calls:
983#
984# AC_SUBST(BOOST_THREAD_LIB)
985#
986# And sets:
987#
988# HAVE_BOOST_THREAD
989#
990# LICENSE
991#
992# Copyright (c) 2009 Thomas Porschberg <thomas@randspringer.de>
993# Copyright (c) 2009 Michael Tindal
994#
995# Copying and distribution of this file, with or without modification, are
996# permitted in any medium without royalty provided the copyright notice
997# and this notice are preserved. This file is offered as-is, without any
998# warranty.
999
1000#serial 23
1001
1002AC_DEFUN([AX_BOOST_THREAD],
1003[
1004 AC_ARG_WITH([boost-thread],
1005 AS_HELP_STRING([--with-boost-thread@<:@=special-lib@:>@],
1006 [use the Thread library from boost - it is possible to specify a certain library for the linker
1007 e.g. --with-boost-thread=boost_thread-gcc-mt ]),
1008 [
1009 if test "$withval" = "no"; then
1010 want_boost="no"
1011 elif test "$withval" = "yes"; then
1012 want_boost="yes"
1013 ax_boost_user_thread_lib=""
1014 else
1015 want_boost="yes"
1016 ax_boost_user_thread_lib="$withval"
1017 fi
1018 ],
1019 [want_boost="yes"]
1020 )
1021
1022 if test "x$want_boost" = "xyes"; then
1023 AC_REQUIRE([AC_PROG_CC])
1024 AC_REQUIRE([AC_CANONICAL_BUILD])
1025 CPPFLAGS_SAVED="$CPPFLAGS"
1026 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
1027 export CPPFLAGS
1028
1029 LDFLAGS_SAVED="$LDFLAGS"
1030 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
1031 export LDFLAGS
1032
1033 AC_CACHE_CHECK(whether the Boost::Thread library is available,
1034 ax_cv_boost_thread,
1035 [AC_LANG_PUSH([C++])
1036 CXXFLAGS_SAVE=$CXXFLAGS
1037
1038 if test "x$host_os" = "xsolaris" ; then
1039 CXXFLAGS="-pthreads $CXXFLAGS"
1040 elif test "x$host_os" = "xmingw32" ; then
1041 CXXFLAGS="-mthreads $CXXFLAGS"
1042 else
1043 CXXFLAGS="-pthread $CXXFLAGS"
1044 fi
1045 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <boost/thread/thread.hpp>]],
1046 [[boost::thread_group thrds;
1047 return 0;]])],
1048 ax_cv_boost_thread=yes, ax_cv_boost_thread=no)
1049 CXXFLAGS=$CXXFLAGS_SAVE
1050 AC_LANG_POP([C++])
1051 ])
1052 if test "x$ax_cv_boost_thread" = "xyes"; then
1053 if test "x$host_os" = "xsolaris" ; then
1054 BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
1055 elif test "x$host_os" = "xmingw32" ; then
1056 BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
1057 else
1058 BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
1059 fi
1060
1061 AC_SUBST(BOOST_CPPFLAGS)
1062
1063 AC_DEFINE(HAVE_BOOST_THREAD,,[define if the Boost::Thread library is available])
1064 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'`
1065
1066 LDFLAGS_SAVE=$LDFLAGS
1067 case "x$host_os" in
1068 *bsd* )
1069 LDFLAGS="-pthread $LDFLAGS"
1070 break;
1071 ;;
1072 esac
1073 if test "x$ax_boost_user_thread_lib" = "x"; then
1074 for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do
1075 ax_lib=${libextension}
1076 AC_CHECK_LIB($ax_lib, exit,
1077 [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
1078 [link_thread="no"])
1079 done
1080 if test "x$link_thread" != "xyes"; then
1081 for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
1082 ax_lib=${libextension}
1083 AC_CHECK_LIB($ax_lib, exit,
1084 [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
1085 [link_thread="no"])
1086 done
1087 fi
1088
1089 else
1090 for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
1091 AC_CHECK_LIB($ax_lib, exit,
1092 [BOOST_THREAD_LIB="-l$ax_lib"; AC_SUBST(BOOST_THREAD_LIB) link_thread="yes"; break],
1093 [link_thread="no"])
1094 done
1095
1096 fi
1097 if test "x$ax_lib" = "x"; then
1098 AC_MSG_ERROR(Could not find a version of the library!)
1099 fi
1100 if test "x$link_thread" = "xno"; then
1101 AC_MSG_ERROR(Could not link against $ax_lib !)
1102 else
1103 case "x$host_os" in
1104 *bsd* )
1105 BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
1106 break;
1107 ;;
1108 esac
1109
1110 fi
1111 fi
1112
1113 CPPFLAGS="$CPPFLAGS_SAVED"
1114 LDFLAGS="$LDFLAGS_SAVED"
1115 fi
1116])
1117
1118# ===========================================================================
1119# http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
1120# ===========================================================================
1121#
1122# SYNOPSIS
1123#
1124# DX_INIT_DOXYGEN(PROJECT-NAME, DOXYFILE-PATH, [OUTPUT-DIR])
1125# DX_DOXYGEN_FEATURE(ON|OFF)
1126# DX_DOT_FEATURE(ON|OFF)
1127# DX_HTML_FEATURE(ON|OFF)
1128# DX_CHM_FEATURE(ON|OFF)
1129# DX_CHI_FEATURE(ON|OFF)
1130# DX_MAN_FEATURE(ON|OFF)
1131# DX_RTF_FEATURE(ON|OFF)
1132# DX_XML_FEATURE(ON|OFF)
1133# DX_PDF_FEATURE(ON|OFF)
1134# DX_PS_FEATURE(ON|OFF)
1135#
1136# DESCRIPTION
1137#
1138# The DX_*_FEATURE macros control the default setting for the given
1139# Doxygen feature. Supported features are 'DOXYGEN' itself, 'DOT' for
1140# generating graphics, 'HTML' for plain HTML, 'CHM' for compressed HTML
1141# help (for MS users), 'CHI' for generating a seperate .chi file by the
1142# .chm file, and 'MAN', 'RTF', 'XML', 'PDF' and 'PS' for the appropriate
1143# output formats. The environment variable DOXYGEN_PAPER_SIZE may be
1144# specified to override the default 'a4wide' paper size.
1145#
1146# By default, HTML, PDF and PS documentation is generated as this seems to
1147# be the most popular and portable combination. MAN pages created by
1148# Doxygen are usually problematic, though by picking an appropriate subset
1149# and doing some massaging they might be better than nothing. CHM and RTF
1150# are specific for MS (note that you can't generate both HTML and CHM at
1151# the same time). The XML is rather useless unless you apply specialized
1152# post-processing to it.
1153#
1154# The macros mainly control the default state of the feature. The use can
1155# override the default by specifying --enable or --disable. The macros
1156# ensure that contradictory flags are not given (e.g.,
1157# --enable-doxygen-html and --enable-doxygen-chm,
1158# --enable-doxygen-anything with --disable-doxygen, etc.) Finally, each
1159# feature will be automatically disabled (with a warning) if the required
1160# programs are missing.
1161#
1162# Once all the feature defaults have been specified, call DX_INIT_DOXYGEN
1163# with the following parameters: a one-word name for the project for use
1164# as a filename base etc., an optional configuration file name (the
1165# default is 'Doxyfile', the same as Doxygen's default), and an optional
1166# output directory name (the default is 'doxygen-doc').
1167#
1168# Automake Support
1169#
1170# The following is a template aminclude.am file for use with Automake.
1171# Make targets and variables values are controlled by the various
1172# DX_COND_* conditionals set by autoconf.
1173#
1174# The provided targets are:
1175#
1176# doxygen-doc: Generate all doxygen documentation.
1177#
1178# doxygen-run: Run doxygen, which will generate some of the
1179# documentation (HTML, CHM, CHI, MAN, RTF, XML)
1180# but will not do the post processing required
1181# for the rest of it (PS, PDF, and some MAN).
1182#
1183# doxygen-man: Rename some doxygen generated man pages.
1184#
1185# doxygen-ps: Generate doxygen PostScript documentation.
1186#
1187# doxygen-pdf: Generate doxygen PDF documentation.
1188#
1189# Note that by default these are not integrated into the automake targets.
1190# If doxygen is used to generate man pages, you can achieve this
1191# integration by setting man3_MANS to the list of man pages generated and
1192# then adding the dependency:
1193#
1194# $(man3_MANS): doxygen-doc
1195#
1196# This will cause make to run doxygen and generate all the documentation.
1197#
1198# The following variable is intended for use in Makefile.am:
1199#
1200# DX_CLEANFILES = everything to clean.
1201#
1202# Then add this variable to MOSTLYCLEANFILES.
1203#
1204# ----- begin aminclude.am -------------------------------------
1205#
1206# ## --------------------------------- ##
1207# ## Format-independent Doxygen rules. ##
1208# ## --------------------------------- ##
1209#
1210# if DX_COND_doc
1211#
1212# ## ------------------------------- ##
1213# ## Rules specific for HTML output. ##
1214# ## ------------------------------- ##
1215#
1216# if DX_COND_html
1217#
1218# DX_CLEAN_HTML = @DX_DOCDIR@/html
1219#
1220# endif DX_COND_html
1221#
1222# ## ------------------------------ ##
1223# ## Rules specific for CHM output. ##
1224# ## ------------------------------ ##
1225#
1226# if DX_COND_chm
1227#
1228# DX_CLEAN_CHM = @DX_DOCDIR@/chm
1229#
1230# if DX_COND_chi
1231#
1232# DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
1233#
1234# endif DX_COND_chi
1235#
1236# endif DX_COND_chm
1237#
1238# ## ------------------------------ ##
1239# ## Rules specific for MAN output. ##
1240# ## ------------------------------ ##
1241#
1242# if DX_COND_man
1243#
1244# DX_CLEAN_MAN = @DX_DOCDIR@/man
1245#
1246# endif DX_COND_man
1247#
1248# ## ------------------------------ ##
1249# ## Rules specific for RTF output. ##
1250# ## ------------------------------ ##
1251#
1252# if DX_COND_rtf
1253#
1254# DX_CLEAN_RTF = @DX_DOCDIR@/rtf
1255#
1256# endif DX_COND_rtf
1257#
1258# ## ------------------------------ ##
1259# ## Rules specific for XML output. ##
1260# ## ------------------------------ ##
1261#
1262# if DX_COND_xml
1263#
1264# DX_CLEAN_XML = @DX_DOCDIR@/xml
1265#
1266# endif DX_COND_xml
1267#
1268# ## ----------------------------- ##
1269# ## Rules specific for PS output. ##
1270# ## ----------------------------- ##
1271#
1272# if DX_COND_ps
1273#
1274# DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
1275#
1276# DX_PS_GOAL = doxygen-ps
1277#
1278# doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
1279#
1280# @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
1281# cd @DX_DOCDIR@/latex; \
1282# rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
1283# $(DX_LATEX) refman.tex; \
1284# $(MAKEINDEX_PATH) refman.idx; \
1285# $(DX_LATEX) refman.tex; \
1286# countdown=5; \
1287# while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
1288# refman.log > /dev/null 2>&1 \
1289# && test $$countdown -gt 0; do \
1290# $(DX_LATEX) refman.tex; \
1291# countdown=`expr $$countdown - 1`; \
1292# done; \
1293# $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
1294#
1295# endif DX_COND_ps
1296#
1297# ## ------------------------------ ##
1298# ## Rules specific for PDF output. ##
1299# ## ------------------------------ ##
1300#
1301# if DX_COND_pdf
1302#
1303# DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
1304#
1305# DX_PDF_GOAL = doxygen-pdf
1306#
1307# doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
1308#
1309# @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
1310# cd @DX_DOCDIR@/latex; \
1311# rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
1312# $(DX_PDFLATEX) refman.tex; \
1313# $(DX_MAKEINDEX) refman.idx; \
1314# $(DX_PDFLATEX) refman.tex; \
1315# countdown=5; \
1316# while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
1317# refman.log > /dev/null 2>&1 \
1318# && test $$countdown -gt 0; do \
1319# $(DX_PDFLATEX) refman.tex; \
1320# countdown=`expr $$countdown - 1`; \
1321# done; \
1322# mv refman.pdf ../@PACKAGE@.pdf
1323#
1324# endif DX_COND_pdf
1325#
1326# ## ------------------------------------------------- ##
1327# ## Rules specific for LaTeX (shared for PS and PDF). ##
1328# ## ------------------------------------------------- ##
1329#
1330# if DX_COND_latex
1331#
1332# DX_CLEAN_LATEX = @DX_DOCDIR@/latex
1333#
1334# endif DX_COND_latex
1335#
1336# .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
1337#
1338# .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
1339#
1340# doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
1341#
1342# doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
1343#
1344# @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
1345# rm -rf @DX_DOCDIR@
1346# $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
1347#
1348# DX_CLEANFILES = \
1349# @DX_DOCDIR@/@PACKAGE@.tag \
1350# -r \
1351# $(DX_CLEAN_HTML) \
1352# $(DX_CLEAN_CHM) \
1353# $(DX_CLEAN_CHI) \
1354# $(DX_CLEAN_MAN) \
1355# $(DX_CLEAN_RTF) \
1356# $(DX_CLEAN_XML) \
1357# $(DX_CLEAN_PS) \
1358# $(DX_CLEAN_PDF) \
1359# $(DX_CLEAN_LATEX)
1360#
1361# endif DX_COND_doc
1362#
1363# ----- end aminclude.am ---------------------------------------
1364#
1365# LICENSE
1366#
1367# Copyright (c) 2009 Oren Ben-Kiki <oren@ben-kiki.org>
1368#
1369# Copying and distribution of this file, with or without modification, are
1370# permitted in any medium without royalty provided the copyright notice
1371# and this notice are preserved. This file is offered as-is, without any
1372# warranty.
1373
1374#serial 11
1375
1376
1377DX_ENV=""
1378AC_DEFUN([DX_FEATURE_doc], ON)
1379AC_DEFUN([DX_FEATURE_dot], OFF)
1380AC_DEFUN([DX_FEATURE_man], OFF)
1381AC_DEFUN([DX_FEATURE_html], ON)
1382AC_DEFUN([DX_FEATURE_chm], OFF)
1383AC_DEFUN([DX_FEATURE_chi], OFF)
1384AC_DEFUN([DX_FEATURE_rtf], OFF)
1385AC_DEFUN([DX_FEATURE_xml], OFF)
1386AC_DEFUN([DX_FEATURE_pdf], ON)
1387AC_DEFUN([DX_FEATURE_ps], ON)
1388
1389
1390# DX_ENV_APPEND(VARIABLE, VALUE)
1391# ------------------------------
1392# Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
1393AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
1394
1395# DX_DIRNAME_EXPR
1396# ---------------
1397# Expand into a shell expression prints the directory part of a path.
1398AC_DEFUN([DX_DIRNAME_EXPR],
1399 [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
1400
1401# DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
1402# -------------------------------------
1403# Expands according to the M4 (static) status of the feature.
1404AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
1405
1406# DX_REQUIRE_PROG(VARIABLE, PROGRAM)
1407# ----------------------------------
1408# Require the specified program to be found for the DX_CURRENT_FEATURE to work.
1409AC_DEFUN([DX_REQUIRE_PROG], [
1410AC_PATH_TOOL([$1], [$2])
1411if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
1412 AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
1413 AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
1414fi
1415])
1416
1417# DX_TEST_FEATURE(FEATURE)
1418# ------------------------
1419# Expand to a shell expression testing whether the feature is active.
1420AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
1421
1422# DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
1423# -------------------------------------------------
1424# Verify that a required features has the right state before trying to turn on
1425# the DX_CURRENT_FEATURE.
1426AC_DEFUN([DX_CHECK_DEPEND], [
1427test "$DX_FLAG_$1" = "$2" \
1428|| AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
1429 requires, contradicts) doxygen-DX_CURRENT_FEATURE])
1430])
1431
1432# DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
1433# ----------------------------------------------------------
1434# Turn off the DX_CURRENT_FEATURE if the required feature is off.
1435AC_DEFUN([DX_CLEAR_DEPEND], [
1436test "$DX_FLAG_$1" = "$2" || AC_SUBST(DX_FLAG_[]DX_CURRENT_FEATURE, 0)
1437])
1438
1439# DX_FEATURE_ARG(FEATURE, DESCRIPTION,
1440# CHECK_DEPEND, CLEAR_DEPEND,
1441# REQUIRE, DO-IF-ON, DO-IF-OFF)
1442# --------------------------------------------
1443# Parse the command-line option controlling a feature. CHECK_DEPEND is called
1444# if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
1445# otherwise CLEAR_DEPEND is called to turn off the default state if a required
1446# feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
1447# requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
1448# DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
1449AC_DEFUN([DX_ARG_ABLE], [
1450 AC_DEFUN([DX_CURRENT_FEATURE], [$1])
1451 AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
1452 AC_ARG_ENABLE(doxygen-$1,
1453 [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
1454 [--enable-doxygen-$1]),
1455 DX_IF_FEATURE([$1], [don't $2], [$2]))],
1456 [
1457case "$enableval" in
1458#(
1459y|Y|yes|Yes|YES)
1460 AC_SUBST([DX_FLAG_$1], 1)
1461 $3
1462;; #(
1463n|N|no|No|NO)
1464 AC_SUBST([DX_FLAG_$1], 0)
1465;; #(
1466*)
1467 AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
1468;;
1469esac
1470], [
1471AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
1472$4
1473])
1474if DX_TEST_FEATURE([$1]); then
1475 $5
1476 :
1477fi
1478if DX_TEST_FEATURE([$1]); then
1479 AM_CONDITIONAL(DX_COND_$1, :)
1480 $6
1481 :
1482else
1483 AM_CONDITIONAL(DX_COND_$1, false)
1484 $7
1485 :
1486fi
1487])
1488
1489
1490# DX_XXX_FEATURE(DEFAULT_STATE)
1491# -----------------------------
1492AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])])
1493AC_DEFUN([DX_DOT_FEATURE], [AC_DEFUN([DX_FEATURE_dot], [$1])])
1494AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])])
1495AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])])
1496AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])])
1497AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])])
1498AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])])
1499AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
1500AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])])
1501AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])])
1502AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])])
1503
1504# DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
1505# ---------------------------------------------------------
1506# PROJECT also serves as the base name for the documentation files.
1507# The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
1508AC_DEFUN([DX_INIT_DOXYGEN], [
1509
1510# Files:
1511AC_SUBST([DX_PROJECT], [$1])
1512AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
1513AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
1514
1515# Environment variables used inside doxygen.cfg:
1516DX_ENV_APPEND(SRCDIR, $srcdir)
1517DX_ENV_APPEND(PROJECT, $DX_PROJECT)
1518DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
1519DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
1520
1521# Doxygen itself:
1522DX_ARG_ABLE(doc, [generate any doxygen documentation],
1523 [],
1524 [],
1525 [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
1526 DX_REQUIRE_PROG([DX_PERL], perl)],
1527 [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
1528
1529# Dot for graphics:
1530DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
1531 [DX_CHECK_DEPEND(doc, 1)],
1532 [DX_CLEAR_DEPEND(doc, 1)],
1533 [DX_REQUIRE_PROG([DX_DOT], dot)],
1534 [DX_ENV_APPEND(HAVE_DOT, YES)
1535 DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
1536 [DX_ENV_APPEND(HAVE_DOT, NO)])
1537
1538# Man pages generation:
1539DX_ARG_ABLE(man, [generate doxygen manual pages],
1540 [DX_CHECK_DEPEND(doc, 1)],
1541 [DX_CLEAR_DEPEND(doc, 1)],
1542 [],
1543 [DX_ENV_APPEND(GENERATE_MAN, YES)],
1544 [DX_ENV_APPEND(GENERATE_MAN, NO)])
1545
1546# RTF file generation:
1547DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
1548 [DX_CHECK_DEPEND(doc, 1)],
1549 [DX_CLEAR_DEPEND(doc, 1)],
1550 [],
1551 [DX_ENV_APPEND(GENERATE_RTF, YES)],
1552 [DX_ENV_APPEND(GENERATE_RTF, NO)])
1553
1554# XML file generation:
1555DX_ARG_ABLE(xml, [generate doxygen XML documentation],
1556 [DX_CHECK_DEPEND(doc, 1)],
1557 [DX_CLEAR_DEPEND(doc, 1)],
1558 [],
1559 [DX_ENV_APPEND(GENERATE_XML, YES)],
1560 [DX_ENV_APPEND(GENERATE_XML, NO)])
1561
1562# (Compressed) HTML help generation:
1563DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
1564 [DX_CHECK_DEPEND(doc, 1)],
1565 [DX_CLEAR_DEPEND(doc, 1)],
1566 [DX_REQUIRE_PROG([DX_HHC], hhc)],
1567 [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
1568 DX_ENV_APPEND(GENERATE_HTML, YES)
1569 DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
1570 [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
1571
1572# Seperate CHI file generation.
1573DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
1574 [DX_CHECK_DEPEND(chm, 1)],
1575 [DX_CLEAR_DEPEND(chm, 1)],
1576 [],
1577 [DX_ENV_APPEND(GENERATE_CHI, YES)],
1578 [DX_ENV_APPEND(GENERATE_CHI, NO)])
1579
1580# Plain HTML pages generation:
1581DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
1582 [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
1583 [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
1584 [],
1585 [DX_ENV_APPEND(GENERATE_HTML, YES)],
1586 [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
1587
1588# PostScript file generation:
1589DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
1590 [DX_CHECK_DEPEND(doc, 1)],
1591 [DX_CLEAR_DEPEND(doc, 1)],
1592 [DX_REQUIRE_PROG([DX_LATEX], latex)
1593 DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
1594 DX_REQUIRE_PROG([DX_DVIPS], dvips)
1595 DX_REQUIRE_PROG([DX_EGREP], egrep)])
1596
1597# PDF file generation:
1598DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
1599 [DX_CHECK_DEPEND(doc, 1)],
1600 [DX_CLEAR_DEPEND(doc, 1)],
1601 [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
1602 DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
1603 DX_REQUIRE_PROG([DX_EGREP], egrep)])
1604
1605# LaTeX generation for PS and/or PDF:
1606if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
1607 AM_CONDITIONAL(DX_COND_latex, :)
1608 DX_ENV_APPEND(GENERATE_LATEX, YES)
1609else
1610 AM_CONDITIONAL(DX_COND_latex, false)
1611 DX_ENV_APPEND(GENERATE_LATEX, NO)
1612fi
1613
1614# Paper size for PS and/or PDF:
1615AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
1616 [a4wide (default), a4, letter, legal or executive])
1617case "$DOXYGEN_PAPER_SIZE" in
1618#(
1619"")
1620 AC_SUBST(DOXYGEN_PAPER_SIZE, "")
1621;; #(
1622a4wide|a4|letter|legal|executive)
1623 DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
1624;; #(
1625*)
1626 AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
1627;;
1628esac
1629
1630#For debugging:
1631#echo DX_FLAG_doc=$DX_FLAG_doc
1632#echo DX_FLAG_dot=$DX_FLAG_dot
1633#echo DX_FLAG_man=$DX_FLAG_man
1634#echo DX_FLAG_html=$DX_FLAG_html
1635#echo DX_FLAG_chm=$DX_FLAG_chm
1636#echo DX_FLAG_chi=$DX_FLAG_chi
1637#echo DX_FLAG_rtf=$DX_FLAG_rtf
1638#echo DX_FLAG_xml=$DX_FLAG_xml
1639#echo DX_FLAG_pdf=$DX_FLAG_pdf
1640#echo DX_FLAG_ps=$DX_FLAG_ps
1641#echo DX_ENV=$DX_ENV
1642])
1643
1644# ===========================================================================
1645# http://www.gnu.org/software/autoconf-archive/ax_pthread.html
1646# ===========================================================================
1647#
1648# SYNOPSIS
1649#
1650# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
1651#
1652# DESCRIPTION
1653#
1654# This macro figures out how to build C programs using POSIX threads. It
1655# sets the PTHREAD_LIBS output variable to the threads library and linker
1656# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
1657# flags that are needed. (The user can also force certain compiler
1658# flags/libs to be tested by setting these environment variables.)
1659#
1660# Also sets PTHREAD_CC to any special C compiler that is needed for
1661# multi-threaded programs (defaults to the value of CC otherwise). (This
1662# is necessary on AIX to use the special cc_r compiler alias.)
1663#
1664# NOTE: You are assumed to not only compile your program with these flags,
1665# but also link it with them as well. e.g. you should link with
1666# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
1667#
1668# If you are only building threads programs, you may wish to use these
1669# variables in your default LIBS, CFLAGS, and CC:
1670#
1671# LIBS="$PTHREAD_LIBS $LIBS"
1672# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1673# CC="$PTHREAD_CC"
1674#
1675# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
1676# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
1677# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
1678#
1679# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
1680# PTHREAD_PRIO_INHERIT symbol is defined when compiling with
1681# PTHREAD_CFLAGS.
1682#
1683# ACTION-IF-FOUND is a list of shell commands to run if a threads library
1684# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
1685# is not found. If ACTION-IF-FOUND is not specified, the default action
1686# will define HAVE_PTHREAD.
1687#
1688# Please let the authors know if this macro fails on any platform, or if
1689# you have any other suggestions or comments. This macro was based on work
1690# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
1691# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
1692# Alejandro Forero Cuervo to the autoconf macro repository. We are also
1693# grateful for the helpful feedback of numerous users.
1694#
1695# Updated for Autoconf 2.68 by Daniel Richard G.
1696#
1697# LICENSE
1698#
1699# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
1700# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
1701#
1702# This program is free software: you can redistribute it and/or modify it
1703# under the terms of the GNU General Public License as published by the
1704# Free Software Foundation, either version 3 of the License, or (at your
1705# option) any later version.
1706#
1707# This program is distributed in the hope that it will be useful, but
1708# WITHOUT ANY WARRANTY; without even the implied warranty of
1709# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
1710# Public License for more details.
1711#
1712# You should have received a copy of the GNU General Public License along
1713# with this program. If not, see <http://www.gnu.org/licenses/>.
1714#
1715# As a special exception, the respective Autoconf Macro's copyright owner
1716# gives unlimited permission to copy, distribute and modify the configure
1717# scripts that are the output of Autoconf when processing the Macro. You
1718# need not follow the terms of the GNU General Public License when using
1719# or distributing such scripts, even though portions of the text of the
1720# Macro appear in them. The GNU General Public License (GPL) does govern
1721# all other use of the material that constitutes the Autoconf Macro.
1722#
1723# This special exception to the GPL applies to versions of the Autoconf
1724# Macro released by the Autoconf Archive. When you make and distribute a
1725# modified version of the Autoconf Macro, you may extend this special
1726# exception to the GPL to apply to your modified version as well.
1727
1728#serial 14
1729
1730AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
1731AC_DEFUN([AX_PTHREAD], [
1732AC_REQUIRE([AC_CANONICAL_HOST])
1733AC_LANG_PUSH([C])
1734ax_pthread_ok=no
1735
1736# We used to check for pthread.h first, but this fails if pthread.h
1737# requires special compiler flags (e.g. on True64 or Sequent).
1738# It gets checked for in the link test anyway.
1739
1740# First of all, check if the user has set any of the PTHREAD_LIBS,
1741# etcetera environment variables, and if threads linking works using
1742# them:
1743if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
1744 save_CFLAGS="$CFLAGS"
1745 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1746 save_LIBS="$LIBS"
1747 LIBS="$PTHREAD_LIBS $LIBS"
1748 AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
1749 AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes)
1750 AC_MSG_RESULT($ax_pthread_ok)
1751 if test x"$ax_pthread_ok" = xno; then
1752 PTHREAD_LIBS=""
1753 PTHREAD_CFLAGS=""
1754 fi
1755 LIBS="$save_LIBS"
1756 CFLAGS="$save_CFLAGS"
1757fi
1758
1759# We must check for the threads library under a number of different
1760# names; the ordering is very important because some systems
1761# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
1762# libraries is broken (non-POSIX).
1763
1764# Create a list of thread flags to try. Items starting with a "-" are
1765# C compiler flags, and other items are library names, except for "none"
1766# which indicates that we try without any flags at all, and "pthread-config"
1767# which is a program returning the flags for the Pth emulation library.
1768
1769ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
1770
1771# The ordering *is* (sometimes) important. Some notes on the
1772# individual items follow:
1773
1774# pthreads: AIX (must check this before -lpthread)
1775# none: in case threads are in libc; should be tried before -Kthread and
1776# other compiler flags to prevent continual compiler warnings
1777# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
1778# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
1779# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
1780# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
1781# -pthreads: Solaris/gcc
1782# -mthreads: Mingw32/gcc, Lynx/gcc
1783# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
1784# doesn't hurt to check since this sometimes defines pthreads too;
1785# also defines -D_REENTRANT)
1786# ... -mt is also the pthreads flag for HP/aCC
1787# pthread: Linux, etcetera
1788# --thread-safe: KAI C++
1789# pthread-config: use pthread-config program (for GNU Pth library)
1790
1791case "${host_cpu}-${host_os}" in
1792 *solaris*)
1793
1794 # On Solaris (at least, for some versions), libc contains stubbed
1795 # (non-functional) versions of the pthreads routines, so link-based
1796 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
1797 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
1798 # a function called by this macro, so we could check for that, but
1799 # who knows whether they'll stub that too in a future libc.) So,
1800 # we'll just look for -pthreads and -lpthread first:
1801
1802 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
1803 ;;
1804
1805 *-darwin*)
1806 ax_pthread_flags="-pthread $ax_pthread_flags"
1807 ;;
1808esac
1809
1810if test x"$ax_pthread_ok" = xno; then
1811for flag in $ax_pthread_flags; do
1812
1813 case $flag in
1814 none)
1815 AC_MSG_CHECKING([whether pthreads work without any flags])
1816 ;;
1817
1818 -*)
1819 AC_MSG_CHECKING([whether pthreads work with $flag])
1820 PTHREAD_CFLAGS="$flag"
1821 ;;
1822
1823 pthread-config)
1824 AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no)
1825 if test x"$ax_pthread_config" = xno; then continue; fi
1826 PTHREAD_CFLAGS="`pthread-config --cflags`"
1827 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
1828 ;;
1829
1830 *)
1831 AC_MSG_CHECKING([for the pthreads library -l$flag])
1832 PTHREAD_LIBS="-l$flag"
1833 ;;
1834 esac
1835
1836 save_LIBS="$LIBS"
1837 save_CFLAGS="$CFLAGS"
1838 LIBS="$PTHREAD_LIBS $LIBS"
1839 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1840
1841 # Check for various functions. We must include pthread.h,
1842 # since some functions may be macros. (On the Sequent, we
1843 # need a special flag -Kthread to make this header compile.)
1844 # We check for pthread_join because it is in -lpthread on IRIX
1845 # while pthread_create is in libc. We check for pthread_attr_init
1846 # due to DEC craziness with -lpthreads. We check for
1847 # pthread_cleanup_push because it is one of the few pthread
1848 # functions on Solaris that doesn't have a non-functional libc stub.
1849 # We try pthread_create on general principles.
1850 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
1851 static void routine(void *a) { a = 0; }
1852 static void *start_routine(void *a) { return a; }],
1853 [pthread_t th; pthread_attr_t attr;
1854 pthread_create(&th, 0, start_routine, 0);
1855 pthread_join(th, 0);
1856 pthread_attr_init(&attr);
1857 pthread_cleanup_push(routine, 0);
1858 pthread_cleanup_pop(0) /* ; */])],
1859 [ax_pthread_ok=yes],
1860 [])
1861
1862 LIBS="$save_LIBS"
1863 CFLAGS="$save_CFLAGS"
1864
1865 AC_MSG_RESULT($ax_pthread_ok)
1866 if test "x$ax_pthread_ok" = xyes; then
1867 break;
1868 fi
1869
1870 PTHREAD_LIBS=""
1871 PTHREAD_CFLAGS=""
1872done
1873fi
1874
1875# Various other checks:
1876if test "x$ax_pthread_ok" = xyes; then
1877 save_LIBS="$LIBS"
1878 LIBS="$PTHREAD_LIBS $LIBS"
1879 save_CFLAGS="$CFLAGS"
1880 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1881
1882 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
1883 AC_MSG_CHECKING([for joinable pthread attribute])
1884 attr_name=unknown
1885 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
1886 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
1887 [int attr = $attr; return attr /* ; */])],
1888 [attr_name=$attr; break],
1889 [])
1890 done
1891 AC_MSG_RESULT($attr_name)
1892 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
1893 AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
1894 [Define to necessary symbol if this constant
1895 uses a non-standard name on your system.])
1896 fi
1897
1898 AC_MSG_CHECKING([if more special flags are required for pthreads])
1899 flag=no
1900 case "${host_cpu}-${host_os}" in
1901 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
1902 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
1903 esac
1904 AC_MSG_RESULT(${flag})
1905 if test "x$flag" != xno; then
1906 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
1907 fi
1908
1909 AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
1910 ax_cv_PTHREAD_PRIO_INHERIT, [
1911 AC_LINK_IFELSE(
1912 AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]]),
1913 [ax_cv_PTHREAD_PRIO_INHERIT=yes],
1914 [ax_cv_PTHREAD_PRIO_INHERIT=no])
1915 ])
1916 AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"],
1917 AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.]))
1918
1919 LIBS="$save_LIBS"
1920 CFLAGS="$save_CFLAGS"
1921
1922 # More AIX lossage: must compile with xlc_r or cc_r
1923 if test x"$GCC" != xyes; then
1924 AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
1925 else
1926 PTHREAD_CC=$CC
1927 fi
1928else
1929 PTHREAD_CC="$CC"
1930fi
1931
1932AC_SUBST(PTHREAD_LIBS)
1933AC_SUBST(PTHREAD_CFLAGS)
1934AC_SUBST(PTHREAD_CC)
1935
1936# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
1937if test x"$ax_pthread_ok" = xyes; then
1938 ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
1939 :
1940else
1941 ax_pthread_ok=no
1942 $2
1943fi
1944AC_LANG_POP
1945])dnl AX_PTHREAD
1946
1947# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1948# serial 1 (pkg-config-0.24)
1949#
1950# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1951#
1952# This program is free software; you can redistribute it and/or modify
1953# it under the terms of the GNU General Public License as published by
1954# the Free Software Foundation; either version 2 of the License, or
1955# (at your option) any later version.
1956#
1957# This program is distributed in the hope that it will be useful, but
1958# WITHOUT ANY WARRANTY; without even the implied warranty of
1959# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1960# General Public License for more details.
1961#
1962# You should have received a copy of the GNU General Public License
1963# along with this program; if not, write to the Free Software
1964# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1965#
1966# As a special exception to the GNU General Public License, if you
1967# distribute this file as part of a program that contains a
1968# configuration script generated by Autoconf, you may include it under
1969# the same distribution terms that you use for the rest of that program.
1970
1971# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1972# ----------------------------------
1973AC_DEFUN([PKG_PROG_PKG_CONFIG],
1974[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1975m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
1976m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
1977AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1978AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1979AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1980
1981if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1982 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1983fi
1984if test -n "$PKG_CONFIG"; then
1985 _pkg_min_version=m4_default([$1], [0.9.0])
1986 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1987 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1988 AC_MSG_RESULT([yes])
1989 else
1990 AC_MSG_RESULT([no])
1991 PKG_CONFIG=""
1992 fi
1993fi[]dnl
1994])# PKG_PROG_PKG_CONFIG
1995
1996# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1997#
1998# Check to see whether a particular set of modules exists. Similar
1999# to PKG_CHECK_MODULES(), but does not set variables or print errors.
2000#
2001# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2002# only at the first occurence in configure.ac, so if the first place
2003# it's called might be skipped (such as if it is within an "if", you
2004# have to call PKG_CHECK_EXISTS manually
2005# --------------------------------------------------------------
2006AC_DEFUN([PKG_CHECK_EXISTS],
2007[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2008if test -n "$PKG_CONFIG" && \
2009 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
2010 m4_default([$2], [:])
2011m4_ifvaln([$3], [else
2012 $3])dnl
2013fi])
2014
2015# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
2016# ---------------------------------------------
2017m4_define([_PKG_CONFIG],
2018[if test -n "$$1"; then
2019 pkg_cv_[]$1="$$1"
2020 elif test -n "$PKG_CONFIG"; then
2021 PKG_CHECK_EXISTS([$3],
2022 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
2023 test "x$?" != "x0" && pkg_failed=yes ],
2024 [pkg_failed=yes])
2025 else
2026 pkg_failed=untried
2027fi[]dnl
2028])# _PKG_CONFIG
2029
2030# _PKG_SHORT_ERRORS_SUPPORTED
2031# -----------------------------
2032AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
2033[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
2034if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2035 _pkg_short_errors_supported=yes
2036else
2037 _pkg_short_errors_supported=no
2038fi[]dnl
2039])# _PKG_SHORT_ERRORS_SUPPORTED
2040
2041
2042# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
2043# [ACTION-IF-NOT-FOUND])
2044#
2045#
2046# Note that if there is a possibility the first call to
2047# PKG_CHECK_MODULES might not happen, you should be sure to include an
2048# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
2049#
2050#
2051# --------------------------------------------------------------
2052AC_DEFUN([PKG_CHECK_MODULES],
2053[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
2054AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
2055AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
2056
2057pkg_failed=no
2058AC_MSG_CHECKING([for $1])
2059
2060_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
2061_PKG_CONFIG([$1][_LIBS], [libs], [$2])
2062
2063m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
2064and $1[]_LIBS to avoid the need to call pkg-config.
2065See the pkg-config man page for more details.])
2066
2067if test $pkg_failed = yes; then
2068 AC_MSG_RESULT([no])
2069 _PKG_SHORT_ERRORS_SUPPORTED
2070 if test $_pkg_short_errors_supported = yes; then
2071 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
2072 else
2073 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
2074 fi
2075 # Put the nasty error message in config.log where it belongs
2076 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
2077
2078 m4_default([$4], [AC_MSG_ERROR(
2079[Package requirements ($2) were not met:
2080
2081$$1_PKG_ERRORS
2082
2083Consider adjusting the PKG_CONFIG_PATH environment variable if you
2084installed software in a non-standard prefix.
2085
2086_PKG_TEXT])[]dnl
2087 ])
2088elif test $pkg_failed = untried; then
2089 AC_MSG_RESULT([no])
2090 m4_default([$4], [AC_MSG_FAILURE(
2091[The pkg-config script could not be found or is too old. Make sure it
2092is in your PATH or set the PKG_CONFIG environment variable to the full
2093path to pkg-config.
2094
2095_PKG_TEXT
2096
2097To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
2098 ])
2099else
2100 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
2101 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
2102 AC_MSG_RESULT([yes])
2103 $3
2104fi[]dnl
2105])# PKG_CHECK_MODULES
2106
2107# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2108#
2109# This file is free software; the Free Software Foundation
2110# gives unlimited permission to copy and/or distribute it,
2111# with or without modifications, as long as this notice is preserved.
2112
2113# AM_AUTOMAKE_VERSION(VERSION)
2114# ----------------------------
2115# Automake X.Y traces this macro to ensure aclocal.m4 has been
2116# generated from the m4 files accompanying Automake X.Y.
2117# (This private macro should not be called outside this file.)
2118AC_DEFUN([AM_AUTOMAKE_VERSION],
2119[am__api_version='1.11'
2120dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2121dnl require some minimum version. Point them to the right macro.
2122m4_if([$1], [1.11.1], [],
2123 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2124])
2125
2126# _AM_AUTOCONF_VERSION(VERSION)
2127# -----------------------------
2128# aclocal traces this macro to find the Autoconf version.
2129# This is a private macro too. Using m4_define simplifies
2130# the logic in aclocal, which can simply ignore this definition.
2131m4_define([_AM_AUTOCONF_VERSION], [])
2132
2133# AM_SET_CURRENT_AUTOMAKE_VERSION
2134# -------------------------------
2135# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
2136# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
2137AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2138[AM_AUTOMAKE_VERSION([1.11.1])dnl
2139m4_ifndef([AC_AUTOCONF_VERSION],
2140 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2141_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
2142
2143# AM_AUX_DIR_EXPAND -*- Autoconf -*-
2144
2145# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
2146#
2147# This file is free software; the Free Software Foundation
2148# gives unlimited permission to copy and/or distribute it,
2149# with or without modifications, as long as this notice is preserved.
2150
2151# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
2152# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
2153# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
2154#
2155# Of course, Automake must honor this variable whenever it calls a
2156# tool from the auxiliary directory. The problem is that $srcdir (and
2157# therefore $ac_aux_dir as well) can be either absolute or relative,
2158# depending on how configure is run. This is pretty annoying, since
2159# it makes $ac_aux_dir quite unusable in subdirectories: in the top
2160# source directory, any form will work fine, but in subdirectories a
2161# relative path needs to be adjusted first.
2162#
2163# $ac_aux_dir/missing
2164# fails when called from a subdirectory if $ac_aux_dir is relative
2165# $top_srcdir/$ac_aux_dir/missing
2166# fails if $ac_aux_dir is absolute,
2167# fails when called from a subdirectory in a VPATH build with
2168# a relative $ac_aux_dir
2169#
2170# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
2171# are both prefixed by $srcdir. In an in-source build this is usually
2172# harmless because $srcdir is `.', but things will broke when you
2173# start a VPATH build or use an absolute $srcdir.
2174#
2175# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
2176# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
2177# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
2178# and then we would define $MISSING as
2179# MISSING="\${SHELL} $am_aux_dir/missing"
2180# This will work as long as MISSING is not called from configure, because
2181# unfortunately $(top_srcdir) has no meaning in configure.
2182# However there are other variables, like CC, which are often used in
2183# configure, and could therefore not use this "fixed" $ac_aux_dir.
2184#
2185# Another solution, used here, is to always expand $ac_aux_dir to an
2186# absolute PATH. The drawback is that using absolute paths prevent a
2187# configured tree to be moved without reconfiguration.
2188
2189AC_DEFUN([AM_AUX_DIR_EXPAND],
2190[dnl Rely on autoconf to set up CDPATH properly.
2191AC_PREREQ([2.50])dnl
2192# expand $ac_aux_dir to an absolute path
2193am_aux_dir=`cd $ac_aux_dir && pwd`
2194])
2195
2196# AM_COND_IF -*- Autoconf -*-
2197
2198# Copyright (C) 2008 Free Software Foundation, Inc.
2199#
2200# This file is free software; the Free Software Foundation
2201# gives unlimited permission to copy and/or distribute it,
2202# with or without modifications, as long as this notice is preserved.
2203
2204# serial 1
2205
2206# _AM_COND_IF
2207# _AM_COND_ELSE
2208# _AM_COND_ENDIF
2209# --------------
2210# These macros are only used for tracing.
2211m4_define([_AM_COND_IF])
2212m4_define([_AM_COND_ELSE])
2213m4_define([_AM_COND_ENDIF])
2214
2215
2216# AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
2217# ---------------------------------------
2218# If the shell condition matching COND is true, execute IF-TRUE,
2219# otherwise execute IF-FALSE. Allow automake to learn about conditional
2220# instantiating macros (the AC_CONFIG_FOOS).
2221AC_DEFUN([AM_COND_IF],
2222[m4_ifndef([_AM_COND_VALUE_$1],
2223 [m4_fatal([$0: no such condition "$1"])])dnl
2224_AM_COND_IF([$1])dnl
2225if _AM_COND_VALUE_$1; then
2226 m4_default([$2], [:])
2227m4_ifval([$3],
2228[_AM_COND_ELSE([$1])dnl
2229else
2230 $3
2231])dnl
2232_AM_COND_ENDIF([$1])dnl
2233fi[]dnl
2234])
2235
2236# AM_CONDITIONAL -*- Autoconf -*-
2237
2238# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
2239# Free Software Foundation, Inc.
2240#
2241# This file is free software; the Free Software Foundation
2242# gives unlimited permission to copy and/or distribute it,
2243# with or without modifications, as long as this notice is preserved.
2244
2245# serial 9
2246
2247# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2248# -------------------------------------
2249# Define a conditional.
2250AC_DEFUN([AM_CONDITIONAL],
2251[AC_PREREQ(2.52)dnl
2252 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2253 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2254AC_SUBST([$1_TRUE])dnl
2255AC_SUBST([$1_FALSE])dnl
2256_AM_SUBST_NOTMAKE([$1_TRUE])dnl
2257_AM_SUBST_NOTMAKE([$1_FALSE])dnl
2258m4_define([_AM_COND_VALUE_$1], [$2])dnl
2259if $2; then
2260 $1_TRUE=
2261 $1_FALSE='#'
2262else
2263 $1_TRUE='#'
2264 $1_FALSE=
2265fi
2266AC_CONFIG_COMMANDS_PRE(
2267[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2268 AC_MSG_ERROR([[conditional "$1" was never defined.
2269Usually this means the macro was only invoked conditionally.]])
2270fi])])
2271
2272# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
2273# Free Software Foundation, Inc.
2274#
2275# This file is free software; the Free Software Foundation
2276# gives unlimited permission to copy and/or distribute it,
2277# with or without modifications, as long as this notice is preserved.
2278
2279# serial 10
2280
2281# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2282# written in clear, in which case automake, when reading aclocal.m4,
2283# will think it sees a *use*, and therefore will trigger all it's
2284# C support machinery. Also note that it means that autoscan, seeing
2285# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2286
2287
2288# _AM_DEPENDENCIES(NAME)
2289# ----------------------
2290# See how the compiler implements dependency checking.
2291# NAME is "CC", "CXX", "GCJ", or "OBJC".
2292# We try a few techniques and use that to set a single cache variable.
2293#
2294# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
2295# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
2296# dependency, and given that the user is not expected to run this macro,
2297# just rely on AC_PROG_CC.
2298AC_DEFUN([_AM_DEPENDENCIES],
2299[AC_REQUIRE([AM_SET_DEPDIR])dnl
2300AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
2301AC_REQUIRE([AM_MAKE_INCLUDE])dnl
2302AC_REQUIRE([AM_DEP_TRACK])dnl
2303
2304ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
2305 [$1], CXX, [depcc="$CXX" am_compiler_list=],
2306 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
2307 [$1], UPC, [depcc="$UPC" am_compiler_list=],
2308 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
2309 [depcc="$$1" am_compiler_list=])
2310
2311AC_CACHE_CHECK([dependency style of $depcc],
2312 [am_cv_$1_dependencies_compiler_type],
2313[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2314 # We make a subdir and do the tests there. Otherwise we can end up
2315 # making bogus files that we don't know about and never remove. For
2316 # instance it was reported that on HP-UX the gcc test will end up
2317 # making a dummy file named `D' -- because `-MD' means `put the output
2318 # in D'.
2319 mkdir conftest.dir
2320 # Copy depcomp to subdir because otherwise we won't find it if we're
2321 # using a relative directory.
2322 cp "$am_depcomp" conftest.dir
2323 cd conftest.dir
2324 # We will build objects and dependencies in a subdirectory because
2325 # it helps to detect inapplicable dependency modes. For instance
2326 # both Tru64's cc and ICC support -MD to output dependencies as a
2327 # side effect of compilation, but ICC will put the dependencies in
2328 # the current directory while Tru64 will put them in the object
2329 # directory.
2330 mkdir sub
2331
2332 am_cv_$1_dependencies_compiler_type=none
2333 if test "$am_compiler_list" = ""; then
2334 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2335 fi
2336 am__universal=false
2337 m4_case([$1], [CC],
2338 [case " $depcc " in #(
2339 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2340 esac],
2341 [CXX],
2342 [case " $depcc " in #(
2343 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2344 esac])
2345
2346 for depmode in $am_compiler_list; do
2347 # Setup a source with many dependencies, because some compilers
2348 # like to wrap large dependency lists on column 80 (with \), and
2349 # we should not choose a depcomp mode which is confused by this.
2350 #
2351 # We need to recreate these files for each test, as the compiler may
2352 # overwrite some of them when testing with obscure command lines.
2353 # This happens at least with the AIX C compiler.
2354 : > sub/conftest.c
2355 for i in 1 2 3 4 5 6; do
2356 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2357 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2358 # Solaris 8's {/usr,}/bin/sh.
2359 touch sub/conftst$i.h
2360 done
2361 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2362
2363 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2364 # mode. It turns out that the SunPro C++ compiler does not properly
2365 # handle `-M -o', and we need to detect this. Also, some Intel
2366 # versions had trouble with output in subdirs
2367 am__obj=sub/conftest.${OBJEXT-o}
2368 am__minus_obj="-o $am__obj"
2369 case $depmode in
2370 gcc)
2371 # This depmode causes a compiler race in universal mode.
2372 test "$am__universal" = false || continue
2373 ;;
2374 nosideeffect)
2375 # after this tag, mechanisms are not by side-effect, so they'll
2376 # only be used when explicitly requested
2377 if test "x$enable_dependency_tracking" = xyes; then
2378 continue
2379 else
2380 break
2381 fi
2382 ;;
2383 msvisualcpp | msvcmsys)
2384 # This compiler won't grok `-c -o', but also, the minuso test has
2385 # not run yet. These depmodes are late enough in the game, and
2386 # so weak that their functioning should not be impacted.
2387 am__obj=conftest.${OBJEXT-o}
2388 am__minus_obj=
2389 ;;
2390 none) break ;;
2391 esac
2392 if depmode=$depmode \
2393 source=sub/conftest.c object=$am__obj \
2394 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2395 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2396 >/dev/null 2>conftest.err &&
2397 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2398 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2399 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2400 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2401 # icc doesn't choke on unknown options, it will just issue warnings
2402 # or remarks (even with -Werror). So we grep stderr for any message
2403 # that says an option was ignored or not supported.
2404 # When given -MP, icc 7.0 and 7.1 complain thusly:
2405 # icc: Command line warning: ignoring option '-M'; no argument required
2406 # The diagnosis changed in icc 8.0:
2407 # icc: Command line remark: option '-MP' not supported
2408 if (grep 'ignoring option' conftest.err ||
2409 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2410 am_cv_$1_dependencies_compiler_type=$depmode
2411 break
2412 fi
2413 fi
2414 done
2415
2416 cd ..
2417 rm -rf conftest.dir
2418else
2419 am_cv_$1_dependencies_compiler_type=none
2420fi
2421])
2422AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2423AM_CONDITIONAL([am__fastdep$1], [
2424 test "x$enable_dependency_tracking" != xno \
2425 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2426])
2427
2428
2429# AM_SET_DEPDIR
2430# -------------
2431# Choose a directory name for dependency files.
2432# This macro is AC_REQUIREd in _AM_DEPENDENCIES
2433AC_DEFUN([AM_SET_DEPDIR],
2434[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2435AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2436])
2437
2438
2439# AM_DEP_TRACK
2440# ------------
2441AC_DEFUN([AM_DEP_TRACK],
2442[AC_ARG_ENABLE(dependency-tracking,
2443[ --disable-dependency-tracking speeds up one-time build
2444 --enable-dependency-tracking do not reject slow dependency extractors])
2445if test "x$enable_dependency_tracking" != xno; then
2446 am_depcomp="$ac_aux_dir/depcomp"
2447 AMDEPBACKSLASH='\'
2448fi
2449AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2450AC_SUBST([AMDEPBACKSLASH])dnl
2451_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
2452])
2453
2454# Generate code to set up dependency tracking. -*- Autoconf -*-
2455
2456# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
2457# Free Software Foundation, Inc.
2458#
2459# This file is free software; the Free Software Foundation
2460# gives unlimited permission to copy and/or distribute it,
2461# with or without modifications, as long as this notice is preserved.
2462
2463#serial 5
2464
2465# _AM_OUTPUT_DEPENDENCY_COMMANDS
2466# ------------------------------
2467AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2468[{
2469 # Autoconf 2.62 quotes --file arguments for eval, but not when files
2470 # are listed without --file. Let's play safe and only enable the eval
2471 # if we detect the quoting.
2472 case $CONFIG_FILES in
2473 *\'*) eval set x "$CONFIG_FILES" ;;
2474 *) set x $CONFIG_FILES ;;
2475 esac
2476 shift
2477 for mf
2478 do
2479 # Strip MF so we end up with the name of the file.
2480 mf=`echo "$mf" | sed -e 's/:.*$//'`
2481 # Check whether this is an Automake generated Makefile or not.
2482 # We used to match only the files named `Makefile.in', but
2483 # some people rename them; so instead we look at the file content.
2484 # Grep'ing the first line is not enough: some people post-process
2485 # each Makefile.in and add a new line on top of each file to say so.
2486 # Grep'ing the whole file is not good either: AIX grep has a line
2487 # limit of 2048, but all sed's we know have understand at least 4000.
2488 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
2489 dirpart=`AS_DIRNAME("$mf")`
2490 else
2491 continue
2492 fi
2493 # Extract the definition of DEPDIR, am__include, and am__quote
2494 # from the Makefile without running `make'.
2495 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2496 test -z "$DEPDIR" && continue
2497 am__include=`sed -n 's/^am__include = //p' < "$mf"`
2498 test -z "am__include" && continue
2499 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2500 # When using ansi2knr, U may be empty or an underscore; expand it
2501 U=`sed -n 's/^U = //p' < "$mf"`
2502 # Find all dependency output files, they are included files with
2503 # $(DEPDIR) in their names. We invoke sed twice because it is the
2504 # simplest approach to changing $(DEPDIR) to its actual value in the
2505 # expansion.
2506 for file in `sed -n "
2507 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2508 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2509 # Make sure the directory exists.
2510 test -f "$dirpart/$file" && continue
2511 fdir=`AS_DIRNAME(["$file"])`
2512 AS_MKDIR_P([$dirpart/$fdir])
2513 # echo "creating $dirpart/$file"
2514 echo '# dummy' > "$dirpart/$file"
2515 done
2516 done
2517}
2518])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2519
2520
2521# AM_OUTPUT_DEPENDENCY_COMMANDS
2522# -----------------------------
2523# This macro should only be invoked once -- use via AC_REQUIRE.
2524#
2525# This code is only required when automatic dependency tracking
2526# is enabled. FIXME. This creates each `.P' file that we will
2527# need in order to bootstrap the dependency handling code.
2528AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2529[AC_CONFIG_COMMANDS([depfiles],
2530 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2531 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2532])
2533
2534# Do all the work for Automake. -*- Autoconf -*-
2535
2536# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2537# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
2538#
2539# This file is free software; the Free Software Foundation
2540# gives unlimited permission to copy and/or distribute it,
2541# with or without modifications, as long as this notice is preserved.
2542
2543# serial 16
2544
2545# This macro actually does too much. Some checks are only needed if
2546# your package does certain things. But this isn't really a big deal.
2547
2548# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
2549# AM_INIT_AUTOMAKE([OPTIONS])
2550# -----------------------------------------------
2551# The call with PACKAGE and VERSION arguments is the old style
2552# call (pre autoconf-2.50), which is being phased out. PACKAGE
2553# and VERSION should now be passed to AC_INIT and removed from
2554# the call to AM_INIT_AUTOMAKE.
2555# We support both call styles for the transition. After
2556# the next Automake release, Autoconf can make the AC_INIT
2557# arguments mandatory, and then we can depend on a new Autoconf
2558# release and drop the old call support.
2559AC_DEFUN([AM_INIT_AUTOMAKE],
2560[AC_PREREQ([2.62])dnl
2561dnl Autoconf wants to disallow AM_ names. We explicitly allow
2562dnl the ones we care about.
2563m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
2564AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
2565AC_REQUIRE([AC_PROG_INSTALL])dnl
2566if test "`cd $srcdir && pwd`" != "`pwd`"; then
2567 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2568 # is not polluted with repeated "-I."
2569 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
2570 # test to see if srcdir already configured
2571 if test -f $srcdir/config.status; then
2572 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
2573 fi
2574fi
2575
2576# test whether we have cygpath
2577if test -z "$CYGPATH_W"; then
2578 if (cygpath --version) >/dev/null 2>/dev/null; then
2579 CYGPATH_W='cygpath -w'
2580 else
2581 CYGPATH_W=echo
2582 fi
2583fi
2584AC_SUBST([CYGPATH_W])
2585
2586# Define the identity of the package.
2587dnl Distinguish between old-style and new-style calls.
2588m4_ifval([$2],
2589[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
2590 AC_SUBST([PACKAGE], [$1])dnl
2591 AC_SUBST([VERSION], [$2])],
2592[_AM_SET_OPTIONS([$1])dnl
2593dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
2594m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
2595 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
2596 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
2597 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
2598
2599_AM_IF_OPTION([no-define],,
2600[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
2601 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
2602
2603# Some tools Automake needs.
2604AC_REQUIRE([AM_SANITY_CHECK])dnl
2605AC_REQUIRE([AC_ARG_PROGRAM])dnl
2606AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
2607AM_MISSING_PROG(AUTOCONF, autoconf)
2608AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
2609AM_MISSING_PROG(AUTOHEADER, autoheader)
2610AM_MISSING_PROG(MAKEINFO, makeinfo)
2611AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
2612AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
2613AC_REQUIRE([AM_PROG_MKDIR_P])dnl
2614# We need awk for the "check" target. The system "awk" is bad on
2615# some platforms.
2616AC_REQUIRE([AC_PROG_AWK])dnl
2617AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2618AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2619_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
2620 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
2621 [_AM_PROG_TAR([v7])])])
2622_AM_IF_OPTION([no-dependencies],,
2623[AC_PROVIDE_IFELSE([AC_PROG_CC],
2624 [_AM_DEPENDENCIES(CC)],
2625 [define([AC_PROG_CC],
2626 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
2627AC_PROVIDE_IFELSE([AC_PROG_CXX],
2628 [_AM_DEPENDENCIES(CXX)],
2629 [define([AC_PROG_CXX],
2630 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
2631AC_PROVIDE_IFELSE([AC_PROG_OBJC],
2632 [_AM_DEPENDENCIES(OBJC)],
2633 [define([AC_PROG_OBJC],
2634 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
2635])
2636_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
2637dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
2638dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
2639dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
2640AC_CONFIG_COMMANDS_PRE(dnl
2641[m4_provide_if([_AM_COMPILER_EXEEXT],
2642 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
2643])
2644
2645dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
2646dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
2647dnl mangled by Autoconf and run in a shell conditional statement.
2648m4_define([_AC_COMPILER_EXEEXT],
2649m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
2650
2651
2652# When config.status generates a header, we must update the stamp-h file.
2653# This file resides in the same directory as the config header
2654# that is generated. The stamp files are numbered to have different names.
2655
2656# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
2657# loop where config.status creates the headers, so we can generate
2658# our stamp files there.
2659AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
2660[# Compute $1's index in $config_headers.
2661_am_arg=$1
2662_am_stamp_count=1
2663for _am_header in $config_headers :; do
2664 case $_am_header in
2665 $_am_arg | $_am_arg:* )
2666 break ;;
2667 * )
2668 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2669 esac
2670done
2671echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
2672
2673# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
2674#
2675# This file is free software; the Free Software Foundation
2676# gives unlimited permission to copy and/or distribute it,
2677# with or without modifications, as long as this notice is preserved.
2678
2679# AM_PROG_INSTALL_SH
2680# ------------------
2681# Define $install_sh.
2682AC_DEFUN([AM_PROG_INSTALL_SH],
2683[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2684if test x"${install_sh}" != xset; then
2685 case $am_aux_dir in
2686 *\ * | *\ *)
2687 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2688 *)
2689 install_sh="\${SHELL} $am_aux_dir/install-sh"
2690 esac
2691fi
2692AC_SUBST(install_sh)])
2693
2694# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
2695#
2696# This file is free software; the Free Software Foundation
2697# gives unlimited permission to copy and/or distribute it,
2698# with or without modifications, as long as this notice is preserved.
2699
2700# serial 2
2701
2702# Check whether the underlying file-system supports filenames
2703# with a leading dot. For instance MS-DOS doesn't.
2704AC_DEFUN([AM_SET_LEADING_DOT],
2705[rm -rf .tst 2>/dev/null
2706mkdir .tst 2>/dev/null
2707if test -d .tst; then
2708 am__leading_dot=.
2709else
2710 am__leading_dot=_
2711fi
2712rmdir .tst 2>/dev/null
2713AC_SUBST([am__leading_dot])])
2714
2715# Check to see how 'make' treats includes. -*- Autoconf -*-
2716
2717# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
2718#
2719# This file is free software; the Free Software Foundation
2720# gives unlimited permission to copy and/or distribute it,
2721# with or without modifications, as long as this notice is preserved.
2722
2723# serial 4
2724
2725# AM_MAKE_INCLUDE()
2726# -----------------
2727# Check to see how make treats includes.
2728AC_DEFUN([AM_MAKE_INCLUDE],
2729[am_make=${MAKE-make}
2730cat > confinc << 'END'
2731am__doit:
2732 @echo this is the am__doit target
2733.PHONY: am__doit
2734END
2735# If we don't find an include directive, just comment out the code.
2736AC_MSG_CHECKING([for style of include used by $am_make])
2737am__include="#"
2738am__quote=
2739_am_result=none
2740# First try GNU make style include.
2741echo "include confinc" > confmf
2742# Ignore all kinds of additional output from `make'.
2743case `$am_make -s -f confmf 2> /dev/null` in #(
2744*the\ am__doit\ target*)
2745 am__include=include
2746 am__quote=
2747 _am_result=GNU
2748 ;;
2749esac
2750# Now try BSD make style include.
2751if test "$am__include" = "#"; then
2752 echo '.include "confinc"' > confmf
2753 case `$am_make -s -f confmf 2> /dev/null` in #(
2754 *the\ am__doit\ target*)
2755 am__include=.include
2756 am__quote="\""
2757 _am_result=BSD
2758 ;;
2759 esac
2760fi
2761AC_SUBST([am__include])
2762AC_SUBST([am__quote])
2763AC_MSG_RESULT([$_am_result])
2764rm -f confinc confmf
2765])
2766
2767# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
2768# Free Software Foundation, Inc.
2769#
2770# This file is free software; the Free Software Foundation
2771# gives unlimited permission to copy and/or distribute it,
2772# with or without modifications, as long as this notice is preserved.
2773
2774# serial 6
2775
2776# AM_PROG_CC_C_O
2777# --------------
2778# Like AC_PROG_CC_C_O, but changed for automake.
2779AC_DEFUN([AM_PROG_CC_C_O],
2780[AC_REQUIRE([AC_PROG_CC_C_O])dnl
2781AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2782AC_REQUIRE_AUX_FILE([compile])dnl
2783# FIXME: we rely on the cache variable name because
2784# there is no other way.
2785set dummy $CC
2786am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
2787eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
2788if test "$am_t" != yes; then
2789 # Losing compiler, so override with the script.
2790 # FIXME: It is wrong to rewrite CC.
2791 # But if we don't then we get into trouble of one sort or another.
2792 # A longer-term fix would be to have automake use am__CC in this case,
2793 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2794 CC="$am_aux_dir/compile $CC"
2795fi
2796dnl Make sure AC_PROG_CC is never called again, or it will override our
2797dnl setting of CC.
2798m4_define([AC_PROG_CC],
2799 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
2800])
2801
2802# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
2803
2804# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
2805# Free Software Foundation, Inc.
2806#
2807# This file is free software; the Free Software Foundation
2808# gives unlimited permission to copy and/or distribute it,
2809# with or without modifications, as long as this notice is preserved.
2810
2811# serial 6
2812
2813# AM_MISSING_PROG(NAME, PROGRAM)
2814# ------------------------------
2815AC_DEFUN([AM_MISSING_PROG],
2816[AC_REQUIRE([AM_MISSING_HAS_RUN])
2817$1=${$1-"${am_missing_run}$2"}
2818AC_SUBST($1)])
2819
2820
2821# AM_MISSING_HAS_RUN
2822# ------------------
2823# Define MISSING if not defined so far and test if it supports --run.
2824# If it does, set am_missing_run to use it, otherwise, to nothing.
2825AC_DEFUN([AM_MISSING_HAS_RUN],
2826[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2827AC_REQUIRE_AUX_FILE([missing])dnl
2828if test x"${MISSING+set}" != xset; then
2829 case $am_aux_dir in
2830 *\ * | *\ *)
2831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2832 *)
2833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2834 esac
2835fi
2836# Use eval to expand $SHELL
2837if eval "$MISSING --run true"; then
2838 am_missing_run="$MISSING --run "
2839else
2840 am_missing_run=
2841 AC_MSG_WARN([`missing' script is too old or missing])
2842fi
2843])
2844
2845# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2846#
2847# This file is free software; the Free Software Foundation
2848# gives unlimited permission to copy and/or distribute it,
2849# with or without modifications, as long as this notice is preserved.
2850
2851# AM_PROG_MKDIR_P
2852# ---------------
2853# Check for `mkdir -p'.
2854AC_DEFUN([AM_PROG_MKDIR_P],
2855[AC_PREREQ([2.60])dnl
2856AC_REQUIRE([AC_PROG_MKDIR_P])dnl
2857dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
2858dnl while keeping a definition of mkdir_p for backward compatibility.
2859dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
2860dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
2861dnl Makefile.ins that do not define MKDIR_P, so we do our own
2862dnl adjustment using top_builddir (which is defined more often than
2863dnl MKDIR_P).
2864AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
2865case $mkdir_p in
2866 [[\\/$]]* | ?:[[\\/]]*) ;;
2867 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2868esac
2869])
2870
2871# Helper functions for option handling. -*- Autoconf -*-
2872
2873# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
2874#
2875# This file is free software; the Free Software Foundation
2876# gives unlimited permission to copy and/or distribute it,
2877# with or without modifications, as long as this notice is preserved.
2878
2879# serial 4
2880
2881# _AM_MANGLE_OPTION(NAME)
2882# -----------------------
2883AC_DEFUN([_AM_MANGLE_OPTION],
2884[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
2885
2886# _AM_SET_OPTION(NAME)
2887# ------------------------------
2888# Set option NAME. Presently that only means defining a flag for this option.
2889AC_DEFUN([_AM_SET_OPTION],
2890[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
2891
2892# _AM_SET_OPTIONS(OPTIONS)
2893# ----------------------------------
2894# OPTIONS is a space-separated list of Automake options.
2895AC_DEFUN([_AM_SET_OPTIONS],
2896[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
2897
2898# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
2899# -------------------------------------------
2900# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
2901AC_DEFUN([_AM_IF_OPTION],
2902[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
2903
2904# Check to make sure that the build environment is sane. -*- Autoconf -*-
2905
2906# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
2907# Free Software Foundation, Inc.
2908#
2909# This file is free software; the Free Software Foundation
2910# gives unlimited permission to copy and/or distribute it,
2911# with or without modifications, as long as this notice is preserved.
2912
2913# serial 5
2914
2915# AM_SANITY_CHECK
2916# ---------------
2917AC_DEFUN([AM_SANITY_CHECK],
2918[AC_MSG_CHECKING([whether build environment is sane])
2919# Just in case
2920sleep 1
2921echo timestamp > conftest.file
2922# Reject unsafe characters in $srcdir or the absolute working directory
2923# name. Accept space and tab only in the latter.
2924am_lf='
2925'
2926case `pwd` in
2927 *[[\\\"\#\$\&\'\`$am_lf]]*)
2928 AC_MSG_ERROR([unsafe absolute working directory name]);;
2929esac
2930case $srcdir in
2931 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
2932 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
2933esac
2934
2935# Do `set' in a subshell so we don't clobber the current shell's
2936# arguments. Must try -L first in case configure is actually a
2937# symlink; some systems play weird games with the mod time of symlinks
2938# (eg FreeBSD returns the mod time of the symlink's containing
2939# directory).
2940if (
2941 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2942 if test "$[*]" = "X"; then
2943 # -L didn't work.
2944 set X `ls -t "$srcdir/configure" conftest.file`
2945 fi
2946 rm -f conftest.file
2947 if test "$[*]" != "X $srcdir/configure conftest.file" \
2948 && test "$[*]" != "X conftest.file $srcdir/configure"; then
2949
2950 # If neither matched, then we have a broken ls. This can happen
2951 # if, for instance, CONFIG_SHELL is bash and it inherits a
2952 # broken ls alias from the environment. This has actually
2953 # happened. Such a system could not be considered "sane".
2954 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
2955alias in your environment])
2956 fi
2957
2958 test "$[2]" = conftest.file
2959 )
2960then
2961 # Ok.
2962 :
2963else
2964 AC_MSG_ERROR([newly created file is older than distributed files!
2965Check your system clock])
2966fi
2967AC_MSG_RESULT(yes)])
2968
2969# Copyright (C) 2009 Free Software Foundation, Inc.
2970#
2971# This file is free software; the Free Software Foundation
2972# gives unlimited permission to copy and/or distribute it,
2973# with or without modifications, as long as this notice is preserved.
2974
2975# serial 1
2976
2977# AM_SILENT_RULES([DEFAULT])
2978# --------------------------
2979# Enable less verbose build rules; with the default set to DEFAULT
2980# (`yes' being less verbose, `no' or empty being verbose).
2981AC_DEFUN([AM_SILENT_RULES],
2982[AC_ARG_ENABLE([silent-rules],
2983[ --enable-silent-rules less verbose build output (undo: `make V=1')
2984 --disable-silent-rules verbose build output (undo: `make V=0')])
2985case $enable_silent_rules in
2986yes) AM_DEFAULT_VERBOSITY=0;;
2987no) AM_DEFAULT_VERBOSITY=1;;
2988*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
2989esac
2990AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
2991AM_BACKSLASH='\'
2992AC_SUBST([AM_BACKSLASH])dnl
2993_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
2994])
2995
2996# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
2997#
2998# This file is free software; the Free Software Foundation
2999# gives unlimited permission to copy and/or distribute it,
3000# with or without modifications, as long as this notice is preserved.
3001
3002# AM_PROG_INSTALL_STRIP
3003# ---------------------
3004# One issue with vendor `install' (even GNU) is that you can't
3005# specify the program used to strip binaries. This is especially
3006# annoying in cross-compiling environments, where the build's strip
3007# is unlikely to handle the host's binaries.
3008# Fortunately install-sh will honor a STRIPPROG variable, so we
3009# always use install-sh in `make install-strip', and initialize
3010# STRIPPROG with the value of the STRIP variable (set by the user).
3011AC_DEFUN([AM_PROG_INSTALL_STRIP],
3012[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
3013# Installed binaries are usually stripped using `strip' when the user
3014# run `make install-strip'. However `strip' might not be the right
3015# tool to use in cross-compilation environments, therefore Automake
3016# will honor the `STRIP' environment variable to overrule this program.
3017dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
3018if test "$cross_compiling" != no; then
3019 AC_CHECK_TOOL([STRIP], [strip], :)
3020fi
3021INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3022AC_SUBST([INSTALL_STRIP_PROGRAM])])
3023
3024# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
3025#
3026# This file is free software; the Free Software Foundation
3027# gives unlimited permission to copy and/or distribute it,
3028# with or without modifications, as long as this notice is preserved.
3029
3030# serial 2
3031
3032# _AM_SUBST_NOTMAKE(VARIABLE)
3033# ---------------------------
3034# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
3035# This macro is traced by Automake.
3036AC_DEFUN([_AM_SUBST_NOTMAKE])
3037
3038# AM_SUBST_NOTMAKE(VARIABLE)
3039# ---------------------------
3040# Public sister of _AM_SUBST_NOTMAKE.
3041AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
3042
3043# Check how to create a tarball. -*- Autoconf -*-
3044
3045# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3046#
3047# This file is free software; the Free Software Foundation
3048# gives unlimited permission to copy and/or distribute it,
3049# with or without modifications, as long as this notice is preserved.
3050
3051# serial 2
3052
3053# _AM_PROG_TAR(FORMAT)
3054# --------------------
3055# Check how to create a tarball in format FORMAT.
3056# FORMAT should be one of `v7', `ustar', or `pax'.
3057#
3058# Substitute a variable $(am__tar) that is a command
3059# writing to stdout a FORMAT-tarball containing the directory
3060# $tardir.
3061# tardir=directory && $(am__tar) > result.tar
3062#
3063# Substitute a variable $(am__untar) that extract such
3064# a tarball read from stdin.
3065# $(am__untar) < result.tar
3066AC_DEFUN([_AM_PROG_TAR],
3067[# Always define AMTAR for backward compatibility.
3068AM_MISSING_PROG([AMTAR], [tar])
3069m4_if([$1], [v7],
3070 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
3071 [m4_case([$1], [ustar],, [pax],,
3072 [m4_fatal([Unknown tar format])])
3073AC_MSG_CHECKING([how to create a $1 tar archive])
3074# Loop over all known methods to create a tar archive until one works.
3075_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
3076_am_tools=${am_cv_prog_tar_$1-$_am_tools}
3077# Do not fold the above two line into one, because Tru64 sh and
3078# Solaris sh will not grok spaces in the rhs of `-'.
3079for _am_tool in $_am_tools
3080do
3081 case $_am_tool in
3082 gnutar)
3083 for _am_tar in tar gnutar gtar;
3084 do
3085 AM_RUN_LOG([$_am_tar --version]) && break
3086 done
3087 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
3088 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
3089 am__untar="$_am_tar -xf -"
3090 ;;
3091 plaintar)
3092 # Must skip GNU tar: if it does not support --format= it doesn't create
3093 # ustar tarball either.
3094 (tar --version) >/dev/null 2>&1 && continue
3095 am__tar='tar chf - "$$tardir"'
3096 am__tar_='tar chf - "$tardir"'
3097 am__untar='tar xf -'
3098 ;;
3099 pax)
3100 am__tar='pax -L -x $1 -w "$$tardir"'
3101 am__tar_='pax -L -x $1 -w "$tardir"'
3102 am__untar='pax -r'
3103 ;;
3104 cpio)
3105 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
3106 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
3107 am__untar='cpio -i -H $1 -d'
3108 ;;
3109 none)
3110 am__tar=false
3111 am__tar_=false
3112 am__untar=false
3113 ;;
3114 esac
3115
3116 # If the value was cached, stop now. We just wanted to have am__tar
3117 # and am__untar set.
3118 test -n "${am_cv_prog_tar_$1}" && break
3119
3120 # tar/untar a dummy directory, and stop if the command works
3121 rm -rf conftest.dir
3122 mkdir conftest.dir
3123 echo GrepMe > conftest.dir/file
3124 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
3125 rm -rf conftest.dir
3126 if test -s conftest.tar; then
3127 AM_RUN_LOG([$am__untar <conftest.tar])
3128 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3129 fi
3130done
3131rm -rf conftest.dir
3132
3133AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
3134AC_MSG_RESULT([$am_cv_prog_tar_$1])])
3135AC_SUBST([am__tar])
3136AC_SUBST([am__untar])
3137]) # _AM_PROG_TAR
3138
3139m4_include([.macro_dir/ac_check_class.m4])
3140m4_include([.macro_dir/ac_check_cpp.m4])
3141m4_include([.macro_dir/ac_check_package.m4])
3142m4_include([.macro_dir/ac_check_readline.m4])
3143m4_include([.macro_dir/ac_find_motif.m4])
3144m4_include([.macro_dir/ax_cxx_compile_stdcxx_0x.m4])
3145m4_include([.macro_dir/libtool.m4])
3146m4_include([.macro_dir/ltoptions.m4])
3147m4_include([.macro_dir/ltsugar.m4])
3148m4_include([.macro_dir/ltversion.m4])
3149m4_include([.macro_dir/lt~obsolete.m4])
3150m4_include([.macro_dir/mysql++_devel.m4])
3151m4_include([.macro_dir/mysql_devel.m4])
3152m4_include([.macro_dir/qt4_do_it_all.m4])
3153m4_include([.macro_dir/root_path.m4])
Note: See TracBrowser for help on using the repository browser.