aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-06-19 21:56:15 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-06-19 21:56:15 -0700
commit2f5776b244a4a2a8297fee9e0160c835430e1f06 (patch)
tree55dfcf8b14585830acc927dfd3ef3eb6ee74a37a
parent1e163c715550e20e239976a22e00869884713e54 (diff)
downloadpk-cs250.zip
pk-cs250.tar.gz
pk-cs250.tar.bz2
configure argument --host=riscv is now impliedcs250
-rw-r--r--aclocal.m416
-rwxr-xr-xconfigure6
-rw-r--r--configure.ac2
3 files changed, 24 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 15353f2..254eb82 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -343,3 +343,19 @@ AC_DEFUN([MCPPBS_GROUP],
])
])
+
+#-------------------------------------------------------------------------
+# AX_DEFAULT_CONFIGURE_ARG
+#-------------------------------------------------------------------------
+# Simple little macro which adds a configure commane line option to an
+# internal autoconf shell variable. Not sure how safe this is, but it
+# seems to work fine.
+#
+# Author : Christopher Batten
+# Date : August 20, 2009
+
+AC_DEFUN([AX_DEFAULT_CONFIGURE_ARG],
+[
+ AC_MSG_NOTICE([adding default configure arg: $1])
+ ac_configure_args="$1 ${ac_configure_args}"
+])
diff --git a/configure b/configure
index 520e099..786c66f 100755
--- a/configure
+++ b/configure
@@ -3912,6 +3912,12 @@ CFLAGS="-Wall -Os -std=gnu99"
LIBS="-lgcc"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: adding default configure arg: --host=riscv" >&5
+$as_echo "$as_me: adding default configure arg: --host=riscv" >&6;}
+ ac_configure_args="--host=riscv ${ac_configure_args}"
+
+
#-------------------------------------------------------------------------
# MCPPBS subproject list
#-------------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index bbd9b43..e09605c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,8 @@ AC_HEADER_STDC
AC_SUBST([CFLAGS], ["-Wall -Os -std=gnu99"])
AC_SUBST([LIBS], ["-lgcc"])
+AX_DEFAULT_CONFIGURE_ARG([--host=riscv])
+
#-------------------------------------------------------------------------
# MCPPBS subproject list
#-------------------------------------------------------------------------