From b5875b642e13a9d5b1bed4141ace45f0ad9e4dde Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 18 Jul 1997 23:29:09 +0000 Subject: [PATCH] Set OPT to -g -O2 (or -O2 when -g not supported) when using gcc. --- configure.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index f2510ceda78..e91199b3d9b 100644 --- a/configure.in +++ b/configure.in @@ -98,7 +98,13 @@ fi AC_SUBST(OPT) if test -z "$OPT" then - case $ac_sys_system in + case $GCC in + yes) + case $ac_cv_prog_cc_g in + yes) OPT="-g -O2";; + *) OPT="-O2";; + esac + ;; *) OPT="-O";; esac fi