|
Home > Archive > Unix Programming > January 2006 > AC_SYS_LARGEFILE in configure.in but...
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
AC_SYS_LARGEFILE in configure.in but...
|
|
| Colossus 2005-12-29, 2:51 am |
| Hi,
I put the above macro in configure.in but even after running autoconf &
configure & make there is no -D_FILE_OFFSET_BITS=64 passed to the
compiler and the code is not compiled to support files over 2GB. What
else is needed ? It follows my configure.in:
dnl Process this file with autoconf to produce a configure script.
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(xarchiver, 0.4)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_SYS_LARGEFILE
pkg_modules="gtk+-2.0 >= 2.6.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
GETTEXT_PACKAGE=xarchiver
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext
package.])
dnl Add the languages which your application supports here.
ALL_LINGUAS="de ru"
AM_GLIB_GNU_GETTEXT
AC_OUTPUT([
po/Makefile.in
Makefile
src/Makefile
])
echo "----------------------------------------"
echo "$PACKAGE $VERSION"
echo ""
echo "The binary will be installed in $prefix/bin"
echo ""
echo "Configure finished, type 'make' to build."
Thank you,
--
Colossus
Xarchiver, a GTK2 only archive manager -
http://xarchiver.sourceforge.net
Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net
Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforge.net
| |
| Colossus 2006-01-13, 10:41 pm |
| For future reference I put the macro in the configure.in (or
configure.ac if you have it ):
AC_SYS_LARGEFILE
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
Now using stat doesn't give me any error related to large files.
--
Colossus
Xarchiver, a GTK2 only archive manager -
http://xarchiver.sourceforge.net
Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net
Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforge.net
| |
| Colossus 2006-01-13, 10:41 pm |
| For those who will eventually face my same problem in the future I
solved my problem by adding this to the configure.in:
AC_SYS_LARGEFILE
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
--
Colossus
Xarchiver, a GTK2 only archive manager -
http://xarchiver.sourceforge.net
Cpsed, a Linux OpenGL 3D scene editor - http://cpsed.sourceforge.net
Mizio, a QT proxy hunter scanner tool - http://mizio.sourceforge.net
|
|
|
|
|