[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/gl/m4
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/gl/m4 |
Date: |
Fri, 26 Nov 2004 01:38:22 +0100 |
Update of /home/cvs/gsasl/lib/gl/m4
In directory dopio:/tmp/cvs-serv4090/gl/m4
Modified Files:
gnulib.m4
Added Files:
stdbool.m4
Log Message:
Add base64.
--- /home/cvs/gsasl/lib/gl/m4/gnulib.m4 2004/10/31 22:18:39 1.8
+++ /home/cvs/gsasl/lib/gl/m4/gnulib.m4 2004/11/26 00:38:22 1.9
@@ -8,7 +8,7 @@
# Generated by gnulib-tool.
#
# Invoked as: gnulib-tool --import
-# Reproduce by: gnulib-tool --import --dir=. --lib=libgl --source-base=gl
--m4-base=gl/m4 --libtool --lgpl dummy gettext strdup
+# Reproduce by: gnulib-tool --import --dir=. --lib=libgl --source-base=gl
--m4-base=gl/m4 --libtool --lgpl base64 dummy gettext stdbool strdup
AC_DEFUN([gl_EARLY],
[
@@ -17,6 +17,7 @@
AC_DEFUN([gl_INIT],
[
dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
+ AM_STDBOOL_H
gl_FUNC_STRDUP
])
--- /home/cvs/gsasl/lib/gl/m4/stdbool.m4 2004/11/26 00:38:22 NONE
+++ /home/cvs/gsasl/lib/gl/m4/stdbool.m4 2004/11/26 00:38:22 1.1
# Check for stdbool.h that conforms to C99.
# Copyright (C) 2002-2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# Prepare for substituting <stdbool.h> if it is not supported.
AC_DEFUN([AM_STDBOOL_H],
[
AC_REQUIRE([AC_HEADER_STDBOOL])
# Define two additional variables used in the Makefile substitution.
if test "$ac_cv_header_stdbool_h" = yes; then
STDBOOL_H=''
else
STDBOOL_H='stdbool.h'
fi
AC_SUBST([STDBOOL_H])
if test "$ac_cv_type__Bool" = yes; then
HAVE__BOOL=1
else
HAVE__BOOL=0
fi
AC_SUBST([HAVE__BOOL])
])
# This macro is only needed in autoconf <= 2.59. Newer versions of autoconf
# have this macro built-in.
AC_DEFUN([AC_HEADER_STDBOOL],
[AC_CACHE_CHECK([for stdbool.h that conforms to C99],
[ac_cv_header_stdbool_h],
[AC_TRY_COMPILE(
[
#include <stdbool.h>
#ifndef bool
"error: bool is not defined"
#endif
#ifndef false
"error: false is not defined"
#endif
#if false
"error: false is not 0"
#endif
#ifndef true
"error: true is not defined"
#endif
#if true != 1
"error: true is not 1"
#endif
#ifndef __bool_true_false_are_defined
"error: __bool_true_false_are_defined is not defined"
#endif
struct s { _Bool s: 1; _Bool t; } s;
char a[true == 1 ? 1 : -1];
char b[false == 0 ? 1 : -1];
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
char d[(bool) -0.5 == true ? 1 : -1];
bool e = &s;
char f[(_Bool) -0.0 == false ? 1 : -1];
char g[true];
char h[sizeof (_Bool)];
char i[sizeof s.t];
enum { j = false, k = true, l = false * true, m = true * 256 };
_Bool n[m];
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
],
[
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
+ !m + !n + !o);
],
[ac_cv_header_stdbool_h=yes],
[ac_cv_header_stdbool_h=no])])
AC_CHECK_TYPES([_Bool])
if test $ac_cv_header_stdbool_h = yes; then
AC_DEFINE(HAVE_STDBOOL_H, 1, [Define to 1 if stdbool.h conforms to C99.])
fi])
- CVS gsasl/lib/gl/m4,
gsasl-commit <=
- CVS gsasl/lib/gl/m4, gsasl-commit, 2004/11/26
- CVS gsasl/lib/gl/m4, gsasl-commit, 2004/11/27
- CVS gsasl/lib/gl/m4, gsasl-commit, 2004/11/27
- CVS gsasl/lib/gl/m4, gsasl-commit, 2004/11/30
- CVS gsasl/lib/gl/m4, gsasl-commit, 2004/11/30