Skip to content

Commit

Permalink
Moved compiler options to the end of the configure script, so that th…
Browse files Browse the repository at this point in the history
…ey don't interfere with autoconf tests.
  • Loading branch information
njh committed Jan 13, 2011
1 parent ed02fcb commit 84fa912
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions configure.ac
Expand Up @@ -49,18 +49,6 @@ AC_ARG_ENABLE(debug,
)


dnl ############## Compiler and Linker Flags

# If debugging is enabled then make warnings errors
if test "$Debugging" = "Enabled"; then
CFLAGS="$CFLAGS -g -O0 -Wall -Werror -pedantic"
CFLAGS="$CFLAGS -Wunused -Wmissing-prototypes -Wmissing-declarations"
else
# Optimize flag. 3 is about as high as you can sanely go with GCC3.2.
CFLAGS="$CFLAGS -O3"
fi


dnl ############# Compiler and tools Checks

AC_PROG_CC
Expand Down Expand Up @@ -140,6 +128,20 @@ fi
AC_SUBST(TWOLAME_BIN)



dnl ############## Compiler and Linker Flags

# If debugging is enabled then make warnings errors
if test "$Debugging" = "Enabled"; then
CFLAGS="$CFLAGS -g -O0 -Wall -Werror -pedantic"
CFLAGS="$CFLAGS -Wunused -Wmissing-prototypes -Wmissing-declarations"
else
# Optimize flag. 3 is about as high as you can sanely go with GCC3.2.
CFLAGS="$CFLAGS -O3"
fi



dnl ############## Output files

AC_CONFIG_HEADERS([libtwolame/config.h])
Expand Down

0 comments on commit 84fa912

Please sign in to comment.