Mercurial > ecos
comparison host/tools/configtool/standalone/common/aclocal.m4 @ 76:435cced73e2f ecos-v1_3_1-release
eCos v1.3.1 merged from eCos master repository on 2000-03-27-23:22:51-BST
| author | jlarmour |
|---|---|
| date | Tue, 28 Mar 2000 14:10:45 +0000 |
| parents | |
| children | e0c0827131d1 |
comparison
equal
deleted
inserted
replaced
| 75:41bf073c0c32 | 76:435cced73e2f |
|---|---|
| 1 dnl aclocal.m4 generated automatically by aclocal 1.4 | |
| 2 | |
| 3 dnl Copyright (C) 1994, 1995-8, 1999 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###COPYRIGHTBEGIN#### | |
| 21 dnl | |
| 22 dnl ------------------------------------------- | |
| 23 dnl The contents of this file are subject to the Red Hat eCos Public License | |
| 24 dnl Version 1.1 (the "License"); you may not use this file except in | |
| 25 dnl compliance with the License. You may obtain a copy of the License at | |
| 26 dnl http://www.redhat.com/ | |
| 27 dnl | |
| 28 dnl Software distributed under the License is distributed on an "AS IS" | |
| 29 dnl basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 30 dnl License for the specific language governing rights and limitations under | |
| 31 dnl the License. | |
| 32 dnl | |
| 33 dnl The Original Code is eCos - Embedded Configurable Operating System, | |
| 34 dnl released September 30, 1998. | |
| 35 dnl | |
| 36 dnl The Initial Developer of the Original Code is Red Hat. | |
| 37 dnl Portions created by Red Hat are | |
| 38 dnl Copyright (C) 1998, 1999, 2000 Red Hat, Inc. | |
| 39 dnl All Rights Reserved. | |
| 40 dnl ------------------------------------------- | |
| 41 dnl | |
| 42 dnl####COPYRIGHTEND#### | |
| 43 dnl ==================================================================== | |
| 44 dnl#####DESCRIPTIONBEGIN#### | |
| 45 dnl | |
| 46 dnl Author(s): bartv | |
| 47 dnl Contact(s): bartv | |
| 48 dnl Date: 1999/08/11 | |
| 49 dnl Version: 0.01 | |
| 50 dnl | |
| 51 dnl####DESCRIPTIONEND#### | |
| 52 dnl ==================================================================== | |
| 53 | |
| 54 dnl Access shared macros. | |
| 55 dnl AM_CONDITIONAL needs to be mentioned here or else aclocal does not | |
| 56 dnl incorporate the macro into aclocal.m4 | |
| 57 sinclude(../../../../acinclude.m4) | |
| 58 | |
| 59 # Define a conditional. | |
| 60 | |
| 61 AC_DEFUN(AM_CONDITIONAL, | |
| 62 [AC_SUBST($1_TRUE) | |
| 63 AC_SUBST($1_FALSE) | |
| 64 if $2; then | |
| 65 $1_TRUE= | |
| 66 $1_FALSE='#' | |
| 67 else | |
| 68 $1_TRUE='#' | |
| 69 $1_FALSE= | |
| 70 fi]) | |
| 71 | |
| 72 # Do all the work for Automake. This macro actually does too much -- | |
| 73 # some checks are only needed if your package does certain things. | |
| 74 # But this isn't really a big deal. | |
| 75 | |
| 76 # serial 1 | |
| 77 | |
| 78 dnl Usage: | |
| 79 dnl AM_INIT_AUTOMAKE(package,version, [no-define]) | |
| 80 | |
| 81 AC_DEFUN(AM_INIT_AUTOMAKE, | |
| 82 [AC_REQUIRE([AC_PROG_INSTALL]) | |
| 83 PACKAGE=[$1] | |
| 84 AC_SUBST(PACKAGE) | |
| 85 VERSION=[$2] | |
| 86 AC_SUBST(VERSION) | |
| 87 dnl test to see if srcdir already configured | |
| 88 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
| 89 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
| 90 fi | |
| 91 ifelse([$3],, | |
| 92 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
| 93 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) | |
| 94 AC_REQUIRE([AM_SANITY_CHECK]) | |
| 95 AC_REQUIRE([AC_ARG_PROGRAM]) | |
| 96 dnl FIXME This is truly gross. | |
| 97 missing_dir=`cd $ac_aux_dir && pwd` | |
| 98 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) | |
| 99 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) | |
| 100 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) | |
| 101 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) | |
| 102 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) | |
| 103 AC_REQUIRE([AC_PROG_MAKE_SET])]) | |
| 104 | |
| 105 # | |
| 106 # Check to make sure that the build environment is sane. | |
| 107 # | |
| 108 | |
| 109 AC_DEFUN(AM_SANITY_CHECK, | |
| 110 [AC_MSG_CHECKING([whether build environment is sane]) | |
| 111 # Just in case | |
| 112 sleep 1 | |
| 113 echo timestamp > conftestfile | |
| 114 # Do `set' in a subshell so we don't clobber the current shell's | |
| 115 # arguments. Must try -L first in case configure is actually a | |
| 116 # symlink; some systems play weird games with the mod time of symlinks | |
| 117 # (eg FreeBSD returns the mod time of the symlink's containing | |
| 118 # directory). | |
| 119 if ( | |
| 120 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
| 121 if test "[$]*" = "X"; then | |
| 122 # -L didn't work. | |
| 123 set X `ls -t $srcdir/configure conftestfile` | |
| 124 fi | |
| 125 if test "[$]*" != "X $srcdir/configure conftestfile" \ | |
| 126 && test "[$]*" != "X conftestfile $srcdir/configure"; then | |
| 127 | |
| 128 # If neither matched, then we have a broken ls. This can happen | |
| 129 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
| 130 # broken ls alias from the environment. This has actually | |
| 131 # happened. Such a system could not be considered "sane". | |
| 132 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
| 133 alias in your environment]) | |
| 134 fi | |
| 135 | |
| 136 test "[$]2" = conftestfile | |
| 137 ) | |
| 138 then | |
| 139 # Ok. | |
| 140 : | |
| 141 else | |
| 142 AC_MSG_ERROR([newly created file is older than distributed files! | |
| 143 Check your system clock]) | |
| 144 fi | |
| 145 rm -f conftest* | |
| 146 AC_MSG_RESULT(yes)]) | |
| 147 | |
| 148 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) | |
| 149 dnl The program must properly implement --version. | |
| 150 AC_DEFUN(AM_MISSING_PROG, | |
| 151 [AC_MSG_CHECKING(for working $2) | |
| 152 # Run test in a subshell; some versions of sh will print an error if | |
| 153 # an executable is not found, even if stderr is redirected. | |
| 154 # Redirect stdin to placate older versions of autoconf. Sigh. | |
| 155 if ($2 --version) < /dev/null > /dev/null 2>&1; then | |
| 156 $1=$2 | |
| 157 AC_MSG_RESULT(found) | |
| 158 else | |
| 159 $1="$3/missing $2" | |
| 160 AC_MSG_RESULT(missing) | |
| 161 fi | |
| 162 AC_SUBST($1)]) | |
| 163 | |
| 164 # Add --enable-maintainer-mode option to configure. | |
| 165 # From Jim Meyering | |
| 166 | |
| 167 # serial 1 | |
| 168 | |
| 169 AC_DEFUN(AM_MAINTAINER_MODE, | |
| 170 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | |
| 171 dnl maintainer-mode is disabled by default | |
| 172 AC_ARG_ENABLE(maintainer-mode, | |
| 173 [ --enable-maintainer-mode enable make rules and dependencies not useful | |
| 174 (and sometimes confusing) to the casual installer], | |
| 175 USE_MAINTAINER_MODE=$enableval, | |
| 176 USE_MAINTAINER_MODE=no) | |
| 177 AC_MSG_RESULT($USE_MAINTAINER_MODE) | |
| 178 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes) | |
| 179 MAINT=$MAINTAINER_MODE_TRUE | |
| 180 AC_SUBST(MAINT)dnl | |
| 181 ] | |
| 182 ) | |
| 183 |
