From 0010a2d50e7b8816118f3530b098d76c221eccf5 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 18 Oct 2018 03:03:59 +0200 Subject: [PATCH] examples: hello-tcl*: Fix runtime error. * gettext-tools/examples/hello-tcl*/configure.ac: Ensure pkgdatadir is an absolute file name without variable references. --- gettext-tools/examples/hello-tcl-tk/configure.ac | 8 +++++++- gettext-tools/examples/hello-tcl/configure.ac | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gettext-tools/examples/hello-tcl-tk/configure.ac b/gettext-tools/examples/hello-tcl-tk/configure.ac index 786f9b7a3..afe18a286 100644 --- a/gettext-tools/examples/hello-tcl-tk/configure.ac +++ b/gettext-tools/examples/hello-tcl-tk/configure.ac @@ -24,7 +24,13 @@ else fi save_prefix="$prefix" prefix="$final_prefix" -eval "pkgdatadir=\"${datadir}/${PACKAGE}\"" +save_datarootdir="$datarootdir" +eval "datarootdir=\"${datarootdir}\"" +save_datadir="$datadir" +eval "datadir=\"${datadir}\"" +pkgdatadir="${datadir}/${PACKAGE}" +datadir="$save_datadir" +datarootdir="$save_datarootdir" prefix="$save_prefix" AC_SUBST(pkgdatadir) diff --git a/gettext-tools/examples/hello-tcl/configure.ac b/gettext-tools/examples/hello-tcl/configure.ac index 30538b859..5de9a0771 100644 --- a/gettext-tools/examples/hello-tcl/configure.ac +++ b/gettext-tools/examples/hello-tcl/configure.ac @@ -24,7 +24,13 @@ else fi save_prefix="$prefix" prefix="$final_prefix" -eval "pkgdatadir=\"${datadir}/${PACKAGE}\"" +save_datarootdir="$datarootdir" +eval "datarootdir=\"${datarootdir}\"" +save_datadir="$datadir" +eval "datadir=\"${datadir}\"" +pkgdatadir="${datadir}/${PACKAGE}" +datadir="$save_datadir" +datarootdir="$save_datarootdir" prefix="$save_prefix" AC_SUBST(pkgdatadir) -- 2.47.3