# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([truss], [0.9], [http://osdyson.org]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([usr/src/cmd/truss/main.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign dist-xz subdir-objects]) # Checks for programs. AC_PROG_CC_C99 # Checks for libraries. AC_CHECK_LIB([nvpair], [nvlist_unpack]) AC_CHECK_LIB([tsol], [label_to_str]) AC_CHECK_LIB([proc], [proc_lwp_in_set]) AC_CHECK_LIB([c_db], [td_ta_new]) dnl c_db needs proc AC_CHECK_LIB([rtld_db], [rd_event_getmsg]) AC_SEARCH_LIBS([socket], [socket]) AC_SEARCH_LIBS([inet_ntop], [nsl]) # Checks for header files. AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h \ memory.h netdb.h netinet/in.h \ stddef.h stdio_ext.h stdlib.h string.h \ sys/acl.h sys/file.h sys/fstyp.h sys/mount.h \ sys/socket.h sys/statfs.h sys/statvfs.h \ sys/systeminfo.h sys/time.h termio.h unistd.h]) AC_CHECK_HEADERS([sys/scsi/impl/uscsi.h sys/zfs_ioctl.h]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_INT32_T AC_TYPE_INT64_T AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_SSIZE_T AC_CHECK_MEMBERS([struct stat.st_blksize]) AC_STRUCT_ST_BLOCKS AC_CHECK_MEMBERS([struct stat.st_rdev]) AC_TYPE_UID_T AC_TYPE_UINT32_T AC_TYPE_UINT8_T AC_CHECK_MEMBERS([zfs_cmd_t.zc_flags], [], [], [[ #ifdef HAVE_SYS_ZFS_IOCTL_H #include #endif ]] ) # Checks for library functions. AC_FUNC_CHOWN AC_FUNC_FORK AC_FUNC_MALLOC AC_FUNC_MMAP AC_FUNC_REALLOC AC_CHECK_FUNCS([gethrtime gettimeofday isascii \ memset strchr strdup strrchr \ strspn strstr strtol]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT