home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / f / find37.zip / find-3.7 / configure.in < prev    next >
Text File  |  1992-07-14  |  1KB  |  57 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(find/pred.c)
  3. AC_PROG_CC
  4. AC_PROG_CPP
  5. AC_PROG_INSTALL
  6. AC_PROG_RANLIB
  7. AC_AIX
  8. AC_MINIX
  9. AC_ISC_POSIX
  10. AC_SCO_INTL
  11. AC_HEADER_CHECK(limits.h, AC_DEFINE(HAVE_LIMITS_H))
  12. AC_MAJOR_HEADER
  13. AC_DIR_HEADER
  14. echo checking how to get filesystem type
  15. # SVR4.
  16. AC_TEST_CPP([#include <sys/statvfs.h>
  17. #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_STATVFS) fstype=1)
  18. if test -z "$fstype"; then
  19. # SVR3.
  20. AC_TEST_CPP([#include <sys/statfs.h>
  21. #include <sys/fstyp.h>], AC_DEFINE(FSTYPE_USG_STATFS) fstype=1)
  22. fi
  23. if test -z "$fstype"; then
  24. # AIX.
  25. AC_TEST_CPP([#include <sys/statfs.h>
  26. #include <sys/vmount.h>], AC_DEFINE(FSTYPE_AIX_STATFS) fstype=1)
  27. fi
  28. if test -z "$fstype"; then  
  29. # 4.3BSD.
  30. AC_TEST_CPP([#include <mntent.h>], AC_DEFINE(FSTYPE_MNTENT) fstype=1)
  31. fi
  32. if test -z "$fstype"; then  
  33. # 4.4BSD.  Also reportedly DEC OSF/1.
  34. AC_HEADER_EGREP(MOUNT_UFS, sys/mount.h, AC_DEFINE(FSTYPE_STATFS))
  35. fi
  36. if test -z "$fstype"; then  
  37. # Ultrix.
  38. AC_TEST_CPP([#include <sys/mount.h>
  39. #include <sys/fs_types.h>], AC_DEFINE(FSTYPE_GETMNT) fstype=1)
  40. fi
  41.  
  42. AC_STDC_HEADERS
  43. AC_UNISTD_H
  44. AC_USG
  45. AC_REPLACE_FUNCS(fnmatch memset stpcpy strdup strftime strspn strstr strtol)
  46. AC_HAVE_FUNCS(strerror)
  47. AC_VPRINTF
  48. AC_ALLOCA
  49. AC_ST_BLOCKS
  50. AC_ST_RDEV
  51. AC_STRUCT_TM
  52. AC_TIMEZONE
  53. AC_XENIX_DIR
  54. AC_IRIX_SUN
  55. AC_DYNIX_SEQ
  56. AC_OUTPUT(Makefile lib/Makefile find/Makefile xargs/Makefile locate/Makefile man/Makefile)
  57.