From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15918 invoked by alias); 2 Feb 2015 11:18:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15895 invoked by uid 89); 2 Feb 2015 11:18:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,LIKELY_SPAM_BODY,SPF_PASS,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=no version=3.3.2 X-HELO: aserp1040.oracle.com Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 02 Feb 2015 11:18:23 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t12BIKha021394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 2 Feb 2015 11:18:21 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t12BIKqd018915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 2 Feb 2015 11:18:20 GMT Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t12BIJrj000844 for ; Mon, 2 Feb 2015 11:18:19 GMT Received: from termi.oracle.com (/10.175.255.144) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 02 Feb 2015 03:18:19 -0800 From: jose.marchesi@oracle.com (Jose E. Marchesi) To: gdb-patches@sourceware.org Subject: Re: [PATCH V4 7/9] Simple testsuite for DTrace USDT probes. References: <1422874968-382-1-git-send-email-jose.marchesi@oracle.com> <1422874968-382-8-git-send-email-jose.marchesi@oracle.com> Date: Mon, 02 Feb 2015 11:18:00 -0000 In-Reply-To: <1422874968-382-8-git-send-email-jose.marchesi@oracle.com> (Jose E. Marchesi's message of "Mon, 2 Feb 2015 12:02:46 +0100") Message-ID: <87r3u8a75n.fsf@oracle.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00022.txt.bz2 Sorry, I forgot to git add the gdb/transform.m4 file. This is the missing bit. diff --git a/gdb/transform.m4 b/gdb/transform.m4 new file mode 100644 index 0000000..d9079af --- /dev/null +++ b/gdb/transform.m4 @@ -0,0 +1,23 @@ +# Copyright (C) 2015 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# GDB_AC_TRANSFORM([PROGRAM], [VAR]) +# +# Transform a tool name to get the installed name of PROGRAM and store +# it in the output variable VAR. +# +# This macro uses the SED command stored in $program_transform_name, +# but it undoes the Makefile-like escaping of $s performed by +# AC_ARG_PROGRAM. + +AC_DEFUN([GDB_AC_TRANSFORM], [ + gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/[\\$][\\$]/\\$/g'` + $2=`echo $1 | sed -e "$gdb_ac_transform"` + if test "x$$2" = x; then + $2=$1 + fi + AC_SUBST($2) +])