From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4f4c469cec8ba9e8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 12 Nov 2005 07:58:55 -0600 Date: Sat, 12 Nov 2005 08:59:16 -0500 From: Jeff Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Detecting version of installed GNAT References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-vScU6dxUX6oS08ipeXNwcchELuAF1jv6uH/Btg2PWEriIZzqX68ryAGQ5ueO+98v39Xa5yMGdXvNfI4!UmDymRpPdboGLPo8ikgX5EEeXLG0kBr2WfDKv6yDaoJdhjjKsXeqzgTOu+zRjdiYJL+Sjlevjw== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:6349 Date: 2005-11-12T08:59:16-05:00 List-Id: Marc A. Criley wrote: > I'm looking for suggestions for programatically determining what version > of GNAT is installed on a system. > > I'd hoped there was something like "gnatmake -v" that would just display > a version string, but gnatmake doesn't have that feature. I could use > "gcc -v" and then deduce from its version what version of GNAT was > installed, but I'd prefer something more closely tied to GNAT itself. > And since some distributions of gnat use "gnatcc" instead of "gcc", I'd > have to account for that as well. > > It looks like I could compile a small file and then look at its .ali > file, since that contains a compiler version string, but I'd still like > to see something a little more direct. > > Thanks for any suggestions. > > -- Marc A. Criley > -- McKae Technologies > -- www.mckae.com > -- DTraq - XPath In Ada - XML EZ Out > Perhaps something like gnatlink -v | grep GNATLINK There is info in that for both FSF derived versions and GNAT GPL versions...Though its form is pretty different in each case.