2011-09-14 Bruno Haible <bruno@clisp.org>
+ Avoid using #, the m4 comment starter character, near brackets.
+ * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
+ delimiter character in sed expressions.
+ * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
+ Suggested by Eric Blake.
+
Properly quote AC_CHECK_DECLS' 4th argument.
* m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
argument.
-# absolute-header.m4 serial 14
+# absolute-header.m4 serial 15
dnl Copyright (C) 2006-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,
gl_dirsep_regex='/'
;;
esac
-changequote([,])
- gl_absolute_header_sed='\#'"${gl_dirsep_regex}"'$1#{
- s#.*"\(.*'"${gl_dirsep_regex}"'$1\)".*#\1#
- s#^/[^/]#//&#
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'$1|{
+ s|.*"\(.*'"${gl_dirsep_regex}"'$1\)".*|\1|
+ s|^/[^/]|//&|
p
q
}'
+changequote([,])
dnl eval is necessary to expand gl_absname_cpp.
dnl Ultrix and Pyramid sh refuse to redirect output of eval,
dnl so use subshell.
-# include_next.m4 serial 21
+# include_next.m4 serial 22
dnl Copyright (C) 2006-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,
;;
esac
changequote([,])
- gl_absolute_header_sed='\#'"${gl_dirsep_regex}"']m4_defn([gl_HEADER_NAME])[#{
- s#.*"\(.*'"${gl_dirsep_regex}"']m4_defn([gl_HEADER_NAME])[\)".*#\1#
- s#^/[^/]#//&#
+ gl_absolute_header_sed='\|'"${gl_dirsep_regex}"']m4_defn([gl_HEADER_NAME])[|{
+ s|.*"\(.*'"${gl_dirsep_regex}"']m4_defn([gl_HEADER_NAME])[\)".*|\1|
+changequote(,)dnl
+ s|^/[^/]|//&|
+changequote([,])dnl
p
q
}'