diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2008-02-14 17:03:02 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2008-02-14 17:03:02 +0000 |
commit | 4bcf935d1195ea17f17d5249ef2a502ead734535 (patch) | |
tree | 764a3963c92dd5f036ee47531383f80648caecee /libstdc++-v3/configure | |
parent | a5bfb13a75be342bbe6296a95b8e61bdef02a684 (diff) | |
download | gcc-4bcf935d1195ea17f17d5249ef2a502ead734535.zip gcc-4bcf935d1195ea17f17d5249ef2a502ead734535.tar.gz gcc-4bcf935d1195ea17f17d5249ef2a502ead734535.tar.bz2 |
error_constants.h (posix_errno): Guard not_supported use of ENOTSUP.
2008-02-14 Benjamin Kosnik <bkoz@redhat.com>
* config/os/generic/error_constants.h (posix_errno): Guard
not_supported use of ENOTSUP.
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add check for ENOTSUP
for OpenBSD.
* aclocal.m4: Regenerate.
* configure: Rengerate.
* config.h.in: Same.
From-SVN: r132319
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-x | libstdc++-v3/configure | 66 |
1 files changed, 65 insertions, 1 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index e6d0836..e23e3df 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -17742,6 +17742,70 @@ _ACEOF fi + echo "$as_me:$LINENO: checking for ENOTSUP" >&5 +echo $ECHO_N "checking for ENOTSUP... $ECHO_C" >&6 + if test "${ac_system_error_13+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <errno.h> +int +main () +{ + int i = ENOTSUP; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_system_error_13=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_system_error_13=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + + echo "$as_me:$LINENO: result: $ac_system_error_13" >&5 +echo "${ECHO_T}$ac_system_error_13" >&6 + if test x"$ac_system_error_13" = x"yes"; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_ENOTSUP 1 +_ACEOF + + fi + # No surprises, no surprises... @@ -17784,7 +17848,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. cat > conftest.$ac_ext << EOF -#line 17787 "configure" +#line 17851 "configure" int main() { // NB: _Atomic_word not necessarily int. |