A buglet in Configure casuses it to not find the 3-argument
form of open(2) on some platforms. The problem is that it
tries to compile open3.c using $cc $cppflags. On a NeXT
with MAB support, this will cross-compile for the first
architecture on the list. If that isn't the architecture
Configure is running on, the resultant binary cannot be run.
This leads Configure to believe that open3 is not available.
P.S. A relevant detail not mentioned in the site configurion
summary below, is that I'm compiling on an HP/PA workstation.
Credited: Andy Dougherty <doughera@newton.phys.lafayette.edu>
p5p-msgid:
9706271816.AA10551@ icgned.icgned.nl
private-msgid:
9706271816.AA10551@icgned.icgned.nl
EOCP
: check sys/file.h first to get FREAD on Sun
if $test `./findhdr sys/file.h` && \
- $cc $cppflags "-DI_SYS_FILE" open3.c -o open3 >/dev/null 2>&1 ; then
+ $cc $ccflags "-DI_SYS_FILE" open3.c -o open3 ; then
h_sysfile=true;
echo "<sys/file.h> defines the O_* constants..." >&4
if ./open3; then
val="$undef"
fi
elif $test `./findhdr fcntl.h` && \
- $cc "-DI_FCNTL" open3.c -o open3 >/dev/null 2>&1 ; then
+ $cc $ccflags "-DI_FCNTL" open3.c -o open3 >/dev/null 2>&1 ; then
h_fcntl=true;
echo "<fcntl.h> defines the O_* constants..." >&4
if ./open3; then