diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/macros.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/macros.in b/tests/macros.in index 3fd8e21ce..dfcdd4995 100644 --- a/tests/macros.in +++ b/tests/macros.in @@ -104,15 +104,17 @@ # (Note: Above is the goal, below are the macros under development) # # The configure macro does the following: -# # optionally change to a subdirectory. # attempt to update onfig.guess and config.sub. # run configure with correct prefix, platform, and CFLAGS. # optionally restore current directory. +# The configure macro should be invoked as %configure (rather than %{configure}) +# because the rest of the arguments will be expanded using %*. Another +# gotcha is that arguments, if present, should be on the same line as the +# %configure. # %configure(C:) \ - %{C:%{-C:pushd %{-C*}}} \ + %{-C:pushd %{-C*}} \ %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} \ CFLAGS="%{optflags}" ./configure %{_build} --prefix=%{_prefix} \ - %{C:%{-C:popd }} - + %{-C:popd} |