octave-maintainers
[Top][All Lists]
Advanced

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

Re: Compiling octave with MSVC


From: Michael Goffioul
Subject: Re: Compiling octave with MSVC
Date: Fri, 13 Oct 2006 07:39:25 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

John W. Eaton a écrit :
On 12-Oct-2006, Michael Goffioul wrote:

| Note that I detected a problem in config.h generation. The template | config.h.in contains
| the lines:
| | #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | | #if defined (__WIN32__) && ! defined (__CYGWIN__)
| #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
| #undef OCTAVE_HAVE_POSIX_FILESYSTEM
| #endif
| | When config.h is generated the #undef line gets commented (which is | normal autoconf | behavior, I guess). However, I really want to undefine | OCTAVE_HAVE_POSIX_FILESYSTEM
| to get correct behavior in file-ops.cc.

OK, that part of the config.h.in file is copied directly from the
argument to the AH_BOTTOM macro in configure.in.  I didn't realize
that autoconf would do any processing of that text.  Would it work for
you if we rewrote that section as

  #if defined (__WIN32__) && ! defined (__CYGWIN__)
  #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
  #elif defined (__CYGWIN__)
  #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
  #define OCTAVE_HAVE_POSIX_FILESYSTEM 1
  #else
  #define OCTAVE_HAVE_POSIX_FILESYSTEM 1
  #endif

Yes, I think so.

Michael.




reply via email to

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