about summary refs log tree commit diff
path: root/zshconfig.ac
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-09-15 09:20:20 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-09-15 09:20:20 +0000
commit49b25bc3d2068df8972b4410f80eef418db11582 (patch)
tree9a527a414aafb23ee9327caca0862e54e2941614 /zshconfig.ac
parent3efb2ec3948910bbcf004dcddae0afcf46603ee6 (diff)
downloadzsh-49b25bc3d2068df8972b4410f80eef418db11582.tar.gz
zsh-49b25bc3d2068df8972b4410f80eef418db11582.tar.xz
zsh-49b25bc3d2068df8972b4410f80eef418db11582.zip
Vin Shelton: 19073: Replace C++-style comment.
Vin Shelton: 19038: Make sed grok icc's cpp output.
Diffstat (limited to 'zshconfig.ac')
-rw-r--r--zshconfig.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/zshconfig.ac b/zshconfig.ac
index 48bb3c069..dbc19b87c 100644
--- a/zshconfig.ac
+++ b/zshconfig.ac
@@ -1081,7 +1081,8 @@ dnl The backslash substitution is to persuade cygwin to cough up
 dnl slashes rather than doubled backslashes in the path.
 echo "#include <signal.h>" > nametmp.c
 sigfile_list="`$CPP nametmp.c |
-sed -n 's/^#[ 	].*\"\(.*\)\"/\1/p' |
+sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
+       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
 $AWK '{ if (\$1 ~ \"sig\") files[[\$1]] = \$1 }
   END { for (var in files) print var }'`"
@@ -1128,7 +1129,8 @@ dnl The backslash substitution is to persuade cygwin to cough up
 dnl slashes rather than doubled backslashes in the path.
 echo "#include <errno.h>" > nametmp.c
 errfile_list="`$CPP nametmp.c |
-sed -n 's/^#[ 	].*\"\(.*\)\"/\1/p' |
+sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
+       -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
 $AWK '{ if (\$1 ~ \"err\") files[[\$1]] = \$1 }
   END { for (var in files) print var }'`"