bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS trunk testing results


From: Derek Robert Price
Subject: Re: CVS trunk testing results
Date: Wed, 10 Dec 2003 14:33:36 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Mark D. Baushke wrote:

> Larry Jones <address@hidden> writes:
>
> Mark D. Baushke writes:
>
> >I wrote replacement functions for both ftello and fseeko in the lib
> >directory. I ended up adding ftello and fseeko into an AC_REPLACE_FUNCS
> >instead of using the AC_FUNC_FSEEKO macro when I couldn't get the latter
> >to do the right thing in the lib/Makefile.in file.
>
> That's the problem.  On HP-UX, you have to #define _LARGEFILE_SOURCE to
> make the fseeko/ftello prototypes visible and to correctly map them to
> either the 32 or 64 bit library functions.  AC_FUNC_FSEEKO does that,
> AC_REPLACE_FUNCS does not.
>
>
> Hmmm... AC_FUNC_FSEEKO seems to expect folks to have a .c or .h file
> that will conditionally define the fseeko and/or ftello functions rather
> than adding a replacement .o file to a library.
>
> Should I just make them be a static functions that I put into a .h file
> using #if !defined() or is there another way to deal with this?


What about a simple:


AC_FUNC_FSEEKO
if test $ac_cv_func_fseeko = no; then
    AC_LIBOBJ(fseeko);
    AC_LIBOBJ(ftello);
fi


? You would still need to #ifdef the prototypes.

Derek
- --
                *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
- --
I will not burp in class.
I will not burp in class.
I will not burp in class...

          - Bart Simpson on chalkboard, _The Simpsons_
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQE/13UPLD1OTBfyMaQRAmKZAKDrGHoc/wtmXxbbPD/6fMZFtPl43ACfXe9K
NRGWNaxi62oxGmlEm5H9to8=
=HQs9
-----END PGP SIGNATURE-----






reply via email to

[Prev in Thread] Current Thread [Next in Thread]