source: branches/libc-0.6/src/gcc/libjava/aclocal.m4@ 3417

Last change on this file since 3417 was 1392, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 14.6 KB
Line 
1dnl aclocal.m4 generated automatically by aclocal 1.4
2
3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13AC_DEFUN([AC_COMPILE_CHECK_SIZEOF],
14[changequote(<<, >>)dnl
15dnl The name to #define.
16define(<<AC_TYPE_NAME>>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl
17dnl The cache variable name.
18define(<<AC_CV_NAME>>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl
19changequote([, ])dnl
20AC_MSG_CHECKING(size of $1)
21AC_CACHE_VAL(AC_CV_NAME,
22[for ac_size in 4 8 1 2 16 12 $2 ; do # List sizes in rough order of prevalence.
23 AC_TRY_COMPILE([#include "confdefs.h"
24#include <sys/types.h>
25$2
26], [switch (0) case 0: case (sizeof ($1) == $ac_size):;], AC_CV_NAME=$ac_size)
27 if test x$AC_CV_NAME != x ; then break; fi
28done
29])
30if test x$AC_CV_NAME = x ; then
31 AC_MSG_ERROR([cannot determine a size for $1])
32fi