source: trunk/libs/newlib/src/libgloss/spu/aclocal.m4 @ 444

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

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

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