Initial release of Maemo 5 port of gnuplot
[gnuplot] / lisp / aclocal.m4
1 # generated automatically by aclocal 1.8.5 -*- Autoconf -*-
2
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.
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 #                                                        -*- Autoconf -*-
15 # Copyright (C) 2002, 2003  Free Software Foundation, Inc.
16 # Generated from amversion.in; do not edit by hand.
17
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.
22
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.
27
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
31
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"])
37
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.5])])
44
45 # AM_AUX_DIR_EXPAND
46
47 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
48
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.
53
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.
58
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.
63
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/../..'.
67 #
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.
75 #
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
82 #
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.
87 #
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.
97 #
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.
101
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`
107 ])
108
109 # Do all the work for Automake.                            -*- Autoconf -*-
110
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.
113
114 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
115 # Free Software Foundation, Inc.
116
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.
121
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.
126
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.
131
132 # serial 11
133
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])
156 fi
157
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
165 fi
166 AC_SUBST([CYGPATH_W])
167
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
177
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
181
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
199
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
209 ])
210 ])
211
212
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.
216
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])
232
233 # AM_PROG_INSTALL_SH
234 # ------------------
235 # Define $install_sh.
236
237 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
238
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.
243
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.
248
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.
253
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)])
258
259 #                                                          -*- Autoconf -*-
260 # Copyright (C) 2003  Free Software Foundation, Inc.
261
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.
266
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.
271
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.
276
277 # serial 1
278
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=_
288 fi
289 rmdir .tst 2>/dev/null
290 AC_SUBST([am__leading_dot])])
291
292
293 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
294 # Free Software Foundation, Inc.
295
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.
300
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.
305
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.
310
311 # serial 8
312
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])],
327  [
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"
348 ])
349 AC_SUBST([lispdir])
350 ])# AM_PATH_LISPDIR
351
352 AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
353
354 #  -*- Autoconf -*-
355
356
357 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
358
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.
363
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.
368
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.
373
374 # serial 3
375
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)])
382
383
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])
397 fi
398 ])
399
400 # AM_PROG_MKDIR_P
401 # ---------------
402 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
403
404 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
405
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.
410
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.
415
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.
420
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).
428 #
429 # Do not use -m 0755 and let people choose whatever they expect by
430 # setting umask.
431 #
432 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
433 # Some implementations (such as Solaris 8's) are not thread-safe: if a
434 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
435 # concurrently, both version can detect that a/ is missing, but only
436 # one can create it and the other will error out.  Consequently we
437 # restrict ourselves to GNU make (using the --version option ensures
438 # this.)
439 AC_DEFUN([AM_PROG_MKDIR_P],
440 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
441   # Keeping the `.' argument allows $(mkdir_p) to be used without
442   # argument.  Indeed, we sometimes output rules like
443   #   $(mkdir_p) $(somedir)
444   # where $(somedir) is conditionally defined.
445   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
446   # expensive solution, as it forces Make to start a sub-shell.)
447   mkdir_p='mkdir -p -- .'
448 else
449   # On NextStep and OpenStep, the `mkdir' command does not
450   # recognize any option.  It will interpret all options as
451   # directories to create, and then abort because `.' already
452   # exists.
453   for d in ./-p ./--version;
454   do
455     test -d $d && rmdir $d
456   done
457   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
458   if test -f "$ac_aux_dir/mkinstalldirs"; then
459     mkdir_p='$(mkinstalldirs)'
460   else
461     mkdir_p='$(install_sh) -d'
462   fi
463 fi
464 AC_SUBST([mkdir_p])])
465
466 # Helper functions for option handling.                    -*- Autoconf -*-
467
468 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
469
470 # This program is free software; you can redistribute it and/or modify
471 # it under the terms of the GNU General Public License as published by
472 # the Free Software Foundation; either version 2, or (at your option)
473 # any later version.
474
475 # This program is distributed in the hope that it will be useful,
476 # but WITHOUT ANY WARRANTY; without even the implied warranty of
477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
478 # GNU General Public License for more details.
479
480 # You should have received a copy of the GNU General Public License
481 # along with this program; if not, write to the Free Software
482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
483 # 02111-1307, USA.
484
485 # serial 2
486
487 # _AM_MANGLE_OPTION(NAME)
488 # -----------------------
489 AC_DEFUN([_AM_MANGLE_OPTION],
490 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
491
492 # _AM_SET_OPTION(NAME)
493 # ------------------------------
494 # Set option NAME.  Presently that only means defining a flag for this option.
495 AC_DEFUN([_AM_SET_OPTION],
496 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
497
498 # _AM_SET_OPTIONS(OPTIONS)
499 # ----------------------------------
500 # OPTIONS is a space-separated list of Automake options.
501 AC_DEFUN([_AM_SET_OPTIONS],
502 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
503
504 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
505 # -------------------------------------------
506 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
507 AC_DEFUN([_AM_IF_OPTION],
508 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
509
510 #
511 # Check to make sure that the build environment is sane.
512 #
513
514 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
515
516 # This program is free software; you can redistribute it and/or modify
517 # it under the terms of the GNU General Public License as published by
518 # the Free Software Foundation; either version 2, or (at your option)
519 # any later version.
520
521 # This program is distributed in the hope that it will be useful,
522 # but WITHOUT ANY WARRANTY; without even the implied warranty of
523 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
524 # GNU General Public License for more details.
525
526 # You should have received a copy of the GNU General Public License
527 # along with this program; if not, write to the Free Software
528 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
529 # 02111-1307, USA.
530
531 # serial 3
532
533 # AM_SANITY_CHECK
534 # ---------------
535 AC_DEFUN([AM_SANITY_CHECK],
536 [AC_MSG_CHECKING([whether build environment is sane])
537 # Just in case
538 sleep 1
539 echo timestamp > conftest.file
540 # Do `set' in a subshell so we don't clobber the current shell's
541 # arguments.  Must try -L first in case configure is actually a
542 # symlink; some systems play weird games with the mod time of symlinks
543 # (eg FreeBSD returns the mod time of the symlink's containing
544 # directory).
545 if (
546    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
547    if test "$[*]" = "X"; then
548       # -L didn't work.
549       set X `ls -t $srcdir/configure conftest.file`
550    fi
551    rm -f conftest.file
552    if test "$[*]" != "X $srcdir/configure conftest.file" \
553       && test "$[*]" != "X conftest.file $srcdir/configure"; then
554
555       # If neither matched, then we have a broken ls.  This can happen
556       # if, for instance, CONFIG_SHELL is bash and it inherits a
557       # broken ls alias from the environment.  This has actually
558       # happened.  Such a system could not be considered "sane".
559       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
560 alias in your environment])
561    fi
562
563    test "$[2]" = conftest.file
564    )
565 then
566    # Ok.
567    :
568 else
569    AC_MSG_ERROR([newly created file is older than distributed files!
570 Check your system clock])
571 fi
572 AC_MSG_RESULT(yes)])
573
574 # AM_PROG_INSTALL_STRIP
575
576 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
577
578 # This program is free software; you can redistribute it and/or modify
579 # it under the terms of the GNU General Public License as published by
580 # the Free Software Foundation; either version 2, or (at your option)
581 # any later version.
582
583 # This program is distributed in the hope that it will be useful,
584 # but WITHOUT ANY WARRANTY; without even the implied warranty of
585 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
586 # GNU General Public License for more details.
587
588 # You should have received a copy of the GNU General Public License
589 # along with this program; if not, write to the Free Software
590 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
591 # 02111-1307, USA.
592
593 # One issue with vendor `install' (even GNU) is that you can't
594 # specify the program used to strip binaries.  This is especially
595 # annoying in cross-compiling environments, where the build's strip
596 # is unlikely to handle the host's binaries.
597 # Fortunately install-sh will honor a STRIPPROG variable, so we
598 # always use install-sh in `make install-strip', and initialize
599 # STRIPPROG with the value of the STRIP variable (set by the user).
600 AC_DEFUN([AM_PROG_INSTALL_STRIP],
601 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
602 # Installed binaries are usually stripped using `strip' when the user
603 # run `make install-strip'.  However `strip' might not be the right
604 # tool to use in cross-compilation environments, therefore Automake
605 # will honor the `STRIP' environment variable to overrule this program.
606 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
607 if test "$cross_compiling" != no; then
608   AC_CHECK_TOOL([STRIP], [strip], :)
609 fi
610 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
611 AC_SUBST([INSTALL_STRIP_PROGRAM])])
612