summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68434b8)
raw | patch | inline | side by side (parent: 68434b8)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 8 Aug 2016 13:36:15 +0000 (15:36 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 8 Aug 2016 13:36:15 +0000 (15:36 +0200) |
contrib/redhat/collectd.spec | patch | blob | history |
index 3a4afdc62e55a359072b5bd2d9d46d2048063398..bb27aa389c41afbc7ef7811577eb8fd4af0dc2b2 100644 (file)
%if %{with_python}
%if 0%{?rhel} && 0%{?rhel} < 6
%define _with_python --enable-python --with-python=%{_bindir}/python2.6
-%define _python_config PYTHON_CONFIG=%{_bindir}/python2.6-config
+%define _python_config PYTHON_CONFIG="%{_bindir}/python2.6-config"
%else
%define _with_python --enable-python
%endif
%define _with_zookeeper --disable-zookeeper
%endif
-%configure CFLAGS="%{optflags} %{?_python_config} \
- -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
+%configure CFLAGS="%{optflags} -DLT_LAZY_OR_NOW=\"RTLD_LAZY|RTLD_GLOBAL\"" \
+ %{?_python_config} \
--disable-static \
--without-included-ltdl \
--enable-all-plugins=yes \