Address bug #10839.
This commit is contained in:
parent
8e1f96522a
commit
c5d91aff48
1 changed files with 15 additions and 1 deletions
16
configure.ac
16
configure.ac
|
@ -60,6 +60,20 @@ AM_INIT_AUTOMAKE([1.9 tar-ustar foreign])
|
|||
AM_GNU_GETTEXT([external])
|
||||
AC_PROG_RANLIB
|
||||
|
||||
#######################################################################
|
||||
# Require GCC 4.x
|
||||
#######################################################################
|
||||
|
||||
set -- `g++ --version`
|
||||
GCC_VERSION=$3
|
||||
parts=`echo $GCC_VERSION | tr '.' ' '`
|
||||
set $parts
|
||||
GCC_MAJOR_VERSION=$1
|
||||
if test $GCC_MAJOR_VERSION -lt 4
|
||||
then
|
||||
AC_MSG_ERROR([*** G++ major version $GCC_MAJOR_VERSION is too old.])
|
||||
fi
|
||||
|
||||
#######################################################################
|
||||
# Configuration options #
|
||||
#######################################################################
|
||||
|
@ -135,7 +149,7 @@ if test "x$optipng" = "xyes"
|
|||
then
|
||||
AC_PATH_PROGS([OPTIPNG_BIN], [optipng], [none])
|
||||
if test \( "x$OPTIPNG_BIN" = "xnone" \) -a \( "x$optipng" = xyes \); then
|
||||
AC_MSG_ERROR([*** You must instsll the optipng utility before building with --optipng.])
|
||||
AC_MSG_ERROR([*** You must install the optipng utility before building with --optipng.])
|
||||
else
|
||||
echo "****************************************"
|
||||
echo "*** optipng support enabled ***"
|
||||
|
|
Loading…
Add table
Reference in a new issue