configure.ac
上传用户:lijia5631
上传日期:2008-11-10
资源大小:1214k
文件大小:17k
源码类别:

视频捕捉/采集

开发平台:

MultiPlatform

  1. #                                               
  2. # Process this file with autoconf to produce a configure script.
  3. #
  4. # todo: before shipping, get new config.guess and config.sub from GNU site
  5. AC_PREREQ(2.57)
  6. AC_INIT(HandVu, beta3, google://handvu)
  7. #AC_INIT(cubicles, version 1.5, google://handvu)
  8. AM_INIT_AUTOMAKE()
  9. # maintainer mode: a double-edged sword. look here:
  10. # http://www.gnu.org/software/automake/manual/html_node/CVS.html
  11. # http://www.gnu.org/software/automake/manual/html_node/maintainer-mode.html
  12. AM_MAINTAINER_MODE
  13. #AC_CONFIG_AUX_DIR([.cfg])
  14. AM_CONFIG_HEADER([hvconfig.h])
  15. abs_top_srcdir=`pwd`
  16. # include macro definitions
  17. #sinclude(ac_common.m4)
  18. # Before checking for CXX and CC, set CFLAGS and CXXFLAGS because they
  19. # are otherwise initialized to contain -g -O2
  20. if test "x$CFLAGS" = "x"; then
  21. CFLAGS=
  22. fi
  23. if test "x$CXXFLAGS" = "x"; then
  24. CXXFLAGS=
  25. fi
  26. # Checks for programs.
  27. AC_PROG_YACC
  28. AC_PROG_CXX
  29. AC_PROG_CC
  30. ifdef([m4_pattern_allow],
  31.       [m4_pattern_allow([^AM_PROG_LEX])])dnl
  32. AM_PROG_LEX
  33. #AC_LIBTOOL_WIN32_DLL
  34. AC_PROG_LIBTOOL
  35. AC_PROG_LN_S
  36. # Set language to C++
  37. AC_LANG(C++)
  38. # what platform are we building for?
  39. # todo: should we check $target or $host?
  40. case "$host" in
  41.   *-win32*)
  42.     ACC_ADDTO(AM_CPPFLAGS, '-DWIN32 -DUSE_MFC')
  43.     # todo: build for CRTDLL.DLL?  use -mno-cygwin
  44.     ;;
  45.   *-cygwin* | *-mingw*)
  46.     ACC_ADDTO(AM_CPPFLAGS, -DCYGWIN)
  47.     ;;
  48.   *)
  49.     # Assume Unix.
  50.     ;;
  51. esac
  52. ACC_ADDTO(AM_CPPFLAGS, -DTARGET_SYSTEM=\"$host\")
  53. #
  54. # what distribution is this - do we have cubicle source code?  handvu source?
  55. #
  56. have_cubicles_sources="no"
  57. if test -f "./cubicles/cubicles.hpp"; then
  58. have_cubicles_sources="yes"
  59. SUBDIR_CUBICLES=cubicles
  60. AC_SUBST(SUBDIR_CUBICLES)
  61. fi
  62. have_cubicles_training_sources="no"
  63. if test -f "./cubicles/Main.cpp"; then
  64. have_cubicles_training_sources="yes"
  65. fi
  66. have_handvu_sources="no"
  67. if test -f "./handvu/HandVu.cpp"; then
  68. have_handvu_sources="yes"
  69. SUBDIR_HANDVU=handvu
  70. AC_SUBST(SUBDIR_HANDVU)
  71. fi
  72. have_hvopencv_sources="no"
  73. if test -f "./hv_OpenCV/hv_OpenCV.cpp"; then
  74. have_hvopencv_sources="yes"
  75. SUBDIR_HVOPENCV=hv_OpenCV
  76. AC_SUBST(SUBDIR_HVOPENCV)
  77. fi
  78. have_hvcvcam_sources="no"
  79. if test -f "./hv_CvCam/hv_CvCam.cpp"; then
  80.         # don't build CvCam interface on *nix
  81.         case "$host" in
  82.           *-win32* | *-cygwin* | *-mingw*)
  83.             have_hvcvcam_sources="yes"
  84.             SUBDIR_HVCVCAM=hv_CvCam
  85.     AC_SUBST(SUBDIR_HVCVCAM)
  86.             ;;
  87.           *)
  88.         # Assume *nix. only include in distribution, don't build
  89.             have_hvcvcam_sources="no"
  90.             SUBDIR_HVCVCAM_DIST=hv_CvCam
  91.     AC_SUBST(SUBDIR_HVCVCAM_DIST)
  92.             ;;
  93.         esac
  94. fi
  95. have_hvdc1394_sources="no"
  96. if test -f "./hv_dc1394/hv_dc1394.cpp"; then
  97. have_hvdc1394_sources="yes"
  98. fi
  99. have_hvartk_sources="no"
  100. if test -f "./hv_ARtk/hv_ARtk_demo.cpp"; then
  101. have_hvartk_sources="yes"
  102. fi
  103. have_hvdxapp_sources="no"
  104. if test -f "./hv_DXApp/DXApp.cpp"; then
  105. have_hvdxapp_sources="yes"
  106. SUBDIR_HVDXAPP=hv_DXApp
  107. AC_SUBST(SUBDIR_HVDXAPP)
  108. fi
  109. have_hvdxfilter_sources="no"
  110. if test -f "./hv_DXFilter/HandVuFilter.cpp"; then
  111. have_hvdxfilter_sources="yes"
  112. SUBDIR_HVDXFILTER=hv_DXFilter
  113. AC_SUBST(SUBDIR_HVDXFILTER)
  114. fi
  115. #
  116. # configure command line arguments
  117. #
  118. # install to /usr/local unless otherwise specified
  119. if test "$prefix" = "NONE"; then
  120. prefix=/usr/local
  121. # prefix=$abs_top_srcdir
  122. fi
  123. # debug
  124. e_debug="no"
  125. AC_ARG_ENABLE(debug,
  126. [  --enable-debug          turn on asserts and other debugging checks [no]],
  127. [e_debug="yes"],[e_debug="no"])
  128. if test "$e_debug" = "yes"; then
  129.  ACC_ADDTO(AM_CFLAGS, -g -DDEBUG)
  130.  ACC_ADDTO(AM_CPPFLAGS, -g -DDEBUG)
  131.  ACC_ADDTO(AM_CXXFLAGS, -g)
  132. else
  133.  ACC_ADDTO(AM_CFLAGS, -O3)
  134.  ACC_ADDTO(AM_CXXFLAGS, -O3)
  135. fi
  136. AC_SUBST(AM_CFLAGS)
  137. AC_SUBST(AM_CPPFLAGS)
  138. AC_SUBST(AM_CXXFLAGS)
  139. # small-color
  140. e_small_color="no"
  141. AC_ARG_ENABLE(small-color,
  142. [  --enable-small-color    use small skin color lookup table [no]],
  143. [e_small_color="yes"])
  144. AM_CONDITIONAL(SMALL_COLOR, test "$enable_small_color" = "yes")
  145. # hv_ARToolKit demo, ARToolKit location
  146. #inc_artk=$INC_ARTK - unsafe on Windows until fileseparator conversion
  147. INC_ARTK=
  148. AC_ARG_WITH(artk,
  149. [  --with-artk=path/no     build ARToolKit demo @<:@build it@:>@],
  150. [if test "$withval" = "no"; then 
  151.    have_hvartk_sources="no"
  152.  elif test "x$withval" != "x" && test "$withval" != "yes"; then
  153.    inc_artk=$withval
  154.  fi]
  155. )
  156. AC_ARG_WITH(dc1394,
  157. [  --without-dc1394        do not build libdc1394 @<:@build it@:>@],
  158. [if test "$withval" = "no"; then 
  159.    have_hvdc1394_sources="no"
  160.  fi]
  161. )
  162. # Magick or OpenCV for file i/o or none in cubicles?
  163. #
  164. w_opencv="yes"
  165. #inc_opencv=$INC_OPENCV - unsafe on Windows until fileseparator conversion
  166. INC_OPENCV=
  167. IMG_LIB=IMG_LIB_OPENCV
  168. AC_ARG_WITH(opencv,
  169. [  --with-opencv=path/no   use OpenCV, also for file i/o @<:@yes@:>@],
  170. [if test "$withval" = "no"; then 
  171.    if test "$have_cubicles_sources" = "yes"; then
  172.      IMG_LIB=IMG_LIB_NONE
  173.      w_opencv="no"
  174.    else
  175.      AC_MSG_WARN(OpenCV is mandatory in this distribution)
  176.    fi
  177.  elif test "x$withval" != "x" && test "$withval" != "yes"; then
  178.    inc_opencv=$withval
  179.  fi]
  180. )
  181. w_magick="no"
  182. #inc_magick=$INC_MAGICK - unsafe on Windows until fileseparator conversion
  183. INC_MAGICK=
  184. AC_ARG_WITH(magick,
  185. [  --with-magick=path/no   use ImageMagick[=abspath] for file i/o @<:@no@:>@],
  186. [if test "$have_cubicles_sources" = "yes"; then
  187.    IMG_LIB=IMG_LIB_MAGICK
  188.    w_magick="yes"
  189.    w_opencv="no"
  190.    if test "x$withval" != "x" && test "$withval" != "yes"; then
  191. inc_magick=$withval
  192.    fi
  193.  else
  194.    AC_MSG_WARN(can not use Magick in this distribution)
  195.  fi
  196. ],[])
  197. ACC_ADDTO(AM_CPPFLAGS, -D$IMG_LIB)
  198. # with training
  199. e_training="no"
  200. AC_ARG_ENABLE(training,
  201. [  --enable-training       enable classifier training functionality @<:@no@:>@]],
  202. [if test "$have_cubicles_training_sources" = "yes"; then
  203.    e_training="yes"
  204.    ACC_ADDTO(AM_CFLAGS, -DWITH_TRAINING)
  205.    ACC_ADDTO(AM_CPPFLAGS, -DWITH_TRAINING)
  206.  else
  207.    AC_MSG_WARN(can not enable 'training' in this distribution)
  208.  fi])
  209. AM_CONDITIONAL(WITH_TRAINING, test "$enable_training" = "yes")
  210. #
  211. # MPI: no, mpich, or lam
  212. #
  213. USE_MPI="no"
  214. #inc_mpi=$INC_MPI - unsafe on Windows until fileseparator conversion
  215. INC_MPI=
  216. AC_ARG_WITH(mpich,
  217. [  --with-mpich=path/no    use MPI for training, mpich implementation @<:@no@:>@],
  218. [if test "$have_cubicles_sources" = "yes"; then
  219.    if test "$USE_MPI" != "no"; then
  220.      AC_MSG_WARN(changing previously selected USE_MPI=$USE_MPI with "mpich")
  221.    fi
  222.    if test "x$withval" != "x" && test "$withval" != "yes"; then
  223. inc_mpi=$withval
  224.    fi
  225.    USE_MPI="mpich"
  226.  else
  227.    AC_MSG_WARN(can not enable 'mpi' in this distribution)
  228.  fi]
  229. )
  230. AC_ARG_WITH(lam,
  231. [  --with-lam=path/no      use MPI for training, LAM implementation @<:@no@:>@],
  232. [if test "$have_cubicles_sources" = "yes"; then
  233.    if test "$USE_MPI" != "no"; then
  234.      AC_MSG_WARN(changing previously selected USE_MPI=$USE_MPI with "lam")
  235.    fi
  236.    if test "x$withval" != "x" && test "$withval" != "yes"; then
  237. inc_mpi=$withval
  238.    fi
  239.    USE_MPI="lam"
  240.  else
  241.    AC_MSG_WARN(can not enable 'mpi' in this distribution)
  242.  fi]
  243. )
  244. if test "$USE_MPI" != "no"; then
  245. ACC_ADDTO(AM_CFLAGS, -DUSE_MPI)
  246. ACC_ADDTO(AM_CPPFLAGS, -DUSE_MPI)
  247. fi
  248. # debug MPI
  249. e_debug_mpi="no"
  250. AC_ARG_ENABLE(debug-mpi,
  251. [  --enable-debug-mpi      asserts and other debugging checks for MPI @<:@no@:>@],
  252. [if test "$have_cubicles_sources" = "yes"; then
  253.    e_debug_mpi="yes"
  254.    ACC_ADDTO(AM_CPPFLAGS, -DDEBUG_MPI)
  255.  else
  256.    AC_MSG_WARN(can not enable 'debug-mpi' in this distribution)
  257.  fi]
  258. )
  259. # II_TYPE
  260. ii_type="float"
  261. AC_ARG_WITH(type,
  262. [  --with-type=type        IntegralImage types: uint, @<:@float@:>@],
  263. [if test "$have_cubicles_sources" = "yes"; then
  264.    if test "$withval" = "float"; then
  265.      ii_type=$withval
  266.    elif test "$withval" = "uint"; then
  267.      ii_type=$withval
  268.    else
  269.      AC_MSG_ERROR(invalid IntegralImage type: $withval)
  270.    fi
  271.  else
  272.    AC_MSG_WARN(can not choose IntegralImage type in this distribution)
  273.  fi]
  274. )
  275. if test "$ii_type" = "float"; then
  276.      ACC_ADDTO(AM_CPPFLAGS, -DII_TYPE_FLOAT)
  277. elif test "$ii_type" = "uint"; then
  278.      ACC_ADDTO(AM_CPPFLAGS, -DII_TYPE_FLOAT) 
  279. fi
  280. # Checks for libraries.
  281. # todo: check for libraries!!
  282. #AC_CHECK_LIB([OpenCV], [cvCreateImage])
  283. # Checks for general header files.
  284. AC_HEADER_STDC
  285. AC_CHECK_HEADERS([float.h errno.h locale.h malloc.h stddef.h stdlib.h unistd.h])
  286. # socket-related headers
  287. AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h sys/socket.h])
  288. AC_MSG_CHECKING(for <string>)
  289. AC_COMPILE_IFELSE([#include <string>], 
  290.         AC_MSG_RESULT(yes), AC_MSG_FAILURE(not found!))
  291. AC_MSG_CHECKING(for <vector>)
  292. AC_TRY_CPP([#include <vector>],
  293.         AC_MSG_RESULT(yes), AC_MSG_FAILURE(not found!))
  294. # Checks for cubicles header and library
  295. ACC_FIND_FILE_IN_DIRS(cubicles.h, 
  296.         "$abs_top_srcdir/cubicles" 
  297.         /usr/local/include, , cubicles_incdir)
  298. INC_CUBICLES="-I$cubicles_incdir"
  299. AC_SUBST(INC_CUBICLES)
  300. if test "$have_cubicles_sources" = "yes"; then
  301. ACC_ADDTO(AM_LDFLAGS, '-L$abs_top_srcdir/lib')
  302. else
  303. ACC_FIND_FILE_IN_DIRS(libcubicles.a,
  304.         "$abs_top_srcdir/lib" 
  305. /usr/local/lib 
  306.         "$abs_top_srcdir/cubicles", , cubicles_libdir)
  307. ACC_ADDTO(AM_LDFLAGS, '-L$cubicles_libdir')
  308. fi
  309. # Checks for handvu header
  310. if test "$have_handvu_sources" = "yes"; then
  311. ACC_FIND_FILE_IN_DIRS(HandVu.h, 
  312.         "$abs_top_srcdir/handvu" 
  313.         /usr/local/include, , handvu_incdir)
  314. INC_HANDVU="-I$handvu_incdir"
  315. AC_SUBST(INC_HANDVU)
  316. fi
  317. # Checks for OpenCV headers
  318. if test "$w_opencv" = "yes"; then
  319.   # first try with pkg-config
  320.   PKG_CHECK_MODULES(OPENCV, opencv >= 0.9.6, ,
  321.         [echo "searching for OpenCV without pkg-config:"])
  322.   INC_OPENCV="$OPENCV_CFLAGS"
  323.   LIB_OPENCV="$OPENCV_LIBS"
  324.   if test "x$INC_OPENCV" = "x"; then
  325.     ACC_FIND_DIRS(OpenCV root,
  326.         $inc_opencv 
  327.         /usr/local/include/opencv 
  328.         /sw/include/opencv 
  329.         /cygdrive/c/Progra~1/opencv-0.9.6 
  330.         /cygdrive/c/Progra~1/OpenCV 
  331.         /cygdrive/c/Progra~1/OpenCV_097 
  332.         /cygdrive/c/packages/opencv-0.9.6 
  333.         /cygdrive/c/packages/OpenCV_097 
  334.         /cygdrive/c/packages/OpenCV,
  335.         opencv_rootdirs)
  336.     ACC_FIND_FILE_IN_DIRS(cv.h, $opencv_rootdirs, cv/include, cv_incdir)
  337.     ACC_FIND_FILE_IN_DIRS(cxcore.h, $opencv_rootdirs, cxcore/include, 
  338. cxcore_incdir)
  339.     ACC_FIND_FILE_IN_DIRS(cvaux.h, $opencv_rootdirs, cvaux/include,
  340. cvaux_incdir)
  341.     ACC_FIND_FILE_IN_DIRS(highgui.h, $opencv_rootdirs, otherlibs/highgui, 
  342. highgui_incdir)
  343.     INC_OPENCV="-I$cv_incdir -I$cxcore_incdir -I$cvaux_incdir -I$highgui_incdir"
  344.     # todo: we should check in library section
  345.     case "$host" in
  346.       *-cygwin*)
  347. ACC_FIND_FILE_IN_DIRS(cvcam.h, $opencv_rootdirs,
  348.           otherlibs/cvcam/include, cvcam_incdir)
  349. INC_OPENCV="$INC_OPENCV -I$cvcam_incdir"
  350.         ACC_FIND_FILE_IN_DIRS(cv.lib, $opencv_rootdirs, lib, cv_libdir)
  351.         LIB_OPENCV="-L$cv_libdir -lcv -lcxcore -lcvaux -lhighgui"
  352.         ;;
  353.       *)
  354.         # Assume Unix.
  355.         ;;
  356.     esac
  357.   fi
  358.   AC_SUBST(INC_OPENCV)
  359.   AC_SUBST(LIB_OPENCV)
  360. fi
  361. # Checks for Magick headers
  362. if test "$w_magick" = "yes"; then
  363.   ACC_FIND_DIRS(Magick root,
  364. $inc_magick 
  365.         '/usr/local/include' 
  366.         '/usr/local/include/magick' 
  367.         $HOME/Magick/ImageMagick-6.0.4 
  368.         /cygdrive/c/Progra~1/ImageMagick 
  369.         /cygdrive/c/Progra~1/ImageMagick/6.0.0-Q16,
  370.         magick_rootdirs)
  371.   ACC_FIND_FILE_IN_DIRS(Magick++.h, $magick_rootdirs, include, magickpp_incdir)
  372.   INC_MAGICK="-I$magickpp_incdir"
  373. fi
  374. AC_SUBST(INC_MAGICK)
  375. # Checks for MPI headers
  376. if test "$USE_MPI" = "mpich"; then
  377.   ACC_FIND_DIRS(MPI mpich root,
  378.         $inc_mpi 
  379.         '/usr/local/include/mpi' 
  380.         '/cluster/opt/mpi/include',
  381.         mpich_rootdirs)
  382.   ACC_FIND_FILE_IN_DIRS(MPI.h, $mpich_rootdirs, include, mpich_incdir)
  383.   INC_MPI="-I$mpich_incdir"
  384.   # libs are at /cluster/opt/mpi/lib
  385.   # ACC_ADDTO(LIBS, -lmpich)
  386.   CC=/cluster/opt/mpi/bin/mpiCC
  387.   AC_SUBST(CC)
  388. fi
  389. AC_SUBST(INC_MPI)
  390. if test "$USE_MPI" = "lam"; then
  391.   ACC_FIND_DIRS(MPI lam root,
  392.         '/usr/include/lam', 
  393.         lam_rootdirs)
  394.   ACC_FIND_FILE_IN_DIRS(MPI.h, $lam_rootdirs, include, lam_incdir)
  395.   INC_MPI="-I$lam_incdir"
  396.   # libs are at /usr/lib/lam/lib
  397.   # ACC_ADDTO(LIBS, -l)
  398.   CC=/usr/bin/mpiCC
  399.   AC_SUBST(CC)
  400. fi
  401. # don't build libdc1394 interface on Windows,
  402. # don't build CvCam interface on *nix
  403. case "$host" in
  404.   *-win32*)
  405.     have_hvdc1394_sources="no"
  406.     ;;
  407.   *-cygwin* | *-mingw*)
  408.     have_hvdc1394_sources="no"
  409.     ;;
  410.   *)
  411.     # Assume Unix.
  412.     ;;
  413. esac
  414. # Checks for headers/libraries required for libdc1394
  415. if test "$have_hvdc1394_sources" = "yes"; then
  416.   PKG_CHECK_MODULES(RAW1394, libraw1394 >= 1.1.0, ,
  417.         [echo "searching for libraw1394 without pkg-config:"])
  418.   ACC_FIND_FILE_IN_DIRS(libdc1394/dc1394_control.h,
  419. /usr /usr/local, 
  420. include, dc1394_incdir2, warn)
  421.   if test "x$RAW1394_CFLAGS" = "x" || test "x$dc1394_incdir2" = "x"; then
  422. AC_MSG_WARN(libdc1394 headers not found - will not build hv_dc1394)
  423. have_hvdc1394_sources="no"
  424.   fi
  425.   AC_SUBST(RAW1394_CFLAGS)
  426.   # X11 headers/library
  427.   ACC_FIND_FILE_IN_DIRS(libX11.a, 
  428. /usr/X11R6 /usr/local/X11R6, 
  429. lib, dc1394_libdir, warn)
  430.   if test "x$dc1394_libdir" = "x"; then
  431. AC_MSG_WARN(X11 libraries not found - will not build hv_dc1394)
  432. have_hvdc1394_sources="no"
  433.   else
  434.    LIB_DC1394="$RAW1394_LIBS -L$dc1394_libdir"
  435. AC_SUBST(LIB_DC1394)
  436.   fi
  437.   AC_CHECK_HEADERS([X11/Xlib.h X11/Xutil.h X11/keysym.h])
  438. fi
  439. if test "$have_hvdc1394_sources" = "yes"; then
  440.    SUBDIR_HVDC1394=hv_dc1394
  441.    AC_SUBST(SUBDIR_HVDC1394)
  442. fi
  443. # Checks for ARtoolkit headers and library
  444. if test "$have_hvartk_sources" = "yes"; then
  445.   ACC_FIND_FILE_IN_DIRS(AR/ar.h, 
  446. $inc_artk 
  447. "$abs_top_srcdir/ARToolKit2.61" 
  448. $HOME/ARToolKit2.61 
  449. /usr/local, 
  450. include, artk_incdir, warn)
  451.   if test "x$artk_incdir" = "x"; then
  452. AC_MSG_WARN(ARToolKit headers not found - will not build hv_ARtk)
  453. have_hvartk_sources="no"
  454.   else
  455.    INC_ARTK="-I$artk_incdir"
  456. AC_SUBST(INC_ARTK)
  457.   fi
  458.   ACC_FIND_FILE_IN_DIRS(libAR.a, 
  459. $inc_artk 
  460. "$abs_top_srcdir/ARToolKit2.61" 
  461. $HOME/ARToolKit2.61 
  462. /usr/local, 
  463. lib, artk_libdir, warn)
  464.   if test "x$artk_libdir" = "x"; then
  465. AC_MSG_WARN(ARToolKit libraries not found - will not build hv_ARtk)
  466. have_hvartk_sources="no"
  467.   else
  468.    LIB_ARTK="-L$artk_libdir"
  469. AC_SUBST(LIB_ARTK)
  470.   fi
  471.   AC_CHECK_HEADERS([GL/gl.h GL/glut.h SDL/SDL.h])
  472. fi
  473. if test "$have_hvartk_sources" = "yes"; then
  474.    SUBDIR_HVARTK=hv_ARtk
  475.    AC_SUBST(SUBDIR_HVARTK)
  476. fi
  477. # Checks for typedefs, structures, and compiler characteristics.
  478. AC_HEADER_STDBOOL
  479. AC_C_CONST
  480. AC_C_INLINE
  481. ifdef([m4_pattern_allow],
  482.       [m4_pattern_allow([^AM_CFLAGS$])])dnl
  483. #AC_C_RESTRICT
  484. AC_TYPE_SIZE_T
  485. # Checks for library functions.
  486. AC_FUNC_ALLOCA
  487. # the next two functions cause problems via hvconfig.h:
  488. # they add: #define malloc rpl_malloc    etc.
  489. # AC_FUNC_MALLOC
  490. # AC_FUNC_REALLOC
  491. AC_FUNC_SETVBUF_REVERSED
  492. AC_CHECK_FUNCS([floor gethostname getcwd mkdir memset setlocale sqrt strrchr strstr isnan])
  493. AC_CHECK_FUNCS([inet_ntoa socket strerror])
  494. AC_TYPE_MODE_T
  495. AC_HEADER_STAT
  496. AC_FUNC_STAT
  497. # generate output files
  498. AC_CONFIG_FILES(Makefile)
  499. if test "$have_cubicles_sources" = "yes"; then
  500. AC_CONFIG_FILES(cubicles/Makefile)
  501. fi
  502. if test "$have_handvu_sources" = "yes"; then
  503. AC_CONFIG_FILES(handvu/Makefile)
  504. fi
  505. if test "$have_hvopencv_sources" = "yes"; then
  506. AC_CONFIG_FILES(hv_OpenCV/Makefile)
  507. fi
  508. if test "$have_hvcvcam_sources" = "yes"; then
  509. AC_CONFIG_FILES(hv_CvCam/Makefile)
  510. fi
  511. if test "$have_hvdc1394_sources" = "yes"; then
  512. AC_CONFIG_FILES(hv_dc1394/Makefile)
  513. fi
  514. if test "$have_hvartk_sources" = "yes"; then
  515. AC_CONFIG_FILES(hv_ARtk/Makefile)
  516. fi
  517. if test "$have_hvdxapp_sources" = "yes"; then
  518. AC_CONFIG_FILES(hv_DXApp/Makefile)
  519. fi
  520. if test "$have_hvdxfilter_sources" = "yes"; then
  521. AC_CONFIG_FILES(hv_DXFilter/Makefile)
  522. fi
  523. AC_OUTPUT
  524. echo "
  525. configuration:
  526.     build cubicles:           ${have_cubicles_sources}
  527.     build handvu:             ${have_handvu_sources}
  528.     build OpenCV demo:        ${have_hvopencv_sources}
  529.     build CvCam demo:         ${have_hvcvcam_sources}
  530.     build libdc1394 demo:     ${have_hvdc1394_sources}
  531.     build ARtk demo:          ${have_hvartk_sources}
  532.     have DXApp code:          ${have_hvdxapp_sources}
  533.     have DXFilter code:       ${have_hvdxfilter_sources}
  534.     host system:              ${host}
  535.     compiler:                 ${CXX} 
  536.     CFLAGS:                   ${AM_CFLAGS} ${CFLAGS} 
  537.     CPPFLAGS:                 ${AM_CPPFLAGS} ${CPPFLAGS}
  538.     CXXFLAGS:                 ${AM_CXXFLAGS} ${CXXFLAGS}
  539.     install path:             ${prefix}
  540.     use OpenCV:               ${w_opencv}
  541.     use Magick:               ${w_magick}
  542.     small skin color table:   ${e_small_color}
  543.     debug:                    ${e_debug}"
  544. if test "$have_cubicles_training_sources" = "yes"; then
  545. echo "configuration for cubicles training:
  546.     with training:            ${e_training}
  547.     use MPI:                  ${USE_MPI}
  548.     debug MPI:                ${e_debug_mpi}
  549.     integral image type:      ${ii_type}"
  550. fi
  551. echo "now run make."