X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fac_cxx_header_stdcxx_98.m4;h=856241bcdfd4fc579cdfa33eab522a120f14231e;hb=969fea8e7bed82c109685ec3976cf7b0ec514ae9;hp=67e4c972ecf59a853468f2faacf52e64e4045c41;hpb=89608dc3370371a9fde46d6f60e9480fa576fc3a;p=m6w6%2Flibmemcached diff --git a/m4/ac_cxx_header_stdcxx_98.m4 b/m4/ac_cxx_header_stdcxx_98.m4 index 67e4c972..856241bc 100644 --- a/m4/ac_cxx_header_stdcxx_98.m4 +++ b/m4/ac_cxx_header_stdcxx_98.m4 @@ -1,12 +1,28 @@ -dnl Copyright © 2008 Benjamin Kosnik - -dnl Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. - +# =========================================================================== +# http://autoconf-archive.cryp.to/ac_cxx_header_stdcxx_98.html +# =========================================================================== +# +# SYNOPSIS +# +# AC_CXX_HEADER_STDCXX_98 +# +# DESCRIPTION +# +# Check for complete library coverage of the C++1998/2003 standard. +# +# LICENSE +# +# Copyright (c) 2008 Benjamin Kosnik +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. AC_DEFUN([AC_CXX_HEADER_STDCXX_98], [ AC_CACHE_CHECK(for ISO C++ 98 include files, ac_cv_cxx_stdcxx_98, - [AC_LANG_PUSH(C++) + [AC_LANG_SAVE + AC_LANG_CPLUSPLUS AC_TRY_COMPILE([ #include #include @@ -59,7 +75,7 @@ AC_DEFUN([AC_CXX_HEADER_STDCXX_98], [ #include ],, ac_cv_cxx_stdcxx_98=yes, ac_cv_cxx_stdcxx_98=no) - AC_LANG_POP() + AC_LANG_RESTORE ]) if test "$ac_cv_cxx_stdcxx_98" = yes; then AC_DEFINE(STDCXX_98_HEADERS,,[Define if ISO C++ 1998 header files are present. ])