configure issue in CURRENT
Heath Kehoe
hakehoe at avalon.net
Tue Jul 20 21:18:42 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've run into a problem with CURRENT on HP/UX, where fseeko()
isn't working (it silently fails).
The cause is the prototype for fseeko which appears in
clibrary.h. If I remove the prototypes for fseeko and ftello
from clibrary.h, the problem goes away. Now, those prototypes
are enclosed in '#if !HAVE_FSEEKO', but HAVE_FSEEKO does not
appear in config.h even though configure does a check for
fseeko/ftello.
With STABLE and before, HAVE_FSEEKO and HAVE_FTELLO get set,
so we don't run in to this problem.
So I put HAVE_FSEEKO and HAVE_FTELLO back in config.h.in,
but that isn't quite enough.
configure.ac has this:
dnl AC_REPLACE_FUNCS doesn't take the normal action arguments, so we
have to
dnl do this using AC_CHECK_FUNC.
AC_CHECK_FUNC([fseeko], ,
[AC_LIBOBJ(fseeko)
AC_LIBOBJ(ftello)
INN_TYPE_FPOS_T_LARGE])
But that comment isn't true! AC_REPLACE_FUNCS can take action
arguments, and
it also sets the HAVE_(func) variables. So if I change configure.ac to
this instead:
AC_CHECK_FUNCS([fseeko ftello], ,
[AC_LIBOBJ(fseeko)
AC_LIBOBJ(ftello)
INN_TYPE_FPOS_T_LARGE])
it works correctly. (I tested it by changing the first fseeko to
fseekoblah;
which it didn't find and so put fseeko/ftello in LIBOBJS and ran the
FPOS test).
- - heath
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFA/Yw34uXPAG0A1J4RAi2bAKCwkorZnx9+U0MheSkgn4VtFiv4ugCgklFR
wilfXZbAPQhHt4qtZ17e0io=
=A4K2
-----END PGP SIGNATURE-----
More information about the inn-workers
mailing list