-# Check whether --with-optimization or --without-optimization was given.
-if test "${with_optimization+set}" = set; then
- withval="$with_optimization"
- unet_cv_optimization=$withval
-else
- unet_cv_optimization='-O3'
-fi;
-echo "$as_me:$LINENO: checking optimization level" >&5
-echo $ECHO_N "checking optimization level... $ECHO_C" >&6
-if test "${unet_cv_optimization+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- unet_cv_optimization='-O3'
-fi
-echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
-echo "${ECHO_T}$unet_cv_optimization" >&6
-if test "x$unet_cv_optimization" = "xno" ; then
- unet_cv_optimization=""
-fi
-if test x"$CFLAGS" != x; then
- CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
-fi
-if test x"$CFLAGS" != x; then
- unet_old_cflags=$CFLAGS
- CFLAGS=`echo "$CFLAGS" | sed -e 's/-g//g'`
-fi
-if test x"$CFLAGS" != x"$unet_old_cflags"; then
- # If -g was already there, force symbols to be enabled
- unet_cv_enable_symbols=yes
-fi
-if test x"$CFLAGS" != x; then
- unet_old_cflags=$CFLAGS
- CFLAGS=`echo "$CFLAGS" | sed -e 's/-pg//g'`
-fi
-if test x"$CFLAGS" != x"$unet_old_cflags"; then
- # If -pg was already there, force profiling to be enabled
- unet_cv_enable_profile=yes
-fi
-if test x"$CFLAGS" != x; then
- unet_old_cflags=$CFLAGS
- CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wall//g'`
-fi
-if test x"$CFLAGS" != x"$unet_old_cflags"; then
- # If -Wall was already there, force warnings to be enabled
- unet_cv_enable_warnings=yes
-fi
-if test x"$CFLAGS" != x; then
- unet_old_cflags=$CFLAGS
- CFLAGS=`echo "$CFLAGS" | sed -e 's/-pedantic//g'`
-fi
-if test x"$CFLAGS" != x"$unet_old_cflags"; then
- # If -pedantic was already there, force pedatic to be enabled
- unet_cv_enable_pedantic=yes
-fi
-