add hack for building c++ with gcc 4.1.1
[openwrt/svn-archive/archive.git] / openwrt / toolchain / gcc / patches / 4.1.1 / 900-c++_fixes.patch
1 diff -ur gcc.old/libstdc++-v3/configure gcc.dev/libstdc++-v3/configure
2 --- gcc.old/libstdc++-v3/configure 2006-06-29 23:26:47.000000000 +0200
3 +++ gcc.dev/libstdc++-v3/configure 2006-06-05 15:48:03.000000000 +0200
4 @@ -5745,7 +5745,7 @@
5 enableval="$enable_clocale"
6
7 case "$enableval" in
8 - generic|gnu|ieee_1003.1-2001|uclibc|yes|no|auto) ;;
9 + generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
10 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
11 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
12 { (exit 1); exit 1; }; } ;;
13 @@ -6524,23 +6525,6 @@
14 echo "${ECHO_T}$enable_long_long" >&6
15
16
17 -
18 - # Check whether --enable-wchar_t or --disable-wchar_t was given.
19 -if test "${enable_wchar_t+set}" = set; then
20 - enableval="$enable_wchar_t"
21 -
22 - case "$enableval" in
23 - yes|no) ;;
24 - *) { { echo "$as_me:$LINENO: error: Argument to enable/disable wchar_t must be yes or no" >&5
25 -echo "$as_me: error: Argument to enable/disable wchar_t must be yes or no" >&2;}
26 - { (exit 1); exit 1; }; } ;;
27 - esac
28 -
29 -else
30 - enable_wchar_t=yes
31 -fi;
32 -
33 -
34 # Test wchar.h for mbstate_t, which is needed for char_traits and fpos.
35
36 for ac_header in wchar.h
37