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

📄 aclocal.m4

📁 scim 修改过的可以在手机上运行的代码
💻 M4
📖 第 1 页 / 共 5 页
字号:
      fi        if test "$gt_cv_func_ngettext_libc" = "yes" ; then        AC_CHECK_FUNCS(bind_textdomain_codeset)      fi      #      # If we don't have everything we want, check in libintl      #      if test "$gt_cv_func_dgettext_libc" != "yes" \	 || test "$gt_cv_func_ngettext_libc" != "yes" \         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then                AC_CHECK_LIB(intl, bindtextdomain,	    [AC_CHECK_LIB(intl, ngettext,		    [AC_CHECK_LIB(intl, dgettext,			          gt_cv_func_dgettext_libintl=yes)])])	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then	  AC_MSG_CHECKING([if -liconv is needed to use gettext])	  AC_MSG_RESULT([])  	  AC_CHECK_LIB(intl, ngettext,          	[AC_CHECK_LIB(intl, dcgettext,		       [gt_cv_func_dgettext_libintl=yes			libintl_extra_libs=-liconv],			:,-liconv)],		:,-liconv)        fi        #        # If we found libintl, then check in it for bind_textdomain_codeset();        # we'll prefer libc if neither have bind_textdomain_codeset(),        # and both have dgettext and ngettext        #        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then          glib_save_LIBS="$LIBS"          LIBS="$LIBS -lintl $libintl_extra_libs"          unset ac_cv_func_bind_textdomain_codeset          AC_CHECK_FUNCS(bind_textdomain_codeset)          LIBS="$glib_save_LIBS"          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then            gt_cv_func_dgettext_libc=no          else            if test "$gt_cv_func_dgettext_libc" = "yes" \		&& test "$gt_cv_func_ngettext_libc" = "yes"; then              gt_cv_func_dgettext_libintl=no            fi          fi        fi      fi      if test "$gt_cv_func_dgettext_libc" = "yes" \	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then        gt_cv_have_gettext=yes      fi        if test "$gt_cv_func_dgettext_libintl" = "yes"; then        INTLLIBS="-lintl $libintl_extra_libs"      fi        if test "$gt_cv_have_gettext" = "yes"; then	AC_DEFINE(HAVE_GETTEXT,1,	  [Define if the GNU gettext() function is already present or preinstalled.])	GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl	if test "$MSGFMT" != "no"; then          glib_save_LIBS="$LIBS"          LIBS="$LIBS $INTLLIBS"	  AC_CHECK_FUNCS(dcgettext)	  AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)	  GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,	    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)	  AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;			 return _nl_msg_cat_cntr],	    [CATOBJEXT=.gmo              DATADIRNAME=share],	    [case $host in	    *-*-solaris*)	    dnl On Solaris, if bind_textdomain_codeset is in libc,	    dnl GNU format message catalog is always supported,            dnl since both are added to the libc all together.	    dnl Hence, we'd like to go with DATADIRNAME=share and	    dnl and CATOBJEXT=.gmo in this case.            AC_CHECK_FUNC(bind_textdomain_codeset,	      [CATOBJEXT=.gmo                DATADIRNAME=share],	      [CATOBJEXT=.mo               DATADIRNAME=lib])	    ;;	    *)	    CATOBJEXT=.mo            DATADIRNAME=lib	    ;;	    esac])          LIBS="$glib_save_LIBS"	  INSTOBJEXT=.mo	else	  gt_cv_have_gettext=no	fi      fi    ])    if test "$gt_cv_have_gettext" = "yes" ; then      AC_DEFINE(ENABLE_NLS, 1,        [always defined to indicate that i18n is enabled])    fi    dnl Test whether we really found GNU xgettext.    if test "$XGETTEXT" != ":"; then      dnl If it is not GNU xgettext we define it as : so that the      dnl Makefiles still can work.      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then        : ;      else        AC_MSG_RESULT(	  [found xgettext program is not GNU xgettext; ignore it])        XGETTEXT=":"      fi    fi    # We need to process the po/ directory.    POSUB=po    AC_OUTPUT_COMMANDS(      [case "$CONFIG_FILES" in *po/Makefile.in*)        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile      esac])    dnl These rules are solely for the distribution goal.  While doing this    dnl we only have to keep exactly one list of the available catalogs    dnl in configure.in.    for lang in $ALL_LINGUAS; do      GMOFILES="$GMOFILES $lang.gmo"      POFILES="$POFILES $lang.po"    done    dnl Make all variables we use known to autoconf.    AC_SUBST(CATALOGS)    AC_SUBST(CATOBJEXT)    AC_SUBST(DATADIRNAME)    AC_SUBST(GMOFILES)    AC_SUBST(INSTOBJEXT)    AC_SUBST(INTLLIBS)    AC_SUBST(PO_IN_DATADIR_TRUE)    AC_SUBST(PO_IN_DATADIR_FALSE)    AC_SUBST(POFILES)    AC_SUBST(POSUB)  ])# AM_GLIB_GNU_GETTEXT# -------------------# Do checks necessary for use of gettext. If a suitable implementation # of gettext is found in either in libintl or in the C library,# it will set INTLLIBS to the libraries needed for use of gettext# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()# on various variables needed by the Makefile.in.in installed by # glib-gettextize.dnlglib_DEFUN([GLIB_GNU_GETTEXT],  [AC_REQUIRE([AC_PROG_CC])dnl   AC_REQUIRE([AC_HEADER_STDC])dnl      GLIB_LC_MESSAGES   GLIB_WITH_NLS   if test "$gt_cv_have_gettext" = "yes"; then     if test "x$ALL_LINGUAS" = "x"; then       LINGUAS=     else       AC_MSG_CHECKING(for catalogs to be installed)       NEW_LINGUAS=       for presentlang in $ALL_LINGUAS; do         useit=no         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then           desiredlanguages="$LINGUAS"         else           desiredlanguages="$ALL_LINGUAS"         fi         for desiredlang in $desiredlanguages; do 	   # Use the presentlang catalog if desiredlang is           #   a. equal to presentlang, or           #   b. a variant of presentlang (because in this case,           #      presentlang can be used as a fallback for messages           #      which are not translated in the desiredlang catalog).           case "$desiredlang" in             "$presentlang"*) useit=yes;;           esac         done         if test $useit = yes; then           NEW_LINGUAS="$NEW_LINGUAS $presentlang"         fi       done       LINGUAS=$NEW_LINGUAS       AC_MSG_RESULT($LINGUAS)     fi     dnl Construct list of names of catalog files to be constructed.     if test -n "$LINGUAS"; then       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done     fi   fi   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).   dnl Try to locate is.   MKINSTALLDIRS=   if test -n "$ac_aux_dir"; then     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"   fi   if test -z "$MKINSTALLDIRS"; then     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"   fi   AC_SUBST(MKINSTALLDIRS)   dnl Generate list of files to be processed by xgettext which will   dnl be included in po/Makefile.   test -d po || mkdir po   if test "x$srcdir" != "x."; then     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then       posrcprefix="$srcdir/"     else       posrcprefix="../$srcdir/"     fi   else     posrcprefix="../"   fi   rm -f po/POTFILES   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \	< $srcdir/po/POTFILES.in > po/POTFILES  ])# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)# -------------------------------# Define VARIABLE to the location where catalog files will# be installed by po/Makefile.glib_DEFUN([GLIB_DEFINE_LOCALEDIR],[glib_REQUIRE([GLIB_GNU_GETTEXT])dnlglib_save_prefix="$prefix"glib_save_exec_prefix="$exec_prefix"test "x$prefix" = xNONE && prefix=$ac_default_prefixtest "x$exec_prefix" = xNONE && exec_prefix=$prefixif test "x$CATOBJEXT" = "x.mo" ; then  localedir=`eval echo "${libdir}/locale"`else  localedir=`eval echo "${datadir}/locale"`fiprefix="$glib_save_prefix"exec_prefix="$glib_save_exec_prefix"AC_DEFINE_UNQUOTED($1, "$localedir",  [Define the location where the catalogs will be installed])])dnldnl Now the definitions that aclocal will finddnlifdef(glib_configure_in,[],[AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])])dnl# iconv.m4 serial AM4 (gettext-0.11.3)dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.dnl This file is free software; the Free Software Foundationdnl gives unlimited permission to copy and/or distribute it,dnl with or without modifications, as long as this notice is preserved.dnl From Bruno Haible.AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],[  dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])  AC_REQUIRE([AC_LIB_RPATH])  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV  dnl accordingly.  AC_LIB_LINKFLAGS_BODY([iconv])])AC_DEFUN([AM_ICONV_LINK],[  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and  dnl those with the standalone portable GNU libiconv installed).  dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV  dnl accordingly.  AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])  dnl Add $INCICONV to CPPFLAGS before performing the following checks,  dnl because if the user has installed libiconv and not disabled its use  dnl via --without-libiconv-prefix, he wants to use it. The first  dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.  am_save_CPPFLAGS="$CPPFLAGS"  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])  AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [    am_cv_func_iconv="no, consider installing GNU libiconv"    am_cv_lib_iconv=no    AC_TRY_LINK([#include <stdlib.h>#include <iconv.h>],      [iconv_t cd = iconv_open("","");       iconv(cd,NULL,NULL,NULL,NULL);       iconv_close(cd);],      am_cv_func_iconv=yes)    if test "$am_cv_func_iconv" != yes; then      am_save_LIBS="$LIBS"      LIBS="$LIBS $LIBICONV"      AC_TRY_LINK([#include <stdlib.h>#include <iconv.h>],        [iconv_t cd = iconv_open("","");         iconv(cd,NULL,NULL,NULL,NULL);         iconv_close(cd);],        am_cv_lib_iconv=yes        am_cv_func_iconv=yes)      LIBS="$am_save_LIBS"    fi  ])  if test "$am_cv_func_iconv" = yes; then    AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])  fi  if test "$am_cv_lib_iconv" = yes; then    AC_MSG_CHECKING([how to link with libiconv])    AC_MSG_RESULT([$LIBICONV])  else    dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV    dnl either.    CPPFLAGS="$am_save_CPPFLAGS"    LIBICONV=    LTLIBICONV=  fi  AC_SUBST(LIBICONV)  AC_SUBST(LTLIBICONV)])AC_DEFUN([AM_ICONV],[  AM_ICONV_LINK  if test "$am_cv_func_iconv" = yes; then    AC_MSG_CHECKING([for iconv declaration])    AC_CACHE_VAL(am_cv_proto_iconv, [      AC_TRY_COMPILE([#include <stdlib.h>#include <iconv.h>extern#ifdef __cplusplus"C"#endif#if defined(__STDC__) || defined(__cplusplus)

⌨️ 快捷键说明

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