[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cvs-dev] Re: [bug-gnulib] Re: stdint_.h tweak
From: |
Bruno Haible |
Subject: |
[Cvs-dev] Re: [bug-gnulib] Re: stdint_.h tweak |
Date: |
Mon, 19 Jun 2006 13:24:29 +0200 |
User-agent: |
KMail/1.9.1 |
Mark D. Baushke wrote:
> FULL_PATH_INTTYPES_H = /usr/include/inttypes.h
> FULL_PATH_STDINT_H = /usr/include/stdint.h
>
> which means that stdint.h has this:
>
> ...other conditionals that probably do not lead to this block being
> ...used, even though it really should be included as this is where SGI
> ...puts all of the types we need.
> # if 1
> # include /usr/include/inttypes.h
> # endif
Thanks for reporting this; I'm fixing it through the appended patch.
> I suspect that it would be better to ensure that config.h is included
> and then just use
>
> # if @HAVE_INTTYPES_H@
> # include FULL_PATH_INTTYPES_H
> # endif
No, Simon wants a stdint.h that is independent of config.h, so that
1) it can be used in projects that have multiple directories and multiple
config.h files,
2) it can be installed.
Bruno
2006-06-19 Bruno Haible <address@hidden>
* stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
and FULL_PATH_INTTYPES_H in angle brackets.
Reported by Mark D. Baushke <address@hidden>.
*** stdint.m4 17 Jun 2006 20:02:16 -0000 1.6
--- stdint.m4 19 Jun 2006 11:23:46 -0000
***************
*** 1,4 ****
! # stdint.m4 serial 6
dnl Copyright (C) 2001-2002, 2004-2006 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 7
dnl Copyright (C) 2001-2002, 2004-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
***************
*** 14,20 ****
if test $gl_cv_header_stdint_h = yes; then
ac_cv_header_stdint_h=yes; dnl Hack for gl_FULL_HEADER_PATH.
gl_FULL_HEADER_PATH([stdint.h])
! FULL_PATH_STDINT_H=$gl_cv_full_path_stdint_h
AC_SUBST([FULL_PATH_STDINT_H])
HAVE_STDINT_H=1
else
--- 14,20 ----
if test $gl_cv_header_stdint_h = yes; then
ac_cv_header_stdint_h=yes; dnl Hack for gl_FULL_HEADER_PATH.
gl_FULL_HEADER_PATH([stdint.h])
! FULL_PATH_STDINT_H='<'$gl_cv_full_path_stdint_h'>'
AC_SUBST([FULL_PATH_STDINT_H])
HAVE_STDINT_H=1
else
***************
*** 27,33 ****
if test $gl_cv_header_inttypes_h = yes; then
ac_cv_header_inttypes_h=yes; dnl Hack for gl_FULL_HEADER_PATH.
gl_FULL_HEADER_PATH([inttypes.h])
! FULL_PATH_INTTYPES_H=$gl_cv_full_path_inttypes_h
AC_SUBST([FULL_PATH_INTTYPES_H])
HAVE_INTTYPES_H=1
else
--- 27,33 ----
if test $gl_cv_header_inttypes_h = yes; then
ac_cv_header_inttypes_h=yes; dnl Hack for gl_FULL_HEADER_PATH.
gl_FULL_HEADER_PATH([inttypes.h])
! FULL_PATH_INTTYPES_H='<'$gl_cv_full_path_inttypes_h'>'
AC_SUBST([FULL_PATH_INTTYPES_H])
HAVE_INTTYPES_H=1
else