Changeset ba0772 in git
- Timestamp:
- Jun 27, 2006, 3:57:11 PM (17 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 5b561ba67b1fc2214bc393da85a2c8f88571ad7c
- Parents:
- 3920458ad215165d459d13667e0d16a81109bfa9
- Location:
- kernel
- Files:
-
- 2 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