./configure and large file support

Russ Allbery rra at stanford.edu
Thu Jan 6 08:08:41 UTC 2005


Heath Kehoe <hakehoe at avalon.net> writes:

> That looks like it'll work.  I was half right about the needed defines:
> HP/UX does not declare fseeko/ftello in its headers unless
> _LARGEFILE_SOURCE is defined.  Since _LARGEFILE_SOURCE is not otherwise
> required for largefile support, it wasn't getting set by autoconf's
> AC_SYS_LARGEFILE.

> But autoconf's AC_FUNC_FSEEKO does test if _LARGEFILE_SOURCE is needed 
> to get at fseeko.

> Results on the HP/UX box using your latest changes:

> [inn-current]# egrep 'FSEEKO|LARGEFILE' include/config.h
> #define DO_LARGEFILES 1
> /* #undef HAVE_DECL_FSEEKO */
> #define HAVE_FSEEKO 1
> #define _LARGEFILE_SOURCE 1

> On a Linux box (glibc 2.3.3):

> [inn-current]# egrep 'FSEEKO|LARGEFILE' include/config.h
> #define DO_LARGEFILES 1
> /* #undef HAVE_DECL_FSEEKO */
> #define HAVE_FSEEKO 1
> /* #undef _LARGEFILE_SOURCE */

Cool.  BTW, does the test suite pass on HP-UX currently?  I've only run
the test suite on Linux lately.

-- 
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