Wed, 21 Jan 2026 22:03:49 +0100
add extra test for compiling with a C++ compiler
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1 | #!/bin/sh |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
2 | |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
3 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
4 | # some utility functions |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
5 | isplatform() |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
6 | { |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
7 | for p in $PLATFORM |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
8 | do |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
9 | if [ "$p" = "$1" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
10 | return 0 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
11 | fi |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
12 | done |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
13 | return 1 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
14 | } |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
15 | notisplatform() |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
16 | { |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
17 | for p in $PLATFORM |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
18 | do |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
19 | if [ "$p" = "$1" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
20 | return 1 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
21 | fi |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
22 | done |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
23 | return 0 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
24 | } |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
25 | istoolchain() |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
26 | { |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
27 | for t in $TOOLCHAIN |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
28 | do |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
29 | if [ "$t" = "$1" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
30 | return 0 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
31 | fi |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
32 | done |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
33 | return 1 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
34 | } |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
35 | notistoolchain() |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
36 | { |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
37 | for t in $TOOLCHAIN |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
38 | do |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
39 | if [ "$t" = "$1" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
40 | return 1 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
41 | fi |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
42 | done |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
43 | return 0 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
44 | } |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
45 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
46 | # clean abort |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
47 | abort_configure() |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
48 | { |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
49 | rm -Rf "$TEMP_DIR" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
50 | exit 1 |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
51 | } |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
52 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
53 | # Test for availability of pkg-config |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
54 | PKG_CONFIG=`command -v pkg-config` |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
55 | : ${PKG_CONFIG:="false"} |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
56 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
57 | # Simple uname based platform detection |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
58 | # $PLATFORM is used for platform dependent dependency selection |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
59 | OS=`uname -s` |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
60 | OS_VERSION=`uname -r` |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
61 | ARCH=`uname -m` |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
62 | printf "detect platform... " |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
63 | if [ "$OS" = "SunOS" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
64 | PLATFORM="solaris sunos unix svr4" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
65 | elif [ "$OS" = "Linux" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
66 | PLATFORM="linux unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
67 | elif [ "$OS" = "FreeBSD" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
68 | PLATFORM="freebsd bsd unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
69 | elif [ "$OS" = "OpenBSD" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
70 | PLATFORM="openbsd bsd unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
71 | elif [ "$OS" = "NetBSD" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
72 | PLATFORM="netbsd bsd unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
73 | elif [ "$OS" = "Darwin" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
74 | PLATFORM="macos osx bsd unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
75 | elif echo "$OS" | grep -i "MINGW" > /dev/null; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
76 | PLATFORM="windows mingw" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
77 | fi |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
78 | : ${PLATFORM:="unix"} |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
79 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
80 | PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -` |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
81 | echo "$PLATFORM_NAME" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
82 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
83 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
84 | # help text |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
85 | printhelp() |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
86 | { |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
87 | echo "Usage: $0 [OPTIONS]..." |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
88 | if [ $has_overridable_config_vars__ -eq 1 ] ; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
89 | echo |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
90 | echo "Configuration:" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
91 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
92 | if true \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
93 | ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
94 | : |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
95 | if [ -z "$prefix__described__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
96 | prefix__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
97 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
98 | --prefix path prefix for architecture-independent files [/usr] |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
99 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
100 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
101 | if [ -z "$exec_prefix__described__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
102 | exec_prefix__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
103 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
104 | --exec-prefix path prefix for architecture-dependent files [PREFIX] |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
105 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
106 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
107 | if [ -z "$libdir__described__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
108 | libdir__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
109 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
110 | --libdir object code libraries [EPREFIX/lib] |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
111 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
112 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
113 | if [ -z "$includedir__described__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
114 | includedir__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
115 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
116 | --includedir C header files [PREFIX/include] |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
117 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
118 | fi |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
119 | fi |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
120 | if true \ |
|
1528
6a687a7caed8
fix that pkgconfdir is only different on FreeBSD
Mike Becker <universe@uap-core.de>
parents:
1526
diff
changeset
|
121 | && isplatform "freebsd" \ |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
122 | ; then |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
123 | : |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
124 | if [ -z "$pkgconfigdir__described__" ] ; then |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
125 | pkgconfigdir__described__=1 |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
126 | cat << '__EOF__' |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
127 | --pkgconfigdir location of the *.pc files |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
128 | __EOF__ |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
129 | fi |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
130 | fi |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
131 | if true \ |
|
1528
6a687a7caed8
fix that pkgconfdir is only different on FreeBSD
Mike Becker <universe@uap-core.de>
parents:
1526
diff
changeset
|
132 | && notisplatform "freebsd" \ |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
133 | ; then |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
134 | : |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
135 | if [ -z "$pkgconfigdir__described__" ] ; then |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
136 | pkgconfigdir__described__=1 |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
137 | cat << '__EOF__' |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
138 | --pkgconfigdir location of the *.pc files |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
139 | __EOF__ |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
140 | fi |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
141 | fi |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
142 | if true \ |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
143 | ; then |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
144 | : |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
145 | if [ -z "$DOXYGEN__described__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
146 | DOXYGEN__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
147 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
148 | --doxygen path of the Doxygen executable |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
149 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
150 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
151 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
152 | cat << '__EOF__' |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
153 | |
|
1017
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
154 | Build Types: |
| 1310 | 155 | --debug add extra compile flags for debug builds |
| 156 | --release add extra compile flags for release builds | |
|
1017
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
157 | |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
158 | Optional Features: |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
159 | --enable-api-docs run Doxygen during build |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
160 | --enable-coverage test coverage with gcov |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
161 | --enable-asan address sanitizer |
|
1660
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
162 | --enable-ubsan undefined behavior sanitizer |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
163 | --disable-cxx-tests the check-cxx makefile target |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
164 | --disable-szmul-builtin use custom implementation, instead |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
165 | --disable-memrchr |
|
1661
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
166 | --disable-mkstemp |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
167 | --disable-qsort_r |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
168 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
169 | __EOF__ |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
170 | abort_configure |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
171 | } |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
172 | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
173 | # create temporary directory |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
174 | TEMP_DIR=".tmp-`uname -n`" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
175 | rm -Rf "$TEMP_DIR" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
176 | if mkdir -p "$TEMP_DIR"; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
177 | : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
178 | else |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
179 | echo "Cannot create tmp dir $TEMP_DIR" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
180 | echo "Abort" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
181 | exit 1 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
182 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
183 | touch "$TEMP_DIR/options" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
184 | touch "$TEMP_DIR/features" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
185 | |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
186 | # config variables |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
187 | has_overridable_config_vars__=0 |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
188 | if true \ |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
189 | ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
190 | : |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
191 | if [ -z "$prefix__initialized__" ] ; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
192 | has_overridable_config_vars__=1 |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
193 | prefix__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
194 | prefix='/usr' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
195 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
196 | if [ -z "$exec_prefix__initialized__" ] ; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
197 | has_overridable_config_vars__=1 |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
198 | exec_prefix__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
199 | exec_prefix='' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
200 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
201 | if [ -z "$libdir__initialized__" ] ; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
202 | has_overridable_config_vars__=1 |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
203 | libdir__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
204 | libdir='' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
205 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
206 | if [ -z "$includedir__initialized__" ] ; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
207 | has_overridable_config_vars__=1 |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
208 | includedir__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
209 | includedir='' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
210 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
211 | if [ -z "$VERSION__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
212 | VERSION__initialized__=1 |
|
1536
b65c05e7be3c
start development of UCX 4
Mike Becker <universe@uap-core.de>
parents:
1528
diff
changeset
|
213 | VERSION='4.0.0' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
214 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
215 | if [ -z "$LIBVERSION__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
216 | LIBVERSION__initialized__=1 |
|
1536
b65c05e7be3c
start development of UCX 4
Mike Becker <universe@uap-core.de>
parents:
1528
diff
changeset
|
217 | LIBVERSION='7.0.0' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
218 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
219 | if [ -z "$LIBVERSION_MAJOR__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
220 | LIBVERSION_MAJOR__initialized__=1 |
|
1536
b65c05e7be3c
start development of UCX 4
Mike Becker <universe@uap-core.de>
parents:
1528
diff
changeset
|
221 | LIBVERSION_MAJOR='7' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
222 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
223 | if [ -z "$root_dir__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
224 | root_dir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
225 | root_dir=`pwd` |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
226 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
227 | if [ -z "$build_dir__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
228 | build_dir__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
229 | build_dir='${root_dir}/build' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
230 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
231 | if [ -z "$docs_dir__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
232 | docs_dir__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
233 | docs_dir='${root_dir}/build/docs' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
234 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
235 | if [ -z "$dist_dir__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
236 | dist_dir__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
237 | dist_dir='${root_dir}/dist' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
238 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
239 | if [ -z "$MKDIR__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
240 | MKDIR__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
241 | MKDIR='/bin/mkdir -p' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
242 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
243 | if [ -z "$RMFILE__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
244 | RMFILE__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
245 | RMFILE='/bin/rm -f' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
246 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
247 | if [ -z "$RMDIR__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
248 | RMDIR__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
249 | RMDIR='/bin/rm -f -R' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
250 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
251 | if [ -z "$COPYFILE__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
252 | COPYFILE__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
253 | COPYFILE='/bin/cp -f' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
254 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
255 | if [ -z "$COPYALL__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
256 | COPYALL__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
257 | COPYALL='/bin/cp -f -R' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
258 | fi |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
259 | if [ -z "$SYMLINK__initialized__" ] ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
260 | SYMLINK__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
261 | SYMLINK='/bin/ln -s' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
262 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
263 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
264 | if true \ |
|
1528
6a687a7caed8
fix that pkgconfdir is only different on FreeBSD
Mike Becker <universe@uap-core.de>
parents:
1526
diff
changeset
|
265 | && isplatform "freebsd" \ |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
266 | ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
267 | : |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
268 | if [ -z "$pkgconfigdir__initialized__" ] ; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
269 | has_overridable_config_vars__=1 |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
270 | pkgconfigdir__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
271 | pkgconfigdir='${exec_prefix}/libdata/pkgconfig' |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
272 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
273 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
274 | if true \ |
|
1528
6a687a7caed8
fix that pkgconfdir is only different on FreeBSD
Mike Becker <universe@uap-core.de>
parents:
1526
diff
changeset
|
275 | && notisplatform "freebsd" \ |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
276 | ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
277 | : |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
278 | if [ -z "$pkgconfigdir__initialized__" ] ; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
279 | has_overridable_config_vars__=1 |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
280 | pkgconfigdir__initialized__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
281 | pkgconfigdir='${libdir}/pkgconfig' |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
282 | fi |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
283 | fi |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
284 | if true \ |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
285 | ; then |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
286 | : |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
287 | if [ -z "$DOXYGEN__initialized__" ] ; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
288 | has_overridable_config_vars__=1 |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
289 | DOXYGEN__initialized__=1 |
|
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
290 | DOXYGEN=`command -v doxygen || echo '/bin/false'` |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
291 | fi |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
292 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
293 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
294 | # features |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
295 | FEATURE_CXX_TESTS=auto |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
296 | FEATURE_SZMUL_BUILTIN=auto |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
297 | FEATURE_MEMRCHR=auto |
|
1661
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
298 | FEATURE_MKSTEMP=auto |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
299 | FEATURE_QSORT_R=auto |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
300 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
301 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
302 | # parse arguments |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
303 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
304 | BUILD_TYPE="default" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
305 | for ARG in "$@" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
306 | do |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
307 | case "$ARG" in |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
308 | "--prefix="*) prefix=${ARG#--prefix=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
309 | "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
310 | "--libdir="*) libdir=${ARG#--libdir=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
311 | "--includedir="*) includedir=${ARG#--includedir=} ;; |
|
1526
047f8a19f7fa
add command line option for pkgconfigdir
Mike Becker <universe@uap-core.de>
parents:
1525
diff
changeset
|
312 | "--pkgconfigdir="*) pkgconfigdir=${ARG#--pkgconfigdir=} ;; |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
313 | "--doxygen="*) DOXYGEN=${ARG#--doxygen=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
314 | "--help"*) printhelp ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
315 | "--debug") BUILD_TYPE="debug" ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
316 | "--release") BUILD_TYPE="release" ;; |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
317 | "--enable-api-docs") FEATURE_API_DOCS=on ;; |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
318 | "--disable-api-docs") unset FEATURE_API_DOCS ;; |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
319 | "--enable-coverage") FEATURE_COVERAGE=on ;; |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
320 | "--disable-coverage") unset FEATURE_COVERAGE ;; |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
321 | "--enable-asan") FEATURE_ASAN=on ;; |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
322 | "--disable-asan") unset FEATURE_ASAN ;; |
|
1660
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
323 | "--enable-ubsan") FEATURE_UBSAN=on ;; |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
324 | "--disable-ubsan") unset FEATURE_UBSAN ;; |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
325 | "--enable-cxx-tests") FEATURE_CXX_TESTS=on ;; |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
326 | "--disable-cxx-tests") unset FEATURE_CXX_TESTS ;; |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
327 | "--enable-szmul-builtin") FEATURE_SZMUL_BUILTIN=on ;; |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
328 | "--disable-szmul-builtin") unset FEATURE_SZMUL_BUILTIN ;; |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
329 | "--enable-memrchr") FEATURE_MEMRCHR=on ;; |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
330 | "--disable-memrchr") unset FEATURE_MEMRCHR ;; |
|
1661
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
331 | "--enable-mkstemp") FEATURE_MKSTEMP=on ;; |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
332 | "--disable-mkstemp") unset FEATURE_MKSTEMP ;; |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
333 | "--enable-qsort_r") FEATURE_QSORT_R=on ;; |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
334 | "--disable-qsort_r") unset FEATURE_QSORT_R ;; |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
335 | "-"*) echo "unknown option: $ARG"; abort_configure ;; |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
336 | esac |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
337 | done |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
338 | |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
339 | # toolchain detection utilities |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
340 | . make/toolchain.sh |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
341 | |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
342 | # check languages |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
343 | lang_c= |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
344 | lang_cpp= |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
345 | if detect_cpp_compiler ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
346 | lang_cpp=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
347 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
348 | if detect_c_compiler ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
349 | lang_c=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
350 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
351 | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
352 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
353 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
354 | # set defaults for dir variables |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
355 | : ${exec_prefix:="$prefix"} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
356 | : ${bindir:='${exec_prefix}/bin'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
357 | : ${sbindir:='${exec_prefix}/sbin'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
358 | : ${libdir:='${exec_prefix}/lib'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
359 | : ${libexecdir:='${exec_prefix}/libexec'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
360 | : ${datarootdir:='${prefix}/share'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
361 | : ${datadir:='${datarootdir}'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
362 | : ${sharedstatedir:='${prefix}/com'} |
| 1492 | 363 | if [ -z "$sysconfdir" ]; then |
| 364 | if [ "$prefix" = '/usr' ]; then | |
| 365 | sysconfdir='/etc' | |
| 366 | else | |
| 367 | sysconfdir='${prefix}/etc' | |
| 368 | fi | |
| 369 | fi | |
| 370 | if [ -z "$localstatedir" ]; then | |
| 371 | if [ "$prefix" = '/usr' ]; then | |
| 372 | localstatedir='/var' | |
| 373 | else | |
| 374 | localstatedir='${prefix}/var' | |
| 375 | fi | |
| 376 | fi | |
| 377 | if [ -z "$runstatedir" ]; then | |
| 378 | if [ "$prefix" = '/usr' ]; then | |
| 379 | runstatedir='/var/run' | |
| 380 | else | |
| 381 | runstatedir='${prefix}/var' | |
| 382 | fi | |
| 383 | fi | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
384 | : ${includedir:='${prefix}/include'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
385 | : ${infodir:='${datarootdir}/info'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
386 | : ${mandir:='${datarootdir}/man'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
387 | : ${localedir:='${datarootdir}/locale'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
388 | |
| 1310 | 389 | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
390 | # check if a config.site exists and load it |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
391 | CONFIG_SITE_OK=0 |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
392 | if [ -n "$CONFIG_SITE" ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
393 | # CONFIG_SITE may contain space separated file names |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
394 | for cs in $CONFIG_SITE; do |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
395 | printf "loading defaults from $cs... " |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
396 | if [ -f "$cs" ]; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
397 | . "$cs" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
398 | echo ok |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
399 | CONFIG_SITE_OK=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
400 | break |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
401 | else |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
402 | echo "not found" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
403 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
404 | done |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
405 | elif [ -f "$prefix/share/config.site" ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
406 | printf "loading site defaults... " |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
407 | . "$prefix/share/config.site" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
408 | echo ok |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
409 | CONFIG_SITE_OK=1 |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
410 | elif [ -f "$prefix/etc/config.site" ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
411 | printf "loading site defaults... " |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
412 | . "$prefix/etc/config.site" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
413 | echo ok |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
414 | CONFIG_SITE_OK=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
415 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
416 | |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
417 | if [ $CONFIG_SITE_OK -eq 0 ]; then |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
418 | # try to detect the correct libdir on our own, except it was changed by the user |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
419 | if [ "$libdir" = '${exec_prefix}/lib' ] ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
420 | if [ "$TOOLCHAIN_WSIZE" = "64" ] ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
421 | if [ "$OS" = "SunOS" ]; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
422 | [ -d "${exec_prefix}/lib/64" ] && libdir='${exec_prefix}/lib/64' |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
423 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
424 | [ -d "${exec_prefix}/lib64" ] && libdir='${exec_prefix}/lib64' |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
425 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
426 | elif [ "$TOOLCHAIN_WSIZE" = "32" ] ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
427 | if [ "$OS" = "SunOS" ]; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
428 | [ -d "${exec_prefix}/lib/32" ] && libdir='${exec_prefix}/lib/32' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
429 | else |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
430 | [ -d "${exec_prefix}/lib32" ] && libdir='${exec_prefix}/lib32' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
431 | fi |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
432 | fi |
|
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
433 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
434 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
435 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
436 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
437 | # generate vars.mk |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
438 | echo '# configuration' > "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
439 | echo "prefix=$prefix" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
440 | echo "exec_prefix=$exec_prefix" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
441 | echo "libdir=$libdir" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
442 | echo "includedir=$includedir" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
443 | echo "VERSION=$VERSION" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
444 | echo "LIBVERSION=$LIBVERSION" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
445 | echo "LIBVERSION_MAJOR=$LIBVERSION_MAJOR" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
446 | echo "root_dir=$root_dir" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
447 | echo "build_dir=$build_dir" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
448 | echo "docs_dir=$docs_dir" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
449 | echo "dist_dir=$dist_dir" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
450 | echo "MKDIR=$MKDIR" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
451 | echo "RMFILE=$RMFILE" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
452 | echo "RMDIR=$RMDIR" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
453 | echo "COPYFILE=$COPYFILE" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
454 | echo "COPYALL=$COPYALL" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
455 | echo "SYMLINK=$SYMLINK" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
456 | echo "pkgconfigdir=$pkgconfigdir" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
457 | echo "DOXYGEN=$DOXYGEN" >> "$TEMP_DIR/vars.mk" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
458 | echo >> "$TEMP_DIR/vars.mk" |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
459 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
460 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
461 | # DEPENDENCIES |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
462 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
463 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
464 | # create buffer for make variables required by dependencies |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
465 | echo > "$TEMP_DIR/make.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
466 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
467 | test_pkg_config() |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
468 | { |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
469 | if "$PKG_CONFIG" --exists "$1" ; then : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
470 | else return 1 ; fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
471 | if [ -z "$2" ] || "$PKG_CONFIG" --atleast-version="$2" "$1" ; then : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
472 | else return 1 ; fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
473 | if [ -z "$3" ] || "$PKG_CONFIG" --exact-version="$3" "$1" ; then : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
474 | else return 1 ; fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
475 | if [ -z "$4" ] || "$PKG_CONFIG" --max-version="$4" "$1" ; then : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
476 | else return 1 ; fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
477 | return 0 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
478 | } |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
479 | |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
480 | print_check_msg() |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
481 | { |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
482 | if [ -z "$1" ]; then |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
483 | shift |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
484 | printf "$@" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
485 | fi |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
486 | } |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
487 | |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
488 | dependency_error_coverage() |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
489 | { |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
490 | print_check_msg "$dep_checked_coverage" "checking for coverage... " |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
491 | # dependency coverage toolchain="gcc" |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
492 | while true |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
493 | do |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
494 | if notistoolchain "gcc"; then |
|
815
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
495 | break |
|
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
496 | fi |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
497 | if command -v gcovr > /dev/null 2>&1 ; then |
|
1064
f3b04cd60776
change coverage tool from gcov to gcovr
Mike Becker <universe@uap-core.de>
parents:
1017
diff
changeset
|
498 | : |
|
f3b04cd60776
change coverage tool from gcov to gcovr
Mike Becker <universe@uap-core.de>
parents:
1017
diff
changeset
|
499 | else |
|
f3b04cd60776
change coverage tool from gcov to gcovr
Mike Becker <universe@uap-core.de>
parents:
1017
diff
changeset
|
500 | break |
|
f3b04cd60776
change coverage tool from gcov to gcovr
Mike Becker <universe@uap-core.de>
parents:
1017
diff
changeset
|
501 | fi |
|
788
b34ff44e6433
move coverage flags to make/*.mk files - relates to #345
Mike Becker <universe@uap-core.de>
parents:
772
diff
changeset
|
502 | TEMP_CFLAGS="$TEMP_CFLAGS \${COVERAGE_CFLAGS}" |
|
b34ff44e6433
move coverage flags to make/*.mk files - relates to #345
Mike Becker <universe@uap-core.de>
parents:
772
diff
changeset
|
503 | TEMP_LDFLAGS="$TEMP_LDFLAGS \${COVERAGE_LDFLAGS}" |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
504 | print_check_msg "$dep_checked_coverage" "yes\n" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
505 | dep_checked_coverage=1 |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
506 | return 1 |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
507 | done |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
508 | |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
509 | print_check_msg "$dep_checked_coverage" "no\n" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
510 | dep_checked_coverage=1 |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
511 | return 0 |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
512 | } |
|
1661
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
513 | dependency_error_mkstemp() |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
514 | { |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
515 | print_check_msg "$dep_checked_mkstemp" "checking for mkstemp... " |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
516 | # dependency mkstemp |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
517 | while true |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
518 | do |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
519 | if $TOOLCHAIN_CC $CFLAGS $LDFLAGS -o /dev/null make/test_mkstemp.c > /dev/null 2>&1 ; then |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
520 | : |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
521 | else |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
522 | break |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
523 | fi |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
524 | TEMP_CFLAGS="$TEMP_CFLAGS -DWITH_MKSTEMP" |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
525 | print_check_msg "$dep_checked_mkstemp" "yes\n" |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
526 | dep_checked_mkstemp=1 |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
527 | return 1 |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
528 | done |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
529 | |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
530 | print_check_msg "$dep_checked_mkstemp" "no\n" |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
531 | dep_checked_mkstemp=1 |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
532 | return 0 |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
533 | } |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
534 | dependency_error_asan() |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
535 | { |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
536 | print_check_msg "$dep_checked_asan" "checking for asan... " |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
537 | # dependency asan toolchain="gnuc" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
538 | while true |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
539 | do |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
540 | if notistoolchain "gnuc"; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
541 | break |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
542 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
543 | TEMP_CFLAGS="$TEMP_CFLAGS -fsanitize=address" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
544 | TEMP_LDFLAGS="$TEMP_LDFLAGS -fsanitize=address" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
545 | print_check_msg "$dep_checked_asan" "yes\n" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
546 | dep_checked_asan=1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
547 | return 1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
548 | done |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
549 | |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
550 | print_check_msg "$dep_checked_asan" "no\n" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
551 | dep_checked_asan=1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
552 | return 0 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
553 | } |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
554 | dependency_error_cxx() |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
555 | { |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
556 | print_check_msg "$dep_checked_cxx" "checking for cxx... " |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
557 | # dependency cxx |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
558 | while true |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
559 | do |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
560 | if [ -z "$lang_cpp" ] ; then |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
561 | break |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
562 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
563 | print_check_msg "$dep_checked_cxx" "yes\n" |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
564 | dep_checked_cxx=1 |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
565 | return 1 |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
566 | done |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
567 | |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
568 | print_check_msg "$dep_checked_cxx" "no\n" |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
569 | dep_checked_cxx=1 |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
570 | return 0 |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
571 | } |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
572 | dependency_error_memrchr() |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
573 | { |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
574 | print_check_msg "$dep_checked_memrchr" "checking for memrchr... " |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
575 | # dependency memrchr |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
576 | while true |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
577 | do |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
578 | if $TOOLCHAIN_CC $CFLAGS $LDFLAGS -o /dev/null make/test_memrchr.c > /dev/null 2>&1 ; then |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
579 | : |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
580 | else |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
581 | break |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
582 | fi |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
583 | TEMP_CFLAGS="$TEMP_CFLAGS -DWITH_MEMRCHR" |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
584 | print_check_msg "$dep_checked_memrchr" "yes\n" |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
585 | dep_checked_memrchr=1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
586 | return 1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
587 | done |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
588 | |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
589 | print_check_msg "$dep_checked_memrchr" "no\n" |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
590 | dep_checked_memrchr=1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
591 | return 0 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
592 | } |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
593 | dependency_error_doxygen() |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
594 | { |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
595 | print_check_msg "$dep_checked_doxygen" "checking for doxygen... " |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
596 | # dependency doxygen |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
597 | while true |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
598 | do |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
599 | if test -n "$DOXYGEN" > /dev/null 2>&1 ; then |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
600 | : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
601 | else |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
602 | break |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
603 | fi |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
604 | print_check_msg "$dep_checked_doxygen" "yes\n" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
605 | dep_checked_doxygen=1 |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
606 | return 1 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
607 | done |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
608 | |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
609 | print_check_msg "$dep_checked_doxygen" "no\n" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
610 | dep_checked_doxygen=1 |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
611 | return 0 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
612 | } |
|
990
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
613 | dependency_error_no_coverage() |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
614 | { |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
615 | print_check_msg "$dep_checked_no_coverage" "checking for no_coverage... " |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
616 | # dependency no_coverage |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
617 | while true |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
618 | do |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
619 | if test -z "$FEATURE_COVERAGE" > /dev/null 2>&1 ; then |
|
990
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
620 | : |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
621 | else |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
622 | break |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
623 | fi |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
624 | print_check_msg "$dep_checked_no_coverage" "yes\n" |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
625 | dep_checked_no_coverage=1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
626 | return 1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
627 | done |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
628 | |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
629 | print_check_msg "$dep_checked_no_coverage" "no\n" |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
630 | dep_checked_no_coverage=1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
631 | return 0 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
632 | } |
|
1660
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
633 | dependency_error_ubsan() |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
634 | { |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
635 | print_check_msg "$dep_checked_ubsan" "checking for ubsan... " |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
636 | # dependency ubsan toolchain="gnuc" |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
637 | while true |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
638 | do |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
639 | if notistoolchain "gnuc"; then |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
640 | break |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
641 | fi |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
642 | TEMP_CFLAGS="$TEMP_CFLAGS -fsanitize=undefined" |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
643 | TEMP_LDFLAGS="$TEMP_LDFLAGS -fsanitize=undefined" |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
644 | print_check_msg "$dep_checked_ubsan" "yes\n" |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
645 | dep_checked_ubsan=1 |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
646 | return 1 |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
647 | done |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
648 | |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
649 | print_check_msg "$dep_checked_ubsan" "no\n" |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
650 | dep_checked_ubsan=1 |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
651 | return 0 |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
652 | } |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
653 | dependency_error_qsort_r() |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
654 | { |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
655 | print_check_msg "$dep_checked_qsort_r" "checking for qsort_r... " |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
656 | # dependency qsort_r |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
657 | while true |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
658 | do |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
659 | if $TOOLCHAIN_CC $CFLAGS $LDFLAGS -o /dev/null make/test_qsort_r.c > /dev/null 2>&1 ; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
660 | : |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
661 | else |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
662 | break |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
663 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
664 | TEMP_CFLAGS="$TEMP_CFLAGS -DWITH_QSORT_R" |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
665 | print_check_msg "$dep_checked_qsort_r" "yes\n" |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
666 | dep_checked_qsort_r=1 |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
667 | return 1 |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
668 | done |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
669 | |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
670 | print_check_msg "$dep_checked_qsort_r" "no\n" |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
671 | dep_checked_qsort_r=1 |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
672 | return 0 |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
673 | } |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
674 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
675 | # start collecting dependency information |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
676 | echo > "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
677 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
678 | DEPENDENCIES_FAILED= |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
679 | ERROR=0 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
680 | # unnamed dependencies |
|
1017
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
681 | TEMP_CFLAGS="$CFLAGS" |
|
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
682 | TEMP_CXXFLAGS="$CXXFLAGS" |
|
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
683 | TEMP_LDFLAGS="$LDFLAGS" |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
684 | while true |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
685 | do |
|
1460
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
686 | if notisplatform "macos"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
687 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
688 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
689 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
690 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
691 | if [ -z "$lang_c" ] ; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
692 | ERROR=1 |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
693 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
694 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
695 | |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
696 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
697 | AR=ar |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
698 | ARFLAGS=r |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
699 | STLIB_EXT=.a |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
700 | SHLIB_EXT=.dylib |
|
1471
2309b553c604
install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1461
diff
changeset
|
701 | |
|
2309b553c604
install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1461
diff
changeset
|
702 | SHLIB_LDFLAGS=-dynamiclib -current_version \$(LIBVERSION) -compatibility_version \$(LIBVERSION) |
|
2309b553c604
install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1461
diff
changeset
|
703 | INSTALL_LIB=\$(root_dir)/make/install-lib-macos.sh |
|
1460
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
704 | __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
705 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
706 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
707 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
708 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
709 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
710 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
711 | if notisplatform "unix"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
712 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
713 | fi |
|
1461
dfd79d615049
remove mingw support (we have MSVC support) + fix regression on macos platform
Mike Becker <universe@uap-core.de>
parents:
1460
diff
changeset
|
714 | if isplatform "macos" || istoolchain "macos"; then |
|
dfd79d615049
remove mingw support (we have MSVC support) + fix regression on macos platform
Mike Becker <universe@uap-core.de>
parents:
1460
diff
changeset
|
715 | break |
|
dfd79d615049
remove mingw support (we have MSVC support) + fix regression on macos platform
Mike Becker <universe@uap-core.de>
parents:
1460
diff
changeset
|
716 | fi |
|
1460
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
717 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
718 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
719 | if [ -z "$lang_c" ] ; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
720 | ERROR=1 |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
721 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
722 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
723 | |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
724 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
725 | AR=ar |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
726 | ARFLAGS=cr |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
727 | STLIB_EXT=.a |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
728 | SHLIB_EXT=.so |
|
1471
2309b553c604
install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1461
diff
changeset
|
729 | INSTALL_LIB=\$(root_dir)/make/install-lib.sh |
|
1460
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
730 | __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
731 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
732 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
733 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
734 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
735 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
736 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
737 | if notistoolchain "gnuc"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
738 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
739 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
740 | if isplatform "macos" || istoolchain "macos"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
741 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
742 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
743 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
744 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
745 | |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
746 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
747 | SHLIB_LDFLAGS += -Wl,-soname,libucx\$(SHLIB_EXT).\$(LIBVERSION_MAJOR) |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
748 | __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
749 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
750 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
751 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
752 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
753 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
754 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
755 | if notistoolchain "suncc"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
756 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
757 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
758 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
759 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
760 | |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
761 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
762 | SHLIB_LDFLAGS += -h libucx\$(SHLIB_EXT).\$(LIBVERSION_MAJOR) |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
763 | __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
764 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
765 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
766 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
767 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
768 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
769 | do |
|
842
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
770 | if notisplatform "solaris"; then |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
771 | break |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
772 | fi |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
773 | while true |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
774 | do |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
775 | |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
776 | TEMP_LDFLAGS="$TEMP_LDFLAGS -lm" |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
777 | break |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
778 | done |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
779 | break |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
780 | done |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
781 | |
| 1310 | 782 | # build type |
| 783 | if [ "$BUILD_TYPE" = "debug" ]; then | |
|
1330
caa66055b025
apply latest uwproj fixes
Mike Becker <universe@uap-core.de>
parents:
1320
diff
changeset
|
784 | TEMP_CFLAGS="\${DEBUG_CFLAGS} $TEMP_CFLAGS" |
|
caa66055b025
apply latest uwproj fixes
Mike Becker <universe@uap-core.de>
parents:
1320
diff
changeset
|
785 | TEMP_CXXFLAGS="\${DEBUG_CXXFLAGS} $TEMP_CXXFLAGS" |
| 1310 | 786 | fi |
| 787 | if [ "$BUILD_TYPE" = "release" ]; then | |
|
1330
caa66055b025
apply latest uwproj fixes
Mike Becker <universe@uap-core.de>
parents:
1320
diff
changeset
|
788 | TEMP_CFLAGS="\${RELEASE_CFLAGS} $TEMP_CFLAGS" |
|
caa66055b025
apply latest uwproj fixes
Mike Becker <universe@uap-core.de>
parents:
1320
diff
changeset
|
789 | TEMP_CXXFLAGS="\${RELEASE_CXXFLAGS} $TEMP_CXXFLAGS" |
| 1310 | 790 | fi |
| 791 | ||
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
792 | # add general dependency flags to flags.mk |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
793 | echo "# general flags" >> "$TEMP_DIR/flags.mk" |
|
815
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
794 | if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
795 | echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
796 | fi |
|
815
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
797 | if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
798 | echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
799 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
800 | if [ -n "${TEMP_LDFLAGS}" ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
801 | echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
802 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
803 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
804 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
805 | # OPTION VALUES |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
806 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
807 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
808 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
809 | # TARGETS |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
810 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
811 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
812 | echo >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
813 | echo "configuring global target" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
814 | echo "# flags for unnamed target" >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
815 | TEMP_CFLAGS= |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
816 | TEMP_CXXFLAGS= |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
817 | TEMP_LDFLAGS= |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
818 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
819 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
820 | # Features |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
821 | if [ -n "$FEATURE_API_DOCS" ]; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
822 | # check dependency |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
823 | if dependency_error_doxygen ; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
824 | # "auto" features can fail and are just disabled in this case |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
825 | if [ "$FEATURE_API_DOCS" = "auto" ]; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
826 | DISABLE_FEATURE_API_DOCS=1 |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
827 | else |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
828 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED doxygen " |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
829 | ERROR=1 |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
830 | fi |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
831 | fi |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
832 | if [ -n "$DISABLE_FEATURE_API_DOCS" ]; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
833 | unset FEATURE_API_DOCS |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
834 | fi |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
835 | fi |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
836 | if [ -n "$FEATURE_API_DOCS" ]; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
837 | : |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
838 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
839 | # Documentation |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
840 | WITH_API_DOCS=yes |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
841 | __EOF__ |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
842 | else |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
843 | : |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
844 | fi |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
845 | if [ -n "$FEATURE_COVERAGE" ]; then |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
846 | # check dependency |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
847 | if dependency_error_coverage ; then |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
848 | # "auto" features can fail and are just disabled in this case |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
849 | if [ "$FEATURE_COVERAGE" = "auto" ]; then |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
850 | DISABLE_FEATURE_COVERAGE=1 |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
851 | else |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
852 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED coverage " |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
853 | ERROR=1 |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
854 | fi |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
855 | fi |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
856 | if [ -n "$DISABLE_FEATURE_COVERAGE" ]; then |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
857 | unset FEATURE_COVERAGE |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
858 | fi |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
859 | fi |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
860 | if [ -n "$FEATURE_COVERAGE" ]; then |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
861 | : |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
862 | else |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
863 | : |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
864 | fi |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
865 | if [ -n "$FEATURE_ASAN" ]; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
866 | # check dependency |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
867 | if dependency_error_asan ; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
868 | # "auto" features can fail and are just disabled in this case |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
869 | if [ "$FEATURE_ASAN" = "auto" ]; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
870 | DISABLE_FEATURE_ASAN=1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
871 | else |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
872 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED asan " |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
873 | ERROR=1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
874 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
875 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
876 | if [ -n "$DISABLE_FEATURE_ASAN" ]; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
877 | unset FEATURE_ASAN |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
878 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
879 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
880 | if [ -n "$FEATURE_ASAN" ]; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
881 | : |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
882 | else |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
883 | : |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
884 | fi |
|
1660
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
885 | if [ -n "$FEATURE_UBSAN" ]; then |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
886 | # check dependency |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
887 | if dependency_error_ubsan ; then |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
888 | # "auto" features can fail and are just disabled in this case |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
889 | if [ "$FEATURE_UBSAN" = "auto" ]; then |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
890 | DISABLE_FEATURE_UBSAN=1 |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
891 | else |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
892 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED ubsan " |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
893 | ERROR=1 |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
894 | fi |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
895 | fi |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
896 | if [ -n "$DISABLE_FEATURE_UBSAN" ]; then |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
897 | unset FEATURE_UBSAN |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
898 | fi |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
899 | fi |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
900 | if [ -n "$FEATURE_UBSAN" ]; then |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
901 | : |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
902 | else |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
903 | : |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
904 | fi |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
905 | if [ -n "$FEATURE_CXX_TESTS" ]; then |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
906 | # check dependency |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
907 | if dependency_error_cxx ; then |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
908 | # "auto" features can fail and are just disabled in this case |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
909 | if [ "$FEATURE_CXX_TESTS" = "auto" ]; then |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
910 | DISABLE_FEATURE_CXX_TESTS=1 |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
911 | else |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
912 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED cxx " |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
913 | ERROR=1 |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
914 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
915 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
916 | if [ -n "$DISABLE_FEATURE_CXX_TESTS" ]; then |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
917 | unset FEATURE_CXX_TESTS |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
918 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
919 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
920 | if [ -n "$FEATURE_CXX_TESTS" ]; then |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
921 | : |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
922 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
923 | # Enable the check-cxx target |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
924 | WITH_CXX_TEST=yes |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
925 | __EOF__ |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
926 | else |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
927 | : |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
928 | fi |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
929 | if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then |
|
990
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
930 | # check dependency |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
931 | if dependency_error_no_coverage ; then |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
932 | # "auto" features can fail and are just disabled in this case |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
933 | if [ "$FEATURE_SZMUL_BUILTIN" = "auto" ]; then |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
934 | DISABLE_FEATURE_SZMUL_BUILTIN=1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
935 | else |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
936 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED no_coverage " |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
937 | ERROR=1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
938 | fi |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
939 | fi |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
940 | if [ -n "$DISABLE_FEATURE_SZMUL_BUILTIN" ]; then |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
941 | unset FEATURE_SZMUL_BUILTIN |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
942 | fi |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
943 | fi |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
944 | if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
945 | : |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
946 | else |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
947 | : |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
948 | TEMP_CFLAGS="$TEMP_CFLAGS -DCX_NO_SZMUL_BUILTIN" |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
949 | TEMP_CXXFLAGS="$TEMP_CXXFLAGS -DCX_NO_SZMUL_BUILTIN" |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
950 | fi |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
951 | if [ -n "$FEATURE_MEMRCHR" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
952 | # check dependency |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
953 | if dependency_error_memrchr ; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
954 | # "auto" features can fail and are just disabled in this case |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
955 | if [ "$FEATURE_MEMRCHR" = "auto" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
956 | DISABLE_FEATURE_MEMRCHR=1 |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
957 | else |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
958 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED memrchr " |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
959 | ERROR=1 |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
960 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
961 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
962 | if [ -n "$DISABLE_FEATURE_MEMRCHR" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
963 | unset FEATURE_MEMRCHR |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
964 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
965 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
966 | if [ -n "$FEATURE_MEMRCHR" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
967 | : |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
968 | else |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
969 | : |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
970 | fi |
|
1661
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
971 | if [ -n "$FEATURE_MKSTEMP" ]; then |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
972 | # check dependency |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
973 | if dependency_error_mkstemp ; then |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
974 | # "auto" features can fail and are just disabled in this case |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
975 | if [ "$FEATURE_MKSTEMP" = "auto" ]; then |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
976 | DISABLE_FEATURE_MKSTEMP=1 |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
977 | else |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
978 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED mkstemp " |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
979 | ERROR=1 |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
980 | fi |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
981 | fi |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
982 | if [ -n "$DISABLE_FEATURE_MKSTEMP" ]; then |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
983 | unset FEATURE_MKSTEMP |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
984 | fi |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
985 | fi |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
986 | if [ -n "$FEATURE_MKSTEMP" ]; then |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
987 | : |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
988 | else |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
989 | : |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
990 | fi |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
991 | if [ -n "$FEATURE_QSORT_R" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
992 | # check dependency |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
993 | if dependency_error_qsort_r ; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
994 | # "auto" features can fail and are just disabled in this case |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
995 | if [ "$FEATURE_QSORT_R" = "auto" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
996 | DISABLE_FEATURE_QSORT_R=1 |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
997 | else |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
998 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED qsort_r " |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
999 | ERROR=1 |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1000 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1001 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1002 | if [ -n "$DISABLE_FEATURE_QSORT_R" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1003 | unset FEATURE_QSORT_R |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1004 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1005 | fi |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1006 | if [ -n "$FEATURE_QSORT_R" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1007 | : |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1008 | else |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1009 | : |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1010 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1011 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1012 | |
|
815
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
1013 | if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1014 | echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1015 | fi |
|
815
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
1016 | if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1017 | echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1018 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1019 | if [ -n "${TEMP_LDFLAGS}" ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1020 | echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1021 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1022 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1023 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1024 | # final result |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1025 | if [ $ERROR -ne 0 ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1026 | echo |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1027 | echo "Error: Unresolved dependencies" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1028 | echo "$DEPENDENCIES_FAILED" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1029 | abort_configure |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1030 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1031 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1032 | echo "configure finished" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1033 | echo |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1034 | echo "Toolchain:" |
| 1310 | 1035 | echo " name: $TOOLCHAIN_NAME" |
| 1036 | if [ -n "$TOOLCHAIN_CC" ]; then | |
| 1037 | echo " cc: $TOOLCHAIN_CC" | |
| 1038 | fi | |
| 1039 | if [ -n "$TOOLCHAIN_CXX" ]; then | |
| 1040 | echo " cxx: $TOOLCHAIN_CXX" | |
| 1041 | fi | |
| 1042 | if [ -n "$TOOLCHAIN_WSIZE" ]; then | |
| 1043 | echo " word size: $TOOLCHAIN_WSIZE bit" | |
| 1044 | fi | |
| 1045 | if [ -n "$TOOLCHAIN_CSTD" ]; then | |
| 1046 | echo " default C std: $TOOLCHAIN_CSTD" | |
| 1047 | fi | |
|
1698
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1048 | if [ $has_overridable_config_vars__ -eq 1 ]; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1049 | echo |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1050 | echo "Config:" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1051 | if [ -n "$prefix__initialized__" ]; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1052 | printf ' %-16s' 'prefix:' |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1053 | echo "$prefix" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1054 | fi |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1055 | if [ -n "$exec_prefix__initialized__" ]; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1056 | printf ' %-16s' 'exec-prefix:' |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1057 | echo "$exec_prefix" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1058 | fi |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1059 | if [ -n "$libdir__initialized__" ]; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1060 | printf ' %-16s' 'libdir:' |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1061 | echo "$libdir" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1062 | fi |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1063 | if [ -n "$includedir__initialized__" ]; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1064 | printf ' %-16s' 'includedir:' |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1065 | echo "$includedir" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1066 | fi |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1067 | if [ -n "$pkgconfigdir__initialized__" ]; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1068 | printf ' %-16s' 'pkgconfigdir:' |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1069 | echo "$pkgconfigdir" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1070 | fi |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1071 | if [ -n "$DOXYGEN__initialized__" ]; then |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1072 | printf ' %-16s' 'doxygen:' |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1073 | echo "$DOXYGEN" |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1074 | fi |
|
1ba637f64695
update uwproj and start development of version 4.0.1
Mike Becker <universe@uap-core.de>
parents:
1661
diff
changeset
|
1075 | fi |
| 1310 | 1076 | echo |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
1077 | echo "Features:" |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1078 | printf ' %-16s' 'api-docs:' |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
1079 | if [ -n "$FEATURE_API_DOCS" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1080 | echo 'on' |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
1081 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1082 | echo 'off' |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
1083 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1084 | printf ' %-16s' 'coverage:' |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
1085 | if [ -n "$FEATURE_COVERAGE" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1086 | echo 'on' |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
1087 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1088 | echo 'off' |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
1089 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1090 | printf ' %-16s' 'asan:' |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
1091 | if [ -n "$FEATURE_ASAN" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1092 | echo 'on' |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
1093 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1094 | echo 'off' |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
1095 | fi |
|
1660
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
1096 | printf ' %-16s' 'ubsan:' |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
1097 | if [ -n "$FEATURE_UBSAN" ]; then |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
1098 | echo 'on' |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
1099 | else |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
1100 | echo 'off' |
|
802ab24f67aa
add ubsan feature (for debugging)
Mike Becker <universe@uap-core.de>
parents:
1620
diff
changeset
|
1101 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1102 | printf ' %-16s' 'cxx-tests:' |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
1103 | if [ -n "$FEATURE_CXX_TESTS" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1104 | echo 'on' |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
1105 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1106 | echo 'off' |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
1107 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1108 | printf ' %-16s' 'szmul-builtin:' |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
1109 | if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1110 | echo 'on' |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
1111 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
1112 | echo 'off' |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
1113 | fi |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1114 | printf ' %-16s' 'memrchr:' |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1115 | if [ -n "$FEATURE_MEMRCHR" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1116 | echo 'on' |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1117 | else |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1118 | echo 'off' |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1119 | fi |
|
1661
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
1120 | printf ' %-16s' 'mkstemp:' |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
1121 | if [ -n "$FEATURE_MKSTEMP" ]; then |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
1122 | echo 'on' |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
1123 | else |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
1124 | echo 'off' |
|
a389bf17eaaa
add WITH_MKSTEMP macro because the previous feature test did not always work
Mike Becker <universe@uap-core.de>
parents:
1660
diff
changeset
|
1125 | fi |
|
1620
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1126 | printf ' %-16s' 'qsort_r:' |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1127 | if [ -n "$FEATURE_QSORT_R" ]; then |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1128 | echo 'on' |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1129 | else |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1130 | echo 'off' |
|
bf5d647f939d
use qsort_r() when it is available - relates to #622
Mike Becker <universe@uap-core.de>
parents:
1619
diff
changeset
|
1131 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1132 | echo |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1133 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1134 | # generate the config.mk file |
| 1310 | 1135 | pwd=`pwd` |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1136 | cat > "$TEMP_DIR/config.mk" << __EOF__ |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1137 | # |
| 1310 | 1138 | # config.mk generated by: |
| 1139 | # pwd: $pwd | |
| 1140 | # $0 $@ | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1141 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1142 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1143 | __EOF__ |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1144 | write_toolchain_defaults "$TEMP_DIR/toolchain.mk" |
| 1310 | 1145 | cat "$TEMP_DIR/config.mk" "$TEMP_DIR/vars.mk" "$TEMP_DIR/toolchain.mk" "$TEMP_DIR/flags.mk" "$TEMP_DIR/make.mk" > config.mk |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1146 | rm -Rf "$TEMP_DIR" |