Changeset 677

Show
Ignore:
Timestamp:
03/16/07 01:18:29 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r675 r677  
    112007-03-15  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * qa/util.py (check_php_interpreter): Added a test to check 
     4        whether the PHP interpreter support fastcgi or not. 
    25 
    36        * configure.in (CRYPT_LIBS): Tries to fix crypt() on MacOS X. 
  • cherokee/trunk/qa/util.py

    r498 r677  
    7474 
    7575 
     76def check_php_interpreter (fullpath): 
     77    f = os.popen ("%s -v" % (fullpath)) 
     78    all = reduce (lambda x,y: x+y, f.readlines()) 
     79    f.close() 
     80    return "cgi-fcgi" in all 
     81 
    7682__php_ref = None 
    7783def look_for_php():     
     
    8389    if PHPCGI_PATH != "auto": 
    8490        __php_ref = PHPCGI_PATH 
     91        if not check_php_interpreter(__php_ref): 
     92            print "%s doesn't support fcgi" 
    8593        return __php_ref 
    8694 
     
    9098            if os.path.exists(php): 
    9199                __php_ref = php 
     100                if not check_php_interpreter(__php_ref): 
     101                    print "%s doesn't support fcgi" 
    92102                return php 
    93103