<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -36,10 +36,8 @@ include PlatformInfo
 APXS2.nil? and raise &quot;Could not find 'apxs' or 'apxs2'.&quot;
 APACHE2CTL.nil? and raise &quot;Could not find 'apachectl' or 'apache2ctl'.&quot;
 HTTPD.nil? and raise &quot;Could not find the Apache web server binary.&quot;
-if PlatformInfo.apr_config_needed?
-	APR_FLAGS.nil? and raise &quot;Could not find Apache Portable Runtime (APR).&quot;
-	APU_FLAGS.nil? and raise &quot;Could not find Apache Portable Runtime Utility (APU).&quot;
-end
+APR_FLAGS.nil? and raise &quot;Could not find Apache Portable Runtime (APR).&quot;
+APU_FLAGS.nil? and raise &quot;Could not find Apache Portable Runtime Utility (APU).&quot;
 
 CXX = &quot;g++&quot;
 THREADING_FLAGS = &quot;-D_REENTRANT&quot;</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -46,13 +46,11 @@ class Installer
 		Dependencies::Rake,
 		Dependencies::Apache2,
 		Dependencies::Apache2_DevHeaders,
+		Dependencies::APR_DevHeaders,
+		Dependencies::APU_DevHeaders,
 		Dependencies::FastThread,
 		Dependencies::Rack
 	]
-	if PlatformInfo.apr_config_needed?
-		REQUIRED_DEPENDENCIES &lt;&lt; Dependencies::APR_DevHeaders
-		REQUIRED_DEPENDENCIES &lt;&lt; Dependencies::APU_DevHeaders
-	end
 	
 	def start
 		if natively_packaged?</diff>
      <filename>bin/passenger-install-apache2-module</filename>
    </modified>
    <modified>
      <diff>@@ -17,7 +17,6 @@
 #  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
 require 'rbconfig'
-require 'tempfile'
 
 # Wow, I can't believe in how many ways one can build Apache in OS
 # X! We have to resort to all sorts of tricks to make Passenger build
@@ -149,7 +148,7 @@ private
 	end
 	
 	def self.determine_apr_info
-		if !apr_config_needed? || APR_CONFIG.nil?
+		if APR_CONFIG.nil?
 			return nil
 		else
 			flags = `#{APR_CONFIG} --cppflags --includes`.strip
@@ -185,7 +184,7 @@ private
 	end
 	
 	def self.determine_apu_info
-		if !apr_config_needed? || APU_CONFIG.nil?
+		if APU_CONFIG.nil?
 			return nil
 		else
 			flags = `#{APU_CONFIG} --includes`.strip
@@ -267,28 +266,6 @@ public
 		end
 		return nil
 	end
-	
-	# Returns whether it is necessary to use information outputted by
-	# 'apr-config' and 'apu-config' in order to compile an Apache module.
-	# When Apache is installed with --with-included-apr, the APR/APU
-	# headers are placed into the same directory as the Apache headers,
-	# and so 'apr-config' and 'apu-config' won't be necessary in that case.
-	def self.apr_config_needed?
-		if @@apr_config_needed.nil?
-			filename = File.join(Dir.tmpdir, &quot;passenger-platform-check-#{Process.pid}.c&quot;)
-			File.open(filename, &quot;w&quot;) do |f|
-				f.puts(&quot;#include &lt;apr.h&gt;&quot;)
-			end
-			begin
-				@@apr_config_needed = !system(&quot;(gcc #{APXS2_FLAGS} -c '#{filename}' -o '#{filename}.o') &gt;/dev/null 2&gt;/dev/null&quot;)
-			ensure
-				File.unlink(filename) rescue nil
-				File.unlink(&quot;#{filename}.o&quot;) rescue nil
-			end
-		end
-		return @@apr_config_needed
-	end
-	@@apr_config_needed = nil
 
 	# The absolute path to the current Ruby interpreter.
 	RUBY = Config::CONFIG['bindir'] + '/' + Config::CONFIG['RUBY_INSTALL_NAME'] + Config::CONFIG['EXEEXT']</diff>
      <filename>lib/passenger/platform_info.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fa8f9eb766bc911e5d19257bf4418db238d552f4</id>
    </parent>
  </parents>
  <author>
    <name>Hongli Lai (Phusion)</name>
    <email>hongli@phusion.nl</email>
  </author>
  <url>http://github.com/FooBarWidget/passenger/commit/f3a594721f91754671bfd0a7f0b989e78f13ab24</url>
  <id>f3a594721f91754671bfd0a7f0b989e78f13ab24</id>
  <committed-date>2009-01-25T12:49:39-08:00</committed-date>
  <authored-date>2009-01-25T12:49:39-08:00</authored-date>
  <message>Temporarily revert &quot;Do not use apr-config/apu-config on platforms on which it is not necessary.&quot;

This reverts commit fa8f9eb766bc911e5d19257bf4418db238d552f4.</message>
  <tree>031b663075adb05cc505f3f7cf6e9e9c5fdbecbf</tree>
  <committer>
    <name>Hongli Lai (Phusion)</name>
    <email>hongli@phusion.nl</email>
  </committer>
</commit>
