--- configure.old	2004-09-03 06:49:36.454205056 +0900
+++ configure	2004-09-03 09:24:10.924271296 +0900
@@ -19247,6 +19247,7 @@
 done
 
 
+CFLAGS="${CFLAGS}"
 
 # Check whether --enable-doc-compilation or --disable-doc-compilation was given.
 if test "${enable_doc_compilation+set}" = set; then
@@ -19844,16 +19845,16 @@
   enableval="$enable_debug"
   echo FEATURE enable-debug... $enableval;
 if test "$enableval" = "yes"; then
-	SELLIB=libsdif-debug.la; CFLAGS="-g2";
+	SELLIB=libsdif-debug.la; CFLAGS="${CFLAGS} -g2";
 	PROGLIST="querysdif-debug\$(EXEEXT) sdifextract-debug\$(EXEEXT) sdiftotext-debug\$(EXEEXT) tosdif-debug\$(EXEEXT)";
 
 else
-	SELLIB=libsdif.la;  CFLAGS="-O3";
+	SELLIB=libsdif.la;
 	PROGLIST="querysdif\$(EXEEXT) sdifextract\$(EXEEXT) sdiftotext\$(EXEEXT) tosdif\$(EXEEXT)";
 fi
 else
 
-SELLIB=libsdif.la; CFLAGS="-O3";
+SELLIB=libsdif.la;
 PROGLIST="querysdif\$(EXEXT) sdifextract\$(EXEEXT) sdiftotext\$(EXEEXT) tosdif\$(EXEEXT)";
 
 fi;
@@ -19865,7 +19866,7 @@
   enableval="$enable_profile"
   echo FEATURE enable-profile... $enableval;
 if test "$enableval" = "yes"; then
-	SELLIB=libsdif-profile.la; CFLAGS="-g -pg -fprofile-arcs";
+	SELLIB=libsdif-profile.la; CFLAGS="${CFLAGS} -g -pg -fprofile-arcs";
 	PROGLIST="querysdif-profile\$(EXEEXT) sdifextract-profile\$(EXEEXT) sdiftotext-profile\$(EXEEXT) tosdif-profile\$(EXEEXT)";
 fi
 else
