Changeset 2083 for trunk/configure.ac


Ignore:
Timestamp:
Oct 20, 2009, 12:33:30 AM (12 years ago)
Author:
Peter
Message:

Let user override the -D* flags that are set in configure. User can,
e.g, issue ./configure -DGSL_RANGE_CHECK=1 if he wants range check in
gsl but doesn't want the whole package that comes with --enable-debug.

serial in yat_add_flag.m4 is not updated because no point updating
serial multiple times between releases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r2030 r2083  
    170170  YAT_CXX_ADD_FLAG([INTERNAL_CXXFLAGS], [-g -O])
    171171else
    172   YAT_CPP_ADD_FLAG([INTERNAL_CPPFLAGS], [-DGSL_RANGE_CHECK_OFF -DNDEBUG])
     172  # avoid defining GSL_RANGE_CHECK_OFF if GSL_RANGE_CHECK is already defined
     173  AX_C_IFDEF([GSL_RANGE_CHECK],[],
     174             [YAT_CPP_ADD_FLAG([INTERNAL_CPPFLAGS], [-DGSL_RANGE_CHECK_OFF])
     175  YAT_CPP_ADD_FLAG([INTERNAL_CPPFLAGS], [-DNDEBUG])
    173176  YAT_CXX_ADD_FLAG([INTERNAL_CXXFLAGS], [-O3])
    174177fi
Note: See TracChangeset for help on using the changeset viewer.