1 # Process this file with autoconf to produce a configure script. 2 AC_INIT(streplace) 3 AM_INIT_AUTOMAKE(qdiff,0.9.1) 4 AC_CONFIG_SRCDIR(qdiff.cc) 5 AM_CONFIG_HEADER(config.h) 6 7 # Checks for programs. 8 AC_PROG_CXX 9 AC_PROG_CC 10 AC_PROG_INSTALL 11 12 # Checks for libraries. 13 14 # Checks for header files. 15 AC_HEADER_DIRENT 16 AC_HEADER_STDC 17 AC_CHECK_HEADERS([fcntl.h float.h limits.h stdlib.h string.h sys/ioctl.h termios.h unistd.h]) 18 19 # Checks for typedefs, structures, and compiler characteristics. 20 AC_C_CONST 21 AC_TYPE_UID_T 22 AC_C_INLINE 23 AC_C_BIGENDIAN 24 AC_TYPE_MODE_T 25 AC_TYPE_OFF_T 26 AC_TYPE_SIZE_T 27 AC_CHECK_MEMBERS([struct stat.st_rdev]) 28 29 # Checks for library functions. 30 AC_FUNC_ERROR_AT_LINE 31 AC_PROG_GCC_TRADITIONAL 32 AC_FUNC_LSTAT 33 AC_FUNC_MEMCMP 34 AC_FUNC_MMAP 35 AC_FUNC_STAT 36 AC_FUNC_STRTOD 37 AC_FUNC_VPRINTF 38 AC_CHECK_FUNCS([asprintf ftruncate memmove memset munmap strchr strdup strerror strrchr strtol strtoul]) 39 40 AC_CONFIG_FILES([Makefile]) 41 AC_OUTPUT 42 43 echo "========================================================================" 44 echo "Now type" 45 echo " make" 46 echo or 47 echo ' make CXXFLAGS="-Wall -W -g"' 48 echo ' make CXXFLAGS="-Wall -W -Woverloaded-virtual -Wsynth -Wsign-promo -g"'