[def863] | 1 | # -*- Autoconf -*- |
---|
| 2 | # Process this file with autoconf to produce a configure script. |
---|
| 3 | |
---|
| 4 | AC_PREREQ([2.63]) |
---|
[26b713] | 5 | AC_INIT([libgfan], [0.1], [ren@mathematik.uni-kl.de]) |
---|
| 6 | AC_CONFIG_MACRO_DIR([../m4]) |
---|
[def863] | 7 | AC_CONFIG_SRCDIR([gfanlib.h]) |
---|
| 8 | #AC_CONFIG_HEADERS([config.h]) |
---|
| 9 | |
---|
[26b713] | 10 | AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules |
---|
[25761d] | 11 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
---|
[26b713] | 12 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
---|
| 13 | |
---|
[ea5f3f6] | 14 | AM_MAINTAINER_MODE |
---|
| 15 | |
---|
| 16 | SING_RESET_FLAGS() |
---|
| 17 | SING_CHECK_SET_ARGS() |
---|
| 18 | |
---|
[def863] | 19 | # Checks for programs. |
---|
[ea5f3f6] | 20 | # AC_PROG_CC |
---|
| 21 | # AC_PROG_CXX |
---|
[def863] | 22 | AC_PROG_LN_S |
---|
| 23 | #AC_PROG_INSTALL |
---|
| 24 | |
---|
| 25 | # Checks for libraries. |
---|
| 26 | |
---|
[26b713] | 27 | LT_INIT |
---|
| 28 | |
---|
[def863] | 29 | # Checks for header files. |
---|
| 30 | AC_HEADER_STDC |
---|
[5417ff] | 31 | |
---|
| 32 | LB_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)])) |
---|
| 33 | SING_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 |
---|
[2e473ad] | 41 | AC_CHECK_HEADERS([cdd/setoper.h setoper.h cddlib/setoper.h]) |
---|
| 42 | if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no -a "$ac_cv_header_cddlib_setoper_h" == no |
---|
[5417ff] | 43 | then |
---|
| 44 | AC_MSG_WARN([Error, setoper.h is missing!]) |
---|
| 45 | fi |
---|
| 46 | |
---|
[888b457] | 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 | #]) |
---|
[def863] | 52 | |
---|
[888b457] | 53 | if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no |
---|
[def863] | 54 | then |
---|
[5417ff] | 55 | AC_MSG_WARN([Error, cdd.h is missing!]) |
---|
[def863] | 56 | fi |
---|
| 57 | |
---|
[5417ff] | 58 | if test "x$ENABLE_GFANLIB" = xyes; then |
---|
[2e473ad] | 59 | if test "$ac_cv_header_setoper_h" == no -a "$ac_cv_header_cdd_setoper_h" == no -a "$ac_cv_header_cddlib_setoper_h" == no |
---|
[def863] | 60 | then |
---|
| 61 | exit 1 |
---|
| 62 | fi |
---|
[888b457] | 63 | if test "$ac_cv_header_cdd_h" == no -a "$ac_cv_header_cdd_cdd_h" == no |
---|
[def863] | 64 | then |
---|
| 65 | exit 1 |
---|
| 66 | fi |
---|
[5417ff] | 67 | fi |
---|
[def863] | 68 | |
---|
| 69 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 70 | AC_C_INLINE |
---|
| 71 | |
---|
[26b713] | 72 | |
---|
[def863] | 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 | |
---|
| 82 | AC_CONFIG_FILES([Makefile]) |
---|
[888b457] | 83 | AC_CONFIG_HEADERS([config.h]) |
---|
[def863] | 84 | AC_OUTPUT |
---|