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

📄 configure.ac

📁 最新的libusb库
💻 AC
字号:
AC_INIT([libusb], [0.9.2])AM_INIT_AUTOMAKEAC_CONFIG_SRCDIR([libusb/core.c])AM_CONFIG_HEADER([config.h])AC_PREREQ([2.50])AC_PROG_CCAC_PROG_LIBTOOLAC_C_INLINEAM_PROG_CC_C_OAC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions])AC_MSG_CHECKING([operating system])case $host in*-linux*)	AC_DEFINE(OS_LINUX, [], [Linux backend])	AC_SUBST(OS_LINUX)	AC_MSG_RESULT([Linux])	backend="linux"	;;*)	AC_MSG_ERROR([unsupported operating system])esacAM_CONDITIONAL([OS_LINUX], [test "x$backend" == "xlinux"])# Library versioninglt_major="0"lt_revision="0"lt_age="0"AC_SUBST(lt_major)AC_SUBST(lt_revision)AC_SUBST(lt_age)# Message loggingAC_ARG_ENABLE([log], [AS_HELP_STRING([--disable-log], [disable all logging])],	[log_enabled=$enableval],	[log_enabled='yes'])if test "x$log_enabled" != "xno"; then	AC_DEFINE([ENABLE_LOGGING], 1, [Message logging])fiAC_ARG_ENABLE([debug-log], [AS_HELP_STRING([--enable-debug-log],	[enable debug logging (default n)])],	[debug_log_enabled=$enableval],	[debug_log_enabled='no'])if test "x$debug_log_enabled" != "xno"; then	AC_DEFINE([ENABLE_DEBUG_LOGGING], 1, [Debug message logging])fi# Examples buildAC_ARG_ENABLE([examples-build], [AS_HELP_STRING([--enable-examples-build],	[build example applications (default n)])],	[build_examples=$enableval],	[build_examples='no'])AM_CONDITIONAL([BUILD_EXAMPLES], [test "x$build_examples" != "xno"])# Restore gnu89 inline semantics on gcc 4.3 and newersaved_cflags="$CFLAGS"CFLAGS="$CFLAGS -fgnu89-inline"AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), inline_cflags="-fgnu89-inline", inline_cflags="")CFLAGS="$saved_cflags"AC_DEFINE([API_EXPORTED], [__attribute__((visibility("default")))], [Default visibility])AM_CFLAGS="-std=gnu99 $inline_cflags -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow"AC_SUBST(AM_CFLAGS)AC_CONFIG_FILES([libusb-1.0.pc] [Makefile] [libusb/Makefile] [examples/Makefile] [doc/Makefile])AC_OUTPUT

⌨️ 快捷键说明

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