diff options
Diffstat (limited to 'libkdcraw/configure.in.in')
-rw-r--r-- | libkdcraw/configure.in.in | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/libkdcraw/configure.in.in b/libkdcraw/configure.in.in index 34c437d..068a6e0 100644 --- a/libkdcraw/configure.in.in +++ b/libkdcraw/configure.in.in @@ -5,14 +5,12 @@ AC_CHECK_PROG(PKGCONFIGFOUND, pkg-config,[yes]) # Library API version # ----------------------------------------------------------------- -ABI_MAJOR=3 -VERSION_INFO="3:0:0" +ABI_MAJOR=4 +VERSION_INFO="4:3:0" AC_SUBST(ABI_MAJOR) AC_SUBST(VERSION_INFO) -KDCRAW_DIR="\$(libdir)/libkdcraw\$(ABI_MAJOR)" -AC_SUBST(KDCRAW_DIR) # AM_PROG_CC_C_O to avoid that automake complains for it AM_PROG_CC_C_O @@ -96,3 +94,26 @@ AC_COMPILE_IFELSE( ) CPPFLAGS=$libkdcraw_kdemacros_cppflags AC_LANG_POP(C++) + +# ----------------------------------------------------------------- +# enable OpenMP support to use parallelized code from LibRaw +# (default: disabled). this mode speed-up demosaicing operations. +# ----------------------------------------------------------------- + +AC_MSG_CHECKING(whether to enable parallel demosaicing operation from LibRaw using openmp...) +AC_ARG_ENABLE([openmp], [AC_HELP_STRING([--enable-openmp], + [enable openmp [default=disabled] ])], + if test $enableval = yes; then + [AC_MSG_RESULT(yes)] + [AC_DEFINE([USING_OPENMP], 1, [using openmp])] + USING_OPENMP=yes + [CXXFLAGS="$CXXFLAGS -fopenmp"] + [OPENMP_LDFLAGS=" -lgomp "] + fi + , + [AC_MSG_RESULT(no)] + [AC_DEFINE([USING_OPENMP], 0, [using openmp])] + USING_OPENMP=no + [OPENMP_LDFLAGS=""] + ) +AC_SUBST(OPENMP_LDFLAGS) |