env.in 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/bin/sh
  2. # fibers
  3. # Copyright (C) 2016 Andy Wingo <wingo@pobox.com>
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as
  7. # published by the Free Software Foundation, either version 3 of the
  8. # License, or (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. # Lesser General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Lesser General Public
  16. # License along with this program. If not, see
  17. # <http://www.gnu.org/licenses/>.
  18. if test "$GUILE_LOAD_PATH" = ""; then
  19. GUILE_LOAD_PATH=@abs_top_srcdir@
  20. else
  21. GUILE_LOAD_PATH=@abs_top_srcdir@:$GUILE_LOAD_PATH
  22. fi
  23. if test "@abs_top_srcdir@" != "@abs_top_builddir@"; then
  24. GUILE_LOAD_PATH=@abs_top_builddir@:$GUILE_LOAD_PATH
  25. fi
  26. if test "$GUILE_LOAD_COMPILED_PATH" = ""; then
  27. GUILE_LOAD_COMPILED_PATH=@abs_top_builddir@
  28. else
  29. GUILE_LOAD_COMPILED_PATH=@abs_top_builddir@:$GUILE_LOAD_COMPILED_PATH
  30. fi
  31. if test "$LTDL_LIBRARY_PATH" = ""; then
  32. LTDL_LIBRARY_PATH=@abs_top_builddir@/.libs
  33. else
  34. LTDL_LIBRARY_PATH=@abs_top_builddir@/.libs:$LTDL_LIBRARY_PATH
  35. fi
  36. if test "$PATH" = ""; then
  37. PATH="@abs_top_srcdir@/bin"
  38. else
  39. PATH="@abs_top_srcdir@/bin":$PATH
  40. fi
  41. FIBERS_BUILD_DIR=@abs_top_builddir@
  42. export GUILE_LOAD_PATH
  43. export GUILE_LOAD_COMPILED_PATH
  44. export LTDL_LIBRARY_PATH
  45. export PATH
  46. export FIBERS_BUILD_DIR
  47. exec "$@"