docs
[pspp] / tests / atlocal.in
1 # -*- shell-script -*-
2
3 # PSPP - a program for statistical analysis.
4 # Copyright (C) 2017 Free Software Foundation, Inc.
5 #
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 #
19
20
21 # Variables used internally by the testsuite.
22 EXEEXT='@EXEEXT@'
23 PERL='@PERL@'
24 PYTHON3='@PYTHON3@'
25 TEX='@TEX@'
26 GWC='@GWC@'
27 WITH_PERL_MODULE='@WITH_PERL_MODULE@'
28 host='@host@'
29 PACKAGE_STRING='@PACKAGE_STRING@'
30 PACKAGE_BUGREPORT='@PACKAGE_BUGREPORT@'
31
32 XMLLINT='@XMLLINT@'
33 if echo | $XMLLINT - >/dev/null 2>&1; then
34     HAVE_XMLLINT=no
35 else
36     HAVE_XMLLINT=yes
37 fi
38
39 PSQL_SUPPORT='@PSQL_SUPPORT@'
40 if test "$PSQL_SUPPORT" = yes; then
41     : ${PG_CONFIG:='@PG_CONFIG@'}
42     : ${PG_DBASE:=pspptest}
43     : ${PG_PORT:=6543}
44     : ${PG_PATH:=`$PG_CONFIG --bindir`}
45
46     # PSQL_SUPPORT indicates that PSPP was built against the PostgreSQL client
47     # library, but it does not mean that the PostgreSQL utilities are
48     # installed.  So check for them and turn off PSQL_SUPPORT if they are not
49     # available.
50     if (PATH=$PG_PATH:$PATH; export PATH; initdb --version) >/dev/null 2>&1
51     then
52         :
53     else
54         PSQL_SUPPORT=no
55     fi
56 fi
57
58 # Variables used by programs invoked by the testsuite.
59 CHARSETALIASDIR="$abs_top_builddir/gl"
60 export CHARSETALIASDIR
61
62 GZIP=
63 export GZIP
64
65 WINEPREFIX=$HOME/.wine    # Work around the following kludge to keep wine happy
66 export WINEPREFIX
67
68 # Make PSPP ignore $HOME/.pspprc.
69 alias pspp='pspp --no-statrc'
70
71 # Avoids error messages during tests if $TERM is set to an unknown terminal.
72 TERM=; unset TERM
73
74 pspp_diff=`which diff`
75 if test X"$RUNNER" = Xwine; then
76     diff () {
77         $pspp_diff -w  "$@"
78     }
79 fi
80
81 case $host in
82     *-*-mingw*) MINGW=: ;;
83     *) MINGW=false ;;
84 esac
85
86 # Enable leak suppressions for Address Sanitizer/Leak Sanitizer.
87 LSAN_OPTIONS="suppressions=$abs_top_srcdir/tests/lsan.supp print_suppressions=0"
88 export LSAN_OPTIONS
89
90 # Avoid complaints if the system doesn't have a configured paper size.
91 export PAPERSIZE=a4