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