source: git/gfanlib/configure.ac @ 99b54a

spielwiese
Last change on this file since 99b54a was ea5f3f6, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Improved BS (configuring)
  • 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_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules
11m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
12m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
13
14AM_MAINTAINER_MODE
15
16SING_RESET_FLAGS()
17SING_CHECK_SET_ARGS()
18
19# Checks for programs.
20# AC_PROG_CC
21# AC_PROG_CXX
22AC_PROG_LN_S
23#AC_PROG_INSTALL
24
25# Checks for libraries.
26
27LT_INIT
28
29# Checks for header files.
30AC_HEADER_STDC
31
32LB_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)]))
33SING_CHECK_GFANLIB
34
35# AC_CHECK_HEADERS([gmp.h])
36# if test "$ac_cv_header_gmp_h" == no
37# then
38#       AC_MSG_WARN([Error, gmp.h is missing!])
39#       exit 1
40# fi
41AC_CHECK_HEADERS([cdd/setoper.h setoper.h])
42if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no
43then
44        AC_MSG_WARN([Error, setoper.h is missing!])
45fi
46
47# if setoper.h is there, assume that also cdd.h is there
48#AC_CHECK_HEADERS([cdd/cdd.h cdd.h],,,
49#[
50## include <setoper.h>
51#])
52
53if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no
54then
55        AC_MSG_WARN([Error, cdd.h is missing!])
56fi
57
58if test "x$ENABLE_GFANLIB" = xyes; then
59if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no
60then
61        exit 1
62fi
63if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no
64then
65        exit 1
66fi
67fi
68
69# Checks for typedefs, structures, and compiler characteristics.
70AC_C_INLINE
71
72
73#AC_MSG_RESULT($ac_cv_singuname)
74#if test "$ac_cv_singuname" = unknown; then
75#  AC_MSG_WARN(Unknown architecture: Check singuname.sh)
76#  ac_cv_singuname="unknown"
77#fi
78#AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname")
79#SINGUNAME=$ac_cv_singuname
80#AC_SUBST(SINGUNAME)
81
82AC_CONFIG_FILES([Makefile])
83AC_CONFIG_HEADERS([config.h])
84AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.