toolexeclibdir.m4 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. dnl toolexeclibdir override support.
  2. dnl Copyright (C) 2020 Free Software Foundation, Inc.
  3. dnl
  4. dnl This program is free software; you can redistribute it and/or modify
  5. dnl it under the terms of the GNU General Public License as published by
  6. dnl the Free Software Foundation; either version 3, or (at your option)
  7. dnl any later version.
  8. dnl
  9. dnl This program is distributed in the hope that it will be useful,
  10. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. dnl GNU General Public License for more details.
  13. dnl
  14. dnl You should have received a copy of the GNU General Public License
  15. dnl along with this program; see the file COPYING3. If not see
  16. dnl <http://www.gnu.org/licenses/>.
  17. AC_DEFUN([GCC_WITH_TOOLEXECLIBDIR],
  18. [AC_ARG_WITH(toolexeclibdir,
  19. [AS_HELP_STRING([--with-toolexeclibdir=DIR],
  20. [install libraries built with a cross compiler within DIR])],
  21. [dnl
  22. case ${with_toolexeclibdir} in
  23. /)
  24. ;;
  25. */)
  26. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  27. ;;
  28. esac],
  29. [with_toolexeclibdir=no])
  30. ])