📄 configure.ac
字号:
## $Id: configure.ac,v 1.64 2004/02/19 14:57:34 kassatki Exp $## process this file with autoconf to produce a configure script.#AC_INIT(Affix, 2.1.2, affix-devel@lists.sourceforge.net, affix)AM_INIT_AUTOMAKE(affix, 2.1.2)#AC_CONFIG_HEADERS(include/config.h)AM_CONFIG_HEADER(include/config.h)#prefixAC_PREFIX_DEFAULT(/usr/local)# Checks for programs.AC_PROG_CCAC_PROG_LIBTOOLAC_PROG_INSTALLAC_PROG_YACC#AC_PROG_LEXAM_PROG_LEX# check for headersAC_CHECK_HEADERS(affix/bluetooth.h,, [AC_MSG_ERROR([Affix header files not found. Please, install affix-kernel for that.])])AFFIX_SUBDIRS=libAFFIX_EXTRA_SUBDIRS=LDFLAGS_AFFIX_LIBS="\$(top_builddir)/lib/libaffix.la"# current[:revision[:age]]# result: [current-age].age.revisionVERSION_AFFIX_LIBS="-version-info 3:2:1"VERSION_AFFIX_SDP="-version-info 3:2:1"VERSION_AFFIX_OBEX="-version-info 3:2:1"AFFIX_ARG_ENABLE(audio, "yes")AFFIX_ARG_ENABLE(rfcomm, "yes")AFFIX_ARG_ENABLE(pan, "yes")AFFIX_ARG_ENABLE(uart, "yes")AFFIX_ARG_ENABLE(sdp, "yes")AFFIX_ARG_ENABLE(obex, "yes")AFFIX_ARG_ENABLE(debug, "no")# check audioif test $affix_cv_use_audio = yes; then AC_DEFINE([CONFIG_AFFIX_AUDIO],, [Enable Audio support in Affix])fiAM_CONDITIONAL(CONFIG_AFFIX_AUDIO, test $affix_cv_use_audio = yes)# check rfcommif test $affix_cv_use_rfcomm = yes; then AC_DEFINE([CONFIG_AFFIX_RFCOMM],, [Enable RFCOMM support in Affix (required)])fiAM_CONDITIONAL(CONFIG_AFFIX_RFCOMM, test $affix_cv_use_rfcomm = yes)# check PANif test $affix_cv_use_pan = yes; then AC_DEFINE([CONFIG_AFFIX_PAN],, [Enable PAN support in Affix])fiAM_CONDITIONAL(CONFIG_AFFIX_PAN, test $affix_cv_use_pan = yes)# check UARTif test $affix_cv_use_uart = yes; then AC_DEFINE([CONFIG_AFFIX_UART],, [Enable UART support in Affix])fiAM_CONDITIONAL(CONFIG_AFFIX_UART, test $affix_cv_use_uart = yes)# check SDPif test $affix_cv_use_sdp = yes; then AC_DEFINE([CONFIG_AFFIX_SDP],, [Enable SDP support in Affix]) AFFIX_SUBDIRS="$AFFIX_SUBDIRS sdp" LDFLAGS_AFFIX_SDP="\$(top_builddir)/sdp/libaffix_sdp.la \$(top_builddir)/sdp/libaffix_sdpsvc.la"fiAM_CONDITIONAL(CONFIG_AFFIX_SDP, test $affix_cv_use_sdp = yes)# check OBEXif test $affix_cv_use_obex = yes; then # check for libopenobex AFFIX_PATH_OPENOBEX(1.0.0) if test "$OPENOBEX_CONFIG" != "no" ; then CPPFLAGS_OPENOBEX="$OPENOBEX_CFLAGS" LDFLAGS_OPENOBEX="$OPENOBEX_LIBS" else AC_MSG_ERROR([OPENOBEX not found]) fi AC_DEFINE([CONFIG_AFFIX_OBEX],, [Enable OBEX support in Affix]) AFFIX_SUBDIRS="$AFFIX_SUBDIRS obex" LDFLAGS_AFFIX_OBEX="\$(top_builddir)/obex/libaffix_obex.la" AC_DEFINE_UNQUOTED([OPENOBEX_VERSION_CODE],$openobex_version_code, [openobex version])fiAM_CONDITIONAL(CONFIG_AFFIX_OBEX, test $affix_cv_use_obex = yes)if test $affix_cv_use_debug = yes; then AC_DEFINE([CONFIG_AFFIX_DEBUG],, [Enable Debug support in Affix]) CFLAGS="-g -O1 -Wall -Wstrict-prototypes -pipe"else CFLAGS="-O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe"fiAM_CONDITIONAL(CONFIG_AFFIX_DEBUG, test $affix_cv_use_debug = yes)AFFIX_SUBDIRS="$AFFIX_SUBDIRS tools daemon control etc include"CPPFLAGS="-D_GNU_SOURCE -I\$(top_srcdir)/include -include \$(top_srcdir)/include/config.h"LIBS=""includedir=/usr/includesysconfdir=/etc# check affix_sysconfdirif test "$affix_sysconfdir" != "" ; then sysconfdir=$affix_sysconfdirfi#LIBTOOL="$LIBTOOL $affix_libtool"# substitute it#AC_SUBST(affix_sysconfdir)AC_SUBST(cross_compiling)AC_SUBST(AFFIX_SUBDIRS)AC_SUBST(AFFIX_EXTRA_SUBDIRS)AC_SUBST(CPPFLAGS_OPENOBEX)AC_SUBST(LDFLAGS_OPENOBEX)AC_SUBST(LDFLAGS_AFFIX_LIBS)AC_SUBST(LDFLAGS_AFFIX_SDP)AC_SUBST(LDFLAGS_AFFIX_OBEX)AC_SUBST(VERSION_AFFIX_LIBS)AC_SUBST(VERSION_AFFIX_SDP)AC_SUBST(VERSION_AFFIX_OBEX)AC_CONFIG_LINKS(include/affix:include)AC_CONFIG_FILES([Makefile lib/Makefile sdp/Makefile obex/Makefile tools/Makefile daemon/Makefile control/Makefile etc/Makefile etc/btsrv.conf etc/affix.conf include/Makefile ])AC_OUTPUT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -