public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* One more try for my patch
@ 1998-02-18 14:54 H.J. Lu
  1998-02-18 23:56 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 1998-02-18 14:54 UTC (permalink / raw)
  To: egcs

Hi,

This is my old patch which handles absolute pathname and pathname
relative to the build directory for file link. It is for the toplevel
configure.

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
---
Wed Feb 18 08:08:17 1997  H.J. Lu  (hjl@gnu.org)

	* configure: Handle absolute pathname and pathname relative
	to the build directory for file link.

Index: configure
===================================================================
RCS file: /home/work/cvs/gnu/egcs/configure,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 configure
--- configure	1997/09/17 20:09:18	1.1.1.2
+++ configure	1997/09/17 20:22:21
@@ -992,27 +1006,34 @@
                 set ${links}; link=$1; shift; links=$*
 
                 if [ ! -r ${srcdir}/${file} ] ; then
+                  if [ ! -r ${file} ] ; then
+		    
                         echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
                         echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
                         exit 1
+		  else
+			srcfile=${file}
+		  fi
+		else
+			srcfile=${srcdir}/${file}
                 fi
 
                 ${remove} -f ${link}
 		# Make a symlink if possible, otherwise try a hard link
-		if ${symbolic_link} ${srcdir}/${file} ${link} >/dev/null 2>&1 ; then
+		if ${symbolic_link} ${srcfile} ${link} >/dev/null 2>&1 ; then
 			true
 		else
 			# We need to re-remove the file because Lynx leaves a 
 			# very strange directory there when it fails an NFS symlink.
 			${remove} -r -f ${link}
-			${hard_link} ${srcdir}/${file} ${link}
+			${hard_link} ${srcfile} ${link}
 		fi
                 if [ ! -r ${link} ] ; then
-                        echo '***' "${progname}: unable to link \"${link}\" to \"${srcdir}/${file}\"." 1>&2
+                        echo '***' "${progname}: unable to link \"${link}\" to \"${srcfile}\"." 1>&2
                         exit 1
                 fi
 
-                echo "Linked \"${link}\" to \"${srcdir}/${file}\"."
+                echo "Linked \"${link}\" to \"${srcfile}\"."
         done
 
         # Create a .gdbinit file which runs the one in srcdir

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: One more try for my patch
  1998-02-18 14:54 One more try for my patch H.J. Lu
@ 1998-02-18 23:56 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1998-02-18 23:56 UTC (permalink / raw)
  To: H.J. Lu; +Cc: egcs

  In message < m0y5GmN-00058KC@ocean.lucon.org >you write:
  > Hi,
  > 
  > This is my old patch which handles absolute pathname and pathname
  > relative to the build directory for file link. It is for the toplevel
  > configure.
Your patch has not been lost.  I'm just concentrating on more important
issues like the 1.0.2 stuff.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-18 23:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-18 14:54 One more try for my patch H.J. Lu
1998-02-18 23:56 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).