Changeset 37a11e in git for factory


Ignore:
Timestamp:
Jan 22, 2015, 6:51:51 PM (9 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ca8ff27d6b290f42a965227eda1ca3bbd637e204
Parents:
1e210d65d8dc82cc829f8b88cf056d035bb9b311
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2015-01-22 18:51:51+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2015-01-22 18:57:37+01:00
Message:
Make factory config script  more configurable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/configure.ac

    r1e210d r37a11e  
    108108  AC_DEFINE([SINGULAR],[1])
    109109  AC_DEFINE([DISABLE_GMP_CPP],[1])
     110#  AC_DEFINE([NOSTREAMIO],[1])
     111fi
     112
     113# || test "x$with_Singular" = xyes
     114# Use no streamio (C++) if SINGULAR or explicitely disabled
     115if test "x$enable_streamio" = xno;  then
    110116  AC_DEFINE([NOSTREAMIO],[1])
    111 fi
    112 
    113 # Use no streamio (C++) if SINGULAR or explicitely disabled
    114 if test "x$enable_streamio" = xno || test "x$with_Singular" = xyes;  then
    115   AC_DEFINE([NOSTREAMIO],[1])
    116 else
    117   AC_CHECK_HEADERS(iostream.h strstream.h fstream.h iostream string fstream)
    118   AC_CHECK_HEADERS(ctype.h, , [ AC_MSG_ERROR(standard C header files not found) ])
    119 
    120   # since the FTE will compile only with stream IO enabled we will not
    121   # check for the necessary header files if stream IO is disabled
    122   AC_CHECK_HEADERS(stdarg.h signal.h errno.h unistd.h, ,
    123     [ AC_MSG_WARN(C/C++ header files not found.
    124                     You will not be able to build the Factory Test Environment
    125                     (though Factory itself should compile)) ])
    126117fi
    127118
    128119AM_CONDITIONAL(
    129120    [WITH_PARSER_FOR_CANONICAL_FORM],
    130     [test x$with_Singular != xyes && test x$enable_streamio != xno])
     121    [test "x$enable_streamio" = xyes])
    131122
    132123AC_ARG_VAR( [RESOURCES_INCLUDES], [INCLUDES for libresources] )
     
    240231#
    241232AC_LANG_CPLUSPLUS
     233AC_LANG_PUSH([C++])
    242234
    243235AC_CHECK_HEADERS(stdio.h stdlib.h string.h time.h math.h, ,
    244236  [ AC_MSG_ERROR(C header files not found) ])
    245237AC_CHECK_HEADERS(cstdio)
     238
     239if test "x$enable_streamio" != xno;  then
     240  AC_CHECK_HEADERS(iostream.h strstream.h fstream.h iostream string fstream)
     241  AC_CHECK_HEADERS(ctype.h, , [ AC_MSG_ERROR(standard C header files not found) ])
     242
     243  # since the FTE will compile only with stream IO enabled we will not
     244  # check for the necessary header files if stream IO is disabled
     245  AC_CHECK_HEADERS(stdarg.h signal.h errno.h unistd.h, ,
     246    [ AC_MSG_WARN(C/C++ header files not found.
     247                    You will not be able to build the Factory Test Environment
     248                    (though Factory itself should compile)) ])
     249fi
     250
    246251
    247252if test "x$enable_timing" != xno; then
Note: See TracChangeset for help on using the changeset viewer.