2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libcilkrts / configure.tgt
blobf7663521cda8a776b14b905ae1c0cc21f1136fdf
1 #  @copyright
2 #  Copyright (C) 2011-2013, Intel Corporation
3 #  All rights reserved.
4 #  
5 #  @copyright
6 #  Redistribution and use in source and binary forms, with or without
7 #  modification, are permitted provided that the following conditions
8 #  are met:
9 #  
10 #    * Redistributions of source code must retain the above copyright
11 #      notice, this list of conditions and the following disclaimer.
12 #    * Redistributions in binary form must reproduce the above copyright
13 #      notice, this list of conditions and the following disclaimer in
14 #      the documentation and/or other materials provided with the
15 #      distribution.
16 #    * Neither the name of Intel Corporation nor the names of its
17 #      contributors may be used to endorse or promote products derived
18 #      from this software without specific prior written permission.
19 #  
20 #  @copyright
21 #  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 #  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 #  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 #  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 #  HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 #  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 #  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
28 #  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29 #  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 #  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
31 #  WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 #  POSSIBILITY OF SUCH DAMAGE.
34 # Disable Cilk Runtime library for non x86 architecture...for now.
35 case "${target}" in
36   x86_64-*-*)
37     ;;
38   i?86-*-*)
39     ;;
40   *-*-*)
41     UNSUPPORTED=1
42     ;;
43 esac
45 # Disable libcilkrts on non POSIX hosted systems.
46 if test x$enable_libcilkrts = x ; then
47     # Enable libcilkrts by default on hosted POSIX systems.
48     case "${target}" in
49     *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
50         ;;
51     *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
52         ;;
53     *-*-solaris2* | *-*-hpux11*)
54         ;;
55     *-*-darwin* | *-*-aix*)
56         ;;
57     *)
58         UNSUPPORTED=1
59         ;;
60     esac