cvs: php4 / acinclude.m4

From: Date: Sat, 17 Jun 2000 10:50:42 +0000
Subject: cvs: php4 / acinclude.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-325@lists.php.net to get a copy of this message
sas Sat Jun 17 03:50:42 2000 EDT Modified files: /php4 acinclude.m4 Log: Add PHP_EVAL_LIBLINE and PHP_EVAL_INCLINE Index: php4/acinclude.m4 diff -u php4/acinclude.m4:1.95 php4/acinclude.m4:1.96 --- php4/acinclude.m4:1.95 Sun Jun 11 03:38:37 2000 +++ php4/acinclude.m4 Sat Jun 17 03:50:42 2000 @@ -1,9 +1,46 @@ -dnl $Id: acinclude.m4,v 1.95 2000/06/11 10:38:37 sas Exp $ +dnl $Id: acinclude.m4,v 1.96 2000/06/17 10:50:42 sas Exp $ dnl dnl This file contains local autoconf functions. sinclude(dynlib.m4) +dnl PHP_EVAL_LIBLINE(LINE, SHARED-LIBADD) +dnl +dnl Use this macro, if you need to add libraries and or library search +dnl paths to the PHP build system which are only given in compiler +dnl notation. +dnl +AC_DEFUN(PHP_EVAL_LIBLINE,[ + for ac_i in $1; do + case "$ac_i" in + -l*) + ac_ii=echo $ac_i|cut -c 3- + AC_ADD_LIBRARY($ac_ii,$2) + ;; + -L*) + ac_ii=echo $ac_i|cut -c 3- + AC_ADD_LIBPATH($ac_ii,,$2) + ;; + esac + done +]) + +dnl PHP_EVAL_INCLINE(LINE) +dnl +dnl Use this macro, if you need to add header search paths to the PHP +dnl build system which are only given in compiler notation. +dnl +AC_DEFUN(PHP_EVAL_INCLINE,[ + for ac_i in $1; do + case "$ac_i" in + -I*) + ac_ii=echo $ac_i|cut -c 3- + AC_ADD_INCLUDE($ac_ii) + ;; + esac + done +]) + AC_DEFUN(PHP_READDIR_R_TYPE,[ dnl HAVE_READDIR_R is also defined by libmysql AC_CHECK_FUNC(readdir_r,ac_cv_func_readdir_r=yes,ac_cv_func_readdir=no)

« previous php.cvs (#325) next »