Skip to content

Commit

Permalink
- Use getconf instead of uname. It works even in chroot environments.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14306 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 10, 2012
1 parent 8df3751 commit 2a9efac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fi

if test "Darwin" != `uname`; then

if test "`uname -m`" = "x86_64"; then
if test "`getconf LONG_BIT`" = "64"; then

AC_MSG_CHECKING([x86_64 CFLAGS])

Expand All @@ -102,7 +102,7 @@ fi

fi

if test "`uname -m | sed s/i./ix/`" = "ix86"; then
if test "`getconf LONG_BIT`" = "32"; then
dnl Simulations spin forever unless -msse2 -mfpmath=sse is set

CFLAGS_BEFORE=$CFLAGS
Expand Down

0 comments on commit 2a9efac

Please sign in to comment.