Remove really outdated M4 file

This commit is contained in:
Marcel Holtmann 2009-08-10 14:26:29 -07:00
parent f5f61c23d7
commit f57c2d54ff
2 changed files with 0 additions and 42 deletions

View File

@ -3,8 +3,6 @@ SUBDIRS = include lib sbc gdbus common \
plugins network serial input audio src \
client tools rfcomm compat cups test scripts doc
EXTRA_DIST = bluez.m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = bluez.pc

View File

@ -1,40 +0,0 @@
AC_DEFUN([AM_PATH_BLUEZ], [
if (test "${prefix}" = "NONE"); then
bluez_prefix=${ac_default_prefix}
else
bluez_prefix=${prefix}
fi
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 "${ac_default_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)
])