X-Git-Url: https://jxself.org/git/?p=mudsync.git;a=blobdiff_plain;f=configure.ac;h=2fb1d62d5976afa66a92516c2581d3a37490e301;hp=34ed107a52977ce384a8aaf57c5f308ed8789513;hb=669edc75ebfbb547053f4aa0a67be6c3754ccb65;hpb=095dde9158621c8bb3d690feaa0d525a76342eb9 diff --git a/configure.ac b/configure.ac index 34ed107..2fb1d62 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,13 @@ m4_ifdef([GUILE_PROGS], GUILE_PROGS -AC_CONFIG_FILES([Makefile]) -AC_CONFIG_FILES([env], [chmod +x env]) +dnl Prepare a version of $datadir that does not contain references to +dnl shell variables. (Borrowed from Sly, which borrowed from Guix...) +package_prefix="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`" +package_datadir="`eval eval echo $datadir | sed -e "s|NONE|$package_prefix|g"`" +AC_SUBST([package_datadir]) + + +AC_CONFIG_FILES([Makefile mudsync/package-config.scm]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) AC_OUTPUT