# HG changeset patch # User jwe # Date 1161810656 0 # Node ID ee50f74d1dd7ce6fb79b90d23388a5cd2e0fd909 # Parent 9f9313969599fcfa3cf4431d7c440f25f3c32b50 [project @ 2006-10-25 21:08:53 by jwe] diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,11 @@ Add "-MD" to CFLAGS. Add "-MD" to CONFLIB_ARG when checking for libf2c. + * configure.in (*-*-msdosmsvc): Generate replacement unistd.h. + * octMakefile.in (maintainer-clean, distclean): Also remove unistd.h. + + * configure.in (*-*-msdosmsvc): Default sepchar is ';'. + 2006-10-25 John W. Eaton * mkoctfile.in (OCTAVE_VERSION): No need to quote replacement here. diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -29,7 +29,7 @@ EXTERN_CXXFLAGS="$CXXFLAGS" AC_INIT -AC_REVISION($Revision: 1.530 $) +AC_REVISION($Revision: 1.532 $) AC_PREREQ(2.57) AC_CONFIG_SRCDIR([src/octave.cc]) AC_CONFIG_HEADER(config.h) @@ -38,6 +38,22 @@ AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) +dnl FIXME -- we should probably only generate this file if it is missing. +### Produce unistd.h for MSVC target, this simplifies changes in +### Octave source tree and avoid problems with lex-generated code. +case "$canonical_host_type" in + *-*-msdosmsvc) + AC_MSG_NOTICE([Generating replacement for for MSVC]) + cat << \EOF > unistd.h +/* File generated by configure script. */ +#include +#include +#include +EOF + CPPFLAGS="-I. $CPPFLAGS" + ;; +esac + AC_GNU_SOURCE AC_AIX @@ -52,7 +68,7 @@ case $with_sepchar in yes | "") case "$canonical_host_type" in - *-*-mingw*) + *-*-mingw* | *-*-msdosmsvc) sepchar=';' ;; esac diff --git a/octMakefile.in b/octMakefile.in --- a/octMakefile.in +++ b/octMakefile.in @@ -146,6 +146,7 @@ rm -f config.cache config.h config.log config.status rm -rf autom4te.cache rm -f $(SHELL_SCRIPTS) .gdbinit + rm -f unistd.h maintainer-clean:: rm -f configure config.h.in BUGS INSTALL.OCTAVE