OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [synth/] [arch/] [v2_0/] [host/] [configure.in] - Blame information for rev 597

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
dnl Process this file with autoconf to produce a configure script.
2
dnl ====================================================================
3
dnl
4
dnl     configure.in
5
dnl
6
dnl     configure script for eCos synthetic target architectural
7
dnl     host-side support
8
dnl
9
dnl ====================================================================
10
dnl####COPYRIGHTBEGIN####
11
dnl
12
dnl ----------------------------------------------------------------------------
13
dnl Copyright (C) 2002 Bart Veer
14
dnl
15
dnl This file is part of the eCos synthetic target support.
16
dnl
17
dnl This program is free software; you can redistribute it and/or modify it
18
dnl under the terms of the GNU General Public License as published by the Free
19
dnl Software Foundation; either version 2 of the License, or (at your option)
20
dnl any later version.
21
dnl
22
dnl This program is distributed in the hope that it will be useful, but WITHOUT
23
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
24
dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
25
dnl more details.
26
dnl
27
dnl You should have received a copy of the GNU General Public License along with
28
dnl this program; if not, write to the Free Software Foundation, Inc.,
29
dnl 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
30
dnl
31
dnl ----------------------------------------------------------------------------
32
dnl
33
dnl####COPYRIGHTEND####
34
dnl ====================================================================
35
dnl#####DESCRIPTIONBEGIN####
36
dnl
37
dnl Author(s):  bartv
38
dnl Contact(s): bartv
39
dnl Date:       2002/08/06
40
dnl Version:    0.01
41
dnl
42
dnl####DESCRIPTIONEND####
43
dnl ====================================================================
44
 
45
 
46
AC_INIT(ecosynth.c)
47
 
48
dnl Pick up the support files from the top-level acsupport directory.
49
AC_CONFIG_AUX_DIR(../../../../../../acsupport)
50
 
51
ECOS_CHECK_BUILD_ne_SRC
52
AC_CANONICAL_HOST
53
AM_INIT_AUTOMAKE(eCos_synthetic_target_arch,0.1,0)
54
AM_MAINTAINER_MODE
55
 
56
dnl The current version of the synthetic target is implemented only for
57
dnl x86 Linux platforms, so a test is appropriate here. However
58
dnl it is not a good idea for the configure script to report an error:
59
dnl that would prevent any top-level configury working for other
60
dnl platforms. Instead an automake conditional is used to suppress adding
61
dnl targets to the build.
62
case "${host}" in
63
    i[[34567]]86-*-linux-gnu* ) SUPPORTED="yes";;
64
    * ) SUPPORTED="no"
65
esac
66
 
67
if test "${SUPPORTED}" = "yes" ; then
68
    AC_PROG_CC
69
    AC_PROG_CXX
70
    AC_OBJEXT
71
    AC_EXEEXT
72
    ECOS_PROG_MSVC
73
    ECOS_PROG_STANDARD_COMPILER_FLAGS
74
 
75
    ECOS_PATH_TCL
76
    dnl Check that the version of tk is sufficiently recent.
77
    dnl For example the text widget's tag -elide facility was
78
    dnl added between 8.2 and 8.3. Initial development of
79
    dnl the synthetic target used 8.3.1
80
    if test "${TK_MAJOR_VERSION}" = "8" ; then
81
        if test ${TK_MINOR_VERSION} -lt 3 ; then
82
            AC_MSG_WARN([The synthetic target support requires at least version 8.3 of Tcl/Tk])
83
            AC_MSG_WARN([Synthetic target host-side support will not be built])
84
            SUPPORTED="no"
85
        fi
86
    fi
87
    ECOS_PACKAGE_DIRS
88
fi
89
 
90
AM_CONDITIONAL(SUPPORTED, test "${SUPPORTED}" = "yes")
91
 
92
dnl There is no real need for a config.h file at this time, since the code
93
dnl is specific to x86 Linux. This may change in future.
94
dnl AM_CONFIG_HEADER(config.h:config.h.in)
95
 
96
AC_OUTPUT(Makefile:Makefile.in)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.