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

📄 aclocal.m4

📁 GNOME下的短信息发送中心
💻 M4
📖 第 1 页 / 共 4 页
字号:
  esac  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la  INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])])# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for# the libltdl installable library and INCLTDL to the include flags for# the libltdl header and adds --enable-ltdl-install to the configure# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed# with '${top_srcdir}/' (note the single quotes!).  If your package is# not flat and you're not using automake, define top_builddir and# top_srcdir appropriately in the Makefiles.# In the future, this macro may have to be called after AC_PROG_LIBTOOL.AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  AC_CHECK_LIB(ltdl, main,  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],  [if test x"$enable_ltdl_install" = xno; then     AC_MSG_WARN([libltdl not installed, but installation disabled])   else     enable_ltdl_install=yes   fi  ])  if test x"$enable_ltdl_install" = x"yes"; then    ac_configure_args="$ac_configure_args --enable-ltdl-install"    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])  else    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"    LIBLTDL="-lltdl"    INCLTDL=  fi])dnl old namesAC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnlAC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnlAC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnlAC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnlAC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnlAC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnlAC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnldnl This is just to silence aclocal about the macro not being usedifelse([AC_DISABLE_FAST_INSTALL])dnldnl GNOME_COMPILE_WARNINGSdnl Turn on many useful compiler warningsdnl For now, only works on GCCAC_DEFUN([GNOME_COMPILE_WARNINGS],[  AC_ARG_ENABLE(compile-warnings,     [  --enable-compile-warnings=[no/minimum/yes]	Turn on compiler warnings.],,enable_compile_warnings=minimum)  AC_MSG_CHECKING(what warning flags to pass to the C compiler)  warnCFLAGS=  if test "x$GCC" != xyes; then    enable_compile_warnings=no  fi  if test "x$enable_compile_warnings" != "xno"; then    if test "x$GCC" = "xyes"; then      case " $CFLAGS " in      *[\ \	]-Wall[\ \	]*) ;;      *) warnCFLAGS="-Wall -Wunused" ;;      esac      ## -W is not all that useful.  And it cannot be controlled      ## with individual -Wno-xxx flags, unlike -Wall      if test "x$enable_compile_warnings" = "xyes"; then	warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"      fi    fi  fi  AC_MSG_RESULT($warnCFLAGS)  AC_ARG_ENABLE(iso-c,    [  --enable-iso-c          Try to warn if code is not ISO C ],,    enable_iso_c=no)  AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)  complCFLAGS=  if test "x$enable_iso_c" != "xno"; then    if test "x$GCC" = "xyes"; then      case " $CFLAGS " in      *[\ \	]-ansi[\ \	]*) ;;      *) complCFLAGS="$complCFLAGS -ansi" ;;      esac      case " $CFLAGS " in      *[\ \	]-pedantic[\ \	]*) ;;      *) complCFLAGS="$complCFLAGS -pedantic" ;;      esac    fi  fi  AC_MSG_RESULT($complCFLAGS)  if test "x$cflags_set" != "xyes"; then    CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"    cflags_set=yes    AC_SUBST(cflags_set)  fi])dnl For C++, do basically the same thing.AC_DEFUN([GNOME_CXX_WARNINGS],[  AC_ARG_ENABLE(cxx-warnings,     [  --enable-cxx-warnings=[no/minimum/yes]	Turn on compiler warnings.],,enable_cxx_warnings=minimum)  AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)  warnCXXFLAGS=  if test "x$GCC" != xyes; then    enable_compile_warnings=no  fi  if test "x$enable_cxx_warnings" != "xno"; then    if test "x$GCC" = "xyes"; then      case " $CXXFLAGS " in      *[\ \	]-Wall[\ \	]*) ;;      *) warnCXXFLAGS="-Wall -Wno-unused" ;;      esac      ## -W is not all that useful.  And it cannot be controlled      ## with individual -Wno-xxx flags, unlike -Wall      if test "x$enable_cxx_warnings" = "xyes"; then	warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes -Wmissing-declarations -Wshadow -Woverloaded-virtual"      fi    fi  fi  AC_MSG_RESULT($warnCXXFLAGS)   AC_ARG_ENABLE(iso-cxx,     [  --enable-iso-cxx          Try to warn if code is not ISO C++ ],,     enable_iso_cxx=no)   AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)   complCXXFLAGS=   if test "x$enable_iso_cxx" != "xno"; then     if test "x$GCC" = "xyes"; then      case " $CXXFLAGS " in      *[\ \	]-ansi[\ \	]*) ;;      *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;      esac      case " $CXXFLAGS " in      *[\ \	]-pedantic[\ \	]*) ;;      *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;      esac     fi   fi  AC_MSG_RESULT($complCXXFLAGS)  if test "x$cxxflags_set" != "xyes"; then    CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"    cxxflags_set=yes    AC_SUBST(cxxflags_set)  fi])# Macro to add for using GNU gettext.# Ulrich Drepper <drepper@cygnus.com>, 1995.## 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.# Please note that the actual code is *not* freely available.# serial 5AC_DEFUN(AM_WITH_NLS,  [AC_MSG_CHECKING([whether NLS is requested])    dnl Default is enabled NLS    AC_ARG_ENABLE(nls,      [  --disable-nls           do not use Native Language Support],      USE_NLS=$enableval, USE_NLS=yes)    AC_MSG_RESULT($USE_NLS)    AC_SUBST(USE_NLS)    USE_INCLUDED_LIBINTL=no    dnl If we use NLS figure out what method    if test "$USE_NLS" = "yes"; then      AC_DEFINE(ENABLE_NLS)      AC_MSG_CHECKING([whether included gettext is requested])      AC_ARG_WITH(included-gettext,        [  --with-included-gettext use the GNU gettext library included here],        nls_cv_force_use_gnu_gettext=$withval,        nls_cv_force_use_gnu_gettext=no)      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then        dnl User does not insist on using GNU NLS library.  Figure out what        dnl to use.  If gettext or catgets are available (in this order) we        dnl use this.  Else we have to fall back to GNU NLS library.	dnl catgets is only used if permitted by option --with-catgets.	nls_cv_header_intl=	nls_cv_header_libgt=	CATOBJEXT=NONE	AC_CHECK_HEADER(libintl.h,	  [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,	    [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],	       gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])	   if test "$gt_cv_func_gettext_libc" != "yes"; then	     AC_CHECK_LIB(intl, bindtextdomain,	       [AC_CACHE_CHECK([for gettext in libintl],		 gt_cv_func_gettext_libintl,		 [AC_CHECK_LIB(intl, gettext,		  gt_cv_func_gettext_libintl=yes,		  gt_cv_func_gettext_libintl=no)],		 gt_cv_func_gettext_libintl=no)])	   fi	   if test "$gt_cv_func_gettext_libc" = "yes" \	      || test "$gt_cv_func_gettext_libintl" = "yes"; then	      AC_DEFINE(HAVE_GETTEXT)	      AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,		[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl	      if test "$MSGFMT" != "no"; then		AC_CHECK_FUNCS(dcgettext)		AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)		AM_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],		  [CATOBJEXT=.mo		   DATADIRNAME=lib])		INSTOBJEXT=.mo	      fi	    fi	])        if test "$CATOBJEXT" = "NONE"; then	  AC_MSG_CHECKING([whether catgets can be used])	  AC_ARG_WITH(catgets,	    [  --with-catgets          use catgets functions if available],	    nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)	  AC_MSG_RESULT($nls_cv_use_catgets)	  if test "$nls_cv_use_catgets" = "yes"; then	    dnl No gettext in C library.  Try catgets next.	    AC_CHECK_LIB(i, main)	    AC_CHECK_FUNC(catgets,	      [AC_DEFINE(HAVE_CATGETS)	       INTLOBJS="\$(CATOBJS)"	       AC_PATH_PROG(GENCAT, gencat, no)dnl	       if test "$GENCAT" != "no"; then		 AC_PATH_PROG(GMSGFMT, gmsgfmt, no)		 if test "$GMSGFMT" = "no"; then		   AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,		    [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)		 fi		 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,		   [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)		 USE_INCLUDED_LIBINTL=yes		 CATOBJEXT=.cat		 INSTOBJEXT=.cat		 DATADIRNAME=lib		 INTLDEPS='$(top_builddir)/intl/libintl.a'		 INTLLIBS=$INTLDEPS		 LIBS=`echo $LIBS | sed -e 's/-lintl//'`		 nls_cv_header_intl=intl/libintl.h		 nls_cv_header_libgt=intl/libgettext.h	       fi])	  fi        fi        if test "$CATOBJEXT" = "NONE"; then	  dnl Neither gettext nor catgets in included in the C library.	  dnl Fall back on GNU gettext library.	  nls_cv_use_gnu_gettext=yes        fi      fi      if test "$nls_cv_use_gnu_gettext" = "yes"; then        dnl Mark actions used to generate GNU NLS library.        INTLOBJS="\$(GETTOBJS)"        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,	  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)        AC_SUBST(MSGFMT)	USE_INCLUDED_LIBINTL=yes        CATOBJEXT=.gmo        INSTOBJEXT=.mo        DATADIRNAME=share	INTLDEPS='$(top_builddir)/intl/libintl.a'	INTLLIBS=$INTLDEPS	LIBS=`echo $LIBS | sed -e 's/-lintl//'`        nls_cv_header_intl=intl/libintl.h        nls_cv_header_libgt=intl/libgettext.h      fi      dnl Test whether we really found GNU xgettext.      if test "$XGETTEXT" != ":"; then	dnl If it is no 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    else      DATADIRNAME=share      nls_cv_header_intl=intl/libintl.h      nls_cv_header_libgt=intl/libgettext.h    fi    AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)    AC_OUTPUT_COMMANDS(     [case "$CONFIG_FILES" in *po/Makefile.in*)        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile      esac])    # If this is used in GNU gettext we have to set USE_NLS to `yes'    # because some of the sources are only built for this goal.    if test "$PACKAGE" = gettext; then      USE_NLS=yes      USE_INCLUDED_LIBINTL=yes    fi    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(USE_INCLUDED_LIBINTL)    AC_SUBST(CATALOGS)    AC_SUBST(CATOBJEXT)    AC_SUBST(DATADIRNAME)    AC_SUBST(GMOFILES)    AC_SUBST(INSTOBJEXT)    AC_SUBST(INTLDEPS)    AC_SUBST(INTLLIBS)    AC_SUBST(INTLOBJS)    AC_SUBST(POFILES)    AC_SUBST(POSUB)  ])AC_DEFUN(AM_GNU_GETTEXT,  [AC_REQUIRE([AC_PROG_MAKE_SET])dnl   AC_REQUIRE([AC_PROG_CC])dnl   AC_REQUIRE([AC_PROG_RANLIB])dnl   AC_REQUIRE([AC_ISC_POSIX])dnl   AC_REQUIRE([AC_HEADER_STDC])dnl   AC_REQUIRE([AC_C_CONST])dnl   AC_REQUIRE([AC_C_INLINE])dnl   AC_REQUIRE([AC_TYPE_OFF_T])dnl   AC_REQUIRE([AC_TYPE_SIZE_T])dnl   AC_REQUIRE([AC_FUNC_ALLOCA])dnl   AC_REQUIRE([AC_FUNC_MMAP])dnl   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \unistd.h sys/param.h])   AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \strdup __argz_count __argz_stringify __argz_next])

⌨️ 快捷键说明

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