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

📄 aclocal.m4

📁 功能强大的ftp服务器源代码
💻 M4
📖 第 1 页 / 共 3 页
字号:
# ------------------------------AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],[for mf in $CONFIG_FILES; do  # Strip MF so we end up with the name of the file.  mf=`echo "$mf" | sed -e 's/:.*$//'`  # Check whether this is an Automake generated Makefile or not.  # We used to match only the files named `Makefile.in', but  # some people rename them; so instead we look at the file content.  # Grep'ing the first line is not enough: some people post-process  # each Makefile.in and add a new line on top of each file to say so.  # So let's grep whole file.  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then    dirpart=`AS_DIRNAME("$mf")`  else    continue  fi  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue  # Extract the definition of DEP_FILES from the Makefile without  # running `make'.  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`  test -z "$DEPDIR" && continue  # When using ansi2knr, U may be empty or an underscore; expand it  U=`sed -n -e '/^U = / s///p' < "$mf"`  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"  # We invoke sed twice because it is the simplest approach to  # changing $(DEPDIR) to its actual value in the expansion.  for file in `sed -n -e '    /^DEP_FILES = .*\\\\$/ {      s/^DEP_FILES = //      :loop	s/\\\\$//	p	n	/\\\\$/ b loop      p    }    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do    # Make sure the directory exists.    test -f "$dirpart/$file" && continue    fdir=`AS_DIRNAME(["$file"])`    AS_MKDIR_P([$dirpart/$fdir])    # echo "creating $dirpart/$file"    echo '# dummy' > "$dirpart/$file"  donedone])# _AM_OUTPUT_DEPENDENCY_COMMANDS# AM_OUTPUT_DEPENDENCY_COMMANDS# -----------------------------# This macro should only be invoked once -- use via AC_REQUIRE.## This code is only required when automatic dependency tracking# is enabled.  FIXME.  This creates each `.P' file that we will# need in order to bootstrap the dependency handling code.AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[AC_CONFIG_COMMANDS([depfiles],     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])])# Check to see how 'make' treats includes.	-*- Autoconf -*-# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.# 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.# serial 2# AM_MAKE_INCLUDE()# -----------------# Check to see how make treats includes.AC_DEFUN([AM_MAKE_INCLUDE],[am_make=${MAKE-make}cat > confinc << 'END'am__doit:	@echo done.PHONY: am__doitEND# If we don't find an include directive, just comment out the code.AC_MSG_CHECKING([for style of include used by $am_make])am__include="#"am__quote=_am_result=none# First try GNU make style include.echo "include confinc" > confmf# We grep out `Entering directory' and `Leaving directory'# messages which can occur if `w' ends up in MAKEFLAGS.# In particular we don't look at `^make:' because GNU make might# be invoked under some other name (usually "gmake"), in which# case it prints its new name instead of `make'.if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then   am__include=include   am__quote=   _am_result=GNUfi# Now try BSD make style include.if test "$am__include" = "#"; then   echo '.include "confinc"' > confmf   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then      am__include=.include      am__quote="\""      _am_result=BSD   fifiAC_SUBST([am__include])AC_SUBST([am__quote])AC_MSG_RESULT([$_am_result])rm -f confinc confmf])# AM_CONDITIONAL                                              -*- Autoconf -*-# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.# 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.# serial 5AC_PREREQ(2.52)# AM_CONDITIONAL(NAME, SHELL-CONDITION)# -------------------------------------# Define a conditional.AC_DEFUN([AM_CONDITIONAL],[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnlAC_SUBST([$1_TRUE])AC_SUBST([$1_FALSE])if $2; then  $1_TRUE=  $1_FALSE='#'else  $1_TRUE='#'  $1_FALSE=fiAC_CONFIG_COMMANDS_PRE([if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then  AC_MSG_ERROR([conditional "$1" was never defined.Usually this means the macro was only invoked conditionally.])fi])])# isc-posix.m4 serial 2 (gettext-0.11.2)dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.dnl This file is free software, distributed under the terms of the GNUdnl General Public License.  As a special exception to the GNU Generaldnl Public License, this file may be distributed as part of a programdnl that contains a configuration script generated by Autoconf, underdnl the same distribution terms as the rest of that program.# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.# This test replaces the one in autoconf.# Currently this macro should have the same name as the autoconf macro# because gettext's gettext.m4 (distributed in the automake package)# still uses it.  Otherwise, the use in gettext.m4 makes autoheader# give these diagnostics:#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIXundefine([AC_ISC_POSIX])AC_DEFUN([AC_ISC_POSIX],  [    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])  ])# Copyright 1996, 1998, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.# 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.# serial 2AC_DEFUN([AM_WITH_DMALLOC],[AC_MSG_CHECKING([if malloc debugging is wanted])AC_ARG_WITH(dmalloc,[  --with-dmalloc          use dmalloc, as in                          http://www.dmalloc.com/dmalloc.tar.gz],[if test "$withval" = yes; then  AC_MSG_RESULT(yes)  AC_DEFINE(WITH_DMALLOC,1,            [Define if using the dmalloc debugging malloc package])  LIBS="$LIBS -ldmalloc"  LDFLAGS="$LDFLAGS -g"else  AC_MSG_RESULT(no)fi], [AC_MSG_RESULT(no)])])AU_DEFUN([fp_WITH_DMALLOC], [AM_WITH_DMALLOC])#serial 9# A replacement for autoconf's macro by the same name.  This version# accepts an optional argument specifying the name of the $srcdir-relative# directory in which the file getloadavg.c may be found.  It is unusual# (but justified, imho) that this file is required at ./configure time.undefine([AC_FUNC_GETLOADAVG])# AC_FUNC_GETLOADAVG# ------------------AC_DEFUN([AC_FUNC_GETLOADAVG],[ac_have_func=no # yes means we've found a way to get the load average.AC_CHECK_HEADERS(locale.h unistd.h mach/mach.h fcntl.h)AC_CHECK_FUNCS(setlocale)# By default, expect to find getloadavg.c in $srcdir/.ac_lib_dir_getloadavg=$srcdir# But if there's an argument, DIR, expect to find getloadavg.c in $srcdir/DIR.m4_ifval([$1], [ac_lib_dir_getloadavg=$srcdir/$1])# Make sure getloadavg.c is where it belongs, at ./configure-time.test -f $ac_lib_dir_getloadavg/getloadavg.c \  || AC_MSG_ERROR([getloadavg.c is not in $ac_lib_dir_getloadavg])# FIXME: Add an autoconf-time test, too?ac_save_LIBS=$LIBS# Check for getloadavg, but be sure not to touch the cache variable.(AC_CHECK_FUNC(getloadavg, exit 0, exit 1)) && ac_have_func=yes# On HPUX9, an unprivileged user can get load averages through this function.AC_CHECK_FUNCS(pstat_getdynamic)# Solaris has libkstat which does not require root.AC_CHECK_LIB(kstat, kstat_open)test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes# Some systems with -lutil have (and need) -lkvm as well, some do not.# On Solaris, -lkvm requires nlist from -lelf, so check that first# to get the right answer into the cache.# For kstat on solaris, we need libelf to force the definition of SVR4 below.if test $ac_have_func = no; then  AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS")fiif test $ac_have_func = no; then  AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS")  # Check for the 4.4BSD definition of getloadavg.  AC_CHECK_LIB(util, getloadavg,    [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes])fiif test $ac_have_func = no; then  # There is a commonly available library for RS/6000 AIX.  # Since it is not a standard part of AIX, it might be installed locally.  ac_getloadavg_LIBS=$LIBS  LIBS="-L/usr/local/lib $LIBS"  AC_CHECK_LIB(getloadavg, getloadavg,               [LIBS="-lgetloadavg $LIBS"], [LIBS=$ac_getloadavg_LIBS])fi# Make sure it is really in the library, if we think we found it,# otherwise set up the replacement function.AC_CHECK_FUNCS(getloadavg, [],               [_AC_LIBOBJ_GETLOADAVG])# Some definitions of getloadavg require that the program be installed setgid.AC_CACHE_CHECK(whether getloadavg requires setgid,               ac_cv_func_getloadavg_setgid,[AC_EGREP_CPP([Yowza Am I SETGID yet],[#include "$ac_lib_dir_getloadavg/getloadavg.c"#ifdef LDAV_PRIVILEGEDYowza Am I SETGID yet@%:@endif],              ac_cv_func_getloadavg_setgid=yes,              ac_cv_func_getloadavg_setgid=no)])if test $ac_cv_func_getloadavg_setgid = yes; then  NEED_SETGID=true  AC_DEFINE(GETLOADAVG_PRIVILEGED, 1,            [Define if the `getloadavg' function needs to be run setuid             or setgid.])else  NEED_SETGID=falsefiAC_SUBST(NEED_SETGID)dnlif test $ac_cv_func_getloadavg_setgid = yes; then  AC_CACHE_CHECK(group of /dev/kmem, ac_cv_group_kmem,[ # On Solaris, /dev/kmem is a symlink.  Get info on the real file.  ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`  # If we got an error (system does not support symlinks), try without -L.  test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`  ac_cv_group_kmem=`echo $ac_ls_output \    | sed -ne ['s/[ 	][ 	]*/ /g;	       s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;	       / /s/.* //;p;']`])  AC_SUBST(KMEM_GROUP, $ac_cv_group_kmem)dnlfiif test "x$ac_save_LIBS" = x; then  GETLOADAVG_LIBS=$LIBSelse  GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`fiLIBS=$ac_save_LIBSAC_SUBST(GETLOADAVG_LIBS)dnl])# AC_FUNC_GETLOADAVG

⌨️ 快捷键说明

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