[6afd7c] | 1 | dnl Process this file with autoconf to produce a configure script |
---|
| 2 | AC_INIT(Singular/matpol.h) |
---|
| 3 | AC_PREFIX_DEFAULT(`pwd`) |
---|
[a15090f] | 4 | pwd=`pwd` |
---|
| 5 | |
---|
[5e5db8] | 6 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 7 | dnl Version business -- set these here |
---|
| 8 | dnl |
---|
| 9 | # make them to env variables |
---|
| 10 | # pass them indirectly to subsequent configures |
---|
[3a342b] | 11 | SINGULAR_MAJOR_VERSION=2 |
---|
[6b86672] | 12 | SINGULAR_MINOR_VERSION=1 |
---|
[2567b5] | 13 | SINGULAR_SUB_VERSION=2 |
---|
[72541b] | 14 | VERSION_SEP="-" |
---|
[5e5db8] | 15 | SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}" |
---|
| 16 | SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}" |
---|
[2567b5] | 17 | VERSION_DATE="August 2001" |
---|
[5e5db8] | 18 | SINGULAR_ROOT_DIR=$pwd |
---|
[a15090f] | 19 | |
---|
[5e5db8] | 20 | export SINGULAR_MINOR_VERSION |
---|
| 21 | export SINGULAR_MAJOR_VERSION |
---|
| 22 | export SINGULAR_SUB_VERSION |
---|
| 23 | export SINGULAR_VERSION |
---|
| 24 | export VERSION_DATE |
---|
| 25 | export SINGULAR_ROOT_DIR |
---|
| 26 | |
---|
| 27 | dnl substitue them into the Makefiles |
---|
| 28 | AC_SUBST(SINGULAR_VERSION) |
---|
| 29 | AC_SUBST(VERSION_DATE) |
---|
| 30 | AC_SUBST(SINGULAR_SHORT_VERSION) |
---|
| 31 | AC_SUBST(SINGULAR_ROOT_DIR) |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 35 | dnl Makefiles to output |
---|
| 36 | dnl |
---|
[a15090f] | 37 | # determine Makefiles to output |
---|
[aac46c] | 38 | OUTPUT_MAKEFILES="Makefile" |
---|
| 39 | if test -d "doc"; then |
---|
| 40 | OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES doc/Makefile doc/version.texi doc/uname.texi" |
---|
| 41 | fi |
---|
[c575e9] | 42 | if test -d "rpm"; then |
---|
| 43 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile" |
---|
| 44 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/rpmrc rpm/Singular.spec" |
---|
| 45 | fi |
---|
| 46 | if test -d "modules"; then |
---|
| 47 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/Makefile" |
---|
| 48 | fi |
---|
| 49 | if test -d "modules/tools"; then |
---|
| 50 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/tools/Makefile" |
---|
| 51 | fi |
---|
[c30f2eb] | 52 | if test -d "modules/modgen"; then |
---|
| 53 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/modgen/Makefile" |
---|
| 54 | fi |
---|
[460c1e1] | 55 | if test -d "emacs"; then |
---|
| 56 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/Makefile" |
---|
| 57 | fi |
---|
[8c8a76] | 58 | if test -d "IntegerProgramming"; then |
---|
| 59 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" IntegerProgramming/Makefile" |
---|
| 60 | fi |
---|
[08b7a76] | 61 | if test -d "Plural"; then |
---|
| 62 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" Plural/Makefile" |
---|
| 63 | fi |
---|
[a15090f] | 64 | if test -d "InstallShield"; then |
---|
| 65 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" InstallShield/Makefile InstallShield/Etc/Makefile InstallShield/Cygwin/Makefile InstallShield/Singular/Makefile InstallShield/Xemacs/Makefile" |
---|
| 66 | fi |
---|
[73e491] | 67 | |
---|
[9ead31] | 68 | |
---|
[ebe3e8] | 69 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
[fe40293] | 70 | dnl determine singuname |
---|
[1bed80] | 71 | dnl |
---|
[fe40293] | 72 | AC_MSG_CHECKING(uname for singular) |
---|
| 73 | AC_CACHE_VAL(ac_cv_singuname, |
---|
| 74 | ac_cv_singuname="unknown" |
---|
| 75 | if test -r "singuname.sh"; then |
---|
| 76 | if (/bin/sh singuname.sh >/dev/null 2>&1) then |
---|
| 77 | ac_cv_singuname=`/bin/sh singuname.sh` |
---|
| 78 | fi |
---|
| 79 | fi |
---|
| 80 | ) |
---|
| 81 | AC_MSG_RESULT($ac_cv_singuname) |
---|
| 82 | if test "$ac_cv_singuname" = unknown; then |
---|
| 83 | AC_MSG_ERROR(Unknown architecture: Check singuname.sh) |
---|
| 84 | else |
---|
| 85 | SINGUNAME=$ac_cv_singuname |
---|
| 86 | AC_SUBST(SINGUNAME) |
---|
| 87 | fi |
---|
[ebe3e8] | 88 | |
---|
[c30f2eb] | 89 | SING_UNAME=`echo $SINGUNAME | tr '-' '_' ` |
---|
| 90 | AC_SUBST(SING_UNAME) |
---|
| 91 | |
---|
[1bed80] | 92 | |
---|
[6afd7c] | 93 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
[8c8a76] | 94 | dnl compiler stuff |
---|
| 95 | dnl is needed to check for libs and headers, later on |
---|
[6afd7c] | 96 | dnl |
---|
| 97 | AC_PROG_CC |
---|
| 98 | AC_PROG_CPP |
---|
[4b72f6] | 99 | AC_PROG_INSTALL |
---|
[6afd7c] | 100 | AC_AIX |
---|
[8c8a76] | 101 | AC_PROG_CXX |
---|
| 102 | |
---|
| 103 | # check whether the compiler accepts -pipe |
---|
| 104 | AC_MSG_CHECKING(whether compiler accepts -pipe) |
---|
| 105 | temp_cflags=${CFLAGS} |
---|
| 106 | CFLAGS="${CFLAGS} -pipe" |
---|
| 107 | AC_CACHE_VAL(ac_cv_cxx_have_pipe, |
---|
| 108 | AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no) |
---|
| 109 | ) |
---|
| 110 | AC_MSG_RESULT(${ac_cv_cxx_have_pipe}) |
---|
| 111 | CFLAGS=${temp_cflags} |
---|
| 112 | if test "${ac_cv_cxx_have_pipe}" != yes; then |
---|
| 113 | PIPE= |
---|
| 114 | else |
---|
| 115 | PIPE="-pipe" |
---|
| 116 | fi |
---|
| 117 | AC_SUBST(PIPE) |
---|
[6afd7c] | 118 | |
---|
[3d8259] | 119 | AC_CHECK_PROGS(PERL, perl5 perl) |
---|
[a70441f] | 120 | AC_CHECK_PROGS(UUDECODE, uudecode "uudeview -i") |
---|
[9ead31] | 121 | AC_CHECK_PROGS(GUNZIP, gunzip, ${pwd}/warn_not_found.sh gunzip) |
---|
| 122 | # don't use GZIP this breaks configure |
---|
| 123 | AC_CHECK_PROGS(MYGZIP, gzip, ${pwd}/warn_not_found.sh gzip) |
---|
[f36635] | 124 | AC_CHECK_PROG(LATEX2HTML, latex2html, latex2html) |
---|
[fe40293] | 125 | AC_PROG_LN_S |
---|
[73e491] | 126 | |
---|
[51f201] | 127 | if test -r "${pwd}/mkinstalldirs"; then |
---|
[a15090f] | 128 | MKINSTALLDIRS=${pwd}/mkinstalldirs |
---|
| 129 | AC_SUBST(MKINSTALLDIRS) |
---|
| 130 | else |
---|
| 131 | AC_MSG_ERROR(mkinstalldirs not foind in ${pwd}) |
---|
| 132 | fi |
---|
| 133 | |
---|
[64c6d1] | 134 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
[a23686] | 135 | dnl Set exec_prefix, bindir, libdir, includedir to some sensible values |
---|
[64c6d1] | 136 | dnl |
---|
| 137 | # expand prefix and pass it to subsequent configures |
---|
[73e491] | 138 | if test "x$prefix" = xNONE; then |
---|
| 139 | prefix=${ac_default_prefix} |
---|
| 140 | ac_configure_args="$ac_configure_args --prefix=${prefix}" |
---|
| 141 | fi |
---|
[64c6d1] | 142 | |
---|
| 143 | # expand exec_prefix |
---|
| 144 | if test "x$exec_prefix" = xNONE; then |
---|
[fe40293] | 145 | exec_prefix=${prefix}/${ac_cv_singuname} |
---|
| 146 | ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}" |
---|
[6afd7c] | 147 | fi |
---|
| 148 | |
---|
[64c6d1] | 149 | # expand bindir |
---|
[73e491] | 150 | if test "x$bindir" = 'x${exec_prefix}/bin'; then |
---|
[dcc635] | 151 | bindir="${exec_prefix}" |
---|
[73e491] | 152 | ac_configure_args="$ac_configure_args --bindir=${bindir}" |
---|
| 153 | fi |
---|
[64c6d1] | 154 | |
---|
| 155 | # expand libdir |
---|
[73e491] | 156 | if test "x$libdir" = 'x${exec_prefix}/lib'; then |
---|
[dcc635] | 157 | libdir="${exec_prefix}/lib" |
---|
[73e491] | 158 | ac_configure_args="$ac_configure_args --libdir=${libdir}" |
---|
| 159 | fi |
---|
[64c6d1] | 160 | |
---|
| 161 | # expand includedir |
---|
[73e491] | 162 | if test "x$includedir" = 'x${prefix}/include'; then |
---|
[dcc635] | 163 | includedir="${exec_prefix}/include" |
---|
[73e491] | 164 | ac_configure_args="$ac_configure_args --includedir=${includedir}" |
---|
| 165 | fi |
---|
| 166 | |
---|
[9bc556] | 167 | # construct name of installed Singular executable |
---|
[ef0124] | 168 | SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION} |
---|
[9bc556] | 169 | export SINGULAR |
---|
| 170 | AC_SUBST(SINGULAR) |
---|
[64c6d1] | 171 | |
---|
[73e491] | 172 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
[a23686] | 173 | dnl Check for various libraries and headers |
---|
[73e491] | 174 | dnl |
---|
| 175 | dnl After this part, the variables 'ac_<package>_ok' is 'yes' |
---|
| 176 | dnl if '<package>' is already existent on the system, otherwise |
---|
| 177 | dnl undefined. |
---|
| 178 | dnl |
---|
| 179 | |
---|
| 180 | # add -I to CPPFLAGS and -L to LDFLAGS, just to be sure |
---|
[64c6d1] | 181 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
| 182 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
[6afd7c] | 183 | |
---|
[73e491] | 184 | # check for AIX |
---|
[dc32d42] | 185 | AC_MSG_CHECKING(whether _AIX is defined) |
---|
| 186 | AC_CACHE_VAL(ac_cv_is_aix, |
---|
| 187 | AC_EGREP_CPP(yes, |
---|
| 188 | [#ifdef _AIX |
---|
| 189 | yes |
---|
| 190 | #endif |
---|
| 191 | ], ac_cv_is_aix=yes, ac_cv_is_aix=no, 1)) |
---|
| 192 | if test "$ac_cv_is_aix" = yes; then |
---|
| 193 | AC_MSG_RESULT(yes) |
---|
| 194 | else |
---|
| 195 | AC_MSG_RESULT(no) |
---|
| 196 | fi |
---|
[6afd7c] | 197 | |
---|
| 198 | AC_CHECK_LIB(m, atof) |
---|
[4dea87] | 199 | AC_CHECK_LIB(bsd, socket) |
---|
| 200 | AC_CHECK_LIB(socket, listen) |
---|
| 201 | AC_CHECK_LIB(nsl, gethostbyname) |
---|
[a70441f] | 202 | AC_CHECK_LIB(gmp, main) |
---|
[78364c] | 203 | AC_CHECK_LIB(smallgmp, mpz_init) |
---|
[6afd7c] | 204 | AC_CHECK_LIB(MP, IMP_PutGmpInt) |
---|
| 205 | AC_CHECK_LIB(MPT, MPT_GetTree) |
---|
| 206 | AC_CHECK_LIB(singcf, atof) |
---|
| 207 | AC_CHECK_LIB(singfac, atof) |
---|
[c232af] | 208 | AC_CHECK_LIB(omalloc, omTestAddr) |
---|
| 209 | AC_CHECK_LIB(omalloc_ndebug, main) |
---|
[6afd7c] | 210 | |
---|
[c232af] | 211 | AC_CHECK_HEADERS(gmp.h smallgmp.h MP.h MPT.h factory.h factor.h omalloc.h) |
---|
[6afd7c] | 212 | |
---|
[a70441f] | 213 | if test "$ac_cv_lib_gmp_main" = yes && \ |
---|
[6afd7c] | 214 | test "$ac_cv_header_gmp_h" = yes; then |
---|
[73e491] | 215 | ac_gmp_ok=yes |
---|
[6afd7c] | 216 | fi |
---|
| 217 | |
---|
[78364c] | 218 | if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \ |
---|
| 219 | test "$ac_cv_header_smallgmp_h" = yes && \ |
---|
| 220 | test "$ac_cv_header_gmp_h" = yes; then |
---|
[73e491] | 221 | ac_smallgmp_ok=yes |
---|
[78364c] | 222 | fi |
---|
| 223 | |
---|
[6afd7c] | 224 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
| 225 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
| 226 | test "$ac_cv_header_MP_h" = yes && \ |
---|
| 227 | test "$ac_cv_header_MPT_h" = yes; then |
---|
| 228 | ac_MP_ok=yes |
---|
| 229 | fi |
---|
| 230 | |
---|
[4c001a] | 231 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
[6afd7c] | 232 | test "$ac_cv_header_factory_h" = yes; then |
---|
| 233 | ac_factory_ok=yes |
---|
| 234 | fi |
---|
| 235 | |
---|
[4c001a] | 236 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
[6afd7c] | 237 | test "$ac_cv_header_factor_h" = yes; then |
---|
| 238 | ac_libfac_ok=yes |
---|
| 239 | fi |
---|
| 240 | |
---|
[c232af] | 241 | if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \ |
---|
| 242 | test "$ac_cv_lib_omalloc_ndebug_main" = yes && \ |
---|
| 243 | test "$ac_cv_header_omalloc_c" = yes && \ |
---|
| 244 | test "$ac_cv_header_omalloc_h" = yes; then |
---|
| 245 | ac_cv_omalloc_ok=yes |
---|
| 246 | fi |
---|
[6afd7c] | 247 | |
---|
| 248 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
[a23686] | 249 | dnl Check command line arguments |
---|
[6afd7c] | 250 | dnl |
---|
[f36635] | 251 | AC_ARG_WITH(tmpdir, \ |
---|
| 252 | [ --with-tmpdir=DIR use DIR as temporary directory]) |
---|
[78364c] | 253 | AC_ARG_ENABLE(smallgmp, \ |
---|
[aac46c] | 254 | [ --enable-PACKAGE configure and/or build PACKAGE |
---|
| 255 | --disable-PACKAGE do not configure and/or build PACKAGE |
---|
[64c6d1] | 256 | where PACKAGE can be: |
---|
[78364c] | 257 | smallgmp minimal version of gmp written in C only]) |
---|
[c232af] | 258 | AC_ARG_ENABLE(omalloc,\ |
---|
| 259 | [ omalloc omalloc memory managment]) |
---|
[64c6d1] | 260 | AC_ARG_ENABLE(gmp, \ |
---|
| 261 | [ gmp Gnu Multiple Precision package]) |
---|
[6afd7c] | 262 | AC_ARG_ENABLE(MP, \ |
---|
| 263 | [ MP Multi Protocol library]) |
---|
| 264 | AC_ARG_ENABLE(factory, \ |
---|
| 265 | [ factory polynomial factorization library]) |
---|
| 266 | AC_ARG_ENABLE(libfac, \ |
---|
| 267 | [ libfac char set and modp poly factorization library]) |
---|
[a04715] | 268 | AC_ARG_ENABLE(sgroup, \ |
---|
| 269 | [ sgroup numerical semigroup computations]) |
---|
[6afd7c] | 270 | AC_ARG_ENABLE(Singular, \ |
---|
[64c6d1] | 271 | [ Singular CAS for Polynomial Computations]) |
---|
[181d6e] | 272 | AC_ARG_ENABLE(IntegerProgramming, \ |
---|
| 273 | [ IntegerProgramming IntegerProgramming]) |
---|
[08b7a76] | 274 | AC_ARG_ENABLE(Plural, \ |
---|
| 275 | [ Plural Plural]) |
---|
[f36635] | 276 | AC_ARG_ENABLE(Texinfo, \ |
---|
| 277 | [ Texinfo Texinfo for info, texi2dvi, makeinfo]) |
---|
[aac46c] | 278 | AC_ARG_ENABLE(Texi2html, \ |
---|
| 279 | [ Texi2html Texinfo to HTML converter]) |
---|
| 280 | AC_ARG_ENABLE(doc, \ |
---|
| 281 | [ doc Singular documentation]) |
---|
| 282 | AC_ARG_ENABLE(emacs, \ |
---|
| 283 | [ emacs emacs completion files]) |
---|
[78364c] | 284 | AC_ARG_WITH(MP,\ |
---|
| 285 | [ --with-PACKAGE use PACKAGE, provide dependent functionality |
---|
| 286 | --without-PACKAGE do not use PACKAGE, disable dependent functionality |
---|
[64c6d1] | 287 | where PACKAGE can be: |
---|
[9f226d] | 288 | MP Multi Protocol library]) |
---|
[78364c] | 289 | AC_ARG_WITH(factory, \ |
---|
| 290 | [ factory polynomial factorization library]) |
---|
| 291 | AC_ARG_WITH(libfac, \ |
---|
| 292 | [ libfac char set and modp poly factorization library]) |
---|
| 293 | AC_ARG_WITH(gmp, \ |
---|
| 294 | [ --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic |
---|
[9bc556] | 295 | where PACKAGE can be gmp or smallgmp |
---|
| 296 | All additional --enable and --with options are passed to subsequent calls |
---|
| 297 | to configure of the packages to be built. See also configure --help in |
---|
| 298 | these packages (resp. subdirs). ]) |
---|
[64c6d1] | 299 | |
---|
[f36635] | 300 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 301 | dnl Check what to use as tmp dir |
---|
| 302 | dnl |
---|
| 303 | AC_MSG_CHECKING(which tmp dir to use) |
---|
| 304 | if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then |
---|
| 305 | if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1) |
---|
| 306 | then |
---|
[8f659dc] | 307 | TMP_DIR="${pwd}/tmp" |
---|
[f36635] | 308 | else |
---|
| 309 | TMP_DIR=${with_tmpdir} |
---|
| 310 | fi |
---|
| 311 | else |
---|
[8f659dc] | 312 | TMP_DIR="${pwd}/tmp" |
---|
[f36635] | 313 | fi |
---|
| 314 | AC_MSG_RESULT($TMP_DIR) |
---|
| 315 | AC_SUBST(TMP_DIR) |
---|
| 316 | |
---|
[a23686] | 317 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 318 | dnl Check whether or not to configure and build various packages |
---|
| 319 | dnl |
---|
[c232af] | 320 | AC_MSG_CHECKING(whether to configure and build omalloc) |
---|
| 321 | if test "${enable_omalloc+set}" != set; then |
---|
| 322 | if test "$ac_cv_omalloc_ok" = yes; then |
---|
| 323 | enable_omalloc=no |
---|
| 324 | fi |
---|
| 325 | enable_omalloc_not_set=yes |
---|
| 326 | fi |
---|
| 327 | if test "$enable_omalloc" = no; then |
---|
| 328 | if test "$ac_cv_omalloc_ok" != yes; then |
---|
| 329 | AC_MSG_ERROR(can not build without omalloc) |
---|
| 330 | fi |
---|
| 331 | AC_MSG_RESULT(no) |
---|
| 332 | else |
---|
| 333 | if test -d omalloc; then |
---|
| 334 | AC_MSG_RESULT(yes) |
---|
| 335 | if test "$enable_omalloc_not_set" = yes; then |
---|
[efbf54] | 336 | ac_configure_args="$ac_configure_args --enable-omalloc --with-external-config_h='$pwd/Singular/omSingularConfig.h' --with-track-custom" |
---|
[c232af] | 337 | fi |
---|
| 338 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS omalloc" |
---|
[995ba8] | 339 | if test "${with_malloc+set}" != set; then |
---|
| 340 | case "$ac_cv_singuname" in |
---|
| 341 | # under windows, it is best to use the provided malloc |
---|
| 342 | ix86-Win*) |
---|
| 343 | with_malloc=system |
---|
| 344 | ac_configure_args="$ac_configure_args --with-malloc=system" |
---|
| 345 | ;; |
---|
[26ec6d] | 346 | PowerMacintosh-darwin*) |
---|
| 347 | with_malloc=system |
---|
| 348 | ac_configure_args="$ac_configure_args --with-malloc=system" |
---|
| 349 | ;; |
---|
[995ba8] | 350 | esac |
---|
| 351 | fi |
---|
[c232af] | 352 | else |
---|
| 353 | AC_MSG_ERROR(need omalloc subdir) |
---|
| 354 | fi |
---|
| 355 | fi |
---|
[f36635] | 356 | |
---|
[64c6d1] | 357 | AC_MSG_CHECKING(whether to configure and build gmp lib) |
---|
| 358 | if test "$enable_gmp" != yes && test "$enable_gmp" != no; then |
---|
| 359 | if test "$ac_gmp_ok" != yes && test -d gmp; then |
---|
| 360 | AC_MSG_RESULT(yes) |
---|
| 361 | enable_gmp=yes |
---|
| 362 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp" |
---|
| 363 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
[0319b3] | 364 | enable_gmp=yes |
---|
[b920d1] | 365 | # This we used to need for our patched version of gmp 2.x |
---|
[5e5db8] | 366 | # OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in" |
---|
[64c6d1] | 367 | else |
---|
| 368 | AC_MSG_RESULT(no) |
---|
| 369 | enable_gmp=no |
---|
| 370 | fi |
---|
| 371 | elif test "$enable_gmp" = yes; then |
---|
| 372 | if test ! -d gmp; then |
---|
| 373 | AC_MSG_RESULT(no) |
---|
| 374 | AC_MSG_ERROR(Can not find gmp subdir) |
---|
| 375 | else |
---|
| 376 | AC_MSG_RESULT(yes) |
---|
| 377 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp" |
---|
[b920d1] | 378 | # This we used to need for our patched version of gmp 2.x |
---|
[5e5db8] | 379 | # OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in" |
---|
[64c6d1] | 380 | fi |
---|
| 381 | else |
---|
| 382 | AC_MSG_RESULT(no) |
---|
| 383 | fi |
---|
[78364c] | 384 | |
---|
[03f074] | 385 | if test "$enable_gmp" = yes; then |
---|
[b920d1] | 386 | # for gmp-3.0 to work for all ix86 processors, set generic target |
---|
| 387 | if test "$target" = NONE; then |
---|
| 388 | case "$ac_cv_singuname" in |
---|
| 389 | ix86*) |
---|
| 390 | gmp_target=`./config.guess | sed 's/^\w*-/i386-/'` |
---|
| 391 | ac_configure_args="$ac_configure_args --target=$gmp_target" |
---|
| 392 | ;; |
---|
| 393 | esac |
---|
| 394 | fi |
---|
[03f074] | 395 | # furthermore, disable building of dynamic libraries, for we want to |
---|
| 396 | # link against the static ones |
---|
| 397 | if test "$enable_shared" != no; then |
---|
| 398 | ac_configure_args="$ac_configure_args --disable-shared" |
---|
| 399 | fi |
---|
[b920d1] | 400 | fi |
---|
| 401 | |
---|
[78364c] | 402 | AC_MSG_CHECKING(whether to configure and build smallgmp lib) |
---|
| 403 | if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then |
---|
[64c6d1] | 404 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \ |
---|
| 405 | test "$enable_gmp" != yes && test -d smallgmp; then |
---|
| 406 | AC_MSG_RESULT(yes) |
---|
[78364c] | 407 | enable_smallgmp=yes |
---|
[64c6d1] | 408 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" |
---|
| 409 | ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp" |
---|
[0319b3] | 410 | enable_gmp=yes |
---|
[6afd7c] | 411 | else |
---|
[64c6d1] | 412 | AC_MSG_RESULT(no) |
---|
[78364c] | 413 | enable_smallgmp=no |
---|
[6afd7c] | 414 | fi |
---|
[64c6d1] | 415 | elif test "$enable_smallgmp" = yes; then |
---|
| 416 | if test ! -d smallgmp; then |
---|
| 417 | AC_MSG_RESULT(no) |
---|
| 418 | AC_MSG_ERROR(Can not find smallgmp subdir) |
---|
| 419 | else |
---|
| 420 | AC_MSG_RESULT(yes) |
---|
| 421 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp" |
---|
| 422 | if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then |
---|
| 423 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
[0319b3] | 424 | enable_gmp=yes |
---|
[64c6d1] | 425 | fi |
---|
[6afd7c] | 426 | fi |
---|
[64c6d1] | 427 | else |
---|
| 428 | AC_MSG_RESULT(${enable_smallgmp}) |
---|
[78364c] | 429 | fi |
---|
[64c6d1] | 430 | |
---|
| 431 | # Check whether we have at least one of smallgmp or gmp |
---|
| 432 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \ |
---|
| 433 | test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then |
---|
| 434 | AC_MSG_ERROR(can neither find nor built gmp or smallgmp) |
---|
| 435 | fi |
---|
| 436 | |
---|
| 437 | # Check whether we need to cheat subsequent configures with --enable-gmp |
---|
[0319b3] | 438 | if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then |
---|
[78364c] | 439 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
[6afd7c] | 440 | fi |
---|
| 441 | |
---|
| 442 | AC_MSG_CHECKING(whether to configure and build MP lib) |
---|
| 443 | if test "$enable_MP" != yes && test "$enable_MP" != no; then |
---|
[64c6d1] | 444 | if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \ |
---|
| 445 | (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then |
---|
| 446 | AC_MSG_RESULT(yes) |
---|
[6afd7c] | 447 | enable_MP=yes |
---|
[64c6d1] | 448 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
| 449 | ac_configure_args="$ac_configure_args --enable-MP" |
---|
[6afd7c] | 450 | else |
---|
[64c6d1] | 451 | AC_MSG_RESULT(no) |
---|
[6afd7c] | 452 | enable_MP=no |
---|
| 453 | fi |
---|
[64c6d1] | 454 | elif test "$enable_MP" = yes; then |
---|
| 455 | if test ! -d MP; then |
---|
| 456 | AC_MSG_RESULT(no) |
---|
| 457 | AC_MSG_ERROR(can not build MP without MP directory) |
---|
| 458 | fi |
---|
| 459 | if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
[dc32d42] | 460 | AC_MSG_RESULT(yes) |
---|
| 461 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
| 462 | else |
---|
| 463 | AC_MSG_RESULT(no) |
---|
[64c6d1] | 464 | AC_MSG_ERROR(can not build MP without gmp) |
---|
[dc32d42] | 465 | fi |
---|
[6afd7c] | 466 | else |
---|
| 467 | AC_MSG_RESULT(no) |
---|
| 468 | fi |
---|
[c232af] | 469 | |
---|
[70afd2] | 470 | # need MP code to be compiled with -fPIC, should not hurt anybody else |
---|
| 471 | if test "$enable_MP" = yes && test "${with_extra_cflags+set}" != set; then |
---|
| 472 | ac_configure_args="$ac_configure_args --with-extra_cflags=-fPIC" |
---|
| 473 | fi |
---|
| 474 | |
---|
| 475 | |
---|
[6afd7c] | 476 | AC_MSG_CHECKING(whether to configure and build factory lib) |
---|
| 477 | if test "$enable_factory" != yes && test "$enable_factory" != no; then |
---|
[64c6d1] | 478 | if test "$with_factory" != no && test "$ac_factory_ok" != yes && \ |
---|
| 479 | test -d factory; then |
---|
[6afd7c] | 480 | enable_factory=yes |
---|
[64c6d1] | 481 | AC_MSG_RESULT(yes) |
---|
| 482 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
| 483 | ac_configure_args="$ac_configure_args --enable-factory" |
---|
[6afd7c] | 484 | else |
---|
| 485 | enable_factory=no |
---|
[64c6d1] | 486 | AC_MSG_RESULT(no) |
---|
[6afd7c] | 487 | fi |
---|
[64c6d1] | 488 | elif test "$enable_factory" = yes; then |
---|
| 489 | if test -d factory; then |
---|
[78364c] | 490 | AC_MSG_RESULT(yes) |
---|
| 491 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
[dc32d42] | 492 | else |
---|
| 493 | AC_MSG_RESULT(no) |
---|
[64c6d1] | 494 | AC_MSG_ERROR(can not build factory without factory directory) |
---|
[dc32d42] | 495 | fi |
---|
[6afd7c] | 496 | else |
---|
| 497 | AC_MSG_RESULT(no) |
---|
| 498 | fi |
---|
| 499 | |
---|
| 500 | AC_MSG_CHECKING(whether to configure and build libfac lib) |
---|
| 501 | if test "$enable_libfac" != yes && test "$enable_libfac" != no; then |
---|
[64c6d1] | 502 | if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \ |
---|
| 503 | test -d libfac && \ |
---|
| 504 | (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then |
---|
[6afd7c] | 505 | enable_libfac=yes |
---|
[64c6d1] | 506 | AC_MSG_RESULT(yes) |
---|
| 507 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
| 508 | ac_configure_args="$ac_configure_args --enable-libfac" |
---|
[6afd7c] | 509 | else |
---|
| 510 | enable_libfac=no |
---|
[64c6d1] | 511 | AC_MSG_RESULT(no) |
---|
| 512 | fi |
---|
| 513 | elif test "$enable_libfac" = yes; then |
---|
| 514 | if test ! -d libfac; then |
---|
| 515 | AC_MSG_RESULT(no) |
---|
| 516 | AC_MSG_ERROR(can not build libfac without libfac directory) |
---|
[6afd7c] | 517 | fi |
---|
[dc32d42] | 518 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[64c6d1] | 519 | AC_MSG_RESULT(yes) |
---|
| 520 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
[dc32d42] | 521 | else |
---|
| 522 | AC_MSG_RESULT(no) |
---|
[64c6d1] | 523 | AC_MSG_ERROR(Can not build libfac without factory) |
---|
[dc32d42] | 524 | fi |
---|
[6afd7c] | 525 | else |
---|
| 526 | AC_MSG_RESULT(no) |
---|
| 527 | fi |
---|
| 528 | |
---|
[64c6d1] | 529 | AC_MSG_CHECKING(whether to configure and build sgroup lib) |
---|
[91ee87] | 530 | dnl |
---|
| 531 | dnl only sgroup if explicietely requested |
---|
| 532 | dnl if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then |
---|
| 533 | dnl if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \ |
---|
| 534 | dnl test -d sgroup && \ |
---|
| 535 | dnl (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then |
---|
| 536 | dnl enable_sgroup=yes |
---|
| 537 | dnl AC_MSG_RESULT(yes) |
---|
| 538 | dnl CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup" |
---|
| 539 | dnl ac_configure_args="$ac_configure_args --enable-sgroup" |
---|
| 540 | dnl else |
---|
| 541 | dnl enable_sgroup=no |
---|
| 542 | dnl AC_MSG_RESULT(no) |
---|
| 543 | dnl fi |
---|
| 544 | dnl elif test "$enable_sgroup" = yes; then |
---|
| 545 | if test "$enable_sgroup" = yes; then |
---|
[64c6d1] | 546 | if test ! -d sgroup; then |
---|
| 547 | AC_MSG_RESULT(no) |
---|
| 548 | AC_MSG_ERROR(can not build sgroup without sgroup directory) |
---|
| 549 | fi |
---|
| 550 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
| 551 | AC_MSG_RESULT(yes) |
---|
| 552 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup" |
---|
| 553 | else |
---|
| 554 | AC_MSG_RESULT(no) |
---|
| 555 | AC_MSG_ERROR(Can not build sgroup without MP) |
---|
[a04715] | 556 | fi |
---|
| 557 | else |
---|
| 558 | AC_MSG_RESULT(no) |
---|
| 559 | fi |
---|
| 560 | |
---|
[aac46c] | 561 | BUILD_SUBDIRS="$CONFIG_SUBDIRS" |
---|
| 562 | |
---|
[6afd7c] | 563 | AC_MSG_CHECKING(whether to configure and build Singular) |
---|
| 564 | if test "$enable_Singular" != yes && test "$enable_Singular" != no; then |
---|
[64c6d1] | 565 | if test "$with_Singular" != no && test -d Singular; then |
---|
[6afd7c] | 566 | enable_Singular=yes |
---|
[64c6d1] | 567 | AC_MSG_RESULT(yes) |
---|
| 568 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
[aac46c] | 569 | BUILD_SUBDIRS="$BUILD_SUBDIRS Singular" |
---|
[64c6d1] | 570 | ac_configure_args="$ac_configure_args --enable-Singular" |
---|
[6afd7c] | 571 | else |
---|
| 572 | enable_Singular=no |
---|
[64c6d1] | 573 | AC_MSG_RESULT(no) |
---|
| 574 | fi |
---|
| 575 | elif test "$enable_Singular" = yes; then |
---|
| 576 | if test -d Singular; then |
---|
| 577 | AC_MSG_RESULT(yes) |
---|
| 578 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
[aac46c] | 579 | BUILD_SUBDIRS="$BUILD_SUBDIRS Singular" |
---|
[64c6d1] | 580 | else |
---|
| 581 | AC_MSG_RESULT(no) |
---|
| 582 | AC_MSG_ERROR(can not build Singular without Singular directory) |
---|
[6afd7c] | 583 | fi |
---|
| 584 | else |
---|
| 585 | AC_MSG_RESULT(no) |
---|
| 586 | fi |
---|
| 587 | |
---|
[181d6e] | 588 | |
---|
| 589 | # test if IntegerProgramming should be built: |
---|
| 590 | |
---|
| 591 | AC_MSG_CHECKING(whether to build IntegerProgramming) |
---|
| 592 | if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then |
---|
| 593 | BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming" |
---|
| 594 | AC_MSG_RESULT(yes) |
---|
| 595 | if test "$enable_IntegerProgramming" != yes; then |
---|
| 596 | ac_configure_args="$ac_configure_args --enable-IntegerProgramming" |
---|
| 597 | fi |
---|
| 598 | else |
---|
| 599 | AC_MSG_RESULT(no) |
---|
| 600 | fi |
---|
| 601 | |
---|
[08b7a76] | 602 | AC_MSG_CHECKING(whether to build Plural) |
---|
| 603 | if test "$enable_Plural" != no && test -d "Plural"; then |
---|
| 604 | BUILD_SUBDIRS="$BUILD_SUBDIRS Plural" |
---|
| 605 | AC_MSG_RESULT(yes) |
---|
| 606 | if test "$enable_Plural" != yes; then |
---|
| 607 | ac_configure_args="$ac_configure_args --enable-Plural" |
---|
| 608 | fi |
---|
| 609 | else |
---|
| 610 | AC_MSG_RESULT(no) |
---|
| 611 | fi |
---|
| 612 | |
---|
[181d6e] | 613 | |
---|
[aac46c] | 614 | AC_MSG_CHECKING(whether to configure and build Texinfo) |
---|
| 615 | if test "$enable_Texinfo" != no && test -d Texinfo; then |
---|
| 616 | AC_MSG_RESULT(yes) |
---|
| 617 | enable_texinfo=yes |
---|
| 618 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo" |
---|
| 619 | BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo" |
---|
| 620 | TEXI2DVI=${bindir}/texi2dvi |
---|
[181d6e] | 621 | MAKEINFO="${bindir}/makeinfo" |
---|
[aac46c] | 622 | TEXINDEX=${bindir}/texindex |
---|
| 623 | AC_SUBST(TEXI2DVI) |
---|
| 624 | AC_SUBST(MAKEINFO) |
---|
| 625 | AC_SUBST(TEXINDEX) |
---|
| 626 | if test "$enable_Texinfo" != yes; then |
---|
| 627 | ac_configure_args="$ac_configure_args --enable-Texinfo" |
---|
| 628 | fi |
---|
| 629 | else |
---|
| 630 | AC_MSG_RESULT(no) |
---|
| 631 | AC_MSG_WARN(Building of doc might fail. Need Texinfo) |
---|
| 632 | enable_texinfo=no |
---|
| 633 | AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, ${pwd}/warn_not_found.sh makeinfo) |
---|
| 634 | AC_CHECK_PROG(TEXI2DVI, texi2dvi, texi2dvi, ${pwd}/warn_not_found.sh texi2dvi) |
---|
| 635 | AC_CHECK_PROG(TEXINDEX, texindex, texindex, ${pwd}/warn_not_found.sh texindex) |
---|
| 636 | fi |
---|
| 637 | |
---|
[d16193] | 638 | AC_MSG_CHECKING(whether to configure and build Texi2html) |
---|
[aac46c] | 639 | if test "$enable_Texi2html" != no && test -d Texi2html; then |
---|
| 640 | AC_MSG_RESULT(yes) |
---|
[d16193] | 641 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texi2html" |
---|
[aac46c] | 642 | BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html" |
---|
| 643 | if test "$enable_Texi2html" != yes; then |
---|
| 644 | ac_configure_args="$ac_configure_args --enable-Texi2html" |
---|
| 645 | fi |
---|
[d16193] | 646 | TEXI2HTML=${bindir}/texi2html |
---|
| 647 | AC_SUBST(TEXI2HTML) |
---|
[aac46c] | 648 | else |
---|
| 649 | AC_MSG_RESULT(no) |
---|
[d16193] | 650 | AC_CHECK_PROG(TEXI2HTML, texi2html, texi2html) |
---|
[aac46c] | 651 | fi |
---|
| 652 | |
---|
[d16193] | 653 | if test "${TEXI2HTML+set}" != set; then |
---|
| 654 | AC_MSG_WARN(texi2html not found. HTML doc generation will fail) |
---|
| 655 | fi |
---|
| 656 | if test "$ac_cv_prog_LATEX2HTML" = latex2html; then |
---|
| 657 | TEXI2HTML_OPTS="-l2h" |
---|
| 658 | fi |
---|
| 659 | AC_SUBST(TEXI2HTML_OPTS) |
---|
| 660 | |
---|
| 661 | |
---|
[aac46c] | 662 | AC_MSG_CHECKING(whether to build doc) |
---|
| 663 | if test "$enable_doc" != no && test -d doc; then |
---|
| 664 | AC_MSG_RESULT(yes) |
---|
| 665 | BUILD_SUBDIRS="$BUILD_SUBDIRS doc" |
---|
| 666 | if test "$enable_doc" != yes; then |
---|
| 667 | enable_doc=yes |
---|
| 668 | ac_configure_args="$ac_configure_args --enable-doc" |
---|
| 669 | fi |
---|
| 670 | else |
---|
| 671 | enable_doc=no |
---|
| 672 | AC_MSG_RESULT(no) |
---|
| 673 | fi |
---|
| 674 | |
---|
| 675 | AC_MSG_CHECKING(whether to build emacs) |
---|
| 676 | if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then |
---|
| 677 | AC_MSG_RESULT(yes) |
---|
| 678 | BUILD_SUBDIRS="$BUILD_SUBDIRS emacs" |
---|
| 679 | if test "$enable_emacs" != yes; then |
---|
| 680 | ac_configure_args="$ac_configure_args --enable-emacs" |
---|
| 681 | fi |
---|
| 682 | else |
---|
| 683 | AC_MSG_RESULT(no) |
---|
| 684 | fi |
---|
[6afd7c] | 685 | |
---|
| 686 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 687 | dnl Check whether or not to use various packages |
---|
| 688 | dnl |
---|
[a23686] | 689 | AC_MSG_CHECKING(which apint package to use) |
---|
[64c6d1] | 690 | if test "$with_apint" = gmp; then |
---|
| 691 | if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then |
---|
| 692 | AC_MSG_RESULT(gmp) |
---|
| 693 | else |
---|
| 694 | AC_MSG_RESULT(none) |
---|
| 695 | AC_MSG_ERROR(can not use with gmp without finding or building it) |
---|
| 696 | fi |
---|
| 697 | elif test "$with_apint" = smallgmp; then |
---|
| 698 | if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then |
---|
| 699 | AC_MSG_RESULT(smallgmp) |
---|
| 700 | else |
---|
| 701 | AC_MSG_RESULT(none) |
---|
| 702 | AC_MSG_ERROR(can not use with smallgmp without finding or building it) |
---|
| 703 | fi |
---|
| 704 | elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then |
---|
| 705 | AC_MSG_RESULT(gmp) |
---|
| 706 | ac_configure_args="$ac_configure_args --with-apint=gmp" |
---|
[9bc556] | 707 | else |
---|
| 708 | dnl now we are sure that we have the smallgmp --otherwise enable |
---|
| 709 | dnl checks had thrown an error |
---|
[64c6d1] | 710 | AC_MSG_RESULT(smallgmp) |
---|
| 711 | ac_configure_args="$ac_configure_args --with-apint=smallgmp" |
---|
[78364c] | 712 | fi |
---|
[6afd7c] | 713 | |
---|
[dc32d42] | 714 | AC_MSG_CHECKING(whether to use with MP) |
---|
[64c6d1] | 715 | if test "$with_MP" = yes; then |
---|
[dc32d42] | 716 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
[64c6d1] | 717 | AC_MSG_RESULT(yes) |
---|
[6afd7c] | 718 | else |
---|
[64c6d1] | 719 | AC_MSG_RESULT(none) |
---|
| 720 | AC_MSG_ERROR(can not use with MP without finding or building it) |
---|
[6afd7c] | 721 | fi |
---|
[64c6d1] | 722 | elif test "$with_MP" = no; then |
---|
| 723 | AC_MSG_RESULT(no) |
---|
| 724 | elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
[6afd7c] | 725 | AC_MSG_RESULT(yes) |
---|
[64c6d1] | 726 | ac_configure_args="$ac_configure_args --with-MP" |
---|
[6afd7c] | 727 | else |
---|
| 728 | AC_MSG_RESULT(no) |
---|
[64c6d1] | 729 | ac_configure_args="$ac_configure_args --without-MP" |
---|
[78364c] | 730 | fi |
---|
| 731 | |
---|
[dc32d42] | 732 | AC_MSG_CHECKING(whether to use with factory) |
---|
[64c6d1] | 733 | if test "$with_factory" = yes; then |
---|
[dc32d42] | 734 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[64c6d1] | 735 | AC_MSG_RESULT(yes) |
---|
[6afd7c] | 736 | else |
---|
[64c6d1] | 737 | AC_MSG_RESULT(none) |
---|
| 738 | AC_MSG_ERROR(can not use with factory without finding or building it) |
---|
[6afd7c] | 739 | fi |
---|
[64c6d1] | 740 | elif test "$with_factory" = no; then |
---|
| 741 | AC_MSG_RESULT(no) |
---|
| 742 | elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[6afd7c] | 743 | AC_MSG_RESULT(yes) |
---|
[64c6d1] | 744 | ac_configure_args="$ac_configure_args --with-factory" |
---|
[6afd7c] | 745 | else |
---|
| 746 | AC_MSG_RESULT(no) |
---|
[64c6d1] | 747 | ac_configure_args="$ac_configure_args --without-factory" |
---|
[6afd7c] | 748 | fi |
---|
[64c6d1] | 749 | |
---|
[dc32d42] | 750 | AC_MSG_CHECKING(whether to use with libfac) |
---|
[64c6d1] | 751 | if test "$with_libfac" = yes; then |
---|
[dc32d42] | 752 | if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
[64c6d1] | 753 | AC_MSG_RESULT(yes) |
---|
[6afd7c] | 754 | else |
---|
[64c6d1] | 755 | AC_MSG_RESULT(none) |
---|
| 756 | AC_MSG_ERROR(can not use with libfac without finding or building it) |
---|
[6afd7c] | 757 | fi |
---|
[64c6d1] | 758 | elif test "$with_libfac" = no; then |
---|
| 759 | AC_MSG_RESULT(no) |
---|
| 760 | elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
[6afd7c] | 761 | AC_MSG_RESULT(yes) |
---|
[64c6d1] | 762 | ac_configure_args="$ac_configure_args --with-libfac" |
---|
[6afd7c] | 763 | else |
---|
| 764 | AC_MSG_RESULT(no) |
---|
[64c6d1] | 765 | ac_configure_args="$ac_configure_args --without-libfac" |
---|
[6afd7c] | 766 | fi |
---|
| 767 | |
---|
[aac46c] | 768 | |
---|
| 769 | |
---|
[dc32d42] | 770 | AC_MSG_CHECKING(whether to use with Singular) |
---|
| 771 | if test "$with_Singular" != no && test "$with_Singular" != yes; then |
---|
[6afd7c] | 772 | if test "$enable_Singular" = yes; then |
---|
[dc32d42] | 773 | with_Singular=yes |
---|
[6afd7c] | 774 | else |
---|
| 775 | with_Singular=no |
---|
| 776 | fi |
---|
[dc32d42] | 777 | ac_configure_args="$ac_configure_args --with-Singular=$with_Singular" |
---|
[6afd7c] | 778 | fi |
---|
[dc32d42] | 779 | |
---|
[6afd7c] | 780 | if test "$with_Singular" != no; then |
---|
| 781 | AC_MSG_RESULT(yes) |
---|
| 782 | else |
---|
| 783 | AC_MSG_RESULT(no) |
---|
| 784 | fi |
---|
| 785 | |
---|
[a23686] | 786 | |
---|
[6afd7c] | 787 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
| 788 | dnl Check for known subdirs |
---|
| 789 | dnl |
---|
[73e491] | 790 | SUBDIRS="" |
---|
[c232af] | 791 | if test -d omalloc; then |
---|
| 792 | SUBDIRS="$SUBDIRS omalloc" |
---|
| 793 | fi |
---|
[78364c] | 794 | if test -d smallgmp; then |
---|
[73e491] | 795 | SUBDIRS="$SUBDIRS smallgmp" |
---|
[6afd7c] | 796 | fi |
---|
[64c6d1] | 797 | if test -d gmp; then |
---|
[73e491] | 798 | SUBDIRS="$SUBDIRS gmp" |
---|
[64c6d1] | 799 | fi |
---|
[6afd7c] | 800 | if test -d MP; then |
---|
| 801 | SUBDIRS="$SUBDIRS MP" |
---|
| 802 | fi |
---|
| 803 | if test -d factory; then |
---|
| 804 | SUBDIRS="$SUBDIRS factory" |
---|
| 805 | fi |
---|
| 806 | if test -d libfac; then |
---|
| 807 | SUBDIRS="$SUBDIRS libfac" |
---|
| 808 | fi |
---|
[aac46c] | 809 | if test -d sgroup; then |
---|
| 810 | SUBDIRS="$SUBDIRS sgroup" |
---|
| 811 | fi |
---|
[518752] | 812 | if test -d Singular; then |
---|
| 813 | SUBDIRS="$SUBDIRS Singular" |
---|
| 814 | fi |
---|
[aac46c] | 815 | if test -d Texinfo; then |
---|
| 816 | SUBDIRS="$SUBDIRS Texinfo" |
---|
[6b27cb] | 817 | fi |
---|
| 818 | if test -d Texi2html; then |
---|
| 819 | SUBDIRS="$SUBDIRS Texi2html" |
---|
[460c1e1] | 820 | fi |
---|
[aac46c] | 821 | if test -d doc; then |
---|
| 822 | SUBDIRS="$SUBDIRS doc" |
---|
| 823 | fi |
---|
| 824 | if test -d emacs; then |
---|
| 825 | SUBDIRS="$SUBDIRS emacs" |
---|
| 826 | fi |
---|
| 827 | if test -d rpm; then |
---|
| 828 | SUBDIRS="$SUBDIRS rpm" |
---|
[518752] | 829 | fi |
---|
[6afd7c] | 830 | |
---|
| 831 | dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll |
---|
[73e491] | 832 | dnl Enough -- wrap it up |
---|
[6afd7c] | 833 | dnl |
---|
| 834 | AC_PROG_MAKE_SET |
---|
| 835 | AC_SUBST(SUBDIRS) |
---|
[6b27cb] | 836 | AC_SUBST(BUILD_SUBDIRS) |
---|
[6afd7c] | 837 | AC_SUBST(CONFIG_SUBDIRS) |
---|
| 838 | AC_CONFIG_SUBDIRS($CONFIG_SUBDIRS) |
---|
| 839 | |
---|
[8c4748] | 840 | AC_OUTPUT(${OUTPUT_MAKEFILES}) |
---|