[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mpsort without <config.h>

From: Bruno Haible
Subject: Re: mpsort without <config.h>
Date: Fri, 27 Jul 2012 11:12:44 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Denis Excoffier wrote:
> >> > Is it conceivable that in mpsort.c, the line
> >> > 
> >> > #include <config.h>
> >> > 
> >> > is (officially) replaced by the three lines
> >> > 
> >> > #ifdef HAVE_CONFIG_H
> >> > # include <config.h>
> >> > #endif
> >> > 
> >> > for those people (like me...) that don't work with <config.h> but prefer 
> >> > to keep mpsort.c untouched?

No. mpsort.c uses the 'restrict' keyword, which requires <config.h>.
If you don't want a <config.h>, you'll get a compilation error with
many compilers.

Or you can do a sed 's/\*restrict/*/g' on the mpsort.c file. But when
you do that, you can also sed 's/#include <config.h>//'. And you're
entirely on your own with this approach. We don't support sources that
have been hacked in this way.

> i wish to be a user of (some) gnulib software, without
> being also a user of the ./configure etc. usual mechanism.

If you don't wish to use an Autoconf generated configure file, then
gnulib is not for you. Most of the gnulib sources require platform-dependent
configuration, done in 'configure', through Autoconf macros. If you don't
want this, you must be looking for completely portable old-style ANSI C
source code that doesn't need Autoconf checks. Such source code exists,
but it is not gnulib.

Please read:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]