You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
622 B

  1. dnl @synopsis XERCES_LINK_DARWIN_FRAMEWORK
  2. dnl
  3. dnl Adds the specified framework to LIBS if it's not already there.
  4. dnl
  5. dnl @category C
  6. dnl @author James Berry
  7. dnl @version 2005-02-20
  8. dnl @license AllPermissive
  9. dnl
  10. dnl $Id: xerces_link_darwin_framework.m4 190921 2005-06-16 14:18:12Z jberry $
  11. AC_DEFUN([XERCES_LINK_DARWIN_FRAMEWORK], [
  12. case $host_os in
  13. darwin*)
  14. test -z "${xerces_darwin_frameworks}" && xerces_darwin_frameworks="-"
  15. case ${xerces_darwin_frameworks} in
  16. *-$1-*)
  17. ;;
  18. *)
  19. xerces_darwin_frameworks="-$1${xerces_darwin_frameworks}"
  20. LIBS="-Wl,-framework -Wl,$1 $LIBS"
  21. ;;
  22. esac
  23. ;;
  24. esac
  25. ])