Changeset ba8f1a in git for factory/configure
- Timestamp:
- Jan 13, 2005, 11:41:10 AM (19 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 22347b6562a892784bfd7995db6aa0e9e0bc8ef8
- Parents:
- d617147de528a55024fe3f50df37bc9f27683fd6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/configure
rd617147 rba8f1a 1 1 #! /bin/sh 2 3 # From configure.in Id: configure.in 2 # From configure.in Id: configure.in. 4 3 # Guess values for system-dependent variables and create Makefiles. 5 # Generated automatically using autoconf version 2.13 6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 4 # Generated by GNU Autoconf 2.57. 7 5 # 6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 7 # Free Software Foundation, Inc. 8 8 # This configure script is free software; the Free Software Foundation 9 9 # gives unlimited permission to copy, distribute and modify it. 10 11 # Defaults: 12 ac_help= 10 ## --------------------- ## 11 ## M4sh Initialization. ## 12 ## --------------------- ## 13 14 # Be Bourne compatible 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23 fi 24 25 # Support unset when possible. 26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 27 as_unset=unset 28 else 29 as_unset=false 30 fi 31 32 33 # Work around bugs in pre-3.0 UWIN ksh. 34 $as_unset ENV MAIL MAILPATH 35 PS1='$ ' 36 PS2='> ' 37 PS4='+ ' 38 39 # NLS nuisances. 40 for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44 do 45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50 done 51 52 # Required to use basename. 53 if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55 else 56 as_expr=false 57 fi 58 59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61 else 62 as_basename=false 63 fi 64 65 66 # Name of the executable. 67 as_me=`$as_basename "$0" || 68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72 echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79 # PATH needs CR, and LINENO needs CR and PATH. 80 # Avoid depending upon Character Ranges. 81 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84 as_cr_digits='0123456789' 85 as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87 # The user is always right. 88 if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98 fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111 for as_dir in $PATH 112 do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116 done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133 do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153 done 154 ;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185 } 186 187 188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190 ' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193 esac 194 195 if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197 else 198 as_expr=false 199 fi 200 201 rm -f conf$$ conf$$.exe conf$$.file 202 echo >conf$$.file 203 if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212 elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214 else 215 as_ln_s='cp -p' 216 fi 217 rm -f conf$$ conf$$.exe conf$$.file 218 219 if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221 else 222 as_mkdir_p=false 223 fi 224 225 as_executable_p="test -f" 226 227 # Sed expression to map a string onto a valid CPP name. 228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 229 230 # Sed expression to map a string onto a valid variable name. 231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 232 233 234 # IFS 235 # We need space, tab and new line, in precisely that order. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 243 244 # Name of the host. 245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246 # so uname gets run too. 247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249 exec 6>&1 250 251 # 252 # Initializations. 253 # 13 254 ac_default_prefix=/usr/local 14 # Any additions from configure.in: 15 ac_help="$ac_help 16 --with-memman(=<memman>) specify Factory memory manager. 17 <memman> is either \`old' (default), \`new', or \`no'." 18 ac_help="$ac_help 19 --with-omalloc build for use with omalloc" 20 ac_help="$ac_help 21 --with-gmp(=<gmp_inc_path>(,<gmp_lib_path>)) 22 specify where to find gmp library." 23 ac_help="$ac_help 24 --with-Singular build for use with computer algebra system Singular." 25 ac_help="$ac_help 26 --with-NTL build for use with NTL." 27 ac_help="$ac_help 28 --enable-NTL build for use with NTL." 29 ac_help="$ac_help 30 --enable-cf-inline build Factory with \"configurable inline methods\" 31 enabled." 32 ac_help="$ac_help 33 --disable-streamio build Factory without stream IO" 34 ac_help="$ac_help 35 --enable-memdebug=<level> switch on memory management debugging. Meaningful 36 with \`--with-memman=new' only. <level> may be either 37 \`no' (default), \`normal', or \`full'." 38 ac_help="$ac_help 39 --enable-assertions build Factory with assertions activated" 40 ac_help="$ac_help 41 --enable-timing build Factory so it will print timing information" 42 ac_help="$ac_help 43 --enable-debugoutput build Factory so it will print debugging information" 44 ac_help="$ac_help 45 --enable-gmp together with \`--with-Singular' means: installation 46 in process, be graceful when there is no \`gmp.h'" 255 ac_config_libobj_dir=. 256 cross_compiling=no 257 subdirs= 258 MFLAGS= 259 MAKEFLAGS= 260 SHELL=${CONFIG_SHELL-/bin/sh} 261 262 # Maximum number of lines to put in a shell here document. 263 # This variable seems obsolete. It should probably be removed, and 264 # only ac_max_sed_lines should be used. 265 : ${ac_max_here_lines=38} 266 267 # Identity of this package. 268 PACKAGE_NAME= 269 PACKAGE_TARNAME= 270 PACKAGE_VERSION= 271 PACKAGE_STRING= 272 PACKAGE_BUGREPORT= 273 274 ac_unique_file="canonicalform.cc" 275 # Factoring default headers for most tests. 276 ac_includes_default="\ 277 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 284 #if STDC_HEADERS 285 # include <stdlib.h> 286 # include <stddef.h> 287 #else 288 # if HAVE_STDLIB_H 289 # include <stdlib.h> 290 # endif 291 #endif 292 #if HAVE_STRING_H 293 # if !STDC_HEADERS && HAVE_MEMORY_H 294 # include <memory.h> 295 # endif 296 # include <string.h> 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 300 #endif 301 #if HAVE_INTTYPES_H 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 307 #endif 308 #if HAVE_UNISTD_H 309 # include <unistd.h> 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP CXXCPP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB SET_MAKE AR M4 BISON FACTORY_MKINSTALLDIRS FACTORY_MAKEHEADER EGREP gftabledir templatedir factory_version libfactory ARFLAGS M4FLAGS MAKEHEADERFLAGS factorysrc factoryincl memmansrc memmanincl alltargets installtargets uninstalltargets LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 47 314 48 315 # Initialize some variables set by options. 316 ac_init_help= 317 ac_init_version=false 49 318 # The variables have the same names as the options, with 50 319 # dashes changed to underlines. 51 build=NONE 52 cache_file=./config.cache 320 cache_file=/dev/null 53 321 exec_prefix=NONE 54 host=NONE55 322 no_create= 56 nonopt=NONE57 323 no_recursion= 58 324 prefix=NONE … … 63 329 site= 64 330 srcdir= 65 target=NONE66 331 verbose= 67 332 x_includes=NONE 68 333 x_libraries=NONE 334 335 # Installation directory options. 336 # These are left unexpanded so users can "make install exec_prefix=/foo" 337 # and all the variables that are supposed to be based on exec_prefix 338 # by default will actually change. 339 # Use braces instead of parens because sh, perl, etc. also accept them. 69 340 bindir='${exec_prefix}/bin' 70 341 sbindir='${exec_prefix}/sbin' … … 80 351 mandir='${prefix}/man' 81 352 82 # Initialize some other variables.83 subdirs=84 MFLAGS= MAKEFLAGS=85 SHELL=${CONFIG_SHELL-/bin/sh}86 # Maximum number of lines to put in a shell here document.87 ac_max_here_lines=1288 89 353 ac_prev= 90 354 for ac_option 91 355 do 92 93 356 # If the previous option needs an argument, assign it. 94 357 if test -n "$ac_prev"; then … … 98 361 fi 99 362 100 case "$ac_option" in 101 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 102 *) ac_optarg= ;; 103 esac 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 104 364 105 365 # Accept the important Cygnus configure options, so we can diagnose typos. 106 366 107 case "$ac_option"in367 case $ac_option in 108 368 109 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 110 370 ac_prev=bindir ;; 111 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 112 bindir= "$ac_optarg";;372 bindir=$ac_optarg ;; 113 373 114 374 -build | --build | --buil | --bui | --bu) 115 ac_prev=build ;;375 ac_prev=build_alias ;; 116 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 117 build ="$ac_optarg";;377 build_alias=$ac_optarg ;; 118 378 119 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 122 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 123 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 124 cache_file="$ac_optarg" ;; 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 125 388 126 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 128 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 129 392 | --da=*) 130 datadir= "$ac_optarg";;393 datadir=$ac_optarg ;; 131 394 132 395 -disable-* | --disable-*) 133 ac_feature=`e cho $ac_option|sed -e 's/-*disable-//'`396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 134 397 # Reject names that are not valid shell variable names. 135 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then136 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }137 fi138 ac_feature=`echo $ac_feature | sed 's/-/_/g'`139 eval "enable_$ {ac_feature}=no" ;;398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 140 403 141 404 -enable-* | --enable-*) 142 ac_feature=`e cho $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 143 406 # Reject names that are not valid shell variable names. 144 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then145 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }146 fi147 ac_feature=`echo $ac_feature | sed 's/-/_/g'`148 case "$ac_option"in149 *=*) ;;407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 150 413 *) ac_optarg=yes ;; 151 414 esac 152 eval "enable_$ {ac_feature}='$ac_optarg'" ;;415 eval "enable_$ac_feature='$ac_optarg'" ;; 153 416 154 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 159 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 160 423 | --exec=* | --exe=* | --ex=*) 161 exec_prefix= "$ac_optarg";;424 exec_prefix=$ac_optarg ;; 162 425 163 426 -gas | --gas | --ga | --g) … … 165 428 with_gas=yes ;; 166 429 167 -help | --help | --hel | --he) 168 # Omit some internal or obsolete options to make the list less imposing. 169 # This message is too long to be a string in the A/UX 3.1 sh. 170 cat << EOF 171 Usage: configure [options] [host] 172 Options: [defaults in brackets after descriptions] 173 Configuration: 174 --cache-file=FILE cache test results in FILE 175 --help print this message 176 --no-create do not create output files 177 --quiet, --silent do not print \`checking...' messages 178 --version print the version of autoconf that created configure 179 Directory and file names: 180 --prefix=PREFIX install architecture-independent files in PREFIX 181 [$ac_default_prefix] 182 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 183 [same as prefix] 184 --bindir=DIR user executables in DIR [EPREFIX/bin] 185 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 186 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 187 --datadir=DIR read-only architecture-independent data in DIR 188 [PREFIX/share] 189 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 190 --sharedstatedir=DIR modifiable architecture-independent data in DIR 191 [PREFIX/com] 192 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 193 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 194 --includedir=DIR C header files in DIR [PREFIX/include] 195 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 196 --infodir=DIR info documentation in DIR [PREFIX/info] 197 --mandir=DIR man documentation in DIR [PREFIX/man] 198 --srcdir=DIR find the sources in DIR [configure dir or ..] 199 --program-prefix=PREFIX prepend PREFIX to installed program names 200 --program-suffix=SUFFIX append SUFFIX to installed program names 201 --program-transform-name=PROGRAM 202 run sed PROGRAM on installed program names 203 EOF 204 cat << EOF 205 Host type: 206 --build=BUILD configure for building on BUILD [BUILD=HOST] 207 --host=HOST configure for HOST [guessed] 208 --target=TARGET configure for TARGET [TARGET=HOST] 209 Features and packages: 210 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 211 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 212 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 213 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 214 --x-includes=DIR X include files are in DIR 215 --x-libraries=DIR X library files are in DIR 216 EOF 217 if test -n "$ac_help"; then 218 echo "--enable and --with options recognized:$ac_help" 219 fi 220 exit 0 ;; 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 221 436 222 437 -host | --host | --hos | --ho) 223 ac_prev=host ;;438 ac_prev=host_alias ;; 224 439 -host=* | --host=* | --hos=* | --ho=*) 225 host ="$ac_optarg";;440 host_alias=$ac_optarg ;; 226 441 227 442 -includedir | --includedir | --includedi | --included | --include \ … … 230 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 231 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 232 includedir= "$ac_optarg";;447 includedir=$ac_optarg ;; 233 448 234 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 235 450 ac_prev=infodir ;; 236 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 237 infodir= "$ac_optarg";;452 infodir=$ac_optarg ;; 238 453 239 454 -libdir | --libdir | --libdi | --libd) 240 455 ac_prev=libdir ;; 241 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 242 libdir= "$ac_optarg";;457 libdir=$ac_optarg ;; 243 458 244 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 247 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 248 463 | --libexe=* | --libex=* | --libe=*) 249 libexecdir= "$ac_optarg";;464 libexecdir=$ac_optarg ;; 250 465 251 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 256 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 257 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 258 localstatedir= "$ac_optarg";;473 localstatedir=$ac_optarg ;; 259 474 260 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 261 476 ac_prev=mandir ;; 262 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 263 mandir= "$ac_optarg";;478 mandir=$ac_optarg ;; 264 479 265 480 -nfp | --nfp | --nf) … … 268 483 269 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 270 | --no-cr | --no-c )485 | --no-cr | --no-c | -n) 271 486 no_create=yes ;; 272 487 … … 282 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 283 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 284 oldincludedir= "$ac_optarg";;499 oldincludedir=$ac_optarg ;; 285 500 286 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 287 502 ac_prev=prefix ;; 288 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 289 prefix= "$ac_optarg";;504 prefix=$ac_optarg ;; 290 505 291 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 294 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 295 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 296 program_prefix= "$ac_optarg";;511 program_prefix=$ac_optarg ;; 297 512 298 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 301 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 302 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 303 program_suffix= "$ac_optarg";;518 program_suffix=$ac_optarg ;; 304 519 305 520 -program-transform-name | --program-transform-name \ … … 318 533 | --program-trans=* | --program-tran=* \ 319 534 | --progr-tra=* | --program-tr=* | --program-t=*) 320 program_transform_name= "$ac_optarg";;535 program_transform_name=$ac_optarg ;; 321 536 322 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 328 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 329 544 | --sbi=* | --sb=*) 330 sbindir= "$ac_optarg";;545 sbindir=$ac_optarg ;; 331 546 332 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 339 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 340 555 | --sha=* | --sh=*) 341 sharedstatedir= "$ac_optarg";;556 sharedstatedir=$ac_optarg ;; 342 557 343 558 -site | --site | --sit) 344 559 ac_prev=site ;; 345 560 -site=* | --site=* | --sit=*) 346 site= "$ac_optarg";;561 site=$ac_optarg ;; 347 562 348 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 349 564 ac_prev=srcdir ;; 350 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 351 srcdir= "$ac_optarg";;566 srcdir=$ac_optarg ;; 352 567 353 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 356 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 357 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 358 sysconfdir= "$ac_optarg";;573 sysconfdir=$ac_optarg ;; 359 574 360 575 -target | --target | --targe | --targ | --tar | --ta | --t) 361 ac_prev=target ;;576 ac_prev=target_alias ;; 362 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 363 target ="$ac_optarg";;578 target_alias=$ac_optarg ;; 364 579 365 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 366 581 verbose=yes ;; 367 582 368 -version | --version | --versio | --versi | --vers) 369 echo "configure generated by autoconf version 2.13" 370 exit 0 ;; 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 371 585 372 586 -with-* | --with-*) 373 ac_package=`e cho $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 374 588 # Reject names that are not valid shell variable names. 375 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then376 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }377 fi589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 378 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 379 case "$ac_option"in380 *=*) ;;593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 381 595 *) ac_optarg=yes ;; 382 596 esac 383 eval "with_$ {ac_package}='$ac_optarg'" ;;597 eval "with_$ac_package='$ac_optarg'" ;; 384 598 385 599 -without-* | --without-*) 386 ac_package=`e cho $ac_option|sed -e 's/-*without-//'`600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 387 601 # Reject names that are not valid shell variable names. 388 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then389 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }390 fi391 ac_package=`echo $ac_package | sed 's/-/_/g'`392 eval "with_$ {ac_package}=no" ;;602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 393 607 394 608 --x) … … 401 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 402 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 403 x_includes= "$ac_optarg";;617 x_includes=$ac_optarg ;; 404 618 405 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 408 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 409 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 410 x_libraries="$ac_optarg" ;; 411 412 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627 Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 413 629 ;; 414 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 415 641 *) 416 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 417 echo "configure: warning: $ac_option: invalid host type" 1>&2 418 fi 419 if test "x$nonopt" != xNONE; then 420 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 421 fi 422 nonopt="$ac_option" 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 423 647 ;; 424 648 … … 427 651 428 652 if test -n "$ac_prev"; then 429 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 430 fi 431 432 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 433 434 # File descriptor usage: 435 # 0 standard input 436 # 1 file creation 437 # 2 errors and warnings 438 # 3 some systems may open it to /dev/tty 439 # 4 used on the Kubota Titan 440 # 6 checking for... messages and results 441 # 5 compiler messages saved in config.log 442 if test "$silent" = yes; then 443 exec 6>/dev/null 444 else 445 exec 6>&1 446 fi 447 exec 5>./config.log 448 449 echo "\ 450 This file contains any messages produced by compilers while 451 running configure, to aid debugging if configure makes a mistake. 452 " 1>&5 453 454 # Strip out --no-create and --no-recursion so they do not pile up. 455 # Also quote any args containing shell metacharacters. 456 ac_configure_args= 457 for ac_arg 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 458 660 do 459 case "$ac_arg" in 460 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 461 | --no-cr | --no-c) ;; 462 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 463 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 465 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 466 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 467 666 esac 468 667 done 469 668 470 # NLS nuisances. 471 # Only set these to C if already set. These must not be set unconditionally 472 # because not all systems understand e.g. LANG=C (notably SCO). 473 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 474 # Non-C LC_CTYPE values break the ctype check. 475 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 476 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 477 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 478 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 479 480 # confdefs.h avoids OS command line length limits that DEFS can exceed. 481 rm -rf conftest* confdefs.h 482 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 483 echo > confdefs.h 484 485 # A filename unique to this package, relative to the directory that 486 # configure is in, which we can look for to find out if srcdir is correct. 487 ac_unique_file=canonicalform.cc 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679 done 680 681 # There might be people who depend on the old broken behavior: `$host' 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 684 build=$build_alias 685 host=$host_alias 686 target=$target_alias 687 688 # FIXME: To remove some day. 689 if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697 fi 698 699 ac_tool_prefix= 700 test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702 test "$silent" = yes && exec 6>/dev/null 703 488 704 489 705 # Find the source files, if location was not specified. … … 491 707 ac_srcdir_defaulted=yes 492 708 # Try the directory containing this script, then its parent. 493 ac_prog=$0 494 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 495 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 496 721 srcdir=$ac_confdir 497 722 if test ! -r $srcdir/$ac_unique_file; then … … 503 728 if test ! -r $srcdir/$ac_unique_file; then 504 729 if test "$ac_srcdir_defaulted" = yes; then 505 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 506 732 else 507 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 508 fi 509 fi 510 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 511 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736 fi 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CC_set=${CC+set} 754 ac_env_CC_value=$CC 755 ac_cv_env_CC_set=${CC+set} 756 ac_cv_env_CC_value=$CC 757 ac_env_CFLAGS_set=${CFLAGS+set} 758 ac_env_CFLAGS_value=$CFLAGS 759 ac_cv_env_CFLAGS_set=${CFLAGS+set} 760 ac_cv_env_CFLAGS_value=$CFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CXX_set=${CXX+set} 770 ac_env_CXX_value=$CXX 771 ac_cv_env_CXX_set=${CXX+set} 772 ac_cv_env_CXX_value=$CXX 773 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 774 ac_env_CXXFLAGS_value=$CXXFLAGS 775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 777 ac_env_CPP_set=${CPP+set} 778 ac_env_CPP_value=$CPP 779 ac_cv_env_CPP_set=${CPP+set} 780 ac_cv_env_CPP_value=$CPP 781 ac_env_CXXCPP_set=${CXXCPP+set} 782 ac_env_CXXCPP_value=$CXXCPP 783 ac_cv_env_CXXCPP_set=${CXXCPP+set} 784 ac_cv_env_CXXCPP_value=$CXXCPP 785 786 # 787 # Report the --help message. 788 # 789 if test "$ac_init_help" = "long"; then 790 # Omit some internal or obsolete options to make the list less imposing. 791 # This message is too long to be a string in the A/UX 3.1 sh. 792 cat <<_ACEOF 793 \`configure' configures this package to adapt to many kinds of systems. 794 795 Usage: $0 [OPTION]... [VAR=VALUE]... 796 797 To assign environment variables (e.g., CC, CFLAGS...), specify them as 798 VAR=VALUE. See below for descriptions of some of the useful variables. 799 800 Defaults for the options are specified in brackets. 801 802 Configuration: 803 -h, --help display this help and exit 804 --help=short display options specific to this package 805 --help=recursive display the short help of all the included packages 806 -V, --version display version information and exit 807 -q, --quiet, --silent do not print \`checking...' messages 808 --cache-file=FILE cache test results in FILE [disabled] 809 -C, --config-cache alias for \`--cache-file=config.cache' 810 -n, --no-create do not create output files 811 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 812 813 _ACEOF 814 815 cat <<_ACEOF 816 Installation directories: 817 --prefix=PREFIX install architecture-independent files in PREFIX 818 [$ac_default_prefix] 819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 820 [PREFIX] 821 822 By default, \`make install' will install all the files in 823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 824 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 825 for instance \`--prefix=\$HOME'. 826 827 For better control, use the options below. 828 829 Fine tuning of the installation directories: 830 --bindir=DIR user executables [EPREFIX/bin] 831 --sbindir=DIR system admin executables [EPREFIX/sbin] 832 --libexecdir=DIR program executables [EPREFIX/libexec] 833 --datadir=DIR read-only architecture-independent data [PREFIX/share] 834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 836 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 837 --libdir=DIR object code libraries [EPREFIX/lib] 838 --includedir=DIR C header files [PREFIX/include] 839 --oldincludedir=DIR C header files for non-gcc [/usr/include] 840 --infodir=DIR info documentation [PREFIX/info] 841 --mandir=DIR man documentation [PREFIX/man] 842 _ACEOF 843 844 cat <<\_ACEOF 845 _ACEOF 846 fi 847 848 if test -n "$ac_init_help"; then 849 850 cat <<\_ACEOF 851 852 Optional Features: 853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 855 --enable-NTL build for use with NTL. 856 --enable-cf-inline build Factory with \"configurable inline methods\" 857 enabled. 858 --disable-streamio build Factory without stream IO 859 --enable-memdebug=<level> switch on memory management debugging. Meaningful 860 with \`--with-memman=new' only. <level> may be either 861 \`no' (default), \`normal', or \`full'. 862 --enable-assertions build Factory with assertions activated 863 --enable-timing build Factory so it will print timing information 864 --enable-debugoutput build Factory so it will print debugging information 865 --enable-gmp together with \`--with-Singular' means: installation 866 in process, be graceful when there is no \`gmp.h' 867 868 Optional Packages: 869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 871 --with-memman(=<memman>) specify Factory memory manager. 872 <memman> is either \`old' (default), \`new', or \`no'. 873 --with-omalloc build for use with omalloc 874 --with-gmp(=<gmp_inc_path>(,<gmp_lib_path>)) 875 specify where to find gmp library. 876 --with-Singular build for use with computer algebra system Singular. 877 --with-NTL build for use with NTL. 878 879 Some influential environment variables: 880 CC C compiler command 881 CFLAGS C compiler flags 882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 883 nonstandard directory <lib dir> 884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 885 headers in a nonstandard directory <include dir> 886 CXX C++ compiler command 887 CXXFLAGS C++ compiler flags 888 CPP C preprocessor 889 CXXCPP C++ preprocessor 890 891 Use these variables to override the choices made by `configure' or to help 892 it to find libraries and programs with nonstandard names/locations. 893 894 _ACEOF 895 fi 896 897 if test "$ac_init_help" = "recursive"; then 898 # If there are subdirs, report their specific --help. 899 ac_popdir=`pwd` 900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 901 test -d $ac_dir || continue 902 ac_builddir=. 903 904 if test "$ac_dir" != .; then 905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 906 # A "../" for each directory in $ac_dir_suffix. 907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 908 else 909 ac_dir_suffix= ac_top_builddir= 910 fi 911 912 case $srcdir in 913 .) # No --srcdir option. We are building in place. 914 ac_srcdir=. 915 if test -z "$ac_top_builddir"; then 916 ac_top_srcdir=. 917 else 918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 919 fi ;; 920 [\\/]* | ?:[\\/]* ) # Absolute path. 921 ac_srcdir=$srcdir$ac_dir_suffix; 922 ac_top_srcdir=$srcdir ;; 923 *) # Relative path. 924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 925 ac_top_srcdir=$ac_top_builddir$srcdir ;; 926 esac 927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 928 # absolute. 929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 930 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 933 934 cd $ac_dir 935 # Check for guested configure; otherwise get Cygnus style configure. 936 if test -f $ac_srcdir/configure.gnu; then 937 echo 938 $SHELL $ac_srcdir/configure.gnu --help=recursive 939 elif test -f $ac_srcdir/configure; then 940 echo 941 $SHELL $ac_srcdir/configure --help=recursive 942 elif test -f $ac_srcdir/configure.ac || 943 test -f $ac_srcdir/configure.in; then 944 echo 945 $ac_configure --help 946 else 947 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 948 fi 949 cd $ac_popdir 950 done 951 fi 952 953 test -n "$ac_init_help" && exit 0 954 if $ac_init_version; then 955 cat <<\_ACEOF 956 957 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 958 Free Software Foundation, Inc. 959 This configure script is free software; the Free Software Foundation 960 gives unlimited permission to copy, distribute and modify it. 961 _ACEOF 962 exit 0 963 fi 964 exec 5>config.log 965 cat >&5 <<_ACEOF 966 This file contains any messages produced by compilers while 967 running configure, to aid debugging if configure makes a mistake. 968 969 It was created by $as_me, which was 970 generated by GNU Autoconf 2.57. Invocation command line was 971 972 $ $0 $@ 973 974 _ACEOF 975 { 976 cat <<_ASUNAME 977 ## --------- ## 978 ## Platform. ## 979 ## --------- ## 980 981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 982 uname -m = `(uname -m) 2>/dev/null || echo unknown` 983 uname -r = `(uname -r) 2>/dev/null || echo unknown` 984 uname -s = `(uname -s) 2>/dev/null || echo unknown` 985 uname -v = `(uname -v) 2>/dev/null || echo unknown` 986 987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 989 990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 997 998 _ASUNAME 999 1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1001 for as_dir in $PATH 1002 do 1003 IFS=$as_save_IFS 1004 test -z "$as_dir" && as_dir=. 1005 echo "PATH: $as_dir" 1006 done 1007 1008 } >&5 1009 1010 cat >&5 <<_ACEOF 1011 1012 1013 ## ----------- ## 1014 ## Core tests. ## 1015 ## ----------- ## 1016 1017 _ACEOF 1018 1019 1020 # Keep a trace of the command line. 1021 # Strip out --no-create and --no-recursion so they do not pile up. 1022 # Strip out --silent because we don't want to record it for future runs. 1023 # Also quote any args containing shell meta-characters. 1024 # Make two passes to allow for proper duplicate-argument suppression. 1025 ac_configure_args= 1026 ac_configure_args0= 1027 ac_configure_args1= 1028 ac_sep= 1029 ac_must_keep_next=false 1030 for ac_pass in 1 2 1031 do 1032 for ac_arg 1033 do 1034 case $ac_arg in 1035 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1037 | -silent | --silent | --silen | --sile | --sil) 1038 continue ;; 1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1040 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1041 esac 1042 case $ac_pass in 1043 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1044 2) 1045 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1046 if test $ac_must_keep_next = true; then 1047 ac_must_keep_next=false # Got value, back to normal. 1048 else 1049 case $ac_arg in 1050 *=* | --config-cache | -C | -disable-* | --disable-* \ 1051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1053 | -with-* | --with-* | -without-* | --without-* | --x) 1054 case "$ac_configure_args0 " in 1055 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1056 esac 1057 ;; 1058 -* ) ac_must_keep_next=true ;; 1059 esac 1060 fi 1061 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1062 # Get rid of the leading space. 1063 ac_sep=" " 1064 ;; 1065 esac 1066 done 1067 done 1068 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1069 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1070 1071 # When interrupted or exit'd, cleanup temporary files, and complete 1072 # config.log. We remove comments because anyway the quotes in there 1073 # would cause problems or look ugly. 1074 # WARNING: Be sure not to use single quotes in there, as some shells, 1075 # such as our DU 5.0 friend, will then `close' the trap. 1076 trap 'exit_status=$? 1077 # Save into config.log some information that might help in debugging. 1078 { 1079 echo 1080 1081 cat <<\_ASBOX 1082 ## ---------------- ## 1083 ## Cache variables. ## 1084 ## ---------------- ## 1085 _ASBOX 1086 echo 1087 # The following way of writing the cache mishandles newlines in values, 1088 { 1089 (set) 2>&1 | 1090 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1091 *ac_space=\ *) 1092 sed -n \ 1093 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1095 ;; 1096 *) 1097 sed -n \ 1098 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1099 ;; 1100 esac; 1101 } 1102 echo 1103 1104 cat <<\_ASBOX 1105 ## ----------------- ## 1106 ## Output variables. ## 1107 ## ----------------- ## 1108 _ASBOX 1109 echo 1110 for ac_var in $ac_subst_vars 1111 do 1112 eval ac_val=$`echo $ac_var` 1113 echo "$ac_var='"'"'$ac_val'"'"'" 1114 done | sort 1115 echo 1116 1117 if test -n "$ac_subst_files"; then 1118 cat <<\_ASBOX 1119 ## ------------- ## 1120 ## Output files. ## 1121 ## ------------- ## 1122 _ASBOX 1123 echo 1124 for ac_var in $ac_subst_files 1125 do 1126 eval ac_val=$`echo $ac_var` 1127 echo "$ac_var='"'"'$ac_val'"'"'" 1128 done | sort 1129 echo 1130 fi 1131 1132 if test -s confdefs.h; then 1133 cat <<\_ASBOX 1134 ## ----------- ## 1135 ## confdefs.h. ## 1136 ## ----------- ## 1137 _ASBOX 1138 echo 1139 sed "/^$/d" confdefs.h | sort 1140 echo 1141 fi 1142 test "$ac_signal" != 0 && 1143 echo "$as_me: caught signal $ac_signal" 1144 echo "$as_me: exit $exit_status" 1145 } >&5 1146 rm -f core core.* *.core && 1147 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1148 exit $exit_status 1149 ' 0 1150 for ac_signal in 1 2 13 15; do 1151 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1152 done 1153 ac_signal=0 1154 1155 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1156 rm -rf conftest* confdefs.h 1157 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1158 echo >confdefs.h 1159 1160 # Predefined preprocessor variables. 1161 1162 cat >>confdefs.h <<_ACEOF 1163 #define PACKAGE_NAME "$PACKAGE_NAME" 1164 _ACEOF 1165 1166 1167 cat >>confdefs.h <<_ACEOF 1168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1169 _ACEOF 1170 1171 1172 cat >>confdefs.h <<_ACEOF 1173 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1174 _ACEOF 1175 1176 1177 cat >>confdefs.h <<_ACEOF 1178 #define PACKAGE_STRING "$PACKAGE_STRING" 1179 _ACEOF 1180 1181 1182 cat >>confdefs.h <<_ACEOF 1183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1184 _ACEOF 1185 1186 1187 # Let the site file select an alternate cache file if it wants to. 512 1188 # Prefer explicitly selected file to automatically selected ones. 513 1189 if test -z "$CONFIG_SITE"; then … … 520 1196 for ac_site_file in $CONFIG_SITE; do 521 1197 if test -r "$ac_site_file"; then 522 echo "loading site script $ac_site_file" 1198 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1199 echo "$as_me: loading site script $ac_site_file" >&6;} 1200 sed 's/^/| /' "$ac_site_file" >&5 523 1201 . "$ac_site_file" 524 1202 fi … … 526 1204 527 1205 if test -r "$cache_file"; then 528 echo "loading cache $cache_file" 529 . $cache_file 530 else 531 echo "creating cache $cache_file" 532 > $cache_file 1206 # Some versions of bash will fail to source /dev/null (special 1207 # files actually), so we avoid doing that. 1208 if test -f "$cache_file"; then 1209 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1210 echo "$as_me: loading cache $cache_file" >&6;} 1211 case $cache_file in 1212 [\\/]* | ?:[\\/]* ) . $cache_file;; 1213 *) . ./$cache_file;; 1214 esac 1215 fi 1216 else 1217 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1218 echo "$as_me: creating cache $cache_file" >&6;} 1219 >$cache_file 1220 fi 1221 1222 # Check that the precious variables saved in the cache have kept the same 1223 # value. 1224 ac_cache_corrupted=false 1225 for ac_var in `(set) 2>&1 | 1226 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1227 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1228 eval ac_new_set=\$ac_env_${ac_var}_set 1229 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1230 eval ac_new_val="\$ac_env_${ac_var}_value" 1231 case $ac_old_set,$ac_new_set in 1232 set,) 1233 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1234 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1235 ac_cache_corrupted=: ;; 1236 ,set) 1237 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1238 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1239 ac_cache_corrupted=: ;; 1240 ,);; 1241 *) 1242 if test "x$ac_old_val" != "x$ac_new_val"; then 1243 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1244 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1245 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1246 echo "$as_me: former value: $ac_old_val" >&2;} 1247 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1248 echo "$as_me: current value: $ac_new_val" >&2;} 1249 ac_cache_corrupted=: 1250 fi;; 1251 esac 1252 # Pass precious variables to config.status. 1253 if test "$ac_new_set" = set; then 1254 case $ac_new_val in 1255 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1256 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1257 *) ac_arg=$ac_var=$ac_new_val ;; 1258 esac 1259 case " $ac_configure_args " in 1260 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1261 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1262 esac 1263 fi 1264 done 1265 if $ac_cache_corrupted; then 1266 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1267 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1268 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1269 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1270 { (exit 1); exit 1; }; } 533 1271 fi 534 1272 535 1273 ac_ext=c 536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.537 1274 ac_cpp='$CPP $CPPFLAGS' 538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 540 cross_compiling=$ac_cv_prog_cc_cross 541 542 ac_exeext= 543 ac_objext=o 544 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 545 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 546 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 547 ac_n= ac_c=' 548 ' ac_t=' ' 549 else 550 ac_n=-n ac_c= ac_t= 551 fi 552 else 553 ac_n= ac_c='\c' ac_t= 554 fi 555 556 1275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1277 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 ac_config_headers="$ac_config_headers config.h" 557 1298 558 1299 ac_aux_dir= … … 566 1307 ac_install_sh="$ac_aux_dir/install.sh -c" 567 1308 break 1309 elif test -f $ac_dir/shtool; then 1310 ac_aux_dir=$ac_dir 1311 ac_install_sh="$ac_aux_dir/shtool install -c" 1312 break 568 1313 fi 569 1314 done 570 1315 if test -z "$ac_aux_dir"; then 571 { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; } 572 fi 573 ac_config_guess=$ac_aux_dir/config.guess 574 ac_config_sub=$ac_aux_dir/config.sub 575 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1316 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in bin $srcdir/bin" >&5 1317 echo "$as_me: error: cannot find install-sh or install.sh in bin $srcdir/bin" >&2;} 1318 { (exit 1); exit 1; }; } 1319 fi 1320 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1321 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1322 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 576 1323 577 1324 … … 585 1332 # - check withs and enables. 586 1333 # 1334 587 1335 # Check whether --with-memman or --without-memman was given. 588 1336 if test "${with_memman+set}" = set; then 589 1337 withval="$with_memman" 590 : 1338 591 1339 else 592 1340 if test "x$with_Singular" = xyes; then … … 594 1342 else 595 1343 with_memman=old 596 fi 597 fi 598 1344 fi 1345 fi; 599 1346 600 1347 # font-lock-trick: ' 1348 601 1349 602 1350 # Check whether --with-omalloc or --without-omalloc was given. 603 1351 if test "${with_omalloc+set}" = set; then 604 1352 withval="$with_omalloc" 605 : 606 fi 1353 1354 fi; 607 1355 608 1356 # Check whether --with-gmp or --without-gmp was given. 609 1357 if test "${with_gmp+set}" = set; then 610 1358 withval="$with_gmp" 611 : 612 fi 1359 1360 fi; 613 1361 614 1362 … … 616 1364 if test "${with_Singular+set}" = set; then 617 1365 withval="$with_Singular" 618 : 1366 619 1367 else 620 1368 with_Singular=no 621 fi 1369 fi; 622 1370 623 1371 … … 626 1374 withval="$with_NTL" 627 1375 with_NTL=yes 628 fi 629 1376 fi; 630 1377 631 1378 # Check whether --enable-NTL or --disable-NTL was given. … … 633 1380 enableval="$enable_NTL" 634 1381 with_NTL=yes 635 fi 636 1382 fi; 637 1383 638 1384 # Check whether --enable-cf-inline or --disable-cf-inline was given. 639 1385 if test "${enable_cf_inline+set}" = set; then 640 1386 enableval="$enable_cf_inline" 641 : 1387 642 1388 else 643 1389 enable_cf_inline=no 644 fi 645 1390 fi; 646 1391 647 1392 # Check whether --enable-streamio or --disable-streamio was given. 648 1393 if test "${enable_streamio+set}" = set; then 649 1394 enableval="$enable_streamio" 650 : 1395 651 1396 else 652 1397 if test "x$with_Singular" = xyes; then … … 654 1399 else 655 1400 enable_streamio=yes 656 fi 657 fi 658 1401 fi 1402 fi; 659 1403 660 1404 # Check whether --enable-memdebug or --disable-memdebug was given. 661 1405 if test "${enable_memdebug+set}" = set; then 662 1406 enableval="$enable_memdebug" 663 : 1407 664 1408 else 665 1409 enable_memdebug=no 666 fi 667 1410 fi; 668 1411 669 1412 # Check whether --enable-assertions or --disable-assertions was given. 670 1413 if test "${enable_assertions+set}" = set; then 671 1414 enableval="$enable_assertions" 672 : 1415 673 1416 else 674 1417 enable_assertions=no 675 fi 676 1418 fi; 677 1419 678 1420 # Check whether --enable-timing or --disable-timing was given. 679 1421 if test "${enable_timing+set}" = set; then 680 1422 enableval="$enable_timing" 681 : 1423 682 1424 else 683 1425 enable_timing=no 684 fi 685 1426 fi; 686 1427 687 1428 # Check whether --enable-debugoutput or --disable-debugoutput was given. 688 1429 if test "${enable_debugoutput+set}" = set; then 689 1430 enableval="$enable_debugoutput" 690 : 1431 691 1432 else 692 1433 enable_debugoutput=no 693 fi 694 1434 fi; 695 1435 696 1436 # a tribute to Singular … … 700 1440 if test "x$with_Singular" = xyes && test "x$enable_gmp" != xno; then 701 1441 with_gmp='$(includedir)' 702 fi 703 fi 704 1442 fi 1443 fi; 705 1444 706 1445 # … … 720 1459 gmp_in_installation=no ;; 721 1460 *) 722 CPPFLAGS="-I$with_gmp $CPPFLAGS" 1461 CPPFLAGS="-I$with_gmp $CPPFLAGS" 723 1462 LDFLAGS="-L$with_gmp/../lib $LDFLAGS" 724 1463 gmp_in_installation=no ;; … … 729 1468 # 730 1469 test "${CFLAGS+set}" = set || cflags_expl_set=no 731 # Extract the first word of "gcc", so it can be a program name with args. 732 set dummy gcc; ac_word=$2 733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 734 echo "configure:735: checking for $ac_word" >&5 735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 736 echo $ac_n "(cached) $ac_c" 1>&6 1470 ac_ext=c 1471 ac_cpp='$CPP $CPPFLAGS' 1472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1474 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1475 if test -n "$ac_tool_prefix"; then 1476 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1477 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1478 echo "$as_me:$LINENO: checking for $ac_word" >&5 1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1480 if test "${ac_cv_prog_CC+set}" = set; then 1481 echo $ECHO_N "(cached) $ECHO_C" >&6 737 1482 else 738 1483 if test -n "$CC"; then 739 1484 ac_cv_prog_CC="$CC" # Let the user override the test. 740 1485 else 741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 742 ac_dummy="$PATH" 743 for ac_dir in $ac_dummy; do 744 test -z "$ac_dir" && ac_dir=. 745 if test -f $ac_dir/$ac_word; then 746 ac_cv_prog_CC="gcc" 747 break 748 fi 749 done 750 IFS="$ac_save_ifs" 751 fi 752 fi 753 CC="$ac_cv_prog_CC" 1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1487 for as_dir in $PATH 1488 do 1489 IFS=$as_save_IFS 1490 test -z "$as_dir" && as_dir=. 1491 for ac_exec_ext in '' $ac_executable_extensions; do 1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1493 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1495 break 2 1496 fi 1497 done 1498 done 1499 1500 fi 1501 fi 1502 CC=$ac_cv_prog_CC 754 1503 if test -n "$CC"; then 755 echo "$ac_t""$CC" 1>&6 756 else 757 echo "$ac_t""no" 1>&6 758 fi 759 1504 echo "$as_me:$LINENO: result: $CC" >&5 1505 echo "${ECHO_T}$CC" >&6 1506 else 1507 echo "$as_me:$LINENO: result: no" >&5 1508 echo "${ECHO_T}no" >&6 1509 fi 1510 1511 fi 1512 if test -z "$ac_cv_prog_CC"; then 1513 ac_ct_CC=$CC 1514 # Extract the first word of "gcc", so it can be a program name with args. 1515 set dummy gcc; ac_word=$2 1516 echo "$as_me:$LINENO: checking for $ac_word" >&5 1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1519 echo $ECHO_N "(cached) $ECHO_C" >&6 1520 else 1521 if test -n "$ac_ct_CC"; then 1522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1523 else 1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1525 for as_dir in $PATH 1526 do 1527 IFS=$as_save_IFS 1528 test -z "$as_dir" && as_dir=. 1529 for ac_exec_ext in '' $ac_executable_extensions; do 1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1531 ac_cv_prog_ac_ct_CC="gcc" 1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1533 break 2 1534 fi 1535 done 1536 done 1537 1538 fi 1539 fi 1540 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1541 if test -n "$ac_ct_CC"; then 1542 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1543 echo "${ECHO_T}$ac_ct_CC" >&6 1544 else 1545 echo "$as_me:$LINENO: result: no" >&5 1546 echo "${ECHO_T}no" >&6 1547 fi 1548 1549 CC=$ac_ct_CC 1550 else 1551 CC="$ac_cv_prog_CC" 1552 fi 1553 1554 if test -z "$CC"; then 1555 if test -n "$ac_tool_prefix"; then 1556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1557 set dummy ${ac_tool_prefix}cc; ac_word=$2 1558 echo "$as_me:$LINENO: checking for $ac_word" >&5 1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1560 if test "${ac_cv_prog_CC+set}" = set; then 1561 echo $ECHO_N "(cached) $ECHO_C" >&6 1562 else 1563 if test -n "$CC"; then 1564 ac_cv_prog_CC="$CC" # Let the user override the test. 1565 else 1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1567 for as_dir in $PATH 1568 do 1569 IFS=$as_save_IFS 1570 test -z "$as_dir" && as_dir=. 1571 for ac_exec_ext in '' $ac_executable_extensions; do 1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1573 ac_cv_prog_CC="${ac_tool_prefix}cc" 1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1575 break 2 1576 fi 1577 done 1578 done 1579 1580 fi 1581 fi 1582 CC=$ac_cv_prog_CC 1583 if test -n "$CC"; then 1584 echo "$as_me:$LINENO: result: $CC" >&5 1585 echo "${ECHO_T}$CC" >&6 1586 else 1587 echo "$as_me:$LINENO: result: no" >&5 1588 echo "${ECHO_T}no" >&6 1589 fi 1590 1591 fi 1592 if test -z "$ac_cv_prog_CC"; then 1593 ac_ct_CC=$CC 1594 # Extract the first word of "cc", so it can be a program name with args. 1595 set dummy cc; ac_word=$2 1596 echo "$as_me:$LINENO: checking for $ac_word" >&5 1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1599 echo $ECHO_N "(cached) $ECHO_C" >&6 1600 else 1601 if test -n "$ac_ct_CC"; then 1602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1603 else 1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1605 for as_dir in $PATH 1606 do 1607 IFS=$as_save_IFS 1608 test -z "$as_dir" && as_dir=. 1609 for ac_exec_ext in '' $ac_executable_extensions; do 1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1611 ac_cv_prog_ac_ct_CC="cc" 1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1613 break 2 1614 fi 1615 done 1616 done 1617 1618 fi 1619 fi 1620 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1621 if test -n "$ac_ct_CC"; then 1622 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1623 echo "${ECHO_T}$ac_ct_CC" >&6 1624 else 1625 echo "$as_me:$LINENO: result: no" >&5 1626 echo "${ECHO_T}no" >&6 1627 fi 1628 1629 CC=$ac_ct_CC 1630 else 1631 CC="$ac_cv_prog_CC" 1632 fi 1633 1634 fi 760 1635 if test -z "$CC"; then 761 1636 # Extract the first word of "cc", so it can be a program name with args. 762 1637 set dummy cc; ac_word=$2 763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6764 echo "configure:765: checking for $ac_word" >&5765 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then766 echo $ ac_n "(cached) $ac_c" 1>&61638 echo "$as_me:$LINENO: checking for $ac_word" >&5 1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1640 if test "${ac_cv_prog_CC+set}" = set; then 1641 echo $ECHO_N "(cached) $ECHO_C" >&6 767 1642 else 768 1643 if test -n "$CC"; then 769 1644 ac_cv_prog_CC="$CC" # Let the user override the test. 770 1645 else 771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"772 1646 ac_prog_rejected=no 773 ac_dummy="$PATH" 774 for ac_dir in $ac_dummy; do 775 test -z "$ac_dir" && ac_dir=. 776 if test -f $ac_dir/$ac_word; then 777 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 778 ac_prog_rejected=yes 779 continue 780 fi 781 ac_cv_prog_CC="cc" 782 break 783 fi 784 done 785 IFS="$ac_save_ifs" 1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1648 for as_dir in $PATH 1649 do 1650 IFS=$as_save_IFS 1651 test -z "$as_dir" && as_dir=. 1652 for ac_exec_ext in '' $ac_executable_extensions; do 1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1655 ac_prog_rejected=yes 1656 continue 1657 fi 1658 ac_cv_prog_CC="cc" 1659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1660 break 2 1661 fi 1662 done 1663 done 1664 786 1665 if test $ac_prog_rejected = yes; then 787 1666 # We found a bogon in the path, so make sure we never use it. 788 1667 set dummy $ac_cv_prog_CC 789 1668 shift 790 if test $# -gt0; then1669 if test $# != 0; then 791 1670 # We chose a different compiler from the bogus one. 792 1671 # However, it has the same basename, so the bogon will be chosen 793 1672 # first if we set CC to just the basename; use the full file name. 794 1673 shift 795 set dummy "$ac_dir/$ac_word" "$@" 796 shift 797 ac_cv_prog_CC="$@" 798 fi 799 fi 800 fi 801 fi 802 CC="$ac_cv_prog_CC" 1674 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1675 fi 1676 fi 1677 fi 1678 fi 1679 CC=$ac_cv_prog_CC 803 1680 if test -n "$CC"; then 804 echo "$ac_t""$CC" 1>&6 805 else 806 echo "$ac_t""no" 1>&6 807 fi 808 809 if test -z "$CC"; then 810 case "`uname -s`" in 811 *win32* | *WIN32*) 812 # Extract the first word of "cl", so it can be a program name with args. 813 set dummy cl; ac_word=$2 814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 815 echo "configure:816: checking for $ac_word" >&5 816 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 817 echo $ac_n "(cached) $ac_c" 1>&6 1681 echo "$as_me:$LINENO: result: $CC" >&5 1682 echo "${ECHO_T}$CC" >&6 1683 else 1684 echo "$as_me:$LINENO: result: no" >&5 1685 echo "${ECHO_T}no" >&6 1686 fi 1687 1688 fi 1689 if test -z "$CC"; then 1690 if test -n "$ac_tool_prefix"; then 1691 for ac_prog in cl 1692 do 1693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1695 echo "$as_me:$LINENO: checking for $ac_word" >&5 1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1697 if test "${ac_cv_prog_CC+set}" = set; then 1698 echo $ECHO_N "(cached) $ECHO_C" >&6 818 1699 else 819 1700 if test -n "$CC"; then 820 1701 ac_cv_prog_CC="$CC" # Let the user override the test. 821 1702 else 822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 823 ac_dummy="$PATH" 824 for ac_dir in $ac_dummy; do 825 test -z "$ac_dir" && ac_dir=. 826 if test -f $ac_dir/$ac_word; then 827 ac_cv_prog_CC="cl" 828 break 1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1704 for as_dir in $PATH 1705 do 1706 IFS=$as_save_IFS 1707 test -z "$as_dir" && as_dir=. 1708 for ac_exec_ext in '' $ac_executable_extensions; do 1709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1712 break 2 1713 fi 1714 done 1715 done 1716 1717 fi 1718 fi 1719 CC=$ac_cv_prog_CC 1720 if test -n "$CC"; then 1721 echo "$as_me:$LINENO: result: $CC" >&5 1722 echo "${ECHO_T}$CC" >&6 1723 else 1724 echo "$as_me:$LINENO: result: no" >&5 1725 echo "${ECHO_T}no" >&6 1726 fi 1727 1728 test -n "$CC" && break 1729 done 1730 fi 1731 if test -z "$CC"; then 1732 ac_ct_CC=$CC 1733 for ac_prog in cl 1734 do 1735 # Extract the first word of "$ac_prog", so it can be a program name with args. 1736 set dummy $ac_prog; ac_word=$2 1737 echo "$as_me:$LINENO: checking for $ac_word" >&5 1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1740 echo $ECHO_N "(cached) $ECHO_C" >&6 1741 else 1742 if test -n "$ac_ct_CC"; then 1743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1744 else 1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1746 for as_dir in $PATH 1747 do 1748 IFS=$as_save_IFS 1749 test -z "$as_dir" && as_dir=. 1750 for ac_exec_ext in '' $ac_executable_extensions; do 1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1752 ac_cv_prog_ac_ct_CC="$ac_prog" 1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1754 break 2 1755 fi 1756 done 1757 done 1758 1759 fi 1760 fi 1761 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1762 if test -n "$ac_ct_CC"; then 1763 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1764 echo "${ECHO_T}$ac_ct_CC" >&6 1765 else 1766 echo "$as_me:$LINENO: result: no" >&5 1767 echo "${ECHO_T}no" >&6 1768 fi 1769 1770 test -n "$ac_ct_CC" && break 1771 done 1772 1773 CC=$ac_ct_CC 1774 fi 1775 1776 fi 1777 1778 1779 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1780 See \`config.log' for more details." >&5 1781 echo "$as_me: error: no acceptable C compiler found in \$PATH 1782 See \`config.log' for more details." >&2;} 1783 { (exit 1); exit 1; }; } 1784 1785 # Provide some information about the compiler. 1786 echo "$as_me:$LINENO:" \ 1787 "checking for C compiler version" >&5 1788 ac_compiler=`set X $ac_compile; echo $2` 1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1790 (eval $ac_compiler --version </dev/null >&5) 2>&5 1791 ac_status=$? 1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1793 (exit $ac_status); } 1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1795 (eval $ac_compiler -v </dev/null >&5) 2>&5 1796 ac_status=$? 1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1798 (exit $ac_status); } 1799 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1800 (eval $ac_compiler -V </dev/null >&5) 2>&5 1801 ac_status=$? 1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1803 (exit $ac_status); } 1804 1805 cat >conftest.$ac_ext <<_ACEOF 1806 #line $LINENO "configure" 1807 /* confdefs.h. */ 1808 _ACEOF 1809 cat confdefs.h >>conftest.$ac_ext 1810 cat >>conftest.$ac_ext <<_ACEOF 1811 /* end confdefs.h. */ 1812 1813 int 1814 main () 1815 { 1816 1817 ; 1818 return 0; 1819 } 1820 _ACEOF 1821 ac_clean_files_save=$ac_clean_files 1822 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1823 # Try to create an executable without -o first, disregard a.out. 1824 # It will help us diagnose broken compilers, and finding out an intuition 1825 # of exeext. 1826 echo "$as_me:$LINENO: checking for C compiler default output" >&5 1827 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1828 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1829 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1830 (eval $ac_link_default) 2>&5 1831 ac_status=$? 1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1833 (exit $ac_status); }; then 1834 # Find the output, starting from the most likely. This scheme is 1835 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1836 # resort. 1837 1838 # Be careful to initialize this variable, since it used to be cached. 1839 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1840 ac_cv_exeext= 1841 # b.out is created by i960 compilers. 1842 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1843 do 1844 test -f "$ac_file" || continue 1845 case $ac_file in 1846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1847 ;; 1848 conftest.$ac_ext ) 1849 # This is the source file. 1850 ;; 1851 [ab].out ) 1852 # We found the default executable, but exeext='' is most 1853 # certainly right. 1854 break;; 1855 *.* ) 1856 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1857 # FIXME: I believe we export ac_cv_exeext for Libtool, 1858 # but it would be cool to find out if it's true. Does anybody 1859 # maintain Libtool? --akim. 1860 export ac_cv_exeext 1861 break;; 1862 * ) 1863 break;; 1864 esac 1865 done 1866 else 1867 echo "$as_me: failed program was:" >&5 1868 sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1871 See \`config.log' for more details." >&5 1872 echo "$as_me: error: C compiler cannot create executables 1873 See \`config.log' for more details." >&2;} 1874 { (exit 77); exit 77; }; } 1875 fi 1876 1877 ac_exeext=$ac_cv_exeext 1878 echo "$as_me:$LINENO: result: $ac_file" >&5 1879 echo "${ECHO_T}$ac_file" >&6 1880 1881 # Check the compiler produces executables we can run. If not, either 1882 # the compiler is broken, or we cross compile. 1883 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1884 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1885 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1886 # If not cross compiling, check that we can run a simple program. 1887 if test "$cross_compiling" != yes; then 1888 if { ac_try='./$ac_file' 1889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1890 (eval $ac_try) 2>&5 1891 ac_status=$? 1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1893 (exit $ac_status); }; }; then 1894 cross_compiling=no 1895 else 1896 if test "$cross_compiling" = maybe; then 1897 cross_compiling=yes 1898 else 1899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1900 If you meant to cross compile, use \`--host'. 1901 See \`config.log' for more details." >&5 1902 echo "$as_me: error: cannot run C compiled programs. 1903 If you meant to cross compile, use \`--host'. 1904 See \`config.log' for more details." >&2;} 1905 { (exit 1); exit 1; }; } 829 1906 fi 830 done 831 IFS="$ac_save_ifs" 832 fi 833 fi 834 CC="$ac_cv_prog_CC" 835 if test -n "$CC"; then 836 echo "$ac_t""$CC" 1>&6 837 else 838 echo "$ac_t""no" 1>&6 839 fi 840 ;; 841 esac 842 fi 843 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 844 fi 845 846 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 847 echo "configure:848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 848 849 ac_ext=c 850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 851 ac_cpp='$CPP $CPPFLAGS' 852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 854 cross_compiling=$ac_cv_prog_cc_cross 855 856 cat > conftest.$ac_ext << EOF 857 858 #line 859 "configure" 859 #include "confdefs.h" 860 861 main(){return(0);} 862 EOF 863 if { (eval echo configure:864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 864 ac_cv_prog_cc_works=yes 865 # If we can't run a trivial program, we are probably using a cross compiler. 866 if (./conftest; exit) 2>/dev/null; then 867 ac_cv_prog_cc_cross=no 868 else 869 ac_cv_prog_cc_cross=yes 870 fi 871 else 872 echo "configure: failed program was:" >&5 873 cat conftest.$ac_ext >&5 874 ac_cv_prog_cc_works=no 875 fi 876 rm -fr conftest* 877 ac_ext=c 878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 879 ac_cpp='$CPP $CPPFLAGS' 880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 882 cross_compiling=$ac_cv_prog_cc_cross 883 884 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 885 if test $ac_cv_prog_cc_works = no; then 886 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 887 fi 888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 889 echo "configure:890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 890 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 891 cross_compiling=$ac_cv_prog_cc_cross 892 893 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 894 echo "configure:895: checking whether we are using GNU C" >&5 895 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 896 echo $ac_n "(cached) $ac_c" 1>&6 897 else 898 cat > conftest.c <<EOF 899 #ifdef __GNUC__ 900 yes; 1907 fi 1908 fi 1909 echo "$as_me:$LINENO: result: yes" >&5 1910 echo "${ECHO_T}yes" >&6 1911 1912 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1913 ac_clean_files=$ac_clean_files_save 1914 # Check the compiler produces executables we can run. If not, either 1915 # the compiler is broken, or we cross compile. 1916 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1917 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1918 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1919 echo "${ECHO_T}$cross_compiling" >&6 1920 1921 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1922 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1924 (eval $ac_link) 2>&5 1925 ac_status=$? 1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1927 (exit $ac_status); }; then 1928 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1930 # work properly (i.e., refer to `conftest.exe'), while it won't with 1931 # `rm'. 1932 for ac_file in conftest.exe conftest conftest.*; do 1933 test -f "$ac_file" || continue 1934 case $ac_file in 1935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1937 export ac_cv_exeext 1938 break;; 1939 * ) break;; 1940 esac 1941 done 1942 else 1943 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1944 See \`config.log' for more details." >&5 1945 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1946 See \`config.log' for more details." >&2;} 1947 { (exit 1); exit 1; }; } 1948 fi 1949 1950 rm -f conftest$ac_cv_exeext 1951 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1952 echo "${ECHO_T}$ac_cv_exeext" >&6 1953 1954 rm -f conftest.$ac_ext 1955 EXEEXT=$ac_cv_exeext 1956 ac_exeext=$EXEEXT 1957 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1958 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1959 if test "${ac_cv_objext+set}" = set; then 1960 echo $ECHO_N "(cached) $ECHO_C" >&6 1961 else 1962 cat >conftest.$ac_ext <<_ACEOF 1963 #line $LINENO "configure" 1964 /* confdefs.h. */ 1965 _ACEOF 1966 cat confdefs.h >>conftest.$ac_ext 1967 cat >>conftest.$ac_ext <<_ACEOF 1968 /* end confdefs.h. */ 1969 1970 int 1971 main () 1972 { 1973 1974 ; 1975 return 0; 1976 } 1977 _ACEOF 1978 rm -f conftest.o conftest.obj 1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1980 (eval $ac_compile) 2>&5 1981 ac_status=$? 1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1983 (exit $ac_status); }; then 1984 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1985 case $ac_file in 1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1988 break;; 1989 esac 1990 done 1991 else 1992 echo "$as_me: failed program was:" >&5 1993 sed 's/^/| /' conftest.$ac_ext >&5 1994 1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1996 See \`config.log' for more details." >&5 1997 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1998 See \`config.log' for more details." >&2;} 1999 { (exit 1); exit 1; }; } 2000 fi 2001 2002 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2003 fi 2004 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2005 echo "${ECHO_T}$ac_cv_objext" >&6 2006 OBJEXT=$ac_cv_objext 2007 ac_objext=$OBJEXT 2008 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2009 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2010 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2011 echo $ECHO_N "(cached) $ECHO_C" >&6 2012 else 2013 cat >conftest.$ac_ext <<_ACEOF 2014 #line $LINENO "configure" 2015 /* confdefs.h. */ 2016 _ACEOF 2017 cat confdefs.h >>conftest.$ac_ext 2018 cat >>conftest.$ac_ext <<_ACEOF 2019 /* end confdefs.h. */ 2020 2021 int 2022 main () 2023 { 2024 #ifndef __GNUC__ 2025 choke me 901 2026 #endif 902 EOF 903 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 904 ac_cv_prog_gcc=yes 905 else 906 ac_cv_prog_gcc=no 907 fi 908 fi 909 910 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 911 912 if test $ac_cv_prog_gcc = yes; then 913 GCC=yes 914 else 915 GCC= 916 fi 917 918 ac_test_CFLAGS="${CFLAGS+set}" 919 ac_save_CFLAGS="$CFLAGS" 920 CFLAGS= 921 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 922 echo "configure:923: checking whether ${CC-cc} accepts -g" >&5 923 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 924 echo $ac_n "(cached) $ac_c" 1>&6 925 else 926 echo 'void f(){}' > conftest.c 927 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2027 2028 ; 2029 return 0; 2030 } 2031 _ACEOF 2032 rm -f conftest.$ac_objext 2033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2034 (eval $ac_compile) 2>&5 2035 ac_status=$? 2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2037 (exit $ac_status); } && 2038 { ac_try='test -s conftest.$ac_objext' 2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2040 (eval $ac_try) 2>&5 2041 ac_status=$? 2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2043 (exit $ac_status); }; }; then 2044 ac_compiler_gnu=yes 2045 else 2046 echo "$as_me: failed program was:" >&5 2047 sed 's/^/| /' conftest.$ac_ext >&5 2048 2049 ac_compiler_gnu=no 2050 fi 2051 rm -f conftest.$ac_objext conftest.$ac_ext 2052 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2053 2054 fi 2055 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2056 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2057 GCC=`test $ac_compiler_gnu = yes && echo yes` 2058 ac_test_CFLAGS=${CFLAGS+set} 2059 ac_save_CFLAGS=$CFLAGS 2060 CFLAGS="-g" 2061 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2062 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2063 if test "${ac_cv_prog_cc_g+set}" = set; then 2064 echo $ECHO_N "(cached) $ECHO_C" >&6 2065 else 2066 cat >conftest.$ac_ext <<_ACEOF 2067 #line $LINENO "configure" 2068 /* confdefs.h. */ 2069 _ACEOF 2070 cat confdefs.h >>conftest.$ac_ext 2071 cat >>conftest.$ac_ext <<_ACEOF 2072 /* end confdefs.h. */ 2073 2074 int 2075 main () 2076 { 2077 2078 ; 2079 return 0; 2080 } 2081 _ACEOF 2082 rm -f conftest.$ac_objext 2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2084 (eval $ac_compile) 2>&5 2085 ac_status=$? 2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2087 (exit $ac_status); } && 2088 { ac_try='test -s conftest.$ac_objext' 2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2090 (eval $ac_try) 2>&5 2091 ac_status=$? 2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2093 (exit $ac_status); }; }; then 928 2094 ac_cv_prog_cc_g=yes 929 2095 else 930 ac_cv_prog_cc_g=no 931 fi 932 rm -f conftest* 933 934 fi 935 936 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2096 echo "$as_me: failed program was:" >&5 2097 sed 's/^/| /' conftest.$ac_ext >&5 2098 2099 ac_cv_prog_cc_g=no 2100 fi 2101 rm -f conftest.$ac_objext conftest.$ac_ext 2102 fi 2103 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2104 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 937 2105 if test "$ac_test_CFLAGS" = set; then 938 CFLAGS= "$ac_save_CFLAGS"2106 CFLAGS=$ac_save_CFLAGS 939 2107 elif test $ac_cv_prog_cc_g = yes; then 940 2108 if test "$GCC" = yes; then … … 950 2118 fi 951 2119 fi 2120 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2121 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2122 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2123 echo $ECHO_N "(cached) $ECHO_C" >&6 2124 else 2125 ac_cv_prog_cc_stdc=no 2126 ac_save_CC=$CC 2127 cat >conftest.$ac_ext <<_ACEOF 2128 #line $LINENO "configure" 2129 /* confdefs.h. */ 2130 _ACEOF 2131 cat confdefs.h >>conftest.$ac_ext 2132 cat >>conftest.$ac_ext <<_ACEOF 2133 /* end confdefs.h. */ 2134 #include <stdarg.h> 2135 #include <stdio.h> 2136 #include <sys/types.h> 2137 #include <sys/stat.h> 2138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2139 struct buf { int x; }; 2140 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2141 static char *e (p, i) 2142 char **p; 2143 int i; 2144 { 2145 return p[i]; 2146 } 2147 static char *f (char * (*g) (char **, int), char **p, ...) 2148 { 2149 char *s; 2150 va_list v; 2151 va_start (v,p); 2152 s = g (p, va_arg (v,int)); 2153 va_end (v); 2154 return s; 2155 } 2156 int test (int i, double x); 2157 struct s1 {int (*f) (int a);}; 2158 struct s2 {int (*f) (double a);}; 2159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2160 int argc; 2161 char **argv; 2162 int 2163 main () 2164 { 2165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2166 ; 2167 return 0; 2168 } 2169 _ACEOF 2170 # Don't try gcc -ansi; that turns off useful extensions and 2171 # breaks some systems' header files. 2172 # AIX -qlanglvl=ansi 2173 # Ultrix and OSF/1 -std1 2174 # HP-UX 10.20 and later -Ae 2175 # HP-UX older versions -Aa -D_HPUX_SOURCE 2176 # SVR4 -Xc -D__EXTENSIONS__ 2177 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2178 do 2179 CC="$ac_save_CC $ac_arg" 2180 rm -f conftest.$ac_objext 2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2182 (eval $ac_compile) 2>&5 2183 ac_status=$? 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2185 (exit $ac_status); } && 2186 { ac_try='test -s conftest.$ac_objext' 2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2188 (eval $ac_try) 2>&5 2189 ac_status=$? 2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2191 (exit $ac_status); }; }; then 2192 ac_cv_prog_cc_stdc=$ac_arg 2193 break 2194 else 2195 echo "$as_me: failed program was:" >&5 2196 sed 's/^/| /' conftest.$ac_ext >&5 2197 2198 fi 2199 rm -f conftest.$ac_objext 2200 done 2201 rm -f conftest.$ac_ext conftest.$ac_objext 2202 CC=$ac_save_CC 2203 2204 fi 2205 2206 case "x$ac_cv_prog_cc_stdc" in 2207 x|xno) 2208 echo "$as_me:$LINENO: result: none needed" >&5 2209 echo "${ECHO_T}none needed" >&6 ;; 2210 *) 2211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2212 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2213 CC="$CC $ac_cv_prog_cc_stdc" ;; 2214 esac 2215 2216 # Some people use a C++ compiler to compile C. Since we use `exit', 2217 # in C++ we need to declare it. In case someone uses the same compiler 2218 # for both compiling C and C++ we need to have the C++ compiler decide 2219 # the declaration of exit, since it's the most demanding environment. 2220 cat >conftest.$ac_ext <<_ACEOF 2221 #ifndef __cplusplus 2222 choke me 2223 #endif 2224 _ACEOF 2225 rm -f conftest.$ac_objext 2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2227 (eval $ac_compile) 2>&5 2228 ac_status=$? 2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2230 (exit $ac_status); } && 2231 { ac_try='test -s conftest.$ac_objext' 2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2233 (eval $ac_try) 2>&5 2234 ac_status=$? 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2236 (exit $ac_status); }; }; then 2237 for ac_declaration in \ 2238 ''\ 2239 '#include <stdlib.h>' \ 2240 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2241 'extern "C" void std::exit (int); using std::exit;' \ 2242 'extern "C" void exit (int) throw ();' \ 2243 'extern "C" void exit (int);' \ 2244 'void exit (int);' 2245 do 2246 cat >conftest.$ac_ext <<_ACEOF 2247 #line $LINENO "configure" 2248 /* confdefs.h. */ 2249 _ACEOF 2250 cat confdefs.h >>conftest.$ac_ext 2251 cat >>conftest.$ac_ext <<_ACEOF 2252 /* end confdefs.h. */ 2253 #include <stdlib.h> 2254 $ac_declaration 2255 int 2256 main () 2257 { 2258 exit (42); 2259 ; 2260 return 0; 2261 } 2262 _ACEOF 2263 rm -f conftest.$ac_objext 2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2265 (eval $ac_compile) 2>&5 2266 ac_status=$? 2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2268 (exit $ac_status); } && 2269 { ac_try='test -s conftest.$ac_objext' 2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2271 (eval $ac_try) 2>&5 2272 ac_status=$? 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); }; }; then 2275 : 2276 else 2277 echo "$as_me: failed program was:" >&5 2278 sed 's/^/| /' conftest.$ac_ext >&5 2279 2280 continue 2281 fi 2282 rm -f conftest.$ac_objext conftest.$ac_ext 2283 cat >conftest.$ac_ext <<_ACEOF 2284 #line $LINENO "configure" 2285 /* confdefs.h. */ 2286 _ACEOF 2287 cat confdefs.h >>conftest.$ac_ext 2288 cat >>conftest.$ac_ext <<_ACEOF 2289 /* end confdefs.h. */ 2290 $ac_declaration 2291 int 2292 main () 2293 { 2294 exit (42); 2295 ; 2296 return 0; 2297 } 2298 _ACEOF 2299 rm -f conftest.$ac_objext 2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2301 (eval $ac_compile) 2>&5 2302 ac_status=$? 2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2304 (exit $ac_status); } && 2305 { ac_try='test -s conftest.$ac_objext' 2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2307 (eval $ac_try) 2>&5 2308 ac_status=$? 2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2310 (exit $ac_status); }; }; then 2311 break 2312 else 2313 echo "$as_me: failed program was:" >&5 2314 sed 's/^/| /' conftest.$ac_ext >&5 2315 2316 fi 2317 rm -f conftest.$ac_objext conftest.$ac_ext 2318 done 2319 rm -f conftest* 2320 if test -n "$ac_declaration"; then 2321 echo '#ifdef __cplusplus' >>confdefs.h 2322 echo $ac_declaration >>confdefs.h 2323 echo '#endif' >>confdefs.h 2324 fi 2325 2326 else 2327 echo "$as_me: failed program was:" >&5 2328 sed 's/^/| /' conftest.$ac_ext >&5 2329 2330 fi 2331 rm -f conftest.$ac_objext conftest.$ac_ext 2332 ac_ext=c 2333 ac_cpp='$CPP $CPPFLAGS' 2334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2336 ac_compiler_gnu=$ac_cv_c_compiler_gnu 952 2337 953 2338 test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no 954 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 955 do 956 # Extract the first word of "$ac_prog", so it can be a program name with args. 957 set dummy $ac_prog; ac_word=$2 958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 959 echo "configure:960: checking for $ac_word" >&5 960 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 961 echo $ac_n "(cached) $ac_c" 1>&6 2339 ac_ext=cc 2340 ac_cpp='$CXXCPP $CPPFLAGS' 2341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2344 if test -n "$ac_tool_prefix"; then 2345 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2346 do 2347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2349 echo "$as_me:$LINENO: checking for $ac_word" >&5 2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2351 if test "${ac_cv_prog_CXX+set}" = set; then 2352 echo $ECHO_N "(cached) $ECHO_C" >&6 962 2353 else 963 2354 if test -n "$CXX"; then 964 2355 ac_cv_prog_CXX="$CXX" # Let the user override the test. 965 2356 else 966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 967 ac_dummy="$PATH" 968 for ac_dir in $ac_dummy; do 969 test -z "$ac_dir" && ac_dir=. 970 if test -f $ac_dir/$ac_word; then 971 ac_cv_prog_CXX="$ac_prog" 972 break 973 fi 2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358 for as_dir in $PATH 2359 do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2364 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2366 break 2 2367 fi 2368 done 2369 done 2370 2371 fi 2372 fi 2373 CXX=$ac_cv_prog_CXX 2374 if test -n "$CXX"; then 2375 echo "$as_me:$LINENO: result: $CXX" >&5 2376 echo "${ECHO_T}$CXX" >&6 2377 else 2378 echo "$as_me:$LINENO: result: no" >&5 2379 echo "${ECHO_T}no" >&6 2380 fi 2381 2382 test -n "$CXX" && break 974 2383 done 975 IFS="$ac_save_ifs" 976 fi 977 fi 978 CXX="$ac_cv_prog_CXX" 979 if test -n "$CXX"; then 980 echo "$ac_t""$CXX" 1>&6 981 else 982 echo "$ac_t""no" 1>&6 983 fi 984 985 test -n "$CXX" && break 986 done 987 test -n "$CXX" || CXX="gcc" 988 989 990 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 991 echo "configure:992: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 992 993 ac_ext=C 994 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 995 ac_cpp='$CXXCPP $CPPFLAGS' 996 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 997 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 998 cross_compiling=$ac_cv_prog_cxx_cross 999 1000 cat > conftest.$ac_ext << EOF 1001 1002 #line 1003 "configure" 1003 #include "confdefs.h" 1004 1005 int main(){return(0);} 1006 EOF 1007 if { (eval echo configure:1008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1008 ac_cv_prog_cxx_works=yes 1009 # If we can't run a trivial program, we are probably using a cross compiler. 1010 if (./conftest; exit) 2>/dev/null; then 1011 ac_cv_prog_cxx_cross=no 1012 else 1013 ac_cv_prog_cxx_cross=yes 1014 fi 1015 else 1016 echo "configure: failed program was:" >&5 1017 cat conftest.$ac_ext >&5 1018 ac_cv_prog_cxx_works=no 1019 fi 1020 rm -fr conftest* 1021 ac_ext=c 1022 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1023 ac_cpp='$CPP $CPPFLAGS' 1024 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1025 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1026 cross_compiling=$ac_cv_prog_cc_cross 1027 1028 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1029 if test $ac_cv_prog_cxx_works = no; then 1030 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1031 fi 1032 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1033 echo "configure:1034: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1034 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1035 cross_compiling=$ac_cv_prog_cxx_cross 1036 1037 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1038 echo "configure:1039: checking whether we are using GNU C++" >&5 1039 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1040 echo $ac_n "(cached) $ac_c" 1>&6 1041 else 1042 cat > conftest.C <<EOF 1043 #ifdef __GNUC__ 1044 yes; 2384 fi 2385 if test -z "$CXX"; then 2386 ac_ct_CXX=$CXX 2387 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2388 do 2389 # Extract the first word of "$ac_prog", so it can be a program name with args. 2390 set dummy $ac_prog; ac_word=$2 2391 echo "$as_me:$LINENO: checking for $ac_word" >&5 2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395 else 2396 if test -n "$ac_ct_CXX"; then 2397 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2398 else 2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400 for as_dir in $PATH 2401 do 2402 IFS=$as_save_IFS 2403 test -z "$as_dir" && as_dir=. 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2406 ac_cv_prog_ac_ct_CXX="$ac_prog" 2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2408 break 2 2409 fi 2410 done 2411 done 2412 2413 fi 2414 fi 2415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2416 if test -n "$ac_ct_CXX"; then 2417 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2418 echo "${ECHO_T}$ac_ct_CXX" >&6 2419 else 2420 echo "$as_me:$LINENO: result: no" >&5 2421 echo "${ECHO_T}no" >&6 2422 fi 2423 2424 test -n "$ac_ct_CXX" && break 2425 done 2426 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2427 2428 CXX=$ac_ct_CXX 2429 fi 2430 2431 2432 # Provide some information about the compiler. 2433 echo "$as_me:$LINENO:" \ 2434 "checking for C++ compiler version" >&5 2435 ac_compiler=`set X $ac_compile; echo $2` 2436 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2437 (eval $ac_compiler --version </dev/null >&5) 2>&5 2438 ac_status=$? 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); } 2441 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2442 (eval $ac_compiler -v </dev/null >&5) 2>&5 2443 ac_status=$? 2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2445 (exit $ac_status); } 2446 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2447 (eval $ac_compiler -V </dev/null >&5) 2>&5 2448 ac_status=$? 2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2450 (exit $ac_status); } 2451 2452 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2453 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2454 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2455 echo $ECHO_N "(cached) $ECHO_C" >&6 2456 else 2457 cat >conftest.$ac_ext <<_ACEOF 2458 #line $LINENO "configure" 2459 /* confdefs.h. */ 2460 _ACEOF 2461 cat confdefs.h >>conftest.$ac_ext 2462 cat >>conftest.$ac_ext <<_ACEOF 2463 /* end confdefs.h. */ 2464 2465 int 2466 main () 2467 { 2468 #ifndef __GNUC__ 2469 choke me 1045 2470 #endif 1046 EOF 1047 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1048 ac_cv_prog_gxx=yes 1049 else 1050 ac_cv_prog_gxx=no 1051 fi 1052 fi 1053 1054 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1055 1056 if test $ac_cv_prog_gxx = yes; then 1057 GXX=yes 1058 else 1059 GXX= 1060 fi 1061 1062 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1063 ac_save_CXXFLAGS="$CXXFLAGS" 1064 CXXFLAGS= 1065 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1066 echo "configure:1067: checking whether ${CXX-g++} accepts -g" >&5 1067 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1068 echo $ac_n "(cached) $ac_c" 1>&6 1069 else 1070 echo 'void f(){}' > conftest.cc 1071 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2471 2472 ; 2473 return 0; 2474 } 2475 _ACEOF 2476 rm -f conftest.$ac_objext 2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2478 (eval $ac_compile) 2>&5 2479 ac_status=$? 2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2481 (exit $ac_status); } && 2482 { ac_try='test -s conftest.$ac_objext' 2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2484 (eval $ac_try) 2>&5 2485 ac_status=$? 2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2487 (exit $ac_status); }; }; then 2488 ac_compiler_gnu=yes 2489 else 2490 echo "$as_me: failed program was:" >&5 2491 sed 's/^/| /' conftest.$ac_ext >&5 2492 2493 ac_compiler_gnu=no 2494 fi 2495 rm -f conftest.$ac_objext conftest.$ac_ext 2496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2497 2498 fi 2499 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2500 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2501 GXX=`test $ac_compiler_gnu = yes && echo yes` 2502 ac_test_CXXFLAGS=${CXXFLAGS+set} 2503 ac_save_CXXFLAGS=$CXXFLAGS 2504 CXXFLAGS="-g" 2505 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2506 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2507 if test "${ac_cv_prog_cxx_g+set}" = set; then 2508 echo $ECHO_N "(cached) $ECHO_C" >&6 2509 else 2510 cat >conftest.$ac_ext <<_ACEOF 2511 #line $LINENO "configure" 2512 /* confdefs.h. */ 2513 _ACEOF 2514 cat confdefs.h >>conftest.$ac_ext 2515 cat >>conftest.$ac_ext <<_ACEOF 2516 /* end confdefs.h. */ 2517 2518 int 2519 main () 2520 { 2521 2522 ; 2523 return 0; 2524 } 2525 _ACEOF 2526 rm -f conftest.$ac_objext 2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2528 (eval $ac_compile) 2>&5 2529 ac_status=$? 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); } && 2532 { ac_try='test -s conftest.$ac_objext' 2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2534 (eval $ac_try) 2>&5 2535 ac_status=$? 2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2537 (exit $ac_status); }; }; then 1072 2538 ac_cv_prog_cxx_g=yes 1073 2539 else 1074 ac_cv_prog_cxx_g=no 1075 fi 1076 rm -f conftest* 1077 1078 fi 1079 1080 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2540 echo "$as_me: failed program was:" >&5 2541 sed 's/^/| /' conftest.$ac_ext >&5 2542 2543 ac_cv_prog_cxx_g=no 2544 fi 2545 rm -f conftest.$ac_objext conftest.$ac_ext 2546 fi 2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2548 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1081 2549 if test "$ac_test_CXXFLAGS" = set; then 1082 CXXFLAGS= "$ac_save_CXXFLAGS"2550 CXXFLAGS=$ac_save_CXXFLAGS 1083 2551 elif test $ac_cv_prog_cxx_g = yes; then 1084 2552 if test "$GXX" = yes; then … … 1094 2562 fi 1095 2563 fi 2564 for ac_declaration in \ 2565 ''\ 2566 '#include <stdlib.h>' \ 2567 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2568 'extern "C" void std::exit (int); using std::exit;' \ 2569 'extern "C" void exit (int) throw ();' \ 2570 'extern "C" void exit (int);' \ 2571 'void exit (int);' 2572 do 2573 cat >conftest.$ac_ext <<_ACEOF 2574 #line $LINENO "configure" 2575 /* confdefs.h. */ 2576 _ACEOF 2577 cat confdefs.h >>conftest.$ac_ext 2578 cat >>conftest.$ac_ext <<_ACEOF 2579 /* end confdefs.h. */ 2580 #include <stdlib.h> 2581 $ac_declaration 2582 int 2583 main () 2584 { 2585 exit (42); 2586 ; 2587 return 0; 2588 } 2589 _ACEOF 2590 rm -f conftest.$ac_objext 2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2592 (eval $ac_compile) 2>&5 2593 ac_status=$? 2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2595 (exit $ac_status); } && 2596 { ac_try='test -s conftest.$ac_objext' 2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2598 (eval $ac_try) 2>&5 2599 ac_status=$? 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); }; }; then 2602 : 2603 else 2604 echo "$as_me: failed program was:" >&5 2605 sed 's/^/| /' conftest.$ac_ext >&5 2606 2607 continue 2608 fi 2609 rm -f conftest.$ac_objext conftest.$ac_ext 2610 cat >conftest.$ac_ext <<_ACEOF 2611 #line $LINENO "configure" 2612 /* confdefs.h. */ 2613 _ACEOF 2614 cat confdefs.h >>conftest.$ac_ext 2615 cat >>conftest.$ac_ext <<_ACEOF 2616 /* end confdefs.h. */ 2617 $ac_declaration 2618 int 2619 main () 2620 { 2621 exit (42); 2622 ; 2623 return 0; 2624 } 2625 _ACEOF 2626 rm -f conftest.$ac_objext 2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2628 (eval $ac_compile) 2>&5 2629 ac_status=$? 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); } && 2632 { ac_try='test -s conftest.$ac_objext' 2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2634 (eval $ac_try) 2>&5 2635 ac_status=$? 2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2637 (exit $ac_status); }; }; then 2638 break 2639 else 2640 echo "$as_me: failed program was:" >&5 2641 sed 's/^/| /' conftest.$ac_ext >&5 2642 2643 fi 2644 rm -f conftest.$ac_objext conftest.$ac_ext 2645 done 2646 rm -f conftest* 2647 if test -n "$ac_declaration"; then 2648 echo '#ifdef __cplusplus' >>confdefs.h 2649 echo $ac_declaration >>confdefs.h 2650 echo '#endif' >>confdefs.h 2651 fi 2652 2653 ac_ext=c 2654 ac_cpp='$CPP $CPPFLAGS' 2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1096 2658 1097 2659 if test "x$GCC" != xyes && test "x$GXX" != xyes; then 1098 echo "configure: warning: you better use gcc to compile Factory" 1>&2 2660 { echo "$as_me:$LINENO: WARNING: you better use gcc to compile Factory" >&5 2661 echo "$as_me: WARNING: you better use gcc to compile Factory" >&2;} 1099 2662 else 1100 2663 if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then 1101 echo "configure: warning: we use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS' 1102 (instead of the configure default \`-g -O')" 1>&2 2664 { echo "$as_me:$LINENO: WARNING: we use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS' 2665 (instead of the configure default \`-g -O')" >&5 2666 echo "$as_me: WARNING: we use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS' 2667 (instead of the configure default \`-g -O')" >&2;} 1103 2668 fi 1104 2669 if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then 1105 echo "configure: warning: we use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS' 1106 (instead of the configure default \`-g -O')" 1>&2 2670 { echo "$as_me:$LINENO: WARNING: we use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS' 2671 (instead of the configure default \`-g -O')" >&5 2672 echo "$as_me: WARNING: we use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS' 2673 (instead of the configure default \`-g -O')" >&2;} 1107 2674 fi 1108 2675 fi … … 1111 2678 # - check for some other programs. 1112 2679 # 1113 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1114 echo "configure:1115: checking how to run the C preprocessor" >&5 2680 ac_ext=c 2681 ac_cpp='$CPP $CPPFLAGS' 2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2685 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2686 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1115 2687 # On Suns, sometimes $CPP names a directory. 1116 2688 if test -n "$CPP" && test -d "$CPP"; then … … 1118 2690 fi 1119 2691 if test -z "$CPP"; then 1120 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1121 echo $ac_n "(cached) $ac_c" 1>&6 1122 else 1123 # This must be in double quotes, not single quotes, because CPP may get 1124 # substituted into the Makefile and "${CC-cc}" will confuse make. 1125 CPP="${CC-cc} -E" 2692 if test "${ac_cv_prog_CPP+set}" = set; then 2693 echo $ECHO_N "(cached) $ECHO_C" >&6 2694 else 2695 # Double quotes because CPP needs to be expanded 2696 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2697 do 2698 ac_preproc_ok=false 2699 for ac_c_preproc_warn_flag in '' yes 2700 do 2701 # Use a header file that comes with gcc, so configuring glibc 2702 # with a fresh cross-compiler works. 2703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2704 # <limits.h> exists even on freestanding compilers. 1126 2705 # On the NeXT, cc -E runs the code through the compiler's parser, 1127 # not just through cpp. 1128 cat > conftest.$ac_ext <<EOF 1129 #line 1130 "configure" 1130 #include "confdefs.h" 1131 #include <assert.h> 1132 Syntax Error 1133 EOF 1134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1135 { (eval echo configure:1136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1137 if test -z "$ac_err"; then 2706 # not just through cpp. "Syntax error" is here to catch this case. 2707 cat >conftest.$ac_ext <<_ACEOF 2708 #line $LINENO "configure" 2709 /* confdefs.h. */ 2710 _ACEOF 2711 cat confdefs.h >>conftest.$ac_ext 2712 cat >>conftest.$ac_ext <<_ACEOF 2713 /* end confdefs.h. */ 2714 #ifdef __STDC__ 2715 # include <limits.h> 2716 #else 2717 # include <assert.h> 2718 #endif 2719 Syntax error 2720 _ACEOF 2721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2723 ac_status=$? 2724 grep -v '^ *+' conftest.er1 >conftest.err 2725 rm -f conftest.er1 2726 cat conftest.err >&5 2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2728 (exit $ac_status); } >/dev/null; then 2729 if test -s conftest.err; then 2730 ac_cpp_err=$ac_c_preproc_warn_flag 2731 else 2732 ac_cpp_err= 2733 fi 2734 else 2735 ac_cpp_err=yes 2736 fi 2737 if test -z "$ac_cpp_err"; then 1138 2738 : 1139 2739 else 1140 echo "$ac_err" >&5 1141 echo "configure: failed program was:" >&5 1142 cat conftest.$ac_ext >&5 1143 rm -rf conftest* 1144 CPP="${CC-cc} -E -traditional-cpp" 1145 cat > conftest.$ac_ext <<EOF 1146 #line 1147 "configure" 1147 #include "confdefs.h" 1148 #include <assert.h> 1149 Syntax Error 1150 EOF 1151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1152 { (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1154 if test -z "$ac_err"; then 2740 echo "$as_me: failed program was:" >&5 2741 sed 's/^/| /' conftest.$ac_ext >&5 2742 2743 # Broken: fails on valid input. 2744 continue 2745 fi 2746 rm -f conftest.err conftest.$ac_ext 2747 2748 # OK, works on sane cases. Now check whether non-existent headers 2749 # can be detected and how. 2750 cat >conftest.$ac_ext <<_ACEOF 2751 #line $LINENO "configure" 2752 /* confdefs.h. */ 2753 _ACEOF 2754 cat confdefs.h >>conftest.$ac_ext 2755 cat >>conftest.$ac_ext <<_ACEOF 2756 /* end confdefs.h. */ 2757 #include <ac_nonexistent.h> 2758 _ACEOF 2759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2761 ac_status=$? 2762 grep -v '^ *+' conftest.er1 >conftest.err 2763 rm -f conftest.er1 2764 cat conftest.err >&5 2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2766 (exit $ac_status); } >/dev/null; then 2767 if test -s conftest.err; then 2768 ac_cpp_err=$ac_c_preproc_warn_flag 2769 else 2770 ac_cpp_err= 2771 fi 2772 else 2773 ac_cpp_err=yes 2774 fi 2775 if test -z "$ac_cpp_err"; then 2776 # Broken: success on invalid input. 2777 continue 2778 else 2779 echo "$as_me: failed program was:" >&5 2780 sed 's/^/| /' conftest.$ac_ext >&5 2781 2782 # Passes both tests. 2783 ac_preproc_ok=: 2784 break 2785 fi 2786 rm -f conftest.err conftest.$ac_ext 2787 2788 done 2789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2790 rm -f conftest.err conftest.$ac_ext 2791 if $ac_preproc_ok; then 2792 break 2793 fi 2794 2795 done 2796 ac_cv_prog_CPP=$CPP 2797 2798 fi 2799 CPP=$ac_cv_prog_CPP 2800 else 2801 ac_cv_prog_CPP=$CPP 2802 fi 2803 echo "$as_me:$LINENO: result: $CPP" >&5 2804 echo "${ECHO_T}$CPP" >&6 2805 ac_preproc_ok=false 2806 for ac_c_preproc_warn_flag in '' yes 2807 do 2808 # Use a header file that comes with gcc, so configuring glibc 2809 # with a fresh cross-compiler works. 2810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2811 # <limits.h> exists even on freestanding compilers. 2812 # On the NeXT, cc -E runs the code through the compiler's parser, 2813 # not just through cpp. "Syntax error" is here to catch this case. 2814 cat >conftest.$ac_ext <<_ACEOF 2815 #line $LINENO "configure" 2816 /* confdefs.h. */ 2817 _ACEOF 2818 cat confdefs.h >>conftest.$ac_ext 2819 cat >>conftest.$ac_ext <<_ACEOF 2820 /* end confdefs.h. */ 2821 #ifdef __STDC__ 2822 # include <limits.h> 2823 #else 2824 # include <assert.h> 2825 #endif 2826 Syntax error 2827 _ACEOF 2828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2830 ac_status=$? 2831 grep -v '^ *+' conftest.er1 >conftest.err 2832 rm -f conftest.er1 2833 cat conftest.err >&5 2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2835 (exit $ac_status); } >/dev/null; then 2836 if test -s conftest.err; then 2837 ac_cpp_err=$ac_c_preproc_warn_flag 2838 else 2839 ac_cpp_err= 2840 fi 2841 else 2842 ac_cpp_err=yes 2843 fi 2844 if test -z "$ac_cpp_err"; then 1155 2845 : 1156 2846 else 1157 echo "$ac_err" >&5 1158 echo "configure: failed program was:" >&5 1159 cat conftest.$ac_ext >&5 1160 rm -rf conftest* 1161 CPP="${CC-cc} -nologo -E" 1162 cat > conftest.$ac_ext <<EOF 1163 #line 1164 "configure" 1164 #include "confdefs.h" 1165 #include <assert.h> 1166 Syntax Error 1167 EOF 1168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1169 { (eval echo configure:1170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1171 if test -z "$ac_err"; then 2847 echo "$as_me: failed program was:" >&5 2848 sed 's/^/| /' conftest.$ac_ext >&5 2849 2850 # Broken: fails on valid input. 2851 continue 2852 fi 2853 rm -f conftest.err conftest.$ac_ext 2854 2855 # OK, works on sane cases. Now check whether non-existent headers 2856 # can be detected and how. 2857 cat >conftest.$ac_ext <<_ACEOF 2858 #line $LINENO "configure" 2859 /* confdefs.h. */ 2860 _ACEOF 2861 cat confdefs.h >>conftest.$ac_ext 2862 cat >>conftest.$ac_ext <<_ACEOF 2863 /* end confdefs.h. */ 2864 #include <ac_nonexistent.h> 2865 _ACEOF 2866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2868 ac_status=$? 2869 grep -v '^ *+' conftest.er1 >conftest.err 2870 rm -f conftest.er1 2871 cat conftest.err >&5 2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2873 (exit $ac_status); } >/dev/null; then 2874 if test -s conftest.err; then 2875 ac_cpp_err=$ac_c_preproc_warn_flag 2876 else 2877 ac_cpp_err= 2878 fi 2879 else 2880 ac_cpp_err=yes 2881 fi 2882 if test -z "$ac_cpp_err"; then 2883 # Broken: success on invalid input. 2884 continue 2885 else 2886 echo "$as_me: failed program was:" >&5 2887 sed 's/^/| /' conftest.$ac_ext >&5 2888 2889 # Passes both tests. 2890 ac_preproc_ok=: 2891 break 2892 fi 2893 rm -f conftest.err conftest.$ac_ext 2894 2895 done 2896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2897 rm -f conftest.err conftest.$ac_ext 2898 if $ac_preproc_ok; then 1172 2899 : 1173 2900 else 1174 echo "$ac_err" >&5 1175 echo "configure: failed program was:" >&5 1176 cat conftest.$ac_ext >&5 1177 rm -rf conftest* 1178 CPP=/lib/cpp 1179 fi 1180 rm -f conftest* 1181 fi 1182 rm -f conftest* 1183 fi 1184 rm -f conftest* 1185 ac_cv_prog_CPP="$CPP" 1186 fi 1187 CPP="$ac_cv_prog_CPP" 1188 else 1189 ac_cv_prog_CPP="$CPP" 1190 fi 1191 echo "$ac_t""$CPP" 1>&6 1192 1193 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 1194 echo "configure:1195: checking how to run the C++ preprocessor" >&5 2901 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2902 See \`config.log' for more details." >&5 2903 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2904 See \`config.log' for more details." >&2;} 2905 { (exit 1); exit 1; }; } 2906 fi 2907 2908 ac_ext=c 2909 ac_cpp='$CPP $CPPFLAGS' 2910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2912 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2913 2914 ac_ext=cc 2915 ac_cpp='$CXXCPP $CPPFLAGS' 2916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2919 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 2920 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 1195 2921 if test -z "$CXXCPP"; then 1196 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then 1197 echo $ac_n "(cached) $ac_c" 1>&6 1198 else 1199 ac_ext=C 1200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1201 ac_cpp='$CXXCPP $CPPFLAGS' 1202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1204 cross_compiling=$ac_cv_prog_cxx_cross 1205 CXXCPP="${CXX-g++} -E" 1206 cat > conftest.$ac_ext <<EOF 1207 #line 1208 "configure" 1208 #include "confdefs.h" 1209 #include <stdlib.h> 1210 EOF 1211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1212 { (eval echo configure:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1214 if test -z "$ac_err"; then 2922 if test "${ac_cv_prog_CXXCPP+set}" = set; then 2923 echo $ECHO_N "(cached) $ECHO_C" >&6 2924 else 2925 # Double quotes because CXXCPP needs to be expanded 2926 for CXXCPP in "$CXX -E" "/lib/cpp" 2927 do 2928 ac_preproc_ok=false 2929 for ac_cxx_preproc_warn_flag in '' yes 2930 do 2931 # Use a header file that comes with gcc, so configuring glibc 2932 # with a fresh cross-compiler works. 2933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2934 # <limits.h> exists even on freestanding compilers. 2935 # On the NeXT, cc -E runs the code through the compiler's parser, 2936 # not just through cpp. "Syntax error" is here to catch this case. 2937 cat >conftest.$ac_ext <<_ACEOF 2938 #line $LINENO "configure" 2939 /* confdefs.h. */ 2940 _ACEOF 2941 cat confdefs.h >>conftest.$ac_ext 2942 cat >>conftest.$ac_ext <<_ACEOF 2943 /* end confdefs.h. */ 2944 #ifdef __STDC__ 2945 # include <limits.h> 2946 #else 2947 # include <assert.h> 2948 #endif 2949 Syntax error 2950 _ACEOF 2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2953 ac_status=$? 2954 grep -v '^ *+' conftest.er1 >conftest.err 2955 rm -f conftest.er1 2956 cat conftest.err >&5 2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2958 (exit $ac_status); } >/dev/null; then 2959 if test -s conftest.err; then 2960 ac_cpp_err=$ac_cxx_preproc_warn_flag 2961 else 2962 ac_cpp_err= 2963 fi 2964 else 2965 ac_cpp_err=yes 2966 fi 2967 if test -z "$ac_cpp_err"; then 1215 2968 : 1216 2969 else 1217 echo "$ac_err" >&5 1218 echo "configure: failed program was:" >&5 1219 cat conftest.$ac_ext >&5 1220 rm -rf conftest* 1221 CXXCPP=/lib/cpp 1222 fi 1223 rm -f conftest* 1224 ac_cv_prog_CXXCPP="$CXXCPP" 2970 echo "$as_me: failed program was:" >&5 2971 sed 's/^/| /' conftest.$ac_ext >&5 2972 2973 # Broken: fails on valid input. 2974 continue 2975 fi 2976 rm -f conftest.err conftest.$ac_ext 2977 2978 # OK, works on sane cases. Now check whether non-existent headers 2979 # can be detected and how. 2980 cat >conftest.$ac_ext <<_ACEOF 2981 #line $LINENO "configure" 2982 /* confdefs.h. */ 2983 _ACEOF 2984 cat confdefs.h >>conftest.$ac_ext 2985 cat >>conftest.$ac_ext <<_ACEOF 2986 /* end confdefs.h. */ 2987 #include <ac_nonexistent.h> 2988 _ACEOF 2989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2991 ac_status=$? 2992 grep -v '^ *+' conftest.er1 >conftest.err 2993 rm -f conftest.er1 2994 cat conftest.err >&5 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2996 (exit $ac_status); } >/dev/null; then 2997 if test -s conftest.err; then 2998 ac_cpp_err=$ac_cxx_preproc_warn_flag 2999 else 3000 ac_cpp_err= 3001 fi 3002 else 3003 ac_cpp_err=yes 3004 fi 3005 if test -z "$ac_cpp_err"; then 3006 # Broken: success on invalid input. 3007 continue 3008 else 3009 echo "$as_me: failed program was:" >&5 3010 sed 's/^/| /' conftest.$ac_ext >&5 3011 3012 # Passes both tests. 3013 ac_preproc_ok=: 3014 break 3015 fi 3016 rm -f conftest.err conftest.$ac_ext 3017 3018 done 3019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3020 rm -f conftest.err conftest.$ac_ext 3021 if $ac_preproc_ok; then 3022 break 3023 fi 3024 3025 done 3026 ac_cv_prog_CXXCPP=$CXXCPP 3027 3028 fi 3029 CXXCPP=$ac_cv_prog_CXXCPP 3030 else 3031 ac_cv_prog_CXXCPP=$CXXCPP 3032 fi 3033 echo "$as_me:$LINENO: result: $CXXCPP" >&5 3034 echo "${ECHO_T}$CXXCPP" >&6 3035 ac_preproc_ok=false 3036 for ac_cxx_preproc_warn_flag in '' yes 3037 do 3038 # Use a header file that comes with gcc, so configuring glibc 3039 # with a fresh cross-compiler works. 3040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3041 # <limits.h> exists even on freestanding compilers. 3042 # On the NeXT, cc -E runs the code through the compiler's parser, 3043 # not just through cpp. "Syntax error" is here to catch this case. 3044 cat >conftest.$ac_ext <<_ACEOF 3045 #line $LINENO "configure" 3046 /* confdefs.h. */ 3047 _ACEOF 3048 cat confdefs.h >>conftest.$ac_ext 3049 cat >>conftest.$ac_ext <<_ACEOF 3050 /* end confdefs.h. */ 3051 #ifdef __STDC__ 3052 # include <limits.h> 3053 #else 3054 # include <assert.h> 3055 #endif 3056 Syntax error 3057 _ACEOF 3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3060 ac_status=$? 3061 grep -v '^ *+' conftest.er1 >conftest.err 3062 rm -f conftest.er1 3063 cat conftest.err >&5 3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065 (exit $ac_status); } >/dev/null; then 3066 if test -s conftest.err; then 3067 ac_cpp_err=$ac_cxx_preproc_warn_flag 3068 else 3069 ac_cpp_err= 3070 fi 3071 else 3072 ac_cpp_err=yes 3073 fi 3074 if test -z "$ac_cpp_err"; then 3075 : 3076 else 3077 echo "$as_me: failed program was:" >&5 3078 sed 's/^/| /' conftest.$ac_ext >&5 3079 3080 # Broken: fails on valid input. 3081 continue 3082 fi 3083 rm -f conftest.err conftest.$ac_ext 3084 3085 # OK, works on sane cases. Now check whether non-existent headers 3086 # can be detected and how. 3087 cat >conftest.$ac_ext <<_ACEOF 3088 #line $LINENO "configure" 3089 /* confdefs.h. */ 3090 _ACEOF 3091 cat confdefs.h >>conftest.$ac_ext 3092 cat >>conftest.$ac_ext <<_ACEOF 3093 /* end confdefs.h. */ 3094 #include <ac_nonexistent.h> 3095 _ACEOF 3096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3098 ac_status=$? 3099 grep -v '^ *+' conftest.er1 >conftest.err 3100 rm -f conftest.er1 3101 cat conftest.err >&5 3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3103 (exit $ac_status); } >/dev/null; then 3104 if test -s conftest.err; then 3105 ac_cpp_err=$ac_cxx_preproc_warn_flag 3106 else 3107 ac_cpp_err= 3108 fi 3109 else 3110 ac_cpp_err=yes 3111 fi 3112 if test -z "$ac_cpp_err"; then 3113 # Broken: success on invalid input. 3114 continue 3115 else 3116 echo "$as_me: failed program was:" >&5 3117 sed 's/^/| /' conftest.$ac_ext >&5 3118 3119 # Passes both tests. 3120 ac_preproc_ok=: 3121 break 3122 fi 3123 rm -f conftest.err conftest.$ac_ext 3124 3125 done 3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3127 rm -f conftest.err conftest.$ac_ext 3128 if $ac_preproc_ok; then 3129 : 3130 else 3131 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 3132 See \`config.log' for more details." >&5 3133 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 3134 See \`config.log' for more details." >&2;} 3135 { (exit 1); exit 1; }; } 3136 fi 3137 1225 3138 ac_ext=c 1226 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.1227 3139 ac_cpp='$CPP $CPPFLAGS' 1228 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1229 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1230 cross_compiling=$ac_cv_prog_cc_cross 1231 fi 1232 fi 1233 CXXCPP="$ac_cv_prog_CXXCPP" 1234 echo "$ac_t""$CXXCPP" 1>&6 1235 1236 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1237 echo "configure:1238: checking whether ln -s works" >&5 1238 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1239 echo $ac_n "(cached) $ac_c" 1>&6 1240 else 1241 rm -f conftestdata 1242 if ln -s X conftestdata 2>/dev/null 1243 then 1244 rm -f conftestdata 1245 ac_cv_prog_LN_S="ln -s" 1246 else 1247 ac_cv_prog_LN_S=ln 1248 fi 1249 fi 1250 LN_S="$ac_cv_prog_LN_S" 1251 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1252 echo "$ac_t""yes" 1>&6 1253 else 1254 echo "$ac_t""no" 1>&6 3140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3142 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3143 3144 echo "$as_me:$LINENO: checking whether ln -s works" >&5 3145 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3146 LN_S=$as_ln_s 3147 if test "$LN_S" = "ln -s"; then 3148 echo "$as_me:$LINENO: result: yes" >&5 3149 echo "${ECHO_T}yes" >&6 3150 else 3151 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3152 echo "${ECHO_T}no, using $LN_S" >&6 1255 3153 fi 1256 3154 … … 1262 3160 # IRIX /sbin/install 1263 3161 # AIX /bin/install 3162 # AmigaOS /C/install, which installs bootblocks on floppy discs 1264 3163 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1265 3164 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1266 3165 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1267 3166 # ./install, which can be erroneously created by make from ./install.sh. 1268 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&61269 echo "configure:1270: checking for a BSD compatible install" >&53167 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3168 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1270 3169 if test -z "$INSTALL"; then 1271 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1272 echo $ac_n "(cached) $ac_c" 1>&6 1273 else 1274 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1275 for ac_dir in $PATH; do 1276 # Account for people who put trailing slashes in PATH elements. 1277 case "$ac_dir/" in 1278 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1279 *) 1280 # OSF1 and SCO ODT 3.0 have their own names for install. 1281 # Don't use installbsd from OSF since it installs stuff as root 1282 # by default. 1283 for ac_prog in ginstall scoinst install; do 1284 if test -f $ac_dir/$ac_prog; then 1285 if test $ac_prog = install && 1286 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1287 # AIX install. It has an incompatible calling convention. 1288 : 1289 else 1290 ac_cv_path_install="$ac_dir/$ac_prog -c" 1291 break 2 1292 fi 1293 fi 3170 if test "${ac_cv_path_install+set}" = set; then 3171 echo $ECHO_N "(cached) $ECHO_C" >&6 3172 else 3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174 for as_dir in $PATH 3175 do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 # Account for people who put trailing slashes in PATH elements. 3179 case $as_dir/ in 3180 ./ | .// | /cC/* | \ 3181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3182 /usr/ucb/* ) ;; 3183 *) 3184 # OSF1 and SCO ODT 3.0 have their own names for install. 3185 # Don't use installbsd from OSF since it installs stuff as root 3186 # by default. 3187 for ac_prog in ginstall scoinst install; do 3188 for ac_exec_ext in '' $ac_executable_extensions; do 3189 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3190 if test $ac_prog = install && 3191 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3192 # AIX install. It has an incompatible calling convention. 3193 : 3194 elif test $ac_prog = install && 3195 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3196 # program-specific install script used by HP pwplus--don't use. 3197 : 3198 else 3199 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3200 break 3 3201 fi 3202 fi 1294 3203 done 1295 ;; 1296 esac 1297 done 1298 IFS="$ac_save_IFS" 3204 done 3205 ;; 3206 esac 3207 done 3208 1299 3209 1300 3210 fi 1301 3211 if test "${ac_cv_path_install+set}" = set; then 1302 INSTALL= "$ac_cv_path_install"3212 INSTALL=$ac_cv_path_install 1303 3213 else 1304 3214 # As a last resort, use the slow shell script. We don't cache a … … 1306 3216 # break other packages using the cache if that directory is 1307 3217 # removed, or if the path is relative. 1308 INSTALL="$ac_install_sh" 1309 fi 1310 fi 1311 echo "$ac_t""$INSTALL" 1>&6 3218 INSTALL=$ac_install_sh 3219 fi 3220 fi 3221 echo "$as_me:$LINENO: result: $INSTALL" >&5 3222 echo "${ECHO_T}$INSTALL" >&6 1312 3223 1313 3224 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 1315 3226 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1316 3227 1317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL _PROGRAM}'3228 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1318 3229 1319 3230 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1320 3231 1321 # Extract the first word of "ranlib", so it can be a program name with args. 1322 set dummy ranlib; ac_word=$2 1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1324 echo "configure:1325: checking for $ac_word" >&5 1325 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1326 echo $ac_n "(cached) $ac_c" 1>&6 3232 if test -n "$ac_tool_prefix"; then 3233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3235 echo "$as_me:$LINENO: checking for $ac_word" >&5 3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3237 if test "${ac_cv_prog_RANLIB+set}" = set; then 3238 echo $ECHO_N "(cached) $ECHO_C" >&6 1327 3239 else 1328 3240 if test -n "$RANLIB"; then 1329 3241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1330 3242 else 1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1332 ac_dummy="$PATH" 1333 for ac_dir in $ac_dummy; do 1334 test -z "$ac_dir" && ac_dir=. 1335 if test -f $ac_dir/$ac_word; then 1336 ac_cv_prog_RANLIB="ranlib" 1337 break 1338 fi 1339 done 1340 IFS="$ac_save_ifs" 1341 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1342 fi 1343 fi 1344 RANLIB="$ac_cv_prog_RANLIB" 3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3244 for as_dir in $PATH 3245 do 3246 IFS=$as_save_IFS 3247 test -z "$as_dir" && as_dir=. 3248 for ac_exec_ext in '' $ac_executable_extensions; do 3249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3252 break 2 3253 fi 3254 done 3255 done 3256 3257 fi 3258 fi 3259 RANLIB=$ac_cv_prog_RANLIB 1345 3260 if test -n "$RANLIB"; then 1346 echo "$ac_t""$RANLIB" 1>&6 1347 else 1348 echo "$ac_t""no" 1>&6 1349 fi 1350 1351 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1352 echo "configure:1353: checking whether ${MAKE-make} sets \${MAKE}" >&5 1353 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1354 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1355 echo $ac_n "(cached) $ac_c" 1>&6 1356 else 1357 cat > conftestmake <<\EOF 3261 echo "$as_me:$LINENO: result: $RANLIB" >&5 3262 echo "${ECHO_T}$RANLIB" >&6 3263 else 3264 echo "$as_me:$LINENO: result: no" >&5 3265 echo "${ECHO_T}no" >&6 3266 fi 3267 3268 fi 3269 if test -z "$ac_cv_prog_RANLIB"; then 3270 ac_ct_RANLIB=$RANLIB 3271 # Extract the first word of "ranlib", so it can be a program name with args. 3272 set dummy ranlib; ac_word=$2 3273 echo "$as_me:$LINENO: checking for $ac_word" >&5 3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3275 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3276 echo $ECHO_N "(cached) $ECHO_C" >&6 3277 else 3278 if test -n "$ac_ct_RANLIB"; then 3279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3280 else 3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3282 for as_dir in $PATH 3283 do 3284 IFS=$as_save_IFS 3285 test -z "$as_dir" && as_dir=. 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_ac_ct_RANLIB="ranlib" 3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292 done 3293 done 3294 3295 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3296 fi 3297 fi 3298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3299 if test -n "$ac_ct_RANLIB"; then 3300 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3301 echo "${ECHO_T}$ac_ct_RANLIB" >&6 3302 else 3303 echo "$as_me:$LINENO: result: no" >&5 3304 echo "${ECHO_T}no" >&6 3305 fi 3306 3307 RANLIB=$ac_ct_RANLIB 3308 else 3309 RANLIB="$ac_cv_prog_RANLIB" 3310 fi 3311 3312 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3313 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3314 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 3315 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3316 echo $ECHO_N "(cached) $ECHO_C" >&6 3317 else 3318 cat >conftest.make <<\_ACEOF 1358 3319 all: 1359 @echo 'ac_maketemp="$ {MAKE}"'1360 EOF3320 @echo 'ac_maketemp="$(MAKE)"' 3321 _ACEOF 1361 3322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1362 eval `${MAKE-make} -f conftest make 2>/dev/null | grep temp=`3323 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1363 3324 if test -n "$ac_maketemp"; then 1364 3325 eval ac_cv_prog_make_${ac_make}_set=yes … … 1366 3327 eval ac_cv_prog_make_${ac_make}_set=no 1367 3328 fi 1368 rm -f conftest make3329 rm -f conftest.make 1369 3330 fi 1370 3331 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1371 echo "$ac_t""yes" 1>&6 3332 echo "$as_me:$LINENO: result: yes" >&5 3333 echo "${ECHO_T}yes" >&6 1372 3334 SET_MAKE= 1373 3335 else 1374 echo "$ac_t""no" 1>&6 3336 echo "$as_me:$LINENO: result: no" >&5 3337 echo "${ECHO_T}no" >&6 1375 3338 SET_MAKE="MAKE=${MAKE-make}" 1376 3339 fi … … 1378 3341 # Extract the first word of "ar", so it can be a program name with args. 1379 3342 set dummy ar; ac_word=$2 1380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61381 echo "configure:1382: checking for $ac_word" >&51382 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then1383 echo $ ac_n "(cached) $ac_c" 1>&63343 echo "$as_me:$LINENO: checking for $ac_word" >&5 3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3345 if test "${ac_cv_prog_AR+set}" = set; then 3346 echo $ECHO_N "(cached) $ECHO_C" >&6 1384 3347 else 1385 3348 if test -n "$AR"; then 1386 3349 ac_cv_prog_AR="$AR" # Let the user override the test. 1387 3350 else 1388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1389 ac_dummy="$PATH" 1390 for ac_dir in $ac_dummy; do 1391 test -z "$ac_dir" && ac_dir=. 1392 if test -f $ac_dir/$ac_word; then 1393 ac_cv_prog_AR="ar" 1394 break 1395 fi 1396 done 1397 IFS="$ac_save_ifs" 3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3352 for as_dir in $PATH 3353 do 3354 IFS=$as_save_IFS 3355 test -z "$as_dir" && as_dir=. 3356 for ac_exec_ext in '' $ac_executable_extensions; do 3357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3358 ac_cv_prog_AR="ar" 3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3360 break 2 3361 fi 3362 done 3363 done 3364 1398 3365 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="where-is-your-ar" 1399 3366 fi 1400 3367 fi 1401 AR= "$ac_cv_prog_AR"3368 AR=$ac_cv_prog_AR 1402 3369 if test -n "$AR"; then 1403 echo "$ac_t""$AR" 1>&6 1404 else 1405 echo "$ac_t""no" 1>&6 3370 echo "$as_me:$LINENO: result: $AR" >&5 3371 echo "${ECHO_T}$AR" >&6 3372 else 3373 echo "$as_me:$LINENO: result: no" >&5 3374 echo "${ECHO_T}no" >&6 1406 3375 fi 1407 3376 1408 3377 # Extract the first word of "m4", so it can be a program name with args. 1409 3378 set dummy m4; ac_word=$2 1410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61411 echo "configure:1412: checking for $ac_word" >&51412 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then1413 echo $ ac_n "(cached) $ac_c" 1>&63379 echo "$as_me:$LINENO: checking for $ac_word" >&5 3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3381 if test "${ac_cv_prog_M4+set}" = set; then 3382 echo $ECHO_N "(cached) $ECHO_C" >&6 1414 3383 else 1415 3384 if test -n "$M4"; then 1416 3385 ac_cv_prog_M4="$M4" # Let the user override the test. 1417 3386 else 1418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1419 ac_dummy="$PATH" 1420 for ac_dir in $ac_dummy; do 1421 test -z "$ac_dir" && ac_dir=. 1422 if test -f $ac_dir/$ac_word; then 1423 ac_cv_prog_M4="m4" 1424 break 1425 fi 1426 done 1427 IFS="$ac_save_ifs" 3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3388 for as_dir in $PATH 3389 do 3390 IFS=$as_save_IFS 3391 test -z "$as_dir" && as_dir=. 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3394 ac_cv_prog_M4="m4" 3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3396 break 2 3397 fi 3398 done 3399 done 3400 1428 3401 test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="where-is-your-m4" 1429 3402 fi 1430 3403 fi 1431 M4= "$ac_cv_prog_M4"3404 M4=$ac_cv_prog_M4 1432 3405 if test -n "$M4"; then 1433 echo "$ac_t""$M4" 1>&6 1434 else 1435 echo "$ac_t""no" 1>&6 3406 echo "$as_me:$LINENO: result: $M4" >&5 3407 echo "${ECHO_T}$M4" >&6 3408 else 3409 echo "$as_me:$LINENO: result: no" >&5 3410 echo "${ECHO_T}no" >&6 1436 3411 fi 1437 3412 1438 3413 # Extract the first word of "bison", so it can be a program name with args. 1439 3414 set dummy bison; ac_word=$2 1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61441 echo "configure:1442: checking for $ac_word" >&51442 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then1443 echo $ ac_n "(cached) $ac_c" 1>&63415 echo "$as_me:$LINENO: checking for $ac_word" >&5 3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3417 if test "${ac_cv_prog_BISON+set}" = set; then 3418 echo $ECHO_N "(cached) $ECHO_C" >&6 1444 3419 else 1445 3420 if test -n "$BISON"; then 1446 3421 ac_cv_prog_BISON="$BISON" # Let the user override the test. 1447 3422 else 1448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1449 ac_dummy="$PATH" 1450 for ac_dir in $ac_dummy; do 1451 test -z "$ac_dir" && ac_dir=. 1452 if test -f $ac_dir/$ac_word; then 1453 ac_cv_prog_BISON="bison" 1454 break 1455 fi 1456 done 1457 IFS="$ac_save_ifs" 3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3424 for as_dir in $PATH 3425 do 3426 IFS=$as_save_IFS 3427 test -z "$as_dir" && as_dir=. 3428 for ac_exec_ext in '' $ac_executable_extensions; do 3429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3430 ac_cv_prog_BISON="bison" 3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3432 break 2 3433 fi 3434 done 3435 done 3436 1458 3437 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="where-is-your-bison" 1459 3438 fi 1460 3439 fi 1461 BISON= "$ac_cv_prog_BISON"3440 BISON=$ac_cv_prog_BISON 1462 3441 if test -n "$BISON"; then 1463 echo "$ac_t""$BISON" 1>&6 1464 else 1465 echo "$ac_t""no" 1>&6 3442 echo "$as_me:$LINENO: result: $BISON" >&5 3443 echo "${ECHO_T}$BISON" >&6 3444 else 3445 echo "$as_me:$LINENO: result: no" >&5 3446 echo "${ECHO_T}no" >&6 1466 3447 fi 1467 3448 … … 1477 3458 # Extract the first word of "mkinstalldirs", so it can be a program name with args. 1478 3459 set dummy mkinstalldirs; ac_word=$2 1479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61480 echo "configure:1481: checking for $ac_word" >&51481 if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MKINSTALLDIRS'+set}'`\" = set"; then1482 echo $ ac_n "(cached) $ac_c" 1>&61483 else 1484 case "$FACTORY_MKINSTALLDIRS"in1485 /*)3460 echo "$as_me:$LINENO: checking for $ac_word" >&5 3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3462 if test "${ac_cv_path_FACTORY_MKINSTALLDIRS+set}" = set; then 3463 echo $ECHO_N "(cached) $ECHO_C" >&6 3464 else 3465 case $FACTORY_MKINSTALLDIRS in 3466 [\\/]* | ?:[\\/]*) 1486 3467 ac_cv_path_FACTORY_MKINSTALLDIRS="$FACTORY_MKINSTALLDIRS" # Let the user override the test with a path. 1487 3468 ;; 1488 ?:/*)1489 ac_cv_path_FACTORY_MKINSTALLDIRS="$FACTORY_MKINSTALLDIRS" # Let the user override the test with a dos path.1490 ;;1491 3469 *) 1492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1493 ac_dummy="$PATH" 1494 for ac_dir in $ac_dummy; do 1495 test -z "$ac_dir" && ac_dir=. 1496 if test -f $ac_dir/$ac_word; then 1497 ac_cv_path_FACTORY_MKINSTALLDIRS="$ac_dir/$ac_word" 1498 break 1499 fi 1500 done 1501 IFS="$ac_save_ifs" 3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471 for as_dir in $PATH 3472 do 3473 IFS=$as_save_IFS 3474 test -z "$as_dir" && as_dir=. 3475 for ac_exec_ext in '' $ac_executable_extensions; do 3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3477 ac_cv_path_FACTORY_MKINSTALLDIRS="$as_dir/$ac_word$ac_exec_ext" 3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3479 break 2 3480 fi 3481 done 3482 done 3483 1502 3484 test -z "$ac_cv_path_FACTORY_MKINSTALLDIRS" && ac_cv_path_FACTORY_MKINSTALLDIRS="-mkdir" 1503 3485 ;; 1504 3486 esac 1505 3487 fi 1506 FACTORY_MKINSTALLDIRS="$ac_cv_path_FACTORY_MKINSTALLDIRS" 3488 FACTORY_MKINSTALLDIRS=$ac_cv_path_FACTORY_MKINSTALLDIRS 3489 1507 3490 if test -n "$FACTORY_MKINSTALLDIRS"; then 1508 echo "$ac_t""$FACTORY_MKINSTALLDIRS" 1>&6 1509 else 1510 echo "$ac_t""no" 1>&6 3491 echo "$as_me:$LINENO: result: $FACTORY_MKINSTALLDIRS" >&5 3492 echo "${ECHO_T}$FACTORY_MKINSTALLDIRS" >&6 3493 else 3494 echo "$as_me:$LINENO: result: no" >&5 3495 echo "${ECHO_T}no" >&6 1511 3496 fi 1512 3497 … … 1514 3499 # Extract the first word of "makeheader", so it can be a program name with args. 1515 3500 set dummy makeheader; ac_word=$2 1516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61517 echo "configure:1518: checking for $ac_word" >&51518 if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MAKEHEADER'+set}'`\" = set"; then1519 echo $ ac_n "(cached) $ac_c" 1>&61520 else 1521 case "$FACTORY_MAKEHEADER"in1522 /*)3501 echo "$as_me:$LINENO: checking for $ac_word" >&5 3502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3503 if test "${ac_cv_path_FACTORY_MAKEHEADER+set}" = set; then 3504 echo $ECHO_N "(cached) $ECHO_C" >&6 3505 else 3506 case $FACTORY_MAKEHEADER in 3507 [\\/]* | ?:[\\/]*) 1523 3508 ac_cv_path_FACTORY_MAKEHEADER="$FACTORY_MAKEHEADER" # Let the user override the test with a path. 1524 3509 ;; 1525 ?:/*)1526 ac_cv_path_FACTORY_MAKEHEADER="$FACTORY_MAKEHEADER" # Let the user override the test with a dos path.1527 ;;1528 3510 *) 1529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1530 ac_dummy="$PATH" 1531 for ac_dir in $ac_dummy; do 1532 test -z "$ac_dir" && ac_dir=. 1533 if test -f $ac_dir/$ac_word; then 1534 ac_cv_path_FACTORY_MAKEHEADER="$ac_dir/$ac_word" 1535 break 1536 fi 1537 done 1538 IFS="$ac_save_ifs" 3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3512 for as_dir in $PATH 3513 do 3514 IFS=$as_save_IFS 3515 test -z "$as_dir" && as_dir=. 3516 for ac_exec_ext in '' $ac_executable_extensions; do 3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3518 ac_cv_path_FACTORY_MAKEHEADER="$as_dir/$ac_word$ac_exec_ext" 3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3520 break 2 3521 fi 3522 done 3523 done 3524 1539 3525 ;; 1540 3526 esac 1541 3527 fi 1542 FACTORY_MAKEHEADER="$ac_cv_path_FACTORY_MAKEHEADER" 3528 FACTORY_MAKEHEADER=$ac_cv_path_FACTORY_MAKEHEADER 3529 1543 3530 if test -n "$FACTORY_MAKEHEADER"; then 1544 echo "$ac_t""$FACTORY_MAKEHEADER" 1>&6 1545 else 1546 echo "$ac_t""no" 1>&6 3531 echo "$as_me:$LINENO: result: $FACTORY_MAKEHEADER" >&5 3532 echo "${ECHO_T}$FACTORY_MAKEHEADER" >&6 3533 else 3534 echo "$as_me:$LINENO: result: no" >&5 3535 echo "${ECHO_T}no" >&6 1547 3536 fi 1548 3537 … … 1553 3542 # 1554 3543 1555 echo $ac_n "checking and generating explicit install paths""... $ac_c" 1>&61556 echo "configure:1557: checking and generating explicit install paths" >&53544 echo "$as_me:$LINENO: checking and generating explicit install paths" >&5 3545 echo $ECHO_N "checking and generating explicit install paths... $ECHO_C" >&6 1557 3546 1558 3547 # generate Makefile … … 1588 3577 rm -f ./conftest.mk ./conftest.dir 1589 3578 1590 echo "$ac_t""done" 1>&6 3579 echo "$as_me:$LINENO: result: done" >&5 3580 echo "${ECHO_T}done" >&6 1591 3581 1592 3582 # 1593 3583 # - check for libraries. 1594 3584 # 1595 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1596 echo "configure:1597: checking for atof in -lm" >&5 1597 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1599 echo $ac_n "(cached) $ac_c" 1>&6 1600 else 1601 ac_save_LIBS="$LIBS" 3585 3586 3587 echo "$as_me:$LINENO: checking for atof in -lm" >&5 3588 echo $ECHO_N "checking for atof in -lm... $ECHO_C" >&6 3589 if test "${ac_cv_lib_m_atof+set}" = set; then 3590 echo $ECHO_N "(cached) $ECHO_C" >&6 3591 else 3592 ac_check_lib_save_LIBS=$LIBS 1602 3593 LIBS="-lm $LIBS" 1603 cat > conftest.$ac_ext <<EOF 1604 #line 1605 "configure" 1605 #include "confdefs.h" 3594 cat >conftest.$ac_ext <<_ACEOF 3595 #line $LINENO "configure" 3596 /* confdefs.h. */ 3597 _ACEOF 3598 cat confdefs.h >>conftest.$ac_ext 3599 cat >>conftest.$ac_ext <<_ACEOF 3600 /* end confdefs.h. */ 3601 1606 3602 /* Override any gcc2 internal prototype to avoid an error. */ 3603 #ifdef __cplusplus 3604 extern "C" 3605 #endif 1607 3606 /* We use char because int might match the return type of a gcc2 1608 builtin and then its argument prototype would still apply. */ 1609 char atof(); 1610 1611 int main() { 1612 atof() 1613 ; return 0; } 1614 EOF 1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1616 rm -rf conftest* 1617 eval "ac_cv_lib_$ac_lib_var=yes" 1618 else 1619 echo "configure: failed program was:" >&5 1620 cat conftest.$ac_ext >&5 1621 rm -rf conftest* 1622 eval "ac_cv_lib_$ac_lib_var=no" 1623 fi 1624 rm -f conftest* 1625 LIBS="$ac_save_LIBS" 1626 1627 fi 1628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1629 echo "$ac_t""yes" 1>&6 1630 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1632 cat >> confdefs.h <<EOF 1633 #define $ac_tr_lib 1 1634 EOF 3607 builtin and then its argument prototype would still apply. */ 3608 char atof (); 3609 int 3610 main () 3611 { 3612 atof (); 3613 ; 3614 return 0; 3615 } 3616 _ACEOF 3617 rm -f conftest.$ac_objext conftest$ac_exeext 3618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3619 (eval $ac_link) 2>&5 3620 ac_status=$? 3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3622 (exit $ac_status); } && 3623 { ac_try='test -s conftest$ac_exeext' 3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3625 (eval $ac_try) 2>&5 3626 ac_status=$? 3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3628 (exit $ac_status); }; }; then 3629 ac_cv_lib_m_atof=yes 3630 else 3631 echo "$as_me: failed program was:" >&5 3632 sed 's/^/| /' conftest.$ac_ext >&5 3633 3634 ac_cv_lib_m_atof=no 3635 fi 3636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3637 LIBS=$ac_check_lib_save_LIBS 3638 fi 3639 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atof" >&5 3640 echo "${ECHO_T}$ac_cv_lib_m_atof" >&6 3641 if test $ac_cv_lib_m_atof = yes; then 3642 cat >>confdefs.h <<_ACEOF 3643 #define HAVE_LIBM 1 3644 _ACEOF 1635 3645 1636 3646 LIBS="-lm $LIBS" 1637 3647 1638 3648 else 1639 echo "$ac_t""no" 1>&6 1640 { echo "configure: error: libm.a not found" 1>&2; exit 1; } 3649 { { echo "$as_me:$LINENO: error: libm.a not found" >&5 3650 echo "$as_me: error: libm.a not found" >&2;} 3651 { (exit 1); exit 1; }; } 1641 3652 fi 1642 3653 1643 3654 1644 3655 if test "x$gmp_in_installation" != xyes; then 1645 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 1646 echo " configure:1647: checking for main in -lgmp" >&51647 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 1648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1649 echo $ ac_n "(cached) $ac_c" 1>&61650 else 1651 ac_ save_LIBS="$LIBS"3656 3657 echo "$as_me:$LINENO: checking for main in -lgmp" >&5 3658 echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6 3659 if test "${ac_cv_lib_gmp_main+set}" = set; then 3660 echo $ECHO_N "(cached) $ECHO_C" >&6 3661 else 3662 ac_check_lib_save_LIBS=$LIBS 1652 3663 LIBS="-lgmp $LIBS" 1653 cat > conftest.$ac_ext <<EOF 1654 #line 1655 "configure" 1655 #include "confdefs.h" 1656 1657 int main() { 1658 main() 1659 ; return 0; } 1660 EOF 1661 if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1662 rm -rf conftest* 1663 eval "ac_cv_lib_$ac_lib_var=yes" 1664 else 1665 echo "configure: failed program was:" >&5 1666 cat conftest.$ac_ext >&5 1667 rm -rf conftest* 1668 eval "ac_cv_lib_$ac_lib_var=no" 1669 fi 1670 rm -f conftest* 1671 LIBS="$ac_save_LIBS" 1672 1673 fi 1674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1675 echo "$ac_t""yes" 1>&6 1676 ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1677 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1678 cat >> confdefs.h <<EOF 1679 #define $ac_tr_lib 1 1680 EOF 3664 cat >conftest.$ac_ext <<_ACEOF 3665 #line $LINENO "configure" 3666 /* confdefs.h. */ 3667 _ACEOF 3668 cat confdefs.h >>conftest.$ac_ext 3669 cat >>conftest.$ac_ext <<_ACEOF 3670 /* end confdefs.h. */ 3671 3672 3673 int 3674 main () 3675 { 3676 main (); 3677 ; 3678 return 0; 3679 } 3680 _ACEOF 3681 rm -f conftest.$ac_objext conftest$ac_exeext 3682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3683 (eval $ac_link) 2>&5 3684 ac_status=$? 3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3686 (exit $ac_status); } && 3687 { ac_try='test -s conftest$ac_exeext' 3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3689 (eval $ac_try) 2>&5 3690 ac_status=$? 3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3692 (exit $ac_status); }; }; then 3693 ac_cv_lib_gmp_main=yes 3694 else 3695 echo "$as_me: failed program was:" >&5 3696 sed 's/^/| /' conftest.$ac_ext >&5 3697 3698 ac_cv_lib_gmp_main=no 3699 fi 3700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3701 LIBS=$ac_check_lib_save_LIBS 3702 fi 3703 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5 3704 echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6 3705 if test $ac_cv_lib_gmp_main = yes; then 3706 cat >>confdefs.h <<_ACEOF 3707 #define HAVE_LIBGMP 1 3708 _ACEOF 1681 3709 1682 3710 LIBS="-lgmp $LIBS" 1683 3711 1684 3712 else 1685 echo "$ac_t""no" 1>&61686 3713 1687 3714 # check a second time in `$(libdir)'. This is a bit tricky, … … 1689 3716 unset ac_cv_lib_gmp_main 1690 3717 LDFLAGS="-L$explicit_libdir $LDFLAGS" 1691 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 1692 echo " configure:1693: checking for main in -lgmp" >&51693 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 1694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1695 echo $ ac_n "(cached) $ac_c" 1>&61696 else 1697 ac_ save_LIBS="$LIBS"3718 3719 echo "$as_me:$LINENO: checking for main in -lgmp" >&5 3720 echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6 3721 if test "${ac_cv_lib_gmp_main+set}" = set; then 3722 echo $ECHO_N "(cached) $ECHO_C" >&6 3723 else 3724 ac_check_lib_save_LIBS=$LIBS 1698 3725 LIBS="-lgmp $LIBS" 1699 cat > conftest.$ac_ext <<EOF 1700 #line 1701 "configure" 1701 #include "confdefs.h" 1702 1703 int main() { 1704 main() 1705 ; return 0; } 1706 EOF 1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1708 rm -rf conftest* 1709 eval "ac_cv_lib_$ac_lib_var=yes" 1710 else 1711 echo "configure: failed program was:" >&5 1712 cat conftest.$ac_ext >&5 1713 rm -rf conftest* 1714 eval "ac_cv_lib_$ac_lib_var=no" 1715 fi 1716 rm -f conftest* 1717 LIBS="$ac_save_LIBS" 1718 1719 fi 1720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1721 echo "$ac_t""yes" 1>&6 1722 ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1723 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1724 cat >> confdefs.h <<EOF 1725 #define $ac_tr_lib 1 1726 EOF 3726 cat >conftest.$ac_ext <<_ACEOF 3727 #line $LINENO "configure" 3728 /* confdefs.h. */ 3729 _ACEOF 3730 cat confdefs.h >>conftest.$ac_ext 3731 cat >>conftest.$ac_ext <<_ACEOF 3732 /* end confdefs.h. */ 3733 3734 3735 int 3736 main () 3737 { 3738 main (); 3739 ; 3740 return 0; 3741 } 3742 _ACEOF 3743 rm -f conftest.$ac_objext conftest$ac_exeext 3744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3745 (eval $ac_link) 2>&5 3746 ac_status=$? 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); } && 3749 { ac_try='test -s conftest$ac_exeext' 3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3751 (eval $ac_try) 2>&5 3752 ac_status=$? 3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 (exit $ac_status); }; }; then 3755 ac_cv_lib_gmp_main=yes 3756 else 3757 echo "$as_me: failed program was:" >&5 3758 sed 's/^/| /' conftest.$ac_ext >&5 3759 3760 ac_cv_lib_gmp_main=no 3761 fi 3762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3763 LIBS=$ac_check_lib_save_LIBS 3764 fi 3765 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5 3766 echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6 3767 if test $ac_cv_lib_gmp_main = yes; then 3768 cat >>confdefs.h <<_ACEOF 3769 #define HAVE_LIBGMP 1 3770 _ACEOF 1727 3771 1728 3772 LIBS="-lgmp $LIBS" 1729 3773 1730 3774 else 1731 echo "$ac_t""no" 1>&6 1732 { echo "configure: error: libgmp.a not found. Use option --with-gmp to specify path" 1>&2; exit 1; } 3775 { { echo "$as_me:$LINENO: error: libgmp.a not found. Use option --with-gmp to specify path" >&5 3776 echo "$as_me: error: libgmp.a not found. Use option --with-gmp to specify path" >&2;} 3777 { (exit 1); exit 1; }; } 1733 3778 fi 1734 3779 1735 3780 unset ac_cv_lib_gmp_main 1736 3781 1737 3782 fi 1738 3783 … … 1742 3787 # - check for header files. 1743 3788 # 1744 ac_ext=C 1745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3789 ac_ext=cc 1746 3790 ac_cpp='$CXXCPP $CPPFLAGS' 1747 ac_compile='$ {CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1748 ac_link='$ {CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1749 cross_compiling=$ac_cv_prog_cxx_cross 3791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1750 3794 1751 3795 1752 3796 if test "x$gmp_in_installation" != xyes; then 1753 for ac_hdr in gmp.h 3797 3798 3799 echo "$as_me:$LINENO: checking for egrep" >&5 3800 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3801 if test "${ac_cv_prog_egrep+set}" = set; then 3802 echo $ECHO_N "(cached) $ECHO_C" >&6 3803 else 3804 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3805 then ac_cv_prog_egrep='grep -E' 3806 else ac_cv_prog_egrep='egrep' 3807 fi 3808 fi 3809 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3810 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3811 EGREP=$ac_cv_prog_egrep 3812 3813 3814 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3816 if test "${ac_cv_header_stdc+set}" = set; then 3817 echo $ECHO_N "(cached) $ECHO_C" >&6 3818 else 3819 cat >conftest.$ac_ext <<_ACEOF 3820 #line $LINENO "configure" 3821 /* confdefs.h. */ 3822 _ACEOF 3823 cat confdefs.h >>conftest.$ac_ext 3824 cat >>conftest.$ac_ext <<_ACEOF 3825 /* end confdefs.h. */ 3826 #include <stdlib.h> 3827 #include <stdarg.h> 3828 #include <string.h> 3829 #include <float.h> 3830 3831 int 3832 main () 3833 { 3834 3835 ; 3836 return 0; 3837 } 3838 _ACEOF 3839 rm -f conftest.$ac_objext 3840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3841 (eval $ac_compile) 2>&5 3842 ac_status=$? 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 (exit $ac_status); } && 3845 { ac_try='test -s conftest.$ac_objext' 3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3847 (eval $ac_try) 2>&5 3848 ac_status=$? 3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3850 (exit $ac_status); }; }; then 3851 ac_cv_header_stdc=yes 3852 else 3853 echo "$as_me: failed program was:" >&5 3854 sed 's/^/| /' conftest.$ac_ext >&5 3855 3856 ac_cv_header_stdc=no 3857 fi 3858 rm -f conftest.$ac_objext conftest.$ac_ext 3859 3860 if test $ac_cv_header_stdc = yes; then 3861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3862 cat >conftest.$ac_ext <<_ACEOF 3863 #line $LINENO "configure" 3864 /* confdefs.h. */ 3865 _ACEOF 3866 cat confdefs.h >>conftest.$ac_ext 3867 cat >>conftest.$ac_ext <<_ACEOF 3868 /* end confdefs.h. */ 3869 #include <string.h> 3870 3871 _ACEOF 3872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3873 $EGREP "memchr" >/dev/null 2>&1; then 3874 : 3875 else 3876 ac_cv_header_stdc=no 3877 fi 3878 rm -f conftest* 3879 3880 fi 3881 3882 if test $ac_cv_header_stdc = yes; then 3883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3884 cat >conftest.$ac_ext <<_ACEOF 3885 #line $LINENO "configure" 3886 /* confdefs.h. */ 3887 _ACEOF 3888 cat confdefs.h >>conftest.$ac_ext 3889 cat >>conftest.$ac_ext <<_ACEOF 3890 /* end confdefs.h. */ 3891 #include <stdlib.h> 3892 3893 _ACEOF 3894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3895 $EGREP "free" >/dev/null 2>&1; then 3896 : 3897 else 3898 ac_cv_header_stdc=no 3899 fi 3900 rm -f conftest* 3901 3902 fi 3903 3904 if test $ac_cv_header_stdc = yes; then 3905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3906 if test "$cross_compiling" = yes; then 3907 : 3908 else 3909 cat >conftest.$ac_ext <<_ACEOF 3910 #line $LINENO "configure" 3911 /* confdefs.h. */ 3912 _ACEOF 3913 cat confdefs.h >>conftest.$ac_ext 3914 cat >>conftest.$ac_ext <<_ACEOF 3915 /* end confdefs.h. */ 3916 #include <ctype.h> 3917 #if ((' ' & 0x0FF) == 0x020) 3918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3920 #else 3921 # define ISLOWER(c) \ 3922 (('a' <= (c) && (c) <= 'i') \ 3923 || ('j' <= (c) && (c) <= 'r') \ 3924 || ('s' <= (c) && (c) <= 'z')) 3925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3926 #endif 3927 3928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3929 int 3930 main () 3931 { 3932 int i; 3933 for (i = 0; i < 256; i++) 3934 if (XOR (islower (i), ISLOWER (i)) 3935 || toupper (i) != TOUPPER (i)) 3936 exit(2); 3937 exit (0); 3938 } 3939 _ACEOF 3940 rm -f conftest$ac_exeext 3941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3942 (eval $ac_link) 2>&5 3943 ac_status=$? 3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3947 (eval $ac_try) 2>&5 3948 ac_status=$? 3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3950 (exit $ac_status); }; }; then 3951 : 3952 else 3953 echo "$as_me: program exited with status $ac_status" >&5 3954 echo "$as_me: failed program was:" >&5 3955 sed 's/^/| /' conftest.$ac_ext >&5 3956 3957 ( exit $ac_status ) 3958 ac_cv_header_stdc=no 3959 fi 3960 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3961 fi 3962 fi 3963 fi 3964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3965 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3966 if test $ac_cv_header_stdc = yes; then 3967 3968 cat >>confdefs.h <<\_ACEOF 3969 #define STDC_HEADERS 1 3970 _ACEOF 3971 3972 fi 3973 3974 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3985 inttypes.h stdint.h unistd.h 1754 3986 do 1755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1757 echo "configure:1758: checking for $ac_hdr" >&5 1758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1759 echo $ac_n "(cached) $ac_c" 1>&6 1760 else 1761 cat > conftest.$ac_ext <<EOF 1762 #line 1763 "configure" 1763 #include "confdefs.h" 1764 #include <$ac_hdr> 1765 EOF 1766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1767 { (eval echo configure:1768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1769 if test -z "$ac_err"; then 1770 rm -rf conftest* 1771 eval "ac_cv_header_$ac_safe=yes" 1772 else 1773 echo "$ac_err" >&5 1774 echo "configure: failed program was:" >&5 1775 cat conftest.$ac_ext >&5 1776 rm -rf conftest* 1777 eval "ac_cv_header_$ac_safe=no" 1778 fi 1779 rm -f conftest* 1780 fi 1781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1782 echo "$ac_t""yes" 1>&6 1783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1784 cat >> confdefs.h <<EOF 1785 #define $ac_tr_hdr 1 1786 EOF 1787 1788 else 1789 echo "$ac_t""no" 1>&6 1790 # check a second time in `$(includedir)'. This is a bit tricky, 3987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3988 echo "$as_me:$LINENO: checking for $ac_header" >&5 3989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3990 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3991 echo $ECHO_N "(cached) $ECHO_C" >&6 3992 else 3993 cat >conftest.$ac_ext <<_ACEOF 3994 #line $LINENO "configure" 3995 /* confdefs.h. */ 3996 _ACEOF 3997 cat confdefs.h >>conftest.$ac_ext 3998 cat >>conftest.$ac_ext <<_ACEOF 3999 /* end confdefs.h. */ 4000 $ac_includes_default 4001 4002 #include <$ac_header> 4003 _ACEOF 4004 rm -f conftest.$ac_objext 4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4006 (eval $ac_compile) 2>&5 4007 ac_status=$? 4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4009 (exit $ac_status); } && 4010 { ac_try='test -s conftest.$ac_objext' 4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4012 (eval $ac_try) 2>&5 4013 ac_status=$? 4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4015 (exit $ac_status); }; }; then 4016 eval "$as_ac_Header=yes" 4017 else 4018 echo "$as_me: failed program was:" >&5 4019 sed 's/^/| /' conftest.$ac_ext >&5 4020 4021 eval "$as_ac_Header=no" 4022 fi 4023 rm -f conftest.$ac_objext conftest.$ac_ext 4024 fi 4025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4027 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4028 cat >>confdefs.h <<_ACEOF 4029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4030 _ACEOF 4031 4032 fi 4033 4034 done 4035 4036 4037 4038 for ac_header in gmp.h 4039 do 4040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4041 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4042 echo "$as_me:$LINENO: checking for $ac_header" >&5 4043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4044 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4045 echo $ECHO_N "(cached) $ECHO_C" >&6 4046 fi 4047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4049 else 4050 # Is the header compilable? 4051 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4053 cat >conftest.$ac_ext <<_ACEOF 4054 #line $LINENO "configure" 4055 /* confdefs.h. */ 4056 _ACEOF 4057 cat confdefs.h >>conftest.$ac_ext 4058 cat >>conftest.$ac_ext <<_ACEOF 4059 /* end confdefs.h. */ 4060 $ac_includes_default 4061 #include <$ac_header> 4062 _ACEOF 4063 rm -f conftest.$ac_objext 4064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4065 (eval $ac_compile) 2>&5 4066 ac_status=$? 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); } && 4069 { ac_try='test -s conftest.$ac_objext' 4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4071 (eval $ac_try) 2>&5 4072 ac_status=$? 4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4074 (exit $ac_status); }; }; then 4075 ac_header_compiler=yes 4076 else 4077 echo "$as_me: failed program was:" >&5 4078 sed 's/^/| /' conftest.$ac_ext >&5 4079 4080 ac_header_compiler=no 4081 fi 4082 rm -f conftest.$ac_objext conftest.$ac_ext 4083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4084 echo "${ECHO_T}$ac_header_compiler" >&6 4085 4086 # Is the header present? 4087 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4089 cat >conftest.$ac_ext <<_ACEOF 4090 #line $LINENO "configure" 4091 /* confdefs.h. */ 4092 _ACEOF 4093 cat confdefs.h >>conftest.$ac_ext 4094 cat >>conftest.$ac_ext <<_ACEOF 4095 /* end confdefs.h. */ 4096 #include <$ac_header> 4097 _ACEOF 4098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4100 ac_status=$? 4101 grep -v '^ *+' conftest.er1 >conftest.err 4102 rm -f conftest.er1 4103 cat conftest.err >&5 4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4105 (exit $ac_status); } >/dev/null; then 4106 if test -s conftest.err; then 4107 ac_cpp_err=$ac_cxx_preproc_warn_flag 4108 else 4109 ac_cpp_err= 4110 fi 4111 else 4112 ac_cpp_err=yes 4113 fi 4114 if test -z "$ac_cpp_err"; then 4115 ac_header_preproc=yes 4116 else 4117 echo "$as_me: failed program was:" >&5 4118 sed 's/^/| /' conftest.$ac_ext >&5 4119 4120 ac_header_preproc=no 4121 fi 4122 rm -f conftest.err conftest.$ac_ext 4123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4124 echo "${ECHO_T}$ac_header_preproc" >&6 4125 4126 # So? What about this header? 4127 case $ac_header_compiler:$ac_header_preproc in 4128 yes:no ) 4129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4133 ( 4134 cat <<\_ASBOX 4135 ## ------------------------------------ ## 4136 ## Report this to bug-autoconf@gnu.org. ## 4137 ## ------------------------------------ ## 4138 _ASBOX 4139 ) | 4140 sed "s/^/$as_me: WARNING: /" >&2 4141 ;; 4142 no:yes ) 4143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4149 ( 4150 cat <<\_ASBOX 4151 ## ------------------------------------ ## 4152 ## Report this to bug-autoconf@gnu.org. ## 4153 ## ------------------------------------ ## 4154 _ASBOX 4155 ) | 4156 sed "s/^/$as_me: WARNING: /" >&2 4157 ;; 4158 esac 4159 echo "$as_me:$LINENO: checking for $ac_header" >&5 4160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4161 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4162 echo $ECHO_N "(cached) $ECHO_C" >&6 4163 else 4164 eval "$as_ac_Header=$ac_header_preproc" 4165 fi 4166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4167 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4168 4169 fi 4170 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4171 cat >>confdefs.h <<_ACEOF 4172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4173 _ACEOF 4174 4175 else 4176 4177 # check a second time in `$(includedir)'. This is a bit tricky, 1791 4178 # but I think it's worth avoiding long option values. 1792 4179 unset ac_cv_header_gmp_h 1793 4180 CPPFLAGS="-I$explicit_includedir $CPPFLAGS" 1794 for ac_hdr in gmp.h 4181 4182 for ac_header in gmp.h 1795 4183 do 1796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1798 echo "configure:1799: checking for $ac_hdr" >&5 1799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1800 echo $ac_n "(cached) $ac_c" 1>&6 1801 else 1802 cat > conftest.$ac_ext <<EOF 1803 #line 1804 "configure" 1804 #include "confdefs.h" 1805 #include <$ac_hdr> 1806 EOF 1807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1808 { (eval echo configure:1809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1810 if test -z "$ac_err"; then 1811 rm -rf conftest* 1812 eval "ac_cv_header_$ac_safe=yes" 1813 else 1814 echo "$ac_err" >&5 1815 echo "configure: failed program was:" >&5 1816 cat conftest.$ac_ext >&5 1817 rm -rf conftest* 1818 eval "ac_cv_header_$ac_safe=no" 1819 fi 1820 rm -f conftest* 1821 fi 1822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1823 echo "$ac_t""yes" 1>&6 1824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1825 cat >> confdefs.h <<EOF 1826 #define $ac_tr_hdr 1 1827 EOF 1828 1829 else 1830 echo "$ac_t""no" 1>&6 1831 { echo "configure: error: gmp.h not found. Use option --with-gmp to specify path" 1>&2; exit 1; } 1832 fi 4184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4185 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4186 echo "$as_me:$LINENO: checking for $ac_header" >&5 4187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4188 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4189 echo $ECHO_N "(cached) $ECHO_C" >&6 4190 fi 4191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4193 else 4194 # Is the header compilable? 4195 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4197 cat >conftest.$ac_ext <<_ACEOF 4198 #line $LINENO "configure" 4199 /* confdefs.h. */ 4200 _ACEOF 4201 cat confdefs.h >>conftest.$ac_ext 4202 cat >>conftest.$ac_ext <<_ACEOF 4203 /* end confdefs.h. */ 4204 $ac_includes_default 4205 #include <$ac_header> 4206 _ACEOF 4207 rm -f conftest.$ac_objext 4208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4209 (eval $ac_compile) 2>&5 4210 ac_status=$? 4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4212 (exit $ac_status); } && 4213 { ac_try='test -s conftest.$ac_objext' 4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4215 (eval $ac_try) 2>&5 4216 ac_status=$? 4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4218 (exit $ac_status); }; }; then 4219 ac_header_compiler=yes 4220 else 4221 echo "$as_me: failed program was:" >&5 4222 sed 's/^/| /' conftest.$ac_ext >&5 4223 4224 ac_header_compiler=no 4225 fi 4226 rm -f conftest.$ac_objext conftest.$ac_ext 4227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4228 echo "${ECHO_T}$ac_header_compiler" >&6 4229 4230 # Is the header present? 4231 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4233 cat >conftest.$ac_ext <<_ACEOF 4234 #line $LINENO "configure" 4235 /* confdefs.h. */ 4236 _ACEOF 4237 cat confdefs.h >>conftest.$ac_ext 4238 cat >>conftest.$ac_ext <<_ACEOF 4239 /* end confdefs.h. */ 4240 #include <$ac_header> 4241 _ACEOF 4242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4244 ac_status=$? 4245 grep -v '^ *+' conftest.er1 >conftest.err 4246 rm -f conftest.er1 4247 cat conftest.err >&5 4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4249 (exit $ac_status); } >/dev/null; then 4250 if test -s conftest.err; then 4251 ac_cpp_err=$ac_cxx_preproc_warn_flag 4252 else 4253 ac_cpp_err= 4254 fi 4255 else 4256 ac_cpp_err=yes 4257 fi 4258 if test -z "$ac_cpp_err"; then 4259 ac_header_preproc=yes 4260 else 4261 echo "$as_me: failed program was:" >&5 4262 sed 's/^/| /' conftest.$ac_ext >&5 4263 4264 ac_header_preproc=no 4265 fi 4266 rm -f conftest.err conftest.$ac_ext 4267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4268 echo "${ECHO_T}$ac_header_preproc" >&6 4269 4270 # So? What about this header? 4271 case $ac_header_compiler:$ac_header_preproc in 4272 yes:no ) 4273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4277 ( 4278 cat <<\_ASBOX 4279 ## ------------------------------------ ## 4280 ## Report this to bug-autoconf@gnu.org. ## 4281 ## ------------------------------------ ## 4282 _ASBOX 4283 ) | 4284 sed "s/^/$as_me: WARNING: /" >&2 4285 ;; 4286 no:yes ) 4287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4293 ( 4294 cat <<\_ASBOX 4295 ## ------------------------------------ ## 4296 ## Report this to bug-autoconf@gnu.org. ## 4297 ## ------------------------------------ ## 4298 _ASBOX 4299 ) | 4300 sed "s/^/$as_me: WARNING: /" >&2 4301 ;; 4302 esac 4303 echo "$as_me:$LINENO: checking for $ac_header" >&5 4304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4306 echo $ECHO_N "(cached) $ECHO_C" >&6 4307 else 4308 eval "$as_ac_Header=$ac_header_preproc" 4309 fi 4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4312 4313 fi 4314 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4315 cat >>confdefs.h <<_ACEOF 4316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4317 _ACEOF 4318 4319 else 4320 { { echo "$as_me:$LINENO: error: gmp.h not found. Use option --with-gmp to specify path" >&5 4321 echo "$as_me: error: gmp.h not found. Use option --with-gmp to specify path" >&2;} 4322 { (exit 1); exit 1; }; } 4323 fi 4324 1833 4325 done 1834 4326 1835 4327 unset ac_cv_header_gmp_h 1836 1837 fi 1838 done 1839 1840 fi 1841 1842 for ac_hdr in stdio.h stdlib.h string.h time.h math.h 4328 4329 fi 4330 4331 done 4332 4333 fi 4334 4335 4336 4337 4338 4339 4340 for ac_header in stdio.h stdlib.h string.h time.h math.h 1843 4341 do 1844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1846 echo "configure:1847: checking for $ac_hdr" >&5 1847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1848 echo $ac_n "(cached) $ac_c" 1>&6 1849 else 1850 cat > conftest.$ac_ext <<EOF 1851 #line 1852 "configure" 1852 #include "confdefs.h" 1853 #include <$ac_hdr> 1854 EOF 1855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1856 { (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1858 if test -z "$ac_err"; then 1859 rm -rf conftest* 1860 eval "ac_cv_header_$ac_safe=yes" 1861 else 1862 echo "$ac_err" >&5 1863 echo "configure: failed program was:" >&5 1864 cat conftest.$ac_ext >&5 1865 rm -rf conftest* 1866 eval "ac_cv_header_$ac_safe=no" 1867 fi 1868 rm -f conftest* 1869 fi 1870 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1871 echo "$ac_t""yes" 1>&6 1872 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1873 cat >> confdefs.h <<EOF 1874 #define $ac_tr_hdr 1 1875 EOF 1876 1877 else 1878 echo "$ac_t""no" 1>&6 1879 { echo "configure: error: C header files not found" 1>&2; exit 1; } 1880 fi 4342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4344 echo "$as_me:$LINENO: checking for $ac_header" >&5 4345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4346 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4347 echo $ECHO_N "(cached) $ECHO_C" >&6 4348 fi 4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4351 else 4352 # Is the header compilable? 4353 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4355 cat >conftest.$ac_ext <<_ACEOF 4356 #line $LINENO "configure" 4357 /* confdefs.h. */ 4358 _ACEOF 4359 cat confdefs.h >>conftest.$ac_ext 4360 cat >>conftest.$ac_ext <<_ACEOF 4361 /* end confdefs.h. */ 4362 $ac_includes_default 4363 #include <$ac_header> 4364 _ACEOF 4365 rm -f conftest.$ac_objext 4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4367 (eval $ac_compile) 2>&5 4368 ac_status=$? 4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4370 (exit $ac_status); } && 4371 { ac_try='test -s conftest.$ac_objext' 4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4373 (eval $ac_try) 2>&5 4374 ac_status=$? 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); }; }; then 4377 ac_header_compiler=yes 4378 else 4379 echo "$as_me: failed program was:" >&5 4380 sed 's/^/| /' conftest.$ac_ext >&5 4381 4382 ac_header_compiler=no 4383 fi 4384 rm -f conftest.$ac_objext conftest.$ac_ext 4385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4386 echo "${ECHO_T}$ac_header_compiler" >&6 4387 4388 # Is the header present? 4389 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4391 cat >conftest.$ac_ext <<_ACEOF 4392 #line $LINENO "configure" 4393 /* confdefs.h. */ 4394 _ACEOF 4395 cat confdefs.h >>conftest.$ac_ext 4396 cat >>conftest.$ac_ext <<_ACEOF 4397 /* end confdefs.h. */ 4398 #include <$ac_header> 4399 _ACEOF 4400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4402 ac_status=$? 4403 grep -v '^ *+' conftest.er1 >conftest.err 4404 rm -f conftest.er1 4405 cat conftest.err >&5 4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4407 (exit $ac_status); } >/dev/null; then 4408 if test -s conftest.err; then 4409 ac_cpp_err=$ac_cxx_preproc_warn_flag 4410 else 4411 ac_cpp_err= 4412 fi 4413 else 4414 ac_cpp_err=yes 4415 fi 4416 if test -z "$ac_cpp_err"; then 4417 ac_header_preproc=yes 4418 else 4419 echo "$as_me: failed program was:" >&5 4420 sed 's/^/| /' conftest.$ac_ext >&5 4421 4422 ac_header_preproc=no 4423 fi 4424 rm -f conftest.err conftest.$ac_ext 4425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4426 echo "${ECHO_T}$ac_header_preproc" >&6 4427 4428 # So? What about this header? 4429 case $ac_header_compiler:$ac_header_preproc in 4430 yes:no ) 4431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4435 ( 4436 cat <<\_ASBOX 4437 ## ------------------------------------ ## 4438 ## Report this to bug-autoconf@gnu.org. ## 4439 ## ------------------------------------ ## 4440 _ASBOX 4441 ) | 4442 sed "s/^/$as_me: WARNING: /" >&2 4443 ;; 4444 no:yes ) 4445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4451 ( 4452 cat <<\_ASBOX 4453 ## ------------------------------------ ## 4454 ## Report this to bug-autoconf@gnu.org. ## 4455 ## ------------------------------------ ## 4456 _ASBOX 4457 ) | 4458 sed "s/^/$as_me: WARNING: /" >&2 4459 ;; 4460 esac 4461 echo "$as_me:$LINENO: checking for $ac_header" >&5 4462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4463 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4464 echo $ECHO_N "(cached) $ECHO_C" >&6 4465 else 4466 eval "$as_ac_Header=$ac_header_preproc" 4467 fi 4468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4470 4471 fi 4472 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4473 cat >>confdefs.h <<_ACEOF 4474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4475 _ACEOF 4476 4477 else 4478 { { echo "$as_me:$LINENO: error: C header files not found" >&5 4479 echo "$as_me: error: C header files not found" >&2;} 4480 { (exit 1); exit 1; }; } 4481 fi 4482 1881 4483 done 1882 4484 1883 4485 1884 4486 if test "x$enable_streamio" != xno; then 1885 for ac_hdr in iostream.h strstream.h fstream.h 4487 4488 4489 4490 for ac_header in iostream.h strstream.h fstream.h 1886 4491 do 1887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1889 echo "configure:1890: checking for $ac_hdr" >&5 1890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1891 echo $ac_n "(cached) $ac_c" 1>&6 1892 else 1893 cat > conftest.$ac_ext <<EOF 1894 #line 1895 "configure" 1895 #include "confdefs.h" 1896 #include <$ac_hdr> 1897 EOF 1898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1899 { (eval echo configure:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1901 if test -z "$ac_err"; then 1902 rm -rf conftest* 1903 eval "ac_cv_header_$ac_safe=yes" 1904 else 1905 echo "$ac_err" >&5 1906 echo "configure: failed program was:" >&5 1907 cat conftest.$ac_ext >&5 1908 rm -rf conftest* 1909 eval "ac_cv_header_$ac_safe=no" 1910 fi 1911 rm -f conftest* 1912 fi 1913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1914 echo "$ac_t""yes" 1>&6 1915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1916 cat >> confdefs.h <<EOF 1917 #define $ac_tr_hdr 1 1918 EOF 1919 1920 else 1921 echo "$ac_t""no" 1>&6 1922 echo "configure: warning: C++ header files not found" 1>&2 1923 fi 1924 done 1925 1926 for ac_hdr in ctype.h 4492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4493 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4494 echo "$as_me:$LINENO: checking for $ac_header" >&5 4495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4496 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4497 echo $ECHO_N "(cached) $ECHO_C" >&6 4498 fi 4499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4501 else 4502 # Is the header compilable? 4503 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4505 cat >conftest.$ac_ext <<_ACEOF 4506 #line $LINENO "configure" 4507 /* confdefs.h. */ 4508 _ACEOF 4509 cat confdefs.h >>conftest.$ac_ext 4510 cat >>conftest.$ac_ext <<_ACEOF 4511 /* end confdefs.h. */ 4512 $ac_includes_default 4513 #include <$ac_header> 4514 _ACEOF 4515 rm -f conftest.$ac_objext 4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4517 (eval $ac_compile) 2>&5 4518 ac_status=$? 4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4520 (exit $ac_status); } && 4521 { ac_try='test -s conftest.$ac_objext' 4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4523 (eval $ac_try) 2>&5 4524 ac_status=$? 4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4526 (exit $ac_status); }; }; then 4527 ac_header_compiler=yes 4528 else 4529 echo "$as_me: failed program was:" >&5 4530 sed 's/^/| /' conftest.$ac_ext >&5 4531 4532 ac_header_compiler=no 4533 fi 4534 rm -f conftest.$ac_objext conftest.$ac_ext 4535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4536 echo "${ECHO_T}$ac_header_compiler" >&6 4537 4538 # Is the header present? 4539 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4541 cat >conftest.$ac_ext <<_ACEOF 4542 #line $LINENO "configure" 4543 /* confdefs.h. */ 4544 _ACEOF 4545 cat confdefs.h >>conftest.$ac_ext 4546 cat >>conftest.$ac_ext <<_ACEOF 4547 /* end confdefs.h. */ 4548 #include <$ac_header> 4549 _ACEOF 4550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4552 ac_status=$? 4553 grep -v '^ *+' conftest.er1 >conftest.err 4554 rm -f conftest.er1 4555 cat conftest.err >&5 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); } >/dev/null; then 4558 if test -s conftest.err; then 4559 ac_cpp_err=$ac_cxx_preproc_warn_flag 4560 else 4561 ac_cpp_err= 4562 fi 4563 else 4564 ac_cpp_err=yes 4565 fi 4566 if test -z "$ac_cpp_err"; then 4567 ac_header_preproc=yes 4568 else 4569 echo "$as_me: failed program was:" >&5 4570 sed 's/^/| /' conftest.$ac_ext >&5 4571 4572 ac_header_preproc=no 4573 fi 4574 rm -f conftest.err conftest.$ac_ext 4575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4576 echo "${ECHO_T}$ac_header_preproc" >&6 4577 4578 # So? What about this header? 4579 case $ac_header_compiler:$ac_header_preproc in 4580 yes:no ) 4581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4585 ( 4586 cat <<\_ASBOX 4587 ## ------------------------------------ ## 4588 ## Report this to bug-autoconf@gnu.org. ## 4589 ## ------------------------------------ ## 4590 _ASBOX 4591 ) | 4592 sed "s/^/$as_me: WARNING: /" >&2 4593 ;; 4594 no:yes ) 4595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4601 ( 4602 cat <<\_ASBOX 4603 ## ------------------------------------ ## 4604 ## Report this to bug-autoconf@gnu.org. ## 4605 ## ------------------------------------ ## 4606 _ASBOX 4607 ) | 4608 sed "s/^/$as_me: WARNING: /" >&2 4609 ;; 4610 esac 4611 echo "$as_me:$LINENO: checking for $ac_header" >&5 4612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4613 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4614 echo $ECHO_N "(cached) $ECHO_C" >&6 4615 else 4616 eval "$as_ac_Header=$ac_header_preproc" 4617 fi 4618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4620 4621 fi 4622 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4623 cat >>confdefs.h <<_ACEOF 4624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4625 _ACEOF 4626 4627 else 4628 { echo "$as_me:$LINENO: WARNING: C++ header files not found" >&5 4629 echo "$as_me: WARNING: C++ header files not found" >&2;} 4630 fi 4631 4632 done 4633 4634 4635 for ac_header in ctype.h 1927 4636 do 1928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1930 echo "configure:1931: checking for $ac_hdr" >&5 1931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1932 echo $ac_n "(cached) $ac_c" 1>&6 1933 else 1934 cat > conftest.$ac_ext <<EOF 1935 #line 1936 "configure" 1936 #include "confdefs.h" 1937 #include <$ac_hdr> 1938 EOF 1939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1940 { (eval echo configure:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1942 if test -z "$ac_err"; then 1943 rm -rf conftest* 1944 eval "ac_cv_header_$ac_safe=yes" 1945 else 1946 echo "$ac_err" >&5 1947 echo "configure: failed program was:" >&5 1948 cat conftest.$ac_ext >&5 1949 rm -rf conftest* 1950 eval "ac_cv_header_$ac_safe=no" 1951 fi 1952 rm -f conftest* 1953 fi 1954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1955 echo "$ac_t""yes" 1>&6 1956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1957 cat >> confdefs.h <<EOF 1958 #define $ac_tr_hdr 1 1959 EOF 1960 1961 else 1962 echo "$ac_t""no" 1>&6 1963 { echo "configure: error: standard C header files not found" 1>&2; exit 1; } 1964 fi 4637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4639 echo "$as_me:$LINENO: checking for $ac_header" >&5 4640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4641 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4642 echo $ECHO_N "(cached) $ECHO_C" >&6 4643 fi 4644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4646 else 4647 # Is the header compilable? 4648 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4650 cat >conftest.$ac_ext <<_ACEOF 4651 #line $LINENO "configure" 4652 /* confdefs.h. */ 4653 _ACEOF 4654 cat confdefs.h >>conftest.$ac_ext 4655 cat >>conftest.$ac_ext <<_ACEOF 4656 /* end confdefs.h. */ 4657 $ac_includes_default 4658 #include <$ac_header> 4659 _ACEOF 4660 rm -f conftest.$ac_objext 4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4662 (eval $ac_compile) 2>&5 4663 ac_status=$? 4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4665 (exit $ac_status); } && 4666 { ac_try='test -s conftest.$ac_objext' 4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4668 (eval $ac_try) 2>&5 4669 ac_status=$? 4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4671 (exit $ac_status); }; }; then 4672 ac_header_compiler=yes 4673 else 4674 echo "$as_me: failed program was:" >&5 4675 sed 's/^/| /' conftest.$ac_ext >&5 4676 4677 ac_header_compiler=no 4678 fi 4679 rm -f conftest.$ac_objext conftest.$ac_ext 4680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4681 echo "${ECHO_T}$ac_header_compiler" >&6 4682 4683 # Is the header present? 4684 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4686 cat >conftest.$ac_ext <<_ACEOF 4687 #line $LINENO "configure" 4688 /* confdefs.h. */ 4689 _ACEOF 4690 cat confdefs.h >>conftest.$ac_ext 4691 cat >>conftest.$ac_ext <<_ACEOF 4692 /* end confdefs.h. */ 4693 #include <$ac_header> 4694 _ACEOF 4695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4697 ac_status=$? 4698 grep -v '^ *+' conftest.er1 >conftest.err 4699 rm -f conftest.er1 4700 cat conftest.err >&5 4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4702 (exit $ac_status); } >/dev/null; then 4703 if test -s conftest.err; then 4704 ac_cpp_err=$ac_cxx_preproc_warn_flag 4705 else 4706 ac_cpp_err= 4707 fi 4708 else 4709 ac_cpp_err=yes 4710 fi 4711 if test -z "$ac_cpp_err"; then 4712 ac_header_preproc=yes 4713 else 4714 echo "$as_me: failed program was:" >&5 4715 sed 's/^/| /' conftest.$ac_ext >&5 4716 4717 ac_header_preproc=no 4718 fi 4719 rm -f conftest.err conftest.$ac_ext 4720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4721 echo "${ECHO_T}$ac_header_preproc" >&6 4722 4723 # So? What about this header? 4724 case $ac_header_compiler:$ac_header_preproc in 4725 yes:no ) 4726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4730 ( 4731 cat <<\_ASBOX 4732 ## ------------------------------------ ## 4733 ## Report this to bug-autoconf@gnu.org. ## 4734 ## ------------------------------------ ## 4735 _ASBOX 4736 ) | 4737 sed "s/^/$as_me: WARNING: /" >&2 4738 ;; 4739 no:yes ) 4740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4746 ( 4747 cat <<\_ASBOX 4748 ## ------------------------------------ ## 4749 ## Report this to bug-autoconf@gnu.org. ## 4750 ## ------------------------------------ ## 4751 _ASBOX 4752 ) | 4753 sed "s/^/$as_me: WARNING: /" >&2 4754 ;; 4755 esac 4756 echo "$as_me:$LINENO: checking for $ac_header" >&5 4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4759 echo $ECHO_N "(cached) $ECHO_C" >&6 4760 else 4761 eval "$as_ac_Header=$ac_header_preproc" 4762 fi 4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4765 4766 fi 4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4768 cat >>confdefs.h <<_ACEOF 4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4770 _ACEOF 4771 4772 else 4773 { { echo "$as_me:$LINENO: error: standard C header files not found" >&5 4774 echo "$as_me: error: standard C header files not found" >&2;} 4775 { (exit 1); exit 1; }; } 4776 fi 4777 1965 4778 done 1966 4779 … … 1968 4781 # since the FTE will compile only with stream IO enabled we will not 1969 4782 # check for the necessary header files if stream IO is disabled 1970 for ac_hdr in stdarg.h signal.h errno.h unistd.h 4783 4784 4785 4786 4787 for ac_header in stdarg.h signal.h errno.h unistd.h 1971 4788 do 1972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1974 echo "configure:1975: checking for $ac_hdr" >&5 1975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1976 echo $ac_n "(cached) $ac_c" 1>&6 1977 else 1978 cat > conftest.$ac_ext <<EOF 1979 #line 1980 "configure" 1980 #include "confdefs.h" 1981 #include <$ac_hdr> 1982 EOF 1983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1984 { (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1986 if test -z "$ac_err"; then 1987 rm -rf conftest* 1988 eval "ac_cv_header_$ac_safe=yes" 1989 else 1990 echo "$ac_err" >&5 1991 echo "configure: failed program was:" >&5 1992 cat conftest.$ac_ext >&5 1993 rm -rf conftest* 1994 eval "ac_cv_header_$ac_safe=no" 1995 fi 1996 rm -f conftest* 1997 fi 1998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1999 echo "$ac_t""yes" 1>&6 2000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2001 cat >> confdefs.h <<EOF 2002 #define $ac_tr_hdr 1 2003 EOF 2004 2005 else 2006 echo "$ac_t""no" 1>&6 2007 echo "configure: warning: C/C++ header files not found. 4789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4790 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4791 echo "$as_me:$LINENO: checking for $ac_header" >&5 4792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4793 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4794 echo $ECHO_N "(cached) $ECHO_C" >&6 4795 fi 4796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4798 else 4799 # Is the header compilable? 4800 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4802 cat >conftest.$ac_ext <<_ACEOF 4803 #line $LINENO "configure" 4804 /* confdefs.h. */ 4805 _ACEOF 4806 cat confdefs.h >>conftest.$ac_ext 4807 cat >>conftest.$ac_ext <<_ACEOF 4808 /* end confdefs.h. */ 4809 $ac_includes_default 4810 #include <$ac_header> 4811 _ACEOF 4812 rm -f conftest.$ac_objext 4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4814 (eval $ac_compile) 2>&5 4815 ac_status=$? 4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4817 (exit $ac_status); } && 4818 { ac_try='test -s conftest.$ac_objext' 4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4820 (eval $ac_try) 2>&5 4821 ac_status=$? 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); }; }; then 4824 ac_header_compiler=yes 4825 else 4826 echo "$as_me: failed program was:" >&5 4827 sed 's/^/| /' conftest.$ac_ext >&5 4828 4829 ac_header_compiler=no 4830 fi 4831 rm -f conftest.$ac_objext conftest.$ac_ext 4832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4833 echo "${ECHO_T}$ac_header_compiler" >&6 4834 4835 # Is the header present? 4836 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4838 cat >conftest.$ac_ext <<_ACEOF 4839 #line $LINENO "configure" 4840 /* confdefs.h. */ 4841 _ACEOF 4842 cat confdefs.h >>conftest.$ac_ext 4843 cat >>conftest.$ac_ext <<_ACEOF 4844 /* end confdefs.h. */ 4845 #include <$ac_header> 4846 _ACEOF 4847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4849 ac_status=$? 4850 grep -v '^ *+' conftest.er1 >conftest.err 4851 rm -f conftest.er1 4852 cat conftest.err >&5 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); } >/dev/null; then 4855 if test -s conftest.err; then 4856 ac_cpp_err=$ac_cxx_preproc_warn_flag 4857 else 4858 ac_cpp_err= 4859 fi 4860 else 4861 ac_cpp_err=yes 4862 fi 4863 if test -z "$ac_cpp_err"; then 4864 ac_header_preproc=yes 4865 else 4866 echo "$as_me: failed program was:" >&5 4867 sed 's/^/| /' conftest.$ac_ext >&5 4868 4869 ac_header_preproc=no 4870 fi 4871 rm -f conftest.err conftest.$ac_ext 4872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4873 echo "${ECHO_T}$ac_header_preproc" >&6 4874 4875 # So? What about this header? 4876 case $ac_header_compiler:$ac_header_preproc in 4877 yes:no ) 4878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4882 ( 4883 cat <<\_ASBOX 4884 ## ------------------------------------ ## 4885 ## Report this to bug-autoconf@gnu.org. ## 4886 ## ------------------------------------ ## 4887 _ASBOX 4888 ) | 4889 sed "s/^/$as_me: WARNING: /" >&2 4890 ;; 4891 no:yes ) 4892 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4894 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4895 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4898 ( 4899 cat <<\_ASBOX 4900 ## ------------------------------------ ## 4901 ## Report this to bug-autoconf@gnu.org. ## 4902 ## ------------------------------------ ## 4903 _ASBOX 4904 ) | 4905 sed "s/^/$as_me: WARNING: /" >&2 4906 ;; 4907 esac 4908 echo "$as_me:$LINENO: checking for $ac_header" >&5 4909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4910 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4911 echo $ECHO_N "(cached) $ECHO_C" >&6 4912 else 4913 eval "$as_ac_Header=$ac_header_preproc" 4914 fi 4915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4917 4918 fi 4919 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4920 cat >>confdefs.h <<_ACEOF 4921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4922 _ACEOF 4923 4924 else 4925 { echo "$as_me:$LINENO: WARNING: C/C++ header files not found. 2008 4926 You will not be able to build the Factory Test Environment 2009 (though Factory itself should compile)" 1>&2 2010 fi 4927 (though Factory itself should compile)" >&5 4928 echo "$as_me: WARNING: C/C++ header files not found. 4929 You will not be able to build the Factory Test Environment 4930 (though Factory itself should compile)" >&2;} 4931 fi 4932 2011 4933 done 2012 4934 … … 2014 4936 2015 4937 if test "x$enable_timing" != xno; then 2016 for ac_hdr in sys/param.h sys/times.h 4938 4939 4940 for ac_header in sys/param.h sys/times.h 2017 4941 do 2018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2020 echo "configure:2021: checking for $ac_hdr" >&5 2021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2022 echo $ac_n "(cached) $ac_c" 1>&6 2023 else 2024 cat > conftest.$ac_ext <<EOF 2025 #line 2026 "configure" 2026 #include "confdefs.h" 2027 #include <$ac_hdr> 2028 EOF 2029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2030 { (eval echo configure:2031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2032 if test -z "$ac_err"; then 2033 rm -rf conftest* 2034 eval "ac_cv_header_$ac_safe=yes" 2035 else 2036 echo "$ac_err" >&5 2037 echo "configure: failed program was:" >&5 2038 cat conftest.$ac_ext >&5 2039 rm -rf conftest* 2040 eval "ac_cv_header_$ac_safe=no" 2041 fi 2042 rm -f conftest* 2043 fi 2044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2045 echo "$ac_t""yes" 1>&6 2046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2047 cat >> confdefs.h <<EOF 2048 #define $ac_tr_hdr 1 2049 EOF 2050 2051 else 2052 echo "$ac_t""no" 1>&6 2053 { echo "configure: error: \`sys/times.h' or \`sys/param.h' not found. Try 2054 \`configure --disable-timing'" 1>&2; exit 1; } 2055 fi 2056 done 2057 2058 fi 2059 2060 for ac_hdr in omalloc.h 4942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4943 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4944 echo "$as_me:$LINENO: checking for $ac_header" >&5 4945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4946 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4947 echo $ECHO_N "(cached) $ECHO_C" >&6 4948 fi 4949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4951 else 4952 # Is the header compilable? 4953 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4955 cat >conftest.$ac_ext <<_ACEOF 4956 #line $LINENO "configure" 4957 /* confdefs.h. */ 4958 _ACEOF 4959 cat confdefs.h >>conftest.$ac_ext 4960 cat >>conftest.$ac_ext <<_ACEOF 4961 /* end confdefs.h. */ 4962 $ac_includes_default 4963 #include <$ac_header> 4964 _ACEOF 4965 rm -f conftest.$ac_objext 4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4967 (eval $ac_compile) 2>&5 4968 ac_status=$? 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4970 (exit $ac_status); } && 4971 { ac_try='test -s conftest.$ac_objext' 4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4973 (eval $ac_try) 2>&5 4974 ac_status=$? 4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4976 (exit $ac_status); }; }; then 4977 ac_header_compiler=yes 4978 else 4979 echo "$as_me: failed program was:" >&5 4980 sed 's/^/| /' conftest.$ac_ext >&5 4981 4982 ac_header_compiler=no 4983 fi 4984 rm -f conftest.$ac_objext conftest.$ac_ext 4985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4986 echo "${ECHO_T}$ac_header_compiler" >&6 4987 4988 # Is the header present? 4989 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4991 cat >conftest.$ac_ext <<_ACEOF 4992 #line $LINENO "configure" 4993 /* confdefs.h. */ 4994 _ACEOF 4995 cat confdefs.h >>conftest.$ac_ext 4996 cat >>conftest.$ac_ext <<_ACEOF 4997 /* end confdefs.h. */ 4998 #include <$ac_header> 4999 _ACEOF 5000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5002 ac_status=$? 5003 grep -v '^ *+' conftest.er1 >conftest.err 5004 rm -f conftest.er1 5005 cat conftest.err >&5 5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5007 (exit $ac_status); } >/dev/null; then 5008 if test -s conftest.err; then 5009 ac_cpp_err=$ac_cxx_preproc_warn_flag 5010 else 5011 ac_cpp_err= 5012 fi 5013 else 5014 ac_cpp_err=yes 5015 fi 5016 if test -z "$ac_cpp_err"; then 5017 ac_header_preproc=yes 5018 else 5019 echo "$as_me: failed program was:" >&5 5020 sed 's/^/| /' conftest.$ac_ext >&5 5021 5022 ac_header_preproc=no 5023 fi 5024 rm -f conftest.err conftest.$ac_ext 5025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5026 echo "${ECHO_T}$ac_header_preproc" >&6 5027 5028 # So? What about this header? 5029 case $ac_header_compiler:$ac_header_preproc in 5030 yes:no ) 5031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5035 ( 5036 cat <<\_ASBOX 5037 ## ------------------------------------ ## 5038 ## Report this to bug-autoconf@gnu.org. ## 5039 ## ------------------------------------ ## 5040 _ASBOX 5041 ) | 5042 sed "s/^/$as_me: WARNING: /" >&2 5043 ;; 5044 no:yes ) 5045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5051 ( 5052 cat <<\_ASBOX 5053 ## ------------------------------------ ## 5054 ## Report this to bug-autoconf@gnu.org. ## 5055 ## ------------------------------------ ## 5056 _ASBOX 5057 ) | 5058 sed "s/^/$as_me: WARNING: /" >&2 5059 ;; 5060 esac 5061 echo "$as_me:$LINENO: checking for $ac_header" >&5 5062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5063 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5064 echo $ECHO_N "(cached) $ECHO_C" >&6 5065 else 5066 eval "$as_ac_Header=$ac_header_preproc" 5067 fi 5068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5070 5071 fi 5072 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5073 cat >>confdefs.h <<_ACEOF 5074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5075 _ACEOF 5076 5077 else 5078 { { echo "$as_me:$LINENO: error: \`sys/times.h' or \`sys/param.h' not found. Try 5079 \`configure --disable-timing'" >&5 5080 echo "$as_me: error: \`sys/times.h' or \`sys/param.h' not found. Try 5081 \`configure --disable-timing'" >&2;} 5082 { (exit 1); exit 1; }; } 5083 fi 5084 5085 done 5086 5087 fi 5088 5089 5090 for ac_header in omalloc.h 2061 5091 do 2062 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2063 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2064 echo "configure:2065: checking for $ac_hdr" >&5 2065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2066 echo $ac_n "(cached) $ac_c" 1>&6 2067 else 2068 cat > conftest.$ac_ext <<EOF 2069 #line 2070 "configure" 2070 #include "confdefs.h" 2071 #include <$ac_hdr> 2072 EOF 2073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2074 { (eval echo configure:2075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2076 if test -z "$ac_err"; then 2077 rm -rf conftest* 2078 eval "ac_cv_header_$ac_safe=yes" 2079 else 2080 echo "$ac_err" >&5 2081 echo "configure: failed program was:" >&5 2082 cat conftest.$ac_ext >&5 2083 rm -rf conftest* 2084 eval "ac_cv_header_$ac_safe=no" 2085 fi 2086 rm -f conftest* 2087 fi 2088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2089 echo "$ac_t""yes" 1>&6 2090 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2091 cat >> confdefs.h <<EOF 2092 #define $ac_tr_hdr 1 2093 EOF 2094 2095 else 2096 echo "$ac_t""no" 1>&6 2097 fi 5092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5093 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5094 echo "$as_me:$LINENO: checking for $ac_header" >&5 5095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5096 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5097 echo $ECHO_N "(cached) $ECHO_C" >&6 5098 fi 5099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5101 else 5102 # Is the header compilable? 5103 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5105 cat >conftest.$ac_ext <<_ACEOF 5106 #line $LINENO "configure" 5107 /* confdefs.h. */ 5108 _ACEOF 5109 cat confdefs.h >>conftest.$ac_ext 5110 cat >>conftest.$ac_ext <<_ACEOF 5111 /* end confdefs.h. */ 5112 $ac_includes_default 5113 #include <$ac_header> 5114 _ACEOF 5115 rm -f conftest.$ac_objext 5116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5117 (eval $ac_compile) 2>&5 5118 ac_status=$? 5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); } && 5121 { ac_try='test -s conftest.$ac_objext' 5122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5123 (eval $ac_try) 2>&5 5124 ac_status=$? 5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5126 (exit $ac_status); }; }; then 5127 ac_header_compiler=yes 5128 else 5129 echo "$as_me: failed program was:" >&5 5130 sed 's/^/| /' conftest.$ac_ext >&5 5131 5132 ac_header_compiler=no 5133 fi 5134 rm -f conftest.$ac_objext conftest.$ac_ext 5135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5136 echo "${ECHO_T}$ac_header_compiler" >&6 5137 5138 # Is the header present? 5139 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5141 cat >conftest.$ac_ext <<_ACEOF 5142 #line $LINENO "configure" 5143 /* confdefs.h. */ 5144 _ACEOF 5145 cat confdefs.h >>conftest.$ac_ext 5146 cat >>conftest.$ac_ext <<_ACEOF 5147 /* end confdefs.h. */ 5148 #include <$ac_header> 5149 _ACEOF 5150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5152 ac_status=$? 5153 grep -v '^ *+' conftest.er1 >conftest.err 5154 rm -f conftest.er1 5155 cat conftest.err >&5 5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5157 (exit $ac_status); } >/dev/null; then 5158 if test -s conftest.err; then 5159 ac_cpp_err=$ac_cxx_preproc_warn_flag 5160 else 5161 ac_cpp_err= 5162 fi 5163 else 5164 ac_cpp_err=yes 5165 fi 5166 if test -z "$ac_cpp_err"; then 5167 ac_header_preproc=yes 5168 else 5169 echo "$as_me: failed program was:" >&5 5170 sed 's/^/| /' conftest.$ac_ext >&5 5171 5172 ac_header_preproc=no 5173 fi 5174 rm -f conftest.err conftest.$ac_ext 5175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5176 echo "${ECHO_T}$ac_header_preproc" >&6 5177 5178 # So? What about this header? 5179 case $ac_header_compiler:$ac_header_preproc in 5180 yes:no ) 5181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5185 ( 5186 cat <<\_ASBOX 5187 ## ------------------------------------ ## 5188 ## Report this to bug-autoconf@gnu.org. ## 5189 ## ------------------------------------ ## 5190 _ASBOX 5191 ) | 5192 sed "s/^/$as_me: WARNING: /" >&2 5193 ;; 5194 no:yes ) 5195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5201 ( 5202 cat <<\_ASBOX 5203 ## ------------------------------------ ## 5204 ## Report this to bug-autoconf@gnu.org. ## 5205 ## ------------------------------------ ## 5206 _ASBOX 5207 ) | 5208 sed "s/^/$as_me: WARNING: /" >&2 5209 ;; 5210 esac 5211 echo "$as_me:$LINENO: checking for $ac_header" >&5 5212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5213 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5214 echo $ECHO_N "(cached) $ECHO_C" >&6 5215 else 5216 eval "$as_ac_Header=$ac_header_preproc" 5217 fi 5218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5220 5221 fi 5222 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5223 cat >>confdefs.h <<_ACEOF 5224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5225 _ACEOF 5226 5227 fi 5228 2098 5229 done 2099 5230 … … 2108 5239 # nextstep, checking with C++ may fail. 2109 5240 ac_ext=c 2110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.2111 5241 ac_cpp='$CPP $CPPFLAGS' 2112 ac_compile='$ {CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'2113 ac_link='$ {CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2114 cross_compiling=$ac_cv_prog_cc_cross 5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2115 5245 2116 5246 … … 2128 5258 2129 5259 # arithmetic shift 2130 echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&62131 echo "configure:2132: checking whether your compiler does arithmetic shifts" >&52132 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then2133 echo $ ac_n "(cached) $ac_c" 1>&65260 echo "$as_me:$LINENO: checking whether your compiler does arithmetic shifts" >&5 5261 echo $ECHO_N "checking whether your compiler does arithmetic shifts... $ECHO_C" >&6 5262 if test "${ac_cv_shift+set}" = set; then 5263 echo $ECHO_N "(cached) $ECHO_C" >&6 2134 5264 else 2135 5265 if test "$cross_compiling" = yes; then 2136 5266 ac_cv_shift=yes 2137 5267 else 2138 cat > conftest.$ac_ext <<EOF 2139 #line 2140 "configure" 2140 #include "confdefs.h" 2141 int main() { if (-2 >> 1 == -1) return(0); else return(1); } 2142 EOF 2143 if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2144 then 5268 cat >conftest.$ac_ext <<_ACEOF 5269 #line $LINENO "configure" 5270 /* confdefs.h. */ 5271 _ACEOF 5272 cat confdefs.h >>conftest.$ac_ext 5273 cat >>conftest.$ac_ext <<_ACEOF 5274 /* end confdefs.h. */ 5275 int main() { if (-2 >> 1 == -1) return(0); else return(1); } 5276 _ACEOF 5277 rm -f conftest$ac_exeext 5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5279 (eval $ac_link) 2>&5 5280 ac_status=$? 5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5284 (eval $ac_try) 2>&5 5285 ac_status=$? 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); }; }; then 2145 5288 ac_cv_shift=yes 2146 5289 else 2147 echo "configure: failed program was:" >&5 2148 cat conftest.$ac_ext >&5 2149 rm -fr conftest* 2150 ac_cv_shift=no 2151 fi 2152 rm -fr conftest* 2153 fi 2154 2155 fi 2156 2157 if test "x$ac_cv_shift" = xyes; then 2158 echo "$ac_t""yes" 1>&6 2159 else 2160 echo "$ac_t""no" 1>&6 5290 echo "$as_me: program exited with status $ac_status" >&5 5291 echo "$as_me: failed program was:" >&5 5292 sed 's/^/| /' conftest.$ac_ext >&5 5293 5294 ( exit $ac_status ) 5295 ac_cv_shift=no 5296 fi 5297 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5298 fi 5299 fi 5300 5301 if test "x$ac_cv_shift" = xyes; then 5302 echo "$as_me:$LINENO: result: yes" >&5 5303 echo "${ECHO_T}yes" >&6 5304 else 5305 echo "$as_me:$LINENO: result: no" >&5 5306 echo "${ECHO_T}no" >&6 2161 5307 fi 2162 5308 … … 2214 5360 2215 5361 2216 ac_ext=C 2217 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 5362 5363 ac_ext=cc 2218 5364 ac_cpp='$CXXCPP $CPPFLAGS' 2219 ac_compile='$ {CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'2220 ac_link='$ {CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2221 cross_compiling=$ac_cv_prog_cxx_cross 5365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2222 5368 2223 5369 # check whether CXX accepts -fno-rtti 2224 echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&62225 echo "configure:2226: checking whether gcc accepts -fno-rtti" >&55370 echo "$as_me:$LINENO: checking whether gcc accepts -fno-rtti" >&5 5371 echo $ECHO_N "checking whether gcc accepts -fno-rtti... $ECHO_C" >&6 2226 5372 tmp_flags=${CXXFLAGS} 2227 5373 CXXFLAGS="${CXXFLAGS} -fno-rtti" 2228 if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then 2229 echo $ac_n "(cached) $ac_c" 1>&6 2230 else 2231 cat > conftest.$ac_ext <<EOF 2232 #line 2233 "configure" 2233 #include "confdefs.h" 2234 2235 int main() { 2236 2237 ; return 0; } 2238 EOF 2239 if { (eval echo configure:2240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2240 rm -rf conftest* 5374 if test "${ac_cv_cxx_have_rtti+set}" = set; then 5375 echo $ECHO_N "(cached) $ECHO_C" >&6 5376 else 5377 cat >conftest.$ac_ext <<_ACEOF 5378 #line $LINENO "configure" 5379 /* confdefs.h. */ 5380 _ACEOF 5381 cat confdefs.h >>conftest.$ac_ext 5382 cat >>conftest.$ac_ext <<_ACEOF 5383 /* end confdefs.h. */ 5384 5385 int 5386 main () 5387 { 5388 5389 ; 5390 return 0; 5391 } 5392 _ACEOF 5393 rm -f conftest.$ac_objext 5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5395 (eval $ac_compile) 2>&5 5396 ac_status=$? 5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5398 (exit $ac_status); } && 5399 { ac_try='test -s conftest.$ac_objext' 5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5401 (eval $ac_try) 2>&5 5402 ac_status=$? 5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5404 (exit $ac_status); }; }; then 2241 5405 ac_cv_cxx_have_rtti=yes 2242 5406 else 2243 echo "configure: failed program was:" >&5 2244 cat conftest.$ac_ext >&5 2245 rm -rf conftest* 2246 ac_cv_cxx_have_rtti=no 2247 fi 2248 rm -f conftest* 2249 2250 fi 2251 2252 echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6 5407 echo "$as_me: failed program was:" >&5 5408 sed 's/^/| /' conftest.$ac_ext >&5 5409 5410 ac_cv_cxx_have_rtti=no 5411 fi 5412 rm -f conftest.$ac_objext conftest.$ac_ext 5413 5414 fi 5415 5416 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_rtti}" >&5 5417 echo "${ECHO_T}${ac_cv_cxx_have_rtti}" >&6 2253 5418 CXXFLAGS=$tmp_flags 2254 5419 if test "${ac_cv_cxx_have_rtti}" = yes; then … … 2256 5421 fi 2257 5422 2258 echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&62259 echo "configure:2260: checking whether gcc accepts -fno-exceptions" >&55423 echo "$as_me:$LINENO: checking whether gcc accepts -fno-exceptions" >&5 5424 echo $ECHO_N "checking whether gcc accepts -fno-exceptions... $ECHO_C" >&6 2260 5425 tmp_flags=${CXXFLAGS} 2261 5426 CXXFLAGS="${CXXFLAGS} -fno-exceptions" 2262 if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then 2263 echo $ac_n "(cached) $ac_c" 1>&6 2264 else 2265 cat > conftest.$ac_ext <<EOF 2266 #line 2267 "configure" 2267 #include "confdefs.h" 2268 2269 int main() { 2270 2271 ; return 0; } 2272 EOF 2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2274 rm -rf conftest* 5427 if test "${ac_cv_cxx_have_exceptions+set}" = set; then 5428 echo $ECHO_N "(cached) $ECHO_C" >&6 5429 else 5430 cat >conftest.$ac_ext <<_ACEOF 5431 #line $LINENO "configure" 5432 /* confdefs.h. */ 5433 _ACEOF 5434 cat confdefs.h >>conftest.$ac_ext 5435 cat >>conftest.$ac_ext <<_ACEOF 5436 /* end confdefs.h. */ 5437 5438 int 5439 main () 5440 { 5441 5442 ; 5443 return 0; 5444 } 5445 _ACEOF 5446 rm -f conftest.$ac_objext conftest$ac_exeext 5447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5448 (eval $ac_link) 2>&5 5449 ac_status=$? 5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5451 (exit $ac_status); } && 5452 { ac_try='test -s conftest$ac_exeext' 5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5454 (eval $ac_try) 2>&5 5455 ac_status=$? 5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5457 (exit $ac_status); }; }; then 2275 5458 ac_cv_cxx_have_exceptions=yes 2276 5459 else 2277 echo "configure: failed program was:" >&5 2278 cat conftest.$ac_ext >&5 2279 rm -rf conftest* 2280 ac_cv_cxx_have_exceptions=no 2281 fi 2282 rm -f conftest* 2283 2284 fi 2285 2286 echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6 5460 echo "$as_me: failed program was:" >&5 5461 sed 's/^/| /' conftest.$ac_ext >&5 5462 5463 ac_cv_cxx_have_exceptions=no 5464 fi 5465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5466 5467 fi 5468 5469 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_exceptions}" >&5 5470 echo "${ECHO_T}${ac_cv_cxx_have_exceptions}" >&6 2287 5471 CXXFLAGS=$tmp_flags 2288 5472 if test "${ac_cv_cxx_have_exceptions}" = yes; then … … 2290 5474 fi 2291 5475 ac_ext=c 2292 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.2293 5476 ac_cpp='$CPP $CPPFLAGS' 2294 ac_compile='$ {CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'2295 ac_link='$ {CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'2296 cross_compiling=$ac_cv_prog_cc_cross 5477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5479 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2297 5480 2298 5481 … … 2307 5490 # Singular 2308 5491 if test "x$with_Singular" = xyes; then 2309 cat >> confdefs.h <<\EOF5492 cat >>confdefs.h <<\_ACEOF 2310 5493 #define SINGULAR 1 2311 EOF5494 _ACEOF 2312 5495 2313 5496 fi … … 2315 5498 # NTL 2316 5499 if test "x$with_NTL" = xyes; then 2317 cat >> confdefs.h <<\EOF5500 cat >>confdefs.h <<\_ACEOF 2318 5501 #define HAVE_NTL 1 2319 EOF5502 _ACEOF 2320 5503 2321 5504 fi 2322 5505 2323 5506 # arithmetic shift 2324 if test "x$ac_cv_shift" = xyes; then 2325 cat >> confdefs.h <<\EOF5507 if test "x$ac_cv_shift" = xyes; then 5508 cat >>confdefs.h <<\_ACEOF 2326 5509 #define HAS_ARITHMETIC_SHIFT 1 2327 EOF5510 _ACEOF 2328 5511 2329 5512 fi … … 2333 5516 if test "x$gmp_in_installation" = xyes; then 2334 5517 CPPFLAGS="-I\$(includedir) $CPPFLAGS" 2335 LDFLAGS="-L\$(libdir) -lgmp $LDFLAGS" 2336 fi 2337 2338 echo $ac_n "checking whether to use omalloc""... $ac_c" 1>&6 2339 echo "configure:2340: checking whether to use omalloc" >&5 5518 if test "x$with_Singular" = xyes; then 5519 LDFLAGS="-L\$(libdir) -lgmp $LDFLAGS" 5520 fi 5521 fi 5522 5523 echo "$as_me:$LINENO: checking whether to use omalloc" >&5 5524 echo $ECHO_N "checking whether to use omalloc... $ECHO_C" >&6 2340 5525 2341 5526 if test "$with_omalloc" = yes; then … … 2360 5545 fi 2361 5546 if test "$with_omalloc" = yes; then 2362 cat >> confdefs.h <<\EOF5547 cat >>confdefs.h <<\_ACEOF 2363 5548 #define HAVE_OMALLOC 1 2364 EOF 2365 2366 with_memman=no 2367 fi 2368 echo "$ac_t""$with_omalloc" 1>&6 5549 _ACEOF 5550 5551 with_memman=no 5552 fi 5553 echo "$as_me:$LINENO: result: $with_omalloc" >&5 5554 echo "${ECHO_T}$with_omalloc" >&6 2369 5555 if test "$warn_omalloc" = yes; then 2370 echo "configure: warning: did not find omalloc.h -- install before compiling" 1>&2 2371 fi 2372 2373 5556 { echo "$as_me:$LINENO: WARNING: did not find omalloc.h -- install before compiling" >&5 5557 echo "$as_me: WARNING: did not find omalloc.h -- install before compiling" >&2;} 5558 fi 5559 5560 2374 5561 # memory manager 2375 5562 if test "x$with_memman" != xno; then … … 2377 5564 installtargets="$installtargets installmem" 2378 5565 uninstalltargets="$uninstalltargets uninstallmem" 2379 cat >> confdefs.h <<\EOF5566 cat >>confdefs.h <<\_ACEOF 2380 5567 #define USE_MEMUTIL 1 2381 EOF5568 _ACEOF 2382 5569 2383 5570 … … 2385 5572 memmansrc="$memmansrc \$(oldmemmansrc)" 2386 5573 memmanincl='$(oldmemmanincl)' 2387 cat >> confdefs.h <<\EOF5574 cat >>confdefs.h <<\_ACEOF 2388 5575 #define USE_OLD_MEMMAN 1 2389 EOF5576 _ACEOF 2390 5577 2391 5578 else … … 2394 5581 2395 5582 if test "x$enable_memdebug" = xfull; then 2396 cat >> confdefs.h <<\EOF5583 cat >>confdefs.h <<\_ACEOF 2397 5584 #define MDEBUG 1 2398 EOF5585 _ACEOF 2399 5586 2400 5587 elif test "x$enable_memdebug" != xno; then 2401 cat >> confdefs.h <<\EOF5588 cat >>confdefs.h <<\_ACEOF 2402 5589 #define MDEBUG 0 2403 EOF5590 _ACEOF 2404 5591 2405 5592 fi … … 2409 5596 # "configurable inline methods" 2410 5597 if test "x$enable_cf_inline" != xno; then 2411 cat >> confdefs.h <<\EOF5598 cat >>confdefs.h <<\_ACEOF 2412 5599 #define CF_USE_INLINE 1 2413 EOF5600 _ACEOF 2414 5601 2415 5602 fi … … 2417 5604 # iostream 2418 5605 if test "x$enable_streamio" = xno; then 2419 cat >> confdefs.h <<\EOF5606 cat >>confdefs.h <<\_ACEOF 2420 5607 #define NOSTREAMIO 1 2421 EOF5608 _ACEOF 2422 5609 2423 5610 else … … 2428 5615 # assertions 2429 5616 if test "x$enable_assertions" = xno; then 2430 cat >> confdefs.h <<\EOF5617 cat >>confdefs.h <<\_ACEOF 2431 5618 #define NOASSERT 1 2432 EOF5619 _ACEOF 2433 5620 2434 5621 fi … … 2436 5623 # timing 2437 5624 if test "x$enable_timing" != xno; then 2438 cat >> confdefs.h <<\EOF5625 cat >>confdefs.h <<\_ACEOF 2439 5626 #define TIMING 1 2440 EOF5627 _ACEOF 2441 5628 2442 5629 fi … … 2444 5631 # debugoutput 2445 5632 if test "x$enable_debugoutput" != xno; then 2446 cat >> confdefs.h <<\EOF5633 cat >>confdefs.h <<\_ACEOF 2447 5634 #define DEBUGOUTPUT 1 2448 EOF5635 _ACEOF 2449 5636 2450 5637 fi … … 2473 5660 2474 5661 2475 cat >> confdefs.h <<EOF5662 cat >>confdefs.h <<_ACEOF 2476 5663 #define FACTORYVERSION "$factory_version" 2477 EOF2478 2479 cat >> confdefs.h <<EOF5664 _ACEOF 5665 5666 cat >>confdefs.h <<_ACEOF 2480 5667 #define FACTORYCONFIGURATION "$factory_configuration" 2481 EOF2482 2483 cat >> confdefs.h <<EOF5668 _ACEOF 5669 5670 cat >>confdefs.h <<_ACEOF 2484 5671 #define GFTABLEDIR "$explicit_gftabledir" 2485 EOF2486 2487 2488 trap '' 1 2 15 2489 cat > confcache <<\EOF5672 _ACEOF 5673 5674 5675 ac_config_files="$ac_config_files GNUmakefile ftest/GNUmakefile" 5676 cat >confcache <<\_ACEOF 2490 5677 # This file is a shell script that caches the results of configure 2491 5678 # tests run on this system so they can be shared between configure 2492 # scripts and configure runs. It is not useful on other systems. 2493 # If it contains results you don't want to keep, you may remove or edit it. 5679 # scripts and configure runs, see configure's option --config-cache. 5680 # It is not useful on other systems. If it contains results you don't 5681 # want to keep, you may remove or edit it. 2494 5682 # 2495 # By default, configure uses ./config.cache as the cache file, 2496 # creating it if it does not exist already. You can give configure 2497 # the --cache-file=FILE option to use a different cache file; that is 2498 # what configure does when it calls configure scripts in 2499 # subdirectories, so they share the cache. 2500 # Giving --cache-file=/dev/null disables caching, for debugging configure. 2501 # config.status only pays attention to the cache file if you give it the 2502 # --recheck option to rerun configure. 5683 # config.status only pays attention to the cache file if you give it 5684 # the --recheck option to rerun configure. 2503 5685 # 2504 EOF 5686 # `ac_cv_env_foo' variables (set or unset) will be overridden when 5687 # loading this file, other *unset* `ac_cv_foo' will be assigned the 5688 # following values. 5689 5690 _ACEOF 5691 2505 5692 # The following way of writing the cache mishandles newlines in values, 2506 5693 # but we know of no workaround that is simple, portable, and efficient. … … 2508 5695 # Ultrix sh set writes to stderr and can't be redirected directly, 2509 5696 # and sets the high bit in the cache file unless we assign to the vars. 2510 (set) 2>&1 | 2511 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2512 *ac_space=\ *) 2513 # `set' does not quote correctly, so add quotes (double-quote substitution 2514 # turns \\\\ into \\, and sed turns \\ into \). 2515 sed -n \ 2516 -e "s/'/'\\\\''/g" \ 2517 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2518 ;; 2519 *) 2520 # `set' quotes correctly as required by POSIX, so do not add quotes. 2521 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2522 ;; 2523 esac >> confcache 2524 if cmp -s $cache_file confcache; then 2525 : 2526 else 5697 { 5698 (set) 2>&1 | 5699 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5700 *ac_space=\ *) 5701 # `set' does not quote correctly, so add quotes (double-quote 5702 # substitution turns \\\\ into \\, and sed turns \\ into \). 5703 sed -n \ 5704 "s/'/'\\\\''/g; 5705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5706 ;; 5707 *) 5708 # `set' quotes correctly as required by POSIX, so do not add quotes. 5709 sed -n \ 5710 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5711 ;; 5712 esac; 5713 } | 5714 sed ' 5715 t clear 5716 : clear 5717 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5718 t end 5719 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5720 : end' >>confcache 5721 if diff $cache_file confcache >/dev/null 2>&1; then :; else 2527 5722 if test -w $cache_file; then 2528 echo "updating cache $cache_file"2529 cat confcache > 5723 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5724 cat confcache >$cache_file 2530 5725 else 2531 5726 echo "not updating unwritable cache $cache_file" … … 2533 5728 fi 2534 5729 rm -f confcache 2535 2536 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 152537 5730 2538 5731 test "x$prefix" = xNONE && prefix=$ac_default_prefix … … 2540 5733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2541 5734 2542 # Any assignment to VPATH causes Sun make to only execute 2543 # the first set of double-colon rules, so remove it if not needed. 2544 # If there is a colon in the path, we need to keep it. 5735 # VPATH may cause trouble with some makes, so we remove $(srcdir), 5736 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5737 # trailing colons and then remove the whole line if VPATH becomes empty 5738 # (actually we leave an empty line to preserve line numbers). 2545 5739 if test "x$srcdir" = x.; then 2546 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2547 fi 2548 2549 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 5740 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5741 s/:*\$(srcdir):*/:/; 5742 s/:*\${srcdir}:*/:/; 5743 s/:*@srcdir@:*/:/; 5744 s/^\([^=]*=[ ]*\):*/\1/; 5745 s/:*$//; 5746 s/^[^=]*=[ ]*$//; 5747 }' 5748 fi 2550 5749 2551 5750 DEFS=-DHAVE_CONFIG_H 2552 5751 2553 # Without the "./", some shells look in PATH for config.status. 5752 ac_libobjs= 5753 ac_ltlibobjs= 5754 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5755 # 1. Remove the extension, and $U if already installed. 5756 ac_i=`echo "$ac_i" | 5757 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 5758 # 2. Add them. 5759 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 5760 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5761 done 5762 LIBOBJS=$ac_libobjs 5763 5764 LTLIBOBJS=$ac_ltlibobjs 5765 5766 5767 2554 5768 : ${CONFIG_STATUS=./config.status} 2555 2556 echo creating $CONFIG_STATUS 2557 rm -f $CONFIG_STATUS 2558 cat > $CONFIG_STATUS <<EOF 2559 #! /bin/sh 2560 # Generated automatically by configure. 5769 ac_clean_files_save=$ac_clean_files 5770 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5772 echo "$as_me: creating $CONFIG_STATUS" >&6;} 5773 cat >$CONFIG_STATUS <<_ACEOF 5774 #! $SHELL 5775 # Generated by $as_me. 2561 5776 # Run this file to recreate the current configuration. 2562 # This directory was configured as follows, 2563 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5777 # Compiler output produced by configure, useful for debugging 5778 # configure, is in config.log if it exists. 5779 5780 debug=false 5781 ac_cs_recheck=false 5782 ac_cs_silent=false 5783 SHELL=\${CONFIG_SHELL-$SHELL} 5784 _ACEOF 5785 5786 cat >>$CONFIG_STATUS <<\_ACEOF 5787 ## --------------------- ## 5788 ## M4sh Initialization. ## 5789 ## --------------------- ## 5790 5791 # Be Bourne compatible 5792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5793 emulate sh 5794 NULLCMD=: 5795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5796 # is contrary to our usage. Disable this feature. 5797 alias -g '${1+"$@"}'='"$@"' 5798 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5799 set -o posix 5800 fi 5801 5802 # Support unset when possible. 5803 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5804 as_unset=unset 5805 else 5806 as_unset=false 5807 fi 5808 5809 5810 # Work around bugs in pre-3.0 UWIN ksh. 5811 $as_unset ENV MAIL MAILPATH 5812 PS1='$ ' 5813 PS2='> ' 5814 PS4='+ ' 5815 5816 # NLS nuisances. 5817 for as_var in \ 5818 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5819 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5820 LC_TELEPHONE LC_TIME 5821 do 5822 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 5823 eval $as_var=C; export $as_var 5824 else 5825 $as_unset $as_var 5826 fi 5827 done 5828 5829 # Required to use basename. 5830 if expr a : '\(a\)' >/dev/null 2>&1; then 5831 as_expr=expr 5832 else 5833 as_expr=false 5834 fi 5835 5836 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 5837 as_basename=basename 5838 else 5839 as_basename=false 5840 fi 5841 5842 5843 # Name of the executable. 5844 as_me=`$as_basename "$0" || 5845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5846 X"$0" : 'X\(//\)$' \| \ 5847 X"$0" : 'X\(/\)$' \| \ 5848 . : '\(.\)' 2>/dev/null || 5849 echo X/"$0" | 5850 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 5851 /^X\/\(\/\/\)$/{ s//\1/; q; } 5852 /^X\/\(\/\).*/{ s//\1/; q; } 5853 s/.*/./; q'` 5854 5855 5856 # PATH needs CR, and LINENO needs CR and PATH. 5857 # Avoid depending upon Character Ranges. 5858 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5861 as_cr_digits='0123456789' 5862 as_cr_alnum=$as_cr_Letters$as_cr_digits 5863 5864 # The user is always right. 5865 if test "${PATH_SEPARATOR+set}" != set; then 5866 echo "#! /bin/sh" >conf$$.sh 5867 echo "exit 0" >>conf$$.sh 5868 chmod +x conf$$.sh 5869 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5870 PATH_SEPARATOR=';' 5871 else 5872 PATH_SEPARATOR=: 5873 fi 5874 rm -f conf$$.sh 5875 fi 5876 5877 5878 as_lineno_1=$LINENO 5879 as_lineno_2=$LINENO 5880 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5881 test "x$as_lineno_1" != "x$as_lineno_2" && 5882 test "x$as_lineno_3" = "x$as_lineno_2" || { 5883 # Find who we are. Look in the path if we contain no path at all 5884 # relative or not. 5885 case $0 in 5886 *[\\/]* ) as_myself=$0 ;; 5887 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5888 for as_dir in $PATH 5889 do 5890 IFS=$as_save_IFS 5891 test -z "$as_dir" && as_dir=. 5892 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5893 done 5894 5895 ;; 5896 esac 5897 # We did not find ourselves, most probably we were run as `sh COMMAND' 5898 # in which case we are not to be found in the path. 5899 if test "x$as_myself" = x; then 5900 as_myself=$0 5901 fi 5902 if test ! -f "$as_myself"; then 5903 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 5904 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 5905 { (exit 1); exit 1; }; } 5906 fi 5907 case $CONFIG_SHELL in 5908 '') 5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5910 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 5911 do 5912 IFS=$as_save_IFS 5913 test -z "$as_dir" && as_dir=. 5914 for as_base in sh bash ksh sh5; do 5915 case $as_dir in 5916 /*) 5917 if ("$as_dir/$as_base" -c ' 5918 as_lineno_1=$LINENO 5919 as_lineno_2=$LINENO 5920 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5921 test "x$as_lineno_1" != "x$as_lineno_2" && 5922 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 5923 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 5924 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 5925 CONFIG_SHELL=$as_dir/$as_base 5926 export CONFIG_SHELL 5927 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 5928 fi;; 5929 esac 5930 done 5931 done 5932 ;; 5933 esac 5934 5935 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5936 # uniformly replaced by the line number. The first 'sed' inserts a 5937 # line-number line before each line; the second 'sed' does the real 5938 # work. The second script uses 'N' to pair each line-number line 5939 # with the numbered line, and appends trailing '-' during 5940 # substitution so that $LINENO is not a special case at line end. 5941 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5942 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 5943 sed '=' <$as_myself | 5944 sed ' 5945 N 5946 s,$,-, 5947 : loop 5948 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 5949 t loop 5950 s,-$,, 5951 s,^['$as_cr_digits']*\n,, 5952 ' >$as_me.lineno && 5953 chmod +x $as_me.lineno || 5954 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 5955 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 5956 { (exit 1); exit 1; }; } 5957 5958 # Don't try to exec as it changes $[0], causing all sort of problems 5959 # (the dirname of $[0] is not the place where we might find the 5960 # original and so on. Autoconf is especially sensible to this). 5961 . ./$as_me.lineno 5962 # Exit status is that of the last command. 5963 exit 5964 } 5965 5966 5967 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 5968 *c*,-n*) ECHO_N= ECHO_C=' 5969 ' ECHO_T=' ' ;; 5970 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 5971 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 5972 esac 5973 5974 if expr a : '\(a\)' >/dev/null 2>&1; then 5975 as_expr=expr 5976 else 5977 as_expr=false 5978 fi 5979 5980 rm -f conf$$ conf$$.exe conf$$.file 5981 echo >conf$$.file 5982 if ln -s conf$$.file conf$$ 2>/dev/null; then 5983 # We could just check for DJGPP; but this test a) works b) is more generic 5984 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5985 if test -f conf$$.exe; then 5986 # Don't use ln at all; we don't have any links 5987 as_ln_s='cp -p' 5988 else 5989 as_ln_s='ln -s' 5990 fi 5991 elif ln conf$$.file conf$$ 2>/dev/null; then 5992 as_ln_s=ln 5993 else 5994 as_ln_s='cp -p' 5995 fi 5996 rm -f conf$$ conf$$.exe conf$$.file 5997 5998 if mkdir -p . 2>/dev/null; then 5999 as_mkdir_p=: 6000 else 6001 as_mkdir_p=false 6002 fi 6003 6004 as_executable_p="test -f" 6005 6006 # Sed expression to map a string onto a valid CPP name. 6007 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 6008 6009 # Sed expression to map a string onto a valid variable name. 6010 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 6011 6012 6013 # IFS 6014 # We need space, tab and new line, in precisely that order. 6015 as_nl=' 6016 ' 6017 IFS=" $as_nl" 6018 6019 # CDPATH. 6020 $as_unset CDPATH 6021 6022 exec 6>&1 6023 6024 # Open the log real soon, to keep \$[0] and so on meaningful, and to 6025 # report actual input values of CONFIG_FILES etc. instead of their 6026 # values after options handling. Logging --version etc. is OK. 6027 exec 5>>config.log 6028 { 6029 echo 6030 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6031 ## Running $as_me. ## 6032 _ASBOX 6033 } >&5 6034 cat >&5 <<_CSEOF 6035 6036 This file was extended by $as_me, which was 6037 generated by GNU Autoconf 2.57. Invocation command line was 6038 6039 CONFIG_FILES = $CONFIG_FILES 6040 CONFIG_HEADERS = $CONFIG_HEADERS 6041 CONFIG_LINKS = $CONFIG_LINKS 6042 CONFIG_COMMANDS = $CONFIG_COMMANDS 6043 $ $0 $@ 6044 6045 _CSEOF 6046 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6047 echo >&5 6048 _ACEOF 6049 6050 # Files that config.status was made for. 6051 if test -n "$ac_config_files"; then 6052 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 6053 fi 6054 6055 if test -n "$ac_config_headers"; then 6056 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 6057 fi 6058 6059 if test -n "$ac_config_links"; then 6060 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 6061 fi 6062 6063 if test -n "$ac_config_commands"; then 6064 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 6065 fi 6066 6067 cat >>$CONFIG_STATUS <<\_ACEOF 6068 6069 ac_cs_usage="\ 6070 \`$as_me' instantiates files from templates according to the 6071 current configuration. 6072 6073 Usage: $0 [OPTIONS] [FILE]... 6074 6075 -h, --help print this help, then exit 6076 -V, --version print version number, then exit 6077 -q, --quiet do not print progress messages 6078 -d, --debug don't remove temporary files 6079 --recheck update $as_me by reconfiguring in the same conditions 6080 --file=FILE[:TEMPLATE] 6081 instantiate the configuration file FILE 6082 --header=FILE[:TEMPLATE] 6083 instantiate the configuration header FILE 6084 6085 Configuration files: 6086 $config_files 6087 6088 Configuration headers: 6089 $config_headers 6090 6091 Report bugs to <bug-autoconf@gnu.org>." 6092 _ACEOF 6093 6094 cat >>$CONFIG_STATUS <<_ACEOF 6095 ac_cs_version="\\ 6096 config.status 6097 configured by $0, generated by GNU Autoconf 2.57, 6098 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 6099 6100 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 6101 Free Software Foundation, Inc. 6102 This config.status script is free software; the Free Software Foundation 6103 gives unlimited permission to copy, distribute and modify it." 6104 srcdir=$srcdir 6105 INSTALL="$INSTALL" 6106 _ACEOF 6107 6108 cat >>$CONFIG_STATUS <<\_ACEOF 6109 # If no file are specified by the user, then we need to provide default 6110 # value. By we need to know if files were specified by the user. 6111 ac_need_defaults=: 6112 while test $# != 0 6113 do 6114 case $1 in 6115 --*=*) 6116 ac_option=`expr "x$1" : 'x\([^=]*\)='` 6117 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 6118 ac_shift=: 6119 ;; 6120 -*) 6121 ac_option=$1 6122 ac_optarg=$2 6123 ac_shift=shift 6124 ;; 6125 *) # This is not an option, so the user has probably given explicit 6126 # arguments. 6127 ac_option=$1 6128 ac_need_defaults=false;; 6129 esac 6130 6131 case $ac_option in 6132 # Handling of the options. 6133 _ACEOF 6134 cat >>$CONFIG_STATUS <<\_ACEOF 6135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6136 ac_cs_recheck=: ;; 6137 --version | --vers* | -V ) 6138 echo "$ac_cs_version"; exit 0 ;; 6139 --he | --h) 6140 # Conflict between --help and --header 6141 { { echo "$as_me:$LINENO: error: ambiguous option: $1 6142 Try \`$0 --help' for more information." >&5 6143 echo "$as_me: error: ambiguous option: $1 6144 Try \`$0 --help' for more information." >&2;} 6145 { (exit 1); exit 1; }; };; 6146 --help | --hel | -h ) 6147 echo "$ac_cs_usage"; exit 0 ;; 6148 --debug | --d* | -d ) 6149 debug=: ;; 6150 --file | --fil | --fi | --f ) 6151 $ac_shift 6152 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6153 ac_need_defaults=false;; 6154 --header | --heade | --head | --hea ) 6155 $ac_shift 6156 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6157 ac_need_defaults=false;; 6158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6159 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6160 ac_cs_silent=: ;; 6161 6162 # This is an error. 6163 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 6164 Try \`$0 --help' for more information." >&5 6165 echo "$as_me: error: unrecognized option: $1 6166 Try \`$0 --help' for more information." >&2;} 6167 { (exit 1); exit 1; }; } ;; 6168 6169 *) ac_config_targets="$ac_config_targets $1" ;; 6170 6171 esac 6172 shift 6173 done 6174 6175 ac_configure_extra_args= 6176 6177 if $ac_cs_silent; then 6178 exec 6>/dev/null 6179 ac_configure_extra_args="$ac_configure_extra_args --silent" 6180 fi 6181 6182 _ACEOF 6183 cat >>$CONFIG_STATUS <<_ACEOF 6184 if \$ac_cs_recheck; then 6185 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6186 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6187 fi 6188 6189 _ACEOF 6190 6191 6192 6193 6194 6195 cat >>$CONFIG_STATUS <<\_ACEOF 6196 for ac_config_target in $ac_config_targets 6197 do 6198 case "$ac_config_target" in 6199 # Handling of arguments. 6200 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; 6201 "ftest/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES ftest/GNUmakefile" ;; 6202 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6203 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6204 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6205 { (exit 1); exit 1; }; };; 6206 esac 6207 done 6208 6209 # If the user did not use the arguments to specify the items to instantiate, 6210 # then the envvar interface is used. Set only those that are not. 6211 # We use the long form for the default assignment because of an extremely 6212 # bizarre bug on SunOS 4.1.3. 6213 if $ac_need_defaults; then 6214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6216 fi 6217 6218 # Have a temporary directory for convenience. Make it in the build tree 6219 # simply because there is no reason to put it here, and in addition, 6220 # creating and moving files from /tmp can sometimes cause problems. 6221 # Create a temporary directory, and hook for its removal unless debugging. 6222 $debug || 6223 { 6224 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 6225 trap '{ (exit 1); exit 1; }' 1 2 13 15 6226 } 6227 6228 # Create a (secure) tmp directory for tmp files. 6229 6230 { 6231 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 6232 test -n "$tmp" && test -d "$tmp" 6233 } || 6234 { 6235 tmp=./confstat$$-$RANDOM 6236 (umask 077 && mkdir $tmp) 6237 } || 6238 { 6239 echo "$me: cannot create a temporary directory in ." >&2 6240 { (exit 1); exit 1; } 6241 } 6242 6243 _ACEOF 6244 6245 cat >>$CONFIG_STATUS <<_ACEOF 6246 2564 6247 # 2565 # $0 $ac_configure_args6248 # CONFIG_FILES section. 2566 6249 # 2567 # Compiler output produced by configure, useful for debugging 2568 # configure, is in ./config.log if it exists. 2569 2570 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2571 for ac_option 2572 do 2573 case "\$ac_option" in 2574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2575 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2576 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2577 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2578 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2579 exit 0 ;; 2580 -help | --help | --hel | --he | --h) 2581 echo "\$ac_cs_usage"; exit 0 ;; 2582 *) echo "\$ac_cs_usage"; exit 1 ;; 6250 6251 # No need to generate the scripts if there are no CONFIG_FILES. 6252 # This happens for instance when ./config.status config.h 6253 if test -n "\$CONFIG_FILES"; then 6254 # Protect against being on the right side of a sed subst in config.status. 6255 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 6256 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 6257 s,@SHELL@,$SHELL,;t t 6258 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 6259 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 6260 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 6261 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 6262 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 6263 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 6264 s,@exec_prefix@,$exec_prefix,;t t 6265 s,@prefix@,$prefix,;t t 6266 s,@program_transform_name@,$program_transform_name,;t t 6267 s,@bindir@,$bindir,;t t 6268 s,@sbindir@,$sbindir,;t t 6269 s,@libexecdir@,$libexecdir,;t t 6270 s,@datadir@,$datadir,;t t 6271 s,@sysconfdir@,$sysconfdir,;t t 6272 s,@sharedstatedir@,$sharedstatedir,;t t 6273 s,@localstatedir@,$localstatedir,;t t 6274 s,@libdir@,$libdir,;t t 6275 s,@includedir@,$includedir,;t t 6276 s,@oldincludedir@,$oldincludedir,;t t 6277 s,@infodir@,$infodir,;t t 6278 s,@mandir@,$mandir,;t t 6279 s,@build_alias@,$build_alias,;t t 6280 s,@host_alias@,$host_alias,;t t 6281 s,@target_alias@,$target_alias,;t t 6282 s,@DEFS@,$DEFS,;t t 6283 s,@ECHO_C@,$ECHO_C,;t t 6284 s,@ECHO_N@,$ECHO_N,;t t 6285 s,@ECHO_T@,$ECHO_T,;t t 6286 s,@LIBS@,$LIBS,;t t 6287 s,@CC@,$CC,;t t 6288 s,@CFLAGS@,$CFLAGS,;t t 6289 s,@LDFLAGS@,$LDFLAGS,;t t 6290 s,@CPPFLAGS@,$CPPFLAGS,;t t 6291 s,@ac_ct_CC@,$ac_ct_CC,;t t 6292 s,@EXEEXT@,$EXEEXT,;t t 6293 s,@OBJEXT@,$OBJEXT,;t t 6294 s,@CXX@,$CXX,;t t 6295 s,@CXXFLAGS@,$CXXFLAGS,;t t 6296 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 6297 s,@CPP@,$CPP,;t t 6298 s,@CXXCPP@,$CXXCPP,;t t 6299 s,@LN_S@,$LN_S,;t t 6300 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 6301 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 6302 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 6303 s,@RANLIB@,$RANLIB,;t t 6304 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 6305 s,@SET_MAKE@,$SET_MAKE,;t t 6306 s,@AR@,$AR,;t t 6307 s,@M4@,$M4,;t t 6308 s,@BISON@,$BISON,;t t 6309 s,@FACTORY_MKINSTALLDIRS@,$FACTORY_MKINSTALLDIRS,;t t 6310 s,@FACTORY_MAKEHEADER@,$FACTORY_MAKEHEADER,;t t 6311 s,@EGREP@,$EGREP,;t t 6312 s,@gftabledir@,$gftabledir,;t t 6313 s,@templatedir@,$templatedir,;t t 6314 s,@factory_version@,$factory_version,;t t 6315 s,@libfactory@,$libfactory,;t t 6316 s,@ARFLAGS@,$ARFLAGS,;t t 6317 s,@M4FLAGS@,$M4FLAGS,;t t 6318 s,@MAKEHEADERFLAGS@,$MAKEHEADERFLAGS,;t t 6319 s,@factorysrc@,$factorysrc,;t t 6320 s,@factoryincl@,$factoryincl,;t t 6321 s,@memmansrc@,$memmansrc,;t t 6322 s,@memmanincl@,$memmanincl,;t t 6323 s,@alltargets@,$alltargets,;t t 6324 s,@installtargets@,$installtargets,;t t 6325 s,@uninstalltargets@,$uninstalltargets,;t t 6326 s,@LIBOBJS@,$LIBOBJS,;t t 6327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 6328 CEOF 6329 6330 _ACEOF 6331 6332 cat >>$CONFIG_STATUS <<\_ACEOF 6333 # Split the substitutions into bite-sized pieces for seds with 6334 # small command number limits, like on Digital OSF/1 and HP-UX. 6335 ac_max_sed_lines=48 6336 ac_sed_frag=1 # Number of current file. 6337 ac_beg=1 # First line for current file. 6338 ac_end=$ac_max_sed_lines # Line after last line for current file. 6339 ac_more_lines=: 6340 ac_sed_cmds= 6341 while $ac_more_lines; do 6342 if test $ac_beg -gt 1; then 6343 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6344 else 6345 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6346 fi 6347 if test ! -s $tmp/subs.frag; then 6348 ac_more_lines=false 6349 else 6350 # The purpose of the label and of the branching condition is to 6351 # speed up the sed processing (if there are no `@' at all, there 6352 # is no need to browse any of the substitutions). 6353 # These are the two extra sed commands mentioned above. 6354 (echo ':t 6355 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 6356 if test -z "$ac_sed_cmds"; then 6357 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 6358 else 6359 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 6360 fi 6361 ac_sed_frag=`expr $ac_sed_frag + 1` 6362 ac_beg=$ac_end 6363 ac_end=`expr $ac_end + $ac_max_sed_lines` 6364 fi 6365 done 6366 if test -z "$ac_sed_cmds"; then 6367 ac_sed_cmds=cat 6368 fi 6369 fi # test -n "$CONFIG_FILES" 6370 6371 _ACEOF 6372 cat >>$CONFIG_STATUS <<\_ACEOF 6373 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 6374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6375 case $ac_file in 6376 - | *:- | *:-:* ) # input from stdin 6377 cat >$tmp/stdin 6378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6382 * ) ac_file_in=$ac_file.in ;; 2583 6383 esac 2584 done 2585 2586 ac_given_srcdir=$srcdir 2587 ac_given_INSTALL="$INSTALL" 2588 2589 trap 'rm -fr `echo "GNUmakefile ftest/GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2590 EOF 2591 cat >> $CONFIG_STATUS <<EOF 2592 2593 # Protect against being on the right side of a sed subst in config.status. 2594 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2595 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2596 $ac_vpsub 6384 6385 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 6386 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6388 X"$ac_file" : 'X\(//\)[^/]' \| \ 6389 X"$ac_file" : 'X\(//\)$' \| \ 6390 X"$ac_file" : 'X\(/\)' \| \ 6391 . : '\(.\)' 2>/dev/null || 6392 echo X"$ac_file" | 6393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6394 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6395 /^X\(\/\/\)$/{ s//\1/; q; } 6396 /^X\(\/\).*/{ s//\1/; q; } 6397 s/.*/./; q'` 6398 { if $as_mkdir_p; then 6399 mkdir -p "$ac_dir" 6400 else 6401 as_dir="$ac_dir" 6402 as_dirs= 6403 while test ! -d "$as_dir"; do 6404 as_dirs="$as_dir $as_dirs" 6405 as_dir=`(dirname "$as_dir") 2>/dev/null || 6406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6407 X"$as_dir" : 'X\(//\)[^/]' \| \ 6408 X"$as_dir" : 'X\(//\)$' \| \ 6409 X"$as_dir" : 'X\(/\)' \| \ 6410 . : '\(.\)' 2>/dev/null || 6411 echo X"$as_dir" | 6412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6413 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6414 /^X\(\/\/\)$/{ s//\1/; q; } 6415 /^X\(\/\).*/{ s//\1/; q; } 6416 s/.*/./; q'` 6417 done 6418 test ! -n "$as_dirs" || mkdir $as_dirs 6419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6421 { (exit 1); exit 1; }; }; } 6422 6423 ac_builddir=. 6424 6425 if test "$ac_dir" != .; then 6426 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6427 # A "../" for each directory in $ac_dir_suffix. 6428 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 6429 else 6430 ac_dir_suffix= ac_top_builddir= 6431 fi 6432 6433 case $srcdir in 6434 .) # No --srcdir option. We are building in place. 6435 ac_srcdir=. 6436 if test -z "$ac_top_builddir"; then 6437 ac_top_srcdir=. 6438 else 6439 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6440 fi ;; 6441 [\\/]* | ?:[\\/]* ) # Absolute path. 6442 ac_srcdir=$srcdir$ac_dir_suffix; 6443 ac_top_srcdir=$srcdir ;; 6444 *) # Relative path. 6445 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6446 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6447 esac 6448 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 6449 # absolute. 6450 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 6451 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 6452 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 6453 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 6454 6455 6456 case $INSTALL in 6457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6458 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 6459 esac 6460 6461 if test x"$ac_file" != x-; then 6462 { echo "$as_me:$LINENO: creating $ac_file" >&5 6463 echo "$as_me: creating $ac_file" >&6;} 6464 rm -f "$ac_file" 6465 fi 6466 # Let's still pretend it is `configure' which instantiates (i.e., don't 6467 # use $as_me), people would be surprised to read: 6468 # /* config.h. Generated by config.status. */ 6469 if test x"$ac_file" = x-; then 6470 configure_input= 6471 else 6472 configure_input="$ac_file. " 6473 fi 6474 configure_input=$configure_input"Generated from `echo $ac_file_in | 6475 sed 's,.*/,,'` by configure." 6476 6477 # First look for the input files in the build tree, otherwise in the 6478 # src tree. 6479 ac_file_inputs=`IFS=: 6480 for f in $ac_file_in; do 6481 case $f in 6482 -) echo $tmp/stdin ;; 6483 [\\/$]*) 6484 # Absolute (can't be DOS-style, as IFS=:) 6485 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6486 echo "$as_me: error: cannot find input file: $f" >&2;} 6487 { (exit 1); exit 1; }; } 6488 echo $f;; 6489 *) # Relative 6490 if test -f "$f"; then 6491 # Build tree 6492 echo $f 6493 elif test -f "$srcdir/$f"; then 6494 # Source tree 6495 echo $srcdir/$f 6496 else 6497 # /dev/null tree 6498 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6499 echo "$as_me: error: cannot find input file: $f" >&2;} 6500 { (exit 1); exit 1; }; } 6501 fi;; 6502 esac 6503 done` || { (exit 1); exit 1; } 6504 _ACEOF 6505 cat >>$CONFIG_STATUS <<_ACEOF 6506 sed "$ac_vpsub 2597 6507 $extrasub 2598 s%@SHELL@%$SHELL%g 2599 s%@CFLAGS@%$CFLAGS%g 2600 s%@CPPFLAGS@%$CPPFLAGS%g 2601 s%@CXXFLAGS@%$CXXFLAGS%g 2602 s%@FFLAGS@%$FFLAGS%g 2603 s%@DEFS@%$DEFS%g 2604 s%@LDFLAGS@%$LDFLAGS%g 2605 s%@LIBS@%$LIBS%g 2606 s%@exec_prefix@%$exec_prefix%g 2607 s%@prefix@%$prefix%g 2608 s%@program_transform_name@%$program_transform_name%g 2609 s%@bindir@%$bindir%g 2610 s%@sbindir@%$sbindir%g 2611 s%@libexecdir@%$libexecdir%g 2612 s%@datadir@%$datadir%g 2613 s%@sysconfdir@%$sysconfdir%g 2614 s%@sharedstatedir@%$sharedstatedir%g 2615 s%@localstatedir@%$localstatedir%g 2616 s%@libdir@%$libdir%g 2617 s%@includedir@%$includedir%g 2618 s%@oldincludedir@%$oldincludedir%g 2619 s%@infodir@%$infodir%g 2620 s%@mandir@%$mandir%g 2621 s%@CC@%$CC%g 2622 s%@CXX@%$CXX%g 2623 s%@CPP@%$CPP%g 2624 s%@CXXCPP@%$CXXCPP%g 2625 s%@LN_S@%$LN_S%g 2626 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2627 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2628 s%@INSTALL_DATA@%$INSTALL_DATA%g 2629 s%@RANLIB@%$RANLIB%g 2630 s%@SET_MAKE@%$SET_MAKE%g 2631 s%@AR@%$AR%g 2632 s%@M4@%$M4%g 2633 s%@BISON@%$BISON%g 2634 s%@FACTORY_MKINSTALLDIRS@%$FACTORY_MKINSTALLDIRS%g 2635 s%@FACTORY_MAKEHEADER@%$FACTORY_MAKEHEADER%g 2636 s%@gftabledir@%$gftabledir%g 2637 s%@templatedir@%$templatedir%g 2638 s%@factory_version@%$factory_version%g 2639 s%@libfactory@%$libfactory%g 2640 s%@ARFLAGS@%$ARFLAGS%g 2641 s%@M4FLAGS@%$M4FLAGS%g 2642 s%@MAKEHEADERFLAGS@%$MAKEHEADERFLAGS%g 2643 s%@factorysrc@%$factorysrc%g 2644 s%@factoryincl@%$factoryincl%g 2645 s%@memmansrc@%$memmansrc%g 2646 s%@memmanincl@%$memmanincl%g 2647 s%@alltargets@%$alltargets%g 2648 s%@installtargets@%$installtargets%g 2649 s%@uninstalltargets@%$uninstalltargets%g 2650 2651 CEOF 2652 EOF 2653 2654 cat >> $CONFIG_STATUS <<\EOF 2655 2656 # Split the substitutions into bite-sized pieces for seds with 2657 # small command number limits, like on Digital OSF/1 and HP-UX. 2658 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2659 ac_file=1 # Number of current file. 2660 ac_beg=1 # First line for current file. 2661 ac_end=$ac_max_sed_cmds # Line after last line for current file. 2662 ac_more_lines=: 2663 ac_sed_cmds="" 2664 while $ac_more_lines; do 2665 if test $ac_beg -gt 1; then 2666 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 6508 _ACEOF 6509 cat >>$CONFIG_STATUS <<\_ACEOF 6510 :t 6511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6512 s,@configure_input@,$configure_input,;t t 6513 s,@srcdir@,$ac_srcdir,;t t 6514 s,@abs_srcdir@,$ac_abs_srcdir,;t t 6515 s,@top_srcdir@,$ac_top_srcdir,;t t 6516 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 6517 s,@builddir@,$ac_builddir,;t t 6518 s,@abs_builddir@,$ac_abs_builddir,;t t 6519 s,@top_builddir@,$ac_top_builddir,;t t 6520 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 6521 s,@INSTALL@,$ac_INSTALL,;t t 6522 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 6523 rm -f $tmp/stdin 6524 if test x"$ac_file" != x-; then 6525 mv $tmp/out $ac_file 2667 6526 else 2668 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2669 fi 2670 if test ! -s conftest.s$ac_file; then 2671 ac_more_lines=false 2672 rm -f conftest.s$ac_file 2673 else 2674 if test -z "$ac_sed_cmds"; then 2675 ac_sed_cmds="sed -f conftest.s$ac_file" 2676 else 2677 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2678 fi 2679 ac_file=`expr $ac_file + 1` 2680 ac_beg=$ac_end 2681 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2682 fi 2683 done 2684 if test -z "$ac_sed_cmds"; then 2685 ac_sed_cmds=cat 2686 fi 2687 EOF 2688 2689 cat >> $CONFIG_STATUS <<EOF 2690 2691 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile ftest/GNUmakefile"} 2692 EOF 2693 cat >> $CONFIG_STATUS <<\EOF 2694 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2696 case "$ac_file" in 2697 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2698 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2699 *) ac_file_in="${ac_file}.in" ;; 2700 esac 2701 2702 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2703 2704 # Remove last slash and all that follows it. Not all systems have dirname. 2705 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2706 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2707 # The file is in a subdirectory. 2708 test ! -d "$ac_dir" && mkdir "$ac_dir" 2709 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2710 # A "../" for each directory in $ac_dir_suffix. 2711 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2712 else 2713 ac_dir_suffix= ac_dots= 2714 fi 2715 2716 case "$ac_given_srcdir" in 2717 .) srcdir=. 2718 if test -z "$ac_dots"; then top_srcdir=. 2719 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2720 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2721 *) # Relative path. 2722 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2723 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2724 esac 2725 2726 case "$ac_given_INSTALL" in 2727 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2728 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2729 esac 2730 2731 echo creating "$ac_file" 2732 rm -f "$ac_file" 2733 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2734 case "$ac_file" in 2735 *Makefile*) ac_comsub="1i\\ 2736 # $configure_input" ;; 2737 *) ac_comsub= ;; 2738 esac 2739 2740 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2741 sed -e "$ac_comsub 2742 s%@configure_input@%$configure_input%g 2743 s%@srcdir@%$srcdir%g 2744 s%@top_srcdir@%$top_srcdir%g 2745 s%@INSTALL@%$INSTALL%g 2746 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2747 fi; done 2748 rm -f conftest.s* 6527 cat $tmp/out 6528 rm -f $tmp/out 6529 fi 6530 6531 done 6532 _ACEOF 6533 cat >>$CONFIG_STATUS <<\_ACEOF 6534 6535 # 6536 # CONFIG_HEADER section. 6537 # 2749 6538 2750 6539 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 2752 6541 # 2753 6542 # ac_d sets the value in "#define NAME VALUE" lines. 2754 ac_dA='s %^\([ ]*\)#\([ ]*define[ ][ ]*\)'2755 ac_dB=' \([ ][ ]*\)[^ ]*%\1#\2'2756 ac_dC=' \3'2757 ac_dD=' %g'2758 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".2759 ac_uA='s %^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'2760 ac_uB=' \([ ]\)%\1#\2define\3'6543 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 6544 ac_dB='[ ].*$,\1#\2' 6545 ac_dC=' ' 6546 ac_dD=',;t' 6547 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 6548 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6549 ac_uB='$,\1#\2define\3' 2761 6550 ac_uC=' ' 2762 ac_uD='\4%g' 2763 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2764 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2765 ac_eB='$%\1#\2define\3' 2766 ac_eC=' ' 2767 ac_eD='%g' 2768 2769 if test "${CONFIG_HEADERS+set}" != set; then 2770 EOF 2771 cat >> $CONFIG_STATUS <<EOF 2772 CONFIG_HEADERS="config.h" 2773 EOF 2774 cat >> $CONFIG_STATUS <<\EOF 2775 fi 2776 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 6551 ac_uD=',;t' 6552 6553 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 2777 6554 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2778 case "$ac_file" in 2779 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2780 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2781 *) ac_file_in="${ac_file}.in" ;; 6555 case $ac_file in 6556 - | *:- | *:-:* ) # input from stdin 6557 cat >$tmp/stdin 6558 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6560 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6561 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6562 * ) ac_file_in=$ac_file.in ;; 2782 6563 esac 2783 6564 2784 echo creating $ac_file 2785 2786 rm -f conftest.frag conftest.in conftest.out 2787 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2788 cat $ac_file_inputs > conftest.in 2789 2790 EOF 2791 2792 # Transform confdefs.h into a sed script conftest.vals that substitutes 2793 # the proper values into config.h.in to produce config.h. And first: 2794 # Protect against being on the right side of a sed subst in config.status. 2795 # Protect against being in an unquoted here document in config.status. 2796 rm -f conftest.vals 2797 cat > conftest.hdr <<\EOF 2798 s/[\\&%]/\\&/g 2799 s%[\\$`]%\\&%g 2800 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2801 s%ac_d%ac_u%gp 2802 s%ac_u%ac_e%gp 2803 EOF 2804 sed -n -f conftest.hdr confdefs.h > conftest.vals 2805 rm -f conftest.hdr 6565 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 6566 echo "$as_me: creating $ac_file" >&6;} 6567 6568 # First look for the input files in the build tree, otherwise in the 6569 # src tree. 6570 ac_file_inputs=`IFS=: 6571 for f in $ac_file_in; do 6572 case $f in 6573 -) echo $tmp/stdin ;; 6574 [\\/$]*) 6575 # Absolute (can't be DOS-style, as IFS=:) 6576 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6577 echo "$as_me: error: cannot find input file: $f" >&2;} 6578 { (exit 1); exit 1; }; } 6579 echo $f;; 6580 *) # Relative 6581 if test -f "$f"; then 6582 # Build tree 6583 echo $f 6584 elif test -f "$srcdir/$f"; then 6585 # Source tree 6586 echo $srcdir/$f 6587 else 6588 # /dev/null tree 6589 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6590 echo "$as_me: error: cannot find input file: $f" >&2;} 6591 { (exit 1); exit 1; }; } 6592 fi;; 6593 esac 6594 done` || { (exit 1); exit 1; } 6595 # Remove the trailing spaces. 6596 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6597 6598 _ACEOF 6599 6600 # Transform confdefs.h into two sed scripts, `conftest.defines' and 6601 # `conftest.undefs', that substitutes the proper values into 6602 # config.h.in to produce config.h. The first handles `#define' 6603 # templates, and the second `#undef' templates. 6604 # And first: Protect against being on the right side of a sed subst in 6605 # config.status. Protect against being in an unquoted here document 6606 # in config.status. 6607 rm -f conftest.defines conftest.undefs 6608 # Using a here document instead of a string reduces the quoting nightmare. 6609 # Putting comments in sed scripts is not portable. 6610 # 6611 # `end' is used to avoid that the second main sed command (meant for 6612 # 0-ary CPP macros) applies to n-ary macro definitions. 6613 # See the Autoconf documentation for `clear'. 6614 cat >confdef2sed.sed <<\_ACEOF 6615 s/[\\&,]/\\&/g 6616 s,[\\$`],\\&,g 6617 t clear 6618 : clear 6619 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 6620 t end 6621 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6622 : end 6623 _ACEOF 6624 # If some macros were called several times there might be several times 6625 # the same #defines, which is useless. Nevertheless, we may not want to 6626 # sort them, since we want the *last* AC-DEFINE to be honored. 6627 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6628 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6629 rm -f confdef2sed.sed 2806 6630 2807 6631 # This sed command replaces #undef with comments. This is necessary, for 2808 6632 # example, in the case of _POSIX_SOURCE, which is predefined and required 2809 6633 # on some systems where configure will not decide to define it. 2810 cat >> conftest.vals <<\EOF 2811 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2812 EOF 2813 2814 # Break up conftest.vals because some shells have a limit on 2815 # the size of here documents, and old seds have small limits too. 2816 6634 cat >>conftest.undefs <<\_ACEOF 6635 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6636 _ACEOF 6637 6638 # Break up conftest.defines because some shells have a limit on the size 6639 # of here documents, and old seds have small limits too (100 cmds). 6640 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6641 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6642 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6643 echo ' :' >>$CONFIG_STATUS 2817 6644 rm -f conftest.tail 2818 while :6645 while grep . conftest.defines >/dev/null 2819 6646 do 2820 ac_lines=`grep -c . conftest.vals` 2821 # grep -c gives empty output for an empty file on some AIX systems. 2822 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2823 # Write a limited-size here document to conftest.frag. 2824 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2825 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 6647 # Write a limited-size here document to $tmp/defines.sed. 6648 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6649 # Speed up: don't consider the non `#define' lines. 6650 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6651 # Work around the forget-to-reset-the-flag bug. 6652 echo 't clr' >>$CONFIG_STATUS 6653 echo ': clr' >>$CONFIG_STATUS 6654 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 2826 6655 echo 'CEOF 2827 sed -f conftest.frag conftest.in > conftest.out 2828 rm -f conftest.in 2829 mv conftest.out conftest.in 2830 ' >> $CONFIG_STATUS 2831 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2832 rm -f conftest.vals 2833 mv conftest.tail conftest.vals 2834 done 2835 rm -f conftest.vals 2836 2837 cat >> $CONFIG_STATUS <<\EOF 2838 rm -f conftest.frag conftest.h 2839 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2840 cat conftest.in >> conftest.h 2841 rm -f conftest.in 2842 if cmp -s $ac_file conftest.h 2>/dev/null; then 2843 echo "$ac_file is unchanged" 2844 rm -f conftest.h 6656 sed -f $tmp/defines.sed $tmp/in >$tmp/out 6657 rm -f $tmp/in 6658 mv $tmp/out $tmp/in 6659 ' >>$CONFIG_STATUS 6660 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6661 rm -f conftest.defines 6662 mv conftest.tail conftest.defines 6663 done 6664 rm -f conftest.defines 6665 echo ' fi # grep' >>$CONFIG_STATUS 6666 echo >>$CONFIG_STATUS 6667 6668 # Break up conftest.undefs because some shells have a limit on the size 6669 # of here documents, and old seds have small limits too (100 cmds). 6670 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 6671 rm -f conftest.tail 6672 while grep . conftest.undefs >/dev/null 6673 do 6674 # Write a limited-size here document to $tmp/undefs.sed. 6675 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6676 # Speed up: don't consider the non `#undef' 6677 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6678 # Work around the forget-to-reset-the-flag bug. 6679 echo 't clr' >>$CONFIG_STATUS 6680 echo ': clr' >>$CONFIG_STATUS 6681 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6682 echo 'CEOF 6683 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6684 rm -f $tmp/in 6685 mv $tmp/out $tmp/in 6686 ' >>$CONFIG_STATUS 6687 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6688 rm -f conftest.undefs 6689 mv conftest.tail conftest.undefs 6690 done 6691 rm -f conftest.undefs 6692 6693 cat >>$CONFIG_STATUS <<\_ACEOF 6694 # Let's still pretend it is `configure' which instantiates (i.e., don't 6695 # use $as_me), people would be surprised to read: 6696 # /* config.h. Generated by config.status. */ 6697 if test x"$ac_file" = x-; then 6698 echo "/* Generated by configure. */" >$tmp/config.h 2845 6699 else 2846 # Remove last slash and all that follows it. Not all systems have dirname. 2847 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2848 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2849 # The file is in a subdirectory. 2850 test ! -d "$ac_dir" && mkdir "$ac_dir" 6700 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 6701 fi 6702 cat $tmp/in >>$tmp/config.h 6703 rm -f $tmp/in 6704 if test x"$ac_file" != x-; then 6705 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 6706 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6707 echo "$as_me: $ac_file is unchanged" >&6;} 6708 else 6709 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6711 X"$ac_file" : 'X\(//\)[^/]' \| \ 6712 X"$ac_file" : 'X\(//\)$' \| \ 6713 X"$ac_file" : 'X\(/\)' \| \ 6714 . : '\(.\)' 2>/dev/null || 6715 echo X"$ac_file" | 6716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6718 /^X\(\/\/\)$/{ s//\1/; q; } 6719 /^X\(\/\).*/{ s//\1/; q; } 6720 s/.*/./; q'` 6721 { if $as_mkdir_p; then 6722 mkdir -p "$ac_dir" 6723 else 6724 as_dir="$ac_dir" 6725 as_dirs= 6726 while test ! -d "$as_dir"; do 6727 as_dirs="$as_dir $as_dirs" 6728 as_dir=`(dirname "$as_dir") 2>/dev/null || 6729 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6730 X"$as_dir" : 'X\(//\)[^/]' \| \ 6731 X"$as_dir" : 'X\(//\)$' \| \ 6732 X"$as_dir" : 'X\(/\)' \| \ 6733 . : '\(.\)' 2>/dev/null || 6734 echo X"$as_dir" | 6735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6736 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6737 /^X\(\/\/\)$/{ s//\1/; q; } 6738 /^X\(\/\).*/{ s//\1/; q; } 6739 s/.*/./; q'` 6740 done 6741 test ! -n "$as_dirs" || mkdir $as_dirs 6742 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6743 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6744 { (exit 1); exit 1; }; }; } 6745 6746 rm -f $ac_file 6747 mv $tmp/config.h $ac_file 2851 6748 fi 2852 rm -f $ac_file 2853 mv conftest.h $ac_file 2854 fi 2855 fi; done 2856 2857 EOF 2858 cat >> $CONFIG_STATUS <<EOF 2859 2860 EOF 2861 cat >> $CONFIG_STATUS <<\EOF 2862 2863 exit 0 2864 EOF 6749 else 6750 cat $tmp/config.h 6751 rm -f $tmp/config.h 6752 fi 6753 done 6754 _ACEOF 6755 6756 cat >>$CONFIG_STATUS <<\_ACEOF 6757 6758 { (exit 0); exit 0; } 6759 _ACEOF 2865 6760 chmod +x $CONFIG_STATUS 2866 rm -fr confdefs* $ac_clean_files 2867 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2868 6761 ac_clean_files=$ac_clean_files_save 6762 6763 6764 # configure is writing to config.log, and then calls config.status. 6765 # config.status does its own redirection, appending to config.log. 6766 # Unfortunately, on DOS this fails, as config.log is still kept open 6767 # by configure, so config.status won't be able to write to it; its 6768 # output is simply discarded. So we exec the FD to /dev/null, 6769 # effectively closing config.log, so it can be properly (re)opened and 6770 # appended to by config.status. When coming back to configure, we 6771 # need to make the FD available again. 6772 if test "$no_create" != yes; then 6773 ac_cs_success=: 6774 ac_config_status_args= 6775 test "$silent" = yes && 6776 ac_config_status_args="$ac_config_status_args --quiet" 6777 exec 5>/dev/null 6778 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6779 exec 5>>config.log 6780 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6781 # would make configure fail if this is the last instruction. 6782 $ac_cs_success || { (exit 1); exit 1; } 6783 fi 6784
Note: See TracChangeset
for help on using the changeset viewer.