autoconf-patches
[Top][All Lists]
Advanced

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

Re: WORDS_BIGENDIAN not defined on sparc Solaris 10!


From: Paul Eggert
Subject: Re: WORDS_BIGENDIAN not defined on sparc Solaris 10!
Date: Tue, 27 Nov 2007 09:57:41 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Ralf Wildenhues <address@hidden> writes:

> AH_TEMPLATE([
> /* #undef FOO */
> ])
> AC_DEFINE([FOO], [1], [Foo])

But the old code didn't do that.  It did this:

AH_VERBATIM([WORDS_BIGENDIAN],
[/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
   significant byte first (like Motorola and SPARC, unlike Intel and VAX). */
#if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
#elif ! defined __LITTLE_ENDIAN__
/* #undef WORDS_BIGENDIAN */
#endif])dnl
...
AC_DEFINE([WORDS_BIGENDIAN], 1)


Autoconf 2.61 rejects this with:

autoheader: warning: missing template: WORDS_BIGENDIAN
autoheader: Use AC_DEFINE([WORDS_BIGENDIAN], [], [Description])

I don't offhand know why the snapshot accepted it.  Maybe some other
change affected things too?  I suppose we could investigate this
further but I'm a bit pressed for time right now, and the bug is fixed
now anyway.




reply via email to

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