comparison fastx_toolkit-0.0.6/aclocal.m4 @ 3:997f5136985f draft default tip

Uploaded
author xilinxu
date Thu, 14 Aug 2014 04:52:17 -0400
parents
children
comparison
equal deleted inserted replaced
2:dfe9332138cf 3:997f5136985f
1 # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(AC_AUTOCONF_VERSION, [2.61],,
17 [m4_warning([this file was generated for autoconf 2.61.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22 dnl Autoconf support for C++
23 dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
24 dnl
25 dnl This program is free software; you can redistribute it and/or modify
26 dnl it under the terms of the GNU General Public License as published by
27 dnl the Free Software Foundation; either version 2 of the License, or
28 dnl (at your option) any later version.
29 dnl
30 dnl This program is distributed in the hope that it will be useful,
31 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
32 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 dnl GNU General Public License for more details.
34 dnl
35 dnl You should have received a copy of the GNU General Public License
36 dnl along with this program; if not, write to the Free Software
37 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38 dnl
39 dnl As a special exception to the GNU General Public License, if you
40 dnl distribute this file as part of a program that contains a configuration
41 dnl script generated by Autoconf, you may include it under the same
42 dnl distribution terms that you use for the rest of that program.
43
44 # -------------------------------------------------------------------------
45 # Use this macro to configure your C compiler
46 # When called the macro does the following things:
47 # 1. It finds an appropriate C compiler.
48 # If you passed the flag --with-cc=foo then it uses that
49 # particular compiler
50 # 2. Check whether the compiler works.
51 # 3. Checks whether the compiler accepts the -g
52 # -------------------------------------------------------------------------
53
54 AC_DEFUN(LF_CONFIGURE_CC,[
55 dnl Sing the song
56 AC_PROG_CC
57 AC_PROG_CPP
58 AC_AIX
59 AC_ISC_POSIX
60 AC_MINIX
61 AC_HEADER_STDC
62 ])
63
64
65 dnl Autoconf support for C++
66 dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
67 dnl
68 dnl This program is free software; you can redistribute it and/or modify
69 dnl it under the terms of the GNU General Public License as published by
70 dnl the Free Software Foundation; either version 2 of the License, or
71 dnl (at your option) any later version.
72 dnl
73 dnl This program is distributed in the hope that it will be useful,
74 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
75 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
76 dnl GNU General Public License for more details.
77 dnl
78 dnl You should have received a copy of the GNU General Public License
79 dnl along with this program; if not, write to the Free Software
80 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
81 dnl
82 dnl As a special exception to the GNU General Public License, if you
83 dnl distribute this file as part of a program that contains a configuration
84 dnl script generated by Autoconf, you may include it under the same
85 dnl distribution terms that you use for the rest of that program.
86
87 # -----------------------------------------------------------------
88 # This macro should be called to configure your C++ compiler.
89 # When called, the macro does the following things:
90 # 1. It finds an appropriate C++ compiler
91 # If you passed the flag --with-cxx=foo, then it uses that
92 # particular compiler
93 # 2. Checks whether the compiler accepts the -g
94 # ------------------------------------------------------------------
95
96 AC_DEFUN(LF_CONFIGURE_CXX,[
97 AC_PROG_CXX
98 AC_PROG_CXXCPP
99 LF_CPP_PORTABILITY
100 ])
101
102 # -----------------------------------------------------------------------
103 # This macro tests the C++ compiler for various portability problem.
104 # 1. Defines CXX_HAS_NO_BOOL if the compiler does not support the bool
105 # data type
106 # 2. Defines CXX_HAS_BUGGY_FOR_LOOPS if the compiler has buggy
107 # scoping for the for-loop
108 # 3. Defines USE_ASSERT if the user wants to use assertions
109 # Seperately we provide some config.h.bot code to be added to acconfig.h
110 # that implements work-arounds for these problems.
111 # -----------------------------------------------------------------------
112
113 dnl ACCONFIG TEMPLATE
114 dnl #undef CXX_HAS_BUGGY_FOR_LOOPS
115 dnl #undef CXX_HAS_NO_BOOL
116 dnl #undef NDEBUG
117 dnl END ACCONFIG
118
119 AC_DEFUN(LF_CPP_PORTABILITY,[
120
121 dnl
122 dnl Check for common C++ portability problems
123 dnl
124
125 AC_LANG_SAVE
126 AC_LANG_CPLUSPLUS
127
128 dnl Check whether we have bool
129 AC_MSG_CHECKING(whether C++ has bool)
130 AC_TRY_RUN([main() { bool b1=true; bool b2=false; }],
131 [ AC_MSG_RESULT(yes) ],
132 [ AC_MSG_RESULT(no)
133 AC_DEFINE(CXX_HAS_NO_BOOL) ],
134 [ AC_MSG_WARN(Don't cross-compile)]
135 )
136
137 dnl Test whether C++ has buggy for-loops
138 AC_MSG_CHECKING(whether C++ has buggy scoping in for-loops)
139 AC_TRY_COMPILE([#include <iostream.h>], [
140 for (int i=0;i<10;i++) { }
141 for (int i=0;i<10;i++) { }
142 ], [ AC_MSG_RESULT(no) ],
143 [ AC_MSG_RESULT(yes)
144 AC_DEFINE(CXX_HAS_BUGGY_FOR_LOOPS) ])
145
146 dnl Test whether the user wants to enable assertions
147 AC_MSG_CHECKING(whether user wants assertions)
148 AC_ARG_ENABLE(assert,
149 [ --disable-assert don't use cpp.h assert],
150 [ AC_DEFINE(NDEBUG)
151 AC_MSG_RESULT(no) ],
152 [ AC_MSG_RESULT(yes) ],
153 )
154
155 dnl Done with the portability checks
156 AC_LANG_RESTORE
157 ])
158
159 dnl ACCONFIG BOTTOM
160 dnl
161 dnl // This file defines portability work-arounds for various proprietory
162 dnl // C++ compilers
163 dnl
164 dnl // Workaround for compilers with buggy for-loop scoping
165 dnl // That's quite a few compilers actually including recent versions of
166 dnl // Dec Alpha cxx, HP-UX CC and SGI CC.
167 dnl // The trivial "if" statement provides the correct scoping to the
168 dnl // for loop
169 dnl
170 dnl #ifdef CXX_HAS_BUGGY_FOR_LOOPS
171 dnl #undef for
172 dnl #define for if(1) for
173 dnl #endif
174 dnl
175 dnl //
176 dnl // Fortran-like integer looping macros
177 dnl // these critters depend on the scoping work-around above
178 dnl //
179 dnl
180 dnl #define loop(COUNTER,BEGIN,END) \
181 dnl for (int COUNTER = BEGIN ; COUNTER <= END ; COUNTER ## ++)
182 dnl
183 dnl #define inverse_loop(COUNTER,END,BEGIN) \
184 dnl for (int COUNTER = END; COUNTER >= BEGIN; COUNTER ## --)
185 dnl
186 dnl #define integer_loop(COUNTER,BEGIN,END,STEP) \
187 dnl for (int COUNTER = BEGIN; COUNTER <= END; COUNTER += STEP)
188 dnl
189 dnl //
190 dnl // Class protection levels
191 dnl // addictive syntactic sugar to make coding nicer
192 dnl //
193 dnl
194 dnl #define pub public:
195 dnl #define pro protected:
196 dnl #define pri private:
197 dnl
198 dnl //
199 dnl // Every mathematician would like to know pi
200 dnl // so this is as good a place as any to throw it in.
201 dnl //
202 dnl
203 dnl #define pi 3.14159265358979324
204 dnl
205 dnl //
206 dnl // If the C++ compiler we use doesn't have bool, then
207 dnl // the following is a near-perfect work-around.
208 dnl // You must make sure your code does not depend on "int" and "bool"
209 dnl // being two different types, in overloading for instance.
210 dnl //
211 dnl
212 dnl #ifdef CXX_HAS_NO_BOOL
213 dnl #define bool int
214 dnl #define true 1
215 dnl #define false 0
216 dnl #endif
217 dnl
218 dnl #include <assert.h>
219 dnl
220 dnl END ACCONFIG
221
222
223 dnl Autoconf support for C++
224 dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
225 dnl
226 dnl This program is free software; you can redistribute it and/or modify
227 dnl it under the terms of the GNU General Public License as published by
228 dnl the Free Software Foundation; either version 2 of the License, or
229 dnl (at your option) any later version.
230 dnl
231 dnl This program is distributed in the hope that it will be useful,
232 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
233 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
234 dnl GNU General Public License for more details.
235 dnl
236 dnl You should have received a copy of the GNU General Public License
237 dnl along with this program; if not, write to the Free Software
238 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
239 dnl
240 dnl As a special exception to the GNU General Public License, if you
241 dnl distribute this file as part of a program that contains a configuration
242 dnl script generated by Autoconf, you may include it under the same
243 dnl distribution terms that you use for the rest of that program.
244
245 # -----------------------------------------------------------------------
246 # This macro determines hardware-vendor-os information and
247 # sets the variable ``canonical_host_type'' to that information
248 # ------------------------------------------------------------------------
249
250 dnl ACCONFIG TEMPLATE
251 dnl #undef YOUR_OS
252 dnl END ACCONFIG
253
254 AC_DEFUN(LF_HOST_TYPE, [
255 AC_CANONICAL_HOST
256 if test -z "$host"
257 then
258 host=unknown
259 fi
260 canonical_host_type=$host
261 if test "$host" = unknown
262 then
263 AC_MSG_WARN(configuring for unknown system type)
264 fi
265 AC_SUBST(canonical_host_type)
266 AC_DEFINE_UNQUOTED(YOUR_OS,"$canonical_host_type")
267 ])
268
269 dnl Copyright (C) 1988 Eleftherios Gkioulekas <lf@amath.washington.edu>
270 dnl
271 dnl This program is free software; you can redistribute it and/or modify
272 dnl it under the terms of the GNU General Public License as published by
273 dnl the Free Software Foundation; either version 2 of the License, or
274 dnl (at your option) any later version.
275 dnl
276 dnl This program is distributed in the hope that it will be useful,
277 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
278 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
279 dnl GNU General Public License for more details.
280 dnl
281 dnl You should have received a copy of the GNU General Public License
282 dnl along with this program; if not, write to the Free Software
283 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
284 dnl
285 dnl As a special exception to the GNU General Public License, if you
286 dnl distribute this file as part of a program that contains a configuration
287 dnl script generated by Autoconf, you may include it under the same
288 dnl distribution terms that you use for the rest of that program.
289
290 # --------------------------------------------------------------------------
291 # Check whether the C++ compiler accepts a certain flag
292 # If it does it adds the flag to CXXFLAGS
293 # If it does not then it returns an error to lf_ok
294 # Usage:
295 # LF_CHECK_CXX_FLAG(-flag1 -flag2 -flag3 ...)
296 # -------------------------------------------------------------------------
297
298 AC_DEFUN(LF_CHECK_CXX_FLAG,[
299 echo 'void f(){}' > conftest.cc
300 for i in $1
301 do
302 AC_MSG_CHECKING([whether $CXX accepts $i])
303 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
304 then
305 CXXFLAGS="${CXXFLAGS} $i"
306 AC_MSG_RESULT(yes)
307 else
308 AC_MSG_RESULT(no)
309 fi
310 done
311 rm -f conftest.cc conftest.o
312 ])
313
314 # --------------------------------------------------------------------------
315 # Check whether the C compiler accepts a certain flag
316 # If it does it adds the flag to CFLAGS
317 # If it does not then it returns an error to lf_ok
318 # Usage:
319 # LF_CHECK_CC_FLAG(-flag1 -flag2 -flag3 ...)
320 # -------------------------------------------------------------------------
321
322 AC_DEFUN(LF_CHECK_CC_FLAG,[
323 echo 'void f(){}' > conftest.c
324 for i in $1
325 do
326 AC_MSG_CHECKING([whether $CC accepts $i])
327 if test -z "`${CC} $i -c conftest.c 2>&1`"
328 then
329 CFLAGS="${CFLAGS} $i"
330 AC_MSG_RESULT(yes)
331 else
332 AC_MSG_RESULT(no)
333 fi
334 done
335 rm -f conftest.c conftest.o
336 ])
337
338 # --------------------------------------------------------------------------
339 # Check whether the Fortran compiler accepts a certain flag
340 # If it does it adds the flag to FFLAGS
341 # If it does not then it returns an error to lf_ok
342 # Usage:
343 # LF_CHECK_F77_FLAG(-flag1 -flag2 -flag3 ...)
344 # -------------------------------------------------------------------------
345
346 AC_DEFUN(LF_CHECK_F77_FLAG,[
347 cat << EOF > conftest.f
348 c....:++++++++++++++++++++++++
349 PROGRAM MAIN
350 PRINT*,'Hello World!'
351 END
352 EOF
353 for i in $1
354 do
355 AC_MSG_CHECKING([whether $F77 accepts $i])
356 if test -z "`${F77} $i -c conftest.f 2>&1`"
357 then
358 FFLAGS="${FFLAGS} $i"
359 AC_MSG_RESULT(yes)
360 else
361 AC_MSG_RESULT(no)
362 fi
363 done
364 rm -f conftest.f conftest.o
365 ])
366
367 # ----------------------------------------------------------------------
368 # Provide the configure script with an --with-warnings option that
369 # turns on warnings. Call this command AFTER you have configured ALL your
370 # compilers.
371 # ----------------------------------------------------------------------
372
373 AC_DEFUN(LF_SET_WARNINGS,[
374 dnl Check for --with-warnings
375 AC_MSG_CHECKING([whether user wants warnings])
376 AC_ARG_WITH(warnings,
377 [ --with-warnings Turn on warnings],
378 [ lf_warnings=yes ], [ lf_warnings=no ])
379 AC_MSG_RESULT($lf_warnings)
380
381 dnl Warnings for the two main compilers
382 cc_warning_flags="-Wall"
383 cxx_warning_flags="-Wall -Woverloaded-virtual -Wtemplate-debugging"
384 if test $lf_warnings = yes
385 then
386 if test -n "${CC}"
387 then
388 LF_CHECK_CC_FLAG($cc_warning_flags)
389 fi
390 if test -n "${CXX}"
391 then
392 LF_CHECK_CXX_FLAG($cxx_warning_flags)
393 fi
394 fi
395 ])
396
397 # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
398 #
399 # This file is free software; the Free Software Foundation
400 # gives unlimited permission to copy and/or distribute it,
401 # with or without modifications, as long as this notice is preserved.
402
403 # AM_AUTOMAKE_VERSION(VERSION)
404 # ----------------------------
405 # Automake X.Y traces this macro to ensure aclocal.m4 has been
406 # generated from the m4 files accompanying Automake X.Y.
407 # (This private macro should not be called outside this file.)
408 AC_DEFUN([AM_AUTOMAKE_VERSION],
409 [am__api_version='1.10'
410 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
411 dnl require some minimum version. Point them to the right macro.
412 m4_if([$1], [1.10.1], [],
413 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
414 ])
415
416 # _AM_AUTOCONF_VERSION(VERSION)
417 # -----------------------------
418 # aclocal traces this macro to find the Autoconf version.
419 # This is a private macro too. Using m4_define simplifies
420 # the logic in aclocal, which can simply ignore this definition.
421 m4_define([_AM_AUTOCONF_VERSION], [])
422
423 # AM_SET_CURRENT_AUTOMAKE_VERSION
424 # -------------------------------
425 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
426 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
427 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
428 [AM_AUTOMAKE_VERSION([1.10.1])dnl
429 m4_ifndef([AC_AUTOCONF_VERSION],
430 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
431 _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
432
433 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
434
435 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
436 #
437 # This file is free software; the Free Software Foundation
438 # gives unlimited permission to copy and/or distribute it,
439 # with or without modifications, as long as this notice is preserved.
440
441 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
442 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
443 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
444 #
445 # Of course, Automake must honor this variable whenever it calls a
446 # tool from the auxiliary directory. The problem is that $srcdir (and
447 # therefore $ac_aux_dir as well) can be either absolute or relative,
448 # depending on how configure is run. This is pretty annoying, since
449 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
450 # source directory, any form will work fine, but in subdirectories a
451 # relative path needs to be adjusted first.
452 #
453 # $ac_aux_dir/missing
454 # fails when called from a subdirectory if $ac_aux_dir is relative
455 # $top_srcdir/$ac_aux_dir/missing
456 # fails if $ac_aux_dir is absolute,
457 # fails when called from a subdirectory in a VPATH build with
458 # a relative $ac_aux_dir
459 #
460 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
461 # are both prefixed by $srcdir. In an in-source build this is usually
462 # harmless because $srcdir is `.', but things will broke when you
463 # start a VPATH build or use an absolute $srcdir.
464 #
465 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
466 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
467 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
468 # and then we would define $MISSING as
469 # MISSING="\${SHELL} $am_aux_dir/missing"
470 # This will work as long as MISSING is not called from configure, because
471 # unfortunately $(top_srcdir) has no meaning in configure.
472 # However there are other variables, like CC, which are often used in
473 # configure, and could therefore not use this "fixed" $ac_aux_dir.
474 #
475 # Another solution, used here, is to always expand $ac_aux_dir to an
476 # absolute PATH. The drawback is that using absolute paths prevent a
477 # configured tree to be moved without reconfiguration.
478
479 AC_DEFUN([AM_AUX_DIR_EXPAND],
480 [dnl Rely on autoconf to set up CDPATH properly.
481 AC_PREREQ([2.50])dnl
482 # expand $ac_aux_dir to an absolute path
483 am_aux_dir=`cd $ac_aux_dir && pwd`
484 ])
485
486 # AM_CONDITIONAL -*- Autoconf -*-
487
488 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
489 # Free Software Foundation, Inc.
490 #
491 # This file is free software; the Free Software Foundation
492 # gives unlimited permission to copy and/or distribute it,
493 # with or without modifications, as long as this notice is preserved.
494
495 # serial 8
496
497 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
498 # -------------------------------------
499 # Define a conditional.
500 AC_DEFUN([AM_CONDITIONAL],
501 [AC_PREREQ(2.52)dnl
502 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
503 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
504 AC_SUBST([$1_TRUE])dnl
505 AC_SUBST([$1_FALSE])dnl
506 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
507 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
508 if $2; then
509 $1_TRUE=
510 $1_FALSE='#'
511 else
512 $1_TRUE='#'
513 $1_FALSE=
514 fi
515 AC_CONFIG_COMMANDS_PRE(
516 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
517 AC_MSG_ERROR([[conditional "$1" was never defined.
518 Usually this means the macro was only invoked conditionally.]])
519 fi])])
520
521 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
522 # Free Software Foundation, Inc.
523 #
524 # This file is free software; the Free Software Foundation
525 # gives unlimited permission to copy and/or distribute it,
526 # with or without modifications, as long as this notice is preserved.
527
528 # serial 9
529
530 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
531 # written in clear, in which case automake, when reading aclocal.m4,
532 # will think it sees a *use*, and therefore will trigger all it's
533 # C support machinery. Also note that it means that autoscan, seeing
534 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
535
536
537 # _AM_DEPENDENCIES(NAME)
538 # ----------------------
539 # See how the compiler implements dependency checking.
540 # NAME is "CC", "CXX", "GCJ", or "OBJC".
541 # We try a few techniques and use that to set a single cache variable.
542 #
543 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
544 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
545 # dependency, and given that the user is not expected to run this macro,
546 # just rely on AC_PROG_CC.
547 AC_DEFUN([_AM_DEPENDENCIES],
548 [AC_REQUIRE([AM_SET_DEPDIR])dnl
549 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
550 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
551 AC_REQUIRE([AM_DEP_TRACK])dnl
552
553 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
554 [$1], CXX, [depcc="$CXX" am_compiler_list=],
555 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
556 [$1], UPC, [depcc="$UPC" am_compiler_list=],
557 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
558 [depcc="$$1" am_compiler_list=])
559
560 AC_CACHE_CHECK([dependency style of $depcc],
561 [am_cv_$1_dependencies_compiler_type],
562 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
563 # We make a subdir and do the tests there. Otherwise we can end up
564 # making bogus files that we don't know about and never remove. For
565 # instance it was reported that on HP-UX the gcc test will end up
566 # making a dummy file named `D' -- because `-MD' means `put the output
567 # in D'.
568 mkdir conftest.dir
569 # Copy depcomp to subdir because otherwise we won't find it if we're
570 # using a relative directory.
571 cp "$am_depcomp" conftest.dir
572 cd conftest.dir
573 # We will build objects and dependencies in a subdirectory because
574 # it helps to detect inapplicable dependency modes. For instance
575 # both Tru64's cc and ICC support -MD to output dependencies as a
576 # side effect of compilation, but ICC will put the dependencies in
577 # the current directory while Tru64 will put them in the object
578 # directory.
579 mkdir sub
580
581 am_cv_$1_dependencies_compiler_type=none
582 if test "$am_compiler_list" = ""; then
583 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
584 fi
585 for depmode in $am_compiler_list; do
586 # Setup a source with many dependencies, because some compilers
587 # like to wrap large dependency lists on column 80 (with \), and
588 # we should not choose a depcomp mode which is confused by this.
589 #
590 # We need to recreate these files for each test, as the compiler may
591 # overwrite some of them when testing with obscure command lines.
592 # This happens at least with the AIX C compiler.
593 : > sub/conftest.c
594 for i in 1 2 3 4 5 6; do
595 echo '#include "conftst'$i'.h"' >> sub/conftest.c
596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
597 # Solaris 8's {/usr,}/bin/sh.
598 touch sub/conftst$i.h
599 done
600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
601
602 case $depmode in
603 nosideeffect)
604 # after this tag, mechanisms are not by side-effect, so they'll
605 # only be used when explicitly requested
606 if test "x$enable_dependency_tracking" = xyes; then
607 continue
608 else
609 break
610 fi
611 ;;
612 none) break ;;
613 esac
614 # We check with `-c' and `-o' for the sake of the "dashmstdout"
615 # mode. It turns out that the SunPro C++ compiler does not properly
616 # handle `-M -o', and we need to detect this.
617 if depmode=$depmode \
618 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
620 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
621 >/dev/null 2>conftest.err &&
622 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
623 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
624 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
625 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
626 # icc doesn't choke on unknown options, it will just issue warnings
627 # or remarks (even with -Werror). So we grep stderr for any message
628 # that says an option was ignored or not supported.
629 # When given -MP, icc 7.0 and 7.1 complain thusly:
630 # icc: Command line warning: ignoring option '-M'; no argument required
631 # The diagnosis changed in icc 8.0:
632 # icc: Command line remark: option '-MP' not supported
633 if (grep 'ignoring option' conftest.err ||
634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
635 am_cv_$1_dependencies_compiler_type=$depmode
636 break
637 fi
638 fi
639 done
640
641 cd ..
642 rm -rf conftest.dir
643 else
644 am_cv_$1_dependencies_compiler_type=none
645 fi
646 ])
647 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
648 AM_CONDITIONAL([am__fastdep$1], [
649 test "x$enable_dependency_tracking" != xno \
650 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
651 ])
652
653
654 # AM_SET_DEPDIR
655 # -------------
656 # Choose a directory name for dependency files.
657 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
658 AC_DEFUN([AM_SET_DEPDIR],
659 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
660 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
661 ])
662
663
664 # AM_DEP_TRACK
665 # ------------
666 AC_DEFUN([AM_DEP_TRACK],
667 [AC_ARG_ENABLE(dependency-tracking,
668 [ --disable-dependency-tracking speeds up one-time build
669 --enable-dependency-tracking do not reject slow dependency extractors])
670 if test "x$enable_dependency_tracking" != xno; then
671 am_depcomp="$ac_aux_dir/depcomp"
672 AMDEPBACKSLASH='\'
673 fi
674 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
675 AC_SUBST([AMDEPBACKSLASH])dnl
676 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
677 ])
678
679 # Generate code to set up dependency tracking. -*- Autoconf -*-
680
681 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
682 # Free Software Foundation, Inc.
683 #
684 # This file is free software; the Free Software Foundation
685 # gives unlimited permission to copy and/or distribute it,
686 # with or without modifications, as long as this notice is preserved.
687
688 #serial 3
689
690 # _AM_OUTPUT_DEPENDENCY_COMMANDS
691 # ------------------------------
692 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
693 [for mf in $CONFIG_FILES; do
694 # Strip MF so we end up with the name of the file.
695 mf=`echo "$mf" | sed -e 's/:.*$//'`
696 # Check whether this is an Automake generated Makefile or not.
697 # We used to match only the files named `Makefile.in', but
698 # some people rename them; so instead we look at the file content.
699 # Grep'ing the first line is not enough: some people post-process
700 # each Makefile.in and add a new line on top of each file to say so.
701 # Grep'ing the whole file is not good either: AIX grep has a line
702 # limit of 2048, but all sed's we know have understand at least 4000.
703 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
704 dirpart=`AS_DIRNAME("$mf")`
705 else
706 continue
707 fi
708 # Extract the definition of DEPDIR, am__include, and am__quote
709 # from the Makefile without running `make'.
710 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
711 test -z "$DEPDIR" && continue
712 am__include=`sed -n 's/^am__include = //p' < "$mf"`
713 test -z "am__include" && continue
714 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
715 # When using ansi2knr, U may be empty or an underscore; expand it
716 U=`sed -n 's/^U = //p' < "$mf"`
717 # Find all dependency output files, they are included files with
718 # $(DEPDIR) in their names. We invoke sed twice because it is the
719 # simplest approach to changing $(DEPDIR) to its actual value in the
720 # expansion.
721 for file in `sed -n "
722 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
723 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
724 # Make sure the directory exists.
725 test -f "$dirpart/$file" && continue
726 fdir=`AS_DIRNAME(["$file"])`
727 AS_MKDIR_P([$dirpart/$fdir])
728 # echo "creating $dirpart/$file"
729 echo '# dummy' > "$dirpart/$file"
730 done
731 done
732 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
733
734
735 # AM_OUTPUT_DEPENDENCY_COMMANDS
736 # -----------------------------
737 # This macro should only be invoked once -- use via AC_REQUIRE.
738 #
739 # This code is only required when automatic dependency tracking
740 # is enabled. FIXME. This creates each `.P' file that we will
741 # need in order to bootstrap the dependency handling code.
742 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
743 [AC_CONFIG_COMMANDS([depfiles],
744 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
745 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
746 ])
747
748 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
749 # Free Software Foundation, Inc.
750 #
751 # This file is free software; the Free Software Foundation
752 # gives unlimited permission to copy and/or distribute it,
753 # with or without modifications, as long as this notice is preserved.
754
755 # serial 8
756
757 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
758 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
759
760 # Do all the work for Automake. -*- Autoconf -*-
761
762 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
763 # 2005, 2006, 2008 Free Software Foundation, Inc.
764 #
765 # This file is free software; the Free Software Foundation
766 # gives unlimited permission to copy and/or distribute it,
767 # with or without modifications, as long as this notice is preserved.
768
769 # serial 13
770
771 # This macro actually does too much. Some checks are only needed if
772 # your package does certain things. But this isn't really a big deal.
773
774 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
775 # AM_INIT_AUTOMAKE([OPTIONS])
776 # -----------------------------------------------
777 # The call with PACKAGE and VERSION arguments is the old style
778 # call (pre autoconf-2.50), which is being phased out. PACKAGE
779 # and VERSION should now be passed to AC_INIT and removed from
780 # the call to AM_INIT_AUTOMAKE.
781 # We support both call styles for the transition. After
782 # the next Automake release, Autoconf can make the AC_INIT
783 # arguments mandatory, and then we can depend on a new Autoconf
784 # release and drop the old call support.
785 AC_DEFUN([AM_INIT_AUTOMAKE],
786 [AC_PREREQ([2.60])dnl
787 dnl Autoconf wants to disallow AM_ names. We explicitly allow
788 dnl the ones we care about.
789 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
790 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
791 AC_REQUIRE([AC_PROG_INSTALL])dnl
792 if test "`cd $srcdir && pwd`" != "`pwd`"; then
793 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
794 # is not polluted with repeated "-I."
795 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
796 # test to see if srcdir already configured
797 if test -f $srcdir/config.status; then
798 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
799 fi
800 fi
801
802 # test whether we have cygpath
803 if test -z "$CYGPATH_W"; then
804 if (cygpath --version) >/dev/null 2>/dev/null; then
805 CYGPATH_W='cygpath -w'
806 else
807 CYGPATH_W=echo
808 fi
809 fi
810 AC_SUBST([CYGPATH_W])
811
812 # Define the identity of the package.
813 dnl Distinguish between old-style and new-style calls.
814 m4_ifval([$2],
815 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
816 AC_SUBST([PACKAGE], [$1])dnl
817 AC_SUBST([VERSION], [$2])],
818 [_AM_SET_OPTIONS([$1])dnl
819 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
820 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
821 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
822 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
823 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
824
825 _AM_IF_OPTION([no-define],,
826 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
827 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
828
829 # Some tools Automake needs.
830 AC_REQUIRE([AM_SANITY_CHECK])dnl
831 AC_REQUIRE([AC_ARG_PROGRAM])dnl
832 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
833 AM_MISSING_PROG(AUTOCONF, autoconf)
834 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
835 AM_MISSING_PROG(AUTOHEADER, autoheader)
836 AM_MISSING_PROG(MAKEINFO, makeinfo)
837 AM_PROG_INSTALL_SH
838 AM_PROG_INSTALL_STRIP
839 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
840 # We need awk for the "check" target. The system "awk" is bad on
841 # some platforms.
842 AC_REQUIRE([AC_PROG_AWK])dnl
843 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
844 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
845 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
846 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
847 [_AM_PROG_TAR([v7])])])
848 _AM_IF_OPTION([no-dependencies],,
849 [AC_PROVIDE_IFELSE([AC_PROG_CC],
850 [_AM_DEPENDENCIES(CC)],
851 [define([AC_PROG_CC],
852 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
853 AC_PROVIDE_IFELSE([AC_PROG_CXX],
854 [_AM_DEPENDENCIES(CXX)],
855 [define([AC_PROG_CXX],
856 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
857 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
858 [_AM_DEPENDENCIES(OBJC)],
859 [define([AC_PROG_OBJC],
860 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
861 ])
862 ])
863
864
865 # When config.status generates a header, we must update the stamp-h file.
866 # This file resides in the same directory as the config header
867 # that is generated. The stamp files are numbered to have different names.
868
869 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
870 # loop where config.status creates the headers, so we can generate
871 # our stamp files there.
872 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
873 [# Compute $1's index in $config_headers.
874 _am_arg=$1
875 _am_stamp_count=1
876 for _am_header in $config_headers :; do
877 case $_am_header in
878 $_am_arg | $_am_arg:* )
879 break ;;
880 * )
881 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
882 esac
883 done
884 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
885
886 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
887 #
888 # This file is free software; the Free Software Foundation
889 # gives unlimited permission to copy and/or distribute it,
890 # with or without modifications, as long as this notice is preserved.
891
892 # AM_PROG_INSTALL_SH
893 # ------------------
894 # Define $install_sh.
895 AC_DEFUN([AM_PROG_INSTALL_SH],
896 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
897 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
898 AC_SUBST(install_sh)])
899
900 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
901 #
902 # This file is free software; the Free Software Foundation
903 # gives unlimited permission to copy and/or distribute it,
904 # with or without modifications, as long as this notice is preserved.
905
906 # serial 2
907
908 # Check whether the underlying file-system supports filenames
909 # with a leading dot. For instance MS-DOS doesn't.
910 AC_DEFUN([AM_SET_LEADING_DOT],
911 [rm -rf .tst 2>/dev/null
912 mkdir .tst 2>/dev/null
913 if test -d .tst; then
914 am__leading_dot=.
915 else
916 am__leading_dot=_
917 fi
918 rmdir .tst 2>/dev/null
919 AC_SUBST([am__leading_dot])])
920
921 # Check to see how 'make' treats includes. -*- Autoconf -*-
922
923 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
924 #
925 # This file is free software; the Free Software Foundation
926 # gives unlimited permission to copy and/or distribute it,
927 # with or without modifications, as long as this notice is preserved.
928
929 # serial 3
930
931 # AM_MAKE_INCLUDE()
932 # -----------------
933 # Check to see how make treats includes.
934 AC_DEFUN([AM_MAKE_INCLUDE],
935 [am_make=${MAKE-make}
936 cat > confinc << 'END'
937 am__doit:
938 @echo done
939 .PHONY: am__doit
940 END
941 # If we don't find an include directive, just comment out the code.
942 AC_MSG_CHECKING([for style of include used by $am_make])
943 am__include="#"
944 am__quote=
945 _am_result=none
946 # First try GNU make style include.
947 echo "include confinc" > confmf
948 # We grep out `Entering directory' and `Leaving directory'
949 # messages which can occur if `w' ends up in MAKEFLAGS.
950 # In particular we don't look at `^make:' because GNU make might
951 # be invoked under some other name (usually "gmake"), in which
952 # case it prints its new name instead of `make'.
953 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
954 am__include=include
955 am__quote=
956 _am_result=GNU
957 fi
958 # Now try BSD make style include.
959 if test "$am__include" = "#"; then
960 echo '.include "confinc"' > confmf
961 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
962 am__include=.include
963 am__quote="\""
964 _am_result=BSD
965 fi
966 fi
967 AC_SUBST([am__include])
968 AC_SUBST([am__quote])
969 AC_MSG_RESULT([$_am_result])
970 rm -f confinc confmf
971 ])
972
973 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
974
975 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
976 # Free Software Foundation, Inc.
977 #
978 # This file is free software; the Free Software Foundation
979 # gives unlimited permission to copy and/or distribute it,
980 # with or without modifications, as long as this notice is preserved.
981
982 # serial 5
983
984 # AM_MISSING_PROG(NAME, PROGRAM)
985 # ------------------------------
986 AC_DEFUN([AM_MISSING_PROG],
987 [AC_REQUIRE([AM_MISSING_HAS_RUN])
988 $1=${$1-"${am_missing_run}$2"}
989 AC_SUBST($1)])
990
991
992 # AM_MISSING_HAS_RUN
993 # ------------------
994 # Define MISSING if not defined so far and test if it supports --run.
995 # If it does, set am_missing_run to use it, otherwise, to nothing.
996 AC_DEFUN([AM_MISSING_HAS_RUN],
997 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
998 AC_REQUIRE_AUX_FILE([missing])dnl
999 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1000 # Use eval to expand $SHELL
1001 if eval "$MISSING --run true"; then
1002 am_missing_run="$MISSING --run "
1003 else
1004 am_missing_run=
1005 AC_MSG_WARN([`missing' script is too old or missing])
1006 fi
1007 ])
1008
1009 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1010 #
1011 # This file is free software; the Free Software Foundation
1012 # gives unlimited permission to copy and/or distribute it,
1013 # with or without modifications, as long as this notice is preserved.
1014
1015 # AM_PROG_MKDIR_P
1016 # ---------------
1017 # Check for `mkdir -p'.
1018 AC_DEFUN([AM_PROG_MKDIR_P],
1019 [AC_PREREQ([2.60])dnl
1020 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1021 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1022 dnl while keeping a definition of mkdir_p for backward compatibility.
1023 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1024 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1025 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1026 dnl adjustment using top_builddir (which is defined more often than
1027 dnl MKDIR_P).
1028 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1029 case $mkdir_p in
1030 [[\\/$]]* | ?:[[\\/]]*) ;;
1031 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1032 esac
1033 ])
1034
1035 # Helper functions for option handling. -*- Autoconf -*-
1036
1037 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1038 #
1039 # This file is free software; the Free Software Foundation
1040 # gives unlimited permission to copy and/or distribute it,
1041 # with or without modifications, as long as this notice is preserved.
1042
1043 # serial 3
1044
1045 # _AM_MANGLE_OPTION(NAME)
1046 # -----------------------
1047 AC_DEFUN([_AM_MANGLE_OPTION],
1048 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1049
1050 # _AM_SET_OPTION(NAME)
1051 # ------------------------------
1052 # Set option NAME. Presently that only means defining a flag for this option.
1053 AC_DEFUN([_AM_SET_OPTION],
1054 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1055
1056 # _AM_SET_OPTIONS(OPTIONS)
1057 # ----------------------------------
1058 # OPTIONS is a space-separated list of Automake options.
1059 AC_DEFUN([_AM_SET_OPTIONS],
1060 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1061
1062 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1063 # -------------------------------------------
1064 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1065 AC_DEFUN([_AM_IF_OPTION],
1066 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1067
1068 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1069
1070 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1071 # Free Software Foundation, Inc.
1072 #
1073 # This file is free software; the Free Software Foundation
1074 # gives unlimited permission to copy and/or distribute it,
1075 # with or without modifications, as long as this notice is preserved.
1076
1077 # serial 4
1078
1079 # AM_SANITY_CHECK
1080 # ---------------
1081 AC_DEFUN([AM_SANITY_CHECK],
1082 [AC_MSG_CHECKING([whether build environment is sane])
1083 # Just in case
1084 sleep 1
1085 echo timestamp > conftest.file
1086 # Do `set' in a subshell so we don't clobber the current shell's
1087 # arguments. Must try -L first in case configure is actually a
1088 # symlink; some systems play weird games with the mod time of symlinks
1089 # (eg FreeBSD returns the mod time of the symlink's containing
1090 # directory).
1091 if (
1092 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1093 if test "$[*]" = "X"; then
1094 # -L didn't work.
1095 set X `ls -t $srcdir/configure conftest.file`
1096 fi
1097 rm -f conftest.file
1098 if test "$[*]" != "X $srcdir/configure conftest.file" \
1099 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1100
1101 # If neither matched, then we have a broken ls. This can happen
1102 # if, for instance, CONFIG_SHELL is bash and it inherits a
1103 # broken ls alias from the environment. This has actually
1104 # happened. Such a system could not be considered "sane".
1105 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1106 alias in your environment])
1107 fi
1108
1109 test "$[2]" = conftest.file
1110 )
1111 then
1112 # Ok.
1113 :
1114 else
1115 AC_MSG_ERROR([newly created file is older than distributed files!
1116 Check your system clock])
1117 fi
1118 AC_MSG_RESULT(yes)])
1119
1120 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1121 #
1122 # This file is free software; the Free Software Foundation
1123 # gives unlimited permission to copy and/or distribute it,
1124 # with or without modifications, as long as this notice is preserved.
1125
1126 # AM_PROG_INSTALL_STRIP
1127 # ---------------------
1128 # One issue with vendor `install' (even GNU) is that you can't
1129 # specify the program used to strip binaries. This is especially
1130 # annoying in cross-compiling environments, where the build's strip
1131 # is unlikely to handle the host's binaries.
1132 # Fortunately install-sh will honor a STRIPPROG variable, so we
1133 # always use install-sh in `make install-strip', and initialize
1134 # STRIPPROG with the value of the STRIP variable (set by the user).
1135 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1136 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1137 # Installed binaries are usually stripped using `strip' when the user
1138 # run `make install-strip'. However `strip' might not be the right
1139 # tool to use in cross-compilation environments, therefore Automake
1140 # will honor the `STRIP' environment variable to overrule this program.
1141 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1142 if test "$cross_compiling" != no; then
1143 AC_CHECK_TOOL([STRIP], [strip], :)
1144 fi
1145 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1146 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1147
1148 # Copyright (C) 2006 Free Software Foundation, Inc.
1149 #
1150 # This file is free software; the Free Software Foundation
1151 # gives unlimited permission to copy and/or distribute it,
1152 # with or without modifications, as long as this notice is preserved.
1153
1154 # _AM_SUBST_NOTMAKE(VARIABLE)
1155 # ---------------------------
1156 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1157 # This macro is traced by Automake.
1158 AC_DEFUN([_AM_SUBST_NOTMAKE])
1159
1160 # Check how to create a tarball. -*- Autoconf -*-
1161
1162 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1163 #
1164 # This file is free software; the Free Software Foundation
1165 # gives unlimited permission to copy and/or distribute it,
1166 # with or without modifications, as long as this notice is preserved.
1167
1168 # serial 2
1169
1170 # _AM_PROG_TAR(FORMAT)
1171 # --------------------
1172 # Check how to create a tarball in format FORMAT.
1173 # FORMAT should be one of `v7', `ustar', or `pax'.
1174 #
1175 # Substitute a variable $(am__tar) that is a command
1176 # writing to stdout a FORMAT-tarball containing the directory
1177 # $tardir.
1178 # tardir=directory && $(am__tar) > result.tar
1179 #
1180 # Substitute a variable $(am__untar) that extract such
1181 # a tarball read from stdin.
1182 # $(am__untar) < result.tar
1183 AC_DEFUN([_AM_PROG_TAR],
1184 [# Always define AMTAR for backward compatibility.
1185 AM_MISSING_PROG([AMTAR], [tar])
1186 m4_if([$1], [v7],
1187 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1188 [m4_case([$1], [ustar],, [pax],,
1189 [m4_fatal([Unknown tar format])])
1190 AC_MSG_CHECKING([how to create a $1 tar archive])
1191 # Loop over all known methods to create a tar archive until one works.
1192 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1193 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1194 # Do not fold the above two line into one, because Tru64 sh and
1195 # Solaris sh will not grok spaces in the rhs of `-'.
1196 for _am_tool in $_am_tools
1197 do
1198 case $_am_tool in
1199 gnutar)
1200 for _am_tar in tar gnutar gtar;
1201 do
1202 AM_RUN_LOG([$_am_tar --version]) && break
1203 done
1204 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1205 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1206 am__untar="$_am_tar -xf -"
1207 ;;
1208 plaintar)
1209 # Must skip GNU tar: if it does not support --format= it doesn't create
1210 # ustar tarball either.
1211 (tar --version) >/dev/null 2>&1 && continue
1212 am__tar='tar chf - "$$tardir"'
1213 am__tar_='tar chf - "$tardir"'
1214 am__untar='tar xf -'
1215 ;;
1216 pax)
1217 am__tar='pax -L -x $1 -w "$$tardir"'
1218 am__tar_='pax -L -x $1 -w "$tardir"'
1219 am__untar='pax -r'
1220 ;;
1221 cpio)
1222 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1223 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1224 am__untar='cpio -i -H $1 -d'
1225 ;;
1226 none)
1227 am__tar=false
1228 am__tar_=false
1229 am__untar=false
1230 ;;
1231 esac
1232
1233 # If the value was cached, stop now. We just wanted to have am__tar
1234 # and am__untar set.
1235 test -n "${am_cv_prog_tar_$1}" && break
1236
1237 # tar/untar a dummy directory, and stop if the command works
1238 rm -rf conftest.dir
1239 mkdir conftest.dir
1240 echo GrepMe > conftest.dir/file
1241 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1242 rm -rf conftest.dir
1243 if test -s conftest.tar; then
1244 AM_RUN_LOG([$am__untar <conftest.tar])
1245 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1246 fi
1247 done
1248 rm -rf conftest.dir
1249
1250 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1251 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1252 AC_SUBST([am__tar])
1253 AC_SUBST([am__untar])
1254 ]) # _AM_PROG_TAR
1255