From 087a6c86f55b8ddbd6a5bc1961e28a044225475f Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 2 Sep 2003 16:41:50 +0000 Subject: 2003-09-02 Ralf Corsepius * Makefile.am, configure.ac, autotools/autoconf-rtems.spec.in, autotools/automake-rtems.spec.in, binutils/Makefile.am, binutils/base-binutils.add, binutils/binutils.add, binutils/mkspec.in, binutils/target-binutils.add, common/common.add.in, cpukit/Makefile.am, gcc3newlib/Makefile.am, gcc3newlib/base-g77.add, gcc3newlib/base-gcc.add, gcc3newlib/base-gcj.add, gcc3newlib/base-gnat.add, gcc3newlib/gccnewlib.add, gcc3newlib/mkspec.in, gcc3newlib/target-c++.add, gcc3newlib/target-g77.add, gcc3newlib/target-gcc.add, gcc3newlib/target-gcj.add, gcc3newlib/target-gnat.add, gcc3newlib/target-objc.add, gccnewlib/Makefile.am, gdb/Makefile.am, rtems/Makefile.am, rtemsdoc/Makefile.am: Merger from rtems-4-6-branch. * common/common.am: New. --- scripts/configure.ac | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'scripts/configure.ac') diff --git a/scripts/configure.ac b/scripts/configure.ac index 69dd444026..7ce93f907f 100644 --- a/scripts/configure.ac +++ b/scripts/configure.ac @@ -4,7 +4,7 @@ AC_PREREQ(2.57) AC_INIT([rtems-scripts],[_RTEMS_VERSION],[rtems-bugs@rtems.com]) AC_CONFIG_SRCDIR([binutils]) RTEMS_TOP([..]) -AC_PREFIX_DEFAULT([/opt/rtems]) + AM_INIT_AUTOMAKE([no-define foreign 1.7.2]) AC_CANONICAL_HOST @@ -12,6 +12,17 @@ AC_CANONICAL_HOST test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache . ./setup.cache +AC_ARG_ENABLE([rpmprefix], +[ --enable-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_MSG_CHECKING(for rpm SPECS directory) # Allow users to override RPM_SPECSdir from the environment. if test -z "$RPM_SPECSdir" ; @@ -66,6 +77,8 @@ BSPVERS="${rtems_version}" AC_SUBST(RTEMS_VERSION) AC_SUBST(BSPVERS) AC_SUBST(RPM_CPU) +AC_SUBST(rpmprefix,$rpmprefix) +AC_SUBST(rpmgroup,[Rtems/][RTEMS_API]) AC_CONFIG_FILES([Makefile binutils/Makefile -- cgit v1.2.3