octave-maintainers
[Top][All Lists]
Advanced

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

MSVC compiler support [patch 7]: mkdir number of arguments


From: Michael Goffioul
Subject: MSVC compiler support [patch 7]: mkdir number of arguments
Date: Tue, 17 Oct 2006 21:43:53 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Force number of argument to mkdir OK under MSVC (the current test fails).

Index: configure.in
===================================================================
RCS file: /cvs/octave/configure.in,v
retrieving revision 1.526
diff -p -c -r1.526 configure.in
*** configure.in        13 Oct 2006 18:11:26 -0000      1.526
--- configure.in        17 Oct 2006 11:07:41 -0000
*************** AC_FUNC_CLOSEDIR_VOID
*** 1471,1477 ****
  AC_CHECK_MEMBERS(struct group.gr_passwd)
  
  # mkdir takes a single argument on some systems.
! OCTAVE_MKDIR_TAKES_ONE_ARG
  
  octave_found_termlib=no
  for termlib in ncurses curses termcap terminfo termlib; do
--- 1566,1580 ----
  AC_CHECK_MEMBERS(struct group.gr_passwd)
  
  # mkdir takes a single argument on some systems.
! case "$canonical_host_type" in
!   *-*-msdos)
!     # The test does not produce a compiler error with MSVC !!!
!     AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a single 
argument.])
!   ;;
!   *)
!     OCTAVE_MKDIR_TAKES_ONE_ARG
!   ;;
! esac
  
  octave_found_termlib=no
  for termlib in ncurses curses termcap terminfo termlib; do

reply via email to

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