[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Re: modlogan once more
From: |
Akim Demaille |
Subject: |
Re: Fwd: Re: modlogan once more |
Date: |
18 Oct 2000 10:07:06 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
>>>>> "Dmitry" == Dmitry I Vereschaka <address@hidden> writes:
>> Due to OS/2 have no ln anyway I use 'set LN_S="cp.exe"' in my
>> .bashrc, and I think that creating config.status should relay on
>> $LN_S.
Why don't you `cp cp ln' once for all?
Anyway, after all Autoconf could do an effort. What about this:
Index: ChangeLog
from Akim Demaille <address@hidden>
* acspecific.m4 (AC_PROG_LN_S): If neither `ln -s' nor `ln' work,
fall back to `cp'.
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.303
diff -u -r1.303 acspecific.m4
--- acspecific.m4 2000/10/16 18:25:56 1.303
+++ acspecific.m4 2000/10/18 07:59:21
@@ -274,16 +274,18 @@
echo >conftest.file
if ln -s conftest.file conftest.sym 2>/dev/null; then
ac_cv_prog_LN_S="ln -s"
-else
+elif ln conftest.file conftest.sym 2>/dev/null; then
ac_cv_prog_LN_S=ln
-fi])dnl
-LN_S=$ac_cv_prog_LN_S
+else
+ ac_cv_prog_LN_S=cp
+fi
+rm -f conftest.sym conftest.file])dnl
+AC_SUBST([LN_S], [$ac_cv_prog_LN_S])
if test "$ac_cv_prog_LN_S" = "ln -s"; then
- AC_MSG_RESULT(yes)
+ AC_MSG_RESULT([yes])
else
- AC_MSG_RESULT(no)
+ AC_MSG_RESULT([no, using $LN_S])
fi
-AC_SUBST(LN_S)dnl
])# AC_PROG_LN_S
Index: doc/autoconf.texi
===================================================================
RCS file: /cvs/autoconf/doc/autoconf.texi,v
retrieving revision 1.367
diff -u -r1.367 autoconf.texi
--- doc/autoconf.texi 2000/10/17 12:33:01 1.367
+++ doc/autoconf.texi 2000/10/18 07:59:22
@@ -2704,7 +2704,8 @@
@ovindex LN_S
If @samp{ln -s} works on the current file system (the operating system
and file system support symbolic links), set output variable @code{LN_S}
-to @samp{ln -s}, otherwise set it to @samp{ln}.
+to @samp{ln -s}, otherwise if @samp{ln} works, set @code{LN_S} to
address@hidden, and otherwise set to @samp{cp}.
If the link is put in a directory other than the current directory, its
meaning depends on whether @samp{ln} or @samp{ln -s} is used. To safely
- Re: Fwd: Re: modlogan once more,
Akim Demaille <=