id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3181	mc.sh should depend on config.status	egmont	andrew_b	"When you re-run ./configure with a different --prefix, mc.sh doesn't get regenerated. Hence an incorrect version can be installed.

Detailed scenario:

I usually run ""./configure --prefix=/tmp/MC"" when I'm experimenting, and ""./configure"" (with implicit --prefix=/usr/local) when making a stable build.

I also have this fixed line in my `.bashrc`:
{{{
. /usr/local/libexec/mc/mc.sh
}}}

Consider the following usage:
{{{
git clone [...]
cd mc
[make experimental modifications]
./autogen.sh
./configure --prefix=/tmp/MC
make
make install
/tmp/MC/bin/mc [test the changes, figure out they're good to be deployed]
./configure [with implicit --prefix=/usr/local]
make
sudo make install
}}}

I end up with a `/usr/local/libexec/mc/mc.sh` that contains
{{{
alias mc='. /tmp/MC/libexec/mc/mc-wrapper.sh'
}}}

So starting a new shell and just typing `mc` launches the one under /tmp/MC, clearly not what I'd expect."	defect	closed	minor	4.8.14	mc-core	master	fixed					merged	committed-master
