source: git/gfanlib/configure.ac @ 7d160bb

spielwiese
Last change on this file since 7d160bb was 7d160bb, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Better compiler flags handling by BS fix: empty default compiler flags add: use optimization flags by default (incompatible with debug, see --disable-optimizationflags) add: check multiple compiler flags (debug/optimization) NOTE: some optimization flags lead to GCC crashes. NOTE: no implicit templates cannot be used due to some templated code (tgb*) :(
  • Property mode set to 100755
File size: 2.1 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.63])
5AC_INIT([libgfan], [0.1], [ren@mathematik.uni-kl.de])
6AC_CONFIG_MACRO_DIR([../m4])
7AC_CONFIG_SRCDIR([gfanlib.h])
8#AC_CONFIG_HEADERS([config.h])
9
10AM_MAINTAINER_MODE
11AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules
12m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
13m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
14
15# Checks for programs.
16AC_PROG_CC
17AC_PROG_CXX
18AC_PROG_LN_S
19#AC_PROG_INSTALL
20
21# Checks for libraries.
22
23LT_INIT
24
25# Checks for header files.
26AC_HEADER_STDC
27
28LB_CHECK_GMP(3.1.1,,AC_MSG_ERROR([Unable to find GMP on your machine: please use --with-gmp=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
29SING_CHECK_GFANLIB
30
31# AC_CHECK_HEADERS([gmp.h])
32# if test "$ac_cv_header_gmp_h" == no
33# then
34#       AC_MSG_WARN([Error, gmp.h is missing!])
35#       exit 1
36# fi
37AC_CHECK_HEADERS([cdd/setoper.h setoper.h])
38if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no
39then
40        AC_MSG_WARN([Error, setoper.h is missing!])
41fi
42
43# if setoper.h is there, assume that also cdd.h is there
44#AC_CHECK_HEADERS([cdd/cdd.h cdd.h],,,
45#[
46## include <setoper.h>
47#])
48
49if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no
50then
51        AC_MSG_WARN([Error, cdd.h is missing!])
52fi
53
54if test "x$ENABLE_GFANLIB" = xyes; then
55if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no
56then
57        exit 1
58fi
59if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no
60then
61        exit 1
62fi
63fi
64
65# Checks for typedefs, structures, and compiler characteristics.
66AC_C_INLINE
67
68SING_RESET_FLAGS()
69SING_CHECK_SET_ARGS()
70
71
72#AC_MSG_RESULT($ac_cv_singuname)
73#if test "$ac_cv_singuname" = unknown; then
74#  AC_MSG_WARN(Unknown architecture: Check singuname.sh)
75#  ac_cv_singuname="unknown"
76#fi
77#AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname")
78#SINGUNAME=$ac_cv_singuname
79#AC_SUBST(SINGUNAME)
80
81AC_CONFIG_FILES([Makefile])
82AC_CONFIG_HEADERS([config.h])
83AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.