Changeset 7d160bb in git
- Timestamp:
- May 24, 2013, 2:39:16 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 55150e5fbf40e9e0fa5d2c2fe5efd309f4ab2e12
- Parents:
- 35564a593038fa54330b221ac4ac3342667c31ea
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-24 14:39:16+02:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-24 16:33:55+02:00
- Files:
-
- 6 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r35564a5 r7d160bb 12 12 AM_MAINTAINER_MODE 13 13 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 14 14 15 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 15 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])16 17 16 18 17 dnl Check if build env is sane … … 21 20 # 22 21 # - Check for CC and CXX but be careful about CFLAGS. 23 # 22 SING_RESET_FLAGS() 23 SING_CHECK_SET_ARGS() 24 24 25 test "${CFLAGS+set}" = set || cflags_expl_set=no 25 #! 26 26 AC_PROG_CC 27 test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no28 27 AC_PROG_CXX 29 if test "x$GCC" != xyes && test "x$GXX" != xyes; then 30 AC_MSG_WARN(you better use gcc to compile Factory) 31 else 32 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then 33 AC_MSG_WARN([we use \`' as default for \`CXXFLAGS' 34 (instead of the configure default \`-g -O')]) 35 fi 36 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then 37 AC_MSG_WARN([we use \`' as default for \`CFLAGS' 38 (instead of the configure default \`-g -O')]) 39 fi 40 fi 41 28 AC_PROG_CPP 29 AC_PROG_CXXCPP 30 AM_PROG_CC_C_O 31 ### AM_PROG_LEX 32 AC_PROG_LN_S 33 AC_PROG_INSTALL 34 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 42 35 43 36 AC_HEADER_STDC … … 46 39 AC_CHECK_FUNCS(readlink getcwd getwd setenv putenv) 47 40 48 49 AC_PROG_CPP50 AC_PROG_CXXCPP51 AM_PROG_CC_C_O52 ### AM_PROG_LEX53 AC_PROG_LN_S54 AC_PROG_INSTALL55 41 56 42 AC_CHECK_PROGS([DOXYGEN], [doxygen]) … … 97 83 SING_CHECK_GFANLIB 98 84 99 # CFLAGS100 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then101 CFLAGS=""102 fi103 104 # CXXFLAGS105 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then106 CXXFLAGS=""107 fi108 109 AC_DEFINE_UNQUOTED([CC],"$CC",[CC])110 AC_DEFINE_UNQUOTED([CXX],"$CXX",[CXX])111 AC_DEFINE_UNQUOTED([CFLAGS],"$CFLAGS",[CFLAGS])112 AC_DEFINE_UNQUOTED([CXXFLAGS],"$CXXFLAGS",[CXXFLAGS])113 AC_DEFINE_UNQUOTED([LDFLAGS],"$LDFLAGS",[LDFLAGS])114 115 85 ### the following is needed due to the use of om_sing_opt_show_mem in misc_ip.cc... 116 86 #ac_configure_args="$ac_configure_args --with-external-config_h=../Singular/omSingularConfig.h" … … 138 108 fi 139 109 140 SING_CHECK_DEBUG141 142 110 AC_ARG_ENABLE(countedref, AS_HELP_STRING([--enable-countedref], [Enable autoloading of reference counted types]), 143 111 [if test "x$enableval" = "xyes"; then … … 164 132 fi[]dnl 165 133 ])]) 134 135 136 AC_DEFINE_UNQUOTED([CC],"$CC",[CC]) 137 AC_DEFINE_UNQUOTED([CXX],"$CXX",[CXX]) 138 AC_DEFINE_UNQUOTED([CFLAGS],"$CFLAGS",[CFLAGS]) 139 AC_DEFINE_UNQUOTED([CXXFLAGS],"$CXXFLAGS",[CXXFLAGS]) 140 AC_DEFINE_UNQUOTED([DEFS],"$DEFS",[DEFS]) 141 AC_DEFINE_UNQUOTED([CPPFLAGS],"$CPPFLAGS",[CPPFLAGS]) 142 AC_DEFINE_UNQUOTED([LDFLAGS],"$LDFLAGS",[LDFLAGS]) 143 AC_DEFINE_UNQUOTED([LIBS],"$LIBS",[LIBS]) 144 145 146 SING_SHOW_FLAGS([Compiler/linker flags: ]) 166 147 167 148 -
factory/configure.ac
r35564a5 r7d160bb 24 24 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 25 25 26 27 26 # Add pre'prefixed config 28 27 AX_PREFIX_CONFIG_H([config.h],[],[config.h]) 29 28 30 AC_PROG_YACC31 # AM_PROG_AR32 LT_INIT33 34 #35 # Do not change version here!!!36 #37 29 dnl # 38 30 dnl # Change version here, do not believe the comment in the … … 43 35 44 36 # 45 # - check withs and enables.46 #47 AC_ARG_WITH(48 Singular,49 [AS_HELP_STRING([--without-Singular],[build NOT for the use with CAS Singular.])],50 ,51 [with_Singular=yes])52 53 AC_ARG_ENABLE(omalloc, AS_HELP_STRING([--enable-omalloc],[build for use with omalloc]),54 [if test "x$enableval" = "xyes"; then55 ENABLE_OMALLOC=yes56 fi], ENABLE_OMALLOC=no)57 58 AC_ARG_ENABLE(omalloc_trust, AS_HELP_STRING([--enable-omalloc-trust],[do not check the omalloc header]),59 [if test "x$enableval" = "xyes"; then60 omalloc_trust=yes61 fi], omalloc_trust=no)62 63 AC_ARG_WITH(omalloc_dir,[AS_HELP_STRING([--with-omalloc-dir=PTH],[location of omalloc])], with_omalloc_dir="$withval", with_omalloc_dir="")64 AC_ARG_WITH(omalloc_extra_dir,[AS_HELP_STRING([--with-omalloc-extra-dir=PTH],[optional extra location of omalloc])], with_omalloc_extra_dir="$withval", with_omalloc_extra_dir="")65 66 AC_ARG_ENABLE(67 cf-inline,68 [AS_HELP_STRING([--enable-cf-inline],[build Factory with \"configurable inline methods\" enabled.])],69 [enable_cf_inline=$enableval],70 [enable_cf_inline=no])71 72 AC_ARG_ENABLE(73 streamio,74 [AS_HELP_STRING([--enable-streamio],[build Factory with stream IO])],75 ,76 [enable_streamio=no])77 78 AC_ARG_ENABLE(79 assertions,80 [AS_HELP_STRING([--disable-assertions],[build Factory with no assertions])],81 ,82 enable_assertions=yes)83 84 AC_ARG_ENABLE(85 timing,86 [AS_HELP_STRING([--enable-timing],[build Factory so it will print timing information])],87 ,88 enable_timing=no)89 90 AC_ARG_ENABLE(91 debugoutput,92 [AS_HELP_STRING([--enable-debugoutput],[build Factory so it will print debugging information])],93 ,94 enable_debugoutput=no)95 96 SING_CHECK_DEBUG97 98 #99 37 # - check for CC and CXX but be careful about CFLAGS. 100 38 # 101 test "${CFLAGS+set}" = set || cflags_expl_set=no 39 SING_RESET_FLAGS() 40 SING_CHECK_SET_ARGS() 41 102 42 AC_PROG_CC 103 test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no104 43 AC_PROG_CXX 105 if test "x$GCC" != xyes && test "x$GXX" != xyes; then106 AC_MSG_WARN(you better use gcc to compile Factory)107 else108 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then109 AC_MSG_WARN([we use \`' as default for \`CXXFLAGS'110 (instead of the configure default \`-g -O')])111 fi112 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then113 AC_MSG_WARN([we use \`' as default for \`CFLAGS'114 (instead of the configure default \`-g -O')])115 fi116 fi117 118 44 # 119 45 # - check for some other programs. … … 124 50 AC_PROG_INSTALL 125 51 AC_DISABLE_STATIC 52 AC_PROG_YACC 126 53 LT_INIT 127 54 AC_PROG_MAKE_SET … … 132 59 AC_C_CONST 133 60 AC_C_INLINE 61 62 63 # 64 # - check withs and enables. 65 # 66 AC_ARG_WITH( 67 Singular, 68 [AS_HELP_STRING([--without-Singular],[build NOT for the use with CAS Singular.])], 69 , 70 [with_Singular=yes]) 71 72 AC_ARG_ENABLE(omalloc, AS_HELP_STRING([--enable-omalloc],[build for use with omalloc]), 73 [if test "x$enableval" = "xyes"; then 74 ENABLE_OMALLOC=yes 75 fi], ENABLE_OMALLOC=no) 76 77 AC_ARG_ENABLE(omalloc_trust, AS_HELP_STRING([--enable-omalloc-trust],[do not check the omalloc header]), 78 [if test "x$enableval" = "xyes"; then 79 omalloc_trust=yes 80 fi], omalloc_trust=no) 81 82 AC_ARG_WITH(omalloc_dir,[AS_HELP_STRING([--with-omalloc-dir=PTH],[location of omalloc])], with_omalloc_dir="$withval", with_omalloc_dir="") 83 AC_ARG_WITH(omalloc_extra_dir,[AS_HELP_STRING([--with-omalloc-extra-dir=PTH],[optional extra location of omalloc])], with_omalloc_extra_dir="$withval", with_omalloc_extra_dir="") 84 85 AC_ARG_ENABLE( 86 cf-inline, 87 [AS_HELP_STRING([--enable-cf-inline],[build Factory with \"configurable inline methods\" enabled.])], 88 [enable_cf_inline=$enableval], 89 [enable_cf_inline=no]) 90 91 AC_ARG_ENABLE( 92 streamio, 93 [AS_HELP_STRING([--enable-streamio],[build Factory with stream IO])], 94 , 95 [enable_streamio=no]) 96 97 AC_ARG_ENABLE( 98 assertions, 99 [AS_HELP_STRING([--disable-assertions],[build Factory with no assertions])], 100 , 101 enable_assertions=yes) 102 103 AC_ARG_ENABLE( 104 timing, 105 [AS_HELP_STRING([--enable-timing],[build Factory so it will print timing information])], 106 , 107 enable_timing=no) 108 109 AC_ARG_ENABLE( 110 debugoutput, 111 [AS_HELP_STRING([--enable-debugoutput],[build Factory so it will print debugging information])], 112 , 113 enable_debugoutput=no) 134 114 135 115 AH_TEMPLATE([INT64], [Defenition for INT64]) -
gfanlib/configure.ac
r35564a5 r7d160bb 66 66 AC_C_INLINE 67 67 68 SING_CHECK_DEBUG 68 SING_RESET_FLAGS() 69 SING_CHECK_SET_ARGS() 70 69 71 70 72 #AC_MSG_RESULT($ac_cv_singuname) -
libpolys/configure.ac
r35564a5 r7d160bb 18 18 # - Check for CC and CXX but be careful about CFLAGS. 19 19 # 20 test "${CFLAGS+set}" = set || cflags_expl_set=no 20 SING_RESET_FLAGS() 21 SING_CHECK_SET_ARGS() 22 21 23 AC_PROG_CC 22 test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no23 24 AC_PROG_CXX 24 if test "x$GCC" != xyes && test "x$GXX" != xyes; then25 AC_MSG_WARN(you better use gcc to compile Factory)26 else27 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then28 AC_MSG_WARN([we use \`' as default for \`CXXFLAGS'29 (instead of the configure default \`-g -O')])30 fi31 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then32 AC_MSG_WARN([we use \`' as default for \`CFLAGS'33 (instead of the configure default \`-g -O')])34 fi35 fi36 37 25 AM_PROG_CC_C_O 38 26 AC_PROG_LN_S 39 27 AC_PROG_INSTALL 40 28 41 # AM_PROG_AR42 29 # Turn off shared libraries during beta-testing, since they 43 30 # make the build process take too long. … … 102 89 SING_CHECK_PLURAL 103 90 104 # CFLAGS105 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then106 CFLAGS=""107 fi108 109 # CXXFLAGS110 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then111 CXXFLAGS=""112 fi113 114 #if test "x$prefix" != xNONE; then115 # PREFIX="$prefix"116 #else117 # PREFIX="$ac_default_prefix"118 #fi119 120 SING_CHECK_DEBUG121 122 91 # AC_SUBST(PREFIX) 123 92 # AC_DEFINE_UNQUOTED(INSTALL_PREFIX,"$PREFIX",Prefix) -
m4/options.m4
r35564a5 r7d160bb 69 69 AC_MSG_RESULT($ENABLE_PLURAL) 70 70 ]) 71 72 73 74 AC_DEFUN([SING_CHECK_DEBUG], [75 ENABLE_DEBUG="no"76 77 AC_MSG_CHECKING([whether debugging checks should be embedded])78 79 AC_ARG_ENABLE([debug],80 AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),81 [if test "x$enableval" = "xyes"; then82 ENABLE_DEBUG="yes"83 fi])84 85 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)86 87 if test "x${ENABLE_DEBUG}" != xyes; then88 AC_MSG_RESULT([no])89 AC_DEFINE([OM_NDEBUG],1,"Disable OM Debug")90 AC_DEFINE([NDEBUG],1,"Disable Debug")91 else92 AC_MSG_RESULT([yes])93 fi94 ]) -
omalloc/configure.ac
r35564a5 r7d160bb 28 28 dnl help for configure 29 29 dnl 30 SING_CHECK_DEBUG 30 ###### SING_RESET_FLAGS() 31 ###### SING_CHECK_SET_ARGS() 31 32 32 33 AC_ARG_WITH( -
resources/configure.ac
r35564a5 r7d160bb 60 60 61 61 SING_CHECK_PIPE 62 SING_CHECK_DEBUG 62 SING_RESET_FLAGS() 63 SING_CHECK_SET_ARGS() 64 63 65 64 66 # CFLAGS -
xalloc/configure.ac
r35564a5 r7d160bb 24 24 LT_INIT 25 25 26 SING_CHECK_DEBUG 26 SING_RESET_FLAGS() 27 SING_CHECK_SET_ARGS() 28 27 29 28 30 AC_CONFIG_FILES([Makefile])
Note: See TracChangeset
for help on using the changeset viewer.