~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Michael Hope
  • Date: 2010-09-06 03:41:48 UTC
  • Revision ID: michael.hope@linaro.org-20100906034148-s7wgv5lz1qnh5xj7
Added GLIBC add-on support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2011-2012, Linaro Limited
2
 
# All rights reserved.
3
 
#
4
 
# Redistribution and use in source and binary forms, with or without
5
 
# modification, are permitted provided that the following conditions are met:
6
 
#     * Redistributions of source code must retain the above copyright
7
 
#       notice, this list of conditions and the following disclaimer.
8
 
#     * Redistributions in binary form must reproduce the above copyright
9
 
#       notice, this list of conditions and the following disclaimer in the
10
 
#       documentation and/or other materials provided with the distribution.
11
 
#     * Neither the name of the Linaro nor the
12
 
#       names of its contributors may be used to endorse or promote products
13
 
#       derived from this software without specific prior written permission.
14
 
#
15
 
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
 
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
 
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
 
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
19
 
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
 
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
 
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
 
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
 
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
 
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
 
 
26
 
AC_INIT(cortex-strings, 1.1-2012.06~dev)
27
 
AM_INIT_AUTOMAKE(foreign subdir-objects color-tests dist-bzip2)
 
1
AC_INIT(cortexcpu, 0.1)
 
2
AM_INIT_AUTOMAKE(foreign subdir-objects color-tests)
28
3
AC_CONFIG_HEADERS([config.h])
29
4
AC_CONFIG_FILES(Makefile)
30
 
AC_CANONICAL_HOST
 
5
AC_PROG_LIBTOOL
31
6
AM_PROG_AS
32
 
AC_PROG_CC
33
 
AC_PROG_LIBTOOL
34
 
 
35
 
default_submachine=
36
 
 
37
 
case $host in
38
 
aarch64*-*-*)
39
 
  arch=aarch64
40
 
  ;;
41
 
arm*-*-*)
42
 
  arch=aarch32
43
 
  default_submachine=cortex-a9
44
 
  ;;
45
 
x86_64-*-*-*)
46
 
  arch=generic
47
 
  ;;
48
 
*)
49
 
  AC_MSG_ERROR([unknown architecture $host])
50
 
  ;;
51
 
esac
52
 
 
53
 
AM_CONDITIONAL([HOST_AARCH32], [test x$arch = xaarch32])
54
 
AM_CONDITIONAL([HOST_AARCH64], [test x$arch = xaarch64])
55
 
AM_CONDITIONAL([HOST_GENERIC], [test x$arch = xgeneric])
56
7
 
57
8
AC_ARG_WITH([cpu],
58
9
            AS_HELP_STRING([--with-cpu=CPU],
59
 
                           [select code for CPU variant @<:@default=cortex-a9@:>@]]),
 
10
                           [select code for CPU variant @<:@default=cortex-a8@:>@]]),
60
11
            [dnl
61
12
  case "$withval" in
62
13
  yes|'') AC_MSG_ERROR([--with-cpu requires an argument]) ;;
64
15
  *) submachine="$withval" ;;
65
16
  esac
66
17
],
67
 
[submachine=$default_submachine])
 
18
[submachine=cortex-a8])
68
19
 
69
20
AC_SUBST(submachine)
70
 
AM_CONDITIONAL([WITH_SUBMACHINE], [test x$submachine != x])
71
21
 
72
22
AC_ARG_WITH([neon],
73
23
            AC_HELP_STRING([--with-neon],
75
25
            [with_neon=$withval],
76
26
            [with_neon=yes])
77
27
AC_SUBST(with_neon)
78
 
AM_CONDITIONAL(WITH_NEON, test x$with_neon = xyes)
79
 
 
80
 
AC_ARG_WITH([vfp],
81
 
            AC_HELP_STRING([--with-vfp],
82
 
                           [include VFP specific routines @<:@default=yes@:>@]),
83
 
            [with_vfp=$withval],
84
 
            [with_vfp=yes])
85
 
AC_SUBST(with_vfp)
86
 
AM_CONDITIONAL(WITH_VFP, test x$with_vfp = xyes)
87
28
 
88
29
AC_OUTPUT