diff --git a/configure.in b/configure.in index 8bae007..2f47ef6 100644 --- a/configure.in +++ b/configure.in @@ -108,7 +108,8 @@ if test x$alsamixer = xtrue; then CURSESLIBDIR="" NCURSESLIBSUFFIX="" CURSES_NLS="no" - if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then + if test "$cross_compiling" != "yes"; then + if test "$curseslib" = "ncursesw" -o \( "$curseslib" = "auto" -a "$USE_NLS" = "yes" \); then AC_CHECK_PROG([ncursesw5_config], [ncursesw5-config], [yes]) if test "$ncursesw5_config" = "yes"; then CURSESINC="" @@ -124,8 +125,8 @@ if test x$alsamixer = xtrue; then NCURSESLIBSUFFIX="w" CURSES_NLS="yes" fi - fi - if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then + fi + if test "$curseslib" = "ncurses" -o "$curseslib" = "auto"; then AC_CHECK_PROG([ncurses5_config], [ncurses5-config], [yes]) if test "$ncurses5_config" = "yes"; then CURSESINC="" @@ -137,6 +138,7 @@ if test x$alsamixer = xtrue; then AC_CHECK_LIB(ncurses, initscr, [ CURSESINC=''; CURSESLIB='-lncurses'; curseslib="ncurses"]) fi + fi fi if test "$curseslib" = "curses" -o "$curseslib" = "auto"; then AC_CHECK_LIB(curses, initscr,