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


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to