Debian Codegraph @

tools/config-gen

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # Copyright (C) 2011 Karel Zak <[email protected]>
4 #
5
6 testscip-shell system . . test. -f sys-utils/mount.c || {
7 echoscip-shell system . . echo.
8 echoscip-shell system . . echo. "You must run this script in the top-level util-linux directory"
9 echoscip-shell system . . echo.
10 exit 1
11 }
12
13 unset CC
14 unset CXX
15 unset CFLAGS
16 unset LDFLAGS
17 unset SUID_CFLAGS
18 unset SUID_LDFLAGS
19
20 . tools/config-gen-functions.shscip-shell source . . `tools/config-gen-functions.sh`.
21
22 if [scip-shell system . . `[`. $# -eq 0 ]; then
23 echoscip-shell system . . echo. "This script requires at least one of the folloving arguments:"
24 cd tools/config-gen.d
25 for i in *.conf; do
26 echoscip-shell system . . echo. " ${i%%.conf}"
27 done
28 exit 1
29 fi
30
31 while [scip-shell system . . `[`. -n "$1" ]; do
32 opts="$opts $(ul_get_configuration tools/config-gen.d/$1.conf)"
33 if [scip-shell system . . `[`. "$1" == "fuzz" ]; then
34 export CC=${CC:-clang}
35 export CXX=${CXX:-clang++}
36 fi
37 shift
38 done
39
40 opts=$(echoscip-shell system . . echo. $opts | trscip-shell system . . tr. " " "\n" | sortscip-shell system . . sort. -u)
41 echoscip-shell system . . echo. "Configure options:"
42 for x in $opts; do
43 echoscip-shell system . . echo. " $x"
44 done
45 echoscip-shell system . . echo.
46
47 if [scip-shell system . . `[`. -n "$CFLAGS" ]; then
48 echoscip-shell system . . echo. "CFLAGS: $CFLAGS"
49 CFLAGS="$CFLAGS"
50 export CFLAGS
51 echoscip-shell system . . echo.
52 fi
53 if [scip-shell system . . `[`. -n "$LDFLAGS" ]; then
54 echoscip-shell system . . echo. "LDFLAGS: $LDFLAGS"
55 LDFLAGS="$LDFLAGS"
56 export LDFLAGS
57 echoscip-shell system . . echo.
58 fi
59
60 if [scip-shell system . . `[`. ! -f ./configure ]; then
61 ./autogen.sh
62 fi
63
64 ./configure $opts