source: trunk/libs/newlib/src/libgloss/libnosys/aclocal.m4 @ 612

Last change on this file since 612 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 12.2 KB
Line 
1# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005  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# AM_CONDITIONAL                                            -*- Autoconf -*-
15
16# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
17# Free Software Foundation, Inc.
18#
19# This file is free software; the Free Software Foundation
20# gives unlimited permission to copy and/or distribute it,
21# with or without modifications, as long as this notice is preserved.
22
23# serial 7
24
25# AM_CONDITIONAL(NAME, SHELL-CONDITION)
26# -------------------------------------
27# Define a conditional.
28AC_DEFUN([AM_CONDITIONAL],
29[AC_PREREQ(2.52)dnl
30 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
31        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
32AC_SUBST([$1_TRUE])
33AC_SUBST([$1_FALSE])
34if $2; then
35  $1_TRUE=
36  $1_FALSE='#'
37else
38  $1_TRUE='#'
39  $1_FALSE=
40fi
41AC_CONFIG_COMMANDS_PRE(
42[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
43  AC_MSG_ERROR([[conditional "$1" was never defined.
44Usually this means the macro was only invoked conditionally.]])
45fi])])
46
47
48# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
49# Free Software Foundation, Inc.
50#
51# This file is free software; the Free Software Foundation
52# gives unlimited permission to copy and/or distribute it,
53# with or without modifications, as long as this notice is preserved.
54
55# serial 8
56
57# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
58# written in clear, in which case automake, when reading aclocal.m4,
59# will think it sees a *use*, and therefore will trigger all it's
60# C support machinery.  Also note that it means that autoscan, seeing
61# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
62
63
64# _AM_DEPENDENCIES(NAME)
65# ----------------------
66# See how the compiler implements dependency checking.
67# NAME is "CC", "CXX", "GCJ", or "OBJC".
68# We try a few techniques and use that to set a single cache variable.
69#
70# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
71# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
72# dependency, and given that the user is not expected to run this macro,
73# just rely on AC_PROG_CC.
74AC_DEFUN([_AM_DEPENDENCIES],
75[AC_REQUIRE([AM_SET_DEPDIR])dnl
76AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
77AC_REQUIRE([AM_MAKE_INCLUDE])dnl
78AC_REQUIRE([AM_DEP_TRACK])dnl
79
80ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
81       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
82       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
83       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
84                   [depcc="$$1"   am_compiler_list=])
85
86AC_CACHE_CHECK([dependency style of $depcc],
87               [am_cv_$1_dependencies_compiler_type],
88[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
89  # We make a subdir and do the tests there.  Otherwise we can end up
90  # making bogus files that we don't know about and never remove.  For
91  # instance it was reported that on HP-UX the gcc test will end up
92  # making a dummy file named `D' -- because `-MD' means `put the output
93  # in D'.
94  mkdir conftest.dir
95  # Copy depcomp to subdir because otherwise we won't find it if we're
96  # using a relative directory.
97  cp "$am_depcomp" conftest.dir
98  cd conftest.dir
99  # We will build objects and dependencies in a subdirectory because
100  # it helps to detect inapplicable dependency modes.  For instance
101  # both Tru64's cc and ICC support -MD to output dependencies as a
102  # side effect of compilation, but ICC will put the dependencies in
103  # the current directory while Tru64 will put them in the object
104  # directory.
105  mkdir sub
106
107  am_cv_$1_dependencies_compiler_type=none
108  if test "$am_compiler_list" = ""; then
109     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
110  fi
111  for depmode in $am_compiler_list; do
112    # Setup a source with many dependencies, because some compilers
113    # like to wrap large dependency lists on column 80 (with \), and
114    # we should not choose a depcomp mode which is confused by this.
115    #
116    # We need to recreate these files for each test, as the compiler may
117    # overwrite some of them when testing with obscure command lines.
118    # This happens at least with the AIX C compiler.
119    : > sub/conftest.c
120    for i in 1 2 3 4 5 6; do
121      echo '#include "conftst'$i'.h"' >> sub/conftest.c
122      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
123      # Solaris 8's {/usr,}/bin/sh.
124      touch sub/conftst$i.h
125    done
126    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
127
128    case $depmode in
129    nosideeffect)
130      # after this tag, mechanisms are not by side-effect, so they'll
131      # only be used when explicitly requested
132      if test "x$enable_dependency_tracking" = xyes; then
133        continue
134      else
135        break
136      fi
137      ;;
138    none) break ;;
139    esac
140    # We check with `-c' and `-o' for the sake of the "dashmstdout"
141    # mode.  It turns out that the SunPro C++ compiler does not properly
142    # handle `-M -o', and we need to detect this.
143    if depmode=$depmode \
144       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
145       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
146       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
147         >/dev/null 2>conftest.err &&
148       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
149       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
150       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
151      # icc doesn't choke on unknown options, it will just issue warnings
152      # or remarks (even with -Werror).  So we grep stderr for any message
153      # that says an option was ignored or not supported.
154      # When given -MP, icc 7.0 and 7.1 complain thusly:
155      #   icc: Command line warning: ignoring option '-M'; no argument required
156      # The diagnosis changed in icc 8.0:
157      #   icc: Command line remark: option '-MP' not supported
158      if (grep 'ignoring option' conftest.err ||
159          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
160        am_cv_$1_dependencies_compiler_type=$depmode
161        break
162      fi
163    fi
164  done
165
166  cd ..
167  rm -rf conftest.dir
168else
169  am_cv_$1_dependencies_compiler_type=none
170fi
171])
172AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
173AM_CONDITIONAL([am__fastdep$1], [
174  test "x$enable_dependency_tracking" != xno \
175  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
176])
177
178
179# AM_SET_DEPDIR
180# -------------
181# Choose a directory name for dependency files.
182# This macro is AC_REQUIREd in _AM_DEPENDENCIES
183AC_DEFUN([AM_SET_DEPDIR],
184[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
185AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
186])
187
188
189# AM_DEP_TRACK
190# ------------
191AC_DEFUN([AM_DEP_TRACK],
192[AC_ARG_ENABLE(dependency-tracking,
193[  --disable-dependency-tracking  speeds up one-time build
194  --enable-dependency-tracking   do not reject slow dependency extractors])
195if test "x$enable_dependency_tracking" != xno; then
196  am_depcomp="$ac_aux_dir/depcomp"
197  AMDEPBACKSLASH='\'
198fi
199AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
200AC_SUBST([AMDEPBACKSLASH])
201])
202
203# Generate code to set up dependency tracking.              -*- Autoconf -*-
204
205# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
206# Free Software Foundation, Inc.
207#
208# This file is free software; the Free Software Foundation
209# gives unlimited permission to copy and/or distribute it,
210# with or without modifications, as long as this notice is preserved.
211
212#serial 3
213
214# _AM_OUTPUT_DEPENDENCY_COMMANDS
215# ------------------------------
216AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
217[for mf in $CONFIG_FILES; do
218  # Strip MF so we end up with the name of the file.
219  mf=`echo "$mf" | sed -e 's/:.*$//'`
220  # Check whether this is an Automake generated Makefile or not.
221  # We used to match only the files named `Makefile.in', but
222  # some people rename them; so instead we look at the file content.
223  # Grep'ing the first line is not enough: some people post-process
224  # each Makefile.in and add a new line on top of each file to say so.
225  # So let's grep whole file.
226  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
227    dirpart=`AS_DIRNAME("$mf")`
228  else
229    continue
230  fi
231  # Extract the definition of DEPDIR, am__include, and am__quote
232  # from the Makefile without running `make'.
233  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
234  test -z "$DEPDIR" && continue
235  am__include=`sed -n 's/^am__include = //p' < "$mf"`
236  test -z "am__include" && continue
237  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
238  # When using ansi2knr, U may be empty or an underscore; expand it
239  U=`sed -n 's/^U = //p' < "$mf"`
240  # Find all dependency output files, they are included files with
241  # $(DEPDIR) in their names.  We invoke sed twice because it is the
242  # simplest approach to changing $(DEPDIR) to its actual value in the
243  # expansion.
244  for file in `sed -n "
245    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
246       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
247    # Make sure the directory exists.
248    test -f "$dirpart/$file" && continue
249    fdir=`AS_DIRNAME(["$file"])`
250    AS_MKDIR_P([$dirpart/$fdir])
251    # echo "creating $dirpart/$file"
252    echo '# dummy' > "$dirpart/$file"
253  done
254done
255])# _AM_OUTPUT_DEPENDENCY_COMMANDS
256
257
258# AM_OUTPUT_DEPENDENCY_COMMANDS
259# -----------------------------
260# This macro should only be invoked once -- use via AC_REQUIRE.
261#
262# This code is only required when automatic dependency tracking
263# is enabled.  FIXME.  This creates each `.P' file that we will
264# need in order to bootstrap the dependency handling code.
265AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
266[AC_CONFIG_COMMANDS([depfiles],
267     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
268     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
269])
270
271# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
272#
273# This file is free software; the Free Software Foundation
274# gives unlimited permission to copy and/or distribute it,
275# with or without modifications, as long as this notice is preserved.
276
277# serial 2
278
279# Check whether the underlying file-system supports filenames
280# with a leading dot.  For instance MS-DOS doesn't.
281AC_DEFUN([AM_SET_LEADING_DOT],
282[rm -rf .tst 2>/dev/null
283mkdir .tst 2>/dev/null
284if test -d .tst; then
285  am__leading_dot=.
286else
287  am__leading_dot=_
288fi
289rmdir .tst 2>/dev/null
290AC_SUBST([am__leading_dot])])
291
292# Check to see how 'make' treats includes.                  -*- Autoconf -*-
293
294# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
295#
296# This file is free software; the Free Software Foundation
297# gives unlimited permission to copy and/or distribute it,
298# with or without modifications, as long as this notice is preserved.
299
300# serial 3
301
302# AM_MAKE_INCLUDE()
303# -----------------
304# Check to see how make treats includes.
305AC_DEFUN([AM_MAKE_INCLUDE],
306[am_make=${MAKE-make}
307cat > confinc << 'END'
308am__doit:
309        @echo done
310.PHONY: am__doit
311END
312# If we don't find an include directive, just comment out the code.
313AC_MSG_CHECKING([for style of include used by $am_make])
314am__include="#"
315am__quote=
316_am_result=none
317# First try GNU make style include.
318echo "include confinc" > confmf
319# We grep out `Entering directory' and `Leaving directory'
320# messages which can occur if `w' ends up in MAKEFLAGS.
321# In particular we don't look at `^make:' because GNU make might
322# be invoked under some other name (usually "gmake"), in which
323# case it prints its new name instead of `make'.
324if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
325   am__include=include
326   am__quote=
327   _am_result=GNU
328fi
329# Now try BSD make style include.
330if test "$am__include" = "#"; then
331   echo '.include "confinc"' > confmf
332   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
333      am__include=.include
334      am__quote="\""
335      _am_result=BSD
336   fi
337fi
338AC_SUBST([am__include])
339AC_SUBST([am__quote])
340AC_MSG_RESULT([$_am_result])
341rm -f confinc confmf
342])
343
344m4_include([../acinclude.m4])
Note: See TracBrowser for help on using the repository browser.