octave-maintainers
[Top][All Lists]
Advanced

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

Re: Compiling octave with MSVC


From: John W. Eaton
Subject: Re: Compiling octave with MSVC
Date: Thu, 12 Oct 2006 17:02:29 -0400

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

?

jwe


reply via email to

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