From 5e94e5424e9b070df6752dedd2d983e0a6b9cdc1 Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 26 Sep 2002 17:55:16 +0000 Subject: Add a knob WITH_BUNDLED_ENGINES to test.sh. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/digest/test.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ext/digest/test.sh') diff --git a/ext/digest/test.sh b/ext/digest/test.sh index 88b34b04c..6fb07d217 100644 --- a/ext/digest/test.sh +++ b/ext/digest/test.sh @@ -14,14 +14,20 @@ ${MAKE} mkdir -p lib/digest for algo in md5 rmd160 sha1 sha2; do + args=--with-cflags="${CFLAGS}" + + if [ $WITH_BUNDLED_ENGINES ]; then + args="$args --with-bundled-$algo" + fi + (cd $algo && - ${RUBY} extconf.rb --with-cflags="${CFLAGS}"; + ${RUBY} extconf.rb $args; ${MAKE} clean; ${MAKE}) ln -sf ../../$algo/$algo.so lib/digest/ done -${RUBY} -I. -I./lib test.rb +${RUBY} -I. -I./lib test.rb rm lib/digest/*.so rmdir lib/digest -- cgit