More weird stuff

Russ Allbery rra at stanford.edu
Wed Jan 28 04:11:26 UTC 2009


Julien ÉLIE <julien at trigofacile.com> writes:

> I do not know whether it is true, but the following patch silents the
> warnings:

We should avoid tests for specific hosts and instead use the Autoconf
probe for whether a function is declated.  That will mean changing the
conditional to look like the one for snprintf in the header, but leaving
the same conditional in the library code to determine whether the function
is built.

> There is a problem during configure with sys/mount.h too.  This patch
> seems to fix it:

> Index: configure.ac
> ===================================================================
> --- configure.ac        (révision 8297)
> +++ configure.ac        (copie de travail)
> @@ -484,7 +484,13 @@
> dnl Probe for the appropriate stat functions.
> AC_CHECK_FUNCS([statvfs], ,
>     [AC_CHECK_FUNCS([statfs])
> -     AC_CHECK_HEADERS([sys/vfs.h sys/param.h sys/mount.h])])
> +     AC_CHECK_HEADERS([sys/vfs.h sys/mount.h])
> +     AC_CHECK_HEADERS(sys/mount.h, [], [],
> +         [#ifdef HAVE_SYS_PARAM_H
> +          # include <sys/param.h>
> +          #endif
> +         ])
> +    ])

I think you meant to leave sys/param.h in the initial check line, right?

Otherwise, that looks good.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.



More information about the inn-workers mailing list