diff options
author | Dara Hazeghi <dhazeghi@yahoo.com> | 2004-01-31 04:18:15 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-01-30 20:18:15 -0800 |
commit | 354b7da5e35d8b4266e484d514045a7dc1f624fb (patch) | |
tree | 2a53ef1565cb74aa4f599b89db3379d971e05705 /gcc/configure.ac | |
parent | 9781b6dabd95da9b390eaffe878fb883d10d9e74 (diff) | |
download | gcc-354b7da5e35d8b4266e484d514045a7dc1f624fb.zip gcc-354b7da5e35d8b4266e484d514045a7dc1f624fb.tar.gz gcc-354b7da5e35d8b4266e484d514045a7dc1f624fb.tar.bz2 |
re PR bootstrap/9249 (bootstrap fails with --enable-__cxa-atexit on Solaris)
2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
PR bootstrap/9249
* doc/install.texi: document --enable-__cxa_atexit option.
* configure.ac: Disable __cxa_atexit if not supported.
* configure: Regenerate.
From-SVN: r77023
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r-- | gcc/configure.ac | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac index c29ddaa..33549b0 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -1136,11 +1136,13 @@ fi if test x$enable___cxa_atexit = xyes || \ test x$enable___cxa_atexit = x -a x$default_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.]) + 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") fi # Look for a file containing extra machine modes. |