lthostflags.m4 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. dnl Copyright (C) 2010 Free Software Foundation, Inc.
  2. dnl This file is free software, distributed under the terms of the GNU
  3. dnl General Public License. As a special exception to the GNU General
  4. dnl Public License, this file may be distributed as part of a program
  5. dnl that contains a configuration script generated by Autoconf, under
  6. dnl the same distribution terms as the rest of that program.
  7. dnl usage: ACX_LT_HOST_FLAGS([default_flags])
  8. dnl Defines and AC_SUBSTs lt_host_flags
  9. AC_DEFUN([ACX_LT_HOST_FLAGS], [
  10. AC_REQUIRE([AC_CANONICAL_SYSTEM])
  11. case $host in
  12. *-cygwin* | *-mingw*)
  13. # 'host' will be top-level target in the case of a target lib,
  14. # we must compare to with_cross_host to decide if this is a native
  15. # or cross-compiler and select where to install dlls appropriately.
  16. if test -n "$with_cross_host" &&
  17. test x"$with_cross_host" != x"no"; then
  18. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  19. else
  20. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  21. fi
  22. ;;
  23. *)
  24. lt_host_flags=[$1]
  25. ;;
  26. esac
  27. AC_SUBST(lt_host_flags)
  28. ])