Changeset 1416


Ignore:
Timestamp:
Oct 25, 2011, 1:39:04 AM (12 years ago)
Author:
Peter Johansson
Message:

in enable-debug check whether svn_wc.h compiles with -pedantic, if not remove -pedantic from CXXFLAGS. refs #506

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1415 r1416  
    154154# svn needs needs apr headers
    155155AC_CHECK_HEADER([subversion-1/svn_types.h],,[svn_found="no"])
     156
     157# In some versions, such as 1.7, of Subversion header file `svn_wc.h'
     158# does not conform to C++98 and therefore compiling with -pedantic
     159# fails. As -pedantic is automatically turned on in --enable-debug
     160# mode we need to turn it off -pedantic to allow building with
     161# --enable-debug (see ticket #506)
     162AS_IF([test x$enable_debug = xyes],
     163  [AC_MSG_CHECKING([subversion-1/svn_wc.h usability with -pedantic])
     164   AC_COMPILE_IFELSE(
     165    [AC_LANG_PROGRAM([@%:@include <subversion-1/svn_wc.h>])],
     166    [AC_MSG_RESULT([yes])],
     167    [AC_MSG_RESULT([no])
     168     CXXFLAGS=`AS_ECHO(["$CXXFLAGS"]) | $SED 's|-pedantic||'`
     169     AC_MSG_NOTICE([remove -pedantic from \$CXXFLAGS])
     170    ]
     171   )
     172  ])
    156173
    157174save_LIBS=$LIBS
Note: See TracChangeset for help on using the changeset viewer.