📄 configure.in
字号:
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 -Wimplicit" #provide a default for CFLAGSfiAC_SUBST(CFLAGS)# Find the compilerAC_PROG_CCAC_PROG_CPP# Find some installation programsAC_PROG_INSTALLAC_PROG_RANLIBAC_PROG_YACCAC_PROG_LEX# Needed by Solaris machines (most other machines have socket stuff in libc)AC_CHECK_LIB(socket,main)AC_CHECK_LIB(nsl,main)# Needed by hdb.cAC_CHECK_FUNCS(strerror)# Needed by random.cAC_CHECK_FUNCS(gettimeofday)AC_CHECK_FUNCS(random)AC_CHECK_FUNCS(srandom)# Needed by lex-simple.cAC_CHECK_FUNCS(setenv)# Needed in various filesAC_CHECK_FUNCS(strchr)AC_CHECK_FUNCS(strrchr)# Needed by weight.cAC_CHECK_FUNCS(log2f)AC_CHECK_FUNCS(sqrtf)# Needed by svm_*.c on some systemsAC_EGREP_CPP(fpsetmask, [#include <floatingpoint.h> #ifdef fpsetmask fpsetmask #endif ], echo "#define HAVE_FPSETMASK 1" >> confdefs.h)# Needed on DEC alpha machinesAC_CHECK_HEADERS(alloca.h)# 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -