1. libsleipnir
  2. sleipnir

Commits

YOUNG-SUK LEE  committed e388976

temporary ruby script to create bin files

  • Participants
  • Parent commits 876d567
  • Branches sleipnir

Comments (0)

Files changed (4)

File .hgignore

View file
 src/libSleipnir.a
 doc/html
 doc/latex
+bin/*
 
 extlib
 

File bin.rb

View file
+require 'pp'
+
+tool_dirs = Dir.glob("tools/*/")
+
+tools = tool_dirs.map{|dir| [dir.split("/")[-1], dir] }
+
+tools.each do |tool, dir|
+#  pp Dir.pwd+dir
+#  pp tool
+  `ln -s #{Dir.pwd}/#{dir}/#{tool} bin/#{tool}`
+end

File configure.ac

View file
          elif test "x$with_libsvm" != "xno"; then
            libsvm_state=try
            qualify_path with_libsvm
-           LOCAL_CHECK_APPEND_PATHS([$with_libsvm], [. include], [svm.h], [LIBSVM_INCLUDE_DIR], [libsvm_state=warn])
+           LOCAL_CHECK_APPEND_PATHS([$with_libsvm], [. include], [libsvm/svm.h], [LIBSVM_INCLUDE_DIR], [libsvm_state=warn])
            LOCAL_CHECK_APPEND_PATHS([$with_libsvm], [. lib], [liblibsvm.a], [LIBSVM_LIB_DIR], [libsvm_state=warn])
          else
            libsvm_state=no
         [],                                                       dnl requested without
         [
          #include <sys/types.h>
-         #include "svm.h"],
+         #include "libsvm/svm.h"],
         [],
         [-L $LIBSVM_LIB_DIR -I $LIBSVM_INCLUDE_DIR])
 ## LOCAL_CHECK_LIB(1 lib name, 2 local name, 3 function,
 if test "x$libsvm_state" = "xwarn"; then
   cat << EOF
 ** WARNING: The path to LibSVM may be incorrect.
-I looked for  libsvm.a and did not
-find. NOTE: You may need to make liblibsvm.a.
+I looked for  liblibsvm.a and did not
+find.  You may need to make liblibsvm.a.
 
-ar rcs liblibsvm.a *.o
+ar rcs liblibsvm.a libsvm/*.o
 
 See the README.
 EOF

File src/libsvm.h

View file
 
   extern "C" {
 #define class Class2
-#include <svm.h>
+#include <libsvm/svm.h>
 #undef class
 
   }