Changeset 575680 in git
- Timestamp:
- Jun 6, 1997, 1:11:14 PM (26 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- e8a30d706fbfe3265065f965770b3285a7e817b1
- Parents:
- 4e595a7b47d6ba4b8e2ca07d3de099932b5b9e33
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/configure.in
r4e595a7 r575680 1 dnl $Id: configure.in,v 1.1 1997-06-02 15:56:04 schmidt Exp $ 1 dnl $Id: configure.in,v 1.2 1997-06-06 11:11:14 schmidt Exp $ 2 2 3 dnl 3 4 dnl configure.in - process this file with autoconf to produce a configure script. … … 8 9 # 9 10 10 AC_REVISION($Id: configure.in,v 1. 1 1997-06-02 15:56:04 schmidt Exp $)11 AC_REVISION($Id: configure.in,v 1.2 1997-06-06 11:11:14 schmidt Exp $) 11 12 AC_INIT(canonicalform.cc) 12 13 AC_CONFIG_HEADER(config.h) … … 17 18 # 18 19 dnl 19 dnl - change version here. 20 dnl - change version here, do not believe the comment in the 21 dnl preceding lines. 20 22 dnl 21 23 factory_version="1.2c" … … 27 29 AC_ARG_WITH( 28 30 Singular, 29 [ --with-Singular build for use with computer algebra system Singular. 30 Note: all other --with/--enable-options (except 31 --enable-assertions) are ignored if --with-Singular 32 is specified.], 31 [ --with-Singular build for use with computer algebra system Singular.], 33 32 , 34 33 with_Singular=no) … … 36 35 AC_ARG_WITH( 37 36 memman, 38 [ --with-memman <=memman>specify factory memory manager.37 [ --with-memman(=<memman>) specify factory memory manager. 39 38 <memman> is either 'old' (default), 'new' or 40 39 'no' which means not to use the memory manager … … 50 49 fi ]) 51 50 51 AC_ARG_WITH( 52 gmp, 53 [ --with-gmp(=<gmp_inc_path>(,<gmp_lib_path>)) or 54 --with-builtingmp(=<gmp_inc_path>(,<gmp_lib_path>))], 55 [ if test "x$with_gmp" = xno; then 56 AC_MSG_WARN(you cannot build factory without gmp. 57 Option --without-gmp ignored) 58 with_gmp_specified=no 59 else 60 with_gmp_specified=yes 61 fi ], 62 with_gmp_specified=no) 63 64 dnl note that the help string is continued from AC_ARG_WITH(gmp, ...) so 65 dnl configure --help looks nice 66 AC_ARG_WITH( 67 builtingmp, 68 [ Specifies which gmp library to use (builtin or 69 standard gmp (default)) and where to find it.], 70 [ if test "x$with_builtingmp" = xno; then 71 AC_MSG_WARN(you cannot build factory without gmp. 72 Option --without-builtingmp ignored) 73 with_bgmp_specified=no 74 else 75 with_bgmp_specified=yes 76 fi ], 77 with_bgmp_specified=no) 78 52 79 AC_ARG_ENABLE( 53 80 streamio, 54 81 [ --disable-streamio build factory whithout streamio], 55 [ if test "x$with_Singular" = xyes && test "x$enable_streamio" != xno; then 56 AC_MSG_WARN(option --enable-streamio ignored with Singular) 57 enable_streamio=no 58 fi ], 82 , 59 83 [ if test "x$with_Singular" = xyes; then 60 84 enable_streamio=no … … 68 92 with --with-memman=new only. <level> may be either 69 93 'no' (default), 'normal', or 'full'.], 70 [ if test "x$with_memman" = xnew; then 71 if test "x$enable_memdebug" = xyes; then 72 enable_memdebug=normal 73 fi 74 else 75 if test "x$enable_memdebug" != xno; then 76 AC_MSG_WARN(option --enable-memdebug ignored) 77 enable_memdebug=no 78 fi 94 [ if test "x$with_memman" != xnew && test "x$enable_memdebug" != xno; then 95 AC_MSG_WARN(option --enable-memdebug ignored without new memory manager) 96 enable_memdebug=no 79 97 fi ], 80 98 enable_memdebug=no) … … 93 111 timing, 94 112 [ --enable-timing build factory so it will print timing information], 95 [ if test "x$with_Singular" = xyes && test "x$enable_timing" != xno; then 96 AC_MSG_WARN(option --enable-timing ignored with Singular); 97 enable_timing=no 98 fi ], 113 , 99 114 enable_timing=no) 100 115 … … 102 117 debugoutput, 103 118 [ --enable-debugoutput build factory so it will print debugging information], 104 [ if test "x$with_Singular" = xyes && test "x$enable_debugoutput" != xno; then 105 AC_MSG_WARN(option --enable-debugoutput ignored with Singular); 106 enable_debugoutput=no 107 fi ], 119 , 108 120 enable_debugoutput=no) 109 121 110 # 111 # - check for CC but be careful about CFLAGS. 122 AC_ARG_ENABLE( 123 gmp, 124 [ --enable-gmp together with --with-Singular means: installation 125 in process, be gracefull when there is no gmp.h], 126 [ if test "x$enable_gmp" != xno; then 127 gmp_in_installation=yes 128 fi ]) 129 130 # 131 # check the results of --with-gmp and --with-builtin-gmp 132 # 133 134 if test "x$with_gmp_specified" = xyes; then 135 if test "x$with_bgmp_specified" = xyes; then 136 AC_MSG_WARN(option --with-builtingmp ignored with option --with-gmp) 137 fi 138 gmp_builtin=no 139 else 140 if test "x$with_bgmp_specified" = xyes; then 141 with_gmp="$with_builtingmp" 142 gmp_builtin=yes 143 else 144 gmp_builtin=no 145 fi 146 fi 147 # at this moment, gmp_builtin describes which version to use 148 # and with_gmp where to find it 149 if test "x$with_gmp" = xyes \ 150 || test "x$with_gmp" = xno \ 151 || test "x$with_gmp" = x; then 152 gmp_in_installation=no 153 elif test "x$with_gmp" = 'x$(includedir)' \ 154 || test "x$with_gmp" = 'x${includedir}'; then 155 gmp_in_installation=yes 156 else 157 # this is were the real work is done 158 case "$with_gmp" in 159 *,*) 160 saveIFS="$IFS"; IFS="${IFS}," 161 set dummy $with_gmp 162 IFS="$saveIFS" 163 CPPFLAGS="$2 $CPPFLAGS" 164 LDFLAGS="$3 $LDFLAGS" ;; 165 *) 166 CPPFLAGS="$with_gmp $CPPFLAGS" 167 LDFLAGS="$with_gmp/../lib $LDFLAGS" ;; 168 esac 169 gmp_in_installation=no 170 fi 171 172 # 173 # - check for CC and CXX but be careful about CFLAGS. 112 174 # 113 175 114 176 test "${CFLAGS+set}" = set || cflags_expl_set=no 115 177 AC_PROG_CC 116 if test "x$GCC" != xyes; then117 AC_MSG_WARN(you better use gcc to compile factory)118 fi119 120 #121 # - check for CXX but be careful about CXXFLAGS.122 #123 124 178 test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no 125 179 AC_PROG_CXX 126 if test "x$G XX" != xyes; then180 if test "x$GCC" != xyes && test "x$GXX" != xyes; then 127 181 AC_MSG_WARN(you better use gcc to compile factory) 128 182 fi … … 134 188 AC_PROG_CXXCPP 135 189 AC_PROG_INSTALL 136 AC_PROG_LN_S137 190 AC_PROG_RANLIB 138 191 AC_PROG_MAKE_SET … … 154 207 # 155 208 156 AC_CHECK_LIB(gmp, mpz_init) 209 if test "x$gmp_in_installation" != xyes; then 210 AC_CHECK_LIB(gmp, mpz_init) 211 fi 157 212 AC_CHECK_LIB(m, sqrt) 158 213 … … 163 218 AC_LANG_CPLUSPLUS 164 219 165 AC_CHECK_HEADERS(gmp.h) 220 if test "x$gmp_in_installation" != xyes; then 221 AC_CHECK_HEADERS(gmp.h, , 222 [ AC_MSG_ERROR(gmp.h not found. Use option --with-gmp or --with-builtingmp 223 to specify path) ]) 224 fi 166 225 167 226 AC_CHECK_HEADERS(stdio.h stdlib.h string.h time.h math.h, , 168 227 [ AC_MSG_ERROR(standard C header files not found) ]) 169 228 170 dnl if test "x$enable_streamio" != xno; then 171 AC_CHECK_HEADERS(iostream.h strstream.h, , [ AC_MSG_ERROR(C++ header files not found) ]) 229 if test "x$enable_streamio" != xno; then 230 AC_CHECK_HEADERS(iostream.h strstream.h fstream.h, , 231 [ AC_MSG_ERROR(C++ header files not found) ]) 172 232 AC_CHECK_HEADERS(ctype.h, , [ AC_MSG_ERROR(standard C header files not found) ]) 173 dnlfi233 fi 174 234 175 235 if test "x$enable_timing" != xno; then … … 183 243 # 184 244 245 # cross-compiling ?! 185 246 AC_C_CROSS 247 if test "x$cross_compiling" = xyes; then 248 AC_MSG_WARN([you better specify a cache file to get the values for 249 cross-compiling right (call configure --cache-file=target.cache)]) 250 fi 186 251 187 252 AC_C_CONST 188 253 AC_C_INLINE 189 AC_CHECK_SIZEOF(int, 4)190 AC_CHECK_SIZEOF(void *, 4)191 254 192 255 # arithmetic shift … … 215 278 gftabledir='${datadir}/Singular/gftables' 216 279 expl_gftabledir="$expl_datadir/Singular/gftables" 217 tagtemplatedir='${includedir}/templates'218 280 templatedir="\${includedir}/templates" 219 281 else 220 282 gftabledir='${datadir}/factory/gftables' 221 283 expl_gftabledir="$expl_datadir/factory/gftables" 222 tagtemplatedir="\${includedir}/templates-$factory_version"223 284 templatedir="\${includedir}/templates" 224 285 fi … … 229 290 230 291 if test "x$with_Singular" = xyes; then 231 taglibfactory=libsingcf.a232 taglibmem=233 tagheaderfactory=factory.h234 tagfactoryconf=factoryconf.h235 236 292 libfactory=libsingcf.a 237 293 libmem=libcfmem.a … … 248 304 uninstalltargets=uninstallcf 249 305 else 250 taglibfactory="libcf-$factory_version.a"251 taglibmem="libcfmem-$factory_version.a"252 tagheaderfactory="factory-$factory_version.h"253 tagfactoryconf="factoryconf-$factory_version.h"254 255 306 libfactory=libcf.a 256 307 libmem=libcfmem.a … … 264 315 265 316 alltargets=cf 266 installtargets=installcf links267 uninstalltargets=uninstallcf links317 installtargets=installcf 318 uninstalltargets=uninstallcf 268 319 fi 269 320 … … 294 345 fi 295 346 296 #! gmp.h297 if test "x$ac_cv_header_gmp_h" != xyes; then298 AC_MSG_WARN([gmp.h not found. We will assume that you are configuring299 the gmp-package at the moment , so at compile time there will])300 CPPFLAGS="-I\$(includedir) $CPPFLAGS"301 fi302 303 # cross-compiling ?!304 if test "x$cross_compiling" = xyes; then305 AC_MSG_WARN([you better specify a cache file to get the values for306 cross-compiling right (call configure --cache-file=target.cache)])307 fi308 309 # sizeofs310 if test "x$ac_cv_sizeof_int" != x4 || \311 test "x$ac_cv_sizeof_void_p" != x4; then312 AC_MSG_ERROR(we need sizeof(int) == sizeof(void p) == 4)313 fi314 315 347 # arithmetic shift 316 348 if test "x$ac_cv_shift" = xyes; then 317 349 AC_DEFINE(HAS_ARITHMETIC_SHIFT) 350 fi 351 352 # gmp-stuff 353 if test "x$gmp_builtin" = xyes; then 354 AC_DEFINE(HAVE_BUILTIN_GMP) 355 fi 356 if test "x$gmp_in_installation" = xyes; then 357 CPPFLAGS="-I\$(includedir) $CPPFLAGS" 358 LDFLAGS="-L\$(libdir) -lgmp $LDFLAGS" 318 359 fi 319 360 … … 419 460 420 461 AC_SUBST(gftabledir) 421 AC_SUBST(tagtemplatedir)422 462 AC_SUBST(templatedir) 423 463 424 464 AC_SUBST(factory_version) 425 426 AC_SUBST(taglibfactory)427 AC_SUBST(taglibmem)428 AC_SUBST(tagheaderfactory)429 AC_SUBST(tagfactoryconf)430 465 431 466 AC_SUBST(libfactory)
Note: See TracChangeset
for help on using the changeset viewer.