om Tromey.
Index: lib/lstat.c
===
RCS file: /cvsroot/gnulib/gnulib/lib/lstat.c,v
retrieving revision 1.5
diff -p -u -r1.5 lstat.c
--- lib/lstat.c 4 Dec 2002 10:11:39 - 1.5
+++ lib/lstat.c 22 Jul 2003 22:45:51 -
@@ -1,7 +
ound a deficiency in Solaris systems (up to at
least Solaris5.9) regarding the semantics of `lstat ("symlink/", sbuf).'
has this bug.
I just got a complaint from one of the other CVS developers that Sun
likes to see wither the uname output (SunOS 5.9) or their marketing n
RCS file: /cvsroot/gnulib/gnulib/m4/lstat.m4,v
retrieving revision 1.14
diff -u -r1.14 lstat.m4
--- m4/lstat.m4 31 Dec 2002 13:43:06 - 1.14
+++ m4/lstat.m4 20 Jul 2003 12:06:42 -
@@ -13,9 +13,12 @@
[
AC_FUNC_LSTAT
dnl Note: AC_FUNC_LSTAT does AC_LIBOBJ(lstat).
- if test $ac_cv
Derek Robert Price wrote:
Index: m4/lstat.m4
===
RCS file: /cvsroot/gnulib/gnulib/m4/lstat.m4,v
retrieving revision 1.14
diff -u -r1.14 lstat.m4
--- m4/lstat.m431 Dec 2002 13:43:06 -1.14
+++ m4/lstat.m420 Jul 2003 12:0
s systems (up to at
least Solaris5.9) regarding the semantics of `lstat ("symlink/", sbuf).'
has this bug.
2003-05-20 Derek Price <[EMAIL PROTECTED]>
* stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is necessary.
Here's the diff:
Index: stat
27;t need to rely on
fragile cache variable names.
I've Cc'd the autoconf discussion list.
If no one objects, I'll change the stat/lstat-related AC_
macros as I've suggested.
+1
. . .
Did you have an opinion about my tweaks to stat.c?
Derek
--
*8^)
Email: [EMAIL
Regarding this:
http://mail.gnu.org/archive/html/bug-gnulib/2003-05/msg00014.html
Derek Robert Price <[EMAIL PROTECTED]> wrote:
> I've attached a patch for the lstat half of the stat replacements.
>
> The main problem this addresses is that on systems where lstat has
>
> "John" == John Poltorak <[EMAIL PROTECTED]> writes:
John> test -f $THISPLATFORM.m4 && use $THISPLATFORM.m4
In lib/autom4te.cfg, you add:
## -- ##
## Autoconf. ##
## -- ##
begin-language: "Autoconf"
# patterns: "*.ac"
# pat
ined strncasecmp
+# define strncasecmp(x,y,z) strnicmp(x,y,z)
+#endif])
+AH_VERBATIM([_EMX_REPLACE_LSTAT],
+[/* If libc does not support lstat(), replace it by stat() (EMX only) */
+#if !HAVE_LSTAT && HAVE_STAT && !defined lstat
+# define lstat(x, y) stat(x, y)
+#endif])
+
and t
> From: John Poltorak <[EMAIL PROTECTED]>
> Date: Wed, 6 Mar 2002 16:49:21 +
>
> what I'm looking for is a way of adding platform specific plugins
> which don't need to be incorporated into Autoconf itself, but Autoconf
> will call them if they exist.
Presumably you can build the plugin an
Is there any way to replace checks for certain functions such as lstat()
which do not exist on a particular platform with suitable substitutes such
as stat() ?
I guess what I'm looking for is a way of adding platform specific plugins
which don't need to be incorporated into Autoc
>>>>> "John" == John Poltorak <[EMAIL PROTECTED]> writes:
John> I would like to add the line:-
John> #define lstat stat
John> to config.h if lstat is not found on the system.
John> Can anyone tell me if I can achieve this via an entry in
John> configure.in ?
AC_DEFINE(lstat, stat, [Foo])
I would like to add the line:-
#define lstat stat
to config.h if lstat is not found on the system.
Can anyone tell me if I can achieve this via an entry in configure.in ?
--
John
13 matches
Mail list logo