Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
Remove -Optimisation level check
Browse files Browse the repository at this point in the history
Check for C99 support in compiler instead.
It should give us recent enough compiler version
with Optimisations bugs covered.
Fixes #34
  • Loading branch information
smokku committed Feb 29, 2016
1 parent 93dbd1a commit 7746da1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions configure.ac
Expand Up @@ -10,6 +10,7 @@ AM_SILENT_RULES([yes])

# Checks for programs.
AC_PROG_CC
AC_PROG_CC_STDC
AM_PROG_CC_C_O
AC_PROG_CPP
AC_PROG_INSTALL
Expand All @@ -24,13 +25,6 @@ if test "x-$lt_cv_dlopen_libs" != "x-" ; then
LIBS="$LIBS $lt_cv_dlopen_libs"
fi

# check for optimisation level
AC_MSG_CHECKING([CFLAGS optimization level])
[if echo $CFLAGS | grep '.*-O[3s].*' >/dev/null 2>&1; then]
AC_MSG_ERROR([maximum allowed optimization level is -O2])
fi
AC_MSG_RESULT([fine])

# extra paths
AC_ARG_WITH([extra_include_path], AC_HELP_STRING([--with-extra-include-path],
[use additional include paths]),
Expand Down

0 comments on commit 7746da1

Please sign in to comment.