[asterisk-commits] trunk r35391 - in /trunk: configure configure.ac

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jun 22 03:30:51 MST 2006


Author: russell
Date: Thu Jun 22 05:30:51 2006
New Revision: 35391

URL: http://svn.digium.com/view/asterisk?rev=35391&view=rev
Log:
use the AC_PREFIX_DEFAULT macro to set the default prefix instead of setting
the variable directly, so that the configure --help information shows the
correct default prefix

Modified:
    trunk/configure
    trunk/configure.ac

Modified: trunk/configure
URL: http://svn.digium.com/view/asterisk/trunk/configure?rev=35391&r1=35390&r2=35391&view=diff
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Thu Jun 22 05:30:51 2006
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 33953 .
+# From configure.ac Revision: 33995 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59e.
 #
@@ -566,6 +566,8 @@
 
 ac_unique_file="asterisk"
 ac_unique_file="asterisk.c"
+ac_default_prefix=/usr/local
+ac_default_prefix=/usr
 # Factoring default headers for most tests.
 ac_includes_default="\
 #include <stdio.h>
@@ -2023,10 +2025,10 @@
 
 case "${host}" in
      *freebsd*)
-     ac_default_prefix=/usr/local
+
      ;;
      *)
-     ac_default_prefix=/usr
+
      if test ${sysconfdir} = '${prefix}/etc'; then
         sysconfdir=/etc
      fi

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?rev=35391&r1=35390&r2=35391&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Jun 22 05:30:51 2006
@@ -24,10 +24,10 @@
 
 case "${host}" in
      *freebsd*)
-     ac_default_prefix=/usr/local
+     AC_PREFIX_DEFAULT(/usr/local)
      ;;
      *)
-     ac_default_prefix=/usr
+     AC_PREFIX_DEFAULT(/usr)
      if test ${sysconfdir} = '${prefix}/etc'; then
         sysconfdir=/etc
      fi



More information about the asterisk-commits mailing list