[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
use autoconf caching in alloca.m4
From: |
Bruno Haible |
Subject: |
use autoconf caching in alloca.m4 |
Date: |
Fri, 20 Oct 2006 15:50:35 +0200 |
User-agent: |
KMail/1.9.1 |
This is a small optim, when gl_FUNC_ALLOCA is used several times by the same
configure file.
2006-10-19 Bruno Haible <address@hidden>
* m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
invocation.
*** gnulib-20061019/m4/alloca.m4 2005-01-23 09:06:57.000000000 +0100
--- gnulib-20061019-modified/m4/alloca.m4 2006-10-20 02:11:02.000000000
+0200
***************
*** 1,5 ****
! # alloca.m4 serial 5
! dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
--- 1,5 ----
! # alloca.m4 serial 6
! dnl Copyright (C) 2002-2004, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
***************
*** 17,32 ****
# Define an additional variable used in the Makefile substitution.
if test $ac_cv_working_alloca_h = yes; then
! AC_EGREP_CPP([Need own alloca], [
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
! Need own alloca
#endif
! ],
! [AC_DEFINE(HAVE_ALLOCA, 1,
! [Define to 1 if you have `alloca' after including <alloca.h>,
! a header that may be supplied by this distribution.])
! ALLOCA_H=alloca.h],
! [ALLOCA_H=])
else
ALLOCA_H=alloca.h
fi
--- 17,37 ----
# Define an additional variable used in the Makefile substitution.
if test $ac_cv_working_alloca_h = yes; then
! AC_CACHE_VAL([gl_cv_rpl_alloca], [
! AC_EGREP_CPP([Need own alloca], [
#if defined __GNUC__ || defined _AIX || defined _MSC_VER
! Need own alloca
#endif
! ], [gl_cv_rpl_alloca=yes], [gl_cv_rpl_alloca=no])
! ])
! if test $gl_cv_rpl_alloca = yes; then
! AC_DEFINE([HAVE_ALLOCA], 1,
! [Define to 1 if you have `alloca' after including <alloca.h>,
! a header that may be supplied by this distribution.])
! ALLOCA_H=alloca.h
! else
! ALLOCA_H=
! fi
else
ALLOCA_H=alloca.h
fi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- use autoconf caching in alloca.m4,
Bruno Haible <=