2012-06-22 13:22:16 -04:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
2012-06-22 16:15:59 -04:00
|
|
|
AC_PREREQ(2.59)
|
2012-06-22 13:22:16 -04:00
|
|
|
AC_INIT(libcvautomation, 0.1, bspeice@uncc.edu)
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
|
2012-06-22 16:26:47 -04:00
|
|
|
#AC_CONFIG_HEADERS([config.h])
|
2012-06-22 13:22:16 -04:00
|
|
|
AC_CONFIG_SUBDIRS([libcvautomation/] [examples/])
|
|
|
|
|
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
# Checks for libraries.
|
|
|
|
#AC_CHECK_LIB(cv, cvMatchTemplate)
|
|
|
|
#AC_CHECK_LIB(cv, cvMinMaxLoc)
|
|
|
|
#AC_CHECK_LIB(X11, XGetImage)
|
|
|
|
|
|
|
|
# Checks for header files.
|
|
|
|
AC_PATH_X
|
|
|
|
#Headers needed for libcvautomation
|
|
|
|
#AC_CHECK_HEADER(stdio.h)
|
|
|
|
#AC_CHECK_HEADER(opencv/cv.h)
|
|
|
|
#AC_CHECK_HEADER(opencv/highgui.h)
|
|
|
|
#AC_CHECK_HEADER(X11/Xlib.h)
|
|
|
|
#AC_CHECK_HEADER(X11/Xutil.h)
|
|
|
|
PKG_CHECK_MODULES([OpenCV], [opencv >= 1.0.0])
|
|
|
|
PKG_CHECK_MODULES([X11], [x11 >= 1.0.3])
|
|
|
|
|
|
|
|
AC_ARG_WITH(examples, [ --with-examples build example programs '['default=yes']'])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_EXAMPLES, [test "$with_examples" != "no"])
|
|
|
|
if test "$with_examples" != "no"; then
|
|
|
|
#Headers needed for cva-match
|
|
|
|
echo building examples
|
|
|
|
AC_CHECK_HEADERS([limits.h stdlib.h unistd.h])
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
|
|
|
|
AC_OUTPUT([Makefile] [libcvautomation/Makefile] [examples/Makefile])
|