]> git.draconx.ca Git - cdecl99.git/blobdiff - configure.ac
Skip Bison api.token.raw probe if Bison is not found.
[cdecl99.git] / configure.ac
index 0b23f6b5695b12315253f2abbc91157a2fd03059..4e9262ea33684d30963580bc4aaa37b377d2c4fa 100644 (file)
@@ -67,13 +67,6 @@ DX_GLSYM_PREFIX([cdecl__gl_])
 DX_GNULIB_SYMFILES([lib/symfiles], [s])
 AM_CONDITIONAL([BUILD_STATIC], [test x"$enable_static" = x"yes"])
 
-dnl We provide our own makefile rules for gettext.  Disable tracing of
-dnl AM_GNU_GETTEXT to prevent autoreconf from running autopoint, and to
-dnl prevent automake from growing gratuitous error conditions.
-m4_traceoff([AM_GNU_GETTEXT])
-AM_GNU_GETTEXT([external])
-DX_LINGUAS
-
 AM_CONDITIONAL([USE_NLS], [test x"$USE_NLS" = x"yes"])
 
 DX_PROG_FLEX([], [have_flex=yes], [have_flex=no])
@@ -92,9 +85,8 @@ AS_IF([test x"$dx_cv_bison_warn_no_deprecated" = x"yes"],
   [AS_VAR_APPEND([BISON_COMPAT], ["${BISON_COMPAT:+ }-Wno-deprecated"])])
 AC_SUBST([BISON_COMPAT])
 
-AS_IF([test x"$dx_cv_bison_define_cmdline" != x"yes"],
-  [dx_cv_bison_api_token_raw=no])
-AC_CACHE_CHECK([whether $BISON supports api.token.raw],
+AS_CASE([$dx_cv_bison_define_cmdline], [yes],
+[AC_CACHE_CHECK([whether $BISON supports api.token.raw],
   [dx_cv_bison_api_token_raw], [dx_cv_bison_api_token_raw=no
 cat >conftest.y <<'EOF'
 %token T_TEST
@@ -109,8 +101,8 @@ AS_IF([$BISON --define api.token.raw conftest.y >&AS_MESSAGE_LOG_FD 2>&1],
 [AC_COMPUTE_INT([testval], [T_TEST], [#include "conftest.tab.c"
 ])
 AS_IF([test "$testval" -lt 256], [dx_cv_bison_api_token_raw=yes])])])
-AS_IF([test x"$dx_cv_bison_api_token_raw" = x"yes"],
-  [AS_VAR_APPEND([BISON_COMPAT], [" --define api.token.raw"])])
+AS_CASE([$dx_cv_bison_api_token_raw], [yes],
+  [AS_VAR_APPEND([BISON_COMPAT], [" --define api.token.raw"])])])
 
 AH_TOP([#include <conf_pre.h>])
 AH_BOTTOM([#include <conf_post.h>])