configure.ac 919 B

1234567891011121314151617181920212223242526272829
  1. AC_INIT([guile-semver], [0.1.0], [jlicht@fsfe.org])
  2. AC_CONFIG_AUX_DIR([build-aux])
  3. PKG_CHECK_MODULES([GUILE], [guile-2.2])
  4. AM_INIT_AUTOMAKE([color-tests -Wall -Werror foreign])
  5. m4_ifdef([GUILE_PROGS],
  6. [],
  7. [AC_ERROR(could not locate guile aclocal macros)])
  8. GUILE_PKG([2.2 2.0])
  9. GUILE_PROGS
  10. AC_PATH_PROG([GENHTML], [genhtml])
  11. AM_CONDITIONAL([HAVE_GENHTML], [test -n $GENHTML])
  12. AC_CONFIG_FILES([Makefile semver/package-config.scm])
  13. AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
  14. AC_CONFIG_FILES([tools/coverage], [chmod +x tools/coverage])
  15. dnl Prepare a version of $datadir that does not contain references to
  16. dnl shell variables. (Borrowed from Sly, which borrowed from Guix...)
  17. guile_semver_prefix="`eval echo $prefix | sed -e"s|NONE|/usr/local|g"`"
  18. guile_semver_datadir="`eval eval echo $datadir | sed -e "s|NONE|$guile_semver_prefix|g"`"
  19. AC_SUBST([guile_semver_datadir])
  20. AC_OUTPUT