16 if ${CC} x.c > /dev/null 2>&1; then
19 echo '#undef HAVE_ALLOCA'
24 #include <sys/types.h>
25 #include <sys/param.h>
33 if ${CC} x.c > /dev/null 2>&1; then
34 echo '#define HAVE_GETWD'
36 echo '#undef HAVE_GETWD'
40 extern char *getcwd();
48 if ${CC} x.c >/dev/null 2>&1; then
49 echo '#define HAVE_GETCWD'
56 * exit 0 if we have bcopy in libc and it works as in BSD
71 if ${CC} x.c > /dev/null 2>&1 && ./a.out ; then
79 * If this compiles, the system has uid_t and gid_t
82 #include <sys/types.h>
93 if ${CC} x.c > /dev/null 2>&1; then
102 extern char *sys_siglist[];
109 write(2, x, strlen(x));
114 if ${CC} ./x.c >/dev/null 2>&1; then
115 echo '#define HAVE_SYS_SIGLIST'
121 extern char *_sys_siglist[];
129 if ${CC} ./x.c >/dev/null 2>&1; then
130 echo '#define HAVE_SYS_SIGLIST'
131 SL='-Dsys_siglist=_sys_siglist'
136 if ${CC} pgrp.c >/dev/null 2>&1; then
140 if [ -f /unix ] && [ -f /usr/ccs/lib/libc.so ]; then
144 touch not_a_directory
145 if [ -f /usr/include/dirent.h ]; then
153 * exit 0 if opendir does not check whether its argument is a directory
161 dir = opendir("not_a_directory");
166 if ${CC} x.c > /dev/null 2>&1 && ./a.out ; then
167 OD='-DOPENDIR_NOT_ROBUST'
170 rm -f x.c x.o a.out pgrp.o not_a_directory
171 echo "#define SYSDEP_CFLAGS $BC $UIDT $SL $PG $R4 $OD"