projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
abuild: Refactor parallelization support
[coreboot.git]
/
util
/
msrtool
/
configure
diff --git
a/util/msrtool/configure
b/util/msrtool/configure
index 61ef143d9ea59f1403acaaa73ec34bd9591779f8..35d17183a20d616062c4cb12659b0b141a4e1556 100755
(executable)
--- a/
util/msrtool/configure
+++ b/
util/msrtool/configure
@@
-1,4
+1,4
@@
-#!/bin/
ba
sh
+#!/bin/sh
#
# This file is part of msrtool.
#
#
# This file is part of msrtool.
#
@@
-25,7
+25,7
@@
VERSION=""
REV="`svnversion -c . 2>/dev/null | sed 's,.*:,,' 2>/dev/null`"
VERSION="${VERSION:-$REV}"
REV="`svnversion -c . 2>/dev/null | sed 's,.*:,,' 2>/dev/null`"
VERSION="${VERSION:-$REV}"
-f
unction findprog
{
+f
indprog()
{
NPARMS=$#
WHAT="${1}"
shift
NPARMS=$#
WHAT="${1}"
shift
@@
-41,7
+41,7
@@
function findprog {
while test $i -lt $NPARMS; do
test -z "${1}" && {
shift
while test $i -lt $NPARMS; do
test -z "${1}" && {
shift
- i=$
[$i+1]
+ i=$
(($i+1))
continue
}
FILE="`which "${1}" 2>/dev/null`"
continue
}
FILE="`which "${1}" 2>/dev/null`"
@@
-50,7
+50,7
@@
function findprog {
break
}
shift
break
}
shift
- i=$
[$i+1]
+ i=$
(($i+1))
done
test -z "${1}" && {
echo " not found!" 1>&2
done
test -z "${1}" && {
echo " not found!" 1>&2
@@
-62,7
+62,7
@@
function findprog {
exit 0
}
exit 0
}
-
function trycompile
{
+
trycompile()
{
NPARMS=$#
WHAT="${1}"
shift
NPARMS=$#
WHAT="${1}"
shift
@@
-82,9
+82,9
@@
function trycompile {
echo " using: ${CFLAGS} ${1}" 1>&2
echo "${CFLAGS} ${1}"
exit 0
echo " using: ${CFLAGS} ${1}" 1>&2
echo "${CFLAGS} ${1}"
exit 0
- }
+ }
shift
shift
- i=$
[$i+1]
+ i=$
(($i+1))
done
echo "failed!" 1>&2
echo 1>&2
done
echo "failed!" 1>&2
echo 1>&2
@@
-99,7
+99,7
@@
function trycompile {
exit 1
}
exit 1
}
-
function trylink
{
+
trylink()
{
NPARMS=$#
WHAT="${1}"
shift
NPARMS=$#
WHAT="${1}"
shift
@@
-121,7
+121,7
@@
function trylink {
exit 0
}
shift
exit 0
}
shift
- i=$
[$i+1]
+ i=$
(($i+1))
done
echo "failed!" 1>&2
echo 1>&2
done
echo "failed!" 1>&2
echo 1>&2
@@
-155,7
+155,7
@@
CFLAGS=`trycompile "libpci (from pciutils)" "${pc_CFLAGS}" "-I/usr/local/include
rm -f .config.c
exit 1
}
rm -f .config.c
exit 1
}
-LDFLAGS=`trylink "libpci (from pciutils)" "${pc_LDFLAGS}" "-lpci -lz" "-L/usr/local/lib -lpci -lz" "-framework Direct
IO
-lpci -lz"` || {
+LDFLAGS=`trylink "libpci (from pciutils)" "${pc_LDFLAGS}" "-lpci -lz" "-L/usr/local/lib -lpci -lz" "-framework Direct
HW
-lpci -lz"` || {
rm -f .config.c .config.o
exit 1
}
rm -f .config.c .config.o
exit 1
}