]> granicus.if.org Git - php/commitdiff
Removing the automake-related output. The build no longer uses automake.
authorJon Parise <jon@php.net>
Mon, 11 Jul 2005 06:32:02 +0000 (06:32 +0000)
committerJon Parise <jon@php.net>
Mon, 11 Jul 2005 06:32:02 +0000 (06:32 +0000)
While I'm here, rewrite the PHP_AUTOCONF-related code to more closely
match the conventions used elsewhere in this section.  The result should
be functionally the same as before.

run-tests.php

index 34bb1632c1629dac843ec237a1e823409710d4fc..31bea0c522f57169c4ff3205d5825b637a163693 100755 (executable)
@@ -497,16 +497,15 @@ if (!getenv('NO_INTERACTION')) {
                
                $failed_tests_data .= "\n" . $sep . 'BUILD ENVIRONMENT' . $sep;
                $failed_tests_data .= "OS:\n" . PHP_OS . " - " . php_uname() . "\n\n";
-               $ldd = $automake = $autoconf = $sys_libtool = $libtool = $compiler = 'N/A';
+               $ldd = $autoconf = $sys_libtool = $libtool = $compiler = 'N/A';
 
                if (substr(PHP_OS, 0, 3) != "WIN") {
-                       /* Determine the names of the autotools executables. */
-                       $automake = (!empty($_ENV['PHP_AUTOMAKE'])) ? $_ENV['PHP_AUTOMAKE'] : 'automake';
-                       $autoconf = (!empty($_ENV['PHP_AUTOCONF'])) ? $_ENV['PHP_AUTOCONF'] : 'autoconf';
-
-                       /* Extract the tools' versions (overwriting our local variables). */
-                       $automake = shell_exec("$automake --version");
-                       $autoconf = shell_exec("$autoconf --version");
+                       /* If PHP_AUTOCONF is set, use it; otherwise, use 'autoconf'. */
+                       if (!empty($_ENV['PHP_AUTOCONF'])) {
+                               $autoconf = shell_exec($_ENV['PHP_AUTOCONF'] . ' --version');
+                       } else {
+                               $autoconf = shell_exec('autoconf --version');
+                       }
 
                        /* Always use the generated libtool - Mac OSX uses 'glibtool' */
                        $libtool = shell_exec($CUR_DIR . '/libtool --version');
@@ -527,7 +526,6 @@ if (!getenv('NO_INTERACTION')) {
                        }
                        $ldd = shell_exec("ldd $php 2>/dev/null");
                }
-               $failed_tests_data .= "Automake:\n$automake\n";
                $failed_tests_data .= "Autoconf:\n$autoconf\n";
                $failed_tests_data .= "Bundled Libtool:\n$libtool\n";
                $failed_tests_data .= "System Libtool:\n$sys_libtool\n";