Skip to content

Commit

Permalink
add automake files
Browse files Browse the repository at this point in the history
  • Loading branch information
avilleret committed Jun 17, 2014
1 parent ff590e2 commit 2e5d356
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src
EXTRA_DIST = autogen.sh

ALL_CFLAGS = -I"$(PD_INCLUDE)" `pkg-config --cflags opencv`
LIBS = `pkg-config --libs pd` `pkg-config --libs Gem` `pkg-config --libs opencv`
2 changes: 2 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
autoreconf --force --install -I config -I m4
26 changes: 26 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(pix_opencv, 0.4, [email protected])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(src)

AM_INIT_AUTOMAKE

AC_PROG_CXX

#~AC_CHECK_LIB([pd], [error],,
#~[AC_MSG_ERROR([[missing pd library install puredata and try again.]])
#~])
#~
#~AC_CHECK_LIB([Gem], [error],,
#~[AC_MSG_ERROR([[missing Gem library install puredata-gem and try again.]])
#~])

AC_CHECK_LIB([opencv_core], [error],,
[AC_MSG_ERROR([[missing libopencv_core install it and try again.]])
])

#~AC_CHECK_LIB([opencv_calib3d], [findChessboardCorners],,
#~[AC_MSG_ERROR([[missing a library from opencv try installing libopencv_calib3d]])
#~])

AC_OUTPUT(Makefile src/Makefile)

0 comments on commit 2e5d356

Please sign in to comment.