configure.ac: Don't test for [build] __cxa_atexit when building a cross compiler.
* configure.ac: Don't test for [build] __cxa_atexit when building a cross compiler. * configure: Regenerate. From-SVN: r89684
This commit is contained in:
parent
57991ebac2
commit
18fbf5995b
@ -1,3 +1,9 @@
|
||||
2004-10-27 Paul Brook <paul@codesourcery.com>
|
||||
|
||||
* configure.ac: Don't test for [build] __cxa_atexit when building a
|
||||
cross compiler.
|
||||
* configure: Regenerate.
|
||||
|
||||
2004-10-27 Paul Brook <paul@codeosurcery.com>
|
||||
|
||||
* configure.ac: Use build_exeext not host_exeext when lookin for
|
||||
|
20
gcc/configure
vendored
20
gcc/configure
vendored
@ -12005,9 +12005,11 @@ fi
|
||||
# UNSORTED
|
||||
# --------
|
||||
|
||||
use_cxa_atexit=no
|
||||
if test x$enable___cxa_atexit = xyes || \
|
||||
test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
|
||||
echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
|
||||
if test x$host = x$target; then
|
||||
echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
|
||||
echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
|
||||
if test "${ac_cv_func___cxa_atexit+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
@ -12098,15 +12100,23 @@ fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
|
||||
echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
|
||||
if test $ac_cv_func___cxa_atexit = yes; then
|
||||
use_cxa_atexit=yes
|
||||
else
|
||||
echo "__cxa_atexit can't be enabled on this target"
|
||||
fi
|
||||
|
||||
else
|
||||
# We can't check for __cxa_atexit when building a cross, so assume
|
||||
# it is available
|
||||
use_cxa_atexit=yes
|
||||
fi
|
||||
if test x$use_cxa_atexit = xyes; then
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define DEFAULT_USE_CXA_ATEXIT 1
|
||||
_ACEOF
|
||||
|
||||
else
|
||||
echo "__cxa_atexit can't be enabled on this target"
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
# Look for a file containing extra machine modes.
|
||||
|
@ -1295,15 +1295,24 @@ AC_SUBST(gthread_flags)
|
||||
# UNSORTED
|
||||
# --------
|
||||
|
||||
use_cxa_atexit=no
|
||||
if test x$enable___cxa_atexit = xyes || \
|
||||
test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
|
||||
AC_CHECK_FUNC(__cxa_atexit,
|
||||
[AC_DEFINE(DEFAULT_USE_CXA_ATEXIT, 1,
|
||||
[Define if you want to use __cxa_atexit, rather than atexit, to
|
||||
register C++ destructors for local statics and global objects.
|
||||
This is essential for fully standards-compliant handling of
|
||||
destructors, but requires __cxa_atexit in libc.])],
|
||||
echo "__cxa_atexit can't be enabled on this target")
|
||||
if test x$host = x$target; then
|
||||
AC_CHECK_FUNC(__cxa_atexit,[use_cxa_atexit=yes],
|
||||
[echo "__cxa_atexit can't be enabled on this target"])
|
||||
else
|
||||
# We can't check for __cxa_atexit when building a cross, so assume
|
||||
# it is available
|
||||
use_cxa_atexit=yes
|
||||
fi
|
||||
if test x$use_cxa_atexit = xyes; then
|
||||
AC_DEFINE(DEFAULT_USE_CXA_ATEXIT, 1,
|
||||
[Define if you want to use __cxa_atexit, rather than atexit, to
|
||||
register C++ destructors for local statics and global objects.
|
||||
This is essential for fully standards-compliant handling of
|
||||
destructors, but requires __cxa_atexit in libc.])
|
||||
fi
|
||||
fi
|
||||
|
||||
# Look for a file containing extra machine modes.
|
||||
|
Loading…
Reference in New Issue
Block a user