diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-12-06 22:38:11 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-12-06 22:38:11 +0100 |
commit | 83e4bb9014193a7ef80d2c310d4924e10aabda0c (patch) | |
tree | b0fae61c9ad741c74ae509ea0405dc69dea41a8e /configure.ac | |
parent | 1f9a4deaa4f924f364aee10842565835bcf9c47b (diff) |
fixed libsupc++ configure bug
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac index 3023cc20..4067ce66 100644 --- a/configure.ac +++ b/configure.ac @@ -69,16 +69,6 @@ esac AC_SUBST(LIB) AC_SUBST(YASM_FLAGS) -case "$host" in - *-*-gnu) - AS_IF([test "${enable_staticlink}" != "no"], [ - NOCPPLIB="-nostdlib ../../$LIB/lib/libsupc++.a" - ], [ - NOCPPLIB="-nostdlib -lsupc++" - ]);; -esac -AC_SUBST(NOCPPLIB) - test "x$prefix" = xNONE && prefix=$ac_default_prefix dnl INSANE_CFLAGS="-Wformat -Wdisabled-optimization -Wcomment -Wchar-subscripts -Wunused-function -Wunused-value -Wuninitialized -Wtype-limits -Wbad-function-cast" @@ -147,6 +137,17 @@ AS_IF([test "${enable_abstract_socket}" != "no"], [ USE_ABSTRACT_SOCKET_NAME=yes ]) +case "$host" in + *-*-gnu ) + AS_IF([test "${enable_staticlink}" != "no"], [ + NOCPPLIB="-nostdlib ../../$LIB/lib/libsupc++.a" + ], [ + NOCPPLIB="-nostdlib -lsupc++" + ]) + AC_SUBST(NOCPPLIB) + ;; +esac + AC_CHECK_LIB([intl], [main], [INTL_LIBS="-lintl";AC_SUBST(INTL_LIBS)]) dnl check for yasm |