Unless OpenEXR half mode is used, don't ask synfigstudio to depend on it.
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 20 Mar 2008 04:41:45 +0000 (04:41 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 20 Mar 2008 04:41:45 +0000 (04:41 +0000)
git-svn-id: http://svn.voria.com/code@1917 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/configure.ac

index 992dfc5..6627b39 100644 (file)
@@ -306,8 +306,6 @@ AC_ARG_WITH(openexr,[
 ])
 if test $with_openexr = "yes" ; then {
        PKG_CHECK_MODULES(OPENEXR, OpenEXR,[
-               CONFIG_DEPS="$CONFIG_DEPS OpenEXR"
-       
                AC_DEFINE(HAVE_OPENEXR,[], [ Define if OpenEXR is available ] )
                AM_CONDITIONAL(WITH_OPENEXR,true)
        ],
@@ -321,6 +319,7 @@ if test $with_openexr = "no" ; then {
 } ; fi
 if test $use_openexr_half = yes ; then {
        AC_MSG_RESULT([ ** Using OpenEXR Half.])
+       CONFIG_DEPS="$CONFIG_DEPS OpenEXR"
        CONFIG_CFLAGS="$CONFIG_CFLAGS -DUSE_HALF_TYPE"
        OPENEXR_HALF_LIBS="-lHalf"
 } else {