[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Re: CVS commit: pkgsrc/devel/m4]
From: |
Bruno Haible |
Subject: |
Re: address@hidden: Re: CVS commit: pkgsrc/devel/m4] |
Date: |
Wed, 1 Aug 2007 00:34:15 +0200 |
User-agent: |
KMail/1.5.4 |
Joerg Sonnenberger wrote:
> Attached. Both macros are defined only in wchar.h on DragonFly
> ...
> configure:19354: checking whether stdint.h conforms to C99
> configure:19527: cc -std=gnu99 -c -O2 conftest.c >&5
> configure:19533: $? = 0
> configure:19548: result: yes
Thanks, I see the problem now. This should fix it.
2007-07-31 Bruno Haible <address@hidden>
* m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
Reported by Joerg Sonnenberger <address@hidden>.
*** m4/stdint.m4 21 Jun 2007 04:39:10 -0000 1.33
--- m4/stdint.m4 31 Jul 2007 22:26:27 -0000
***************
*** 1,4 ****
! # stdint.m4 serial 27
dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # stdint.m4 serial 28
dnl Copyright (C) 2001-2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
***************
*** 59,70 ****
[gl_cv_header_working_stdint_h],
[gl_cv_header_working_stdint_h=no
AC_COMPILE_IFELSE([
! AC_LANG_PROGRAM([gl_STDINT_INCLUDES
! [
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
#include <stdint.h>
#ifdef INT8_MAX
int8_t a1 = INT8_MAX;
int8_t a1min = INT8_MIN;
--- 59,76 ----
[gl_cv_header_working_stdint_h],
[gl_cv_header_working_stdint_h=no
AC_COMPILE_IFELSE([
! AC_LANG_PROGRAM([[
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
#include <stdint.h>
+ /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
+ #if !(defined WCHAR_MIN && defined WCHAR_MAX)
+ #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
+ #endif
+ ]
+ gl_STDINT_INCLUDES
+ [
#ifdef INT8_MAX
int8_t a1 = INT8_MAX;
int8_t a1min = INT8_MIN;
Message not available
Re: address@hidden: Re: CVS commit: pkgsrc/devel/m4], Bruno Haible, 2007/07/30
Re: address@hidden: Re: CVS commit: pkgsrc/devel/m4], ebb9, 2007/07/26