summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-10-28 07:30:13 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-10-28 07:30:13 +0000
commit62fdded1ace1f64638ed990019a0f5fb7934ac35 (patch)
treefd81df2f1b1b1df2c3d0856e3ce692dd844a2b35
parent91f706a50173d54abd972d29df357482a0c9b983 (diff)
downloadrtems-62fdded1ace1f64638ed990019a0f5fb7934ac35.tar.bz2
2004-10-28 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 707/make_build * configure.ac: Add --enable-rpcgen.
-rw-r--r--c/src/ChangeLog5
-rw-r--r--c/src/configure.ac14
2 files changed, 17 insertions, 2 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog
index 23794684f4..b99658d1e3 100644
--- a/c/src/ChangeLog
+++ b/c/src/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-28 Ralf Corsepius <ralf_corsepius@rtems.org>
+
+ PR 707/make_build
+ * configure.ac: Add --enable-rpcgen.
+
2004-10-27 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 700/rtems_misc
diff --git a/c/src/configure.ac b/c/src/configure.ac
index 64450d8ac2..900f9f701b 100644
--- a/c/src/configure.ac
+++ b/c/src/configure.ac
@@ -29,6 +29,14 @@ else
AC_MSG_ERROR(no)
fi
+AC_ARG_ENABLE(rpcgen,
+[AS_HELP_STRING([--enable-rpcgen],[rebuild rpcgen-generated sources])],
+[case "${enable_rpcgen}" in
+ yes) enable_rpcgen=yes ;;
+ no) enable_rpcgen=no ;;
+ *) enable_rpcgen=no ;;
+esac],[enable_rpcgen=yes])
+
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
RTEMS_CHECK_NETWORKING(RTEMS_BSP)
@@ -39,7 +47,7 @@ AS_IF([test "$HAS_NETWORKING" = "yes"],[
])
])
-AC_CHECK_PROG(RPCGEN,rpcgen,rpcgen,no)
+AC_CHECK_PROG(RPCGEN,rpcgen,rpcgen)
AC_PROG_AWK
AC_MSG_NOTICE([setting up make/custom])
@@ -233,7 +241,9 @@ AS_IF([test -f $srcdir/lib/libbsp/$RTEMS_CPU/$RTEMS_BSP_FAMILY/wrapup/Makefile.a
AM_CONDITIONAL([HAS_WRAPUP_LIBBSP],[test $HAS_WRAPUP_LIBBSP = yes])
AM_CONDITIONAL([MULTILIB],[test x"${enable_multilib}" = x"yes"])
-AM_CONDITIONAL(RPCTOOLS, test "$rpctools" != "no")
+AM_CONDITIONAL([RPCTOOLS],[test "$RPCGEN" = rpcgen \
+&& test -n "$AWK" \
+&& test "$enable_rpcgen" = yes])
RTEMS_PROJECT_ROOT