[go: up one dir, main page]

File: configure.ac

package info (click to toggle)
colpack 1.0.10-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,700 kB
  • sloc: cpp: 49,807; ansic: 1,231; makefile: 419; sh: 13
file content (78 lines) | stat: -rw-r--r-- 2,757 bytes parent folder | download | duplicates (5)
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
78
/************************************************************************************
    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])],
     [case "${enableval}" in
       yes) examples=true ;;
       no)  examples=false ;;
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-examples]) ;;
     esac],[examples=false])
     AM_CONDITIONAL([EXAMPLES], [test x$examples = xtrue])

AC_MSG_CHECKING(OpenMP)
AC_ARG_ENABLE([openmp],
     [AS_HELP_STRING([--enable-openmp],[Enable OpenMP])],
     [case "${enableval}" in
       yes) openmp=true ;;
       no)  openmp=false ;;
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-openmp]) ;;
     esac],[openmp=false])
     AM_CONDITIONAL([ENABLE_OPENMP], [test x$openmp = xtrue])

AC_OUTPUT

# echo configuration
echo \
"
-----------------------------------------------------------------------------
Configuration:

  C compiler:                       ${CC}
  C++ compiler:                     ${CXX}
  Linker:                           ${LD}
  Source code location:             `pwd`
  Install path:                     ${prefix}

  CFLAGS:                           ${CFLAGS}
  CXXFLAGS:                         ${CXXFLAGS}

  Use OpenMP:                       ${openmp}
  Build examples:                   ${examples}
"