diff -Nur kdegraphics-3.4.2.orig/kfile-plugins/exr/configure.in.in kdegraphics-3.4.2/kfile-plugins/exr/configure.in.in --- kdegraphics-3.4.2.orig/kfile-plugins/exr/configure.in.in 2005-05-23 14:06:14.000000000 +0200 +++ kdegraphics-3.4.2/kfile-plugins/exr/configure.in.in 2005-07-26 13:32:45.000000000 +0200 @@ -68,6 +68,17 @@ AC_SUBST(EXR_FLAGS) ]) -AC_FIND_LIBEXR -AM_CONDITIONAL(include_EXR_MODULES, test -n "$LIB_EXR") +AC_ARG_WITH([openexr], + [AC_HELP_STRING([--with-openexr], + [Enable support for OpenEXR @<:@default=check@:>@])], + [], with_openexr=check) + +if test "x$with_openexr" != xno; then + AC_FIND_LIBEXR + if test "x$with_openexr" != xcheck && test -z "$LIB_EXR"; then + AC_MSG_ERROR([--with-openexr was given, but test for OpenEXR failed]) + fi +fi + +AM_CONDITIONAL(include_EXR_MODULES, test -n "$LIB_EXR")