2006-08-26 11:35:28 +00:00
|
|
|
dnl $Id$
|
|
|
|
dnl DESCRIPTION: Process this file with autoconf to produce a configure script.
|
2008-01-15 14:29:08 +00:00
|
|
|
dnl Copyright 2003-2008 by Wilson Snyder. This program is free software; you can
|
2006-08-26 11:35:28 +00:00
|
|
|
dnl redistribute it and/or modify it under the terms of either the GNU
|
|
|
|
dnl General Public License or the Perl Artistic License.
|
|
|
|
|
|
|
|
AC_REVISION($Revision$)dnl
|
|
|
|
AC_INIT(src/Verilator.cpp)
|
2006-12-18 19:20:45 +00:00
|
|
|
AC_CONFIG_HEADER(src/config_build.h)
|
2006-08-26 11:35:28 +00:00
|
|
|
|
|
|
|
dnl Special Substitutions
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
CXX=g++
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PATH_PROG(PERL,perl)
|
2007-04-24 17:03:52 +00:00
|
|
|
if test "x$PERL" = "x" ; then
|
|
|
|
AC_MSG_ERROR([Cannot find "perl" in your PATH, please install it])
|
|
|
|
fi
|
2006-09-25 15:58:17 +00:00
|
|
|
AC_PATH_PROG(LEX,flex)
|
2007-04-24 17:03:52 +00:00
|
|
|
if test "x$LEX" = "x" ; then
|
|
|
|
AC_MSG_ERROR([Cannot find "flex" in your PATH, please install it])
|
|
|
|
fi
|
|
|
|
AC_PATH_PROG(YACC,bison)
|
|
|
|
if test "x$YACC" = "x" ; then
|
|
|
|
AC_MSG_ERROR([Cannot find "bison" in your PATH, please install it])
|
|
|
|
fi
|
2006-08-26 11:35:28 +00:00
|
|
|
|
|
|
|
dnl Checks for libraries.
|
|
|
|
|
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_HEADER_SYS_WAIT
|
2006-12-18 19:20:45 +00:00
|
|
|
AC_CHECK_HEADERS(fcntl.h unistd.h inttypes.h sys/file.h sys/time.h sys/un.h math.h stdint.h mingw/stdint.h)
|
2006-08-26 11:35:28 +00:00
|
|
|
|
|
|
|
dnl Checks for typedefs, structures
|
|
|
|
AC_CHECK_TYPE(size_t,unsigned int)
|
|
|
|
AC_CHECK_TYPE(uint_t,unsigned int)
|
|
|
|
AC_CHECK_TYPE(ulong_t,unsigned long)
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_STRUCT_TM
|
|
|
|
|
|
|
|
dnl Checks for compiler characteristics.
|
|
|
|
AC_C_INLINE
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
|
|
|
|
dnl Checks for system services
|
|
|
|
|
|
|
|
dnl Other install directories
|
|
|
|
pkgdatadir=${datadir}/verilator
|
|
|
|
AC_SUBST(pkgdatadir)
|
|
|
|
|
|
|
|
AC_OUTPUT(Makefile src/Makefile src/Makefile_obj include/verilated.mk)
|
|
|
|
|
|
|
|
AC_MSG_RESULT([])
|
|
|
|
AC_MSG_RESULT([Now type 'make'])
|
|
|
|
AC_MSG_RESULT([])
|