-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure
executable file
·71 lines (55 loc) · 1.28 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
#!/bin/sh
# This configure script is part of the configurator project and is
# designed to be universal and used to build any C library.
# It is meant to be used with the adjacent `makefile' and `.config'
# file.
. ./.config
menu()
{
stdout "${projectname}
${description}
${copyright}
\`configure' script instructions
-h|--help This menu
--prefix=PREFIX main installation prefix [${prefixtype}]
./configure --prefix=/home/user/buildarea
"
[ ! -z "$1" ] && exit "$1"
}
prefix="${prefixtype}"
for i in "$@"
do case "$i" in
-error)
menu
fatal "RUN ./configure first!!"
;;
-h|--help)
menu 0
;;
--prefix=*)
prefix=${i#*=}
;;
*)
fatal "$i is not a valid option !!"
;;
esac
done
stdout "Creating a config.mak to be sourced by the makefile"
stdout "..."
stdout "prefix = $prefix"
stdout "libname = $libname"
stdout "Attempting to produce lib${libname}.a"
stdout "..."
stdout "${projectname} requires a C compiler, \`make' (gmake), and \`ar'"
stdout "this configure script does not automatically detect them"
stdout "but instead the makefile uses the environment"
stdout "..."
stdout "..."
stdout "..."
stdout "# Automatically generated" > config.mak
stdout "
prefix = $prefix
libname = $libname
" >> config.mak
stdout
stdout "done."