|
|
1.1 ! root 1: #!/bin/sh ! 2: # ASD compilation configuration ! 3: ! 4: inc=/usr/include ! 5: ! 6: # does the system have V8/4.2 ndir stuff? ! 7: if [ -f $inc/ndir.h ] && grep opendir $inc/ndir.h >/dev/null ! 8: then echo '#define DIR_H <ndir.h>' ! 9: elif [ -f $inc/sys/ndir.h ] && grep opendir $inc/sys/ndir.h >/dev/null ! 10: then echo '#define DIR_H <sys/ndir.h>' ! 11: elif [ -f $inc/dir.h ] && grep opendir $inc/dir.h >/dev/null ! 12: then echo '#define DIR_H <dir.h>' ! 13: elif [ -f $inc/sys/dir.h ] && grep opendir $inc/sys/dir.h >/dev/null ! 14: then echo '#define DIR_H <sys/dir.h>' ! 15: else echo '#define DIR_H "ndir.h"' ! 16: echo '#define LOCALDIR 1' ! 17: fi ! 18: ! 19: # does the system have the fcntl system call? ! 20: if [ -f $inc/fcntl.h ] && grep -s F_DUPFD $inc/fcntl.h ! 21: then echo "#define FCNTL 1" ! 22: fi ! 23: ! 24: # does <sys/types.h> define u_long? ! 25: if grep -s 'typedef.*u_long' $inc/sys/types.h ! 26: then echo "#define ULONG 1" ! 27: fi
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.