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

📄 aclocal.m4

📁 The ATK library provides a set of interfaces for accessibility.By supporting the ATK interfaces, an
💻 M4
📖 第 1 页 / 共 5 页
字号:
          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)	  MSGFMT_OPTS=	  AC_MSG_CHECKING([if msgfmt accepts -c])	  GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[msgid ""msgstr """Content-Type: text/plain; charset=UTF-8\n""Project-Id-Version: test 1.0\n""PO-Revision-Date: 2007-02-15 12:01+0100\n""Last-Translator: test <foo@bar.xx>\n""Language-Team: C <LL@li.org>\n""MIME-Version: 1.0\n""Content-Transfer-Encoding: 8bit\n"], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])	  AC_SUBST(MSGFMT_OPTS)	  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"glib_save_datarootdir="$datarootdir"test "x$prefix" = xNONE && prefix=$ac_default_prefixtest "x$exec_prefix" = xNONE && exec_prefix=$prefixdatarootdir=`eval echo "${datarootdir}"`if 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"datarootdir="$glib_save_datarootdir"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# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])# # Create a temporary file with TEST-FILE as its contents and pass the# file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with# 0 and perform ACTION-IF-FAIL for any other exit status.AC_DEFUN([GLIB_RUN_PROG],[cat >conftest.foo <<_ACEOF$2_ACEOFif AC_RUN_LOG([$1 conftest.foo]); then  m4_ifval([$3], [$3], [:])m4_ifvaln([$4], [else $4])dnlecho "$as_me: failed input was:" >&AS_MESSAGE_LOG_FDsed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FDfi])dnl -*- mode: autoconf -*-# serial 1dnl Usage:dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])AC_DEFUN([GTK_DOC_CHECK],[  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first  dnl for overriding the documentation installation directory  AC_ARG_WITH([html-dir],    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,    [with_html_dir='${datadir}/gtk-doc/html'])  HTML_DIR="$with_html_dir"  AC_SUBST([HTML_DIR])  dnl enable/disable documentation building  AC_ARG_ENABLE([gtk-doc],    AS_HELP_STRING([--enable-gtk-doc],                   [use gtk-doc to build documentation [[default=no]]]),,    [enable_gtk_doc=no])  if test x$enable_gtk_doc = xyes; then    ifelse([$1],[],      [PKG_CHECK_EXISTS([gtk-doc],,                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],      [PKG_CHECK_EXISTS([gtk-doc >= $1],,                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])  fi  AC_MSG_CHECKING([whether to build gtk-doc documentation])  AC_MSG_RESULT($enable_gtk_doc)  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])])# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-##   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,#                 2006, 2007, 2008 Free Software Foundation, Inc.#   Written by Gordon Matzigkeit, 1996## This file is free software; the Free Software Foundation gives# unlimited permission to copy and/or distribute it, with or without# modifications, as long as this notice is preserved.m4_define([_LT_COPYING], [dnl#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,#                 2006, 2007, 2008 Free Software Foundation, Inc.#   Written by Gordon Matzigkeit, 1996##   This file is part of GNU Libtool.## GNU Libtool is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License as# published by the Free Software Foundation; either version 2 of# the License, or (at your option) any later version.## As a special exception to the GNU General Public License,# if you distribute this file as part of a program or library that# is built using GNU Libtool, you may include this file under the# same distribution terms that you use for the rest of that program.## GNU Libtool is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with GNU Libtool; see the file COPYING.  If not, a copy# can be downloaded from http://www.gnu.org/licenses/gpl.html, or# obtained by writing to the Free Software Foundation, Inc.,# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.])# serial 56 LT_INIT# LT_PREREQ(VERSION)# ------------------# Complain and exit if this libtool version is less that VERSION.m4_defun([LT_PREREQ],[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,       [m4_default([$3],		   [m4_fatal([Libtool version $1 or higher is required],		             63)])],       [$2])])# _LT_CHECK_BUILDDIR# ------------------# Complain if the absolute build directory name contains unusual charactersm4_defun([_LT_CHECK_BUILDDIR],[case `pwd` in  *\ * | *\	*)    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;esac])# LT_INIT([OPTIONS])# ------------------AC_DEFUN([LT_INIT],[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULTAC_BEFORE([$0], [LT_LANG])dnlAC_BEFORE([$0], [LT_OUTPUT])dnlAC_BEFORE([$0], [LTDL_INIT])dnlm4_require([_LT_CHECK_BUILDDIR])dnldnl Autoconf doesn't catch unexpanded LT_ macros by default:m4_pattern_forbid([^_?LT_[A-Z_]+$])dnlm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnldnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4dnl unless we require an AC_DEFUNed macro:AC_REQUIRE([LTOPTIONS_VERSION])dnlAC_REQUIRE([LTSUGAR_VERSION])dnlAC_REQUIRE([LTVERSION_VERSION])dnlAC_REQUIRE([LTOBSOLETE_VERSION])dnlm4_require([_LT_PROG_LTMAIN])dnldnl Parse OPTIONS_LT_SET_OPTIONS([$0], [$1])# This can be used to rebuild libtool when neededLIBTOOL_DEPS="$ltmain"# Always use our own libtool.LIBTOOL='$(SHELL) $(top_builddir)/libtool'AC_SUBST(LIBTOOL)dnl_LT_SETUP# Only expand once:m4_define([LT_INIT])])# LT_INIT

⌨️ 快捷键说明

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