]> granicus.if.org Git - openjpeg/commitdiff
[trunk] apply patch from winfried on the mailing list. For more info see: https:...
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 23 Apr 2012 13:28:20 +0000 (13:28 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 23 Apr 2012 13:28:20 +0000 (13:28 +0000)
Makefile.am
applications/jpip/libopenjpip/Makefile.am
applications/jpip/util/Makefile.am
configure.ac
doc/Makefile.am
libopenjpeg/Makefile.am
libopenjpeg/openjpeg.c
libopenjpeg/opj_stdint.h
opj_config.h.cmake.in

index 6ed452f52b761659e6a5ee486150a5a35742df70..6d841ae845f78d2e8028f3ad03a006efd23b857c 100644 (file)
@@ -34,7 +34,6 @@ CMake/OpenJPEGConfig.cmake.in \
 CMakeLists.txt \
 CTestConfig.cmake \
 AUTHORS \
-CHANGES \
 INSTALL \
 LICENSE \
 NEWS \
index cfc973c45afce26d7efce7250dfd6ffb6c96015e..6def5d6fcbf9a682d05a3b565ac69e7c693598c4 100644 (file)
@@ -80,6 +80,8 @@ dec_clientmsg_handler.h
 
 libopenjpip_server_la_CPPFLAGS = \
 -I. \
+-I$(top_srcdir)/libopenjpeg \
+-I$(top_builddir)/libopenjpeg \
 -I$(top_srcdir)/applications/jpip/libopenjpip \
 -I$(top_builddir)/applications/jpip/libopenjpip \
 @FCGI_CFLAGS@ \
index eac0e6a63240df06149d872994c11a487409204b..0e98b71e35544636fd43907df29cd9c5c60f2cb6 100644 (file)
@@ -13,6 +13,8 @@ endif
 opj_server_CPPFLAGS = \
 @FCGI_CFLAGS@ \
 -I. \
+-I$(top_srcdir)/libopenjpeg \
+-I$(top_builddir)/libopenjpeg \
 -I$(top_srcdir)/applications/jpip/libopenjpip \
 -I$(top_builddir)/applications/jpip/libopenjpip \
 -DSERVER \
@@ -25,6 +27,8 @@ opj_server_SOURCES = opj_server.c
 #-------------
 opj_dec_server_CPPFLAGS = \
 -I. \
+-I$(top_srcdir)/libopenjpeg \
+-I$(top_builddir)/libopenjpeg \
 -I$(top_srcdir)/applications/jpip/libopenjpip \
 -I$(top_builddir)/applications/jpip/libopenjpip
 #
@@ -35,6 +39,8 @@ opj_dec_server_SOURCES = opj_dec_server.c
 #-------------
 jpip_to_jp2_CPPFLAGS = \
 -I. \
+-I$(top_srcdir)/libopenjpeg \
+-I$(top_builddir)/libopenjpeg \
 -I$(top_srcdir)/applications/jpip/libopenjpip \
 -I$(top_builddir)/applications/jpip/libopenjpip
 #
@@ -45,6 +51,8 @@ jpip_to_jp2_SOURCES = jpip_to_jp2.c
 #-------------
 jpip_to_j2k_CPPFLAGS = \
 -I. \
+-I$(top_srcdir)/libopenjpeg \
+-I$(top_builddir)/libopenjpeg \
 -I$(top_srcdir)/applications/jpip/libopenjpip \
 -I$(top_builddir)/applications/jpip/libopenjpip
 #
@@ -55,6 +63,8 @@ jpip_to_j2k_SOURCES = jpip_to_j2k.c
 #-------------
 test_index_CPPFLAGS = \
 -I. \
+-I$(top_srcdir)/libopenjpeg \
+-I$(top_builddir)/libopenjpeg \
 -I$(top_srcdir)/applications/jpip/libopenjpip \
 -I$(top_builddir)/applications/jpip/libopenjpip
 #
index 283123e3e35a97d2ec6e0669aa7139051affd588..fa08d7f1c7caca6b9ee9080e268819fd91ca99c4 100644 (file)
@@ -59,7 +59,11 @@ esac
 AM_CONDITIONAL([HAVE_WIN32], [test "x${have_win32}" = "xyes"])
 AM_CONDITIONAL([HAVE_DARWIN], [test "x${have_darwin}" = "xyes"])
 
-
+AC_TYPE_SSIZE_T
+if test "x$ac_cv_type_ssize_t" = xyes; then
+AC_DEFINE([HAVE_SSIZE_T], [1],[Define to 1 if you have ssize_t.],
+ [AC_MSG([ssize_t not found])])
+fi
 ### Additional options to configure
 
 # debug
index d4b8056f85898b345ffcfb62c034323ca0d64068..9e62a65c8f3bcddf0af5bbefba8c2870eb9ea681 100644 (file)
@@ -34,7 +34,7 @@ doc:
 endif
 
 docsdir = $(docdir)-$(MAJOR_NR).$(MINOR_NR)
-docs_DATA = $(top_builddir)/LICENSE $(top_builddir)/CHANGES
+docs_DATA = $(top_builddir)/LICENSE
 
 dist_man1_MANS = \
 man/man1/image_to_j2k.1 \
index 0c551e0c0e0b8a88cb4d6b855dbe74f2c2803ac8..3397c9230c3e78f58de6aeb567bf7250921fdd91 100644 (file)
@@ -7,7 +7,7 @@ SUBDIRS += jpwl
 endif
 
 includesdir = $(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)
-includes_HEADERS = openjpeg.h
+includes_HEADERS = openjpeg.h opj_stdint.h
 
 lib_LTLIBRARIES = libopenjpeg.la
 
index bffd44dca37fcf4adf9b3cb0fed3e138ee9da650..a4c5cb991c2760683ac69e4035b5b64c1a7de738 100644 (file)
@@ -220,7 +220,7 @@ DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
 
 
 const char* OPJ_CALLCONV opj_version(void) {
-    return OPJ_PACKAGE_VERSION;
+    return PACKAGE_VERSION;
 }
 
 
index 36731167aacb4bf8a7debbac3d1d29ae8c39045d..3dd2ec2ba379bef6f47daf137be09c5904415b97 100644 (file)
@@ -49,8 +49,12 @@ typedef size_t        OPJ_SIZE_T;
 typedef int64_t OPJ_OFF_T;
 
 #ifndef HAVE_SSIZE_T
+#if defined(_WIN32)
 #include <BaseTsd.h>
 typedef SSIZE_T ssize_t;
+#else
+#error SSIZE_T is undefined
+#endif /* _WIN32 */
 #endif
 
 #endif /* OPJ_STDINT_H */
index e5ac38e4aef643067f97f18b007e5b821607cae6..b57adb748d8cef7e14e61fc1c08b48795e49b3ed 100644 (file)
@@ -1,5 +1,5 @@
 /* create config.h for CMake */
-#define OPJ_PACKAGE_VERSION "@PACKAGE_VERSION@"
+#define PACKAGE_VERSION "@PACKAGE_VERSION@"
 
 #cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@
 #cmakedefine HAVE_MEMORY_H @HAVE_MEMORY_H@