+# Set configure options and environment variables for each build
+# configuration.
+CONF_OPTS=("--prefix=$PREFIX")
+case "$conf" in
+static)
+ echo "Static lib only configuration"
+
+ CONF_OPTS+=("--enable-static" "--disable-shared")
+ ;;
+
+tls_fallback)
+ echo "Using pthread_getspecific() to emulate TLS"
+ CONF_OPTS+=("--disable-compiler-tls")
+ ;;
+
+debug-rcu)
+ echo "Enable RCU sanity checks for debugging"
+ if vergte "$PACKAGE_VERSION" "0.10"; then
+ CONF_OPTS+=("--enable-rcu-debug")
+ else
+ export CFLAGS="$CFLAGS -DDEBUG_RCU"
+ fi
+
+ echo "Enable iterator sanity validator"
+ if vergte "$PACKAGE_VERSION" "0.11"; then
+ CONF_OPTS+=("--enable-cds-lfht-iter-debug")
+ fi
+ ;;
+
+*)
+ echo "Standard configuration"
+ ;;
+esac