Changeset 1450


Ignore:
Timestamp:
Nov 25, 2009 12:30:13 PM (11 years ago)
Author:
andreasw
Message:

added compilation of MA77 based on suggestions contributed by Jonathan Hogg

Location:
ThirdParty/HSL/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/HSL/trunk/Makefile.am

    r1411 r1450  
    1 # Copyright (C) 2003, 2008 International Business Machines and others
     1# Copyright (C) 2003, 2009 International Business Machines and others
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    3030endif
    3131
     32if COIN_HAS_MA77
     33  nodist_libcoinhsl_la_SOURCES += hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
     34endif
     35
    3236lib_LTLIBRARIES =
    3337if INSTALL_LOADABLE_LIBRARY
     
    4044
    4145libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
     46
     47# dependencies
     48hsl_ma77d.lo: hsl_ma77d.deps90.lo
    4249
    4350#############################################################################
     
    8188endif
    8289
     90# Need to overwrite automake definition since otherwise libtool does not
     91# understand the fortran file (need to add --tag=F77)
     92LTFCCOMPILE = $(LIBTOOL) --tag=F77 --mode=compile $(FC) $(AM_FCFLAGS) $(FCFLAGS)
     93
     94
    8395########################################################################
    8496#                         Maintainer Stuff                             #
  • ThirdParty/HSL/trunk/Makefile.in

    r1411 r1450  
    1515@SET_MAKE@
    1616
    17 # Copyright (C) 2003, 2008 International Business Machines and others
     17# Copyright (C) 2003, 2009 International Business Machines and others
    1818# All Rights Reserved.
    1919# This file is distributed under the Common Public License.
     
    5757@COIN_HAS_MA28_TRUE@    mc21ad.f mc22ad.f mc23ad.f mc24ad.f
    5858
    59 @EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@am__append_5 = libhsl.la
     59@COIN_HAS_MA77_TRUE@am__append_5 = hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
     60@EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@am__append_6 = libhsl.la
    6061DIST_COMMON = $(am__configure_deps) \
    6162        $(srcdir)/../../BuildTools/Makemain.inc $(srcdir)/Makefile.am \
    6263        $(srcdir)/Makefile.in $(top_srcdir)/configure config.guess \
    6364        config.sub depcomp install-sh ltmain.sh missing
    64 @HAVE_EXTERNALS_TRUE@am__append_6 = Externals
    65 @HAVE_EXTERNALS_TRUE@am__append_7 = .Externals-stamp
     65@HAVE_EXTERNALS_TRUE@am__append_7 = Externals
     66@HAVE_EXTERNALS_TRUE@am__append_8 = .Externals-stamp
    6667subdir = .
    6768ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    9091@COIN_HAS_MA28_TRUE@    mc20ad.lo mc21ad.lo mc22ad.lo mc23ad.lo \
    9192@COIN_HAS_MA28_TRUE@    mc24ad.lo
     93@COIN_HAS_MA77_TRUE@am__objects_5 = hsl_ma77d.lo hsl_ma77d.deps90.lo \
     94@COIN_HAS_MA77_TRUE@    hsl_ma77d.deps77.lo
    9295nodist_libcoinhsl_la_OBJECTS = dummy.lo $(am__objects_1) \
    93         $(am__objects_2) $(am__objects_3) $(am__objects_4)
     96        $(am__objects_2) $(am__objects_3) $(am__objects_4) \
     97        $(am__objects_5)
    9498libcoinhsl_la_OBJECTS = $(nodist_libcoinhsl_la_OBJECTS)
    9599libhsl_la_LIBADD =
    96100am__libhsl_la_SOURCES_DIST = dummy.c ma27ad.f ma57ad.f mc19ad.f \
    97101        ma28ad.f ma30ad.f mc13dd.f mc20ad.f mc21ad.f mc22ad.f mc23ad.f \
    98         mc24ad.f
    99 am__objects_5 = dummy.lo $(am__objects_1) $(am__objects_2) \
    100         $(am__objects_3) $(am__objects_4)
    101 @EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@am_libhsl_la_OBJECTS = $(am__objects_5)
     102        mc24ad.f hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
     103am__objects_6 = dummy.lo $(am__objects_1) $(am__objects_2) \
     104        $(am__objects_3) $(am__objects_4) $(am__objects_5)
     105@EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@am_libhsl_la_OBJECTS = $(am__objects_6)
    102106libhsl_la_OBJECTS = $(am_libhsl_la_OBJECTS)
    103107@EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@am_libhsl_la_rpath = -rpath \
     
    120124F77LINK = $(LIBTOOL) --tag=F77 --mode=link $(F77LD) $(AM_FFLAGS) \
    121125        $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
     126FCCOMPILE = $(FC) $(AM_FCFLAGS) $(FCFLAGS)
     127FCLD = $(FC)
     128FCLINK = $(LIBTOOL) --mode=link $(FCLD) $(AM_FCFLAGS) $(FCFLAGS) \
     129        $(AM_LDFLAGS) $(LDFLAGS) -o $@
    122130SOURCES = $(nodist_libcoinhsl_la_SOURCES) $(libhsl_la_SOURCES)
    123131DIST_SOURCES = $(am__libhsl_la_SOURCES_DIST)
     
    161169COIN_HAS_MA57_FALSE = @COIN_HAS_MA57_FALSE@
    162170COIN_HAS_MA57_TRUE = @COIN_HAS_MA57_TRUE@
     171COIN_HAS_MA77_FALSE = @COIN_HAS_MA77_FALSE@
     172COIN_HAS_MA77_TRUE = @COIN_HAS_MA77_TRUE@
    163173COIN_HAS_MC19_FALSE = @COIN_HAS_MC19_FALSE@
    164174COIN_HAS_MC19_TRUE = @COIN_HAS_MC19_TRUE@
     
    188198F77_SHARED_CMD = @F77_SHARED_CMD@
    189199FADDLIBS = @FADDLIBS@
     200FC = @FC@
     201FCFLAGS = @FCFLAGS@
    190202FFLAGS = @FFLAGS@
    191203HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
     
    241253ac_ct_CXX = @ac_ct_CXX@
    242254ac_ct_F77 = @ac_ct_F77@
     255ac_ct_FC = @ac_ct_FC@
    243256ac_ct_RANLIB = @ac_ct_RANLIB@
    244257ac_ct_STRIP = @ac_ct_STRIP@
     
    286299target_alias = @target_alias@
    287300AUTOMAKE_OPTIONS = foreign
    288 EXTRA_DIST = INSTALL.HSL $(am__append_6)
     301EXTRA_DIST = INSTALL.HSL $(am__append_7)
    289302noinst_LTLIBRARIES = libcoinhsl.la
    290303nodist_libcoinhsl_la_SOURCES = dummy.c $(am__append_1) $(am__append_2) \
    291         $(am__append_3) $(am__append_4)
    292 lib_LTLIBRARIES = $(am__append_5)
     304        $(am__append_3) $(am__append_4) $(am__append_5)
     305lib_LTLIBRARIES = $(am__append_6)
    293306@EXTRA_SHARED_COMMAND_FALSE@@INSTALL_LOADABLE_LIBRARY_TRUE@libhsl_la_SOURCES = $(nodist_libcoinhsl_la_SOURCES)
    294307libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
    295308@EXTRA_SHARED_COMMAND_TRUE@CLEANFILES = $(HSL_SHARED_LIB) $(DEFFILE)
    296309
     310# Need to overwrite automake definition since otherwise libtool does not
     311# understand the fortran file (need to add --tag=F77)
     312LTFCCOMPILE = $(LIBTOOL) --tag=F77 --mode=compile $(FC) $(AM_FCFLAGS) $(FCFLAGS)
     313
    297314########################################################################
    298315#                         Maintainer Stuff                             #
     
    300317
    301318# Files that are generated and should be cleaned with make distclean
    302 DISTCLEANFILES = $(am__append_7) $(VPATH_DISTCLEANFILES)
     319DISTCLEANFILES = $(am__append_8) $(VPATH_DISTCLEANFILES)
    303320DocFiles = README AUTHORS LICENSE
    304321DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     
    306323
    307324.SUFFIXES:
    308 .SUFFIXES: .c .f .lo .o .obj
     325.SUFFIXES: .c .f .f90 .lo .o .obj
    309326am--refresh:
    310327        @:
     
    418435.f.lo:
    419436        $(LTF77COMPILE) -c -o $@ $<
     437
     438.f90.o:
     439        $(FCCOMPILE) -c -o $@ $<
     440
     441.f90.obj:
     442        $(FCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
     443
     444.f90.lo:
     445        $(LTFCCOMPILE) -c -o $@ $<
    420446
    421447mostlyclean-libtool:
     
    711737
    712738
     739# dependencies
     740hsl_ma77d.lo: hsl_ma77d.deps90.lo
     741
    713742#############################################################################
    714743#  Generating a shared library for delay loading
  • ThirdParty/HSL/trunk/configure

    r1411 r1450  
    1010#
    1111#
    12 # Copyright 2006 International Business Machines and others.
     12# Copyright 2006, 2009 International Business Machines and others.
    1313# All Rights Reserved.
    1414# This file is part of the open source package Coin which is distributed
     
    473473#endif"
    474474
    475 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP FC FCFLAGS ac_ct_FC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_FALSE COIN_HAS_MA28_TRUE COIN_HAS_MA28_FALSE COIN_HAS_MA77_TRUE COIN_HAS_MA77_FALSE F77_SHARED_CMD F77_DLL_LINKFLAGS HSL_SHARED_LIB EXPORT_SYMBOLS DEFFILE INSTALL_LOADABLE_LIBRARY_TRUE INSTALL_LOADABLE_LIBRARY_FALSE NEED_DEFFILE_TRUE NEED_DEFFILE_FALSE EXTRA_SHARED_COMMAND_TRUE EXTRA_SHARED_COMMAND_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    974974ac_cv_env_MPIF77_set=${MPIF77+set}
    975975ac_cv_env_MPIF77_value=$MPIF77
     976ac_env_FC_set=${FC+set}
     977ac_env_FC_value=$FC
     978ac_cv_env_FC_set=${FC+set}
     979ac_cv_env_FC_value=$FC
     980ac_env_FCFLAGS_set=${FCFLAGS+set}
     981ac_env_FCFLAGS_value=$FCFLAGS
     982ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
     983ac_cv_env_FCFLAGS_value=$FCFLAGS
    976984ac_env_CPP_set=${CPP+set}
    977985ac_env_CPP_value=$CPP
     
    11221130  FFLAGS      Fortran 77 compiler flags
    11231131  MPIF77      Fortran MPI Compiler
     1132  FC          Fortran compiler command
     1133  FCFLAGS     Fortran compiler flags
    11241134  CPP         C preprocessor
    11251135  CXX         C++ compiler command
     
    12341244
    12351245
    1236 Copyright 2006 International Business Machines and others.
     1246Copyright 2006, 2009 International Business Machines and others.
    12371247All Rights Reserved.
    12381248This file is part of the open source package Coin which is distributed
     
    33043314
    33053315# Provide some information about the compiler.
    3306 echo "$as_me:3306:" \
     3316echo "$as_me:3316:" \
    33073317     "checking for Fortran 77 compiler version" >&5
    33083318ac_compiler=`set X $ac_compile; echo $2`
     
    38373847
    38383848
     3849# Also set up the FC compiler variable, required to compile .f90
     3850# files.  We use the same compile and flags as F77 and FFLAGS, unless
     3851# the user has set FC and FCFLAGS explicitly.
     3852if test "$FC" = ""; then
     3853  FC="$F77"
     3854fi
     3855if test "$FCFLAGS" = ""; then
     3856  FCFLAGS="$FFLAGS"
     3857fi
     3858ac_ext=${FC_SRCEXT-f}
     3859ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
     3860ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
     3861ac_compiler_gnu=$ac_cv_fc_compiler_gnu
     3862if test -n "$ac_tool_prefix"; then
     3863  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
     3864  do
     3865    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3866set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3867echo "$as_me:$LINENO: checking for $ac_word" >&5
     3868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3869if test "${ac_cv_prog_FC+set}" = set; then
     3870  echo $ECHO_N "(cached) $ECHO_C" >&6
     3871else
     3872  if test -n "$FC"; then
     3873  ac_cv_prog_FC="$FC" # Let the user override the test.
     3874else
     3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3876for as_dir in $PATH
     3877do
     3878  IFS=$as_save_IFS
     3879  test -z "$as_dir" && as_dir=.
     3880  for ac_exec_ext in '' $ac_executable_extensions; do
     3881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3882    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
     3883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3884    break 2
     3885  fi
     3886done
     3887done
     3888
     3889fi
     3890fi
     3891FC=$ac_cv_prog_FC
     3892if test -n "$FC"; then
     3893  echo "$as_me:$LINENO: result: $FC" >&5
     3894echo "${ECHO_T}$FC" >&6
     3895else
     3896  echo "$as_me:$LINENO: result: no" >&5
     3897echo "${ECHO_T}no" >&6
     3898fi
     3899
     3900    test -n "$FC" && break
     3901  done
     3902fi
     3903if test -z "$FC"; then
     3904  ac_ct_FC=$FC
     3905  for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77
     3906do
     3907  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3908set dummy $ac_prog; ac_word=$2
     3909echo "$as_me:$LINENO: checking for $ac_word" >&5
     3910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3911if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
     3912  echo $ECHO_N "(cached) $ECHO_C" >&6
     3913else
     3914  if test -n "$ac_ct_FC"; then
     3915  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
     3916else
     3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3918for as_dir in $PATH
     3919do
     3920  IFS=$as_save_IFS
     3921  test -z "$as_dir" && as_dir=.
     3922  for ac_exec_ext in '' $ac_executable_extensions; do
     3923  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3924    ac_cv_prog_ac_ct_FC="$ac_prog"
     3925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3926    break 2
     3927  fi
     3928done
     3929done
     3930
     3931fi
     3932fi
     3933ac_ct_FC=$ac_cv_prog_ac_ct_FC
     3934if test -n "$ac_ct_FC"; then
     3935  echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
     3936echo "${ECHO_T}$ac_ct_FC" >&6
     3937else
     3938  echo "$as_me:$LINENO: result: no" >&5
     3939echo "${ECHO_T}no" >&6
     3940fi
     3941
     3942  test -n "$ac_ct_FC" && break
     3943done
     3944
     3945  FC=$ac_ct_FC
     3946fi
     3947
     3948
     3949# Provide some information about the compiler.
     3950echo "$as_me:3950:" \
     3951     "checking for Fortran compiler version" >&5
     3952ac_compiler=`set X $ac_compile; echo $2`
     3953{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3954  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3955  ac_status=$?
     3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3957  (exit $ac_status); }
     3958{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3959  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3960  ac_status=$?
     3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3962  (exit $ac_status); }
     3963{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3964  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3965  ac_status=$?
     3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3967  (exit $ac_status); }
     3968rm -f a.out
     3969
     3970# If we don't use `.F' as extension, the preprocessor is not run on the
     3971# input file.  (Note that this only needs to work for GNU compilers.)
     3972ac_save_ext=$ac_ext
     3973ac_ext=F
     3974echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
     3975echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
     3976if test "${ac_cv_fc_compiler_gnu+set}" = set; then
     3977  echo $ECHO_N "(cached) $ECHO_C" >&6
     3978else
     3979  cat >conftest.$ac_ext <<_ACEOF
     3980      program main
     3981#ifndef __GNUC__
     3982       choke me
     3983#endif
     3984
     3985      end
     3986_ACEOF
     3987rm -f conftest.$ac_objext
     3988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3989  (eval $ac_compile) 2>conftest.er1
     3990  ac_status=$?
     3991  grep -v '^ *+' conftest.er1 >conftest.err
     3992  rm -f conftest.er1
     3993  cat conftest.err >&5
     3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3995  (exit $ac_status); } &&
     3996         { ac_try='test -z "$ac_fc_werror_flag"
     3997                         || test ! -s conftest.err'
     3998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3999  (eval $ac_try) 2>&5
     4000  ac_status=$?
     4001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4002  (exit $ac_status); }; } &&
     4003         { ac_try='test -s conftest.$ac_objext'
     4004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4005  (eval $ac_try) 2>&5
     4006  ac_status=$?
     4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4008  (exit $ac_status); }; }; then
     4009  ac_compiler_gnu=yes
     4010else
     4011  echo "$as_me: failed program was:" >&5
     4012sed 's/^/| /' conftest.$ac_ext >&5
     4013
     4014ac_compiler_gnu=no
     4015fi
     4016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4017ac_cv_fc_compiler_gnu=$ac_compiler_gnu
     4018
     4019fi
     4020echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
     4021echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
     4022ac_ext=$ac_save_ext
     4023ac_test_FFLAGS=${FCFLAGS+set}
     4024ac_save_FFLAGS=$FCFLAGS
     4025FCFLAGS=
     4026echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
     4027echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
     4028if test "${ac_cv_prog_fc_g+set}" = set; then
     4029  echo $ECHO_N "(cached) $ECHO_C" >&6
     4030else
     4031  FCFLAGS=-g
     4032cat >conftest.$ac_ext <<_ACEOF
     4033      program main
     4034
     4035      end
     4036_ACEOF
     4037rm -f conftest.$ac_objext
     4038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4039  (eval $ac_compile) 2>conftest.er1
     4040  ac_status=$?
     4041  grep -v '^ *+' conftest.er1 >conftest.err
     4042  rm -f conftest.er1
     4043  cat conftest.err >&5
     4044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4045  (exit $ac_status); } &&
     4046         { ac_try='test -z "$ac_fc_werror_flag"
     4047                         || test ! -s conftest.err'
     4048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4049  (eval $ac_try) 2>&5
     4050  ac_status=$?
     4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4052  (exit $ac_status); }; } &&
     4053         { ac_try='test -s conftest.$ac_objext'
     4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4055  (eval $ac_try) 2>&5
     4056  ac_status=$?
     4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4058  (exit $ac_status); }; }; then
     4059  ac_cv_prog_fc_g=yes
     4060else
     4061  echo "$as_me: failed program was:" >&5
     4062sed 's/^/| /' conftest.$ac_ext >&5
     4063
     4064ac_cv_prog_fc_g=no
     4065fi
     4066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4067
     4068fi
     4069echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
     4070echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
     4071if test "$ac_test_FFLAGS" = set; then
     4072  FCFLAGS=$ac_save_FFLAGS
     4073elif test $ac_cv_prog_fc_g = yes; then
     4074  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
     4075    FCFLAGS="-g -O2"
     4076  else
     4077    FCFLAGS="-g"
     4078  fi
     4079else
     4080  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
     4081    FCFLAGS="-O2"
     4082  else
     4083    FCFLAGS=
     4084  fi
     4085fi
     4086
     4087ac_ext=c
     4088ac_cpp='$CPP $CPPFLAGS'
     4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4092
     4093
    38394094# Initialize autotools
    38404095
     
    54595714*-*-irix6*)
    54605715  # Find out which ABI we are using.
    5461   echo '#line 5461 "configure"' > conftest.$ac_ext
     5716  echo '#line 5716 "configure"' > conftest.$ac_ext
    54625717  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    54635718  (eval $ac_compile) 2>&5
     
    78888143   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78898144   -e 's:$: $lt_compiler_flag:'`
    7890    (eval echo "\"\$as_me:7890: $lt_compile\"" >&5)
     8145   (eval echo "\"\$as_me:8145: $lt_compile\"" >&5)
    78918146   (eval "$lt_compile" 2>conftest.err)
    78928147   ac_status=$?
    78938148   cat conftest.err >&5
    7894    echo "$as_me:7894: \$? = $ac_status" >&5
     8149   echo "$as_me:8149: \$? = $ac_status" >&5
    78958150   if (exit $ac_status) && test -s "$ac_outfile"; then
    78968151     # The compiler can only warn and ignore the option if not recognized
     
    81568411   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    81578412   -e 's:$: $lt_compiler_flag:'`
    8158    (eval echo "\"\$as_me:8158: $lt_compile\"" >&5)
     8413   (eval echo "\"\$as_me:8413: $lt_compile\"" >&5)
    81598414   (eval "$lt_compile" 2>conftest.err)
    81608415   ac_status=$?
    81618416   cat conftest.err >&5
    8162    echo "$as_me:8162: \$? = $ac_status" >&5
     8417   echo "$as_me:8417: \$? = $ac_status" >&5
    81638418   if (exit $ac_status) && test -s "$ac_outfile"; then
    81648419     # The compiler can only warn and ignore the option if not recognized
     
    82608515   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    82618516   -e 's:$: $lt_compiler_flag:'`
    8262    (eval echo "\"\$as_me:8262: $lt_compile\"" >&5)
     8517   (eval echo "\"\$as_me:8517: $lt_compile\"" >&5)
    82638518   (eval "$lt_compile" 2>out/conftest.err)
    82648519   ac_status=$?
    82658520   cat out/conftest.err >&5
    8266    echo "$as_me:8266: \$? = $ac_status" >&5
     8521   echo "$as_me:8521: \$? = $ac_status" >&5
    82678522   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    82688523   then
     
    1060510860  lt_status=$lt_dlunknown
    1060610861  cat > conftest.$ac_ext <<EOF
    10607 #line 10607 "configure"
     10862#line 10862 "configure"
    1060810863#include "confdefs.h"
    1060910864
     
    1070510960  lt_status=$lt_dlunknown
    1070610961  cat > conftest.$ac_ext <<EOF
    10707 #line 10707 "configure"
     10962#line 10962 "configure"
    1070810963#include "confdefs.h"
    1070910964
     
    1304913304   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1305013305   -e 's:$: $lt_compiler_flag:'`
    13051    (eval echo "\"\$as_me:13051: $lt_compile\"" >&5)
     13306   (eval echo "\"\$as_me:13306: $lt_compile\"" >&5)
    1305213307   (eval "$lt_compile" 2>conftest.err)
    1305313308   ac_status=$?
    1305413309   cat conftest.err >&5
    13055    echo "$as_me:13055: \$? = $ac_status" >&5
     13310   echo "$as_me:13310: \$? = $ac_status" >&5
    1305613311   if (exit $ac_status) && test -s "$ac_outfile"; then
    1305713312     # The compiler can only warn and ignore the option if not recognized
     
    1315313408   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1315413409   -e 's:$: $lt_compiler_flag:'`
    13155    (eval echo "\"\$as_me:13155: $lt_compile\"" >&5)
     13410   (eval echo "\"\$as_me:13410: $lt_compile\"" >&5)
    1315613411   (eval "$lt_compile" 2>out/conftest.err)
    1315713412   ac_status=$?
    1315813413   cat out/conftest.err >&5
    13159    echo "$as_me:13159: \$? = $ac_status" >&5
     13414   echo "$as_me:13414: \$? = $ac_status" >&5
    1316013415   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1316113416   then
     
    1472314978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1472414979   -e 's:$: $lt_compiler_flag:'`
    14725    (eval echo "\"\$as_me:14725: $lt_compile\"" >&5)
     14980   (eval echo "\"\$as_me:14980: $lt_compile\"" >&5)
    1472614981   (eval "$lt_compile" 2>conftest.err)
    1472714982   ac_status=$?
    1472814983   cat conftest.err >&5
    14729    echo "$as_me:14729: \$? = $ac_status" >&5
     14984   echo "$as_me:14984: \$? = $ac_status" >&5
    1473014985   if (exit $ac_status) && test -s "$ac_outfile"; then
    1473114986     # The compiler can only warn and ignore the option if not recognized
     
    1482715082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1482815083   -e 's:$: $lt_compiler_flag:'`
    14829    (eval echo "\"\$as_me:14829: $lt_compile\"" >&5)
     15084   (eval echo "\"\$as_me:15084: $lt_compile\"" >&5)
    1483015085   (eval "$lt_compile" 2>out/conftest.err)
    1483115086   ac_status=$?
    1483215087   cat out/conftest.err >&5
    14833    echo "$as_me:14833: \$? = $ac_status" >&5
     15088   echo "$as_me:15088: \$? = $ac_status" >&5
    1483415089   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1483515090   then
     
    1703417289   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1703517290   -e 's:$: $lt_compiler_flag:'`
    17036    (eval echo "\"\$as_me:17036: $lt_compile\"" >&5)
     17291   (eval echo "\"\$as_me:17291: $lt_compile\"" >&5)
    1703717292   (eval "$lt_compile" 2>conftest.err)
    1703817293   ac_status=$?
    1703917294   cat conftest.err >&5
    17040    echo "$as_me:17040: \$? = $ac_status" >&5
     17295   echo "$as_me:17295: \$? = $ac_status" >&5
    1704117296   if (exit $ac_status) && test -s "$ac_outfile"; then
    1704217297     # The compiler can only warn and ignore the option if not recognized
     
    1730217557   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1730317558   -e 's:$: $lt_compiler_flag:'`
    17304    (eval echo "\"\$as_me:17304: $lt_compile\"" >&5)
     17559   (eval echo "\"\$as_me:17559: $lt_compile\"" >&5)
    1730517560   (eval "$lt_compile" 2>conftest.err)
    1730617561   ac_status=$?
    1730717562   cat conftest.err >&5
    17308    echo "$as_me:17308: \$? = $ac_status" >&5
     17563   echo "$as_me:17563: \$? = $ac_status" >&5
    1730917564   if (exit $ac_status) && test -s "$ac_outfile"; then
    1731017565     # The compiler can only warn and ignore the option if not recognized
     
    1740617661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1740717662   -e 's:$: $lt_compiler_flag:'`
    17408    (eval echo "\"\$as_me:17408: $lt_compile\"" >&5)
     17663   (eval echo "\"\$as_me:17663: $lt_compile\"" >&5)
    1740917664   (eval "$lt_compile" 2>out/conftest.err)
    1741017665   ac_status=$?
    1741117666   cat out/conftest.err >&5
    17412    echo "$as_me:17412: \$? = $ac_status" >&5
     17667   echo "$as_me:17667: \$? = $ac_status" >&5
    1741317668   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1741417669   then
     
    2031220567#############################################################################
    2031320568
     20569echo "$as_me:$LINENO: checking whether we can compile Fortran 90 code" >&5
     20570echo $ECHO_N "checking whether we can compile Fortran 90 code... $ECHO_C" >&6
     20571ac_ext=f
     20572ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     20573ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20574ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     20575
     20576cat >conftest.$ac_ext <<_ACEOF
     20577        MODULE BLA
     20578      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     20579      END MODULE BLA
     20580_ACEOF
     20581rm -f conftest.$ac_objext
     20582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     20583  (eval $ac_compile) 2>conftest.er1
     20584  ac_status=$?
     20585  grep -v '^ *+' conftest.er1 >conftest.err
     20586  rm -f conftest.er1
     20587  cat conftest.err >&5
     20588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20589  (exit $ac_status); } &&
     20590         { ac_try='test -z "$ac_f77_werror_flag"
     20591                         || test ! -s conftest.err'
     20592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20593  (eval $ac_try) 2>&5
     20594  ac_status=$?
     20595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20596  (exit $ac_status); }; } &&
     20597         { ac_try='test -s conftest.$ac_objext'
     20598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     20599  (eval $ac_try) 2>&5
     20600  ac_status=$?
     20601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     20602  (exit $ac_status); }; }; then
     20603  have_f90=yes
     20604else
     20605  echo "$as_me: failed program was:" >&5
     20606sed 's/^/| /' conftest.$ac_ext >&5
     20607
     20608have_f90=no
     20609fi
     20610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     20611echo "$as_me:$LINENO: result: $have_f90" >&5
     20612echo "${ECHO_T}$have_f90" >&6
     20613ac_ext=c
     20614ac_cpp='$CPP $CPPFLAGS'
     20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     20617ac_compiler_gnu=$ac_cv_c_compiler_gnu
     20618
     20619
     20620
     20621
    2031420622
    2031520623
     
    2040220710  COIN_HAS_MA28_TRUE='#'
    2040320711  COIN_HAS_MA28_FALSE=
     20712fi
     20713
     20714if test $have_f90 = yes; then
     20715   if test -r $srcdir/hsl_ma77d.f90; then
     20716  hsl_files="$hsl_files hsl_ma77d.f"
     20717                       coin_has_hsl_ma77d=yes
     20718  :
     20719else
     20720  coin_has_hsl_ma77d=no
     20721  :
     20722fi
     20723
     20724else
     20725  coin_has_hsl_ma77d=no
     20726fi
     20727
     20728
     20729if test $coin_has_hsl_ma77d = yes; then
     20730  COIN_HAS_MA77_TRUE=
     20731  COIN_HAS_MA77_FALSE='#'
     20732else
     20733  COIN_HAS_MA77_TRUE='#'
     20734  COIN_HAS_MA77_FALSE=
    2040420735fi
    2040520736
     
    2074421075Usually this means the macro was only invoked conditionally." >&5
    2074521076echo "$as_me: error: conditional \"COIN_HAS_MA28\" was never defined.
     21077Usually this means the macro was only invoked conditionally." >&2;}
     21078   { (exit 1); exit 1; }; }
     21079fi
     21080if test -z "${COIN_HAS_MA77_TRUE}" && test -z "${COIN_HAS_MA77_FALSE}"; then
     21081  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MA77\" was never defined.
     21082Usually this means the macro was only invoked conditionally." >&5
     21083echo "$as_me: error: conditional \"COIN_HAS_MA77\" was never defined.
    2074621084Usually this means the macro was only invoked conditionally." >&2;}
    2074721085   { (exit 1); exit 1; }; }
     
    2132221660s,@MPIF77@,$MPIF77,;t t
    2132321661s,@EGREP@,$EGREP,;t t
     21662s,@FC@,$FC,;t t
     21663s,@FCFLAGS@,$FCFLAGS,;t t
     21664s,@ac_ct_FC@,$ac_ct_FC,;t t
    2132421665s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    2132521666s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    2139921740s,@COIN_HAS_MA28_TRUE@,$COIN_HAS_MA28_TRUE,;t t
    2140021741s,@COIN_HAS_MA28_FALSE@,$COIN_HAS_MA28_FALSE,;t t
     21742s,@COIN_HAS_MA77_TRUE@,$COIN_HAS_MA77_TRUE,;t t
     21743s,@COIN_HAS_MA77_FALSE@,$COIN_HAS_MA77_FALSE,;t t
    2140121744s,@F77_SHARED_CMD@,$F77_SHARED_CMD,;t t
    2140221745s,@F77_DLL_LINKFLAGS@,$F77_DLL_LINKFLAGS,;t t
  • ThirdParty/HSL/trunk/configure.ac

    r1411 r1450  
    1 # Copyright (C) 2006 International Business Machines.
     1# Copyright (C) 2006, 2009 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    1717
    1818AC_COPYRIGHT([
    19 Copyright 2006 International Business Machines and others.
     19Copyright 2006, 2009 International Business Machines and others.
    2020All Rights Reserved.
    2121This file is part of the open source package Coin which is distributed
     
    6363AC_PROG_EGREP
    6464
     65# Also set up the FC compiler variable, required to compile .f90
     66# files.  We use the same compile and flags as F77 and FFLAGS, unless
     67# the user has set FC and FCFLAGS explicitly.
     68if test "$FC" = ""; then
     69  FC="$F77"
     70fi
     71if test "$FCFLAGS" = ""; then
     72  FCFLAGS="$FFLAGS"
     73fi
     74AC_PROG_FC
     75
    6576# Initialize autotools
    6677
     
    7485#############################################################################
    7586
     87AC_MSG_CHECKING([whether we can compile Fortran 90 code])
     88AC_LANG_PUSH(Fortran 77)
     89AC_COMPILE_IFELSE([        MODULE BLA
     90      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     91      END MODULE BLA],[have_f90=yes],[have_f90=no])
     92AC_MSG_RESULT([$have_f90])
     93AC_LANG_POP(Fortran 77)
     94
    7695AC_DEFUN([MY_CHECK_HSLFILE],
    7796[AC_COIN_CHECK_FILE([$srcdir/$1.f],
     
    7998                     coin_has_$1=yes],
    8099                    [coin_has_$1=no])
     100AM_CONDITIONAL([COIN_HAS_$2],[test $coin_has_$1 = yes])])
     101
     102AC_DEFUN([MY_CHECK_HSLFILE_F90],
     103[if test $have_f90 = yes; then
     104   AC_COIN_CHECK_FILE([$srcdir/$1.f90],
     105                      [hsl_files="$hsl_files $1.f"
     106                       coin_has_$1=yes],
     107                      [coin_has_$1=no])
     108else
     109  coin_has_$1=no
     110fi
    81111AM_CONDITIONAL([COIN_HAS_$2],[test $coin_has_$1 = yes])])
    82112
     
    94124MY_CHECK_HSLFILE(ma57ad,MA57)
    95125MY_CHECK_HSLFILE(ma28ad,MA28)
     126MY_CHECK_HSLFILE_F90(hsl_ma77d,MA77)
    96127
    97128if test x$enable_loadable_library = xyes; then
Note: See TracChangeset for help on using the changeset viewer.