2 # Process this file with autoconf to produce a configure script.
6 AC_INIT([launchd],[1.0],[launchd-bug-reports@group.apple.com])
7 AC_CONFIG_SRCDIR([src/launchd.c])
9 AM_CONFIG_HEADER([src/config.h])
11 # Checks for programs.
16 # Checks for header files.
20 AC_CHECK_HEADERS([fcntl.h limits.h mach/mach.h netdb.h netinet/in.h paths.h stddef.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h])
22 # Checks for typedefs, structures, and compiler characteristics.
33 # Checks for library functions.
37 AC_PROG_GCC_TRADITIONAL
39 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
44 AC_FUNC_SELECT_ARGTYPES
47 AC_CHECK_FUNCS([atexit dup2 gethostname gettimeofday memmove memset mkdir munmap rmdir select setenv socket strcasecmp strchr strdup strerror strrchr strstr strtol])
49 AC_CONFIG_FILES([Makefile
52 AM_CONDITIONAL(LIBS_ONLY, test "$RC_ProjectName" = launchd_libs)