$NetBSD: patch-aa,v 1.1.1.1 2002/05/05 22:37:41 rh Exp $ --- configure.in.orig Fri Apr 19 16:47:41 2002 +++ configure.in @@ -17,29 +17,30 @@ LIBS="$LIBS $SDL_LIBS" AM_PATH_SDL(1.1.5, CFLAGS="$CFLAGS -DSDL_1_1_5",) -dnl check for pthread -ac_save_LIBS="$LIBS" -thread_flag="" -dnl first look for -pthread -LIBS="$LIBS -pthread" -AC_TRY_LINK( - [#include ], - [ pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ], - AC_MSG_RESULT("-pthread used...") - thread_flag="-pthread", - dnl now look for -lpthread - AC_MSG_RESULT("checking for -lpthread...") - LIBS="$ac_save_LIBS" - AC_CHECK_LIB( - pthread, - pthread_create, - thread_flag="-lpthread" - AC_MSG_RESULT(yes), - AC_MSG_ERROR([lib pthread is needed]) - ) -) -LIBS="$ac_save_LIBS" -AC_SUBST(thread_flag) +dnl SDL picks all this stuff up +dnl dnl check for pthread +dnl ac_save_LIBS="$LIBS" +dnl thread_flag="" +dnl dnl first look for -pthread +dnl LIBS="$LIBS -pthread" +dnl AC_TRY_LINK( +dnl [#include ], +dnl [ pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ], +dnl AC_MSG_RESULT("-pthread used...") +dnl thread_flag="-pthread", +dnl dnl now look for -lpthread +dnl AC_MSG_RESULT("checking for -lpthread...") +dnl LIBS="$ac_save_LIBS" +dnl AC_CHECK_LIB( +dnl pthread, +dnl pthread_create, +dnl thread_flag="-lpthread" +dnl AC_MSG_RESULT(yes), +dnl AC_MSG_ERROR([lib pthread is needed]) +dnl ) +dnl ) +dnl LIBS="$ac_save_LIBS" +dnl AC_SUBST(thread_flag) dnl check sound sound_flag="-DSOUND"