Index: key.c
===================================================================
--- key.c	(revision 232)
+++ key.c	(revision 233)
@@ -76,9 +76,8 @@
 else
  {
  raydium_key_last=key+1000;
-#ifdef DEBUG_KEYS
- raydium_log("normal key %i pressed",key+1000);
-#endif
+ if(raydium_key_trace)
+    raydium_log("normal key %i pressed",key+1000);
  }
 
 }
@@ -101,18 +100,16 @@
 key%=65536;
 raydium_key[key]=2;
 raydium_key_last=key;
-#ifdef DEBUG_KEYS
-raydium_log("special key %i down (normal key updated too)",key);
-#endif
+if(raydium_key_trace)
+    raydium_log("special key %i down (normal key updated too)",key);
 }
 
 void raydium_key_special_up_callback(GLuint key, int x, int y)
 {
 key%=65536;
 raydium_key[key]=0;
-#ifdef DEBUG_KEYS
-raydium_log("special key %i up",key);
-#endif
+if(raydium_key_trace)
+    raydium_log("special key %i up",key);
 }
 
 // moslty used for php
LL -d "$INCLUDES/raydium/php"
+find raydium/php -name "*.h" -exec cp --parents {} "$INCLUDES" \;
+
+# Raydium libs
+$INSTALL -d "$LIBS"
+cp -P libray* "$LIBS"
+
+# rayphp
+$INSTALL -d "$SHARE/rayphp"
+$INSTALL -m 644 rayphp/* "$SHARE/rayphp" 2> /dev/null
+
+# raydium-config
+tmp="raydium-config"
+echo "#!/bin/sh" > "$tmp"
+echo "# Generated by install.sh" >> "$tmp"
+cat configure.conf >> "$tmp"
+file='
+includes() {
+echo -n "-I$INCLUDES -I$INCLUDES/raydium/php/ -I$INCLUDES/raydium/php/main/ -I$INCLUDES/raydium/php/Zend -I$INCLUDES/raydium/php/TSRM -I$INCLUDES/raydium/ode/include/ "
+}
+libs() {
+echo -n "-L$LIBS -lraydium "
+}
+cflags() {
+echo -n "-DFORCE_LIBRAYDIUM "
+includes
+}
+if [ "$1" = "--libs" ]; then
+    libs
+    echo ""
+    exit 0
+fi
+if [ "$1" = "--includes" ]; then
+    includes
+    echo ""
+    exit 0
+fi
+if [ "$1" = "--cflags" ]; then
+    cflags
+    echo ""
+    exit 0
+fi
+echo "Usage: $0 [--libs|--includes|--cflags]"
+exit 1
+'
+echo "$file" >> "$tmp"
+$INSTALL -d "$BINS"
+$INSTALL -m 755 "$tmp" "$BINS"
+
+# Shouldn't we add docs & READMEs ?

Property changes on: install.sh
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property