configure.in

来自「良好的代码实现」· IN 代码 · 共 65 行

IN
65
字号
AC_INIT(int4str.c)# configure.in for "libbow".# Process this file with autoconf to produce a configure script.# Let the user set CPPFLAGS and CFLAGS on the ./configure command-lineAC_SUBST(CPPFLAGS)if test -z "$CFLAGS" ; then  CFLAGS="-g -O -Wall -Wno-implicit"  #provide a default for CFLAGSfiAC_SUBST(CFLAGS)# Find the compilerAC_PROG_CCAC_PROG_CPP# Find some installation programsAC_PROG_INSTALLAC_PROG_RANLIB# Needed by weight.cAC_CHECK_FUNCS(log2f)AC_CHECK_FUNCS(sqrtf)# Find location of the perl interpreter executable#  first look for `perl5'AC_PATH_PROG(PERL, perl5)#  if it isn't found, look for `perl'if test -z "$PERL" ; then  AC_PATH_PROG(PERL, perl)fiAC_SUBST(PERL)# Find out if `__attribute__ ((constructor))' works.  If it doesn't,# define CONSTRUCTOR_FAILS.AC_MSG_CHECKING(if __attribute__((constructor)) works)AC_TRY_RUN(	int did_foo = 0;	void foo () __attribute__ ((constructor));	void foo () {	  did_foo = 1;	}	main() {	  if (did_foo)	    exit (0);	  exit (-1);	},CONSTRUCTOR_FAILS=0  AC_MSG_RESULT(yes),CONSTRUCTOR_FAILS=1; AC_DEFINE(CONSTRUCTOR_FAILS)  AC_MSG_RESULT(no),CONSTRUCTOR_FAILS=1; AC_DEFINE(CONSTRUCTOR_FAILS)  AC_MSG_RESULT(cross-compiling; guessing no))	  # Look for MSWindows winsock libraryAC_CHECK_LIB(wsock32, main)# Make AC_OUTPUT call configure in these subdirectoriesAC_CONFIG_SUBDIRS(argp)# Write the MakefilesAC_OUTPUT(Makefile)

⌨️ 快捷键说明

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