1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/graphics/white_dune/files/patch-configure
Kirill Ponomarev c4603c6c8d Update to version 0.28.8
PR:		ports/75268
Submitted by:	Ports Fury
2004-12-20 09:16:00 +00:00

55 lines
1.5 KiB
Plaintext

--- configure.orig Sat Dec 18 09:56:14 2004
+++ configure Sat Dec 18 18:43:28 2004
@@ -2922,51 +2922,8 @@
echo "$ac_t""no" 1>&6
fi
- echo $ac_n "checking for hid_init in -lusb""... $ac_c" 1>&6
-echo "configure:2927: checking for hid_init in -lusb" >&5
-ac_lib_var=`echo usb'_'hid_init | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- ac_save_LIBS="$LIBS"
-LIBS="-lusb $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2935 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error. */
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char hid_init();
-
-int main() {
-hid_init()
-; return 0; }
-EOF
-if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- echo "$ac_t""yes" 1>&6
- have_libusb=yes
-else
- echo "$ac_t""no" 1>&6
-fi
-
if test x$have_libusbhid = xyes; then
SYSTEM_LIBS="$SYSTEM_LIBS -lusbhid"
- fi
- if test x$have_libusb = xyes; then
- SYSTEM_LIBS="$SYSTEM_LIBS -lusb"
fi
ac_safe=`echo "usb.h" | sed 'y%./+-%__p_%'`