From: oetiker Date: Mon, 22 Sep 2008 05:38:28 +0000 (+0000) Subject: use default prefix for ruby install if no user defined prefix is available X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4cd8d6bb4aecb2d0773190c802e648b492823c11;p=rrdtool-all.git use default prefix for ruby install if no user defined prefix is available git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1515 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/configure.ac b/program/configure.ac index 451502cd..f12c63e7 100644 --- a/program/configure.ac +++ b/program/configure.ac @@ -597,6 +597,8 @@ else fi fi +rpref=$prefix +test "$rpref" = "NONE" && rpref=$ac_default_prefix dnl pass additional ruby options when generating Makefile from Makefile.PL AC_ARG_ENABLE(ruby-site-install, @@ -604,7 +606,7 @@ AC_ARG_ENABLE(ruby-site-install, together with rrdtool in $prefix/lib/ruby. You have to add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable for ruby to find the RRD.so file.], -[RUBY_MAKE_OPTIONS=],[RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$prefix/lib/ruby"]) +[RUBY_MAKE_OPTIONS=],[RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$rpref/lib/ruby"]) AC_ARG_WITH(ruby-options,