Changeset 62 for sources/configure.ac
- Timestamp:
- Feb 16, 2017, 3:46:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/configure.ac
r50 r62 38 38 39 39 MY_ARG_ENABLE(debug, [Enable debugging], [no]) 40 MY_ARG_ENABLE(use_omp, [Compile with OpenMP activated], [no]) 40 41 41 42 MY_ARG_ENABLE(default_runtime_compilation, [Compile scheduling code], [no]) 42 43 43 44 # Also set -DNDEBUG when not debugging, this disables assert()s 44 AS_IF([test "x$do_debug" = "xyes"], [CXXFLAGS="-g" 45 AS_IF([test "x$do_debug" = "xyes"], [CXXFLAGS="-g"], 45 46 [test "x$do_debug" != "xyes"], [CXXFLAGS="-O2 -DNDEBUG"]) 47 48 AS_IF([test "x$do_use_omp" = "xyes"], [CXXFLAGS+=" -DUSE_OPENMP"], 49 [test "x$do_use_omp" != "xyes"], [CXXFLAGS+=""]) 46 50 47 51 case $target_os in … … 90 94 91 95 # OpenMP 92 AC_OPENMP([C]) 93 AC_CHECK_LIB(dl, dlopen, , ) 94 AC_CHECK_LIB(gomp, omp_get_thread_num, , ) 96 AS_IF([test "x$do_use_omp" = "xyes"], 97 [AC_OPENMP([C]) 98 AC_CHECK_LIB(dl, dlopen, , ) 99 AC_CHECK_LIB(gomp, omp_get_thread_num, , )] 100 ) 95 101 96 102 AM_CONDITIONAL(BUILD_DOCS,
Note: See TracChangeset
for help on using the changeset viewer.