📄 acinclude.m4
字号:
dnldnl Initialize an autoconf project that use PACC::Math.dnldnl by Christian Gagne, 09/08/2005dnldnl PACC_MATH_INIT(PACC_MATH_PATHdnl [, PACC_MATH_INCLUDEPATH]dnl [, PACC_MATH_LIBPATH])dnlAC_DEFUN([PACC_MATH_INIT],[dnl Set headers and libraries path correctlyAC_ARG_WITH(pacc-math, [ --with-pacc-math=DIR specify installation path of PACC::Math], [pacc_math_path="$withval"], [pacc_math_path="$1"])AC_ARG_WITH(pacc-math-include, [ --with-pacc-math-include=DIR specify exact dir for PACC::Math headers], [pacc_math_path_include="$withval"])AC_ARG_WITH(pacc-math-libdir, [ --with-pacc-math-libdir=DIR specify exact dir for PACC::Math libraries], [pacc_math_path_libdir="$withval"])if test -z "$pacc_math_path"; then pacc_math_path="$1"fiif test -z "$pacc_math_path_include"; then if test -z "$2"; then pacc_math_path_include="$pacc_math_path"/include else pacc_math_path_include="$2" fifiif test -z "$pacc_math_path_libdir"; then if test -z "$3"; then pacc_math_path_libdir="$pacc_math_path"/lib else pacc_math_path_libdir="$3" fifiCPPFLAGS="$CPPFLAGS -I$pacc_math_path_include"LIBS="$pacc_math_path_libdir/libpacc-math.la $LIBS"dnl Finally, do a little compilation test.AC_CACHE_CHECK(if PACC::Math headers are correctly included,pacc_math_include_test,[AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_CPP([Math.hpp], pacc_math_include_test=yes, pacc_math_include_test=no) AC_LANG_RESTORE])])dnldnl Initialize an autoconf project that use PACC::Threading.dnldnl by Christian Gagne, 09/08/2005dnldnl PACC_THREADING_INIT(PACC_THREADING_PATHdnl [, PACC_THREADING_INCLUDEPATH]dnl [, PACC_THREADING_LIBPATH])dnlAC_DEFUN([PACC_THREADING_INIT],[dnl Set headers and libraries path correctlyAC_ARG_WITH(pacc-threading, [ --with-pacc-threading=DIR specify installation path of PACC::Threading], [pacc_threading_path="$withval"], [pacc_threading_path="$1"])AC_ARG_WITH(pacc-threading-include, [ --with-pacc-threading-include=DIR specify exact dir for PACC::Threading headers], [pacc_threading_path_include="$withval"])AC_ARG_WITH(pacc-threading-libdir, [ --with-pacc-threading-libdir=DIR specify exact dir for PACC::Threading libraries], [pacc_threading_path_libdir="$withval"])if test -z "$pacc_threading_path"; then pacc_threading_path="$1"fiif test -z "$pacc_threading_path_include"; then if test -z "$2"; then pacc_threading_path_include="$pacc_threading_path"/include else pacc_threading_path_include="$2" fifiif test -z "$pacc_threading_path_libdir"; then if test -z "$3"; then pacc_threading_path_libdir="$pacc_threading_path"/lib else pacc_threading_path_libdir="$3" fifiCPPFLAGS="$CPPFLAGS -I$pacc_threading_path_include"LIBS="$pacc_threading_path_libdir/libpacc-threading.la $LIBS"dnl Finally, do a little compilation test.AC_CACHE_CHECK(if PACC::Threading headers are correctly included,pacc_threading_include_test,[AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_CPP([Threading.hpp], pacc_threading_include_test=yes, pacc_threading_include_test=no) AC_LANG_RESTORE])])dnldnl Initialize an autoconf project that use PACC::Util.dnldnl by Christian Gagne, 09/08/2005dnldnl PACC_UTIL_INIT(PACC_UTIL_PATHdnl [, PACC_UTIL_INCLUDEPATH]dnl [, PACC_UTIL_LIBPATH])dnlAC_DEFUN([PACC_UTIL_INIT],[dnl Set headers and libraries path correctlyAC_ARG_WITH(pacc-util, [ --with-pacc-util=DIR specify installation path of PACC::Util], [pacc_util_path="$withval"], [pacc_util_path="$1"])AC_ARG_WITH(pacc-util-include, [ --with-pacc-util-include=DIR specify exact dir for PACC::Util headers], [pacc_util_path_include="$withval"])AC_ARG_WITH(pacc-util-libdir, [ --with-pacc-util-libdir=DIR specify exact dir for PACC::Util libraries], [pacc_util_path_libdir="$withval"])if test -z "$pacc_util_path"; then pacc_util_path="$1"fiif test -z "$pacc_util_path_include"; then if test -z "$2"; then pacc_util_path_include="$pacc_util_path"/include else pacc_util_path_include="$2" fifiif test -z "$pacc_util_path_libdir"; then if test -z "$3"; then pacc_util_path_libdir="$pacc_util_path"/lib else pacc_util_path_libdir="$3" fifiCPPFLAGS="$CPPFLAGS -I$pacc_util_path_include"LIBS="$pacc_util_path_libdir/libpacc-util.la $LIBS"dnl Finally, do a little compilation test.AC_CACHE_CHECK(if PACC::Util headers are correctly included,pacc_util_include_test,[AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_CPP([Util.hpp], pacc_util_include_test=yes, pacc_util_include_test=no) AC_LANG_RESTORE])])dnldnl Initialize an autoconf project that use PACC::XML.dnldnl by Christian Gagne, 09/08/2005dnldnl PACC_XML_INIT(PACC_XML_PATHdnl [, PACC_XML_INCLUDEPATH]dnl [, PACC_XML_LIBPATH])dnlAC_DEFUN([PACC_XML_INIT],[dnl Set headers and libraries path correctlyAC_ARG_WITH(pacc-xml, [ --with-pacc-xml=DIR specify installation path of PACC::XML], [pacc_xml_path="$withval"], [pacc_xml_path="$1"])AC_ARG_WITH(pacc-xml-include, [ --with-pacc-xml-include=DIR specify exact dir for PACC::XML headers], [pacc_xml_path_include="$withval"])AC_ARG_WITH(pacc-xml-libdir, [ --with-pacc-xml-libdir=DIR specify exact dir for PACC::XML libraries], [pacc_xml_path_libdir="$withval"])if test -z "$pacc_xml_path"; then pacc_xml_path="$1"fiif test -z "$pacc_xml_path_include"; then if test -z "$2"; then pacc_xml_path_include="$pacc_xml_path"/include else pacc_xml_path_include="$2" fifiif test -z "$pacc_xml_path_libdir"; then if test -z "$3"; then pacc_xml_path_libdir="$pacc_xml_path"/lib else pacc_xml_path_libdir="$3" fifiCPPFLAGS="$CPPFLAGS -I$pacc_xml_path_include"LIBS="$pacc_xml_path_libdir/libpacc-xml.la $LIBS"dnl Finally, do a little compilation test.AC_CACHE_CHECK(if PACC::XML headers are correctly included,pacc_xml_include_test,[AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_CPP([XML.hpp], pacc_xml_include_test=yes, pacc_xml_include_test=no) AC_LANG_RESTORE])])dnldnl Initialize an autoconf project that use Open BEAGLE.dnldnl by Christian Gagne, 14/10/2002, modified 10/10/2004 and 09/08/2005dnldnl OB_BEAGLE_INIT(BEAGLE_PATHdnl [, BEAGLE_INCLUDEPATH]dnl [, BEAGLE_LIBPATH]dnl [, BEAGLE_GA_INCLUDEPATH]dnl [, BEAGLE_GA_LIBPATH]dnl [, BEAGLE_GP_INCLUDEPATH]dnl [, BEAGLE_GP_LIBPATH]dnl [, BEAGLE_COEV_INCLUDEPATH]dnl [, BEAGLE_COEV_LIBPATH])dnlAC_DEFUN([OB_BEAGLE_INIT],[dnl Open BEAGLE optimization mode option.AC_ARG_ENABLE(optimization, [ --enable-optimization enable optimization mode [default=no]], [case $enableval in yes) enable_optimization=yes;; no) enable_optimization=no;; *) enable_optimization=no;; esac], enable_optimization=no)if test "$enable_optimization" = yes; then CFLAGS=`echo $CFLAGS | sed 's/\(?*\)-g\(?*\)/\1\2/'` CXXFLAGS=`echo $CXXFLAGS | sed 's/\(?*\)-g\(?*\)/\1\2/'`else CFLAGS=`echo $CFLAGS | sed 's/\(?*\)-O[[0-9]]\(?*\)/\1\2/'` CXXFLAGS=`echo $CXXFLAGS | sed 's/\(?*\)-O[[0-9]]\(?*\)/\1\2/'`fidnl Set headers and libraries path correctlyAC_ARG_WITH(beagle, [ --with-beagle=DIR specify installation path of Open BEAGLE], [ob_beagle_path="$withval"], [ob_beagle_path="$1"])AC_ARG_WITH(beagle-include, [ --with-beagle-include=DIR specify exact dir for Open BEAGLE headers], [ob_beagle_path_include="$withval"])AC_ARG_WITH(beagle-GA-include, [ --with-beagle-GA-include=DIR specify exact dir for Open BEAGLE GA headers], [ob_beagle_path_ga_include="$withval"])AC_ARG_WITH(beagle-GP-include, [ --with-beagle-GP-include=DIR specify exact dir for Open BEAGLE GP headers], [ob_beagle_path_gp_include="$withval"])AC_ARG_WITH(beagle-Coev-include, [ --with-beagle-Coev-include=DIR specify exact dir for Open BEAGLE co-evolution headers], [ob_beagle_path_coev_include="$withval"])AC_ARG_WITH(beagle-libdir, [ --with-beagle-libdir=DIR specify exact dir for Open BEAGLE libraries], [ob_beagle_path_libdir="$withval"])AC_ARG_WITH(beagle-GA-libdir, [ --with-beagle-GA-libdir=DIR specify exact dir for Open BEAGLE GA libraries], [ob_beagle_path_ga_libdir="$withval"])AC_ARG_WITH(beagle-GP-libdir, [ --with-beagle-GP-libdir=DIR specify exact dir for Open BEAGLE GP libraries], [ob_beagle_path_gp_libdir="$withval"])AC_ARG_WITH(beagle-Coev-libdir, [ --with-beagle-Coev-libdir=DIR specify exact dir for Open BEAGLE co-evolution libraries], [ob_beagle_path_coev_libdir="$withval"])if test -z "$ob_beagle_path"; then ob_beagle_path="$1"fiif test -z "$ob_beagle_path_include"; then if test -z "$2"; then ob_beagle_path_include="$ob_beagle_path"/include else ob_beagle_path_include="$2" fifiif test -z "$ob_beagle_path_libdir"; then if test -z "$3"; then ob_beagle_path_libdir="$ob_beagle_path"/lib else ob_beagle_path_libdir="$3" fifiif test -z "$ob_beagle_path_ga_include"; then if test -z "$4"; then ob_beagle_path_ga_include=$ob_beagle_path_include else ob_beagle_path_ga_include="$4"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -