Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

cygwin : cygdrive test on Makefile

2009-10-21
2013-01-09
  • marco atzeri
    marco atzeri
    2009-10-21

    On atlas-3.9.16( and previous) Makefile
    the following test is present


        #
        #  If on cygwin, prefix blddir with /cygdrive//
        #
       
        if
        then
           if
           then
                blddir=/cygdrive/c/cygwin/$blddir
           else
              if
              then
                blddir=/cygdrive/d/cygwin/$blddir
              fi
           fi
        fi


    I see no reason for such test as
    /$blddir works fine in cygwin.
    Moreover it could create problems to any people trying
    to build atlas on several cygwin root directories that
    in cygwin-1.7 are alllowed.

    Is it eventually a ancient workaround ?

    Marco

     
  • marco atzeri
    marco atzeri
    2009-10-21

    of course the test is on "configure" not on "Makefile".

    Sorry

    Marco

     
  • The idea was to get a fully-qualified path.  I believe I needed it at some point because some part of the code (maybe -fno-cygwin compiled code?) wouldn't work w/o the drive letter.

    How would the above trick mess you up?  Maybe you are saying what if the user has such a directory on both C & D directories, and then ATLAS might choose the wrong one?

    Thanks,
    Clint

     
  • marco atzeri
    marco atzeri
    2009-10-22

    /$blddir should be a fully qualified path.

    I removed the /cygdrive/c/cygwin, and the build was fine,
    as for me
    /cygdrive/c/cygwin is used for cygwin 1.5
    while
    /cygdrive/c/cygwin2 is used for cygwin-1.7

    Regards
    Marco