Skip to content

Instantly share code, notes, and snippets.

@eric
Created May 12, 2010 04:23
Show Gist options
  • Save eric/398204 to your computer and use it in GitHub Desktop.
Save eric/398204 to your computer and use it in GitHub Desktop.
diff --git a/ext/extconf.rb b/ext/extconf.rb
index 48d052a..e82989e 100644
--- a/ext/extconf.rb
+++ b/ext/extconf.rb
@@ -68,6 +68,10 @@ def check_libmemcached
puts(cmd = "patch -p1 -Z < sasl.patch")
raise "'#{cmd}' failed" unless system(cmd)
+ puts "Touching aclocal.m4 in libmemcached."
+ puts(cmd = "touch -r #{BUNDLE_PATH}/m4/visibility.m4 #{BUNDLE_PATH}/configure.ac #{BUNDLE_PATH}/m4/pandora_have_sasl.m4")
+ raise "'#{cmd}' failed" unless system(cmd)
+
Dir.chdir(BUNDLE_PATH) do
puts(cmd = "env CFLAGS='-fPIC #{$CFLAGS}' LDFLAGS='-fPIC #{$LDFLAGS}' ./configure --prefix=#{HERE} --without-memcached --disable-
raise "'#{cmd}' failed" unless system(cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment