2001-03-11 01:29:38 +01:00
|
|
|
#ifndef __config_H
|
|
|
|
|
#define __config_H
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2001 Stephen Williams (steve@icarus.com)
|
|
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
* General Public License as published by the Free Software
|
|
|
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
|
*/
|
|
|
|
|
#if !defined(WINNT)
|
2002-05-24 02:43:16 +02:00
|
|
|
#ident "$Id: config.h.in,v 1.11 2002/05/24 00:43:16 steve Exp $"
|
2001-03-11 01:29:38 +01:00
|
|
|
#endif
|
|
|
|
|
|
2002-05-24 02:43:16 +02:00
|
|
|
# define SIZEOF_UNSIGNED_LONG_LONG 0
|
2001-03-11 01:29:38 +01:00
|
|
|
# define SIZEOF_UNSIGNED_LONG 0
|
|
|
|
|
# define SIZEOF_UNSIGNED 0
|
|
|
|
|
|
2001-09-18 00:26:33 +02:00
|
|
|
# undef NEED_LU
|
|
|
|
|
# undef NEED_TU
|
|
|
|
|
# undef WLU
|
|
|
|
|
# undef WTU
|
2001-03-16 02:44:34 +01:00
|
|
|
# undef HAVE_DLFCN_H
|
|
|
|
|
# undef HAVE_DL_H
|
2001-05-11 04:06:14 +02:00
|
|
|
# undef HAVE_GETOPT_H
|
2001-09-15 20:27:04 +02:00
|
|
|
# undef HAVE_MALLOC_H
|
2001-05-06 01:55:46 +02:00
|
|
|
# undef HAVE_LIBREADLINE
|
2001-03-16 02:44:34 +01:00
|
|
|
|
2001-05-11 04:06:14 +02:00
|
|
|
# undef ENABLE_VVP_DEBUG
|
|
|
|
|
|
2001-03-22 22:26:53 +01:00
|
|
|
#ifndef MODULE_DIR
|
|
|
|
|
# define MODULE_DIR "."
|
|
|
|
|
#endif
|
|
|
|
|
|
2002-04-20 06:33:23 +02:00
|
|
|
#if SIZEOF_UNSIGNED >= 8
|
|
|
|
|
typedef unsigned vvp_time64_t;
|
|
|
|
|
#else
|
|
|
|
|
# if SIZEOF_UNSIGNED_LONG >= 8
|
|
|
|
|
typedef unsigned long vvp_time64_t;
|
|
|
|
|
# else
|
|
|
|
|
# if SIZEOF_UNSIGNED_LONG_LONG > SIZEOF_UNSIGNED_LONG
|
|
|
|
|
typedef unsigned long long vvp_time64_t;
|
|
|
|
|
# else
|
|
|
|
|
typedef unsigned long vvp_time64_t;
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-05-11 04:06:14 +02:00
|
|
|
#if defined(HAVE_LIBREADLINE) && defined(ENABLE_VVP_DEBUG)
|
2001-05-06 01:55:46 +02:00
|
|
|
# define WITH_DEBUG 1
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-10-20 03:03:42 +02:00
|
|
|
/* getrusage, /proc/self/statm */
|
2001-07-16 20:40:19 +02:00
|
|
|
|
2001-10-20 03:03:42 +02:00
|
|
|
# undef HAVE_SYS_RESOURCE_H
|
|
|
|
|
# undef LINUX
|
2001-09-18 00:26:33 +02:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* When doing dynamic linking, we need a uniform way to identify the
|
|
|
|
|
* symbol. Some compilers put leading _, some trailing _. The
|
|
|
|
|
* configure script figures out which is the local convention and
|
|
|
|
|
* defines NEED_LU and NEED_TU as required.
|
|
|
|
|
*/
|
|
|
|
|
#ifdef NEED_LU
|
|
|
|
|
#define LU "_"
|
|
|
|
|
#else
|
|
|
|
|
#define LU ""
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef NEED_TU
|
|
|
|
|
#define TU "_"
|
|
|
|
|
#else
|
|
|
|
|
#define TU ""
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
/*
|
|
|
|
|
* $Log: config.h.in,v $
|
2002-05-24 02:43:16 +02:00
|
|
|
* Revision 1.11 2002/05/24 00:43:16 steve
|
|
|
|
|
* Define SIZEOF_UNSIGNED_LONG_LONG
|
|
|
|
|
*
|
2002-04-20 06:33:23 +02:00
|
|
|
* Revision 1.10 2002/04/20 04:33:23 steve
|
|
|
|
|
* Support specified times in cbReadOnlySync, and
|
|
|
|
|
* add support for cbReadWriteSync.
|
|
|
|
|
* Keep simulation time in a 64bit number.
|
|
|
|
|
*
|
2001-10-20 03:03:42 +02:00
|
|
|
* Revision 1.9 2001/10/20 01:03:42 steve
|
|
|
|
|
* Print memory usage information if requested (Stephan Boettcher)
|
|
|
|
|
*
|
2001-09-18 00:26:33 +02:00
|
|
|
* Revision 1.8 2001/09/17 22:26:33 steve
|
|
|
|
|
* Detect C name mangling for dlsym.
|
|
|
|
|
*
|
2001-09-15 20:27:04 +02:00
|
|
|
* Revision 1.7 2001/09/15 18:27:05 steve
|
|
|
|
|
* Make configure detect malloc.h
|
|
|
|
|
*
|
2001-07-16 20:40:19 +02:00
|
|
|
* Revision 1.6 2001/07/16 18:40:19 steve
|
|
|
|
|
* Add a stdlog output for vvp, and vvp options
|
|
|
|
|
* to direct them around. (Stephan Boettcher.)
|
|
|
|
|
*
|
2001-05-11 04:06:14 +02:00
|
|
|
* Revision 1.5 2001/05/11 02:06:14 steve
|
|
|
|
|
* Add the --enable-vvp-debug option to the configure
|
|
|
|
|
* script of vvp, and detect getopt.h.
|
|
|
|
|
*
|
2001-05-06 01:55:46 +02:00
|
|
|
* Revision 1.4 2001/05/05 23:55:46 steve
|
|
|
|
|
* Add the beginnings of an interactive debugger.
|
|
|
|
|
*
|
2001-03-22 22:26:53 +01:00
|
|
|
* Revision 1.3 2001/03/22 21:26:53 steve
|
|
|
|
|
* Compile in a default VPI module dir.
|
|
|
|
|
*
|
2001-03-16 02:44:34 +01:00
|
|
|
* Revision 1.2 2001/03/16 01:44:34 steve
|
|
|
|
|
* Add structures for VPI support, and all the %vpi_call
|
|
|
|
|
* instruction. Get linking of VPI modules to work.
|
|
|
|
|
*
|
2001-03-11 01:29:38 +01:00
|
|
|
* Revision 1.1 2001/03/11 00:29:38 steve
|
|
|
|
|
* Add the vvp engine to cvs.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#endif
|