Changeset ba0772 in git for kernel/configure
- Timestamp:
- Jun 27, 2006, 3:57:11 PM (18 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5b561ba67b1fc2214bc393da85a2c8f88571ad7c
- Parents:
- 3920458ad215165d459d13667e0d16a81109bfa9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/configure
r392045 rba0772 1 1 #! /bin/sh 2 3 2 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.13 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 3 # Generated by GNU Autoconf 2.59. 6 4 # 5 # Copyright (C) 2003 Free Software Foundation, Inc. 7 6 # This configure script is free software; the Free Software Foundation 8 7 # gives unlimited permission to copy, distribute and modify it. 9 10 # Defaults: 11 ac_help= 8 ## --------------------- ## 9 ## M4sh Initialization. ## 10 ## --------------------- ## 11 12 # Be Bourne compatible 13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 79 # Avoid depending upon Character Ranges. 80 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 as_cr_digits='0123456789' 84 as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86 # The user is always right. 87 if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97 fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 for as_dir in $PATH 111 do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184 } 185 186 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 193 194 if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196 else 197 as_expr=false 198 fi 199 200 rm -f conf$$ conf$$.exe conf$$.file 201 echo >conf$$.file 202 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211 elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213 else 214 as_ln_s='cp -p' 215 fi 216 rm -f conf$$ conf$$.exe conf$$.file 217 218 if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220 else 221 test -d ./-p && rmdir ./-p 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="eval 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="eval 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 # 12 254 ac_default_prefix=/usr/local 13 # Any additions from configure.in: 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="mmalloc.cc" 14 275 ac_default_prefix=`pwd`/.. 15 ac_help="$ac_help 16 --with-rootdir=DIR use DIR ass compiled-in root directory 17 (default is PREFIX)" 18 ac_help="$ac_help 19 --with-lex=[LEX,no] uses LEX as lex program, default is flex" 20 ac_help="$ac_help 21 --with-readline=[dynamic,static,no] 22 do use dynamic/static/no readline for fancy display" 23 ac_help="$ac_help 24 --without-MP do not use MP (no MP links)" 25 ac_help="$ac_help 26 --without-dbm do not use dbm (no DBM links)" 27 ac_help="$ac_help 28 --without-factory do not use factory (no poly factorization)" 29 ac_help="$ac_help 30 --without-libfac do not use libfac (no primary decompositions)" 31 ac_help="$ac_help 32 --with-namespaces do compile namespace support" 33 ac_help="$ac_help 34 --without-dl do not use dynamic linking, modules, and kernel" 35 ac_help="$ac_help 36 --with-dynamic-modules do compile with dynamic modules support" 37 ac_help="$ac_help 38 --without-dynamic-kernel 39 do not compile with dynamic kernel parts" 40 ac_help="$ac_help 41 --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic" 42 ac_help="$ac_help 43 --with-Plural do compile with Plural support" 44 ac_help="$ac_help 45 --with-NTL build for use with NTL." 276 # Factoring default headers for most tests. 277 ac_includes_default="\ 278 #include <stdio.h> 279 #if HAVE_SYS_TYPES_H 280 # include <sys/types.h> 281 #endif 282 #if HAVE_SYS_STAT_H 283 # include <sys/stat.h> 284 #endif 285 #if STDC_HEADERS 286 # include <stdlib.h> 287 # include <stddef.h> 288 #else 289 # if HAVE_STDLIB_H 290 # include <stdlib.h> 291 # endif 292 #endif 293 #if HAVE_STRING_H 294 # if !STDC_HEADERS && HAVE_MEMORY_H 295 # include <memory.h> 296 # endif 297 # include <string.h> 298 #endif 299 #if HAVE_STRINGS_H 300 # include <strings.h> 301 #endif 302 #if HAVE_INTTYPES_H 303 # include <inttypes.h> 304 #else 305 # if HAVE_STDINT_H 306 # include <stdint.h> 307 # endif 308 #endif 309 #if HAVE_UNISTD_H 310 # include <unistd.h> 311 #endif" 312 313 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 SINGUNAME EXEC_EXT SING_UNAME SINGULAR_VERSION VERSION_DATE SINGULAR_MAJOR_VERSION SINGULAR_MINOR_VERSION SINGULAR_SUB_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP PIPE CXXTEMPLFLAGS CXXNOOPTFLAGS STATIC_LDFLAGS SET_MAKE SINGULAR LEX BISON LN_S PERL LD_DYN_FLAGS SFLAGS SLDFLAGS LD ALLOCA CXXCPP HAVE_MPSR MP_LIBS NEED_LIBS DL_KERNEL LIBOBJS LTLIBOBJS' 314 ac_subst_files='' 46 315 47 316 # Initialize some variables set by options. 317 ac_init_help= 318 ac_init_version=false 48 319 # The variables have the same names as the options, with 49 320 # dashes changed to underlines. 50 build=NONE 51 cache_file=./config.cache 321 cache_file=/dev/null 52 322 exec_prefix=NONE 53 host=NONE54 323 no_create= 55 nonopt=NONE56 324 no_recursion= 57 325 prefix=NONE … … 62 330 site= 63 331 srcdir= 64 target=NONE65 332 verbose= 66 333 x_includes=NONE 67 334 x_libraries=NONE 335 336 # Installation directory options. 337 # These are left unexpanded so users can "make install exec_prefix=/foo" 338 # and all the variables that are supposed to be based on exec_prefix 339 # by default will actually change. 340 # Use braces instead of parens because sh, perl, etc. also accept them. 68 341 bindir='${exec_prefix}/bin' 69 342 sbindir='${exec_prefix}/sbin' … … 79 352 mandir='${prefix}/man' 80 353 81 # Initialize some other variables.82 subdirs=83 MFLAGS= MAKEFLAGS=84 SHELL=${CONFIG_SHELL-/bin/sh}85 # Maximum number of lines to put in a shell here document.86 ac_max_here_lines=1287 88 354 ac_prev= 89 355 for ac_option 90 356 do 91 92 357 # If the previous option needs an argument, assign it. 93 358 if test -n "$ac_prev"; then … … 97 362 fi 98 363 99 case "$ac_option" in 100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 101 *) ac_optarg= ;; 102 esac 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 103 365 104 366 # Accept the important Cygnus configure options, so we can diagnose typos. 105 367 106 case "$ac_option"in368 case $ac_option in 107 369 108 370 -bindir | --bindir | --bindi | --bind | --bin | --bi) 109 371 ac_prev=bindir ;; 110 372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 111 bindir= "$ac_optarg";;373 bindir=$ac_optarg ;; 112 374 113 375 -build | --build | --buil | --bui | --bu) 114 ac_prev=build ;;376 ac_prev=build_alias ;; 115 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 116 build ="$ac_optarg";;378 build_alias=$ac_optarg ;; 117 379 118 380 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 121 383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 122 384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 123 cache_file="$ac_optarg" ;; 385 cache_file=$ac_optarg ;; 386 387 --config-cache | -C) 388 cache_file=config.cache ;; 124 389 125 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 127 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 128 393 | --da=*) 129 datadir= "$ac_optarg";;394 datadir=$ac_optarg ;; 130 395 131 396 -disable-* | --disable-*) 132 ac_feature=`e cho $ac_option|sed -e 's/-*disable-//'`397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 133 398 # Reject names that are not valid shell variable names. 134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then135 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }136 fi137 ac_feature=`echo $ac_feature | sed 's/-/_/g'`138 eval "enable_$ {ac_feature}=no" ;;399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 139 404 140 405 -enable-* | --enable-*) 141 ac_feature=`e cho $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 142 407 # Reject names that are not valid shell variable names. 143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then144 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }145 fi146 ac_feature=`echo $ac_feature | sed 's/-/_/g'`147 case "$ac_option"in148 *=*) ;;408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 149 414 *) ac_optarg=yes ;; 150 415 esac 151 eval "enable_$ {ac_feature}='$ac_optarg'" ;;416 eval "enable_$ac_feature='$ac_optarg'" ;; 152 417 153 418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 158 423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 159 424 | --exec=* | --exe=* | --ex=*) 160 exec_prefix= "$ac_optarg";;425 exec_prefix=$ac_optarg ;; 161 426 162 427 -gas | --gas | --ga | --g) … … 164 429 with_gas=yes ;; 165 430 166 -help | --help | --hel | --he) 167 # Omit some internal or obsolete options to make the list less imposing. 168 # This message is too long to be a string in the A/UX 3.1 sh. 169 cat << EOF 170 Usage: configure [options] [host] 171 Options: [defaults in brackets after descriptions] 172 Configuration: 173 --cache-file=FILE cache test results in FILE 174 --help print this message 175 --no-create do not create output files 176 --quiet, --silent do not print \`checking...' messages 177 --version print the version of autoconf that created configure 178 Directory and file names: 179 --prefix=PREFIX install architecture-independent files in PREFIX 180 [$ac_default_prefix] 181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 182 [same as prefix] 183 --bindir=DIR user executables in DIR [EPREFIX/bin] 184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 186 --datadir=DIR read-only architecture-independent data in DIR 187 [PREFIX/share] 188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 189 --sharedstatedir=DIR modifiable architecture-independent data in DIR 190 [PREFIX/com] 191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 192 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 193 --includedir=DIR C header files in DIR [PREFIX/include] 194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 195 --infodir=DIR info documentation in DIR [PREFIX/info] 196 --mandir=DIR man documentation in DIR [PREFIX/man] 197 --srcdir=DIR find the sources in DIR [configure dir or ..] 198 --program-prefix=PREFIX prepend PREFIX to installed program names 199 --program-suffix=SUFFIX append SUFFIX to installed program names 200 --program-transform-name=PROGRAM 201 run sed PROGRAM on installed program names 202 EOF 203 cat << EOF 204 Host type: 205 --build=BUILD configure for building on BUILD [BUILD=HOST] 206 --host=HOST configure for HOST [guessed] 207 --target=TARGET configure for TARGET [TARGET=HOST] 208 Features and packages: 209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 213 --x-includes=DIR X include files are in DIR 214 --x-libraries=DIR X library files are in DIR 215 EOF 216 if test -n "$ac_help"; then 217 echo "--enable and --with options recognized:$ac_help" 218 fi 219 exit 0 ;; 431 -help | --help | --hel | --he | -h) 432 ac_init_help=long ;; 433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 434 ac_init_help=recursive ;; 435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 436 ac_init_help=short ;; 220 437 221 438 -host | --host | --hos | --ho) 222 ac_prev=host ;;439 ac_prev=host_alias ;; 223 440 -host=* | --host=* | --hos=* | --ho=*) 224 host ="$ac_optarg";;441 host_alias=$ac_optarg ;; 225 442 226 443 -includedir | --includedir | --includedi | --included | --include \ … … 229 446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 230 447 | --includ=* | --inclu=* | --incl=* | --inc=*) 231 includedir= "$ac_optarg";;448 includedir=$ac_optarg ;; 232 449 233 450 -infodir | --infodir | --infodi | --infod | --info | --inf) 234 451 ac_prev=infodir ;; 235 452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 236 infodir= "$ac_optarg";;453 infodir=$ac_optarg ;; 237 454 238 455 -libdir | --libdir | --libdi | --libd) 239 456 ac_prev=libdir ;; 240 457 -libdir=* | --libdir=* | --libdi=* | --libd=*) 241 libdir= "$ac_optarg";;458 libdir=$ac_optarg ;; 242 459 243 460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 246 463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 247 464 | --libexe=* | --libex=* | --libe=*) 248 libexecdir= "$ac_optarg";;465 libexecdir=$ac_optarg ;; 249 466 250 467 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 255 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 256 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 257 localstatedir= "$ac_optarg";;474 localstatedir=$ac_optarg ;; 258 475 259 476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 260 477 ac_prev=mandir ;; 261 478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 262 mandir= "$ac_optarg";;479 mandir=$ac_optarg ;; 263 480 264 481 -nfp | --nfp | --nf) … … 267 484 268 485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 269 | --no-cr | --no-c )486 | --no-cr | --no-c | -n) 270 487 no_create=yes ;; 271 488 … … 281 498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 282 499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 283 oldincludedir= "$ac_optarg";;500 oldincludedir=$ac_optarg ;; 284 501 285 502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 286 503 ac_prev=prefix ;; 287 504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 288 prefix= "$ac_optarg";;505 prefix=$ac_optarg ;; 289 506 290 507 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 293 510 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 294 511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 295 program_prefix= "$ac_optarg";;512 program_prefix=$ac_optarg ;; 296 513 297 514 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 300 517 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 301 518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 302 program_suffix= "$ac_optarg";;519 program_suffix=$ac_optarg ;; 303 520 304 521 -program-transform-name | --program-transform-name \ … … 317 534 | --program-trans=* | --program-tran=* \ 318 535 | --progr-tra=* | --program-tr=* | --program-t=*) 319 program_transform_name= "$ac_optarg";;536 program_transform_name=$ac_optarg ;; 320 537 321 538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 327 544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 328 545 | --sbi=* | --sb=*) 329 sbindir= "$ac_optarg";;546 sbindir=$ac_optarg ;; 330 547 331 548 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 338 555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 339 556 | --sha=* | --sh=*) 340 sharedstatedir= "$ac_optarg";;557 sharedstatedir=$ac_optarg ;; 341 558 342 559 -site | --site | --sit) 343 560 ac_prev=site ;; 344 561 -site=* | --site=* | --sit=*) 345 site= "$ac_optarg";;562 site=$ac_optarg ;; 346 563 347 564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 348 565 ac_prev=srcdir ;; 349 566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 350 srcdir= "$ac_optarg";;567 srcdir=$ac_optarg ;; 351 568 352 569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 355 572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 356 573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 357 sysconfdir= "$ac_optarg";;574 sysconfdir=$ac_optarg ;; 358 575 359 576 -target | --target | --targe | --targ | --tar | --ta | --t) 360 ac_prev=target ;;577 ac_prev=target_alias ;; 361 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 362 target ="$ac_optarg";;579 target_alias=$ac_optarg ;; 363 580 364 581 -v | -verbose | --verbose | --verbos | --verbo | --verb) 365 582 verbose=yes ;; 366 583 367 -version | --version | --versio | --versi | --vers) 368 echo "configure generated by autoconf version 2.13" 369 exit 0 ;; 584 -version | --version | --versio | --versi | --vers | -V) 585 ac_init_version=: ;; 370 586 371 587 -with-* | --with-*) 372 ac_package=`e cho $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 373 589 # Reject names that are not valid shell variable names. 374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then375 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }376 fi590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 { (exit 1); exit 1; }; } 377 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 378 case "$ac_option"in379 *=*) ;;594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 380 596 *) ac_optarg=yes ;; 381 597 esac 382 eval "with_$ {ac_package}='$ac_optarg'" ;;598 eval "with_$ac_package='$ac_optarg'" ;; 383 599 384 600 -without-* | --without-*) 385 ac_package=`e cho $ac_option|sed -e 's/-*without-//'`601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 386 602 # Reject names that are not valid shell variable names. 387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then388 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }389 fi390 ac_package=`echo $ac_package | sed 's/-/_/g'`391 eval "with_$ {ac_package}=no" ;;603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/-/_/g'` 607 eval "with_$ac_package=no" ;; 392 608 393 609 --x) … … 400 616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 401 617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 402 x_includes= "$ac_optarg";;618 x_includes=$ac_optarg ;; 403 619 404 620 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 407 623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 408 624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 409 x_libraries="$ac_optarg" ;; 410 411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 625 x_libraries=$ac_optarg ;; 626 627 -*) { echo "$as_me: error: unrecognized option: $ac_option 628 Try \`$0 --help' for more information." >&2 629 { (exit 1); exit 1; }; } 412 630 ;; 413 631 632 *=*) 633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 # Reject names that are not valid shell variable names. 635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 640 export $ac_envvar ;; 641 414 642 *) 415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 416 echo "configure: warning: $ac_option: invalid host type" 1>&2 417 fi 418 if test "x$nonopt" != xNONE; then 419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 420 fi 421 nonopt="$ac_option" 643 # FIXME: should be removed in autoconf 3.0. 644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 422 648 ;; 423 649 … … 426 652 427 653 if test -n "$ac_prev"; then 428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 429 fi 430 431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 432 433 # File descriptor usage: 434 # 0 standard input 435 # 1 file creation 436 # 2 errors and warnings 437 # 3 some systems may open it to /dev/tty 438 # 4 used on the Kubota Titan 439 # 6 checking for... messages and results 440 # 5 compiler messages saved in config.log 441 if test "$silent" = yes; then 442 exec 6>/dev/null 443 else 444 exec 6>&1 445 fi 446 exec 5>./config.log 447 448 echo "\ 449 This file contains any messages produced by compilers while 450 running configure, to aid debugging if configure makes a mistake. 451 " 1>&5 452 453 # Strip out --no-create and --no-recursion so they do not pile up. 454 # Also quote any args containing shell metacharacters. 455 ac_configure_args= 456 for ac_arg 654 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 { echo "$as_me: error: missing argument to $ac_option" >&2 656 { (exit 1); exit 1; }; } 657 fi 658 659 # Be sure to have absolute paths. 660 for ac_var in exec_prefix prefix 457 661 do 458 case "$ac_arg" in 459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 460 | --no-cr | --no-c) ;; 461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 464 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 465 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 662 eval ac_val=$`echo $ac_var` 663 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 466 667 esac 467 668 done 468 669 469 # NLS nuisances. 470 # Only set these to C if already set. These must not be set unconditionally 471 # because not all systems understand e.g. LANG=C (notably SCO). 472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 473 # Non-C LC_CTYPE values break the ctype check. 474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 478 479 # confdefs.h avoids OS command line length limits that DEFS can exceed. 480 rm -rf conftest* confdefs.h 481 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 482 echo > confdefs.h 483 484 # A filename unique to this package, relative to the directory that 485 # configure is in, which we can look for to find out if srcdir is correct. 486 ac_unique_file=mmalloc.cc 670 # Be sure to have absolute paths. 671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673 do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 680 done 681 682 # There might be people who depend on the old broken behavior: `$host' 683 # used to hold the argument of --host etc. 684 # FIXME: To remove some day. 685 build=$build_alias 686 host=$host_alias 687 target=$target_alias 688 689 # FIXME: To remove some day. 690 if test "x$host_alias" != x; then 691 if test "x$build_alias" = x; then 692 cross_compiling=maybe 693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 If a cross compiler is detected then cross compile mode will be used." >&2 695 elif test "x$build_alias" != "x$host_alias"; then 696 cross_compiling=yes 697 fi 698 fi 699 700 ac_tool_prefix= 701 test -n "$host_alias" && ac_tool_prefix=$host_alias- 702 703 test "$silent" = yes && exec 6>/dev/null 704 487 705 488 706 # Find the source files, if location was not specified. … … 490 708 ac_srcdir_defaulted=yes 491 709 # Try the directory containing this script, then its parent. 492 ac_prog=$0 493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 710 ac_confdir=`(dirname "$0") 2>/dev/null || 711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 X"$0" : 'X\(//\)[^/]' \| \ 713 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 716 echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 495 722 srcdir=$ac_confdir 496 723 if test ! -r $srcdir/$ac_unique_file; then … … 502 729 if test ! -r $srcdir/$ac_unique_file; then 503 730 if test "$ac_srcdir_defaulted" = yes; then 504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 { (exit 1); exit 1; }; } 505 733 else 506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 { (exit 1); exit 1; }; } 507 736 fi 508 737 fi 509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 510 738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742 ac_env_build_alias_set=${build_alias+set} 743 ac_env_build_alias_value=$build_alias 744 ac_cv_env_build_alias_set=${build_alias+set} 745 ac_cv_env_build_alias_value=$build_alias 746 ac_env_host_alias_set=${host_alias+set} 747 ac_env_host_alias_value=$host_alias 748 ac_cv_env_host_alias_set=${host_alias+set} 749 ac_cv_env_host_alias_value=$host_alias 750 ac_env_target_alias_set=${target_alias+set} 751 ac_env_target_alias_value=$target_alias 752 ac_cv_env_target_alias_set=${target_alias+set} 753 ac_cv_env_target_alias_value=$target_alias 754 ac_env_CC_set=${CC+set} 755 ac_env_CC_value=$CC 756 ac_cv_env_CC_set=${CC+set} 757 ac_cv_env_CC_value=$CC 758 ac_env_CFLAGS_set=${CFLAGS+set} 759 ac_env_CFLAGS_value=$CFLAGS 760 ac_cv_env_CFLAGS_set=${CFLAGS+set} 761 ac_cv_env_CFLAGS_value=$CFLAGS 762 ac_env_LDFLAGS_set=${LDFLAGS+set} 763 ac_env_LDFLAGS_value=$LDFLAGS 764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765 ac_cv_env_LDFLAGS_value=$LDFLAGS 766 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767 ac_env_CPPFLAGS_value=$CPPFLAGS 768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770 ac_env_CPP_set=${CPP+set} 771 ac_env_CPP_value=$CPP 772 ac_cv_env_CPP_set=${CPP+set} 773 ac_cv_env_CPP_value=$CPP 774 ac_env_CXX_set=${CXX+set} 775 ac_env_CXX_value=$CXX 776 ac_cv_env_CXX_set=${CXX+set} 777 ac_cv_env_CXX_value=$CXX 778 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 779 ac_env_CXXFLAGS_value=$CXXFLAGS 780 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 781 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 782 ac_env_CXXCPP_set=${CXXCPP+set} 783 ac_env_CXXCPP_value=$CXXCPP 784 ac_cv_env_CXXCPP_set=${CXXCPP+set} 785 ac_cv_env_CXXCPP_value=$CXXCPP 786 787 # 788 # Report the --help message. 789 # 790 if test "$ac_init_help" = "long"; then 791 # Omit some internal or obsolete options to make the list less imposing. 792 # This message is too long to be a string in the A/UX 3.1 sh. 793 cat <<_ACEOF 794 \`configure' configures this package to adapt to many kinds of systems. 795 796 Usage: $0 [OPTION]... [VAR=VALUE]... 797 798 To assign environment variables (e.g., CC, CFLAGS...), specify them as 799 VAR=VALUE. See below for descriptions of some of the useful variables. 800 801 Defaults for the options are specified in brackets. 802 803 Configuration: 804 -h, --help display this help and exit 805 --help=short display options specific to this package 806 --help=recursive display the short help of all the included packages 807 -V, --version display version information and exit 808 -q, --quiet, --silent do not print \`checking...' messages 809 --cache-file=FILE cache test results in FILE [disabled] 810 -C, --config-cache alias for \`--cache-file=config.cache' 811 -n, --no-create do not create output files 812 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 813 814 _ACEOF 815 816 cat <<_ACEOF 817 Installation directories: 818 --prefix=PREFIX install architecture-independent files in PREFIX 819 [$ac_default_prefix] 820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 821 [PREFIX] 822 823 By default, \`make install' will install all the files in 824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 825 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 826 for instance \`--prefix=\$HOME'. 827 828 For better control, use the options below. 829 830 Fine tuning of the installation directories: 831 --bindir=DIR user executables [EPREFIX/bin] 832 --sbindir=DIR system admin executables [EPREFIX/sbin] 833 --libexecdir=DIR program executables [EPREFIX/libexec] 834 --datadir=DIR read-only architecture-independent data [PREFIX/share] 835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 837 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 838 --libdir=DIR object code libraries [EPREFIX/lib] 839 --includedir=DIR C header files [PREFIX/include] 840 --oldincludedir=DIR C header files for non-gcc [/usr/include] 841 --infodir=DIR info documentation [PREFIX/info] 842 --mandir=DIR man documentation [PREFIX/man] 843 _ACEOF 844 845 cat <<\_ACEOF 846 _ACEOF 847 fi 848 849 if test -n "$ac_init_help"; then 850 851 cat <<\_ACEOF 852 853 Optional Packages: 854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 856 --with-rootdir=DIR use DIR ass compiled-in root directory 857 (default is PREFIX) 858 --with-lex=LEX,no uses LEX as lex program, default is flex 859 --with-readline=dynamic,static,no 860 do use dynamic/static/no readline for fancy display 861 --without-MP do not use MP (no MP links) 862 --without-dbm do not use dbm (no DBM links) 863 --without-factory do not use factory (no poly factorization) 864 --without-libfac do not use libfac (no primary decompositions) 865 --with-namespaces do compile namespace support 866 --without-dl do not use dynamic linking, modules, and kernel 867 --with-dynamic-modules do compile with dynamic modules support 868 --without-dynamic-kernel 869 do not compile with dynamic kernel parts 870 --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic 871 --with-Plural do compile with Plural support 872 --with-NTL build for use with NTL. 873 874 Some influential environment variables: 875 CC C compiler command 876 CFLAGS C compiler flags 877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 878 nonstandard directory <lib dir> 879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 880 headers in a nonstandard directory <include dir> 881 CPP C preprocessor 882 CXX C++ compiler command 883 CXXFLAGS C++ compiler flags 884 CXXCPP C++ preprocessor 885 886 Use these variables to override the choices made by `configure' or to help 887 it to find libraries and programs with nonstandard names/locations. 888 889 _ACEOF 890 fi 891 892 if test "$ac_init_help" = "recursive"; then 893 # If there are subdirs, report their specific --help. 894 ac_popdir=`pwd` 895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 896 test -d $ac_dir || continue 897 ac_builddir=. 898 899 if test "$ac_dir" != .; then 900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 901 # A "../" for each directory in $ac_dir_suffix. 902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 903 else 904 ac_dir_suffix= ac_top_builddir= 905 fi 906 907 case $srcdir in 908 .) # No --srcdir option. We are building in place. 909 ac_srcdir=. 910 if test -z "$ac_top_builddir"; then 911 ac_top_srcdir=. 912 else 913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 914 fi ;; 915 [\\/]* | ?:[\\/]* ) # Absolute path. 916 ac_srcdir=$srcdir$ac_dir_suffix; 917 ac_top_srcdir=$srcdir ;; 918 *) # Relative path. 919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 920 ac_top_srcdir=$ac_top_builddir$srcdir ;; 921 esac 922 923 # Do not use `cd foo && pwd` to compute absolute paths, because 924 # the directories may not exist. 925 case `pwd` in 926 .) ac_abs_builddir="$ac_dir";; 927 *) 928 case "$ac_dir" in 929 .) ac_abs_builddir=`pwd`;; 930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 931 *) ac_abs_builddir=`pwd`/"$ac_dir";; 932 esac;; 933 esac 934 case $ac_abs_builddir in 935 .) ac_abs_top_builddir=${ac_top_builddir}.;; 936 *) 937 case ${ac_top_builddir}. in 938 .) ac_abs_top_builddir=$ac_abs_builddir;; 939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 941 esac;; 942 esac 943 case $ac_abs_builddir in 944 .) ac_abs_srcdir=$ac_srcdir;; 945 *) 946 case $ac_srcdir in 947 .) ac_abs_srcdir=$ac_abs_builddir;; 948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 950 esac;; 951 esac 952 case $ac_abs_builddir in 953 .) ac_abs_top_srcdir=$ac_top_srcdir;; 954 *) 955 case $ac_top_srcdir in 956 .) ac_abs_top_srcdir=$ac_abs_builddir;; 957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 959 esac;; 960 esac 961 962 cd $ac_dir 963 # Check for guested configure; otherwise get Cygnus style configure. 964 if test -f $ac_srcdir/configure.gnu; then 965 echo 966 $SHELL $ac_srcdir/configure.gnu --help=recursive 967 elif test -f $ac_srcdir/configure; then 968 echo 969 $SHELL $ac_srcdir/configure --help=recursive 970 elif test -f $ac_srcdir/configure.ac || 971 test -f $ac_srcdir/configure.in; then 972 echo 973 $ac_configure --help 974 else 975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 976 fi 977 cd $ac_popdir 978 done 979 fi 980 981 test -n "$ac_init_help" && exit 0 982 if $ac_init_version; then 983 cat <<\_ACEOF 984 985 Copyright (C) 2003 Free Software Foundation, Inc. 986 This configure script is free software; the Free Software Foundation 987 gives unlimited permission to copy, distribute and modify it. 988 _ACEOF 989 exit 0 990 fi 991 exec 5>config.log 992 cat >&5 <<_ACEOF 993 This file contains any messages produced by compilers while 994 running configure, to aid debugging if configure makes a mistake. 995 996 It was created by $as_me, which was 997 generated by GNU Autoconf 2.59. Invocation command line was 998 999 $ $0 $@ 1000 1001 _ACEOF 1002 { 1003 cat <<_ASUNAME 1004 ## --------- ## 1005 ## Platform. ## 1006 ## --------- ## 1007 1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1009 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1010 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1011 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1012 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1013 1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1016 1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1024 1025 _ASUNAME 1026 1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1028 for as_dir in $PATH 1029 do 1030 IFS=$as_save_IFS 1031 test -z "$as_dir" && as_dir=. 1032 echo "PATH: $as_dir" 1033 done 1034 1035 } >&5 1036 1037 cat >&5 <<_ACEOF 1038 1039 1040 ## ----------- ## 1041 ## Core tests. ## 1042 ## ----------- ## 1043 1044 _ACEOF 1045 1046 1047 # Keep a trace of the command line. 1048 # Strip out --no-create and --no-recursion so they do not pile up. 1049 # Strip out --silent because we don't want to record it for future runs. 1050 # Also quote any args containing shell meta-characters. 1051 # Make two passes to allow for proper duplicate-argument suppression. 1052 ac_configure_args= 1053 ac_configure_args0= 1054 ac_configure_args1= 1055 ac_sep= 1056 ac_must_keep_next=false 1057 for ac_pass in 1 2 1058 do 1059 for ac_arg 1060 do 1061 case $ac_arg in 1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1064 | -silent | --silent | --silen | --sile | --sil) 1065 continue ;; 1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1068 esac 1069 case $ac_pass in 1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1071 2) 1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1073 if test $ac_must_keep_next = true; then 1074 ac_must_keep_next=false # Got value, back to normal. 1075 else 1076 case $ac_arg in 1077 *=* | --config-cache | -C | -disable-* | --disable-* \ 1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1080 | -with-* | --with-* | -without-* | --without-* | --x) 1081 case "$ac_configure_args0 " in 1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1083 esac 1084 ;; 1085 -* ) ac_must_keep_next=true ;; 1086 esac 1087 fi 1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1089 # Get rid of the leading space. 1090 ac_sep=" " 1091 ;; 1092 esac 1093 done 1094 done 1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1097 1098 # When interrupted or exit'd, cleanup temporary files, and complete 1099 # config.log. We remove comments because anyway the quotes in there 1100 # would cause problems or look ugly. 1101 # WARNING: Be sure not to use single quotes in there, as some shells, 1102 # such as our DU 5.0 friend, will then `close' the trap. 1103 trap 'exit_status=$? 1104 # Save into config.log some information that might help in debugging. 1105 { 1106 echo 1107 1108 cat <<\_ASBOX 1109 ## ---------------- ## 1110 ## Cache variables. ## 1111 ## ---------------- ## 1112 _ASBOX 1113 echo 1114 # The following way of writing the cache mishandles newlines in values, 1115 { 1116 (set) 2>&1 | 1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1118 *ac_space=\ *) 1119 sed -n \ 1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1122 ;; 1123 *) 1124 sed -n \ 1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1126 ;; 1127 esac; 1128 } 1129 echo 1130 1131 cat <<\_ASBOX 1132 ## ----------------- ## 1133 ## Output variables. ## 1134 ## ----------------- ## 1135 _ASBOX 1136 echo 1137 for ac_var in $ac_subst_vars 1138 do 1139 eval ac_val=$`echo $ac_var` 1140 echo "$ac_var='"'"'$ac_val'"'"'" 1141 done | sort 1142 echo 1143 1144 if test -n "$ac_subst_files"; then 1145 cat <<\_ASBOX 1146 ## ------------- ## 1147 ## Output files. ## 1148 ## ------------- ## 1149 _ASBOX 1150 echo 1151 for ac_var in $ac_subst_files 1152 do 1153 eval ac_val=$`echo $ac_var` 1154 echo "$ac_var='"'"'$ac_val'"'"'" 1155 done | sort 1156 echo 1157 fi 1158 1159 if test -s confdefs.h; then 1160 cat <<\_ASBOX 1161 ## ----------- ## 1162 ## confdefs.h. ## 1163 ## ----------- ## 1164 _ASBOX 1165 echo 1166 sed "/^$/d" confdefs.h | sort 1167 echo 1168 fi 1169 test "$ac_signal" != 0 && 1170 echo "$as_me: caught signal $ac_signal" 1171 echo "$as_me: exit $exit_status" 1172 } >&5 1173 rm -f core *.core && 1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1175 exit $exit_status 1176 ' 0 1177 for ac_signal in 1 2 13 15; do 1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1179 done 1180 ac_signal=0 1181 1182 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1183 rm -rf conftest* confdefs.h 1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1185 echo >confdefs.h 1186 1187 # Predefined preprocessor variables. 1188 1189 cat >>confdefs.h <<_ACEOF 1190 #define PACKAGE_NAME "$PACKAGE_NAME" 1191 _ACEOF 1192 1193 1194 cat >>confdefs.h <<_ACEOF 1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1196 _ACEOF 1197 1198 1199 cat >>confdefs.h <<_ACEOF 1200 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1201 _ACEOF 1202 1203 1204 cat >>confdefs.h <<_ACEOF 1205 #define PACKAGE_STRING "$PACKAGE_STRING" 1206 _ACEOF 1207 1208 1209 cat >>confdefs.h <<_ACEOF 1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1211 _ACEOF 1212 1213 1214 # Let the site file select an alternate cache file if it wants to. 511 1215 # Prefer explicitly selected file to automatically selected ones. 512 1216 if test -z "$CONFIG_SITE"; then … … 519 1223 for ac_site_file in $CONFIG_SITE; do 520 1224 if test -r "$ac_site_file"; then 521 echo "loading site script $ac_site_file" 1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1226 echo "$as_me: loading site script $ac_site_file" >&6;} 1227 sed 's/^/| /' "$ac_site_file" >&5 522 1228 . "$ac_site_file" 523 1229 fi … … 525 1231 526 1232 if test -r "$cache_file"; then 527 echo "loading cache $cache_file" 528 . $cache_file 529 else 530 echo "creating cache $cache_file" 531 > $cache_file 1233 # Some versions of bash will fail to source /dev/null (special 1234 # files actually), so we avoid doing that. 1235 if test -f "$cache_file"; then 1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1237 echo "$as_me: loading cache $cache_file" >&6;} 1238 case $cache_file in 1239 [\\/]* | ?:[\\/]* ) . $cache_file;; 1240 *) . ./$cache_file;; 1241 esac 1242 fi 1243 else 1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1245 echo "$as_me: creating cache $cache_file" >&6;} 1246 >$cache_file 1247 fi 1248 1249 # Check that the precious variables saved in the cache have kept the same 1250 # value. 1251 ac_cache_corrupted=false 1252 for ac_var in `(set) 2>&1 | 1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1255 eval ac_new_set=\$ac_env_${ac_var}_set 1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1257 eval ac_new_val="\$ac_env_${ac_var}_value" 1258 case $ac_old_set,$ac_new_set in 1259 set,) 1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1262 ac_cache_corrupted=: ;; 1263 ,set) 1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1266 ac_cache_corrupted=: ;; 1267 ,);; 1268 *) 1269 if test "x$ac_old_val" != "x$ac_new_val"; then 1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1273 echo "$as_me: former value: $ac_old_val" >&2;} 1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1275 echo "$as_me: current value: $ac_new_val" >&2;} 1276 ac_cache_corrupted=: 1277 fi;; 1278 esac 1279 # Pass precious variables to config.status. 1280 if test "$ac_new_set" = set; then 1281 case $ac_new_val in 1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1284 *) ac_arg=$ac_var=$ac_new_val ;; 1285 esac 1286 case " $ac_configure_args " in 1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1289 esac 1290 fi 1291 done 1292 if $ac_cache_corrupted; then 1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1297 { (exit 1); exit 1; }; } 532 1298 fi 533 1299 534 1300 ac_ext=c 535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.536 1301 ac_cpp='$CPP $CPPFLAGS' 537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 539 cross_compiling=$ac_cv_prog_cc_cross 540 541 ac_exeext= 542 ac_objext=o 543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 546 ac_n= ac_c=' 547 ' ac_t=' ' 548 else 549 ac_n=-n ac_c= ac_t= 550 fi 551 else 552 ac_n= ac_c='\c' ac_t= 553 fi 554 555 556 557 558 559 echo $ac_n "checking uname for singular""... $ac_c" 1>&6 560 echo "configure:561: checking uname for singular" >&5 561 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then 562 echo $ac_n "(cached) $ac_c" 1>&6 1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 ac_config_headers="$ac_config_headers mod2.h" 1325 1326 1327 1328 echo "$as_me:$LINENO: checking uname for singular" >&5 1329 echo $ECHO_N "checking uname for singular... $ECHO_C" >&6 1330 if test "${ac_cv_singuname+set}" = set; then 1331 echo $ECHO_N "(cached) $ECHO_C" >&6 563 1332 else 564 1333 ac_cv_singuname="unknown" … … 576 1345 fi 577 1346 578 echo "$ac_t""$ac_cv_singuname" 1>&6 1347 echo "$as_me:$LINENO: result: $ac_cv_singuname" >&5 1348 echo "${ECHO_T}$ac_cv_singuname" >&6 579 1349 if test "$ac_cv_singuname" = unknown; then 580 echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2 1350 { echo "$as_me:$LINENO: WARNING: Unknown architecture: Check singuname.sh" >&5 1351 echo "$as_me: WARNING: Unknown architecture: Check singuname.sh" >&2;} 581 1352 ac_cv_singuname="unknown" 582 1353 fi 583 cat >> confdefs.h <<EOF1354 cat >>confdefs.h <<_ACEOF 584 1355 #define S_UNAME "$ac_cv_singuname" 585 EOF1356 _ACEOF 586 1357 587 1358 SINGUNAME=$ac_cv_singuname … … 604 1375 SINGULAR_SUB_VERSION=${SINGULAR_SUB_VERSION:-2} 605 1376 SINGULAR_VERSION="${SINGULAR_VERSION:-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}" 606 VERSION_DATE=${VERSION_DATE:-" August 2001"}607 608 609 610 611 612 613 cat >> confdefs.h <<EOF1377 VERSION_DATE=${VERSION_DATE:-"July 2003"} 1378 1379 1380 1381 1382 1383 1384 cat >>confdefs.h <<_ACEOF 614 1385 #define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION} 615 EOF616 617 cat >> confdefs.h <<EOF1386 _ACEOF 1387 1388 cat >>confdefs.h <<_ACEOF 618 1389 #define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION} 619 EOF620 621 cat >> confdefs.h <<EOF1390 _ACEOF 1391 1392 cat >>confdefs.h <<_ACEOF 622 1393 #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} 623 EOF624 625 cat >> confdefs.h <<EOF1394 _ACEOF 1395 1396 cat >>confdefs.h <<_ACEOF 626 1397 #define S_VERSION1 "${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}" 627 EOF628 629 cat >> confdefs.h <<EOF1398 _ACEOF 1399 1400 cat >>confdefs.h <<_ACEOF 630 1401 #define S_VERSION2 "${VERSION_DATE}" 631 EOF632 633 cat >> confdefs.h <<EOF1402 _ACEOF 1403 1404 cat >>confdefs.h <<_ACEOF 634 1405 #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} 635 EOF1406 _ACEOF 636 1407 637 1408 … … 652 1423 ac_cxx_set=yes 653 1424 fi 654 # Extract the first word of "gcc", so it can be a program name with args. 655 set dummy gcc; ac_word=$2 656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 657 echo "configure:658: checking for $ac_word" >&5 658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 659 echo $ac_n "(cached) $ac_c" 1>&6 1425 ac_ext=c 1426 ac_cpp='$CPP $CPPFLAGS' 1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1430 if test -n "$ac_tool_prefix"; then 1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1433 echo "$as_me:$LINENO: checking for $ac_word" >&5 1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1435 if test "${ac_cv_prog_CC+set}" = set; then 1436 echo $ECHO_N "(cached) $ECHO_C" >&6 660 1437 else 661 1438 if test -n "$CC"; then 662 1439 ac_cv_prog_CC="$CC" # Let the user override the test. 663 1440 else 664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 665 ac_dummy="$PATH" 666 for ac_dir in $ac_dummy; do 667 test -z "$ac_dir" && ac_dir=. 668 if test -f $ac_dir/$ac_word; then 669 ac_cv_prog_CC="gcc" 670 break 671 fi 672 done 673 IFS="$ac_save_ifs" 674 fi 675 fi 676 CC="$ac_cv_prog_CC" 1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1442 for as_dir in $PATH 1443 do 1444 IFS=$as_save_IFS 1445 test -z "$as_dir" && as_dir=. 1446 for ac_exec_ext in '' $ac_executable_extensions; do 1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1448 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1450 break 2 1451 fi 1452 done 1453 done 1454 1455 fi 1456 fi 1457 CC=$ac_cv_prog_CC 677 1458 if test -n "$CC"; then 678 echo "$ac_t""$CC" 1>&6 679 else 680 echo "$ac_t""no" 1>&6 681 fi 682 1459 echo "$as_me:$LINENO: result: $CC" >&5 1460 echo "${ECHO_T}$CC" >&6 1461 else 1462 echo "$as_me:$LINENO: result: no" >&5 1463 echo "${ECHO_T}no" >&6 1464 fi 1465 1466 fi 1467 if test -z "$ac_cv_prog_CC"; then 1468 ac_ct_CC=$CC 1469 # Extract the first word of "gcc", so it can be a program name with args. 1470 set dummy gcc; ac_word=$2 1471 echo "$as_me:$LINENO: checking for $ac_word" >&5 1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1474 echo $ECHO_N "(cached) $ECHO_C" >&6 1475 else 1476 if test -n "$ac_ct_CC"; then 1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1478 else 1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1480 for as_dir in $PATH 1481 do 1482 IFS=$as_save_IFS 1483 test -z "$as_dir" && as_dir=. 1484 for ac_exec_ext in '' $ac_executable_extensions; do 1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1486 ac_cv_prog_ac_ct_CC="gcc" 1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1488 break 2 1489 fi 1490 done 1491 done 1492 1493 fi 1494 fi 1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1496 if test -n "$ac_ct_CC"; then 1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1498 echo "${ECHO_T}$ac_ct_CC" >&6 1499 else 1500 echo "$as_me:$LINENO: result: no" >&5 1501 echo "${ECHO_T}no" >&6 1502 fi 1503 1504 CC=$ac_ct_CC 1505 else 1506 CC="$ac_cv_prog_CC" 1507 fi 1508 1509 if test -z "$CC"; then 1510 if test -n "$ac_tool_prefix"; then 1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1512 set dummy ${ac_tool_prefix}cc; ac_word=$2 1513 echo "$as_me:$LINENO: checking for $ac_word" >&5 1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1515 if test "${ac_cv_prog_CC+set}" = set; then 1516 echo $ECHO_N "(cached) $ECHO_C" >&6 1517 else 1518 if test -n "$CC"; then 1519 ac_cv_prog_CC="$CC" # Let the user override the test. 1520 else 1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1522 for as_dir in $PATH 1523 do 1524 IFS=$as_save_IFS 1525 test -z "$as_dir" && as_dir=. 1526 for ac_exec_ext in '' $ac_executable_extensions; do 1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1528 ac_cv_prog_CC="${ac_tool_prefix}cc" 1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1530 break 2 1531 fi 1532 done 1533 done 1534 1535 fi 1536 fi 1537 CC=$ac_cv_prog_CC 1538 if test -n "$CC"; then 1539 echo "$as_me:$LINENO: result: $CC" >&5 1540 echo "${ECHO_T}$CC" >&6 1541 else 1542 echo "$as_me:$LINENO: result: no" >&5 1543 echo "${ECHO_T}no" >&6 1544 fi 1545 1546 fi 1547 if test -z "$ac_cv_prog_CC"; then 1548 ac_ct_CC=$CC 1549 # Extract the first word of "cc", so it can be a program name with args. 1550 set dummy cc; ac_word=$2 1551 echo "$as_me:$LINENO: checking for $ac_word" >&5 1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1554 echo $ECHO_N "(cached) $ECHO_C" >&6 1555 else 1556 if test -n "$ac_ct_CC"; then 1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1558 else 1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1560 for as_dir in $PATH 1561 do 1562 IFS=$as_save_IFS 1563 test -z "$as_dir" && as_dir=. 1564 for ac_exec_ext in '' $ac_executable_extensions; do 1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1566 ac_cv_prog_ac_ct_CC="cc" 1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1568 break 2 1569 fi 1570 done 1571 done 1572 1573 fi 1574 fi 1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1576 if test -n "$ac_ct_CC"; then 1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1578 echo "${ECHO_T}$ac_ct_CC" >&6 1579 else 1580 echo "$as_me:$LINENO: result: no" >&5 1581 echo "${ECHO_T}no" >&6 1582 fi 1583 1584 CC=$ac_ct_CC 1585 else 1586 CC="$ac_cv_prog_CC" 1587 fi 1588 1589 fi 683 1590 if test -z "$CC"; then 684 1591 # Extract the first word of "cc", so it can be a program name with args. 685 1592 set dummy cc; ac_word=$2 686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6687 echo "configure:688: checking for $ac_word" >&5688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then689 echo $ ac_n "(cached) $ac_c" 1>&61593 echo "$as_me:$LINENO: checking for $ac_word" >&5 1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1595 if test "${ac_cv_prog_CC+set}" = set; then 1596 echo $ECHO_N "(cached) $ECHO_C" >&6 690 1597 else 691 1598 if test -n "$CC"; then 692 1599 ac_cv_prog_CC="$CC" # Let the user override the test. 693 1600 else 694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"695 1601 ac_prog_rejected=no 696 ac_dummy="$PATH" 697 for ac_dir in $ac_dummy; do 698 test -z "$ac_dir" && ac_dir=. 699 if test -f $ac_dir/$ac_word; then 700 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 701 ac_prog_rejected=yes 702 continue 703 fi 704 ac_cv_prog_CC="cc" 705 break 706 fi 707 done 708 IFS="$ac_save_ifs" 1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1603 for as_dir in $PATH 1604 do 1605 IFS=$as_save_IFS 1606 test -z "$as_dir" && as_dir=. 1607 for ac_exec_ext in '' $ac_executable_extensions; do 1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1610 ac_prog_rejected=yes 1611 continue 1612 fi 1613 ac_cv_prog_CC="cc" 1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1615 break 2 1616 fi 1617 done 1618 done 1619 709 1620 if test $ac_prog_rejected = yes; then 710 1621 # We found a bogon in the path, so make sure we never use it. 711 1622 set dummy $ac_cv_prog_CC 712 1623 shift 713 if test $# -gt0; then1624 if test $# != 0; then 714 1625 # We chose a different compiler from the bogus one. 715 1626 # However, it has the same basename, so the bogon will be chosen 716 1627 # first if we set CC to just the basename; use the full file name. 717 1628 shift 718 set dummy "$ac_dir/$ac_word" "$@" 719 shift 720 ac_cv_prog_CC="$@" 1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 721 1630 fi 722 1631 fi 723 1632 fi 724 1633 fi 725 CC= "$ac_cv_prog_CC"1634 CC=$ac_cv_prog_CC 726 1635 if test -n "$CC"; then 727 echo "$ac_t""$CC" 1>&6 728 else 729 echo "$ac_t""no" 1>&6 730 fi 731 732 if test -z "$CC"; then 733 case "`uname -s`" in 734 *win32* | *WIN32*) 735 # Extract the first word of "cl", so it can be a program name with args. 736 set dummy cl; ac_word=$2 737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 738 echo "configure:739: checking for $ac_word" >&5 739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 740 echo $ac_n "(cached) $ac_c" 1>&6 1636 echo "$as_me:$LINENO: result: $CC" >&5 1637 echo "${ECHO_T}$CC" >&6 1638 else 1639 echo "$as_me:$LINENO: result: no" >&5 1640 echo "${ECHO_T}no" >&6 1641 fi 1642 1643 fi 1644 if test -z "$CC"; then 1645 if test -n "$ac_tool_prefix"; then 1646 for ac_prog in cl 1647 do 1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1650 echo "$as_me:$LINENO: checking for $ac_word" >&5 1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1652 if test "${ac_cv_prog_CC+set}" = set; then 1653 echo $ECHO_N "(cached) $ECHO_C" >&6 741 1654 else 742 1655 if test -n "$CC"; then 743 1656 ac_cv_prog_CC="$CC" # Let the user override the test. 744 1657 else 745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 746 ac_dummy="$PATH" 747 for ac_dir in $ac_dummy; do 748 test -z "$ac_dir" && ac_dir=. 749 if test -f $ac_dir/$ac_word; then 750 ac_cv_prog_CC="cl" 751 break 1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1659 for as_dir in $PATH 1660 do 1661 IFS=$as_save_IFS 1662 test -z "$as_dir" && as_dir=. 1663 for ac_exec_ext in '' $ac_executable_extensions; do 1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1667 break 2 1668 fi 1669 done 1670 done 1671 1672 fi 1673 fi 1674 CC=$ac_cv_prog_CC 1675 if test -n "$CC"; then 1676 echo "$as_me:$LINENO: result: $CC" >&5 1677 echo "${ECHO_T}$CC" >&6 1678 else 1679 echo "$as_me:$LINENO: result: no" >&5 1680 echo "${ECHO_T}no" >&6 1681 fi 1682 1683 test -n "$CC" && break 1684 done 1685 fi 1686 if test -z "$CC"; then 1687 ac_ct_CC=$CC 1688 for ac_prog in cl 1689 do 1690 # Extract the first word of "$ac_prog", so it can be a program name with args. 1691 set dummy $ac_prog; ac_word=$2 1692 echo "$as_me:$LINENO: checking for $ac_word" >&5 1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1695 echo $ECHO_N "(cached) $ECHO_C" >&6 1696 else 1697 if test -n "$ac_ct_CC"; then 1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1699 else 1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1701 for as_dir in $PATH 1702 do 1703 IFS=$as_save_IFS 1704 test -z "$as_dir" && as_dir=. 1705 for ac_exec_ext in '' $ac_executable_extensions; do 1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1707 ac_cv_prog_ac_ct_CC="$ac_prog" 1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1709 break 2 1710 fi 1711 done 1712 done 1713 1714 fi 1715 fi 1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1717 if test -n "$ac_ct_CC"; then 1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1719 echo "${ECHO_T}$ac_ct_CC" >&6 1720 else 1721 echo "$as_me:$LINENO: result: no" >&5 1722 echo "${ECHO_T}no" >&6 1723 fi 1724 1725 test -n "$ac_ct_CC" && break 1726 done 1727 1728 CC=$ac_ct_CC 1729 fi 1730 1731 fi 1732 1733 1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1735 See \`config.log' for more details." >&5 1736 echo "$as_me: error: no acceptable C compiler found in \$PATH 1737 See \`config.log' for more details." >&2;} 1738 { (exit 1); exit 1; }; } 1739 1740 # Provide some information about the compiler. 1741 echo "$as_me:$LINENO:" \ 1742 "checking for C compiler version" >&5 1743 ac_compiler=`set X $ac_compile; echo $2` 1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1745 (eval $ac_compiler --version </dev/null >&5) 2>&5 1746 ac_status=$? 1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1748 (exit $ac_status); } 1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1750 (eval $ac_compiler -v </dev/null >&5) 2>&5 1751 ac_status=$? 1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1753 (exit $ac_status); } 1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1755 (eval $ac_compiler -V </dev/null >&5) 2>&5 1756 ac_status=$? 1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1758 (exit $ac_status); } 1759 1760 cat >conftest.$ac_ext <<_ACEOF 1761 /* confdefs.h. */ 1762 _ACEOF 1763 cat confdefs.h >>conftest.$ac_ext 1764 cat >>conftest.$ac_ext <<_ACEOF 1765 /* end confdefs.h. */ 1766 1767 int 1768 main () 1769 { 1770 1771 ; 1772 return 0; 1773 } 1774 _ACEOF 1775 ac_clean_files_save=$ac_clean_files 1776 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1777 # Try to create an executable without -o first, disregard a.out. 1778 # It will help us diagnose broken compilers, and finding out an intuition 1779 # of exeext. 1780 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1783 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1784 (eval $ac_link_default) 2>&5 1785 ac_status=$? 1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1787 (exit $ac_status); }; then 1788 # Find the output, starting from the most likely. This scheme is 1789 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1790 # resort. 1791 1792 # Be careful to initialize this variable, since it used to be cached. 1793 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1794 ac_cv_exeext= 1795 # b.out is created by i960 compilers. 1796 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1797 do 1798 test -f "$ac_file" || continue 1799 case $ac_file in 1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1801 ;; 1802 conftest.$ac_ext ) 1803 # This is the source file. 1804 ;; 1805 [ab].out ) 1806 # We found the default executable, but exeext='' is most 1807 # certainly right. 1808 break;; 1809 *.* ) 1810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1811 # FIXME: I believe we export ac_cv_exeext for Libtool, 1812 # but it would be cool to find out if it's true. Does anybody 1813 # maintain Libtool? --akim. 1814 export ac_cv_exeext 1815 break;; 1816 * ) 1817 break;; 1818 esac 1819 done 1820 else 1821 echo "$as_me: failed program was:" >&5 1822 sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1825 See \`config.log' for more details." >&5 1826 echo "$as_me: error: C compiler cannot create executables 1827 See \`config.log' for more details." >&2;} 1828 { (exit 77); exit 77; }; } 1829 fi 1830 1831 ac_exeext=$ac_cv_exeext 1832 echo "$as_me:$LINENO: result: $ac_file" >&5 1833 echo "${ECHO_T}$ac_file" >&6 1834 1835 # Check the compiler produces executables we can run. If not, either 1836 # the compiler is broken, or we cross compile. 1837 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1838 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1839 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1840 # If not cross compiling, check that we can run a simple program. 1841 if test "$cross_compiling" != yes; then 1842 if { ac_try='./$ac_file' 1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1844 (eval $ac_try) 2>&5 1845 ac_status=$? 1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1847 (exit $ac_status); }; }; then 1848 cross_compiling=no 1849 else 1850 if test "$cross_compiling" = maybe; then 1851 cross_compiling=yes 1852 else 1853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1854 If you meant to cross compile, use \`--host'. 1855 See \`config.log' for more details." >&5 1856 echo "$as_me: error: cannot run C compiled programs. 1857 If you meant to cross compile, use \`--host'. 1858 See \`config.log' for more details." >&2;} 1859 { (exit 1); exit 1; }; } 752 1860 fi 753 done754 IFS="$ac_save_ifs"755 fi756 fi757 CC="$ac_cv_prog_CC"758 if test -n "$CC"; then759 echo "$ac_t""$CC" 1>&6760 else761 echo "$ac_t""no" 1>&6762 fi763 ;;764 esac765 1861 fi 766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 767 fi 768 769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 770 echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 771 772 ac_ext=c 773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 774 ac_cpp='$CPP $CPPFLAGS' 775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 777 cross_compiling=$ac_cv_prog_cc_cross 778 779 cat > conftest.$ac_ext << EOF 780 781 #line 782 "configure" 782 #include "confdefs.h" 783 784 main(){return(0);} 785 EOF 786 if { (eval echo configure:787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 787 ac_cv_prog_cc_works=yes 788 # If we can't run a trivial program, we are probably using a cross compiler. 789 if (./conftest; exit) 2>/dev/null; then 790 ac_cv_prog_cc_cross=no 791 else 792 ac_cv_prog_cc_cross=yes 793 fi 794 else 795 echo "configure: failed program was:" >&5 796 cat conftest.$ac_ext >&5 797 ac_cv_prog_cc_works=no 798 fi 799 rm -fr conftest* 800 ac_ext=c 801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 802 ac_cpp='$CPP $CPPFLAGS' 803 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 804 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 805 cross_compiling=$ac_cv_prog_cc_cross 806 807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 808 if test $ac_cv_prog_cc_works = no; then 809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 810 fi 811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 812 echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 814 cross_compiling=$ac_cv_prog_cc_cross 815 816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 817 echo "configure:818: checking whether we are using GNU C" >&5 818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 819 echo $ac_n "(cached) $ac_c" 1>&6 820 else 821 cat > conftest.c <<EOF 822 #ifdef __GNUC__ 823 yes; 1862 fi 1863 echo "$as_me:$LINENO: result: yes" >&5 1864 echo "${ECHO_T}yes" >&6 1865 1866 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1867 ac_clean_files=$ac_clean_files_save 1868 # Check the compiler produces executables we can run. If not, either 1869 # the compiler is broken, or we cross compile. 1870 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1872 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1873 echo "${ECHO_T}$cross_compiling" >&6 1874 1875 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1878 (eval $ac_link) 2>&5 1879 ac_status=$? 1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1881 (exit $ac_status); }; then 1882 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1884 # work properly (i.e., refer to `conftest.exe'), while it won't with 1885 # `rm'. 1886 for ac_file in conftest.exe conftest conftest.*; do 1887 test -f "$ac_file" || continue 1888 case $ac_file in 1889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1891 export ac_cv_exeext 1892 break;; 1893 * ) break;; 1894 esac 1895 done 1896 else 1897 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1898 See \`config.log' for more details." >&5 1899 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1900 See \`config.log' for more details." >&2;} 1901 { (exit 1); exit 1; }; } 1902 fi 1903 1904 rm -f conftest$ac_cv_exeext 1905 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1906 echo "${ECHO_T}$ac_cv_exeext" >&6 1907 1908 rm -f conftest.$ac_ext 1909 EXEEXT=$ac_cv_exeext 1910 ac_exeext=$EXEEXT 1911 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1912 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1913 if test "${ac_cv_objext+set}" = set; then 1914 echo $ECHO_N "(cached) $ECHO_C" >&6 1915 else 1916 cat >conftest.$ac_ext <<_ACEOF 1917 /* confdefs.h. */ 1918 _ACEOF 1919 cat confdefs.h >>conftest.$ac_ext 1920 cat >>conftest.$ac_ext <<_ACEOF 1921 /* end confdefs.h. */ 1922 1923 int 1924 main () 1925 { 1926 1927 ; 1928 return 0; 1929 } 1930 _ACEOF 1931 rm -f conftest.o conftest.obj 1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1933 (eval $ac_compile) 2>&5 1934 ac_status=$? 1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1936 (exit $ac_status); }; then 1937 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1938 case $ac_file in 1939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1941 break;; 1942 esac 1943 done 1944 else 1945 echo "$as_me: failed program was:" >&5 1946 sed 's/^/| /' conftest.$ac_ext >&5 1947 1948 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1949 See \`config.log' for more details." >&5 1950 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1951 See \`config.log' for more details." >&2;} 1952 { (exit 1); exit 1; }; } 1953 fi 1954 1955 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1956 fi 1957 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1958 echo "${ECHO_T}$ac_cv_objext" >&6 1959 OBJEXT=$ac_cv_objext 1960 ac_objext=$OBJEXT 1961 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1963 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1964 echo $ECHO_N "(cached) $ECHO_C" >&6 1965 else 1966 cat >conftest.$ac_ext <<_ACEOF 1967 /* confdefs.h. */ 1968 _ACEOF 1969 cat confdefs.h >>conftest.$ac_ext 1970 cat >>conftest.$ac_ext <<_ACEOF 1971 /* end confdefs.h. */ 1972 1973 int 1974 main () 1975 { 1976 #ifndef __GNUC__ 1977 choke me 824 1978 #endif 825 EOF 826 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 827 ac_cv_prog_gcc=yes 828 else 829 ac_cv_prog_gcc=no 830 fi 831 fi 832 833 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 834 835 if test $ac_cv_prog_gcc = yes; then 836 GCC=yes 837 else 838 GCC= 839 fi 840 841 ac_test_CFLAGS="${CFLAGS+set}" 842 ac_save_CFLAGS="$CFLAGS" 843 CFLAGS= 844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5 846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 847 echo $ac_n "(cached) $ac_c" 1>&6 848 else 849 echo 'void f(){}' > conftest.c 850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1979 1980 ; 1981 return 0; 1982 } 1983 _ACEOF 1984 rm -f conftest.$ac_objext 1985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1986 (eval $ac_compile) 2>conftest.er1 1987 ac_status=$? 1988 grep -v '^ *+' conftest.er1 >conftest.err 1989 rm -f conftest.er1 1990 cat conftest.err >&5 1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1992 (exit $ac_status); } && 1993 { ac_try='test -z "$ac_c_werror_flag" 1994 || test ! -s conftest.err' 1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1996 (eval $ac_try) 2>&5 1997 ac_status=$? 1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1999 (exit $ac_status); }; } && 2000 { ac_try='test -s conftest.$ac_objext' 2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2002 (eval $ac_try) 2>&5 2003 ac_status=$? 2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2005 (exit $ac_status); }; }; then 2006 ac_compiler_gnu=yes 2007 else 2008 echo "$as_me: failed program was:" >&5 2009 sed 's/^/| /' conftest.$ac_ext >&5 2010 2011 ac_compiler_gnu=no 2012 fi 2013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2014 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2015 2016 fi 2017 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2018 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2019 GCC=`test $ac_compiler_gnu = yes && echo yes` 2020 ac_test_CFLAGS=${CFLAGS+set} 2021 ac_save_CFLAGS=$CFLAGS 2022 CFLAGS="-g" 2023 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2024 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2025 if test "${ac_cv_prog_cc_g+set}" = set; then 2026 echo $ECHO_N "(cached) $ECHO_C" >&6 2027 else 2028 cat >conftest.$ac_ext <<_ACEOF 2029 /* confdefs.h. */ 2030 _ACEOF 2031 cat confdefs.h >>conftest.$ac_ext 2032 cat >>conftest.$ac_ext <<_ACEOF 2033 /* end confdefs.h. */ 2034 2035 int 2036 main () 2037 { 2038 2039 ; 2040 return 0; 2041 } 2042 _ACEOF 2043 rm -f conftest.$ac_objext 2044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2045 (eval $ac_compile) 2>conftest.er1 2046 ac_status=$? 2047 grep -v '^ *+' conftest.er1 >conftest.err 2048 rm -f conftest.er1 2049 cat conftest.err >&5 2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2051 (exit $ac_status); } && 2052 { ac_try='test -z "$ac_c_werror_flag" 2053 || test ! -s conftest.err' 2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2055 (eval $ac_try) 2>&5 2056 ac_status=$? 2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2058 (exit $ac_status); }; } && 2059 { ac_try='test -s conftest.$ac_objext' 2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2061 (eval $ac_try) 2>&5 2062 ac_status=$? 2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2064 (exit $ac_status); }; }; then 851 2065 ac_cv_prog_cc_g=yes 852 2066 else 853 ac_cv_prog_cc_g=no 854 fi 855 rm -f conftest* 856 857 fi 858 859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2067 echo "$as_me: failed program was:" >&5 2068 sed 's/^/| /' conftest.$ac_ext >&5 2069 2070 ac_cv_prog_cc_g=no 2071 fi 2072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2073 fi 2074 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2075 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 860 2076 if test "$ac_test_CFLAGS" = set; then 861 CFLAGS= "$ac_save_CFLAGS"2077 CFLAGS=$ac_save_CFLAGS 862 2078 elif test $ac_cv_prog_cc_g = yes; then 863 2079 if test "$GCC" = yes; then … … 873 2089 fi 874 2090 fi 875 876 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 877 echo "configure:878: checking how to run the C preprocessor" >&5 2091 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2092 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2093 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2094 echo $ECHO_N "(cached) $ECHO_C" >&6 2095 else 2096 ac_cv_prog_cc_stdc=no 2097 ac_save_CC=$CC 2098 cat >conftest.$ac_ext <<_ACEOF 2099 /* confdefs.h. */ 2100 _ACEOF 2101 cat confdefs.h >>conftest.$ac_ext 2102 cat >>conftest.$ac_ext <<_ACEOF 2103 /* end confdefs.h. */ 2104 #include <stdarg.h> 2105 #include <stdio.h> 2106 #include <sys/types.h> 2107 #include <sys/stat.h> 2108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2109 struct buf { int x; }; 2110 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2111 static char *e (p, i) 2112 char **p; 2113 int i; 2114 { 2115 return p[i]; 2116 } 2117 static char *f (char * (*g) (char **, int), char **p, ...) 2118 { 2119 char *s; 2120 va_list v; 2121 va_start (v,p); 2122 s = g (p, va_arg (v,int)); 2123 va_end (v); 2124 return s; 2125 } 2126 2127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2128 function prototypes and stuff, but not '\xHH' hex character constants. 2129 These don't provoke an error unfortunately, instead are silently treated 2130 as 'x'. The following induces an error, until -std1 is added to get 2131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2132 array size at least. It's necessary to write '\x00'==0 to get something 2133 that's true only with -std1. */ 2134 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2135 2136 int test (int i, double x); 2137 struct s1 {int (*f) (int a);}; 2138 struct s2 {int (*f) (double a);}; 2139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2140 int argc; 2141 char **argv; 2142 int 2143 main () 2144 { 2145 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2146 ; 2147 return 0; 2148 } 2149 _ACEOF 2150 # Don't try gcc -ansi; that turns off useful extensions and 2151 # breaks some systems' header files. 2152 # AIX -qlanglvl=ansi 2153 # Ultrix and OSF/1 -std1 2154 # HP-UX 10.20 and later -Ae 2155 # HP-UX older versions -Aa -D_HPUX_SOURCE 2156 # SVR4 -Xc -D__EXTENSIONS__ 2157 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2158 do 2159 CC="$ac_save_CC $ac_arg" 2160 rm -f conftest.$ac_objext 2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2162 (eval $ac_compile) 2>conftest.er1 2163 ac_status=$? 2164 grep -v '^ *+' conftest.er1 >conftest.err 2165 rm -f conftest.er1 2166 cat conftest.err >&5 2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168 (exit $ac_status); } && 2169 { ac_try='test -z "$ac_c_werror_flag" 2170 || test ! -s conftest.err' 2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2172 (eval $ac_try) 2>&5 2173 ac_status=$? 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2175 (exit $ac_status); }; } && 2176 { ac_try='test -s conftest.$ac_objext' 2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2178 (eval $ac_try) 2>&5 2179 ac_status=$? 2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2181 (exit $ac_status); }; }; then 2182 ac_cv_prog_cc_stdc=$ac_arg 2183 break 2184 else 2185 echo "$as_me: failed program was:" >&5 2186 sed 's/^/| /' conftest.$ac_ext >&5 2187 2188 fi 2189 rm -f conftest.err conftest.$ac_objext 2190 done 2191 rm -f conftest.$ac_ext conftest.$ac_objext 2192 CC=$ac_save_CC 2193 2194 fi 2195 2196 case "x$ac_cv_prog_cc_stdc" in 2197 x|xno) 2198 echo "$as_me:$LINENO: result: none needed" >&5 2199 echo "${ECHO_T}none needed" >&6 ;; 2200 *) 2201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2202 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2203 CC="$CC $ac_cv_prog_cc_stdc" ;; 2204 esac 2205 2206 # Some people use a C++ compiler to compile C. Since we use `exit', 2207 # in C++ we need to declare it. In case someone uses the same compiler 2208 # for both compiling C and C++ we need to have the C++ compiler decide 2209 # the declaration of exit, since it's the most demanding environment. 2210 cat >conftest.$ac_ext <<_ACEOF 2211 #ifndef __cplusplus 2212 choke me 2213 #endif 2214 _ACEOF 2215 rm -f conftest.$ac_objext 2216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2217 (eval $ac_compile) 2>conftest.er1 2218 ac_status=$? 2219 grep -v '^ *+' conftest.er1 >conftest.err 2220 rm -f conftest.er1 2221 cat conftest.err >&5 2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2223 (exit $ac_status); } && 2224 { ac_try='test -z "$ac_c_werror_flag" 2225 || test ! -s conftest.err' 2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2227 (eval $ac_try) 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 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2240 'extern "C" void std::exit (int); using std::exit;' \ 2241 'extern "C" void exit (int) throw ();' \ 2242 'extern "C" void exit (int);' \ 2243 'void exit (int);' 2244 do 2245 cat >conftest.$ac_ext <<_ACEOF 2246 /* confdefs.h. */ 2247 _ACEOF 2248 cat confdefs.h >>conftest.$ac_ext 2249 cat >>conftest.$ac_ext <<_ACEOF 2250 /* end confdefs.h. */ 2251 $ac_declaration 2252 #include <stdlib.h> 2253 int 2254 main () 2255 { 2256 exit (42); 2257 ; 2258 return 0; 2259 } 2260 _ACEOF 2261 rm -f conftest.$ac_objext 2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2263 (eval $ac_compile) 2>conftest.er1 2264 ac_status=$? 2265 grep -v '^ *+' conftest.er1 >conftest.err 2266 rm -f conftest.er1 2267 cat conftest.err >&5 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 (exit $ac_status); } && 2270 { ac_try='test -z "$ac_c_werror_flag" 2271 || test ! -s conftest.err' 2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2273 (eval $ac_try) 2>&5 2274 ac_status=$? 2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2276 (exit $ac_status); }; } && 2277 { ac_try='test -s conftest.$ac_objext' 2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2279 (eval $ac_try) 2>&5 2280 ac_status=$? 2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2282 (exit $ac_status); }; }; then 2283 : 2284 else 2285 echo "$as_me: failed program was:" >&5 2286 sed 's/^/| /' conftest.$ac_ext >&5 2287 2288 continue 2289 fi 2290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2291 cat >conftest.$ac_ext <<_ACEOF 2292 /* confdefs.h. */ 2293 _ACEOF 2294 cat confdefs.h >>conftest.$ac_ext 2295 cat >>conftest.$ac_ext <<_ACEOF 2296 /* end confdefs.h. */ 2297 $ac_declaration 2298 int 2299 main () 2300 { 2301 exit (42); 2302 ; 2303 return 0; 2304 } 2305 _ACEOF 2306 rm -f conftest.$ac_objext 2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2308 (eval $ac_compile) 2>conftest.er1 2309 ac_status=$? 2310 grep -v '^ *+' conftest.er1 >conftest.err 2311 rm -f conftest.er1 2312 cat conftest.err >&5 2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2314 (exit $ac_status); } && 2315 { ac_try='test -z "$ac_c_werror_flag" 2316 || test ! -s conftest.err' 2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2318 (eval $ac_try) 2>&5 2319 ac_status=$? 2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2321 (exit $ac_status); }; } && 2322 { ac_try='test -s conftest.$ac_objext' 2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2324 (eval $ac_try) 2>&5 2325 ac_status=$? 2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2327 (exit $ac_status); }; }; then 2328 break 2329 else 2330 echo "$as_me: failed program was:" >&5 2331 sed 's/^/| /' conftest.$ac_ext >&5 2332 2333 fi 2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2335 done 2336 rm -f conftest* 2337 if test -n "$ac_declaration"; then 2338 echo '#ifdef __cplusplus' >>confdefs.h 2339 echo $ac_declaration >>confdefs.h 2340 echo '#endif' >>confdefs.h 2341 fi 2342 2343 else 2344 echo "$as_me: failed program was:" >&5 2345 sed 's/^/| /' conftest.$ac_ext >&5 2346 2347 fi 2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2349 ac_ext=c 2350 ac_cpp='$CPP $CPPFLAGS' 2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2354 2355 ac_ext=c 2356 ac_cpp='$CPP $CPPFLAGS' 2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2360 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2361 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 878 2362 # On Suns, sometimes $CPP names a directory. 879 2363 if test -n "$CPP" && test -d "$CPP"; then … … 881 2365 fi 882 2366 if test -z "$CPP"; then 883 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 884 echo $ac_n "(cached) $ac_c" 1>&6 885 else 886 # This must be in double quotes, not single quotes, because CPP may get 887 # substituted into the Makefile and "${CC-cc}" will confuse make. 888 CPP="${CC-cc} -E" 2367 if test "${ac_cv_prog_CPP+set}" = set; then 2368 echo $ECHO_N "(cached) $ECHO_C" >&6 2369 else 2370 # Double quotes because CPP needs to be expanded 2371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2372 do 2373 ac_preproc_ok=false 2374 for ac_c_preproc_warn_flag in '' yes 2375 do 2376 # Use a header file that comes with gcc, so configuring glibc 2377 # with a fresh cross-compiler works. 2378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2379 # <limits.h> exists even on freestanding compilers. 889 2380 # On the NeXT, cc -E runs the code through the compiler's parser, 890 # not just through cpp. 891 cat > conftest.$ac_ext <<EOF 892 #line 893 "configure" 893 #include "confdefs.h" 894 #include <assert.h> 895 Syntax Error 896 EOF 897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 898 { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 900 if test -z "$ac_err"; then 2381 # not just through cpp. "Syntax error" is here to catch this case. 2382 cat >conftest.$ac_ext <<_ACEOF 2383 /* confdefs.h. */ 2384 _ACEOF 2385 cat confdefs.h >>conftest.$ac_ext 2386 cat >>conftest.$ac_ext <<_ACEOF 2387 /* end confdefs.h. */ 2388 #ifdef __STDC__ 2389 # include <limits.h> 2390 #else 2391 # include <assert.h> 2392 #endif 2393 Syntax error 2394 _ACEOF 2395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2397 ac_status=$? 2398 grep -v '^ *+' conftest.er1 >conftest.err 2399 rm -f conftest.er1 2400 cat conftest.err >&5 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); } >/dev/null; then 2403 if test -s conftest.err; then 2404 ac_cpp_err=$ac_c_preproc_warn_flag 2405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2406 else 2407 ac_cpp_err= 2408 fi 2409 else 2410 ac_cpp_err=yes 2411 fi 2412 if test -z "$ac_cpp_err"; then 901 2413 : 902 2414 else 903 echo "$ac_err" >&5 904 echo "configure: failed program was:" >&5 905 cat conftest.$ac_ext >&5 906 rm -rf conftest* 907 CPP="${CC-cc} -E -traditional-cpp" 908 cat > conftest.$ac_ext <<EOF 909 #line 910 "configure" 910 #include "confdefs.h" 911 #include <assert.h> 912 Syntax Error 913 EOF 914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 915 { (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 917 if test -z "$ac_err"; then 2415 echo "$as_me: failed program was:" >&5 2416 sed 's/^/| /' conftest.$ac_ext >&5 2417 2418 # Broken: fails on valid input. 2419 continue 2420 fi 2421 rm -f conftest.err conftest.$ac_ext 2422 2423 # OK, works on sane cases. Now check whether non-existent headers 2424 # can be detected and how. 2425 cat >conftest.$ac_ext <<_ACEOF 2426 /* confdefs.h. */ 2427 _ACEOF 2428 cat confdefs.h >>conftest.$ac_ext 2429 cat >>conftest.$ac_ext <<_ACEOF 2430 /* end confdefs.h. */ 2431 #include <ac_nonexistent.h> 2432 _ACEOF 2433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2435 ac_status=$? 2436 grep -v '^ *+' conftest.er1 >conftest.err 2437 rm -f conftest.er1 2438 cat conftest.err >&5 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); } >/dev/null; then 2441 if test -s conftest.err; then 2442 ac_cpp_err=$ac_c_preproc_warn_flag 2443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2444 else 2445 ac_cpp_err= 2446 fi 2447 else 2448 ac_cpp_err=yes 2449 fi 2450 if test -z "$ac_cpp_err"; then 2451 # Broken: success on invalid input. 2452 continue 2453 else 2454 echo "$as_me: failed program was:" >&5 2455 sed 's/^/| /' conftest.$ac_ext >&5 2456 2457 # Passes both tests. 2458 ac_preproc_ok=: 2459 break 2460 fi 2461 rm -f conftest.err conftest.$ac_ext 2462 2463 done 2464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2465 rm -f conftest.err conftest.$ac_ext 2466 if $ac_preproc_ok; then 2467 break 2468 fi 2469 2470 done 2471 ac_cv_prog_CPP=$CPP 2472 2473 fi 2474 CPP=$ac_cv_prog_CPP 2475 else 2476 ac_cv_prog_CPP=$CPP 2477 fi 2478 echo "$as_me:$LINENO: result: $CPP" >&5 2479 echo "${ECHO_T}$CPP" >&6 2480 ac_preproc_ok=false 2481 for ac_c_preproc_warn_flag in '' yes 2482 do 2483 # Use a header file that comes with gcc, so configuring glibc 2484 # with a fresh cross-compiler works. 2485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2486 # <limits.h> exists even on freestanding compilers. 2487 # On the NeXT, cc -E runs the code through the compiler's parser, 2488 # not just through cpp. "Syntax error" is here to catch this case. 2489 cat >conftest.$ac_ext <<_ACEOF 2490 /* confdefs.h. */ 2491 _ACEOF 2492 cat confdefs.h >>conftest.$ac_ext 2493 cat >>conftest.$ac_ext <<_ACEOF 2494 /* end confdefs.h. */ 2495 #ifdef __STDC__ 2496 # include <limits.h> 2497 #else 2498 # include <assert.h> 2499 #endif 2500 Syntax error 2501 _ACEOF 2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2504 ac_status=$? 2505 grep -v '^ *+' conftest.er1 >conftest.err 2506 rm -f conftest.er1 2507 cat conftest.err >&5 2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2509 (exit $ac_status); } >/dev/null; then 2510 if test -s conftest.err; then 2511 ac_cpp_err=$ac_c_preproc_warn_flag 2512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2513 else 2514 ac_cpp_err= 2515 fi 2516 else 2517 ac_cpp_err=yes 2518 fi 2519 if test -z "$ac_cpp_err"; then 918 2520 : 919 2521 else 920 echo "$ac_err" >&5 921 echo "configure: failed program was:" >&5 922 cat conftest.$ac_ext >&5 923 rm -rf conftest* 924 CPP="${CC-cc} -nologo -E" 925 cat > conftest.$ac_ext <<EOF 926 #line 927 "configure" 927 #include "confdefs.h" 928 #include <assert.h> 929 Syntax Error 930 EOF 931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 934 if test -z "$ac_err"; then 2522 echo "$as_me: failed program was:" >&5 2523 sed 's/^/| /' conftest.$ac_ext >&5 2524 2525 # Broken: fails on valid input. 2526 continue 2527 fi 2528 rm -f conftest.err conftest.$ac_ext 2529 2530 # OK, works on sane cases. Now check whether non-existent headers 2531 # can be detected and how. 2532 cat >conftest.$ac_ext <<_ACEOF 2533 /* confdefs.h. */ 2534 _ACEOF 2535 cat confdefs.h >>conftest.$ac_ext 2536 cat >>conftest.$ac_ext <<_ACEOF 2537 /* end confdefs.h. */ 2538 #include <ac_nonexistent.h> 2539 _ACEOF 2540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2542 ac_status=$? 2543 grep -v '^ *+' conftest.er1 >conftest.err 2544 rm -f conftest.er1 2545 cat conftest.err >&5 2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2547 (exit $ac_status); } >/dev/null; then 2548 if test -s conftest.err; then 2549 ac_cpp_err=$ac_c_preproc_warn_flag 2550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2551 else 2552 ac_cpp_err= 2553 fi 2554 else 2555 ac_cpp_err=yes 2556 fi 2557 if test -z "$ac_cpp_err"; then 2558 # Broken: success on invalid input. 2559 continue 2560 else 2561 echo "$as_me: failed program was:" >&5 2562 sed 's/^/| /' conftest.$ac_ext >&5 2563 2564 # Passes both tests. 2565 ac_preproc_ok=: 2566 break 2567 fi 2568 rm -f conftest.err conftest.$ac_ext 2569 2570 done 2571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2572 rm -f conftest.err conftest.$ac_ext 2573 if $ac_preproc_ok; then 935 2574 : 936 2575 else 937 echo "$ac_err" >&5938 echo "configure: failed program was:" >&5939 cat conftest.$ac_ext >&5 940 rm -rf conftest* 941 CPP=/lib/cpp942 fi 943 rm -f conftest* 944 fi 945 rm -f conftest* 946 fi 947 rm -f conftest* 948 ac_cv_prog_CPP="$CPP" 949 fi 950 CPP="$ac_cv_prog_CPP" 951 else 952 ac_cv_prog_CPP="$CPP" 953 fi 954 echo "$ac_t""$CPP" 1>&6 955 956 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 957 do958 # Extract the first word of "$ac_prog", so it can be a program name with args.959 set dummy $ac_ prog; ac_word=$2960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6961 echo "configure:962: checking for $ac_word" >&5962 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then963 echo $ ac_n "(cached) $ac_c" 1>&62576 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2577 See \`config.log' for more details." >&5 2578 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2579 See \`config.log' for more details." >&2;} 2580 { (exit 1); exit 1; }; } 2581 fi 2582 2583 ac_ext=c 2584 ac_cpp='$CPP $CPPFLAGS' 2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2588 2589 ac_ext=cc 2590 ac_cpp='$CXXCPP $CPPFLAGS' 2591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2594 if test -n "$ac_tool_prefix"; then 2595 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2596 do 2597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2599 echo "$as_me:$LINENO: checking for $ac_word" >&5 2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2601 if test "${ac_cv_prog_CXX+set}" = set; then 2602 echo $ECHO_N "(cached) $ECHO_C" >&6 964 2603 else 965 2604 if test -n "$CXX"; then 966 2605 ac_cv_prog_CXX="$CXX" # Let the user override the test. 967 2606 else 968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 969 ac_dummy="$PATH" 970 for ac_dir in $ac_dummy; do 971 test -z "$ac_dir" && ac_dir=. 972 if test -f $ac_dir/$ac_word; then 973 ac_cv_prog_CXX="$ac_prog" 974 break 975 fi 2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2608 for as_dir in $PATH 2609 do 2610 IFS=$as_save_IFS 2611 test -z "$as_dir" && as_dir=. 2612 for ac_exec_ext in '' $ac_executable_extensions; do 2613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2614 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2616 break 2 2617 fi 2618 done 2619 done 2620 2621 fi 2622 fi 2623 CXX=$ac_cv_prog_CXX 2624 if test -n "$CXX"; then 2625 echo "$as_me:$LINENO: result: $CXX" >&5 2626 echo "${ECHO_T}$CXX" >&6 2627 else 2628 echo "$as_me:$LINENO: result: no" >&5 2629 echo "${ECHO_T}no" >&6 2630 fi 2631 2632 test -n "$CXX" && break 976 2633 done 977 IFS="$ac_save_ifs" 978 fi 979 fi 980 CXX="$ac_cv_prog_CXX" 981 if test -n "$CXX"; then 982 echo "$ac_t""$CXX" 1>&6 983 else 984 echo "$ac_t""no" 1>&6 985 fi 986 987 test -n "$CXX" && break 2634 fi 2635 if test -z "$CXX"; then 2636 ac_ct_CXX=$CXX 2637 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2638 do 2639 # Extract the first word of "$ac_prog", so it can be a program name with args. 2640 set dummy $ac_prog; ac_word=$2 2641 echo "$as_me:$LINENO: checking for $ac_word" >&5 2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2643 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2644 echo $ECHO_N "(cached) $ECHO_C" >&6 2645 else 2646 if test -n "$ac_ct_CXX"; then 2647 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2648 else 2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2650 for as_dir in $PATH 2651 do 2652 IFS=$as_save_IFS 2653 test -z "$as_dir" && as_dir=. 2654 for ac_exec_ext in '' $ac_executable_extensions; do 2655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2656 ac_cv_prog_ac_ct_CXX="$ac_prog" 2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2658 break 2 2659 fi 988 2660 done 989 test -n "$CXX" || CXX="gcc" 990 991 992 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 993 echo "configure:994: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 994 995 ac_ext=C 996 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 997 ac_cpp='$CXXCPP $CPPFLAGS' 998 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 999 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1000 cross_compiling=$ac_cv_prog_cxx_cross 1001 1002 cat > conftest.$ac_ext << EOF 1003 1004 #line 1005 "configure"1005 #include "confdefs.h" 1006 1007 int main(){return(0);} 1008 EOF 1009 if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1010 ac_cv_prog_cxx_works=yes 1011 # If we can't run a trivial program, we are probably using a cross compiler. 1012 if (./conftest; exit) 2>/dev/null; then1013 ac_cv_prog_cxx_cross=no 1014 else 1015 ac_cv_prog_cxx_cross=yes1016 fi1017 else 1018 echo "configure: failed program was:" >&51019 cat conftest.$ac_ext>&51020 ac_cv_prog_cxx_works=no1021 fi 1022 rm -fr conftest* 1023 ac_ext=c 1024 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1025 ac_cpp='$CPP $CPPFLAGS' 1026 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1027 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1028 cross_compiling=$ac_cv_prog_cc_cross 1029 1030 echo "$a c_t""$ac_cv_prog_cxx_works" 1>&61031 if test $ac_cv_prog_cxx_works = no; then 1032 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1033 fi 1034 e cho $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&61035 echo "configure:1036: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1036 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1037 cross_compiling=$ac_cv_prog_cxx_cross 1038 1039 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1040 echo "configure:1041: checking whether we are using GNU C++" >&5 1041 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1042 echo $ac_n "(cached) $ac_c" 1>&6 1043 else 1044 cat > conftest.C <<EOF 1045 #if def __GNUC__1046 yes;2661 done 2662 2663 fi 2664 fi 2665 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2666 if test -n "$ac_ct_CXX"; then 2667 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2668 echo "${ECHO_T}$ac_ct_CXX" >&6 2669 else 2670 echo "$as_me:$LINENO: result: no" >&5 2671 echo "${ECHO_T}no" >&6 2672 fi 2673 2674 test -n "$ac_ct_CXX" && break 2675 done 2676 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2677 2678 CXX=$ac_ct_CXX 2679 fi 2680 2681 2682 # Provide some information about the compiler. 2683 echo "$as_me:$LINENO:" \ 2684 "checking for C++ compiler version" >&5 2685 ac_compiler=`set X $ac_compile; echo $2` 2686 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2687 (eval $ac_compiler --version </dev/null >&5) 2>&5 2688 ac_status=$? 2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2690 (exit $ac_status); } 2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2692 (eval $ac_compiler -v </dev/null >&5) 2>&5 2693 ac_status=$? 2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2695 (exit $ac_status); } 2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2697 (eval $ac_compiler -V </dev/null >&5) 2>&5 2698 ac_status=$? 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); } 2701 2702 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2703 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2704 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2705 echo $ECHO_N "(cached) $ECHO_C" >&6 2706 else 2707 cat >conftest.$ac_ext <<_ACEOF 2708 /* confdefs.h. */ 2709 _ACEOF 2710 cat confdefs.h >>conftest.$ac_ext 2711 cat >>conftest.$ac_ext <<_ACEOF 2712 /* end confdefs.h. */ 2713 2714 int 2715 main () 2716 { 2717 #ifndef __GNUC__ 2718 choke me 1047 2719 #endif 1048 EOF 1049 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1050 ac_cv_prog_gxx=yes 1051 else 1052 ac_cv_prog_gxx=no 1053 fi 1054 fi 1055 1056 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1057 1058 if test $ac_cv_prog_gxx = yes; then 1059 GXX=yes 1060 else 1061 GXX= 1062 fi 1063 1064 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1065 ac_save_CXXFLAGS="$CXXFLAGS" 1066 CXXFLAGS= 1067 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1068 echo "configure:1069: checking whether ${CXX-g++} accepts -g" >&5 1069 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1070 echo $ac_n "(cached) $ac_c" 1>&6 1071 else 1072 echo 'void f(){}' > conftest.cc 1073 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2720 2721 ; 2722 return 0; 2723 } 2724 _ACEOF 2725 rm -f conftest.$ac_objext 2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2727 (eval $ac_compile) 2>conftest.er1 2728 ac_status=$? 2729 grep -v '^ *+' conftest.er1 >conftest.err 2730 rm -f conftest.er1 2731 cat conftest.err >&5 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); } && 2734 { ac_try='test -z "$ac_cxx_werror_flag" 2735 || test ! -s conftest.err' 2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2737 (eval $ac_try) 2>&5 2738 ac_status=$? 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); }; } && 2741 { ac_try='test -s conftest.$ac_objext' 2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2743 (eval $ac_try) 2>&5 2744 ac_status=$? 2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2746 (exit $ac_status); }; }; then 2747 ac_compiler_gnu=yes 2748 else 2749 echo "$as_me: failed program was:" >&5 2750 sed 's/^/| /' conftest.$ac_ext >&5 2751 2752 ac_compiler_gnu=no 2753 fi 2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2755 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2756 2757 fi 2758 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2759 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2760 GXX=`test $ac_compiler_gnu = yes && echo yes` 2761 ac_test_CXXFLAGS=${CXXFLAGS+set} 2762 ac_save_CXXFLAGS=$CXXFLAGS 2763 CXXFLAGS="-g" 2764 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2765 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2766 if test "${ac_cv_prog_cxx_g+set}" = set; then 2767 echo $ECHO_N "(cached) $ECHO_C" >&6 2768 else 2769 cat >conftest.$ac_ext <<_ACEOF 2770 /* confdefs.h. */ 2771 _ACEOF 2772 cat confdefs.h >>conftest.$ac_ext 2773 cat >>conftest.$ac_ext <<_ACEOF 2774 /* end confdefs.h. */ 2775 2776 int 2777 main () 2778 { 2779 2780 ; 2781 return 0; 2782 } 2783 _ACEOF 2784 rm -f conftest.$ac_objext 2785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2786 (eval $ac_compile) 2>conftest.er1 2787 ac_status=$? 2788 grep -v '^ *+' conftest.er1 >conftest.err 2789 rm -f conftest.er1 2790 cat conftest.err >&5 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792 (exit $ac_status); } && 2793 { ac_try='test -z "$ac_cxx_werror_flag" 2794 || test ! -s conftest.err' 2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2796 (eval $ac_try) 2>&5 2797 ac_status=$? 2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2799 (exit $ac_status); }; } && 2800 { ac_try='test -s conftest.$ac_objext' 2801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2802 (eval $ac_try) 2>&5 2803 ac_status=$? 2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805 (exit $ac_status); }; }; then 1074 2806 ac_cv_prog_cxx_g=yes 1075 2807 else 1076 ac_cv_prog_cxx_g=no 1077 fi 1078 rm -f conftest* 1079 1080 fi 1081 1082 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2808 echo "$as_me: failed program was:" >&5 2809 sed 's/^/| /' conftest.$ac_ext >&5 2810 2811 ac_cv_prog_cxx_g=no 2812 fi 2813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2814 fi 2815 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2816 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1083 2817 if test "$ac_test_CXXFLAGS" = set; then 1084 CXXFLAGS= "$ac_save_CXXFLAGS"2818 CXXFLAGS=$ac_save_CXXFLAGS 1085 2819 elif test $ac_cv_prog_cxx_g = yes; then 1086 2820 if test "$GXX" = yes; then … … 1096 2830 fi 1097 2831 fi 2832 for ac_declaration in \ 2833 '' \ 2834 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2835 'extern "C" void std::exit (int); using std::exit;' \ 2836 'extern "C" void exit (int) throw ();' \ 2837 'extern "C" void exit (int);' \ 2838 'void exit (int);' 2839 do 2840 cat >conftest.$ac_ext <<_ACEOF 2841 /* confdefs.h. */ 2842 _ACEOF 2843 cat confdefs.h >>conftest.$ac_ext 2844 cat >>conftest.$ac_ext <<_ACEOF 2845 /* end confdefs.h. */ 2846 $ac_declaration 2847 #include <stdlib.h> 2848 int 2849 main () 2850 { 2851 exit (42); 2852 ; 2853 return 0; 2854 } 2855 _ACEOF 2856 rm -f conftest.$ac_objext 2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2858 (eval $ac_compile) 2>conftest.er1 2859 ac_status=$? 2860 grep -v '^ *+' conftest.er1 >conftest.err 2861 rm -f conftest.er1 2862 cat conftest.err >&5 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2864 (exit $ac_status); } && 2865 { ac_try='test -z "$ac_cxx_werror_flag" 2866 || test ! -s conftest.err' 2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2868 (eval $ac_try) 2>&5 2869 ac_status=$? 2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2871 (exit $ac_status); }; } && 2872 { ac_try='test -s conftest.$ac_objext' 2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2874 (eval $ac_try) 2>&5 2875 ac_status=$? 2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2877 (exit $ac_status); }; }; then 2878 : 2879 else 2880 echo "$as_me: failed program was:" >&5 2881 sed 's/^/| /' conftest.$ac_ext >&5 2882 2883 continue 2884 fi 2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2886 cat >conftest.$ac_ext <<_ACEOF 2887 /* confdefs.h. */ 2888 _ACEOF 2889 cat confdefs.h >>conftest.$ac_ext 2890 cat >>conftest.$ac_ext <<_ACEOF 2891 /* end confdefs.h. */ 2892 $ac_declaration 2893 int 2894 main () 2895 { 2896 exit (42); 2897 ; 2898 return 0; 2899 } 2900 _ACEOF 2901 rm -f conftest.$ac_objext 2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2903 (eval $ac_compile) 2>conftest.er1 2904 ac_status=$? 2905 grep -v '^ *+' conftest.er1 >conftest.err 2906 rm -f conftest.er1 2907 cat conftest.err >&5 2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2909 (exit $ac_status); } && 2910 { ac_try='test -z "$ac_cxx_werror_flag" 2911 || test ! -s conftest.err' 2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2913 (eval $ac_try) 2>&5 2914 ac_status=$? 2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2916 (exit $ac_status); }; } && 2917 { ac_try='test -s conftest.$ac_objext' 2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2919 (eval $ac_try) 2>&5 2920 ac_status=$? 2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2922 (exit $ac_status); }; }; then 2923 break 2924 else 2925 echo "$as_me: failed program was:" >&5 2926 sed 's/^/| /' conftest.$ac_ext >&5 2927 2928 fi 2929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2930 done 2931 rm -f conftest* 2932 if test -n "$ac_declaration"; then 2933 echo '#ifdef __cplusplus' >>confdefs.h 2934 echo $ac_declaration >>confdefs.h 2935 echo '#endif' >>confdefs.h 2936 fi 2937 2938 ac_ext=c 2939 ac_cpp='$CPP $CPPFLAGS' 2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1098 2943 1099 2944 ac_aux_dir= … … 1107 2952 ac_install_sh="$ac_aux_dir/install.sh -c" 1108 2953 break 2954 elif test -f $ac_dir/shtool; then 2955 ac_aux_dir=$ac_dir 2956 ac_install_sh="$ac_aux_dir/shtool install -c" 2957 break 1109 2958 fi 1110 2959 done 1111 2960 if test -z "$ac_aux_dir"; then 1112 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1113 fi 1114 ac_config_guess=$ac_aux_dir/config.guess 1115 ac_config_sub=$ac_aux_dir/config.sub 1116 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2962 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2963 { (exit 1); exit 1; }; } 2964 fi 2965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2967 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1117 2968 1118 2969 # Find a good install program. We prefer a C program (faster), … … 1123 2974 # IRIX /sbin/install 1124 2975 # AIX /bin/install 2976 # AmigaOS /C/install, which installs bootblocks on floppy discs 1125 2977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1126 2978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1127 2979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2980 # OS/2's system install, which has a completely different semantic 1128 2981 # ./install, which can be erroneously created by make from ./install.sh. 1129 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&61130 echo "configure:1131: checking for a BSD compatible install" >&52982 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2983 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1131 2984 if test -z "$INSTALL"; then 1132 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1133 echo $ac_n "(cached) $ac_c" 1>&6 1134 else 1135 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1136 for ac_dir in $PATH; do 1137 # Account for people who put trailing slashes in PATH elements. 1138 case "$ac_dir/" in 1139 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1140 *) 1141 # OSF1 and SCO ODT 3.0 have their own names for install. 1142 # Don't use installbsd from OSF since it installs stuff as root 1143 # by default. 1144 for ac_prog in ginstall scoinst install; do 1145 if test -f $ac_dir/$ac_prog; then 2985 if test "${ac_cv_path_install+set}" = set; then 2986 echo $ECHO_N "(cached) $ECHO_C" >&6 2987 else 2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989 for as_dir in $PATH 2990 do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 # Account for people who put trailing slashes in PATH elements. 2994 case $as_dir/ in 2995 ./ | .// | /cC/* | \ 2996 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2997 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2998 /usr/ucb/* ) ;; 2999 *) 3000 # OSF1 and SCO ODT 3.0 have their own names for install. 3001 # Don't use installbsd from OSF since it installs stuff as root 3002 # by default. 3003 for ac_prog in ginstall scoinst install; do 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1146 3006 if test $ac_prog = install && 1147 grep dspmsg $ac_dir/$ac_prog>/dev/null 2>&1; then3007 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1148 3008 # AIX install. It has an incompatible calling convention. 1149 3009 : 3010 elif test $ac_prog = install && 3011 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3012 # program-specific install script used by HP pwplus--don't use. 3013 : 1150 3014 else 1151 ac_cv_path_install="$a c_dir/$ac_prog-c"1152 break 23015 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3016 break 3 1153 3017 fi 1154 3018 fi 1155 3019 done 1156 ;; 1157 esac 1158 done 1159 IFS="$ac_save_IFS" 3020 done 3021 ;; 3022 esac 3023 done 3024 1160 3025 1161 3026 fi 1162 3027 if test "${ac_cv_path_install+set}" = set; then 1163 INSTALL= "$ac_cv_path_install"3028 INSTALL=$ac_cv_path_install 1164 3029 else 1165 3030 # As a last resort, use the slow shell script. We don't cache a … … 1167 3032 # break other packages using the cache if that directory is 1168 3033 # removed, or if the path is relative. 1169 INSTALL= "$ac_install_sh"3034 INSTALL=$ac_install_sh 1170 3035 fi 1171 3036 fi 1172 echo "$ac_t""$INSTALL" 1>&6 3037 echo "$as_me:$LINENO: result: $INSTALL" >&5 3038 echo "${ECHO_T}$INSTALL" >&6 1173 3039 1174 3040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 1176 3042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1177 3043 1178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL _PROGRAM}'3044 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1179 3045 1180 3046 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1181 3047 1182 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1183 echo "configure:1184: checking for AIX" >&5 1184 cat > conftest.$ac_ext <<EOF 1185 #line 1186 "configure" 1186 #include "confdefs.h" 3048 3049 3050 echo "$as_me:$LINENO: checking for egrep" >&5 3051 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3052 if test "${ac_cv_prog_egrep+set}" = set; then 3053 echo $ECHO_N "(cached) $ECHO_C" >&6 3054 else 3055 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3056 then ac_cv_prog_egrep='grep -E' 3057 else ac_cv_prog_egrep='egrep' 3058 fi 3059 fi 3060 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3061 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3062 EGREP=$ac_cv_prog_egrep 3063 3064 3065 3066 echo "$as_me:$LINENO: checking for AIX" >&5 3067 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3068 cat >conftest.$ac_ext <<_ACEOF 3069 /* confdefs.h. */ 3070 _ACEOF 3071 cat confdefs.h >>conftest.$ac_ext 3072 cat >>conftest.$ac_ext <<_ACEOF 3073 /* end confdefs.h. */ 1187 3074 #ifdef _AIX 1188 3075 yes 1189 3076 #endif 1190 3077 1191 EOF3078 _ACEOF 1192 3079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1193 egrep "yes" >/dev/null 2>&1; then 1194 rm -rf conftest* 1195 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3080 $EGREP "yes" >/dev/null 2>&1; then 3081 echo "$as_me:$LINENO: result: yes" >&5 3082 echo "${ECHO_T}yes" >&6 3083 cat >>confdefs.h <<\_ACEOF 1196 3084 #define _ALL_SOURCE 1 1197 EOF1198 1199 else 1200 rm -rf conftest*1201 echo "$ac_t""no" 1>&63085 _ACEOF 3086 3087 else 3088 echo "$as_me:$LINENO: result: no" >&5 3089 echo "${ECHO_T}no" >&6 1202 3090 fi 1203 3091 rm -f conftest* … … 1208 3096 # gcc3: CC=gcc CXX=g++ 1209 3097 # other: CC=cc CXX=c++ 1210 echo $ac_n "checking gcc version""... $ac_c" 1>&61211 echo "configure:1212: checking gcc version" >&51212 if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then1213 echo $ ac_n "(cached) $ac_c" 1>&63098 echo "$as_me:$LINENO: checking gcc version" >&5 3099 echo $ECHO_N "checking gcc version... $ECHO_C" >&6 3100 if test "${ac_cv_c_cpp+set}" = set; then 3101 echo $ECHO_N "(cached) $ECHO_C" >&6 1214 3102 else 1215 3103 ac_cv_c_cp="unknown" … … 1220 3108 fi 1221 3109 1222 echo "$ac_t""$ac_cv_c_cpp" 1>&6 3110 echo "$as_me:$LINENO: result: $ac_cv_c_cpp" >&5 3111 echo "${ECHO_T}$ac_cv_c_cpp" >&6 1223 3112 1224 3113 # we prefer using gcc for compiling C++ files, provided the user did … … 1231 3120 fi 1232 3121 temp_cflags=${CXXFLAGS} 1233 1234 ac_ext=C 1235 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3122 3123 3124 ac_ext=cc 1236 3125 ac_cpp='$CXXCPP $CPPFLAGS' 1237 ac_compile='$ {CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1238 ac_link='$ {CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1239 cross_compiling=$ac_cv_prog_cxx_cross 3126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1240 3129 1241 3130 # check whether gcc accepts --no-rtti 1242 echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&61243 echo "configure:1244: checking whether gcc accepts --no-rtti" >&53131 echo "$as_me:$LINENO: checking whether gcc accepts --no-rtti" >&5 3132 echo $ECHO_N "checking whether gcc accepts --no-rtti... $ECHO_C" >&6 1244 3133 CXXFLAGS="${CXXFLAGS} --no-rtti" 1245 if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then 1246 echo $ac_n "(cached) $ac_c" 1>&6 1247 else 1248 cat > conftest.$ac_ext <<EOF 1249 #line 1250 "configure" 1250 #include "confdefs.h" 1251 1252 int main() { 1253 1254 ; return 0; } 1255 EOF 1256 if { (eval echo configure:1257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1257 rm -rf conftest* 3134 if test "${ac_cv_cxx_have_rtti+set}" = set; then 3135 echo $ECHO_N "(cached) $ECHO_C" >&6 3136 else 3137 3138 cat >conftest.$ac_ext <<_ACEOF 3139 /* confdefs.h. */ 3140 _ACEOF 3141 cat confdefs.h >>conftest.$ac_ext 3142 cat >>conftest.$ac_ext <<_ACEOF 3143 /* end confdefs.h. */ 3144 3145 int 3146 main () 3147 { 3148 3149 ; 3150 return 0; 3151 } 3152 _ACEOF 3153 rm -f conftest.$ac_objext 3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3155 (eval $ac_compile) 2>conftest.er1 3156 ac_status=$? 3157 grep -v '^ *+' conftest.er1 >conftest.err 3158 rm -f conftest.er1 3159 cat conftest.err >&5 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); } && 3162 { ac_try='test -z "$ac_cxx_werror_flag" 3163 || test ! -s conftest.err' 3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3165 (eval $ac_try) 2>&5 3166 ac_status=$? 3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3168 (exit $ac_status); }; } && 3169 { ac_try='test -s conftest.$ac_objext' 3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3171 (eval $ac_try) 2>&5 3172 ac_status=$? 3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3174 (exit $ac_status); }; }; then 1258 3175 ac_cv_cxx_have_rtti=yes 1259 3176 else 1260 echo "configure: failed program was:" >&5 1261 cat conftest.$ac_ext >&5 1262 rm -rf conftest* 1263 ac_cv_cxx_have_rtti=no 1264 fi 1265 rm -f conftest* 1266 1267 fi 1268 1269 echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6 3177 echo "$as_me: failed program was:" >&5 3178 sed 's/^/| /' conftest.$ac_ext >&5 3179 3180 ac_cv_cxx_have_rtti=no 3181 fi 3182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3183 3184 fi 3185 3186 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_rtti}" >&5 3187 echo "${ECHO_T}${ac_cv_cxx_have_rtti}" >&6 1270 3188 if test "${ac_cv_cxx_have_rtti}" != yes; then 1271 3189 CXXFLAGS=$temp_flags … … 1275 3193 1276 3194 # check whether gcc accepts --no-exceptions 1277 echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&61278 echo "configure:1279: checking whether gcc accepts --no-exceptions" >&53195 echo "$as_me:$LINENO: checking whether gcc accepts --no-exceptions" >&5 3196 echo $ECHO_N "checking whether gcc accepts --no-exceptions... $ECHO_C" >&6 1279 3197 CXXFLAGS="${CXXFLAGS} --no-exceptions" 1280 if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then 1281 echo $ac_n "(cached) $ac_c" 1>&6 1282 else 1283 cat > conftest.$ac_ext <<EOF 1284 #line 1285 "configure" 1285 #include "confdefs.h" 1286 1287 int main() { 1288 1289 ; return 0; } 1290 EOF 1291 if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1292 rm -rf conftest* 3198 if test "${ac_cv_cxx_have_exceptions+set}" = set; then 3199 echo $ECHO_N "(cached) $ECHO_C" >&6 3200 else 3201 cat >conftest.$ac_ext <<_ACEOF 3202 /* confdefs.h. */ 3203 _ACEOF 3204 cat confdefs.h >>conftest.$ac_ext 3205 cat >>conftest.$ac_ext <<_ACEOF 3206 /* end confdefs.h. */ 3207 3208 int 3209 main () 3210 { 3211 3212 ; 3213 return 0; 3214 } 3215 _ACEOF 3216 rm -f conftest.$ac_objext conftest$ac_exeext 3217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3218 (eval $ac_link) 2>conftest.er1 3219 ac_status=$? 3220 grep -v '^ *+' conftest.er1 >conftest.err 3221 rm -f conftest.er1 3222 cat conftest.err >&5 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3224 (exit $ac_status); } && 3225 { ac_try='test -z "$ac_cxx_werror_flag" 3226 || test ! -s conftest.err' 3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3228 (eval $ac_try) 2>&5 3229 ac_status=$? 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); }; } && 3232 { ac_try='test -s conftest$ac_exeext' 3233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3234 (eval $ac_try) 2>&5 3235 ac_status=$? 3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3237 (exit $ac_status); }; }; then 1293 3238 ac_cv_cxx_have_exceptions=yes 1294 3239 else 1295 echo "configure: failed program was:" >&5 1296 cat conftest.$ac_ext >&5 1297 rm -rf conftest* 1298 ac_cv_cxx_have_exceptions=no 1299 fi 1300 rm -f conftest* 1301 1302 fi 1303 1304 echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6 3240 echo "$as_me: failed program was:" >&5 3241 sed 's/^/| /' conftest.$ac_ext >&5 3242 3243 ac_cv_cxx_have_exceptions=no 3244 fi 3245 rm -f conftest.err conftest.$ac_objext \ 3246 conftest$ac_exeext conftest.$ac_ext 3247 3248 fi 3249 3250 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_exceptions}" >&5 3251 echo "${ECHO_T}${ac_cv_cxx_have_exceptions}" >&6 1305 3252 if test "${ac_cv_cxx_have_exceptions}" != yes; then 1306 3253 CXXFLAGS=$temp_flags … … 1310 3257 1311 3258 ac_ext=c 1312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.1313 3259 ac_cpp='$CPP $CPPFLAGS' 1314 ac_compile='$ {CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'1315 ac_link='$ {CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'1316 cross_compiling=$ac_cv_prog_cc_cross 3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1317 3263 1318 3264 CXXFLAGS=$temp_flags … … 1321 3267 1322 3268 # check whether the compiler accepts -pipe 1323 echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&61324 echo "configure:1325: checking whether compiler accepts -pipe" >&53269 echo "$as_me:$LINENO: checking whether compiler accepts -pipe" >&5 3270 echo $ECHO_N "checking whether compiler accepts -pipe... $ECHO_C" >&6 1325 3271 temp_cflags=${CFLAGS} 1326 3272 CFLAGS="${CFLAGS} -pipe" 1327 if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then 1328 echo $ac_n "(cached) $ac_c" 1>&6 1329 else 1330 cat > conftest.$ac_ext <<EOF 1331 #line 1332 "configure" 1332 #include "confdefs.h" 1333 1334 int main() { 1335 1336 ; return 0; } 1337 EOF 1338 if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1339 rm -rf conftest* 3273 if test "${ac_cv_cxx_have_pipe+set}" = set; then 3274 echo $ECHO_N "(cached) $ECHO_C" >&6 3275 else 3276 cat >conftest.$ac_ext <<_ACEOF 3277 /* confdefs.h. */ 3278 _ACEOF 3279 cat confdefs.h >>conftest.$ac_ext 3280 cat >>conftest.$ac_ext <<_ACEOF 3281 /* end confdefs.h. */ 3282 3283 int 3284 main () 3285 { 3286 3287 ; 3288 return 0; 3289 } 3290 _ACEOF 3291 rm -f conftest.$ac_objext 3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3293 (eval $ac_compile) 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } && 3300 { ac_try='test -z "$ac_c_werror_flag" 3301 || test ! -s conftest.err' 3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3303 (eval $ac_try) 2>&5 3304 ac_status=$? 3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3306 (exit $ac_status); }; } && 3307 { ac_try='test -s conftest.$ac_objext' 3308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3309 (eval $ac_try) 2>&5 3310 ac_status=$? 3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3312 (exit $ac_status); }; }; then 1340 3313 ac_cv_cxx_have_pipe=yes 1341 3314 else 1342 echo "configure: failed program was:" >&5 1343 cat conftest.$ac_ext >&5 1344 rm -rf conftest* 1345 ac_cv_cxx_have_pipe=no 1346 fi 1347 rm -f conftest* 1348 1349 fi 1350 1351 echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6 3315 echo "$as_me: failed program was:" >&5 3316 sed 's/^/| /' conftest.$ac_ext >&5 3317 3318 ac_cv_cxx_have_pipe=no 3319 fi 3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3321 3322 fi 3323 3324 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_pipe}" >&5 3325 echo "${ECHO_T}${ac_cv_cxx_have_pipe}" >&6 1352 3326 CFLAGS=${temp_cflags} 1353 3327 if test "${ac_cv_cxx_have_pipe}" != yes; then … … 1359 3333 1360 3334 # Customize CFLAGS 1361 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 1362 echo "configure:1363: checking whether _AIX is defined" >&5 1363 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 1364 echo $ac_n "(cached) $ac_c" 1>&6 1365 else 1366 cat > conftest.$ac_ext <<EOF 1367 #line 1368 "configure" 1368 #include "confdefs.h" 3335 echo "$as_me:$LINENO: checking whether _AIX is defined" >&5 3336 echo $ECHO_N "checking whether _AIX is defined... $ECHO_C" >&6 3337 if test "${ac_cv_is_aix+set}" = set; then 3338 echo $ECHO_N "(cached) $ECHO_C" >&6 3339 else 3340 cat >conftest.$ac_ext <<_ACEOF 3341 /* confdefs.h. */ 3342 _ACEOF 3343 cat confdefs.h >>conftest.$ac_ext 3344 cat >>conftest.$ac_ext <<_ACEOF 3345 /* end confdefs.h. */ 1369 3346 #ifdef _AIX 1370 3347 yes 1371 3348 #endif 1372 3349 1373 EOF3350 _ACEOF 1374 3351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1375 egrep "yes" >/dev/null 2>&1; then 1376 rm -rf conftest* 3352 $EGREP "yes" >/dev/null 2>&1; then 1377 3353 ac_cv_is_aix=yes 1378 3354 else 1379 rm -rf conftest*1380 3355 ac_cv_is_aix=no 1381 3356 fi … … 1385 3360 1386 3361 if test "$ac_cv_is_aix" = yes; then 1387 echo "$ac_t""yes" 1>&6 1388 else 1389 echo "$ac_t""no" 1>&6 3362 echo "$as_me:$LINENO: result: yes" >&5 3363 echo "${ECHO_T}yes" >&6 3364 else 3365 echo "$as_me:$LINENO: result: no" >&5 3366 echo "${ECHO_T}no" >&6 1390 3367 fi 1391 3368 … … 1415 3392 fi 1416 3393 1417 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&61418 echo "configure:1419: checking whether ${MAKE-make} sets \${MAKE}" >&51419 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y %./+-%__p_%'`1420 if eval "test \" `echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then1421 echo $ ac_n "(cached) $ac_c" 1>&61422 else 1423 cat > conftestmake <<\EOF3394 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3395 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3396 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3397 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3398 echo $ECHO_N "(cached) $ECHO_C" >&6 3399 else 3400 cat >conftest.make <<\_ACEOF 1424 3401 all: 1425 @echo 'ac_maketemp="$ {MAKE}"'1426 EOF3402 @echo 'ac_maketemp="$(MAKE)"' 3403 _ACEOF 1427 3404 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1428 eval `${MAKE-make} -f conftest make 2>/dev/null | grep temp=`3405 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1429 3406 if test -n "$ac_maketemp"; then 1430 3407 eval ac_cv_prog_make_${ac_make}_set=yes … … 1432 3409 eval ac_cv_prog_make_${ac_make}_set=no 1433 3410 fi 1434 rm -f conftest make3411 rm -f conftest.make 1435 3412 fi 1436 3413 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1437 echo "$ac_t""yes" 1>&6 3414 echo "$as_me:$LINENO: result: yes" >&5 3415 echo "${ECHO_T}yes" >&6 1438 3416 SET_MAKE= 1439 3417 else 1440 echo "$ac_t""no" 1>&6 3418 echo "$as_me:$LINENO: result: no" >&5 3419 echo "${ECHO_T}no" >&6 1441 3420 SET_MAKE="MAKE=${MAKE-make}" 1442 3421 fi … … 1449 3428 test "x$prefix" = xNONE && prefix=$ac_default_prefix 1450 3429 if test "${with_rootdir+set}" != set; then 1451 cat >> confdefs.h <<EOF3430 cat >>confdefs.h <<_ACEOF 1452 3431 #define S_ROOT_DIR "${prefix}" 1453 EOF1454 1455 else 1456 cat >> confdefs.h <<EOF3432 _ACEOF 3433 3434 else 3435 cat >>confdefs.h <<_ACEOF 1457 3436 #define S_ROOT_DIR "${with_rootdir}" 1458 EOF3437 _ACEOF 1459 3438 1460 3439 fi … … 1469 3448 SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION} 1470 3449 1471 cat >> confdefs.h <<EOF3450 cat >>confdefs.h <<_ACEOF 1472 3451 #define S_BIN_DIR "${bindir}" 1473 EOF3452 _ACEOF 1474 3453 1475 3454 … … 1498 3477 # lex 1499 3478 if test "${with_lex+set}" != set; then 1500 echo $ac_n "checking for flex""... $ac_c" 1>&61501 echo "configure:1502: checking for flex" >&53479 echo "$as_me:$LINENO: checking for flex" >&5 3480 echo $ECHO_N "checking for flex... $ECHO_C" >&6 1502 3481 cmd="egrep [2-9]\.[5-9]" 1503 if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then1504 echo $ ac_n "(cached) $ac_c" 1>&63482 if test "${ac_cv_prog_flex+set}" = set; then 3483 echo $ECHO_N "(cached) $ECHO_C" >&6 1505 3484 else 1506 3485 if (flex --version >/dev/null 2>&1) … … 1511 3490 fi 1512 3491 fi 1513 3492 1514 3493 fi 1515 3494 1516 3495 if test "${ac_cv_prog_flex+set}" = set; then 1517 echo "$ac_t""flex" 1>&6 3496 echo "$as_me:$LINENO: result: flex" >&5 3497 echo "${ECHO_T}flex" >&6 1518 3498 LEX=flex 1519 3499 1520 3500 else 1521 { echo "configure: error: can not find flex with version greater 2.4" 1>&2; exit 1; } 3501 { { echo "$as_me:$LINENO: error: can not find flex with version greater 2.4" >&5 3502 echo "$as_me: error: can not find flex with version greater 2.4" >&2;} 3503 { (exit 1); exit 1; }; } 1522 3504 fi 1523 3505 elif test "${with_lex}" = no; then 1524 echo "configure: warning: building without lex -- make might fail" 1>&2 3506 { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5 3507 echo "$as_me: WARNING: building without lex -- make might fail" >&2;} 1525 3508 else 1526 3509 unset LEX … … 1528 3511 for ac_prog in ${with_lex} 1529 3512 do 1530 # Extract the first word of "$ac_prog", so it can be a program name with args.3513 # Extract the first word of "$ac_prog", so it can be a program name with args. 1531 3514 set dummy $ac_prog; ac_word=$2 1532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61533 echo "configure:1534: checking for $ac_word" >&51534 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then1535 echo $ ac_n "(cached) $ac_c" 1>&63515 echo "$as_me:$LINENO: checking for $ac_word" >&5 3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3517 if test "${ac_cv_prog_LEX+set}" = set; then 3518 echo $ECHO_N "(cached) $ECHO_C" >&6 1536 3519 else 1537 3520 if test -n "$LEX"; then 1538 3521 ac_cv_prog_LEX="$LEX" # Let the user override the test. 1539 3522 else 1540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1541 ac_dummy="$PATH" 1542 for ac_dir in $ac_dummy; do 1543 test -z "$ac_dir" && ac_dir=. 1544 if test -f $ac_dir/$ac_word; then 1545 ac_cv_prog_LEX="$ac_prog" 1546 break 1547 fi 1548 done 1549 IFS="$ac_save_ifs" 1550 fi 1551 fi 1552 LEX="$ac_cv_prog_LEX" 3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3524 for as_dir in $PATH 3525 do 3526 IFS=$as_save_IFS 3527 test -z "$as_dir" && as_dir=. 3528 for ac_exec_ext in '' $ac_executable_extensions; do 3529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3530 ac_cv_prog_LEX="$ac_prog" 3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3532 break 2 3533 fi 3534 done 3535 done 3536 3537 fi 3538 fi 3539 LEX=$ac_cv_prog_LEX 1553 3540 if test -n "$LEX"; then 1554 echo "$ac_t""$LEX" 1>&6 1555 else 1556 echo "$ac_t""no" 1>&6 1557 fi 1558 1559 test -n "$LEX" && break 3541 echo "$as_me:$LINENO: result: $LEX" >&5 3542 echo "${ECHO_T}$LEX" >&6 3543 else 3544 echo "$as_me:$LINENO: result: no" >&5 3545 echo "${ECHO_T}no" >&6 3546 fi 3547 3548 test -n "$LEX" && break 1560 3549 done 1561 3550 1562 3551 if test "x${LEX}" = x; then 1563 echo "configure: warning: building without lex -- make might fail" 1>&2 3552 { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5 3553 echo "$as_me: WARNING: building without lex -- make might fail" >&2;} 1564 3554 fi 1565 3555 fi … … 1568 3558 for ac_prog in bison 1569 3559 do 1570 # Extract the first word of "$ac_prog", so it can be a program name with args.3560 # Extract the first word of "$ac_prog", so it can be a program name with args. 1571 3561 set dummy $ac_prog; ac_word=$2 1572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61573 echo "configure:1574: checking for $ac_word" >&51574 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then1575 echo $ ac_n "(cached) $ac_c" 1>&63562 echo "$as_me:$LINENO: checking for $ac_word" >&5 3563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3564 if test "${ac_cv_prog_BISON+set}" = set; then 3565 echo $ECHO_N "(cached) $ECHO_C" >&6 1576 3566 else 1577 3567 if test -n "$BISON"; then 1578 3568 ac_cv_prog_BISON="$BISON" # Let the user override the test. 1579 3569 else 1580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1581 ac_dummy="$PATH" 1582 for ac_dir in $ac_dummy; do 1583 test -z "$ac_dir" && ac_dir=. 1584 if test -f $ac_dir/$ac_word; then 1585 ac_cv_prog_BISON="$ac_prog" 1586 break 1587 fi 1588 done 1589 IFS="$ac_save_ifs" 1590 fi 1591 fi 1592 BISON="$ac_cv_prog_BISON" 3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3571 for as_dir in $PATH 3572 do 3573 IFS=$as_save_IFS 3574 test -z "$as_dir" && as_dir=. 3575 for ac_exec_ext in '' $ac_executable_extensions; do 3576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3577 ac_cv_prog_BISON="$ac_prog" 3578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3579 break 2 3580 fi 3581 done 3582 done 3583 3584 fi 3585 fi 3586 BISON=$ac_cv_prog_BISON 1593 3587 if test -n "$BISON"; then 1594 echo "$ac_t""$BISON" 1>&6 1595 else 1596 echo "$ac_t""no" 1>&6 1597 fi 1598 1599 test -n "$BISON" && break 3588 echo "$as_me:$LINENO: result: $BISON" >&5 3589 echo "${ECHO_T}$BISON" >&6 3590 else 3591 echo "$as_me:$LINENO: result: no" >&5 3592 echo "${ECHO_T}no" >&6 3593 fi 3594 3595 test -n "$BISON" && break 1600 3596 done 1601 3597 1602 3598 if test "${BISON+set}" != set; then 1603 echo "configure: warning: did not find bison -- make might fail" 1>&2 3599 { echo "$as_me:$LINENO: WARNING: did not find bison -- make might fail" >&5 3600 echo "$as_me: WARNING: did not find bison -- make might fail" >&2;} 1604 3601 fi 1605 3602 1606 3603 # ln -s 1607 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1608 echo "configure:1609: checking whether ln -s works" >&5 1609 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1610 echo $ac_n "(cached) $ac_c" 1>&6 1611 else 1612 rm -f conftestdata 1613 if ln -s X conftestdata 2>/dev/null 1614 then 1615 rm -f conftestdata 1616 ac_cv_prog_LN_S="ln -s" 1617 else 1618 ac_cv_prog_LN_S=ln 1619 fi 1620 fi 1621 LN_S="$ac_cv_prog_LN_S" 1622 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1623 echo "$ac_t""yes" 1>&6 1624 else 1625 echo "$ac_t""no" 1>&6 3604 echo "$as_me:$LINENO: checking whether ln -s works" >&5 3605 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3606 LN_S=$as_ln_s 3607 if test "$LN_S" = "ln -s"; then 3608 echo "$as_me:$LINENO: result: yes" >&5 3609 echo "${ECHO_T}yes" >&6 3610 else 3611 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3612 echo "${ECHO_T}no, using $LN_S" >&6 1626 3613 fi 1627 3614 … … 1629 3616 for ac_prog in perl5 perl 1630 3617 do 1631 # Extract the first word of "$ac_prog", so it can be a program name with args.3618 # Extract the first word of "$ac_prog", so it can be a program name with args. 1632 3619 set dummy $ac_prog; ac_word=$2 1633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&61634 echo "configure:1635: checking for $ac_word" >&51635 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then1636 echo $ ac_n "(cached) $ac_c" 1>&63620 echo "$as_me:$LINENO: checking for $ac_word" >&5 3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3622 if test "${ac_cv_prog_PERL+set}" = set; then 3623 echo $ECHO_N "(cached) $ECHO_C" >&6 1637 3624 else 1638 3625 if test -n "$PERL"; then 1639 3626 ac_cv_prog_PERL="$PERL" # Let the user override the test. 1640 3627 else 1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1642 ac_dummy="$PATH" 1643 for ac_dir in $ac_dummy; do 1644 test -z "$ac_dir" && ac_dir=. 1645 if test -f $ac_dir/$ac_word; then 1646 ac_cv_prog_PERL="$ac_prog" 1647 break 1648 fi 1649 done 1650 IFS="$ac_save_ifs" 1651 fi 1652 fi 1653 PERL="$ac_cv_prog_PERL" 3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3629 for as_dir in $PATH 3630 do 3631 IFS=$as_save_IFS 3632 test -z "$as_dir" && as_dir=. 3633 for ac_exec_ext in '' $ac_executable_extensions; do 3634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3635 ac_cv_prog_PERL="$ac_prog" 3636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3637 break 2 3638 fi 3639 done 3640 done 3641 3642 fi 3643 fi 3644 PERL=$ac_cv_prog_PERL 1654 3645 if test -n "$PERL"; then 1655 echo "$ac_t""$PERL" 1>&6 1656 else 1657 echo "$ac_t""no" 1>&6 1658 fi 1659 1660 test -n "$PERL" && break 3646 echo "$as_me:$LINENO: result: $PERL" >&5 3647 echo "${ECHO_T}$PERL" >&6 3648 else 3649 echo "$as_me:$LINENO: result: no" >&5 3650 echo "${ECHO_T}no" >&6 3651 fi 3652 3653 test -n "$PERL" && break 1661 3654 done 1662 3655 … … 1666 3659 # it really is the last thing to link with 1667 3660 if test "$ac_cv_singuname" != ix86-Win; then 1668 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1669 echo " configure:1670: checking for atof in -lm" >&51670 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1672 echo $ ac_n "(cached) $ac_c" 1>&61673 else 1674 ac_ save_LIBS="$LIBS"3661 3662 echo "$as_me:$LINENO: checking for atof in -lm" >&5 3663 echo $ECHO_N "checking for atof in -lm... $ECHO_C" >&6 3664 if test "${ac_cv_lib_m_atof+set}" = set; then 3665 echo $ECHO_N "(cached) $ECHO_C" >&6 3666 else 3667 ac_check_lib_save_LIBS=$LIBS 1675 3668 LIBS="-lm $LIBS" 1676 cat > conftest.$ac_ext <<EOF 1677 #line 1678 "configure" 1678 #include "confdefs.h" 3669 cat >conftest.$ac_ext <<_ACEOF 3670 /* confdefs.h. */ 3671 _ACEOF 3672 cat confdefs.h >>conftest.$ac_ext 3673 cat >>conftest.$ac_ext <<_ACEOF 3674 /* end confdefs.h. */ 3675 1679 3676 /* Override any gcc2 internal prototype to avoid an error. */ 3677 #ifdef __cplusplus 3678 extern "C" 3679 #endif 1680 3680 /* We use char because int might match the return type of a gcc2 1681 builtin and then its argument prototype would still apply. */ 1682 char atof(); 1683 1684 int main() { 1685 atof() 1686 ; return 0; } 1687 EOF 1688 if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1689 rm -rf conftest* 1690 eval "ac_cv_lib_$ac_lib_var=yes" 1691 else 1692 echo "configure: failed program was:" >&5 1693 cat conftest.$ac_ext >&5 1694 rm -rf conftest* 1695 eval "ac_cv_lib_$ac_lib_var=no" 1696 fi 1697 rm -f conftest* 1698 LIBS="$ac_save_LIBS" 1699 1700 fi 1701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1702 echo "$ac_t""yes" 1>&6 1703 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1704 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1705 cat >> confdefs.h <<EOF 1706 #define $ac_tr_lib 1 1707 EOF 3681 builtin and then its argument prototype would still apply. */ 3682 char atof (); 3683 int 3684 main () 3685 { 3686 atof (); 3687 ; 3688 return 0; 3689 } 3690 _ACEOF 3691 rm -f conftest.$ac_objext conftest$ac_exeext 3692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3693 (eval $ac_link) 2>conftest.er1 3694 ac_status=$? 3695 grep -v '^ *+' conftest.er1 >conftest.err 3696 rm -f conftest.er1 3697 cat conftest.err >&5 3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3699 (exit $ac_status); } && 3700 { ac_try='test -z "$ac_c_werror_flag" 3701 || test ! -s conftest.err' 3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3703 (eval $ac_try) 2>&5 3704 ac_status=$? 3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3706 (exit $ac_status); }; } && 3707 { ac_try='test -s conftest$ac_exeext' 3708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3709 (eval $ac_try) 2>&5 3710 ac_status=$? 3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3712 (exit $ac_status); }; }; then 3713 ac_cv_lib_m_atof=yes 3714 else 3715 echo "$as_me: failed program was:" >&5 3716 sed 's/^/| /' conftest.$ac_ext >&5 3717 3718 ac_cv_lib_m_atof=no 3719 fi 3720 rm -f conftest.err conftest.$ac_objext \ 3721 conftest$ac_exeext conftest.$ac_ext 3722 LIBS=$ac_check_lib_save_LIBS 3723 fi 3724 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atof" >&5 3725 echo "${ECHO_T}$ac_cv_lib_m_atof" >&6 3726 if test $ac_cv_lib_m_atof = yes; then 3727 cat >>confdefs.h <<_ACEOF 3728 #define HAVE_LIBM 1 3729 _ACEOF 1708 3730 1709 3731 LIBS="-lm $LIBS" 1710 3732 1711 else1712 echo "$ac_t""no" 1>&61713 3733 fi 1714 3734 … … 1720 3740 case "$ac_cv_singuname" in 1721 3741 HPUX*) 1722 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 1723 echo " configure:1724: checking for shl_load in -ldld" >&51724 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 1725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1726 echo $ ac_n "(cached) $ac_c" 1>&61727 else 1728 ac_ save_LIBS="$LIBS"3742 3743 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 3744 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3745 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 3746 echo $ECHO_N "(cached) $ECHO_C" >&6 3747 else 3748 ac_check_lib_save_LIBS=$LIBS 1729 3749 LIBS="-ldld $LIBS" 1730 cat > conftest.$ac_ext <<EOF 1731 #line 1732 "configure" 1732 #include "confdefs.h" 3750 cat >conftest.$ac_ext <<_ACEOF 3751 /* confdefs.h. */ 3752 _ACEOF 3753 cat confdefs.h >>conftest.$ac_ext 3754 cat >>conftest.$ac_ext <<_ACEOF 3755 /* end confdefs.h. */ 3756 1733 3757 /* Override any gcc2 internal prototype to avoid an error. */ 3758 #ifdef __cplusplus 3759 extern "C" 3760 #endif 1734 3761 /* We use char because int might match the return type of a gcc2 1735 builtin and then its argument prototype would still apply. */ 1736 char shl_load(); 1737 1738 int main() { 1739 shl_load() 1740 ; return 0; } 1741 EOF 1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1743 rm -rf conftest* 1744 eval "ac_cv_lib_$ac_lib_var=yes" 1745 else 1746 echo "configure: failed program was:" >&5 1747 cat conftest.$ac_ext >&5 1748 rm -rf conftest* 1749 eval "ac_cv_lib_$ac_lib_var=no" 1750 fi 1751 rm -f conftest* 1752 LIBS="$ac_save_LIBS" 1753 1754 fi 1755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1756 echo "$ac_t""yes" 1>&6 1757 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1759 cat >> confdefs.h <<EOF 1760 #define $ac_tr_lib 1 1761 EOF 3762 builtin and then its argument prototype would still apply. */ 3763 char shl_load (); 3764 int 3765 main () 3766 { 3767 shl_load (); 3768 ; 3769 return 0; 3770 } 3771 _ACEOF 3772 rm -f conftest.$ac_objext conftest$ac_exeext 3773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3774 (eval $ac_link) 2>conftest.er1 3775 ac_status=$? 3776 grep -v '^ *+' conftest.er1 >conftest.err 3777 rm -f conftest.er1 3778 cat conftest.err >&5 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3780 (exit $ac_status); } && 3781 { ac_try='test -z "$ac_c_werror_flag" 3782 || test ! -s conftest.err' 3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3784 (eval $ac_try) 2>&5 3785 ac_status=$? 3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3787 (exit $ac_status); }; } && 3788 { ac_try='test -s conftest$ac_exeext' 3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3790 (eval $ac_try) 2>&5 3791 ac_status=$? 3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3793 (exit $ac_status); }; }; then 3794 ac_cv_lib_dld_shl_load=yes 3795 else 3796 echo "$as_me: failed program was:" >&5 3797 sed 's/^/| /' conftest.$ac_ext >&5 3798 3799 ac_cv_lib_dld_shl_load=no 3800 fi 3801 rm -f conftest.err conftest.$ac_objext \ 3802 conftest$ac_exeext conftest.$ac_ext 3803 LIBS=$ac_check_lib_save_LIBS 3804 fi 3805 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 3806 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 3807 if test $ac_cv_lib_dld_shl_load = yes; then 3808 cat >>confdefs.h <<_ACEOF 3809 #define HAVE_LIBDLD 1 3810 _ACEOF 1762 3811 1763 3812 LIBS="-ldld $LIBS" 1764 3813 1765 else1766 echo "$ac_t""no" 1>&61767 3814 fi 1768 3815 … … 1776 3823 ;; 1777 3824 *Linux*) 1778 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1779 echo " configure:1780: checking for dlopen in -ldl" >&51780 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 1781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1782 echo $ ac_n "(cached) $ac_c" 1>&61783 else 1784 ac_ save_LIBS="$LIBS"3825 3826 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 3827 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 3828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 3829 echo $ECHO_N "(cached) $ECHO_C" >&6 3830 else 3831 ac_check_lib_save_LIBS=$LIBS 1785 3832 LIBS="-ldl $LIBS" 1786 cat > conftest.$ac_ext <<EOF 1787 #line 1788 "configure" 1788 #include "confdefs.h" 3833 cat >conftest.$ac_ext <<_ACEOF 3834 /* confdefs.h. */ 3835 _ACEOF 3836 cat confdefs.h >>conftest.$ac_ext 3837 cat >>conftest.$ac_ext <<_ACEOF 3838 /* end confdefs.h. */ 3839 1789 3840 /* Override any gcc2 internal prototype to avoid an error. */ 3841 #ifdef __cplusplus 3842 extern "C" 3843 #endif 1790 3844 /* We use char because int might match the return type of a gcc2 1791 builtin and then its argument prototype would still apply. */ 1792 char dlopen(); 1793 1794 int main() { 1795 dlopen() 1796 ; return 0; } 1797 EOF 1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1799 rm -rf conftest* 1800 eval "ac_cv_lib_$ac_lib_var=yes" 1801 else 1802 echo "configure: failed program was:" >&5 1803 cat conftest.$ac_ext >&5 1804 rm -rf conftest* 1805 eval "ac_cv_lib_$ac_lib_var=no" 1806 fi 1807 rm -f conftest* 1808 LIBS="$ac_save_LIBS" 1809 1810 fi 1811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1812 echo "$ac_t""yes" 1>&6 1813 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1815 cat >> confdefs.h <<EOF 1816 #define $ac_tr_lib 1 1817 EOF 3845 builtin and then its argument prototype would still apply. */ 3846 char dlopen (); 3847 int 3848 main () 3849 { 3850 dlopen (); 3851 ; 3852 return 0; 3853 } 3854 _ACEOF 3855 rm -f conftest.$ac_objext conftest$ac_exeext 3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3857 (eval $ac_link) 2>conftest.er1 3858 ac_status=$? 3859 grep -v '^ *+' conftest.er1 >conftest.err 3860 rm -f conftest.er1 3861 cat conftest.err >&5 3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3863 (exit $ac_status); } && 3864 { ac_try='test -z "$ac_c_werror_flag" 3865 || test ! -s conftest.err' 3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3867 (eval $ac_try) 2>&5 3868 ac_status=$? 3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870 (exit $ac_status); }; } && 3871 { ac_try='test -s conftest$ac_exeext' 3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3873 (eval $ac_try) 2>&5 3874 ac_status=$? 3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3876 (exit $ac_status); }; }; then 3877 ac_cv_lib_dl_dlopen=yes 3878 else 3879 echo "$as_me: failed program was:" >&5 3880 sed 's/^/| /' conftest.$ac_ext >&5 3881 3882 ac_cv_lib_dl_dlopen=no 3883 fi 3884 rm -f conftest.err conftest.$ac_objext \ 3885 conftest$ac_exeext conftest.$ac_ext 3886 LIBS=$ac_check_lib_save_LIBS 3887 fi 3888 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 3889 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 3890 if test $ac_cv_lib_dl_dlopen = yes; then 3891 cat >>confdefs.h <<_ACEOF 3892 #define HAVE_LIBDL 1 3893 _ACEOF 1818 3894 1819 3895 LIBS="-ldl $LIBS" 1820 3896 1821 else1822 echo "$ac_t""no" 1>&61823 3897 fi 1824 3898 … … 1839 3913 ;; 1840 3914 SunOS-5) 1841 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1842 echo " configure:1843: checking for dlopen in -ldl" >&51843 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 1844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then1845 echo $ ac_n "(cached) $ac_c" 1>&61846 else 1847 ac_ save_LIBS="$LIBS"3915 3916 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 3917 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 3918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 3919 echo $ECHO_N "(cached) $ECHO_C" >&6 3920 else 3921 ac_check_lib_save_LIBS=$LIBS 1848 3922 LIBS="-ldl $LIBS" 1849 cat > conftest.$ac_ext <<EOF 1850 #line 1851 "configure" 1851 #include "confdefs.h" 3923 cat >conftest.$ac_ext <<_ACEOF 3924 /* confdefs.h. */ 3925 _ACEOF 3926 cat confdefs.h >>conftest.$ac_ext 3927 cat >>conftest.$ac_ext <<_ACEOF 3928 /* end confdefs.h. */ 3929 1852 3930 /* Override any gcc2 internal prototype to avoid an error. */ 3931 #ifdef __cplusplus 3932 extern "C" 3933 #endif 1853 3934 /* We use char because int might match the return type of a gcc2 1854 builtin and then its argument prototype would still apply. */ 1855 char dlopen(); 1856 1857 int main() { 1858 dlopen() 1859 ; return 0; } 1860 EOF 1861 if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1862 rm -rf conftest* 1863 eval "ac_cv_lib_$ac_lib_var=yes" 1864 else 1865 echo "configure: failed program was:" >&5 1866 cat conftest.$ac_ext >&5 1867 rm -rf conftest* 1868 eval "ac_cv_lib_$ac_lib_var=no" 1869 fi 1870 rm -f conftest* 1871 LIBS="$ac_save_LIBS" 1872 1873 fi 1874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1875 echo "$ac_t""yes" 1>&6 1876 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1877 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1878 cat >> confdefs.h <<EOF 1879 #define $ac_tr_lib 1 1880 EOF 3935 builtin and then its argument prototype would still apply. */ 3936 char dlopen (); 3937 int 3938 main () 3939 { 3940 dlopen (); 3941 ; 3942 return 0; 3943 } 3944 _ACEOF 3945 rm -f conftest.$ac_objext conftest$ac_exeext 3946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3947 (eval $ac_link) 2>conftest.er1 3948 ac_status=$? 3949 grep -v '^ *+' conftest.er1 >conftest.err 3950 rm -f conftest.er1 3951 cat conftest.err >&5 3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3953 (exit $ac_status); } && 3954 { ac_try='test -z "$ac_c_werror_flag" 3955 || test ! -s conftest.err' 3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3957 (eval $ac_try) 2>&5 3958 ac_status=$? 3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3960 (exit $ac_status); }; } && 3961 { ac_try='test -s conftest$ac_exeext' 3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3963 (eval $ac_try) 2>&5 3964 ac_status=$? 3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3966 (exit $ac_status); }; }; then 3967 ac_cv_lib_dl_dlopen=yes 3968 else 3969 echo "$as_me: failed program was:" >&5 3970 sed 's/^/| /' conftest.$ac_ext >&5 3971 3972 ac_cv_lib_dl_dlopen=no 3973 fi 3974 rm -f conftest.err conftest.$ac_objext \ 3975 conftest$ac_exeext conftest.$ac_ext 3976 LIBS=$ac_check_lib_save_LIBS 3977 fi 3978 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 3979 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 3980 if test $ac_cv_lib_dl_dlopen = yes; then 3981 cat >>confdefs.h <<_ACEOF 3982 #define HAVE_LIBDL 1 3983 _ACEOF 1881 3984 1882 3985 LIBS="-ldl $LIBS" 1883 3986 1884 else1885 echo "$ac_t""no" 1>&61886 3987 fi 1887 3988 … … 1894 3995 fi 1895 3996 ;; 3997 #use export MACOSX_DEPLOYMENT_TARGET=10.3 3998 ppcMac-darwin) 3999 4000 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 4001 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 4002 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 4003 echo $ECHO_N "(cached) $ECHO_C" >&6 4004 else 4005 ac_check_lib_save_LIBS=$LIBS 4006 LIBS="-ldl $LIBS" 4007 cat >conftest.$ac_ext <<_ACEOF 4008 /* confdefs.h. */ 4009 _ACEOF 4010 cat confdefs.h >>conftest.$ac_ext 4011 cat >>conftest.$ac_ext <<_ACEOF 4012 /* end confdefs.h. */ 4013 4014 /* Override any gcc2 internal prototype to avoid an error. */ 4015 #ifdef __cplusplus 4016 extern "C" 4017 #endif 4018 /* We use char because int might match the return type of a gcc2 4019 builtin and then its argument prototype would still apply. */ 4020 char dlopen (); 4021 int 4022 main () 4023 { 4024 dlopen (); 4025 ; 4026 return 0; 4027 } 4028 _ACEOF 4029 rm -f conftest.$ac_objext conftest$ac_exeext 4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4031 (eval $ac_link) 2>conftest.er1 4032 ac_status=$? 4033 grep -v '^ *+' conftest.er1 >conftest.err 4034 rm -f conftest.er1 4035 cat conftest.err >&5 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4037 (exit $ac_status); } && 4038 { ac_try='test -z "$ac_c_werror_flag" 4039 || test ! -s conftest.err' 4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4041 (eval $ac_try) 2>&5 4042 ac_status=$? 4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); }; } && 4045 { ac_try='test -s conftest$ac_exeext' 4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4047 (eval $ac_try) 2>&5 4048 ac_status=$? 4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4050 (exit $ac_status); }; }; then 4051 ac_cv_lib_dl_dlopen=yes 4052 else 4053 echo "$as_me: failed program was:" >&5 4054 sed 's/^/| /' conftest.$ac_ext >&5 4055 4056 ac_cv_lib_dl_dlopen=no 4057 fi 4058 rm -f conftest.err conftest.$ac_objext \ 4059 conftest$ac_exeext conftest.$ac_ext 4060 LIBS=$ac_check_lib_save_LIBS 4061 fi 4062 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 4063 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 4064 if test $ac_cv_lib_dl_dlopen = yes; then 4065 cat >>confdefs.h <<_ACEOF 4066 #define HAVE_LIBDL 1 4067 _ACEOF 4068 4069 LIBS="-ldl $LIBS" 4070 4071 fi 4072 4073 if test "$ac_cv_lib_dl_dlopen" = yes; then 4074 LD_DYN_FLAGS="-ldl -dynamic" 4075 SFLAGS="-fpic -DPIC" 4076 SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup" 4077 LD=libtool 4078 ac_lib_dl=yes 4079 fi 4080 ;; 4081 i386Mac-darwin) 4082 4083 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 4084 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 4085 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 4086 echo $ECHO_N "(cached) $ECHO_C" >&6 4087 else 4088 ac_check_lib_save_LIBS=$LIBS 4089 LIBS="-ldl $LIBS" 4090 cat >conftest.$ac_ext <<_ACEOF 4091 /* confdefs.h. */ 4092 _ACEOF 4093 cat confdefs.h >>conftest.$ac_ext 4094 cat >>conftest.$ac_ext <<_ACEOF 4095 /* end confdefs.h. */ 4096 4097 /* Override any gcc2 internal prototype to avoid an error. */ 4098 #ifdef __cplusplus 4099 extern "C" 4100 #endif 4101 /* We use char because int might match the return type of a gcc2 4102 builtin and then its argument prototype would still apply. */ 4103 char dlopen (); 4104 int 4105 main () 4106 { 4107 dlopen (); 4108 ; 4109 return 0; 4110 } 4111 _ACEOF 4112 rm -f conftest.$ac_objext conftest$ac_exeext 4113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4114 (eval $ac_link) 2>conftest.er1 4115 ac_status=$? 4116 grep -v '^ *+' conftest.er1 >conftest.err 4117 rm -f conftest.er1 4118 cat conftest.err >&5 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); } && 4121 { ac_try='test -z "$ac_c_werror_flag" 4122 || test ! -s conftest.err' 4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4124 (eval $ac_try) 2>&5 4125 ac_status=$? 4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4127 (exit $ac_status); }; } && 4128 { ac_try='test -s conftest$ac_exeext' 4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4130 (eval $ac_try) 2>&5 4131 ac_status=$? 4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4133 (exit $ac_status); }; }; then 4134 ac_cv_lib_dl_dlopen=yes 4135 else 4136 echo "$as_me: failed program was:" >&5 4137 sed 's/^/| /' conftest.$ac_ext >&5 4138 4139 ac_cv_lib_dl_dlopen=no 4140 fi 4141 rm -f conftest.err conftest.$ac_objext \ 4142 conftest$ac_exeext conftest.$ac_ext 4143 LIBS=$ac_check_lib_save_LIBS 4144 fi 4145 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 4146 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 4147 if test $ac_cv_lib_dl_dlopen = yes; then 4148 cat >>confdefs.h <<_ACEOF 4149 #define HAVE_LIBDL 1 4150 _ACEOF 4151 4152 LIBS="-ldl $LIBS" 4153 4154 fi 4155 4156 if test "$ac_cv_lib_dl_dlopen" = yes; then 4157 LD_DYN_FLAGS="-ldl -dynamic" 4158 SFLAGS="-fpic -DPIC" 4159 SLDFLAGS="-dynamic -twolevel_namespace -weak_reference_mismatches weak -undefined dynamic_lookup" 4160 LD=libtool 4161 ac_lib_dl=yes 4162 fi 4163 ;; 1896 4164 esac 1897 4165 … … 1903 4171 1904 4172 # heder file checks 1905 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1906 echo "configure:1907: checking for ANSI C header files" >&5 1907 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1908 echo $ac_n "(cached) $ac_c" 1>&6 1909 else 1910 cat > conftest.$ac_ext <<EOF 1911 #line 1912 "configure" 1912 #include "confdefs.h" 4173 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4175 if test "${ac_cv_header_stdc+set}" = set; then 4176 echo $ECHO_N "(cached) $ECHO_C" >&6 4177 else 4178 cat >conftest.$ac_ext <<_ACEOF 4179 /* confdefs.h. */ 4180 _ACEOF 4181 cat confdefs.h >>conftest.$ac_ext 4182 cat >>conftest.$ac_ext <<_ACEOF 4183 /* end confdefs.h. */ 1913 4184 #include <stdlib.h> 1914 4185 #include <stdarg.h> 1915 4186 #include <string.h> 1916 4187 #include <float.h> 1917 EOF 1918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1919 { (eval echo configure:1920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1921 if test -z "$ac_err"; then 1922 rm -rf conftest* 4188 4189 int 4190 main () 4191 { 4192 4193 ; 4194 return 0; 4195 } 4196 _ACEOF 4197 rm -f conftest.$ac_objext 4198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4199 (eval $ac_compile) 2>conftest.er1 4200 ac_status=$? 4201 grep -v '^ *+' conftest.er1 >conftest.err 4202 rm -f conftest.er1 4203 cat conftest.err >&5 4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4205 (exit $ac_status); } && 4206 { ac_try='test -z "$ac_c_werror_flag" 4207 || test ! -s conftest.err' 4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4209 (eval $ac_try) 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 1923 4219 ac_cv_header_stdc=yes 1924 4220 else 1925 echo "$ac_err" >&5 1926 echo "configure: failed program was:" >&5 1927 cat conftest.$ac_ext >&5 1928 rm -rf conftest* 1929 ac_cv_header_stdc=no 1930 fi 1931 rm -f conftest* 4221 echo "$as_me: failed program was:" >&5 4222 sed 's/^/| /' conftest.$ac_ext >&5 4223 4224 ac_cv_header_stdc=no 4225 fi 4226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1932 4227 1933 4228 if test $ac_cv_header_stdc = yes; then 1934 4229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1935 cat > conftest.$ac_ext <<EOF 1936 #line 1937 "configure" 1937 #include "confdefs.h" 4230 cat >conftest.$ac_ext <<_ACEOF 4231 /* confdefs.h. */ 4232 _ACEOF 4233 cat confdefs.h >>conftest.$ac_ext 4234 cat >>conftest.$ac_ext <<_ACEOF 4235 /* end confdefs.h. */ 1938 4236 #include <string.h> 1939 EOF 4237 4238 _ACEOF 1940 4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1941 egrep"memchr" >/dev/null 2>&1; then4240 $EGREP "memchr" >/dev/null 2>&1; then 1942 4241 : 1943 4242 else 1944 rm -rf conftest*1945 4243 ac_cv_header_stdc=no 1946 4244 fi … … 1951 4249 if test $ac_cv_header_stdc = yes; then 1952 4250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1953 cat > conftest.$ac_ext <<EOF 1954 #line 1955 "configure" 1955 #include "confdefs.h" 4251 cat >conftest.$ac_ext <<_ACEOF 4252 /* confdefs.h. */ 4253 _ACEOF 4254 cat confdefs.h >>conftest.$ac_ext 4255 cat >>conftest.$ac_ext <<_ACEOF 4256 /* end confdefs.h. */ 1956 4257 #include <stdlib.h> 1957 EOF 4258 4259 _ACEOF 1958 4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1959 egrep"free" >/dev/null 2>&1; then4261 $EGREP "free" >/dev/null 2>&1; then 1960 4262 : 1961 4263 else 1962 rm -rf conftest*1963 4264 ac_cv_header_stdc=no 1964 4265 fi … … 1969 4270 if test $ac_cv_header_stdc = yes; then 1970 4271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1971 if test "$cross_compiling" = yes; then4272 if test "$cross_compiling" = yes; then 1972 4273 : 1973 4274 else 1974 cat > conftest.$ac_ext <<EOF 1975 #line 1976 "configure" 1976 #include "confdefs.h" 4275 cat >conftest.$ac_ext <<_ACEOF 4276 /* confdefs.h. */ 4277 _ACEOF 4278 cat confdefs.h >>conftest.$ac_ext 4279 cat >>conftest.$ac_ext <<_ACEOF 4280 /* end confdefs.h. */ 1977 4281 #include <ctype.h> 1978 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1979 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4282 #if ((' ' & 0x0FF) == 0x020) 4283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4285 #else 4286 # define ISLOWER(c) \ 4287 (('a' <= (c) && (c) <= 'i') \ 4288 || ('j' <= (c) && (c) <= 'r') \ 4289 || ('s' <= (c) && (c) <= 'z')) 4290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4291 #endif 4292 1980 4293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1981 int main () { int i; for (i = 0; i < 256; i++) 1982 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1983 exit (0); } 1984 1985 EOF 1986 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1987 then 4294 int 4295 main () 4296 { 4297 int i; 4298 for (i = 0; i < 256; i++) 4299 if (XOR (islower (i), ISLOWER (i)) 4300 || toupper (i) != TOUPPER (i)) 4301 exit(2); 4302 exit (0); 4303 } 4304 _ACEOF 4305 rm -f conftest$ac_exeext 4306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4307 (eval $ac_link) 2>&5 4308 ac_status=$? 4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4312 (eval $ac_try) 2>&5 4313 ac_status=$? 4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4315 (exit $ac_status); }; }; then 1988 4316 : 1989 4317 else 1990 echo "configure: failed program was:" >&5 1991 cat conftest.$ac_ext >&5 1992 rm -fr conftest* 1993 ac_cv_header_stdc=no 1994 fi 1995 rm -fr conftest* 1996 fi 1997 1998 fi 1999 fi 2000 2001 echo "$ac_t""$ac_cv_header_stdc" 1>&6 4318 echo "$as_me: program exited with status $ac_status" >&5 4319 echo "$as_me: failed program was:" >&5 4320 sed 's/^/| /' conftest.$ac_ext >&5 4321 4322 ( exit $ac_status ) 4323 ac_cv_header_stdc=no 4324 fi 4325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4326 fi 4327 fi 4328 fi 4329 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4330 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2002 4331 if test $ac_cv_header_stdc = yes; then 2003 cat >> confdefs.h <<\EOF 4332 4333 cat >>confdefs.h <<\_ACEOF 2004 4334 #define STDC_HEADERS 1 2005 EOF 2006 2007 fi 2008 2009 for ac_hdr in limits.h unistd.h 4335 _ACEOF 4336 4337 fi 4338 4339 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4350 inttypes.h stdint.h unistd.h 2010 4351 do 2011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2013 echo "configure:2014: checking for $ac_hdr" >&5 2014 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2015 echo $ac_n "(cached) $ac_c" 1>&6 2016 else 2017 cat > conftest.$ac_ext <<EOF 2018 #line 2019 "configure" 2019 #include "confdefs.h" 2020 #include <$ac_hdr> 2021 EOF 2022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2023 { (eval echo configure:2024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2025 if test -z "$ac_err"; then 2026 rm -rf conftest* 2027 eval "ac_cv_header_$ac_safe=yes" 2028 else 2029 echo "$ac_err" >&5 2030 echo "configure: failed program was:" >&5 2031 cat conftest.$ac_ext >&5 2032 rm -rf conftest* 2033 eval "ac_cv_header_$ac_safe=no" 2034 fi 2035 rm -f conftest* 2036 fi 2037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2038 echo "$ac_t""yes" 1>&6 2039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2040 cat >> confdefs.h <<EOF 2041 #define $ac_tr_hdr 1 2042 EOF 2043 2044 else 2045 echo "$ac_t""no" 1>&6 2046 { echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; } 2047 fi 4352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4353 echo "$as_me:$LINENO: checking for $ac_header" >&5 4354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4355 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4356 echo $ECHO_N "(cached) $ECHO_C" >&6 4357 else 4358 cat >conftest.$ac_ext <<_ACEOF 4359 /* confdefs.h. */ 4360 _ACEOF 4361 cat confdefs.h >>conftest.$ac_ext 4362 cat >>conftest.$ac_ext <<_ACEOF 4363 /* end confdefs.h. */ 4364 $ac_includes_default 4365 4366 #include <$ac_header> 4367 _ACEOF 4368 rm -f conftest.$ac_objext 4369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4370 (eval $ac_compile) 2>conftest.er1 4371 ac_status=$? 4372 grep -v '^ *+' conftest.er1 >conftest.err 4373 rm -f conftest.er1 4374 cat conftest.err >&5 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); } && 4377 { ac_try='test -z "$ac_c_werror_flag" 4378 || test ! -s conftest.err' 4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4380 (eval $ac_try) 2>&5 4381 ac_status=$? 4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4383 (exit $ac_status); }; } && 4384 { ac_try='test -s conftest.$ac_objext' 4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4386 (eval $ac_try) 2>&5 4387 ac_status=$? 4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4389 (exit $ac_status); }; }; then 4390 eval "$as_ac_Header=yes" 4391 else 4392 echo "$as_me: failed program was:" >&5 4393 sed 's/^/| /' conftest.$ac_ext >&5 4394 4395 eval "$as_ac_Header=no" 4396 fi 4397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4398 fi 4399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4401 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4402 cat >>confdefs.h <<_ACEOF 4403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4404 _ACEOF 4405 4406 fi 4407 2048 4408 done 2049 4409 2050 4410 2051 for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \ 4411 4412 4413 for ac_header in limits.h unistd.h 4414 do 4415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4416 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4417 echo "$as_me:$LINENO: checking for $ac_header" >&5 4418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4419 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4420 echo $ECHO_N "(cached) $ECHO_C" >&6 4421 fi 4422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4424 else 4425 # Is the header compilable? 4426 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4428 cat >conftest.$ac_ext <<_ACEOF 4429 /* confdefs.h. */ 4430 _ACEOF 4431 cat confdefs.h >>conftest.$ac_ext 4432 cat >>conftest.$ac_ext <<_ACEOF 4433 /* end confdefs.h. */ 4434 $ac_includes_default 4435 #include <$ac_header> 4436 _ACEOF 4437 rm -f conftest.$ac_objext 4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4439 (eval $ac_compile) 2>conftest.er1 4440 ac_status=$? 4441 grep -v '^ *+' conftest.er1 >conftest.err 4442 rm -f conftest.er1 4443 cat conftest.err >&5 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); } && 4446 { ac_try='test -z "$ac_c_werror_flag" 4447 || test ! -s conftest.err' 4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4449 (eval $ac_try) 2>&5 4450 ac_status=$? 4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4452 (exit $ac_status); }; } && 4453 { ac_try='test -s conftest.$ac_objext' 4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4455 (eval $ac_try) 2>&5 4456 ac_status=$? 4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4458 (exit $ac_status); }; }; then 4459 ac_header_compiler=yes 4460 else 4461 echo "$as_me: failed program was:" >&5 4462 sed 's/^/| /' conftest.$ac_ext >&5 4463 4464 ac_header_compiler=no 4465 fi 4466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4468 echo "${ECHO_T}$ac_header_compiler" >&6 4469 4470 # Is the header present? 4471 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4473 cat >conftest.$ac_ext <<_ACEOF 4474 /* confdefs.h. */ 4475 _ACEOF 4476 cat confdefs.h >>conftest.$ac_ext 4477 cat >>conftest.$ac_ext <<_ACEOF 4478 /* end confdefs.h. */ 4479 #include <$ac_header> 4480 _ACEOF 4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4483 ac_status=$? 4484 grep -v '^ *+' conftest.er1 >conftest.err 4485 rm -f conftest.er1 4486 cat conftest.err >&5 4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4488 (exit $ac_status); } >/dev/null; then 4489 if test -s conftest.err; then 4490 ac_cpp_err=$ac_c_preproc_warn_flag 4491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4492 else 4493 ac_cpp_err= 4494 fi 4495 else 4496 ac_cpp_err=yes 4497 fi 4498 if test -z "$ac_cpp_err"; then 4499 ac_header_preproc=yes 4500 else 4501 echo "$as_me: failed program was:" >&5 4502 sed 's/^/| /' conftest.$ac_ext >&5 4503 4504 ac_header_preproc=no 4505 fi 4506 rm -f conftest.err conftest.$ac_ext 4507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4508 echo "${ECHO_T}$ac_header_preproc" >&6 4509 4510 # So? What about this header? 4511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4512 yes:no: ) 4513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4517 ac_header_preproc=yes 4518 ;; 4519 no:yes:* ) 4520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4532 ( 4533 cat <<\_ASBOX 4534 ## ------------------------------------------ ## 4535 ## Report this to the AC_PACKAGE_NAME lists. ## 4536 ## ------------------------------------------ ## 4537 _ASBOX 4538 ) | 4539 sed "s/^/$as_me: WARNING: /" >&2 4540 ;; 4541 esac 4542 echo "$as_me:$LINENO: checking for $ac_header" >&5 4543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4544 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4545 echo $ECHO_N "(cached) $ECHO_C" >&6 4546 else 4547 eval "$as_ac_Header=\$ac_header_preproc" 4548 fi 4549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4551 4552 fi 4553 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4554 cat >>confdefs.h <<_ACEOF 4555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4556 _ACEOF 4557 4558 else 4559 { { echo "$as_me:$LINENO: error: Can not compile without limits.h unistd.h" >&5 4560 echo "$as_me: error: Can not compile without limits.h unistd.h" >&2;} 4561 { (exit 1); exit 1; }; } 4562 fi 4563 4564 done 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 for ac_header in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \ 2052 4583 sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h \ 2053 4584 termios.h term.h readline/readline.h 2054 4585 do 2055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2057 echo "configure:2058: checking for $ac_hdr" >&5 2058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2059 echo $ac_n "(cached) $ac_c" 1>&6 2060 else 2061 cat > conftest.$ac_ext <<EOF 2062 #line 2063 "configure" 2063 #include "confdefs.h" 2064 #include <$ac_hdr> 2065 EOF 2066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2067 { (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2069 if test -z "$ac_err"; then 2070 rm -rf conftest* 2071 eval "ac_cv_header_$ac_safe=yes" 2072 else 2073 echo "$ac_err" >&5 2074 echo "configure: failed program was:" >&5 2075 cat conftest.$ac_ext >&5 2076 rm -rf conftest* 2077 eval "ac_cv_header_$ac_safe=no" 2078 fi 2079 rm -f conftest* 2080 fi 2081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2082 echo "$ac_t""yes" 1>&6 2083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2084 cat >> confdefs.h <<EOF 2085 #define $ac_tr_hdr 1 2086 EOF 2087 2088 else 2089 echo "$ac_t""no" 1>&6 2090 fi 4586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4588 echo "$as_me:$LINENO: checking for $ac_header" >&5 4589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4590 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4591 echo $ECHO_N "(cached) $ECHO_C" >&6 4592 fi 4593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4595 else 4596 # Is the header compilable? 4597 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4599 cat >conftest.$ac_ext <<_ACEOF 4600 /* confdefs.h. */ 4601 _ACEOF 4602 cat confdefs.h >>conftest.$ac_ext 4603 cat >>conftest.$ac_ext <<_ACEOF 4604 /* end confdefs.h. */ 4605 $ac_includes_default 4606 #include <$ac_header> 4607 _ACEOF 4608 rm -f conftest.$ac_objext 4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4610 (eval $ac_compile) 2>conftest.er1 4611 ac_status=$? 4612 grep -v '^ *+' conftest.er1 >conftest.err 4613 rm -f conftest.er1 4614 cat conftest.err >&5 4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4616 (exit $ac_status); } && 4617 { ac_try='test -z "$ac_c_werror_flag" 4618 || test ! -s conftest.err' 4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4620 (eval $ac_try) 2>&5 4621 ac_status=$? 4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4623 (exit $ac_status); }; } && 4624 { ac_try='test -s conftest.$ac_objext' 4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4626 (eval $ac_try) 2>&5 4627 ac_status=$? 4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4629 (exit $ac_status); }; }; then 4630 ac_header_compiler=yes 4631 else 4632 echo "$as_me: failed program was:" >&5 4633 sed 's/^/| /' conftest.$ac_ext >&5 4634 4635 ac_header_compiler=no 4636 fi 4637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4639 echo "${ECHO_T}$ac_header_compiler" >&6 4640 4641 # Is the header present? 4642 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4644 cat >conftest.$ac_ext <<_ACEOF 4645 /* confdefs.h. */ 4646 _ACEOF 4647 cat confdefs.h >>conftest.$ac_ext 4648 cat >>conftest.$ac_ext <<_ACEOF 4649 /* end confdefs.h. */ 4650 #include <$ac_header> 4651 _ACEOF 4652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4654 ac_status=$? 4655 grep -v '^ *+' conftest.er1 >conftest.err 4656 rm -f conftest.er1 4657 cat conftest.err >&5 4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4659 (exit $ac_status); } >/dev/null; then 4660 if test -s conftest.err; then 4661 ac_cpp_err=$ac_c_preproc_warn_flag 4662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4663 else 4664 ac_cpp_err= 4665 fi 4666 else 4667 ac_cpp_err=yes 4668 fi 4669 if test -z "$ac_cpp_err"; then 4670 ac_header_preproc=yes 4671 else 4672 echo "$as_me: failed program was:" >&5 4673 sed 's/^/| /' conftest.$ac_ext >&5 4674 4675 ac_header_preproc=no 4676 fi 4677 rm -f conftest.err conftest.$ac_ext 4678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4679 echo "${ECHO_T}$ac_header_preproc" >&6 4680 4681 # So? What about this header? 4682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4683 yes:no: ) 4684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4688 ac_header_preproc=yes 4689 ;; 4690 no:yes:* ) 4691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4698 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4703 ( 4704 cat <<\_ASBOX 4705 ## ------------------------------------------ ## 4706 ## Report this to the AC_PACKAGE_NAME lists. ## 4707 ## ------------------------------------------ ## 4708 _ASBOX 4709 ) | 4710 sed "s/^/$as_me: WARNING: /" >&2 4711 ;; 4712 esac 4713 echo "$as_me:$LINENO: checking for $ac_header" >&5 4714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4715 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4716 echo $ECHO_N "(cached) $ECHO_C" >&6 4717 else 4718 eval "$as_ac_Header=\$ac_header_preproc" 4719 fi 4720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4722 4723 fi 4724 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4725 cat >>confdefs.h <<_ACEOF 4726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4727 _ACEOF 4728 4729 fi 4730 2091 4731 done 2092 4732 2093 4733 2094 4734 # typedefs, structures 2095 echo $ac_n "checking for working const""... $ac_c" 1>&6 2096 echo "configure:2097: checking for working const" >&5 2097 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2098 echo $ac_n "(cached) $ac_c" 1>&6 2099 else 2100 cat > conftest.$ac_ext <<EOF 2101 #line 2102 "configure" 2102 #include "confdefs.h" 2103 2104 int main() { 2105 2106 /* Ultrix mips cc rejects this. */ 2107 typedef int charset[2]; const charset x; 2108 /* SunOS 4.1.1 cc rejects this. */ 2109 char const *const *ccp; 2110 char **p; 2111 /* NEC SVR4.0.2 mips cc rejects this. */ 2112 struct point {int x, y;}; 2113 static struct point const zero = {0,0}; 2114 /* AIX XL C 1.02.0.0 rejects this. 2115 It does not let you subtract one const X* pointer from another in an arm 2116 of an if-expression whose if-part is not a constant expression */ 2117 const char *g = "string"; 2118 ccp = &g + (g ? g-g : 0); 2119 /* HPUX 7.0 cc rejects these. */ 2120 ++ccp; 2121 p = (char**) ccp; 2122 ccp = (char const *const *) p; 2123 { /* SCO 3.2v4 cc rejects this. */ 2124 char *t; 2125 char const *s = 0 ? (char *) 0 : (char const *) 0; 2126 2127 *t++ = 0; 4735 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4736 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4737 if test "${ac_cv_c_const+set}" = set; then 4738 echo $ECHO_N "(cached) $ECHO_C" >&6 4739 else 4740 cat >conftest.$ac_ext <<_ACEOF 4741 /* confdefs.h. */ 4742 _ACEOF 4743 cat confdefs.h >>conftest.$ac_ext 4744 cat >>conftest.$ac_ext <<_ACEOF 4745 /* end confdefs.h. */ 4746 4747 int 4748 main () 4749 { 4750 /* FIXME: Include the comments suggested by Paul. */ 4751 #ifndef __cplusplus 4752 /* Ultrix mips cc rejects this. */ 4753 typedef int charset[2]; 4754 const charset x; 4755 /* SunOS 4.1.1 cc rejects this. */ 4756 char const *const *ccp; 4757 char **p; 4758 /* NEC SVR4.0.2 mips cc rejects this. */ 4759 struct point {int x, y;}; 4760 static struct point const zero = {0,0}; 4761 /* AIX XL C 1.02.0.0 rejects this. 4762 It does not let you subtract one const X* pointer from another in 4763 an arm of an if-expression whose if-part is not a constant 4764 expression */ 4765 const char *g = "string"; 4766 ccp = &g + (g ? g-g : 0); 4767 /* HPUX 7.0 cc rejects these. */ 4768 ++ccp; 4769 p = (char**) ccp; 4770 ccp = (char const *const *) p; 4771 { /* SCO 3.2v4 cc rejects this. */ 4772 char *t; 4773 char const *s = 0 ? (char *) 0 : (char const *) 0; 4774 4775 *t++ = 0; 4776 } 4777 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4778 int x[] = {25, 17}; 4779 const int *foo = &x[0]; 4780 ++foo; 4781 } 4782 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4783 typedef const int *iptr; 4784 iptr p = 0; 4785 ++p; 4786 } 4787 { /* AIX XL C 1.02.0.0 rejects this saying 4788 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4789 struct s { int j; const int *ap[3]; }; 4790 struct s *b; b->j = 5; 4791 } 4792 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4793 const int foo = 10; 4794 } 4795 #endif 4796 4797 ; 4798 return 0; 2128 4799 } 2129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2130 int x[] = {25, 17}; 2131 const int *foo = &x[0]; 2132 ++foo;2133 } 2134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2135 typedef const int *iptr;2136 iptr p = 0;2137 ++p;2138 } 2139 { /* AIX XL C 1.02.0.0 rejects this saying 2140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2141 struct s { int j; const int *ap[3]; };2142 struct s *b; b->j = 5;2143 } 2144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2145 const int foo = 10;2146 } 2147 2148 ; return 0; } 2149 EOF 2150 if { (eval echo configure:2151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2151 rm -rf conftest*4800 _ACEOF 4801 rm -f conftest.$ac_objext 4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4803 (eval $ac_compile) 2>conftest.er1 4804 ac_status=$? 4805 grep -v '^ *+' conftest.er1 >conftest.err 4806 rm -f conftest.er1 4807 cat conftest.err >&5 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); } && 4810 { ac_try='test -z "$ac_c_werror_flag" 4811 || test ! -s conftest.err' 4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4813 (eval $ac_try) 2>&5 4814 ac_status=$? 4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4816 (exit $ac_status); }; } && 4817 { ac_try='test -s conftest.$ac_objext' 4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4819 (eval $ac_try) 2>&5 4820 ac_status=$? 4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4822 (exit $ac_status); }; }; then 2152 4823 ac_cv_c_const=yes 2153 4824 else 2154 echo " configure: failed program was:" >&52155 catconftest.$ac_ext >&52156 rm -rf conftest* 2157 2158 fi 2159 rm -f conftest *2160 fi 2161 2162 echo "$ ac_t""$ac_cv_c_const" 1>&64825 echo "$as_me: failed program was:" >&5 4826 sed 's/^/| /' conftest.$ac_ext >&5 4827 4828 ac_cv_c_const=no 4829 fi 4830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4831 fi 4832 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4833 echo "${ECHO_T}$ac_cv_c_const" >&6 2163 4834 if test $ac_cv_c_const = no; then 2164 cat >> confdefs.h <<\EOF 2165 #define const 2166 EOF 2167 2168 fi 2169 2170 echo $ac_n "checking for inline""... $ac_c" 1>&6 2171 echo "configure:2172: checking for inline" >&5 2172 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2173 echo $ac_n "(cached) $ac_c" 1>&6 4835 4836 cat >>confdefs.h <<\_ACEOF 4837 #define const 4838 _ACEOF 4839 4840 fi 4841 4842 echo "$as_me:$LINENO: checking for inline" >&5 4843 echo $ECHO_N "checking for inline... $ECHO_C" >&6 4844 if test "${ac_cv_c_inline+set}" = set; then 4845 echo $ECHO_N "(cached) $ECHO_C" >&6 2174 4846 else 2175 4847 ac_cv_c_inline=no 2176 4848 for ac_kw in inline __inline__ __inline; do 2177 cat > conftest.$ac_ext <<EOF 2178 #line 2179 "configure" 2179 #include "confdefs.h" 2180 2181 int main() { 2182 } $ac_kw foo() { 2183 ; return 0; } 2184 EOF 2185 if { (eval echo configure:2186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2186 rm -rf conftest* 4849 cat >conftest.$ac_ext <<_ACEOF 4850 /* confdefs.h. */ 4851 _ACEOF 4852 cat confdefs.h >>conftest.$ac_ext 4853 cat >>conftest.$ac_ext <<_ACEOF 4854 /* end confdefs.h. */ 4855 #ifndef __cplusplus 4856 typedef int foo_t; 4857 static $ac_kw foo_t static_foo () {return 0; } 4858 $ac_kw foo_t foo () {return 0; } 4859 #endif 4860 4861 _ACEOF 4862 rm -f conftest.$ac_objext 4863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4864 (eval $ac_compile) 2>conftest.er1 4865 ac_status=$? 4866 grep -v '^ *+' conftest.er1 >conftest.err 4867 rm -f conftest.er1 4868 cat conftest.err >&5 4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); } && 4871 { ac_try='test -z "$ac_c_werror_flag" 4872 || test ! -s conftest.err' 4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4874 (eval $ac_try) 2>&5 4875 ac_status=$? 4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4877 (exit $ac_status); }; } && 4878 { ac_try='test -s conftest.$ac_objext' 4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4880 (eval $ac_try) 2>&5 4881 ac_status=$? 4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4883 (exit $ac_status); }; }; then 2187 4884 ac_cv_c_inline=$ac_kw; break 2188 4885 else 2189 echo "configure: failed program was:" >&5 2190 cat conftest.$ac_ext >&5 2191 fi 2192 rm -f conftest* 4886 echo "$as_me: failed program was:" >&5 4887 sed 's/^/| /' conftest.$ac_ext >&5 4888 4889 fi 4890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2193 4891 done 2194 4892 2195 4893 fi 2196 2197 echo "$ac_t""$ac_cv_c_inline" 1>&6 2198 case "$ac_cv_c_inline" in 4894 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4895 echo "${ECHO_T}$ac_cv_c_inline" >&6 4896 4897 4898 case $ac_cv_c_inline in 2199 4899 inline | yes) ;; 2200 no) cat >> confdefs.h <<\EOF 2201 #define inline 2202 EOF 2203 ;; 2204 *) cat >> confdefs.h <<EOF 2205 #define inline $ac_cv_c_inline 2206 EOF 2207 ;; 4900 *) 4901 case $ac_cv_c_inline in 4902 no) ac_val=;; 4903 *) ac_val=$ac_cv_c_inline;; 4904 esac 4905 cat >>confdefs.h <<_ACEOF 4906 #ifndef __cplusplus 4907 #define inline $ac_val 4908 #endif 4909 _ACEOF 4910 ;; 2208 4911 esac 2209 4912 2210 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2211 echo "configure:2212: checking for size_t" >&5 2212 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2213 echo $ac_n "(cached) $ac_c" 1>&6 2214 else 2215 cat > conftest.$ac_ext <<EOF 2216 #line 2217 "configure" 2217 #include "confdefs.h" 2218 #include <sys/types.h> 2219 #if STDC_HEADERS 2220 #include <stdlib.h> 2221 #include <stddef.h> 2222 #endif 2223 EOF 2224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2225 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2226 rm -rf conftest* 4913 echo "$as_me:$LINENO: checking for size_t" >&5 4914 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4915 if test "${ac_cv_type_size_t+set}" = set; then 4916 echo $ECHO_N "(cached) $ECHO_C" >&6 4917 else 4918 cat >conftest.$ac_ext <<_ACEOF 4919 /* confdefs.h. */ 4920 _ACEOF 4921 cat confdefs.h >>conftest.$ac_ext 4922 cat >>conftest.$ac_ext <<_ACEOF 4923 /* end confdefs.h. */ 4924 $ac_includes_default 4925 int 4926 main () 4927 { 4928 if ((size_t *) 0) 4929 return 0; 4930 if (sizeof (size_t)) 4931 return 0; 4932 ; 4933 return 0; 4934 } 4935 _ACEOF 4936 rm -f conftest.$ac_objext 4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4938 (eval $ac_compile) 2>conftest.er1 4939 ac_status=$? 4940 grep -v '^ *+' conftest.er1 >conftest.err 4941 rm -f conftest.er1 4942 cat conftest.err >&5 4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4944 (exit $ac_status); } && 4945 { ac_try='test -z "$ac_c_werror_flag" 4946 || test ! -s conftest.err' 4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4948 (eval $ac_try) 2>&5 4949 ac_status=$? 4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4951 (exit $ac_status); }; } && 4952 { ac_try='test -s conftest.$ac_objext' 4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4954 (eval $ac_try) 2>&5 4955 ac_status=$? 4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4957 (exit $ac_status); }; }; then 2227 4958 ac_cv_type_size_t=yes 2228 4959 else 2229 rm -rf conftest* 2230 ac_cv_type_size_t=no 2231 fi 2232 rm -f conftest* 2233 2234 fi 2235 echo "$ac_t""$ac_cv_type_size_t" 1>&6 2236 if test $ac_cv_type_size_t = no; then 2237 cat >> confdefs.h <<\EOF 4960 echo "$as_me: failed program was:" >&5 4961 sed 's/^/| /' conftest.$ac_ext >&5 4962 4963 ac_cv_type_size_t=no 4964 fi 4965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4966 fi 4967 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4968 echo "${ECHO_T}$ac_cv_type_size_t" >&6 4969 if test $ac_cv_type_size_t = yes; then 4970 : 4971 else 4972 4973 cat >>confdefs.h <<_ACEOF 2238 4974 #define size_t unsigned 2239 EOF 2240 2241 fi 2242 2243 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2244 echo "configure:2245: checking whether struct tm is in sys/time.h or time.h" >&5 2245 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2246 echo $ac_n "(cached) $ac_c" 1>&6 2247 else 2248 cat > conftest.$ac_ext <<EOF 2249 #line 2250 "configure" 2250 #include "confdefs.h" 4975 _ACEOF 4976 4977 fi 4978 4979 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4980 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4981 if test "${ac_cv_struct_tm+set}" = set; then 4982 echo $ECHO_N "(cached) $ECHO_C" >&6 4983 else 4984 cat >conftest.$ac_ext <<_ACEOF 4985 /* confdefs.h. */ 4986 _ACEOF 4987 cat confdefs.h >>conftest.$ac_ext 4988 cat >>conftest.$ac_ext <<_ACEOF 4989 /* end confdefs.h. */ 2251 4990 #include <sys/types.h> 2252 4991 #include <time.h> 2253 int main() { 4992 4993 int 4994 main () 4995 { 2254 4996 struct tm *tp; tp->tm_sec; 2255 ; return 0; } 2256 EOF 2257 if { (eval echo configure:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2258 rm -rf conftest* 4997 ; 4998 return 0; 4999 } 5000 _ACEOF 5001 rm -f conftest.$ac_objext 5002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5003 (eval $ac_compile) 2>conftest.er1 5004 ac_status=$? 5005 grep -v '^ *+' conftest.er1 >conftest.err 5006 rm -f conftest.er1 5007 cat conftest.err >&5 5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5009 (exit $ac_status); } && 5010 { ac_try='test -z "$ac_c_werror_flag" 5011 || test ! -s conftest.err' 5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5013 (eval $ac_try) 2>&5 5014 ac_status=$? 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); }; } && 5017 { ac_try='test -s conftest.$ac_objext' 5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5019 (eval $ac_try) 2>&5 5020 ac_status=$? 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); }; }; then 2259 5023 ac_cv_struct_tm=time.h 2260 5024 else 2261 echo " configure: failed program was:" >&52262 catconftest.$ac_ext >&52263 rm -rf conftest* 2264 2265 fi 2266 rm -f conftest *2267 fi 2268 2269 echo "$ ac_t""$ac_cv_struct_tm" 1>&65025 echo "$as_me: failed program was:" >&5 5026 sed 's/^/| /' conftest.$ac_ext >&5 5027 5028 ac_cv_struct_tm=sys/time.h 5029 fi 5030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5031 fi 5032 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 5033 echo "${ECHO_T}$ac_cv_struct_tm" >&6 2270 5034 if test $ac_cv_struct_tm = sys/time.h; then 2271 cat >> confdefs.h <<\EOF 5035 5036 cat >>confdefs.h <<\_ACEOF 2272 5037 #define TM_IN_SYS_TIME 1 2273 EOF 2274 2275 fi 2276 2277 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2278 echo "configure:2279: checking whether time.h and sys/time.h may both be included" >&5 2279 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2280 echo $ac_n "(cached) $ac_c" 1>&6 2281 else 2282 cat > conftest.$ac_ext <<EOF 2283 #line 2284 "configure" 2284 #include "confdefs.h" 5038 _ACEOF 5039 5040 fi 5041 5042 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5043 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 5044 if test "${ac_cv_header_time+set}" = set; then 5045 echo $ECHO_N "(cached) $ECHO_C" >&6 5046 else 5047 cat >conftest.$ac_ext <<_ACEOF 5048 /* confdefs.h. */ 5049 _ACEOF 5050 cat confdefs.h >>conftest.$ac_ext 5051 cat >>conftest.$ac_ext <<_ACEOF 5052 /* end confdefs.h. */ 2285 5053 #include <sys/types.h> 2286 5054 #include <sys/time.h> 2287 5055 #include <time.h> 2288 int main() { 2289 struct tm *tp; 2290 ; return 0; } 2291 EOF 2292 if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2293 rm -rf conftest* 5056 5057 int 5058 main () 5059 { 5060 if ((struct tm *) 0) 5061 return 0; 5062 ; 5063 return 0; 5064 } 5065 _ACEOF 5066 rm -f conftest.$ac_objext 5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5068 (eval $ac_compile) 2>conftest.er1 5069 ac_status=$? 5070 grep -v '^ *+' conftest.er1 >conftest.err 5071 rm -f conftest.er1 5072 cat conftest.err >&5 5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5074 (exit $ac_status); } && 5075 { ac_try='test -z "$ac_c_werror_flag" 5076 || test ! -s conftest.err' 5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5078 (eval $ac_try) 2>&5 5079 ac_status=$? 5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5081 (exit $ac_status); }; } && 5082 { ac_try='test -s conftest.$ac_objext' 5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5084 (eval $ac_try) 2>&5 5085 ac_status=$? 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); }; }; then 2294 5088 ac_cv_header_time=yes 2295 5089 else 2296 echo " configure: failed program was:" >&52297 catconftest.$ac_ext >&52298 rm -rf conftest* 2299 2300 fi 2301 rm -f conftest *2302 fi 2303 2304 echo "$ ac_t""$ac_cv_header_time" 1>&65090 echo "$as_me: failed program was:" >&5 5091 sed 's/^/| /' conftest.$ac_ext >&5 5092 5093 ac_cv_header_time=no 5094 fi 5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5096 fi 5097 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5098 echo "${ECHO_T}$ac_cv_header_time" >&6 2305 5099 if test $ac_cv_header_time = yes; then 2306 cat >> confdefs.h <<\EOF 5100 5101 cat >>confdefs.h <<\_ACEOF 2307 5102 #define TIME_WITH_SYS_TIME 1 2308 EOF5103 _ACEOF 2309 5104 2310 5105 fi … … 2314 5109 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2315 5110 # for constant arguments. Useless! 2316 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2317 echo "configure:2318: checking for working alloca.h" >&5 2318 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2319 echo $ac_n "(cached) $ac_c" 1>&6 2320 else 2321 cat > conftest.$ac_ext <<EOF 2322 #line 2323 "configure" 2323 #include "confdefs.h" 5111 echo "$as_me:$LINENO: checking for working alloca.h" >&5 5112 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5113 if test "${ac_cv_working_alloca_h+set}" = set; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115 else 5116 cat >conftest.$ac_ext <<_ACEOF 5117 /* confdefs.h. */ 5118 _ACEOF 5119 cat confdefs.h >>conftest.$ac_ext 5120 cat >>conftest.$ac_ext <<_ACEOF 5121 /* end confdefs.h. */ 2324 5122 #include <alloca.h> 2325 int main() { 2326 char *p = alloca(2 * sizeof(int)); 2327 ; return 0; } 2328 EOF 2329 if { (eval echo configure:2330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2330 rm -rf conftest* 2331 ac_cv_header_alloca_h=yes 2332 else 2333 echo "configure: failed program was:" >&5 2334 cat conftest.$ac_ext >&5 2335 rm -rf conftest* 2336 ac_cv_header_alloca_h=no 2337 fi 2338 rm -f conftest* 2339 fi 2340 2341 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2342 if test $ac_cv_header_alloca_h = yes; then 2343 cat >> confdefs.h <<\EOF 5123 int 5124 main () 5125 { 5126 char *p = (char *) alloca (2 * sizeof (int)); 5127 ; 5128 return 0; 5129 } 5130 _ACEOF 5131 rm -f conftest.$ac_objext conftest$ac_exeext 5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5133 (eval $ac_link) 2>conftest.er1 5134 ac_status=$? 5135 grep -v '^ *+' conftest.er1 >conftest.err 5136 rm -f conftest.er1 5137 cat conftest.err >&5 5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5139 (exit $ac_status); } && 5140 { ac_try='test -z "$ac_c_werror_flag" 5141 || test ! -s conftest.err' 5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5143 (eval $ac_try) 2>&5 5144 ac_status=$? 5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5146 (exit $ac_status); }; } && 5147 { ac_try='test -s conftest$ac_exeext' 5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5149 (eval $ac_try) 2>&5 5150 ac_status=$? 5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5152 (exit $ac_status); }; }; then 5153 ac_cv_working_alloca_h=yes 5154 else 5155 echo "$as_me: failed program was:" >&5 5156 sed 's/^/| /' conftest.$ac_ext >&5 5157 5158 ac_cv_working_alloca_h=no 5159 fi 5160 rm -f conftest.err conftest.$ac_objext \ 5161 conftest$ac_exeext conftest.$ac_ext 5162 fi 5163 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5164 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5165 if test $ac_cv_working_alloca_h = yes; then 5166 5167 cat >>confdefs.h <<\_ACEOF 2344 5168 #define HAVE_ALLOCA_H 1 2345 EOF 2346 2347 fi 2348 2349 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2350 echo "configure:2351: checking for alloca" >&5 2351 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2352 echo $ac_n "(cached) $ac_c" 1>&6 2353 else 2354 cat > conftest.$ac_ext <<EOF 2355 #line 2356 "configure" 2356 #include "confdefs.h" 2357 5169 _ACEOF 5170 5171 fi 5172 5173 echo "$as_me:$LINENO: checking for alloca" >&5 5174 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5175 if test "${ac_cv_func_alloca_works+set}" = set; then 5176 echo $ECHO_N "(cached) $ECHO_C" >&6 5177 else 5178 cat >conftest.$ac_ext <<_ACEOF 5179 /* confdefs.h. */ 5180 _ACEOF 5181 cat confdefs.h >>conftest.$ac_ext 5182 cat >>conftest.$ac_ext <<_ACEOF 5183 /* end confdefs.h. */ 2358 5184 #ifdef __GNUC__ 2359 5185 # define alloca __builtin_alloca … … 2377 5203 #endif 2378 5204 2379 int main() { 2380 char *p = (char *) alloca(1); 2381 ; return 0; } 2382 EOF 2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2384 rm -rf conftest* 5205 int 5206 main () 5207 { 5208 char *p = (char *) alloca (1); 5209 ; 5210 return 0; 5211 } 5212 _ACEOF 5213 rm -f conftest.$ac_objext conftest$ac_exeext 5214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5215 (eval $ac_link) 2>conftest.er1 5216 ac_status=$? 5217 grep -v '^ *+' conftest.er1 >conftest.err 5218 rm -f conftest.er1 5219 cat conftest.err >&5 5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5221 (exit $ac_status); } && 5222 { ac_try='test -z "$ac_c_werror_flag" 5223 || test ! -s conftest.err' 5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5225 (eval $ac_try) 2>&5 5226 ac_status=$? 5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5228 (exit $ac_status); }; } && 5229 { ac_try='test -s conftest$ac_exeext' 5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5231 (eval $ac_try) 2>&5 5232 ac_status=$? 5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5234 (exit $ac_status); }; }; then 2385 5235 ac_cv_func_alloca_works=yes 2386 5236 else 2387 echo "configure: failed program was:" >&5 2388 cat conftest.$ac_ext >&5 2389 rm -rf conftest* 2390 ac_cv_func_alloca_works=no 2391 fi 2392 rm -f conftest* 2393 fi 2394 2395 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 5237 echo "$as_me: failed program was:" >&5 5238 sed 's/^/| /' conftest.$ac_ext >&5 5239 5240 ac_cv_func_alloca_works=no 5241 fi 5242 rm -f conftest.err conftest.$ac_objext \ 5243 conftest$ac_exeext conftest.$ac_ext 5244 fi 5245 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5246 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5247 2396 5248 if test $ac_cv_func_alloca_works = yes; then 2397 cat >> confdefs.h <<\EOF 5249 5250 cat >>confdefs.h <<\_ACEOF 2398 5251 #define HAVE_ALLOCA 1 2399 EOF 2400 2401 fi 2402 2403 if test $ac_cv_func_alloca_works = no; then 5252 _ACEOF 5253 5254 else 2404 5255 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2405 # that cause trouble. Some versions do not even contain alloca or 2406 # contain a buggy version. If you still want to use their alloca, 2407 # use ar to extract alloca.o from them instead of compiling alloca.c. 2408 ALLOCA=alloca.${ac_objext} 2409 cat >> confdefs.h <<\EOF 5256 # that cause trouble. Some versions do not even contain alloca or 5257 # contain a buggy version. If you still want to use their alloca, 5258 # use ar to extract alloca.o from them instead of compiling alloca.c. 5259 5260 ALLOCA=alloca.$ac_objext 5261 5262 cat >>confdefs.h <<\_ACEOF 2410 5263 #define C_ALLOCA 1 2411 EOF 2412 2413 2414 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2415 echo "configure:2416: checking whether alloca needs Cray hooks" >&5 2416 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2417 echo $ac_n "(cached) $ac_c" 1>&6 2418 else 2419 cat > conftest.$ac_ext <<EOF 2420 #line 2421 "configure" 2421 #include "confdefs.h" 5264 _ACEOF 5265 5266 5267 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5268 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5269 if test "${ac_cv_os_cray+set}" = set; then 5270 echo $ECHO_N "(cached) $ECHO_C" >&6 5271 else 5272 cat >conftest.$ac_ext <<_ACEOF 5273 /* confdefs.h. */ 5274 _ACEOF 5275 cat confdefs.h >>conftest.$ac_ext 5276 cat >>conftest.$ac_ext <<_ACEOF 5277 /* end confdefs.h. */ 2422 5278 #if defined(CRAY) && ! defined(CRAY2) 2423 5279 webecray … … 2426 5282 #endif 2427 5283 2428 EOF5284 _ACEOF 2429 5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2430 egrep "webecray" >/dev/null 2>&1; then 2431 rm -rf conftest* 5286 $EGREP "webecray" >/dev/null 2>&1; then 2432 5287 ac_cv_os_cray=yes 2433 5288 else 2434 rm -rf conftest*2435 5289 ac_cv_os_cray=no 2436 5290 fi … … 2438 5292 2439 5293 fi 2440 2441 echo "$ ac_t""$ac_cv_os_cray" 1>&65294 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5295 echo "${ECHO_T}$ac_cv_os_cray" >&6 2442 5296 if test $ac_cv_os_cray = yes; then 2443 for ac_func in _getb67 GETB67 getb67; do 2444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2445 echo "configure:2446: checking for $ac_func" >&5 2446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2447 echo $ac_n "(cached) $ac_c" 1>&6 2448 else 2449 cat > conftest.$ac_ext <<EOF 2450 #line 2451 "configure" 2451 #include "confdefs.h" 5297 for ac_func in _getb67 GETB67 getb67; do 5298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5299 echo "$as_me:$LINENO: checking for $ac_func" >&5 5300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5301 if eval "test \"\${$as_ac_var+set}\" = set"; then 5302 echo $ECHO_N "(cached) $ECHO_C" >&6 5303 else 5304 cat >conftest.$ac_ext <<_ACEOF 5305 /* confdefs.h. */ 5306 _ACEOF 5307 cat confdefs.h >>conftest.$ac_ext 5308 cat >>conftest.$ac_ext <<_ACEOF 5309 /* end confdefs.h. */ 5310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5311 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5312 #define $ac_func innocuous_$ac_func 5313 2452 5314 /* System header to define __stub macros and hopefully few prototypes, 2453 which can conflict with char $ac_func(); below. */ 2454 #include <assert.h> 5315 which can conflict with char $ac_func (); below. 5316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5317 <limits.h> exists even on freestanding compilers. */ 5318 5319 #ifdef __STDC__ 5320 # include <limits.h> 5321 #else 5322 # include <assert.h> 5323 #endif 5324 5325 #undef $ac_func 5326 2455 5327 /* Override any gcc2 internal prototype to avoid an error. */ 5328 #ifdef __cplusplus 5329 extern "C" 5330 { 5331 #endif 2456 5332 /* We use char because int might match the return type of a gcc2 2457 builtin and then its argument prototype would still apply. */ 2458 char $ac_func(); 2459 2460 int main() { 2461 5333 builtin and then its argument prototype would still apply. */ 5334 char $ac_func (); 2462 5335 /* The GNU C library defines this for functions which it implements 2463 5336 to always fail with ENOSYS. Some functions are actually named … … 2466 5339 choke me 2467 5340 #else 2468 $ac_func();5341 char (*f) () = $ac_func; 2469 5342 #endif 2470 2471 ; return 0; } 2472 EOF 2473 if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2474 rm -rf conftest* 2475 eval "ac_cv_func_$ac_func=yes" 2476 else 2477 echo "configure: failed program was:" >&5 2478 cat conftest.$ac_ext >&5 2479 rm -rf conftest* 2480 eval "ac_cv_func_$ac_func=no" 2481 fi 2482 rm -f conftest* 2483 fi 2484 2485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2486 echo "$ac_t""yes" 1>&6 2487 cat >> confdefs.h <<EOF 5343 #ifdef __cplusplus 5344 } 5345 #endif 5346 5347 int 5348 main () 5349 { 5350 return f != $ac_func; 5351 ; 5352 return 0; 5353 } 5354 _ACEOF 5355 rm -f conftest.$ac_objext conftest$ac_exeext 5356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5357 (eval $ac_link) 2>conftest.er1 5358 ac_status=$? 5359 grep -v '^ *+' conftest.er1 >conftest.err 5360 rm -f conftest.er1 5361 cat conftest.err >&5 5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5363 (exit $ac_status); } && 5364 { ac_try='test -z "$ac_c_werror_flag" 5365 || test ! -s conftest.err' 5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5367 (eval $ac_try) 2>&5 5368 ac_status=$? 5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5370 (exit $ac_status); }; } && 5371 { ac_try='test -s conftest$ac_exeext' 5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5373 (eval $ac_try) 2>&5 5374 ac_status=$? 5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5376 (exit $ac_status); }; }; then 5377 eval "$as_ac_var=yes" 5378 else 5379 echo "$as_me: failed program was:" >&5 5380 sed 's/^/| /' conftest.$ac_ext >&5 5381 5382 eval "$as_ac_var=no" 5383 fi 5384 rm -f conftest.err conftest.$ac_objext \ 5385 conftest$ac_exeext conftest.$ac_ext 5386 fi 5387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5389 if test `eval echo '${'$as_ac_var'}'` = yes; then 5390 5391 cat >>confdefs.h <<_ACEOF 2488 5392 #define CRAY_STACKSEG_END $ac_func 2489 EOF 2490 2491 break 2492 else 2493 echo "$ac_t""no" 1>&6 2494 fi 2495 2496 done 2497 fi 2498 2499 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2500 echo "configure:2501: checking stack direction for C alloca" >&5 2501 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2502 echo $ac_n "(cached) $ac_c" 1>&6 5393 _ACEOF 5394 5395 break 5396 fi 5397 5398 done 5399 fi 5400 5401 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5402 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5403 if test "${ac_cv_c_stack_direction+set}" = set; then 5404 echo $ECHO_N "(cached) $ECHO_C" >&6 2503 5405 else 2504 5406 if test "$cross_compiling" = yes; then 2505 5407 ac_cv_c_stack_direction=0 2506 5408 else 2507 cat > conftest.$ac_ext <<EOF 2508 #line 2509 "configure" 2509 #include "confdefs.h" 5409 cat >conftest.$ac_ext <<_ACEOF 5410 /* confdefs.h. */ 5411 _ACEOF 5412 cat confdefs.h >>conftest.$ac_ext 5413 cat >>conftest.$ac_ext <<_ACEOF 5414 /* end confdefs.h. */ 5415 int 2510 5416 find_stack_direction () 2511 5417 { … … 2520 5426 return (&dummy > addr) ? 1 : -1; 2521 5427 } 5428 5429 int 2522 5430 main () 2523 5431 { 2524 exit (find_stack_direction () < 0);5432 exit (find_stack_direction () < 0); 2525 5433 } 2526 EOF 2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2528 then 5434 _ACEOF 5435 rm -f conftest$ac_exeext 5436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5437 (eval $ac_link) 2>&5 5438 ac_status=$? 5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5442 (eval $ac_try) 2>&5 5443 ac_status=$? 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); }; }; then 2529 5446 ac_cv_c_stack_direction=1 2530 5447 else 2531 echo "configure: failed program was:" >&5 2532 cat conftest.$ac_ext >&5 2533 rm -fr conftest* 2534 ac_cv_c_stack_direction=-1 2535 fi 2536 rm -fr conftest* 2537 fi 2538 2539 fi 2540 2541 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2542 cat >> confdefs.h <<EOF 5448 echo "$as_me: program exited with status $ac_status" >&5 5449 echo "$as_me: failed program was:" >&5 5450 sed 's/^/| /' conftest.$ac_ext >&5 5451 5452 ( exit $ac_status ) 5453 ac_cv_c_stack_direction=-1 5454 fi 5455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5456 fi 5457 fi 5458 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5459 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5460 5461 cat >>confdefs.h <<_ACEOF 2543 5462 #define STACK_DIRECTION $ac_cv_c_stack_direction 2544 EOF 2545 2546 fi 2547 2548 if test $ac_cv_prog_gcc = yes; then 2549 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2550 echo "configure:2551: checking whether ${CC-cc} needs -traditional" >&5 2551 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2552 echo $ac_n "(cached) $ac_c" 1>&6 5463 _ACEOF 5464 5465 5466 fi 5467 5468 if test $ac_cv_c_compiler_gnu = yes; then 5469 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 5470 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 5471 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 5472 echo $ECHO_N "(cached) $ECHO_C" >&6 2553 5473 else 2554 5474 ac_pattern="Autoconf.*'x'" 2555 cat > conftest.$ac_ext <<EOF 2556 #line 2557 "configure" 2557 #include "confdefs.h" 5475 cat >conftest.$ac_ext <<_ACEOF 5476 /* confdefs.h. */ 5477 _ACEOF 5478 cat confdefs.h >>conftest.$ac_ext 5479 cat >>conftest.$ac_ext <<_ACEOF 5480 /* end confdefs.h. */ 2558 5481 #include <sgtty.h> 2559 5482 Autoconf TIOCGETP 2560 EOF5483 _ACEOF 2561 5484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2562 egrep "$ac_pattern" >/dev/null 2>&1; then 2563 rm -rf conftest* 5485 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2564 5486 ac_cv_prog_gcc_traditional=yes 2565 5487 else 2566 rm -rf conftest*2567 5488 ac_cv_prog_gcc_traditional=no 2568 5489 fi … … 2571 5492 2572 5493 if test $ac_cv_prog_gcc_traditional = no; then 2573 cat > conftest.$ac_ext <<EOF 2574 #line 2575 "configure" 2575 #include "confdefs.h" 5494 cat >conftest.$ac_ext <<_ACEOF 5495 /* confdefs.h. */ 5496 _ACEOF 5497 cat confdefs.h >>conftest.$ac_ext 5498 cat >>conftest.$ac_ext <<_ACEOF 5499 /* end confdefs.h. */ 2576 5500 #include <termio.h> 2577 5501 Autoconf TCGETA 2578 EOF5502 _ACEOF 2579 5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2580 egrep "$ac_pattern" >/dev/null 2>&1; then 2581 rm -rf conftest* 5504 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2582 5505 ac_cv_prog_gcc_traditional=yes 2583 5506 fi … … 2586 5509 fi 2587 5510 fi 2588 2589 echo "$ ac_t""$ac_cv_prog_gcc_traditional" 1>&65511 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 5512 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2590 5513 if test $ac_cv_prog_gcc_traditional = yes; then 2591 5514 CC="$CC -traditional" … … 2593 5516 fi 2594 5517 2595 for ac_hdr in unistd.h 5518 5519 5520 for ac_header in stdlib.h unistd.h 2596 5521 do 2597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2599 echo "configure:2600: checking for $ac_hdr" >&5 2600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2601 echo $ac_n "(cached) $ac_c" 1>&6 2602 else 2603 cat > conftest.$ac_ext <<EOF 2604 #line 2605 "configure" 2605 #include "confdefs.h" 2606 #include <$ac_hdr> 2607 EOF 2608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2609 { (eval echo configure:2610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2611 if test -z "$ac_err"; then 2612 rm -rf conftest* 2613 eval "ac_cv_header_$ac_safe=yes" 2614 else 2615 echo "$ac_err" >&5 2616 echo "configure: failed program was:" >&5 2617 cat conftest.$ac_ext >&5 2618 rm -rf conftest* 2619 eval "ac_cv_header_$ac_safe=no" 2620 fi 2621 rm -f conftest* 2622 fi 2623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2624 echo "$ac_t""yes" 1>&6 2625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2626 cat >> confdefs.h <<EOF 2627 #define $ac_tr_hdr 1 2628 EOF 2629 2630 else 2631 echo "$ac_t""no" 1>&6 2632 fi 5522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5523 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5524 echo "$as_me:$LINENO: checking for $ac_header" >&5 5525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5526 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5527 echo $ECHO_N "(cached) $ECHO_C" >&6 5528 fi 5529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5531 else 5532 # Is the header compilable? 5533 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5535 cat >conftest.$ac_ext <<_ACEOF 5536 /* confdefs.h. */ 5537 _ACEOF 5538 cat confdefs.h >>conftest.$ac_ext 5539 cat >>conftest.$ac_ext <<_ACEOF 5540 /* end confdefs.h. */ 5541 $ac_includes_default 5542 #include <$ac_header> 5543 _ACEOF 5544 rm -f conftest.$ac_objext 5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5546 (eval $ac_compile) 2>conftest.er1 5547 ac_status=$? 5548 grep -v '^ *+' conftest.er1 >conftest.err 5549 rm -f conftest.er1 5550 cat conftest.err >&5 5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5552 (exit $ac_status); } && 5553 { ac_try='test -z "$ac_c_werror_flag" 5554 || test ! -s conftest.err' 5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5556 (eval $ac_try) 2>&5 5557 ac_status=$? 5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5559 (exit $ac_status); }; } && 5560 { ac_try='test -s conftest.$ac_objext' 5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5562 (eval $ac_try) 2>&5 5563 ac_status=$? 5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5565 (exit $ac_status); }; }; then 5566 ac_header_compiler=yes 5567 else 5568 echo "$as_me: failed program was:" >&5 5569 sed 's/^/| /' conftest.$ac_ext >&5 5570 5571 ac_header_compiler=no 5572 fi 5573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5575 echo "${ECHO_T}$ac_header_compiler" >&6 5576 5577 # Is the header present? 5578 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5580 cat >conftest.$ac_ext <<_ACEOF 5581 /* confdefs.h. */ 5582 _ACEOF 5583 cat confdefs.h >>conftest.$ac_ext 5584 cat >>conftest.$ac_ext <<_ACEOF 5585 /* end confdefs.h. */ 5586 #include <$ac_header> 5587 _ACEOF 5588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5590 ac_status=$? 5591 grep -v '^ *+' conftest.er1 >conftest.err 5592 rm -f conftest.er1 5593 cat conftest.err >&5 5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5595 (exit $ac_status); } >/dev/null; then 5596 if test -s conftest.err; then 5597 ac_cpp_err=$ac_c_preproc_warn_flag 5598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5599 else 5600 ac_cpp_err= 5601 fi 5602 else 5603 ac_cpp_err=yes 5604 fi 5605 if test -z "$ac_cpp_err"; then 5606 ac_header_preproc=yes 5607 else 5608 echo "$as_me: failed program was:" >&5 5609 sed 's/^/| /' conftest.$ac_ext >&5 5610 5611 ac_header_preproc=no 5612 fi 5613 rm -f conftest.err conftest.$ac_ext 5614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5615 echo "${ECHO_T}$ac_header_preproc" >&6 5616 5617 # So? What about this header? 5618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5619 yes:no: ) 5620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5624 ac_header_preproc=yes 5625 ;; 5626 no:yes:* ) 5627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5639 ( 5640 cat <<\_ASBOX 5641 ## ------------------------------------------ ## 5642 ## Report this to the AC_PACKAGE_NAME lists. ## 5643 ## ------------------------------------------ ## 5644 _ASBOX 5645 ) | 5646 sed "s/^/$as_me: WARNING: /" >&2 5647 ;; 5648 esac 5649 echo "$as_me:$LINENO: checking for $ac_header" >&5 5650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5651 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5652 echo $ECHO_N "(cached) $ECHO_C" >&6 5653 else 5654 eval "$as_ac_Header=\$ac_header_preproc" 5655 fi 5656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5658 5659 fi 5660 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5661 cat >>confdefs.h <<_ACEOF 5662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5663 _ACEOF 5664 5665 fi 5666 2633 5667 done 5668 2634 5669 2635 5670 for ac_func in getpagesize 2636 5671 do 2637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2638 echo "configure:2639: checking for $ac_func" >&5 2639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2640 echo $ac_n "(cached) $ac_c" 1>&6 2641 else 2642 cat > conftest.$ac_ext <<EOF 2643 #line 2644 "configure" 2644 #include "confdefs.h" 5672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5673 echo "$as_me:$LINENO: checking for $ac_func" >&5 5674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5675 if eval "test \"\${$as_ac_var+set}\" = set"; then 5676 echo $ECHO_N "(cached) $ECHO_C" >&6 5677 else 5678 cat >conftest.$ac_ext <<_ACEOF 5679 /* confdefs.h. */ 5680 _ACEOF 5681 cat confdefs.h >>conftest.$ac_ext 5682 cat >>conftest.$ac_ext <<_ACEOF 5683 /* end confdefs.h. */ 5684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5685 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5686 #define $ac_func innocuous_$ac_func 5687 2645 5688 /* System header to define __stub macros and hopefully few prototypes, 2646 which can conflict with char $ac_func(); below. */ 2647 #include <assert.h> 5689 which can conflict with char $ac_func (); below. 5690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5691 <limits.h> exists even on freestanding compilers. */ 5692 5693 #ifdef __STDC__ 5694 # include <limits.h> 5695 #else 5696 # include <assert.h> 5697 #endif 5698 5699 #undef $ac_func 5700 2648 5701 /* Override any gcc2 internal prototype to avoid an error. */ 5702 #ifdef __cplusplus 5703 extern "C" 5704 { 5705 #endif 2649 5706 /* We use char because int might match the return type of a gcc2 2650 builtin and then its argument prototype would still apply. */ 2651 char $ac_func(); 2652 2653 int main() { 2654 5707 builtin and then its argument prototype would still apply. */ 5708 char $ac_func (); 2655 5709 /* The GNU C library defines this for functions which it implements 2656 5710 to always fail with ENOSYS. Some functions are actually named … … 2659 5713 choke me 2660 5714 #else 2661 $ac_func();5715 char (*f) () = $ac_func; 2662 5716 #endif 2663 2664 ; return 0; } 2665 EOF 2666 if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2667 rm -rf conftest* 2668 eval "ac_cv_func_$ac_func=yes" 2669 else 2670 echo "configure: failed program was:" >&5 2671 cat conftest.$ac_ext >&5 2672 rm -rf conftest* 2673 eval "ac_cv_func_$ac_func=no" 2674 fi 2675 rm -f conftest* 2676 fi 2677 2678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2679 echo "$ac_t""yes" 1>&6 2680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2681 cat >> confdefs.h <<EOF 2682 #define $ac_tr_func 1 2683 EOF 2684 2685 else 2686 echo "$ac_t""no" 1>&6 5717 #ifdef __cplusplus 5718 } 5719 #endif 5720 5721 int 5722 main () 5723 { 5724 return f != $ac_func; 5725 ; 5726 return 0; 5727 } 5728 _ACEOF 5729 rm -f conftest.$ac_objext conftest$ac_exeext 5730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5731 (eval $ac_link) 2>conftest.er1 5732 ac_status=$? 5733 grep -v '^ *+' conftest.er1 >conftest.err 5734 rm -f conftest.er1 5735 cat conftest.err >&5 5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5737 (exit $ac_status); } && 5738 { ac_try='test -z "$ac_c_werror_flag" 5739 || test ! -s conftest.err' 5740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5741 (eval $ac_try) 2>&5 5742 ac_status=$? 5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5744 (exit $ac_status); }; } && 5745 { ac_try='test -s conftest$ac_exeext' 5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5747 (eval $ac_try) 2>&5 5748 ac_status=$? 5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5750 (exit $ac_status); }; }; then 5751 eval "$as_ac_var=yes" 5752 else 5753 echo "$as_me: failed program was:" >&5 5754 sed 's/^/| /' conftest.$ac_ext >&5 5755 5756 eval "$as_ac_var=no" 5757 fi 5758 rm -f conftest.err conftest.$ac_objext \ 5759 conftest$ac_exeext conftest.$ac_ext 5760 fi 5761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5763 if test `eval echo '${'$as_ac_var'}'` = yes; then 5764 cat >>confdefs.h <<_ACEOF 5765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5766 _ACEOF 5767 2687 5768 fi 2688 5769 done 2689 5770 2690 echo $ac_n "checking for working mmap""... $ac_c" 1>&62691 echo "configure:2692: checking for working mmap" >&52692 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then2693 echo $ ac_n "(cached) $ac_c" 1>&65771 echo "$as_me:$LINENO: checking for working mmap" >&5 5772 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 5773 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 5774 echo $ECHO_N "(cached) $ECHO_C" >&6 2694 5775 else 2695 5776 if test "$cross_compiling" = yes; then 2696 5777 ac_cv_func_mmap_fixed_mapped=no 2697 5778 else 2698 cat > conftest.$ac_ext <<EOF 2699 #line 2700 "configure" 2700 #include "confdefs.h" 5779 cat >conftest.$ac_ext <<_ACEOF 5780 /* confdefs.h. */ 5781 _ACEOF 5782 cat confdefs.h >>conftest.$ac_ext 5783 cat >>conftest.$ac_ext <<_ACEOF 5784 /* end confdefs.h. */ 5785 $ac_includes_default 5786 /* malloc might have been renamed as rpl_malloc. */ 5787 #undef malloc 2701 5788 2702 5789 /* Thanks to Mike Haertel and Jim Avera for this test. … … 2712 5799 address. (There have been systems where private was not correctly 2713 5800 implemented like the infamous i386 svr4.0, and systems where the 2714 VM page cache was not coherent with the file system buffer cache5801 VM page cache was not coherent with the file system buffer cache 2715 5802 like early versions of FreeBSD and possibly contemporary NetBSD.) 2716 5803 For shared mappings, we should conversely verify that changes get 2717 prop ogated back to all the places they're supposed to be.5804 propagated back to all the places they're supposed to be. 2718 5805 2719 5806 Grep wants private fixed already mapped. … … 2721 5808 * does it exist and is it safe to write into the mmap'd area 2722 5809 * how to use it (BSD variants) */ 2723 #include <sys/types.h> 5810 2724 5811 #include <fcntl.h> 2725 5812 #include <sys/mman.h> 2726 5813 5814 #if !STDC_HEADERS && !HAVE_STDLIB_H 5815 char *malloc (); 5816 #endif 5817 2727 5818 /* This mess was copied from the GNU getpagesize.h. */ 2728 #ifndef HAVE_GETPAGESIZE 2729 # ifdef HAVE_UNISTD_H 2730 # include <unistd.h> 2731 # endif 2732 5819 #if !HAVE_GETPAGESIZE 2733 5820 /* Assume that all systems that can run configure have sys/param.h. */ 2734 # if ndefHAVE_SYS_PARAM_H5821 # if !HAVE_SYS_PARAM_H 2735 5822 # define HAVE_SYS_PARAM_H 1 2736 5823 # endif … … 2739 5826 # define getpagesize() sysconf(_SC_PAGESIZE) 2740 5827 # else /* no _SC_PAGESIZE */ 2741 # if defHAVE_SYS_PARAM_H5828 # if HAVE_SYS_PARAM_H 2742 5829 # include <sys/param.h> 2743 5830 # ifdef EXEC_PAGESIZE … … 2766 5853 #endif /* no HAVE_GETPAGESIZE */ 2767 5854 2768 #ifdef __cplusplus2769 extern "C" { void *malloc(unsigned); }2770 #else2771 char *malloc();2772 #endif2773 2774 5855 int 2775 main ()5856 main () 2776 5857 { 2777 char *data, *data2, *data3; 2778 int i, pagesize; 2779 int fd; 2780 2781 pagesize = getpagesize(); 2782 2783 /* 2784 * First, make a file with some known garbage in it. 2785 */ 2786 data = malloc(pagesize); 2787 if (!data) 2788 exit(1); 2789 for (i = 0; i < pagesize; ++i) 2790 *(data + i) = rand(); 2791 umask(0); 2792 fd = creat("conftestmmap", 0600); 2793 if (fd < 0) 2794 exit(1); 2795 if (write(fd, data, pagesize) != pagesize) 2796 exit(1); 2797 close(fd); 2798 2799 /* 2800 * Next, try to mmap the file at a fixed address which 2801 * already has something else allocated at it. If we can, 2802 * also make sure that we see the same garbage. 2803 */ 2804 fd = open("conftestmmap", O_RDWR); 2805 if (fd < 0) 2806 exit(1); 2807 data2 = malloc(2 * pagesize); 2808 if (!data2) 2809 exit(1); 2810 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 2811 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 2812 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 2813 exit(1); 2814 for (i = 0; i < pagesize; ++i) 2815 if (*(data + i) != *(data2 + i)) 2816 exit(1); 2817 2818 /* 2819 * Finally, make sure that changes to the mapped area 2820 * do not percolate back to the file as seen by read(). 2821 * (This is a bug on some variants of i386 svr4.0.) 2822 */ 2823 for (i = 0; i < pagesize; ++i) 2824 *(data2 + i) = *(data2 + i) + 1; 2825 data3 = malloc(pagesize); 2826 if (!data3) 2827 exit(1); 2828 if (read(fd, data3, pagesize) != pagesize) 2829 exit(1); 2830 for (i = 0; i < pagesize; ++i) 2831 if (*(data + i) != *(data3 + i)) 2832 exit(1); 2833 close(fd); 2834 unlink("conftestmmap"); 2835 exit(0); 5858 char *data, *data2, *data3; 5859 int i, pagesize; 5860 int fd; 5861 5862 pagesize = getpagesize (); 5863 5864 /* First, make a file with some known garbage in it. */ 5865 data = (char *) malloc (pagesize); 5866 if (!data) 5867 exit (1); 5868 for (i = 0; i < pagesize; ++i) 5869 *(data + i) = rand (); 5870 umask (0); 5871 fd = creat ("conftest.mmap", 0600); 5872 if (fd < 0) 5873 exit (1); 5874 if (write (fd, data, pagesize) != pagesize) 5875 exit (1); 5876 close (fd); 5877 5878 /* Next, try to mmap the file at a fixed address which already has 5879 something else allocated at it. If we can, also make sure that 5880 we see the same garbage. */ 5881 fd = open ("conftest.mmap", O_RDWR); 5882 if (fd < 0) 5883 exit (1); 5884 data2 = (char *) malloc (2 * pagesize); 5885 if (!data2) 5886 exit (1); 5887 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 5888 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5889 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5890 exit (1); 5891 for (i = 0; i < pagesize; ++i) 5892 if (*(data + i) != *(data2 + i)) 5893 exit (1); 5894 5895 /* Finally, make sure that changes to the mapped area do not 5896 percolate back to the file as seen by read(). (This is a bug on 5897 some variants of i386 svr4.0.) */ 5898 for (i = 0; i < pagesize; ++i) 5899 *(data2 + i) = *(data2 + i) + 1; 5900 data3 = (char *) malloc (pagesize); 5901 if (!data3) 5902 exit (1); 5903 if (read (fd, data3, pagesize) != pagesize) 5904 exit (1); 5905 for (i = 0; i < pagesize; ++i) 5906 if (*(data + i) != *(data3 + i)) 5907 exit (1); 5908 close (fd); 5909 exit (0); 2836 5910 } 2837 2838 EOF 2839 if { (eval echo configure:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2840 then 5911 _ACEOF 5912 rm -f conftest$ac_exeext 5913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5914 (eval $ac_link) 2>&5 5915 ac_status=$? 5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5919 (eval $ac_try) 2>&5 5920 ac_status=$? 5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5922 (exit $ac_status); }; }; then 2841 5923 ac_cv_func_mmap_fixed_mapped=yes 2842 5924 else 2843 echo "configure: failed program was:" >&5 2844 cat conftest.$ac_ext >&5 2845 rm -fr conftest* 2846 ac_cv_func_mmap_fixed_mapped=no 2847 fi 2848 rm -fr conftest* 2849 fi 2850 2851 fi 2852 2853 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 5925 echo "$as_me: program exited with status $ac_status" >&5 5926 echo "$as_me: failed program was:" >&5 5927 sed 's/^/| /' conftest.$ac_ext >&5 5928 5929 ( exit $ac_status ) 5930 ac_cv_func_mmap_fixed_mapped=no 5931 fi 5932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5933 fi 5934 fi 5935 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 5936 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 2854 5937 if test $ac_cv_func_mmap_fixed_mapped = yes; then 2855 cat >> confdefs.h <<\EOF 5938 5939 cat >>confdefs.h <<\_ACEOF 2856 5940 #define HAVE_MMAP 1 2857 EOF 2858 2859 fi 2860 2861 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2862 echo "configure:2863: checking return type of signal handlers" >&5 2863 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2864 echo $ac_n "(cached) $ac_c" 1>&6 2865 else 2866 cat > conftest.$ac_ext <<EOF 2867 #line 2868 "configure" 2868 #include "confdefs.h" 5941 _ACEOF 5942 5943 fi 5944 rm -f conftest.mmap 5945 5946 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 5947 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 5948 if test "${ac_cv_type_signal+set}" = set; then 5949 echo $ECHO_N "(cached) $ECHO_C" >&6 5950 else 5951 cat >conftest.$ac_ext <<_ACEOF 5952 /* confdefs.h. */ 5953 _ACEOF 5954 cat confdefs.h >>conftest.$ac_ext 5955 cat >>conftest.$ac_ext <<_ACEOF 5956 /* end confdefs.h. */ 2869 5957 #include <sys/types.h> 2870 5958 #include <signal.h> 2871 5959 #ifdef signal 2872 # undef signal5960 # undef signal 2873 5961 #endif 2874 5962 #ifdef __cplusplus … … 2878 5966 #endif 2879 5967 2880 int main() { 5968 int 5969 main () 5970 { 2881 5971 int i; 2882 ; return 0; } 2883 EOF 2884 if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2885 rm -rf conftest* 5972 ; 5973 return 0; 5974 } 5975 _ACEOF 5976 rm -f conftest.$ac_objext 5977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5978 (eval $ac_compile) 2>conftest.er1 5979 ac_status=$? 5980 grep -v '^ *+' conftest.er1 >conftest.err 5981 rm -f conftest.er1 5982 cat conftest.err >&5 5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5984 (exit $ac_status); } && 5985 { ac_try='test -z "$ac_c_werror_flag" 5986 || test ! -s conftest.err' 5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5988 (eval $ac_try) 2>&5 5989 ac_status=$? 5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5991 (exit $ac_status); }; } && 5992 { ac_try='test -s conftest.$ac_objext' 5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5994 (eval $ac_try) 2>&5 5995 ac_status=$? 5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5997 (exit $ac_status); }; }; then 2886 5998 ac_cv_type_signal=void 2887 5999 else 2888 echo "configure: failed program was:" >&5 2889 cat conftest.$ac_ext >&5 2890 rm -rf conftest* 2891 ac_cv_type_signal=int 2892 fi 2893 rm -f conftest* 2894 fi 2895 2896 echo "$ac_t""$ac_cv_type_signal" 1>&6 2897 cat >> confdefs.h <<EOF 6000 echo "$as_me: failed program was:" >&5 6001 sed 's/^/| /' conftest.$ac_ext >&5 6002 6003 ac_cv_type_signal=int 6004 fi 6005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6006 fi 6007 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6008 echo "${ECHO_T}$ac_cv_type_signal" >&6 6009 6010 cat >>confdefs.h <<_ACEOF 2898 6011 #define RETSIGTYPE $ac_cv_type_signal 2899 EOF 2900 2901 2902 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2903 echo "configure:2904: checking for vprintf" >&5 2904 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2905 echo $ac_n "(cached) $ac_c" 1>&6 2906 else 2907 cat > conftest.$ac_ext <<EOF 2908 #line 2909 "configure" 2909 #include "confdefs.h" 6012 _ACEOF 6013 6014 6015 6016 for ac_func in vprintf 6017 do 6018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6019 echo "$as_me:$LINENO: checking for $ac_func" >&5 6020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6021 if eval "test \"\${$as_ac_var+set}\" = set"; then 6022 echo $ECHO_N "(cached) $ECHO_C" >&6 6023 else 6024 cat >conftest.$ac_ext <<_ACEOF 6025 /* confdefs.h. */ 6026 _ACEOF 6027 cat confdefs.h >>conftest.$ac_ext 6028 cat >>conftest.$ac_ext <<_ACEOF 6029 /* end confdefs.h. */ 6030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6031 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6032 #define $ac_func innocuous_$ac_func 6033 2910 6034 /* System header to define __stub macros and hopefully few prototypes, 2911 which can conflict with char vprintf(); below. */ 2912 #include <assert.h> 6035 which can conflict with char $ac_func (); below. 6036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6037 <limits.h> exists even on freestanding compilers. */ 6038 6039 #ifdef __STDC__ 6040 # include <limits.h> 6041 #else 6042 # include <assert.h> 6043 #endif 6044 6045 #undef $ac_func 6046 2913 6047 /* Override any gcc2 internal prototype to avoid an error. */ 6048 #ifdef __cplusplus 6049 extern "C" 6050 { 6051 #endif 2914 6052 /* We use char because int might match the return type of a gcc2 2915 builtin and then its argument prototype would still apply. */ 2916 char vprintf(); 2917 2918 int main() { 2919 6053 builtin and then its argument prototype would still apply. */ 6054 char $ac_func (); 2920 6055 /* The GNU C library defines this for functions which it implements 2921 6056 to always fail with ENOSYS. Some functions are actually named 2922 6057 something starting with __ and the normal name is an alias. */ 2923 #if defined (__stub_ vprintf) || defined (__stub___vprintf)6058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2924 6059 choke me 2925 6060 #else 2926 vprintf();6061 char (*f) () = $ac_func; 2927 6062 #endif 2928 2929 ; return 0; } 2930 EOF 2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2932 rm -rf conftest* 2933 eval "ac_cv_func_vprintf=yes" 2934 else 2935 echo "configure: failed program was:" >&5 2936 cat conftest.$ac_ext >&5 2937 rm -rf conftest* 2938 eval "ac_cv_func_vprintf=no" 2939 fi 2940 rm -f conftest* 2941 fi 2942 2943 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2944 echo "$ac_t""yes" 1>&6 2945 cat >> confdefs.h <<\EOF 2946 #define HAVE_VPRINTF 1 2947 EOF 2948 2949 else 2950 echo "$ac_t""no" 1>&6 2951 fi 2952 2953 if test "$ac_cv_func_vprintf" != yes; then 2954 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2955 echo "configure:2956: checking for _doprnt" >&5 2956 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2957 echo $ac_n "(cached) $ac_c" 1>&6 2958 else 2959 cat > conftest.$ac_ext <<EOF 2960 #line 2961 "configure" 2961 #include "confdefs.h" 6063 #ifdef __cplusplus 6064 } 6065 #endif 6066 6067 int 6068 main () 6069 { 6070 return f != $ac_func; 6071 ; 6072 return 0; 6073 } 6074 _ACEOF 6075 rm -f conftest.$ac_objext conftest$ac_exeext 6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6077 (eval $ac_link) 2>conftest.er1 6078 ac_status=$? 6079 grep -v '^ *+' conftest.er1 >conftest.err 6080 rm -f conftest.er1 6081 cat conftest.err >&5 6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6083 (exit $ac_status); } && 6084 { ac_try='test -z "$ac_c_werror_flag" 6085 || test ! -s conftest.err' 6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6087 (eval $ac_try) 2>&5 6088 ac_status=$? 6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6090 (exit $ac_status); }; } && 6091 { ac_try='test -s conftest$ac_exeext' 6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6093 (eval $ac_try) 2>&5 6094 ac_status=$? 6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6096 (exit $ac_status); }; }; then 6097 eval "$as_ac_var=yes" 6098 else 6099 echo "$as_me: failed program was:" >&5 6100 sed 's/^/| /' conftest.$ac_ext >&5 6101 6102 eval "$as_ac_var=no" 6103 fi 6104 rm -f conftest.err conftest.$ac_objext \ 6105 conftest$ac_exeext conftest.$ac_ext 6106 fi 6107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6109 if test `eval echo '${'$as_ac_var'}'` = yes; then 6110 cat >>confdefs.h <<_ACEOF 6111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6112 _ACEOF 6113 6114 echo "$as_me:$LINENO: checking for _doprnt" >&5 6115 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 6116 if test "${ac_cv_func__doprnt+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118 else 6119 cat >conftest.$ac_ext <<_ACEOF 6120 /* confdefs.h. */ 6121 _ACEOF 6122 cat confdefs.h >>conftest.$ac_ext 6123 cat >>conftest.$ac_ext <<_ACEOF 6124 /* end confdefs.h. */ 6125 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 6126 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6127 #define _doprnt innocuous__doprnt 6128 2962 6129 /* System header to define __stub macros and hopefully few prototypes, 2963 which can conflict with char _doprnt(); below. */ 2964 #include <assert.h> 6130 which can conflict with char _doprnt (); below. 6131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6132 <limits.h> exists even on freestanding compilers. */ 6133 6134 #ifdef __STDC__ 6135 # include <limits.h> 6136 #else 6137 # include <assert.h> 6138 #endif 6139 6140 #undef _doprnt 6141 2965 6142 /* Override any gcc2 internal prototype to avoid an error. */ 6143 #ifdef __cplusplus 6144 extern "C" 6145 { 6146 #endif 2966 6147 /* We use char because int might match the return type of a gcc2 2967 builtin and then its argument prototype would still apply. */ 2968 char _doprnt(); 2969 2970 int main() { 2971 6148 builtin and then its argument prototype would still apply. */ 6149 char _doprnt (); 2972 6150 /* The GNU C library defines this for functions which it implements 2973 6151 to always fail with ENOSYS. Some functions are actually named … … 2976 6154 choke me 2977 6155 #else 2978 _doprnt();6156 char (*f) () = _doprnt; 2979 6157 #endif 2980 2981 ; return 0; } 2982 EOF 2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2984 rm -rf conftest* 2985 eval "ac_cv_func__doprnt=yes" 2986 else 2987 echo "configure: failed program was:" >&5 2988 cat conftest.$ac_ext >&5 2989 rm -rf conftest* 2990 eval "ac_cv_func__doprnt=no" 2991 fi 2992 rm -f conftest* 2993 fi 2994 2995 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2996 echo "$ac_t""yes" 1>&6 2997 cat >> confdefs.h <<\EOF 6158 #ifdef __cplusplus 6159 } 6160 #endif 6161 6162 int 6163 main () 6164 { 6165 return f != _doprnt; 6166 ; 6167 return 0; 6168 } 6169 _ACEOF 6170 rm -f conftest.$ac_objext conftest$ac_exeext 6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6172 (eval $ac_link) 2>conftest.er1 6173 ac_status=$? 6174 grep -v '^ *+' conftest.er1 >conftest.err 6175 rm -f conftest.er1 6176 cat conftest.err >&5 6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6178 (exit $ac_status); } && 6179 { ac_try='test -z "$ac_c_werror_flag" 6180 || test ! -s conftest.err' 6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6182 (eval $ac_try) 2>&5 6183 ac_status=$? 6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6185 (exit $ac_status); }; } && 6186 { ac_try='test -s conftest$ac_exeext' 6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6188 (eval $ac_try) 2>&5 6189 ac_status=$? 6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6191 (exit $ac_status); }; }; then 6192 ac_cv_func__doprnt=yes 6193 else 6194 echo "$as_me: failed program was:" >&5 6195 sed 's/^/| /' conftest.$ac_ext >&5 6196 6197 ac_cv_func__doprnt=no 6198 fi 6199 rm -f conftest.err conftest.$ac_objext \ 6200 conftest$ac_exeext conftest.$ac_ext 6201 fi 6202 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 6203 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 6204 if test $ac_cv_func__doprnt = yes; then 6205 6206 cat >>confdefs.h <<\_ACEOF 2998 6207 #define HAVE_DOPRNT 1 2999 EOF 3000 3001 else 3002 echo "$ac_t""no" 1>&6 3003 fi 3004 3005 fi 3006 3007 3008 echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6 3009 echo "configure:3010: checking for library containing setenv" >&5 3010 if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then 3011 echo $ac_n "(cached) $ac_c" 1>&6 3012 else 3013 ac_func_search_save_LIBS="$LIBS" 3014 ac_cv_search_setenv="no" 3015 cat > conftest.$ac_ext <<EOF 3016 #line 3017 "configure" 3017 #include "confdefs.h" 6208 _ACEOF 6209 6210 fi 6211 6212 fi 6213 done 6214 6215 6216 echo "$as_me:$LINENO: checking for library containing setenv" >&5 6217 echo $ECHO_N "checking for library containing setenv... $ECHO_C" >&6 6218 if test "${ac_cv_search_setenv+set}" = set; then 6219 echo $ECHO_N "(cached) $ECHO_C" >&6 6220 else 6221 ac_func_search_save_LIBS=$LIBS 6222 ac_cv_search_setenv=no 6223 cat >conftest.$ac_ext <<_ACEOF 6224 /* confdefs.h. */ 6225 _ACEOF 6226 cat confdefs.h >>conftest.$ac_ext 6227 cat >>conftest.$ac_ext <<_ACEOF 6228 /* end confdefs.h. */ 6229 3018 6230 /* Override any gcc2 internal prototype to avoid an error. */ 6231 #ifdef __cplusplus 6232 extern "C" 6233 #endif 3019 6234 /* We use char because int might match the return type of a gcc2 3020 builtin and then its argument prototype would still apply. */ 3021 char setenv(); 3022 3023 int main() { 3024 setenv() 3025 ; return 0; } 3026 EOF 3027 if { (eval echo configure:3028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3028 rm -rf conftest* 6235 builtin and then its argument prototype would still apply. */ 6236 char setenv (); 6237 int 6238 main () 6239 { 6240 setenv (); 6241 ; 6242 return 0; 6243 } 6244 _ACEOF 6245 rm -f conftest.$ac_objext conftest$ac_exeext 6246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6247 (eval $ac_link) 2>conftest.er1 6248 ac_status=$? 6249 grep -v '^ *+' conftest.er1 >conftest.err 6250 rm -f conftest.er1 6251 cat conftest.err >&5 6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6253 (exit $ac_status); } && 6254 { ac_try='test -z "$ac_c_werror_flag" 6255 || test ! -s conftest.err' 6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6257 (eval $ac_try) 2>&5 6258 ac_status=$? 6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6260 (exit $ac_status); }; } && 6261 { ac_try='test -s conftest$ac_exeext' 6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6263 (eval $ac_try) 2>&5 6264 ac_status=$? 6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6266 (exit $ac_status); }; }; then 3029 6267 ac_cv_search_setenv="none required" 3030 6268 else 3031 echo "configure: failed program was:" >&5 3032 cat conftest.$ac_ext >&5 3033 fi 3034 rm -f conftest* 3035 test "$ac_cv_search_setenv" = "no" && for i in bsd; do 3036 LIBS="-l$i $ac_func_search_save_LIBS" 3037 cat > conftest.$ac_ext <<EOF 3038 #line 3039 "configure" 3039 #include "confdefs.h" 6269 echo "$as_me: failed program was:" >&5 6270 sed 's/^/| /' conftest.$ac_ext >&5 6271 6272 fi 6273 rm -f conftest.err conftest.$ac_objext \ 6274 conftest$ac_exeext conftest.$ac_ext 6275 if test "$ac_cv_search_setenv" = no; then 6276 for ac_lib in bsd; do 6277 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6278 cat >conftest.$ac_ext <<_ACEOF 6279 /* confdefs.h. */ 6280 _ACEOF 6281 cat confdefs.h >>conftest.$ac_ext 6282 cat >>conftest.$ac_ext <<_ACEOF 6283 /* end confdefs.h. */ 6284 3040 6285 /* Override any gcc2 internal prototype to avoid an error. */ 6286 #ifdef __cplusplus 6287 extern "C" 6288 #endif 3041 6289 /* We use char because int might match the return type of a gcc2 3042 builtin and then its argument prototype would still apply. */ 3043 char setenv(); 3044 3045 int main() { 3046 setenv() 3047 ; return 0; } 3048 EOF 3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3050 rm -rf conftest* 3051 ac_cv_search_setenv="-l$i" 6290 builtin and then its argument prototype would still apply. */ 6291 char setenv (); 6292 int 6293 main () 6294 { 6295 setenv (); 6296 ; 6297 return 0; 6298 } 6299 _ACEOF 6300 rm -f conftest.$ac_objext conftest$ac_exeext 6301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6302 (eval $ac_link) 2>conftest.er1 6303 ac_status=$? 6304 grep -v '^ *+' conftest.er1 >conftest.err 6305 rm -f conftest.er1 6306 cat conftest.err >&5 6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6308 (exit $ac_status); } && 6309 { ac_try='test -z "$ac_c_werror_flag" 6310 || test ! -s conftest.err' 6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6312 (eval $ac_try) 2>&5 6313 ac_status=$? 6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6315 (exit $ac_status); }; } && 6316 { ac_try='test -s conftest$ac_exeext' 6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6318 (eval $ac_try) 2>&5 6319 ac_status=$? 6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6321 (exit $ac_status); }; }; then 6322 ac_cv_search_setenv="-l$ac_lib" 3052 6323 break 3053 6324 else 3054 echo "configure: failed program was:" >&5 3055 cat conftest.$ac_ext >&5 3056 fi 3057 rm -f conftest* 3058 done 3059 LIBS="$ac_func_search_save_LIBS" 3060 fi 3061 3062 echo "$ac_t""$ac_cv_search_setenv" 1>&6 3063 if test "$ac_cv_search_setenv" != "no"; then 6325 echo "$as_me: failed program was:" >&5 6326 sed 's/^/| /' conftest.$ac_ext >&5 6327 6328 fi 6329 rm -f conftest.err conftest.$ac_objext \ 6330 conftest$ac_exeext conftest.$ac_ext 6331 done 6332 fi 6333 LIBS=$ac_func_search_save_LIBS 6334 fi 6335 echo "$as_me:$LINENO: result: $ac_cv_search_setenv" >&5 6336 echo "${ECHO_T}$ac_cv_search_setenv" >&6 6337 if test "$ac_cv_search_setenv" != no; then 3064 6338 test "$ac_cv_search_setenv" = "none required" || LIBS="$ac_cv_search_setenv $LIBS" 3065 3066 else : 3067 3068 fi 6339 6340 fi 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 3069 6354 for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \ 3070 6355 sleep usleep getpwnam popen setenv 3071 6356 do 3072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3073 echo "configure:3074: checking for $ac_func" >&5 3074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3075 echo $ac_n "(cached) $ac_c" 1>&6 3076 else 3077 cat > conftest.$ac_ext <<EOF 3078 #line 3079 "configure" 3079 #include "confdefs.h" 6357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6358 echo "$as_me:$LINENO: checking for $ac_func" >&5 6359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6360 if eval "test \"\${$as_ac_var+set}\" = set"; then 6361 echo $ECHO_N "(cached) $ECHO_C" >&6 6362 else 6363 cat >conftest.$ac_ext <<_ACEOF 6364 /* confdefs.h. */ 6365 _ACEOF 6366 cat confdefs.h >>conftest.$ac_ext 6367 cat >>conftest.$ac_ext <<_ACEOF 6368 /* end confdefs.h. */ 6369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6370 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6371 #define $ac_func innocuous_$ac_func 6372 3080 6373 /* System header to define __stub macros and hopefully few prototypes, 3081 which can conflict with char $ac_func(); below. */ 3082 #include <assert.h> 6374 which can conflict with char $ac_func (); below. 6375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6376 <limits.h> exists even on freestanding compilers. */ 6377 6378 #ifdef __STDC__ 6379 # include <limits.h> 6380 #else 6381 # include <assert.h> 6382 #endif 6383 6384 #undef $ac_func 6385 3083 6386 /* Override any gcc2 internal prototype to avoid an error. */ 6387 #ifdef __cplusplus 6388 extern "C" 6389 { 6390 #endif 3084 6391 /* We use char because int might match the return type of a gcc2 3085 builtin and then its argument prototype would still apply. */ 3086 char $ac_func(); 3087 3088 int main() { 3089 6392 builtin and then its argument prototype would still apply. */ 6393 char $ac_func (); 3090 6394 /* The GNU C library defines this for functions which it implements 3091 6395 to always fail with ENOSYS. Some functions are actually named … … 3094 6398 choke me 3095 6399 #else 3096 $ac_func();6400 char (*f) () = $ac_func; 3097 6401 #endif 3098 3099 ; return 0; } 3100 EOF 3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3102 rm -rf conftest* 3103 eval "ac_cv_func_$ac_func=yes" 3104 else 3105 echo "configure: failed program was:" >&5 3106 cat conftest.$ac_ext >&5 3107 rm -rf conftest* 3108 eval "ac_cv_func_$ac_func=no" 3109 fi 3110 rm -f conftest* 3111 fi 3112 3113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3114 echo "$ac_t""yes" 1>&6 3115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3116 cat >> confdefs.h <<EOF 3117 #define $ac_tr_func 1 3118 EOF 3119 3120 else 3121 echo "$ac_t""no" 1>&6 6402 #ifdef __cplusplus 6403 } 6404 #endif 6405 6406 int 6407 main () 6408 { 6409 return f != $ac_func; 6410 ; 6411 return 0; 6412 } 6413 _ACEOF 6414 rm -f conftest.$ac_objext conftest$ac_exeext 6415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6416 (eval $ac_link) 2>conftest.er1 6417 ac_status=$? 6418 grep -v '^ *+' conftest.er1 >conftest.err 6419 rm -f conftest.er1 6420 cat conftest.err >&5 6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); } && 6423 { ac_try='test -z "$ac_c_werror_flag" 6424 || test ! -s conftest.err' 6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6426 (eval $ac_try) 2>&5 6427 ac_status=$? 6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6429 (exit $ac_status); }; } && 6430 { ac_try='test -s conftest$ac_exeext' 6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6432 (eval $ac_try) 2>&5 6433 ac_status=$? 6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6435 (exit $ac_status); }; }; then 6436 eval "$as_ac_var=yes" 6437 else 6438 echo "$as_me: failed program was:" >&5 6439 sed 's/^/| /' conftest.$ac_ext >&5 6440 6441 eval "$as_ac_var=no" 6442 fi 6443 rm -f conftest.err conftest.$ac_objext \ 6444 conftest$ac_exeext conftest.$ac_ext 6445 fi 6446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6448 if test `eval echo '${'$as_ac_var'}'` = yes; then 6449 cat >>confdefs.h <<_ACEOF 6450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6451 _ACEOF 6452 3122 6453 fi 3123 6454 done … … 3127 6458 3128 6459 # arithmetic shifts 3129 echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&63130 echo "configure:3131: checking whether your machine has correct arithmetic shifts" >&53131 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then3132 echo $ ac_n "(cached) $ac_c" 1>&66460 echo "$as_me:$LINENO: checking whether your machine has correct arithmetic shifts" >&5 6461 echo $ECHO_N "checking whether your machine has correct arithmetic shifts... $ECHO_C" >&6 6462 if test "${ac_cv_shift+set}" = set; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 3133 6464 else 3134 6465 if test "$cross_compiling" = yes; then … … 3136 6467 ac_cv_shift=yes; 3137 6468 else 3138 echo "$ac_t""no" 1>&6 3139 { echo "configure: error: cross compilation without default value" 1>&2; exit 1; } 6469 echo "$as_me:$LINENO: result: no" >&5 6470 echo "${ECHO_T}no" >&6 6471 { { echo "$as_me:$LINENO: error: cross compilation without default value" >&5 6472 echo "$as_me: error: cross compilation without default value" >&2;} 6473 { (exit 1); exit 1; }; } 3140 6474 fi 3141 6475 else 3142 cat > conftest.$ac_ext <<EOF 3143 #line 3144 "configure" 3144 #include "confdefs.h" 3145 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 3146 EOF 3147 if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3148 then 6476 cat >conftest.$ac_ext <<_ACEOF 6477 /* confdefs.h. */ 6478 _ACEOF 6479 cat confdefs.h >>conftest.$ac_ext 6480 cat >>conftest.$ac_ext <<_ACEOF 6481 /* end confdefs.h. */ 6482 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 6483 _ACEOF 6484 rm -f conftest$ac_exeext 6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6486 (eval $ac_link) 2>&5 6487 ac_status=$? 6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6491 (eval $ac_try) 2>&5 6492 ac_status=$? 6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6494 (exit $ac_status); }; }; then 3149 6495 ac_cv_shift=yes 3150 6496 else 3151 echo "configure: failed program was:" >&5 3152 cat conftest.$ac_ext >&5 3153 rm -fr conftest* 3154 ac_cv_shift=no 3155 fi 3156 rm -fr conftest* 3157 fi 3158 6497 echo "$as_me: program exited with status $ac_status" >&5 6498 echo "$as_me: failed program was:" >&5 6499 sed 's/^/| /' conftest.$ac_ext >&5 6500 6501 ( exit $ac_status ) 6502 ac_cv_shift=no 6503 fi 6504 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6505 fi 3159 6506 fi 3160 6507 3161 6508 3162 6509 if test "$ac_cv_shift" = yes; then 3163 echo "$ac_t""yes" 1>&6 3164 else 3165 echo "$ac_t""no" 1>&6 3166 { echo "configure: error: need -2 >> 1 == -1" 1>&2; exit 1; } 6510 echo "$as_me:$LINENO: result: yes" >&5 6511 echo "${ECHO_T}yes" >&6 6512 else 6513 echo "$as_me:$LINENO: result: no" >&5 6514 echo "${ECHO_T}no" >&6 6515 { { echo "$as_me:$LINENO: error: need -2 >> 1 == -1" >&5 6516 echo "$as_me: error: need -2 >> 1 == -1" >&2;} 6517 { (exit 1); exit 1; }; } 3167 6518 fi 3168 6519 3169 6520 3170 6521 # check for a peculiar constructor initialization 3171 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&63172 echo "configure:3173: checking whether explicit C++ constructor calls are allowed" >&53173 3174 ac_ext=C 3175 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6522 echo "$as_me:$LINENO: checking whether explicit C++ constructor calls are allowed" >&5 6523 echo $ECHO_N "checking whether explicit C++ constructor calls are allowed... $ECHO_C" >&6 6524 6525 6526 ac_ext=cc 3176 6527 ac_cpp='$CXXCPP $CPPFLAGS' 3177 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3178 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3179 cross_compiling=$ac_cv_prog_cxx_cross 3180 3181 if eval "test \"`echo '$''{'ac_cv_explicit_const'+set}'`\" = set"; then 3182 echo $ac_n "(cached) $ac_c" 1>&6 3183 else 3184 cat > conftest.$ac_ext <<EOF 3185 #line 3186 "configure" 3186 #include "confdefs.h" 3187 3188 int main() { 6528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6531 6532 if test "${ac_cv_explicit_const+set}" = set; then 6533 echo $ECHO_N "(cached) $ECHO_C" >&6 6534 else 6535 cat >conftest.$ac_ext <<_ACEOF 6536 /* confdefs.h. */ 6537 _ACEOF 6538 cat confdefs.h >>conftest.$ac_ext 6539 cat >>conftest.$ac_ext <<_ACEOF 6540 /* end confdefs.h. */ 6541 6542 int 6543 main () 6544 { 3189 6545 class testclass 3190 6546 { … … 3199 6555 ptr.testclass(1); 3200 6556 3201 ; return 0; } 3202 EOF 3203 if { (eval echo configure:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3204 rm -rf conftest* 6557 ; 6558 return 0; 6559 } 6560 _ACEOF 6561 rm -f conftest.$ac_objext 6562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6563 (eval $ac_compile) 2>conftest.er1 6564 ac_status=$? 6565 grep -v '^ *+' conftest.er1 >conftest.err 6566 rm -f conftest.er1 6567 cat conftest.err >&5 6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6569 (exit $ac_status); } && 6570 { ac_try='test -z "$ac_cxx_werror_flag" 6571 || test ! -s conftest.err' 6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6573 (eval $ac_try) 2>&5 6574 ac_status=$? 6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6576 (exit $ac_status); }; } && 6577 { ac_try='test -s conftest.$ac_objext' 6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6579 (eval $ac_try) 2>&5 6580 ac_status=$? 6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6582 (exit $ac_status); }; }; then 3205 6583 ac_cv_explicit_const=yes 3206 6584 else 3207 echo " configure: failed program was:" >&53208 catconftest.$ac_ext >&53209 rm -rf conftest* 3210 3211 fi 3212 rm -f conftest *6585 echo "$as_me: failed program was:" >&5 6586 sed 's/^/| /' conftest.$ac_ext >&5 6587 6588 ac_cv_explicit_const=no 6589 fi 6590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3213 6591 fi 3214 6592 3215 6593 ac_ext=c 3216 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.3217 6594 ac_cpp='$CPP $CPPFLAGS' 3218 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3219 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3220 cross_compiling=$ac_cv_prog_cc_cross 3221 3222 echo "$ac_t""$ac_cv_explicit_const" 1>&6 6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6598 6599 echo "$as_me:$LINENO: result: $ac_cv_explicit_const" >&5 6600 echo "${ECHO_T}$ac_cv_explicit_const" >&6 3223 6601 if test "$ac_cv_explicit_const" = yes; then 3224 cat >> confdefs.h <<\EOF6602 cat >>confdefs.h <<\_ACEOF 3225 6603 #define HAVE_EXPLICIT_CONSTR 1 3226 EOF6604 _ACEOF 3227 6605 3228 6606 fi 3229 6607 3230 6608 # sprintf returns number of printed chars 3231 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&63232 echo "configure:3233: checking whether vsprintf returns number of printed chars" >&53233 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then3234 echo $ ac_n "(cached) $ac_c" 1>&66609 echo "$as_me:$LINENO: checking whether vsprintf returns number of printed chars" >&5 6610 echo $ECHO_N "checking whether vsprintf returns number of printed chars... $ECHO_C" >&6 6611 if test "${ac_cv_returns_n_of_chars+set}" = set; then 6612 echo $ECHO_N "(cached) $ECHO_C" >&6 3235 6613 else 3236 6614 if test "$cross_compiling" = yes; then 3237 6615 ac_cv_returns_n_of_chars=no 3238 6616 else 3239 cat > conftest.$ac_ext <<EOF 3240 #line 3241 "configure" 3241 #include "confdefs.h" 6617 cat >conftest.$ac_ext <<_ACEOF 6618 /* confdefs.h. */ 6619 _ACEOF 6620 cat confdefs.h >>conftest.$ac_ext 6621 cat >>conftest.$ac_ext <<_ACEOF 6622 /* end confdefs.h. */ 3242 6623 #include <stdio.h> 3243 6624 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 3244 EOF 3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3246 then 6625 _ACEOF 6626 rm -f conftest$ac_exeext 6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6628 (eval $ac_link) 2>&5 6629 ac_status=$? 6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6633 (eval $ac_try) 2>&5 6634 ac_status=$? 6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6636 (exit $ac_status); }; }; then 3247 6637 ac_cv_returns_n_of_chars=yes 3248 6638 else 3249 echo "configure: failed program was:" >&5 3250 cat conftest.$ac_ext >&5 3251 rm -fr conftest* 3252 ac_cv_returns_n_of_chars=no 3253 fi 3254 rm -fr conftest* 3255 fi 3256 6639 echo "$as_me: program exited with status $ac_status" >&5 6640 echo "$as_me: failed program was:" >&5 6641 sed 's/^/| /' conftest.$ac_ext >&5 6642 6643 ( exit $ac_status ) 6644 ac_cv_returns_n_of_chars=no 6645 fi 6646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6647 fi 3257 6648 fi 3258 6649 3259 6650 if test "$ac_cv_returns_n_of_chars" = yes; then 3260 echo "$ac_t""yes" 1>&6 3261 else 3262 echo "$ac_t""no" 1>&6 3263 cat >> confdefs.h <<\EOF 6651 echo "$as_me:$LINENO: result: yes" >&5 6652 echo "${ECHO_T}yes" >&6 6653 else 6654 echo "$as_me:$LINENO: result: no" >&5 6655 echo "${ECHO_T}no" >&6 6656 cat >>confdefs.h <<\_ACEOF 3264 6657 #define BSD_SPRINTF 1 3265 EOF6658 _ACEOF 3266 6659 3267 6660 fi 3268 6661 3269 6662 # determine ALIGN_8 3270 echo $ac_n "checking size of char""... $ac_c" 1>&6 3271 echo "configure:3272: checking size of char" >&5 3272 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 3273 echo $ac_n "(cached) $ac_c" 1>&6 3274 else 6663 echo "$as_me:$LINENO: checking for char" >&5 6664 echo $ECHO_N "checking for char... $ECHO_C" >&6 6665 if test "${ac_cv_type_char+set}" = set; then 6666 echo $ECHO_N "(cached) $ECHO_C" >&6 6667 else 6668 cat >conftest.$ac_ext <<_ACEOF 6669 /* confdefs.h. */ 6670 _ACEOF 6671 cat confdefs.h >>conftest.$ac_ext 6672 cat >>conftest.$ac_ext <<_ACEOF 6673 /* end confdefs.h. */ 6674 $ac_includes_default 6675 int 6676 main () 6677 { 6678 if ((char *) 0) 6679 return 0; 6680 if (sizeof (char)) 6681 return 0; 6682 ; 6683 return 0; 6684 } 6685 _ACEOF 6686 rm -f conftest.$ac_objext 6687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6688 (eval $ac_compile) 2>conftest.er1 6689 ac_status=$? 6690 grep -v '^ *+' conftest.er1 >conftest.err 6691 rm -f conftest.er1 6692 cat conftest.err >&5 6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6694 (exit $ac_status); } && 6695 { ac_try='test -z "$ac_c_werror_flag" 6696 || test ! -s conftest.err' 6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6698 (eval $ac_try) 2>&5 6699 ac_status=$? 6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6701 (exit $ac_status); }; } && 6702 { ac_try='test -s conftest.$ac_objext' 6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6704 (eval $ac_try) 2>&5 6705 ac_status=$? 6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6707 (exit $ac_status); }; }; then 6708 ac_cv_type_char=yes 6709 else 6710 echo "$as_me: failed program was:" >&5 6711 sed 's/^/| /' conftest.$ac_ext >&5 6712 6713 ac_cv_type_char=no 6714 fi 6715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6716 fi 6717 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 6718 echo "${ECHO_T}$ac_cv_type_char" >&6 6719 6720 echo "$as_me:$LINENO: checking size of char" >&5 6721 echo $ECHO_N "checking size of char... $ECHO_C" >&6 6722 if test "${ac_cv_sizeof_char+set}" = set; then 6723 echo $ECHO_N "(cached) $ECHO_C" >&6 6724 else 6725 if test "$ac_cv_type_char" = yes; then 6726 # The cast to unsigned long works around a bug in the HP C Compiler 6727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6729 # This bug is HP SR number 8606223364. 3275 6730 if test "$cross_compiling" = yes; then 3276 ac_cv_sizeof_char=1 3277 else 3278 cat > conftest.$ac_ext <<EOF 3279 #line 3280 "configure" 3280 #include "confdefs.h" 6731 # Depending upon the size, compute the lo and hi bounds. 6732 cat >conftest.$ac_ext <<_ACEOF 6733 /* confdefs.h. */ 6734 _ACEOF 6735 cat confdefs.h >>conftest.$ac_ext 6736 cat >>conftest.$ac_ext <<_ACEOF 6737 /* end confdefs.h. */ 6738 $ac_includes_default 6739 int 6740 main () 6741 { 6742 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 6743 test_array [0] = 0 6744 6745 ; 6746 return 0; 6747 } 6748 _ACEOF 6749 rm -f conftest.$ac_objext 6750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6751 (eval $ac_compile) 2>conftest.er1 6752 ac_status=$? 6753 grep -v '^ *+' conftest.er1 >conftest.err 6754 rm -f conftest.er1 6755 cat conftest.err >&5 6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6757 (exit $ac_status); } && 6758 { ac_try='test -z "$ac_c_werror_flag" 6759 || test ! -s conftest.err' 6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6761 (eval $ac_try) 2>&5 6762 ac_status=$? 6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6764 (exit $ac_status); }; } && 6765 { ac_try='test -s conftest.$ac_objext' 6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6767 (eval $ac_try) 2>&5 6768 ac_status=$? 6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6770 (exit $ac_status); }; }; then 6771 ac_lo=0 ac_mid=0 6772 while :; do 6773 cat >conftest.$ac_ext <<_ACEOF 6774 /* confdefs.h. */ 6775 _ACEOF 6776 cat confdefs.h >>conftest.$ac_ext 6777 cat >>conftest.$ac_ext <<_ACEOF 6778 /* end confdefs.h. */ 6779 $ac_includes_default 6780 int 6781 main () 6782 { 6783 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 6784 test_array [0] = 0 6785 6786 ; 6787 return 0; 6788 } 6789 _ACEOF 6790 rm -f conftest.$ac_objext 6791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6792 (eval $ac_compile) 2>conftest.er1 6793 ac_status=$? 6794 grep -v '^ *+' conftest.er1 >conftest.err 6795 rm -f conftest.er1 6796 cat conftest.err >&5 6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6798 (exit $ac_status); } && 6799 { ac_try='test -z "$ac_c_werror_flag" 6800 || test ! -s conftest.err' 6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6802 (eval $ac_try) 2>&5 6803 ac_status=$? 6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6805 (exit $ac_status); }; } && 6806 { ac_try='test -s conftest.$ac_objext' 6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6808 (eval $ac_try) 2>&5 6809 ac_status=$? 6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6811 (exit $ac_status); }; }; then 6812 ac_hi=$ac_mid; break 6813 else 6814 echo "$as_me: failed program was:" >&5 6815 sed 's/^/| /' conftest.$ac_ext >&5 6816 6817 ac_lo=`expr $ac_mid + 1` 6818 if test $ac_lo -le $ac_mid; then 6819 ac_lo= ac_hi= 6820 break 6821 fi 6822 ac_mid=`expr 2 '*' $ac_mid + 1` 6823 fi 6824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6825 done 6826 else 6827 echo "$as_me: failed program was:" >&5 6828 sed 's/^/| /' conftest.$ac_ext >&5 6829 6830 cat >conftest.$ac_ext <<_ACEOF 6831 /* confdefs.h. */ 6832 _ACEOF 6833 cat confdefs.h >>conftest.$ac_ext 6834 cat >>conftest.$ac_ext <<_ACEOF 6835 /* end confdefs.h. */ 6836 $ac_includes_default 6837 int 6838 main () 6839 { 6840 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 6841 test_array [0] = 0 6842 6843 ; 6844 return 0; 6845 } 6846 _ACEOF 6847 rm -f conftest.$ac_objext 6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6849 (eval $ac_compile) 2>conftest.er1 6850 ac_status=$? 6851 grep -v '^ *+' conftest.er1 >conftest.err 6852 rm -f conftest.er1 6853 cat conftest.err >&5 6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6855 (exit $ac_status); } && 6856 { ac_try='test -z "$ac_c_werror_flag" 6857 || test ! -s conftest.err' 6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6859 (eval $ac_try) 2>&5 6860 ac_status=$? 6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6862 (exit $ac_status); }; } && 6863 { ac_try='test -s conftest.$ac_objext' 6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6865 (eval $ac_try) 2>&5 6866 ac_status=$? 6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6868 (exit $ac_status); }; }; then 6869 ac_hi=-1 ac_mid=-1 6870 while :; do 6871 cat >conftest.$ac_ext <<_ACEOF 6872 /* confdefs.h. */ 6873 _ACEOF 6874 cat confdefs.h >>conftest.$ac_ext 6875 cat >>conftest.$ac_ext <<_ACEOF 6876 /* end confdefs.h. */ 6877 $ac_includes_default 6878 int 6879 main () 6880 { 6881 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 6882 test_array [0] = 0 6883 6884 ; 6885 return 0; 6886 } 6887 _ACEOF 6888 rm -f conftest.$ac_objext 6889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6890 (eval $ac_compile) 2>conftest.er1 6891 ac_status=$? 6892 grep -v '^ *+' conftest.er1 >conftest.err 6893 rm -f conftest.er1 6894 cat conftest.err >&5 6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6896 (exit $ac_status); } && 6897 { ac_try='test -z "$ac_c_werror_flag" 6898 || test ! -s conftest.err' 6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6900 (eval $ac_try) 2>&5 6901 ac_status=$? 6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6903 (exit $ac_status); }; } && 6904 { ac_try='test -s conftest.$ac_objext' 6905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6906 (eval $ac_try) 2>&5 6907 ac_status=$? 6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6909 (exit $ac_status); }; }; then 6910 ac_lo=$ac_mid; break 6911 else 6912 echo "$as_me: failed program was:" >&5 6913 sed 's/^/| /' conftest.$ac_ext >&5 6914 6915 ac_hi=`expr '(' $ac_mid ')' - 1` 6916 if test $ac_mid -le $ac_hi; then 6917 ac_lo= ac_hi= 6918 break 6919 fi 6920 ac_mid=`expr 2 '*' $ac_mid` 6921 fi 6922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6923 done 6924 else 6925 echo "$as_me: failed program was:" >&5 6926 sed 's/^/| /' conftest.$ac_ext >&5 6927 6928 ac_lo= ac_hi= 6929 fi 6930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6931 fi 6932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6933 # Binary search between lo and hi bounds. 6934 while test "x$ac_lo" != "x$ac_hi"; do 6935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6936 cat >conftest.$ac_ext <<_ACEOF 6937 /* confdefs.h. */ 6938 _ACEOF 6939 cat confdefs.h >>conftest.$ac_ext 6940 cat >>conftest.$ac_ext <<_ACEOF 6941 /* end confdefs.h. */ 6942 $ac_includes_default 6943 int 6944 main () 6945 { 6946 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 6947 test_array [0] = 0 6948 6949 ; 6950 return 0; 6951 } 6952 _ACEOF 6953 rm -f conftest.$ac_objext 6954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6955 (eval $ac_compile) 2>conftest.er1 6956 ac_status=$? 6957 grep -v '^ *+' conftest.er1 >conftest.err 6958 rm -f conftest.er1 6959 cat conftest.err >&5 6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6961 (exit $ac_status); } && 6962 { ac_try='test -z "$ac_c_werror_flag" 6963 || test ! -s conftest.err' 6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6965 (eval $ac_try) 2>&5 6966 ac_status=$? 6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6968 (exit $ac_status); }; } && 6969 { ac_try='test -s conftest.$ac_objext' 6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6971 (eval $ac_try) 2>&5 6972 ac_status=$? 6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6974 (exit $ac_status); }; }; then 6975 ac_hi=$ac_mid 6976 else 6977 echo "$as_me: failed program was:" >&5 6978 sed 's/^/| /' conftest.$ac_ext >&5 6979 6980 ac_lo=`expr '(' $ac_mid ')' + 1` 6981 fi 6982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6983 done 6984 case $ac_lo in 6985 ?*) ac_cv_sizeof_char=$ac_lo;; 6986 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 6987 See \`config.log' for more details." >&5 6988 echo "$as_me: error: cannot compute sizeof (char), 77 6989 See \`config.log' for more details." >&2;} 6990 { (exit 1); exit 1; }; } ;; 6991 esac 6992 else 6993 if test "$cross_compiling" = yes; then 6994 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6995 See \`config.log' for more details." >&5 6996 echo "$as_me: error: cannot run test program while cross compiling 6997 See \`config.log' for more details." >&2;} 6998 { (exit 1); exit 1; }; } 6999 else 7000 cat >conftest.$ac_ext <<_ACEOF 7001 /* confdefs.h. */ 7002 _ACEOF 7003 cat confdefs.h >>conftest.$ac_ext 7004 cat >>conftest.$ac_ext <<_ACEOF 7005 /* end confdefs.h. */ 7006 $ac_includes_default 7007 long longval () { return (long) (sizeof (char)); } 7008 unsigned long ulongval () { return (long) (sizeof (char)); } 3281 7009 #include <stdio.h> 3282 main() 7010 #include <stdlib.h> 7011 int 7012 main () 3283 7013 { 3284 FILE *f=fopen("conftestval", "w"); 3285 if (!f) exit(1); 3286 fprintf(f, "%d\n", sizeof(char)); 3287 exit(0); 7014 7015 FILE *f = fopen ("conftest.val", "w"); 7016 if (! f) 7017 exit (1); 7018 if (((long) (sizeof (char))) < 0) 7019 { 7020 long i = longval (); 7021 if (i != ((long) (sizeof (char)))) 7022 exit (1); 7023 fprintf (f, "%ld\n", i); 7024 } 7025 else 7026 { 7027 unsigned long i = ulongval (); 7028 if (i != ((long) (sizeof (char)))) 7029 exit (1); 7030 fprintf (f, "%lu\n", i); 7031 } 7032 exit (ferror (f) || fclose (f) != 0); 7033 7034 ; 7035 return 0; 3288 7036 } 3289 EOF 3290 if { (eval echo configure:3291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3291 then 3292 ac_cv_sizeof_char=`cat conftestval` 3293 else 3294 echo "configure: failed program was:" >&5 3295 cat conftest.$ac_ext >&5 3296 rm -fr conftest* 7037 _ACEOF 7038 rm -f conftest$ac_exeext 7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7040 (eval $ac_link) 2>&5 7041 ac_status=$? 7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7045 (eval $ac_try) 2>&5 7046 ac_status=$? 7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7048 (exit $ac_status); }; }; then 7049 ac_cv_sizeof_char=`cat conftest.val` 7050 else 7051 echo "$as_me: program exited with status $ac_status" >&5 7052 echo "$as_me: failed program was:" >&5 7053 sed 's/^/| /' conftest.$ac_ext >&5 7054 7055 ( exit $ac_status ) 7056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 7057 See \`config.log' for more details." >&5 7058 echo "$as_me: error: cannot compute sizeof (char), 77 7059 See \`config.log' for more details." >&2;} 7060 { (exit 1); exit 1; }; } 7061 fi 7062 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7063 fi 7064 fi 7065 rm -f conftest.val 7066 else 3297 7067 ac_cv_sizeof_char=0 3298 7068 fi 3299 rm -fr conftest* 3300 fi 3301 3302 fi 3303 echo "$ac_t""$ac_cv_sizeof_char" 1>&6 3304 cat >> confdefs.h <<EOF 7069 fi 7070 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 7071 echo "${ECHO_T}$ac_cv_sizeof_char" >&6 7072 cat >>confdefs.h <<_ACEOF 3305 7073 #define SIZEOF_CHAR $ac_cv_sizeof_char 3306 EOF 3307 3308 3309 echo $ac_n "checking size of short""... $ac_c" 1>&6 3310 echo "configure:3311: checking size of short" >&5 3311 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 3312 echo $ac_n "(cached) $ac_c" 1>&6 3313 else 7074 _ACEOF 7075 7076 7077 echo "$as_me:$LINENO: checking for short" >&5 7078 echo $ECHO_N "checking for short... $ECHO_C" >&6 7079 if test "${ac_cv_type_short+set}" = set; then 7080 echo $ECHO_N "(cached) $ECHO_C" >&6 7081 else 7082 cat >conftest.$ac_ext <<_ACEOF 7083 /* confdefs.h. */ 7084 _ACEOF 7085 cat confdefs.h >>conftest.$ac_ext 7086 cat >>conftest.$ac_ext <<_ACEOF 7087 /* end confdefs.h. */ 7088 $ac_includes_default 7089 int 7090 main () 7091 { 7092 if ((short *) 0) 7093 return 0; 7094 if (sizeof (short)) 7095 return 0; 7096 ; 7097 return 0; 7098 } 7099 _ACEOF 7100 rm -f conftest.$ac_objext 7101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7102 (eval $ac_compile) 2>conftest.er1 7103 ac_status=$? 7104 grep -v '^ *+' conftest.er1 >conftest.err 7105 rm -f conftest.er1 7106 cat conftest.err >&5 7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7108 (exit $ac_status); } && 7109 { ac_try='test -z "$ac_c_werror_flag" 7110 || test ! -s conftest.err' 7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7112 (eval $ac_try) 2>&5 7113 ac_status=$? 7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7115 (exit $ac_status); }; } && 7116 { ac_try='test -s conftest.$ac_objext' 7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7118 (eval $ac_try) 2>&5 7119 ac_status=$? 7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7121 (exit $ac_status); }; }; then 7122 ac_cv_type_short=yes 7123 else 7124 echo "$as_me: failed program was:" >&5 7125 sed 's/^/| /' conftest.$ac_ext >&5 7126 7127 ac_cv_type_short=no 7128 fi 7129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7130 fi 7131 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 7132 echo "${ECHO_T}$ac_cv_type_short" >&6 7133 7134 echo "$as_me:$LINENO: checking size of short" >&5 7135 echo $ECHO_N "checking size of short... $ECHO_C" >&6 7136 if test "${ac_cv_sizeof_short+set}" = set; then 7137 echo $ECHO_N "(cached) $ECHO_C" >&6 7138 else 7139 if test "$ac_cv_type_short" = yes; then 7140 # The cast to unsigned long works around a bug in the HP C Compiler 7141 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7142 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7143 # This bug is HP SR number 8606223364. 3314 7144 if test "$cross_compiling" = yes; then 3315 ac_cv_sizeof_short=2 3316 else 3317 cat > conftest.$ac_ext <<EOF 3318 #line 3319 "configure" 3319 #include "confdefs.h" 7145 # Depending upon the size, compute the lo and hi bounds. 7146 cat >conftest.$ac_ext <<_ACEOF 7147 /* confdefs.h. */ 7148 _ACEOF 7149 cat confdefs.h >>conftest.$ac_ext 7150 cat >>conftest.$ac_ext <<_ACEOF 7151 /* end confdefs.h. */ 7152 $ac_includes_default 7153 int 7154 main () 7155 { 7156 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 7157 test_array [0] = 0 7158 7159 ; 7160 return 0; 7161 } 7162 _ACEOF 7163 rm -f conftest.$ac_objext 7164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7165 (eval $ac_compile) 2>conftest.er1 7166 ac_status=$? 7167 grep -v '^ *+' conftest.er1 >conftest.err 7168 rm -f conftest.er1 7169 cat conftest.err >&5 7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7171 (exit $ac_status); } && 7172 { ac_try='test -z "$ac_c_werror_flag" 7173 || test ! -s conftest.err' 7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7175 (eval $ac_try) 2>&5 7176 ac_status=$? 7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7178 (exit $ac_status); }; } && 7179 { ac_try='test -s conftest.$ac_objext' 7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7181 (eval $ac_try) 2>&5 7182 ac_status=$? 7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7184 (exit $ac_status); }; }; then 7185 ac_lo=0 ac_mid=0 7186 while :; do 7187 cat >conftest.$ac_ext <<_ACEOF 7188 /* confdefs.h. */ 7189 _ACEOF 7190 cat confdefs.h >>conftest.$ac_ext 7191 cat >>conftest.$ac_ext <<_ACEOF 7192 /* end confdefs.h. */ 7193 $ac_includes_default 7194 int 7195 main () 7196 { 7197 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 7198 test_array [0] = 0 7199 7200 ; 7201 return 0; 7202 } 7203 _ACEOF 7204 rm -f conftest.$ac_objext 7205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7206 (eval $ac_compile) 2>conftest.er1 7207 ac_status=$? 7208 grep -v '^ *+' conftest.er1 >conftest.err 7209 rm -f conftest.er1 7210 cat conftest.err >&5 7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7212 (exit $ac_status); } && 7213 { ac_try='test -z "$ac_c_werror_flag" 7214 || test ! -s conftest.err' 7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7216 (eval $ac_try) 2>&5 7217 ac_status=$? 7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7219 (exit $ac_status); }; } && 7220 { ac_try='test -s conftest.$ac_objext' 7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7222 (eval $ac_try) 2>&5 7223 ac_status=$? 7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7225 (exit $ac_status); }; }; then 7226 ac_hi=$ac_mid; break 7227 else 7228 echo "$as_me: failed program was:" >&5 7229 sed 's/^/| /' conftest.$ac_ext >&5 7230 7231 ac_lo=`expr $ac_mid + 1` 7232 if test $ac_lo -le $ac_mid; then 7233 ac_lo= ac_hi= 7234 break 7235 fi 7236 ac_mid=`expr 2 '*' $ac_mid + 1` 7237 fi 7238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7239 done 7240 else 7241 echo "$as_me: failed program was:" >&5 7242 sed 's/^/| /' conftest.$ac_ext >&5 7243 7244 cat >conftest.$ac_ext <<_ACEOF 7245 /* confdefs.h. */ 7246 _ACEOF 7247 cat confdefs.h >>conftest.$ac_ext 7248 cat >>conftest.$ac_ext <<_ACEOF 7249 /* end confdefs.h. */ 7250 $ac_includes_default 7251 int 7252 main () 7253 { 7254 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 7255 test_array [0] = 0 7256 7257 ; 7258 return 0; 7259 } 7260 _ACEOF 7261 rm -f conftest.$ac_objext 7262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7263 (eval $ac_compile) 2>conftest.er1 7264 ac_status=$? 7265 grep -v '^ *+' conftest.er1 >conftest.err 7266 rm -f conftest.er1 7267 cat conftest.err >&5 7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7269 (exit $ac_status); } && 7270 { ac_try='test -z "$ac_c_werror_flag" 7271 || test ! -s conftest.err' 7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7273 (eval $ac_try) 2>&5 7274 ac_status=$? 7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7276 (exit $ac_status); }; } && 7277 { ac_try='test -s conftest.$ac_objext' 7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7279 (eval $ac_try) 2>&5 7280 ac_status=$? 7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7282 (exit $ac_status); }; }; then 7283 ac_hi=-1 ac_mid=-1 7284 while :; do 7285 cat >conftest.$ac_ext <<_ACEOF 7286 /* confdefs.h. */ 7287 _ACEOF 7288 cat confdefs.h >>conftest.$ac_ext 7289 cat >>conftest.$ac_ext <<_ACEOF 7290 /* end confdefs.h. */ 7291 $ac_includes_default 7292 int 7293 main () 7294 { 7295 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 7296 test_array [0] = 0 7297 7298 ; 7299 return 0; 7300 } 7301 _ACEOF 7302 rm -f conftest.$ac_objext 7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7304 (eval $ac_compile) 2>conftest.er1 7305 ac_status=$? 7306 grep -v '^ *+' conftest.er1 >conftest.err 7307 rm -f conftest.er1 7308 cat conftest.err >&5 7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7310 (exit $ac_status); } && 7311 { ac_try='test -z "$ac_c_werror_flag" 7312 || test ! -s conftest.err' 7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7314 (eval $ac_try) 2>&5 7315 ac_status=$? 7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7317 (exit $ac_status); }; } && 7318 { ac_try='test -s conftest.$ac_objext' 7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7320 (eval $ac_try) 2>&5 7321 ac_status=$? 7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7323 (exit $ac_status); }; }; then 7324 ac_lo=$ac_mid; break 7325 else 7326 echo "$as_me: failed program was:" >&5 7327 sed 's/^/| /' conftest.$ac_ext >&5 7328 7329 ac_hi=`expr '(' $ac_mid ')' - 1` 7330 if test $ac_mid -le $ac_hi; then 7331 ac_lo= ac_hi= 7332 break 7333 fi 7334 ac_mid=`expr 2 '*' $ac_mid` 7335 fi 7336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7337 done 7338 else 7339 echo "$as_me: failed program was:" >&5 7340 sed 's/^/| /' conftest.$ac_ext >&5 7341 7342 ac_lo= ac_hi= 7343 fi 7344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7345 fi 7346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7347 # Binary search between lo and hi bounds. 7348 while test "x$ac_lo" != "x$ac_hi"; do 7349 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7350 cat >conftest.$ac_ext <<_ACEOF 7351 /* confdefs.h. */ 7352 _ACEOF 7353 cat confdefs.h >>conftest.$ac_ext 7354 cat >>conftest.$ac_ext <<_ACEOF 7355 /* end confdefs.h. */ 7356 $ac_includes_default 7357 int 7358 main () 7359 { 7360 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 7361 test_array [0] = 0 7362 7363 ; 7364 return 0; 7365 } 7366 _ACEOF 7367 rm -f conftest.$ac_objext 7368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7369 (eval $ac_compile) 2>conftest.er1 7370 ac_status=$? 7371 grep -v '^ *+' conftest.er1 >conftest.err 7372 rm -f conftest.er1 7373 cat conftest.err >&5 7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7375 (exit $ac_status); } && 7376 { ac_try='test -z "$ac_c_werror_flag" 7377 || test ! -s conftest.err' 7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7379 (eval $ac_try) 2>&5 7380 ac_status=$? 7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7382 (exit $ac_status); }; } && 7383 { ac_try='test -s conftest.$ac_objext' 7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7385 (eval $ac_try) 2>&5 7386 ac_status=$? 7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7388 (exit $ac_status); }; }; then 7389 ac_hi=$ac_mid 7390 else 7391 echo "$as_me: failed program was:" >&5 7392 sed 's/^/| /' conftest.$ac_ext >&5 7393 7394 ac_lo=`expr '(' $ac_mid ')' + 1` 7395 fi 7396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7397 done 7398 case $ac_lo in 7399 ?*) ac_cv_sizeof_short=$ac_lo;; 7400 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 7401 See \`config.log' for more details." >&5 7402 echo "$as_me: error: cannot compute sizeof (short), 77 7403 See \`config.log' for more details." >&2;} 7404 { (exit 1); exit 1; }; } ;; 7405 esac 7406 else 7407 if test "$cross_compiling" = yes; then 7408 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7409 See \`config.log' for more details." >&5 7410 echo "$as_me: error: cannot run test program while cross compiling 7411 See \`config.log' for more details." >&2;} 7412 { (exit 1); exit 1; }; } 7413 else 7414 cat >conftest.$ac_ext <<_ACEOF 7415 /* confdefs.h. */ 7416 _ACEOF 7417 cat confdefs.h >>conftest.$ac_ext 7418 cat >>conftest.$ac_ext <<_ACEOF 7419 /* end confdefs.h. */ 7420 $ac_includes_default 7421 long longval () { return (long) (sizeof (short)); } 7422 unsigned long ulongval () { return (long) (sizeof (short)); } 3320 7423 #include <stdio.h> 3321 main() 7424 #include <stdlib.h> 7425 int 7426 main () 3322 7427 { 3323 FILE *f=fopen("conftestval", "w"); 3324 if (!f) exit(1); 3325 fprintf(f, "%d\n", sizeof(short)); 3326 exit(0); 7428 7429 FILE *f = fopen ("conftest.val", "w"); 7430 if (! f) 7431 exit (1); 7432 if (((long) (sizeof (short))) < 0) 7433 { 7434 long i = longval (); 7435 if (i != ((long) (sizeof (short)))) 7436 exit (1); 7437 fprintf (f, "%ld\n", i); 7438 } 7439 else 7440 { 7441 unsigned long i = ulongval (); 7442 if (i != ((long) (sizeof (short)))) 7443 exit (1); 7444 fprintf (f, "%lu\n", i); 7445 } 7446 exit (ferror (f) || fclose (f) != 0); 7447 7448 ; 7449 return 0; 3327 7450 } 3328 EOF 3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3330 then 3331 ac_cv_sizeof_short=`cat conftestval` 3332 else 3333 echo "configure: failed program was:" >&5 3334 cat conftest.$ac_ext >&5 3335 rm -fr conftest* 7451 _ACEOF 7452 rm -f conftest$ac_exeext 7453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7454 (eval $ac_link) 2>&5 7455 ac_status=$? 7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7459 (eval $ac_try) 2>&5 7460 ac_status=$? 7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7462 (exit $ac_status); }; }; then 7463 ac_cv_sizeof_short=`cat conftest.val` 7464 else 7465 echo "$as_me: program exited with status $ac_status" >&5 7466 echo "$as_me: failed program was:" >&5 7467 sed 's/^/| /' conftest.$ac_ext >&5 7468 7469 ( exit $ac_status ) 7470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 7471 See \`config.log' for more details." >&5 7472 echo "$as_me: error: cannot compute sizeof (short), 77 7473 See \`config.log' for more details." >&2;} 7474 { (exit 1); exit 1; }; } 7475 fi 7476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7477 fi 7478 fi 7479 rm -f conftest.val 7480 else 3336 7481 ac_cv_sizeof_short=0 3337 7482 fi 3338 rm -fr conftest* 3339 fi 3340 3341 fi 3342 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 3343 cat >> confdefs.h <<EOF 7483 fi 7484 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 7485 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 7486 cat >>confdefs.h <<_ACEOF 3344 7487 #define SIZEOF_SHORT $ac_cv_sizeof_short 3345 EOF 3346 3347 3348 echo $ac_n "checking size of int""... $ac_c" 1>&6 3349 echo "configure:3350: checking size of int" >&5 3350 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 3351 echo $ac_n "(cached) $ac_c" 1>&6 3352 else 7488 _ACEOF 7489 7490 7491 echo "$as_me:$LINENO: checking for int" >&5 7492 echo $ECHO_N "checking for int... $ECHO_C" >&6 7493 if test "${ac_cv_type_int+set}" = set; then 7494 echo $ECHO_N "(cached) $ECHO_C" >&6 7495 else 7496 cat >conftest.$ac_ext <<_ACEOF 7497 /* confdefs.h. */ 7498 _ACEOF 7499 cat confdefs.h >>conftest.$ac_ext 7500 cat >>conftest.$ac_ext <<_ACEOF 7501 /* end confdefs.h. */ 7502 $ac_includes_default 7503 int 7504 main () 7505 { 7506 if ((int *) 0) 7507 return 0; 7508 if (sizeof (int)) 7509 return 0; 7510 ; 7511 return 0; 7512 } 7513 _ACEOF 7514 rm -f conftest.$ac_objext 7515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7516 (eval $ac_compile) 2>conftest.er1 7517 ac_status=$? 7518 grep -v '^ *+' conftest.er1 >conftest.err 7519 rm -f conftest.er1 7520 cat conftest.err >&5 7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7522 (exit $ac_status); } && 7523 { ac_try='test -z "$ac_c_werror_flag" 7524 || test ! -s conftest.err' 7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7526 (eval $ac_try) 2>&5 7527 ac_status=$? 7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7529 (exit $ac_status); }; } && 7530 { ac_try='test -s conftest.$ac_objext' 7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7532 (eval $ac_try) 2>&5 7533 ac_status=$? 7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7535 (exit $ac_status); }; }; then 7536 ac_cv_type_int=yes 7537 else 7538 echo "$as_me: failed program was:" >&5 7539 sed 's/^/| /' conftest.$ac_ext >&5 7540 7541 ac_cv_type_int=no 7542 fi 7543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7544 fi 7545 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 7546 echo "${ECHO_T}$ac_cv_type_int" >&6 7547 7548 echo "$as_me:$LINENO: checking size of int" >&5 7549 echo $ECHO_N "checking size of int... $ECHO_C" >&6 7550 if test "${ac_cv_sizeof_int+set}" = set; then 7551 echo $ECHO_N "(cached) $ECHO_C" >&6 7552 else 7553 if test "$ac_cv_type_int" = yes; then 7554 # The cast to unsigned long works around a bug in the HP C Compiler 7555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7557 # This bug is HP SR number 8606223364. 3353 7558 if test "$cross_compiling" = yes; then 3354 ac_cv_sizeof_int=4 3355 else 3356 cat > conftest.$ac_ext <<EOF 3357 #line 3358 "configure" 3358 #include "confdefs.h" 7559 # Depending upon the size, compute the lo and hi bounds. 7560 cat >conftest.$ac_ext <<_ACEOF 7561 /* confdefs.h. */ 7562 _ACEOF 7563 cat confdefs.h >>conftest.$ac_ext 7564 cat >>conftest.$ac_ext <<_ACEOF 7565 /* end confdefs.h. */ 7566 $ac_includes_default 7567 int 7568 main () 7569 { 7570 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 7571 test_array [0] = 0 7572 7573 ; 7574 return 0; 7575 } 7576 _ACEOF 7577 rm -f conftest.$ac_objext 7578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7579 (eval $ac_compile) 2>conftest.er1 7580 ac_status=$? 7581 grep -v '^ *+' conftest.er1 >conftest.err 7582 rm -f conftest.er1 7583 cat conftest.err >&5 7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7585 (exit $ac_status); } && 7586 { ac_try='test -z "$ac_c_werror_flag" 7587 || test ! -s conftest.err' 7588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7589 (eval $ac_try) 2>&5 7590 ac_status=$? 7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7592 (exit $ac_status); }; } && 7593 { ac_try='test -s conftest.$ac_objext' 7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7595 (eval $ac_try) 2>&5 7596 ac_status=$? 7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7598 (exit $ac_status); }; }; then 7599 ac_lo=0 ac_mid=0 7600 while :; do 7601 cat >conftest.$ac_ext <<_ACEOF 7602 /* confdefs.h. */ 7603 _ACEOF 7604 cat confdefs.h >>conftest.$ac_ext 7605 cat >>conftest.$ac_ext <<_ACEOF 7606 /* end confdefs.h. */ 7607 $ac_includes_default 7608 int 7609 main () 7610 { 7611 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7612 test_array [0] = 0 7613 7614 ; 7615 return 0; 7616 } 7617 _ACEOF 7618 rm -f conftest.$ac_objext 7619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7620 (eval $ac_compile) 2>conftest.er1 7621 ac_status=$? 7622 grep -v '^ *+' conftest.er1 >conftest.err 7623 rm -f conftest.er1 7624 cat conftest.err >&5 7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7626 (exit $ac_status); } && 7627 { ac_try='test -z "$ac_c_werror_flag" 7628 || test ! -s conftest.err' 7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7630 (eval $ac_try) 2>&5 7631 ac_status=$? 7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 (exit $ac_status); }; } && 7634 { ac_try='test -s conftest.$ac_objext' 7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7636 (eval $ac_try) 2>&5 7637 ac_status=$? 7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7639 (exit $ac_status); }; }; then 7640 ac_hi=$ac_mid; break 7641 else 7642 echo "$as_me: failed program was:" >&5 7643 sed 's/^/| /' conftest.$ac_ext >&5 7644 7645 ac_lo=`expr $ac_mid + 1` 7646 if test $ac_lo -le $ac_mid; then 7647 ac_lo= ac_hi= 7648 break 7649 fi 7650 ac_mid=`expr 2 '*' $ac_mid + 1` 7651 fi 7652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7653 done 7654 else 7655 echo "$as_me: failed program was:" >&5 7656 sed 's/^/| /' conftest.$ac_ext >&5 7657 7658 cat >conftest.$ac_ext <<_ACEOF 7659 /* confdefs.h. */ 7660 _ACEOF 7661 cat confdefs.h >>conftest.$ac_ext 7662 cat >>conftest.$ac_ext <<_ACEOF 7663 /* end confdefs.h. */ 7664 $ac_includes_default 7665 int 7666 main () 7667 { 7668 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 7669 test_array [0] = 0 7670 7671 ; 7672 return 0; 7673 } 7674 _ACEOF 7675 rm -f conftest.$ac_objext 7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7677 (eval $ac_compile) 2>conftest.er1 7678 ac_status=$? 7679 grep -v '^ *+' conftest.er1 >conftest.err 7680 rm -f conftest.er1 7681 cat conftest.err >&5 7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7683 (exit $ac_status); } && 7684 { ac_try='test -z "$ac_c_werror_flag" 7685 || test ! -s conftest.err' 7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7687 (eval $ac_try) 2>&5 7688 ac_status=$? 7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7690 (exit $ac_status); }; } && 7691 { ac_try='test -s conftest.$ac_objext' 7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7693 (eval $ac_try) 2>&5 7694 ac_status=$? 7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7696 (exit $ac_status); }; }; then 7697 ac_hi=-1 ac_mid=-1 7698 while :; do 7699 cat >conftest.$ac_ext <<_ACEOF 7700 /* confdefs.h. */ 7701 _ACEOF 7702 cat confdefs.h >>conftest.$ac_ext 7703 cat >>conftest.$ac_ext <<_ACEOF 7704 /* end confdefs.h. */ 7705 $ac_includes_default 7706 int 7707 main () 7708 { 7709 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 7710 test_array [0] = 0 7711 7712 ; 7713 return 0; 7714 } 7715 _ACEOF 7716 rm -f conftest.$ac_objext 7717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7718 (eval $ac_compile) 2>conftest.er1 7719 ac_status=$? 7720 grep -v '^ *+' conftest.er1 >conftest.err 7721 rm -f conftest.er1 7722 cat conftest.err >&5 7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7724 (exit $ac_status); } && 7725 { ac_try='test -z "$ac_c_werror_flag" 7726 || test ! -s conftest.err' 7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7728 (eval $ac_try) 2>&5 7729 ac_status=$? 7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7731 (exit $ac_status); }; } && 7732 { ac_try='test -s conftest.$ac_objext' 7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7734 (eval $ac_try) 2>&5 7735 ac_status=$? 7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7737 (exit $ac_status); }; }; then 7738 ac_lo=$ac_mid; break 7739 else 7740 echo "$as_me: failed program was:" >&5 7741 sed 's/^/| /' conftest.$ac_ext >&5 7742 7743 ac_hi=`expr '(' $ac_mid ')' - 1` 7744 if test $ac_mid -le $ac_hi; then 7745 ac_lo= ac_hi= 7746 break 7747 fi 7748 ac_mid=`expr 2 '*' $ac_mid` 7749 fi 7750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7751 done 7752 else 7753 echo "$as_me: failed program was:" >&5 7754 sed 's/^/| /' conftest.$ac_ext >&5 7755 7756 ac_lo= ac_hi= 7757 fi 7758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7759 fi 7760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7761 # Binary search between lo and hi bounds. 7762 while test "x$ac_lo" != "x$ac_hi"; do 7763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7764 cat >conftest.$ac_ext <<_ACEOF 7765 /* confdefs.h. */ 7766 _ACEOF 7767 cat confdefs.h >>conftest.$ac_ext 7768 cat >>conftest.$ac_ext <<_ACEOF 7769 /* end confdefs.h. */ 7770 $ac_includes_default 7771 int 7772 main () 7773 { 7774 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7775 test_array [0] = 0 7776 7777 ; 7778 return 0; 7779 } 7780 _ACEOF 7781 rm -f conftest.$ac_objext 7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7783 (eval $ac_compile) 2>conftest.er1 7784 ac_status=$? 7785 grep -v '^ *+' conftest.er1 >conftest.err 7786 rm -f conftest.er1 7787 cat conftest.err >&5 7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7789 (exit $ac_status); } && 7790 { ac_try='test -z "$ac_c_werror_flag" 7791 || test ! -s conftest.err' 7792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7793 (eval $ac_try) 2>&5 7794 ac_status=$? 7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7796 (exit $ac_status); }; } && 7797 { ac_try='test -s conftest.$ac_objext' 7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7799 (eval $ac_try) 2>&5 7800 ac_status=$? 7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 (exit $ac_status); }; }; then 7803 ac_hi=$ac_mid 7804 else 7805 echo "$as_me: failed program was:" >&5 7806 sed 's/^/| /' conftest.$ac_ext >&5 7807 7808 ac_lo=`expr '(' $ac_mid ')' + 1` 7809 fi 7810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7811 done 7812 case $ac_lo in 7813 ?*) ac_cv_sizeof_int=$ac_lo;; 7814 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7815 See \`config.log' for more details." >&5 7816 echo "$as_me: error: cannot compute sizeof (int), 77 7817 See \`config.log' for more details." >&2;} 7818 { (exit 1); exit 1; }; } ;; 7819 esac 7820 else 7821 if test "$cross_compiling" = yes; then 7822 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7823 See \`config.log' for more details." >&5 7824 echo "$as_me: error: cannot run test program while cross compiling 7825 See \`config.log' for more details." >&2;} 7826 { (exit 1); exit 1; }; } 7827 else 7828 cat >conftest.$ac_ext <<_ACEOF 7829 /* confdefs.h. */ 7830 _ACEOF 7831 cat confdefs.h >>conftest.$ac_ext 7832 cat >>conftest.$ac_ext <<_ACEOF 7833 /* end confdefs.h. */ 7834 $ac_includes_default 7835 long longval () { return (long) (sizeof (int)); } 7836 unsigned long ulongval () { return (long) (sizeof (int)); } 3359 7837 #include <stdio.h> 3360 main() 7838 #include <stdlib.h> 7839 int 7840 main () 3361 7841 { 3362 FILE *f=fopen("conftestval", "w"); 3363 if (!f) exit(1); 3364 fprintf(f, "%d\n", sizeof(int)); 3365 exit(0); 7842 7843 FILE *f = fopen ("conftest.val", "w"); 7844 if (! f) 7845 exit (1); 7846 if (((long) (sizeof (int))) < 0) 7847 { 7848 long i = longval (); 7849 if (i != ((long) (sizeof (int)))) 7850 exit (1); 7851 fprintf (f, "%ld\n", i); 7852 } 7853 else 7854 { 7855 unsigned long i = ulongval (); 7856 if (i != ((long) (sizeof (int)))) 7857 exit (1); 7858 fprintf (f, "%lu\n", i); 7859 } 7860 exit (ferror (f) || fclose (f) != 0); 7861 7862 ; 7863 return 0; 3366 7864 } 3367 EOF 3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3369 then 3370 ac_cv_sizeof_int=`cat conftestval` 3371 else 3372 echo "configure: failed program was:" >&5 3373 cat conftest.$ac_ext >&5 3374 rm -fr conftest* 7865 _ACEOF 7866 rm -f conftest$ac_exeext 7867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7868 (eval $ac_link) 2>&5 7869 ac_status=$? 7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7873 (eval $ac_try) 2>&5 7874 ac_status=$? 7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7876 (exit $ac_status); }; }; then 7877 ac_cv_sizeof_int=`cat conftest.val` 7878 else 7879 echo "$as_me: program exited with status $ac_status" >&5 7880 echo "$as_me: failed program was:" >&5 7881 sed 's/^/| /' conftest.$ac_ext >&5 7882 7883 ( exit $ac_status ) 7884 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7885 See \`config.log' for more details." >&5 7886 echo "$as_me: error: cannot compute sizeof (int), 77 7887 See \`config.log' for more details." >&2;} 7888 { (exit 1); exit 1; }; } 7889 fi 7890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7891 fi 7892 fi 7893 rm -f conftest.val 7894 else 3375 7895 ac_cv_sizeof_int=0 3376 7896 fi 3377 rm -fr conftest* 3378 fi 3379 3380 fi 3381 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 3382 cat >> confdefs.h <<EOF 7897 fi 7898 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 7899 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 7900 cat >>confdefs.h <<_ACEOF 3383 7901 #define SIZEOF_INT $ac_cv_sizeof_int 3384 EOF 3385 3386 3387 echo $ac_n "checking size of long""... $ac_c" 1>&6 3388 echo "configure:3389: checking size of long" >&5 3389 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 3390 echo $ac_n "(cached) $ac_c" 1>&6 3391 else 7902 _ACEOF 7903 7904 7905 echo "$as_me:$LINENO: checking for long" >&5 7906 echo $ECHO_N "checking for long... $ECHO_C" >&6 7907 if test "${ac_cv_type_long+set}" = set; then 7908 echo $ECHO_N "(cached) $ECHO_C" >&6 7909 else 7910 cat >conftest.$ac_ext <<_ACEOF 7911 /* confdefs.h. */ 7912 _ACEOF 7913 cat confdefs.h >>conftest.$ac_ext 7914 cat >>conftest.$ac_ext <<_ACEOF 7915 /* end confdefs.h. */ 7916 $ac_includes_default 7917 int 7918 main () 7919 { 7920 if ((long *) 0) 7921 return 0; 7922 if (sizeof (long)) 7923 return 0; 7924 ; 7925 return 0; 7926 } 7927 _ACEOF 7928 rm -f conftest.$ac_objext 7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7930 (eval $ac_compile) 2>conftest.er1 7931 ac_status=$? 7932 grep -v '^ *+' conftest.er1 >conftest.err 7933 rm -f conftest.er1 7934 cat conftest.err >&5 7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7936 (exit $ac_status); } && 7937 { ac_try='test -z "$ac_c_werror_flag" 7938 || test ! -s conftest.err' 7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7940 (eval $ac_try) 2>&5 7941 ac_status=$? 7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7943 (exit $ac_status); }; } && 7944 { ac_try='test -s conftest.$ac_objext' 7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7946 (eval $ac_try) 2>&5 7947 ac_status=$? 7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7949 (exit $ac_status); }; }; then 7950 ac_cv_type_long=yes 7951 else 7952 echo "$as_me: failed program was:" >&5 7953 sed 's/^/| /' conftest.$ac_ext >&5 7954 7955 ac_cv_type_long=no 7956 fi 7957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7958 fi 7959 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 7960 echo "${ECHO_T}$ac_cv_type_long" >&6 7961 7962 echo "$as_me:$LINENO: checking size of long" >&5 7963 echo $ECHO_N "checking size of long... $ECHO_C" >&6 7964 if test "${ac_cv_sizeof_long+set}" = set; then 7965 echo $ECHO_N "(cached) $ECHO_C" >&6 7966 else 7967 if test "$ac_cv_type_long" = yes; then 7968 # The cast to unsigned long works around a bug in the HP C Compiler 7969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7971 # This bug is HP SR number 8606223364. 3392 7972 if test "$cross_compiling" = yes; then 3393 ac_cv_sizeof_long=4 3394 else 3395 cat > conftest.$ac_ext <<EOF 3396 #line 3397 "configure" 3397 #include "confdefs.h" 7973 # Depending upon the size, compute the lo and hi bounds. 7974 cat >conftest.$ac_ext <<_ACEOF 7975 /* confdefs.h. */ 7976 _ACEOF 7977 cat confdefs.h >>conftest.$ac_ext 7978 cat >>conftest.$ac_ext <<_ACEOF 7979 /* end confdefs.h. */ 7980 $ac_includes_default 7981 int 7982 main () 7983 { 7984 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 7985 test_array [0] = 0 7986 7987 ; 7988 return 0; 7989 } 7990 _ACEOF 7991 rm -f conftest.$ac_objext 7992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7993 (eval $ac_compile) 2>conftest.er1 7994 ac_status=$? 7995 grep -v '^ *+' conftest.er1 >conftest.err 7996 rm -f conftest.er1 7997 cat conftest.err >&5 7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7999 (exit $ac_status); } && 8000 { ac_try='test -z "$ac_c_werror_flag" 8001 || test ! -s conftest.err' 8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8003 (eval $ac_try) 2>&5 8004 ac_status=$? 8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8006 (exit $ac_status); }; } && 8007 { ac_try='test -s conftest.$ac_objext' 8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8009 (eval $ac_try) 2>&5 8010 ac_status=$? 8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8012 (exit $ac_status); }; }; then 8013 ac_lo=0 ac_mid=0 8014 while :; do 8015 cat >conftest.$ac_ext <<_ACEOF 8016 /* confdefs.h. */ 8017 _ACEOF 8018 cat confdefs.h >>conftest.$ac_ext 8019 cat >>conftest.$ac_ext <<_ACEOF 8020 /* end confdefs.h. */ 8021 $ac_includes_default 8022 int 8023 main () 8024 { 8025 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 8026 test_array [0] = 0 8027 8028 ; 8029 return 0; 8030 } 8031 _ACEOF 8032 rm -f conftest.$ac_objext 8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8034 (eval $ac_compile) 2>conftest.er1 8035 ac_status=$? 8036 grep -v '^ *+' conftest.er1 >conftest.err 8037 rm -f conftest.er1 8038 cat conftest.err >&5 8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8040 (exit $ac_status); } && 8041 { ac_try='test -z "$ac_c_werror_flag" 8042 || test ! -s conftest.err' 8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8044 (eval $ac_try) 2>&5 8045 ac_status=$? 8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8047 (exit $ac_status); }; } && 8048 { ac_try='test -s conftest.$ac_objext' 8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8050 (eval $ac_try) 2>&5 8051 ac_status=$? 8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8053 (exit $ac_status); }; }; then 8054 ac_hi=$ac_mid; break 8055 else 8056 echo "$as_me: failed program was:" >&5 8057 sed 's/^/| /' conftest.$ac_ext >&5 8058 8059 ac_lo=`expr $ac_mid + 1` 8060 if test $ac_lo -le $ac_mid; then 8061 ac_lo= ac_hi= 8062 break 8063 fi 8064 ac_mid=`expr 2 '*' $ac_mid + 1` 8065 fi 8066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8067 done 8068 else 8069 echo "$as_me: failed program was:" >&5 8070 sed 's/^/| /' conftest.$ac_ext >&5 8071 8072 cat >conftest.$ac_ext <<_ACEOF 8073 /* confdefs.h. */ 8074 _ACEOF 8075 cat confdefs.h >>conftest.$ac_ext 8076 cat >>conftest.$ac_ext <<_ACEOF 8077 /* end confdefs.h. */ 8078 $ac_includes_default 8079 int 8080 main () 8081 { 8082 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 8083 test_array [0] = 0 8084 8085 ; 8086 return 0; 8087 } 8088 _ACEOF 8089 rm -f conftest.$ac_objext 8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8091 (eval $ac_compile) 2>conftest.er1 8092 ac_status=$? 8093 grep -v '^ *+' conftest.er1 >conftest.err 8094 rm -f conftest.er1 8095 cat conftest.err >&5 8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8097 (exit $ac_status); } && 8098 { ac_try='test -z "$ac_c_werror_flag" 8099 || test ! -s conftest.err' 8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8101 (eval $ac_try) 2>&5 8102 ac_status=$? 8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8104 (exit $ac_status); }; } && 8105 { ac_try='test -s conftest.$ac_objext' 8106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8107 (eval $ac_try) 2>&5 8108 ac_status=$? 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8110 (exit $ac_status); }; }; then 8111 ac_hi=-1 ac_mid=-1 8112 while :; do 8113 cat >conftest.$ac_ext <<_ACEOF 8114 /* confdefs.h. */ 8115 _ACEOF 8116 cat confdefs.h >>conftest.$ac_ext 8117 cat >>conftest.$ac_ext <<_ACEOF 8118 /* end confdefs.h. */ 8119 $ac_includes_default 8120 int 8121 main () 8122 { 8123 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 8124 test_array [0] = 0 8125 8126 ; 8127 return 0; 8128 } 8129 _ACEOF 8130 rm -f conftest.$ac_objext 8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8132 (eval $ac_compile) 2>conftest.er1 8133 ac_status=$? 8134 grep -v '^ *+' conftest.er1 >conftest.err 8135 rm -f conftest.er1 8136 cat conftest.err >&5 8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8138 (exit $ac_status); } && 8139 { ac_try='test -z "$ac_c_werror_flag" 8140 || test ! -s conftest.err' 8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8142 (eval $ac_try) 2>&5 8143 ac_status=$? 8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8145 (exit $ac_status); }; } && 8146 { ac_try='test -s conftest.$ac_objext' 8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8148 (eval $ac_try) 2>&5 8149 ac_status=$? 8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8151 (exit $ac_status); }; }; then 8152 ac_lo=$ac_mid; break 8153 else 8154 echo "$as_me: failed program was:" >&5 8155 sed 's/^/| /' conftest.$ac_ext >&5 8156 8157 ac_hi=`expr '(' $ac_mid ')' - 1` 8158 if test $ac_mid -le $ac_hi; then 8159 ac_lo= ac_hi= 8160 break 8161 fi 8162 ac_mid=`expr 2 '*' $ac_mid` 8163 fi 8164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8165 done 8166 else 8167 echo "$as_me: failed program was:" >&5 8168 sed 's/^/| /' conftest.$ac_ext >&5 8169 8170 ac_lo= ac_hi= 8171 fi 8172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8173 fi 8174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8175 # Binary search between lo and hi bounds. 8176 while test "x$ac_lo" != "x$ac_hi"; do 8177 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8178 cat >conftest.$ac_ext <<_ACEOF 8179 /* confdefs.h. */ 8180 _ACEOF 8181 cat confdefs.h >>conftest.$ac_ext 8182 cat >>conftest.$ac_ext <<_ACEOF 8183 /* end confdefs.h. */ 8184 $ac_includes_default 8185 int 8186 main () 8187 { 8188 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 8189 test_array [0] = 0 8190 8191 ; 8192 return 0; 8193 } 8194 _ACEOF 8195 rm -f conftest.$ac_objext 8196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8197 (eval $ac_compile) 2>conftest.er1 8198 ac_status=$? 8199 grep -v '^ *+' conftest.er1 >conftest.err 8200 rm -f conftest.er1 8201 cat conftest.err >&5 8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8203 (exit $ac_status); } && 8204 { ac_try='test -z "$ac_c_werror_flag" 8205 || test ! -s conftest.err' 8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8207 (eval $ac_try) 2>&5 8208 ac_status=$? 8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8210 (exit $ac_status); }; } && 8211 { ac_try='test -s conftest.$ac_objext' 8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8213 (eval $ac_try) 2>&5 8214 ac_status=$? 8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 (exit $ac_status); }; }; then 8217 ac_hi=$ac_mid 8218 else 8219 echo "$as_me: failed program was:" >&5 8220 sed 's/^/| /' conftest.$ac_ext >&5 8221 8222 ac_lo=`expr '(' $ac_mid ')' + 1` 8223 fi 8224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8225 done 8226 case $ac_lo in 8227 ?*) ac_cv_sizeof_long=$ac_lo;; 8228 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 8229 See \`config.log' for more details." >&5 8230 echo "$as_me: error: cannot compute sizeof (long), 77 8231 See \`config.log' for more details." >&2;} 8232 { (exit 1); exit 1; }; } ;; 8233 esac 8234 else 8235 if test "$cross_compiling" = yes; then 8236 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8237 See \`config.log' for more details." >&5 8238 echo "$as_me: error: cannot run test program while cross compiling 8239 See \`config.log' for more details." >&2;} 8240 { (exit 1); exit 1; }; } 8241 else 8242 cat >conftest.$ac_ext <<_ACEOF 8243 /* confdefs.h. */ 8244 _ACEOF 8245 cat confdefs.h >>conftest.$ac_ext 8246 cat >>conftest.$ac_ext <<_ACEOF 8247 /* end confdefs.h. */ 8248 $ac_includes_default 8249 long longval () { return (long) (sizeof (long)); } 8250 unsigned long ulongval () { return (long) (sizeof (long)); } 3398 8251 #include <stdio.h> 3399 main() 8252 #include <stdlib.h> 8253 int 8254 main () 3400 8255 { 3401 FILE *f=fopen("conftestval", "w"); 3402 if (!f) exit(1); 3403 fprintf(f, "%d\n", sizeof(long)); 3404 exit(0); 8256 8257 FILE *f = fopen ("conftest.val", "w"); 8258 if (! f) 8259 exit (1); 8260 if (((long) (sizeof (long))) < 0) 8261 { 8262 long i = longval (); 8263 if (i != ((long) (sizeof (long)))) 8264 exit (1); 8265 fprintf (f, "%ld\n", i); 8266 } 8267 else 8268 { 8269 unsigned long i = ulongval (); 8270 if (i != ((long) (sizeof (long)))) 8271 exit (1); 8272 fprintf (f, "%lu\n", i); 8273 } 8274 exit (ferror (f) || fclose (f) != 0); 8275 8276 ; 8277 return 0; 3405 8278 } 3406 EOF 3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3408 then 3409 ac_cv_sizeof_long=`cat conftestval` 3410 else 3411 echo "configure: failed program was:" >&5 3412 cat conftest.$ac_ext >&5 3413 rm -fr conftest* 8279 _ACEOF 8280 rm -f conftest$ac_exeext 8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8282 (eval $ac_link) 2>&5 8283 ac_status=$? 8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8287 (eval $ac_try) 2>&5 8288 ac_status=$? 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8290 (exit $ac_status); }; }; then 8291 ac_cv_sizeof_long=`cat conftest.val` 8292 else 8293 echo "$as_me: program exited with status $ac_status" >&5 8294 echo "$as_me: failed program was:" >&5 8295 sed 's/^/| /' conftest.$ac_ext >&5 8296 8297 ( exit $ac_status ) 8298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 8299 See \`config.log' for more details." >&5 8300 echo "$as_me: error: cannot compute sizeof (long), 77 8301 See \`config.log' for more details." >&2;} 8302 { (exit 1); exit 1; }; } 8303 fi 8304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8305 fi 8306 fi 8307 rm -f conftest.val 8308 else 3414 8309 ac_cv_sizeof_long=0 3415 8310 fi 3416 rm -fr conftest* 3417 fi 3418 3419 fi 3420 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 3421 cat >> confdefs.h <<EOF 8311 fi 8312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 8313 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 8314 cat >>confdefs.h <<_ACEOF 3422 8315 #define SIZEOF_LONG $ac_cv_sizeof_long 3423 EOF 3424 3425 3426 echo $ac_n "checking size of void*""... $ac_c" 1>&6 3427 echo "configure:3428: checking size of void*" >&5 3428 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 3429 echo $ac_n "(cached) $ac_c" 1>&6 3430 else 8316 _ACEOF 8317 8318 8319 echo "$as_me:$LINENO: checking for void*" >&5 8320 echo $ECHO_N "checking for void*... $ECHO_C" >&6 8321 if test "${ac_cv_type_voidp+set}" = set; then 8322 echo $ECHO_N "(cached) $ECHO_C" >&6 8323 else 8324 cat >conftest.$ac_ext <<_ACEOF 8325 /* confdefs.h. */ 8326 _ACEOF 8327 cat confdefs.h >>conftest.$ac_ext 8328 cat >>conftest.$ac_ext <<_ACEOF 8329 /* end confdefs.h. */ 8330 $ac_includes_default 8331 int 8332 main () 8333 { 8334 if ((void* *) 0) 8335 return 0; 8336 if (sizeof (void*)) 8337 return 0; 8338 ; 8339 return 0; 8340 } 8341 _ACEOF 8342 rm -f conftest.$ac_objext 8343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8344 (eval $ac_compile) 2>conftest.er1 8345 ac_status=$? 8346 grep -v '^ *+' conftest.er1 >conftest.err 8347 rm -f conftest.er1 8348 cat conftest.err >&5 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 (exit $ac_status); } && 8351 { ac_try='test -z "$ac_c_werror_flag" 8352 || test ! -s conftest.err' 8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8354 (eval $ac_try) 2>&5 8355 ac_status=$? 8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8357 (exit $ac_status); }; } && 8358 { ac_try='test -s conftest.$ac_objext' 8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8360 (eval $ac_try) 2>&5 8361 ac_status=$? 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); }; }; then 8364 ac_cv_type_voidp=yes 8365 else 8366 echo "$as_me: failed program was:" >&5 8367 sed 's/^/| /' conftest.$ac_ext >&5 8368 8369 ac_cv_type_voidp=no 8370 fi 8371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8372 fi 8373 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 8374 echo "${ECHO_T}$ac_cv_type_voidp" >&6 8375 8376 echo "$as_me:$LINENO: checking size of void*" >&5 8377 echo $ECHO_N "checking size of void*... $ECHO_C" >&6 8378 if test "${ac_cv_sizeof_voidp+set}" = set; then 8379 echo $ECHO_N "(cached) $ECHO_C" >&6 8380 else 8381 if test "$ac_cv_type_voidp" = yes; then 8382 # The cast to unsigned long works around a bug in the HP C Compiler 8383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8385 # This bug is HP SR number 8606223364. 3431 8386 if test "$cross_compiling" = yes; then 3432 ac_cv_sizeof_voidp=4 3433 else 3434 cat > conftest.$ac_ext <<EOF 3435 #line 3436 "configure" 3436 #include "confdefs.h" 8387 # Depending upon the size, compute the lo and hi bounds. 8388 cat >conftest.$ac_ext <<_ACEOF 8389 /* confdefs.h. */ 8390 _ACEOF 8391 cat confdefs.h >>conftest.$ac_ext 8392 cat >>conftest.$ac_ext <<_ACEOF 8393 /* end confdefs.h. */ 8394 $ac_includes_default 8395 int 8396 main () 8397 { 8398 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)]; 8399 test_array [0] = 0 8400 8401 ; 8402 return 0; 8403 } 8404 _ACEOF 8405 rm -f conftest.$ac_objext 8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8407 (eval $ac_compile) 2>conftest.er1 8408 ac_status=$? 8409 grep -v '^ *+' conftest.er1 >conftest.err 8410 rm -f conftest.er1 8411 cat conftest.err >&5 8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8413 (exit $ac_status); } && 8414 { ac_try='test -z "$ac_c_werror_flag" 8415 || test ! -s conftest.err' 8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8417 (eval $ac_try) 2>&5 8418 ac_status=$? 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 (exit $ac_status); }; } && 8421 { ac_try='test -s conftest.$ac_objext' 8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8423 (eval $ac_try) 2>&5 8424 ac_status=$? 8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8426 (exit $ac_status); }; }; then 8427 ac_lo=0 ac_mid=0 8428 while :; do 8429 cat >conftest.$ac_ext <<_ACEOF 8430 /* confdefs.h. */ 8431 _ACEOF 8432 cat confdefs.h >>conftest.$ac_ext 8433 cat >>conftest.$ac_ext <<_ACEOF 8434 /* end confdefs.h. */ 8435 $ac_includes_default 8436 int 8437 main () 8438 { 8439 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; 8440 test_array [0] = 0 8441 8442 ; 8443 return 0; 8444 } 8445 _ACEOF 8446 rm -f conftest.$ac_objext 8447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8448 (eval $ac_compile) 2>conftest.er1 8449 ac_status=$? 8450 grep -v '^ *+' conftest.er1 >conftest.err 8451 rm -f conftest.er1 8452 cat conftest.err >&5 8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8454 (exit $ac_status); } && 8455 { ac_try='test -z "$ac_c_werror_flag" 8456 || test ! -s conftest.err' 8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8458 (eval $ac_try) 2>&5 8459 ac_status=$? 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 (exit $ac_status); }; } && 8462 { ac_try='test -s conftest.$ac_objext' 8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8464 (eval $ac_try) 2>&5 8465 ac_status=$? 8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8467 (exit $ac_status); }; }; then 8468 ac_hi=$ac_mid; break 8469 else 8470 echo "$as_me: failed program was:" >&5 8471 sed 's/^/| /' conftest.$ac_ext >&5 8472 8473 ac_lo=`expr $ac_mid + 1` 8474 if test $ac_lo -le $ac_mid; then 8475 ac_lo= ac_hi= 8476 break 8477 fi 8478 ac_mid=`expr 2 '*' $ac_mid + 1` 8479 fi 8480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8481 done 8482 else 8483 echo "$as_me: failed program was:" >&5 8484 sed 's/^/| /' conftest.$ac_ext >&5 8485 8486 cat >conftest.$ac_ext <<_ACEOF 8487 /* confdefs.h. */ 8488 _ACEOF 8489 cat confdefs.h >>conftest.$ac_ext 8490 cat >>conftest.$ac_ext <<_ACEOF 8491 /* end confdefs.h. */ 8492 $ac_includes_default 8493 int 8494 main () 8495 { 8496 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)]; 8497 test_array [0] = 0 8498 8499 ; 8500 return 0; 8501 } 8502 _ACEOF 8503 rm -f conftest.$ac_objext 8504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8505 (eval $ac_compile) 2>conftest.er1 8506 ac_status=$? 8507 grep -v '^ *+' conftest.er1 >conftest.err 8508 rm -f conftest.er1 8509 cat conftest.err >&5 8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8511 (exit $ac_status); } && 8512 { ac_try='test -z "$ac_c_werror_flag" 8513 || test ! -s conftest.err' 8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8515 (eval $ac_try) 2>&5 8516 ac_status=$? 8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8518 (exit $ac_status); }; } && 8519 { ac_try='test -s conftest.$ac_objext' 8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8521 (eval $ac_try) 2>&5 8522 ac_status=$? 8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8524 (exit $ac_status); }; }; then 8525 ac_hi=-1 ac_mid=-1 8526 while :; do 8527 cat >conftest.$ac_ext <<_ACEOF 8528 /* confdefs.h. */ 8529 _ACEOF 8530 cat confdefs.h >>conftest.$ac_ext 8531 cat >>conftest.$ac_ext <<_ACEOF 8532 /* end confdefs.h. */ 8533 $ac_includes_default 8534 int 8535 main () 8536 { 8537 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)]; 8538 test_array [0] = 0 8539 8540 ; 8541 return 0; 8542 } 8543 _ACEOF 8544 rm -f conftest.$ac_objext 8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8546 (eval $ac_compile) 2>conftest.er1 8547 ac_status=$? 8548 grep -v '^ *+' conftest.er1 >conftest.err 8549 rm -f conftest.er1 8550 cat conftest.err >&5 8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8552 (exit $ac_status); } && 8553 { ac_try='test -z "$ac_c_werror_flag" 8554 || test ! -s conftest.err' 8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8556 (eval $ac_try) 2>&5 8557 ac_status=$? 8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8559 (exit $ac_status); }; } && 8560 { ac_try='test -s conftest.$ac_objext' 8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8562 (eval $ac_try) 2>&5 8563 ac_status=$? 8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8565 (exit $ac_status); }; }; then 8566 ac_lo=$ac_mid; break 8567 else 8568 echo "$as_me: failed program was:" >&5 8569 sed 's/^/| /' conftest.$ac_ext >&5 8570 8571 ac_hi=`expr '(' $ac_mid ')' - 1` 8572 if test $ac_mid -le $ac_hi; then 8573 ac_lo= ac_hi= 8574 break 8575 fi 8576 ac_mid=`expr 2 '*' $ac_mid` 8577 fi 8578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8579 done 8580 else 8581 echo "$as_me: failed program was:" >&5 8582 sed 's/^/| /' conftest.$ac_ext >&5 8583 8584 ac_lo= ac_hi= 8585 fi 8586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8587 fi 8588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8589 # Binary search between lo and hi bounds. 8590 while test "x$ac_lo" != "x$ac_hi"; do 8591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8592 cat >conftest.$ac_ext <<_ACEOF 8593 /* confdefs.h. */ 8594 _ACEOF 8595 cat confdefs.h >>conftest.$ac_ext 8596 cat >>conftest.$ac_ext <<_ACEOF 8597 /* end confdefs.h. */ 8598 $ac_includes_default 8599 int 8600 main () 8601 { 8602 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; 8603 test_array [0] = 0 8604 8605 ; 8606 return 0; 8607 } 8608 _ACEOF 8609 rm -f conftest.$ac_objext 8610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8611 (eval $ac_compile) 2>conftest.er1 8612 ac_status=$? 8613 grep -v '^ *+' conftest.er1 >conftest.err 8614 rm -f conftest.er1 8615 cat conftest.err >&5 8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8617 (exit $ac_status); } && 8618 { ac_try='test -z "$ac_c_werror_flag" 8619 || test ! -s conftest.err' 8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8621 (eval $ac_try) 2>&5 8622 ac_status=$? 8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8624 (exit $ac_status); }; } && 8625 { ac_try='test -s conftest.$ac_objext' 8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8627 (eval $ac_try) 2>&5 8628 ac_status=$? 8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8630 (exit $ac_status); }; }; then 8631 ac_hi=$ac_mid 8632 else 8633 echo "$as_me: failed program was:" >&5 8634 sed 's/^/| /' conftest.$ac_ext >&5 8635 8636 ac_lo=`expr '(' $ac_mid ')' + 1` 8637 fi 8638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8639 done 8640 case $ac_lo in 8641 ?*) ac_cv_sizeof_voidp=$ac_lo;; 8642 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 8643 See \`config.log' for more details." >&5 8644 echo "$as_me: error: cannot compute sizeof (void*), 77 8645 See \`config.log' for more details." >&2;} 8646 { (exit 1); exit 1; }; } ;; 8647 esac 8648 else 8649 if test "$cross_compiling" = yes; then 8650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8651 See \`config.log' for more details." >&5 8652 echo "$as_me: error: cannot run test program while cross compiling 8653 See \`config.log' for more details." >&2;} 8654 { (exit 1); exit 1; }; } 8655 else 8656 cat >conftest.$ac_ext <<_ACEOF 8657 /* confdefs.h. */ 8658 _ACEOF 8659 cat confdefs.h >>conftest.$ac_ext 8660 cat >>conftest.$ac_ext <<_ACEOF 8661 /* end confdefs.h. */ 8662 $ac_includes_default 8663 long longval () { return (long) (sizeof (void*)); } 8664 unsigned long ulongval () { return (long) (sizeof (void*)); } 3437 8665 #include <stdio.h> 3438 main() 8666 #include <stdlib.h> 8667 int 8668 main () 3439 8669 { 3440 FILE *f=fopen("conftestval", "w"); 3441 if (!f) exit(1); 3442 fprintf(f, "%d\n", sizeof(void*)); 3443 exit(0); 8670 8671 FILE *f = fopen ("conftest.val", "w"); 8672 if (! f) 8673 exit (1); 8674 if (((long) (sizeof (void*))) < 0) 8675 { 8676 long i = longval (); 8677 if (i != ((long) (sizeof (void*)))) 8678 exit (1); 8679 fprintf (f, "%ld\n", i); 8680 } 8681 else 8682 { 8683 unsigned long i = ulongval (); 8684 if (i != ((long) (sizeof (void*)))) 8685 exit (1); 8686 fprintf (f, "%lu\n", i); 8687 } 8688 exit (ferror (f) || fclose (f) != 0); 8689 8690 ; 8691 return 0; 3444 8692 } 3445 EOF 3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3447 then 3448 ac_cv_sizeof_voidp=`cat conftestval` 3449 else 3450 echo "configure: failed program was:" >&5 3451 cat conftest.$ac_ext >&5 3452 rm -fr conftest* 8693 _ACEOF 8694 rm -f conftest$ac_exeext 8695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8696 (eval $ac_link) 2>&5 8697 ac_status=$? 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8701 (eval $ac_try) 2>&5 8702 ac_status=$? 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 (exit $ac_status); }; }; then 8705 ac_cv_sizeof_voidp=`cat conftest.val` 8706 else 8707 echo "$as_me: program exited with status $ac_status" >&5 8708 echo "$as_me: failed program was:" >&5 8709 sed 's/^/| /' conftest.$ac_ext >&5 8710 8711 ( exit $ac_status ) 8712 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 8713 See \`config.log' for more details." >&5 8714 echo "$as_me: error: cannot compute sizeof (void*), 77 8715 See \`config.log' for more details." >&2;} 8716 { (exit 1); exit 1; }; } 8717 fi 8718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8719 fi 8720 fi 8721 rm -f conftest.val 8722 else 3453 8723 ac_cv_sizeof_voidp=0 3454 8724 fi 3455 rm -fr conftest* 3456 fi 3457 3458 fi 3459 echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6 3460 cat >> confdefs.h <<EOF 8725 fi 8726 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 8727 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6 8728 cat >>confdefs.h <<_ACEOF 3461 8729 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp 3462 EOF 3463 3464 3465 echo $ac_n "checking size of double""... $ac_c" 1>&6 3466 echo "configure:3467: checking size of double" >&5 3467 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 3468 echo $ac_n "(cached) $ac_c" 1>&6 3469 else 8730 _ACEOF 8731 8732 8733 echo "$as_me:$LINENO: checking for double" >&5 8734 echo $ECHO_N "checking for double... $ECHO_C" >&6 8735 if test "${ac_cv_type_double+set}" = set; then 8736 echo $ECHO_N "(cached) $ECHO_C" >&6 8737 else 8738 cat >conftest.$ac_ext <<_ACEOF 8739 /* confdefs.h. */ 8740 _ACEOF 8741 cat confdefs.h >>conftest.$ac_ext 8742 cat >>conftest.$ac_ext <<_ACEOF 8743 /* end confdefs.h. */ 8744 $ac_includes_default 8745 int 8746 main () 8747 { 8748 if ((double *) 0) 8749 return 0; 8750 if (sizeof (double)) 8751 return 0; 8752 ; 8753 return 0; 8754 } 8755 _ACEOF 8756 rm -f conftest.$ac_objext 8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8758 (eval $ac_compile) 2>conftest.er1 8759 ac_status=$? 8760 grep -v '^ *+' conftest.er1 >conftest.err 8761 rm -f conftest.er1 8762 cat conftest.err >&5 8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8764 (exit $ac_status); } && 8765 { ac_try='test -z "$ac_c_werror_flag" 8766 || test ! -s conftest.err' 8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8768 (eval $ac_try) 2>&5 8769 ac_status=$? 8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8771 (exit $ac_status); }; } && 8772 { ac_try='test -s conftest.$ac_objext' 8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8774 (eval $ac_try) 2>&5 8775 ac_status=$? 8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8777 (exit $ac_status); }; }; then 8778 ac_cv_type_double=yes 8779 else 8780 echo "$as_me: failed program was:" >&5 8781 sed 's/^/| /' conftest.$ac_ext >&5 8782 8783 ac_cv_type_double=no 8784 fi 8785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8786 fi 8787 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 8788 echo "${ECHO_T}$ac_cv_type_double" >&6 8789 8790 echo "$as_me:$LINENO: checking size of double" >&5 8791 echo $ECHO_N "checking size of double... $ECHO_C" >&6 8792 if test "${ac_cv_sizeof_double+set}" = set; then 8793 echo $ECHO_N "(cached) $ECHO_C" >&6 8794 else 8795 if test "$ac_cv_type_double" = yes; then 8796 # The cast to unsigned long works around a bug in the HP C Compiler 8797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8799 # This bug is HP SR number 8606223364. 3470 8800 if test "$cross_compiling" = yes; then 3471 ac_cv_sizeof_double=8 3472 else 3473 cat > conftest.$ac_ext <<EOF 3474 #line 3475 "configure" 3475 #include "confdefs.h" 8801 # Depending upon the size, compute the lo and hi bounds. 8802 cat >conftest.$ac_ext <<_ACEOF 8803 /* confdefs.h. */ 8804 _ACEOF 8805 cat confdefs.h >>conftest.$ac_ext 8806 cat >>conftest.$ac_ext <<_ACEOF 8807 /* end confdefs.h. */ 8808 $ac_includes_default 8809 int 8810 main () 8811 { 8812 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; 8813 test_array [0] = 0 8814 8815 ; 8816 return 0; 8817 } 8818 _ACEOF 8819 rm -f conftest.$ac_objext 8820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8821 (eval $ac_compile) 2>conftest.er1 8822 ac_status=$? 8823 grep -v '^ *+' conftest.er1 >conftest.err 8824 rm -f conftest.er1 8825 cat conftest.err >&5 8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8827 (exit $ac_status); } && 8828 { ac_try='test -z "$ac_c_werror_flag" 8829 || test ! -s conftest.err' 8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8831 (eval $ac_try) 2>&5 8832 ac_status=$? 8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8834 (exit $ac_status); }; } && 8835 { ac_try='test -s conftest.$ac_objext' 8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8837 (eval $ac_try) 2>&5 8838 ac_status=$? 8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8840 (exit $ac_status); }; }; then 8841 ac_lo=0 ac_mid=0 8842 while :; do 8843 cat >conftest.$ac_ext <<_ACEOF 8844 /* confdefs.h. */ 8845 _ACEOF 8846 cat confdefs.h >>conftest.$ac_ext 8847 cat >>conftest.$ac_ext <<_ACEOF 8848 /* end confdefs.h. */ 8849 $ac_includes_default 8850 int 8851 main () 8852 { 8853 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; 8854 test_array [0] = 0 8855 8856 ; 8857 return 0; 8858 } 8859 _ACEOF 8860 rm -f conftest.$ac_objext 8861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8862 (eval $ac_compile) 2>conftest.er1 8863 ac_status=$? 8864 grep -v '^ *+' conftest.er1 >conftest.err 8865 rm -f conftest.er1 8866 cat conftest.err >&5 8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8868 (exit $ac_status); } && 8869 { ac_try='test -z "$ac_c_werror_flag" 8870 || test ! -s conftest.err' 8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8872 (eval $ac_try) 2>&5 8873 ac_status=$? 8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 (exit $ac_status); }; } && 8876 { ac_try='test -s conftest.$ac_objext' 8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8878 (eval $ac_try) 2>&5 8879 ac_status=$? 8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8881 (exit $ac_status); }; }; then 8882 ac_hi=$ac_mid; break 8883 else 8884 echo "$as_me: failed program was:" >&5 8885 sed 's/^/| /' conftest.$ac_ext >&5 8886 8887 ac_lo=`expr $ac_mid + 1` 8888 if test $ac_lo -le $ac_mid; then 8889 ac_lo= ac_hi= 8890 break 8891 fi 8892 ac_mid=`expr 2 '*' $ac_mid + 1` 8893 fi 8894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8895 done 8896 else 8897 echo "$as_me: failed program was:" >&5 8898 sed 's/^/| /' conftest.$ac_ext >&5 8899 8900 cat >conftest.$ac_ext <<_ACEOF 8901 /* confdefs.h. */ 8902 _ACEOF 8903 cat confdefs.h >>conftest.$ac_ext 8904 cat >>conftest.$ac_ext <<_ACEOF 8905 /* end confdefs.h. */ 8906 $ac_includes_default 8907 int 8908 main () 8909 { 8910 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; 8911 test_array [0] = 0 8912 8913 ; 8914 return 0; 8915 } 8916 _ACEOF 8917 rm -f conftest.$ac_objext 8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8919 (eval $ac_compile) 2>conftest.er1 8920 ac_status=$? 8921 grep -v '^ *+' conftest.er1 >conftest.err 8922 rm -f conftest.er1 8923 cat conftest.err >&5 8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8925 (exit $ac_status); } && 8926 { ac_try='test -z "$ac_c_werror_flag" 8927 || test ! -s conftest.err' 8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8929 (eval $ac_try) 2>&5 8930 ac_status=$? 8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8932 (exit $ac_status); }; } && 8933 { ac_try='test -s conftest.$ac_objext' 8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8935 (eval $ac_try) 2>&5 8936 ac_status=$? 8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8938 (exit $ac_status); }; }; then 8939 ac_hi=-1 ac_mid=-1 8940 while :; do 8941 cat >conftest.$ac_ext <<_ACEOF 8942 /* confdefs.h. */ 8943 _ACEOF 8944 cat confdefs.h >>conftest.$ac_ext 8945 cat >>conftest.$ac_ext <<_ACEOF 8946 /* end confdefs.h. */ 8947 $ac_includes_default 8948 int 8949 main () 8950 { 8951 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; 8952 test_array [0] = 0 8953 8954 ; 8955 return 0; 8956 } 8957 _ACEOF 8958 rm -f conftest.$ac_objext 8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8960 (eval $ac_compile) 2>conftest.er1 8961 ac_status=$? 8962 grep -v '^ *+' conftest.er1 >conftest.err 8963 rm -f conftest.er1 8964 cat conftest.err >&5 8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8966 (exit $ac_status); } && 8967 { ac_try='test -z "$ac_c_werror_flag" 8968 || test ! -s conftest.err' 8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8970 (eval $ac_try) 2>&5 8971 ac_status=$? 8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8973 (exit $ac_status); }; } && 8974 { ac_try='test -s conftest.$ac_objext' 8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8976 (eval $ac_try) 2>&5 8977 ac_status=$? 8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8979 (exit $ac_status); }; }; then 8980 ac_lo=$ac_mid; break 8981 else 8982 echo "$as_me: failed program was:" >&5 8983 sed 's/^/| /' conftest.$ac_ext >&5 8984 8985 ac_hi=`expr '(' $ac_mid ')' - 1` 8986 if test $ac_mid -le $ac_hi; then 8987 ac_lo= ac_hi= 8988 break 8989 fi 8990 ac_mid=`expr 2 '*' $ac_mid` 8991 fi 8992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8993 done 8994 else 8995 echo "$as_me: failed program was:" >&5 8996 sed 's/^/| /' conftest.$ac_ext >&5 8997 8998 ac_lo= ac_hi= 8999 fi 9000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9001 fi 9002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9003 # Binary search between lo and hi bounds. 9004 while test "x$ac_lo" != "x$ac_hi"; do 9005 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9006 cat >conftest.$ac_ext <<_ACEOF 9007 /* confdefs.h. */ 9008 _ACEOF 9009 cat confdefs.h >>conftest.$ac_ext 9010 cat >>conftest.$ac_ext <<_ACEOF 9011 /* end confdefs.h. */ 9012 $ac_includes_default 9013 int 9014 main () 9015 { 9016 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; 9017 test_array [0] = 0 9018 9019 ; 9020 return 0; 9021 } 9022 _ACEOF 9023 rm -f conftest.$ac_objext 9024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9025 (eval $ac_compile) 2>conftest.er1 9026 ac_status=$? 9027 grep -v '^ *+' conftest.er1 >conftest.err 9028 rm -f conftest.er1 9029 cat conftest.err >&5 9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9031 (exit $ac_status); } && 9032 { ac_try='test -z "$ac_c_werror_flag" 9033 || test ! -s conftest.err' 9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9035 (eval $ac_try) 2>&5 9036 ac_status=$? 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9038 (exit $ac_status); }; } && 9039 { ac_try='test -s conftest.$ac_objext' 9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9041 (eval $ac_try) 2>&5 9042 ac_status=$? 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 (exit $ac_status); }; }; then 9045 ac_hi=$ac_mid 9046 else 9047 echo "$as_me: failed program was:" >&5 9048 sed 's/^/| /' conftest.$ac_ext >&5 9049 9050 ac_lo=`expr '(' $ac_mid ')' + 1` 9051 fi 9052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9053 done 9054 case $ac_lo in 9055 ?*) ac_cv_sizeof_double=$ac_lo;; 9056 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 9057 See \`config.log' for more details." >&5 9058 echo "$as_me: error: cannot compute sizeof (double), 77 9059 See \`config.log' for more details." >&2;} 9060 { (exit 1); exit 1; }; } ;; 9061 esac 9062 else 9063 if test "$cross_compiling" = yes; then 9064 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9065 See \`config.log' for more details." >&5 9066 echo "$as_me: error: cannot run test program while cross compiling 9067 See \`config.log' for more details." >&2;} 9068 { (exit 1); exit 1; }; } 9069 else 9070 cat >conftest.$ac_ext <<_ACEOF 9071 /* confdefs.h. */ 9072 _ACEOF 9073 cat confdefs.h >>conftest.$ac_ext 9074 cat >>conftest.$ac_ext <<_ACEOF 9075 /* end confdefs.h. */ 9076 $ac_includes_default 9077 long longval () { return (long) (sizeof (double)); } 9078 unsigned long ulongval () { return (long) (sizeof (double)); } 3476 9079 #include <stdio.h> 3477 main() 9080 #include <stdlib.h> 9081 int 9082 main () 3478 9083 { 3479 FILE *f=fopen("conftestval", "w"); 3480 if (!f) exit(1); 3481 fprintf(f, "%d\n", sizeof(double)); 3482 exit(0); 9084 9085 FILE *f = fopen ("conftest.val", "w"); 9086 if (! f) 9087 exit (1); 9088 if (((long) (sizeof (double))) < 0) 9089 { 9090 long i = longval (); 9091 if (i != ((long) (sizeof (double)))) 9092 exit (1); 9093 fprintf (f, "%ld\n", i); 9094 } 9095 else 9096 { 9097 unsigned long i = ulongval (); 9098 if (i != ((long) (sizeof (double)))) 9099 exit (1); 9100 fprintf (f, "%lu\n", i); 9101 } 9102 exit (ferror (f) || fclose (f) != 0); 9103 9104 ; 9105 return 0; 3483 9106 } 3484 EOF 3485 if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3486 then 3487 ac_cv_sizeof_double=`cat conftestval` 3488 else 3489 echo "configure: failed program was:" >&5 3490 cat conftest.$ac_ext >&5 3491 rm -fr conftest* 9107 _ACEOF 9108 rm -f conftest$ac_exeext 9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9110 (eval $ac_link) 2>&5 9111 ac_status=$? 9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9115 (eval $ac_try) 2>&5 9116 ac_status=$? 9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9118 (exit $ac_status); }; }; then 9119 ac_cv_sizeof_double=`cat conftest.val` 9120 else 9121 echo "$as_me: program exited with status $ac_status" >&5 9122 echo "$as_me: failed program was:" >&5 9123 sed 's/^/| /' conftest.$ac_ext >&5 9124 9125 ( exit $ac_status ) 9126 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 9127 See \`config.log' for more details." >&5 9128 echo "$as_me: error: cannot compute sizeof (double), 77 9129 See \`config.log' for more details." >&2;} 9130 { (exit 1); exit 1; }; } 9131 fi 9132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9133 fi 9134 fi 9135 rm -f conftest.val 9136 else 3492 9137 ac_cv_sizeof_double=0 3493 9138 fi 3494 rm -fr conftest* 3495 fi 3496 3497 fi 3498 echo "$ac_t""$ac_cv_sizeof_double" 1>&6 3499 cat >> confdefs.h <<EOF 9139 fi 9140 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 9141 echo "${ECHO_T}$ac_cv_sizeof_double" >&6 9142 cat >>confdefs.h <<_ACEOF 3500 9143 #define SIZEOF_DOUBLE $ac_cv_sizeof_double 3501 EOF 3502 3503 3504 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3505 echo "configure:3506: checking whether byte ordering is bigendian" >&5 3506 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 3507 echo $ac_n "(cached) $ac_c" 1>&6 3508 else 3509 ac_cv_c_bigendian=unknown 3510 # See if sys/param.h defines the BYTE_ORDER macro. 3511 cat > conftest.$ac_ext <<EOF 3512 #line 3513 "configure" 3513 #include "confdefs.h" 9144 _ACEOF 9145 9146 9147 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 9148 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 9149 if test "${ac_cv_c_bigendian+set}" = set; then 9150 echo $ECHO_N "(cached) $ECHO_C" >&6 9151 else 9152 # See if sys/param.h defines the BYTE_ORDER macro. 9153 cat >conftest.$ac_ext <<_ACEOF 9154 /* confdefs.h. */ 9155 _ACEOF 9156 cat confdefs.h >>conftest.$ac_ext 9157 cat >>conftest.$ac_ext <<_ACEOF 9158 /* end confdefs.h. */ 3514 9159 #include <sys/types.h> 3515 9160 #include <sys/param.h> 3516 int main() { 3517 9161 9162 int 9163 main () 9164 { 3518 9165 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3519 9166 bogus endian macros 3520 9167 #endif 3521 ; return 0; } 3522 EOF 3523 if { (eval echo configure:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3524 rm -rf conftest* 9168 9169 ; 9170 return 0; 9171 } 9172 _ACEOF 9173 rm -f conftest.$ac_objext 9174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9175 (eval $ac_compile) 2>conftest.er1 9176 ac_status=$? 9177 grep -v '^ *+' conftest.er1 >conftest.err 9178 rm -f conftest.er1 9179 cat conftest.err >&5 9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9181 (exit $ac_status); } && 9182 { ac_try='test -z "$ac_c_werror_flag" 9183 || test ! -s conftest.err' 9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9185 (eval $ac_try) 2>&5 9186 ac_status=$? 9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9188 (exit $ac_status); }; } && 9189 { ac_try='test -s conftest.$ac_objext' 9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9191 (eval $ac_try) 2>&5 9192 ac_status=$? 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 (exit $ac_status); }; }; then 3525 9195 # It does; now see whether it defined to BIG_ENDIAN or not. 3526 cat > conftest.$ac_ext <<EOF 3527 #line 3528 "configure" 3528 #include "confdefs.h" 9196 cat >conftest.$ac_ext <<_ACEOF 9197 /* confdefs.h. */ 9198 _ACEOF 9199 cat confdefs.h >>conftest.$ac_ext 9200 cat >>conftest.$ac_ext <<_ACEOF 9201 /* end confdefs.h. */ 3529 9202 #include <sys/types.h> 3530 9203 #include <sys/param.h> 3531 int main() { 3532 9204 9205 int 9206 main () 9207 { 3533 9208 #if BYTE_ORDER != BIG_ENDIAN 3534 9209 not big endian 3535 9210 #endif 3536 ; return 0; } 3537 EOF 3538 if { (eval echo configure:3539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3539 rm -rf conftest* 9211 9212 ; 9213 return 0; 9214 } 9215 _ACEOF 9216 rm -f conftest.$ac_objext 9217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9218 (eval $ac_compile) 2>conftest.er1 9219 ac_status=$? 9220 grep -v '^ *+' conftest.er1 >conftest.err 9221 rm -f conftest.er1 9222 cat conftest.err >&5 9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 (exit $ac_status); } && 9225 { ac_try='test -z "$ac_c_werror_flag" 9226 || test ! -s conftest.err' 9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9228 (eval $ac_try) 2>&5 9229 ac_status=$? 9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9231 (exit $ac_status); }; } && 9232 { ac_try='test -s conftest.$ac_objext' 9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9234 (eval $ac_try) 2>&5 9235 ac_status=$? 9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9237 (exit $ac_status); }; }; then 3540 9238 ac_cv_c_bigendian=yes 3541 9239 else 3542 echo "configure: failed program was:" >&5 3543 cat conftest.$ac_ext >&5 3544 rm -rf conftest* 3545 ac_cv_c_bigendian=no 3546 fi 3547 rm -f conftest* 3548 else 3549 echo "configure: failed program was:" >&5 3550 cat conftest.$ac_ext >&5 3551 fi 3552 rm -f conftest* 3553 if test $ac_cv_c_bigendian = unknown; then 9240 echo "$as_me: failed program was:" >&5 9241 sed 's/^/| /' conftest.$ac_ext >&5 9242 9243 ac_cv_c_bigendian=no 9244 fi 9245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9246 else 9247 echo "$as_me: failed program was:" >&5 9248 sed 's/^/| /' conftest.$ac_ext >&5 9249 9250 # It does not; compile a test program. 3554 9251 if test "$cross_compiling" = yes; then 3555 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 3556 else 3557 cat > conftest.$ac_ext <<EOF 3558 #line 3559 "configure" 3559 #include "confdefs.h" 3560 main () { 9252 # try to guess the endianness by grepping values into an object file 9253 ac_cv_c_bigendian=unknown 9254 cat >conftest.$ac_ext <<_ACEOF 9255 /* confdefs.h. */ 9256 _ACEOF 9257 cat confdefs.h >>conftest.$ac_ext 9258 cat >>conftest.$ac_ext <<_ACEOF 9259 /* end confdefs.h. */ 9260 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9261 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9262 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 9263 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9264 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9265 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 9266 int 9267 main () 9268 { 9269 _ascii (); _ebcdic (); 9270 ; 9271 return 0; 9272 } 9273 _ACEOF 9274 rm -f conftest.$ac_objext 9275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9276 (eval $ac_compile) 2>conftest.er1 9277 ac_status=$? 9278 grep -v '^ *+' conftest.er1 >conftest.err 9279 rm -f conftest.er1 9280 cat conftest.err >&5 9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9282 (exit $ac_status); } && 9283 { ac_try='test -z "$ac_c_werror_flag" 9284 || test ! -s conftest.err' 9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9286 (eval $ac_try) 2>&5 9287 ac_status=$? 9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9289 (exit $ac_status); }; } && 9290 { ac_try='test -s conftest.$ac_objext' 9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9292 (eval $ac_try) 2>&5 9293 ac_status=$? 9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9295 (exit $ac_status); }; }; then 9296 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 9297 ac_cv_c_bigendian=yes 9298 fi 9299 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9300 if test "$ac_cv_c_bigendian" = unknown; then 9301 ac_cv_c_bigendian=no 9302 else 9303 # finding both strings is unlikely to happen, but who knows? 9304 ac_cv_c_bigendian=unknown 9305 fi 9306 fi 9307 else 9308 echo "$as_me: failed program was:" >&5 9309 sed 's/^/| /' conftest.$ac_ext >&5 9310 9311 fi 9312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9313 else 9314 cat >conftest.$ac_ext <<_ACEOF 9315 /* confdefs.h. */ 9316 _ACEOF 9317 cat confdefs.h >>conftest.$ac_ext 9318 cat >>conftest.$ac_ext <<_ACEOF 9319 /* end confdefs.h. */ 9320 int 9321 main () 9322 { 3561 9323 /* Are we little or big endian? From Harbison&Steele. */ 3562 9324 union … … 3568 9330 exit (u.c[sizeof (long) - 1] == 1); 3569 9331 } 3570 EOF 3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3572 then 9332 _ACEOF 9333 rm -f conftest$ac_exeext 9334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9335 (eval $ac_link) 2>&5 9336 ac_status=$? 9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9340 (eval $ac_try) 2>&5 9341 ac_status=$? 9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9343 (exit $ac_status); }; }; then 3573 9344 ac_cv_c_bigendian=no 3574 9345 else 3575 echo "configure: failed program was:" >&5 3576 cat conftest.$ac_ext >&5 3577 rm -fr conftest* 3578 ac_cv_c_bigendian=yes 3579 fi 3580 rm -fr conftest* 3581 fi 3582 3583 fi 3584 fi 3585 3586 echo "$ac_t""$ac_cv_c_bigendian" 1>&6 3587 if test $ac_cv_c_bigendian = yes; then 3588 cat >> confdefs.h <<\EOF 9346 echo "$as_me: program exited with status $ac_status" >&5 9347 echo "$as_me: failed program was:" >&5 9348 sed 's/^/| /' conftest.$ac_ext >&5 9349 9350 ( exit $ac_status ) 9351 ac_cv_c_bigendian=yes 9352 fi 9353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9354 fi 9355 fi 9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9357 fi 9358 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 9359 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 9360 case $ac_cv_c_bigendian in 9361 yes) 9362 9363 cat >>confdefs.h <<\_ACEOF 3589 9364 #define WORDS_BIGENDIAN 1 3590 EOF 3591 3592 fi 9365 _ACEOF 9366 ;; 9367 no) 9368 ;; 9369 *) 9370 { { echo "$as_me:$LINENO: error: unknown endianness 9371 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 9372 echo "$as_me: error: unknown endianness 9373 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 9374 { (exit 1); exit 1; }; } ;; 9375 esac 3593 9376 3594 9377 if test "$ac_cv_sizeof_int" != 4; then 3595 { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; } 9378 { { echo "$as_me:$LINENO: error: need int to be four bytes long" >&5 9379 echo "$as_me: error: need int to be four bytes long" >&2;} 9380 { (exit 1); exit 1; }; } 3596 9381 fi 3597 9382 if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then 3598 { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; } 9383 { { echo "$as_me:$LINENO: error: need equal sizes for long and void*" >&5 9384 echo "$as_me: error: need equal sizes for long and void*" >&2;} 9385 { (exit 1); exit 1; }; } 3599 9386 fi 3600 9387 if test "$ac_cv_sizeof_double" != 8; then 3601 { echo "configure: error: need double to b 8 bytes long" 1>&2; exit 1; } 9388 { { echo "$as_me:$LINENO: error: need double to b 8 bytes long" >&5 9389 echo "$as_me: error: need double to b 8 bytes long" >&2;} 9390 { (exit 1); exit 1; }; } 3602 9391 fi 3603 9392 if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then 3604 { echo "configure: error: need void* to be 4 or 8 bytes long" 1>&2; exit 1; } 3605 fi 9393 { { echo "$as_me:$LINENO: error: need void* to be 4 or 8 bytes long" >&5 9394 echo "$as_me: error: need void* to be 4 or 8 bytes long" >&2;} 9395 { (exit 1); exit 1; }; } 9396 fi 9397 3606 9398 3607 9399 # Check whether --with-rootdir or --without-rootdir was given. 3608 9400 if test "${with_rootdir+set}" = set; then 3609 9401 withval="$with_rootdir" 3610 : 3611 fi 9402 9403 fi; 3612 9404 3613 9405 # Check whether --with-lex or --without-lex was given. 3614 9406 if test "${with_lex+set}" = set; then 3615 9407 withval="$with_lex" 3616 : 3617 fi 9408 9409 fi; 3618 9410 3619 9411 # Check whether --with-readline or --without-readline was given. 3620 9412 if test "${with_readline+set}" = set; then 3621 9413 withval="$with_readline" 3622 : 3623 fi 9414 9415 fi; 3624 9416 3625 9417 # Check whether --with-MP or --without-MP was given. 3626 9418 if test "${with_MP+set}" = set; then 3627 9419 withval="$with_MP" 3628 : 3629 fi 9420 9421 fi; 3630 9422 3631 9423 # Check whether --with-dbm or --without-dbm was given. 3632 9424 if test "${with_dbm+set}" = set; then 3633 9425 withval="$with_dbm" 3634 : 3635 fi 9426 9427 fi; 3636 9428 3637 9429 # Check whether --with-factory or --without-factory was given. 3638 9430 if test "${with_factory+set}" = set; then 3639 9431 withval="$with_factory" 3640 : 3641 fi 9432 9433 fi; 3642 9434 3643 9435 # Check whether --with-libfac or --without-libfac was given. 3644 9436 if test "${with_libfac+set}" = set; then 3645 9437 withval="$with_libfac" 3646 : 3647 fi 9438 9439 fi; 3648 9440 3649 9441 # Check whether --with-namespaces or --without-namespaces was given. 3650 9442 if test "${with_namespaces+set}" = set; then 3651 9443 withval="$with_namespaces" 3652 : 3653 fi 9444 9445 fi; 3654 9446 3655 9447 # Check whether --with-dl or --without-dl was given. 3656 9448 if test "${with_dl+set}" = set; then 3657 9449 withval="$with_dl" 3658 : 3659 fi 9450 9451 fi; 3660 9452 3661 9453 # Check whether --with-dynamic-modules or --without-dynamic-modules was given. 3662 9454 if test "${with_dynamic_modules+set}" = set; then 3663 9455 withval="$with_dynamic_modules" 3664 : 3665 fi 3666 9456 9457 fi; 9458 3667 9459 # Check whether --with-dynamic-kernel or --without-dynamic-kernel was given. 3668 9460 if test "${with_dynamic_kernel+set}" = set; then 3669 9461 withval="$with_dynamic_kernel" 3670 : 3671 fi 9462 9463 fi; 3672 9464 3673 9465 # Check whether --with-apint or --without-apint was given. 3674 9466 if test "${with_apint+set}" = set; then 3675 9467 withval="$with_apint" 3676 : 3677 fi 9468 9469 fi; 3678 9470 3679 9471 # Check whether --with-Plural or --without-Plural was given. 3680 9472 if test "${with_Plural+set}" = set; then 3681 9473 withval="$with_Plural" 3682 : 3683 fi 9474 9475 fi; 3684 9476 3685 9477 # Check whether --with-NTL or --without-NTL was given. 3686 9478 if test "${with_NTL+set}" = set; then 3687 9479 withval="$with_NTL" 3688 : 9480 3689 9481 else 3690 9482 with_NTL=yes 3691 fi 3692 3693 3694 3695 3696 echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6 3697 echo "configure:3698: checking whether to use dynamic linking" >&5 9483 fi; 9484 9485 9486 9487 echo "$as_me:$LINENO: checking whether to use dynamic linking" >&5 9488 echo $ECHO_N "checking whether to use dynamic linking... $ECHO_C" >&6 3698 9489 if test "$with_dl" != no && test "$ac_lib_dl" = yes; then 3699 cat >> confdefs.h <<\EOF9490 cat >>confdefs.h <<\_ACEOF 3700 9491 #define HAVE_DL 1 3701 EOF9492 _ACEOF 3702 9493 3703 9494 ac_have_dl=yes 3704 echo "$ac_t""yes" 1>&6 3705 else 3706 echo "$ac_t""no" 1>&6 3707 fi 3708 3709 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 3710 echo "configure:3711: checking for tgetent in -lncurses" >&5 3711 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 3712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3713 echo $ac_n "(cached) $ac_c" 1>&6 3714 else 3715 ac_save_LIBS="$LIBS" 9495 echo "$as_me:$LINENO: result: yes" >&5 9496 echo "${ECHO_T}yes" >&6 9497 else 9498 echo "$as_me:$LINENO: result: no" >&5 9499 echo "${ECHO_T}no" >&6 9500 fi 9501 9502 9503 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 9504 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 9505 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then 9506 echo $ECHO_N "(cached) $ECHO_C" >&6 9507 else 9508 ac_check_lib_save_LIBS=$LIBS 3716 9509 LIBS="-lncurses $LIBS" 3717 cat > conftest.$ac_ext <<EOF 3718 #line 3719 "configure" 3719 #include "confdefs.h" 3720 /* Override any gcc2 internal prototype to avoid an error. */ 3721 /* We use char because int might match the return type of a gcc2 3722 builtin and then its argument prototype would still apply. */ 3723 char tgetent(); 3724 3725 int main() { 3726 tgetent() 3727 ; return 0; } 3728 EOF 3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3730 rm -rf conftest* 3731 eval "ac_cv_lib_$ac_lib_var=yes" 3732 else 3733 echo "configure: failed program was:" >&5 3734 cat conftest.$ac_ext >&5 3735 rm -rf conftest* 3736 eval "ac_cv_lib_$ac_lib_var=no" 3737 fi 3738 rm -f conftest* 3739 LIBS="$ac_save_LIBS" 3740 3741 fi 3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3743 echo "$ac_t""yes" 1>&6 3744 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3746 cat >> confdefs.h <<EOF 3747 #define $ac_tr_lib 1 3748 EOF 3749 3750 LIBS="-lncurses $LIBS" 3751 3752 else 3753 echo "$ac_t""no" 1>&6 3754 \ 3755 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 3756 echo "configure:3757: checking for tgetent in -lcurses" >&5 3757 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 3758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3759 echo $ac_n "(cached) $ac_c" 1>&6 3760 else 3761 ac_save_LIBS="$LIBS" 3762 LIBS="-lcurses $LIBS" 3763 cat > conftest.$ac_ext <<EOF 3764 #line 3765 "configure" 3765 #include "confdefs.h" 3766 /* Override any gcc2 internal prototype to avoid an error. */ 3767 /* We use char because int might match the return type of a gcc2 3768 builtin and then its argument prototype would still apply. */ 3769 char tgetent(); 3770 3771 int main() { 3772 tgetent() 3773 ; return 0; } 3774 EOF 3775 if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3776 rm -rf conftest* 3777 eval "ac_cv_lib_$ac_lib_var=yes" 3778 else 3779 echo "configure: failed program was:" >&5 3780 cat conftest.$ac_ext >&5 3781 rm -rf conftest* 3782 eval "ac_cv_lib_$ac_lib_var=no" 3783 fi 3784 rm -f conftest* 3785 LIBS="$ac_save_LIBS" 3786 3787 fi 3788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3789 echo "$ac_t""yes" 1>&6 3790 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \ 3791 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3792 cat >> confdefs.h <<EOF 3793 #define $ac_tr_lib 1 3794 EOF 3795 3796 LIBS="-lcurses $LIBS" 3797 3798 else 3799 echo "$ac_t""no" 1>&6 3800 \ 3801 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 3802 echo "configure:3803: checking for tgetent in -ltermcap" >&5 3803 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 3804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3805 echo $ac_n "(cached) $ac_c" 1>&6 3806 else 3807 ac_save_LIBS="$LIBS" 3808 LIBS="-ltermcap $LIBS" 3809 cat > conftest.$ac_ext <<EOF 3810 #line 3811 "configure" 3811 #include "confdefs.h" 3812 /* Override any gcc2 internal prototype to avoid an error. */ 3813 /* We use char because int might match the return type of a gcc2 3814 builtin and then its argument prototype would still apply. */ 3815 char tgetent(); 3816 3817 int main() { 3818 tgetent() 3819 ; return 0; } 3820 EOF 3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3822 rm -rf conftest* 3823 eval "ac_cv_lib_$ac_lib_var=yes" 3824 else 3825 echo "configure: failed program was:" >&5 3826 cat conftest.$ac_ext >&5 3827 rm -rf conftest* 3828 eval "ac_cv_lib_$ac_lib_var=no" 3829 fi 3830 rm -f conftest* 3831 LIBS="$ac_save_LIBS" 3832 3833 fi 3834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3835 echo "$ac_t""yes" 1>&6 3836 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \ 3837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3838 cat >> confdefs.h <<EOF 3839 #define $ac_tr_lib 1 3840 EOF 3841 3842 LIBS="-ltermcap $LIBS" 3843 3844 else 3845 echo "$ac_t""no" 1>&6 3846 fi 3847 3848 fi 3849 3850 fi 3851 3852 3853 # readline 3854 if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then 3855 echo "configure: warning: can not build dynamic readline without dynamic linking" 1>&2 3856 with_readline=static 3857 fi 3858 3859 3860 if test "$with_readline" != dynamic && test "$with_readline" != no; then 3861 3862 ac_ext=C 3863 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3864 ac_cpp='$CXXCPP $CPPFLAGS' 3865 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3866 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3867 cross_compiling=$ac_cv_prog_cxx_cross 3868 3869 echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 3870 echo "configure:3871: checking for rl_abort in -lreadline" >&5 3871 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` 3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3873 echo $ac_n "(cached) $ac_c" 1>&6 3874 else 3875 ac_save_LIBS="$LIBS" 3876 LIBS="-lreadline $LIBS" 3877 cat > conftest.$ac_ext <<EOF 3878 #line 3879 "configure" 3879 #include "confdefs.h" 9510 cat >conftest.$ac_ext <<_ACEOF 9511 /* confdefs.h. */ 9512 _ACEOF 9513 cat confdefs.h >>conftest.$ac_ext 9514 cat >>conftest.$ac_ext <<_ACEOF 9515 /* end confdefs.h. */ 9516 3880 9517 /* Override any gcc2 internal prototype to avoid an error. */ 3881 9518 #ifdef __cplusplus … … 3883 9520 #endif 3884 9521 /* We use char because int might match the return type of a gcc2 3885 builtin and then its argument prototype would still apply. */ 3886 char rl_abort(); 3887 3888 int main() { 3889 rl_abort() 3890 ; return 0; } 3891 EOF 3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3893 rm -rf conftest* 3894 eval "ac_cv_lib_$ac_lib_var=yes" 3895 else 3896 echo "configure: failed program was:" >&5 3897 cat conftest.$ac_ext >&5 3898 rm -rf conftest* 3899 eval "ac_cv_lib_$ac_lib_var=no" 3900 fi 3901 rm -f conftest* 3902 LIBS="$ac_save_LIBS" 3903 3904 fi 3905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3906 echo "$ac_t""yes" 1>&6 3907 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3909 cat >> confdefs.h <<EOF 3910 #define $ac_tr_lib 1 3911 EOF 9522 builtin and then its argument prototype would still apply. */ 9523 char tgetent (); 9524 int 9525 main () 9526 { 9527 tgetent (); 9528 ; 9529 return 0; 9530 } 9531 _ACEOF 9532 rm -f conftest.$ac_objext conftest$ac_exeext 9533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9534 (eval $ac_link) 2>conftest.er1 9535 ac_status=$? 9536 grep -v '^ *+' conftest.er1 >conftest.err 9537 rm -f conftest.er1 9538 cat conftest.err >&5 9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9540 (exit $ac_status); } && 9541 { ac_try='test -z "$ac_c_werror_flag" 9542 || test ! -s conftest.err' 9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9544 (eval $ac_try) 2>&5 9545 ac_status=$? 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); }; } && 9548 { ac_try='test -s conftest$ac_exeext' 9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9550 (eval $ac_try) 2>&5 9551 ac_status=$? 9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9553 (exit $ac_status); }; }; then 9554 ac_cv_lib_ncurses_tgetent=yes 9555 else 9556 echo "$as_me: failed program was:" >&5 9557 sed 's/^/| /' conftest.$ac_ext >&5 9558 9559 ac_cv_lib_ncurses_tgetent=no 9560 fi 9561 rm -f conftest.err conftest.$ac_objext \ 9562 conftest$ac_exeext conftest.$ac_ext 9563 LIBS=$ac_check_lib_save_LIBS 9564 fi 9565 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 9566 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 9567 if test $ac_cv_lib_ncurses_tgetent = yes; then 9568 cat >>confdefs.h <<_ACEOF 9569 #define HAVE_LIBNCURSES 1 9570 _ACEOF 9571 9572 LIBS="-lncurses $LIBS" 9573 9574 else 9575 \ 9576 9577 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 9578 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 9579 if test "${ac_cv_lib_curses_tgetent+set}" = set; then 9580 echo $ECHO_N "(cached) $ECHO_C" >&6 9581 else 9582 ac_check_lib_save_LIBS=$LIBS 9583 LIBS="-lcurses $LIBS" 9584 cat >conftest.$ac_ext <<_ACEOF 9585 /* confdefs.h. */ 9586 _ACEOF 9587 cat confdefs.h >>conftest.$ac_ext 9588 cat >>conftest.$ac_ext <<_ACEOF 9589 /* end confdefs.h. */ 9590 9591 /* Override any gcc2 internal prototype to avoid an error. */ 9592 #ifdef __cplusplus 9593 extern "C" 9594 #endif 9595 /* We use char because int might match the return type of a gcc2 9596 builtin and then its argument prototype would still apply. */ 9597 char tgetent (); 9598 int 9599 main () 9600 { 9601 tgetent (); 9602 ; 9603 return 0; 9604 } 9605 _ACEOF 9606 rm -f conftest.$ac_objext conftest$ac_exeext 9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9608 (eval $ac_link) 2>conftest.er1 9609 ac_status=$? 9610 grep -v '^ *+' conftest.er1 >conftest.err 9611 rm -f conftest.er1 9612 cat conftest.err >&5 9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9614 (exit $ac_status); } && 9615 { ac_try='test -z "$ac_c_werror_flag" 9616 || test ! -s conftest.err' 9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9618 (eval $ac_try) 2>&5 9619 ac_status=$? 9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9621 (exit $ac_status); }; } && 9622 { ac_try='test -s conftest$ac_exeext' 9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9624 (eval $ac_try) 2>&5 9625 ac_status=$? 9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9627 (exit $ac_status); }; }; then 9628 ac_cv_lib_curses_tgetent=yes 9629 else 9630 echo "$as_me: failed program was:" >&5 9631 sed 's/^/| /' conftest.$ac_ext >&5 9632 9633 ac_cv_lib_curses_tgetent=no 9634 fi 9635 rm -f conftest.err conftest.$ac_objext \ 9636 conftest$ac_exeext conftest.$ac_ext 9637 LIBS=$ac_check_lib_save_LIBS 9638 fi 9639 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 9640 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 9641 if test $ac_cv_lib_curses_tgetent = yes; then 9642 cat >>confdefs.h <<_ACEOF 9643 #define HAVE_LIBCURSES 1 9644 _ACEOF 9645 9646 LIBS="-lcurses $LIBS" 9647 9648 else 9649 \ 9650 9651 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 9652 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 9653 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then 9654 echo $ECHO_N "(cached) $ECHO_C" >&6 9655 else 9656 ac_check_lib_save_LIBS=$LIBS 9657 LIBS="-ltermcap $LIBS" 9658 cat >conftest.$ac_ext <<_ACEOF 9659 /* confdefs.h. */ 9660 _ACEOF 9661 cat confdefs.h >>conftest.$ac_ext 9662 cat >>conftest.$ac_ext <<_ACEOF 9663 /* end confdefs.h. */ 9664 9665 /* Override any gcc2 internal prototype to avoid an error. */ 9666 #ifdef __cplusplus 9667 extern "C" 9668 #endif 9669 /* We use char because int might match the return type of a gcc2 9670 builtin and then its argument prototype would still apply. */ 9671 char tgetent (); 9672 int 9673 main () 9674 { 9675 tgetent (); 9676 ; 9677 return 0; 9678 } 9679 _ACEOF 9680 rm -f conftest.$ac_objext conftest$ac_exeext 9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9682 (eval $ac_link) 2>conftest.er1 9683 ac_status=$? 9684 grep -v '^ *+' conftest.er1 >conftest.err 9685 rm -f conftest.er1 9686 cat conftest.err >&5 9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9688 (exit $ac_status); } && 9689 { ac_try='test -z "$ac_c_werror_flag" 9690 || test ! -s conftest.err' 9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9692 (eval $ac_try) 2>&5 9693 ac_status=$? 9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9695 (exit $ac_status); }; } && 9696 { ac_try='test -s conftest$ac_exeext' 9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9698 (eval $ac_try) 2>&5 9699 ac_status=$? 9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9701 (exit $ac_status); }; }; then 9702 ac_cv_lib_termcap_tgetent=yes 9703 else 9704 echo "$as_me: failed program was:" >&5 9705 sed 's/^/| /' conftest.$ac_ext >&5 9706 9707 ac_cv_lib_termcap_tgetent=no 9708 fi 9709 rm -f conftest.err conftest.$ac_objext \ 9710 conftest$ac_exeext conftest.$ac_ext 9711 LIBS=$ac_check_lib_save_LIBS 9712 fi 9713 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 9714 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 9715 if test $ac_cv_lib_termcap_tgetent = yes; then 9716 cat >>confdefs.h <<_ACEOF 9717 #define HAVE_LIBTERMCAP 1 9718 _ACEOF 9719 9720 LIBS="-ltermcap $LIBS" 9721 9722 fi 9723 9724 fi 9725 9726 fi 9727 9728 9729 # readline 9730 if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then 9731 { echo "$as_me:$LINENO: WARNING: can not build dynamic readline without dynamic linking" >&5 9732 echo "$as_me: WARNING: can not build dynamic readline without dynamic linking" >&2;} 9733 with_readline=static 9734 fi 9735 9736 9737 if test "$with_readline" != dynamic && test "$with_readline" != no; then 9738 9739 9740 ac_ext=cc 9741 ac_cpp='$CXXCPP $CPPFLAGS' 9742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9745 9746 9747 echo "$as_me:$LINENO: checking for rl_abort in -lreadline" >&5 9748 echo $ECHO_N "checking for rl_abort in -lreadline... $ECHO_C" >&6 9749 if test "${ac_cv_lib_readline_rl_abort+set}" = set; then 9750 echo $ECHO_N "(cached) $ECHO_C" >&6 9751 else 9752 ac_check_lib_save_LIBS=$LIBS 9753 LIBS="-lreadline $LIBS" 9754 cat >conftest.$ac_ext <<_ACEOF 9755 /* confdefs.h. */ 9756 _ACEOF 9757 cat confdefs.h >>conftest.$ac_ext 9758 cat >>conftest.$ac_ext <<_ACEOF 9759 /* end confdefs.h. */ 9760 9761 /* Override any gcc2 internal prototype to avoid an error. */ 9762 #ifdef __cplusplus 9763 extern "C" 9764 #endif 9765 /* We use char because int might match the return type of a gcc2 9766 builtin and then its argument prototype would still apply. */ 9767 char rl_abort (); 9768 int 9769 main () 9770 { 9771 rl_abort (); 9772 ; 9773 return 0; 9774 } 9775 _ACEOF 9776 rm -f conftest.$ac_objext conftest$ac_exeext 9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9778 (eval $ac_link) 2>conftest.er1 9779 ac_status=$? 9780 grep -v '^ *+' conftest.er1 >conftest.err 9781 rm -f conftest.er1 9782 cat conftest.err >&5 9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9784 (exit $ac_status); } && 9785 { ac_try='test -z "$ac_cxx_werror_flag" 9786 || test ! -s conftest.err' 9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9788 (eval $ac_try) 2>&5 9789 ac_status=$? 9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9791 (exit $ac_status); }; } && 9792 { ac_try='test -s conftest$ac_exeext' 9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9794 (eval $ac_try) 2>&5 9795 ac_status=$? 9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9797 (exit $ac_status); }; }; then 9798 ac_cv_lib_readline_rl_abort=yes 9799 else 9800 echo "$as_me: failed program was:" >&5 9801 sed 's/^/| /' conftest.$ac_ext >&5 9802 9803 ac_cv_lib_readline_rl_abort=no 9804 fi 9805 rm -f conftest.err conftest.$ac_objext \ 9806 conftest$ac_exeext conftest.$ac_ext 9807 LIBS=$ac_check_lib_save_LIBS 9808 fi 9809 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_abort" >&5 9810 echo "${ECHO_T}$ac_cv_lib_readline_rl_abort" >&6 9811 if test $ac_cv_lib_readline_rl_abort = yes; then 9812 cat >>confdefs.h <<_ACEOF 9813 #define HAVE_LIBREADLINE 1 9814 _ACEOF 3912 9815 3913 9816 LIBS="-lreadline $LIBS" 3914 9817 3915 else 3916 echo "$ac_t""no" 1>&6 3917 fi 3918 3919 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 3920 echo "configure:3921: checking how to run the C++ preprocessor" >&5 9818 fi 9819 9820 ac_ext=cc 9821 ac_cpp='$CXXCPP $CPPFLAGS' 9822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9825 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 9826 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 3921 9827 if test -z "$CXXCPP"; then 3922 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then 3923 echo $ac_n "(cached) $ac_c" 1>&6 3924 else 3925 ac_ext=C 3926 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 9828 if test "${ac_cv_prog_CXXCPP+set}" = set; then 9829 echo $ECHO_N "(cached) $ECHO_C" >&6 9830 else 9831 # Double quotes because CXXCPP needs to be expanded 9832 for CXXCPP in "$CXX -E" "/lib/cpp" 9833 do 9834 ac_preproc_ok=false 9835 for ac_cxx_preproc_warn_flag in '' yes 9836 do 9837 # Use a header file that comes with gcc, so configuring glibc 9838 # with a fresh cross-compiler works. 9839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9840 # <limits.h> exists even on freestanding compilers. 9841 # On the NeXT, cc -E runs the code through the compiler's parser, 9842 # not just through cpp. "Syntax error" is here to catch this case. 9843 cat >conftest.$ac_ext <<_ACEOF 9844 /* confdefs.h. */ 9845 _ACEOF 9846 cat confdefs.h >>conftest.$ac_ext 9847 cat >>conftest.$ac_ext <<_ACEOF 9848 /* end confdefs.h. */ 9849 #ifdef __STDC__ 9850 # include <limits.h> 9851 #else 9852 # include <assert.h> 9853 #endif 9854 Syntax error 9855 _ACEOF 9856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9858 ac_status=$? 9859 grep -v '^ *+' conftest.er1 >conftest.err 9860 rm -f conftest.er1 9861 cat conftest.err >&5 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 (exit $ac_status); } >/dev/null; then 9864 if test -s conftest.err; then 9865 ac_cpp_err=$ac_cxx_preproc_warn_flag 9866 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 9867 else 9868 ac_cpp_err= 9869 fi 9870 else 9871 ac_cpp_err=yes 9872 fi 9873 if test -z "$ac_cpp_err"; then 9874 : 9875 else 9876 echo "$as_me: failed program was:" >&5 9877 sed 's/^/| /' conftest.$ac_ext >&5 9878 9879 # Broken: fails on valid input. 9880 continue 9881 fi 9882 rm -f conftest.err conftest.$ac_ext 9883 9884 # OK, works on sane cases. Now check whether non-existent headers 9885 # can be detected and how. 9886 cat >conftest.$ac_ext <<_ACEOF 9887 /* confdefs.h. */ 9888 _ACEOF 9889 cat confdefs.h >>conftest.$ac_ext 9890 cat >>conftest.$ac_ext <<_ACEOF 9891 /* end confdefs.h. */ 9892 #include <ac_nonexistent.h> 9893 _ACEOF 9894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9896 ac_status=$? 9897 grep -v '^ *+' conftest.er1 >conftest.err 9898 rm -f conftest.er1 9899 cat conftest.err >&5 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); } >/dev/null; then 9902 if test -s conftest.err; then 9903 ac_cpp_err=$ac_cxx_preproc_warn_flag 9904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 9905 else 9906 ac_cpp_err= 9907 fi 9908 else 9909 ac_cpp_err=yes 9910 fi 9911 if test -z "$ac_cpp_err"; then 9912 # Broken: success on invalid input. 9913 continue 9914 else 9915 echo "$as_me: failed program was:" >&5 9916 sed 's/^/| /' conftest.$ac_ext >&5 9917 9918 # Passes both tests. 9919 ac_preproc_ok=: 9920 break 9921 fi 9922 rm -f conftest.err conftest.$ac_ext 9923 9924 done 9925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9926 rm -f conftest.err conftest.$ac_ext 9927 if $ac_preproc_ok; then 9928 break 9929 fi 9930 9931 done 9932 ac_cv_prog_CXXCPP=$CXXCPP 9933 9934 fi 9935 CXXCPP=$ac_cv_prog_CXXCPP 9936 else 9937 ac_cv_prog_CXXCPP=$CXXCPP 9938 fi 9939 echo "$as_me:$LINENO: result: $CXXCPP" >&5 9940 echo "${ECHO_T}$CXXCPP" >&6 9941 ac_preproc_ok=false 9942 for ac_cxx_preproc_warn_flag in '' yes 9943 do 9944 # Use a header file that comes with gcc, so configuring glibc 9945 # with a fresh cross-compiler works. 9946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9947 # <limits.h> exists even on freestanding compilers. 9948 # On the NeXT, cc -E runs the code through the compiler's parser, 9949 # not just through cpp. "Syntax error" is here to catch this case. 9950 cat >conftest.$ac_ext <<_ACEOF 9951 /* confdefs.h. */ 9952 _ACEOF 9953 cat confdefs.h >>conftest.$ac_ext 9954 cat >>conftest.$ac_ext <<_ACEOF 9955 /* end confdefs.h. */ 9956 #ifdef __STDC__ 9957 # include <limits.h> 9958 #else 9959 # include <assert.h> 9960 #endif 9961 Syntax error 9962 _ACEOF 9963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9965 ac_status=$? 9966 grep -v '^ *+' conftest.er1 >conftest.err 9967 rm -f conftest.er1 9968 cat conftest.err >&5 9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9970 (exit $ac_status); } >/dev/null; then 9971 if test -s conftest.err; then 9972 ac_cpp_err=$ac_cxx_preproc_warn_flag 9973 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 9974 else 9975 ac_cpp_err= 9976 fi 9977 else 9978 ac_cpp_err=yes 9979 fi 9980 if test -z "$ac_cpp_err"; then 9981 : 9982 else 9983 echo "$as_me: failed program was:" >&5 9984 sed 's/^/| /' conftest.$ac_ext >&5 9985 9986 # Broken: fails on valid input. 9987 continue 9988 fi 9989 rm -f conftest.err conftest.$ac_ext 9990 9991 # OK, works on sane cases. Now check whether non-existent headers 9992 # can be detected and how. 9993 cat >conftest.$ac_ext <<_ACEOF 9994 /* confdefs.h. */ 9995 _ACEOF 9996 cat confdefs.h >>conftest.$ac_ext 9997 cat >>conftest.$ac_ext <<_ACEOF 9998 /* end confdefs.h. */ 9999 #include <ac_nonexistent.h> 10000 _ACEOF 10001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10003 ac_status=$? 10004 grep -v '^ *+' conftest.er1 >conftest.err 10005 rm -f conftest.er1 10006 cat conftest.err >&5 10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10008 (exit $ac_status); } >/dev/null; then 10009 if test -s conftest.err; then 10010 ac_cpp_err=$ac_cxx_preproc_warn_flag 10011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 10012 else 10013 ac_cpp_err= 10014 fi 10015 else 10016 ac_cpp_err=yes 10017 fi 10018 if test -z "$ac_cpp_err"; then 10019 # Broken: success on invalid input. 10020 continue 10021 else 10022 echo "$as_me: failed program was:" >&5 10023 sed 's/^/| /' conftest.$ac_ext >&5 10024 10025 # Passes both tests. 10026 ac_preproc_ok=: 10027 break 10028 fi 10029 rm -f conftest.err conftest.$ac_ext 10030 10031 done 10032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10033 rm -f conftest.err conftest.$ac_ext 10034 if $ac_preproc_ok; then 10035 : 10036 else 10037 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 10038 See \`config.log' for more details." >&5 10039 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 10040 See \`config.log' for more details." >&2;} 10041 { (exit 1); exit 1; }; } 10042 fi 10043 10044 ac_ext=cc 3927 10045 ac_cpp='$CXXCPP $CPPFLAGS' 3928 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3929 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3930 cross_compiling=$ac_cv_prog_cxx_cross 3931 CXXCPP="${CXX-g++} -E" 3932 cat > conftest.$ac_ext <<EOF 3933 #line 3934 "configure" 3934 #include "confdefs.h" 3935 #include <stdlib.h> 3936 EOF 3937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3938 { (eval echo configure:3939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3940 if test -z "$ac_err"; then 3941 : 3942 else 3943 echo "$ac_err" >&5 3944 echo "configure: failed program was:" >&5 3945 cat conftest.$ac_ext >&5 3946 rm -rf conftest* 3947 CXXCPP=/lib/cpp 3948 fi 3949 rm -f conftest* 3950 ac_cv_prog_CXXCPP="$CXXCPP" 3951 ac_ext=C 3952 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3953 ac_cpp='$CXXCPP $CPPFLAGS' 3954 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3955 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3956 cross_compiling=$ac_cv_prog_cxx_cross 3957 fi 3958 fi 3959 CXXCPP="$ac_cv_prog_CXXCPP" 3960 echo "$ac_t""$CXXCPP" 1>&6 3961 3962 for ac_hdr in readline/readline.h readline/history.h 10046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10049 10050 10051 10052 10053 for ac_header in readline/readline.h readline/history.h 3963 10054 do 3964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3966 echo "configure:3967: checking for $ac_hdr" >&5 3967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3968 echo $ac_n "(cached) $ac_c" 1>&6 3969 else 3970 cat > conftest.$ac_ext <<EOF 3971 #line 3972 "configure" 3972 #include "confdefs.h" 3973 #include <$ac_hdr> 3974 EOF 3975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3976 { (eval echo configure:3977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3978 if test -z "$ac_err"; then 3979 rm -rf conftest* 3980 eval "ac_cv_header_$ac_safe=yes" 3981 else 3982 echo "$ac_err" >&5 3983 echo "configure: failed program was:" >&5 3984 cat conftest.$ac_ext >&5 3985 rm -rf conftest* 3986 eval "ac_cv_header_$ac_safe=no" 3987 fi 3988 rm -f conftest* 3989 fi 3990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3991 echo "$ac_t""yes" 1>&6 3992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3993 cat >> confdefs.h <<EOF 3994 #define $ac_tr_hdr 1 3995 EOF 3996 3997 else 3998 echo "$ac_t""no" 1>&6 3999 fi 10055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10056 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10057 echo "$as_me:$LINENO: checking for $ac_header" >&5 10058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10060 echo $ECHO_N "(cached) $ECHO_C" >&6 10061 fi 10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10064 else 10065 # Is the header compilable? 10066 echo "$as_me:$LINENO: checking $ac_header usability" >&5 10067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10068 cat >conftest.$ac_ext <<_ACEOF 10069 /* confdefs.h. */ 10070 _ACEOF 10071 cat confdefs.h >>conftest.$ac_ext 10072 cat >>conftest.$ac_ext <<_ACEOF 10073 /* end confdefs.h. */ 10074 $ac_includes_default 10075 #include <$ac_header> 10076 _ACEOF 10077 rm -f conftest.$ac_objext 10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10079 (eval $ac_compile) 2>conftest.er1 10080 ac_status=$? 10081 grep -v '^ *+' conftest.er1 >conftest.err 10082 rm -f conftest.er1 10083 cat conftest.err >&5 10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10085 (exit $ac_status); } && 10086 { ac_try='test -z "$ac_cxx_werror_flag" 10087 || test ! -s conftest.err' 10088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10089 (eval $ac_try) 2>&5 10090 ac_status=$? 10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10092 (exit $ac_status); }; } && 10093 { ac_try='test -s conftest.$ac_objext' 10094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10095 (eval $ac_try) 2>&5 10096 ac_status=$? 10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10098 (exit $ac_status); }; }; then 10099 ac_header_compiler=yes 10100 else 10101 echo "$as_me: failed program was:" >&5 10102 sed 's/^/| /' conftest.$ac_ext >&5 10103 10104 ac_header_compiler=no 10105 fi 10106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10108 echo "${ECHO_T}$ac_header_compiler" >&6 10109 10110 # Is the header present? 10111 echo "$as_me:$LINENO: checking $ac_header presence" >&5 10112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10113 cat >conftest.$ac_ext <<_ACEOF 10114 /* confdefs.h. */ 10115 _ACEOF 10116 cat confdefs.h >>conftest.$ac_ext 10117 cat >>conftest.$ac_ext <<_ACEOF 10118 /* end confdefs.h. */ 10119 #include <$ac_header> 10120 _ACEOF 10121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10123 ac_status=$? 10124 grep -v '^ *+' conftest.er1 >conftest.err 10125 rm -f conftest.er1 10126 cat conftest.err >&5 10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10128 (exit $ac_status); } >/dev/null; then 10129 if test -s conftest.err; then 10130 ac_cpp_err=$ac_cxx_preproc_warn_flag 10131 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 10132 else 10133 ac_cpp_err= 10134 fi 10135 else 10136 ac_cpp_err=yes 10137 fi 10138 if test -z "$ac_cpp_err"; then 10139 ac_header_preproc=yes 10140 else 10141 echo "$as_me: failed program was:" >&5 10142 sed 's/^/| /' conftest.$ac_ext >&5 10143 10144 ac_header_preproc=no 10145 fi 10146 rm -f conftest.err conftest.$ac_ext 10147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10148 echo "${ECHO_T}$ac_header_preproc" >&6 10149 10150 # So? What about this header? 10151 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 10152 yes:no: ) 10153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10157 ac_header_preproc=yes 10158 ;; 10159 no:yes:* ) 10160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10172 ( 10173 cat <<\_ASBOX 10174 ## ------------------------------------------ ## 10175 ## Report this to the AC_PACKAGE_NAME lists. ## 10176 ## ------------------------------------------ ## 10177 _ASBOX 10178 ) | 10179 sed "s/^/$as_me: WARNING: /" >&2 10180 ;; 10181 esac 10182 echo "$as_me:$LINENO: checking for $ac_header" >&5 10183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10184 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10185 echo $ECHO_N "(cached) $ECHO_C" >&6 10186 else 10187 eval "$as_ac_Header=\$ac_header_preproc" 10188 fi 10189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10191 10192 fi 10193 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10194 cat >>confdefs.h <<_ACEOF 10195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10196 _ACEOF 10197 10198 fi 10199 4000 10200 done 4001 10201 4002 10202 if test "$ac_cv_lib_readline_rl_abort" = yes && \ 4003 10203 test "$ac_cv_header_readline_readline_h" = yes; then 4004 echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 4005 echo "configure:4006: checking whether readline.h is ok" >&5 4006 if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then 4007 echo $ac_n "(cached) $ac_c" 1>&6 4008 else 4009 cat > conftest.$ac_ext <<EOF 4010 #line 4011 "configure" 4011 #include "confdefs.h" 10204 echo "$as_me:$LINENO: checking whether readline.h is ok" >&5 10205 echo $ECHO_N "checking whether readline.h is ok... $ECHO_C" >&6 10206 if test "${ac_cv_header_readline_readline_h_ok+set}" = set; then 10207 echo $ECHO_N "(cached) $ECHO_C" >&6 10208 else 10209 cat >conftest.$ac_ext <<_ACEOF 10210 /* confdefs.h. */ 10211 _ACEOF 10212 cat confdefs.h >>conftest.$ac_ext 10213 cat >>conftest.$ac_ext <<_ACEOF 10214 /* end confdefs.h. */ 4012 10215 #include<unistd.h> 4013 10216 #include<stdio.h> … … 4017 10220 #endif 4018 10221 4019 int main() { 4020 4021 ; return 0; } 4022 EOF 4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4024 rm -rf conftest* 10222 int 10223 main () 10224 { 10225 10226 ; 10227 return 0; 10228 } 10229 _ACEOF 10230 rm -f conftest.$ac_objext conftest$ac_exeext 10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10232 (eval $ac_link) 2>conftest.er1 10233 ac_status=$? 10234 grep -v '^ *+' conftest.er1 >conftest.err 10235 rm -f conftest.er1 10236 cat conftest.err >&5 10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10238 (exit $ac_status); } && 10239 { ac_try='test -z "$ac_cxx_werror_flag" 10240 || test ! -s conftest.err' 10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10242 (eval $ac_try) 2>&5 10243 ac_status=$? 10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10245 (exit $ac_status); }; } && 10246 { ac_try='test -s conftest$ac_exeext' 10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10248 (eval $ac_try) 2>&5 10249 ac_status=$? 10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10251 (exit $ac_status); }; }; then 4025 10252 ac_cv_header_readline_readline_h_ok="yes" 4026 10253 else 4027 echo "configure: failed program was:" >&5 4028 cat conftest.$ac_ext >&5 4029 rm -rf conftest* 4030 ac_cv_header_readline_readline_h_ok="no" 4031 fi 4032 rm -f conftest* 4033 fi 4034 4035 echo "$ac_t""$ac_cv_header_readline_readline_h_ok" 1>&6 10254 echo "$as_me: failed program was:" >&5 10255 sed 's/^/| /' conftest.$ac_ext >&5 10256 10257 ac_cv_header_readline_readline_h_ok="no" 10258 fi 10259 rm -f conftest.err conftest.$ac_objext \ 10260 conftest$ac_exeext conftest.$ac_ext 10261 fi 10262 10263 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h_ok" >&5 10264 echo "${ECHO_T}$ac_cv_header_readline_readline_h_ok" >&6 4036 10265 if test "$ac_cv_header_readline_readline_h_ok" != yes; then 4037 10266 #not ok -- try once more with explicitly declaring everything 4038 echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 4039 echo "configure:4040: checking whether or not we nevertheless can use readline" >&5 4040 if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then 4041 echo $ac_n "(cached) $ac_c" 1>&6 4042 else 4043 cat > conftest.$ac_ext <<EOF 4044 #line 4045 "configure" 4045 #include "confdefs.h" 10267 echo "$as_me:$LINENO: checking whether or not we nevertheless can use readline" >&5 10268 echo $ECHO_N "checking whether or not we nevertheless can use readline... $ECHO_C" >&6 10269 if test "${ac_cv_have_readline+set}" = set; then 10270 echo $ECHO_N "(cached) $ECHO_C" >&6 10271 else 10272 cat >conftest.$ac_ext <<_ACEOF 10273 /* confdefs.h. */ 10274 _ACEOF 10275 cat confdefs.h >>conftest.$ac_ext 10276 cat >>conftest.$ac_ext <<_ACEOF 10277 /* end confdefs.h. */ 4046 10278 #include <stdio.h> 4047 10279 extern "C" … … 4063 10295 #endif 4064 10296 4065 int main() { 10297 int 10298 main () 10299 { 4066 10300 rl_readline_name=NULL; 4067 10301 *rl_line_buffer=1; … … 4074 10308 write_history(NULL); 4075 10309 4076 ; return 0; } 4077 EOF 4078 if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4079 rm -rf conftest* 10310 ; 10311 return 0; 10312 } 10313 _ACEOF 10314 rm -f conftest.$ac_objext conftest$ac_exeext 10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10316 (eval $ac_link) 2>conftest.er1 10317 ac_status=$? 10318 grep -v '^ *+' conftest.er1 >conftest.err 10319 rm -f conftest.er1 10320 cat conftest.err >&5 10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 (exit $ac_status); } && 10323 { ac_try='test -z "$ac_cxx_werror_flag" 10324 || test ! -s conftest.err' 10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10326 (eval $ac_try) 2>&5 10327 ac_status=$? 10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10329 (exit $ac_status); }; } && 10330 { ac_try='test -s conftest$ac_exeext' 10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10332 (eval $ac_try) 2>&5 10333 ac_status=$? 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10335 (exit $ac_status); }; }; then 4080 10336 ac_cv_have_readline="yes" 4081 10337 4082 10338 else 4083 echo "configure: failed program was:" >&5 4084 cat conftest.$ac_ext >&5 4085 rm -rf conftest* 4086 ac_cv_have_readline="no" 4087 4088 fi 4089 rm -f conftest* 4090 fi 4091 4092 echo "$ac_t""$ac_cv_have_readline" 1>&6 10339 echo "$as_me: failed program was:" >&5 10340 sed 's/^/| /' conftest.$ac_ext >&5 10341 10342 ac_cv_have_readline="no" 10343 10344 fi 10345 rm -f conftest.err conftest.$ac_objext \ 10346 conftest$ac_exeext conftest.$ac_ext 10347 fi 10348 10349 echo "$as_me:$LINENO: result: $ac_cv_have_readline" >&5 10350 echo "${ECHO_T}$ac_cv_have_readline" >&6 4093 10351 else 4094 cat >> confdefs.h <<\EOF10352 cat >>confdefs.h <<\_ACEOF 4095 10353 #define READLINE_READLINE_H_OK 1 4096 EOF10354 _ACEOF 4097 10355 4098 10356 ac_cv_have_readline="yes" … … 4100 10358 fi 4101 10359 if test "$ac_cv_have_readline" = yes; then 4102 cat >> confdefs.h <<\EOF10360 cat >>confdefs.h <<\_ACEOF 4103 10361 #define HAVE_READLINE 1 4104 EOF10362 _ACEOF 4105 10363 4106 10364 fi 4107 10365 ac_ext=c 4108 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.4109 10366 ac_cpp='$CPP $CPPFLAGS' 4110 ac_compile='$ {CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'4111 ac_link='$ {CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'4112 cross_compiling=$ac_cv_prog_cc_cross 4113 4114 fi 4115 4116 echo $ac_n "checking which readline to use""... $ac_c" 1>&64117 echo "configure:4118: checking which readline to use" >&510367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10369 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10370 10371 fi 10372 10373 echo "$as_me:$LINENO: checking which readline to use" >&5 10374 echo $ECHO_N "checking which readline to use... $ECHO_C" >&6 4118 10375 if test "$ac_cv_with_readline" = dynamic; then 4119 echo "$ac_t""dynamic" 1>&6 4120 cat >> confdefs.h <<\EOF 10376 echo "$as_me:$LINENO: result: dynamic" >&5 10377 echo "${ECHO_T}dynamic" >&6 10378 cat >>confdefs.h <<\_ACEOF 4121 10379 #define HAVE_DYN_RL 1 4122 EOF10380 _ACEOF 4123 10381 4124 10382 elif test "$ac_cv_have_readline" = yes; then 4125 echo "$ac_t""static" 1>&6 10383 echo "$as_me:$LINENO: result: static" >&5 10384 echo "${ECHO_T}static" >&6 4126 10385 elif test "$ac_cv_singuname" = PowerMacintosh-darwin; then 4127 { echo "configure: error: building without readline impossible on PowerMacintosh-darwin" 1>&2; exit 1; } 4128 else 4129 echo "$ac_t""none" 1>&6 4130 echo "configure: warning: building without readline: disabling fancy display" 1>&2 4131 fi 4132 10386 { { echo "$as_me:$LINENO: error: building without readline impossible on PowerMacintosh-darwin" >&5 10387 echo "$as_me: error: building without readline impossible on PowerMacintosh-darwin" >&2;} 10388 { (exit 1); exit 1; }; } 10389 else 10390 echo "$as_me:$LINENO: result: none" >&5 10391 echo "${ECHO_T}none" >&6 10392 { echo "$as_me:$LINENO: WARNING: building without readline: disabling fancy display" >&5 10393 echo "$as_me: WARNING: building without readline: disabling fancy display" >&2;} 10394 fi 10395 4133 10396 NEED_LIBS=$LIBS 4134 10397 4135 10398 # gmp, smallgmp, MP, MPT, factory, libfac 4136 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 4137 echo " configure:4138: checking for main in -lgmp" >&54138 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 4139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then4140 echo $ ac_n "(cached) $ac_c" 1>&64141 else 4142 ac_ save_LIBS="$LIBS"10399 10400 echo "$as_me:$LINENO: checking for main in -lgmp" >&5 10401 echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6 10402 if test "${ac_cv_lib_gmp_main+set}" = set; then 10403 echo $ECHO_N "(cached) $ECHO_C" >&6 10404 else 10405 ac_check_lib_save_LIBS=$LIBS 4143 10406 LIBS="-lgmp $LIBS" 4144 cat > conftest.$ac_ext <<EOF 4145 #line 4146 "configure" 4146 #include "confdefs.h" 4147 4148 int main() { 4149 main() 4150 ; return 0; } 4151 EOF 4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4153 rm -rf conftest* 4154 eval "ac_cv_lib_$ac_lib_var=yes" 4155 else 4156 echo "configure: failed program was:" >&5 4157 cat conftest.$ac_ext >&5 4158 rm -rf conftest* 4159 eval "ac_cv_lib_$ac_lib_var=no" 4160 fi 4161 rm -f conftest* 4162 LIBS="$ac_save_LIBS" 4163 4164 fi 4165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4166 echo "$ac_t""yes" 1>&6 4167 ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4169 cat >> confdefs.h <<EOF 4170 #define $ac_tr_lib 1 4171 EOF 10407 cat >conftest.$ac_ext <<_ACEOF 10408 /* confdefs.h. */ 10409 _ACEOF 10410 cat confdefs.h >>conftest.$ac_ext 10411 cat >>conftest.$ac_ext <<_ACEOF 10412 /* end confdefs.h. */ 10413 10414 10415 int 10416 main () 10417 { 10418 main (); 10419 ; 10420 return 0; 10421 } 10422 _ACEOF 10423 rm -f conftest.$ac_objext conftest$ac_exeext 10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10425 (eval $ac_link) 2>conftest.er1 10426 ac_status=$? 10427 grep -v '^ *+' conftest.er1 >conftest.err 10428 rm -f conftest.er1 10429 cat conftest.err >&5 10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10431 (exit $ac_status); } && 10432 { ac_try='test -z "$ac_c_werror_flag" 10433 || test ! -s conftest.err' 10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10435 (eval $ac_try) 2>&5 10436 ac_status=$? 10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10438 (exit $ac_status); }; } && 10439 { ac_try='test -s conftest$ac_exeext' 10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10441 (eval $ac_try) 2>&5 10442 ac_status=$? 10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10444 (exit $ac_status); }; }; then 10445 ac_cv_lib_gmp_main=yes 10446 else 10447 echo "$as_me: failed program was:" >&5 10448 sed 's/^/| /' conftest.$ac_ext >&5 10449 10450 ac_cv_lib_gmp_main=no 10451 fi 10452 rm -f conftest.err conftest.$ac_objext \ 10453 conftest$ac_exeext conftest.$ac_ext 10454 LIBS=$ac_check_lib_save_LIBS 10455 fi 10456 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5 10457 echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6 10458 if test $ac_cv_lib_gmp_main = yes; then 10459 cat >>confdefs.h <<_ACEOF 10460 #define HAVE_LIBGMP 1 10461 _ACEOF 4172 10462 4173 10463 LIBS="-lgmp $LIBS" 4174 10464 4175 else4176 echo "$ac_t""no" 1>&64177 10465 fi 4178 10466 … … 4180 10468 LIBS=${NEED_LIBS} 4181 10469 fi 4182 echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6 4183 echo " configure:4184: checking for main in -lsmallgmp" >&54184 ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'` 4185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then4186 echo $ ac_n "(cached) $ac_c" 1>&64187 else 4188 ac_ save_LIBS="$LIBS"10470 10471 echo "$as_me:$LINENO: checking for main in -lsmallgmp" >&5 10472 echo $ECHO_N "checking for main in -lsmallgmp... $ECHO_C" >&6 10473 if test "${ac_cv_lib_smallgmp_main+set}" = set; then 10474 echo $ECHO_N "(cached) $ECHO_C" >&6 10475 else 10476 ac_check_lib_save_LIBS=$LIBS 4189 10477 LIBS="-lsmallgmp $LIBS" 4190 cat > conftest.$ac_ext <<EOF 4191 #line 4192 "configure" 4192 #include "confdefs.h" 4193 4194 int main() { 4195 main() 4196 ; return 0; } 4197 EOF 4198 if { (eval echo configure:4199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4199 rm -rf conftest* 4200 eval "ac_cv_lib_$ac_lib_var=yes" 4201 else 4202 echo "configure: failed program was:" >&5 4203 cat conftest.$ac_ext >&5 4204 rm -rf conftest* 4205 eval "ac_cv_lib_$ac_lib_var=no" 4206 fi 4207 rm -f conftest* 4208 LIBS="$ac_save_LIBS" 4209 4210 fi 4211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4212 echo "$ac_t""yes" 1>&6 4213 ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4215 cat >> confdefs.h <<EOF 4216 #define $ac_tr_lib 1 4217 EOF 10478 cat >conftest.$ac_ext <<_ACEOF 10479 /* confdefs.h. */ 10480 _ACEOF 10481 cat confdefs.h >>conftest.$ac_ext 10482 cat >>conftest.$ac_ext <<_ACEOF 10483 /* end confdefs.h. */ 10484 10485 10486 int 10487 main () 10488 { 10489 main (); 10490 ; 10491 return 0; 10492 } 10493 _ACEOF 10494 rm -f conftest.$ac_objext conftest$ac_exeext 10495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10496 (eval $ac_link) 2>conftest.er1 10497 ac_status=$? 10498 grep -v '^ *+' conftest.er1 >conftest.err 10499 rm -f conftest.er1 10500 cat conftest.err >&5 10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10502 (exit $ac_status); } && 10503 { ac_try='test -z "$ac_c_werror_flag" 10504 || test ! -s conftest.err' 10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10506 (eval $ac_try) 2>&5 10507 ac_status=$? 10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10509 (exit $ac_status); }; } && 10510 { ac_try='test -s conftest$ac_exeext' 10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10512 (eval $ac_try) 2>&5 10513 ac_status=$? 10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10515 (exit $ac_status); }; }; then 10516 ac_cv_lib_smallgmp_main=yes 10517 else 10518 echo "$as_me: failed program was:" >&5 10519 sed 's/^/| /' conftest.$ac_ext >&5 10520 10521 ac_cv_lib_smallgmp_main=no 10522 fi 10523 rm -f conftest.err conftest.$ac_objext \ 10524 conftest$ac_exeext conftest.$ac_ext 10525 LIBS=$ac_check_lib_save_LIBS 10526 fi 10527 echo "$as_me:$LINENO: result: $ac_cv_lib_smallgmp_main" >&5 10528 echo "${ECHO_T}$ac_cv_lib_smallgmp_main" >&6 10529 if test $ac_cv_lib_smallgmp_main = yes; then 10530 cat >>confdefs.h <<_ACEOF 10531 #define HAVE_LIBSMALLGMP 1 10532 _ACEOF 4218 10533 4219 10534 LIBS="-lsmallgmp $LIBS" 4220 10535 4221 else4222 echo "$ac_t""no" 1>&64223 10536 fi 4224 10537 4225 10538 SAVE_LIBS=$LIBS 4226 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 4227 echo " configure:4228: checking for IMP_PutGmpInt in -lMP" >&54228 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 4229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then4230 echo $ ac_n "(cached) $ac_c" 1>&64231 else 4232 ac_ save_LIBS="$LIBS"10539 10540 echo "$as_me:$LINENO: checking for IMP_PutGmpInt in -lMP" >&5 10541 echo $ECHO_N "checking for IMP_PutGmpInt in -lMP... $ECHO_C" >&6 10542 if test "${ac_cv_lib_MP_IMP_PutGmpInt+set}" = set; then 10543 echo $ECHO_N "(cached) $ECHO_C" >&6 10544 else 10545 ac_check_lib_save_LIBS=$LIBS 4233 10546 LIBS="-lMP $MP_LIBS $LIBS" 4234 cat > conftest.$ac_ext <<EOF 4235 #line 4236 "configure" 4236 #include "confdefs.h" 10547 cat >conftest.$ac_ext <<_ACEOF 10548 /* confdefs.h. */ 10549 _ACEOF 10550 cat confdefs.h >>conftest.$ac_ext 10551 cat >>conftest.$ac_ext <<_ACEOF 10552 /* end confdefs.h. */ 10553 4237 10554 /* Override any gcc2 internal prototype to avoid an error. */ 10555 #ifdef __cplusplus 10556 extern "C" 10557 #endif 4238 10558 /* We use char because int might match the return type of a gcc2 4239 builtin and then its argument prototype would still apply. */ 4240 char IMP_PutGmpInt(); 4241 4242 int main() { 4243 IMP_PutGmpInt() 4244 ; return 0; } 4245 EOF 4246 if { (eval echo configure:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4247 rm -rf conftest* 4248 eval "ac_cv_lib_$ac_lib_var=yes" 4249 else 4250 echo "configure: failed program was:" >&5 4251 cat conftest.$ac_ext >&5 4252 rm -rf conftest* 4253 eval "ac_cv_lib_$ac_lib_var=no" 4254 fi 4255 rm -f conftest* 4256 LIBS="$ac_save_LIBS" 4257 4258 fi 4259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4260 echo "$ac_t""yes" 1>&6 4261 ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4263 cat >> confdefs.h <<EOF 4264 #define $ac_tr_lib 1 4265 EOF 10559 builtin and then its argument prototype would still apply. */ 10560 char IMP_PutGmpInt (); 10561 int 10562 main () 10563 { 10564 IMP_PutGmpInt (); 10565 ; 10566 return 0; 10567 } 10568 _ACEOF 10569 rm -f conftest.$ac_objext conftest$ac_exeext 10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10571 (eval $ac_link) 2>conftest.er1 10572 ac_status=$? 10573 grep -v '^ *+' conftest.er1 >conftest.err 10574 rm -f conftest.er1 10575 cat conftest.err >&5 10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10577 (exit $ac_status); } && 10578 { ac_try='test -z "$ac_c_werror_flag" 10579 || test ! -s conftest.err' 10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10581 (eval $ac_try) 2>&5 10582 ac_status=$? 10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10584 (exit $ac_status); }; } && 10585 { ac_try='test -s conftest$ac_exeext' 10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10587 (eval $ac_try) 2>&5 10588 ac_status=$? 10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10590 (exit $ac_status); }; }; then 10591 ac_cv_lib_MP_IMP_PutGmpInt=yes 10592 else 10593 echo "$as_me: failed program was:" >&5 10594 sed 's/^/| /' conftest.$ac_ext >&5 10595 10596 ac_cv_lib_MP_IMP_PutGmpInt=no 10597 fi 10598 rm -f conftest.err conftest.$ac_objext \ 10599 conftest$ac_exeext conftest.$ac_ext 10600 LIBS=$ac_check_lib_save_LIBS 10601 fi 10602 echo "$as_me:$LINENO: result: $ac_cv_lib_MP_IMP_PutGmpInt" >&5 10603 echo "${ECHO_T}$ac_cv_lib_MP_IMP_PutGmpInt" >&6 10604 if test $ac_cv_lib_MP_IMP_PutGmpInt = yes; then 10605 cat >>confdefs.h <<_ACEOF 10606 #define HAVE_LIBMP 1 10607 _ACEOF 4266 10608 4267 10609 LIBS="-lMP $LIBS" 4268 10610 4269 else 4270 echo "$ac_t""no" 1>&6 4271 fi 4272 4273 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 4274 echo "configure:4275: checking for MPT_GetTree in -lMPT" >&5 4275 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 4276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4277 echo $ac_n "(cached) $ac_c" 1>&6 4278 else 4279 ac_save_LIBS="$LIBS" 10611 fi 10612 10613 10614 echo "$as_me:$LINENO: checking for MPT_GetTree in -lMPT" >&5 10615 echo $ECHO_N "checking for MPT_GetTree in -lMPT... $ECHO_C" >&6 10616 if test "${ac_cv_lib_MPT_MPT_GetTree+set}" = set; then 10617 echo $ECHO_N "(cached) $ECHO_C" >&6 10618 else 10619 ac_check_lib_save_LIBS=$LIBS 4280 10620 LIBS="-lMPT $MP_LIBS $LIBS" 4281 cat > conftest.$ac_ext <<EOF 4282 #line 4283 "configure" 4283 #include "confdefs.h" 10621 cat >conftest.$ac_ext <<_ACEOF 10622 /* confdefs.h. */ 10623 _ACEOF 10624 cat confdefs.h >>conftest.$ac_ext 10625 cat >>conftest.$ac_ext <<_ACEOF 10626 /* end confdefs.h. */ 10627 4284 10628 /* Override any gcc2 internal prototype to avoid an error. */ 10629 #ifdef __cplusplus 10630 extern "C" 10631 #endif 4285 10632 /* We use char because int might match the return type of a gcc2 4286 builtin and then its argument prototype would still apply. */ 4287 char MPT_GetTree(); 4288 4289 int main() { 4290 MPT_GetTree() 4291 ; return 0; } 4292 EOF 4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4294 rm -rf conftest* 4295 eval "ac_cv_lib_$ac_lib_var=yes" 4296 else 4297 echo "configure: failed program was:" >&5 4298 cat conftest.$ac_ext >&5 4299 rm -rf conftest* 4300 eval "ac_cv_lib_$ac_lib_var=no" 4301 fi 4302 rm -f conftest* 4303 LIBS="$ac_save_LIBS" 4304 4305 fi 4306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4307 echo "$ac_t""yes" 1>&6 4308 ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4310 cat >> confdefs.h <<EOF 4311 #define $ac_tr_lib 1 4312 EOF 10633 builtin and then its argument prototype would still apply. */ 10634 char MPT_GetTree (); 10635 int 10636 main () 10637 { 10638 MPT_GetTree (); 10639 ; 10640 return 0; 10641 } 10642 _ACEOF 10643 rm -f conftest.$ac_objext conftest$ac_exeext 10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10645 (eval $ac_link) 2>conftest.er1 10646 ac_status=$? 10647 grep -v '^ *+' conftest.er1 >conftest.err 10648 rm -f conftest.er1 10649 cat conftest.err >&5 10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10651 (exit $ac_status); } && 10652 { ac_try='test -z "$ac_c_werror_flag" 10653 || test ! -s conftest.err' 10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10655 (eval $ac_try) 2>&5 10656 ac_status=$? 10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10658 (exit $ac_status); }; } && 10659 { ac_try='test -s conftest$ac_exeext' 10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10661 (eval $ac_try) 2>&5 10662 ac_status=$? 10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10664 (exit $ac_status); }; }; then 10665 ac_cv_lib_MPT_MPT_GetTree=yes 10666 else 10667 echo "$as_me: failed program was:" >&5 10668 sed 's/^/| /' conftest.$ac_ext >&5 10669 10670 ac_cv_lib_MPT_MPT_GetTree=no 10671 fi 10672 rm -f conftest.err conftest.$ac_objext \ 10673 conftest$ac_exeext conftest.$ac_ext 10674 LIBS=$ac_check_lib_save_LIBS 10675 fi 10676 echo "$as_me:$LINENO: result: $ac_cv_lib_MPT_MPT_GetTree" >&5 10677 echo "${ECHO_T}$ac_cv_lib_MPT_MPT_GetTree" >&6 10678 if test $ac_cv_lib_MPT_MPT_GetTree = yes; then 10679 cat >>confdefs.h <<_ACEOF 10680 #define HAVE_LIBMPT 1 10681 _ACEOF 4313 10682 4314 10683 LIBS="-lMPT $LIBS" 4315 10684 4316 else4317 echo "$ac_t""no" 1>&64318 10685 fi 4319 10686 4320 10687 LIBS=$SAVE_LIBS 4321 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 4322 echo " configure:4323: checking for atof in -lsingcf" >&54323 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 4324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then4325 echo $ ac_n "(cached) $ac_c" 1>&64326 else 4327 ac_ save_LIBS="$LIBS"10688 10689 echo "$as_me:$LINENO: checking for atof in -lsingcf" >&5 10690 echo $ECHO_N "checking for atof in -lsingcf... $ECHO_C" >&6 10691 if test "${ac_cv_lib_singcf_atof+set}" = set; then 10692 echo $ECHO_N "(cached) $ECHO_C" >&6 10693 else 10694 ac_check_lib_save_LIBS=$LIBS 4328 10695 LIBS="-lsingcf $LIBS" 4329 cat > conftest.$ac_ext <<EOF 4330 #line 4331 "configure" 4331 #include "confdefs.h" 10696 cat >conftest.$ac_ext <<_ACEOF 10697 /* confdefs.h. */ 10698 _ACEOF 10699 cat confdefs.h >>conftest.$ac_ext 10700 cat >>conftest.$ac_ext <<_ACEOF 10701 /* end confdefs.h. */ 10702 4332 10703 /* Override any gcc2 internal prototype to avoid an error. */ 10704 #ifdef __cplusplus 10705 extern "C" 10706 #endif 4333 10707 /* We use char because int might match the return type of a gcc2 4334 builtin and then its argument prototype would still apply. */ 4335 char atof(); 4336 4337 int main() { 4338 atof() 4339 ; return 0; } 4340 EOF 4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4342 rm -rf conftest* 4343 eval "ac_cv_lib_$ac_lib_var=yes" 4344 else 4345 echo "configure: failed program was:" >&5 4346 cat conftest.$ac_ext >&5 4347 rm -rf conftest* 4348 eval "ac_cv_lib_$ac_lib_var=no" 4349 fi 4350 rm -f conftest* 4351 LIBS="$ac_save_LIBS" 4352 4353 fi 4354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4355 echo "$ac_t""yes" 1>&6 4356 ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4358 cat >> confdefs.h <<EOF 4359 #define $ac_tr_lib 1 4360 EOF 10708 builtin and then its argument prototype would still apply. */ 10709 char atof (); 10710 int 10711 main () 10712 { 10713 atof (); 10714 ; 10715 return 0; 10716 } 10717 _ACEOF 10718 rm -f conftest.$ac_objext conftest$ac_exeext 10719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10720 (eval $ac_link) 2>conftest.er1 10721 ac_status=$? 10722 grep -v '^ *+' conftest.er1 >conftest.err 10723 rm -f conftest.er1 10724 cat conftest.err >&5 10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10726 (exit $ac_status); } && 10727 { ac_try='test -z "$ac_c_werror_flag" 10728 || test ! -s conftest.err' 10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10730 (eval $ac_try) 2>&5 10731 ac_status=$? 10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10733 (exit $ac_status); }; } && 10734 { ac_try='test -s conftest$ac_exeext' 10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10736 (eval $ac_try) 2>&5 10737 ac_status=$? 10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 (exit $ac_status); }; }; then 10740 ac_cv_lib_singcf_atof=yes 10741 else 10742 echo "$as_me: failed program was:" >&5 10743 sed 's/^/| /' conftest.$ac_ext >&5 10744 10745 ac_cv_lib_singcf_atof=no 10746 fi 10747 rm -f conftest.err conftest.$ac_objext \ 10748 conftest$ac_exeext conftest.$ac_ext 10749 LIBS=$ac_check_lib_save_LIBS 10750 fi 10751 echo "$as_me:$LINENO: result: $ac_cv_lib_singcf_atof" >&5 10752 echo "${ECHO_T}$ac_cv_lib_singcf_atof" >&6 10753 if test $ac_cv_lib_singcf_atof = yes; then 10754 cat >>confdefs.h <<_ACEOF 10755 #define HAVE_LIBSINGCF 1 10756 _ACEOF 4361 10757 4362 10758 LIBS="-lsingcf $LIBS" 4363 10759 4364 else 4365 echo "$ac_t""no" 1>&6 4366 fi 4367 4368 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 4369 echo "configure:4370: checking for atof in -lsingfac" >&5 4370 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 4371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4372 echo $ac_n "(cached) $ac_c" 1>&6 4373 else 4374 ac_save_LIBS="$LIBS" 10760 fi 10761 10762 10763 echo "$as_me:$LINENO: checking for atof in -lsingfac" >&5 10764 echo $ECHO_N "checking for atof in -lsingfac... $ECHO_C" >&6 10765 if test "${ac_cv_lib_singfac_atof+set}" = set; then 10766 echo $ECHO_N "(cached) $ECHO_C" >&6 10767 else 10768 ac_check_lib_save_LIBS=$LIBS 4375 10769 LIBS="-lsingfac $LIBS" 4376 cat > conftest.$ac_ext <<EOF 4377 #line 4378 "configure" 4378 #include "confdefs.h" 10770 cat >conftest.$ac_ext <<_ACEOF 10771 /* confdefs.h. */ 10772 _ACEOF 10773 cat confdefs.h >>conftest.$ac_ext 10774 cat >>conftest.$ac_ext <<_ACEOF 10775 /* end confdefs.h. */ 10776 4379 10777 /* Override any gcc2 internal prototype to avoid an error. */ 10778 #ifdef __cplusplus 10779 extern "C" 10780 #endif 4380 10781 /* We use char because int might match the return type of a gcc2 4381 builtin and then its argument prototype would still apply. */ 4382 char atof(); 4383 4384 int main() { 4385 atof() 4386 ; return 0; } 4387 EOF 4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4389 rm -rf conftest* 4390 eval "ac_cv_lib_$ac_lib_var=yes" 4391 else 4392 echo "configure: failed program was:" >&5 4393 cat conftest.$ac_ext >&5 4394 rm -rf conftest* 4395 eval "ac_cv_lib_$ac_lib_var=no" 4396 fi 4397 rm -f conftest* 4398 LIBS="$ac_save_LIBS" 4399 4400 fi 4401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4402 echo "$ac_t""yes" 1>&6 4403 ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4405 cat >> confdefs.h <<EOF 4406 #define $ac_tr_lib 1 4407 EOF 10782 builtin and then its argument prototype would still apply. */ 10783 char atof (); 10784 int 10785 main () 10786 { 10787 atof (); 10788 ; 10789 return 0; 10790 } 10791 _ACEOF 10792 rm -f conftest.$ac_objext conftest$ac_exeext 10793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10794 (eval $ac_link) 2>conftest.er1 10795 ac_status=$? 10796 grep -v '^ *+' conftest.er1 >conftest.err 10797 rm -f conftest.er1 10798 cat conftest.err >&5 10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10800 (exit $ac_status); } && 10801 { ac_try='test -z "$ac_c_werror_flag" 10802 || test ! -s conftest.err' 10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10804 (eval $ac_try) 2>&5 10805 ac_status=$? 10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10807 (exit $ac_status); }; } && 10808 { ac_try='test -s conftest$ac_exeext' 10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10810 (eval $ac_try) 2>&5 10811 ac_status=$? 10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10813 (exit $ac_status); }; }; then 10814 ac_cv_lib_singfac_atof=yes 10815 else 10816 echo "$as_me: failed program was:" >&5 10817 sed 's/^/| /' conftest.$ac_ext >&5 10818 10819 ac_cv_lib_singfac_atof=no 10820 fi 10821 rm -f conftest.err conftest.$ac_objext \ 10822 conftest$ac_exeext conftest.$ac_ext 10823 LIBS=$ac_check_lib_save_LIBS 10824 fi 10825 echo "$as_me:$LINENO: result: $ac_cv_lib_singfac_atof" >&5 10826 echo "${ECHO_T}$ac_cv_lib_singfac_atof" >&6 10827 if test $ac_cv_lib_singfac_atof = yes; then 10828 cat >>confdefs.h <<_ACEOF 10829 #define HAVE_LIBSINGFAC 1 10830 _ACEOF 4408 10831 4409 10832 LIBS="-lsingfac $LIBS" 4410 10833 4411 else 4412 echo "$ac_t""no" 1>&6 4413 fi 4414 4415 echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 4416 echo "configure:4417: checking for omTestAddr in -lomalloc" >&5 4417 ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` 4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4419 echo $ac_n "(cached) $ac_c" 1>&6 4420 else 4421 ac_save_LIBS="$LIBS" 10834 fi 10835 10836 10837 echo "$as_me:$LINENO: checking for omTestAddr in -lomalloc" >&5 10838 echo $ECHO_N "checking for omTestAddr in -lomalloc... $ECHO_C" >&6 10839 if test "${ac_cv_lib_omalloc_omTestAddr+set}" = set; then 10840 echo $ECHO_N "(cached) $ECHO_C" >&6 10841 else 10842 ac_check_lib_save_LIBS=$LIBS 4422 10843 LIBS="-lomalloc $LIBS" 4423 cat > conftest.$ac_ext <<EOF 4424 #line 4425 "configure" 4425 #include "confdefs.h" 10844 cat >conftest.$ac_ext <<_ACEOF 10845 /* confdefs.h. */ 10846 _ACEOF 10847 cat confdefs.h >>conftest.$ac_ext 10848 cat >>conftest.$ac_ext <<_ACEOF 10849 /* end confdefs.h. */ 10850 4426 10851 /* Override any gcc2 internal prototype to avoid an error. */ 10852 #ifdef __cplusplus 10853 extern "C" 10854 #endif 4427 10855 /* We use char because int might match the return type of a gcc2 4428 builtin and then its argument prototype would still apply. */ 4429 char omTestAddr(); 4430 4431 int main() { 4432 omTestAddr() 4433 ; return 0; } 4434 EOF 4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4436 rm -rf conftest* 4437 eval "ac_cv_lib_$ac_lib_var=yes" 4438 else 4439 echo "configure: failed program was:" >&5 4440 cat conftest.$ac_ext >&5 4441 rm -rf conftest* 4442 eval "ac_cv_lib_$ac_lib_var=no" 4443 fi 4444 rm -f conftest* 4445 LIBS="$ac_save_LIBS" 4446 4447 fi 4448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4449 echo "$ac_t""yes" 1>&6 4450 ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4452 cat >> confdefs.h <<EOF 4453 #define $ac_tr_lib 1 4454 EOF 10856 builtin and then its argument prototype would still apply. */ 10857 char omTestAddr (); 10858 int 10859 main () 10860 { 10861 omTestAddr (); 10862 ; 10863 return 0; 10864 } 10865 _ACEOF 10866 rm -f conftest.$ac_objext conftest$ac_exeext 10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10868 (eval $ac_link) 2>conftest.er1 10869 ac_status=$? 10870 grep -v '^ *+' conftest.er1 >conftest.err 10871 rm -f conftest.er1 10872 cat conftest.err >&5 10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10874 (exit $ac_status); } && 10875 { ac_try='test -z "$ac_c_werror_flag" 10876 || test ! -s conftest.err' 10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10878 (eval $ac_try) 2>&5 10879 ac_status=$? 10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10881 (exit $ac_status); }; } && 10882 { ac_try='test -s conftest$ac_exeext' 10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10884 (eval $ac_try) 2>&5 10885 ac_status=$? 10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10887 (exit $ac_status); }; }; then 10888 ac_cv_lib_omalloc_omTestAddr=yes 10889 else 10890 echo "$as_me: failed program was:" >&5 10891 sed 's/^/| /' conftest.$ac_ext >&5 10892 10893 ac_cv_lib_omalloc_omTestAddr=no 10894 fi 10895 rm -f conftest.err conftest.$ac_objext \ 10896 conftest$ac_exeext conftest.$ac_ext 10897 LIBS=$ac_check_lib_save_LIBS 10898 fi 10899 echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_omTestAddr" >&5 10900 echo "${ECHO_T}$ac_cv_lib_omalloc_omTestAddr" >&6 10901 if test $ac_cv_lib_omalloc_omTestAddr = yes; then 10902 cat >>confdefs.h <<_ACEOF 10903 #define HAVE_LIBOMALLOC 1 10904 _ACEOF 4455 10905 4456 10906 LIBS="-lomalloc $LIBS" 4457 10907 4458 else 4459 echo "$ac_t""no" 1>&6 4460 fi 4461 4462 echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 4463 echo "configure:4464: checking for main in -lomalloc_ndebug" >&5 4464 ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` 4465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4466 echo $ac_n "(cached) $ac_c" 1>&6 4467 else 4468 ac_save_LIBS="$LIBS" 10908 fi 10909 10910 10911 echo "$as_me:$LINENO: checking for main in -lomalloc_ndebug" >&5 10912 echo $ECHO_N "checking for main in -lomalloc_ndebug... $ECHO_C" >&6 10913 if test "${ac_cv_lib_omalloc_ndebug_main+set}" = set; then 10914 echo $ECHO_N "(cached) $ECHO_C" >&6 10915 else 10916 ac_check_lib_save_LIBS=$LIBS 4469 10917 LIBS="-lomalloc_ndebug $LIBS" 4470 cat > conftest.$ac_ext <<EOF 4471 #line 4472 "configure" 4472 #include "confdefs.h" 4473 4474 int main() { 4475 main() 4476 ; return 0; } 4477 EOF 4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4479 rm -rf conftest* 4480 eval "ac_cv_lib_$ac_lib_var=yes" 4481 else 4482 echo "configure: failed program was:" >&5 4483 cat conftest.$ac_ext >&5 4484 rm -rf conftest* 4485 eval "ac_cv_lib_$ac_lib_var=no" 4486 fi 4487 rm -f conftest* 4488 LIBS="$ac_save_LIBS" 4489 4490 fi 4491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4492 echo "$ac_t""yes" 1>&6 4493 ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4495 cat >> confdefs.h <<EOF 4496 #define $ac_tr_lib 1 4497 EOF 10918 cat >conftest.$ac_ext <<_ACEOF 10919 /* confdefs.h. */ 10920 _ACEOF 10921 cat confdefs.h >>conftest.$ac_ext 10922 cat >>conftest.$ac_ext <<_ACEOF 10923 /* end confdefs.h. */ 10924 10925 10926 int 10927 main () 10928 { 10929 main (); 10930 ; 10931 return 0; 10932 } 10933 _ACEOF 10934 rm -f conftest.$ac_objext conftest$ac_exeext 10935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10936 (eval $ac_link) 2>conftest.er1 10937 ac_status=$? 10938 grep -v '^ *+' conftest.er1 >conftest.err 10939 rm -f conftest.er1 10940 cat conftest.err >&5 10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10942 (exit $ac_status); } && 10943 { ac_try='test -z "$ac_c_werror_flag" 10944 || test ! -s conftest.err' 10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10946 (eval $ac_try) 2>&5 10947 ac_status=$? 10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10949 (exit $ac_status); }; } && 10950 { ac_try='test -s conftest$ac_exeext' 10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10952 (eval $ac_try) 2>&5 10953 ac_status=$? 10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10955 (exit $ac_status); }; }; then 10956 ac_cv_lib_omalloc_ndebug_main=yes 10957 else 10958 echo "$as_me: failed program was:" >&5 10959 sed 's/^/| /' conftest.$ac_ext >&5 10960 10961 ac_cv_lib_omalloc_ndebug_main=no 10962 fi 10963 rm -f conftest.err conftest.$ac_objext \ 10964 conftest$ac_exeext conftest.$ac_ext 10965 LIBS=$ac_check_lib_save_LIBS 10966 fi 10967 echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_ndebug_main" >&5 10968 echo "${ECHO_T}$ac_cv_lib_omalloc_ndebug_main" >&6 10969 if test $ac_cv_lib_omalloc_ndebug_main = yes; then 10970 cat >>confdefs.h <<_ACEOF 10971 #define HAVE_LIBOMALLOC_NDEBUG 1 10972 _ACEOF 4498 10973 4499 10974 LIBS="-lomalloc_ndebug $LIBS" 4500 10975 4501 else 4502 echo "$ac_t""no" 1>&6 4503 fi 4504 4505 echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6 4506 echo "configure:4507: checking for main in -lntl" >&5 4507 ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'` 4508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4509 echo $ac_n "(cached) $ac_c" 1>&6 4510 else 4511 ac_save_LIBS="$LIBS" 10976 fi 10977 10978 10979 echo "$as_me:$LINENO: checking for main in -lntl" >&5 10980 echo $ECHO_N "checking for main in -lntl... $ECHO_C" >&6 10981 if test "${ac_cv_lib_ntl_main+set}" = set; then 10982 echo $ECHO_N "(cached) $ECHO_C" >&6 10983 else 10984 ac_check_lib_save_LIBS=$LIBS 4512 10985 LIBS="-lntl $LIBS" 4513 cat > conftest.$ac_ext <<EOF 4514 #line 4515 "configure" 4515 #include "confdefs.h" 4516 4517 int main() { 4518 main() 4519 ; return 0; } 4520 EOF 4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4522 rm -rf conftest* 4523 eval "ac_cv_lib_$ac_lib_var=yes" 4524 else 4525 echo "configure: failed program was:" >&5 4526 cat conftest.$ac_ext >&5 4527 rm -rf conftest* 4528 eval "ac_cv_lib_$ac_lib_var=no" 4529 fi 4530 rm -f conftest* 4531 LIBS="$ac_save_LIBS" 4532 4533 fi 4534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4535 echo "$ac_t""yes" 1>&6 4536 ac_tr_lib=HAVE_LIB`echo ntl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4538 cat >> confdefs.h <<EOF 4539 #define $ac_tr_lib 1 4540 EOF 10986 cat >conftest.$ac_ext <<_ACEOF 10987 /* confdefs.h. */ 10988 _ACEOF 10989 cat confdefs.h >>conftest.$ac_ext 10990 cat >>conftest.$ac_ext <<_ACEOF 10991 /* end confdefs.h. */ 10992 10993 10994 int 10995 main () 10996 { 10997 main (); 10998 ; 10999 return 0; 11000 } 11001 _ACEOF 11002 rm -f conftest.$ac_objext conftest$ac_exeext 11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11004 (eval $ac_link) 2>conftest.er1 11005 ac_status=$? 11006 grep -v '^ *+' conftest.er1 >conftest.err 11007 rm -f conftest.er1 11008 cat conftest.err >&5 11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11010 (exit $ac_status); } && 11011 { ac_try='test -z "$ac_c_werror_flag" 11012 || test ! -s conftest.err' 11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11014 (eval $ac_try) 2>&5 11015 ac_status=$? 11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11017 (exit $ac_status); }; } && 11018 { ac_try='test -s conftest$ac_exeext' 11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11020 (eval $ac_try) 2>&5 11021 ac_status=$? 11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11023 (exit $ac_status); }; }; then 11024 ac_cv_lib_ntl_main=yes 11025 else 11026 echo "$as_me: failed program was:" >&5 11027 sed 's/^/| /' conftest.$ac_ext >&5 11028 11029 ac_cv_lib_ntl_main=no 11030 fi 11031 rm -f conftest.err conftest.$ac_objext \ 11032 conftest$ac_exeext conftest.$ac_ext 11033 LIBS=$ac_check_lib_save_LIBS 11034 fi 11035 echo "$as_me:$LINENO: result: $ac_cv_lib_ntl_main" >&5 11036 echo "${ECHO_T}$ac_cv_lib_ntl_main" >&6 11037 if test $ac_cv_lib_ntl_main = yes; then 11038 cat >>confdefs.h <<_ACEOF 11039 #define HAVE_LIBNTL 1 11040 _ACEOF 4541 11041 4542 11042 LIBS="-lntl $LIBS" 4543 11043 4544 else 4545 echo "$ac_t""no" 1>&6 4546 fi 4547 4548 4549 for ac_hdr in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h omalloc.h \ 11044 fi 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 for ac_header in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h omalloc.h \ 4550 11056 omalloc.c 4551 11057 do 4552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4554 echo "configure:4555: checking for $ac_hdr" >&5 4555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4556 echo $ac_n "(cached) $ac_c" 1>&6 4557 else 4558 cat > conftest.$ac_ext <<EOF 4559 #line 4560 "configure" 4560 #include "confdefs.h" 4561 #include <$ac_hdr> 4562 EOF 4563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4564 { (eval echo configure:4565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4566 if test -z "$ac_err"; then 4567 rm -rf conftest* 4568 eval "ac_cv_header_$ac_safe=yes" 4569 else 4570 echo "$ac_err" >&5 4571 echo "configure: failed program was:" >&5 4572 cat conftest.$ac_ext >&5 4573 rm -rf conftest* 4574 eval "ac_cv_header_$ac_safe=no" 4575 fi 4576 rm -f conftest* 4577 fi 4578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4579 echo "$ac_t""yes" 1>&6 4580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4581 cat >> confdefs.h <<EOF 4582 #define $ac_tr_hdr 1 4583 EOF 4584 4585 else 4586 echo "$ac_t""no" 1>&6 4587 fi 11058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11059 if eval "test \"\${$as_ac_Header+set}\" = set"; then 11060 echo "$as_me:$LINENO: checking for $ac_header" >&5 11061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11062 if eval "test \"\${$as_ac_Header+set}\" = set"; then 11063 echo $ECHO_N "(cached) $ECHO_C" >&6 11064 fi 11065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11067 else 11068 # Is the header compilable? 11069 echo "$as_me:$LINENO: checking $ac_header usability" >&5 11070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11071 cat >conftest.$ac_ext <<_ACEOF 11072 /* confdefs.h. */ 11073 _ACEOF 11074 cat confdefs.h >>conftest.$ac_ext 11075 cat >>conftest.$ac_ext <<_ACEOF 11076 /* end confdefs.h. */ 11077 $ac_includes_default 11078 #include <$ac_header> 11079 _ACEOF 11080 rm -f conftest.$ac_objext 11081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11082 (eval $ac_compile) 2>conftest.er1 11083 ac_status=$? 11084 grep -v '^ *+' conftest.er1 >conftest.err 11085 rm -f conftest.er1 11086 cat conftest.err >&5 11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11088 (exit $ac_status); } && 11089 { ac_try='test -z "$ac_c_werror_flag" 11090 || test ! -s conftest.err' 11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11092 (eval $ac_try) 2>&5 11093 ac_status=$? 11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11095 (exit $ac_status); }; } && 11096 { ac_try='test -s conftest.$ac_objext' 11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11098 (eval $ac_try) 2>&5 11099 ac_status=$? 11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11101 (exit $ac_status); }; }; then 11102 ac_header_compiler=yes 11103 else 11104 echo "$as_me: failed program was:" >&5 11105 sed 's/^/| /' conftest.$ac_ext >&5 11106 11107 ac_header_compiler=no 11108 fi 11109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11111 echo "${ECHO_T}$ac_header_compiler" >&6 11112 11113 # Is the header present? 11114 echo "$as_me:$LINENO: checking $ac_header presence" >&5 11115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11116 cat >conftest.$ac_ext <<_ACEOF 11117 /* confdefs.h. */ 11118 _ACEOF 11119 cat confdefs.h >>conftest.$ac_ext 11120 cat >>conftest.$ac_ext <<_ACEOF 11121 /* end confdefs.h. */ 11122 #include <$ac_header> 11123 _ACEOF 11124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11126 ac_status=$? 11127 grep -v '^ *+' conftest.er1 >conftest.err 11128 rm -f conftest.er1 11129 cat conftest.err >&5 11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11131 (exit $ac_status); } >/dev/null; then 11132 if test -s conftest.err; then 11133 ac_cpp_err=$ac_c_preproc_warn_flag 11134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11135 else 11136 ac_cpp_err= 11137 fi 11138 else 11139 ac_cpp_err=yes 11140 fi 11141 if test -z "$ac_cpp_err"; then 11142 ac_header_preproc=yes 11143 else 11144 echo "$as_me: failed program was:" >&5 11145 sed 's/^/| /' conftest.$ac_ext >&5 11146 11147 ac_header_preproc=no 11148 fi 11149 rm -f conftest.err conftest.$ac_ext 11150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11151 echo "${ECHO_T}$ac_header_preproc" >&6 11152 11153 # So? What about this header? 11154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11155 yes:no: ) 11156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11160 ac_header_preproc=yes 11161 ;; 11162 no:yes:* ) 11163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11175 ( 11176 cat <<\_ASBOX 11177 ## ------------------------------------------ ## 11178 ## Report this to the AC_PACKAGE_NAME lists. ## 11179 ## ------------------------------------------ ## 11180 _ASBOX 11181 ) | 11182 sed "s/^/$as_me: WARNING: /" >&2 11183 ;; 11184 esac 11185 echo "$as_me:$LINENO: checking for $ac_header" >&5 11186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11187 if eval "test \"\${$as_ac_Header+set}\" = set"; then 11188 echo $ECHO_N "(cached) $ECHO_C" >&6 11189 else 11190 eval "$as_ac_Header=\$ac_header_preproc" 11191 fi 11192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11194 11195 fi 11196 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11197 cat >>confdefs.h <<_ACEOF 11198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11199 _ACEOF 11200 11201 fi 11202 4588 11203 done 4589 11204 … … 4630 11245 # evaluate results 4631 11246 if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then 4632 { echo "configure: error: can not build without omalloc" 1>&2; exit 1; } 4633 fi 4634 4635 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 4636 echo "configure:4637: checking which apint package to use" >&5 11247 { { echo "$as_me:$LINENO: error: can not build without omalloc" >&5 11248 echo "$as_me: error: can not build without omalloc" >&2;} 11249 { (exit 1); exit 1; }; } 11250 fi 11251 11252 echo "$as_me:$LINENO: checking which apint package to use" >&5 11253 echo $ECHO_N "checking which apint package to use... $ECHO_C" >&6 4637 11254 if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then 4638 11255 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 4639 echo "$ac_t""gmp" 1>&6 11256 echo "$as_me:$LINENO: result: gmp" >&5 11257 echo "${ECHO_T}gmp" >&6 4640 11258 will_have_gmp=yes 4641 11259 NEED_LIBS="-lgmp ${NEED_LIBS}" 4642 11260 elif test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then 4643 echo "$ac_t""smallgmp" 1>&6 4644 cat >> confdefs.h <<\EOF 11261 echo "$as_me:$LINENO: result: smallgmp" >&5 11262 echo "${ECHO_T}smallgmp" >&6 11263 cat >>confdefs.h <<\_ACEOF 4645 11264 #define HAVE_SMALLGMP 1 4646 EOF11265 _ACEOF 4647 11266 4648 11267 NEED_LIBS="-lsmallgmp ${NEED_LIBS}" 4649 11268 else 4650 echo "$ac_t""none" 1>&6 4651 { echo "configure: error: can not build without gmp or smallgmp" 1>&2; exit 1; } 11269 echo "$as_me:$LINENO: result: none" >&5 11270 echo "${ECHO_T}none" >&6 11271 { { echo "$as_me:$LINENO: error: can not build without gmp or smallgmp" >&5 11272 echo "$as_me: error: can not build without gmp or smallgmp" >&2;} 11273 { (exit 1); exit 1; }; } 4652 11274 fi 4653 11275 elif test "${with_apint}" = gmp; then 4654 11276 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 4655 echo "$ac_t""gmp" 1>&6 11277 echo "$as_me:$LINENO: result: gmp" >&5 11278 echo "${ECHO_T}gmp" >&6 4656 11279 will_have_gmp=yes 4657 11280 NEED_LIBS="-lgmp ${NEED_LIBS}" 4658 11281 else 4659 echo "$ac_t""none" 1>&6 4660 { echo "configure: error: can not build with gmp" 1>&2; exit 1; } 11282 echo "$as_me:$LINENO: result: none" >&5 11283 echo "${ECHO_T}none" >&6 11284 { { echo "$as_me:$LINENO: error: can not build with gmp" >&5 11285 echo "$as_me: error: can not build with gmp" >&2;} 11286 { (exit 1); exit 1; }; } 4661 11287 fi 4662 11288 else 4663 11289 if test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then 4664 echo "$ac_t""smallgmp" 1>&6 4665 cat >> confdefs.h <<\EOF 11290 echo "$as_me:$LINENO: result: smallgmp" >&5 11291 echo "${ECHO_T}smallgmp" >&6 11292 cat >>confdefs.h <<\_ACEOF 4666 11293 #define HAVE_SMALLGMP 1 4667 EOF11294 _ACEOF 4668 11295 4669 11296 NEED_LIBS="-lsmallgmp ${NEED_LIBS}" 4670 11297 else 4671 echo "$ac_t""none" 1>&6 4672 { echo "configure: error: can not build with smallgmp" 1>&2; exit 1; } 11298 echo "$as_me:$LINENO: result: none" >&5 11299 echo "${ECHO_T}none" >&6 11300 { { echo "$as_me:$LINENO: error: can not build with smallgmp" >&5 11301 echo "$as_me: error: can not build with smallgmp" >&2;} 11302 { (exit 1); exit 1; }; } 4673 11303 fi 4674 11304 fi 4675 11305 4676 11306 # 4677 echo $ac_n "checking whether to have MP""... $ac_c" 1>&64678 echo "configure:4679: checking whether to have MP" >&511307 echo "$as_me:$LINENO: checking whether to have MP" >&5 11308 echo $ECHO_N "checking whether to have MP... $ECHO_C" >&6 4679 11309 if test "${with_MP}" != yes && test "${with_MP}" != no; then 4680 11310 if (test "${will_have_gmp}" = yes) && \ 4681 11311 (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then 4682 echo "$ac_t""yes" 1>&6 4683 cat >> confdefs.h <<\EOF 11312 echo "$as_me:$LINENO: result: yes" >&5 11313 echo "${ECHO_T}yes" >&6 11314 cat >>confdefs.h <<\_ACEOF 4684 11315 #define HAVE_MPSR 1 4685 EOF11316 _ACEOF 4686 11317 4687 11318 HAVE_MPSR=1 4688 11319 MP_LIBS="-lMPT -lMP ${MP_LIBS}" 4689 11320 else 4690 echo "$ac_t""no" 1>&6 11321 echo "$as_me:$LINENO: result: no" >&5 11322 echo "${ECHO_T}no" >&6 4691 11323 fi 4692 11324 elif test "${with_MP}" = yes; then 4693 11325 if (test "${will_have_gmp}" = yes) && \ 4694 11326 (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then 4695 echo "$ac_t""yes" 1>&6 4696 cat >> confdefs.h <<\EOF 11327 echo "$as_me:$LINENO: result: yes" >&5 11328 echo "${ECHO_T}yes" >&6 11329 cat >>confdefs.h <<\_ACEOF 4697 11330 #define HAVE_MPSR 1 4698 EOF11331 _ACEOF 4699 11332 4700 11333 HAVE_MPSR=1 4701 11334 MP_LIBS="-lMPT -lMP ${MP_LIBS}" 4702 11335 else 4703 echo "$ac_t""no" 1>&6 4704 { echo "configure: error: can not build with MP" 1>&2; exit 1; } 11336 echo "$as_me:$LINENO: result: no" >&5 11337 echo "${ECHO_T}no" >&6 11338 { { echo "$as_me:$LINENO: error: can not build with MP" >&5 11339 echo "$as_me: error: can not build with MP" >&2;} 11340 { (exit 1); exit 1; }; } 4705 11341 fi 4706 11342 else 4707 echo "$ac_t""no" 1>&6 4708 fi 4709 4710 4711 4712 echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6 4713 echo "configure:4714: checking whether to have NTL" >&5 11343 echo "$as_me:$LINENO: result: no" >&5 11344 echo "${ECHO_T}no" >&6 11345 fi 11346 11347 11348 11349 echo "$as_me:$LINENO: checking whether to have NTL" >&5 11350 echo $ECHO_N "checking whether to have NTL... $ECHO_C" >&6 4714 11351 if test "${with_NTL}" = yes ; then 4715 echo "$ac_t""yes" 1>&6 11352 echo "$as_me:$LINENO: result: yes" >&5 11353 echo "${ECHO_T}yes" >&6 4716 11354 NEED_LIBS="-lntl ${NEED_LIBS}" 4717 11355 else 4718 echo "$ac_t""no" 1>&6 4719 fi 4720 4721 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 4722 echo "configure:4723: checking whether to have factory" >&5 11356 echo "$as_me:$LINENO: result: no" >&5 11357 echo "${ECHO_T}no" >&6 11358 fi 11359 11360 echo "$as_me:$LINENO: checking whether to have factory" >&5 11361 echo $ECHO_N "checking whether to have factory... $ECHO_C" >&6 4723 11362 if test "${with_factory}" != yes && test "${with_factory}" != no; then 4724 11363 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then 4725 echo "$ac_t""yes" 1>&6 4726 cat >> confdefs.h <<\EOF 11364 echo "$as_me:$LINENO: result: yes" >&5 11365 echo "${ECHO_T}yes" >&6 11366 cat >>confdefs.h <<\_ACEOF 4727 11367 #define HAVE_FACTORY 1 4728 EOF11368 _ACEOF 4729 11369 4730 11370 will_have_factory=yes 4731 11371 NEED_LIBS="-lsingcf ${NEED_LIBS}" 4732 11372 else 4733 echo "$ac_t""no" 1>&6 11373 echo "$as_me:$LINENO: result: no" >&5 11374 echo "${ECHO_T}no" >&6 4734 11375 fi 4735 11376 elif test "${with_factory}" = yes; then 4736 11377 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then 4737 echo "$ac_t""yes" 1>&6 4738 cat >> confdefs.h <<\EOF 11378 echo "$as_me:$LINENO: result: yes" >&5 11379 echo "${ECHO_T}yes" >&6 11380 cat >>confdefs.h <<\_ACEOF 4739 11381 #define HAVE_FACTORY 1 4740 EOF11382 _ACEOF 4741 11383 4742 11384 will_have_factory=yes 4743 11385 NEED_LIBS="-lsingcf ${NEED_LIBS}" 4744 11386 else 4745 echo "$ac_t""no" 1>&6 4746 { echo "configure: error: can not build with factory" 1>&2; exit 1; } 11387 echo "$as_me:$LINENO: result: no" >&5 11388 echo "${ECHO_T}no" >&6 11389 { { echo "$as_me:$LINENO: error: can not build with factory" >&5 11390 echo "$as_me: error: can not build with factory" >&2;} 11391 { (exit 1); exit 1; }; } 4747 11392 fi 4748 11393 else 4749 echo "$ac_t""no" 1>&6 4750 fi 4751 4752 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 4753 echo "configure:4754: checking whether to have libfac" >&5 11394 echo "$as_me:$LINENO: result: no" >&5 11395 echo "${ECHO_T}no" >&6 11396 fi 11397 11398 echo "$as_me:$LINENO: checking whether to have libfac" >&5 11399 echo $ECHO_N "checking whether to have libfac... $ECHO_C" >&6 4754 11400 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 4755 11401 if (test "${will_have_factory}" = yes) && \ 4756 11402 (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then 4757 echo "$ac_t""yes" 1>&6 4758 cat >> confdefs.h <<\EOF 11403 echo "$as_me:$LINENO: result: yes" >&5 11404 echo "${ECHO_T}yes" >&6 11405 cat >>confdefs.h <<\_ACEOF 4759 11406 #define HAVE_LIBFAC_P 1 4760 EOF11407 _ACEOF 4761 11408 4762 11409 NEED_LIBS="-lsingfac ${NEED_LIBS}" 4763 11410 else 4764 echo "$ac_t""no" 1>&6 11411 echo "$as_me:$LINENO: result: no" >&5 11412 echo "${ECHO_T}no" >&6 4765 11413 fi 4766 11414 elif test "${with_libfac}" = yes; then 4767 11415 if (test "${will_have_factory}" = yes) && \ 4768 11416 (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then 4769 echo "$ac_t""yes" 1>&6 4770 cat >> confdefs.h <<\EOF 11417 echo "$as_me:$LINENO: result: yes" >&5 11418 echo "${ECHO_T}yes" >&6 11419 cat >>confdefs.h <<\_ACEOF 4771 11420 #define HAVE_LIBFAC_P 1 4772 EOF11421 _ACEOF 4773 11422 4774 11423 NEED_LIBS="-lsingfac ${NEED_LIBS}" 4775 11424 else 4776 echo "$ac_t""no" 1>&6 4777 { echo "configure: error: can not build with libfac" 1>&2; exit 1; } 11425 echo "$as_me:$LINENO: result: no" >&5 11426 echo "${ECHO_T}no" >&6 11427 { { echo "$as_me:$LINENO: error: can not build with libfac" >&5 11428 echo "$as_me: error: can not build with libfac" >&2;} 11429 { (exit 1); exit 1; }; } 4778 11430 fi 4779 11431 else 4780 echo "$ac_t""no" 1>&6 4781 fi 4782 4783 4784 4785 4786 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 4787 echo "configure:4788: checking whether to have dbm links" >&5 11432 echo "$as_me:$LINENO: result: no" >&5 11433 echo "${ECHO_T}no" >&6 11434 fi 11435 11436 11437 11438 11439 echo "$as_me:$LINENO: checking whether to have dbm links" >&5 11440 echo $ECHO_N "checking whether to have dbm links... $ECHO_C" >&6 4788 11441 if test "$with_dbm" != no; then 4789 cat >> confdefs.h <<\EOF11442 cat >>confdefs.h <<\_ACEOF 4790 11443 #define HAVE_DBM 1 4791 EOF 4792 4793 echo "$ac_t""yes" 1>&6 4794 else 4795 echo "$ac_t""no" 1>&6 4796 fi 4797 4798 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 4799 echo "configure:4800: checking whether to have namespaces" >&5 11444 _ACEOF 11445 11446 echo "$as_me:$LINENO: result: yes" >&5 11447 echo "${ECHO_T}yes" >&6 11448 else 11449 echo "$as_me:$LINENO: result: no" >&5 11450 echo "${ECHO_T}no" >&6 11451 fi 11452 11453 echo "$as_me:$LINENO: checking whether to have namespaces" >&5 11454 echo $ECHO_N "checking whether to have namespaces... $ECHO_C" >&6 4800 11455 if test "$with_namespaces" != no; then 4801 echo "$ac_t""yes" 1>&6 4802 cat >> confdefs.h <<\EOF 11456 echo "$as_me:$LINENO: result: yes" >&5 11457 echo "${ECHO_T}yes" >&6 11458 cat >>confdefs.h <<\_ACEOF 4803 11459 #define HAVE_NS 1 4804 EOF 4805 4806 else 4807 echo "$ac_t""no" 1>&6 4808 fi 4809 4810 echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6 4811 echo "configure:4812: checking whether to have dynamic modules" >&5 11460 _ACEOF 11461 11462 else 11463 echo "$as_me:$LINENO: result: no" >&5 11464 echo "${ECHO_T}no" >&6 11465 fi 11466 11467 echo "$as_me:$LINENO: checking whether to have dynamic modules" >&5 11468 echo $ECHO_N "checking whether to have dynamic modules... $ECHO_C" >&6 4812 11469 if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then 4813 echo "$ac_t""no" 1>&6 4814 else 4815 cat >> confdefs.h <<\EOF 11470 echo "$as_me:$LINENO: result: no" >&5 11471 echo "${ECHO_T}no" >&6 11472 else 11473 cat >>confdefs.h <<\_ACEOF 4816 11474 #define HAVE_DYNAMIC_LOADING 1 4817 EOF 4818 4819 echo "$ac_t""yes" 1>&6 4820 fi 4821 4822 echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6 4823 echo "configure:4824: checking whether to have dynamic kernel" >&5 11475 _ACEOF 11476 11477 echo "$as_me:$LINENO: result: yes" >&5 11478 echo "${ECHO_T}yes" >&6 11479 fi 11480 11481 echo "$as_me:$LINENO: checking whether to have dynamic kernel" >&5 11482 echo $ECHO_N "checking whether to have dynamic kernel... $ECHO_C" >&6 4824 11483 if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then 4825 11484 DL_KERNEL=1 4826 4827 echo "$ac_t""yes" 1>&6 4828 else 4829 echo "$ac_t""no" 1>&6 4830 fi 4831 4832 echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 4833 echo "configure:4834: checking whether to have Plural" >&5 11485 11486 echo "$as_me:$LINENO: result: yes" >&5 11487 echo "${ECHO_T}yes" >&6 11488 else 11489 echo "$as_me:$LINENO: result: no" >&5 11490 echo "${ECHO_T}no" >&6 11491 fi 11492 11493 echo "$as_me:$LINENO: checking whether to have Plural" >&5 11494 echo $ECHO_N "checking whether to have Plural... $ECHO_C" >&6 4834 11495 if test "$with_Plural" != yes && test "$enable_Plural" != yes; then 4835 echo "$ac_t""no" 1>&6 4836 else 4837 cat >> confdefs.h <<\EOF 11496 echo "$as_me:$LINENO: result: no" >&5 11497 echo "${ECHO_T}no" >&6 11498 else 11499 cat >>confdefs.h <<\_ACEOF 4838 11500 #define HAVE_PLURAL 1 4839 EOF 4840 4841 echo "$ac_t""yes" 1>&6 11501 _ACEOF 11502 11503 echo "$as_me:$LINENO: result: yes" >&5 11504 echo "${ECHO_T}yes" >&6 4842 11505 fi 4843 11506 … … 4849 11512 fi 4850 11513 4851 trap '' 1 2 15 4852 cat > confcache <<\EOF 11514 ac_config_files="$ac_config_files ${OUTPUT_MAKEFILES}" 11515 ac_config_commands="$ac_config_commands default" 11516 cat >confcache <<\_ACEOF 4853 11517 # This file is a shell script that caches the results of configure 4854 11518 # tests run on this system so they can be shared between configure 4855 # scripts and configure runs. It is not useful on other systems. 4856 # If it contains results you don't want to keep, you may remove or edit it. 11519 # scripts and configure runs, see configure's option --config-cache. 11520 # It is not useful on other systems. If it contains results you don't 11521 # want to keep, you may remove or edit it. 4857 11522 # 4858 # By default, configure uses ./config.cache as the cache file, 4859 # creating it if it does not exist already. You can give configure 4860 # the --cache-file=FILE option to use a different cache file; that is 4861 # what configure does when it calls configure scripts in 4862 # subdirectories, so they share the cache. 4863 # Giving --cache-file=/dev/null disables caching, for debugging configure. 4864 # config.status only pays attention to the cache file if you give it the 4865 # --recheck option to rerun configure. 11523 # config.status only pays attention to the cache file if you give it 11524 # the --recheck option to rerun configure. 4866 11525 # 4867 EOF 11526 # `ac_cv_env_foo' variables (set or unset) will be overridden when 11527 # loading this file, other *unset* `ac_cv_foo' will be assigned the 11528 # following values. 11529 11530 _ACEOF 11531 4868 11532 # The following way of writing the cache mishandles newlines in values, 4869 11533 # but we know of no workaround that is simple, portable, and efficient. … … 4871 11535 # Ultrix sh set writes to stderr and can't be redirected directly, 4872 11536 # and sets the high bit in the cache file unless we assign to the vars. 4873 (set) 2>&1 | 4874 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4875 *ac_space=\ *) 4876 # `set' does not quote correctly, so add quotes (double-quote substitution 4877 # turns \\\\ into \\, and sed turns \\ into \). 4878 sed -n \ 4879 -e "s/'/'\\\\''/g" \ 4880 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4881 ;; 4882 *) 4883 # `set' quotes correctly as required by POSIX, so do not add quotes. 4884 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4885 ;; 4886 esac >> confcache 4887 if cmp -s $cache_file confcache; then 4888 : 4889 else 11537 { 11538 (set) 2>&1 | 11539 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11540 *ac_space=\ *) 11541 # `set' does not quote correctly, so add quotes (double-quote 11542 # substitution turns \\\\ into \\, and sed turns \\ into \). 11543 sed -n \ 11544 "s/'/'\\\\''/g; 11545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11546 ;; 11547 *) 11548 # `set' quotes correctly as required by POSIX, so do not add quotes. 11549 sed -n \ 11550 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11551 ;; 11552 esac; 11553 } | 11554 sed ' 11555 t clear 11556 : clear 11557 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11558 t end 11559 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11560 : end' >>confcache 11561 if diff $cache_file confcache >/dev/null 2>&1; then :; else 4890 11562 if test -w $cache_file; then 4891 echo "updating cache $cache_file"4892 cat confcache > 11563 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11564 cat confcache >$cache_file 4893 11565 else 4894 11566 echo "not updating unwritable cache $cache_file" … … 4897 11569 rm -f confcache 4898 11570 4899 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 154900 4901 11571 test "x$prefix" = xNONE && prefix=$ac_default_prefix 4902 11572 # Let make expand exec_prefix. 4903 11573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4904 11574 4905 # Any assignment to VPATH causes Sun make to only execute 4906 # the first set of double-colon rules, so remove it if not needed. 4907 # If there is a colon in the path, we need to keep it. 11575 # VPATH may cause trouble with some makes, so we remove $(srcdir), 11576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11577 # trailing colons and then remove the whole line if VPATH becomes empty 11578 # (actually we leave an empty line to preserve line numbers). 4908 11579 if test "x$srcdir" = x.; then 4909 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4910 fi 4911 4912 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 11580 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11581 s/:*\$(srcdir):*/:/; 11582 s/:*\${srcdir}:*/:/; 11583 s/:*@srcdir@:*/:/; 11584 s/^\([^=]*=[ ]*\):*/\1/; 11585 s/:*$//; 11586 s/^[^=]*=[ ]*$//; 11587 }' 11588 fi 4913 11589 4914 11590 DEFS=-DHAVE_CONFIG_H 4915 11591 4916 # Without the "./", some shells look in PATH for config.status. 11592 ac_libobjs= 11593 ac_ltlibobjs= 11594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11595 # 1. Remove the extension, and $U if already installed. 11596 ac_i=`echo "$ac_i" | 11597 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11598 # 2. Add them. 11599 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11600 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 11601 done 11602 LIBOBJS=$ac_libobjs 11603 11604 LTLIBOBJS=$ac_ltlibobjs 11605 11606 11607 4917 11608 : ${CONFIG_STATUS=./config.status} 4918 4919 echo creating $CONFIG_STATUS 4920 rm -f $CONFIG_STATUS 4921 cat > $CONFIG_STATUS <<EOF 4922 #! /bin/sh 4923 # Generated automatically by configure. 11609 ac_clean_files_save=$ac_clean_files 11610 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11611 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11612 echo "$as_me: creating $CONFIG_STATUS" >&6;} 11613 cat >$CONFIG_STATUS <<_ACEOF 11614 #! $SHELL 11615 # Generated by $as_me. 4924 11616 # Run this file to recreate the current configuration. 4925 # This directory was configured as follows,4926 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:4927 #4928 # $0 $ac_configure_args4929 #4930 11617 # Compiler output produced by configure, useful for debugging 4931 # configure, is in ./config.log if it exists. 4932 4933 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4934 for ac_option 11618 # configure, is in config.log if it exists. 11619 11620 debug=false 11621 ac_cs_recheck=false 11622 ac_cs_silent=false 11623 SHELL=\${CONFIG_SHELL-$SHELL} 11624 _ACEOF 11625 11626 cat >>$CONFIG_STATUS <<\_ACEOF 11627 ## --------------------- ## 11628 ## M4sh Initialization. ## 11629 ## --------------------- ## 11630 11631 # Be Bourne compatible 11632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11633 emulate sh 11634 NULLCMD=: 11635 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 11636 # is contrary to our usage. Disable this feature. 11637 alias -g '${1+"$@"}'='"$@"' 11638 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11639 set -o posix 11640 fi 11641 DUALCASE=1; export DUALCASE # for MKS sh 11642 11643 # Support unset when possible. 11644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11645 as_unset=unset 11646 else 11647 as_unset=false 11648 fi 11649 11650 11651 # Work around bugs in pre-3.0 UWIN ksh. 11652 $as_unset ENV MAIL MAILPATH 11653 PS1='$ ' 11654 PS2='> ' 11655 PS4='+ ' 11656 11657 # NLS nuisances. 11658 for as_var in \ 11659 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 11660 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 11661 LC_TELEPHONE LC_TIME 4935 11662 do 4936 case "\$ac_option" in 11663 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 11664 eval $as_var=C; export $as_var 11665 else 11666 $as_unset $as_var 11667 fi 11668 done 11669 11670 # Required to use basename. 11671 if expr a : '\(a\)' >/dev/null 2>&1; then 11672 as_expr=expr 11673 else 11674 as_expr=false 11675 fi 11676 11677 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 11678 as_basename=basename 11679 else 11680 as_basename=false 11681 fi 11682 11683 11684 # Name of the executable. 11685 as_me=`$as_basename "$0" || 11686 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11687 X"$0" : 'X\(//\)$' \| \ 11688 X"$0" : 'X\(/\)$' \| \ 11689 . : '\(.\)' 2>/dev/null || 11690 echo X/"$0" | 11691 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11692 /^X\/\(\/\/\)$/{ s//\1/; q; } 11693 /^X\/\(\/\).*/{ s//\1/; q; } 11694 s/.*/./; q'` 11695 11696 11697 # PATH needs CR, and LINENO needs CR and PATH. 11698 # Avoid depending upon Character Ranges. 11699 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11702 as_cr_digits='0123456789' 11703 as_cr_alnum=$as_cr_Letters$as_cr_digits 11704 11705 # The user is always right. 11706 if test "${PATH_SEPARATOR+set}" != set; then 11707 echo "#! /bin/sh" >conf$$.sh 11708 echo "exit 0" >>conf$$.sh 11709 chmod +x conf$$.sh 11710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11711 PATH_SEPARATOR=';' 11712 else 11713 PATH_SEPARATOR=: 11714 fi 11715 rm -f conf$$.sh 11716 fi 11717 11718 11719 as_lineno_1=$LINENO 11720 as_lineno_2=$LINENO 11721 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11722 test "x$as_lineno_1" != "x$as_lineno_2" && 11723 test "x$as_lineno_3" = "x$as_lineno_2" || { 11724 # Find who we are. Look in the path if we contain no path at all 11725 # relative or not. 11726 case $0 in 11727 *[\\/]* ) as_myself=$0 ;; 11728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11729 for as_dir in $PATH 11730 do 11731 IFS=$as_save_IFS 11732 test -z "$as_dir" && as_dir=. 11733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11734 done 11735 11736 ;; 11737 esac 11738 # We did not find ourselves, most probably we were run as `sh COMMAND' 11739 # in which case we are not to be found in the path. 11740 if test "x$as_myself" = x; then 11741 as_myself=$0 11742 fi 11743 if test ! -f "$as_myself"; then 11744 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11745 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11746 { (exit 1); exit 1; }; } 11747 fi 11748 case $CONFIG_SHELL in 11749 '') 11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11751 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11752 do 11753 IFS=$as_save_IFS 11754 test -z "$as_dir" && as_dir=. 11755 for as_base in sh bash ksh sh5; do 11756 case $as_dir in 11757 /*) 11758 if ("$as_dir/$as_base" -c ' 11759 as_lineno_1=$LINENO 11760 as_lineno_2=$LINENO 11761 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11762 test "x$as_lineno_1" != "x$as_lineno_2" && 11763 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11764 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 11765 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 11766 CONFIG_SHELL=$as_dir/$as_base 11767 export CONFIG_SHELL 11768 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11769 fi;; 11770 esac 11771 done 11772 done 11773 ;; 11774 esac 11775 11776 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11777 # uniformly replaced by the line number. The first 'sed' inserts a 11778 # line-number line before each line; the second 'sed' does the real 11779 # work. The second script uses 'N' to pair each line-number line 11780 # with the numbered line, and appends trailing '-' during 11781 # substitution so that $LINENO is not a special case at line end. 11782 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11783 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11784 sed '=' <$as_myself | 11785 sed ' 11786 N 11787 s,$,-, 11788 : loop 11789 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11790 t loop 11791 s,-$,, 11792 s,^['$as_cr_digits']*\n,, 11793 ' >$as_me.lineno && 11794 chmod +x $as_me.lineno || 11795 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11796 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11797 { (exit 1); exit 1; }; } 11798 11799 # Don't try to exec as it changes $[0], causing all sort of problems 11800 # (the dirname of $[0] is not the place where we might find the 11801 # original and so on. Autoconf is especially sensible to this). 11802 . ./$as_me.lineno 11803 # Exit status is that of the last command. 11804 exit 11805 } 11806 11807 11808 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11809 *c*,-n*) ECHO_N= ECHO_C=' 11810 ' ECHO_T=' ' ;; 11811 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11812 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11813 esac 11814 11815 if expr a : '\(a\)' >/dev/null 2>&1; then 11816 as_expr=expr 11817 else 11818 as_expr=false 11819 fi 11820 11821 rm -f conf$$ conf$$.exe conf$$.file 11822 echo >conf$$.file 11823 if ln -s conf$$.file conf$$ 2>/dev/null; then 11824 # We could just check for DJGPP; but this test a) works b) is more generic 11825 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11826 if test -f conf$$.exe; then 11827 # Don't use ln at all; we don't have any links 11828 as_ln_s='cp -p' 11829 else 11830 as_ln_s='ln -s' 11831 fi 11832 elif ln conf$$.file conf$$ 2>/dev/null; then 11833 as_ln_s=ln 11834 else 11835 as_ln_s='cp -p' 11836 fi 11837 rm -f conf$$ conf$$.exe conf$$.file 11838 11839 if mkdir -p . 2>/dev/null; then 11840 as_mkdir_p=: 11841 else 11842 test -d ./-p && rmdir ./-p 11843 as_mkdir_p=false 11844 fi 11845 11846 as_executable_p="test -f" 11847 11848 # Sed expression to map a string onto a valid CPP name. 11849 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11850 11851 # Sed expression to map a string onto a valid variable name. 11852 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11853 11854 11855 # IFS 11856 # We need space, tab and new line, in precisely that order. 11857 as_nl=' 11858 ' 11859 IFS=" $as_nl" 11860 11861 # CDPATH. 11862 $as_unset CDPATH 11863 11864 exec 6>&1 11865 11866 # Open the log real soon, to keep \$[0] and so on meaningful, and to 11867 # report actual input values of CONFIG_FILES etc. instead of their 11868 # values after options handling. Logging --version etc. is OK. 11869 exec 5>>config.log 11870 { 11871 echo 11872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11873 ## Running $as_me. ## 11874 _ASBOX 11875 } >&5 11876 cat >&5 <<_CSEOF 11877 11878 This file was extended by $as_me, which was 11879 generated by GNU Autoconf 2.59. Invocation command line was 11880 11881 CONFIG_FILES = $CONFIG_FILES 11882 CONFIG_HEADERS = $CONFIG_HEADERS 11883 CONFIG_LINKS = $CONFIG_LINKS 11884 CONFIG_COMMANDS = $CONFIG_COMMANDS 11885 $ $0 $@ 11886 11887 _CSEOF 11888 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11889 echo >&5 11890 _ACEOF 11891 11892 # Files that config.status was made for. 11893 if test -n "$ac_config_files"; then 11894 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11895 fi 11896 11897 if test -n "$ac_config_headers"; then 11898 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11899 fi 11900 11901 if test -n "$ac_config_links"; then 11902 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11903 fi 11904 11905 if test -n "$ac_config_commands"; then 11906 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11907 fi 11908 11909 cat >>$CONFIG_STATUS <<\_ACEOF 11910 11911 ac_cs_usage="\ 11912 \`$as_me' instantiates files from templates according to the 11913 current configuration. 11914 11915 Usage: $0 [OPTIONS] [FILE]... 11916 11917 -h, --help print this help, then exit 11918 -V, --version print version number, then exit 11919 -q, --quiet do not print progress messages 11920 -d, --debug don't remove temporary files 11921 --recheck update $as_me by reconfiguring in the same conditions 11922 --file=FILE[:TEMPLATE] 11923 instantiate the configuration file FILE 11924 --header=FILE[:TEMPLATE] 11925 instantiate the configuration header FILE 11926 11927 Configuration files: 11928 $config_files 11929 11930 Configuration headers: 11931 $config_headers 11932 11933 Configuration commands: 11934 $config_commands 11935 11936 Report bugs to <bug-autoconf@gnu.org>." 11937 _ACEOF 11938 11939 cat >>$CONFIG_STATUS <<_ACEOF 11940 ac_cs_version="\\ 11941 config.status 11942 configured by $0, generated by GNU Autoconf 2.59, 11943 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11944 11945 Copyright (C) 2003 Free Software Foundation, Inc. 11946 This config.status script is free software; the Free Software Foundation 11947 gives unlimited permission to copy, distribute and modify it." 11948 srcdir=$srcdir 11949 INSTALL="$INSTALL" 11950 _ACEOF 11951 11952 cat >>$CONFIG_STATUS <<\_ACEOF 11953 # If no file are specified by the user, then we need to provide default 11954 # value. By we need to know if files were specified by the user. 11955 ac_need_defaults=: 11956 while test $# != 0 11957 do 11958 case $1 in 11959 --*=*) 11960 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11961 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11962 ac_shift=: 11963 ;; 11964 -*) 11965 ac_option=$1 11966 ac_optarg=$2 11967 ac_shift=shift 11968 ;; 11969 *) # This is not an option, so the user has probably given explicit 11970 # arguments. 11971 ac_option=$1 11972 ac_need_defaults=false;; 11973 esac 11974 11975 case $ac_option in 11976 # Handling of the options. 11977 _ACEOF 11978 cat >>$CONFIG_STATUS <<\_ACEOF 4937 11979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4938 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4939 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4940 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4941 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4942 exit 0 ;; 4943 -help | --help | --hel | --he | --h) 4944 echo "\$ac_cs_usage"; exit 0 ;; 4945 *) echo "\$ac_cs_usage"; exit 1 ;; 11980 ac_cs_recheck=: ;; 11981 --version | --vers* | -V ) 11982 echo "$ac_cs_version"; exit 0 ;; 11983 --he | --h) 11984 # Conflict between --help and --header 11985 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11986 Try \`$0 --help' for more information." >&5 11987 echo "$as_me: error: ambiguous option: $1 11988 Try \`$0 --help' for more information." >&2;} 11989 { (exit 1); exit 1; }; };; 11990 --help | --hel | -h ) 11991 echo "$ac_cs_usage"; exit 0 ;; 11992 --debug | --d* | -d ) 11993 debug=: ;; 11994 --file | --fil | --fi | --f ) 11995 $ac_shift 11996 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11997 ac_need_defaults=false;; 11998 --header | --heade | --head | --hea ) 11999 $ac_shift 12000 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12001 ac_need_defaults=false;; 12002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12003 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12004 ac_cs_silent=: ;; 12005 12006 # This is an error. 12007 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 12008 Try \`$0 --help' for more information." >&5 12009 echo "$as_me: error: unrecognized option: $1 12010 Try \`$0 --help' for more information." >&2;} 12011 { (exit 1); exit 1; }; } ;; 12012 12013 *) ac_config_targets="$ac_config_targets $1" ;; 12014 12015 esac 12016 shift 12017 done 12018 12019 ac_configure_extra_args= 12020 12021 if $ac_cs_silent; then 12022 exec 6>/dev/null 12023 ac_configure_extra_args="$ac_configure_extra_args --silent" 12024 fi 12025 12026 _ACEOF 12027 cat >>$CONFIG_STATUS <<_ACEOF 12028 if \$ac_cs_recheck; then 12029 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12030 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12031 fi 12032 12033 _ACEOF 12034 12035 12036 12037 12038 12039 cat >>$CONFIG_STATUS <<\_ACEOF 12040 for ac_config_target in $ac_config_targets 12041 do 12042 case "$ac_config_target" in 12043 # Handling of arguments. 12044 "${OUTPUT_MAKEFILES}" ) CONFIG_FILES="$CONFIG_FILES ${OUTPUT_MAKEFILES}" ;; 12045 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 12046 "mod2.h" ) CONFIG_HEADERS="$CONFIG_HEADERS mod2.h" ;; 12047 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12048 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12049 { (exit 1); exit 1; }; };; 4946 12050 esac 4947 12051 done 4948 12052 4949 ac_given_srcdir=$srcdir 4950 ac_given_INSTALL="$INSTALL" 4951 4952 trap 'rm -fr `echo "${OUTPUT_MAKEFILES} mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4953 EOF 4954 cat >> $CONFIG_STATUS <<EOF 4955 4956 # Protect against being on the right side of a sed subst in config.status. 4957 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4958 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4959 $ac_vpsub 12053 # If the user did not use the arguments to specify the items to instantiate, 12054 # then the envvar interface is used. Set only those that are not. 12055 # We use the long form for the default assignment because of an extremely 12056 # bizarre bug on SunOS 4.1.3. 12057 if $ac_need_defaults; then 12058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12060 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12061 fi 12062 12063 # Have a temporary directory for convenience. Make it in the build tree 12064 # simply because there is no reason to put it here, and in addition, 12065 # creating and moving files from /tmp can sometimes cause problems. 12066 # Create a temporary directory, and hook for its removal unless debugging. 12067 $debug || 12068 { 12069 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12070 trap '{ (exit 1); exit 1; }' 1 2 13 15 12071 } 12072 12073 # Create a (secure) tmp directory for tmp files. 12074 12075 { 12076 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 12077 test -n "$tmp" && test -d "$tmp" 12078 } || 12079 { 12080 tmp=./confstat$$-$RANDOM 12081 (umask 077 && mkdir $tmp) 12082 } || 12083 { 12084 echo "$me: cannot create a temporary directory in ." >&2 12085 { (exit 1); exit 1; } 12086 } 12087 12088 _ACEOF 12089 12090 cat >>$CONFIG_STATUS <<_ACEOF 12091 12092 # 12093 # CONFIG_FILES section. 12094 # 12095 12096 # No need to generate the scripts if there are no CONFIG_FILES. 12097 # This happens for instance when ./config.status config.h 12098 if test -n "\$CONFIG_FILES"; then 12099 # Protect against being on the right side of a sed subst in config.status. 12100 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12101 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12102 s,@SHELL@,$SHELL,;t t 12103 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12104 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 12105 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 12106 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 12107 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 12108 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 12109 s,@exec_prefix@,$exec_prefix,;t t 12110 s,@prefix@,$prefix,;t t 12111 s,@program_transform_name@,$program_transform_name,;t t 12112 s,@bindir@,$bindir,;t t 12113 s,@sbindir@,$sbindir,;t t 12114 s,@libexecdir@,$libexecdir,;t t 12115 s,@datadir@,$datadir,;t t 12116 s,@sysconfdir@,$sysconfdir,;t t 12117 s,@sharedstatedir@,$sharedstatedir,;t t 12118 s,@localstatedir@,$localstatedir,;t t 12119 s,@libdir@,$libdir,;t t 12120 s,@includedir@,$includedir,;t t 12121 s,@oldincludedir@,$oldincludedir,;t t 12122 s,@infodir@,$infodir,;t t 12123 s,@mandir@,$mandir,;t t 12124 s,@build_alias@,$build_alias,;t t 12125 s,@host_alias@,$host_alias,;t t 12126 s,@target_alias@,$target_alias,;t t 12127 s,@DEFS@,$DEFS,;t t 12128 s,@ECHO_C@,$ECHO_C,;t t 12129 s,@ECHO_N@,$ECHO_N,;t t 12130 s,@ECHO_T@,$ECHO_T,;t t 12131 s,@LIBS@,$LIBS,;t t 12132 s,@SINGUNAME@,$SINGUNAME,;t t 12133 s,@EXEC_EXT@,$EXEC_EXT,;t t 12134 s,@SING_UNAME@,$SING_UNAME,;t t 12135 s,@SINGULAR_VERSION@,$SINGULAR_VERSION,;t t 12136 s,@VERSION_DATE@,$VERSION_DATE,;t t 12137 s,@SINGULAR_MAJOR_VERSION@,$SINGULAR_MAJOR_VERSION,;t t 12138 s,@SINGULAR_MINOR_VERSION@,$SINGULAR_MINOR_VERSION,;t t 12139 s,@SINGULAR_SUB_VERSION@,$SINGULAR_SUB_VERSION,;t t 12140 s,@CC@,$CC,;t t 12141 s,@CFLAGS@,$CFLAGS,;t t 12142 s,@LDFLAGS@,$LDFLAGS,;t t 12143 s,@CPPFLAGS@,$CPPFLAGS,;t t 12144 s,@ac_ct_CC@,$ac_ct_CC,;t t 12145 s,@EXEEXT@,$EXEEXT,;t t 12146 s,@OBJEXT@,$OBJEXT,;t t 12147 s,@CPP@,$CPP,;t t 12148 s,@CXX@,$CXX,;t t 12149 s,@CXXFLAGS@,$CXXFLAGS,;t t 12150 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 12151 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 12152 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12153 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12154 s,@EGREP@,$EGREP,;t t 12155 s,@PIPE@,$PIPE,;t t 12156 s,@CXXTEMPLFLAGS@,$CXXTEMPLFLAGS,;t t 12157 s,@CXXNOOPTFLAGS@,$CXXNOOPTFLAGS,;t t 12158 s,@STATIC_LDFLAGS@,$STATIC_LDFLAGS,;t t 12159 s,@SET_MAKE@,$SET_MAKE,;t t 12160 s,@SINGULAR@,$SINGULAR,;t t 12161 s,@LEX@,$LEX,;t t 12162 s,@BISON@,$BISON,;t t 12163 s,@LN_S@,$LN_S,;t t 12164 s,@PERL@,$PERL,;t t 12165 s,@LD_DYN_FLAGS@,$LD_DYN_FLAGS,;t t 12166 s,@SFLAGS@,$SFLAGS,;t t 12167 s,@SLDFLAGS@,$SLDFLAGS,;t t 12168 s,@LD@,$LD,;t t 12169 s,@ALLOCA@,$ALLOCA,;t t 12170 s,@CXXCPP@,$CXXCPP,;t t 12171 s,@HAVE_MPSR@,$HAVE_MPSR,;t t 12172 s,@MP_LIBS@,$MP_LIBS,;t t 12173 s,@NEED_LIBS@,$NEED_LIBS,;t t 12174 s,@DL_KERNEL@,$DL_KERNEL,;t t 12175 s,@LIBOBJS@,$LIBOBJS,;t t 12176 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12177 CEOF 12178 12179 _ACEOF 12180 12181 cat >>$CONFIG_STATUS <<\_ACEOF 12182 # Split the substitutions into bite-sized pieces for seds with 12183 # small command number limits, like on Digital OSF/1 and HP-UX. 12184 ac_max_sed_lines=48 12185 ac_sed_frag=1 # Number of current file. 12186 ac_beg=1 # First line for current file. 12187 ac_end=$ac_max_sed_lines # Line after last line for current file. 12188 ac_more_lines=: 12189 ac_sed_cmds= 12190 while $ac_more_lines; do 12191 if test $ac_beg -gt 1; then 12192 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12193 else 12194 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12195 fi 12196 if test ! -s $tmp/subs.frag; then 12197 ac_more_lines=false 12198 else 12199 # The purpose of the label and of the branching condition is to 12200 # speed up the sed processing (if there are no `@' at all, there 12201 # is no need to browse any of the substitutions). 12202 # These are the two extra sed commands mentioned above. 12203 (echo ':t 12204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12205 if test -z "$ac_sed_cmds"; then 12206 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12207 else 12208 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12209 fi 12210 ac_sed_frag=`expr $ac_sed_frag + 1` 12211 ac_beg=$ac_end 12212 ac_end=`expr $ac_end + $ac_max_sed_lines` 12213 fi 12214 done 12215 if test -z "$ac_sed_cmds"; then 12216 ac_sed_cmds=cat 12217 fi 12218 fi # test -n "$CONFIG_FILES" 12219 12220 _ACEOF 12221 cat >>$CONFIG_STATUS <<\_ACEOF 12222 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12224 case $ac_file in 12225 - | *:- | *:-:* ) # input from stdin 12226 cat >$tmp/stdin 12227 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12228 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12229 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12230 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12231 * ) ac_file_in=$ac_file.in ;; 12232 esac 12233 12234 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12235 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12237 X"$ac_file" : 'X\(//\)[^/]' \| \ 12238 X"$ac_file" : 'X\(//\)$' \| \ 12239 X"$ac_file" : 'X\(/\)' \| \ 12240 . : '\(.\)' 2>/dev/null || 12241 echo X"$ac_file" | 12242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12243 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12244 /^X\(\/\/\)$/{ s//\1/; q; } 12245 /^X\(\/\).*/{ s//\1/; q; } 12246 s/.*/./; q'` 12247 { if $as_mkdir_p; then 12248 mkdir -p "$ac_dir" 12249 else 12250 as_dir="$ac_dir" 12251 as_dirs= 12252 while test ! -d "$as_dir"; do 12253 as_dirs="$as_dir $as_dirs" 12254 as_dir=`(dirname "$as_dir") 2>/dev/null || 12255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12256 X"$as_dir" : 'X\(//\)[^/]' \| \ 12257 X"$as_dir" : 'X\(//\)$' \| \ 12258 X"$as_dir" : 'X\(/\)' \| \ 12259 . : '\(.\)' 2>/dev/null || 12260 echo X"$as_dir" | 12261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12262 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12263 /^X\(\/\/\)$/{ s//\1/; q; } 12264 /^X\(\/\).*/{ s//\1/; q; } 12265 s/.*/./; q'` 12266 done 12267 test ! -n "$as_dirs" || mkdir $as_dirs 12268 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12269 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12270 { (exit 1); exit 1; }; }; } 12271 12272 ac_builddir=. 12273 12274 if test "$ac_dir" != .; then 12275 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12276 # A "../" for each directory in $ac_dir_suffix. 12277 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12278 else 12279 ac_dir_suffix= ac_top_builddir= 12280 fi 12281 12282 case $srcdir in 12283 .) # No --srcdir option. We are building in place. 12284 ac_srcdir=. 12285 if test -z "$ac_top_builddir"; then 12286 ac_top_srcdir=. 12287 else 12288 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12289 fi ;; 12290 [\\/]* | ?:[\\/]* ) # Absolute path. 12291 ac_srcdir=$srcdir$ac_dir_suffix; 12292 ac_top_srcdir=$srcdir ;; 12293 *) # Relative path. 12294 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12295 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12296 esac 12297 12298 # Do not use `cd foo && pwd` to compute absolute paths, because 12299 # the directories may not exist. 12300 case `pwd` in 12301 .) ac_abs_builddir="$ac_dir";; 12302 *) 12303 case "$ac_dir" in 12304 .) ac_abs_builddir=`pwd`;; 12305 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12306 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12307 esac;; 12308 esac 12309 case $ac_abs_builddir in 12310 .) ac_abs_top_builddir=${ac_top_builddir}.;; 12311 *) 12312 case ${ac_top_builddir}. in 12313 .) ac_abs_top_builddir=$ac_abs_builddir;; 12314 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12315 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12316 esac;; 12317 esac 12318 case $ac_abs_builddir in 12319 .) ac_abs_srcdir=$ac_srcdir;; 12320 *) 12321 case $ac_srcdir in 12322 .) ac_abs_srcdir=$ac_abs_builddir;; 12323 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12324 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12325 esac;; 12326 esac 12327 case $ac_abs_builddir in 12328 .) ac_abs_top_srcdir=$ac_top_srcdir;; 12329 *) 12330 case $ac_top_srcdir in 12331 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12332 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12333 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12334 esac;; 12335 esac 12336 12337 12338 case $INSTALL in 12339 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12340 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 12341 esac 12342 12343 if test x"$ac_file" != x-; then 12344 { echo "$as_me:$LINENO: creating $ac_file" >&5 12345 echo "$as_me: creating $ac_file" >&6;} 12346 rm -f "$ac_file" 12347 fi 12348 # Let's still pretend it is `configure' which instantiates (i.e., don't 12349 # use $as_me), people would be surprised to read: 12350 # /* config.h. Generated by config.status. */ 12351 if test x"$ac_file" = x-; then 12352 configure_input= 12353 else 12354 configure_input="$ac_file. " 12355 fi 12356 configure_input=$configure_input"Generated from `echo $ac_file_in | 12357 sed 's,.*/,,'` by configure." 12358 12359 # First look for the input files in the build tree, otherwise in the 12360 # src tree. 12361 ac_file_inputs=`IFS=: 12362 for f in $ac_file_in; do 12363 case $f in 12364 -) echo $tmp/stdin ;; 12365 [\\/$]*) 12366 # Absolute (can't be DOS-style, as IFS=:) 12367 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12368 echo "$as_me: error: cannot find input file: $f" >&2;} 12369 { (exit 1); exit 1; }; } 12370 echo "$f";; 12371 *) # Relative 12372 if test -f "$f"; then 12373 # Build tree 12374 echo "$f" 12375 elif test -f "$srcdir/$f"; then 12376 # Source tree 12377 echo "$srcdir/$f" 12378 else 12379 # /dev/null tree 12380 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12381 echo "$as_me: error: cannot find input file: $f" >&2;} 12382 { (exit 1); exit 1; }; } 12383 fi;; 12384 esac 12385 done` || { (exit 1); exit 1; } 12386 _ACEOF 12387 cat >>$CONFIG_STATUS <<_ACEOF 12388 sed "$ac_vpsub 4960 12389 $extrasub 4961 s%@SHELL@%$SHELL%g 4962 s%@CFLAGS@%$CFLAGS%g 4963 s%@CPPFLAGS@%$CPPFLAGS%g 4964 s%@CXXFLAGS@%$CXXFLAGS%g 4965 s%@FFLAGS@%$FFLAGS%g 4966 s%@DEFS@%$DEFS%g 4967 s%@LDFLAGS@%$LDFLAGS%g 4968 s%@LIBS@%$LIBS%g 4969 s%@exec_prefix@%$exec_prefix%g 4970 s%@prefix@%$prefix%g 4971 s%@program_transform_name@%$program_transform_name%g 4972 s%@bindir@%$bindir%g 4973 s%@sbindir@%$sbindir%g 4974 s%@libexecdir@%$libexecdir%g 4975 s%@datadir@%$datadir%g 4976 s%@sysconfdir@%$sysconfdir%g 4977 s%@sharedstatedir@%$sharedstatedir%g 4978 s%@localstatedir@%$localstatedir%g 4979 s%@libdir@%$libdir%g 4980 s%@includedir@%$includedir%g 4981 s%@oldincludedir@%$oldincludedir%g 4982 s%@infodir@%$infodir%g 4983 s%@mandir@%$mandir%g 4984 s%@SINGUNAME@%$SINGUNAME%g 4985 s%@EXEC_EXT@%$EXEC_EXT%g 4986 s%@SING_UNAME@%$SING_UNAME%g 4987 s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g 4988 s%@VERSION_DATE@%$VERSION_DATE%g 4989 s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g 4990 s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g 4991 s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g 4992 s%@CC@%$CC%g 4993 s%@CPP@%$CPP%g 4994 s%@CXX@%$CXX%g 4995 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4996 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4997 s%@INSTALL_DATA@%$INSTALL_DATA%g 4998 s%@PIPE@%$PIPE%g 4999 s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g 5000 s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g 5001 s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g 5002 s%@SET_MAKE@%$SET_MAKE%g 5003 s%@SINGULAR@%$SINGULAR%g 5004 s%@LEX@%$LEX%g 5005 s%@BISON@%$BISON%g 5006 s%@LN_S@%$LN_S%g 5007 s%@PERL@%$PERL%g 5008 s%@LD_DYN_FLAGS@%$LD_DYN_FLAGS%g 5009 s%@SFLAGS@%$SFLAGS%g 5010 s%@SLDFLAGS@%$SLDFLAGS%g 5011 s%@LD@%$LD%g 5012 s%@ALLOCA@%$ALLOCA%g 5013 s%@CXXCPP@%$CXXCPP%g 5014 s%@HAVE_MPSR@%$HAVE_MPSR%g 5015 s%@MP_LIBS@%$MP_LIBS%g 5016 s%@NEED_LIBS@%$NEED_LIBS%g 5017 s%@DL_KERNEL@%$DL_KERNEL%g 5018 5019 CEOF 5020 EOF 5021 5022 cat >> $CONFIG_STATUS <<\EOF 5023 5024 # Split the substitutions into bite-sized pieces for seds with 5025 # small command number limits, like on Digital OSF/1 and HP-UX. 5026 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 5027 ac_file=1 # Number of current file. 5028 ac_beg=1 # First line for current file. 5029 ac_end=$ac_max_sed_cmds # Line after last line for current file. 5030 ac_more_lines=: 5031 ac_sed_cmds="" 5032 while $ac_more_lines; do 5033 if test $ac_beg -gt 1; then 5034 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 12390 _ACEOF 12391 cat >>$CONFIG_STATUS <<\_ACEOF 12392 :t 12393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12394 s,@configure_input@,$configure_input,;t t 12395 s,@srcdir@,$ac_srcdir,;t t 12396 s,@abs_srcdir@,$ac_abs_srcdir,;t t 12397 s,@top_srcdir@,$ac_top_srcdir,;t t 12398 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12399 s,@builddir@,$ac_builddir,;t t 12400 s,@abs_builddir@,$ac_abs_builddir,;t t 12401 s,@top_builddir@,$ac_top_builddir,;t t 12402 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12403 s,@INSTALL@,$ac_INSTALL,;t t 12404 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12405 rm -f $tmp/stdin 12406 if test x"$ac_file" != x-; then 12407 mv $tmp/out $ac_file 5035 12408 else 5036 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 12409 cat $tmp/out 12410 rm -f $tmp/out 5037 12411 fi 5038 if test ! -s conftest.s$ac_file; then 5039 ac_more_lines=false 5040 rm -f conftest.s$ac_file 5041 else 5042 if test -z "$ac_sed_cmds"; then 5043 ac_sed_cmds="sed -f conftest.s$ac_file" 5044 else 5045 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 5046 fi 5047 ac_file=`expr $ac_file + 1` 5048 ac_beg=$ac_end 5049 ac_end=`expr $ac_end + $ac_max_sed_cmds` 5050 fi 12412 5051 12413 done 5052 if test -z "$ac_sed_cmds"; then 5053 ac_sed_cmds=cat 5054 fi 5055 EOF 5056 5057 cat >> $CONFIG_STATUS <<EOF 5058 5059 CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"} 5060 EOF 5061 cat >> $CONFIG_STATUS <<\EOF 5062 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 5063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5064 case "$ac_file" in 5065 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5066 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5067 *) ac_file_in="${ac_file}.in" ;; 5068 esac 5069 5070 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 5071 5072 # Remove last slash and all that follows it. Not all systems have dirname. 5073 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5074 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5075 # The file is in a subdirectory. 5076 test ! -d "$ac_dir" && mkdir "$ac_dir" 5077 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5078 # A "../" for each directory in $ac_dir_suffix. 5079 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 5080 else 5081 ac_dir_suffix= ac_dots= 5082 fi 5083 5084 case "$ac_given_srcdir" in 5085 .) srcdir=. 5086 if test -z "$ac_dots"; then top_srcdir=. 5087 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 5088 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5089 *) # Relative path. 5090 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 5091 top_srcdir="$ac_dots$ac_given_srcdir" ;; 5092 esac 5093 5094 case "$ac_given_INSTALL" in 5095 [/$]*) INSTALL="$ac_given_INSTALL" ;; 5096 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 5097 esac 5098 5099 echo creating "$ac_file" 5100 rm -f "$ac_file" 5101 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 5102 case "$ac_file" in 5103 *Makefile*) ac_comsub="1i\\ 5104 # $configure_input" ;; 5105 *) ac_comsub= ;; 5106 esac 5107 5108 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5109 sed -e "$ac_comsub 5110 s%@configure_input@%$configure_input%g 5111 s%@srcdir@%$srcdir%g 5112 s%@top_srcdir@%$top_srcdir%g 5113 s%@INSTALL@%$INSTALL%g 5114 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 5115 fi; done 5116 rm -f conftest.s* 12414 _ACEOF 12415 cat >>$CONFIG_STATUS <<\_ACEOF 12416 12417 # 12418 # CONFIG_HEADER section. 12419 # 5117 12420 5118 12421 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 5120 12423 # 5121 12424 # ac_d sets the value in "#define NAME VALUE" lines. 5122 ac_dA='s %^\([ ]*\)#\([ ]*define[ ][]*\)'5123 ac_dB=' \([ ][ ]*\)[^ ]*%\1#\2'5124 ac_dC=' \3'5125 ac_dD=' %g'5126 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".5127 ac_uA='s %^\([ ]*\)#\([ ]*\)undef\([ ][]*\)'5128 ac_uB=' \([ ]\)%\1#\2define\3'12425 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12426 ac_dB='[ ].*$,\1#\2' 12427 ac_dC=' ' 12428 ac_dD=',;t' 12429 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12430 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12431 ac_uB='$,\1#\2define\3' 5129 12432 ac_uC=' ' 5130 ac_uD='\4%g' 5131 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5132 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5133 ac_eB='$%\1#\2define\3' 5134 ac_eC=' ' 5135 ac_eD='%g' 5136 5137 if test "${CONFIG_HEADERS+set}" != set; then 5138 EOF 5139 cat >> $CONFIG_STATUS <<EOF 5140 CONFIG_HEADERS="mod2.h" 5141 EOF 5142 cat >> $CONFIG_STATUS <<\EOF 5143 fi 5144 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 12433 ac_uD=',;t' 12434 12435 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5145 12436 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5146 case "$ac_file" in 5147 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5148 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5149 *) ac_file_in="${ac_file}.in" ;; 12437 case $ac_file in 12438 - | *:- | *:-:* ) # input from stdin 12439 cat >$tmp/stdin 12440 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12441 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12442 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12444 * ) ac_file_in=$ac_file.in ;; 5150 12445 esac 5151 12446 5152 echo creating $ac_file 5153 5154 rm -f conftest.frag conftest.in conftest.out 5155 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5156 cat $ac_file_inputs > conftest.in 5157 5158 EOF 5159 5160 # Transform confdefs.h into a sed script conftest.vals that substitutes 5161 # the proper values into config.h.in to produce config.h. And first: 5162 # Protect against being on the right side of a sed subst in config.status. 5163 # Protect against being in an unquoted here document in config.status. 5164 rm -f conftest.vals 5165 cat > conftest.hdr <<\EOF 5166 s/[\\&%]/\\&/g 5167 s%[\\$`]%\\&%g 5168 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 5169 s%ac_d%ac_u%gp 5170 s%ac_u%ac_e%gp 5171 EOF 5172 sed -n -f conftest.hdr confdefs.h > conftest.vals 5173 rm -f conftest.hdr 12447 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 12448 echo "$as_me: creating $ac_file" >&6;} 12449 12450 # First look for the input files in the build tree, otherwise in the 12451 # src tree. 12452 ac_file_inputs=`IFS=: 12453 for f in $ac_file_in; do 12454 case $f in 12455 -) echo $tmp/stdin ;; 12456 [\\/$]*) 12457 # Absolute (can't be DOS-style, as IFS=:) 12458 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12459 echo "$as_me: error: cannot find input file: $f" >&2;} 12460 { (exit 1); exit 1; }; } 12461 # Do quote $f, to prevent DOS paths from being IFS'd. 12462 echo "$f";; 12463 *) # Relative 12464 if test -f "$f"; then 12465 # Build tree 12466 echo "$f" 12467 elif test -f "$srcdir/$f"; then 12468 # Source tree 12469 echo "$srcdir/$f" 12470 else 12471 # /dev/null tree 12472 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12473 echo "$as_me: error: cannot find input file: $f" >&2;} 12474 { (exit 1); exit 1; }; } 12475 fi;; 12476 esac 12477 done` || { (exit 1); exit 1; } 12478 # Remove the trailing spaces. 12479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 12480 12481 _ACEOF 12482 12483 # Transform confdefs.h into two sed scripts, `conftest.defines' and 12484 # `conftest.undefs', that substitutes the proper values into 12485 # config.h.in to produce config.h. The first handles `#define' 12486 # templates, and the second `#undef' templates. 12487 # And first: Protect against being on the right side of a sed subst in 12488 # config.status. Protect against being in an unquoted here document 12489 # in config.status. 12490 rm -f conftest.defines conftest.undefs 12491 # Using a here document instead of a string reduces the quoting nightmare. 12492 # Putting comments in sed scripts is not portable. 12493 # 12494 # `end' is used to avoid that the second main sed command (meant for 12495 # 0-ary CPP macros) applies to n-ary macro definitions. 12496 # See the Autoconf documentation for `clear'. 12497 cat >confdef2sed.sed <<\_ACEOF 12498 s/[\\&,]/\\&/g 12499 s,[\\$`],\\&,g 12500 t clear 12501 : clear 12502 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 12503 t end 12504 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 12505 : end 12506 _ACEOF 12507 # If some macros were called several times there might be several times 12508 # the same #defines, which is useless. Nevertheless, we may not want to 12509 # sort them, since we want the *last* AC-DEFINE to be honored. 12510 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 12511 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 12512 rm -f confdef2sed.sed 5174 12513 5175 12514 # This sed command replaces #undef with comments. This is necessary, for 5176 12515 # example, in the case of _POSIX_SOURCE, which is predefined and required 5177 12516 # on some systems where configure will not decide to define it. 5178 cat >> conftest.vals <<\EOF 5179 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 5180 EOF 5181 5182 # Break up conftest.vals because some shells have a limit on 5183 # the size of here documents, and old seds have small limits too. 5184 12517 cat >>conftest.undefs <<\_ACEOF 12518 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12519 _ACEOF 12520 12521 # Break up conftest.defines because some shells have a limit on the size 12522 # of here documents, and old seds have small limits too (100 cmds). 12523 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12524 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12525 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12526 echo ' :' >>$CONFIG_STATUS 5185 12527 rm -f conftest.tail 5186 while :12528 while grep . conftest.defines >/dev/null 5187 12529 do 5188 ac_lines=`grep -c . conftest.vals` 5189 # grep -c gives empty output for an empty file on some AIX systems. 5190 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 5191 # Write a limited-size here document to conftest.frag. 5192 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 5193 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 12530 # Write a limited-size here document to $tmp/defines.sed. 12531 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12532 # Speed up: don't consider the non `#define' lines. 12533 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12534 # Work around the forget-to-reset-the-flag bug. 12535 echo 't clr' >>$CONFIG_STATUS 12536 echo ': clr' >>$CONFIG_STATUS 12537 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 5194 12538 echo 'CEOF 5195 sed -f conftest.frag conftest.in > conftest.out5196 rm -f conftest.in5197 mv conftest.out conftest.in5198 ' >> 5199 sed 1,${ac_max_here_lines}d conftest. vals >conftest.tail5200 rm -f conftest. vals5201 mv conftest.tail conftest. vals12539 sed -f $tmp/defines.sed $tmp/in >$tmp/out 12540 rm -f $tmp/in 12541 mv $tmp/out $tmp/in 12542 ' >>$CONFIG_STATUS 12543 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12544 rm -f conftest.defines 12545 mv conftest.tail conftest.defines 5202 12546 done 5203 rm -f conftest.vals 5204 5205 cat >> $CONFIG_STATUS <<\EOF 5206 rm -f conftest.frag conftest.h 5207 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 5208 cat conftest.in >> conftest.h 5209 rm -f conftest.in 5210 if cmp -s $ac_file conftest.h 2>/dev/null; then 5211 echo "$ac_file is unchanged" 5212 rm -f conftest.h 12547 rm -f conftest.defines 12548 echo ' fi # grep' >>$CONFIG_STATUS 12549 echo >>$CONFIG_STATUS 12550 12551 # Break up conftest.undefs because some shells have a limit on the size 12552 # of here documents, and old seds have small limits too (100 cmds). 12553 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 12554 rm -f conftest.tail 12555 while grep . conftest.undefs >/dev/null 12556 do 12557 # Write a limited-size here document to $tmp/undefs.sed. 12558 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12559 # Speed up: don't consider the non `#undef' 12560 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12561 # Work around the forget-to-reset-the-flag bug. 12562 echo 't clr' >>$CONFIG_STATUS 12563 echo ': clr' >>$CONFIG_STATUS 12564 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 12565 echo 'CEOF 12566 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12567 rm -f $tmp/in 12568 mv $tmp/out $tmp/in 12569 ' >>$CONFIG_STATUS 12570 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 12571 rm -f conftest.undefs 12572 mv conftest.tail conftest.undefs 12573 done 12574 rm -f conftest.undefs 12575 12576 cat >>$CONFIG_STATUS <<\_ACEOF 12577 # Let's still pretend it is `configure' which instantiates (i.e., don't 12578 # use $as_me), people would be surprised to read: 12579 # /* config.h. Generated by config.status. */ 12580 if test x"$ac_file" = x-; then 12581 echo "/* Generated by configure. */" >$tmp/config.h 5213 12582 else 5214 # Remove last slash and all that follows it. Not all systems have dirname. 5215 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5216 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5217 # The file is in a subdirectory. 5218 test ! -d "$ac_dir" && mkdir "$ac_dir" 12583 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 12584 fi 12585 cat $tmp/in >>$tmp/config.h 12586 rm -f $tmp/in 12587 if test x"$ac_file" != x-; then 12588 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 12589 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 12590 echo "$as_me: $ac_file is unchanged" >&6;} 12591 else 12592 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12594 X"$ac_file" : 'X\(//\)[^/]' \| \ 12595 X"$ac_file" : 'X\(//\)$' \| \ 12596 X"$ac_file" : 'X\(/\)' \| \ 12597 . : '\(.\)' 2>/dev/null || 12598 echo X"$ac_file" | 12599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12600 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12601 /^X\(\/\/\)$/{ s//\1/; q; } 12602 /^X\(\/\).*/{ s//\1/; q; } 12603 s/.*/./; q'` 12604 { if $as_mkdir_p; then 12605 mkdir -p "$ac_dir" 12606 else 12607 as_dir="$ac_dir" 12608 as_dirs= 12609 while test ! -d "$as_dir"; do 12610 as_dirs="$as_dir $as_dirs" 12611 as_dir=`(dirname "$as_dir") 2>/dev/null || 12612 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12613 X"$as_dir" : 'X\(//\)[^/]' \| \ 12614 X"$as_dir" : 'X\(//\)$' \| \ 12615 X"$as_dir" : 'X\(/\)' \| \ 12616 . : '\(.\)' 2>/dev/null || 12617 echo X"$as_dir" | 12618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12619 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12620 /^X\(\/\/\)$/{ s//\1/; q; } 12621 /^X\(\/\).*/{ s//\1/; q; } 12622 s/.*/./; q'` 12623 done 12624 test ! -n "$as_dirs" || mkdir $as_dirs 12625 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12626 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12627 { (exit 1); exit 1; }; }; } 12628 12629 rm -f $ac_file 12630 mv $tmp/config.h $ac_file 5219 12631 fi 5220 rm -f $ac_file 5221 mv conftest.h $ac_file 12632 else 12633 cat $tmp/config.h 12634 rm -f $tmp/config.h 5222 12635 fi 5223 fi; done 5224 5225 EOF 5226 cat >> $CONFIG_STATUS <<EOF 5227 5228 EOF 5229 cat >> $CONFIG_STATUS <<\EOF 5230 \ 5231 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi 5232 exit 0 5233 EOF 12636 done 12637 _ACEOF 12638 cat >>$CONFIG_STATUS <<\_ACEOF 12639 12640 # 12641 # CONFIG_COMMANDS section. 12642 # 12643 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 12644 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 12645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 12646 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 12647 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12648 X"$ac_dest" : 'X\(//\)[^/]' \| \ 12649 X"$ac_dest" : 'X\(//\)$' \| \ 12650 X"$ac_dest" : 'X\(/\)' \| \ 12651 . : '\(.\)' 2>/dev/null || 12652 echo X"$ac_dest" | 12653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12654 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12655 /^X\(\/\/\)$/{ s//\1/; q; } 12656 /^X\(\/\).*/{ s//\1/; q; } 12657 s/.*/./; q'` 12658 { if $as_mkdir_p; then 12659 mkdir -p "$ac_dir" 12660 else 12661 as_dir="$ac_dir" 12662 as_dirs= 12663 while test ! -d "$as_dir"; do 12664 as_dirs="$as_dir $as_dirs" 12665 as_dir=`(dirname "$as_dir") 2>/dev/null || 12666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12667 X"$as_dir" : 'X\(//\)[^/]' \| \ 12668 X"$as_dir" : 'X\(//\)$' \| \ 12669 X"$as_dir" : 'X\(/\)' \| \ 12670 . : '\(.\)' 2>/dev/null || 12671 echo X"$as_dir" | 12672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12673 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12674 /^X\(\/\/\)$/{ s//\1/; q; } 12675 /^X\(\/\).*/{ s//\1/; q; } 12676 s/.*/./; q'` 12677 done 12678 test ! -n "$as_dirs" || mkdir $as_dirs 12679 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12681 { (exit 1); exit 1; }; }; } 12682 12683 ac_builddir=. 12684 12685 if test "$ac_dir" != .; then 12686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12687 # A "../" for each directory in $ac_dir_suffix. 12688 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12689 else 12690 ac_dir_suffix= ac_top_builddir= 12691 fi 12692 12693 case $srcdir in 12694 .) # No --srcdir option. We are building in place. 12695 ac_srcdir=. 12696 if test -z "$ac_top_builddir"; then 12697 ac_top_srcdir=. 12698 else 12699 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12700 fi ;; 12701 [\\/]* | ?:[\\/]* ) # Absolute path. 12702 ac_srcdir=$srcdir$ac_dir_suffix; 12703 ac_top_srcdir=$srcdir ;; 12704 *) # Relative path. 12705 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12706 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12707 esac 12708 12709 # Do not use `cd foo && pwd` to compute absolute paths, because 12710 # the directories may not exist. 12711 case `pwd` in 12712 .) ac_abs_builddir="$ac_dir";; 12713 *) 12714 case "$ac_dir" in 12715 .) ac_abs_builddir=`pwd`;; 12716 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 12717 *) ac_abs_builddir=`pwd`/"$ac_dir";; 12718 esac;; 12719 esac 12720 case $ac_abs_builddir in 12721 .) ac_abs_top_builddir=${ac_top_builddir}.;; 12722 *) 12723 case ${ac_top_builddir}. in 12724 .) ac_abs_top_builddir=$ac_abs_builddir;; 12725 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 12726 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 12727 esac;; 12728 esac 12729 case $ac_abs_builddir in 12730 .) ac_abs_srcdir=$ac_srcdir;; 12731 *) 12732 case $ac_srcdir in 12733 .) ac_abs_srcdir=$ac_abs_builddir;; 12734 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 12735 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 12736 esac;; 12737 esac 12738 case $ac_abs_builddir in 12739 .) ac_abs_top_srcdir=$ac_top_srcdir;; 12740 *) 12741 case $ac_top_srcdir in 12742 .) ac_abs_top_srcdir=$ac_abs_builddir;; 12743 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 12744 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 12745 esac;; 12746 esac 12747 12748 12749 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12750 echo "$as_me: executing $ac_dest commands" >&6;} 12751 case $ac_dest in 12752 default ) \ 12753 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi ;; 12754 esac 12755 done 12756 _ACEOF 12757 12758 cat >>$CONFIG_STATUS <<\_ACEOF 12759 12760 { (exit 0); exit 0; } 12761 _ACEOF 5234 12762 chmod +x $CONFIG_STATUS 5235 rm -fr confdefs* $ac_clean_files 5236 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 5237 12763 ac_clean_files=$ac_clean_files_save 12764 12765 12766 # configure is writing to config.log, and then calls config.status. 12767 # config.status does its own redirection, appending to config.log. 12768 # Unfortunately, on DOS this fails, as config.log is still kept open 12769 # by configure, so config.status won't be able to write to it; its 12770 # output is simply discarded. So we exec the FD to /dev/null, 12771 # effectively closing config.log, so it can be properly (re)opened and 12772 # appended to by config.status. When coming back to configure, we 12773 # need to make the FD available again. 12774 if test "$no_create" != yes; then 12775 ac_cs_success=: 12776 ac_config_status_args= 12777 test "$silent" = yes && 12778 ac_config_status_args="$ac_config_status_args --quiet" 12779 exec 5>/dev/null 12780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12781 exec 5>>config.log 12782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12783 # would make configure fail if this is the last instruction. 12784 $ac_cs_success || { (exit 1); exit 1; } 12785 fi 12786
Note: See TracChangeset
for help on using the changeset viewer.