3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 --- linux-wlan-ng-0.2.2/Configure~pcmciasrc
7 +++ linux-wlan-ng-0.2.2/Configure
11 if [ $WLAN_KERN_PCMCIA != "y" ] ; then
12 - if [ ! "$PCMCIA_SRC" ] ; then
13 - if [ -f /sbin/cardctl ] ; then
14 - PCMCIA_SRC=`/sbin/cardctl -V 2>&1 | sed -e 's/cardctl version //'`
15 - PCMCIA_SRC=/usr/src/pcmcia-cs-$PCMCIA_SRC
18 - ask_str "pcmcia-cs source dir" PCMCIA_SRC
20 - if [ ! -f $PCMCIA_SRC/Makefile ] ; then
21 - $ECHO "pcmcia-cs source tree $PCMCIA_SRC is incomplete or missing!"
22 - $ECHO "The wlan driver for pcmcia cannot be built without "
23 - $ECHO "the pcmcia-cs source tree present and configured."
26 - if [ ! -f $PCMCIA_SRC/include/pcmcia/config.h ] ; then
27 - $ECHO "The pcmcia-cs source tree does not appear to be configured."
28 - $ECHO "The wlan driver for pcmcia cannot be built without "\
29 - $ECHO "the pcmcia-cs source tree present and configured."
34 - # Now we need to generate the module options flags.
35 - # It's only relevant if modversions is turned on.
36 - grep CONFIG_MODVERSIONS=y < $PCMCIA_SRC/config.mk > /dev/null
37 - if [ $? = 0 ] ; then
38 - PCMCIA_MODFLAGS="-DMODULE -DMODVERSIONS -include $PCMCIA_SRC/include/linux/modversions.h"
40 - PCMCIA_MODFLAGS="-DMODULE"
43 # new versions of pcmcia-cs don't generate their own modversion.h
44 # if they don't have it, use the kernel module flags instead.
45 if [ ! -f $PCMCIA_SRC/include/linux/modversions.h ] ; then