]> Savannah Git Hosting - gnulib.git/commitdiff
bison-i18n: Ensure BISON_LOCALEDIR_c expands to a C string.
authorBruno Haible <bruno@clisp.org>
Wed, 4 Dec 2024 22:18:17 +0000 (23:18 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 4 Dec 2024 22:18:17 +0000 (23:18 +0100)
Reported by Holger Hoffstätte via Sam James <sam@gentoo.org>.

* m4/bison-i18n.m4 (BISON_I18N): Define BISON_LOCALEDIR_c and
BISON_LOCALEDIR_c_make in the usual way even when BISON_LOCALEDIR
expands to empty.

ChangeLog
m4/bison-i18n.m4

index 48e2a3299d1d2673a610e4c1680da7fe03699b0a..88264000de8b8950d132c40415d99abc956f35fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-12-04  Bruno Haible  <bruno@clisp.org>
+
+       bison-i18n: Ensure BISON_LOCALEDIR_c expands to a C string.
+       Reported by Holger Hoffstätte via Sam James <sam@gentoo.org>.
+       * m4/bison-i18n.m4 (BISON_I18N): Define BISON_LOCALEDIR_c and
+       BISON_LOCALEDIR_c_make in the usual way even when BISON_LOCALEDIR
+       expands to empty.
+
 2024-12-03  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Optimize --extract-recursive-dependencies.
index 3cf0848ca27702546fc9421cb55e41495743c45f..e5433a686a48d3c989eb3cd98287974504fd7093 100644 (file)
@@ -1,5 +1,5 @@
 # bison-i18n.m4
-# serial 5
+# serial 6
 dnl Copyright (C) 2005-2006, 2009-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -57,27 +57,28 @@ AC_DEFUN([BISON_I18N],
       fi
     fi
     AC_SUBST([BISON_LOCALEDIR])
+  fi
 
-    dnl Define BISON_LOCALEDIR_c and BISON_LOCALEDIR_c_make.
-    dnl Find the final value of BISON_LOCALEDIR.
-    gl_saved_prefix="${prefix}"
-    gl_saved_datarootdir="${datarootdir}"
-    gl_saved_localedir="${localedir}"
-    gl_saved_bisonlocaledir="${BISON_LOCALEDIR}"
-    dnl Unfortunately, prefix gets only finally determined at the end of
-    dnl configure.
-    if test "X$prefix" = "XNONE"; then
-      prefix="$ac_default_prefix"
-    fi
-    eval datarootdir="$datarootdir"
-    eval localedir="$localedir"
-    eval BISON_LOCALEDIR="$BISON_LOCALEDIR"
-    gl_BUILD_TO_HOST([BISON_LOCALEDIR])
-    BISON_LOCALEDIR="${gl_saved_bisonlocaledir}"
-    localedir="${gl_saved_localedir}"
-    datarootdir="${gl_saved_datarootdir}"
-    prefix="${gl_saved_prefix}"
+  dnl Define BISON_LOCALEDIR_c and BISON_LOCALEDIR_c_make.
+  dnl Find the final value of BISON_LOCALEDIR.
+  gl_saved_prefix="${prefix}"
+  gl_saved_datarootdir="${datarootdir}"
+  gl_saved_localedir="${localedir}"
+  gl_saved_bisonlocaledir="${BISON_LOCALEDIR}"
+  dnl Unfortunately, prefix gets only finally determined at the end of
+  dnl configure.
+  if test "X$prefix" = "XNONE"; then
+    prefix="$ac_default_prefix"
   fi
+  eval datarootdir="$datarootdir"
+  eval localedir="$localedir"
+  eval BISON_LOCALEDIR="$BISON_LOCALEDIR"
+  gl_BUILD_TO_HOST([BISON_LOCALEDIR])
+  BISON_LOCALEDIR="${gl_saved_bisonlocaledir}"
+  localedir="${gl_saved_localedir}"
+  datarootdir="${gl_saved_datarootdir}"
+  prefix="${gl_saved_prefix}"
+
   if test $BISON_USE_NLS = yes; then
     AC_DEFINE([YYENABLE_NLS], [1],
       [Define to 1 to internationalize bison runtime messages.])