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

📄 aclocal.m4

📁 minicom 源码
💻 M4
📖 第 1 页 / 共 3 页
字号:
   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 Enable libtool support if the surrounding package wishes it.   INTL_LIBTOOL_SUFFIX_PREFIX=ifelse([$1], use-libtool, [l], [])   AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)  ])# Search path for a program which passes the given test.# Ulrich Drepper <drepper@cygnus.com>, 1996.## This file can be copied and used freely without restrictions.  It can# be used in projects which are not available under the GNU General Public# License or the GNU Library General Public License but which still want# to provide support for the GNU gettext functionality.# Please note that the actual code of the GNU gettext library is covered# by the GNU Library General Public License, and the rest of the GNU# gettext package package is covered by the GNU General Public License.# They are *not* in the public domain.# serial 2dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])AC_DEFUN([AM_PATH_PROG_WITH_TEST],[# Extract the first word of "$2", so it can be a program name with args.set dummy $2; ac_word=[$]2AC_MSG_CHECKING([for $ac_word])AC_CACHE_VAL(ac_cv_path_$1,[case "[$]$1" in  /*)  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.  ;;  *)  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"  for ac_dir in ifelse([$5], , $PATH, [$5]); do    test -z "$ac_dir" && ac_dir=.    if test -f $ac_dir/$ac_word; then      if [$3]; then	ac_cv_path_$1="$ac_dir/$ac_word"	break      fi    fi  done  IFS="$ac_save_ifs"dnl If no 4th arg is given, leave the cache variable unset,dnl so AC_PATH_PROGS will keep looking.ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"])dnl  ;;esac])dnl$1="$ac_cv_path_$1"if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then  AC_MSG_RESULT([$]$1)else  AC_MSG_RESULT(no)fiAC_SUBST($1)dnl])#serial 2# Test for the GNU C Library, version 2.1 or newer.# From Bruno Haible.AC_DEFUN([jm_GLIBC21],  [    AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,      ac_cv_gnu_library_2_1,      [AC_EGREP_CPP([Lucky GNU user],	[#include <features.h>#ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)  Lucky GNU user #endif#endif	],	ac_cv_gnu_library_2_1=yes,	ac_cv_gnu_library_2_1=no)      ]    )    AC_SUBST(GLIBC21)    GLIBC21="$ac_cv_gnu_library_2_1"  ])#serial AM2dnl From Bruno Haible.AC_DEFUN([AM_ICONV],[  dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and  dnl those with the standalone portable GNU libiconv installed).  AC_ARG_WITH([libiconv-prefix],[  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib], [    for dir in `echo "$withval" | tr : ' '`; do      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi    done   ])  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 -liconv"      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.])    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)size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);#elsesize_t iconv();#endif], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])    am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`    AC_MSG_RESULT([$]{ac_t:-         }[$]am_cv_proto_iconv)    AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,      [Define as const if the declaration of iconv() needs const.])  fi  LIBICONV=  if test "$am_cv_lib_iconv" = yes; then    LIBICONV="-liconv"  fi  AC_SUBST(LIBICONV)])#serial AM1dnl From Bruno Haible.AC_DEFUN([AM_LANGINFO_CODESET],[  AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,    [AC_TRY_LINK([#include <langinfo.h>],      [char* cs = nl_langinfo(CODESET);],      am_cv_langinfo_codeset=yes,      am_cv_langinfo_codeset=no)    ])  if test $am_cv_langinfo_codeset = yes; then    AC_DEFINE(HAVE_LANGINFO_CODESET, 1,      [Define if you have <langinfo.h> and nl_langinfo(CODESET).])  fi])# Check whether LC_MESSAGES is available in <locale.h>.# 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 General Public# License or the GNU Library General Public License but which still want# to provide support for the GNU gettext functionality.# Please note that the actual code of the GNU gettext library is covered# by the GNU Library General Public License, and the rest of the GNU# gettext package package is covered by the GNU General Public License.# They are *not* in the public domain.# serial 2AC_DEFUN([AM_LC_MESSAGES],  [if test $ac_cv_header_locale_h = yes; then    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])    if test $am_cv_val_LC_MESSAGES = yes; then      AC_DEFINE(HAVE_LC_MESSAGES, 1,        [Define if your <locale.h> file defines LC_MESSAGES.])    fi  fi])dnl From Jim Meyering.# serial 1AC_DEFUN([AM_SYS_POSIX_TERMIOS],[AC_CACHE_CHECK([POSIX termios], am_cv_sys_posix_termios,  [AC_TRY_LINK([#include <sys/types.h>#include <unistd.h>#include <termios.h>],  [/* SunOS 4.0.3 has termios.h but not the library calls.  */   tcgetattr(0, 0);],  am_cv_sys_posix_termios=yes,  am_cv_sys_posix_termios=no)])])dnl From Jim Meyering.# serial 1AC_DEFUN([AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL],[AC_REQUIRE([AM_SYS_POSIX_TERMIOS]) AC_CACHE_CHECK([whether use of TIOCGWINSZ requires sys/ioctl.h],	        am_cv_sys_tiocgwinsz_needs_sys_ioctl_h,  [am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no  gwinsz_in_termios_h=no  if test $am_cv_sys_posix_termios = yes; then    AC_EGREP_CPP([yes],    [#include <sys/types.h>#     include <termios.h>#     ifdef TIOCGWINSZ        yes#     endif    ], gwinsz_in_termios_h=yes)  fi  if test $gwinsz_in_termios_h = no; then    AC_EGREP_CPP([yes],    [#include <sys/types.h>#     include <sys/ioctl.h>#     ifdef TIOCGWINSZ        yes#     endif    ], am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes)  fi  ])  if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then    AC_DEFINE(GWINSZ_IN_SYS_IOCTL,1,              [Define if TIOCGWINSZ requires sys/ioctl.h])  fi])# serial 1AC_DEFUN([AM_C_PROTOTYPES],[AC_REQUIRE([AM_PROG_CC_STDC])AC_REQUIRE([AC_PROG_CPP])AC_MSG_CHECKING([for function prototypes])if test "$am_cv_prog_cc_stdc" != no; then  AC_MSG_RESULT(yes)  AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes])  U= ANSI2KNR=else  AC_MSG_RESULT(no)  U=_ ANSI2KNR=./ansi2knr  # Ensure some checks needed by ansi2knr itself.  AC_HEADER_STDC  AC_CHECK_HEADERS(string.h)fiAC_SUBST(U)dnlAC_SUBST(ANSI2KNR)dnl])dnl From Jim Meyering.  Use this if you use the GNU error.[ch].dnl FIXME: Migrate into libitAC_DEFUN([AM_FUNC_ERROR_AT_LINE],[AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line, [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");],              am_cv_lib_error_at_line=yes,	      am_cv_lib_error_at_line=no)]) if test $am_cv_lib_error_at_line = no; then   LIBOBJS="$LIBOBJS error.o" fi AC_SUBST(LIBOBJS)dnl])# serial 1AC_DEFUN([AM_WITH_DMALLOC],[AC_MSG_CHECKING(if malloc debugging is wanted)AC_ARG_WITH(dmalloc,[  --with-dmalloc          use dmalloc, as in                          ftp://ftp.letters.com/src/dmalloc/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)])])

⌨️ 快捷键说明

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