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

📄 aclocal.m4

📁 CoralFTP是一款用Python语言编写的工作在GTK2环境下的FTP客户端软件
💻 M4
📖 第 1 页 / 共 5 页
字号:
# This test uses sys.hexversion instead of the string equivalent (first# word of sys.version), in order to cope with versions such as 2.2c1.# hexversion has been introduced in Python 1.5.2; it's probably not# worth to support older versions (1.5.1 was released on October 31, 1998).AC_DEFUN([AM_PYTHON_CHECK_VERSION], [prog="import sys, string# split strings by '.' and convert to numeric.  Append some zeros# because we need at least 4 digits for the hex conversion.minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]minverhex = 0for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]sys.exit(sys.hexversion < minverhex)"  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-# This program 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, or (at your option)# any later version.# This program 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 this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA# 02111-1307, USA.# AM_RUN_LOG(COMMAND)# -------------------# Run COMMAND, save the exit status in ac_status, and log it.# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)AC_DEFUN([AM_RUN_LOG],[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD   ac_status=$?   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD   (exit $ac_status); }])dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man pagednl also defines GSTUFF_PKG_ERRORS on errorAC_DEFUN(PKG_CHECK_MODULES, [  succeeded=no  if test -z "$PKG_CONFIG"; then    AC_PATH_PROG(PKG_CONFIG, pkg-config, no)  fi  if test "$PKG_CONFIG" = "no" ; then     echo "*** The pkg-config script could not be found. Make sure it is"     echo "*** in your path, or set the PKG_CONFIG environment variable"     echo "*** to the full path to pkg-config."     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."  else     PKG_CONFIG_MIN_VERSION=0.9.0     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then        AC_MSG_CHECKING(for $2)        if $PKG_CONFIG --exists "$2" ; then            AC_MSG_RESULT(yes)            succeeded=yes            AC_MSG_CHECKING($1_CFLAGS)            $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`            AC_MSG_RESULT($$1_CFLAGS)            AC_MSG_CHECKING($1_LIBS)            $1_LIBS=`$PKG_CONFIG --libs "$2"`            AC_MSG_RESULT($$1_LIBS)        else            $1_CFLAGS=""            $1_LIBS=""            ## If we have a custom action on failure, don't print errors, but             ## do set a variable so people can do so.            $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`            ifelse([$4], ,echo $$1_PKG_ERRORS,)        fi        AC_SUBST($1_CFLAGS)        AC_SUBST($1_LIBS)     else        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."        echo "*** See http://www.freedesktop.org/software/pkgconfig"     fi  fi  if test $succeeded = yes; then     ifelse([$3], , :, [$3])  else     ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])  fi])dnl AC_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])# serial 1 AC_PROG_INTLTOOLAC_DEFUN([AC_PROG_INTLTOOL],[if test -n "$1"; then    AC_MSG_CHECKING(for intltool >= $1)    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ printf "%d", $[1] * 100 + $[2]; }'`    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $[2]; }'  < ${ac_aux_dir}/intltool-update.in`    changequote({{,}})    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split(${{2}}, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`    changequote([,])    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then	AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])    else	AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool $1 or later.])	exit 1    fifi  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' AC_SUBST(INTLTOOL_DESKTOP_RULE)AC_SUBST(INTLTOOL_DIRECTORY_RULE)AC_SUBST(INTLTOOL_KEYS_RULE)AC_SUBST(INTLTOOL_PROP_RULE)AC_SUBST(INTLTOOL_OAF_RULE)AC_SUBST(INTLTOOL_PONG_RULE)AC_SUBST(INTLTOOL_SERVER_RULE)AC_SUBST(INTLTOOL_SHEET_RULE)AC_SUBST(INTLTOOL_SOUNDLIST_RULE)AC_SUBST(INTLTOOL_UI_RULE)AC_SUBST(INTLTOOL_XAM_RULE)AC_SUBST(INTLTOOL_KBD_RULE)AC_SUBST(INTLTOOL_XML_RULE)AC_SUBST(INTLTOOL_CAVES_RULE)AC_SUBST(INTLTOOL_SCHEMAS_RULE)AC_SUBST(INTLTOOL_THEME_RULE)# Use the tools built into the package, not the ones that are installed.INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'INTLTOOL_MERGE='$(top_builddir)/intltool-merge'INTLTOOL_UPDATE='$(top_builddir)/intltool-update'AC_SUBST(INTLTOOL_EXTRACT)AC_SUBST(INTLTOOL_MERGE)AC_SUBST(INTLTOOL_UPDATE)AC_PATH_PROG(INTLTOOL_PERL, perl)if test -z "$INTLTOOL_PERL"; then   AC_MSG_ERROR([perl not found; required for intltool])fiif test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then   AC_MSG_ERROR([perl 5.x required for intltool])fiif test "x$2" != "xno-xml"; then   AC_MSG_CHECKING([for XML::Parser])   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then       AC_MSG_RESULT([ok])   else       AC_MSG_ERROR([XML::Parser perl module is required for intltool])   fifiAC_PATH_PROG(ICONV, iconv, iconv)AC_PATH_PROG(MSGFMT, msgfmt, msgfmt)AC_PATH_PROG(MSGMERGE, msgmerge, msgmerge)AC_PATH_PROG(XGETTEXT, xgettext, xgettext)# Remove file type tags (using []) from po/POTFILES.ifdef([AC_DIVERSION_ICMDS],[  AC_DIVERT_PUSH(AC_DIVERSION_ICMDS)      changequote(,)      mv -f po/POTFILES po/POTFILES.tmp      sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES      rm -f po/POTFILES.tmp      changequote([,])  AC_DIVERT_POP()],[  ifdef([AC_CONFIG_COMMANDS_PRE],[    AC_CONFIG_COMMANDS_PRE([        changequote(,)        mv -f po/POTFILES po/POTFILES.tmp        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES        rm -f po/POTFILES.tmp        changequote([,])    ])  ])])# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.AC_OUTPUT_COMMANDS([intltool_edit="-e \"s:@INTLTOOL_EXTRACT@:${INTLTOOL_EXTRACT}:g\" \               -e \"s:@INTLTOOL_ICONV@:${ICONV}:g\" \               -e \"s:@INTLTOOL_MSGFMT@:${MSGFMT}:g\" \               -e \"s:@INTLTOOL_MSGMERGE@:${MSGMERGE}:g\" \               -e \"s:@INTLTOOL_XGETTEXT@:${XGETTEXT}:g\" \               -e \"s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:g\""eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \  > intltool-extract.outif cmp -s intltool-extract intltool-extract.out 2>/dev/null; then  rm -f intltool-extract.outelse  mv -f intltool-extract.out intltool-extractfichmod ugo+x intltool-extractchmod u+w intltool-extracteval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \  > intltool-merge.outif cmp -s intltool-merge intltool-merge.out 2>/dev/null; then  rm -f intltool-merge.outelse  mv -f intltool-merge.out intltool-mergefichmod ugo+x intltool-mergechmod u+w intltool-mergeeval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \  > intltool-update.outif cmp -s intltool-update intltool-update.out 2>/dev/null; then  rm -f intltool-update.outelse  mv -f intltool-update.out intltool-updatefichmod ugo+x intltool-updatechmod u+w intltool-update], INTLTOOL_PERL=${INTLTOOL_PERL} ac_aux_dir=${ac_aux_dir}INTLTOOL_EXTRACT=${INTLTOOL_EXTRACT} ICONV=${ICONV}MSGFMT=${MSGFMT} MSGMERGE=${MSGMERGE} XGETTEXT=${XGETTEXT})])dnl AM_GCONF_SOURCE_2dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemasdnl  (i.e. pass to gconftool-2dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory wherednl  you should install foo.schemas filesdnlAC_DEFUN([AM_GCONF_SOURCE_2],[  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`  else    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE  fi  AC_ARG_WITH(gconf-source,   [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'  fi  AC_ARG_WITH(gconf-schema-file-dir,   [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)  AC_SUBST(GCONF_SCHEMA_FILE_DIR)  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])  AC_ARG_ENABLE(schemas-install,     [  --disable-schemas-install	Disable the schemas installation],     [case "${enableval}" in       yes) schemas_install=true ;;       no)  schemas_install=false ;;       *) AC_MSG_ERROR(bad value ${enableval} for --disable-schemas-install) ;;     esac],[schemas_install=true])     AM_CONDITIONAL(GCONF_SCHEMAS_INSTALL, test x$schemas_install = xtrue)])# Copyright (C) 1995-2002 Free Software Foundation, Inc.# Copyright (C) 2001-2003 Red Hat, Inc.## This file is free software, distributed under the terms of the GNU# General Public License.  As a special exception to the GNU General# Public License, this file may be distributed as part of a program# that contains a configuration script generated by Autoconf, under# the same distribution terms as the rest of that program.## This file can be copied and used freely without restrictions.  It can# be used in projects which are not available under the GNU Public License# but which still want to provide support for the GNU gettext functionality.## Macro to add for using GNU gettext.# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996## Modified to never use included libintl. # Owen Taylor <otaylor@redhat.com>, 12/15/1998## Major rework to remove unused code# Owen Taylor <otaylor@redhat.com>, 12/11/2002## Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002## We need this here as well, since someone might use autoconf-2.5x# to configure GLib then an older version to configure a package# using AM_GLIB_GNU_GETTEXTAC_PREREQ(2.53)dnldnl We go to great lengths to make sure that aclocal won't dnl try to pull in the installed version of these macrosdnl when running aclocal in the glib directory.dnlm4_copy([AC_DEFUN],[glib_DEFUN])m4_copy([AC_REQUIRE],[glib_REQUIRE])dnldnl At the end, if we're not within glib, we'll define the publicdnl definitions in terms of our private definitions.dnl

⌨️ 快捷键说明

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