Changeset 1662


Ignore:
Timestamp:
Dec 18, 2008, 5:31:29 PM (12 years ago)
Author:
Peter
Message:

fixing #468: propagate selected configure options to DISTCHECK_CONFIGURE_FLAGS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1657 r1662  
    5050# Set default programming language
    5151AC_LANG(C++)
     52
     53# propagate selected configure variables to DISTCHECK_CONFIGURE_FLAGS
     54for var in CPPFLAGS CXX CXXFLAGS CXXCPP LDFLAGS LIBS; do
     55  eval isset=\${$var+set}
     56  if test "$isset" = 'set' ; then
     57    eval val=$`echo $var`
     58    DISTCHECK_CONFIGURE_FLAGS="${DISTCHECK_CONFIGURE_FLAGS}'${var}=${val}' "
     59  fi
     60done
     61AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
    5262
    5363# Let user overide default CXXFLAGS
Note: See TracChangeset for help on using the changeset viewer.