2007-01-06 20:39:51 +01:00
|
|
|
--- gcc-4.2.orig/libstdc++-v3/configure (revision 120449)
|
|
|
|
+++ gcc-4.2/libstdc++-v3/configure (working copy)
|
|
|
|
@@ -99359,17 +99359,104 @@
|
|
|
|
#define HAVE_INT64_T 1
|
|
|
|
_ACEOF
|
2006-12-28 09:47:36 +01:00
|
|
|
|
2007-01-06 20:39:51 +01:00
|
|
|
- case "$target" in
|
|
|
|
- *-uclinux*)
|
|
|
|
- # Don't enable LFS with uClinux
|
|
|
|
- ;;
|
|
|
|
- *)
|
|
|
|
- cat >>confdefs.h <<\_ACEOF
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ ac_ext=cc
|
|
|
|
+ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
|
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
|
+
|
|
|
|
+ ac_save_CXXFLAGS="$CXXFLAGS"
|
|
|
|
+ CXXFLAGS="$CXXFLAGS -fno-exceptions"
|
|
|
|
+ echo "$as_me:$LINENO: checking for LFS support" >&5
|
|
|
|
+echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
|
|
|
|
+ if test "${glibcxx_cv_LFS+set}" = set; then
|
2006-12-28 09:47:36 +01:00
|
|
|
+ echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
+else
|
|
|
|
+
|
2007-01-06 20:39:51 +01:00
|
|
|
+ if test x$gcc_no_link = xyes; then
|
|
|
|
+ { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
|
|
|
|
+echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
|
|
|
|
+ { (exit 1); exit 1; }; }
|
2006-12-28 09:47:36 +01:00
|
|
|
+fi
|
2007-01-06 20:39:51 +01:00
|
|
|
+cat >conftest.$ac_ext <<_ACEOF
|
2006-12-28 09:47:36 +01:00
|
|
|
+/* confdefs.h. */
|
|
|
|
+_ACEOF
|
|
|
|
+cat confdefs.h >>conftest.$ac_ext
|
|
|
|
+cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
+/* end confdefs.h. */
|
2007-01-06 20:39:51 +01:00
|
|
|
+#include <unistd.h>
|
|
|
|
+ #include <stdio.h>
|
|
|
|
+ #include <sys/stat.h>
|
2006-12-28 09:47:36 +01:00
|
|
|
+
|
|
|
|
+int
|
|
|
|
+main ()
|
|
|
|
+{
|
2007-01-06 20:39:51 +01:00
|
|
|
+FILE* fp;
|
|
|
|
+ fopen64("t", "w");
|
|
|
|
+ fseeko64(fp, 0, SEEK_CUR);
|
|
|
|
+ ftello64(fp);
|
|
|
|
+ lseek64(1, 0, SEEK_CUR);
|
|
|
|
+ struct stat64 buf;
|
|
|
|
+ fstat64(1, &buf);
|
2006-12-28 09:47:36 +01:00
|
|
|
+ ;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+_ACEOF
|
2007-01-06 20:39:51 +01:00
|
|
|
+rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
|
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
|
|
|
+ (eval $ac_link) 2>conftest.er1
|
2006-12-28 09:47:36 +01:00
|
|
|
+ ac_status=$?
|
|
|
|
+ grep -v '^ *+' conftest.er1 >conftest.err
|
|
|
|
+ rm -f conftest.er1
|
|
|
|
+ cat conftest.err >&5
|
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
+ (exit $ac_status); } &&
|
2007-01-06 20:39:51 +01:00
|
|
|
+ { ac_try='test -z "$ac_cxx_werror_flag"
|
2006-12-28 09:47:36 +01:00
|
|
|
+ || test ! -s conftest.err'
|
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
|
+ ac_status=$?
|
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
+ (exit $ac_status); }; } &&
|
2007-01-06 20:39:51 +01:00
|
|
|
+ { ac_try='test -s conftest$ac_exeext'
|
2006-12-28 09:47:36 +01:00
|
|
|
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
+ (eval $ac_try) 2>&5
|
|
|
|
+ ac_status=$?
|
|
|
|
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
+ (exit $ac_status); }; }; then
|
2007-01-06 20:39:51 +01:00
|
|
|
+ glibcxx_cv_LFS=yes
|
2006-12-28 09:47:36 +01:00
|
|
|
+else
|
|
|
|
+ echo "$as_me: failed program was:" >&5
|
|
|
|
+sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
+
|
2007-01-06 20:39:51 +01:00
|
|
|
+glibcxx_cv_LFS=no
|
2006-12-28 09:47:36 +01:00
|
|
|
+fi
|
2007-01-06 20:39:51 +01:00
|
|
|
+rm -f conftest.err conftest.$ac_objext \
|
|
|
|
+ conftest$ac_exeext conftest.$ac_ext
|
2006-12-28 09:47:36 +01:00
|
|
|
+
|
|
|
|
+fi
|
|
|
|
+
|
2007-01-06 20:39:51 +01:00
|
|
|
+ if test $glibcxx_cv_LFS = yes; then
|
2006-12-28 09:47:36 +01:00
|
|
|
+
|
2007-01-06 20:39:51 +01:00
|
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
|
|
#define _GLIBCXX_USE_LFS 1
|
|
|
|
_ACEOF
|
2006-12-28 09:47:36 +01:00
|
|
|
|
2007-01-06 20:39:51 +01:00
|
|
|
- esac
|
|
|
|
+ fi
|
|
|
|
+ echo "$as_me:$LINENO: result: $glibcxx_cv_LFS" >&5
|
|
|
|
+echo "${ECHO_T}$glibcxx_cv_LFS" >&6
|
|
|
|
+ CXXFLAGS="$ac_save_CXXFLAGS"
|
|
|
|
+ ac_ext=c
|
|
|
|
+ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2006-12-28 09:47:36 +01:00
|
|
|
|
2007-01-06 20:39:51 +01:00
|
|
|
+
|
|
|
|
+
|
|
|
|
# For showmanyc_helper().
|
2006-12-28 09:47:36 +01:00
|
|
|
|
|
|
|
|
2007-01-06 20:39:51 +01:00
|
|
|
--- gcc-4.2.orig/libstdc++-v3/crossconfig.m4 (revision 120449)
|
|
|
|
+++ gcc-4.2/libstdc++-v3/crossconfig.m4 (working copy)
|
|
|
|
@@ -157,13 +157,7 @@
|
2006-12-28 09:47:36 +01:00
|
|
|
|
2007-01-06 20:39:51 +01:00
|
|
|
# For LFS.
|
|
|
|
AC_DEFINE(HAVE_INT64_T)
|
|
|
|
- case "$target" in
|
|
|
|
- *-uclinux*)
|
|
|
|
- # Don't enable LFS with uClinux
|
|
|
|
- ;;
|
|
|
|
- *)
|
|
|
|
- AC_DEFINE(_GLIBCXX_USE_LFS)
|
|
|
|
- esac
|
|
|
|
+ GLIBCXX_CHECK_LFS
|
2006-12-28 09:47:36 +01:00
|
|
|
|
|
|
|
# For showmanyc_helper().
|
2007-01-06 20:39:51 +01:00
|
|
|
AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
|