From: Bruno Haible Date: Thu, 18 Oct 2018 01:03:59 +0000 (+0200) Subject: examples: hello-tcl*: Fix runtime error. X-Git-Tag: v0.20~335 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0010a2d50e7b8816118f3530b098d76c221eccf5;p=thirdparty%2Fgettext.git examples: hello-tcl*: Fix runtime error. * gettext-tools/examples/hello-tcl*/configure.ac: Ensure pkgdatadir is an absolute file name without variable references. --- 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)