+2017-12-05 Sam Steingold <sds@gnu.org>
+ Bruno Haible <bruno@clisp.org>
+
+ no-c++: Avoid "egrep: repetition-operator operand invalid" error.
+ * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
+ AC_EGREP_CPP pattern.
+
2017-12-03 Bruno Haible <bruno@clisp.org>
all: Replace more http URLs by https URLs.
-# no-c++.m4 serial 1
+# no-c++.m4 serial 2
dnl Copyright (C) 2006, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
# Support for C source files that cannot be compiled by a C++ compiler.
# Set NO_CXX to the C++ compiler flags needed to request C mode instead of
# C++ mode.
-# So far only g++ is supported.
+# So far only g++ is supported. This includes clang++, as it is g++ compatible.
AC_DEFUN([gt_NO_CXX],
[
NO_CXX=
- AC_EGREP_CPP([Is g++], [
+ AC_EGREP_CPP([Is_g_plus_plus], [
#if defined __GNUC__ && defined __cplusplus
- Is g++
+ Is_g_plus_plus
#endif
],
[NO_CXX="-x c"])