1999-03-13 02:35:04 +08:00
|
|
|
# -*- 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
|
|
|
|
|
1999-09-28 08:01:32 +08:00
|
|
|
# The default compiler is `sunpro cc'
|
1999-03-13 02:35:04 +08:00
|
|
|
if test "X-" = "X-$CC"; then
|
1999-09-28 08:01:32 +08:00
|
|
|
CC=cc
|
|
|
|
CC_BASENAME=cc
|
1999-03-13 02:35:04 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Try gcc compiler flags
|
1999-03-20 04:09:50 +08:00
|
|
|
. $srcdir/config/gnu-flags
|
1999-03-13 02:35:04 +08:00
|
|
|
|
|
|
|
# Try solaris native compiler flags
|
1999-03-16 00:23:25 +08:00
|
|
|
if test "X-" = "X-$cc_flags_set"; then
|
2000-10-29 03:07:32 +08:00
|
|
|
CFLAGS="-erroff=%none -DBSD_COMP"
|
2001-11-21 02:48:40 +08:00
|
|
|
DEBUG_CFLAGS="-g -xildoff"
|
1999-08-11 04:21:32 +08:00
|
|
|
DEBUG_CPPFLAGS=
|
1999-09-28 08:01:32 +08:00
|
|
|
PROD_CFLAGS="-O -s"
|
1999-03-13 02:35:04 +08:00
|
|
|
PROD_CPPFLAGS=
|
|
|
|
PROFILE_CFLAGS=-xpg
|
|
|
|
PROFILE_CPPFLAGS=
|
|
|
|
cc_flags_set=yes
|
1999-09-28 08:01:32 +08:00
|
|
|
# Turn off optimization flag for SUNpro compiler versions 4.x which
|
|
|
|
# have an optimization bug. Version 5.0 works.
|
|
|
|
($CC -V 2>&1) | grep -s 'cc: .* C 4\.' >/dev/null 2>&1 \
|
|
|
|
&& PROD_CFLAGS="`echo $PROD_CFLAGS | sed -e 's/-O//'`"
|
1999-03-13 02:35:04 +08:00
|
|
|
fi
|
2000-12-02 06:08:03 +08:00
|
|
|
|
|
|
|
# Add socket lib for the Stream Virtual File Driver
|
|
|
|
LIBS="$LIBS -lsocket"
|