Browse Source

* m4/general.m4 (CL_CANONICAL_HOST_CPU): Force host_cpu=rs6000 for

powerpc64 if userland is 32 bit.
master
Richard Kreckel 17 years ago
parent
commit
b5cd2461ca
  1. 5
      ChangeLog
  2. 16
      m4/general.m4

5
ChangeLog

@ -1,3 +1,8 @@
2007-12-19 Richard B. Kreckel <kreckel@ginac.de>
* m4/general.m4 (CL_CANONICAL_HOST_CPU): Force host_cpu=rs6000 for
powerpc64 if userland is 32 bit.
2007-12-18 Richard B. Kreckel <kreckel@ginac.de> 2007-12-18 Richard B. Kreckel <kreckel@ginac.de>
* autoconf/ltmain.sh: Update to libtool-1.5.24. * autoconf/ltmain.sh: Update to libtool-1.5.24.

16
m4/general.m4

@ -201,6 +201,22 @@ else
host_cpu=i386 host_cpu=i386
fi fi
;; ;;
dnl PowerPC64 is another case where 'uname -m' and userland may disagree.
powerpc64 )
AC_CACHE_CHECK([for 64-bit userland on PowerPC64], cl_cv_host_powerpc64, [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[#if !defined __powerpc64__
# error __powerpc64__ not defined
#endif
]])
], [cl_cv_host_powerpc64=yes], [cl_cv_host_powerpc64=no])
])
if test $cl_cv_host_powerpc64 = yes; then
host_cpu=powerpc64
else
host_cpu=rs6000
fi
;;
esac esac
dnl was AC_DEFINE_UNQUOTED(__${host_cpu}__) but KAI C++ 3.2d doesn't like this dnl was AC_DEFINE_UNQUOTED(__${host_cpu}__) but KAI C++ 3.2d doesn't like this
cat >> confdefs.h <<EOF cat >> confdefs.h <<EOF

Loading…
Cancel
Save