summaryrefslogtreecommitdiff
path: root/gnulib/m4/no-c++.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/m4/no-c++.m4')
m---------gnulib0
-rw-r--r--gnulib/m4/no-c++.m422
2 files changed, 22 insertions, 0 deletions
diff --git a/gnulib b/gnulib
deleted file mode 160000
-Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1
diff --git a/gnulib/m4/no-c++.m4 b/gnulib/m4/no-c++.m4
new file mode 100644
index 0000000..f6db79d
--- /dev/null
+++ b/gnulib/m4/no-c++.m4
@@ -0,0 +1,22 @@
+# no-c++.m4 serial 1
+dnl Copyright (C) 2006, 2009-2011 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+# 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.
+
+AC_DEFUN([gt_NO_CXX],
+[
+ NO_CXX=
+ AC_EGREP_CPP([Is g++], [
+#if defined __GNUC__ && defined __cplusplus
+ Is g++
+#endif
+ ],
+ [NO_CXX="-x c"])
+ AC_SUBST([NO_CXX])
+])