summaryrefslogtreecommitdiffstats
authorDon 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)
commitc5c2640f584ae68604c542cd92069ea3b8fc1593 (patch) (side-by-side diff)
tree4f74ca1db6209d98e968020e5905bc32b737e499
parent8c8aabdaf01cc1cc8e64536f15f3b26b75d11ab2 (diff)
downloadexp005-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--README21
-rw-r--r--configure.ac28
2 files changed, 37 insertions, 12 deletions
diff --git a/README b/README
index b03724f..b564016 100644
--- a/README
+++ b/README
@@ -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

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.