Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /tests/configure.ac
ViewVC logotype

Diff of /tests/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4660, Wed Sep 28 23:50:47 2016 UTC revision 5052, Thu Jul 13 17:26:39 2017 UTC
# Line 2  Line 2 
2  dnl  dnl
3  dnl This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)  dnl This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4  dnl  dnl
5  dnl COPYRIGHT (c) 2016 The University of Chicago  dnl COPYRIGHT (c) 2017 The University of Chicago
6  dnl All rights reserved.  dnl All rights reserved.
7  dnl  dnl
8    
9  AC_INIT(diderot-tests,0.1,)  AC_INIT(diderot-tests,0.1,)
10    
11  AC_PREREQ(2.60)  AC_PREREQ(2.60)
12  AC_COPYRIGHT([[COPYRIGHT (c) 2016 The University of Chicago]])  AC_COPYRIGHT([[COPYRIGHT (c) 2017 The University of Chicago]])
13  AC_CONFIG_SRCDIR(rtest/tests/heron/heron.diderot)  AC_CONFIG_SRCDIR(rtest/tests/heron/heron.diderot)
14  AC_CONFIG_AUX_DIR(config)  AC_CONFIG_AUX_DIR(config)
15  AC_CONFIG_MACRO_DIR(config)  AC_CONFIG_MACRO_DIR(config)
16    
17    sinclude(config/ax_cxx_compile_stdcxx.m4)
18    
19  dnl check for standard programs  dnl check for standard programs
20  dnl  dnl
21  AC_PROG_INSTALL  AC_PROG_INSTALL
22    
23    AC_PROG_CC([clang gcc cc])
24    AC_PROG_CXX([clang++ g++ c++])
25    AX_CXX_COMPILE_STDCXX(11,[],[mandatory])
26    
27  dnl the path can be specified using "--with-teem=..." too  dnl the path can be specified using "--with-teem=..." too
28  dnl  dnl
29  AC_ARG_WITH(teem,  AC_ARG_WITH(teem,
# Line 63  Line 69 
69  if test x"$TEEM_DIR" = xnone ; then  if test x"$TEEM_DIR" = xnone ; then
70    AC_MSG_ERROR([unable to find teem])    AC_MSG_ERROR([unable to find teem])
71  fi  fi
72    TEEM_BIN=$TEEM_DIR/bin
73  AC_SUBST(TEEM_DIR)  AC_SUBST(TEEM_DIR)
74    AC_SUBST(TEEM_BIN)
75    
76  dnl ******************** Diderot configuration ********************  dnl ******************** Diderot configuration ********************
77  dnl  dnl
78    
79  dnl  dnl
80  dnl get the path to the diderot executable  dnl get the path to the root of the Diderot source tree that is being
81  dnl  dnl tested (DIDEROT_ROOT).  We assume that diderotc will be found in
82  AC_ARG_WITH(diderotc,  dnl $DIDEROT_ROOT/bin.
83    AC_HELP_STRING([--with-diderotc=<path>], [specify path to Diderot compiler]),  dnl
84    [ac_cv_use_diderotc=$withval], [ac_cv_use_diderotc=no])  AC_ARG_WITH(diderot,
85  if test x"$ac_cv_use_diderotc" = xno ; then    AC_HELP_STRING([--with-diderot=<path>], [specify path to Diderot source]),
86    DIDEROTC=none    [ac_cv_use_diderot=$withval], [ac_cv_use_diderot=no])
87    if test x"$ac_cv_use_diderot" = xno ; then
88      DIDEROT_ROOT=none
89  else  else
90    AC_MSG_CHECKING([path to diderotc ($ac_cv_use_diderotc)])    AC_MSG_CHECKING([path to diderot ($ac_cv_use_diderot)])
91    case $ac_cv_use_diderotc in    case $ac_cv_use_diderot in
92      /*) DIDEROTC=$ac_cv_use_diderotc ;;      /*) DIDEROT_ROOT=$ac_cv_use_diderot ;;
93      *) DIDEROTC=$BMARKS_ROOT$ac_cv_use_diderotc ;;      *) DIDEROT_ROOT=$BMARKS_ROOT$ac_cv_use_diderot ;;
94    esac    esac
95    # check that diderotc exists and is executable    # check that diderotc exists and is executable
96      DIDEROTC=$DIDEROT_ROOT/bin/diderotc
97    if test -x $DIDEROTC ; then    if test -x $DIDEROTC ; then
98      AC_MSG_RESULT([ okay])      AC_MSG_RESULT([ okay])
99    else    else
100        DIDEROT_ROOT=none
101      DIDEROTC=none      DIDEROTC=none
102      AC_MSG_RESULT([ invalid])      AC_MSG_RESULT([ invalid])
103    fi    fi
104  fi  fi
105  if test x"$DIDEROTC" = xnone ; then  if test x"$DIDEROT_ROOT" = xnone ; then
106    AC_MSG_ERROR([unable to find diderotc; use --with-diderotc option to specify location])    AC_MSG_ERROR([please specify location of Diderot source using --with-diderot option])
107  fi  fi
108    AC_SUBST(DIDEROT_ROOT)
109  AC_SUBST(DIDEROTC)  AC_SUBST(DIDEROTC)
110    
111  dnl  dnl
112  dnl ******************** write output ********************  dnl ******************** write output ********************
113  dnl  dnl
114    
115  AC_CONFIG_FILES([  dnl
116    rtest/scripts/run.sh:rtest/scripts/run_sh.in  dnl makerules for regression tests
117  ], [chmod +x rtest/scripts/run.sh])  dnl
118  AC_CONFIG_FILES([  AC_CONFIG_FILES(
119    rtest/scripts/run-one.sh:rtest/scripts/run-one_sh.in    rtest/scripts/makerules.gmk:rtest/scripts/makerules_gmk.in
120  ], [chmod +x rtest/scripts/run-one.sh])  )
121    
122    dnl
123    dnl generate script files with proper paths
124    dnl
125    dnl usage: MK_SCRIPT(<prefix-path>)
126    dnl
127    dnl generates <prefix-path>.sh from <prefix-path>_sh.in
128    dnl
129    AC_DEFUN([MK_SCRIPT], [
130        AC_CONFIG_FILES([$1.sh:$1_sh.in], [chmod +x $1.sh])
131      ])
132    
133    MK_SCRIPT(rtest/scripts/run)
134    MK_SCRIPT(rtest/scripts/run-one)
135    MK_SCRIPT(bc1d/run)
136    MK_SCRIPT(bc2d/run)
137    MK_SCRIPT(examples/vimg/run)
138    MK_SCRIPT(lamont-tests/run)
139    MK_SCRIPT(slinebug/run)
140    MK_SCRIPT(sqprnt/run)
141    MK_SCRIPT(synthetic/createmat3x3/mat3x3)
142    MK_SCRIPT(vis12-bugs/src/run)
143    MK_SCRIPT(vis15-bugs/circle)
144    MK_SCRIPT(vis15-bugs/sphere-snapbug)
145    MK_SCRIPT(vis15-bugs/halftone-bug2)
146    MK_SCRIPT(vis15-bugs/isohnd/run)
147    MK_SCRIPT(vis15-bugs/plot1d2d)
148    MK_SCRIPT(vis15-bugs/parlife)
149    MK_SCRIPT(vis15-bugs/parcircle)
150    
151  AC_OUTPUT  AC_OUTPUT
152    

Legend:
Removed from v.4660  
changed lines
  Added in v.5052

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0