/[packages]/cauldron/php-esmtp/current/SOURCES/esmtp-0.3.1-compile_fix.diff
ViewVC logotype

Annotation of /cauldron/php-esmtp/current/SOURCES/esmtp-0.3.1-compile_fix.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44187 - (hide annotations) (download)
Sat Jan 29 21:34:22 2011 UTC (13 years, 2 months ago) by spuhler
File size: 2351 byte(s)
imported package php-esmtp
1 spuhler 44187 --- config.m4 2004-09-06 12:46:25.000000000 +0200
2     +++ config.m4.oden 2005-01-08 12:21:41.327127220 +0100
3     @@ -17,61 +17,18 @@
4     ESMTP_INCS=`$ESMTP_CONFIG --cflags`
5     ESMTP_LIBS=`$ESMTP_CONFIG --libs`
6    
7     - dnl check libESMTP version
8     - libesmtp_version=`$ESMTP_CONFIG --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
9     - if test -z "$libesmtp_version"; then
10     - echo "Error: libesmtp-config not found."
11     - exit 1
12     - fi
13     -
14     - IFS=".r"; set $libesmtp_version; IFS=' '
15     - esmtp_libesmtp_version=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3`
16     - if test "esmtp_libesmtp_version" -ge 1000003; then
17     - echo "checking for libESMTP version ... $libesmtp_version (ok)"
18     - else
19     - echo "checking for libESMTP version ... $libesmtp_version (Error: you need libESMTP version 1.0.3r1 or newer installed to build esmtp)"
20     - exit 1
21     - fi
22     -
23     - dnl check PHP version
24     - php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
25     - if test -z "$php_version"; then
26     - echo "Error: php/php-config not found."
27     - exit 1
28     - fi
29     -
30     - IFS=.; set $php_version; IFS=' '
31     - esmtp_php_version=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3`
32     - if test "esmtp_php_version" -ge 4003002; then
33     - echo "checking for PHP version ... $php_version (ok)"
34     - else
35     - echo "checking for PHP version ... $php_version (Error: you need PHP version 4.3.2 or newer installed to build esmtp)"
36     - exit 1
37     - fi
38     -
39     if test -n "$ESMTP_INCS" && test -n "$ESMTP_LIBS"; then
40     PHP_EVAL_INCLINE([$ESMTP_INCS])
41     PHP_EVAL_LIBLINE($ESMTP_LIBS, ESMTP_SHARED_LIBADD)
42    
43     if echo "$ESMTP_INCS" | grep -- '-pthread' > /dev/null; then
44     - CFLAGS="$CFLAGS -pthreads"
45     + CFLAGS="$CFLAGS -pthread"
46     fi
47     if echo "$ESMTP_LIBS" | grep -- '-pthread' > /dev/null; then
48     ESMTP_SHARED_LIBADD="$ESMTP_SHARED_LIBADD -lpthread"
49     fi
50    
51     - IFS=.; set $php_version; IFS=' '
52     - if test "$1" = "4"; then
53     - PHP_NEW_EXTENSION(esmtp, esmtp-php4.c, $ext_shared)
54     - else
55     - if test "$1" = "5"; then
56     - PHP_NEW_EXTENSION(esmtp, esmtp.c, $ext_shared)
57     - else
58     - echo "Error: php version $php_version is unsupported."
59     - exit 1
60     - fi
61     - fi
62     -
63     + PHP_NEW_EXTENSION(esmtp, esmtp-php4.c, $ext_shared)
64     PHP_SUBST(ESMTP_SHARED_LIBADD)
65     AC_DEFINE(HAVE_LIBESMTP, 1, [ ])
66     else

  ViewVC Help
Powered by ViewVC 1.1.30