summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-12-22 20:45:48 +0000
committerRoland McGrath <roland@gnu.org>2001-12-22 20:45:48 +0000
commit15a13967b14c64d8d134ffe59ec8964e75561643 (patch)
treef79cd2bff305d7dfa56c0bf43513792a020d0b28
parent6a0f36ffeead3e64bb21d579210770a545868ea2 (diff)
2001-12-22 Roland McGrath <roland@frob.com>
* configure.in (asm_syntax): Grok "powerpc" value for $host_cpu. Default asm_syntax to $host_cpu if not a known type. Complain about unsupported CPU iff libthreads/$asm_syntax/cthreads.h is missing; make that complaint a warning rather than fatal error.
-rw-r--r--configure.in17
1 files changed, 14 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 3299af40..730e05e5 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-AC_REVISION([$Id: configure.in,v 1.22 2001/10/12 00:04:58 marcus Exp $])
+AC_REVISION([$Id: configure.in,v 1.23 2001/12/22 20:45:48 roland Exp $])
AC_PREREQ(2.12) dnl Minimum Autoconf version required.
AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir.
@@ -20,11 +20,22 @@ none) AC_MSG_ERROR([
esac
case "$host_cpu" in
-i?86) asm_syntax=i386 ;;
-*) AC_MSG_ERROR([unsupported CPU type]) ;;
+i?86)
+ asm_syntax=i386
+ ;;
+powerpc)
+ asm_syntax=ppc
+ ;;
+*)
+ asm_syntax="$host_cpu"
+ ;;
esac
AC_SUBST(asm_syntax)
+test -r "$srcdir/libthreads/$asm_syntax/cthreads.h" || {
+ AC_MSG_WARN([unsupported CPU type $host_cpu])
+}
+
AC_ARG_ENABLE(profile,
[ --disable-profile do not build profiled libraries and programs])
AC_SUBST(enable_profile)