#!/bin/sh
# $Id: gcc-normal,v 1.6 2016/01/01 12:03:09 tom Exp $
# these are my normal development-options
OPTS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion"
: ${ACTUAL_GCC:=gcc}
 
ARGS=
case x`uname -s` in
xDarwin)
        for arg in "$@"
        do
                case "x$arg" in
                x-I/usr/X11/include*)
                        ARGS="$ARGS -isystem"
                        arg=`echo ".$arg" | sed -e 's/^...//'`
                        ;;
                esac
                ARGS="$ARGS '$arg'"
        done
        ;;
xSunOS)
        for arg in "$@"
        do
                case "x$arg" in
                x-I/usr/openwin/include*)
                        ARGS="$ARGS -isystem"
                        arg=`echo ".$arg" | sed -e 's/^...//'`
                        ;;
                esac
                ARGS="$ARGS '$arg'"
        done
        ;;
*)
        for arg in "$@"
        do
                ARGS="$ARGS '$arg'"
        done
        ;;
esac
eval "$ACTUAL_GCC" $OPTS $ARGS