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

SCM Repository

[diderot] Diff of /branches/pure-cfg/configure.ac
ViewVC logotype

Diff of /branches/pure-cfg/configure.ac

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

trunk/configure.ac revision 126, Tue Jun 29 16:16:27 2010 UTC branches/pure-cfg/configure.ac revision 997, Wed Apr 27 17:33:05 2011 UTC
# Line 9  Line 9 
9  AC_INIT(diderot,0.1,)  AC_INIT(diderot,0.1,)
10    
11  AC_PREREQ(2.60)  AC_PREREQ(2.60)
12  AC_COPYRIGHT([[COPYRIGHT (c) 2010 The Diderot Project]])  AC_COPYRIGHT([[COPYRIGHT (c) 2010 The Diderot Project (http://diderot-language.cs.uchicago.edu)]])
13  AC_CONFIG_SRCDIR(src/dnorm/dnorm.c)  AC_CONFIG_SRCDIR(src/dnorm/dnorm.c)
14  AC_CONFIG_AUX_DIR(config)  AC_CONFIG_AUX_DIR(config)
15  AC_CONFIG_MACRO_DIR(config)  AC_CONFIG_MACRO_DIR(config)
# Line 21  Line 21 
21  sinclude(config/check_smlnj.m4)  sinclude(config/check_smlnj.m4)
22  sinclude(config/check_smlnj_heap_suffix.m4)  sinclude(config/check_smlnj_heap_suffix.m4)
23    
   
24  dnl  dnl
25  dnl get host information  dnl get host information
26  dnl  dnl
# Line 29  Line 28 
28    
29  dnl check for standard programs  dnl check for standard programs
30  dnl  dnl
 AC_PROG_CC_C99  
31  AC_PROG_CPP  AC_PROG_CPP
32  AC_PROG_INSTALL  AC_PROG_INSTALL
33  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
34    
35    dnl check for c99 support
36    dnl
37    AC_PROG_CC_C99
38    if test x"$ac_cv_prog_cc_c99" = xno ; then
39      AC_MSG_ERROR([Diderot requires c99 support])
40    fi
41    
42    dnl extra C compiler options
43    dnl
44    CC="$CC -m64"
45    CFLAGS="$CFLAGS -Wformat -Wreturn-type -Wuninitialized"
46    
47    dnl
48    dnl Look for NVIDIA's nvcc compiler
49    dnl
50    AC_MSG_CHECKING([for CUDA and nvcc])
51    AC_PATH_PROG(NVCC, nvcc, ":", $PATH)
52    if test $NVCC = none ; then
53      AC_MSG_WARN([nvcc not found])
54    else
55      AC_MSG_RESULT([$NVCC])
56    fi
57    AC_SUBST(NVCC)
58    
59    dnl
60    dnl check for pthreads support
61    dnl
62    ACX_PTHREAD()
63    
64  dnl  dnl
65  dnl If we are on Mac OS X, check for the presence of macports and/or fink  dnl OS-specific linking issues
66  dnl  dnl
67    LD_NEEDS_RPATH=false;
68    LIBM=""
69  case "$host_os" in  case "$host_os" in
70    darwin*) # On Mac OS X we check for installed frameworks    darwin*) # On Mac OS X we check for the presence of macports and/or fink
71      if test -x /opt/local/bin/port ; then      if test -x /opt/local/bin/port ; then
72        HAS_MACPORTS=yes        HAS_MACPORTS=yes
73      else      else
# Line 50  Line 79 
79        HAS_FINK=no        HAS_FINK=no
80      fi      fi
81    ;;    ;;
82      linux) # On Linux we include the -rpath option to pick up dynamically-loaded libraries
83        LD_NEEDS_RPATH=true
84        LIBM="-lm"
85      ;;
86  esac  esac
87    
88  if test x"$HAS_MACPORTS" = xyes ; then  if test x"$HAS_MACPORTS" = xyes ; then
# Line 60  Line 93 
93    LDPATHS=""    LDPATHS=""
94  fi  fi
95  AC_SUBST(LDPATHS)  AC_SUBST(LDPATHS)
96    AC_SUBST(LD_NEEDS_RPATH)
97    AC_SUBST(LIBM)
98    
99  dnl  dnl
100  dnl get the path to the TEEM installation  dnl get the path to the TEEM installation
# Line 153  Line 188 
188  dnl ******************** write output ********************  dnl ******************** write output ********************
189  dnl  dnl
190    
 dnl ***** Makefiles *****  
191  AC_CONFIG_FILES(  AC_CONFIG_FILES(
192    dnl
193    dnl ***** Makefiles *****
194      Makefile
195    src/dnorm/Makefile    src/dnorm/Makefile
196    src/compiler/Makefile    src/compiler/Makefile
197      src/lib/Makefile
198      test/Makefile
199      test/MIP/Makefile
200      test/probe/Makefile
201    dnl
202    dnl ***** SML source files *****
203      src/compiler/fields/run-dnorm.sml:src/compiler/fields/run-dnorm_sml.in
204      src/compiler/common/paths.sml:src/compiler/common/paths_sml.in
205  )  )
206    
207  dnl  dnl

Legend:
Removed from v.126  
changed lines
  Added in v.997

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