summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-07-02 10:47:28 -0700
committerBrian Behlendorf <[email protected]>2009-07-02 10:47:28 -0700
commitbb339d067054174f218ead91105472558f278fc2 (patch)
treef9016b5d1b0b45a22256e15f96af9afb51733918 /configure
parent86933a6e510bb00edb097095ffe3deb7a4fbe533 (diff)
Cleanly handle --with-linux=NONE option when used to generate source
rpms. These should not be fatal because we actually don't need them until we build the source rpm. When doing mock builds this is important because these dependent rpms will only be installed if they are specificed in the source rpms spec file.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 16 insertions, 6 deletions
diff --git a/configure b/configure
index 3c75a96ad..93713e5a4 100755
--- a/configure
+++ b/configure
@@ -19051,12 +19051,17 @@ echo "${ECHO_T}$kernsrcver" >&6
+ modpost=$LINUX/scripts/Makefile.modpost
echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
- if grep -q Modules.symvers $LINUX/scripts/Makefile.modpost; then
- LINUX_SYMBOLS=Modules.symvers
+ if test -f "$modpost"; then
+ if grep -q Modules.symvers $modpost; then
+ LINUX_SYMBOLS=Modules.symvers
+ else
+ LINUX_SYMBOLS=Module.symvers
+ fi
else
- LINUX_SYMBOLS=Module.symvers
+ LINUX_SYMBOLS=NONE
fi
echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
echo "${ECHO_T}$LINUX_SYMBOLS" >&6
@@ -21437,12 +21442,17 @@ echo "${ECHO_T}$kernsrcver" >&6
+ modpost=$LINUX/scripts/Makefile.modpost
echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
echo $ECHO_N "checking kernel file name for module symbols... $ECHO_C" >&6
- if grep -q Modules.symvers $LINUX/scripts/Makefile.modpost; then
- LINUX_SYMBOLS=Modules.symvers
+ if test -f "$modpost"; then
+ if grep -q Modules.symvers $modpost; then
+ LINUX_SYMBOLS=Modules.symvers
+ else
+ LINUX_SYMBOLS=Module.symvers
+ fi
else
- LINUX_SYMBOLS=Module.symvers
+ LINUX_SYMBOLS=NONE
fi
echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
echo "${ECHO_T}$LINUX_SYMBOLS" >&6