forked from azvoleff/VimCom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
40 lines (35 loc) · 1.03 KB
/
configure.ac
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
AC_INIT(vimcom, 1.2-5)
# Don't enable clientserver on OS X unless the user explicitly requests it
if test `uname` = Darwin
then
want_cs="no"
else
want_cs="yes"
fi
AC_ARG_ENABLE([clientserver],
[AS_HELP_STRING([--enable-clientserver],
[support Vim clientserver feature])],
[want_clientserver="${enableval}"],
[want_clientserver="$want_cs"])
if test "x${want_clientserver}" = xyes; then
AC_PATH_XTRA
XCFLAGS="$X_CFLAGS"
XLIBS="-lX11 $X_EXTRA_LIBS $X_LIBS"
AC_SUBST(XCFLAGS)
AC_SUBST(XLIBS)
echo ""
echo "Information about X11:"
echo " x_includes : $x_includes"
echo " x_libraries : $x_libraries"
echo " X_CFLAGS : $X_CFLAGS"
echo " X_PRE_LIBS : $X_PRE_LIBS"
echo " X_EXTRA_LIBS : $X_EXTRA_LIBS"
echo " X_LIBS : $X_LIBS"
echo ""
else
XCFLAGS="-DNO_X_CLIENTSERVER $X_CFLAGS"
XLIBS="$X_LIBS"
AC_SUBST(XLIBS)
AC_SUBST(XCFLAGS)
fi
AC_OUTPUT(src/Makevars)