source: git/gfanlib/configure.ac @ 11d225

spielwiese
Last change on this file since 11d225 was aa6c9cc, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Fix BS problem of gfanlib handling
  • Property mode set to 100755
File size: 1.9 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([yes])])
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(4.0,,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 cddlib/setoper.h])
42if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no -a "$ac_cv_header_cddlib_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
49if test "x$ENABLE_GFANLIB" = xyes; then
50if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no -a "$ac_cv_header_cddlib_setoper_h" == no
51then
52        exit 0
53fi
54fi
55
56# Checks for typedefs, structures, and compiler characteristics.
57AC_C_INLINE
58
59
60#AC_MSG_RESULT($ac_cv_singuname)
61#if test "$ac_cv_singuname" = unknown; then
62#  AC_MSG_WARN(Unknown architecture: Check singuname.sh)
63#  ac_cv_singuname="unknown"
64#fi
65#AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname")
66#SINGUNAME=$ac_cv_singuname
67#AC_SUBST(SINGUNAME)
68
69AC_CONFIG_FILES([Makefile])
70AC_CONFIG_HEADERS([config.h])
71AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.