mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
0603e2db00
Update Description: Revamped the configuration system. The configurations for the Fortran and C++ libraries are no longer separate from the "main" configuration system. This involved removing the "configure*" and "aclocal.m4" files from the fortran/ and c++/ subdirectories. Also merging settings in the config/ subdirectories into the main config/ subdirectory. Fortran header files had to be modified a little for Linux. It was checking if it was a Linux machine by some #defines, however with the -std=c99 switch, these defines weren't there. I added a check for some other ones which should be there whether the -std=c99 switch is used or not. Platforms tested: Verbena (Fortran & C++) Sol (Fortran & C++) Copper (Fortran & C++) Modi4 (Parallel, Fortran, & C++) Misc. update:
144 lines
5.5 KiB
Bash
144 lines
5.5 KiB
Bash
# -*- shell-script -*-
|
|
#
|
|
# This file is part of the HDF5 build script. It is processed shortly
|
|
# after configure starts and defines, among other things, flags for
|
|
# the various compile modes.
|
|
#
|
|
# See BlankForm in this directory for details.
|
|
|
|
# This is for the ASCI RED TFLOPS machine
|
|
|
|
# The default compiler is `cicc'
|
|
if test "X-" = "X-$CC"; then
|
|
CC=cicc
|
|
CC_BASENAME=cicc
|
|
fi
|
|
|
|
# The default archiver is `xar'
|
|
AR=${AR:-xar}
|
|
|
|
# There is no ranlib
|
|
RANLIB=:
|
|
|
|
# Additional libraries
|
|
LIBS="$LIBS -lnoop_stubs"
|
|
|
|
# How to run serial and parallel test programs
|
|
RUNSERIAL="yod -sz 1"
|
|
RUNPARALLEL="yod -sz 8"
|
|
|
|
# CFLAGS must be set else configure set it to -g
|
|
CFLAGS="$CFLAGS"
|
|
|
|
# What must *always* be present for things to compile correctly?
|
|
#CPPFLAGS="$CPPFLAGS -I."
|
|
|
|
# What compiler flags should be used for code development?
|
|
DEBUG_CFLAGS=-g
|
|
DEBUG_CPPFLAGS=
|
|
|
|
# What compiler flags should be used for building a production
|
|
# library?
|
|
PROD_CFLAGS=-O
|
|
PROD_CPPFLAGS=
|
|
|
|
# What compiler flags enable code profiling?
|
|
PROFILE_CFLAGS=-pg
|
|
PROFILE_CPPFLAGS=
|
|
|
|
# Turn off shared lib option. It does not work for TFLOPS yet.
|
|
enable_shared="${enable_shared:-no}"
|
|
|
|
# Set this to the width required by printf() to print type `long
|
|
# long'. For instance, if the format would be `%lld' then set it to
|
|
# `ll' or if the format would be `%qd' set it to `q'.
|
|
hdf5_cv_printf_ll=${hdf5_cv_printf_ll='ll'}
|
|
|
|
# Cache the sizeof of the following types to save configure time.
|
|
# These are verified in test/tconfig in case they change.
|
|
ac_cv_type_char=${ac_cv_type_char=yes}
|
|
ac_cv_sizeof_char=${ac_cv_sizeof_char='1'}
|
|
ac_cv_type_short=${ac_cv_type_short=yes}
|
|
ac_cv_sizeof_short=${ac_cv_sizeof_short='2'}
|
|
ac_cv_type_int=${ac_cv_type_int=yes}
|
|
ac_cv_sizeof_int=${ac_cv_sizeof_int='4'}
|
|
ac_cv_type_long=${ac_cv_type_long=yes}
|
|
ac_cv_sizeof_long=${ac_cv_sizeof_long='4'}
|
|
ac_cv_type_float=${ac_cv_type_float=yes}
|
|
ac_cv_sizeof_float=${ac_cv_sizeof_float='4'}
|
|
ac_cv_type_double=${ac_cv_type_double=yes}
|
|
ac_cv_sizeof_double=${ac_cv_sizeof_double='8'}
|
|
ac_cv_type_long_double=${ac_cv_type_long_double=yes}
|
|
ac_cv_sizeof_long_double=${ac_cv_sizeof_long_double='8'}
|
|
ac_cv_type_long_long=${ac_cv_type_long_long=yes}
|
|
ac_cv_sizeof_long_long=${ac_cv_sizeof_long_long='8'}
|
|
ac_cv_type_size_t=${ac_cv_type_size_t=yes}
|
|
ac_cv_sizeof_size_t=${ac_cv_sizeof_size_t='4'}
|
|
ac_cv_type_ssize_t=${ac_cv_type_ssize_t=yes}
|
|
ac_cv_sizeof_ssize_t=${ac_cv_sizeof_ssize_t='4'}
|
|
ac_cv_type_off_t=${ac_cv_type_off_t=yes}
|
|
ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t='4'}
|
|
|
|
# Hard set sizeof of the following types to 0 because they are not supported.
|
|
ac_cv_type___int64=${ac_cv_type___int64=no}
|
|
ac_cv_sizeof___int64=${ac_cv_sizeof___int64='0'}
|
|
|
|
# Hard set malloc of zero bytes to no because it does not work.
|
|
hdf5_cv_malloc_works=${hdf5_cv_malloc_works='no'}
|
|
|
|
# Hard set sizeof_intN_t to 0 because they are not supported.
|
|
ac_cv_type_int8_t=${ac_cv_type_int8_t=no}
|
|
ac_cv_type_int16_t=${ac_cv_type_int16_t=no}
|
|
ac_cv_type_int32_t=${ac_cv_type_int32_t=no}
|
|
ac_cv_type_int64_t=${ac_cv_type_int64_t=no}
|
|
ac_cv_type_uint8_t=${ac_cv_type_uint8_t=no}
|
|
ac_cv_type_uint16_t=${ac_cv_type_uint16_t=no}
|
|
ac_cv_type_uint32_t=${ac_cv_type_uint32_t=no}
|
|
ac_cv_type_uint64_t=${ac_cv_type_uint64_t=no}
|
|
ac_cv_sizeof_int8_t=${ac_cv_sizeof_int8_t='0'}
|
|
ac_cv_sizeof_int16_t=${ac_cv_sizeof_int16_t='0'}
|
|
ac_cv_sizeof_int32_t=${ac_cv_sizeof_int32_t='0'}
|
|
ac_cv_sizeof_int64_t=${ac_cv_sizeof_int64_t='0'}
|
|
ac_cv_sizeof_uint8_t=${ac_cv_sizeof_uint8_t='0'}
|
|
ac_cv_sizeof_uint16_t=${ac_cv_sizeof_uint16_t='0'}
|
|
ac_cv_sizeof_uint32_t=${ac_cv_sizeof_uint32_t='0'}
|
|
ac_cv_sizeof_uint64_t=${ac_cv_sizeof_uint64_t='0'}
|
|
|
|
# Hard set sizeof_int_leastN_t to 0 because they are not supported.
|
|
ac_cv_type_int_least8_t=${ac_cv_type_int_least8_t=no}
|
|
ac_cv_type_int_least16_t=${ac_cv_type_int_least16_t=no}
|
|
ac_cv_type_int_least32_t=${ac_cv_type_int_least32_t=no}
|
|
ac_cv_type_int_least64_t=${ac_cv_type_int_least64_t=no}
|
|
ac_cv_type_uint_least8_t=${ac_cv_type_uint_least8_t=no}
|
|
ac_cv_type_uint_least16_t=${ac_cv_type_uint_least16_t=no}
|
|
ac_cv_type_uint_least32_t=${ac_cv_type_uint_least32_t=no}
|
|
ac_cv_type_uint_least64_t=${ac_cv_type_uint_least64_t=no}
|
|
ac_cv_sizeof_int_least8_t=${ac_cv_sizeof_int_least8_t='0'}
|
|
ac_cv_sizeof_int_least16_t=${ac_cv_sizeof_int_least16_t='0'}
|
|
ac_cv_sizeof_int_least32_t=${ac_cv_sizeof_int_least32_t='0'}
|
|
ac_cv_sizeof_int_least64_t=${ac_cv_sizeof_int_least64_t='0'}
|
|
ac_cv_sizeof_uint_least8_t=${ac_cv_sizeof_uint_least8_t='0'}
|
|
ac_cv_sizeof_uint_least16_t=${ac_cv_sizeof_uint_least16_t='0'}
|
|
ac_cv_sizeof_uint_least32_t=${ac_cv_sizeof_uint_least32_t='0'}
|
|
ac_cv_sizeof_uint_least64_t=${ac_cv_sizeof_uint_least64_t='0'}
|
|
|
|
# Hard set sizeof_int_fastN_t to 0 because they are not supported.
|
|
ac_cv_type_int_fast8_t=${ac_cv_type_int_fast8_t=no}
|
|
ac_cv_type_int_fast16_t=${ac_cv_type_int_fast16_t=no}
|
|
ac_cv_type_int_fast32_t=${ac_cv_type_int_fast32_t=no}
|
|
ac_cv_type_int_fast64_t=${ac_cv_type_int_fast64_t=no}
|
|
ac_cv_type_uint_fast8_t=${ac_cv_type_uint_fast8_t=no}
|
|
ac_cv_type_uint_fast16_t=${ac_cv_type_uint_fast16_t=no}
|
|
ac_cv_type_uint_fast32_t=${ac_cv_type_uint_fast32_t=no}
|
|
ac_cv_type_uint_fast64_t=${ac_cv_type_uint_fast64_t=no}
|
|
ac_cv_sizeof_int_fast8_t=${ac_cv_sizeof_int_fast8_t='0'}
|
|
ac_cv_sizeof_int_fast16_t=${ac_cv_sizeof_int_fast16_t='0'}
|
|
ac_cv_sizeof_int_fast32_t=${ac_cv_sizeof_int_fast32_t='0'}
|
|
ac_cv_sizeof_int_fast64_t=${ac_cv_sizeof_int_fast64_t='0'}
|
|
ac_cv_sizeof_uint_fast8_t=${ac_cv_sizeof_uint_fast8_t='0'}
|
|
ac_cv_sizeof_uint_fast16_t=${ac_cv_sizeof_uint_fast16_t='0'}
|
|
ac_cv_sizeof_uint_fast32_t=${ac_cv_sizeof_uint_fast32_t='0'}
|
|
ac_cv_sizeof_uint_fast64_t=${ac_cv_sizeof_uint_fast64_t='0'}
|
|
|
|
hdf5_cv_system_scope_threads=${hdf5_cv_system_scope_threads="no"}
|