59 |
--with-debug-kbd) |
--with-debug-kbd) |
60 |
cflags="$cflags -g -DWITH_DEBUG_KBD" |
cflags="$cflags -g -DWITH_DEBUG_KBD" |
61 |
;; |
;; |
62 |
|
--with-debug-rdp5) |
63 |
|
cflags="$cflags -g -DWITH_DEBUG_RDP5" |
64 |
|
;; |
65 |
|
--with-debug-clipboard) |
66 |
|
cflags="$cflags -g -DWITH_DEBUG_CLIPBOARD" |
67 |
|
;; |
68 |
--without-debug*) |
--without-debug*) |
69 |
;; |
;; |
70 |
*) |
*) |
85 |
echo " use CMD as libvncserver-config" |
echo " use CMD as libvncserver-config" |
86 |
echo " --with-debug enable protocol debugging output" |
echo " --with-debug enable protocol debugging output" |
87 |
echo " --with-debug-kbd enable debugging of keyboard handling" |
echo " --with-debug-kbd enable debugging of keyboard handling" |
88 |
|
echo " --with-debug-rdp5 enable debugging of RDP5 code" |
89 |
|
echo " --with-debug-clipboard enable debugging of clipboard code" |
90 |
echo |
echo |
91 |
rm -f Makeconf |
rm -f Makeconf |
92 |
exit 1 |
exit 1 |
121 |
fi |
fi |
122 |
|
|
123 |
|
|
124 |
|
# Find install program |
125 |
|
|
126 |
|
if [ -z "$INSTALL" ]; then |
127 |
|
# Want BSD install |
128 |
|
if [ -x /usr/ucb/installbsd ]; then |
129 |
|
INSTALL=/usr/ucb/installbsd |
130 |
|
elif [ -x /usr/ucb/install ]; then |
131 |
|
INSTALL=/usr/ucb/install |
132 |
|
else |
133 |
|
INSTALL=install |
134 |
|
fi |
135 |
|
fi |
136 |
|
|
137 |
|
echo "INSTALL = $INSTALL" >>Makeconf |
138 |
|
|
139 |
|
|
140 |
# Find X installation |
# Find X installation |
141 |
|
|
142 |
xdirs="$extraxdir /usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local" |
xdirs="$extraxdir /usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local" |
153 |
echo "(searched for include/X11/Xlib.h in: $xdirs)" |
echo "(searched for include/X11/Xlib.h in: $xdirs)" |
154 |
|
|
155 |
# additional helpful information for Linux users |
# additional helpful information for Linux users |
156 |
if [ -f /etc/redhat_release ]; then |
if [ -f /etc/redhat-release ]; then |
157 |
echo You probably need to install the XFree86-devel package |
echo You probably need to install the XFree86-devel package |
158 |
elif [ -f /etc/debian_version ]; then |
elif [ -f /etc/debian_version ]; then |
159 |
echo You probably need to install the xlibs-dev package |
echo You probably need to install the xlibs-dev package |
251 |
fi |
fi |
252 |
fi |
fi |
253 |
|
|
254 |
|
# Check for OSS sound support |
255 |
|
|
256 |
|
if [ -f /usr/include/sys/soundcard.h ]; then |
257 |
|
echo Sound support enabled: Open Sound System |
258 |
|
echo |
259 |
|
echo "SOUNDOBJ = rdpsnd.o rdpsnd_oss.o" >>Makeconf |
260 |
|
cflags="$cflags -DWITH_RDPSND" |
261 |
|
elif [ -f /usr/include/sys/audioio.h ]; then |
262 |
|
echo Sound support enabled: Sun |
263 |
|
echo |
264 |
|
echo "SOUNDOBJ = rdpsnd.o rdpsnd_sun.o" >>Makeconf |
265 |
|
cflags="$cflags -DWITH_RDPSND" |
266 |
|
else |
267 |
|
echo "WARNING: sound support disabled (no /usr/include/sys/soundcard.h or /usr/include/sys/audio.h)" |
268 |
|
echo "Currently supported systems are Open Sound System and Sun" |
269 |
|
echo |
270 |
|
fi |
271 |
|
|
272 |
|
|
273 |
# Platform-specific options |
# Platform-specific options |
274 |
|
|