Make sure file64 support is on cc -D flags.

This commit is contained in:
steve 2004-01-26 21:52:46 +00:00
parent f349449a49
commit 5160021b48
3 changed files with 17 additions and 7 deletions

View File

@ -16,7 +16,7 @@
# 59 Temple Place - Suite 330
# Boston, MA 02111-1307, USA
#
#ident "$Id: Makefile.in,v 1.50 2004/01/15 20:52:32 steve Exp $"
#ident "$Id: Makefile.in,v 1.51 2004/01/26 21:52:46 steve Exp $"
#
#
SHELL = /bin/sh
@ -43,7 +43,7 @@ INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
CPPFLAGS = @CPPFLAGS@ @DEFS@ @PICFLAG@
CPPFLAGS = @ident_support@ @file64_support@ @CPPFLAGS@ @DEFS@ @PICFLAG@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
STRIP = @STRIP@
@ -61,7 +61,7 @@ dep:
mkdir dep
%.o: %.c
$(CC) -Wall @ident_support@ -I$(srcdir)/.. -I$(srcdir) -I.. $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
$(CC) -Wall -I$(srcdir)/.. -I$(srcdir) -I.. $(CPPFLAGS) $(CFLAGS) -MD -c $< -o $*.o
mv $*.d dep
O = sys_table.o sys_convert.o sys_deposit.o sys_display.o sys_fileio.o \

View File

@ -67,7 +67,11 @@ AC_LANG_C
AC_C_BIGENDIAN
AC_CANONICAL_HOST
# Do some operating system specific setup.
# Do some operating system specific setup. We put the file64_support
# define in a substitution instead of simply a define because there
# are source files (namely lxt support files) that don't include any
# config.h header file.
file64_support=''
case "${host}" in
*-*-darwin*)
CPPFLAGS="-no-cpp-precomp $CPPFLAGS"
@ -76,9 +80,10 @@ case "${host}" in
*-*-linux*)
AC_DEFINE(_LARGEFILE_SOURCE)
AC_DEFINE(_LARGEFILE64_SOURCE)
file64_support='-D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64'
;;
esac
AC_SUBST(file64_support)
# $host

View File

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: vpi_config.h.in,v 1.1 2004/01/21 01:22:53 steve Exp $"
#ident "$Id: vpi_config.h.in,v 1.2 2004/01/26 21:52:46 steve Exp $"
#endif
# undef HAVE_LIBIBERTY_H
@ -31,10 +31,15 @@
# undef WORDS_BIGENDIAN
# undef _LARGEFILE_SOURCE
# undef _LARGEFILE64_SOURCE
#ifdef _LARGEFILE_SOURCE
# define _FILE_OFFSET_BITS 64
#endif
/*
* $Log: vpi_config.h.in,v $
* Revision 1.2 2004/01/26 21:52:46 steve
* Make sure file64 support is on cc -D flags.
*
* Revision 1.1 2004/01/21 01:22:53 steve
* Give the vip directory its own configure and vpi_config.h
*