diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-11 22:23:48 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-11 22:23:48 +0000 |
commit | 365dbc46c0b873be04543ee1429f420565ac5307 (patch) | |
tree | fbe4c61b20d6dcb2dc957f05fdf3b2a74caf8c49 /configure.ac | |
parent | 6fc09af2700d0826aa209e6b86ec596dec49659c (diff) |
Merged revisions 181444 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r181444 | qwell | 2009-03-11 17:20:13 -0500 (Wed, 11 Mar 2009) | 11 lines
Merged revisions 181436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r181436 | qwell | 2009-03-11 17:18:42 -0500 (Wed, 11 Mar 2009) | 4 lines
Allow prefix to set localstatedir (when used and different from the default).
This is similar to the /etc change that was made for the non-FreeBSD case.
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@181457 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 89d7cbfdd..6c07fa4bb 100644 --- a/configure.ac +++ b/configure.ac @@ -45,8 +45,10 @@ case "${host_os}" in ;; esac -if test ${localstatedir} = '${prefix}/var'; then - localstatedir=/var +if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then + if test ${localstatedir} = '${prefix}/var'; then + localstatedir=/var + fi fi BUILD_PLATFORM=${build} |