Diff of /acinclude.m4 [958b69] .. [5a3f4f]  Maximize  Restore

  Switch to unified view

a/acinclude.m4 b/acinclude.m4
1
## $Id: acinclude.m4,v 1.11 2008/05/04 17:40:30 lirc Exp $
1
## $Id: acinclude.m4,v 1.12 2008/09/25 17:36:08 lirc Exp $
2
##
2
##
3
## additional m4 macros
3
## additional m4 macros
4
##
4
##
5
## (C) 1999 Christoph Bartelmus (lirc@bartelmus.de)
5
## (C) 1999 Christoph Bartelmus (lirc@bartelmus.de)
6
##
6
##
...
...
15
  no_kernel=yes
15
  no_kernel=yes
16
16
17
  if test `uname` != "Linux"; then
17
  if test `uname` != "Linux"; then
18
    kerneldir="not running Linux"
18
    kerneldir="not running Linux"
19
  else
19
  else
20
    for dir in /usr/src/kernel-source-`uname -r` /usr/src/linux-`uname -r` /usr/src/linux /lib/modules/`uname -r`/build /lib/modules/`uname -r`/source ${ac_kerneldir}; do
20
    for dir in /usr/src/kernel-source-`uname -r` /usr/src/linux-`uname -r` /usr/src/linux /lib/modules/`uname -r`/source /lib/modules/`uname -r`/build ${ac_kerneldir}; do
21
      if test -d $dir; then
21
      if test -d $dir; then
22
        kerneldir=`dirname $dir/Makefile`/
22
        kerneldir=`dirname $dir/Makefile`/
23
        no_kernel=no
23
        no_kernel=no
24
      fi;
24
      fi;
25
    done
25
    done
...
...
31
        ac_pkss_makefile=`mktemp /tmp/LIRCMF.XXXXXX`
31
        ac_pkss_makefile=`mktemp /tmp/LIRCMF.XXXXXX`
32
      else
32
      else
33
        ac_pkss_makefile=/tmp/LIRCMF.XXXXXX
33
        ac_pkss_makefile=/tmp/LIRCMF.XXXXXX
34
      fi
34
      fi
35
      cat ${kerneldir}/Makefile >${ac_pkss_makefile}
35
      cat ${kerneldir}/Makefile >${ac_pkss_makefile}
36
      echo "lirc_tell_me_what_cc_is:" >>${ac_pkss_makefile}
37
      echo "  echo \$(CC)" >>${ac_pkss_makefile}
38
39
      kernelcc=$(make -s -C ${kerneldir} -f ${ac_pkss_makefile} lirc_tell_me_what_cc_is M=$(pwd))
40
36
41
      echo "lirc_tell_me_what_version_is:" >>${ac_pkss_makefile}
37
      echo "lirc_tell_me_what_version_is:" >>${ac_pkss_makefile}
42
      echo "    echo \$(VERSION)" >>${ac_pkss_makefile}
38
      echo "    echo \$(VERSION)" >>${ac_pkss_makefile}
43
      echo "lirc_tell_me_what_patchlevel_is:" >>${ac_pkss_makefile}
39
      echo "lirc_tell_me_what_patchlevel_is:" >>${ac_pkss_makefile}
44
      echo "    echo \$(PATCHLEVEL)" >>${ac_pkss_makefile}
40
      echo "    echo \$(PATCHLEVEL)" >>${ac_pkss_makefile}
...
...
55
      no_kernel=yes
51
      no_kernel=yes
56
    fi
52
    fi
57
  fi
53
  fi
58
  ac_cv_have_kernel="no_kernel=${no_kernel} \
54
  ac_cv_have_kernel="no_kernel=${no_kernel} \
59
        kerneldir=\"${kerneldir}\" \
55
        kerneldir=\"${kerneldir}\" \
60
        kernelext=\"${kernelext}\" \
56
        kernelext=\"${kernelext}\""
61
      kernelcc=\"${kernelcc}\""
62
]
57
]
63
)
58
)
64
59
65
AC_DEFUN([AC_PATH_KERNEL_SOURCE],
60
AC_DEFUN([AC_PATH_KERNEL_SOURCE],
66
[
61
[
...
...
79
  )
74
  )
80
  
75
  
81
  eval "$ac_cv_have_kernel"
76
  eval "$ac_cv_have_kernel"
82
77
83
  AC_SUBST(kerneldir)
78
  AC_SUBST(kerneldir)
84
  AC_SUBST(kernelcc)
85
  AC_SUBST(kernelext)
79
  AC_SUBST(kernelext)
86
  AC_MSG_RESULT(${kerneldir})
80
  AC_MSG_RESULT(${kerneldir})
87
]
81
]
88
)
82
)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks