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

📄 configure.in

📁 linux平台中
💻 IN
字号:
# Configuration for grep## Alain Magloire <alainm@gnu.org># Bernhard Rosenkraenzer <bero@redhat.com>#dnl Process this file with autoconf to produce a configure scriptAC_INIT(src/grep.c)AC_DEFINE(GREP, 1, [We are building grep])AC_PREREQ(2.13)dnl Automake stuff.AM_INIT_AUTOMAKE(grep, 2.5)AM_CONFIG_HEADER(config.h:config.hin)dnl Check for argumentsAC_ARG_ENABLE(perl-regexp, [  --disable-perl-regexp           disable perl-regexp], [case "${enableval}" in  yes) testpcre=yes ;;  no)  testpcre=no ;;  *)   AC_MSG_ERROR(bad value ${enableval} for --disable-perl-regexp) ;; esac],[testpcre=yes])dnl Checks for programs.AC_CANONICAL_HOSTAC_PROG_AWKAC_PROG_CCAC_PROG_INSTALLAC_PROG_RANLIBdnl Checks for typedefs, structures, and compiler characteristics.AC_SYS_LARGEFILEAM_C_PROTOTYPESAC_TYPE_SIZE_TAC_CHECK_TYPE(ssize_t, int)AC_C_CONSTjm_AC_TYPE_UINTMAX_Tdnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS(string.h stdlib.h sys/param.h memory.h unistd.h libintl.h)AC_CHECK_HEADERS(wctype.h wchar.h)AC_HEADER_DIRENTAC_HEADER_STATAC_MBSTATE_Tdnl Checks for functions.AC_FUNC_ALLOCAAC_FUNC_CLOSEDIR_VOIDAC_FUNC_MMAPdnl getpagesize is checked for by AC_FUNC_MMAP.AC_CHECK_FUNCS(btowc isascii memmove setmode strerror wctype mbrtowc)AC_REPLACE_FUNCS(memchr stpcpy strtoul atexit fnmatch)jm_AC_PREREQ_XSTRTOUMAXdnl Replace this with jm_CHECK_DECLS once autoconf 2.15 is out.jm_CHECK_DECLARATIONS([#include <stdlib.h>], [strtoul strtoull])test $jm_cv_func_decl_strtoul != yesAC_DEFINE_UNQUOTED([HAVE_DECL_STRTOUL], $?,  [Define if <stdlib.h> declares strtoul.])test $jm_cv_func_decl_strtoull != yesAC_DEFINE_UNQUOTED([HAVE_DECL_STRTOULL], $?,  [Define if <stdlib.h> declares strtoull.])dnl for VC++case "$ac_cv_prog_CC" in cl*)  AC_DEFINE([alloca], _alloca, [Define if your compiler is broken]) ;; *)    ;;esacdnl I18N featureALL_LINGUAS="cs de el eo es et fr gl hr id it ja ko nl no pl pt_BR ru sl sv"AM_GNU_GETTEXTdnl DOS file name conventiondnl sets HAVE_DOS_FILE_NAMESAC_DOSFILEdnl check for the environ separatordnl sets SEPAM_SEPdnl OS specificsdnl sets {EXE,OBJ}EXTAC_EXEEXTdnl Invoke the (capitalized) ac_objext macro without spelling its name.dnl This works around a bug in automake 1.4 with ansi2knr.dnl Automake looks for (capitalized) ac_objext by grepping for it,dnl so it won't find it in this file.ifelse(,, [AC][_OBJEXT])dnl some folks ask for this, that's fine by mednl hope they know what they're doing ...dnl if glibc2 regex is not includeddnl Many GNU/Linux people have differentdnl glibc versions with buggy regex.jm_INCLUDED_REGEX(lib/regex.c)dnl Many people on non-GNU/Linux systems don't have getoptAC_CHECK_FUNC(getopt_long,  [    AC_ARG_WITH(included-getopt,      [  --with-included-getopt  Use the included getopt rather than glibc's],      with_getopt=$withval,      with_getopt=$no)    if test "x$with_getopt" = xyes; then      AC_LIBOBJ(getopt)      AC_LIBOBJ(getopt1)    fi  ],  [    AC_LIBOBJ(getopt)    AC_LIBOBJ(getopt1)  ])dnl Some installers want to be informed if we do not use our regex.dnl For example, if the host platform uses dynamic linking and the installerdnl knows that the grep may be invoked on other hosts with buggy libraries,dnl then the installer should configure --with-included-regex.if test "$jm_with_regex" = no; then	AC_MSG_WARN(Included lib/regex.c not used)fidnl These are the prerequisite macros for GNU's error.c file.AC_FUNC_STRERROR_Rjm_PREREQ_ERRORdnl Determine whether malloc accepts 0 as its argument.dnl If it doesn't, arrange to use the replacement function.jm_FUNC_MALLOCjm_FUNC_REALLOC# support for pcreif test x"$testpcre" = x"yes"; then	if pcre-config --cflags >/dev/null 2>&1; then		CFLAGS="$CFLAGS `pcre-config --cflags`"		LIBS="$LIBS `pcre-config --libs`"	fi	AC_CHECK_LIB(pcre, pcre_exec)fidnl Check how to create the {e,f}grep linksAC_MSG_CHECKING([How to create links])rm -f test00 test01touch test00ln -s test00 test01 || :SYMLINK=""SYMLINKFROM="grep"if test -L test01; then	SYMLINK="ln -s"else	SYMLINKFROM="${bindir}/grep"	rm -f test01	ln test00 test01 || :	if test -e test01; then		SYMLINK="ln"	else		SYMLINK="cp"	fifiAC_MSG_RESULT($SYMLINK)AC_SUBST(SYMLINK)AC_SUBST(SYMLINKFROM)rm -f test00 test01AC_OUTPUT(Makefile lib/Makefile lib/posix/Makefile src/Makefile tests/Makefile po/Makefile.in intl/Makefile doc/Makefile m4/Makefile vms/Makefile bootstrap/Makefile, [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; echo timestamp > stamp-h])

⌨️ 快捷键说明

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