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

📄 configure.ac

📁 网络摄像头的webserver
💻 AC
字号:
AC_INIT(camsource, 0.7.0)AM_INIT_AUTOMAKE(camsource, 0.7.0)AC_CONFIG_SRCDIR(src/grab.c)AC_CONFIG_FILES([Makefile src/Makefile])AM_CONFIG_HEADER(config.h)AC_LANG(C)AC_PROG_CCAC_PROG_LIBTOOLAC_C_CONSTAC_C_BIGENDIANAC_HEADER_STDCAC_CHECK_HEADER(linux/videodev.h,, [AC_MSG_ERROR([Could not find linux/videodev.h])])AC_CHECK_HEADER(jpeglib.h,, [AC_MSG_ERROR([Could not find jpeglib.h])])AC_FUNC_MALLOCAC_FUNC_MEMCMPAC_FUNC_VPRINTFAC_CHECK_SIZEOF(short)AC_CHECK_SIZEOF(int)AC_CHECK_SIZEOF(long)# Libs for main progAC_CHECK_LIB(dl, dlopen,, [AC_MSG_ERROR([Could not find dynamic link lib])])AC_CHECK_LIB(pthread, pthread_create,, [AC_MSG_ERROR([Could not find posix thread lib])])AC_MSG_CHECKING([for libxml])XMLVER=$(xml2-config --version 2> /dev/null)if test $? -eq 0; then	AC_MSG_RESULT([yes, $XMLVER])	CFLAGS="$CFLAGS $(echo $(xml2-config --cflags))"	LDFLAGS="$LDFLAGS $(echo $(xml2-config --cflags --libs))"	AC_DEFINE(xml_children, children, [libxml1/2 compatibility])	AC_DEFINE(xml_attrnode, children, [libxml1/2 compatibility])	AC_DEFINE(xml_rootnode, children, [libxml1/2 compatibility])else	XMLVER=$(xml-config --version 2> /dev/null)	if test $? -eq 0; then		AC_MSG_RESULT([yes, $XMLVER])		XMLCFLAGS=$(echo $(xml-config --cflags))		CFLAGS="$CFLAGS $XMLCFLAGS"		LDFLAGS="$LDFLAGS $(echo $(xml-config --cflags --libs))"		AC_DEFINE(xml_children, childs, [libxml1/2 compatibility])		AC_DEFINE(xml_attrnode, val, [libxml1/2 compatibility])		AC_DEFINE(xml_rootnode, root, [libxml1/2 compatibility])		XMLIDIR=$(echo "$XMLCFLAGS" | sed -e 's/^.*-I *//' | cut -d' ' -f1)		if test -d "$XMLIDIR"; then			AC_MSG_NOTICE([creating auxiliary libxml/ symlink for libxml1 compatibility])			if test -L libxml; then				rm -f libxml			fi			ln -s "$XMLIDIR" libxml		fi	else		AC_MSG_RESULT(no)		AC_MSG_ERROR([Could not find libxml])	fifi# Libs for pluginsAC_CHECK_LIB(jpeg, jpeg_start_compress, :, [AC_MSG_ERROR([Could not find libjpeg])])CFLAGS="$CFLAGS -Wall -D_REENTRANT -DPREFIX=\"\\\"\${prefix}\\\"\" -DPKGLIBDIR=\"\\\"\${pkglibdir}\\\"\""CFLAGS="$CFLAGS -DSYSCONFDIR=\"\\\"\${sysconfdir}\\\"\""LDFLAGS="$LDFLAGS -rdynamic"AC_OUTPUT

⌨️ 快捷键说明

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