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