From a9a51698d2b09e8af126c69e51c789c1878f42f5 Mon Sep 17 00:00:00 2001 From: keescook Date: Tue, 3 Oct 2006 04:52:20 +0000 Subject: [PATCH] Update configure.ac to be autoconf 2.60-safe. --- configure.ac | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index fe60bb742..5e15624a9 100644 --- a/configure.ac +++ b/configure.ac @@ -756,15 +756,17 @@ dnl Override the default g_ascii_strtod AC_DEFINE(g_ascii_strtod, fixed_g_ascii_strtod, [Pre-1.107 gstrfuncs.c version of g_ascii_strtod is broken]) dnl Figure out where the datadir actually is -if test "x${datadir}" = 'x${prefix}/share'; then - if test "x${prefix}" = "xNONE"; then - runtime_datadir="${ac_default_prefix}/share" - else - runtime_datadir="${prefix}/share" - fi -else - runtime_datadir="${datadir}" -fi +dnl http://autoconf-archive.cryp.to/ac_define_dir.html +prefix_NONE= +exec_prefix_NONE= +test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix +test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix +dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn +dnl refers to ${prefix}. Thus we have to use `eval' twice. +eval runtime_datadir="${datadir}" +eval runtime_datadir="${runtime_datadir}" +test "$prefix_NONE" && prefix=NONE +test "$exec_prefix_NONE" && exec_prefix=NONE inkscape_sharedir="${runtime_datadir}/${PACKAGE_NAME}" -- 2.30.2