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