From 6ce313006791b2e804c6de79c349076b370022e5 Mon Sep 17 00:00:00 2001 From: knu Date: Tue, 14 Aug 2001 20:05:21 +0000 Subject: * ext/digest/*/extconf.rb: really fix so that they build from any directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/digest/md5/extconf.rb | 4 ++-- ext/digest/rmd160/extconf.rb | 4 ++-- ext/digest/sha1/extconf.rb | 4 ++-- ext/digest/sha2/extconf.rb | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'ext/digest') diff --git a/ext/digest/md5/extconf.rb b/ext/digest/md5/extconf.rb index 0d3b1ca7ea..93a14025d0 100644 --- a/ext/digest/md5/extconf.rb +++ b/ext/digest/md5/extconf.rb @@ -1,9 +1,9 @@ -# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $ +# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $ # $Id$ require "mkmf" -$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.." +$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." $objs = [ "md5.#{$OBJEXT}", diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb index a1b178acb7..ce53c77b55 100644 --- a/ext/digest/rmd160/extconf.rb +++ b/ext/digest/rmd160/extconf.rb @@ -1,9 +1,9 @@ -# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $ +# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $ # $Id$ require "mkmf" -$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.." +$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." $objs = [ "rmd160.#{$OBJEXT}", diff --git a/ext/digest/sha1/extconf.rb b/ext/digest/sha1/extconf.rb index 9ab198110a..45e374e369 100644 --- a/ext/digest/sha1/extconf.rb +++ b/ext/digest/sha1/extconf.rb @@ -1,9 +1,9 @@ -# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $ +# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $ # $Id$ require "mkmf" -$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.." +$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." $objs = [ "sha1.#{$OBJEXT}", diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb index dce1115bf8..f593c79111 100644 --- a/ext/digest/sha2/extconf.rb +++ b/ext/digest/sha2/extconf.rb @@ -1,9 +1,9 @@ -# $RoughId: extconf.rb,v 1.1 2001/07/13 15:38:27 knu Exp $ +# $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $ # $Id$ require "mkmf" -$CFLAGS << " -DHAVE_CONFIG_H -I$(srcdir)/.." +$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." $objs = [ "sha2.#{$OBJEXT}", @@ -17,8 +17,8 @@ have_header("inttypes.h") have_header("unistd.h") -if try_run(<