forked from osxfuse/fuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakeconf.sh
executable file
·60 lines (54 loc) · 1.24 KB
/
makeconf.sh
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
#! /bin/sh
test "`uname -s`" != "Darwin"
DARWIN=$?
if test $DARWIN -eq 1; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
fi
echo Running libtoolize...
$LIBTOOLIZE --automake -c -f
if test $DARWIN -eq 1; then
touch config.rpath
else
CONFIG_RPATH=/usr/share/gettext/config.rpath
if ! [ -f $CONFIG_RPATH ]; then
CONFIG_RPATH=/usr/local/share/gettext/config.rpath
fi
if ! [ -f $CONFIG_RPATH ]; then
if [ -f config.rpath ]; then
CONFIG_RPATH=
else
echo "config.rpath not found!" >&2
exit 1
fi
fi
if ! [ -z "$CONFIG_RPATH" ]; then
cp "$CONFIG_RPATH" .
fi
fi
if test ! -z "`which autoreconf`"; then
echo Running autoreconf...
autoreconf -i -f
else
echo Running aclocal...
aclocal
echo Running autoheader...
autoheader
echo Running autoconf...
autoconf
echo Running automake...
automake -a -c
(
echo Entering directory: kernel
cd kernel
echo Running autoheader...
autoheader
echo Running autoconf...
autoconf
)
fi
echo Linking kernel header file...
ln -sf ../kernel/fuse_kernel.h `dirname $0`/include
rm -f config.cache config.status
echo "To compile run './configure', and then 'make'."