mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
4.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/public/multisync/irmc_sync-newbluetoothlibs.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./plugins/irmc_sync/configure.orig 2004-12-18 07:37:17.148587216 +0100
  20. +++ ./plugins/irmc_sync/configure 2004-12-18 08:12:51.570105824 +0100
  21. @@ -4802,77 +4802,12 @@
  22. _ACEOF
  23. LIBS="-lbluetooth $LIBS"
  24. + SDP=1
  25. else
  26. BLUETOOTH=0
  27. fi
  28. -echo "$as_me:$LINENO: checking for sdp_connect in -lsdp" >&5
  29. -echo $ECHO_N "checking for sdp_connect in -lsdp... $ECHO_C" >&6
  30. -if test "${ac_cv_lib_sdp_sdp_connect+set}" = set; then
  31. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32. -else
  33. - ac_check_lib_save_LIBS=$LIBS
  34. -LIBS="-lsdp $LIBS"
  35. -cat >conftest.$ac_ext <<_ACEOF
  36. -/* confdefs.h. */
  37. -_ACEOF
  38. -cat confdefs.h >>conftest.$ac_ext
  39. -cat >>conftest.$ac_ext <<_ACEOF
  40. -/* end confdefs.h. */
  41. -
  42. -/* Override any gcc2 internal prototype to avoid an error. */
  43. -#ifdef __cplusplus
  44. -extern "C"
  45. -#endif
  46. -/* We use char because int might match the return type of a gcc2
  47. - builtin and then its argument prototype would still apply. */
  48. -char sdp_connect ();
  49. -int
  50. -main ()
  51. -{
  52. -sdp_connect ();
  53. - ;
  54. - return 0;
  55. -}
  56. -_ACEOF
  57. -rm -f conftest.$ac_objext conftest$ac_exeext
  58. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  59. - (eval $ac_link) 2>conftest.er1
  60. - ac_status=$?
  61. - grep -v '^ *+' conftest.er1 >conftest.err
  62. - rm -f conftest.er1
  63. - cat conftest.err >&5
  64. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  65. - (exit $ac_status); } &&
  66. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  67. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  68. - (eval $ac_try) 2>&5
  69. - ac_status=$?
  70. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  71. - (exit $ac_status); }; } &&
  72. - { ac_try='test -s conftest$ac_exeext'
  73. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  74. - (eval $ac_try) 2>&5
  75. - ac_status=$?
  76. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  77. - (exit $ac_status); }; }; then
  78. - ac_cv_lib_sdp_sdp_connect=yes
  79. -else
  80. - echo "$as_me: failed program was:" >&5
  81. -sed 's/^/| /' conftest.$ac_ext >&5
  82. -
  83. -ac_cv_lib_sdp_sdp_connect=no
  84. -fi
  85. -rm -f conftest.err conftest.$ac_objext \
  86. - conftest$ac_exeext conftest.$ac_ext
  87. -LIBS=$ac_check_lib_save_LIBS
  88. -fi
  89. -echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp_connect" >&5
  90. -echo "${ECHO_T}$ac_cv_lib_sdp_sdp_connect" >&6
  91. -if test $ac_cv_lib_sdp_sdp_connect = yes; then
  92. - SDP=1
  93. -fi
  94. echo "$as_me:$LINENO: checking for correct SDP lib version" >&5
  95. echo $ECHO_N "checking for correct SDP lib version... $ECHO_C" >&6
  96. @@ -4904,7 +4839,7 @@
  97. #define HAVE_BLUETOOTH ${BLUETOOTH}
  98. _ACEOF
  99. -LIBS="$LIBS -lglib-2.0"
  100. +#LIBS="$LIBS -lglib-2.0"
  101. echo "$as_me:$LINENO: checking for OBEX_Init in -lopenobex" >&5
  102. --- ./plugins/irmc_sync/configure.in.orig 2004-12-18 07:38:12.279206088 +0100
  103. +++ ./plugins/irmc_sync/configure.in 2004-12-18 08:11:04.547375752 +0100
  104. @@ -24,7 +24,8 @@
  105. SDP=0
  106. AC_CHECK_HEADER(bluetooth/bluetooth.h, BLUETOOTH=1, BLUETOOTH=0)
  107. AC_CHECK_LIB(bluetooth, hci_open_dev,,BLUETOOTH=0)
  108. -AC_CHECK_LIB(sdp, sdp_connect, SDP=1)
  109. +AC_CHECK_HEADER(bluetooth/sdp.h, SDP=1, SDP=0)
  110. +dnl AC_CHECK_LIB(sdp, sdp_connect, SDP=1)
  111. AC_MSG_CHECKING(for correct SDP lib version)
  112. AM_CONDITIONAL(SDP,test "${SDP}" = "1")
  113. AM_CONDITIONAL(BLUETOOTH,test "${BLUETOOTH}" = "1")
  114. @@ -32,5 +33,4 @@
  115. echo "Bluetooth is DISABLED. You must have the bluez-libs installed."
  116. fi
  117. AC_DEFINE_UNQUOTED(HAVE_BLUETOOTH, ${BLUETOOTH},Defined if Bluetooth is enabled.)
  118. -LIBS="$LIBS -lglib-2.0"
  119. --- ./plugins/irmc_sync/src/Makefile.in.orig 2004-12-18 08:21:22.000000000 +0100
  120. +++ ./plugins/irmc_sync/src/Makefile.in 2004-12-18 08:21:30.000000000 +0100
  121. @@ -159,8 +159,6 @@
  122. irmc_bluetooth.c irmc_bluetooth.h
  123. -@SDP_TRUE@sdp_lib = -lsdp
  124. -
  125. libirmc_bluetooth_la_LIBADD = -lbluetooth -lpthread $(sdp_lib)
  126. libirmc_sync_la_SOURCES = \
  127. --- ./plugins/irmc_sync/src/Makefile.am.orig 2004-12-18 08:20:49.000000000 +0100
  128. +++ ./plugins/irmc_sync/src/Makefile.am 2004-12-18 08:21:07.000000000 +0100
  129. @@ -21,10 +21,6 @@
  130. libirmc_bluetooth_la_SOURCES = \
  131. irmc_bluetooth.c irmc_bluetooth.h
  132. -if SDP
  133. -sdp_lib = -lsdp
  134. -endif
  135. -
  136. libirmc_bluetooth_la_LIBADD = -lbluetooth -lpthread $(sdp_lib)
  137. libirmc_sync_la_SOURCES = \