< prev index next >

common/autoconf/toolchain.m4

Print this page




 277       && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
 278     TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV
 279     # Reset path to VS_PATH. It will include everything that was on PATH at the time we
 280     # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV.
 281     PATH="$VS_PATH"
 282     # The microsoft toolchain also requires INCLUDE and LIB to be set.
 283     export INCLUDE="$VS_INCLUDE"
 284     export LIB="$VS_LIB"
 285   else
 286     if test "x$XCODE_VERSION_OUTPUT" != x; then
 287       # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION
 288       TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '`
 289       TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode"
 290     else
 291       # Currently we do not define this for other toolchains. This might change as the need arise.
 292       TOOLCHAIN_VERSION=
 293     fi
 294   fi
 295   AC_SUBST(TOOLCHAIN_VERSION)
 296 
 297   # For solaris we really need solaris tools, and not the GNU equivalent.
 298   # The build tools on Solaris reside in /usr/ccs (C Compilation System),
 299   # so add that to path before starting to probe.
 300   # FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP.
 301   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
 302     PATH="/usr/ccs/bin:$PATH"
 303   fi
 304 
 305   # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to
 306   # override all other locations.
 307   if test "x$TOOLCHAIN_PATH" != x; then
 308     PATH=$TOOLCHAIN_PATH:$PATH
 309   fi
 310 ])
 311 
 312 # Restore path, etc
 313 AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION],
 314 [
 315   # Restore old path, except for the microsoft toolchain, which requires VS_PATH
 316   # to remain in place. Otherwise the compiler will not work in some siutations
 317   # in later configure checks.
 318   if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then
 319     PATH="$OLD_PATH"
 320   fi
 321 
 322   # Restore the flags to the user specified values.
 323   # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
 324   CFLAGS="$ORG_CFLAGS"




 277       && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
 278     TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV
 279     # Reset path to VS_PATH. It will include everything that was on PATH at the time we
 280     # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV.
 281     PATH="$VS_PATH"
 282     # The microsoft toolchain also requires INCLUDE and LIB to be set.
 283     export INCLUDE="$VS_INCLUDE"
 284     export LIB="$VS_LIB"
 285   else
 286     if test "x$XCODE_VERSION_OUTPUT" != x; then
 287       # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION
 288       TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '`
 289       TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode"
 290     else
 291       # Currently we do not define this for other toolchains. This might change as the need arise.
 292       TOOLCHAIN_VERSION=
 293     fi
 294   fi
 295   AC_SUBST(TOOLCHAIN_VERSION)
 296 








 297   # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to
 298   # override all other locations.
 299   if test "x$TOOLCHAIN_PATH" != x; then
 300     PATH=$TOOLCHAIN_PATH:$PATH
 301   fi
 302 ])
 303 
 304 # Restore path, etc
 305 AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION],
 306 [
 307   # Restore old path, except for the microsoft toolchain, which requires VS_PATH
 308   # to remain in place. Otherwise the compiler will not work in some siutations
 309   # in later configure checks.
 310   if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then
 311     PATH="$OLD_PATH"
 312   fi
 313 
 314   # Restore the flags to the user specified values.
 315   # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
 316   CFLAGS="$ORG_CFLAGS"


< prev index next >