]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoconf.sh (task trace): Pipe the output of the first m4 into
authorAkim Demaille <akim@epita.fr>
Tue, 21 Mar 2000 12:06:30 +0000 (12:06 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 21 Mar 2000 12:06:30 +0000 (12:06 +0000)
the second one, instead of saving to a tmp file, so that we can
trace endless configure.in expansion.

ChangeLog
autoconf.in
autoconf.sh
bin/autoconf.in

index d0e1ad94339c9c63e1590bb7eda4f446bebe35d4..bdbff165770e34b30207dff2f1220485b8c2568b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-03-21  Akim Demaille  <akim@epita.fr>
+
+       * autoconf.sh (task trace): Pipe the output of the first m4 into
+       the second one, instead of saving to a tmp file, so that we can
+       trace endless configure.in expansion.
+
 2000-03-21  Akim Demaille  <akim@epita.fr>
 
        Uniform idioms.
index 4e010b14a614ad6d575ab8e1860dab66c48b632d..ccfaf80549646fad763e88a1345f9e92b9f7ac4a 100644 (file)
@@ -440,21 +440,19 @@ EOF
   fi
 
   # Run m4 on the input file to get traces.
-  $verbose "Running $run_m4_trace $infile" >&2
+  $verbose "Running $run_m4_trace $infile | $M4 $trace_m4" >&2
   $run_m4_trace $infile 2>&1 >/dev/null |
     sed -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \([^(][^(]*\)(\(.*\)$/AT_\4([\1], [\2], [\3], [\4], \5/' \
-        -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' >>$trace_m4
-
+        -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' |
   # Now we are ready to run m4 to process the trace file.
+  $M4 $trace_m4 - |
   # It makes no sense to try to transform __oline__.
-  $verbose "Running $M4 $trace_m4" >&2
-  $M4 $trace_m4 |
-    sed '
-      s/@<:@/[/g
-      s/@:>@/]/g
-      s/@S|@/$/g
-      s/@%:@/#/g
-      ' >&4
+  sed '
+    s/@<:@/[/g
+    s/@:>@/]/g
+    s/@S|@/$/g
+    s/@%:@/#/g
+    ' >&4
   ;;
 
 
index 4e010b14a614ad6d575ab8e1860dab66c48b632d..ccfaf80549646fad763e88a1345f9e92b9f7ac4a 100644 (file)
@@ -440,21 +440,19 @@ EOF
   fi
 
   # Run m4 on the input file to get traces.
-  $verbose "Running $run_m4_trace $infile" >&2
+  $verbose "Running $run_m4_trace $infile | $M4 $trace_m4" >&2
   $run_m4_trace $infile 2>&1 >/dev/null |
     sed -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \([^(][^(]*\)(\(.*\)$/AT_\4([\1], [\2], [\3], [\4], \5/' \
-        -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' >>$trace_m4
-
+        -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' |
   # Now we are ready to run m4 to process the trace file.
+  $M4 $trace_m4 - |
   # It makes no sense to try to transform __oline__.
-  $verbose "Running $M4 $trace_m4" >&2
-  $M4 $trace_m4 |
-    sed '
-      s/@<:@/[/g
-      s/@:>@/]/g
-      s/@S|@/$/g
-      s/@%:@/#/g
-      ' >&4
+  sed '
+    s/@<:@/[/g
+    s/@:>@/]/g
+    s/@S|@/$/g
+    s/@%:@/#/g
+    ' >&4
   ;;
 
 
index 4e010b14a614ad6d575ab8e1860dab66c48b632d..ccfaf80549646fad763e88a1345f9e92b9f7ac4a 100644 (file)
@@ -440,21 +440,19 @@ EOF
   fi
 
   # Run m4 on the input file to get traces.
-  $verbose "Running $run_m4_trace $infile" >&2
+  $verbose "Running $run_m4_trace $infile | $M4 $trace_m4" >&2
   $run_m4_trace $infile 2>&1 >/dev/null |
     sed -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \([^(][^(]*\)(\(.*\)$/AT_\4([\1], [\2], [\3], [\4], \5/' \
-        -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' >>$trace_m4
-
+        -e 's/^m4trace:\([^:][^:]*\):\([0-9][0-9]*\): -\([0-9][0-9]*\)- \(.*\)$/AT_\4([\1], [\2], [\3], [\4])/' |
   # Now we are ready to run m4 to process the trace file.
+  $M4 $trace_m4 - |
   # It makes no sense to try to transform __oline__.
-  $verbose "Running $M4 $trace_m4" >&2
-  $M4 $trace_m4 |
-    sed '
-      s/@<:@/[/g
-      s/@:>@/]/g
-      s/@S|@/$/g
-      s/@%:@/#/g
-      ' >&4
+  sed '
+    s/@<:@/[/g
+    s/@:>@/]/g
+    s/@S|@/$/g
+    s/@%:@/#/g
+    ' >&4
   ;;