From c8bd25ac98cd1b49e96bf85d0f2c6c0ec95aca2f Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 24 Nov 2009 14:13:25 -0800 Subject: [PATCH] Add 'srpm' --with-config option for creation of spec files. --- config/zfs-build.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/zfs-build.m4 b/config/zfs-build.m4 index ccfd2eda22..4b47807790 100644 --- a/config/zfs-build.m4 +++ b/config/zfs-build.m4 @@ -98,6 +98,7 @@ AC_DEFUN([ZFS_AC_CONFIG], [ CMDDIR=$TOPDIR/cmd MODDIR=$TOPDIR/module SCRIPTDIR=$TOPDIR/scripts + TARGET_ASM_DIR=asm-generic AC_SUBST(TOPDIR) AC_SUBST(BUILDDIR) @@ -105,11 +106,12 @@ AC_DEFUN([ZFS_AC_CONFIG], [ AC_SUBST(CMDDIR) AC_SUBST(MODDIR) AC_SUBST(SCRIPTDIR) + AC_SUBST(TARGET_ASM_DIR) ZFS_CONFIG=all AC_ARG_WITH([config], AS_HELP_STRING([--with-config=CONFIG], - [Config file 'kernel|user|all']), + [Config file 'kernel|user|all|srpm']), [ZFS_CONFIG="$withval"]) AC_MSG_CHECKING([zfs config]) @@ -121,10 +123,11 @@ AC_DEFUN([ZFS_AC_CONFIG], [ user) ZFS_AC_CONFIG_USER ;; all) ZFS_AC_CONFIG_KERNEL ZFS_AC_CONFIG_USER ;; + srpm) ;; *) AC_MSG_RESULT([Error!]) AC_MSG_ERROR([Bad value "$ZFS_CONFIG" for --with-config, - user kernel|user|all]) ;; + user kernel|user|all|srpm]) ;; esac AM_CONDITIONAL([CONFIG_USER],