View | Details | Raw Unified
Collapse All | Expand All

(-) A/configure.in (-155 / +164 lines)
 Lines 115-120    Link Here 
AC_ARG_ENABLE(g,
AC_ARG_ENABLE(g,
       [  --enable-g=[yes/no]             compile with symbolic debug information. [default=yes]],,
       [  --enable-g=[yes/no]             compile with symbolic debug information. [default=yes]],,
       enable_g=yes)
       enable_g=yes)
AC_ARG_ENABLE(ccoptim,
       [  --enable-ccoptim=[yes/no]             compile with guessed compiler optimisation flags. [default=yes]],,
       enable_ccoptim=yes)
AC_ARG_ENABLE(debug,
AC_ARG_ENABLE(debug,
       [  --enable-debug=[no/minimum/yes] turn on debugging. [default=$debug_default]],,
       [  --enable-debug=[no/minimum/yes] turn on debugging. [default=$debug_default]],,
       enable_debug=$debug_default)
       enable_debug=$debug_default)
 Lines 297-303    Link Here 
AC_DEFINE_UNQUOTED( HAVE_MPI, ${result}, [Whether to use MPI for parallel code.])
AC_DEFINE_UNQUOTED( HAVE_MPI, ${result}, [Whether to use MPI for parallel code.])
# Reset CFLAGS and LIBS variables.
# Reset CFLAGS and LIBS variables.
LIBS=$old_LIBS
LIBS=$old_LIBS
CFLAGS=$old_CFALGS
CFLAGS=$old_CFLAGS
AC_MSG_CHECKING(whether to disable memory chunk allocation)
AC_MSG_CHECKING(whether to disable memory chunk allocation)
if test "x$enable_memory_chunks" = "xyes"; then
if test "x$enable_memory_chunks" = "xyes"; then
 Lines 453-604    Link Here 
#
#
# Compiler specific switches.
# Compiler specific switches.
#
#
changequote(,)dnl
if test "x$enable_ccoptim" = "xyes"; then
case $CC in
  changequote(,)dnl
  gcc)
  case $CC in
    # Optimisations etc. for the GNU gcc compiler.
    gcc)
    case " $CFLAGS " in
      # Optimisations etc. for the GNU gcc compiler.
      *[\ \	]-Wall[\ \	]*) ;;
      *) CFLAGS="$CFLAGS -Wall" ;;
    esac
    if test "x$enable_g" = "xyes"; then
      case " $CFLAGS " in
      case " $CFLAGS " in
        *[\ \	]-g[\ \	]*) ;;
        *[\ \	]-Wall[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -g" ;;
        *) CFLAGS="$CFLAGS -Wall" ;;
      esac
      esac
      case " $CFLAGS " in
      if test "x$enable_g" = "xyes"; then
        *[\ \	]-O2[\ \	]*) ;;
        case " $CFLAGS " in
        *) CFLAGS="$CFLAGS -O2" ;;
          *[\ \	]-g[\ \	]*) ;;
      esac
          *) CFLAGS="$CFLAGS -g" ;;
        esac
    else
        case " $CFLAGS " in
      case " $CFLAGS " in
          *[\ \	]-O2[\ \	]*) ;;
        *[\ \	]-O3[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -O2" ;;
        *) CFLAGS="$CFLAGS -O3" ;;
        esac
      esac
    fi
      else
        case " $CFLAGS " in
          *[\ \	]-O3[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -O3" ;;
        esac
    if test "x$enable_prof" = "xyes"; then
      fi
      case " $CFLAGS " in
        *[\ \	]-pg[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -pg" ;;
      esac
    fi
    if test "x$enable_missing_prototypes" = "xyes"; then
      if test "x$enable_prof" = "xyes"; then
      case " $CFLAGS " in
        case " $CFLAGS " in
        *[\ \	]-Wmissing-prototypes[\ \	]*) ;;
          *[\ \	]-pg[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
          *) CFLAGS="$CFLAGS -pg" ;;
      esac
        esac
    fi
      fi
    if test "x$enable_ansi" = "xyes"; then
      if test "x$enable_missing_prototypes" = "xyes"; then
      case " $CFLAGS " in
        case " $CFLAGS " in
        *[\ \	]-ansi[\ \	]*) ;;
          *[\ \	]-Wmissing-prototypes[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -ansi" ;;
          *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
      esac
        esac
      fi
      case " $CFLAGS " in
      if test "x$enable_ansi" = "xyes"; then
        *[\ \	]-pedantic[\ \	]*) ;;
        case " $CFLAGS " in
        *) CFLAGS="$CFLAGS -pedantic" ;;
          *[\ \	]-ansi[\ \	]*) ;;
      esac
          *) CFLAGS="$CFLAGS -ansi" ;;
    fi
        esac
        case " $CFLAGS " in
          *[\ \	]-pedantic[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -pedantic" ;;
        esac
      fi
    ;;
    ;;
  icc)
    icc)
# Optimisations etc. for the Intel C++ compiler.
# Optimisations etc. for the Intel C++ compiler.
    case " $CFLAGS " in
      *[\ \	]-w1[\ \	]*) ;;
      *) CFLAGS="$CFLAGS -w2" ;;
    esac
    if test "x$enable_g" = "xyes"; then
      case " $CFLAGS " in
        *[\ \	]-g[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -g" ;;
      esac
      case " $CFLAGS " in
        *[\ \	]-O2[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -O2" ;;
      esac
    else
      case " $CFLAGS " in
      case " $CFLAGS " in
        *[\ \	]-O3[\ \	]*) ;;
        *[\ \	]-w1[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -O3" ;;
        *) CFLAGS="$CFLAGS -w2" ;;
      esac
      esac
    fi
      if test "x$enable_g" = "xyes"; then
        case " $CFLAGS " in
          *[\ \	]-g[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -g" ;;
        esac
    case " $CFLAGS " in
        case " $CFLAGS " in
      *[\ \	]-ipo[\ \	]*) ;;
          *[\ \	]-O2[\ \	]*) ;;
      *) CFLAGS="$CFLAGS -ipo -ipo_obj" ;;
          *) CFLAGS="$CFLAGS -O2" ;;
    esac
        esac
    if test "x$enable_openmp" = "xyes"; then
      else
      case " $CFLAGS " in
        *[\ \	]-openmp[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -openmp -openmp_report2" ;;
      esac
    fi
    if test "x$enable_parallel" = "xyes"; then
        case " $CFLAGS " in
      case " $CFLAGS " in
          *[\ \	]-O3[\ \	]*) ;;
        *[\ \	]-parallel[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -O3" ;;
        *) CFLAGS="$CFLAGS -parallel -parthreshold50 -par_report3" ;;
        esac
      esac
    fi
    if test "x$enable_prof" = "xyes"; then
      fi
      case " $CFLAGS " in
        *[\ \	]-qp[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -qp" ;;
      esac
    fi
    if test "x$enable_ansi" = "xyes"; then
      case " $CFLAGS " in
      case " $CFLAGS " in
        *[\ \	]-ansi[\ \	]*) ;;
        *[\ \	]-ipo[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -ansi" ;;
        *) CFLAGS="$CFLAGS -ipo -ipo_obj" ;;
      esac
      esac
    fi
    ;;
  ccc)
      if test "x$enable_openmp" = "xyes"; then
# Kludges etc. for the Compaq C Compiler
        case " $CFLAGS " in
          *[\ \	]-openmp[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -openmp -openmp_report2" ;;
        esac
      fi
      if test "x$enable_g" = "xyes"; then
      if test "x$enable_parallel" = "xyes"; then
        case " $CFLAGS " in
        case " $CFLAGS " in
          *[\ \	]-g[\ \	]*) ;;
          *[\ \	]-parallel[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -g3" ;;
          *) CFLAGS="$CFLAGS -parallel -parthreshold50 -par_report3" ;;
        esac
        esac
      fi
      else
      if test "x$enable_prof" = "xyes"; then
        case " $CFLAGS " in
        case " $CFLAGS " in
          *[\ \	]-O3[\ \	]*) ;;
          *[\ \	]-qp[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -O3" ;;
          *) CFLAGS="$CFLAGS -qp" ;;
        esac
        esac
      fi
      if test "x$enable_ansi" = "xyes"; then
        case " $CFLAGS " in
          *[\ \	]-ansi[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -ansi" ;;
        esac
      fi
      fi
      ;;
      case " $CFLAGS " in
    ccc)
        *[\ \	]-Wall[\ \	]*) ;;
# Kludges etc. for the Compaq C Compiler
        *) CFLAGS="$CFLAGS -Wall" ;;
      esac
      case " $CFLAGS " in
        if test "x$enable_g" = "xyes"; then
        *[\ \	]-misalign[\ \	]*) ;;
          case " $CFLAGS " in
        *) CFLAGS="$CFLAGS -misalign" ;;
            *[\ \	]-g[\ \	]*) ;;
      esac
            *) CFLAGS="$CFLAGS -g3" ;;
    ;;
          esac
        else
          case " $CFLAGS " in
            *[\ \	]-O3[\ \	]*) ;;
            *) CFLAGS="$CFLAGS -O3" ;;
          esac
        fi
  pgcc)
        case " $CFLAGS " in
          *[\ \	]-Wall[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -Wall" ;;
        esac
        case " $CFLAGS " in
          *[\ \	]-misalign[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -misalign" ;;
        esac
      ;;
    pgcc)
# The Portland Group C compiler.
# The Portland Group C compiler.
# Note: Should consider use of -tp flags to specify processor type.
# Note: Should consider use of -tp flags to specify processor type.
# I should also consider investigating the pgcc profiling options.
# I should also consider investigating the pgcc profiling options.
 Lines 638-645    Link Here 
    fi
    fi
    ;;
    ;;
esac
  esac
changequote([,])dnl
  changequote([,])dnl
fi
#
#
# Check type sizes.
# Check type sizes.
 Lines 714-760    Link Here 
# Some processor specific stuff.
# Some processor specific stuff.
#
#
AC_MSG_CHECKING(whether to apply processor specific optimisations)
AC_MSG_CHECKING(whether to apply processor specific optimisations)
case "$target" in
if test "x$enable_ccoptim" = "xyes"; then
  i586-*-*)
  case "$target" in
    AC_MSG_RESULT(yes - i586)
    i586-*-*)
    case "$CC" in
      AC_MSG_RESULT(yes - i586)
      icc)
      case "$CC" in
        case " $CFLAGS " in
        icc)
          *[\ \	]-tpp[1-9\ \	]*) ;;
          case " $CFLAGS " in
	  # -axK
            *[\ \	]-tpp[1-9\ \	]*) ;;
          *) CFLAGS="$CFLAGS -tpp6" ;;
	    # -axK
        esac
            *) CFLAGS="$CFLAGS -tpp6" ;;
        ;;
          esac
      gcc)
          ;;
        case " $CFLAGS " in
        gcc)
          *[\ \	]-mcpu=*) ;;
          case " $CFLAGS " in
          *) CFLAGS="$CFLAGS -mcpu=pentium" ;;
            *[\ \	]-mcpu=*) ;;
        esac
            *) CFLAGS="$CFLAGS -mcpu=pentium" ;;
        ;;
          esac
    esac
          ;;
    ;;
      esac
  i686-*-*)
      ;;
    AC_MSG_RESULT(yes - i686)
    i686-*-*)
    case "$CC" in
      AC_MSG_RESULT(yes - i686)
      icc)
      case "$CC" in
        case " $CFLAGS " in
        icc)
          *[\ \	]-tpp[1-9\ \	]*) ;;
          case " $CFLAGS " in
	  # -axW
            *[\ \	]-tpp[1-9\ \	]*) ;;
          *) CFLAGS="$CFLAGS -tpp7" ;;
	    # -axW
        esac
            *) CFLAGS="$CFLAGS -tpp7" ;;
        ;;
          esac
      gcc)
          ;;
        case " $CFLAGS " in
        gcc)
          *[\ \	]-mcpu=*) ;;
          case " $CFLAGS " in
          *) CFLAGS="$CFLAGS -mcpu=pentiumpro" ;;
            *[\ \	]-mcpu=*) ;;
        esac
            *) CFLAGS="$CFLAGS -mcpu=pentiumpro" ;;
        ;;
          esac
    esac
          ;;
    ;;
      esac
  *)
      ;;
    AC_MSG_RESULT(no - none defined for ${target})
    *)
    ;;
      AC_MSG_RESULT(no - none defined for ${target})
esac
      ;;
  esac
else
  AC_MSG_RESULT(no disabled)
fi
dnl GAUL_MEMORY_ALIGN_SIZE
dnl GAUL_MEMORY_ALIGN_SIZE
dnl Determine memory alignment characteristics.
dnl Determine memory alignment characteristics.
(-) A/configure (-158 / +174 lines)
 Lines 1015-1020    Link Here 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
  --enable-fast-install=PKGS  optimize for fast installation default=yes
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --enable-g=yes/no             compile with symbolic debug information. default=yes
  --enable-g=yes/no             compile with symbolic debug information. default=yes
  --enable-ccoptim=yes/no             compile with guessed compiler optimisation flags. default=yes
  --enable-debug=no/minimum/yes turn on debugging. default=$debug_default
  --enable-debug=no/minimum/yes turn on debugging. default=$debug_default
  --enable-memory-debug=yes/no  turn on memory access debugging. default=no
  --enable-memory-debug=yes/no  turn on memory access debugging. default=no
  --enable-ansi=yes/no          turn on strict ansi. default=no
  --enable-ansi=yes/no          turn on strict ansi. default=no
 Lines 5248-5254    Link Here 
save_CFLAGS="$CFLAGS"
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
compiler_c_o=no
if { (eval echo configure:5251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  # The compiler can only warn and ignore the option if not recognized
  # The compiler can only warn and ignore the option if not recognized
  # So say no if there are warnings
  # So say no if there are warnings
  if test -s out/conftest.err; then
  if test -s out/conftest.err; then
 Lines 7958-7963    Link Here 
else
else
  enable_g=yes
  enable_g=yes
fi;
fi;
# Check whether --enable-ccoptim or --disable-ccoptim was given.
if test "${enable_ccoptim+set}" = set; then
  enableval="$enable_ccoptim"
else
  enable_ccoptim=yes
fi;
# Check whether --enable-debug or --disable-debug was given.
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
if test "${enable_debug+set}" = set; then
  enableval="$enable_debug"
  enableval="$enable_debug"
 Lines 8248-8263    Link Here 
#
#
  if test "x$MPIFLAGS" != "x" || test "x$MPILIBS" != "x"; then
  if test "x$MPIFLAGS" != "x" || test "x$MPILIBS" != "x"; then
    # User defined the additional LIBS and CFLAGS stuff :-).
    # User defined the additional LIBS and CFLAGS stuff :-).
    # "-lm" used in AC_CHECK_LIB as dummy library.
    LIBS="$old_LIBS $MPILIBS"
    LIBS="$old_LIBS $MPILIBS"
    CFLAGS="$old_CFLAGS $MPIFLAGS"
    CFLAGS="$old_CFLAGS $MPIFLAGS"
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
echo "$as_me:$LINENO: checking for MPI_Init in -lm" >&5
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
echo $ECHO_N "checking for MPI_Init in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
if test "${ac_cv_lib_m_MPI_Init+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
else
  ac_check_lib_save_LIBS=$LIBS
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lmpi  $LIBS"
LIBS="-lm  $LIBS"
cat >conftest.$ac_ext <<_ACEOF
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#line $LINENO "configure"
/* confdefs.h.  */
/* confdefs.h.  */
 Lines 8505-8511    Link Here 
# Reset CFLAGS and LIBS variables.
# Reset CFLAGS and LIBS variables.
LIBS=$old_LIBS
LIBS=$old_LIBS
CFLAGS=$old_CFALGS
CFLAGS=$old_CFLAGS
echo "$as_me:$LINENO: checking whether to disable memory chunk allocation" >&5
echo "$as_me:$LINENO: checking whether to disable memory chunk allocation" >&5
echo $ECHO_N "checking whether to disable memory chunk allocation... $ECHO_C" >&6
echo $ECHO_N "checking whether to disable memory chunk allocation... $ECHO_C" >&6
 Lines 8856-9006    Link Here 
#
#
# Compiler specific switches.
# Compiler specific switches.
#
#
case $CC in
if test "x$enable_ccoptim" = "xyes"; then
  gcc)
    case $CC in
    # Optimisations etc. for the GNU gcc compiler.
    gcc)
    case " $CFLAGS " in
      # Optimisations etc. for the GNU gcc compiler.
      *[\ \	]-Wall[\ \	]*) ;;
      *) CFLAGS="$CFLAGS -Wall" ;;
    esac
    if test "x$enable_g" = "xyes"; then
      case " $CFLAGS " in
      case " $CFLAGS " in
        *[\ \	]-g[\ \	]*) ;;
        *[\ \	]-Wall[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -g" ;;
        *) CFLAGS="$CFLAGS -Wall" ;;
      esac
      esac
      case " $CFLAGS " in
      if test "x$enable_g" = "xyes"; then
        *[\ \	]-O2[\ \	]*) ;;
        case " $CFLAGS " in
        *) CFLAGS="$CFLAGS -O2" ;;
          *[\ \	]-g[\ \	]*) ;;
      esac
          *) CFLAGS="$CFLAGS -g" ;;
        esac
    else
        case " $CFLAGS " in
      case " $CFLAGS " in
          *[\ \	]-O2[\ \	]*) ;;
        *[\ \	]-O3[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -O2" ;;
        *) CFLAGS="$CFLAGS -O3" ;;
        esac
      esac
    fi
      else
        case " $CFLAGS " in
          *[\ \	]-O3[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -O3" ;;
        esac
    if test "x$enable_prof" = "xyes"; then
      fi
      case " $CFLAGS " in
        *[\ \	]-pg[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -pg" ;;
      esac
    fi
    if test "x$enable_missing_prototypes" = "xyes"; then
      if test "x$enable_prof" = "xyes"; then
      case " $CFLAGS " in
        case " $CFLAGS " in
        *[\ \	]-Wmissing-prototypes[\ \	]*) ;;
          *[\ \	]-pg[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
          *) CFLAGS="$CFLAGS -pg" ;;
      esac
        esac
    fi
      fi
    if test "x$enable_ansi" = "xyes"; then
      if test "x$enable_missing_prototypes" = "xyes"; then
      case " $CFLAGS " in
        case " $CFLAGS " in
        *[\ \	]-ansi[\ \	]*) ;;
          *[\ \	]-Wmissing-prototypes[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -ansi" ;;
          *) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
      esac
        esac
      fi
      case " $CFLAGS " in
      if test "x$enable_ansi" = "xyes"; then
        *[\ \	]-pedantic[\ \	]*) ;;
        case " $CFLAGS " in
        *) CFLAGS="$CFLAGS -pedantic" ;;
          *[\ \	]-ansi[\ \	]*) ;;
      esac
          *) CFLAGS="$CFLAGS -ansi" ;;
    fi
        esac
        case " $CFLAGS " in
          *[\ \	]-pedantic[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -pedantic" ;;
        esac
      fi
    ;;
    ;;
  icc)
    icc)
# Optimisations etc. for the Intel C++ compiler.
# Optimisations etc. for the Intel C++ compiler.
    case " $CFLAGS " in
      *[\ \	]-w1[\ \	]*) ;;
      *) CFLAGS="$CFLAGS -w2" ;;
    esac
    if test "x$enable_g" = "xyes"; then
      case " $CFLAGS " in
        *[\ \	]-g[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -g" ;;
      esac
      case " $CFLAGS " in
      case " $CFLAGS " in
        *[\ \	]-O2[\ \	]*) ;;
        *[\ \	]-w1[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -O2" ;;
        *) CFLAGS="$CFLAGS -w2" ;;
      esac
      esac
    else
      if test "x$enable_g" = "xyes"; then
        case " $CFLAGS " in
      case " $CFLAGS " in
          *[\ \	]-g[\ \	]*) ;;
        *[\ \	]-O3[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -g" ;;
        *) CFLAGS="$CFLAGS -O3" ;;
        esac
      esac
    fi
    case " $CFLAGS " in
        case " $CFLAGS " in
      *[\ \	]-ipo[\ \	]*) ;;
          *[\ \	]-O2[\ \	]*) ;;
      *) CFLAGS="$CFLAGS -ipo -ipo_obj" ;;
          *) CFLAGS="$CFLAGS -O2" ;;
    esac
        esac
    if test "x$enable_openmp" = "xyes"; then
      else
      case " $CFLAGS " in
        *[\ \	]-openmp[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -openmp -openmp_report2" ;;
      esac
    fi
    if test "x$enable_parallel" = "xyes"; then
        case " $CFLAGS " in
      case " $CFLAGS " in
          *[\ \	]-O3[\ \	]*) ;;
        *[\ \	]-parallel[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -O3" ;;
        *) CFLAGS="$CFLAGS -parallel -parthreshold50 -par_report3" ;;
        esac
      esac
    fi
    if test "x$enable_prof" = "xyes"; then
      fi
      case " $CFLAGS " in
        *[\ \	]-qp[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -qp" ;;
      esac
    fi
    if test "x$enable_ansi" = "xyes"; then
      case " $CFLAGS " in
      case " $CFLAGS " in
        *[\ \	]-ansi[\ \	]*) ;;
        *[\ \	]-ipo[\ \	]*) ;;
        *) CFLAGS="$CFLAGS -ansi" ;;
        *) CFLAGS="$CFLAGS -ipo -ipo_obj" ;;
      esac
      esac
    fi
    ;;
  ccc)
      if test "x$enable_openmp" = "xyes"; then
# Kludges etc. for the Compaq C Compiler
        case " $CFLAGS " in
          *[\ \	]-openmp[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -openmp -openmp_report2" ;;
        esac
      fi
      if test "x$enable_g" = "xyes"; then
      if test "x$enable_parallel" = "xyes"; then
        case " $CFLAGS " in
        case " $CFLAGS " in
          *[\ \	]-g[\ \	]*) ;;
          *[\ \	]-parallel[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -g3" ;;
          *) CFLAGS="$CFLAGS -parallel -parthreshold50 -par_report3" ;;
        esac
        esac
      fi
      else
      if test "x$enable_prof" = "xyes"; then
        case " $CFLAGS " in
        case " $CFLAGS " in
          *[\ \	]-O3[\ \	]*) ;;
          *[\ \	]-qp[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -O3" ;;
          *) CFLAGS="$CFLAGS -qp" ;;
        esac
        esac
      fi
      if test "x$enable_ansi" = "xyes"; then
        case " $CFLAGS " in
          *[\ \	]-ansi[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -ansi" ;;
        esac
      fi
      fi
      ;;
      case " $CFLAGS " in
    ccc)
        *[\ \	]-Wall[\ \	]*) ;;
# Kludges etc. for the Compaq C Compiler
        *) CFLAGS="$CFLAGS -Wall" ;;
      esac
      case " $CFLAGS " in
        if test "x$enable_g" = "xyes"; then
        *[\ \	]-misalign[\ \	]*) ;;
          case " $CFLAGS " in
        *) CFLAGS="$CFLAGS -misalign" ;;
            *[\ \	]-g[\ \	]*) ;;
      esac
            *) CFLAGS="$CFLAGS -g3" ;;
    ;;
          esac
        else
          case " $CFLAGS " in
            *[\ \	]-O3[\ \	]*) ;;
            *) CFLAGS="$CFLAGS -O3" ;;
          esac
        fi
  pgcc)
        case " $CFLAGS " in
          *[\ \	]-Wall[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -Wall" ;;
        esac
        case " $CFLAGS " in
          *[\ \	]-misalign[\ \	]*) ;;
          *) CFLAGS="$CFLAGS -misalign" ;;
        esac
      ;;
    pgcc)
# The Portland Group C compiler.
# The Portland Group C compiler.
# Note: Should consider use of -tp flags to specify processor type.
# Note: Should consider use of -tp flags to specify processor type.
# I should also consider investigating the pgcc profiling options.
# I should also consider investigating the pgcc profiling options.
 Lines 9040-9046    Link Here 
    fi
    fi
    ;;
    ;;
esac
  esac
  fi
#
#
# Check type sizes.
# Check type sizes.
 Lines 11842-11891    Link Here 
#
#
echo "$as_me:$LINENO: checking whether to apply processor specific optimisations" >&5
echo "$as_me:$LINENO: checking whether to apply processor specific optimisations" >&5
echo $ECHO_N "checking whether to apply processor specific optimisations... $ECHO_C" >&6
echo $ECHO_N "checking whether to apply processor specific optimisations... $ECHO_C" >&6
case "$target" in
if test "x$enable_ccoptim" = "xyes"; then
  i586-*-*)
  case "$target" in
    echo "$as_me:$LINENO: result: yes - i586" >&5
    i586-*-*)
      echo "$as_me:$LINENO: result: yes - i586" >&5
echo "${ECHO_T}yes - i586" >&6
echo "${ECHO_T}yes - i586" >&6
    case "$CC" in
      case "$CC" in
      icc)
        icc)
        case " $CFLAGS " in
          case " $CFLAGS " in
          *\ \	-tpp1-9\ \	*) ;;
            *\ \	-tpp1-9\ \	*) ;;
	  # -axK
	    # -axK
          *) CFLAGS="$CFLAGS -tpp6" ;;
            *) CFLAGS="$CFLAGS -tpp6" ;;
        esac
          esac
        ;;
          ;;
      gcc)
        gcc)
        case " $CFLAGS " in
          case " $CFLAGS " in
          *\ \	-mcpu=*) ;;
            *\ \	-mcpu=*) ;;
          *) CFLAGS="$CFLAGS -mcpu=pentium" ;;
            *) CFLAGS="$CFLAGS -mcpu=pentium" ;;
        esac
          esac
        ;;
          ;;
    esac
      esac
    ;;
      ;;
  i686-*-*)
    i686-*-*)
    echo "$as_me:$LINENO: result: yes - i686" >&5
      echo "$as_me:$LINENO: result: yes - i686" >&5
echo "${ECHO_T}yes - i686" >&6
echo "${ECHO_T}yes - i686" >&6
    case "$CC" in
      case "$CC" in
      icc)
        icc)
        case " $CFLAGS " in
          case " $CFLAGS " in
          *\ \	-tpp1-9\ \	*) ;;
            *\ \	-tpp1-9\ \	*) ;;
	  # -axW
	    # -axW
          *) CFLAGS="$CFLAGS -tpp7" ;;
            *) CFLAGS="$CFLAGS -tpp7" ;;
        esac
          esac
        ;;
          ;;
      gcc)
        gcc)
        case " $CFLAGS " in
          case " $CFLAGS " in
          *\ \	-mcpu=*) ;;
            *\ \	-mcpu=*) ;;
          *) CFLAGS="$CFLAGS -mcpu=pentiumpro" ;;
            *) CFLAGS="$CFLAGS -mcpu=pentiumpro" ;;
        esac
          esac
        ;;
          ;;
    esac
      esac
    ;;
      ;;
  *)
    *)
    echo "$as_me:$LINENO: result: no - none defined for ${target}" >&5
      echo "$as_me:$LINENO: result: no - none defined for ${target}" >&5
echo "${ECHO_T}no - none defined for ${target}" >&6
echo "${ECHO_T}no - none defined for ${target}" >&6
    ;;
      ;;
esac
  esac
else
  echo "$as_me:$LINENO: result: no disabled" >&5
echo "${ECHO_T}no disabled" >&6
fi
echo "$as_me:$LINENO: checking memory alignment" >&5
echo "$as_me:$LINENO: checking memory alignment" >&5
echo $ECHO_N "checking memory alignment... $ECHO_C" >&6
echo $ECHO_N "checking memory alignment... $ECHO_C" >&6