bug-autoconf
[Top][All Lists]
Advanced

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

Re: autoconf 2.6.2 AC_C_BIGENDIAN misdetects ppc/linux system as univers


From: Karsten Hopp
Subject: Re: autoconf 2.6.2 AC_C_BIGENDIAN misdetects ppc/linux system as universal
Date: Wed, 11 Jun 2008 13:28:34 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080501)

Arkadiusz Miskiewicz schrieb:
I'm having problem where my linux ppc is misdetected as universal instead of big endian.

+    AC_COMPILE_IFELSE(
+      [AC_LANG_SOURCE(
+        [[#if ! (defined __BIG_ENDIAN__ || defined __LITLE_ENDIAN__)
+           neither is defined;
+         #endif
+        ]])],
+      [ac_cv_c_bigendian=universal])

On linux/ppc __BIG_ENDIAN__ is always defined as it's gcc builtin. If I'm thinking correctly then this code will always compile and ac_cv_c_bigendian will be always set to universal instead of doing more tests...

Correct me if I'm wrong.


I have a similar bugreport for Fedora at 
https://bugzilla.redhat.com/show_bug.cgi?id=449944

  Karsten


--
 Karsten Hopp        | Mail: address@hidden
 Red Hat Deutschland | Tel: +49-711-96437-0
 Hauptstaetterstr.58 | Fax: +49-711-613590
 D-70178 Stuttgart   | http://www.redhat.de




reply via email to

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