]> Creatis software - gdcm.git/commitdiff
added dictionnary installation in autoconf
authorjohan <johan>
Mon, 17 Feb 2003 14:50:13 +0000 (14:50 +0000)
committerjohan <johan>
Mon, 17 Feb 2003 14:50:13 +0000 (14:50 +0000)
Dicts/.cvsignore [new file with mode: 0644]
Dicts/Makefile.am [new file with mode: 0644]
Makefile.am
configure.in
src/Makefile.am
src/gdcmDictSet.cxx
src/gdcmException.cxx

diff --git a/Dicts/.cvsignore b/Dicts/.cvsignore
new file mode 100644 (file)
index 0000000..282522d
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/Dicts/Makefile.am b/Dicts/Makefile.am
new file mode 100644 (file)
index 0000000..610ab8a
--- /dev/null
@@ -0,0 +1,2 @@
+dictsdir = $(prefix)/dicts
+dicts_DATA = dicomV3.dic README
index 93175fd..a3a19c1 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-SUBDIRS = src Test
+SUBDIRS = src Test Dicts
 
 release:
        $(MAKE) dist distdir=$(PACKAGE)-$(VERSION)
index 75710ec..d59dfb0 100644 (file)
@@ -41,4 +41,5 @@ dnl produce Makefile.in files
 AC_OUTPUT([
 Makefile 
 src/Makefile
-Test/Makefile])
+Test/Makefile
+Dicts/Makefile])
index ae54fef..c5506f1 100644 (file)
@@ -14,6 +14,8 @@ LTVERSION = 0:1:0
 
 lib_LTLIBRARIES = libgdcm.la
 
+CXXFLAGS = -DPUB_DICT_PATH=\"$(prefix)/dicts/\"
+
 libgdcm_la_SOURCES=            \
        gdcmException.cxx       \
        gdcmUtil.cxx            \
index 1c3c0a7..e24e8d0 100644 (file)
@@ -6,7 +6,9 @@
 #include "gdcmUtil.h"
 
 #define PUB_DICT_NAME     "DicomV3Dict"
-#define PUB_DICT_PATH     "../Dicts/"
+#ifndef PUB_DICT_PATH
+#  define PUB_DICT_PATH     "../Dicts/"
+#endif
 #define PUB_DICT_FILENAME "dicomV3.dic"
 
 gdcmDictSet::gdcmDictSet(void) {
index bc84810..9ad0f4c 100644 (file)
@@ -17,6 +17,7 @@ catch(...) {
 #endif
 
 
+
 void gdcmException::fatal(const char *from) throw() {
   try {
     cerr << "Fatal: exception received in " << from