4 customss="--enable-static --disable-shared"
5 if [ "$1" = "--origss" ];then
11 if [ "$1" = "--origm" ];then
16 configure="./configure"
17 if [ "${1#*/configure}" != "$1" ];then
25 test -z "$CC" && CC=gcc
28 "-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4" \
29 "-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions" \
32 if [ -z "$flags" ];then
34 echo >&2 "flags error"
37 "$CC" $flags -c errs1.c -o /dev/null && break
39 if test -n "$customm" && "$CC" $customm -c errs1.c -o /dev/null;then
40 flags="$customm $flags"
43 export CFLAGS="$flags"
44 export CXXFLAGS="$flags"
45 export GCJFLAGS="$flags"
47 if grep -iw '\(sources.redhat.com\|sourceware.org\):/cvs/src' CVS/Root &>/dev/null;then
50 maintainer="--enable-maintainer-mode"
53 time nice "$configure" $customss --enable-debug $maintainer "$@"