From: Jason Parker Date: Thu, 27 Jan 2011 17:01:24 +0000 (+0000) Subject: Merged revisions 304464 via svnmerge from X-Git-Tag: 1.6.2.18-rc1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6985c71dad40b9d6ff885dca4d844e9b18e2534;p=thirdparty%2Fasterisk.git Merged revisions 304464 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r304464 | qwell | 2011-01-27 10:57:46 -0600 (Thu, 27 Jan 2011) | 9 lines Fix default prefix=/usr regression on non-Linux systems. This partially reverts a change made in branches/1.4/ r267759, which will cause issue #17013 to be reopened. This issue was pointed out by a user on #asterisk, who helpfully discovered that paths were being set incorrectly. To truly understand what was wrong, one should run: svn diff --force -c configure ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@304465 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/configure b/configure index 13a5b3c152..d02c342512 100755 --- a/configure +++ b/configure @@ -598,8 +598,6 @@ ac_includes_default="\ #endif" ac_default_prefix=/usr/local -ac_default_prefix=/usr/local -ac_default_prefix=/usr ac_header_list= ac_subst_vars='LTLIBOBJS PBX_GENERIC_ODBC @@ -4549,7 +4547,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } case "${host_os}" in freebsd*) - + ac_default_prefix=/usr/local CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ;; @@ -4575,7 +4573,7 @@ $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h ;; *) - + ac_default_prefix=/usr if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then if test ${sysconfdir} = '${prefix}/etc'; then sysconfdir=/etc diff --git a/configure.ac b/configure.ac index d3af0fa986..0dbc3f525a 100644 --- a/configure.ac +++ b/configure.ac @@ -41,7 +41,7 @@ AC_USE_SYSTEM_EXTENSIONS # note- does not work on FreeBSD case "${host_os}" in freebsd*) - AC_PREFIX_DEFAULT([/usr/local]) + ac_default_prefix=/usr/local CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ;; @@ -63,7 +63,7 @@ case "${host_os}" in AC_DEFINE([_DARWIN_UNLIMITED_SELECT], 1, [Define to 1 if running on Darwin.]) ;; *) - AC_PREFIX_DEFAULT([/usr]) + ac_default_prefix=/usr if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then if test ${sysconfdir} = '${prefix}/etc'; then sysconfdir=/etc