%if %{with x}
export CFLAGS+=" -DHAVE_X11"
%endif
LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS
%if %{with x}
export CFLAGS+=" -DHAVE_X11"
%endif
LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS