Changeset 461f40 in git for configure.ac


Ignore:
Timestamp:
Jan 30, 2012, 6:59:18 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
41d31d33c92e8a93df58457734616fabacdcb346
Parents:
429497fb0084f0e2cc1130d07779709b94af3a27
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-01-30 18:59:18+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-03 17:53:50+01:00
Message:
fix the enabling of omalloc for factory

CHG: top level configure should enable omalloc by default
FIX: "make check" in factory/ needs omalloc library, thus: LDFLAGS, LDADD
CHG: prettier configure output with AS_HELP_STRING
CHG: further minor improvements to the patch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r429497 r461f40  
    9898#ac_configure_args="$ac_configure_args --with-external-config_h=../Singular/omSingularConfig.h"
    9999
    100 AC_ARG_ENABLE(omalloc, AS_HELP_STRING([--enable-omalloc], [use omalloc for the factory]),
    101 [if test "x$enableval"  = "xyes"; then
    102   enable_omalloc=yes
    103 fi], enable_omalloc=no)
     100AC_ARG_ENABLE(omalloc, AS_HELP_STRING([--disable-omalloc], [do NOT use omalloc within the factory]),
     101 [if test "x$enableval"  = "xyes"; then
     102   ENABLE_OMALLOC=yes
     103 fi], ENABLE_OMALLOC=add)
    104104
    105 AC_MSG_CHECKING(whether to use omalloc in factory)
    106 if test "$enable_omalloc" = yes; then
     105ENABLE_OMALLOC_ARG="--with-omalloc-dir=$ac_abs_top_srcdir --with-omalloc-extra-dir=$ac_abs_top_builddir --enable-omalloc-trust"
    107106
    108   AC_MSG_RESULT(yes)
    109   ac_configure_args="$ac_configure_args --with-omalloc-dir=$ac_abs_top_srcdir --with-omalloc-extra-dir=$ac_abs_top_builddir --enable-omalloc-trust"
    110 else
    111   AC_MSG_RESULT(no)
     107if test "x$ENABLE_OMALLOC" = xadd; then
     108   ENABLE_OMALLOC=yes
     109   ENABLE_OMALLOC_ARG="--enable-omalloc $ENABLE_OMALLOC_ARG"
    112110fi
    113111
    114 AC_CONFIG_SUBDIRS(omalloc)
    115112
    116 if test x$ENABLE_FACTORY = xyes; then
    117   AC_CONFIG_SUBDIRS(factory)
     113
     114
     115if test "x$ENABLE_FACTORY" = xyes; then
     116 AC_MSG_CHECKING(whether to use omalloc in factory)
     117 if test "x$ENABLE_OMALLOC" = xyes; then
     118  AC_MSG_RESULT(yes)
     119  ac_configure_args="$ac_configure_args $ENABLE_OMALLOC_ARG"
     120 else
     121  AC_MSG_RESULT(no)
     122 fi
    118123fi
    119124
    120 AC_CONFIG_SUBDIRS(libpolys)
     125AC_CONFIG_SUBDIRS([omalloc])
     126
     127if test "x$ENABLE_FACTORY" = xyes; then
     128 AC_CONFIG_SUBDIRS([factory])
     129fi
     130
     131AC_CONFIG_SUBDIRS([libpolys])
    121132AC_CONFIG_FILES([Makefile])
    122133AC_CONFIG_FILES([findexec/Makefile])
Note: See TracChangeset for help on using the changeset viewer.