timed tail for logfiles. Display loglines given a minimum date and/or a maximum date.
c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.ac 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # -*- Autoconf -*-
  2. # Process this file with autoconf to produce a configure script.
  3. AC_PREREQ([2.69])
  4. AC_INIT([ttail], [0.0.1], [yann.weber@member.fsf.org])
  5. AM_INIT_AUTOMAKE
  6. #configure options
  7. AC_ARG_ENABLE([debug],[ --enable-debug turn on debugging],
  8. [case "${enableval}" in
  9. yes) debug=true ;;
  10. no) debug=false ;;
  11. *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
  12. esac],[debug=false])
  13. AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
  14. AC_CONFIG_HEADERS([src/include/config.h])
  15. AC_CONFIG_SRCDIR([src/ttail.c])
  16. AC_CONFIG_MACRO_DIR([m4])
  17. # Checks for programs.
  18. AC_GNU_SOURCE
  19. AC_PROG_CC
  20. AM_PROG_CC_C_O
  21. AC_PROG_MAKE_SET
  22. AC_PROG_RANLIB
  23. # Checks for libraries.
  24. AC_SEARCH_LIBS([dlopen], [dl dld], [], [
  25. AC_MSG_ERROR([unable to find the dlopen() function])
  26. ])
  27. PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
  28. AS_IF([test x$debug = xtrue], [CK_FORK=no],[])
  29. # Checks for header files.
  30. AC_CHECK_HEADERS([stdlib.h string.h])
  31. # Checks for typedefs, structures, and compiler characteristics.
  32. AC_TYPE_SIZE_T
  33. AS_IF([test x$debug = xtrue], [
  34. AX_CHECK_CFLAGS([-Wall])
  35. AX_CHECK_CFLAGS([-g])
  36. AX_CHECK_CFLAGS([-ggdb])
  37. AX_CHECK_CFLAGS([-O0])
  38. ],
  39. [
  40. AX_CHECK_CFLAGS([-O2])
  41. AX_CHECK_CFLAGS([-std=c99 -pedantic])
  42. AX_CHECK_CFLAGS([-ansi])
  43. AX_CHECK_CFLAGS([-Wall -Werror])
  44. AX_CHECK_CFLAGS([-fgnu89-inline])
  45. ])
  46. AX_CHECK_CFLAGS([-D_XOPEN_SOURCE -D_GNU_SOURCE])
  47. # Checks for library functions.
  48. AC_FUNC_MALLOC
  49. AC_FUNC_REALLOC
  50. AC_CONFIG_FILES([Makefile
  51. src/Makefile
  52. tests/Makefile])
  53. AC_OUTPUT