configure.in

来自「嵌入式Linux下的触摸屏驱动源代码」· IN 代码 · 共 81 行

IN
81
字号
dnl $Id: configure.in,v 1.3 2002/06/17 17:21:42 dlowder Exp $
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/ts_close.c)
AM_INIT_AUTOMAKE(libts,0.0.1)
AM_CONFIG_HEADER(config.h)

AC_ARG_ENABLE(linear,   [  --enable-linear         Enable building of linear scaling [default=yes]],
  [ "x$enableval" = "xyes" ] && PLUGINS="$PLUGINS linear.la", PLUGINS="$PLUGINS linear.la")
AC_ARG_ENABLE(dejitter, [  --enable-dejitter       Enable building of dejitter filter [default=yes]],
  [ "x$enableval" = "xyes" ] && PLUGINS="$PLUGINS dejitter.la", PLUGINS="$PLUGINS dejitter.la")
AC_ARG_ENABLE(variance, [  --enable-variance       Enable building of variance filter [default=yes]],
  [ "x$enableval" = "xyes" ] && PLUGINS="$PLUGINS variance.la", PLUGINS="$PLUGINS variance.la")

AC_MSG_CHECKING(--enable-debug argument)
AC_ARG_ENABLE(debug,    [  --enable-debug          Enable debug messages from filters [default=no]], 
  , [enable_debug="no"])
AC_MSG_RESULT($enable_debug)
if test "$enable_debug" = "yes"; then
	DEBUGFLAGS="-g -ggdb -DDEBUG"
else
	DEBUGFLAGS=""
fi

AC_MSG_CHECKING(--enable-inputapi argument)
AC_ARG_ENABLE(inputapi, [  --enable-inputapi       Enable use of the input API [default=yes]],
  , [enable_inputapi="yes"])
AC_MSG_RESULT($enable_inputapi)
if test "$enable_inputapi" = "yes"; then
	INPUTAPIFLAG="-DUSE_INPUT_API"
else
	INPUTAPIFLAG=""
fi

AC_SUBST(DEBUGFLAGS)
AC_SUBST(INPUTAPIFLAG)

AC_SUBST(PLUGINS)

AM_DISABLE_STATIC
AM_ENABLE_SHARED


PLUGIN_DIR='${datadir}/ts/plugins'
AC_SUBST(PLUGIN_DIR)

TS_CONF='${sysconfdir}/ts.conf'
AC_SUBST(TS_CONF)

dnl Library versioning
LT_RELEASE=0.0
LT_CURRENT=1
LT_REVISION=0
LT_AGE=1
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)

dnl Checks for programs.
AC_PROG_CC
AC_LIBTOOL_DLOPEN
AM_PROG_LIBTOOL

dnl Checks for libraries.
AC_CHECK_LIB(dl, dlopen)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h sys/time.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME

dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(strsep strdup strtoul)

AC_OUTPUT(Makefile etc/Makefile src/Makefile plugins/Makefile tests/Makefile)

⌨️ 快捷键说明

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