25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

configure.ac 1.3 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $Id: configure.ac 253 2004-08-09 20:08:52Z sam $
  2. AC_INIT(src/main.c)
  3. AC_PREREQ(2.50)
  4. AC_CONFIG_AUX_DIR(autotools)
  5. AC_CANONICAL_SYSTEM
  6. AM_INIT_AUTOMAKE(pwntcha, 0.0)
  7. AM_CONFIG_HEADER(config.h)
  8. AC_PROG_CC
  9. AM_PROG_CC_C_O
  10. AC_PROG_CXX
  11. AC_STDC_HEADERS
  12. AC_C_CONST
  13. AC_C_INLINE
  14. AC_TYPE_SIZE_T
  15. # Use Imlib2?
  16. ac_cv_my_have_imlib2="no"
  17. save_CPPFLAGS="${CPPFLAGS}"
  18. AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
  19. if test "${IMLIB2_CONFIG}" != "no"; then
  20. CPPFLAGS="${CPPFLAGS} `imlib2-config --cflags` -DX_DISPLAY_MISSING=1"
  21. fi
  22. AC_CHECK_HEADERS(Imlib2.h,
  23. [ac_cv_my_have_imlib2="yes"],
  24. [ac_cv_my_have_imlib2="no"])
  25. CPPFLAGS="${save_CPPFLAGS}"
  26. AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
  27. # Use Imlib2?
  28. ac_cv_my_have_opencv="no"
  29. save_CPPFLAGS="${CPPFLAGS}"
  30. AC_PATH_PROG(OPENCV_CONFIG, opencv-config, no)
  31. if test "${OPENCV_CONFIG}" != "no"; then
  32. CPPFLAGS="${CPPFLAGS} `opencv-config --cflags`"
  33. fi
  34. AC_CHECK_HEADERS(cv.h,
  35. [ac_cv_my_have_opencv="yes"],
  36. [ac_cv_my_have_opencv="no"])
  37. CPPFLAGS="${save_CPPFLAGS}"
  38. AM_CONDITIONAL(USE_OPENCV, test "${ac_cv_my_have_opencv}" = "yes")
  39. if test "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
  40. AC_MSG_ERROR([[cannot find Imlib2 or OpenCV, please install one of them]])
  41. fi
  42. AC_OUTPUT([
  43. Makefile
  44. src/Makefile
  45. ])