]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
gettext.m4: Simplify after gnulib changed.
authorBruno Haible <bruno@clisp.org>
Thu, 26 Sep 2024 00:34:22 +0000 (02:34 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 26 Sep 2024 11:12:13 +0000 (13:12 +0200)
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): Invoke
gl_BUILD_TO_HOST_LOCALEDIR.

gettext-runtime/m4/gettext.m4

index 8cd3890b2c8b9078075a2437af86f13ecfd2c076..c8580c95fa7c5b81a5cb4bd8929eac0cebb7b3c7 100644 (file)
@@ -1,5 +1,5 @@
 # gettext.m4
-# serial 79 (gettext-0.23)
+# serial 80 (gettext-0.23)
 dnl Copyright (C) 1995-2014, 2016, 2018-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,
@@ -365,21 +365,7 @@ return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
   AC_SUBST([POSUB])
 
   dnl Define localedir_c and localedir_c_make.
-  dnl Find the final value of localedir.
-  gt_saved_prefix="${prefix}"
-  gt_saved_datarootdir="${datarootdir}"
-  gt_saved_localedir="${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"
-  gl_BUILD_TO_HOST([localedir])
-  localedir="${gt_saved_localedir}"
-  datarootdir="${gt_saved_datarootdir}"
-  prefix="${gt_saved_prefix}"
+  gl_BUILD_TO_HOST_LOCALEDIR
 ])