configure.in 694 B

1234567891011121314151617181920212223242526272829
  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(tunala.c)
  3. AM_CONFIG_HEADER(config.h)
  4. AM_INIT_AUTOMAKE(tunala, 0.0.1-dev)
  5. dnl Checks for programs. (Though skip libtool)
  6. AC_PROG_CC
  7. dnl AC_PROG_LIBTOOL
  8. dnl AM_PROG_LIBTOOL
  9. dnl Checks for libraries.
  10. AC_CHECK_LIB(dl, dlopen)
  11. AC_CHECK_LIB(z, inflate)
  12. AC_CHECK_LIB(socket, socket)
  13. AC_CHECK_LIB(nsl, gethostbyname)
  14. dnl Checks for header files.
  15. AC_HEADER_STDC
  16. AC_CHECK_HEADERS(fcntl.h limits.h unistd.h)
  17. dnl Checks for typedefs, structures, and compiler characteristics.
  18. AC_C_CONST
  19. dnl Checks for library functions.
  20. AC_CHECK_FUNCS(strstr strtoul)
  21. AC_CHECK_FUNCS(select socket)
  22. AC_CHECK_FUNCS(dlopen)
  23. AC_OUTPUT(Makefile)