Keep existing modules.cfg in the building tree.

This commit is contained in:
suzuki toshiya 2009-06-27 14:38:32 +09:00
parent 66d308edfd
commit 912f039743
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2009-06-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Keep existing modules.cfg in the building tree.
* configure: When configure is executed out of the source tree,
existing modules.cfg in building directory should be kept as
the building in the source tree.
2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Filter --srcdir= option before invoking builds/unix/configure.

6
configure vendored
View File

@ -82,8 +82,10 @@ fi
if test "$abs_curr_dir" != "$abs_ft2_dir"; then
mkdir reference
echo "Copying \`modules.cfg'"
cp $abs_ft2_dir/modules.cfg $abs_curr_dir
if test ! -r $abs_curr_dir/modules.cfg; then
echo "Copying \`modules.cfg'"
cp $abs_ft2_dir/modules.cfg $abs_curr_dir
fi
echo "Generating \`Makefile'"
echo "TOP_DIR := $abs_ft2_dir" > Makefile
echo "OBJ_DIR := $abs_curr_dir" >> Makefile