[asterisk-commits] qwell: trunk r180944 - in /trunk: ./ autoconf/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 10 17:03:45 CDT 2009


Author: qwell
Date: Tue Mar 10 17:03:41 2009
New Revision: 180944

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180944
Log:
Merged revisions 180941 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r180941 | qwell | 2009-03-10 17:02:18 -0500 (Tue, 10 Mar 2009) | 1 line
  
  Make things happier when using autoconf 2.62+
........

Modified:
    trunk/   (props changed)
    trunk/autoconf/ast_check_gnu_make.m4
    trunk/autoconf/ast_prog_sed.m4
    trunk/configure
    trunk/configure.ac

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/autoconf/ast_check_gnu_make.m4
URL: http://svn.digium.com/svn-view/asterisk/trunk/autoconf/ast_check_gnu_make.m4?view=diff&rev=180944&r1=180943&r2=180944
==============================================================================
--- trunk/autoconf/ast_check_gnu_make.m4 (original)
+++ trunk/autoconf/ast_check_gnu_make.m4 Tue Mar 10 17:03:41 2009
@@ -1,20 +1,20 @@
-AC_DEFUN([AST_CHECK_GNU_MAKE], [AC_CACHE_CHECK(for GNU make, GNU_MAKE,
-   GNU_MAKE='Not Found' ;
-   GNU_MAKE_VERSION_MAJOR=0 ;
-   GNU_MAKE_VERSION_MINOR=0 ;
+AC_DEFUN([AST_CHECK_GNU_MAKE], [AC_CACHE_CHECK([for GNU make], [ac_cv_GNU_MAKE],
+   ac_cv_GNU_MAKE='Not Found' ;
+   ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
+   ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
    for a in make gmake gnumake ; do
       if test -z "$a" ; then continue ; fi ;
       if ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
-         GNU_MAKE=$a ;
-         GNU_MAKE_VERSION_MAJOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
-         GNU_MAKE_VERSION_MINOR=`$GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
+         ac_cv_GNU_MAKE=$a ;
+         ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
+         ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
          break;
       fi
    done ;
 ) ;
-if test  "x$GNU_MAKE" = "xNot Found"  ; then
+if test  "x$ac_cv_GNU_MAKE" = "xNot Found"  ; then
    AC_MSG_ERROR( *** Please install GNU make.  It is required to build Asterisk!)
    exit 1
 fi
-AC_SUBST([GNU_MAKE])
+AC_SUBST([GNU_MAKE], [$ac_cv_GNU_MAKE])
 ])

Modified: trunk/autoconf/ast_prog_sed.m4
URL: http://svn.digium.com/svn-view/asterisk/trunk/autoconf/ast_prog_sed.m4?view=diff&rev=180944&r1=180943&r2=180944
==============================================================================
--- trunk/autoconf/ast_prog_sed.m4 (original)
+++ trunk/autoconf/ast_prog_sed.m4 Tue Mar 10 17:03:41 2009
@@ -12,8 +12,7 @@
      done
      echo "$ac_script" | sed 99q >conftest.sed
      $as_unset ac_script || ac_script=
-     ifdef([_AC_PATH_PROGS_FEATURE_CHECK],[],[define([_AC_PATH_PROGS_FEATURE_CHECK],defn([_AC_PATH_PROG_FEATURE_CHECK]))])
-     _AC_PATH_PROGS_FEATURE_CHECK(SED, [sed gsed],
+     ifdef([_AC_PATH_PROGS_FEATURE_CHECK], [_AC_PATH_PROGS_FEATURE_CHECK], [_AC_PATH_PROG_FEATURE_CHECK])(SED, [sed gsed],
 	[_AC_FEATURE_CHECK_LENGTH([ac_path_SED], [ac_cv_path_SED],
 		["$ac_path_SED" -f conftest.sed])])])
  SED="$ac_cv_path_SED"

Modified: trunk/configure.ac
URL: http://svn.digium.com/svn-view/asterisk/trunk/configure.ac?view=diff&rev=180944&r1=180943&r2=180944
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Tue Mar 10 17:03:41 2009
@@ -23,7 +23,6 @@
 AC_COPYRIGHT("Asterisk")
 AC_REVISION($Revision$)
 
-AC_GNU_SOURCE
 AC_USE_SYSTEM_EXTENSIONS	# note- does not work on FreeBSD
 
 case "${host_os}" in




More information about the asterisk-commits mailing list