2009-03-02 23:14:15 +00:00
|
|
|
gdb/
|
|
|
|
2009-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
* configure.ac: Call AC_SYS_LARGEFILE.
|
|
|
|
* config.in: Regenerate.
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
2009-09-10 21:37:41 +00:00
|
|
|
Index: gdb-6.8.50.20090909/gdb/configure.ac
|
2009-08-04 05:37:29 +00:00
|
|
|
===================================================================
|
2009-09-10 21:37:41 +00:00
|
|
|
--- gdb-6.8.50.20090909.orig/gdb/configure.ac 2009-09-09 20:08:04.000000000 +0200
|
|
|
|
+++ gdb-6.8.50.20090909/gdb/configure.ac 2009-09-09 20:11:04.000000000 +0200
|
|
|
|
@@ -28,6 +28,7 @@ AM_MAINTAINER_MODE
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
2009-03-02 23:14:15 +00:00
|
|
|
gl_EARLY
|
|
|
|
+AC_SYS_LARGEFILE
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
|
|
|
|
AC_CONFIG_AUX_DIR(..)
|
2009-09-10 21:37:41 +00:00
|
|
|
Index: gdb-6.8.50.20090909/gdb/config.in
|
2009-08-04 05:37:29 +00:00
|
|
|
===================================================================
|
2009-09-10 21:37:41 +00:00
|
|
|
--- gdb-6.8.50.20090909.orig/gdb/config.in 2009-09-09 20:08:04.000000000 +0200
|
|
|
|
+++ gdb-6.8.50.20090909/gdb/config.in 2009-09-09 20:11:33.000000000 +0200
|
|
|
|
@@ -751,10 +751,16 @@
|
|
|
|
# endif
|
2009-03-02 23:14:15 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
+/* Number of bits in a file offset, on hosts where this is settable. */
|
|
|
|
+#undef _FILE_OFFSET_BITS
|
|
|
|
+
|
2009-09-10 21:37:41 +00:00
|
|
|
/* Define to 1 so <sys/proc.h> gets a definition of anon_hdl. Works around a
|
2009-03-02 23:14:15 +00:00
|
|
|
<sys/proc.h> problem on IRIX 5. */
|
|
|
|
#undef _KMEMUSER
|
|
|
|
|
|
|
|
+/* Define for large files, on AIX-style hosts. */
|
|
|
|
+#undef _LARGE_FILES
|
|
|
|
+
|
|
|
|
/* Define to 1 if on MINIX. */
|
|
|
|
#undef _MINIX
|
|
|
|
|
2009-09-10 21:37:41 +00:00
|
|
|
Index: gdb-6.8.50.20090909/gdb/configure
|
2009-08-04 05:37:29 +00:00
|
|
|
===================================================================
|
2009-09-10 21:37:41 +00:00
|
|
|
--- gdb-6.8.50.20090909.orig/gdb/configure 2009-09-09 20:10:45.000000000 +0200
|
|
|
|
+++ gdb-6.8.50.20090909/gdb/configure 2009-09-09 20:11:07.000000000 +0200
|
|
|
|
@@ -884,6 +884,7 @@ ac_subst_files='host_makefile_frag'
|
|
|
|
ac_user_opts='
|
|
|
|
enable_option_checking
|
|
|
|
enable_maintainer_mode
|
|
|
|
+enable_largefile
|
|
|
|
enable_dependency_tracking
|
|
|
|
with_separate_debug_dir
|
|
|
|
with_gdb_datadir
|
|
|
|
@@ -1562,6 +1563,7 @@ Optional Features:
|
2009-03-02 23:14:15 +00:00
|
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
|
|
|
--enable-maintainer-mode enable make rules and dependencies not useful
|
|
|
|
(and sometimes confusing) to the casual installer
|
|
|
|
+ --disable-largefile omit support for large files
|
|
|
|
--disable-dependency-tracking speeds up one-time build
|
|
|
|
--enable-dependency-tracking do not reject slow dependency extractors
|
2009-08-04 05:37:29 +00:00
|
|
|
--enable-targets=TARGETS
|
2009-09-10 21:37:41 +00:00
|
|
|
@@ -4100,6 +4102,204 @@ fi
|
2009-03-02 23:14:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-10 21:37:41 +00:00
|
|
|
+# Check whether --enable-largefile was given.
|
|
|
|
+if test "${enable_largefile+set}" = set; then :
|
|
|
|
+ enableval=$enable_largefile;
|
|
|
|
+fi
|
2009-03-02 23:14:15 +00:00
|
|
|
+
|
|
|
|
+if test "$enable_largefile" != no; then
|
|
|
|
+
|
2009-09-10 21:37:41 +00:00
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
|
|
|
+$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
|
|
|
+if test "${ac_cv_sys_largefile_CC+set}" = set; then :
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
2009-03-02 23:14:15 +00:00
|
|
|
+else
|
|
|
|
+ ac_cv_sys_largefile_CC=no
|
|
|
|
+ if test "$GCC" != yes; then
|
|
|
|
+ ac_save_CC=$CC
|
|
|
|
+ while :; do
|
2009-09-10 21:37:41 +00:00
|
|
|
+ # IRIX 6.2 and later do not support large files by default,
|
|
|
|
+ # so use the C compiler's -n32 option if that helps.
|
|
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2009-03-02 23:14:15 +00:00
|
|
|
+/* end confdefs.h. */
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
|
|
|
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
|
|
+ since some C++ compilers masquerading as C compilers
|
|
|
|
+ incorrectly reject 9223372036854775807. */
|
|
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
|
|
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
|
|
+ && LARGE_OFF_T % 2147483647 == 1)
|
|
|
|
+ ? 1 : -1];
|
|
|
|
+int
|
|
|
|
+main ()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+ ;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+_ACEOF
|
2009-09-10 21:37:41 +00:00
|
|
|
+ if ac_fn_c_try_compile "$LINENO"; then :
|
2009-03-02 23:14:15 +00:00
|
|
|
+ break
|
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+rm -f core conftest.err conftest.$ac_objext
|
|
|
|
+ CC="$CC -n32"
|
|
|
|
+ if ac_fn_c_try_compile "$LINENO"; then :
|
2009-03-02 23:14:15 +00:00
|
|
|
+ ac_cv_sys_largefile_CC=' -n32'; break
|
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+rm -f core conftest.err conftest.$ac_objext
|
2009-03-02 23:14:15 +00:00
|
|
|
+ break
|
|
|
|
+ done
|
|
|
|
+ CC=$ac_save_CC
|
|
|
|
+ rm -f conftest.$ac_ext
|
|
|
|
+ fi
|
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
|
|
|
+$as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
2009-03-02 23:14:15 +00:00
|
|
|
+ if test "$ac_cv_sys_largefile_CC" != no; then
|
|
|
|
+ CC=$CC$ac_cv_sys_largefile_CC
|
|
|
|
+ fi
|
|
|
|
+
|
2009-09-10 21:37:41 +00:00
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
|
|
|
+$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
|
|
|
+if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
2009-03-02 23:14:15 +00:00
|
|
|
+else
|
|
|
|
+ while :; do
|
2009-09-10 21:37:41 +00:00
|
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2009-03-02 23:14:15 +00:00
|
|
|
+/* end confdefs.h. */
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
|
|
|
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
|
|
+ since some C++ compilers masquerading as C compilers
|
|
|
|
+ incorrectly reject 9223372036854775807. */
|
|
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
|
|
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
|
|
+ && LARGE_OFF_T % 2147483647 == 1)
|
|
|
|
+ ? 1 : -1];
|
|
|
|
+int
|
|
|
|
+main ()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+ ;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+_ACEOF
|
2009-09-10 21:37:41 +00:00
|
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
+ ac_cv_sys_file_offset_bits=no; break
|
2009-03-02 23:14:15 +00:00
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2009-03-02 23:14:15 +00:00
|
|
|
+/* end confdefs.h. */
|
|
|
|
+#define _FILE_OFFSET_BITS 64
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
|
|
|
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
|
|
+ since some C++ compilers masquerading as C compilers
|
|
|
|
+ incorrectly reject 9223372036854775807. */
|
|
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
|
|
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
|
|
+ && LARGE_OFF_T % 2147483647 == 1)
|
|
|
|
+ ? 1 : -1];
|
|
|
|
+int
|
|
|
|
+main ()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+ ;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+_ACEOF
|
2009-09-10 21:37:41 +00:00
|
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
2009-03-02 23:14:15 +00:00
|
|
|
+ ac_cv_sys_file_offset_bits=64; break
|
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
+ ac_cv_sys_file_offset_bits=unknown
|
2009-03-02 23:14:15 +00:00
|
|
|
+ break
|
|
|
|
+done
|
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
|
|
|
+$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
|
|
|
+case $ac_cv_sys_file_offset_bits in #(
|
|
|
|
+ no | unknown) ;;
|
|
|
|
+ *)
|
2009-03-02 23:14:15 +00:00
|
|
|
+cat >>confdefs.h <<_ACEOF
|
|
|
|
+#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
|
|
|
+_ACEOF
|
2009-09-10 21:37:41 +00:00
|
|
|
+;;
|
|
|
|
+esac
|
|
|
|
+rm -rf conftest*
|
|
|
|
+ if test $ac_cv_sys_file_offset_bits = unknown; then
|
|
|
|
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
|
|
|
+$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
|
|
|
+if test "${ac_cv_sys_large_files+set}" = set; then :
|
|
|
|
+ $as_echo_n "(cached) " >&6
|
2009-03-02 23:14:15 +00:00
|
|
|
+else
|
|
|
|
+ while :; do
|
2009-09-10 21:37:41 +00:00
|
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2009-03-02 23:14:15 +00:00
|
|
|
+/* end confdefs.h. */
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
|
|
|
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
|
|
+ since some C++ compilers masquerading as C compilers
|
|
|
|
+ incorrectly reject 9223372036854775807. */
|
|
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
|
|
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
|
|
+ && LARGE_OFF_T % 2147483647 == 1)
|
|
|
|
+ ? 1 : -1];
|
|
|
|
+int
|
|
|
|
+main ()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+ ;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+_ACEOF
|
2009-09-10 21:37:41 +00:00
|
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
+ ac_cv_sys_large_files=no; break
|
2009-03-02 23:14:15 +00:00
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2009-03-02 23:14:15 +00:00
|
|
|
+/* end confdefs.h. */
|
|
|
|
+#define _LARGE_FILES 1
|
|
|
|
+#include <sys/types.h>
|
|
|
|
+ /* Check that off_t can represent 2**63 - 1 correctly.
|
|
|
|
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
|
|
|
+ since some C++ compilers masquerading as C compilers
|
|
|
|
+ incorrectly reject 9223372036854775807. */
|
|
|
|
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
|
|
|
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
|
|
|
+ && LARGE_OFF_T % 2147483647 == 1)
|
|
|
|
+ ? 1 : -1];
|
|
|
|
+int
|
|
|
|
+main ()
|
|
|
|
+{
|
|
|
|
+
|
|
|
|
+ ;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+_ACEOF
|
2009-09-10 21:37:41 +00:00
|
|
|
+if ac_fn_c_try_compile "$LINENO"; then :
|
2009-03-02 23:14:15 +00:00
|
|
|
+ ac_cv_sys_large_files=1; break
|
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
+ ac_cv_sys_large_files=unknown
|
2009-03-02 23:14:15 +00:00
|
|
|
+ break
|
|
|
|
+done
|
|
|
|
+fi
|
2009-09-10 21:37:41 +00:00
|
|
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
|
|
|
+$as_echo "$ac_cv_sys_large_files" >&6; }
|
|
|
|
+case $ac_cv_sys_large_files in #(
|
|
|
|
+ no | unknown) ;;
|
|
|
|
+ *)
|
2009-03-02 23:14:15 +00:00
|
|
|
+cat >>confdefs.h <<_ACEOF
|
|
|
|
+#define _LARGE_FILES $ac_cv_sys_large_files
|
|
|
|
+_ACEOF
|
2009-09-10 21:37:41 +00:00
|
|
|
+;;
|
|
|
|
+esac
|
|
|
|
+rm -rf conftest*
|
|
|
|
+ fi
|
2009-03-02 23:14:15 +00:00
|
|
|
+fi
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|