-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·52 lines (51 loc) · 1.25 KB
/
configure
File metadata and controls
executable file
·52 lines (51 loc) · 1.25 KB
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
#! /bin/sh
quick_fwd=
for arg
do
case "$arg" in
-help | --help | --hel | --he)
quick_fwd=yes
break ;;
-version | --version | --versio | --versi | --vers)
quick_fwd=yes
break ;;
*)
break ;;
esac
done
if test "x$quick_fwd" = xyes
then
support/configure $*
else
echo "retrieving the system name, type and OS release..."
rev=`support/config.guess`
if test "${rev}" # test for no output
then
echo " your system seems to be ${rev}."
if test ! -d "${rev}"
then
echo "creating directory ${rev}..."
mkdir "${rev}"
fi
cd "${rev}"
echo "now working in directory ${rev}..."
cp -p ../support/configure .
if test ! -f config.h
then
echo "copying config.h from config.h.dist..."
cp -p ../support/config.h.dist config.h
fi
# 2014-08-19 Kurt Roeckx
# * configure: Use quotes when calling support/configure
./configure "$@"
if test $? = 0
then
echo "Have you read doc/README? (I hope so)"
echo "Next cd ${rev}, edit \"config.h\" and \"Makefile\","
echo "run \"make all\" to build and \"make install\" to install."
fi
else
echo Failed to determine your host type, giving up.
echo Perhaps you should specify it manually.
fi
fi