⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apu-iconv.m4

📁 最新apache的源代码
💻 M4
字号:
dnldnl custom autoconf rules for APRUTILdnldnldnl APU_TRY_ICONV[ IF-SUCCESS, IF-FAILURE ]: try to compile for iconv.dnlAC_DEFUN(APU_TRY_ICONV,[  AC_TRY_LINK([#include <stdlib.h>#include <iconv.h>],[  iconv_t cd = iconv_open("", "");  iconv(cd, NULL, NULL, NULL, NULL);], [$1], [$2])])dnldnl APU_FIND_ICONV: find an iconv librarydnlAC_DEFUN(APU_FIND_ICONV,[apu_iconv_dir="unknown"AC_ARG_WITH(iconv,[  --with-iconv[=DIR]        path to iconv installation],  [ apu_iconv_dir="$withval"    if test "$apu_iconv_dir" != "yes"; then      APR_ADDTO(CPPFLAGS,[-I$apu_iconv_dir/include])      APR_ADDTO(LDFLAGS,[-L$apu_iconv_dir/lib])    fi  ])AC_CHECK_HEADER(iconv.h, [  APU_TRY_ICONV([ have_iconv="1" ], [   APR_ADDTO(LIBS,[-liconv])   APU_TRY_ICONV([     APR_ADDTO(APRUTIL_LIBS,[-liconv])     APR_ADDTO(APRUTIL_EXPORT_LIBS,[-liconv])     have_iconv="1" ],     [ have_iconv="0" ])   APR_REMOVEFROM(LIBS,[-liconv]) ])], [ have_iconv="0" ])if test "$apu_iconv_dir" != "unknown"; then  if test "$have_iconv" != "1"; then    AC_MSG_ERROR([iconv support requested, but not found])  fi  APR_REMOVEFROM(CPPFLAGS,[-I$apu_iconv_dir/include])  APR_REMOVEFROM(LDFLAGS,[-L$apu_iconv_dir/lib])  APR_ADDTO(APRUTIL_INCLUDES,[-I$apu_iconv_dir/include])  APR_ADDTO(APRUTIL_LDFLAGS,[-L$apu_iconv_dir/lib])fiif test "$have_iconv" = "1"; then  APU_CHECK_ICONV_INBUFfiAPR_FLAG_HEADERS(iconv.h langinfo.h)APR_FLAG_FUNCS(nl_langinfo)APR_CHECK_DEFINE(CODESET, langinfo.h, [CODESET defined in langinfo.h])AC_SUBST(have_iconv)])dnldnldnl APU_CHECK_ICONV_INBUFdnldnl  Decide whether or not the inbuf parameter to iconv() is const.dnldnl  We try to compile something without const.  If it fails to dnl  compile, we assume that the system's iconv() has const.  dnl  Unfortunately, we won't realize when there was a compilednl  warning, so we allow a variable -- apu_iconv_inbuf_const -- todnl  be set in hints.m4 to specify whether or not iconv() has constdnl  on this parameter.dnlAC_DEFUN(APU_CHECK_ICONV_INBUF,[AC_MSG_CHECKING(for type of inbuf parameter to iconv)if test "x$apu_iconv_inbuf_const" = "x"; then    APR_TRY_COMPILE_NO_WARNING([    #include <stddef.h>    #include <iconv.h>    ],[    iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0);    ], apu_iconv_inbuf_const="0", apu_iconv_inbuf_const="1")fiif test "$apu_iconv_inbuf_const" = "1"; then    AC_DEFINE(APU_ICONV_INBUF_CONST, 1, [Define if the inbuf parm to iconv() is const char **])    msg="const char **"else    msg="char **"fiAC_MSG_RESULT([$msg])])dnl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -