more AC_CHECK_HEADERS fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2007-07-20 18:27:35 +00:00
parent 1f7e12cc26
commit be2ad872dc
2 changed files with 47 additions and 27 deletions

66
configure vendored
View File

@@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in Id: configure.in 47575 2007-07-19 23:00:09Z VZ . # From configure.in Id: configure.in 47596 2007-07-20 17:59:45Z DE .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0. # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
# #
@@ -25776,13 +25776,11 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */ /* end confdefs.h. */
#include <sys/types.h> /* for off_t */
#include <stdio.h> #include <stdio.h>
int int
main () main ()
{ {
int (*fp) (FILE *, off_t, int) = fseeko; return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
; ;
return 0; return 0;
} }
@@ -25822,13 +25820,11 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */ /* end confdefs.h. */
#define _LARGEFILE_SOURCE 1 #define _LARGEFILE_SOURCE 1
#include <sys/types.h> /* for off_t */
#include <stdio.h> #include <stdio.h>
int int
main () main ()
{ {
int (*fp) (FILE *, off_t, int) = fseeko; return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
; ;
return 0; return 0;
} }
@@ -29996,9 +29992,13 @@ TOOLKIT_INCLUDE=
WIDGET_SET= WIDGET_SET=
if test "$USE_WIN32" = 1 ; then if test "$USE_WIN32" = 1 ; then
{ echo "$as_me:$LINENO: checking for w32api.h" >&5
echo $ECHO_N "checking for w32api.h... $ECHO_C" >&6; } for ac_header in w32api.h
if test "${ac_cv_header_w32api_h+set}" = set; then do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
@@ -30009,7 +30009,7 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */ /* end confdefs.h. */
#include <w32api.h> #include <$ac_header>
_ACEOF _ACEOF
rm -f conftest.$ac_objext rm -f conftest.$ac_objext
if { (ac_try="$ac_compile" if { (ac_try="$ac_compile"
@@ -30028,19 +30028,27 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
test -z "$ac_c_werror_flag" || test -z "$ac_c_werror_flag" ||
test ! -s conftest.err test ! -s conftest.err
} && test -s conftest.$ac_objext; then } && test -s conftest.$ac_objext; then
ac_cv_header_w32api_h=yes eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5 sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_w32api_h=no eval "$as_ac_Header=no"
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_w32api_h" >&5 ac_res=`eval echo '${'$as_ac_Header'}'`
echo "${ECHO_T}$ac_cv_header_w32api_h" >&6; } { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
{ echo "$as_me:$LINENO: checking for windows.h" >&5 { echo "$as_me:$LINENO: checking for windows.h" >&5
echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; } echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
@@ -38346,9 +38354,13 @@ _ACEOF
#include <wchar.h>" #include <wchar.h>"
case "${host}" in case "${host}" in
*-*-solaris2* ) *-*-solaris2* )
{ echo "$as_me:$LINENO: checking for widec.h" >&5
echo $ECHO_N "checking for widec.h... $ECHO_C" >&6; } for ac_header in widec.h
if test "${ac_cv_header_widec_h+set}" = set; then do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >conftest.$ac_ext <<_ACEOF cat >conftest.$ac_ext <<_ACEOF
@@ -38359,7 +38371,7 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */ /* end confdefs.h. */
$ac_includes_default $ac_includes_default
#include <widec.h> #include <$ac_header>
_ACEOF _ACEOF
rm -f conftest.$ac_objext rm -f conftest.$ac_objext
if { (ac_try="$ac_compile" if { (ac_try="$ac_compile"
@@ -38378,19 +38390,27 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
test -z "$ac_c_werror_flag" || test -z "$ac_c_werror_flag" ||
test ! -s conftest.err test ! -s conftest.err
} && test -s conftest.$ac_objext; then } && test -s conftest.$ac_objext; then
ac_cv_header_widec_h=yes eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5 sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_widec_h=no eval "$as_ac_Header=no"
fi fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi fi
{ echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5 ac_res=`eval echo '${'$as_ac_Header'}'`
echo "${ECHO_T}$ac_cv_header_widec_h" >&6; } { echo "$as_me:$LINENO: result: $ac_res" >&5
echo "${ECHO_T}$ac_res" >&6; }
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
if test "$ac_cv_header_widec_h" = "yes"; then if test "$ac_cv_header_widec_h" = "yes"; then
wchar_headers="$wchar_headers wchar_headers="$wchar_headers

View File

@@ -2560,7 +2560,7 @@ WIDGET_SET=
dnl are we building for a win32 target environment? dnl are we building for a win32 target environment?
dnl If so, setup common stuff needed for both GUI and Base libs. dnl If so, setup common stuff needed for both GUI and Base libs.
if test "$USE_WIN32" = 1 ; then if test "$USE_WIN32" = 1 ; then
AC_CHECK_HEADER(w32api.h,,, [ ]) AC_CHECK_HEADERS(w32api.h,,, [ ])
AC_CHECK_HEADER(windows.h,, AC_CHECK_HEADER(windows.h,,
[ [
AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h) AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h)
@@ -4303,7 +4303,7 @@ if test "$wxUSE_UNICODE" = yes; then
#include <wchar.h>" #include <wchar.h>"
case "${host}" in case "${host}" in
*-*-solaris2* ) *-*-solaris2* )
AC_CHECK_HEADER(widec.h,,, [AC_INCLUDES_DEFAULT()]) AC_CHECK_HEADERS(widec.h,,, [AC_INCLUDES_DEFAULT()])
if test "$ac_cv_header_widec_h" = "yes"; then if test "$ac_cv_header_widec_h" = "yes"; then
wchar_headers="$wchar_headers wchar_headers="$wchar_headers
#include <widec.h>" #include <widec.h>"