Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git] / tests / atlocal.in
1 # -*- shell-script -*-
2 HAVE_OPENSSL='@HAVE_OPENSSL@'
3 HAVE_PYTHON='@HAVE_PYTHON@'
4 EGREP='@EGREP@'
5 PERL='@PERL@'
6
7 if test x"$PYTHON" = x; then
8     PYTHON='@PYTHON@'
9 fi
10
11 PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
12 export PYTHONPATH
13
14 PYTHONIOENCODING=utf_8
15 export PYTHONIOENCODING
16
17 # PYTHONDONTWRITEBYTECODE=yes keeps Python 2.6+ from creating .pyc and .pyo
18 # files.  Creating .py[co] works OK for any given version of Open
19 # vSwitch, but it causes trouble if you switch from a version with
20 # foo/__init__.py into an (older) version with plain foo.py, since
21 # foo/__init__.pyc will cause Python to ignore foo.py.
22 #
23 # Python before version 2.6 always creates .pyc files, so if you develop
24 # with such an older version then you're out of luck.
25 PYTHONDONTWRITEBYTECODE=yes
26 export PYTHONDONTWRITEBYTECODE
27
28 # Test whether the current working directory name is all ASCII
29 # characters.  Some Python code doesn't tolerate non-ASCII characters
30 # in filenames very well, so if the current working directory is
31 # non-ASCII then we skip the tests that run those programs.
32 #
33 # This would be just papering over a real problem, except that the
34 # tests that we skip are launched from initscripts and thus normally
35 # run in system directories with ASCII names.  (This problem only came
36 # up at all because the Debian autobuilders do build in a top-level
37 # directory named /«BUILDDIR».)
38 case `pwd | tr -d ' -~'` in
39     '') non_ascii_cwd=false ;;
40     *) non_ascii_cwd=true
41 esac
42
43 if test $HAVE_PYTHON = yes; then
44     if python -m argparse 2>/dev/null; then
45         :
46     else
47         PYTHONPATH=$PYTHONPATH:$abs_top_srcdir/python/compat
48         export PYTHONPATH
49     fi
50 fi
51
52 # Enable malloc debugging features.
53 case `uname` in
54 Linux)
55     MALLOC_CHECK_=2
56     MALLOC_PERTURB_=165
57     export MALLOC_CHECK_
58     export MALLOC_PERTURB_
59     ;;
60 FreeBSD)
61     case `uname -r` in
62     [789].*)
63         MALLOC_CONF=AJ
64         ;;
65     *)
66         MALLOC_CONF=abort:true,junk:true,redzone:true
67         ;;
68     esac
69     export MALLOC_CONF
70 esac
71
72 # The name of loopback interface 
73 case `uname` in
74 Linux)
75     LOOPBACK_INTERFACE=lo
76     ;;
77 FreeBSD|NetBSD)
78     LOOPBACK_INTERFACE=lo0
79     ;;
80 esac
81
82 # Check for MINGW platform.
83 case `uname` in
84 MINGW*)
85     IS_WIN32="yes"
86     ;;
87 *)
88     IS_WIN32="no"
89     ;;
90 esac