From: Chris Dams Date: Mon, 31 Jul 2006 16:45:10 +0000 (+0000) Subject: Patch from Alexei for enabling compilation on MinGW. X-Git-Tag: release_1-4-0~78 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=28a3fbcae30217a4574ec5cd64a89c8757a54cbf;hp=ef2ed9a711c416722c34548015b4ae3621948c1c Patch from Alexei for enabling compilation on MinGW. --- diff --git a/acinclude.m4 b/acinclude.m4 index 0061968f..45ea8dae 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -43,6 +43,10 @@ dnl When both libtermcap and libncurses exist, we prefer the latter, because dnl libtermcap is being phased out. AC_DEFUN([GINAC_TERMCAP], [LIBTERMCAP= +case $host_os in +*mingw32*) + ;; dnl no termcap libraries are necessary (need hacked libreadline) +*) AC_CHECK_FUNCS(tgetent) if test "x$ac_cv_func_tgetent" = "xyes"; then : @@ -52,6 +56,8 @@ else AC_CHECK_LIB(termcap, tgetent, LIBTERMCAP="-ltermcap") fi fi +;; +esac AC_SUBST(LIBTERMCAP) ]) diff --git a/check/Makefile.am b/check/Makefile.am index 48e7a999..b7c9d0fb 100644 --- a/check/Makefile.am +++ b/check/Makefile.am @@ -2,6 +2,7 @@ TESTS = run_exams run_checks run_times check_PROGRAMS = exams checks times +TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) srcdir=$(srcdir) checks_SOURCES = check_numeric.cpp check_inifcns.cpp check_matrices.cpp \ check_lsolve.cpp genex.cpp checks.cpp checks.h diff --git a/check/run_checks b/check/run_checks index 6304d18f..93b77065 100755 --- a/check/run_checks +++ b/check/run_checks @@ -1,4 +1,4 @@ #! /bin/sh echo "GiNaC will now run through some rather costly random consistency checks:" -./checks 2>checks.out +./checks${EXEEXT} 2>checks.out cmp ${srcdir}/checks.ref checks.out diff --git a/check/run_exams b/check/run_exams index 8c8efa59..1e7ba463 100755 --- a/check/run_exams +++ b/check/run_exams @@ -1,4 +1,4 @@ #! /bin/sh echo "GiNaC will now take an exam with specific input (like a pupils' exam):" -./exams 2>exams.out +./exams${EXEEXT} 2>exams.out cmp ${srcdir}/exams.ref exams.out diff --git a/check/run_times b/check/run_times index 3687f1ef..eb2380bd 100755 --- a/check/run_times +++ b/check/run_times @@ -1,4 +1,4 @@ #! /bin/sh echo "GiNaC will now run through some basic timings:" -./times 2>times.out +./times${EXEEXT} 2>times.out cmp ${srcdir}/times.ref times.out