~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_python3.m4

  • Committer: Jay Pipes
  • Date: 2009-08-25 12:56:22 UTC
  • mfrom: (1093.9.25 pandora-build)
  • mto: This revision was merged to the branch mainline in revision 1125.
  • Revision ID: jpipes@serialcoder-20090825125622-sxxkax9mw5bn98y5
Merging pandora build fixes with support for automake 1.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
  AC_ARG_WITH([python3], 
17
17
    [AS_HELP_STRING([--with-python3],
18
 
      [Build Python3 Bindings @<:@default=yes@:>@])],
19
 
    [with_python3=$withval], 
20
 
    [with_python3=yes])
 
18
      [Build Python3 Bindings @<:@default=yes@:>@])],[
 
19
        with_python3=$withval
 
20
        python3_requested=yes
 
21
      ],[ 
 
22
        with_python3=yes
 
23
        python3_requested=no
 
24
      ])
21
25
 
22
 
  AS_IF([test "x$ac_cv_swig_has_python3_" != "xno"],[
 
26
  AS_IF([test "x$ac_cv_swig_has_python3_" != "xyes"],[
 
27
     with_python3=no
 
28
  ],[
23
29
   AS_IF([test "x$with_python3" != "xno"],[
24
30
     AS_IF([test "x$with_python3" != "xyes"],
25
 
       [PYTHON3=$with_python3],
26
 
       [AC_PATH_PROG([PYTHON3],[python3],[no])
27
 
        AS_IF([test "x$PYTHON3" = "xno"],
28
 
          [with_python3=no])
 
31
       [PYTHON3=$with_python3],[
 
32
        AC_PATH_PROG([PYTHON3],[python3],[no])
 
33
        PANDORA_PYTHON3_DEVEL()
 
34
        AS_IF([test "x$python3exists" = "xno"],[with_python="no"])
29
35
     ]) 
30
36
   ])
31
 
  ],[
32
 
     with_python3=no
33
 
  ])
34
 
AM_CONDITIONAL(BUILD_PYTHON3, [test "$with_python3" = "yes"])
 
37
  ])
 
38
  AS_IF([test "x$with_python3" = "xno" -a "$python3_requested" = "yes"],[
 
39
    AC_MSG_ERROR([Python3 support was explicity requested, but Python3 support
 
40
                  was not found. Please correct your build environment and try
 
41
                  again])
 
42
  ])
 
43
  AM_CONDITIONAL(BUILD_PYTHON3, [test "$with_python3" = "yes"])
35
44
])