選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

102 行
2.5 KiB

  1. # $Id: configure.ac 253 2004-08-09 20:08:52Z sam $
  2. AC_INIT(pwntcha, 0.6)
  3. AC_CONFIG_AUX_DIR(.auto)
  4. AM_INIT_AUTOMAKE([no-define tar-ustar])
  5. AM_CONFIG_HEADER(config.h)
  6. AC_PREREQ(2.50)
  7. dnl AC_CANONICAL_SYSTEM
  8. AC_PROG_CC
  9. AM_PROG_CC_C_O
  10. AC_PROG_CXX
  11. AC_PROG_RANLIB
  12. AC_STDC_HEADERS
  13. AC_C_CONST
  14. AC_C_INLINE
  15. AC_TYPE_SIZE_T
  16. AC_CHECK_FUNCS(getopt_long)
  17. # Use DevIL?
  18. #AC_CHECK_HEADERS(IL/il.h,
  19. # [ac_cv_my_have_il="yes"],
  20. # [ac_cv_my_have_il="no"])
  21. #CPPFLAGS="${save_CPPFLAGS}"
  22. #AM_CONDITIONAL(USE_IL, test "${ac_cv_my_have_il}" = "yes")
  23. # Use Windows?
  24. #AC_CHECK_HEADERS(olectl.h,
  25. # [ac_cv_my_have_ole="yes"],
  26. # [ac_cv_my_have_ole="no"])
  27. #CPPFLAGS="${save_CPPFLAGS}"
  28. #AM_CONDITIONAL(USE_OLE, test "${ac_cv_my_have_ole}" = "yes")
  29. # Use SDL?
  30. ac_cv_my_have_sdl="no"
  31. save_CPPFLAGS="${CPPFLAGS}"
  32. AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
  33. if test "${SDL_CONFIG}" != "no"; then
  34. CPPFLAGS="${CPPFLAGS} `sdl-config --cflags`"
  35. fi
  36. AC_CHECK_HEADERS(SDL_image.h,
  37. [ac_cv_my_have_sdl="yes"],
  38. [ac_cv_my_have_sdl="no"])
  39. CPPFLAGS="${save_CPPFLAGS}"
  40. AM_CONDITIONAL(USE_SDL, test "${ac_cv_my_have_sdl}" = "yes")
  41. # Use OpenCV?
  42. ac_cv_my_have_opencv="no"
  43. save_CPPFLAGS="${CPPFLAGS}"
  44. AC_PATH_PROG(OPENCV_CONFIG, opencv-config, no)
  45. if test "${OPENCV_CONFIG}" != "no"; then
  46. CPPFLAGS="${CPPFLAGS} `opencv-config --cflags`"
  47. fi
  48. AC_CHECK_HEADERS(cv.h,
  49. [ac_cv_my_have_opencv="yes"],
  50. [ac_cv_my_have_opencv="no"])
  51. CPPFLAGS="${save_CPPFLAGS}"
  52. AM_CONDITIONAL(USE_OPENCV, test "${ac_cv_my_have_opencv}" = "yes")
  53. # Use Imlib2?
  54. ac_cv_my_have_imlib2="no"
  55. save_CPPFLAGS="${CPPFLAGS}"
  56. AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
  57. if test "${IMLIB2_CONFIG}" != "no"; then
  58. CPPFLAGS="${CPPFLAGS} `imlib2-config --cflags` -DX_DISPLAY_MISSING=1"
  59. fi
  60. AC_CHECK_HEADERS(Imlib2.h,
  61. [ac_cv_my_have_imlib2="yes"],
  62. [ac_cv_my_have_imlib2="no"])
  63. CPPFLAGS="${save_CPPFLAGS}"
  64. AM_CONDITIONAL(USE_IMLIB2, test "${ac_cv_my_have_imlib2}" = "yes")
  65. if test "${ac_cv_my_have_il}" = "no" -a "${ac_cv_my_have_ole}" = "no" -a "${ac_cv_my_have_sdl}" = "no" -a "${ac_cv_my_have_imlib2}" = "no" -a "${ac_cv_my_have_opencv}" = "no"; then
  66. AC_MSG_ERROR([[cannot find DevIL, OLE, SDL_Image, Imlib2 or OpenCV, please install one of them]])
  67. fi
  68. AC_OUTPUT([
  69. Makefile
  70. src/Makefile
  71. src/authimage/Makefile
  72. src/clubic/Makefile
  73. src/java/Makefile
  74. src/linuxfr/Makefile
  75. src/livejournal/Makefile
  76. src/lmt/Makefile
  77. src/paypal/Makefile
  78. src/phpbb/Makefile
  79. src/scode/Makefile
  80. src/slashdot/Makefile
  81. src/ticketmaster/Makefile
  82. src/tickets/Makefile
  83. src/vbulletin/Makefile
  84. src/xanga/Makefile
  85. extras/Makefile
  86. share/Makefile
  87. ])