[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Autoconf-patches] Support for nested AT_DATA
From: |
Pavel Roskin |
Subject: |
[Autoconf-patches] Support for nested AT_DATA |
Date: |
Mon, 18 Sep 2000 21:06:35 -0400 (EDT) |
Hello!
Currently it's impossible to use AT_DATA in the configure.in scripts used
in AT_TEST_MACRO. The problem is that AT_DATA always uses the same file
delimiter - EOF.
This patch makes AT_DATA generate the delimiter based on the file being
created, so that the shell doesn't get confused by overlapping EOF's. Now
I can e.g. create a "mycpp" script in AT_TEST_MACRO using AT_DATA.
======================
Index: ChangeLog
--- ChangeLog Mon Sep 18 08:29:44 2000
+++ ChangeLog Mon Sep 18 21:04:11 2000
@@ -0,0 +1,6 @@
+2000-09-18 Pavel Roskin <address@hidden>
+
+ * tests/atgeneral.m4 (AT_DATA): Added support for nested AT_DATA.
+ File delimiter is generated based on the name of the file to be
+ created.
+
Index: tests/atgeneral.m4
--- tests/atgeneral.m4 Mon Jul 10 08:46:29 2000
+++ tests/atgeneral.m4 Mon Sep 18 20:49:21 2000
@@ -332,8 +332,8 @@
AT_DEFINE(AT_DATA,
[AT_DEFINE([AT_data_files], AT_data_files[ ]$1)
-cat > $1 <<'EOF'
-$2[]EOF
+cat > $1 <<'patsubst($1, [[^a-zA-Z0-9_]], [_])_EOF'
+$2[]patsubst($1, [[^a-zA-Z0-9_]], [_])_EOF
])
======================
Regards,
Pavel Roskin
- [Autoconf-patches] Support for nested AT_DATA,
Pavel Roskin <=