-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure
executable file
·83 lines (78 loc) · 1.99 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/sh
if [ "_$1" = "_--help" ]; then
echo "Optional Features:"
echo " --enable-debug"
echo " --enable-minimal"
echo " --enable-unixsock"
echo " --enable-ipv4"
echo " --enable-ipv6"
echo " --enable-tcp"
echo " --enable-udp"
echo " --enable-sctp"
echo " --with-perror"
exit
fi
echo -n "CFLAGS+=" >Makefile.inc
if [ "_$1" = "_" ]; then
echo -n " -g -DDEBUG" >>Makefile.inc
echo -n " -DUSEUNIXSOCK" >>Makefile.inc
echo -n " -DUSEIP4" >>Makefile.inc
echo -n " -DUSETCP" >>Makefile.inc
echo -n " -DUSEUDP" >>Makefile.inc
fi
while true ; do
case "$1" in
--enable-debug)
echo "Enable debug info"
echo -n " -g -DDEBUG" >>Makefile.inc
shift
;;
--enable-minimal)
echo "Enable minimal build"
echo -n " -DUSEMINIMAL" >>Makefile.inc
shift
;;
--enable-unixsock)
echo "Enable unixsock support"
echo -n " -DUSEUNIXSOCK" >>Makefile.inc
shift
;;
--enable-ipv4)
echo "Enable ipv4 support"
echo -n " -DUSEIP4" >>Makefile.inc
shift
;;
--enable-ipv6)
echo "Enable ipv6 support"
echo -n " -DUSEIP6" >>Makefile.inc
shift
;;
--enable-tcp)
echo "Enable tcp support"
echo -n " -DUSETCP" >>Makefile.inc
shift
;;
--enable-udp)
echo "Enable udp support"
echo -n " -DUSEUDP" >>Makefile.inc
shift
;;
--enable-sctp)
echo "Enable sctp support"
echo -n " -DUSESCTP" >>Makefile.inc
shift
;;
--with-perror)
echo "With perror"
echo -n " -DUSEPERROR" >>Makefile.inc
shift
;;
"")
break
;;
*)
shift
;;
esac
done
echo "" >>Makefile.inc