Config::CONFIG['srcdir'] in cvs HEAD

P

Paul Brannan

I noticed that this variable went away somewhere in 1.9; it seems to be
present in 1.6 and 1.8. In 1.9, there is Config::CONFIG['abs_srcdir'],
but its value is not useful to me:

CONFIG["abs_srcdir"] = "$(ac_abs_srcdir)"
CONFIG["abs_top_srcdir"] = "$(ac_abs_top_srcdir)"
...

I'm not sure if there's something wrong with the code that expands these
variables or the the code that generates rbconfig.rb. Other variables
like CONFIG['LIBRUBY'] seem to be okay.

FWIW, I'm using autoconf 2.59 (also tried with 2.57; same results).

Questions:

1. Why has CONFIG['srcdir'] gone away?

2. Why is CONFIG['abs_srcdir'] set to the value it is? Will this be
fixed?

Thanks,

Paul
 
N

nobu.nokada

Hi,

At Sat, 24 Jul 2004 05:49:48 +0900,
Paul Brannan wrote in [ruby-talk:107314]:
Questions:

1. Why has CONFIG['srcdir'] gone away?

Because it has no meanings after installation.
2. Why is CONFIG['abs_srcdir'] set to the value it is? Will this be
fixed?

Just not noticed. Variables whose value starts with ac_ are
all useless?


Index: mkconfig.rb
===================================================================
RCS file: /cvs/ruby/src/ruby/mkconfig.rb,v
retrieving revision 1.37
diff -u -2 -p -r1.37 mkconfig.rb
--- mkconfig.rb 21 Mar 2004 23:21:29 -0000 1.37
+++ mkconfig.rb 30 Jul 2004 10:02:33 -0000
@@ -43,4 +43,5 @@ File.foreach "config.status" do |line|
val = $2 || ""
next if /^(INSTALL|DEFS|configure_input|srcdir|top_srcdir)$/ =~ name
+ next if /^\$\(ac_[a-z0-9_]+\)$/ =~ val
next if $install_name and /^RUBY_INSTALL_NAME$/ =~ name
next if $so_name and /^RUBY_SO_NAME$/ =~ name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,150
Messages
2,570,853
Members
47,394
Latest member
Olekdev

Latest Threads

Top