test/autogen.sh
author Sam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 07:32:26 +0000
branchSDL-1.2
changeset 4209 62e86ab81e3c
parent 1833 e566046c73d9
permissions -rwxr-xr-x
Fixed bug #570

SDL_SemWaitTimeout in src/thread/generic/SDL_syssem.c line 179 (SVN trunk):

--sem->count;

should be

if (retval == 0) {
--sem->count;
}

Without this, sem->count will underflow on timeout effectively breaking the
semaphore. It appears that the implementation has been wrong since the initial
revision.
     1 #!/bin/sh
     2 #
     3 # Regenerate configuration files
     4 cp acinclude.m4 aclocal.m4
     5 found=false
     6 for autoconf in autoconf autoconf259 autoconf-2.59
     7 do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
     8 done
     9 if test x$found = xfalse; then
    10     echo "Couldn't find autoconf, aborting"
    11     exit 1
    12 fi