diff options
| author | foobar <sniper@php.net> | 2005-10-13 19:28:47 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2005-10-13 19:28:47 +0000 |
| commit | 40af0645b9098776df13dc8594a982a3d335226e (patch) | |
| tree | 40efcfe17a3e9bc4782bb9d003ff90afb389a3b9 /ext | |
| parent | bd6cbd6a0e2945259a5bac6ad4a9e3e149f606f6 (diff) | |
| download | php-git-40af0645b9098776df13dc8594a982a3d335226e.tar.gz | |
proper quoting, breaking, etc.
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/iconv/config.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4 index d87c124fb1..8df214561c 100644 --- a/ext/iconv/config.m4 +++ b/ext/iconv/config.m4 @@ -18,9 +18,10 @@ if test "$PHP_ICONV" != "no"; then iconv_ldflags_save="$LDFLAGS" if test -z "$ICONV_DIR"; then - for i in /usr /usr/local; do - if test -f "$i/include/iconv.h" -o test -f "$i/include/giconv.h"; then + for i in /usr/local /usr; do + if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then PHP_ICONV_PREFIX="$i" + break fi done if test -z "$PHP_ICONV_PREFIX"; then @@ -33,7 +34,7 @@ if test "$PHP_ICONV" != "no"; then CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS" LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS" - if test -r $PHP_ICONV_PREFIX/include/giconv.h; then + if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h" else PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h" |
