From a2f0a62091a9bf22e30c67d5f143a56f92016670 Mon Sep 17 00:00:00 2001 From: Lorenz Schori Date: Tue, 8 Sep 2009 11:36:57 +0200 Subject: [PATCH] Remove bigendian check from autoconfig system Signed-off-by: Eric Bollengier --- bacula/autoconf/acconfig.h | 2 -- bacula/autoconf/config.h.in | 2 -- bacula/autoconf/configure.in | 20 ----------- bacula/configure | 69 ------------------------------------ 4 files changed, 93 deletions(-) diff --git a/bacula/autoconf/acconfig.h b/bacula/autoconf/acconfig.h index ea87110b1f..3f613ea35b 100644 --- a/bacula/autoconf/acconfig.h +++ b/bacula/autoconf/acconfig.h @@ -215,8 +215,6 @@ #undef HAVE_OLD_SOCKOPT -#undef HAVE_BIGENDIAN - /* Defined if Gtk+-2.4 or greater is present */ #undef HAVE_GTK_2_4 diff --git a/bacula/autoconf/config.h.in b/bacula/autoconf/config.h.in index 632f9c04f3..1ab036359d 100644 --- a/bacula/autoconf/config.h.in +++ b/bacula/autoconf/config.h.in @@ -215,8 +215,6 @@ #undef HAVE_OLD_SOCKOPT -#undef HAVE_BIGENDIAN - /* Defined if Gtk+-2.4 or greater is present */ #undef HAVE_GTK_2_4 diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index fb074230d8..44de783393 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1866,26 +1866,6 @@ AC_CACHE_CHECK(for socklen_t, ba_cv_header_socklen_t, ) test $ba_cv_header_socklen_t = yes && AC_DEFINE(HAVE_SOCKLEN_T) -dnl -------------------------------------------------------------------------- -dnl Check for bigendian -dnl -------------------------------------------------------------------------- -AC_CACHE_CHECK([for bigendian], ba_cv_bigendian, - [ - AC_TRY_RUN( - [ - main(){long a=1L; char *p=(char *)&a; exit(*p);} - ], [ - ba_cv_bigendian=yes - ], [ - ba_cv_bigendian=no - ], [ - ba_cv_bigendian=no - ] - ) - ] -) -test $ba_cv_bigendian = yes && AC_DEFINE(HAVE_BIGENDIAN) - dnl -------------------------------------------------------------------------- dnl Check for typeof() dnl -------------------------------------------------------------------------- diff --git a/bacula/configure b/bacula/configure index b711d9fc96..b3b697b29a 100755 --- a/bacula/configure +++ b/bacula/configure @@ -32478,75 +32478,6 @@ test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF _ACEOF -{ echo "$as_me:$LINENO: checking for bigendian" >&5 -echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; } -if test "${ba_cv_bigendian+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - if test "$cross_compiling" = yes; then - - ba_cv_bigendian=no - - -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - main(){long a=1L; char *p=(char *)&a; exit(*p);} - -_ACEOF -rm -f conftest$ac_exeext -if { (ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - - ba_cv_bigendian=yes - -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) - - ba_cv_bigendian=no - -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - - - - -fi -{ echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5 -echo "${ECHO_T}$ba_cv_bigendian" >&6; } -test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF -#define HAVE_BIGENDIAN 1 -_ACEOF - - ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -- 2.39.5