dnl acx_m4_list_to_quoted_strings.m4 --- expand m4 quoted list to dnl shell list of quoted strings dnl dnl Copyright (C) 2019 Thomas Jahns dnl dnl Version: 1.0 dnl Author: Thomas Jahns dnl Keywords: dnl Maintainer: Thomas Jahns dnl URL: https://swprojects.dkrz.de/redmine/projects/scales-ppm dnl dnl Redistribution and use in source and binary forms, with or without dnl modification, are permitted provided that the following conditions are dnl met: dnl dnl Redistributions of source code must retain the above copyright notice, dnl this list of conditions and the following disclaimer. dnl dnl Redistributions in binary form must reproduce the above copyright dnl notice, this list of conditions and the following disclaimer in the dnl documentation and/or other materials provided with the distribution. dnl dnl Neither the name of the DKRZ GmbH nor the names of its contributors dnl may be used to endorse or promote products derived from this software dnl without specific prior written permission. dnl dnl THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS dnl IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED dnl TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A dnl PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER dnl OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR dnl PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF dnl LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING dnl NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS dnl SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. dnl dnl ACX_M4_LIST_TO_QUOTED_STRINGS dnl expand m4 quoted list to shell list of quoted strings dnl e.g. converts dnl [[a],[b]] to "a" "b" m4_define([_ACX_M4_LIST_TO_QUOTED_STRINGS], [m4_cond([$#],[0],,[$#],[1],["$1"], ["$1" _ACX_M4_LIST_TO_QUOTED_STRINGS(m4_shift($@))])])dnl AC_DEFUN([ACX_M4_LIST_TO_QUOTED_STRINGS], [_ACX_M4_LIST_TO_QUOTED_STRINGS(m4_unquote([$1]))]) dnl dnl Local Variables: dnl mode: autoconf dnl license-project-url: "https://swprojects.dkrz.de/redmine/projects/scales-ppm" dnl license-default: "bsd" dnl End: