source: rtems/scripts/aclocal.m4 @ 39537657

4.104.114.84.95
Last change on this file since 39537657 was 1805015, checked in by Joel Sherrill <joel.sherrill@…>, on 10/20/99 at 15:49:13

Adding the infrastructure for gdb.

  • Property mode set to 100644
File size: 3.5 KB
Line 
1dnl aclocal.m4 generated automatically by aclocal 1.4a
2
3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13# Do all the work for Automake.  This macro actually does too much --
14# some checks are only needed if your package does certain things.
15# But this isn't really a big deal.
16
17# serial 1
18
19dnl Usage:
20dnl AM_INIT_AUTOMAKE(package,version, [no-define])
21
22AC_DEFUN(AM_INIT_AUTOMAKE,
23[AC_REQUIRE([AC_PROG_INSTALL])
24dnl We require 2.13 because we rely on SHELL being computed by configure.
25AC_PREREQ([2.13])
26PACKAGE=[$1]
27AC_SUBST(PACKAGE)
28VERSION=[$2]
29AC_SUBST(VERSION)
30dnl test to see if srcdir already configured
31if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
32  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
33fi
34ifelse([$3],,
35AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
36AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
37AC_REQUIRE([AM_SANITY_CHECK])
38AC_REQUIRE([AC_ARG_PROGRAM])
39dnl FIXME This is truly gross.
40missing_dir=`cd $ac_aux_dir && pwd`
41AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
42AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
43AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
44AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
45AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
46AC_REQUIRE([AC_PROG_MAKE_SET])])
47
48#
49# Check to make sure that the build environment is sane.
50#
51
52AC_DEFUN(AM_SANITY_CHECK,
53[AC_MSG_CHECKING([whether build environment is sane])
54# Just in case
55sleep 1
56echo timestamp > conftestfile
57# Do `set' in a subshell so we don't clobber the current shell's
58# arguments.  Must try -L first in case configure is actually a
59# symlink; some systems play weird games with the mod time of symlinks
60# (eg FreeBSD returns the mod time of the symlink's containing
61# directory).
62if (
63   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
64   if test "[$]*" = "X"; then
65      # -L didn't work.
66      set X `ls -t $srcdir/configure conftestfile`
67   fi
68   if test "[$]*" != "X $srcdir/configure conftestfile" \
69      && test "[$]*" != "X conftestfile $srcdir/configure"; then
70
71      # If neither matched, then we have a broken ls.  This can happen
72      # if, for instance, CONFIG_SHELL is bash and it inherits a
73      # broken ls alias from the environment.  This has actually
74      # happened.  Such a system could not be considered "sane".
75      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
76alias in your environment])
77   fi
78
79   test "[$]2" = conftestfile
80   )
81then
82   # Ok.
83   :
84else
85   AC_MSG_ERROR([newly created file is older than distributed files!
86Check your system clock])
87fi
88rm -f conftest*
89AC_MSG_RESULT(yes)])
90
91dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
92dnl The program must properly implement --version.
93AC_DEFUN(AM_MISSING_PROG,
94[AC_MSG_CHECKING(for working $2)
95# Run test in a subshell; some versions of sh will print an error if
96# an executable is not found, even if stderr is redirected.
97# Redirect stdin to placate older versions of autoconf.  Sigh.
98if ($2 --version) < /dev/null > /dev/null 2>&1; then
99   $1=$2
100   AC_MSG_RESULT(found)
101else
102   $1="$3/missing $2"
103   AC_MSG_RESULT(missing)
104fi
105AC_SUBST($1)])
106
Note: See TracBrowser for help on using the repository browser.