X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=blobdiff_plain;f=util%2Fabuild%2Fabuild;fp=util%2Fabuild%2Fabuild;h=5b8d73d2a63be57977a5cde1a50395fcddf81cb9;hp=74d2908e69f23870101a72b4cd88bae0bf91e4ea;hb=92cfe183a75c530331c8dd371cc9719f4ba31992;hpb=fb89dd0a9357f6c633772ac5d0a4b6b1c2d563c0 diff --git a/util/abuild/abuild b/util/abuild/abuild index 74d2908e6..5b8d73d2a 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -563,6 +563,10 @@ test -f util/sconfig/sconfig.l && ROOT=$( pwd ) test -f ../util/sconfig/sconfig.l && ROOT=$( cd ..; pwd ) test "$ROOT" = "" && ROOT=$( cd ../..; pwd ) +# Look if we have getopt. If not, build it. +export PATH=$PATH:util/abuild +getopt - > /dev/null 2>/dev/null || gcc -o util/abuild/getopt util/abuild/getopt.c + # parse parameters.. try to find out whether we're running GNU getopt getoptbrand="`getopt -V`" if [ "${getoptbrand:0:6}" == "getopt" ]; then