Browse Source

./configure --with-MODULE --enable-FEATURE

hewei.it 4 years ago
parent
commit
7d42765c71
1 changed files with 3 additions and 1 deletions
  1. 3 1
      configure

+ 3 - 1
configure

@@ -35,7 +35,6 @@ END
 }
 
 mkdir tmp 2>/dev/null
-cp config.ini tmp/config.mk
 while [ -n "$1" ]
 do
     opt="$1"
@@ -68,6 +67,9 @@ do
 
     if [ -n $KEY ]; then
         FEATURE=$(echo "$KEY" | tr "a-z-" "A-Z_")
+        if [ ! -f tmp/config.mk ]; then
+            cp config.ini tmp/config.mk
+        fi
         shini_write "tmp/config.mk" "" "$FEATURE" "$VAL"
     fi