]> git.proxmox.com Git - mirror_spl.git/commitdiff
Add 'srpm' --with-config option for creation of spec files.
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 24 Nov 2009 22:21:45 +0000 (14:21 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 24 Nov 2009 22:21:45 +0000 (14:21 -0800)
config/spl-build.m4
configure

index f50e1757fb63e5b8c73f1331be3b7adece2ae8d9..8e0eca6d20d882970099660ff98410d960b96e33 100644 (file)
@@ -191,7 +191,7 @@ AC_DEFUN([SPL_AC_CONFIG], [
         SPL_CONFIG=all
         AC_ARG_WITH([config],
                 AS_HELP_STRING([--with-config=CONFIG],
-                [Config file 'kernel|user|all']),
+                [Config file 'kernel|user|all|srpm']),
                 [SPL_CONFIG="$withval"])
 
         AC_MSG_CHECKING([spl config])
@@ -203,10 +203,11 @@ AC_DEFUN([SPL_AC_CONFIG], [
                 user)   SPL_AC_CONFIG_USER   ;;
                 all)    SPL_AC_CONFIG_KERNEL
                         SPL_AC_CONFIG_USER   ;;
+               srpm)                        ;;
                 *)
                 AC_MSG_RESULT([Error!])
                 AC_MSG_ERROR([Bad value "$SPL_CONFIG" for --with-config,
-                              user kernel|user|all]) ;;
+                              user kernel|user|all|srpm]) ;;
         esac
 
         AM_CONDITIONAL([CONFIG_USER],
index 3beeb5df064a06bd0a6e3c4205f33b14804094f6..8f644abf45bbf222b1c9172202f1b46c75b409c5 100755 (executable)
--- a/configure
+++ b/configure
@@ -1049,7 +1049,7 @@ Optional Packages:
                           both]
   --with-tags[=TAGS]
                           include additional configurations [automatic]
-  --with-config=CONFIG    Config file 'kernel|user|all'
+  --with-config=CONFIG    Config file 'kernel|user|all|srpm'
   --with-linux=PATH       Path to kernel source
   --with-linux-obj=PATH   Path to kernel build objects
 
@@ -25450,13 +25450,14 @@ _ACEOF
 
 
                            ;;
+               srpm)                        ;;
                 *)
                 echo "$as_me:$LINENO: result: Error!" >&5
 echo "${ECHO_T}Error!" >&6
                 { { echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
-                              user kernel|user|all" >&5
+                              user kernel|user|all|srpm" >&5
 echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
-                              user kernel|user|all" >&2;}
+                              user kernel|user|all|srpm" >&2;}
    { (exit 1); exit 1; }; } ;;
         esac