~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-27 00:08:52 UTC
  • mfrom: (1241.15.6 pandora-build)
  • mto: This revision was merged to the branch mainline in revision 1258.
  • Revision ID: mordred@inaugust.com-20091227000852-8z4pkicv0qjaupk9
Various build fixes. Fixes out-of-tree builds again (stupid me. gonna set up a hudson job this time) Also fixes the 32-bit solaris build problem. Again. Sigh.

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
])