Changeset 1548 for ThirdParty/Metis


Ignore:
Timestamp:
May 8, 2010 9:54:35 AM (10 years ago)
Author:
stefan
Message:

copy over pkg-config setup and making thirdparty projects installable projects from split branch

Location:
ThirdParty/Metis/trunk
Files:
2 added
4 edited

Legend:

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

    r1411 r1548  
    99EXTRA_DIST = get.metis INSTALL.METIS
    1010
    11 if SKIPMAKE
    12   noinst_LTLIBRARIES =
    13 else
    14   noinst_LTLIBRARIES = libcoinmetis.la
    15 endif
     11thirdpartylibdir = $(libdir)/coin/ThirdParty
     12thirdpartylib_LTLIBRARIES = libcoinmetis.la
    1613
    1714METISDIR = @METISDIR@
    1815
    19 nodist_libcoinmetis_la_SOURCES = \
     16libcoinmetis_la_SOURCES = \
    2017        $(METISDIR)/Lib/balance.c \
    2118        $(METISDIR)/Lib/bucketsort.c \
     
    7673        -I`$(CYGPATH_W) $(srcdir)/$(METISDIR)/Lib`
    7774
     75libcoinmetis_la_LDFLAGS = $(LT_LDFLAGS)
    7876
    79 libcoinmetis_la_LDFLAGS = $(LT_LDFLAGS)
     77thirdpartyincludedir = $(includedir)/coin/ThirdParty
     78thirdpartyinclude_HEADERS = \
     79  $(METISDIR)/Lib/defs.h \
     80  $(METISDIR)/Lib/macros.h \
     81  $(METISDIR)/Lib/metis.h \
     82  $(METISDIR)/Lib/proto.h \
     83  $(METISDIR)/Lib/rename.h \
     84  $(METISDIR)/Lib/struct.h
     85
     86if COIN_HAS_PKGCONFIG
     87addlibsdir = $(datadir)/coin/doc/ThirdParty/Metis
     88addlibs_DATA = metis_addlibs.txt
     89
     90metis_addlibs.txt : coinmetis.pc
     91        PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinmetis > metis_addlibs.txt
     92endif
     93
     94pkgconfiglibdir = $(libdir)/pkgconfig
     95pkgconfiglib_DATA = coinmetis.pc
    8096
    8197# Suppress default defines from autoheader
     
    86102########################################################################
    87103
     104CLEANFILES = metis_addlibs.txt
     105
    88106# Files that are generated and should be cleaned with make distclean
    89107DISTCLEANFILES = $(MAKEOKFILE) strings.h
  • ThirdParty/Metis/trunk/Makefile.in

    r1411 r1548  
    2828#                    Documentation installation                        #
    2929########################################################################
     30
     31
    3032
    3133srcdir = @srcdir@
     
    5759        $(srcdir)/../../ltmain.sh $(srcdir)/../../missing \
    5860        $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
     61        $(srcdir)/coinmetis-uninstalled.pc.in \
     62        $(srcdir)/coinmetis.pc.in $(thirdpartyinclude_HEADERS) \
    5963        $(top_srcdir)/configure
    6064@HAVE_EXTERNALS_TRUE@am__append_1 = Externals
     
    6973 configure.lineno configure.status.lineno
    7074mkinstalldirs = $(install_sh) -d
    71 CONFIG_CLEAN_FILES =
    72 LTLIBRARIES = $(noinst_LTLIBRARIES)
     75CONFIG_CLEAN_FILES = coinmetis.pc coinmetis-uninstalled.pc
     76am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
     77am__vpath_adj = case $$p in \
     78    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
     79    *) f=$$p;; \
     80  esac;
     81am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
     82am__installdirs = "$(DESTDIR)$(thirdpartylibdir)" \
     83        "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)" \
     84        "$(DESTDIR)$(thirdpartyincludedir)"
     85thirdpartylibLTLIBRARIES_INSTALL = $(INSTALL)
     86LTLIBRARIES = $(thirdpartylib_LTLIBRARIES)
    7387libcoinmetis_la_LIBADD =
    74 nodist_libcoinmetis_la_OBJECTS = balance.lo bucketsort.lo ccgraph.lo \
     88am_libcoinmetis_la_OBJECTS = balance.lo bucketsort.lo ccgraph.lo \
    7589        coarsen.lo compress.lo debug.lo estmem.lo fm.lo fortran.lo \
    7690        frename.lo graph.lo initpart.lo kmetis.lo kvmetis.lo kwayfm.lo \
     
    8397        separator.lo sfm.lo srefine.lo stat.lo subdomains.lo timing.lo \
    8498        util.lo
    85 libcoinmetis_la_OBJECTS = $(nodist_libcoinmetis_la_OBJECTS)
    86 @SKIPMAKE_FALSE@am_libcoinmetis_la_rpath =
     99libcoinmetis_la_OBJECTS = $(am_libcoinmetis_la_OBJECTS)
    87100depcomp = $(SHELL) $(top_srcdir)/../../depcomp
    88101am__depfiles_maybe = depfiles
     
    95108LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    96109        $(AM_LDFLAGS) $(LDFLAGS) -o $@
    97 SOURCES = $(nodist_libcoinmetis_la_SOURCES)
    98 DIST_SOURCES =
     110SOURCES = $(libcoinmetis_la_SOURCES)
     111DIST_SOURCES = $(libcoinmetis_la_SOURCES)
     112addlibsDATA_INSTALL = $(INSTALL_DATA)
     113pkgconfiglibDATA_INSTALL = $(INSTALL_DATA)
     114DATA = $(addlibs_DATA) $(pkgconfiglib_DATA)
     115thirdpartyincludeHEADERS_INSTALL = $(INSTALL_HEADER)
     116HEADERS = $(thirdpartyinclude_HEADERS)
    99117ETAGS = etags
    100118CTAGS = ctags
     
    110128distuninstallcheck_listfiles = find . -type f -print
    111129distcleancheck_listfiles = find . -type f -print
     130ABSBUILDDIR = @ABSBUILDDIR@
    112131ACLOCAL = @ACLOCAL@
    113132ADDLIBS = @ADDLIBS@
     
    129148CDEFS = @CDEFS@
    130149CFLAGS = @CFLAGS@
    131 COIN_HAS_METIS_FALSE = @COIN_HAS_METIS_FALSE@
    132 COIN_HAS_METIS_TRUE = @COIN_HAS_METIS_TRUE@
     150COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
     151COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
     152COIN_PKG_CONFIG_PATH = @COIN_PKG_CONFIG_PATH@
    133153CPP = @CPP@
    134154CPPFLAGS = @CPPFLAGS@
     
    171191MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    172192MAKEINFO = @MAKEINFO@
    173 MAKEOKFILE = @MAKEOKFILE@
    174193METISDIR = @METISDIR@
    175194MPICC = @MPICC@
     
    183202PACKAGE_VERSION = @PACKAGE_VERSION@
    184203PATH_SEPARATOR = @PATH_SEPARATOR@
     204PKG_CONFIG = @PKG_CONFIG@
    185205RANLIB = @RANLIB@
    186206RPATH_FLAGS = @RPATH_FLAGS@
    187207SET_MAKE = @SET_MAKE@
    188208SHELL = @SHELL@
    189 SKIPMAKE_FALSE = @SKIPMAKE_FALSE@
    190 SKIPMAKE_TRUE = @SKIPMAKE_TRUE@
    191209STRIP = @STRIP@
    192210VERSION = @VERSION@
    193211VPATH_DISTCLEANFILES = @VPATH_DISTCLEANFILES@
     212_SVN_REV = @_SVN_REV@
    194213abs_bin_dir = @abs_bin_dir@
    195214abs_include_dir = @abs_include_dir@
     
    204223ac_ct_STRIP = @ac_ct_STRIP@
    205224ac_cxx_preproc_warn_flag = @ac_cxx_preproc_warn_flag@
     225ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
    206226am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    207227am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     
    224244have_automake = @have_automake@
    225245have_svn = @have_svn@
     246have_svnversion = @have_svnversion@
    226247host = @host@
    227248host_alias = @host_alias@
     
    247268AUTOMAKE_OPTIONS = foreign
    248269EXTRA_DIST = get.metis INSTALL.METIS $(am__append_1)
    249 @SKIPMAKE_FALSE@noinst_LTLIBRARIES = libcoinmetis.la
    250 @SKIPMAKE_TRUE@noinst_LTLIBRARIES =
    251 nodist_libcoinmetis_la_SOURCES = \
     270thirdpartylibdir = $(libdir)/coin/ThirdParty
     271thirdpartylib_LTLIBRARIES = libcoinmetis.la
     272libcoinmetis_la_SOURCES = \
    252273        $(METISDIR)/Lib/balance.c \
    253274        $(METISDIR)/Lib/bucketsort.c \
     
    308329
    309330libcoinmetis_la_LDFLAGS = $(LT_LDFLAGS)
     331thirdpartyincludedir = $(includedir)/coin/ThirdParty
     332thirdpartyinclude_HEADERS = \
     333  $(METISDIR)/Lib/defs.h \
     334  $(METISDIR)/Lib/macros.h \
     335  $(METISDIR)/Lib/metis.h \
     336  $(METISDIR)/Lib/proto.h \
     337  $(METISDIR)/Lib/rename.h \
     338  $(METISDIR)/Lib/struct.h
     339
     340@COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(datadir)/coin/doc/ThirdParty/Metis
     341@COIN_HAS_PKGCONFIG_TRUE@addlibs_DATA = metis_addlibs.txt
     342pkgconfiglibdir = $(libdir)/pkgconfig
     343pkgconfiglib_DATA = coinmetis.pc
    310344
    311345########################################################################
    312346#                         Maintainer Stuff                             #
    313347########################################################################
     348CLEANFILES = metis_addlibs.txt
    314349
    315350# Files that are generated and should be cleaned with make distclean
     
    317352        $(VPATH_DISTCLEANFILES)
    318353DocFiles = README AUTHORS LICENSE
    319 DocInstallDir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)
     354DocInstallDir = $(datadir)/coin/doc/$(PACKAGE_NAME)
    320355all: all-am
    321356
     
    355390$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
    356391        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    357 
    358 clean-noinstLTLIBRARIES:
    359         -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
    360         @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
     392coinmetis.pc: $(top_builddir)/config.status $(srcdir)/coinmetis.pc.in
     393        cd $(top_builddir) && $(SHELL) ./config.status $@
     394coinmetis-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/coinmetis-uninstalled.pc.in
     395        cd $(top_builddir) && $(SHELL) ./config.status $@
     396install-thirdpartylibLTLIBRARIES: $(thirdpartylib_LTLIBRARIES)
     397        @$(NORMAL_INSTALL)
     398        test -z "$(thirdpartylibdir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartylibdir)"
     399        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     400          if test -f $$p; then \
     401            f=$(am__strip_dir) \
     402            echo " $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(thirdpartylibdir)/$$f'"; \
     403            $(LIBTOOL) --mode=install $(thirdpartylibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(thirdpartylibdir)/$$f"; \
     404          else :; fi; \
     405        done
     406
     407uninstall-thirdpartylibLTLIBRARIES:
     408        @$(NORMAL_UNINSTALL)
     409        @set -x; list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
     410          p=$(am__strip_dir) \
     411          echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(thirdpartylibdir)/$$p'"; \
     412          $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(thirdpartylibdir)/$$p"; \
     413        done
     414
     415clean-thirdpartylibLTLIBRARIES:
     416        -test -z "$(thirdpartylib_LTLIBRARIES)" || rm -f $(thirdpartylib_LTLIBRARIES)
     417        @list='$(thirdpartylib_LTLIBRARIES)'; for p in $$list; do \
    361418          dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
    362419          test "$$dir" != "$$p" || dir=.; \
     
    365422        done
    366423libcoinmetis.la: $(libcoinmetis_la_OBJECTS) $(libcoinmetis_la_DEPENDENCIES)
    367         $(LINK) $(am_libcoinmetis_la_rpath) $(libcoinmetis_la_LDFLAGS) $(libcoinmetis_la_OBJECTS) $(libcoinmetis_la_LIBADD) $(LIBS)
     424        $(LINK) -rpath $(thirdpartylibdir) $(libcoinmetis_la_LDFLAGS) $(libcoinmetis_la_OBJECTS) $(libcoinmetis_la_LIBADD) $(LIBS)
    368425
    369426mostlyclean-compile:
     
    820877        -rm -f libtool
    821878uninstall-info-am:
     879install-addlibsDATA: $(addlibs_DATA)
     880        @$(NORMAL_INSTALL)
     881        test -z "$(addlibsdir)" || $(mkdir_p) "$(DESTDIR)$(addlibsdir)"
     882        @list='$(addlibs_DATA)'; for p in $$list; do \
     883          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     884          f=$(am__strip_dir) \
     885          echo " $(addlibsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(addlibsdir)/$$f'"; \
     886          $(addlibsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(addlibsdir)/$$f"; \
     887        done
     888
     889uninstall-addlibsDATA:
     890        @$(NORMAL_UNINSTALL)
     891        @list='$(addlibs_DATA)'; for p in $$list; do \
     892          f=$(am__strip_dir) \
     893          echo " rm -f '$(DESTDIR)$(addlibsdir)/$$f'"; \
     894          rm -f "$(DESTDIR)$(addlibsdir)/$$f"; \
     895        done
     896install-pkgconfiglibDATA: $(pkgconfiglib_DATA)
     897        @$(NORMAL_INSTALL)
     898        test -z "$(pkgconfiglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfiglibdir)"
     899        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     900          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     901          f=$(am__strip_dir) \
     902          echo " $(pkgconfiglibDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     903          $(pkgconfiglibDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     904        done
     905
     906uninstall-pkgconfiglibDATA:
     907        @$(NORMAL_UNINSTALL)
     908        @list='$(pkgconfiglib_DATA)'; for p in $$list; do \
     909          f=$(am__strip_dir) \
     910          echo " rm -f '$(DESTDIR)$(pkgconfiglibdir)/$$f'"; \
     911          rm -f "$(DESTDIR)$(pkgconfiglibdir)/$$f"; \
     912        done
     913install-thirdpartyincludeHEADERS: $(thirdpartyinclude_HEADERS)
     914        @$(NORMAL_INSTALL)
     915        test -z "$(thirdpartyincludedir)" || $(mkdir_p) "$(DESTDIR)$(thirdpartyincludedir)"
     916        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     917          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
     918          f=$(am__strip_dir) \
     919          echo " $(thirdpartyincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     920          $(thirdpartyincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     921        done
     922
     923uninstall-thirdpartyincludeHEADERS:
     924        @$(NORMAL_UNINSTALL)
     925        @list='$(thirdpartyinclude_HEADERS)'; for p in $$list; do \
     926          f=$(am__strip_dir) \
     927          echo " rm -f '$(DESTDIR)$(thirdpartyincludedir)/$$f'"; \
     928          rm -f "$(DESTDIR)$(thirdpartyincludedir)/$$f"; \
     929        done
    822930
    823931ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    872980        $(am__remove_distdir)
    873981        mkdir $(distdir)
    874         $(mkdir_p) $(distdir)/../.. $(distdir)/../../BuildTools
     982        $(mkdir_p) $(distdir)/$(METISDIR)/Lib $(distdir)/. $(distdir)/../.. $(distdir)/../../BuildTools
    875983        @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    876984        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     
    9981106check-am: all-am
    9991107check: check-am
    1000 all-am: Makefile $(LTLIBRARIES)
     1108all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
    10011109installdirs:
     1110        for dir in "$(DESTDIR)$(thirdpartylibdir)" "$(DESTDIR)$(addlibsdir)" "$(DESTDIR)$(pkgconfiglibdir)" "$(DESTDIR)$(thirdpartyincludedir)"; do \
     1111          test -z "$$dir" || $(mkdir_p) "$$dir"; \
     1112        done
    10021113install: install-am
    10031114install-exec: install-exec-am
     
    10171128
    10181129clean-generic:
     1130        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
    10191131
    10201132distclean-generic:
     
    10271139clean: clean-am
    10281140
    1029 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
     1141clean-am: clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
    10301142        mostlyclean-am
    10311143
     
    10471159info-am:
    10481160
    1049 install-data-am:
     1161install-data-am: install-addlibsDATA install-pkgconfiglibDATA \
     1162        install-thirdpartyincludeHEADERS \
     1163        install-thirdpartylibLTLIBRARIES
    10501164
    10511165install-exec-am:
     
    10771191ps-am:
    10781192
    1079 uninstall-am: uninstall-info-am
     1193uninstall-am: uninstall-addlibsDATA uninstall-info-am \
     1194        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     1195        uninstall-thirdpartylibLTLIBRARIES
    10801196
    10811197.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
    1082         clean-generic clean-libtool clean-noinstLTLIBRARIES ctags dist \
    1083         dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
    1084         distcheck distclean distclean-compile distclean-generic \
    1085         distclean-libtool distclean-tags distcleancheck distdir \
    1086         distuninstallcheck dvi dvi-am html html-am info info-am \
    1087         install install-am install-data install-data-am install-exec \
    1088         install-exec-am install-info install-info-am install-man \
    1089         install-strip installcheck installcheck-am installdirs \
    1090         maintainer-clean maintainer-clean-generic mostlyclean \
    1091         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    1092         pdf pdf-am ps ps-am tags uninstall uninstall-am \
    1093         uninstall-info-am
    1094 
     1198        clean-generic clean-libtool clean-thirdpartylibLTLIBRARIES \
     1199        ctags dist dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ \
     1200        dist-zip distcheck distclean distclean-compile \
     1201        distclean-generic distclean-libtool distclean-tags \
     1202        distcleancheck distdir distuninstallcheck dvi dvi-am html \
     1203        html-am info info-am install install-addlibsDATA install-am \
     1204        install-data install-data-am install-exec install-exec-am \
     1205        install-info install-info-am install-man \
     1206        install-pkgconfiglibDATA install-strip \
     1207        install-thirdpartyincludeHEADERS \
     1208        install-thirdpartylibLTLIBRARIES installcheck installcheck-am \
     1209        installdirs maintainer-clean maintainer-clean-generic \
     1210        mostlyclean mostlyclean-compile mostlyclean-generic \
     1211        mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
     1212        uninstall-addlibsDATA uninstall-am uninstall-info-am \
     1213        uninstall-pkgconfiglibDATA uninstall-thirdpartyincludeHEADERS \
     1214        uninstall-thirdpartylibLTLIBRARIES
     1215
     1216
     1217@COIN_HAS_PKGCONFIG_TRUE@metis_addlibs.txt : coinmetis.pc
     1218@COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinmetis > metis_addlibs.txt
    10951219
    10961220install-doc: $(DocFiles)
  • ThirdParty/Metis/trunk/configure

    r1411 r1548  
    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 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_METIS_TRUE COIN_HAS_METIS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE METISDIR 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 have_svnversion _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 MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS METISDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    950950ac_cv_env_MPICC_set=${MPICC+set}
    951951ac_cv_env_MPICC_value=$MPICC
     952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     953ac_env_PKG_CONFIG_value=$PKG_CONFIG
     954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
     955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
    952956ac_env_CPP_set=${CPP+set}
    953957ac_env_CPP_value=$CPP
     
    10621066                          icl/link). Default when mentioned: mingw. Default
    10631067                          when not mentioned: disabled.
     1068  --enable-pkg-config     use pkg-config if available (default is yes)
    10641069  --enable-static[=PKGS]
    10651070                          build static libraries [default=no]
     
    10791084  --with-metis-verbosity specify the debug verbosity level for project Metis
    10801085  --with-metis-checklevel specify the sanity check level for project Metis
     1086  --with-coin-instdir     prefix of installation directory for precompiled
     1087                          COIN packages
    10811088  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    10821089  --with-pic              try to use only PIC/non-PIC objects [default=use
     
    10841091  --with-tags[=TAGS]
    10851092                          include additional configurations [automatic]
    1086   --with-metis            specify flags to link with METIS library
    10871093
    10881094Some influential environment variables:
     
    10981104              headers in a nonstandard directory <include dir>
    10991105  MPICC       C MPI Compiler
     1106  PKG_CONFIG  path to pkg-config utility
    11001107  CPP         C preprocessor
    11011108  CXX         C++ compiler command
     
    15971604fi
    15981605
     1606
     1607#Set the project's version number
     1608if test "x" != x; then
     1609
     1610cat >>confdefs.h <<_ACEOF
     1611#define _VERSION "$PACKAGE_VERSION"
     1612_ACEOF
     1613
     1614fi
     1615
     1616#Set the project's SVN revision number
     1617# Extract the first word of "svnversion", so it can be a program name with args.
     1618set dummy svnversion; ac_word=$2
     1619echo "$as_me:$LINENO: checking for $ac_word" >&5
     1620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1621if test "${ac_cv_prog_have_svnversion+set}" = set; then
     1622  echo $ECHO_N "(cached) $ECHO_C" >&6
     1623else
     1624  if test -n "$have_svnversion"; then
     1625  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
     1626else
     1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1628for as_dir in $PATH
     1629do
     1630  IFS=$as_save_IFS
     1631  test -z "$as_dir" && as_dir=.
     1632  for ac_exec_ext in '' $ac_executable_extensions; do
     1633  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1634    ac_cv_prog_have_svnversion="yes"
     1635    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1636    break 2
     1637  fi
     1638done
     1639done
     1640
     1641  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
     1642fi
     1643fi
     1644have_svnversion=$ac_cv_prog_have_svnversion
     1645if test -n "$have_svnversion"; then
     1646  echo "$as_me:$LINENO: result: $have_svnversion" >&5
     1647echo "${ECHO_T}$have_svnversion" >&6
     1648else
     1649  echo "$as_me:$LINENO: result: no" >&5
     1650echo "${ECHO_T}no" >&6
     1651fi
     1652
     1653if test "x$have_svnversion" = xyes && test "x" != x; then
     1654
     1655  _SVN_REV=`cd $srcdir/$coin_has_ ; svnversion`
     1656  if test $_SVN_REV != exported; then
     1657
     1658cat >>confdefs.h <<_ACEOF
     1659#define _SVN_REV "$_SVN_REV"
     1660_ACEOF
     1661
     1662  fi
     1663fi
    15991664
    16001665# We set the following variable so that we know later in AC_COIN_FINALIZE
     
    30943159
    30953160
     3161# Check if pkg-config is available (to setup addlibs file)
     3162
     3163
     3164# Check whether --enable-pkg-config or --disable-pkg-config was given.
     3165if test "${enable_pkg_config+set}" = set; then
     3166  enableval="$enable_pkg_config"
     3167  use_pkgconfig="$enableval"
     3168else
     3169  use_pkgconfig=yes
     3170fi;
     3171
     3172if test $use_pkgconfig = yes ; then
     3173  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
     3174    if test -n "$ac_tool_prefix"; then
     3175  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
     3176set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
     3177echo "$as_me:$LINENO: checking for $ac_word" >&5
     3178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3179if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
     3180  echo $ECHO_N "(cached) $ECHO_C" >&6
     3181else
     3182  case $PKG_CONFIG in
     3183  [\\/]* | ?:[\\/]*)
     3184  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
     3185  ;;
     3186  *)
     3187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3188for as_dir in $PATH
     3189do
     3190  IFS=$as_save_IFS
     3191  test -z "$as_dir" && as_dir=.
     3192  for ac_exec_ext in '' $ac_executable_extensions; do
     3193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3194    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     3195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3196    break 2
     3197  fi
     3198done
     3199done
     3200
     3201  ;;
     3202esac
     3203fi
     3204PKG_CONFIG=$ac_cv_path_PKG_CONFIG
     3205
     3206if test -n "$PKG_CONFIG"; then
     3207  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
     3208echo "${ECHO_T}$PKG_CONFIG" >&6
     3209else
     3210  echo "$as_me:$LINENO: result: no" >&5
     3211echo "${ECHO_T}no" >&6
     3212fi
     3213
     3214fi
     3215if test -z "$ac_cv_path_PKG_CONFIG"; then
     3216  ac_pt_PKG_CONFIG=$PKG_CONFIG
     3217  # Extract the first word of "pkg-config", so it can be a program name with args.
     3218set dummy pkg-config; ac_word=$2
     3219echo "$as_me:$LINENO: checking for $ac_word" >&5
     3220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3221if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
     3222  echo $ECHO_N "(cached) $ECHO_C" >&6
     3223else
     3224  case $ac_pt_PKG_CONFIG in
     3225  [\\/]* | ?:[\\/]*)
     3226  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
     3227  ;;
     3228  *)
     3229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3230for as_dir in $PATH
     3231do
     3232  IFS=$as_save_IFS
     3233  test -z "$as_dir" && as_dir=.
     3234  for ac_exec_ext in '' $ac_executable_extensions; do
     3235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3236    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
     3237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3238    break 2
     3239  fi
     3240done
     3241done
     3242
     3243  ;;
     3244esac
     3245fi
     3246ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
     3247
     3248if test -n "$ac_pt_PKG_CONFIG"; then
     3249  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
     3250echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
     3251else
     3252  echo "$as_me:$LINENO: result: no" >&5
     3253echo "${ECHO_T}no" >&6
     3254fi
     3255
     3256  PKG_CONFIG=$ac_pt_PKG_CONFIG
     3257else
     3258  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
     3259fi
     3260
     3261  fi
     3262  if test -n "$PKG_CONFIG"; then
     3263    _pkg_min_version=0.9.0
     3264    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
     3265echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     3266    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     3267      echo "$as_me:$LINENO: result: yes" >&5
     3268echo "${ECHO_T}yes" >&6
     3269    else
     3270      echo "$as_me:$LINENO: result: no" >&5
     3271echo "${ECHO_T}no" >&6
     3272      PKG_CONFIG=""
     3273    fi
     3274  fi
     3275
     3276  # check if pkg-config supports the short-errors flag
     3277  if test -n "$PKG_CONFIG" && \
     3278    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     3279    pkg_short_errors=" --short-errors "
     3280  else
     3281    pkg_short_errors=""
     3282  fi
     3283fi
     3284
     3285
     3286
     3287if test -n "$PKG_CONFIG"; then
     3288  COIN_HAS_PKGCONFIG_TRUE=
     3289  COIN_HAS_PKGCONFIG_FALSE='#'
     3290else
     3291  COIN_HAS_PKGCONFIG_TRUE='#'
     3292  COIN_HAS_PKGCONFIG_FALSE=
     3293fi
     3294
     3295
     3296
     3297# assemble search path for pkg-config, if we are in a project setup
     3298if test x$coin_projectdir = xyes ; then
     3299  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     3300
     3301  # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
     3302  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
     3303  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
     3304  if test -d "${prefix}"; then
     3305    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     3306  fi
     3307
     3308
     3309# Check whether --with-coin-instdir or --without-coin-instdir was given.
     3310if test "${with_coin_instdir+set}" = set; then
     3311  withval="$with_coin_instdir"
     3312  if test -d "$withval"; then : ; else
     3313       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
     3314echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
     3315   { (exit 1); exit 1; }; }
     3316     fi
     3317     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     3318
     3319fi;
     3320
     3321  # in a classic setup, we want to find uninstalled projects
     3322  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
     3323  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
     3324  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
     3325  if test -e ../coin_subdirs.txt ; then
     3326    for i in `cat ../coin_subdirs.txt` ; do
     3327      if test -d ../$i ; then
     3328        COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     3329      fi
     3330    done
     3331  fi
     3332
     3333  if test -e ../../coin_subdirs.txt ; then
     3334    for i in `cat ../../coin_subdirs.txt` ; do
     3335      if test -d ../../$i ; then
     3336        COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
     3337      fi
     3338    done
     3339  fi
     3340
     3341
     3342fi
     3343
     3344
     3345
    30963346# Initialize automake
    30973347{
     
    47274977*-*-irix6*)
    47284978  # Find out which ABI we are using.
    4729   echo '#line 4729 "configure"' > conftest.$ac_ext
     4979  echo '#line 4979 "configure"' > conftest.$ac_ext
    47304980  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    47314981  (eval $ac_compile) 2>&5
     
    63266576
    63276577# Provide some information about the compiler.
    6328 echo "$as_me:6328:" \
     6578echo "$as_me:6578:" \
    63296579     "checking for Fortran 77 compiler version" >&5
    63306580ac_compiler=`set X $ac_compile; echo $2`
     
    73937643   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    73947644   -e 's:$: $lt_compiler_flag:'`
    7395    (eval echo "\"\$as_me:7395: $lt_compile\"" >&5)
     7645   (eval echo "\"\$as_me:7645: $lt_compile\"" >&5)
    73967646   (eval "$lt_compile" 2>conftest.err)
    73977647   ac_status=$?
    73987648   cat conftest.err >&5
    7399    echo "$as_me:7399: \$? = $ac_status" >&5
     7649   echo "$as_me:7649: \$? = $ac_status" >&5
    74007650   if (exit $ac_status) && test -s "$ac_outfile"; then
    74017651     # The compiler can only warn and ignore the option if not recognized
     
    76617911   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    76627912   -e 's:$: $lt_compiler_flag:'`
    7663    (eval echo "\"\$as_me:7663: $lt_compile\"" >&5)
     7913   (eval echo "\"\$as_me:7913: $lt_compile\"" >&5)
    76647914   (eval "$lt_compile" 2>conftest.err)
    76657915   ac_status=$?
    76667916   cat conftest.err >&5
    7667    echo "$as_me:7667: \$? = $ac_status" >&5
     7917   echo "$as_me:7917: \$? = $ac_status" >&5
    76687918   if (exit $ac_status) && test -s "$ac_outfile"; then
    76697919     # The compiler can only warn and ignore the option if not recognized
     
    77658015   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77668016   -e 's:$: $lt_compiler_flag:'`
    7767    (eval echo "\"\$as_me:7767: $lt_compile\"" >&5)
     8017   (eval echo "\"\$as_me:8017: $lt_compile\"" >&5)
    77688018   (eval "$lt_compile" 2>out/conftest.err)
    77698019   ac_status=$?
    77708020   cat out/conftest.err >&5
    7771    echo "$as_me:7771: \$? = $ac_status" >&5
     8021   echo "$as_me:8021: \$? = $ac_status" >&5
    77728022   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    77738023   then
     
    1011010360  lt_status=$lt_dlunknown
    1011110361  cat > conftest.$ac_ext <<EOF
    10112 #line 10112 "configure"
     10362#line 10362 "configure"
    1011310363#include "confdefs.h"
    1011410364
     
    1021010460  lt_status=$lt_dlunknown
    1021110461  cat > conftest.$ac_ext <<EOF
    10212 #line 10212 "configure"
     10462#line 10462 "configure"
    1021310463#include "confdefs.h"
    1021410464
     
    1255412804   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1255512805   -e 's:$: $lt_compiler_flag:'`
    12556    (eval echo "\"\$as_me:12556: $lt_compile\"" >&5)
     12806   (eval echo "\"\$as_me:12806: $lt_compile\"" >&5)
    1255712807   (eval "$lt_compile" 2>conftest.err)
    1255812808   ac_status=$?
    1255912809   cat conftest.err >&5
    12560    echo "$as_me:12560: \$? = $ac_status" >&5
     12810   echo "$as_me:12810: \$? = $ac_status" >&5
    1256112811   if (exit $ac_status) && test -s "$ac_outfile"; then
    1256212812     # The compiler can only warn and ignore the option if not recognized
     
    1265812908   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1265912909   -e 's:$: $lt_compiler_flag:'`
    12660    (eval echo "\"\$as_me:12660: $lt_compile\"" >&5)
     12910   (eval echo "\"\$as_me:12910: $lt_compile\"" >&5)
    1266112911   (eval "$lt_compile" 2>out/conftest.err)
    1266212912   ac_status=$?
    1266312913   cat out/conftest.err >&5
    12664    echo "$as_me:12664: \$? = $ac_status" >&5
     12914   echo "$as_me:12914: \$? = $ac_status" >&5
    1266512915   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1266612916   then
     
    1422814478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1422914479   -e 's:$: $lt_compiler_flag:'`
    14230    (eval echo "\"\$as_me:14230: $lt_compile\"" >&5)
     14480   (eval echo "\"\$as_me:14480: $lt_compile\"" >&5)
    1423114481   (eval "$lt_compile" 2>conftest.err)
    1423214482   ac_status=$?
    1423314483   cat conftest.err >&5
    14234    echo "$as_me:14234: \$? = $ac_status" >&5
     14484   echo "$as_me:14484: \$? = $ac_status" >&5
    1423514485   if (exit $ac_status) && test -s "$ac_outfile"; then
    1423614486     # The compiler can only warn and ignore the option if not recognized
     
    1433214582   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1433314583   -e 's:$: $lt_compiler_flag:'`
    14334    (eval echo "\"\$as_me:14334: $lt_compile\"" >&5)
     14584   (eval echo "\"\$as_me:14584: $lt_compile\"" >&5)
    1433514585   (eval "$lt_compile" 2>out/conftest.err)
    1433614586   ac_status=$?
    1433714587   cat out/conftest.err >&5
    14338    echo "$as_me:14338: \$? = $ac_status" >&5
     14588   echo "$as_me:14588: \$? = $ac_status" >&5
    1433914589   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1434014590   then
     
    1653916789   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1654016790   -e 's:$: $lt_compiler_flag:'`
    16541    (eval echo "\"\$as_me:16541: $lt_compile\"" >&5)
     16791   (eval echo "\"\$as_me:16791: $lt_compile\"" >&5)
    1654216792   (eval "$lt_compile" 2>conftest.err)
    1654316793   ac_status=$?
    1654416794   cat conftest.err >&5
    16545    echo "$as_me:16545: \$? = $ac_status" >&5
     16795   echo "$as_me:16795: \$? = $ac_status" >&5
    1654616796   if (exit $ac_status) && test -s "$ac_outfile"; then
    1654716797     # The compiler can only warn and ignore the option if not recognized
     
    1680717057   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1680817058   -e 's:$: $lt_compiler_flag:'`
    16809    (eval echo "\"\$as_me:16809: $lt_compile\"" >&5)
     17059   (eval echo "\"\$as_me:17059: $lt_compile\"" >&5)
    1681017060   (eval "$lt_compile" 2>conftest.err)
    1681117061   ac_status=$?
    1681217062   cat conftest.err >&5
    16813    echo "$as_me:16813: \$? = $ac_status" >&5
     17063   echo "$as_me:17063: \$? = $ac_status" >&5
    1681417064   if (exit $ac_status) && test -s "$ac_outfile"; then
    1681517065     # The compiler can only warn and ignore the option if not recognized
     
    1691117161   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1691217162   -e 's:$: $lt_compiler_flag:'`
    16913    (eval echo "\"\$as_me:16913: $lt_compile\"" >&5)
     17163   (eval echo "\"\$as_me:17163: $lt_compile\"" >&5)
    1691417164   (eval "$lt_compile" 2>out/conftest.err)
    1691517165   ac_status=$?
    1691617166   cat out/conftest.err >&5
    16917    echo "$as_me:16917: \$? = $ac_status" >&5
     17167   echo "$as_me:17167: \$? = $ac_status" >&5
    1691817168   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1691917169   then
     
    1981320063}
    1981420064
    19815 # ## Check if Metis is already provided by user
    19816 
    19817 case "$PACKAGE_NAME" in
    19818   ThirdParty*)
    19819     coin_metisobjdir=../Metis
    19820     ;;
    19821   *)
    19822     coin_metisobjdir=../ThirdParty/Metis
    19823     ;;
    19824 esac
    19825 
    19826 MAKEOKFILE=.MakeOk
    19827 
    19828 #check if user provides a METIS library (that works)
    19829 ac_ext=c
    19830 ac_cpp='$CPP $CPPFLAGS'
    19831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    19832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    19833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    19834 
    19835 
    19836 # Check whether --with-metis or --without-metis was given.
    19837 if test "${with_metis+set}" = set; then
    19838   withval="$with_metis"
    19839   METISLIB="$withval"; coin_has_metis=true
    19840 else
    19841   coin_has_metis=no
    19842 fi;
    19843 
    19844 if test $coin_has_metis = true; then
    19845   coin_save_LIBS="$LIBS"
    19846   LIBS="$METISLIB $ADDLIBS"
    19847   echo "$as_me:$LINENO: checking whether symbol metis_nodend is available with " >&5
    19848 echo $ECHO_N "checking whether symbol metis_nodend is available with ... $ECHO_C" >&6
    19849   cat >conftest.$ac_ext <<_ACEOF
    19850 /* confdefs.h.  */
    19851 _ACEOF
    19852 cat confdefs.h >>conftest.$ac_ext
    19853 cat >>conftest.$ac_ext <<_ACEOF
    19854 /* end confdefs.h.  */
    19855 
    19856 int
    19857 main ()
    19858 {
    19859 metis_nodend()
    19860   ;
    19861   return 0;
    19862 }
    19863 _ACEOF
    19864 rm -f conftest.$ac_objext conftest$ac_exeext
    19865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19866   (eval $ac_link) 2>conftest.er1
    19867   ac_status=$?
    19868   grep -v '^ *+' conftest.er1 >conftest.err
    19869   rm -f conftest.er1
    19870   cat conftest.err >&5
    19871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19872   (exit $ac_status); } &&
    19873          { ac_try='test -z "$ac_c_werror_flag"
    19874                          || test ! -s conftest.err'
    19875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19876   (eval $ac_try) 2>&5
    19877   ac_status=$?
    19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19879   (exit $ac_status); }; } &&
    19880          { ac_try='test -s conftest$ac_exeext'
    19881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19882   (eval $ac_try) 2>&5
    19883   ac_status=$?
    19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19885   (exit $ac_status); }; }; then
    19886   echo "$as_me:$LINENO: result: yes" >&5
    19887 echo "${ECHO_T}yes" >&6
    19888 else
    19889   echo "$as_me: failed program was:" >&5
    19890 sed 's/^/| /' conftest.$ac_ext >&5
    19891 
    19892 echo "$as_me:$LINENO: result: no" >&5
    19893 echo "${ECHO_T}no" >&6
    19894       { { echo "$as_me:$LINENO: error: User-supplied METIS library does not work" >&5
    19895 echo "$as_me: error: User-supplied METIS library does not work" >&2;}
    19896    { (exit 1); exit 1; }; }
    19897 fi
    19898 rm -f conftest.err conftest.$ac_objext \
    19899       conftest$ac_exeext conftest.$ac_ext
    19900   LIBS="$coin_save_LIBS"
    19901 fi
    19902 ac_ext=c
    19903 ac_cpp='$CPP $CPPFLAGS'
    19904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    19905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    19906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    19907 
    19908 
    19909 if test "$coin_has_metis" = "true"; then  # user provided metis library
    19910   use_metis=yes
    19911   coin_has_metis=yes
    19912 
    19913   ADDLIBS="$METISLIB $ADDLIBS"
    19914 
    19915 else # no user provided library, so we try to build our own
    19916   use_metis=BUILD
    19917 
    19918   # Check if the METIS' ThirdParty project has been configured
    19919   if test "$PACKAGE_NAME" != ThirdPartyMetis; then
    19920     if test -r $coin_metisobjdir/.MakeOk; then
    19921       use_metis=BUILD
    19922     else
    19923       use_metis=
    19924     fi
    19925   fi
    19926 
    19927   if test x"$use_metis" != x; then
    19928     coin_has_metis=yes
    19929   else
    19930     coin_has_metis=no
    19931   fi
    19932   echo "$as_me:$LINENO: checking whether METIS is available" >&5
    19933 echo $ECHO_N "checking whether METIS is available... $ECHO_C" >&6
    19934   echo "$as_me:$LINENO: result: $coin_has_metis" >&5
    19935 echo "${ECHO_T}$coin_has_metis" >&6
    19936 fi
    19937 
    19938 
    19939 
    19940 if test $coin_has_metis = yes; then
    19941   COIN_HAS_METIS_TRUE=
    19942   COIN_HAS_METIS_FALSE='#'
    19943 else
    19944   COIN_HAS_METIS_TRUE='#'
    19945   COIN_HAS_METIS_FALSE=
    19946 fi
    19947 
    19948 if test $coin_has_metis = yes; then
    19949 
    19950 cat >>confdefs.h <<\_ACEOF
    19951 #define COIN_HAS_METIS 1
    19952 _ACEOF
    19953 
    19954 fi
    19955 
    19956 
    19957 
    19958 rm -f $MAKEOKFILE
    19959 if test $coin_has_metis = yes && test "$use_metis" != BUILD; then
    19960   { echo "$as_me:$LINENO: The Metis sources don't need to be compiled" >&5
    19961 echo "$as_me: The Metis sources don't need to be compiled" >&6;}
    19962   MAKEOKFILE=
    19963 else
    19964   touch $MAKEOKFILE
    19965 fi
    19966 
    19967 
    19968 
    19969 if test -z "$MAKEOKFILE"; then
    19970   SKIPMAKE_TRUE=
    19971   SKIPMAKE_FALSE='#'
    19972 else
    19973   SKIPMAKE_TRUE='#'
    19974   SKIPMAKE_FALSE=
    19975 fi
    19976 
    19977 
    1997820065# We need to create a dummy header file for Windows
    1997920066echo "$as_me:$LINENO: checking whether we need to create a dummy strings.h file" >&5
     
    2008720174
    2008820175
    20089 
    2009020176METISDIR=metis-4.0
    2009120177
    2009220178
    20093           ac_config_files="$ac_config_files Makefile"
     20179                              ac_config_files="$ac_config_files Makefile coinmetis.pc coinmetis-uninstalled.pc"
    2009420180
    2009520181
     
    2014920235    done
    2015020236    subdirs="$new_subdirs"
     20237  fi
     20238
     20239  # need to come before AC_OUTPUT
     20240  if test x$coin_projectdir != xyes; then
     20241    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
     20242    echo $coin_subdirs > coin_subdirs.txt
     20243  else
     20244    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
     20245    ABSBUILDDIR="`pwd`"
     20246
    2015120247  fi
    2015220248
     
    2028020376   { (exit 1); exit 1; }; }
    2028120377fi
     20378if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
     20379  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     20380Usually this means the macro was only invoked conditionally." >&5
     20381echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     20382Usually this means the macro was only invoked conditionally." >&2;}
     20383   { (exit 1); exit 1; }; }
     20384fi
    2028220385if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
    2028320386  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
     
    2031220415Usually this means the macro was only invoked conditionally." >&5
    2031320416echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
    20314 Usually this means the macro was only invoked conditionally." >&2;}
    20315    { (exit 1); exit 1; }; }
    20316 fi
    20317 if test -z "${COIN_HAS_METIS_TRUE}" && test -z "${COIN_HAS_METIS_FALSE}"; then
    20318   { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_METIS\" was never defined.
    20319 Usually this means the macro was only invoked conditionally." >&5
    20320 echo "$as_me: error: conditional \"COIN_HAS_METIS\" was never defined.
    20321 Usually this means the macro was only invoked conditionally." >&2;}
    20322    { (exit 1); exit 1; }; }
    20323 fi
    20324 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then
    20325   { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined.
    20326 Usually this means the macro was only invoked conditionally." >&5
    20327 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined.
    2032820417Usually this means the macro was only invoked conditionally." >&2;}
    2032920418   { (exit 1); exit 1; }; }
     
    2076920858  # Handling of arguments.
    2077020859  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     20860  "coinmetis.pc" ) CONFIG_FILES="$CONFIG_FILES coinmetis.pc" ;;
     20861  "coinmetis-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinmetis-uninstalled.pc" ;;
    2077120862  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    2077220863  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
     
    2085820949s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
    2085920950s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
     20951s,@have_svnversion@,$have_svnversion,;t t
     20952s,@_SVN_REV@,$_SVN_REV,;t t
    2086020953s,@build@,$build,;t t
    2086120954s,@build_cpu@,$build_cpu,;t t
     
    2087520968s,@OBJEXT@,$OBJEXT,;t t
    2087620969s,@MPICC@,$MPICC,;t t
     20970s,@PKG_CONFIG@,$PKG_CONFIG,;t t
     20971s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
     20972s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
     20973s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
     20974s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
    2087720975s,@EGREP@,$EGREP,;t t
    2087820976s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
     
    2094821046s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
    2094921047s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
    20950 s,@COIN_HAS_METIS_TRUE@,$COIN_HAS_METIS_TRUE,;t t
    20951 s,@COIN_HAS_METIS_FALSE@,$COIN_HAS_METIS_FALSE,;t t
    20952 s,@MAKEOKFILE@,$MAKEOKFILE,;t t
    20953 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t
    20954 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t
    2095521048s,@METISDIR@,$METISDIR,;t t
    2095621049s,@LIBEXT@,$LIBEXT,;t t
    2095721050s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
     21051s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
    2095821052s,@LIBOBJS@,$LIBOBJS,;t t
    2095921053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  • ThirdParty/Metis/trunk/configure.ac

    r1411 r1548  
    5151AC_COIN_PROG_CC
    5252
     53# Check if pkg-config is available (to setup addlibs file)
     54AC_COIN_HAS_PKGCONFIG
     55
    5356# Initialize automake
    5457AC_COIN_INIT_AUTO_TOOLS
    55 
    56 # ## Check if Metis is already provided by user
    57 AC_COIN_HAS_METIS
    58 
    59 rm -f $MAKEOKFILE
    60 if test $coin_has_metis = yes && test "$use_metis" != BUILD; then
    61   AC_MSG_NOTICE([The Metis sources don't need to be compiled])
    62   MAKEOKFILE=
    63 else
    64   touch $MAKEOKFILE
    65 fi
    66 AC_SUBST(MAKEOKFILE)
    67 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
    6858
    6959# We need to create a dummy header file for Windows
     
    7969# By defining __VC__, we can make Metis use an alternative function
    8070AC_CHECK_FUNC(drand48,,[CFLAGS="$CFLAGS -D__VC__"])
    81      
    8271
    8372METISDIR=metis-4.0
    8473AC_SUBST(METISDIR)
    8574
    86 AC_CONFIG_FILES([Makefile])
     75AC_CONFIG_FILES([Makefile coinmetis.pc coinmetis-uninstalled.pc])
    8776
    8877AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.