~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/alloca.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# alloca.m4 serial 13
2
 
dnl Copyright (C) 2002-2004, 2006-2007, 2009-2011 Free Software Foundation,
 
1
# alloca.m4 serial 14
 
2
dnl Copyright (C) 2002-2004, 2006-2007, 2009-2012 Free Software Foundation,
3
3
dnl Inc.
4
4
dnl This file is free software; the Free Software Foundation
5
5
dnl gives unlimited permission to copy and/or distribute it,
53
53
 
54
54
# _AC_LIBOBJ_ALLOCA
55
55
# -----------------
56
 
# Set up the LIBOBJ replacement of `alloca'.  Well, not exactly
57
 
# AC_LIBOBJ since we actually set the output variable `ALLOCA'.
 
56
# Set up the LIBOBJ replacement of 'alloca'.  Well, not exactly
 
57
# AC_LIBOBJ since we actually set the output variable 'ALLOCA'.
58
58
# Nevertheless, for Automake, AC_LIBSOURCES it.
59
59
m4_define([_AC_LIBOBJ_ALLOCA],
60
60
[# The SVR3 libPW and SVR4 libucb both contain incompatible functions
63
63
# use ar to extract alloca.o from them instead of compiling alloca.c.
64
64
AC_LIBSOURCES(alloca.c)
65
65
AC_SUBST([ALLOCA], [\${LIBOBJDIR}alloca.$ac_objext])dnl
66
 
AC_DEFINE(C_ALLOCA, 1, [Define to 1 if using `alloca.c'.])
 
66
AC_DEFINE(C_ALLOCA, 1, [Define to 1 if using 'alloca.c'.])
67
67
 
68
 
AC_CACHE_CHECK(whether `alloca.c' needs Cray hooks, ac_cv_os_cray,
 
68
AC_CACHE_CHECK(whether 'alloca.c' needs Cray hooks, ac_cv_os_cray,
69
69
[AC_EGREP_CPP(webecray,
70
70
[#if defined CRAY && ! defined CRAY2
71
71
webecray
77
77
  for ac_func in _getb67 GETB67 getb67; do
78
78
    AC_CHECK_FUNC($ac_func,
79
79
                  [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func,
80
 
                                      [Define to one of `_getb67', `GETB67',
81
 
                                       `getb67' for Cray-2 and Cray-YMP
 
80
                                      [Define to one of '_getb67', 'GETB67',
 
81
                                       'getb67' for Cray-2 and Cray-YMP
82
82
                                       systems. This function is required for
83
 
                                       `alloca.c' support on those systems.])
 
83
                                       'alloca.c' support on those systems.])
84
84
    break])
85
85
  done
86
86
fi