| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 | # ===========================================================================#   http://www.gnu.org/software/autoconf-archive/ax_prog_cxx_for_build.html# ===========================================================================## SYNOPSIS##   AX_PROG_CXX_FOR_BUILD## DESCRIPTION##   This macro searches for a C++ compiler that generates native#   executables, that is a C++ compiler that surely is not a cross-compiler.#   This can be useful if you have to generate source code at compile-time#   like for example GCC does.##   The macro sets the CXX_FOR_BUILD and CXXCPP_FOR_BUILD macros to anything#   needed to compile or link (CXX_FOR_BUILD) and preprocess#   (CXXCPP_FOR_BUILD). The value of these variables can be overridden by#   the user by specifying a compiler with an environment variable (like you#   do for standard CXX).## LICENSE##   Copyright (c) 2008 Paolo Bonzini <bonzini@gnu.org>#   Copyright (c) 2012 Avionic Design GmbH##   Based on the AX_PROG_CC_FOR_BUILD macro by Paolo Bonzini.##   Copying and distribution of this file, with or without modification, are#   permitted in any medium without royalty provided the copyright notice#   and this notice are preserved. This file is offered as-is, without any#   warranty.#serial 2AU_ALIAS([AC_PROG_CXX_FOR_BUILD], [AX_PROG_CXX_FOR_BUILD])AC_DEFUN([AX_PROG_CXX_FOR_BUILD], [dnlAC_REQUIRE([AX_PROG_CC_FOR_BUILD])dnlAC_REQUIRE([AC_PROG_CXX])dnlAC_REQUIRE([AC_PROG_CXXCPP])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnldnl Use the standard macros, but make them use other variable namesdnlpushdef([ac_cv_prog_CXXCPP], ac_cv_build_prog_CXXCPP)dnlpushdef([ac_cv_prog_gxx], ac_cv_build_prog_gxx)dnlpushdef([ac_cv_prog_cxx_works], ac_cv_build_prog_cxx_works)dnlpushdef([ac_cv_prog_cxx_cross], ac_cv_build_prog_cxx_cross)dnlpushdef([ac_cv_prog_cxx_g], ac_cv_build_prog_cxx_g)dnlpushdef([CXX], CXX_FOR_BUILD)dnlpushdef([CXXCPP], CXXCPP_FOR_BUILD)dnlpushdef([CXXFLAGS], CXXFLAGS_FOR_BUILD)dnlpushdef([CPPFLAGS], CPPFLAGS_FOR_BUILD)dnlpushdef([CXXCPPFLAGS], CXXCPPFLAGS_FOR_BUILD)dnlpushdef([host], build)dnlpushdef([host_alias], build_alias)dnlpushdef([host_cpu], build_cpu)dnlpushdef([host_vendor], build_vendor)dnlpushdef([host_os], build_os)dnlpushdef([ac_cv_host], ac_cv_build)dnlpushdef([ac_cv_host_alias], ac_cv_build_alias)dnlpushdef([ac_cv_host_cpu], ac_cv_build_cpu)dnlpushdef([ac_cv_host_vendor], ac_cv_build_vendor)dnlpushdef([ac_cv_host_os], ac_cv_build_os)dnlpushdef([ac_cxxcpp], ac_build_cxxcpp)dnlpushdef([ac_compile], ac_build_compile)dnlpushdef([ac_link], ac_build_link)dnlsave_cross_compiling=$cross_compilingsave_ac_tool_prefix=$ac_tool_prefixcross_compiling=noac_tool_prefix=AC_PROG_CXXAC_PROG_CXXCPPac_tool_prefix=$save_ac_tool_prefixcross_compiling=$save_cross_compilingdnl Restore the old definitionsdnlpopdef([ac_link])dnlpopdef([ac_compile])dnlpopdef([ac_cxxcpp])dnlpopdef([ac_cv_host_os])dnlpopdef([ac_cv_host_vendor])dnlpopdef([ac_cv_host_cpu])dnlpopdef([ac_cv_host_alias])dnlpopdef([ac_cv_host])dnlpopdef([host_os])dnlpopdef([host_vendor])dnlpopdef([host_cpu])dnlpopdef([host_alias])dnlpopdef([host])dnlpopdef([CXXCPPFLAGS])dnlpopdef([CPPFLAGS])dnlpopdef([CXXFLAGS])dnlpopdef([CXXCPP])dnlpopdef([CXX])dnlpopdef([ac_cv_prog_cxx_g])dnlpopdef([ac_cv_prog_cxx_cross])dnlpopdef([ac_cv_prog_cxx_works])dnlpopdef([ac_cv_prog_gxx])dnlpopdef([ac_cv_prog_CXXCPP])dnldnl Finally, set Makefile variablesdnlAC_SUBST([CXXFLAGS_FOR_BUILD])dnlAC_SUBST([CXXCPPFLAGS_FOR_BUILD])dnl])
 |