📄 configure.ac
字号:
AC_INIT([libdmtx], [0.6.0], [mike@dragonflylogic.com])AM_INIT_AUTOMAKE([-Wall -Werror gnu])AC_PROG_CCAC_PROG_LIBTOOLAM_PROG_CC_C_OAC_CONFIG_HEADERS([config.h])AC_CONFIG_FILES([ Makefile util/Makefile util/dmtxquery/Makefile test/Makefile test/test_opengl/Makefile test/test_simple/Makefile test/test_unit/Makefile])AC_SEARCH_LIBS([sin], [m] ,[], AC_MSG_ERROR([libdmtx requires libm]))AC_SEARCH_LIBS([cos], [m] ,[], AC_MSG_ERROR([libdmtx requires libm]))AC_SEARCH_LIBS([atan2], [m] ,[], AC_MSG_ERROR([libdmtx requires libm]))AC_CHECK_HEADERS([sys/time.h])AC_CHECK_FUNCS([gettimeofday])case $host_os in cygwin*) ARCH=cygwin ;; darwin*) ARCH=macosx ;; freebsd*) ARCH=freebsd ;; linux-gnu*) ARCH=linux-gnu ;; mingw32*) ARCH=mingw32 ;;esacAM_CONDITIONAL([TARGET_MACOSX], [test x$ARCH = xmacosx])AC_ARG_ENABLE( dmtxread, AC_HELP_STRING( [--disable-dmtxread], [Do not build the dmtxread command line utility (removes GraphicsMagick dependency)]), [case "$enableval" in yes) dmtxread=true ;; no) dmtxread=false ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-dmtxread]) ;; esac], [dmtxread=true])AM_CONDITIONAL([BUILD_DMTXREAD], [test x$dmtxread = xtrue])AC_ARG_ENABLE( dmtxwrite, AC_HELP_STRING( [--disable-dmtxwrite], [Do not build the dmtxwrite command line utility (removes libpng dependency)]), [case "$enableval" in yes) dmtxwrite=true ;; no) dmtxwrite=false ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-dmtxwrite]) ;; esac], [dmtxwrite=true])AM_CONDITIONAL([BUILD_DMTXWRITE], [test x$dmtxwrite = xtrue])AC_ARG_ENABLE( dmtxquery, AC_HELP_STRING( [--disable-dmtxquery], [Do not build the dmtxquery command line utility]), [case "$enableval" in yes) dmtxquery=true ;; no) dmtxquery=false ;; *) AC_MSG_ERROR([bad value ${enableval} for --enable-dmtxquery]) ;; esac], [dmtxquery=true])AM_CONDITIONAL([BUILD_DMTXQUERY], [test x$dmtxquery = xtrue])if test x$dmtxread = xtrue; then AC_CONFIG_FILES([util/dmtxread/Makefile]) ifdef( [PKG_CHECK_MODULES], [PKG_CHECK_MODULES( MAGICK, GraphicsMagick >= 1.1.7, true, AC_MSG_ERROR([[dmtxread requires GraphicsMagick >= 1.1.7]]))], [AC_MSG_ERROR([Building dmtxread requires a working autoconf/pkg-config setup])]) AC_SUBST(MAGICK_CFLAGS) AC_SUBST(MAGICK_LIBS)fiif test x$dmtxwrite = xtrue; then AC_CHECK_HEADERS( [png.h], [], [AC_MSG_ERROR([Building dmtxwrite requires libpng (couldn't find png.h header)])]) AC_CONFIG_FILES([util/dmtxwrite/Makefile])fiif test x$dmtxread = xtrue -o x$dmtxwrite = xtrue -o x$dmtxquery = xtrue; then AC_CHECK_HEADERS([getopt.h]) AC_CHECK_FUNCS([getopt_long])fiAC_OUTPUT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -