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.
 
 
 
 
 
 

58 lines
1.2 KiB

  1. # $Id$
  2. AC_INIT(libpipi, 0.0)
  3. AC_CONFIG_AUX_DIR(.auto)
  4. AM_INIT_AUTOMAKE([no-define tar-ustar])
  5. AM_MAINTAINER_MODE
  6. AM_CONFIG_HEADER(config.h)
  7. AM_PROG_CC_C_O
  8. AC_PROG_CPP
  9. LT_MAJOR="0"
  10. LT_MINOR="99"
  11. LT_MICRO="13"
  12. AC_SUBST(LT_MAJOR)
  13. AC_SUBST(LT_MINOR)
  14. AC_SUBST(LT_MICRO)
  15. LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO"
  16. AC_SUBST(LT_VERSION)
  17. AC_LIBTOOL_WIN32_DLL
  18. AM_PROG_LIBTOOL
  19. AC_LIBTOOL_CXX
  20. AC_C_CONST
  21. AC_C_INLINE
  22. AC_ARG_ENABLE(imlib2,
  23. [ --enable-imlib2 Imlib2 graphics support (autodetected)])
  24. AC_CHECK_HEADERS(stdio.h stdarg.h inttypes.h endian.h stdint.h)
  25. # Optimizations
  26. CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer"
  27. # Code qui fait des warnings == code de porc == deux baffes dans ta gueule
  28. CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare"
  29. # Use Imlib2?
  30. if test "${enable_imlib2}" != "no"; then
  31. IMLIB2="no"
  32. PKG_CHECK_MODULES(IMLIB2, imlib2, [IMLIB2="yes"], [AC_MSG_RESULT(no)])
  33. if test "${IMLIB2}" != "no"; then
  34. AC_DEFINE(USE_IMLIB2, 1, Define to 1 to use Imlib2)
  35. fi
  36. fi
  37. AC_CONFIG_FILES([
  38. Makefile
  39. pipi/Makefile
  40. genethumb/Makefile
  41. ])
  42. AC_CONFIG_FILES([
  43. pipi/pipi.pc
  44. ])
  45. AC_OUTPUT