~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201207201942

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-03-20 10:19:00 UTC
  • mfrom: (1.1.4 upstream) (2.4.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090320101900-1o604camiubq2de8
Tags: 2009.03.18-154848-2
Correcting patch system depends (Closes: #520493).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for open-vm-tools 2008.11.18-130226.
 
3
# Generated by GNU Autoconf 2.61 for open-vm-tools 2009.03.18.
4
4
#
5
5
# Report bugs to <open-vm-tools-devel@lists.sourceforge.net>.
6
6
#
723
723
# Identity of this package.
724
724
PACKAGE_NAME='open-vm-tools'
725
725
PACKAGE_TARNAME='open-vm-tools'
726
 
PACKAGE_VERSION='2008.11.18-130226'
727
 
PACKAGE_STRING='open-vm-tools 2008.11.18-130226'
 
726
PACKAGE_VERSION='2009.03.18'
 
727
PACKAGE_STRING='open-vm-tools 2009.03.18'
728
728
PACKAGE_BUGREPORT='open-vm-tools-devel@lists.sourceforge.net'
729
729
 
730
730
ac_unique_file="checkvm/checkvm.c"
876
876
X_PRE_LIBS
877
877
X_LIBS
878
878
X_EXTRA_LIBS
879
 
LIBPNG_CONFIG
880
 
DNET_CONFIG
881
 
ICU_CONFIG
882
 
HAVE_CXX
 
879
ac_vmw_lib_cfg
 
880
GLIB2_CPPFLAGS
 
881
GLIB2_LIBS
 
882
GMODULE_CPPFLAGS
 
883
GMODULE_LIBS
 
884
GOBJECT_CPPFLAGS
 
885
GOBJECT_LIBS
 
886
GTHREAD_CPPFLAGS
 
887
GTHREAD_LIBS
 
888
have_genmarshal
 
889
FUSE_CPPFLAGS
 
890
FUSE_LIBS
 
891
URIPARSER_CPPFLAGS
 
892
URIPARSER_LIBS
 
893
LIBPNG_CPPFLAGS
 
894
LIBPNG_LIBS
 
895
ZLIB_CPPFLAGS
 
896
ZLIB_LIBS
 
897
GTK_CPPFLAGS
 
898
GTK_LIBS
 
899
GTKMM_CPPFLAGS
 
900
GTKMM_LIBS
 
901
PROCPS_CPPFLAGS
 
902
PROCPS_LIBS
 
903
DNET_CPPFLAGS
 
904
DNET_LIBS
 
905
have_cxx
 
906
ICU_CPPFLAGS
 
907
ICU_LIBS
883
908
RPCGEN
884
909
BUILD_HGFSMOUNTER_TRUE
885
910
BUILD_HGFSMOUNTER_FALSE
889
914
SOLARIS_FALSE
890
915
FREEBSD_TRUE
891
916
FREEBSD_FALSE
 
917
FREEBSD_CUSTOM_SYSDIR_TRUE
 
918
FREEBSD_CUSTOM_SYSDIR_FALSE
892
919
THIRTY_TWO_BIT_USERSPACE_TRUE
893
920
THIRTY_TWO_BIT_USERSPACE_FALSE
894
921
HAVE_X11_TRUE
903
930
ENABLE_UNITY_FALSE
904
931
WITH_ROOT_PRIVILEGES_TRUE
905
932
WITH_ROOT_PRIVILEGES_FALSE
 
933
HAVE_FUSE_TRUE
 
934
HAVE_FUSE_FALSE
 
935
HAVE_GNU_LD_TRUE
 
936
HAVE_GNU_LD_FALSE
 
937
HAVE_GTKMM_TRUE
 
938
HAVE_GTKMM_FALSE
906
939
TARGET_OS
907
940
KERNEL_RELEASE
908
941
MODULES_OS
909
942
MODULES_DIR
910
943
MODULES
911
944
COMMON_XLIBS
912
 
GTK_CPPFLAGS
913
 
GTK_LIBS
914
 
DNET_CPPFLAGS
915
 
DNET_LIBS
916
 
PROCPS_LIBS
917
 
ICU_CPPFLAGS
918
 
ICU_LIBS
919
945
PAM_PREFIX
920
 
URIPARSER_CPPFLAGS
921
 
URIPARSER_LIBS
922
 
LIBPNG_CPPFLAGS
923
 
LIBPNG_LIBS
924
 
ZLIB_CPPFLAGS
925
 
ZLIB_LIBS
 
946
PLUGIN_CPPFLAGS
 
947
PLUGIN_LDFLAGS
 
948
VMTOOLS_CPPFLAGS
 
949
VMTOOLS_LIBS
 
950
RPCGENFLAGS
 
951
XDR_LIBS
 
952
VMSVC_PLUGIN_INSTALLDIR
 
953
VMUSR_PLUGIN_INSTALLDIR
 
954
SYSDIR
926
955
LIB_AUTH_CPPFLAGS
927
956
LIB_FILE_CPPFLAGS
928
957
LIB_HGFS_SERVER_CPPFLAGS
931
960
LIB_PROC_MGR_CPPFLAGS
932
961
LIB_STRING_CPPFLAGS
933
962
LIB_USER_CPPFLAGS
 
963
LIBVMTOOLS_LIBADD
934
964
GUESTD_LDADD
 
965
VIX_LIBADD
935
966
VMWARE_USER_CPPFLAGS
936
967
VMWARE_USER_LDADD
937
968
LIBOBJS
1453
1484
  # Omit some internal or obsolete options to make the list less imposing.
1454
1485
  # This message is too long to be a string in the A/UX 3.1 sh.
1455
1486
  cat <<_ACEOF
1456
 
\`configure' configures open-vm-tools 2008.11.18-130226 to adapt to many kinds of systems.
 
1487
\`configure' configures open-vm-tools 2009.03.18 to adapt to many kinds of systems.
1457
1488
 
1458
1489
Usage: $0 [OPTION]... [VAR=VALUE]...
1459
1490
 
1527
1558
 
1528
1559
if test -n "$ac_init_help"; then
1529
1560
  case $ac_init_help in
1530
 
     short | recursive ) echo "Configuration of open-vm-tools 2008.11.18-130226:";;
 
1561
     short | recursive ) echo "Configuration of open-vm-tools 2009.03.18:";;
1531
1562
   esac
1532
1563
  cat <<\_ACEOF
1533
1564
 
1555
1586
  --with-kernel-release   specifies the kernel release you want to build
1556
1587
                          against
1557
1588
  --with-linuxdir         specifies the Linux directory you want to use
1558
 
  --without-gtk2          compiles without Gtk 2.0 (falls back on Gtk 1.2)
 
1589
  --without-gtk2          compiles without Gtk 2.0
 
1590
  --without-gtkmm         compiles without Gtkmm, sigc++, and related libs
1559
1591
  --with-pic              try to use only PIC/non-PIC objects [default=use
1560
1592
                          both]
1561
1593
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1646
1678
test -n "$ac_init_help" && exit $ac_status
1647
1679
if $ac_init_version; then
1648
1680
  cat <<\_ACEOF
1649
 
open-vm-tools configure 2008.11.18-130226
 
1681
open-vm-tools configure 2009.03.18
1650
1682
generated by GNU Autoconf 2.61
1651
1683
 
1652
1684
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1660
1692
This file contains any messages produced by compilers while
1661
1693
running configure, to aid debugging if configure makes a mistake.
1662
1694
 
1663
 
It was created by open-vm-tools $as_me 2008.11.18-130226, which was
 
1695
It was created by open-vm-tools $as_me 2009.03.18, which was
1664
1696
generated by GNU Autoconf 2.61.  Invocation command line was
1665
1697
 
1666
1698
  $ $0 $@
2279
2311
      ;;
2280
2312
esac
2281
2313
osVersion="`getOsVersion`"
2282
 
if test "$os" = "linux"; then
2283
 
   if test "$with_kernel_modules" = "yes"; then
2284
 
      if test ! -d "$LINUXDIR/kernel/"; then
2285
 
         { { echo "$as_me:$LINENO: error: $LINUXDIR/kernel does not exist" >&5
 
2314
 
 
2315
if test "$with_kernel_modules" = "yes"; then
 
2316
   case "$os" in
 
2317
      linux)
 
2318
         if test ! -d "$LINUXDIR/kernel/"; then
 
2319
             { { echo "$as_me:$LINENO: error: $LINUXDIR/kernel does not exist" >&5
2286
2320
echo "$as_me: error: $LINUXDIR/kernel does not exist" >&2;}
2287
2321
   { (exit 1); exit 1; }; }
2288
 
      fi
2289
 
   fi
 
2322
         fi
 
2323
         ;;
 
2324
 
 
2325
      freebsd)
 
2326
         freebsd_sysdir=/usr/src/sys
 
2327
         if test -n "$SYSDIR"; then
 
2328
            freebsd_sysdir="$SYSDIR"
 
2329
         fi
 
2330
         if test ! -f "$freebsd_sysdir/conf/kmod.mk"; then
 
2331
            { { echo "$as_me:$LINENO: error: FreeBSD kernel tree not found. Please install the kernel sources (or provide the location using SYSDIR) or configure using --without-kernel-modules." >&5
 
2332
echo "$as_me: error: FreeBSD kernel tree not found. Please install the kernel sources (or provide the location using SYSDIR) or configure using --without-kernel-modules." >&2;}
 
2333
   { (exit 1); exit 1; }; }
 
2334
         fi
 
2335
         ;;
 
2336
   esac
2290
2337
fi
2291
2338
 
2292
2339
# Arguments for disabling individual open-vm-tools features or libraries.
2315
2362
fi
2316
2363
 
2317
2364
 
2318
 
# If we're not going to use Gtk 2.0, disable Unity. It may be possible to
2319
 
# get Unity working with Gtk 1.2 (it used to in the past), but that will
2320
 
# require a great deal of work.
 
2365
 
 
2366
# Check whether --with-gtkmm was given.
 
2367
if test "${with_gtkmm+set}" = set; then
 
2368
  withval=$with_gtkmm; with_gtkmm="$withval"
 
2369
else
 
2370
  with_gtkmm="yes"
 
2371
fi
 
2372
 
 
2373
 
 
2374
# If we're not going to use Gtk 2.0, disable Unity.
2321
2375
if test "$with_gtk2" != "yes"; then
2322
2376
   enable_unity="no"
2323
2377
fi
2628
2682
 
2629
2683
# Define the identity of the package.
2630
2684
 PACKAGE='open-vm-tools'
2631
 
 VERSION='2008.11.18-130226'
 
2685
 VERSION='2009.03.18'
2632
2686
 
2633
2687
 
2634
2688
cat >>confdefs.h <<_ACEOF
2790
2844
# CPPFLAGS is intended for preprocessor options (-D and -I mainly)
2791
2845
# CFLAGS is intended for compiler options (-O, -f, -W, and so forth)
2792
2846
 
2793
 
CPPFLAGS="$CPPFLAGS -DUSING_AUTOCONF=1"
 
2847
CPPFLAGS="$CPPFLAGS -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS"
2794
2848
 
2795
2849
###
2796
2850
### Programs
6404
6458
else
6405
6459
  lt_cv_nm_interface="BSD nm"
6406
6460
  echo "int some_variable = 0;" > conftest.$ac_ext
6407
 
  (eval echo "\"\$as_me:6407: $ac_compile\"" >&5)
 
6461
  (eval echo "\"\$as_me:6461: $ac_compile\"" >&5)
6408
6462
  (eval "$ac_compile" 2>conftest.err)
6409
6463
  cat conftest.err >&5
6410
 
  (eval echo "\"\$as_me:6410: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
6464
  (eval echo "\"\$as_me:6464: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6411
6465
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6412
6466
  cat conftest.err >&5
6413
 
  (eval echo "\"\$as_me:6413: output\"" >&5)
 
6467
  (eval echo "\"\$as_me:6467: output\"" >&5)
6414
6468
  cat conftest.out >&5
6415
6469
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6416
6470
    lt_cv_nm_interface="MS dumpbin"
7509
7563
  ;;
7510
7564
*-*-irix6*)
7511
7565
  # Find out which ABI we are using.
7512
 
  echo '#line 7512 "configure"' > conftest.$ac_ext
 
7566
  echo '#line 7566 "configure"' > conftest.$ac_ext
7513
7567
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514
7568
  (eval $ac_compile) 2>&5
7515
7569
  ac_status=$?
9526
9580
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9527
9581
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9528
9582
   -e 's:$: $lt_compiler_flag:'`
9529
 
   (eval echo "\"\$as_me:9529: $lt_compile\"" >&5)
 
9583
   (eval echo "\"\$as_me:9583: $lt_compile\"" >&5)
9530
9584
   (eval "$lt_compile" 2>conftest.err)
9531
9585
   ac_status=$?
9532
9586
   cat conftest.err >&5
9533
 
   echo "$as_me:9533: \$? = $ac_status" >&5
 
9587
   echo "$as_me:9587: \$? = $ac_status" >&5
9534
9588
   if (exit $ac_status) && test -s "$ac_outfile"; then
9535
9589
     # The compiler can only warn and ignore the option if not recognized
9536
9590
     # So say no if there are warnings other than the usual output.
9844
9898
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9845
9899
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9846
9900
   -e 's:$: $lt_compiler_flag:'`
9847
 
   (eval echo "\"\$as_me:9847: $lt_compile\"" >&5)
 
9901
   (eval echo "\"\$as_me:9901: $lt_compile\"" >&5)
9848
9902
   (eval "$lt_compile" 2>conftest.err)
9849
9903
   ac_status=$?
9850
9904
   cat conftest.err >&5
9851
 
   echo "$as_me:9851: \$? = $ac_status" >&5
 
9905
   echo "$as_me:9905: \$? = $ac_status" >&5
9852
9906
   if (exit $ac_status) && test -s "$ac_outfile"; then
9853
9907
     # The compiler can only warn and ignore the option if not recognized
9854
9908
     # So say no if there are warnings other than the usual output.
9949
10003
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9950
10004
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9951
10005
   -e 's:$: $lt_compiler_flag:'`
9952
 
   (eval echo "\"\$as_me:9952: $lt_compile\"" >&5)
 
10006
   (eval echo "\"\$as_me:10006: $lt_compile\"" >&5)
9953
10007
   (eval "$lt_compile" 2>out/conftest.err)
9954
10008
   ac_status=$?
9955
10009
   cat out/conftest.err >&5
9956
 
   echo "$as_me:9956: \$? = $ac_status" >&5
 
10010
   echo "$as_me:10010: \$? = $ac_status" >&5
9957
10011
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9958
10012
   then
9959
10013
     # The compiler can only warn and ignore the option if not recognized
10004
10058
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10005
10059
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10006
10060
   -e 's:$: $lt_compiler_flag:'`
10007
 
   (eval echo "\"\$as_me:10007: $lt_compile\"" >&5)
 
10061
   (eval echo "\"\$as_me:10061: $lt_compile\"" >&5)
10008
10062
   (eval "$lt_compile" 2>out/conftest.err)
10009
10063
   ac_status=$?
10010
10064
   cat out/conftest.err >&5
10011
 
   echo "$as_me:10011: \$? = $ac_status" >&5
 
10065
   echo "$as_me:10065: \$? = $ac_status" >&5
10012
10066
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10013
10067
   then
10014
10068
     # The compiler can only warn and ignore the option if not recognized
12743
12797
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12744
12798
  lt_status=$lt_dlunknown
12745
12799
  cat > conftest.$ac_ext <<_LT_EOF
12746
 
#line 12746 "configure"
 
12800
#line 12800 "configure"
12747
12801
#include "confdefs.h"
12748
12802
 
12749
12803
#if HAVE_DLFCN_H
12843
12897
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12844
12898
  lt_status=$lt_dlunknown
12845
12899
  cat > conftest.$ac_ext <<_LT_EOF
12846
 
#line 12846 "configure"
 
12900
#line 12900 "configure"
12847
12901
#include "confdefs.h"
12848
12902
 
12849
12903
#if HAVE_DLFCN_H
14838
14892
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14839
14893
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14840
14894
   -e 's:$: $lt_compiler_flag:'`
14841
 
   (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
 
14895
   (eval echo "\"\$as_me:14895: $lt_compile\"" >&5)
14842
14896
   (eval "$lt_compile" 2>conftest.err)
14843
14897
   ac_status=$?
14844
14898
   cat conftest.err >&5
14845
 
   echo "$as_me:14845: \$? = $ac_status" >&5
 
14899
   echo "$as_me:14899: \$? = $ac_status" >&5
14846
14900
   if (exit $ac_status) && test -s "$ac_outfile"; then
14847
14901
     # The compiler can only warn and ignore the option if not recognized
14848
14902
     # So say no if there are warnings other than the usual output.
14937
14991
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14938
14992
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14939
14993
   -e 's:$: $lt_compiler_flag:'`
14940
 
   (eval echo "\"\$as_me:14940: $lt_compile\"" >&5)
 
14994
   (eval echo "\"\$as_me:14994: $lt_compile\"" >&5)
14941
14995
   (eval "$lt_compile" 2>out/conftest.err)
14942
14996
   ac_status=$?
14943
14997
   cat out/conftest.err >&5
14944
 
   echo "$as_me:14944: \$? = $ac_status" >&5
 
14998
   echo "$as_me:14998: \$? = $ac_status" >&5
14945
14999
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14946
15000
   then
14947
15001
     # The compiler can only warn and ignore the option if not recognized
14989
15043
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14990
15044
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14991
15045
   -e 's:$: $lt_compiler_flag:'`
14992
 
   (eval echo "\"\$as_me:14992: $lt_compile\"" >&5)
 
15046
   (eval echo "\"\$as_me:15046: $lt_compile\"" >&5)
14993
15047
   (eval "$lt_compile" 2>out/conftest.err)
14994
15048
   ac_status=$?
14995
15049
   cat out/conftest.err >&5
14996
 
   echo "$as_me:14996: \$? = $ac_status" >&5
 
15050
   echo "$as_me:15050: \$? = $ac_status" >&5
14997
15051
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14998
15052
   then
14999
15053
     # The compiler can only warn and ignore the option if not recognized
17335
17389
fi
17336
17390
 
17337
17391
 
 
17392
#
 
17393
# Check for libintl.h. When configuring using "--without-x", /usr/local/include
 
17394
# may not be added to the include path, so code that use glib's i18n functions
 
17395
# would fail to compile because it can't find libintl.h.
 
17396
#
 
17397
if test "${ac_cv_header_libintl_h+set}" = set; then
 
17398
  { echo "$as_me:$LINENO: checking for libintl.h" >&5
 
17399
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
17400
if test "${ac_cv_header_libintl_h+set}" = set; then
 
17401
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17402
fi
 
17403
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
17404
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
17405
else
 
17406
  # Is the header compilable?
 
17407
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
17408
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 
17409
cat >conftest.$ac_ext <<_ACEOF
 
17410
/* confdefs.h.  */
 
17411
_ACEOF
 
17412
cat confdefs.h >>conftest.$ac_ext
 
17413
cat >>conftest.$ac_ext <<_ACEOF
 
17414
/* end confdefs.h.  */
 
17415
$ac_includes_default
 
17416
#include <libintl.h>
 
17417
_ACEOF
 
17418
rm -f conftest.$ac_objext
 
17419
if { (ac_try="$ac_compile"
 
17420
case "(($ac_try" in
 
17421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17422
  *) ac_try_echo=$ac_try;;
 
17423
esac
 
17424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17425
  (eval "$ac_compile") 2>conftest.er1
 
17426
  ac_status=$?
 
17427
  grep -v '^ *+' conftest.er1 >conftest.err
 
17428
  rm -f conftest.er1
 
17429
  cat conftest.err >&5
 
17430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17431
  (exit $ac_status); } && {
 
17432
         test -z "$ac_c_werror_flag" ||
 
17433
         test ! -s conftest.err
 
17434
       } && test -s conftest.$ac_objext; then
 
17435
  ac_header_compiler=yes
 
17436
else
 
17437
  echo "$as_me: failed program was:" >&5
 
17438
sed 's/^/| /' conftest.$ac_ext >&5
 
17439
 
 
17440
        ac_header_compiler=no
 
17441
fi
 
17442
 
 
17443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17444
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17445
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
17446
 
 
17447
# Is the header present?
 
17448
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
17449
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 
17450
cat >conftest.$ac_ext <<_ACEOF
 
17451
/* confdefs.h.  */
 
17452
_ACEOF
 
17453
cat confdefs.h >>conftest.$ac_ext
 
17454
cat >>conftest.$ac_ext <<_ACEOF
 
17455
/* end confdefs.h.  */
 
17456
#include <libintl.h>
 
17457
_ACEOF
 
17458
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17459
case "(($ac_try" in
 
17460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17461
  *) ac_try_echo=$ac_try;;
 
17462
esac
 
17463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17464
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17465
  ac_status=$?
 
17466
  grep -v '^ *+' conftest.er1 >conftest.err
 
17467
  rm -f conftest.er1
 
17468
  cat conftest.err >&5
 
17469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17470
  (exit $ac_status); } >/dev/null && {
 
17471
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17472
         test ! -s conftest.err
 
17473
       }; then
 
17474
  ac_header_preproc=yes
 
17475
else
 
17476
  echo "$as_me: failed program was:" >&5
 
17477
sed 's/^/| /' conftest.$ac_ext >&5
 
17478
 
 
17479
  ac_header_preproc=no
 
17480
fi
 
17481
 
 
17482
rm -f conftest.err conftest.$ac_ext
 
17483
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17484
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
17485
 
 
17486
# So?  What about this header?
 
17487
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17488
  yes:no: )
 
17489
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
17490
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17491
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
17492
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
17493
    ac_header_preproc=yes
 
17494
    ;;
 
17495
  no:yes:* )
 
17496
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
17497
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
17498
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
17499
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
17500
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
17501
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
17502
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
17503
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17504
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
17505
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
17506
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
17507
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
17508
    ( cat <<\_ASBOX
 
17509
## -------------------------------------------------------- ##
 
17510
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
17511
## -------------------------------------------------------- ##
 
17512
_ASBOX
 
17513
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17514
    ;;
 
17515
esac
 
17516
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
 
17517
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
17518
if test "${ac_cv_header_libintl_h+set}" = set; then
 
17519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17520
else
 
17521
  ac_cv_header_libintl_h=$ac_header_preproc
 
17522
fi
 
17523
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
17524
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
17525
 
 
17526
fi
 
17527
if test $ac_cv_header_libintl_h = yes; then
 
17528
  :
 
17529
else
 
17530
  have_libintl=no
 
17531
fi
 
17532
 
 
17533
 
 
17534
if test "$have_libintl" = "no"; then
 
17535
   unset ac_cv_header_libintl_h
 
17536
   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 
17537
   if test "${ac_cv_header_libintl_h+set}" = set; then
 
17538
  { echo "$as_me:$LINENO: checking for libintl.h" >&5
 
17539
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
17540
if test "${ac_cv_header_libintl_h+set}" = set; then
 
17541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17542
fi
 
17543
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
17544
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
17545
else
 
17546
  # Is the header compilable?
 
17547
{ echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
17548
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
 
17549
cat >conftest.$ac_ext <<_ACEOF
 
17550
/* confdefs.h.  */
 
17551
_ACEOF
 
17552
cat confdefs.h >>conftest.$ac_ext
 
17553
cat >>conftest.$ac_ext <<_ACEOF
 
17554
/* end confdefs.h.  */
 
17555
$ac_includes_default
 
17556
#include <libintl.h>
 
17557
_ACEOF
 
17558
rm -f conftest.$ac_objext
 
17559
if { (ac_try="$ac_compile"
 
17560
case "(($ac_try" in
 
17561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17562
  *) ac_try_echo=$ac_try;;
 
17563
esac
 
17564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17565
  (eval "$ac_compile") 2>conftest.er1
 
17566
  ac_status=$?
 
17567
  grep -v '^ *+' conftest.er1 >conftest.err
 
17568
  rm -f conftest.er1
 
17569
  cat conftest.err >&5
 
17570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17571
  (exit $ac_status); } && {
 
17572
         test -z "$ac_c_werror_flag" ||
 
17573
         test ! -s conftest.err
 
17574
       } && test -s conftest.$ac_objext; then
 
17575
  ac_header_compiler=yes
 
17576
else
 
17577
  echo "$as_me: failed program was:" >&5
 
17578
sed 's/^/| /' conftest.$ac_ext >&5
 
17579
 
 
17580
        ac_header_compiler=no
 
17581
fi
 
17582
 
 
17583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17584
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17585
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
17586
 
 
17587
# Is the header present?
 
17588
{ echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
17589
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
 
17590
cat >conftest.$ac_ext <<_ACEOF
 
17591
/* confdefs.h.  */
 
17592
_ACEOF
 
17593
cat confdefs.h >>conftest.$ac_ext
 
17594
cat >>conftest.$ac_ext <<_ACEOF
 
17595
/* end confdefs.h.  */
 
17596
#include <libintl.h>
 
17597
_ACEOF
 
17598
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17599
case "(($ac_try" in
 
17600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17601
  *) ac_try_echo=$ac_try;;
 
17602
esac
 
17603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17604
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17605
  ac_status=$?
 
17606
  grep -v '^ *+' conftest.er1 >conftest.err
 
17607
  rm -f conftest.er1
 
17608
  cat conftest.err >&5
 
17609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17610
  (exit $ac_status); } >/dev/null && {
 
17611
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17612
         test ! -s conftest.err
 
17613
       }; then
 
17614
  ac_header_preproc=yes
 
17615
else
 
17616
  echo "$as_me: failed program was:" >&5
 
17617
sed 's/^/| /' conftest.$ac_ext >&5
 
17618
 
 
17619
  ac_header_preproc=no
 
17620
fi
 
17621
 
 
17622
rm -f conftest.err conftest.$ac_ext
 
17623
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17624
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
17625
 
 
17626
# So?  What about this header?
 
17627
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17628
  yes:no: )
 
17629
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
17630
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17631
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
17632
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
17633
    ac_header_preproc=yes
 
17634
    ;;
 
17635
  no:yes:* )
 
17636
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
17637
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
17638
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
17639
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
17640
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
17641
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
17642
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
17643
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17644
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
17645
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
17646
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
17647
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
17648
    ( cat <<\_ASBOX
 
17649
## -------------------------------------------------------- ##
 
17650
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
17651
## -------------------------------------------------------- ##
 
17652
_ASBOX
 
17653
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17654
    ;;
 
17655
esac
 
17656
{ echo "$as_me:$LINENO: checking for libintl.h" >&5
 
17657
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
 
17658
if test "${ac_cv_header_libintl_h+set}" = set; then
 
17659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17660
else
 
17661
  ac_cv_header_libintl_h=$ac_header_preproc
 
17662
fi
 
17663
{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
17664
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
 
17665
 
 
17666
fi
 
17667
if test $ac_cv_header_libintl_h = yes; then
 
17668
  :
 
17669
else
 
17670
  { { echo "$as_me:$LINENO: error: libintl.h not found. Make sure you have the gettext headers installed." >&5
 
17671
echo "$as_me: error: libintl.h not found. Make sure you have the gettext headers installed." >&2;}
 
17672
   { (exit 1); exit 1; }; }
 
17673
fi
 
17674
 
 
17675
 
 
17676
fi
 
17677
 
 
17678
#
 
17679
# Check for glib 2.6.0 or greater.
 
17680
#
 
17681
 
 
17682
 
 
17683
   if test -z "glib-2.0"; then
 
17684
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
17685
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
17686
   { (exit 1); exit 1; }; }
 
17687
   fi
 
17688
   if test -z "GLIB2"; then
 
17689
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
17690
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
17691
   { (exit 1); exit 1; }; }
 
17692
   fi
 
17693
 
 
17694
   ac_vmw_have_lib=0
 
17695
   ac_vmw_have_lib_func=0
 
17696
   ac_vmw_have_lib_header=0
 
17697
 
 
17698
   #
 
17699
   # First, try any user-defined CUSTOM_* flags.
 
17700
   #
 
17701
   if test -n "${CUSTOM_GLIB2_CPPFLAGS}" || test -n "${CUSTOM_GLIB2_LIBS}"; then
 
17702
      CUSTOM_GLIB2_LIBS="${CUSTOM_GLIB2_LIBS} -lglib-2.0"
 
17703
      if test -n "glib.h"; then
 
17704
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
17705
         CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS} $CPPFLAGS"
 
17706
 
 
17707
         if test "${ac_cv_header_glib_h+set}" = set; then
 
17708
  { echo "$as_me:$LINENO: checking for glib.h" >&5
 
17709
echo $ECHO_N "checking for glib.h... $ECHO_C" >&6; }
 
17710
if test "${ac_cv_header_glib_h+set}" = set; then
 
17711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17712
fi
 
17713
{ echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
 
17714
echo "${ECHO_T}$ac_cv_header_glib_h" >&6; }
 
17715
else
 
17716
  # Is the header compilable?
 
17717
{ echo "$as_me:$LINENO: checking glib.h usability" >&5
 
17718
echo $ECHO_N "checking glib.h usability... $ECHO_C" >&6; }
 
17719
cat >conftest.$ac_ext <<_ACEOF
 
17720
/* confdefs.h.  */
 
17721
_ACEOF
 
17722
cat confdefs.h >>conftest.$ac_ext
 
17723
cat >>conftest.$ac_ext <<_ACEOF
 
17724
/* end confdefs.h.  */
 
17725
$ac_includes_default
 
17726
#include <glib.h>
 
17727
_ACEOF
 
17728
rm -f conftest.$ac_objext
 
17729
if { (ac_try="$ac_compile"
 
17730
case "(($ac_try" in
 
17731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17732
  *) ac_try_echo=$ac_try;;
 
17733
esac
 
17734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17735
  (eval "$ac_compile") 2>conftest.er1
 
17736
  ac_status=$?
 
17737
  grep -v '^ *+' conftest.er1 >conftest.err
 
17738
  rm -f conftest.er1
 
17739
  cat conftest.err >&5
 
17740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17741
  (exit $ac_status); } && {
 
17742
         test -z "$ac_c_werror_flag" ||
 
17743
         test ! -s conftest.err
 
17744
       } && test -s conftest.$ac_objext; then
 
17745
  ac_header_compiler=yes
 
17746
else
 
17747
  echo "$as_me: failed program was:" >&5
 
17748
sed 's/^/| /' conftest.$ac_ext >&5
 
17749
 
 
17750
        ac_header_compiler=no
 
17751
fi
 
17752
 
 
17753
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17754
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17755
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
17756
 
 
17757
# Is the header present?
 
17758
{ echo "$as_me:$LINENO: checking glib.h presence" >&5
 
17759
echo $ECHO_N "checking glib.h presence... $ECHO_C" >&6; }
 
17760
cat >conftest.$ac_ext <<_ACEOF
 
17761
/* confdefs.h.  */
 
17762
_ACEOF
 
17763
cat confdefs.h >>conftest.$ac_ext
 
17764
cat >>conftest.$ac_ext <<_ACEOF
 
17765
/* end confdefs.h.  */
 
17766
#include <glib.h>
 
17767
_ACEOF
 
17768
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17769
case "(($ac_try" in
 
17770
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17771
  *) ac_try_echo=$ac_try;;
 
17772
esac
 
17773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17774
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17775
  ac_status=$?
 
17776
  grep -v '^ *+' conftest.er1 >conftest.err
 
17777
  rm -f conftest.er1
 
17778
  cat conftest.err >&5
 
17779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17780
  (exit $ac_status); } >/dev/null && {
 
17781
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17782
         test ! -s conftest.err
 
17783
       }; then
 
17784
  ac_header_preproc=yes
 
17785
else
 
17786
  echo "$as_me: failed program was:" >&5
 
17787
sed 's/^/| /' conftest.$ac_ext >&5
 
17788
 
 
17789
  ac_header_preproc=no
 
17790
fi
 
17791
 
 
17792
rm -f conftest.err conftest.$ac_ext
 
17793
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17794
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
17795
 
 
17796
# So?  What about this header?
 
17797
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17798
  yes:no: )
 
17799
    { echo "$as_me:$LINENO: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
17800
echo "$as_me: WARNING: glib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17801
    { echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the compiler's result" >&5
 
17802
echo "$as_me: WARNING: glib.h: proceeding with the compiler's result" >&2;}
 
17803
    ac_header_preproc=yes
 
17804
    ;;
 
17805
  no:yes:* )
 
17806
    { echo "$as_me:$LINENO: WARNING: glib.h: present but cannot be compiled" >&5
 
17807
echo "$as_me: WARNING: glib.h: present but cannot be compiled" >&2;}
 
17808
    { echo "$as_me:$LINENO: WARNING: glib.h:     check for missing prerequisite headers?" >&5
 
17809
echo "$as_me: WARNING: glib.h:     check for missing prerequisite headers?" >&2;}
 
17810
    { echo "$as_me:$LINENO: WARNING: glib.h: see the Autoconf documentation" >&5
 
17811
echo "$as_me: WARNING: glib.h: see the Autoconf documentation" >&2;}
 
17812
    { echo "$as_me:$LINENO: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
17813
echo "$as_me: WARNING: glib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17814
    { echo "$as_me:$LINENO: WARNING: glib.h: proceeding with the preprocessor's result" >&5
 
17815
echo "$as_me: WARNING: glib.h: proceeding with the preprocessor's result" >&2;}
 
17816
    { echo "$as_me:$LINENO: WARNING: glib.h: in the future, the compiler will take precedence" >&5
 
17817
echo "$as_me: WARNING: glib.h: in the future, the compiler will take precedence" >&2;}
 
17818
    ( cat <<\_ASBOX
 
17819
## -------------------------------------------------------- ##
 
17820
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
17821
## -------------------------------------------------------- ##
 
17822
_ASBOX
 
17823
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17824
    ;;
 
17825
esac
 
17826
{ echo "$as_me:$LINENO: checking for glib.h" >&5
 
17827
echo $ECHO_N "checking for glib.h... $ECHO_C" >&6; }
 
17828
if test "${ac_cv_header_glib_h+set}" = set; then
 
17829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17830
else
 
17831
  ac_cv_header_glib_h=$ac_header_preproc
 
17832
fi
 
17833
{ echo "$as_me:$LINENO: result: $ac_cv_header_glib_h" >&5
 
17834
echo "${ECHO_T}$ac_cv_header_glib_h" >&6; }
 
17835
 
 
17836
fi
 
17837
if test $ac_cv_header_glib_h = yes; then
 
17838
  ac_vmw_have_lib_header=1
 
17839
fi
 
17840
 
 
17841
 
 
17842
 
 
17843
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
17844
      else
 
17845
         ac_vmw_have_lib_header=1
 
17846
      fi
 
17847
 
 
17848
      # Check a specific function in the library if requested.
 
17849
      # If it hasn't, just pick a random function from libc, just to make
 
17850
      # sure the linker can find the library being tested.
 
17851
      if test $ac_vmw_have_lib_header -eq 1; then
 
17852
         if test -n "g_key_file_new"; then
 
17853
            ac_vmw_function=g_key_file_new
 
17854
         else
 
17855
            ac_vmw_function=strlen
 
17856
         fi
 
17857
         as_ac_Lib=`echo "ac_cv_lib_glib-2.0_$ac_vmw_function" | $as_tr_sh`
 
17858
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lglib-2.0" >&5
 
17859
echo $ECHO_N "checking for $ac_vmw_function in -lglib-2.0... $ECHO_C" >&6; }
 
17860
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
17861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17862
else
 
17863
  ac_check_lib_save_LIBS=$LIBS
 
17864
LIBS="-lglib-2.0 ${CUSTOM_GLIB2_LIBS} $LIBS"
 
17865
cat >conftest.$ac_ext <<_ACEOF
 
17866
/* confdefs.h.  */
 
17867
_ACEOF
 
17868
cat confdefs.h >>conftest.$ac_ext
 
17869
cat >>conftest.$ac_ext <<_ACEOF
 
17870
/* end confdefs.h.  */
 
17871
 
 
17872
/* Override any GCC internal prototype to avoid an error.
 
17873
   Use char because int might match the return type of a GCC
 
17874
   builtin and then its argument prototype would still apply.  */
 
17875
#ifdef __cplusplus
 
17876
extern "C"
 
17877
#endif
 
17878
char $ac_vmw_function ();
 
17879
int
 
17880
main ()
 
17881
{
 
17882
return $ac_vmw_function ();
 
17883
  ;
 
17884
  return 0;
 
17885
}
 
17886
_ACEOF
 
17887
rm -f conftest.$ac_objext conftest$ac_exeext
 
17888
if { (ac_try="$ac_link"
 
17889
case "(($ac_try" in
 
17890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17891
  *) ac_try_echo=$ac_try;;
 
17892
esac
 
17893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17894
  (eval "$ac_link") 2>conftest.er1
 
17895
  ac_status=$?
 
17896
  grep -v '^ *+' conftest.er1 >conftest.err
 
17897
  rm -f conftest.er1
 
17898
  cat conftest.err >&5
 
17899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17900
  (exit $ac_status); } && {
 
17901
         test -z "$ac_c_werror_flag" ||
 
17902
         test ! -s conftest.err
 
17903
       } && test -s conftest$ac_exeext &&
 
17904
       $as_test_x conftest$ac_exeext; then
 
17905
  eval "$as_ac_Lib=yes"
 
17906
else
 
17907
  echo "$as_me: failed program was:" >&5
 
17908
sed 's/^/| /' conftest.$ac_ext >&5
 
17909
 
 
17910
        eval "$as_ac_Lib=no"
 
17911
fi
 
17912
 
 
17913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17914
      conftest$ac_exeext conftest.$ac_ext
 
17915
LIBS=$ac_check_lib_save_LIBS
 
17916
fi
 
17917
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
17918
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
17919
echo "${ECHO_T}$ac_res" >&6; }
 
17920
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
17921
  ac_vmw_have_lib_func=1
 
17922
fi
 
17923
 
 
17924
      fi
 
17925
 
 
17926
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
17927
         GLIB2_CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS}"
 
17928
         GLIB2_LIBS="${CUSTOM_GLIB2_LIBS}"
 
17929
         ac_vmw_have_lib=1
 
17930
      fi
 
17931
   fi
 
17932
 
 
17933
   # If that didn't work, try with pkg-config.
 
17934
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "glib-2.0"; then
 
17935
      if test -n "2.6.0"; then
 
17936
         { echo "$as_me:$LINENO: checking for glib-2.0 >= 2.6.0 (via pkg-config)" >&5
 
17937
echo $ECHO_N "checking for glib-2.0 >= 2.6.0 (via pkg-config)... $ECHO_C" >&6; }
 
17938
         if pkg-config --exists 'glib-2.0 >= 2.6.0'; then
 
17939
            ac_vmw_have_lib=1
 
17940
         fi
 
17941
      else
 
17942
         { echo "$as_me:$LINENO: checking for glib-2.0 (via pkg-config)" >&5
 
17943
echo $ECHO_N "checking for glib-2.0 (via pkg-config)... $ECHO_C" >&6; }
 
17944
         if pkg-config --exists 'glib-2.0'; then
 
17945
            ac_vmw_have_lib=1
 
17946
         fi
 
17947
      fi
 
17948
 
 
17949
      if test $ac_vmw_have_lib -eq 1; then
 
17950
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
17951
         # fails on OpenSolaris B71. So be pessimistic.
 
17952
         ac_vmw_cppflags="`pkg-config --cflags glib-2.0`"
 
17953
         ac_vmw_ret1=$?
 
17954
         ac_vmw_libs="`pkg-config --libs glib-2.0`"
 
17955
         ac_vmw_ret2=$?
 
17956
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
17957
            { echo "$as_me:$LINENO: result: yes" >&5
 
17958
echo "${ECHO_T}yes" >&6; }
 
17959
            GLIB2_CPPFLAGS="$ac_vmw_cppflags"
 
17960
            GLIB2_LIBS="$ac_vmw_libs"
 
17961
         else
 
17962
            { echo "$as_me:$LINENO: result: no" >&5
 
17963
echo "${ECHO_T}no" >&6; }
 
17964
         fi
 
17965
      else
 
17966
         { echo "$as_me:$LINENO: result: no" >&5
 
17967
echo "${ECHO_T}no" >&6; }
 
17968
      fi
 
17969
   fi
 
17970
 
 
17971
   # If we still haven't found the lib, try with the library's custom "config" script.
 
17972
   # Before checking, flush the AC_PATH_PROG cached variable.
 
17973
   unset ac_cv_path_ac_vmw_lib_cfg
 
17974
   unset ac_vmw_lib_cfg
 
17975
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
17976
      # Extract the first word of "", so it can be a program name with args.
 
17977
set dummy ; ac_word=$2
 
17978
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17979
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
17980
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
17981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17982
else
 
17983
  case $ac_vmw_lib_cfg in
 
17984
  [\\/]* | ?:[\\/]*)
 
17985
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
17986
  ;;
 
17987
  *)
 
17988
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17989
for as_dir in $PATH
 
17990
do
 
17991
  IFS=$as_save_IFS
 
17992
  test -z "$as_dir" && as_dir=.
 
17993
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17994
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17995
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
17996
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17997
    break 2
 
17998
  fi
 
17999
done
 
18000
done
 
18001
IFS=$as_save_IFS
 
18002
 
 
18003
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
18004
  ;;
 
18005
esac
 
18006
fi
 
18007
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
18008
if test -n "$ac_vmw_lib_cfg"; then
 
18009
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
18010
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
18011
else
 
18012
  { echo "$as_me:$LINENO: result: no" >&5
 
18013
echo "${ECHO_T}no" >&6; }
 
18014
fi
 
18015
 
 
18016
 
 
18017
      if test "$ac_vmw_lib_cfg" != "no"; then
 
18018
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
18019
         # so single it out here to avoid having to replicate all the rest of the
 
18020
         # logic elsewhere.
 
18021
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
18022
            GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
18023
            GLIB2_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
18024
         else
 
18025
            GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
18026
            GLIB2_LIBS="`$ac_vmw_lib_cfg --libs`"
 
18027
         fi
 
18028
         ac_vmw_have_lib=1
 
18029
      fi
 
18030
   fi
 
18031
 
 
18032
   # Finish by executing the user provided action. The call to "true" is needed
 
18033
   # because the actions are optional, and we need something inside the block.
 
18034
   if test $ac_vmw_have_lib -eq 1; then
 
18035
 
 
18036
 
 
18037
      true
 
18038
 
 
18039
   else
 
18040
      true
 
18041
      { { echo "$as_me:$LINENO: error: glib >= 2.6.0 is required." >&5
 
18042
echo "$as_me: error: glib >= 2.6.0 is required." >&2;}
 
18043
   { (exit 1); exit 1; }; }
 
18044
   fi
 
18045
 
 
18046
 
 
18047
 
 
18048
   if test -z "gmodule-2.0"; then
 
18049
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
18050
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
18051
   { (exit 1); exit 1; }; }
 
18052
   fi
 
18053
   if test -z "GMODULE"; then
 
18054
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
18055
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
18056
   { (exit 1); exit 1; }; }
 
18057
   fi
 
18058
 
 
18059
   ac_vmw_have_lib=0
 
18060
   ac_vmw_have_lib_func=0
 
18061
   ac_vmw_have_lib_header=0
 
18062
 
 
18063
   #
 
18064
   # First, try any user-defined CUSTOM_* flags.
 
18065
   #
 
18066
   if test -n "${CUSTOM_GMODULE_CPPFLAGS}" || test -n "${CUSTOM_GMODULE_LIBS}"; then
 
18067
      CUSTOM_GMODULE_LIBS="${CUSTOM_GMODULE_LIBS} -lgmodule-2.0"
 
18068
      if test -n ""; then
 
18069
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
18070
         CPPFLAGS="${CUSTOM_GMODULE_CPPFLAGS} $CPPFLAGS"
 
18071
 
 
18072
         if test "${ac_cv_header_+set}" = set; then
 
18073
  { echo "$as_me:$LINENO: checking for " >&5
 
18074
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
 
18075
if test "${ac_cv_header_+set}" = set; then
 
18076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18077
fi
 
18078
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
 
18079
echo "${ECHO_T}$ac_cv_header_" >&6; }
 
18080
else
 
18081
  # Is the header compilable?
 
18082
{ echo "$as_me:$LINENO: checking  usability" >&5
 
18083
echo $ECHO_N "checking  usability... $ECHO_C" >&6; }
 
18084
cat >conftest.$ac_ext <<_ACEOF
 
18085
/* confdefs.h.  */
 
18086
_ACEOF
 
18087
cat confdefs.h >>conftest.$ac_ext
 
18088
cat >>conftest.$ac_ext <<_ACEOF
 
18089
/* end confdefs.h.  */
 
18090
$ac_includes_default
 
18091
#include <>
 
18092
_ACEOF
 
18093
rm -f conftest.$ac_objext
 
18094
if { (ac_try="$ac_compile"
 
18095
case "(($ac_try" in
 
18096
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18097
  *) ac_try_echo=$ac_try;;
 
18098
esac
 
18099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18100
  (eval "$ac_compile") 2>conftest.er1
 
18101
  ac_status=$?
 
18102
  grep -v '^ *+' conftest.er1 >conftest.err
 
18103
  rm -f conftest.er1
 
18104
  cat conftest.err >&5
 
18105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18106
  (exit $ac_status); } && {
 
18107
         test -z "$ac_c_werror_flag" ||
 
18108
         test ! -s conftest.err
 
18109
       } && test -s conftest.$ac_objext; then
 
18110
  ac_header_compiler=yes
 
18111
else
 
18112
  echo "$as_me: failed program was:" >&5
 
18113
sed 's/^/| /' conftest.$ac_ext >&5
 
18114
 
 
18115
        ac_header_compiler=no
 
18116
fi
 
18117
 
 
18118
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18119
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18120
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
18121
 
 
18122
# Is the header present?
 
18123
{ echo "$as_me:$LINENO: checking  presence" >&5
 
18124
echo $ECHO_N "checking  presence... $ECHO_C" >&6; }
 
18125
cat >conftest.$ac_ext <<_ACEOF
 
18126
/* confdefs.h.  */
 
18127
_ACEOF
 
18128
cat confdefs.h >>conftest.$ac_ext
 
18129
cat >>conftest.$ac_ext <<_ACEOF
 
18130
/* end confdefs.h.  */
 
18131
#include <>
 
18132
_ACEOF
 
18133
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18134
case "(($ac_try" in
 
18135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18136
  *) ac_try_echo=$ac_try;;
 
18137
esac
 
18138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18139
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18140
  ac_status=$?
 
18141
  grep -v '^ *+' conftest.er1 >conftest.err
 
18142
  rm -f conftest.er1
 
18143
  cat conftest.err >&5
 
18144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18145
  (exit $ac_status); } >/dev/null && {
 
18146
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18147
         test ! -s conftest.err
 
18148
       }; then
 
18149
  ac_header_preproc=yes
 
18150
else
 
18151
  echo "$as_me: failed program was:" >&5
 
18152
sed 's/^/| /' conftest.$ac_ext >&5
 
18153
 
 
18154
  ac_header_preproc=no
 
18155
fi
 
18156
 
 
18157
rm -f conftest.err conftest.$ac_ext
 
18158
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18159
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
18160
 
 
18161
# So?  What about this header?
 
18162
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18163
  yes:no: )
 
18164
    { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
 
18165
echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18166
    { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
 
18167
echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
 
18168
    ac_header_preproc=yes
 
18169
    ;;
 
18170
  no:yes:* )
 
18171
    { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
 
18172
echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
 
18173
    { echo "$as_me:$LINENO: WARNING: :     check for missing prerequisite headers?" >&5
 
18174
echo "$as_me: WARNING: :     check for missing prerequisite headers?" >&2;}
 
18175
    { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
 
18176
echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
 
18177
    { echo "$as_me:$LINENO: WARNING: :     section \"Present But Cannot Be Compiled\"" >&5
 
18178
echo "$as_me: WARNING: :     section \"Present But Cannot Be Compiled\"" >&2;}
 
18179
    { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
 
18180
echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
 
18181
    { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
 
18182
echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
 
18183
    ( cat <<\_ASBOX
 
18184
## -------------------------------------------------------- ##
 
18185
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
18186
## -------------------------------------------------------- ##
 
18187
_ASBOX
 
18188
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18189
    ;;
 
18190
esac
 
18191
{ echo "$as_me:$LINENO: checking for " >&5
 
18192
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
 
18193
if test "${ac_cv_header_+set}" = set; then
 
18194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18195
else
 
18196
  ac_cv_header_=$ac_header_preproc
 
18197
fi
 
18198
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
 
18199
echo "${ECHO_T}$ac_cv_header_" >&6; }
 
18200
 
 
18201
fi
 
18202
if test $ac_cv_header_ = yes; then
 
18203
  ac_vmw_have_lib_header=1
 
18204
fi
 
18205
 
 
18206
 
 
18207
 
 
18208
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
18209
      else
 
18210
         ac_vmw_have_lib_header=1
 
18211
      fi
 
18212
 
 
18213
      # Check a specific function in the library if requested.
 
18214
      # If it hasn't, just pick a random function from libc, just to make
 
18215
      # sure the linker can find the library being tested.
 
18216
      if test $ac_vmw_have_lib_header -eq 1; then
 
18217
         if test -n ""; then
 
18218
            ac_vmw_function=
 
18219
         else
 
18220
            ac_vmw_function=strlen
 
18221
         fi
 
18222
         as_ac_Lib=`echo "ac_cv_lib_gmodule-2.0_$ac_vmw_function" | $as_tr_sh`
 
18223
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgmodule-2.0" >&5
 
18224
echo $ECHO_N "checking for $ac_vmw_function in -lgmodule-2.0... $ECHO_C" >&6; }
 
18225
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
18226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18227
else
 
18228
  ac_check_lib_save_LIBS=$LIBS
 
18229
LIBS="-lgmodule-2.0 ${CUSTOM_GMODULE_LIBS} $LIBS"
 
18230
cat >conftest.$ac_ext <<_ACEOF
 
18231
/* confdefs.h.  */
 
18232
_ACEOF
 
18233
cat confdefs.h >>conftest.$ac_ext
 
18234
cat >>conftest.$ac_ext <<_ACEOF
 
18235
/* end confdefs.h.  */
 
18236
 
 
18237
/* Override any GCC internal prototype to avoid an error.
 
18238
   Use char because int might match the return type of a GCC
 
18239
   builtin and then its argument prototype would still apply.  */
 
18240
#ifdef __cplusplus
 
18241
extern "C"
 
18242
#endif
 
18243
char $ac_vmw_function ();
 
18244
int
 
18245
main ()
 
18246
{
 
18247
return $ac_vmw_function ();
 
18248
  ;
 
18249
  return 0;
 
18250
}
 
18251
_ACEOF
 
18252
rm -f conftest.$ac_objext conftest$ac_exeext
 
18253
if { (ac_try="$ac_link"
 
18254
case "(($ac_try" in
 
18255
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18256
  *) ac_try_echo=$ac_try;;
 
18257
esac
 
18258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18259
  (eval "$ac_link") 2>conftest.er1
 
18260
  ac_status=$?
 
18261
  grep -v '^ *+' conftest.er1 >conftest.err
 
18262
  rm -f conftest.er1
 
18263
  cat conftest.err >&5
 
18264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18265
  (exit $ac_status); } && {
 
18266
         test -z "$ac_c_werror_flag" ||
 
18267
         test ! -s conftest.err
 
18268
       } && test -s conftest$ac_exeext &&
 
18269
       $as_test_x conftest$ac_exeext; then
 
18270
  eval "$as_ac_Lib=yes"
 
18271
else
 
18272
  echo "$as_me: failed program was:" >&5
 
18273
sed 's/^/| /' conftest.$ac_ext >&5
 
18274
 
 
18275
        eval "$as_ac_Lib=no"
 
18276
fi
 
18277
 
 
18278
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18279
      conftest$ac_exeext conftest.$ac_ext
 
18280
LIBS=$ac_check_lib_save_LIBS
 
18281
fi
 
18282
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
18283
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18284
echo "${ECHO_T}$ac_res" >&6; }
 
18285
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
18286
  ac_vmw_have_lib_func=1
 
18287
fi
 
18288
 
 
18289
      fi
 
18290
 
 
18291
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
18292
         GMODULE_CPPFLAGS="${CUSTOM_GMODULE_CPPFLAGS}"
 
18293
         GMODULE_LIBS="${CUSTOM_GMODULE_LIBS}"
 
18294
         ac_vmw_have_lib=1
 
18295
      fi
 
18296
   fi
 
18297
 
 
18298
   # If that didn't work, try with pkg-config.
 
18299
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gmodule-2.0"; then
 
18300
      if test -n "2.6.0"; then
 
18301
         { echo "$as_me:$LINENO: checking for gmodule-2.0 >= 2.6.0 (via pkg-config)" >&5
 
18302
echo $ECHO_N "checking for gmodule-2.0 >= 2.6.0 (via pkg-config)... $ECHO_C" >&6; }
 
18303
         if pkg-config --exists 'gmodule-2.0 >= 2.6.0'; then
 
18304
            ac_vmw_have_lib=1
 
18305
         fi
 
18306
      else
 
18307
         { echo "$as_me:$LINENO: checking for gmodule-2.0 (via pkg-config)" >&5
 
18308
echo $ECHO_N "checking for gmodule-2.0 (via pkg-config)... $ECHO_C" >&6; }
 
18309
         if pkg-config --exists 'gmodule-2.0'; then
 
18310
            ac_vmw_have_lib=1
 
18311
         fi
 
18312
      fi
 
18313
 
 
18314
      if test $ac_vmw_have_lib -eq 1; then
 
18315
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
18316
         # fails on OpenSolaris B71. So be pessimistic.
 
18317
         ac_vmw_cppflags="`pkg-config --cflags gmodule-2.0`"
 
18318
         ac_vmw_ret1=$?
 
18319
         ac_vmw_libs="`pkg-config --libs gmodule-2.0`"
 
18320
         ac_vmw_ret2=$?
 
18321
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
18322
            { echo "$as_me:$LINENO: result: yes" >&5
 
18323
echo "${ECHO_T}yes" >&6; }
 
18324
            GMODULE_CPPFLAGS="$ac_vmw_cppflags"
 
18325
            GMODULE_LIBS="$ac_vmw_libs"
 
18326
         else
 
18327
            { echo "$as_me:$LINENO: result: no" >&5
 
18328
echo "${ECHO_T}no" >&6; }
 
18329
         fi
 
18330
      else
 
18331
         { echo "$as_me:$LINENO: result: no" >&5
 
18332
echo "${ECHO_T}no" >&6; }
 
18333
      fi
 
18334
   fi
 
18335
 
 
18336
   # If we still haven't found the lib, try with the library's custom "config" script.
 
18337
   # Before checking, flush the AC_PATH_PROG cached variable.
 
18338
   unset ac_cv_path_ac_vmw_lib_cfg
 
18339
   unset ac_vmw_lib_cfg
 
18340
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
18341
      # Extract the first word of "", so it can be a program name with args.
 
18342
set dummy ; ac_word=$2
 
18343
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
18345
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
18346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18347
else
 
18348
  case $ac_vmw_lib_cfg in
 
18349
  [\\/]* | ?:[\\/]*)
 
18350
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
18351
  ;;
 
18352
  *)
 
18353
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18354
for as_dir in $PATH
 
18355
do
 
18356
  IFS=$as_save_IFS
 
18357
  test -z "$as_dir" && as_dir=.
 
18358
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18360
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
18361
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18362
    break 2
 
18363
  fi
 
18364
done
 
18365
done
 
18366
IFS=$as_save_IFS
 
18367
 
 
18368
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
18369
  ;;
 
18370
esac
 
18371
fi
 
18372
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
18373
if test -n "$ac_vmw_lib_cfg"; then
 
18374
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
18375
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
18376
else
 
18377
  { echo "$as_me:$LINENO: result: no" >&5
 
18378
echo "${ECHO_T}no" >&6; }
 
18379
fi
 
18380
 
 
18381
 
 
18382
      if test "$ac_vmw_lib_cfg" != "no"; then
 
18383
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
18384
         # so single it out here to avoid having to replicate all the rest of the
 
18385
         # logic elsewhere.
 
18386
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
18387
            GMODULE_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
18388
            GMODULE_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
18389
         else
 
18390
            GMODULE_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
18391
            GMODULE_LIBS="`$ac_vmw_lib_cfg --libs`"
 
18392
         fi
 
18393
         ac_vmw_have_lib=1
 
18394
      fi
 
18395
   fi
 
18396
 
 
18397
   # Finish by executing the user provided action. The call to "true" is needed
 
18398
   # because the actions are optional, and we need something inside the block.
 
18399
   if test $ac_vmw_have_lib -eq 1; then
 
18400
 
 
18401
 
 
18402
      true
 
18403
 
 
18404
   else
 
18405
      true
 
18406
      { { echo "$as_me:$LINENO: error: gmodule >= 2.6.0 is required." >&5
 
18407
echo "$as_me: error: gmodule >= 2.6.0 is required." >&2;}
 
18408
   { (exit 1); exit 1; }; }
 
18409
   fi
 
18410
 
 
18411
 
 
18412
 
 
18413
   if test -z "gobject-2.0"; then
 
18414
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
18415
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
18416
   { (exit 1); exit 1; }; }
 
18417
   fi
 
18418
   if test -z "GOBJECT"; then
 
18419
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
18420
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
18421
   { (exit 1); exit 1; }; }
 
18422
   fi
 
18423
 
 
18424
   ac_vmw_have_lib=0
 
18425
   ac_vmw_have_lib_func=0
 
18426
   ac_vmw_have_lib_header=0
 
18427
 
 
18428
   #
 
18429
   # First, try any user-defined CUSTOM_* flags.
 
18430
   #
 
18431
   if test -n "${CUSTOM_GOBJECT_CPPFLAGS}" || test -n "${CUSTOM_GOBJECT_LIBS}"; then
 
18432
      CUSTOM_GOBJECT_LIBS="${CUSTOM_GOBJECT_LIBS} -lgobject-2.0"
 
18433
      if test -n "glib-object.h"; then
 
18434
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
18435
         CPPFLAGS="${CUSTOM_GOBJECT_CPPFLAGS} $CPPFLAGS"
 
18436
 
 
18437
         if test "${ac_cv_header_glib_object_h+set}" = set; then
 
18438
  { echo "$as_me:$LINENO: checking for glib-object.h" >&5
 
18439
echo $ECHO_N "checking for glib-object.h... $ECHO_C" >&6; }
 
18440
if test "${ac_cv_header_glib_object_h+set}" = set; then
 
18441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18442
fi
 
18443
{ echo "$as_me:$LINENO: result: $ac_cv_header_glib_object_h" >&5
 
18444
echo "${ECHO_T}$ac_cv_header_glib_object_h" >&6; }
 
18445
else
 
18446
  # Is the header compilable?
 
18447
{ echo "$as_me:$LINENO: checking glib-object.h usability" >&5
 
18448
echo $ECHO_N "checking glib-object.h usability... $ECHO_C" >&6; }
 
18449
cat >conftest.$ac_ext <<_ACEOF
 
18450
/* confdefs.h.  */
 
18451
_ACEOF
 
18452
cat confdefs.h >>conftest.$ac_ext
 
18453
cat >>conftest.$ac_ext <<_ACEOF
 
18454
/* end confdefs.h.  */
 
18455
$ac_includes_default
 
18456
#include <glib-object.h>
 
18457
_ACEOF
 
18458
rm -f conftest.$ac_objext
 
18459
if { (ac_try="$ac_compile"
 
18460
case "(($ac_try" in
 
18461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18462
  *) ac_try_echo=$ac_try;;
 
18463
esac
 
18464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18465
  (eval "$ac_compile") 2>conftest.er1
 
18466
  ac_status=$?
 
18467
  grep -v '^ *+' conftest.er1 >conftest.err
 
18468
  rm -f conftest.er1
 
18469
  cat conftest.err >&5
 
18470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18471
  (exit $ac_status); } && {
 
18472
         test -z "$ac_c_werror_flag" ||
 
18473
         test ! -s conftest.err
 
18474
       } && test -s conftest.$ac_objext; then
 
18475
  ac_header_compiler=yes
 
18476
else
 
18477
  echo "$as_me: failed program was:" >&5
 
18478
sed 's/^/| /' conftest.$ac_ext >&5
 
18479
 
 
18480
        ac_header_compiler=no
 
18481
fi
 
18482
 
 
18483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18484
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18485
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
18486
 
 
18487
# Is the header present?
 
18488
{ echo "$as_me:$LINENO: checking glib-object.h presence" >&5
 
18489
echo $ECHO_N "checking glib-object.h presence... $ECHO_C" >&6; }
 
18490
cat >conftest.$ac_ext <<_ACEOF
 
18491
/* confdefs.h.  */
 
18492
_ACEOF
 
18493
cat confdefs.h >>conftest.$ac_ext
 
18494
cat >>conftest.$ac_ext <<_ACEOF
 
18495
/* end confdefs.h.  */
 
18496
#include <glib-object.h>
 
18497
_ACEOF
 
18498
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18499
case "(($ac_try" in
 
18500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18501
  *) ac_try_echo=$ac_try;;
 
18502
esac
 
18503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18504
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18505
  ac_status=$?
 
18506
  grep -v '^ *+' conftest.er1 >conftest.err
 
18507
  rm -f conftest.er1
 
18508
  cat conftest.err >&5
 
18509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18510
  (exit $ac_status); } >/dev/null && {
 
18511
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18512
         test ! -s conftest.err
 
18513
       }; then
 
18514
  ac_header_preproc=yes
 
18515
else
 
18516
  echo "$as_me: failed program was:" >&5
 
18517
sed 's/^/| /' conftest.$ac_ext >&5
 
18518
 
 
18519
  ac_header_preproc=no
 
18520
fi
 
18521
 
 
18522
rm -f conftest.err conftest.$ac_ext
 
18523
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18524
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
18525
 
 
18526
# So?  What about this header?
 
18527
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18528
  yes:no: )
 
18529
    { echo "$as_me:$LINENO: WARNING: glib-object.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
18530
echo "$as_me: WARNING: glib-object.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18531
    { echo "$as_me:$LINENO: WARNING: glib-object.h: proceeding with the compiler's result" >&5
 
18532
echo "$as_me: WARNING: glib-object.h: proceeding with the compiler's result" >&2;}
 
18533
    ac_header_preproc=yes
 
18534
    ;;
 
18535
  no:yes:* )
 
18536
    { echo "$as_me:$LINENO: WARNING: glib-object.h: present but cannot be compiled" >&5
 
18537
echo "$as_me: WARNING: glib-object.h: present but cannot be compiled" >&2;}
 
18538
    { echo "$as_me:$LINENO: WARNING: glib-object.h:     check for missing prerequisite headers?" >&5
 
18539
echo "$as_me: WARNING: glib-object.h:     check for missing prerequisite headers?" >&2;}
 
18540
    { echo "$as_me:$LINENO: WARNING: glib-object.h: see the Autoconf documentation" >&5
 
18541
echo "$as_me: WARNING: glib-object.h: see the Autoconf documentation" >&2;}
 
18542
    { echo "$as_me:$LINENO: WARNING: glib-object.h:     section \"Present But Cannot Be Compiled\"" >&5
 
18543
echo "$as_me: WARNING: glib-object.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
18544
    { echo "$as_me:$LINENO: WARNING: glib-object.h: proceeding with the preprocessor's result" >&5
 
18545
echo "$as_me: WARNING: glib-object.h: proceeding with the preprocessor's result" >&2;}
 
18546
    { echo "$as_me:$LINENO: WARNING: glib-object.h: in the future, the compiler will take precedence" >&5
 
18547
echo "$as_me: WARNING: glib-object.h: in the future, the compiler will take precedence" >&2;}
 
18548
    ( cat <<\_ASBOX
 
18549
## -------------------------------------------------------- ##
 
18550
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
18551
## -------------------------------------------------------- ##
 
18552
_ASBOX
 
18553
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18554
    ;;
 
18555
esac
 
18556
{ echo "$as_me:$LINENO: checking for glib-object.h" >&5
 
18557
echo $ECHO_N "checking for glib-object.h... $ECHO_C" >&6; }
 
18558
if test "${ac_cv_header_glib_object_h+set}" = set; then
 
18559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18560
else
 
18561
  ac_cv_header_glib_object_h=$ac_header_preproc
 
18562
fi
 
18563
{ echo "$as_me:$LINENO: result: $ac_cv_header_glib_object_h" >&5
 
18564
echo "${ECHO_T}$ac_cv_header_glib_object_h" >&6; }
 
18565
 
 
18566
fi
 
18567
if test $ac_cv_header_glib_object_h = yes; then
 
18568
  ac_vmw_have_lib_header=1
 
18569
fi
 
18570
 
 
18571
 
 
18572
 
 
18573
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
18574
      else
 
18575
         ac_vmw_have_lib_header=1
 
18576
      fi
 
18577
 
 
18578
      # Check a specific function in the library if requested.
 
18579
      # If it hasn't, just pick a random function from libc, just to make
 
18580
      # sure the linker can find the library being tested.
 
18581
      if test $ac_vmw_have_lib_header -eq 1; then
 
18582
         if test -n ""; then
 
18583
            ac_vmw_function=
 
18584
         else
 
18585
            ac_vmw_function=strlen
 
18586
         fi
 
18587
         as_ac_Lib=`echo "ac_cv_lib_gobject-2.0_$ac_vmw_function" | $as_tr_sh`
 
18588
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgobject-2.0" >&5
 
18589
echo $ECHO_N "checking for $ac_vmw_function in -lgobject-2.0... $ECHO_C" >&6; }
 
18590
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
18591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18592
else
 
18593
  ac_check_lib_save_LIBS=$LIBS
 
18594
LIBS="-lgobject-2.0 ${CUSTOM_GOBJECT_LIBS} $LIBS"
 
18595
cat >conftest.$ac_ext <<_ACEOF
 
18596
/* confdefs.h.  */
 
18597
_ACEOF
 
18598
cat confdefs.h >>conftest.$ac_ext
 
18599
cat >>conftest.$ac_ext <<_ACEOF
 
18600
/* end confdefs.h.  */
 
18601
 
 
18602
/* Override any GCC internal prototype to avoid an error.
 
18603
   Use char because int might match the return type of a GCC
 
18604
   builtin and then its argument prototype would still apply.  */
 
18605
#ifdef __cplusplus
 
18606
extern "C"
 
18607
#endif
 
18608
char $ac_vmw_function ();
 
18609
int
 
18610
main ()
 
18611
{
 
18612
return $ac_vmw_function ();
 
18613
  ;
 
18614
  return 0;
 
18615
}
 
18616
_ACEOF
 
18617
rm -f conftest.$ac_objext conftest$ac_exeext
 
18618
if { (ac_try="$ac_link"
 
18619
case "(($ac_try" in
 
18620
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18621
  *) ac_try_echo=$ac_try;;
 
18622
esac
 
18623
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18624
  (eval "$ac_link") 2>conftest.er1
 
18625
  ac_status=$?
 
18626
  grep -v '^ *+' conftest.er1 >conftest.err
 
18627
  rm -f conftest.er1
 
18628
  cat conftest.err >&5
 
18629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18630
  (exit $ac_status); } && {
 
18631
         test -z "$ac_c_werror_flag" ||
 
18632
         test ! -s conftest.err
 
18633
       } && test -s conftest$ac_exeext &&
 
18634
       $as_test_x conftest$ac_exeext; then
 
18635
  eval "$as_ac_Lib=yes"
 
18636
else
 
18637
  echo "$as_me: failed program was:" >&5
 
18638
sed 's/^/| /' conftest.$ac_ext >&5
 
18639
 
 
18640
        eval "$as_ac_Lib=no"
 
18641
fi
 
18642
 
 
18643
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18644
      conftest$ac_exeext conftest.$ac_ext
 
18645
LIBS=$ac_check_lib_save_LIBS
 
18646
fi
 
18647
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
18648
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
18649
echo "${ECHO_T}$ac_res" >&6; }
 
18650
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
18651
  ac_vmw_have_lib_func=1
 
18652
fi
 
18653
 
 
18654
      fi
 
18655
 
 
18656
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
18657
         GOBJECT_CPPFLAGS="${CUSTOM_GOBJECT_CPPFLAGS}"
 
18658
         GOBJECT_LIBS="${CUSTOM_GOBJECT_LIBS}"
 
18659
         ac_vmw_have_lib=1
 
18660
      fi
 
18661
   fi
 
18662
 
 
18663
   # If that didn't work, try with pkg-config.
 
18664
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gobject-2.0"; then
 
18665
      if test -n "2.6.0"; then
 
18666
         { echo "$as_me:$LINENO: checking for gobject-2.0 >= 2.6.0 (via pkg-config)" >&5
 
18667
echo $ECHO_N "checking for gobject-2.0 >= 2.6.0 (via pkg-config)... $ECHO_C" >&6; }
 
18668
         if pkg-config --exists 'gobject-2.0 >= 2.6.0'; then
 
18669
            ac_vmw_have_lib=1
 
18670
         fi
 
18671
      else
 
18672
         { echo "$as_me:$LINENO: checking for gobject-2.0 (via pkg-config)" >&5
 
18673
echo $ECHO_N "checking for gobject-2.0 (via pkg-config)... $ECHO_C" >&6; }
 
18674
         if pkg-config --exists 'gobject-2.0'; then
 
18675
            ac_vmw_have_lib=1
 
18676
         fi
 
18677
      fi
 
18678
 
 
18679
      if test $ac_vmw_have_lib -eq 1; then
 
18680
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
18681
         # fails on OpenSolaris B71. So be pessimistic.
 
18682
         ac_vmw_cppflags="`pkg-config --cflags gobject-2.0`"
 
18683
         ac_vmw_ret1=$?
 
18684
         ac_vmw_libs="`pkg-config --libs gobject-2.0`"
 
18685
         ac_vmw_ret2=$?
 
18686
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
18687
            { echo "$as_me:$LINENO: result: yes" >&5
 
18688
echo "${ECHO_T}yes" >&6; }
 
18689
            GOBJECT_CPPFLAGS="$ac_vmw_cppflags"
 
18690
            GOBJECT_LIBS="$ac_vmw_libs"
 
18691
         else
 
18692
            { echo "$as_me:$LINENO: result: no" >&5
 
18693
echo "${ECHO_T}no" >&6; }
 
18694
         fi
 
18695
      else
 
18696
         { echo "$as_me:$LINENO: result: no" >&5
 
18697
echo "${ECHO_T}no" >&6; }
 
18698
      fi
 
18699
   fi
 
18700
 
 
18701
   # If we still haven't found the lib, try with the library's custom "config" script.
 
18702
   # Before checking, flush the AC_PATH_PROG cached variable.
 
18703
   unset ac_cv_path_ac_vmw_lib_cfg
 
18704
   unset ac_vmw_lib_cfg
 
18705
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
18706
      # Extract the first word of "", so it can be a program name with args.
 
18707
set dummy ; ac_word=$2
 
18708
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
18710
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
18711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18712
else
 
18713
  case $ac_vmw_lib_cfg in
 
18714
  [\\/]* | ?:[\\/]*)
 
18715
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
18716
  ;;
 
18717
  *)
 
18718
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18719
for as_dir in $PATH
 
18720
do
 
18721
  IFS=$as_save_IFS
 
18722
  test -z "$as_dir" && as_dir=.
 
18723
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18725
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
18726
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18727
    break 2
 
18728
  fi
 
18729
done
 
18730
done
 
18731
IFS=$as_save_IFS
 
18732
 
 
18733
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
18734
  ;;
 
18735
esac
 
18736
fi
 
18737
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
18738
if test -n "$ac_vmw_lib_cfg"; then
 
18739
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
18740
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
18741
else
 
18742
  { echo "$as_me:$LINENO: result: no" >&5
 
18743
echo "${ECHO_T}no" >&6; }
 
18744
fi
 
18745
 
 
18746
 
 
18747
      if test "$ac_vmw_lib_cfg" != "no"; then
 
18748
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
18749
         # so single it out here to avoid having to replicate all the rest of the
 
18750
         # logic elsewhere.
 
18751
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
18752
            GOBJECT_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
18753
            GOBJECT_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
18754
         else
 
18755
            GOBJECT_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
18756
            GOBJECT_LIBS="`$ac_vmw_lib_cfg --libs`"
 
18757
         fi
 
18758
         ac_vmw_have_lib=1
 
18759
      fi
 
18760
   fi
 
18761
 
 
18762
   # Finish by executing the user provided action. The call to "true" is needed
 
18763
   # because the actions are optional, and we need something inside the block.
 
18764
   if test $ac_vmw_have_lib -eq 1; then
 
18765
 
 
18766
 
 
18767
      true
 
18768
 
 
18769
   else
 
18770
      true
 
18771
      { { echo "$as_me:$LINENO: error: gobject >= 2.6.0 is required." >&5
 
18772
echo "$as_me: error: gobject >= 2.6.0 is required." >&2;}
 
18773
   { (exit 1); exit 1; }; }
 
18774
   fi
 
18775
 
 
18776
 
 
18777
 
 
18778
   if test -z "gthread-2.0"; then
 
18779
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
18780
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
18781
   { (exit 1); exit 1; }; }
 
18782
   fi
 
18783
   if test -z "GTHREAD"; then
 
18784
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
18785
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
18786
   { (exit 1); exit 1; }; }
 
18787
   fi
 
18788
 
 
18789
   ac_vmw_have_lib=0
 
18790
   ac_vmw_have_lib_func=0
 
18791
   ac_vmw_have_lib_header=0
 
18792
 
 
18793
   #
 
18794
   # First, try any user-defined CUSTOM_* flags.
 
18795
   #
 
18796
   if test -n "${CUSTOM_GTHREAD_CPPFLAGS}" || test -n "${CUSTOM_GTHREAD_LIBS}"; then
 
18797
      CUSTOM_GTHREAD_LIBS="${CUSTOM_GTHREAD_LIBS} -lgthread-2.0"
 
18798
      if test -n ""; then
 
18799
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
18800
         CPPFLAGS="${CUSTOM_GTHREAD_CPPFLAGS} $CPPFLAGS"
 
18801
 
 
18802
         if test "${ac_cv_header_+set}" = set; then
 
18803
  { echo "$as_me:$LINENO: checking for " >&5
 
18804
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
 
18805
if test "${ac_cv_header_+set}" = set; then
 
18806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18807
fi
 
18808
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
 
18809
echo "${ECHO_T}$ac_cv_header_" >&6; }
 
18810
else
 
18811
  # Is the header compilable?
 
18812
{ echo "$as_me:$LINENO: checking  usability" >&5
 
18813
echo $ECHO_N "checking  usability... $ECHO_C" >&6; }
 
18814
cat >conftest.$ac_ext <<_ACEOF
 
18815
/* confdefs.h.  */
 
18816
_ACEOF
 
18817
cat confdefs.h >>conftest.$ac_ext
 
18818
cat >>conftest.$ac_ext <<_ACEOF
 
18819
/* end confdefs.h.  */
 
18820
$ac_includes_default
 
18821
#include <>
 
18822
_ACEOF
 
18823
rm -f conftest.$ac_objext
 
18824
if { (ac_try="$ac_compile"
 
18825
case "(($ac_try" in
 
18826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18827
  *) ac_try_echo=$ac_try;;
 
18828
esac
 
18829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18830
  (eval "$ac_compile") 2>conftest.er1
 
18831
  ac_status=$?
 
18832
  grep -v '^ *+' conftest.er1 >conftest.err
 
18833
  rm -f conftest.er1
 
18834
  cat conftest.err >&5
 
18835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18836
  (exit $ac_status); } && {
 
18837
         test -z "$ac_c_werror_flag" ||
 
18838
         test ! -s conftest.err
 
18839
       } && test -s conftest.$ac_objext; then
 
18840
  ac_header_compiler=yes
 
18841
else
 
18842
  echo "$as_me: failed program was:" >&5
 
18843
sed 's/^/| /' conftest.$ac_ext >&5
 
18844
 
 
18845
        ac_header_compiler=no
 
18846
fi
 
18847
 
 
18848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18849
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
18850
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
18851
 
 
18852
# Is the header present?
 
18853
{ echo "$as_me:$LINENO: checking  presence" >&5
 
18854
echo $ECHO_N "checking  presence... $ECHO_C" >&6; }
 
18855
cat >conftest.$ac_ext <<_ACEOF
 
18856
/* confdefs.h.  */
 
18857
_ACEOF
 
18858
cat confdefs.h >>conftest.$ac_ext
 
18859
cat >>conftest.$ac_ext <<_ACEOF
 
18860
/* end confdefs.h.  */
 
18861
#include <>
 
18862
_ACEOF
 
18863
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
18864
case "(($ac_try" in
 
18865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18866
  *) ac_try_echo=$ac_try;;
 
18867
esac
 
18868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18869
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
18870
  ac_status=$?
 
18871
  grep -v '^ *+' conftest.er1 >conftest.err
 
18872
  rm -f conftest.er1
 
18873
  cat conftest.err >&5
 
18874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18875
  (exit $ac_status); } >/dev/null && {
 
18876
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
18877
         test ! -s conftest.err
 
18878
       }; then
 
18879
  ac_header_preproc=yes
 
18880
else
 
18881
  echo "$as_me: failed program was:" >&5
 
18882
sed 's/^/| /' conftest.$ac_ext >&5
 
18883
 
 
18884
  ac_header_preproc=no
 
18885
fi
 
18886
 
 
18887
rm -f conftest.err conftest.$ac_ext
 
18888
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
18889
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
18890
 
 
18891
# So?  What about this header?
 
18892
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
18893
  yes:no: )
 
18894
    { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
 
18895
echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
 
18896
    { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
 
18897
echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
 
18898
    ac_header_preproc=yes
 
18899
    ;;
 
18900
  no:yes:* )
 
18901
    { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
 
18902
echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
 
18903
    { echo "$as_me:$LINENO: WARNING: :     check for missing prerequisite headers?" >&5
 
18904
echo "$as_me: WARNING: :     check for missing prerequisite headers?" >&2;}
 
18905
    { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
 
18906
echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
 
18907
    { echo "$as_me:$LINENO: WARNING: :     section \"Present But Cannot Be Compiled\"" >&5
 
18908
echo "$as_me: WARNING: :     section \"Present But Cannot Be Compiled\"" >&2;}
 
18909
    { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
 
18910
echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
 
18911
    { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
 
18912
echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
 
18913
    ( cat <<\_ASBOX
 
18914
## -------------------------------------------------------- ##
 
18915
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
18916
## -------------------------------------------------------- ##
 
18917
_ASBOX
 
18918
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
18919
    ;;
 
18920
esac
 
18921
{ echo "$as_me:$LINENO: checking for " >&5
 
18922
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
 
18923
if test "${ac_cv_header_+set}" = set; then
 
18924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18925
else
 
18926
  ac_cv_header_=$ac_header_preproc
 
18927
fi
 
18928
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
 
18929
echo "${ECHO_T}$ac_cv_header_" >&6; }
 
18930
 
 
18931
fi
 
18932
if test $ac_cv_header_ = yes; then
 
18933
  ac_vmw_have_lib_header=1
 
18934
fi
 
18935
 
 
18936
 
 
18937
 
 
18938
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
18939
      else
 
18940
         ac_vmw_have_lib_header=1
 
18941
      fi
 
18942
 
 
18943
      # Check a specific function in the library if requested.
 
18944
      # If it hasn't, just pick a random function from libc, just to make
 
18945
      # sure the linker can find the library being tested.
 
18946
      if test $ac_vmw_have_lib_header -eq 1; then
 
18947
         if test -n ""; then
 
18948
            ac_vmw_function=
 
18949
         else
 
18950
            ac_vmw_function=strlen
 
18951
         fi
 
18952
         as_ac_Lib=`echo "ac_cv_lib_gthread-2.0_$ac_vmw_function" | $as_tr_sh`
 
18953
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgthread-2.0" >&5
 
18954
echo $ECHO_N "checking for $ac_vmw_function in -lgthread-2.0... $ECHO_C" >&6; }
 
18955
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
18956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18957
else
 
18958
  ac_check_lib_save_LIBS=$LIBS
 
18959
LIBS="-lgthread-2.0 ${CUSTOM_GTHREAD_LIBS} $LIBS"
 
18960
cat >conftest.$ac_ext <<_ACEOF
 
18961
/* confdefs.h.  */
 
18962
_ACEOF
 
18963
cat confdefs.h >>conftest.$ac_ext
 
18964
cat >>conftest.$ac_ext <<_ACEOF
 
18965
/* end confdefs.h.  */
 
18966
 
 
18967
/* Override any GCC internal prototype to avoid an error.
 
18968
   Use char because int might match the return type of a GCC
 
18969
   builtin and then its argument prototype would still apply.  */
 
18970
#ifdef __cplusplus
 
18971
extern "C"
 
18972
#endif
 
18973
char $ac_vmw_function ();
 
18974
int
 
18975
main ()
 
18976
{
 
18977
return $ac_vmw_function ();
 
18978
  ;
 
18979
  return 0;
 
18980
}
 
18981
_ACEOF
 
18982
rm -f conftest.$ac_objext conftest$ac_exeext
 
18983
if { (ac_try="$ac_link"
 
18984
case "(($ac_try" in
 
18985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18986
  *) ac_try_echo=$ac_try;;
 
18987
esac
 
18988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18989
  (eval "$ac_link") 2>conftest.er1
 
18990
  ac_status=$?
 
18991
  grep -v '^ *+' conftest.er1 >conftest.err
 
18992
  rm -f conftest.er1
 
18993
  cat conftest.err >&5
 
18994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18995
  (exit $ac_status); } && {
 
18996
         test -z "$ac_c_werror_flag" ||
 
18997
         test ! -s conftest.err
 
18998
       } && test -s conftest$ac_exeext &&
 
18999
       $as_test_x conftest$ac_exeext; then
 
19000
  eval "$as_ac_Lib=yes"
 
19001
else
 
19002
  echo "$as_me: failed program was:" >&5
 
19003
sed 's/^/| /' conftest.$ac_ext >&5
 
19004
 
 
19005
        eval "$as_ac_Lib=no"
 
19006
fi
 
19007
 
 
19008
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19009
      conftest$ac_exeext conftest.$ac_ext
 
19010
LIBS=$ac_check_lib_save_LIBS
 
19011
fi
 
19012
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
19013
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19014
echo "${ECHO_T}$ac_res" >&6; }
 
19015
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
19016
  ac_vmw_have_lib_func=1
 
19017
fi
 
19018
 
 
19019
      fi
 
19020
 
 
19021
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
19022
         GTHREAD_CPPFLAGS="${CUSTOM_GTHREAD_CPPFLAGS}"
 
19023
         GTHREAD_LIBS="${CUSTOM_GTHREAD_LIBS}"
 
19024
         ac_vmw_have_lib=1
 
19025
      fi
 
19026
   fi
 
19027
 
 
19028
   # If that didn't work, try with pkg-config.
 
19029
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gthread-2.0"; then
 
19030
      if test -n "2.6.0"; then
 
19031
         { echo "$as_me:$LINENO: checking for gthread-2.0 >= 2.6.0 (via pkg-config)" >&5
 
19032
echo $ECHO_N "checking for gthread-2.0 >= 2.6.0 (via pkg-config)... $ECHO_C" >&6; }
 
19033
         if pkg-config --exists 'gthread-2.0 >= 2.6.0'; then
 
19034
            ac_vmw_have_lib=1
 
19035
         fi
 
19036
      else
 
19037
         { echo "$as_me:$LINENO: checking for gthread-2.0 (via pkg-config)" >&5
 
19038
echo $ECHO_N "checking for gthread-2.0 (via pkg-config)... $ECHO_C" >&6; }
 
19039
         if pkg-config --exists 'gthread-2.0'; then
 
19040
            ac_vmw_have_lib=1
 
19041
         fi
 
19042
      fi
 
19043
 
 
19044
      if test $ac_vmw_have_lib -eq 1; then
 
19045
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
19046
         # fails on OpenSolaris B71. So be pessimistic.
 
19047
         ac_vmw_cppflags="`pkg-config --cflags gthread-2.0`"
 
19048
         ac_vmw_ret1=$?
 
19049
         ac_vmw_libs="`pkg-config --libs gthread-2.0`"
 
19050
         ac_vmw_ret2=$?
 
19051
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
19052
            { echo "$as_me:$LINENO: result: yes" >&5
 
19053
echo "${ECHO_T}yes" >&6; }
 
19054
            GTHREAD_CPPFLAGS="$ac_vmw_cppflags"
 
19055
            GTHREAD_LIBS="$ac_vmw_libs"
 
19056
         else
 
19057
            { echo "$as_me:$LINENO: result: no" >&5
 
19058
echo "${ECHO_T}no" >&6; }
 
19059
         fi
 
19060
      else
 
19061
         { echo "$as_me:$LINENO: result: no" >&5
 
19062
echo "${ECHO_T}no" >&6; }
 
19063
      fi
 
19064
   fi
 
19065
 
 
19066
   # If we still haven't found the lib, try with the library's custom "config" script.
 
19067
   # Before checking, flush the AC_PATH_PROG cached variable.
 
19068
   unset ac_cv_path_ac_vmw_lib_cfg
 
19069
   unset ac_vmw_lib_cfg
 
19070
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
19071
      # Extract the first word of "", so it can be a program name with args.
 
19072
set dummy ; ac_word=$2
 
19073
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19075
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
19076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19077
else
 
19078
  case $ac_vmw_lib_cfg in
 
19079
  [\\/]* | ?:[\\/]*)
 
19080
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
19081
  ;;
 
19082
  *)
 
19083
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19084
for as_dir in $PATH
 
19085
do
 
19086
  IFS=$as_save_IFS
 
19087
  test -z "$as_dir" && as_dir=.
 
19088
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19089
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19090
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
19091
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19092
    break 2
 
19093
  fi
 
19094
done
 
19095
done
 
19096
IFS=$as_save_IFS
 
19097
 
 
19098
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
19099
  ;;
 
19100
esac
 
19101
fi
 
19102
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
19103
if test -n "$ac_vmw_lib_cfg"; then
 
19104
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
19105
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
19106
else
 
19107
  { echo "$as_me:$LINENO: result: no" >&5
 
19108
echo "${ECHO_T}no" >&6; }
 
19109
fi
 
19110
 
 
19111
 
 
19112
      if test "$ac_vmw_lib_cfg" != "no"; then
 
19113
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
19114
         # so single it out here to avoid having to replicate all the rest of the
 
19115
         # logic elsewhere.
 
19116
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
19117
            GTHREAD_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
19118
            GTHREAD_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
19119
         else
 
19120
            GTHREAD_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
19121
            GTHREAD_LIBS="`$ac_vmw_lib_cfg --libs`"
 
19122
         fi
 
19123
         ac_vmw_have_lib=1
 
19124
      fi
 
19125
   fi
 
19126
 
 
19127
   # Finish by executing the user provided action. The call to "true" is needed
 
19128
   # because the actions are optional, and we need something inside the block.
 
19129
   if test $ac_vmw_have_lib -eq 1; then
 
19130
 
 
19131
 
 
19132
      true
 
19133
 
 
19134
   else
 
19135
      true
 
19136
      { { echo "$as_me:$LINENO: error: glib >= 2.6.0 is required." >&5
 
19137
echo "$as_me: error: glib >= 2.6.0 is required." >&2;}
 
19138
   { (exit 1); exit 1; }; }
 
19139
   fi
 
19140
 
 
19141
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
 
19142
set dummy glib-genmarshal; ac_word=$2
 
19143
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19145
if test "${ac_cv_prog_have_genmarshal+set}" = set; then
 
19146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19147
else
 
19148
  if test -n "$have_genmarshal"; then
 
19149
  ac_cv_prog_have_genmarshal="$have_genmarshal" # Let the user override the test.
 
19150
else
 
19151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19152
for as_dir in $PATH
 
19153
do
 
19154
  IFS=$as_save_IFS
 
19155
  test -z "$as_dir" && as_dir=.
 
19156
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19157
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19158
    ac_cv_prog_have_genmarshal="yes"
 
19159
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19160
    break 2
 
19161
  fi
 
19162
done
 
19163
done
 
19164
IFS=$as_save_IFS
 
19165
 
 
19166
  test -z "$ac_cv_prog_have_genmarshal" && ac_cv_prog_have_genmarshal="no"
 
19167
fi
 
19168
fi
 
19169
have_genmarshal=$ac_cv_prog_have_genmarshal
 
19170
if test -n "$have_genmarshal"; then
 
19171
  { echo "$as_me:$LINENO: result: $have_genmarshal" >&5
 
19172
echo "${ECHO_T}$have_genmarshal" >&6; }
 
19173
else
 
19174
  { echo "$as_me:$LINENO: result: no" >&5
 
19175
echo "${ECHO_T}no" >&6; }
 
19176
fi
 
19177
 
 
19178
 
 
19179
 
 
19180
if test "$have_genmarshal" != "yes"; then
 
19181
   { { echo "$as_me:$LINENO: error: glib-genmarshal is required; make sure it's available in your path." >&5
 
19182
echo "$as_me: error: glib-genmarshal is required; make sure it's available in your path." >&2;}
 
19183
   { (exit 1); exit 1; }; }
 
19184
fi
 
19185
 
 
19186
#
 
19187
# Check for fuse.
 
19188
#
 
19189
 
 
19190
 
 
19191
   if test -z "fuse"; then
 
19192
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
19193
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
19194
   { (exit 1); exit 1; }; }
 
19195
   fi
 
19196
   if test -z "FUSE"; then
 
19197
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
19198
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
19199
   { (exit 1); exit 1; }; }
 
19200
   fi
 
19201
 
 
19202
   ac_vmw_have_lib=0
 
19203
   ac_vmw_have_lib_func=0
 
19204
   ac_vmw_have_lib_header=0
 
19205
 
 
19206
   #
 
19207
   # First, try any user-defined CUSTOM_* flags.
 
19208
   #
 
19209
   if test -n "${CUSTOM_FUSE_CPPFLAGS}" || test -n "${CUSTOM_FUSE_LIBS}"; then
 
19210
      CUSTOM_FUSE_LIBS="${CUSTOM_FUSE_LIBS} -lfuse"
 
19211
      if test -n "fuse.h"; then
 
19212
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
19213
         CPPFLAGS="${CUSTOM_FUSE_CPPFLAGS} $CPPFLAGS"
 
19214
 
 
19215
         if test "${ac_cv_header_fuse_h+set}" = set; then
 
19216
  { echo "$as_me:$LINENO: checking for fuse.h" >&5
 
19217
echo $ECHO_N "checking for fuse.h... $ECHO_C" >&6; }
 
19218
if test "${ac_cv_header_fuse_h+set}" = set; then
 
19219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19220
fi
 
19221
{ echo "$as_me:$LINENO: result: $ac_cv_header_fuse_h" >&5
 
19222
echo "${ECHO_T}$ac_cv_header_fuse_h" >&6; }
 
19223
else
 
19224
  # Is the header compilable?
 
19225
{ echo "$as_me:$LINENO: checking fuse.h usability" >&5
 
19226
echo $ECHO_N "checking fuse.h usability... $ECHO_C" >&6; }
 
19227
cat >conftest.$ac_ext <<_ACEOF
 
19228
/* confdefs.h.  */
 
19229
_ACEOF
 
19230
cat confdefs.h >>conftest.$ac_ext
 
19231
cat >>conftest.$ac_ext <<_ACEOF
 
19232
/* end confdefs.h.  */
 
19233
$ac_includes_default
 
19234
#include <fuse.h>
 
19235
_ACEOF
 
19236
rm -f conftest.$ac_objext
 
19237
if { (ac_try="$ac_compile"
 
19238
case "(($ac_try" in
 
19239
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19240
  *) ac_try_echo=$ac_try;;
 
19241
esac
 
19242
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19243
  (eval "$ac_compile") 2>conftest.er1
 
19244
  ac_status=$?
 
19245
  grep -v '^ *+' conftest.er1 >conftest.err
 
19246
  rm -f conftest.er1
 
19247
  cat conftest.err >&5
 
19248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19249
  (exit $ac_status); } && {
 
19250
         test -z "$ac_c_werror_flag" ||
 
19251
         test ! -s conftest.err
 
19252
       } && test -s conftest.$ac_objext; then
 
19253
  ac_header_compiler=yes
 
19254
else
 
19255
  echo "$as_me: failed program was:" >&5
 
19256
sed 's/^/| /' conftest.$ac_ext >&5
 
19257
 
 
19258
        ac_header_compiler=no
 
19259
fi
 
19260
 
 
19261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19262
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19263
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
19264
 
 
19265
# Is the header present?
 
19266
{ echo "$as_me:$LINENO: checking fuse.h presence" >&5
 
19267
echo $ECHO_N "checking fuse.h presence... $ECHO_C" >&6; }
 
19268
cat >conftest.$ac_ext <<_ACEOF
 
19269
/* confdefs.h.  */
 
19270
_ACEOF
 
19271
cat confdefs.h >>conftest.$ac_ext
 
19272
cat >>conftest.$ac_ext <<_ACEOF
 
19273
/* end confdefs.h.  */
 
19274
#include <fuse.h>
 
19275
_ACEOF
 
19276
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19277
case "(($ac_try" in
 
19278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19279
  *) ac_try_echo=$ac_try;;
 
19280
esac
 
19281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19282
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19283
  ac_status=$?
 
19284
  grep -v '^ *+' conftest.er1 >conftest.err
 
19285
  rm -f conftest.er1
 
19286
  cat conftest.err >&5
 
19287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19288
  (exit $ac_status); } >/dev/null && {
 
19289
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19290
         test ! -s conftest.err
 
19291
       }; then
 
19292
  ac_header_preproc=yes
 
19293
else
 
19294
  echo "$as_me: failed program was:" >&5
 
19295
sed 's/^/| /' conftest.$ac_ext >&5
 
19296
 
 
19297
  ac_header_preproc=no
 
19298
fi
 
19299
 
 
19300
rm -f conftest.err conftest.$ac_ext
 
19301
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19302
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
19303
 
 
19304
# So?  What about this header?
 
19305
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19306
  yes:no: )
 
19307
    { echo "$as_me:$LINENO: WARNING: fuse.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
19308
echo "$as_me: WARNING: fuse.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19309
    { echo "$as_me:$LINENO: WARNING: fuse.h: proceeding with the compiler's result" >&5
 
19310
echo "$as_me: WARNING: fuse.h: proceeding with the compiler's result" >&2;}
 
19311
    ac_header_preproc=yes
 
19312
    ;;
 
19313
  no:yes:* )
 
19314
    { echo "$as_me:$LINENO: WARNING: fuse.h: present but cannot be compiled" >&5
 
19315
echo "$as_me: WARNING: fuse.h: present but cannot be compiled" >&2;}
 
19316
    { echo "$as_me:$LINENO: WARNING: fuse.h:     check for missing prerequisite headers?" >&5
 
19317
echo "$as_me: WARNING: fuse.h:     check for missing prerequisite headers?" >&2;}
 
19318
    { echo "$as_me:$LINENO: WARNING: fuse.h: see the Autoconf documentation" >&5
 
19319
echo "$as_me: WARNING: fuse.h: see the Autoconf documentation" >&2;}
 
19320
    { echo "$as_me:$LINENO: WARNING: fuse.h:     section \"Present But Cannot Be Compiled\"" >&5
 
19321
echo "$as_me: WARNING: fuse.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19322
    { echo "$as_me:$LINENO: WARNING: fuse.h: proceeding with the preprocessor's result" >&5
 
19323
echo "$as_me: WARNING: fuse.h: proceeding with the preprocessor's result" >&2;}
 
19324
    { echo "$as_me:$LINENO: WARNING: fuse.h: in the future, the compiler will take precedence" >&5
 
19325
echo "$as_me: WARNING: fuse.h: in the future, the compiler will take precedence" >&2;}
 
19326
    ( cat <<\_ASBOX
 
19327
## -------------------------------------------------------- ##
 
19328
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
19329
## -------------------------------------------------------- ##
 
19330
_ASBOX
 
19331
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
19332
    ;;
 
19333
esac
 
19334
{ echo "$as_me:$LINENO: checking for fuse.h" >&5
 
19335
echo $ECHO_N "checking for fuse.h... $ECHO_C" >&6; }
 
19336
if test "${ac_cv_header_fuse_h+set}" = set; then
 
19337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19338
else
 
19339
  ac_cv_header_fuse_h=$ac_header_preproc
 
19340
fi
 
19341
{ echo "$as_me:$LINENO: result: $ac_cv_header_fuse_h" >&5
 
19342
echo "${ECHO_T}$ac_cv_header_fuse_h" >&6; }
 
19343
 
 
19344
fi
 
19345
if test $ac_cv_header_fuse_h = yes; then
 
19346
  ac_vmw_have_lib_header=1
 
19347
fi
 
19348
 
 
19349
 
 
19350
 
 
19351
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
19352
      else
 
19353
         ac_vmw_have_lib_header=1
 
19354
      fi
 
19355
 
 
19356
      # Check a specific function in the library if requested.
 
19357
      # If it hasn't, just pick a random function from libc, just to make
 
19358
      # sure the linker can find the library being tested.
 
19359
      if test $ac_vmw_have_lib_header -eq 1; then
 
19360
         if test -n "fuse_main"; then
 
19361
            ac_vmw_function=fuse_main
 
19362
         else
 
19363
            ac_vmw_function=strlen
 
19364
         fi
 
19365
         as_ac_Lib=`echo "ac_cv_lib_fuse_$ac_vmw_function" | $as_tr_sh`
 
19366
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lfuse" >&5
 
19367
echo $ECHO_N "checking for $ac_vmw_function in -lfuse... $ECHO_C" >&6; }
 
19368
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
19369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19370
else
 
19371
  ac_check_lib_save_LIBS=$LIBS
 
19372
LIBS="-lfuse ${CUSTOM_FUSE_LIBS} $LIBS"
 
19373
cat >conftest.$ac_ext <<_ACEOF
 
19374
/* confdefs.h.  */
 
19375
_ACEOF
 
19376
cat confdefs.h >>conftest.$ac_ext
 
19377
cat >>conftest.$ac_ext <<_ACEOF
 
19378
/* end confdefs.h.  */
 
19379
 
 
19380
/* Override any GCC internal prototype to avoid an error.
 
19381
   Use char because int might match the return type of a GCC
 
19382
   builtin and then its argument prototype would still apply.  */
 
19383
#ifdef __cplusplus
 
19384
extern "C"
 
19385
#endif
 
19386
char $ac_vmw_function ();
 
19387
int
 
19388
main ()
 
19389
{
 
19390
return $ac_vmw_function ();
 
19391
  ;
 
19392
  return 0;
 
19393
}
 
19394
_ACEOF
 
19395
rm -f conftest.$ac_objext conftest$ac_exeext
 
19396
if { (ac_try="$ac_link"
 
19397
case "(($ac_try" in
 
19398
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19399
  *) ac_try_echo=$ac_try;;
 
19400
esac
 
19401
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19402
  (eval "$ac_link") 2>conftest.er1
 
19403
  ac_status=$?
 
19404
  grep -v '^ *+' conftest.er1 >conftest.err
 
19405
  rm -f conftest.er1
 
19406
  cat conftest.err >&5
 
19407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19408
  (exit $ac_status); } && {
 
19409
         test -z "$ac_c_werror_flag" ||
 
19410
         test ! -s conftest.err
 
19411
       } && test -s conftest$ac_exeext &&
 
19412
       $as_test_x conftest$ac_exeext; then
 
19413
  eval "$as_ac_Lib=yes"
 
19414
else
 
19415
  echo "$as_me: failed program was:" >&5
 
19416
sed 's/^/| /' conftest.$ac_ext >&5
 
19417
 
 
19418
        eval "$as_ac_Lib=no"
 
19419
fi
 
19420
 
 
19421
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19422
      conftest$ac_exeext conftest.$ac_ext
 
19423
LIBS=$ac_check_lib_save_LIBS
 
19424
fi
 
19425
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
19426
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19427
echo "${ECHO_T}$ac_res" >&6; }
 
19428
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
19429
  ac_vmw_have_lib_func=1
 
19430
fi
 
19431
 
 
19432
      fi
 
19433
 
 
19434
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
19435
         FUSE_CPPFLAGS="${CUSTOM_FUSE_CPPFLAGS}"
 
19436
         FUSE_LIBS="${CUSTOM_FUSE_LIBS}"
 
19437
         ac_vmw_have_lib=1
 
19438
      fi
 
19439
   fi
 
19440
 
 
19441
   # If that didn't work, try with pkg-config.
 
19442
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "fuse"; then
 
19443
      if test -n ""; then
 
19444
         { echo "$as_me:$LINENO: checking for fuse >=  (via pkg-config)" >&5
 
19445
echo $ECHO_N "checking for fuse >=  (via pkg-config)... $ECHO_C" >&6; }
 
19446
         if pkg-config --exists 'fuse >= '; then
 
19447
            ac_vmw_have_lib=1
 
19448
         fi
 
19449
      else
 
19450
         { echo "$as_me:$LINENO: checking for fuse (via pkg-config)" >&5
 
19451
echo $ECHO_N "checking for fuse (via pkg-config)... $ECHO_C" >&6; }
 
19452
         if pkg-config --exists 'fuse'; then
 
19453
            ac_vmw_have_lib=1
 
19454
         fi
 
19455
      fi
 
19456
 
 
19457
      if test $ac_vmw_have_lib -eq 1; then
 
19458
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
19459
         # fails on OpenSolaris B71. So be pessimistic.
 
19460
         ac_vmw_cppflags="`pkg-config --cflags fuse`"
 
19461
         ac_vmw_ret1=$?
 
19462
         ac_vmw_libs="`pkg-config --libs fuse`"
 
19463
         ac_vmw_ret2=$?
 
19464
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
19465
            { echo "$as_me:$LINENO: result: yes" >&5
 
19466
echo "${ECHO_T}yes" >&6; }
 
19467
            FUSE_CPPFLAGS="$ac_vmw_cppflags"
 
19468
            FUSE_LIBS="$ac_vmw_libs"
 
19469
         else
 
19470
            { echo "$as_me:$LINENO: result: no" >&5
 
19471
echo "${ECHO_T}no" >&6; }
 
19472
         fi
 
19473
      else
 
19474
         { echo "$as_me:$LINENO: result: no" >&5
 
19475
echo "${ECHO_T}no" >&6; }
 
19476
      fi
 
19477
   fi
 
19478
 
 
19479
   # If we still haven't found the lib, try with the library's custom "config" script.
 
19480
   # Before checking, flush the AC_PATH_PROG cached variable.
 
19481
   unset ac_cv_path_ac_vmw_lib_cfg
 
19482
   unset ac_vmw_lib_cfg
 
19483
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
19484
      # Extract the first word of "", so it can be a program name with args.
 
19485
set dummy ; ac_word=$2
 
19486
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19487
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19488
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
19489
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19490
else
 
19491
  case $ac_vmw_lib_cfg in
 
19492
  [\\/]* | ?:[\\/]*)
 
19493
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
19494
  ;;
 
19495
  *)
 
19496
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19497
for as_dir in $PATH
 
19498
do
 
19499
  IFS=$as_save_IFS
 
19500
  test -z "$as_dir" && as_dir=.
 
19501
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19502
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19503
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
19504
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19505
    break 2
 
19506
  fi
 
19507
done
 
19508
done
 
19509
IFS=$as_save_IFS
 
19510
 
 
19511
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
19512
  ;;
 
19513
esac
 
19514
fi
 
19515
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
19516
if test -n "$ac_vmw_lib_cfg"; then
 
19517
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
19518
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
19519
else
 
19520
  { echo "$as_me:$LINENO: result: no" >&5
 
19521
echo "${ECHO_T}no" >&6; }
 
19522
fi
 
19523
 
 
19524
 
 
19525
      if test "$ac_vmw_lib_cfg" != "no"; then
 
19526
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
19527
         # so single it out here to avoid having to replicate all the rest of the
 
19528
         # logic elsewhere.
 
19529
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
19530
            FUSE_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
19531
            FUSE_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
19532
         else
 
19533
            FUSE_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
19534
            FUSE_LIBS="`$ac_vmw_lib_cfg --libs`"
 
19535
         fi
 
19536
         ac_vmw_have_lib=1
 
19537
      fi
 
19538
   fi
 
19539
 
 
19540
   # Finish by executing the user provided action. The call to "true" is needed
 
19541
   # because the actions are optional, and we need something inside the block.
 
19542
   if test $ac_vmw_have_lib -eq 1; then
 
19543
 
 
19544
 
 
19545
      true
 
19546
      have_fuse=yes
 
19547
   else
 
19548
      true
 
19549
      have_fuse=no;
 
19550
                  { echo "$as_me:$LINENO: WARNING: Fuse is missing, vmblock-fuse will be disabled." >&5
 
19551
echo "$as_me: WARNING: Fuse is missing, vmblock-fuse will be disabled." >&2;}
 
19552
   fi
 
19553
 
 
19554
 
17338
19555
# If the user explicitly disables X11, then don't try to detect the X-related libraries
17339
19556
if test "$have_x" = "disabled"; then
17340
19557
   enable_multimon="no"
17542
19759
   { (exit 1); exit 1; }; }
17543
19760
fi
17544
19761
 
 
19762
   else
 
19763
      if test "$enable_unity" != "no"; then
 
19764
         { echo "$as_me:$LINENO: WARNING: Disabling Unity due to --disable-multimon." >&5
 
19765
echo "$as_me: WARNING: Disabling Unity due to --disable-multimon." >&2;}
 
19766
         enable_unity="no"
 
19767
      fi
17545
19768
   fi
17546
19769
 
17547
19770
   { echo "$as_me:$LINENO: checking for XRenderQueryVersion in -lXrender" >&5
17839
20062
           # Note that we look for uriFreeQueryListA because it's a relatively
17840
20063
           # new symbol that our code needs (it isn't present in the uriparser
17841
20064
           # that shipped with Ubuntu Hardy).
17842
 
           ORIGINAL_LDFLAGS="$LDFLAGS"
17843
 
           LDFLAGS="$CUSTOM_URIPARSER_LIBS $LDFLAGS"
17844
 
           { echo "$as_me:$LINENO: checking for uriFreeQueryListA in -luriparser" >&5
17845
 
echo $ECHO_N "checking for uriFreeQueryListA in -luriparser... $ECHO_C" >&6; }
17846
 
if test "${ac_cv_lib_uriparser_uriFreeQueryListA+set}" = set; then
17847
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17848
 
else
17849
 
  ac_check_lib_save_LIBS=$LIBS
17850
 
LIBS="-luriparser  $LIBS"
17851
 
cat >conftest.$ac_ext <<_ACEOF
17852
 
/* confdefs.h.  */
17853
 
_ACEOF
17854
 
cat confdefs.h >>conftest.$ac_ext
17855
 
cat >>conftest.$ac_ext <<_ACEOF
17856
 
/* end confdefs.h.  */
17857
 
 
17858
 
/* Override any GCC internal prototype to avoid an error.
17859
 
   Use char because int might match the return type of a GCC
17860
 
   builtin and then its argument prototype would still apply.  */
17861
 
#ifdef __cplusplus
17862
 
extern "C"
17863
 
#endif
17864
 
char uriFreeQueryListA ();
17865
 
int
17866
 
main ()
17867
 
{
17868
 
return uriFreeQueryListA ();
17869
 
  ;
17870
 
  return 0;
17871
 
}
17872
 
_ACEOF
17873
 
rm -f conftest.$ac_objext conftest$ac_exeext
17874
 
if { (ac_try="$ac_link"
17875
 
case "(($ac_try" in
17876
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877
 
  *) ac_try_echo=$ac_try;;
17878
 
esac
17879
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880
 
  (eval "$ac_link") 2>conftest.er1
17881
 
  ac_status=$?
17882
 
  grep -v '^ *+' conftest.er1 >conftest.err
17883
 
  rm -f conftest.er1
17884
 
  cat conftest.err >&5
17885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886
 
  (exit $ac_status); } && {
17887
 
         test -z "$ac_c_werror_flag" ||
17888
 
         test ! -s conftest.err
17889
 
       } && test -s conftest$ac_exeext &&
17890
 
       $as_test_x conftest$ac_exeext; then
17891
 
  ac_cv_lib_uriparser_uriFreeQueryListA=yes
17892
 
else
17893
 
  echo "$as_me: failed program was:" >&5
17894
 
sed 's/^/| /' conftest.$ac_ext >&5
17895
 
 
17896
 
        ac_cv_lib_uriparser_uriFreeQueryListA=no
17897
 
fi
17898
 
 
17899
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17900
 
      conftest$ac_exeext conftest.$ac_ext
17901
 
LIBS=$ac_check_lib_save_LIBS
17902
 
fi
17903
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_uriparser_uriFreeQueryListA" >&5
17904
 
echo "${ECHO_T}$ac_cv_lib_uriparser_uriFreeQueryListA" >&6; }
17905
 
if test $ac_cv_lib_uriparser_uriFreeQueryListA = yes; then
17906
 
  if test -n "$CUSTOM_URIPARSER_LIBS"; then
17907
 
                       URIPARSER_LIBS="$CUSTOM_URIPARSER_LIBS"
17908
 
               else
17909
 
                       URIPARSER_LIBS="-luriparser"
17910
 
               fi
17911
 
else
17912
 
  { { echo "$as_me:$LINENO: error: uriparser library not found or is too old. Please configure without Unity (using --disable-unity) or install the liburiparser devel package." >&5
17913
 
echo "$as_me: error: uriparser library not found or is too old. Please configure without Unity (using --disable-unity) or install the liburiparser devel package." >&2;}
17914
 
   { (exit 1); exit 1; }; }
17915
 
fi
17916
 
 
17917
 
           LDFLAGS="$ORIGINAL_LDFLAGS"
17918
 
 
17919
 
           if test -n "$CUSTOM_URIPARSER_CPPFLAGS"; then
17920
 
                   URIPARSER_CPPFLAGS="$CUSTOM_URIPARSER_CPPFLAGS"
17921
 
           else
17922
 
                   # XXX: No pkg-config and no uriparser-config means we need to
17923
 
                   # hard-code a sensible default.
17924
 
                   URIPARSER_CPPFLAGS="-I/usr/include/uriparser"
 
20065
           if test -z "$CUSTOM_URIPARSER_CPPFLAGS"; then
 
20066
              # XXX: No pkg-config and no uriparser-config means we need to
 
20067
              # hard-code a sensible default.
 
20068
              CUSTOM_URIPARSER_CPPFLAGS="-I/usr/include/uriparser"
17925
20069
           fi
17926
 
           ORIGINAL_CPPFLAGS="$CPPFLAGS"
17927
 
           CPPFLAGS="$URIPARSER_CPPFLAGS $CPPFLAGS"
17928
 
           if test "${ac_cv_header_Uri_h+set}" = set; then
 
20070
 
 
20071
 
 
20072
   if test -z "uriparser"; then
 
20073
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
20074
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
20075
   { (exit 1); exit 1; }; }
 
20076
   fi
 
20077
   if test -z "URIPARSER"; then
 
20078
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
20079
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
20080
   { (exit 1); exit 1; }; }
 
20081
   fi
 
20082
 
 
20083
   ac_vmw_have_lib=0
 
20084
   ac_vmw_have_lib_func=0
 
20085
   ac_vmw_have_lib_header=0
 
20086
 
 
20087
   #
 
20088
   # First, try any user-defined CUSTOM_* flags.
 
20089
   #
 
20090
   if test -n "${CUSTOM_URIPARSER_CPPFLAGS}" || test -n "${CUSTOM_URIPARSER_LIBS}"; then
 
20091
      CUSTOM_URIPARSER_LIBS="${CUSTOM_URIPARSER_LIBS} -luriparser"
 
20092
      if test -n "Uri.h"; then
 
20093
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
20094
         CPPFLAGS="${CUSTOM_URIPARSER_CPPFLAGS} $CPPFLAGS"
 
20095
 
 
20096
         if test "${ac_cv_header_Uri_h+set}" = set; then
17929
20097
  { echo "$as_me:$LINENO: checking for Uri.h" >&5
17930
20098
echo $ECHO_N "checking for Uri.h... $ECHO_C" >&6; }
17931
20099
if test "${ac_cv_header_Uri_h+set}" = set; then
18056
20224
 
18057
20225
fi
18058
20226
if test $ac_cv_header_Uri_h = yes; then
18059
 
  :
18060
 
else
18061
 
  { { echo "$as_me:$LINENO: error: uriparser headers not found. Please configure without Unity (using --disable-unity) or install the liburiparser devel package" >&5
18062
 
echo "$as_me: error: uriparser headers not found. Please configure without Unity (using --disable-unity) or install the liburiparser devel package" >&2;}
18063
 
   { (exit 1); exit 1; }; }
18064
 
fi
18065
 
 
18066
 
 
18067
 
           CPPFLAGS="$ORIGINAL_CPPFLAGS"
18068
 
 
18069
 
           # Check for libpng using pkg-config, or barring that, using
18070
 
           # libpng-config.
18071
 
           if test "$HAVE_PKG_CONFIG" = "yes"; then
18072
 
              { echo "$as_me:$LINENO: checking for libpng (via pkg-config)" >&5
18073
 
echo $ECHO_N "checking for libpng (via pkg-config)... $ECHO_C" >&6; }
18074
 
              if pkg-config --exists libpng12; then
18075
 
                      LIBPNG_CPPFLAGS="`pkg-config --cflags libpng12`"
18076
 
                      LIBPNG_LIBS="`pkg-config --libs libpng12`"
18077
 
                      { echo "$as_me:$LINENO: result: yes" >&5
18078
 
echo "${ECHO_T}yes" >&6; }
18079
 
              else
18080
 
                      { echo "$as_me:$LINENO: result: no" >&5
18081
 
echo "${ECHO_T}no" >&6; }
18082
 
              fi
18083
 
           else
18084
 
              # Extract the first word of "libpng-config", so it can be a program name with args.
 
20227
  ac_vmw_have_lib_header=1
 
20228
fi
 
20229
 
 
20230
 
 
20231
 
 
20232
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
20233
      else
 
20234
         ac_vmw_have_lib_header=1
 
20235
      fi
 
20236
 
 
20237
      # Check a specific function in the library if requested.
 
20238
      # If it hasn't, just pick a random function from libc, just to make
 
20239
      # sure the linker can find the library being tested.
 
20240
      if test $ac_vmw_have_lib_header -eq 1; then
 
20241
         if test -n "uriFreeQueryListA"; then
 
20242
            ac_vmw_function=uriFreeQueryListA
 
20243
         else
 
20244
            ac_vmw_function=strlen
 
20245
         fi
 
20246
         as_ac_Lib=`echo "ac_cv_lib_uriparser_$ac_vmw_function" | $as_tr_sh`
 
20247
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -luriparser" >&5
 
20248
echo $ECHO_N "checking for $ac_vmw_function in -luriparser... $ECHO_C" >&6; }
 
20249
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
20250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20251
else
 
20252
  ac_check_lib_save_LIBS=$LIBS
 
20253
LIBS="-luriparser ${CUSTOM_URIPARSER_LIBS} $LIBS"
 
20254
cat >conftest.$ac_ext <<_ACEOF
 
20255
/* confdefs.h.  */
 
20256
_ACEOF
 
20257
cat confdefs.h >>conftest.$ac_ext
 
20258
cat >>conftest.$ac_ext <<_ACEOF
 
20259
/* end confdefs.h.  */
 
20260
 
 
20261
/* Override any GCC internal prototype to avoid an error.
 
20262
   Use char because int might match the return type of a GCC
 
20263
   builtin and then its argument prototype would still apply.  */
 
20264
#ifdef __cplusplus
 
20265
extern "C"
 
20266
#endif
 
20267
char $ac_vmw_function ();
 
20268
int
 
20269
main ()
 
20270
{
 
20271
return $ac_vmw_function ();
 
20272
  ;
 
20273
  return 0;
 
20274
}
 
20275
_ACEOF
 
20276
rm -f conftest.$ac_objext conftest$ac_exeext
 
20277
if { (ac_try="$ac_link"
 
20278
case "(($ac_try" in
 
20279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20280
  *) ac_try_echo=$ac_try;;
 
20281
esac
 
20282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20283
  (eval "$ac_link") 2>conftest.er1
 
20284
  ac_status=$?
 
20285
  grep -v '^ *+' conftest.er1 >conftest.err
 
20286
  rm -f conftest.er1
 
20287
  cat conftest.err >&5
 
20288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20289
  (exit $ac_status); } && {
 
20290
         test -z "$ac_c_werror_flag" ||
 
20291
         test ! -s conftest.err
 
20292
       } && test -s conftest$ac_exeext &&
 
20293
       $as_test_x conftest$ac_exeext; then
 
20294
  eval "$as_ac_Lib=yes"
 
20295
else
 
20296
  echo "$as_me: failed program was:" >&5
 
20297
sed 's/^/| /' conftest.$ac_ext >&5
 
20298
 
 
20299
        eval "$as_ac_Lib=no"
 
20300
fi
 
20301
 
 
20302
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20303
      conftest$ac_exeext conftest.$ac_ext
 
20304
LIBS=$ac_check_lib_save_LIBS
 
20305
fi
 
20306
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
20307
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20308
echo "${ECHO_T}$ac_res" >&6; }
 
20309
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
20310
  ac_vmw_have_lib_func=1
 
20311
fi
 
20312
 
 
20313
      fi
 
20314
 
 
20315
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
20316
         URIPARSER_CPPFLAGS="${CUSTOM_URIPARSER_CPPFLAGS}"
 
20317
         URIPARSER_LIBS="${CUSTOM_URIPARSER_LIBS}"
 
20318
         ac_vmw_have_lib=1
 
20319
      fi
 
20320
   fi
 
20321
 
 
20322
   # If that didn't work, try with pkg-config.
 
20323
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
 
20324
      if test -n ""; then
 
20325
         { echo "$as_me:$LINENO: checking for  >=  (via pkg-config)" >&5
 
20326
echo $ECHO_N "checking for  >=  (via pkg-config)... $ECHO_C" >&6; }
 
20327
         if pkg-config --exists ' >= '; then
 
20328
            ac_vmw_have_lib=1
 
20329
         fi
 
20330
      else
 
20331
         { echo "$as_me:$LINENO: checking for  (via pkg-config)" >&5
 
20332
echo $ECHO_N "checking for  (via pkg-config)... $ECHO_C" >&6; }
 
20333
         if pkg-config --exists ''; then
 
20334
            ac_vmw_have_lib=1
 
20335
         fi
 
20336
      fi
 
20337
 
 
20338
      if test $ac_vmw_have_lib -eq 1; then
 
20339
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
20340
         # fails on OpenSolaris B71. So be pessimistic.
 
20341
         ac_vmw_cppflags="`pkg-config --cflags `"
 
20342
         ac_vmw_ret1=$?
 
20343
         ac_vmw_libs="`pkg-config --libs `"
 
20344
         ac_vmw_ret2=$?
 
20345
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
20346
            { echo "$as_me:$LINENO: result: yes" >&5
 
20347
echo "${ECHO_T}yes" >&6; }
 
20348
            URIPARSER_CPPFLAGS="$ac_vmw_cppflags"
 
20349
            URIPARSER_LIBS="$ac_vmw_libs"
 
20350
         else
 
20351
            { echo "$as_me:$LINENO: result: no" >&5
 
20352
echo "${ECHO_T}no" >&6; }
 
20353
         fi
 
20354
      else
 
20355
         { echo "$as_me:$LINENO: result: no" >&5
 
20356
echo "${ECHO_T}no" >&6; }
 
20357
      fi
 
20358
   fi
 
20359
 
 
20360
   # If we still haven't found the lib, try with the library's custom "config" script.
 
20361
   # Before checking, flush the AC_PATH_PROG cached variable.
 
20362
   unset ac_cv_path_ac_vmw_lib_cfg
 
20363
   unset ac_vmw_lib_cfg
 
20364
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
20365
      # Extract the first word of "", so it can be a program name with args.
 
20366
set dummy ; ac_word=$2
 
20367
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20368
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20369
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
20370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20371
else
 
20372
  case $ac_vmw_lib_cfg in
 
20373
  [\\/]* | ?:[\\/]*)
 
20374
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
20375
  ;;
 
20376
  *)
 
20377
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20378
for as_dir in $PATH
 
20379
do
 
20380
  IFS=$as_save_IFS
 
20381
  test -z "$as_dir" && as_dir=.
 
20382
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20383
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20384
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
20385
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20386
    break 2
 
20387
  fi
 
20388
done
 
20389
done
 
20390
IFS=$as_save_IFS
 
20391
 
 
20392
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
20393
  ;;
 
20394
esac
 
20395
fi
 
20396
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
20397
if test -n "$ac_vmw_lib_cfg"; then
 
20398
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
20399
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
20400
else
 
20401
  { echo "$as_me:$LINENO: result: no" >&5
 
20402
echo "${ECHO_T}no" >&6; }
 
20403
fi
 
20404
 
 
20405
 
 
20406
      if test "$ac_vmw_lib_cfg" != "no"; then
 
20407
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
20408
         # so single it out here to avoid having to replicate all the rest of the
 
20409
         # logic elsewhere.
 
20410
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
20411
            URIPARSER_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
20412
            URIPARSER_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
20413
         else
 
20414
            URIPARSER_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
20415
            URIPARSER_LIBS="`$ac_vmw_lib_cfg --libs`"
 
20416
         fi
 
20417
         ac_vmw_have_lib=1
 
20418
      fi
 
20419
   fi
 
20420
 
 
20421
   # Finish by executing the user provided action. The call to "true" is needed
 
20422
   # because the actions are optional, and we need something inside the block.
 
20423
   if test $ac_vmw_have_lib -eq 1; then
 
20424
 
 
20425
 
 
20426
      true
 
20427
 
 
20428
   else
 
20429
      true
 
20430
      { { echo "$as_me:$LINENO: error: uriparser library not found or is too old. Please configure without Unity (using --disable-unity) or install the liburiparser devel package." >&5
 
20431
echo "$as_me: error: uriparser library not found or is too old. Please configure without Unity (using --disable-unity) or install the liburiparser devel package." >&2;}
 
20432
   { (exit 1); exit 1; }; }
 
20433
   fi
 
20434
 
 
20435
 
 
20436
           # Check for libpng.
 
20437
 
 
20438
 
 
20439
   if test -z "png12"; then
 
20440
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
20441
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
20442
   { (exit 1); exit 1; }; }
 
20443
   fi
 
20444
   if test -z "LIBPNG"; then
 
20445
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
20446
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
20447
   { (exit 1); exit 1; }; }
 
20448
   fi
 
20449
 
 
20450
   ac_vmw_have_lib=0
 
20451
   ac_vmw_have_lib_func=0
 
20452
   ac_vmw_have_lib_header=0
 
20453
 
 
20454
   #
 
20455
   # First, try any user-defined CUSTOM_* flags.
 
20456
   #
 
20457
   if test -n "${CUSTOM_LIBPNG_CPPFLAGS}" || test -n "${CUSTOM_LIBPNG_LIBS}"; then
 
20458
      CUSTOM_LIBPNG_LIBS="${CUSTOM_LIBPNG_LIBS} -lpng12"
 
20459
      if test -n "png.h"; then
 
20460
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
20461
         CPPFLAGS="${CUSTOM_LIBPNG_CPPFLAGS} $CPPFLAGS"
 
20462
 
 
20463
         if test "${ac_cv_header_png_h+set}" = set; then
 
20464
  { echo "$as_me:$LINENO: checking for png.h" >&5
 
20465
echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
 
20466
if test "${ac_cv_header_png_h+set}" = set; then
 
20467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20468
fi
 
20469
{ echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
20470
echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
 
20471
else
 
20472
  # Is the header compilable?
 
20473
{ echo "$as_me:$LINENO: checking png.h usability" >&5
 
20474
echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
 
20475
cat >conftest.$ac_ext <<_ACEOF
 
20476
/* confdefs.h.  */
 
20477
_ACEOF
 
20478
cat confdefs.h >>conftest.$ac_ext
 
20479
cat >>conftest.$ac_ext <<_ACEOF
 
20480
/* end confdefs.h.  */
 
20481
$ac_includes_default
 
20482
#include <png.h>
 
20483
_ACEOF
 
20484
rm -f conftest.$ac_objext
 
20485
if { (ac_try="$ac_compile"
 
20486
case "(($ac_try" in
 
20487
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20488
  *) ac_try_echo=$ac_try;;
 
20489
esac
 
20490
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20491
  (eval "$ac_compile") 2>conftest.er1
 
20492
  ac_status=$?
 
20493
  grep -v '^ *+' conftest.er1 >conftest.err
 
20494
  rm -f conftest.er1
 
20495
  cat conftest.err >&5
 
20496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20497
  (exit $ac_status); } && {
 
20498
         test -z "$ac_c_werror_flag" ||
 
20499
         test ! -s conftest.err
 
20500
       } && test -s conftest.$ac_objext; then
 
20501
  ac_header_compiler=yes
 
20502
else
 
20503
  echo "$as_me: failed program was:" >&5
 
20504
sed 's/^/| /' conftest.$ac_ext >&5
 
20505
 
 
20506
        ac_header_compiler=no
 
20507
fi
 
20508
 
 
20509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20510
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20511
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20512
 
 
20513
# Is the header present?
 
20514
{ echo "$as_me:$LINENO: checking png.h presence" >&5
 
20515
echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
 
20516
cat >conftest.$ac_ext <<_ACEOF
 
20517
/* confdefs.h.  */
 
20518
_ACEOF
 
20519
cat confdefs.h >>conftest.$ac_ext
 
20520
cat >>conftest.$ac_ext <<_ACEOF
 
20521
/* end confdefs.h.  */
 
20522
#include <png.h>
 
20523
_ACEOF
 
20524
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20525
case "(($ac_try" in
 
20526
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20527
  *) ac_try_echo=$ac_try;;
 
20528
esac
 
20529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20530
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20531
  ac_status=$?
 
20532
  grep -v '^ *+' conftest.er1 >conftest.err
 
20533
  rm -f conftest.er1
 
20534
  cat conftest.err >&5
 
20535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20536
  (exit $ac_status); } >/dev/null && {
 
20537
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20538
         test ! -s conftest.err
 
20539
       }; then
 
20540
  ac_header_preproc=yes
 
20541
else
 
20542
  echo "$as_me: failed program was:" >&5
 
20543
sed 's/^/| /' conftest.$ac_ext >&5
 
20544
 
 
20545
  ac_header_preproc=no
 
20546
fi
 
20547
 
 
20548
rm -f conftest.err conftest.$ac_ext
 
20549
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20550
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20551
 
 
20552
# So?  What about this header?
 
20553
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20554
  yes:no: )
 
20555
    { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20556
echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20557
    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
 
20558
echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
 
20559
    ac_header_preproc=yes
 
20560
    ;;
 
20561
  no:yes:* )
 
20562
    { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
 
20563
echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
 
20564
    { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
 
20565
echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
 
20566
    { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
 
20567
echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
 
20568
    { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20569
echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20570
    { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
 
20571
echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
 
20572
    { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
 
20573
echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
 
20574
    ( cat <<\_ASBOX
 
20575
## -------------------------------------------------------- ##
 
20576
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
20577
## -------------------------------------------------------- ##
 
20578
_ASBOX
 
20579
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20580
    ;;
 
20581
esac
 
20582
{ echo "$as_me:$LINENO: checking for png.h" >&5
 
20583
echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
 
20584
if test "${ac_cv_header_png_h+set}" = set; then
 
20585
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20586
else
 
20587
  ac_cv_header_png_h=$ac_header_preproc
 
20588
fi
 
20589
{ echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
 
20590
echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
 
20591
 
 
20592
fi
 
20593
if test $ac_cv_header_png_h = yes; then
 
20594
  ac_vmw_have_lib_header=1
 
20595
fi
 
20596
 
 
20597
 
 
20598
 
 
20599
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
20600
      else
 
20601
         ac_vmw_have_lib_header=1
 
20602
      fi
 
20603
 
 
20604
      # Check a specific function in the library if requested.
 
20605
      # If it hasn't, just pick a random function from libc, just to make
 
20606
      # sure the linker can find the library being tested.
 
20607
      if test $ac_vmw_have_lib_header -eq 1; then
 
20608
         if test -n "png_access_version_number"; then
 
20609
            ac_vmw_function=png_access_version_number
 
20610
         else
 
20611
            ac_vmw_function=strlen
 
20612
         fi
 
20613
         as_ac_Lib=`echo "ac_cv_lib_png12_$ac_vmw_function" | $as_tr_sh`
 
20614
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lpng12" >&5
 
20615
echo $ECHO_N "checking for $ac_vmw_function in -lpng12... $ECHO_C" >&6; }
 
20616
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
20617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20618
else
 
20619
  ac_check_lib_save_LIBS=$LIBS
 
20620
LIBS="-lpng12 ${CUSTOM_LIBPNG_LIBS} $LIBS"
 
20621
cat >conftest.$ac_ext <<_ACEOF
 
20622
/* confdefs.h.  */
 
20623
_ACEOF
 
20624
cat confdefs.h >>conftest.$ac_ext
 
20625
cat >>conftest.$ac_ext <<_ACEOF
 
20626
/* end confdefs.h.  */
 
20627
 
 
20628
/* Override any GCC internal prototype to avoid an error.
 
20629
   Use char because int might match the return type of a GCC
 
20630
   builtin and then its argument prototype would still apply.  */
 
20631
#ifdef __cplusplus
 
20632
extern "C"
 
20633
#endif
 
20634
char $ac_vmw_function ();
 
20635
int
 
20636
main ()
 
20637
{
 
20638
return $ac_vmw_function ();
 
20639
  ;
 
20640
  return 0;
 
20641
}
 
20642
_ACEOF
 
20643
rm -f conftest.$ac_objext conftest$ac_exeext
 
20644
if { (ac_try="$ac_link"
 
20645
case "(($ac_try" in
 
20646
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20647
  *) ac_try_echo=$ac_try;;
 
20648
esac
 
20649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20650
  (eval "$ac_link") 2>conftest.er1
 
20651
  ac_status=$?
 
20652
  grep -v '^ *+' conftest.er1 >conftest.err
 
20653
  rm -f conftest.er1
 
20654
  cat conftest.err >&5
 
20655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20656
  (exit $ac_status); } && {
 
20657
         test -z "$ac_c_werror_flag" ||
 
20658
         test ! -s conftest.err
 
20659
       } && test -s conftest$ac_exeext &&
 
20660
       $as_test_x conftest$ac_exeext; then
 
20661
  eval "$as_ac_Lib=yes"
 
20662
else
 
20663
  echo "$as_me: failed program was:" >&5
 
20664
sed 's/^/| /' conftest.$ac_ext >&5
 
20665
 
 
20666
        eval "$as_ac_Lib=no"
 
20667
fi
 
20668
 
 
20669
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20670
      conftest$ac_exeext conftest.$ac_ext
 
20671
LIBS=$ac_check_lib_save_LIBS
 
20672
fi
 
20673
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
20674
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20675
echo "${ECHO_T}$ac_res" >&6; }
 
20676
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
20677
  ac_vmw_have_lib_func=1
 
20678
fi
 
20679
 
 
20680
      fi
 
20681
 
 
20682
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
20683
         LIBPNG_CPPFLAGS="${CUSTOM_LIBPNG_CPPFLAGS}"
 
20684
         LIBPNG_LIBS="${CUSTOM_LIBPNG_LIBS}"
 
20685
         ac_vmw_have_lib=1
 
20686
      fi
 
20687
   fi
 
20688
 
 
20689
   # If that didn't work, try with pkg-config.
 
20690
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "libpng12"; then
 
20691
      if test -n ""; then
 
20692
         { echo "$as_me:$LINENO: checking for libpng12 >=  (via pkg-config)" >&5
 
20693
echo $ECHO_N "checking for libpng12 >=  (via pkg-config)... $ECHO_C" >&6; }
 
20694
         if pkg-config --exists 'libpng12 >= '; then
 
20695
            ac_vmw_have_lib=1
 
20696
         fi
 
20697
      else
 
20698
         { echo "$as_me:$LINENO: checking for libpng12 (via pkg-config)" >&5
 
20699
echo $ECHO_N "checking for libpng12 (via pkg-config)... $ECHO_C" >&6; }
 
20700
         if pkg-config --exists 'libpng12'; then
 
20701
            ac_vmw_have_lib=1
 
20702
         fi
 
20703
      fi
 
20704
 
 
20705
      if test $ac_vmw_have_lib -eq 1; then
 
20706
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
20707
         # fails on OpenSolaris B71. So be pessimistic.
 
20708
         ac_vmw_cppflags="`pkg-config --cflags libpng12`"
 
20709
         ac_vmw_ret1=$?
 
20710
         ac_vmw_libs="`pkg-config --libs libpng12`"
 
20711
         ac_vmw_ret2=$?
 
20712
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
20713
            { echo "$as_me:$LINENO: result: yes" >&5
 
20714
echo "${ECHO_T}yes" >&6; }
 
20715
            LIBPNG_CPPFLAGS="$ac_vmw_cppflags"
 
20716
            LIBPNG_LIBS="$ac_vmw_libs"
 
20717
         else
 
20718
            { echo "$as_me:$LINENO: result: no" >&5
 
20719
echo "${ECHO_T}no" >&6; }
 
20720
         fi
 
20721
      else
 
20722
         { echo "$as_me:$LINENO: result: no" >&5
 
20723
echo "${ECHO_T}no" >&6; }
 
20724
      fi
 
20725
   fi
 
20726
 
 
20727
   # If we still haven't found the lib, try with the library's custom "config" script.
 
20728
   # Before checking, flush the AC_PATH_PROG cached variable.
 
20729
   unset ac_cv_path_ac_vmw_lib_cfg
 
20730
   unset ac_vmw_lib_cfg
 
20731
   if test $ac_vmw_have_lib -eq 0 && test -n "libpng-config"; then
 
20732
      # Extract the first word of "libpng-config", so it can be a program name with args.
18085
20733
set dummy libpng-config; ac_word=$2
18086
20734
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18087
20735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18088
 
if test "${ac_cv_path_LIBPNG_CONFIG+set}" = set; then
 
20736
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
18089
20737
  echo $ECHO_N "(cached) $ECHO_C" >&6
18090
20738
else
18091
 
  case $LIBPNG_CONFIG in
 
20739
  case $ac_vmw_lib_cfg in
18092
20740
  [\\/]* | ?:[\\/]*)
18093
 
  ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
 
20741
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18094
20742
  ;;
18095
20743
  *)
18096
20744
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18100
20748
  test -z "$as_dir" && as_dir=.
18101
20749
  for ac_exec_ext in '' $ac_executable_extensions; do
18102
20750
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18103
 
    ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20751
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18104
20752
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18105
20753
    break 2
18106
20754
  fi
18108
20756
done
18109
20757
IFS=$as_save_IFS
18110
20758
 
18111
 
  test -z "$ac_cv_path_LIBPNG_CONFIG" && ac_cv_path_LIBPNG_CONFIG="no"
 
20759
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18112
20760
  ;;
18113
20761
esac
18114
20762
fi
18115
 
LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
18116
 
if test -n "$LIBPNG_CONFIG"; then
18117
 
  { echo "$as_me:$LINENO: result: $LIBPNG_CONFIG" >&5
18118
 
echo "${ECHO_T}$LIBPNG_CONFIG" >&6; }
 
20763
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
20764
if test -n "$ac_vmw_lib_cfg"; then
 
20765
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
20766
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
18119
20767
else
18120
20768
  { echo "$as_me:$LINENO: result: no" >&5
18121
20769
echo "${ECHO_T}no" >&6; }
18122
20770
fi
18123
20771
 
18124
20772
 
18125
 
              if test "$LIBPNG_CONFIG" != "no"; then
18126
 
                      LIBPNG_CPPFLAGS="`$LIBPNG_CONFIG --cflags`"
18127
 
                      LIBPNG_LIBS="`$LIBPNG_CONFIG --libs`"
18128
 
              fi
18129
 
           fi
18130
 
           if test -z "$LIBPNG_CPPFLAGS"; then
18131
 
              { { echo "$as_me:$LINENO: error: libpng not found. Please configure without Unity (using --disable-unity) or install the libpng devel package" >&5
 
20773
      if test "$ac_vmw_lib_cfg" != "no"; then
 
20774
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
20775
         # so single it out here to avoid having to replicate all the rest of the
 
20776
         # logic elsewhere.
 
20777
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
20778
            LIBPNG_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
20779
            LIBPNG_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
20780
         else
 
20781
            LIBPNG_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
20782
            LIBPNG_LIBS="`$ac_vmw_lib_cfg --libs`"
 
20783
         fi
 
20784
         ac_vmw_have_lib=1
 
20785
      fi
 
20786
   fi
 
20787
 
 
20788
   # Finish by executing the user provided action. The call to "true" is needed
 
20789
   # because the actions are optional, and we need something inside the block.
 
20790
   if test $ac_vmw_have_lib -eq 1; then
 
20791
 
 
20792
 
 
20793
      true
 
20794
 
 
20795
   else
 
20796
      true
 
20797
      { { echo "$as_me:$LINENO: error: libpng not found. Please configure without Unity (using --disable-unity) or install the libpng devel package" >&5
18132
20798
echo "$as_me: error: libpng not found. Please configure without Unity (using --disable-unity) or install the libpng devel package" >&2;}
18133
20799
   { (exit 1); exit 1; }; }
18134
 
           fi
 
20800
   fi
 
20801
 
18135
20802
 
18136
20803
           # Check for the zlib library and headers. Like uriparser, there
18137
20804
           # isn't a pkg-config or zlib-config file.
18138
 
           ORIGINAL_LDFLAGS="$LDFLAGS"
18139
 
           LDFLAGS="$CUSTOM_ZLIB_LIBS $LDFLAGS"
18140
 
           { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
18141
 
echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
18142
 
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
18143
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18144
 
else
18145
 
  ac_check_lib_save_LIBS=$LIBS
18146
 
LIBS="-lz  $LIBS"
18147
 
cat >conftest.$ac_ext <<_ACEOF
18148
 
/* confdefs.h.  */
18149
 
_ACEOF
18150
 
cat confdefs.h >>conftest.$ac_ext
18151
 
cat >>conftest.$ac_ext <<_ACEOF
18152
 
/* end confdefs.h.  */
18153
 
 
18154
 
/* Override any GCC internal prototype to avoid an error.
18155
 
   Use char because int might match the return type of a GCC
18156
 
   builtin and then its argument prototype would still apply.  */
18157
 
#ifdef __cplusplus
18158
 
extern "C"
18159
 
#endif
18160
 
char zlibVersion ();
18161
 
int
18162
 
main ()
18163
 
{
18164
 
return zlibVersion ();
18165
 
  ;
18166
 
  return 0;
18167
 
}
18168
 
_ACEOF
18169
 
rm -f conftest.$ac_objext conftest$ac_exeext
18170
 
if { (ac_try="$ac_link"
18171
 
case "(($ac_try" in
18172
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173
 
  *) ac_try_echo=$ac_try;;
18174
 
esac
18175
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176
 
  (eval "$ac_link") 2>conftest.er1
18177
 
  ac_status=$?
18178
 
  grep -v '^ *+' conftest.er1 >conftest.err
18179
 
  rm -f conftest.er1
18180
 
  cat conftest.err >&5
18181
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182
 
  (exit $ac_status); } && {
18183
 
         test -z "$ac_c_werror_flag" ||
18184
 
         test ! -s conftest.err
18185
 
       } && test -s conftest$ac_exeext &&
18186
 
       $as_test_x conftest$ac_exeext; then
18187
 
  ac_cv_lib_z_zlibVersion=yes
18188
 
else
18189
 
  echo "$as_me: failed program was:" >&5
18190
 
sed 's/^/| /' conftest.$ac_ext >&5
18191
 
 
18192
 
        ac_cv_lib_z_zlibVersion=no
18193
 
fi
18194
 
 
18195
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18196
 
      conftest$ac_exeext conftest.$ac_ext
18197
 
LIBS=$ac_check_lib_save_LIBS
18198
 
fi
18199
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
18200
 
echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
18201
 
if test $ac_cv_lib_z_zlibVersion = yes; then
18202
 
  if test -n "$CUSTOM_ZLIB_LIBS"; then
18203
 
                       ZLIB_LIBS="$CUSTOM_ZLIB_LIBS"
18204
 
               else
18205
 
                       ZLIB_LIBS="-lz"
18206
 
               fi
18207
 
else
18208
 
  { { echo "$as_me:$LINENO: error: zlib library not found. Please configure without Unity (using --disable-unity) or install the zlib devel package." >&5
18209
 
echo "$as_me: error: zlib library not found. Please configure without Unity (using --disable-unity) or install the zlib devel package." >&2;}
18210
 
   { (exit 1); exit 1; }; }
18211
 
fi
18212
 
 
18213
 
           LDFLAGS="$ORIGINAL_LDFLAGS"
18214
 
 
18215
 
           if test -n "$CUSTOM_ZLIB_CPPFLAGS"; then
18216
 
                   ZLIB_CPPFLAGS="$CUSTOM_ZLIB_CPPFLAGS"
18217
 
           else
18218
 
                   # XXX: No pkg-config and no zlib-config means we need to
18219
 
                   # hard-code a sensible default.
18220
 
                   ZLIB_CPPFLAGS="-I/usr/include"
 
20805
           if test -z "$CUSTOM_ZLIB_CPPFLAGS"; then
 
20806
              # XXX: No pkg-config and no zlib-config means we need to
 
20807
              # hard-code a sensible default.
 
20808
              CUSTOM_ZLIB_CPPFLAGS="-I/usr/include"
18221
20809
           fi
18222
 
           ORIGINAL_CPPFLAGS="$CPPFLAGS"
18223
 
           CPPFLAGS="$ZLIB_CPPFLAGS $CPPFLAGS"
18224
 
           if test "${ac_cv_header_zlib_h+set}" = set; then
 
20810
 
 
20811
 
 
20812
   if test -z "z"; then
 
20813
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
20814
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
20815
   { (exit 1); exit 1; }; }
 
20816
   fi
 
20817
   if test -z "ZLIB"; then
 
20818
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
20819
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
20820
   { (exit 1); exit 1; }; }
 
20821
   fi
 
20822
 
 
20823
   ac_vmw_have_lib=0
 
20824
   ac_vmw_have_lib_func=0
 
20825
   ac_vmw_have_lib_header=0
 
20826
 
 
20827
   #
 
20828
   # First, try any user-defined CUSTOM_* flags.
 
20829
   #
 
20830
   if test -n "${CUSTOM_ZLIB_CPPFLAGS}" || test -n "${CUSTOM_ZLIB_LIBS}"; then
 
20831
      CUSTOM_ZLIB_LIBS="${CUSTOM_ZLIB_LIBS} -lz"
 
20832
      if test -n "zlib.h"; then
 
20833
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
20834
         CPPFLAGS="${CUSTOM_ZLIB_CPPFLAGS} $CPPFLAGS"
 
20835
 
 
20836
         if test "${ac_cv_header_zlib_h+set}" = set; then
18225
20837
  { echo "$as_me:$LINENO: checking for zlib.h" >&5
18226
20838
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
18227
20839
if test "${ac_cv_header_zlib_h+set}" = set; then
18352
20964
 
18353
20965
fi
18354
20966
if test $ac_cv_header_zlib_h = yes; then
18355
 
  :
18356
 
else
18357
 
  { { echo "$as_me:$LINENO: error: zlib headers not found. Please configure without Unity (using --disable-unity) or install the zlib devel package" >&5
18358
 
echo "$as_me: error: zlib headers not found. Please configure without Unity (using --disable-unity) or install the zlib devel package" >&2;}
 
20967
  ac_vmw_have_lib_header=1
 
20968
fi
 
20969
 
 
20970
 
 
20971
 
 
20972
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
20973
      else
 
20974
         ac_vmw_have_lib_header=1
 
20975
      fi
 
20976
 
 
20977
      # Check a specific function in the library if requested.
 
20978
      # If it hasn't, just pick a random function from libc, just to make
 
20979
      # sure the linker can find the library being tested.
 
20980
      if test $ac_vmw_have_lib_header -eq 1; then
 
20981
         if test -n "zlibVersion"; then
 
20982
            ac_vmw_function=zlibVersion
 
20983
         else
 
20984
            ac_vmw_function=strlen
 
20985
         fi
 
20986
         as_ac_Lib=`echo "ac_cv_lib_z_$ac_vmw_function" | $as_tr_sh`
 
20987
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lz" >&5
 
20988
echo $ECHO_N "checking for $ac_vmw_function in -lz... $ECHO_C" >&6; }
 
20989
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
20990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20991
else
 
20992
  ac_check_lib_save_LIBS=$LIBS
 
20993
LIBS="-lz ${CUSTOM_ZLIB_LIBS} $LIBS"
 
20994
cat >conftest.$ac_ext <<_ACEOF
 
20995
/* confdefs.h.  */
 
20996
_ACEOF
 
20997
cat confdefs.h >>conftest.$ac_ext
 
20998
cat >>conftest.$ac_ext <<_ACEOF
 
20999
/* end confdefs.h.  */
 
21000
 
 
21001
/* Override any GCC internal prototype to avoid an error.
 
21002
   Use char because int might match the return type of a GCC
 
21003
   builtin and then its argument prototype would still apply.  */
 
21004
#ifdef __cplusplus
 
21005
extern "C"
 
21006
#endif
 
21007
char $ac_vmw_function ();
 
21008
int
 
21009
main ()
 
21010
{
 
21011
return $ac_vmw_function ();
 
21012
  ;
 
21013
  return 0;
 
21014
}
 
21015
_ACEOF
 
21016
rm -f conftest.$ac_objext conftest$ac_exeext
 
21017
if { (ac_try="$ac_link"
 
21018
case "(($ac_try" in
 
21019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21020
  *) ac_try_echo=$ac_try;;
 
21021
esac
 
21022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21023
  (eval "$ac_link") 2>conftest.er1
 
21024
  ac_status=$?
 
21025
  grep -v '^ *+' conftest.er1 >conftest.err
 
21026
  rm -f conftest.er1
 
21027
  cat conftest.err >&5
 
21028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21029
  (exit $ac_status); } && {
 
21030
         test -z "$ac_c_werror_flag" ||
 
21031
         test ! -s conftest.err
 
21032
       } && test -s conftest$ac_exeext &&
 
21033
       $as_test_x conftest$ac_exeext; then
 
21034
  eval "$as_ac_Lib=yes"
 
21035
else
 
21036
  echo "$as_me: failed program was:" >&5
 
21037
sed 's/^/| /' conftest.$ac_ext >&5
 
21038
 
 
21039
        eval "$as_ac_Lib=no"
 
21040
fi
 
21041
 
 
21042
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21043
      conftest$ac_exeext conftest.$ac_ext
 
21044
LIBS=$ac_check_lib_save_LIBS
 
21045
fi
 
21046
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
21047
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21048
echo "${ECHO_T}$ac_res" >&6; }
 
21049
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
21050
  ac_vmw_have_lib_func=1
 
21051
fi
 
21052
 
 
21053
      fi
 
21054
 
 
21055
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
21056
         ZLIB_CPPFLAGS="${CUSTOM_ZLIB_CPPFLAGS}"
 
21057
         ZLIB_LIBS="${CUSTOM_ZLIB_LIBS}"
 
21058
         ac_vmw_have_lib=1
 
21059
      fi
 
21060
   fi
 
21061
 
 
21062
   # If that didn't work, try with pkg-config.
 
21063
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
 
21064
      if test -n ""; then
 
21065
         { echo "$as_me:$LINENO: checking for  >=  (via pkg-config)" >&5
 
21066
echo $ECHO_N "checking for  >=  (via pkg-config)... $ECHO_C" >&6; }
 
21067
         if pkg-config --exists ' >= '; then
 
21068
            ac_vmw_have_lib=1
 
21069
         fi
 
21070
      else
 
21071
         { echo "$as_me:$LINENO: checking for  (via pkg-config)" >&5
 
21072
echo $ECHO_N "checking for  (via pkg-config)... $ECHO_C" >&6; }
 
21073
         if pkg-config --exists ''; then
 
21074
            ac_vmw_have_lib=1
 
21075
         fi
 
21076
      fi
 
21077
 
 
21078
      if test $ac_vmw_have_lib -eq 1; then
 
21079
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
21080
         # fails on OpenSolaris B71. So be pessimistic.
 
21081
         ac_vmw_cppflags="`pkg-config --cflags `"
 
21082
         ac_vmw_ret1=$?
 
21083
         ac_vmw_libs="`pkg-config --libs `"
 
21084
         ac_vmw_ret2=$?
 
21085
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
21086
            { echo "$as_me:$LINENO: result: yes" >&5
 
21087
echo "${ECHO_T}yes" >&6; }
 
21088
            ZLIB_CPPFLAGS="$ac_vmw_cppflags"
 
21089
            ZLIB_LIBS="$ac_vmw_libs"
 
21090
         else
 
21091
            { echo "$as_me:$LINENO: result: no" >&5
 
21092
echo "${ECHO_T}no" >&6; }
 
21093
         fi
 
21094
      else
 
21095
         { echo "$as_me:$LINENO: result: no" >&5
 
21096
echo "${ECHO_T}no" >&6; }
 
21097
      fi
 
21098
   fi
 
21099
 
 
21100
   # If we still haven't found the lib, try with the library's custom "config" script.
 
21101
   # Before checking, flush the AC_PATH_PROG cached variable.
 
21102
   unset ac_cv_path_ac_vmw_lib_cfg
 
21103
   unset ac_vmw_lib_cfg
 
21104
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
21105
      # Extract the first word of "", so it can be a program name with args.
 
21106
set dummy ; ac_word=$2
 
21107
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21109
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
21110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21111
else
 
21112
  case $ac_vmw_lib_cfg in
 
21113
  [\\/]* | ?:[\\/]*)
 
21114
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
21115
  ;;
 
21116
  *)
 
21117
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21118
for as_dir in $PATH
 
21119
do
 
21120
  IFS=$as_save_IFS
 
21121
  test -z "$as_dir" && as_dir=.
 
21122
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21123
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21124
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
21125
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21126
    break 2
 
21127
  fi
 
21128
done
 
21129
done
 
21130
IFS=$as_save_IFS
 
21131
 
 
21132
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
21133
  ;;
 
21134
esac
 
21135
fi
 
21136
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
21137
if test -n "$ac_vmw_lib_cfg"; then
 
21138
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
21139
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
21140
else
 
21141
  { echo "$as_me:$LINENO: result: no" >&5
 
21142
echo "${ECHO_T}no" >&6; }
 
21143
fi
 
21144
 
 
21145
 
 
21146
      if test "$ac_vmw_lib_cfg" != "no"; then
 
21147
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
21148
         # so single it out here to avoid having to replicate all the rest of the
 
21149
         # logic elsewhere.
 
21150
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
21151
            ZLIB_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
21152
            ZLIB_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
21153
         else
 
21154
            ZLIB_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
21155
            ZLIB_LIBS="`$ac_vmw_lib_cfg --libs`"
 
21156
         fi
 
21157
         ac_vmw_have_lib=1
 
21158
      fi
 
21159
   fi
 
21160
 
 
21161
   # Finish by executing the user provided action. The call to "true" is needed
 
21162
   # because the actions are optional, and we need something inside the block.
 
21163
   if test $ac_vmw_have_lib -eq 1; then
 
21164
 
 
21165
 
 
21166
      true
 
21167
 
 
21168
   else
 
21169
      true
 
21170
      { { echo "$as_me:$LINENO: error: zlib library not found. Please configure without Unity (using --disable-unity) or install the zlib devel package." >&5
 
21171
echo "$as_me: error: zlib library not found. Please configure without Unity (using --disable-unity) or install the zlib devel package." >&2;}
18359
21172
   { (exit 1); exit 1; }; }
18360
 
fi
18361
 
 
18362
 
 
18363
 
           CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
21173
   fi
 
21174
 
18364
21175
   fi # End of library checks for Unity.
18365
21176
 
18366
 
   if test -n "$CUSTOM_GTK_CPPFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
18367
 
   # Check to see if we have some version of GTK. gtk_accel_group_add
18368
 
   # is a random function that is present in Gtk 1.2 but not Gtk
18369
 
   # 2.0. Similarly, gtk_tree_view_new is a random function in Gtk 2.0
18370
 
   # which is not present in Gtk 1.2.
18371
 
      { echo "$as_me:$LINENO: checking for gtk_accel_group_add in -lgtk" >&5
18372
 
echo $ECHO_N "checking for gtk_accel_group_add in -lgtk... $ECHO_C" >&6; }
18373
 
if test "${ac_cv_lib_gtk_gtk_accel_group_add+set}" = set; then
18374
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18375
 
else
18376
 
  ac_check_lib_save_LIBS=$LIBS
18377
 
LIBS="-lgtk $CUSTOM_GTK_LIBS $LIBS"
18378
 
cat >conftest.$ac_ext <<_ACEOF
18379
 
/* confdefs.h.  */
18380
 
_ACEOF
18381
 
cat confdefs.h >>conftest.$ac_ext
18382
 
cat >>conftest.$ac_ext <<_ACEOF
18383
 
/* end confdefs.h.  */
18384
 
 
18385
 
/* Override any GCC internal prototype to avoid an error.
18386
 
   Use char because int might match the return type of a GCC
18387
 
   builtin and then its argument prototype would still apply.  */
18388
 
#ifdef __cplusplus
18389
 
extern "C"
18390
 
#endif
18391
 
char gtk_accel_group_add ();
18392
 
int
18393
 
main ()
18394
 
{
18395
 
return gtk_accel_group_add ();
18396
 
  ;
18397
 
  return 0;
18398
 
}
18399
 
_ACEOF
18400
 
rm -f conftest.$ac_objext conftest$ac_exeext
18401
 
if { (ac_try="$ac_link"
18402
 
case "(($ac_try" in
18403
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404
 
  *) ac_try_echo=$ac_try;;
18405
 
esac
18406
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407
 
  (eval "$ac_link") 2>conftest.er1
18408
 
  ac_status=$?
18409
 
  grep -v '^ *+' conftest.er1 >conftest.err
18410
 
  rm -f conftest.er1
18411
 
  cat conftest.err >&5
18412
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413
 
  (exit $ac_status); } && {
18414
 
         test -z "$ac_c_werror_flag" ||
18415
 
         test ! -s conftest.err
18416
 
       } && test -s conftest$ac_exeext &&
18417
 
       $as_test_x conftest$ac_exeext; then
18418
 
  ac_cv_lib_gtk_gtk_accel_group_add=yes
18419
 
else
18420
 
  echo "$as_me: failed program was:" >&5
18421
 
sed 's/^/| /' conftest.$ac_ext >&5
18422
 
 
18423
 
        ac_cv_lib_gtk_gtk_accel_group_add=no
18424
 
fi
18425
 
 
18426
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18427
 
      conftest$ac_exeext conftest.$ac_ext
18428
 
LIBS=$ac_check_lib_save_LIBS
18429
 
fi
18430
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gtk_gtk_accel_group_add" >&5
18431
 
echo "${ECHO_T}$ac_cv_lib_gtk_gtk_accel_group_add" >&6; }
18432
 
if test $ac_cv_lib_gtk_gtk_accel_group_add = yes; then
18433
 
  HAVE_GTK1="yes"
18434
 
fi
18435
 
 
18436
 
      if test "$with_gtk2" != "no"; then
18437
 
         { echo "$as_me:$LINENO: checking for gtk_tree_view_new in -lgtk-x11-2.0" >&5
18438
 
echo $ECHO_N "checking for gtk_tree_view_new in -lgtk-x11-2.0... $ECHO_C" >&6; }
18439
 
if test "${ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new+set}" = set; then
18440
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18441
 
else
18442
 
  ac_check_lib_save_LIBS=$LIBS
18443
 
LIBS="-lgtk-x11-2.0 $CUSTOM_GTK_LIBS $LIBS"
18444
 
cat >conftest.$ac_ext <<_ACEOF
18445
 
/* confdefs.h.  */
18446
 
_ACEOF
18447
 
cat confdefs.h >>conftest.$ac_ext
18448
 
cat >>conftest.$ac_ext <<_ACEOF
18449
 
/* end confdefs.h.  */
18450
 
 
18451
 
/* Override any GCC internal prototype to avoid an error.
18452
 
   Use char because int might match the return type of a GCC
18453
 
   builtin and then its argument prototype would still apply.  */
18454
 
#ifdef __cplusplus
18455
 
extern "C"
18456
 
#endif
18457
 
char gtk_tree_view_new ();
18458
 
int
18459
 
main ()
18460
 
{
18461
 
return gtk_tree_view_new ();
18462
 
  ;
18463
 
  return 0;
18464
 
}
18465
 
_ACEOF
18466
 
rm -f conftest.$ac_objext conftest$ac_exeext
18467
 
if { (ac_try="$ac_link"
18468
 
case "(($ac_try" in
18469
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470
 
  *) ac_try_echo=$ac_try;;
18471
 
esac
18472
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473
 
  (eval "$ac_link") 2>conftest.er1
18474
 
  ac_status=$?
18475
 
  grep -v '^ *+' conftest.er1 >conftest.err
18476
 
  rm -f conftest.er1
18477
 
  cat conftest.err >&5
18478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479
 
  (exit $ac_status); } && {
18480
 
         test -z "$ac_c_werror_flag" ||
18481
 
         test ! -s conftest.err
18482
 
       } && test -s conftest$ac_exeext &&
18483
 
       $as_test_x conftest$ac_exeext; then
18484
 
  ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new=yes
18485
 
else
18486
 
  echo "$as_me: failed program was:" >&5
18487
 
sed 's/^/| /' conftest.$ac_ext >&5
18488
 
 
18489
 
        ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new=no
18490
 
fi
18491
 
 
18492
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18493
 
      conftest$ac_exeext conftest.$ac_ext
18494
 
LIBS=$ac_check_lib_save_LIBS
18495
 
fi
18496
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new" >&5
18497
 
echo "${ECHO_T}$ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new" >&6; }
18498
 
if test $ac_cv_lib_gtk_x11_2_0_gtk_tree_view_new = yes; then
18499
 
  HAVE_GTK2="yes"
18500
 
fi
18501
 
 
18502
 
      fi
18503
 
   fi
18504
 
 
18505
 
   # Sometimes pkg-config can find stuff that AC_CHECK_LIB can't, so we use that as well.
18506
 
   if test "$HAVE_PKG_CONFIG" = "yes"; then
18507
 
      if test "$with_gtk2" != "no"; then
18508
 
         { echo "$as_me:$LINENO: checking for Gtk+ 2.0 (via pkg-config)" >&5
18509
 
echo $ECHO_N "checking for Gtk+ 2.0 (via pkg-config)... $ECHO_C" >&6; }
18510
 
         if pkg-config --exists gtk+-2.0; then
18511
 
            HAVE_GTK2="yes"
 
21177
   # Check whether we have gtk+ 2.0.
 
21178
   if test "$with_gtk2" != "no"; then
 
21179
      # gdk_display_get_default_group (added in gtk+ 2.4.0) is function currently
 
21180
      # needed by vmware-user.
 
21181
 
 
21182
 
 
21183
   if test -z "gtk-x11-2.0"; then
 
21184
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
21185
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
21186
   { (exit 1); exit 1; }; }
 
21187
   fi
 
21188
   if test -z "GTK"; then
 
21189
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
21190
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
21191
   { (exit 1); exit 1; }; }
 
21192
   fi
 
21193
 
 
21194
   ac_vmw_have_lib=0
 
21195
   ac_vmw_have_lib_func=0
 
21196
   ac_vmw_have_lib_header=0
 
21197
 
 
21198
   #
 
21199
   # First, try any user-defined CUSTOM_* flags.
 
21200
   #
 
21201
   if test -n "${CUSTOM_GTK_CPPFLAGS}" || test -n "${CUSTOM_GTK_LIBS}"; then
 
21202
      CUSTOM_GTK_LIBS="${CUSTOM_GTK_LIBS} -lgtk-x11-2.0"
 
21203
      if test -n "gtk/gtk.h"; then
 
21204
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
21205
         CPPFLAGS="${CUSTOM_GTK_CPPFLAGS} $CPPFLAGS"
 
21206
 
 
21207
         if test "${ac_cv_header_gtk_gtk_h+set}" = set; then
 
21208
  { echo "$as_me:$LINENO: checking for gtk/gtk.h" >&5
 
21209
echo $ECHO_N "checking for gtk/gtk.h... $ECHO_C" >&6; }
 
21210
if test "${ac_cv_header_gtk_gtk_h+set}" = set; then
 
21211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21212
fi
 
21213
{ echo "$as_me:$LINENO: result: $ac_cv_header_gtk_gtk_h" >&5
 
21214
echo "${ECHO_T}$ac_cv_header_gtk_gtk_h" >&6; }
 
21215
else
 
21216
  # Is the header compilable?
 
21217
{ echo "$as_me:$LINENO: checking gtk/gtk.h usability" >&5
 
21218
echo $ECHO_N "checking gtk/gtk.h usability... $ECHO_C" >&6; }
 
21219
cat >conftest.$ac_ext <<_ACEOF
 
21220
/* confdefs.h.  */
 
21221
_ACEOF
 
21222
cat confdefs.h >>conftest.$ac_ext
 
21223
cat >>conftest.$ac_ext <<_ACEOF
 
21224
/* end confdefs.h.  */
 
21225
$ac_includes_default
 
21226
#include <gtk/gtk.h>
 
21227
_ACEOF
 
21228
rm -f conftest.$ac_objext
 
21229
if { (ac_try="$ac_compile"
 
21230
case "(($ac_try" in
 
21231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21232
  *) ac_try_echo=$ac_try;;
 
21233
esac
 
21234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21235
  (eval "$ac_compile") 2>conftest.er1
 
21236
  ac_status=$?
 
21237
  grep -v '^ *+' conftest.er1 >conftest.err
 
21238
  rm -f conftest.er1
 
21239
  cat conftest.err >&5
 
21240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21241
  (exit $ac_status); } && {
 
21242
         test -z "$ac_c_werror_flag" ||
 
21243
         test ! -s conftest.err
 
21244
       } && test -s conftest.$ac_objext; then
 
21245
  ac_header_compiler=yes
 
21246
else
 
21247
  echo "$as_me: failed program was:" >&5
 
21248
sed 's/^/| /' conftest.$ac_ext >&5
 
21249
 
 
21250
        ac_header_compiler=no
 
21251
fi
 
21252
 
 
21253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21254
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21255
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21256
 
 
21257
# Is the header present?
 
21258
{ echo "$as_me:$LINENO: checking gtk/gtk.h presence" >&5
 
21259
echo $ECHO_N "checking gtk/gtk.h presence... $ECHO_C" >&6; }
 
21260
cat >conftest.$ac_ext <<_ACEOF
 
21261
/* confdefs.h.  */
 
21262
_ACEOF
 
21263
cat confdefs.h >>conftest.$ac_ext
 
21264
cat >>conftest.$ac_ext <<_ACEOF
 
21265
/* end confdefs.h.  */
 
21266
#include <gtk/gtk.h>
 
21267
_ACEOF
 
21268
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21269
case "(($ac_try" in
 
21270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21271
  *) ac_try_echo=$ac_try;;
 
21272
esac
 
21273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21274
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21275
  ac_status=$?
 
21276
  grep -v '^ *+' conftest.er1 >conftest.err
 
21277
  rm -f conftest.er1
 
21278
  cat conftest.err >&5
 
21279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21280
  (exit $ac_status); } >/dev/null && {
 
21281
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21282
         test ! -s conftest.err
 
21283
       }; then
 
21284
  ac_header_preproc=yes
 
21285
else
 
21286
  echo "$as_me: failed program was:" >&5
 
21287
sed 's/^/| /' conftest.$ac_ext >&5
 
21288
 
 
21289
  ac_header_preproc=no
 
21290
fi
 
21291
 
 
21292
rm -f conftest.err conftest.$ac_ext
 
21293
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21294
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21295
 
 
21296
# So?  What about this header?
 
21297
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21298
  yes:no: )
 
21299
    { echo "$as_me:$LINENO: WARNING: gtk/gtk.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21300
echo "$as_me: WARNING: gtk/gtk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21301
    { echo "$as_me:$LINENO: WARNING: gtk/gtk.h: proceeding with the compiler's result" >&5
 
21302
echo "$as_me: WARNING: gtk/gtk.h: proceeding with the compiler's result" >&2;}
 
21303
    ac_header_preproc=yes
 
21304
    ;;
 
21305
  no:yes:* )
 
21306
    { echo "$as_me:$LINENO: WARNING: gtk/gtk.h: present but cannot be compiled" >&5
 
21307
echo "$as_me: WARNING: gtk/gtk.h: present but cannot be compiled" >&2;}
 
21308
    { echo "$as_me:$LINENO: WARNING: gtk/gtk.h:     check for missing prerequisite headers?" >&5
 
21309
echo "$as_me: WARNING: gtk/gtk.h:     check for missing prerequisite headers?" >&2;}
 
21310
    { echo "$as_me:$LINENO: WARNING: gtk/gtk.h: see the Autoconf documentation" >&5
 
21311
echo "$as_me: WARNING: gtk/gtk.h: see the Autoconf documentation" >&2;}
 
21312
    { echo "$as_me:$LINENO: WARNING: gtk/gtk.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21313
echo "$as_me: WARNING: gtk/gtk.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21314
    { echo "$as_me:$LINENO: WARNING: gtk/gtk.h: proceeding with the preprocessor's result" >&5
 
21315
echo "$as_me: WARNING: gtk/gtk.h: proceeding with the preprocessor's result" >&2;}
 
21316
    { echo "$as_me:$LINENO: WARNING: gtk/gtk.h: in the future, the compiler will take precedence" >&5
 
21317
echo "$as_me: WARNING: gtk/gtk.h: in the future, the compiler will take precedence" >&2;}
 
21318
    ( cat <<\_ASBOX
 
21319
## -------------------------------------------------------- ##
 
21320
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
21321
## -------------------------------------------------------- ##
 
21322
_ASBOX
 
21323
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21324
    ;;
 
21325
esac
 
21326
{ echo "$as_me:$LINENO: checking for gtk/gtk.h" >&5
 
21327
echo $ECHO_N "checking for gtk/gtk.h... $ECHO_C" >&6; }
 
21328
if test "${ac_cv_header_gtk_gtk_h+set}" = set; then
 
21329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21330
else
 
21331
  ac_cv_header_gtk_gtk_h=$ac_header_preproc
 
21332
fi
 
21333
{ echo "$as_me:$LINENO: result: $ac_cv_header_gtk_gtk_h" >&5
 
21334
echo "${ECHO_T}$ac_cv_header_gtk_gtk_h" >&6; }
 
21335
 
 
21336
fi
 
21337
if test $ac_cv_header_gtk_gtk_h = yes; then
 
21338
  ac_vmw_have_lib_header=1
 
21339
fi
 
21340
 
 
21341
 
 
21342
 
 
21343
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
21344
      else
 
21345
         ac_vmw_have_lib_header=1
 
21346
      fi
 
21347
 
 
21348
      # Check a specific function in the library if requested.
 
21349
      # If it hasn't, just pick a random function from libc, just to make
 
21350
      # sure the linker can find the library being tested.
 
21351
      if test $ac_vmw_have_lib_header -eq 1; then
 
21352
         if test -n "gdk_display_get_default_group"; then
 
21353
            ac_vmw_function=gdk_display_get_default_group
 
21354
         else
 
21355
            ac_vmw_function=strlen
 
21356
         fi
 
21357
         as_ac_Lib=`echo "ac_cv_lib_gtk-x11-2.0_$ac_vmw_function" | $as_tr_sh`
 
21358
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgtk-x11-2.0" >&5
 
21359
echo $ECHO_N "checking for $ac_vmw_function in -lgtk-x11-2.0... $ECHO_C" >&6; }
 
21360
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
21361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21362
else
 
21363
  ac_check_lib_save_LIBS=$LIBS
 
21364
LIBS="-lgtk-x11-2.0 ${CUSTOM_GTK_LIBS} $LIBS"
 
21365
cat >conftest.$ac_ext <<_ACEOF
 
21366
/* confdefs.h.  */
 
21367
_ACEOF
 
21368
cat confdefs.h >>conftest.$ac_ext
 
21369
cat >>conftest.$ac_ext <<_ACEOF
 
21370
/* end confdefs.h.  */
 
21371
 
 
21372
/* Override any GCC internal prototype to avoid an error.
 
21373
   Use char because int might match the return type of a GCC
 
21374
   builtin and then its argument prototype would still apply.  */
 
21375
#ifdef __cplusplus
 
21376
extern "C"
 
21377
#endif
 
21378
char $ac_vmw_function ();
 
21379
int
 
21380
main ()
 
21381
{
 
21382
return $ac_vmw_function ();
 
21383
  ;
 
21384
  return 0;
 
21385
}
 
21386
_ACEOF
 
21387
rm -f conftest.$ac_objext conftest$ac_exeext
 
21388
if { (ac_try="$ac_link"
 
21389
case "(($ac_try" in
 
21390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21391
  *) ac_try_echo=$ac_try;;
 
21392
esac
 
21393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21394
  (eval "$ac_link") 2>conftest.er1
 
21395
  ac_status=$?
 
21396
  grep -v '^ *+' conftest.er1 >conftest.err
 
21397
  rm -f conftest.er1
 
21398
  cat conftest.err >&5
 
21399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21400
  (exit $ac_status); } && {
 
21401
         test -z "$ac_c_werror_flag" ||
 
21402
         test ! -s conftest.err
 
21403
       } && test -s conftest$ac_exeext &&
 
21404
       $as_test_x conftest$ac_exeext; then
 
21405
  eval "$as_ac_Lib=yes"
 
21406
else
 
21407
  echo "$as_me: failed program was:" >&5
 
21408
sed 's/^/| /' conftest.$ac_ext >&5
 
21409
 
 
21410
        eval "$as_ac_Lib=no"
 
21411
fi
 
21412
 
 
21413
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21414
      conftest$ac_exeext conftest.$ac_ext
 
21415
LIBS=$ac_check_lib_save_LIBS
 
21416
fi
 
21417
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
21418
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21419
echo "${ECHO_T}$ac_res" >&6; }
 
21420
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
21421
  ac_vmw_have_lib_func=1
 
21422
fi
 
21423
 
 
21424
      fi
 
21425
 
 
21426
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
21427
         GTK_CPPFLAGS="${CUSTOM_GTK_CPPFLAGS}"
 
21428
         GTK_LIBS="${CUSTOM_GTK_LIBS}"
 
21429
         ac_vmw_have_lib=1
 
21430
      fi
 
21431
   fi
 
21432
 
 
21433
   # If that didn't work, try with pkg-config.
 
21434
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gtk+-2.0"; then
 
21435
      if test -n "2.4.0"; then
 
21436
         { echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4.0 (via pkg-config)" >&5
 
21437
echo $ECHO_N "checking for gtk+-2.0 >= 2.4.0 (via pkg-config)... $ECHO_C" >&6; }
 
21438
         if pkg-config --exists 'gtk+-2.0 >= 2.4.0'; then
 
21439
            ac_vmw_have_lib=1
 
21440
         fi
 
21441
      else
 
21442
         { echo "$as_me:$LINENO: checking for gtk+-2.0 (via pkg-config)" >&5
 
21443
echo $ECHO_N "checking for gtk+-2.0 (via pkg-config)... $ECHO_C" >&6; }
 
21444
         if pkg-config --exists 'gtk+-2.0'; then
 
21445
            ac_vmw_have_lib=1
 
21446
         fi
 
21447
      fi
 
21448
 
 
21449
      if test $ac_vmw_have_lib -eq 1; then
 
21450
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
21451
         # fails on OpenSolaris B71. So be pessimistic.
 
21452
         ac_vmw_cppflags="`pkg-config --cflags gtk+-2.0`"
 
21453
         ac_vmw_ret1=$?
 
21454
         ac_vmw_libs="`pkg-config --libs gtk+-2.0`"
 
21455
         ac_vmw_ret2=$?
 
21456
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18512
21457
            { echo "$as_me:$LINENO: result: yes" >&5
18513
21458
echo "${ECHO_T}yes" >&6; }
 
21459
            GTK_CPPFLAGS="$ac_vmw_cppflags"
 
21460
            GTK_LIBS="$ac_vmw_libs"
18514
21461
         else
18515
21462
            { echo "$as_me:$LINENO: result: no" >&5
18516
21463
echo "${ECHO_T}no" >&6; }
18517
21464
         fi
18518
 
     fi
18519
 
 
18520
 
      { echo "$as_me:$LINENO: checking for Gtk+ 1.x (via pkg-config)" >&5
18521
 
echo $ECHO_N "checking for Gtk+ 1.x (via pkg-config)... $ECHO_C" >&6; }
18522
 
      # The latter half of the test is because pkg-config's fallback
18523
 
      # to gtk-config is broken on systems such as Ubuntu that use
18524
 
      # bash-completion for unknown commands. (On Ubuntu, typing
18525
 
      # 'gtk-config' on a system that doesn't have libgtk1.2-dev
18526
 
      # installed outputs hints about using apt-get, in addition to the
18527
 
      # regular bash "command not found" message.)
18528
 
      if pkg-config --exists gtk+ \
18529
 
         && test -n "`pkg-config --libs gtk+ 2>/dev/null | grep -v '^ *$'`"; then
18530
 
         HAVE_GTK1="yes"
18531
 
         { echo "$as_me:$LINENO: result: yes" >&5
18532
 
echo "${ECHO_T}yes" >&6; }
18533
21465
      else
18534
21466
         { echo "$as_me:$LINENO: result: no" >&5
18535
21467
echo "${ECHO_T}no" >&6; }
18536
21468
      fi
18537
21469
   fi
18538
21470
 
18539
 
   if test "$HAVE_GTK1" = "yes" -o "$HAVE_GTK2" = "yes"; then
18540
 
      # This bit is to fix builds on OpenSolaris B71, where
18541
 
      # 'pkg-config --cflags gtk+-2.0' gives an error.
18542
 
      if test "$HAVE_GTK2" = "yes" -a "$HAVE_PKG_CONFIG" = "yes" \
18543
 
         && ! pkg-config --exists gtk+-2.0 \
18544
 
         && test -z "$CUSTOM_GTK_CPPFLAGS" -a -z "$CUSTOM_GTK_LIBS"; then
18545
 
         HAVE_GTK2="no"
18546
 
      fi
18547
 
 
18548
 
      if test "$HAVE_GTK2" = "yes"; then
18549
 
         # Gtk 2.0
18550
 
         GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"
18551
 
         gtkPackageName="gtk+-2.0"
18552
 
      elif test "$HAVE_GTK1" = "yes"; then
18553
 
         # Gtk 1.2
18554
 
         gtkPackageName="gtk+"
18555
 
 
18556
 
         # Unity requires Gtk 2.0.
18557
 
         if test "$enable_unity" != "no"; then
18558
 
            { { echo "$as_me:$LINENO: error: The Unity feature requires Gtk+ 2.0. Please install the Gtk+ 2.0 devel packages or configure without Unity (using --disable-unity)" >&5
18559
 
echo "$as_me: error: The Unity feature requires Gtk+ 2.0. Please install the Gtk+ 2.0 devel packages or configure without Unity (using --disable-unity)" >&2;}
18560
 
   { (exit 1); exit 1; }; }
18561
 
         fi
18562
 
      else
18563
 
      # We found Gtk+ 2.0 that turned out to have a non-working
18564
 
      # pkg-config setup, AND Gtk 1.2 wasn't installed.
18565
 
         { { echo "$as_me:$LINENO: error: The Gtk+ library installed on your system is not fully functional. Please contact your OS vendor." >&5
18566
 
echo "$as_me: error: The Gtk+ library installed on your system is not fully functional. Please contact your OS vendor." >&2;}
18567
 
   { (exit 1); exit 1; }; }
18568
 
      fi
18569
 
 
18570
 
      # Prefer flags specified, in the environment, by the user.
18571
 
      if test -n "$CUSTOM_GTK_CPPFLAGS" -o -n "$CUSTOM_GTK_LIBS"; then
18572
 
         GTK_CPPFLAGS="$GTK_CPPFLAGS $CUSTOM_GTK_CPPFLAGS"
18573
 
         GTK_LIBS="$GTK_LIBS $CUSTOM_GTK_LIBS"
18574
 
      # Use pkg-config if available and there are no user-specified flags.
18575
 
      elif test "$HAVE_PKG_CONFIG" = "yes"; then
18576
 
         GTK_CPPFLAGS="$GTK_CPPFLAGS $(pkg-config --cflags $gtkPackageName)"
18577
 
         GTK_LIBS="$GTK_LIBS $(pkg-config --libs $gtkPackageName)"
18578
 
      # Otherwise, we have a problem.
18579
 
      else
18580
 
         { { echo "$as_me:$LINENO: error: pkg-config not found. Get pkg-config or set CUSTOM_GTK_CPPFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations." >&5
18581
 
echo "$as_me: error: pkg-config not found. Get pkg-config or set CUSTOM_GTK_CPPFLAGS and CUSTOM_GTK_LIBS to specify gtk header file and library locations." >&2;}
18582
 
   { (exit 1); exit 1; }; }
18583
 
      fi
18584
 
 
18585
 
      # Check for a sufficiently new installation of Gtk 2.0. This symbol is, at
18586
 
      # the time of writing, used in vmware-user. We must perform this check
18587
 
      # after GTK_LIBS has been set up. Note: we don't actually use the
18588
 
      # resultant HAVE_NEW_GTK2 variable; it's just set so that the default
18589
 
      # action, which will append gdk-x11-2.0 to LIBS, isn't taken.
18590
 
      if test "$HAVE_GTK2" == "yes"; then
18591
 
         { echo "$as_me:$LINENO: checking for gdk_display_get_default_group in -lgdk-x11-2.0" >&5
18592
 
echo $ECHO_N "checking for gdk_display_get_default_group in -lgdk-x11-2.0... $ECHO_C" >&6; }
18593
 
if test "${ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group+set}" = set; then
 
21471
   # If we still haven't found the lib, try with the library's custom "config" script.
 
21472
   # Before checking, flush the AC_PATH_PROG cached variable.
 
21473
   unset ac_cv_path_ac_vmw_lib_cfg
 
21474
   unset ac_vmw_lib_cfg
 
21475
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
21476
      # Extract the first word of "", so it can be a program name with args.
 
21477
set dummy ; ac_word=$2
 
21478
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21479
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21480
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
18594
21481
  echo $ECHO_N "(cached) $ECHO_C" >&6
18595
21482
else
18596
 
  ac_check_lib_save_LIBS=$LIBS
18597
 
LIBS="-lgdk-x11-2.0  $LIBS"
18598
 
cat >conftest.$ac_ext <<_ACEOF
18599
 
/* confdefs.h.  */
18600
 
_ACEOF
18601
 
cat confdefs.h >>conftest.$ac_ext
18602
 
cat >>conftest.$ac_ext <<_ACEOF
18603
 
/* end confdefs.h.  */
 
21483
  case $ac_vmw_lib_cfg in
 
21484
  [\\/]* | ?:[\\/]*)
 
21485
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
21486
  ;;
 
21487
  *)
 
21488
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21489
for as_dir in $PATH
 
21490
do
 
21491
  IFS=$as_save_IFS
 
21492
  test -z "$as_dir" && as_dir=.
 
21493
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21494
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21495
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
21496
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21497
    break 2
 
21498
  fi
 
21499
done
 
21500
done
 
21501
IFS=$as_save_IFS
18604
21502
 
18605
 
/* Override any GCC internal prototype to avoid an error.
18606
 
   Use char because int might match the return type of a GCC
18607
 
   builtin and then its argument prototype would still apply.  */
18608
 
#ifdef __cplusplus
18609
 
extern "C"
18610
 
#endif
18611
 
char gdk_display_get_default_group ();
18612
 
int
18613
 
main ()
18614
 
{
18615
 
return gdk_display_get_default_group ();
18616
 
  ;
18617
 
  return 0;
18618
 
}
18619
 
_ACEOF
18620
 
rm -f conftest.$ac_objext conftest$ac_exeext
18621
 
if { (ac_try="$ac_link"
18622
 
case "(($ac_try" in
18623
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624
 
  *) ac_try_echo=$ac_try;;
 
21503
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
21504
  ;;
18625
21505
esac
18626
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627
 
  (eval "$ac_link") 2>conftest.er1
18628
 
  ac_status=$?
18629
 
  grep -v '^ *+' conftest.er1 >conftest.err
18630
 
  rm -f conftest.er1
18631
 
  cat conftest.err >&5
18632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633
 
  (exit $ac_status); } && {
18634
 
         test -z "$ac_c_werror_flag" ||
18635
 
         test ! -s conftest.err
18636
 
       } && test -s conftest$ac_exeext &&
18637
 
       $as_test_x conftest$ac_exeext; then
18638
 
  ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group=yes
18639
 
else
18640
 
  echo "$as_me: failed program was:" >&5
18641
 
sed 's/^/| /' conftest.$ac_ext >&5
18642
 
 
18643
 
        ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group=no
18644
 
fi
18645
 
 
18646
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18647
 
      conftest$ac_exeext conftest.$ac_ext
18648
 
LIBS=$ac_check_lib_save_LIBS
18649
 
fi
18650
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group" >&5
18651
 
echo "${ECHO_T}$ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group" >&6; }
18652
 
if test $ac_cv_lib_gdk_x11_2_0_gdk_display_get_default_group = yes; then
18653
 
  HAVE_NEW_GTK2="yes"
18654
 
else
18655
 
  { { echo "$as_me:$LINENO: error: Gtk 2.0 installation may be too old. Please upgrade your Gtk 2.0 packages or configure without Gtk 2.0 (using --without-gtk2)" >&5
18656
 
echo "$as_me: error: Gtk 2.0 installation may be too old. Please upgrade your Gtk 2.0 packages or configure without Gtk 2.0 (using --without-gtk2)" >&2;}
 
21506
fi
 
21507
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
21508
if test -n "$ac_vmw_lib_cfg"; then
 
21509
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
21510
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
21511
else
 
21512
  { echo "$as_me:$LINENO: result: no" >&5
 
21513
echo "${ECHO_T}no" >&6; }
 
21514
fi
 
21515
 
 
21516
 
 
21517
      if test "$ac_vmw_lib_cfg" != "no"; then
 
21518
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
21519
         # so single it out here to avoid having to replicate all the rest of the
 
21520
         # logic elsewhere.
 
21521
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
21522
            GTK_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
21523
            GTK_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
21524
         else
 
21525
            GTK_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
21526
            GTK_LIBS="`$ac_vmw_lib_cfg --libs`"
 
21527
         fi
 
21528
         ac_vmw_have_lib=1
 
21529
      fi
 
21530
   fi
 
21531
 
 
21532
   # Finish by executing the user provided action. The call to "true" is needed
 
21533
   # because the actions are optional, and we need something inside the block.
 
21534
   if test $ac_vmw_have_lib -eq 1; then
 
21535
 
 
21536
 
 
21537
      true
 
21538
      GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"
 
21539
   else
 
21540
      true
 
21541
      { { echo "$as_me:$LINENO: error: Gtk+ 2.0 library not found or too old. Please configure without Gtk+ support (using --without-gtk2) or install the Gtk+ 2.0 devel package." >&5
 
21542
echo "$as_me: error: Gtk+ 2.0 library not found or too old. Please configure without Gtk+ support (using --without-gtk2) or install the Gtk+ 2.0 devel package." >&2;}
18657
21543
   { (exit 1); exit 1; }; }
18658
 
            $GTK_LIBS
18659
 
fi
 
21544
   fi
18660
21545
 
18661
 
      fi
18662
21546
 
18663
21547
      # Unity requires libgdk_pixbuf_xlib, which most systems don't seem to
18664
21548
      # provide via "pkg-config --libs gtk+-2.0".
18733
21617
fi
18734
21618
 
18735
21619
      fi
 
21620
   fi
 
21621
 
 
21622
   #
 
21623
   # Check for gtkmm 2.4.0 or greater.
 
21624
   #
 
21625
 
 
21626
   if test "$with_gtkmm" != "no"; then
 
21627
      CUSTOM_GTKMM_CPPFLAGS="$CUSTOM_GTKMM_CPPFLAGS $GTK_CPPFLAGS"
 
21628
 
 
21629
 
 
21630
 
 
21631
   ac_ext=cpp
 
21632
ac_cpp='$CXXCPP $CPPFLAGS'
 
21633
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21634
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21635
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21636
 
 
21637
 
 
21638
 
 
21639
   if test -z "gtkmm-2.4"; then
 
21640
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
21641
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
21642
   { (exit 1); exit 1; }; }
 
21643
   fi
 
21644
   if test -z "GTKMM"; then
 
21645
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
21646
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
21647
   { (exit 1); exit 1; }; }
 
21648
   fi
 
21649
 
 
21650
   ac_vmw_have_lib=0
 
21651
   ac_vmw_have_lib_func=0
 
21652
   ac_vmw_have_lib_header=0
 
21653
 
 
21654
   #
 
21655
   # First, try any user-defined CUSTOM_* flags.
 
21656
   #
 
21657
   if test -n "${CUSTOM_GTKMM_CPPFLAGS}" || test -n "${CUSTOM_GTKMM_LIBS}"; then
 
21658
      CUSTOM_GTKMM_LIBS="${CUSTOM_GTKMM_LIBS} -lgtkmm-2.4"
 
21659
      if test -n "gtkmm.h"; then
 
21660
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
21661
         CPPFLAGS="${CUSTOM_GTKMM_CPPFLAGS} $CPPFLAGS"
 
21662
 
 
21663
         if test "${ac_cv_header_gtkmm_h+set}" = set; then
 
21664
  { echo "$as_me:$LINENO: checking for gtkmm.h" >&5
 
21665
echo $ECHO_N "checking for gtkmm.h... $ECHO_C" >&6; }
 
21666
if test "${ac_cv_header_gtkmm_h+set}" = set; then
 
21667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21668
fi
 
21669
{ echo "$as_me:$LINENO: result: $ac_cv_header_gtkmm_h" >&5
 
21670
echo "${ECHO_T}$ac_cv_header_gtkmm_h" >&6; }
 
21671
else
 
21672
  # Is the header compilable?
 
21673
{ echo "$as_me:$LINENO: checking gtkmm.h usability" >&5
 
21674
echo $ECHO_N "checking gtkmm.h usability... $ECHO_C" >&6; }
 
21675
cat >conftest.$ac_ext <<_ACEOF
 
21676
/* confdefs.h.  */
 
21677
_ACEOF
 
21678
cat confdefs.h >>conftest.$ac_ext
 
21679
cat >>conftest.$ac_ext <<_ACEOF
 
21680
/* end confdefs.h.  */
 
21681
$ac_includes_default
 
21682
#include <gtkmm.h>
 
21683
_ACEOF
 
21684
rm -f conftest.$ac_objext
 
21685
if { (ac_try="$ac_compile"
 
21686
case "(($ac_try" in
 
21687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21688
  *) ac_try_echo=$ac_try;;
 
21689
esac
 
21690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21691
  (eval "$ac_compile") 2>conftest.er1
 
21692
  ac_status=$?
 
21693
  grep -v '^ *+' conftest.er1 >conftest.err
 
21694
  rm -f conftest.er1
 
21695
  cat conftest.err >&5
 
21696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21697
  (exit $ac_status); } && {
 
21698
         test -z "$ac_cxx_werror_flag" ||
 
21699
         test ! -s conftest.err
 
21700
       } && test -s conftest.$ac_objext; then
 
21701
  ac_header_compiler=yes
 
21702
else
 
21703
  echo "$as_me: failed program was:" >&5
 
21704
sed 's/^/| /' conftest.$ac_ext >&5
 
21705
 
 
21706
        ac_header_compiler=no
 
21707
fi
 
21708
 
 
21709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21710
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21711
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21712
 
 
21713
# Is the header present?
 
21714
{ echo "$as_me:$LINENO: checking gtkmm.h presence" >&5
 
21715
echo $ECHO_N "checking gtkmm.h presence... $ECHO_C" >&6; }
 
21716
cat >conftest.$ac_ext <<_ACEOF
 
21717
/* confdefs.h.  */
 
21718
_ACEOF
 
21719
cat confdefs.h >>conftest.$ac_ext
 
21720
cat >>conftest.$ac_ext <<_ACEOF
 
21721
/* end confdefs.h.  */
 
21722
#include <gtkmm.h>
 
21723
_ACEOF
 
21724
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21725
case "(($ac_try" in
 
21726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21727
  *) ac_try_echo=$ac_try;;
 
21728
esac
 
21729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21730
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21731
  ac_status=$?
 
21732
  grep -v '^ *+' conftest.er1 >conftest.err
 
21733
  rm -f conftest.er1
 
21734
  cat conftest.err >&5
 
21735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21736
  (exit $ac_status); } >/dev/null && {
 
21737
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
21738
         test ! -s conftest.err
 
21739
       }; then
 
21740
  ac_header_preproc=yes
 
21741
else
 
21742
  echo "$as_me: failed program was:" >&5
 
21743
sed 's/^/| /' conftest.$ac_ext >&5
 
21744
 
 
21745
  ac_header_preproc=no
 
21746
fi
 
21747
 
 
21748
rm -f conftest.err conftest.$ac_ext
 
21749
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21750
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21751
 
 
21752
# So?  What about this header?
 
21753
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
21754
  yes:no: )
 
21755
    { echo "$as_me:$LINENO: WARNING: gtkmm.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21756
echo "$as_me: WARNING: gtkmm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21757
    { echo "$as_me:$LINENO: WARNING: gtkmm.h: proceeding with the compiler's result" >&5
 
21758
echo "$as_me: WARNING: gtkmm.h: proceeding with the compiler's result" >&2;}
 
21759
    ac_header_preproc=yes
 
21760
    ;;
 
21761
  no:yes:* )
 
21762
    { echo "$as_me:$LINENO: WARNING: gtkmm.h: present but cannot be compiled" >&5
 
21763
echo "$as_me: WARNING: gtkmm.h: present but cannot be compiled" >&2;}
 
21764
    { echo "$as_me:$LINENO: WARNING: gtkmm.h:     check for missing prerequisite headers?" >&5
 
21765
echo "$as_me: WARNING: gtkmm.h:     check for missing prerequisite headers?" >&2;}
 
21766
    { echo "$as_me:$LINENO: WARNING: gtkmm.h: see the Autoconf documentation" >&5
 
21767
echo "$as_me: WARNING: gtkmm.h: see the Autoconf documentation" >&2;}
 
21768
    { echo "$as_me:$LINENO: WARNING: gtkmm.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21769
echo "$as_me: WARNING: gtkmm.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21770
    { echo "$as_me:$LINENO: WARNING: gtkmm.h: proceeding with the preprocessor's result" >&5
 
21771
echo "$as_me: WARNING: gtkmm.h: proceeding with the preprocessor's result" >&2;}
 
21772
    { echo "$as_me:$LINENO: WARNING: gtkmm.h: in the future, the compiler will take precedence" >&5
 
21773
echo "$as_me: WARNING: gtkmm.h: in the future, the compiler will take precedence" >&2;}
 
21774
    ( cat <<\_ASBOX
 
21775
## -------------------------------------------------------- ##
 
21776
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
21777
## -------------------------------------------------------- ##
 
21778
_ASBOX
 
21779
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21780
    ;;
 
21781
esac
 
21782
{ echo "$as_me:$LINENO: checking for gtkmm.h" >&5
 
21783
echo $ECHO_N "checking for gtkmm.h... $ECHO_C" >&6; }
 
21784
if test "${ac_cv_header_gtkmm_h+set}" = set; then
 
21785
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21786
else
 
21787
  ac_cv_header_gtkmm_h=$ac_header_preproc
 
21788
fi
 
21789
{ echo "$as_me:$LINENO: result: $ac_cv_header_gtkmm_h" >&5
 
21790
echo "${ECHO_T}$ac_cv_header_gtkmm_h" >&6; }
 
21791
 
 
21792
fi
 
21793
if test $ac_cv_header_gtkmm_h = yes; then
 
21794
  ac_vmw_have_lib_header=1
 
21795
fi
 
21796
 
 
21797
 
 
21798
 
 
21799
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
21800
      else
 
21801
         ac_vmw_have_lib_header=1
 
21802
      fi
 
21803
 
 
21804
      # Check a specific function in the library if requested.
 
21805
      # If it hasn't, just pick a random function from libc, just to make
 
21806
      # sure the linker can find the library being tested.
 
21807
      if test $ac_vmw_have_lib_header -eq 1; then
 
21808
         if test -n ""; then
 
21809
            ac_vmw_function=
 
21810
         else
 
21811
            ac_vmw_function=strlen
 
21812
         fi
 
21813
         as_ac_Lib=`echo "ac_cv_lib_gtkmm-2.4_$ac_vmw_function" | $as_tr_sh`
 
21814
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lgtkmm-2.4" >&5
 
21815
echo $ECHO_N "checking for $ac_vmw_function in -lgtkmm-2.4... $ECHO_C" >&6; }
 
21816
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
21817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21818
else
 
21819
  ac_check_lib_save_LIBS=$LIBS
 
21820
LIBS="-lgtkmm-2.4 ${CUSTOM_GTKMM_LIBS} $LIBS"
 
21821
cat >conftest.$ac_ext <<_ACEOF
 
21822
/* confdefs.h.  */
 
21823
_ACEOF
 
21824
cat confdefs.h >>conftest.$ac_ext
 
21825
cat >>conftest.$ac_ext <<_ACEOF
 
21826
/* end confdefs.h.  */
 
21827
 
 
21828
/* Override any GCC internal prototype to avoid an error.
 
21829
   Use char because int might match the return type of a GCC
 
21830
   builtin and then its argument prototype would still apply.  */
 
21831
#ifdef __cplusplus
 
21832
extern "C"
 
21833
#endif
 
21834
char $ac_vmw_function ();
 
21835
int
 
21836
main ()
 
21837
{
 
21838
return $ac_vmw_function ();
 
21839
  ;
 
21840
  return 0;
 
21841
}
 
21842
_ACEOF
 
21843
rm -f conftest.$ac_objext conftest$ac_exeext
 
21844
if { (ac_try="$ac_link"
 
21845
case "(($ac_try" in
 
21846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21847
  *) ac_try_echo=$ac_try;;
 
21848
esac
 
21849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21850
  (eval "$ac_link") 2>conftest.er1
 
21851
  ac_status=$?
 
21852
  grep -v '^ *+' conftest.er1 >conftest.err
 
21853
  rm -f conftest.er1
 
21854
  cat conftest.err >&5
 
21855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21856
  (exit $ac_status); } && {
 
21857
         test -z "$ac_cxx_werror_flag" ||
 
21858
         test ! -s conftest.err
 
21859
       } && test -s conftest$ac_exeext &&
 
21860
       $as_test_x conftest$ac_exeext; then
 
21861
  eval "$as_ac_Lib=yes"
 
21862
else
 
21863
  echo "$as_me: failed program was:" >&5
 
21864
sed 's/^/| /' conftest.$ac_ext >&5
 
21865
 
 
21866
        eval "$as_ac_Lib=no"
 
21867
fi
 
21868
 
 
21869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21870
      conftest$ac_exeext conftest.$ac_ext
 
21871
LIBS=$ac_check_lib_save_LIBS
 
21872
fi
 
21873
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
21874
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21875
echo "${ECHO_T}$ac_res" >&6; }
 
21876
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
21877
  ac_vmw_have_lib_func=1
 
21878
fi
 
21879
 
 
21880
      fi
 
21881
 
 
21882
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
21883
         GTKMM_CPPFLAGS="${CUSTOM_GTKMM_CPPFLAGS}"
 
21884
         GTKMM_LIBS="${CUSTOM_GTKMM_LIBS}"
 
21885
         ac_vmw_have_lib=1
 
21886
      fi
 
21887
   fi
 
21888
 
 
21889
   # If that didn't work, try with pkg-config.
 
21890
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gtkmm-2.4"; then
 
21891
      if test -n "2.4.0"; then
 
21892
         { echo "$as_me:$LINENO: checking for gtkmm-2.4 >= 2.4.0 (via pkg-config)" >&5
 
21893
echo $ECHO_N "checking for gtkmm-2.4 >= 2.4.0 (via pkg-config)... $ECHO_C" >&6; }
 
21894
         if pkg-config --exists 'gtkmm-2.4 >= 2.4.0'; then
 
21895
            ac_vmw_have_lib=1
 
21896
         fi
 
21897
      else
 
21898
         { echo "$as_me:$LINENO: checking for gtkmm-2.4 (via pkg-config)" >&5
 
21899
echo $ECHO_N "checking for gtkmm-2.4 (via pkg-config)... $ECHO_C" >&6; }
 
21900
         if pkg-config --exists 'gtkmm-2.4'; then
 
21901
            ac_vmw_have_lib=1
 
21902
         fi
 
21903
      fi
 
21904
 
 
21905
      if test $ac_vmw_have_lib -eq 1; then
 
21906
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
21907
         # fails on OpenSolaris B71. So be pessimistic.
 
21908
         ac_vmw_cppflags="`pkg-config --cflags gtkmm-2.4`"
 
21909
         ac_vmw_ret1=$?
 
21910
         ac_vmw_libs="`pkg-config --libs gtkmm-2.4`"
 
21911
         ac_vmw_ret2=$?
 
21912
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
21913
            { echo "$as_me:$LINENO: result: yes" >&5
 
21914
echo "${ECHO_T}yes" >&6; }
 
21915
            GTKMM_CPPFLAGS="$ac_vmw_cppflags"
 
21916
            GTKMM_LIBS="$ac_vmw_libs"
 
21917
         else
 
21918
            { echo "$as_me:$LINENO: result: no" >&5
 
21919
echo "${ECHO_T}no" >&6; }
 
21920
         fi
 
21921
      else
 
21922
         { echo "$as_me:$LINENO: result: no" >&5
 
21923
echo "${ECHO_T}no" >&6; }
 
21924
      fi
 
21925
   fi
 
21926
 
 
21927
   # If we still haven't found the lib, try with the library's custom "config" script.
 
21928
   # Before checking, flush the AC_PATH_PROG cached variable.
 
21929
   unset ac_cv_path_ac_vmw_lib_cfg
 
21930
   unset ac_vmw_lib_cfg
 
21931
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
21932
      # Extract the first word of "", so it can be a program name with args.
 
21933
set dummy ; ac_word=$2
 
21934
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21936
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
21937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21938
else
 
21939
  case $ac_vmw_lib_cfg in
 
21940
  [\\/]* | ?:[\\/]*)
 
21941
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
21942
  ;;
 
21943
  *)
 
21944
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21945
for as_dir in $PATH
 
21946
do
 
21947
  IFS=$as_save_IFS
 
21948
  test -z "$as_dir" && as_dir=.
 
21949
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21950
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21951
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
21952
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21953
    break 2
 
21954
  fi
 
21955
done
 
21956
done
 
21957
IFS=$as_save_IFS
 
21958
 
 
21959
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
21960
  ;;
 
21961
esac
 
21962
fi
 
21963
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
21964
if test -n "$ac_vmw_lib_cfg"; then
 
21965
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
21966
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
21967
else
 
21968
  { echo "$as_me:$LINENO: result: no" >&5
 
21969
echo "${ECHO_T}no" >&6; }
 
21970
fi
 
21971
 
 
21972
 
 
21973
      if test "$ac_vmw_lib_cfg" != "no"; then
 
21974
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
21975
         # so single it out here to avoid having to replicate all the rest of the
 
21976
         # logic elsewhere.
 
21977
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
21978
            GTKMM_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
21979
            GTKMM_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
21980
         else
 
21981
            GTKMM_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
21982
            GTKMM_LIBS="`$ac_vmw_lib_cfg --libs`"
 
21983
         fi
 
21984
         ac_vmw_have_lib=1
 
21985
      fi
 
21986
   fi
 
21987
 
 
21988
   # Finish by executing the user provided action. The call to "true" is needed
 
21989
   # because the actions are optional, and we need something inside the block.
 
21990
   if test $ac_vmw_have_lib -eq 1; then
 
21991
 
 
21992
 
 
21993
      true
 
21994
      GTKMM_CPPFLAGS="$GTKMM_CPPFLAGS -DHAVE_GTKMM"
18736
21995
   else
18737
 
      { { echo "$as_me:$LINENO: error: libgtk not found. Please install the gtk devel package(s)." >&5
18738
 
echo "$as_me: error: libgtk not found. Please install the gtk devel package(s)." >&2;}
 
21996
      true
 
21997
      { { echo "$as_me:$LINENO: error: gtkmm library not found. Please install the libgtkmm devel package(s), or re-configure using --without-gtkmm." >&5
 
21998
echo "$as_me: error: gtkmm library not found. Please install the libgtkmm devel package(s), or re-configure using --without-gtkmm." >&2;}
18739
21999
   { (exit 1); exit 1; }; }
18740
22000
   fi
 
22001
 
 
22002
   ac_ext=c
 
22003
ac_cpp='$CPP $CPPFLAGS'
 
22004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22007
 
 
22008
 
 
22009
   fi
18741
22010
fi # End of checks for X libraries
18742
22011
 
18743
22012
{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18803
22072
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18804
22073
if test $ac_cv_lib_crypt_crypt = yes; then
18805
22074
  HAVE_CRYPT="yes"
18806
 
    GUESTD_LDADD="$GUESTD_LDADD -lcrypt"
18807
22075
else
18808
22076
  { { echo "$as_me:$LINENO: error: libcrypt not found. Please install the libc/libcrypt devel package(s)." >&5
18809
22077
echo "$as_me: error: libcrypt not found. Please install the libc/libcrypt devel package(s)." >&2;}
19297
22565
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
19298
22566
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
19299
22567
if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
19300
 
  GUESTD_LDADD="$GUESTD_LDADD -lpthread"
19301
 
    VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lpthread"
 
22568
  HAVE_PTHREAD=yes
19302
22569
else
19303
22570
  { { echo "$as_me:$LINENO: error: libpthread not found. Please install the libc/libpthread devel package(s)." >&5
19304
22571
echo "$as_me: error: libpthread not found. Please install the libc/libpthread devel package(s)." >&2;}
19330
22597
fi
19331
22598
 
19332
22599
if test "$with_procps" = "yes"; then
19333
 
        ORIGINAL_LDFLAGS="$LDFLAGS"
19334
 
        LDFLAGS="$CUSTOM_PROCPS_LIBS $LDFLAGS"
19335
 
        { echo "$as_me:$LINENO: checking for getstat in -lproc-3.2.7" >&5
19336
 
echo $ECHO_N "checking for getstat in -lproc-3.2.7... $ECHO_C" >&6; }
19337
 
if test "${ac_cv_lib_proc_3_2_7_getstat+set}" = set; then
 
22600
   # XXX: Force CUSTOM_PROCPS_LIBS to have something so that AC_VMW_CHECK_LIB
 
22601
   # properly performs the library check.
 
22602
   if test -z "$CUSTOM_PROCPS_LIBS"; then
 
22603
      CUSTOM_PROCPS_LIBS="-L/lib"
 
22604
   fi
 
22605
 
 
22606
 
 
22607
   if test -z "proc-3.2.7"; then
 
22608
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
22609
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
22610
   { (exit 1); exit 1; }; }
 
22611
   fi
 
22612
   if test -z "PROCPS"; then
 
22613
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
22614
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
22615
   { (exit 1); exit 1; }; }
 
22616
   fi
 
22617
 
 
22618
   ac_vmw_have_lib=0
 
22619
   ac_vmw_have_lib_func=0
 
22620
   ac_vmw_have_lib_header=0
 
22621
 
 
22622
   #
 
22623
   # First, try any user-defined CUSTOM_* flags.
 
22624
   #
 
22625
   if test -n "${CUSTOM_PROCPS_CPPFLAGS}" || test -n "${CUSTOM_PROCPS_LIBS}"; then
 
22626
      CUSTOM_PROCPS_LIBS="${CUSTOM_PROCPS_LIBS} -lproc-3.2.7"
 
22627
      if test -n ""; then
 
22628
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
22629
         CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS} $CPPFLAGS"
 
22630
 
 
22631
         if test "${ac_cv_header_+set}" = set; then
 
22632
  { echo "$as_me:$LINENO: checking for " >&5
 
22633
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
 
22634
if test "${ac_cv_header_+set}" = set; then
 
22635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22636
fi
 
22637
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
 
22638
echo "${ECHO_T}$ac_cv_header_" >&6; }
 
22639
else
 
22640
  # Is the header compilable?
 
22641
{ echo "$as_me:$LINENO: checking  usability" >&5
 
22642
echo $ECHO_N "checking  usability... $ECHO_C" >&6; }
 
22643
cat >conftest.$ac_ext <<_ACEOF
 
22644
/* confdefs.h.  */
 
22645
_ACEOF
 
22646
cat confdefs.h >>conftest.$ac_ext
 
22647
cat >>conftest.$ac_ext <<_ACEOF
 
22648
/* end confdefs.h.  */
 
22649
$ac_includes_default
 
22650
#include <>
 
22651
_ACEOF
 
22652
rm -f conftest.$ac_objext
 
22653
if { (ac_try="$ac_compile"
 
22654
case "(($ac_try" in
 
22655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22656
  *) ac_try_echo=$ac_try;;
 
22657
esac
 
22658
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22659
  (eval "$ac_compile") 2>conftest.er1
 
22660
  ac_status=$?
 
22661
  grep -v '^ *+' conftest.er1 >conftest.err
 
22662
  rm -f conftest.er1
 
22663
  cat conftest.err >&5
 
22664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22665
  (exit $ac_status); } && {
 
22666
         test -z "$ac_c_werror_flag" ||
 
22667
         test ! -s conftest.err
 
22668
       } && test -s conftest.$ac_objext; then
 
22669
  ac_header_compiler=yes
 
22670
else
 
22671
  echo "$as_me: failed program was:" >&5
 
22672
sed 's/^/| /' conftest.$ac_ext >&5
 
22673
 
 
22674
        ac_header_compiler=no
 
22675
fi
 
22676
 
 
22677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22678
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22679
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22680
 
 
22681
# Is the header present?
 
22682
{ echo "$as_me:$LINENO: checking  presence" >&5
 
22683
echo $ECHO_N "checking  presence... $ECHO_C" >&6; }
 
22684
cat >conftest.$ac_ext <<_ACEOF
 
22685
/* confdefs.h.  */
 
22686
_ACEOF
 
22687
cat confdefs.h >>conftest.$ac_ext
 
22688
cat >>conftest.$ac_ext <<_ACEOF
 
22689
/* end confdefs.h.  */
 
22690
#include <>
 
22691
_ACEOF
 
22692
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22693
case "(($ac_try" in
 
22694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22695
  *) ac_try_echo=$ac_try;;
 
22696
esac
 
22697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22698
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22699
  ac_status=$?
 
22700
  grep -v '^ *+' conftest.er1 >conftest.err
 
22701
  rm -f conftest.er1
 
22702
  cat conftest.err >&5
 
22703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22704
  (exit $ac_status); } >/dev/null && {
 
22705
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22706
         test ! -s conftest.err
 
22707
       }; then
 
22708
  ac_header_preproc=yes
 
22709
else
 
22710
  echo "$as_me: failed program was:" >&5
 
22711
sed 's/^/| /' conftest.$ac_ext >&5
 
22712
 
 
22713
  ac_header_preproc=no
 
22714
fi
 
22715
 
 
22716
rm -f conftest.err conftest.$ac_ext
 
22717
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22718
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22719
 
 
22720
# So?  What about this header?
 
22721
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22722
  yes:no: )
 
22723
    { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
 
22724
echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22725
    { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
 
22726
echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
 
22727
    ac_header_preproc=yes
 
22728
    ;;
 
22729
  no:yes:* )
 
22730
    { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
 
22731
echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
 
22732
    { echo "$as_me:$LINENO: WARNING: :     check for missing prerequisite headers?" >&5
 
22733
echo "$as_me: WARNING: :     check for missing prerequisite headers?" >&2;}
 
22734
    { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
 
22735
echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
 
22736
    { echo "$as_me:$LINENO: WARNING: :     section \"Present But Cannot Be Compiled\"" >&5
 
22737
echo "$as_me: WARNING: :     section \"Present But Cannot Be Compiled\"" >&2;}
 
22738
    { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
 
22739
echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
 
22740
    { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
 
22741
echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
 
22742
    ( cat <<\_ASBOX
 
22743
## -------------------------------------------------------- ##
 
22744
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
22745
## -------------------------------------------------------- ##
 
22746
_ASBOX
 
22747
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22748
    ;;
 
22749
esac
 
22750
{ echo "$as_me:$LINENO: checking for " >&5
 
22751
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
 
22752
if test "${ac_cv_header_+set}" = set; then
 
22753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22754
else
 
22755
  ac_cv_header_=$ac_header_preproc
 
22756
fi
 
22757
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
 
22758
echo "${ECHO_T}$ac_cv_header_" >&6; }
 
22759
 
 
22760
fi
 
22761
if test $ac_cv_header_ = yes; then
 
22762
  ac_vmw_have_lib_header=1
 
22763
fi
 
22764
 
 
22765
 
 
22766
 
 
22767
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
22768
      else
 
22769
         ac_vmw_have_lib_header=1
 
22770
      fi
 
22771
 
 
22772
      # Check a specific function in the library if requested.
 
22773
      # If it hasn't, just pick a random function from libc, just to make
 
22774
      # sure the linker can find the library being tested.
 
22775
      if test $ac_vmw_have_lib_header -eq 1; then
 
22776
         if test -n "getstat"; then
 
22777
            ac_vmw_function=getstat
 
22778
         else
 
22779
            ac_vmw_function=strlen
 
22780
         fi
 
22781
         as_ac_Lib=`echo "ac_cv_lib_proc-3.2.7_$ac_vmw_function" | $as_tr_sh`
 
22782
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lproc-3.2.7" >&5
 
22783
echo $ECHO_N "checking for $ac_vmw_function in -lproc-3.2.7... $ECHO_C" >&6; }
 
22784
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
19338
22785
  echo $ECHO_N "(cached) $ECHO_C" >&6
19339
22786
else
19340
22787
  ac_check_lib_save_LIBS=$LIBS
19341
 
LIBS="-lproc-3.2.7  $LIBS"
 
22788
LIBS="-lproc-3.2.7 ${CUSTOM_PROCPS_LIBS} $LIBS"
19342
22789
cat >conftest.$ac_ext <<_ACEOF
19343
22790
/* confdefs.h.  */
19344
22791
_ACEOF
19352
22799
#ifdef __cplusplus
19353
22800
extern "C"
19354
22801
#endif
19355
 
char getstat ();
 
22802
char $ac_vmw_function ();
19356
22803
int
19357
22804
main ()
19358
22805
{
19359
 
return getstat ();
 
22806
return $ac_vmw_function ();
19360
22807
  ;
19361
22808
  return 0;
19362
22809
}
19379
22826
         test ! -s conftest.err
19380
22827
       } && test -s conftest$ac_exeext &&
19381
22828
       $as_test_x conftest$ac_exeext; then
19382
 
  ac_cv_lib_proc_3_2_7_getstat=yes
 
22829
  eval "$as_ac_Lib=yes"
19383
22830
else
19384
22831
  echo "$as_me: failed program was:" >&5
19385
22832
sed 's/^/| /' conftest.$ac_ext >&5
19386
22833
 
19387
 
        ac_cv_lib_proc_3_2_7_getstat=no
 
22834
        eval "$as_ac_Lib=no"
19388
22835
fi
19389
22836
 
19390
22837
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19391
22838
      conftest$ac_exeext conftest.$ac_ext
19392
22839
LIBS=$ac_check_lib_save_LIBS
19393
22840
fi
19394
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_proc_3_2_7_getstat" >&5
19395
 
echo "${ECHO_T}$ac_cv_lib_proc_3_2_7_getstat" >&6; }
19396
 
if test $ac_cv_lib_proc_3_2_7_getstat = yes; then
19397
 
  if test -n "$CUSTOM_PROCPS_LIBS"; then
19398
 
                    PROCPS_LIBS="$CUSTOM_PROCPS_LIBS"
19399
 
            else
19400
 
                    PROCPS_LIBS="-lproc-3.2.7"
19401
 
            fi
19402
 
else
19403
 
  { { echo "$as_me:$LINENO: error: libproc not found. Please configure without procps (using --without-procps) or install procps - http://procps.sourceforge.net" >&5
 
22841
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
22842
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22843
echo "${ECHO_T}$ac_res" >&6; }
 
22844
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
22845
  ac_vmw_have_lib_func=1
 
22846
fi
 
22847
 
 
22848
      fi
 
22849
 
 
22850
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
22851
         PROCPS_CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS}"
 
22852
         PROCPS_LIBS="${CUSTOM_PROCPS_LIBS}"
 
22853
         ac_vmw_have_lib=1
 
22854
      fi
 
22855
   fi
 
22856
 
 
22857
   # If that didn't work, try with pkg-config.
 
22858
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
 
22859
      if test -n ""; then
 
22860
         { echo "$as_me:$LINENO: checking for  >=  (via pkg-config)" >&5
 
22861
echo $ECHO_N "checking for  >=  (via pkg-config)... $ECHO_C" >&6; }
 
22862
         if pkg-config --exists ' >= '; then
 
22863
            ac_vmw_have_lib=1
 
22864
         fi
 
22865
      else
 
22866
         { echo "$as_me:$LINENO: checking for  (via pkg-config)" >&5
 
22867
echo $ECHO_N "checking for  (via pkg-config)... $ECHO_C" >&6; }
 
22868
         if pkg-config --exists ''; then
 
22869
            ac_vmw_have_lib=1
 
22870
         fi
 
22871
      fi
 
22872
 
 
22873
      if test $ac_vmw_have_lib -eq 1; then
 
22874
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
22875
         # fails on OpenSolaris B71. So be pessimistic.
 
22876
         ac_vmw_cppflags="`pkg-config --cflags `"
 
22877
         ac_vmw_ret1=$?
 
22878
         ac_vmw_libs="`pkg-config --libs `"
 
22879
         ac_vmw_ret2=$?
 
22880
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
22881
            { echo "$as_me:$LINENO: result: yes" >&5
 
22882
echo "${ECHO_T}yes" >&6; }
 
22883
            PROCPS_CPPFLAGS="$ac_vmw_cppflags"
 
22884
            PROCPS_LIBS="$ac_vmw_libs"
 
22885
         else
 
22886
            { echo "$as_me:$LINENO: result: no" >&5
 
22887
echo "${ECHO_T}no" >&6; }
 
22888
         fi
 
22889
      else
 
22890
         { echo "$as_me:$LINENO: result: no" >&5
 
22891
echo "${ECHO_T}no" >&6; }
 
22892
      fi
 
22893
   fi
 
22894
 
 
22895
   # If we still haven't found the lib, try with the library's custom "config" script.
 
22896
   # Before checking, flush the AC_PATH_PROG cached variable.
 
22897
   unset ac_cv_path_ac_vmw_lib_cfg
 
22898
   unset ac_vmw_lib_cfg
 
22899
   if test $ac_vmw_have_lib -eq 0 && test -n ""; then
 
22900
      # Extract the first word of "", so it can be a program name with args.
 
22901
set dummy ; ac_word=$2
 
22902
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22903
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22904
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
22905
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22906
else
 
22907
  case $ac_vmw_lib_cfg in
 
22908
  [\\/]* | ?:[\\/]*)
 
22909
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
22910
  ;;
 
22911
  *)
 
22912
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22913
for as_dir in $PATH
 
22914
do
 
22915
  IFS=$as_save_IFS
 
22916
  test -z "$as_dir" && as_dir=.
 
22917
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22918
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22919
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
22920
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22921
    break 2
 
22922
  fi
 
22923
done
 
22924
done
 
22925
IFS=$as_save_IFS
 
22926
 
 
22927
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
22928
  ;;
 
22929
esac
 
22930
fi
 
22931
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
22932
if test -n "$ac_vmw_lib_cfg"; then
 
22933
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
22934
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
22935
else
 
22936
  { echo "$as_me:$LINENO: result: no" >&5
 
22937
echo "${ECHO_T}no" >&6; }
 
22938
fi
 
22939
 
 
22940
 
 
22941
      if test "$ac_vmw_lib_cfg" != "no"; then
 
22942
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
22943
         # so single it out here to avoid having to replicate all the rest of the
 
22944
         # logic elsewhere.
 
22945
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
22946
            PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
22947
            PROCPS_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
22948
         else
 
22949
            PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
22950
            PROCPS_LIBS="`$ac_vmw_lib_cfg --libs`"
 
22951
         fi
 
22952
         ac_vmw_have_lib=1
 
22953
      fi
 
22954
   fi
 
22955
 
 
22956
   # Finish by executing the user provided action. The call to "true" is needed
 
22957
   # because the actions are optional, and we need something inside the block.
 
22958
   if test $ac_vmw_have_lib -eq 1; then
 
22959
 
 
22960
 
 
22961
      true
 
22962
      GUESTD_LDADD="$GUESTD_LDADD $PROCPS_LIBS";
 
22963
                     VMWARE_USER_LDADD="$VMWARE_USER_LDADD $PROCPS_LIBS"
 
22964
   else
 
22965
      true
 
22966
      { { echo "$as_me:$LINENO: error: libproc not found. Please configure without procps (using --without-procps) or install procps - http://procps.sourceforge.net" >&5
19404
22967
echo "$as_me: error: libproc not found. Please configure without procps (using --without-procps) or install procps - http://procps.sourceforge.net" >&2;}
19405
22968
   { (exit 1); exit 1; }; }
19406
 
fi
19407
 
 
19408
 
        LDFLAGS="$ORIGINAL_LDFLAGS"
19409
 
 
19410
 
        GUESTD_LDADD="$GUESTD_LDADD $PROCPS_LIBS"
19411
 
        VMWARE_USER_LDADD="$VMWARE_USER_LDADD $PROCPS_LIBS"
 
22969
   fi
 
22970
 
19412
22971
fi
19413
22972
 
19414
22973
if test "$with_procps" != "yes"; then
19429
22988
 
19430
22989
 
19431
22990
if test "$with_dnet" = "yes"; then
 
22991
   have_dnet=0
19432
22992
 
19433
22993
        # On Debian, dnet is installed via the libdumbnet package. We need to
19434
22994
        # detect this so that our source files include dumbnet.h instead of
19435
22995
        # dnet.h, which is part of a different package altogether.
19436
 
        for ac_prog in dumbnet-config dnet-config
19437
 
do
19438
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19439
 
set dummy $ac_prog; ac_word=$2
 
22996
 
 
22997
 
 
22998
   if test -z "dumbnet"; then
 
22999
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
23000
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
23001
   { (exit 1); exit 1; }; }
 
23002
   fi
 
23003
   if test -z "DNET"; then
 
23004
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
23005
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
23006
   { (exit 1); exit 1; }; }
 
23007
   fi
 
23008
 
 
23009
   ac_vmw_have_lib=0
 
23010
   ac_vmw_have_lib_func=0
 
23011
   ac_vmw_have_lib_header=0
 
23012
 
 
23013
   #
 
23014
   # First, try any user-defined CUSTOM_* flags.
 
23015
   #
 
23016
   if test -n "${CUSTOM_DNET_CPPFLAGS}" || test -n "${CUSTOM_DNET_LIBS}"; then
 
23017
      CUSTOM_DNET_LIBS="${CUSTOM_DNET_LIBS} -ldumbnet"
 
23018
      if test -n "dumbnet.h"; then
 
23019
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
23020
         CPPFLAGS="${CUSTOM_DNET_CPPFLAGS} $CPPFLAGS"
 
23021
 
 
23022
         if test "${ac_cv_header_dumbnet_h+set}" = set; then
 
23023
  { echo "$as_me:$LINENO: checking for dumbnet.h" >&5
 
23024
echo $ECHO_N "checking for dumbnet.h... $ECHO_C" >&6; }
 
23025
if test "${ac_cv_header_dumbnet_h+set}" = set; then
 
23026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23027
fi
 
23028
{ echo "$as_me:$LINENO: result: $ac_cv_header_dumbnet_h" >&5
 
23029
echo "${ECHO_T}$ac_cv_header_dumbnet_h" >&6; }
 
23030
else
 
23031
  # Is the header compilable?
 
23032
{ echo "$as_me:$LINENO: checking dumbnet.h usability" >&5
 
23033
echo $ECHO_N "checking dumbnet.h usability... $ECHO_C" >&6; }
 
23034
cat >conftest.$ac_ext <<_ACEOF
 
23035
/* confdefs.h.  */
 
23036
_ACEOF
 
23037
cat confdefs.h >>conftest.$ac_ext
 
23038
cat >>conftest.$ac_ext <<_ACEOF
 
23039
/* end confdefs.h.  */
 
23040
$ac_includes_default
 
23041
#include <dumbnet.h>
 
23042
_ACEOF
 
23043
rm -f conftest.$ac_objext
 
23044
if { (ac_try="$ac_compile"
 
23045
case "(($ac_try" in
 
23046
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23047
  *) ac_try_echo=$ac_try;;
 
23048
esac
 
23049
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23050
  (eval "$ac_compile") 2>conftest.er1
 
23051
  ac_status=$?
 
23052
  grep -v '^ *+' conftest.er1 >conftest.err
 
23053
  rm -f conftest.er1
 
23054
  cat conftest.err >&5
 
23055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23056
  (exit $ac_status); } && {
 
23057
         test -z "$ac_c_werror_flag" ||
 
23058
         test ! -s conftest.err
 
23059
       } && test -s conftest.$ac_objext; then
 
23060
  ac_header_compiler=yes
 
23061
else
 
23062
  echo "$as_me: failed program was:" >&5
 
23063
sed 's/^/| /' conftest.$ac_ext >&5
 
23064
 
 
23065
        ac_header_compiler=no
 
23066
fi
 
23067
 
 
23068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23069
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23070
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
23071
 
 
23072
# Is the header present?
 
23073
{ echo "$as_me:$LINENO: checking dumbnet.h presence" >&5
 
23074
echo $ECHO_N "checking dumbnet.h presence... $ECHO_C" >&6; }
 
23075
cat >conftest.$ac_ext <<_ACEOF
 
23076
/* confdefs.h.  */
 
23077
_ACEOF
 
23078
cat confdefs.h >>conftest.$ac_ext
 
23079
cat >>conftest.$ac_ext <<_ACEOF
 
23080
/* end confdefs.h.  */
 
23081
#include <dumbnet.h>
 
23082
_ACEOF
 
23083
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23084
case "(($ac_try" in
 
23085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23086
  *) ac_try_echo=$ac_try;;
 
23087
esac
 
23088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23089
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23090
  ac_status=$?
 
23091
  grep -v '^ *+' conftest.er1 >conftest.err
 
23092
  rm -f conftest.er1
 
23093
  cat conftest.err >&5
 
23094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23095
  (exit $ac_status); } >/dev/null && {
 
23096
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23097
         test ! -s conftest.err
 
23098
       }; then
 
23099
  ac_header_preproc=yes
 
23100
else
 
23101
  echo "$as_me: failed program was:" >&5
 
23102
sed 's/^/| /' conftest.$ac_ext >&5
 
23103
 
 
23104
  ac_header_preproc=no
 
23105
fi
 
23106
 
 
23107
rm -f conftest.err conftest.$ac_ext
 
23108
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23109
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
23110
 
 
23111
# So?  What about this header?
 
23112
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23113
  yes:no: )
 
23114
    { echo "$as_me:$LINENO: WARNING: dumbnet.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
23115
echo "$as_me: WARNING: dumbnet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23116
    { echo "$as_me:$LINENO: WARNING: dumbnet.h: proceeding with the compiler's result" >&5
 
23117
echo "$as_me: WARNING: dumbnet.h: proceeding with the compiler's result" >&2;}
 
23118
    ac_header_preproc=yes
 
23119
    ;;
 
23120
  no:yes:* )
 
23121
    { echo "$as_me:$LINENO: WARNING: dumbnet.h: present but cannot be compiled" >&5
 
23122
echo "$as_me: WARNING: dumbnet.h: present but cannot be compiled" >&2;}
 
23123
    { echo "$as_me:$LINENO: WARNING: dumbnet.h:     check for missing prerequisite headers?" >&5
 
23124
echo "$as_me: WARNING: dumbnet.h:     check for missing prerequisite headers?" >&2;}
 
23125
    { echo "$as_me:$LINENO: WARNING: dumbnet.h: see the Autoconf documentation" >&5
 
23126
echo "$as_me: WARNING: dumbnet.h: see the Autoconf documentation" >&2;}
 
23127
    { echo "$as_me:$LINENO: WARNING: dumbnet.h:     section \"Present But Cannot Be Compiled\"" >&5
 
23128
echo "$as_me: WARNING: dumbnet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23129
    { echo "$as_me:$LINENO: WARNING: dumbnet.h: proceeding with the preprocessor's result" >&5
 
23130
echo "$as_me: WARNING: dumbnet.h: proceeding with the preprocessor's result" >&2;}
 
23131
    { echo "$as_me:$LINENO: WARNING: dumbnet.h: in the future, the compiler will take precedence" >&5
 
23132
echo "$as_me: WARNING: dumbnet.h: in the future, the compiler will take precedence" >&2;}
 
23133
    ( cat <<\_ASBOX
 
23134
## -------------------------------------------------------- ##
 
23135
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
23136
## -------------------------------------------------------- ##
 
23137
_ASBOX
 
23138
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
23139
    ;;
 
23140
esac
 
23141
{ echo "$as_me:$LINENO: checking for dumbnet.h" >&5
 
23142
echo $ECHO_N "checking for dumbnet.h... $ECHO_C" >&6; }
 
23143
if test "${ac_cv_header_dumbnet_h+set}" = set; then
 
23144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23145
else
 
23146
  ac_cv_header_dumbnet_h=$ac_header_preproc
 
23147
fi
 
23148
{ echo "$as_me:$LINENO: result: $ac_cv_header_dumbnet_h" >&5
 
23149
echo "${ECHO_T}$ac_cv_header_dumbnet_h" >&6; }
 
23150
 
 
23151
fi
 
23152
if test $ac_cv_header_dumbnet_h = yes; then
 
23153
  ac_vmw_have_lib_header=1
 
23154
fi
 
23155
 
 
23156
 
 
23157
 
 
23158
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
23159
      else
 
23160
         ac_vmw_have_lib_header=1
 
23161
      fi
 
23162
 
 
23163
      # Check a specific function in the library if requested.
 
23164
      # If it hasn't, just pick a random function from libc, just to make
 
23165
      # sure the linker can find the library being tested.
 
23166
      if test $ac_vmw_have_lib_header -eq 1; then
 
23167
         if test -n "intf_open"; then
 
23168
            ac_vmw_function=intf_open
 
23169
         else
 
23170
            ac_vmw_function=strlen
 
23171
         fi
 
23172
         as_ac_Lib=`echo "ac_cv_lib_dumbnet_$ac_vmw_function" | $as_tr_sh`
 
23173
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -ldumbnet" >&5
 
23174
echo $ECHO_N "checking for $ac_vmw_function in -ldumbnet... $ECHO_C" >&6; }
 
23175
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
23176
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23177
else
 
23178
  ac_check_lib_save_LIBS=$LIBS
 
23179
LIBS="-ldumbnet ${CUSTOM_DNET_LIBS} $LIBS"
 
23180
cat >conftest.$ac_ext <<_ACEOF
 
23181
/* confdefs.h.  */
 
23182
_ACEOF
 
23183
cat confdefs.h >>conftest.$ac_ext
 
23184
cat >>conftest.$ac_ext <<_ACEOF
 
23185
/* end confdefs.h.  */
 
23186
 
 
23187
/* Override any GCC internal prototype to avoid an error.
 
23188
   Use char because int might match the return type of a GCC
 
23189
   builtin and then its argument prototype would still apply.  */
 
23190
#ifdef __cplusplus
 
23191
extern "C"
 
23192
#endif
 
23193
char $ac_vmw_function ();
 
23194
int
 
23195
main ()
 
23196
{
 
23197
return $ac_vmw_function ();
 
23198
  ;
 
23199
  return 0;
 
23200
}
 
23201
_ACEOF
 
23202
rm -f conftest.$ac_objext conftest$ac_exeext
 
23203
if { (ac_try="$ac_link"
 
23204
case "(($ac_try" in
 
23205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23206
  *) ac_try_echo=$ac_try;;
 
23207
esac
 
23208
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23209
  (eval "$ac_link") 2>conftest.er1
 
23210
  ac_status=$?
 
23211
  grep -v '^ *+' conftest.er1 >conftest.err
 
23212
  rm -f conftest.er1
 
23213
  cat conftest.err >&5
 
23214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23215
  (exit $ac_status); } && {
 
23216
         test -z "$ac_c_werror_flag" ||
 
23217
         test ! -s conftest.err
 
23218
       } && test -s conftest$ac_exeext &&
 
23219
       $as_test_x conftest$ac_exeext; then
 
23220
  eval "$as_ac_Lib=yes"
 
23221
else
 
23222
  echo "$as_me: failed program was:" >&5
 
23223
sed 's/^/| /' conftest.$ac_ext >&5
 
23224
 
 
23225
        eval "$as_ac_Lib=no"
 
23226
fi
 
23227
 
 
23228
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23229
      conftest$ac_exeext conftest.$ac_ext
 
23230
LIBS=$ac_check_lib_save_LIBS
 
23231
fi
 
23232
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
23233
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23234
echo "${ECHO_T}$ac_res" >&6; }
 
23235
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
23236
  ac_vmw_have_lib_func=1
 
23237
fi
 
23238
 
 
23239
      fi
 
23240
 
 
23241
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
23242
         DNET_CPPFLAGS="${CUSTOM_DNET_CPPFLAGS}"
 
23243
         DNET_LIBS="${CUSTOM_DNET_LIBS}"
 
23244
         ac_vmw_have_lib=1
 
23245
      fi
 
23246
   fi
 
23247
 
 
23248
   # If that didn't work, try with pkg-config.
 
23249
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
 
23250
      if test -n ""; then
 
23251
         { echo "$as_me:$LINENO: checking for  >=  (via pkg-config)" >&5
 
23252
echo $ECHO_N "checking for  >=  (via pkg-config)... $ECHO_C" >&6; }
 
23253
         if pkg-config --exists ' >= '; then
 
23254
            ac_vmw_have_lib=1
 
23255
         fi
 
23256
      else
 
23257
         { echo "$as_me:$LINENO: checking for  (via pkg-config)" >&5
 
23258
echo $ECHO_N "checking for  (via pkg-config)... $ECHO_C" >&6; }
 
23259
         if pkg-config --exists ''; then
 
23260
            ac_vmw_have_lib=1
 
23261
         fi
 
23262
      fi
 
23263
 
 
23264
      if test $ac_vmw_have_lib -eq 1; then
 
23265
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
23266
         # fails on OpenSolaris B71. So be pessimistic.
 
23267
         ac_vmw_cppflags="`pkg-config --cflags `"
 
23268
         ac_vmw_ret1=$?
 
23269
         ac_vmw_libs="`pkg-config --libs `"
 
23270
         ac_vmw_ret2=$?
 
23271
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
23272
            { echo "$as_me:$LINENO: result: yes" >&5
 
23273
echo "${ECHO_T}yes" >&6; }
 
23274
            DNET_CPPFLAGS="$ac_vmw_cppflags"
 
23275
            DNET_LIBS="$ac_vmw_libs"
 
23276
         else
 
23277
            { echo "$as_me:$LINENO: result: no" >&5
 
23278
echo "${ECHO_T}no" >&6; }
 
23279
         fi
 
23280
      else
 
23281
         { echo "$as_me:$LINENO: result: no" >&5
 
23282
echo "${ECHO_T}no" >&6; }
 
23283
      fi
 
23284
   fi
 
23285
 
 
23286
   # If we still haven't found the lib, try with the library's custom "config" script.
 
23287
   # Before checking, flush the AC_PATH_PROG cached variable.
 
23288
   unset ac_cv_path_ac_vmw_lib_cfg
 
23289
   unset ac_vmw_lib_cfg
 
23290
   if test $ac_vmw_have_lib -eq 0 && test -n "dumbnet-config"; then
 
23291
      # Extract the first word of "dumbnet-config", so it can be a program name with args.
 
23292
set dummy dumbnet-config; ac_word=$2
19440
23293
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19441
23294
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19442
 
if test "${ac_cv_prog_DNET_CONFIG+set}" = set; then
 
23295
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
19443
23296
  echo $ECHO_N "(cached) $ECHO_C" >&6
19444
23297
else
19445
 
  if test -n "$DNET_CONFIG"; then
19446
 
  ac_cv_prog_DNET_CONFIG="$DNET_CONFIG" # Let the user override the test.
19447
 
else
19448
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23298
  case $ac_vmw_lib_cfg in
 
23299
  [\\/]* | ?:[\\/]*)
 
23300
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
23301
  ;;
 
23302
  *)
 
23303
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19449
23304
for as_dir in $PATH
19450
23305
do
19451
23306
  IFS=$as_save_IFS
19452
23307
  test -z "$as_dir" && as_dir=.
19453
23308
  for ac_exec_ext in '' $ac_executable_extensions; do
19454
23309
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19455
 
    ac_cv_prog_DNET_CONFIG="$ac_prog"
 
23310
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
19456
23311
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19457
23312
    break 2
19458
23313
  fi
19460
23315
done
19461
23316
IFS=$as_save_IFS
19462
23317
 
19463
 
fi
19464
 
fi
19465
 
DNET_CONFIG=$ac_cv_prog_DNET_CONFIG
19466
 
if test -n "$DNET_CONFIG"; then
19467
 
  { echo "$as_me:$LINENO: result: $DNET_CONFIG" >&5
19468
 
echo "${ECHO_T}$DNET_CONFIG" >&6; }
 
23318
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
23319
  ;;
 
23320
esac
 
23321
fi
 
23322
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
23323
if test -n "$ac_vmw_lib_cfg"; then
 
23324
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
23325
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
19469
23326
else
19470
23327
  { echo "$as_me:$LINENO: result: no" >&5
19471
23328
echo "${ECHO_T}no" >&6; }
19472
23329
fi
19473
23330
 
19474
23331
 
19475
 
  test -n "$DNET_CONFIG" && break
19476
 
done
19477
 
test -n "$DNET_CONFIG" || DNET_CONFIG="no"
19478
 
 
19479
 
 
19480
 
        if test "$DNET_CONFIG" != no; then
19481
 
                DNET_CPPFLAGS="`$DNET_CONFIG --cflags`"
19482
 
                DNET_LIBS="`$DNET_CONFIG --libs`"
19483
 
 
19484
 
                GUESTD_LDADD="$GUESTD_LDADD $DNET_LIBS"
19485
 
                VMWARE_USER_LDADD="$VMWARE_USER_LDADD $DNET_LIBS"
19486
 
                if test "$DNET_CONFIG" == dumbnet-config; then
 
23332
      if test "$ac_vmw_lib_cfg" != "no"; then
 
23333
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
23334
         # so single it out here to avoid having to replicate all the rest of the
 
23335
         # logic elsewhere.
 
23336
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
23337
            DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
23338
            DNET_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
23339
         else
 
23340
            DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
23341
            DNET_LIBS="`$ac_vmw_lib_cfg --libs`"
 
23342
         fi
 
23343
         ac_vmw_have_lib=1
 
23344
      fi
 
23345
   fi
 
23346
 
 
23347
   # Finish by executing the user provided action. The call to "true" is needed
 
23348
   # because the actions are optional, and we need something inside the block.
 
23349
   if test $ac_vmw_have_lib -eq 1; then
 
23350
 
 
23351
 
 
23352
      true
 
23353
      have_dnet=1;
19487
23354
 
19488
23355
cat >>confdefs.h <<\_ACEOF
19489
23356
#define DNET_IS_DUMBNET 1
19490
23357
_ACEOF
19491
23358
 
19492
 
                fi
19493
 
        else
 
23359
   else
 
23360
      true
 
23361
 
 
23362
   fi
 
23363
 
 
23364
 
 
23365
   if test $have_dnet -eq 0; then
 
23366
 
 
23367
 
 
23368
   if test -z "dnet"; then
 
23369
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
23370
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
23371
   { (exit 1); exit 1; }; }
 
23372
   fi
 
23373
   if test -z "DNET"; then
 
23374
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
23375
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
23376
   { (exit 1); exit 1; }; }
 
23377
   fi
 
23378
 
 
23379
   ac_vmw_have_lib=0
 
23380
   ac_vmw_have_lib_func=0
 
23381
   ac_vmw_have_lib_header=0
 
23382
 
 
23383
   #
 
23384
   # First, try any user-defined CUSTOM_* flags.
 
23385
   #
 
23386
   if test -n "${CUSTOM_DNET_CPPFLAGS}" || test -n "${CUSTOM_DNET_LIBS}"; then
 
23387
      CUSTOM_DNET_LIBS="${CUSTOM_DNET_LIBS} -ldnet"
 
23388
      if test -n "dnet.h"; then
 
23389
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
23390
         CPPFLAGS="${CUSTOM_DNET_CPPFLAGS} $CPPFLAGS"
 
23391
 
 
23392
         if test "${ac_cv_header_dnet_h+set}" = set; then
 
23393
  { echo "$as_me:$LINENO: checking for dnet.h" >&5
 
23394
echo $ECHO_N "checking for dnet.h... $ECHO_C" >&6; }
 
23395
if test "${ac_cv_header_dnet_h+set}" = set; then
 
23396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23397
fi
 
23398
{ echo "$as_me:$LINENO: result: $ac_cv_header_dnet_h" >&5
 
23399
echo "${ECHO_T}$ac_cv_header_dnet_h" >&6; }
 
23400
else
 
23401
  # Is the header compilable?
 
23402
{ echo "$as_me:$LINENO: checking dnet.h usability" >&5
 
23403
echo $ECHO_N "checking dnet.h usability... $ECHO_C" >&6; }
 
23404
cat >conftest.$ac_ext <<_ACEOF
 
23405
/* confdefs.h.  */
 
23406
_ACEOF
 
23407
cat confdefs.h >>conftest.$ac_ext
 
23408
cat >>conftest.$ac_ext <<_ACEOF
 
23409
/* end confdefs.h.  */
 
23410
$ac_includes_default
 
23411
#include <dnet.h>
 
23412
_ACEOF
 
23413
rm -f conftest.$ac_objext
 
23414
if { (ac_try="$ac_compile"
 
23415
case "(($ac_try" in
 
23416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23417
  *) ac_try_echo=$ac_try;;
 
23418
esac
 
23419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23420
  (eval "$ac_compile") 2>conftest.er1
 
23421
  ac_status=$?
 
23422
  grep -v '^ *+' conftest.er1 >conftest.err
 
23423
  rm -f conftest.er1
 
23424
  cat conftest.err >&5
 
23425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23426
  (exit $ac_status); } && {
 
23427
         test -z "$ac_c_werror_flag" ||
 
23428
         test ! -s conftest.err
 
23429
       } && test -s conftest.$ac_objext; then
 
23430
  ac_header_compiler=yes
 
23431
else
 
23432
  echo "$as_me: failed program was:" >&5
 
23433
sed 's/^/| /' conftest.$ac_ext >&5
 
23434
 
 
23435
        ac_header_compiler=no
 
23436
fi
 
23437
 
 
23438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23439
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23440
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
23441
 
 
23442
# Is the header present?
 
23443
{ echo "$as_me:$LINENO: checking dnet.h presence" >&5
 
23444
echo $ECHO_N "checking dnet.h presence... $ECHO_C" >&6; }
 
23445
cat >conftest.$ac_ext <<_ACEOF
 
23446
/* confdefs.h.  */
 
23447
_ACEOF
 
23448
cat confdefs.h >>conftest.$ac_ext
 
23449
cat >>conftest.$ac_ext <<_ACEOF
 
23450
/* end confdefs.h.  */
 
23451
#include <dnet.h>
 
23452
_ACEOF
 
23453
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23454
case "(($ac_try" in
 
23455
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23456
  *) ac_try_echo=$ac_try;;
 
23457
esac
 
23458
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23459
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23460
  ac_status=$?
 
23461
  grep -v '^ *+' conftest.er1 >conftest.err
 
23462
  rm -f conftest.er1
 
23463
  cat conftest.err >&5
 
23464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23465
  (exit $ac_status); } >/dev/null && {
 
23466
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23467
         test ! -s conftest.err
 
23468
       }; then
 
23469
  ac_header_preproc=yes
 
23470
else
 
23471
  echo "$as_me: failed program was:" >&5
 
23472
sed 's/^/| /' conftest.$ac_ext >&5
 
23473
 
 
23474
  ac_header_preproc=no
 
23475
fi
 
23476
 
 
23477
rm -f conftest.err conftest.$ac_ext
 
23478
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23479
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
23480
 
 
23481
# So?  What about this header?
 
23482
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23483
  yes:no: )
 
23484
    { echo "$as_me:$LINENO: WARNING: dnet.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
23485
echo "$as_me: WARNING: dnet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23486
    { echo "$as_me:$LINENO: WARNING: dnet.h: proceeding with the compiler's result" >&5
 
23487
echo "$as_me: WARNING: dnet.h: proceeding with the compiler's result" >&2;}
 
23488
    ac_header_preproc=yes
 
23489
    ;;
 
23490
  no:yes:* )
 
23491
    { echo "$as_me:$LINENO: WARNING: dnet.h: present but cannot be compiled" >&5
 
23492
echo "$as_me: WARNING: dnet.h: present but cannot be compiled" >&2;}
 
23493
    { echo "$as_me:$LINENO: WARNING: dnet.h:     check for missing prerequisite headers?" >&5
 
23494
echo "$as_me: WARNING: dnet.h:     check for missing prerequisite headers?" >&2;}
 
23495
    { echo "$as_me:$LINENO: WARNING: dnet.h: see the Autoconf documentation" >&5
 
23496
echo "$as_me: WARNING: dnet.h: see the Autoconf documentation" >&2;}
 
23497
    { echo "$as_me:$LINENO: WARNING: dnet.h:     section \"Present But Cannot Be Compiled\"" >&5
 
23498
echo "$as_me: WARNING: dnet.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23499
    { echo "$as_me:$LINENO: WARNING: dnet.h: proceeding with the preprocessor's result" >&5
 
23500
echo "$as_me: WARNING: dnet.h: proceeding with the preprocessor's result" >&2;}
 
23501
    { echo "$as_me:$LINENO: WARNING: dnet.h: in the future, the compiler will take precedence" >&5
 
23502
echo "$as_me: WARNING: dnet.h: in the future, the compiler will take precedence" >&2;}
 
23503
    ( cat <<\_ASBOX
 
23504
## -------------------------------------------------------- ##
 
23505
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
23506
## -------------------------------------------------------- ##
 
23507
_ASBOX
 
23508
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
23509
    ;;
 
23510
esac
 
23511
{ echo "$as_me:$LINENO: checking for dnet.h" >&5
 
23512
echo $ECHO_N "checking for dnet.h... $ECHO_C" >&6; }
 
23513
if test "${ac_cv_header_dnet_h+set}" = set; then
 
23514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23515
else
 
23516
  ac_cv_header_dnet_h=$ac_header_preproc
 
23517
fi
 
23518
{ echo "$as_me:$LINENO: result: $ac_cv_header_dnet_h" >&5
 
23519
echo "${ECHO_T}$ac_cv_header_dnet_h" >&6; }
 
23520
 
 
23521
fi
 
23522
if test $ac_cv_header_dnet_h = yes; then
 
23523
  ac_vmw_have_lib_header=1
 
23524
fi
 
23525
 
 
23526
 
 
23527
 
 
23528
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
23529
      else
 
23530
         ac_vmw_have_lib_header=1
 
23531
      fi
 
23532
 
 
23533
      # Check a specific function in the library if requested.
 
23534
      # If it hasn't, just pick a random function from libc, just to make
 
23535
      # sure the linker can find the library being tested.
 
23536
      if test $ac_vmw_have_lib_header -eq 1; then
 
23537
         if test -n "intf_open"; then
 
23538
            ac_vmw_function=intf_open
 
23539
         else
 
23540
            ac_vmw_function=strlen
 
23541
         fi
 
23542
         as_ac_Lib=`echo "ac_cv_lib_dnet_$ac_vmw_function" | $as_tr_sh`
 
23543
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -ldnet" >&5
 
23544
echo $ECHO_N "checking for $ac_vmw_function in -ldnet... $ECHO_C" >&6; }
 
23545
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
23546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23547
else
 
23548
  ac_check_lib_save_LIBS=$LIBS
 
23549
LIBS="-ldnet ${CUSTOM_DNET_LIBS} $LIBS"
 
23550
cat >conftest.$ac_ext <<_ACEOF
 
23551
/* confdefs.h.  */
 
23552
_ACEOF
 
23553
cat confdefs.h >>conftest.$ac_ext
 
23554
cat >>conftest.$ac_ext <<_ACEOF
 
23555
/* end confdefs.h.  */
 
23556
 
 
23557
/* Override any GCC internal prototype to avoid an error.
 
23558
   Use char because int might match the return type of a GCC
 
23559
   builtin and then its argument prototype would still apply.  */
 
23560
#ifdef __cplusplus
 
23561
extern "C"
 
23562
#endif
 
23563
char $ac_vmw_function ();
 
23564
int
 
23565
main ()
 
23566
{
 
23567
return $ac_vmw_function ();
 
23568
  ;
 
23569
  return 0;
 
23570
}
 
23571
_ACEOF
 
23572
rm -f conftest.$ac_objext conftest$ac_exeext
 
23573
if { (ac_try="$ac_link"
 
23574
case "(($ac_try" in
 
23575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23576
  *) ac_try_echo=$ac_try;;
 
23577
esac
 
23578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23579
  (eval "$ac_link") 2>conftest.er1
 
23580
  ac_status=$?
 
23581
  grep -v '^ *+' conftest.er1 >conftest.err
 
23582
  rm -f conftest.er1
 
23583
  cat conftest.err >&5
 
23584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23585
  (exit $ac_status); } && {
 
23586
         test -z "$ac_c_werror_flag" ||
 
23587
         test ! -s conftest.err
 
23588
       } && test -s conftest$ac_exeext &&
 
23589
       $as_test_x conftest$ac_exeext; then
 
23590
  eval "$as_ac_Lib=yes"
 
23591
else
 
23592
  echo "$as_me: failed program was:" >&5
 
23593
sed 's/^/| /' conftest.$ac_ext >&5
 
23594
 
 
23595
        eval "$as_ac_Lib=no"
 
23596
fi
 
23597
 
 
23598
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23599
      conftest$ac_exeext conftest.$ac_ext
 
23600
LIBS=$ac_check_lib_save_LIBS
 
23601
fi
 
23602
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
23603
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23604
echo "${ECHO_T}$ac_res" >&6; }
 
23605
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
23606
  ac_vmw_have_lib_func=1
 
23607
fi
 
23608
 
 
23609
      fi
 
23610
 
 
23611
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
23612
         DNET_CPPFLAGS="${CUSTOM_DNET_CPPFLAGS}"
 
23613
         DNET_LIBS="${CUSTOM_DNET_LIBS}"
 
23614
         ac_vmw_have_lib=1
 
23615
      fi
 
23616
   fi
 
23617
 
 
23618
   # If that didn't work, try with pkg-config.
 
23619
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
 
23620
      if test -n ""; then
 
23621
         { echo "$as_me:$LINENO: checking for  >=  (via pkg-config)" >&5
 
23622
echo $ECHO_N "checking for  >=  (via pkg-config)... $ECHO_C" >&6; }
 
23623
         if pkg-config --exists ' >= '; then
 
23624
            ac_vmw_have_lib=1
 
23625
         fi
 
23626
      else
 
23627
         { echo "$as_me:$LINENO: checking for  (via pkg-config)" >&5
 
23628
echo $ECHO_N "checking for  (via pkg-config)... $ECHO_C" >&6; }
 
23629
         if pkg-config --exists ''; then
 
23630
            ac_vmw_have_lib=1
 
23631
         fi
 
23632
      fi
 
23633
 
 
23634
      if test $ac_vmw_have_lib -eq 1; then
 
23635
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
23636
         # fails on OpenSolaris B71. So be pessimistic.
 
23637
         ac_vmw_cppflags="`pkg-config --cflags `"
 
23638
         ac_vmw_ret1=$?
 
23639
         ac_vmw_libs="`pkg-config --libs `"
 
23640
         ac_vmw_ret2=$?
 
23641
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
23642
            { echo "$as_me:$LINENO: result: yes" >&5
 
23643
echo "${ECHO_T}yes" >&6; }
 
23644
            DNET_CPPFLAGS="$ac_vmw_cppflags"
 
23645
            DNET_LIBS="$ac_vmw_libs"
 
23646
         else
 
23647
            { echo "$as_me:$LINENO: result: no" >&5
 
23648
echo "${ECHO_T}no" >&6; }
 
23649
         fi
 
23650
      else
 
23651
         { echo "$as_me:$LINENO: result: no" >&5
 
23652
echo "${ECHO_T}no" >&6; }
 
23653
      fi
 
23654
   fi
 
23655
 
 
23656
   # If we still haven't found the lib, try with the library's custom "config" script.
 
23657
   # Before checking, flush the AC_PATH_PROG cached variable.
 
23658
   unset ac_cv_path_ac_vmw_lib_cfg
 
23659
   unset ac_vmw_lib_cfg
 
23660
   if test $ac_vmw_have_lib -eq 0 && test -n "dnet-config"; then
 
23661
      # Extract the first word of "dnet-config", so it can be a program name with args.
 
23662
set dummy dnet-config; ac_word=$2
 
23663
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
23665
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
23666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23667
else
 
23668
  case $ac_vmw_lib_cfg in
 
23669
  [\\/]* | ?:[\\/]*)
 
23670
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
23671
  ;;
 
23672
  *)
 
23673
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23674
for as_dir in $PATH
 
23675
do
 
23676
  IFS=$as_save_IFS
 
23677
  test -z "$as_dir" && as_dir=.
 
23678
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23679
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23680
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
23681
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23682
    break 2
 
23683
  fi
 
23684
done
 
23685
done
 
23686
IFS=$as_save_IFS
 
23687
 
 
23688
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
23689
  ;;
 
23690
esac
 
23691
fi
 
23692
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
23693
if test -n "$ac_vmw_lib_cfg"; then
 
23694
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
23695
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
23696
else
 
23697
  { echo "$as_me:$LINENO: result: no" >&5
 
23698
echo "${ECHO_T}no" >&6; }
 
23699
fi
 
23700
 
 
23701
 
 
23702
      if test "$ac_vmw_lib_cfg" != "no"; then
 
23703
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
23704
         # so single it out here to avoid having to replicate all the rest of the
 
23705
         # logic elsewhere.
 
23706
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
23707
            DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
23708
            DNET_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
23709
         else
 
23710
            DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
23711
            DNET_LIBS="`$ac_vmw_lib_cfg --libs`"
 
23712
         fi
 
23713
         ac_vmw_have_lib=1
 
23714
      fi
 
23715
   fi
 
23716
 
 
23717
   # Finish by executing the user provided action. The call to "true" is needed
 
23718
   # because the actions are optional, and we need something inside the block.
 
23719
   if test $ac_vmw_have_lib -eq 1; then
 
23720
 
 
23721
 
 
23722
      true
 
23723
      have_dnet=1
 
23724
   else
 
23725
      true
 
23726
 
 
23727
   fi
 
23728
 
 
23729
   fi
 
23730
 
 
23731
   if test $have_dnet -eq 1; then
 
23732
      GUESTD_LDADD="$GUESTD_LDADD $DNET_LIBS"
 
23733
      VMWARE_USER_LDADD="$VMWARE_USER_LDADD $DNET_LIBS"
 
23734
   else
19494
23735
                { { echo "$as_me:$LINENO: error: dnet-config was not found on your PATH. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net" >&5
19495
23736
echo "$as_me: error: dnet-config was not found on your PATH. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net" >&2;}
19496
23737
   { (exit 1); exit 1; }; }
19514
23755
fi
19515
23756
 
19516
23757
 
19517
 
if test "$with_icu" = "yes"; then
19518
 
 
19519
 
        # Extract the first word of "icu-config", so it can be a program name with args.
19520
 
set dummy icu-config; ac_word=$2
19521
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19522
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19523
 
if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
19524
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19525
 
else
19526
 
  case $ICU_CONFIG in
19527
 
  [\\/]* | ?:[\\/]*)
19528
 
  ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
19529
 
  ;;
19530
 
  *)
19531
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532
 
for as_dir in $PATH
19533
 
do
19534
 
  IFS=$as_save_IFS
19535
 
  test -z "$as_dir" && as_dir=.
19536
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19537
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19538
 
    ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19539
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19540
 
    break 2
19541
 
  fi
19542
 
done
19543
 
done
19544
 
IFS=$as_save_IFS
19545
 
 
19546
 
  test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no"
19547
 
  ;;
19548
 
esac
19549
 
fi
19550
 
ICU_CONFIG=$ac_cv_path_ICU_CONFIG
19551
 
if test -n "$ICU_CONFIG"; then
19552
 
  { echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
19553
 
echo "${ECHO_T}$ICU_CONFIG" >&6; }
19554
 
else
19555
 
  { echo "$as_me:$LINENO: result: no" >&5
19556
 
echo "${ECHO_T}no" >&6; }
19557
 
fi
19558
 
 
19559
 
 
19560
 
 
19561
 
        if test "$ICU_CONFIG" != no; then
19562
 
                ICU_CPPFLAGS="`$ICU_CONFIG --cppflags` -DUSE_ICU"
19563
 
                ICU_LIBS="`$ICU_CONFIG --ldflags`"
19564
 
 
19565
 
                # The icu components are built with C++, so we need to ensure
19566
 
                # that the C++ linker actually exists, and use it when linking
19567
 
                # icu into our applications and when performing configuration
19568
 
                # tests against icu.
19569
 
                #
19570
 
                # XXX: Getting automake to choose between the C linker and the
19571
 
                # C++ linker depending on HAVE_ICU was a royal pain in the ass.
19572
 
                # The classic way to do this is to define an optional source
19573
 
                # file for a program with an extension of .cxx, using
19574
 
                # nodist_EXTRA_fooprogram_SOURCES. This causes automake's
19575
 
                # linker detection algorithm to see a C++ source file and
19576
 
                # automatically set up the C++ linker and link line for us.
19577
 
                # Unfortunately, said linker detection doesn't obey
19578
 
                # conditionals, which means that it'd always pick the C++
19579
 
                # linker, regardless of the value of HAVE_ICU. Instead, we are
19580
 
                # forced to manually set the correct linker in fooprogram_LINK.
19581
 
                # However, since none of our programs actually contain C++
19582
 
                # code, automake doesn't make the CXXLINK variable (which
19583
 
                # contains the linker as well as all link flags) available to
19584
 
                # us, so we must hard-code the entire link line into
19585
 
                # fooprogram_LINK. Not exactly a futureproof solution...
19586
 
                #
19587
 
                # Additional references on this problem:
19588
 
                # http://sources.redhat.com/ml/automake/1999-10/msg00101.html
19589
 
                # http://lists.gnu.org/archive/html/bug-automake/2008-04/msg00010.html
19590
 
                # http://www.gnu.org/software/automake/manual/automake.html#Libtool-Convenience-Libraries
19591
 
                # http://www.gnu.org/software/automake/manual/automake.html#C_002b_002b-Support
19592
 
                if test -n "$ac_tool_prefix"; then
 
23758
if test "$have_x" = "yes" -o "$with_icu" = "yes"; then
 
23759
   if test -n "$ac_tool_prefix"; then
19593
23760
  # Extract the first word of "${ac_tool_prefix}$CXX", so it can be a program name with args.
19594
23761
set dummy ${ac_tool_prefix}$CXX; ac_word=$2
19595
23762
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19596
23763
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19597
 
if test "${ac_cv_prog_HAVE_CXX+set}" = set; then
 
23764
if test "${ac_cv_prog_have_cxx+set}" = set; then
19598
23765
  echo $ECHO_N "(cached) $ECHO_C" >&6
19599
23766
else
19600
 
  if test -n "$HAVE_CXX"; then
19601
 
  ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
 
23767
  if test -n "$have_cxx"; then
 
23768
  ac_cv_prog_have_cxx="$have_cxx" # Let the user override the test.
19602
23769
else
19603
23770
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19604
23771
for as_dir in $PATH
19607
23774
  test -z "$as_dir" && as_dir=.
19608
23775
  for ac_exec_ext in '' $ac_executable_extensions; do
19609
23776
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19610
 
    ac_cv_prog_HAVE_CXX="${ac_tool_prefix}$CXX"
 
23777
    ac_cv_prog_have_cxx="${ac_tool_prefix}$CXX"
19611
23778
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19612
23779
    break 2
19613
23780
  fi
19617
23784
 
19618
23785
fi
19619
23786
fi
19620
 
HAVE_CXX=$ac_cv_prog_HAVE_CXX
19621
 
if test -n "$HAVE_CXX"; then
19622
 
  { echo "$as_me:$LINENO: result: $HAVE_CXX" >&5
19623
 
echo "${ECHO_T}$HAVE_CXX" >&6; }
 
23787
have_cxx=$ac_cv_prog_have_cxx
 
23788
if test -n "$have_cxx"; then
 
23789
  { echo "$as_me:$LINENO: result: $have_cxx" >&5
 
23790
echo "${ECHO_T}$have_cxx" >&6; }
19624
23791
else
19625
23792
  { echo "$as_me:$LINENO: result: no" >&5
19626
23793
echo "${ECHO_T}no" >&6; }
19628
23795
 
19629
23796
 
19630
23797
fi
19631
 
if test -z "$ac_cv_prog_HAVE_CXX"; then
19632
 
  ac_ct_HAVE_CXX=$HAVE_CXX
 
23798
if test -z "$ac_cv_prog_have_cxx"; then
 
23799
  ac_ct_have_cxx=$have_cxx
19633
23800
  # Extract the first word of "$CXX", so it can be a program name with args.
19634
23801
set dummy $CXX; ac_word=$2
19635
23802
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19636
23803
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19637
 
if test "${ac_cv_prog_ac_ct_HAVE_CXX+set}" = set; then
 
23804
if test "${ac_cv_prog_ac_ct_have_cxx+set}" = set; then
19638
23805
  echo $ECHO_N "(cached) $ECHO_C" >&6
19639
23806
else
19640
 
  if test -n "$ac_ct_HAVE_CXX"; then
19641
 
  ac_cv_prog_ac_ct_HAVE_CXX="$ac_ct_HAVE_CXX" # Let the user override the test.
 
23807
  if test -n "$ac_ct_have_cxx"; then
 
23808
  ac_cv_prog_ac_ct_have_cxx="$ac_ct_have_cxx" # Let the user override the test.
19642
23809
else
19643
23810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19644
23811
for as_dir in $PATH
19647
23814
  test -z "$as_dir" && as_dir=.
19648
23815
  for ac_exec_ext in '' $ac_executable_extensions; do
19649
23816
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19650
 
    ac_cv_prog_ac_ct_HAVE_CXX="$CXX"
 
23817
    ac_cv_prog_ac_ct_have_cxx="$CXX"
19651
23818
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19652
23819
    break 2
19653
23820
  fi
19657
23824
 
19658
23825
fi
19659
23826
fi
19660
 
ac_ct_HAVE_CXX=$ac_cv_prog_ac_ct_HAVE_CXX
19661
 
if test -n "$ac_ct_HAVE_CXX"; then
19662
 
  { echo "$as_me:$LINENO: result: $ac_ct_HAVE_CXX" >&5
19663
 
echo "${ECHO_T}$ac_ct_HAVE_CXX" >&6; }
 
23827
ac_ct_have_cxx=$ac_cv_prog_ac_ct_have_cxx
 
23828
if test -n "$ac_ct_have_cxx"; then
 
23829
  { echo "$as_me:$LINENO: result: $ac_ct_have_cxx" >&5
 
23830
echo "${ECHO_T}$ac_ct_have_cxx" >&6; }
19664
23831
else
19665
23832
  { echo "$as_me:$LINENO: result: no" >&5
19666
23833
echo "${ECHO_T}no" >&6; }
19667
23834
fi
19668
23835
 
19669
 
  if test "x$ac_ct_HAVE_CXX" = x; then
19670
 
    HAVE_CXX=""
 
23836
  if test "x$ac_ct_have_cxx" = x; then
 
23837
    have_cxx="no"
19671
23838
  else
19672
23839
    case $cross_compiling:$ac_tool_warned in
19673
23840
yes:)
19679
23846
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19680
23847
ac_tool_warned=yes ;;
19681
23848
esac
19682
 
    HAVE_CXX=$ac_ct_HAVE_CXX
19683
 
  fi
19684
 
else
19685
 
  HAVE_CXX="$ac_cv_prog_HAVE_CXX"
19686
 
fi
19687
 
 
19688
 
                if test -z "$HAVE_CXX"; then
19689
 
                        { { echo "$as_me:$LINENO: error: No C++ compiler was found on your PATH. Please configure without ICU (using --without-icu) or install a C++ compiler." >&5
19690
 
echo "$as_me: error: No C++ compiler was found on your PATH. Please configure without ICU (using --without-icu) or install a C++ compiler." >&2;}
19691
 
   { (exit 1); exit 1; }; }
19692
 
                fi
19693
 
                ac_ext=cpp
19694
 
ac_cpp='$CXXCPP $CPPFLAGS'
19695
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19698
 
 
19699
 
                { echo "$as_me:$LINENO: checking for ucasemap_utf8ToTitle_3_8 in -licuuc" >&5
 
23849
    have_cxx=$ac_ct_have_cxx
 
23850
  fi
 
23851
else
 
23852
  have_cxx="$ac_cv_prog_have_cxx"
 
23853
fi
 
23854
 
 
23855
   if test "$have_cxx" = "no"; then
 
23856
      { { echo "$as_me:$LINENO: error: C++ compiler not found. Make sure you have a C++ compiler installed or configure without X11 (using --without-x) and without ICU (using --without-icu)." >&5
 
23857
echo "$as_me: error: C++ compiler not found. Make sure you have a C++ compiler installed or configure without X11 (using --without-x) and without ICU (using --without-icu)." >&2;}
 
23858
   { (exit 1); exit 1; }; }
 
23859
   fi
 
23860
fi
 
23861
 
 
23862
if test "$with_icu" = "yes"; then
 
23863
 
 
23864
 
 
23865
   ac_ext=cpp
 
23866
ac_cpp='$CXXCPP $CPPFLAGS'
 
23867
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23868
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23869
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
23870
 
 
23871
 
 
23872
 
 
23873
   if test -z "icuuc"; then
 
23874
      { { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
 
23875
echo "$as_me: error: 'library' parameter is required.'" >&2;}
 
23876
   { (exit 1); exit 1; }; }
 
23877
   fi
 
23878
   if test -z "ICU"; then
 
23879
      { { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
 
23880
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
 
23881
   { (exit 1); exit 1; }; }
 
23882
   fi
 
23883
 
 
23884
   ac_vmw_have_lib=0
 
23885
   ac_vmw_have_lib_func=0
 
23886
   ac_vmw_have_lib_header=0
 
23887
 
 
23888
   #
 
23889
   # First, try any user-defined CUSTOM_* flags.
 
23890
   #
 
23891
   if test -n "${CUSTOM_ICU_CPPFLAGS}" || test -n "${CUSTOM_ICU_LIBS}"; then
 
23892
      CUSTOM_ICU_LIBS="${CUSTOM_ICU_LIBS} -licuuc"
 
23893
      if test -n "unicode/utf.h"; then
 
23894
         ORIGINAL_CPPFLAGS="$CPPFLAGS"
 
23895
         CPPFLAGS="${CUSTOM_ICU_CPPFLAGS} $CPPFLAGS"
 
23896
 
 
23897
         if test "${ac_cv_header_unicode_utf_h+set}" = set; then
 
23898
  { echo "$as_me:$LINENO: checking for unicode/utf.h" >&5
 
23899
echo $ECHO_N "checking for unicode/utf.h... $ECHO_C" >&6; }
 
23900
if test "${ac_cv_header_unicode_utf_h+set}" = set; then
 
23901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23902
fi
 
23903
{ echo "$as_me:$LINENO: result: $ac_cv_header_unicode_utf_h" >&5
 
23904
echo "${ECHO_T}$ac_cv_header_unicode_utf_h" >&6; }
 
23905
else
 
23906
  # Is the header compilable?
 
23907
{ echo "$as_me:$LINENO: checking unicode/utf.h usability" >&5
 
23908
echo $ECHO_N "checking unicode/utf.h usability... $ECHO_C" >&6; }
 
23909
cat >conftest.$ac_ext <<_ACEOF
 
23910
/* confdefs.h.  */
 
23911
_ACEOF
 
23912
cat confdefs.h >>conftest.$ac_ext
 
23913
cat >>conftest.$ac_ext <<_ACEOF
 
23914
/* end confdefs.h.  */
 
23915
$ac_includes_default
 
23916
#include <unicode/utf.h>
 
23917
_ACEOF
 
23918
rm -f conftest.$ac_objext
 
23919
if { (ac_try="$ac_compile"
 
23920
case "(($ac_try" in
 
23921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23922
  *) ac_try_echo=$ac_try;;
 
23923
esac
 
23924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23925
  (eval "$ac_compile") 2>conftest.er1
 
23926
  ac_status=$?
 
23927
  grep -v '^ *+' conftest.er1 >conftest.err
 
23928
  rm -f conftest.er1
 
23929
  cat conftest.err >&5
 
23930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23931
  (exit $ac_status); } && {
 
23932
         test -z "$ac_cxx_werror_flag" ||
 
23933
         test ! -s conftest.err
 
23934
       } && test -s conftest.$ac_objext; then
 
23935
  ac_header_compiler=yes
 
23936
else
 
23937
  echo "$as_me: failed program was:" >&5
 
23938
sed 's/^/| /' conftest.$ac_ext >&5
 
23939
 
 
23940
        ac_header_compiler=no
 
23941
fi
 
23942
 
 
23943
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23944
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23945
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
23946
 
 
23947
# Is the header present?
 
23948
{ echo "$as_me:$LINENO: checking unicode/utf.h presence" >&5
 
23949
echo $ECHO_N "checking unicode/utf.h presence... $ECHO_C" >&6; }
 
23950
cat >conftest.$ac_ext <<_ACEOF
 
23951
/* confdefs.h.  */
 
23952
_ACEOF
 
23953
cat confdefs.h >>conftest.$ac_ext
 
23954
cat >>conftest.$ac_ext <<_ACEOF
 
23955
/* end confdefs.h.  */
 
23956
#include <unicode/utf.h>
 
23957
_ACEOF
 
23958
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23959
case "(($ac_try" in
 
23960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23961
  *) ac_try_echo=$ac_try;;
 
23962
esac
 
23963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23964
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23965
  ac_status=$?
 
23966
  grep -v '^ *+' conftest.er1 >conftest.err
 
23967
  rm -f conftest.er1
 
23968
  cat conftest.err >&5
 
23969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23970
  (exit $ac_status); } >/dev/null && {
 
23971
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
23972
         test ! -s conftest.err
 
23973
       }; then
 
23974
  ac_header_preproc=yes
 
23975
else
 
23976
  echo "$as_me: failed program was:" >&5
 
23977
sed 's/^/| /' conftest.$ac_ext >&5
 
23978
 
 
23979
  ac_header_preproc=no
 
23980
fi
 
23981
 
 
23982
rm -f conftest.err conftest.$ac_ext
 
23983
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23984
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
23985
 
 
23986
# So?  What about this header?
 
23987
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
23988
  yes:no: )
 
23989
    { echo "$as_me:$LINENO: WARNING: unicode/utf.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
23990
echo "$as_me: WARNING: unicode/utf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23991
    { echo "$as_me:$LINENO: WARNING: unicode/utf.h: proceeding with the compiler's result" >&5
 
23992
echo "$as_me: WARNING: unicode/utf.h: proceeding with the compiler's result" >&2;}
 
23993
    ac_header_preproc=yes
 
23994
    ;;
 
23995
  no:yes:* )
 
23996
    { echo "$as_me:$LINENO: WARNING: unicode/utf.h: present but cannot be compiled" >&5
 
23997
echo "$as_me: WARNING: unicode/utf.h: present but cannot be compiled" >&2;}
 
23998
    { echo "$as_me:$LINENO: WARNING: unicode/utf.h:     check for missing prerequisite headers?" >&5
 
23999
echo "$as_me: WARNING: unicode/utf.h:     check for missing prerequisite headers?" >&2;}
 
24000
    { echo "$as_me:$LINENO: WARNING: unicode/utf.h: see the Autoconf documentation" >&5
 
24001
echo "$as_me: WARNING: unicode/utf.h: see the Autoconf documentation" >&2;}
 
24002
    { echo "$as_me:$LINENO: WARNING: unicode/utf.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24003
echo "$as_me: WARNING: unicode/utf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24004
    { echo "$as_me:$LINENO: WARNING: unicode/utf.h: proceeding with the preprocessor's result" >&5
 
24005
echo "$as_me: WARNING: unicode/utf.h: proceeding with the preprocessor's result" >&2;}
 
24006
    { echo "$as_me:$LINENO: WARNING: unicode/utf.h: in the future, the compiler will take precedence" >&5
 
24007
echo "$as_me: WARNING: unicode/utf.h: in the future, the compiler will take precedence" >&2;}
 
24008
    ( cat <<\_ASBOX
 
24009
## -------------------------------------------------------- ##
 
24010
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
24011
## -------------------------------------------------------- ##
 
24012
_ASBOX
 
24013
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
24014
    ;;
 
24015
esac
 
24016
{ echo "$as_me:$LINENO: checking for unicode/utf.h" >&5
 
24017
echo $ECHO_N "checking for unicode/utf.h... $ECHO_C" >&6; }
 
24018
if test "${ac_cv_header_unicode_utf_h+set}" = set; then
 
24019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24020
else
 
24021
  ac_cv_header_unicode_utf_h=$ac_header_preproc
 
24022
fi
 
24023
{ echo "$as_me:$LINENO: result: $ac_cv_header_unicode_utf_h" >&5
 
24024
echo "${ECHO_T}$ac_cv_header_unicode_utf_h" >&6; }
 
24025
 
 
24026
fi
 
24027
if test $ac_cv_header_unicode_utf_h = yes; then
 
24028
  ac_vmw_have_lib_header=1
 
24029
fi
 
24030
 
 
24031
 
 
24032
 
 
24033
         CPPFLAGS="$ORIGINAL_CPPFLAGS"
 
24034
      else
 
24035
         ac_vmw_have_lib_header=1
 
24036
      fi
 
24037
 
 
24038
      # Check a specific function in the library if requested.
 
24039
      # If it hasn't, just pick a random function from libc, just to make
 
24040
      # sure the linker can find the library being tested.
 
24041
      if test $ac_vmw_have_lib_header -eq 1; then
 
24042
         if test -n ""; then
 
24043
            ac_vmw_function=
 
24044
         else
 
24045
            ac_vmw_function=strlen
 
24046
         fi
 
24047
         as_ac_Lib=`echo "ac_cv_lib_icuuc_$ac_vmw_function" | $as_tr_sh`
 
24048
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -licuuc" >&5
 
24049
echo $ECHO_N "checking for $ac_vmw_function in -licuuc... $ECHO_C" >&6; }
 
24050
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
24051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24052
else
 
24053
  ac_check_lib_save_LIBS=$LIBS
 
24054
LIBS="-licuuc ${CUSTOM_ICU_LIBS} $LIBS"
 
24055
cat >conftest.$ac_ext <<_ACEOF
 
24056
/* confdefs.h.  */
 
24057
_ACEOF
 
24058
cat confdefs.h >>conftest.$ac_ext
 
24059
cat >>conftest.$ac_ext <<_ACEOF
 
24060
/* end confdefs.h.  */
 
24061
 
 
24062
/* Override any GCC internal prototype to avoid an error.
 
24063
   Use char because int might match the return type of a GCC
 
24064
   builtin and then its argument prototype would still apply.  */
 
24065
#ifdef __cplusplus
 
24066
extern "C"
 
24067
#endif
 
24068
char $ac_vmw_function ();
 
24069
int
 
24070
main ()
 
24071
{
 
24072
return $ac_vmw_function ();
 
24073
  ;
 
24074
  return 0;
 
24075
}
 
24076
_ACEOF
 
24077
rm -f conftest.$ac_objext conftest$ac_exeext
 
24078
if { (ac_try="$ac_link"
 
24079
case "(($ac_try" in
 
24080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24081
  *) ac_try_echo=$ac_try;;
 
24082
esac
 
24083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24084
  (eval "$ac_link") 2>conftest.er1
 
24085
  ac_status=$?
 
24086
  grep -v '^ *+' conftest.er1 >conftest.err
 
24087
  rm -f conftest.er1
 
24088
  cat conftest.err >&5
 
24089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24090
  (exit $ac_status); } && {
 
24091
         test -z "$ac_cxx_werror_flag" ||
 
24092
         test ! -s conftest.err
 
24093
       } && test -s conftest$ac_exeext &&
 
24094
       $as_test_x conftest$ac_exeext; then
 
24095
  eval "$as_ac_Lib=yes"
 
24096
else
 
24097
  echo "$as_me: failed program was:" >&5
 
24098
sed 's/^/| /' conftest.$ac_ext >&5
 
24099
 
 
24100
        eval "$as_ac_Lib=no"
 
24101
fi
 
24102
 
 
24103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24104
      conftest$ac_exeext conftest.$ac_ext
 
24105
LIBS=$ac_check_lib_save_LIBS
 
24106
fi
 
24107
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
24108
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
24109
echo "${ECHO_T}$ac_res" >&6; }
 
24110
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
24111
  ac_vmw_have_lib_func=1
 
24112
fi
 
24113
 
 
24114
      fi
 
24115
 
 
24116
      if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
 
24117
         ICU_CPPFLAGS="${CUSTOM_ICU_CPPFLAGS}"
 
24118
         ICU_LIBS="${CUSTOM_ICU_LIBS}"
 
24119
         ac_vmw_have_lib=1
 
24120
      fi
 
24121
   fi
 
24122
 
 
24123
   # If that didn't work, try with pkg-config.
 
24124
   if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
 
24125
      if test -n ""; then
 
24126
         { echo "$as_me:$LINENO: checking for  >=  (via pkg-config)" >&5
 
24127
echo $ECHO_N "checking for  >=  (via pkg-config)... $ECHO_C" >&6; }
 
24128
         if pkg-config --exists ' >= '; then
 
24129
            ac_vmw_have_lib=1
 
24130
         fi
 
24131
      else
 
24132
         { echo "$as_me:$LINENO: checking for  (via pkg-config)" >&5
 
24133
echo $ECHO_N "checking for  (via pkg-config)... $ECHO_C" >&6; }
 
24134
         if pkg-config --exists ''; then
 
24135
            ac_vmw_have_lib=1
 
24136
         fi
 
24137
      fi
 
24138
 
 
24139
      if test $ac_vmw_have_lib -eq 1; then
 
24140
         # Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
 
24141
         # fails on OpenSolaris B71. So be pessimistic.
 
24142
         ac_vmw_cppflags="`pkg-config --cflags `"
 
24143
         ac_vmw_ret1=$?
 
24144
         ac_vmw_libs="`pkg-config --libs `"
 
24145
         ac_vmw_ret2=$?
 
24146
         if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
 
24147
            { echo "$as_me:$LINENO: result: yes" >&5
 
24148
echo "${ECHO_T}yes" >&6; }
 
24149
            ICU_CPPFLAGS="$ac_vmw_cppflags"
 
24150
            ICU_LIBS="$ac_vmw_libs"
 
24151
         else
 
24152
            { echo "$as_me:$LINENO: result: no" >&5
 
24153
echo "${ECHO_T}no" >&6; }
 
24154
         fi
 
24155
      else
 
24156
         { echo "$as_me:$LINENO: result: no" >&5
 
24157
echo "${ECHO_T}no" >&6; }
 
24158
      fi
 
24159
   fi
 
24160
 
 
24161
   # If we still haven't found the lib, try with the library's custom "config" script.
 
24162
   # Before checking, flush the AC_PATH_PROG cached variable.
 
24163
   unset ac_cv_path_ac_vmw_lib_cfg
 
24164
   unset ac_vmw_lib_cfg
 
24165
   if test $ac_vmw_have_lib -eq 0 && test -n "icu-config"; then
 
24166
      # Extract the first word of "icu-config", so it can be a program name with args.
 
24167
set dummy icu-config; ac_word=$2
 
24168
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
24170
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
 
24171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24172
else
 
24173
  case $ac_vmw_lib_cfg in
 
24174
  [\\/]* | ?:[\\/]*)
 
24175
  ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
 
24176
  ;;
 
24177
  *)
 
24178
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24179
for as_dir in $PATH
 
24180
do
 
24181
  IFS=$as_save_IFS
 
24182
  test -z "$as_dir" && as_dir=.
 
24183
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24184
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
24185
    ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
 
24186
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24187
    break 2
 
24188
  fi
 
24189
done
 
24190
done
 
24191
IFS=$as_save_IFS
 
24192
 
 
24193
  test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
 
24194
  ;;
 
24195
esac
 
24196
fi
 
24197
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
 
24198
if test -n "$ac_vmw_lib_cfg"; then
 
24199
  { echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
 
24200
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
 
24201
else
 
24202
  { echo "$as_me:$LINENO: result: no" >&5
 
24203
echo "${ECHO_T}no" >&6; }
 
24204
fi
 
24205
 
 
24206
 
 
24207
      if test "$ac_vmw_lib_cfg" != "no"; then
 
24208
         # XXX: icu-config does not follow the "--cflags" and "--libs" convention,
 
24209
         # so single it out here to avoid having to replicate all the rest of the
 
24210
         # logic elsewhere.
 
24211
         if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
 
24212
            ICU_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
 
24213
            ICU_LIBS="`$ac_vmw_lib_cfg --ldflags`"
 
24214
         else
 
24215
            ICU_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
 
24216
            ICU_LIBS="`$ac_vmw_lib_cfg --libs`"
 
24217
         fi
 
24218
         ac_vmw_have_lib=1
 
24219
      fi
 
24220
   fi
 
24221
 
 
24222
   # Finish by executing the user provided action. The call to "true" is needed
 
24223
   # because the actions are optional, and we need something inside the block.
 
24224
   if test $ac_vmw_have_lib -eq 1; then
 
24225
 
 
24226
 
 
24227
      true
 
24228
      ICU_CPPFLAGS="$ICU_CPPFLAGS -DUSE_ICU"
 
24229
   else
 
24230
      true
 
24231
      { { echo "$as_me:$LINENO: error: ICU library not found. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org" >&5
 
24232
echo "$as_me: error: ICU library not found. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org" >&2;}
 
24233
   { (exit 1); exit 1; }; }
 
24234
   fi
 
24235
 
 
24236
   ac_ext=c
 
24237
ac_cpp='$CPP $CPPFLAGS'
 
24238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
24241
 
 
24242
 
 
24243
   # Check whether we have ICU 3.8.
 
24244
   ac_ext=cpp
 
24245
ac_cpp='$CXXCPP $CPPFLAGS'
 
24246
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
24247
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
24248
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
24249
 
 
24250
   { echo "$as_me:$LINENO: checking for ucasemap_utf8ToTitle_3_8 in -licuuc" >&5
19700
24251
echo $ECHO_N "checking for ucasemap_utf8ToTitle_3_8 in -licuuc... $ECHO_C" >&6; }
19701
24252
if test "${ac_cv_lib_icuuc_ucasemap_utf8ToTitle_3_8+set}" = set; then
19702
24253
  echo $ECHO_N "(cached) $ECHO_C" >&6
19758
24309
{ echo "$as_me:$LINENO: result: $ac_cv_lib_icuuc_ucasemap_utf8ToTitle_3_8" >&5
19759
24310
echo "${ECHO_T}$ac_cv_lib_icuuc_ucasemap_utf8ToTitle_3_8" >&6; }
19760
24311
if test $ac_cv_lib_icuuc_ucasemap_utf8ToTitle_3_8 = yes; then
19761
 
  have_ICU_38="yes"
 
24312
  ICU_CPPFLAGS="$ICU_CPPFLAGS -DHAVE_ICU_38"
19762
24313
fi
19763
24314
 
19764
 
                ac_ext=c
 
24315
   ac_ext=c
19765
24316
ac_cpp='$CPP $CPPFLAGS'
19766
24317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19767
24318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19768
24319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19769
24320
 
19770
24321
 
19771
 
                if test "$have_ICU_38" = "yes"; then
19772
 
                        ICU_CPPFLAGS="$ICU_CPPFLAGS -DHAVE_ICU_38"
19773
 
                fi
19774
 
 
19775
 
                # Easier to give all modules the ICU defines/includes...
19776
 
                CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
19777
 
        else
19778
 
                { { echo "$as_me:$LINENO: error: icu-config was not found on your PATH. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org" >&5
19779
 
echo "$as_me: error: icu-config was not found on your PATH. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org" >&2;}
19780
 
   { (exit 1); exit 1; }; }
19781
 
        fi
 
24322
   # Easier to give all modules the ICU defines/includes...
 
24323
   CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
19782
24324
fi
19783
24325
 
19784
24326
# Extract the first word of "rpcgen", so it can be a program name with args.
23245
27787
CPPFLAGS="$CPPFLAGS -DVMX86_TOOLS"
23246
27788
CPPFLAGS="$CPPFLAGS -DNO_CORE_ICU"
23247
27789
 
 
27790
# -fvisibility is used by "core service" plugins, but not required.
 
27791
ORIGINAL_CFLAGS="$CFLAGS"
 
27792
CFLAGS="$CFLAGS -fvisibility=hidden"
 
27793
{ echo "$as_me:$LINENO: checking for GCC flag -fvisibility" >&5
 
27794
echo $ECHO_N "checking for GCC flag -fvisibility... $ECHO_C" >&6; }
 
27795
cat >conftest.$ac_ext <<_ACEOF
 
27796
/* confdefs.h.  */
 
27797
_ACEOF
 
27798
cat confdefs.h >>conftest.$ac_ext
 
27799
cat >>conftest.$ac_ext <<_ACEOF
 
27800
/* end confdefs.h.  */
 
27801
 
 
27802
int
 
27803
main ()
 
27804
{
 
27805
return 0;
 
27806
  ;
 
27807
  return 0;
 
27808
}
 
27809
_ACEOF
 
27810
rm -f conftest.$ac_objext
 
27811
if { (ac_try="$ac_compile"
 
27812
case "(($ac_try" in
 
27813
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27814
  *) ac_try_echo=$ac_try;;
 
27815
esac
 
27816
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27817
  (eval "$ac_compile") 2>conftest.er1
 
27818
  ac_status=$?
 
27819
  grep -v '^ *+' conftest.er1 >conftest.err
 
27820
  rm -f conftest.er1
 
27821
  cat conftest.err >&5
 
27822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27823
  (exit $ac_status); } && {
 
27824
         test -z "$ac_c_werror_flag" ||
 
27825
         test ! -s conftest.err
 
27826
       } && test -s conftest.$ac_objext; then
 
27827
  PLUGIN_CPPFLAGS="-fvisibility=hidden -DGCC_EXPLICIT_EXPORT";
 
27828
                { echo "$as_me:$LINENO: result: yes" >&5
 
27829
echo "${ECHO_T}yes" >&6; }
 
27830
else
 
27831
  echo "$as_me: failed program was:" >&5
 
27832
sed 's/^/| /' conftest.$ac_ext >&5
 
27833
 
 
27834
        { echo "$as_me:$LINENO: result: no" >&5
 
27835
echo "${ECHO_T}no" >&6; }
 
27836
fi
 
27837
 
 
27838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27839
CFLAGS="$ORIGINAL_CFLAGS"
 
27840
 
 
27841
BUILDDIR="`pwd`"
 
27842
 
23248
27843
INCLUDE_DIR="`cd $srcdir; pwd`/lib/include"
23249
 
CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR"
 
27844
BLD_INCLUDE_DIR="$BUILDDIR/lib/include"
 
27845
CPPFLAGS="-I$INCLUDE_DIR -I$BLD_INCLUDE_DIR $CPPFLAGS"
23250
27846
 
23251
27847
### OS/arch-specific flags / actions
23252
27848
 
23278
27874
   if test "$osVersion" -ge 206006; then
23279
27875
      MODULES="$MODULES vmsync"
23280
27876
   fi
 
27877
   if test "$osVersion" -ge 206008; then
 
27878
      MODULES="$MODULES pvscsi"
 
27879
   fi
23281
27880
fi
23282
27881
 
23283
27882
if test "$os" = "freebsd"; then
23293
27892
      MODULES="$MODULES vmblock vmhgfs"
23294
27893
      buildHgfsmounter=yes
23295
27894
   fi
 
27895
 
 
27896
   if test "$with_kernel_modules" = "yes"; then
 
27897
      echo "****************************************************************"
 
27898
      echo "   You are building FreeBSD kernel modules. Make sure you use   "
 
27899
      echo "   'make' to build open-vm-tools, and not GNU make ('gmake').   "
 
27900
      echo "****************************************************************"
 
27901
   fi
23296
27902
fi
23297
27903
 
23298
27904
if test "$os" = "solaris"; then
23310
27916
   VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lnsl"
23311
27917
   VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lrpcsvc"
23312
27918
 
23313
 
   # uname -r on Solaris 10 reports "5.10"
 
27919
   # Setup defines to identify the OS version.
 
27920
   if test "$osVersion" -eq 509000; then
 
27921
      CPPFLAGS="$CPPFLAGS -DSOL9"
 
27922
   fi
 
27923
   if test "$osVersion" -eq 510000; then
 
27924
      CPPFLAGS="$CPPFLAGS -DSOL10"
 
27925
   fi
 
27926
   if test "$osVersion" -eq 511000; then
 
27927
      CPPFLAGS="$CPPFLAGS -DSOL11"
 
27928
   fi
 
27929
 
 
27930
   # Choose which modules to compile
 
27931
   if test "$osVersion" -eq 510000; then
 
27932
      MODULES="$MODULES vmblock"
 
27933
   fi
23314
27934
   if test "$osVersion" -ge 510000; then
23315
 
      CPPFLAGS="$CPPFLAGS -DSOL10"
 
27935
      MODULES="$MODULES vmhgfs"
 
27936
   fi
 
27937
 
 
27938
   # We build vmxnet on Solaris 9 and 10
 
27939
   if test "$osVersion" -lt 511000 -a "$osVersion" -ge 509000; then
 
27940
      MODULES="$MODULES vmxnet"
 
27941
   fi
 
27942
 
 
27943
   # Vmxnet3 is built on Solaris 10 only and only if GLDv3 is installed
 
27944
   if test "$osVersion" -eq 510000; then
 
27945
      if test "${ac_cv_header_sys_mac_h+set}" = set; then
 
27946
  { echo "$as_me:$LINENO: checking for sys/mac.h" >&5
 
27947
echo $ECHO_N "checking for sys/mac.h... $ECHO_C" >&6; }
 
27948
if test "${ac_cv_header_sys_mac_h+set}" = set; then
 
27949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27950
fi
 
27951
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mac_h" >&5
 
27952
echo "${ECHO_T}$ac_cv_header_sys_mac_h" >&6; }
 
27953
else
 
27954
  # Is the header compilable?
 
27955
{ echo "$as_me:$LINENO: checking sys/mac.h usability" >&5
 
27956
echo $ECHO_N "checking sys/mac.h usability... $ECHO_C" >&6; }
 
27957
cat >conftest.$ac_ext <<_ACEOF
 
27958
/* confdefs.h.  */
 
27959
_ACEOF
 
27960
cat confdefs.h >>conftest.$ac_ext
 
27961
cat >>conftest.$ac_ext <<_ACEOF
 
27962
/* end confdefs.h.  */
 
27963
$ac_includes_default
 
27964
#include <sys/mac.h>
 
27965
_ACEOF
 
27966
rm -f conftest.$ac_objext
 
27967
if { (ac_try="$ac_compile"
 
27968
case "(($ac_try" in
 
27969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
27970
  *) ac_try_echo=$ac_try;;
 
27971
esac
 
27972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
27973
  (eval "$ac_compile") 2>conftest.er1
 
27974
  ac_status=$?
 
27975
  grep -v '^ *+' conftest.er1 >conftest.err
 
27976
  rm -f conftest.er1
 
27977
  cat conftest.err >&5
 
27978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27979
  (exit $ac_status); } && {
 
27980
         test -z "$ac_c_werror_flag" ||
 
27981
         test ! -s conftest.err
 
27982
       } && test -s conftest.$ac_objext; then
 
27983
  ac_header_compiler=yes
 
27984
else
 
27985
  echo "$as_me: failed program was:" >&5
 
27986
sed 's/^/| /' conftest.$ac_ext >&5
 
27987
 
 
27988
        ac_header_compiler=no
 
27989
fi
 
27990
 
 
27991
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
27992
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27993
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
27994
 
 
27995
# Is the header present?
 
27996
{ echo "$as_me:$LINENO: checking sys/mac.h presence" >&5
 
27997
echo $ECHO_N "checking sys/mac.h presence... $ECHO_C" >&6; }
 
27998
cat >conftest.$ac_ext <<_ACEOF
 
27999
/* confdefs.h.  */
 
28000
_ACEOF
 
28001
cat confdefs.h >>conftest.$ac_ext
 
28002
cat >>conftest.$ac_ext <<_ACEOF
 
28003
/* end confdefs.h.  */
 
28004
#include <sys/mac.h>
 
28005
_ACEOF
 
28006
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
28007
case "(($ac_try" in
 
28008
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
28009
  *) ac_try_echo=$ac_try;;
 
28010
esac
 
28011
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
28012
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
28013
  ac_status=$?
 
28014
  grep -v '^ *+' conftest.er1 >conftest.err
 
28015
  rm -f conftest.er1
 
28016
  cat conftest.err >&5
 
28017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28018
  (exit $ac_status); } >/dev/null && {
 
28019
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
28020
         test ! -s conftest.err
 
28021
       }; then
 
28022
  ac_header_preproc=yes
 
28023
else
 
28024
  echo "$as_me: failed program was:" >&5
 
28025
sed 's/^/| /' conftest.$ac_ext >&5
 
28026
 
 
28027
  ac_header_preproc=no
 
28028
fi
 
28029
 
 
28030
rm -f conftest.err conftest.$ac_ext
 
28031
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
28032
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
28033
 
 
28034
# So?  What about this header?
 
28035
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
28036
  yes:no: )
 
28037
    { echo "$as_me:$LINENO: WARNING: sys/mac.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
28038
echo "$as_me: WARNING: sys/mac.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
28039
    { echo "$as_me:$LINENO: WARNING: sys/mac.h: proceeding with the compiler's result" >&5
 
28040
echo "$as_me: WARNING: sys/mac.h: proceeding with the compiler's result" >&2;}
 
28041
    ac_header_preproc=yes
 
28042
    ;;
 
28043
  no:yes:* )
 
28044
    { echo "$as_me:$LINENO: WARNING: sys/mac.h: present but cannot be compiled" >&5
 
28045
echo "$as_me: WARNING: sys/mac.h: present but cannot be compiled" >&2;}
 
28046
    { echo "$as_me:$LINENO: WARNING: sys/mac.h:     check for missing prerequisite headers?" >&5
 
28047
echo "$as_me: WARNING: sys/mac.h:     check for missing prerequisite headers?" >&2;}
 
28048
    { echo "$as_me:$LINENO: WARNING: sys/mac.h: see the Autoconf documentation" >&5
 
28049
echo "$as_me: WARNING: sys/mac.h: see the Autoconf documentation" >&2;}
 
28050
    { echo "$as_me:$LINENO: WARNING: sys/mac.h:     section \"Present But Cannot Be Compiled\"" >&5
 
28051
echo "$as_me: WARNING: sys/mac.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
28052
    { echo "$as_me:$LINENO: WARNING: sys/mac.h: proceeding with the preprocessor's result" >&5
 
28053
echo "$as_me: WARNING: sys/mac.h: proceeding with the preprocessor's result" >&2;}
 
28054
    { echo "$as_me:$LINENO: WARNING: sys/mac.h: in the future, the compiler will take precedence" >&5
 
28055
echo "$as_me: WARNING: sys/mac.h: in the future, the compiler will take precedence" >&2;}
 
28056
    ( cat <<\_ASBOX
 
28057
## -------------------------------------------------------- ##
 
28058
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
 
28059
## -------------------------------------------------------- ##
 
28060
_ASBOX
 
28061
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
28062
    ;;
 
28063
esac
 
28064
{ echo "$as_me:$LINENO: checking for sys/mac.h" >&5
 
28065
echo $ECHO_N "checking for sys/mac.h... $ECHO_C" >&6; }
 
28066
if test "${ac_cv_header_sys_mac_h+set}" = set; then
 
28067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28068
else
 
28069
  ac_cv_header_sys_mac_h=$ac_header_preproc
 
28070
fi
 
28071
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_mac_h" >&5
 
28072
echo "${ECHO_T}$ac_cv_header_sys_mac_h" >&6; }
 
28073
 
 
28074
fi
 
28075
if test $ac_cv_header_sys_mac_h = yes; then
 
28076
  MODULES="$MODULES vmxnet3"
 
28077
else
 
28078
  { echo "$as_me:$LINENO: WARNING: GLDv3 (sys/mac.h) is not installed, vmxnet3 will not be compiled." >&5
 
28079
echo "$as_me: WARNING: GLDv3 (sys/mac.h) is not installed, vmxnet3 will not be compiled." >&2;}
 
28080
fi
 
28081
 
 
28082
 
 
28083
   fi
 
28084
 
 
28085
   if test "$with_kernel_modules" = "yes"; then
 
28086
      echo "****************************************************************"
 
28087
      echo "   You are building Solaris kernel modules. Make sure you use   "
 
28088
      echo "   GNU make to build open-vm-tools.                             "
 
28089
      echo "****************************************************************"
23316
28090
   fi
23317
28091
fi
23318
28092
 
23348
28122
  FREEBSD_FALSE=
23349
28123
fi
23350
28124
 
 
28125
 if test "$os" = "freebsd" -a -n "$SYSDIR"; then
 
28126
  FREEBSD_CUSTOM_SYSDIR_TRUE=
 
28127
  FREEBSD_CUSTOM_SYSDIR_FALSE='#'
 
28128
else
 
28129
  FREEBSD_CUSTOM_SYSDIR_TRUE='#'
 
28130
  FREEBSD_CUSTOM_SYSDIR_FALSE=
 
28131
fi
 
28132
 
23351
28133
 if test "$userSpaceBitness" = "32"; then
23352
28134
  THIRTY_TWO_BIT_USERSPACE_TRUE=
23353
28135
  THIRTY_TWO_BIT_USERSPACE_FALSE='#'
23404
28186
  WITH_ROOT_PRIVILEGES_FALSE=
23405
28187
fi
23406
28188
 
 
28189
 if test "$have_fuse" = "yes"; then
 
28190
  HAVE_FUSE_TRUE=
 
28191
  HAVE_FUSE_FALSE='#'
 
28192
else
 
28193
  HAVE_FUSE_TRUE='#'
 
28194
  HAVE_FUSE_FALSE=
 
28195
fi
 
28196
 
 
28197
 if test "$with_gnu_ld" = "yes"; then
 
28198
  HAVE_GNU_LD_TRUE=
 
28199
  HAVE_GNU_LD_FALSE='#'
 
28200
else
 
28201
  HAVE_GNU_LD_TRUE='#'
 
28202
  HAVE_GNU_LD_FALSE=
 
28203
fi
 
28204
 
 
28205
 if test "$have_x" = "yes" -a "$with_gtkmm" = "yes"; then
 
28206
  HAVE_GTKMM_TRUE=
 
28207
  HAVE_GTKMM_FALSE='#'
 
28208
else
 
28209
  HAVE_GTKMM_TRUE='#'
 
28210
  HAVE_GTKMM_FALSE=
 
28211
fi
 
28212
 
23407
28213
 
23408
28214
### Feature-specific flags / actions
23409
28215
# Combine where possible
23440
28246
 
23441
28247
if test "$HAVE_CRYPT" = "yes"; then
23442
28248
   LIB_AUTH_CPPFLAGS="$LIB_AUTH_CPPFLAGS -DGLIBC_VERSION_22"
 
28249
   GUESTD_LDADD="$GUESTD_LDADD -lcrypt"
 
28250
   VIX_LIBADD="$VIX_LIBADD -lcrypt"
23443
28251
fi
23444
28252
 
23445
28253
if test "$HAVE_WCHAR_H" = "yes"; then
23446
28254
   LIB_STRING_CPPFLAGS="$LIB_STRING_CPPFLAGS -DGLIBC_VERSION_22"
23447
28255
fi
23448
28256
 
 
28257
if test "$HAVE_PTHREAD" = "yes"; then
 
28258
   GUESTD_LDADD="$GUESTD_LDADD -lpthread"
 
28259
   VIX_LIBADD="$VIX_LIBADD -lpthread"
 
28260
   VMWARE_USER_LDADD="$VMWARE_USER_LDADD -lpthread"
 
28261
fi
 
28262
 
 
28263
### Core Services definitions.
 
28264
 
 
28265
VMTOOLS_LIBS="$BUILDDIR/libvmtools/libvmtools.la $GLIB2_LIBS"
 
28266
VMTOOLS_CPPFLAGS="-DVMTOOLS_USE_GLIB $GLIB2_CPPFLAGS"
 
28267
 
 
28268
PLUGIN_CPPFLAGS="$VMTOOLS_CPPFLAGS $PLUGIN_CPPFLAGS"
 
28269
 
 
28270
# For plugins, we'd like to build shared libraries but not install them in the
 
28271
# usual shared library destination. Problem is, "noinst_LTLIBRARIES" does not
 
28272
# create shared libraries by itself: the "rpath" flag seems to be needed to tell
 
28273
# libtool it should create one. All I've found as far as documentation goes is
 
28274
# this:
 
28275
#
 
28276
# http://lists.gnu.org/archive/html/libtool/2007-07/msg00065.html
 
28277
#
 
28278
# The other options are common options we use when building shared libraries.
 
28279
PLUGIN_LDFLAGS="-rpath `pwd` -Wl,-z,defs -Wl,-lc"
 
28280
 
 
28281
# In Solaris, the XDR-related functions are not in libc like in Linux and
 
28282
# FreeBSD, so binaries need to be linked to some extra libraries.
 
28283
XDR_LIBS=
 
28284
if test "$os" = "solaris"; then
 
28285
   XDR_LIBS="-lnsl -lrpcsvc"
 
28286
fi
 
28287
 
 
28288
# Installation directories for core services plugins.
 
28289
VMSVC_PLUGIN_INSTALLDIR=$libdir/open-vm-tools/plugins/vmsvc
 
28290
VMUSR_PLUGIN_INSTALLDIR=$libdir/open-vm-tools/plugins/vmusr
 
28291
 
23449
28292
### General substs
23450
28293
 
23451
28294
 
23463
28306
 
23464
28307
 
23465
28308
 
23466
 
 
23467
 
 
23468
 
 
23469
 
 
23470
 
 
 
28309
if test "$os" = "freebsd" -a -n "$SYSDIR"; then
 
28310
   # If SYSDIR is not defined, AC_SUBST expands to nothing, so we need something
 
28311
   # inside this block.
 
28312
   true
 
28313
 
 
28314
fi
23471
28315
 
23472
28316
### Lib substs
23473
28317
 
23480
28324
 
23481
28325
 
23482
28326
 
 
28327
LIBVMTOOLS_LIBADD="$GUESTD_LDADD"
 
28328
 
 
28329
 
23483
28330
### Program substs
23484
28331
 
23485
28332
 
23490
28337
###
23491
28338
### Create the Makefiles
23492
28339
###
23493
 
ac_config_files="$ac_config_files Makefile lib/Makefile lib/appUtil/Makefile lib/auth/Makefile lib/backdoor/Makefile lib/backdoor/shared/Makefile lib/conf/Makefile lib/dict/Makefile lib/dnd/Makefile lib/dynxdr/Makefile lib/err/Makefile lib/eventManager/Makefile lib/file/Makefile lib/foundryMsg/Makefile lib/ghIntegration/Makefile lib/ghIntegrationStub/Makefile lib/guestApp/Makefile lib/guestInfo/Makefile lib/guestRpc/Makefile lib/hgfs/Makefile lib/hgfsBd/Makefile lib/hgfsServer/Makefile lib/hgfsServerManagerGuest/Makefile lib/hgfsServerPolicyGuest/Makefile lib/deployPkg/Makefile lib/image/Makefile lib/impersonate/Makefile lib/message/Makefile lib/message/shared/Makefile lib/misc/Makefile lib/misc/shared/Makefile lib/netUtil/Makefile lib/panic/Makefile lib/panicDefault/Makefile lib/printer/Makefile lib/procMgr/Makefile lib/raster/Makefile lib/region/Makefile lib/resolution/Makefile lib/rpcIn/Makefile lib/rpcOut/Makefile lib/rpcOut/shared/Makefile lib/rpcVmx/Makefile lib/SLPv2Parser/Makefile lib/socketMgr/Makefile lib/string/Makefile lib/string/shared/Makefile lib/stubs/Makefile lib/stubs/shared/Makefile lib/sync/Makefile lib/sync/shared/Makefile lib/syncDriver/Makefile lib/system/Makefile lib/toolsLogger/Makefile lib/unicode/Makefile lib/unity/Makefile lib/unityStub/Makefile lib/unityWindowTracker/Makefile lib/user/Makefile lib/vixTools/Makefile lib/vmBackupLib/Makefile lib/vmCheck/Makefile lib/vmSignal/Makefile lib/wiper/Makefile guestd/Makefile vmware-user/Makefile vmware-user-suid-wrapper/Makefile toolbox/Makefile hgfsclient/Makefile hgfsmounter/Makefile checkvm/Makefile libguestlib/Makefile xferlogs/Makefile modules/Makefile scripts/Makefile"
 
28340
ac_config_files="$ac_config_files Makefile lib/Makefile lib/appUtil/Makefile lib/auth/Makefile lib/backdoor/Makefile lib/conf/Makefile lib/dict/Makefile lib/dnd/Makefile lib/dndGuest/Makefile lib/dynxdr/Makefile lib/err/Makefile lib/eventManager/Makefile lib/file/Makefile lib/foundryMsg/Makefile lib/ghIntegration/Makefile lib/ghIntegrationStub/Makefile lib/guestApp/Makefile lib/guestInfo/Makefile lib/guestRpc/Makefile lib/hgfs/Makefile lib/hgfsBd/Makefile lib/hgfsServer/Makefile lib/hgfsServerManagerGuest/Makefile lib/hgfsServerPolicyGuest/Makefile lib/deployPkg/Makefile lib/image/Makefile lib/impersonate/Makefile lib/message/Makefile lib/misc/Makefile lib/netUtil/Makefile lib/panic/Makefile lib/panicDefault/Makefile lib/printer/Makefile lib/procMgr/Makefile lib/raster/Makefile lib/region/Makefile lib/resolution/Makefile lib/rpcChannel/Makefile lib/rpcIn/Makefile lib/rpcOut/Makefile lib/rpcVmx/Makefile lib/SLPv2Parser/Makefile lib/socketMgr/Makefile lib/string/Makefile lib/stubs/Makefile lib/sync/Makefile lib/syncDriver/Makefile lib/system/Makefile lib/unicode/Makefile lib/unity/Makefile lib/unityStub/Makefile lib/unityWindowTracker/Makefile lib/user/Makefile lib/vixTools/Makefile lib/vmBackupLib/Makefile lib/vmCheck/Makefile lib/vmSignal/Makefile lib/wiper/Makefile guestd/Makefile services/Makefile services/vmtoolsd/Makefile services/plugins/Makefile services/plugins/guestInfo/Makefile services/plugins/hgfsServer/Makefile services/plugins/powerOps/Makefile services/plugins/resolutionSet/Makefile services/plugins/timeSync/Makefile services/plugins/vix/Makefile services/plugins/vixUser/Makefile services/plugins/vmbackup/Makefile vmware-user/Makefile vmware-user-suid-wrapper/Makefile toolbox/Makefile hgfsclient/Makefile hgfsmounter/Makefile checkvm/Makefile rpctool/Makefile libguestlib/Makefile libvmtools/Makefile xferlogs/Makefile modules/Makefile vmblock-fuse/Makefile tests/Makefile tests/vmrpcdbg/Makefile tests/testDebug/Makefile tests/testPlugin/Makefile scripts/Makefile"
23494
28341
 
23495
28342
 
23496
28343
###
23685
28532
Usually this means the macro was only invoked conditionally." >&2;}
23686
28533
   { (exit 1); exit 1; }; }
23687
28534
fi
 
28535
if test -z "${FREEBSD_CUSTOM_SYSDIR_TRUE}" && test -z "${FREEBSD_CUSTOM_SYSDIR_FALSE}"; then
 
28536
  { { echo "$as_me:$LINENO: error: conditional \"FREEBSD_CUSTOM_SYSDIR\" was never defined.
 
28537
Usually this means the macro was only invoked conditionally." >&5
 
28538
echo "$as_me: error: conditional \"FREEBSD_CUSTOM_SYSDIR\" was never defined.
 
28539
Usually this means the macro was only invoked conditionally." >&2;}
 
28540
   { (exit 1); exit 1; }; }
 
28541
fi
23688
28542
if test -z "${THIRTY_TWO_BIT_USERSPACE_TRUE}" && test -z "${THIRTY_TWO_BIT_USERSPACE_FALSE}"; then
23689
28543
  { { echo "$as_me:$LINENO: error: conditional \"THIRTY_TWO_BIT_USERSPACE\" was never defined.
23690
28544
Usually this means the macro was only invoked conditionally." >&5
23734
28588
Usually this means the macro was only invoked conditionally." >&2;}
23735
28589
   { (exit 1); exit 1; }; }
23736
28590
fi
 
28591
if test -z "${HAVE_FUSE_TRUE}" && test -z "${HAVE_FUSE_FALSE}"; then
 
28592
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_FUSE\" was never defined.
 
28593
Usually this means the macro was only invoked conditionally." >&5
 
28594
echo "$as_me: error: conditional \"HAVE_FUSE\" was never defined.
 
28595
Usually this means the macro was only invoked conditionally." >&2;}
 
28596
   { (exit 1); exit 1; }; }
 
28597
fi
 
28598
if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
 
28599
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GNU_LD\" was never defined.
 
28600
Usually this means the macro was only invoked conditionally." >&5
 
28601
echo "$as_me: error: conditional \"HAVE_GNU_LD\" was never defined.
 
28602
Usually this means the macro was only invoked conditionally." >&2;}
 
28603
   { (exit 1); exit 1; }; }
 
28604
fi
 
28605
if test -z "${HAVE_GTKMM_TRUE}" && test -z "${HAVE_GTKMM_FALSE}"; then
 
28606
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTKMM\" was never defined.
 
28607
Usually this means the macro was only invoked conditionally." >&5
 
28608
echo "$as_me: error: conditional \"HAVE_GTKMM\" was never defined.
 
28609
Usually this means the macro was only invoked conditionally." >&2;}
 
28610
   { (exit 1); exit 1; }; }
 
28611
fi
23737
28612
 
23738
28613
: ${CONFIG_STATUS=./config.status}
23739
28614
ac_clean_files_save=$ac_clean_files
24034
28909
# report actual input values of CONFIG_FILES etc. instead of their
24035
28910
# values after options handling.
24036
28911
ac_log="
24037
 
This file was extended by open-vm-tools $as_me 2008.11.18-130226, which was
 
28912
This file was extended by open-vm-tools $as_me 2009.03.18, which was
24038
28913
generated by GNU Autoconf 2.61.  Invocation command line was
24039
28914
 
24040
28915
  CONFIG_FILES    = $CONFIG_FILES
24081
28956
_ACEOF
24082
28957
cat >>$CONFIG_STATUS <<_ACEOF
24083
28958
ac_cs_version="\\
24084
 
open-vm-tools config.status 2008.11.18-130226
 
28959
open-vm-tools config.status 2009.03.18
24085
28960
configured by $0, generated by GNU Autoconf 2.61,
24086
28961
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24087
28962
 
24536
29411
    "lib/appUtil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/appUtil/Makefile" ;;
24537
29412
    "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
24538
29413
    "lib/backdoor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/backdoor/Makefile" ;;
24539
 
    "lib/backdoor/shared/Makefile") CONFIG_FILES="$CONFIG_FILES lib/backdoor/shared/Makefile" ;;
24540
29414
    "lib/conf/Makefile") CONFIG_FILES="$CONFIG_FILES lib/conf/Makefile" ;;
24541
29415
    "lib/dict/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dict/Makefile" ;;
24542
29416
    "lib/dnd/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dnd/Makefile" ;;
 
29417
    "lib/dndGuest/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dndGuest/Makefile" ;;
24543
29418
    "lib/dynxdr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dynxdr/Makefile" ;;
24544
29419
    "lib/err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/err/Makefile" ;;
24545
29420
    "lib/eventManager/Makefile") CONFIG_FILES="$CONFIG_FILES lib/eventManager/Makefile" ;;
24559
29434
    "lib/image/Makefile") CONFIG_FILES="$CONFIG_FILES lib/image/Makefile" ;;
24560
29435
    "lib/impersonate/Makefile") CONFIG_FILES="$CONFIG_FILES lib/impersonate/Makefile" ;;
24561
29436
    "lib/message/Makefile") CONFIG_FILES="$CONFIG_FILES lib/message/Makefile" ;;
24562
 
    "lib/message/shared/Makefile") CONFIG_FILES="$CONFIG_FILES lib/message/shared/Makefile" ;;
24563
29437
    "lib/misc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/misc/Makefile" ;;
24564
 
    "lib/misc/shared/Makefile") CONFIG_FILES="$CONFIG_FILES lib/misc/shared/Makefile" ;;
24565
29438
    "lib/netUtil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/netUtil/Makefile" ;;
24566
29439
    "lib/panic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/panic/Makefile" ;;
24567
29440
    "lib/panicDefault/Makefile") CONFIG_FILES="$CONFIG_FILES lib/panicDefault/Makefile" ;;
24570
29443
    "lib/raster/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raster/Makefile" ;;
24571
29444
    "lib/region/Makefile") CONFIG_FILES="$CONFIG_FILES lib/region/Makefile" ;;
24572
29445
    "lib/resolution/Makefile") CONFIG_FILES="$CONFIG_FILES lib/resolution/Makefile" ;;
 
29446
    "lib/rpcChannel/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcChannel/Makefile" ;;
24573
29447
    "lib/rpcIn/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcIn/Makefile" ;;
24574
29448
    "lib/rpcOut/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcOut/Makefile" ;;
24575
 
    "lib/rpcOut/shared/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcOut/shared/Makefile" ;;
24576
29449
    "lib/rpcVmx/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcVmx/Makefile" ;;
24577
29450
    "lib/SLPv2Parser/Makefile") CONFIG_FILES="$CONFIG_FILES lib/SLPv2Parser/Makefile" ;;
24578
29451
    "lib/socketMgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/socketMgr/Makefile" ;;
24579
29452
    "lib/string/Makefile") CONFIG_FILES="$CONFIG_FILES lib/string/Makefile" ;;
24580
 
    "lib/string/shared/Makefile") CONFIG_FILES="$CONFIG_FILES lib/string/shared/Makefile" ;;
24581
29453
    "lib/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/stubs/Makefile" ;;
24582
 
    "lib/stubs/shared/Makefile") CONFIG_FILES="$CONFIG_FILES lib/stubs/shared/Makefile" ;;
24583
29454
    "lib/sync/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sync/Makefile" ;;
24584
 
    "lib/sync/shared/Makefile") CONFIG_FILES="$CONFIG_FILES lib/sync/shared/Makefile" ;;
24585
29455
    "lib/syncDriver/Makefile") CONFIG_FILES="$CONFIG_FILES lib/syncDriver/Makefile" ;;
24586
29456
    "lib/system/Makefile") CONFIG_FILES="$CONFIG_FILES lib/system/Makefile" ;;
24587
 
    "lib/toolsLogger/Makefile") CONFIG_FILES="$CONFIG_FILES lib/toolsLogger/Makefile" ;;
24588
29457
    "lib/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/unicode/Makefile" ;;
24589
29458
    "lib/unity/Makefile") CONFIG_FILES="$CONFIG_FILES lib/unity/Makefile" ;;
24590
29459
    "lib/unityStub/Makefile") CONFIG_FILES="$CONFIG_FILES lib/unityStub/Makefile" ;;
24596
29465
    "lib/vmSignal/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vmSignal/Makefile" ;;
24597
29466
    "lib/wiper/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wiper/Makefile" ;;
24598
29467
    "guestd/Makefile") CONFIG_FILES="$CONFIG_FILES guestd/Makefile" ;;
 
29468
    "services/Makefile") CONFIG_FILES="$CONFIG_FILES services/Makefile" ;;
 
29469
    "services/vmtoolsd/Makefile") CONFIG_FILES="$CONFIG_FILES services/vmtoolsd/Makefile" ;;
 
29470
    "services/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/Makefile" ;;
 
29471
    "services/plugins/guestInfo/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/guestInfo/Makefile" ;;
 
29472
    "services/plugins/hgfsServer/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/hgfsServer/Makefile" ;;
 
29473
    "services/plugins/powerOps/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/powerOps/Makefile" ;;
 
29474
    "services/plugins/resolutionSet/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/resolutionSet/Makefile" ;;
 
29475
    "services/plugins/timeSync/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/timeSync/Makefile" ;;
 
29476
    "services/plugins/vix/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/vix/Makefile" ;;
 
29477
    "services/plugins/vixUser/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/vixUser/Makefile" ;;
 
29478
    "services/plugins/vmbackup/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/vmbackup/Makefile" ;;
24599
29479
    "vmware-user/Makefile") CONFIG_FILES="$CONFIG_FILES vmware-user/Makefile" ;;
24600
29480
    "vmware-user-suid-wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES vmware-user-suid-wrapper/Makefile" ;;
24601
29481
    "toolbox/Makefile") CONFIG_FILES="$CONFIG_FILES toolbox/Makefile" ;;
24602
29482
    "hgfsclient/Makefile") CONFIG_FILES="$CONFIG_FILES hgfsclient/Makefile" ;;
24603
29483
    "hgfsmounter/Makefile") CONFIG_FILES="$CONFIG_FILES hgfsmounter/Makefile" ;;
24604
29484
    "checkvm/Makefile") CONFIG_FILES="$CONFIG_FILES checkvm/Makefile" ;;
 
29485
    "rpctool/Makefile") CONFIG_FILES="$CONFIG_FILES rpctool/Makefile" ;;
24605
29486
    "libguestlib/Makefile") CONFIG_FILES="$CONFIG_FILES libguestlib/Makefile" ;;
 
29487
    "libvmtools/Makefile") CONFIG_FILES="$CONFIG_FILES libvmtools/Makefile" ;;
24606
29488
    "xferlogs/Makefile") CONFIG_FILES="$CONFIG_FILES xferlogs/Makefile" ;;
24607
29489
    "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
 
29490
    "vmblock-fuse/Makefile") CONFIG_FILES="$CONFIG_FILES vmblock-fuse/Makefile" ;;
 
29491
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
29492
    "tests/vmrpcdbg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/vmrpcdbg/Makefile" ;;
 
29493
    "tests/testDebug/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testDebug/Makefile" ;;
 
29494
    "tests/testPlugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testPlugin/Makefile" ;;
24608
29495
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24609
29496
 
24610
29497
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24820
29707
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
24821
29708
X_LIBS!$X_LIBS$ac_delim
24822
29709
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
24823
 
LIBPNG_CONFIG!$LIBPNG_CONFIG$ac_delim
24824
 
DNET_CONFIG!$DNET_CONFIG$ac_delim
24825
 
ICU_CONFIG!$ICU_CONFIG$ac_delim
24826
 
HAVE_CXX!$HAVE_CXX$ac_delim
 
29710
ac_vmw_lib_cfg!$ac_vmw_lib_cfg$ac_delim
 
29711
GLIB2_CPPFLAGS!$GLIB2_CPPFLAGS$ac_delim
 
29712
GLIB2_LIBS!$GLIB2_LIBS$ac_delim
 
29713
GMODULE_CPPFLAGS!$GMODULE_CPPFLAGS$ac_delim
 
29714
GMODULE_LIBS!$GMODULE_LIBS$ac_delim
 
29715
GOBJECT_CPPFLAGS!$GOBJECT_CPPFLAGS$ac_delim
 
29716
GOBJECT_LIBS!$GOBJECT_LIBS$ac_delim
 
29717
GTHREAD_CPPFLAGS!$GTHREAD_CPPFLAGS$ac_delim
 
29718
GTHREAD_LIBS!$GTHREAD_LIBS$ac_delim
 
29719
have_genmarshal!$have_genmarshal$ac_delim
 
29720
FUSE_CPPFLAGS!$FUSE_CPPFLAGS$ac_delim
 
29721
FUSE_LIBS!$FUSE_LIBS$ac_delim
 
29722
URIPARSER_CPPFLAGS!$URIPARSER_CPPFLAGS$ac_delim
 
29723
URIPARSER_LIBS!$URIPARSER_LIBS$ac_delim
 
29724
LIBPNG_CPPFLAGS!$LIBPNG_CPPFLAGS$ac_delim
 
29725
LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
 
29726
ZLIB_CPPFLAGS!$ZLIB_CPPFLAGS$ac_delim
 
29727
ZLIB_LIBS!$ZLIB_LIBS$ac_delim
 
29728
GTK_CPPFLAGS!$GTK_CPPFLAGS$ac_delim
 
29729
GTK_LIBS!$GTK_LIBS$ac_delim
 
29730
GTKMM_CPPFLAGS!$GTKMM_CPPFLAGS$ac_delim
 
29731
GTKMM_LIBS!$GTKMM_LIBS$ac_delim
 
29732
PROCPS_CPPFLAGS!$PROCPS_CPPFLAGS$ac_delim
 
29733
PROCPS_LIBS!$PROCPS_LIBS$ac_delim
 
29734
DNET_CPPFLAGS!$DNET_CPPFLAGS$ac_delim
 
29735
DNET_LIBS!$DNET_LIBS$ac_delim
 
29736
have_cxx!$have_cxx$ac_delim
 
29737
ICU_CPPFLAGS!$ICU_CPPFLAGS$ac_delim
 
29738
ICU_LIBS!$ICU_LIBS$ac_delim
24827
29739
RPCGEN!$RPCGEN$ac_delim
24828
29740
BUILD_HGFSMOUNTER_TRUE!$BUILD_HGFSMOUNTER_TRUE$ac_delim
24829
29741
BUILD_HGFSMOUNTER_FALSE!$BUILD_HGFSMOUNTER_FALSE$ac_delim
24833
29745
SOLARIS_FALSE!$SOLARIS_FALSE$ac_delim
24834
29746
FREEBSD_TRUE!$FREEBSD_TRUE$ac_delim
24835
29747
FREEBSD_FALSE!$FREEBSD_FALSE$ac_delim
 
29748
FREEBSD_CUSTOM_SYSDIR_TRUE!$FREEBSD_CUSTOM_SYSDIR_TRUE$ac_delim
 
29749
FREEBSD_CUSTOM_SYSDIR_FALSE!$FREEBSD_CUSTOM_SYSDIR_FALSE$ac_delim
24836
29750
THIRTY_TWO_BIT_USERSPACE_TRUE!$THIRTY_TWO_BIT_USERSPACE_TRUE$ac_delim
24837
29751
THIRTY_TWO_BIT_USERSPACE_FALSE!$THIRTY_TWO_BIT_USERSPACE_FALSE$ac_delim
24838
29752
HAVE_X11_TRUE!$HAVE_X11_TRUE$ac_delim
24847
29761
ENABLE_UNITY_FALSE!$ENABLE_UNITY_FALSE$ac_delim
24848
29762
WITH_ROOT_PRIVILEGES_TRUE!$WITH_ROOT_PRIVILEGES_TRUE$ac_delim
24849
29763
WITH_ROOT_PRIVILEGES_FALSE!$WITH_ROOT_PRIVILEGES_FALSE$ac_delim
 
29764
HAVE_FUSE_TRUE!$HAVE_FUSE_TRUE$ac_delim
 
29765
HAVE_FUSE_FALSE!$HAVE_FUSE_FALSE$ac_delim
 
29766
HAVE_GNU_LD_TRUE!$HAVE_GNU_LD_TRUE$ac_delim
 
29767
HAVE_GNU_LD_FALSE!$HAVE_GNU_LD_FALSE$ac_delim
 
29768
HAVE_GTKMM_TRUE!$HAVE_GTKMM_TRUE$ac_delim
 
29769
HAVE_GTKMM_FALSE!$HAVE_GTKMM_FALSE$ac_delim
24850
29770
TARGET_OS!$TARGET_OS$ac_delim
24851
29771
KERNEL_RELEASE!$KERNEL_RELEASE$ac_delim
24852
29772
MODULES_OS!$MODULES_OS$ac_delim
24853
29773
MODULES_DIR!$MODULES_DIR$ac_delim
24854
29774
MODULES!$MODULES$ac_delim
24855
29775
COMMON_XLIBS!$COMMON_XLIBS$ac_delim
24856
 
GTK_CPPFLAGS!$GTK_CPPFLAGS$ac_delim
24857
 
GTK_LIBS!$GTK_LIBS$ac_delim
24858
 
DNET_CPPFLAGS!$DNET_CPPFLAGS$ac_delim
24859
 
DNET_LIBS!$DNET_LIBS$ac_delim
24860
 
PROCPS_LIBS!$PROCPS_LIBS$ac_delim
24861
 
ICU_CPPFLAGS!$ICU_CPPFLAGS$ac_delim
24862
 
ICU_LIBS!$ICU_LIBS$ac_delim
24863
29776
PAM_PREFIX!$PAM_PREFIX$ac_delim
24864
 
URIPARSER_CPPFLAGS!$URIPARSER_CPPFLAGS$ac_delim
24865
 
URIPARSER_LIBS!$URIPARSER_LIBS$ac_delim
24866
 
LIBPNG_CPPFLAGS!$LIBPNG_CPPFLAGS$ac_delim
24867
 
LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
24868
 
ZLIB_CPPFLAGS!$ZLIB_CPPFLAGS$ac_delim
24869
 
ZLIB_LIBS!$ZLIB_LIBS$ac_delim
 
29777
PLUGIN_CPPFLAGS!$PLUGIN_CPPFLAGS$ac_delim
 
29778
PLUGIN_LDFLAGS!$PLUGIN_LDFLAGS$ac_delim
 
29779
VMTOOLS_CPPFLAGS!$VMTOOLS_CPPFLAGS$ac_delim
 
29780
VMTOOLS_LIBS!$VMTOOLS_LIBS$ac_delim
 
29781
RPCGENFLAGS!$RPCGENFLAGS$ac_delim
 
29782
XDR_LIBS!$XDR_LIBS$ac_delim
 
29783
VMSVC_PLUGIN_INSTALLDIR!$VMSVC_PLUGIN_INSTALLDIR$ac_delim
 
29784
VMUSR_PLUGIN_INSTALLDIR!$VMUSR_PLUGIN_INSTALLDIR$ac_delim
 
29785
SYSDIR!$SYSDIR$ac_delim
24870
29786
LIB_AUTH_CPPFLAGS!$LIB_AUTH_CPPFLAGS$ac_delim
24871
29787
LIB_FILE_CPPFLAGS!$LIB_FILE_CPPFLAGS$ac_delim
24872
29788
LIB_HGFS_SERVER_CPPFLAGS!$LIB_HGFS_SERVER_CPPFLAGS$ac_delim
24873
29789
LIB_IMPERSONATE_CPPFLAGS!$LIB_IMPERSONATE_CPPFLAGS$ac_delim
24874
29790
LIB_MISC_CPPFLAGS!$LIB_MISC_CPPFLAGS$ac_delim
24875
29791
LIB_PROC_MGR_CPPFLAGS!$LIB_PROC_MGR_CPPFLAGS$ac_delim
 
29792
_ACEOF
 
29793
 
 
29794
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
29795
    break
 
29796
  elif $ac_last_try; then
 
29797
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
29798
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
29799
   { (exit 1); exit 1; }; }
 
29800
  else
 
29801
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
29802
  fi
 
29803
done
 
29804
 
 
29805
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
29806
if test -n "$ac_eof"; then
 
29807
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
29808
  ac_eof=`expr $ac_eof + 1`
 
29809
fi
 
29810
 
 
29811
cat >>$CONFIG_STATUS <<_ACEOF
 
29812
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
29813
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
29814
_ACEOF
 
29815
sed '
 
29816
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
29817
s/^/s,@/; s/!/@,|#_!!_#|/
 
29818
:n
 
29819
t n
 
29820
s/'"$ac_delim"'$/,g/; t
 
29821
s/$/\\/; p
 
29822
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
29823
' >>$CONFIG_STATUS <conf$$subs.sed
 
29824
rm -f conf$$subs.sed
 
29825
cat >>$CONFIG_STATUS <<_ACEOF
 
29826
CEOF$ac_eof
 
29827
_ACEOF
 
29828
 
 
29829
 
 
29830
ac_delim='%!_!# '
 
29831
for ac_last_try in false false false false false :; do
 
29832
  cat >conf$$subs.sed <<_ACEOF
24876
29833
LIB_STRING_CPPFLAGS!$LIB_STRING_CPPFLAGS$ac_delim
24877
29834
LIB_USER_CPPFLAGS!$LIB_USER_CPPFLAGS$ac_delim
 
29835
LIBVMTOOLS_LIBADD!$LIBVMTOOLS_LIBADD$ac_delim
24878
29836
GUESTD_LDADD!$GUESTD_LDADD$ac_delim
 
29837
VIX_LIBADD!$VIX_LIBADD$ac_delim
24879
29838
VMWARE_USER_CPPFLAGS!$VMWARE_USER_CPPFLAGS$ac_delim
24880
29839
VMWARE_USER_LDADD!$VMWARE_USER_LDADD$ac_delim
24881
29840
LIBOBJS!$LIBOBJS$ac_delim
24882
29841
LTLIBOBJS!$LTLIBOBJS$ac_delim
24883
29842
_ACEOF
24884
29843
 
24885
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
 
29844
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
24886
29845
    break
24887
29846
  elif $ac_last_try; then
24888
29847
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24900
29859
fi
24901
29860
 
24902
29861
cat >>$CONFIG_STATUS <<_ACEOF
24903
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
29862
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
24904
29863
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24905
29864
_ACEOF
24906
29865
sed '
25169
30128
s&@INSTALL@&$ac_INSTALL&;t t
25170
30129
s&@MKDIR_P@&$ac_MKDIR_P&;t t
25171
30130
$ac_datarootdir_hack
25172
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
30131
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
25173
30132
 
25174
30133
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25175
30134
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&