-
Notifications
You must be signed in to change notification settings - Fork 2
/
bbs2www.in
80 lines (71 loc) · 1.75 KB
/
bbs2www.in
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
if [ test -z "$with_www" ]; then
with_www="yes"
fi
AC_ARG_WITH(www,
[ --with-www=path
select the root path of www],
WWW_DIR="$withval", WWW_DIR="yes")
if test $CONFIG_HAVE_WWW -eq 0 ; then
WWW_DIR="no"
fi
if test "$WWW_DIR" != "no"; then
if test "$WWW_DIR" = "yes"; then
if test -f /home0/www/bin/apachectl; then
WWW_DIR=/home0/www
else
if test -d /usr/local/apache; then
WWW_DIR=/usr/local/apache
else
if test -d /var/www; then
WWW_DIR=/var/www
fi
fi
fi
fi
if test '!' -d $WWW_DIR; then
AC_MSG_ERROR("can't find www in $WWW_DIR")
fi
WWWBASE=$WWW_DIR
CGIPATH=$WWWBASE/cgi-bin/bbs
if test -d $WWWBASE/html; then
HTMPATH=$WWWBASE/html
else
HTMPATH=$WWWBASE/htdocs
fi
PHPBBSLIBPATH=$WWWBASE/libexec/bbs
fi
if [ test -z "$with_php" ]; then
with_php="yes"
fi
AC_ARG_WITH(php,
[ --with-php=path
select php source directory],
PHP_DIR="$withval", PHP_DIR="yes")
if test "$WWW_DIR" = "no"; then
PHP_DIR="no"
fi
if test "$PHP_DIR" != "no"; then
if test "$PHP_DIR" = "yes"; then
if test -f /home/share/php/Zend/zend.h; then
PHP_DIR=/home/share/php
else
if test -f /usr/include/php/Zend/zend.h; then
PHP_DIR=/usr/include/php
else
if test -f /usr/local/include/php/Zend/zend.h; then
PHP_DIR=/usr/local/include/php
fi
fi
fi
fi
if test '!' -f $PHP_DIR/Zend/zend.h; then
AC_MSG_ERROR("can't find php source in $PHP_DIR")
fi
PHPBASE=$PHP_DIR
AC_SUBST(PHPBASE)
AC_SUBST(WWWBASE)
AC_SUBST(CGIPATH)
AC_SUBST(HTMPATH)
AC_SUBST(PHPBBSLIBPATH)
AC_SUBST(BBSSITE)
fi