comparison configure.in @ 8607:08331c2fb00f

add -lregex to REGEX_LIBS at configure stage, add ARPACK_LIBS, REGEX_LIBS to liboctave's link deps
author Benjamin Lindner <lindnerb@users.sourceforge.net>
date Tue, 27 Jan 2009 22:44:38 -0500
parents dee5d60257e4
children f8b3ece45bda
comparison
equal deleted inserted replaced
8606:0611b48a2b61 8607:08331c2fb00f
471 471
472 AC_CHECK_FUNCS(regexec, WITH_REGEX=yes , [ 472 AC_CHECK_FUNCS(regexec, WITH_REGEX=yes , [
473 AC_CHECK_LIB(regex, regexec, WITH_REGEX=yes, WITH_REGEX=no)]) 473 AC_CHECK_LIB(regex, regexec, WITH_REGEX=yes, WITH_REGEX=no)])
474 if test $WITH_REGEX = yes ; then 474 if test $WITH_REGEX = yes ; then
475 AC_DEFINE(HAVE_REGEX, 1, [Define if regex is available.]) 475 AC_DEFINE(HAVE_REGEX, 1, [Define if regex is available.])
476 if test $WITH_PCRE = no ; then
477 AC_CHECK_FUNCS(regexec, REGEX_LIBS= , [ 476 AC_CHECK_FUNCS(regexec, REGEX_LIBS= , [
478 AC_CHECK_LIB(regex, regexec, REGEX_LIBS="-lregex")]) 477 AC_CHECK_LIB(regex, regexec, REGEX_LIBS="$REGEX_LIBS -lregex")])
479 fi
480 fi 478 fi
481 if test $WITH_REGEX = no; then 479 if test $WITH_REGEX = no; then
482 warn_regex="regular expression functions not found. The regular expression matching functions will be disabled." 480 warn_regex="regular expression functions not found. The regular expression matching functions will be disabled."
483 AC_MSG_WARN($warn_regex) 481 AC_MSG_WARN($warn_regex)
484 fi 482 fi