diff options
author | Jason Parker <jparker@digium.com> | 2011-08-25 15:30:46 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2011-08-25 15:30:46 +0000 |
commit | 00a8f14fb1d794a5379ca35f5328266489343adf (patch) | |
tree | ae6568849442a3c5f5d9ad58c58be16703cc8395 /configure.ac | |
parent | 590391c03846e7bed6d2ade8cefbecd92577c25b (diff) |
Merged revisions 333203 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/10
................
r333203 | qwell | 2011-08-25 10:29:56 -0500 (Thu, 25 Aug 2011) | 15 lines
Merged revisions 333201 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r333201 | qwell | 2011-08-25 10:27:06 -0500 (Thu, 25 Aug 2011) | 8 lines
Fix installation into directories containing spaces.
This also vastly simplifies the logic in sounds/Makefile
(Closes issue ASTERISK-18290)
Reported by: Paul Belanger
Review: https://reviewboard.asterisk.org/r/1379/
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@333204 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 73 |
1 files changed, 1 insertions, 72 deletions
diff --git a/configure.ac b/configure.ac index df7a62d9f..bc945ab0e 100644 --- a/configure.ac +++ b/configure.ac @@ -133,78 +133,6 @@ if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then fi fi -# $HOME is preferred as our substitute path, unless $HOME contains a space -for i in ${HOME} /tmp; do - if test "${i}" = ""; then continue; fi - if test "${i}" = "/"; then continue; fi - __ac_path_has_spaces=`echo $HOME | grep ' '` - if test "$ac_path_has_spaces" = ""; then :; else continue; fi - __ac_substitute_path=${i} - break -done - -AC_PROG_LN_S -__sub_ordinal=1 -MAKE_PREINSTALL="" -MAKE_POSTINSTALL="" - -# It may initially seem a trifle bit excessive to evaluate all of these paths. -# However, consider that many of these may invoke another variable, such as -# ${prefix}, by default, which is not resolved until compile time. If that -# variable contains a space, then each of the dependent variables will also -# contain a space and thus will need the special treatment. -for stdpath in prefix exec_prefix datarootdir datadir includedir infodir libdir libexecdir localstatedir mandir sbindir sharedstatedir sysconfdir astetcdir astsbindir astlibdir astheaderdir astmandir astvarlibdir astspooldir astlogdir astvarrundir astdatadir astdbdir astkeydir; do - eval "__ac_path_sub=\${$stdpath}" - #echo "__ac_path_sub=$__ac_path_sub" - __ac_path_has_var=`sh -c "echo '$__ac_path_sub' | grep '{'"` - if test "$__ac_path_has_var" = ""; then :; else - __ac_path_sub=`echo $__ac_path_sub | sed 's/{/{MAKE_/'` - fi - - __ac_path_has_spaces=`sh -c "echo '$__ac_path_sub' | grep ' '"` - if test "$__ac_path_has_spaces" = ""; then - eval "MAKE_$stdpath=\$__ac_path_sub" - else - # Substitute path for a path without a space - eval "MAKE_$stdpath=\"$__ac_substitute_path/.asterisk_install_path_${__sub_ordinal}\"" - MAKE_POSTINSTALL="${MAKE_POSTINSTALL} rm -f \"$__ac_substitute_path/.asterisk_install_path_${__sub_ordinal}\";" - MAKE_PREINSTALL="${MAKE_PREINSTALL} rm -f \"$__ac_substitute_path/.asterisk_install_path_${__sub_ordinal}\";" - MAKE_PREINSTALL="${MAKE_PREINSTALL} ${LN_S} -f \"\$(DESTDIR)$__ac_path_sub\" \"$__ac_substitute_path/.asterisk_install_path_${__sub_ordinal}\";" - __sub_ordinal=$((${__sub_ordinal}+1)) - fi -done -AC_SUBST(MAKE_PREINSTALL) -AC_SUBST(MAKE_POSTINSTALL) -AC_SUBST(MAKE_prefix) -AC_SUBST(MAKE_exec_prefix) -AC_SUBST(MAKE_datarootdir) -AC_SUBST(MAKE_datadir) -AC_SUBST(MAKE_includedir) -AC_SUBST(MAKE_infodir) -AC_SUBST(MAKE_libdir) -AC_SUBST(MAKE_libexecdir) -AC_SUBST(MAKE_localstatedir) -AC_SUBST(MAKE_mandir) -AC_SUBST(MAKE_sbindir) -AC_SUBST(MAKE_sharedstatedir) -AC_SUBST(MAKE_sysconfdir) -AC_SUBST(MAKE_astetcdir) -AC_SUBST(MAKE_astsbindir) -AC_SUBST(MAKE_astlibdir) -AC_SUBST(MAKE_astheaderdir) -AC_SUBST(MAKE_astmandir) -AC_SUBST(MAKE_astvarlibdir) -AC_SUBST(MAKE_astspooldir) -AC_SUBST(MAKE_astlogdir) -AC_SUBST(MAKE_astvarrundir) -AC_SUBST(MAKE_astdatadir) -AC_SUBST(MAKE_astdbdir) -AC_SUBST(MAKE_astkeydir) - -test "x$MAKE_prefix" = xNONE && MAKE_prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$MAKE_exec_prefix" = xNONE && MAKE_exec_prefix='${prefix}' - BUILD_PLATFORM=${build} BUILD_CPU=${build_cpu} BUILD_VENDOR=${build_vendor} @@ -299,6 +227,7 @@ AC_PROG_CXXCPP AST_PROG_LD # note, does not work on FreeBSD AC_PROG_AWK AC_PROG_INSTALL +AC_PROG_LN_S AC_PROG_RANLIB AST_CHECK_GNU_MAKE AC_PROG_EGREP |