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