Commit df3872a2 authored by unknown's avatar unknown
Browse files

Merge mysql.com:/home/stewart/Documents/MySQL/4.1/main

into mysql.com:/home/stewart/Documents/MySQL/4.1/bug10948

parents 0602da4d 2da5ba70
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ if test -r /proc/cpuinfo ; then
  fi

  # parse CPU flags
  for flag in `$cpuinfo | grep 'flags' | sed -e 's/^flags.*: //'`; do 
  for flag in `$cpuinfo | grep '^flags' | sed -e 's/^flags.*: //'`; do 
	eval cpu_flag_$flag=yes
  done
else
@@ -52,7 +52,6 @@ fi
# detect CPU shortname as used by gcc options 
# this list is not complete, feel free to add further entries
cpu_arg=""

case "$cpu_family--$model_name" in
  # DEC Alpha
  Alpha*EV6*)
@@ -99,8 +98,12 @@ case "$cpu_family--$model_name" in
    ;;

  #
  *ppc*)
    cpu_arg='powerpc'
    ;;
 
  *powerpc*)
    cpu_arg=`echo $model_name | sed -e"s/ppc//g"`
    cpu_arg='powerpc'
    ;;

  # unknown
+1 −2
Original line number Diff line number Diff line
@@ -16,12 +16,11 @@

/* This file is originally from the mysql distribution. Coded by monty */

#include <my_global.h>

#ifdef USE_PRAGMA_IMPLEMENTATION
#pragma implementation				// gcc: Class implementation
#endif

#include <my_global.h>
#include <my_sys.h>
#include <m_string.h>
#include <m_ctype.h>
+12 −1
Original line number Diff line number Diff line
@@ -1837,12 +1837,23 @@ if test "$ac_cv_sizeof_off_t" -eq 0
then
  AC_MSG_ERROR("MySQL needs a off_t type.")
fi

# do we need #pragma interface/#pragma implementation ?
# yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin
AC_MSG_CHECKING(the need for @%:@pragma interface/implementation)
# instead of trying to match SYSTEM_TYPE and CC_VERSION (that doesn't
# follow any standard), we'll use well-defined preprocessor macros:
AC_TRY_CPP([
#if !defined(__CYGWIN__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3)
#error USE_PRAGMA_IMPLEMENTATION
#endif
],AC_MSG_RESULT(no) ,AC_MSG_RESULT(yes) ; CXXFLAGS="$CXXFLAGS -DUSE_PRAGMA_IMPLEMENTATION")

# This always gives a warning. Ignore it unless you are cross compiling
AC_C_BIGENDIAN
#---START: Used in for client configure
# Check base type of last arg to accept
MYSQL_TYPE_ACCEPT

#---END:
# Figure out what type of struct rlimit to use with setrlimit
MYSQL_TYPE_STRUCT_RLIMIT
+2 −7
Original line number Diff line number Diff line
@@ -43,16 +43,11 @@
#define HAVE_ERRNO_AS_DEFINE
#endif /* __CYGWIN__ */

/* Determine when to use "#pragma interface" */
#if !defined(__CYGWIN__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3)
/* to make command line shorter we'll define USE_PRAGMA_INTERFACE here */
#ifdef USE_PRAGMA_IMPLEMENTATION
#define USE_PRAGMA_INTERFACE
#endif

/* Determine when to use "#pragma implementation" */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3)
#define USE_PRAGMA_IMPLEMENTATION
#endif

#if defined(i386) && !defined(__i386__)
#define __i386__
#endif
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ sub mtr_full_hostname () {
  if ( $hostname !~ /\./ )
  {
    my $address=   gethostbyname($hostname)
      or die "Couldn't resolve $hostname : $!";
      or mtr_error("Couldn't resolve $hostname : $!");
    my $fullname=  gethostbyaddr($address, AF_INET);
    $hostname= $fullname if $fullname; 
  }
Loading