s48_ldflags.m4 753 B

12345678910111213141516171819202122232425262728293031323334
  1. ### s48_ldflags.m4 --- S48_LDFLAGS macro -*- Autoconf -*-
  2. # serial 1
  3. dnl
  4. dnl
  5. dnl
  6. dnl -rdynamic is needed for loading external code
  7. AC_DEFUN([S48_LDFLAGS], [dnl
  8. AC_MSG_CHECKING([-rdynamic])
  9. oldLDFLAGS="$LDFLAGS"
  10. LDFLAGS="$LDFLAGS -rdynamic"
  11. AC_TRY_RUN([int main() { return 0;}],
  12. [AC_MSG_RESULT(yes)],
  13. [AC_MSG_RESULT(no)
  14. LDFLAGS="$oldLDFLAGS"],
  15. [AC_MSG_RESULT(no)
  16. LDFLAGS="$oldLDFLAGS"])
  17. AC_MSG_CHECKING([LDFLAGS_VM])
  18. case "$host_os" in
  19. aix* )
  20. if test "$GCC" = "yes"; then
  21. LDFLAGS_VM="-Xlinker -brtl -Xlinker -bE:$srcdir/c/scheme48.exp"
  22. else
  23. LDFLAGS_VM="-brtl -bE:$srcdir/c/scheme48.exp"
  24. fi
  25. ;;
  26. * )
  27. LDFLAGS_VM=
  28. ;;
  29. esac
  30. AC_MSG_RESULT([$LDFLAGS_VM])
  31. AC_SUBST(LDFLAGS_VM)
  32. ])dnl
  33. ### s48_ldflags.m4 ends here