# nls_pkg_= && prj_u2 prj_set as_ "$SPF_CONF"/binutils/i386-mingw32/bin/as && prj_u2 prj_set ld_ "$SPF_CONF"/binutils/i386-mingw32/bin/ld && # prj_u2 prj_set as_ "$SPF_CONF"/binutils/bin/as && # prj_u2 prj_set ld_ "$SPF_CONF"/binutils/bin/ld && case $version_.0 in 2.*) prj_u2 prj_set v2_ y;; *) prj_u2 prj_set v2_ n;; esac && if test "$v2_" = y then : else set -- --enable-libgcj ${1+"$@"} fi && pkg_setup_() { needfile "$packver_"/. && checkversion_ 4.0.3 4.0.2 4.0.1 4.0.0 3.4.6 3.4.5 3.4.4 3.4.3 3.4.2 \ 3.4.1 3.4.0 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 3.2.3 3.1.1 2.95.3 && mkdir "$packver_"-build && cd "$packver_"-build && confdir_opt_= && confdir_ binutils && if test -d "$SPF_CONF"/binutils/bin/.; then :; else as_=$SPF_CONF/as && prj_which x_ as && conffile_ "$as_" "$x_" && ld_=$SPF_CONF/ld && prj_which x_ ld && conffile_ "$ld_" "$x_" fi && x_=/bin/sh && if [ "$uname_s_" = SunOS ]; then case $uname_r_ in 5.*) x_=/bin/ksh;; *) :;; esac else : fi && prj_x2 prj_set CONFIG_SHELL "${CONFIG_SHELL-$x_}" && rungcc_ && if test -d "$conflibc_"/.; then if test "$v2_" = y then prj_x2 prj_append CPATH "$conflibc_"/include else : fi && for x_ in C_INCLUDE_PATH CPLUS_INCLUDE_PATH OBJC_INCLUDE_PATH; do prj_x2 prj_append "$x_" "$conflibc_"/include || return "$?" done && prj_u2 prj_set lib_ "$conflibc_"/lib && prj_x2 prj_append LIBRARY_PATH "$lib_" && prj_u2 prj_set dyn_ "$lib_"/ld.so.1 && { prj_exists "$dyn_" || dyn_=$lib_/ld-linux.so.2; } && ldflags_="-Wl,--dynamic-linker,$dyn_ $ldflags_" && ldflags_="$ldflags_ -Wl,-R,$lib_" else : fi && cflags_="-g $cflags_" } && autoconf_no_O2_= && autoconf_path_=../"$packver_" && autoconf_pkg_ && pkg_configure_() { case $version_.0 in 2.*|3.[0123].*) x_="s%^ *\\(LDFLAGS=\"\\)%$tab_ \\1%";; *) x_=;; esac && define_make_ x_ LDFLAGS_FOR_TARGET "$ldflags_" && sed_ ../"$packver_"/Makefile.in "$x_" && if test "$v2_" = y; then sed_ ../"$packver_"/libstdc++/std/complext.h \ 's%^\(extern "C" double hypot\)%//\1%' && sed_ ../"$packver_"/config.if \ 's%\(\${CC-cc}\)%\1 $CPPFLAGS $CFLAGS $LDFLAGS%' else if test -d "$conflibc_"/.; then x_= && define_make_ x_ NATIVE_SYSTEM_HEADER_DIR "$conflibc_"/include && sed_ ../"$packver_"/gcc/Makefile.in "$x_" else : fi # case $version_ in # 3.*) fix_ltconfig_ ../"$packver_"/boehm-gc;; # *) :;; # esac fi && fix_ltconfig_ ../"$packver_" && noop_commands_ ldconfig && autoconf_configure_ --with-as="$as_" --with-ld="$ld_" --enable-threads \ ${1+"$@"} } && pkg_make_() { case $version_ in 3.4.[3456]) prj_x2 prj_set_default SPF_PKG_GCC_MAKE bootstrap;; *) :;; esac && make STAGE1_CFLAGS="$cflags_" BOOT_CFLAGS="-O2 $cflags_" \ LDFLAGS="$ldflags_" BOOT_LDFLAGS="$ldflags_" HOST_LDFLAGS="$ldflags_" \ ${SPF_PKG_GCC_MAKE-bootstrap-lean} && rm -f "$SPF_CONF"/gcc } && no_check_pkg_ #### tests require DejaGNU