source: trunk/libs/newlib/src/libgloss/tic6x/aclocal.m4 @ 498

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

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

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