if test "$GCC" = yes ; then
-  CFLAGS='-O2 -pipe'
-else # not GCC
-  CFLAGS='-O2 -qmaxmem=16384 -qsrcmsg -qlonglong'
+  CFLAGS="$CFLAGS -pipe"
+else
   case $host_os in
-    aix3.2.5 | aix4.1*)
-      CFLAGS='-qmaxmem=16384 -qsrcmsg' ;;
+    aix3.2.5 | aix4.1*) ;;
+    *) CFLAGS="$CFLAGS -O2 -qlonglong";;
   esac
-fi # not GCC
+  CFLAGS="$CFLAGS -qmaxmem=16384 -qsrcmsg"
+fi
 
-SRCH_LIB='/usr/local/lib'
+SRCH_LIB="/usr/local/lib"
 
 CFLAGS="$CFLAGS -pipe"
 
 case $host_cpu in
-  alpha*)   CFLAGS="$CFLAGS -O";;
+  alpha*)   CFLAGS="$CFLAGS -O";;  # alpha has problems with -O2
 esac
 
 THREAD_SUPPORT=yes
 
 
 if test "$GCC" != yes ; then
   CC="$CC -Ae"
-  CFLAGS="+O2"
+  CFLAGS="$CFLAGS +O2"
 fi
 
 if test "$GCC" != yes ; then
   CC="$CC -std"
-  CFLAGS='-O4 -Olimit 2000'
+  CFLAGS="$CFLAGS -O4 -Olimit 2000"
 fi
 
 THREAD_SUPPORT=yes
 
 if test "$GCC" != yes ; then
   CC="$CC -Xa"         # relaxed ISO C mode
-  CFLAGS="-O -v"       # -v is like gcc -Wall
+  CFLAGS="$CFLAGS -O -v"   # -v is like gcc -Wall
 fi
 
 THREAD_SUPPORT=yes
 
-CFLAGS='-v -O -K i486,host,inline,loop_unroll -Dsvr4'
+CFLAGS="$CFLAGS -v -O -K i486,host,inline,loop_unroll -Dsvr4"
 LIBS="-lc89"
 
 # the -Kno_host is temporary for a bug in the compiler.  See -hackers
 # discussion on 7-8/Aug/2003.
 # when the 7.1.3UP3 or later compiler is out, we can do a version check.
-  CFLAGS='-O -Kinline,no_host'
+  CFLAGS="$CFLAGS -O -Kinline,no_host"
   THREAD_CPPFLAGS="-K pthread"
 fi