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

📄 acinclude.m4

📁 Bluezan implementation of the Bluetooth&#8482 wireless standards specifications for Linux. The code
💻 M4
字号:
dnldnl  $Id: acinclude.m4,v 1.15 2004/12/08 12:04:17 holtmann Exp $dnlAC_DEFUN([AC_PROG_CC_PIE], [	AC_CACHE_CHECK([whether ${CC-cc} accepts -fPIE], ac_cv_prog_cc_pie, [		echo 'void f(){}' > conftest.c		if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then			ac_cv_prog_cc_pie=yes		else			ac_cv_prog_cc_pie=no		fi		rm -rf conftest*	])])AC_DEFUN([AC_INIT_BLUEZ], [	AC_PREFIX_DEFAULT(/usr)	if (test "${CFLAGS}" = ""); then		CFLAGS="-Wall -O2"	fi	if (test "${prefix}" = "NONE"); then		dnl no prefix and no sysconfdir, so default to /etc		if (test "$sysconfdir" = '${prefix}/etc'); then			AC_SUBST([sysconfdir], ['/etc'])		fi		dnl no prefix and no mandir, so use ${prefix}/share/man as default		if (test "$mandir" = '${prefix}/man'); then			AC_SUBST([mandir], ['${prefix}/share/man'])		fi		prefix="${ac_default_prefix}"	fi	if (test "${libdir}" = '${exec_prefix}/lib'); then		libdir="${prefix}/lib"	fi	if (test "$sysconfdir" = '${prefix}/etc'); then		configdir="${prefix}/etc/bluetooth"	else		configdir="${sysconfdir}/bluetooth"	fi	AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}", [Directory for the configuration files])])AC_DEFUN([AC_PATH_BLUEZ], [	bluez_prefix=${prefix}	AC_ARG_WITH(bluez, AC_HELP_STRING([--with-bluez=DIR], [BlueZ library is installed in DIR]), [		if (test "${withval}" != "yes"); then			bluez_prefix=${withval}		fi	])	ac_save_CPPFLAGS=$CPPFLAGS	ac_save_LDFLAGS=$LDFLAGS	BLUEZ_CFLAGS=""	test -d "${bluez_prefix}/include" && BLUEZ_CFLAGS="$BLUEZ_CFLAGS -I${bluez_prefix}/include"	CPPFLAGS="$CPPFLAGS $BLUEZ_CFLAGS"	AC_CHECK_HEADER(bluetooth/bluetooth.h,, AC_MSG_ERROR(Bluetooth header files not found))	BLUEZ_LIBS=""	if (test "${prefix}" = "${bluez_prefix}"); then		test -d "${libdir}" && BLUEZ_LIBS="$BLUEZ_LIBS -L${libdir}"	else		test -d "${bluez_prefix}/lib64" && BLUEZ_LIBS="$BLUEZ_LIBS -L${bluez_prefix}/lib64"		test -d "${bluez_prefix}/lib" && BLUEZ_LIBS="$BLUEZ_LIBS -L${bluez_prefix}/lib"	fi	LDFLAGS="$LDFLAGS $BLUEZ_LIBS"	AC_CHECK_LIB(bluetooth, hci_open_dev, BLUEZ_LIBS="$BLUEZ_LIBS -lbluetooth", AC_MSG_ERROR(Bluetooth library not found))	AC_CHECK_LIB(bluetooth, sdp_connect,, AC_CHECK_LIB(sdp, sdp_connect, BLUEZ_LIBS="$BLUEZ_LIBS -lsdp"))	CPPFLAGS=$ac_save_CPPFLAGS	LDFLAGS=$ac_save_LDFLAGS	AC_SUBST(BLUEZ_CFLAGS)	AC_SUBST(BLUEZ_LIBS)])AC_DEFUN([AC_ARG_BLUEZ], [	debug_enable=no	pie_enable=no	AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [enable compiling with debugging information]), [		debug_enable=${enableval}	])	AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie], [enable position independent executables flag]), [		pie_enable=${enableval}	])	if (test "${debug_enable}" = "yes" && test "${ac_cv_prog_cc_g}" = "yes"); then		CFLAGS="$CFLAGS -g"	fi	if (test "${pie_enable}" = "yes" && test "${ac_cv_prog_cc_pie}" = "yes"); then		CFLAGS="$CFLAGS -fPIE"		LDFLAGS="$LDFLAGS -pie"	fi])

⌨️ 快捷键说明

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