From 696b756e903c320dc630a9e897b3e74ba18b83dc Mon Sep 17 00:00:00 2001 From: Antoine Villeret Date: Tue, 8 Oct 2013 10:00:10 +0000 Subject: cleanup build system does not work yet on windows, but working on it... svn path=/trunk/externals/pix_opencv/; revision=17215 --- configure.ac | 125 ----------------------------------------------------------- 1 file changed, 125 deletions(-) delete mode 100755 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac deleted file mode 100755 index e4e4f36..0000000 --- a/configure.ac +++ /dev/null @@ -1,125 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. - -AC_PREREQ(2.65) -AC_INIT([pix-opencv],[0.2-rc6-svn],[lluisgomez@hangar.org],[pix-opencv-dev],[http://www.hangar.org/wikis/lab/doku.php?id=start:puredata_opencv]) -AC_CANONICAL_HOST -AM_INIT_AUTOMAKE -AC_DISABLE_OPTION_CHECKING - -make clean - -GEM_OPENCV_VERSION="0.2" -PD_DIR=/usr/local/pd -GEM_DIR=/usr/local/pd/gem -SOURCES_OPT= - -echo $host -# Check for DarwinPorts and/or Fink on Mac OS X/Darwin -case "$host" in - *-darwin* | *-macos10*) - if test -d /sw ; then - # Fink - PATH="/sw/bin:/sw/sbin:$PATH" - CFLAGS="$CFLAGS -I/sw/include" - CPPFLAGS="$CPPFLAGS -I/sw/include" - LDFLAGS="$LDFLAGS -L/sw/lib" - elif test -d /opt/local ; then - # DarwinPorts - PATH="/opt/local/bin:/opt/local/sbin:$PATH" - CFLAGS="$CFLAGS -I/opt/local/include" - CPPFLAGS="$CPPFLAGS -I/opt/local/include" - LDFLAGS="$LDFLAGS -L/opt/local/lib" - fi - ;; -esac - -AC_ARG_WITH(pdsources, [ --with-pd=PATH pd source tree]) -if ! test -z "${with_pd}" -then - pd_tree="`cd ${with_pd} 2>/dev/null && pwd`" - if test -z "${pd_tree}" - then - dnl The given directory can't be found - AC_MSG_ERROR([pd sources not found in ${with_pd}]) - else - PD_DIR=${pd_tree} - fi -fi - -AC_ARG_WITH(gemsources, [ --with-gem=PATH gem source tree]) -if ! test -z "${with_gem}" -then - gem_tree="`cd ${with_gem} 2>/dev/null && pwd`" - if test -z "${gem_tree}" - then - dnl The given directory can't be found - AC_MSG_ERROR([gem sources not found in ${with_gem}]) - else - GEM_DIR=${gem_tree} - fi -fi - -AC_ISC_POSIX -AC_PROG_CC -AM_PROG_CC_STDC -AC_HEADER_STDC -AC_PROG_INSTALL -AC_PROG_MAKE_SET -AM_SANITY_CHECK - -AM_MAINTAINER_MODE -AM_WITH_DMALLOC - -# Very basic check for OpenCV. This does not collect any compile flags; these -# are currently set in Makefile.in through pkg-config -# TODO: use a more robust and well-established OpenCV configure approach -AC_CHECK_LIB([cv], [cvSobel], [], [ - # try another lib name used in other versions of OpenCV - AC_CHECK_LIB([opencv_imgproc], [cvSobel], [], - [AC_MSG_ERROR([[missing a library from opencv try installing libcv]]) - ]) -]) - -AC_CHECK_LIB([highgui], [cvNamedWindow], [], [ - AC_CHECK_LIB([opencv_highgui], [cvNamedWindow], [], [ - AC_MSG_ERROR([[missing a library from opencv, try installing libhighgui]]) - ]) -]) - -AC_CHECK_LIB([cvaux], [cvSegmentImage], [], [ - AC_CHECK_LIB([opencv_legacy], [cvSegmentImage], [], [ - AC_MSG_ERROR([[missing a library from opencv try installing libcvaux]]) - ]) -]) - -echo -n "looking for pd sources (required) ... " -if test -f $PD_DIR/src/m_pd.h -then - AC_SUBST(PD_DIR) - echo "ok." -else - echo "pd source tree not found... install it and use the --with-pd= configuration option." - exit -1 -fi - -echo -n "looking for gem sources (required) ... " -if test -f $GEM_DIR/src/Base/GemBase.h -then - AC_SUBST(GEM_DIR) - echo "ok." -else - echo "gem source tree not found... install it and use the --with-gem= configuration option." - exit -1 -fi - -AC_CHECK_LIB(cv, cvExtractSURF, SOURCES_OPT="pix_opencv_surf.cc",,-L/usr/local/lib) - -AC_SUBST(GEM_OPENCV_VERSION) -AC_SUBST(PD_DIR) -AC_SUBST(GEM_DIR) -AC_SUBST(SOURCES_OPT) - -AC_CONFIG_FILES([ -Makefile -]) -AC_OUTPUT -- cgit v1.2.1