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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/trunk/configure.ac

    r1492 r1548  
    1 # Copyright (C) 2007-2008 International Business Machines.
     1# Copyright (C) 2007-2009 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    1616
    1717AC_COPYRIGHT([
    18 Copyright 2007-2008 International Business Machines and others.
     18Copyright 2007-2009 International Business Machines and others.
    1919All Rights Reserved.
    2020This file is part of the open source package Coin which is distributed
     
    5757AC_COIN_F77_WRAPPERS
    5858
     59# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
     60coin_need_flibs=yes
     61
    5962# We need to translate the result from autoconf to what MUMPS wants
    6063case "$ac_cv_f77_mangling" in
     
    9396AC_COIN_INIT_AUTO_TOOLS
    9497
    95 # Check for user-provided BLAS library, but make sure it is not added to libcoinmumps.a
    96 save_LIBS="$LIBS"
    97 AC_COIN_HAS_BLAS
    98 LIBS="$save_LIBS"
     98AC_COIN_HAS_MODULE_BLAS
     99AC_COIN_HAS_MODULE(Metis, [coinmetis >= 4.0], [], [../Metis])
    99100
    100 # Check if Metis is available
    101 AC_COIN_HAS_METIS
    102101if test "$coin_has_metis" = yes; then
    103102  MY_DEFS="$MY_DEFS -Dmetis"
     
    105104fi
    106105
    107 ## Check if Mumps is already provided by user
    108 AC_COIN_HAS_MUMPS
    109 
    110106#Mumps needs pthreads
    111107AC_CHECK_LIB([pthread],[pthread_create],[ADDLIBS="-lpthread $ADDLIBS"])
    112108
    113109# Verify that we can compile Fortran 90 code
    114 if test "$use_mumps" = BUILD; then
    115   AC_MSG_CHECKING([whether we can compile Fortran 90 code])
    116   AC_LANG_PUSH(Fortran 77)
    117   AC_COMPILE_IFELSE([        MODULE BLA
    118         DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
    119         END MODULE BLA],[can_f90=yes],[can_f90=no])
    120   AC_MSG_RESULT([$can_f90])
    121   AC_LANG_POP(Fortran 77)
    122   if test $can_f90 = no; then
    123     AC_MSG_WARN([Your Fortran compiler can't compile Fortran 90, I will not compile MUMPS])
    124     use_mumps=
    125   fi
     110AC_MSG_CHECKING([whether we can compile Fortran 90 code])
     111AC_LANG_PUSH(Fortran 77)
     112AC_COMPILE_IFELSE([        MODULE BLA
     113      DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: BLUBB
     114      END MODULE BLA],[can_f90=yes],[can_f90=no])
     115AC_MSG_RESULT([$can_f90])
     116AC_LANG_POP(Fortran 77)
     117if test $can_f90 = no; then
     118  AC_MSG_ERROR([Your Fortran compiler can't compile Fortran 90, I cannot compile MUMPS])
    126119fi
    127120
    128 rm -f $MAKEOKFILE
    129 if test $coin_has_mumps = yes && test "$use_mumps" != BUILD; then
    130   AC_MSG_NOTICE([The Mumps sources don't need to be compiled])
    131   MAKEOKFILE=
    132 else
    133   touch $MAKEOKFILE
    134 fi
    135 AC_SUBST(MAKEOKFILE)
    136 AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE")
     121MUMPSDIR=MUMPS
     122MUMPSOBJDIR=`pwd`
     123MUMPSSRCDIR=$abs_source_dir/$coin_mumpsobjdir/$MUMPSDIR
    137124
    138 MUMPSDIR=MUMPS
    139125AC_SUBST(MUMPSDIR)
     126AC_SUBST(MUMPSOBJDIR)
     127AC_SUBST(MUMPSSRCDIR)
    140128
    141129# Fix Fortran preprocessor flags
     
    156144AC_MSG_RESULT([$MY_FDEFS])
    157145
    158 AC_CONFIG_FILES([Makefile])
     146AC_CONFIG_FILES([Makefile coinmumps.pc coinmumps-uninstalled.pc])
    159147
    160148AC_COIN_FINALIZE
Note: See TracChangeset for help on using the changeset viewer.