Skip to content
Browse files

Tweaking build to work with homebrew installed libsvm on mac

  • Loading branch information...
1 parent e86da8b commit c335cce672f663709de65e7e5205d91db71736d0 @ianbarber committed Mar 9, 2012
Showing with 21 additions and 14 deletions.
  1. +18 −11 config.m4
  2. +1 −1 package.xml
  3. +1 −1 php_svm.h
  4. +1 −1 php_svm_internal.h
View
29 config.m4
@@ -26,21 +26,28 @@ dnl Get PHP version depending on shared/static build
fi
AC_MSG_CHECKING([for svm.h header])
- for i in $PHP_SVM /usr/local /usr;
- do
- test -r $i/include/libsvm-2.0/libsvm/svm.h && SVM_PREFIX=$i && SVM_INC_DIR=$i/include/libsvm-2.0/ && SVM_OK=1
- done
-
- if test "$SVM_OK" != "1"; then
for i in $PHP_SVM /usr/local /usr;
do
- test -r $i/include/libsvm/svm.h && SVM_PREFIX=$i && SVM_INC_DIR=$i/include/ && SVM_OK=1
+ test -r $i/include/libsvm-2.0/libsvm/svm.h && SVM_PREFIX=$i && SVM_INC_DIR=$i/include/libsvm-2.0/libsvm/ && SVM_OK=1
done
- fi
+
+ if test "$SVM_OK" != "1"; then
+ for i in $PHP_SVM /usr/local /usr;
+ do
+ test -r $i/include/libsvm/svm.h && SVM_PREFIX=$i && SVM_INC_DIR=$i/include/libsvm/ && SVM_OK=1
+ done
+ fi
+
+ if test "$SVM_OK" != "1"; then
+ for i in $PHP_SVM /usr/local /usr;
+ do
+ test -r $i/include/svm.h && SVM_PREFIX=$i && SVM_INC_DIR=$i/include/ && SVM_OK=1
+ done
+ fi
- if test "$SVM_OK" != "1"; then
- AC_MSG_ERROR([Unable to find svm.h])
- fi
+ if test "$SVM_OK" != "1"; then
+ AC_MSG_ERROR([Unable to find svm.h])
+ fi
AC_MSG_RESULT([found in $SVM_INC_DIR])
View
2 package.xml
@@ -17,7 +17,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
<date>2012-01-21</date>
<time>19:30:00</time>
<version>
- <release>0.1.5</release>
+ <release>0.1.6</release>
<api>0.1.5</api>
</version>
<stability>
View
2 php_svm.h
@@ -19,7 +19,7 @@
# define _PHP_SVM_H_
#define PHP_SVM_EXTNAME "svm"
-#define PHP_SVM_EXTVER "0.1.0-dev"
+#define PHP_SVM_EXTVER "0.1.6"
#ifdef HAVE_CONFIG_H
# include "config.h"
View
2 php_svm_internal.h
@@ -19,7 +19,7 @@
#ifndef _PHP_SVM_INTERNAL_H_
# define _PHP_SVM_INTERNAL_H_
-#include <libsvm/svm.h>
+#include <svm.h>
typedef struct _php_svm_object {
zend_object zo;

0 comments on commit c335cce

Please sign in to comment.
Something went wrong with that request. Please try again.