20738
# Check for CUnit and disable test code if not available.
20740
if test "$enable_tests" = "auto" -o "$enable_tests" = "yes"; then
20742
if test -z "$CUSTOM_CUNIT_CPPFLAGS"; then
20743
if test "$os" = freebsd; then
20744
CUSTOM_CUNIT_CPPFLAGS="-I/usr/local/include"
20746
CUSTOM_CUNIT_CPPFLAGS="-I/usr/include"
20748
if test -n ""; then
20749
CUSTOM_CUNIT_CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS}/"
20755
if test -z "cunit"; then
20756
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
20757
echo "$as_me: error: 'library' parameter is required.'" >&2;}
20758
{ (exit 1); exit 1; }; }
20760
if test -z "CUNIT"; then
20761
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
20762
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
20763
{ (exit 1); exit 1; }; }
20767
ac_vmw_have_lib_func=0
20768
ac_vmw_have_lib_header=0
20769
ac_vmw_custom_libs=
20772
# First, try any user-defined CUSTOM_* flags.
20774
if test -n "${CUSTOM_CUNIT_CPPFLAGS}" || test -n "${CUSTOM_CUNIT_LIBS}"; then
20775
ac_vmw_custom_libs="${CUSTOM_CUNIT_LIBS} -lcunit"
20776
if test -n "CUnit/CUnit.h"; then
20777
ORIGINAL_CPPFLAGS="$CPPFLAGS"
20778
CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS} $CPPFLAGS"
20780
if test "${ac_cv_header_CUnit_CUnit_h+set}" = set; then
20781
{ echo "$as_me:$LINENO: checking for CUnit/CUnit.h" >&5
20782
echo $ECHO_N "checking for CUnit/CUnit.h... $ECHO_C" >&6; }
20783
if test "${ac_cv_header_CUnit_CUnit_h+set}" = set; then
20784
echo $ECHO_N "(cached) $ECHO_C" >&6
20786
{ echo "$as_me:$LINENO: result: $ac_cv_header_CUnit_CUnit_h" >&5
20787
echo "${ECHO_T}$ac_cv_header_CUnit_CUnit_h" >&6; }
20789
# Is the header compilable?
20790
{ echo "$as_me:$LINENO: checking CUnit/CUnit.h usability" >&5
20791
echo $ECHO_N "checking CUnit/CUnit.h usability... $ECHO_C" >&6; }
20792
cat >conftest.$ac_ext <<_ACEOF
20795
cat confdefs.h >>conftest.$ac_ext
20796
cat >>conftest.$ac_ext <<_ACEOF
20797
/* end confdefs.h. */
20798
$ac_includes_default
20799
@%:@include <CUnit/CUnit.h>
20801
rm -f conftest.$ac_objext
20802
if { (ac_try="$ac_compile"
20803
case "(($ac_try" in
20804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805
*) ac_try_echo=$ac_try;;
20807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808
(eval "$ac_compile") 2>conftest.er1
20810
grep -v '^ *+' conftest.er1 >conftest.err
20812
cat conftest.err >&5
20813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814
(exit $ac_status); } && {
20815
test -z "$ac_c_werror_flag" ||
20816
test ! -s conftest.err
20817
} && test -s conftest.$ac_objext; then
20818
ac_header_compiler=yes
20820
echo "$as_me: failed program was:" >&5
20821
sed 's/^/| /' conftest.$ac_ext >&5
20823
ac_header_compiler=no
20826
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20827
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20828
echo "${ECHO_T}$ac_header_compiler" >&6; }
20830
# Is the header present?
20831
{ echo "$as_me:$LINENO: checking CUnit/CUnit.h presence" >&5
20832
echo $ECHO_N "checking CUnit/CUnit.h presence... $ECHO_C" >&6; }
20833
cat >conftest.$ac_ext <<_ACEOF
20836
cat confdefs.h >>conftest.$ac_ext
20837
cat >>conftest.$ac_ext <<_ACEOF
20838
/* end confdefs.h. */
20839
@%:@include <CUnit/CUnit.h>
20841
if { (ac_try="$ac_cpp conftest.$ac_ext"
20842
case "(($ac_try" in
20843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844
*) ac_try_echo=$ac_try;;
20846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20849
grep -v '^ *+' conftest.er1 >conftest.err
20851
cat conftest.err >&5
20852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853
(exit $ac_status); } >/dev/null && {
20854
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20855
test ! -s conftest.err
20857
ac_header_preproc=yes
20859
echo "$as_me: failed program was:" >&5
20860
sed 's/^/| /' conftest.$ac_ext >&5
20862
ac_header_preproc=no
20865
rm -f conftest.err conftest.$ac_ext
20866
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20867
echo "${ECHO_T}$ac_header_preproc" >&6; }
20869
# So? What about this header?
20870
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20872
{ echo "$as_me:$LINENO: WARNING: CUnit/CUnit.h: accepted by the compiler, rejected by the preprocessor!" >&5
20873
echo "$as_me: WARNING: CUnit/CUnit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20874
{ echo "$as_me:$LINENO: WARNING: CUnit/CUnit.h: proceeding with the compiler's result" >&5
20875
echo "$as_me: WARNING: CUnit/CUnit.h: proceeding with the compiler's result" >&2;}
20876
ac_header_preproc=yes
20879
{ echo "$as_me:$LINENO: WARNING: CUnit/CUnit.h: present but cannot be compiled" >&5
20880
echo "$as_me: WARNING: CUnit/CUnit.h: present but cannot be compiled" >&2;}
20881
{ echo "$as_me:$LINENO: WARNING: CUnit/CUnit.h: check for missing prerequisite headers?" >&5
20882
echo "$as_me: WARNING: CUnit/CUnit.h: check for missing prerequisite headers?" >&2;}
20883
{ echo "$as_me:$LINENO: WARNING: CUnit/CUnit.h: see the Autoconf documentation" >&5
20884
echo "$as_me: WARNING: CUnit/CUnit.h: see the Autoconf documentation" >&2;}
20885
{ echo "$as_me:$LINENO: WARNING: CUnit/CUnit.h: section \"Present But Cannot Be Compiled\"" >&5
20886
echo "$as_me: WARNING: CUnit/CUnit.h: section \"Present But Cannot Be Compiled\"" >&2;}
20887
{ echo "$as_me:$LINENO: WARNING: CUnit/CUnit.h: proceeding with the preprocessor's result" >&5
20888
echo "$as_me: WARNING: CUnit/CUnit.h: proceeding with the preprocessor's result" >&2;}
20889
{ echo "$as_me:$LINENO: WARNING: CUnit/CUnit.h: in the future, the compiler will take precedence" >&5
20890
echo "$as_me: WARNING: CUnit/CUnit.h: in the future, the compiler will take precedence" >&2;}
20892
@%:@@%:@ -------------------------------------------------------- @%:@@%:@
20893
@%:@@%:@ Report this to open-vm-tools-devel@lists.sourceforge.net @%:@@%:@
20894
@%:@@%:@ -------------------------------------------------------- @%:@@%:@
20896
) | sed "s/^/$as_me: WARNING: /" >&2
20899
{ echo "$as_me:$LINENO: checking for CUnit/CUnit.h" >&5
20900
echo $ECHO_N "checking for CUnit/CUnit.h... $ECHO_C" >&6; }
20901
if test "${ac_cv_header_CUnit_CUnit_h+set}" = set; then
20902
echo $ECHO_N "(cached) $ECHO_C" >&6
20904
ac_cv_header_CUnit_CUnit_h=$ac_header_preproc
20906
{ echo "$as_me:$LINENO: result: $ac_cv_header_CUnit_CUnit_h" >&5
20907
echo "${ECHO_T}$ac_cv_header_CUnit_CUnit_h" >&6; }
20910
if test $ac_cv_header_CUnit_CUnit_h = yes; then
20911
ac_vmw_have_lib_header=1
20916
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20918
ac_vmw_have_lib_header=1
20921
# Check a specific function in the library if requested.
20922
# If it hasn't, just pick a random function from libc, just to make
20923
# sure the linker can find the library being tested.
20924
if test $ac_vmw_have_lib_header -eq 1; then
20925
if test -n "CU_initialize_registry"; then
20926
ac_vmw_function=CU_initialize_registry
20928
ac_vmw_function=strlen
20930
as_ac_Lib=`echo "ac_cv_lib_cunit_$ac_vmw_function" | $as_tr_sh`
20931
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -lcunit" >&5
20932
echo $ECHO_N "checking for $ac_vmw_function in -lcunit... $ECHO_C" >&6; }
20933
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20934
echo $ECHO_N "(cached) $ECHO_C" >&6
20936
ac_check_lib_save_LIBS=$LIBS
20937
LIBS="-lcunit $ac_vmw_custom_libs $LIBS"
20938
cat >conftest.$ac_ext <<_ACEOF
20941
cat confdefs.h >>conftest.$ac_ext
20942
cat >>conftest.$ac_ext <<_ACEOF
20943
/* end confdefs.h. */
20945
/* Override any GCC internal prototype to avoid an error.
20946
Use char because int might match the return type of a GCC
20947
builtin and then its argument prototype would still apply. */
20951
char $ac_vmw_function ();
20955
return $ac_vmw_function ();
20960
rm -f conftest.$ac_objext conftest$ac_exeext
20961
if { (ac_try="$ac_link"
20962
case "(($ac_try" in
20963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964
*) ac_try_echo=$ac_try;;
20966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967
(eval "$ac_link") 2>conftest.er1
20969
grep -v '^ *+' conftest.er1 >conftest.err
20971
cat conftest.err >&5
20972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973
(exit $ac_status); } && {
20974
test -z "$ac_c_werror_flag" ||
20975
test ! -s conftest.err
20976
} && test -s conftest$ac_exeext &&
20977
$as_test_x conftest$ac_exeext; then
20978
eval "$as_ac_Lib=yes"
20980
echo "$as_me: failed program was:" >&5
20981
sed 's/^/| /' conftest.$ac_ext >&5
20983
eval "$as_ac_Lib=no"
20986
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20987
conftest$ac_exeext conftest.$ac_ext
20988
LIBS=$ac_check_lib_save_LIBS
20990
ac_res=`eval echo '${'$as_ac_Lib'}'`
20991
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20992
echo "${ECHO_T}$ac_res" >&6; }
20993
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20994
ac_vmw_have_lib_func=1
20999
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
21000
CUNIT_CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS}"
21001
CUNIT_LIBS="$ac_vmw_custom_libs"
21006
# If that didn't work, try with pkg-config.
21007
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
21008
if test -n ""; then
21009
{ echo "$as_me:$LINENO: checking for >= (via pkg-config)" >&5
21010
echo $ECHO_N "checking for >= (via pkg-config)... $ECHO_C" >&6; }
21011
if pkg-config --exists ' >= '; then
21015
{ echo "$as_me:$LINENO: checking for (via pkg-config)" >&5
21016
echo $ECHO_N "checking for (via pkg-config)... $ECHO_C" >&6; }
21017
if pkg-config --exists ''; then
21022
if test $ac_vmw_have_lib -eq 1; then
21023
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
21024
# fails on OpenSolaris B71. So be pessimistic.
21025
ac_vmw_cppflags="`pkg-config --cflags `"
21027
ac_vmw_libs="`pkg-config --libs `"
21029
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
21030
{ echo "$as_me:$LINENO: result: yes" >&5
21031
echo "${ECHO_T}yes" >&6; }
21032
CUNIT_CPPFLAGS="$ac_vmw_cppflags"
21033
CUNIT_LIBS="$ac_vmw_libs"
21035
{ echo "$as_me:$LINENO: result: no" >&5
21036
echo "${ECHO_T}no" >&6; }
21039
{ echo "$as_me:$LINENO: result: no" >&5
21040
echo "${ECHO_T}no" >&6; }
21044
# If we still haven't found the lib, try with the library's custom "config" script.
21045
# Before checking, flush the AC_PATH_PROG cached variable.
21046
unset ac_cv_path_ac_vmw_lib_cfg
21047
unset ac_vmw_lib_cfg
21048
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
21049
# Extract the first word of "", so it can be a program name with args.
21050
set dummy ; ac_word=$2
21051
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21052
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21053
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
21054
echo $ECHO_N "(cached) $ECHO_C" >&6
21056
case $ac_vmw_lib_cfg in
21058
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
21061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21062
for as_dir in $PATH
21065
test -z "$as_dir" && as_dir=.
21066
for ac_exec_ext in '' $ac_executable_extensions; do
21067
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21068
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
21069
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21076
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
21080
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
21081
if test -n "$ac_vmw_lib_cfg"; then
21082
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
21083
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
21085
{ echo "$as_me:$LINENO: result: no" >&5
21086
echo "${ECHO_T}no" >&6; }
21090
if test "$ac_vmw_lib_cfg" != "no"; then
21091
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
21092
# so single it out here to avoid having to replicate all the rest of the
21094
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
21095
CUNIT_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
21096
CUNIT_LIBS="`$ac_vmw_lib_cfg --ldflags`"
21098
CUNIT_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
21099
CUNIT_LIBS="`$ac_vmw_lib_cfg --libs`"
21105
# Finish by executing the user provided action. The call to "true" is needed
21106
# because the actions are optional, and we need something inside the block.
21107
if test $ac_vmw_have_lib -eq 1; then
21117
if test "$have_cunit" = "no"; then
21118
if test "$enable_tests" = "yes"; then
21121
if test -z "$feature"; then
21124
{ { echo "$as_me:$LINENO: error: Cannot find CUNIT library. Please configure without $feature (using --without-cunit), or install the CUNIT libraries and devel package(s)." >&5
21125
echo "$as_me: error: Cannot find CUNIT library. Please configure without $feature (using --without-cunit), or install the CUNIT libraries and devel package(s)." >&2;}
21126
{ (exit 1); exit 1; }; }
21129
{ echo "$as_me:$LINENO: WARNING: CUnit not found, tests won't be compiled." >&5
21130
echo "$as_me: WARNING: CUnit not found, tests won't be compiled." >&2;}
20715
21135
# If the user explicitly disables X11, then don't try to detect the X-related libraries
20716
21136
if test "$have_x" = "disabled"; then
21142
21562
if test "$enable_unity" != "no"; then
21144
# Unity needs the X11 Screen Saver extension library. It should be
21564
# Unity needs the X11 Screen Saver extension library. It should be
21145
21565
# in the same place as the X11 libraries, so no need for any fancy
21146
21566
# path checking.
21147
{ echo "$as_me:$LINENO: checking for XScreenSaverQueryExtension in -lXss" >&5
21569
if test -n "X11/extensions/scrnsaver.h"; then
21570
if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
21571
{ echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
21572
echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6; }
21573
if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
21574
echo $ECHO_N "(cached) $ECHO_C" >&6
21576
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
21577
echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6; }
21579
# Is the header compilable?
21580
{ echo "$as_me:$LINENO: checking X11/extensions/scrnsaver.h usability" >&5
21581
echo $ECHO_N "checking X11/extensions/scrnsaver.h usability... $ECHO_C" >&6; }
21582
cat >conftest.$ac_ext <<_ACEOF
21585
cat confdefs.h >>conftest.$ac_ext
21586
cat >>conftest.$ac_ext <<_ACEOF
21587
/* end confdefs.h. */
21588
$ac_includes_default
21589
@%:@include <X11/extensions/scrnsaver.h>
21591
rm -f conftest.$ac_objext
21592
if { (ac_try="$ac_compile"
21593
case "(($ac_try" in
21594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595
*) ac_try_echo=$ac_try;;
21597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598
(eval "$ac_compile") 2>conftest.er1
21600
grep -v '^ *+' conftest.er1 >conftest.err
21602
cat conftest.err >&5
21603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604
(exit $ac_status); } && {
21605
test -z "$ac_c_werror_flag" ||
21606
test ! -s conftest.err
21607
} && test -s conftest.$ac_objext; then
21608
ac_header_compiler=yes
21610
echo "$as_me: failed program was:" >&5
21611
sed 's/^/| /' conftest.$ac_ext >&5
21613
ac_header_compiler=no
21616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21617
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21618
echo "${ECHO_T}$ac_header_compiler" >&6; }
21620
# Is the header present?
21621
{ echo "$as_me:$LINENO: checking X11/extensions/scrnsaver.h presence" >&5
21622
echo $ECHO_N "checking X11/extensions/scrnsaver.h presence... $ECHO_C" >&6; }
21623
cat >conftest.$ac_ext <<_ACEOF
21626
cat confdefs.h >>conftest.$ac_ext
21627
cat >>conftest.$ac_ext <<_ACEOF
21628
/* end confdefs.h. */
21629
@%:@include <X11/extensions/scrnsaver.h>
21631
if { (ac_try="$ac_cpp conftest.$ac_ext"
21632
case "(($ac_try" in
21633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634
*) ac_try_echo=$ac_try;;
21636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21639
grep -v '^ *+' conftest.er1 >conftest.err
21641
cat conftest.err >&5
21642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643
(exit $ac_status); } >/dev/null && {
21644
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21645
test ! -s conftest.err
21647
ac_header_preproc=yes
21649
echo "$as_me: failed program was:" >&5
21650
sed 's/^/| /' conftest.$ac_ext >&5
21652
ac_header_preproc=no
21655
rm -f conftest.err conftest.$ac_ext
21656
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21657
echo "${ECHO_T}$ac_header_preproc" >&6; }
21659
# So? What about this header?
21660
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21662
{ echo "$as_me:$LINENO: WARNING: X11/extensions/scrnsaver.h: accepted by the compiler, rejected by the preprocessor!" >&5
21663
echo "$as_me: WARNING: X11/extensions/scrnsaver.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21664
{ echo "$as_me:$LINENO: WARNING: X11/extensions/scrnsaver.h: proceeding with the compiler's result" >&5
21665
echo "$as_me: WARNING: X11/extensions/scrnsaver.h: proceeding with the compiler's result" >&2;}
21666
ac_header_preproc=yes
21669
{ echo "$as_me:$LINENO: WARNING: X11/extensions/scrnsaver.h: present but cannot be compiled" >&5
21670
echo "$as_me: WARNING: X11/extensions/scrnsaver.h: present but cannot be compiled" >&2;}
21671
{ echo "$as_me:$LINENO: WARNING: X11/extensions/scrnsaver.h: check for missing prerequisite headers?" >&5
21672
echo "$as_me: WARNING: X11/extensions/scrnsaver.h: check for missing prerequisite headers?" >&2;}
21673
{ echo "$as_me:$LINENO: WARNING: X11/extensions/scrnsaver.h: see the Autoconf documentation" >&5
21674
echo "$as_me: WARNING: X11/extensions/scrnsaver.h: see the Autoconf documentation" >&2;}
21675
{ echo "$as_me:$LINENO: WARNING: X11/extensions/scrnsaver.h: section \"Present But Cannot Be Compiled\"" >&5
21676
echo "$as_me: WARNING: X11/extensions/scrnsaver.h: section \"Present But Cannot Be Compiled\"" >&2;}
21677
{ echo "$as_me:$LINENO: WARNING: X11/extensions/scrnsaver.h: proceeding with the preprocessor's result" >&5
21678
echo "$as_me: WARNING: X11/extensions/scrnsaver.h: proceeding with the preprocessor's result" >&2;}
21679
{ echo "$as_me:$LINENO: WARNING: X11/extensions/scrnsaver.h: in the future, the compiler will take precedence" >&5
21680
echo "$as_me: WARNING: X11/extensions/scrnsaver.h: in the future, the compiler will take precedence" >&2;}
21682
@%:@@%:@ -------------------------------------------------------- @%:@@%:@
21683
@%:@@%:@ Report this to open-vm-tools-devel@lists.sourceforge.net @%:@@%:@
21684
@%:@@%:@ -------------------------------------------------------- @%:@@%:@
21686
) | sed "s/^/$as_me: WARNING: /" >&2
21689
{ echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
21690
echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6; }
21691
if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
21692
echo $ECHO_N "(cached) $ECHO_C" >&6
21694
ac_cv_header_X11_extensions_scrnsaver_h=$ac_header_preproc
21696
{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
21697
echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6; }
21700
if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
21705
{ { echo "$as_me:$LINENO: error: libXss or headers not found. Please configure without Unity (using --disable-unity) or install the libXss devel package." >&5
21706
echo "$as_me: error: libXss or headers not found. Please configure without Unity (using --disable-unity) or install the libXss devel package." >&2;}
21707
{ (exit 1); exit 1; }; }
21714
if test $have_header = 1; then
21715
{ echo "$as_me:$LINENO: checking for XScreenSaverQueryExtension in -lXss" >&5
21148
21716
echo $ECHO_N "checking for XScreenSaverQueryExtension in -lXss... $ECHO_C" >&6; }
21149
21717
if test "${ac_cv_lib_Xss_XScreenSaverQueryExtension+set}" = set; then
21150
21718
echo $ECHO_N "(cached) $ECHO_C" >&6
23832
24351
if test "$with_procps" = "yes"; then
23833
# XXX: Force CUSTOM_PROCPS_LIBS to have something so that AC_VMW_CHECK_LIB
23834
# properly performs the library check.
24352
if test -z "$CUSTOM_PROCPS_NAME"; then
24353
CUSTOM_PROCPS_NAME=proc
24356
# XXX: no pkg-config and no procps-config means we need to
24357
# hard-code a sensible default.
23835
24358
if test -z "$CUSTOM_PROCPS_LIBS"; then
23836
24359
CUSTOM_PROCPS_LIBS="-L/lib"
24362
# Some distros provide libproc-${version}.so only, others provide the
24363
# libproc.so symlink. Try both to see what sticks (but only try the 3.2.7
24364
# version - adding every possible version here would be a mess).
24366
# Users can help by providing CUSTOM_PROCPS_NAME / CUSTOM_PROCPS_LIBS if
24372
if test -z "$CUSTOM_PROCPS_NAME"; then
24373
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
24374
echo "$as_me: error: 'library' parameter is required.'" >&2;}
24375
{ (exit 1); exit 1; }; }
24377
if test -z "PROCPS"; then
24378
{ { echo "$as_me:$LINENO: error: 'lvar' parameter is required.'" >&5
24379
echo "$as_me: error: 'lvar' parameter is required.'" >&2;}
24380
{ (exit 1); exit 1; }; }
24384
ac_vmw_have_lib_func=0
24385
ac_vmw_have_lib_header=0
24386
ac_vmw_custom_libs=
24389
# First, try any user-defined CUSTOM_* flags.
24391
if test -n "${CUSTOM_PROCPS_CPPFLAGS}" || test -n "${CUSTOM_PROCPS_LIBS}"; then
24392
ac_vmw_custom_libs="${CUSTOM_PROCPS_LIBS} -l$CUSTOM_PROCPS_NAME"
24393
if test -n ""; then
24394
ORIGINAL_CPPFLAGS="$CPPFLAGS"
24395
CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS} $CPPFLAGS"
24397
if test "${ac_cv_header_+set}" = set; then
24398
{ echo "$as_me:$LINENO: checking for " >&5
24399
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24400
if test "${ac_cv_header_+set}" = set; then
24401
echo $ECHO_N "(cached) $ECHO_C" >&6
24403
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24404
echo "${ECHO_T}$ac_cv_header_" >&6; }
24406
# Is the header compilable?
24407
{ echo "$as_me:$LINENO: checking usability" >&5
24408
echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24409
cat >conftest.$ac_ext <<_ACEOF
24412
cat confdefs.h >>conftest.$ac_ext
24413
cat >>conftest.$ac_ext <<_ACEOF
24414
/* end confdefs.h. */
24415
$ac_includes_default
24418
rm -f conftest.$ac_objext
24419
if { (ac_try="$ac_compile"
24420
case "(($ac_try" in
24421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422
*) ac_try_echo=$ac_try;;
24424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425
(eval "$ac_compile") 2>conftest.er1
24427
grep -v '^ *+' conftest.er1 >conftest.err
24429
cat conftest.err >&5
24430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431
(exit $ac_status); } && {
24432
test -z "$ac_c_werror_flag" ||
24433
test ! -s conftest.err
24434
} && test -s conftest.$ac_objext; then
24435
ac_header_compiler=yes
24437
echo "$as_me: failed program was:" >&5
24438
sed 's/^/| /' conftest.$ac_ext >&5
24440
ac_header_compiler=no
24443
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24444
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24445
echo "${ECHO_T}$ac_header_compiler" >&6; }
24447
# Is the header present?
24448
{ echo "$as_me:$LINENO: checking presence" >&5
24449
echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24450
cat >conftest.$ac_ext <<_ACEOF
24453
cat confdefs.h >>conftest.$ac_ext
24454
cat >>conftest.$ac_ext <<_ACEOF
24455
/* end confdefs.h. */
24458
if { (ac_try="$ac_cpp conftest.$ac_ext"
24459
case "(($ac_try" in
24460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461
*) ac_try_echo=$ac_try;;
24463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24466
grep -v '^ *+' conftest.er1 >conftest.err
24468
cat conftest.err >&5
24469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470
(exit $ac_status); } >/dev/null && {
24471
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24472
test ! -s conftest.err
24474
ac_header_preproc=yes
24476
echo "$as_me: failed program was:" >&5
24477
sed 's/^/| /' conftest.$ac_ext >&5
24479
ac_header_preproc=no
24482
rm -f conftest.err conftest.$ac_ext
24483
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24484
echo "${ECHO_T}$ac_header_preproc" >&6; }
24486
# So? What about this header?
24487
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24489
{ echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24490
echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24491
{ echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24492
echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24493
ac_header_preproc=yes
24496
{ echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24497
echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24498
{ echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24499
echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24500
{ echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24501
echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24502
{ echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24503
echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24504
{ echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24505
echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24506
{ echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24507
echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24509
@%:@@%:@ -------------------------------------------------------- @%:@@%:@
24510
@%:@@%:@ Report this to open-vm-tools-devel@lists.sourceforge.net @%:@@%:@
24511
@%:@@%:@ -------------------------------------------------------- @%:@@%:@
24513
) | sed "s/^/$as_me: WARNING: /" >&2
24516
{ echo "$as_me:$LINENO: checking for " >&5
24517
echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24518
if test "${ac_cv_header_+set}" = set; then
24519
echo $ECHO_N "(cached) $ECHO_C" >&6
24521
ac_cv_header_=$ac_header_preproc
24523
{ echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24524
echo "${ECHO_T}$ac_cv_header_" >&6; }
24527
if test $ac_cv_header_ = yes; then
24528
ac_vmw_have_lib_header=1
24533
CPPFLAGS="$ORIGINAL_CPPFLAGS"
24535
ac_vmw_have_lib_header=1
24538
# Check a specific function in the library if requested.
24539
# If it hasn't, just pick a random function from libc, just to make
24540
# sure the linker can find the library being tested.
24541
if test $ac_vmw_have_lib_header -eq 1; then
24542
if test -n "getstat"; then
24543
ac_vmw_function=getstat
24545
ac_vmw_function=strlen
24547
as_ac_Lib=`echo "ac_cv_lib_$CUSTOM_PROCPS_NAME''_$ac_vmw_function" | $as_tr_sh`
24548
{ echo "$as_me:$LINENO: checking for $ac_vmw_function in -l$CUSTOM_PROCPS_NAME" >&5
24549
echo $ECHO_N "checking for $ac_vmw_function in -l$CUSTOM_PROCPS_NAME... $ECHO_C" >&6; }
24550
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
24551
echo $ECHO_N "(cached) $ECHO_C" >&6
24553
ac_check_lib_save_LIBS=$LIBS
24554
LIBS="-l$CUSTOM_PROCPS_NAME $ac_vmw_custom_libs $LIBS"
24555
cat >conftest.$ac_ext <<_ACEOF
24558
cat confdefs.h >>conftest.$ac_ext
24559
cat >>conftest.$ac_ext <<_ACEOF
24560
/* end confdefs.h. */
24562
/* Override any GCC internal prototype to avoid an error.
24563
Use char because int might match the return type of a GCC
24564
builtin and then its argument prototype would still apply. */
24568
char $ac_vmw_function ();
24572
return $ac_vmw_function ();
24577
rm -f conftest.$ac_objext conftest$ac_exeext
24578
if { (ac_try="$ac_link"
24579
case "(($ac_try" in
24580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581
*) ac_try_echo=$ac_try;;
24583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584
(eval "$ac_link") 2>conftest.er1
24586
grep -v '^ *+' conftest.er1 >conftest.err
24588
cat conftest.err >&5
24589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590
(exit $ac_status); } && {
24591
test -z "$ac_c_werror_flag" ||
24592
test ! -s conftest.err
24593
} && test -s conftest$ac_exeext &&
24594
$as_test_x conftest$ac_exeext; then
24595
eval "$as_ac_Lib=yes"
24597
echo "$as_me: failed program was:" >&5
24598
sed 's/^/| /' conftest.$ac_ext >&5
24600
eval "$as_ac_Lib=no"
24603
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24604
conftest$ac_exeext conftest.$ac_ext
24605
LIBS=$ac_check_lib_save_LIBS
24607
ac_res=`eval echo '${'$as_ac_Lib'}'`
24608
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24609
echo "${ECHO_T}$ac_res" >&6; }
24610
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
24611
ac_vmw_have_lib_func=1
24616
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
24617
PROCPS_CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS}"
24618
PROCPS_LIBS="$ac_vmw_custom_libs"
24623
# If that didn't work, try with pkg-config.
24624
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
24625
if test -n ""; then
24626
{ echo "$as_me:$LINENO: checking for >= (via pkg-config)" >&5
24627
echo $ECHO_N "checking for >= (via pkg-config)... $ECHO_C" >&6; }
24628
if pkg-config --exists ' >= '; then
24632
{ echo "$as_me:$LINENO: checking for (via pkg-config)" >&5
24633
echo $ECHO_N "checking for (via pkg-config)... $ECHO_C" >&6; }
24634
if pkg-config --exists ''; then
24639
if test $ac_vmw_have_lib -eq 1; then
24640
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
24641
# fails on OpenSolaris B71. So be pessimistic.
24642
ac_vmw_cppflags="`pkg-config --cflags `"
24644
ac_vmw_libs="`pkg-config --libs `"
24646
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
24647
{ echo "$as_me:$LINENO: result: yes" >&5
24648
echo "${ECHO_T}yes" >&6; }
24649
PROCPS_CPPFLAGS="$ac_vmw_cppflags"
24650
PROCPS_LIBS="$ac_vmw_libs"
24652
{ echo "$as_me:$LINENO: result: no" >&5
24653
echo "${ECHO_T}no" >&6; }
24656
{ echo "$as_me:$LINENO: result: no" >&5
24657
echo "${ECHO_T}no" >&6; }
24661
# If we still haven't found the lib, try with the library's custom "config" script.
24662
# Before checking, flush the AC_PATH_PROG cached variable.
24663
unset ac_cv_path_ac_vmw_lib_cfg
24664
unset ac_vmw_lib_cfg
24665
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
24666
# Extract the first word of "", so it can be a program name with args.
24667
set dummy ; ac_word=$2
24668
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24669
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24670
if test "${ac_cv_path_ac_vmw_lib_cfg+set}" = set; then
24671
echo $ECHO_N "(cached) $ECHO_C" >&6
24673
case $ac_vmw_lib_cfg in
24675
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
24678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24679
for as_dir in $PATH
24682
test -z "$as_dir" && as_dir=.
24683
for ac_exec_ext in '' $ac_executable_extensions; do
24684
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24685
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
24686
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24693
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
24697
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
24698
if test -n "$ac_vmw_lib_cfg"; then
24699
{ echo "$as_me:$LINENO: result: $ac_vmw_lib_cfg" >&5
24700
echo "${ECHO_T}$ac_vmw_lib_cfg" >&6; }
24702
{ echo "$as_me:$LINENO: result: no" >&5
24703
echo "${ECHO_T}no" >&6; }
24707
if test "$ac_vmw_lib_cfg" != "no"; then
24708
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
24709
# so single it out here to avoid having to replicate all the rest of the
24711
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
24712
PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
24713
PROCPS_LIBS="`$ac_vmw_lib_cfg --ldflags`"
24715
PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
24716
PROCPS_LIBS="`$ac_vmw_lib_cfg --libs`"
24722
# Finish by executing the user provided action. The call to "true" is needed
24723
# because the actions are optional, and we need something inside the block.
24724
if test $ac_vmw_have_lib -eq 1; then
24730
VMWARE_USER_LDADD="$VMWARE_USER_LDADD $PROCPS_LIBS"
24738
if test "$have_procps" = "no"; then
23840
24741
if test -z "proc-3.2.7"; then
23841
24742
{ { echo "$as_me:$LINENO: error: 'library' parameter is required.'" >&5
23842
24743
echo "$as_me: error: 'library' parameter is required.'" >&2;}
28598
if test "$os" = "linux"; then
28599
# Make sure kernel-headers package is installed.
28600
if test "${ac_cv_header_linux_unistd_h+set}" = set; then
28601
{ echo "$as_me:$LINENO: checking for linux/unistd.h" >&5
28602
echo $ECHO_N "checking for linux/unistd.h... $ECHO_C" >&6; }
28603
if test "${ac_cv_header_linux_unistd_h+set}" = set; then
28604
echo $ECHO_N "(cached) $ECHO_C" >&6
28606
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_unistd_h" >&5
28607
echo "${ECHO_T}$ac_cv_header_linux_unistd_h" >&6; }
28609
# Is the header compilable?
28610
{ echo "$as_me:$LINENO: checking linux/unistd.h usability" >&5
28611
echo $ECHO_N "checking linux/unistd.h usability... $ECHO_C" >&6; }
28612
cat >conftest.$ac_ext <<_ACEOF
28615
cat confdefs.h >>conftest.$ac_ext
28616
cat >>conftest.$ac_ext <<_ACEOF
28617
/* end confdefs.h. */
28618
$ac_includes_default
28619
@%:@include <linux/unistd.h>
28621
rm -f conftest.$ac_objext
28622
if { (ac_try="$ac_compile"
28623
case "(($ac_try" in
28624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625
*) ac_try_echo=$ac_try;;
28627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628
(eval "$ac_compile") 2>conftest.er1
28630
grep -v '^ *+' conftest.er1 >conftest.err
28632
cat conftest.err >&5
28633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634
(exit $ac_status); } && {
28635
test -z "$ac_c_werror_flag" ||
28636
test ! -s conftest.err
28637
} && test -s conftest.$ac_objext; then
28638
ac_header_compiler=yes
28640
echo "$as_me: failed program was:" >&5
28641
sed 's/^/| /' conftest.$ac_ext >&5
28643
ac_header_compiler=no
28646
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28647
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28648
echo "${ECHO_T}$ac_header_compiler" >&6; }
28650
# Is the header present?
28651
{ echo "$as_me:$LINENO: checking linux/unistd.h presence" >&5
28652
echo $ECHO_N "checking linux/unistd.h presence... $ECHO_C" >&6; }
28653
cat >conftest.$ac_ext <<_ACEOF
28656
cat confdefs.h >>conftest.$ac_ext
28657
cat >>conftest.$ac_ext <<_ACEOF
28658
/* end confdefs.h. */
28659
@%:@include <linux/unistd.h>
28661
if { (ac_try="$ac_cpp conftest.$ac_ext"
28662
case "(($ac_try" in
28663
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664
*) ac_try_echo=$ac_try;;
28666
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28669
grep -v '^ *+' conftest.er1 >conftest.err
28671
cat conftest.err >&5
28672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673
(exit $ac_status); } >/dev/null && {
28674
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28675
test ! -s conftest.err
28677
ac_header_preproc=yes
28679
echo "$as_me: failed program was:" >&5
28680
sed 's/^/| /' conftest.$ac_ext >&5
28682
ac_header_preproc=no
28685
rm -f conftest.err conftest.$ac_ext
28686
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28687
echo "${ECHO_T}$ac_header_preproc" >&6; }
28689
# So? What about this header?
28690
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28692
{ echo "$as_me:$LINENO: WARNING: linux/unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
28693
echo "$as_me: WARNING: linux/unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28694
{ echo "$as_me:$LINENO: WARNING: linux/unistd.h: proceeding with the compiler's result" >&5
28695
echo "$as_me: WARNING: linux/unistd.h: proceeding with the compiler's result" >&2;}
28696
ac_header_preproc=yes
28699
{ echo "$as_me:$LINENO: WARNING: linux/unistd.h: present but cannot be compiled" >&5
28700
echo "$as_me: WARNING: linux/unistd.h: present but cannot be compiled" >&2;}
28701
{ echo "$as_me:$LINENO: WARNING: linux/unistd.h: check for missing prerequisite headers?" >&5
28702
echo "$as_me: WARNING: linux/unistd.h: check for missing prerequisite headers?" >&2;}
28703
{ echo "$as_me:$LINENO: WARNING: linux/unistd.h: see the Autoconf documentation" >&5
28704
echo "$as_me: WARNING: linux/unistd.h: see the Autoconf documentation" >&2;}
28705
{ echo "$as_me:$LINENO: WARNING: linux/unistd.h: section \"Present But Cannot Be Compiled\"" >&5
28706
echo "$as_me: WARNING: linux/unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
28707
{ echo "$as_me:$LINENO: WARNING: linux/unistd.h: proceeding with the preprocessor's result" >&5
28708
echo "$as_me: WARNING: linux/unistd.h: proceeding with the preprocessor's result" >&2;}
28709
{ echo "$as_me:$LINENO: WARNING: linux/unistd.h: in the future, the compiler will take precedence" >&5
28710
echo "$as_me: WARNING: linux/unistd.h: in the future, the compiler will take precedence" >&2;}
28712
@%:@@%:@ -------------------------------------------------------- @%:@@%:@
28713
@%:@@%:@ Report this to open-vm-tools-devel@lists.sourceforge.net @%:@@%:@
28714
@%:@@%:@ -------------------------------------------------------- @%:@@%:@
28716
) | sed "s/^/$as_me: WARNING: /" >&2
28719
{ echo "$as_me:$LINENO: checking for linux/unistd.h" >&5
28720
echo $ECHO_N "checking for linux/unistd.h... $ECHO_C" >&6; }
28721
if test "${ac_cv_header_linux_unistd_h+set}" = set; then
28722
echo $ECHO_N "(cached) $ECHO_C" >&6
28724
ac_cv_header_linux_unistd_h=$ac_header_preproc
28726
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_unistd_h" >&5
28727
echo "${ECHO_T}$ac_cv_header_linux_unistd_h" >&6; }
28730
if test $ac_cv_header_linux_unistd_h = yes; then
28733
{ { echo "$as_me:$LINENO: error: linux/unistd.h is not found. Please install kernel-headers/linux-userspace-headers/linux-libc-dev package." >&5
28734
echo "$as_me: error: linux/unistd.h is not found. Please install kernel-headers/linux-userspace-headers/linux-libc-dev package." >&2;}
28735
{ (exit 1); exit 1; }; }
27692
28741
if test "$enable_multimon" != "no"; then
27693
28742
{ echo "$as_me:$LINENO: checking for X11/extensions/panoramiXproto.h" >&5
27694
28743
echo $ECHO_N "checking for X11/extensions/panoramiXproto.h... $ECHO_C" >&6; }
31179
32179
TARGET_OS!$TARGET_OS$ac_delim
31180
32180
KERNEL_RELEASE!$KERNEL_RELEASE$ac_delim
31181
32181
MODULES_OS!$MODULES_OS$ac_delim
32184
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32186
elif $ac_last_try; then
32187
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32188
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32189
{ (exit 1); exit 1; }; }
32191
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32195
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32196
if test -n "$ac_eof"; then
32197
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32198
ac_eof=`expr $ac_eof + 1`
32201
cat >>$CONFIG_STATUS <<_ACEOF
32202
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32203
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32206
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32207
s/^/s,@/; s/!/@,|#_!!_#|/
32210
s/'"$ac_delim"'$/,g/; t
32212
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32213
' >>$CONFIG_STATUS <conf$$subs.sed
32214
rm -f conf$$subs.sed
32215
cat >>$CONFIG_STATUS <<_ACEOF
32221
for ac_last_try in false false false false false :; do
32222
cat >conf$$subs.sed <<_ACEOF
31182
32223
MODULES_DIR!$MODULES_DIR$ac_delim
31183
32224
MODULES!$MODULES$ac_delim
31184
32225
COMMON_XLIBS!$COMMON_XLIBS$ac_delim
31185
32226
PAM_PREFIX!$PAM_PREFIX$ac_delim
31188
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31190
elif $ac_last_try; then
31191
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31192
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31193
{ (exit 1); exit 1; }; }
31195
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31199
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31200
if test -n "$ac_eof"; then
31201
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31202
ac_eof=`expr $ac_eof + 1`
31205
cat >>$CONFIG_STATUS <<_ACEOF
31206
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31207
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31210
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31211
s/^/s,@/; s/!/@,|#_!!_#|/
31214
s/'"$ac_delim"'$/,g/; t
31216
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31217
' >>$CONFIG_STATUS <conf$$subs.sed
31218
rm -f conf$$subs.sed
31219
cat >>$CONFIG_STATUS <<_ACEOF
31225
for ac_last_try in false false false false false :; do
31226
cat >conf$$subs.sed <<_ACEOF
31227
32227
PLUGIN_CPPFLAGS!$PLUGIN_CPPFLAGS$ac_delim
31228
32228
PLUGIN_LDFLAGS!$PLUGIN_LDFLAGS$ac_delim
31229
32229
VMTOOLS_CPPFLAGS!$VMTOOLS_CPPFLAGS$ac_delim