$NetBSD: patch-aa,v 1.3 2008/03/14 14:49:53 drochner Exp $ --- configure.orig 2008-01-21 16:52:07.000000000 +0200 +++ configure 2008-01-21 16:58:07.000000000 +0200 @@ -2249,7 +2249,7 @@ ## CFLAGS= ;; esac - CXX_OPTIMIZE_FLAGS=="+K3 -O3" + CXX_OPTIMIZE_FLAGS="+K3 -O3" CXX_DEBUG_FLAGS="-g +K0" ;; esac @@ -7064,9 +7064,9 @@ fi -{ echo "$as_me:$LINENO: checking for library containing pthread_exit" >&5 -echo $ECHO_N "checking for library containing pthread_exit... $ECHO_C" >&6; } -if test "${ac_cv_search_pthread_exit+set}" = set; then +{ echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 +echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; } +if test "${ac_cv_search_pthread_create+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS @@ -7083,11 +7083,11 @@ #ifdef __cplusplus extern "C" #endif -char pthread_exit (); +char pthread_create (); int main () { -return pthread_exit (); +return pthread_create (); ; return 0; } @@ -7133,7 +7133,7 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_search_pthread_exit=$ac_res + ac_cv_search_pthread_create=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 @@ -7143,21 +7143,21 @@ rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if test "${ac_cv_search_pthread_exit+set}" = set; then + if test "${ac_cv_search_pthread_create+set}" = set; then break fi done -if test "${ac_cv_search_pthread_exit+set}" = set; then +if test "${ac_cv_search_pthread_create+set}" = set; then : else - ac_cv_search_pthread_exit=no + ac_cv_search_pthread_create=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_exit" >&5 -echo "${ECHO_T}$ac_cv_search_pthread_exit" >&6; } -ac_res=$ac_cv_search_pthread_exit +{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 +echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; } +ac_res=$ac_cv_search_pthread_create if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" @@ -7167,7 +7167,7 @@ CXXFLAGS="$CXXFLAGS -D_REENTRANT" CFLAGS="$CFLAGS -D_REENTRANT" - if test "x$ac_cv_search_pthread_exit" = "x-lc_r"; then + if test "x$ac_cv_search_pthread_create" = "x-lc_r"; then CXXFLAGS="-pthread $CXXFLAGS" CFLAGS="-pthread $CFLAGS" fi @@ -9233,7 +9233,7 @@ esac -if test "$OPENAL_OK" == "no"; then +if test "$OPENAL_OK" = "no"; then echo echo "You *must* have the openal library installed on your system to build" echo "SimGear!" @@ -9244,7 +9244,7 @@ exit fi -if test "$ALUT_OK" == "no"; then +if test "$ALUT_OK" = "no"; then echo echo "You *must* have the alut library installed on your system to build" echo "SimGear!"