gccxml_gem 0.9.1-x86-darwin-9 → 0.9.2-x86-darwin-9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,105 +0,0 @@
1
- #!/bin/sh
2
- #=============================================================================
3
- #
4
- # Program: GCC-XML
5
- # Module: $RCSfile: find_flags,v $
6
- # Language: C++
7
- # Date: $Date: 2008-03-19 21:14:33 $
8
- # Version: $Revision: 1.21 $
9
- #
10
- # Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
11
- # See Copyright.txt for details.
12
- #
13
- # This software is distributed WITHOUT ANY WARRANTY; without even
14
- # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
- # PURPOSE. See the above copyright notices for more information.
16
- #
17
- #=============================================================================
18
-
19
- # Find the GCC executable name.
20
- if test "x$1" = "x" ; then
21
- if test "x${CXX}" = "x" ; then
22
- CXX=gcc
23
- fi
24
- else
25
- CXX="$1"
26
- shift
27
- CXXFLAGS="$@"
28
- fi
29
-
30
- # Find the macro definition options.
31
- MACROS=`echo "" | ${CXX} -x c++ -E -dM ${CXXFLAGS} - 2>/dev/null |
32
- sed -n '
33
- /^#define / {s/#define \([A-Za-z_][A-Za-z0-9_()]*\) \(.*\)/-D\1='\''\2'\''/;p;}
34
- ' |
35
- awk '
36
- BEGIN { first=1 }
37
- /./ { if(first) { printf("%s", $0); first=0 } else { printf(" %s", $0) } }
38
- '`
39
-
40
- # Find the include path options.
41
- INCLUDES=`
42
- echo "" | ${CXX} -v -x c++ -E ${CXXFLAGS} - 2>&1 |
43
- awk '/^[^ \/].*$/ { if (f) { printf("\n"); exit } }
44
- /^[ ]*\/[^ ]*$/ { if (f) { printf("-I%s ",$0) } }
45
- /\#include <\.\.\..*$/ {f=1} ' - |
46
- sed 's/^-I /-I/;s/ -I / -I/g'
47
- `
48
-
49
- # The support headers are located where this script is.
50
- SELFPATH=`echo $0 | sed -n '/\//{s/\/find_flags//;p;}'`
51
- if test "x$SELFPATH" = "x" ; then SELFPATH="." ; fi
52
- SELFPATH=`cd "$SELFPATH" ; pwd`
53
-
54
- # Determine the major version number.
55
- MAJOR_VERSION=`
56
- echo "__GNUC__" | ${CXX} -v -x c++ -E ${CXXFLAGS} - 2>/dev/null |
57
- sed -n '/^[0-9]/{s/[^0-9]//g;p;}'`
58
-
59
- MINOR_VERSION=`
60
- echo "__GNUC_MINOR__" | ${CXX} -v -x c++ -E ${CXXFLAGS} - 2>/dev/null |
61
- sed -n '/^[0-9]/{s/[^0-9]//g;p;}'`
62
-
63
- # hack to handle bad gcc 4.0 on RedHat
64
- if [ "$MAJOR_VERSION" = 4 ]; then
65
- if echo "$INCLUDES" | grep "c++/3\.4" > /dev/null 2>&1; then
66
- MAJOR_VERSION=3
67
- MINOR_VERSION=4
68
- fi
69
- fi
70
-
71
- # For GCC versions before 3, some special options are needed.
72
- if [ "$MAJOR_VERSION" -lt 3 ]; then
73
- INCLUDES="-iwrapper\"$SELFPATH/2.95\" $INCLUDES"
74
- if [ "$MINOR_VERSION" = 96 ]; then
75
- INCLUDES="-iwrapper\"$SELFPATH/2.96\" $INCLUDES"
76
- fi
77
- elif [ "$MAJOR_VERSION" = 4 -a "$MINOR_VERSION" -ge 3 ]; then
78
- INCLUDES="-iwrapper\"$SELFPATH/4.3\" $INCLUDES"
79
- SPECIAL="-include \"gccxml_builtins.h\""
80
- elif [ "$MAJOR_VERSION" = 4 -a "$MINOR_VERSION" -ge 2 ]; then
81
- INCLUDES="-iwrapper\"$SELFPATH/4.2\" $INCLUDES"
82
- SPECIAL="-include \"gccxml_builtins.h\""
83
- elif [ "$MAJOR_VERSION" = 4 -a "$MINOR_VERSION" -ge 1 ]; then
84
- INCLUDES="-iwrapper\"$SELFPATH/4.1\" $INCLUDES"
85
- SPECIAL="-include \"gccxml_builtins.h\""
86
- elif [ "$MAJOR_VERSION" = 4 -a "$MINOR_VERSION" -ge 0 ]; then
87
- INCLUDES="-iwrapper\"$SELFPATH/4.0\" $INCLUDES"
88
- SPECIAL="-include \"gccxml_builtins.h\""
89
- elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" -ge 4 ]; then
90
- INCLUDES="-iwrapper\"$SELFPATH/3.4\" $INCLUDES"
91
- SPECIAL="-include \"gccxml_builtins.h\""
92
- elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" = 3 ]; then
93
- INCLUDES="-iwrapper\"$SELFPATH/3.3\" $INCLUDES"
94
- SPECIAL="-include \"gccxml_builtins.h\""
95
- elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" = 2 ]; then
96
- INCLUDES="-iwrapper\"$SELFPATH/3.2\" $INCLUDES"
97
- elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" = 1 ]; then
98
- INCLUDES="-iwrapper\"$SELFPATH/3.1\" $INCLUDES"
99
- elif [ "$MAJOR_VERSION" = 3 -a "$MINOR_VERSION" = 0 ]; then
100
- INCLUDES="-iwrapper\"$SELFPATH/3.0\" $INCLUDES"
101
- fi
102
-
103
- # Format and print out the options.
104
- OPTIONS="$MACROS $INCLUDES $SPECIAL"
105
- echo $OPTIONS
@@ -1,24 +0,0 @@
1
- #!/bin/sh
2
-
3
- INCLUDES=/usr/include
4
- CC_INCLUDES=`find_flags | perl -ne '($a) = m|-I([/a-zA-Z0-9_-]+/include/CC)|o ; print "$a\n" if $a'`
5
-
6
- cd 5.8
7
-
8
- cp $INCLUDES/math.h .
9
- cp $CC_INCLUDES/typeinfo .
10
- cp $CC_INCLUDES/Cstd/istream .
11
- cp $CC_INCLUDES/Cstd/streambuf .
12
- cp $CC_INCLUDES/Cstd/string .
13
-
14
- mkdir -p rw
15
- mkdir -p sys
16
- mkdir -p iso
17
-
18
- cp $CC_INCLUDES/Cstd/rw/iterator rw/iterator
19
- cp $INCLUDES/iso/stdio_iso.h iso
20
- cp $INCLUDES/iso/stdlib_iso.h iso
21
-
22
- cp $INCLUDES/sys/regset.h sys
23
-
24
- patch -p1 < adaptation.patch
@@ -1,93 +0,0 @@
1
- #!/bin/sh
2
- #=============================================================================
3
- #
4
- # Program: GCC-XML
5
- # Module: $RCSfile: gccxml_find_flags,v $
6
- # Language: C++
7
- # Date: $Date: 2007/11/28 19:52:06 $
8
- # Version: $Revision: 1.3 $
9
- #
10
- # Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
11
- # See Copyright.txt for details.
12
- #
13
- # This software is distributed WITHOUT ANY WARRANTY; without even
14
- # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
- # PURPOSE. See the above copyright notices for more information.
16
- #
17
- #=============================================================================
18
-
19
- # Find the compiler executable name.
20
- if test "x$1" = "x" ; then
21
- if test "x$GCCXML_COMPILER" = "x"; then
22
- if test "x${CXX}" != "x" ; then
23
- GCCXML_COMPILER="${CXX}"
24
- else
25
- echo "Need to specify compiler name or set GCCXML_COMPILER or CXX."
26
- exit 1
27
- fi
28
- fi
29
- if test "x$GCCXML_CXXFLAGS" = "x"; then
30
- if test "x${CXXFLAGS}" != "x" ; then
31
- GCCXML_CXXFLAGS="${CXXFLAGS}"
32
- fi
33
- fi
34
- else
35
- GCCXML_COMPILER="$1"
36
- shift
37
- GCCXML_CXXFLAGS="$@"
38
- fi
39
-
40
- # Use the compiler's preprocessor to identify the compiler.
41
- GCCXML_PID="$$"
42
- cat > "/tmp/gccxml_identify_compiler$GCCXML_PID.cc" <<!
43
- #if defined(__GNUC__)
44
- GCCXML_SUPPORT="GCC"
45
- #elif defined(__sgi) && defined(_COMPILER_VERSION)
46
- GCCXML_SUPPORT="MIPSpro"
47
- #elif defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 700)
48
- GCCXML_SUPPORT="Intel"
49
- #elif defined(__SUNPRO_CC)
50
- GCCXML_SUPPORT="Sun"
51
- #else
52
- GCCXML_SUPPORT=""
53
- #endif
54
- !
55
-
56
- # Run the compiler's preprocessor on the above code to identify it.
57
- # (workaround for CC whitespace:)
58
- if (${GCCXML_COMPILER} ${GCCXML_CXXFLAGS} \
59
- -E "/tmp/gccxml_identify_compiler$GCCXML_PID.cc" \
60
- | sed -e 's/[ ^]//g' \
61
- > "/tmp/gccxml_identify_compiler$GCCXML_PID.pp";
62
- rm -f "/tmp/gccxml_identify_compiler$GCCXML_PID.cc"
63
- ) ; then : ; else
64
- echo "Error running \"${GCCXML_COMPILER} -E\""
65
- exit 1
66
- fi
67
-
68
- # Source the result to get the settings found.
69
- . "/tmp/gccxml_identify_compiler$GCCXML_PID.pp"
70
- rm -f "/tmp/gccxml_identify_compiler$GCCXML_PID.pp"
71
-
72
- # Check if a supported compiler was identified.
73
- if test "x$GCCXML_SUPPORT" = "x" ; then
74
- echo "Compiler \"${GCCXML_COMPILER}\" is not supported by GCC-XML."
75
- exit 1
76
- fi
77
-
78
- # The support directories are located near this script.
79
- SELFPATH=`cd "\`echo $0 | sed -n '/\//{s/\/[^\/]*$//;p;}'\`";pwd`
80
-
81
- # Find the compiler-specific support directory.
82
- if test -d "${SELFPATH}/${GCCXML_SUPPORT}" ; then
83
- GCCXML_SUPPORT_DIR="${SELFPATH}/${GCCXML_SUPPORT}"
84
- else
85
- echo "Cannot find GCC_XML compiler support directory ${GCCXML_SUPPORT}."
86
- exit 1
87
- fi
88
-
89
- # Run the compiler-specific flag finding script.
90
- GCCXML_FLAGS=`"${GCCXML_SUPPORT_DIR}/find_flags" ${GCCXML_COMPILER} ${GCCXML_CXXFLAGS}`
91
-
92
- # Display the output.
93
- echo ${GCCXML_FLAGS}