rice 1.7.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Doxyfile +1 -1
- data/Makefile.in +29 -18
- data/README +59 -129
- data/aclocal.m4 +32 -29
- data/config.guess +103 -217
- data/config.sub +42 -25
- data/configure +10 -14
- data/depcomp +3 -2
- data/extconf.rb +39 -21
- data/install-sh +170 -196
- data/missing +3 -3
- data/rice/Makefile.am +0 -5
- data/rice/Makefile.in +21 -15
- data/rice/detail/env.hpp +0 -8
- data/rice/detail/method_data.cpp +0 -20
- data/rice/detail/ruby.hpp +0 -13
- data/rice/detail/ruby_version_code.hpp +1 -1
- data/ruby.ac +3 -8
- data/ruby/Makefile.in +17 -5
- data/ruby/lib/Makefile.in +17 -6
- data/ruby/lib/mkmf-rice.rb.in +9 -13
- data/ruby/lib/version.rb +1 -1
- data/sample/Makefile.am +4 -4
- data/sample/Makefile.in +21 -9
- data/test/Makefile.am +2 -7
- data/test/Makefile.in +32 -41
- data/test/ext/Makefile.am +12 -14
- data/test/ext/Makefile.in +29 -19
- data/test/test_To_From_Ruby.cpp +6 -0
- data/test/test_rice.rb +0 -4
- metadata +3 -12
- data/rice/Critical_Guard.hpp +0 -40
- data/rice/Critical_Guard.ipp +0 -26
- data/rice/VM.cpp +0 -82
- data/rice/VM.hpp +0 -32
- data/rice/detail/mininode.cpp +0 -1220
- data/rice/detail/mininode.hpp +0 -320
- data/rice/detail/rubysig.hpp +0 -19
- data/test/test_Critical_Guard.cpp +0 -51
- data/test/test_VM.cpp +0 -26
data/aclocal.m4
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# generated automatically by aclocal 1.
|
1
|
+
# generated automatically by aclocal 1.15 -*- Autoconf -*-
|
2
2
|
|
3
|
-
# Copyright (C) 1996-
|
3
|
+
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
4
4
|
|
5
5
|
# This file is free software; the Free Software Foundation
|
6
6
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -20,7 +20,7 @@ You have another version of autoconf. It may work, but is not guaranteed to.
|
|
20
20
|
If you have problems, you may need to regenerate the build system entirely.
|
21
21
|
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
22
22
|
|
23
|
-
# Copyright (C) 2002-
|
23
|
+
# Copyright (C) 2002-2014 Free Software Foundation, Inc.
|
24
24
|
#
|
25
25
|
# This file is free software; the Free Software Foundation
|
26
26
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -32,10 +32,10 @@ To do so, use the procedure documented by the package, typically 'autoreconf'.])
|
|
32
32
|
# generated from the m4 files accompanying Automake X.Y.
|
33
33
|
# (This private macro should not be called outside this file.)
|
34
34
|
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
35
|
-
[am__api_version='1.
|
35
|
+
[am__api_version='1.15'
|
36
36
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
37
37
|
dnl require some minimum version. Point them to the right macro.
|
38
|
-
m4_if([$1], [1.
|
38
|
+
m4_if([$1], [1.15], [],
|
39
39
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
40
40
|
])
|
41
41
|
|
@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
|
|
51
51
|
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
52
52
|
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
53
53
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
54
|
-
[AM_AUTOMAKE_VERSION([1.
|
54
|
+
[AM_AUTOMAKE_VERSION([1.15])dnl
|
55
55
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
56
56
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
57
57
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
58
58
|
|
59
59
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
60
60
|
|
61
|
-
# Copyright (C) 2001-
|
61
|
+
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
62
62
|
#
|
63
63
|
# This file is free software; the Free Software Foundation
|
64
64
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -103,15 +103,14 @@ _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
103
103
|
# configured tree to be moved without reconfiguration.
|
104
104
|
|
105
105
|
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
106
|
-
[dnl
|
107
|
-
|
108
|
-
|
109
|
-
am_aux_dir=`cd $ac_aux_dir && pwd`
|
106
|
+
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
107
|
+
# Expand $ac_aux_dir to an absolute path.
|
108
|
+
am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
110
109
|
])
|
111
110
|
|
112
111
|
# AM_CONDITIONAL -*- Autoconf -*-
|
113
112
|
|
114
|
-
# Copyright (C) 1997-
|
113
|
+
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
115
114
|
#
|
116
115
|
# This file is free software; the Free Software Foundation
|
117
116
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -142,7 +141,7 @@ AC_CONFIG_COMMANDS_PRE(
|
|
142
141
|
Usually this means the macro was only invoked conditionally.]])
|
143
142
|
fi])])
|
144
143
|
|
145
|
-
# Copyright (C) 1999-
|
144
|
+
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
146
145
|
#
|
147
146
|
# This file is free software; the Free Software Foundation
|
148
147
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -333,7 +332,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
|
|
333
332
|
|
334
333
|
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
335
334
|
|
336
|
-
# Copyright (C) 1999-
|
335
|
+
# Copyright (C) 1999-2014 Free Software Foundation, Inc.
|
337
336
|
#
|
338
337
|
# This file is free software; the Free Software Foundation
|
339
338
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -409,7 +408,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
409
408
|
|
410
409
|
# Do all the work for Automake. -*- Autoconf -*-
|
411
410
|
|
412
|
-
# Copyright (C) 1996-
|
411
|
+
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
413
412
|
#
|
414
413
|
# This file is free software; the Free Software Foundation
|
415
414
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -499,8 +498,8 @@ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
499
498
|
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
500
499
|
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
501
500
|
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
502
|
-
# We need awk for the "check" target
|
503
|
-
# some platforms.
|
501
|
+
# We need awk for the "check" target (and possibly the TAP driver). The
|
502
|
+
# system "awk" is bad on some platforms.
|
504
503
|
AC_REQUIRE([AC_PROG_AWK])dnl
|
505
504
|
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
506
505
|
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
@@ -573,7 +572,11 @@ to "yes", and re-run configure.
|
|
573
572
|
END
|
574
573
|
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
|
575
574
|
fi
|
576
|
-
fi
|
575
|
+
fi
|
576
|
+
dnl The trailing newline in this macro's definition is deliberate, for
|
577
|
+
dnl backward compatibility and to allow trailing 'dnl'-style comments
|
578
|
+
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
|
579
|
+
])
|
577
580
|
|
578
581
|
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
579
582
|
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
@@ -602,7 +605,7 @@ for _am_header in $config_headers :; do
|
|
602
605
|
done
|
603
606
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
604
607
|
|
605
|
-
# Copyright (C) 2001-
|
608
|
+
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
606
609
|
#
|
607
610
|
# This file is free software; the Free Software Foundation
|
608
611
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -613,7 +616,7 @@ echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_co
|
|
613
616
|
# Define $install_sh.
|
614
617
|
AC_DEFUN([AM_PROG_INSTALL_SH],
|
615
618
|
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
616
|
-
if test x"${install_sh}" != xset; then
|
619
|
+
if test x"${install_sh+set}" != xset; then
|
617
620
|
case $am_aux_dir in
|
618
621
|
*\ * | *\ *)
|
619
622
|
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
@@ -623,7 +626,7 @@ if test x"${install_sh}" != xset; then
|
|
623
626
|
fi
|
624
627
|
AC_SUBST([install_sh])])
|
625
628
|
|
626
|
-
# Copyright (C) 2003-
|
629
|
+
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
|
627
630
|
#
|
628
631
|
# This file is free software; the Free Software Foundation
|
629
632
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -644,7 +647,7 @@ AC_SUBST([am__leading_dot])])
|
|
644
647
|
|
645
648
|
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
646
649
|
|
647
|
-
# Copyright (C) 2001-
|
650
|
+
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
648
651
|
#
|
649
652
|
# This file is free software; the Free Software Foundation
|
650
653
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -694,7 +697,7 @@ rm -f confinc confmf
|
|
694
697
|
|
695
698
|
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
696
699
|
|
697
|
-
# Copyright (C) 1997-
|
700
|
+
# Copyright (C) 1997-2014 Free Software Foundation, Inc.
|
698
701
|
#
|
699
702
|
# This file is free software; the Free Software Foundation
|
700
703
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -733,7 +736,7 @@ fi
|
|
733
736
|
|
734
737
|
# Helper functions for option handling. -*- Autoconf -*-
|
735
738
|
|
736
|
-
# Copyright (C) 2001-
|
739
|
+
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
737
740
|
#
|
738
741
|
# This file is free software; the Free Software Foundation
|
739
742
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -764,7 +767,7 @@ AC_DEFUN([_AM_IF_OPTION],
|
|
764
767
|
|
765
768
|
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
766
769
|
|
767
|
-
# Copyright (C) 1996-
|
770
|
+
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
768
771
|
#
|
769
772
|
# This file is free software; the Free Software Foundation
|
770
773
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -845,7 +848,7 @@ AC_CONFIG_COMMANDS_PRE(
|
|
845
848
|
rm -f conftest.file
|
846
849
|
])
|
847
850
|
|
848
|
-
# Copyright (C) 2009-
|
851
|
+
# Copyright (C) 2009-2014 Free Software Foundation, Inc.
|
849
852
|
#
|
850
853
|
# This file is free software; the Free Software Foundation
|
851
854
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -905,7 +908,7 @@ AC_SUBST([AM_BACKSLASH])dnl
|
|
905
908
|
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
906
909
|
])
|
907
910
|
|
908
|
-
# Copyright (C) 2001-
|
911
|
+
# Copyright (C) 2001-2014 Free Software Foundation, Inc.
|
909
912
|
#
|
910
913
|
# This file is free software; the Free Software Foundation
|
911
914
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -933,7 +936,7 @@ fi
|
|
933
936
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
934
937
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
935
938
|
|
936
|
-
# Copyright (C) 2006-
|
939
|
+
# Copyright (C) 2006-2014 Free Software Foundation, Inc.
|
937
940
|
#
|
938
941
|
# This file is free software; the Free Software Foundation
|
939
942
|
# gives unlimited permission to copy and/or distribute it,
|
@@ -952,7 +955,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
952
955
|
|
953
956
|
# Check how to create a tarball. -*- Autoconf -*-
|
954
957
|
|
955
|
-
# Copyright (C) 2004-
|
958
|
+
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
|
956
959
|
#
|
957
960
|
# This file is free software; the Free Software Foundation
|
958
961
|
# gives unlimited permission to copy and/or distribute it,
|
data/config.guess
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
#! /bin/sh
|
2
2
|
# Attempt to guess a canonical system name.
|
3
|
-
# Copyright
|
4
|
-
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
5
|
-
# 2011, 2012, 2013 Free Software Foundation, Inc.
|
3
|
+
# Copyright 1992-2014 Free Software Foundation, Inc.
|
6
4
|
|
7
|
-
timestamp='
|
5
|
+
timestamp='2014-11-04'
|
8
6
|
|
9
7
|
# This file is free software; you can redistribute it and/or modify it
|
10
8
|
# under the terms of the GNU General Public License as published by
|
@@ -26,12 +24,12 @@ timestamp='2012-12-29'
|
|
26
24
|
# program. This Exception is an additional permission under section 7
|
27
25
|
# of the GNU General Public License, version 3 ("GPLv3").
|
28
26
|
#
|
29
|
-
# Originally written by Per Bothner.
|
27
|
+
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
|
30
28
|
#
|
31
29
|
# You can get the latest version of this script from:
|
32
30
|
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
33
31
|
#
|
34
|
-
# Please send patches
|
32
|
+
# Please send patches to <config-patches@gnu.org>.
|
35
33
|
|
36
34
|
|
37
35
|
me=`echo "$0" | sed -e 's,.*/,,'`
|
@@ -52,9 +50,7 @@ version="\
|
|
52
50
|
GNU config.guess ($timestamp)
|
53
51
|
|
54
52
|
Originally written by Per Bothner.
|
55
|
-
Copyright
|
56
|
-
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
|
57
|
-
2012, 2013 Free Software Foundation, Inc.
|
53
|
+
Copyright 1992-2014 Free Software Foundation, Inc.
|
58
54
|
|
59
55
|
This is free software; see the source for copying conditions. There is NO
|
60
56
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
@@ -136,6 +132,27 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
|
136
132
|
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
137
133
|
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
138
134
|
|
135
|
+
case "${UNAME_SYSTEM}" in
|
136
|
+
Linux|GNU|GNU/*)
|
137
|
+
# If the system lacks a compiler, then just pick glibc.
|
138
|
+
# We could probably try harder.
|
139
|
+
LIBC=gnu
|
140
|
+
|
141
|
+
eval $set_cc_for_build
|
142
|
+
cat <<-EOF > $dummy.c
|
143
|
+
#include <features.h>
|
144
|
+
#if defined(__UCLIBC__)
|
145
|
+
LIBC=uclibc
|
146
|
+
#elif defined(__dietlibc__)
|
147
|
+
LIBC=dietlibc
|
148
|
+
#else
|
149
|
+
LIBC=gnu
|
150
|
+
#endif
|
151
|
+
EOF
|
152
|
+
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
|
153
|
+
;;
|
154
|
+
esac
|
155
|
+
|
139
156
|
# Note: order is significant - the case branches are not exclusive.
|
140
157
|
|
141
158
|
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
@@ -562,8 +579,9 @@ EOF
|
|
562
579
|
else
|
563
580
|
IBM_ARCH=powerpc
|
564
581
|
fi
|
565
|
-
if [ -x /usr/bin/
|
566
|
-
IBM_REV=`/usr/bin/
|
582
|
+
if [ -x /usr/bin/lslpp ] ; then
|
583
|
+
IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
|
584
|
+
awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
|
567
585
|
else
|
568
586
|
IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
|
569
587
|
fi
|
@@ -809,7 +827,7 @@ EOF
|
|
809
827
|
*:MINGW*:*)
|
810
828
|
echo ${UNAME_MACHINE}-pc-mingw32
|
811
829
|
exit ;;
|
812
|
-
|
830
|
+
*:MSYS*:*)
|
813
831
|
echo ${UNAME_MACHINE}-pc-msys
|
814
832
|
exit ;;
|
815
833
|
i*:windows32*:*)
|
@@ -857,21 +875,21 @@ EOF
|
|
857
875
|
exit ;;
|
858
876
|
*:GNU:*:*)
|
859
877
|
# the GNU system
|
860
|
-
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown
|
878
|
+
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
861
879
|
exit ;;
|
862
880
|
*:GNU/*:*:*)
|
863
881
|
# other systems with GNU libc and userland
|
864
|
-
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'
|
882
|
+
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
|
865
883
|
exit ;;
|
866
884
|
i*86:Minix:*:*)
|
867
885
|
echo ${UNAME_MACHINE}-pc-minix
|
868
886
|
exit ;;
|
869
887
|
aarch64:Linux:*:*)
|
870
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
888
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
871
889
|
exit ;;
|
872
890
|
aarch64_be:Linux:*:*)
|
873
891
|
UNAME_MACHINE=aarch64_be
|
874
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
892
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
875
893
|
exit ;;
|
876
894
|
alpha:Linux:*:*)
|
877
895
|
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
@@ -884,59 +902,54 @@ EOF
|
|
884
902
|
EV68*) UNAME_MACHINE=alphaev68 ;;
|
885
903
|
esac
|
886
904
|
objdump --private-headers /bin/sh | grep -q ld.so.1
|
887
|
-
if test "$?" = 0 ; then LIBC="
|
888
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
905
|
+
if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
|
906
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
907
|
+
exit ;;
|
908
|
+
arc:Linux:*:* | arceb:Linux:*:*)
|
909
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
889
910
|
exit ;;
|
890
911
|
arm*:Linux:*:*)
|
891
912
|
eval $set_cc_for_build
|
892
913
|
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
893
914
|
| grep -q __ARM_EABI__
|
894
915
|
then
|
895
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
916
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
896
917
|
else
|
897
918
|
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
898
919
|
| grep -q __ARM_PCS_VFP
|
899
920
|
then
|
900
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
921
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
|
901
922
|
else
|
902
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
923
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
|
903
924
|
fi
|
904
925
|
fi
|
905
926
|
exit ;;
|
906
927
|
avr32*:Linux:*:*)
|
907
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
928
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
908
929
|
exit ;;
|
909
930
|
cris:Linux:*:*)
|
910
|
-
echo ${UNAME_MACHINE}-axis-linux
|
931
|
+
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
|
911
932
|
exit ;;
|
912
933
|
crisv32:Linux:*:*)
|
913
|
-
echo ${UNAME_MACHINE}-axis-linux
|
934
|
+
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
|
914
935
|
exit ;;
|
915
936
|
frv:Linux:*:*)
|
916
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
937
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
917
938
|
exit ;;
|
918
939
|
hexagon:Linux:*:*)
|
919
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
940
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
920
941
|
exit ;;
|
921
942
|
i*86:Linux:*:*)
|
922
|
-
LIBC
|
923
|
-
eval $set_cc_for_build
|
924
|
-
sed 's/^ //' << EOF >$dummy.c
|
925
|
-
#ifdef __dietlibc__
|
926
|
-
LIBC=dietlibc
|
927
|
-
#endif
|
928
|
-
EOF
|
929
|
-
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
|
930
|
-
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
943
|
+
echo ${UNAME_MACHINE}-pc-linux-${LIBC}
|
931
944
|
exit ;;
|
932
945
|
ia64:Linux:*:*)
|
933
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
946
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
934
947
|
exit ;;
|
935
948
|
m32r*:Linux:*:*)
|
936
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
949
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
937
950
|
exit ;;
|
938
951
|
m68*:Linux:*:*)
|
939
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
952
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
940
953
|
exit ;;
|
941
954
|
mips:Linux:*:* | mips64:Linux:*:*)
|
942
955
|
eval $set_cc_for_build
|
@@ -955,54 +968,63 @@ EOF
|
|
955
968
|
#endif
|
956
969
|
EOF
|
957
970
|
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
958
|
-
test x"${CPU}" != x && { echo "${CPU}-unknown-linux
|
971
|
+
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
|
959
972
|
;;
|
960
|
-
|
961
|
-
echo
|
973
|
+
openrisc*:Linux:*:*)
|
974
|
+
echo or1k-unknown-linux-${LIBC}
|
975
|
+
exit ;;
|
976
|
+
or32:Linux:*:* | or1k*:Linux:*:*)
|
977
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
962
978
|
exit ;;
|
963
979
|
padre:Linux:*:*)
|
964
|
-
echo sparc-unknown-linux
|
980
|
+
echo sparc-unknown-linux-${LIBC}
|
965
981
|
exit ;;
|
966
982
|
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
967
|
-
echo hppa64-unknown-linux
|
983
|
+
echo hppa64-unknown-linux-${LIBC}
|
968
984
|
exit ;;
|
969
985
|
parisc:Linux:*:* | hppa:Linux:*:*)
|
970
986
|
# Look for CPU level
|
971
987
|
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
972
|
-
PA7*) echo hppa1.1-unknown-linux
|
973
|
-
PA8*) echo hppa2.0-unknown-linux
|
974
|
-
*) echo hppa-unknown-linux
|
988
|
+
PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
|
989
|
+
PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
|
990
|
+
*) echo hppa-unknown-linux-${LIBC} ;;
|
975
991
|
esac
|
976
992
|
exit ;;
|
977
993
|
ppc64:Linux:*:*)
|
978
|
-
echo powerpc64-unknown-linux
|
994
|
+
echo powerpc64-unknown-linux-${LIBC}
|
979
995
|
exit ;;
|
980
996
|
ppc:Linux:*:*)
|
981
|
-
echo powerpc-unknown-linux
|
997
|
+
echo powerpc-unknown-linux-${LIBC}
|
998
|
+
exit ;;
|
999
|
+
ppc64le:Linux:*:*)
|
1000
|
+
echo powerpc64le-unknown-linux-${LIBC}
|
1001
|
+
exit ;;
|
1002
|
+
ppcle:Linux:*:*)
|
1003
|
+
echo powerpcle-unknown-linux-${LIBC}
|
982
1004
|
exit ;;
|
983
1005
|
s390:Linux:*:* | s390x:Linux:*:*)
|
984
|
-
echo ${UNAME_MACHINE}-ibm-linux
|
1006
|
+
echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
|
985
1007
|
exit ;;
|
986
1008
|
sh64*:Linux:*:*)
|
987
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
1009
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
988
1010
|
exit ;;
|
989
1011
|
sh*:Linux:*:*)
|
990
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
1012
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
991
1013
|
exit ;;
|
992
1014
|
sparc:Linux:*:* | sparc64:Linux:*:*)
|
993
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
1015
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
994
1016
|
exit ;;
|
995
1017
|
tile*:Linux:*:*)
|
996
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
1018
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
997
1019
|
exit ;;
|
998
1020
|
vax:Linux:*:*)
|
999
|
-
echo ${UNAME_MACHINE}-dec-linux
|
1021
|
+
echo ${UNAME_MACHINE}-dec-linux-${LIBC}
|
1000
1022
|
exit ;;
|
1001
1023
|
x86_64:Linux:*:*)
|
1002
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
1024
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1003
1025
|
exit ;;
|
1004
1026
|
xtensa*:Linux:*:*)
|
1005
|
-
echo ${UNAME_MACHINE}-unknown-linux
|
1027
|
+
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
|
1006
1028
|
exit ;;
|
1007
1029
|
i*86:DYNIX/ptx:4*:*)
|
1008
1030
|
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
@@ -1235,19 +1257,31 @@ EOF
|
|
1235
1257
|
exit ;;
|
1236
1258
|
*:Darwin:*:*)
|
1237
1259
|
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
|
1245
|
-
|
1246
|
-
|
1247
|
-
|
1248
|
-
|
1249
|
-
|
1250
|
-
|
1260
|
+
eval $set_cc_for_build
|
1261
|
+
if test "$UNAME_PROCESSOR" = unknown ; then
|
1262
|
+
UNAME_PROCESSOR=powerpc
|
1263
|
+
fi
|
1264
|
+
if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
|
1265
|
+
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
1266
|
+
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
1267
|
+
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
1268
|
+
grep IS_64BIT_ARCH >/dev/null
|
1269
|
+
then
|
1270
|
+
case $UNAME_PROCESSOR in
|
1271
|
+
i386) UNAME_PROCESSOR=x86_64 ;;
|
1272
|
+
powerpc) UNAME_PROCESSOR=powerpc64 ;;
|
1273
|
+
esac
|
1274
|
+
fi
|
1275
|
+
fi
|
1276
|
+
elif test "$UNAME_PROCESSOR" = i386 ; then
|
1277
|
+
# Avoid executing cc on OS X 10.9, as it ships with a stub
|
1278
|
+
# that puts up a graphical alert prompting to install
|
1279
|
+
# developer tools. Any system running Mac OS X 10.7 or
|
1280
|
+
# later (Darwin 11 and later) is required to have a 64-bit
|
1281
|
+
# processor. This is not true of the ARM version of Darwin
|
1282
|
+
# that Apple uses in portable devices.
|
1283
|
+
UNAME_PROCESSOR=x86_64
|
1284
|
+
fi
|
1251
1285
|
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
1252
1286
|
exit ;;
|
1253
1287
|
*:procnto*:*:* | *:QNX:[0123456789]*:*)
|
@@ -1338,154 +1372,6 @@ EOF
|
|
1338
1372
|
exit ;;
|
1339
1373
|
esac
|
1340
1374
|
|
1341
|
-
eval $set_cc_for_build
|
1342
|
-
cat >$dummy.c <<EOF
|
1343
|
-
#ifdef _SEQUENT_
|
1344
|
-
# include <sys/types.h>
|
1345
|
-
# include <sys/utsname.h>
|
1346
|
-
#endif
|
1347
|
-
main ()
|
1348
|
-
{
|
1349
|
-
#if defined (sony)
|
1350
|
-
#if defined (MIPSEB)
|
1351
|
-
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
|
1352
|
-
I don't know.... */
|
1353
|
-
printf ("mips-sony-bsd\n"); exit (0);
|
1354
|
-
#else
|
1355
|
-
#include <sys/param.h>
|
1356
|
-
printf ("m68k-sony-newsos%s\n",
|
1357
|
-
#ifdef NEWSOS4
|
1358
|
-
"4"
|
1359
|
-
#else
|
1360
|
-
""
|
1361
|
-
#endif
|
1362
|
-
); exit (0);
|
1363
|
-
#endif
|
1364
|
-
#endif
|
1365
|
-
|
1366
|
-
#if defined (__arm) && defined (__acorn) && defined (__unix)
|
1367
|
-
printf ("arm-acorn-riscix\n"); exit (0);
|
1368
|
-
#endif
|
1369
|
-
|
1370
|
-
#if defined (hp300) && !defined (hpux)
|
1371
|
-
printf ("m68k-hp-bsd\n"); exit (0);
|
1372
|
-
#endif
|
1373
|
-
|
1374
|
-
#if defined (NeXT)
|
1375
|
-
#if !defined (__ARCHITECTURE__)
|
1376
|
-
#define __ARCHITECTURE__ "m68k"
|
1377
|
-
#endif
|
1378
|
-
int version;
|
1379
|
-
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
1380
|
-
if (version < 4)
|
1381
|
-
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
1382
|
-
else
|
1383
|
-
printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
|
1384
|
-
exit (0);
|
1385
|
-
#endif
|
1386
|
-
|
1387
|
-
#if defined (MULTIMAX) || defined (n16)
|
1388
|
-
#if defined (UMAXV)
|
1389
|
-
printf ("ns32k-encore-sysv\n"); exit (0);
|
1390
|
-
#else
|
1391
|
-
#if defined (CMU)
|
1392
|
-
printf ("ns32k-encore-mach\n"); exit (0);
|
1393
|
-
#else
|
1394
|
-
printf ("ns32k-encore-bsd\n"); exit (0);
|
1395
|
-
#endif
|
1396
|
-
#endif
|
1397
|
-
#endif
|
1398
|
-
|
1399
|
-
#if defined (__386BSD__)
|
1400
|
-
printf ("i386-pc-bsd\n"); exit (0);
|
1401
|
-
#endif
|
1402
|
-
|
1403
|
-
#if defined (sequent)
|
1404
|
-
#if defined (i386)
|
1405
|
-
printf ("i386-sequent-dynix\n"); exit (0);
|
1406
|
-
#endif
|
1407
|
-
#if defined (ns32000)
|
1408
|
-
printf ("ns32k-sequent-dynix\n"); exit (0);
|
1409
|
-
#endif
|
1410
|
-
#endif
|
1411
|
-
|
1412
|
-
#if defined (_SEQUENT_)
|
1413
|
-
struct utsname un;
|
1414
|
-
|
1415
|
-
uname(&un);
|
1416
|
-
|
1417
|
-
if (strncmp(un.version, "V2", 2) == 0) {
|
1418
|
-
printf ("i386-sequent-ptx2\n"); exit (0);
|
1419
|
-
}
|
1420
|
-
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
|
1421
|
-
printf ("i386-sequent-ptx1\n"); exit (0);
|
1422
|
-
}
|
1423
|
-
printf ("i386-sequent-ptx\n"); exit (0);
|
1424
|
-
|
1425
|
-
#endif
|
1426
|
-
|
1427
|
-
#if defined (vax)
|
1428
|
-
# if !defined (ultrix)
|
1429
|
-
# include <sys/param.h>
|
1430
|
-
# if defined (BSD)
|
1431
|
-
# if BSD == 43
|
1432
|
-
printf ("vax-dec-bsd4.3\n"); exit (0);
|
1433
|
-
# else
|
1434
|
-
# if BSD == 199006
|
1435
|
-
printf ("vax-dec-bsd4.3reno\n"); exit (0);
|
1436
|
-
# else
|
1437
|
-
printf ("vax-dec-bsd\n"); exit (0);
|
1438
|
-
# endif
|
1439
|
-
# endif
|
1440
|
-
# else
|
1441
|
-
printf ("vax-dec-bsd\n"); exit (0);
|
1442
|
-
# endif
|
1443
|
-
# else
|
1444
|
-
printf ("vax-dec-ultrix\n"); exit (0);
|
1445
|
-
# endif
|
1446
|
-
#endif
|
1447
|
-
|
1448
|
-
#if defined (alliant) && defined (i860)
|
1449
|
-
printf ("i860-alliant-bsd\n"); exit (0);
|
1450
|
-
#endif
|
1451
|
-
|
1452
|
-
exit (1);
|
1453
|
-
}
|
1454
|
-
EOF
|
1455
|
-
|
1456
|
-
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
|
1457
|
-
{ echo "$SYSTEM_NAME"; exit; }
|
1458
|
-
|
1459
|
-
# Apollos put the system type in the environment.
|
1460
|
-
|
1461
|
-
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
|
1462
|
-
|
1463
|
-
# Convex versions that predate uname can use getsysinfo(1)
|
1464
|
-
|
1465
|
-
if [ -x /usr/convex/getsysinfo ]
|
1466
|
-
then
|
1467
|
-
case `getsysinfo -f cpu_type` in
|
1468
|
-
c1*)
|
1469
|
-
echo c1-convex-bsd
|
1470
|
-
exit ;;
|
1471
|
-
c2*)
|
1472
|
-
if getsysinfo -f scalar_acc
|
1473
|
-
then echo c32-convex-bsd
|
1474
|
-
else echo c2-convex-bsd
|
1475
|
-
fi
|
1476
|
-
exit ;;
|
1477
|
-
c34*)
|
1478
|
-
echo c34-convex-bsd
|
1479
|
-
exit ;;
|
1480
|
-
c38*)
|
1481
|
-
echo c38-convex-bsd
|
1482
|
-
exit ;;
|
1483
|
-
c4*)
|
1484
|
-
echo c4-convex-bsd
|
1485
|
-
exit ;;
|
1486
|
-
esac
|
1487
|
-
fi
|
1488
|
-
|
1489
1375
|
cat >&2 <<EOF
|
1490
1376
|
$0: unable to guess system type
|
1491
1377
|
|