[go: up one dir, main page]

File: configure.ac

package info (click to toggle)
colpack 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,704 kB
  • sloc: cpp: 23,801; ansic: 1,142; makefile: 204; sh: 13
file content (77 lines) | stat: -rw-r--r-- 2,964 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/************************************************************************************
    Copyright (C) 2005-2008 Assefaw H. Gebremedhin, Arijit Tarafdar, Duc Nguyen,
    Alex Pothen

    This file is part of ColPack.

    ColPack is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.GraphColoring::GraphColoring()

    ColPack is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with ColPack.  If not, see <http://www.gnu.org/licenses/>.
************************************************************************************/

define([COLPACK_VER], [1])
define([COLPACK_SUB], [0])
define([COLPACK_LVL], [10])


AC_INIT([ColPack],[COLPACK_VER.COLPACK_SUB.COLPACK_LVL],[assefaw@eecs.wsu.edu],[ColPack],[http://cscapes.cs.purdue.edu/coloringpage/])
AC_PREREQ([2.57])
AC_CONFIG_SRCDIR([Main/ColPackHeaders.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign 1.10 no-define subdir-objects -Wall])
AM_SILENT_RULES([yes])
AC_CONFIG_HEADERS(config.h)
AC_PROG_CXX
AX_CXXFLAGS_WARN_ALL
AC_CONFIG_FILES(Makefile)
AM_PROG_AR
LT_INIT

AC_MSG_CHECKING([Build examples])
AC_ARG_ENABLE([examples],
     [AS_HELP_STRING([--enable-examples],[Build examples])],
     [AS_CASE([${enableval}],
       [yes],[examples=true],
       [no],[examples=false],
       [AC_MSG_ERROR([bad value ${enableval} for --enable-examples])])],
     [examples=false])
AM_CONDITIONAL([EXAMPLES], [test x$examples = xtrue])
AC_MSG_RESULT([$examples])

AC_MSG_CHECKING([OpenMP])
AC_ARG_ENABLE([openmp],
     [AS_HELP_STRING([--enable-openmp],[Enable OpenMP])],
     [AS_CASE([${enableval}],
       [yes],[openmp=true],
       [no],[openmp=false],
       [AC_MSG_ERROR([bad value ${enableval} for --enable-openmp])])],
     [openmp=false])
AM_CONDITIONAL([ENABLE_OPENMP], [test x$openmp = xtrue])
AC_MSG_RESULT([$openmp])

AC_OUTPUT

# echo configuration
AS_ECHO(["-----------------------------------------------------------------------------"])
AS_ECHO(["Configuration:"])
AS_ECHO([""])
AS_ECHO(["  C compiler:                       ${CC}"])
AS_ECHO(["  C++ compiler:                     ${CXX}"])
AS_ECHO(["  Linker:                           ${LD}"])
AS_ECHO(["  Source code location:             `pwd`"])
AS_ECHO(["  Install path:                     ${prefix}"])
AS_ECHO([""])
AS_ECHO(["  CFLAGS:                           ${CFLAGS}"])
AS_ECHO(["  CXXFLAGS:                         ${CXXFLAGS}"])
AS_ECHO([""])
AS_ECHO(["  Use OpenMP:                       ${openmp}"])
AS_ECHO(["  Build examples:                   ${examples}"])