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

📄 aclocal.m4

📁 zhcon是工作在Linux控制台下的高效双字节中/日/韩(CJK)虚拟终端
💻 M4
📖 第 1 页 / 共 5 页
字号:
{  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */  exit (sig != SIGFPE);}int x = 1;int y = 0;int z;int nan;int main (){  signal (SIGFPE, sigfpe_handler);/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)  signal (SIGTRAP, sigfpe_handler);#endif/* Linux/SPARC yields signal SIGILL.  */#if defined (__sparc__) && defined (__linux__)  signal (SIGILL, sigfpe_handler);#endif  z = x / y;  nan = y / y;  exit (1);}], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,        [          # Guess based on the CPU.          case "$host_cpu" in            alpha* | i[34567]86 | m68k | s390*)              gt_cv_int_divbyzero_sigfpe="guessing yes";;            *)              gt_cv_int_divbyzero_sigfpe="guessing no";;          esac        ])    ])  case "$gt_cv_int_divbyzero_sigfpe" in    *yes) value=1;;    *) value=0;;  esac  AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,    [Define if integer division by zero raises signal SIGFPE.])])# intmax.m4 serial 1 (gettext-0.12)dnl Copyright (C) 2002-2003 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.dnl From Bruno Haible.dnl Test whether the system has the 'intmax_t' type, but don't attempt todnl find a replacement if it is lacking.AC_DEFUN([gt_TYPE_INTMAX_T],[  AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])  AC_REQUIRE([jm_AC_HEADER_STDINT_H])  AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,    [AC_TRY_COMPILE([#include <stddef.h> #include <stdlib.h>#if HAVE_STDINT_H_WITH_UINTMAX#include <stdint.h>#endif#if HAVE_INTTYPES_H_WITH_UINTMAX#include <inttypes.h>#endif], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)])  if test $gt_cv_c_intmax_t = yes; then    AC_DEFINE(HAVE_INTMAX_T, 1,      [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])  fi])# inttypes-pri.m4 serial 1 (gettext-0.11.4)dnl Copyright (C) 1997-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.dnl From Bruno Haible.# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*# macros to non-string values.  This is the case on AIX 4.3.3.AC_DEFUN([gt_INTTYPES_PRI],[  AC_REQUIRE([gt_HEADER_INTTYPES_H])  if test $gt_cv_header_inttypes_h = yes; then    AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],      gt_cv_inttypes_pri_broken,      [        AC_TRY_COMPILE([#include <inttypes.h>#ifdef PRId32char *p = PRId32;#endif], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)      ])  fi  if test "$gt_cv_inttypes_pri_broken" = yes; then    AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,      [Define if <inttypes.h> exists and defines unusable PRI* macros.])  fi])# inttypes.m4 serial 1 (gettext-0.11.4)dnl Copyright (C) 1997-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.dnl From Paul Eggert.# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with# <sys/types.h>.AC_DEFUN([gt_HEADER_INTTYPES_H],[  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,  [    AC_TRY_COMPILE(      [#include <sys/types.h>#include <inttypes.h>],      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)  ])  if test $gt_cv_header_inttypes_h = yes; then    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])  fi])# inttypes_h.m4 serial 5 (gettext-0.12)dnl Copyright (C) 1997-2003 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.dnl From Paul Eggert.# Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,# doesn't clash with <sys/types.h>, and declares uintmax_t.AC_DEFUN([jm_AC_HEADER_INTTYPES_H],[  AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,  [AC_TRY_COMPILE(    [#include <sys/types.h>#include <inttypes.h>],    [uintmax_t i = (uintmax_t) -1;],    jm_ac_cv_header_inttypes_h=yes,    jm_ac_cv_header_inttypes_h=no)])  if test $jm_ac_cv_header_inttypes_h = yes; then    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,      [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,       and declares uintmax_t. ])  fi])# lcmessage.m4 serial 3 (gettext-0.11.3)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.dnldnl This file can can be used in projects which are not available underdnl the GNU General Public License or the GNU Library General Publicdnl License but which still want to provide support for the GNU gettextdnl functionality.dnl Please note that the actual code of the GNU gettext library is covereddnl by the GNU Library General Public License, and the rest of the GNUdnl gettext package package is covered by the GNU General Public License.dnl They are *not* in the public domain.dnl Authors:dnl   Ulrich Drepper <drepper@cygnus.com>, 1995.# Check whether LC_MESSAGES is available in <locale.h>.AC_DEFUN([AM_LC_MESSAGES],[  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])# lib-ld.m4 serial 3 (gettext-0.13)dnl Copyright (C) 1996-2003 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.dnl Subroutines of libtool.m4,dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collisiondnl with libtool.m4.dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.AC_DEFUN([AC_LIB_PROG_LD_GNU],[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,[# I'd rather use --version here, but apparently some GNU ld's only accept -v.case `$LD -v 2>&1 </dev/null` in*GNU* | *'with BFD'*)  acl_cv_prog_gnu_ld=yes ;;*)  acl_cv_prog_gnu_ld=no ;;esac])with_gnu_ld=$acl_cv_prog_gnu_ld])dnl From libtool-1.4. Sets the variable LD.AC_DEFUN([AC_LIB_PROG_LD],[AC_ARG_WITH(gnu-ld,[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)AC_REQUIRE([AC_PROG_CC])dnlAC_REQUIRE([AC_CANONICAL_HOST])dnl# Prepare PATH_SEPARATOR.# The user is always right.if test "${PATH_SEPARATOR+set}" != set; then  echo "#! /bin/sh" >conf$$.sh  echo  "exit 0"   >>conf$$.sh  chmod +x conf$$.sh  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then    PATH_SEPARATOR=';'  else    PATH_SEPARATOR=:  fi  rm -f conf$$.shfiac_prog=ldif test "$GCC" = yes; then  # Check if gcc -print-prog-name=ld gives a path.  AC_MSG_CHECKING([for ld used by GCC])  case $host in  *-*-mingw*)    # gcc leaves a trailing carriage return which upsets mingw    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;  *)    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;  esac  case $ac_prog in    # Accept absolute paths.    [[\\/]* | [A-Za-z]:[\\/]*)]      [re_direlt='/[^/][^/]*/\.\./']      # Canonicalize the path of ld      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`      done      test -z "$LD" && LD="$ac_prog"      ;;  "")    # If it fails, then pretend we aren't using GCC.    ac_prog=ld    ;;  *)    # If it is relative, then search for the first ld in PATH.    with_gnu_ld=unknown    ;;  esacelif test "$with_gnu_ld" = yes; then  AC_MSG_CHECKING([for GNU ld])else  AC_MSG_CHECKING([for non-GNU ld])fiAC_CACHE_VAL(acl_cv_path_LD,[if test -z "$LD"; then  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"  for ac_dir in $PATH; do    test -z "$ac_dir" && ac_dir=.    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then      acl_cv_path_LD="$ac_dir/$ac_prog"      # Check to see if the program is GNU ld.  I'd rather use --version,      # but apparently some GNU ld's only accept -v.      # Break only if it was the GNU/non-GNU ld that we prefer.      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in      *GNU* | *'with BFD'*)	test "$with_gnu_ld" != no && break ;;      *)	test "$with_gnu_ld" != yes && break ;;      esac    fi  done  IFS="$ac_save_ifs"else  acl_cv_path_LD="$LD" # Let the user override the test with a path.fi])LD="$acl_cv_path_LD"if test -n "$LD"; then  AC_MSG_RESULT($LD)else  AC_MSG_RESULT(no)fitest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])AC_LIB_PROG_LD_GNU])# lib-link.m4 serial 4 (gettext-0.12)dnl Copyright (C) 2001-2003 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.dnl From Bruno Haible.dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname anddnl the libraries corresponding to explicit and implicit dependencies.dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables anddnl augments the CPPFLAGS variable.AC_DEFUN([AC_LIB_LINKFLAGS],[  AC_REQUIRE([AC_LIB_PREPARE_PREFIX])  AC_REQUIRE([AC_LIB_RPATH])  define([Name],[translit([$1],[./-], [___])])  define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],                               [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])  AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [    AC_LIB_LINKFLAGS_BODY([$1], [$2])    ac_cv_lib[]Name[]_libs="$LIB[]NAME"    ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"    ac_cv_lib[]Name[]_cppflags="$INC[]NAME"  ])  LIB[]NAME="$ac_cv_lib[]Name[]_libs"  LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"  INC[]NAME="$ac_cv_lib[]Name[]_cppflags"  AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)

⌨️ 快捷键说明

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