File: ac_py_lib_path.m4

package info (click to toggle)
discover 2.1.2-10.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,756 kB
  • sloc: sh: 7,862; ansic: 7,280; xml: 1,809; makefile: 679
file content (19 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dnl $Progeny$
dnl
dnl
AC_DEFUN([AC_PY_LIB_PATH],
[
  if test "x$PYTHON_LIB" = "x" ; then
    if test "$prefix" = "NONE" ; then
      python_prefix=$ac_default_prefix
    else
      python_prefix=$prefix
    fi

    PYTHON_LIB=`$PYTHON -c "import distutils.sysconfig; distutils.sysconfig.PREFIX=\"${python_prefix}\"; print distutils.sysconfig.get_python_lib()"`

    if test "x$PYTHON_LIB" = x; then
      AC_MSG_ERROR([Cannot find valid python libarary path]);
    fi
  fi
])