autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_AC_OUTPUT_LINKS


From: Andreas Buening
Subject: _AC_OUTPUT_LINKS
Date: Fri, 28 Jun 2002 23:26:47 +0200

Hello!

Some time ago there was a discussion how to solve
ln -s ... || ln ... || AC_MSG_ERROR(...)
if neither "ln -s" nor ln works. I thought this had been
solved but it hadn't. Unfortunately, I don't remember
which solution has been finally proposed but it was
something with $as_ln_s.


A quick'n dirty workaround (also for autoconf 2.53a):

----------------------------
--- old/autoconf-2.53/lib/autoconf/status.m4    Mon Mar  4 14:34:20 2002
+++ gnu/autoconf-2.53/lib/autoconf/status.m4    Fri Jun 28 22:45:12 2002
@@ -768,7 +768,8 @@
   # Make a symlink if possible; otherwise try a hard link.
   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
     ln $srcdir/$ac_source $ac_dest ||
-    AC_MSG_ERROR([cannot link $ac_dest to $srcdir/$ac_source])
+      (cp -p $srcdir/$ac_source $ac_dest &&
+        AC_MSG_WARN([cannot link $ac_dest to $srcdir/$ac_source, using cp -p in
stead]))
 m4_ifset([AC_LIST_LINKS_COMMANDS],
 [  # Run the commands associated with the file.
   case $ac_file in
----------------------------

bye,
Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]