openbsd-ports/games/crossfire-client/patches/patch-configure

50 lines
1.4 KiB
Plaintext

$OpenBSD: patch-configure,v 1.3 2010/04/26 01:43:03 jakemsr Exp $
--- configure.orig Mon Jan 28 23:29:08 2008
+++ configure Fri Dec 25 22:50:32 2009
@@ -7688,13 +7688,13 @@ fi
-{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
-echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5
+echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6; }
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -7754,7 +7754,7 @@ if test $ac_cv_lib_pthread_pthread_create = yes; then
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi
@@ -9164,6 +9164,11 @@ fi
SOUND_SRC="sound-src";
else
+ if eval "test x$sndio_sound = xyes"; then
+ CFLAGS="$CFLAGS -DSNDIO_SOUND"
+ SND_LIBS="-lsndio -lm"
+ SOUND_SRC="sound-src";
+ else
if eval "test x$sun_sound = xyes"; then
echo "Using solaris sound system"
CFLAGS="$CFLAGS -DSUN_SOUND"
@@ -9172,6 +9177,7 @@ fi
else
echo "No suitable sound system found."
sound="no"
+ fi
fi
fi
fi