Skip to content

Commit

Permalink
- Check for gettext
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12408 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 2, 2012
1 parent e890177 commit 71e0caa
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions configure.in
Expand Up @@ -321,6 +321,25 @@ else
WITH_SUNDIALS="/* Without Sundials */"
SUNDIALS_LDFLAGS=""
fi

LIBS=""

AC_MSG_CHECKING([gettext linking])
AC_TRY_LINK([
#include <libintl.h>
], [
gettext("");
], [AC_MSG_RESULT([in C-library])],
[
LIBS="-lintl";
AC_TRY_LINK([
#include <libintl.h>
], [
gettext("");
], [AC_MSG_RESULT([in intl]);RT_LDFLAGS="$RT_LDFLAGS $LIBS"],
[AC_MSG_ERROR([no])])
])

LIBS=""

dnl should we use ipopt?
Expand Down Expand Up @@ -535,9 +554,9 @@ else
fi

if test "Darwin" != `uname`; then
RT_LDFLAGS="-lrt"
RT_LDFLAGS="$RT_LDFLAGS -lrt"
else
RT_LDFLAGS="-liconv"
RT_LDFLAGS="$RT_LDFLAGS -liconv"
fi

dnl should we compile modpar
Expand Down

0 comments on commit 71e0caa

Please sign in to comment.