This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]


Daniel Jacobowitz <> writes:

> dnl This is a shame.  We have to provide a default for some link tests,
> dnl similar to the default for run tests.
> m4_define([AC_FUNC_MMAP],
> if test x$gcc_no_link = xyes; then
>   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
>     ac_cv_func_mmap_fixed_mapped=no
>   fi
> fi
> if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
>   m4_defn([AC_FUNC_MMAP])
> fi)

For what is this needed?  It breaks configure in libgfortran.  In general
it is a bad idea to put such a macro in a shell conditional because it
breaks AC_REQUIRE.  In the case of libgfortran this is the first macro
that triggers inclusion of the general C language setup (things like
AC_PROC_CPP, etc), which will not be executed at all when
ac_cv_func_mmap_fixed_mapped is set.  It also excludes a few test for
headers that libgfortran is depending upon, although the latter is
arguably a bug in the libgfortran configure script in that it should
explicitly test for them.


Andreas Schwab, SuSE Labs,
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]