Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

configure.ac 1.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # $Id$
  2. AC_INIT(ttyvaders,0.0cvs-20021223)
  3. AC_PREREQ(2.50)
  4. AC_CONFIG_SRCDIR(src/main.c)
  5. AC_CONFIG_AUX_DIR(autotools)
  6. AC_CANONICAL_SYSTEM
  7. AM_INIT_AUTOMAKE(ttyvaders,0.0cvs-20021223)
  8. AM_CONFIG_HEADER(config.h)
  9. AM_PROG_CC_C_O
  10. AC_PROG_CPP
  11. AC_PROG_RANLIB
  12. AC_ARG_ENABLE(slang,
  13. [ --enable-slang slang graphics support (default enabled)])
  14. AC_ARG_ENABLE(ncurses,
  15. [ --enable-ncurses ncurses graphics support (default disabled)])
  16. USE_SLANG=false
  17. USE_NCURSES=false
  18. if test "${enable_ncurses}" = "yes"
  19. then
  20. AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
  21. AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
  22. USE_NCURSES=:
  23. else
  24. if test "${enable_slang}" != "no"
  25. then
  26. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  27. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  28. USE_SLANG=:
  29. else
  30. :
  31. fi
  32. fi
  33. AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
  34. AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
  35. AC_OUTPUT([
  36. Makefile
  37. libee/Makefile
  38. test/Makefile
  39. src/Makefile
  40. autotools/Makefile
  41. debian/Makefile
  42. ])