Changeset 10850
- Timestamp:
- 2005-11-07T13:23:55+13:00 (18 years ago)
- Location:
- trunk/gsdl/src/mgpp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/config.h.in
r855 r10850 182 182 /* Define if you have the m library (-lm). */ 183 183 #undef HAVE_LIBM 184 185 /* Define if big endian */ 186 #undef WORDS_BIGENDIAN -
trunk/gsdl/src/mgpp/configure
r859 r10850 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: 14 ac_help="$ac_help 15 --with-dmalloc use dmalloc, as in 16 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" 17 ac_help="$ac_help 18 --with-regex use older regex in lieu of GNU rx for matching" 19 ac_help="$ac_help 20 --with-gnu-readline compile with GNU readline support" 21 ac_help="$ac_help 22 --enable-override-longlong 23 overide use of long long with GCC" 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="text/MGQuery.cpp" 275 # Factoring default headers for most tests. 276 ac_includes_default="\ 277 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 284 #if STDC_HEADERS 285 # include <stdlib.h> 286 # include <stddef.h> 287 #else 288 # if HAVE_STDLIB_H 289 # include <stdlib.h> 290 # endif 291 #endif 292 #if HAVE_STRING_H 293 # if !STDC_HEADERS && HAVE_MEMORY_H 294 # include <memory.h> 295 # endif 296 # include <string.h> 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 300 #endif 301 #if HAVE_INTTYPES_H 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 307 #endif 308 #if HAVE_UNISTD_H 309 # include <unistd.h> 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 24 314 25 315 # Initialize some variables set by options. 316 ac_init_help= 317 ac_init_version=false 26 318 # The variables have the same names as the options, with 27 319 # dashes changed to underlines. 28 build=NONE 29 cache_file=./config.cache 320 cache_file=/dev/null 30 321 exec_prefix=NONE 31 host=NONE32 322 no_create= 33 nonopt=NONE34 323 no_recursion= 35 324 prefix=NONE … … 40 329 site= 41 330 srcdir= 42 target=NONE43 331 verbose= 44 332 x_includes=NONE 45 333 x_libraries=NONE 334 335 # Installation directory options. 336 # These are left unexpanded so users can "make install exec_prefix=/foo" 337 # and all the variables that are supposed to be based on exec_prefix 338 # by default will actually change. 339 # Use braces instead of parens because sh, perl, etc. also accept them. 46 340 bindir='${exec_prefix}/bin' 47 341 sbindir='${exec_prefix}/sbin' … … 57 351 mandir='${prefix}/man' 58 352 59 # Initialize some other variables.60 subdirs=61 MFLAGS= MAKEFLAGS=62 SHELL=${CONFIG_SHELL-/bin/sh}63 # Maximum number of lines to put in a shell here document.64 ac_max_here_lines=1265 66 353 ac_prev= 67 354 for ac_option 68 355 do 69 70 356 # If the previous option needs an argument, assign it. 71 357 if test -n "$ac_prev"; then … … 75 361 fi 76 362 77 case "$ac_option" in 78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 79 *) ac_optarg= ;; 80 esac 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 81 364 82 365 # Accept the important Cygnus configure options, so we can diagnose typos. 83 366 84 case "$ac_option"in367 case $ac_option in 85 368 86 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 87 370 ac_prev=bindir ;; 88 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 89 bindir= "$ac_optarg";;372 bindir=$ac_optarg ;; 90 373 91 374 -build | --build | --buil | --bui | --bu) 92 ac_prev=build ;;375 ac_prev=build_alias ;; 93 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 94 build ="$ac_optarg";;377 build_alias=$ac_optarg ;; 95 378 96 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 99 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 100 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 101 cache_file="$ac_optarg" ;; 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 102 388 103 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 105 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 106 392 | --da=*) 107 datadir= "$ac_optarg";;393 datadir=$ac_optarg ;; 108 394 109 395 -disable-* | --disable-*) 110 ac_feature=`e cho $ac_option|sed -e 's/-*disable-//'`396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 111 397 # Reject names that are not valid shell variable names. 112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then113 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }114 fi115 ac_feature=`echo $ac_feature | sed 's/-/_/g'`116 eval "enable_$ {ac_feature}=no" ;;398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 117 403 118 404 -enable-* | --enable-*) 119 ac_feature=`e cho $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 120 406 # Reject names that are not valid shell variable names. 121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then122 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }123 fi124 ac_feature=`echo $ac_feature | sed 's/-/_/g'`125 case "$ac_option"in126 *=*) ;;407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 127 413 *) ac_optarg=yes ;; 128 414 esac 129 eval "enable_$ {ac_feature}='$ac_optarg'" ;;415 eval "enable_$ac_feature='$ac_optarg'" ;; 130 416 131 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 136 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 137 423 | --exec=* | --exe=* | --ex=*) 138 exec_prefix= "$ac_optarg";;424 exec_prefix=$ac_optarg ;; 139 425 140 426 -gas | --gas | --ga | --g) … … 142 428 with_gas=yes ;; 143 429 144 -help | --help | --hel | --he) 145 # Omit some internal or obsolete options to make the list less imposing. 146 # This message is too long to be a string in the A/UX 3.1 sh. 147 cat << EOF 148 Usage: configure [options] [host] 149 Options: [defaults in brackets after descriptions] 150 Configuration: 151 --cache-file=FILE cache test results in FILE 152 --help print this message 153 --no-create do not create output files 154 --quiet, --silent do not print \`checking...' messages 155 --version print the version of autoconf that created configure 156 Directory and file names: 157 --prefix=PREFIX install architecture-independent files in PREFIX 158 [$ac_default_prefix] 159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 160 [same as prefix] 161 --bindir=DIR user executables in DIR [EPREFIX/bin] 162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 164 --datadir=DIR read-only architecture-independent data in DIR 165 [PREFIX/share] 166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 167 --sharedstatedir=DIR modifiable architecture-independent data in DIR 168 [PREFIX/com] 169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 170 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 171 --includedir=DIR C header files in DIR [PREFIX/include] 172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 173 --infodir=DIR info documentation in DIR [PREFIX/info] 174 --mandir=DIR man documentation in DIR [PREFIX/man] 175 --srcdir=DIR find the sources in DIR [configure dir or ..] 176 --program-prefix=PREFIX prepend PREFIX to installed program names 177 --program-suffix=SUFFIX append SUFFIX to installed program names 178 --program-transform-name=PROGRAM 179 run sed PROGRAM on installed program names 180 EOF 181 cat << EOF 182 Host type: 183 --build=BUILD configure for building on BUILD [BUILD=HOST] 184 --host=HOST configure for HOST [guessed] 185 --target=TARGET configure for TARGET [TARGET=HOST] 186 Features and packages: 187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 191 --x-includes=DIR X include files are in DIR 192 --x-libraries=DIR X library files are in DIR 193 EOF 194 if test -n "$ac_help"; then 195 echo "--enable and --with options recognized:$ac_help" 196 fi 197 exit 0 ;; 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 198 436 199 437 -host | --host | --hos | --ho) 200 ac_prev=host ;;438 ac_prev=host_alias ;; 201 439 -host=* | --host=* | --hos=* | --ho=*) 202 host ="$ac_optarg";;440 host_alias=$ac_optarg ;; 203 441 204 442 -includedir | --includedir | --includedi | --included | --include \ … … 207 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 208 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 209 includedir= "$ac_optarg";;447 includedir=$ac_optarg ;; 210 448 211 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 212 450 ac_prev=infodir ;; 213 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 214 infodir= "$ac_optarg";;452 infodir=$ac_optarg ;; 215 453 216 454 -libdir | --libdir | --libdi | --libd) 217 455 ac_prev=libdir ;; 218 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 219 libdir= "$ac_optarg";;457 libdir=$ac_optarg ;; 220 458 221 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 224 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 225 463 | --libexe=* | --libex=* | --libe=*) 226 libexecdir= "$ac_optarg";;464 libexecdir=$ac_optarg ;; 227 465 228 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 233 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 234 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 235 localstatedir= "$ac_optarg";;473 localstatedir=$ac_optarg ;; 236 474 237 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 238 476 ac_prev=mandir ;; 239 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 240 mandir= "$ac_optarg";;478 mandir=$ac_optarg ;; 241 479 242 480 -nfp | --nfp | --nf) … … 245 483 246 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 247 | --no-cr | --no-c )485 | --no-cr | --no-c | -n) 248 486 no_create=yes ;; 249 487 … … 259 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 260 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 261 oldincludedir= "$ac_optarg";;499 oldincludedir=$ac_optarg ;; 262 500 263 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 264 502 ac_prev=prefix ;; 265 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 266 prefix= "$ac_optarg";;504 prefix=$ac_optarg ;; 267 505 268 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 271 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 272 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 273 program_prefix= "$ac_optarg";;511 program_prefix=$ac_optarg ;; 274 512 275 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 278 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 279 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 280 program_suffix= "$ac_optarg";;518 program_suffix=$ac_optarg ;; 281 519 282 520 -program-transform-name | --program-transform-name \ … … 295 533 | --program-trans=* | --program-tran=* \ 296 534 | --progr-tra=* | --program-tr=* | --program-t=*) 297 program_transform_name= "$ac_optarg";;535 program_transform_name=$ac_optarg ;; 298 536 299 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 305 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 306 544 | --sbi=* | --sb=*) 307 sbindir= "$ac_optarg";;545 sbindir=$ac_optarg ;; 308 546 309 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 316 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 317 555 | --sha=* | --sh=*) 318 sharedstatedir= "$ac_optarg";;556 sharedstatedir=$ac_optarg ;; 319 557 320 558 -site | --site | --sit) 321 559 ac_prev=site ;; 322 560 -site=* | --site=* | --sit=*) 323 site= "$ac_optarg";;561 site=$ac_optarg ;; 324 562 325 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 326 564 ac_prev=srcdir ;; 327 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 328 srcdir= "$ac_optarg";;566 srcdir=$ac_optarg ;; 329 567 330 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 333 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 334 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 335 sysconfdir= "$ac_optarg";;573 sysconfdir=$ac_optarg ;; 336 574 337 575 -target | --target | --targe | --targ | --tar | --ta | --t) 338 ac_prev=target ;;576 ac_prev=target_alias ;; 339 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 340 target ="$ac_optarg";;578 target_alias=$ac_optarg ;; 341 579 342 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 343 581 verbose=yes ;; 344 582 345 -version | --version | --versio | --versi | --vers) 346 echo "configure generated by autoconf version 2.13" 347 exit 0 ;; 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 348 585 349 586 -with-* | --with-*) 350 ac_package=`e cho $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 351 588 # Reject names that are not valid shell variable names. 352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then353 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }354 fi589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 355 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 356 case "$ac_option"in357 *=*) ;;593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 358 595 *) ac_optarg=yes ;; 359 596 esac 360 eval "with_$ {ac_package}='$ac_optarg'" ;;597 eval "with_$ac_package='$ac_optarg'" ;; 361 598 362 599 -without-* | --without-*) 363 ac_package=`e cho $ac_option|sed -e 's/-*without-//'`600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 364 601 # Reject names that are not valid shell variable names. 365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then366 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }367 fi368 ac_package=`echo $ac_package | sed 's/-/_/g'`369 eval "with_$ {ac_package}=no" ;;602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 370 607 371 608 --x) … … 378 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 379 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 380 x_includes= "$ac_optarg";;617 x_includes=$ac_optarg ;; 381 618 382 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 385 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 386 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 387 x_libraries="$ac_optarg" ;; 388 389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627 Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 390 629 ;; 391 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 392 641 *) 393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 394 echo "configure: warning: $ac_option: invalid host type" 1>&2 395 fi 396 if test "x$nonopt" != xNONE; then 397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 398 fi 399 nonopt="$ac_option" 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 400 647 ;; 401 648 … … 404 651 405 652 if test -n "$ac_prev"; then 406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 407 fi 408 409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 410 411 # File descriptor usage: 412 # 0 standard input 413 # 1 file creation 414 # 2 errors and warnings 415 # 3 some systems may open it to /dev/tty 416 # 4 used on the Kubota Titan 417 # 6 checking for... messages and results 418 # 5 compiler messages saved in config.log 419 if test "$silent" = yes; then 420 exec 6>/dev/null 421 else 422 exec 6>&1 423 fi 424 exec 5>./config.log 425 426 echo "\ 427 This file contains any messages produced by compilers while 428 running configure, to aid debugging if configure makes a mistake. 429 " 1>&5 430 431 # Strip out --no-create and --no-recursion so they do not pile up. 432 # Also quote any args containing shell metacharacters. 433 ac_configure_args= 434 for ac_arg 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 435 660 do 436 case "$ac_arg" in 437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 438 | --no-cr | --no-c) ;; 439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 442 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 443 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 444 666 esac 445 667 done 446 668 447 # NLS nuisances. 448 # Only set these to C if already set. These must not be set unconditionally 449 # because not all systems understand e.g. LANG=C (notably SCO). 450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 451 # Non-C LC_CTYPE values break the ctype check. 452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 456 457 # confdefs.h avoids OS command line length limits that DEFS can exceed. 458 rm -rf conftest* confdefs.h 459 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 460 echo > confdefs.h 461 462 # A filename unique to this package, relative to the directory that 463 # configure is in, which we can look for to find out if srcdir is correct. 464 ac_unique_file=text/MGQuery.cpp 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679 done 680 681 # There might be people who depend on the old broken behavior: `$host' 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 684 build=$build_alias 685 host=$host_alias 686 target=$target_alias 687 688 # FIXME: To remove some day. 689 if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697 fi 698 699 ac_tool_prefix= 700 test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702 test "$silent" = yes && exec 6>/dev/null 703 465 704 466 705 # Find the source files, if location was not specified. … … 468 707 ac_srcdir_defaulted=yes 469 708 # Try the directory containing this script, then its parent. 470 ac_prog=$0 471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 473 721 srcdir=$ac_confdir 474 722 if test ! -r $srcdir/$ac_unique_file; then … … 480 728 if test ! -r $srcdir/$ac_unique_file; then 481 729 if test "$ac_srcdir_defaulted" = yes; then 482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 483 732 else 484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 485 735 fi 486 736 fi 487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 488 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CXX_set=${CXX+set} 754 ac_env_CXX_value=$CXX 755 ac_cv_env_CXX_set=${CXX+set} 756 ac_cv_env_CXX_value=$CXX 757 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 758 ac_env_CXXFLAGS_value=$CXXFLAGS 759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CC_set=${CC+set} 770 ac_env_CC_value=$CC 771 ac_cv_env_CC_set=${CC+set} 772 ac_cv_env_CC_value=$CC 773 ac_env_CFLAGS_set=${CFLAGS+set} 774 ac_env_CFLAGS_value=$CFLAGS 775 ac_cv_env_CFLAGS_set=${CFLAGS+set} 776 ac_cv_env_CFLAGS_value=$CFLAGS 777 ac_env_CPP_set=${CPP+set} 778 ac_env_CPP_value=$CPP 779 ac_cv_env_CPP_set=${CPP+set} 780 ac_cv_env_CPP_value=$CPP 781 782 # 783 # Report the --help message. 784 # 785 if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF 789 \`configure' configures this package to adapt to many kinds of systems. 790 791 Usage: $0 [OPTION]... [VAR=VALUE]... 792 793 To assign environment variables (e.g., CC, CFLAGS...), specify them as 794 VAR=VALUE. See below for descriptions of some of the useful variables. 795 796 Defaults for the options are specified in brackets. 797 798 Configuration: 799 -h, --help display this help and exit 800 --help=short display options specific to this package 801 --help=recursive display the short help of all the included packages 802 -V, --version display version information and exit 803 -q, --quiet, --silent do not print \`checking...' messages 804 --cache-file=FILE cache test results in FILE [disabled] 805 -C, --config-cache alias for \`--cache-file=config.cache' 806 -n, --no-create do not create output files 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 808 809 _ACEOF 810 811 cat <<_ACEOF 812 Installation directories: 813 --prefix=PREFIX install architecture-independent files in PREFIX 814 [$ac_default_prefix] 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 816 [PREFIX] 817 818 By default, \`make install' will install all the files in 819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 820 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 821 for instance \`--prefix=\$HOME'. 822 823 For better control, use the options below. 824 825 Fine tuning of the installation directories: 826 --bindir=DIR user executables [EPREFIX/bin] 827 --sbindir=DIR system admin executables [EPREFIX/sbin] 828 --libexecdir=DIR program executables [EPREFIX/libexec] 829 --datadir=DIR read-only architecture-independent data [PREFIX/share] 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 833 --libdir=DIR object code libraries [EPREFIX/lib] 834 --includedir=DIR C header files [PREFIX/include] 835 --oldincludedir=DIR C header files for non-gcc [/usr/include] 836 --infodir=DIR info documentation [PREFIX/info] 837 --mandir=DIR man documentation [PREFIX/man] 838 _ACEOF 839 840 cat <<\_ACEOF 841 842 Program names: 843 --program-prefix=PREFIX prepend PREFIX to installed program names 844 --program-suffix=SUFFIX append SUFFIX to installed program names 845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 846 _ACEOF 847 fi 848 849 if test -n "$ac_init_help"; then 850 851 cat <<\_ACEOF 852 853 Optional Features: 854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 856 --enable-override-longlong 857 overide use of long long with GCC 858 859 Optional Packages: 860 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 861 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 862 --with-dmalloc use dmalloc, as in 863 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz 864 --with-regex use older regex in lieu of GNU rx for matching 865 --with-gnu-readline compile with GNU readline support 866 867 Some influential environment variables: 868 CXX C++ compiler command 869 CXXFLAGS C++ compiler flags 870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 871 nonstandard directory <lib dir> 872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 873 headers in a nonstandard directory <include dir> 874 CC C compiler command 875 CFLAGS C compiler flags 876 CPP C preprocessor 877 878 Use these variables to override the choices made by `configure' or to help 879 it to find libraries and programs with nonstandard names/locations. 880 881 _ACEOF 882 fi 883 884 if test "$ac_init_help" = "recursive"; then 885 # If there are subdirs, report their specific --help. 886 ac_popdir=`pwd` 887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 888 test -d $ac_dir || continue 889 ac_builddir=. 890 891 if test "$ac_dir" != .; then 892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 893 # A "../" for each directory in $ac_dir_suffix. 894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 895 else 896 ac_dir_suffix= ac_top_builddir= 897 fi 898 899 case $srcdir in 900 .) # No --srcdir option. We are building in place. 901 ac_srcdir=. 902 if test -z "$ac_top_builddir"; then 903 ac_top_srcdir=. 904 else 905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 906 fi ;; 907 [\\/]* | ?:[\\/]* ) # Absolute path. 908 ac_srcdir=$srcdir$ac_dir_suffix; 909 ac_top_srcdir=$srcdir ;; 910 *) # Relative path. 911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 912 ac_top_srcdir=$ac_top_builddir$srcdir ;; 913 esac 914 915 # Do not use `cd foo && pwd` to compute absolute paths, because 916 # the directories may not exist. 917 case `pwd` in 918 .) ac_abs_builddir="$ac_dir";; 919 *) 920 case "$ac_dir" in 921 .) ac_abs_builddir=`pwd`;; 922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 923 *) ac_abs_builddir=`pwd`/"$ac_dir";; 924 esac;; 925 esac 926 case $ac_abs_builddir in 927 .) ac_abs_top_builddir=${ac_top_builddir}.;; 928 *) 929 case ${ac_top_builddir}. in 930 .) ac_abs_top_builddir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 933 esac;; 934 esac 935 case $ac_abs_builddir in 936 .) ac_abs_srcdir=$ac_srcdir;; 937 *) 938 case $ac_srcdir in 939 .) ac_abs_srcdir=$ac_abs_builddir;; 940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 942 esac;; 943 esac 944 case $ac_abs_builddir in 945 .) ac_abs_top_srcdir=$ac_top_srcdir;; 946 *) 947 case $ac_top_srcdir in 948 .) ac_abs_top_srcdir=$ac_abs_builddir;; 949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 951 esac;; 952 esac 953 954 cd $ac_dir 955 # Check for guested configure; otherwise get Cygnus style configure. 956 if test -f $ac_srcdir/configure.gnu; then 957 echo 958 $SHELL $ac_srcdir/configure.gnu --help=recursive 959 elif test -f $ac_srcdir/configure; then 960 echo 961 $SHELL $ac_srcdir/configure --help=recursive 962 elif test -f $ac_srcdir/configure.ac || 963 test -f $ac_srcdir/configure.in; then 964 echo 965 $ac_configure --help 966 else 967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 968 fi 969 cd $ac_popdir 970 done 971 fi 972 973 test -n "$ac_init_help" && exit 0 974 if $ac_init_version; then 975 cat <<\_ACEOF 976 977 Copyright (C) 2003 Free Software Foundation, Inc. 978 This configure script is free software; the Free Software Foundation 979 gives unlimited permission to copy, distribute and modify it. 980 _ACEOF 981 exit 0 982 fi 983 exec 5>config.log 984 cat >&5 <<_ACEOF 985 This file contains any messages produced by compilers while 986 running configure, to aid debugging if configure makes a mistake. 987 988 It was created by $as_me, which was 989 generated by GNU Autoconf 2.59. Invocation command line was 990 991 $ $0 $@ 992 993 _ACEOF 994 { 995 cat <<_ASUNAME 996 ## --------- ## 997 ## Platform. ## 998 ## --------- ## 999 1000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1001 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1002 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1003 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1004 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1005 1006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1008 1009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1012 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1016 1017 _ASUNAME 1018 1019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1020 for as_dir in $PATH 1021 do 1022 IFS=$as_save_IFS 1023 test -z "$as_dir" && as_dir=. 1024 echo "PATH: $as_dir" 1025 done 1026 1027 } >&5 1028 1029 cat >&5 <<_ACEOF 1030 1031 1032 ## ----------- ## 1033 ## Core tests. ## 1034 ## ----------- ## 1035 1036 _ACEOF 1037 1038 1039 # Keep a trace of the command line. 1040 # Strip out --no-create and --no-recursion so they do not pile up. 1041 # Strip out --silent because we don't want to record it for future runs. 1042 # Also quote any args containing shell meta-characters. 1043 # Make two passes to allow for proper duplicate-argument suppression. 1044 ac_configure_args= 1045 ac_configure_args0= 1046 ac_configure_args1= 1047 ac_sep= 1048 ac_must_keep_next=false 1049 for ac_pass in 1 2 1050 do 1051 for ac_arg 1052 do 1053 case $ac_arg in 1054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1056 | -silent | --silent | --silen | --sile | --sil) 1057 continue ;; 1058 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1059 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1060 esac 1061 case $ac_pass in 1062 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1063 2) 1064 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1065 if test $ac_must_keep_next = true; then 1066 ac_must_keep_next=false # Got value, back to normal. 1067 else 1068 case $ac_arg in 1069 *=* | --config-cache | -C | -disable-* | --disable-* \ 1070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1072 | -with-* | --with-* | -without-* | --without-* | --x) 1073 case "$ac_configure_args0 " in 1074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1075 esac 1076 ;; 1077 -* ) ac_must_keep_next=true ;; 1078 esac 1079 fi 1080 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1081 # Get rid of the leading space. 1082 ac_sep=" " 1083 ;; 1084 esac 1085 done 1086 done 1087 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1088 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1089 1090 # When interrupted or exit'd, cleanup temporary files, and complete 1091 # config.log. We remove comments because anyway the quotes in there 1092 # would cause problems or look ugly. 1093 # WARNING: Be sure not to use single quotes in there, as some shells, 1094 # such as our DU 5.0 friend, will then `close' the trap. 1095 trap 'exit_status=$? 1096 # Save into config.log some information that might help in debugging. 1097 { 1098 echo 1099 1100 cat <<\_ASBOX 1101 ## ---------------- ## 1102 ## Cache variables. ## 1103 ## ---------------- ## 1104 _ASBOX 1105 echo 1106 # The following way of writing the cache mishandles newlines in values, 1107 { 1108 (set) 2>&1 | 1109 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1110 *ac_space=\ *) 1111 sed -n \ 1112 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1114 ;; 1115 *) 1116 sed -n \ 1117 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1118 ;; 1119 esac; 1120 } 1121 echo 1122 1123 cat <<\_ASBOX 1124 ## ----------------- ## 1125 ## Output variables. ## 1126 ## ----------------- ## 1127 _ASBOX 1128 echo 1129 for ac_var in $ac_subst_vars 1130 do 1131 eval ac_val=$`echo $ac_var` 1132 echo "$ac_var='"'"'$ac_val'"'"'" 1133 done | sort 1134 echo 1135 1136 if test -n "$ac_subst_files"; then 1137 cat <<\_ASBOX 1138 ## ------------- ## 1139 ## Output files. ## 1140 ## ------------- ## 1141 _ASBOX 1142 echo 1143 for ac_var in $ac_subst_files 1144 do 1145 eval ac_val=$`echo $ac_var` 1146 echo "$ac_var='"'"'$ac_val'"'"'" 1147 done | sort 1148 echo 1149 fi 1150 1151 if test -s confdefs.h; then 1152 cat <<\_ASBOX 1153 ## ----------- ## 1154 ## confdefs.h. ## 1155 ## ----------- ## 1156 _ASBOX 1157 echo 1158 sed "/^$/d" confdefs.h | sort 1159 echo 1160 fi 1161 test "$ac_signal" != 0 && 1162 echo "$as_me: caught signal $ac_signal" 1163 echo "$as_me: exit $exit_status" 1164 } >&5 1165 rm -f core *.core && 1166 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1167 exit $exit_status 1168 ' 0 1169 for ac_signal in 1 2 13 15; do 1170 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1171 done 1172 ac_signal=0 1173 1174 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1175 rm -rf conftest* confdefs.h 1176 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1177 echo >confdefs.h 1178 1179 # Predefined preprocessor variables. 1180 1181 cat >>confdefs.h <<_ACEOF 1182 #define PACKAGE_NAME "$PACKAGE_NAME" 1183 _ACEOF 1184 1185 1186 cat >>confdefs.h <<_ACEOF 1187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1188 _ACEOF 1189 1190 1191 cat >>confdefs.h <<_ACEOF 1192 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1193 _ACEOF 1194 1195 1196 cat >>confdefs.h <<_ACEOF 1197 #define PACKAGE_STRING "$PACKAGE_STRING" 1198 _ACEOF 1199 1200 1201 cat >>confdefs.h <<_ACEOF 1202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1203 _ACEOF 1204 1205 1206 # Let the site file select an alternate cache file if it wants to. 489 1207 # Prefer explicitly selected file to automatically selected ones. 490 1208 if test -z "$CONFIG_SITE"; then … … 497 1215 for ac_site_file in $CONFIG_SITE; do 498 1216 if test -r "$ac_site_file"; then 499 echo "loading site script $ac_site_file" 1217 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1218 echo "$as_me: loading site script $ac_site_file" >&6;} 1219 sed 's/^/| /' "$ac_site_file" >&5 500 1220 . "$ac_site_file" 501 1221 fi … … 503 1223 504 1224 if test -r "$cache_file"; then 505 echo "loading cache $cache_file" 506 . $cache_file 507 else 508 echo "creating cache $cache_file" 509 > $cache_file 1225 # Some versions of bash will fail to source /dev/null (special 1226 # files actually), so we avoid doing that. 1227 if test -f "$cache_file"; then 1228 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1229 echo "$as_me: loading cache $cache_file" >&6;} 1230 case $cache_file in 1231 [\\/]* | ?:[\\/]* ) . $cache_file;; 1232 *) . ./$cache_file;; 1233 esac 1234 fi 1235 else 1236 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1237 echo "$as_me: creating cache $cache_file" >&6;} 1238 >$cache_file 1239 fi 1240 1241 # Check that the precious variables saved in the cache have kept the same 1242 # value. 1243 ac_cache_corrupted=false 1244 for ac_var in `(set) 2>&1 | 1245 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1246 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1247 eval ac_new_set=\$ac_env_${ac_var}_set 1248 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1249 eval ac_new_val="\$ac_env_${ac_var}_value" 1250 case $ac_old_set,$ac_new_set in 1251 set,) 1252 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1253 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1254 ac_cache_corrupted=: ;; 1255 ,set) 1256 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1257 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1258 ac_cache_corrupted=: ;; 1259 ,);; 1260 *) 1261 if test "x$ac_old_val" != "x$ac_new_val"; then 1262 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1263 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1264 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1265 echo "$as_me: former value: $ac_old_val" >&2;} 1266 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1267 echo "$as_me: current value: $ac_new_val" >&2;} 1268 ac_cache_corrupted=: 1269 fi;; 1270 esac 1271 # Pass precious variables to config.status. 1272 if test "$ac_new_set" = set; then 1273 case $ac_new_val in 1274 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1275 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1276 *) ac_arg=$ac_var=$ac_new_val ;; 1277 esac 1278 case " $ac_configure_args " in 1279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1280 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1281 esac 1282 fi 1283 done 1284 if $ac_cache_corrupted; then 1285 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1286 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1287 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1288 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1289 { (exit 1); exit 1; }; } 510 1290 fi 511 1291 512 1292 ac_ext=c 513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.514 1293 ac_cpp='$CPP $CPPFLAGS' 515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 517 cross_compiling=$ac_cv_prog_cc_cross 518 519 ac_exeext= 520 ac_objext=o 521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 522 # Stardent Vistra SVR4 grep lacks -e, says [email protected]. 523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 524 ac_n= ac_c=' 525 ' ac_t=' ' 526 else 527 ac_n=-n ac_c= ac_t= 528 fi 529 else 530 ac_n= ac_c='\c' ac_t= 531 fi 532 533 534 535 if test "$program_transform_name" = s,x,x,; then 536 program_transform_name= 537 else 538 # Double any \ or $. echo might interpret backslashes. 539 cat <<\EOF_SED > conftestsed 540 s,\\,\\\\,g; s,\$,$$,g 541 EOF_SED 542 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 543 rm -f conftestsed 544 fi 1294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1296 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 ac_config_headers="$ac_config_headers config.h" 1317 545 1318 test "$program_prefix" != NONE && 546 program_transform_name="s,^,$ {program_prefix},;$program_transform_name"1319 program_transform_name="s,^,$program_prefix,;$program_transform_name" 547 1320 # Use a double $ so make ignores it. 548 1321 test "$program_suffix" != NONE && 549 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 550 551 # sed with no file args requires a program. 552 test "$program_transform_name" = "" && program_transform_name="s,x,x," 1322 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1323 # Double any \ or $. echo might interpret backslashes. 1324 # By default was `s,x,x', remove it if useless. 1325 cat <<\_ACEOF >conftest.sed 1326 s/[\\$]/&&/g;s/;s,x,x,$// 1327 _ACEOF 1328 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1329 rm conftest.sed 553 1330 554 1331 … … 556 1333 VERSION=1.3 557 1334 558 cat >> confdefs.h <<EOF1335 cat >>confdefs.h <<_ACEOF 559 1336 #define PACKAGE "$PACKAGE" 560 EOF561 562 cat >> confdefs.h <<EOF1337 _ACEOF 1338 1339 cat >>confdefs.h <<_ACEOF 563 1340 #define VERSION "$VERSION" 564 EOF 565 566 567 568 569 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 570 do 571 # Extract the first word of "$ac_prog", so it can be a program name with args. 572 set dummy $ac_prog; ac_word=$2 573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 574 echo "configure:575: checking for $ac_word" >&5 575 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 576 echo $ac_n "(cached) $ac_c" 1>&6 1341 _ACEOF 1342 1343 1344 1345 1346 ac_ext=cc 1347 ac_cpp='$CXXCPP $CPPFLAGS' 1348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1351 if test -n "$ac_tool_prefix"; then 1352 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1353 do 1354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1356 echo "$as_me:$LINENO: checking for $ac_word" >&5 1357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1358 if test "${ac_cv_prog_CXX+set}" = set; then 1359 echo $ECHO_N "(cached) $ECHO_C" >&6 577 1360 else 578 1361 if test -n "$CXX"; then 579 1362 ac_cv_prog_CXX="$CXX" # Let the user override the test. 580 1363 else 581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 582 ac_dummy="$PATH" 583 for ac_dir in $ac_dummy; do 584 test -z "$ac_dir" && ac_dir=. 585 if test -f $ac_dir/$ac_word; then 586 ac_cv_prog_CXX="$ac_prog" 587 break 1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1365 for as_dir in $PATH 1366 do 1367 IFS=$as_save_IFS 1368 test -z "$as_dir" && as_dir=. 1369 for ac_exec_ext in '' $ac_executable_extensions; do 1370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1373 break 2 1374 fi 1375 done 1376 done 1377 1378 fi 1379 fi 1380 CXX=$ac_cv_prog_CXX 1381 if test -n "$CXX"; then 1382 echo "$as_me:$LINENO: result: $CXX" >&5 1383 echo "${ECHO_T}$CXX" >&6 1384 else 1385 echo "$as_me:$LINENO: result: no" >&5 1386 echo "${ECHO_T}no" >&6 1387 fi 1388 1389 test -n "$CXX" && break 1390 done 1391 fi 1392 if test -z "$CXX"; then 1393 ac_ct_CXX=$CXX 1394 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1395 do 1396 # Extract the first word of "$ac_prog", so it can be a program name with args. 1397 set dummy $ac_prog; ac_word=$2 1398 echo "$as_me:$LINENO: checking for $ac_word" >&5 1399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1400 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1401 echo $ECHO_N "(cached) $ECHO_C" >&6 1402 else 1403 if test -n "$ac_ct_CXX"; then 1404 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1405 else 1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1407 for as_dir in $PATH 1408 do 1409 IFS=$as_save_IFS 1410 test -z "$as_dir" && as_dir=. 1411 for ac_exec_ext in '' $ac_executable_extensions; do 1412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1413 ac_cv_prog_ac_ct_CXX="$ac_prog" 1414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1415 break 2 1416 fi 1417 done 1418 done 1419 1420 fi 1421 fi 1422 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1423 if test -n "$ac_ct_CXX"; then 1424 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1425 echo "${ECHO_T}$ac_ct_CXX" >&6 1426 else 1427 echo "$as_me:$LINENO: result: no" >&5 1428 echo "${ECHO_T}no" >&6 1429 fi 1430 1431 test -n "$ac_ct_CXX" && break 1432 done 1433 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1434 1435 CXX=$ac_ct_CXX 1436 fi 1437 1438 1439 # Provide some information about the compiler. 1440 echo "$as_me:$LINENO:" \ 1441 "checking for C++ compiler version" >&5 1442 ac_compiler=`set X $ac_compile; echo $2` 1443 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1444 (eval $ac_compiler --version </dev/null >&5) 2>&5 1445 ac_status=$? 1446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1447 (exit $ac_status); } 1448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1449 (eval $ac_compiler -v </dev/null >&5) 2>&5 1450 ac_status=$? 1451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1452 (exit $ac_status); } 1453 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1454 (eval $ac_compiler -V </dev/null >&5) 2>&5 1455 ac_status=$? 1456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1457 (exit $ac_status); } 1458 1459 cat >conftest.$ac_ext <<_ACEOF 1460 /* confdefs.h. */ 1461 _ACEOF 1462 cat confdefs.h >>conftest.$ac_ext 1463 cat >>conftest.$ac_ext <<_ACEOF 1464 /* end confdefs.h. */ 1465 1466 int 1467 main () 1468 { 1469 1470 ; 1471 return 0; 1472 } 1473 _ACEOF 1474 ac_clean_files_save=$ac_clean_files 1475 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1476 # Try to create an executable without -o first, disregard a.out. 1477 # It will help us diagnose broken compilers, and finding out an intuition 1478 # of exeext. 1479 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 1480 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 1481 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1482 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1483 (eval $ac_link_default) 2>&5 1484 ac_status=$? 1485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1486 (exit $ac_status); }; then 1487 # Find the output, starting from the most likely. This scheme is 1488 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1489 # resort. 1490 1491 # Be careful to initialize this variable, since it used to be cached. 1492 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1493 ac_cv_exeext= 1494 # b.out is created by i960 compilers. 1495 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1496 do 1497 test -f "$ac_file" || continue 1498 case $ac_file in 1499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1500 ;; 1501 conftest.$ac_ext ) 1502 # This is the source file. 1503 ;; 1504 [ab].out ) 1505 # We found the default executable, but exeext='' is most 1506 # certainly right. 1507 break;; 1508 *.* ) 1509 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1510 # FIXME: I believe we export ac_cv_exeext for Libtool, 1511 # but it would be cool to find out if it's true. Does anybody 1512 # maintain Libtool? --akim. 1513 export ac_cv_exeext 1514 break;; 1515 * ) 1516 break;; 1517 esac 1518 done 1519 else 1520 echo "$as_me: failed program was:" >&5 1521 sed 's/^/| /' conftest.$ac_ext >&5 1522 1523 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1524 See \`config.log' for more details." >&5 1525 echo "$as_me: error: C++ compiler cannot create executables 1526 See \`config.log' for more details." >&2;} 1527 { (exit 77); exit 77; }; } 1528 fi 1529 1530 ac_exeext=$ac_cv_exeext 1531 echo "$as_me:$LINENO: result: $ac_file" >&5 1532 echo "${ECHO_T}$ac_file" >&6 1533 1534 # Check the compiler produces executables we can run. If not, either 1535 # the compiler is broken, or we cross compile. 1536 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1537 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1538 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1539 # If not cross compiling, check that we can run a simple program. 1540 if test "$cross_compiling" != yes; then 1541 if { ac_try='./$ac_file' 1542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1543 (eval $ac_try) 2>&5 1544 ac_status=$? 1545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1546 (exit $ac_status); }; }; then 1547 cross_compiling=no 1548 else 1549 if test "$cross_compiling" = maybe; then 1550 cross_compiling=yes 1551 else 1552 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1553 If you meant to cross compile, use \`--host'. 1554 See \`config.log' for more details." >&5 1555 echo "$as_me: error: cannot run C++ compiled programs. 1556 If you meant to cross compile, use \`--host'. 1557 See \`config.log' for more details." >&2;} 1558 { (exit 1); exit 1; }; } 588 1559 fi 589 done 590 IFS="$ac_save_ifs" 591 fi 592 fi 593 CXX="$ac_cv_prog_CXX" 594 if test -n "$CXX"; then 595 echo "$ac_t""$CXX" 1>&6 596 else 597 echo "$ac_t""no" 1>&6 598 fi 599 600 test -n "$CXX" && break 1560 fi 1561 fi 1562 echo "$as_me:$LINENO: result: yes" >&5 1563 echo "${ECHO_T}yes" >&6 1564 1565 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1566 ac_clean_files=$ac_clean_files_save 1567 # Check the compiler produces executables we can run. If not, either 1568 # the compiler is broken, or we cross compile. 1569 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1570 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1571 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1572 echo "${ECHO_T}$cross_compiling" >&6 1573 1574 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1575 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1577 (eval $ac_link) 2>&5 1578 ac_status=$? 1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1580 (exit $ac_status); }; then 1581 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1582 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1583 # work properly (i.e., refer to `conftest.exe'), while it won't with 1584 # `rm'. 1585 for ac_file in conftest.exe conftest conftest.*; do 1586 test -f "$ac_file" || continue 1587 case $ac_file in 1588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1589 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1590 export ac_cv_exeext 1591 break;; 1592 * ) break;; 1593 esac 601 1594 done 602 test -n "$CXX" || CXX="gcc" 603 604 605 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 606 echo "configure:607: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 607 608 ac_ext=C 609 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 610 ac_cpp='$CXXCPP $CPPFLAGS' 611 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 612 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 613 cross_compiling=$ac_cv_prog_cxx_cross 614 615 cat > conftest.$ac_ext << EOF 616 617 #line 618 "configure" 618 #include "confdefs.h" 619 620 int main(){return(0);} 621 EOF 622 if { (eval echo configure:623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 623 ac_cv_prog_cxx_works=yes 624 # If we can't run a trivial program, we are probably using a cross compiler. 625 if (./conftest; exit) 2>/dev/null; then 626 ac_cv_prog_cxx_cross=no 627 else 628 ac_cv_prog_cxx_cross=yes 629 fi 630 else 631 echo "configure: failed program was:" >&5 632 cat conftest.$ac_ext >&5 633 ac_cv_prog_cxx_works=no 634 fi 635 rm -fr conftest* 636 ac_ext=c 637 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 638 ac_cpp='$CPP $CPPFLAGS' 639 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 640 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 641 cross_compiling=$ac_cv_prog_cc_cross 642 643 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 644 if test $ac_cv_prog_cxx_works = no; then 645 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 646 fi 647 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 648 echo "configure:649: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 649 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 650 cross_compiling=$ac_cv_prog_cxx_cross 651 652 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 653 echo "configure:654: checking whether we are using GNU C++" >&5 654 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 655 echo $ac_n "(cached) $ac_c" 1>&6 656 else 657 cat > conftest.C <<EOF 658 #ifdef __GNUC__ 659 yes; 1595 else 1596 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1597 See \`config.log' for more details." >&5 1598 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1599 See \`config.log' for more details." >&2;} 1600 { (exit 1); exit 1; }; } 1601 fi 1602 1603 rm -f conftest$ac_cv_exeext 1604 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1605 echo "${ECHO_T}$ac_cv_exeext" >&6 1606 1607 rm -f conftest.$ac_ext 1608 EXEEXT=$ac_cv_exeext 1609 ac_exeext=$EXEEXT 1610 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1611 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1612 if test "${ac_cv_objext+set}" = set; then 1613 echo $ECHO_N "(cached) $ECHO_C" >&6 1614 else 1615 cat >conftest.$ac_ext <<_ACEOF 1616 /* confdefs.h. */ 1617 _ACEOF 1618 cat confdefs.h >>conftest.$ac_ext 1619 cat >>conftest.$ac_ext <<_ACEOF 1620 /* end confdefs.h. */ 1621 1622 int 1623 main () 1624 { 1625 1626 ; 1627 return 0; 1628 } 1629 _ACEOF 1630 rm -f conftest.o conftest.obj 1631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1632 (eval $ac_compile) 2>&5 1633 ac_status=$? 1634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1635 (exit $ac_status); }; then 1636 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1637 case $ac_file in 1638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1640 break;; 1641 esac 1642 done 1643 else 1644 echo "$as_me: failed program was:" >&5 1645 sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1648 See \`config.log' for more details." >&5 1649 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1650 See \`config.log' for more details." >&2;} 1651 { (exit 1); exit 1; }; } 1652 fi 1653 1654 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1655 fi 1656 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1657 echo "${ECHO_T}$ac_cv_objext" >&6 1658 OBJEXT=$ac_cv_objext 1659 ac_objext=$OBJEXT 1660 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 1661 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1662 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1663 echo $ECHO_N "(cached) $ECHO_C" >&6 1664 else 1665 cat >conftest.$ac_ext <<_ACEOF 1666 /* confdefs.h. */ 1667 _ACEOF 1668 cat confdefs.h >>conftest.$ac_ext 1669 cat >>conftest.$ac_ext <<_ACEOF 1670 /* end confdefs.h. */ 1671 1672 int 1673 main () 1674 { 1675 #ifndef __GNUC__ 1676 choke me 660 1677 #endif 661 EOF 662 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 663 ac_cv_prog_gxx=yes 664 else 665 ac_cv_prog_gxx=no 666 fi 667 fi 668 669 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 670 671 if test $ac_cv_prog_gxx = yes; then 672 GXX=yes 673 else 674 GXX= 675 fi 676 677 ac_test_CXXFLAGS="${CXXFLAGS+set}" 678 ac_save_CXXFLAGS="$CXXFLAGS" 679 CXXFLAGS= 680 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 681 echo "configure:682: checking whether ${CXX-g++} accepts -g" >&5 682 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 683 echo $ac_n "(cached) $ac_c" 1>&6 684 else 685 echo 'void f(){}' > conftest.cc 686 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1678 1679 ; 1680 return 0; 1681 } 1682 _ACEOF 1683 rm -f conftest.$ac_objext 1684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1685 (eval $ac_compile) 2>conftest.er1 1686 ac_status=$? 1687 grep -v '^ *+' conftest.er1 >conftest.err 1688 rm -f conftest.er1 1689 cat conftest.err >&5 1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1691 (exit $ac_status); } && 1692 { ac_try='test -z "$ac_cxx_werror_flag" 1693 || test ! -s conftest.err' 1694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1695 (eval $ac_try) 2>&5 1696 ac_status=$? 1697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1698 (exit $ac_status); }; } && 1699 { ac_try='test -s conftest.$ac_objext' 1700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1701 (eval $ac_try) 2>&5 1702 ac_status=$? 1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1704 (exit $ac_status); }; }; then 1705 ac_compiler_gnu=yes 1706 else 1707 echo "$as_me: failed program was:" >&5 1708 sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_compiler_gnu=no 1711 fi 1712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1713 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1714 1715 fi 1716 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 1717 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1718 GXX=`test $ac_compiler_gnu = yes && echo yes` 1719 ac_test_CXXFLAGS=${CXXFLAGS+set} 1720 ac_save_CXXFLAGS=$CXXFLAGS 1721 CXXFLAGS="-g" 1722 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 1723 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1724 if test "${ac_cv_prog_cxx_g+set}" = set; then 1725 echo $ECHO_N "(cached) $ECHO_C" >&6 1726 else 1727 cat >conftest.$ac_ext <<_ACEOF 1728 /* confdefs.h. */ 1729 _ACEOF 1730 cat confdefs.h >>conftest.$ac_ext 1731 cat >>conftest.$ac_ext <<_ACEOF 1732 /* end confdefs.h. */ 1733 1734 int 1735 main () 1736 { 1737 1738 ; 1739 return 0; 1740 } 1741 _ACEOF 1742 rm -f conftest.$ac_objext 1743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1744 (eval $ac_compile) 2>conftest.er1 1745 ac_status=$? 1746 grep -v '^ *+' conftest.er1 >conftest.err 1747 rm -f conftest.er1 1748 cat conftest.err >&5 1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1750 (exit $ac_status); } && 1751 { ac_try='test -z "$ac_cxx_werror_flag" 1752 || test ! -s conftest.err' 1753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1754 (eval $ac_try) 2>&5 1755 ac_status=$? 1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1757 (exit $ac_status); }; } && 1758 { ac_try='test -s conftest.$ac_objext' 1759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1760 (eval $ac_try) 2>&5 1761 ac_status=$? 1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1763 (exit $ac_status); }; }; then 687 1764 ac_cv_prog_cxx_g=yes 688 1765 else 689 ac_cv_prog_cxx_g=no 690 fi 691 rm -f conftest* 692 693 fi 694 695 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1766 echo "$as_me: failed program was:" >&5 1767 sed 's/^/| /' conftest.$ac_ext >&5 1768 1769 ac_cv_prog_cxx_g=no 1770 fi 1771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1772 fi 1773 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 1774 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 696 1775 if test "$ac_test_CXXFLAGS" = set; then 697 CXXFLAGS= "$ac_save_CXXFLAGS"1776 CXXFLAGS=$ac_save_CXXFLAGS 698 1777 elif test $ac_cv_prog_cxx_g = yes; then 699 1778 if test "$GXX" = yes; then … … 709 1788 fi 710 1789 fi 711 712 for ac_prog in mawk gawk nawk awk 1790 for ac_declaration in \ 1791 '' \ 1792 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1793 'extern "C" void std::exit (int); using std::exit;' \ 1794 'extern "C" void exit (int) throw ();' \ 1795 'extern "C" void exit (int);' \ 1796 'void exit (int);' 713 1797 do 714 # Extract the first word of "$ac_prog", so it can be a program name with args. 1798 cat >conftest.$ac_ext <<_ACEOF 1799 /* confdefs.h. */ 1800 _ACEOF 1801 cat confdefs.h >>conftest.$ac_ext 1802 cat >>conftest.$ac_ext <<_ACEOF 1803 /* end confdefs.h. */ 1804 $ac_declaration 1805 #include <stdlib.h> 1806 int 1807 main () 1808 { 1809 exit (42); 1810 ; 1811 return 0; 1812 } 1813 _ACEOF 1814 rm -f conftest.$ac_objext 1815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1816 (eval $ac_compile) 2>conftest.er1 1817 ac_status=$? 1818 grep -v '^ *+' conftest.er1 >conftest.err 1819 rm -f conftest.er1 1820 cat conftest.err >&5 1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1822 (exit $ac_status); } && 1823 { ac_try='test -z "$ac_cxx_werror_flag" 1824 || test ! -s conftest.err' 1825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1826 (eval $ac_try) 2>&5 1827 ac_status=$? 1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1829 (exit $ac_status); }; } && 1830 { ac_try='test -s conftest.$ac_objext' 1831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1832 (eval $ac_try) 2>&5 1833 ac_status=$? 1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1835 (exit $ac_status); }; }; then 1836 : 1837 else 1838 echo "$as_me: failed program was:" >&5 1839 sed 's/^/| /' conftest.$ac_ext >&5 1840 1841 continue 1842 fi 1843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1844 cat >conftest.$ac_ext <<_ACEOF 1845 /* confdefs.h. */ 1846 _ACEOF 1847 cat confdefs.h >>conftest.$ac_ext 1848 cat >>conftest.$ac_ext <<_ACEOF 1849 /* end confdefs.h. */ 1850 $ac_declaration 1851 int 1852 main () 1853 { 1854 exit (42); 1855 ; 1856 return 0; 1857 } 1858 _ACEOF 1859 rm -f conftest.$ac_objext 1860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1861 (eval $ac_compile) 2>conftest.er1 1862 ac_status=$? 1863 grep -v '^ *+' conftest.er1 >conftest.err 1864 rm -f conftest.er1 1865 cat conftest.err >&5 1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1867 (exit $ac_status); } && 1868 { ac_try='test -z "$ac_cxx_werror_flag" 1869 || test ! -s conftest.err' 1870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1871 (eval $ac_try) 2>&5 1872 ac_status=$? 1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1874 (exit $ac_status); }; } && 1875 { ac_try='test -s conftest.$ac_objext' 1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1877 (eval $ac_try) 2>&5 1878 ac_status=$? 1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1880 (exit $ac_status); }; }; then 1881 break 1882 else 1883 echo "$as_me: failed program was:" >&5 1884 sed 's/^/| /' conftest.$ac_ext >&5 1885 1886 fi 1887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1888 done 1889 rm -f conftest* 1890 if test -n "$ac_declaration"; then 1891 echo '#ifdef __cplusplus' >>confdefs.h 1892 echo $ac_declaration >>confdefs.h 1893 echo '#endif' >>confdefs.h 1894 fi 1895 1896 ac_ext=c 1897 ac_cpp='$CPP $CPPFLAGS' 1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1901 1902 for ac_prog in gawk mawk nawk awk 1903 do 1904 # Extract the first word of "$ac_prog", so it can be a program name with args. 715 1905 set dummy $ac_prog; ac_word=$2 716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6717 echo "configure:718: checking for $ac_word" >&5718 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then719 echo $ ac_n "(cached) $ac_c" 1>&61906 echo "$as_me:$LINENO: checking for $ac_word" >&5 1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1908 if test "${ac_cv_prog_AWK+set}" = set; then 1909 echo $ECHO_N "(cached) $ECHO_C" >&6 720 1910 else 721 1911 if test -n "$AWK"; then 722 1912 ac_cv_prog_AWK="$AWK" # Let the user override the test. 723 1913 else 724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 725 ac_dummy="$PATH" 726 for ac_dir in $ac_dummy; do 727 test -z "$ac_dir" && ac_dir=. 728 if test -f $ac_dir/$ac_word; then 729 ac_cv_prog_AWK="$ac_prog" 730 break 731 fi 732 done 733 IFS="$ac_save_ifs" 734 fi 735 fi 736 AWK="$ac_cv_prog_AWK" 1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915 for as_dir in $PATH 1916 do 1917 IFS=$as_save_IFS 1918 test -z "$as_dir" && as_dir=. 1919 for ac_exec_ext in '' $ac_executable_extensions; do 1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1921 ac_cv_prog_AWK="$ac_prog" 1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1923 break 2 1924 fi 1925 done 1926 done 1927 1928 fi 1929 fi 1930 AWK=$ac_cv_prog_AWK 737 1931 if test -n "$AWK"; then 738 echo "$ac_t""$AWK" 1>&6 739 else 740 echo "$ac_t""no" 1>&6 741 fi 742 743 test -n "$AWK" && break 1932 echo "$as_me:$LINENO: result: $AWK" >&5 1933 echo "${ECHO_T}$AWK" >&6 1934 else 1935 echo "$as_me:$LINENO: result: no" >&5 1936 echo "${ECHO_T}no" >&6 1937 fi 1938 1939 test -n "$AWK" && break 744 1940 done 745 1941 746 1942 for ac_prog in 'bison -y' byacc 747 1943 do 748 # Extract the first word of "$ac_prog", so it can be a program name with args.1944 # Extract the first word of "$ac_prog", so it can be a program name with args. 749 1945 set dummy $ac_prog; ac_word=$2 750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6751 echo "configure:752: checking for $ac_word" >&5752 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then753 echo $ ac_n "(cached) $ac_c" 1>&61946 echo "$as_me:$LINENO: checking for $ac_word" >&5 1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1948 if test "${ac_cv_prog_YACC+set}" = set; then 1949 echo $ECHO_N "(cached) $ECHO_C" >&6 754 1950 else 755 1951 if test -n "$YACC"; then 756 1952 ac_cv_prog_YACC="$YACC" # Let the user override the test. 757 1953 else 758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 759 ac_dummy="$PATH" 760 for ac_dir in $ac_dummy; do 761 test -z "$ac_dir" && ac_dir=. 762 if test -f $ac_dir/$ac_word; then 763 ac_cv_prog_YACC="$ac_prog" 764 break 765 fi 766 done 767 IFS="$ac_save_ifs" 768 fi 769 fi 770 YACC="$ac_cv_prog_YACC" 1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1955 for as_dir in $PATH 1956 do 1957 IFS=$as_save_IFS 1958 test -z "$as_dir" && as_dir=. 1959 for ac_exec_ext in '' $ac_executable_extensions; do 1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1961 ac_cv_prog_YACC="$ac_prog" 1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1963 break 2 1964 fi 1965 done 1966 done 1967 1968 fi 1969 fi 1970 YACC=$ac_cv_prog_YACC 771 1971 if test -n "$YACC"; then 772 echo "$ac_t""$YACC" 1>&6 773 else 774 echo "$ac_t""no" 1>&6 775 fi 776 777 test -n "$YACC" && break 1972 echo "$as_me:$LINENO: result: $YACC" >&5 1973 echo "${ECHO_T}$YACC" >&6 1974 else 1975 echo "$as_me:$LINENO: result: no" >&5 1976 echo "${ECHO_T}no" >&6 1977 fi 1978 1979 test -n "$YACC" && break 778 1980 done 779 1981 test -n "$YACC" || YACC="yacc" 780 1982 781 # Extract the first word of "gcc", so it can be a program name with args. 782 set dummy gcc; ac_word=$2 783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 784 echo "configure:785: checking for $ac_word" >&5 785 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 786 echo $ac_n "(cached) $ac_c" 1>&6 1983 ac_ext=c 1984 ac_cpp='$CPP $CPPFLAGS' 1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1988 if test -n "$ac_tool_prefix"; then 1989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1990 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1991 echo "$as_me:$LINENO: checking for $ac_word" >&5 1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1993 if test "${ac_cv_prog_CC+set}" = set; then 1994 echo $ECHO_N "(cached) $ECHO_C" >&6 787 1995 else 788 1996 if test -n "$CC"; then 789 1997 ac_cv_prog_CC="$CC" # Let the user override the test. 790 1998 else 791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 792 ac_dummy="$PATH" 793 for ac_dir in $ac_dummy; do 794 test -z "$ac_dir" && ac_dir=. 795 if test -f $ac_dir/$ac_word; then 796 ac_cv_prog_CC="gcc" 797 break 798 fi 799 done 800 IFS="$ac_save_ifs" 801 fi 802 fi 803 CC="$ac_cv_prog_CC" 1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2000 for as_dir in $PATH 2001 do 2002 IFS=$as_save_IFS 2003 test -z "$as_dir" && as_dir=. 2004 for ac_exec_ext in '' $ac_executable_extensions; do 2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2006 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2008 break 2 2009 fi 2010 done 2011 done 2012 2013 fi 2014 fi 2015 CC=$ac_cv_prog_CC 804 2016 if test -n "$CC"; then 805 echo "$ac_t""$CC" 1>&6 806 else 807 echo "$ac_t""no" 1>&6 808 fi 809 2017 echo "$as_me:$LINENO: result: $CC" >&5 2018 echo "${ECHO_T}$CC" >&6 2019 else 2020 echo "$as_me:$LINENO: result: no" >&5 2021 echo "${ECHO_T}no" >&6 2022 fi 2023 2024 fi 2025 if test -z "$ac_cv_prog_CC"; then 2026 ac_ct_CC=$CC 2027 # Extract the first word of "gcc", so it can be a program name with args. 2028 set dummy gcc; ac_word=$2 2029 echo "$as_me:$LINENO: checking for $ac_word" >&5 2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2032 echo $ECHO_N "(cached) $ECHO_C" >&6 2033 else 2034 if test -n "$ac_ct_CC"; then 2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2036 else 2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2038 for as_dir in $PATH 2039 do 2040 IFS=$as_save_IFS 2041 test -z "$as_dir" && as_dir=. 2042 for ac_exec_ext in '' $ac_executable_extensions; do 2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2044 ac_cv_prog_ac_ct_CC="gcc" 2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2046 break 2 2047 fi 2048 done 2049 done 2050 2051 fi 2052 fi 2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2054 if test -n "$ac_ct_CC"; then 2055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2056 echo "${ECHO_T}$ac_ct_CC" >&6 2057 else 2058 echo "$as_me:$LINENO: result: no" >&5 2059 echo "${ECHO_T}no" >&6 2060 fi 2061 2062 CC=$ac_ct_CC 2063 else 2064 CC="$ac_cv_prog_CC" 2065 fi 2066 2067 if test -z "$CC"; then 2068 if test -n "$ac_tool_prefix"; then 2069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2070 set dummy ${ac_tool_prefix}cc; ac_word=$2 2071 echo "$as_me:$LINENO: checking for $ac_word" >&5 2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2073 if test "${ac_cv_prog_CC+set}" = set; then 2074 echo $ECHO_N "(cached) $ECHO_C" >&6 2075 else 2076 if test -n "$CC"; then 2077 ac_cv_prog_CC="$CC" # Let the user override the test. 2078 else 2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2080 for as_dir in $PATH 2081 do 2082 IFS=$as_save_IFS 2083 test -z "$as_dir" && as_dir=. 2084 for ac_exec_ext in '' $ac_executable_extensions; do 2085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2086 ac_cv_prog_CC="${ac_tool_prefix}cc" 2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2088 break 2 2089 fi 2090 done 2091 done 2092 2093 fi 2094 fi 2095 CC=$ac_cv_prog_CC 2096 if test -n "$CC"; then 2097 echo "$as_me:$LINENO: result: $CC" >&5 2098 echo "${ECHO_T}$CC" >&6 2099 else 2100 echo "$as_me:$LINENO: result: no" >&5 2101 echo "${ECHO_T}no" >&6 2102 fi 2103 2104 fi 2105 if test -z "$ac_cv_prog_CC"; then 2106 ac_ct_CC=$CC 2107 # Extract the first word of "cc", so it can be a program name with args. 2108 set dummy cc; ac_word=$2 2109 echo "$as_me:$LINENO: checking for $ac_word" >&5 2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2112 echo $ECHO_N "(cached) $ECHO_C" >&6 2113 else 2114 if test -n "$ac_ct_CC"; then 2115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2116 else 2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2118 for as_dir in $PATH 2119 do 2120 IFS=$as_save_IFS 2121 test -z "$as_dir" && as_dir=. 2122 for ac_exec_ext in '' $ac_executable_extensions; do 2123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2124 ac_cv_prog_ac_ct_CC="cc" 2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2126 break 2 2127 fi 2128 done 2129 done 2130 2131 fi 2132 fi 2133 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2134 if test -n "$ac_ct_CC"; then 2135 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2136 echo "${ECHO_T}$ac_ct_CC" >&6 2137 else 2138 echo "$as_me:$LINENO: result: no" >&5 2139 echo "${ECHO_T}no" >&6 2140 fi 2141 2142 CC=$ac_ct_CC 2143 else 2144 CC="$ac_cv_prog_CC" 2145 fi 2146 2147 fi 810 2148 if test -z "$CC"; then 811 2149 # Extract the first word of "cc", so it can be a program name with args. 812 2150 set dummy cc; ac_word=$2 813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6814 echo "configure:815: checking for $ac_word" >&5815 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then816 echo $ ac_n "(cached) $ac_c" 1>&62151 echo "$as_me:$LINENO: checking for $ac_word" >&5 2152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2153 if test "${ac_cv_prog_CC+set}" = set; then 2154 echo $ECHO_N "(cached) $ECHO_C" >&6 817 2155 else 818 2156 if test -n "$CC"; then 819 2157 ac_cv_prog_CC="$CC" # Let the user override the test. 820 2158 else 821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"822 2159 ac_prog_rejected=no 823 ac_dummy="$PATH" 824 for ac_dir in $ac_dummy; do 825 test -z "$ac_dir" && ac_dir=. 826 if test -f $ac_dir/$ac_word; then 827 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 828 ac_prog_rejected=yes 829 continue 830 fi 831 ac_cv_prog_CC="cc" 832 break 833 fi 834 done 835 IFS="$ac_save_ifs" 2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2161 for as_dir in $PATH 2162 do 2163 IFS=$as_save_IFS 2164 test -z "$as_dir" && as_dir=. 2165 for ac_exec_ext in '' $ac_executable_extensions; do 2166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2168 ac_prog_rejected=yes 2169 continue 2170 fi 2171 ac_cv_prog_CC="cc" 2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2173 break 2 2174 fi 2175 done 2176 done 2177 836 2178 if test $ac_prog_rejected = yes; then 837 2179 # We found a bogon in the path, so make sure we never use it. 838 2180 set dummy $ac_cv_prog_CC 839 2181 shift 840 if test $# -gt0; then2182 if test $# != 0; then 841 2183 # We chose a different compiler from the bogus one. 842 2184 # However, it has the same basename, so the bogon will be chosen 843 2185 # first if we set CC to just the basename; use the full file name. 844 2186 shift 845 set dummy "$ac_dir/$ac_word" "$@" 846 shift 847 ac_cv_prog_CC="$@" 2187 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 848 2188 fi 849 2189 fi 850 2190 fi 851 2191 fi 852 CC= "$ac_cv_prog_CC"2192 CC=$ac_cv_prog_CC 853 2193 if test -n "$CC"; then 854 echo "$ac_t""$CC" 1>&6 855 else 856 echo "$ac_t""no" 1>&6 857 fi 858 859 if test -z "$CC"; then 860 case "`uname -s`" in 861 *win32* | *WIN32*) 862 # Extract the first word of "cl", so it can be a program name with args. 863 set dummy cl; ac_word=$2 864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 865 echo "configure:866: checking for $ac_word" >&5 866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 867 echo $ac_n "(cached) $ac_c" 1>&6 2194 echo "$as_me:$LINENO: result: $CC" >&5 2195 echo "${ECHO_T}$CC" >&6 2196 else 2197 echo "$as_me:$LINENO: result: no" >&5 2198 echo "${ECHO_T}no" >&6 2199 fi 2200 2201 fi 2202 if test -z "$CC"; then 2203 if test -n "$ac_tool_prefix"; then 2204 for ac_prog in cl 2205 do 2206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2208 echo "$as_me:$LINENO: checking for $ac_word" >&5 2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2210 if test "${ac_cv_prog_CC+set}" = set; then 2211 echo $ECHO_N "(cached) $ECHO_C" >&6 868 2212 else 869 2213 if test -n "$CC"; then 870 2214 ac_cv_prog_CC="$CC" # Let the user override the test. 871 2215 else 872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 873 ac_dummy="$PATH" 874 for ac_dir in $ac_dummy; do 875 test -z "$ac_dir" && ac_dir=. 876 if test -f $ac_dir/$ac_word; then 877 ac_cv_prog_CC="cl" 878 break 879 fi 2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2217 for as_dir in $PATH 2218 do 2219 IFS=$as_save_IFS 2220 test -z "$as_dir" && as_dir=. 2221 for ac_exec_ext in '' $ac_executable_extensions; do 2222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2225 break 2 2226 fi 2227 done 2228 done 2229 2230 fi 2231 fi 2232 CC=$ac_cv_prog_CC 2233 if test -n "$CC"; then 2234 echo "$as_me:$LINENO: result: $CC" >&5 2235 echo "${ECHO_T}$CC" >&6 2236 else 2237 echo "$as_me:$LINENO: result: no" >&5 2238 echo "${ECHO_T}no" >&6 2239 fi 2240 2241 test -n "$CC" && break 880 2242 done 881 IFS="$ac_save_ifs" 882 fi 883 fi 884 CC="$ac_cv_prog_CC" 885 if test -n "$CC"; then 886 echo "$ac_t""$CC" 1>&6 887 else 888 echo "$ac_t""no" 1>&6 889 fi 890 ;; 891 esac 2243 fi 2244 if test -z "$CC"; then 2245 ac_ct_CC=$CC 2246 for ac_prog in cl 2247 do 2248 # Extract the first word of "$ac_prog", so it can be a program name with args. 2249 set dummy $ac_prog; ac_word=$2 2250 echo "$as_me:$LINENO: checking for $ac_word" >&5 2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254 else 2255 if test -n "$ac_ct_CC"; then 2256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2257 else 2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259 for as_dir in $PATH 2260 do 2261 IFS=$as_save_IFS 2262 test -z "$as_dir" && as_dir=. 2263 for ac_exec_ext in '' $ac_executable_extensions; do 2264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2265 ac_cv_prog_ac_ct_CC="$ac_prog" 2266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2267 break 2 892 2268 fi 893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 894 fi 895 896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 898 899 ac_ext=c 900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 901 ac_cpp='$CPP $CPPFLAGS' 902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 904 cross_compiling=$ac_cv_prog_cc_cross 905 906 cat > conftest.$ac_ext << EOF 907 908 #line 909 "configure" 909 #include "confdefs.h" 910 911 main(){return(0);} 912 EOF 913 if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 914 ac_cv_prog_cc_works=yes 915 # If we can't run a trivial program, we are probably using a cross compiler. 916 if (./conftest; exit) 2>/dev/null; then 917 ac_cv_prog_cc_cross=no 918 else 919 ac_cv_prog_cc_cross=yes 920 fi 921 else 922 echo "configure: failed program was:" >&5 923 cat conftest.$ac_ext >&5 924 ac_cv_prog_cc_works=no 925 fi 926 rm -fr conftest* 927 ac_ext=c 928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 929 ac_cpp='$CPP $CPPFLAGS' 930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 932 cross_compiling=$ac_cv_prog_cc_cross 933 934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 935 if test $ac_cv_prog_cc_works = no; then 936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 937 fi 938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 941 cross_compiling=$ac_cv_prog_cc_cross 942 943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 944 echo "configure:945: checking whether we are using GNU C" >&5 945 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 946 echo $ac_n "(cached) $ac_c" 1>&6 947 else 948 cat > conftest.c <<EOF 949 #ifdef __GNUC__ 950 yes; 2269 done 2270 done 2271 2272 fi 2273 fi 2274 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2275 if test -n "$ac_ct_CC"; then 2276 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2277 echo "${ECHO_T}$ac_ct_CC" >&6 2278 else 2279 echo "$as_me:$LINENO: result: no" >&5 2280 echo "${ECHO_T}no" >&6 2281 fi 2282 2283 test -n "$ac_ct_CC" && break 2284 done 2285 2286 CC=$ac_ct_CC 2287 fi 2288 2289 fi 2290 2291 2292 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2293 See \`config.log' for more details." >&5 2294 echo "$as_me: error: no acceptable C compiler found in \$PATH 2295 See \`config.log' for more details." >&2;} 2296 { (exit 1); exit 1; }; } 2297 2298 # Provide some information about the compiler. 2299 echo "$as_me:$LINENO:" \ 2300 "checking for C compiler version" >&5 2301 ac_compiler=`set X $ac_compile; echo $2` 2302 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2303 (eval $ac_compiler --version </dev/null >&5) 2>&5 2304 ac_status=$? 2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2306 (exit $ac_status); } 2307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2308 (eval $ac_compiler -v </dev/null >&5) 2>&5 2309 ac_status=$? 2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2311 (exit $ac_status); } 2312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2313 (eval $ac_compiler -V </dev/null >&5) 2>&5 2314 ac_status=$? 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2316 (exit $ac_status); } 2317 2318 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2319 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2320 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2321 echo $ECHO_N "(cached) $ECHO_C" >&6 2322 else 2323 cat >conftest.$ac_ext <<_ACEOF 2324 /* confdefs.h. */ 2325 _ACEOF 2326 cat confdefs.h >>conftest.$ac_ext 2327 cat >>conftest.$ac_ext <<_ACEOF 2328 /* end confdefs.h. */ 2329 2330 int 2331 main () 2332 { 2333 #ifndef __GNUC__ 2334 choke me 951 2335 #endif 952 EOF 953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 954 ac_cv_prog_gcc=yes 955 else 956 ac_cv_prog_gcc=no 957 fi 958 fi 959 960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 961 962 if test $ac_cv_prog_gcc = yes; then 963 GCC=yes 964 else 965 GCC= 966 fi 967 968 ac_test_CFLAGS="${CFLAGS+set}" 969 ac_save_CFLAGS="$CFLAGS" 970 CFLAGS= 971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 972 echo "configure:973: checking whether ${CC-cc} accepts -g" >&5 973 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 974 echo $ac_n "(cached) $ac_c" 1>&6 975 else 976 echo 'void f(){}' > conftest.c 977 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2336 2337 ; 2338 return 0; 2339 } 2340 _ACEOF 2341 rm -f conftest.$ac_objext 2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2343 (eval $ac_compile) 2>conftest.er1 2344 ac_status=$? 2345 grep -v '^ *+' conftest.er1 >conftest.err 2346 rm -f conftest.er1 2347 cat conftest.err >&5 2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2349 (exit $ac_status); } && 2350 { ac_try='test -z "$ac_c_werror_flag" 2351 || test ! -s conftest.err' 2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2353 (eval $ac_try) 2>&5 2354 ac_status=$? 2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2356 (exit $ac_status); }; } && 2357 { ac_try='test -s conftest.$ac_objext' 2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2359 (eval $ac_try) 2>&5 2360 ac_status=$? 2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2362 (exit $ac_status); }; }; then 2363 ac_compiler_gnu=yes 2364 else 2365 echo "$as_me: failed program was:" >&5 2366 sed 's/^/| /' conftest.$ac_ext >&5 2367 2368 ac_compiler_gnu=no 2369 fi 2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2371 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2372 2373 fi 2374 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2376 GCC=`test $ac_compiler_gnu = yes && echo yes` 2377 ac_test_CFLAGS=${CFLAGS+set} 2378 ac_save_CFLAGS=$CFLAGS 2379 CFLAGS="-g" 2380 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2382 if test "${ac_cv_prog_cc_g+set}" = set; then 2383 echo $ECHO_N "(cached) $ECHO_C" >&6 2384 else 2385 cat >conftest.$ac_ext <<_ACEOF 2386 /* confdefs.h. */ 2387 _ACEOF 2388 cat confdefs.h >>conftest.$ac_ext 2389 cat >>conftest.$ac_ext <<_ACEOF 2390 /* end confdefs.h. */ 2391 2392 int 2393 main () 2394 { 2395 2396 ; 2397 return 0; 2398 } 2399 _ACEOF 2400 rm -f conftest.$ac_objext 2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2402 (eval $ac_compile) 2>conftest.er1 2403 ac_status=$? 2404 grep -v '^ *+' conftest.er1 >conftest.err 2405 rm -f conftest.er1 2406 cat conftest.err >&5 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); } && 2409 { ac_try='test -z "$ac_c_werror_flag" 2410 || test ! -s conftest.err' 2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2412 (eval $ac_try) 2>&5 2413 ac_status=$? 2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2415 (exit $ac_status); }; } && 2416 { ac_try='test -s conftest.$ac_objext' 2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2418 (eval $ac_try) 2>&5 2419 ac_status=$? 2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2421 (exit $ac_status); }; }; then 978 2422 ac_cv_prog_cc_g=yes 979 2423 else 980 ac_cv_prog_cc_g=no 981 fi 982 rm -f conftest* 983 984 fi 985 986 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2424 echo "$as_me: failed program was:" >&5 2425 sed 's/^/| /' conftest.$ac_ext >&5 2426 2427 ac_cv_prog_cc_g=no 2428 fi 2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2430 fi 2431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2432 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 987 2433 if test "$ac_test_CFLAGS" = set; then 988 CFLAGS= "$ac_save_CFLAGS"2434 CFLAGS=$ac_save_CFLAGS 989 2435 elif test $ac_cv_prog_cc_g = yes; then 990 2436 if test "$GCC" = yes; then … … 1000 2446 fi 1001 2447 fi 2448 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2449 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2450 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2451 echo $ECHO_N "(cached) $ECHO_C" >&6 2452 else 2453 ac_cv_prog_cc_stdc=no 2454 ac_save_CC=$CC 2455 cat >conftest.$ac_ext <<_ACEOF 2456 /* confdefs.h. */ 2457 _ACEOF 2458 cat confdefs.h >>conftest.$ac_ext 2459 cat >>conftest.$ac_ext <<_ACEOF 2460 /* end confdefs.h. */ 2461 #include <stdarg.h> 2462 #include <stdio.h> 2463 #include <sys/types.h> 2464 #include <sys/stat.h> 2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2466 struct buf { int x; }; 2467 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2468 static char *e (p, i) 2469 char **p; 2470 int i; 2471 { 2472 return p[i]; 2473 } 2474 static char *f (char * (*g) (char **, int), char **p, ...) 2475 { 2476 char *s; 2477 va_list v; 2478 va_start (v,p); 2479 s = g (p, va_arg (v,int)); 2480 va_end (v); 2481 return s; 2482 } 2483 2484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2485 function prototypes and stuff, but not '\xHH' hex character constants. 2486 These don't provoke an error unfortunately, instead are silently treated 2487 as 'x'. The following induces an error, until -std1 is added to get 2488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2489 array size at least. It's necessary to write '\x00'==0 to get something 2490 that's true only with -std1. */ 2491 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2492 2493 int test (int i, double x); 2494 struct s1 {int (*f) (int a);}; 2495 struct s2 {int (*f) (double a);}; 2496 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2497 int argc; 2498 char **argv; 2499 int 2500 main () 2501 { 2502 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2503 ; 2504 return 0; 2505 } 2506 _ACEOF 2507 # Don't try gcc -ansi; that turns off useful extensions and 2508 # breaks some systems' header files. 2509 # AIX -qlanglvl=ansi 2510 # Ultrix and OSF/1 -std1 2511 # HP-UX 10.20 and later -Ae 2512 # HP-UX older versions -Aa -D_HPUX_SOURCE 2513 # SVR4 -Xc -D__EXTENSIONS__ 2514 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2515 do 2516 CC="$ac_save_CC $ac_arg" 2517 rm -f conftest.$ac_objext 2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2519 (eval $ac_compile) 2>conftest.er1 2520 ac_status=$? 2521 grep -v '^ *+' conftest.er1 >conftest.err 2522 rm -f conftest.er1 2523 cat conftest.err >&5 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); } && 2526 { ac_try='test -z "$ac_c_werror_flag" 2527 || test ! -s conftest.err' 2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2529 (eval $ac_try) 2>&5 2530 ac_status=$? 2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2532 (exit $ac_status); }; } && 2533 { ac_try='test -s conftest.$ac_objext' 2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2535 (eval $ac_try) 2>&5 2536 ac_status=$? 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); }; }; then 2539 ac_cv_prog_cc_stdc=$ac_arg 2540 break 2541 else 2542 echo "$as_me: failed program was:" >&5 2543 sed 's/^/| /' conftest.$ac_ext >&5 2544 2545 fi 2546 rm -f conftest.err conftest.$ac_objext 2547 done 2548 rm -f conftest.$ac_ext conftest.$ac_objext 2549 CC=$ac_save_CC 2550 2551 fi 2552 2553 case "x$ac_cv_prog_cc_stdc" in 2554 x|xno) 2555 echo "$as_me:$LINENO: result: none needed" >&5 2556 echo "${ECHO_T}none needed" >&6 ;; 2557 *) 2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2559 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2560 CC="$CC $ac_cv_prog_cc_stdc" ;; 2561 esac 2562 2563 # Some people use a C++ compiler to compile C. Since we use `exit', 2564 # in C++ we need to declare it. In case someone uses the same compiler 2565 # for both compiling C and C++ we need to have the C++ compiler decide 2566 # the declaration of exit, since it's the most demanding environment. 2567 cat >conftest.$ac_ext <<_ACEOF 2568 #ifndef __cplusplus 2569 choke me 2570 #endif 2571 _ACEOF 2572 rm -f conftest.$ac_objext 2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2574 (eval $ac_compile) 2>conftest.er1 2575 ac_status=$? 2576 grep -v '^ *+' conftest.er1 >conftest.err 2577 rm -f conftest.er1 2578 cat conftest.err >&5 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); } && 2581 { ac_try='test -z "$ac_c_werror_flag" 2582 || test ! -s conftest.err' 2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2584 (eval $ac_try) 2>&5 2585 ac_status=$? 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); }; } && 2588 { ac_try='test -s conftest.$ac_objext' 2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2590 (eval $ac_try) 2>&5 2591 ac_status=$? 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); }; }; then 2594 for ac_declaration in \ 2595 '' \ 2596 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2597 'extern "C" void std::exit (int); using std::exit;' \ 2598 'extern "C" void exit (int) throw ();' \ 2599 'extern "C" void exit (int);' \ 2600 'void exit (int);' 2601 do 2602 cat >conftest.$ac_ext <<_ACEOF 2603 /* confdefs.h. */ 2604 _ACEOF 2605 cat confdefs.h >>conftest.$ac_ext 2606 cat >>conftest.$ac_ext <<_ACEOF 2607 /* end confdefs.h. */ 2608 $ac_declaration 2609 #include <stdlib.h> 2610 int 2611 main () 2612 { 2613 exit (42); 2614 ; 2615 return 0; 2616 } 2617 _ACEOF 2618 rm -f conftest.$ac_objext 2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2620 (eval $ac_compile) 2>conftest.er1 2621 ac_status=$? 2622 grep -v '^ *+' conftest.er1 >conftest.err 2623 rm -f conftest.er1 2624 cat conftest.err >&5 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); } && 2627 { ac_try='test -z "$ac_c_werror_flag" 2628 || test ! -s conftest.err' 2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2630 (eval $ac_try) 2>&5 2631 ac_status=$? 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); }; } && 2634 { ac_try='test -s conftest.$ac_objext' 2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2636 (eval $ac_try) 2>&5 2637 ac_status=$? 2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 (exit $ac_status); }; }; then 2640 : 2641 else 2642 echo "$as_me: failed program was:" >&5 2643 sed 's/^/| /' conftest.$ac_ext >&5 2644 2645 continue 2646 fi 2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2648 cat >conftest.$ac_ext <<_ACEOF 2649 /* confdefs.h. */ 2650 _ACEOF 2651 cat confdefs.h >>conftest.$ac_ext 2652 cat >>conftest.$ac_ext <<_ACEOF 2653 /* end confdefs.h. */ 2654 $ac_declaration 2655 int 2656 main () 2657 { 2658 exit (42); 2659 ; 2660 return 0; 2661 } 2662 _ACEOF 2663 rm -f conftest.$ac_objext 2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2665 (eval $ac_compile) 2>conftest.er1 2666 ac_status=$? 2667 grep -v '^ *+' conftest.er1 >conftest.err 2668 rm -f conftest.er1 2669 cat conftest.err >&5 2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2671 (exit $ac_status); } && 2672 { ac_try='test -z "$ac_c_werror_flag" 2673 || test ! -s conftest.err' 2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2675 (eval $ac_try) 2>&5 2676 ac_status=$? 2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2678 (exit $ac_status); }; } && 2679 { ac_try='test -s conftest.$ac_objext' 2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2681 (eval $ac_try) 2>&5 2682 ac_status=$? 2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2684 (exit $ac_status); }; }; then 2685 break 2686 else 2687 echo "$as_me: failed program was:" >&5 2688 sed 's/^/| /' conftest.$ac_ext >&5 2689 2690 fi 2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2692 done 2693 rm -f conftest* 2694 if test -n "$ac_declaration"; then 2695 echo '#ifdef __cplusplus' >>confdefs.h 2696 echo $ac_declaration >>confdefs.h 2697 echo '#endif' >>confdefs.h 2698 fi 2699 2700 else 2701 echo "$as_me: failed program was:" >&5 2702 sed 's/^/| /' conftest.$ac_ext >&5 2703 2704 fi 2705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2706 ac_ext=c 2707 ac_cpp='$CPP $CPPFLAGS' 2708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2710 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1002 2711 1003 2712 ac_aux_dir= … … 1011 2720 ac_install_sh="$ac_aux_dir/install.sh -c" 1012 2721 break 2722 elif test -f $ac_dir/shtool; then 2723 ac_aux_dir=$ac_dir 2724 ac_install_sh="$ac_aux_dir/shtool install -c" 2725 break 1013 2726 fi 1014 2727 done 1015 2728 if test -z "$ac_aux_dir"; then 1016 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1017 fi 1018 ac_config_guess=$ac_aux_dir/config.guess 1019 ac_config_sub=$ac_aux_dir/config.sub 1020 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2729 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2730 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2731 { (exit 1); exit 1; }; } 2732 fi 2733 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2734 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2735 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1021 2736 1022 2737 # Find a good install program. We prefer a C program (faster), … … 1027 2742 # IRIX /sbin/install 1028 2743 # AIX /bin/install 2744 # AmigaOS /C/install, which installs bootblocks on floppy discs 1029 2745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1030 2746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1031 2747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2748 # OS/2's system install, which has a completely different semantic 1032 2749 # ./install, which can be erroneously created by make from ./install.sh. 1033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&61034 echo "configure:1035: checking for a BSD compatible install" >&52750 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2751 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1035 2752 if test -z "$INSTALL"; then 1036 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1037 echo $ac_n "(cached) $ac_c" 1>&6 1038 else 1039 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1040 for ac_dir in $PATH; do 1041 # Account for people who put trailing slashes in PATH elements. 1042 case "$ac_dir/" in 1043 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1044 *) 1045 # OSF1 and SCO ODT 3.0 have their own names for install. 1046 # Don't use installbsd from OSF since it installs stuff as root 1047 # by default. 1048 for ac_prog in ginstall scoinst install; do 1049 if test -f $ac_dir/$ac_prog; then 2753 if test "${ac_cv_path_install+set}" = set; then 2754 echo $ECHO_N "(cached) $ECHO_C" >&6 2755 else 2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757 for as_dir in $PATH 2758 do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 # Account for people who put trailing slashes in PATH elements. 2762 case $as_dir/ in 2763 ./ | .// | /cC/* | \ 2764 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2765 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2766 /usr/ucb/* ) ;; 2767 *) 2768 # OSF1 and SCO ODT 3.0 have their own names for install. 2769 # Don't use installbsd from OSF since it installs stuff as root 2770 # by default. 2771 for ac_prog in ginstall scoinst install; do 2772 for ac_exec_ext in '' $ac_executable_extensions; do 2773 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1050 2774 if test $ac_prog = install && 1051 grep dspmsg $ac_dir/$ac_prog>/dev/null 2>&1; then2775 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1052 2776 # AIX install. It has an incompatible calling convention. 1053 2777 : 2778 elif test $ac_prog = install && 2779 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2780 # program-specific install script used by HP pwplus--don't use. 2781 : 1054 2782 else 1055 ac_cv_path_install="$a c_dir/$ac_prog-c"1056 break 22783 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2784 break 3 1057 2785 fi 1058 2786 fi 1059 2787 done 1060 ;; 1061 esac 1062 done 1063 IFS="$ac_save_IFS" 2788 done 2789 ;; 2790 esac 2791 done 2792 1064 2793 1065 2794 fi 1066 2795 if test "${ac_cv_path_install+set}" = set; then 1067 INSTALL= "$ac_cv_path_install"2796 INSTALL=$ac_cv_path_install 1068 2797 else 1069 2798 # As a last resort, use the slow shell script. We don't cache a … … 1071 2800 # break other packages using the cache if that directory is 1072 2801 # removed, or if the path is relative. 1073 INSTALL= "$ac_install_sh"2802 INSTALL=$ac_install_sh 1074 2803 fi 1075 2804 fi 1076 echo "$ac_t""$INSTALL" 1>&6 2805 echo "$as_me:$LINENO: result: $INSTALL" >&5 2806 echo "${ECHO_T}$INSTALL" >&6 1077 2807 1078 2808 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 1080 2810 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1081 2811 1082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL _PROGRAM}'2812 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1083 2813 1084 2814 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1085 2815 1086 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1087 echo "configure:1088: checking whether ln -s works" >&5 1088 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1089 echo $ac_n "(cached) $ac_c" 1>&6 1090 else 1091 rm -f conftestdata 1092 if ln -s X conftestdata 2>/dev/null 1093 then 1094 rm -f conftestdata 1095 ac_cv_prog_LN_S="ln -s" 1096 else 1097 ac_cv_prog_LN_S=ln 1098 fi 1099 fi 1100 LN_S="$ac_cv_prog_LN_S" 1101 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1102 echo "$ac_t""yes" 1>&6 1103 else 1104 echo "$ac_t""no" 1>&6 1105 fi 1106 1107 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1108 echo "configure:1109: checking whether ${MAKE-make} sets \${MAKE}" >&5 1109 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1110 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1111 echo $ac_n "(cached) $ac_c" 1>&6 1112 else 1113 cat > conftestmake <<\EOF 2816 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2817 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2818 LN_S=$as_ln_s 2819 if test "$LN_S" = "ln -s"; then 2820 echo "$as_me:$LINENO: result: yes" >&5 2821 echo "${ECHO_T}yes" >&6 2822 else 2823 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2824 echo "${ECHO_T}no, using $LN_S" >&6 2825 fi 2826 2827 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2828 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2829 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2830 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2831 echo $ECHO_N "(cached) $ECHO_C" >&6 2832 else 2833 cat >conftest.make <<\_ACEOF 1114 2834 all: 1115 @echo 'ac_maketemp="$ {MAKE}"'1116 EOF2835 @echo 'ac_maketemp="$(MAKE)"' 2836 _ACEOF 1117 2837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1118 eval `${MAKE-make} -f conftest make 2>/dev/null | grep temp=`2838 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1119 2839 if test -n "$ac_maketemp"; then 1120 2840 eval ac_cv_prog_make_${ac_make}_set=yes … … 1122 2842 eval ac_cv_prog_make_${ac_make}_set=no 1123 2843 fi 1124 rm -f conftest make2844 rm -f conftest.make 1125 2845 fi 1126 2846 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1127 echo "$ac_t""yes" 1>&6 2847 echo "$as_me:$LINENO: result: yes" >&5 2848 echo "${ECHO_T}yes" >&6 1128 2849 SET_MAKE= 1129 2850 else 1130 echo "$ac_t""no" 1>&6 2851 echo "$as_me:$LINENO: result: no" >&5 2852 echo "${ECHO_T}no" >&6 1131 2853 SET_MAKE="MAKE=${MAKE-make}" 1132 2854 fi 1133 2855 1134 # Extract the first word of "ranlib", so it can be a program name with args. 1135 set dummy ranlib; ac_word=$2 1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1137 echo "configure:1138: checking for $ac_word" >&5 1138 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1139 echo $ac_n "(cached) $ac_c" 1>&6 2856 if test -n "$ac_tool_prefix"; then 2857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2859 echo "$as_me:$LINENO: checking for $ac_word" >&5 2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2861 if test "${ac_cv_prog_RANLIB+set}" = set; then 2862 echo $ECHO_N "(cached) $ECHO_C" >&6 1140 2863 else 1141 2864 if test -n "$RANLIB"; then 1142 2865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1143 2866 else 1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1145 ac_dummy="$PATH" 1146 for ac_dir in $ac_dummy; do 1147 test -z "$ac_dir" && ac_dir=. 1148 if test -f $ac_dir/$ac_word; then 1149 ac_cv_prog_RANLIB="ranlib" 1150 break 1151 fi 1152 done 1153 IFS="$ac_save_ifs" 1154 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1155 fi 1156 fi 1157 RANLIB="$ac_cv_prog_RANLIB" 2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868 for as_dir in $PATH 2869 do 2870 IFS=$as_save_IFS 2871 test -z "$as_dir" && as_dir=. 2872 for ac_exec_ext in '' $ac_executable_extensions; do 2873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2876 break 2 2877 fi 2878 done 2879 done 2880 2881 fi 2882 fi 2883 RANLIB=$ac_cv_prog_RANLIB 1158 2884 if test -n "$RANLIB"; then 1159 echo "$ac_t""$RANLIB" 1>&6 1160 else 1161 echo "$ac_t""no" 1>&6 1162 fi 1163 1164 1165 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1166 echo "configure:1167: checking how to run the C preprocessor" >&5 2885 echo "$as_me:$LINENO: result: $RANLIB" >&5 2886 echo "${ECHO_T}$RANLIB" >&6 2887 else 2888 echo "$as_me:$LINENO: result: no" >&5 2889 echo "${ECHO_T}no" >&6 2890 fi 2891 2892 fi 2893 if test -z "$ac_cv_prog_RANLIB"; then 2894 ac_ct_RANLIB=$RANLIB 2895 # Extract the first word of "ranlib", so it can be a program name with args. 2896 set dummy ranlib; ac_word=$2 2897 echo "$as_me:$LINENO: checking for $ac_word" >&5 2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2899 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2900 echo $ECHO_N "(cached) $ECHO_C" >&6 2901 else 2902 if test -n "$ac_ct_RANLIB"; then 2903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2904 else 2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906 for as_dir in $PATH 2907 do 2908 IFS=$as_save_IFS 2909 test -z "$as_dir" && as_dir=. 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2912 ac_cv_prog_ac_ct_RANLIB="ranlib" 2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2914 break 2 2915 fi 2916 done 2917 done 2918 2919 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2920 fi 2921 fi 2922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2923 if test -n "$ac_ct_RANLIB"; then 2924 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2925 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2926 else 2927 echo "$as_me:$LINENO: result: no" >&5 2928 echo "${ECHO_T}no" >&6 2929 fi 2930 2931 RANLIB=$ac_ct_RANLIB 2932 else 2933 RANLIB="$ac_cv_prog_RANLIB" 2934 fi 2935 2936 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 2943 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2944 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1167 2945 # On Suns, sometimes $CPP names a directory. 1168 2946 if test -n "$CPP" && test -d "$CPP"; then … … 1170 2948 fi 1171 2949 if test -z "$CPP"; then 1172 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1173 echo $ac_n "(cached) $ac_c" 1>&6 1174 else 1175 # This must be in double quotes, not single quotes, because CPP may get 1176 # substituted into the Makefile and "${CC-cc}" will confuse make. 1177 CPP="${CC-cc} -E" 2950 if test "${ac_cv_prog_CPP+set}" = set; then 2951 echo $ECHO_N "(cached) $ECHO_C" >&6 2952 else 2953 # Double quotes because CPP needs to be expanded 2954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2955 do 2956 ac_preproc_ok=false 2957 for ac_c_preproc_warn_flag in '' yes 2958 do 2959 # Use a header file that comes with gcc, so configuring glibc 2960 # with a fresh cross-compiler works. 2961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2962 # <limits.h> exists even on freestanding compilers. 1178 2963 # On the NeXT, cc -E runs the code through the compiler's parser, 1179 # not just through cpp. 1180 cat > conftest.$ac_ext <<EOF 1181 #line 1182 "configure" 1182 #include "confdefs.h" 1183 #include <assert.h> 1184 Syntax Error 1185 EOF 1186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1187 { (eval echo configure:1188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1189 if test -z "$ac_err"; then 2964 # not just through cpp. "Syntax error" is here to catch this case. 2965 cat >conftest.$ac_ext <<_ACEOF 2966 /* confdefs.h. */ 2967 _ACEOF 2968 cat confdefs.h >>conftest.$ac_ext 2969 cat >>conftest.$ac_ext <<_ACEOF 2970 /* end confdefs.h. */ 2971 #ifdef __STDC__ 2972 # include <limits.h> 2973 #else 2974 # include <assert.h> 2975 #endif 2976 Syntax error 2977 _ACEOF 2978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2980 ac_status=$? 2981 grep -v '^ *+' conftest.er1 >conftest.err 2982 rm -f conftest.er1 2983 cat conftest.err >&5 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); } >/dev/null; then 2986 if test -s conftest.err; then 2987 ac_cpp_err=$ac_c_preproc_warn_flag 2988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2989 else 2990 ac_cpp_err= 2991 fi 2992 else 2993 ac_cpp_err=yes 2994 fi 2995 if test -z "$ac_cpp_err"; then 1190 2996 : 1191 2997 else 1192 echo "$ac_err" >&5 1193 echo "configure: failed program was:" >&5 1194 cat conftest.$ac_ext >&5 1195 rm -rf conftest* 1196 CPP="${CC-cc} -E -traditional-cpp" 1197 cat > conftest.$ac_ext <<EOF 1198 #line 1199 "configure" 1199 #include "confdefs.h" 1200 #include <assert.h> 1201 Syntax Error 1202 EOF 1203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1204 { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1206 if test -z "$ac_err"; then 2998 echo "$as_me: failed program was:" >&5 2999 sed 's/^/| /' conftest.$ac_ext >&5 3000 3001 # Broken: fails on valid input. 3002 continue 3003 fi 3004 rm -f conftest.err conftest.$ac_ext 3005 3006 # OK, works on sane cases. Now check whether non-existent headers 3007 # can be detected and how. 3008 cat >conftest.$ac_ext <<_ACEOF 3009 /* confdefs.h. */ 3010 _ACEOF 3011 cat confdefs.h >>conftest.$ac_ext 3012 cat >>conftest.$ac_ext <<_ACEOF 3013 /* end confdefs.h. */ 3014 #include <ac_nonexistent.h> 3015 _ACEOF 3016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3018 ac_status=$? 3019 grep -v '^ *+' conftest.er1 >conftest.err 3020 rm -f conftest.er1 3021 cat conftest.err >&5 3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3023 (exit $ac_status); } >/dev/null; then 3024 if test -s conftest.err; then 3025 ac_cpp_err=$ac_c_preproc_warn_flag 3026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3027 else 3028 ac_cpp_err= 3029 fi 3030 else 3031 ac_cpp_err=yes 3032 fi 3033 if test -z "$ac_cpp_err"; then 3034 # Broken: success on invalid input. 3035 continue 3036 else 3037 echo "$as_me: failed program was:" >&5 3038 sed 's/^/| /' conftest.$ac_ext >&5 3039 3040 # Passes both tests. 3041 ac_preproc_ok=: 3042 break 3043 fi 3044 rm -f conftest.err conftest.$ac_ext 3045 3046 done 3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3048 rm -f conftest.err conftest.$ac_ext 3049 if $ac_preproc_ok; then 3050 break 3051 fi 3052 3053 done 3054 ac_cv_prog_CPP=$CPP 3055 3056 fi 3057 CPP=$ac_cv_prog_CPP 3058 else 3059 ac_cv_prog_CPP=$CPP 3060 fi 3061 echo "$as_me:$LINENO: result: $CPP" >&5 3062 echo "${ECHO_T}$CPP" >&6 3063 ac_preproc_ok=false 3064 for ac_c_preproc_warn_flag in '' yes 3065 do 3066 # Use a header file that comes with gcc, so configuring glibc 3067 # with a fresh cross-compiler works. 3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3069 # <limits.h> exists even on freestanding compilers. 3070 # On the NeXT, cc -E runs the code through the compiler's parser, 3071 # not just through cpp. "Syntax error" is here to catch this case. 3072 cat >conftest.$ac_ext <<_ACEOF 3073 /* confdefs.h. */ 3074 _ACEOF 3075 cat confdefs.h >>conftest.$ac_ext 3076 cat >>conftest.$ac_ext <<_ACEOF 3077 /* end confdefs.h. */ 3078 #ifdef __STDC__ 3079 # include <limits.h> 3080 #else 3081 # include <assert.h> 3082 #endif 3083 Syntax error 3084 _ACEOF 3085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3087 ac_status=$? 3088 grep -v '^ *+' conftest.er1 >conftest.err 3089 rm -f conftest.er1 3090 cat conftest.err >&5 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); } >/dev/null; then 3093 if test -s conftest.err; then 3094 ac_cpp_err=$ac_c_preproc_warn_flag 3095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3096 else 3097 ac_cpp_err= 3098 fi 3099 else 3100 ac_cpp_err=yes 3101 fi 3102 if test -z "$ac_cpp_err"; then 1207 3103 : 1208 3104 else 1209 echo "$ac_err" >&5 1210 echo "configure: failed program was:" >&5 1211 cat conftest.$ac_ext >&5 1212 rm -rf conftest* 1213 CPP="${CC-cc} -nologo -E" 1214 cat > conftest.$ac_ext <<EOF 1215 #line 1216 "configure" 1216 #include "confdefs.h" 1217 #include <assert.h> 1218 Syntax Error 1219 EOF 1220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1221 { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1223 if test -z "$ac_err"; then 3105 echo "$as_me: failed program was:" >&5 3106 sed 's/^/| /' conftest.$ac_ext >&5 3107 3108 # Broken: fails on valid input. 3109 continue 3110 fi 3111 rm -f conftest.err conftest.$ac_ext 3112 3113 # OK, works on sane cases. Now check whether non-existent headers 3114 # can be detected and how. 3115 cat >conftest.$ac_ext <<_ACEOF 3116 /* confdefs.h. */ 3117 _ACEOF 3118 cat confdefs.h >>conftest.$ac_ext 3119 cat >>conftest.$ac_ext <<_ACEOF 3120 /* end confdefs.h. */ 3121 #include <ac_nonexistent.h> 3122 _ACEOF 3123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3125 ac_status=$? 3126 grep -v '^ *+' conftest.er1 >conftest.err 3127 rm -f conftest.er1 3128 cat conftest.err >&5 3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 (exit $ac_status); } >/dev/null; then 3131 if test -s conftest.err; then 3132 ac_cpp_err=$ac_c_preproc_warn_flag 3133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3134 else 3135 ac_cpp_err= 3136 fi 3137 else 3138 ac_cpp_err=yes 3139 fi 3140 if test -z "$ac_cpp_err"; then 3141 # Broken: success on invalid input. 3142 continue 3143 else 3144 echo "$as_me: failed program was:" >&5 3145 sed 's/^/| /' conftest.$ac_ext >&5 3146 3147 # Passes both tests. 3148 ac_preproc_ok=: 3149 break 3150 fi 3151 rm -f conftest.err conftest.$ac_ext 3152 3153 done 3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3155 rm -f conftest.err conftest.$ac_ext 3156 if $ac_preproc_ok; then 1224 3157 : 1225 3158 else 1226 echo "$ac_err" >&5 1227 echo "configure: failed program was:" >&5 1228 cat conftest.$ac_ext >&5 1229 rm -rf conftest* 1230 CPP=/lib/cpp 1231 fi 1232 rm -f conftest* 1233 fi 1234 rm -f conftest* 1235 fi 1236 rm -f conftest* 1237 ac_cv_prog_CPP="$CPP" 1238 fi 1239 CPP="$ac_cv_prog_CPP" 1240 else 1241 ac_cv_prog_CPP="$CPP" 1242 fi 1243 echo "$ac_t""$CPP" 1>&6 1244 1245 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1246 echo "configure:1247: checking for AIX" >&5 1247 cat > conftest.$ac_ext <<EOF 1248 #line 1249 "configure" 1249 #include "confdefs.h" 3159 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3160 See \`config.log' for more details." >&5 3161 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3162 See \`config.log' for more details." >&2;} 3163 { (exit 1); exit 1; }; } 3164 fi 3165 3166 ac_ext=c 3167 ac_cpp='$CPP $CPPFLAGS' 3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3171 3172 3173 echo "$as_me:$LINENO: checking for egrep" >&5 3174 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3175 if test "${ac_cv_prog_egrep+set}" = set; then 3176 echo $ECHO_N "(cached) $ECHO_C" >&6 3177 else 3178 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3179 then ac_cv_prog_egrep='grep -E' 3180 else ac_cv_prog_egrep='egrep' 3181 fi 3182 fi 3183 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3184 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3185 EGREP=$ac_cv_prog_egrep 3186 3187 3188 3189 echo "$as_me:$LINENO: checking for AIX" >&5 3190 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3191 cat >conftest.$ac_ext <<_ACEOF 3192 /* confdefs.h. */ 3193 _ACEOF 3194 cat confdefs.h >>conftest.$ac_ext 3195 cat >>conftest.$ac_ext <<_ACEOF 3196 /* end confdefs.h. */ 1250 3197 #ifdef _AIX 1251 3198 yes 1252 3199 #endif 1253 3200 1254 EOF3201 _ACEOF 1255 3202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1256 egrep "yes" >/dev/null 2>&1; then 1257 rm -rf conftest* 1258 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3203 $EGREP "yes" >/dev/null 2>&1; then 3204 echo "$as_me:$LINENO: result: yes" >&5 3205 echo "${ECHO_T}yes" >&6 3206 cat >>confdefs.h <<\_ACEOF 1259 3207 #define _ALL_SOURCE 1 1260 EOF1261 1262 else 1263 rm -rf conftest*1264 echo "$ac_t""no" 1>&63208 _ACEOF 3209 3210 else 3211 echo "$as_me:$LINENO: result: no" >&5 3212 echo "${ECHO_T}no" >&6 1265 3213 fi 1266 3214 rm -f conftest* 1267 3215 1268 3216 1269 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1270 echo "configure:1271: checking for POSIXized ISC" >&5 1271 if test -d /etc/conf/kconfig.d && 1272 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1273 then 1274 echo "$ac_t""yes" 1>&6 1275 ISC=yes # If later tests want to check for ISC. 1276 cat >> confdefs.h <<\EOF 3217 echo "$as_me:$LINENO: checking for library containing strerror" >&5 3218 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3219 if test "${ac_cv_search_strerror+set}" = set; then 3220 echo $ECHO_N "(cached) $ECHO_C" >&6 3221 else 3222 ac_func_search_save_LIBS=$LIBS 3223 ac_cv_search_strerror=no 3224 cat >conftest.$ac_ext <<_ACEOF 3225 /* confdefs.h. */ 3226 _ACEOF 3227 cat confdefs.h >>conftest.$ac_ext 3228 cat >>conftest.$ac_ext <<_ACEOF 3229 /* end confdefs.h. */ 3230 3231 /* Override any gcc2 internal prototype to avoid an error. */ 3232 #ifdef __cplusplus 3233 extern "C" 3234 #endif 3235 /* We use char because int might match the return type of a gcc2 3236 builtin and then its argument prototype would still apply. */ 3237 char strerror (); 3238 int 3239 main () 3240 { 3241 strerror (); 3242 ; 3243 return 0; 3244 } 3245 _ACEOF 3246 rm -f conftest.$ac_objext conftest$ac_exeext 3247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3248 (eval $ac_link) 2>conftest.er1 3249 ac_status=$? 3250 grep -v '^ *+' conftest.er1 >conftest.err 3251 rm -f conftest.er1 3252 cat conftest.err >&5 3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3254 (exit $ac_status); } && 3255 { ac_try='test -z "$ac_c_werror_flag" 3256 || test ! -s conftest.err' 3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3258 (eval $ac_try) 2>&5 3259 ac_status=$? 3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3261 (exit $ac_status); }; } && 3262 { ac_try='test -s conftest$ac_exeext' 3263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3264 (eval $ac_try) 2>&5 3265 ac_status=$? 3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267 (exit $ac_status); }; }; then 3268 ac_cv_search_strerror="none required" 3269 else 3270 echo "$as_me: failed program was:" >&5 3271 sed 's/^/| /' conftest.$ac_ext >&5 3272 3273 fi 3274 rm -f conftest.err conftest.$ac_objext \ 3275 conftest$ac_exeext conftest.$ac_ext 3276 if test "$ac_cv_search_strerror" = no; then 3277 for ac_lib in cposix; do 3278 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3279 cat >conftest.$ac_ext <<_ACEOF 3280 /* confdefs.h. */ 3281 _ACEOF 3282 cat confdefs.h >>conftest.$ac_ext 3283 cat >>conftest.$ac_ext <<_ACEOF 3284 /* end confdefs.h. */ 3285 3286 /* Override any gcc2 internal prototype to avoid an error. */ 3287 #ifdef __cplusplus 3288 extern "C" 3289 #endif 3290 /* We use char because int might match the return type of a gcc2 3291 builtin and then its argument prototype would still apply. */ 3292 char strerror (); 3293 int 3294 main () 3295 { 3296 strerror (); 3297 ; 3298 return 0; 3299 } 3300 _ACEOF 3301 rm -f conftest.$ac_objext conftest$ac_exeext 3302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3303 (eval $ac_link) 2>conftest.er1 3304 ac_status=$? 3305 grep -v '^ *+' conftest.er1 >conftest.err 3306 rm -f conftest.er1 3307 cat conftest.err >&5 3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3309 (exit $ac_status); } && 3310 { ac_try='test -z "$ac_c_werror_flag" 3311 || test ! -s conftest.err' 3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3313 (eval $ac_try) 2>&5 3314 ac_status=$? 3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3316 (exit $ac_status); }; } && 3317 { ac_try='test -s conftest$ac_exeext' 3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3319 (eval $ac_try) 2>&5 3320 ac_status=$? 3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3322 (exit $ac_status); }; }; then 3323 ac_cv_search_strerror="-l$ac_lib" 3324 break 3325 else 3326 echo "$as_me: failed program was:" >&5 3327 sed 's/^/| /' conftest.$ac_ext >&5 3328 3329 fi 3330 rm -f conftest.err conftest.$ac_objext \ 3331 conftest$ac_exeext conftest.$ac_ext 3332 done 3333 fi 3334 LIBS=$ac_func_search_save_LIBS 3335 fi 3336 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3337 echo "${ECHO_T}$ac_cv_search_strerror" >&6 3338 if test "$ac_cv_search_strerror" != no; then 3339 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3340 3341 fi 3342 3343 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3344 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3345 if test "${ac_cv_header_stdc+set}" = set; then 3346 echo $ECHO_N "(cached) $ECHO_C" >&6 3347 else 3348 cat >conftest.$ac_ext <<_ACEOF 3349 /* confdefs.h. */ 3350 _ACEOF 3351 cat confdefs.h >>conftest.$ac_ext 3352 cat >>conftest.$ac_ext <<_ACEOF 3353 /* end confdefs.h. */ 3354 #include <stdlib.h> 3355 #include <stdarg.h> 3356 #include <string.h> 3357 #include <float.h> 3358 3359 int 3360 main () 3361 { 3362 3363 ; 3364 return 0; 3365 } 3366 _ACEOF 3367 rm -f conftest.$ac_objext 3368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3369 (eval $ac_compile) 2>conftest.er1 3370 ac_status=$? 3371 grep -v '^ *+' conftest.er1 >conftest.err 3372 rm -f conftest.er1 3373 cat conftest.err >&5 3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3375 (exit $ac_status); } && 3376 { ac_try='test -z "$ac_c_werror_flag" 3377 || test ! -s conftest.err' 3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3379 (eval $ac_try) 2>&5 3380 ac_status=$? 3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); }; } && 3383 { ac_try='test -s conftest.$ac_objext' 3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3385 (eval $ac_try) 2>&5 3386 ac_status=$? 3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 (exit $ac_status); }; }; then 3389 ac_cv_header_stdc=yes 3390 else 3391 echo "$as_me: failed program was:" >&5 3392 sed 's/^/| /' conftest.$ac_ext >&5 3393 3394 ac_cv_header_stdc=no 3395 fi 3396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3397 3398 if test $ac_cv_header_stdc = yes; then 3399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3400 cat >conftest.$ac_ext <<_ACEOF 3401 /* confdefs.h. */ 3402 _ACEOF 3403 cat confdefs.h >>conftest.$ac_ext 3404 cat >>conftest.$ac_ext <<_ACEOF 3405 /* end confdefs.h. */ 3406 #include <string.h> 3407 3408 _ACEOF 3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3410 $EGREP "memchr" >/dev/null 2>&1; then 3411 : 3412 else 3413 ac_cv_header_stdc=no 3414 fi 3415 rm -f conftest* 3416 3417 fi 3418 3419 if test $ac_cv_header_stdc = yes; then 3420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3421 cat >conftest.$ac_ext <<_ACEOF 3422 /* confdefs.h. */ 3423 _ACEOF 3424 cat confdefs.h >>conftest.$ac_ext 3425 cat >>conftest.$ac_ext <<_ACEOF 3426 /* end confdefs.h. */ 3427 #include <stdlib.h> 3428 3429 _ACEOF 3430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3431 $EGREP "free" >/dev/null 2>&1; then 3432 : 3433 else 3434 ac_cv_header_stdc=no 3435 fi 3436 rm -f conftest* 3437 3438 fi 3439 3440 if test $ac_cv_header_stdc = yes; then 3441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3442 if test "$cross_compiling" = yes; then 3443 : 3444 else 3445 cat >conftest.$ac_ext <<_ACEOF 3446 /* confdefs.h. */ 3447 _ACEOF 3448 cat confdefs.h >>conftest.$ac_ext 3449 cat >>conftest.$ac_ext <<_ACEOF 3450 /* end confdefs.h. */ 3451 #include <ctype.h> 3452 #if ((' ' & 0x0FF) == 0x020) 3453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3455 #else 3456 # define ISLOWER(c) \ 3457 (('a' <= (c) && (c) <= 'i') \ 3458 || ('j' <= (c) && (c) <= 'r') \ 3459 || ('s' <= (c) && (c) <= 'z')) 3460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3461 #endif 3462 3463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3464 int 3465 main () 3466 { 3467 int i; 3468 for (i = 0; i < 256; i++) 3469 if (XOR (islower (i), ISLOWER (i)) 3470 || toupper (i) != TOUPPER (i)) 3471 exit(2); 3472 exit (0); 3473 } 3474 _ACEOF 3475 rm -f conftest$ac_exeext 3476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3477 (eval $ac_link) 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3482 (eval $ac_try) 2>&5 3483 ac_status=$? 3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3485 (exit $ac_status); }; }; then 3486 : 3487 else 3488 echo "$as_me: program exited with status $ac_status" >&5 3489 echo "$as_me: failed program was:" >&5 3490 sed 's/^/| /' conftest.$ac_ext >&5 3491 3492 ( exit $ac_status ) 3493 ac_cv_header_stdc=no 3494 fi 3495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3496 fi 3497 fi 3498 fi 3499 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3500 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3501 if test $ac_cv_header_stdc = yes; then 3502 3503 cat >>confdefs.h <<\_ACEOF 3504 #define STDC_HEADERS 1 3505 _ACEOF 3506 3507 fi 3508 3509 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3520 inttypes.h stdint.h unistd.h 3521 do 3522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3523 echo "$as_me:$LINENO: checking for $ac_header" >&5 3524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3525 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3526 echo $ECHO_N "(cached) $ECHO_C" >&6 3527 else 3528 cat >conftest.$ac_ext <<_ACEOF 3529 /* confdefs.h. */ 3530 _ACEOF 3531 cat confdefs.h >>conftest.$ac_ext 3532 cat >>conftest.$ac_ext <<_ACEOF 3533 /* end confdefs.h. */ 3534 $ac_includes_default 3535 3536 #include <$ac_header> 3537 _ACEOF 3538 rm -f conftest.$ac_objext 3539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3540 (eval $ac_compile) 2>conftest.er1 3541 ac_status=$? 3542 grep -v '^ *+' conftest.er1 >conftest.err 3543 rm -f conftest.er1 3544 cat conftest.err >&5 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3546 (exit $ac_status); } && 3547 { ac_try='test -z "$ac_c_werror_flag" 3548 || test ! -s conftest.err' 3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3550 (eval $ac_try) 2>&5 3551 ac_status=$? 3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3553 (exit $ac_status); }; } && 3554 { ac_try='test -s conftest.$ac_objext' 3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3556 (eval $ac_try) 2>&5 3557 ac_status=$? 3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3559 (exit $ac_status); }; }; then 3560 eval "$as_ac_Header=yes" 3561 else 3562 echo "$as_me: failed program was:" >&5 3563 sed 's/^/| /' conftest.$ac_ext >&5 3564 3565 eval "$as_ac_Header=no" 3566 fi 3567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3568 fi 3569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3571 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3572 cat >>confdefs.h <<_ACEOF 3573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3574 _ACEOF 3575 3576 fi 3577 3578 done 3579 3580 3581 if test "${ac_cv_header_minix_config_h+set}" = set; then 3582 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3583 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3584 if test "${ac_cv_header_minix_config_h+set}" = set; then 3585 echo $ECHO_N "(cached) $ECHO_C" >&6 3586 fi 3587 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3588 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3589 else 3590 # Is the header compilable? 3591 echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3592 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3593 cat >conftest.$ac_ext <<_ACEOF 3594 /* confdefs.h. */ 3595 _ACEOF 3596 cat confdefs.h >>conftest.$ac_ext 3597 cat >>conftest.$ac_ext <<_ACEOF 3598 /* end confdefs.h. */ 3599 $ac_includes_default 3600 #include <minix/config.h> 3601 _ACEOF 3602 rm -f conftest.$ac_objext 3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3604 (eval $ac_compile) 2>conftest.er1 3605 ac_status=$? 3606 grep -v '^ *+' conftest.er1 >conftest.err 3607 rm -f conftest.er1 3608 cat conftest.err >&5 3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3610 (exit $ac_status); } && 3611 { ac_try='test -z "$ac_c_werror_flag" 3612 || test ! -s conftest.err' 3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3614 (eval $ac_try) 2>&5 3615 ac_status=$? 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); }; } && 3618 { ac_try='test -s conftest.$ac_objext' 3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3620 (eval $ac_try) 2>&5 3621 ac_status=$? 3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3623 (exit $ac_status); }; }; then 3624 ac_header_compiler=yes 3625 else 3626 echo "$as_me: failed program was:" >&5 3627 sed 's/^/| /' conftest.$ac_ext >&5 3628 3629 ac_header_compiler=no 3630 fi 3631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3633 echo "${ECHO_T}$ac_header_compiler" >&6 3634 3635 # Is the header present? 3636 echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3637 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3638 cat >conftest.$ac_ext <<_ACEOF 3639 /* confdefs.h. */ 3640 _ACEOF 3641 cat confdefs.h >>conftest.$ac_ext 3642 cat >>conftest.$ac_ext <<_ACEOF 3643 /* end confdefs.h. */ 3644 #include <minix/config.h> 3645 _ACEOF 3646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3648 ac_status=$? 3649 grep -v '^ *+' conftest.er1 >conftest.err 3650 rm -f conftest.er1 3651 cat conftest.err >&5 3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3653 (exit $ac_status); } >/dev/null; then 3654 if test -s conftest.err; then 3655 ac_cpp_err=$ac_c_preproc_warn_flag 3656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3657 else 3658 ac_cpp_err= 3659 fi 3660 else 3661 ac_cpp_err=yes 3662 fi 3663 if test -z "$ac_cpp_err"; then 3664 ac_header_preproc=yes 3665 else 3666 echo "$as_me: failed program was:" >&5 3667 sed 's/^/| /' conftest.$ac_ext >&5 3668 3669 ac_header_preproc=no 3670 fi 3671 rm -f conftest.err conftest.$ac_ext 3672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3673 echo "${ECHO_T}$ac_header_preproc" >&6 3674 3675 # So? What about this header? 3676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3677 yes:no: ) 3678 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3679 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3680 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3681 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3682 ac_header_preproc=yes 3683 ;; 3684 no:yes:* ) 3685 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3686 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3687 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3688 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3689 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3690 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3691 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3692 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3693 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3694 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3695 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3696 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3697 ( 3698 cat <<\_ASBOX 3699 ## ------------------------------------------ ## 3700 ## Report this to the AC_PACKAGE_NAME lists. ## 3701 ## ------------------------------------------ ## 3702 _ASBOX 3703 ) | 3704 sed "s/^/$as_me: WARNING: /" >&2 3705 ;; 3706 esac 3707 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3708 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3709 if test "${ac_cv_header_minix_config_h+set}" = set; then 3710 echo $ECHO_N "(cached) $ECHO_C" >&6 3711 else 3712 ac_cv_header_minix_config_h=$ac_header_preproc 3713 fi 3714 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3715 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3716 3717 fi 3718 if test $ac_cv_header_minix_config_h = yes; then 3719 MINIX=yes 3720 else 3721 MINIX= 3722 fi 3723 3724 3725 if test "$MINIX" = yes; then 3726 3727 cat >>confdefs.h <<\_ACEOF 1277 3728 #define _POSIX_SOURCE 1 1278 EOF 1279 1280 if test "$GCC" = yes; then 1281 CC="$CC -posix" 1282 else 1283 CC="$CC -Xp" 1284 fi 1285 else 1286 echo "$ac_t""no" 1>&6 1287 ISC= 1288 fi 1289 1290 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1291 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1292 echo "configure:1293: checking for minix/config.h" >&5 1293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1294 echo $ac_n "(cached) $ac_c" 1>&6 1295 else 1296 cat > conftest.$ac_ext <<EOF 1297 #line 1298 "configure" 1298 #include "confdefs.h" 1299 #include <minix/config.h> 1300 EOF 1301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1302 { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1304 if test -z "$ac_err"; then 1305 rm -rf conftest* 1306 eval "ac_cv_header_$ac_safe=yes" 1307 else 1308 echo "$ac_err" >&5 1309 echo "configure: failed program was:" >&5 1310 cat conftest.$ac_ext >&5 1311 rm -rf conftest* 1312 eval "ac_cv_header_$ac_safe=no" 1313 fi 1314 rm -f conftest* 1315 fi 1316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1317 echo "$ac_t""yes" 1>&6 1318 MINIX=yes 1319 else 1320 echo "$ac_t""no" 1>&6 1321 MINIX= 1322 fi 1323 1324 if test "$MINIX" = yes; then 1325 cat >> confdefs.h <<\EOF 1326 #define _POSIX_SOURCE 1 1327 EOF 1328 1329 cat >> confdefs.h <<\EOF 3729 _ACEOF 3730 3731 3732 cat >>confdefs.h <<\_ACEOF 1330 3733 #define _POSIX_1_SOURCE 2 1331 EOF 1332 1333 cat >> confdefs.h <<\EOF 3734 _ACEOF 3735 3736 3737 cat >>confdefs.h <<\_ACEOF 1334 3738 #define _MINIX 1 1335 EOF1336 1337 fi 1338 1339 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&61340 echo "configure:1341: checking for ${CC-cc} option to accept ANSI C" >&51341 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then1342 echo $ ac_n "(cached) $ac_c" 1>&63739 _ACEOF 3740 3741 fi 3742 3743 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 3744 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 3745 if test "${ac_cv_prog_cc_stdc+set}" = set; then 3746 echo $ECHO_N "(cached) $ECHO_C" >&6 1343 3747 else 1344 3748 ac_cv_prog_cc_stdc=no … … 1353 3757 do 1354 3758 CFLAGS="$ac_save_CFLAGS $ac_arg" 1355 cat > conftest.$ac_ext <<EOF 1356 #line 1357 "configure" 1357 #include "confdefs.h" 3759 cat >conftest.$ac_ext <<_ACEOF 3760 /* confdefs.h. */ 3761 _ACEOF 3762 cat confdefs.h >>conftest.$ac_ext 3763 cat >>conftest.$ac_ext <<_ACEOF 3764 /* end confdefs.h. */ 1358 3765 #if !defined(__STDC__) || __STDC__ != 1 1359 3766 choke me 1360 #endif 1361 1362 int main() { 3767 #endif 3768 3769 int 3770 main () 3771 { 1363 3772 int test (int i, double x); 1364 3773 struct s1 {int (*f) (int a);}; 1365 3774 struct s2 {int (*f) (double a);}; 1366 ; return 0; } 1367 EOF 1368 if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1369 rm -rf conftest* 3775 ; 3776 return 0; 3777 } 3778 _ACEOF 3779 rm -f conftest.$ac_objext 3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3781 (eval $ac_compile) 2>conftest.er1 3782 ac_status=$? 3783 grep -v '^ *+' conftest.er1 >conftest.err 3784 rm -f conftest.er1 3785 cat conftest.err >&5 3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3787 (exit $ac_status); } && 3788 { ac_try='test -z "$ac_c_werror_flag" 3789 || test ! -s conftest.err' 3790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3791 (eval $ac_try) 2>&5 3792 ac_status=$? 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3794 (exit $ac_status); }; } && 3795 { ac_try='test -s conftest.$ac_objext' 3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3797 (eval $ac_try) 2>&5 3798 ac_status=$? 3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3800 (exit $ac_status); }; }; then 1370 3801 ac_cv_prog_cc_stdc="$ac_arg"; break 1371 3802 else 1372 echo "configure: failed program was:" >&5 1373 cat conftest.$ac_ext >&5 1374 fi 1375 rm -f conftest* 3803 echo "$as_me: failed program was:" >&5 3804 sed 's/^/| /' conftest.$ac_ext >&5 3805 3806 fi 3807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1376 3808 done 1377 3809 CFLAGS="$ac_save_CFLAGS" … … 1379 3811 fi 1380 3812 1381 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 3813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1382 3815 case "x$ac_cv_prog_cc_stdc" in 1383 3816 x|xno) ;; … … 1386 3819 1387 3820 1388 echo $ac_n "checking for function prototypes""... $ac_c" 1>&61389 echo "configure:1390: checking for function prototypes" >&53821 echo "$as_me:$LINENO: checking for function prototypes" >&5 3822 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 1390 3823 if test "$ac_cv_prog_cc_stdc" != no; then 1391 echo "$ac_t""yes" 1>&6 1392 cat >> confdefs.h <<\EOF 3824 echo "$as_me:$LINENO: result: yes" >&5 3825 echo "${ECHO_T}yes" >&6 3826 cat >>confdefs.h <<\_ACEOF 1393 3827 #define PROTOTYPES 1 1394 EOF3828 _ACEOF 1395 3829 1396 3830 U= ANSI2KNR= 1397 3831 else 1398 echo "$ac_t""no" 1>&6 3832 echo "$as_me:$LINENO: result: no" >&5 3833 echo "${ECHO_T}no" >&6 1399 3834 U=_ ANSI2KNR=ansi2knr 1400 3835 fi 1401 3836 1402 echo $ac_n "checking for working const""... $ac_c" 1>&6 1403 echo "configure:1404: checking for working const" >&5 1404 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1405 echo $ac_n "(cached) $ac_c" 1>&6 1406 else 1407 cat > conftest.$ac_ext <<EOF 1408 #line 1409 "configure" 1409 #include "confdefs.h" 1410 1411 int main() { 1412 1413 /* Ultrix mips cc rejects this. */ 1414 typedef int charset[2]; const charset x; 1415 /* SunOS 4.1.1 cc rejects this. */ 1416 char const *const *ccp; 1417 char **p; 1418 /* NEC SVR4.0.2 mips cc rejects this. */ 1419 struct point {int x, y;}; 1420 static struct point const zero = {0,0}; 1421 /* AIX XL C 1.02.0.0 rejects this. 1422 It does not let you subtract one const X* pointer from another in an arm 1423 of an if-expression whose if-part is not a constant expression */ 1424 const char *g = "string"; 1425 ccp = &g + (g ? g-g : 0); 1426 /* HPUX 7.0 cc rejects these. */ 1427 ++ccp; 1428 p = (char**) ccp; 1429 ccp = (char const *const *) p; 1430 { /* SCO 3.2v4 cc rejects this. */ 1431 char *t; 1432 char const *s = 0 ? (char *) 0 : (char const *) 0; 1433 1434 *t++ = 0; 3837 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3839 if test "${ac_cv_c_const+set}" = set; then 3840 echo $ECHO_N "(cached) $ECHO_C" >&6 3841 else 3842 cat >conftest.$ac_ext <<_ACEOF 3843 /* confdefs.h. */ 3844 _ACEOF 3845 cat confdefs.h >>conftest.$ac_ext 3846 cat >>conftest.$ac_ext <<_ACEOF 3847 /* end confdefs.h. */ 3848 3849 int 3850 main () 3851 { 3852 /* FIXME: Include the comments suggested by Paul. */ 3853 #ifndef __cplusplus 3854 /* Ultrix mips cc rejects this. */ 3855 typedef int charset[2]; 3856 const charset x; 3857 /* SunOS 4.1.1 cc rejects this. */ 3858 char const *const *ccp; 3859 char **p; 3860 /* NEC SVR4.0.2 mips cc rejects this. */ 3861 struct point {int x, y;}; 3862 static struct point const zero = {0,0}; 3863 /* AIX XL C 1.02.0.0 rejects this. 3864 It does not let you subtract one const X* pointer from another in 3865 an arm of an if-expression whose if-part is not a constant 3866 expression */ 3867 const char *g = "string"; 3868 ccp = &g + (g ? g-g : 0); 3869 /* HPUX 7.0 cc rejects these. */ 3870 ++ccp; 3871 p = (char**) ccp; 3872 ccp = (char const *const *) p; 3873 { /* SCO 3.2v4 cc rejects this. */ 3874 char *t; 3875 char const *s = 0 ? (char *) 0 : (char const *) 0; 3876 3877 *t++ = 0; 3878 } 3879 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3880 int x[] = {25, 17}; 3881 const int *foo = &x[0]; 3882 ++foo; 3883 } 3884 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3885 typedef const int *iptr; 3886 iptr p = 0; 3887 ++p; 3888 } 3889 { /* AIX XL C 1.02.0.0 rejects this saying 3890 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3891 struct s { int j; const int *ap[3]; }; 3892 struct s *b; b->j = 5; 3893 } 3894 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3895 const int foo = 10; 3896 } 3897 #endif 3898 3899 ; 3900 return 0; 1435 3901 } 1436 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1437 int x[] = {25, 17}; 1438 const int *foo = &x[0]; 1439 ++foo; 3902 _ACEOF 3903 rm -f conftest.$ac_objext 3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3905 (eval $ac_compile) 2>conftest.er1 3906 ac_status=$? 3907 grep -v '^ *+' conftest.er1 >conftest.err 3908 rm -f conftest.er1 3909 cat conftest.err >&5 3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3911 (exit $ac_status); } && 3912 { ac_try='test -z "$ac_c_werror_flag" 3913 || test ! -s conftest.err' 3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3915 (eval $ac_try) 2>&5 3916 ac_status=$? 3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3918 (exit $ac_status); }; } && 3919 { ac_try='test -s conftest.$ac_objext' 3920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3921 (eval $ac_try) 2>&5 3922 ac_status=$? 3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3924 (exit $ac_status); }; }; then 3925 ac_cv_c_const=yes 3926 else 3927 echo "$as_me: failed program was:" >&5 3928 sed 's/^/| /' conftest.$ac_ext >&5 3929 3930 ac_cv_c_const=no 3931 fi 3932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3933 fi 3934 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3935 echo "${ECHO_T}$ac_cv_c_const" >&6 3936 if test $ac_cv_c_const = no; then 3937 3938 cat >>confdefs.h <<\_ACEOF 3939 #define const 3940 _ACEOF 3941 3942 fi 3943 3944 echo "$as_me:$LINENO: checking for off_t" >&5 3945 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 3946 if test "${ac_cv_type_off_t+set}" = set; then 3947 echo $ECHO_N "(cached) $ECHO_C" >&6 3948 else 3949 cat >conftest.$ac_ext <<_ACEOF 3950 /* confdefs.h. */ 3951 _ACEOF 3952 cat confdefs.h >>conftest.$ac_ext 3953 cat >>conftest.$ac_ext <<_ACEOF 3954 /* end confdefs.h. */ 3955 $ac_includes_default 3956 int 3957 main () 3958 { 3959 if ((off_t *) 0) 3960 return 0; 3961 if (sizeof (off_t)) 3962 return 0; 3963 ; 3964 return 0; 1440 3965 } 1441 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1442 typedef const int *iptr; 1443 iptr p = 0; 1444 ++p; 3966 _ACEOF 3967 rm -f conftest.$ac_objext 3968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3969 (eval $ac_compile) 2>conftest.er1 3970 ac_status=$? 3971 grep -v '^ *+' conftest.er1 >conftest.err 3972 rm -f conftest.er1 3973 cat conftest.err >&5 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); } && 3976 { ac_try='test -z "$ac_c_werror_flag" 3977 || test ! -s conftest.err' 3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3979 (eval $ac_try) 2>&5 3980 ac_status=$? 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3982 (exit $ac_status); }; } && 3983 { ac_try='test -s conftest.$ac_objext' 3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3985 (eval $ac_try) 2>&5 3986 ac_status=$? 3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3988 (exit $ac_status); }; }; then 3989 ac_cv_type_off_t=yes 3990 else 3991 echo "$as_me: failed program was:" >&5 3992 sed 's/^/| /' conftest.$ac_ext >&5 3993 3994 ac_cv_type_off_t=no 3995 fi 3996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3997 fi 3998 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 3999 echo "${ECHO_T}$ac_cv_type_off_t" >&6 4000 if test $ac_cv_type_off_t = yes; then 4001 : 4002 else 4003 4004 cat >>confdefs.h <<_ACEOF 4005 #define off_t long 4006 _ACEOF 4007 4008 fi 4009 4010 echo "$as_me:$LINENO: checking for size_t" >&5 4011 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4012 if test "${ac_cv_type_size_t+set}" = set; then 4013 echo $ECHO_N "(cached) $ECHO_C" >&6 4014 else 4015 cat >conftest.$ac_ext <<_ACEOF 4016 /* confdefs.h. */ 4017 _ACEOF 4018 cat confdefs.h >>conftest.$ac_ext 4019 cat >>conftest.$ac_ext <<_ACEOF 4020 /* end confdefs.h. */ 4021 $ac_includes_default 4022 int 4023 main () 4024 { 4025 if ((size_t *) 0) 4026 return 0; 4027 if (sizeof (size_t)) 4028 return 0; 4029 ; 4030 return 0; 1445 4031 } 1446 { /* AIX XL C 1.02.0.0 rejects this saying 1447 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1448 struct s { int j; const int *ap[3]; }; 1449 struct s *b; b->j = 5; 4032 _ACEOF 4033 rm -f conftest.$ac_objext 4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4035 (eval $ac_compile) 2>conftest.er1 4036 ac_status=$? 4037 grep -v '^ *+' conftest.er1 >conftest.err 4038 rm -f conftest.er1 4039 cat conftest.err >&5 4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4041 (exit $ac_status); } && 4042 { ac_try='test -z "$ac_c_werror_flag" 4043 || test ! -s conftest.err' 4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4045 (eval $ac_try) 2>&5 4046 ac_status=$? 4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4048 (exit $ac_status); }; } && 4049 { ac_try='test -s conftest.$ac_objext' 4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4051 (eval $ac_try) 2>&5 4052 ac_status=$? 4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4054 (exit $ac_status); }; }; then 4055 ac_cv_type_size_t=yes 4056 else 4057 echo "$as_me: failed program was:" >&5 4058 sed 's/^/| /' conftest.$ac_ext >&5 4059 4060 ac_cv_type_size_t=no 4061 fi 4062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4063 fi 4064 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4065 echo "${ECHO_T}$ac_cv_type_size_t" >&6 4066 if test $ac_cv_type_size_t = yes; then 4067 : 4068 else 4069 4070 cat >>confdefs.h <<_ACEOF 4071 #define size_t unsigned 4072 _ACEOF 4073 4074 fi 4075 4076 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4077 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4078 if test "${ac_cv_header_time+set}" = set; then 4079 echo $ECHO_N "(cached) $ECHO_C" >&6 4080 else 4081 cat >conftest.$ac_ext <<_ACEOF 4082 /* confdefs.h. */ 4083 _ACEOF 4084 cat confdefs.h >>conftest.$ac_ext 4085 cat >>conftest.$ac_ext <<_ACEOF 4086 /* end confdefs.h. */ 4087 #include <sys/types.h> 4088 #include <sys/time.h> 4089 #include <time.h> 4090 4091 int 4092 main () 4093 { 4094 if ((struct tm *) 0) 4095 return 0; 4096 ; 4097 return 0; 1450 4098 } 1451 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1452 const int foo = 10; 4099 _ACEOF 4100 rm -f conftest.$ac_objext 4101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4102 (eval $ac_compile) 2>conftest.er1 4103 ac_status=$? 4104 grep -v '^ *+' conftest.er1 >conftest.err 4105 rm -f conftest.er1 4106 cat conftest.err >&5 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); } && 4109 { ac_try='test -z "$ac_c_werror_flag" 4110 || test ! -s conftest.err' 4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4112 (eval $ac_try) 2>&5 4113 ac_status=$? 4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4115 (exit $ac_status); }; } && 4116 { ac_try='test -s conftest.$ac_objext' 4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4118 (eval $ac_try) 2>&5 4119 ac_status=$? 4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4121 (exit $ac_status); }; }; then 4122 ac_cv_header_time=yes 4123 else 4124 echo "$as_me: failed program was:" >&5 4125 sed 's/^/| /' conftest.$ac_ext >&5 4126 4127 ac_cv_header_time=no 4128 fi 4129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4130 fi 4131 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4132 echo "${ECHO_T}$ac_cv_header_time" >&6 4133 if test $ac_cv_header_time = yes; then 4134 4135 cat >>confdefs.h <<\_ACEOF 4136 #define TIME_WITH_SYS_TIME 1 4137 _ACEOF 4138 4139 fi 4140 4141 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4142 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4143 if test "${ac_cv_struct_tm+set}" = set; then 4144 echo $ECHO_N "(cached) $ECHO_C" >&6 4145 else 4146 cat >conftest.$ac_ext <<_ACEOF 4147 /* confdefs.h. */ 4148 _ACEOF 4149 cat confdefs.h >>conftest.$ac_ext 4150 cat >>conftest.$ac_ext <<_ACEOF 4151 /* end confdefs.h. */ 4152 #include <sys/types.h> 4153 #include <time.h> 4154 4155 int 4156 main () 4157 { 4158 struct tm *tp; tp->tm_sec; 4159 ; 4160 return 0; 1453 4161 } 1454 1455 ; return 0; } 1456 EOF 1457 if { (eval echo configure:1458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1458 rm -rf conftest* 1459 ac_cv_c_const=yes 1460 else 1461 echo "configure: failed program was:" >&5 1462 cat conftest.$ac_ext >&5 1463 rm -rf conftest* 1464 ac_cv_c_const=no 1465 fi 1466 rm -f conftest* 1467 fi 1468 1469 echo "$ac_t""$ac_cv_c_const" 1>&6 1470 if test $ac_cv_c_const = no; then 1471 cat >> confdefs.h <<\EOF 1472 #define const 1473 EOF 1474 1475 fi 1476 1477 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1478 echo "configure:1479: checking for ANSI C header files" >&5 1479 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1480 echo $ac_n "(cached) $ac_c" 1>&6 1481 else 1482 cat > conftest.$ac_ext <<EOF 1483 #line 1484 "configure" 1484 #include "confdefs.h" 4162 _ACEOF 4163 rm -f conftest.$ac_objext 4164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4165 (eval $ac_compile) 2>conftest.er1 4166 ac_status=$? 4167 grep -v '^ *+' conftest.er1 >conftest.err 4168 rm -f conftest.er1 4169 cat conftest.err >&5 4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); } && 4172 { ac_try='test -z "$ac_c_werror_flag" 4173 || test ! -s conftest.err' 4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4175 (eval $ac_try) 2>&5 4176 ac_status=$? 4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4178 (exit $ac_status); }; } && 4179 { ac_try='test -s conftest.$ac_objext' 4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4181 (eval $ac_try) 2>&5 4182 ac_status=$? 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); }; }; then 4185 ac_cv_struct_tm=time.h 4186 else 4187 echo "$as_me: failed program was:" >&5 4188 sed 's/^/| /' conftest.$ac_ext >&5 4189 4190 ac_cv_struct_tm=sys/time.h 4191 fi 4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4193 fi 4194 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 4195 echo "${ECHO_T}$ac_cv_struct_tm" >&6 4196 if test $ac_cv_struct_tm = sys/time.h; then 4197 4198 cat >>confdefs.h <<\_ACEOF 4199 #define TM_IN_SYS_TIME 1 4200 _ACEOF 4201 4202 fi 4203 4204 4205 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 4206 cat >conftest.$ac_ext <<_ACEOF 4207 /* confdefs.h. */ 4208 _ACEOF 4209 cat confdefs.h >>conftest.$ac_ext 4210 cat >>conftest.$ac_ext <<_ACEOF 4211 /* end confdefs.h. */ 4212 #include <stdio.h> 4213 4214 int 4215 main () 4216 { 4217 FILE *rubbish = popen("yes", "r"); 4218 ; 4219 return 0; 4220 } 4221 _ACEOF 4222 rm -f conftest.$ac_objext 4223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4224 (eval $ac_compile) 2>conftest.er1 4225 ac_status=$? 4226 grep -v '^ *+' conftest.er1 >conftest.err 4227 rm -f conftest.er1 4228 cat conftest.err >&5 4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4230 (exit $ac_status); } && 4231 { ac_try='test -z "$ac_c_werror_flag" 4232 || test ! -s conftest.err' 4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4234 (eval $ac_try) 2>&5 4235 ac_status=$? 4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4237 (exit $ac_status); }; } && 4238 { ac_try='test -s conftest.$ac_objext' 4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4240 (eval $ac_try) 2>&5 4241 ac_status=$? 4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4243 (exit $ac_status); }; }; then 4244 : 4245 else 4246 echo "$as_me: failed program was:" >&5 4247 sed 's/^/| /' conftest.$ac_ext >&5 4248 4249 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 4250 fi 4251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4252 fi 4253 4254 4255 4256 echo "$as_me:$LINENO: checking for main in -lm" >&5 4257 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 4258 if test "${ac_cv_lib_m_main+set}" = set; then 4259 echo $ECHO_N "(cached) $ECHO_C" >&6 4260 else 4261 ac_check_lib_save_LIBS=$LIBS 4262 LIBS="-lm $LIBS" 4263 cat >conftest.$ac_ext <<_ACEOF 4264 /* confdefs.h. */ 4265 _ACEOF 4266 cat confdefs.h >>conftest.$ac_ext 4267 cat >>conftest.$ac_ext <<_ACEOF 4268 /* end confdefs.h. */ 4269 4270 4271 int 4272 main () 4273 { 4274 main (); 4275 ; 4276 return 0; 4277 } 4278 _ACEOF 4279 rm -f conftest.$ac_objext conftest$ac_exeext 4280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4281 (eval $ac_link) 2>conftest.er1 4282 ac_status=$? 4283 grep -v '^ *+' conftest.er1 >conftest.err 4284 rm -f conftest.er1 4285 cat conftest.err >&5 4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4287 (exit $ac_status); } && 4288 { ac_try='test -z "$ac_c_werror_flag" 4289 || test ! -s conftest.err' 4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4291 (eval $ac_try) 2>&5 4292 ac_status=$? 4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4294 (exit $ac_status); }; } && 4295 { ac_try='test -s conftest$ac_exeext' 4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4297 (eval $ac_try) 2>&5 4298 ac_status=$? 4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300 (exit $ac_status); }; }; then 4301 ac_cv_lib_m_main=yes 4302 else 4303 echo "$as_me: failed program was:" >&5 4304 sed 's/^/| /' conftest.$ac_ext >&5 4305 4306 ac_cv_lib_m_main=no 4307 fi 4308 rm -f conftest.err conftest.$ac_objext \ 4309 conftest$ac_exeext conftest.$ac_ext 4310 LIBS=$ac_check_lib_save_LIBS 4311 fi 4312 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 4313 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 4314 if test $ac_cv_lib_m_main = yes; then 4315 cat >>confdefs.h <<_ACEOF 4316 #define HAVE_LIBM 1 4317 _ACEOF 4318 4319 LIBS="-lm $LIBS" 4320 4321 fi 4322 4323 4324 4325 4326 4327 4328 4329 ac_header_dirent=no 4330 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 4331 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4332 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 4333 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 4334 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4335 echo $ECHO_N "(cached) $ECHO_C" >&6 4336 else 4337 cat >conftest.$ac_ext <<_ACEOF 4338 /* confdefs.h. */ 4339 _ACEOF 4340 cat confdefs.h >>conftest.$ac_ext 4341 cat >>conftest.$ac_ext <<_ACEOF 4342 /* end confdefs.h. */ 4343 #include <sys/types.h> 4344 #include <$ac_hdr> 4345 4346 int 4347 main () 4348 { 4349 if ((DIR *) 0) 4350 return 0; 4351 ; 4352 return 0; 4353 } 4354 _ACEOF 4355 rm -f conftest.$ac_objext 4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4357 (eval $ac_compile) 2>conftest.er1 4358 ac_status=$? 4359 grep -v '^ *+' conftest.er1 >conftest.err 4360 rm -f conftest.er1 4361 cat conftest.err >&5 4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4363 (exit $ac_status); } && 4364 { ac_try='test -z "$ac_c_werror_flag" 4365 || test ! -s conftest.err' 4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4367 (eval $ac_try) 2>&5 4368 ac_status=$? 4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4370 (exit $ac_status); }; } && 4371 { ac_try='test -s conftest.$ac_objext' 4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4373 (eval $ac_try) 2>&5 4374 ac_status=$? 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); }; }; then 4377 eval "$as_ac_Header=yes" 4378 else 4379 echo "$as_me: failed program was:" >&5 4380 sed 's/^/| /' conftest.$ac_ext >&5 4381 4382 eval "$as_ac_Header=no" 4383 fi 4384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4385 fi 4386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4388 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4389 cat >>confdefs.h <<_ACEOF 4390 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4391 _ACEOF 4392 4393 ac_header_dirent=$ac_hdr; break 4394 fi 4395 4396 done 4397 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4398 if test $ac_header_dirent = dirent.h; then 4399 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4401 if test "${ac_cv_search_opendir+set}" = set; then 4402 echo $ECHO_N "(cached) $ECHO_C" >&6 4403 else 4404 ac_func_search_save_LIBS=$LIBS 4405 ac_cv_search_opendir=no 4406 cat >conftest.$ac_ext <<_ACEOF 4407 /* confdefs.h. */ 4408 _ACEOF 4409 cat confdefs.h >>conftest.$ac_ext 4410 cat >>conftest.$ac_ext <<_ACEOF 4411 /* end confdefs.h. */ 4412 4413 /* Override any gcc2 internal prototype to avoid an error. */ 4414 #ifdef __cplusplus 4415 extern "C" 4416 #endif 4417 /* We use char because int might match the return type of a gcc2 4418 builtin and then its argument prototype would still apply. */ 4419 char opendir (); 4420 int 4421 main () 4422 { 4423 opendir (); 4424 ; 4425 return 0; 4426 } 4427 _ACEOF 4428 rm -f conftest.$ac_objext conftest$ac_exeext 4429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4430 (eval $ac_link) 2>conftest.er1 4431 ac_status=$? 4432 grep -v '^ *+' conftest.er1 >conftest.err 4433 rm -f conftest.er1 4434 cat conftest.err >&5 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); } && 4437 { ac_try='test -z "$ac_c_werror_flag" 4438 || test ! -s conftest.err' 4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4440 (eval $ac_try) 2>&5 4441 ac_status=$? 4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4443 (exit $ac_status); }; } && 4444 { ac_try='test -s conftest$ac_exeext' 4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4446 (eval $ac_try) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; }; then 4450 ac_cv_search_opendir="none required" 4451 else 4452 echo "$as_me: failed program was:" >&5 4453 sed 's/^/| /' conftest.$ac_ext >&5 4454 4455 fi 4456 rm -f conftest.err conftest.$ac_objext \ 4457 conftest$ac_exeext conftest.$ac_ext 4458 if test "$ac_cv_search_opendir" = no; then 4459 for ac_lib in dir; do 4460 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4461 cat >conftest.$ac_ext <<_ACEOF 4462 /* confdefs.h. */ 4463 _ACEOF 4464 cat confdefs.h >>conftest.$ac_ext 4465 cat >>conftest.$ac_ext <<_ACEOF 4466 /* end confdefs.h. */ 4467 4468 /* Override any gcc2 internal prototype to avoid an error. */ 4469 #ifdef __cplusplus 4470 extern "C" 4471 #endif 4472 /* We use char because int might match the return type of a gcc2 4473 builtin and then its argument prototype would still apply. */ 4474 char opendir (); 4475 int 4476 main () 4477 { 4478 opendir (); 4479 ; 4480 return 0; 4481 } 4482 _ACEOF 4483 rm -f conftest.$ac_objext conftest$ac_exeext 4484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4485 (eval $ac_link) 2>conftest.er1 4486 ac_status=$? 4487 grep -v '^ *+' conftest.er1 >conftest.err 4488 rm -f conftest.er1 4489 cat conftest.err >&5 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4491 (exit $ac_status); } && 4492 { ac_try='test -z "$ac_c_werror_flag" 4493 || test ! -s conftest.err' 4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4495 (eval $ac_try) 2>&5 4496 ac_status=$? 4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); }; } && 4499 { ac_try='test -s conftest$ac_exeext' 4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4501 (eval $ac_try) 2>&5 4502 ac_status=$? 4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4504 (exit $ac_status); }; }; then 4505 ac_cv_search_opendir="-l$ac_lib" 4506 break 4507 else 4508 echo "$as_me: failed program was:" >&5 4509 sed 's/^/| /' conftest.$ac_ext >&5 4510 4511 fi 4512 rm -f conftest.err conftest.$ac_objext \ 4513 conftest$ac_exeext conftest.$ac_ext 4514 done 4515 fi 4516 LIBS=$ac_func_search_save_LIBS 4517 fi 4518 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4519 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4520 if test "$ac_cv_search_opendir" != no; then 4521 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4522 4523 fi 4524 4525 else 4526 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4528 if test "${ac_cv_search_opendir+set}" = set; then 4529 echo $ECHO_N "(cached) $ECHO_C" >&6 4530 else 4531 ac_func_search_save_LIBS=$LIBS 4532 ac_cv_search_opendir=no 4533 cat >conftest.$ac_ext <<_ACEOF 4534 /* confdefs.h. */ 4535 _ACEOF 4536 cat confdefs.h >>conftest.$ac_ext 4537 cat >>conftest.$ac_ext <<_ACEOF 4538 /* end confdefs.h. */ 4539 4540 /* Override any gcc2 internal prototype to avoid an error. */ 4541 #ifdef __cplusplus 4542 extern "C" 4543 #endif 4544 /* We use char because int might match the return type of a gcc2 4545 builtin and then its argument prototype would still apply. */ 4546 char opendir (); 4547 int 4548 main () 4549 { 4550 opendir (); 4551 ; 4552 return 0; 4553 } 4554 _ACEOF 4555 rm -f conftest.$ac_objext conftest$ac_exeext 4556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4557 (eval $ac_link) 2>conftest.er1 4558 ac_status=$? 4559 grep -v '^ *+' conftest.er1 >conftest.err 4560 rm -f conftest.er1 4561 cat conftest.err >&5 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); } && 4564 { ac_try='test -z "$ac_c_werror_flag" 4565 || test ! -s conftest.err' 4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4567 (eval $ac_try) 2>&5 4568 ac_status=$? 4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 (exit $ac_status); }; } && 4571 { ac_try='test -s conftest$ac_exeext' 4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4573 (eval $ac_try) 2>&5 4574 ac_status=$? 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); }; }; then 4577 ac_cv_search_opendir="none required" 4578 else 4579 echo "$as_me: failed program was:" >&5 4580 sed 's/^/| /' conftest.$ac_ext >&5 4581 4582 fi 4583 rm -f conftest.err conftest.$ac_objext \ 4584 conftest$ac_exeext conftest.$ac_ext 4585 if test "$ac_cv_search_opendir" = no; then 4586 for ac_lib in x; do 4587 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4588 cat >conftest.$ac_ext <<_ACEOF 4589 /* confdefs.h. */ 4590 _ACEOF 4591 cat confdefs.h >>conftest.$ac_ext 4592 cat >>conftest.$ac_ext <<_ACEOF 4593 /* end confdefs.h. */ 4594 4595 /* Override any gcc2 internal prototype to avoid an error. */ 4596 #ifdef __cplusplus 4597 extern "C" 4598 #endif 4599 /* We use char because int might match the return type of a gcc2 4600 builtin and then its argument prototype would still apply. */ 4601 char opendir (); 4602 int 4603 main () 4604 { 4605 opendir (); 4606 ; 4607 return 0; 4608 } 4609 _ACEOF 4610 rm -f conftest.$ac_objext conftest$ac_exeext 4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4612 (eval $ac_link) 2>conftest.er1 4613 ac_status=$? 4614 grep -v '^ *+' conftest.er1 >conftest.err 4615 rm -f conftest.er1 4616 cat conftest.err >&5 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); } && 4619 { ac_try='test -z "$ac_c_werror_flag" 4620 || test ! -s conftest.err' 4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4622 (eval $ac_try) 2>&5 4623 ac_status=$? 4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4625 (exit $ac_status); }; } && 4626 { ac_try='test -s conftest$ac_exeext' 4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4628 (eval $ac_try) 2>&5 4629 ac_status=$? 4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4631 (exit $ac_status); }; }; then 4632 ac_cv_search_opendir="-l$ac_lib" 4633 break 4634 else 4635 echo "$as_me: failed program was:" >&5 4636 sed 's/^/| /' conftest.$ac_ext >&5 4637 4638 fi 4639 rm -f conftest.err conftest.$ac_objext \ 4640 conftest$ac_exeext conftest.$ac_ext 4641 done 4642 fi 4643 LIBS=$ac_func_search_save_LIBS 4644 fi 4645 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4646 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4647 if test "$ac_cv_search_opendir" != no; then 4648 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4649 4650 fi 4651 4652 fi 4653 4654 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4655 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4656 if test "${ac_cv_header_stdc+set}" = set; then 4657 echo $ECHO_N "(cached) $ECHO_C" >&6 4658 else 4659 cat >conftest.$ac_ext <<_ACEOF 4660 /* confdefs.h. */ 4661 _ACEOF 4662 cat confdefs.h >>conftest.$ac_ext 4663 cat >>conftest.$ac_ext <<_ACEOF 4664 /* end confdefs.h. */ 1485 4665 #include <stdlib.h> 1486 4666 #include <stdarg.h> 1487 4667 #include <string.h> 1488 4668 #include <float.h> 1489 EOF 1490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1491 { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1493 if test -z "$ac_err"; then 1494 rm -rf conftest* 4669 4670 int 4671 main () 4672 { 4673 4674 ; 4675 return 0; 4676 } 4677 _ACEOF 4678 rm -f conftest.$ac_objext 4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4680 (eval $ac_compile) 2>conftest.er1 4681 ac_status=$? 4682 grep -v '^ *+' conftest.er1 >conftest.err 4683 rm -f conftest.er1 4684 cat conftest.err >&5 4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4686 (exit $ac_status); } && 4687 { ac_try='test -z "$ac_c_werror_flag" 4688 || test ! -s conftest.err' 4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4690 (eval $ac_try) 2>&5 4691 ac_status=$? 4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4693 (exit $ac_status); }; } && 4694 { ac_try='test -s conftest.$ac_objext' 4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4696 (eval $ac_try) 2>&5 4697 ac_status=$? 4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4699 (exit $ac_status); }; }; then 1495 4700 ac_cv_header_stdc=yes 1496 4701 else 1497 echo "$ac_err" >&5 1498 echo "configure: failed program was:" >&5 1499 cat conftest.$ac_ext >&5 1500 rm -rf conftest* 1501 ac_cv_header_stdc=no 1502 fi 1503 rm -f conftest* 4702 echo "$as_me: failed program was:" >&5 4703 sed 's/^/| /' conftest.$ac_ext >&5 4704 4705 ac_cv_header_stdc=no 4706 fi 4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1504 4708 1505 4709 if test $ac_cv_header_stdc = yes; then 1506 4710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1507 cat > conftest.$ac_ext <<EOF 1508 #line 1509 "configure" 1509 #include "confdefs.h" 4711 cat >conftest.$ac_ext <<_ACEOF 4712 /* confdefs.h. */ 4713 _ACEOF 4714 cat confdefs.h >>conftest.$ac_ext 4715 cat >>conftest.$ac_ext <<_ACEOF 4716 /* end confdefs.h. */ 1510 4717 #include <string.h> 1511 EOF 4718 4719 _ACEOF 1512 4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1513 egrep"memchr" >/dev/null 2>&1; then4721 $EGREP "memchr" >/dev/null 2>&1; then 1514 4722 : 1515 4723 else 1516 rm -rf conftest*1517 4724 ac_cv_header_stdc=no 1518 4725 fi … … 1523 4730 if test $ac_cv_header_stdc = yes; then 1524 4731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1525 cat > conftest.$ac_ext <<EOF 1526 #line 1527 "configure" 1527 #include "confdefs.h" 4732 cat >conftest.$ac_ext <<_ACEOF 4733 /* confdefs.h. */ 4734 _ACEOF 4735 cat confdefs.h >>conftest.$ac_ext 4736 cat >>conftest.$ac_ext <<_ACEOF 4737 /* end confdefs.h. */ 1528 4738 #include <stdlib.h> 1529 EOF 4739 4740 _ACEOF 1530 4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1531 egrep"free" >/dev/null 2>&1; then4742 $EGREP "free" >/dev/null 2>&1; then 1532 4743 : 1533 4744 else 1534 rm -rf conftest*1535 4745 ac_cv_header_stdc=no 1536 4746 fi … … 1541 4751 if test $ac_cv_header_stdc = yes; then 1542 4752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1543 if test "$cross_compiling" = yes; then4753 if test "$cross_compiling" = yes; then 1544 4754 : 1545 4755 else 1546 cat > conftest.$ac_ext <<EOF 1547 #line 1548 "configure" 1548 #include "confdefs.h" 4756 cat >conftest.$ac_ext <<_ACEOF 4757 /* confdefs.h. */ 4758 _ACEOF 4759 cat confdefs.h >>conftest.$ac_ext 4760 cat >>conftest.$ac_ext <<_ACEOF 4761 /* end confdefs.h. */ 1549 4762 #include <ctype.h> 1550 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1551 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4763 #if ((' ' & 0x0FF) == 0x020) 4764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4766 #else 4767 # define ISLOWER(c) \ 4768 (('a' <= (c) && (c) <= 'i') \ 4769 || ('j' <= (c) && (c) <= 'r') \ 4770 || ('s' <= (c) && (c) <= 'z')) 4771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4772 #endif 4773 1552 4774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1553 int main () { int i; for (i = 0; i < 256; i++) 1554 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1555 exit (0); } 1556 1557 EOF 1558 if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1559 then 4775 int 4776 main () 4777 { 4778 int i; 4779 for (i = 0; i < 256; i++) 4780 if (XOR (islower (i), ISLOWER (i)) 4781 || toupper (i) != TOUPPER (i)) 4782 exit(2); 4783 exit (0); 4784 } 4785 _ACEOF 4786 rm -f conftest$ac_exeext 4787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4788 (eval $ac_link) 2>&5 4789 ac_status=$? 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4793 (eval $ac_try) 2>&5 4794 ac_status=$? 4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4796 (exit $ac_status); }; }; then 1560 4797 : 1561 4798 else 1562 echo "configure: failed program was:" >&5 1563 cat conftest.$ac_ext >&5 1564 rm -fr conftest* 1565 ac_cv_header_stdc=no 1566 fi 1567 rm -fr conftest* 1568 fi 1569 1570 fi 1571 fi 1572 1573 echo "$ac_t""$ac_cv_header_stdc" 1>&6 4799 echo "$as_me: program exited with status $ac_status" >&5 4800 echo "$as_me: failed program was:" >&5 4801 sed 's/^/| /' conftest.$ac_ext >&5 4802 4803 ( exit $ac_status ) 4804 ac_cv_header_stdc=no 4805 fi 4806 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4807 fi 4808 fi 4809 fi 4810 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4811 echo "${ECHO_T}$ac_cv_header_stdc" >&6 1574 4812 if test $ac_cv_header_stdc = yes; then 1575 cat >> confdefs.h <<\EOF 4813 4814 cat >>confdefs.h <<\_ACEOF 1576 4815 #define STDC_HEADERS 1 1577 EOF 1578 1579 fi 1580 1581 echo $ac_n "checking for off_t""... $ac_c" 1>&6 1582 echo "configure:1583: checking for off_t" >&5 1583 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1584 echo $ac_n "(cached) $ac_c" 1>&6 1585 else 1586 cat > conftest.$ac_ext <<EOF 1587 #line 1588 "configure" 1588 #include "confdefs.h" 1589 #include <sys/types.h> 1590 #if STDC_HEADERS 1591 #include <stdlib.h> 1592 #include <stddef.h> 1593 #endif 1594 EOF 4816 _ACEOF 4817 4818 fi 4819 4820 4821 4822 4823 4824 4825 4826 4827 for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 4828 do 4829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4830 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4831 echo "$as_me:$LINENO: checking for $ac_header" >&5 4832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4833 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4834 echo $ECHO_N "(cached) $ECHO_C" >&6 4835 fi 4836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4838 else 4839 # Is the header compilable? 4840 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4842 cat >conftest.$ac_ext <<_ACEOF 4843 /* confdefs.h. */ 4844 _ACEOF 4845 cat confdefs.h >>conftest.$ac_ext 4846 cat >>conftest.$ac_ext <<_ACEOF 4847 /* end confdefs.h. */ 4848 $ac_includes_default 4849 #include <$ac_header> 4850 _ACEOF 4851 rm -f conftest.$ac_objext 4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4853 (eval $ac_compile) 2>conftest.er1 4854 ac_status=$? 4855 grep -v '^ *+' conftest.er1 >conftest.err 4856 rm -f conftest.er1 4857 cat conftest.err >&5 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); } && 4860 { ac_try='test -z "$ac_c_werror_flag" 4861 || test ! -s conftest.err' 4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4863 (eval $ac_try) 2>&5 4864 ac_status=$? 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4866 (exit $ac_status); }; } && 4867 { ac_try='test -s conftest.$ac_objext' 4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4869 (eval $ac_try) 2>&5 4870 ac_status=$? 4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4872 (exit $ac_status); }; }; then 4873 ac_header_compiler=yes 4874 else 4875 echo "$as_me: failed program was:" >&5 4876 sed 's/^/| /' conftest.$ac_ext >&5 4877 4878 ac_header_compiler=no 4879 fi 4880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4882 echo "${ECHO_T}$ac_header_compiler" >&6 4883 4884 # Is the header present? 4885 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4887 cat >conftest.$ac_ext <<_ACEOF 4888 /* confdefs.h. */ 4889 _ACEOF 4890 cat confdefs.h >>conftest.$ac_ext 4891 cat >>conftest.$ac_ext <<_ACEOF 4892 /* end confdefs.h. */ 4893 #include <$ac_header> 4894 _ACEOF 4895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4897 ac_status=$? 4898 grep -v '^ *+' conftest.er1 >conftest.err 4899 rm -f conftest.er1 4900 cat conftest.err >&5 4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4902 (exit $ac_status); } >/dev/null; then 4903 if test -s conftest.err; then 4904 ac_cpp_err=$ac_c_preproc_warn_flag 4905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4906 else 4907 ac_cpp_err= 4908 fi 4909 else 4910 ac_cpp_err=yes 4911 fi 4912 if test -z "$ac_cpp_err"; then 4913 ac_header_preproc=yes 4914 else 4915 echo "$as_me: failed program was:" >&5 4916 sed 's/^/| /' conftest.$ac_ext >&5 4917 4918 ac_header_preproc=no 4919 fi 4920 rm -f conftest.err conftest.$ac_ext 4921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4922 echo "${ECHO_T}$ac_header_preproc" >&6 4923 4924 # So? What about this header? 4925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4926 yes:no: ) 4927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4931 ac_header_preproc=yes 4932 ;; 4933 no:yes:* ) 4934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4946 ( 4947 cat <<\_ASBOX 4948 ## ------------------------------------------ ## 4949 ## Report this to the AC_PACKAGE_NAME lists. ## 4950 ## ------------------------------------------ ## 4951 _ASBOX 4952 ) | 4953 sed "s/^/$as_me: WARNING: /" >&2 4954 ;; 4955 esac 4956 echo "$as_me:$LINENO: checking for $ac_header" >&5 4957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4958 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4959 echo $ECHO_N "(cached) $ECHO_C" >&6 4960 else 4961 eval "$as_ac_Header=\$ac_header_preproc" 4962 fi 4963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4965 4966 fi 4967 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4968 cat >>confdefs.h <<_ACEOF 4969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4970 _ACEOF 4971 4972 fi 4973 4974 done 4975 4976 cat >conftest.$ac_ext <<_ACEOF 4977 /* confdefs.h. */ 4978 _ACEOF 4979 cat confdefs.h >>conftest.$ac_ext 4980 cat >>conftest.$ac_ext <<_ACEOF 4981 /* end confdefs.h. */ 4982 #include <stdio.h> 4983 4984 _ACEOF 1595 4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1596 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1597 rm -rf conftest* 1598 ac_cv_type_off_t=yes 1599 else 1600 rm -rf conftest* 1601 ac_cv_type_off_t=no 4986 $EGREP "fread" >/dev/null 2>&1; then 4987 cat >>confdefs.h <<\_ACEOF 4988 #define HAVE_FREAD_DECL 1 4989 _ACEOF 4990 1602 4991 fi 1603 4992 rm -f conftest* 1604 4993 1605 fi 1606 echo "$ac_t""$ac_cv_type_off_t" 1>&6 1607 if test $ac_cv_type_off_t = no; then 1608 cat >> confdefs.h <<\EOF 1609 #define off_t long 1610 EOF 1611 1612 fi 1613 1614 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1615 echo "configure:1616: checking for size_t" >&5 1616 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1617 echo $ac_n "(cached) $ac_c" 1>&6 1618 else 1619 cat > conftest.$ac_ext <<EOF 1620 #line 1621 "configure" 1621 #include "confdefs.h" 1622 #include <sys/types.h> 1623 #if STDC_HEADERS 1624 #include <stdlib.h> 1625 #include <stddef.h> 1626 #endif 1627 EOF 4994 cat >conftest.$ac_ext <<_ACEOF 4995 /* confdefs.h. */ 4996 _ACEOF 4997 cat confdefs.h >>conftest.$ac_ext 4998 cat >>conftest.$ac_ext <<_ACEOF 4999 /* end confdefs.h. */ 5000 #include <stdio.h> 5001 5002 _ACEOF 1628 5003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1629 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1630 rm -rf conftest* 1631 ac_cv_type_size_t=yes 1632 else 1633 rm -rf conftest* 1634 ac_cv_type_size_t=no 5004 $EGREP "fgetc" >/dev/null 2>&1; then 5005 cat >>confdefs.h <<\_ACEOF 5006 #define HAVE_FGETC_DECL 1 5007 _ACEOF 5008 1635 5009 fi 1636 5010 rm -f conftest* 1637 5011 1638 fi 1639 echo "$ac_t""$ac_cv_type_size_t" 1>&6 1640 if test $ac_cv_type_size_t = no; then 1641 cat >> confdefs.h <<\EOF 1642 #define size_t unsigned 1643 EOF 1644 1645 fi 1646 1647 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1648 echo "configure:1649: checking whether time.h and sys/time.h may both be included" >&5 1649 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1650 echo $ac_n "(cached) $ac_c" 1>&6 1651 else 1652 cat > conftest.$ac_ext <<EOF 1653 #line 1654 "configure" 1654 #include "confdefs.h" 1655 #include <sys/types.h> 1656 #include <sys/time.h> 1657 #include <time.h> 1658 int main() { 1659 struct tm *tp; 1660 ; return 0; } 1661 EOF 1662 if { (eval echo configure:1663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1663 rm -rf conftest* 1664 ac_cv_header_time=yes 1665 else 1666 echo "configure: failed program was:" >&5 1667 cat conftest.$ac_ext >&5 1668 rm -rf conftest* 1669 ac_cv_header_time=no 1670 fi 1671 rm -f conftest* 1672 fi 1673 1674 echo "$ac_t""$ac_cv_header_time" 1>&6 1675 if test $ac_cv_header_time = yes; then 1676 cat >> confdefs.h <<\EOF 1677 #define TIME_WITH_SYS_TIME 1 1678 EOF 1679 1680 fi 1681 1682 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1683 echo "configure:1684: checking whether struct tm is in sys/time.h or time.h" >&5 1684 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1685 echo $ac_n "(cached) $ac_c" 1>&6 1686 else 1687 cat > conftest.$ac_ext <<EOF 1688 #line 1689 "configure" 1689 #include "confdefs.h" 1690 #include <sys/types.h> 1691 #include <time.h> 1692 int main() { 1693 struct tm *tp; tp->tm_sec; 1694 ; return 0; } 1695 EOF 1696 if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1697 rm -rf conftest* 1698 ac_cv_struct_tm=time.h 1699 else 1700 echo "configure: failed program was:" >&5 1701 cat conftest.$ac_ext >&5 1702 rm -rf conftest* 1703 ac_cv_struct_tm=sys/time.h 1704 fi 1705 rm -f conftest* 1706 fi 1707 1708 echo "$ac_t""$ac_cv_struct_tm" 1>&6 1709 if test $ac_cv_struct_tm = sys/time.h; then 1710 cat >> confdefs.h <<\EOF 1711 #define TM_IN_SYS_TIME 1 1712 EOF 1713 1714 fi 1715 1716 1717 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 1718 cat > conftest.$ac_ext <<EOF 1719 #line 1720 "configure" 1720 #include "confdefs.h" 1721 #include <stdio.h> 1722 1723 int main() { 1724 FILE *rubbish = popen("yes", "r"); 1725 ; return 0; } 1726 EOF 1727 if { (eval echo configure:1728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1728 : 1729 else 1730 echo "configure: failed program was:" >&5 1731 cat conftest.$ac_ext >&5 1732 rm -rf conftest* 1733 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 1734 fi 1735 rm -f conftest* 1736 fi 1737 1738 1739 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 1740 echo "configure:1741: checking for main in -lm" >&5 1741 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` 1742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1743 echo $ac_n "(cached) $ac_c" 1>&6 1744 else 1745 ac_save_LIBS="$LIBS" 1746 LIBS="-lm $LIBS" 1747 cat > conftest.$ac_ext <<EOF 1748 #line 1749 "configure" 1749 #include "confdefs.h" 1750 1751 int main() { 1752 main() 1753 ; return 0; } 1754 EOF 1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1756 rm -rf conftest* 1757 eval "ac_cv_lib_$ac_lib_var=yes" 1758 else 1759 echo "configure: failed program was:" >&5 1760 cat conftest.$ac_ext >&5 1761 rm -rf conftest* 1762 eval "ac_cv_lib_$ac_lib_var=no" 1763 fi 1764 rm -f conftest* 1765 LIBS="$ac_save_LIBS" 1766 1767 fi 1768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1769 echo "$ac_t""yes" 1>&6 1770 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1771 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1772 cat >> confdefs.h <<EOF 1773 #define $ac_tr_lib 1 1774 EOF 1775 1776 LIBS="-lm $LIBS" 1777 1778 else 1779 echo "$ac_t""no" 1>&6 1780 fi 1781 1782 1783 ac_header_dirent=no 1784 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1785 do 1786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1787 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1788 echo "configure:1789: checking for $ac_hdr that defines DIR" >&5 1789 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1790 echo $ac_n "(cached) $ac_c" 1>&6 1791 else 1792 cat > conftest.$ac_ext <<EOF 1793 #line 1794 "configure" 1794 #include "confdefs.h" 1795 #include <sys/types.h> 1796 #include <$ac_hdr> 1797 int main() { 1798 DIR *dirp = 0; 1799 ; return 0; } 1800 EOF 1801 if { (eval echo configure:1802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1802 rm -rf conftest* 1803 eval "ac_cv_header_dirent_$ac_safe=yes" 1804 else 1805 echo "configure: failed program was:" >&5 1806 cat conftest.$ac_ext >&5 1807 rm -rf conftest* 1808 eval "ac_cv_header_dirent_$ac_safe=no" 1809 fi 1810 rm -f conftest* 1811 fi 1812 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1813 echo "$ac_t""yes" 1>&6 1814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1815 cat >> confdefs.h <<EOF 1816 #define $ac_tr_hdr 1 1817 EOF 1818 ac_header_dirent=$ac_hdr; break 1819 else 1820 echo "$ac_t""no" 1>&6 1821 fi 1822 done 1823 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1824 if test $ac_header_dirent = dirent.h; then 1825 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1826 echo "configure:1827: checking for opendir in -ldir" >&5 1827 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1829 echo $ac_n "(cached) $ac_c" 1>&6 1830 else 1831 ac_save_LIBS="$LIBS" 1832 LIBS="-ldir $LIBS" 1833 cat > conftest.$ac_ext <<EOF 1834 #line 1835 "configure" 1835 #include "confdefs.h" 1836 /* Override any gcc2 internal prototype to avoid an error. */ 1837 /* We use char because int might match the return type of a gcc2 1838 builtin and then its argument prototype would still apply. */ 1839 char opendir(); 1840 1841 int main() { 1842 opendir() 1843 ; return 0; } 1844 EOF 1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1846 rm -rf conftest* 1847 eval "ac_cv_lib_$ac_lib_var=yes" 1848 else 1849 echo "configure: failed program was:" >&5 1850 cat conftest.$ac_ext >&5 1851 rm -rf conftest* 1852 eval "ac_cv_lib_$ac_lib_var=no" 1853 fi 1854 rm -f conftest* 1855 LIBS="$ac_save_LIBS" 1856 1857 fi 1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1859 echo "$ac_t""yes" 1>&6 1860 LIBS="$LIBS -ldir" 1861 else 1862 echo "$ac_t""no" 1>&6 1863 fi 1864 1865 else 1866 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1867 echo "configure:1868: checking for opendir in -lx" >&5 1868 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1870 echo $ac_n "(cached) $ac_c" 1>&6 1871 else 1872 ac_save_LIBS="$LIBS" 1873 LIBS="-lx $LIBS" 1874 cat > conftest.$ac_ext <<EOF 1875 #line 1876 "configure" 1876 #include "confdefs.h" 1877 /* Override any gcc2 internal prototype to avoid an error. */ 1878 /* We use char because int might match the return type of a gcc2 1879 builtin and then its argument prototype would still apply. */ 1880 char opendir(); 1881 1882 int main() { 1883 opendir() 1884 ; return 0; } 1885 EOF 1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1887 rm -rf conftest* 1888 eval "ac_cv_lib_$ac_lib_var=yes" 1889 else 1890 echo "configure: failed program was:" >&5 1891 cat conftest.$ac_ext >&5 1892 rm -rf conftest* 1893 eval "ac_cv_lib_$ac_lib_var=no" 1894 fi 1895 rm -f conftest* 1896 LIBS="$ac_save_LIBS" 1897 1898 fi 1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1900 echo "$ac_t""yes" 1>&6 1901 LIBS="$LIBS -lx" 1902 else 1903 echo "$ac_t""no" 1>&6 1904 fi 1905 1906 fi 1907 1908 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1909 echo "configure:1910: checking for ANSI C header files" >&5 1910 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1911 echo $ac_n "(cached) $ac_c" 1>&6 1912 else 1913 cat > conftest.$ac_ext <<EOF 1914 #line 1915 "configure" 1915 #include "confdefs.h" 1916 #include <stdlib.h> 1917 #include <stdarg.h> 1918 #include <string.h> 1919 #include <float.h> 1920 EOF 1921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1922 { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1924 if test -z "$ac_err"; then 1925 rm -rf conftest* 1926 ac_cv_header_stdc=yes 1927 else 1928 echo "$ac_err" >&5 1929 echo "configure: failed program was:" >&5 1930 cat conftest.$ac_ext >&5 1931 rm -rf conftest* 1932 ac_cv_header_stdc=no 1933 fi 1934 rm -f conftest* 1935 1936 if test $ac_cv_header_stdc = yes; then 1937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1938 cat > conftest.$ac_ext <<EOF 1939 #line 1940 "configure" 1940 #include "confdefs.h" 1941 #include <string.h> 1942 EOF 5012 cat >conftest.$ac_ext <<_ACEOF 5013 /* confdefs.h. */ 5014 _ACEOF 5015 cat confdefs.h >>conftest.$ac_ext 5016 cat >>conftest.$ac_ext <<_ACEOF 5017 /* end confdefs.h. */ 5018 #include <sys/procfs.h> 5019 5020 _ACEOF 1943 5021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1944 egrep "memchr" >/dev/null 2>&1; then 1945 : 1946 else 1947 rm -rf conftest* 1948 ac_cv_header_stdc=no 1949 fi 1950 rm -f conftest* 1951 1952 fi 1953 1954 if test $ac_cv_header_stdc = yes; then 1955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1956 cat > conftest.$ac_ext <<EOF 1957 #line 1958 "configure" 1958 #include "confdefs.h" 1959 #include <stdlib.h> 1960 EOF 1961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1962 egrep "free" >/dev/null 2>&1; then 1963 : 1964 else 1965 rm -rf conftest* 1966 ac_cv_header_stdc=no 1967 fi 1968 rm -f conftest* 1969 1970 fi 1971 1972 if test $ac_cv_header_stdc = yes; then 1973 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1974 if test "$cross_compiling" = yes; then 1975 : 1976 else 1977 cat > conftest.$ac_ext <<EOF 1978 #line 1979 "configure" 1979 #include "confdefs.h" 1980 #include <ctype.h> 1981 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1982 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1984 int main () { int i; for (i = 0; i < 256; i++) 1985 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1986 exit (0); } 1987 1988 EOF 1989 if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1990 then 1991 : 1992 else 1993 echo "configure: failed program was:" >&5 1994 cat conftest.$ac_ext >&5 1995 rm -fr conftest* 1996 ac_cv_header_stdc=no 1997 fi 1998 rm -fr conftest* 1999 fi 2000 2001 fi 2002 fi 2003 2004 echo "$ac_t""$ac_cv_header_stdc" 1>&6 2005 if test $ac_cv_header_stdc = yes; then 2006 cat >> confdefs.h <<\EOF 2007 #define STDC_HEADERS 1 2008 EOF 2009 2010 fi 2011 2012 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 2013 do 2014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2016 echo "configure:2017: checking for $ac_hdr" >&5 2017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2018 echo $ac_n "(cached) $ac_c" 1>&6 2019 else 2020 cat > conftest.$ac_ext <<EOF 2021 #line 2022 "configure" 2022 #include "confdefs.h" 2023 #include <$ac_hdr> 2024 EOF 2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2028 if test -z "$ac_err"; then 2029 rm -rf conftest* 2030 eval "ac_cv_header_$ac_safe=yes" 2031 else 2032 echo "$ac_err" >&5 2033 echo "configure: failed program was:" >&5 2034 cat conftest.$ac_ext >&5 2035 rm -rf conftest* 2036 eval "ac_cv_header_$ac_safe=no" 2037 fi 2038 rm -f conftest* 2039 fi 2040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2041 echo "$ac_t""yes" 1>&6 2042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2043 cat >> confdefs.h <<EOF 2044 #define $ac_tr_hdr 1 2045 EOF 2046 2047 else 2048 echo "$ac_t""no" 1>&6 2049 fi 2050 done 2051 2052 cat > conftest.$ac_ext <<EOF 2053 #line 2054 "configure" 2054 #include "confdefs.h" 2055 #include <stdio.h> 2056 EOF 2057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2058 egrep "fread" >/dev/null 2>&1; then 2059 rm -rf conftest* 2060 cat >> confdefs.h <<\EOF 2061 #define HAVE_FREAD_DECL 1 2062 EOF 2063 2064 fi 2065 rm -f conftest* 2066 2067 cat > conftest.$ac_ext <<EOF 2068 #line 2069 "configure" 2069 #include "confdefs.h" 2070 #include <stdio.h> 2071 EOF 2072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2073 egrep "fgetc" >/dev/null 2>&1; then 2074 rm -rf conftest* 2075 cat >> confdefs.h <<\EOF 2076 #define HAVE_FGETC_DECL 1 2077 EOF 2078 2079 fi 2080 rm -f conftest* 2081 2082 cat > conftest.$ac_ext <<EOF 2083 #line 2084 "configure" 2084 #include "confdefs.h" 2085 #include <sys/procfs.h> 2086 EOF 2087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2088 egrep "pr_brksize" >/dev/null 2>&1; then 2089 rm -rf conftest* 2090 cat >> confdefs.h <<\EOF 5022 $EGREP "pr_brksize" >/dev/null 2>&1; then 5023 cat >>confdefs.h <<\_ACEOF 2091 5024 #define HAVE_PR_BRKSIZE 1 2092 EOF5025 _ACEOF 2093 5026 2094 5027 fi … … 2098 5031 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2099 5032 # for constant arguments. Useless! 2100 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2101 echo "configure:2102: checking for working alloca.h" >&5 2102 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2103 echo $ac_n "(cached) $ac_c" 1>&6 2104 else 2105 cat > conftest.$ac_ext <<EOF 2106 #line 2107 "configure" 2107 #include "confdefs.h" 5033 echo "$as_me:$LINENO: checking for working alloca.h" >&5 5034 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5035 if test "${ac_cv_working_alloca_h+set}" = set; then 5036 echo $ECHO_N "(cached) $ECHO_C" >&6 5037 else 5038 cat >conftest.$ac_ext <<_ACEOF 5039 /* confdefs.h. */ 5040 _ACEOF 5041 cat confdefs.h >>conftest.$ac_ext 5042 cat >>conftest.$ac_ext <<_ACEOF 5043 /* end confdefs.h. */ 2108 5044 #include <alloca.h> 2109 int main() { 2110 char *p = alloca(2 * sizeof(int)); 2111 ; return 0; } 2112 EOF 2113 if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2114 rm -rf conftest* 2115 ac_cv_header_alloca_h=yes 2116 else 2117 echo "configure: failed program was:" >&5 2118 cat conftest.$ac_ext >&5 2119 rm -rf conftest* 2120 ac_cv_header_alloca_h=no 2121 fi 2122 rm -f conftest* 2123 fi 2124 2125 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2126 if test $ac_cv_header_alloca_h = yes; then 2127 cat >> confdefs.h <<\EOF 5045 int 5046 main () 5047 { 5048 char *p = (char *) alloca (2 * sizeof (int)); 5049 ; 5050 return 0; 5051 } 5052 _ACEOF 5053 rm -f conftest.$ac_objext conftest$ac_exeext 5054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5055 (eval $ac_link) 2>conftest.er1 5056 ac_status=$? 5057 grep -v '^ *+' conftest.er1 >conftest.err 5058 rm -f conftest.er1 5059 cat conftest.err >&5 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); } && 5062 { ac_try='test -z "$ac_c_werror_flag" 5063 || test ! -s conftest.err' 5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5065 (eval $ac_try) 2>&5 5066 ac_status=$? 5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5068 (exit $ac_status); }; } && 5069 { ac_try='test -s conftest$ac_exeext' 5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5071 (eval $ac_try) 2>&5 5072 ac_status=$? 5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5074 (exit $ac_status); }; }; then 5075 ac_cv_working_alloca_h=yes 5076 else 5077 echo "$as_me: failed program was:" >&5 5078 sed 's/^/| /' conftest.$ac_ext >&5 5079 5080 ac_cv_working_alloca_h=no 5081 fi 5082 rm -f conftest.err conftest.$ac_objext \ 5083 conftest$ac_exeext conftest.$ac_ext 5084 fi 5085 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5086 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5087 if test $ac_cv_working_alloca_h = yes; then 5088 5089 cat >>confdefs.h <<\_ACEOF 2128 5090 #define HAVE_ALLOCA_H 1 2129 EOF 2130 2131 fi 2132 2133 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2134 echo "configure:2135: checking for alloca" >&5 2135 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2136 echo $ac_n "(cached) $ac_c" 1>&6 2137 else 2138 cat > conftest.$ac_ext <<EOF 2139 #line 2140 "configure" 2140 #include "confdefs.h" 2141 5091 _ACEOF 5092 5093 fi 5094 5095 echo "$as_me:$LINENO: checking for alloca" >&5 5096 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5097 if test "${ac_cv_func_alloca_works+set}" = set; then 5098 echo $ECHO_N "(cached) $ECHO_C" >&6 5099 else 5100 cat >conftest.$ac_ext <<_ACEOF 5101 /* confdefs.h. */ 5102 _ACEOF 5103 cat confdefs.h >>conftest.$ac_ext 5104 cat >>conftest.$ac_ext <<_ACEOF 5105 /* end confdefs.h. */ 2142 5106 #ifdef __GNUC__ 2143 5107 # define alloca __builtin_alloca … … 2161 5125 #endif 2162 5126 2163 int main() { 2164 char *p = (char *) alloca(1); 2165 ; return 0; } 2166 EOF 2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2168 rm -rf conftest* 5127 int 5128 main () 5129 { 5130 char *p = (char *) alloca (1); 5131 ; 5132 return 0; 5133 } 5134 _ACEOF 5135 rm -f conftest.$ac_objext conftest$ac_exeext 5136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5137 (eval $ac_link) 2>conftest.er1 5138 ac_status=$? 5139 grep -v '^ *+' conftest.er1 >conftest.err 5140 rm -f conftest.er1 5141 cat conftest.err >&5 5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5143 (exit $ac_status); } && 5144 { ac_try='test -z "$ac_c_werror_flag" 5145 || test ! -s conftest.err' 5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5147 (eval $ac_try) 2>&5 5148 ac_status=$? 5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 (exit $ac_status); }; } && 5151 { ac_try='test -s conftest$ac_exeext' 5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5153 (eval $ac_try) 2>&5 5154 ac_status=$? 5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5156 (exit $ac_status); }; }; then 2169 5157 ac_cv_func_alloca_works=yes 2170 5158 else 2171 echo "configure: failed program was:" >&5 2172 cat conftest.$ac_ext >&5 2173 rm -rf conftest* 2174 ac_cv_func_alloca_works=no 2175 fi 2176 rm -f conftest* 2177 fi 2178 2179 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 5159 echo "$as_me: failed program was:" >&5 5160 sed 's/^/| /' conftest.$ac_ext >&5 5161 5162 ac_cv_func_alloca_works=no 5163 fi 5164 rm -f conftest.err conftest.$ac_objext \ 5165 conftest$ac_exeext conftest.$ac_ext 5166 fi 5167 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5168 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5169 2180 5170 if test $ac_cv_func_alloca_works = yes; then 2181 cat >> confdefs.h <<\EOF 5171 5172 cat >>confdefs.h <<\_ACEOF 2182 5173 #define HAVE_ALLOCA 1 2183 EOF 2184 2185 fi 2186 2187 if test $ac_cv_func_alloca_works = no; then 5174 _ACEOF 5175 5176 else 2188 5177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2189 # that cause trouble. Some versions do not even contain alloca or 2190 # contain a buggy version. If you still want to use their alloca, 2191 # use ar to extract alloca.o from them instead of compiling alloca.c. 2192 ALLOCA=alloca.${ac_objext} 2193 cat >> confdefs.h <<\EOF 5178 # that cause trouble. Some versions do not even contain alloca or 5179 # contain a buggy version. If you still want to use their alloca, 5180 # use ar to extract alloca.o from them instead of compiling alloca.c. 5181 5182 ALLOCA=alloca.$ac_objext 5183 5184 cat >>confdefs.h <<\_ACEOF 2194 5185 #define C_ALLOCA 1 2195 EOF 2196 2197 2198 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2199 echo "configure:2200: checking whether alloca needs Cray hooks" >&5 2200 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2201 echo $ac_n "(cached) $ac_c" 1>&6 2202 else 2203 cat > conftest.$ac_ext <<EOF 2204 #line 2205 "configure" 2205 #include "confdefs.h" 5186 _ACEOF 5187 5188 5189 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5190 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5191 if test "${ac_cv_os_cray+set}" = set; then 5192 echo $ECHO_N "(cached) $ECHO_C" >&6 5193 else 5194 cat >conftest.$ac_ext <<_ACEOF 5195 /* confdefs.h. */ 5196 _ACEOF 5197 cat confdefs.h >>conftest.$ac_ext 5198 cat >>conftest.$ac_ext <<_ACEOF 5199 /* end confdefs.h. */ 2206 5200 #if defined(CRAY) && ! defined(CRAY2) 2207 5201 webecray … … 2210 5204 #endif 2211 5205 2212 EOF5206 _ACEOF 2213 5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2214 egrep "webecray" >/dev/null 2>&1; then 2215 rm -rf conftest* 5208 $EGREP "webecray" >/dev/null 2>&1; then 2216 5209 ac_cv_os_cray=yes 2217 5210 else 2218 rm -rf conftest*2219 5211 ac_cv_os_cray=no 2220 5212 fi … … 2222 5214 2223 5215 fi 2224 2225 echo "$ ac_t""$ac_cv_os_cray" 1>&65216 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5217 echo "${ECHO_T}$ac_cv_os_cray" >&6 2226 5218 if test $ac_cv_os_cray = yes; then 2227 for ac_func in _getb67 GETB67 getb67; do 2228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2229 echo "configure:2230: checking for $ac_func" >&5 2230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2231 echo $ac_n "(cached) $ac_c" 1>&6 2232 else 2233 cat > conftest.$ac_ext <<EOF 2234 #line 2235 "configure" 2235 #include "confdefs.h" 5219 for ac_func in _getb67 GETB67 getb67; do 5220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5221 echo "$as_me:$LINENO: checking for $ac_func" >&5 5222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5223 if eval "test \"\${$as_ac_var+set}\" = set"; then 5224 echo $ECHO_N "(cached) $ECHO_C" >&6 5225 else 5226 cat >conftest.$ac_ext <<_ACEOF 5227 /* confdefs.h. */ 5228 _ACEOF 5229 cat confdefs.h >>conftest.$ac_ext 5230 cat >>conftest.$ac_ext <<_ACEOF 5231 /* end confdefs.h. */ 5232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5233 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5234 #define $ac_func innocuous_$ac_func 5235 2236 5236 /* System header to define __stub macros and hopefully few prototypes, 2237 which can conflict with char $ac_func(); below. */ 2238 #include <assert.h> 5237 which can conflict with char $ac_func (); below. 5238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5239 <limits.h> exists even on freestanding compilers. */ 5240 5241 #ifdef __STDC__ 5242 # include <limits.h> 5243 #else 5244 # include <assert.h> 5245 #endif 5246 5247 #undef $ac_func 5248 2239 5249 /* Override any gcc2 internal prototype to avoid an error. */ 5250 #ifdef __cplusplus 5251 extern "C" 5252 { 5253 #endif 2240 5254 /* We use char because int might match the return type of a gcc2 2241 builtin and then its argument prototype would still apply. */ 2242 char $ac_func(); 2243 2244 int main() { 2245 5255 builtin and then its argument prototype would still apply. */ 5256 char $ac_func (); 2246 5257 /* The GNU C library defines this for functions which it implements 2247 5258 to always fail with ENOSYS. Some functions are actually named … … 2250 5261 choke me 2251 5262 #else 2252 $ac_func();5263 char (*f) () = $ac_func; 2253 5264 #endif 2254 2255 ; return 0; } 2256 EOF 2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2258 rm -rf conftest* 2259 eval "ac_cv_func_$ac_func=yes" 2260 else 2261 echo "configure: failed program was:" >&5 2262 cat conftest.$ac_ext >&5 2263 rm -rf conftest* 2264 eval "ac_cv_func_$ac_func=no" 2265 fi 2266 rm -f conftest* 2267 fi 2268 2269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2270 echo "$ac_t""yes" 1>&6 2271 cat >> confdefs.h <<EOF 5265 #ifdef __cplusplus 5266 } 5267 #endif 5268 5269 int 5270 main () 5271 { 5272 return f != $ac_func; 5273 ; 5274 return 0; 5275 } 5276 _ACEOF 5277 rm -f conftest.$ac_objext conftest$ac_exeext 5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5279 (eval $ac_link) 2>conftest.er1 5280 ac_status=$? 5281 grep -v '^ *+' conftest.er1 >conftest.err 5282 rm -f conftest.er1 5283 cat conftest.err >&5 5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5285 (exit $ac_status); } && 5286 { ac_try='test -z "$ac_c_werror_flag" 5287 || test ! -s conftest.err' 5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5289 (eval $ac_try) 2>&5 5290 ac_status=$? 5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5292 (exit $ac_status); }; } && 5293 { ac_try='test -s conftest$ac_exeext' 5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5295 (eval $ac_try) 2>&5 5296 ac_status=$? 5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5298 (exit $ac_status); }; }; then 5299 eval "$as_ac_var=yes" 5300 else 5301 echo "$as_me: failed program was:" >&5 5302 sed 's/^/| /' conftest.$ac_ext >&5 5303 5304 eval "$as_ac_var=no" 5305 fi 5306 rm -f conftest.err conftest.$ac_objext \ 5307 conftest$ac_exeext conftest.$ac_ext 5308 fi 5309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5311 if test `eval echo '${'$as_ac_var'}'` = yes; then 5312 5313 cat >>confdefs.h <<_ACEOF 2272 5314 #define CRAY_STACKSEG_END $ac_func 2273 EOF 2274 2275 break 2276 else 2277 echo "$ac_t""no" 1>&6 2278 fi 2279 2280 done 2281 fi 2282 2283 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2284 echo "configure:2285: checking stack direction for C alloca" >&5 2285 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2286 echo $ac_n "(cached) $ac_c" 1>&6 5315 _ACEOF 5316 5317 break 5318 fi 5319 5320 done 5321 fi 5322 5323 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5324 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5325 if test "${ac_cv_c_stack_direction+set}" = set; then 5326 echo $ECHO_N "(cached) $ECHO_C" >&6 2287 5327 else 2288 5328 if test "$cross_compiling" = yes; then 2289 5329 ac_cv_c_stack_direction=0 2290 5330 else 2291 cat > conftest.$ac_ext <<EOF 2292 #line 2293 "configure" 2293 #include "confdefs.h" 5331 cat >conftest.$ac_ext <<_ACEOF 5332 /* confdefs.h. */ 5333 _ACEOF 5334 cat confdefs.h >>conftest.$ac_ext 5335 cat >>conftest.$ac_ext <<_ACEOF 5336 /* end confdefs.h. */ 5337 int 2294 5338 find_stack_direction () 2295 5339 { … … 2304 5348 return (&dummy > addr) ? 1 : -1; 2305 5349 } 5350 5351 int 2306 5352 main () 2307 5353 { 2308 exit (find_stack_direction () < 0);5354 exit (find_stack_direction () < 0); 2309 5355 } 2310 EOF 2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2312 then 5356 _ACEOF 5357 rm -f conftest$ac_exeext 5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5359 (eval $ac_link) 2>&5 5360 ac_status=$? 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5364 (eval $ac_try) 2>&5 5365 ac_status=$? 5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5367 (exit $ac_status); }; }; then 2313 5368 ac_cv_c_stack_direction=1 2314 5369 else 2315 echo "configure: failed program was:" >&5 2316 cat conftest.$ac_ext >&5 2317 rm -fr conftest* 2318 ac_cv_c_stack_direction=-1 2319 fi 2320 rm -fr conftest* 2321 fi 2322 2323 fi 2324 2325 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2326 cat >> confdefs.h <<EOF 5370 echo "$as_me: program exited with status $ac_status" >&5 5371 echo "$as_me: failed program was:" >&5 5372 sed 's/^/| /' conftest.$ac_ext >&5 5373 5374 ( exit $ac_status ) 5375 ac_cv_c_stack_direction=-1 5376 fi 5377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5378 fi 5379 fi 5380 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5381 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5382 5383 cat >>confdefs.h <<_ACEOF 2327 5384 #define STACK_DIRECTION $ac_cv_c_stack_direction 2328 EOF 2329 2330 fi 2331 2332 if test $ac_cv_prog_gcc = yes; then 2333 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2334 echo "configure:2335: checking whether ${CC-cc} needs -traditional" >&5 2335 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2336 echo $ac_n "(cached) $ac_c" 1>&6 5385 _ACEOF 5386 5387 5388 fi 5389 5390 if test $ac_cv_c_compiler_gnu = yes; then 5391 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 5392 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 5393 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 5394 echo $ECHO_N "(cached) $ECHO_C" >&6 2337 5395 else 2338 5396 ac_pattern="Autoconf.*'x'" 2339 cat > conftest.$ac_ext <<EOF 2340 #line 2341 "configure" 2341 #include "confdefs.h" 5397 cat >conftest.$ac_ext <<_ACEOF 5398 /* confdefs.h. */ 5399 _ACEOF 5400 cat confdefs.h >>conftest.$ac_ext 5401 cat >>conftest.$ac_ext <<_ACEOF 5402 /* end confdefs.h. */ 2342 5403 #include <sgtty.h> 2343 5404 Autoconf TIOCGETP 2344 EOF5405 _ACEOF 2345 5406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2346 egrep "$ac_pattern" >/dev/null 2>&1; then 2347 rm -rf conftest* 5407 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2348 5408 ac_cv_prog_gcc_traditional=yes 2349 5409 else 2350 rm -rf conftest*2351 5410 ac_cv_prog_gcc_traditional=no 2352 5411 fi … … 2355 5414 2356 5415 if test $ac_cv_prog_gcc_traditional = no; then 2357 cat > conftest.$ac_ext <<EOF 2358 #line 2359 "configure" 2359 #include "confdefs.h" 5416 cat >conftest.$ac_ext <<_ACEOF 5417 /* confdefs.h. */ 5418 _ACEOF 5419 cat confdefs.h >>conftest.$ac_ext 5420 cat >>conftest.$ac_ext <<_ACEOF 5421 /* end confdefs.h. */ 2360 5422 #include <termio.h> 2361 5423 Autoconf TCGETA 2362 EOF5424 _ACEOF 2363 5425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2364 egrep "$ac_pattern" >/dev/null 2>&1; then 2365 rm -rf conftest* 5426 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2366 5427 ac_cv_prog_gcc_traditional=yes 2367 5428 fi … … 2370 5431 fi 2371 5432 fi 2372 2373 echo "$ ac_t""$ac_cv_prog_gcc_traditional" 1>&65433 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 5434 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2374 5435 if test $ac_cv_prog_gcc_traditional = yes; then 2375 5436 CC="$CC -traditional" … … 2377 5438 fi 2378 5439 2379 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2380 echo "configure:2381: checking return type of signal handlers" >&5 2381 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2382 echo $ac_n "(cached) $ac_c" 1>&6 2383 else 2384 cat > conftest.$ac_ext <<EOF 2385 #line 2386 "configure" 2386 #include "confdefs.h" 5440 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 5441 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 5442 if test "${ac_cv_type_signal+set}" = set; then 5443 echo $ECHO_N "(cached) $ECHO_C" >&6 5444 else 5445 cat >conftest.$ac_ext <<_ACEOF 5446 /* confdefs.h. */ 5447 _ACEOF 5448 cat confdefs.h >>conftest.$ac_ext 5449 cat >>conftest.$ac_ext <<_ACEOF 5450 /* end confdefs.h. */ 2387 5451 #include <sys/types.h> 2388 5452 #include <signal.h> 2389 5453 #ifdef signal 2390 # undef signal5454 # undef signal 2391 5455 #endif 2392 5456 #ifdef __cplusplus … … 2396 5460 #endif 2397 5461 2398 int main() { 5462 int 5463 main () 5464 { 2399 5465 int i; 2400 ; return 0; } 2401 EOF 2402 if { (eval echo configure:2403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2403 rm -rf conftest* 5466 ; 5467 return 0; 5468 } 5469 _ACEOF 5470 rm -f conftest.$ac_objext 5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5472 (eval $ac_compile) 2>conftest.er1 5473 ac_status=$? 5474 grep -v '^ *+' conftest.er1 >conftest.err 5475 rm -f conftest.er1 5476 cat conftest.err >&5 5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); } && 5479 { ac_try='test -z "$ac_c_werror_flag" 5480 || test ! -s conftest.err' 5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5482 (eval $ac_try) 2>&5 5483 ac_status=$? 5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); }; } && 5486 { ac_try='test -s conftest.$ac_objext' 5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5488 (eval $ac_try) 2>&5 5489 ac_status=$? 5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5491 (exit $ac_status); }; }; then 2404 5492 ac_cv_type_signal=void 2405 5493 else 2406 echo "configure: failed program was:" >&5 2407 cat conftest.$ac_ext >&5 2408 rm -rf conftest* 2409 ac_cv_type_signal=int 2410 fi 2411 rm -f conftest* 2412 fi 2413 2414 echo "$ac_t""$ac_cv_type_signal" 1>&6 2415 cat >> confdefs.h <<EOF 5494 echo "$as_me: failed program was:" >&5 5495 sed 's/^/| /' conftest.$ac_ext >&5 5496 5497 ac_cv_type_signal=int 5498 fi 5499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5500 fi 5501 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 5502 echo "${ECHO_T}$ac_cv_type_signal" >&6 5503 5504 cat >>confdefs.h <<_ACEOF 2416 5505 #define RETSIGTYPE $ac_cv_type_signal 2417 EOF 2418 2419 2420 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2421 echo "configure:2422: checking for vprintf" >&5 2422 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2423 echo $ac_n "(cached) $ac_c" 1>&6 2424 else 2425 cat > conftest.$ac_ext <<EOF 2426 #line 2427 "configure" 2427 #include "confdefs.h" 5506 _ACEOF 5507 5508 5509 5510 for ac_func in vprintf 5511 do 5512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5513 echo "$as_me:$LINENO: checking for $ac_func" >&5 5514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5515 if eval "test \"\${$as_ac_var+set}\" = set"; then 5516 echo $ECHO_N "(cached) $ECHO_C" >&6 5517 else 5518 cat >conftest.$ac_ext <<_ACEOF 5519 /* confdefs.h. */ 5520 _ACEOF 5521 cat confdefs.h >>conftest.$ac_ext 5522 cat >>conftest.$ac_ext <<_ACEOF 5523 /* end confdefs.h. */ 5524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5525 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5526 #define $ac_func innocuous_$ac_func 5527 2428 5528 /* System header to define __stub macros and hopefully few prototypes, 2429 which can conflict with char vprintf(); below. */ 2430 #include <assert.h> 5529 which can conflict with char $ac_func (); below. 5530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5531 <limits.h> exists even on freestanding compilers. */ 5532 5533 #ifdef __STDC__ 5534 # include <limits.h> 5535 #else 5536 # include <assert.h> 5537 #endif 5538 5539 #undef $ac_func 5540 2431 5541 /* Override any gcc2 internal prototype to avoid an error. */ 5542 #ifdef __cplusplus 5543 extern "C" 5544 { 5545 #endif 2432 5546 /* We use char because int might match the return type of a gcc2 2433 builtin and then its argument prototype would still apply. */ 2434 char vprintf(); 2435 2436 int main() { 2437 5547 builtin and then its argument prototype would still apply. */ 5548 char $ac_func (); 2438 5549 /* The GNU C library defines this for functions which it implements 2439 5550 to always fail with ENOSYS. Some functions are actually named 2440 5551 something starting with __ and the normal name is an alias. */ 2441 #if defined (__stub_ vprintf) || defined (__stub___vprintf)5552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2442 5553 choke me 2443 5554 #else 2444 vprintf();5555 char (*f) () = $ac_func; 2445 5556 #endif 2446 2447 ; return 0; } 2448 EOF 2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2450 rm -rf conftest* 2451 eval "ac_cv_func_vprintf=yes" 2452 else 2453 echo "configure: failed program was:" >&5 2454 cat conftest.$ac_ext >&5 2455 rm -rf conftest* 2456 eval "ac_cv_func_vprintf=no" 2457 fi 2458 rm -f conftest* 2459 fi 2460 2461 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2462 echo "$ac_t""yes" 1>&6 2463 cat >> confdefs.h <<\EOF 2464 #define HAVE_VPRINTF 1 2465 EOF 2466 2467 else 2468 echo "$ac_t""no" 1>&6 2469 fi 2470 2471 if test "$ac_cv_func_vprintf" != yes; then 2472 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2473 echo "configure:2474: checking for _doprnt" >&5 2474 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2475 echo $ac_n "(cached) $ac_c" 1>&6 2476 else 2477 cat > conftest.$ac_ext <<EOF 2478 #line 2479 "configure" 2479 #include "confdefs.h" 5557 #ifdef __cplusplus 5558 } 5559 #endif 5560 5561 int 5562 main () 5563 { 5564 return f != $ac_func; 5565 ; 5566 return 0; 5567 } 5568 _ACEOF 5569 rm -f conftest.$ac_objext conftest$ac_exeext 5570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5571 (eval $ac_link) 2>conftest.er1 5572 ac_status=$? 5573 grep -v '^ *+' conftest.er1 >conftest.err 5574 rm -f conftest.er1 5575 cat conftest.err >&5 5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 (exit $ac_status); } && 5578 { ac_try='test -z "$ac_c_werror_flag" 5579 || test ! -s conftest.err' 5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5581 (eval $ac_try) 2>&5 5582 ac_status=$? 5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 (exit $ac_status); }; } && 5585 { ac_try='test -s conftest$ac_exeext' 5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5587 (eval $ac_try) 2>&5 5588 ac_status=$? 5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5590 (exit $ac_status); }; }; then 5591 eval "$as_ac_var=yes" 5592 else 5593 echo "$as_me: failed program was:" >&5 5594 sed 's/^/| /' conftest.$ac_ext >&5 5595 5596 eval "$as_ac_var=no" 5597 fi 5598 rm -f conftest.err conftest.$ac_objext \ 5599 conftest$ac_exeext conftest.$ac_ext 5600 fi 5601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5603 if test `eval echo '${'$as_ac_var'}'` = yes; then 5604 cat >>confdefs.h <<_ACEOF 5605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5606 _ACEOF 5607 5608 echo "$as_me:$LINENO: checking for _doprnt" >&5 5609 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 5610 if test "${ac_cv_func__doprnt+set}" = set; then 5611 echo $ECHO_N "(cached) $ECHO_C" >&6 5612 else 5613 cat >conftest.$ac_ext <<_ACEOF 5614 /* confdefs.h. */ 5615 _ACEOF 5616 cat confdefs.h >>conftest.$ac_ext 5617 cat >>conftest.$ac_ext <<_ACEOF 5618 /* end confdefs.h. */ 5619 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5620 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5621 #define _doprnt innocuous__doprnt 5622 2480 5623 /* System header to define __stub macros and hopefully few prototypes, 2481 which can conflict with char _doprnt(); below. */ 2482 #include <assert.h> 5624 which can conflict with char _doprnt (); below. 5625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5626 <limits.h> exists even on freestanding compilers. */ 5627 5628 #ifdef __STDC__ 5629 # include <limits.h> 5630 #else 5631 # include <assert.h> 5632 #endif 5633 5634 #undef _doprnt 5635 2483 5636 /* Override any gcc2 internal prototype to avoid an error. */ 5637 #ifdef __cplusplus 5638 extern "C" 5639 { 5640 #endif 2484 5641 /* We use char because int might match the return type of a gcc2 2485 builtin and then its argument prototype would still apply. */ 2486 char _doprnt(); 2487 2488 int main() { 2489 5642 builtin and then its argument prototype would still apply. */ 5643 char _doprnt (); 2490 5644 /* The GNU C library defines this for functions which it implements 2491 5645 to always fail with ENOSYS. Some functions are actually named … … 2494 5648 choke me 2495 5649 #else 2496 _doprnt();5650 char (*f) () = _doprnt; 2497 5651 #endif 2498 2499 ; return 0; } 2500 EOF 2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2502 rm -rf conftest* 2503 eval "ac_cv_func__doprnt=yes" 2504 else 2505 echo "configure: failed program was:" >&5 2506 cat conftest.$ac_ext >&5 2507 rm -rf conftest* 2508 eval "ac_cv_func__doprnt=no" 2509 fi 2510 rm -f conftest* 2511 fi 2512 2513 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2514 echo "$ac_t""yes" 1>&6 2515 cat >> confdefs.h <<\EOF 5652 #ifdef __cplusplus 5653 } 5654 #endif 5655 5656 int 5657 main () 5658 { 5659 return f != _doprnt; 5660 ; 5661 return 0; 5662 } 5663 _ACEOF 5664 rm -f conftest.$ac_objext conftest$ac_exeext 5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5666 (eval $ac_link) 2>conftest.er1 5667 ac_status=$? 5668 grep -v '^ *+' conftest.er1 >conftest.err 5669 rm -f conftest.er1 5670 cat conftest.err >&5 5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5672 (exit $ac_status); } && 5673 { ac_try='test -z "$ac_c_werror_flag" 5674 || test ! -s conftest.err' 5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5676 (eval $ac_try) 2>&5 5677 ac_status=$? 5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5679 (exit $ac_status); }; } && 5680 { ac_try='test -s conftest$ac_exeext' 5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5682 (eval $ac_try) 2>&5 5683 ac_status=$? 5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5685 (exit $ac_status); }; }; then 5686 ac_cv_func__doprnt=yes 5687 else 5688 echo "$as_me: failed program was:" >&5 5689 sed 's/^/| /' conftest.$ac_ext >&5 5690 5691 ac_cv_func__doprnt=no 5692 fi 5693 rm -f conftest.err conftest.$ac_objext \ 5694 conftest$ac_exeext conftest.$ac_ext 5695 fi 5696 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 5697 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 5698 if test $ac_cv_func__doprnt = yes; then 5699 5700 cat >>confdefs.h <<\_ACEOF 2516 5701 #define HAVE_DOPRNT 1 2517 EOF 2518 2519 else 2520 echo "$ac_t""no" 1>&6 2521 fi 2522 2523 fi 5702 _ACEOF 5703 5704 fi 5705 5706 fi 5707 done 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 2524 5719 2525 5720 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror 2526 5721 do 2527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2528 echo "configure:2529: checking for $ac_func" >&5 2529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2530 echo $ac_n "(cached) $ac_c" 1>&6 2531 else 2532 cat > conftest.$ac_ext <<EOF 2533 #line 2534 "configure" 2534 #include "confdefs.h" 5722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5723 echo "$as_me:$LINENO: checking for $ac_func" >&5 5724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5725 if eval "test \"\${$as_ac_var+set}\" = set"; then 5726 echo $ECHO_N "(cached) $ECHO_C" >&6 5727 else 5728 cat >conftest.$ac_ext <<_ACEOF 5729 /* confdefs.h. */ 5730 _ACEOF 5731 cat confdefs.h >>conftest.$ac_ext 5732 cat >>conftest.$ac_ext <<_ACEOF 5733 /* end confdefs.h. */ 5734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5735 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5736 #define $ac_func innocuous_$ac_func 5737 2535 5738 /* System header to define __stub macros and hopefully few prototypes, 2536 which can conflict with char $ac_func(); below. */ 2537 #include <assert.h> 5739 which can conflict with char $ac_func (); below. 5740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5741 <limits.h> exists even on freestanding compilers. */ 5742 5743 #ifdef __STDC__ 5744 # include <limits.h> 5745 #else 5746 # include <assert.h> 5747 #endif 5748 5749 #undef $ac_func 5750 2538 5751 /* Override any gcc2 internal prototype to avoid an error. */ 5752 #ifdef __cplusplus 5753 extern "C" 5754 { 5755 #endif 2539 5756 /* We use char because int might match the return type of a gcc2 2540 builtin and then its argument prototype would still apply. */ 2541 char $ac_func(); 2542 2543 int main() { 2544 5757 builtin and then its argument prototype would still apply. */ 5758 char $ac_func (); 2545 5759 /* The GNU C library defines this for functions which it implements 2546 5760 to always fail with ENOSYS. Some functions are actually named … … 2549 5763 choke me 2550 5764 #else 2551 $ac_func();5765 char (*f) () = $ac_func; 2552 5766 #endif 2553 2554 ; return 0; } 2555 EOF 2556 if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2557 rm -rf conftest* 2558 eval "ac_cv_func_$ac_func=yes" 2559 else 2560 echo "configure: failed program was:" >&5 2561 cat conftest.$ac_ext >&5 2562 rm -rf conftest* 2563 eval "ac_cv_func_$ac_func=no" 2564 fi 2565 rm -f conftest* 2566 fi 2567 2568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2569 echo "$ac_t""yes" 1>&6 2570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2571 cat >> confdefs.h <<EOF 2572 #define $ac_tr_func 1 2573 EOF 2574 2575 else 2576 echo "$ac_t""no" 1>&6 5767 #ifdef __cplusplus 5768 } 5769 #endif 5770 5771 int 5772 main () 5773 { 5774 return f != $ac_func; 5775 ; 5776 return 0; 5777 } 5778 _ACEOF 5779 rm -f conftest.$ac_objext conftest$ac_exeext 5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5781 (eval $ac_link) 2>conftest.er1 5782 ac_status=$? 5783 grep -v '^ *+' conftest.er1 >conftest.err 5784 rm -f conftest.er1 5785 cat conftest.err >&5 5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5787 (exit $ac_status); } && 5788 { ac_try='test -z "$ac_c_werror_flag" 5789 || test ! -s conftest.err' 5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5791 (eval $ac_try) 2>&5 5792 ac_status=$? 5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5794 (exit $ac_status); }; } && 5795 { ac_try='test -s conftest$ac_exeext' 5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5797 (eval $ac_try) 2>&5 5798 ac_status=$? 5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5800 (exit $ac_status); }; }; then 5801 eval "$as_ac_var=yes" 5802 else 5803 echo "$as_me: failed program was:" >&5 5804 sed 's/^/| /' conftest.$ac_ext >&5 5805 5806 eval "$as_ac_var=no" 5807 fi 5808 rm -f conftest.err conftest.$ac_objext \ 5809 conftest$ac_exeext conftest.$ac_ext 5810 fi 5811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5813 if test `eval echo '${'$as_ac_var'}'` = yes; then 5814 cat >>confdefs.h <<_ACEOF 5815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5816 _ACEOF 5817 2577 5818 fi 2578 5819 done 5820 5821 5822 2579 5823 2580 5824 for ac_func in ftruncate strstr strcasecmp 2581 5825 do 2582 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2583 echo "configure:2584: checking for $ac_func" >&5 2584 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2585 echo $ac_n "(cached) $ac_c" 1>&6 2586 else 2587 cat > conftest.$ac_ext <<EOF 2588 #line 2589 "configure" 2589 #include "confdefs.h" 5826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5827 echo "$as_me:$LINENO: checking for $ac_func" >&5 5828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5829 if eval "test \"\${$as_ac_var+set}\" = set"; then 5830 echo $ECHO_N "(cached) $ECHO_C" >&6 5831 else 5832 cat >conftest.$ac_ext <<_ACEOF 5833 /* confdefs.h. */ 5834 _ACEOF 5835 cat confdefs.h >>conftest.$ac_ext 5836 cat >>conftest.$ac_ext <<_ACEOF 5837 /* end confdefs.h. */ 5838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5839 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5840 #define $ac_func innocuous_$ac_func 5841 2590 5842 /* System header to define __stub macros and hopefully few prototypes, 2591 which can conflict with char $ac_func(); below. */ 2592 #include <assert.h> 5843 which can conflict with char $ac_func (); below. 5844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5845 <limits.h> exists even on freestanding compilers. */ 5846 5847 #ifdef __STDC__ 5848 # include <limits.h> 5849 #else 5850 # include <assert.h> 5851 #endif 5852 5853 #undef $ac_func 5854 2593 5855 /* Override any gcc2 internal prototype to avoid an error. */ 5856 #ifdef __cplusplus 5857 extern "C" 5858 { 5859 #endif 2594 5860 /* We use char because int might match the return type of a gcc2 2595 builtin and then its argument prototype would still apply. */ 2596 char $ac_func(); 2597 2598 int main() { 2599 5861 builtin and then its argument prototype would still apply. */ 5862 char $ac_func (); 2600 5863 /* The GNU C library defines this for functions which it implements 2601 5864 to always fail with ENOSYS. Some functions are actually named … … 2604 5867 choke me 2605 5868 #else 2606 $ac_func();5869 char (*f) () = $ac_func; 2607 5870 #endif 2608 2609 ; return 0; } 2610 EOF 2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2612 rm -rf conftest* 2613 eval "ac_cv_func_$ac_func=yes" 2614 else 2615 echo "configure: failed program was:" >&5 2616 cat conftest.$ac_ext >&5 2617 rm -rf conftest* 2618 eval "ac_cv_func_$ac_func=no" 2619 fi 2620 rm -f conftest* 2621 fi 2622 2623 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2624 echo "$ac_t""yes" 1>&6 2625 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2626 cat >> confdefs.h <<EOF 2627 #define $ac_tr_func 1 2628 EOF 2629 2630 else 2631 echo "$ac_t""no" 1>&6 2632 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 5871 #ifdef __cplusplus 5872 } 5873 #endif 5874 5875 int 5876 main () 5877 { 5878 return f != $ac_func; 5879 ; 5880 return 0; 5881 } 5882 _ACEOF 5883 rm -f conftest.$ac_objext conftest$ac_exeext 5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5885 (eval $ac_link) 2>conftest.er1 5886 ac_status=$? 5887 grep -v '^ *+' conftest.er1 >conftest.err 5888 rm -f conftest.er1 5889 cat conftest.err >&5 5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5891 (exit $ac_status); } && 5892 { ac_try='test -z "$ac_c_werror_flag" 5893 || test ! -s conftest.err' 5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5895 (eval $ac_try) 2>&5 5896 ac_status=$? 5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5898 (exit $ac_status); }; } && 5899 { ac_try='test -s conftest$ac_exeext' 5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5901 (eval $ac_try) 2>&5 5902 ac_status=$? 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5904 (exit $ac_status); }; }; then 5905 eval "$as_ac_var=yes" 5906 else 5907 echo "$as_me: failed program was:" >&5 5908 sed 's/^/| /' conftest.$ac_ext >&5 5909 5910 eval "$as_ac_var=no" 5911 fi 5912 rm -f conftest.err conftest.$ac_objext \ 5913 conftest$ac_exeext conftest.$ac_ext 5914 fi 5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5917 if test `eval echo '${'$as_ac_var'}'` = yes; then 5918 cat >>confdefs.h <<_ACEOF 5919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5920 _ACEOF 5921 5922 else 5923 case $LIBOBJS in 5924 "$ac_func.$ac_objext" | \ 5925 *" $ac_func.$ac_objext" | \ 5926 "$ac_func.$ac_objext "* | \ 5927 *" $ac_func.$ac_objext "* ) ;; 5928 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 5929 esac 5930 2633 5931 fi 2634 5932 done … … 2639 5937 # *** Custom checking (based on GNU tar configure.in) *** 2640 5938 # --------------------------------------------------------------------------- 2641 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&62642 echo "configure:2643: checking for HP-UX needing gmalloc" >&55939 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5 5940 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6 2643 5941 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 2644 echo "$ac_t""yes" 1>&6 2645 LIBOBJS="$LIBOBJS gmalloc.o" 2646 cat >> confdefs.h <<\EOF 5942 echo "$as_me:$LINENO: result: yes" >&5 5943 echo "${ECHO_T}yes" >&6 5944 case $LIBOBJS in 5945 "gmalloc.$ac_objext" | \ 5946 *" gmalloc.$ac_objext" | \ 5947 "gmalloc.$ac_objext "* | \ 5948 *" gmalloc.$ac_objext "* ) ;; 5949 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;; 5950 esac 5951 5952 cat >>confdefs.h <<\_ACEOF 2647 5953 #define HAVE_VALLOC 1 2648 EOF 2649 2650 else 2651 echo "$ac_t""no" 1>&6 2652 for ac_func in valloc 5954 _ACEOF 5955 5956 else 5957 echo "$as_me:$LINENO: result: no" >&5 5958 echo "${ECHO_T}no" >&6 5959 5960 for ac_func in valloc 2653 5961 do 2654 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2655 echo "configure:2656: checking for $ac_func" >&5 2656 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2657 echo $ac_n "(cached) $ac_c" 1>&6 2658 else 2659 cat > conftest.$ac_ext <<EOF 2660 #line 2661 "configure" 2661 #include "confdefs.h" 5962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5963 echo "$as_me:$LINENO: checking for $ac_func" >&5 5964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5965 if eval "test \"\${$as_ac_var+set}\" = set"; then 5966 echo $ECHO_N "(cached) $ECHO_C" >&6 5967 else 5968 cat >conftest.$ac_ext <<_ACEOF 5969 /* confdefs.h. */ 5970 _ACEOF 5971 cat confdefs.h >>conftest.$ac_ext 5972 cat >>conftest.$ac_ext <<_ACEOF 5973 /* end confdefs.h. */ 5974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5975 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5976 #define $ac_func innocuous_$ac_func 5977 2662 5978 /* System header to define __stub macros and hopefully few prototypes, 2663 which can conflict with char $ac_func(); below. */ 2664 #include <assert.h> 5979 which can conflict with char $ac_func (); below. 5980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5981 <limits.h> exists even on freestanding compilers. */ 5982 5983 #ifdef __STDC__ 5984 # include <limits.h> 5985 #else 5986 # include <assert.h> 5987 #endif 5988 5989 #undef $ac_func 5990 2665 5991 /* Override any gcc2 internal prototype to avoid an error. */ 5992 #ifdef __cplusplus 5993 extern "C" 5994 { 5995 #endif 2666 5996 /* We use char because int might match the return type of a gcc2 2667 builtin and then its argument prototype would still apply. */ 2668 char $ac_func(); 2669 2670 int main() { 2671 5997 builtin and then its argument prototype would still apply. */ 5998 char $ac_func (); 2672 5999 /* The GNU C library defines this for functions which it implements 2673 6000 to always fail with ENOSYS. Some functions are actually named … … 2676 6003 choke me 2677 6004 #else 2678 $ac_func();6005 char (*f) () = $ac_func; 2679 6006 #endif 2680 2681 ; return 0; } 2682 EOF 2683 if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2684 rm -rf conftest* 2685 eval "ac_cv_func_$ac_func=yes" 2686 else 2687 echo "configure: failed program was:" >&5 2688 cat conftest.$ac_ext >&5 2689 rm -rf conftest* 2690 eval "ac_cv_func_$ac_func=no" 2691 fi 2692 rm -f conftest* 2693 fi 2694 2695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2696 echo "$ac_t""yes" 1>&6 2697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2698 cat >> confdefs.h <<EOF 2699 #define $ac_tr_func 1 2700 EOF 2701 2702 else 2703 echo "$ac_t""no" 1>&6 6007 #ifdef __cplusplus 6008 } 6009 #endif 6010 6011 int 6012 main () 6013 { 6014 return f != $ac_func; 6015 ; 6016 return 0; 6017 } 6018 _ACEOF 6019 rm -f conftest.$ac_objext conftest$ac_exeext 6020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6021 (eval $ac_link) 2>conftest.er1 6022 ac_status=$? 6023 grep -v '^ *+' conftest.er1 >conftest.err 6024 rm -f conftest.er1 6025 cat conftest.err >&5 6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6027 (exit $ac_status); } && 6028 { ac_try='test -z "$ac_c_werror_flag" 6029 || test ! -s conftest.err' 6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6031 (eval $ac_try) 2>&5 6032 ac_status=$? 6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6034 (exit $ac_status); }; } && 6035 { ac_try='test -s conftest$ac_exeext' 6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6037 (eval $ac_try) 2>&5 6038 ac_status=$? 6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6040 (exit $ac_status); }; }; then 6041 eval "$as_ac_var=yes" 6042 else 6043 echo "$as_me: failed program was:" >&5 6044 sed 's/^/| /' conftest.$ac_ext >&5 6045 6046 eval "$as_ac_var=no" 6047 fi 6048 rm -f conftest.err conftest.$ac_objext \ 6049 conftest$ac_exeext conftest.$ac_ext 6050 fi 6051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6053 if test `eval echo '${'$as_ac_var'}'` = yes; then 6054 cat >>confdefs.h <<_ACEOF 6055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6056 _ACEOF 6057 2704 6058 fi 2705 6059 done … … 2707 6061 fi 2708 6062 2709 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 2710 echo "configure:2711: checking if malloc debugging is wanted" >&5 6063 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5 6064 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 6065 2711 6066 # Check whether --with-dmalloc or --without-dmalloc was given. 2712 6067 if test "${with_dmalloc+set}" = set; then 2713 6068 withval="$with_dmalloc" 2714 6069 if test "$withval" = yes; then 2715 echo "$ac_t""yes" 1>&6 2716 cat >> confdefs.h <<\EOF 6070 echo "$as_me:$LINENO: result: yes" >&5 6071 echo "${ECHO_T}yes" >&6 6072 cat >>confdefs.h <<\_ACEOF 2717 6073 #define WITH_DMALLOC 1 2718 EOF6074 _ACEOF 2719 6075 2720 6076 LIBS="$LIBS -ldmalloc" 2721 6077 LDFLAGS="$LDFLAGS -g" 2722 6078 else 2723 echo "$ac_t""no" 1>&6 2724 fi 2725 else 2726 echo "$ac_t""no" 1>&6 2727 fi 2728 2729 2730 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6 2731 echo "configure:2732: checking which of rx or regex is wanted" >&5 6079 echo "$as_me:$LINENO: result: no" >&5 6080 echo "${ECHO_T}no" >&6 6081 fi 6082 else 6083 echo "$as_me:$LINENO: result: no" >&5 6084 echo "${ECHO_T}no" >&6 6085 fi; 6086 6087 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5 6088 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6 6089 2732 6090 # Check whether --with-regex or --without-regex was given. 2733 6091 if test "${with_regex+set}" = set; then … … 2735 6093 if test "$withval" = yes; then 2736 6094 ac_with_regex=1 2737 echo "$ac_t""regex" 1>&6 2738 cat >> confdefs.h <<\EOF 6095 echo "$as_me:$LINENO: result: regex" >&5 6096 echo "${ECHO_T}regex" >&6 6097 cat >>confdefs.h <<\_ACEOF 2739 6098 #define WITH_REGEX 1 2740 EOF 2741 2742 LIBOBJS="$LIBOBJS regex.o" 2743 fi 2744 fi 2745 6099 _ACEOF 6100 6101 case $LIBOBJS in 6102 "regex.$ac_objext" | \ 6103 *" regex.$ac_objext" | \ 6104 "regex.$ac_objext "* | \ 6105 *" regex.$ac_objext "* ) ;; 6106 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;; 6107 esac 6108 6109 fi 6110 fi; 2746 6111 if test -z "$ac_with_regex"; then 2747 echo "$ac_t""rx" 1>&6 2748 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6 2749 echo "configure:2750: checking for re_rx_search" >&5 2750 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then 2751 echo $ac_n "(cached) $ac_c" 1>&6 2752 else 2753 cat > conftest.$ac_ext <<EOF 2754 #line 2755 "configure" 2755 #include "confdefs.h" 6112 echo "$as_me:$LINENO: result: rx" >&5 6113 echo "${ECHO_T}rx" >&6 6114 echo "$as_me:$LINENO: checking for re_rx_search" >&5 6115 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6 6116 if test "${ac_cv_func_re_rx_search+set}" = set; then 6117 echo $ECHO_N "(cached) $ECHO_C" >&6 6118 else 6119 cat >conftest.$ac_ext <<_ACEOF 6120 /* confdefs.h. */ 6121 _ACEOF 6122 cat confdefs.h >>conftest.$ac_ext 6123 cat >>conftest.$ac_ext <<_ACEOF 6124 /* end confdefs.h. */ 6125 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search. 6126 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6127 #define re_rx_search innocuous_re_rx_search 6128 2756 6129 /* System header to define __stub macros and hopefully few prototypes, 2757 which can conflict with char re_rx_search(); below. */ 2758 #include <assert.h> 6130 which can conflict with char re_rx_search (); below. 6131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6132 <limits.h> exists even on freestanding compilers. */ 6133 6134 #ifdef __STDC__ 6135 # include <limits.h> 6136 #else 6137 # include <assert.h> 6138 #endif 6139 6140 #undef re_rx_search 6141 2759 6142 /* Override any gcc2 internal prototype to avoid an error. */ 6143 #ifdef __cplusplus 6144 extern "C" 6145 { 6146 #endif 2760 6147 /* We use char because int might match the return type of a gcc2 2761 builtin and then its argument prototype would still apply. */ 2762 char re_rx_search(); 2763 2764 int main() { 2765 6148 builtin and then its argument prototype would still apply. */ 6149 char re_rx_search (); 2766 6150 /* The GNU C library defines this for functions which it implements 2767 6151 to always fail with ENOSYS. Some functions are actually named … … 2770 6154 choke me 2771 6155 #else 2772 re_rx_search();6156 char (*f) () = re_rx_search; 2773 6157 #endif 2774 2775 ; return 0; } 2776 EOF 2777 if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2778 rm -rf conftest* 2779 eval "ac_cv_func_re_rx_search=yes" 2780 else 2781 echo "configure: failed program was:" >&5 2782 cat conftest.$ac_ext >&5 2783 rm -rf conftest* 2784 eval "ac_cv_func_re_rx_search=no" 2785 fi 2786 rm -f conftest* 2787 fi 2788 2789 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then 2790 echo "$ac_t""yes" 1>&6 6158 #ifdef __cplusplus 6159 } 6160 #endif 6161 6162 int 6163 main () 6164 { 6165 return f != re_rx_search; 6166 ; 6167 return 0; 6168 } 6169 _ACEOF 6170 rm -f conftest.$ac_objext conftest$ac_exeext 6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6172 (eval $ac_link) 2>conftest.er1 6173 ac_status=$? 6174 grep -v '^ *+' conftest.er1 >conftest.err 6175 rm -f conftest.er1 6176 cat conftest.err >&5 6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6178 (exit $ac_status); } && 6179 { ac_try='test -z "$ac_c_werror_flag" 6180 || test ! -s conftest.err' 6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6182 (eval $ac_try) 2>&5 6183 ac_status=$? 6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6185 (exit $ac_status); }; } && 6186 { ac_try='test -s conftest$ac_exeext' 6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6188 (eval $ac_try) 2>&5 6189 ac_status=$? 6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6191 (exit $ac_status); }; }; then 6192 ac_cv_func_re_rx_search=yes 6193 else 6194 echo "$as_me: failed program was:" >&5 6195 sed 's/^/| /' conftest.$ac_ext >&5 6196 6197 ac_cv_func_re_rx_search=no 6198 fi 6199 rm -f conftest.err conftest.$ac_objext \ 6200 conftest$ac_exeext conftest.$ac_ext 6201 fi 6202 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5 6203 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6 6204 if test $ac_cv_func_re_rx_search = yes; then 2791 6205 : 2792 6206 else 2793 echo "$ac_t""no" 1>&6 2794 echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6 2795 echo "configure:2796: checking size of unsigned char *" >&5 2796 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then 2797 echo $ac_n "(cached) $ac_c" 1>&6 2798 else 6207 echo "$as_me:$LINENO: checking for unsigned char *" >&5 6208 echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6 6209 if test "${ac_cv_type_unsigned_char_p+set}" = set; then 6210 echo $ECHO_N "(cached) $ECHO_C" >&6 6211 else 6212 cat >conftest.$ac_ext <<_ACEOF 6213 /* confdefs.h. */ 6214 _ACEOF 6215 cat confdefs.h >>conftest.$ac_ext 6216 cat >>conftest.$ac_ext <<_ACEOF 6217 /* end confdefs.h. */ 6218 $ac_includes_default 6219 int 6220 main () 6221 { 6222 if ((unsigned char * *) 0) 6223 return 0; 6224 if (sizeof (unsigned char *)) 6225 return 0; 6226 ; 6227 return 0; 6228 } 6229 _ACEOF 6230 rm -f conftest.$ac_objext 6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6232 (eval $ac_compile) 2>conftest.er1 6233 ac_status=$? 6234 grep -v '^ *+' conftest.er1 >conftest.err 6235 rm -f conftest.er1 6236 cat conftest.err >&5 6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6238 (exit $ac_status); } && 6239 { ac_try='test -z "$ac_c_werror_flag" 6240 || test ! -s conftest.err' 6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6242 (eval $ac_try) 2>&5 6243 ac_status=$? 6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6245 (exit $ac_status); }; } && 6246 { ac_try='test -s conftest.$ac_objext' 6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6248 (eval $ac_try) 2>&5 6249 ac_status=$? 6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6251 (exit $ac_status); }; }; then 6252 ac_cv_type_unsigned_char_p=yes 6253 else 6254 echo "$as_me: failed program was:" >&5 6255 sed 's/^/| /' conftest.$ac_ext >&5 6256 6257 ac_cv_type_unsigned_char_p=no 6258 fi 6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6260 fi 6261 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5 6262 echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6 6263 6264 echo "$as_me:$LINENO: checking size of unsigned char *" >&5 6265 echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6 6266 if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then 6267 echo $ECHO_N "(cached) $ECHO_C" >&6 6268 else 6269 if test "$ac_cv_type_unsigned_char_p" = yes; then 6270 # The cast to unsigned long works around a bug in the HP C Compiler 6271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6273 # This bug is HP SR number 8606223364. 2799 6274 if test "$cross_compiling" = yes; then 2800 ac_cv_sizeof_unsigned_char_p=unsigned char * 2801 else 2802 cat > conftest.$ac_ext <<EOF 2803 #line 2804 "configure" 2804 #include "confdefs.h" 6275 # Depending upon the size, compute the lo and hi bounds. 6276 cat >conftest.$ac_ext <<_ACEOF 6277 /* confdefs.h. */ 6278 _ACEOF 6279 cat confdefs.h >>conftest.$ac_ext 6280 cat >>conftest.$ac_ext <<_ACEOF 6281 /* end confdefs.h. */ 6282 $ac_includes_default 6283 int 6284 main () 6285 { 6286 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= 0)]; 6287 test_array [0] = 0 6288 6289 ; 6290 return 0; 6291 } 6292 _ACEOF 6293 rm -f conftest.$ac_objext 6294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6295 (eval $ac_compile) 2>conftest.er1 6296 ac_status=$? 6297 grep -v '^ *+' conftest.er1 >conftest.err 6298 rm -f conftest.er1 6299 cat conftest.err >&5 6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6301 (exit $ac_status); } && 6302 { ac_try='test -z "$ac_c_werror_flag" 6303 || test ! -s conftest.err' 6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6305 (eval $ac_try) 2>&5 6306 ac_status=$? 6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6308 (exit $ac_status); }; } && 6309 { ac_try='test -s conftest.$ac_objext' 6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6311 (eval $ac_try) 2>&5 6312 ac_status=$? 6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6314 (exit $ac_status); }; }; then 6315 ac_lo=0 ac_mid=0 6316 while :; do 6317 cat >conftest.$ac_ext <<_ACEOF 6318 /* confdefs.h. */ 6319 _ACEOF 6320 cat confdefs.h >>conftest.$ac_ext 6321 cat >>conftest.$ac_ext <<_ACEOF 6322 /* end confdefs.h. */ 6323 $ac_includes_default 6324 int 6325 main () 6326 { 6327 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)]; 6328 test_array [0] = 0 6329 6330 ; 6331 return 0; 6332 } 6333 _ACEOF 6334 rm -f conftest.$ac_objext 6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6336 (eval $ac_compile) 2>conftest.er1 6337 ac_status=$? 6338 grep -v '^ *+' conftest.er1 >conftest.err 6339 rm -f conftest.er1 6340 cat conftest.err >&5 6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6342 (exit $ac_status); } && 6343 { ac_try='test -z "$ac_c_werror_flag" 6344 || test ! -s conftest.err' 6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6346 (eval $ac_try) 2>&5 6347 ac_status=$? 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); }; } && 6350 { ac_try='test -s conftest.$ac_objext' 6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6352 (eval $ac_try) 2>&5 6353 ac_status=$? 6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6355 (exit $ac_status); }; }; then 6356 ac_hi=$ac_mid; break 6357 else 6358 echo "$as_me: failed program was:" >&5 6359 sed 's/^/| /' conftest.$ac_ext >&5 6360 6361 ac_lo=`expr $ac_mid + 1` 6362 if test $ac_lo -le $ac_mid; then 6363 ac_lo= ac_hi= 6364 break 6365 fi 6366 ac_mid=`expr 2 '*' $ac_mid + 1` 6367 fi 6368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6369 done 6370 else 6371 echo "$as_me: failed program was:" >&5 6372 sed 's/^/| /' conftest.$ac_ext >&5 6373 6374 cat >conftest.$ac_ext <<_ACEOF 6375 /* confdefs.h. */ 6376 _ACEOF 6377 cat confdefs.h >>conftest.$ac_ext 6378 cat >>conftest.$ac_ext <<_ACEOF 6379 /* end confdefs.h. */ 6380 $ac_includes_default 6381 int 6382 main () 6383 { 6384 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) < 0)]; 6385 test_array [0] = 0 6386 6387 ; 6388 return 0; 6389 } 6390 _ACEOF 6391 rm -f conftest.$ac_objext 6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6393 (eval $ac_compile) 2>conftest.er1 6394 ac_status=$? 6395 grep -v '^ *+' conftest.er1 >conftest.err 6396 rm -f conftest.er1 6397 cat conftest.err >&5 6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6399 (exit $ac_status); } && 6400 { ac_try='test -z "$ac_c_werror_flag" 6401 || test ! -s conftest.err' 6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6403 (eval $ac_try) 2>&5 6404 ac_status=$? 6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6406 (exit $ac_status); }; } && 6407 { ac_try='test -s conftest.$ac_objext' 6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6409 (eval $ac_try) 2>&5 6410 ac_status=$? 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); }; }; then 6413 ac_hi=-1 ac_mid=-1 6414 while :; do 6415 cat >conftest.$ac_ext <<_ACEOF 6416 /* confdefs.h. */ 6417 _ACEOF 6418 cat confdefs.h >>conftest.$ac_ext 6419 cat >>conftest.$ac_ext <<_ACEOF 6420 /* end confdefs.h. */ 6421 $ac_includes_default 6422 int 6423 main () 6424 { 6425 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= $ac_mid)]; 6426 test_array [0] = 0 6427 6428 ; 6429 return 0; 6430 } 6431 _ACEOF 6432 rm -f conftest.$ac_objext 6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6434 (eval $ac_compile) 2>conftest.er1 6435 ac_status=$? 6436 grep -v '^ *+' conftest.er1 >conftest.err 6437 rm -f conftest.er1 6438 cat conftest.err >&5 6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6440 (exit $ac_status); } && 6441 { ac_try='test -z "$ac_c_werror_flag" 6442 || test ! -s conftest.err' 6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6444 (eval $ac_try) 2>&5 6445 ac_status=$? 6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6447 (exit $ac_status); }; } && 6448 { ac_try='test -s conftest.$ac_objext' 6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6450 (eval $ac_try) 2>&5 6451 ac_status=$? 6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6453 (exit $ac_status); }; }; then 6454 ac_lo=$ac_mid; break 6455 else 6456 echo "$as_me: failed program was:" >&5 6457 sed 's/^/| /' conftest.$ac_ext >&5 6458 6459 ac_hi=`expr '(' $ac_mid ')' - 1` 6460 if test $ac_mid -le $ac_hi; then 6461 ac_lo= ac_hi= 6462 break 6463 fi 6464 ac_mid=`expr 2 '*' $ac_mid` 6465 fi 6466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6467 done 6468 else 6469 echo "$as_me: failed program was:" >&5 6470 sed 's/^/| /' conftest.$ac_ext >&5 6471 6472 ac_lo= ac_hi= 6473 fi 6474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6475 fi 6476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6477 # Binary search between lo and hi bounds. 6478 while test "x$ac_lo" != "x$ac_hi"; do 6479 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6480 cat >conftest.$ac_ext <<_ACEOF 6481 /* confdefs.h. */ 6482 _ACEOF 6483 cat confdefs.h >>conftest.$ac_ext 6484 cat >>conftest.$ac_ext <<_ACEOF 6485 /* end confdefs.h. */ 6486 $ac_includes_default 6487 int 6488 main () 6489 { 6490 static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)]; 6491 test_array [0] = 0 6492 6493 ; 6494 return 0; 6495 } 6496 _ACEOF 6497 rm -f conftest.$ac_objext 6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6499 (eval $ac_compile) 2>conftest.er1 6500 ac_status=$? 6501 grep -v '^ *+' conftest.er1 >conftest.err 6502 rm -f conftest.er1 6503 cat conftest.err >&5 6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6505 (exit $ac_status); } && 6506 { ac_try='test -z "$ac_c_werror_flag" 6507 || test ! -s conftest.err' 6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6509 (eval $ac_try) 2>&5 6510 ac_status=$? 6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6512 (exit $ac_status); }; } && 6513 { ac_try='test -s conftest.$ac_objext' 6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6515 (eval $ac_try) 2>&5 6516 ac_status=$? 6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6518 (exit $ac_status); }; }; then 6519 ac_hi=$ac_mid 6520 else 6521 echo "$as_me: failed program was:" >&5 6522 sed 's/^/| /' conftest.$ac_ext >&5 6523 6524 ac_lo=`expr '(' $ac_mid ')' + 1` 6525 fi 6526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6527 done 6528 case $ac_lo in 6529 ?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;; 6530 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77 6531 See \`config.log' for more details." >&5 6532 echo "$as_me: error: cannot compute sizeof (unsigned char *), 77 6533 See \`config.log' for more details." >&2;} 6534 { (exit 1); exit 1; }; } ;; 6535 esac 6536 else 6537 if test "$cross_compiling" = yes; then 6538 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6539 See \`config.log' for more details." >&5 6540 echo "$as_me: error: cannot run test program while cross compiling 6541 See \`config.log' for more details." >&2;} 6542 { (exit 1); exit 1; }; } 6543 else 6544 cat >conftest.$ac_ext <<_ACEOF 6545 /* confdefs.h. */ 6546 _ACEOF 6547 cat confdefs.h >>conftest.$ac_ext 6548 cat >>conftest.$ac_ext <<_ACEOF 6549 /* end confdefs.h. */ 6550 $ac_includes_default 6551 long longval () { return (long) (sizeof (unsigned char *)); } 6552 unsigned long ulongval () { return (long) (sizeof (unsigned char *)); } 2805 6553 #include <stdio.h> 2806 main() 6554 #include <stdlib.h> 6555 int 6556 main () 2807 6557 { 2808 FILE *f=fopen("conftestval", "w"); 2809 if (!f) exit(1); 2810 fprintf(f, "%d\n", sizeof(unsigned char *)); 2811 exit(0); 6558 6559 FILE *f = fopen ("conftest.val", "w"); 6560 if (! f) 6561 exit (1); 6562 if (((long) (sizeof (unsigned char *))) < 0) 6563 { 6564 long i = longval (); 6565 if (i != ((long) (sizeof (unsigned char *)))) 6566 exit (1); 6567 fprintf (f, "%ld\n", i); 6568 } 6569 else 6570 { 6571 unsigned long i = ulongval (); 6572 if (i != ((long) (sizeof (unsigned char *)))) 6573 exit (1); 6574 fprintf (f, "%lu\n", i); 6575 } 6576 exit (ferror (f) || fclose (f) != 0); 6577 6578 ; 6579 return 0; 2812 6580 } 2813 EOF 2814 if { (eval echo configure:2815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2815 then 2816 ac_cv_sizeof_unsigned_char_p=`cat conftestval` 2817 else 2818 echo "configure: failed program was:" >&5 2819 cat conftest.$ac_ext >&5 2820 rm -fr conftest* 6581 _ACEOF 6582 rm -f conftest$ac_exeext 6583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6584 (eval $ac_link) 2>&5 6585 ac_status=$? 6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6589 (eval $ac_try) 2>&5 6590 ac_status=$? 6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6592 (exit $ac_status); }; }; then 6593 ac_cv_sizeof_unsigned_char_p=`cat conftest.val` 6594 else 6595 echo "$as_me: program exited with status $ac_status" >&5 6596 echo "$as_me: failed program was:" >&5 6597 sed 's/^/| /' conftest.$ac_ext >&5 6598 6599 ( exit $ac_status ) 6600 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77 6601 See \`config.log' for more details." >&5 6602 echo "$as_me: error: cannot compute sizeof (unsigned char *), 77 6603 See \`config.log' for more details." >&2;} 6604 { (exit 1); exit 1; }; } 6605 fi 6606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6607 fi 6608 fi 6609 rm -f conftest.val 6610 else 2821 6611 ac_cv_sizeof_unsigned_char_p=0 2822 6612 fi 2823 rm -fr conftest* 2824 fi 2825 2826 fi 2827 echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6 2828 cat >> confdefs.h <<EOF 6613 fi 6614 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5 6615 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6 6616 cat >>confdefs.h <<_ACEOF 2829 6617 #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 2830 EOF2831 2832 6618 _ACEOF 6619 6620 2833 6621 if test "$ac_cv_sizeof_unsigned_char_p" = 8 2834 6622 then 2835 echo "configure: warning: I'm forcing you to use regex because I can't 2836 find a local rx library and the one included with this 2837 distribution doesn't work on 64-bit machines like yours" 1>&2 2838 LIBOBJS="$LIBOBJS regex.o" 6623 { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't 6624 find a local rx library and the one included with this 6625 distribution doesn't work on 64-bit machines like yours" >&5 6626 echo "$as_me: WARNING: I'm forcing you to use regex because I can't 6627 find a local rx library and the one included with this 6628 distribution doesn't work on 64-bit machines like yours" >&2;} 6629 case $LIBOBJS in 6630 "regex.$ac_objext" | \ 6631 *" regex.$ac_objext" | \ 6632 "regex.$ac_objext "* | \ 6633 *" regex.$ac_objext "* ) ;; 6634 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;; 6635 esac 6636 2839 6637 else 2840 LIBOBJS="$LIBOBJS rx.o" 6638 case $LIBOBJS in 6639 "rx.$ac_objext" | \ 6640 *" rx.$ac_objext" | \ 6641 "rx.$ac_objext "* | \ 6642 *" rx.$ac_objext "* ) ;; 6643 *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;; 6644 esac 6645 2841 6646 fi 2842 2843 fi 2844 2845 fi 2846 2847 echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6 2848 echo "configure:2849: checking whether GNU readline requested" >&5 2849 # Check whether --with-gnu_readline or --without-gnu_readline was given. 6647 6648 fi 6649 6650 fi 6651 6652 echo "$as_me:$LINENO: checking whether GNU readline requested" >&5 6653 echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6 6654 6655 # Check whether --with-gnu_readline or --without-gnu_readline was given. 2850 6656 if test "${with_gnu_readline+set}" = set; then 2851 6657 withval="$with_gnu_readline" 2852 6658 if test "$withval" = yes; then 2853 echo "$ac_t""yes" 1>&6 6659 echo "$as_me:$LINENO: result: yes" >&5 6660 echo "${ECHO_T}yes" >&6 2854 6661 ac_with_gnu_readline=1 2855 6662 else 2856 echo "$ac_t""no" 1>&6 6663 echo "$as_me:$LINENO: result: no" >&5 6664 echo "${ECHO_T}no" >&6 2857 6665 fi 2858 6666 else 2859 echo "$a c_t""no" 1>&62860 fi 2861 6667 echo "$as_me:$LINENO: result: no" >&5 6668 echo "${ECHO_T}no" >&6 6669 fi; 2862 6670 2863 6671 if test -n "$ac_with_gnu_readline"; then 2864 ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'` 2865 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6 2866 echo "configure:2867: checking for readline/readline.h" >&5 2867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2868 echo $ac_n "(cached) $ac_c" 1>&6 2869 else 2870 cat > conftest.$ac_ext <<EOF 2871 #line 2872 "configure" 2872 #include "confdefs.h" 6672 if test "${ac_cv_header_readline_readline_h+set}" = set; then 6673 echo "$as_me:$LINENO: checking for readline/readline.h" >&5 6674 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6 6675 if test "${ac_cv_header_readline_readline_h+set}" = set; then 6676 echo $ECHO_N "(cached) $ECHO_C" >&6 6677 fi 6678 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 6679 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6 6680 else 6681 # Is the header compilable? 6682 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5 6683 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6 6684 cat >conftest.$ac_ext <<_ACEOF 6685 /* confdefs.h. */ 6686 _ACEOF 6687 cat confdefs.h >>conftest.$ac_ext 6688 cat >>conftest.$ac_ext <<_ACEOF 6689 /* end confdefs.h. */ 6690 $ac_includes_default 2873 6691 #include <readline/readline.h> 2874 EOF 2875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2876 { (eval echo configure:2877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2878 if test -z "$ac_err"; then 2879 rm -rf conftest* 2880 eval "ac_cv_header_$ac_safe=yes" 2881 else 2882 echo "$ac_err" >&5 2883 echo "configure: failed program was:" >&5 2884 cat conftest.$ac_ext >&5 2885 rm -rf conftest* 2886 eval "ac_cv_header_$ac_safe=no" 2887 fi 2888 rm -f conftest* 2889 fi 2890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2891 echo "$ac_t""yes" 1>&6 6692 _ACEOF 6693 rm -f conftest.$ac_objext 6694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6695 (eval $ac_compile) 2>conftest.er1 6696 ac_status=$? 6697 grep -v '^ *+' conftest.er1 >conftest.err 6698 rm -f conftest.er1 6699 cat conftest.err >&5 6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6701 (exit $ac_status); } && 6702 { ac_try='test -z "$ac_c_werror_flag" 6703 || test ! -s conftest.err' 6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6705 (eval $ac_try) 2>&5 6706 ac_status=$? 6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6708 (exit $ac_status); }; } && 6709 { ac_try='test -s conftest.$ac_objext' 6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6711 (eval $ac_try) 2>&5 6712 ac_status=$? 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6714 (exit $ac_status); }; }; then 6715 ac_header_compiler=yes 6716 else 6717 echo "$as_me: failed program was:" >&5 6718 sed 's/^/| /' conftest.$ac_ext >&5 6719 6720 ac_header_compiler=no 6721 fi 6722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6724 echo "${ECHO_T}$ac_header_compiler" >&6 6725 6726 # Is the header present? 6727 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5 6728 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6 6729 cat >conftest.$ac_ext <<_ACEOF 6730 /* confdefs.h. */ 6731 _ACEOF 6732 cat confdefs.h >>conftest.$ac_ext 6733 cat >>conftest.$ac_ext <<_ACEOF 6734 /* end confdefs.h. */ 6735 #include <readline/readline.h> 6736 _ACEOF 6737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6739 ac_status=$? 6740 grep -v '^ *+' conftest.er1 >conftest.err 6741 rm -f conftest.er1 6742 cat conftest.err >&5 6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6744 (exit $ac_status); } >/dev/null; then 6745 if test -s conftest.err; then 6746 ac_cpp_err=$ac_c_preproc_warn_flag 6747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6748 else 6749 ac_cpp_err= 6750 fi 6751 else 6752 ac_cpp_err=yes 6753 fi 6754 if test -z "$ac_cpp_err"; then 6755 ac_header_preproc=yes 6756 else 6757 echo "$as_me: failed program was:" >&5 6758 sed 's/^/| /' conftest.$ac_ext >&5 6759 6760 ac_header_preproc=no 6761 fi 6762 rm -f conftest.err conftest.$ac_ext 6763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6764 echo "${ECHO_T}$ac_header_preproc" >&6 6765 6766 # So? What about this header? 6767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6768 yes:no: ) 6769 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 6770 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6771 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5 6772 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;} 6773 ac_header_preproc=yes 6774 ;; 6775 no:yes:* ) 6776 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5 6777 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;} 6778 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5 6779 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;} 6780 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5 6781 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;} 6782 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5 6783 echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;} 6784 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5 6785 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;} 6786 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5 6787 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;} 6788 ( 6789 cat <<\_ASBOX 6790 ## ------------------------------------------ ## 6791 ## Report this to the AC_PACKAGE_NAME lists. ## 6792 ## ------------------------------------------ ## 6793 _ASBOX 6794 ) | 6795 sed "s/^/$as_me: WARNING: /" >&2 6796 ;; 6797 esac 6798 echo "$as_me:$LINENO: checking for readline/readline.h" >&5 6799 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6 6800 if test "${ac_cv_header_readline_readline_h+set}" = set; then 6801 echo $ECHO_N "(cached) $ECHO_C" >&6 6802 else 6803 ac_cv_header_readline_readline_h=$ac_header_preproc 6804 fi 6805 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5 6806 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6 6807 6808 fi 6809 if test $ac_cv_header_readline_readline_h = yes; then 2892 6810 ac_mg_readline_header_found=1 2893 6811 else 2894 echo "$ac_t""no" 1>&6 2895 echo "configure: warning: Can't find GNU readline headers; configuring without \ 2896 GNU readline support" 1>&2 2897 fi 6812 { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \ 6813 GNU readline support" >&5 6814 echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \ 6815 GNU readline support" >&2;} 6816 fi 6817 2898 6818 2899 6819 if test -n "$ac_mg_readline_header_found"; then 2900 6820 # first check whether we can find the readline library itself 2901 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 2902 echo "configure:2903: checking for main in -lreadline" >&5 2903 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` 2904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2905 echo $ac_n "(cached) $ac_c" 1>&6 2906 else 2907 ac_save_LIBS="$LIBS" 6821 echo "$as_me:$LINENO: checking for main in -lreadline" >&5 6822 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 6823 if test "${ac_cv_lib_readline_main+set}" = set; then 6824 echo $ECHO_N "(cached) $ECHO_C" >&6 6825 else 6826 ac_check_lib_save_LIBS=$LIBS 2908 6827 LIBS="-lreadline $LIBS" 2909 cat > conftest.$ac_ext <<EOF 2910 #line 2911 "configure" 2911 #include "confdefs.h" 2912 2913 int main() { 2914 main() 2915 ; return 0; } 2916 EOF 2917 if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2918 rm -rf conftest* 2919 eval "ac_cv_lib_$ac_lib_var=yes" 2920 else 2921 echo "configure: failed program was:" >&5 2922 cat conftest.$ac_ext >&5 2923 rm -rf conftest* 2924 eval "ac_cv_lib_$ac_lib_var=no" 2925 fi 2926 rm -f conftest* 2927 LIBS="$ac_save_LIBS" 2928 2929 fi 2930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2931 echo "$ac_t""yes" 1>&6 6828 cat >conftest.$ac_ext <<_ACEOF 6829 /* confdefs.h. */ 6830 _ACEOF 6831 cat confdefs.h >>conftest.$ac_ext 6832 cat >>conftest.$ac_ext <<_ACEOF 6833 /* end confdefs.h. */ 6834 6835 6836 int 6837 main () 6838 { 6839 main (); 6840 ; 6841 return 0; 6842 } 6843 _ACEOF 6844 rm -f conftest.$ac_objext conftest$ac_exeext 6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6846 (eval $ac_link) 2>conftest.er1 6847 ac_status=$? 6848 grep -v '^ *+' conftest.er1 >conftest.err 6849 rm -f conftest.er1 6850 cat conftest.err >&5 6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6852 (exit $ac_status); } && 6853 { ac_try='test -z "$ac_c_werror_flag" 6854 || test ! -s conftest.err' 6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6856 (eval $ac_try) 2>&5 6857 ac_status=$? 6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6859 (exit $ac_status); }; } && 6860 { ac_try='test -s conftest$ac_exeext' 6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6862 (eval $ac_try) 2>&5 6863 ac_status=$? 6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6865 (exit $ac_status); }; }; then 6866 ac_cv_lib_readline_main=yes 6867 else 6868 echo "$as_me: failed program was:" >&5 6869 sed 's/^/| /' conftest.$ac_ext >&5 6870 6871 ac_cv_lib_readline_main=no 6872 fi 6873 rm -f conftest.err conftest.$ac_objext \ 6874 conftest$ac_exeext conftest.$ac_ext 6875 LIBS=$ac_check_lib_save_LIBS 6876 fi 6877 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5 6878 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 6879 if test $ac_cv_lib_readline_main = yes; then 2932 6880 ac_mg_readline_lib_found=1 2933 cat >> confdefs.h <<\EOF6881 cat >>confdefs.h <<\_ACEOF 2934 6882 #define WITH_GNU_READLINE 1 2935 EOF6883 _ACEOF 2936 6884 2937 6885 LIBS="$LIBS -lreadline" 2938 6886 else 2939 echo "$ac_t""no" 1>&6 2940 echo "configure: warning: Can't find GNU readline library; configuring without \ 2941 GNU readline support" 1>&2 6887 { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \ 6888 GNU readline support" >&5 6889 echo "$as_me: WARNING: Can't find GNU readline library; configuring without \ 6890 GNU readline support" >&2;} 2942 6891 fi 2943 6892 2944 6893 if test -n "$ac_mg_readline_lib_found"; then 2945 # on some systems, readline needs curses. It is difficult to 6894 # on some systems, readline needs curses. It is difficult to 2946 6895 # determine whether this is necessary on the current system, 2947 6896 # since other undefined symbols can be turned up by an … … 2949 6898 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses, 2950 6899 # we just bung it on and hope for the best. 2951 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6 2952 echo "configure:2953: checking for main in -lcurses" >&5 2953 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'` 2954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2955 echo $ac_n "(cached) $ac_c" 1>&6 2956 else 2957 ac_save_LIBS="$LIBS" 6900 echo "$as_me:$LINENO: checking for main in -lcurses" >&5 6901 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6 6902 if test "${ac_cv_lib_curses_main+set}" = set; then 6903 echo $ECHO_N "(cached) $ECHO_C" >&6 6904 else 6905 ac_check_lib_save_LIBS=$LIBS 2958 6906 LIBS="-lcurses $LIBS" 2959 cat > conftest.$ac_ext <<EOF 2960 #line 2961 "configure" 2961 #include "confdefs.h" 2962 2963 int main() { 2964 main() 2965 ; return 0; } 2966 EOF 2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2968 rm -rf conftest* 2969 eval "ac_cv_lib_$ac_lib_var=yes" 2970 else 2971 echo "configure: failed program was:" >&5 2972 cat conftest.$ac_ext >&5 2973 rm -rf conftest* 2974 eval "ac_cv_lib_$ac_lib_var=no" 2975 fi 2976 rm -f conftest* 2977 LIBS="$ac_save_LIBS" 2978 2979 fi 2980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2981 echo "$ac_t""yes" 1>&6 6907 cat >conftest.$ac_ext <<_ACEOF 6908 /* confdefs.h. */ 6909 _ACEOF 6910 cat confdefs.h >>conftest.$ac_ext 6911 cat >>conftest.$ac_ext <<_ACEOF 6912 /* end confdefs.h. */ 6913 6914 6915 int 6916 main () 6917 { 6918 main (); 6919 ; 6920 return 0; 6921 } 6922 _ACEOF 6923 rm -f conftest.$ac_objext conftest$ac_exeext 6924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6925 (eval $ac_link) 2>conftest.er1 6926 ac_status=$? 6927 grep -v '^ *+' conftest.er1 >conftest.err 6928 rm -f conftest.er1 6929 cat conftest.err >&5 6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6931 (exit $ac_status); } && 6932 { ac_try='test -z "$ac_c_werror_flag" 6933 || test ! -s conftest.err' 6934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6935 (eval $ac_try) 2>&5 6936 ac_status=$? 6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6938 (exit $ac_status); }; } && 6939 { ac_try='test -s conftest$ac_exeext' 6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6941 (eval $ac_try) 2>&5 6942 ac_status=$? 6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6944 (exit $ac_status); }; }; then 6945 ac_cv_lib_curses_main=yes 6946 else 6947 echo "$as_me: failed program was:" >&5 6948 sed 's/^/| /' conftest.$ac_ext >&5 6949 6950 ac_cv_lib_curses_main=no 6951 fi 6952 rm -f conftest.err conftest.$ac_objext \ 6953 conftest$ac_exeext conftest.$ac_ext 6954 LIBS=$ac_check_lib_save_LIBS 6955 fi 6956 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5 6957 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6 6958 if test $ac_cv_lib_curses_main = yes; then 2982 6959 LIBS="$LIBS -lcurses" 2983 else2984 echo "$ac_t""no" 1>&62985 6960 fi 2986 6961 … … 2990 6965 2991 6966 6967 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 6968 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 6969 if test "${ac_cv_c_bigendian+set}" = set; then 6970 echo $ECHO_N "(cached) $ECHO_C" >&6 6971 else 6972 # See if sys/param.h defines the BYTE_ORDER macro. 6973 cat >conftest.$ac_ext <<_ACEOF 6974 /* confdefs.h. */ 6975 _ACEOF 6976 cat confdefs.h >>conftest.$ac_ext 6977 cat >>conftest.$ac_ext <<_ACEOF 6978 /* end confdefs.h. */ 6979 #include <sys/types.h> 6980 #include <sys/param.h> 6981 6982 int 6983 main () 6984 { 6985 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 6986 bogus endian macros 6987 #endif 6988 6989 ; 6990 return 0; 6991 } 6992 _ACEOF 6993 rm -f conftest.$ac_objext 6994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6995 (eval $ac_compile) 2>conftest.er1 6996 ac_status=$? 6997 grep -v '^ *+' conftest.er1 >conftest.err 6998 rm -f conftest.er1 6999 cat conftest.err >&5 7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7001 (exit $ac_status); } && 7002 { ac_try='test -z "$ac_c_werror_flag" 7003 || test ! -s conftest.err' 7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7005 (eval $ac_try) 2>&5 7006 ac_status=$? 7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7008 (exit $ac_status); }; } && 7009 { ac_try='test -s conftest.$ac_objext' 7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7011 (eval $ac_try) 2>&5 7012 ac_status=$? 7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7014 (exit $ac_status); }; }; then 7015 # It does; now see whether it defined to BIG_ENDIAN or not. 7016 cat >conftest.$ac_ext <<_ACEOF 7017 /* confdefs.h. */ 7018 _ACEOF 7019 cat confdefs.h >>conftest.$ac_ext 7020 cat >>conftest.$ac_ext <<_ACEOF 7021 /* end confdefs.h. */ 7022 #include <sys/types.h> 7023 #include <sys/param.h> 7024 7025 int 7026 main () 7027 { 7028 #if BYTE_ORDER != BIG_ENDIAN 7029 not big endian 7030 #endif 7031 7032 ; 7033 return 0; 7034 } 7035 _ACEOF 7036 rm -f conftest.$ac_objext 7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7038 (eval $ac_compile) 2>conftest.er1 7039 ac_status=$? 7040 grep -v '^ *+' conftest.er1 >conftest.err 7041 rm -f conftest.er1 7042 cat conftest.err >&5 7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7044 (exit $ac_status); } && 7045 { ac_try='test -z "$ac_c_werror_flag" 7046 || test ! -s conftest.err' 7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7048 (eval $ac_try) 2>&5 7049 ac_status=$? 7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7051 (exit $ac_status); }; } && 7052 { ac_try='test -s conftest.$ac_objext' 7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7054 (eval $ac_try) 2>&5 7055 ac_status=$? 7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7057 (exit $ac_status); }; }; then 7058 ac_cv_c_bigendian=yes 7059 else 7060 echo "$as_me: failed program was:" >&5 7061 sed 's/^/| /' conftest.$ac_ext >&5 7062 7063 ac_cv_c_bigendian=no 7064 fi 7065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7066 else 7067 echo "$as_me: failed program was:" >&5 7068 sed 's/^/| /' conftest.$ac_ext >&5 7069 7070 # It does not; compile a test program. 7071 if test "$cross_compiling" = yes; then 7072 # try to guess the endianness by grepping values into an object file 7073 ac_cv_c_bigendian=unknown 7074 cat >conftest.$ac_ext <<_ACEOF 7075 /* confdefs.h. */ 7076 _ACEOF 7077 cat confdefs.h >>conftest.$ac_ext 7078 cat >>conftest.$ac_ext <<_ACEOF 7079 /* end confdefs.h. */ 7080 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 7081 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 7082 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 7083 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 7084 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 7085 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 7086 int 7087 main () 7088 { 7089 _ascii (); _ebcdic (); 7090 ; 7091 return 0; 7092 } 7093 _ACEOF 7094 rm -f conftest.$ac_objext 7095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7096 (eval $ac_compile) 2>conftest.er1 7097 ac_status=$? 7098 grep -v '^ *+' conftest.er1 >conftest.err 7099 rm -f conftest.er1 7100 cat conftest.err >&5 7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7102 (exit $ac_status); } && 7103 { ac_try='test -z "$ac_c_werror_flag" 7104 || test ! -s conftest.err' 7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7106 (eval $ac_try) 2>&5 7107 ac_status=$? 7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7109 (exit $ac_status); }; } && 7110 { ac_try='test -s conftest.$ac_objext' 7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7112 (eval $ac_try) 2>&5 7113 ac_status=$? 7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7115 (exit $ac_status); }; }; then 7116 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 7117 ac_cv_c_bigendian=yes 7118 fi 7119 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 7120 if test "$ac_cv_c_bigendian" = unknown; then 7121 ac_cv_c_bigendian=no 7122 else 7123 # finding both strings is unlikely to happen, but who knows? 7124 ac_cv_c_bigendian=unknown 7125 fi 7126 fi 7127 else 7128 echo "$as_me: failed program was:" >&5 7129 sed 's/^/| /' conftest.$ac_ext >&5 7130 7131 fi 7132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7133 else 7134 cat >conftest.$ac_ext <<_ACEOF 7135 /* confdefs.h. */ 7136 _ACEOF 7137 cat confdefs.h >>conftest.$ac_ext 7138 cat >>conftest.$ac_ext <<_ACEOF 7139 /* end confdefs.h. */ 7140 int 7141 main () 7142 { 7143 /* Are we little or big endian? From Harbison&Steele. */ 7144 union 7145 { 7146 long l; 7147 char c[sizeof (long)]; 7148 } u; 7149 u.l = 1; 7150 exit (u.c[sizeof (long) - 1] == 1); 7151 } 7152 _ACEOF 7153 rm -f conftest$ac_exeext 7154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7155 (eval $ac_link) 2>&5 7156 ac_status=$? 7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7160 (eval $ac_try) 2>&5 7161 ac_status=$? 7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7163 (exit $ac_status); }; }; then 7164 ac_cv_c_bigendian=no 7165 else 7166 echo "$as_me: program exited with status $ac_status" >&5 7167 echo "$as_me: failed program was:" >&5 7168 sed 's/^/| /' conftest.$ac_ext >&5 7169 7170 ( exit $ac_status ) 7171 ac_cv_c_bigendian=yes 7172 fi 7173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7174 fi 7175 fi 7176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7177 fi 7178 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 7179 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 7180 case $ac_cv_c_bigendian in 7181 yes) 7182 7183 cat >>confdefs.h <<\_ACEOF 7184 #define WORDS_BIGENDIAN 1 7185 _ACEOF 7186 ;; 7187 no) 7188 ;; 7189 *) 7190 { { echo "$as_me:$LINENO: error: unknown endianness 7191 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 7192 echo "$as_me: error: unknown endianness 7193 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 7194 { (exit 1); exit 1; }; } ;; 7195 esac 7196 7197 2992 7198 # --------------------------------------------------------------------------- 2993 7199 if test "$ac_cv_func_alloca" = 'no'; then 2994 LIBOBJS="$LIBOBJS xmalloc.o error.o" 7200 case $LIBOBJS in 7201 "xmalloc.$ac_objext" | \ 7202 *" xmalloc.$ac_objext" | \ 7203 "xmalloc.$ac_objext "* | \ 7204 *" xmalloc.$ac_objext "* ) ;; 7205 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;; 7206 esac 7207 7208 case $LIBOBJS in 7209 "error.$ac_objext" | \ 7210 *" error.$ac_objext" | \ 7211 "error.$ac_objext "* | \ 7212 *" error.$ac_objext "* ) ;; 7213 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; 7214 esac 7215 2995 7216 fi 2996 7217 … … 3001 7222 if test "${enable_override_longlong+set}" = set; then 3002 7223 enableval="$enable_override_longlong" 3003 cat >> confdefs.h <<\EOF7224 cat >>confdefs.h <<\_ACEOF 3004 7225 #define DISABLE_LONG_LONG 1 3005 EOF 3006 3007 fi 3008 7226 _ACEOF 7227 7228 fi; 3009 7229 3010 7230 # --------------------------------------------------------------------------- 3011 7231 3012 trap '' 1 2 15 3013 cat > confcache <<\EOF 7232 ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile" 7233 ac_config_commands="$ac_config_commands default" 7234 cat >confcache <<\_ACEOF 3014 7235 # This file is a shell script that caches the results of configure 3015 7236 # tests run on this system so they can be shared between configure 3016 # scripts and configure runs. It is not useful on other systems. 3017 # If it contains results you don't want to keep, you may remove or edit it. 7237 # scripts and configure runs, see configure's option --config-cache. 7238 # It is not useful on other systems. If it contains results you don't 7239 # want to keep, you may remove or edit it. 3018 7240 # 3019 # By default, configure uses ./config.cache as the cache file, 3020 # creating it if it does not exist already. You can give configure 3021 # the --cache-file=FILE option to use a different cache file; that is 3022 # what configure does when it calls configure scripts in 3023 # subdirectories, so they share the cache. 3024 # Giving --cache-file=/dev/null disables caching, for debugging configure. 3025 # config.status only pays attention to the cache file if you give it the 3026 # --recheck option to rerun configure. 7241 # config.status only pays attention to the cache file if you give it 7242 # the --recheck option to rerun configure. 3027 7243 # 3028 EOF 7244 # `ac_cv_env_foo' variables (set or unset) will be overridden when 7245 # loading this file, other *unset* `ac_cv_foo' will be assigned the 7246 # following values. 7247 7248 _ACEOF 7249 3029 7250 # The following way of writing the cache mishandles newlines in values, 3030 7251 # but we know of no workaround that is simple, portable, and efficient. … … 3032 7253 # Ultrix sh set writes to stderr and can't be redirected directly, 3033 7254 # and sets the high bit in the cache file unless we assign to the vars. 3034 (set) 2>&1 | 3035 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3036 *ac_space=\ *) 3037 # `set' does not quote correctly, so add quotes (double-quote substitution 3038 # turns \\\\ into \\, and sed turns \\ into \). 3039 sed -n \ 3040 -e "s/'/'\\\\''/g" \ 3041 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3042 ;; 3043 *) 3044 # `set' quotes correctly as required by POSIX, so do not add quotes. 3045 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3046 ;; 3047 esac >> confcache 3048 if cmp -s $cache_file confcache; then 3049 : 3050 else 7255 { 7256 (set) 2>&1 | 7257 case `(ac_space=' '; set | grep ac_space) 2>&1` in 7258 *ac_space=\ *) 7259 # `set' does not quote correctly, so add quotes (double-quote 7260 # substitution turns \\\\ into \\, and sed turns \\ into \). 7261 sed -n \ 7262 "s/'/'\\\\''/g; 7263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7264 ;; 7265 *) 7266 # `set' quotes correctly as required by POSIX, so do not add quotes. 7267 sed -n \ 7268 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 7269 ;; 7270 esac; 7271 } | 7272 sed ' 7273 t clear 7274 : clear 7275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7276 t end 7277 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7278 : end' >>confcache 7279 if diff $cache_file confcache >/dev/null 2>&1; then :; else 3051 7280 if test -w $cache_file; then 3052 echo "updating cache $cache_file"3053 cat confcache > 7281 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 7282 cat confcache >$cache_file 3054 7283 else 3055 7284 echo "not updating unwritable cache $cache_file" … … 3058 7287 rm -f confcache 3059 7288 3060 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 153061 3062 7289 test "x$prefix" = xNONE && prefix=$ac_default_prefix 3063 7290 # Let make expand exec_prefix. 3064 7291 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3065 7292 3066 # Any assignment to VPATH causes Sun make to only execute 3067 # the first set of double-colon rules, so remove it if not needed. 3068 # If there is a colon in the path, we need to keep it. 7293 # VPATH may cause trouble with some makes, so we remove $(srcdir), 7294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 7295 # trailing colons and then remove the whole line if VPATH becomes empty 7296 # (actually we leave an empty line to preserve line numbers). 3069 7297 if test "x$srcdir" = x.; then 3070 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3071 fi 3072 3073 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 7298 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 7299 s/:*\$(srcdir):*/:/; 7300 s/:*\${srcdir}:*/:/; 7301 s/:*@srcdir@:*/:/; 7302 s/^\([^=]*=[ ]*\):*/\1/; 7303 s/:*$//; 7304 s/^[^=]*=[ ]*$//; 7305 }' 7306 fi 3074 7307 3075 7308 DEFS=-DHAVE_CONFIG_H 3076 7309 3077 # Without the "./", some shells look in PATH for config.status. 7310 ac_libobjs= 7311 ac_ltlibobjs= 7312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 7313 # 1. Remove the extension, and $U if already installed. 7314 ac_i=`echo "$ac_i" | 7315 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 7316 # 2. Add them. 7317 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 7318 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 7319 done 7320 LIBOBJS=$ac_libobjs 7321 7322 LTLIBOBJS=$ac_ltlibobjs 7323 7324 7325 3078 7326 : ${CONFIG_STATUS=./config.status} 3079 3080 echo creating $CONFIG_STATUS 3081 rm -f $CONFIG_STATUS 3082 cat > $CONFIG_STATUS <<EOF 3083 #! /bin/sh 3084 # Generated automatically by configure. 7327 ac_clean_files_save=$ac_clean_files 7328 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 7329 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 7330 echo "$as_me: creating $CONFIG_STATUS" >&6;} 7331 cat >$CONFIG_STATUS <<_ACEOF 7332 #! $SHELL 7333 # Generated by $as_me. 3085 7334 # Run this file to recreate the current configuration. 3086 # This directory was configured as follows,3087 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:3088 #3089 # $0 $ac_configure_args3090 #3091 7335 # Compiler output produced by configure, useful for debugging 3092 # configure, is in ./config.log if it exists. 3093 3094 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3095 for ac_option 7336 # configure, is in config.log if it exists. 7337 7338 debug=false 7339 ac_cs_recheck=false 7340 ac_cs_silent=false 7341 SHELL=\${CONFIG_SHELL-$SHELL} 7342 _ACEOF 7343 7344 cat >>$CONFIG_STATUS <<\_ACEOF 7345 ## --------------------- ## 7346 ## M4sh Initialization. ## 7347 ## --------------------- ## 7348 7349 # Be Bourne compatible 7350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 7351 emulate sh 7352 NULLCMD=: 7353 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 7354 # is contrary to our usage. Disable this feature. 7355 alias -g '${1+"$@"}'='"$@"' 7356 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 7357 set -o posix 7358 fi 7359 DUALCASE=1; export DUALCASE # for MKS sh 7360 7361 # Support unset when possible. 7362 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7363 as_unset=unset 7364 else 7365 as_unset=false 7366 fi 7367 7368 7369 # Work around bugs in pre-3.0 UWIN ksh. 7370 $as_unset ENV MAIL MAILPATH 7371 PS1='$ ' 7372 PS2='> ' 7373 PS4='+ ' 7374 7375 # NLS nuisances. 7376 for as_var in \ 7377 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 7378 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 7379 LC_TELEPHONE LC_TIME 3096 7380 do 3097 case "\$ac_option" in 7381 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 7382 eval $as_var=C; export $as_var 7383 else 7384 $as_unset $as_var 7385 fi 7386 done 7387 7388 # Required to use basename. 7389 if expr a : '\(a\)' >/dev/null 2>&1; then 7390 as_expr=expr 7391 else 7392 as_expr=false 7393 fi 7394 7395 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 7396 as_basename=basename 7397 else 7398 as_basename=false 7399 fi 7400 7401 7402 # Name of the executable. 7403 as_me=`$as_basename "$0" || 7404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7405 X"$0" : 'X\(//\)$' \| \ 7406 X"$0" : 'X\(/\)$' \| \ 7407 . : '\(.\)' 2>/dev/null || 7408 echo X/"$0" | 7409 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 7410 /^X\/\(\/\/\)$/{ s//\1/; q; } 7411 /^X\/\(\/\).*/{ s//\1/; q; } 7412 s/.*/./; q'` 7413 7414 7415 # PATH needs CR, and LINENO needs CR and PATH. 7416 # Avoid depending upon Character Ranges. 7417 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7420 as_cr_digits='0123456789' 7421 as_cr_alnum=$as_cr_Letters$as_cr_digits 7422 7423 # The user is always right. 7424 if test "${PATH_SEPARATOR+set}" != set; then 7425 echo "#! /bin/sh" >conf$$.sh 7426 echo "exit 0" >>conf$$.sh 7427 chmod +x conf$$.sh 7428 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7429 PATH_SEPARATOR=';' 7430 else 7431 PATH_SEPARATOR=: 7432 fi 7433 rm -f conf$$.sh 7434 fi 7435 7436 7437 as_lineno_1=$LINENO 7438 as_lineno_2=$LINENO 7439 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 7440 test "x$as_lineno_1" != "x$as_lineno_2" && 7441 test "x$as_lineno_3" = "x$as_lineno_2" || { 7442 # Find who we are. Look in the path if we contain no path at all 7443 # relative or not. 7444 case $0 in 7445 *[\\/]* ) as_myself=$0 ;; 7446 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7447 for as_dir in $PATH 7448 do 7449 IFS=$as_save_IFS 7450 test -z "$as_dir" && as_dir=. 7451 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 7452 done 7453 7454 ;; 7455 esac 7456 # We did not find ourselves, most probably we were run as `sh COMMAND' 7457 # in which case we are not to be found in the path. 7458 if test "x$as_myself" = x; then 7459 as_myself=$0 7460 fi 7461 if test ! -f "$as_myself"; then 7462 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 7463 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 7464 { (exit 1); exit 1; }; } 7465 fi 7466 case $CONFIG_SHELL in 7467 '') 7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7469 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 7470 do 7471 IFS=$as_save_IFS 7472 test -z "$as_dir" && as_dir=. 7473 for as_base in sh bash ksh sh5; do 7474 case $as_dir in 7475 /*) 7476 if ("$as_dir/$as_base" -c ' 7477 as_lineno_1=$LINENO 7478 as_lineno_2=$LINENO 7479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 7480 test "x$as_lineno_1" != "x$as_lineno_2" && 7481 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 7482 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 7483 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 7484 CONFIG_SHELL=$as_dir/$as_base 7485 export CONFIG_SHELL 7486 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 7487 fi;; 7488 esac 7489 done 7490 done 7491 ;; 7492 esac 7493 7494 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 7495 # uniformly replaced by the line number. The first 'sed' inserts a 7496 # line-number line before each line; the second 'sed' does the real 7497 # work. The second script uses 'N' to pair each line-number line 7498 # with the numbered line, and appends trailing '-' during 7499 # substitution so that $LINENO is not a special case at line end. 7500 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 7501 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 7502 sed '=' <$as_myself | 7503 sed ' 7504 N 7505 s,$,-, 7506 : loop 7507 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 7508 t loop 7509 s,-$,, 7510 s,^['$as_cr_digits']*\n,, 7511 ' >$as_me.lineno && 7512 chmod +x $as_me.lineno || 7513 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 7514 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 7515 { (exit 1); exit 1; }; } 7516 7517 # Don't try to exec as it changes $[0], causing all sort of problems 7518 # (the dirname of $[0] is not the place where we might find the 7519 # original and so on. Autoconf is especially sensible to this). 7520 . ./$as_me.lineno 7521 # Exit status is that of the last command. 7522 exit 7523 } 7524 7525 7526 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 7527 *c*,-n*) ECHO_N= ECHO_C=' 7528 ' ECHO_T=' ' ;; 7529 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 7530 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 7531 esac 7532 7533 if expr a : '\(a\)' >/dev/null 2>&1; then 7534 as_expr=expr 7535 else 7536 as_expr=false 7537 fi 7538 7539 rm -f conf$$ conf$$.exe conf$$.file 7540 echo >conf$$.file 7541 if ln -s conf$$.file conf$$ 2>/dev/null; then 7542 # We could just check for DJGPP; but this test a) works b) is more generic 7543 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 7544 if test -f conf$$.exe; then 7545 # Don't use ln at all; we don't have any links 7546 as_ln_s='cp -p' 7547 else 7548 as_ln_s='ln -s' 7549 fi 7550 elif ln conf$$.file conf$$ 2>/dev/null; then 7551 as_ln_s=ln 7552 else 7553 as_ln_s='cp -p' 7554 fi 7555 rm -f conf$$ conf$$.exe conf$$.file 7556 7557 if mkdir -p . 2>/dev/null; then 7558 as_mkdir_p=: 7559 else 7560 test -d ./-p && rmdir ./-p 7561 as_mkdir_p=false 7562 fi 7563 7564 as_executable_p="test -f" 7565 7566 # Sed expression to map a string onto a valid CPP name. 7567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7568 7569 # Sed expression to map a string onto a valid variable name. 7570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7571 7572 7573 # IFS 7574 # We need space, tab and new line, in precisely that order. 7575 as_nl=' 7576 ' 7577 IFS=" $as_nl" 7578 7579 # CDPATH. 7580 $as_unset CDPATH 7581 7582 exec 6>&1 7583 7584 # Open the log real soon, to keep \$[0] and so on meaningful, and to 7585 # report actual input values of CONFIG_FILES etc. instead of their 7586 # values after options handling. Logging --version etc. is OK. 7587 exec 5>>config.log 7588 { 7589 echo 7590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7591 ## Running $as_me. ## 7592 _ASBOX 7593 } >&5 7594 cat >&5 <<_CSEOF 7595 7596 This file was extended by $as_me, which was 7597 generated by GNU Autoconf 2.59. Invocation command line was 7598 7599 CONFIG_FILES = $CONFIG_FILES 7600 CONFIG_HEADERS = $CONFIG_HEADERS 7601 CONFIG_LINKS = $CONFIG_LINKS 7602 CONFIG_COMMANDS = $CONFIG_COMMANDS 7603 $ $0 $@ 7604 7605 _CSEOF 7606 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 7607 echo >&5 7608 _ACEOF 7609 7610 # Files that config.status was made for. 7611 if test -n "$ac_config_files"; then 7612 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 7613 fi 7614 7615 if test -n "$ac_config_headers"; then 7616 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 7617 fi 7618 7619 if test -n "$ac_config_links"; then 7620 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 7621 fi 7622 7623 if test -n "$ac_config_commands"; then 7624 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 7625 fi 7626 7627 cat >>$CONFIG_STATUS <<\_ACEOF 7628 7629 ac_cs_usage="\ 7630 \`$as_me' instantiates files from templates according to the 7631 current configuration. 7632 7633 Usage: $0 [OPTIONS] [FILE]... 7634 7635 -h, --help print this help, then exit 7636 -V, --version print version number, then exit 7637 -q, --quiet do not print progress messages 7638 -d, --debug don't remove temporary files 7639 --recheck update $as_me by reconfiguring in the same conditions 7640 --file=FILE[:TEMPLATE] 7641 instantiate the configuration file FILE 7642 --header=FILE[:TEMPLATE] 7643 instantiate the configuration header FILE 7644 7645 Configuration files: 7646 $config_files 7647 7648 Configuration headers: 7649 $config_headers 7650 7651 Configuration commands: 7652 $config_commands 7653 7654 Report bugs to <[email protected]>." 7655 _ACEOF 7656 7657 cat >>$CONFIG_STATUS <<_ACEOF 7658 ac_cs_version="\\ 7659 config.status 7660 configured by $0, generated by GNU Autoconf 2.59, 7661 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 7662 7663 Copyright (C) 2003 Free Software Foundation, Inc. 7664 This config.status script is free software; the Free Software Foundation 7665 gives unlimited permission to copy, distribute and modify it." 7666 srcdir=$srcdir 7667 INSTALL="$INSTALL" 7668 _ACEOF 7669 7670 cat >>$CONFIG_STATUS <<\_ACEOF 7671 # If no file are specified by the user, then we need to provide default 7672 # value. By we need to know if files were specified by the user. 7673 ac_need_defaults=: 7674 while test $# != 0 7675 do 7676 case $1 in 7677 --*=*) 7678 ac_option=`expr "x$1" : 'x\([^=]*\)='` 7679 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 7680 ac_shift=: 7681 ;; 7682 -*) 7683 ac_option=$1 7684 ac_optarg=$2 7685 ac_shift=shift 7686 ;; 7687 *) # This is not an option, so the user has probably given explicit 7688 # arguments. 7689 ac_option=$1 7690 ac_need_defaults=false;; 7691 esac 7692 7693 case $ac_option in 7694 # Handling of the options. 7695 _ACEOF 7696 cat >>$CONFIG_STATUS <<\_ACEOF 3098 7697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3099 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3100 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3101 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3102 echo "$CONFIG_STATUS generated by autoconf version 2.13" 3103 exit 0 ;; 3104 -help | --help | --hel | --he | --h) 3105 echo "\$ac_cs_usage"; exit 0 ;; 3106 *) echo "\$ac_cs_usage"; exit 1 ;; 7698 ac_cs_recheck=: ;; 7699 --version | --vers* | -V ) 7700 echo "$ac_cs_version"; exit 0 ;; 7701 --he | --h) 7702 # Conflict between --help and --header 7703 { { echo "$as_me:$LINENO: error: ambiguous option: $1 7704 Try \`$0 --help' for more information." >&5 7705 echo "$as_me: error: ambiguous option: $1 7706 Try \`$0 --help' for more information." >&2;} 7707 { (exit 1); exit 1; }; };; 7708 --help | --hel | -h ) 7709 echo "$ac_cs_usage"; exit 0 ;; 7710 --debug | --d* | -d ) 7711 debug=: ;; 7712 --file | --fil | --fi | --f ) 7713 $ac_shift 7714 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 7715 ac_need_defaults=false;; 7716 --header | --heade | --head | --hea ) 7717 $ac_shift 7718 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 7719 ac_need_defaults=false;; 7720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7721 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7722 ac_cs_silent=: ;; 7723 7724 # This is an error. 7725 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 7726 Try \`$0 --help' for more information." >&5 7727 echo "$as_me: error: unrecognized option: $1 7728 Try \`$0 --help' for more information." >&2;} 7729 { (exit 1); exit 1; }; } ;; 7730 7731 *) ac_config_targets="$ac_config_targets $1" ;; 7732 7733 esac 7734 shift 7735 done 7736 7737 ac_configure_extra_args= 7738 7739 if $ac_cs_silent; then 7740 exec 6>/dev/null 7741 ac_configure_extra_args="$ac_configure_extra_args --silent" 7742 fi 7743 7744 _ACEOF 7745 cat >>$CONFIG_STATUS <<_ACEOF 7746 if \$ac_cs_recheck; then 7747 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 7748 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7749 fi 7750 7751 _ACEOF 7752 7753 7754 7755 7756 7757 cat >>$CONFIG_STATUS <<\_ACEOF 7758 for ac_config_target in $ac_config_targets 7759 do 7760 case "$ac_config_target" in 7761 # Handling of arguments. 7762 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7763 "text/Makefile" ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;; 7764 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 7765 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 7766 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7767 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 7768 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 7769 { (exit 1); exit 1; }; };; 3107 7770 esac 3108 7771 done 3109 7772 3110 ac_given_srcdir=$srcdir 3111 ac_given_INSTALL="$INSTALL" 3112 3113 trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3114 EOF 3115 cat >> $CONFIG_STATUS <<EOF 3116 3117 # Protect against being on the right side of a sed subst in config.status. 3118 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3119 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3120 $ac_vpsub 7773 # If the user did not use the arguments to specify the items to instantiate, 7774 # then the envvar interface is used. Set only those that are not. 7775 # We use the long form for the default assignment because of an extremely 7776 # bizarre bug on SunOS 4.1.3. 7777 if $ac_need_defaults; then 7778 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7779 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7780 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7781 fi 7782 7783 # Have a temporary directory for convenience. Make it in the build tree 7784 # simply because there is no reason to put it here, and in addition, 7785 # creating and moving files from /tmp can sometimes cause problems. 7786 # Create a temporary directory, and hook for its removal unless debugging. 7787 $debug || 7788 { 7789 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 7790 trap '{ (exit 1); exit 1; }' 1 2 13 15 7791 } 7792 7793 # Create a (secure) tmp directory for tmp files. 7794 7795 { 7796 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 7797 test -n "$tmp" && test -d "$tmp" 7798 } || 7799 { 7800 tmp=./confstat$$-$RANDOM 7801 (umask 077 && mkdir $tmp) 7802 } || 7803 { 7804 echo "$me: cannot create a temporary directory in ." >&2 7805 { (exit 1); exit 1; } 7806 } 7807 7808 _ACEOF 7809 7810 cat >>$CONFIG_STATUS <<_ACEOF 7811 7812 # 7813 # CONFIG_FILES section. 7814 # 7815 7816 # No need to generate the scripts if there are no CONFIG_FILES. 7817 # This happens for instance when ./config.status config.h 7818 if test -n "\$CONFIG_FILES"; then 7819 # Protect against being on the right side of a sed subst in config.status. 7820 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 7821 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 7822 s,@SHELL@,$SHELL,;t t 7823 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 7824 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 7825 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 7826 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 7827 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 7828 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 7829 s,@exec_prefix@,$exec_prefix,;t t 7830 s,@prefix@,$prefix,;t t 7831 s,@program_transform_name@,$program_transform_name,;t t 7832 s,@bindir@,$bindir,;t t 7833 s,@sbindir@,$sbindir,;t t 7834 s,@libexecdir@,$libexecdir,;t t 7835 s,@datadir@,$datadir,;t t 7836 s,@sysconfdir@,$sysconfdir,;t t 7837 s,@sharedstatedir@,$sharedstatedir,;t t 7838 s,@localstatedir@,$localstatedir,;t t 7839 s,@libdir@,$libdir,;t t 7840 s,@includedir@,$includedir,;t t 7841 s,@oldincludedir@,$oldincludedir,;t t 7842 s,@infodir@,$infodir,;t t 7843 s,@mandir@,$mandir,;t t 7844 s,@build_alias@,$build_alias,;t t 7845 s,@host_alias@,$host_alias,;t t 7846 s,@target_alias@,$target_alias,;t t 7847 s,@DEFS@,$DEFS,;t t 7848 s,@ECHO_C@,$ECHO_C,;t t 7849 s,@ECHO_N@,$ECHO_N,;t t 7850 s,@ECHO_T@,$ECHO_T,;t t 7851 s,@LIBS@,$LIBS,;t t 7852 s,@PACKAGE@,$PACKAGE,;t t 7853 s,@VERSION@,$VERSION,;t t 7854 s,@CXX@,$CXX,;t t 7855 s,@CXXFLAGS@,$CXXFLAGS,;t t 7856 s,@LDFLAGS@,$LDFLAGS,;t t 7857 s,@CPPFLAGS@,$CPPFLAGS,;t t 7858 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 7859 s,@EXEEXT@,$EXEEXT,;t t 7860 s,@OBJEXT@,$OBJEXT,;t t 7861 s,@AWK@,$AWK,;t t 7862 s,@YACC@,$YACC,;t t 7863 s,@CC@,$CC,;t t 7864 s,@CFLAGS@,$CFLAGS,;t t 7865 s,@ac_ct_CC@,$ac_ct_CC,;t t 7866 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7867 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 7868 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 7869 s,@LN_S@,$LN_S,;t t 7870 s,@SET_MAKE@,$SET_MAKE,;t t 7871 s,@RANLIB@,$RANLIB,;t t 7872 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 7873 s,@CPP@,$CPP,;t t 7874 s,@EGREP@,$EGREP,;t t 7875 s,@U@,$U,;t t 7876 s,@ANSI2KNR@,$ANSI2KNR,;t t 7877 s,@ALLOCA@,$ALLOCA,;t t 7878 s,@LIBOBJS@,$LIBOBJS,;t t 7879 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 7880 CEOF 7881 7882 _ACEOF 7883 7884 cat >>$CONFIG_STATUS <<\_ACEOF 7885 # Split the substitutions into bite-sized pieces for seds with 7886 # small command number limits, like on Digital OSF/1 and HP-UX. 7887 ac_max_sed_lines=48 7888 ac_sed_frag=1 # Number of current file. 7889 ac_beg=1 # First line for current file. 7890 ac_end=$ac_max_sed_lines # Line after last line for current file. 7891 ac_more_lines=: 7892 ac_sed_cmds= 7893 while $ac_more_lines; do 7894 if test $ac_beg -gt 1; then 7895 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7896 else 7897 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7898 fi 7899 if test ! -s $tmp/subs.frag; then 7900 ac_more_lines=false 7901 else 7902 # The purpose of the label and of the branching condition is to 7903 # speed up the sed processing (if there are no `@' at all, there 7904 # is no need to browse any of the substitutions). 7905 # These are the two extra sed commands mentioned above. 7906 (echo ':t 7907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7908 if test -z "$ac_sed_cmds"; then 7909 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7910 else 7911 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7912 fi 7913 ac_sed_frag=`expr $ac_sed_frag + 1` 7914 ac_beg=$ac_end 7915 ac_end=`expr $ac_end + $ac_max_sed_lines` 7916 fi 7917 done 7918 if test -z "$ac_sed_cmds"; then 7919 ac_sed_cmds=cat 7920 fi 7921 fi # test -n "$CONFIG_FILES" 7922 7923 _ACEOF 7924 cat >>$CONFIG_STATUS <<\_ACEOF 7925 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7926 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7927 case $ac_file in 7928 - | *:- | *:-:* ) # input from stdin 7929 cat >$tmp/stdin 7930 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7931 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7932 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7933 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7934 * ) ac_file_in=$ac_file.in ;; 7935 esac 7936 7937 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7938 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7940 X"$ac_file" : 'X\(//\)[^/]' \| \ 7941 X"$ac_file" : 'X\(//\)$' \| \ 7942 X"$ac_file" : 'X\(/\)' \| \ 7943 . : '\(.\)' 2>/dev/null || 7944 echo X"$ac_file" | 7945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7946 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7947 /^X\(\/\/\)$/{ s//\1/; q; } 7948 /^X\(\/\).*/{ s//\1/; q; } 7949 s/.*/./; q'` 7950 { if $as_mkdir_p; then 7951 mkdir -p "$ac_dir" 7952 else 7953 as_dir="$ac_dir" 7954 as_dirs= 7955 while test ! -d "$as_dir"; do 7956 as_dirs="$as_dir $as_dirs" 7957 as_dir=`(dirname "$as_dir") 2>/dev/null || 7958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7959 X"$as_dir" : 'X\(//\)[^/]' \| \ 7960 X"$as_dir" : 'X\(//\)$' \| \ 7961 X"$as_dir" : 'X\(/\)' \| \ 7962 . : '\(.\)' 2>/dev/null || 7963 echo X"$as_dir" | 7964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7965 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7966 /^X\(\/\/\)$/{ s//\1/; q; } 7967 /^X\(\/\).*/{ s//\1/; q; } 7968 s/.*/./; q'` 7969 done 7970 test ! -n "$as_dirs" || mkdir $as_dirs 7971 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7972 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7973 { (exit 1); exit 1; }; }; } 7974 7975 ac_builddir=. 7976 7977 if test "$ac_dir" != .; then 7978 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7979 # A "../" for each directory in $ac_dir_suffix. 7980 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7981 else 7982 ac_dir_suffix= ac_top_builddir= 7983 fi 7984 7985 case $srcdir in 7986 .) # No --srcdir option. We are building in place. 7987 ac_srcdir=. 7988 if test -z "$ac_top_builddir"; then 7989 ac_top_srcdir=. 7990 else 7991 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7992 fi ;; 7993 [\\/]* | ?:[\\/]* ) # Absolute path. 7994 ac_srcdir=$srcdir$ac_dir_suffix; 7995 ac_top_srcdir=$srcdir ;; 7996 *) # Relative path. 7997 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7998 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7999 esac 8000 8001 # Do not use `cd foo && pwd` to compute absolute paths, because 8002 # the directories may not exist. 8003 case `pwd` in 8004 .) ac_abs_builddir="$ac_dir";; 8005 *) 8006 case "$ac_dir" in 8007 .) ac_abs_builddir=`pwd`;; 8008 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 8009 *) ac_abs_builddir=`pwd`/"$ac_dir";; 8010 esac;; 8011 esac 8012 case $ac_abs_builddir in 8013 .) ac_abs_top_builddir=${ac_top_builddir}.;; 8014 *) 8015 case ${ac_top_builddir}. in 8016 .) ac_abs_top_builddir=$ac_abs_builddir;; 8017 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 8018 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 8019 esac;; 8020 esac 8021 case $ac_abs_builddir in 8022 .) ac_abs_srcdir=$ac_srcdir;; 8023 *) 8024 case $ac_srcdir in 8025 .) ac_abs_srcdir=$ac_abs_builddir;; 8026 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 8027 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 8028 esac;; 8029 esac 8030 case $ac_abs_builddir in 8031 .) ac_abs_top_srcdir=$ac_top_srcdir;; 8032 *) 8033 case $ac_top_srcdir in 8034 .) ac_abs_top_srcdir=$ac_abs_builddir;; 8035 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 8036 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 8037 esac;; 8038 esac 8039 8040 8041 case $INSTALL in 8042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8043 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 8044 esac 8045 8046 if test x"$ac_file" != x-; then 8047 { echo "$as_me:$LINENO: creating $ac_file" >&5 8048 echo "$as_me: creating $ac_file" >&6;} 8049 rm -f "$ac_file" 8050 fi 8051 # Let's still pretend it is `configure' which instantiates (i.e., don't 8052 # use $as_me), people would be surprised to read: 8053 # /* config.h. Generated by config.status. */ 8054 if test x"$ac_file" = x-; then 8055 configure_input= 8056 else 8057 configure_input="$ac_file. " 8058 fi 8059 configure_input=$configure_input"Generated from `echo $ac_file_in | 8060 sed 's,.*/,,'` by configure." 8061 8062 # First look for the input files in the build tree, otherwise in the 8063 # src tree. 8064 ac_file_inputs=`IFS=: 8065 for f in $ac_file_in; do 8066 case $f in 8067 -) echo $tmp/stdin ;; 8068 [\\/$]*) 8069 # Absolute (can't be DOS-style, as IFS=:) 8070 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8071 echo "$as_me: error: cannot find input file: $f" >&2;} 8072 { (exit 1); exit 1; }; } 8073 echo "$f";; 8074 *) # Relative 8075 if test -f "$f"; then 8076 # Build tree 8077 echo "$f" 8078 elif test -f "$srcdir/$f"; then 8079 # Source tree 8080 echo "$srcdir/$f" 8081 else 8082 # /dev/null tree 8083 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8084 echo "$as_me: error: cannot find input file: $f" >&2;} 8085 { (exit 1); exit 1; }; } 8086 fi;; 8087 esac 8088 done` || { (exit 1); exit 1; } 8089 _ACEOF 8090 cat >>$CONFIG_STATUS <<_ACEOF 8091 sed "$ac_vpsub 3121 8092 $extrasub 3122 s%@SHELL@%$SHELL%g 3123 s%@CFLAGS@%$CFLAGS%g 3124 s%@CPPFLAGS@%$CPPFLAGS%g 3125 s%@CXXFLAGS@%$CXXFLAGS%g 3126 s%@FFLAGS@%$FFLAGS%g 3127 s%@DEFS@%$DEFS%g 3128 s%@LDFLAGS@%$LDFLAGS%g 3129 s%@LIBS@%$LIBS%g 3130 s%@exec_prefix@%$exec_prefix%g 3131 s%@prefix@%$prefix%g 3132 s%@program_transform_name@%$program_transform_name%g 3133 s%@bindir@%$bindir%g 3134 s%@sbindir@%$sbindir%g 3135 s%@libexecdir@%$libexecdir%g 3136 s%@datadir@%$datadir%g 3137 s%@sysconfdir@%$sysconfdir%g 3138 s%@sharedstatedir@%$sharedstatedir%g 3139 s%@localstatedir@%$localstatedir%g 3140 s%@libdir@%$libdir%g 3141 s%@includedir@%$includedir%g 3142 s%@oldincludedir@%$oldincludedir%g 3143 s%@infodir@%$infodir%g 3144 s%@mandir@%$mandir%g 3145 s%@PACKAGE@%$PACKAGE%g 3146 s%@VERSION@%$VERSION%g 3147 s%@CXX@%$CXX%g 3148 s%@AWK@%$AWK%g 3149 s%@YACC@%$YACC%g 3150 s%@CC@%$CC%g 3151 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3152 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3153 s%@INSTALL_DATA@%$INSTALL_DATA%g 3154 s%@LN_S@%$LN_S%g 3155 s%@SET_MAKE@%$SET_MAKE%g 3156 s%@RANLIB@%$RANLIB%g 3157 s%@CPP@%$CPP%g 3158 s%@U@%$U%g 3159 s%@ANSI2KNR@%$ANSI2KNR%g 3160 s%@ALLOCA@%$ALLOCA%g 3161 s%@LIBOBJS@%$LIBOBJS%g 3162 3163 CEOF 3164 EOF 3165 3166 cat >> $CONFIG_STATUS <<\EOF 3167 3168 # Split the substitutions into bite-sized pieces for seds with 3169 # small command number limits, like on Digital OSF/1 and HP-UX. 3170 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3171 ac_file=1 # Number of current file. 3172 ac_beg=1 # First line for current file. 3173 ac_end=$ac_max_sed_cmds # Line after last line for current file. 3174 ac_more_lines=: 3175 ac_sed_cmds="" 3176 while $ac_more_lines; do 3177 if test $ac_beg -gt 1; then 3178 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 8093 _ACEOF 8094 cat >>$CONFIG_STATUS <<\_ACEOF 8095 :t 8096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8097 s,@configure_input@,$configure_input,;t t 8098 s,@srcdir@,$ac_srcdir,;t t 8099 s,@abs_srcdir@,$ac_abs_srcdir,;t t 8100 s,@top_srcdir@,$ac_top_srcdir,;t t 8101 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 8102 s,@builddir@,$ac_builddir,;t t 8103 s,@abs_builddir@,$ac_abs_builddir,;t t 8104 s,@top_builddir@,$ac_top_builddir,;t t 8105 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 8106 s,@INSTALL@,$ac_INSTALL,;t t 8107 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 8108 rm -f $tmp/stdin 8109 if test x"$ac_file" != x-; then 8110 mv $tmp/out $ac_file 3179 8111 else 3180 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 8112 cat $tmp/out 8113 rm -f $tmp/out 3181 8114 fi 3182 if test ! -s conftest.s$ac_file; then 3183 ac_more_lines=false 3184 rm -f conftest.s$ac_file 3185 else 3186 if test -z "$ac_sed_cmds"; then 3187 ac_sed_cmds="sed -f conftest.s$ac_file" 3188 else 3189 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3190 fi 3191 ac_file=`expr $ac_file + 1` 3192 ac_beg=$ac_end 3193 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3194 fi 8115 3195 8116 done 3196 if test -z "$ac_sed_cmds"; then 3197 ac_sed_cmds=cat 3198 fi 3199 EOF 3200 3201 cat >> $CONFIG_STATUS <<EOF 3202 3203 CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile "} 3204 EOF 3205 cat >> $CONFIG_STATUS <<\EOF 3206 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3207 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3208 case "$ac_file" in 3209 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3210 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3211 *) ac_file_in="${ac_file}.in" ;; 3212 esac 3213 3214 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3215 3216 # Remove last slash and all that follows it. Not all systems have dirname. 3217 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3218 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3219 # The file is in a subdirectory. 3220 test ! -d "$ac_dir" && mkdir "$ac_dir" 3221 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 3222 # A "../" for each directory in $ac_dir_suffix. 3223 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 3224 else 3225 ac_dir_suffix= ac_dots= 3226 fi 3227 3228 case "$ac_given_srcdir" in 3229 .) srcdir=. 3230 if test -z "$ac_dots"; then top_srcdir=. 3231 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3232 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 3233 *) # Relative path. 3234 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 3235 top_srcdir="$ac_dots$ac_given_srcdir" ;; 3236 esac 3237 3238 case "$ac_given_INSTALL" in 3239 [/$]*) INSTALL="$ac_given_INSTALL" ;; 3240 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 3241 esac 3242 3243 echo creating "$ac_file" 3244 rm -f "$ac_file" 3245 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3246 case "$ac_file" in 3247 *Makefile*) ac_comsub="1i\\ 3248 # $configure_input" ;; 3249 *) ac_comsub= ;; 3250 esac 3251 3252 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3253 sed -e "$ac_comsub 3254 s%@configure_input@%$configure_input%g 3255 s%@srcdir@%$srcdir%g 3256 s%@top_srcdir@%$top_srcdir%g 3257 s%@INSTALL@%$INSTALL%g 3258 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3259 fi; done 3260 rm -f conftest.s* 8117 _ACEOF 8118 cat >>$CONFIG_STATUS <<\_ACEOF 8119 8120 # 8121 # CONFIG_HEADER section. 8122 # 3261 8123 3262 8124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 3264 8126 # 3265 8127 # ac_d sets the value in "#define NAME VALUE" lines. 3266 ac_dA='s %^\([ ]*\)#\([ ]*define[ ][]*\)'3267 ac_dB=' \([ ][ ]*\)[^ ]*%\1#\2'3268 ac_dC=' \3'3269 ac_dD=' %g'3270 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".3271 ac_uA='s %^\([ ]*\)#\([ ]*\)undef\([ ][]*\)'3272 ac_uB=' \([ ]\)%\1#\2define\3'8128 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 8129 ac_dB='[ ].*$,\1#\2' 8130 ac_dC=' ' 8131 ac_dD=',;t' 8132 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 8133 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 8134 ac_uB='$,\1#\2define\3' 3273 8135 ac_uC=' ' 3274 ac_uD='\4%g' 3275 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3276 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3277 ac_eB='$%\1#\2define\3' 3278 ac_eC=' ' 3279 ac_eD='%g' 3280 3281 if test "${CONFIG_HEADERS+set}" != set; then 3282 EOF 3283 cat >> $CONFIG_STATUS <<EOF 3284 CONFIG_HEADERS="config.h" 3285 EOF 3286 cat >> $CONFIG_STATUS <<\EOF 3287 fi 3288 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 8136 ac_uD=',;t' 8137 8138 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 3289 8139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3290 case "$ac_file" in 3291 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3292 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3293 *) ac_file_in="${ac_file}.in" ;; 8140 case $ac_file in 8141 - | *:- | *:-:* ) # input from stdin 8142 cat >$tmp/stdin 8143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 8146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 8147 * ) ac_file_in=$ac_file.in ;; 3294 8148 esac 3295 8149 3296 echo creating $ac_file 3297 3298 rm -f conftest.frag conftest.in conftest.out 3299 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3300 cat $ac_file_inputs > conftest.in 3301 3302 EOF 3303 3304 # Transform confdefs.h into a sed script conftest.vals that substitutes 3305 # the proper values into config.h.in to produce config.h. And first: 3306 # Protect against being on the right side of a sed subst in config.status. 3307 # Protect against being in an unquoted here document in config.status. 3308 rm -f conftest.vals 3309 cat > conftest.hdr <<\EOF 3310 s/[\\&%]/\\&/g 3311 s%[\\$`]%\\&%g 3312 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3313 s%ac_d%ac_u%gp 3314 s%ac_u%ac_e%gp 3315 EOF 3316 sed -n -f conftest.hdr confdefs.h > conftest.vals 3317 rm -f conftest.hdr 8150 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 8151 echo "$as_me: creating $ac_file" >&6;} 8152 8153 # First look for the input files in the build tree, otherwise in the 8154 # src tree. 8155 ac_file_inputs=`IFS=: 8156 for f in $ac_file_in; do 8157 case $f in 8158 -) echo $tmp/stdin ;; 8159 [\\/$]*) 8160 # Absolute (can't be DOS-style, as IFS=:) 8161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8162 echo "$as_me: error: cannot find input file: $f" >&2;} 8163 { (exit 1); exit 1; }; } 8164 # Do quote $f, to prevent DOS paths from being IFS'd. 8165 echo "$f";; 8166 *) # Relative 8167 if test -f "$f"; then 8168 # Build tree 8169 echo "$f" 8170 elif test -f "$srcdir/$f"; then 8171 # Source tree 8172 echo "$srcdir/$f" 8173 else 8174 # /dev/null tree 8175 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 8176 echo "$as_me: error: cannot find input file: $f" >&2;} 8177 { (exit 1); exit 1; }; } 8178 fi;; 8179 esac 8180 done` || { (exit 1); exit 1; } 8181 # Remove the trailing spaces. 8182 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 8183 8184 _ACEOF 8185 8186 # Transform confdefs.h into two sed scripts, `conftest.defines' and 8187 # `conftest.undefs', that substitutes the proper values into 8188 # config.h.in to produce config.h. The first handles `#define' 8189 # templates, and the second `#undef' templates. 8190 # And first: Protect against being on the right side of a sed subst in 8191 # config.status. Protect against being in an unquoted here document 8192 # in config.status. 8193 rm -f conftest.defines conftest.undefs 8194 # Using a here document instead of a string reduces the quoting nightmare. 8195 # Putting comments in sed scripts is not portable. 8196 # 8197 # `end' is used to avoid that the second main sed command (meant for 8198 # 0-ary CPP macros) applies to n-ary macro definitions. 8199 # See the Autoconf documentation for `clear'. 8200 cat >confdef2sed.sed <<\_ACEOF 8201 s/[\\&,]/\\&/g 8202 s,[\\$`],\\&,g 8203 t clear 8204 : clear 8205 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 8206 t end 8207 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 8208 : end 8209 _ACEOF 8210 # If some macros were called several times there might be several times 8211 # the same #defines, which is useless. Nevertheless, we may not want to 8212 # sort them, since we want the *last* AC-DEFINE to be honored. 8213 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 8214 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 8215 rm -f confdef2sed.sed 3318 8216 3319 8217 # This sed command replaces #undef with comments. This is necessary, for 3320 8218 # example, in the case of _POSIX_SOURCE, which is predefined and required 3321 8219 # on some systems where configure will not decide to define it. 3322 cat >> conftest.vals <<\EOF 3323 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3324 EOF 3325 3326 # Break up conftest.vals because some shells have a limit on 3327 # the size of here documents, and old seds have small limits too. 3328 8220 cat >>conftest.undefs <<\_ACEOF 8221 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 8222 _ACEOF 8223 8224 # Break up conftest.defines because some shells have a limit on the size 8225 # of here documents, and old seds have small limits too (100 cmds). 8226 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 8227 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 8228 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 8229 echo ' :' >>$CONFIG_STATUS 3329 8230 rm -f conftest.tail 3330 while :8231 while grep . conftest.defines >/dev/null 3331 8232 do 3332 ac_lines=`grep -c . conftest.vals` 3333 # grep -c gives empty output for an empty file on some AIX systems. 3334 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 3335 # Write a limited-size here document to conftest.frag. 3336 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3337 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 8233 # Write a limited-size here document to $tmp/defines.sed. 8234 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 8235 # Speed up: don't consider the non `#define' lines. 8236 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 8237 # Work around the forget-to-reset-the-flag bug. 8238 echo 't clr' >>$CONFIG_STATUS 8239 echo ': clr' >>$CONFIG_STATUS 8240 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 3338 8241 echo 'CEOF 3339 sed -f conftest.frag conftest.in > conftest.out3340 rm -f conftest.in3341 mv conftest.out conftest.in3342 ' >> 3343 sed 1,${ac_max_here_lines}d conftest. vals >conftest.tail3344 rm -f conftest. vals3345 mv conftest.tail conftest. vals8242 sed -f $tmp/defines.sed $tmp/in >$tmp/out 8243 rm -f $tmp/in 8244 mv $tmp/out $tmp/in 8245 ' >>$CONFIG_STATUS 8246 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 8247 rm -f conftest.defines 8248 mv conftest.tail conftest.defines 3346 8249 done 3347 rm -f conftest.vals 3348 3349 cat >> $CONFIG_STATUS <<\EOF 3350 rm -f conftest.frag conftest.h 3351 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3352 cat conftest.in >> conftest.h 3353 rm -f conftest.in 3354 if cmp -s $ac_file conftest.h 2>/dev/null; then 3355 echo "$ac_file is unchanged" 3356 rm -f conftest.h 8250 rm -f conftest.defines 8251 echo ' fi # grep' >>$CONFIG_STATUS 8252 echo >>$CONFIG_STATUS 8253 8254 # Break up conftest.undefs because some shells have a limit on the size 8255 # of here documents, and old seds have small limits too (100 cmds). 8256 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 8257 rm -f conftest.tail 8258 while grep . conftest.undefs >/dev/null 8259 do 8260 # Write a limited-size here document to $tmp/undefs.sed. 8261 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 8262 # Speed up: don't consider the non `#undef' 8263 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 8264 # Work around the forget-to-reset-the-flag bug. 8265 echo 't clr' >>$CONFIG_STATUS 8266 echo ': clr' >>$CONFIG_STATUS 8267 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 8268 echo 'CEOF 8269 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 8270 rm -f $tmp/in 8271 mv $tmp/out $tmp/in 8272 ' >>$CONFIG_STATUS 8273 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 8274 rm -f conftest.undefs 8275 mv conftest.tail conftest.undefs 8276 done 8277 rm -f conftest.undefs 8278 8279 cat >>$CONFIG_STATUS <<\_ACEOF 8280 # Let's still pretend it is `configure' which instantiates (i.e., don't 8281 # use $as_me), people would be surprised to read: 8282 # /* config.h. Generated by config.status. */ 8283 if test x"$ac_file" = x-; then 8284 echo "/* Generated by configure. */" >$tmp/config.h 3357 8285 else 3358 # Remove last slash and all that follows it. Not all systems have dirname. 3359 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3360 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3361 # The file is in a subdirectory. 3362 test ! -d "$ac_dir" && mkdir "$ac_dir" 8286 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 8287 fi 8288 cat $tmp/in >>$tmp/config.h 8289 rm -f $tmp/in 8290 if test x"$ac_file" != x-; then 8291 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 8292 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 8293 echo "$as_me: $ac_file is unchanged" >&6;} 8294 else 8295 ac_dir=`(dirname "$ac_file") 2>/dev/null || 8296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8297 X"$ac_file" : 'X\(//\)[^/]' \| \ 8298 X"$ac_file" : 'X\(//\)$' \| \ 8299 X"$ac_file" : 'X\(/\)' \| \ 8300 . : '\(.\)' 2>/dev/null || 8301 echo X"$ac_file" | 8302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8303 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8304 /^X\(\/\/\)$/{ s//\1/; q; } 8305 /^X\(\/\).*/{ s//\1/; q; } 8306 s/.*/./; q'` 8307 { if $as_mkdir_p; then 8308 mkdir -p "$ac_dir" 8309 else 8310 as_dir="$ac_dir" 8311 as_dirs= 8312 while test ! -d "$as_dir"; do 8313 as_dirs="$as_dir $as_dirs" 8314 as_dir=`(dirname "$as_dir") 2>/dev/null || 8315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8316 X"$as_dir" : 'X\(//\)[^/]' \| \ 8317 X"$as_dir" : 'X\(//\)$' \| \ 8318 X"$as_dir" : 'X\(/\)' \| \ 8319 . : '\(.\)' 2>/dev/null || 8320 echo X"$as_dir" | 8321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8322 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8323 /^X\(\/\/\)$/{ s//\1/; q; } 8324 /^X\(\/\).*/{ s//\1/; q; } 8325 s/.*/./; q'` 8326 done 8327 test ! -n "$as_dirs" || mkdir $as_dirs 8328 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 8329 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 8330 { (exit 1); exit 1; }; }; } 8331 8332 rm -f $ac_file 8333 mv $tmp/config.h $ac_file 3363 8334 fi 3364 rm -f $ac_file 3365 mv conftest.h $ac_file 8335 else 8336 cat $tmp/config.h 8337 rm -f $tmp/config.h 3366 8338 fi 3367 fi; done 3368 3369 EOF 3370 cat >> $CONFIG_STATUS <<EOF 3371 3372 EOF 3373 cat >> $CONFIG_STATUS <<\EOF 3374 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3375 exit 0 3376 EOF 8339 done 8340 _ACEOF 8341 cat >>$CONFIG_STATUS <<\_ACEOF 8342 8343 # 8344 # CONFIG_COMMANDS section. 8345 # 8346 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 8347 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 8348 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 8349 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 8350 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8351 X"$ac_dest" : 'X\(//\)[^/]' \| \ 8352 X"$ac_dest" : 'X\(//\)$' \| \ 8353 X"$ac_dest" : 'X\(/\)' \| \ 8354 . : '\(.\)' 2>/dev/null || 8355 echo X"$ac_dest" | 8356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8357 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8358 /^X\(\/\/\)$/{ s//\1/; q; } 8359 /^X\(\/\).*/{ s//\1/; q; } 8360 s/.*/./; q'` 8361 { if $as_mkdir_p; then 8362 mkdir -p "$ac_dir" 8363 else 8364 as_dir="$ac_dir" 8365 as_dirs= 8366 while test ! -d "$as_dir"; do 8367 as_dirs="$as_dir $as_dirs" 8368 as_dir=`(dirname "$as_dir") 2>/dev/null || 8369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8370 X"$as_dir" : 'X\(//\)[^/]' \| \ 8371 X"$as_dir" : 'X\(//\)$' \| \ 8372 X"$as_dir" : 'X\(/\)' \| \ 8373 . : '\(.\)' 2>/dev/null || 8374 echo X"$as_dir" | 8375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 8376 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 8377 /^X\(\/\/\)$/{ s//\1/; q; } 8378 /^X\(\/\).*/{ s//\1/; q; } 8379 s/.*/./; q'` 8380 done 8381 test ! -n "$as_dirs" || mkdir $as_dirs 8382 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 8383 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 8384 { (exit 1); exit 1; }; }; } 8385 8386 ac_builddir=. 8387 8388 if test "$ac_dir" != .; then 8389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 8390 # A "../" for each directory in $ac_dir_suffix. 8391 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 8392 else 8393 ac_dir_suffix= ac_top_builddir= 8394 fi 8395 8396 case $srcdir in 8397 .) # No --srcdir option. We are building in place. 8398 ac_srcdir=. 8399 if test -z "$ac_top_builddir"; then 8400 ac_top_srcdir=. 8401 else 8402 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 8403 fi ;; 8404 [\\/]* | ?:[\\/]* ) # Absolute path. 8405 ac_srcdir=$srcdir$ac_dir_suffix; 8406 ac_top_srcdir=$srcdir ;; 8407 *) # Relative path. 8408 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 8409 ac_top_srcdir=$ac_top_builddir$srcdir ;; 8410 esac 8411 8412 # Do not use `cd foo && pwd` to compute absolute paths, because 8413 # the directories may not exist. 8414 case `pwd` in 8415 .) ac_abs_builddir="$ac_dir";; 8416 *) 8417 case "$ac_dir" in 8418 .) ac_abs_builddir=`pwd`;; 8419 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 8420 *) ac_abs_builddir=`pwd`/"$ac_dir";; 8421 esac;; 8422 esac 8423 case $ac_abs_builddir in 8424 .) ac_abs_top_builddir=${ac_top_builddir}.;; 8425 *) 8426 case ${ac_top_builddir}. in 8427 .) ac_abs_top_builddir=$ac_abs_builddir;; 8428 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 8429 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 8430 esac;; 8431 esac 8432 case $ac_abs_builddir in 8433 .) ac_abs_srcdir=$ac_srcdir;; 8434 *) 8435 case $ac_srcdir in 8436 .) ac_abs_srcdir=$ac_abs_builddir;; 8437 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 8438 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 8439 esac;; 8440 esac 8441 case $ac_abs_builddir in 8442 .) ac_abs_top_srcdir=$ac_top_srcdir;; 8443 *) 8444 case $ac_top_srcdir in 8445 .) ac_abs_top_srcdir=$ac_abs_builddir;; 8446 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 8447 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 8448 esac;; 8449 esac 8450 8451 8452 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 8453 echo "$as_me: executing $ac_dest commands" >&6;} 8454 case $ac_dest in 8455 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 8456 esac 8457 done 8458 _ACEOF 8459 8460 cat >>$CONFIG_STATUS <<\_ACEOF 8461 8462 { (exit 0); exit 0; } 8463 _ACEOF 3377 8464 chmod +x $CONFIG_STATUS 3378 rm -fr confdefs* $ac_clean_files 3379 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3380 8465 ac_clean_files=$ac_clean_files_save 8466 8467 8468 # configure is writing to config.log, and then calls config.status. 8469 # config.status does its own redirection, appending to config.log. 8470 # Unfortunately, on DOS this fails, as config.log is still kept open 8471 # by configure, so config.status won't be able to write to it; its 8472 # output is simply discarded. So we exec the FD to /dev/null, 8473 # effectively closing config.log, so it can be properly (re)opened and 8474 # appended to by config.status. When coming back to configure, we 8475 # need to make the FD available again. 8476 if test "$no_create" != yes; then 8477 ac_cs_success=: 8478 ac_config_status_args= 8479 test "$silent" = yes && 8480 ac_config_status_args="$ac_config_status_args --quiet" 8481 exec 5>/dev/null 8482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8483 exec 5>>config.log 8484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8485 # would make configure fail if this is the last instruction. 8486 $ac_cs_success || { (exit 1); exit 1; } 8487 fi 8488 -
trunk/gsdl/src/mgpp/configure.in
r859 r10850 75 75 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 76 76 AC_MSG_RESULT(yes) 77 LIBOBJS="$LIBOBJS gmalloc.o"77 AC_LIBOBJ(gmalloc) 78 78 AC_DEFINE(HAVE_VALLOC) 79 79 else … … 86 86 fp_WITH_GNU_READLINE 87 87 88 AC_C_BIGENDIAN 89 88 90 # --------------------------------------------------------------------------- 89 91 if test "$ac_cv_func_alloca" = 'no'; then 90 92 dnl support functions for alloca.c 91 LIBOBJS="$LIBOBJS xmalloc.o error.o" 93 AC_LIBOBJ(xmalloc) 94 AC_LIBOBJ(error) 92 95 fi 93 96
Note:
See TracChangeset
for help on using the changeset viewer.