* lib/autoconf/programs.m4 (AC_PROG_GREP): New macro to test for a
[autoconf.git] / aclocal.m4
blobc62807e70ba2aab1d204f91ec85cf73305303eba
1 # generated automatically by aclocal 1.8.2 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4 # 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.
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.
14 #                                                        -*- Autoconf -*-
15 # Copyright (C) 2002, 2003  Free Software Foundation, Inc.
16 # Generated from amversion.in; do not edit by hand.
18 # This program is free software; you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 # the Free Software Foundation; either version 2, or (at your option)
21 # any later version.
23 # This program is distributed in the hope that it will be useful,
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26 # GNU General Public License for more details.
28 # You should have received a copy of the GNU General Public License
29 # along with this program; if not, write to the Free Software
30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
32 # AM_AUTOMAKE_VERSION(VERSION)
33 # ----------------------------
34 # Automake X.Y traces this macro to ensure aclocal.m4 has been
35 # generated from the m4 files accompanying Automake X.Y.
36 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
38 # AM_SET_CURRENT_AUTOMAKE_VERSION
39 # -------------------------------
40 # Call AM_AUTOMAKE_VERSION so it can be traced.
41 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43          [AM_AUTOMAKE_VERSION([1.8.2])])
45 # AM_AUX_DIR_EXPAND
47 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
49 # This program is free software; you can redistribute it and/or modify
50 # it under the terms of the GNU General Public License as published by
51 # the Free Software Foundation; either version 2, or (at your option)
52 # any later version.
54 # This program is distributed in the hope that it will be useful,
55 # but WITHOUT ANY WARRANTY; without even the implied warranty of
56 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57 # GNU General Public License for more details.
59 # You should have received a copy of the GNU General Public License
60 # along with this program; if not, write to the Free Software
61 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
62 # 02111-1307, USA.
64 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
65 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
66 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
68 # Of course, Automake must honor this variable whenever it calls a
69 # tool from the auxiliary directory.  The problem is that $srcdir (and
70 # therefore $ac_aux_dir as well) can be either absolute or relative,
71 # depending on how configure is run.  This is pretty annoying, since
72 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
73 # source directory, any form will work fine, but in subdirectories a
74 # relative path needs to be adjusted first.
76 # $ac_aux_dir/missing
77 #    fails when called from a subdirectory if $ac_aux_dir is relative
78 # $top_srcdir/$ac_aux_dir/missing
79 #    fails if $ac_aux_dir is absolute,
80 #    fails when called from a subdirectory in a VPATH build with
81 #          a relative $ac_aux_dir
83 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
84 # are both prefixed by $srcdir.  In an in-source build this is usually
85 # harmless because $srcdir is `.', but things will broke when you
86 # start a VPATH build or use an absolute $srcdir.
88 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
89 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
90 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
91 # and then we would define $MISSING as
92 #   MISSING="\${SHELL} $am_aux_dir/missing"
93 # This will work as long as MISSING is not called from configure, because
94 # unfortunately $(top_srcdir) has no meaning in configure.
95 # However there are other variables, like CC, which are often used in
96 # configure, and could therefore not use this "fixed" $ac_aux_dir.
98 # Another solution, used here, is to always expand $ac_aux_dir to an
99 # absolute PATH.  The drawback is that using absolute paths prevent a
100 # configured tree to be moved without reconfiguration.
102 AC_DEFUN([AM_AUX_DIR_EXPAND],
103 [dnl Rely on autoconf to set up CDPATH properly.
104 AC_PREREQ([2.50])dnl
105 # expand $ac_aux_dir to an absolute path
106 am_aux_dir=`cd $ac_aux_dir && pwd`
109 # Do all the work for Automake.                            -*- Autoconf -*-
111 # This macro actually does too much some checks are only needed if
112 # your package does certain things.  But this isn't really a big deal.
114 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
115 # Free Software Foundation, Inc.
117 # This program is free software; you can redistribute it and/or modify
118 # it under the terms of the GNU General Public License as published by
119 # the Free Software Foundation; either version 2, or (at your option)
120 # any later version.
122 # This program is distributed in the hope that it will be useful,
123 # but WITHOUT ANY WARRANTY; without even the implied warranty of
124 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
125 # GNU General Public License for more details.
127 # You should have received a copy of the GNU General Public License
128 # along with this program; if not, write to the Free Software
129 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
130 # 02111-1307, USA.
132 # serial 11
134 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
135 # AM_INIT_AUTOMAKE([OPTIONS])
136 # -----------------------------------------------
137 # The call with PACKAGE and VERSION arguments is the old style
138 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
139 # and VERSION should now be passed to AC_INIT and removed from
140 # the call to AM_INIT_AUTOMAKE.
141 # We support both call styles for the transition.  After
142 # the next Automake release, Autoconf can make the AC_INIT
143 # arguments mandatory, and then we can depend on a new Autoconf
144 # release and drop the old call support.
145 AC_DEFUN([AM_INIT_AUTOMAKE],
146 [AC_PREREQ([2.58])dnl
147 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
148 dnl the ones we care about.
149 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
150 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
151 AC_REQUIRE([AC_PROG_INSTALL])dnl
152 # test to see if srcdir already configured
153 if test "`cd $srcdir && pwd`" != "`pwd`" &&
154    test -f $srcdir/config.status; then
155   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
158 # test whether we have cygpath
159 if test -z "$CYGPATH_W"; then
160   if (cygpath --version) >/dev/null 2>/dev/null; then
161     CYGPATH_W='cygpath -w'
162   else
163     CYGPATH_W=echo
164   fi
166 AC_SUBST([CYGPATH_W])
168 # Define the identity of the package.
169 dnl Distinguish between old-style and new-style calls.
170 m4_ifval([$2],
171 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
172  AC_SUBST([PACKAGE], [$1])dnl
173  AC_SUBST([VERSION], [$2])],
174 [_AM_SET_OPTIONS([$1])dnl
175  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
176  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
178 _AM_IF_OPTION([no-define],,
179 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
180  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
182 # Some tools Automake needs.
183 AC_REQUIRE([AM_SANITY_CHECK])dnl
184 AC_REQUIRE([AC_ARG_PROGRAM])dnl
185 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
186 AM_MISSING_PROG(AUTOCONF, autoconf)
187 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
188 AM_MISSING_PROG(AUTOHEADER, autoheader)
189 AM_MISSING_PROG(MAKEINFO, makeinfo)
190 AM_MISSING_PROG(AMTAR, tar)
191 AM_PROG_INSTALL_SH
192 AM_PROG_INSTALL_STRIP
193 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
194 # We need awk for the "check" target.  The system "awk" is bad on
195 # some platforms.
196 AC_REQUIRE([AC_PROG_AWK])dnl
197 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
198 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
200 _AM_IF_OPTION([no-dependencies],,
201 [AC_PROVIDE_IFELSE([AC_PROG_CC],
202                   [_AM_DEPENDENCIES(CC)],
203                   [define([AC_PROG_CC],
204                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
205 AC_PROVIDE_IFELSE([AC_PROG_CXX],
206                   [_AM_DEPENDENCIES(CXX)],
207                   [define([AC_PROG_CXX],
208                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
213 # When config.status generates a header, we must update the stamp-h file.
214 # This file resides in the same directory as the config header
215 # that is generated.  The stamp files are numbered to have different names.
217 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
218 # loop where config.status creates the headers, so we can generate
219 # our stamp files there.
220 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
221 [# Compute $1's index in $config_headers.
222 _am_stamp_count=1
223 for _am_header in $config_headers :; do
224   case $_am_header in
225     $1 | $1:* )
226       break ;;
227     * )
228       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
229   esac
230 done
231 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
233 # AM_PROG_INSTALL_SH
234 # ------------------
235 # Define $install_sh.
237 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
239 # This program is free software; you can redistribute it and/or modify
240 # it under the terms of the GNU General Public License as published by
241 # the Free Software Foundation; either version 2, or (at your option)
242 # any later version.
244 # This program is distributed in the hope that it will be useful,
245 # but WITHOUT ANY WARRANTY; without even the implied warranty of
246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
247 # GNU General Public License for more details.
249 # You should have received a copy of the GNU General Public License
250 # along with this program; if not, write to the Free Software
251 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
252 # 02111-1307, USA.
254 AC_DEFUN([AM_PROG_INSTALL_SH],
255 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
256 install_sh=${install_sh-"$am_aux_dir/install-sh"}
257 AC_SUBST(install_sh)])
259 #                                                          -*- Autoconf -*-
260 # Copyright (C) 2003  Free Software Foundation, Inc.
262 # This program is free software; you can redistribute it and/or modify
263 # it under the terms of the GNU General Public License as published by
264 # the Free Software Foundation; either version 2, or (at your option)
265 # any later version.
267 # This program is distributed in the hope that it will be useful,
268 # but WITHOUT ANY WARRANTY; without even the implied warranty of
269 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
270 # GNU General Public License for more details.
272 # You should have received a copy of the GNU General Public License
273 # along with this program; if not, write to the Free Software
274 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
275 # 02111-1307, USA.
277 # serial 1
279 # Check whether the underlying file-system supports filenames
280 # with a leading dot.  For instance MS-DOS doesn't.
281 AC_DEFUN([AM_SET_LEADING_DOT],
282 [rm -rf .tst 2>/dev/null
283 mkdir .tst 2>/dev/null
284 if test -d .tst; then
285   am__leading_dot=.
286 else
287   am__leading_dot=_
289 rmdir .tst 2>/dev/null
290 AC_SUBST([am__leading_dot])])
293 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
294 # Free Software Foundation, Inc.
296 # This program is free software; you can redistribute it and/or modify
297 # it under the terms of the GNU General Public License as published by
298 # the Free Software Foundation; either version 2, or (at your option)
299 # any later version.
301 # This program is distributed in the hope that it will be useful,
302 # but WITHOUT ANY WARRANTY; without even the implied warranty of
303 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304 # GNU General Public License for more details.
306 # You should have received a copy of the GNU General Public License
307 # along with this program; if not, write to the Free Software
308 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
309 # 02111-1307, USA.
311 # serial 8
313 # AM_PATH_LISPDIR
314 # ---------------
315 AC_DEFUN([AM_PATH_LISPDIR],
316 [ # If set to t, that means we are running in a shell under Emacs.
317  # If you have an Emacs named "t", then use the full path.
318  test x"$EMACS" = xt && EMACS=
319  AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
320  AC_ARG_VAR([EMACS], [the Emacs editor command])
321  AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
322  AC_ARG_WITH([lispdir],
323  [  --with-lispdir          override the default lisp directory],
324  [ lispdir="$withval"
325    AC_MSG_CHECKING([where .elc files should go])
326    AC_MSG_RESULT([$lispdir])],
328  AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
329    if test $EMACS != "no"; then
330      if test x${lispdir+set} != xset; then
331   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
332   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
333   #  which is non-obvious for non-emacs users.
334   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
335   #  emacsen earlier and avoid running this altogether.
336   AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
337         am_cv_lispdir=`sed -n \
338        -e 's,/$,,' \
339        -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
340        -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datadir}/\1,;p;q;}' \
341        conftest.out`
342        rm conftest.out
343      fi
344    fi
345    test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
346   ])
347   lispdir="$am_cv_lispdir"
349 AC_SUBST([lispdir])
350 ])# AM_PATH_LISPDIR
352 AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
354 #  -*- Autoconf -*-
357 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
359 # This program is free software; you can redistribute it and/or modify
360 # it under the terms of the GNU General Public License as published by
361 # the Free Software Foundation; either version 2, or (at your option)
362 # any later version.
364 # This program is distributed in the hope that it will be useful,
365 # but WITHOUT ANY WARRANTY; without even the implied warranty of
366 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
367 # GNU General Public License for more details.
369 # You should have received a copy of the GNU General Public License
370 # along with this program; if not, write to the Free Software
371 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
372 # 02111-1307, USA.
374 # serial 3
376 # AM_MISSING_PROG(NAME, PROGRAM)
377 # ------------------------------
378 AC_DEFUN([AM_MISSING_PROG],
379 [AC_REQUIRE([AM_MISSING_HAS_RUN])
380 $1=${$1-"${am_missing_run}$2"}
381 AC_SUBST($1)])
384 # AM_MISSING_HAS_RUN
385 # ------------------
386 # Define MISSING if not defined so far and test if it supports --run.
387 # If it does, set am_missing_run to use it, otherwise, to nothing.
388 AC_DEFUN([AM_MISSING_HAS_RUN],
389 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
390 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
391 # Use eval to expand $SHELL
392 if eval "$MISSING --run true"; then
393   am_missing_run="$MISSING --run "
394 else
395   am_missing_run=
396   AC_MSG_WARN([`missing' script is too old or missing])
400 # AM_PROG_MKDIR_P
401 # ---------------
402 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
404 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
406 # This program is free software; you can redistribute it and/or modify
407 # it under the terms of the GNU General Public License as published by
408 # the Free Software Foundation; either version 2, or (at your option)
409 # any later version.
411 # This program is distributed in the hope that it will be useful,
412 # but WITHOUT ANY WARRANTY; without even the implied warranty of
413 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
414 # GNU General Public License for more details.
416 # You should have received a copy of the GNU General Public License
417 # along with this program; if not, write to the Free Software
418 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
419 # 02111-1307, USA.
421 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
422 # created by `make install' are always world readable, even if the
423 # installer happens to have an overly restrictive umask (e.g. 077).
424 # This was a mistake.  There are at least two reasons why we must not
425 # use `-m 0755':
426 #   - it causes special bits like SGID to be ignored,
427 #   - it may be too restrictive (some setups expect 775 directories).
429 # Do not use -m 0755 and let people choose whatever they expect by
430 # setting umask.
431 AC_DEFUN([AM_PROG_MKDIR_P],
432 [if mkdir -p -- . 2>/dev/null; then
433   # Keeping the `.' argument allows $(mkdir_p) to be used without
434   # argument.  Indeed, we sometimes output rules like
435   #   $(mkdir_p) $(somedir)
436   # where $(somedir) is conditionally defined.
437   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
438   # expensive solution, as it forces Make to start a sub-shell.)
439   mkdir_p='mkdir -p -- .'
440 else
441   # On NextStep and OpenStep, the `mkdir' command does not
442   # recognize any option.  It will interpret all options as
443   # directories to create, and then abort because `.' already
444   # exists.
445   for d in ./-p ./--;
446   do
447     test -d $d && rmdir $d
448   done
449   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
450   if test -f "$ac_aux_dir/mkinstalldirs"; then
451     mkdir_p='$(mkinstalldirs)'
452   else
453     mkdir_p='$(install_sh) -d'
454   fi
456 AC_SUBST([mkdir_p])])
458 # Helper functions for option handling.                    -*- Autoconf -*-
460 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
462 # This program is free software; you can redistribute it and/or modify
463 # it under the terms of the GNU General Public License as published by
464 # the Free Software Foundation; either version 2, or (at your option)
465 # any later version.
467 # This program is distributed in the hope that it will be useful,
468 # but WITHOUT ANY WARRANTY; without even the implied warranty of
469 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
470 # GNU General Public License for more details.
472 # You should have received a copy of the GNU General Public License
473 # along with this program; if not, write to the Free Software
474 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
475 # 02111-1307, USA.
477 # serial 2
479 # _AM_MANGLE_OPTION(NAME)
480 # -----------------------
481 AC_DEFUN([_AM_MANGLE_OPTION],
482 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
484 # _AM_SET_OPTION(NAME)
485 # ------------------------------
486 # Set option NAME.  Presently that only means defining a flag for this option.
487 AC_DEFUN([_AM_SET_OPTION],
488 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
490 # _AM_SET_OPTIONS(OPTIONS)
491 # ----------------------------------
492 # OPTIONS is a space-separated list of Automake options.
493 AC_DEFUN([_AM_SET_OPTIONS],
494 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
496 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
497 # -------------------------------------------
498 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
499 AC_DEFUN([_AM_IF_OPTION],
500 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
503 # Check to make sure that the build environment is sane.
506 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
508 # This program is free software; you can redistribute it and/or modify
509 # it under the terms of the GNU General Public License as published by
510 # the Free Software Foundation; either version 2, or (at your option)
511 # any later version.
513 # This program is distributed in the hope that it will be useful,
514 # but WITHOUT ANY WARRANTY; without even the implied warranty of
515 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
516 # GNU General Public License for more details.
518 # You should have received a copy of the GNU General Public License
519 # along with this program; if not, write to the Free Software
520 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
521 # 02111-1307, USA.
523 # serial 3
525 # AM_SANITY_CHECK
526 # ---------------
527 AC_DEFUN([AM_SANITY_CHECK],
528 [AC_MSG_CHECKING([whether build environment is sane])
529 # Just in case
530 sleep 1
531 echo timestamp > conftest.file
532 # Do `set' in a subshell so we don't clobber the current shell's
533 # arguments.  Must try -L first in case configure is actually a
534 # symlink; some systems play weird games with the mod time of symlinks
535 # (eg FreeBSD returns the mod time of the symlink's containing
536 # directory).
537 if (
538    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
539    if test "$[*]" = "X"; then
540       # -L didn't work.
541       set X `ls -t $srcdir/configure conftest.file`
542    fi
543    rm -f conftest.file
544    if test "$[*]" != "X $srcdir/configure conftest.file" \
545       && test "$[*]" != "X conftest.file $srcdir/configure"; then
547       # If neither matched, then we have a broken ls.  This can happen
548       # if, for instance, CONFIG_SHELL is bash and it inherits a
549       # broken ls alias from the environment.  This has actually
550       # happened.  Such a system could not be considered "sane".
551       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
552 alias in your environment])
553    fi
555    test "$[2]" = conftest.file
556    )
557 then
558    # Ok.
559    :
560 else
561    AC_MSG_ERROR([newly created file is older than distributed files!
562 Check your system clock])
564 AC_MSG_RESULT(yes)])
566 # AM_PROG_INSTALL_STRIP
568 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
570 # This program is free software; you can redistribute it and/or modify
571 # it under the terms of the GNU General Public License as published by
572 # the Free Software Foundation; either version 2, or (at your option)
573 # any later version.
575 # This program is distributed in the hope that it will be useful,
576 # but WITHOUT ANY WARRANTY; without even the implied warranty of
577 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
578 # GNU General Public License for more details.
580 # You should have received a copy of the GNU General Public License
581 # along with this program; if not, write to the Free Software
582 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
583 # 02111-1307, USA.
585 # One issue with vendor `install' (even GNU) is that you can't
586 # specify the program used to strip binaries.  This is especially
587 # annoying in cross-compiling environments, where the build's strip
588 # is unlikely to handle the host's binaries.
589 # Fortunately install-sh will honor a STRIPPROG variable, so we
590 # always use install-sh in `make install-strip', and initialize
591 # STRIPPROG with the value of the STRIP variable (set by the user).
592 AC_DEFUN([AM_PROG_INSTALL_STRIP],
593 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
594 # Installed binaries are usually stripped using `strip' when the user
595 # run `make install-strip'.  However `strip' might not be the right
596 # tool to use in cross-compilation environments, therefore Automake
597 # will honor the `STRIP' environment variable to overrule this program.
598 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
599 if test "$cross_compiling" != no; then
600   AC_CHECK_TOOL([STRIP], [strip], :)
602 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
603 AC_SUBST([INSTALL_STRIP_PROGRAM])])
605 m4_include([config/m4.m4])