Commit b30c7f34 authored by Jakub Ružička's avatar Jakub Ružička
Browse files

rpm: support old Fedora/CentOS autoconf

--runstatedir option was introduced in autoconf >= 2.70
but all RPM platforms are currently at 2.69 which resulted in error:

    configure: error: unrecognized option: `--runstatedir=/run/bird`

Use equivalent --with-runtimedir option instead which works with older
autoconf.

Once some RPM platforms ship autoconf >= 2.70, a %if RPM macro can be
used to select appropriate option per-distro.
parent 62d26215
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ powerful language for route filtering.
%setup -q

%build
%configure --runstatedir=%{_rundir}/bird
%configure --with-runtimedir=%{_rundir}/bird
%make_build all %{!?_without_doc:docs}

%install