From 90bd712c88142fc534ae77f5fca85d31eb53aea8 Mon Sep 17 00:00:00 2001 From: Chris Allegretta <chrisa@asty.org> Date: Wed, 13 Sep 2000 18:12:05 +0000 Subject: [PATCH] Default case for slang AC_TRY_RUNs in configure.in git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@220 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ configure | 6 +++--- configure.in | 5 ++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2424b629..ee697718 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ CVS code - - General - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H, added check for regex.h in configure.in. +- configure.in: + - Added default case for cross-compiling to get rid of annoying + AC_TRY_RUN warning. - cut.c: do_cut_text() - Don't immediately abort if we're on filebot and the marker is diff --git a/configure b/configure index 6f1c5185..3a80e130 100755 --- a/configure +++ b/configure @@ -1330,7 +1330,7 @@ echo "configure:1330: checking for SLtt_initialize in -lslang" >&5 _libs=$LIBS LIBS="$LIBS -lslang" if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + echo "configure: warning: *** Can not use slang when cross-compiling" 1>&2 else cat > conftest.$ac_ext <<EOF #line 1337 "configure" @@ -1409,7 +1409,7 @@ fi echo "configure:1410: checking for SLtt_initialize in -lslang $tcap" >&5 LIBS="$LIBS $tcap" if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + echo "configure: warning: *** Can not use slang when cross-compiling" 1>&2 else cat > conftest.$ac_ext <<EOF #line 1416 "configure" @@ -1444,7 +1444,7 @@ else echo "configure:1445: checking for SLtt_initialize in -lslang $tcap -lm" >&5 LIBS="$LIBS -lm" if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } + echo "configure: warning: *** Can not use slang when cross-compiling" 1>&2 else cat > conftest.$ac_ext <<EOF #line 1451 "configure" diff --git a/configure.in b/configure.in index 183707d5..5cc3b233 100644 --- a/configure.in +++ b/configure.in @@ -94,7 +94,10 @@ int main () { SLtt_initialize (NULL); return 0; }], CURSES_LIB="-lslang $tcap -lm" fi CURSES_LIB_NAME=slang], - [AC_MSG_RESULT(no)])])]), + [AC_MSG_RESULT(no)], +AC_MSG_WARN([*** Can not use slang when cross-compiling]))], +AC_MSG_WARN([*** Can not use slang when cross-compiling]))], +AC_MSG_WARN([*** Can not use slang when cross-compiling])), AC_MSG_ERROR([ *** The header file slcurses.h was not found. If you wish to use *** slang support this header file is required. Please either -- GitLab