oron@1456: diff -up ./tests/Makefile.am.orig ./tests/Makefile.am oron@1456: --- ./tests/Makefile.am.orig 2009-07-28 16:28:55.377059021 +0300 oron@1456: +++ ./tests/Makefile.am 2009-07-28 16:31:01.136810734 +0300 oron@1456: @@ -20,7 +20,7 @@ check_PROGRAMS = tversion tinternals tin oron@1456: oron@1456: EXTRA_DIST = tgeneric.c tgeneric_ui.c mpf_compat.h inp_str.data tmul.dat oron@1456: oron@1456: -tmul_CPPFLAGS = -DMPFR_SRCDIR=$(srcdir) oron@1456: +tmul_CPPFLAGS = -DMPFR_SRCDIR=\"$(srcdir)\" oron@1456: oron@1456: LDADD = libfrtests.la $(MPFR_LIBM) $(top_builddir)/libmpfr.la oron@1456: INCLUDES = -I$(top_srcdir) -I$(top_builddir) oron@1456: diff -up ./tests/tmul.c.orig ./tests/tmul.c oron@1456: --- ./tests/tmul.c.orig 2009-07-28 16:29:03.761058919 +0300 oron@1456: +++ ./tests/tmul.c 2009-07-28 16:30:46.369812215 +0300 oron@1456: @@ -26,10 +26,8 @@ MA 02110-1301, USA. */ oron@1456: #include "mpfr-test.h" oron@1456: oron@1456: #ifndef MPFR_SRCDIR oron@1456: -#define MPFR_SRCDIR . oron@1456: +#define MPFR_SRCDIR "." oron@1456: #endif oron@1456: -#define QUOTE(X) NAME(X) oron@1456: -#define NAME(X) #X oron@1456: oron@1456: #ifdef CHECK_EXTERNAL oron@1456: static int oron@1456: @@ -482,10 +480,10 @@ check_regression (void) oron@1456: mpfr_inits2 (6177, x, y, z, (mpfr_ptr) 0); oron@1456: /* we read long strings from a file since ISO C90 does not support strings of oron@1456: length > 509 */ oron@1456: - fp = fopen (QUOTE (MPFR_SRCDIR)"/tmul.dat", "r"); oron@1456: + fp = fopen (MPFR_SRCDIR "/tmul.dat", "r"); oron@1456: if (fp == NULL) oron@1456: { oron@1456: - fprintf (stderr, "Error, cannot open "QUOTE (MPFR_SRCDIR)"/tmul.dat\n"); oron@1456: + fprintf (stderr, "Error, cannot open " MPFR_SRCDIR "/tmul.dat\n"); oron@1456: exit (1); oron@1456: } oron@1456: get_string (s, fp); oron@1456: