~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_bison.m4

  • Committer: Monty Taylor
  • Date: 2010-10-08 17:32:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1833.
  • Revision ID: mordred@inaugust.com-20101008173200-iq22jo2nic48noa3
Updated pandora-build files to version 0.157

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl Copyright (C) 2010 Monty Taylor
 
2
dnl Copyright (C) 2010 Hartmut Holzgraefe
 
3
dnl This file is free software; Monty Taylor and Hartmut Holzgraefe
 
4
dnl give unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
 
6
 
 
7
AC_DEFUN([_PANDORA_SEARCH_BISON],[
 
8
 
 
9
  dnl --------------------------------------------------------------------
 
10
  dnl  Check for bison
 
11
  dnl --------------------------------------------------------------------
 
12
 
 
13
  AC_CHECK_PROGS(YACC, ['bison -y'], [:])
 
14
  AS_IF([test "x$YACC" = "x:"],[
 
15
    pandora_have_bison=no
 
16
    YACC='if test -f "$@"; then echo "WARNING: no proper bison binary found, ignoring changes to $<"; exit 0; else echo "ERROR: no proper bison binary found"; exit 1; fi;'
 
17
    ],[
 
18
    pandora_have_bison=yes
 
19
    ])
 
20
 
 
21
  AM_CONDITIONAL(HAVE_BISON, [test "x${pandora_have_bison}" = "xyes"])
 
22
])
 
23
 
 
24
AC_DEFUN([PANDORA_HAVE_BISON],[
 
25
  AC_REQUIRE([_PANDORA_SEARCH_BISON])
 
26
])
 
27
 
 
28
AC_DEFUN([PANDORA_REQUIRE_BISON],[
 
29
  AC_REQUIRE([PANDORA_HAVE_BISON])
 
30
  AS_IF([test "x${pandora_have_bison}" = "xno" -a "$pandora_building_from_bzr" = "yes"],
 
31
      AC_MSG_ERROR(["bison is required for ${PACKAGE} to build from a bzr branch"])
 
32
])