]> granicus.if.org Git - curl/commitdiff
if --enable-ares is used, we must run 'buildconf' in the ares dir before
authorDaniel Stenberg <daniel@haxx.se>
Sat, 24 Jul 2004 21:24:03 +0000 (21:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 24 Jul 2004 21:24:03 +0000 (21:24 +0000)
we run configure.

tests/testcurl.pl

index 983ae9e4eee670a661d18f969f108801d813676f..f27069b9899f1a15a33887e5b44297c6230eb76b 100755 (executable)
@@ -316,10 +316,25 @@ if ($CVS) {
     } else {
       mydie "buildconf was NOT successful";
     }
+
+    if($confopts =~ /--enable-ares/) {
+        logit "run buildconf for ares";
+        chdir "ares";
+        open(F, "./buildconf 2>&1 |") or die;
+        open(LOG, ">$buildlog") or die;
+        while (<F>) {
+            next if /warning: underquoted definition of/;
+            print;
+            print LOG;
+        }
+        close(F);
+        close(LOG);
+        chdir "..";
+    }
+
   } else {
-    logit "buildconf was successful (dummy message)";
+      logit "buildconf was successful (dummy message)";
   }
-
 }
 
 if ($gnulikebuild) {
@@ -375,10 +390,11 @@ if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) {
 
   logit "build ares";
   chdir "ares";
+
   if ($targetos ne '') {
-    open(F, "make -f Makefile.$targetos 2>&1 |") or die;
+      open(F, "make -f Makefile.$targetos 2>&1 |") or die;
   } else {
-    open(F, "make 2>&1 |") or die;
+      open(F, "make 2>&1 |") or die;
   }
   while (<F>) {
     s/$pwd//g;