2 changes

added libctf2c to the LCXX_END_LIBS variable when it is needed. f2c is more
  of a system level variable.
  Changed the default PIC setting to empty for cygwin environments.
This commit is contained in:
Harry Moffat 2007-12-28 02:19:33 +00:00
parent 23415dbe55
commit 23c3c7c63a
2 changed files with 4535 additions and 3841 deletions

8367
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -777,7 +777,7 @@ esac
#
# Create a variable build_f2c_lib that determines whether
# the f2c_lib will be built on a given platform
# our f2c_lib will be built on a given platform
#
build_f2c_lib=0
if test -n "$NEED_F2C" ; then
@ -1122,6 +1122,8 @@ if test -z "$PIC"; then
case $ac_sys_system in
SunOS* )
PIC=' ';;
CYGWIN* )
PIC=' ';;
* )
PIC='-fPIC';;
esac
@ -1254,14 +1256,15 @@ AC_SUBST(LCXX_FLAGS)
# dynamically loaded libraries
# (sunpro solaris needs a few for dynamic linking)
#
if test -n "$NEED_F2C" ; then
LCXX_END_LIBS="-lctf2c ""$LCXX_END_LIBS"
fi
case $ac_sys_system in
SunOS* )
case $CXX in
CC* )
LCXX_END_LIBS="$LCXX_END_LIBS"" -lCrun -lCstd -lfsu" ;;
esac ;;
Linux)
LCXX_END_LIBS=" -lctf2c ""$LCXX_END_LIBS" ;;
esac
AC_SUBST(LCXX_END_LIBS)