Changeset bdba3c for molecuilder


Ignore:
Timestamp:
May 30, 2008, 1:50:45 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
eefb8e
Parents:
ae0078
Message:

AM_CFLAGS thrown out as warnings are added to CFLAGS in configure-part. Huge changes to make mpi working with given environment variables MPICC and MPILIBS

Location:
molecuilder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/configure.ac

    rae0078 rbdba3c  
    3636# Checks for library functions.
    3737# check for GNU Scientific Library
    38 AC_CHECK_LIB(m,main)
    3938AC_CHECK_LIB(blas,main)
    4039AC_CHECK_LIB(gsl,main)
     
    4544if ! test x"$enable_debug" = xno; then
    4645        if test x"${enable_debug}" = xyes; then
    47                 CFLAGS="-g3"
    48                 CXXFLAGS="-g3"
     46                CFLAGS="$CFLAGS -g3"
     47                CXXFLAGS="$CXXFLAGS -g3"
    4948        else
    50                 CFLAGS="-g${enable_debug}"
    51                 CXXFLAGS="-g${enable_debug}"
     49                CFLAGS="$CFLAGS -g${enable_debug}"
     50                CXXFLAGS="$CXXFLAGS -g${enable_debug}"
    5251        fi
     52        dnl enable all warnings
     53        CFLAGS="$CFLAGS -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self"
     54        CXXFLAGS="$CXXFLAGS -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self"
    5355  AC_DEFINE(HAVE_DEBUG,1, ["Output debugging info"])
    5456  AC_SUBST(HAVE_DEBUG)
     57else
     58        dnl even without debugging we want some minimal info of something's utterly wrong
     59        CFLAGS="$CFLAGS -Wall"
     60        CXXFLAGS="$CXXFLAGS -Wall"
    5561fi
    5662
     
    6167        if test x"$enable_debug" = xno; then
    6268                if test x"${enable_optimization}" = xyes; then
    63                         CFLAGS="-O2"
    64                         CXXFLAGS="-O2"
     69                        CFLAGS="$CFLAGS -O2"
     70                        CXXFLAGS="$CXXFLAGS -O2"
    6571                else
    66                         CFLAGS="-O${enable_optimization}"
    67                         CXXFLAGS="-O${enable_optimization}"
     72                        CFLAGS="$CFLAGS -O${enable_optimization}"
     73                        CXXFLAGS="$CXXFLAGS -O${enable_optimization}"
    6874                fi
    6975#       else
  • molecuilder/src/Makefile.am

    rae0078 rbdba3c  
    88joiner_SOURCES = joiner.cpp parser.cpp helpers.cpp verbose.cpp helpers.hpp parser.hpp datacreator.cpp datacreator.hpp
    99analyzer_SOURCES = analyzer.cpp parser.cpp datacreator.cpp helpers.cpp verbose.cpp helpers.hpp parser.hpp datacreator.hpp
    10 molecuilder_CXXFLAGS = -march=nocona -Wall -DBIGENDIAN=0
    11 joiner_CXXFLAGS = -march=nocona -Wall -DBIGENDIAN=0
    12 analyzer_CXXFLAGS = -march=nocona -Wall -DBIGENDIAN=0
    1310
    14 AM_CFLAGS = -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self
    15 AM_CPPFLAGS = -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self
    1611
    1712#EXTRA_DIST = ${molecuilder_DATA}
Note: See TracChangeset for help on using the changeset viewer.