Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mm2/Little-CMS.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <marti.maria@littlecms.com>2022-06-05 19:36:29 +0300
committerMarti Maria <marti.maria@littlecms.com>2022-06-05 19:36:29 +0300
commit52bd1d6e030ce42921745d50aeb3db2b612e5cb0 (patch)
tree77c575f93c40c2b519c7f97c18a78fb106d3e555 /configure
parent318d1d32da060c8d733b3c12bacc4e0d4679a22e (diff)
update configure to new plugin
automate make check on threaded plugin
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure37
1 files changed, 36 insertions, 1 deletions
diff --git a/configure b/configure
index 2112402..17a7e29 100755
--- a/configure
+++ b/configure
@@ -632,6 +632,8 @@ ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
+COND_THREADED_FALSE
+COND_THREADED_TRUE
COND_FASTFLOAT_FALSE
COND_FASTFLOAT_TRUE
TIFFICC_DEPLIBS
@@ -802,6 +804,7 @@ with_jpeg
with_tiff
with_zlib
with_fastfloat
+with_threaded
with_threads
'
ac_precious_vars='build_alias
@@ -1478,7 +1481,9 @@ Optional Packages:
--without-zlib disable ZLIB support
--with-fastfloat build and install fast_float plugin, use only if GPL
3.0 is acceptable
- --without-threads disable POSIX threads API support
+ --with-threaded build and install multi threaded plugin, use only if
+ GPL 3.0 is acceptable
+ --without-pthreads disable POSIX pthreads API support
Some influential environment variables:
CC C compiler command
@@ -17183,6 +17188,24 @@ then
LIB_PLUGINS="$LIB_PLUGINS -llcms2_fast_float"
fi
+#multi threaded plugin:
+
+# Check whether --with-threaded was given.
+if test "${with_threaded+set}" = set; then :
+ withval=$with_threaded;
+ with_threaded=$withval
+
+else
+
+ with_threaded='no'
+
+fi
+
+if test "x$with_threaded" = "xyes"
+then
+ LIB_PLUGINS="$LIB_PLUGINS -llcms2_threaded"
+fi
+
#
# Determine POSIX threads settings
#
@@ -18549,6 +18572,14 @@ else
COND_FASTFLOAT_FALSE=
fi
+ if test "x$with_threaded" = "xyes" ; then
+ COND_THREADED_TRUE=
+ COND_THREADED_FALSE='#'
+else
+ COND_THREADED_TRUE='#'
+ COND_THREADED_FALSE=
+fi
+
ac_config_files="$ac_config_files plugins/Makefile"
ac_config_files="$ac_config_files plugins/fast_float/Makefile"
@@ -18761,6 +18792,10 @@ if test -z "${COND_FASTFLOAT_TRUE}" && test -z "${COND_FASTFLOAT_FALSE}"; then
as_fn_error $? "conditional \"COND_FASTFLOAT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${COND_THREADED_TRUE}" && test -z "${COND_THREADED_FALSE}"; then
+ as_fn_error $? "conditional \"COND_THREADED\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0