# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) AC_INIT(beacon, 1.3) AC_CONFIG_SRCDIR([src/beacon.in]) AC_LIBOBJ([beacon_wrap.o]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_AUX_DIR(config) AC_CONFIG_COMMANDS_PRE(tar -zxvf $srcdir/common-1.2.16.tar.gz patch -p0 < common-beacon.patch cd common ./configure cd ../) AM_INIT_AUTOMAKE(subdir-objects) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_RANLIB AM_PROG_CC_C_O AC_PATH_PROG(PERL, perl) AC_PATH_PROG(SWIG, swig) # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h malloc.h memory.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h sys/timeb.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_TYPE_UID_T AC_C_INLINE AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM # Checks for library functions. AC_FUNC_FORK AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_REALLOC AC_FUNC_SELECT_ARGTYPES AC_FUNC_STAT AC_FUNC_STRTOD AC_FUNC_VPRINTF AC_CHECK_FUNCS([gethostbyaddr gethostbyname gethostname gettimeofday inet_ntoa memmove memset mkdir modf select socket strchr strcspn strdup strrchr strstr strtol uname]) AC_CONFIG_FILES([Makefile Net-Multicast-Beacon/Makefile libbeacon/Makefile src/Makefile src/beacon]) AC_OUTPUT