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

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