296
# Check for glib 2.6.14 or greater.
296
# Check for glib 2.6.0 or greater.
298
298
AC_VMW_CHECK_LIB([glib-2.0],
304
304
[g_key_file_new],
306
[AC_MSG_ERROR([glib2 >= 2.14.0 is required.])])
306
[AC_MSG_ERROR([glib >= 2.6.0 is required.])])
308
307
AC_VMW_CHECK_LIB([gmodule-2.0],
316
[AC_MSG_ERROR([gmodule >= 2.14.0 is required.])])
315
[AC_MSG_ERROR([gmodule >= 2.6.0 is required.])])
317
316
AC_VMW_CHECK_LIB([gobject-2.0],
325
[AC_MSG_ERROR([gobject >= 2.14.0 is required.])])
324
[AC_MSG_ERROR([gobject >= 2.6.0 is required.])])
326
325
AC_VMW_CHECK_LIB([gthread-2.0],
334
[AC_MSG_ERROR([glib >= 2.14.0 is required.])])
333
[AC_MSG_ERROR([glib >= 2.6.0 is required.])])
335
334
AC_CHECK_PROG([have_genmarshal],
336
335
[glib-genmarshal],
344
# Parts of our Linux code require more recent version of glib
346
if test "$os" = "linux"; then
347
AC_VMW_CHECK_LIB([glib-2.0],
354
[have_glib_2_14=yes],
355
[AC_MSG_WARN([glib is not recent enough, some features will be disabled.])])
345
359
# Check for fuse.
347
361
AC_VMW_CHECK_LIB([fuse],
587
601
if test "$with_procps" = "yes"; then
602
if test -z "$CUSTOM_PROCPS_NAME"; then
603
CUSTOM_PROCPS_NAME=proc
606
# XXX: no pkg-config and no procps-config means we need to
607
# hard-code a sensible default.
608
if test -z "$CUSTOM_PROCPS_LIBS"; then
609
CUSTOM_PROCPS_LIBS="-L/lib"
612
# Some distros provide libproc-${version}.so only, others provide the
613
# libproc.so symlink. Try both to see what sticks (but only try the 3.2.7
614
# and 3.2.8 versions - adding every possible version here would be a mess).
616
# Users can help by providing CUSTOM_PROCPS_NAME / CUSTOM_PROCPS_LIBS if
591
if test -z "$CUSTOM_PROCPS_NAME" && test -z "$CUSTOM_PROCPS_LIBS"; then
592
# See if we have procps-ng (that finally supports pkg-config).
593
AC_VMW_CHECK_LIB([procps-ng],
606
if test "$have_procps" = "no"; then
607
# Let's see if there is an older procps version, one that does not
608
# support pkg-config.
609
if test -z "$CUSTOM_PROCPS_NAME"; then
610
CUSTOM_PROCPS_NAME=proc
613
# XXX: no pkg-config and no procps-config means we need to
614
# hard-code a sensible default.
615
if test -z "$CUSTOM_PROCPS_LIBS"; then
616
CUSTOM_PROCPS_LIBS="-L/lib"
619
# Some distros provide libproc-${version}.so only, others provide the
620
# libproc.so symlink. Try both to see what sticks (but only try the 3.2.7
621
# and 3.2.8 versions - adding every possible version here would be a mess).
623
# Users can help by providing CUSTOM_PROCPS_NAME / CUSTOM_PROCPS_LIBS if
625
AC_VMW_CHECK_LIB([$CUSTOM_PROCPS_NAME],
620
AC_VMW_CHECK_LIB([$CUSTOM_PROCPS_NAME],
638
632
if test "$have_procps" = "no"; then
639
633
AC_VMW_CHECK_LIB([proc-3.2.8],
843
837
CFLAGS="$CFLAGS -Wall"
844
838
CFLAGS="$CFLAGS -Werror"
846
# -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident'
847
# in Xlib.h on OpenSolaris.
848
# Glib2 keep changing mutex APIs so we also need to disable 'deprecated'
849
# warnings for now (-Wno-deprecated-declarations).
840
# -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' in Xlib.h on OpenSolaris.
850
841
for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \
851
-Wno-unknown-pragmas -Wno-uninitialized -Wno-deprecated-declarations; do
842
-Wno-unknown-pragmas -Wno-uninitialized; do
852
843
AC_MSG_CHECKING([for GCC flag $TEST_CFLAG])
853
844
ORIGINAL_CFLAGS="$CFLAGS"
854
845
CFLAGS="$CFLAGS $TEST_CFLAG"
951
946
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lrt"
948
MODULES="$MODULES vmsync vmci vsock"
949
MODULES="$MODULES vmxnet vmblock vmhgfs"
953
950
MODULES="$MODULES vmxnet vmhgfs"
954
# See if we need vmci and vsock modules. Starting with 3.9 they made
955
# their way into mainline kernel.
956
if test "$osVersion" -lt 309000; then
957
MODULES="$MODULES vmci vsock"
959
951
if test "$osVersion" -lt 300000; then
960
MODULES="$MODULES vmblock vmsync"
952
MODULES="$MODULES vmblock vmsync"
962
955
buildHgfsmounter=yes
1048
1041
AM_CONDITIONAL(HAVE_GNU_LD, test "$with_gnu_ld" = "yes")
1049
1042
AM_CONDITIONAL(HAVE_GTKMM, test "$have_x" = "yes" -a "$with_gtkmm" = "yes")
1050
1043
AM_CONDITIONAL(HAVE_PAM, test "$with_pam" = "yes")
1051
AM_CONDITIONAL(USE_SLASH_PROC, test "os" = "linux")
1044
AM_CONDITIONAL(USE_SLASH_PROC, test "os" = "linux" -a "$have_glib_2_14" = "yes")
1052
1045
AM_CONDITIONAL(USE_PRINTF_WRAPPERS, test "$bsdPrintfWrappers" = "yes")
1054
1047
if test "$have_xsm" != "yes"; then