~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_r.m4

  • Committer: Monty Taylor
  • Date: 2008-09-16 00:00:48 UTC
  • mto: This revision was merged to the branch mainline in revision 391.
  • Revision ID: monty@inaugust.com-20080916000048-3rvrv3gv9l0ad3gs
Fixed copyright headers in drizzled/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
dnl   
4
 
dnl pandora-build: A pedantic build system
5
 
dnl Copyright (C) 2009 Sun Microsystems, Inc.
6
 
dnl This file is free software; Sun Microsystems
7
 
dnl gives unlimited permission to copy and/or distribute it,
8
 
dnl with or without modifications, as long as this notice is preserved.
9
 
dnl
10
 
dnl From Monty Taylor
11
 
 
12
 
AC_DEFUN([PANDORA_WITH_R],[
13
 
    dnl Check for GNU R
14
 
    AC_ARG_WITH([r], 
15
 
    [AS_HELP_STRING([--with-r],
16
 
      [Build R Bindings @<:@default=yes@:>@])],
17
 
    [with_r=$withval], 
18
 
    [with_r=yes])
19
 
 
20
 
  AS_IF([test "x$with_r" != "xno"],[
21
 
 
22
 
    PKG_CHECK_MODULES([R], [libR], [
23
 
      with_r=yes
24
 
    ],[
25
 
      with_r=no
26
 
    ])
27
 
 
28
 
   AC_SUBST(R_CFLAGS)
29
 
   AC_SUBST(R_LIBS)
30
 
  ])
31
 
  AM_CONDITIONAL(BUILD_R, test "$with_r" = "yes")
32
 
 
33
 
])