[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unistd replacement in config.h
From: |
Rik |
Subject: |
unistd replacement in config.h |
Date: |
Tue, 18 Sep 2012 09:41:16 -0700 |
9/18/12
Michael,
In Octave's configure.ac there is the following exception when using MSVC.
--- Cut ---
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 <unistd.h> for MSVC])
cat << \EOF > unistd.h
/* File generated by configure script. */
#include <direct.h>
#include <io.h>
#include <process.h>
EOF
CPPFLAGS="-I. $CPPFLAGS"
;;
esac
--- End Cut ---
Is this stanza needed anymore? We are sourcing the unistd module from
gnulib so I believe we are guaranteed to have an okay <unistd.h> header
file. But, there may be weird intricacies with the MSVC target that I am
not grokking.
--Rik
- unistd replacement in config.h,
Rik <=