aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-10-09 19:05:20 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-10-14 23:04:29 +0100
commit69295f04a92ba99d4c2b210c77e80ab48e4be621 (patch)
tree678280f0f15eb3cd856133da19c05a1e28fe4f56 /configure.ac
parentb2fe0588bb37e5777575296a209b1a210968392e (diff)
downloadpaludis-69295f04a92ba99d4c2b210c77e80ab48e4be621.tar.gz
paludis-69295f04a92ba99d4c2b210c77e80ab48e4be621.tar.xz
Define a PALUDIS_ constant for big-endianness
This allows it to be referenced from headers, as we don't install config.h
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f6edefbb0..3eaaa89f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,6 +86,10 @@ dnl }}}
dnl {{{ check for byte order
AC_C_BIGENDIAN
+if test "x$ac_cv_c_bigendian" = "xyes"; then
+ PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_BIG_ENDIAN=1"
+ PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_BIG_ENDIAN=1"
+fi
dnl }}}
need_xml_check=