]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow prefix to set localstatedir (when used and different from the default).
authorJason Parker <jparker@digium.com>
Wed, 11 Mar 2009 22:18:42 +0000 (22:18 +0000)
committerJason Parker <jparker@digium.com>
Wed, 11 Mar 2009 22:18:42 +0000 (22:18 +0000)
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

configure
configure.ac

index 72147caadb2aa27744dd9af8fde2581364d2af6c..30a3f98bb70ab731ac7b7bc7627260e11443565f 100755 (executable)
--- 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}
index f00edc4717f9c271ee939f092564c144c7dc2e2c..8282f9f5f5839771869465f5b1f34ea45a761225 100644 (file)
@@ -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}