summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-02-01 08:27:24 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-02-01 08:27:24 +0000
commit9b962b28b0d7b2e5484ad6186049ad17ee0360c7 (patch)
tree50c282b58d107f3095c2d518f3b4a310106171c1
parent34869f51be3cee00a62bc1e6a11b61dbb6dcc641 (diff)
downloadrtems-9b962b28b0d7b2e5484ad6186049ad17ee0360c7.tar.bz2
2004-02-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/rpms.m4: New (extracted from scripts/configure.ac).
-rw-r--r--ChangeLog4
-rw-r--r--aclocal/rpm.m420
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3fe36aa982..2e82425354 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * aclocal/rpms.m4: New (extracted from scripts/configure.ac).
+
2004-01-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Require automake >= 1.8.2.
diff --git a/aclocal/rpm.m4 b/aclocal/rpm.m4
new file mode 100644
index 0000000000..2f19a5a3a8
--- /dev/null
+++ b/aclocal/rpm.m4
@@ -0,0 +1,20 @@
+AC_DEFUN([RTEMS_ENABLE_RPMPREFIX],[
+AC_ARG_ENABLE([rpmprefix],
+[ --enable-rpmprefix=<rpmprefix> prefix rpms],
+[case $enable_rpmprefix in
+yes ) rpmprefix="rtems-"]RTEMS_API["-";;
+no ) rpmprefix="%{nil}";;
+* ) AS_IF([test -z "$enable_rpmprefix"],
+ [rpmprefix="%{nil}"],
+ [rpmprefix="$enable_rpmprefix"]);;
+esac],
+[rpmprefix="rtems-"]RTEMS_API["-"])
+
+AC_ARG_ENABLE([osversions],
+[ --enable-osversions whether to use version numbers in os-tripples],
+[case $enable_osversions in
+yes ) osversion=RTEMS_API;;
+* ) osversion=;;
+esac],
+[osversion=])
+])