Tue, 12 Sep 2023 23:36:45 +0200
add debug/release options - fixes #285
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1 | #!/bin/sh |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
2 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
3 | HOST=`uname -n` |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
4 | PREFIX=`pwd`/work |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
5 | INSTALL_DIR=$PREFIX |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
6 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
7 | EPREFIX=$PREFIX |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
8 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
9 | BINDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
10 | SBINDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
11 | LIBDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
12 | LIBEXECDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
13 | DATADIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
14 | SYSCONFDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
15 | SHAREDSTATEDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
16 | LOCALSTATEDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
17 | INCLUDEDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
18 | INFODIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
19 | MANDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
20 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
21 | OS=`uname -s` |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
22 | OS_VERSION=`uname -r` |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
23 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
24 | TEMP_DIR=".tmp-`uname -n`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
25 | mkdir -p "$TEMP_DIR" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
26 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
27 | echo "Cannot create tmp dir" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
28 | echo "Abort" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
29 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
30 | touch "$TEMP_DIR/options" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
31 | touch "$TEMP_DIR/features" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
32 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
33 | # features |
47
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
34 | FEATURE_PG=auto |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
35 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
36 | # help text |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
37 | printhelp() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
38 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
39 | echo "Usage: $0 [OPTIONS]..." |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
40 | cat << __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
41 | Installation directories: |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
42 | --prefix=PREFIX path prefix for architecture-independent files |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
43 | [/usr] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
44 | --exec-prefix=EPREFIX path prefix for architecture-dependent files |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
45 | [PREFIX] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
46 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
47 | --bindir=DIR user executables [EPREFIX/bin] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
48 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
49 | --libexecdir=DIR program executables [EPREFIX/libexec] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
50 | --sysconfdir=DIR system configuration files [PREFIX/etc] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
51 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
52 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
53 | --libdir=DIR object code libraries [EPREFIX/lib] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
54 | --includedir=DIR C header files [PREFIX/include] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
55 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
56 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
57 | --infodir=DIR info documentation [DATAROOTDIR/info] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
58 | --mandir=DIR man documentation [DATAROOTDIR/man] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
59 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
60 | Optional Features: |
47
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
61 | --disable-pg |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
62 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
63 | __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
64 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
65 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
66 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
67 | # parse arguments |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
68 | # |
51
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
69 | BUILD_TYPE="default" |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
70 | for ARG in "$@" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
71 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
72 | case "$ARG" in |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
73 | "--prefix="*) PREFIX=${ARG#--prefix=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
74 | "--exec-prefix="*) EPREFIX=${ARG#--exec-prefix=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
75 | "--bindir="*) BINDIR=${ARG#----bindir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
76 | "--sbindir="*) SBINDIR=${ARG#--sbindir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
77 | "--libdir="*) LIBDIR=${ARG#--libdir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
78 | "--libexecdir="*) LIBEXECDIR=${ARG#--libexecdir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
79 | "--datadir="*) DATADIR=${ARG#--datadir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
80 | "--sysconfdir="*) SYSCONFDIR=${ARG#--sysconfdir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
81 | "--sharedstatedir="*) SHAREDSTATEDIR=${ARG#--sharedstatedir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
82 | "--localstatedir="*) LOCALSTATEDIR=${ARG#--localstatedir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
83 | "--includedir="*) INCLUDEDIR=${ARG#--includedir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
84 | "--infodir="*) INFODIR=${ARG#--infodir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
85 | "--mandir"*) MANDIR=${ARG#--mandir} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
86 | "--help"*) printhelp; rm -Rf "$TEMP_DIR"; exit 1 ;; |
51
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
87 | "--debug") BUILD_TYPE="debug" ;; |
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
88 | "--release") BUILD_TYPE="release" ;; |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
89 | "--enable-pg") FEATURE_PG=on ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
90 | "--disable-pg") unset FEATURE_PG ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
91 | "-"*) echo "unknown option: $ARG"; rm -Rf "$TEMP_DIR"; exit 1 ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
92 | esac |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
93 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
94 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
95 | # set dir variables |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
96 | if [ -z "$BINDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
97 | BINDIR=$EPREFIX/bin |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
98 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
99 | if [ -z "$SBINDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
100 | SBINDIR=$EPREFIX/sbin |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
101 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
102 | if [ -z "$LIBDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
103 | LIBDIR=$EPREFIX/lib |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
104 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
105 | if [ -z "$LIBEXEC" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
106 | LIBEXECDIR=$EPREFIX/libexec |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
107 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
108 | if [ -z "$DATADIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
109 | DATADIR=$PREFIX/share |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
110 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
111 | if [ -z "$SYSCONFDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
112 | SYSCONFDIR=$PREFIX/etc |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
113 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
114 | if [ -z "$SHAREDSTATEDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
115 | SHAREDSTATEDIR=$PREFIX/com |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
116 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
117 | if [ -z "$LOCALSTATEDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
118 | LOCALSTATEDIR=$PREFIX/var |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
119 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
120 | if [ -z "$INCLUDEDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
121 | INCLUDEDIR=$PREFIX/include |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
122 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
123 | if [ -z "$INFODIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
124 | INFODIR=$PREFIX/info |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
125 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
126 | if [ -z "$MANDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
127 | MANDIR=$PREFIX/man |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
128 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
129 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
130 | which pkg-config > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
131 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
132 | PKG_CONFIG=pkg-config |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
133 | else |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
134 | PKG_CONFIG=false |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
135 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
136 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
137 | # Simple uname based platform detection |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
138 | # $PLATFORM is used for platform dependent dependency selection |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
139 | printf "detect platform... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
140 | if [ "$OS" = "SunOS" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
141 | PLATFORM="solaris sunos unix svr4" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
142 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
143 | if [ "$OS" = "Linux" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
144 | PLATFORM="linux unix" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
145 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
146 | if [ "$OS" = "FreeBSD" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
147 | PLATFORM="freebsd bsd unix" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
148 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
149 | if [ "$OS" = "Darwin" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
150 | PLATFORM="macos osx bsd unix" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
151 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
152 | echo "$OS" | grep -i "MINGW" > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
153 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
154 | PLATFORM="windows mingw" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
155 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
156 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
157 | if [ -z "$PLATFORM" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
158 | PLATFORM="unix" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
159 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
160 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
161 | for p in $PLATFORM |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
162 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
163 | PLATFORM_NAME=$p |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
164 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
165 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
166 | echo $PLATFORM_NAME |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
167 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
168 | isplatform() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
169 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
170 | for p in $PLATFORM |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
171 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
172 | if [ "$p" = "$1" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
173 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
174 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
175 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
176 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
177 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
178 | isnotplatform() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
179 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
180 | for p in $PLATFORM |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
181 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
182 | if [ "$p" = "$1" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
183 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
184 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
185 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
186 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
187 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
188 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
189 | # generate config.mk and config.h |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
190 | cat > "$TEMP_DIR/config.mk" << __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
191 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
192 | # config.mk generated by configure |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
193 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
194 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
195 | # general vars |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
196 | HOST=$HOST |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
197 | PREFIX=$PREFIX |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
198 | INSTALL_DIR=$INSTALL_DIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
199 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
200 | EPREFIX=$EPREFIX |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
201 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
202 | BINDIR=$BINDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
203 | SBINDIR=$SBINDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
204 | LIBDIR=$LIBDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
205 | LIBEXECDIR=$LIBEXECDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
206 | DATADIR=$DATADIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
207 | SYSCONFDIR=$SYSCONFDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
208 | SHAREDSTATEDIR=$SHAREDSTATEDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
209 | LOCALSTATEDIR=$LOCALSTATEDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
210 | INCLUDEDIR=$INCLUDEDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
211 | INFODIR=$INFODIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
212 | MANDIR=$MANDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
213 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
214 | __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
215 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
216 | echo > "$TEMP_DIR/make.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
217 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
218 | ENV_CFLAGS=$CFLAGS |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
219 | ENV_LDFLAGS=$LDFLAGS |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
220 | ENV_CXXFLAGS=$CXXFLAGS |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
221 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
222 | # Toolchain detection |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
223 | # this will insert make vars to config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
224 | . make/toolchain.sh |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
225 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
226 | # add user specified flags to config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
227 | echo "# project specific flags" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
228 | if [ -n "${ENV_CFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
229 | echo "CFLAGS += $ENV_CFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
230 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
231 | if [ -n "${ENV_CXXFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
232 | echo "CXXFLAGS += $ENV_CXXFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
233 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
234 | if [ -n "${ENV_LDFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
235 | echo "LDFLAGS += $ENV_LDFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
236 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
237 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
238 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
239 | # DEPENDENCIES |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
240 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
241 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
242 | dependency_libpq() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
243 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
244 | printf "checking for libpq... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
245 | # dependency libpq |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
246 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
247 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
248 | if [ -z "$PKG_CONFIG" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
249 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
250 | fi |
49 | 251 | $PKG_CONFIG libpq |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
252 | if [ $? -ne 0 ] ; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
253 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
254 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
255 | TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags libpq`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
256 | TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs libpq`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
257 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
258 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
259 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
260 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
261 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
262 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
263 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
264 | dependency_openssl() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
265 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
266 | printf "checking for openssl... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
267 | # dependency openssl |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
268 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
269 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
270 | if [ -z "$PKG_CONFIG" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
271 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
272 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
273 | $PKG_CONFIG openssl |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
274 | if [ $? -ne 0 ] ; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
275 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
276 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
277 | TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags openssl`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
278 | TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs openssl`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
279 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
280 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
281 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
282 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
283 | # dependency openssl platform="bsd" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
284 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
285 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
286 | if isnotplatform "bsd"; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
287 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
288 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
289 | TEMP_LDFLAGS="$TEMP_LDFLAGS -lssl -lcrypto" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
290 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
291 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
292 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
293 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
294 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
295 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
296 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
297 | dependency_libxml2() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
298 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
299 | printf "checking for libxml2... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
300 | # dependency libxml2 platform="macos" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
301 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
302 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
303 | if isnotplatform "macos"; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
304 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
305 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
306 | xml2-config --cflags > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
307 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
308 | TEMP_CFLAGS="$TEMP_CFLAGS `xml2-config --cflags`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
309 | else |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
310 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
311 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
312 | xml2-config --libs > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
313 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
314 | TEMP_LDFLAGS="$TEMP_LDFLAGS `xml2-config --libs`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
315 | else |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
316 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
317 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
318 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
319 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
320 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
321 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
322 | # dependency libxml2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
323 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
324 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
325 | if [ -z "$PKG_CONFIG" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
326 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
327 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
328 | $PKG_CONFIG libxml-2.0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
329 | if [ $? -ne 0 ] ; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
330 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
331 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
332 | TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags libxml-2.0`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
333 | TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs libxml-2.0`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
334 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
335 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
336 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
337 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
338 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
339 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
340 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
341 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
342 | DEPENDENCIES_FAILED= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
343 | ERROR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
344 | # general dependencies |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
345 | TEMP_CFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
346 | TEMP_LDFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
347 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
348 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
349 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
350 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
351 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
352 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
353 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
354 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
355 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
356 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
357 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
358 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
359 | # add general dependency flags to config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
360 | echo >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
361 | if [ -n "${TEMP_CFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
362 | echo "CFLAGS += $TEMP_CFLAGS" >> $TEMP_DIR/config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
363 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
364 | if [ -n "${TEMP_CXXFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
365 | echo "CXXFLAGS += $TEMP_CXXFLAGS" >> $TEMP_DIR/config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
366 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
367 | if [ -n "${TEMP_LDFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
368 | echo "LDFLAGS += $TEMP_LDFLAGS" >> $TEMP_DIR/config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
369 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
370 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
371 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
372 | # OPTION VALUES |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
373 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
374 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
375 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
376 | # TARGETS |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
377 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
378 | TEMP_CFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
379 | TEMP_CXXFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
380 | TEMP_LDFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
381 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
382 | # Target |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
383 | TEMP_CFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
384 | TEMP_LDFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
385 | TEMP_CXXFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
386 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
387 | dependency_libxml2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
388 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
389 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED libxml2 " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
390 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
391 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
392 | dependency_openssl |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
393 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
394 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED openssl " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
395 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
396 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
397 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
398 | # Features |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
399 | if [ -n "$FEATURE_PG" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
400 | # check dependency |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
401 | dependency_libpq |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
402 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
403 | # "auto" features can fail and are just disabled in this case |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
404 | if [ "$FEATURE_PG" != "auto" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
405 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED libpq " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
406 | ERROR=1 |
47
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
407 | else |
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
408 | unset FEATURE_PG |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
409 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
410 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
411 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
412 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
413 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
414 | echo >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
415 | if [ -n "${TEMP_CFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
416 | echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
417 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
418 | if [ -n "${TEMP_CXXFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
419 | echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
420 | fi |
51
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
421 | if [ "$BUILD_TYPE" = "debug" ]; then |
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
422 | echo 'CFLAGS += ${DEBUG_FLAGS}' >> "$TEMP_DIR/config.mk" |
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
423 | echo 'CXXFLAGS += ${DEBUG_FLAGS}' >> "$TEMP_DIR/config.mk" |
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
424 | fi |
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
425 | if [ "$BUILD_TYPE" = "release" ]; then |
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
426 | echo 'CFLAGS += ${RELEASE_FLAGS}' >> "$TEMP_DIR/config.mk" |
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
427 | echo 'CXXFLAGS += ${RELEASE_FLAGS}' >> "$TEMP_DIR/config.mk" |
5c12e9e29733
add debug/release options - fixes #285
Mike Becker <universe@uap-core.de>
parents:
49
diff
changeset
|
428 | fi |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
429 | if [ -n "${TEMP_LDFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
430 | echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
431 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
432 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
433 | if [ $ERROR -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
434 | echo |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
435 | echo "Error: Unresolved dependencies" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
436 | echo "$DEPENDENCIES_FAILED" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
437 | rm -Rf "$TEMP_DIR" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
438 | exit 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
439 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
440 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
441 | echo "configure finished" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
442 | echo |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
443 | echo "Build Config:" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
444 | echo " PREFIX: $PREFIX" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
445 | echo " TOOLCHAIN: $TOOLCHAIN_NAME" |
47
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
446 | echo "Features:" |
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
447 | if [ -n "$FEATURE_PG" ]; then |
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
448 | echo " pg: on" |
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
449 | else |
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
450 | echo " pg: off" |
78ee95836412
automatically disable default-features if dependencies fail
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
39
diff
changeset
|
451 | fi |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
452 | echo |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
453 | cat "$TEMP_DIR/config.mk" "$TEMP_DIR/make.mk" > config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
454 | rm -Rf "$TEMP_DIR" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
455 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
456 |