source: ThirdParty/FilterSQP/trunk/configure.ac @ 1548

Last change on this file since 1548 was 1548, checked in by stefan, 9 years ago

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to "Author Date Id Revision"
File size: 3.0 KB
Line 
1# Copyright (C) 2006 International Business Machines.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: configure.ac 1548 2010-05-08 13:54:35Z stefan $
6
7# Author:  Andreas Waechter            IBM    2006-04-13
8
9#############################################################################
10#                       Names and other basic things                        #
11#############################################################################
12
13AC_PREREQ(2.59)
14
15AC_INIT([ThirdPartyFilterSQP],[0.0],[http://projects.coin-or.org/BuildTools/newticket])
16
17AC_COPYRIGHT([
18Copyright 2006 International Business Machines and others.
19All Rights Reserved.
20This file is part of the open source package Coin which is distributed
21under the Common Public License.])
22
23# List one file in the package so that the configure script can test
24# whether the package is actually there
25AC_CONFIG_SRCDIR(source/src/filter.f)
26
27# Where should everything be installed by default?  Here, we want it
28# to be installed directly in 'bin', 'lib', 'include' subdirectories
29# of the directory where configure is run.  The default would be
30# /usr/local.
31AC_PREFIX_DEFAULT([`pwd`])
32
33AC_COIN_PROJECTDIR_INIT
34
35#############################################################################
36#                         Standard build tool stuff                         #
37#############################################################################
38
39# Get the system type
40AC_CANONICAL_BUILD
41
42# Check if user wants to produce debugging code
43AC_COIN_DEBUG_COMPILE(FilterSQP)
44
45# Get the name of the Fortran compiler and appropriate compiler options
46AC_COIN_PROG_F77
47
48# Get the linker flags (FLIBS) that are required for linking against this blas library
49AC_COIN_F77_WRAPPERS
50
51# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
52coin_need_flibs=yes
53
54# Check if pkg-config is available (to setup addlibs file)
55AC_COIN_HAS_PKGCONFIG
56
57# Initialize automake
58AC_COIN_INIT_AUTOMAKE
59
60# Initialize automake
61AC_COIN_INIT_AUTO_TOOLS
62
63AC_CONFIG_FILES([Makefile coinfiltersqp.pc coinfiltersqp-uninstalled.pc])
64
65AC_COIN_FINALIZE
66
67##############################################################################
68##                         LIBRARY FOR MINLP/FILTER                          #
69##############################################################################
70#
71#if test -z "$FSQPMAKEFLAGS" ; then
72#  FSQPMAKEFLAGS=
73#
74#  AC_MSG_CHECKING([whether $am_make is the GNU make])
75#  rm -rf conftest.mak
76#  ($am_make -v -f conftest.mak > conftest.grp) 2>&5
77#  if $EGREP GNU conftest.grp >&5 ; then
78#    AC_MSG_RESULT([yes])
79#    FSQPMAKEFLAGS="-j 1 $FSQPMAKEFLAGS"
80#  else
81#    AC_MSG_RESULT([no])
82#  fi
83#  rm -f conftest.mak conftest.grp
84#fi
85#
86#if test x"$AR" = x; then
87#  AR=ar
88#fi
89#if test x"$ARFLAGS" = x; then
90#  ARFLAGS=r
91#fi
92#
93#FSQPMAKEFILECMDS="sed -e 's%ar r%$AR $ARFLAGS%' makefile.u "
94#FSQPMAKEFILECMDS="$FSQPMAKEFILECMDS > makefile"
95#
96#AC_ARG_VAR(FSQPMAKEFLAGS,[Makefile flags necessary for compiling the filterSQP library])
97#AC_SUBST(FSQPMAKEFILECMDS)
98#
99#AC_CONFIG_FILES([Makefile])
100#
101#AC_COIN_FINALIZE
Note: See TracBrowser for help on using the repository browser.