fixed broken test for wxUSE_JOYSTICK in configure.

added joytest sample to samples_dist and samples/configure.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2000-03-19 23:04:18 +00:00
parent 281b0186b8
commit ceded8b925
5 changed files with 18 additions and 8 deletions

10
configure vendored
View File

@@ -9281,7 +9281,7 @@ else
int main() {
/* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x;
typedef int charset[2]; const charset x = {0,0};
/* SunOS 4.1.1 cc rejects this. */
char const *const *ccp;
char **p;
@@ -9356,7 +9356,7 @@ for ac_kw in inline __inline__ __inline; do
#include "confdefs.h"
int main() {
} $ac_kw foo() {
} int $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:9363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
@@ -12975,7 +12975,7 @@ fi
if test "$TOOLKIT" != "MSW"; then
if test "$wxUSE_JOYSTICK" = 1; then
if test "$wxUSE_JOYSTICK" = "yes"; then
for ac_hdr in linux/joystick.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
@@ -13017,14 +13017,14 @@ fi
done
if test "$ac_cv_header_linux_joystick_h" != "yes"; then
wxUSE_JOYSTICK=0
wxUSE_JOYSTICK=no
echo "configure: warning: Joystick not supported yb this system" 1>&2
fi
fi
fi
if test "$wxUSE_JOYSTICK" = 1; then
if test "$wxUSE_JOYSTICK" = "yes"; then
cat >> confdefs.h <<\EOF
#define wxUSE_JOYSTICK 1
EOF