Accept optional `configure' pathname as the first argument.
authorlace <>
Sat, 23 Dec 2006 10:45:19 +0000 (10:45 +0000)
committerlace <>
Sat, 23 Dec 2006 10:45:19 +0000 (10:45 +0000)
Decrease the debugging level as it has the same usefulness: -ggdb3 -> -ggdb2
Provide default debugging flags also for gcj(1).

bin/errs1

index f533fd1..7012bf8 100755 (executable)
--- a/bin/errs1
+++ b/bin/errs1
@@ -1,10 +1,17 @@
 #! /bin/sh
 # $Id$
 
+configure="./configure"
+if [ "${1#*/configure}" != "$1" ];then
+       configure="$1"
+       shift
+fi
 (
        set -ex
        rm -f config.cache
-       export CFLAGS="-ggdb3"
-       export CXXFLAGS="-ggdb3"
-       ./configure --enable-static --disable-shared --enable-debug "$@"
+       flags="-ggdb2"
+       export CFLAGS="$flags"
+       export CXXFLAGS="$flags"
+       export GCJFLAGS="$flags"
+       "$configure" --enable-static --disable-shared --enable-debug "$@"
        ) 2>&1|tee errs1