]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed broken test for wxUSE_JOYSTICK in configure.
authorRon Lee <ron@debian.org>
Sun, 19 Mar 2000 23:04:18 +0000 (23:04 +0000)
committerRon Lee <ron@debian.org>
Sun, 19 Mar 2000 23:04:18 +0000 (23:04 +0000)
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

Makefile.in
configure
configure.in
samples/configure
samples/configure.in

index de2bac5eb1596020388ca96431348948fe8f9574..e493a912299c736d270a1b5af2b74f5c5aae01de 100644 (file)
@@ -870,6 +870,13 @@ SAMPLES_DIST: ALL_GUI_DIST
        cp $(SAMPDIR)/ipc/*.h $(DISTDIR)/samples/ipc
        cp $(SAMPDIR)/ipc/*.xpm $(DISTDIR)/samples/ipc
 
+       mkdir $(DISTDIR)/samples/joytest
+       cp $(SAMPDIR)/joytest/Makefile.in $(DISTDIR)/samples/joytest
+       cp $(SAMPDIR)/joytest/makefile.unx $(DISTDIR)/samples/joytest
+       cp $(SAMPDIR)/joytest/*.cpp $(DISTDIR)/samples/joytest
+       cp $(SAMPDIR)/joytest/*.h $(DISTDIR)/samples/joytest
+       cp $(SAMPDIR)/joytest/*.wav $(DISTDIR)/samples/joytest
+
        mkdir $(DISTDIR)/samples/layout
        cp $(SAMPDIR)/layout/Makefile.in $(DISTDIR)/samples/layout
        cp $(SAMPDIR)/layout/makefile.unx $(DISTDIR)/samples/layout
index bff31c003dc6bb9bd305446192996ed11adeef35..6056e8172358979d6418af7bf912109957f7f371 100755 (executable)
--- a/configure
+++ b/configure
@@ -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_%'`
 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
index 0efb1593c54f7d2db57d0020ddffc8a4590cc249..bee2316ac9a0a9c7de697d961cf3fae0bc2549e9 100644 (file)
@@ -3057,11 +3057,11 @@ dnl ---------------------------------------------------------------------------
 dnl under MSW we always have joystick support
 if test "$TOOLKIT" != "MSW"; then
 
-if test "$wxUSE_JOYSTICK" = 1; then
+if test "$wxUSE_JOYSTICK" = "yes"; then
   dnl joystick support is only for Linux 2.1.x or greater
   AC_CHECK_HEADERS(linux/joystick.h)
   if test "$ac_cv_header_linux_joystick_h" != "yes"; then
-    wxUSE_JOYSTICK=0
+    wxUSE_JOYSTICK=no
     AC_MSG_WARN(Joystick not supported yb this system, disabled)
   fi
 fi
@@ -3069,7 +3069,7 @@ fi
 fi
 dnl if !MSW
 
-if test "$wxUSE_JOYSTICK" = 1; then
+if test "$wxUSE_JOYSTICK" = "yes"; then
     AC_DEFINE(wxUSE_JOYSTICK)
     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
 fi
index 1a376c1a05a001daae4cc2cceb0d98d4d1d86f27..839a611c85524056342f6aa83e1755b0c48e9d93 100755 (executable)
@@ -669,6 +669,7 @@ trap 'rm -fr `echo "
             image/Makefile
             internat/Makefile
             ipc/Makefile
+            joytest/Makefile
             layout/Makefile
             listctrl/Makefile
             mdi/Makefile
@@ -811,6 +812,7 @@ CONFIG_FILES=\${CONFIG_FILES-"Makefile
             image/Makefile
             internat/Makefile
             ipc/Makefile
+            joytest/Makefile
             layout/Makefile
             listctrl/Makefile
             mdi/Makefile
index d40449739c512fea0d42b23e11e745904639966f..ee2ae94fdb6e0db29e2f9c1b4d0cd9d70fbf6d1d 100644 (file)
@@ -37,6 +37,7 @@ AC_OUTPUT([
             image/Makefile
             internat/Makefile
             ipc/Makefile
+            joytest/Makefile
             layout/Makefile
             listctrl/Makefile
             mdi/Makefile