[6afd7c] | 1 | #! /bin/sh |
---|
[492b69] | 2 | |
---|
[6afd7c] | 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
[492b69] | 4 | # Generated automatically using autoconf version 2.13 |
---|
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
---|
[6afd7c] | 6 | # |
---|
| 7 | # This configure script is free software; the Free Software Foundation |
---|
| 8 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 9 | |
---|
[492b69] | 10 | # Defaults: |
---|
| 11 | ac_help= |
---|
[6afd7c] | 12 | ac_default_prefix=/usr/local |
---|
[492b69] | 13 | # Any additions from configure.in: |
---|
[6afd7c] | 14 | ac_default_prefix=`pwd` |
---|
[492b69] | 15 | ac_help="$ac_help |
---|
| 16 | \ |
---|
| 17 | --with-tmpdir=DIR use DIR as temporary directory" |
---|
| 18 | ac_help="$ac_help |
---|
| 19 | \ |
---|
| 20 | --enable-PACKAGE configure and/or build PACKAGE |
---|
| 21 | --disable-PACKAGE do not configure and/or build PACKAGE |
---|
| 22 | where PACKAGE can be: |
---|
[25ed91] | 23 | omalloc omalloc memory managment" |
---|
[492b69] | 24 | ac_help="$ac_help |
---|
| 25 | \ |
---|
| 26 | gmp Gnu Multiple Precision package" |
---|
| 27 | ac_help="$ac_help |
---|
| 28 | \ |
---|
| 29 | MP Multi Protocol library" |
---|
| 30 | ac_help="$ac_help |
---|
| 31 | \ |
---|
| 32 | factory polynomial factorization library" |
---|
| 33 | ac_help="$ac_help |
---|
| 34 | \ |
---|
| 35 | libfac char set and modp poly factorization library" |
---|
| 36 | ac_help="$ac_help |
---|
| 37 | \ |
---|
| 38 | sgroup numerical semigroup computations" |
---|
| 39 | ac_help="$ac_help |
---|
| 40 | \ |
---|
| 41 | Singular CAS for Polynomial Computations" |
---|
| 42 | ac_help="$ac_help |
---|
| 43 | \ |
---|
| 44 | IntegerProgramming IntegerProgramming" |
---|
| 45 | ac_help="$ac_help |
---|
| 46 | \ |
---|
| 47 | Plural Plural" |
---|
| 48 | ac_help="$ac_help |
---|
| 49 | \ |
---|
| 50 | Texinfo Texinfo for info, texi2dvi, makeinfo" |
---|
| 51 | ac_help="$ac_help |
---|
| 52 | \ |
---|
| 53 | Texi2html Texinfo to HTML converter" |
---|
| 54 | ac_help="$ac_help |
---|
| 55 | \ |
---|
| 56 | doc Singular documentation" |
---|
| 57 | ac_help="$ac_help |
---|
| 58 | \ |
---|
| 59 | emacs emacs completion files" |
---|
| 60 | ac_help="$ac_help |
---|
| 61 | \ |
---|
| 62 | --with-PACKAGE use PACKAGE, provide dependent functionality |
---|
| 63 | --without-PACKAGE do not use PACKAGE, disable dependent functionality |
---|
| 64 | where PACKAGE can be: |
---|
| 65 | MP Multi Protocol library" |
---|
| 66 | ac_help="$ac_help |
---|
| 67 | \ |
---|
| 68 | factory polynomial factorization library" |
---|
| 69 | ac_help="$ac_help |
---|
| 70 | \ |
---|
| 71 | libfac char set and modp poly factorization library" |
---|
| 72 | ac_help="$ac_help |
---|
| 73 | \ |
---|
| 74 | --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic |
---|
[25ed91] | 75 | where PACKAGE can be gmp |
---|
[492b69] | 76 | All additional --enable and --with options are passed to subsequent calls |
---|
| 77 | to configure of the packages to be built. See also configure --help in |
---|
| 78 | these packages (resp. subdirs). " |
---|
[6afd7c] | 79 | |
---|
| 80 | # Initialize some variables set by options. |
---|
| 81 | # The variables have the same names as the options, with |
---|
| 82 | # dashes changed to underlines. |
---|
[492b69] | 83 | build=NONE |
---|
| 84 | cache_file=./config.cache |
---|
[6afd7c] | 85 | exec_prefix=NONE |
---|
[492b69] | 86 | host=NONE |
---|
[6afd7c] | 87 | no_create= |
---|
[492b69] | 88 | nonopt=NONE |
---|
[6afd7c] | 89 | no_recursion= |
---|
| 90 | prefix=NONE |
---|
| 91 | program_prefix=NONE |
---|
| 92 | program_suffix=NONE |
---|
| 93 | program_transform_name=s,x,x, |
---|
| 94 | silent= |
---|
| 95 | site= |
---|
| 96 | srcdir= |
---|
[492b69] | 97 | target=NONE |
---|
[6afd7c] | 98 | verbose= |
---|
| 99 | x_includes=NONE |
---|
| 100 | x_libraries=NONE |
---|
| 101 | bindir='${exec_prefix}/bin' |
---|
| 102 | sbindir='${exec_prefix}/sbin' |
---|
| 103 | libexecdir='${exec_prefix}/libexec' |
---|
| 104 | datadir='${prefix}/share' |
---|
| 105 | sysconfdir='${prefix}/etc' |
---|
| 106 | sharedstatedir='${prefix}/com' |
---|
| 107 | localstatedir='${prefix}/var' |
---|
| 108 | libdir='${exec_prefix}/lib' |
---|
| 109 | includedir='${prefix}/include' |
---|
| 110 | oldincludedir='/usr/include' |
---|
| 111 | infodir='${prefix}/info' |
---|
| 112 | mandir='${prefix}/man' |
---|
| 113 | |
---|
[492b69] | 114 | # Initialize some other variables. |
---|
| 115 | subdirs= |
---|
| 116 | MFLAGS= MAKEFLAGS= |
---|
| 117 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 118 | # Maximum number of lines to put in a shell here document. |
---|
| 119 | ac_max_here_lines=12 |
---|
| 120 | |
---|
[6afd7c] | 121 | ac_prev= |
---|
| 122 | for ac_option |
---|
| 123 | do |
---|
[492b69] | 124 | |
---|
[6afd7c] | 125 | # If the previous option needs an argument, assign it. |
---|
| 126 | if test -n "$ac_prev"; then |
---|
| 127 | eval "$ac_prev=\$ac_option" |
---|
| 128 | ac_prev= |
---|
| 129 | continue |
---|
| 130 | fi |
---|
| 131 | |
---|
[492b69] | 132 | case "$ac_option" in |
---|
| 133 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 134 | *) ac_optarg= ;; |
---|
| 135 | esac |
---|
[6afd7c] | 136 | |
---|
| 137 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 138 | |
---|
[492b69] | 139 | case "$ac_option" in |
---|
[6afd7c] | 140 | |
---|
| 141 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 142 | ac_prev=bindir ;; |
---|
| 143 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
[492b69] | 144 | bindir="$ac_optarg" ;; |
---|
[6afd7c] | 145 | |
---|
| 146 | -build | --build | --buil | --bui | --bu) |
---|
[492b69] | 147 | ac_prev=build ;; |
---|
[6afd7c] | 148 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
[492b69] | 149 | build="$ac_optarg" ;; |
---|
[6afd7c] | 150 | |
---|
| 151 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 152 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 153 | ac_prev=cache_file ;; |
---|
| 154 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 155 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
[492b69] | 156 | cache_file="$ac_optarg" ;; |
---|
[6afd7c] | 157 | |
---|
| 158 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 159 | ac_prev=datadir ;; |
---|
| 160 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 161 | | --da=*) |
---|
[492b69] | 162 | datadir="$ac_optarg" ;; |
---|
[6afd7c] | 163 | |
---|
| 164 | -disable-* | --disable-*) |
---|
[492b69] | 165 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
[6afd7c] | 166 | # Reject names that are not valid shell variable names. |
---|
[492b69] | 167 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 168 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 169 | fi |
---|
| 170 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 171 | eval "enable_${ac_feature}=no" ;; |
---|
[6afd7c] | 172 | |
---|
| 173 | -enable-* | --enable-*) |
---|
[492b69] | 174 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
[6afd7c] | 175 | # Reject names that are not valid shell variable names. |
---|
[492b69] | 176 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 177 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 178 | fi |
---|
| 179 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 180 | case "$ac_option" in |
---|
| 181 | *=*) ;; |
---|
[6afd7c] | 182 | *) ac_optarg=yes ;; |
---|
| 183 | esac |
---|
[492b69] | 184 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
[6afd7c] | 185 | |
---|
| 186 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 187 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 188 | | --exec | --exe | --ex) |
---|
| 189 | ac_prev=exec_prefix ;; |
---|
| 190 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 191 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 192 | | --exec=* | --exe=* | --ex=*) |
---|
[492b69] | 193 | exec_prefix="$ac_optarg" ;; |
---|
[6afd7c] | 194 | |
---|
| 195 | -gas | --gas | --ga | --g) |
---|
| 196 | # Obsolete; use --with-gas. |
---|
| 197 | with_gas=yes ;; |
---|
| 198 | |
---|
[492b69] | 199 | -help | --help | --hel | --he) |
---|
| 200 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 201 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 202 | cat << EOF |
---|
| 203 | Usage: configure [options] [host] |
---|
| 204 | Options: [defaults in brackets after descriptions] |
---|
| 205 | Configuration: |
---|
| 206 | --cache-file=FILE cache test results in FILE |
---|
| 207 | --help print this message |
---|
| 208 | --no-create do not create output files |
---|
| 209 | --quiet, --silent do not print \`checking...' messages |
---|
| 210 | --version print the version of autoconf that created configure |
---|
| 211 | Directory and file names: |
---|
| 212 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 213 | [$ac_default_prefix] |
---|
| 214 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 215 | [same as prefix] |
---|
| 216 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 217 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 218 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 219 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 220 | [PREFIX/share] |
---|
| 221 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 222 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 223 | [PREFIX/com] |
---|
| 224 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 225 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 226 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 227 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 228 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 229 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 230 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 231 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 232 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 233 | --program-transform-name=PROGRAM |
---|
| 234 | run sed PROGRAM on installed program names |
---|
| 235 | EOF |
---|
| 236 | cat << EOF |
---|
| 237 | Host type: |
---|
| 238 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 239 | --host=HOST configure for HOST [guessed] |
---|
| 240 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 241 | Features and packages: |
---|
| 242 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 243 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 244 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 245 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 246 | --x-includes=DIR X include files are in DIR |
---|
| 247 | --x-libraries=DIR X library files are in DIR |
---|
| 248 | EOF |
---|
| 249 | if test -n "$ac_help"; then |
---|
| 250 | echo "--enable and --with options recognized:$ac_help" |
---|
| 251 | fi |
---|
| 252 | exit 0 ;; |
---|
[6afd7c] | 253 | |
---|
| 254 | -host | --host | --hos | --ho) |
---|
[492b69] | 255 | ac_prev=host ;; |
---|
[6afd7c] | 256 | -host=* | --host=* | --hos=* | --ho=*) |
---|
[492b69] | 257 | host="$ac_optarg" ;; |
---|
[6afd7c] | 258 | |
---|
| 259 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 260 | | --includ | --inclu | --incl | --inc) |
---|
| 261 | ac_prev=includedir ;; |
---|
| 262 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 263 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
[492b69] | 264 | includedir="$ac_optarg" ;; |
---|
[6afd7c] | 265 | |
---|
| 266 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 267 | ac_prev=infodir ;; |
---|
| 268 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
[492b69] | 269 | infodir="$ac_optarg" ;; |
---|
[6afd7c] | 270 | |
---|
| 271 | -libdir | --libdir | --libdi | --libd) |
---|
| 272 | ac_prev=libdir ;; |
---|
| 273 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
[492b69] | 274 | libdir="$ac_optarg" ;; |
---|
[6afd7c] | 275 | |
---|
| 276 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 277 | | --libexe | --libex | --libe) |
---|
| 278 | ac_prev=libexecdir ;; |
---|
| 279 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 280 | | --libexe=* | --libex=* | --libe=*) |
---|
[492b69] | 281 | libexecdir="$ac_optarg" ;; |
---|
[6afd7c] | 282 | |
---|
| 283 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 284 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 285 | | --locals | --local | --loca | --loc | --lo) |
---|
| 286 | ac_prev=localstatedir ;; |
---|
| 287 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 288 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 289 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
[492b69] | 290 | localstatedir="$ac_optarg" ;; |
---|
[6afd7c] | 291 | |
---|
| 292 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 293 | ac_prev=mandir ;; |
---|
| 294 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
[492b69] | 295 | mandir="$ac_optarg" ;; |
---|
[6afd7c] | 296 | |
---|
| 297 | -nfp | --nfp | --nf) |
---|
| 298 | # Obsolete; use --without-fp. |
---|
| 299 | with_fp=no ;; |
---|
| 300 | |
---|
| 301 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
[492b69] | 302 | | --no-cr | --no-c) |
---|
[6afd7c] | 303 | no_create=yes ;; |
---|
| 304 | |
---|
| 305 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 306 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 307 | no_recursion=yes ;; |
---|
| 308 | |
---|
| 309 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 310 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 311 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 312 | ac_prev=oldincludedir ;; |
---|
| 313 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 314 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 315 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
[492b69] | 316 | oldincludedir="$ac_optarg" ;; |
---|
[6afd7c] | 317 | |
---|
| 318 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 319 | ac_prev=prefix ;; |
---|
| 320 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
[492b69] | 321 | prefix="$ac_optarg" ;; |
---|
[6afd7c] | 322 | |
---|
| 323 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 324 | | --program-pre | --program-pr | --program-p) |
---|
| 325 | ac_prev=program_prefix ;; |
---|
| 326 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 327 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
[492b69] | 328 | program_prefix="$ac_optarg" ;; |
---|
[6afd7c] | 329 | |
---|
| 330 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 331 | | --program-suf | --program-su | --program-s) |
---|
| 332 | ac_prev=program_suffix ;; |
---|
| 333 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 334 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
[492b69] | 335 | program_suffix="$ac_optarg" ;; |
---|
[6afd7c] | 336 | |
---|
| 337 | -program-transform-name | --program-transform-name \ |
---|
| 338 | | --program-transform-nam | --program-transform-na \ |
---|
| 339 | | --program-transform-n | --program-transform- \ |
---|
| 340 | | --program-transform | --program-transfor \ |
---|
| 341 | | --program-transfo | --program-transf \ |
---|
| 342 | | --program-trans | --program-tran \ |
---|
| 343 | | --progr-tra | --program-tr | --program-t) |
---|
| 344 | ac_prev=program_transform_name ;; |
---|
| 345 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 346 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 347 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 348 | | --program-transform=* | --program-transfor=* \ |
---|
| 349 | | --program-transfo=* | --program-transf=* \ |
---|
| 350 | | --program-trans=* | --program-tran=* \ |
---|
| 351 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
[492b69] | 352 | program_transform_name="$ac_optarg" ;; |
---|
[6afd7c] | 353 | |
---|
| 354 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 355 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 356 | silent=yes ;; |
---|
| 357 | |
---|
| 358 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 359 | ac_prev=sbindir ;; |
---|
| 360 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 361 | | --sbi=* | --sb=*) |
---|
[492b69] | 362 | sbindir="$ac_optarg" ;; |
---|
[6afd7c] | 363 | |
---|
| 364 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 365 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 366 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 367 | | --sha | --sh) |
---|
| 368 | ac_prev=sharedstatedir ;; |
---|
| 369 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 370 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 371 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 372 | | --sha=* | --sh=*) |
---|
[492b69] | 373 | sharedstatedir="$ac_optarg" ;; |
---|
[6afd7c] | 374 | |
---|
| 375 | -site | --site | --sit) |
---|
| 376 | ac_prev=site ;; |
---|
| 377 | -site=* | --site=* | --sit=*) |
---|
[492b69] | 378 | site="$ac_optarg" ;; |
---|
[6afd7c] | 379 | |
---|
| 380 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 381 | ac_prev=srcdir ;; |
---|
| 382 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
[492b69] | 383 | srcdir="$ac_optarg" ;; |
---|
[6afd7c] | 384 | |
---|
| 385 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 386 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 387 | ac_prev=sysconfdir ;; |
---|
| 388 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 389 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
[492b69] | 390 | sysconfdir="$ac_optarg" ;; |
---|
[6afd7c] | 391 | |
---|
| 392 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
[492b69] | 393 | ac_prev=target ;; |
---|
[6afd7c] | 394 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
[492b69] | 395 | target="$ac_optarg" ;; |
---|
[6afd7c] | 396 | |
---|
| 397 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 398 | verbose=yes ;; |
---|
| 399 | |
---|
[492b69] | 400 | -version | --version | --versio | --versi | --vers) |
---|
| 401 | echo "configure generated by autoconf version 2.13" |
---|
| 402 | exit 0 ;; |
---|
[6afd7c] | 403 | |
---|
| 404 | -with-* | --with-*) |
---|
[492b69] | 405 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
[6afd7c] | 406 | # Reject names that are not valid shell variable names. |
---|
[492b69] | 407 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 408 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 409 | fi |
---|
[6afd7c] | 410 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
[492b69] | 411 | case "$ac_option" in |
---|
| 412 | *=*) ;; |
---|
[6afd7c] | 413 | *) ac_optarg=yes ;; |
---|
| 414 | esac |
---|
[492b69] | 415 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
[6afd7c] | 416 | |
---|
| 417 | -without-* | --without-*) |
---|
[492b69] | 418 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
[6afd7c] | 419 | # Reject names that are not valid shell variable names. |
---|
[492b69] | 420 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 421 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 422 | fi |
---|
| 423 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 424 | eval "with_${ac_package}=no" ;; |
---|
[6afd7c] | 425 | |
---|
| 426 | --x) |
---|
| 427 | # Obsolete; use --with-x. |
---|
| 428 | with_x=yes ;; |
---|
| 429 | |
---|
| 430 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 431 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 432 | ac_prev=x_includes ;; |
---|
| 433 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 434 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
[492b69] | 435 | x_includes="$ac_optarg" ;; |
---|
[6afd7c] | 436 | |
---|
| 437 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 438 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 439 | ac_prev=x_libraries ;; |
---|
| 440 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 441 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
[492b69] | 442 | x_libraries="$ac_optarg" ;; |
---|
[6afd7c] | 443 | |
---|
[492b69] | 444 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
[6afd7c] | 445 | ;; |
---|
| 446 | |
---|
| 447 | *) |
---|
[492b69] | 448 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 449 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 450 | fi |
---|
| 451 | if test "x$nonopt" != xNONE; then |
---|
| 452 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 453 | fi |
---|
| 454 | nonopt="$ac_option" |
---|
[6afd7c] | 455 | ;; |
---|
| 456 | |
---|
| 457 | esac |
---|
| 458 | done |
---|
| 459 | |
---|
| 460 | if test -n "$ac_prev"; then |
---|
[492b69] | 461 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
[f84882] | 462 | fi |
---|
| 463 | |
---|
[492b69] | 464 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 465 | |
---|
| 466 | # File descriptor usage: |
---|
| 467 | # 0 standard input |
---|
| 468 | # 1 file creation |
---|
| 469 | # 2 errors and warnings |
---|
| 470 | # 3 some systems may open it to /dev/tty |
---|
| 471 | # 4 used on the Kubota Titan |
---|
| 472 | # 6 checking for... messages and results |
---|
| 473 | # 5 compiler messages saved in config.log |
---|
| 474 | if test "$silent" = yes; then |
---|
| 475 | exec 6>/dev/null |
---|
| 476 | else |
---|
| 477 | exec 6>&1 |
---|
| 478 | fi |
---|
| 479 | exec 5>./config.log |
---|
| 480 | |
---|
| 481 | echo "\ |
---|
| 482 | This file contains any messages produced by compilers while |
---|
| 483 | running configure, to aid debugging if configure makes a mistake. |
---|
| 484 | " 1>&5 |
---|
[f84882] | 485 | |
---|
[492b69] | 486 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 487 | # Also quote any args containing shell metacharacters. |
---|
| 488 | ac_configure_args= |
---|
| 489 | for ac_arg |
---|
[6afd7c] | 490 | do |
---|
[492b69] | 491 | case "$ac_arg" in |
---|
| 492 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 493 | | --no-cr | --no-c) ;; |
---|
| 494 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 495 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 496 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 497 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 498 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
[6afd7c] | 499 | esac |
---|
| 500 | done |
---|
| 501 | |
---|
[492b69] | 502 | # NLS nuisances. |
---|
| 503 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 504 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 505 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 506 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 507 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 508 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 509 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 510 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
[690e864] | 511 | |
---|
[492b69] | 512 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 513 | rm -rf conftest* confdefs.h |
---|
| 514 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 515 | echo > confdefs.h |
---|
[6afd7c] | 516 | |
---|
[492b69] | 517 | # A filename unique to this package, relative to the directory that |
---|
| 518 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 519 | ac_unique_file=kernel/matpol.h |
---|
[6afd7c] | 520 | |
---|
| 521 | # Find the source files, if location was not specified. |
---|
| 522 | if test -z "$srcdir"; then |
---|
| 523 | ac_srcdir_defaulted=yes |
---|
| 524 | # Try the directory containing this script, then its parent. |
---|
[492b69] | 525 | ac_prog=$0 |
---|
| 526 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 527 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
[6afd7c] | 528 | srcdir=$ac_confdir |
---|
| 529 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 530 | srcdir=.. |
---|
| 531 | fi |
---|
| 532 | else |
---|
| 533 | ac_srcdir_defaulted=no |
---|
| 534 | fi |
---|
| 535 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 536 | if test "$ac_srcdir_defaulted" = yes; then |
---|
[492b69] | 537 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
[6afd7c] | 538 | else |
---|
[492b69] | 539 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
[6afd7c] | 540 | fi |
---|
| 541 | fi |
---|
[492b69] | 542 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
[690e864] | 543 | |
---|
[492b69] | 544 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 545 | if test -z "$CONFIG_SITE"; then |
---|
| 546 | if test "x$prefix" != xNONE; then |
---|
| 547 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 548 | else |
---|
| 549 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 550 | fi |
---|
[6afd7c] | 551 | fi |
---|
[492b69] | 552 | for ac_site_file in $CONFIG_SITE; do |
---|
| 553 | if test -r "$ac_site_file"; then |
---|
| 554 | echo "loading site script $ac_site_file" |
---|
| 555 | . "$ac_site_file" |
---|
| 556 | fi |
---|
| 557 | done |
---|
[6afd7c] | 558 | |
---|
[492b69] | 559 | if test -r "$cache_file"; then |
---|
| 560 | echo "loading cache $cache_file" |
---|
| 561 | . $cache_file |
---|
| 562 | else |
---|
| 563 | echo "creating cache $cache_file" |
---|
| 564 | > $cache_file |
---|
[6afd7c] | 565 | fi |
---|
| 566 | |
---|
[492b69] | 567 | ac_ext=c |
---|
| 568 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 569 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 570 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 571 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 572 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 573 | |
---|
| 574 | ac_exeext= |
---|
| 575 | ac_objext=o |
---|
| 576 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 577 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 578 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 579 | ac_n= ac_c=' |
---|
| 580 | ' ac_t=' ' |
---|
| 581 | else |
---|
| 582 | ac_n=-n ac_c= ac_t= |
---|
| 583 | fi |
---|
| 584 | else |
---|
| 585 | ac_n= ac_c='\c' ac_t= |
---|
[f84882] | 586 | fi |
---|
[df723f] | 587 | |
---|
[a15090f] | 588 | |
---|
[df723f] | 589 | |
---|
[492b69] | 590 | pwd=`pwd` |
---|
[df723f] | 591 | |
---|
[492b69] | 592 | # make them to env variables |
---|
| 593 | # pass them indirectly to subsequent configures |
---|
[4a6242] | 594 | SINGULAR_MAJOR_VERSION=3 |
---|
[b4e3253] | 595 | SINGULAR_MINOR_VERSION=1 |
---|
[623a7d] | 596 | SINGULAR_SUB_VERSION=3 |
---|
[492b69] | 597 | VERSION_SEP="-" |
---|
| 598 | SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}" |
---|
| 599 | SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}" |
---|
| 600 | SINGULAR_RPM_VERSION="${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}" |
---|
[623a7d] | 601 | VERSION_DATE="March 2011" |
---|
[492b69] | 602 | SINGULAR_ROOT_DIR=$pwd |
---|
[a15090f] | 603 | |
---|
[492b69] | 604 | export SINGULAR_MINOR_VERSION |
---|
| 605 | export SINGULAR_MAJOR_VERSION |
---|
| 606 | export SINGULAR_SUB_VERSION |
---|
| 607 | export SINGULAR_VERSION |
---|
| 608 | export SINGULAR_RPM_VERSION |
---|
| 609 | export VERSION_DATE |
---|
| 610 | export SINGULAR_ROOT_DIR |
---|
[690e864] | 611 | |
---|
| 612 | |
---|
| 613 | |
---|
| 614 | |
---|
| 615 | |
---|
| 616 | |
---|
| 617 | |
---|
| 618 | |
---|
| 619 | # determine Makefiles to output |
---|
| 620 | OUTPUT_MAKEFILES="Makefile" |
---|
| 621 | if test -d "doc"; then |
---|
| 622 | OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES doc/Makefile doc/version.texi doc/uname.texi" |
---|
| 623 | fi |
---|
[460c1e1] | 624 | if test -d "emacs"; then |
---|
| 625 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/Makefile" |
---|
| 626 | fi |
---|
[8c8a76] | 627 | if test -d "IntegerProgramming"; then |
---|
| 628 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" IntegerProgramming/Makefile" |
---|
| 629 | fi |
---|
[08b7a76] | 630 | if test -d "Plural"; then |
---|
| 631 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" Plural/Makefile" |
---|
| 632 | fi |
---|
[a15090f] | 633 | if test -d "InstallShield"; then |
---|
| 634 | OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" InstallShield/Makefile InstallShield/Etc/Makefile InstallShield/Cygwin/Makefile InstallShield/Singular/Makefile InstallShield/Xemacs/Makefile" |
---|
| 635 | fi |
---|
[6afd7c] | 636 | |
---|
[9ead31] | 637 | |
---|
[492b69] | 638 | echo $ac_n "checking uname for singular""... $ac_c" 1>&6 |
---|
[25ed91] | 639 | echo "configure:640: checking uname for singular" >&5 |
---|
[492b69] | 640 | if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then |
---|
| 641 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[fe40293] | 642 | else |
---|
| 643 | ac_cv_singuname="unknown" |
---|
| 644 | if test -r "singuname.sh"; then |
---|
| 645 | if (/bin/sh singuname.sh >/dev/null 2>&1) then |
---|
| 646 | ac_cv_singuname=`/bin/sh singuname.sh` |
---|
| 647 | fi |
---|
| 648 | fi |
---|
[6afd7c] | 649 | |
---|
[fe40293] | 650 | fi |
---|
| 651 | |
---|
[492b69] | 652 | echo "$ac_t""$ac_cv_singuname" 1>&6 |
---|
[fe40293] | 653 | if test "$ac_cv_singuname" = unknown; then |
---|
[f02645b] | 654 | { echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2; } |
---|
[fe40293] | 655 | fi |
---|
[f02645b] | 656 | SINGUNAME=$ac_cv_singuname |
---|
[6afd7c] | 657 | |
---|
[c30f2eb] | 658 | SING_UNAME=`echo $SINGUNAME | tr '-' '_' ` |
---|
| 659 | |
---|
| 660 | |
---|
[55c796] | 661 | |
---|
[074171] | 662 | if test "${CXXFLAGS+set}" != set; then |
---|
| 663 | ac_cxxflags_set=no |
---|
| 664 | CXXFLAGS="-O" |
---|
| 665 | fi |
---|
| 666 | if test "${CFLAGS+set}" != set; then |
---|
| 667 | CFLAGS="-O" |
---|
| 668 | ac_cflags_set=no |
---|
| 669 | fi |
---|
| 670 | |
---|
[492b69] | 671 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
[6afd7c] | 672 | set dummy gcc; ac_word=$2 |
---|
[492b69] | 673 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[074171] | 674 | echo "configure:677: checking for $ac_word" >&5 |
---|
[492b69] | 675 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 676 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 677 | else |
---|
| 678 | if test -n "$CC"; then |
---|
| 679 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 680 | else |
---|
[492b69] | 681 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 682 | ac_dummy="$PATH" |
---|
| 683 | for ac_dir in $ac_dummy; do |
---|
| 684 | test -z "$ac_dir" && ac_dir=. |
---|
| 685 | if test -f $ac_dir/$ac_word; then |
---|
| 686 | ac_cv_prog_CC="gcc" |
---|
| 687 | break |
---|
| 688 | fi |
---|
| 689 | done |
---|
| 690 | IFS="$ac_save_ifs" |
---|
[6afd7c] | 691 | fi |
---|
| 692 | fi |
---|
[492b69] | 693 | CC="$ac_cv_prog_CC" |
---|
[6afd7c] | 694 | if test -n "$CC"; then |
---|
[492b69] | 695 | echo "$ac_t""$CC" 1>&6 |
---|
[690e864] | 696 | else |
---|
[492b69] | 697 | echo "$ac_t""no" 1>&6 |
---|
[690e864] | 698 | fi |
---|
| 699 | |
---|
[6afd7c] | 700 | if test -z "$CC"; then |
---|
| 701 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 702 | set dummy cc; ac_word=$2 |
---|
[492b69] | 703 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[074171] | 704 | echo "configure:707: checking for $ac_word" >&5 |
---|
[492b69] | 705 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 706 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 707 | else |
---|
| 708 | if test -n "$CC"; then |
---|
| 709 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 710 | else |
---|
[492b69] | 711 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
[6afd7c] | 712 | ac_prog_rejected=no |
---|
[492b69] | 713 | ac_dummy="$PATH" |
---|
| 714 | for ac_dir in $ac_dummy; do |
---|
| 715 | test -z "$ac_dir" && ac_dir=. |
---|
| 716 | if test -f $ac_dir/$ac_word; then |
---|
| 717 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 718 | ac_prog_rejected=yes |
---|
| 719 | continue |
---|
| 720 | fi |
---|
| 721 | ac_cv_prog_CC="cc" |
---|
| 722 | break |
---|
| 723 | fi |
---|
| 724 | done |
---|
| 725 | IFS="$ac_save_ifs" |
---|
[6afd7c] | 726 | if test $ac_prog_rejected = yes; then |
---|
| 727 | # We found a bogon in the path, so make sure we never use it. |
---|
| 728 | set dummy $ac_cv_prog_CC |
---|
| 729 | shift |
---|
[492b69] | 730 | if test $# -gt 0; then |
---|
[6afd7c] | 731 | # We chose a different compiler from the bogus one. |
---|
| 732 | # However, it has the same basename, so the bogon will be chosen |
---|
| 733 | # first if we set CC to just the basename; use the full file name. |
---|
| 734 | shift |
---|
[492b69] | 735 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 736 | shift |
---|
| 737 | ac_cv_prog_CC="$@" |
---|
[6afd7c] | 738 | fi |
---|
| 739 | fi |
---|
| 740 | fi |
---|
| 741 | fi |
---|
[492b69] | 742 | CC="$ac_cv_prog_CC" |
---|
[6afd7c] | 743 | if test -n "$CC"; then |
---|
[492b69] | 744 | echo "$ac_t""$CC" 1>&6 |
---|
[6afd7c] | 745 | else |
---|
[492b69] | 746 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 747 | fi |
---|
| 748 | |
---|
[492b69] | 749 | if test -z "$CC"; then |
---|
| 750 | case "`uname -s`" in |
---|
| 751 | *win32* | *WIN32*) |
---|
| 752 | # Extract the first word of "cl", so it can be a program name with args. |
---|
| 753 | set dummy cl; ac_word=$2 |
---|
| 754 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[074171] | 755 | echo "configure:758: checking for $ac_word" >&5 |
---|
[492b69] | 756 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 757 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[aac46c] | 758 | else |
---|
| 759 | if test -n "$CC"; then |
---|
| 760 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 761 | else |
---|
[492b69] | 762 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 763 | ac_dummy="$PATH" |
---|
| 764 | for ac_dir in $ac_dummy; do |
---|
| 765 | test -z "$ac_dir" && ac_dir=. |
---|
| 766 | if test -f $ac_dir/$ac_word; then |
---|
| 767 | ac_cv_prog_CC="cl" |
---|
| 768 | break |
---|
| 769 | fi |
---|
| 770 | done |
---|
| 771 | IFS="$ac_save_ifs" |
---|
[aac46c] | 772 | fi |
---|
| 773 | fi |
---|
[492b69] | 774 | CC="$ac_cv_prog_CC" |
---|
[aac46c] | 775 | if test -n "$CC"; then |
---|
[492b69] | 776 | echo "$ac_t""$CC" 1>&6 |
---|
[aac46c] | 777 | else |
---|
[492b69] | 778 | echo "$ac_t""no" 1>&6 |
---|
[d432e74] | 779 | fi |
---|
[492b69] | 780 | ;; |
---|
| 781 | esac |
---|
[690e864] | 782 | fi |
---|
[492b69] | 783 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
[d432e74] | 784 | fi |
---|
| 785 | |
---|
[492b69] | 786 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[074171] | 787 | echo "configure:790: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
[d432e74] | 788 | |
---|
[492b69] | 789 | ac_ext=c |
---|
| 790 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 791 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 792 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 793 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 794 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 795 | |
---|
| 796 | cat > conftest.$ac_ext << EOF |
---|
| 797 | |
---|
[074171] | 798 | #line 801 "configure" |
---|
[492b69] | 799 | #include "confdefs.h" |
---|
| 800 | |
---|
| 801 | main(){return(0);} |
---|
| 802 | EOF |
---|
[074171] | 803 | if { (eval echo configure:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 804 | ac_cv_prog_cc_works=yes |
---|
| 805 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 806 | if (./conftest; exit) 2>/dev/null; then |
---|
| 807 | ac_cv_prog_cc_cross=no |
---|
[690e864] | 808 | else |
---|
[492b69] | 809 | ac_cv_prog_cc_cross=yes |
---|
[690e864] | 810 | fi |
---|
[492b69] | 811 | else |
---|
| 812 | echo "configure: failed program was:" >&5 |
---|
| 813 | cat conftest.$ac_ext >&5 |
---|
| 814 | ac_cv_prog_cc_works=no |
---|
[f84882] | 815 | fi |
---|
[492b69] | 816 | rm -fr conftest* |
---|
| 817 | ac_ext=c |
---|
| 818 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 819 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 820 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 821 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 822 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 823 | |
---|
| 824 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 825 | if test $ac_cv_prog_cc_works = no; then |
---|
| 826 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 827 | fi |
---|
| 828 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[074171] | 829 | echo "configure:832: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[492b69] | 830 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 831 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 832 | |
---|
| 833 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
[074171] | 834 | echo "configure:837: checking whether we are using GNU C" >&5 |
---|
[492b69] | 835 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 836 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 837 | else |
---|
| 838 | cat > conftest.c <<EOF |
---|
| 839 | #ifdef __GNUC__ |
---|
| 840 | yes; |
---|
| 841 | #endif |
---|
| 842 | EOF |
---|
[074171] | 843 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[492b69] | 844 | ac_cv_prog_gcc=yes |
---|
[690e864] | 845 | else |
---|
[492b69] | 846 | ac_cv_prog_gcc=no |
---|
| 847 | fi |
---|
| 848 | fi |
---|
| 849 | |
---|
| 850 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 851 | |
---|
| 852 | if test $ac_cv_prog_gcc = yes; then |
---|
| 853 | GCC=yes |
---|
[f84882] | 854 | else |
---|
[492b69] | 855 | GCC= |
---|
| 856 | fi |
---|
[690e864] | 857 | |
---|
[492b69] | 858 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 859 | ac_save_CFLAGS="$CFLAGS" |
---|
| 860 | CFLAGS= |
---|
| 861 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
[074171] | 862 | echo "configure:865: checking whether ${CC-cc} accepts -g" >&5 |
---|
[492b69] | 863 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 864 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 865 | else |
---|
| 866 | echo 'void f(){}' > conftest.c |
---|
| 867 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
[2189fb] | 868 | ac_cv_prog_cc_g=yes |
---|
[6afd7c] | 869 | else |
---|
[492b69] | 870 | ac_cv_prog_cc_g=no |
---|
[6afd7c] | 871 | fi |
---|
[492b69] | 872 | rm -f conftest* |
---|
| 873 | |
---|
[690e864] | 874 | fi |
---|
[492b69] | 875 | |
---|
| 876 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
[aac46c] | 877 | if test "$ac_test_CFLAGS" = set; then |
---|
[492b69] | 878 | CFLAGS="$ac_save_CFLAGS" |
---|
[aac46c] | 879 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 880 | if test "$GCC" = yes; then |
---|
[2189fb] | 881 | CFLAGS="-g -O2" |
---|
| 882 | else |
---|
[aac46c] | 883 | CFLAGS="-g" |
---|
[9ead31] | 884 | fi |
---|
[8f659dc] | 885 | else |
---|
[aac46c] | 886 | if test "$GCC" = yes; then |
---|
| 887 | CFLAGS="-O2" |
---|
| 888 | else |
---|
| 889 | CFLAGS= |
---|
| 890 | fi |
---|
[6afd7c] | 891 | fi |
---|
[690e864] | 892 | |
---|
[492b69] | 893 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
[074171] | 894 | echo "configure:897: checking how to run the C preprocessor" >&5 |
---|
[6afd7c] | 895 | # On Suns, sometimes $CPP names a directory. |
---|
| 896 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 897 | CPP= |
---|
| 898 | fi |
---|
| 899 | if test -z "$CPP"; then |
---|
[492b69] | 900 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
| 901 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 902 | else |
---|
[492b69] | 903 | # This must be in double quotes, not single quotes, because CPP may get |
---|
| 904 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
| 905 | CPP="${CC-cc} -E" |
---|
| 906 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 907 | # not just through cpp. |
---|
| 908 | cat > conftest.$ac_ext <<EOF |
---|
[074171] | 909 | #line 912 "configure" |
---|
[492b69] | 910 | #include "confdefs.h" |
---|
| 911 | #include <assert.h> |
---|
| 912 | Syntax Error |
---|
| 913 | EOF |
---|
| 914 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[074171] | 915 | { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
[492b69] | 916 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 917 | if test -z "$ac_err"; then |
---|
[f84882] | 918 | : |
---|
[aac46c] | 919 | else |
---|
[492b69] | 920 | echo "$ac_err" >&5 |
---|
| 921 | echo "configure: failed program was:" >&5 |
---|
| 922 | cat conftest.$ac_ext >&5 |
---|
| 923 | rm -rf conftest* |
---|
| 924 | CPP="${CC-cc} -E -traditional-cpp" |
---|
| 925 | cat > conftest.$ac_ext <<EOF |
---|
[074171] | 926 | #line 929 "configure" |
---|
[492b69] | 927 | #include "confdefs.h" |
---|
| 928 | #include <assert.h> |
---|
| 929 | Syntax Error |
---|
| 930 | EOF |
---|
| 931 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[074171] | 932 | { (eval echo configure:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
[492b69] | 933 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 934 | if test -z "$ac_err"; then |
---|
| 935 | : |
---|
[690e864] | 936 | else |
---|
[492b69] | 937 | echo "$ac_err" >&5 |
---|
| 938 | echo "configure: failed program was:" >&5 |
---|
| 939 | cat conftest.$ac_ext >&5 |
---|
| 940 | rm -rf conftest* |
---|
| 941 | CPP="${CC-cc} -nologo -E" |
---|
| 942 | cat > conftest.$ac_ext <<EOF |
---|
[074171] | 943 | #line 946 "configure" |
---|
[492b69] | 944 | #include "confdefs.h" |
---|
| 945 | #include <assert.h> |
---|
| 946 | Syntax Error |
---|
| 947 | EOF |
---|
| 948 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[074171] | 949 | { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
[492b69] | 950 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 951 | if test -z "$ac_err"; then |
---|
| 952 | : |
---|
[690e864] | 953 | else |
---|
[492b69] | 954 | echo "$ac_err" >&5 |
---|
| 955 | echo "configure: failed program was:" >&5 |
---|
| 956 | cat conftest.$ac_ext >&5 |
---|
| 957 | rm -rf conftest* |
---|
| 958 | CPP=/lib/cpp |
---|
[690e864] | 959 | fi |
---|
[492b69] | 960 | rm -f conftest* |
---|
[690e864] | 961 | fi |
---|
[492b69] | 962 | rm -f conftest* |
---|
[f84882] | 963 | fi |
---|
[492b69] | 964 | rm -f conftest* |
---|
| 965 | ac_cv_prog_CPP="$CPP" |
---|
[6afd7c] | 966 | fi |
---|
[492b69] | 967 | CPP="$ac_cv_prog_CPP" |
---|
[690e864] | 968 | else |
---|
[492b69] | 969 | ac_cv_prog_CPP="$CPP" |
---|
[690e864] | 970 | fi |
---|
[492b69] | 971 | echo "$ac_t""$CPP" 1>&6 |
---|
[6afd7c] | 972 | |
---|
[354f3b] | 973 | ac_aux_dir= |
---|
| 974 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 975 | if test -f $ac_dir/install-sh; then |
---|
| 976 | ac_aux_dir=$ac_dir |
---|
| 977 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 978 | break |
---|
| 979 | elif test -f $ac_dir/install.sh; then |
---|
| 980 | ac_aux_dir=$ac_dir |
---|
| 981 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 982 | break |
---|
| 983 | fi |
---|
| 984 | done |
---|
| 985 | if test -z "$ac_aux_dir"; then |
---|
[492b69] | 986 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
[354f3b] | 987 | fi |
---|
[492b69] | 988 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 989 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 990 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
[354f3b] | 991 | |
---|
| 992 | # Find a good install program. We prefer a C program (faster), |
---|
| 993 | # so one script is as good as another. But avoid the broken or |
---|
| 994 | # incompatible versions: |
---|
| 995 | # SysV /etc/install, /usr/sbin/install |
---|
| 996 | # SunOS /usr/etc/install |
---|
| 997 | # IRIX /sbin/install |
---|
| 998 | # AIX /bin/install |
---|
[aac46c] | 999 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
[354f3b] | 1000 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1001 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1002 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
[492b69] | 1003 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
[074171] | 1004 | echo "configure:1007: checking for a BSD compatible install" >&5 |
---|
[354f3b] | 1005 | if test -z "$INSTALL"; then |
---|
[492b69] | 1006 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 1007 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1008 | else |
---|
| 1009 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
| 1010 | for ac_dir in $PATH; do |
---|
| 1011 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1012 | case "$ac_dir/" in |
---|
| 1013 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 1014 | *) |
---|
| 1015 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1016 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1017 | # by default. |
---|
| 1018 | for ac_prog in ginstall scoinst install; do |
---|
| 1019 | if test -f $ac_dir/$ac_prog; then |
---|
[f84882] | 1020 | if test $ac_prog = install && |
---|
[492b69] | 1021 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
[f84882] | 1022 | # AIX install. It has an incompatible calling convention. |
---|
| 1023 | : |
---|
| 1024 | else |
---|
[492b69] | 1025 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 1026 | break 2 |
---|
[f84882] | 1027 | fi |
---|
| 1028 | fi |
---|
[354f3b] | 1029 | done |
---|
[492b69] | 1030 | ;; |
---|
| 1031 | esac |
---|
| 1032 | done |
---|
| 1033 | IFS="$ac_save_IFS" |
---|
[354f3b] | 1034 | |
---|
| 1035 | fi |
---|
| 1036 | if test "${ac_cv_path_install+set}" = set; then |
---|
[492b69] | 1037 | INSTALL="$ac_cv_path_install" |
---|
[354f3b] | 1038 | else |
---|
| 1039 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1040 | # path for INSTALL within a source directory, because that will |
---|
| 1041 | # break other packages using the cache if that directory is |
---|
| 1042 | # removed, or if the path is relative. |
---|
[492b69] | 1043 | INSTALL="$ac_install_sh" |
---|
[354f3b] | 1044 | fi |
---|
| 1045 | fi |
---|
[492b69] | 1046 | echo "$ac_t""$INSTALL" 1>&6 |
---|
[354f3b] | 1047 | |
---|
| 1048 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1049 | # It thinks the first close brace ends the variable substitution. |
---|
| 1050 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1051 | |
---|
[492b69] | 1052 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
[aac46c] | 1053 | |
---|
[354f3b] | 1054 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1055 | |
---|
[492b69] | 1056 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
---|
[074171] | 1057 | echo "configure:1060: checking for AIX" >&5 |
---|
[492b69] | 1058 | cat > conftest.$ac_ext <<EOF |
---|
[074171] | 1059 | #line 1062 "configure" |
---|
[492b69] | 1060 | #include "confdefs.h" |
---|
[6afd7c] | 1061 | #ifdef _AIX |
---|
| 1062 | yes |
---|
| 1063 | #endif |
---|
| 1064 | |
---|
[492b69] | 1065 | EOF |
---|
[6afd7c] | 1066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
[492b69] | 1067 | egrep "yes" >/dev/null 2>&1; then |
---|
| 1068 | rm -rf conftest* |
---|
| 1069 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
---|
[6afd7c] | 1070 | #define _ALL_SOURCE 1 |
---|
[492b69] | 1071 | EOF |
---|
[6afd7c] | 1072 | |
---|
| 1073 | else |
---|
[492b69] | 1074 | rm -rf conftest* |
---|
| 1075 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 1076 | fi |
---|
| 1077 | rm -f conftest* |
---|
| 1078 | |
---|
| 1079 | |
---|
[492b69] | 1080 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
---|
| 1081 | do |
---|
| 1082 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1083 | set dummy $ac_prog; ac_word=$2 |
---|
| 1084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[074171] | 1085 | echo "configure:1088: checking for $ac_word" >&5 |
---|
[492b69] | 1086 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
---|
| 1087 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[8c8a76] | 1088 | else |
---|
| 1089 | if test -n "$CXX"; then |
---|
| 1090 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
[492b69] | 1091 | else |
---|
| 1092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1093 | ac_dummy="$PATH" |
---|
| 1094 | for ac_dir in $ac_dummy; do |
---|
| 1095 | test -z "$ac_dir" && ac_dir=. |
---|
| 1096 | if test -f $ac_dir/$ac_word; then |
---|
| 1097 | ac_cv_prog_CXX="$ac_prog" |
---|
| 1098 | break |
---|
| 1099 | fi |
---|
| 1100 | done |
---|
| 1101 | IFS="$ac_save_ifs" |
---|
[8c8a76] | 1102 | fi |
---|
| 1103 | fi |
---|
[492b69] | 1104 | CXX="$ac_cv_prog_CXX" |
---|
[8c8a76] | 1105 | if test -n "$CXX"; then |
---|
[492b69] | 1106 | echo "$ac_t""$CXX" 1>&6 |
---|
[8c8a76] | 1107 | else |
---|
[492b69] | 1108 | echo "$ac_t""no" 1>&6 |
---|
[8c8a76] | 1109 | fi |
---|
| 1110 | |
---|
[492b69] | 1111 | test -n "$CXX" && break |
---|
[690e864] | 1112 | done |
---|
[492b69] | 1113 | test -n "$CXX" || CXX="gcc" |
---|
[690e864] | 1114 | |
---|
[492b69] | 1115 | |
---|
| 1116 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
[074171] | 1117 | echo "configure:1120: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
---|
[492b69] | 1118 | |
---|
| 1119 | ac_ext=C |
---|
| 1120 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1121 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1122 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1123 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1124 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 1125 | |
---|
| 1126 | cat > conftest.$ac_ext << EOF |
---|
| 1127 | |
---|
[074171] | 1128 | #line 1131 "configure" |
---|
[492b69] | 1129 | #include "confdefs.h" |
---|
| 1130 | |
---|
| 1131 | int main(){return(0);} |
---|
| 1132 | EOF |
---|
[074171] | 1133 | if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1134 | ac_cv_prog_cxx_works=yes |
---|
| 1135 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1136 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1137 | ac_cv_prog_cxx_cross=no |
---|
| 1138 | else |
---|
| 1139 | ac_cv_prog_cxx_cross=yes |
---|
| 1140 | fi |
---|
| 1141 | else |
---|
| 1142 | echo "configure: failed program was:" >&5 |
---|
| 1143 | cat conftest.$ac_ext >&5 |
---|
| 1144 | ac_cv_prog_cxx_works=no |
---|
[f84882] | 1145 | fi |
---|
[492b69] | 1146 | rm -fr conftest* |
---|
| 1147 | ac_ext=c |
---|
| 1148 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1149 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1150 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1151 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1152 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1153 | |
---|
| 1154 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
---|
| 1155 | if test $ac_cv_prog_cxx_works = no; then |
---|
| 1156 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1157 | fi |
---|
| 1158 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
[074171] | 1159 | echo "configure:1162: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
[492b69] | 1160 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
---|
| 1161 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 1162 | |
---|
| 1163 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
---|
[074171] | 1164 | echo "configure:1167: checking whether we are using GNU C++" >&5 |
---|
[492b69] | 1165 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
---|
| 1166 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1167 | else |
---|
| 1168 | cat > conftest.C <<EOF |
---|
| 1169 | #ifdef __GNUC__ |
---|
| 1170 | yes; |
---|
| 1171 | #endif |
---|
| 1172 | EOF |
---|
[074171] | 1173 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
[492b69] | 1174 | ac_cv_prog_gxx=yes |
---|
[f84882] | 1175 | else |
---|
[492b69] | 1176 | ac_cv_prog_gxx=no |
---|
| 1177 | fi |
---|
[f84882] | 1178 | fi |
---|
[d432e74] | 1179 | |
---|
[492b69] | 1180 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
---|
[690e864] | 1181 | |
---|
[492b69] | 1182 | if test $ac_cv_prog_gxx = yes; then |
---|
| 1183 | GXX=yes |
---|
[8c8a76] | 1184 | else |
---|
[492b69] | 1185 | GXX= |
---|
| 1186 | fi |
---|
[f84882] | 1187 | |
---|
[492b69] | 1188 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
---|
| 1189 | ac_save_CXXFLAGS="$CXXFLAGS" |
---|
| 1190 | CXXFLAGS= |
---|
| 1191 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
---|
[074171] | 1192 | echo "configure:1195: checking whether ${CXX-g++} accepts -g" >&5 |
---|
[492b69] | 1193 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
---|
| 1194 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1195 | else |
---|
| 1196 | echo 'void f(){}' > conftest.cc |
---|
| 1197 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
---|
| 1198 | ac_cv_prog_cxx_g=yes |
---|
| 1199 | else |
---|
| 1200 | ac_cv_prog_cxx_g=no |
---|
[8c8a76] | 1201 | fi |
---|
[492b69] | 1202 | rm -f conftest* |
---|
| 1203 | |
---|
[690e864] | 1204 | fi |
---|
[492b69] | 1205 | |
---|
| 1206 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
---|
[8c8a76] | 1207 | if test "$ac_test_CXXFLAGS" = set; then |
---|
[492b69] | 1208 | CXXFLAGS="$ac_save_CXXFLAGS" |
---|
[8c8a76] | 1209 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 1210 | if test "$GXX" = yes; then |
---|
| 1211 | CXXFLAGS="-g -O2" |
---|
| 1212 | else |
---|
| 1213 | CXXFLAGS="-g" |
---|
| 1214 | fi |
---|
| 1215 | else |
---|
| 1216 | if test "$GXX" = yes; then |
---|
| 1217 | CXXFLAGS="-O2" |
---|
| 1218 | else |
---|
| 1219 | CXXFLAGS= |
---|
| 1220 | fi |
---|
| 1221 | fi |
---|
| 1222 | |
---|
| 1223 | |
---|
[5ff7d2] | 1224 | SING_CC=${CC}; export SING_CC |
---|
| 1225 | SING_CXX=${CXX}; export SING_CXX |
---|
| 1226 | |
---|
[8c8a76] | 1227 | # check whether the compiler accepts -pipe |
---|
[492b69] | 1228 | echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6 |
---|
[074171] | 1229 | echo "configure:1232: checking whether compiler accepts -pipe" >&5 |
---|
[8c8a76] | 1230 | temp_cflags=${CFLAGS} |
---|
| 1231 | CFLAGS="${CFLAGS} -pipe" |
---|
[492b69] | 1232 | if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then |
---|
| 1233 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[8c8a76] | 1234 | else |
---|
[492b69] | 1235 | cat > conftest.$ac_ext <<EOF |
---|
[074171] | 1236 | #line 1239 "configure" |
---|
[492b69] | 1237 | #include "confdefs.h" |
---|
| 1238 | |
---|
| 1239 | int main() { |
---|
[690e864] | 1240 | |
---|
[492b69] | 1241 | ; return 0; } |
---|
| 1242 | EOF |
---|
[074171] | 1243 | if { (eval echo configure:1246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
[492b69] | 1244 | rm -rf conftest* |
---|
| 1245 | ac_cv_cxx_have_pipe=yes |
---|
| 1246 | else |
---|
| 1247 | echo "configure: failed program was:" >&5 |
---|
| 1248 | cat conftest.$ac_ext >&5 |
---|
| 1249 | rm -rf conftest* |
---|
| 1250 | ac_cv_cxx_have_pipe=no |
---|
[8c8a76] | 1251 | fi |
---|
[492b69] | 1252 | rm -f conftest* |
---|
[8c8a76] | 1253 | |
---|
| 1254 | fi |
---|
| 1255 | |
---|
[492b69] | 1256 | echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6 |
---|
[8c8a76] | 1257 | CFLAGS=${temp_cflags} |
---|
| 1258 | if test "${ac_cv_cxx_have_pipe}" != yes; then |
---|
| 1259 | PIPE= |
---|
| 1260 | else |
---|
| 1261 | PIPE="-pipe" |
---|
| 1262 | fi |
---|
| 1263 | |
---|
[6afd7c] | 1264 | |
---|
[3d8259] | 1265 | for ac_prog in perl5 perl |
---|
| 1266 | do |
---|
[492b69] | 1267 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
[3d8259] | 1268 | set dummy $ac_prog; ac_word=$2 |
---|
[492b69] | 1269 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[074171] | 1270 | echo "configure:1273: checking for $ac_word" >&5 |
---|
[492b69] | 1271 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then |
---|
| 1272 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[3d8259] | 1273 | else |
---|
| 1274 | if test -n "$PERL"; then |
---|
| 1275 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
---|
| 1276 | else |
---|
[492b69] | 1277 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1278 | ac_dummy="$PATH" |
---|
| 1279 | for ac_dir in $ac_dummy; do |
---|
| 1280 | test -z "$ac_dir" && ac_dir=. |
---|
| 1281 | if test -f $ac_dir/$ac_word; then |
---|
| 1282 | ac_cv_prog_PERL="$ac_prog" |
---|
| 1283 | break |
---|
| 1284 | fi |
---|
| 1285 | done |
---|
| 1286 | IFS="$ac_save_ifs" |
---|
[3d8259] | 1287 | fi |
---|
| 1288 | fi |
---|
[492b69] | 1289 | PERL="$ac_cv_prog_PERL" |
---|
[3d8259] | 1290 | if test -n "$PERL"; then |
---|
[492b69] | 1291 | echo "$ac_t""$PERL" 1>&6 |
---|
[3d8259] | 1292 | else |
---|
[492b69] | 1293 | echo "$ac_t""no" 1>&6 |
---|
[3d8259] | 1294 | fi |
---|
| 1295 | |
---|
[492b69] | 1296 | test -n "$PERL" && break |
---|
[3d8259] | 1297 | done |
---|
| 1298 | |
---|
[a70441f] | 1299 | for ac_prog in uudecode "uudeview -i" |
---|
| 1300 | do |
---|
[492b69] | 1301 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
[a70441f] | 1302 | set dummy $ac_prog; ac_word=$2 |
---|
[492b69] | 1303 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[074171] | 1304 | echo "configure:1307: checking for $ac_word" >&5 |
---|
[492b69] | 1305 | if eval "test \"`echo '$''{'ac_cv_prog_UUDECODE'+set}'`\" = set"; then |
---|
| 1306 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[a70441f] | 1307 | else |
---|
| 1308 | if test -n "$UUDECODE"; then |
---|
| 1309 | ac_cv_prog_UUDECODE="$UUDECODE" # Let the user override the test. |
---|
| 1310 | else |
---|
[492b69] | 1311 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1312 | ac_dummy="$PATH" |
---|
| 1313 | for ac_dir in $ac_dummy; do |
---|
| 1314 | test -z "$ac_dir" && ac_dir=. |
---|
| 1315 | if test -f $ac_dir/$ac_word; then |
---|
| 1316 | ac_cv_prog_UUDECODE="$ac_prog" |
---|
| 1317 | break |
---|
| 1318 | fi |
---|
| 1319 | done |
---|
| 1320 | IFS="$ac_save_ifs" |
---|
[a70441f] | 1321 | fi |
---|
| 1322 | fi |
---|
[492b69] | 1323 | UUDECODE="$ac_cv_prog_UUDECODE" |
---|
[a70441f] | 1324 | if test -n "$UUDECODE"; then |
---|
[492b69] | 1325 | echo "$ac_t""$UUDECODE" 1>&6 |
---|
[a70441f] | 1326 | else |
---|
[492b69] | 1327 | echo "$ac_t""no" 1>&6 |
---|
[a70441f] | 1328 | fi |
---|
| 1329 | |
---|
[492b69] | 1330 | test -n "$UUDECODE" && break |
---|
[a70441f] | 1331 | done |
---|
[575b64] | 1332 | test -n "$UUDECODE" || UUDECODE="${pwd}/warn_not_found.sh uudecode" |
---|
[a70441f] | 1333 | |
---|
[8f659dc] | 1334 | for ac_prog in gunzip |
---|
[9ead31] | 1335 | do |
---|
[492b69] | 1336 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
[9ead31] | 1337 | set dummy $ac_prog; ac_word=$2 |
---|
[492b69] | 1338 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[575b64] | 1339 | echo "configure:1342: checking for $ac_word" >&5 |
---|
[492b69] | 1340 | if eval "test \"`echo '$''{'ac_cv_prog_GUNZIP'+set}'`\" = set"; then |
---|
| 1341 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[9ead31] | 1342 | else |
---|
| 1343 | if test -n "$GUNZIP"; then |
---|
| 1344 | ac_cv_prog_GUNZIP="$GUNZIP" # Let the user override the test. |
---|
| 1345 | else |
---|
[492b69] | 1346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1347 | ac_dummy="$PATH" |
---|
| 1348 | for ac_dir in $ac_dummy; do |
---|
| 1349 | test -z "$ac_dir" && ac_dir=. |
---|
| 1350 | if test -f $ac_dir/$ac_word; then |
---|
| 1351 | ac_cv_prog_GUNZIP="$ac_prog" |
---|
| 1352 | break |
---|
| 1353 | fi |
---|
| 1354 | done |
---|
| 1355 | IFS="$ac_save_ifs" |
---|
[9ead31] | 1356 | fi |
---|
| 1357 | fi |
---|
[492b69] | 1358 | GUNZIP="$ac_cv_prog_GUNZIP" |
---|
[9ead31] | 1359 | if test -n "$GUNZIP"; then |
---|
[492b69] | 1360 | echo "$ac_t""$GUNZIP" 1>&6 |
---|
[9ead31] | 1361 | else |
---|
[492b69] | 1362 | echo "$ac_t""no" 1>&6 |
---|
[9ead31] | 1363 | fi |
---|
| 1364 | |
---|
[492b69] | 1365 | test -n "$GUNZIP" && break |
---|
[9ead31] | 1366 | done |
---|
| 1367 | test -n "$GUNZIP" || GUNZIP="${pwd}/warn_not_found.sh gunzip" |
---|
| 1368 | |
---|
| 1369 | # don't use GZIP this breaks configure |
---|
[8f659dc] | 1370 | for ac_prog in gzip |
---|
[9ead31] | 1371 | do |
---|
[492b69] | 1372 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
[9ead31] | 1373 | set dummy $ac_prog; ac_word=$2 |
---|
[492b69] | 1374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[575b64] | 1375 | echo "configure:1378: checking for $ac_word" >&5 |
---|
[492b69] | 1376 | if eval "test \"`echo '$''{'ac_cv_prog_MYGZIP'+set}'`\" = set"; then |
---|
| 1377 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[9ead31] | 1378 | else |
---|
| 1379 | if test -n "$MYGZIP"; then |
---|
| 1380 | ac_cv_prog_MYGZIP="$MYGZIP" # Let the user override the test. |
---|
| 1381 | else |
---|
[492b69] | 1382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1383 | ac_dummy="$PATH" |
---|
| 1384 | for ac_dir in $ac_dummy; do |
---|
| 1385 | test -z "$ac_dir" && ac_dir=. |
---|
| 1386 | if test -f $ac_dir/$ac_word; then |
---|
| 1387 | ac_cv_prog_MYGZIP="$ac_prog" |
---|
| 1388 | break |
---|
| 1389 | fi |
---|
| 1390 | done |
---|
| 1391 | IFS="$ac_save_ifs" |
---|
[9ead31] | 1392 | fi |
---|
| 1393 | fi |
---|
[492b69] | 1394 | MYGZIP="$ac_cv_prog_MYGZIP" |
---|
[9ead31] | 1395 | if test -n "$MYGZIP"; then |
---|
[492b69] | 1396 | echo "$ac_t""$MYGZIP" 1>&6 |
---|
[9ead31] | 1397 | else |
---|
[492b69] | 1398 | echo "$ac_t""no" 1>&6 |
---|
[9ead31] | 1399 | fi |
---|
| 1400 | |
---|
[492b69] | 1401 | test -n "$MYGZIP" && break |
---|
[9ead31] | 1402 | done |
---|
| 1403 | test -n "$MYGZIP" || MYGZIP="${pwd}/warn_not_found.sh gzip" |
---|
| 1404 | |
---|
[f36635] | 1405 | # Extract the first word of "latex2html", so it can be a program name with args. |
---|
| 1406 | set dummy latex2html; ac_word=$2 |
---|
[492b69] | 1407 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[575b64] | 1408 | echo "configure:1411: checking for $ac_word" >&5 |
---|
[492b69] | 1409 | if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then |
---|
| 1410 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[f36635] | 1411 | else |
---|
| 1412 | if test -n "$LATEX2HTML"; then |
---|
| 1413 | ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test. |
---|
| 1414 | else |
---|
[492b69] | 1415 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1416 | ac_dummy="$PATH" |
---|
| 1417 | for ac_dir in $ac_dummy; do |
---|
| 1418 | test -z "$ac_dir" && ac_dir=. |
---|
| 1419 | if test -f $ac_dir/$ac_word; then |
---|
| 1420 | ac_cv_prog_LATEX2HTML="latex2html" |
---|
| 1421 | break |
---|
| 1422 | fi |
---|
| 1423 | done |
---|
| 1424 | IFS="$ac_save_ifs" |
---|
[f36635] | 1425 | fi |
---|
| 1426 | fi |
---|
[492b69] | 1427 | LATEX2HTML="$ac_cv_prog_LATEX2HTML" |
---|
[f36635] | 1428 | if test -n "$LATEX2HTML"; then |
---|
[492b69] | 1429 | echo "$ac_t""$LATEX2HTML" 1>&6 |
---|
[f36635] | 1430 | else |
---|
[492b69] | 1431 | echo "$ac_t""no" 1>&6 |
---|
[f36635] | 1432 | fi |
---|
| 1433 | |
---|
[492b69] | 1434 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
[575b64] | 1435 | echo "configure:1438: checking whether ln -s works" >&5 |
---|
[492b69] | 1436 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
| 1437 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1438 | else |
---|
| 1439 | rm -f conftestdata |
---|
| 1440 | if ln -s X conftestdata 2>/dev/null |
---|
| 1441 | then |
---|
| 1442 | rm -f conftestdata |
---|
| 1443 | ac_cv_prog_LN_S="ln -s" |
---|
| 1444 | else |
---|
| 1445 | ac_cv_prog_LN_S=ln |
---|
| 1446 | fi |
---|
| 1447 | fi |
---|
| 1448 | LN_S="$ac_cv_prog_LN_S" |
---|
| 1449 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
| 1450 | echo "$ac_t""yes" 1>&6 |
---|
[f84882] | 1451 | else |
---|
[492b69] | 1452 | echo "$ac_t""no" 1>&6 |
---|
[fe40293] | 1453 | fi |
---|
| 1454 | |
---|
[64c6d1] | 1455 | |
---|
[51f201] | 1456 | if test -r "${pwd}/mkinstalldirs"; then |
---|
[a15090f] | 1457 | MKINSTALLDIRS=${pwd}/mkinstalldirs |
---|
[492b69] | 1458 | |
---|
[a15090f] | 1459 | else |
---|
[492b69] | 1460 | { echo "configure: error: mkinstalldirs not foind in ${pwd}" 1>&2; exit 1; } |
---|
[a15090f] | 1461 | fi |
---|
| 1462 | |
---|
[64c6d1] | 1463 | # expand prefix and pass it to subsequent configures |
---|
[23673b] | 1464 | if test "x$prefix" = xNONE; then |
---|
| 1465 | prefix=${ac_default_prefix} |
---|
| 1466 | ac_configure_args="$ac_configure_args --prefix=${prefix}" |
---|
| 1467 | fi |
---|
[64c6d1] | 1468 | |
---|
| 1469 | # expand exec_prefix |
---|
| 1470 | if test "x$exec_prefix" = xNONE; then |
---|
[fe40293] | 1471 | exec_prefix=${prefix}/${ac_cv_singuname} |
---|
| 1472 | ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}" |
---|
[6afd7c] | 1473 | fi |
---|
| 1474 | |
---|
[64c6d1] | 1475 | # expand bindir |
---|
[8c4748] | 1476 | if test "x$bindir" = 'x${exec_prefix}/bin'; then |
---|
[dcc635] | 1477 | bindir="${exec_prefix}" |
---|
[8c4748] | 1478 | ac_configure_args="$ac_configure_args --bindir=${bindir}" |
---|
| 1479 | fi |
---|
[64c6d1] | 1480 | |
---|
| 1481 | # expand libdir |
---|
[8c4748] | 1482 | if test "x$libdir" = 'x${exec_prefix}/lib'; then |
---|
[dcc635] | 1483 | libdir="${exec_prefix}/lib" |
---|
[8c4748] | 1484 | ac_configure_args="$ac_configure_args --libdir=${libdir}" |
---|
| 1485 | fi |
---|
[64c6d1] | 1486 | |
---|
| 1487 | # expand includedir |
---|
[8c4748] | 1488 | if test "x$includedir" = 'x${prefix}/include'; then |
---|
[dcc635] | 1489 | includedir="${exec_prefix}/include" |
---|
[8c4748] | 1490 | ac_configure_args="$ac_configure_args --includedir=${includedir}" |
---|
| 1491 | fi |
---|
| 1492 | |
---|
[9bc556] | 1493 | # construct name of installed Singular executable |
---|
[181d6e] | 1494 | SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION} |
---|
[9bc556] | 1495 | export SINGULAR |
---|
| 1496 | |
---|
[8c4748] | 1497 | |
---|
[64c6d1] | 1498 | |
---|
[8c4748] | 1499 | # add -I to CPPFLAGS and -L to LDFLAGS, just to be sure |
---|
[64c6d1] | 1500 | LDFLAGS="-L${libdir} ${LDFLAGS}" |
---|
| 1501 | CPPFLAGS="-I${includedir} ${CPPFLAGS}" |
---|
[6afd7c] | 1502 | |
---|
[8c4748] | 1503 | # check for AIX |
---|
[492b69] | 1504 | echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 |
---|
[575b64] | 1505 | echo "configure:1508: checking whether _AIX is defined" >&5 |
---|
[492b69] | 1506 | if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then |
---|
| 1507 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1508 | else |
---|
| 1509 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1510 | #line 1513 "configure" |
---|
[492b69] | 1511 | #include "confdefs.h" |
---|
[dc32d42] | 1512 | #ifdef _AIX |
---|
| 1513 | yes |
---|
| 1514 | #endif |
---|
| 1515 | |
---|
[492b69] | 1516 | EOF |
---|
[dc32d42] | 1517 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
[492b69] | 1518 | egrep "yes" >/dev/null 2>&1; then |
---|
| 1519 | rm -rf conftest* |
---|
[dc32d42] | 1520 | ac_cv_is_aix=yes |
---|
| 1521 | else |
---|
[492b69] | 1522 | rm -rf conftest* |
---|
[dc32d42] | 1523 | ac_cv_is_aix=no |
---|
| 1524 | fi |
---|
| 1525 | rm -f conftest* |
---|
| 1526 | |
---|
| 1527 | fi |
---|
| 1528 | |
---|
| 1529 | if test "$ac_cv_is_aix" = yes; then |
---|
[492b69] | 1530 | echo "$ac_t""yes" 1>&6 |
---|
[dc32d42] | 1531 | else |
---|
[492b69] | 1532 | echo "$ac_t""no" 1>&6 |
---|
[dc32d42] | 1533 | fi |
---|
[6afd7c] | 1534 | |
---|
[492b69] | 1535 | echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 |
---|
[575b64] | 1536 | echo "configure:1539: checking for atof in -lm" >&5 |
---|
[492b69] | 1537 | ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` |
---|
| 1538 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1539 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 1540 | else |
---|
[492b69] | 1541 | ac_save_LIBS="$LIBS" |
---|
[6afd7c] | 1542 | LIBS="-lm $LIBS" |
---|
[492b69] | 1543 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1544 | #line 1547 "configure" |
---|
[492b69] | 1545 | #include "confdefs.h" |
---|
[6afd7c] | 1546 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1547 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1548 | builtin and then its argument prototype would still apply. */ |
---|
| 1549 | char atof(); |
---|
| 1550 | |
---|
| 1551 | int main() { |
---|
| 1552 | atof() |
---|
| 1553 | ; return 0; } |
---|
| 1554 | EOF |
---|
[575b64] | 1555 | if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1556 | rm -rf conftest* |
---|
| 1557 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1558 | else |
---|
| 1559 | echo "configure: failed program was:" >&5 |
---|
| 1560 | cat conftest.$ac_ext >&5 |
---|
| 1561 | rm -rf conftest* |
---|
| 1562 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1563 | fi |
---|
| 1564 | rm -f conftest* |
---|
| 1565 | LIBS="$ac_save_LIBS" |
---|
| 1566 | |
---|
| 1567 | fi |
---|
| 1568 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1569 | echo "$ac_t""yes" 1>&6 |
---|
| 1570 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1571 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1572 | cat >> confdefs.h <<EOF |
---|
| 1573 | #define $ac_tr_lib 1 |
---|
| 1574 | EOF |
---|
[6afd7c] | 1575 | |
---|
| 1576 | LIBS="-lm $LIBS" |
---|
| 1577 | |
---|
[492b69] | 1578 | else |
---|
| 1579 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 1580 | fi |
---|
| 1581 | |
---|
[492b69] | 1582 | echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6 |
---|
[575b64] | 1583 | echo "configure:1586: checking for socket in -lbsd" >&5 |
---|
[492b69] | 1584 | ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'` |
---|
| 1585 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1586 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[4dea87] | 1587 | else |
---|
[492b69] | 1588 | ac_save_LIBS="$LIBS" |
---|
[4dea87] | 1589 | LIBS="-lbsd $LIBS" |
---|
[492b69] | 1590 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1591 | #line 1594 "configure" |
---|
[492b69] | 1592 | #include "confdefs.h" |
---|
[4dea87] | 1593 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1594 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1595 | builtin and then its argument prototype would still apply. */ |
---|
| 1596 | char socket(); |
---|
| 1597 | |
---|
| 1598 | int main() { |
---|
| 1599 | socket() |
---|
| 1600 | ; return 0; } |
---|
| 1601 | EOF |
---|
[575b64] | 1602 | if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1603 | rm -rf conftest* |
---|
| 1604 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1605 | else |
---|
| 1606 | echo "configure: failed program was:" >&5 |
---|
| 1607 | cat conftest.$ac_ext >&5 |
---|
| 1608 | rm -rf conftest* |
---|
| 1609 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1610 | fi |
---|
| 1611 | rm -f conftest* |
---|
| 1612 | LIBS="$ac_save_LIBS" |
---|
| 1613 | |
---|
| 1614 | fi |
---|
| 1615 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1616 | echo "$ac_t""yes" 1>&6 |
---|
| 1617 | ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1618 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1619 | cat >> confdefs.h <<EOF |
---|
| 1620 | #define $ac_tr_lib 1 |
---|
| 1621 | EOF |
---|
[4dea87] | 1622 | |
---|
| 1623 | LIBS="-lbsd $LIBS" |
---|
| 1624 | |
---|
[492b69] | 1625 | else |
---|
| 1626 | echo "$ac_t""no" 1>&6 |
---|
[4dea87] | 1627 | fi |
---|
| 1628 | |
---|
[492b69] | 1629 | echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 |
---|
[575b64] | 1630 | echo "configure:1633: checking for listen in -lsocket" >&5 |
---|
[492b69] | 1631 | ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` |
---|
| 1632 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1633 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[4dea87] | 1634 | else |
---|
[492b69] | 1635 | ac_save_LIBS="$LIBS" |
---|
[4dea87] | 1636 | LIBS="-lsocket $LIBS" |
---|
[492b69] | 1637 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1638 | #line 1641 "configure" |
---|
[492b69] | 1639 | #include "confdefs.h" |
---|
[4dea87] | 1640 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1641 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1642 | builtin and then its argument prototype would still apply. */ |
---|
| 1643 | char listen(); |
---|
| 1644 | |
---|
| 1645 | int main() { |
---|
| 1646 | listen() |
---|
| 1647 | ; return 0; } |
---|
| 1648 | EOF |
---|
[575b64] | 1649 | if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1650 | rm -rf conftest* |
---|
| 1651 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1652 | else |
---|
| 1653 | echo "configure: failed program was:" >&5 |
---|
| 1654 | cat conftest.$ac_ext >&5 |
---|
| 1655 | rm -rf conftest* |
---|
| 1656 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1657 | fi |
---|
| 1658 | rm -f conftest* |
---|
| 1659 | LIBS="$ac_save_LIBS" |
---|
| 1660 | |
---|
| 1661 | fi |
---|
| 1662 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1663 | echo "$ac_t""yes" 1>&6 |
---|
| 1664 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1665 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1666 | cat >> confdefs.h <<EOF |
---|
| 1667 | #define $ac_tr_lib 1 |
---|
| 1668 | EOF |
---|
[4dea87] | 1669 | |
---|
| 1670 | LIBS="-lsocket $LIBS" |
---|
| 1671 | |
---|
[492b69] | 1672 | else |
---|
| 1673 | echo "$ac_t""no" 1>&6 |
---|
[4dea87] | 1674 | fi |
---|
| 1675 | |
---|
[492b69] | 1676 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
[575b64] | 1677 | echo "configure:1680: checking for gethostbyname in -lnsl" >&5 |
---|
[492b69] | 1678 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
| 1679 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1680 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[4dea87] | 1681 | else |
---|
[492b69] | 1682 | ac_save_LIBS="$LIBS" |
---|
[4dea87] | 1683 | LIBS="-lnsl $LIBS" |
---|
[492b69] | 1684 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1685 | #line 1688 "configure" |
---|
[492b69] | 1686 | #include "confdefs.h" |
---|
[4dea87] | 1687 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1688 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1689 | builtin and then its argument prototype would still apply. */ |
---|
| 1690 | char gethostbyname(); |
---|
| 1691 | |
---|
| 1692 | int main() { |
---|
| 1693 | gethostbyname() |
---|
| 1694 | ; return 0; } |
---|
| 1695 | EOF |
---|
[575b64] | 1696 | if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1697 | rm -rf conftest* |
---|
| 1698 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1699 | else |
---|
| 1700 | echo "configure: failed program was:" >&5 |
---|
| 1701 | cat conftest.$ac_ext >&5 |
---|
| 1702 | rm -rf conftest* |
---|
| 1703 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1704 | fi |
---|
| 1705 | rm -f conftest* |
---|
| 1706 | LIBS="$ac_save_LIBS" |
---|
| 1707 | |
---|
| 1708 | fi |
---|
| 1709 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1710 | echo "$ac_t""yes" 1>&6 |
---|
| 1711 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1712 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1713 | cat >> confdefs.h <<EOF |
---|
| 1714 | #define $ac_tr_lib 1 |
---|
| 1715 | EOF |
---|
[4dea87] | 1716 | |
---|
| 1717 | LIBS="-lnsl $LIBS" |
---|
| 1718 | |
---|
[492b69] | 1719 | else |
---|
| 1720 | echo "$ac_t""no" 1>&6 |
---|
[4dea87] | 1721 | fi |
---|
| 1722 | |
---|
[492b69] | 1723 | echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 |
---|
[575b64] | 1724 | echo "configure:1727: checking for main in -lgmp" >&5 |
---|
[492b69] | 1725 | ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` |
---|
| 1726 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1727 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 1728 | else |
---|
[492b69] | 1729 | ac_save_LIBS="$LIBS" |
---|
[6afd7c] | 1730 | LIBS="-lgmp $LIBS" |
---|
[492b69] | 1731 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1732 | #line 1735 "configure" |
---|
[492b69] | 1733 | #include "confdefs.h" |
---|
| 1734 | |
---|
| 1735 | int main() { |
---|
| 1736 | main() |
---|
| 1737 | ; return 0; } |
---|
| 1738 | EOF |
---|
[575b64] | 1739 | if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1740 | rm -rf conftest* |
---|
| 1741 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1742 | else |
---|
| 1743 | echo "configure: failed program was:" >&5 |
---|
| 1744 | cat conftest.$ac_ext >&5 |
---|
| 1745 | rm -rf conftest* |
---|
| 1746 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1747 | fi |
---|
| 1748 | rm -f conftest* |
---|
| 1749 | LIBS="$ac_save_LIBS" |
---|
| 1750 | |
---|
| 1751 | fi |
---|
| 1752 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1753 | echo "$ac_t""yes" 1>&6 |
---|
| 1754 | ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1755 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1756 | cat >> confdefs.h <<EOF |
---|
| 1757 | #define $ac_tr_lib 1 |
---|
| 1758 | EOF |
---|
[6afd7c] | 1759 | |
---|
| 1760 | LIBS="-lgmp $LIBS" |
---|
| 1761 | |
---|
[492b69] | 1762 | else |
---|
| 1763 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 1764 | fi |
---|
| 1765 | |
---|
[492b69] | 1766 | echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 |
---|
[575b64] | 1767 | echo "configure:1770: checking for IMP_PutGmpInt in -lMP" >&5 |
---|
[492b69] | 1768 | ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` |
---|
| 1769 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1770 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 1771 | else |
---|
[492b69] | 1772 | ac_save_LIBS="$LIBS" |
---|
[6afd7c] | 1773 | LIBS="-lMP $LIBS" |
---|
[492b69] | 1774 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1775 | #line 1778 "configure" |
---|
[492b69] | 1776 | #include "confdefs.h" |
---|
[6afd7c] | 1777 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1778 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1779 | builtin and then its argument prototype would still apply. */ |
---|
| 1780 | char IMP_PutGmpInt(); |
---|
| 1781 | |
---|
| 1782 | int main() { |
---|
| 1783 | IMP_PutGmpInt() |
---|
| 1784 | ; return 0; } |
---|
| 1785 | EOF |
---|
[575b64] | 1786 | if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1787 | rm -rf conftest* |
---|
| 1788 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1789 | else |
---|
| 1790 | echo "configure: failed program was:" >&5 |
---|
| 1791 | cat conftest.$ac_ext >&5 |
---|
| 1792 | rm -rf conftest* |
---|
| 1793 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1794 | fi |
---|
| 1795 | rm -f conftest* |
---|
| 1796 | LIBS="$ac_save_LIBS" |
---|
| 1797 | |
---|
| 1798 | fi |
---|
| 1799 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1800 | echo "$ac_t""yes" 1>&6 |
---|
| 1801 | ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1802 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1803 | cat >> confdefs.h <<EOF |
---|
| 1804 | #define $ac_tr_lib 1 |
---|
| 1805 | EOF |
---|
[6afd7c] | 1806 | |
---|
| 1807 | LIBS="-lMP $LIBS" |
---|
| 1808 | |
---|
[492b69] | 1809 | else |
---|
| 1810 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 1811 | fi |
---|
| 1812 | |
---|
[492b69] | 1813 | echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 |
---|
[575b64] | 1814 | echo "configure:1817: checking for MPT_GetTree in -lMPT" >&5 |
---|
[492b69] | 1815 | ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` |
---|
| 1816 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1817 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 1818 | else |
---|
[492b69] | 1819 | ac_save_LIBS="$LIBS" |
---|
[6afd7c] | 1820 | LIBS="-lMPT $LIBS" |
---|
[492b69] | 1821 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1822 | #line 1825 "configure" |
---|
[492b69] | 1823 | #include "confdefs.h" |
---|
[6afd7c] | 1824 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1825 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1826 | builtin and then its argument prototype would still apply. */ |
---|
| 1827 | char MPT_GetTree(); |
---|
| 1828 | |
---|
| 1829 | int main() { |
---|
| 1830 | MPT_GetTree() |
---|
| 1831 | ; return 0; } |
---|
| 1832 | EOF |
---|
[575b64] | 1833 | if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1834 | rm -rf conftest* |
---|
| 1835 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1836 | else |
---|
| 1837 | echo "configure: failed program was:" >&5 |
---|
| 1838 | cat conftest.$ac_ext >&5 |
---|
| 1839 | rm -rf conftest* |
---|
| 1840 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1841 | fi |
---|
| 1842 | rm -f conftest* |
---|
| 1843 | LIBS="$ac_save_LIBS" |
---|
| 1844 | |
---|
| 1845 | fi |
---|
| 1846 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1847 | echo "$ac_t""yes" 1>&6 |
---|
| 1848 | ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1849 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1850 | cat >> confdefs.h <<EOF |
---|
| 1851 | #define $ac_tr_lib 1 |
---|
| 1852 | EOF |
---|
[6afd7c] | 1853 | |
---|
| 1854 | LIBS="-lMPT $LIBS" |
---|
| 1855 | |
---|
[492b69] | 1856 | else |
---|
| 1857 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 1858 | fi |
---|
| 1859 | |
---|
[492b69] | 1860 | echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 |
---|
[575b64] | 1861 | echo "configure:1864: checking for atof in -lsingcf" >&5 |
---|
[492b69] | 1862 | ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` |
---|
| 1863 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1864 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 1865 | else |
---|
[492b69] | 1866 | ac_save_LIBS="$LIBS" |
---|
[6afd7c] | 1867 | LIBS="-lsingcf $LIBS" |
---|
[492b69] | 1868 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1869 | #line 1872 "configure" |
---|
[492b69] | 1870 | #include "confdefs.h" |
---|
[6afd7c] | 1871 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
[2189fb] | 1872 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1873 | builtin and then its argument prototype would still apply. */ |
---|
| 1874 | char atof(); |
---|
| 1875 | |
---|
| 1876 | int main() { |
---|
| 1877 | atof() |
---|
| 1878 | ; return 0; } |
---|
| 1879 | EOF |
---|
[575b64] | 1880 | if { (eval echo configure:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1881 | rm -rf conftest* |
---|
| 1882 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1883 | else |
---|
| 1884 | echo "configure: failed program was:" >&5 |
---|
| 1885 | cat conftest.$ac_ext >&5 |
---|
| 1886 | rm -rf conftest* |
---|
| 1887 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1888 | fi |
---|
| 1889 | rm -f conftest* |
---|
| 1890 | LIBS="$ac_save_LIBS" |
---|
| 1891 | |
---|
| 1892 | fi |
---|
| 1893 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1894 | echo "$ac_t""yes" 1>&6 |
---|
| 1895 | ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1896 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1897 | cat >> confdefs.h <<EOF |
---|
| 1898 | #define $ac_tr_lib 1 |
---|
| 1899 | EOF |
---|
[6afd7c] | 1900 | |
---|
[f84882] | 1901 | LIBS="-lsingcf $LIBS" |
---|
[d432e74] | 1902 | |
---|
[492b69] | 1903 | else |
---|
| 1904 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 1905 | fi |
---|
| 1906 | |
---|
[492b69] | 1907 | echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 |
---|
[575b64] | 1908 | echo "configure:1911: checking for atof in -lsingfac" >&5 |
---|
[492b69] | 1909 | ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` |
---|
| 1910 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1911 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[c232af] | 1912 | else |
---|
[492b69] | 1913 | ac_save_LIBS="$LIBS" |
---|
[f84882] | 1914 | LIBS="-lsingfac $LIBS" |
---|
[492b69] | 1915 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1916 | #line 1919 "configure" |
---|
[492b69] | 1917 | #include "confdefs.h" |
---|
[c232af] | 1918 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 1919 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1920 | builtin and then its argument prototype would still apply. */ |
---|
| 1921 | char atof(); |
---|
| 1922 | |
---|
| 1923 | int main() { |
---|
| 1924 | atof() |
---|
| 1925 | ; return 0; } |
---|
| 1926 | EOF |
---|
[575b64] | 1927 | if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1928 | rm -rf conftest* |
---|
| 1929 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1930 | else |
---|
| 1931 | echo "configure: failed program was:" >&5 |
---|
| 1932 | cat conftest.$ac_ext >&5 |
---|
| 1933 | rm -rf conftest* |
---|
| 1934 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1935 | fi |
---|
| 1936 | rm -f conftest* |
---|
| 1937 | LIBS="$ac_save_LIBS" |
---|
| 1938 | |
---|
| 1939 | fi |
---|
| 1940 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1941 | echo "$ac_t""yes" 1>&6 |
---|
| 1942 | ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1943 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1944 | cat >> confdefs.h <<EOF |
---|
| 1945 | #define $ac_tr_lib 1 |
---|
| 1946 | EOF |
---|
[d432e74] | 1947 | |
---|
[f84882] | 1948 | LIBS="-lsingfac $LIBS" |
---|
[d432e74] | 1949 | |
---|
[492b69] | 1950 | else |
---|
| 1951 | echo "$ac_t""no" 1>&6 |
---|
[d432e74] | 1952 | fi |
---|
| 1953 | |
---|
[492b69] | 1954 | echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 |
---|
[575b64] | 1955 | echo "configure:1958: checking for omTestAddr in -lomalloc" >&5 |
---|
[492b69] | 1956 | ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` |
---|
| 1957 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1958 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[d432e74] | 1959 | else |
---|
[492b69] | 1960 | ac_save_LIBS="$LIBS" |
---|
[f84882] | 1961 | LIBS="-lomalloc $LIBS" |
---|
[492b69] | 1962 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 1963 | #line 1966 "configure" |
---|
[492b69] | 1964 | #include "confdefs.h" |
---|
[f84882] | 1965 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 1966 | /* We use char because int might match the return type of a gcc2 |
---|
[492b69] | 1967 | builtin and then its argument prototype would still apply. */ |
---|
| 1968 | char omTestAddr(); |
---|
| 1969 | |
---|
| 1970 | int main() { |
---|
| 1971 | omTestAddr() |
---|
| 1972 | ; return 0; } |
---|
| 1973 | EOF |
---|
[575b64] | 1974 | if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 1975 | rm -rf conftest* |
---|
| 1976 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1977 | else |
---|
| 1978 | echo "configure: failed program was:" >&5 |
---|
| 1979 | cat conftest.$ac_ext >&5 |
---|
| 1980 | rm -rf conftest* |
---|
| 1981 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
[c232af] | 1982 | fi |
---|
[492b69] | 1983 | rm -f conftest* |
---|
| 1984 | LIBS="$ac_save_LIBS" |
---|
[c232af] | 1985 | |
---|
| 1986 | fi |
---|
[492b69] | 1987 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1988 | echo "$ac_t""yes" 1>&6 |
---|
| 1989 | ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1990 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1991 | cat >> confdefs.h <<EOF |
---|
| 1992 | #define $ac_tr_lib 1 |
---|
| 1993 | EOF |
---|
[c232af] | 1994 | |
---|
[492b69] | 1995 | LIBS="-lomalloc $LIBS" |
---|
[c232af] | 1996 | |
---|
| 1997 | else |
---|
[492b69] | 1998 | echo "$ac_t""no" 1>&6 |
---|
[c232af] | 1999 | fi |
---|
| 2000 | |
---|
[492b69] | 2001 | echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 |
---|
[575b64] | 2002 | echo "configure:2005: checking for main in -lomalloc_ndebug" >&5 |
---|
[492b69] | 2003 | ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` |
---|
| 2004 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 2005 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[c232af] | 2006 | else |
---|
[492b69] | 2007 | ac_save_LIBS="$LIBS" |
---|
| 2008 | LIBS="-lomalloc_ndebug $LIBS" |
---|
| 2009 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 2010 | #line 2013 "configure" |
---|
[492b69] | 2011 | #include "confdefs.h" |
---|
| 2012 | |
---|
| 2013 | int main() { |
---|
| 2014 | main() |
---|
| 2015 | ; return 0; } |
---|
| 2016 | EOF |
---|
[575b64] | 2017 | if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
[492b69] | 2018 | rm -rf conftest* |
---|
| 2019 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 2020 | else |
---|
| 2021 | echo "configure: failed program was:" >&5 |
---|
| 2022 | cat conftest.$ac_ext >&5 |
---|
| 2023 | rm -rf conftest* |
---|
| 2024 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
[c232af] | 2025 | fi |
---|
[f84882] | 2026 | rm -f conftest* |
---|
[492b69] | 2027 | LIBS="$ac_save_LIBS" |
---|
[d432e74] | 2028 | |
---|
| 2029 | fi |
---|
[492b69] | 2030 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 2031 | echo "$ac_t""yes" 1>&6 |
---|
| 2032 | ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 2033 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 2034 | cat >> confdefs.h <<EOF |
---|
| 2035 | #define $ac_tr_lib 1 |
---|
| 2036 | EOF |
---|
[f84882] | 2037 | |
---|
[492b69] | 2038 | LIBS="-lomalloc_ndebug $LIBS" |
---|
[d432e74] | 2039 | |
---|
[c232af] | 2040 | else |
---|
[492b69] | 2041 | echo "$ac_t""no" 1>&6 |
---|
[f84882] | 2042 | fi |
---|
[690e864] | 2043 | |
---|
| 2044 | |
---|
[25ed91] | 2045 | for ac_hdr in gmp.h MP.h MPT.h factory.h factor.h omalloc.h |
---|
[690e864] | 2046 | do |
---|
[492b69] | 2047 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
| 2048 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
[575b64] | 2049 | echo "configure:2052: checking for $ac_hdr" >&5 |
---|
[492b69] | 2050 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 2051 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2052 | else |
---|
| 2053 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 2054 | #line 2057 "configure" |
---|
[492b69] | 2055 | #include "confdefs.h" |
---|
| 2056 | #include <$ac_hdr> |
---|
| 2057 | EOF |
---|
| 2058 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[575b64] | 2059 | { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
[492b69] | 2060 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2061 | if test -z "$ac_err"; then |
---|
| 2062 | rm -rf conftest* |
---|
| 2063 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 2064 | else |
---|
| 2065 | echo "$ac_err" >&5 |
---|
| 2066 | echo "configure: failed program was:" >&5 |
---|
| 2067 | cat conftest.$ac_ext >&5 |
---|
| 2068 | rm -rf conftest* |
---|
| 2069 | eval "ac_cv_header_$ac_safe=no" |
---|
[690e864] | 2070 | fi |
---|
[492b69] | 2071 | rm -f conftest* |
---|
[f84882] | 2072 | fi |
---|
[492b69] | 2073 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 2074 | echo "$ac_t""yes" 1>&6 |
---|
| 2075 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
| 2076 | cat >> confdefs.h <<EOF |
---|
| 2077 | #define $ac_tr_hdr 1 |
---|
| 2078 | EOF |
---|
| 2079 | |
---|
[f84882] | 2080 | else |
---|
[492b69] | 2081 | echo "$ac_t""no" 1>&6 |
---|
[690e864] | 2082 | fi |
---|
[6afd7c] | 2083 | done |
---|
| 2084 | |
---|
| 2085 | |
---|
[a70441f] | 2086 | if test "$ac_cv_lib_gmp_main" = yes && \ |
---|
[6afd7c] | 2087 | test "$ac_cv_header_gmp_h" = yes; then |
---|
[8c4748] | 2088 | ac_gmp_ok=yes |
---|
[6afd7c] | 2089 | fi |
---|
| 2090 | |
---|
| 2091 | if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ |
---|
| 2092 | test "$ac_cv_lib_MPT_MPT_GetTree" && \ |
---|
| 2093 | test "$ac_cv_header_MP_h" = yes && \ |
---|
| 2094 | test "$ac_cv_header_MPT_h" = yes; then |
---|
| 2095 | ac_MP_ok=yes |
---|
| 2096 | fi |
---|
| 2097 | |
---|
[4c001a] | 2098 | if test "$ac_cv_lib_singcf_atof" = yes && \ |
---|
[6afd7c] | 2099 | test "$ac_cv_header_factory_h" = yes; then |
---|
| 2100 | ac_factory_ok=yes |
---|
| 2101 | fi |
---|
| 2102 | |
---|
[4c001a] | 2103 | if test "$ac_cv_lib_singfac_atof" = yes && \ |
---|
[6afd7c] | 2104 | test "$ac_cv_header_factor_h" = yes; then |
---|
| 2105 | ac_libfac_ok=yes |
---|
| 2106 | fi |
---|
| 2107 | |
---|
[c232af] | 2108 | if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \ |
---|
| 2109 | test "$ac_cv_lib_omalloc_ndebug_main" = yes && \ |
---|
| 2110 | test "$ac_cv_header_omalloc_c" = yes && \ |
---|
| 2111 | test "$ac_cv_header_omalloc_h" = yes; then |
---|
| 2112 | ac_cv_omalloc_ok=yes |
---|
| 2113 | fi |
---|
[492b69] | 2114 | |
---|
[9177e3] | 2115 | |
---|
| 2116 | DOC2TEX_EXAMPLE_EXCLUSIONS="" |
---|
| 2117 | |
---|
| 2118 | |
---|
[f36635] | 2119 | # Check whether --with-tmpdir or --without-tmpdir was given. |
---|
| 2120 | if test "${with_tmpdir+set}" = set; then |
---|
| 2121 | withval="$with_tmpdir" |
---|
[492b69] | 2122 | : |
---|
| 2123 | fi |
---|
[f36635] | 2124 | |
---|
[c232af] | 2125 | # Check whether --enable-omalloc or --disable-omalloc was given. |
---|
| 2126 | if test "${enable_omalloc+set}" = set; then |
---|
| 2127 | enableval="$enable_omalloc" |
---|
[492b69] | 2128 | : |
---|
| 2129 | fi |
---|
[c232af] | 2130 | |
---|
[64c6d1] | 2131 | # Check whether --enable-gmp or --disable-gmp was given. |
---|
| 2132 | if test "${enable_gmp+set}" = set; then |
---|
| 2133 | enableval="$enable_gmp" |
---|
[492b69] | 2134 | : |
---|
| 2135 | fi |
---|
[64c6d1] | 2136 | |
---|
[6afd7c] | 2137 | # Check whether --enable-MP or --disable-MP was given. |
---|
| 2138 | if test "${enable_MP+set}" = set; then |
---|
| 2139 | enableval="$enable_MP" |
---|
[492b69] | 2140 | : |
---|
| 2141 | fi |
---|
[6afd7c] | 2142 | |
---|
| 2143 | # Check whether --enable-factory or --disable-factory was given. |
---|
| 2144 | if test "${enable_factory+set}" = set; then |
---|
| 2145 | enableval="$enable_factory" |
---|
[492b69] | 2146 | : |
---|
| 2147 | fi |
---|
[6afd7c] | 2148 | |
---|
| 2149 | # Check whether --enable-libfac or --disable-libfac was given. |
---|
| 2150 | if test "${enable_libfac+set}" = set; then |
---|
| 2151 | enableval="$enable_libfac" |
---|
[492b69] | 2152 | : |
---|
| 2153 | fi |
---|
[6afd7c] | 2154 | |
---|
[a04715] | 2155 | # Check whether --enable-sgroup or --disable-sgroup was given. |
---|
| 2156 | if test "${enable_sgroup+set}" = set; then |
---|
| 2157 | enableval="$enable_sgroup" |
---|
[492b69] | 2158 | : |
---|
| 2159 | fi |
---|
[a04715] | 2160 | |
---|
[6afd7c] | 2161 | # Check whether --enable-Singular or --disable-Singular was given. |
---|
| 2162 | if test "${enable_Singular+set}" = set; then |
---|
[690e864] | 2163 | enableval="$enable_Singular" |
---|
[492b69] | 2164 | : |
---|
| 2165 | fi |
---|
[6afd7c] | 2166 | |
---|
[181d6e] | 2167 | # Check whether --enable-IntegerProgramming or --disable-IntegerProgramming was given. |
---|
| 2168 | if test "${enable_IntegerProgramming+set}" = set; then |
---|
| 2169 | enableval="$enable_IntegerProgramming" |
---|
[492b69] | 2170 | : |
---|
| 2171 | fi |
---|
[181d6e] | 2172 | |
---|
[08b7a76] | 2173 | # Check whether --enable-Plural or --disable-Plural was given. |
---|
| 2174 | if test "${enable_Plural+set}" = set; then |
---|
| 2175 | enableval="$enable_Plural" |
---|
[492b69] | 2176 | : |
---|
| 2177 | fi |
---|
[08b7a76] | 2178 | |
---|
[f36635] | 2179 | # Check whether --enable-Texinfo or --disable-Texinfo was given. |
---|
| 2180 | if test "${enable_Texinfo+set}" = set; then |
---|
| 2181 | enableval="$enable_Texinfo" |
---|
[492b69] | 2182 | : |
---|
| 2183 | fi |
---|
[f36635] | 2184 | |
---|
[aac46c] | 2185 | # Check whether --enable-Texi2html or --disable-Texi2html was given. |
---|
| 2186 | if test "${enable_Texi2html+set}" = set; then |
---|
| 2187 | enableval="$enable_Texi2html" |
---|
[492b69] | 2188 | : |
---|
| 2189 | fi |
---|
[aac46c] | 2190 | |
---|
| 2191 | # Check whether --enable-doc or --disable-doc was given. |
---|
| 2192 | if test "${enable_doc+set}" = set; then |
---|
| 2193 | enableval="$enable_doc" |
---|
[492b69] | 2194 | : |
---|
| 2195 | fi |
---|
[aac46c] | 2196 | |
---|
| 2197 | # Check whether --enable-emacs or --disable-emacs was given. |
---|
| 2198 | if test "${enable_emacs+set}" = set; then |
---|
| 2199 | enableval="$enable_emacs" |
---|
[492b69] | 2200 | : |
---|
| 2201 | fi |
---|
[aac46c] | 2202 | |
---|
[78364c] | 2203 | # Check whether --with-MP or --without-MP was given. |
---|
| 2204 | if test "${with_MP+set}" = set; then |
---|
| 2205 | withval="$with_MP" |
---|
[492b69] | 2206 | : |
---|
| 2207 | fi |
---|
[78364c] | 2208 | |
---|
| 2209 | # Check whether --with-factory or --without-factory was given. |
---|
| 2210 | if test "${with_factory+set}" = set; then |
---|
| 2211 | withval="$with_factory" |
---|
[492b69] | 2212 | : |
---|
| 2213 | fi |
---|
[78364c] | 2214 | |
---|
| 2215 | # Check whether --with-libfac or --without-libfac was given. |
---|
| 2216 | if test "${with_libfac+set}" = set; then |
---|
| 2217 | withval="$with_libfac" |
---|
[492b69] | 2218 | : |
---|
| 2219 | fi |
---|
[78364c] | 2220 | |
---|
| 2221 | # Check whether --with-gmp or --without-gmp was given. |
---|
| 2222 | if test "${with_gmp+set}" = set; then |
---|
| 2223 | withval="$with_gmp" |
---|
[492b69] | 2224 | : |
---|
| 2225 | fi |
---|
[78364c] | 2226 | |
---|
| 2227 | |
---|
[492b69] | 2228 | echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6 |
---|
[575b64] | 2229 | echo "configure:2232: checking which tmp dir to use" >&5 |
---|
[f36635] | 2230 | if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then |
---|
| 2231 | if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1) |
---|
| 2232 | then |
---|
[8f659dc] | 2233 | TMP_DIR="${pwd}/tmp" |
---|
[f36635] | 2234 | else |
---|
| 2235 | TMP_DIR=${with_tmpdir} |
---|
| 2236 | fi |
---|
| 2237 | else |
---|
[8f659dc] | 2238 | TMP_DIR="${pwd}/tmp" |
---|
[f36635] | 2239 | fi |
---|
[492b69] | 2240 | echo "$ac_t""$TMP_DIR" 1>&6 |
---|
[f36635] | 2241 | |
---|
| 2242 | |
---|
[492b69] | 2243 | echo $ac_n "checking whether to configure and build omalloc""... $ac_c" 1>&6 |
---|
[575b64] | 2244 | echo "configure:2247: checking whether to configure and build omalloc" >&5 |
---|
[c232af] | 2245 | if test "${enable_omalloc+set}" != set; then |
---|
[492b69] | 2246 | if test "$ac_cv_omalloc_ok" = yes; then |
---|
[c232af] | 2247 | enable_omalloc=no |
---|
| 2248 | fi |
---|
| 2249 | enable_omalloc_not_set=yes |
---|
| 2250 | fi |
---|
| 2251 | if test "$enable_omalloc" = no; then |
---|
| 2252 | if test "$ac_cv_omalloc_ok" != yes; then |
---|
[492b69] | 2253 | { echo "configure: error: can not build without omalloc" 1>&2; exit 1; } |
---|
[c232af] | 2254 | fi |
---|
[492b69] | 2255 | echo "$ac_t""no" 1>&6 |
---|
[c232af] | 2256 | else |
---|
| 2257 | if test -d omalloc; then |
---|
[492b69] | 2258 | echo "$ac_t""yes" 1>&6 |
---|
[c232af] | 2259 | if test "$enable_omalloc_not_set" = yes; then |
---|
[efbf54] | 2260 | ac_configure_args="$ac_configure_args --enable-omalloc --with-external-config_h='$pwd/Singular/omSingularConfig.h' --with-track-custom" |
---|
[c232af] | 2261 | fi |
---|
| 2262 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS omalloc" |
---|
[25ed91] | 2263 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS omalloc" |
---|
[995ba8] | 2264 | if test "${with_malloc+set}" != set; then |
---|
[492b69] | 2265 | case "$ac_cv_singuname" in |
---|
[995ba8] | 2266 | # under windows, it is best to use the provided malloc |
---|
| 2267 | ix86-Win*) |
---|
| 2268 | with_malloc=system |
---|
| 2269 | ac_configure_args="$ac_configure_args --with-malloc=system" |
---|
| 2270 | ;; |
---|
[26ec6d] | 2271 | PowerMacintosh-darwin*) |
---|
| 2272 | with_malloc=system |
---|
| 2273 | ac_configure_args="$ac_configure_args --with-malloc=system" |
---|
| 2274 | ;; |
---|
[995ba8] | 2275 | esac |
---|
| 2276 | fi |
---|
[c232af] | 2277 | else |
---|
[492b69] | 2278 | { echo "configure: error: need omalloc subdir" 1>&2; exit 1; } |
---|
[c232af] | 2279 | fi |
---|
| 2280 | fi |
---|
[f36635] | 2281 | |
---|
[386a86] | 2282 | echo $ac_n "checking whether to configure and build gfan lib""... $ac_c" 1>&6 |
---|
| 2283 | echo "configure:2286: checking whether to configure and build gfan lib" >&5 |
---|
| 2284 | if test "$enable_gfanlib" = yes; then |
---|
| 2285 | if test -d gfanlib; then |
---|
[492b69] | 2286 | echo "$ac_t""yes" 1>&6 |
---|
[386a86] | 2287 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS gfanlib" |
---|
| 2288 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS gfanlib" |
---|
[64c6d1] | 2289 | else |
---|
[492b69] | 2290 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2291 | fi |
---|
| 2292 | else |
---|
[492b69] | 2293 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2294 | fi |
---|
| 2295 | |
---|
[03f074] | 2296 | if test "$enable_gmp" = yes; then |
---|
[b920d1] | 2297 | # for gmp-3.0 to work for all ix86 processors, set generic target |
---|
[492b69] | 2298 | if test "$target" = NONE; then |
---|
| 2299 | case "$ac_cv_singuname" in |
---|
| 2300 | ix86*) |
---|
[b920d1] | 2301 | gmp_target=`./config.guess | sed 's/^\w*-/i386-/'` |
---|
[492b69] | 2302 | ac_configure_args="$ac_configure_args --target=$gmp_target" |
---|
[b920d1] | 2303 | ;; |
---|
| 2304 | esac |
---|
| 2305 | fi |
---|
[03f074] | 2306 | # furthermore, disable building of dynamic libraries, for we want to |
---|
| 2307 | # link against the static ones |
---|
| 2308 | if test "$enable_shared" != no; then |
---|
| 2309 | ac_configure_args="$ac_configure_args --disable-shared" |
---|
| 2310 | fi |
---|
[b920d1] | 2311 | fi |
---|
| 2312 | |
---|
[25ed91] | 2313 | # Check whether we have gmp |
---|
| 2314 | if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then |
---|
| 2315 | { echo "configure: error: can neither find nor built gmp" 1>&2; exit 1; } |
---|
[64c6d1] | 2316 | fi |
---|
| 2317 | |
---|
| 2318 | # Check whether we need to cheat subsequent configures with --enable-gmp |
---|
[25ed91] | 2319 | if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then |
---|
[78364c] | 2320 | ac_configure_args="$ac_configure_args --enable-gmp" |
---|
[6afd7c] | 2321 | fi |
---|
| 2322 | |
---|
[2f7cc5] | 2323 | #AC_MSG_CHECKING(whether to configure and build MP lib) |
---|
| 2324 | # requires: sizeof(long)==4 |
---|
| 2325 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
---|
[575b64] | 2326 | echo "configure:2346: checking size of long" >&5 |
---|
[2f7cc5] | 2327 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
---|
| 2328 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2329 | else |
---|
| 2330 | if test "$cross_compiling" = yes; then |
---|
| 2331 | ac_cv_sizeof_long=4 |
---|
| 2332 | else |
---|
| 2333 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 2334 | #line 2354 "configure" |
---|
[2f7cc5] | 2335 | #include "confdefs.h" |
---|
| 2336 | #include <stdio.h> |
---|
[074171] | 2337 | main() |
---|
[2f7cc5] | 2338 | { |
---|
| 2339 | FILE *f=fopen("conftestval", "w"); |
---|
[074171] | 2340 | if (!f) exit(1); |
---|
[2f7cc5] | 2341 | fprintf(f, "%d\n", sizeof(long)); |
---|
[074171] | 2342 | exit(0); |
---|
[2f7cc5] | 2343 | } |
---|
| 2344 | EOF |
---|
[575b64] | 2345 | if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
[2f7cc5] | 2346 | then |
---|
| 2347 | ac_cv_sizeof_long=`cat conftestval` |
---|
| 2348 | else |
---|
| 2349 | echo "configure: failed program was:" >&5 |
---|
| 2350 | cat conftest.$ac_ext >&5 |
---|
| 2351 | rm -fr conftest* |
---|
| 2352 | ac_cv_sizeof_long=0 |
---|
| 2353 | fi |
---|
| 2354 | rm -fr conftest* |
---|
| 2355 | fi |
---|
| 2356 | |
---|
| 2357 | fi |
---|
| 2358 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
---|
| 2359 | cat >> confdefs.h <<EOF |
---|
| 2360 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
| 2361 | EOF |
---|
| 2362 | |
---|
| 2363 | |
---|
| 2364 | if test "$ac_cv_sizeof_long" != 4; then |
---|
| 2365 | with_MP=no |
---|
| 2366 | fi |
---|
| 2367 | |
---|
[492b69] | 2368 | echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6 |
---|
[575b64] | 2369 | echo "configure:2389: checking whether to configure and build MP lib" >&5 |
---|
[2f7cc5] | 2370 | |
---|
[6afd7c] | 2371 | if test "$enable_MP" != yes && test "$enable_MP" != no; then |
---|
[64c6d1] | 2372 | if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \ |
---|
| 2373 | (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then |
---|
[492b69] | 2374 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 2375 | enable_MP=yes |
---|
[64c6d1] | 2376 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
[25ed91] | 2377 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS MP" |
---|
[64c6d1] | 2378 | ac_configure_args="$ac_configure_args --enable-MP" |
---|
[6afd7c] | 2379 | else |
---|
[492b69] | 2380 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 2381 | enable_MP=no |
---|
| 2382 | fi |
---|
[64c6d1] | 2383 | elif test "$enable_MP" = yes; then |
---|
| 2384 | if test ! -d MP; then |
---|
[492b69] | 2385 | echo "$ac_t""no" 1>&6 |
---|
| 2386 | { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; } |
---|
[64c6d1] | 2387 | fi |
---|
| 2388 | if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then |
---|
[492b69] | 2389 | echo "$ac_t""yes" 1>&6 |
---|
[dc32d42] | 2390 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP" |
---|
[25ed91] | 2391 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS MP" |
---|
[dc32d42] | 2392 | else |
---|
[492b69] | 2393 | echo "$ac_t""no" 1>&6 |
---|
| 2394 | { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; } |
---|
[dc32d42] | 2395 | fi |
---|
[6afd7c] | 2396 | else |
---|
[492b69] | 2397 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 2398 | fi |
---|
[c232af] | 2399 | |
---|
[70afd2] | 2400 | # need MP code to be compiled with -fPIC, should not hurt anybody else |
---|
| 2401 | if test "$enable_MP" = yes && test "${with_extra_cflags+set}" != set; then |
---|
| 2402 | ac_configure_args="$ac_configure_args --with-extra_cflags=-fPIC" |
---|
| 2403 | fi |
---|
| 2404 | |
---|
[492b69] | 2405 | echo $ac_n "checking whether to configure and build NTL lib""... $ac_c" 1>&6 |
---|
[575b64] | 2406 | echo "configure:2426: checking whether to configure and build NTL lib" >&5 |
---|
[4d7834] | 2407 | if test "$enable_NTL" != yes && test "$enable_NTL" != no; then |
---|
| 2408 | if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \ |
---|
| 2409 | test -d ntl; then |
---|
| 2410 | enable_NTL=yes |
---|
[492b69] | 2411 | echo "$ac_t""yes" 1>&6 |
---|
[4d7834] | 2412 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl" |
---|
[25ed91] | 2413 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS ntl" |
---|
[4d7834] | 2414 | ac_configure_args="$ac_configure_args --enable-NTL" |
---|
[9f738e4] | 2415 | ac_ext=C |
---|
| 2416 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 2417 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 2418 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 2419 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 2420 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 2421 | |
---|
| 2422 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
---|
[575b64] | 2423 | echo "configure:2443: checking how to run the C++ preprocessor" >&5 |
---|
[9f738e4] | 2424 | if test -z "$CXXCPP"; then |
---|
| 2425 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
---|
| 2426 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2427 | else |
---|
| 2428 | ac_ext=C |
---|
| 2429 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 2430 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 2431 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 2432 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 2433 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 2434 | CXXCPP="${CXX-g++} -E" |
---|
| 2435 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 2436 | #line 2456 "configure" |
---|
[9f738e4] | 2437 | #include "confdefs.h" |
---|
| 2438 | #include <stdlib.h> |
---|
| 2439 | EOF |
---|
| 2440 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[575b64] | 2441 | { (eval echo configure:2461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
[9f738e4] | 2442 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2443 | if test -z "$ac_err"; then |
---|
| 2444 | : |
---|
| 2445 | else |
---|
| 2446 | echo "$ac_err" >&5 |
---|
| 2447 | echo "configure: failed program was:" >&5 |
---|
| 2448 | cat conftest.$ac_ext >&5 |
---|
| 2449 | rm -rf conftest* |
---|
| 2450 | CXXCPP=/lib/cpp |
---|
| 2451 | fi |
---|
| 2452 | rm -f conftest* |
---|
| 2453 | ac_cv_prog_CXXCPP="$CXXCPP" |
---|
| 2454 | ac_ext=C |
---|
| 2455 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 2456 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 2457 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 2458 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 2459 | cross_compiling=$ac_cv_prog_cxx_cross |
---|
| 2460 | fi |
---|
| 2461 | fi |
---|
| 2462 | CXXCPP="$ac_cv_prog_CXXCPP" |
---|
| 2463 | echo "$ac_t""$CXXCPP" 1>&6 |
---|
| 2464 | |
---|
| 2465 | for ac_hdr in iostream.h iostream |
---|
| 2466 | do |
---|
| 2467 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
| 2468 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
[575b64] | 2469 | echo "configure:2489: checking for $ac_hdr" >&5 |
---|
[9f738e4] | 2470 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 2471 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2472 | else |
---|
| 2473 | cat > conftest.$ac_ext <<EOF |
---|
[575b64] | 2474 | #line 2494 "configure" |
---|
[9f738e4] | 2475 | #include "confdefs.h" |
---|
| 2476 | #include <$ac_hdr> |
---|
| 2477 | EOF |
---|
| 2478 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
[575b64] | 2479 | { (eval echo configure:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
[9f738e4] | 2480 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2481 | if test -z "$ac_err"; then |
---|
| 2482 | rm -rf conftest* |
---|
| 2483 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 2484 | else |
---|
| 2485 | echo "$ac_err" >&5 |
---|
| 2486 | echo "configure: failed program was:" >&5 |
---|
| 2487 | cat conftest.$ac_ext >&5 |
---|
| 2488 | rm -rf conftest* |
---|
| 2489 | eval "ac_cv_header_$ac_safe=no" |
---|
| 2490 | fi |
---|
| 2491 | rm -f conftest* |
---|
| 2492 | fi |
---|
| 2493 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 2494 | echo "$ac_t""yes" 1>&6 |
---|
| 2495 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
| 2496 | cat >> confdefs.h <<EOF |
---|
| 2497 | #define $ac_tr_hdr 1 |
---|
| 2498 | EOF |
---|
| 2499 | |
---|
| 2500 | else |
---|
| 2501 | echo "$ac_t""no" 1>&6 |
---|
| 2502 | fi |
---|
| 2503 | done |
---|
| 2504 | |
---|
| 2505 | |
---|
[4d7834] | 2506 | else |
---|
| 2507 | enable_NTL=no |
---|
[492b69] | 2508 | echo "$ac_t""no" 1>&6 |
---|
[4d7834] | 2509 | fi |
---|
| 2510 | elif test "$enable_NTL" = yes; then |
---|
| 2511 | if test -d ntl; then |
---|
[492b69] | 2512 | echo "$ac_t""yes" 1>&6 |
---|
[4d7834] | 2513 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl" |
---|
[25ed91] | 2514 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS ntl" |
---|
[4d7834] | 2515 | else |
---|
[492b69] | 2516 | echo "$ac_t""no" 1>&6 |
---|
| 2517 | { echo "configure: error: can not build NTL without ntl directory" 1>&2; exit 1; } |
---|
[4d7834] | 2518 | fi |
---|
| 2519 | else |
---|
[492b69] | 2520 | echo "$ac_t""no" 1>&6 |
---|
[4d7834] | 2521 | fi |
---|
[70afd2] | 2522 | |
---|
[492b69] | 2523 | echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6 |
---|
[575b64] | 2524 | echo "configure:2544: checking whether to configure and build factory lib" >&5 |
---|
[6afd7c] | 2525 | if test "$enable_factory" != yes && test "$enable_factory" != no; then |
---|
[64c6d1] | 2526 | if test "$with_factory" != no && test "$ac_factory_ok" != yes && \ |
---|
| 2527 | test -d factory; then |
---|
[6afd7c] | 2528 | enable_factory=yes |
---|
[492b69] | 2529 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2530 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
[25ed91] | 2531 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS factory" |
---|
[64c6d1] | 2532 | ac_configure_args="$ac_configure_args --enable-factory" |
---|
[6afd7c] | 2533 | else |
---|
| 2534 | enable_factory=no |
---|
[492b69] | 2535 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 2536 | fi |
---|
[64c6d1] | 2537 | elif test "$enable_factory" = yes; then |
---|
| 2538 | if test -d factory; then |
---|
[492b69] | 2539 | echo "$ac_t""yes" 1>&6 |
---|
[78364c] | 2540 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory" |
---|
[25ed91] | 2541 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS factory" |
---|
[dc32d42] | 2542 | else |
---|
[492b69] | 2543 | echo "$ac_t""no" 1>&6 |
---|
| 2544 | { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; } |
---|
[dc32d42] | 2545 | fi |
---|
[6afd7c] | 2546 | else |
---|
[492b69] | 2547 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 2548 | fi |
---|
| 2549 | |
---|
[492b69] | 2550 | echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6 |
---|
[575b64] | 2551 | echo "configure:2571: checking whether to configure and build libfac lib" >&5 |
---|
[6afd7c] | 2552 | if test "$enable_libfac" != yes && test "$enable_libfac" != no; then |
---|
[64c6d1] | 2553 | if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \ |
---|
| 2554 | test -d libfac && \ |
---|
| 2555 | (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then |
---|
[6afd7c] | 2556 | enable_libfac=yes |
---|
[492b69] | 2557 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2558 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
[25ed91] | 2559 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS libfac" |
---|
[64c6d1] | 2560 | ac_configure_args="$ac_configure_args --enable-libfac" |
---|
[6afd7c] | 2561 | else |
---|
| 2562 | enable_libfac=no |
---|
[492b69] | 2563 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2564 | fi |
---|
| 2565 | elif test "$enable_libfac" = yes; then |
---|
| 2566 | if test ! -d libfac; then |
---|
[492b69] | 2567 | echo "$ac_t""no" 1>&6 |
---|
| 2568 | { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; } |
---|
[6afd7c] | 2569 | fi |
---|
[dc32d42] | 2570 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[492b69] | 2571 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2572 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac" |
---|
[25ed91] | 2573 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS libfac" |
---|
[dc32d42] | 2574 | else |
---|
[492b69] | 2575 | echo "$ac_t""no" 1>&6 |
---|
| 2576 | { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; } |
---|
[dc32d42] | 2577 | fi |
---|
[6afd7c] | 2578 | else |
---|
[492b69] | 2579 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 2580 | fi |
---|
| 2581 | |
---|
[492b69] | 2582 | echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6 |
---|
[575b64] | 2583 | echo "configure:2603: checking whether to configure and build sgroup lib" >&5 |
---|
[91ee87] | 2584 | if test "$enable_sgroup" = yes; then |
---|
[64c6d1] | 2585 | if test ! -d sgroup; then |
---|
[492b69] | 2586 | echo "$ac_t""no" 1>&6 |
---|
| 2587 | { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; } |
---|
[64c6d1] | 2588 | fi |
---|
| 2589 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
[492b69] | 2590 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2591 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup" |
---|
[25ed91] | 2592 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS sgroup" |
---|
[64c6d1] | 2593 | else |
---|
[492b69] | 2594 | echo "$ac_t""no" 1>&6 |
---|
| 2595 | { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; } |
---|
[a04715] | 2596 | fi |
---|
| 2597 | else |
---|
[492b69] | 2598 | echo "$ac_t""no" 1>&6 |
---|
[a04715] | 2599 | fi |
---|
| 2600 | |
---|
[aac46c] | 2601 | BUILD_SUBDIRS="$CONFIG_SUBDIRS" |
---|
| 2602 | |
---|
[492b69] | 2603 | echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6 |
---|
[575b64] | 2604 | echo "configure:2624: checking whether to configure and build Singular" >&5 |
---|
[6afd7c] | 2605 | if test "$enable_Singular" != yes && test "$enable_Singular" != no; then |
---|
[64c6d1] | 2606 | if test "$with_Singular" != no && test -d Singular; then |
---|
[6afd7c] | 2607 | enable_Singular=yes |
---|
[492b69] | 2608 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2609 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
[492b69] | 2610 | BUILD_SUBDIRS="$BUILD_SUBDIRS kernel Singular" |
---|
[25ed91] | 2611 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS kernel Singular" |
---|
[64c6d1] | 2612 | ac_configure_args="$ac_configure_args --enable-Singular" |
---|
[6afd7c] | 2613 | else |
---|
| 2614 | enable_Singular=no |
---|
[492b69] | 2615 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2616 | fi |
---|
| 2617 | elif test "$enable_Singular" = yes; then |
---|
| 2618 | if test -d Singular; then |
---|
[492b69] | 2619 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2620 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular" |
---|
[492b69] | 2621 | BUILD_SUBDIRS="$BUILD_SUBDIRS kernel Singular" |
---|
[25ed91] | 2622 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS kernel Singular" |
---|
[64c6d1] | 2623 | else |
---|
[492b69] | 2624 | echo "$ac_t""no" 1>&6 |
---|
| 2625 | { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; } |
---|
[6afd7c] | 2626 | fi |
---|
| 2627 | else |
---|
[492b69] | 2628 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 2629 | fi |
---|
| 2630 | |
---|
[181d6e] | 2631 | |
---|
| 2632 | # test if IntegerProgramming should be built: |
---|
| 2633 | |
---|
[492b69] | 2634 | echo $ac_n "checking whether to build IntegerProgramming""... $ac_c" 1>&6 |
---|
[575b64] | 2635 | echo "configure:2655: checking whether to build IntegerProgramming" >&5 |
---|
[181d6e] | 2636 | if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then |
---|
| 2637 | BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming" |
---|
[aee329b] | 2638 | BUILD1_SUBDIRS="$BUILD1_SUBDIRS IntegerProgramming" |
---|
[492b69] | 2639 | echo "$ac_t""yes" 1>&6 |
---|
[181d6e] | 2640 | if test "$enable_IntegerProgramming" != yes; then |
---|
| 2641 | ac_configure_args="$ac_configure_args --enable-IntegerProgramming" |
---|
| 2642 | fi |
---|
| 2643 | else |
---|
[492b69] | 2644 | echo "$ac_t""no" 1>&6 |
---|
[181d6e] | 2645 | fi |
---|
| 2646 | |
---|
[492b69] | 2647 | echo $ac_n "checking whether to build Plural""... $ac_c" 1>&6 |
---|
[575b64] | 2648 | echo "configure:2668: checking whether to build Plural" >&5 |
---|
[bd63e0] | 2649 | if test "$enable_Plural" != no || test "$with_Plural" != no; then |
---|
[492b69] | 2650 | echo "$ac_t""yes" 1>&6 |
---|
[08b7a76] | 2651 | if test "$enable_Plural" != yes; then |
---|
| 2652 | ac_configure_args="$ac_configure_args --enable-Plural" |
---|
| 2653 | fi |
---|
| 2654 | else |
---|
[492b69] | 2655 | echo "$ac_t""no" 1>&6 |
---|
[08b7a76] | 2656 | fi |
---|
| 2657 | |
---|
[181d6e] | 2658 | |
---|
[492b69] | 2659 | echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6 |
---|
[575b64] | 2660 | echo "configure:2680: checking whether to configure and build Texinfo" >&5 |
---|
[aac46c] | 2661 | if test "$enable_Texinfo" != no && test -d Texinfo; then |
---|
[492b69] | 2662 | echo "$ac_t""yes" 1>&6 |
---|
[aac46c] | 2663 | enable_texinfo=yes |
---|
| 2664 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo" |
---|
[492b69] | 2665 | BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo" |
---|
[175c56] | 2666 | TEXI2PDF=${bindir}/texi2pdf |
---|
[181d6e] | 2667 | MAKEINFO="${bindir}/makeinfo" |
---|
[aac46c] | 2668 | TEXINDEX=${bindir}/texindex |
---|
[492b69] | 2669 | |
---|
| 2670 | |
---|
| 2671 | |
---|
[aac46c] | 2672 | if test "$enable_Texinfo" != yes; then |
---|
| 2673 | ac_configure_args="$ac_configure_args --enable-Texinfo" |
---|
| 2674 | fi |
---|
| 2675 | else |
---|
[492b69] | 2676 | echo "$ac_t""no" 1>&6 |
---|
| 2677 | echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2 |
---|
[aac46c] | 2678 | enable_texinfo=no |
---|
| 2679 | # Extract the first word of "makeinfo", so it can be a program name with args. |
---|
| 2680 | set dummy makeinfo; ac_word=$2 |
---|
[492b69] | 2681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[6cc28a] | 2682 | echo "configure:2702: checking for $ac_word" >&5 |
---|
[492b69] | 2683 | if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then |
---|
| 2684 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[aac46c] | 2685 | else |
---|
| 2686 | if test -n "$MAKEINFO"; then |
---|
| 2687 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
---|
| 2688 | else |
---|
[492b69] | 2689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2690 | ac_dummy="$PATH" |
---|
| 2691 | for ac_dir in $ac_dummy; do |
---|
| 2692 | test -z "$ac_dir" && ac_dir=. |
---|
| 2693 | if test -f $ac_dir/$ac_word; then |
---|
| 2694 | ac_cv_prog_MAKEINFO="makeinfo" |
---|
| 2695 | break |
---|
| 2696 | fi |
---|
| 2697 | done |
---|
| 2698 | IFS="$ac_save_ifs" |
---|
[aac46c] | 2699 | test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="${pwd}/warn_not_found.sh makeinfo" |
---|
| 2700 | fi |
---|
| 2701 | fi |
---|
[492b69] | 2702 | MAKEINFO="$ac_cv_prog_MAKEINFO" |
---|
[aac46c] | 2703 | if test -n "$MAKEINFO"; then |
---|
[492b69] | 2704 | echo "$ac_t""$MAKEINFO" 1>&6 |
---|
[aac46c] | 2705 | else |
---|
[492b69] | 2706 | echo "$ac_t""no" 1>&6 |
---|
[aac46c] | 2707 | fi |
---|
| 2708 | |
---|
| 2709 | # Extract the first word of "texindex", so it can be a program name with args. |
---|
| 2710 | set dummy texindex; ac_word=$2 |
---|
[492b69] | 2711 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[6cc28a] | 2712 | echo "configure:2732: checking for $ac_word" >&5 |
---|
[492b69] | 2713 | if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then |
---|
| 2714 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[aac46c] | 2715 | else |
---|
| 2716 | if test -n "$TEXINDEX"; then |
---|
| 2717 | ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test. |
---|
| 2718 | else |
---|
[492b69] | 2719 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2720 | ac_dummy="$PATH" |
---|
| 2721 | for ac_dir in $ac_dummy; do |
---|
| 2722 | test -z "$ac_dir" && ac_dir=. |
---|
| 2723 | if test -f $ac_dir/$ac_word; then |
---|
| 2724 | ac_cv_prog_TEXINDEX="texindex" |
---|
| 2725 | break |
---|
| 2726 | fi |
---|
| 2727 | done |
---|
| 2728 | IFS="$ac_save_ifs" |
---|
[aac46c] | 2729 | test -z "$ac_cv_prog_TEXINDEX" && ac_cv_prog_TEXINDEX="${pwd}/warn_not_found.sh texindex" |
---|
| 2730 | fi |
---|
| 2731 | fi |
---|
[492b69] | 2732 | TEXINDEX="$ac_cv_prog_TEXINDEX" |
---|
[aac46c] | 2733 | if test -n "$TEXINDEX"; then |
---|
[492b69] | 2734 | echo "$ac_t""$TEXINDEX" 1>&6 |
---|
[aac46c] | 2735 | else |
---|
[492b69] | 2736 | echo "$ac_t""no" 1>&6 |
---|
[aac46c] | 2737 | fi |
---|
| 2738 | |
---|
[175c56] | 2739 | # Extract the first word of "texi2pdf", so it can be a program name with args. |
---|
| 2740 | set dummy texi2pdf; ac_word=$2 |
---|
[492b69] | 2741 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[6cc28a] | 2742 | echo "configure:2762: checking for $ac_word" >&5 |
---|
[492b69] | 2743 | if eval "test \"`echo '$''{'ac_cv_prog_TEXI2PDF'+set}'`\" = set"; then |
---|
| 2744 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[175c56] | 2745 | else |
---|
| 2746 | if test -n "$TEXI2PDF"; then |
---|
| 2747 | ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test. |
---|
| 2748 | else |
---|
[492b69] | 2749 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2750 | ac_dummy="$PATH" |
---|
| 2751 | for ac_dir in $ac_dummy; do |
---|
| 2752 | test -z "$ac_dir" && ac_dir=. |
---|
| 2753 | if test -f $ac_dir/$ac_word; then |
---|
| 2754 | ac_cv_prog_TEXI2PDF="texi2pdf" |
---|
| 2755 | break |
---|
| 2756 | fi |
---|
| 2757 | done |
---|
| 2758 | IFS="$ac_save_ifs" |
---|
[175c56] | 2759 | test -z "$ac_cv_prog_TEXI2PDF" && ac_cv_prog_TEXI2PDF="${pwd}/warn_not_found.sh texi2pdf" |
---|
| 2760 | fi |
---|
| 2761 | fi |
---|
[492b69] | 2762 | TEXI2PDF="$ac_cv_prog_TEXI2PDF" |
---|
[175c56] | 2763 | if test -n "$TEXI2PDF"; then |
---|
[492b69] | 2764 | echo "$ac_t""$TEXI2PDF" 1>&6 |
---|
[175c56] | 2765 | else |
---|
[492b69] | 2766 | echo "$ac_t""no" 1>&6 |
---|
[175c56] | 2767 | fi |
---|
| 2768 | |
---|
[492b69] | 2769 | fi |
---|
[aac46c] | 2770 | |
---|
[492b69] | 2771 | echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6 |
---|
[6cc28a] | 2772 | echo "configure:2792: checking whether to configure and build Texi2html" >&5 |
---|
[aac46c] | 2773 | if test "$enable_Texi2html" != no && test -d Texi2html; then |
---|
[492b69] | 2774 | echo "$ac_t""yes" 1>&6 |
---|
[d16193] | 2775 | CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texi2html" |
---|
[aac46c] | 2776 | BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html" |
---|
| 2777 | if test "$enable_Texi2html" != yes; then |
---|
| 2778 | ac_configure_args="$ac_configure_args --enable-Texi2html" |
---|
| 2779 | fi |
---|
[d16193] | 2780 | TEXI2HTML=${bindir}/texi2html |
---|
[492b69] | 2781 | |
---|
[aac46c] | 2782 | else |
---|
[492b69] | 2783 | echo "$ac_t""no" 1>&6 |
---|
[d16193] | 2784 | # Extract the first word of "texi2html", so it can be a program name with args. |
---|
| 2785 | set dummy texi2html; ac_word=$2 |
---|
[492b69] | 2786 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
[6cc28a] | 2787 | echo "configure:2807: checking for $ac_word" >&5 |
---|
[492b69] | 2788 | if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then |
---|
| 2789 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[d16193] | 2790 | else |
---|
| 2791 | if test -n "$TEXI2HTML"; then |
---|
| 2792 | ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test. |
---|
| 2793 | else |
---|
[492b69] | 2794 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2795 | ac_dummy="$PATH" |
---|
| 2796 | for ac_dir in $ac_dummy; do |
---|
| 2797 | test -z "$ac_dir" && ac_dir=. |
---|
| 2798 | if test -f $ac_dir/$ac_word; then |
---|
| 2799 | ac_cv_prog_TEXI2HTML="texi2html" |
---|
| 2800 | break |
---|
| 2801 | fi |
---|
| 2802 | done |
---|
| 2803 | IFS="$ac_save_ifs" |
---|
[d16193] | 2804 | fi |
---|
| 2805 | fi |
---|
[492b69] | 2806 | TEXI2HTML="$ac_cv_prog_TEXI2HTML" |
---|
[d16193] | 2807 | if test -n "$TEXI2HTML"; then |
---|
[492b69] | 2808 | echo "$ac_t""$TEXI2HTML" 1>&6 |
---|
[d16193] | 2809 | else |
---|
[492b69] | 2810 | echo "$ac_t""no" 1>&6 |
---|
[d16193] | 2811 | fi |
---|
| 2812 | |
---|
[aac46c] | 2813 | fi |
---|
| 2814 | |
---|
[575b64] | 2815 | if test "${UUDECODE+set}" != set; then |
---|
| 2816 | echo "configure: warning: uudecode not found. HTML doc generation will fail" 1>&2 |
---|
| 2817 | fi |
---|
[d16193] | 2818 | if test "${TEXI2HTML+set}" != set; then |
---|
[492b69] | 2819 | echo "configure: warning: texi2html not found. HTML doc generation will fail" 1>&2 |
---|
[d16193] | 2820 | fi |
---|
| 2821 | if test "$ac_cv_prog_LATEX2HTML" = latex2html; then |
---|
| 2822 | TEXI2HTML_OPTS="-l2h" |
---|
| 2823 | fi |
---|
| 2824 | |
---|
| 2825 | |
---|
| 2826 | |
---|
[492b69] | 2827 | echo $ac_n "checking whether to build doc""... $ac_c" 1>&6 |
---|
[6cc28a] | 2828 | echo "configure:2848: checking whether to build doc" >&5 |
---|
[aac46c] | 2829 | if test "$enable_doc" != no && test -d doc; then |
---|
[492b69] | 2830 | echo "$ac_t""yes" 1>&6 |
---|
[aac46c] | 2831 | BUILD_SUBDIRS="$BUILD_SUBDIRS doc" |
---|
| 2832 | if test "$enable_doc" != yes; then |
---|
| 2833 | enable_doc=yes |
---|
| 2834 | ac_configure_args="$ac_configure_args --enable-doc" |
---|
| 2835 | fi |
---|
| 2836 | else |
---|
| 2837 | enable_doc=no |
---|
[492b69] | 2838 | echo "$ac_t""no" 1>&6 |
---|
[aac46c] | 2839 | fi |
---|
| 2840 | |
---|
[492b69] | 2841 | echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6 |
---|
[6cc28a] | 2842 | echo "configure:2862: checking whether to build emacs" >&5 |
---|
[aac46c] | 2843 | if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then |
---|
[492b69] | 2844 | echo "$ac_t""yes" 1>&6 |
---|
[aac46c] | 2845 | BUILD_SUBDIRS="$BUILD_SUBDIRS emacs" |
---|
| 2846 | if test "$enable_emacs" != yes; then |
---|
| 2847 | ac_configure_args="$ac_configure_args --enable-emacs" |
---|
| 2848 | fi |
---|
| 2849 | else |
---|
[492b69] | 2850 | echo "$ac_t""no" 1>&6 |
---|
[aac46c] | 2851 | fi |
---|
[6afd7c] | 2852 | |
---|
[492b69] | 2853 | echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 |
---|
[6cc28a] | 2854 | echo "configure:2874: checking which apint package to use" >&5 |
---|
[64c6d1] | 2855 | if test "$with_apint" = gmp; then |
---|
| 2856 | if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then |
---|
[492b69] | 2857 | echo "$ac_t""gmp" 1>&6 |
---|
[64c6d1] | 2858 | else |
---|
[492b69] | 2859 | echo "$ac_t""none" 1>&6 |
---|
| 2860 | { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; } |
---|
[64c6d1] | 2861 | fi |
---|
| 2862 | elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then |
---|
[492b69] | 2863 | echo "$ac_t""gmp" 1>&6 |
---|
[64c6d1] | 2864 | ac_configure_args="$ac_configure_args --with-apint=gmp" |
---|
[25ed91] | 2865 | else |
---|
| 2866 | { echo "configure: error: gmp required" 1>&2; exit 1; } |
---|
[64c6d1] | 2867 | fi |
---|
[6afd7c] | 2868 | |
---|
[492b69] | 2869 | echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6 |
---|
[6cc28a] | 2870 | echo "configure:2890: checking whether to use with MP" >&5 |
---|
[64c6d1] | 2871 | if test "$with_MP" = yes; then |
---|
[dc32d42] | 2872 | if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
[492b69] | 2873 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 2874 | else |
---|
[492b69] | 2875 | echo "$ac_t""none" 1>&6 |
---|
| 2876 | { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; } |
---|
[6afd7c] | 2877 | fi |
---|
[64c6d1] | 2878 | elif test "$with_MP" = no; then |
---|
[492b69] | 2879 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2880 | elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then |
---|
[492b69] | 2881 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2882 | ac_configure_args="$ac_configure_args --with-MP" |
---|
[6afd7c] | 2883 | else |
---|
[492b69] | 2884 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2885 | ac_configure_args="$ac_configure_args --without-MP" |
---|
[9177e3] | 2886 | DOC2TEX_EXAMPLE_EXCLUSIONS="$DOC2TEX_EXAMPLE_EXCLUSIONS -exclude MP" |
---|
[78364c] | 2887 | fi |
---|
| 2888 | |
---|
[492b69] | 2889 | echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6 |
---|
[6cc28a] | 2890 | echo "configure:2910: checking whether to use with factory" >&5 |
---|
[64c6d1] | 2891 | if test "$with_factory" = yes; then |
---|
[dc32d42] | 2892 | if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[492b69] | 2893 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 2894 | else |
---|
[492b69] | 2895 | echo "$ac_t""none" 1>&6 |
---|
| 2896 | { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; } |
---|
[6afd7c] | 2897 | fi |
---|
[64c6d1] | 2898 | elif test "$with_factory" = no; then |
---|
[492b69] | 2899 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2900 | elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then |
---|
[492b69] | 2901 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2902 | ac_configure_args="$ac_configure_args --with-factory" |
---|
[6afd7c] | 2903 | else |
---|
[492b69] | 2904 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2905 | ac_configure_args="$ac_configure_args --without-factory" |
---|
[6afd7c] | 2906 | fi |
---|
[492b69] | 2907 | |
---|
| 2908 | echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6 |
---|
[6cc28a] | 2909 | echo "configure:2929: checking whether to use with libfac" >&5 |
---|
[64c6d1] | 2910 | if test "$with_libfac" = yes; then |
---|
[dc32d42] | 2911 | if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
[492b69] | 2912 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 2913 | else |
---|
[492b69] | 2914 | echo "$ac_t""none" 1>&6 |
---|
| 2915 | { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; } |
---|
[6afd7c] | 2916 | fi |
---|
[64c6d1] | 2917 | elif test "$with_libfac" = no; then |
---|
[492b69] | 2918 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2919 | elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then |
---|
[492b69] | 2920 | echo "$ac_t""yes" 1>&6 |
---|
[64c6d1] | 2921 | ac_configure_args="$ac_configure_args --with-libfac" |
---|
[6afd7c] | 2922 | else |
---|
[492b69] | 2923 | echo "$ac_t""no" 1>&6 |
---|
[64c6d1] | 2924 | ac_configure_args="$ac_configure_args --without-libfac" |
---|
[6afd7c] | 2925 | fi |
---|
| 2926 | |
---|
[aac46c] | 2927 | |
---|
| 2928 | |
---|
[492b69] | 2929 | echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6 |
---|
[6cc28a] | 2930 | echo "configure:2950: checking whether to use with Singular" >&5 |
---|
[dc32d42] | 2931 | if test "$with_Singular" != no && test "$with_Singular" != yes; then |
---|
[6afd7c] | 2932 | if test "$enable_Singular" = yes; then |
---|
[dc32d42] | 2933 | with_Singular=yes |
---|
[6afd7c] | 2934 | else |
---|
| 2935 | with_Singular=no |
---|
| 2936 | fi |
---|
[dc32d42] | 2937 | ac_configure_args="$ac_configure_args --with-Singular=$with_Singular" |
---|
[6afd7c] | 2938 | fi |
---|
[dc32d42] | 2939 | |
---|
[6afd7c] | 2940 | if test "$with_Singular" != no; then |
---|
[492b69] | 2941 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 2942 | else |
---|
[492b69] | 2943 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 2944 | fi |
---|
| 2945 | |
---|
[9bc556] | 2946 | |
---|
[8c4748] | 2947 | SUBDIRS="" |
---|
[c232af] | 2948 | if test -d omalloc; then |
---|
| 2949 | SUBDIRS="$SUBDIRS omalloc" |
---|
| 2950 | fi |
---|
[64c6d1] | 2951 | if test -d gmp; then |
---|
[8c4748] | 2952 | SUBDIRS="$SUBDIRS gmp" |
---|
[64c6d1] | 2953 | fi |
---|
[6afd7c] | 2954 | if test -d MP; then |
---|
| 2955 | SUBDIRS="$SUBDIRS MP" |
---|
| 2956 | fi |
---|
[4d7834] | 2957 | if test -d ntl; then |
---|
| 2958 | SUBDIRS="$SUBDIRS ntl" |
---|
| 2959 | fi |
---|
[6afd7c] | 2960 | if test -d factory; then |
---|
| 2961 | SUBDIRS="$SUBDIRS factory" |
---|
| 2962 | fi |
---|
| 2963 | if test -d libfac; then |
---|
| 2964 | SUBDIRS="$SUBDIRS libfac" |
---|
| 2965 | fi |
---|
[aac46c] | 2966 | if test -d sgroup; then |
---|
| 2967 | SUBDIRS="$SUBDIRS sgroup" |
---|
| 2968 | fi |
---|
[22e84a] | 2969 | if test -d kernel; then |
---|
| 2970 | SUBDIRS="$SUBDIRS kernel" |
---|
| 2971 | fi |
---|
| 2972 | if test -d IntegerProgramming; then |
---|
| 2973 | SUBDIRS="$SUBDIRS IntegerProgramming" |
---|
| 2974 | fi |
---|
[518752] | 2975 | if test -d Singular; then |
---|
| 2976 | SUBDIRS="$SUBDIRS Singular" |
---|
| 2977 | fi |
---|
[aac46c] | 2978 | if test -d Texinfo; then |
---|
| 2979 | SUBDIRS="$SUBDIRS Texinfo" |
---|
[6b27cb] | 2980 | fi |
---|
| 2981 | if test -d Texi2html; then |
---|
| 2982 | SUBDIRS="$SUBDIRS Texi2html" |
---|
[460c1e1] | 2983 | fi |
---|
[aac46c] | 2984 | if test -d doc; then |
---|
| 2985 | SUBDIRS="$SUBDIRS doc" |
---|
| 2986 | fi |
---|
| 2987 | if test -d emacs; then |
---|
| 2988 | SUBDIRS="$SUBDIRS emacs" |
---|
| 2989 | fi |
---|
[3c473c] | 2990 | if test -d dyn_modules; then |
---|
| 2991 | SUBDIRS="$SUBDIRS dyn_modules" |
---|
[99b3777] | 2992 | fi |
---|
[3c473c] | 2993 | if test -d "dyn_modules"; then |
---|
| 2994 | CONFIG_SUBDIRS=$CONFIG_SUBDIRS" dyn_modules" |
---|
| 2995 | BUILD_SUBDIRS=$BUILD_SUBDIRS" dyn_modules" |
---|
[b640fd] | 2996 | fi |
---|
[492b69] | 2997 | |
---|
[051dc7] | 2998 | echo $ac_n "checking whether to use libsvd""... $ac_c" 1>&6 |
---|
[6cc28a] | 2999 | echo "configure:3019: checking whether to use libsvd" >&5 |
---|
[051dc7] | 3000 | if test "$with_svd" = yes; then |
---|
| 3001 | echo "$ac_t""yes" 1>&6 |
---|
| 3002 | CONFIG_SUBDIRS=$CONFIG_SUBDIRS" svd" |
---|
| 3003 | BUILD_SUBDIRS=$BUILD_SUBDIRS" svd" |
---|
| 3004 | else |
---|
| 3005 | echo "$ac_t""no" 1>&6 |
---|
| 3006 | fi |
---|
| 3007 | |
---|
[492b69] | 3008 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
[6cc28a] | 3009 | echo "configure:3029: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
[492b69] | 3010 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 3011 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 3012 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
[6afd7c] | 3013 | else |
---|
[492b69] | 3014 | cat > conftestmake <<\EOF |
---|
[6afd7c] | 3015 | all: |
---|
[492b69] | 3016 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 3017 | EOF |
---|
[6afd7c] | 3018 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
[492b69] | 3019 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
[6afd7c] | 3020 | if test -n "$ac_maketemp"; then |
---|
| 3021 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 3022 | else |
---|
| 3023 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 3024 | fi |
---|
[492b69] | 3025 | rm -f conftestmake |
---|
[6afd7c] | 3026 | fi |
---|
| 3027 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
[492b69] | 3028 | echo "$ac_t""yes" 1>&6 |
---|
[6afd7c] | 3029 | SET_MAKE= |
---|
| 3030 | else |
---|
[492b69] | 3031 | echo "$ac_t""no" 1>&6 |
---|
[6afd7c] | 3032 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 3033 | fi |
---|
| 3034 | |
---|
| 3035 | |
---|
| 3036 | |
---|
[6b27cb] | 3037 | |
---|
[25ed91] | 3038 | |
---|
[492b69] | 3039 | subdirs="$CONFIG_SUBDIRS" |
---|
| 3040 | |
---|
[6afd7c] | 3041 | |
---|
[492b69] | 3042 | trap '' 1 2 15 |
---|
| 3043 | cat > confcache <<\EOF |
---|
[6afd7c] | 3044 | # This file is a shell script that caches the results of configure |
---|
| 3045 | # tests run on this system so they can be shared between configure |
---|
[492b69] | 3046 | # scripts and configure runs. It is not useful on other systems. |
---|
| 3047 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
[6afd7c] | 3048 | # |
---|
[492b69] | 3049 | # By default, configure uses ./config.cache as the cache file, |
---|
| 3050 | # creating it if it does not exist already. You can give configure |
---|
| 3051 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 3052 | # what configure does when it calls configure scripts in |
---|
| 3053 | # subdirectories, so they share the cache. |
---|
| 3054 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 3055 | # config.status only pays attention to the cache file if you give it the |
---|
| 3056 | # --recheck option to rerun configure. |
---|
[6afd7c] | 3057 | # |
---|
[492b69] | 3058 | EOF |
---|
[2189fb] | 3059 | # The following way of writing the cache mishandles newlines in values, |
---|
| 3060 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 3061 | # So, don't put newlines in cache variables' values. |
---|
[6afd7c] | 3062 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 3063 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
[492b69] | 3064 | (set) 2>&1 | |
---|
| 3065 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 3066 | *ac_space=\ *) |
---|
| 3067 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 3068 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 3069 | sed -n \ |
---|
| 3070 | -e "s/'/'\\\\''/g" \ |
---|
| 3071 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 3072 | ;; |
---|
| 3073 | *) |
---|
| 3074 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 3075 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 3076 | ;; |
---|
| 3077 | esac >> confcache |
---|
| 3078 | if cmp -s $cache_file confcache; then |
---|
| 3079 | : |
---|
| 3080 | else |
---|
[6afd7c] | 3081 | if test -w $cache_file; then |
---|
[492b69] | 3082 | echo "updating cache $cache_file" |
---|
| 3083 | cat confcache > $cache_file |
---|
[6afd7c] | 3084 | else |
---|
| 3085 | echo "not updating unwritable cache $cache_file" |
---|
| 3086 | fi |
---|
| 3087 | fi |
---|
| 3088 | rm -f confcache |
---|
| 3089 | |
---|
[492b69] | 3090 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 3091 | |
---|
[6afd7c] | 3092 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 3093 | # Let make expand exec_prefix. |
---|
| 3094 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 3095 | |
---|
[492b69] | 3096 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 3097 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 3098 | # If there is a colon in the path, we need to keep it. |
---|
[6afd7c] | 3099 | if test "x$srcdir" = x.; then |
---|
[492b69] | 3100 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
[6afd7c] | 3101 | fi |
---|
| 3102 | |
---|
[492b69] | 3103 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 3104 | |
---|
[6afd7c] | 3105 | # Transform confdefs.h into DEFS. |
---|
| 3106 | # Protect against shell expansion while executing Makefile rules. |
---|
| 3107 | # Protect against Makefile macro expansion. |
---|
[074171] | 3108 | cat > conftest.defs <<\EOF |
---|
| 3109 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
| 3110 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
| 3111 | s%\[%\\&%g |
---|
| 3112 | s%\]%\\&%g |
---|
| 3113 | s%\$%$$%g |
---|
| 3114 | EOF |
---|
| 3115 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
| 3116 | rm -f conftest.defs |
---|
[492b69] | 3117 | |
---|
| 3118 | |
---|
| 3119 | # Without the "./", some shells look in PATH for config.status. |
---|
[690e864] | 3120 | : ${CONFIG_STATUS=./config.status} |
---|
[492b69] | 3121 | |
---|
| 3122 | echo creating $CONFIG_STATUS |
---|
| 3123 | rm -f $CONFIG_STATUS |
---|
| 3124 | cat > $CONFIG_STATUS <<EOF |
---|
| 3125 | #! /bin/sh |
---|
| 3126 | # Generated automatically by configure. |
---|
[6afd7c] | 3127 | # Run this file to recreate the current configuration. |
---|
[492b69] | 3128 | # This directory was configured as follows, |
---|
| 3129 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 3130 | # |
---|
| 3131 | # $0 $ac_configure_args |
---|
| 3132 | # |
---|
[6afd7c] | 3133 | # Compiler output produced by configure, useful for debugging |
---|
[492b69] | 3134 | # configure, is in ./config.log if it exists. |
---|
[690e864] | 3135 | |
---|
[492b69] | 3136 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 3137 | for ac_option |
---|
[6afd7c] | 3138 | do |
---|
[492b69] | 3139 | case "\$ac_option" in |
---|
| 3140 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 3141 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 3142 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 3143 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
| 3144 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
| 3145 | exit 0 ;; |
---|
| 3146 | -help | --help | --hel | --he | --h) |
---|
| 3147 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 3148 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 3149 | esac |
---|
[6afd7c] | 3150 | done |
---|
| 3151 | |
---|
[492b69] | 3152 | ac_given_srcdir=$srcdir |
---|
| 3153 | ac_given_INSTALL="$INSTALL" |
---|
[d432e74] | 3154 | |
---|
[492b69] | 3155 | trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
| 3156 | EOF |
---|
| 3157 | cat >> $CONFIG_STATUS <<EOF |
---|
[d432e74] | 3158 | |
---|
[492b69] | 3159 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 3160 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 3161 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 3162 | $ac_vpsub |
---|
| 3163 | $extrasub |
---|
| 3164 | s%@SHELL@%$SHELL%g |
---|
| 3165 | s%@CFLAGS@%$CFLAGS%g |
---|
| 3166 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 3167 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 3168 | s%@FFLAGS@%$FFLAGS%g |
---|
| 3169 | s%@DEFS@%$DEFS%g |
---|
| 3170 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 3171 | s%@LIBS@%$LIBS%g |
---|
| 3172 | s%@exec_prefix@%$exec_prefix%g |
---|
| 3173 | s%@prefix@%$prefix%g |
---|
| 3174 | s%@program_transform_name@%$program_transform_name%g |
---|
| 3175 | s%@bindir@%$bindir%g |
---|
| 3176 | s%@sbindir@%$sbindir%g |
---|
| 3177 | s%@libexecdir@%$libexecdir%g |
---|
| 3178 | s%@datadir@%$datadir%g |
---|
| 3179 | s%@sysconfdir@%$sysconfdir%g |
---|
| 3180 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 3181 | s%@localstatedir@%$localstatedir%g |
---|
| 3182 | s%@libdir@%$libdir%g |
---|
| 3183 | s%@includedir@%$includedir%g |
---|
| 3184 | s%@oldincludedir@%$oldincludedir%g |
---|
| 3185 | s%@infodir@%$infodir%g |
---|
| 3186 | s%@mandir@%$mandir%g |
---|
| 3187 | s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g |
---|
| 3188 | s%@VERSION_DATE@%$VERSION_DATE%g |
---|
| 3189 | s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g |
---|
| 3190 | s%@SINGULAR_RPM_VERSION@%$SINGULAR_RPM_VERSION%g |
---|
| 3191 | s%@SINGULAR_ROOT_DIR@%$SINGULAR_ROOT_DIR%g |
---|
| 3192 | s%@SINGUNAME@%$SINGUNAME%g |
---|
| 3193 | s%@SING_UNAME@%$SING_UNAME%g |
---|
| 3194 | s%@CC@%$CC%g |
---|
| 3195 | s%@CPP@%$CPP%g |
---|
| 3196 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
| 3197 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
| 3198 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
| 3199 | s%@CXX@%$CXX%g |
---|
| 3200 | s%@PIPE@%$PIPE%g |
---|
| 3201 | s%@PERL@%$PERL%g |
---|
| 3202 | s%@UUDECODE@%$UUDECODE%g |
---|
| 3203 | s%@GUNZIP@%$GUNZIP%g |
---|
| 3204 | s%@MYGZIP@%$MYGZIP%g |
---|
| 3205 | s%@LATEX2HTML@%$LATEX2HTML%g |
---|
| 3206 | s%@LN_S@%$LN_S%g |
---|
| 3207 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
---|
| 3208 | s%@SINGULAR@%$SINGULAR%g |
---|
[9177e3] | 3209 | s%@DOC2TEX_EXAMPLE_EXCLUSIONS@%$DOC2TEX_EXAMPLE_EXCLUSIONS%g |
---|
[492b69] | 3210 | s%@TMP_DIR@%$TMP_DIR%g |
---|
[9f738e4] | 3211 | s%@CXXCPP@%$CXXCPP%g |
---|
[492b69] | 3212 | s%@TEXI2PDF@%$TEXI2PDF%g |
---|
| 3213 | s%@MAKEINFO@%$MAKEINFO%g |
---|
| 3214 | s%@TEXINDEX@%$TEXINDEX%g |
---|
| 3215 | s%@TEXI2HTML@%$TEXI2HTML%g |
---|
| 3216 | s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g |
---|
| 3217 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 3218 | s%@SUBDIRS@%$SUBDIRS%g |
---|
| 3219 | s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g |
---|
[25ed91] | 3220 | s%@BUILD1_SUBDIRS@%$BUILD1_SUBDIRS%g |
---|
[492b69] | 3221 | s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g |
---|
| 3222 | s%@subdirs@%$subdirs%g |
---|
[690e864] | 3223 | |
---|
[492b69] | 3224 | CEOF |
---|
| 3225 | EOF |
---|
| 3226 | |
---|
| 3227 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3228 | |
---|
| 3229 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 3230 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 3231 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 3232 | ac_file=1 # Number of current file. |
---|
| 3233 | ac_beg=1 # First line for current file. |
---|
| 3234 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 3235 | ac_more_lines=: |
---|
| 3236 | ac_sed_cmds="" |
---|
| 3237 | while $ac_more_lines; do |
---|
| 3238 | if test $ac_beg -gt 1; then |
---|
| 3239 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
[f84882] | 3240 | else |
---|
[492b69] | 3241 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
[f84882] | 3242 | fi |
---|
[492b69] | 3243 | if test ! -s conftest.s$ac_file; then |
---|
| 3244 | ac_more_lines=false |
---|
| 3245 | rm -f conftest.s$ac_file |
---|
[f84882] | 3246 | else |
---|
[492b69] | 3247 | if test -z "$ac_sed_cmds"; then |
---|
| 3248 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 3249 | else |
---|
| 3250 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 3251 | fi |
---|
| 3252 | ac_file=`expr $ac_file + 1` |
---|
| 3253 | ac_beg=$ac_end |
---|
| 3254 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
[2189fb] | 3255 | fi |
---|
[f84882] | 3256 | done |
---|
[492b69] | 3257 | if test -z "$ac_sed_cmds"; then |
---|
| 3258 | ac_sed_cmds=cat |
---|
[f84882] | 3259 | fi |
---|
[492b69] | 3260 | EOF |
---|
[6afd7c] | 3261 | |
---|
[492b69] | 3262 | cat >> $CONFIG_STATUS <<EOF |
---|
[690e864] | 3263 | |
---|
[492b69] | 3264 | CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"} |
---|
| 3265 | EOF |
---|
| 3266 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 3267 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 3268 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 3269 | case "$ac_file" in |
---|
| 3270 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 3271 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 3272 | *) ac_file_in="${ac_file}.in" ;; |
---|
[d432e74] | 3273 | esac |
---|
[690e864] | 3274 | |
---|
[492b69] | 3275 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
[690e864] | 3276 | |
---|
[492b69] | 3277 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 3278 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 3279 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 3280 | # The file is in a subdirectory. |
---|
| 3281 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 3282 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 3283 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 3284 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 3285 | else |
---|
| 3286 | ac_dir_suffix= ac_dots= |
---|
[f84882] | 3287 | fi |
---|
[6afd7c] | 3288 | |
---|
[492b69] | 3289 | case "$ac_given_srcdir" in |
---|
| 3290 | .) srcdir=. |
---|
| 3291 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 3292 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 3293 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
[690e864] | 3294 | *) # Relative path. |
---|
[492b69] | 3295 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 3296 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 3297 | esac |
---|
[690e864] | 3298 | |
---|
[492b69] | 3299 | case "$ac_given_INSTALL" in |
---|
| 3300 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 3301 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 3302 | esac |
---|
[690e864] | 3303 | |
---|
[492b69] | 3304 | echo creating "$ac_file" |
---|
| 3305 | rm -f "$ac_file" |
---|
| 3306 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 3307 | case "$ac_file" in |
---|
| 3308 | *Makefile*) ac_comsub="1i\\ |
---|
| 3309 | # $configure_input" ;; |
---|
| 3310 | *) ac_comsub= ;; |
---|
[6afd7c] | 3311 | esac |
---|
[2189fb] | 3312 | |
---|
[492b69] | 3313 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 3314 | sed -e "$ac_comsub |
---|
| 3315 | s%@configure_input@%$configure_input%g |
---|
| 3316 | s%@srcdir@%$srcdir%g |
---|
| 3317 | s%@top_srcdir@%$top_srcdir%g |
---|
| 3318 | s%@INSTALL@%$INSTALL%g |
---|
| 3319 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 3320 | fi; done |
---|
| 3321 | rm -f conftest.s* |
---|
[6afd7c] | 3322 | |
---|
[492b69] | 3323 | EOF |
---|
| 3324 | cat >> $CONFIG_STATUS <<EOF |
---|
[6afd7c] | 3325 | |
---|
[492b69] | 3326 | EOF |
---|
| 3327 | cat >> $CONFIG_STATUS <<\EOF |
---|
[6afd7c] | 3328 | |
---|
[492b69] | 3329 | exit 0 |
---|
| 3330 | EOF |
---|
[6afd7c] | 3331 | chmod +x $CONFIG_STATUS |
---|
[492b69] | 3332 | rm -fr confdefs* $ac_clean_files |
---|
| 3333 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
[6afd7c] | 3334 | |
---|
| 3335 | if test "$no_recursion" != yes; then |
---|
| 3336 | |
---|
| 3337 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
| 3338 | ac_sub_configure_args= |
---|
| 3339 | ac_prev= |
---|
| 3340 | for ac_arg in $ac_configure_args; do |
---|
| 3341 | if test -n "$ac_prev"; then |
---|
| 3342 | ac_prev= |
---|
| 3343 | continue |
---|
| 3344 | fi |
---|
[492b69] | 3345 | case "$ac_arg" in |
---|
[6afd7c] | 3346 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 3347 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 3348 | ac_prev=cache_file ;; |
---|
| 3349 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
[492b69] | 3350 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
[6afd7c] | 3351 | ;; |
---|
| 3352 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 3353 | ac_prev=srcdir ;; |
---|
| 3354 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 3355 | ;; |
---|
| 3356 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
| 3357 | esac |
---|
| 3358 | done |
---|
| 3359 | |
---|
[492b69] | 3360 | for ac_config_dir in $CONFIG_SUBDIRS; do |
---|
[6afd7c] | 3361 | |
---|
| 3362 | # Do not complain, so a configure script can configure whichever |
---|
| 3363 | # parts of a large source tree are present. |
---|
[492b69] | 3364 | if test ! -d $srcdir/$ac_config_dir; then |
---|
| 3365 | continue |
---|
| 3366 | fi |
---|
[6afd7c] | 3367 | |
---|
[492b69] | 3368 | echo configuring in $ac_config_dir |
---|
[d432e74] | 3369 | |
---|
[492b69] | 3370 | case "$srcdir" in |
---|
| 3371 | .) ;; |
---|
| 3372 | *) |
---|
| 3373 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
| 3374 | else |
---|
| 3375 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
| 3376 | fi |
---|
| 3377 | ;; |
---|
| 3378 | esac |
---|
| 3379 | |
---|
| 3380 | ac_popdir=`pwd` |
---|
| 3381 | cd $ac_config_dir |
---|
[2189fb] | 3382 | |
---|
[492b69] | 3383 | # A "../" for each directory in /$ac_config_dir. |
---|
| 3384 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
[d432e74] | 3385 | |
---|
[492b69] | 3386 | case "$srcdir" in |
---|
| 3387 | .) # No --srcdir option. We are building in place. |
---|
| 3388 | ac_sub_srcdir=$srcdir ;; |
---|
| 3389 | /*) # Absolute path. |
---|
| 3390 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
| 3391 | *) # Relative path. |
---|
| 3392 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
| 3393 | esac |
---|
[6afd7c] | 3394 | |
---|
| 3395 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
[492b69] | 3396 | if test -f $ac_sub_srcdir/configure; then |
---|
| 3397 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
| 3398 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
[6afd7c] | 3399 | ac_sub_configure=$ac_configure |
---|
| 3400 | else |
---|
[492b69] | 3401 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
[6afd7c] | 3402 | ac_sub_configure= |
---|
| 3403 | fi |
---|
| 3404 | |
---|
| 3405 | # The recursion is here. |
---|
| 3406 | if test -n "$ac_sub_configure"; then |
---|
[492b69] | 3407 | |
---|
[6afd7c] | 3408 | # Make the cache file name correct relative to the subdirectory. |
---|
[492b69] | 3409 | case "$cache_file" in |
---|
| 3410 | /*) ac_sub_cache_file=$cache_file ;; |
---|
[6afd7c] | 3411 | *) # Relative path. |
---|
[492b69] | 3412 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
[6afd7c] | 3413 | esac |
---|
[492b69] | 3414 | case "$ac_given_INSTALL" in |
---|
| 3415 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 3416 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 3417 | esac |
---|
[6afd7c] | 3418 | |
---|
[492b69] | 3419 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
[6afd7c] | 3420 | # The eval makes quoting arguments work. |
---|
[492b69] | 3421 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
| 3422 | then : |
---|
| 3423 | else |
---|
| 3424 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
| 3425 | fi |
---|
[6afd7c] | 3426 | fi |
---|
| 3427 | |
---|
| 3428 | cd $ac_popdir |
---|
| 3429 | done |
---|
| 3430 | fi |
---|
[dc32d42] | 3431 | |
---|