From:             iguy at ionsphere dot org
Operating system: Redhat 8.0
PHP version:      4.3.1
PHP Bug Type:     *Compile Issues
Bug description:  mail() not discovered by configure 

On my RedHat 8.0 system I am running exim & apache 2.0 with the default
autoconf of 2.53-8.  

When issuing the ./buildconf, ./configure <insert zillion options here>
configure does not find sendmail in the path given to it.  That is because
of a bug in the autoconf 2.53 code base where AC_PROG_PATH does not
properly search through non-expanded parameters passed to the search
string.  ie.  
$PATH:/usr/sbin -> it will search through the properly expanded $PATH but
will not search in /usr/sbin.  

As such I would like ot recommend this patch which should work with 2.13 &
all versions of autoconf going forward.

diff -Naur php-4.3.1.org/aclocal.m4 php-4.3.1/aclocal.m4
--- php-4.3.1.org/aclocal.m4    2003-02-16 08:56:17.000000000 -0700
+++ php-4.3.1/aclocal.m4        2003-03-31 12:14:24.000000000 -0700
@@ -713,7 +713,8 @@
 ])
 
 AC_DEFUN([PHP_PROG_SENDMAIL],[
-AC_PATH_PROG(PROG_SENDMAIL, sendmail,[],
$PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib)
+PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
+AC_PATH_PROG(PROG_SENDMAIL, sendmail,[], $PATH:$PHP_ALT_PATH)
 if test -n "$PROG_SENDMAIL"; then
   AC_DEFINE(HAVE_SENDMAIL,1,[whether you have sendmail])
 fi
-- 
Edit bug report at http://bugs.php.net/?id=22989&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22989&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22989&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22989&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22989&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22989&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22989&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22989&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22989&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22989&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22989&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22989&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22989&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22989&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22989&r=gnused

Reply via email to