author | Don Pellegrino <don@coffee.donpellegrino.com> | 2009-09-09 19:25:26 (GMT) |
---|---|---|
committer | Don Pellegrino <don@coffee.donpellegrino.com> | 2009-09-09 19:25:26 (GMT) |
commit | c5c2640f584ae68604c542cd92069ea3b8fc1593 (patch) (side-by-side diff) | |
tree | 4f74ca1db6209d98e968020e5905bc32b737e499 | |
parent | 8c8aabdaf01cc1cc8e64536f15f3b26b75d11ab2 (diff) | |
download | exp005-c5c2640f584ae68604c542cd92069ea3b8fc1593.zip exp005-c5c2640f584ae68604c542cd92069ea3b8fc1593.tar.gz exp005-c5c2640f584ae68604c542cd92069ea3b8fc1593.tar.bz2 |
Added dependency checking and error messages to the configure.ac
script while leaving the README more general.
-rw-r--r-- | README | 21 | ||||
-rw-r--r-- | configure.ac | 28 |
2 files changed, 37 insertions, 12 deletions
@@ -27,16 +27,17 @@ selection mechanisms can be used to identify the points under the mouse. Alternatively a keyboard command might be added to provide the information upon a keypress. -=== -DB2 -=== +See configure.ac for a list of build dependencies. - export LDFLAGS="-L/home/db2inst1/sqllib/lib" - export CFLAGS="-I/home/db2inst1/sqllib/include" +===================================== +Example: Building on a Debian system. +===================================== -====================== -CLUSTER.CIS.DREXEL.EDU -====================== +The following Debian packages are used for the build process. -This project will not build on cluster as the OpenGL support libraries -there do not include support for buffer objects. +libtool + +To setup the build tools run: + +$ libtoolize +$ autoreconf diff --git a/configure.ac b/configure.ac index 4e0c4ba..fa1de7a 100644 --- a/configure.ac +++ b/configure.ac @@ -7,14 +7,38 @@ AC_CONFIG_FILES([ src/Makefile ]) +################## +# MODULE: OpenGL # +################## + +# Note that this project will not build on systems where the OpenGL +# support libraries do not include support for buffer objects. + # Check for OpenGL libraries GLUT, GLU and GL. OpenGL is used for the # visualization rendering and interaction. AX_CHECK_GLUT -# Check for DB2. -AC_SEARCH_LIBS([sqlastrt],[db2]) +############### +# MODULE: DB2 # +############### + +# Check for DB2 client library. +AC_SEARCH_LIBS([sqlastrt],[db2],[], +[AC_MSG_ERROR(The DB2 client libraries are needed to build the system. After installation of the client it may be necessary to add -L/home/db2inst1/sqllib/lib to LDFLAGS.)]) + +# Check for DB2 client headers. +AC_CHECK_HEADERS([sqladef.h],[], +[AC_MSG_ERROR(The DB2 client headers are needed to build the system. After installation of the client it may be necessary to add -I/home/db2inst1/sqllib/include to CPPFLAGS.)]) + +########################## +# MODULE: BROWSER PLUGIN # +########################## # Libtool is used to build the library for the browser plugin. AC_PROG_LIBTOOL +# Check for the Gecko Plugin API +AC_CHECK_HEADERS([npapi.h],[], +[AC_MSG_ERROR(The Gecko Plugin API (NPAPI) is needed to build the system. Information on this API can be found on-line at https://developer.mozilla.org/en/Plugins. Debian users can add the package xulrunner-dev and add -I/usr/include/xulrunner-1.9/unstable to CPPFLAGS.)]) + AC_OUTPUT |