Description of Problem: The %GNUconfigure macro is broken in several aspects: - it does not set CXXFLAGS - it sets LDFLAGS to an empty string; with recent autotools (autoconf-2.52-3, automake-1.5-1) it fails to detect the C++ compiler, because it tries to execute "g++ '' conftest.cc" in a autoconf-test. There '' is the value of $LDFLAGS and g++ won't find this file. - adding additional flags to ./configure is not intuitive (you have to execute %{GNUconfigure -- --extra-flags=...}). A solution could be a definition of %GNUconfigure as a sh-function and calling this at the end: | % define GNUconfigure(MCs:) | function __rpm_gnuconfigure { | ... body ... | ./configure ... "$@" | ... | }; __rpm_gnuconfigure - the filename "configure.in" (used in some tests) is deprecated in recent autotools; configure.ac is recommended now - the whole libtoolize/autoheader/aclocal/autoconf stuff can be replaced by a simple "autoreconf -i" Version-Release number of selected component (if applicable): rpm-4.0.3-1.04
Nod. Meanwhile, %GNUconfigure is hardly used, and not worth the effort of fixing. Don't use it is the message.