-if test "x$wx_largefile" = "xyes"; then
- if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
- WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
-
- dnl We get "Large Files (ILP32) not supported in strict ANSI mode."
- dnl #error from HP standard headers unless __STDC_EXT__ is defined.
- dnl The compiler should define it automatically, but some old g++
- dnl versions don't define it, so test and add it if necessary. AFAIK
- dnl the problem only affects the C++ compiler so it is added to
- dnl CXXFLAGS only.
- if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
- AC_CACHE_CHECK(
- [if -D__STDC_EXT__ is required],
- wx_cv_STDC_EXT_required,
- [
- AC_LANG_PUSH(C++)
- AC_TRY_COMPILE(
- [],
- [
- #ifndef __STDC_EXT__
- choke me
- #endif
- ],
- wx_cv_STDC_EXT_required=no,
- wx_cv_STDC_EXT_required=yes
- )
- AC_LANG_POP()
- ]
- )
- if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
- WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
- fi
+if test -n "$LARGEFILE_CPPFLAGS"; then
+ WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
+
+ dnl We get "Large Files (ILP32) not supported in strict ANSI mode."
+ dnl #error from HP standard headers unless __STDC_EXT__ is defined.
+ dnl The compiler should define it automatically, but some old g++
+ dnl versions don't define it, so test and add it if necessary. AFAIK
+ dnl the problem only affects the C++ compiler so it is added to
+ dnl CXXFLAGS only.
+ if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
+ AC_CACHE_CHECK(
+ [if -D__STDC_EXT__ is required],
+ wx_cv_STDC_EXT_required,
+ [
+ AC_LANG_PUSH(C++)
+ AC_TRY_COMPILE(
+ [],
+ [
+ #ifndef __STDC_EXT__
+ choke me
+ #endif
+ ],
+ wx_cv_STDC_EXT_required=no,
+ wx_cv_STDC_EXT_required=yes
+ )
+ AC_LANG_POP()
+ ]
+ )
+ if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
+ WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"