1 Fix up to work with cross-compiling ... most of these tests only
2 need to see if the example compiled, not whether it runs ...
8 echo checking for POSIX.1 header files
9 echo "#include <unistd.h>
18 +# error no _POSIX_VERSION
21 -if test -s conftest && ./conftest 2>/dev/null; then
22 +if test -s conftest ; then
25 rm -f conftest conftest.c
27 echo "#include <strings.h>
28 main() { exit(0); rindex(0, 0); bzero(0, 0); }" > conftest.c
30 -if test -s conftest && ./conftest 2>/dev/null; then :
31 +if test -s conftest ; then :
32 else DEFS="$DEFS -DUSG"
34 rm -f conftest conftest.c
36 echo '#include <sys/types.h>
37 main() { uid_t x; exit(0); }' > conftest.c
39 -if test -s conftest && ./conftest 2>/dev/null; then :
40 +if test -s conftest ; then :
42 uid_t=`awk '/pw_uid;/ {print $1}' $INCLUDEDIR/pwd.h`
43 DEFS="$DEFS -Duid_t=${uid_t} -Dgid_t=${uid_t}"
46 main() { char *p = (char *) alloca(1); exit(0); }' > conftest.c
48 -if test -s conftest && ./conftest 2>/dev/null; then :
49 +if test -s conftest ; then :
50 elif test -d /usr/ucblib; then LIBS="$LIBS -L/usr/ucblib -lucb"
51 elif test -f /usr/lib/libPW.a; then LIBS="$LIBS -lPW"
52 else DEFS="$DEFS -DALLOCA_MISSING"
54 struct option long_opts[] = { { "", no_argument, NULL, 0 } };
55 main() { exit(0); }' > conftest.c
57 -if test -s conftest && ./conftest 2>/dev/null; then
58 +if test -s conftest ; then
59 manpathoption="--path"