Changeset 2256


Ignore:
Timestamp:
Jun 11, 2011 12:21:17 PM (9 years ago)
Author:
stefan
Message:

add configuration header file instead of telling config via cflags do not build library if there is no source, remove dummy.c

Location:
ThirdParty/HSL/trunk
Files:
4 added
1 deleted
6 edited

Legend:

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

    r2082 r2256  
    99EXTRA_DIST = INSTALL.HSL
    1010
     11if BUILD_COINHSL
     12
    1113lib_LTLIBRARIES = libcoinhsl.la
    1214
    13 libcoinhsl_la_SOURCES = dummy.c
     15libcoinhsl_la_SOURCES =
    1416
    1517if COIN_HAS_MA27
     
    6971endif
    7072
     73endif  # EXTRA_SHARED_COMMAND
     74
     75includecoindir = $(includedir)/coin/ThirdParty
    7176install-exec-local: $(HSL_SHARED_LIB)
     77if EXTRA_SHARED_COMMAND
    7278        test -z "$(DESTDIR)$(libdir)/coin/ThirdParty" || $(mkdir_p) "$(DESTDIR)$(libdir)/coin/ThirdParty"
    7379        $(libLTLIBRARIES_INSTALL) $(HSL_SHARED_LIB) "$(DESTDIR)$(libdir)/coin/ThirdParty/$(HSL_SHARED_LIB)"
     80endif
     81        $(install_sh_DATA) config_coinhsl.h $(DESTDIR)$(includecoindir)/CoinHslConfig.h
    7482
    7583uninstall-local:
    7684        rm -f "$(DESTDIR)$(libdir)/coin/ThirdParty/$(HSL_SHARED_LIB)"
    77 endif
     85        rm -f $(DESTDIR)$(includecoindir)/CoinHslConfig.h
    7886
    7987pkgconfiglibdir = $(libdir)/pkgconfig
    8088pkgconfiglib_DATA = coinhsl.pc
     89
     90endif  # BUILD_COINHSL
    8191
    8292test:
  • ThirdParty/HSL/trunk/Makefile.in

    r2120 r2256  
    5252build_triplet = @build@
    5353host_triplet = @host@
    54 @COIN_HAS_MA27_TRUE@am__append_1 = ma27ad.f
    55 @COIN_HAS_MA57_TRUE@am__append_2 = ma57ad.f
    56 @COIN_HAS_MC19_TRUE@am__append_3 = mc19ad.f
    57 @COIN_HAS_MA28_TRUE@am__append_4 = ma28ad.f ma30ad.f mc13dd.f mc20ad.f \
    58 @COIN_HAS_MA28_TRUE@    mc21ad.f mc22ad.f mc23ad.f mc24ad.f
    59 
    60 @COIN_HAS_MA77_TRUE@am__append_5 = hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
     54@BUILD_COINHSL_TRUE@@COIN_HAS_MA27_TRUE@am__append_1 = ma27ad.f
     55@BUILD_COINHSL_TRUE@@COIN_HAS_MA57_TRUE@am__append_2 = ma57ad.f
     56@BUILD_COINHSL_TRUE@@COIN_HAS_MC19_TRUE@am__append_3 = mc19ad.f
     57@BUILD_COINHSL_TRUE@@COIN_HAS_MA28_TRUE@am__append_4 = ma28ad.f ma30ad.f mc13dd.f mc20ad.f \
     58@BUILD_COINHSL_TRUE@@COIN_HAS_MA28_TRUE@        mc21ad.f mc22ad.f mc23ad.f mc24ad.f
     59
     60@BUILD_COINHSL_TRUE@@COIN_HAS_MA77_TRUE@am__append_5 = hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
    6161DIST_COMMON = $(am__configure_deps) $(srcdir)/BuildTools/Makemain.inc \
    6262        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
    6363        $(srcdir)/coinhsl-uninstalled.pc.in $(srcdir)/coinhsl.pc.in \
     64        $(srcdir)/config.h.in $(srcdir)/config_coinhsl.h.in \
    6465        $(top_srcdir)/configure config.guess config.sub depcomp \
    6566        install-sh ltmain.sh missing
     
    7576 configure.lineno configure.status.lineno
    7677mkinstalldirs = $(install_sh) -d
     78CONFIG_HEADER = config.h config_coinhsl.h
    7779CONFIG_CLEAN_FILES = coinhsl.pc coinhsl-uninstalled.pc
    7880am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     
    8688LTLIBRARIES = $(lib_LTLIBRARIES)
    8789libcoinhsl_la_LIBADD =
    88 am__libcoinhsl_la_SOURCES_DIST = dummy.c ma27ad.f ma57ad.f mc19ad.f \
    89         ma28ad.f ma30ad.f mc13dd.f mc20ad.f mc21ad.f mc22ad.f mc23ad.f \
    90         mc24ad.f hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
    91 @COIN_HAS_MA27_TRUE@am__objects_1 = ma27ad.lo
    92 @COIN_HAS_MA57_TRUE@am__objects_2 = ma57ad.lo
    93 @COIN_HAS_MC19_TRUE@am__objects_3 = mc19ad.lo
    94 @COIN_HAS_MA28_TRUE@am__objects_4 = ma28ad.lo ma30ad.lo mc13dd.lo \
    95 @COIN_HAS_MA28_TRUE@    mc20ad.lo mc21ad.lo mc22ad.lo mc23ad.lo \
    96 @COIN_HAS_MA28_TRUE@    mc24ad.lo
    97 @COIN_HAS_MA77_TRUE@am__objects_5 = hsl_ma77d.lo hsl_ma77d.deps90.lo \
    98 @COIN_HAS_MA77_TRUE@    hsl_ma77d.deps77.lo
    99 am_libcoinhsl_la_OBJECTS = dummy.lo $(am__objects_1) $(am__objects_2) \
    100         $(am__objects_3) $(am__objects_4) $(am__objects_5)
     90am__libcoinhsl_la_SOURCES_DIST = ma27ad.f ma57ad.f mc19ad.f ma28ad.f \
     91        ma30ad.f mc13dd.f mc20ad.f mc21ad.f mc22ad.f mc23ad.f mc24ad.f \
     92        hsl_ma77d.f90 hsl_ma77d.deps90.f90 hsl_ma77d.deps77.f
     93@BUILD_COINHSL_TRUE@@COIN_HAS_MA27_TRUE@am__objects_1 = ma27ad.lo
     94@BUILD_COINHSL_TRUE@@COIN_HAS_MA57_TRUE@am__objects_2 = ma57ad.lo
     95@BUILD_COINHSL_TRUE@@COIN_HAS_MC19_TRUE@am__objects_3 = mc19ad.lo
     96@BUILD_COINHSL_TRUE@@COIN_HAS_MA28_TRUE@am__objects_4 = ma28ad.lo \
     97@BUILD_COINHSL_TRUE@@COIN_HAS_MA28_TRUE@        ma30ad.lo mc13dd.lo \
     98@BUILD_COINHSL_TRUE@@COIN_HAS_MA28_TRUE@        mc20ad.lo mc21ad.lo \
     99@BUILD_COINHSL_TRUE@@COIN_HAS_MA28_TRUE@        mc22ad.lo mc23ad.lo \
     100@BUILD_COINHSL_TRUE@@COIN_HAS_MA28_TRUE@        mc24ad.lo
     101@BUILD_COINHSL_TRUE@@COIN_HAS_MA77_TRUE@am__objects_5 = hsl_ma77d.lo \
     102@BUILD_COINHSL_TRUE@@COIN_HAS_MA77_TRUE@        hsl_ma77d.deps90.lo \
     103@BUILD_COINHSL_TRUE@@COIN_HAS_MA77_TRUE@        hsl_ma77d.deps77.lo
     104@BUILD_COINHSL_TRUE@am_libcoinhsl_la_OBJECTS = $(am__objects_1) \
     105@BUILD_COINHSL_TRUE@    $(am__objects_2) $(am__objects_3) \
     106@BUILD_COINHSL_TRUE@    $(am__objects_4) $(am__objects_5)
    101107libcoinhsl_la_OBJECTS = $(am_libcoinhsl_la_OBJECTS)
    102 DEFAULT_INCLUDES = -I. -I$(srcdir)
    103 depcomp = $(SHELL) $(top_srcdir)/depcomp
    104 am__depfiles_maybe = depfiles
    105 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
    106         $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    107 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
    108         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
    109         $(AM_CFLAGS) $(CFLAGS)
    110 CCLD = $(CC)
    111 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    112         $(AM_LDFLAGS) $(LDFLAGS) -o $@
     108@BUILD_COINHSL_TRUE@am_libcoinhsl_la_rpath = -rpath $(libdir)
     109DEFAULT_INCLUDES = -I. -I$(srcdir) -I. -I.
    113110F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS)
    114111LTF77COMPILE = $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(AM_FFLAGS) \
     
    154151AWK = @AWK@
    155152BUILDTOOLSDIR = @BUILDTOOLSDIR@
     153BUILD_COINHSL_FALSE = @BUILD_COINHSL_FALSE@
     154BUILD_COINHSL_TRUE = @BUILD_COINHSL_TRUE@
    156155CC = @CC@
    157156CCDEPMODE = @CCDEPMODE@
    158157CDEFS = @CDEFS@
    159158CFLAGS = @CFLAGS@
     159COINHSL_SVN_REV = @COINHSL_SVN_REV@
    160160COIN_CC_IS_CL_FALSE = @COIN_CC_IS_CL_FALSE@
    161161COIN_CC_IS_CL_TRUE = @COIN_CC_IS_CL_TRUE@
     
    206206HAVE_EXTERNALS_FALSE = @HAVE_EXTERNALS_FALSE@
    207207HAVE_EXTERNALS_TRUE = @HAVE_EXTERNALS_TRUE@
    208 HAVE_MXXX_CFLAGS = @HAVE_MXXX_CFLAGS@
    209208HSL_CFLAGS = @HSL_CFLAGS@
    210209HSL_CFLAGS_INSTALLED = @HSL_CFLAGS_INSTALLED@
     
    215214HSL_PCREQUIRES = @HSL_PCREQUIRES@
    216215HSL_SHARED_LIB = @HSL_SHARED_LIB@
    217 HSL_SVN_REV = @HSL_SVN_REV@
    218216INSTALL_DATA = @INSTALL_DATA@
    219217INSTALL_LOADABLE_LIBRARY_FALSE = @INSTALL_LOADABLE_LIBRARY_FALSE@
     
    322320AUTOMAKE_OPTIONS = foreign
    323321EXTRA_DIST = INSTALL.HSL $(am__append_6)
    324 lib_LTLIBRARIES = libcoinhsl.la
    325 libcoinhsl_la_SOURCES = dummy.c $(am__append_1) $(am__append_2) \
    326         $(am__append_3) $(am__append_4) $(am__append_5)
    327 libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
    328 pkgconfiglibdir = $(libdir)/pkgconfig
    329 pkgconfiglib_DATA = coinhsl.pc
     322@BUILD_COINHSL_TRUE@lib_LTLIBRARIES = libcoinhsl.la
     323@BUILD_COINHSL_TRUE@libcoinhsl_la_SOURCES = $(am__append_1) \
     324@BUILD_COINHSL_TRUE@    $(am__append_2) $(am__append_3) \
     325@BUILD_COINHSL_TRUE@    $(am__append_4) $(am__append_5)
     326@BUILD_COINHSL_TRUE@libcoinhsl_la_LDFLAGS = $(LT_LDFLAGS)
     327@BUILD_COINHSL_TRUE@includecoindir = $(includedir)/coin/ThirdParty
     328@BUILD_COINHSL_TRUE@pkgconfiglibdir = $(libdir)/pkgconfig
     329@BUILD_COINHSL_TRUE@pkgconfiglib_DATA = coinhsl.pc
    330330
    331331# Need to overwrite automake definition since otherwise libtool does not
     
    342342DocFiles = README AUTHORS LICENSE
    343343DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    344 all: all-am
     344all: config.h config_coinhsl.h
     345        $(MAKE) $(AM_MAKEFLAGS) all-am
    345346
    346347.SUFFIXES:
    347 .SUFFIXES: .c .f .f90 .lo .o .obj
     348.SUFFIXES: .f .f90 .lo .o .obj
    348349am--refresh:
    349350        @:
     
    379380$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    380381        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
     382
     383config.h: stamp-h1
     384        @if test ! -f $@; then \
     385          rm -f stamp-h1; \
     386          $(MAKE) stamp-h1; \
     387        else :; fi
     388
     389stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
     390        @rm -f stamp-h1
     391        cd $(top_builddir) && $(SHELL) ./config.status config.h
     392$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     393        cd $(top_srcdir) && $(AUTOHEADER)
     394        rm -f stamp-h1
     395        touch $@
     396
     397config_coinhsl.h: stamp-h2
     398        @if test ! -f $@; then \
     399          rm -f stamp-h2; \
     400          $(MAKE) stamp-h2; \
     401        else :; fi
     402
     403stamp-h2: $(srcdir)/config_coinhsl.h.in $(top_builddir)/config.status
     404        @rm -f stamp-h2
     405        cd $(top_builddir) && $(SHELL) ./config.status config_coinhsl.h
     406
     407distclean-hdr:
     408        -rm -f config.h stamp-h1 config_coinhsl.h stamp-h2
    381409coinhsl.pc: $(top_builddir)/config.status $(srcdir)/coinhsl.pc.in
    382410        cd $(top_builddir) && $(SHELL) ./config.status $@
     
    411439        done
    412440libcoinhsl.la: $(libcoinhsl_la_OBJECTS) $(libcoinhsl_la_DEPENDENCIES)
    413         $(F77LINK) -rpath $(libdir) $(libcoinhsl_la_LDFLAGS) $(libcoinhsl_la_OBJECTS) $(libcoinhsl_la_LIBADD) $(LIBS)
     441        $(F77LINK) $(am_libcoinhsl_la_rpath) $(libcoinhsl_la_LDFLAGS) $(libcoinhsl_la_OBJECTS) $(libcoinhsl_la_LIBADD) $(LIBS)
    414442
    415443mostlyclean-compile:
     
    418446distclean-compile:
    419447        -rm -f *.tab.c
    420 
    421 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Plo@am__quote@
    422 
    423 .c.o:
    424 @am__fastdepCC_TRUE@    if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
    425 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    426 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    427 @AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    428 @am__fastdepCC_FALSE@   $(COMPILE) -c $<
    429 
    430 .c.obj:
    431 @am__fastdepCC_TRUE@    if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
    432 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    433 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    434 @AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    435 @am__fastdepCC_FALSE@   $(COMPILE) -c `$(CYGPATH_W) '$<'`
    436 
    437 .c.lo:
    438 @am__fastdepCC_TRUE@    if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
    439 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    440 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
    441 @AMDEP_TRUE@@am__fastdepCC_FALSE@       DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    442 @am__fastdepCC_FALSE@   $(LTCOMPILE) -c -o $@ $<
    443448
    444449.f.o:
     
    497502tags: TAGS
    498503
    499 TAGS:  $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
     504TAGS:  $(HEADERS) $(SOURCES) config.h.in config_coinhsl.h.in $(TAGS_DEPENDENCIES) \
    500505                $(TAGS_FILES) $(LISP)
    501506        tags=; \
    502507        here=`pwd`; \
    503         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
     508        list='$(SOURCES) $(HEADERS) config.h.in config_coinhsl.h.in $(LISP) $(TAGS_FILES)'; \
    504509        unique=`for i in $$list; do \
    505510            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     
    513518        fi
    514519ctags: CTAGS
    515 CTAGS:  $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
     520CTAGS:  $(HEADERS) $(SOURCES) config.h.in config_coinhsl.h.in $(TAGS_DEPENDENCIES) \
    516521                $(TAGS_FILES) $(LISP)
    517522        tags=; \
    518523        here=`pwd`; \
    519         list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
     524        list='$(SOURCES) $(HEADERS) config.h.in config_coinhsl.h.in $(LISP) $(TAGS_FILES)'; \
    520525        unique=`for i in $$list; do \
    521526            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
     
    664669check-am: all-am
    665670check: check-am
    666 all-am: Makefile $(LTLIBRARIES) $(DATA)
     671all-am: Makefile $(LTLIBRARIES) $(DATA) config.h config_coinhsl.h
    667672installdirs:
    668673        for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgconfiglibdir)"; do \
     
    695700        @echo "This command is intended for maintainers to use"
    696701        @echo "it deletes files that may require special tools to rebuild."
    697 @EXTRA_SHARED_COMMAND_FALSE@uninstall-local:
    698 @EXTRA_SHARED_COMMAND_FALSE@install-exec-local:
     702@BUILD_COINHSL_FALSE@uninstall-local:
     703@BUILD_COINHSL_FALSE@install-exec-local:
    699704clean: clean-am
    700705
     
    704709distclean: distclean-am
    705710        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    706         -rm -rf ./$(DEPDIR)
    707711        -rm -f Makefile
    708712distclean-am: clean-am distclean-compile distclean-generic \
    709         distclean-libtool distclean-tags
     713        distclean-hdr distclean-libtool distclean-tags
    710714
    711715dvi: dvi-am
     
    732736        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    733737        -rm -rf $(top_srcdir)/autom4te.cache
    734         -rm -rf ./$(DEPDIR)
    735738        -rm -f Makefile
    736739maintainer-clean-am: distclean-am maintainer-clean-generic
     
    756759        dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    757760        distcheck distclean distclean-compile distclean-generic \
    758         distclean-libtool distclean-tags distcleancheck distdir \
    759         distuninstallcheck dvi dvi-am html html-am info info-am \
    760         install install-am install-data install-data-am install-exec \
    761         install-exec-am install-exec-local install-info \
     761        distclean-hdr distclean-libtool distclean-tags distcleancheck \
     762        distdir distuninstallcheck dvi dvi-am html html-am info \
     763        info-am install install-am install-data install-data-am \
     764        install-exec install-exec-am install-exec-local install-info \
    762765        install-info-am install-libLTLIBRARIES install-man \
    763766        install-pkgconfiglibDATA install-strip installcheck \
     
    771774
    772775# dependencies
    773 hsl_ma77d.lo: hsl_ma77d.deps90.lo
     776@BUILD_COINHSL_TRUE@hsl_ma77d.lo: hsl_ma77d.deps90.lo
    774777
    775778#############################################################################
    776779#  Generating a shared library for delay loading
    777780
    778 @EXTRA_SHARED_COMMAND_TRUE@$(HSL_SHARED_LIB): $(thirdpartylib_LTLIBRARIES) $(DEFFILE)
    779 @EXTRA_SHARED_COMMAND_TRUE@     bla=; \
    780 @EXTRA_SHARED_COMMAND_TRUE@     for i in $(nodist_libcoinhsl_la_SOURCES); do \
    781 @EXTRA_SHARED_COMMAND_TRUE@       case $$i in \
    782 @EXTRA_SHARED_COMMAND_TRUE@         *.f) \
    783 @EXTRA_SHARED_COMMAND_TRUE@           obj=`echo $$i| sed -e 's|\(.*\).[cf]|.libs/\1.$(OBJEXT)|g'` ;\
    784 @EXTRA_SHARED_COMMAND_TRUE@           if test -r $$obj; then \
    785 @EXTRA_SHARED_COMMAND_TRUE@             bla="$$bla $$obj" ;\
    786 @EXTRA_SHARED_COMMAND_TRUE@           else \
    787 @EXTRA_SHARED_COMMAND_TRUE@             bla="$$bla `echo $$i| sed -e 's|\(.*\).[cf]|\1.$(OBJEXT)|g'`" ;\
    788 @EXTRA_SHARED_COMMAND_TRUE@           fi ;\
    789 @EXTRA_SHARED_COMMAND_TRUE@           ;; \
    790 @EXTRA_SHARED_COMMAND_TRUE@       esac ;\
    791 @EXTRA_SHARED_COMMAND_TRUE@     done ;\
    792 @EXTRA_SHARED_COMMAND_TRUE@     $(F77_SHARED_CMD) $$bla -o $(HSL_SHARED_LIB) $(F77_DLL_LINKFLAGS)
    793 
    794 @EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@$(DEFFILE): config.status
    795 @EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@  echo 'LIBRARY LIBHSL' > $(DEFFILE)
    796 @EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@  echo 'EXPORTS' >> $(DEFFILE)
    797 @EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@  for i in $(EXPORT_SYMBOLS); do \
    798 @EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@    echo "  $$i" >> $(DEFFILE); \
    799 @EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@  done
    800 
    801 @EXTRA_SHARED_COMMAND_TRUE@install-exec-local: $(HSL_SHARED_LIB)
    802 @EXTRA_SHARED_COMMAND_TRUE@     test -z "$(DESTDIR)$(libdir)/coin/ThirdParty" || $(mkdir_p) "$(DESTDIR)$(libdir)/coin/ThirdParty"
    803 @EXTRA_SHARED_COMMAND_TRUE@     $(libLTLIBRARIES_INSTALL) $(HSL_SHARED_LIB) "$(DESTDIR)$(libdir)/coin/ThirdParty/$(HSL_SHARED_LIB)"
    804 
    805 @EXTRA_SHARED_COMMAND_TRUE@uninstall-local:
    806 @EXTRA_SHARED_COMMAND_TRUE@     rm -f "$(DESTDIR)$(libdir)/coin/ThirdParty/$(HSL_SHARED_LIB)"
     781@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@$(HSL_SHARED_LIB): $(thirdpartylib_LTLIBRARIES) $(DEFFILE)
     782@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@ bla=; \
     783@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@ for i in $(nodist_libcoinhsl_la_SOURCES); do \
     784@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@   case $$i in \
     785@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@     *.f) \
     786@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@       obj=`echo $$i| sed -e 's|\(.*\).[cf]|.libs/\1.$(OBJEXT)|g'` ;\
     787@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@       if test -r $$obj; then \
     788@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@         bla="$$bla $$obj" ;\
     789@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@       else \
     790@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@         bla="$$bla `echo $$i| sed -e 's|\(.*\).[cf]|\1.$(OBJEXT)|g'`" ;\
     791@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@       fi ;\
     792@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@       ;; \
     793@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@   esac ;\
     794@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@ done ;\
     795@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@ $(F77_SHARED_CMD) $$bla -o $(HSL_SHARED_LIB) $(F77_DLL_LINKFLAGS)
     796
     797@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@$(DEFFILE): config.status
     798@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@      echo 'LIBRARY LIBHSL' > $(DEFFILE)
     799@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@      echo 'EXPORTS' >> $(DEFFILE)
     800@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@      for i in $(EXPORT_SYMBOLS); do \
     801@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@        echo "  $$i" >> $(DEFFILE); \
     802@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@@NEED_DEFFILE_TRUE@      done
     803@BUILD_COINHSL_TRUE@install-exec-local: $(HSL_SHARED_LIB)
     804@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@ test -z "$(DESTDIR)$(libdir)/coin/ThirdParty" || $(mkdir_p) "$(DESTDIR)$(libdir)/coin/ThirdParty"
     805@BUILD_COINHSL_TRUE@@EXTRA_SHARED_COMMAND_TRUE@ $(libLTLIBRARIES_INSTALL) $(HSL_SHARED_LIB) "$(DESTDIR)$(libdir)/coin/ThirdParty/$(HSL_SHARED_LIB)"
     806@BUILD_COINHSL_TRUE@    $(install_sh_DATA) config_coinhsl.h $(DESTDIR)$(includecoindir)/CoinHslConfig.h
     807
     808@BUILD_COINHSL_TRUE@uninstall-local:
     809@BUILD_COINHSL_TRUE@    rm -f "$(DESTDIR)$(libdir)/coin/ThirdParty/$(HSL_SHARED_LIB)"
     810@BUILD_COINHSL_TRUE@    rm -f $(DESTDIR)$(includecoindir)/CoinHslConfig.h
    807811
    808812test:
  • ThirdParty/HSL/trunk/coinhsl-uninstalled.pc.in

    r2056 r2256  
    66URL: https://projects.coin-or.org/BuildTools
    77Version: @PACKAGE_VERSION@
     8Cflags: -I@abs_source_dir@ -I@ABSBUILDDIR@
    89Libs: ${libdir}/libcoinhsl.la @HSL_PCLIBS@
    9 Cflags: @HAVE_MXXX_CFLAGS@
    1010Requires: @HSL_PCREQUIRES@
  • ThirdParty/HSL/trunk/coinhsl.pc.in

    r2056 r2256  
    22exec_prefix=@exec_prefix@
    33libdir=@libdir@
     4includedir=@includedir@/coin/ThirdParty
    45
    56Name: HSL
     
    78URL: https://projects.coin-or.org/BuildTools
    89Version: @PACKAGE_VERSION@
     10Cflags: -I${includedir}
    911Libs: -L${libdir} -lcoinhsl @HSL_PCLIBS@
    10 Cflags: @HAVE_MXXX_CFLAGS@
    1112Requires: @HSL_PCREQUIRES@
  • ThirdParty/HSL/trunk/configure

    r2250 r2256  
    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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion HSL_SVN_REV 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 COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED FLIBS EGREP FC FCFLAGS ac_ct_FC LN_S 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 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 METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED HSL_CFLAGS HSL_LIBS HSL_PCLIBS HSL_PCREQUIRES HSL_DEPENDENCIES HSL_CFLAGS_INSTALLED HSL_LIBS_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE HAVE_MXXX_CFLAGS 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 ABSBUILDDIR 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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COINHSL_SVN_REV 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 COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED FLIBS EGREP FC FCFLAGS ac_ct_FC LN_S 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 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_MA57_TRUE COIN_HAS_MA57_FALSE METIS_LIBS METIS_CFLAGS METIS_DATA METIS_DEPENDENCIES METIS_LIBS_INSTALLED METIS_CFLAGS_INSTALLED METIS_DATA_INSTALLED HSL_CFLAGS HSL_LIBS HSL_PCLIBS HSL_PCREQUIRES HSL_DEPENDENCIES HSL_CFLAGS_INSTALLED HSL_LIBS_INSTALLED COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_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 BUILD_COINHSL_TRUE BUILD_COINHSL_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    16471647
    16481648cat >>confdefs.h <<_ACEOF
    1649 #define HSL_VERSION "$PACKAGE_VERSION"
     1649#define COINHSL_VERSION "$PACKAGE_VERSION"
    16501650_ACEOF
    16511651
     
    16591659
    16601660cat >>confdefs.h <<_ACEOF
    1661 #define HSL_VERSION_MAJOR $coin_majorver
     1661#define COINHSL_VERSION_MAJOR $coin_majorver
    16621662_ACEOF
    16631663
    16641664
    16651665cat >>confdefs.h <<_ACEOF
    1666 #define HSL_VERSION_MINOR $coin_minorver
     1666#define COINHSL_VERSION_MINOR $coin_minorver
    16671667_ACEOF
    16681668
    16691669
    16701670cat >>confdefs.h <<_ACEOF
    1671 #define HSL_VERSION_RELEASE $coin_releasever
     1671#define COINHSL_VERSION_RELEASE $coin_releasever
    16721672_ACEOF
    16731673
     
    16751675  # We use the following variable to have a string with the upper case
    16761676  # version of the project name
    1677   COIN_PRJCT=HSL
     1677  COIN_PRJCT=COINHSL
    16781678
    16791679  # Set the project's SVN revision number. The complicated sed expression
     
    17201720    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
    17211721    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
    1722       HSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
     1722      COINHSL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
    17231723
    17241724cat >>confdefs.h <<_ACEOF
    1725 #define HSL_SVN_REV $HSL_SVN_REV
     1725#define COINHSL_SVN_REV $COINHSL_SVN_REV
    17261726_ACEOF
    17271727
     
    2198721987
    2198821988
     21989coin_has_something=no
     21990
    2198921991
    2199021992
     
    2199321995if test -r $srcdir/ma27ad.f; then
    2199421996  hsl_files="$hsl_files ma27ad.f"
     21997
     21998cat >>confdefs.h <<\_ACEOF
     21999#define COINHSL_HAS_MA27 1
     22000_ACEOF
     22001
     22002                     coin_has_something=yes
    2199522003                     coin_has_ma27ad=yes
    2199622004  :
     
    2202422032  fi
    2202522033fi
    22026 if test -r $srcdir/mc19ad.f; then
    22027   hsl_files="$hsl_files mc19ad.f"
    22028                      coin_has_mc19ad=yes
    22029   :
    22030 else
    22031   coin_has_mc19ad=no
    22032   :
    22033 fi
    22034 
    22035 
    22036 
    22037 if test $coin_has_mc19ad = yes; then
    22038   COIN_HAS_MC19_TRUE=
    22039   COIN_HAS_MC19_FALSE='#'
    22040 else
    22041   COIN_HAS_MC19_TRUE='#'
    22042   COIN_HAS_MC19_FALSE=
    22043 fi
    2204422034
    2204522035if test -r $srcdir/ma57ad.f; then
    2204622036  hsl_files="$hsl_files ma57ad.f"
     22037
     22038cat >>confdefs.h <<\_ACEOF
     22039#define COINHSL_HAS_MA57 1
     22040_ACEOF
     22041
     22042                     coin_has_something=yes
    2204722043                     coin_has_ma57ad=yes
    2204822044  :
     
    2206222058fi
    2206322059
    22064 if test -r $srcdir/ma28ad.f; then
    22065   hsl_files="$hsl_files ma28ad.f"
    22066                      coin_has_ma28ad=yes
    22067   :
    22068 else
    22069   coin_has_ma28ad=no
    22070   :
    22071 fi
    22072 
    22073 
    22074 
    22075 if test $coin_has_ma28ad = yes; then
    22076   COIN_HAS_MA28_TRUE=
    22077   COIN_HAS_MA28_FALSE='#'
    22078 else
    22079   COIN_HAS_MA28_TRUE='#'
    22080   COIN_HAS_MA28_FALSE=
    22081 fi
    22082 
    22083 if test $have_f90 = yes; then
    22084    if test -r $srcdir/hsl_ma77d.f90; then
    22085   hsl_files="$hsl_files hsl_ma77d.f"
    22086                        coin_has_hsl_ma77d=yes
    22087   :
    22088 else
    22089   coin_has_hsl_ma77d=no
    22090   :
    22091 fi
    22092 
    22093 else
    22094   coin_has_hsl_ma77d=no
    22095 fi
    22096 
    22097 
    22098 if test $coin_has_hsl_ma77d = yes; then
    22099   COIN_HAS_MA77_TRUE=
    22100   COIN_HAS_MA77_FALSE='#'
    22101 else
    22102   COIN_HAS_MA77_TRUE='#'
    22103   COIN_HAS_MA77_FALSE=
    22104 fi
    22105 
    22106 
    22107 HAVE_MXXX_CFLAGS=
    22108 if test $coin_has_ma27ad = yes; then
    22109   HAVE_MXXX_CFLAGS="-DHAVE_MA27 $HAVE_MXXX_CFLAGS"
    22110 fi
    22111 if test $coin_has_mc19ad = yes; then
    22112   HAVE_MXXX_CFLAGS="-DHAVE_MC19 $HAVE_MXXX_CFLAGS"
    22113 fi
    2211422060if test $coin_has_ma57ad = yes; then
    22115   HAVE_MXXX_CFLAGS="-DHAVE_MA57 $HAVE_MXXX_CFLAGS"
    2211622061
    2211722062echo "$as_me:$LINENO: checking for COIN-OR package Metis" >&5
     
    2263622581
    2263722582fi
     22583
     22584if test -r $srcdir/mc19ad.f; then
     22585  hsl_files="$hsl_files mc19ad.f"
     22586
     22587cat >>confdefs.h <<\_ACEOF
     22588#define COINHSL_HAS_MC19 1
     22589_ACEOF
     22590
     22591                     coin_has_something=yes
     22592                     coin_has_mc19ad=yes
     22593  :
     22594else
     22595  coin_has_mc19ad=no
     22596  :
     22597fi
     22598
     22599
     22600
     22601if test $coin_has_mc19ad = yes; then
     22602  COIN_HAS_MC19_TRUE=
     22603  COIN_HAS_MC19_FALSE='#'
     22604else
     22605  COIN_HAS_MC19_TRUE='#'
     22606  COIN_HAS_MC19_FALSE=
     22607fi
     22608
     22609if test -r $srcdir/ma28ad.f; then
     22610  hsl_files="$hsl_files ma28ad.f"
     22611
     22612cat >>confdefs.h <<\_ACEOF
     22613#define COINHSL_HAS_MA28 1
     22614_ACEOF
     22615
     22616                     coin_has_something=yes
     22617                     coin_has_ma28ad=yes
     22618  :
     22619else
     22620  coin_has_ma28ad=no
     22621  :
     22622fi
     22623
     22624
     22625
    2263822626if test $coin_has_ma28ad = yes; then
    22639   HAVE_MXXX_CFLAGS="-DHAVE_MA28 $HAVE_MXXX_CFLAGS"
    22640 fi
     22627  COIN_HAS_MA28_TRUE=
     22628  COIN_HAS_MA28_FALSE='#'
     22629else
     22630  COIN_HAS_MA28_TRUE='#'
     22631  COIN_HAS_MA28_FALSE=
     22632fi
     22633
     22634if test $have_f90 = yes; then
     22635   if test -r $srcdir/hsl_ma77d.f90; then
     22636  hsl_files="$hsl_files hsl_ma77d.f"
     22637
     22638cat >>confdefs.h <<\_ACEOF
     22639#define COINHSL_HAS_MA77 1
     22640_ACEOF
     22641
     22642                       coin_has_something=yes
     22643                       coin_has_hsl_ma77d=yes
     22644  :
     22645else
     22646  coin_has_hsl_ma77d=no
     22647  :
     22648fi
     22649
     22650else
     22651  coin_has_hsl_ma77d=no
     22652fi
     22653
     22654
    2264122655if test $coin_has_hsl_ma77d = yes; then
    22642   HAVE_MXXX_CFLAGS="-DHAVE_MA77 $HAVE_MXXX_CFLAGS"
    22643 fi
    22644 
    22645 
     22656  COIN_HAS_MA77_TRUE=
     22657  COIN_HAS_MA77_FALSE='#'
     22658else
     22659  COIN_HAS_MA77_TRUE='#'
     22660  COIN_HAS_MA77_FALSE=
     22661fi
     22662
     22663
     22664#############################################################################
     22665#                        Setup build of loadable library                    #
     22666#############################################################################
     22667
     22668HSL_SHARED_LIB=
    2264622669if test x$enable_loadable_library = xyes; then
    2264722670  case $build in
     
    2273422757#############################################################################
    2273522758
    22736                               ac_config_files="$ac_config_files Makefile coinhsl.pc coinhsl-uninstalled.pc"
     22759          ac_config_files="$ac_config_files Makefile"
     22760
     22761
     22762# we build the library and setup the .pc files only if there is at least one source code
     22763# if there is no source code, then .pc files should not be setup, so for others this is as if we do not exist
     22764if test $coin_has_something = yes ; then
     22765                      ac_config_files="$ac_config_files coinhsl.pc coinhsl-uninstalled.pc"
     22766
     22767                      ac_config_headers="$ac_config_headers config.h config_coinhsl.h"
     22768
     22769else
     22770  # in case something is left over from a previous build
     22771  rm -f coinhsl.pc coinhsl-uninstalled.pc
     22772fi
     22773
     22774
     22775if test $coin_has_something = yes; then
     22776  BUILD_COINHSL_TRUE=
     22777  BUILD_COINHSL_FALSE='#'
     22778else
     22779  BUILD_COINHSL_TRUE='#'
     22780  BUILD_COINHSL_FALSE=
     22781fi
    2273722782
    2273822783
     
    2287322918fi
    2287422919
    22875 # Transform confdefs.h into DEFS.
    22876 # Protect against shell expansion while executing Makefile rules.
    22877 # Protect against Makefile macro expansion.
    22878 #
    22879 # If the first sed substitution is executed (which looks for macros that
    22880 # take arguments), then we branch to the quote section.  Otherwise,
    22881 # look for a macro that doesn't take arguments.
    22882 cat >confdef2opt.sed <<\_ACEOF
    22883 t clear
    22884 : clear
    22885 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
    22886 t quote
    22887 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
    22888 t quote
    22889 d
    22890 : quote
    22891 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
    22892 s,\[,\\&,g
    22893 s,\],\\&,g
    22894 s,\$,$$,g
    22895 p
    22896 _ACEOF
    22897 # We use echo to avoid assuming a particular line-breaking character.
    22898 # The extra dot is to prevent the shell from consuming trailing
    22899 # line-breaks from the sub-command output.  A line-break within
    22900 # single-quotes doesn't work because, if this script is created in a
    22901 # platform that uses two characters for line-breaks (e.g., DOS), tr
    22902 # would break.
    22903 ac_LF_and_DOT=`echo; echo .`
    22904 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
    22905 rm -f confdef2opt.sed
    22906 
     22920DEFS=-DHAVE_CONFIG_H
    2290722921
    2290822922ac_libobjs=
     
    2298422998   { (exit 1); exit 1; }; }
    2298522999fi
     23000if test -z "${COIN_HAS_MA57_TRUE}" && test -z "${COIN_HAS_MA57_FALSE}"; then
     23001  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MA57\" was never defined.
     23002Usually this means the macro was only invoked conditionally." >&5
     23003echo "$as_me: error: conditional \"COIN_HAS_MA57\" was never defined.
     23004Usually this means the macro was only invoked conditionally." >&2;}
     23005   { (exit 1); exit 1; }; }
     23006fi
     23007if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
     23008  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
     23009Usually this means the macro was only invoked conditionally." >&5
     23010echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
     23011Usually this means the macro was only invoked conditionally." >&2;}
     23012   { (exit 1); exit 1; }; }
     23013fi
     23014if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
     23015  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
     23016Usually this means the macro was only invoked conditionally." >&5
     23017echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
     23018Usually this means the macro was only invoked conditionally." >&2;}
     23019   { (exit 1); exit 1; }; }
     23020fi
     23021if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
     23022  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
     23023Usually this means the macro was only invoked conditionally." >&5
     23024echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
     23025Usually this means the macro was only invoked conditionally." >&2;}
     23026   { (exit 1); exit 1; }; }
     23027fi
    2298623028if test -z "${COIN_HAS_MC19_TRUE}" && test -z "${COIN_HAS_MC19_FALSE}"; then
    2298723029  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MC19\" was never defined.
     
    2299123033   { (exit 1); exit 1; }; }
    2299223034fi
    22993 if test -z "${COIN_HAS_MA57_TRUE}" && test -z "${COIN_HAS_MA57_FALSE}"; then
    22994   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MA57\" was never defined.
    22995 Usually this means the macro was only invoked conditionally." >&5
    22996 echo "$as_me: error: conditional \"COIN_HAS_MA57\" was never defined.
    22997 Usually this means the macro was only invoked conditionally." >&2;}
    22998    { (exit 1); exit 1; }; }
    22999 fi
    2300023035if test -z "${COIN_HAS_MA28_TRUE}" && test -z "${COIN_HAS_MA28_FALSE}"; then
    2300123036  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MA28\" was never defined.
     
    2301223047   { (exit 1); exit 1; }; }
    2301323048fi
    23014 if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
    23015   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
    23016 Usually this means the macro was only invoked conditionally." >&5
    23017 echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
    23018 Usually this means the macro was only invoked conditionally." >&2;}
    23019    { (exit 1); exit 1; }; }
    23020 fi
    23021 if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
    23022   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
    23023 Usually this means the macro was only invoked conditionally." >&5
    23024 echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
    23025 Usually this means the macro was only invoked conditionally." >&2;}
    23026    { (exit 1); exit 1; }; }
    23027 fi
    23028 if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
    23029   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
    23030 Usually this means the macro was only invoked conditionally." >&5
    23031 echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
    23032 Usually this means the macro was only invoked conditionally." >&2;}
    23033    { (exit 1); exit 1; }; }
    23034 fi
    2303523049if test -z "${INSTALL_LOADABLE_LIBRARY_TRUE}" && test -z "${INSTALL_LOADABLE_LIBRARY_FALSE}"; then
    2303623050  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LOADABLE_LIBRARY\" was never defined.
     
    2305123065Usually this means the macro was only invoked conditionally." >&5
    2305223066echo "$as_me: error: conditional \"EXTRA_SHARED_COMMAND\" was never defined.
     23067Usually this means the macro was only invoked conditionally." >&2;}
     23068   { (exit 1); exit 1; }; }
     23069fi
     23070if test -z "${BUILD_COINHSL_TRUE}" && test -z "${BUILD_COINHSL_FALSE}"; then
     23071  { { echo "$as_me:$LINENO: error: conditional \"BUILD_COINHSL\" was never defined.
     23072Usually this means the macro was only invoked conditionally." >&5
     23073echo "$as_me: error: conditional \"BUILD_COINHSL\" was never defined.
    2305323074Usually this means the macro was only invoked conditionally." >&2;}
    2305423075   { (exit 1); exit 1; }; }
     
    2337123392  --file=FILE[:TEMPLATE]
    2337223393                   instantiate the configuration file FILE
     23394  --header=FILE[:TEMPLATE]
     23395                   instantiate the configuration header FILE
    2337323396
    2337423397Configuration files:
    2337523398$config_files
     23399
     23400Configuration headers:
     23401$config_headers
    2337623402
    2337723403Configuration commands:
     
    2349723523  "coinhsl-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinhsl-uninstalled.pc" ;;
    2349823524  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
     23525  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
     23526  "config_coinhsl.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config_coinhsl.h" ;;
    2349923527  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    2350023528echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     
    2350923537if $ac_need_defaults; then
    2351023538  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
     23539  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
    2351123540  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
    2351223541fi
     
    2358423613s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
    2358523614s,@have_svnversion@,$have_svnversion,;t t
    23586 s,@HSL_SVN_REV@,$HSL_SVN_REV,;t t
     23615s,@COINHSL_SVN_REV@,$COINHSL_SVN_REV,;t t
    2358723616s,@build@,$build,;t t
    2358823617s,@build_cpu@,$build_cpu,;t t
     
    2369323722s,@COIN_HAS_MA27_TRUE@,$COIN_HAS_MA27_TRUE,;t t
    2369423723s,@COIN_HAS_MA27_FALSE@,$COIN_HAS_MA27_FALSE,;t t
    23695 s,@COIN_HAS_MC19_TRUE@,$COIN_HAS_MC19_TRUE,;t t
    23696 s,@COIN_HAS_MC19_FALSE@,$COIN_HAS_MC19_FALSE,;t t
    2369723724s,@COIN_HAS_MA57_TRUE@,$COIN_HAS_MA57_TRUE,;t t
    2369823725s,@COIN_HAS_MA57_FALSE@,$COIN_HAS_MA57_FALSE,;t t
    23699 s,@COIN_HAS_MA28_TRUE@,$COIN_HAS_MA28_TRUE,;t t
    23700 s,@COIN_HAS_MA28_FALSE@,$COIN_HAS_MA28_FALSE,;t t
    23701 s,@COIN_HAS_MA77_TRUE@,$COIN_HAS_MA77_TRUE,;t t
    23702 s,@COIN_HAS_MA77_FALSE@,$COIN_HAS_MA77_FALSE,;t t
    2370323726s,@METIS_LIBS@,$METIS_LIBS,;t t
    2370423727s,@METIS_CFLAGS@,$METIS_CFLAGS,;t t
     
    2371723740s,@COIN_HAS_METIS_TRUE@,$COIN_HAS_METIS_TRUE,;t t
    2371823741s,@COIN_HAS_METIS_FALSE@,$COIN_HAS_METIS_FALSE,;t t
    23719 s,@HAVE_MXXX_CFLAGS@,$HAVE_MXXX_CFLAGS,;t t
     23742s,@COIN_HAS_MC19_TRUE@,$COIN_HAS_MC19_TRUE,;t t
     23743s,@COIN_HAS_MC19_FALSE@,$COIN_HAS_MC19_FALSE,;t t
     23744s,@COIN_HAS_MA28_TRUE@,$COIN_HAS_MA28_TRUE,;t t
     23745s,@COIN_HAS_MA28_FALSE@,$COIN_HAS_MA28_FALSE,;t t
     23746s,@COIN_HAS_MA77_TRUE@,$COIN_HAS_MA77_TRUE,;t t
     23747s,@COIN_HAS_MA77_FALSE@,$COIN_HAS_MA77_FALSE,;t t
    2372023748s,@F77_SHARED_CMD@,$F77_SHARED_CMD,;t t
    2372123749s,@F77_DLL_LINKFLAGS@,$F77_DLL_LINKFLAGS,;t t
     
    2372923757s,@EXTRA_SHARED_COMMAND_TRUE@,$EXTRA_SHARED_COMMAND_TRUE,;t t
    2373023758s,@EXTRA_SHARED_COMMAND_FALSE@,$EXTRA_SHARED_COMMAND_FALSE,;t t
     23759s,@BUILD_COINHSL_TRUE@,$BUILD_COINHSL_TRUE,;t t
     23760s,@BUILD_COINHSL_FALSE@,$BUILD_COINHSL_FALSE,;t t
    2373123761s,@LIBEXT@,$LIBEXT,;t t
    2373223762s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     
    2397024000  fi
    2397124001
     24002done
     24003_ACEOF
     24004cat >>$CONFIG_STATUS <<\_ACEOF
     24005
     24006#
     24007# CONFIG_HEADER section.
     24008#
     24009
     24010# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     24011# NAME is the cpp macro being defined and VALUE is the value it is being given.
     24012#
     24013# ac_d sets the value in "#define NAME VALUE" lines.
     24014ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
     24015ac_dB='[         ].*$,\1#\2'
     24016ac_dC=' '
     24017ac_dD=',;t'
     24018# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
     24019ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     24020ac_uB='$,\1#\2define\3'
     24021ac_uC=' '
     24022ac_uD=',;t'
     24023
     24024for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
     24025  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
     24026  case $ac_file in
     24027  - | *:- | *:-:* ) # input from stdin
     24028        cat >$tmp/stdin
     24029        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     24030        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     24031  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     24032        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     24033  * )   ac_file_in=$ac_file.in ;;
     24034  esac
     24035
     24036  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
     24037echo "$as_me: creating $ac_file" >&6;}
     24038
     24039  # First look for the input files in the build tree, otherwise in the
     24040  # src tree.
     24041  ac_file_inputs=`IFS=:
     24042    for f in $ac_file_in; do
     24043      case $f in
     24044      -) echo $tmp/stdin ;;
     24045      [\\/$]*)
     24046         # Absolute (can't be DOS-style, as IFS=:)
     24047         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     24048echo "$as_me: error: cannot find input file: $f" >&2;}
     24049   { (exit 1); exit 1; }; }
     24050         # Do quote $f, to prevent DOS paths from being IFS'd.
     24051         echo "$f";;
     24052      *) # Relative
     24053         if test -f "$f"; then
     24054           # Build tree
     24055           echo "$f"
     24056         elif test -f "$srcdir/$f"; then
     24057           # Source tree
     24058           echo "$srcdir/$f"
     24059         else
     24060           # /dev/null tree
     24061           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     24062echo "$as_me: error: cannot find input file: $f" >&2;}
     24063   { (exit 1); exit 1; }; }
     24064         fi;;
     24065      esac
     24066    done` || { (exit 1); exit 1; }
     24067  # Remove the trailing spaces.
     24068  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
     24069
     24070_ACEOF
     24071
     24072# Transform confdefs.h into two sed scripts, `conftest.defines' and
     24073# `conftest.undefs', that substitutes the proper values into
     24074# config.h.in to produce config.h.  The first handles `#define'
     24075# templates, and the second `#undef' templates.
     24076# And first: Protect against being on the right side of a sed subst in
     24077# config.status.  Protect against being in an unquoted here document
     24078# in config.status.
     24079rm -f conftest.defines conftest.undefs
     24080# Using a here document instead of a string reduces the quoting nightmare.
     24081# Putting comments in sed scripts is not portable.
     24082#
     24083# `end' is used to avoid that the second main sed command (meant for
     24084# 0-ary CPP macros) applies to n-ary macro definitions.
     24085# See the Autoconf documentation for `clear'.
     24086cat >confdef2sed.sed <<\_ACEOF
     24087s/[\\&,]/\\&/g
     24088s,[\\$`],\\&,g
     24089t clear
     24090: clear
     24091s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     24092t end
     24093s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     24094: end
     24095_ACEOF
     24096# If some macros were called several times there might be several times
     24097# the same #defines, which is useless.  Nevertheless, we may not want to
     24098# sort them, since we want the *last* AC-DEFINE to be honored.
     24099uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
     24100sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
     24101rm -f confdef2sed.sed
     24102
     24103# This sed command replaces #undef with comments.  This is necessary, for
     24104# example, in the case of _POSIX_SOURCE, which is predefined and required
     24105# on some systems where configure will not decide to define it.
     24106cat >>conftest.undefs <<\_ACEOF
     24107s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     24108_ACEOF
     24109
     24110# Break up conftest.defines because some shells have a limit on the size
     24111# of here documents, and old seds have small limits too (100 cmds).
     24112echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
     24113echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     24114echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
     24115echo '  :' >>$CONFIG_STATUS
     24116rm -f conftest.tail
     24117while grep . conftest.defines >/dev/null
     24118do
     24119  # Write a limited-size here document to $tmp/defines.sed.
     24120  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
     24121  # Speed up: don't consider the non `#define' lines.
     24122  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
     24123  # Work around the forget-to-reset-the-flag bug.
     24124  echo 't clr' >>$CONFIG_STATUS
     24125  echo ': clr' >>$CONFIG_STATUS
     24126  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
     24127  echo 'CEOF
     24128  sed -f $tmp/defines.sed $tmp/in >$tmp/out
     24129  rm -f $tmp/in
     24130  mv $tmp/out $tmp/in
     24131' >>$CONFIG_STATUS
     24132  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
     24133  rm -f conftest.defines
     24134  mv conftest.tail conftest.defines
     24135done
     24136rm -f conftest.defines
     24137echo '  fi # grep' >>$CONFIG_STATUS
     24138echo >>$CONFIG_STATUS
     24139
     24140# Break up conftest.undefs because some shells have a limit on the size
     24141# of here documents, and old seds have small limits too (100 cmds).
     24142echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
     24143rm -f conftest.tail
     24144while grep . conftest.undefs >/dev/null
     24145do
     24146  # Write a limited-size here document to $tmp/undefs.sed.
     24147  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
     24148  # Speed up: don't consider the non `#undef'
     24149  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     24150  # Work around the forget-to-reset-the-flag bug.
     24151  echo 't clr' >>$CONFIG_STATUS
     24152  echo ': clr' >>$CONFIG_STATUS
     24153  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
     24154  echo 'CEOF
     24155  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
     24156  rm -f $tmp/in
     24157  mv $tmp/out $tmp/in
     24158' >>$CONFIG_STATUS
     24159  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
     24160  rm -f conftest.undefs
     24161  mv conftest.tail conftest.undefs
     24162done
     24163rm -f conftest.undefs
     24164
     24165cat >>$CONFIG_STATUS <<\_ACEOF
     24166  # Let's still pretend it is `configure' which instantiates (i.e., don't
     24167  # use $as_me), people would be surprised to read:
     24168  #    /* config.h.  Generated by config.status.  */
     24169  if test x"$ac_file" = x-; then
     24170    echo "/* Generated by configure.  */" >$tmp/config.h
     24171  else
     24172    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
     24173  fi
     24174  cat $tmp/in >>$tmp/config.h
     24175  rm -f $tmp/in
     24176  if test x"$ac_file" != x-; then
     24177    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
     24178      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
     24179echo "$as_me: $ac_file is unchanged" >&6;}
     24180    else
     24181      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
     24182$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     24183         X"$ac_file" : 'X\(//\)[^/]' \| \
     24184         X"$ac_file" : 'X\(//\)$' \| \
     24185         X"$ac_file" : 'X\(/\)' \| \
     24186         .     : '\(.\)' 2>/dev/null ||
     24187echo X"$ac_file" |
     24188    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     24189          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     24190          /^X\(\/\/\)$/{ s//\1/; q; }
     24191          /^X\(\/\).*/{ s//\1/; q; }
     24192          s/.*/./; q'`
     24193      { if $as_mkdir_p; then
     24194    mkdir -p "$ac_dir"
     24195  else
     24196    as_dir="$ac_dir"
     24197    as_dirs=
     24198    while test ! -d "$as_dir"; do
     24199      as_dirs="$as_dir $as_dirs"
     24200      as_dir=`(dirname "$as_dir") 2>/dev/null ||
     24201$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     24202         X"$as_dir" : 'X\(//\)[^/]' \| \
     24203         X"$as_dir" : 'X\(//\)$' \| \
     24204         X"$as_dir" : 'X\(/\)' \| \
     24205         .     : '\(.\)' 2>/dev/null ||
     24206echo X"$as_dir" |
     24207    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     24208          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     24209          /^X\(\/\/\)$/{ s//\1/; q; }
     24210          /^X\(\/\).*/{ s//\1/; q; }
     24211          s/.*/./; q'`
     24212    done
     24213    test ! -n "$as_dirs" || mkdir $as_dirs
     24214  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
     24215echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
     24216   { (exit 1); exit 1; }; }; }
     24217
     24218      rm -f $ac_file
     24219      mv $tmp/config.h $ac_file
     24220    fi
     24221  else
     24222    cat $tmp/config.h
     24223    rm -f $tmp/config.h
     24224  fi
     24225# Compute $ac_file's index in $config_headers.
     24226_am_stamp_count=1
     24227for _am_header in $config_headers :; do
     24228  case $_am_header in
     24229    $ac_file | $ac_file:* )
     24230      break ;;
     24231    * )
     24232      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
     24233  esac
     24234done
     24235echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
     24236$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
     24237         X$ac_file : 'X\(//\)[^/]' \| \
     24238         X$ac_file : 'X\(//\)$' \| \
     24239         X$ac_file : 'X\(/\)' \| \
     24240         .     : '\(.\)' 2>/dev/null ||
     24241echo X$ac_file |
     24242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     24243          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
     24244          /^X\(\/\/\)$/{ s//\1/; q; }
     24245          /^X\(\/\).*/{ s//\1/; q; }
     24246          s/.*/./; q'`/stamp-h$_am_stamp_count
    2397224247done
    2397324248_ACEOF
  • ThirdParty/HSL/trunk/configure.ac

    r2120 r2256  
    3232AC_PREFIX_DEFAULT([`pwd`])
    3333
    34 AC_COIN_PROJECTDIR_INIT(HSL)
     34AC_COIN_PROJECTDIR_INIT(COINHSL)
    3535
    3636#############################################################################
     
    101101AC_LANG_POP(Fortran 77)
    102102
     103coin_has_something=no
     104
    103105AC_DEFUN([MY_CHECK_HSLFILE],
    104106[AC_COIN_CHECK_FILE([$srcdir/$1.f],
    105107                    [hsl_files="$hsl_files $1.f"
     108                     AC_DEFINE(COINHSL_HAS_$2, [1], [Define to 1 if $2 is available.])
     109                     coin_has_something=yes
    106110                     coin_has_$1=yes],
    107111                    [coin_has_$1=no])
     
    112116   AC_COIN_CHECK_FILE([$srcdir/$1.f90],
    113117                      [hsl_files="$hsl_files $1.f"
     118                       AC_DEFINE(COINHSL_HAS_$2, [1], [Define to 1 if $2 is available.])
     119                       coin_has_something=yes
    114120                       coin_has_$1=yes],
    115121                      [coin_has_$1=no])
     
    129135  fi
    130136fi
    131 MY_CHECK_HSLFILE(mc19ad,MC19)
     137
    132138MY_CHECK_HSLFILE(ma57ad,MA57)
    133 MY_CHECK_HSLFILE(ma28ad,MA28)
    134 MY_CHECK_HSLFILE_F90(hsl_ma77d,MA77)
    135 
    136 HAVE_MXXX_CFLAGS=
    137 if test $coin_has_ma27ad = yes; then
    138   HAVE_MXXX_CFLAGS="-DHAVE_MA27 $HAVE_MXXX_CFLAGS"
    139 fi
    140 if test $coin_has_mc19ad = yes; then
    141   HAVE_MXXX_CFLAGS="-DHAVE_MC19 $HAVE_MXXX_CFLAGS"
    142 fi
    143139if test $coin_has_ma57ad = yes; then
    144   HAVE_MXXX_CFLAGS="-DHAVE_MA57 $HAVE_MXXX_CFLAGS"
    145140  AC_COIN_CHECK_PACKAGE(Metis, [coinmetis], HSL)
    146141  if test $coin_has_metis != yes ; then
     
    150145  AM_CONDITIONAL(COIN_HAS_METIS, [test 0 = 1])
    151146fi
    152 if test $coin_has_ma28ad = yes; then
    153   HAVE_MXXX_CFLAGS="-DHAVE_MA28 $HAVE_MXXX_CFLAGS"
    154 fi
    155 if test $coin_has_hsl_ma77d = yes; then
    156   HAVE_MXXX_CFLAGS="-DHAVE_MA77 $HAVE_MXXX_CFLAGS"
    157 fi
    158 AC_SUBST(HAVE_MXXX_CFLAGS)
    159 
     147
     148MY_CHECK_HSLFILE(mc19ad,MC19)
     149MY_CHECK_HSLFILE(ma28ad,MA28)
     150MY_CHECK_HSLFILE_F90(hsl_ma77d,MA77)
     151
     152#############################################################################
     153#                        Setup build of loadable library                    #
     154#############################################################################
     155
     156HSL_SHARED_LIB=
    160157if test x$enable_loadable_library = xyes; then
    161158  case $build in
     
    221218#############################################################################
    222219
    223 AC_CONFIG_FILES([Makefile coinhsl.pc coinhsl-uninstalled.pc])
     220AC_CONFIG_FILES([Makefile])
     221
     222# we build the library and setup the .pc files only if there is at least one source code
     223# if there is no source code, then .pc files should not be setup, so for others this is as if we do not exist
     224if test $coin_has_something = yes ; then
     225  AC_CONFIG_FILES([coinhsl.pc coinhsl-uninstalled.pc])
     226  AC_CONFIG_HEADER(config.h config_coinhsl.h)
     227else
     228  # in case something is left over from a previous build
     229  rm -f coinhsl.pc coinhsl-uninstalled.pc
     230fi
     231AM_CONDITIONAL(BUILD_COINHSL, [test $coin_has_something = yes])
    224232
    225233AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.