aboutsummaryrefslogtreecommitdiff
path: root/am/quoting.m4
diff options
context:
space:
mode:
Diffstat (limited to 'am/quoting.m4')
-rw-r--r--am/quoting.m432
1 files changed, 32 insertions, 0 deletions
diff --git a/am/quoting.m4 b/am/quoting.m4
new file mode 100644
index 0000000..1378efb
--- /dev/null
+++ b/am/quoting.m4
@@ -0,0 +1,32 @@
1# This file is part of GNU cpio
2# Copyright (C) 2016 Free Software Foundation
3#
4# GNU cpio is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# GNU cpio is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with GNU cpio. If not, see <http://www.gnu.org/licenses/>.
16
17# CPIO_DEFAULT_QUOTING_STYLE(style) - set default style for the gnulib
18# quotearg module.
19m4_define([QUOTING_STYLES],dnl
20 [literal|shell|shell-always|c|escape|locale|clocale])
21AC_DEFUN([CPIO_DEFAULT_QUOTING_STYLE],[
22 DEFAULT_QUOTING_STYLE="$1"
23 AC_ARG_VAR([DEFAULT_QUOTING_STYLE],
24 [Set the default quoting style. Allowed values are: ] m4_bpatsubst(QU
25OTING_STYLES,[|], [[, ]]) [. Default is "escape".])
26 case $DEFAULT_QUOTING_STYLE in
27QUOTING_STYLES) ;;
28*) AC_MSG_ERROR(Invalid quoting style);;
29esac
30 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
31 AC_DEFINE_UNQUOTED(DEFAULT_QUOTING_STYLE, $DEFAULT_QUOTING_STYLE,
32 [Define to a default quoting style (see lib/quoteargs.c for the list)])])

Return to:

Send suggestions and report system problems to the System administrator.