autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking for scripting languages.


From: John Calcote
Subject: Re: Checking for scripting languages.
Date: Tue, 28 Apr 2009 14:37:58 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2

Tommy,

On 4/28/2009 2:16 PM, Tommy Nordgren wrote:
I need to check for scripting languages (ruby, perl , python 2.x , python 3.0) and generating a script file
depending on what's available.
I do this in the following way
if ruby is available:
cp collect.rb collect && chmod +x collect
if perl is available:
cp collect.rb collect && chmod +x collect
eg.,

AC_ARG_VAR([RUBY]) # optional - adds RUBY to 'influential variables' in configure --help
AC_CHECK_PROGS([RUBY], [ruby])
if test "x$RUBY" != x; then
  cp collect.rb collect && chmod +x collect
fi

You can use the $(RUBY) variable to run the located RUBY interpret from within your Makefile.am or Makefile.in files.

Regards,
John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]