I did some more debugging of the problem, and found out a simple fix:

--- apxs.pl.dist        Tue Jun 16 12:37:32 1998
+++ apxs.pl     Tue Jun 16 12:37:47 1998
@@ -211,11 +211,11 @@
     my (@cmds) = @_;
     my ($cmd, $rc);
 
     foreach $cmd (@cmds) {
         print STDERR "$cmd\n";
-        $rc = system("$cmd");
+        $rc = system(split(' ', $cmd));
         if ($rc != 0) {
             printf(STDERR "apxs:Break: Command failed with rc=%d\n", $rc << 8);
             exit(1);
         }
     }

...although I don't know if this breaks apxs on some other platforms,
but I assume that apxs commands don't have to be passed throuhg /bin/sh in
any situation. (BTW, why was the system() argument string $cmd surrounded
with the double-quotes anyway? :-)

--
Janne Snabb / Broken Pipe Oy
[EMAIL PROTECTED]

Reply via email to