~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_python.m4

  • Committer: Monty Taylor
  • Date: 2009-12-25 02:37:09 UTC
  • mto: (1253.2.3 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1258.
  • Revision ID: mordred@inaugust.com-20091225023709-r5xr0agiyzyfbhin
pandora-buildĀ v0.88

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  AC_ARG_WITH([python], 
16
16
    [AS_HELP_STRING([--with-python],
17
17
      [Build Python Bindings @<:@default=yes@:>@])],
18
 
    [with_python=$withval], 
19
 
    [with_python=yes])
 
18
    [with_python=$withval
 
19
     python_requested=$withval
 
20
    ], 
 
21
    [with_python=yes
 
22
     python_requested=no
 
23
    ])
20
24
 
21
25
  AS_IF([test "x$with_python" != "xno"],[
22
26
    AS_IF([test "x$with_python" != "xyes"],[PYTHON=$with_python])
24
28
    AC_PYTHON_DEVEL()
25
29
    AS_IF([test "x$pythonexists" = "xno"],[with_python="no"])
26
30
  ])
 
31
  AS_IF([test "x$with_python" = "xno" -a "$python_requested" = "yes"],[
 
32
    AC_MSG_ERROR([Python support was explicity requested, but Python support
 
33
                  was not found. Please correct your build environment and try
 
34
                  again])
 
35
  ])
27
36
  AM_CONDITIONAL(BUILD_PYTHON, [test "$with_python" = "yes"])
28
37
])