OLD | NEW |
1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | 1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
2 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundatio
n, | 2 # 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundatio
n, |
3 # Inc. | 3 # Inc. |
4 # | 4 # |
5 # This file is free software; you can redistribute it and/or modify it | 5 # This file is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License as published by | 6 # under the terms of the GNU General Public License as published by |
7 # the Free Software Foundation; either version 3 of the License, or | 7 # the Free Software Foundation; either version 3 of the License, or |
8 # (at your option) any later version. | 8 # (at your option) any later version. |
9 # | 9 # |
10 # This program is distributed in the hope that it will be useful, but | 10 # This program is distributed in the hope that it will be useful, but |
(...skipping 3154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3165 NCN_STRICT_CHECK_TOOLS(DLLTOOL, dlltool) | 3165 NCN_STRICT_CHECK_TOOLS(DLLTOOL, dlltool) |
3166 NCN_STRICT_CHECK_TOOLS(LD, ld) | 3166 NCN_STRICT_CHECK_TOOLS(LD, ld) |
3167 NCN_STRICT_CHECK_TOOLS(LIPO, lipo) | 3167 NCN_STRICT_CHECK_TOOLS(LIPO, lipo) |
3168 NCN_STRICT_CHECK_TOOLS(NM, nm) | 3168 NCN_STRICT_CHECK_TOOLS(NM, nm) |
3169 NCN_STRICT_CHECK_TOOLS(RANLIB, ranlib, :) | 3169 NCN_STRICT_CHECK_TOOLS(RANLIB, ranlib, :) |
3170 NCN_STRICT_CHECK_TOOLS(STRIP, strip, :) | 3170 NCN_STRICT_CHECK_TOOLS(STRIP, strip, :) |
3171 NCN_STRICT_CHECK_TOOLS(WINDRES, windres) | 3171 NCN_STRICT_CHECK_TOOLS(WINDRES, windres) |
3172 NCN_STRICT_CHECK_TOOLS(WINDMC, windmc) | 3172 NCN_STRICT_CHECK_TOOLS(WINDMC, windmc) |
3173 NCN_STRICT_CHECK_TOOLS(OBJCOPY, objcopy) | 3173 NCN_STRICT_CHECK_TOOLS(OBJCOPY, objcopy) |
3174 NCN_STRICT_CHECK_TOOLS(OBJDUMP, objdump) | 3174 NCN_STRICT_CHECK_TOOLS(OBJDUMP, objdump) |
| 3175 NCN_STRICT_CHECK_TOOLS(READELF, readelf) |
3175 AC_SUBST(CC) | 3176 AC_SUBST(CC) |
3176 AC_SUBST(CXX) | 3177 AC_SUBST(CXX) |
3177 AC_SUBST(CFLAGS) | 3178 AC_SUBST(CFLAGS) |
3178 AC_SUBST(CXXFLAGS) | 3179 AC_SUBST(CXXFLAGS) |
3179 | 3180 |
3180 # Target tools. | 3181 # Target tools. |
3181 AC_ARG_WITH([build-time-tools], | 3182 AC_ARG_WITH([build-time-tools], |
3182 [ --with-build-time-tools=PATH | 3183 [ --with-build-time-tools=PATH |
3183 use given path to find target tools during the build], | 3184 use given path to find target tools during the build], |
3184 [case x"$withval" in | 3185 [case x"$withval" in |
(...skipping 11 matching lines...) Expand all Loading... |
3196 NCN_STRICT_CHECK_TARGET_TOOLS(GCJ_FOR_TARGET, gcj) | 3197 NCN_STRICT_CHECK_TARGET_TOOLS(GCJ_FOR_TARGET, gcj) |
3197 NCN_STRICT_CHECK_TARGET_TOOLS(GFORTRAN_FOR_TARGET, gfortran) | 3198 NCN_STRICT_CHECK_TARGET_TOOLS(GFORTRAN_FOR_TARGET, gfortran) |
3198 | 3199 |
3199 ACX_CHECK_INSTALLED_TARGET_TOOL(AR_FOR_TARGET, ar) | 3200 ACX_CHECK_INSTALLED_TARGET_TOOL(AR_FOR_TARGET, ar) |
3200 ACX_CHECK_INSTALLED_TARGET_TOOL(AS_FOR_TARGET, as) | 3201 ACX_CHECK_INSTALLED_TARGET_TOOL(AS_FOR_TARGET, as) |
3201 ACX_CHECK_INSTALLED_TARGET_TOOL(DLLTOOL_FOR_TARGET, dlltool) | 3202 ACX_CHECK_INSTALLED_TARGET_TOOL(DLLTOOL_FOR_TARGET, dlltool) |
3202 ACX_CHECK_INSTALLED_TARGET_TOOL(LD_FOR_TARGET, ld) | 3203 ACX_CHECK_INSTALLED_TARGET_TOOL(LD_FOR_TARGET, ld) |
3203 ACX_CHECK_INSTALLED_TARGET_TOOL(LIPO_FOR_TARGET, lipo) | 3204 ACX_CHECK_INSTALLED_TARGET_TOOL(LIPO_FOR_TARGET, lipo) |
3204 ACX_CHECK_INSTALLED_TARGET_TOOL(NM_FOR_TARGET, nm) | 3205 ACX_CHECK_INSTALLED_TARGET_TOOL(NM_FOR_TARGET, nm) |
3205 ACX_CHECK_INSTALLED_TARGET_TOOL(OBJDUMP_FOR_TARGET, objdump) | 3206 ACX_CHECK_INSTALLED_TARGET_TOOL(OBJDUMP_FOR_TARGET, objdump) |
| 3207 ACX_CHECK_INSTALLED_TARGET_TOOL(READELF_FOR_TARGET, readelf) |
3206 ACX_CHECK_INSTALLED_TARGET_TOOL(RANLIB_FOR_TARGET, ranlib, :) | 3208 ACX_CHECK_INSTALLED_TARGET_TOOL(RANLIB_FOR_TARGET, ranlib, :) |
3207 ACX_CHECK_INSTALLED_TARGET_TOOL(STRIP_FOR_TARGET, strip) | 3209 ACX_CHECK_INSTALLED_TARGET_TOOL(STRIP_FOR_TARGET, strip) |
3208 ACX_CHECK_INSTALLED_TARGET_TOOL(WINDRES_FOR_TARGET, windres) | 3210 ACX_CHECK_INSTALLED_TARGET_TOOL(WINDRES_FOR_TARGET, windres) |
3209 ACX_CHECK_INSTALLED_TARGET_TOOL(WINDMC_FOR_TARGET, windmc) | 3211 ACX_CHECK_INSTALLED_TARGET_TOOL(WINDMC_FOR_TARGET, windmc) |
3210 | 3212 |
3211 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" | 3213 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
3212 | 3214 |
3213 GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar]) | 3215 GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar]) |
3214 GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new]) | 3216 GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new]) |
3215 GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) | 3217 GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) |
3216 GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX, | 3218 GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX, |
3217 [gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(
TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUB
DIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDI
R)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs], | 3219 [gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(
TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUB
DIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDI
R)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs], |
3218 c++) | 3220 c++) |
3219 GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX, | 3221 GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX, |
3220 [gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L
$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.l
ibs], | 3222 [gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L
$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.l
ibs], |
3221 c++) | 3223 c++) |
3222 GCC_TARGET_TOOL(dlltool, DLLTOOL_FOR_TARGET, DLLTOOL, [binutils/dlltool]) | 3224 GCC_TARGET_TOOL(dlltool, DLLTOOL_FOR_TARGET, DLLTOOL, [binutils/dlltool]) |
3223 GCC_TARGET_TOOL(gcc, GCC_FOR_TARGET, , [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) | 3225 GCC_TARGET_TOOL(gcc, GCC_FOR_TARGET, , [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/]) |
3224 GCC_TARGET_TOOL(gcj, GCJ_FOR_TARGET, GCJ, | 3226 GCC_TARGET_TOOL(gcj, GCJ_FOR_TARGET, GCJ, |
3225 [gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/], java) | 3227 [gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/], java) |
3226 GCC_TARGET_TOOL(gfortran, GFORTRAN_FOR_TARGET, GFORTRAN, | 3228 GCC_TARGET_TOOL(gfortran, GFORTRAN_FOR_TARGET, GFORTRAN, |
3227 [gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/], fortran) | 3229 [gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/], fortran) |
3228 GCC_TARGET_TOOL(ld, LD_FOR_TARGET, LD, [ld/ld-new]) | 3230 GCC_TARGET_TOOL(ld, LD_FOR_TARGET, LD, [ld/ld-new]) |
3229 GCC_TARGET_TOOL(lipo, LIPO_FOR_TARGET, LIPO) | 3231 GCC_TARGET_TOOL(lipo, LIPO_FOR_TARGET, LIPO) |
3230 GCC_TARGET_TOOL(nm, NM_FOR_TARGET, NM, [binutils/nm-new]) | 3232 GCC_TARGET_TOOL(nm, NM_FOR_TARGET, NM, [binutils/nm-new]) |
3231 GCC_TARGET_TOOL(objdump, OBJDUMP_FOR_TARGET, OBJDUMP, [binutils/objdump]) | 3233 GCC_TARGET_TOOL(objdump, OBJDUMP_FOR_TARGET, OBJDUMP, [binutils/objdump]) |
| 3234 GCC_TARGET_TOOL(readelf, READELF_FOR_TARGET, READELF, [binutils/readelf]) |
3232 GCC_TARGET_TOOL(ranlib, RANLIB_FOR_TARGET, RANLIB, [binutils/ranlib]) | 3235 GCC_TARGET_TOOL(ranlib, RANLIB_FOR_TARGET, RANLIB, [binutils/ranlib]) |
3233 GCC_TARGET_TOOL(strip, STRIP_FOR_TARGET, STRIP, [binutils/strip]) | 3236 GCC_TARGET_TOOL(strip, STRIP_FOR_TARGET, STRIP, [binutils/strip]) |
3234 GCC_TARGET_TOOL(windres, WINDRES_FOR_TARGET, WINDRES, [binutils/windres]) | 3237 GCC_TARGET_TOOL(windres, WINDRES_FOR_TARGET, WINDRES, [binutils/windres]) |
3235 GCC_TARGET_TOOL(windmc, WINDMC_FOR_TARGET, WINDMC, [binutils/windmc]) | 3238 GCC_TARGET_TOOL(windmc, WINDMC_FOR_TARGET, WINDMC, [binutils/windmc]) |
3236 | 3239 |
3237 AC_SUBST(FLAGS_FOR_TARGET) | 3240 AC_SUBST(FLAGS_FOR_TARGET) |
3238 AC_SUBST(RAW_CXX_FOR_TARGET) | 3241 AC_SUBST(RAW_CXX_FOR_TARGET) |
3239 | 3242 |
3240 # Certain tools may need extra flags. | 3243 # Certain tools may need extra flags. |
3241 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | 3244 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3356 | 3359 |
3357 AC_CONFIG_FILES([Makefile], | 3360 AC_CONFIG_FILES([Makefile], |
3358 [sed "$extrasub_build" Makefile | | 3361 [sed "$extrasub_build" Makefile | |
3359 sed "$extrasub_host" | | 3362 sed "$extrasub_host" | |
3360 sed "$extrasub_target" > mf$$ | 3363 sed "$extrasub_target" > mf$$ |
3361 mv -f mf$$ Makefile], | 3364 mv -f mf$$ Makefile], |
3362 [extrasub_build="$extrasub_build" | 3365 [extrasub_build="$extrasub_build" |
3363 extrasub_host="$extrasub_host" | 3366 extrasub_host="$extrasub_host" |
3364 extrasub_target="$extrasub_target"]) | 3367 extrasub_target="$extrasub_target"]) |
3365 AC_OUTPUT | 3368 AC_OUTPUT |
OLD | NEW |