2001-03-19 02:20:46 +01:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
AC_INIT(vvp.c)
|
2004-01-20 22:00:47 +01:00
|
|
|
AC_CONFIG_HEADER(vvp_config.h)
|
2001-03-19 02:20:46 +01:00
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
# $host
|
|
|
|
|
|
2008-11-20 07:39:10 +01:00
|
|
|
AX_ENABLE_SUFFIX
|
|
|
|
|
|
2004-02-15 04:17:36 +01:00
|
|
|
# Combined check for Microsoft-related bogosities; sets WIN32 if found
|
|
|
|
|
AX_WIN32
|
|
|
|
|
|
2001-09-15 20:27:04 +02:00
|
|
|
AC_CHECK_HEADERS(malloc.h)
|
2001-03-19 02:20:46 +01:00
|
|
|
|
2004-09-28 00:34:10 +02:00
|
|
|
# may modify CPPFLAGS and CFLAGS
|
|
|
|
|
AX_CPP_PRECOMP
|
2003-05-16 05:22:52 +02:00
|
|
|
|
2004-09-28 00:34:10 +02:00
|
|
|
# Do some more operating system specific setup.
|
|
|
|
|
case "${host}" in
|
2003-05-16 05:22:52 +02:00
|
|
|
*-*-linux*)
|
2007-05-17 01:51:42 +02:00
|
|
|
AC_DEFINE([_LARGEFILE_SOURCE], [1], [Indicates LFS (i.e. the ability to create files larger than 2 GiB on 32-bit operating systems).])
|
|
|
|
|
AC_DEFINE([_LARGEFILE64_SOURCE], [1], [Indicates LFS (i.e. the ability to create files larger than 2 GiB on 32-bit operating systems).])
|
2003-05-16 05:22:52 +02:00
|
|
|
;;
|
2001-11-17 18:57:58 +01:00
|
|
|
esac
|
|
|
|
|
|
2003-05-16 05:22:52 +02:00
|
|
|
AC_CHECK_FUNCS(fopen64)
|
|
|
|
|
|
2007-02-26 20:51:38 +01:00
|
|
|
# Compiler option for position independent code, needed when making shared objects.
|
2004-09-28 00:34:10 +02:00
|
|
|
AX_C_PICFLAG
|
2001-03-19 02:20:46 +01:00
|
|
|
|
2004-09-28 00:34:10 +02:00
|
|
|
# linker options when building a shared library
|
|
|
|
|
AX_LD_SHAREDLIB_OPTS
|
2001-03-19 02:20:46 +01:00
|
|
|
|
|
|
|
|
AC_OUTPUT(Makefile)
|