1 | # -*- Autoconf -*- |
---|
2 | # Process this file with autoconf to produce a configure script. |
---|
3 | |
---|
4 | AC_PREREQ([2.63]) |
---|
5 | AC_INIT([libgfan], [0.1], [ren@mathematik.uni-kl.de]) |
---|
6 | AC_CONFIG_MACRO_DIR([../m4]) |
---|
7 | AC_CONFIG_SRCDIR([gfanlib.h]) |
---|
8 | #AC_CONFIG_HEADERS([config.h]) |
---|
9 | |
---|
10 | AM_MAINTAINER_MODE |
---|
11 | AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules |
---|
12 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) |
---|
13 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
---|
14 | |
---|
15 | # Checks for programs. |
---|
16 | AC_PROG_CC |
---|
17 | AC_PROG_CXX |
---|
18 | AC_PROG_LN_S |
---|
19 | #AC_PROG_INSTALL |
---|
20 | |
---|
21 | # Checks for libraries. |
---|
22 | |
---|
23 | LT_INIT |
---|
24 | |
---|
25 | # Checks for header files. |
---|
26 | AC_HEADER_STDC |
---|
27 | AC_CHECK_HEADERS([gmp.h]) |
---|
28 | AC_CHECK_HEADERS([setoper.h]) |
---|
29 | AC_CHECK_HEADERS([cdd.h],,, |
---|
30 | [ |
---|
31 | # include <setoper.h> |
---|
32 | ]) |
---|
33 | |
---|
34 | if test "$ac_cv_header_gmp_h" == no |
---|
35 | then |
---|
36 | AC_MSG_WARN([Error, gmp.h is missing!]) |
---|
37 | exit 1 |
---|
38 | fi |
---|
39 | |
---|
40 | if test "$ac_cv_header_cdd_h" == no |
---|
41 | then |
---|
42 | AC_MSG_WARN([Error, cdd.h is missing!]) |
---|
43 | exit 1 |
---|
44 | fi |
---|
45 | |
---|
46 | if test "$ac_cv_header_setoper_h" == no |
---|
47 | then |
---|
48 | AC_MSG_WARN([Error, setoper.h is missing!]) |
---|
49 | exit 1 |
---|
50 | fi |
---|
51 | |
---|
52 | # Checks for typedefs, structures, and compiler characteristics. |
---|
53 | AC_C_INLINE |
---|
54 | |
---|
55 | AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]), |
---|
56 | [if test "x$enableval" = "xyes"; then |
---|
57 | ENABLE_DEBUG=yes |
---|
58 | fi], ENABLE_DEBUG=no) |
---|
59 | |
---|
60 | AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes) |
---|
61 | |
---|
62 | #AC_MSG_RESULT($ac_cv_singuname) |
---|
63 | #if test "$ac_cv_singuname" = unknown; then |
---|
64 | # AC_MSG_WARN(Unknown architecture: Check singuname.sh) |
---|
65 | # ac_cv_singuname="unknown" |
---|
66 | #fi |
---|
67 | #AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname") |
---|
68 | #SINGUNAME=$ac_cv_singuname |
---|
69 | #AC_SUBST(SINGUNAME) |
---|
70 | |
---|
71 | AC_CONFIG_FILES([Makefile]) |
---|
72 | AC_OUTPUT |
---|