(no commit message)
authorWinfried <szukw000@arcor.de>
Wed, 13 Oct 2010 14:49:39 +0000 (14:49 +0000)
committerWinfried <szukw000@arcor.de>
Wed, 13 Oct 2010 14:49:39 +0000 (14:49 +0000)
Makefile.nix
codec/Makefile.am
codec/Makefile.nix
configure.ac
libopenjpeg/Makefile.am

index c796c223bfde47245f684652e27a9281c4e8af88..7141cded19fca8636efd82c5d2f9b18eb1131ed9 100644 (file)
@@ -33,10 +33,6 @@ INSTALL_INCLUDE = $(prefix)/include/$(headerdir)
 # Converts cr/lf to just lf
 DOS2UNIX = dos2unix
 
-ifeq ($(WITH_JPWL),yes)
-COMPILERFLAGS += -DUSE_JPWL
-endif
-
 ifeq ($(WITH_LCMS1),yes)
 INCLUDE += $(LCMS1_INCLUDE)
 LIBRARIES += $(LCMS1_LIB)
index b0837fa9cfc63436343c7766de537837e0c47ac9..1a3f42bcb3d7efeee9cdfd10d4cd9834c8287b64 100644 (file)
@@ -2,11 +2,6 @@ COMPILERFLAGS = -Wall
 USERLIBS = -lm
 INCLUDES = -I.. -I. -I../libopenjpeg
 
-if with_libjpwl
-USERLIBS += -L../jpwl -lopenjpeg_JPWL
-COMPILERFLAGS += -DUSE_JPWL
-endif
-
 if with_libtiff
 INCLUDES += @tiffincludes@
 USERLIBS += @tifflibs@
index f80094e328f6c731cd0d96d4e7ce588ab75bb373..129b2a4bac76b85ead161f27f6c7e4d92839f052 100644 (file)
@@ -13,11 +13,6 @@ INCLUDE += $(TIFF_INCLUDE)
 USERLIBS += $(TIFF_LIB)
 endif
 
-ifeq ($(WITH_JPWL),yes)
-USERLIBS += ../jpwl/libopenjpeg_JPWL.a
-CFLAGS += -DUSE_JPWL
-endif
-
 ifeq ($(WITH_PNG),yes)
 INCLUDE += $(PNG_INCLUDE)
 USERLIBS += $(PNG_LIB)
index 67c30983ff84611564ccfd04774462e0ffe9dab4..405c448bb8e7d9a00dd7f11a93dea4ef5285dcf9 100644 (file)
@@ -127,6 +127,10 @@ if test "x$with_libpng" = xyes ; then
   else
     if test -n "$LIBPNG_CONFIG" ; then
      pnglibs="`$LIBPNG_CONFIG --ldflags` -lz $LIB_MATH"
+    else
+      if test -n "$PKGCONFIG" ; then
+        pnglibs="`$PKGCONFIG --libs libpng` $LIB_MATH"
+      fi
     fi
   fi
   if test -n "$pnglibs" ; then
@@ -190,7 +194,7 @@ if test "x$with_libtiff" = xyes ; then
   LIBS="$tifflibs"
   with_libtiff="no"
 #
-  AC_CHECK_FUNC(TIFFOpen, true, tifflibs="")
+  AC_CHECK_LIB(tiff, TIFFOpen, , tifflibs="",)
 #
   if test -n "$tifflibs" ; then
    if test "$tiff_header_found" = "yes" ; then
@@ -267,7 +271,7 @@ if test "x$with_liblcms2" = xyes ; then
   LIBS="$lcms2libs"
   with_liblcms2="no"
 #
-  AC_CHECK_FUNC(cmsOpenProfileFromFile, true, lcms2libs="")
+  AC_CHECK_LIB(lcms2, cmsOpenProfileFromFile, ,lcms2libs="",)
 #
   if test -n "$lcms2libs" ; then
    if test "$lcms2_header_found" = "yes" ; then
@@ -342,7 +346,7 @@ if [[ -z "$lcms2libs" ]] ; then
    LIBS="$lcms1libs"
    with_liblcms1="no"
 #
-   AC_CHECK_FUNC(cmsOpenProfileFromFile, true, lcms1libs="")
+   AC_CHECK_LIB(lcms, cmsOpenProfileFromFile, ,lcms1libs="",)
 #
    if test -n "$lcms1libs" ; then
     if test "$lcms1_header_found" = "yes" ; then
index ddf909dbfcd95c68066714fe3671166171831bef..1a9b0be22b9a1673c5c064c349d1a2281fa6ab60 100644 (file)
@@ -12,11 +12,6 @@ libopenjpeg_la_LDFLAGS = -no-undefined \
 
 libopenjpeg_la_LIBADD = @LDLIBS@ 
 
-#Cygwin needs this:
-if with_libjpwl
-libopenjpeg_la_LIBADD += ../jpwl/libopenjpeg_JPWL.la
-endif
-
 SRCS = bio.c cio.c dwt.c event.c image.c j2k.c j2k_lib.c jp2.c jpt.c \
  mct.c mqc.c openjpeg.c pi.c raw.c t1.c t2.c tcd.c tgt.c opj_convert.c
 
@@ -37,10 +32,6 @@ dos2unix:
 
 COMPILERFLAGS = -Wall -O3 -ffast-math -std=c99
 
-if with_libjpwl
-COMPILERFLAGS += -DUSE_JPWL
-endif
-
 if with_liblcms1
 INCLUDES += @lcms1includes@
 endif