8061e7e122830092d759eec744799a3a7981902a
[platform/upstream/automake.git] / m4 / install-sh.m4
1 ##                                                          -*- Autoconf -*-
2 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
3 #
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # serial 8
9
10 # AM_PROG_INSTALL_SH
11 # ------------------
12 # Define $install_sh.
13 AC_DEFUN([AM_PROG_INSTALL_SH],
14 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
15 if test x"${install_sh}" != xset; then
16   case $am_aux_dir in
17   *\ * | *\     *)
18     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
19   *)
20     install_sh="\${SHELL} $am_aux_dir/install-sh"
21   esac
22 fi
23 AC_SUBST([install_sh])])