# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) AC_CONFIG_SRCDIR([tdoa_sync.cpp]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_PROG_CPP # Checks for libraries. # FIXME: Replace `main' with a function in `-lboost_chrono': AC_CHECK_LIB([boost_chrono], [main]) # FIXME: Replace `main' with a function in `-lboost_system': AC_CHECK_LIB([boost_system], [main]) # FIXME: Replace `main' with a function in `-lboost_thread': AC_CHECK_LIB([boost_thread], [main]) # FIXME: Replace `main' with a function in `-lmysqlclient': AC_CHECK_LIB([mysqlclient], [main]) # FIXME: Replace `main' with a function in `-lrt': AC_CHECK_LIB([rt], [main]) # FIXME: Replace `main' with a function in `-lthree_rates': AC_CHECK_LIB([three_rates], [main]) # FIXME: Replace `main' with a function in `-lzlog': AC_CHECK_LIB([zlog], [main]) # Checks for header files. AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h limits.h memory.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_CHECK_HEADER_STDBOOL AC_C_INLINE AC_TYPE_INT16_T AC_TYPE_INT32_T AC_TYPE_INT64_T AC_TYPE_INT8_T AC_TYPE_SIZE_T AC_TYPE_UINT16_T AC_TYPE_UINT32_T AC_TYPE_UINT64_T AC_TYPE_UINT8_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MKTIME AC_FUNC_REALLOC AC_CHECK_FUNCS([alarm atexit clock_gettime floor ftime gettimeofday inet_ntoa localtime_r memmove memset pow realpath socket sqrt strchr strstr]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT