[prev in list] [next in list] [prev in thread] [next in thread] 

List:       icu
Subject:    RE: Proposal: improve the use of Autoconf-generated definitions i
From:       Yves Arrouye <yves () realnames ! com>
Date:       2002-04-26 21:03:28
[Download RAW message or body]

I forgot to add. The easiest way to make that happen would also be to have
some consistency. For example, the platform name is sometimes preceded by U_
(U_LINUX), another time not (AIX), and we would have U_ everywhere. Which I
believe is one of the goals specified in the Icu coding guidelines anyway.

YA

> -----Original Message-----
> From: Yves Arrouye
> Sent: Friday, April 26, 2002 1:57 PM
> To: 'icu@oss.software.ibm.com'
> Subject: Proposal: improve the use of Autoconf-generated definitions in IC
> U
> 
> Hi,
> 
> Today on Unix common/unicode/platform.h is generated by AC_OUTPUT(), which
> means that it is touched each time configure is run, and then the whole
> project is rebuilt (every file depends on it). I propose to change that.
> The
> way I would like to change it is by creating a common/unicode/icucfg.h
> that
> would be the Autoconf-generated icucfg.h with a U_ prefix in front of
> every
> name. There is a freely available macro, AC_CREATE_PREFIX_CONFIG_H, which
> does that. I modified it so that it won't touch the file unless needed,
> just
> like AC_CONFIG_HEADER() does. A first configure run then looks like:
> 
> creating samples/layout/Makefile
> creating common/unicode/platform.h
> creating common/icucfg.h
> creating common/unicode/icucfg.h - prefix U for common/icucfg.h defines
> You must use make to build ICU.
> %
> 
> and a subsequent run looks like:
> 
> creating samples/layout/Makefile
> creating common/unicode/platform.h
> creating common/icucfg.h
> common/icucfg.h is unchanged
> creating common/unicode/icucfg.h - prefix U for common/icucfg.h defines
> common/unicode/icucfg.h is unchanged
> You must use make to build ICU.
> %
> 
> We could then get rid of the platform.h.in -> platform.h step simply by
> including icucfg.h in platform.h. We would also save some of the
> complexity
> of configure.in which uses AC_SUBST() for things that have already been
> AC_DEFINE(), just to give them the U_ prefix.
> 
> This proposal expires May 1st, 2002.
> 
> YA
> --
> Sailing is harder than flying. It's amazing that man learned how to sail
> first. -- Burt Rutan.
> 
> _______________________________________________
> icu mailing list
> icu@oss.software.ibm.com
> http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu
_______________________________________________
icu mailing list
icu@oss.software.ibm.com
http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic