summaryrefslogtreecommitdiffstats
path: root/ast/ast_cpp.in
diff options
context:
space:
mode:
Diffstat (limited to 'ast/ast_cpp.in')
-rw-r--r--ast/ast_cpp.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/ast/ast_cpp.in b/ast/ast_cpp.in
new file mode 100644
index 0000000..c4fb206
--- /dev/null
+++ b/ast/ast_cpp.in
@@ -0,0 +1,11 @@
+
+# Replacement for the C pre-processor command "cpp" which is not
+# always available. This uses the compiler command "cc" to do the same
+# thing. Also, this reads from standard input (which "cc" won't do).
+#
+# The name of the CPP processor is substituted in by the ./configure script,
+# based on the result of the AC_PROG_CPP test.
+
+cat >/tmp/ast_cpp_$$.c
+@CPP@ /tmp/ast_cpp_$$.c
+rm -f /tmp/ast_cpp_$$.c