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.2 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $Id: configure.ac 98 2006-09-22 16:27:37Z sam $
  2. AC_INIT(cacatris, 0.0)
  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(cacatris, 0.0)
  8. AM_CONFIG_HEADER(config.h)
  9. AM_PROG_CC_C_O
  10. AC_PROG_CPP
  11. dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
  12. dnl now otherwise it might be set in an obscure if statement. Same thing for
  13. dnl PKG_PROG_PKG_CONFIG which needs to be called first.
  14. AC_EGREP_CPP(yes, foo)
  15. PKG_PROG_PKG_CONFIG()
  16. dnl Don't let pkg-config fuck our cross-compilation environment
  17. m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
  18. if test "$build" != "$host" -a "${PKG_CONFIG_LIBDIR}" = ""; then
  19. export PKG_CONFIG_LIBDIR=/dev/null
  20. fi
  21. CACA="no"
  22. PKG_CHECK_MODULES(caca, caca,
  23. [CACA="yes"],
  24. [AC_MSG_RESULT(no)
  25. AC_MSG_ERROR([you need libcaca version 0.99 or later])])
  26. # Optimizations
  27. CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
  28. # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  29. CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
  30. AC_OUTPUT([
  31. Makefile
  32. src/Makefile
  33. data/Makefile
  34. ])