configure.ac
来自「libdvbpsi4-0.1.5版本」· AC 代码 · 共 83 行
AC
83 行
AC_INIT(src/dvbpsi.c)AC_PREREQ(2.50)AC_CONFIG_AUX_DIR(autotools)AC_CANONICAL_SYSTEMAM_INIT_AUTOMAKE(libdvbpsi4, 0.1.5)AM_CONFIG_HEADER(config.h)#AC_CANONICAL_HOSTAC_PROG_CCAC_STDC_HEADERSAC_C_INLINEAM_PROG_LIBTOOLdnl default CFLAGSCFLAGS="${CFLAGS} -Wall -DDVBPSI_DIST"dnl check the operating systemcase x"${target_os}" in xdarwin*) CFLAGS="${CFLAGS} -no-cpp-precomp" ;;esacdnl --enable-debugAC_ARG_ENABLE(debug,[ --enable-debug Enable debug mode (default disabled)],[case "${enableval}" in yes) debug=true ;; no) debug=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;esac],[debug=false])if test x$debug = xtruethen CFLAGS="${CFLAGS} -DDEBUG -g"fidnl --enable-releaseAC_ARG_ENABLE(release,[ --enable-release Enable release mode (default disabled)],[case "${enableval}" in yes) release=true ;; no) release=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-release) ;;esac],[release=false])if test x$release = xtruethen CFLAGS="${CFLAGS} -O6"else CFLAGS="${CFLAGS} -O2"fidnl Check for headersAC_CHECK_HEADERS(stdint.h inttypes.h)dnl Check for variadic macrosAC_CACHE_CHECK([for variadic cpp macros], [ac_cv_cpp_variadic_macros], [AC_TRY_COMPILE( [#include <stdio.h> #define a(b,c...) printf(b,##c)], [a("foo");a("%s","bar");a("%s%s","baz","quux");], ac_cv_cpp_variadic_macros=yes, ac_cv_cpp_variadic_macros=no)])if test "${ac_cv_cpp_variadic_macros}" != "no"; then AC_DEFINE(HAVE_VARIADIC_MACROS, 1, Support for variadic macros)fiAC_OUTPUT([Makefile src/Makefile examples/Makefile misc/Makefile doc/Makefile debian/Makefile wince/Makefile])echo "libdvbpsi configuration-----------------------libdvbpsi version : ${VERSION}debug : ${debug}release : ${release}"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?