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

List:       kde-devel
Subject:    Suggestion: config.h.bot should be appended unmodified to config.h
From:       Thomas Leitner <tom () radar ! tu-graz ! ac ! at>
Date:       2001-04-07 7:41:11
[Download RAW message or body]


As the automatic configuration with automake/autoconf seems to produce
increasingly more problems than it solves on non-linux platforms (see my
previous posting with the ksize_t problem), I suggest to provide a way for
manually overriding *all* values which are detected by the automatic
configurations. This should include *everything* which is currently
included in config.h.

A starting point is config.h.bot which can currently already contain
platform specific stuff. The only problem is that I cannot redefine things
in config.h.bot which were improperly detected by autoconf. Example: If
autoconf picks up HAVE_SOMETHING, I want to have the ability to do:

#ifdef __osf__
#ifdef HAVE_SOMETHING
#undef HAVE_SOMETHING
#endif
#endif

This does not work currently because autoconf processes the contents
of config.h.bot as well and modifies my #undef HAVE_SOMETHING to
#define HAVE_SOMETHING!

The same goes for things links ksize_t. I want this:

#ifdef __osf__
#ifdef ksize_t
#undef ksize_t
#endif
#define ksize_t size_t
#endif

If I put this in config.h.bot I end up with

#ifdef __osf__
#ifdef ksize_t
#undef ksize_t
#endif
#define ksize_t int
#endif

in config.h!!

I think this would save us non-linuxers an awful lot of work if
config.h.bot could just be *appended* to config.h rather than processed
along with it. I think we must accept that autoconf can never be so good
that it works on all platforms equally well and that it picks up correct
values everywhere.

Any comments?

Tom
-- 
--------------------------------------------------------------------------
Dr. Tom Leitner                             Dept. of Communications
                                            Graz University of Technology,
e-mail    : tom@radar.tu-graz.ac.at         Inffeldgasse 12
Phone     : +43-316-873-7455                A-8010 Graz / Austria / Europe
Fax       : +43-316-463-697
Home page : http://www.radar.tugraz.at/people/tom.html
PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send
mail with subject "get Thomas Leitner" to pgp-public-keys@keys.pgp.net
--------------------------------------------------------------------------
    Before we have the paperless office, we have the paperless toilet!

 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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