Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

61 řádky
1.8 KiB

  1. # $Id$
  2. AC_INIT(ttyvaders,0.0cvs-20031110)
  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-20031110)
  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. AC_ARG_ENABLE(conio,
  17. [ --enable-conio DOS conio.h graphics support (default disabled)])
  18. USE_SLANG=false
  19. USE_NCURSES=false
  20. USE_CONIO=false
  21. if test "${enable_conio}" = "yes"; then
  22. AC_CHECK_HEADER(conio.h,:,AC_MSG_ERROR([cannot find conio.h header]))
  23. AC_DEFINE(USE_CONIO, 1, Define if the backend driver is conio.h)
  24. USE_CONIO=:
  25. elif test "${enable_ncurses}" = "yes"; then
  26. AC_CHECK_HEADER(ncurses.h,:,AC_MSG_ERROR([cannot find ncurses headers]))
  27. AC_CHECK_LIB(ncurses,initscr,:,AC_MSG_ERROR([cannot find ncurses library]))
  28. AC_DEFINE(USE_NCURSES, 1, Define if the backend driver is ncurses)
  29. USE_NCURSES=:
  30. elif test "${enable_slang}" != "no"; then
  31. AC_CHECK_HEADER(slang.h,:,AC_MSG_ERROR([cannot find slang headers]))
  32. AC_CHECK_LIB(slang,SLkp_init,:,AC_MSG_ERROR([cannot find slang library]))
  33. AC_DEFINE(USE_SLANG, 1, Define if the backend driver is slang)
  34. USE_SLANG=:
  35. fi
  36. AM_CONDITIONAL(USE_SLANG, ${USE_SLANG})
  37. AM_CONDITIONAL(USE_NCURSES, ${USE_NCURSES})
  38. # Optimizations
  39. CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
  40. # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  41. CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs"
  42. AC_OUTPUT([
  43. Makefile
  44. libee/Makefile
  45. test/Makefile
  46. src/Makefile
  47. autotools/Makefile
  48. data/Makefile
  49. debian/Makefile
  50. ])