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

📄 configure.ac

📁 股票分析源代码
💻 AC
字号:
#                                               -*- Autoconf -*-# Process this file with autoconf to produce a configure script.AC_PREREQ(2.57)#AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)AC_INIT(config.h.in)AM_INIT_AUTOMAKE(hbstock,2.1.0)AM_CONFIG_HEADER(config.h)AX_PREFIX_CONFIG_H([hbstock_config_inner.h])AC_CONFIG_SRCDIR([src/main.cpp])#echo "CXXFLAGS:$CXXFLAGS"#echo "CFLAGS:$CFLAGS"if test "X$CXXFLAGS" = "X"; then    CXXFLAGS=-O2    AC_SUBST(CXXFLAGS)	fiif test "X$CFLAGS" = "X"; then	    CFLAGS=-O2        AC_SUBST(CFLAGS)fi# Checks for programs.AC_PROG_CCAC_PROG_CXXAC_PROG_CPPAM_PROG_CC_STDCAC_C_CONSTAM_GNU_GETTEXT([external])#AC_DISABLE_STATIC#AC_LIBLTDL_CONVENIENCEAC_LIBTOOL_WIN32_DLLAC_PROG_LIBTOOL# Checks for libraries.# Checks for header files.#echo "host:$host"HOST_FLAG=WIN_FLAG=case "$host" in*-*-cygwin* )  HOST_FLAG=-D_CYGWIN_  WIN_FLAG=-D_WIN32_  ;;*-*-mingw* )  HOST_FLAG=-D_MINGW32_  WIN_FLAG=-D_WIN32_  ;;esacAC_SUBST(HOST_FLAG)AC_SUBST(WIN_FLAG)AM_CONDITIONAL(MINGW32, test x$HOST_FLAG = x-D_MINGW32_)test_program_path(){	iCount=$#	if test $iCount -ne 3	then		AC_MSG_ERROR([*** test_program_path must have 3 parameter: (program_name,default_path,test_file) ****])    	return 1	fi	prg_name=$1	prg_default_path=$2	test_file=$3	AC_MSG_NOTICE([$prg_name default path is '$prg_default_path'])	prg_dir="/opt/$prg_name /usr/local /usr/local/$prg_name /usr /mingw"	ret=0	if test ! -f "$prg_default_path/$test_file"	then		for dir in $prg_dir		do			if test -f "$dir/$test_file"			then				prg_default_path=$dir				ret=0				AC_MSG_NOTICE([Found $prg_name in '$prg_default_path'])				break			else	        	ret=1	    	fi		done	else   		AC_MSG_NOTICE([Found $prg_name in '$prg_default_path'])	fi																											   	if test $ret -ne 0	then    	AC_MSG_ERROR([*** Library $prg_name directory does not exist. ***])    	return 1	fi		echo $prg_default_path    return 0}############## start checking  ace ##########################AC_ARG_WITH([ace],AC_HELP_STRING([--with-ace],[use ace (default is Yes)]),[ACE_PATH=$withval],[ACE_PATH=no])prg_name=acedefault_path=$ACE_PATHtest_file=/include/ace/OS.hACE_ROOT_PATH=`test_program_path "$prg_name" "$default_path" "$test_file"`AC_SUBST(ACE_ROOT_PATH)############## The end of checking  ace  ######################################## start checking  cppunit ##########################AC_ARG_WITH([cppunit],AC_HELP_STRING([--with-cppunit],[use cppunit (default is Yes)]),[CPPUNIT_PATH=$withval],[CPPUNIT_PATH=no])prg_name=cppunitdefault_path=$CPPUNIT_PATHtest_file=/include/cppunit/TestSuite.hCPPUNIT_ROOT_PATH=`test_program_path "$prg_name" "$default_path" "$test_file"`AC_SUBST(CPPUNIT_ROOT_PATH)#echo "CPPUNIT_ROOT_PATH : $CPPUNIT_ROOT_PATH"AM_CONDITIONAL(CPPUNIT, test ! x$CPPUNIT_ROOT_PATH = x)############## The end of checking  cppunit  ##########################																													   AC_OUTPUT(Makefile include/Makefile etc/Makefile win_setup/Makefile src/Makefile test/Makefile po/Makefile.in)

⌨️ 快捷键说明

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