aboutsummaryrefslogtreecommitdiff
path: root/am/grecs.m4
diff options
context:
space:
mode:
Diffstat (limited to 'am/grecs.m4')
-rw-r--r--am/grecs.m421
1 files changed, 16 insertions, 5 deletions
diff --git a/am/grecs.m4 b/am/grecs.m4
index 47c9867..5fc1819 100644
--- a/am/grecs.m4
+++ b/am/grecs.m4
@@ -51,5 +51,5 @@ AC_DEFUN([_GRECS_SET_OPTIONS],
-# GRECS_SETUP([OPTIONS],[pp-setup-file])
-#
-# Options are:
+# GRECS_SETUP([dir],[OPTIONS],[pp-setup-file])
+# dir - Directory in the source tree where grecs has been cloned.
+# OPTIONS are:
# no-preproc Disable the use of preprocessor.
@@ -59,2 +59,3 @@ AC_DEFUN([_GRECS_SET_OPTIONS],
# control whether the pp-setup file is installed.
+# tests Build tests.
#
@@ -71,3 +72,4 @@ AC_DEFUN([GRECS_SETUP],[
- _GRECS_SET_OPTIONS([$1])
+ AC_SUBST([GRECS_SUBDIR],m4_if([$1],,grecs,$1))
+ _GRECS_SET_OPTIONS([$2])
# **********************
@@ -106,3 +108,3 @@ AC_DEFUN([GRECS_SETUP],[
[PP_SETUP_FILE='pp-setup'],
- [m4_if([$2],,[PP_SETUP_FILE=],[PP_SETUP_FILE='$2'])])
+ [m4_if([$3],,[PP_SETUP_FILE=],[PP_SETUP_FILE='$3'])])
AC_SUBST(PP_SETUP_FILE)
@@ -129,3 +131,12 @@ AC_DEFUN([GRECS_SETUP],[
fi
+ _GRECS_IF_OPTION_SET([tests],
+ [m4_pushdef([TESTDIR],m4_if([$1],,grecs,$1)/tests)
+ AC_CONFIG_TESTDIR(TESTDIR)
+ AC_CONFIG_FILES(TESTDIR/Makefile TESTDIR/atlocal)
+ m4_popdef([TESTDIR])
+ AM_MISSING_PROG([AUTOM4TE], [autom4te])
+ GRECS_TESTDIR=tests
+ ])
AC_SUBST([GRECS_INCLUDES])
+ AC_SUBST([GRECS_TESTDIR])
])

Return to:

Send suggestions and report system problems to the System administrator.