]> granicus.if.org Git - neomutt/commitdiff
autosetup: expand --everything in `neomutt -v`
authorRichard Russon <rich@flatcap.org>
Sat, 11 Nov 2017 23:40:23 +0000 (23:40 +0000)
committerRichard Russon <rich@flatcap.org>
Sun, 12 Nov 2017 11:34:01 +0000 (11:34 +0000)
auto.def

index 36eff6a749922ace04f4bf4e50f88817457303d0..00a931f56d1f69a3f57965a865f37d0cb7f101bc 100644 (file)
--- a/auto.def
+++ b/auto.def
@@ -299,7 +299,10 @@ if {[get-define want-everything]} {
   foreach opt {gpgme pgp smime notmuch lua tokyocabinet kyotocabinet bdb 
                gdbm qdbm lmdb} {
     define want-$opt
+    append conf_options "--$opt "
   }
+} else {
+  set conf_options "$::argv"
 }
 
 ###############################################################################
@@ -808,7 +811,7 @@ if {[get-define want-gss]} {
 set conststrings "\
   unsigned char cc_version\[\] = {[text2c $cc_version]};\n\
   unsigned char cc_cflags\[\] = {[text2c [get-define CFLAGS]]};\n\
-  unsigned char configure_options\[\] = {[text2c $::argv]};\n"
+  unsigned char configure_options\[\] = {[text2c $conf_options]};\n"
 if {[catch {set fd [open conststrings.c w]
             puts $fd $conststrings
             close $fd} msg]} {