From: Jason Parker Date: Wed, 11 Mar 2009 22:18:42 +0000 (+0000) Subject: Allow prefix to set localstatedir (when used and different from the default). X-Git-Tag: 1.4.25-rc1~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e809699406725dd3ba04252f866d502ed8058840;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@181436 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/configure b/configure index 72147caadb..30a3f98bb7 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac Revision: 177160 . +# From configure.ac Revision: 180941 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for asterisk 1.4. # @@ -3974,8 +3974,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} diff --git a/configure.ac b/configure.ac index f00edc4717..8282f9f5f5 100644 --- a/configure.ac +++ b/configure.ac @@ -38,8 +38,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}