1 diff -urN gcc-3.3.3/boehm-gc/config.sub gcc-3.3.3-new/boehm-gc/config.sub
2 --- gcc-3.3.3/boehm-gc/config.sub 2002-02-11 22:37:53.000000000 -0600
3 +++ gcc-3.3.3-new/boehm-gc/config.sub 2004-02-16 21:12:16.000000000 -0600
5 # Here we must recognize all the valid KERNEL-OS combinations.
6 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
8 - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
9 + nto-qnx* | linux-gnu* | linux-uclibc* | storm-chaos* | os2-emx* | windows32-*)
11 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
14 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
15 | -chorusos* | -chorusrdb* \
16 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
17 - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
18 + | -mingw32* | -linux-gnu* | -linux-uclibc* \
19 + | -uxpv* | -beos* | -mpeix* | -udk* \
20 | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
21 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
22 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
23 diff -urN gcc-3.3.3/config.sub gcc-3.3.3-new/config.sub
24 --- gcc-3.3.3/config.sub 2003-01-30 17:25:36.000000000 -0600
25 +++ gcc-3.3.3-new/config.sub 2004-02-16 21:12:16.000000000 -0600
27 # Here we must recognize all the valid KERNEL-OS combinations.
28 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
30 - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
31 + nto-qnx* | linux-gnu* | linux-uclibc* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
33 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
36 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
37 | -chorusos* | -chorusrdb* \
38 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
39 - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
40 + | -mingw32* | -linux-gnu* | -linux-uclibc* \
41 + | -uxpv* | -beos* | -mpeix* | -udk* \
42 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
43 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
44 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
45 diff -urN gcc-3.3.3/gcc/config/arm/linux-elf.h gcc-3.3.3-new/gcc/config/arm/linux-elf.h
46 --- gcc-3.3.3/gcc/config/arm/linux-elf.h 2003-09-16 10:39:23.000000000 -0500
47 +++ gcc-3.3.3-new/gcc/config/arm/linux-elf.h 2004-02-16 21:12:16.000000000 -0600
49 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
53 +#define LINK_SPEC "%{h*} %{version:-v} \
55 + %{static:-Bstatic} \
57 + %{symbolic:-Bsymbolic} \
58 + %{rdynamic:-export-dynamic} \
59 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
61 + %{mbig-endian:-EB}" \
62 + SUBTARGET_EXTRA_LINK_SPEC
64 #define LINK_SPEC "%{h*} %{version:-v} \
70 SUBTARGET_EXTRA_LINK_SPEC
73 #define TARGET_OS_CPP_BUILTINS() \
75 diff -urN gcc-3.3.3/gcc/config/cris/linux.h gcc-3.3.3-new/gcc/config/cris/linux.h
76 --- gcc-3.3.3/gcc/config/cris/linux.h 2003-03-10 21:01:35.000000000 -0600
77 +++ gcc-3.3.3-new/gcc/config/cris/linux.h 2004-02-16 21:12:16.000000000 -0600
79 #undef CRIS_DEFAULT_CPU_VERSION
80 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
84 +#undef CRIS_SUBTARGET_VERSION
85 +#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
87 +#undef CRIS_LINK_SUBTARGET_SPEC
88 +#define CRIS_LINK_SUBTARGET_SPEC \
90 + -rpath-link include/asm/../..%s\
91 + %{shared} %{static}\
92 + %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
95 + %{rdynamic:-export-dynamic} \
96 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
97 + %{!r:%{O2|O3: --gc-sections}}"
99 +#else /* USE_UCLIBC */
101 #undef CRIS_SUBTARGET_VERSION
102 #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
105 %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
106 %{!r:%{O2|O3: --gc-sections}}"
108 +#endif /* USE_UCLIBC */
111 /* Node: Run-time Target */
113 diff -urN gcc-3.3.3/gcc/config/cris/t-linux-uclibc gcc-3.3.3-new/gcc/config/cris/t-linux-uclibc
114 --- gcc-3.3.3/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
115 +++ gcc-3.3.3-new/gcc/config/cris/t-linux-uclibc 2004-02-16 21:12:16.000000000 -0600
117 +T_CFLAGS = -DUSE_UCLIBC
118 +TARGET_LIBGCC2_CFLAGS += -fPIC
119 +CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
120 diff -urN gcc-3.3.3/gcc/config/i386/linux.h gcc-3.3.3-new/gcc/config/i386/linux.h
121 --- gcc-3.3.3/gcc/config/i386/linux.h 2003-11-14 00:46:12.000000000 -0600
122 +++ gcc-3.3.3-new/gcc/config/i386/linux.h 2004-02-16 21:12:16.000000000 -0600
127 +#if defined USE_UCLIBC
128 +#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
132 + %{rdynamic:-export-dynamic} \
133 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
134 + %{static:-static}}}"
136 #define LINK_SPEC "-m elf_i386 %{shared:-shared} \
140 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
145 /* A C statement (sans semicolon) to output to the stdio stream
146 FILE the assembler definition of uninitialized global DECL named
147 diff -urN gcc-3.3.3/gcc/config/mips/linux.h gcc-3.3.3-new/gcc/config/mips/linux.h
148 --- gcc-3.3.3/gcc/config/mips/linux.h 2003-12-23 02:58:00.000000000 -0600
149 +++ gcc-3.3.3-new/gcc/config/mips/linux.h 2004-02-16 21:12:16.000000000 -0600
152 /* Borrowed from sparc/linux.h */
157 + %{shared:-shared} \
161 + %{rdynamic:-export-dynamic} \
162 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
163 + %{static:-static}}}"
169 %{rdynamic:-export-dynamic} \
170 %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
174 #undef SUBTARGET_ASM_SPEC
175 #define SUBTARGET_ASM_SPEC "\
176 diff -urN gcc-3.3.3/gcc/config/sh/linux.h gcc-3.3.3-new/gcc/config/sh/linux.h
177 --- gcc-3.3.3/gcc/config/sh/linux.h 2003-11-06 17:13:33.000000000 -0600
178 +++ gcc-3.3.3-new/gcc/config/sh/linux.h 2004-02-16 21:12:16.000000000 -0600
180 #undef SUBTARGET_LINK_EMUL_SUFFIX
181 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
182 #undef SUBTARGET_LINK_SPEC
184 +#define SUBTARGET_LINK_SPEC \
185 + "%{shared:-shared} \
187 + %{rdynamic:-export-dynamic} \
188 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
191 #define SUBTARGET_LINK_SPEC \
194 %{rdynamic:-export-dynamic} \
195 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
199 /* The GNU C++ standard library requires that these macros be defined. */
200 #undef CPLUSPLUS_CPP_SPEC
201 diff -urN gcc-3.3.3/gcc/config/sh/t-linux-uclibc gcc-3.3.3-new/gcc/config/sh/t-linux-uclibc
202 --- gcc-3.3.3/gcc/config/sh/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
203 +++ gcc-3.3.3-new/gcc/config/sh/t-linux-uclibc 2004-02-16 21:12:16.000000000 -0600
205 +T_CFLAGS = -DUSE_UCLIBC
207 +# Don't run fixproto
210 +TARGET_LIBGCC2_CFLAGS = -fpic
211 +LIB1ASMFUNCS_CACHE = _ic_invalidate
215 +MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
218 +MULTILIB_EXCEPTIONS=
220 +EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.o
221 diff -urN gcc-3.3.3/gcc/config/sh/t-sh64-uclibc gcc-3.3.3-new/gcc/config/sh/t-sh64-uclibc
222 --- gcc-3.3.3/gcc/config/sh/t-sh64-uclibc 1969-12-31 18:00:00.000000000 -0600
223 +++ gcc-3.3.3-new/gcc/config/sh/t-sh64-uclibc 2004-02-16 21:12:16.000000000 -0600
225 +EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o
228 + _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
229 + _shcompact_call_trampoline _shcompact_return_trampoline \
230 + _shcompact_incoming_args _ic_invalidate _nested_trampoline \
231 + _push_pop_shmedia_regs \
232 + _udivdi3 _divdi3 _umoddi3 _moddi3
234 +MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu
235 +MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64
237 +MULTILIB_EXCEPTIONS=
238 diff -urN gcc-3.3.3/gcc/config/t-linux-uclibc gcc-3.3.3-new/gcc/config/t-linux-uclibc
239 --- gcc-3.3.3/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
240 +++ gcc-3.3.3-new/gcc/config/t-linux-uclibc 2004-02-16 21:12:16.000000000 -0600
242 +T_CFLAGS = -DUSE_UCLIBC
244 +# Don't run fixproto
247 +# Compile crtbeginS.o and crtendS.o with pic.
248 +CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
249 +# Compile libgcc2.a with pic.
250 +TARGET_LIBGCC2_CFLAGS = -fPIC
252 +# Override t-slibgcc-elf-ver to export some libgcc symbols with
253 +# the symbol versions that glibc used.
254 +SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
256 +# Use unwind-dw2-fde-glibc
257 +#LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \
258 +# $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
259 +#LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c
261 +# Use unwind-dw2-fde
262 +LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
263 + $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
264 +LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
265 diff -urN gcc-3.3.3/gcc/config.gcc gcc-3.3.3-new/gcc/config.gcc
266 --- gcc-3.3.3/gcc/config.gcc 2004-01-21 00:06:00.000000000 -0600
267 +++ gcc-3.3.3-new/gcc/config.gcc 2004-02-16 21:12:16.000000000 -0600
272 +arm*-*-linux-uclibc*) # ARM GNU/Linux with ELF - uClibc
273 + tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
274 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"
275 + extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
277 + case x${enable_threads} in
278 + x | xyes | xpthreads | xposix)
279 + thread_file='posix'
283 arm*-*-linux*) # ARM GNU/Linux with ELF
284 tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"
285 tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"
287 tmake_file="cris/t-cris cris/t-elfmulti"
290 +cris-*-linux-uclibc*)
291 + tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
292 + tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
295 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
296 tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"
297 @@ -1173,6 +1188,11 @@
301 +i[34567]86-*-linux*uclibc*) # Intel 80386's running GNU/Linux
302 + # with ELF format using uClibc
303 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"
304 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"
306 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
307 # with ELF format using glibc 2
308 # aka GNU/Linux C library 6
309 @@ -1883,6 +1903,16 @@
310 tm_file="elfos.h ${tm_file} mips/netbsd.h"
311 tmake_file="${tmake_file} mips/t-netbsd"
313 +mips*-*-linux-uclibc*) # Linux MIPS, either endian. uClibc
314 + tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
317 + target_cpu_default="MASK_SOFT_FLOAT"
318 + tm_defines="MIPS_ISA_DEFAULT=32"
321 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc mips/t-linux"
323 mips*-*-linux*) # Linux MIPS, either endian.
324 tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"
326 @@ -2129,6 +2159,11 @@
327 out_file=rs6000/rs6000.c
328 tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
330 +powerpc-*-linux-uclibc*)
331 + tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
332 + out_file=rs6000/rs6000.c
333 + tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"
336 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
337 out_file=rs6000/rs6000.c
338 @@ -2313,10 +2348,18 @@
339 tmake_file="${tmake_file} sh/t-le"
342 - tmake_file="${tmake_file} sh/t-linux"
344 + *-*-linux-uclibc*) tmake_file="${tmake_file} sh/t-linux-uclibc" ;;
345 + *) tmake_file="${tmake_file} sh/t-linux" ;;
347 tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h"
350 + sh64*-*-linux-uclibc*)
351 + tmake_file="${tmake_file} sh/t-sh64-uclibc"
352 + tm_file="${tm_file} sh/sh64.h"
353 + extra_headers="shmedia.h ushmedia.h sshmedia.h"
356 tmake_file="${tmake_file} sh/t-sh64"
357 tm_file="${tm_file} sh/sh64.h"
358 diff -urN gcc-3.3.3/libstdc++-v3/aclocal.m4 gcc-3.3.3-new/libstdc++-v3/aclocal.m4
359 --- gcc-3.3.3/libstdc++-v3/aclocal.m4 2004-01-12 10:18:44.000000000 -0600
360 +++ gcc-3.3.3-new/libstdc++-v3/aclocal.m4 2004-02-16 21:12:16.000000000 -0600
361 @@ -1216,6 +1216,9 @@
362 dnl Default to "generic"
363 if test x$enable_clocale_flag = xno; then
364 case x${target_os} in
366 + enable_clocale_flag=uclibc
369 AC_EGREP_CPP([_GLIBCPP_ok], [
370 #include <features.h>
371 @@ -1339,6 +1342,41 @@
372 CTIME_CC=config/locale/generic/time_members.cc
373 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
376 + AC_MSG_RESULT(uclibc)
378 + # Declare intention to use gettext, and add support for specific
380 + # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
381 + ALL_LINGUAS="de fr"
383 + # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
384 + AC_CHECK_PROG(check_msgfmt, msgfmt, yes, no)
385 + if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
388 + # Export the build objects.
389 + for ling in $ALL_LINGUAS; do \
390 + glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
391 + glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
393 + AC_SUBST(glibcpp_MOFILES)
394 + AC_SUBST(glibcpp_POFILES)
396 + CLOCALE_H=config/locale/uclibc/c_locale.h
397 + CLOCALE_CC=config/locale/uclibc/c_locale.cc
398 + CCODECVT_H=config/locale/uclibc/codecvt_specializations.h
399 + CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
400 + CCOLLATE_CC=config/locale/uclibc/collate_members.cc
401 + CCTYPE_CC=config/locale/uclibc/ctype_members.cc
402 + CMESSAGES_H=config/locale/uclibc/messages_members.h
403 + CMESSAGES_CC=config/locale/uclibc/messages_members.cc
404 + CMONEY_CC=config/locale/uclibc/monetary_members.cc
405 + CNUMERIC_CC=config/locale/uclibc/numeric_members.cc
406 + CTIME_H=config/locale/uclibc/time_members.h
407 + CTIME_CC=config/locale/uclibc/time_members.cc
408 + CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h
411 echo "$enable_clocale is an unknown locale package" 1>&2
413 diff -urN gcc-3.3.3/libstdc++-v3/configure gcc-3.3.3-new/libstdc++-v3/configure
414 --- gcc-3.3.3/libstdc++-v3/configure 2004-01-12 10:18:45.000000000 -0600
415 +++ gcc-3.3.3-new/libstdc++-v3/configure 2004-02-17 00:21:12.000000000 -0600
416 @@ -2996,6 +2996,9 @@
418 if test x$enable_clocale_flag = xno; then
419 case x${target_os} in
421 + enable_clocale_flag=uclibc
424 cat > conftest.$ac_ext <<EOF
425 #line 3002 "configure"
426 @@ -3182,6 +3185,70 @@
427 CTIME_CC=config/locale/generic/time_members.cc
428 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
431 + echo "$ac_t""uclibc" 1>&6
433 + # Declare intention to use gettext, and add support for specific
435 + # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
436 + ALL_LINGUAS="de fr"
438 + # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
439 + # Extract the first word of "msgfmt", so it can be a program name with args.
440 +set dummy msgfmt; ac_word=$2
441 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
442 +echo "configure:3117: checking for $ac_word" >&5
443 +if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then
444 + echo $ac_n "(cached) $ac_c" 1>&6
446 + if test -n "$check_msgfmt"; then
447 + ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
449 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
451 + for ac_dir in $ac_dummy; do
452 + test -z "$ac_dir" && ac_dir=.
453 + if test -f $ac_dir/$ac_word; then
454 + ac_cv_prog_check_msgfmt="yes"
459 + test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
462 +check_msgfmt="$ac_cv_prog_check_msgfmt"
463 +if test -n "$check_msgfmt"; then
464 + echo "$ac_t""$check_msgfmt" 1>&6
466 + echo "$ac_t""no" 1>&6
469 + if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
472 + # Export the build objects.
473 + for ling in $ALL_LINGUAS; do \
474 + glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \
475 + glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \
480 + CLOCALE_H=config/locale/uclibc/c_locale.h
481 + CLOCALE_CC=config/locale/uclibc/c_locale.cc
482 + CCODECVT_H=config/locale/uclibc/codecvt_specializations.h
483 + CCODECVT_CC=config/locale/uclibc/codecvt_members.cc
484 + CCOLLATE_CC=config/locale/uclibc/collate_members.cc
485 + CCTYPE_CC=config/locale/uclibc/ctype_members.cc
486 + CMESSAGES_H=config/locale/uclibc/messages_members.h
487 + CMESSAGES_CC=config/locale/uclibc/messages_members.cc
488 + CMONEY_CC=config/locale/uclibc/monetary_members.cc
489 + CNUMERIC_CC=config/locale/uclibc/numeric_members.cc
490 + CTIME_H=config/locale/uclibc/time_members.h
491 + CTIME_CC=config/locale/uclibc/time_members.cc
492 + CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h
495 echo "$enable_clocale is an unknown locale package" 1>&2
497 @@ -4212,6 +4279,968 @@
498 # GLIBCPP_CHECK_MATH_SUPPORT
502 + os_include_dir="os/uclibc"
503 + for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
504 + machine/endian.h machine/param.h sys/machine.h sys/types.h \
505 + fp.h locale.h float.h inttypes.h
507 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
508 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
509 +echo "configure:4224: checking for $ac_hdr" >&5
510 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
511 + echo $ac_n "(cached) $ac_c" 1>&6
513 + cat > conftest.$ac_ext <<EOF
514 +#line 4229 "configure"
515 +#include "confdefs.h"
518 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
519 +{ (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
520 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
521 +if test -z "$ac_err"; then
523 + eval "ac_cv_header_$ac_safe=yes"
526 + echo "configure: failed program was:" >&5
527 + cat conftest.$ac_ext >&5
529 + eval "ac_cv_header_$ac_safe=no"
533 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
534 + echo "$ac_t""yes" 1>&6
535 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
536 + cat >> confdefs.h <<EOF
537 +#define $ac_tr_hdr 1
541 + echo "$ac_t""no" 1>&6
545 + SECTION_FLAGS='-ffunction-sections -fdata-sections'
548 + # If we're not using GNU ld, then there's no point in even trying these
549 + # tests. Check for that first. We should have already tested for gld
550 + # by now (in libtool), but require it now just to be safe...
551 + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
552 + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
555 + # The name set by libtool depends on the version of libtool. Shame on us
556 + # for depending on an impl detail, but c'est la vie. Older versions used
557 + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
558 + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
559 + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
560 + # set (hence we're using an older libtool), then set it.
561 + if test x${with_gnu_ld+set} != xset; then
562 + if test x${ac_cv_prog_gnu_ld+set} != xset; then
563 + # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
566 + with_gnu_ld=$ac_cv_prog_gnu_ld
570 + # Start by getting the version number. I think the libtool test already
571 + # does some of this, but throws away the result.
573 + ldver=`$LD --version 2>/dev/null | head -1 | \
574 + sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
576 + glibcpp_gnu_ld_version=`echo $ldver | \
577 + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
579 + # Set --gc-sections.
580 + if test "$with_gnu_ld" = "notbroken"; then
581 + # GNU ld it is! Joy and bunny rabbits!
583 + # All these tests are for C++; save the language and the compiler flags.
584 + # Need to do this so that g++ won't try to link in libstdc++
585 + ac_test_CFLAGS="${CFLAGS+set}"
586 + ac_save_CFLAGS="$CFLAGS"
587 + CFLAGS='-x c++ -Wl,--gc-sections'
589 + # Check for -Wl,--gc-sections
590 + # XXX This test is broken at the moment, as symbols required for
591 + # linking are now in libsupc++ (not built yet.....). In addition,
592 + # this test has cored on solaris in the past. In addition,
593 + # --gc-sections doesn't really work at the moment (keeps on discarding
594 + # used sections, first .eh_frame and now some of the glibc sections for
595 + # iconv). Bzzzzt. Thanks for playing, maybe next time.
596 + echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6
597 +echo "configure:4312: checking for ld that supports -Wl,--gc-sections" >&5
598 + if test "$cross_compiling" = yes; then
599 + ac_sectionLDflags=yes
601 + cat > conftest.$ac_ext <<EOF
602 +#line 4317 "configure"
603 +#include "confdefs.h"
613 +if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
615 + ac_sectionLDflags=yes
617 + echo "configure: failed program was:" >&5
618 + cat conftest.$ac_ext >&5
620 + ac_sectionLDflags=no
625 + if test "$ac_test_CFLAGS" = set; then
626 + CFLAGS="$ac_save_CFLAGS"
628 + # this is the suspicious part
631 + if test "$ac_sectionLDflags" = "yes"; then
632 + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
634 + echo "$ac_t""$ac_sectionLDflags" 1>&6
637 + # Set linker optimization flags.
638 + if test x"$with_gnu_ld" = x"yes"; then
639 + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
646 + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
647 +echo "configure:4362: checking for main in -lm" >&5
648 +ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
649 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
650 + echo $ac_n "(cached) $ac_c" 1>&6
652 + ac_save_LIBS="$LIBS"
654 +cat > conftest.$ac_ext <<EOF
655 +#line 4370 "configure"
656 +#include "confdefs.h"
662 +if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
664 + eval "ac_cv_lib_$ac_lib_var=yes"
666 + echo "configure: failed program was:" >&5
667 + cat conftest.$ac_ext >&5
669 + eval "ac_cv_lib_$ac_lib_var=no"
672 +LIBS="$ac_save_LIBS"
675 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
676 + echo "$ac_t""yes" 1>&6
677 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
678 + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
679 + cat >> confdefs.h <<EOF
680 +#define $ac_tr_lib 1
686 + echo "$ac_t""no" 1>&6
689 + for ac_func in nan copysignf
691 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
692 +echo "configure:4407: checking for $ac_func" >&5
693 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
694 + echo $ac_n "(cached) $ac_c" 1>&6
696 + cat > conftest.$ac_ext <<EOF
697 +#line 4412 "configure"
698 +#include "confdefs.h"
699 +/* System header to define __stub macros and hopefully few prototypes,
700 + which can conflict with char $ac_func(); below. */
702 +/* Override any gcc2 internal prototype to avoid an error. */
703 +/* We use char because int might match the return type of a gcc2
704 + builtin and then its argument prototype would still apply. */
709 +/* The GNU C library defines this for functions which it implements
710 + to always fail with ENOSYS. Some functions are actually named
711 + something starting with __ and the normal name is an alias. */
712 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
720 +if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
722 + eval "ac_cv_func_$ac_func=yes"
724 + echo "configure: failed program was:" >&5
725 + cat conftest.$ac_ext >&5
727 + eval "ac_cv_func_$ac_func=no"
732 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
733 + echo "$ac_t""yes" 1>&6
734 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
735 + cat >> confdefs.h <<EOF
736 +#define $ac_tr_func 1
740 + echo "$ac_t""no" 1>&6
741 +LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
746 + for ac_func in __signbit
748 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
749 +echo "configure:4464: checking for $ac_func" >&5
750 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
751 + echo $ac_n "(cached) $ac_c" 1>&6
753 + cat > conftest.$ac_ext <<EOF
754 +#line 4469 "configure"
755 +#include "confdefs.h"
756 +/* System header to define __stub macros and hopefully few prototypes,
757 + which can conflict with char $ac_func(); below. */
759 +/* Override any gcc2 internal prototype to avoid an error. */
760 +/* We use char because int might match the return type of a gcc2
761 + builtin and then its argument prototype would still apply. */
766 +/* The GNU C library defines this for functions which it implements
767 + to always fail with ENOSYS. Some functions are actually named
768 + something starting with __ and the normal name is an alias. */
769 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
777 +if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779 + eval "ac_cv_func_$ac_func=yes"
781 + echo "configure: failed program was:" >&5
782 + cat conftest.$ac_ext >&5
784 + eval "ac_cv_func_$ac_func=no"
789 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
790 + echo "$ac_t""yes" 1>&6
791 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
792 + cat >> confdefs.h <<EOF
793 +#define $ac_tr_func 1
797 + echo "$ac_t""no" 1>&6
798 +LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
802 + for ac_func in __signbitf
804 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
805 +echo "configure:4520: checking for $ac_func" >&5
806 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
807 + echo $ac_n "(cached) $ac_c" 1>&6
809 + cat > conftest.$ac_ext <<EOF
810 +#line 4525 "configure"
811 +#include "confdefs.h"
812 +/* System header to define __stub macros and hopefully few prototypes,
813 + which can conflict with char $ac_func(); below. */
815 +/* Override any gcc2 internal prototype to avoid an error. */
816 +/* We use char because int might match the return type of a gcc2
817 + builtin and then its argument prototype would still apply. */
822 +/* The GNU C library defines this for functions which it implements
823 + to always fail with ENOSYS. Some functions are actually named
824 + something starting with __ and the normal name is an alias. */
825 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
833 +if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
835 + eval "ac_cv_func_$ac_func=yes"
837 + echo "configure: failed program was:" >&5
838 + cat conftest.$ac_ext >&5
840 + eval "ac_cv_func_$ac_func=no"
845 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
846 + echo "$ac_t""yes" 1>&6
847 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
848 + cat >> confdefs.h <<EOF
849 +#define $ac_tr_func 1
853 + echo "$ac_t""no" 1>&6
854 +LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
859 + if test x$ac_cv_func_copysignl = x"yes"; then
860 + for ac_func in __signbitl
862 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
863 +echo "configure:4578: checking for $ac_func" >&5
864 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
865 + echo $ac_n "(cached) $ac_c" 1>&6
867 + cat > conftest.$ac_ext <<EOF
868 +#line 4583 "configure"
869 +#include "confdefs.h"
870 +/* System header to define __stub macros and hopefully few prototypes,
871 + which can conflict with char $ac_func(); below. */
873 +/* Override any gcc2 internal prototype to avoid an error. */
874 +/* We use char because int might match the return type of a gcc2
875 + builtin and then its argument prototype would still apply. */
880 +/* The GNU C library defines this for functions which it implements
881 + to always fail with ENOSYS. Some functions are actually named
882 + something starting with __ and the normal name is an alias. */
883 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
891 +if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
893 + eval "ac_cv_func_$ac_func=yes"
895 + echo "configure: failed program was:" >&5
896 + cat conftest.$ac_ext >&5
898 + eval "ac_cv_func_$ac_func=no"
903 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
904 + echo "$ac_t""yes" 1>&6
905 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
906 + cat >> confdefs.h <<EOF
907 +#define $ac_tr_func 1
911 + echo "$ac_t""no" 1>&6
912 +LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
918 + if test -n "$LIBMATHOBJS"; then
924 +if test "$need_libmath" = yes; then
925 + GLIBCPP_BUILD_LIBMATH_TRUE=
926 + GLIBCPP_BUILD_LIBMATH_FALSE='#'
928 + GLIBCPP_BUILD_LIBMATH_TRUE='#'
929 + GLIBCPP_BUILD_LIBMATH_FALSE=
935 + echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
936 +echo "configure:4651: checking for mbstate_t" >&5
937 + cat > conftest.$ac_ext <<EOF
938 +#line 4653 "configure"
939 +#include "confdefs.h"
942 +mbstate_t teststate;
945 +if { (eval echo configure:4660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
949 + echo "configure: failed program was:" >&5
950 + cat conftest.$ac_ext >&5
955 + echo "$ac_t""$have_mbstate_t" 1>&6
956 + if test x"$have_mbstate_t" = xyes; then
957 + cat >> confdefs.h <<\EOF
958 +#define HAVE_MBSTATE_T 1
963 + for ac_hdr in wchar.h
965 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
966 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
967 +echo "configure:4682: checking for $ac_hdr" >&5
968 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
969 + echo $ac_n "(cached) $ac_c" 1>&6
971 + cat > conftest.$ac_ext <<EOF
972 +#line 4687 "configure"
973 +#include "confdefs.h"
976 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
977 +{ (eval echo configure:4692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
978 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
979 +if test -z "$ac_err"; then
981 + eval "ac_cv_header_$ac_safe=yes"
984 + echo "configure: failed program was:" >&5
985 + cat conftest.$ac_ext >&5
987 + eval "ac_cv_header_$ac_safe=no"
991 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
992 + echo "$ac_t""yes" 1>&6
993 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
994 + cat >> confdefs.h <<EOF
995 +#define $ac_tr_hdr 1
999 + echo "$ac_t""no" 1>&6
1004 + for ac_hdr in wctype.h
1006 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1007 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1008 +echo "configure:4723: checking for $ac_hdr" >&5
1009 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1010 + echo $ac_n "(cached) $ac_c" 1>&6
1012 + cat > conftest.$ac_ext <<EOF
1013 +#line 4728 "configure"
1014 +#include "confdefs.h"
1017 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1018 +{ (eval echo configure:4733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1019 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1020 +if test -z "$ac_err"; then
1022 + eval "ac_cv_header_$ac_safe=yes"
1024 + echo "$ac_err" >&5
1025 + echo "configure: failed program was:" >&5
1026 + cat conftest.$ac_ext >&5
1028 + eval "ac_cv_header_$ac_safe=no"
1032 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1033 + echo "$ac_t""yes" 1>&6
1034 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1035 + cat >> confdefs.h <<EOF
1036 +#define $ac_tr_hdr 1
1038 + ac_has_wctype_h=yes
1040 + echo "$ac_t""no" 1>&6
1046 + if test x"$ac_has_wchar_h" = xyes &&
1047 + test x"$ac_has_wctype_h" = xyes &&
1048 + test x"$enable_c_mbchar" != xno; then
1050 + echo $ac_n "checking for WCHAR_MIN and WCHAR_MAX""... $ac_c" 1>&6
1051 +echo "configure:4766: checking for WCHAR_MIN and WCHAR_MAX" >&5
1052 + cat > conftest.$ac_ext <<EOF
1053 +#line 4768 "configure"
1054 +#include "confdefs.h"
1057 +int i = WCHAR_MIN; int j = WCHAR_MAX;
1060 +if { (eval echo configure:4775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1062 + has_wchar_minmax=yes
1064 + echo "configure: failed program was:" >&5
1065 + cat conftest.$ac_ext >&5
1067 + has_wchar_minmax=no
1070 + echo "$ac_t""$has_wchar_minmax" 1>&6
1072 + echo $ac_n "checking for WEOF""... $ac_c" 1>&6
1073 +echo "configure:4788: checking for WEOF" >&5
1074 + cat > conftest.$ac_ext <<EOF
1075 +#line 4790 "configure"
1076 +#include "confdefs.h"
1078 + #include <wchar.h>
1079 + #include <stddef.h>
1084 +if { (eval echo configure:4799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1088 + echo "configure: failed program was:" >&5
1089 + cat conftest.$ac_ext >&5
1094 + echo "$ac_t""$has_weof" 1>&6
1097 + for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
1099 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1100 +echo "configure:4815: checking for $ac_func" >&5
1101 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1102 + echo $ac_n "(cached) $ac_c" 1>&6
1104 + cat > conftest.$ac_ext <<EOF
1105 +#line 4820 "configure"
1106 +#include "confdefs.h"
1107 +/* System header to define __stub macros and hopefully few prototypes,
1108 + which can conflict with char $ac_func(); below. */
1109 +#include <assert.h>
1110 +/* Override any gcc2 internal prototype to avoid an error. */
1111 +/* We use char because int might match the return type of a gcc2
1112 + builtin and then its argument prototype would still apply. */
1117 +/* The GNU C library defines this for functions which it implements
1118 + to always fail with ENOSYS. Some functions are actually named
1119 + something starting with __ and the normal name is an alias. */
1120 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1128 +if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1130 + eval "ac_cv_func_$ac_func=yes"
1132 + echo "configure: failed program was:" >&5
1133 + cat conftest.$ac_ext >&5
1135 + eval "ac_cv_func_$ac_func=no"
1140 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1141 + echo "$ac_t""yes" 1>&6
1142 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1143 + cat >> confdefs.h <<EOF
1144 +#define $ac_tr_func 1
1148 + echo "$ac_t""no" 1>&6
1155 + for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
1156 + fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
1157 + vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
1158 + mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
1159 + wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
1160 + wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
1162 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1163 +echo "configure:4878: checking for $ac_func" >&5
1164 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1165 + echo $ac_n "(cached) $ac_c" 1>&6
1167 + cat > conftest.$ac_ext <<EOF
1168 +#line 4883 "configure"
1169 +#include "confdefs.h"
1170 +/* System header to define __stub macros and hopefully few prototypes,
1171 + which can conflict with char $ac_func(); below. */
1172 +#include <assert.h>
1173 +/* Override any gcc2 internal prototype to avoid an error. */
1174 +/* We use char because int might match the return type of a gcc2
1175 + builtin and then its argument prototype would still apply. */
1180 +/* The GNU C library defines this for functions which it implements
1181 + to always fail with ENOSYS. Some functions are actually named
1182 + something starting with __ and the normal name is an alias. */
1183 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1191 +if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193 + eval "ac_cv_func_$ac_func=yes"
1195 + echo "configure: failed program was:" >&5
1196 + cat conftest.$ac_ext >&5
1198 + eval "ac_cv_func_$ac_func=no"
1203 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1204 + echo "$ac_t""yes" 1>&6
1205 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1206 + cat >> confdefs.h <<EOF
1207 +#define $ac_tr_func 1
1211 + echo "$ac_t""no" 1>&6
1218 + echo $ac_n "checking for ISO C99 wchar_t support""... $ac_c" 1>&6
1219 +echo "configure:4934: checking for ISO C99 wchar_t support" >&5
1220 + if test x"$has_weof" = xyes &&
1221 + test x"$has_wchar_minmax" = xyes &&
1222 + test x"$ac_wfuncs" = xyes; then
1223 + ac_isoC99_wchar_t=yes
1225 + ac_isoC99_wchar_t=no
1227 + echo "$ac_t""$ac_isoC99_wchar_t" 1>&6
1229 + ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
1230 +echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
1231 +echo "configure:4946: checking for iconv.h" >&5
1232 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1233 + echo $ac_n "(cached) $ac_c" 1>&6
1235 + cat > conftest.$ac_ext <<EOF
1236 +#line 4951 "configure"
1237 +#include "confdefs.h"
1240 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1241 +{ (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1242 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1243 +if test -z "$ac_err"; then
1245 + eval "ac_cv_header_$ac_safe=yes"
1247 + echo "$ac_err" >&5
1248 + echo "configure: failed program was:" >&5
1249 + cat conftest.$ac_ext >&5
1251 + eval "ac_cv_header_$ac_safe=no"
1255 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1256 + echo "$ac_t""yes" 1>&6
1257 + ac_has_iconv_h=yes
1259 + echo "$ac_t""no" 1>&6
1263 + ac_safe=`echo "langinfo.h" | sed 'y%./+-%__p_%'`
1264 +echo $ac_n "checking for langinfo.h""... $ac_c" 1>&6
1265 +echo "configure:4980: checking for langinfo.h" >&5
1266 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1267 + echo $ac_n "(cached) $ac_c" 1>&6
1269 + cat > conftest.$ac_ext <<EOF
1270 +#line 4985 "configure"
1271 +#include "confdefs.h"
1272 +#include <langinfo.h>
1274 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1275 +{ (eval echo configure:4990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1276 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1277 +if test -z "$ac_err"; then
1279 + eval "ac_cv_header_$ac_safe=yes"
1281 + echo "$ac_err" >&5
1282 + echo "configure: failed program was:" >&5
1283 + cat conftest.$ac_ext >&5
1285 + eval "ac_cv_header_$ac_safe=no"
1289 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1290 + echo "$ac_t""yes" 1>&6
1291 + ac_has_langinfo_h=yes
1293 + echo "$ac_t""no" 1>&6
1294 +ac_has_langinfo_h=no
1298 + echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
1299 +echo "configure:5014: checking for iconv in -liconv" >&5
1300 +ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
1301 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1302 + echo $ac_n "(cached) $ac_c" 1>&6
1304 + ac_save_LIBS="$LIBS"
1305 +LIBS="-liconv $LIBS"
1306 +cat > conftest.$ac_ext <<EOF
1307 +#line 5022 "configure"
1308 +#include "confdefs.h"
1309 +/* Override any gcc2 internal prototype to avoid an error. */
1310 +/* We use char because int might match the return type of a gcc2
1311 + builtin and then its argument prototype would still apply. */
1318 +if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1320 + eval "ac_cv_lib_$ac_lib_var=yes"
1322 + echo "configure: failed program was:" >&5
1323 + cat conftest.$ac_ext >&5
1325 + eval "ac_cv_lib_$ac_lib_var=no"
1328 +LIBS="$ac_save_LIBS"
1331 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1332 + echo "$ac_t""yes" 1>&6
1333 + libiconv="-liconv"
1335 + echo "$ac_t""no" 1>&6
1338 + ac_save_LIBS="$LIBS"
1339 + LIBS="$LIBS $libiconv"
1341 + for ac_func in iconv_open iconv_close iconv nl_langinfo
1343 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1344 +echo "configure:5059: checking for $ac_func" >&5
1345 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1346 + echo $ac_n "(cached) $ac_c" 1>&6
1348 + cat > conftest.$ac_ext <<EOF
1349 +#line 5064 "configure"
1350 +#include "confdefs.h"
1351 +/* System header to define __stub macros and hopefully few prototypes,
1352 + which can conflict with char $ac_func(); below. */
1353 +#include <assert.h>
1354 +/* Override any gcc2 internal prototype to avoid an error. */
1355 +/* We use char because int might match the return type of a gcc2
1356 + builtin and then its argument prototype would still apply. */
1361 +/* The GNU C library defines this for functions which it implements
1362 + to always fail with ENOSYS. Some functions are actually named
1363 + something starting with __ and the normal name is an alias. */
1364 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1372 +if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1374 + eval "ac_cv_func_$ac_func=yes"
1376 + echo "configure: failed program was:" >&5
1377 + cat conftest.$ac_ext >&5
1379 + eval "ac_cv_func_$ac_func=no"
1384 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1385 + echo "$ac_t""yes" 1>&6
1386 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1387 + cat >> confdefs.h <<EOF
1388 +#define $ac_tr_func 1
1393 + echo "$ac_t""no" 1>&6
1399 + LIBS="$ac_save_LIBS"
1401 + echo $ac_n "checking for XPG2 wchar_t support""... $ac_c" 1>&6
1402 +echo "configure:5117: checking for XPG2 wchar_t support" >&5
1403 + if test x"$ac_has_iconv_h" = xyes &&
1404 + test x"$ac_has_langinfo_h" = xyes &&
1405 + test x"$ac_XPG2funcs" = xyes; then
1406 + ac_XPG2_wchar_t=yes
1408 + ac_XPG2_wchar_t=no
1410 + echo "$ac_t""$ac_XPG2_wchar_t" 1>&6
1412 + if test x"$ac_isoC99_wchar_t" = xyes &&
1413 + test x"$ac_XPG2_wchar_t" = xyes; then
1414 + cat >> confdefs.h <<\EOF
1415 +#define _GLIBCPP_USE_WCHAR_T 1
1418 + enable_wchar_t=yes
1421 + echo $ac_n "checking for enabled wchar_t specializations""... $ac_c" 1>&6
1422 +echo "configure:5137: checking for enabled wchar_t specializations" >&5
1423 + echo "$ac_t""$enable_wchar_t" 1>&6
1426 +if test "$enable_wchar_t" = yes; then
1427 + GLIBCPP_TEST_WCHAR_T_TRUE=
1428 + GLIBCPP_TEST_WCHAR_T_FALSE='#'
1430 + GLIBCPP_TEST_WCHAR_T_TRUE='#'
1431 + GLIBCPP_TEST_WCHAR_T_FALSE=
1435 + cat >> confdefs.h <<\EOF
1436 +#define HAVE_COPYSIGN 1
1439 + cat >> confdefs.h <<\EOF
1440 +#define HAVE_FINITE 1
1443 + cat >> confdefs.h <<\EOF
1444 +#define HAVE_FINITEF 1
1447 + cat >> confdefs.h <<\EOF
1448 +#define HAVE_ISINF 1
1451 + cat >> confdefs.h <<\EOF
1452 +#define HAVE_ISINFF 1
1455 + cat >> confdefs.h <<\EOF
1456 +#define HAVE_ISNAN 1
1459 + cat >> confdefs.h <<\EOF
1460 +#define HAVE_ISNANF 1
1464 os_include_dir="os/gnu-linux"
1465 for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \
1466 diff -urN gcc-3.3.3/libstdc++-v3/configure.in gcc-3.3.3-new/libstdc++-v3/configure.in
1467 --- gcc-3.3.3/libstdc++-v3/configure.in 2004-01-12 10:19:22.000000000 -0600
1468 +++ gcc-3.3.3-new/libstdc++-v3/configure.in 2004-02-16 23:13:45.000000000 -0600
1469 @@ -117,6 +117,36 @@
1470 # GLIBCPP_CHECK_MATH_SUPPORT
1474 + os_include_dir="os/uclibc"
1475 + AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
1476 + machine/endian.h machine/param.h sys/machine.h sys/types.h \
1477 + fp.h locale.h float.h inttypes.h])
1478 + SECTION_FLAGS='-ffunction-sections -fdata-sections'
1479 + AC_SUBST(SECTION_FLAGS)
1480 + GLIBCPP_CHECK_LINKER_FEATURES
1481 + GLIBCPP_CHECK_COMPLEX_MATH_SUPPORT
1482 + GLIBCPP_CHECK_WCHAR_T_SUPPORT
1484 + AC_DEFINE(HAVE_COPYSIGN)
1485 + #AC_DEFINE(HAVE_COPYSIGNF)
1486 + AC_DEFINE(HAVE_FINITE)
1487 + AC_DEFINE(HAVE_FINITEF)
1488 + #AC_DEFINE(HAVE_FREXPF)
1489 + #AC_DEFINE(HAVE_HYPOTF)
1490 + AC_DEFINE(HAVE_ISINF)
1491 + AC_DEFINE(HAVE_ISINFF)
1492 + AC_DEFINE(HAVE_ISNAN)
1493 + AC_DEFINE(HAVE_ISNANF)
1494 + #AC_DEFINE(HAVE_SINCOS)
1495 + #AC_DEFINE(HAVE_SINCOSF)
1496 + #if test x"long_double_math_on_this_cpu" = x"yes"; then
1497 + #AC_DEFINE(HAVE_FINITEL)
1498 + #AC_DEFINE(HAVE_HYPOTL)
1499 + #AC_DEFINE(HAVE_ISINFL)
1500 + #AC_DEFINE(HAVE_ISNANL)
1504 os_include_dir="os/gnu-linux"
1505 AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
1506 diff -urN gcc-3.3.3/libstdc++-v3/configure.target gcc-3.3.3-new/libstdc++-v3/configure.target
1507 --- gcc-3.3.3/libstdc++-v3/configure.target 2003-10-01 14:07:07.000000000 -0500
1508 +++ gcc-3.3.3-new/libstdc++-v3/configure.target 2004-02-16 21:12:16.000000000 -0600
1511 os_include_dir="os/bsd/freebsd"
1514 + os_include_dir="os/uclibc"
1517 os_include_dir="os/gnu-linux"
1519 diff -urN gcc-3.3.3/libstdc++-v3/include/c_std/std_cstdlib.h gcc-3.3.3-new/libstdc++-v3/include/c_std/std_cstdlib.h
1520 --- gcc-3.3.3/libstdc++-v3/include/c_std/std_cstdlib.h 2003-04-18 05:08:05.000000000 -0500
1521 +++ gcc-3.3.3-new/libstdc++-v3/include/c_std/std_cstdlib.h 2004-02-16 21:12:16.000000000 -0600
1522 @@ -101,9 +101,11 @@
1526 +#if _GLIBCPP_USE_WCHAR_T
1534 @@ -112,8 +114,10 @@
1538 +#if _GLIBCPP_USE_WCHAR_T
1544 abs(long __i) { return labs(__i); }
1545 diff -urN gcc-3.3.3/libstdc++-v3/include/c_std/std_cwchar.h gcc-3.3.3-new/libstdc++-v3/include/c_std/std_cwchar.h
1546 --- gcc-3.3.3/libstdc++-v3/include/c_std/std_cwchar.h 2003-04-18 05:08:05.000000000 -0500
1547 +++ gcc-3.3.3-new/libstdc++-v3/include/c_std/std_cwchar.h 2004-02-16 21:12:16.000000000 -0600
1552 +#ifdef HAVE_WCSFTIME
1558 diff -urN gcc-3.3.3/ltconfig gcc-3.3.3-new/ltconfig
1559 --- gcc-3.3.3/ltconfig 2003-02-19 20:10:02.000000000 -0600
1560 +++ gcc-3.3.3-new/ltconfig 2004-02-16 21:12:16.000000000 -0600
1562 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1566 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1569 @@ -1247,6 +1248,24 @@
1570 dynamic_linker='GNU/Linux ld.so'
1574 + version_type=linux
1575 + need_lib_prefix=no
1577 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
1578 + soname_spec='${libname}${release}.so$major'
1579 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1580 + shlibpath_var=LD_LIBRARY_PATH
1581 + shlibpath_overrides_runpath=no
1582 + # This implies no fast_install, which is unacceptable.
1583 + # Some rework will be needed to allow for fast_install
1584 + # before this can be enabled.
1585 + # Note: copied from linux-gnu, and may not be appropriate.
1586 + hardcode_into_libs=yes
1587 + # Assume using the uClibc dynamic linker.
1588 + dynamic_linker="uClibc ld.so"