Skip to content

Commit

Permalink
Fix configure error for older autoconf
Browse files Browse the repository at this point in the history
  • Loading branch information
bukka committed Sep 9, 2013
1 parent 89b5200 commit ac011aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.m4
Expand Up @@ -38,7 +38,7 @@ if test "$PHP_FANN" != "no"; then
PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
[
PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $FANN_DIR/$PHP_LIBDIR, FANN_SHARED_LIBADD)
AC_CHECK_LIB($LIBNAME,[fann_copy],[ AC_DEFINE(HAVE_FANN_2_2,1,[Fann library version 2.2]) ],[ ], [-lm])
AC_CHECK_LIB($LIBNAME,[fann_copy],[ AC_DEFINE(HAVE_FANN_2_2,1,[Fann library version 2.2]) ],[],[-lm])
AC_DEFINE(HAVE_FANN,1,[Fann library found])
],[
AC_MSG_ERROR([wrong libfann version (you need at least version 2.1) or lib not found])
Expand Down

0 comments on commit ac011aa

Please sign in to comment.