Skip to content

Commit

Permalink
Don't compile with ipopt if we lack kinsol
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17131 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Sep 8, 2013
1 parent f8d9451 commit de67147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ AC_ARG_WITH(ipopt, [ --with-ipopt=DIR use ipopt for initializat
WANT_IPOPT="yes"
])

if test "$WANT_IPOPT" = "yes"; then
if test "$NO_SUNDIALS" = "yes"; then
NO_IPOPT="yes"
elif test "$WANT_IPOPT" = "yes"; then
AC_CHECK_HEADERS(coin/IpStdCInterface.h, [IPOPT_LDFLAGS="-lipopt"; IPOPT_CFLAGS=""], [NO_IPOPT="yes"])
elif test "$WANT_IPOPT" = "no"; then
NO_IPOPT="yes"
Expand Down

0 comments on commit de67147

Please sign in to comment.