tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/webapp/support wa_apxs.m4
Date Wed, 01 May 2002 15:30:58 GMT
pier        02/05/01 08:30:58

  Modified:    webapp/support wa_apxs.m4
  Log:
  Added function to retrieve values out of APXS.
  
  Revision  Changes    Path
  1.3       +21 -1     jakarta-tomcat-connectors/webapp/support/wa_apxs.m4
  
  Index: wa_apxs.m4
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/support/wa_apxs.m4,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- wa_apxs.m4	1 May 2002 14:19:42 -0000	1.2
  +++ wa_apxs.m4	1 May 2002 15:30:58 -0000	1.3
  @@ -57,7 +57,7 @@
   
   dnl --------------------------------------------------------------------------
   dnl Author Pier Fumagalli <pier@betaversion.org>
  -dnl Version $Id: wa_apxs.m4,v 1.2 2002/05/01 14:19:42 pier Exp $
  +dnl Version $Id: wa_apxs.m4,v 1.3 2002/05/01 15:30:58 pier Exp $
   dnl --------------------------------------------------------------------------
   
   dnl --------------------------------------------------------------------------
  @@ -136,4 +136,24 @@
       AC_MSG_RESULT([ok])
   
       AC_SUBST($1)
  +  ])
  +
  +dnl --------------------------------------------------------------------------
  +dnl WA_APXS_GET
  +dnl   Retrieve a value from APXS
  +dnl   $1 => Environment variable where the APXS value will be stored
  +dnl   $2 => Name of the APXS script (as returned by WA_APXS)
  +dnl   $3 => Name of the APXS value to retrieve
  +dnl --------------------------------------------------------------------------
  +AC_DEFUN(
  +  [WA_APXS_GET],
  +  [
  +    AC_MSG_CHECKING([for apxs $3 variable])
  +    tempval=`"$2" -q "$3" 2> /dev/null`;
  +    if test "$?" != "0" ; then
  +        WA_ERROR([cannot execute $2])
  +    fi
  +    AC_MSG_RESULT([${tempval}])
  +    $1="${$1} ${tempval}"
  +    unset tempval
     ])
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message