source: trunk/third/gnome2-user-docs/aclocal.m4 @ 21068

Revision 21068, 23.5 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21067, which included commits to RCS files with non-trunk default branches.
Line 
1# generated automatically by aclocal 1.8.3 -*- 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.
36AC_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.
42AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43         [AM_AUTOMAKE_VERSION([1.8.3])])
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
102AC_DEFUN([AM_AUX_DIR_EXPAND],
103[dnl Rely on autoconf to set up CDPATH properly.
104AC_PREREQ([2.50])dnl
105# expand $ac_aux_dir to an absolute path
106am_aux_dir=`cd $ac_aux_dir && pwd`
107])
108
109# AM_CONDITIONAL                                              -*- Autoconf -*-
110
111# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
112
113# This program is free software; you can redistribute it and/or modify
114# it under the terms of the GNU General Public License as published by
115# the Free Software Foundation; either version 2, or (at your option)
116# any later version.
117
118# This program is distributed in the hope that it will be useful,
119# but WITHOUT ANY WARRANTY; without even the implied warranty of
120# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
121# GNU General Public License for more details.
122
123# You should have received a copy of the GNU General Public License
124# along with this program; if not, write to the Free Software
125# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
126# 02111-1307, USA.
127
128# serial 6
129
130# AM_CONDITIONAL(NAME, SHELL-CONDITION)
131# -------------------------------------
132# Define a conditional.
133AC_DEFUN([AM_CONDITIONAL],
134[AC_PREREQ(2.52)dnl
135 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
136        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
137AC_SUBST([$1_TRUE])
138AC_SUBST([$1_FALSE])
139if $2; then
140  $1_TRUE=
141  $1_FALSE='#'
142else
143  $1_TRUE='#'
144  $1_FALSE=
145fi
146AC_CONFIG_COMMANDS_PRE(
147[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148  AC_MSG_ERROR([conditional "$1" was never defined.
149Usually this means the macro was only invoked conditionally.])
150fi])])
151
152# Do all the work for Automake.                            -*- Autoconf -*-
153
154# This macro actually does too much some checks are only needed if
155# your package does certain things.  But this isn't really a big deal.
156
157# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
158# Free Software Foundation, Inc.
159
160# This program is free software; you can redistribute it and/or modify
161# it under the terms of the GNU General Public License as published by
162# the Free Software Foundation; either version 2, or (at your option)
163# any later version.
164
165# This program is distributed in the hope that it will be useful,
166# but WITHOUT ANY WARRANTY; without even the implied warranty of
167# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
168# GNU General Public License for more details.
169
170# You should have received a copy of the GNU General Public License
171# along with this program; if not, write to the Free Software
172# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
173# 02111-1307, USA.
174
175# serial 11
176
177# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
178# AM_INIT_AUTOMAKE([OPTIONS])
179# -----------------------------------------------
180# The call with PACKAGE and VERSION arguments is the old style
181# call (pre autoconf-2.50), which is being phased out.  PACKAGE
182# and VERSION should now be passed to AC_INIT and removed from
183# the call to AM_INIT_AUTOMAKE.
184# We support both call styles for the transition.  After
185# the next Automake release, Autoconf can make the AC_INIT
186# arguments mandatory, and then we can depend on a new Autoconf
187# release and drop the old call support.
188AC_DEFUN([AM_INIT_AUTOMAKE],
189[AC_PREREQ([2.58])dnl
190dnl Autoconf wants to disallow AM_ names.  We explicitly allow
191dnl the ones we care about.
192m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
193AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
194AC_REQUIRE([AC_PROG_INSTALL])dnl
195# test to see if srcdir already configured
196if test "`cd $srcdir && pwd`" != "`pwd`" &&
197   test -f $srcdir/config.status; then
198  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
199fi
200
201# test whether we have cygpath
202if test -z "$CYGPATH_W"; then
203  if (cygpath --version) >/dev/null 2>/dev/null; then
204    CYGPATH_W='cygpath -w'
205  else
206    CYGPATH_W=echo
207  fi
208fi
209AC_SUBST([CYGPATH_W])
210
211# Define the identity of the package.
212dnl Distinguish between old-style and new-style calls.
213m4_ifval([$2],
214[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
215 AC_SUBST([PACKAGE], [$1])dnl
216 AC_SUBST([VERSION], [$2])],
217[_AM_SET_OPTIONS([$1])dnl
218 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
219 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
220
221_AM_IF_OPTION([no-define],,
222[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
223 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
224
225# Some tools Automake needs.
226AC_REQUIRE([AM_SANITY_CHECK])dnl
227AC_REQUIRE([AC_ARG_PROGRAM])dnl
228AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
229AM_MISSING_PROG(AUTOCONF, autoconf)
230AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
231AM_MISSING_PROG(AUTOHEADER, autoheader)
232AM_MISSING_PROG(MAKEINFO, makeinfo)
233AM_MISSING_PROG(AMTAR, tar)
234AM_PROG_INSTALL_SH
235AM_PROG_INSTALL_STRIP
236AC_REQUIRE([AM_PROG_MKDIR_P])dnl
237# We need awk for the "check" target.  The system "awk" is bad on
238# some platforms.
239AC_REQUIRE([AC_PROG_AWK])dnl
240AC_REQUIRE([AC_PROG_MAKE_SET])dnl
241AC_REQUIRE([AM_SET_LEADING_DOT])dnl
242
243_AM_IF_OPTION([no-dependencies],,
244[AC_PROVIDE_IFELSE([AC_PROG_CC],
245                  [_AM_DEPENDENCIES(CC)],
246                  [define([AC_PROG_CC],
247                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
248AC_PROVIDE_IFELSE([AC_PROG_CXX],
249                  [_AM_DEPENDENCIES(CXX)],
250                  [define([AC_PROG_CXX],
251                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
252])
253])
254
255
256# When config.status generates a header, we must update the stamp-h file.
257# This file resides in the same directory as the config header
258# that is generated.  The stamp files are numbered to have different names.
259
260# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
261# loop where config.status creates the headers, so we can generate
262# our stamp files there.
263AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
264[# Compute $1's index in $config_headers.
265_am_stamp_count=1
266for _am_header in $config_headers :; do
267  case $_am_header in
268    $1 | $1:* )
269      break ;;
270    * )
271      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
272  esac
273done
274echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
275
276# AM_PROG_INSTALL_SH
277# ------------------
278# Define $install_sh.
279
280# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
281
282# This program is free software; you can redistribute it and/or modify
283# it under the terms of the GNU General Public License as published by
284# the Free Software Foundation; either version 2, or (at your option)
285# any later version.
286
287# This program is distributed in the hope that it will be useful,
288# but WITHOUT ANY WARRANTY; without even the implied warranty of
289# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
290# GNU General Public License for more details.
291
292# You should have received a copy of the GNU General Public License
293# along with this program; if not, write to the Free Software
294# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
295# 02111-1307, USA.
296
297AC_DEFUN([AM_PROG_INSTALL_SH],
298[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
299install_sh=${install_sh-"$am_aux_dir/install-sh"}
300AC_SUBST(install_sh)])
301
302#                                                          -*- Autoconf -*-
303# Copyright (C) 2003  Free Software Foundation, Inc.
304
305# This program is free software; you can redistribute it and/or modify
306# it under the terms of the GNU General Public License as published by
307# the Free Software Foundation; either version 2, or (at your option)
308# any later version.
309
310# This program is distributed in the hope that it will be useful,
311# but WITHOUT ANY WARRANTY; without even the implied warranty of
312# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
313# GNU General Public License for more details.
314
315# You should have received a copy of the GNU General Public License
316# along with this program; if not, write to the Free Software
317# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
318# 02111-1307, USA.
319
320# serial 1
321
322# Check whether the underlying file-system supports filenames
323# with a leading dot.  For instance MS-DOS doesn't.
324AC_DEFUN([AM_SET_LEADING_DOT],
325[rm -rf .tst 2>/dev/null
326mkdir .tst 2>/dev/null
327if test -d .tst; then
328  am__leading_dot=.
329else
330  am__leading_dot=_
331fi
332rmdir .tst 2>/dev/null
333AC_SUBST([am__leading_dot])])
334
335# Add --enable-maintainer-mode option to configure.
336# From Jim Meyering
337
338# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
339# Free Software Foundation, Inc.
340
341# This program is free software; you can redistribute it and/or modify
342# it under the terms of the GNU General Public License as published by
343# the Free Software Foundation; either version 2, or (at your option)
344# any later version.
345
346# This program is distributed in the hope that it will be useful,
347# but WITHOUT ANY WARRANTY; without even the implied warranty of
348# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
349# GNU General Public License for more details.
350
351# You should have received a copy of the GNU General Public License
352# along with this program; if not, write to the Free Software
353# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
354# 02111-1307, USA.
355
356# serial 3
357
358AC_DEFUN([AM_MAINTAINER_MODE],
359[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
360  dnl maintainer-mode is disabled by default
361  AC_ARG_ENABLE(maintainer-mode,
362[  --enable-maintainer-mode  enable make rules and dependencies not useful
363                          (and sometimes confusing) to the casual installer],
364      USE_MAINTAINER_MODE=$enableval,
365      USE_MAINTAINER_MODE=no)
366  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
367  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
368  MAINT=$MAINTAINER_MODE_TRUE
369  AC_SUBST(MAINT)dnl
370]
371)
372
373AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
374
375#  -*- Autoconf -*-
376
377
378# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
379
380# This program is free software; you can redistribute it and/or modify
381# it under the terms of the GNU General Public License as published by
382# the Free Software Foundation; either version 2, or (at your option)
383# any later version.
384
385# This program is distributed in the hope that it will be useful,
386# but WITHOUT ANY WARRANTY; without even the implied warranty of
387# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
388# GNU General Public License for more details.
389
390# You should have received a copy of the GNU General Public License
391# along with this program; if not, write to the Free Software
392# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
393# 02111-1307, USA.
394
395# serial 3
396
397# AM_MISSING_PROG(NAME, PROGRAM)
398# ------------------------------
399AC_DEFUN([AM_MISSING_PROG],
400[AC_REQUIRE([AM_MISSING_HAS_RUN])
401$1=${$1-"${am_missing_run}$2"}
402AC_SUBST($1)])
403
404
405# AM_MISSING_HAS_RUN
406# ------------------
407# Define MISSING if not defined so far and test if it supports --run.
408# If it does, set am_missing_run to use it, otherwise, to nothing.
409AC_DEFUN([AM_MISSING_HAS_RUN],
410[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
411test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
412# Use eval to expand $SHELL
413if eval "$MISSING --run true"; then
414  am_missing_run="$MISSING --run "
415else
416  am_missing_run=
417  AC_MSG_WARN([`missing' script is too old or missing])
418fi
419])
420
421# AM_PROG_MKDIR_P
422# ---------------
423# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
424
425# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
426
427# This program is free software; you can redistribute it and/or modify
428# it under the terms of the GNU General Public License as published by
429# the Free Software Foundation; either version 2, or (at your option)
430# any later version.
431
432# This program is distributed in the hope that it will be useful,
433# but WITHOUT ANY WARRANTY; without even the implied warranty of
434# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
435# GNU General Public License for more details.
436
437# You should have received a copy of the GNU General Public License
438# along with this program; if not, write to the Free Software
439# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
440# 02111-1307, USA.
441
442# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
443# created by `make install' are always world readable, even if the
444# installer happens to have an overly restrictive umask (e.g. 077).
445# This was a mistake.  There are at least two reasons why we must not
446# use `-m 0755':
447#   - it causes special bits like SGID to be ignored,
448#   - it may be too restrictive (some setups expect 775 directories).
449#
450# Do not use -m 0755 and let people choose whatever they expect by
451# setting umask.
452#
453# We cannot accept any implementation of `mkdir' that recognizes `-p'.
454# Some implementations (such as Solaris 8's) are not thread-safe: if a
455# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
456# concurrently, both version can detect that a/ is missing, but only
457# one can create it and the other will error out.  Consequently we
458# restrict ourselves to GNU make (using the --version option ensures
459# this.)
460AC_DEFUN([AM_PROG_MKDIR_P],
461[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
462  # Keeping the `.' argument allows $(mkdir_p) to be used without
463  # argument.  Indeed, we sometimes output rules like
464  #   $(mkdir_p) $(somedir)
465  # where $(somedir) is conditionally defined.
466  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
467  # expensive solution, as it forces Make to start a sub-shell.)
468  mkdir_p='mkdir -p -- .'
469else
470  # On NextStep and OpenStep, the `mkdir' command does not
471  # recognize any option.  It will interpret all options as
472  # directories to create, and then abort because `.' already
473  # exists.
474  for d in ./-p ./--version;
475  do
476    test -d $d && rmdir $d
477  done
478  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
479  if test -f "$ac_aux_dir/mkinstalldirs"; then
480    mkdir_p='$(mkinstalldirs)'
481  else
482    mkdir_p='$(install_sh) -d'
483  fi
484fi
485AC_SUBST([mkdir_p])])
486
487# Helper functions for option handling.                    -*- Autoconf -*-
488
489# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
490
491# This program is free software; you can redistribute it and/or modify
492# it under the terms of the GNU General Public License as published by
493# the Free Software Foundation; either version 2, or (at your option)
494# any later version.
495
496# This program is distributed in the hope that it will be useful,
497# but WITHOUT ANY WARRANTY; without even the implied warranty of
498# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
499# GNU General Public License for more details.
500
501# You should have received a copy of the GNU General Public License
502# along with this program; if not, write to the Free Software
503# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
504# 02111-1307, USA.
505
506# serial 2
507
508# _AM_MANGLE_OPTION(NAME)
509# -----------------------
510AC_DEFUN([_AM_MANGLE_OPTION],
511[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
512
513# _AM_SET_OPTION(NAME)
514# ------------------------------
515# Set option NAME.  Presently that only means defining a flag for this option.
516AC_DEFUN([_AM_SET_OPTION],
517[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
518
519# _AM_SET_OPTIONS(OPTIONS)
520# ----------------------------------
521# OPTIONS is a space-separated list of Automake options.
522AC_DEFUN([_AM_SET_OPTIONS],
523[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
524
525# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
526# -------------------------------------------
527# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
528AC_DEFUN([_AM_IF_OPTION],
529[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
530
531#
532# Check to make sure that the build environment is sane.
533#
534
535# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
536
537# This program is free software; you can redistribute it and/or modify
538# it under the terms of the GNU General Public License as published by
539# the Free Software Foundation; either version 2, or (at your option)
540# any later version.
541
542# This program is distributed in the hope that it will be useful,
543# but WITHOUT ANY WARRANTY; without even the implied warranty of
544# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
545# GNU General Public License for more details.
546
547# You should have received a copy of the GNU General Public License
548# along with this program; if not, write to the Free Software
549# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
550# 02111-1307, USA.
551
552# serial 3
553
554# AM_SANITY_CHECK
555# ---------------
556AC_DEFUN([AM_SANITY_CHECK],
557[AC_MSG_CHECKING([whether build environment is sane])
558# Just in case
559sleep 1
560echo timestamp > conftest.file
561# Do `set' in a subshell so we don't clobber the current shell's
562# arguments.  Must try -L first in case configure is actually a
563# symlink; some systems play weird games with the mod time of symlinks
564# (eg FreeBSD returns the mod time of the symlink's containing
565# directory).
566if (
567   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
568   if test "$[*]" = "X"; then
569      # -L didn't work.
570      set X `ls -t $srcdir/configure conftest.file`
571   fi
572   rm -f conftest.file
573   if test "$[*]" != "X $srcdir/configure conftest.file" \
574      && test "$[*]" != "X conftest.file $srcdir/configure"; then
575
576      # If neither matched, then we have a broken ls.  This can happen
577      # if, for instance, CONFIG_SHELL is bash and it inherits a
578      # broken ls alias from the environment.  This has actually
579      # happened.  Such a system could not be considered "sane".
580      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
581alias in your environment])
582   fi
583
584   test "$[2]" = conftest.file
585   )
586then
587   # Ok.
588   :
589else
590   AC_MSG_ERROR([newly created file is older than distributed files!
591Check your system clock])
592fi
593AC_MSG_RESULT(yes)])
594
595# AM_PROG_INSTALL_STRIP
596
597# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
598
599# This program is free software; you can redistribute it and/or modify
600# it under the terms of the GNU General Public License as published by
601# the Free Software Foundation; either version 2, or (at your option)
602# any later version.
603
604# This program is distributed in the hope that it will be useful,
605# but WITHOUT ANY WARRANTY; without even the implied warranty of
606# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
607# GNU General Public License for more details.
608
609# You should have received a copy of the GNU General Public License
610# along with this program; if not, write to the Free Software
611# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
612# 02111-1307, USA.
613
614# One issue with vendor `install' (even GNU) is that you can't
615# specify the program used to strip binaries.  This is especially
616# annoying in cross-compiling environments, where the build's strip
617# is unlikely to handle the host's binaries.
618# Fortunately install-sh will honor a STRIPPROG variable, so we
619# always use install-sh in `make install-strip', and initialize
620# STRIPPROG with the value of the STRIP variable (set by the user).
621AC_DEFUN([AM_PROG_INSTALL_STRIP],
622[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
623# Installed binaries are usually stripped using `strip' when the user
624# run `make install-strip'.  However `strip' might not be the right
625# tool to use in cross-compilation environments, therefore Automake
626# will honor the `STRIP' environment variable to overrule this program.
627dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
628if test "$cross_compiling" != no; then
629  AC_CHECK_TOOL([STRIP], [strip], :)
630fi
631INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
632AC_SUBST([INSTALL_STRIP_PROGRAM])])
633
Note: See TracBrowser for help on using the repository browser.