OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [aclocal.m4] - Blame information for rev 299

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 unneback
dnl aclocal.m4 generated automatically by aclocal 1.4-p5
2
 
3
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4
dnl This file is free software; the Free Software Foundation
5
dnl gives unlimited permission to copy and/or distribute it,
6
dnl with or without modifications, as long as this notice is preserved.
7
 
8
dnl This program is distributed in the hope that it will be useful,
9
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
dnl PARTICULAR PURPOSE.
12
 
13
dnl Process this file with aclocal to get an aclocal.m4 file. Then
14
dnl process that with autoconf.
15
dnl ====================================================================
16
dnl
17
dnl     acinclude.m4
18
dnl
19
dnl ====================================================================
20
dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN####
21
dnl ----------------------------------------------------------------------------
22
dnl Copyright (C) 2002 Bart Veer
23
dnl
24
dnl This file is part of the eCos host tools.
25
dnl
26
dnl This program is free software; you can redistribute it and/or modify it
27
dnl under the terms of the GNU General Public License as published by the Free
28
dnl Software Foundation; either version 2 of the License, or (at your option)
29
dnl any later version.
30
dnl
31
dnl This program is distributed in the hope that it will be useful, but WITHOUT
32
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
33
dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
34
dnl more details.
35
dnl
36
dnl You should have received a copy of the GNU General Public License along with
37
dnl this program; if not, write to the Free Software Foundation, Inc.,
38
dnl 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
39
dnl
40
dnl ----------------------------------------------------------------------------
41
dnl ####ECOSHOSTGPLCOPYRIGHTEND####
42
dnl ====================================================================
43
dnl#####DESCRIPTIONBEGIN####
44
dnl
45
dnl Author(s):  bartv
46
dnl Contact(s): bartv
47
dnl Date:       2002/08/03
48
dnl Version:    0.01
49
dnl
50
dnl####DESCRIPTIONEND####
51
dnl ====================================================================
52
 
53
dnl Access shared macros.
54
dnl AM_CONDITIONAL needs to be mentioned here or else aclocal does not
55
dnl incorporate the macro into aclocal.m4
56
sinclude(../acsupport/acinclude.m4)
57
 
58
# Define a conditional.
59
 
60
AC_DEFUN([AM_CONDITIONAL],
61
[AC_SUBST($1_TRUE)
62
AC_SUBST($1_FALSE)
63
if $2; then
64
  $1_TRUE=
65
  $1_FALSE='#'
66
else
67
  $1_TRUE='#'
68
  $1_FALSE=
69
fi])
70
 
71
# Do all the work for Automake.  This macro actually does too much --
72
# some checks are only needed if your package does certain things.
73
# But this isn't really a big deal.
74
 
75
# serial 1
76
 
77
dnl Usage:
78
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
79
 
80
AC_DEFUN([AM_INIT_AUTOMAKE],
81
[AC_REQUIRE([AC_PROG_INSTALL])
82
PACKAGE=[$1]
83
AC_SUBST(PACKAGE)
84
VERSION=[$2]
85
AC_SUBST(VERSION)
86
dnl test to see if srcdir already configured
87
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
88
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
89
fi
90
ifelse([$3],,
91
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
92
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
93
AC_REQUIRE([AM_SANITY_CHECK])
94
AC_REQUIRE([AC_ARG_PROGRAM])
95
dnl FIXME This is truly gross.
96
missing_dir=`cd $ac_aux_dir && pwd`
97
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
98
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
99
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
100
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
101
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
102
AC_REQUIRE([AC_PROG_MAKE_SET])])
103
 
104
#
105
# Check to make sure that the build environment is sane.
106
#
107
 
108
AC_DEFUN([AM_SANITY_CHECK],
109
[AC_MSG_CHECKING([whether build environment is sane])
110
# Just in case
111
sleep 1
112
echo timestamp > conftestfile
113
# Do `set' in a subshell so we don't clobber the current shell's
114
# arguments.  Must try -L first in case configure is actually a
115
# symlink; some systems play weird games with the mod time of symlinks
116
# (eg FreeBSD returns the mod time of the symlink's containing
117
# directory).
118
if (
119
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
120
   if test "[$]*" = "X"; then
121
      # -L didn't work.
122
      set X `ls -t $srcdir/configure conftestfile`
123
   fi
124
   if test "[$]*" != "X $srcdir/configure conftestfile" \
125
      && test "[$]*" != "X conftestfile $srcdir/configure"; then
126
 
127
      # If neither matched, then we have a broken ls.  This can happen
128
      # if, for instance, CONFIG_SHELL is bash and it inherits a
129
      # broken ls alias from the environment.  This has actually
130
      # happened.  Such a system could not be considered "sane".
131
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
132
alias in your environment])
133
   fi
134
 
135
   test "[$]2" = conftestfile
136
   )
137
then
138
   # Ok.
139
   :
140
else
141
   AC_MSG_ERROR([newly created file is older than distributed files!
142
Check your system clock])
143
fi
144
rm -f conftest*
145
AC_MSG_RESULT(yes)])
146
 
147
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
148
dnl The program must properly implement --version.
149
AC_DEFUN([AM_MISSING_PROG],
150
[AC_MSG_CHECKING(for working $2)
151
# Run test in a subshell; some versions of sh will print an error if
152
# an executable is not found, even if stderr is redirected.
153
# Redirect stdin to placate older versions of autoconf.  Sigh.
154
if ($2 --version) < /dev/null > /dev/null 2>&1; then
155
   $1=$2
156
   AC_MSG_RESULT(found)
157
else
158
   $1="$3/missing $2"
159
   AC_MSG_RESULT(missing)
160
fi
161
AC_SUBST($1)])
162
 
163
# Add --enable-maintainer-mode option to configure.
164
# From Jim Meyering
165
 
166
# serial 1
167
 
168
AC_DEFUN([AM_MAINTAINER_MODE],
169
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
170
  dnl maintainer-mode is disabled by default
171
  AC_ARG_ENABLE(maintainer-mode,
172
[  --enable-maintainer-mode enable make rules and dependencies not useful
173
                          (and sometimes confusing) to the casual installer],
174
      USE_MAINTAINER_MODE=$enableval,
175
      USE_MAINTAINER_MODE=no)
176
  AC_MSG_RESULT($USE_MAINTAINER_MODE)
177
  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
178
  MAINT=$MAINTAINER_MODE_TRUE
179
  AC_SUBST(MAINT)dnl
180
]
181
)
182
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.