common/autoconf/toolchain.m4

changeset 2227
77b81e582939
parent 2224
20daa32eec6f
child 2229
b50838ae1046
equal deleted inserted replaced
2226:d5dd14b37ea5 2227:77b81e582939
332 ]) 332 ])
333 333
334 # Restore path, etc 334 # Restore path, etc
335 AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION], 335 AC_DEFUN_ONCE([TOOLCHAIN_POST_DETECTION],
336 [ 336 [
337 # Restore old path. 337 # Restore old path, except for the microsoft toolchain, which requires VS_PATH
338 PATH="$OLD_PATH" 338 # to remain in place. Otherwise the compiler will not work in some situations
339 # in later configure checks.
340 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then
341 PATH="$OLD_PATH"
342 fi
339 343
340 # Restore the flags to the user specified values. 344 # Restore the flags to the user specified values.
341 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 345 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
342 CFLAGS="$ORG_CFLAGS" 346 CFLAGS="$ORG_CFLAGS"
343 CXXFLAGS="$ORG_CXXFLAGS" 347 CXXFLAGS="$ORG_CXXFLAGS"

mercurial