source: trunk/dports/editors/TeXmacs/files/patch-configure.in.diff @ 92301

Last change on this file since 92301 was 92301, checked in by jmr@…, 8 years ago

TeXmacs: fix configure clearing CXXFLAGS (#29879)

File size: 1.1 KB
  • configure.in

    old new  
    436436#--------------------------------------------------------------------
    437437
    438438AC_MSG_CHECKING(whether ... arguments behave correctly)
     439SAVE_CXXFLAGS="$CXXFLAGS"
    439440if test -z "$GUILE_CFLAGS"; then
    440441  CXXFLAGS="`guile-config compile`"
    441442else
     
    454455],[
    455456  AC_MSG_RESULT(no)
    456457])
    457 CXXFLAGS=""
    458458
    459459AC_MSG_CHECKING(the size_t of guile strings)
    460460if test -z "$GUILE_CFLAGS"; then
     
    476476  AC_DEFINE(guile_str_size_t, size_t, [Guile string size type])
    477477  AC_MSG_RESULT(size_t)
    478478])
    479 CXXFLAGS=""
     479CXXFLAGS="$SAVE_CXXFLAGS"
    480480
    481481AC_MSG_CHECKING([if statically linking with guile works])
    482482SAVE_CPPFLAGS="$CPPFLAGS"
     
    932932    STD_DEBUG_FLAGS="-fno-exceptions"
    933933fi
    934934
     935SAVE_CXXFLAGS="$CXXFLAGS"
    935936AC_MSG_CHECKING(if compiler supports $STD_DEBUG_FLAGS)
    936937CXXFLAGS="$STD_DEBUG_FLAGS"
    937938AC_TRY_COMPILE([
     
    944945    CONFIG_CXXDIALECT=""
    945946    AC_MSG_RESULT(no)
    946947])
    947 CXXFLAGS=""
     948CXXFLAGS="$SAVE_CXXFLAGS"
    948949AC_SUBST(CONFIG_CXXDIALECT)
    949950
    950951AC_ARG_ENABLE(debug,
Note: See TracBrowser for help on using the repository browser.