coin-or / Bcp

Branch-Cut-Price Framework
Other
26 stars 13 forks source link

configure fails at COPY_FROM_FILELIST part #12

Closed svigerske closed 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: @svigerske

Original creation time: 2007-08-09 15:45:00

Assignee: somebody

Version:

Hi,

when using Bcp as part of CoinAll on Solaris, the configure is failing in the section related to the copying of the examples

COIN_LINK_FROM_FILELIST(test/BAC, examples/BAC/testfiles.txt)
COIN_COPY_FROM_FILELIST(examples/BAC, examples/BAC/examplefiles.txt)
COIN_COPY_FROM_FILELIST(examples/MaxCut, examples/MaxCut/examplefiles.txt)

COIN_COPY_FROM_FILELIST(examples/MCF-1, examples/MCF-1/examplefiles.txt)
COIN_COPY_FROM_FILELIST(examples/MCF-2, examples/MCF-2/examplefiles.txt)
COIN_COPY_FROM_FILELIST(examples/MCF-3, examples/MCF-3/examplefiles.txt)

The message I get in configure is:

...
checking whether this is a VPATH configuration... yes
Creating links in test/BAC ...
cat: cannot open ..../../../../code/Bcp/examples/BAC/testfiles.txt
../../code/Bcp/configure: line 21395: cd: ..../..: No such file or directory
checking which command should be used to link input files... ln -s
...

I have a directory ./code where I checked out CoinAll, and do a VPATH-configure from ./debug .

It looks like something with the path is not working correct there. Unfortunately, I do not have the right autotools on this machine, so I did modification on Bcp/configure to get it working. The first thing was as follows:

--- configure   (revision 383)
+++ configure   (working copy)
`@``@` -21367,12 +21367,12 `@``@`
        updir=$t
 fi

-if test -e $srcdir/examples/BAC/testfiles.txt ; then
+if test -e $srcdir/Bcp/examples/BAC/testfiles.txt ; then
        echo Creating links in test/BAC ...
-       fromdir=$updir/$srcdir/`dirname examples/BAC/testfiles.txt`
+       fromdir=$updir/$srcdir/`dirname Bcp/examples/BAC/testfiles.txt`
        mkdir -p test/BAC
        cd test/BAC
-       for f in `cat $updir/$srcdir/examples/BAC/testfiles.txt` ; do
+       for f in `cat $updir/$srcdir/Bcp/examples/BAC/testfiles.txt` ; do
                if test ! -e $f ; then
                        fdir=`dirname $f`
                    mkdir -p $fdir

And similar for the next parts.

svigerske commented 5 years ago

Comment by ladanyi created at 2007-08-10 02:45:51

Resolution: fixed