delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/07/00:50:13

From: msacks AT y2000 DOT com (Marc Sacks)
Subject: Trouble with configure; root directory changed on cd
7 May 1998 00:50:13 -0700 :
Message-ID: <01BD7909.73BFD420.msacks.cygnus.gnu-win32@y2000.com>
Reply-To: "msacks AT y2000 DOT com" <msacks AT y2000 DOT com>
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>

I have been unable to run src/configure.  I've encountered an assortment of 
problems, most of which I've been able to do something about.  This one's 
got me stumped, though.

The script chugs along fine until it starts recursing.  Then it cd's to 
another directory (in my case, d:/cygnus/b19/mmalloc).  No problem with 
that, but somehow it changes the definition of root to be that directory as 
well, so when it tries to run src/mmalloc/configure it can't find /bin/sh, 
since the value of root has been changed to  d:/cygnus/b19/mmalloc.

Does anyone have any idea how or why this could happen, or what to do about 
it?

The configure code where the problem pops up is:

     for configdir in ${configdirs} ; do


                if [ -d ${srcdir}/${configdir} ] ; then
                        eval echo Configuring ${configdir}... ${redirect}
                        case "${srcdir}" in
                        ".") ;;
                        *)
                                if [ ! -d ./${configdir} ] ; then
                                        if mkdir ./${configdir} ; then
                                                true
                                        else
                                                echo '***' "${progname}: 
could not make ${PWD=`pwd`}/${configdir}" 1>&2
                                                exit 1
                                        fi
                                fi
                                ;;
                        esac

                        POPDIR=${PWD=`pwd`}
                        cd ${configdir} 	

I don't see anything here that changes the meaning of root, but after the 
cd at the end it's been changed.

Thanks for your help, anybody.

Marc Sacks
msacks AT primeon DOT com


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019