forked from webtatic-rpms/php56w
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp-5.5.0-icuconfig.patch
68 lines (60 loc) · 2.22 KB
/
php-5.5.0-icuconfig.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- php-5.5.1/acinclude.m4.icuconfig 2013-07-21 10:32:44.000000000 +0100
+++ php-5.5.1/acinclude.m4 2013-07-21 10:34:50.000000000 +0100
@@ -2203,17 +2203,23 @@
AC_DEFUN([PHP_SETUP_ICU],[
PHP_ARG_WITH(icu-dir,,
[ --with-icu-dir=DIR Specify where ICU libraries and headers can be found], DEFAULT, no)
+ PHP_ARG_WITH(icu-config,,
+ [ --with-icu-config=FILE Specify the path to icu-config], no, no)
- if test "$PHP_ICU_DIR" = "no"; then
- PHP_ICU_DIR=DEFAULT
- fi
+ if test "$PHP_ICU_CONFIG" = "no"; then
+ if test "$PHP_ICU_DIR" = "no"; then
+ PHP_ICU_DIR=DEFAULT
+ fi
- if test "$PHP_ICU_DIR" = "DEFAULT"; then
- dnl Try to find icu-config
- AC_PATH_PROG(ICU_CONFIG, icu-config, no, [$PATH:/usr/local/bin])
+ if test "$PHP_ICU_DIR" = "DEFAULT"; then
+ dnl Try to find icu-config
+ AC_PATH_PROG(ICU_CONFIG, icu-config, no, [$PATH:/usr/local/bin])
+ else
+ ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
+ fi
else
- ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
- fi
+ ICU_CONFIG="$PHP_ICU_CONFIG"
+ fi
AC_MSG_CHECKING([for location of ICU headers and libraries])
--- php-5.5.1/aclocal.m4.icuconfig 2013-07-21 10:32:27.000000000 +0100
+++ php-5.5.1/aclocal.m4 2013-07-21 10:36:23.000000000 +0100
@@ -2203,17 +2203,23 @@
AC_DEFUN([PHP_SETUP_ICU],[
PHP_ARG_WITH(icu-dir,,
[ --with-icu-dir=DIR Specify where ICU libraries and headers can be found], DEFAULT, no)
+ PHP_ARG_WITH(icu-config,,
+ [ --with-icu-config=FILE Specify the path to icu-config], no, no)
- if test "$PHP_ICU_DIR" = "no"; then
- PHP_ICU_DIR=DEFAULT
- fi
+ if test "$PHP_ICU_CONFIG" = "no"; then
+ if test "$PHP_ICU_DIR" = "no"; then
+ PHP_ICU_DIR=DEFAULT
+ fi
- if test "$PHP_ICU_DIR" = "DEFAULT"; then
- dnl Try to find icu-config
- AC_PATH_PROG(ICU_CONFIG, icu-config, no, [$PATH:/usr/local/bin])
+ if test "$PHP_ICU_DIR" = "DEFAULT"; then
+ dnl Try to find icu-config
+ AC_PATH_PROG(ICU_CONFIG, icu-config, no, [$PATH:/usr/local/bin])
+ else
+ ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
+ fi
else
- ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
- fi
+ ICU_CONFIG="$PHP_ICU_CONFIG"
+ fi
AC_MSG_CHECKING([for location of ICU headers and libraries])