URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [infra/] [configure.in] - Rev 310
Go to most recent revision | Compare with Previous | Blame | View Log
dnl Process this file with autoconf to produce a configure script.dnl ====================================================================dnldnl configure.indnldnl Host side implementation of the eCos infrastructure.dnldnl ====================================================================dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN####dnl ----------------------------------------------------------------------------dnl Copyright (C) 2002 Bart Veerdnl Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.dnldnl This file is part of the eCos host tools.dnldnl This program is free software; you can redistribute it and/or modify itdnl under the terms of the GNU General Public License as published by the Freednl Software Foundation; either version 2 of the License, or (at your option)dnl any later version.dnldnl This program is distributed in the hope that it will be useful, but WITHOUTdnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ordnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License fordnl more details.dnldnl You should have received a copy of the GNU General Public License along withdnl this program; if not, write to the Free Software Foundation, Inc.,dnl 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnldnl ----------------------------------------------------------------------------dnl ####ECOSHOSTGPLCOPYRIGHTEND####dnl ====================================================================dnl#####DESCRIPTIONBEGIN####dnldnl Author(s): bartvdnl Contact(s): bartvdnl Date: 1998/07/13dnl Version: 0.01dnldnl####DESCRIPTIONEND####dnl ====================================================================dnl No infrastructure is complete without assertions.AC_INIT(assert.cxx)dnl Pick up the support files from the top-level acsupport directory.AC_CONFIG_AUX_DIR(../../acsupport)ECOS_CHECK_BUILD_ne_SRCdnl Other standard options.AC_CANONICAL_HOSTdnl This package is called cyginfra, partly for historical reasonsdnl and partly to avoid reorganizing the testsuite subdirectory.dnl The generated header file may get #include'd indirectly by otherdnl packages, so it is not a good idea to define package and version.AM_INIT_AUTOMAKE(cyginfra, 0.1,0)ECOS_SUBST_VERSION(CYGNUM_INFRA_VERSION)AM_MAINTAINER_MODEdnl The package contains a library implemented in C++. It has to bednl buildable under NT. Only a static version of the library isdnl of interest at the moment.AC_PROG_CCAC_PROG_CXXAC_PROG_RANLIBAC_OBJEXTAC_EXEEXTECOS_PROG_MSVCECOS_PROG_STANDARD_COMPILER_FLAGSdnl Work out the endianness. The standard macro for this is useddnl even though it will give warnings at autoconf time.AC_C_BIGENDIANdnl Work out a suitable datatype for 64 bit arithmetic.ECOS_TYPE_64bitdnl Check the sizes of the pointer and long data types, so thatdnl CYG_ADDRWORD can be defined correctly.AC_CHECK_SIZEOF(int *)AC_CHECK_SIZEOF(long)dnl See whether or not the compiler provides __PRETTY_FUNCTION__ECOS_C_PRETTY_FUNCTIONdnl What function should be used to create a temporary file?dnl tmpnam() is deprecated for security reasons.AC_CHECK_FUNCS(mkstemp)dnl --------------------------------------------------------------------dnl User-settable options. Currently these are handled via --enablednl command line options, in the absence of an accepted and more rationaldnl alternative.AC_ARG_ENABLE(tracebufsize,[ --enable-tracebufsize=X size of the trace buffer],[if test "$enableval" = "no" -o "$enableval" = "yes"; thenAC_MSG_ERROR("--enable-tracebufsize should be given a suitable value")elseAC_DEFINE_UNQUOTED(CYGNUM_INFRA_TRACE_VECTOR_SIZE,$enableval)fi])dnl --------------------------------------------------------------------dnl Directory structures.dnldnl The purpose of this infrastructure implementation is to provide a waydnl of giving host code access to the same set of assertions and tracingdnl facilities as are available on the target side. The implementationsdnl of these facilities has to be rather different, for example the hostdnl side has to worry about running in both command-line and GUI tools,dnl not to mention supporting different languages such as Tcl as welldnl as C and C++.dnldnl After a successful build there should be a library libcyginfra.adnl which can be linked with the application code and which can getdnl installed. In addition there will be a set of header files.dnldnl The infrastructure exports four main header files:dnldnl cyg/infra/cyg_type.h data types, useful macros, and adnl few compiler-related odds and endsdnldnl cyg/infra/cyg_ass.h lots of lovely assertion macrosdnldnl cyg/infra/cyg_trac.h lots of lovely trace macrosdnldnl cyg/infra/testcase.h routines for use in testcasesdnldnl These header files are shared between host and target side, to makednl sure that a consistent set of macros is used between the two. Therednl are a number of host-specific extensions in the header files asdnl well.dnldnl The header files rely on a number of other header files:dnldnl pkgconf/infra.hdnl cyg/hal/basetype.hdnldnl Obviously cyg/hal/basetype.h cannot be shared between host and target,dnl instead it has to depend on autoconf information.dnldnl Sharing pkgconf/infra.h between host and target is slightly more feasible,dnl especially if we get the configuration tool to a point where it candnl be used for both host and target. However for now this would create adnl bit of confusion because two configuration systems would be in use, anddnl it seems better to stick with just autoconf for now. Thereforednl pkgconf/infra.h #include's the file generated by autoconf anddnl generates the appropriate #define's (it is not a good idea to havednl autoconf generate pkgconf/infra.h directly, autoconf is slightly toodnl eager to do substitutions).dnldnl The configuration header file that is normally generated isdnl config.h. It is more in keeping with eCos conventions to havednl a different header file hostinfra.h instead. This candnl achieved using the appropriate AM_CONFIG_HEADER macro.dnldnl Making the copies of cyg_type.h etc. is the responsibility ofdnl Makefile.am, configure is responsible only for the makefile and fordnl hostinfra.h.AM_CONFIG_HEADER(hostinfra.h:config.h.in)AC_OUTPUT(Makefile:Makefile.in testsuite/Makefile:testsuite/Makefile.in)
Go to most recent revision | Compare with Previous | Blame | View Log
