Changeset 71
- Timestamp:
- May 3, 2004, 9:09:03 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r9 r71 1 # $Id$ 1 ## Process this file with autoconf to produce a configure script. 2 ## 3 ## $Id$ 4 ## 5 ## Author: Jari Hakkinen, jari@thep.lu.se 6 ## 7 ## Developers search for FIXME 8 ## 9 ## If you grabbed the source from CVS you should, at top-level, execute: 10 ## ./bootstrap 11 ## or maybe one should use autoreconf! FIXME: Can the 'bootstrap' 12 ## script be replaced with autoreconf? 2 13 3 AC_INIT(src) 4 AC_CONFIG_AUX_DIR(autotools) 14 AC_PREREQ(2.57) 15 AC_INIT([[thep-c++_tools]],[0.1],[jari@thep.lu.se]) 16 AC_CONFIG_SRCDIR([src/matrix.h]) 17 AC_CONFIG_AUX_DIR([autotools]) 18 AC_PREFIX_DEFAULT([/usr/local]) 5 19 6 AM_CONFIG_HEADER(config.h) 7 8 AM_INIT_AUTOMAKE(c++_tools,0.1,jari@thep.lu.se) 9 10 AC_PREFIX_DEFAULT(/usr/local) 20 AM_CONFIG_HEADER([config.h]) 21 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION,$PACKAGE_BUGREPORT) 11 22 12 23 # Checks for programs. … … 15 26 AC_PROG_RANLIB 16 27 17 ## BEGIN COMMON DENOMINATOR of DISTRIBUTION COMPILATION CFLAG 18 ## 19 ## variables used to pass to CFLAG: 20 ## gcc_cflags standard optimization flags 21 ## gcc_cflags_cpu cpu detection 22 ## gcc_cflags_arch architecture detection 28 # Checks for libraries. 23 29 24 ## Tests if --enable-debug, --enable-warning or --enable-purify are given 25 AC_ARG_ENABLE(debug, 26 [ --enable-debug debug (-g option on compiler)]) 27 if test "${enable_debug}" = "yes" ; then 28 CFLAGS="-g" 29 fi 30 AC_ARG_ENABLE(warnings, 31 [ --enable-warnings warnings (-Wall option on compiler)]) 32 if test "${enable_warnings}" = "yes" ; then 33 CFLAGS="$CFLAGS -Wall" 34 fi 35 AC_MSG_CHECKING(for purify) 36 if(purify -version) < /dev/null > /dev/null 2>&1; then 37 AC_MSG_RESULT(yes) 38 AC_ARG_ENABLE(purify, 39 [ --enable-purify purify ]) 40 if test "${enable_purify}" = "yes" ; then 41 CFLAGS="-g" 42 fi 43 else 44 AC_MSG_RESULT(no) 45 fi 30 # Checks for header files. 31 AC_CHECK_HEADERS([unistd.h]) 46 32 47 CXXFLAGS="-O3 -Wall" 33 # Checks for typedefs, structures, and compiler characteristics. 34 AC_HEADER_STDBOOL 35 AC_C_CONST 36 AC_C_INLINE 37 AC_TYPE_SIZE_T 38 39 # Checks for library functions. 40 AC_FUNC_ERROR_AT_LINE 41 AC_HEADER_STDC 42 AC_CHECK_FUNCS([pow sqrt]) 43 44 LDFLAGS="-L/home/max/jari/local/lib" 45 46 CXXFLAGS="-O3 -Wall -DGSL_RANGE_CHECK_OFF" 48 47 AC_SUBST(CXXFLAGS) 49 48 50 # Misc libs, these should of course be set automatically 51 CBLAS_LIB="-lcblas -latlas" 49 AC_CHECK_LIB(m,main,[MATH_LIB="-lm" LIBS="-lm $LIBS"]) 50 AC_CHECK_LIB(atlas,ATL_ctrsv, 51 [CBLAS_LIB="-lcblas -latlas"], 52 AC_CHECK_LIB(gslcblas,cblas_sdsdot, \ 53 [CBLAS_LIB="-lgslcblas" LIBS="-lgslcblas $LIBS"])) 54 AC_CHECK_LIB(gsl,main,[GSL_LIB="-lgsl"]) 55 AC_SUBST(GSL_LIB) 52 56 AC_SUBST(CBLAS_LIB) 53 GSL_LIB="-lgsl"54 AC_SUBST(GSL_LIB)55 GSLWRAP_LIB="-lgslwrap"56 AC_SUBST(GSLWRAP_LIB)57 MATH_LIB="-lm"58 57 AC_SUBST(MATH_LIB) 59 58 … … 67 66 AC_SUBST(CPP_TOOLS_HEADER_LOCATION) 68 67 69 AC_ OUTPUT([70 Makefile71 doc/Makefile72 src/Makefile73 test/Makefile 74 ]) 68 AC_CONFIG_FILES([Makefile 69 doc/Makefile 70 src/Makefile 71 test/Makefile]) 72 73 AC_OUTPUT -
trunk/src/Makefile.am
r69 r71 10 10 stl_utility SVD.cc SVM.cc vector.cc Wead.cc 11 11 12 INCLUDES = -I/home/max/jari/local/include -I/usr/local_bio 13 14 AM_CXXFLAGS = -g 12 INCLUDES = -I/home/max/jari/local/include -
trunk/test/Makefile.am
r58 r71 7 7 test_rnd_SOURCES = test_rnd.cc 8 8 test_rnd_LDADD = -L@top_srcdir@/$(CPP_TOOLS_LIB_LOCATION) $(CPP_TOOLS_LIB) \ 9 -L/usr/local_bio/lib -L/usr/local_bio/lib/Linux_P4SSE2 \10 9 $(GSL_LIB) $(CBLAS_LIB) $(MATH_LIB) 11 10 12 11 test_pca_SOURCES = test_pca.cc 13 12 test_pca_LDADD = -L@top_srcdir@/$(CPP_TOOLS_LIB_LOCATION) $(CPP_TOOLS_LIB) \ 14 -L/usr/local_bio/lib -L/usr/local_bio/lib/Linux_P4SSE2 \15 13 $(GSL_LIB) $(CBLAS_LIB) $(MATH_LIB) 16 14 17 15 test_svd_SOURCES = test_svd.cc 18 16 test_svd_LDADD = -L@top_srcdir@/$(CPP_TOOLS_LIB_LOCATION) $(CPP_TOOLS_LIB) \ 19 -L/usr/local_bio/lib -L/usr/local_bio/lib/Linux_P4SSE2 \20 17 $(GSL_LIB) $(CBLAS_LIB) $(MATH_LIB) 21 18 22 19 test_kernel_SOURCES = test_kernel.cc 23 20 test_kernel_LDADD = -L@top_srcdir@/$(CPP_TOOLS_LIB_LOCATION) $(CPP_TOOLS_LIB) \ 24 -L/usr/local_bio/lib -L/usr/local_bio/lib/Linux_P4SSE2 \25 21 $(GSL_LIB) $(CBLAS_LIB) $(MATH_LIB) 26 22 27 23 test_svm_SOURCES = test_svm.cc 28 24 test_svm_LDADD = -L@top_srcdir@/$(CPP_TOOLS_LIB_LOCATION) $(CPP_TOOLS_LIB) \ 29 -L/usr/local_bio/lib -L/usr/local_bio/lib/Linux_P4SSE2 \30 25 $(GSL_LIB) $(CBLAS_LIB) $(MATH_LIB) 31 26 32 27 test_wead_SOURCES = test_wead.cc 33 28 test_wead_LDADD = -L@top_srcdir@/$(CPP_TOOLS_LIB_LOCATION) $(CPP_TOOLS_LIB) \ 34 -L/home/max/jari/local/lib -L/home/max/jari/local/lib/Linux_ATHLONSSE1 \35 29 $(GSL_LIB) $(CBLAS_LIB) $(MATH_LIB) 36 30 37 31 INCLUDES = -I@top_srcdir@/$(CPP_TOOLS_HEADER_LOCATION) \ 38 -I/ usr/local_bio/include32 -I/home/max/jari/local/include 39 33 40 AM_CXXFLAGS = -g41 34 AM_LDFLAGS = -g
Note: See TracChangeset
for help on using the changeset viewer.