summaryrefslogtreecommitdiff
path: root/testcurl.sh
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-22 07:57:52 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-22 07:57:52 +0000
commit6f6cffdc325bfea46a809d8936a172967df8b1ea (patch)
tree46ea302ed16cb91650da5bf9bc4c9281f1ae7934 /testcurl.sh
parent21a98ef2645ec3ce69201433331ffd6da81e9177 (diff)
downloadcurl-6f6cffdc325bfea46a809d8936a172967df8b1ea.tar.gz
pass the options to configure properly
Diffstat (limited to 'testcurl.sh')
-rwxr-xr-xtestcurl.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/testcurl.sh b/testcurl.sh
index df1799238..ee532d4ab 100755
--- a/testcurl.sh
+++ b/testcurl.sh
@@ -24,6 +24,7 @@ die(){
if [ -f setup ]; then
. "./setup"
+ infixed="$fixed"
fi
if [ -z "$name" ]; then
@@ -44,11 +45,11 @@ if [ -z "$desc" ]; then
fixed="3"
fi
-if [ -z "$confopts" ]; then
+if [ -z "$confopts" -a "$infixed" -lt "4" ]; then
echo "please enter your additional arguments to configure"
echo "examples: --with-ssl --enable-debug --enable-ipv6 --with-krb4"
read confopts
- fixed="3"
+ fixed="4"
fi
@@ -57,6 +58,7 @@ if [ "$fixed" -gt "0" ]; then
echo "email='$email'" >> setup
echo "desc='$desc'" >> setup
echo "confopts='$confopts'" >> setup
+ echo "fixed='$fixed'" >> setup
fi
echo "testcurl: STARTING HERE"
@@ -135,7 +137,7 @@ fi
cd "../$build"
# run configure script
-../curl/configure $1 2>&1
+../curl/configure $confopts 2>&1
if [ -f lib/Makefile ]; then
echo "testcurl: configure seems to have finished fine"