diff options
author | SVN Migration <svn@php.net> | 2004-01-25 12:03:25 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-01-25 12:03:25 +0000 |
commit | 22476b36ce621bdd115493bab84cbe706e422a7c (patch) | |
tree | 1124d1c5af68860a78c2252bb0dac63c9f18156e /ext/recode/config.m4 | |
parent | eb7aca4ea896b09cb9afc2466a46f4720acc4a4e (diff) | |
download | php-git-php_ibase_before_split.tar.gz |
This commit was manufactured by cvs2svn to create tagphp_ibase_before_split
'php_ibase_before_split'.
Diffstat (limited to 'ext/recode/config.m4')
-rw-r--r-- | ext/recode/config.m4 | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/ext/recode/config.m4 b/ext/recode/config.m4 deleted file mode 100644 index aa94914df8..0000000000 --- a/ext/recode/config.m4 +++ /dev/null @@ -1,64 +0,0 @@ -dnl -dnl $Id$ -dnl - -PHP_ARG_WITH(recode,for recode support, -[ --with-recode[=DIR] Include recode support.]) - -if test "$PHP_RECODE" != "no"; then - RECODE_LIST="$PHP_RECODE /usr/local /usr /opt" - - for i in $RECODE_LIST; do - if test -f $i/include/recode.h; then - RECODE_DIR=$i - RECODE_INC=include - RECODE_LIB=lib - fi - if test -f $i/include/recode/recode.h; then - RECODE_DIR=$i - RECODE_INC=include/recode - RECODE_LIB=lib/recode - fi - if test -f $i/recode/include/recode.h; then - RECODE_DIR=$i/recode - RECODE_INC=include - RECODE_LIB=lib - fi - test -n "$RECODE_DIR" && break - done - - if test -z "$RECODE_DIR"; then - AC_MSG_ERROR([Can not find recode.h anywhere under $RECODE_LIST.]) - fi - - PHP_CHECK_LIBRARY(recode, recode_format_table, - [ - PHP_ADD_LIBRARY_WITH_PATH(recode, $RECODE_DIR/$RECODE_LIB, RECODE_SHARED_LIBADD) - ], [ - old_LDFLAGS=$LDFLAGS - old_LIBS=$LIBS - LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB" - LIBS="$LIBS -lrecode" - AC_TRY_LINK( - [ -char *program_name; - ],[ -recode_format_table(); - ],[ - PHP_ADD_LIBRARY_DEFER_WITH_PATH(recode, $RECODE_DIR/$RECODE_LIB, RECODE_SHARED_LIBADD) - AC_DEFINE(HAVE_BROKEN_RECODE, 1, [Whether we have librecode 3.5]) - ],[ - AC_MSG_ERROR(I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?) - ]) - LIBS=$old_LIBS - LDFLAGS=$old_LDFLAGS - ], [ - -L$RECODE_DIR/$RECODE_LIB - ]) - - AC_DEFINE(HAVE_LIBRECODE, 1, [Whether we have librecode 3.5 or higher]) - PHP_ADD_INCLUDE($RECODE_DIR/$RECODE_INC) - PHP_SUBST(RECODE_SHARED_LIBADD) - AC_CHECK_HEADERS(stdbool.h) - PHP_NEW_EXTENSION(recode, recode.c, $ext_shared) -fi |