configure.in (158453B)
1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for FULL-PACKAGE-NAME VERSION. 4 # 5 # Report bugs to <BUG-REPORT-ADDRESS>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204 else 205 as_have_required=no 206 fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209 else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227 fi 228 fi 229 done;; 230 esac 231 as_found=false 232 done 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236 fi; } 237 IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS 270 $0: about your system, including any error possibly output 271 $0: before this message. Then install a modern shell, or 272 $0: manually run the script under such a shell if you do 273 $0: have one." 274 fi 275 exit 1 276 fi 277 fi 278 fi 279 SHELL=${CONFIG_SHELL-/bin/sh} 280 export SHELL 281 # Unset more variables known to interfere with behavior of common tools. 282 CLICOLOR_FORCE= GREP_OPTIONS= 283 unset CLICOLOR_FORCE GREP_OPTIONS 284 285 ## --------------------- ## 286 ## M4sh Shell Functions. ## 287 ## --------------------- ## 288 # as_fn_unset VAR 289 # --------------- 290 # Portably unset VAR. 291 as_fn_unset () 292 { 293 { eval $1=; unset $1;} 294 } 295 as_unset=as_fn_unset 296 297 # as_fn_set_status STATUS 298 # ----------------------- 299 # Set $? to STATUS, without forking. 300 as_fn_set_status () 301 { 302 return $1 303 } # as_fn_set_status 304 305 # as_fn_exit STATUS 306 # ----------------- 307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308 as_fn_exit () 309 { 310 set +e 311 as_fn_set_status $1 312 exit $1 313 } # as_fn_exit 314 315 # as_fn_mkdir_p 316 # ------------- 317 # Create "$as_dir" as a directory, including parents if necessary. 318 as_fn_mkdir_p () 319 { 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337 $as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361 } # as_fn_mkdir_p 362 363 # as_fn_executable_p FILE 364 # ----------------------- 365 # Test if FILE is an executable regular file. 366 as_fn_executable_p () 367 { 368 test -f "$1" && test -x "$1" 369 } # as_fn_executable_p 370 # as_fn_append VAR VALUE 371 # ---------------------- 372 # Append the text in VALUE to the end of the definition contained in VAR. Take 373 # advantage of any shell optimizations that allow amortized linear growth over 374 # repeated appends, instead of the typical quadratic growth present in naive 375 # implementations. 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381 else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386 fi # as_fn_append 387 388 # as_fn_arith ARG... 389 # ------------------ 390 # Perform arithmetic evaluation on the ARGs, and store the result in the 391 # global $as_val. Take advantage of shells that can avoid forks. The arguments 392 # must be portable across $(()) and expr. 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398 else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403 fi # as_fn_arith 404 405 406 # as_fn_error STATUS ERROR [LINENO LOG_FD] 407 # ---------------------------------------- 408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410 # script with STATUS, using 1 if that was 0. 411 as_fn_error () 412 { 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420 } # as_fn_error 421 422 if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425 else 426 as_expr=false 427 fi 428 429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431 else 432 as_basename=false 433 fi 434 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437 else 438 as_dirname=false 439 fi 440 441 as_me=`$as_basename -- "$0" || 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445 $as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460 # Avoid depending upon Character Ranges. 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464 as_cr_digits='0123456789' 465 as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501 } 502 503 ECHO_C= ECHO_N= ECHO_T= 504 case `echo -n x` in #((((( 505 -n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512 *) 513 ECHO_N='-n';; 514 esac 515 516 rm -f conf$$ conf$$.exe conf$$.file 517 if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519 else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522 fi 523 if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537 else 538 as_ln_s='cp -pR' 539 fi 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541 rmdir conf$$.dir 2>/dev/null 542 543 if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545 else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548 fi 549 550 as_test_x='test -x' 551 as_executable_p=as_fn_executable_p 552 553 # Sed expression to map a string onto a valid CPP name. 554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556 # Sed expression to map a string onto a valid variable name. 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560 test -n "$DJDIR" || exec 7<&0 </dev/null 561 exec 6>&1 562 563 # Name of the host. 564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565 # so uname gets run too. 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568 # 569 # Initializations. 570 # 571 ac_default_prefix=/usr/local 572 ac_clean_files= 573 ac_config_libobj_dir=. 574 LIBOBJS= 575 cross_compiling=no 576 subdirs= 577 MFLAGS= 578 MAKEFLAGS= 579 580 # Identity of this package. 581 PACKAGE_NAME='FULL-PACKAGE-NAME' 582 PACKAGE_TARNAME='full-package-name' 583 PACKAGE_VERSION='VERSION' 584 PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' 585 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' 586 PACKAGE_URL='' 587 588 ac_unique_file="lash_game_map.c" 589 # Factoring default headers for most tests. 590 ac_includes_default="\ 591 #include <stdio.h> 592 #ifdef HAVE_SYS_TYPES_H 593 # include <sys/types.h> 594 #endif 595 #ifdef HAVE_SYS_STAT_H 596 # include <sys/stat.h> 597 #endif 598 #ifdef STDC_HEADERS 599 # include <stdlib.h> 600 # include <stddef.h> 601 #else 602 # ifdef HAVE_STDLIB_H 603 # include <stdlib.h> 604 # endif 605 #endif 606 #ifdef HAVE_STRING_H 607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608 # include <memory.h> 609 # endif 610 # include <string.h> 611 #endif 612 #ifdef HAVE_STRINGS_H 613 # include <strings.h> 614 #endif 615 #ifdef HAVE_INTTYPES_H 616 # include <inttypes.h> 617 #endif 618 #ifdef HAVE_STDINT_H 619 # include <stdint.h> 620 #endif 621 #ifdef HAVE_UNISTD_H 622 # include <unistd.h> 623 #endif" 624 625 ac_subst_vars='LTLIBOBJS 626 LIBOBJS 627 EGREP 628 GREP 629 CPP 630 ac_ct_CC 631 CFLAGS 632 CC 633 OBJEXT 634 EXEEXT 635 ac_ct_CXX 636 CPPFLAGS 637 LDFLAGS 638 CXXFLAGS 639 CXX 640 target_alias 641 host_alias 642 build_alias 643 LIBS 644 ECHO_T 645 ECHO_N 646 ECHO_C 647 DEFS 648 mandir 649 localedir 650 libdir 651 psdir 652 pdfdir 653 dvidir 654 htmldir 655 infodir 656 docdir 657 oldincludedir 658 includedir 659 localstatedir 660 sharedstatedir 661 sysconfdir 662 datadir 663 datarootdir 664 libexecdir 665 sbindir 666 bindir 667 program_transform_name 668 prefix 669 exec_prefix 670 PACKAGE_URL 671 PACKAGE_BUGREPORT 672 PACKAGE_STRING 673 PACKAGE_VERSION 674 PACKAGE_TARNAME 675 PACKAGE_NAME 676 PATH_SEPARATOR 677 SHELL' 678 ac_subst_files='' 679 ac_user_opts=' 680 enable_option_checking 681 ' 682 ac_precious_vars='build_alias 683 host_alias 684 target_alias 685 CXX 686 CXXFLAGS 687 LDFLAGS 688 LIBS 689 CPPFLAGS 690 CCC 691 CC 692 CFLAGS 693 CPP' 694 695 696 # Initialize some variables set by options. 697 ac_init_help= 698 ac_init_version=false 699 ac_unrecognized_opts= 700 ac_unrecognized_sep= 701 # The variables have the same names as the options, with 702 # dashes changed to underlines. 703 cache_file=/dev/null 704 exec_prefix=NONE 705 no_create= 706 no_recursion= 707 prefix=NONE 708 program_prefix=NONE 709 program_suffix=NONE 710 program_transform_name=s,x,x, 711 silent= 712 site= 713 srcdir= 714 verbose= 715 x_includes=NONE 716 x_libraries=NONE 717 718 # Installation directory options. 719 # These are left unexpanded so users can "make install exec_prefix=/foo" 720 # and all the variables that are supposed to be based on exec_prefix 721 # by default will actually change. 722 # Use braces instead of parens because sh, perl, etc. also accept them. 723 # (The list follows the same order as the GNU Coding Standards.) 724 bindir='${exec_prefix}/bin' 725 sbindir='${exec_prefix}/sbin' 726 libexecdir='${exec_prefix}/libexec' 727 datarootdir='${prefix}/share' 728 datadir='${datarootdir}' 729 sysconfdir='${prefix}/etc' 730 sharedstatedir='${prefix}/com' 731 localstatedir='${prefix}/var' 732 includedir='${prefix}/include' 733 oldincludedir='/usr/include' 734 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 735 infodir='${datarootdir}/info' 736 htmldir='${docdir}' 737 dvidir='${docdir}' 738 pdfdir='${docdir}' 739 psdir='${docdir}' 740 libdir='${exec_prefix}/lib' 741 localedir='${datarootdir}/locale' 742 mandir='${datarootdir}/man' 743 744 ac_prev= 745 ac_dashdash= 746 for ac_option 747 do 748 # If the previous option needs an argument, assign it. 749 if test -n "$ac_prev"; then 750 eval $ac_prev=\$ac_option 751 ac_prev= 752 continue 753 fi 754 755 case $ac_option in 756 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 757 *=) ac_optarg= ;; 758 *) ac_optarg=yes ;; 759 esac 760 761 # Accept the important Cygnus configure options, so we can diagnose typos. 762 763 case $ac_dashdash$ac_option in 764 --) 765 ac_dashdash=yes ;; 766 767 -bindir | --bindir | --bindi | --bind | --bin | --bi) 768 ac_prev=bindir ;; 769 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 770 bindir=$ac_optarg ;; 771 772 -build | --build | --buil | --bui | --bu) 773 ac_prev=build_alias ;; 774 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 775 build_alias=$ac_optarg ;; 776 777 -cache-file | --cache-file | --cache-fil | --cache-fi \ 778 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 779 ac_prev=cache_file ;; 780 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 781 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 782 cache_file=$ac_optarg ;; 783 784 --config-cache | -C) 785 cache_file=config.cache ;; 786 787 -datadir | --datadir | --datadi | --datad) 788 ac_prev=datadir ;; 789 -datadir=* | --datadir=* | --datadi=* | --datad=*) 790 datadir=$ac_optarg ;; 791 792 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 793 | --dataroo | --dataro | --datar) 794 ac_prev=datarootdir ;; 795 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 796 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 797 datarootdir=$ac_optarg ;; 798 799 -disable-* | --disable-*) 800 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 801 # Reject names that are not valid shell variable names. 802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 803 as_fn_error $? "invalid feature name: $ac_useropt" 804 ac_useropt_orig=$ac_useropt 805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 806 case $ac_user_opts in 807 *" 808 "enable_$ac_useropt" 809 "*) ;; 810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 811 ac_unrecognized_sep=', ';; 812 esac 813 eval enable_$ac_useropt=no ;; 814 815 -docdir | --docdir | --docdi | --doc | --do) 816 ac_prev=docdir ;; 817 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 818 docdir=$ac_optarg ;; 819 820 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 821 ac_prev=dvidir ;; 822 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 823 dvidir=$ac_optarg ;; 824 825 -enable-* | --enable-*) 826 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 827 # Reject names that are not valid shell variable names. 828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 829 as_fn_error $? "invalid feature name: $ac_useropt" 830 ac_useropt_orig=$ac_useropt 831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 832 case $ac_user_opts in 833 *" 834 "enable_$ac_useropt" 835 "*) ;; 836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 837 ac_unrecognized_sep=', ';; 838 esac 839 eval enable_$ac_useropt=\$ac_optarg ;; 840 841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 843 | --exec | --exe | --ex) 844 ac_prev=exec_prefix ;; 845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 847 | --exec=* | --exe=* | --ex=*) 848 exec_prefix=$ac_optarg ;; 849 850 -gas | --gas | --ga | --g) 851 # Obsolete; use --with-gas. 852 with_gas=yes ;; 853 854 -help | --help | --hel | --he | -h) 855 ac_init_help=long ;; 856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 857 ac_init_help=recursive ;; 858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 859 ac_init_help=short ;; 860 861 -host | --host | --hos | --ho) 862 ac_prev=host_alias ;; 863 -host=* | --host=* | --hos=* | --ho=*) 864 host_alias=$ac_optarg ;; 865 866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 867 ac_prev=htmldir ;; 868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 869 | --ht=*) 870 htmldir=$ac_optarg ;; 871 872 -includedir | --includedir | --includedi | --included | --include \ 873 | --includ | --inclu | --incl | --inc) 874 ac_prev=includedir ;; 875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 876 | --includ=* | --inclu=* | --incl=* | --inc=*) 877 includedir=$ac_optarg ;; 878 879 -infodir | --infodir | --infodi | --infod | --info | --inf) 880 ac_prev=infodir ;; 881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 882 infodir=$ac_optarg ;; 883 884 -libdir | --libdir | --libdi | --libd) 885 ac_prev=libdir ;; 886 -libdir=* | --libdir=* | --libdi=* | --libd=*) 887 libdir=$ac_optarg ;; 888 889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 890 | --libexe | --libex | --libe) 891 ac_prev=libexecdir ;; 892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 893 | --libexe=* | --libex=* | --libe=*) 894 libexecdir=$ac_optarg ;; 895 896 -localedir | --localedir | --localedi | --localed | --locale) 897 ac_prev=localedir ;; 898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 899 localedir=$ac_optarg ;; 900 901 -localstatedir | --localstatedir | --localstatedi | --localstated \ 902 | --localstate | --localstat | --localsta | --localst | --locals) 903 ac_prev=localstatedir ;; 904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 906 localstatedir=$ac_optarg ;; 907 908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 909 ac_prev=mandir ;; 910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 911 mandir=$ac_optarg ;; 912 913 -nfp | --nfp | --nf) 914 # Obsolete; use --without-fp. 915 with_fp=no ;; 916 917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 918 | --no-cr | --no-c | -n) 919 no_create=yes ;; 920 921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 923 no_recursion=yes ;; 924 925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 927 | --oldin | --oldi | --old | --ol | --o) 928 ac_prev=oldincludedir ;; 929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 932 oldincludedir=$ac_optarg ;; 933 934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 935 ac_prev=prefix ;; 936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 937 prefix=$ac_optarg ;; 938 939 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 940 | --program-pre | --program-pr | --program-p) 941 ac_prev=program_prefix ;; 942 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 944 program_prefix=$ac_optarg ;; 945 946 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 947 | --program-suf | --program-su | --program-s) 948 ac_prev=program_suffix ;; 949 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 951 program_suffix=$ac_optarg ;; 952 953 -program-transform-name | --program-transform-name \ 954 | --program-transform-nam | --program-transform-na \ 955 | --program-transform-n | --program-transform- \ 956 | --program-transform | --program-transfor \ 957 | --program-transfo | --program-transf \ 958 | --program-trans | --program-tran \ 959 | --progr-tra | --program-tr | --program-t) 960 ac_prev=program_transform_name ;; 961 -program-transform-name=* | --program-transform-name=* \ 962 | --program-transform-nam=* | --program-transform-na=* \ 963 | --program-transform-n=* | --program-transform-=* \ 964 | --program-transform=* | --program-transfor=* \ 965 | --program-transfo=* | --program-transf=* \ 966 | --program-trans=* | --program-tran=* \ 967 | --progr-tra=* | --program-tr=* | --program-t=*) 968 program_transform_name=$ac_optarg ;; 969 970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 971 ac_prev=pdfdir ;; 972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 973 pdfdir=$ac_optarg ;; 974 975 -psdir | --psdir | --psdi | --psd | --ps) 976 ac_prev=psdir ;; 977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 978 psdir=$ac_optarg ;; 979 980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 981 | -silent | --silent | --silen | --sile | --sil) 982 silent=yes ;; 983 984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 985 ac_prev=sbindir ;; 986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 987 | --sbi=* | --sb=*) 988 sbindir=$ac_optarg ;; 989 990 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 992 | --sharedst | --shareds | --shared | --share | --shar \ 993 | --sha | --sh) 994 ac_prev=sharedstatedir ;; 995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 998 | --sha=* | --sh=*) 999 sharedstatedir=$ac_optarg ;; 1000 1001 -site | --site | --sit) 1002 ac_prev=site ;; 1003 -site=* | --site=* | --sit=*) 1004 site=$ac_optarg ;; 1005 1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1007 ac_prev=srcdir ;; 1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1009 srcdir=$ac_optarg ;; 1010 1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1012 | --syscon | --sysco | --sysc | --sys | --sy) 1013 ac_prev=sysconfdir ;; 1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1016 sysconfdir=$ac_optarg ;; 1017 1018 -target | --target | --targe | --targ | --tar | --ta | --t) 1019 ac_prev=target_alias ;; 1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1021 target_alias=$ac_optarg ;; 1022 1023 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1024 verbose=yes ;; 1025 1026 -version | --version | --versio | --versi | --vers | -V) 1027 ac_init_version=: ;; 1028 1029 -with-* | --with-*) 1030 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1031 # Reject names that are not valid shell variable names. 1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1033 as_fn_error $? "invalid package name: $ac_useropt" 1034 ac_useropt_orig=$ac_useropt 1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1036 case $ac_user_opts in 1037 *" 1038 "with_$ac_useropt" 1039 "*) ;; 1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1041 ac_unrecognized_sep=', ';; 1042 esac 1043 eval with_$ac_useropt=\$ac_optarg ;; 1044 1045 -without-* | --without-*) 1046 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1047 # Reject names that are not valid shell variable names. 1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1049 as_fn_error $? "invalid package name: $ac_useropt" 1050 ac_useropt_orig=$ac_useropt 1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1052 case $ac_user_opts in 1053 *" 1054 "with_$ac_useropt" 1055 "*) ;; 1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1057 ac_unrecognized_sep=', ';; 1058 esac 1059 eval with_$ac_useropt=no ;; 1060 1061 --x) 1062 # Obsolete; use --with-x. 1063 with_x=yes ;; 1064 1065 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1066 | --x-incl | --x-inc | --x-in | --x-i) 1067 ac_prev=x_includes ;; 1068 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1069 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1070 x_includes=$ac_optarg ;; 1071 1072 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1073 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1074 ac_prev=x_libraries ;; 1075 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1076 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1077 x_libraries=$ac_optarg ;; 1078 1079 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1080 Try \`$0 --help' for more information" 1081 ;; 1082 1083 *=*) 1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1085 # Reject names that are not valid shell variable names. 1086 case $ac_envvar in #( 1087 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1088 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1089 esac 1090 eval $ac_envvar=\$ac_optarg 1091 export $ac_envvar ;; 1092 1093 *) 1094 # FIXME: should be removed in autoconf 3.0. 1095 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1096 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1097 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1098 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1099 ;; 1100 1101 esac 1102 done 1103 1104 if test -n "$ac_prev"; then 1105 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1106 as_fn_error $? "missing argument to $ac_option" 1107 fi 1108 1109 if test -n "$ac_unrecognized_opts"; then 1110 case $enable_option_checking in 1111 no) ;; 1112 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1113 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1114 esac 1115 fi 1116 1117 # Check all directory arguments for consistency. 1118 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1119 datadir sysconfdir sharedstatedir localstatedir includedir \ 1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1121 libdir localedir mandir 1122 do 1123 eval ac_val=\$$ac_var 1124 # Remove trailing slashes. 1125 case $ac_val in 1126 */ ) 1127 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1128 eval $ac_var=\$ac_val;; 1129 esac 1130 # Be sure to have absolute directory names. 1131 case $ac_val in 1132 [\\/$]* | ?:[\\/]* ) continue;; 1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1134 esac 1135 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1136 done 1137 1138 # There might be people who depend on the old broken behavior: `$host' 1139 # used to hold the argument of --host etc. 1140 # FIXME: To remove some day. 1141 build=$build_alias 1142 host=$host_alias 1143 target=$target_alias 1144 1145 # FIXME: To remove some day. 1146 if test "x$host_alias" != x; then 1147 if test "x$build_alias" = x; then 1148 cross_compiling=maybe 1149 elif test "x$build_alias" != "x$host_alias"; then 1150 cross_compiling=yes 1151 fi 1152 fi 1153 1154 ac_tool_prefix= 1155 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1156 1157 test "$silent" = yes && exec 6>/dev/null 1158 1159 1160 ac_pwd=`pwd` && test -n "$ac_pwd" && 1161 ac_ls_di=`ls -di .` && 1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1163 as_fn_error $? "working directory cannot be determined" 1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1165 as_fn_error $? "pwd does not report name of working directory" 1166 1167 1168 # Find the source files, if location was not specified. 1169 if test -z "$srcdir"; then 1170 ac_srcdir_defaulted=yes 1171 # Try the directory containing this script, then the parent directory. 1172 ac_confdir=`$as_dirname -- "$as_myself" || 1173 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1174 X"$as_myself" : 'X\(//\)[^/]' \| \ 1175 X"$as_myself" : 'X\(//\)$' \| \ 1176 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1177 $as_echo X"$as_myself" | 1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1179 s//\1/ 1180 q 1181 } 1182 /^X\(\/\/\)[^/].*/{ 1183 s//\1/ 1184 q 1185 } 1186 /^X\(\/\/\)$/{ 1187 s//\1/ 1188 q 1189 } 1190 /^X\(\/\).*/{ 1191 s//\1/ 1192 q 1193 } 1194 s/.*/./; q'` 1195 srcdir=$ac_confdir 1196 if test ! -r "$srcdir/$ac_unique_file"; then 1197 srcdir=.. 1198 fi 1199 else 1200 ac_srcdir_defaulted=no 1201 fi 1202 if test ! -r "$srcdir/$ac_unique_file"; then 1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1204 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1205 fi 1206 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1207 ac_abs_confdir=`( 1208 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1209 pwd)` 1210 # When building in place, set srcdir=. 1211 if test "$ac_abs_confdir" = "$ac_pwd"; then 1212 srcdir=. 1213 fi 1214 # Remove unnecessary trailing slashes from srcdir. 1215 # Double slashes in file names in object file debugging info 1216 # mess up M-x gdb in Emacs. 1217 case $srcdir in 1218 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1219 esac 1220 for ac_var in $ac_precious_vars; do 1221 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1222 eval ac_env_${ac_var}_value=\$${ac_var} 1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1224 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1225 done 1226 1227 # 1228 # Report the --help message. 1229 # 1230 if test "$ac_init_help" = "long"; then 1231 # Omit some internal or obsolete options to make the list less imposing. 1232 # This message is too long to be a string in the A/UX 3.1 sh. 1233 cat <<_ACEOF 1234 \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems. 1235 1236 Usage: $0 [OPTION]... [VAR=VALUE]... 1237 1238 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1239 VAR=VALUE. See below for descriptions of some of the useful variables. 1240 1241 Defaults for the options are specified in brackets. 1242 1243 Configuration: 1244 -h, --help display this help and exit 1245 --help=short display options specific to this package 1246 --help=recursive display the short help of all the included packages 1247 -V, --version display version information and exit 1248 -q, --quiet, --silent do not print \`checking ...' messages 1249 --cache-file=FILE cache test results in FILE [disabled] 1250 -C, --config-cache alias for \`--cache-file=config.cache' 1251 -n, --no-create do not create output files 1252 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1253 1254 Installation directories: 1255 --prefix=PREFIX install architecture-independent files in PREFIX 1256 [$ac_default_prefix] 1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1258 [PREFIX] 1259 1260 By default, \`make install' will install all the files in 1261 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1262 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1263 for instance \`--prefix=\$HOME'. 1264 1265 For better control, use the options below. 1266 1267 Fine tuning of the installation directories: 1268 --bindir=DIR user executables [EPREFIX/bin] 1269 --sbindir=DIR system admin executables [EPREFIX/sbin] 1270 --libexecdir=DIR program executables [EPREFIX/libexec] 1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1274 --libdir=DIR object code libraries [EPREFIX/lib] 1275 --includedir=DIR C header files [PREFIX/include] 1276 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1279 --infodir=DIR info documentation [DATAROOTDIR/info] 1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1281 --mandir=DIR man documentation [DATAROOTDIR/man] 1282 --docdir=DIR documentation root 1283 [DATAROOTDIR/doc/full-package-name] 1284 --htmldir=DIR html documentation [DOCDIR] 1285 --dvidir=DIR dvi documentation [DOCDIR] 1286 --pdfdir=DIR pdf documentation [DOCDIR] 1287 --psdir=DIR ps documentation [DOCDIR] 1288 _ACEOF 1289 1290 cat <<\_ACEOF 1291 _ACEOF 1292 fi 1293 1294 if test -n "$ac_init_help"; then 1295 case $ac_init_help in 1296 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";; 1297 esac 1298 cat <<\_ACEOF 1299 1300 Some influential environment variables: 1301 CXX C++ compiler command 1302 CXXFLAGS C++ compiler flags 1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1304 nonstandard directory <lib dir> 1305 LIBS libraries to pass to the linker, e.g. -l<library> 1306 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1307 you have headers in a nonstandard directory <include dir> 1308 CC C compiler command 1309 CFLAGS C compiler flags 1310 CPP C preprocessor 1311 1312 Use these variables to override the choices made by `configure' or to help 1313 it to find libraries and programs with nonstandard names/locations. 1314 1315 Report bugs to <BUG-REPORT-ADDRESS>. 1316 _ACEOF 1317 ac_status=$? 1318 fi 1319 1320 if test "$ac_init_help" = "recursive"; then 1321 # If there are subdirs, report their specific --help. 1322 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1323 test -d "$ac_dir" || 1324 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1325 continue 1326 ac_builddir=. 1327 1328 case "$ac_dir" in 1329 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1330 *) 1331 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1332 # A ".." for each directory in $ac_dir_suffix. 1333 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1334 case $ac_top_builddir_sub in 1335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1337 esac ;; 1338 esac 1339 ac_abs_top_builddir=$ac_pwd 1340 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1341 # for backward compatibility: 1342 ac_top_builddir=$ac_top_build_prefix 1343 1344 case $srcdir in 1345 .) # We are building in place. 1346 ac_srcdir=. 1347 ac_top_srcdir=$ac_top_builddir_sub 1348 ac_abs_top_srcdir=$ac_pwd ;; 1349 [\\/]* | ?:[\\/]* ) # Absolute name. 1350 ac_srcdir=$srcdir$ac_dir_suffix; 1351 ac_top_srcdir=$srcdir 1352 ac_abs_top_srcdir=$srcdir ;; 1353 *) # Relative name. 1354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1355 ac_top_srcdir=$ac_top_build_prefix$srcdir 1356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1357 esac 1358 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1359 1360 cd "$ac_dir" || { ac_status=$?; continue; } 1361 # Check for guested configure. 1362 if test -f "$ac_srcdir/configure.gnu"; then 1363 echo && 1364 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1365 elif test -f "$ac_srcdir/configure"; then 1366 echo && 1367 $SHELL "$ac_srcdir/configure" --help=recursive 1368 else 1369 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1370 fi || ac_status=$? 1371 cd "$ac_pwd" || { ac_status=$?; break; } 1372 done 1373 fi 1374 1375 test -n "$ac_init_help" && exit $ac_status 1376 if $ac_init_version; then 1377 cat <<\_ACEOF 1378 FULL-PACKAGE-NAME configure VERSION 1379 generated by GNU Autoconf 2.69 1380 1381 Copyright (C) 2012 Free Software Foundation, Inc. 1382 This configure script is free software; the Free Software Foundation 1383 gives unlimited permission to copy, distribute and modify it. 1384 _ACEOF 1385 exit 1386 fi 1387 1388 ## ------------------------ ## 1389 ## Autoconf initialization. ## 1390 ## ------------------------ ## 1391 1392 # ac_fn_cxx_try_compile LINENO 1393 # ---------------------------- 1394 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1395 ac_fn_cxx_try_compile () 1396 { 1397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1398 rm -f conftest.$ac_objext 1399 if { { ac_try="$ac_compile" 1400 case "(($ac_try" in 1401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1402 *) ac_try_echo=$ac_try;; 1403 esac 1404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1405 $as_echo "$ac_try_echo"; } >&5 1406 (eval "$ac_compile") 2>conftest.err 1407 ac_status=$? 1408 if test -s conftest.err; then 1409 grep -v '^ *+' conftest.err >conftest.er1 1410 cat conftest.er1 >&5 1411 mv -f conftest.er1 conftest.err 1412 fi 1413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1414 test $ac_status = 0; } && { 1415 test -z "$ac_cxx_werror_flag" || 1416 test ! -s conftest.err 1417 } && test -s conftest.$ac_objext; then : 1418 ac_retval=0 1419 else 1420 $as_echo "$as_me: failed program was:" >&5 1421 sed 's/^/| /' conftest.$ac_ext >&5 1422 1423 ac_retval=1 1424 fi 1425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1426 as_fn_set_status $ac_retval 1427 1428 } # ac_fn_cxx_try_compile 1429 1430 # ac_fn_c_try_compile LINENO 1431 # -------------------------- 1432 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1433 ac_fn_c_try_compile () 1434 { 1435 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1436 rm -f conftest.$ac_objext 1437 if { { ac_try="$ac_compile" 1438 case "(($ac_try" in 1439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1440 *) ac_try_echo=$ac_try;; 1441 esac 1442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1443 $as_echo "$ac_try_echo"; } >&5 1444 (eval "$ac_compile") 2>conftest.err 1445 ac_status=$? 1446 if test -s conftest.err; then 1447 grep -v '^ *+' conftest.err >conftest.er1 1448 cat conftest.er1 >&5 1449 mv -f conftest.er1 conftest.err 1450 fi 1451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1452 test $ac_status = 0; } && { 1453 test -z "$ac_c_werror_flag" || 1454 test ! -s conftest.err 1455 } && test -s conftest.$ac_objext; then : 1456 ac_retval=0 1457 else 1458 $as_echo "$as_me: failed program was:" >&5 1459 sed 's/^/| /' conftest.$ac_ext >&5 1460 1461 ac_retval=1 1462 fi 1463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1464 as_fn_set_status $ac_retval 1465 1466 } # ac_fn_c_try_compile 1467 1468 # ac_fn_c_try_link LINENO 1469 # ----------------------- 1470 # Try to link conftest.$ac_ext, and return whether this succeeded. 1471 ac_fn_c_try_link () 1472 { 1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1474 rm -f conftest.$ac_objext conftest$ac_exeext 1475 if { { ac_try="$ac_link" 1476 case "(($ac_try" in 1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1478 *) ac_try_echo=$ac_try;; 1479 esac 1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1481 $as_echo "$ac_try_echo"; } >&5 1482 (eval "$ac_link") 2>conftest.err 1483 ac_status=$? 1484 if test -s conftest.err; then 1485 grep -v '^ *+' conftest.err >conftest.er1 1486 cat conftest.er1 >&5 1487 mv -f conftest.er1 conftest.err 1488 fi 1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1490 test $ac_status = 0; } && { 1491 test -z "$ac_c_werror_flag" || 1492 test ! -s conftest.err 1493 } && test -s conftest$ac_exeext && { 1494 test "$cross_compiling" = yes || 1495 test -x conftest$ac_exeext 1496 }; then : 1497 ac_retval=0 1498 else 1499 $as_echo "$as_me: failed program was:" >&5 1500 sed 's/^/| /' conftest.$ac_ext >&5 1501 1502 ac_retval=1 1503 fi 1504 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1505 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1506 # interfere with the next link command; also delete a directory that is 1507 # left behind by Apple's compiler. We do this before executing the actions. 1508 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1510 as_fn_set_status $ac_retval 1511 1512 } # ac_fn_c_try_link 1513 1514 # ac_fn_c_try_cpp LINENO 1515 # ---------------------- 1516 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1517 ac_fn_c_try_cpp () 1518 { 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 if { { ac_try="$ac_cpp conftest.$ac_ext" 1521 case "(($ac_try" in 1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1523 *) ac_try_echo=$ac_try;; 1524 esac 1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1526 $as_echo "$ac_try_echo"; } >&5 1527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1528 ac_status=$? 1529 if test -s conftest.err; then 1530 grep -v '^ *+' conftest.err >conftest.er1 1531 cat conftest.er1 >&5 1532 mv -f conftest.er1 conftest.err 1533 fi 1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1535 test $ac_status = 0; } > conftest.i && { 1536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1537 test ! -s conftest.err 1538 }; then : 1539 ac_retval=0 1540 else 1541 $as_echo "$as_me: failed program was:" >&5 1542 sed 's/^/| /' conftest.$ac_ext >&5 1543 1544 ac_retval=1 1545 fi 1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1547 as_fn_set_status $ac_retval 1548 1549 } # ac_fn_c_try_cpp 1550 1551 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1552 # ------------------------------------------------------- 1553 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1554 # the include files in INCLUDES and setting the cache variable VAR 1555 # accordingly. 1556 ac_fn_c_check_header_mongrel () 1557 { 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 if eval \${$3+:} false; then : 1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1561 $as_echo_n "checking for $2... " >&6; } 1562 if eval \${$3+:} false; then : 1563 $as_echo_n "(cached) " >&6 1564 fi 1565 eval ac_res=\$$3 1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1567 $as_echo "$ac_res" >&6; } 1568 else 1569 # Is the header compilable? 1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1571 $as_echo_n "checking $2 usability... " >&6; } 1572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1573 /* end confdefs.h. */ 1574 $4 1575 #include <$2> 1576 _ACEOF 1577 if ac_fn_c_try_compile "$LINENO"; then : 1578 ac_header_compiler=yes 1579 else 1580 ac_header_compiler=no 1581 fi 1582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1584 $as_echo "$ac_header_compiler" >&6; } 1585 1586 # Is the header present? 1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1588 $as_echo_n "checking $2 presence... " >&6; } 1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1590 /* end confdefs.h. */ 1591 #include <$2> 1592 _ACEOF 1593 if ac_fn_c_try_cpp "$LINENO"; then : 1594 ac_header_preproc=yes 1595 else 1596 ac_header_preproc=no 1597 fi 1598 rm -f conftest.err conftest.i conftest.$ac_ext 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1600 $as_echo "$ac_header_preproc" >&6; } 1601 1602 # So? What about this header? 1603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1604 yes:no: ) 1605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1606 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1608 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1609 ;; 1610 no:yes:* ) 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1612 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1614 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1616 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1618 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1620 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1621 ( $as_echo "## --------------------------------- ## 1622 ## Report this to BUG-REPORT-ADDRESS ## 1623 ## --------------------------------- ##" 1624 ) | sed "s/^/$as_me: WARNING: /" >&2 1625 ;; 1626 esac 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1628 $as_echo_n "checking for $2... " >&6; } 1629 if eval \${$3+:} false; then : 1630 $as_echo_n "(cached) " >&6 1631 else 1632 eval "$3=\$ac_header_compiler" 1633 fi 1634 eval ac_res=\$$3 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1636 $as_echo "$ac_res" >&6; } 1637 fi 1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1639 1640 } # ac_fn_c_check_header_mongrel 1641 1642 # ac_fn_c_try_run LINENO 1643 # ---------------------- 1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1645 # that executables *can* be run. 1646 ac_fn_c_try_run () 1647 { 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 if { { ac_try="$ac_link" 1650 case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653 esac 1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655 $as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_link") 2>&5 1657 ac_status=$? 1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1660 { { case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663 esac 1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665 $as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_try") 2>&5 1667 ac_status=$? 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; }; }; then : 1670 ac_retval=0 1671 else 1672 $as_echo "$as_me: program exited with status $ac_status" >&5 1673 $as_echo "$as_me: failed program was:" >&5 1674 sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=$ac_status 1677 fi 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682 } # ac_fn_c_try_run 1683 1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1685 # ------------------------------------------------------- 1686 # Tests whether HEADER exists and can be compiled using the include files in 1687 # INCLUDES, setting the cache variable VAR accordingly. 1688 ac_fn_c_check_header_compile () 1689 { 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692 $as_echo_n "checking for $2... " >&6; } 1693 if eval \${$3+:} false; then : 1694 $as_echo_n "(cached) " >&6 1695 else 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697 /* end confdefs.h. */ 1698 $4 1699 #include <$2> 1700 _ACEOF 1701 if ac_fn_c_try_compile "$LINENO"; then : 1702 eval "$3=yes" 1703 else 1704 eval "$3=no" 1705 fi 1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1707 fi 1708 eval ac_res=\$$3 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1710 $as_echo "$ac_res" >&6; } 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 1713 } # ac_fn_c_check_header_compile 1714 1715 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1716 # ------------------------------------------- 1717 # Tests whether TYPE exists after having included INCLUDES, setting cache 1718 # variable VAR accordingly. 1719 ac_fn_c_check_type () 1720 { 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1723 $as_echo_n "checking for $2... " >&6; } 1724 if eval \${$3+:} false; then : 1725 $as_echo_n "(cached) " >&6 1726 else 1727 eval "$3=no" 1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1729 /* end confdefs.h. */ 1730 $4 1731 int 1732 main () 1733 { 1734 if (sizeof ($2)) 1735 return 0; 1736 ; 1737 return 0; 1738 } 1739 _ACEOF 1740 if ac_fn_c_try_compile "$LINENO"; then : 1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1742 /* end confdefs.h. */ 1743 $4 1744 int 1745 main () 1746 { 1747 if (sizeof (($2))) 1748 return 0; 1749 ; 1750 return 0; 1751 } 1752 _ACEOF 1753 if ac_fn_c_try_compile "$LINENO"; then : 1754 1755 else 1756 eval "$3=yes" 1757 fi 1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1759 fi 1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1761 fi 1762 eval ac_res=\$$3 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764 $as_echo "$ac_res" >&6; } 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 1767 } # ac_fn_c_check_type 1768 1769 # ac_fn_c_find_intX_t LINENO BITS VAR 1770 # ----------------------------------- 1771 # Finds a signed integer type with width BITS, setting cache variable VAR 1772 # accordingly. 1773 ac_fn_c_find_intX_t () 1774 { 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1777 $as_echo_n "checking for int$2_t... " >&6; } 1778 if eval \${$3+:} false; then : 1779 $as_echo_n "(cached) " >&6 1780 else 1781 eval "$3=no" 1782 # Order is important - never check a type that is potentially smaller 1783 # than half of the expected target width. 1784 for ac_type in int$2_t 'int' 'long int' \ 1785 'long long int' 'short int' 'signed char'; do 1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1787 /* end confdefs.h. */ 1788 $ac_includes_default 1789 enum { N = $2 / 2 - 1 }; 1790 int 1791 main () 1792 { 1793 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1794 test_array [0] = 0; 1795 return test_array [0]; 1796 1797 ; 1798 return 0; 1799 } 1800 _ACEOF 1801 if ac_fn_c_try_compile "$LINENO"; then : 1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803 /* end confdefs.h. */ 1804 $ac_includes_default 1805 enum { N = $2 / 2 - 1 }; 1806 int 1807 main () 1808 { 1809 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1810 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1811 test_array [0] = 0; 1812 return test_array [0]; 1813 1814 ; 1815 return 0; 1816 } 1817 _ACEOF 1818 if ac_fn_c_try_compile "$LINENO"; then : 1819 1820 else 1821 case $ac_type in #( 1822 int$2_t) : 1823 eval "$3=yes" ;; #( 1824 *) : 1825 eval "$3=\$ac_type" ;; 1826 esac 1827 fi 1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1829 fi 1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1831 if eval test \"x\$"$3"\" = x"no"; then : 1832 1833 else 1834 break 1835 fi 1836 done 1837 fi 1838 eval ac_res=\$$3 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1840 $as_echo "$ac_res" >&6; } 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 1843 } # ac_fn_c_find_intX_t 1844 1845 # ac_fn_c_find_uintX_t LINENO BITS VAR 1846 # ------------------------------------ 1847 # Finds an unsigned integer type with width BITS, setting cache variable VAR 1848 # accordingly. 1849 ac_fn_c_find_uintX_t () 1850 { 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1853 $as_echo_n "checking for uint$2_t... " >&6; } 1854 if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856 else 1857 eval "$3=no" 1858 # Order is important - never check a type that is potentially smaller 1859 # than half of the expected target width. 1860 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1861 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1863 /* end confdefs.h. */ 1864 $ac_includes_default 1865 int 1866 main () 1867 { 1868 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1869 test_array [0] = 0; 1870 return test_array [0]; 1871 1872 ; 1873 return 0; 1874 } 1875 _ACEOF 1876 if ac_fn_c_try_compile "$LINENO"; then : 1877 case $ac_type in #( 1878 uint$2_t) : 1879 eval "$3=yes" ;; #( 1880 *) : 1881 eval "$3=\$ac_type" ;; 1882 esac 1883 fi 1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1885 if eval test \"x\$"$3"\" = x"no"; then : 1886 1887 else 1888 break 1889 fi 1890 done 1891 fi 1892 eval ac_res=\$$3 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1894 $as_echo "$ac_res" >&6; } 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 1897 } # ac_fn_c_find_uintX_t 1898 1899 # ac_fn_c_check_func LINENO FUNC VAR 1900 # ---------------------------------- 1901 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1902 ac_fn_c_check_func () 1903 { 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906 $as_echo_n "checking for $2... " >&6; } 1907 if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909 else 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911 /* end confdefs.h. */ 1912 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1914 #define $2 innocuous_$2 1915 1916 /* System header to define __stub macros and hopefully few prototypes, 1917 which can conflict with char $2 (); below. 1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1919 <limits.h> exists even on freestanding compilers. */ 1920 1921 #ifdef __STDC__ 1922 # include <limits.h> 1923 #else 1924 # include <assert.h> 1925 #endif 1926 1927 #undef $2 1928 1929 /* Override any GCC internal prototype to avoid an error. 1930 Use char because int might match the return type of a GCC 1931 builtin and then its argument prototype would still apply. */ 1932 #ifdef __cplusplus 1933 extern "C" 1934 #endif 1935 char $2 (); 1936 /* The GNU C library defines this for functions which it implements 1937 to always fail with ENOSYS. Some functions are actually named 1938 something starting with __ and the normal name is an alias. */ 1939 #if defined __stub_$2 || defined __stub___$2 1940 choke me 1941 #endif 1942 1943 int 1944 main () 1945 { 1946 return $2 (); 1947 ; 1948 return 0; 1949 } 1950 _ACEOF 1951 if ac_fn_c_try_link "$LINENO"; then : 1952 eval "$3=yes" 1953 else 1954 eval "$3=no" 1955 fi 1956 rm -f core conftest.err conftest.$ac_objext \ 1957 conftest$ac_exeext conftest.$ac_ext 1958 fi 1959 eval ac_res=\$$3 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1961 $as_echo "$ac_res" >&6; } 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1963 1964 } # ac_fn_c_check_func 1965 cat >config.log <<_ACEOF 1966 This file contains any messages produced by compilers while 1967 running configure, to aid debugging if configure makes a mistake. 1968 1969 It was created by FULL-PACKAGE-NAME $as_me VERSION, which was 1970 generated by GNU Autoconf 2.69. Invocation command line was 1971 1972 $ $0 $@ 1973 1974 _ACEOF 1975 exec 5>>config.log 1976 { 1977 cat <<_ASUNAME 1978 ## --------- ## 1979 ## Platform. ## 1980 ## --------- ## 1981 1982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1983 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1984 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1985 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1986 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1987 1988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1990 1991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1994 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1998 1999 _ASUNAME 2000 2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2002 for as_dir in $PATH 2003 do 2004 IFS=$as_save_IFS 2005 test -z "$as_dir" && as_dir=. 2006 $as_echo "PATH: $as_dir" 2007 done 2008 IFS=$as_save_IFS 2009 2010 } >&5 2011 2012 cat >&5 <<_ACEOF 2013 2014 2015 ## ----------- ## 2016 ## Core tests. ## 2017 ## ----------- ## 2018 2019 _ACEOF 2020 2021 2022 # Keep a trace of the command line. 2023 # Strip out --no-create and --no-recursion so they do not pile up. 2024 # Strip out --silent because we don't want to record it for future runs. 2025 # Also quote any args containing shell meta-characters. 2026 # Make two passes to allow for proper duplicate-argument suppression. 2027 ac_configure_args= 2028 ac_configure_args0= 2029 ac_configure_args1= 2030 ac_must_keep_next=false 2031 for ac_pass in 1 2 2032 do 2033 for ac_arg 2034 do 2035 case $ac_arg in 2036 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2038 | -silent | --silent | --silen | --sile | --sil) 2039 continue ;; 2040 *\'*) 2041 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2042 esac 2043 case $ac_pass in 2044 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2045 2) 2046 as_fn_append ac_configure_args1 " '$ac_arg'" 2047 if test $ac_must_keep_next = true; then 2048 ac_must_keep_next=false # Got value, back to normal. 2049 else 2050 case $ac_arg in 2051 *=* | --config-cache | -C | -disable-* | --disable-* \ 2052 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2053 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2054 | -with-* | --with-* | -without-* | --without-* | --x) 2055 case "$ac_configure_args0 " in 2056 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2057 esac 2058 ;; 2059 -* ) ac_must_keep_next=true ;; 2060 esac 2061 fi 2062 as_fn_append ac_configure_args " '$ac_arg'" 2063 ;; 2064 esac 2065 done 2066 done 2067 { ac_configure_args0=; unset ac_configure_args0;} 2068 { ac_configure_args1=; unset ac_configure_args1;} 2069 2070 # When interrupted or exit'd, cleanup temporary files, and complete 2071 # config.log. We remove comments because anyway the quotes in there 2072 # would cause problems or look ugly. 2073 # WARNING: Use '\'' to represent an apostrophe within the trap. 2074 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2075 trap 'exit_status=$? 2076 # Save into config.log some information that might help in debugging. 2077 { 2078 echo 2079 2080 $as_echo "## ---------------- ## 2081 ## Cache variables. ## 2082 ## ---------------- ##" 2083 echo 2084 # The following way of writing the cache mishandles newlines in values, 2085 ( 2086 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2087 eval ac_val=\$$ac_var 2088 case $ac_val in #( 2089 *${as_nl}*) 2090 case $ac_var in #( 2091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2093 esac 2094 case $ac_var in #( 2095 _ | IFS | as_nl) ;; #( 2096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2097 *) { eval $ac_var=; unset $ac_var;} ;; 2098 esac ;; 2099 esac 2100 done 2101 (set) 2>&1 | 2102 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2103 *${as_nl}ac_space=\ *) 2104 sed -n \ 2105 "s/'\''/'\''\\\\'\'''\''/g; 2106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2107 ;; #( 2108 *) 2109 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2110 ;; 2111 esac | 2112 sort 2113 ) 2114 echo 2115 2116 $as_echo "## ----------------- ## 2117 ## Output variables. ## 2118 ## ----------------- ##" 2119 echo 2120 for ac_var in $ac_subst_vars 2121 do 2122 eval ac_val=\$$ac_var 2123 case $ac_val in 2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2125 esac 2126 $as_echo "$ac_var='\''$ac_val'\''" 2127 done | sort 2128 echo 2129 2130 if test -n "$ac_subst_files"; then 2131 $as_echo "## ------------------- ## 2132 ## File substitutions. ## 2133 ## ------------------- ##" 2134 echo 2135 for ac_var in $ac_subst_files 2136 do 2137 eval ac_val=\$$ac_var 2138 case $ac_val in 2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2140 esac 2141 $as_echo "$ac_var='\''$ac_val'\''" 2142 done | sort 2143 echo 2144 fi 2145 2146 if test -s confdefs.h; then 2147 $as_echo "## ----------- ## 2148 ## confdefs.h. ## 2149 ## ----------- ##" 2150 echo 2151 cat confdefs.h 2152 echo 2153 fi 2154 test "$ac_signal" != 0 && 2155 $as_echo "$as_me: caught signal $ac_signal" 2156 $as_echo "$as_me: exit $exit_status" 2157 } >&5 2158 rm -f core *.core core.conftest.* && 2159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2160 exit $exit_status 2161 ' 0 2162 for ac_signal in 1 2 13 15; do 2163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2164 done 2165 ac_signal=0 2166 2167 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2168 rm -f -r conftest* confdefs.h 2169 2170 $as_echo "/* confdefs.h */" > confdefs.h 2171 2172 # Predefined preprocessor variables. 2173 2174 cat >>confdefs.h <<_ACEOF 2175 #define PACKAGE_NAME "$PACKAGE_NAME" 2176 _ACEOF 2177 2178 cat >>confdefs.h <<_ACEOF 2179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2180 _ACEOF 2181 2182 cat >>confdefs.h <<_ACEOF 2183 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2184 _ACEOF 2185 2186 cat >>confdefs.h <<_ACEOF 2187 #define PACKAGE_STRING "$PACKAGE_STRING" 2188 _ACEOF 2189 2190 cat >>confdefs.h <<_ACEOF 2191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2192 _ACEOF 2193 2194 cat >>confdefs.h <<_ACEOF 2195 #define PACKAGE_URL "$PACKAGE_URL" 2196 _ACEOF 2197 2198 2199 # Let the site file select an alternate cache file if it wants to. 2200 # Prefer an explicitly selected file to automatically selected ones. 2201 ac_site_file1=NONE 2202 ac_site_file2=NONE 2203 if test -n "$CONFIG_SITE"; then 2204 # We do not want a PATH search for config.site. 2205 case $CONFIG_SITE in #(( 2206 -*) ac_site_file1=./$CONFIG_SITE;; 2207 */*) ac_site_file1=$CONFIG_SITE;; 2208 *) ac_site_file1=./$CONFIG_SITE;; 2209 esac 2210 elif test "x$prefix" != xNONE; then 2211 ac_site_file1=$prefix/share/config.site 2212 ac_site_file2=$prefix/etc/config.site 2213 else 2214 ac_site_file1=$ac_default_prefix/share/config.site 2215 ac_site_file2=$ac_default_prefix/etc/config.site 2216 fi 2217 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2218 do 2219 test "x$ac_site_file" = xNONE && continue 2220 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2222 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2223 sed 's/^/| /' "$ac_site_file" >&5 2224 . "$ac_site_file" \ 2225 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2227 as_fn_error $? "failed to load site script $ac_site_file 2228 See \`config.log' for more details" "$LINENO" 5; } 2229 fi 2230 done 2231 2232 if test -r "$cache_file"; then 2233 # Some versions of bash will fail to source /dev/null (special files 2234 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2235 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2237 $as_echo "$as_me: loading cache $cache_file" >&6;} 2238 case $cache_file in 2239 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2240 *) . "./$cache_file";; 2241 esac 2242 fi 2243 else 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2245 $as_echo "$as_me: creating cache $cache_file" >&6;} 2246 >$cache_file 2247 fi 2248 2249 # Check that the precious variables saved in the cache have kept the same 2250 # value. 2251 ac_cache_corrupted=false 2252 for ac_var in $ac_precious_vars; do 2253 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2254 eval ac_new_set=\$ac_env_${ac_var}_set 2255 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2256 eval ac_new_val=\$ac_env_${ac_var}_value 2257 case $ac_old_set,$ac_new_set in 2258 set,) 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2260 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2261 ac_cache_corrupted=: ;; 2262 ,set) 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2264 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2265 ac_cache_corrupted=: ;; 2266 ,);; 2267 *) 2268 if test "x$ac_old_val" != "x$ac_new_val"; then 2269 # differences in whitespace do not lead to failure. 2270 ac_old_val_w=`echo x $ac_old_val` 2271 ac_new_val_w=`echo x $ac_new_val` 2272 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2274 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2275 ac_cache_corrupted=: 2276 else 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2278 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2279 eval $ac_var=\$ac_old_val 2280 fi 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2282 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2284 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2285 fi;; 2286 esac 2287 # Pass precious variables to config.status. 2288 if test "$ac_new_set" = set; then 2289 case $ac_new_val in 2290 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2291 *) ac_arg=$ac_var=$ac_new_val ;; 2292 esac 2293 case " $ac_configure_args " in 2294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2295 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2296 esac 2297 fi 2298 done 2299 if $ac_cache_corrupted; then 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2303 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2304 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2305 fi 2306 ## -------------------- ## 2307 ## Main body of script. ## 2308 ## -------------------- ## 2309 2310 ac_ext=c 2311 ac_cpp='$CPP $CPPFLAGS' 2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2315 2316 2317 2318 ac_config_headers="$ac_config_headers config.h" 2319 2320 2321 # Checks for programs. 2322 ac_ext=cpp 2323 ac_cpp='$CXXCPP $CPPFLAGS' 2324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2327 if test -z "$CXX"; then 2328 if test -n "$CCC"; then 2329 CXX=$CCC 2330 else 2331 if test -n "$ac_tool_prefix"; then 2332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2333 do 2334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2337 $as_echo_n "checking for $ac_word... " >&6; } 2338 if ${ac_cv_prog_CXX+:} false; then : 2339 $as_echo_n "(cached) " >&6 2340 else 2341 if test -n "$CXX"; then 2342 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2343 else 2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2345 for as_dir in $PATH 2346 do 2347 IFS=$as_save_IFS 2348 test -z "$as_dir" && as_dir=. 2349 for ac_exec_ext in '' $ac_executable_extensions; do 2350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2353 break 2 2354 fi 2355 done 2356 done 2357 IFS=$as_save_IFS 2358 2359 fi 2360 fi 2361 CXX=$ac_cv_prog_CXX 2362 if test -n "$CXX"; then 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2364 $as_echo "$CXX" >&6; } 2365 else 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2367 $as_echo "no" >&6; } 2368 fi 2369 2370 2371 test -n "$CXX" && break 2372 done 2373 fi 2374 if test -z "$CXX"; then 2375 ac_ct_CXX=$CXX 2376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2377 do 2378 # Extract the first word of "$ac_prog", so it can be a program name with args. 2379 set dummy $ac_prog; ac_word=$2 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2381 $as_echo_n "checking for $ac_word... " >&6; } 2382 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 2383 $as_echo_n "(cached) " >&6 2384 else 2385 if test -n "$ac_ct_CXX"; then 2386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2387 else 2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2389 for as_dir in $PATH 2390 do 2391 IFS=$as_save_IFS 2392 test -z "$as_dir" && as_dir=. 2393 for ac_exec_ext in '' $ac_executable_extensions; do 2394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2395 ac_cv_prog_ac_ct_CXX="$ac_prog" 2396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2397 break 2 2398 fi 2399 done 2400 done 2401 IFS=$as_save_IFS 2402 2403 fi 2404 fi 2405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2406 if test -n "$ac_ct_CXX"; then 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2408 $as_echo "$ac_ct_CXX" >&6; } 2409 else 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2411 $as_echo "no" >&6; } 2412 fi 2413 2414 2415 test -n "$ac_ct_CXX" && break 2416 done 2417 2418 if test "x$ac_ct_CXX" = x; then 2419 CXX="g++" 2420 else 2421 case $cross_compiling:$ac_tool_warned in 2422 yes:) 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2425 ac_tool_warned=yes ;; 2426 esac 2427 CXX=$ac_ct_CXX 2428 fi 2429 fi 2430 2431 fi 2432 fi 2433 # Provide some information about the compiler. 2434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 2435 set X $ac_compile 2436 ac_compiler=$2 2437 for ac_option in --version -v -V -qversion; do 2438 { { ac_try="$ac_compiler $ac_option >&5" 2439 case "(($ac_try" in 2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2441 *) ac_try_echo=$ac_try;; 2442 esac 2443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2444 $as_echo "$ac_try_echo"; } >&5 2445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2446 ac_status=$? 2447 if test -s conftest.err; then 2448 sed '10a\ 2449 ... rest of stderr output deleted ... 2450 10q' conftest.err >conftest.er1 2451 cat conftest.er1 >&5 2452 fi 2453 rm -f conftest.er1 conftest.err 2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2455 test $ac_status = 0; } 2456 done 2457 2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2459 /* end confdefs.h. */ 2460 2461 int 2462 main () 2463 { 2464 2465 ; 2466 return 0; 2467 } 2468 _ACEOF 2469 ac_clean_files_save=$ac_clean_files 2470 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2471 # Try to create an executable without -o first, disregard a.out. 2472 # It will help us diagnose broken compilers, and finding out an intuition 2473 # of exeext. 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 2475 $as_echo_n "checking whether the C++ compiler works... " >&6; } 2476 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2477 2478 # The possible output files: 2479 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2480 2481 ac_rmfiles= 2482 for ac_file in $ac_files 2483 do 2484 case $ac_file in 2485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2486 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2487 esac 2488 done 2489 rm -f $ac_rmfiles 2490 2491 if { { ac_try="$ac_link_default" 2492 case "(($ac_try" in 2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2494 *) ac_try_echo=$ac_try;; 2495 esac 2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2497 $as_echo "$ac_try_echo"; } >&5 2498 (eval "$ac_link_default") 2>&5 2499 ac_status=$? 2500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2501 test $ac_status = 0; }; then : 2502 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2503 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2504 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2505 # so that the user can short-circuit this test for compilers unknown to 2506 # Autoconf. 2507 for ac_file in $ac_files '' 2508 do 2509 test -f "$ac_file" || continue 2510 case $ac_file in 2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2512 ;; 2513 [ab].out ) 2514 # We found the default executable, but exeext='' is most 2515 # certainly right. 2516 break;; 2517 *.* ) 2518 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2519 then :; else 2520 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2521 fi 2522 # We set ac_cv_exeext here because the later test for it is not 2523 # safe: cross compilers may not add the suffix if given an `-o' 2524 # argument, so we may need to know it at that point already. 2525 # Even if this section looks crufty: it has the advantage of 2526 # actually working. 2527 break;; 2528 * ) 2529 break;; 2530 esac 2531 done 2532 test "$ac_cv_exeext" = no && ac_cv_exeext= 2533 2534 else 2535 ac_file='' 2536 fi 2537 if test -z "$ac_file"; then : 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2539 $as_echo "no" >&6; } 2540 $as_echo "$as_me: failed program was:" >&5 2541 sed 's/^/| /' conftest.$ac_ext >&5 2542 2543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2545 as_fn_error 77 "C++ compiler cannot create executables 2546 See \`config.log' for more details" "$LINENO" 5; } 2547 else 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2549 $as_echo "yes" >&6; } 2550 fi 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 2552 $as_echo_n "checking for C++ compiler default output file name... " >&6; } 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2554 $as_echo "$ac_file" >&6; } 2555 ac_exeext=$ac_cv_exeext 2556 2557 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2558 ac_clean_files=$ac_clean_files_save 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2560 $as_echo_n "checking for suffix of executables... " >&6; } 2561 if { { ac_try="$ac_link" 2562 case "(($ac_try" in 2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2564 *) ac_try_echo=$ac_try;; 2565 esac 2566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2567 $as_echo "$ac_try_echo"; } >&5 2568 (eval "$ac_link") 2>&5 2569 ac_status=$? 2570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2571 test $ac_status = 0; }; then : 2572 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2573 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2574 # work properly (i.e., refer to `conftest.exe'), while it won't with 2575 # `rm'. 2576 for ac_file in conftest.exe conftest conftest.*; do 2577 test -f "$ac_file" || continue 2578 case $ac_file in 2579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2580 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2581 break;; 2582 * ) break;; 2583 esac 2584 done 2585 else 2586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2588 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2589 See \`config.log' for more details" "$LINENO" 5; } 2590 fi 2591 rm -f conftest conftest$ac_cv_exeext 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2593 $as_echo "$ac_cv_exeext" >&6; } 2594 2595 rm -f conftest.$ac_ext 2596 EXEEXT=$ac_cv_exeext 2597 ac_exeext=$EXEEXT 2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2599 /* end confdefs.h. */ 2600 #include <stdio.h> 2601 int 2602 main () 2603 { 2604 FILE *f = fopen ("conftest.out", "w"); 2605 return ferror (f) || fclose (f) != 0; 2606 2607 ; 2608 return 0; 2609 } 2610 _ACEOF 2611 ac_clean_files="$ac_clean_files conftest.out" 2612 # Check that the compiler produces executables we can run. If not, either 2613 # the compiler is broken, or we cross compile. 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2615 $as_echo_n "checking whether we are cross compiling... " >&6; } 2616 if test "$cross_compiling" != yes; then 2617 { { ac_try="$ac_link" 2618 case "(($ac_try" in 2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2620 *) ac_try_echo=$ac_try;; 2621 esac 2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2623 $as_echo "$ac_try_echo"; } >&5 2624 (eval "$ac_link") 2>&5 2625 ac_status=$? 2626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2627 test $ac_status = 0; } 2628 if { ac_try='./conftest$ac_cv_exeext' 2629 { { case "(($ac_try" in 2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2631 *) ac_try_echo=$ac_try;; 2632 esac 2633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2634 $as_echo "$ac_try_echo"; } >&5 2635 (eval "$ac_try") 2>&5 2636 ac_status=$? 2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2638 test $ac_status = 0; }; }; then 2639 cross_compiling=no 2640 else 2641 if test "$cross_compiling" = maybe; then 2642 cross_compiling=yes 2643 else 2644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2646 as_fn_error $? "cannot run C++ compiled programs. 2647 If you meant to cross compile, use \`--host'. 2648 See \`config.log' for more details" "$LINENO" 5; } 2649 fi 2650 fi 2651 fi 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2653 $as_echo "$cross_compiling" >&6; } 2654 2655 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2656 ac_clean_files=$ac_clean_files_save 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2658 $as_echo_n "checking for suffix of object files... " >&6; } 2659 if ${ac_cv_objext+:} false; then : 2660 $as_echo_n "(cached) " >&6 2661 else 2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2663 /* end confdefs.h. */ 2664 2665 int 2666 main () 2667 { 2668 2669 ; 2670 return 0; 2671 } 2672 _ACEOF 2673 rm -f conftest.o conftest.obj 2674 if { { ac_try="$ac_compile" 2675 case "(($ac_try" in 2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2677 *) ac_try_echo=$ac_try;; 2678 esac 2679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2680 $as_echo "$ac_try_echo"; } >&5 2681 (eval "$ac_compile") 2>&5 2682 ac_status=$? 2683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2684 test $ac_status = 0; }; then : 2685 for ac_file in conftest.o conftest.obj conftest.*; do 2686 test -f "$ac_file" || continue; 2687 case $ac_file in 2688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2689 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2690 break;; 2691 esac 2692 done 2693 else 2694 $as_echo "$as_me: failed program was:" >&5 2695 sed 's/^/| /' conftest.$ac_ext >&5 2696 2697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2699 as_fn_error $? "cannot compute suffix of object files: cannot compile 2700 See \`config.log' for more details" "$LINENO" 5; } 2701 fi 2702 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2703 fi 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2705 $as_echo "$ac_cv_objext" >&6; } 2706 OBJEXT=$ac_cv_objext 2707 ac_objext=$OBJEXT 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 2709 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 2710 if ${ac_cv_cxx_compiler_gnu+:} false; then : 2711 $as_echo_n "(cached) " >&6 2712 else 2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2714 /* end confdefs.h. */ 2715 2716 int 2717 main () 2718 { 2719 #ifndef __GNUC__ 2720 choke me 2721 #endif 2722 2723 ; 2724 return 0; 2725 } 2726 _ACEOF 2727 if ac_fn_cxx_try_compile "$LINENO"; then : 2728 ac_compiler_gnu=yes 2729 else 2730 ac_compiler_gnu=no 2731 fi 2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2733 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2734 2735 fi 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 2737 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 2738 if test $ac_compiler_gnu = yes; then 2739 GXX=yes 2740 else 2741 GXX= 2742 fi 2743 ac_test_CXXFLAGS=${CXXFLAGS+set} 2744 ac_save_CXXFLAGS=$CXXFLAGS 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 2746 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 2747 if ${ac_cv_prog_cxx_g+:} false; then : 2748 $as_echo_n "(cached) " >&6 2749 else 2750 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2751 ac_cxx_werror_flag=yes 2752 ac_cv_prog_cxx_g=no 2753 CXXFLAGS="-g" 2754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2755 /* end confdefs.h. */ 2756 2757 int 2758 main () 2759 { 2760 2761 ; 2762 return 0; 2763 } 2764 _ACEOF 2765 if ac_fn_cxx_try_compile "$LINENO"; then : 2766 ac_cv_prog_cxx_g=yes 2767 else 2768 CXXFLAGS="" 2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2770 /* end confdefs.h. */ 2771 2772 int 2773 main () 2774 { 2775 2776 ; 2777 return 0; 2778 } 2779 _ACEOF 2780 if ac_fn_cxx_try_compile "$LINENO"; then : 2781 2782 else 2783 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2784 CXXFLAGS="-g" 2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2786 /* end confdefs.h. */ 2787 2788 int 2789 main () 2790 { 2791 2792 ; 2793 return 0; 2794 } 2795 _ACEOF 2796 if ac_fn_cxx_try_compile "$LINENO"; then : 2797 ac_cv_prog_cxx_g=yes 2798 fi 2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2800 fi 2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2802 fi 2803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2804 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2805 fi 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 2807 $as_echo "$ac_cv_prog_cxx_g" >&6; } 2808 if test "$ac_test_CXXFLAGS" = set; then 2809 CXXFLAGS=$ac_save_CXXFLAGS 2810 elif test $ac_cv_prog_cxx_g = yes; then 2811 if test "$GXX" = yes; then 2812 CXXFLAGS="-g -O2" 2813 else 2814 CXXFLAGS="-g" 2815 fi 2816 else 2817 if test "$GXX" = yes; then 2818 CXXFLAGS="-O2" 2819 else 2820 CXXFLAGS= 2821 fi 2822 fi 2823 ac_ext=c 2824 ac_cpp='$CPP $CPPFLAGS' 2825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2827 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2828 2829 ac_ext=c 2830 ac_cpp='$CPP $CPPFLAGS' 2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2834 if test -n "$ac_tool_prefix"; then 2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2838 $as_echo_n "checking for $ac_word... " >&6; } 2839 if ${ac_cv_prog_CC+:} false; then : 2840 $as_echo_n "(cached) " >&6 2841 else 2842 if test -n "$CC"; then 2843 ac_cv_prog_CC="$CC" # Let the user override the test. 2844 else 2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846 for as_dir in $PATH 2847 do 2848 IFS=$as_save_IFS 2849 test -z "$as_dir" && as_dir=. 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2852 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2854 break 2 2855 fi 2856 done 2857 done 2858 IFS=$as_save_IFS 2859 2860 fi 2861 fi 2862 CC=$ac_cv_prog_CC 2863 if test -n "$CC"; then 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2865 $as_echo "$CC" >&6; } 2866 else 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2868 $as_echo "no" >&6; } 2869 fi 2870 2871 2872 fi 2873 if test -z "$ac_cv_prog_CC"; then 2874 ac_ct_CC=$CC 2875 # Extract the first word of "gcc", so it can be a program name with args. 2876 set dummy gcc; ac_word=$2 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878 $as_echo_n "checking for $ac_word... " >&6; } 2879 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2880 $as_echo_n "(cached) " >&6 2881 else 2882 if test -n "$ac_ct_CC"; then 2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2884 else 2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886 for as_dir in $PATH 2887 do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_ac_ct_CC="gcc" 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896 done 2897 done 2898 IFS=$as_save_IFS 2899 2900 fi 2901 fi 2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2903 if test -n "$ac_ct_CC"; then 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2905 $as_echo "$ac_ct_CC" >&6; } 2906 else 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908 $as_echo "no" >&6; } 2909 fi 2910 2911 if test "x$ac_ct_CC" = x; then 2912 CC="" 2913 else 2914 case $cross_compiling:$ac_tool_warned in 2915 yes:) 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2918 ac_tool_warned=yes ;; 2919 esac 2920 CC=$ac_ct_CC 2921 fi 2922 else 2923 CC="$ac_cv_prog_CC" 2924 fi 2925 2926 if test -z "$CC"; then 2927 if test -n "$ac_tool_prefix"; then 2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2929 set dummy ${ac_tool_prefix}cc; ac_word=$2 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931 $as_echo_n "checking for $ac_word... " >&6; } 2932 if ${ac_cv_prog_CC+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934 else 2935 if test -n "$CC"; then 2936 ac_cv_prog_CC="$CC" # Let the user override the test. 2937 else 2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939 for as_dir in $PATH 2940 do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2945 ac_cv_prog_CC="${ac_tool_prefix}cc" 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949 done 2950 done 2951 IFS=$as_save_IFS 2952 2953 fi 2954 fi 2955 CC=$ac_cv_prog_CC 2956 if test -n "$CC"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2958 $as_echo "$CC" >&6; } 2959 else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961 $as_echo "no" >&6; } 2962 fi 2963 2964 2965 fi 2966 fi 2967 if test -z "$CC"; then 2968 # Extract the first word of "cc", so it can be a program name with args. 2969 set dummy cc; ac_word=$2 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2971 $as_echo_n "checking for $ac_word... " >&6; } 2972 if ${ac_cv_prog_CC+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974 else 2975 if test -n "$CC"; then 2976 ac_cv_prog_CC="$CC" # Let the user override the test. 2977 else 2978 ac_prog_rejected=no 2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980 for as_dir in $PATH 2981 do 2982 IFS=$as_save_IFS 2983 test -z "$as_dir" && as_dir=. 2984 for ac_exec_ext in '' $ac_executable_extensions; do 2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2987 ac_prog_rejected=yes 2988 continue 2989 fi 2990 ac_cv_prog_CC="cc" 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2992 break 2 2993 fi 2994 done 2995 done 2996 IFS=$as_save_IFS 2997 2998 if test $ac_prog_rejected = yes; then 2999 # We found a bogon in the path, so make sure we never use it. 3000 set dummy $ac_cv_prog_CC 3001 shift 3002 if test $# != 0; then 3003 # We chose a different compiler from the bogus one. 3004 # However, it has the same basename, so the bogon will be chosen 3005 # first if we set CC to just the basename; use the full file name. 3006 shift 3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3008 fi 3009 fi 3010 fi 3011 fi 3012 CC=$ac_cv_prog_CC 3013 if test -n "$CC"; then 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3015 $as_echo "$CC" >&6; } 3016 else 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018 $as_echo "no" >&6; } 3019 fi 3020 3021 3022 fi 3023 if test -z "$CC"; then 3024 if test -n "$ac_tool_prefix"; then 3025 for ac_prog in cl.exe 3026 do 3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3030 $as_echo_n "checking for $ac_word... " >&6; } 3031 if ${ac_cv_prog_CC+:} false; then : 3032 $as_echo_n "(cached) " >&6 3033 else 3034 if test -n "$CC"; then 3035 ac_cv_prog_CC="$CC" # Let the user override the test. 3036 else 3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3038 for as_dir in $PATH 3039 do 3040 IFS=$as_save_IFS 3041 test -z "$as_dir" && as_dir=. 3042 for ac_exec_ext in '' $ac_executable_extensions; do 3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3046 break 2 3047 fi 3048 done 3049 done 3050 IFS=$as_save_IFS 3051 3052 fi 3053 fi 3054 CC=$ac_cv_prog_CC 3055 if test -n "$CC"; then 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3057 $as_echo "$CC" >&6; } 3058 else 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3060 $as_echo "no" >&6; } 3061 fi 3062 3063 3064 test -n "$CC" && break 3065 done 3066 fi 3067 if test -z "$CC"; then 3068 ac_ct_CC=$CC 3069 for ac_prog in cl.exe 3070 do 3071 # Extract the first word of "$ac_prog", so it can be a program name with args. 3072 set dummy $ac_prog; ac_word=$2 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3074 $as_echo_n "checking for $ac_word... " >&6; } 3075 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077 else 3078 if test -n "$ac_ct_CC"; then 3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3080 else 3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082 for as_dir in $PATH 3083 do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3088 ac_cv_prog_ac_ct_CC="$ac_prog" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092 done 3093 done 3094 IFS=$as_save_IFS 3095 3096 fi 3097 fi 3098 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3099 if test -n "$ac_ct_CC"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3101 $as_echo "$ac_ct_CC" >&6; } 3102 else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104 $as_echo "no" >&6; } 3105 fi 3106 3107 3108 test -n "$ac_ct_CC" && break 3109 done 3110 3111 if test "x$ac_ct_CC" = x; then 3112 CC="" 3113 else 3114 case $cross_compiling:$ac_tool_warned in 3115 yes:) 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3118 ac_tool_warned=yes ;; 3119 esac 3120 CC=$ac_ct_CC 3121 fi 3122 fi 3123 3124 fi 3125 3126 3127 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3129 as_fn_error $? "no acceptable C compiler found in \$PATH 3130 See \`config.log' for more details" "$LINENO" 5; } 3131 3132 # Provide some information about the compiler. 3133 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3134 set X $ac_compile 3135 ac_compiler=$2 3136 for ac_option in --version -v -V -qversion; do 3137 { { ac_try="$ac_compiler $ac_option >&5" 3138 case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141 esac 3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3143 $as_echo "$ac_try_echo"; } >&5 3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3145 ac_status=$? 3146 if test -s conftest.err; then 3147 sed '10a\ 3148 ... rest of stderr output deleted ... 3149 10q' conftest.err >conftest.er1 3150 cat conftest.er1 >&5 3151 fi 3152 rm -f conftest.er1 conftest.err 3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3154 test $ac_status = 0; } 3155 done 3156 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3158 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3159 if ${ac_cv_c_compiler_gnu+:} false; then : 3160 $as_echo_n "(cached) " >&6 3161 else 3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3163 /* end confdefs.h. */ 3164 3165 int 3166 main () 3167 { 3168 #ifndef __GNUC__ 3169 choke me 3170 #endif 3171 3172 ; 3173 return 0; 3174 } 3175 _ACEOF 3176 if ac_fn_c_try_compile "$LINENO"; then : 3177 ac_compiler_gnu=yes 3178 else 3179 ac_compiler_gnu=no 3180 fi 3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3182 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3183 3184 fi 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3186 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3187 if test $ac_compiler_gnu = yes; then 3188 GCC=yes 3189 else 3190 GCC= 3191 fi 3192 ac_test_CFLAGS=${CFLAGS+set} 3193 ac_save_CFLAGS=$CFLAGS 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3195 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3196 if ${ac_cv_prog_cc_g+:} false; then : 3197 $as_echo_n "(cached) " >&6 3198 else 3199 ac_save_c_werror_flag=$ac_c_werror_flag 3200 ac_c_werror_flag=yes 3201 ac_cv_prog_cc_g=no 3202 CFLAGS="-g" 3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3204 /* end confdefs.h. */ 3205 3206 int 3207 main () 3208 { 3209 3210 ; 3211 return 0; 3212 } 3213 _ACEOF 3214 if ac_fn_c_try_compile "$LINENO"; then : 3215 ac_cv_prog_cc_g=yes 3216 else 3217 CFLAGS="" 3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3219 /* end confdefs.h. */ 3220 3221 int 3222 main () 3223 { 3224 3225 ; 3226 return 0; 3227 } 3228 _ACEOF 3229 if ac_fn_c_try_compile "$LINENO"; then : 3230 3231 else 3232 ac_c_werror_flag=$ac_save_c_werror_flag 3233 CFLAGS="-g" 3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3235 /* end confdefs.h. */ 3236 3237 int 3238 main () 3239 { 3240 3241 ; 3242 return 0; 3243 } 3244 _ACEOF 3245 if ac_fn_c_try_compile "$LINENO"; then : 3246 ac_cv_prog_cc_g=yes 3247 fi 3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3249 fi 3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3251 fi 3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3253 ac_c_werror_flag=$ac_save_c_werror_flag 3254 fi 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3256 $as_echo "$ac_cv_prog_cc_g" >&6; } 3257 if test "$ac_test_CFLAGS" = set; then 3258 CFLAGS=$ac_save_CFLAGS 3259 elif test $ac_cv_prog_cc_g = yes; then 3260 if test "$GCC" = yes; then 3261 CFLAGS="-g -O2" 3262 else 3263 CFLAGS="-g" 3264 fi 3265 else 3266 if test "$GCC" = yes; then 3267 CFLAGS="-O2" 3268 else 3269 CFLAGS= 3270 fi 3271 fi 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3273 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3274 if ${ac_cv_prog_cc_c89+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276 else 3277 ac_cv_prog_cc_c89=no 3278 ac_save_CC=$CC 3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3280 /* end confdefs.h. */ 3281 #include <stdarg.h> 3282 #include <stdio.h> 3283 struct stat; 3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3285 struct buf { int x; }; 3286 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3287 static char *e (p, i) 3288 char **p; 3289 int i; 3290 { 3291 return p[i]; 3292 } 3293 static char *f (char * (*g) (char **, int), char **p, ...) 3294 { 3295 char *s; 3296 va_list v; 3297 va_start (v,p); 3298 s = g (p, va_arg (v,int)); 3299 va_end (v); 3300 return s; 3301 } 3302 3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3304 function prototypes and stuff, but not '\xHH' hex character constants. 3305 These don't provoke an error unfortunately, instead are silently treated 3306 as 'x'. The following induces an error, until -std is added to get 3307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3308 array size at least. It's necessary to write '\x00'==0 to get something 3309 that's true only with -std. */ 3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3311 3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3313 inside strings and character constants. */ 3314 #define FOO(x) 'x' 3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3316 3317 int test (int i, double x); 3318 struct s1 {int (*f) (int a);}; 3319 struct s2 {int (*f) (double a);}; 3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3321 int argc; 3322 char **argv; 3323 int 3324 main () 3325 { 3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3327 ; 3328 return 0; 3329 } 3330 _ACEOF 3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3333 do 3334 CC="$ac_save_CC $ac_arg" 3335 if ac_fn_c_try_compile "$LINENO"; then : 3336 ac_cv_prog_cc_c89=$ac_arg 3337 fi 3338 rm -f core conftest.err conftest.$ac_objext 3339 test "x$ac_cv_prog_cc_c89" != "xno" && break 3340 done 3341 rm -f conftest.$ac_ext 3342 CC=$ac_save_CC 3343 3344 fi 3345 # AC_CACHE_VAL 3346 case "x$ac_cv_prog_cc_c89" in 3347 x) 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3349 $as_echo "none needed" >&6; } ;; 3350 xno) 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3352 $as_echo "unsupported" >&6; } ;; 3353 *) 3354 CC="$CC $ac_cv_prog_cc_c89" 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3356 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3357 esac 3358 if test "x$ac_cv_prog_cc_c89" != xno; then : 3359 3360 fi 3361 3362 ac_ext=c 3363 ac_cpp='$CPP $CPPFLAGS' 3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3367 3368 3369 # Checks for libraries. 3370 # FIXME: Replace `main' with a function in `-lSDL': 3371 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL" >&5 3373 $as_echo_n "checking for main in -lSDL... " >&6; } 3374 if ${ac_cv_lib_SDL_main+:} false; then : 3375 $as_echo_n "(cached) " >&6 3376 else 3377 ac_check_lib_save_LIBS=$LIBS 3378 LIBS="-lSDL $LIBS" 3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3380 /* end confdefs.h. */ 3381 3382 3383 int 3384 main () 3385 { 3386 return main (); 3387 ; 3388 return 0; 3389 } 3390 _ACEOF 3391 if ac_fn_c_try_link "$LINENO"; then : 3392 ac_cv_lib_SDL_main=yes 3393 else 3394 ac_cv_lib_SDL_main=no 3395 fi 3396 rm -f core conftest.err conftest.$ac_objext \ 3397 conftest$ac_exeext conftest.$ac_ext 3398 LIBS=$ac_check_lib_save_LIBS 3399 fi 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_main" >&5 3401 $as_echo "$ac_cv_lib_SDL_main" >&6; } 3402 if test "x$ac_cv_lib_SDL_main" = xyes; then : 3403 cat >>confdefs.h <<_ACEOF 3404 #define HAVE_LIBSDL 1 3405 _ACEOF 3406 3407 LIBS="-lSDL $LIBS" 3408 3409 fi 3410 3411 # FIXME: Replace `main' with a function in `-lSDL_gfx': 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_gfx" >&5 3413 $as_echo_n "checking for main in -lSDL_gfx... " >&6; } 3414 if ${ac_cv_lib_SDL_gfx_main+:} false; then : 3415 $as_echo_n "(cached) " >&6 3416 else 3417 ac_check_lib_save_LIBS=$LIBS 3418 LIBS="-lSDL_gfx $LIBS" 3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3420 /* end confdefs.h. */ 3421 3422 3423 int 3424 main () 3425 { 3426 return main (); 3427 ; 3428 return 0; 3429 } 3430 _ACEOF 3431 if ac_fn_c_try_link "$LINENO"; then : 3432 ac_cv_lib_SDL_gfx_main=yes 3433 else 3434 ac_cv_lib_SDL_gfx_main=no 3435 fi 3436 rm -f core conftest.err conftest.$ac_objext \ 3437 conftest$ac_exeext conftest.$ac_ext 3438 LIBS=$ac_check_lib_save_LIBS 3439 fi 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_gfx_main" >&5 3441 $as_echo "$ac_cv_lib_SDL_gfx_main" >&6; } 3442 if test "x$ac_cv_lib_SDL_gfx_main" = xyes; then : 3443 cat >>confdefs.h <<_ACEOF 3444 #define HAVE_LIBSDL_GFX 1 3445 _ACEOF 3446 3447 LIBS="-lSDL_gfx $LIBS" 3448 3449 fi 3450 3451 # FIXME: Replace `main' with a function in `-llash': 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llash" >&5 3453 $as_echo_n "checking for main in -llash... " >&6; } 3454 if ${ac_cv_lib_lash_main+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456 else 3457 ac_check_lib_save_LIBS=$LIBS 3458 LIBS="-llash $LIBS" 3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460 /* end confdefs.h. */ 3461 3462 3463 int 3464 main () 3465 { 3466 return main (); 3467 ; 3468 return 0; 3469 } 3470 _ACEOF 3471 if ac_fn_c_try_link "$LINENO"; then : 3472 ac_cv_lib_lash_main=yes 3473 else 3474 ac_cv_lib_lash_main=no 3475 fi 3476 rm -f core conftest.err conftest.$ac_objext \ 3477 conftest$ac_exeext conftest.$ac_ext 3478 LIBS=$ac_check_lib_save_LIBS 3479 fi 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lash_main" >&5 3481 $as_echo "$ac_cv_lib_lash_main" >&6; } 3482 if test "x$ac_cv_lib_lash_main" = xyes; then : 3483 cat >>confdefs.h <<_ACEOF 3484 #define HAVE_LIBLASH 1 3485 _ACEOF 3486 3487 LIBS="-llash $LIBS" 3488 3489 fi 3490 3491 # FIXME: Replace `main' with a function in `-llashgame': 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llashgame" >&5 3493 $as_echo_n "checking for main in -llashgame... " >&6; } 3494 if ${ac_cv_lib_lashgame_main+:} false; then : 3495 $as_echo_n "(cached) " >&6 3496 else 3497 ac_check_lib_save_LIBS=$LIBS 3498 LIBS="-llashgame $LIBS" 3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3500 /* end confdefs.h. */ 3501 3502 3503 int 3504 main () 3505 { 3506 return main (); 3507 ; 3508 return 0; 3509 } 3510 _ACEOF 3511 if ac_fn_c_try_link "$LINENO"; then : 3512 ac_cv_lib_lashgame_main=yes 3513 else 3514 ac_cv_lib_lashgame_main=no 3515 fi 3516 rm -f core conftest.err conftest.$ac_objext \ 3517 conftest$ac_exeext conftest.$ac_ext 3518 LIBS=$ac_check_lib_save_LIBS 3519 fi 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lashgame_main" >&5 3521 $as_echo "$ac_cv_lib_lashgame_main" >&6; } 3522 if test "x$ac_cv_lib_lashgame_main" = xyes; then : 3523 cat >>confdefs.h <<_ACEOF 3524 #define HAVE_LIBLASHGAME 1 3525 _ACEOF 3526 3527 LIBS="-llashgame $LIBS" 3528 3529 fi 3530 3531 # FIXME: Replace `main' with a function in `-lm': 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 3533 $as_echo_n "checking for main in -lm... " >&6; } 3534 if ${ac_cv_lib_m_main+:} false; then : 3535 $as_echo_n "(cached) " >&6 3536 else 3537 ac_check_lib_save_LIBS=$LIBS 3538 LIBS="-lm $LIBS" 3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540 /* end confdefs.h. */ 3541 3542 3543 int 3544 main () 3545 { 3546 return main (); 3547 ; 3548 return 0; 3549 } 3550 _ACEOF 3551 if ac_fn_c_try_link "$LINENO"; then : 3552 ac_cv_lib_m_main=yes 3553 else 3554 ac_cv_lib_m_main=no 3555 fi 3556 rm -f core conftest.err conftest.$ac_objext \ 3557 conftest$ac_exeext conftest.$ac_ext 3558 LIBS=$ac_check_lib_save_LIBS 3559 fi 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 3561 $as_echo "$ac_cv_lib_m_main" >&6; } 3562 if test "x$ac_cv_lib_m_main" = xyes; then : 3563 cat >>confdefs.h <<_ACEOF 3564 #define HAVE_LIBM 1 3565 _ACEOF 3566 3567 LIBS="-lm $LIBS" 3568 3569 fi 3570 3571 3572 # Checks for header files. 3573 ac_ext=c 3574 ac_cpp='$CPP $CPPFLAGS' 3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3579 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3580 # On Suns, sometimes $CPP names a directory. 3581 if test -n "$CPP" && test -d "$CPP"; then 3582 CPP= 3583 fi 3584 if test -z "$CPP"; then 3585 if ${ac_cv_prog_CPP+:} false; then : 3586 $as_echo_n "(cached) " >&6 3587 else 3588 # Double quotes because CPP needs to be expanded 3589 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3590 do 3591 ac_preproc_ok=false 3592 for ac_c_preproc_warn_flag in '' yes 3593 do 3594 # Use a header file that comes with gcc, so configuring glibc 3595 # with a fresh cross-compiler works. 3596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3597 # <limits.h> exists even on freestanding compilers. 3598 # On the NeXT, cc -E runs the code through the compiler's parser, 3599 # not just through cpp. "Syntax error" is here to catch this case. 3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601 /* end confdefs.h. */ 3602 #ifdef __STDC__ 3603 # include <limits.h> 3604 #else 3605 # include <assert.h> 3606 #endif 3607 Syntax error 3608 _ACEOF 3609 if ac_fn_c_try_cpp "$LINENO"; then : 3610 3611 else 3612 # Broken: fails on valid input. 3613 continue 3614 fi 3615 rm -f conftest.err conftest.i conftest.$ac_ext 3616 3617 # OK, works on sane cases. Now check whether nonexistent headers 3618 # can be detected and how. 3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3620 /* end confdefs.h. */ 3621 #include <ac_nonexistent.h> 3622 _ACEOF 3623 if ac_fn_c_try_cpp "$LINENO"; then : 3624 # Broken: success on invalid input. 3625 continue 3626 else 3627 # Passes both tests. 3628 ac_preproc_ok=: 3629 break 3630 fi 3631 rm -f conftest.err conftest.i conftest.$ac_ext 3632 3633 done 3634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3635 rm -f conftest.i conftest.err conftest.$ac_ext 3636 if $ac_preproc_ok; then : 3637 break 3638 fi 3639 3640 done 3641 ac_cv_prog_CPP=$CPP 3642 3643 fi 3644 CPP=$ac_cv_prog_CPP 3645 else 3646 ac_cv_prog_CPP=$CPP 3647 fi 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3649 $as_echo "$CPP" >&6; } 3650 ac_preproc_ok=false 3651 for ac_c_preproc_warn_flag in '' yes 3652 do 3653 # Use a header file that comes with gcc, so configuring glibc 3654 # with a fresh cross-compiler works. 3655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3656 # <limits.h> exists even on freestanding compilers. 3657 # On the NeXT, cc -E runs the code through the compiler's parser, 3658 # not just through cpp. "Syntax error" is here to catch this case. 3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3660 /* end confdefs.h. */ 3661 #ifdef __STDC__ 3662 # include <limits.h> 3663 #else 3664 # include <assert.h> 3665 #endif 3666 Syntax error 3667 _ACEOF 3668 if ac_fn_c_try_cpp "$LINENO"; then : 3669 3670 else 3671 # Broken: fails on valid input. 3672 continue 3673 fi 3674 rm -f conftest.err conftest.i conftest.$ac_ext 3675 3676 # OK, works on sane cases. Now check whether nonexistent headers 3677 # can be detected and how. 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679 /* end confdefs.h. */ 3680 #include <ac_nonexistent.h> 3681 _ACEOF 3682 if ac_fn_c_try_cpp "$LINENO"; then : 3683 # Broken: success on invalid input. 3684 continue 3685 else 3686 # Passes both tests. 3687 ac_preproc_ok=: 3688 break 3689 fi 3690 rm -f conftest.err conftest.i conftest.$ac_ext 3691 3692 done 3693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3694 rm -f conftest.i conftest.err conftest.$ac_ext 3695 if $ac_preproc_ok; then : 3696 3697 else 3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3700 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3701 See \`config.log' for more details" "$LINENO" 5; } 3702 fi 3703 3704 ac_ext=c 3705 ac_cpp='$CPP $CPPFLAGS' 3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3709 3710 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3712 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3713 if ${ac_cv_path_GREP+:} false; then : 3714 $as_echo_n "(cached) " >&6 3715 else 3716 if test -z "$GREP"; then 3717 ac_path_GREP_found=false 3718 # Loop through the user's path and test for each of PROGNAME-LIST 3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3721 do 3722 IFS=$as_save_IFS 3723 test -z "$as_dir" && as_dir=. 3724 for ac_prog in grep ggrep; do 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3727 as_fn_executable_p "$ac_path_GREP" || continue 3728 # Check for GNU ac_path_GREP and select it if it is found. 3729 # Check for GNU $ac_path_GREP 3730 case `"$ac_path_GREP" --version 2>&1` in 3731 *GNU*) 3732 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3733 *) 3734 ac_count=0 3735 $as_echo_n 0123456789 >"conftest.in" 3736 while : 3737 do 3738 cat "conftest.in" "conftest.in" >"conftest.tmp" 3739 mv "conftest.tmp" "conftest.in" 3740 cp "conftest.in" "conftest.nl" 3741 $as_echo 'GREP' >> "conftest.nl" 3742 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3744 as_fn_arith $ac_count + 1 && ac_count=$as_val 3745 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3746 # Best one so far, save it but keep looking for a better one 3747 ac_cv_path_GREP="$ac_path_GREP" 3748 ac_path_GREP_max=$ac_count 3749 fi 3750 # 10*(2^10) chars as input seems more than enough 3751 test $ac_count -gt 10 && break 3752 done 3753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3754 esac 3755 3756 $ac_path_GREP_found && break 3 3757 done 3758 done 3759 done 3760 IFS=$as_save_IFS 3761 if test -z "$ac_cv_path_GREP"; then 3762 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3763 fi 3764 else 3765 ac_cv_path_GREP=$GREP 3766 fi 3767 3768 fi 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3770 $as_echo "$ac_cv_path_GREP" >&6; } 3771 GREP="$ac_cv_path_GREP" 3772 3773 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3775 $as_echo_n "checking for egrep... " >&6; } 3776 if ${ac_cv_path_EGREP+:} false; then : 3777 $as_echo_n "(cached) " >&6 3778 else 3779 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3780 then ac_cv_path_EGREP="$GREP -E" 3781 else 3782 if test -z "$EGREP"; then 3783 ac_path_EGREP_found=false 3784 # Loop through the user's path and test for each of PROGNAME-LIST 3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3787 do 3788 IFS=$as_save_IFS 3789 test -z "$as_dir" && as_dir=. 3790 for ac_prog in egrep; do 3791 for ac_exec_ext in '' $ac_executable_extensions; do 3792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3793 as_fn_executable_p "$ac_path_EGREP" || continue 3794 # Check for GNU ac_path_EGREP and select it if it is found. 3795 # Check for GNU $ac_path_EGREP 3796 case `"$ac_path_EGREP" --version 2>&1` in 3797 *GNU*) 3798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3799 *) 3800 ac_count=0 3801 $as_echo_n 0123456789 >"conftest.in" 3802 while : 3803 do 3804 cat "conftest.in" "conftest.in" >"conftest.tmp" 3805 mv "conftest.tmp" "conftest.in" 3806 cp "conftest.in" "conftest.nl" 3807 $as_echo 'EGREP' >> "conftest.nl" 3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3810 as_fn_arith $ac_count + 1 && ac_count=$as_val 3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3812 # Best one so far, save it but keep looking for a better one 3813 ac_cv_path_EGREP="$ac_path_EGREP" 3814 ac_path_EGREP_max=$ac_count 3815 fi 3816 # 10*(2^10) chars as input seems more than enough 3817 test $ac_count -gt 10 && break 3818 done 3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3820 esac 3821 3822 $ac_path_EGREP_found && break 3 3823 done 3824 done 3825 done 3826 IFS=$as_save_IFS 3827 if test -z "$ac_cv_path_EGREP"; then 3828 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3829 fi 3830 else 3831 ac_cv_path_EGREP=$EGREP 3832 fi 3833 3834 fi 3835 fi 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3837 $as_echo "$ac_cv_path_EGREP" >&6; } 3838 EGREP="$ac_cv_path_EGREP" 3839 3840 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3842 $as_echo_n "checking for ANSI C header files... " >&6; } 3843 if ${ac_cv_header_stdc+:} false; then : 3844 $as_echo_n "(cached) " >&6 3845 else 3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3847 /* end confdefs.h. */ 3848 #include <stdlib.h> 3849 #include <stdarg.h> 3850 #include <string.h> 3851 #include <float.h> 3852 3853 int 3854 main () 3855 { 3856 3857 ; 3858 return 0; 3859 } 3860 _ACEOF 3861 if ac_fn_c_try_compile "$LINENO"; then : 3862 ac_cv_header_stdc=yes 3863 else 3864 ac_cv_header_stdc=no 3865 fi 3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3867 3868 if test $ac_cv_header_stdc = yes; then 3869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871 /* end confdefs.h. */ 3872 #include <string.h> 3873 3874 _ACEOF 3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3876 $EGREP "memchr" >/dev/null 2>&1; then : 3877 3878 else 3879 ac_cv_header_stdc=no 3880 fi 3881 rm -f conftest* 3882 3883 fi 3884 3885 if test $ac_cv_header_stdc = yes; then 3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888 /* end confdefs.h. */ 3889 #include <stdlib.h> 3890 3891 _ACEOF 3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3893 $EGREP "free" >/dev/null 2>&1; then : 3894 3895 else 3896 ac_cv_header_stdc=no 3897 fi 3898 rm -f conftest* 3899 3900 fi 3901 3902 if test $ac_cv_header_stdc = yes; then 3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3904 if test "$cross_compiling" = yes; then : 3905 : 3906 else 3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3908 /* end confdefs.h. */ 3909 #include <ctype.h> 3910 #include <stdlib.h> 3911 #if ((' ' & 0x0FF) == 0x020) 3912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3914 #else 3915 # define ISLOWER(c) \ 3916 (('a' <= (c) && (c) <= 'i') \ 3917 || ('j' <= (c) && (c) <= 'r') \ 3918 || ('s' <= (c) && (c) <= 'z')) 3919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3920 #endif 3921 3922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3923 int 3924 main () 3925 { 3926 int i; 3927 for (i = 0; i < 256; i++) 3928 if (XOR (islower (i), ISLOWER (i)) 3929 || toupper (i) != TOUPPER (i)) 3930 return 2; 3931 return 0; 3932 } 3933 _ACEOF 3934 if ac_fn_c_try_run "$LINENO"; then : 3935 3936 else 3937 ac_cv_header_stdc=no 3938 fi 3939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3940 conftest.$ac_objext conftest.beam conftest.$ac_ext 3941 fi 3942 3943 fi 3944 fi 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3946 $as_echo "$ac_cv_header_stdc" >&6; } 3947 if test $ac_cv_header_stdc = yes; then 3948 3949 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3950 3951 fi 3952 3953 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3954 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3955 inttypes.h stdint.h unistd.h 3956 do : 3957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3958 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3959 " 3960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3961 cat >>confdefs.h <<_ACEOF 3962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3963 _ACEOF 3964 3965 fi 3966 3967 done 3968 3969 3970 for ac_header in stdint.h stdlib.h string.h unistd.h 3971 do : 3972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3973 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 3974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3975 cat >>confdefs.h <<_ACEOF 3976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3977 _ACEOF 3978 3979 fi 3980 3981 done 3982 3983 3984 # Checks for typedefs, structures, and compiler characteristics. 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 3986 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 3987 if ${ac_cv_header_stdbool_h+:} false; then : 3988 $as_echo_n "(cached) " >&6 3989 else 3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3991 /* end confdefs.h. */ 3992 3993 #include <stdbool.h> 3994 #ifndef bool 3995 "error: bool is not defined" 3996 #endif 3997 #ifndef false 3998 "error: false is not defined" 3999 #endif 4000 #if false 4001 "error: false is not 0" 4002 #endif 4003 #ifndef true 4004 "error: true is not defined" 4005 #endif 4006 #if true != 1 4007 "error: true is not 1" 4008 #endif 4009 #ifndef __bool_true_false_are_defined 4010 "error: __bool_true_false_are_defined is not defined" 4011 #endif 4012 4013 struct s { _Bool s: 1; _Bool t; } s; 4014 4015 char a[true == 1 ? 1 : -1]; 4016 char b[false == 0 ? 1 : -1]; 4017 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 4018 char d[(bool) 0.5 == true ? 1 : -1]; 4019 /* See body of main program for 'e'. */ 4020 char f[(_Bool) 0.0 == false ? 1 : -1]; 4021 char g[true]; 4022 char h[sizeof (_Bool)]; 4023 char i[sizeof s.t]; 4024 enum { j = false, k = true, l = false * true, m = true * 256 }; 4025 /* The following fails for 4026 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 4027 _Bool n[m]; 4028 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 4029 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 4030 /* Catch a bug in an HP-UX C compiler. See 4031 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 4032 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 4033 */ 4034 _Bool q = true; 4035 _Bool *pq = &q; 4036 4037 int 4038 main () 4039 { 4040 4041 bool e = &s; 4042 *pq |= q; 4043 *pq |= ! q; 4044 /* Refer to every declared value, to avoid compiler optimizations. */ 4045 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 4046 + !m + !n + !o + !p + !q + !pq); 4047 4048 ; 4049 return 0; 4050 } 4051 _ACEOF 4052 if ac_fn_c_try_compile "$LINENO"; then : 4053 ac_cv_header_stdbool_h=yes 4054 else 4055 ac_cv_header_stdbool_h=no 4056 fi 4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4058 fi 4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 4060 $as_echo "$ac_cv_header_stdbool_h" >&6; } 4061 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 4062 if test "x$ac_cv_type__Bool" = xyes; then : 4063 4064 cat >>confdefs.h <<_ACEOF 4065 #define HAVE__BOOL 1 4066 _ACEOF 4067 4068 4069 fi 4070 4071 4072 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 4073 case $ac_cv_c_int16_t in #( 4074 no|yes) ;; #( 4075 *) 4076 4077 cat >>confdefs.h <<_ACEOF 4078 #define int16_t $ac_cv_c_int16_t 4079 _ACEOF 4080 ;; 4081 esac 4082 4083 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 4084 case $ac_cv_c_int32_t in #( 4085 no|yes) ;; #( 4086 *) 4087 4088 cat >>confdefs.h <<_ACEOF 4089 #define int32_t $ac_cv_c_int32_t 4090 _ACEOF 4091 ;; 4092 esac 4093 4094 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4095 if test "x$ac_cv_type_size_t" = xyes; then : 4096 4097 else 4098 4099 cat >>confdefs.h <<_ACEOF 4100 #define size_t unsigned int 4101 _ACEOF 4102 4103 fi 4104 4105 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 4106 case $ac_cv_c_uint16_t in #( 4107 no|yes) ;; #( 4108 *) 4109 4110 4111 cat >>confdefs.h <<_ACEOF 4112 #define uint16_t $ac_cv_c_uint16_t 4113 _ACEOF 4114 ;; 4115 esac 4116 4117 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 4118 case $ac_cv_c_uint32_t in #( 4119 no|yes) ;; #( 4120 *) 4121 4122 $as_echo "#define _UINT32_T 1" >>confdefs.h 4123 4124 4125 cat >>confdefs.h <<_ACEOF 4126 #define uint32_t $ac_cv_c_uint32_t 4127 _ACEOF 4128 ;; 4129 esac 4130 4131 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 4132 case $ac_cv_c_uint8_t in #( 4133 no|yes) ;; #( 4134 *) 4135 4136 $as_echo "#define _UINT8_T 1" >>confdefs.h 4137 4138 4139 cat >>confdefs.h <<_ACEOF 4140 #define uint8_t $ac_cv_c_uint8_t 4141 _ACEOF 4142 ;; 4143 esac 4144 4145 4146 # Checks for library functions. 4147 for ac_header in stdlib.h 4148 do : 4149 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4150 if test "x$ac_cv_header_stdlib_h" = xyes; then : 4151 cat >>confdefs.h <<_ACEOF 4152 #define HAVE_STDLIB_H 1 4153 _ACEOF 4154 4155 fi 4156 4157 done 4158 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 4160 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } 4161 if ${ac_cv_func_malloc_0_nonnull+:} false; then : 4162 $as_echo_n "(cached) " >&6 4163 else 4164 if test "$cross_compiling" = yes; then : 4165 ac_cv_func_malloc_0_nonnull=no 4166 else 4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4168 /* end confdefs.h. */ 4169 #if defined STDC_HEADERS || defined HAVE_STDLIB_H 4170 # include <stdlib.h> 4171 #else 4172 char *malloc (); 4173 #endif 4174 4175 int 4176 main () 4177 { 4178 return ! malloc (0); 4179 ; 4180 return 0; 4181 } 4182 _ACEOF 4183 if ac_fn_c_try_run "$LINENO"; then : 4184 ac_cv_func_malloc_0_nonnull=yes 4185 else 4186 ac_cv_func_malloc_0_nonnull=no 4187 fi 4188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4189 conftest.$ac_objext conftest.beam conftest.$ac_ext 4190 fi 4191 4192 fi 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 4194 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 4195 if test $ac_cv_func_malloc_0_nonnull = yes; then : 4196 4197 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h 4198 4199 else 4200 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 4201 4202 case " $LIBOBJS " in 4203 *" malloc.$ac_objext "* ) ;; 4204 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 4205 ;; 4206 esac 4207 4208 4209 $as_echo "#define malloc rpl_malloc" >>confdefs.h 4210 4211 fi 4212 4213 4214 for ac_header in stdlib.h 4215 do : 4216 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4217 if test "x$ac_cv_header_stdlib_h" = xyes; then : 4218 cat >>confdefs.h <<_ACEOF 4219 #define HAVE_STDLIB_H 1 4220 _ACEOF 4221 4222 fi 4223 4224 done 4225 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 4227 $as_echo_n "checking for GNU libc compatible realloc... " >&6; } 4228 if ${ac_cv_func_realloc_0_nonnull+:} false; then : 4229 $as_echo_n "(cached) " >&6 4230 else 4231 if test "$cross_compiling" = yes; then : 4232 ac_cv_func_realloc_0_nonnull=no 4233 else 4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4235 /* end confdefs.h. */ 4236 #if defined STDC_HEADERS || defined HAVE_STDLIB_H 4237 # include <stdlib.h> 4238 #else 4239 char *realloc (); 4240 #endif 4241 4242 int 4243 main () 4244 { 4245 return ! realloc (0, 0); 4246 ; 4247 return 0; 4248 } 4249 _ACEOF 4250 if ac_fn_c_try_run "$LINENO"; then : 4251 ac_cv_func_realloc_0_nonnull=yes 4252 else 4253 ac_cv_func_realloc_0_nonnull=no 4254 fi 4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4256 conftest.$ac_objext conftest.beam conftest.$ac_ext 4257 fi 4258 4259 fi 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 4261 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 4262 if test $ac_cv_func_realloc_0_nonnull = yes; then : 4263 4264 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h 4265 4266 else 4267 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 4268 4269 case " $LIBOBJS " in 4270 *" realloc.$ac_objext "* ) ;; 4271 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 4272 ;; 4273 esac 4274 4275 4276 $as_echo "#define realloc rpl_realloc" >>confdefs.h 4277 4278 fi 4279 4280 4281 for ac_func in floor pow sqrt 4282 do : 4283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4285 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4286 cat >>confdefs.h <<_ACEOF 4287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4288 _ACEOF 4289 4290 fi 4291 done 4292 4293 4294 ac_config_files="$ac_config_files Makefile c++/Makefile" 4295 4296 cat >confcache <<\_ACEOF 4297 # This file is a shell script that caches the results of configure 4298 # tests run on this system so they can be shared between configure 4299 # scripts and configure runs, see configure's option --config-cache. 4300 # It is not useful on other systems. If it contains results you don't 4301 # want to keep, you may remove or edit it. 4302 # 4303 # config.status only pays attention to the cache file if you give it 4304 # the --recheck option to rerun configure. 4305 # 4306 # `ac_cv_env_foo' variables (set or unset) will be overridden when 4307 # loading this file, other *unset* `ac_cv_foo' will be assigned the 4308 # following values. 4309 4310 _ACEOF 4311 4312 # The following way of writing the cache mishandles newlines in values, 4313 # but we know of no workaround that is simple, portable, and efficient. 4314 # So, we kill variables containing newlines. 4315 # Ultrix sh set writes to stderr and can't be redirected directly, 4316 # and sets the high bit in the cache file unless we assign to the vars. 4317 ( 4318 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4319 eval ac_val=\$$ac_var 4320 case $ac_val in #( 4321 *${as_nl}*) 4322 case $ac_var in #( 4323 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4324 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4325 esac 4326 case $ac_var in #( 4327 _ | IFS | as_nl) ;; #( 4328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4329 *) { eval $ac_var=; unset $ac_var;} ;; 4330 esac ;; 4331 esac 4332 done 4333 4334 (set) 2>&1 | 4335 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4336 *${as_nl}ac_space=\ *) 4337 # `set' does not quote correctly, so add quotes: double-quote 4338 # substitution turns \\\\ into \\, and sed turns \\ into \. 4339 sed -n \ 4340 "s/'/'\\\\''/g; 4341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4342 ;; #( 4343 *) 4344 # `set' quotes correctly as required by POSIX, so do not add quotes. 4345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4346 ;; 4347 esac | 4348 sort 4349 ) | 4350 sed ' 4351 /^ac_cv_env_/b end 4352 t clear 4353 :clear 4354 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4355 t end 4356 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4357 :end' >>confcache 4358 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4359 if test -w "$cache_file"; then 4360 if test "x$cache_file" != "x/dev/null"; then 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4362 $as_echo "$as_me: updating cache $cache_file" >&6;} 4363 if test ! -f "$cache_file" || test -h "$cache_file"; then 4364 cat confcache >"$cache_file" 4365 else 4366 case $cache_file in #( 4367 */* | ?:*) 4368 mv -f confcache "$cache_file"$$ && 4369 mv -f "$cache_file"$$ "$cache_file" ;; #( 4370 *) 4371 mv -f confcache "$cache_file" ;; 4372 esac 4373 fi 4374 fi 4375 else 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4377 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4378 fi 4379 fi 4380 rm -f confcache 4381 4382 test "x$prefix" = xNONE && prefix=$ac_default_prefix 4383 # Let make expand exec_prefix. 4384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4385 4386 DEFS=-DHAVE_CONFIG_H 4387 4388 ac_libobjs= 4389 ac_ltlibobjs= 4390 U= 4391 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4392 # 1. Remove the extension, and $U if already installed. 4393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4394 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4396 # will be set to the directory where LIBOBJS objects are built. 4397 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4398 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4399 done 4400 LIBOBJS=$ac_libobjs 4401 4402 LTLIBOBJS=$ac_ltlibobjs 4403 4404 4405 4406 : "${CONFIG_STATUS=./config.status}" 4407 ac_write_fail=0 4408 ac_clean_files_save=$ac_clean_files 4409 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4411 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4412 as_write_fail=0 4413 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4414 #! $SHELL 4415 # Generated by $as_me. 4416 # Run this file to recreate the current configuration. 4417 # Compiler output produced by configure, useful for debugging 4418 # configure, is in config.log if it exists. 4419 4420 debug=false 4421 ac_cs_recheck=false 4422 ac_cs_silent=false 4423 4424 SHELL=\${CONFIG_SHELL-$SHELL} 4425 export SHELL 4426 _ASEOF 4427 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4428 ## -------------------- ## 4429 ## M4sh Initialization. ## 4430 ## -------------------- ## 4431 4432 # Be more Bourne compatible 4433 DUALCASE=1; export DUALCASE # for MKS sh 4434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 4435 emulate sh 4436 NULLCMD=: 4437 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4438 # is contrary to our usage. Disable this feature. 4439 alias -g '${1+"$@"}'='"$@"' 4440 setopt NO_GLOB_SUBST 4441 else 4442 case `(set -o) 2>/dev/null` in #( 4443 *posix*) : 4444 set -o posix ;; #( 4445 *) : 4446 ;; 4447 esac 4448 fi 4449 4450 4451 as_nl=' 4452 ' 4453 export as_nl 4454 # Printing a long string crashes Solaris 7 /usr/bin/printf. 4455 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4456 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4457 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4458 # Prefer a ksh shell builtin over an external printf program on Solaris, 4459 # but without wasting forks for bash or zsh. 4460 if test -z "$BASH_VERSION$ZSH_VERSION" \ 4461 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4462 as_echo='print -r --' 4463 as_echo_n='print -rn --' 4464 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 4465 as_echo='printf %s\n' 4466 as_echo_n='printf %s' 4467 else 4468 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 4469 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 4470 as_echo_n='/usr/ucb/echo -n' 4471 else 4472 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 4473 as_echo_n_body='eval 4474 arg=$1; 4475 case $arg in #( 4476 *"$as_nl"*) 4477 expr "X$arg" : "X\\(.*\\)$as_nl"; 4478 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 4479 esac; 4480 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 4481 ' 4482 export as_echo_n_body 4483 as_echo_n='sh -c $as_echo_n_body as_echo' 4484 fi 4485 export as_echo_body 4486 as_echo='sh -c $as_echo_body as_echo' 4487 fi 4488 4489 # The user is always right. 4490 if test "${PATH_SEPARATOR+set}" != set; then 4491 PATH_SEPARATOR=: 4492 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 4493 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 4494 PATH_SEPARATOR=';' 4495 } 4496 fi 4497 4498 4499 # IFS 4500 # We need space, tab and new line, in precisely that order. Quoting is 4501 # there to prevent editors from complaining about space-tab. 4502 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 4503 # splitting by setting IFS to empty value.) 4504 IFS=" "" $as_nl" 4505 4506 # Find who we are. Look in the path if we contain no directory separator. 4507 as_myself= 4508 case $0 in #(( 4509 *[\\/]* ) as_myself=$0 ;; 4510 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4511 for as_dir in $PATH 4512 do 4513 IFS=$as_save_IFS 4514 test -z "$as_dir" && as_dir=. 4515 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4516 done 4517 IFS=$as_save_IFS 4518 4519 ;; 4520 esac 4521 # We did not find ourselves, most probably we were run as `sh COMMAND' 4522 # in which case we are not to be found in the path. 4523 if test "x$as_myself" = x; then 4524 as_myself=$0 4525 fi 4526 if test ! -f "$as_myself"; then 4527 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4528 exit 1 4529 fi 4530 4531 # Unset variables that we do not need and which cause bugs (e.g. in 4532 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 4533 # suppresses any "Segmentation fault" message there. '((' could 4534 # trigger a bug in pdksh 5.2.14. 4535 for as_var in BASH_ENV ENV MAIL MAILPATH 4536 do eval test x\${$as_var+set} = xset \ 4537 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4538 done 4539 PS1='$ ' 4540 PS2='> ' 4541 PS4='+ ' 4542 4543 # NLS nuisances. 4544 LC_ALL=C 4545 export LC_ALL 4546 LANGUAGE=C 4547 export LANGUAGE 4548 4549 # CDPATH. 4550 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4551 4552 4553 # as_fn_error STATUS ERROR [LINENO LOG_FD] 4554 # ---------------------------------------- 4555 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4556 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4557 # script with STATUS, using 1 if that was 0. 4558 as_fn_error () 4559 { 4560 as_status=$1; test $as_status -eq 0 && as_status=1 4561 if test "$4"; then 4562 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4563 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4564 fi 4565 $as_echo "$as_me: error: $2" >&2 4566 as_fn_exit $as_status 4567 } # as_fn_error 4568 4569 4570 # as_fn_set_status STATUS 4571 # ----------------------- 4572 # Set $? to STATUS, without forking. 4573 as_fn_set_status () 4574 { 4575 return $1 4576 } # as_fn_set_status 4577 4578 # as_fn_exit STATUS 4579 # ----------------- 4580 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 4581 as_fn_exit () 4582 { 4583 set +e 4584 as_fn_set_status $1 4585 exit $1 4586 } # as_fn_exit 4587 4588 # as_fn_unset VAR 4589 # --------------- 4590 # Portably unset VAR. 4591 as_fn_unset () 4592 { 4593 { eval $1=; unset $1;} 4594 } 4595 as_unset=as_fn_unset 4596 # as_fn_append VAR VALUE 4597 # ---------------------- 4598 # Append the text in VALUE to the end of the definition contained in VAR. Take 4599 # advantage of any shell optimizations that allow amortized linear growth over 4600 # repeated appends, instead of the typical quadratic growth present in naive 4601 # implementations. 4602 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 4603 eval 'as_fn_append () 4604 { 4605 eval $1+=\$2 4606 }' 4607 else 4608 as_fn_append () 4609 { 4610 eval $1=\$$1\$2 4611 } 4612 fi # as_fn_append 4613 4614 # as_fn_arith ARG... 4615 # ------------------ 4616 # Perform arithmetic evaluation on the ARGs, and store the result in the 4617 # global $as_val. Take advantage of shells that can avoid forks. The arguments 4618 # must be portable across $(()) and expr. 4619 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 4620 eval 'as_fn_arith () 4621 { 4622 as_val=$(( $* )) 4623 }' 4624 else 4625 as_fn_arith () 4626 { 4627 as_val=`expr "$@" || test $? -eq 1` 4628 } 4629 fi # as_fn_arith 4630 4631 4632 if expr a : '\(a\)' >/dev/null 2>&1 && 4633 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4634 as_expr=expr 4635 else 4636 as_expr=false 4637 fi 4638 4639 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4640 as_basename=basename 4641 else 4642 as_basename=false 4643 fi 4644 4645 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4646 as_dirname=dirname 4647 else 4648 as_dirname=false 4649 fi 4650 4651 as_me=`$as_basename -- "$0" || 4652 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4653 X"$0" : 'X\(//\)$' \| \ 4654 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4655 $as_echo X/"$0" | 4656 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4657 s//\1/ 4658 q 4659 } 4660 /^X\/\(\/\/\)$/{ 4661 s//\1/ 4662 q 4663 } 4664 /^X\/\(\/\).*/{ 4665 s//\1/ 4666 q 4667 } 4668 s/.*/./; q'` 4669 4670 # Avoid depending upon Character Ranges. 4671 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4672 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4673 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4674 as_cr_digits='0123456789' 4675 as_cr_alnum=$as_cr_Letters$as_cr_digits 4676 4677 ECHO_C= ECHO_N= ECHO_T= 4678 case `echo -n x` in #((((( 4679 -n*) 4680 case `echo 'xy\c'` in 4681 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4682 xy) ECHO_C='\c';; 4683 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4684 ECHO_T=' ';; 4685 esac;; 4686 *) 4687 ECHO_N='-n';; 4688 esac 4689 4690 rm -f conf$$ conf$$.exe conf$$.file 4691 if test -d conf$$.dir; then 4692 rm -f conf$$.dir/conf$$.file 4693 else 4694 rm -f conf$$.dir 4695 mkdir conf$$.dir 2>/dev/null 4696 fi 4697 if (echo >conf$$.file) 2>/dev/null; then 4698 if ln -s conf$$.file conf$$ 2>/dev/null; then 4699 as_ln_s='ln -s' 4700 # ... but there are two gotchas: 4701 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4702 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4703 # In both cases, we have to default to `cp -pR'. 4704 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4705 as_ln_s='cp -pR' 4706 elif ln conf$$.file conf$$ 2>/dev/null; then 4707 as_ln_s=ln 4708 else 4709 as_ln_s='cp -pR' 4710 fi 4711 else 4712 as_ln_s='cp -pR' 4713 fi 4714 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4715 rmdir conf$$.dir 2>/dev/null 4716 4717 4718 # as_fn_mkdir_p 4719 # ------------- 4720 # Create "$as_dir" as a directory, including parents if necessary. 4721 as_fn_mkdir_p () 4722 { 4723 4724 case $as_dir in #( 4725 -*) as_dir=./$as_dir;; 4726 esac 4727 test -d "$as_dir" || eval $as_mkdir_p || { 4728 as_dirs= 4729 while :; do 4730 case $as_dir in #( 4731 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 4732 *) as_qdir=$as_dir;; 4733 esac 4734 as_dirs="'$as_qdir' $as_dirs" 4735 as_dir=`$as_dirname -- "$as_dir" || 4736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4737 X"$as_dir" : 'X\(//\)[^/]' \| \ 4738 X"$as_dir" : 'X\(//\)$' \| \ 4739 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4740 $as_echo X"$as_dir" | 4741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4742 s//\1/ 4743 q 4744 } 4745 /^X\(\/\/\)[^/].*/{ 4746 s//\1/ 4747 q 4748 } 4749 /^X\(\/\/\)$/{ 4750 s//\1/ 4751 q 4752 } 4753 /^X\(\/\).*/{ 4754 s//\1/ 4755 q 4756 } 4757 s/.*/./; q'` 4758 test -d "$as_dir" && break 4759 done 4760 test -z "$as_dirs" || eval "mkdir $as_dirs" 4761 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 4762 4763 4764 } # as_fn_mkdir_p 4765 if mkdir -p . 2>/dev/null; then 4766 as_mkdir_p='mkdir -p "$as_dir"' 4767 else 4768 test -d ./-p && rmdir ./-p 4769 as_mkdir_p=false 4770 fi 4771 4772 4773 # as_fn_executable_p FILE 4774 # ----------------------- 4775 # Test if FILE is an executable regular file. 4776 as_fn_executable_p () 4777 { 4778 test -f "$1" && test -x "$1" 4779 } # as_fn_executable_p 4780 as_test_x='test -x' 4781 as_executable_p=as_fn_executable_p 4782 4783 # Sed expression to map a string onto a valid CPP name. 4784 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4785 4786 # Sed expression to map a string onto a valid variable name. 4787 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4788 4789 4790 exec 6>&1 4791 ## ----------------------------------- ## 4792 ## Main body of $CONFIG_STATUS script. ## 4793 ## ----------------------------------- ## 4794 _ASEOF 4795 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 4796 4797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4798 # Save the log message, to keep $0 and so on meaningful, and to 4799 # report actual input values of CONFIG_FILES etc. instead of their 4800 # values after options handling. 4801 ac_log=" 4802 This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was 4803 generated by GNU Autoconf 2.69. Invocation command line was 4804 4805 CONFIG_FILES = $CONFIG_FILES 4806 CONFIG_HEADERS = $CONFIG_HEADERS 4807 CONFIG_LINKS = $CONFIG_LINKS 4808 CONFIG_COMMANDS = $CONFIG_COMMANDS 4809 $ $0 $@ 4810 4811 on `(hostname || uname -n) 2>/dev/null | sed 1q` 4812 " 4813 4814 _ACEOF 4815 4816 case $ac_config_files in *" 4817 "*) set x $ac_config_files; shift; ac_config_files=$*;; 4818 esac 4819 4820 case $ac_config_headers in *" 4821 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 4822 esac 4823 4824 4825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4826 # Files that config.status was made for. 4827 config_files="$ac_config_files" 4828 config_headers="$ac_config_headers" 4829 4830 _ACEOF 4831 4832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4833 ac_cs_usage="\ 4834 \`$as_me' instantiates files and other configuration actions 4835 from templates according to the current configuration. Unless the files 4836 and actions are specified as TAGs, all are instantiated by default. 4837 4838 Usage: $0 [OPTION]... [TAG]... 4839 4840 -h, --help print this help, then exit 4841 -V, --version print version number and configuration settings, then exit 4842 --config print configuration, then exit 4843 -q, --quiet, --silent 4844 do not print progress messages 4845 -d, --debug don't remove temporary files 4846 --recheck update $as_me by reconfiguring in the same conditions 4847 --file=FILE[:TEMPLATE] 4848 instantiate the configuration file FILE 4849 --header=FILE[:TEMPLATE] 4850 instantiate the configuration header FILE 4851 4852 Configuration files: 4853 $config_files 4854 4855 Configuration headers: 4856 $config_headers 4857 4858 Report bugs to <BUG-REPORT-ADDRESS>." 4859 4860 _ACEOF 4861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4862 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4863 ac_cs_version="\\ 4864 FULL-PACKAGE-NAME config.status VERSION 4865 configured by $0, generated by GNU Autoconf 2.69, 4866 with options \\"\$ac_cs_config\\" 4867 4868 Copyright (C) 2012 Free Software Foundation, Inc. 4869 This config.status script is free software; the Free Software Foundation 4870 gives unlimited permission to copy, distribute and modify it." 4871 4872 ac_pwd='$ac_pwd' 4873 srcdir='$srcdir' 4874 test -n "\$AWK" || AWK=awk 4875 _ACEOF 4876 4877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4878 # The default lists apply if the user does not specify any file. 4879 ac_need_defaults=: 4880 while test $# != 0 4881 do 4882 case $1 in 4883 --*=?*) 4884 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4885 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4886 ac_shift=: 4887 ;; 4888 --*=) 4889 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4890 ac_optarg= 4891 ac_shift=: 4892 ;; 4893 *) 4894 ac_option=$1 4895 ac_optarg=$2 4896 ac_shift=shift 4897 ;; 4898 esac 4899 4900 case $ac_option in 4901 # Handling of the options. 4902 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4903 ac_cs_recheck=: ;; 4904 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4905 $as_echo "$ac_cs_version"; exit ;; 4906 --config | --confi | --conf | --con | --co | --c ) 4907 $as_echo "$ac_cs_config"; exit ;; 4908 --debug | --debu | --deb | --de | --d | -d ) 4909 debug=: ;; 4910 --file | --fil | --fi | --f ) 4911 $ac_shift 4912 case $ac_optarg in 4913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4914 '') as_fn_error $? "missing file argument" ;; 4915 esac 4916 as_fn_append CONFIG_FILES " '$ac_optarg'" 4917 ac_need_defaults=false;; 4918 --header | --heade | --head | --hea ) 4919 $ac_shift 4920 case $ac_optarg in 4921 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4922 esac 4923 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 4924 ac_need_defaults=false;; 4925 --he | --h) 4926 # Conflict between --help and --header 4927 as_fn_error $? "ambiguous option: \`$1' 4928 Try \`$0 --help' for more information.";; 4929 --help | --hel | -h ) 4930 $as_echo "$ac_cs_usage"; exit ;; 4931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4932 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4933 ac_cs_silent=: ;; 4934 4935 # This is an error. 4936 -*) as_fn_error $? "unrecognized option: \`$1' 4937 Try \`$0 --help' for more information." ;; 4938 4939 *) as_fn_append ac_config_targets " $1" 4940 ac_need_defaults=false ;; 4941 4942 esac 4943 shift 4944 done 4945 4946 ac_configure_extra_args= 4947 4948 if $ac_cs_silent; then 4949 exec 6>/dev/null 4950 ac_configure_extra_args="$ac_configure_extra_args --silent" 4951 fi 4952 4953 _ACEOF 4954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4955 if \$ac_cs_recheck; then 4956 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4957 shift 4958 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 4959 CONFIG_SHELL='$SHELL' 4960 export CONFIG_SHELL 4961 exec "\$@" 4962 fi 4963 4964 _ACEOF 4965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4966 exec 5>>config.log 4967 { 4968 echo 4969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4970 ## Running $as_me. ## 4971 _ASBOX 4972 $as_echo "$ac_log" 4973 } >&5 4974 4975 _ACEOF 4976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4977 _ACEOF 4978 4979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4980 4981 # Handling of arguments. 4982 for ac_config_target in $ac_config_targets 4983 do 4984 case $ac_config_target in 4985 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 4986 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4987 "c++/Makefile") CONFIG_FILES="$CONFIG_FILES c++/Makefile" ;; 4988 4989 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4990 esac 4991 done 4992 4993 4994 # If the user did not use the arguments to specify the items to instantiate, 4995 # then the envvar interface is used. Set only those that are not. 4996 # We use the long form for the default assignment because of an extremely 4997 # bizarre bug on SunOS 4.1.3. 4998 if $ac_need_defaults; then 4999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5001 fi 5002 5003 # Have a temporary directory for convenience. Make it in the build tree 5004 # simply because there is no reason against having it here, and in addition, 5005 # creating and moving files from /tmp can sometimes cause problems. 5006 # Hook for its removal unless debugging. 5007 # Note that there is a small window in which the directory will not be cleaned: 5008 # after its creation but before its name has been assigned to `$tmp'. 5009 $debug || 5010 { 5011 tmp= ac_tmp= 5012 trap 'exit_status=$? 5013 : "${ac_tmp:=$tmp}" 5014 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 5015 ' 0 5016 trap 'as_fn_exit 1' 1 2 13 15 5017 } 5018 # Create a (secure) tmp directory for tmp files. 5019 5020 { 5021 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5022 test -d "$tmp" 5023 } || 5024 { 5025 tmp=./conf$$-$RANDOM 5026 (umask 077 && mkdir "$tmp") 5027 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5028 ac_tmp=$tmp 5029 5030 # Set up the scripts for CONFIG_FILES section. 5031 # No need to generate them if there are no CONFIG_FILES. 5032 # This happens for instance with `./config.status config.h'. 5033 if test -n "$CONFIG_FILES"; then 5034 5035 5036 ac_cr=`echo X | tr X '\015'` 5037 # On cygwin, bash can eat \r inside `` if the user requested igncr. 5038 # But we know of no other shell where ac_cr would be empty at this 5039 # point, so we can use a bashism as a fallback. 5040 if test "x$ac_cr" = x; then 5041 eval ac_cr=\$\'\\r\' 5042 fi 5043 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5044 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5045 ac_cs_awk_cr='\\r' 5046 else 5047 ac_cs_awk_cr=$ac_cr 5048 fi 5049 5050 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 5051 _ACEOF 5052 5053 5054 { 5055 echo "cat >conf$$subs.awk <<_ACEOF" && 5056 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5057 echo "_ACEOF" 5058 } >conf$$subs.sh || 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5060 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5061 ac_delim='%!_!# ' 5062 for ac_last_try in false false false false false :; do 5063 . ./conf$$subs.sh || 5064 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5065 5066 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5067 if test $ac_delim_n = $ac_delim_num; then 5068 break 5069 elif $ac_last_try; then 5070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5071 else 5072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5073 fi 5074 done 5075 rm -f conf$$subs.sh 5076 5077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5078 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 5079 _ACEOF 5080 sed -n ' 5081 h 5082 s/^/S["/; s/!.*/"]=/ 5083 p 5084 g 5085 s/^[^!]*!// 5086 :repl 5087 t repl 5088 s/'"$ac_delim"'$// 5089 t delim 5090 :nl 5091 h 5092 s/\(.\{148\}\)..*/\1/ 5093 t more1 5094 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5095 p 5096 n 5097 b repl 5098 :more1 5099 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5100 p 5101 g 5102 s/.\{148\}// 5103 t nl 5104 :delim 5105 h 5106 s/\(.\{148\}\)..*/\1/ 5107 t more2 5108 s/["\\]/\\&/g; s/^/"/; s/$/"/ 5109 p 5110 b 5111 :more2 5112 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5113 p 5114 g 5115 s/.\{148\}// 5116 t delim 5117 ' <conf$$subs.awk | sed ' 5118 /^[^""]/{ 5119 N 5120 s/\n// 5121 } 5122 ' >>$CONFIG_STATUS || ac_write_fail=1 5123 rm -f conf$$subs.awk 5124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5125 _ACAWK 5126 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 5127 for (key in S) S_is_set[key] = 1 5128 FS = "" 5129 5130 } 5131 { 5132 line = $ 0 5133 nfields = split(line, field, "@") 5134 substed = 0 5135 len = length(field[1]) 5136 for (i = 2; i < nfields; i++) { 5137 key = field[i] 5138 keylen = length(key) 5139 if (S_is_set[key]) { 5140 value = S[key] 5141 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5142 len += length(value) + length(field[++i]) 5143 substed = 1 5144 } else 5145 len += 1 + keylen 5146 } 5147 5148 print line 5149 } 5150 5151 _ACAWK 5152 _ACEOF 5153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5154 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5155 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5156 else 5157 cat 5158 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 5159 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 5160 _ACEOF 5161 5162 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 5163 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 5164 # trailing colons and then remove the whole line if VPATH becomes empty 5165 # (actually we leave an empty line to preserve line numbers). 5166 if test "x$srcdir" = x.; then 5167 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 5168 h 5169 s/// 5170 s/^/:/ 5171 s/[ ]*$/:/ 5172 s/:\$(srcdir):/:/g 5173 s/:\${srcdir}:/:/g 5174 s/:@srcdir@:/:/g 5175 s/^:*// 5176 s/:*$// 5177 x 5178 s/\(=[ ]*\).*/\1/ 5179 G 5180 s/\n// 5181 s/^[^=]*=[ ]*$// 5182 }' 5183 fi 5184 5185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5186 fi # test -n "$CONFIG_FILES" 5187 5188 # Set up the scripts for CONFIG_HEADERS section. 5189 # No need to generate them if there are no CONFIG_HEADERS. 5190 # This happens for instance with `./config.status Makefile'. 5191 if test -n "$CONFIG_HEADERS"; then 5192 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 5193 BEGIN { 5194 _ACEOF 5195 5196 # Transform confdefs.h into an awk script `defines.awk', embedded as 5197 # here-document in config.status, that substitutes the proper values into 5198 # config.h.in to produce config.h. 5199 5200 # Create a delimiter string that does not exist in confdefs.h, to ease 5201 # handling of long lines. 5202 ac_delim='%!_!# ' 5203 for ac_last_try in false false :; do 5204 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 5205 if test -z "$ac_tt"; then 5206 break 5207 elif $ac_last_try; then 5208 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5209 else 5210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5211 fi 5212 done 5213 5214 # For the awk script, D is an array of macro values keyed by name, 5215 # likewise P contains macro parameters if any. Preserve backslash 5216 # newline sequences. 5217 5218 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5219 sed -n ' 5220 s/.\{148\}/&'"$ac_delim"'/g 5221 t rset 5222 :rset 5223 s/^[ ]*#[ ]*define[ ][ ]*/ / 5224 t def 5225 d 5226 :def 5227 s/\\$// 5228 t bsnl 5229 s/["\\]/\\&/g 5230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5231 D["\1"]=" \3"/p 5232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5233 d 5234 :bsnl 5235 s/["\\]/\\&/g 5236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5237 D["\1"]=" \3\\\\\\n"\\/p 5238 t cont 5239 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5240 t cont 5241 d 5242 :cont 5243 n 5244 s/.\{148\}/&'"$ac_delim"'/g 5245 t clear 5246 :clear 5247 s/\\$// 5248 t bsnlc 5249 s/["\\]/\\&/g; s/^/"/; s/$/"/p 5250 d 5251 :bsnlc 5252 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5253 b cont 5254 ' <confdefs.h | sed ' 5255 s/'"$ac_delim"'/"\\\ 5256 "/g' >>$CONFIG_STATUS || ac_write_fail=1 5257 5258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5259 for (key in D) D_is_set[key] = 1 5260 FS = "" 5261 } 5262 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5263 line = \$ 0 5264 split(line, arg, " ") 5265 if (arg[1] == "#") { 5266 defundef = arg[2] 5267 mac1 = arg[3] 5268 } else { 5269 defundef = substr(arg[1], 2) 5270 mac1 = arg[2] 5271 } 5272 split(mac1, mac2, "(") #) 5273 macro = mac2[1] 5274 prefix = substr(line, 1, index(line, defundef) - 1) 5275 if (D_is_set[macro]) { 5276 # Preserve the white space surrounding the "#". 5277 print prefix "define", macro P[macro] D[macro] 5278 next 5279 } else { 5280 # Replace #undef with comments. This is necessary, for example, 5281 # in the case of _POSIX_SOURCE, which is predefined and required 5282 # on some systems where configure will not decide to define it. 5283 if (defundef == "undef") { 5284 print "/*", prefix defundef, macro, "*/" 5285 next 5286 } 5287 } 5288 } 5289 { print } 5290 _ACAWK 5291 _ACEOF 5292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5293 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 5294 fi # test -n "$CONFIG_HEADERS" 5295 5296 5297 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 5298 shift 5299 for ac_tag 5300 do 5301 case $ac_tag in 5302 :[FHLC]) ac_mode=$ac_tag; continue;; 5303 esac 5304 case $ac_mode$ac_tag in 5305 :[FHL]*:*);; 5306 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 5307 :[FH]-) ac_tag=-:-;; 5308 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5309 esac 5310 ac_save_IFS=$IFS 5311 IFS=: 5312 set x $ac_tag 5313 IFS=$ac_save_IFS 5314 shift 5315 ac_file=$1 5316 shift 5317 5318 case $ac_mode in 5319 :L) ac_source=$1;; 5320 :[FH]) 5321 ac_file_inputs= 5322 for ac_f 5323 do 5324 case $ac_f in 5325 -) ac_f="$ac_tmp/stdin";; 5326 *) # Look for the file first in the build tree, then in the source tree 5327 # (if the path is not absolute). The absolute path cannot be DOS-style, 5328 # because $ac_f cannot contain `:'. 5329 test -f "$ac_f" || 5330 case $ac_f in 5331 [\\/$]*) false;; 5332 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5333 esac || 5334 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 5335 esac 5336 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5337 as_fn_append ac_file_inputs " '$ac_f'" 5338 done 5339 5340 # Let's still pretend it is `configure' which instantiates (i.e., don't 5341 # use $as_me), people would be surprised to read: 5342 # /* config.h. Generated by config.status. */ 5343 configure_input='Generated from '` 5344 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5345 `' by configure.' 5346 if test x"$ac_file" != x-; then 5347 configure_input="$ac_file. $configure_input" 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 5349 $as_echo "$as_me: creating $ac_file" >&6;} 5350 fi 5351 # Neutralize special characters interpreted by sed in replacement strings. 5352 case $configure_input in #( 5353 *\&* | *\|* | *\\* ) 5354 ac_sed_conf_input=`$as_echo "$configure_input" | 5355 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5356 *) ac_sed_conf_input=$configure_input;; 5357 esac 5358 5359 case $ac_tag in 5360 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 5361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5362 esac 5363 ;; 5364 esac 5365 5366 ac_dir=`$as_dirname -- "$ac_file" || 5367 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5368 X"$ac_file" : 'X\(//\)[^/]' \| \ 5369 X"$ac_file" : 'X\(//\)$' \| \ 5370 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5371 $as_echo X"$ac_file" | 5372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5373 s//\1/ 5374 q 5375 } 5376 /^X\(\/\/\)[^/].*/{ 5377 s//\1/ 5378 q 5379 } 5380 /^X\(\/\/\)$/{ 5381 s//\1/ 5382 q 5383 } 5384 /^X\(\/\).*/{ 5385 s//\1/ 5386 q 5387 } 5388 s/.*/./; q'` 5389 as_dir="$ac_dir"; as_fn_mkdir_p 5390 ac_builddir=. 5391 5392 case "$ac_dir" in 5393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5394 *) 5395 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 5396 # A ".." for each directory in $ac_dir_suffix. 5397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 5398 case $ac_top_builddir_sub in 5399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5401 esac ;; 5402 esac 5403 ac_abs_top_builddir=$ac_pwd 5404 ac_abs_builddir=$ac_pwd$ac_dir_suffix 5405 # for backward compatibility: 5406 ac_top_builddir=$ac_top_build_prefix 5407 5408 case $srcdir in 5409 .) # We are building in place. 5410 ac_srcdir=. 5411 ac_top_srcdir=$ac_top_builddir_sub 5412 ac_abs_top_srcdir=$ac_pwd ;; 5413 [\\/]* | ?:[\\/]* ) # Absolute name. 5414 ac_srcdir=$srcdir$ac_dir_suffix; 5415 ac_top_srcdir=$srcdir 5416 ac_abs_top_srcdir=$srcdir ;; 5417 *) # Relative name. 5418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5419 ac_top_srcdir=$ac_top_build_prefix$srcdir 5420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5421 esac 5422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5423 5424 5425 case $ac_mode in 5426 :F) 5427 # 5428 # CONFIG_FILE 5429 # 5430 5431 _ACEOF 5432 5433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5434 # If the template does not know about datarootdir, expand it. 5435 # FIXME: This hack should be removed a few years after 2.60. 5436 ac_datarootdir_hack=; ac_datarootdir_seen= 5437 ac_sed_dataroot=' 5438 /datarootdir/ { 5439 p 5440 q 5441 } 5442 /@datadir@/p 5443 /@docdir@/p 5444 /@infodir@/p 5445 /@localedir@/p 5446 /@mandir@/p' 5447 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 5448 *datarootdir*) ac_datarootdir_seen=yes;; 5449 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5451 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5452 _ACEOF 5453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5454 ac_datarootdir_hack=' 5455 s&@datadir@&$datadir&g 5456 s&@docdir@&$docdir&g 5457 s&@infodir@&$infodir&g 5458 s&@localedir@&$localedir&g 5459 s&@mandir@&$mandir&g 5460 s&\\\${datarootdir}&$datarootdir&g' ;; 5461 esac 5462 _ACEOF 5463 5464 # Neutralize VPATH when `$srcdir' = `.'. 5465 # Shell code in configure.ac might set extrasub. 5466 # FIXME: do we really want to maintain this feature? 5467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5468 ac_sed_extra="$ac_vpsub 5469 $extrasub 5470 _ACEOF 5471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5472 :t 5473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5474 s|@configure_input@|$ac_sed_conf_input|;t t 5475 s&@top_builddir@&$ac_top_builddir_sub&;t t 5476 s&@top_build_prefix@&$ac_top_build_prefix&;t t 5477 s&@srcdir@&$ac_srcdir&;t t 5478 s&@abs_srcdir@&$ac_abs_srcdir&;t t 5479 s&@top_srcdir@&$ac_top_srcdir&;t t 5480 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 5481 s&@builddir@&$ac_builddir&;t t 5482 s&@abs_builddir@&$ac_abs_builddir&;t t 5483 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 5484 $ac_datarootdir_hack 5485 " 5486 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 5487 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5488 5489 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5490 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 5491 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 5492 "$ac_tmp/out"`; test -z "$ac_out"; } && 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5494 which seems to be undefined. Please make sure it is defined" >&5 5495 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5496 which seems to be undefined. Please make sure it is defined" >&2;} 5497 5498 rm -f "$ac_tmp/stdin" 5499 case $ac_file in 5500 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 5501 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 5502 esac \ 5503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5504 ;; 5505 :H) 5506 # 5507 # CONFIG_HEADER 5508 # 5509 if test x"$ac_file" != x-; then 5510 { 5511 $as_echo "/* $configure_input */" \ 5512 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 5513 } >"$ac_tmp/config.h" \ 5514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5515 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 5517 $as_echo "$as_me: $ac_file is unchanged" >&6;} 5518 else 5519 rm -f "$ac_file" 5520 mv "$ac_tmp/config.h" "$ac_file" \ 5521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5522 fi 5523 else 5524 $as_echo "/* $configure_input */" \ 5525 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 5526 || as_fn_error $? "could not create -" "$LINENO" 5 5527 fi 5528 ;; 5529 5530 5531 esac 5532 5533 done # for ac_tag 5534 5535 5536 as_fn_exit 0 5537 _ACEOF 5538 ac_clean_files=$ac_clean_files_save 5539 5540 test $ac_write_fail = 0 || 5541 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 5542 5543 5544 # configure is writing to config.log, and then calls config.status. 5545 # config.status does its own redirection, appending to config.log. 5546 # Unfortunately, on DOS this fails, as config.log is still kept open 5547 # by configure, so config.status won't be able to write to it; its 5548 # output is simply discarded. So we exec the FD to /dev/null, 5549 # effectively closing config.log, so it can be properly (re)opened and 5550 # appended to by config.status. When coming back to configure, we 5551 # need to make the FD available again. 5552 if test "$no_create" != yes; then 5553 ac_cs_success=: 5554 ac_config_status_args= 5555 test "$silent" = yes && 5556 ac_config_status_args="$ac_config_status_args --quiet" 5557 exec 5>/dev/null 5558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5559 exec 5>>config.log 5560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5561 # would make configure fail if this is the last instruction. 5562 $ac_cs_success || as_fn_exit 1 5563 fi 5564 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5566 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5567 fi 5568