1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for cgdb 0.8.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='cgdb' 579PACKAGE_TARNAME='cgdb' 580PACKAGE_VERSION='0.8.0' 581PACKAGE_STRING='cgdb 0.8.0' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_subst_vars='am__EXEEXT_FALSE 622am__EXEEXT_TRUE 623LTLIBOBJS 624LIBOBJS 625RL_MINOR 626RL_MAJOR 627RL_VERSION 628HAS_MAKEINFO 629EGREP 630GREP 631CPP 632host_os 633host_vendor 634host_cpu 635host 636build_os 637build_vendor 638build_cpu 639build 640YFLAGS 641YACC 642LEXLIB 643LEX_OUTPUT_ROOT 644LEX 645RANLIB 646am__fastdepCXX_FALSE 647am__fastdepCXX_TRUE 648CXXDEPMODE 649ac_ct_CXX 650CXXFLAGS 651CXX 652am__fastdepCC_FALSE 653am__fastdepCC_TRUE 654CCDEPMODE 655am__nodep 656AMDEPBACKSLASH 657AMDEP_FALSE 658AMDEP_TRUE 659am__quote 660am__include 661DEPDIR 662OBJEXT 663EXEEXT 664ac_ct_CC 665CPPFLAGS 666LDFLAGS 667CFLAGS 668CC 669AM_BACKSLASH 670AM_DEFAULT_VERBOSITY 671AM_DEFAULT_V 672AM_V 673am__untar 674am__tar 675AMTAR 676am__leading_dot 677SET_MAKE 678AWK 679mkdir_p 680MKDIR_P 681INSTALL_STRIP_PROGRAM 682STRIP 683install_sh 684MAKEINFO 685AUTOHEADER 686AUTOMAKE 687AUTOCONF 688ACLOCAL 689VERSION 690PACKAGE 691CYGPATH_W 692am__isrc 693INSTALL_DATA 694INSTALL_SCRIPT 695INSTALL_PROGRAM 696target_alias 697host_alias 698build_alias 699LIBS 700ECHO_T 701ECHO_N 702ECHO_C 703DEFS 704mandir 705localedir 706libdir 707psdir 708pdfdir 709dvidir 710htmldir 711infodir 712docdir 713oldincludedir 714includedir 715runstatedir 716localstatedir 717sharedstatedir 718sysconfdir 719datadir 720datarootdir 721libexecdir 722sbindir 723bindir 724program_transform_name 725prefix 726exec_prefix 727PACKAGE_URL 728PACKAGE_BUGREPORT 729PACKAGE_STRING 730PACKAGE_VERSION 731PACKAGE_TARNAME 732PACKAGE_NAME 733PATH_SEPARATOR 734SHELL' 735ac_subst_files='' 736ac_user_opts=' 737enable_option_checking 738enable_silent_rules 739enable_dependency_tracking 740with_readline 741with_ncurses 742with_curses 743' 744 ac_precious_vars='build_alias 745host_alias 746target_alias 747CC 748CFLAGS 749LDFLAGS 750LIBS 751CPPFLAGS 752CXX 753CXXFLAGS 754CCC 755YACC 756YFLAGS 757CPP' 758 759 760# Initialize some variables set by options. 761ac_init_help= 762ac_init_version=false 763ac_unrecognized_opts= 764ac_unrecognized_sep= 765# The variables have the same names as the options, with 766# dashes changed to underlines. 767cache_file=/dev/null 768exec_prefix=NONE 769no_create= 770no_recursion= 771prefix=NONE 772program_prefix=NONE 773program_suffix=NONE 774program_transform_name=s,x,x, 775silent= 776site= 777srcdir= 778verbose= 779x_includes=NONE 780x_libraries=NONE 781 782# Installation directory options. 783# These are left unexpanded so users can "make install exec_prefix=/foo" 784# and all the variables that are supposed to be based on exec_prefix 785# by default will actually change. 786# Use braces instead of parens because sh, perl, etc. also accept them. 787# (The list follows the same order as the GNU Coding Standards.) 788bindir='${exec_prefix}/bin' 789sbindir='${exec_prefix}/sbin' 790libexecdir='${exec_prefix}/libexec' 791datarootdir='${prefix}/share' 792datadir='${datarootdir}' 793sysconfdir='${prefix}/etc' 794sharedstatedir='${prefix}/com' 795localstatedir='${prefix}/var' 796runstatedir='${localstatedir}/run' 797includedir='${prefix}/include' 798oldincludedir='/usr/include' 799docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 800infodir='${datarootdir}/info' 801htmldir='${docdir}' 802dvidir='${docdir}' 803pdfdir='${docdir}' 804psdir='${docdir}' 805libdir='${exec_prefix}/lib' 806localedir='${datarootdir}/locale' 807mandir='${datarootdir}/man' 808 809ac_prev= 810ac_dashdash= 811for ac_option 812do 813 # If the previous option needs an argument, assign it. 814 if test -n "$ac_prev"; then 815 eval $ac_prev=\$ac_option 816 ac_prev= 817 continue 818 fi 819 820 case $ac_option in 821 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 822 *=) ac_optarg= ;; 823 *) ac_optarg=yes ;; 824 esac 825 826 # Accept the important Cygnus configure options, so we can diagnose typos. 827 828 case $ac_dashdash$ac_option in 829 --) 830 ac_dashdash=yes ;; 831 832 -bindir | --bindir | --bindi | --bind | --bin | --bi) 833 ac_prev=bindir ;; 834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 835 bindir=$ac_optarg ;; 836 837 -build | --build | --buil | --bui | --bu) 838 ac_prev=build_alias ;; 839 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 840 build_alias=$ac_optarg ;; 841 842 -cache-file | --cache-file | --cache-fil | --cache-fi \ 843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 844 ac_prev=cache_file ;; 845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 847 cache_file=$ac_optarg ;; 848 849 --config-cache | -C) 850 cache_file=config.cache ;; 851 852 -datadir | --datadir | --datadi | --datad) 853 ac_prev=datadir ;; 854 -datadir=* | --datadir=* | --datadi=* | --datad=*) 855 datadir=$ac_optarg ;; 856 857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 858 | --dataroo | --dataro | --datar) 859 ac_prev=datarootdir ;; 860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 862 datarootdir=$ac_optarg ;; 863 864 -disable-* | --disable-*) 865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 866 # Reject names that are not valid shell variable names. 867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 868 as_fn_error $? "invalid feature name: $ac_useropt" 869 ac_useropt_orig=$ac_useropt 870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 871 case $ac_user_opts in 872 *" 873"enable_$ac_useropt" 874"*) ;; 875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 876 ac_unrecognized_sep=', ';; 877 esac 878 eval enable_$ac_useropt=no ;; 879 880 -docdir | --docdir | --docdi | --doc | --do) 881 ac_prev=docdir ;; 882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 883 docdir=$ac_optarg ;; 884 885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 886 ac_prev=dvidir ;; 887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 888 dvidir=$ac_optarg ;; 889 890 -enable-* | --enable-*) 891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 892 # Reject names that are not valid shell variable names. 893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 894 as_fn_error $? "invalid feature name: $ac_useropt" 895 ac_useropt_orig=$ac_useropt 896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 897 case $ac_user_opts in 898 *" 899"enable_$ac_useropt" 900"*) ;; 901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 902 ac_unrecognized_sep=', ';; 903 esac 904 eval enable_$ac_useropt=\$ac_optarg ;; 905 906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 908 | --exec | --exe | --ex) 909 ac_prev=exec_prefix ;; 910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 912 | --exec=* | --exe=* | --ex=*) 913 exec_prefix=$ac_optarg ;; 914 915 -gas | --gas | --ga | --g) 916 # Obsolete; use --with-gas. 917 with_gas=yes ;; 918 919 -help | --help | --hel | --he | -h) 920 ac_init_help=long ;; 921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 922 ac_init_help=recursive ;; 923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 924 ac_init_help=short ;; 925 926 -host | --host | --hos | --ho) 927 ac_prev=host_alias ;; 928 -host=* | --host=* | --hos=* | --ho=*) 929 host_alias=$ac_optarg ;; 930 931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 932 ac_prev=htmldir ;; 933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 934 | --ht=*) 935 htmldir=$ac_optarg ;; 936 937 -includedir | --includedir | --includedi | --included | --include \ 938 | --includ | --inclu | --incl | --inc) 939 ac_prev=includedir ;; 940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 941 | --includ=* | --inclu=* | --incl=* | --inc=*) 942 includedir=$ac_optarg ;; 943 944 -infodir | --infodir | --infodi | --infod | --info | --inf) 945 ac_prev=infodir ;; 946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 947 infodir=$ac_optarg ;; 948 949 -libdir | --libdir | --libdi | --libd) 950 ac_prev=libdir ;; 951 -libdir=* | --libdir=* | --libdi=* | --libd=*) 952 libdir=$ac_optarg ;; 953 954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 955 | --libexe | --libex | --libe) 956 ac_prev=libexecdir ;; 957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 958 | --libexe=* | --libex=* | --libe=*) 959 libexecdir=$ac_optarg ;; 960 961 -localedir | --localedir | --localedi | --localed | --locale) 962 ac_prev=localedir ;; 963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 964 localedir=$ac_optarg ;; 965 966 -localstatedir | --localstatedir | --localstatedi | --localstated \ 967 | --localstate | --localstat | --localsta | --localst | --locals) 968 ac_prev=localstatedir ;; 969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 971 localstatedir=$ac_optarg ;; 972 973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 974 ac_prev=mandir ;; 975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 976 mandir=$ac_optarg ;; 977 978 -nfp | --nfp | --nf) 979 # Obsolete; use --without-fp. 980 with_fp=no ;; 981 982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 983 | --no-cr | --no-c | -n) 984 no_create=yes ;; 985 986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 988 no_recursion=yes ;; 989 990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 992 | --oldin | --oldi | --old | --ol | --o) 993 ac_prev=oldincludedir ;; 994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 997 oldincludedir=$ac_optarg ;; 998 999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1000 ac_prev=prefix ;; 1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1002 prefix=$ac_optarg ;; 1003 1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1005 | --program-pre | --program-pr | --program-p) 1006 ac_prev=program_prefix ;; 1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1009 program_prefix=$ac_optarg ;; 1010 1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1012 | --program-suf | --program-su | --program-s) 1013 ac_prev=program_suffix ;; 1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1016 program_suffix=$ac_optarg ;; 1017 1018 -program-transform-name | --program-transform-name \ 1019 | --program-transform-nam | --program-transform-na \ 1020 | --program-transform-n | --program-transform- \ 1021 | --program-transform | --program-transfor \ 1022 | --program-transfo | --program-transf \ 1023 | --program-trans | --program-tran \ 1024 | --progr-tra | --program-tr | --program-t) 1025 ac_prev=program_transform_name ;; 1026 -program-transform-name=* | --program-transform-name=* \ 1027 | --program-transform-nam=* | --program-transform-na=* \ 1028 | --program-transform-n=* | --program-transform-=* \ 1029 | --program-transform=* | --program-transfor=* \ 1030 | --program-transfo=* | --program-transf=* \ 1031 | --program-trans=* | --program-tran=* \ 1032 | --progr-tra=* | --program-tr=* | --program-t=*) 1033 program_transform_name=$ac_optarg ;; 1034 1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1036 ac_prev=pdfdir ;; 1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1038 pdfdir=$ac_optarg ;; 1039 1040 -psdir | --psdir | --psdi | --psd | --ps) 1041 ac_prev=psdir ;; 1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1043 psdir=$ac_optarg ;; 1044 1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1046 | -silent | --silent | --silen | --sile | --sil) 1047 silent=yes ;; 1048 1049 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1050 | --runstate | --runstat | --runsta | --runst | --runs \ 1051 | --run | --ru | --r) 1052 ac_prev=runstatedir ;; 1053 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1054 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1055 | --run=* | --ru=* | --r=*) 1056 runstatedir=$ac_optarg ;; 1057 1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1059 ac_prev=sbindir ;; 1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1061 | --sbi=* | --sb=*) 1062 sbindir=$ac_optarg ;; 1063 1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1066 | --sharedst | --shareds | --shared | --share | --shar \ 1067 | --sha | --sh) 1068 ac_prev=sharedstatedir ;; 1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1072 | --sha=* | --sh=*) 1073 sharedstatedir=$ac_optarg ;; 1074 1075 -site | --site | --sit) 1076 ac_prev=site ;; 1077 -site=* | --site=* | --sit=*) 1078 site=$ac_optarg ;; 1079 1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1081 ac_prev=srcdir ;; 1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1083 srcdir=$ac_optarg ;; 1084 1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1086 | --syscon | --sysco | --sysc | --sys | --sy) 1087 ac_prev=sysconfdir ;; 1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1090 sysconfdir=$ac_optarg ;; 1091 1092 -target | --target | --targe | --targ | --tar | --ta | --t) 1093 ac_prev=target_alias ;; 1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1095 target_alias=$ac_optarg ;; 1096 1097 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1098 verbose=yes ;; 1099 1100 -version | --version | --versio | --versi | --vers | -V) 1101 ac_init_version=: ;; 1102 1103 -with-* | --with-*) 1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1105 # Reject names that are not valid shell variable names. 1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1107 as_fn_error $? "invalid package name: $ac_useropt" 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"with_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval with_$ac_useropt=\$ac_optarg ;; 1118 1119 -without-* | --without-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error $? "invalid package name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"with_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval with_$ac_useropt=no ;; 1134 1135 --x) 1136 # Obsolete; use --with-x. 1137 with_x=yes ;; 1138 1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1140 | --x-incl | --x-inc | --x-in | --x-i) 1141 ac_prev=x_includes ;; 1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1144 x_includes=$ac_optarg ;; 1145 1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1148 ac_prev=x_libraries ;; 1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1151 x_libraries=$ac_optarg ;; 1152 1153 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1154Try \`$0 --help' for more information" 1155 ;; 1156 1157 *=*) 1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1159 # Reject names that are not valid shell variable names. 1160 case $ac_envvar in #( 1161 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1163 esac 1164 eval $ac_envvar=\$ac_optarg 1165 export $ac_envvar ;; 1166 1167 *) 1168 # FIXME: should be removed in autoconf 3.0. 1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1173 ;; 1174 1175 esac 1176done 1177 1178if test -n "$ac_prev"; then 1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1180 as_fn_error $? "missing argument to $ac_option" 1181fi 1182 1183if test -n "$ac_unrecognized_opts"; then 1184 case $enable_option_checking in 1185 no) ;; 1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1188 esac 1189fi 1190 1191# Check all directory arguments for consistency. 1192for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1193 datadir sysconfdir sharedstatedir localstatedir includedir \ 1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1195 libdir localedir mandir runstatedir 1196do 1197 eval ac_val=\$$ac_var 1198 # Remove trailing slashes. 1199 case $ac_val in 1200 */ ) 1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1202 eval $ac_var=\$ac_val;; 1203 esac 1204 # Be sure to have absolute directory names. 1205 case $ac_val in 1206 [\\/$]* | ?:[\\/]* ) continue;; 1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1208 esac 1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1210done 1211 1212# There might be people who depend on the old broken behavior: `$host' 1213# used to hold the argument of --host etc. 1214# FIXME: To remove some day. 1215build=$build_alias 1216host=$host_alias 1217target=$target_alias 1218 1219# FIXME: To remove some day. 1220if test "x$host_alias" != x; then 1221 if test "x$build_alias" = x; then 1222 cross_compiling=maybe 1223 elif test "x$build_alias" != "x$host_alias"; then 1224 cross_compiling=yes 1225 fi 1226fi 1227 1228ac_tool_prefix= 1229test -n "$host_alias" && ac_tool_prefix=$host_alias- 1230 1231test "$silent" = yes && exec 6>/dev/null 1232 1233 1234ac_pwd=`pwd` && test -n "$ac_pwd" && 1235ac_ls_di=`ls -di .` && 1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1237 as_fn_error $? "working directory cannot be determined" 1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1239 as_fn_error $? "pwd does not report name of working directory" 1240 1241 1242# Find the source files, if location was not specified. 1243if test -z "$srcdir"; then 1244 ac_srcdir_defaulted=yes 1245 # Try the directory containing this script, then the parent directory. 1246 ac_confdir=`$as_dirname -- "$as_myself" || 1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1248 X"$as_myself" : 'X\(//\)[^/]' \| \ 1249 X"$as_myself" : 'X\(//\)$' \| \ 1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1251$as_echo X"$as_myself" | 1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)[^/].*/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\).*/{ 1265 s//\1/ 1266 q 1267 } 1268 s/.*/./; q'` 1269 srcdir=$ac_confdir 1270 if test ! -r "$srcdir/$ac_unique_file"; then 1271 srcdir=.. 1272 fi 1273else 1274 ac_srcdir_defaulted=no 1275fi 1276if test ! -r "$srcdir/$ac_unique_file"; then 1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1279fi 1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1281ac_abs_confdir=`( 1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1283 pwd)` 1284# When building in place, set srcdir=. 1285if test "$ac_abs_confdir" = "$ac_pwd"; then 1286 srcdir=. 1287fi 1288# Remove unnecessary trailing slashes from srcdir. 1289# Double slashes in file names in object file debugging info 1290# mess up M-x gdb in Emacs. 1291case $srcdir in 1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1293esac 1294for ac_var in $ac_precious_vars; do 1295 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_env_${ac_var}_value=\$${ac_var} 1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1299done 1300 1301# 1302# Report the --help message. 1303# 1304if test "$ac_init_help" = "long"; then 1305 # Omit some internal or obsolete options to make the list less imposing. 1306 # This message is too long to be a string in the A/UX 3.1 sh. 1307 cat <<_ACEOF 1308\`configure' configures cgdb 0.8.0 to adapt to many kinds of systems. 1309 1310Usage: $0 [OPTION]... [VAR=VALUE]... 1311 1312To assign environment variables (e.g., CC, CFLAGS...), specify them as 1313VAR=VALUE. See below for descriptions of some of the useful variables. 1314 1315Defaults for the options are specified in brackets. 1316 1317Configuration: 1318 -h, --help display this help and exit 1319 --help=short display options specific to this package 1320 --help=recursive display the short help of all the included packages 1321 -V, --version display version information and exit 1322 -q, --quiet, --silent do not print \`checking ...' messages 1323 --cache-file=FILE cache test results in FILE [disabled] 1324 -C, --config-cache alias for \`--cache-file=config.cache' 1325 -n, --no-create do not create output files 1326 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1327 1328Installation directories: 1329 --prefix=PREFIX install architecture-independent files in PREFIX 1330 [$ac_default_prefix] 1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1332 [PREFIX] 1333 1334By default, \`make install' will install all the files in 1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1336an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1337for instance \`--prefix=\$HOME'. 1338 1339For better control, use the options below. 1340 1341Fine tuning of the installation directories: 1342 --bindir=DIR user executables [EPREFIX/bin] 1343 --sbindir=DIR system admin executables [EPREFIX/sbin] 1344 --libexecdir=DIR program executables [EPREFIX/libexec] 1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1348 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1349 --libdir=DIR object code libraries [EPREFIX/lib] 1350 --includedir=DIR C header files [PREFIX/include] 1351 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1352 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1353 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1354 --infodir=DIR info documentation [DATAROOTDIR/info] 1355 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1356 --mandir=DIR man documentation [DATAROOTDIR/man] 1357 --docdir=DIR documentation root [DATAROOTDIR/doc/cgdb] 1358 --htmldir=DIR html documentation [DOCDIR] 1359 --dvidir=DIR dvi documentation [DOCDIR] 1360 --pdfdir=DIR pdf documentation [DOCDIR] 1361 --psdir=DIR ps documentation [DOCDIR] 1362_ACEOF 1363 1364 cat <<\_ACEOF 1365 1366Program names: 1367 --program-prefix=PREFIX prepend PREFIX to installed program names 1368 --program-suffix=SUFFIX append SUFFIX to installed program names 1369 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1370 1371System types: 1372 --build=BUILD configure for building on BUILD [guessed] 1373 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1374_ACEOF 1375fi 1376 1377if test -n "$ac_init_help"; then 1378 case $ac_init_help in 1379 short | recursive ) echo "Configuration of cgdb 0.8.0:";; 1380 esac 1381 cat <<\_ACEOF 1382 1383Optional Features: 1384 --disable-option-checking ignore unrecognized --enable/--with options 1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1387 --enable-silent-rules less verbose build output (undo: "make V=1") 1388 --disable-silent-rules verbose build output (undo: "make V=0") 1389 --enable-dependency-tracking 1390 do not reject slow dependency extractors 1391 --disable-dependency-tracking 1392 speeds up one-time build 1393 1394Optional Packages: 1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1397 --with-readline=PREFIX Use system installed readline library 1398 --with-ncurses=PREFIX Use system installed ncurses library 1399 --with-curses=PREFIX Use system installed curses library 1400 1401Some influential environment variables: 1402 CC C compiler command 1403 CFLAGS C compiler flags 1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1405 nonstandard directory <lib dir> 1406 LIBS libraries to pass to the linker, e.g. -l<library> 1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1408 you have headers in a nonstandard directory <include dir> 1409 CXX C++ compiler command 1410 CXXFLAGS C++ compiler flags 1411 YACC The `Yet Another Compiler Compiler' implementation to use. 1412 Defaults to the first program found out of: `bison -y', `byacc', 1413 `yacc'. 1414 YFLAGS The list of arguments that will be passed by default to $YACC. 1415 This script will default YFLAGS to the empty string to avoid a 1416 default value of `-d' given by some make applications. 1417 CPP C preprocessor 1418 1419Use these variables to override the choices made by `configure' or to help 1420it to find libraries and programs with nonstandard names/locations. 1421 1422Report bugs to the package provider. 1423_ACEOF 1424ac_status=$? 1425fi 1426 1427if test "$ac_init_help" = "recursive"; then 1428 # If there are subdirs, report their specific --help. 1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1430 test -d "$ac_dir" || 1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1432 continue 1433 ac_builddir=. 1434 1435case "$ac_dir" in 1436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1437*) 1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1439 # A ".." for each directory in $ac_dir_suffix. 1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1441 case $ac_top_builddir_sub in 1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1444 esac ;; 1445esac 1446ac_abs_top_builddir=$ac_pwd 1447ac_abs_builddir=$ac_pwd$ac_dir_suffix 1448# for backward compatibility: 1449ac_top_builddir=$ac_top_build_prefix 1450 1451case $srcdir in 1452 .) # We are building in place. 1453 ac_srcdir=. 1454 ac_top_srcdir=$ac_top_builddir_sub 1455 ac_abs_top_srcdir=$ac_pwd ;; 1456 [\\/]* | ?:[\\/]* ) # Absolute name. 1457 ac_srcdir=$srcdir$ac_dir_suffix; 1458 ac_top_srcdir=$srcdir 1459 ac_abs_top_srcdir=$srcdir ;; 1460 *) # Relative name. 1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1462 ac_top_srcdir=$ac_top_build_prefix$srcdir 1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1464esac 1465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1466 1467 cd "$ac_dir" || { ac_status=$?; continue; } 1468 # Check for guested configure. 1469 if test -f "$ac_srcdir/configure.gnu"; then 1470 echo && 1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1472 elif test -f "$ac_srcdir/configure"; then 1473 echo && 1474 $SHELL "$ac_srcdir/configure" --help=recursive 1475 else 1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1477 fi || ac_status=$? 1478 cd "$ac_pwd" || { ac_status=$?; break; } 1479 done 1480fi 1481 1482test -n "$ac_init_help" && exit $ac_status 1483if $ac_init_version; then 1484 cat <<\_ACEOF 1485cgdb configure 0.8.0 1486generated by GNU Autoconf 2.69 1487 1488Copyright (C) 2012 Free Software Foundation, Inc. 1489This configure script is free software; the Free Software Foundation 1490gives unlimited permission to copy, distribute and modify it. 1491_ACEOF 1492 exit 1493fi 1494 1495## ------------------------ ## 1496## Autoconf initialization. ## 1497## ------------------------ ## 1498 1499# ac_fn_c_try_compile LINENO 1500# -------------------------- 1501# Try to compile conftest.$ac_ext, and return whether this succeeded. 1502ac_fn_c_try_compile () 1503{ 1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1505 rm -f conftest.$ac_objext 1506 if { { ac_try="$ac_compile" 1507case "(($ac_try" in 1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1509 *) ac_try_echo=$ac_try;; 1510esac 1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1512$as_echo "$ac_try_echo"; } >&5 1513 (eval "$ac_compile") 2>conftest.err 1514 ac_status=$? 1515 if test -s conftest.err; then 1516 grep -v '^ *+' conftest.err >conftest.er1 1517 cat conftest.er1 >&5 1518 mv -f conftest.er1 conftest.err 1519 fi 1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1521 test $ac_status = 0; } && { 1522 test -z "$ac_c_werror_flag" || 1523 test ! -s conftest.err 1524 } && test -s conftest.$ac_objext; then : 1525 ac_retval=0 1526else 1527 $as_echo "$as_me: failed program was:" >&5 1528sed 's/^/| /' conftest.$ac_ext >&5 1529 1530 ac_retval=1 1531fi 1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1533 as_fn_set_status $ac_retval 1534 1535} # ac_fn_c_try_compile 1536 1537# ac_fn_cxx_try_compile LINENO 1538# ---------------------------- 1539# Try to compile conftest.$ac_ext, and return whether this succeeded. 1540ac_fn_cxx_try_compile () 1541{ 1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1543 rm -f conftest.$ac_objext 1544 if { { ac_try="$ac_compile" 1545case "(($ac_try" in 1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1547 *) ac_try_echo=$ac_try;; 1548esac 1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1550$as_echo "$ac_try_echo"; } >&5 1551 (eval "$ac_compile") 2>conftest.err 1552 ac_status=$? 1553 if test -s conftest.err; then 1554 grep -v '^ *+' conftest.err >conftest.er1 1555 cat conftest.er1 >&5 1556 mv -f conftest.er1 conftest.err 1557 fi 1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1559 test $ac_status = 0; } && { 1560 test -z "$ac_cxx_werror_flag" || 1561 test ! -s conftest.err 1562 } && test -s conftest.$ac_objext; then : 1563 ac_retval=0 1564else 1565 $as_echo "$as_me: failed program was:" >&5 1566sed 's/^/| /' conftest.$ac_ext >&5 1567 1568 ac_retval=1 1569fi 1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571 as_fn_set_status $ac_retval 1572 1573} # ac_fn_cxx_try_compile 1574 1575# ac_fn_c_try_link LINENO 1576# ----------------------- 1577# Try to link conftest.$ac_ext, and return whether this succeeded. 1578ac_fn_c_try_link () 1579{ 1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1581 rm -f conftest.$ac_objext conftest$ac_exeext 1582 if { { ac_try="$ac_link" 1583case "(($ac_try" in 1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1585 *) ac_try_echo=$ac_try;; 1586esac 1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1588$as_echo "$ac_try_echo"; } >&5 1589 (eval "$ac_link") 2>conftest.err 1590 ac_status=$? 1591 if test -s conftest.err; then 1592 grep -v '^ *+' conftest.err >conftest.er1 1593 cat conftest.er1 >&5 1594 mv -f conftest.er1 conftest.err 1595 fi 1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1597 test $ac_status = 0; } && { 1598 test -z "$ac_c_werror_flag" || 1599 test ! -s conftest.err 1600 } && test -s conftest$ac_exeext && { 1601 test "$cross_compiling" = yes || 1602 test -x conftest$ac_exeext 1603 }; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1612 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1613 # interfere with the next link command; also delete a directory that is 1614 # left behind by Apple's compiler. We do this before executing the actions. 1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617 as_fn_set_status $ac_retval 1618 1619} # ac_fn_c_try_link 1620 1621# ac_fn_c_try_cpp LINENO 1622# ---------------------- 1623# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1624ac_fn_c_try_cpp () 1625{ 1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1627 if { { ac_try="$ac_cpp conftest.$ac_ext" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } > conftest.i && { 1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 }; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: failed program was:" >&5 1649sed 's/^/| /' conftest.$ac_ext >&5 1650 1651 ac_retval=1 1652fi 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656} # ac_fn_c_try_cpp 1657 1658# ac_fn_c_try_run LINENO 1659# ---------------------- 1660# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1661# that executables *can* be run. 1662ac_fn_c_try_run () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 if { { ac_try="$ac_link" 1666case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669esac 1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671$as_echo "$ac_try_echo"; } >&5 1672 (eval "$ac_link") 2>&5 1673 ac_status=$? 1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1676 { { case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_try") 2>&5 1683 ac_status=$? 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; }; }; then : 1686 ac_retval=0 1687else 1688 $as_echo "$as_me: program exited with status $ac_status" >&5 1689 $as_echo "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=$ac_status 1693fi 1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1696 as_fn_set_status $ac_retval 1697 1698} # ac_fn_c_try_run 1699 1700# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1701# ------------------------------------------------------- 1702# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1703# the include files in INCLUDES and setting the cache variable VAR 1704# accordingly. 1705ac_fn_c_check_header_mongrel () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 if eval \${$3+:} false; then : 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1710$as_echo_n "checking for $2... " >&6; } 1711if eval \${$3+:} false; then : 1712 $as_echo_n "(cached) " >&6 1713fi 1714eval ac_res=\$$3 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1716$as_echo "$ac_res" >&6; } 1717else 1718 # Is the header compilable? 1719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1720$as_echo_n "checking $2 usability... " >&6; } 1721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1722/* end confdefs.h. */ 1723$4 1724#include <$2> 1725_ACEOF 1726if ac_fn_c_try_compile "$LINENO"; then : 1727 ac_header_compiler=yes 1728else 1729 ac_header_compiler=no 1730fi 1731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1733$as_echo "$ac_header_compiler" >&6; } 1734 1735# Is the header present? 1736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1737$as_echo_n "checking $2 presence... " >&6; } 1738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_cpp "$LINENO"; then : 1743 ac_header_preproc=yes 1744else 1745 ac_header_preproc=no 1746fi 1747rm -f conftest.err conftest.i conftest.$ac_ext 1748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1749$as_echo "$ac_header_preproc" >&6; } 1750 1751# So? What about this header? 1752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1753 yes:no: ) 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1755$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1757$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1758 ;; 1759 no:yes:* ) 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1761$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1763$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1765$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1767$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1769$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1770 ;; 1771esac 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1773$as_echo_n "checking for $2... " >&6; } 1774if eval \${$3+:} false; then : 1775 $as_echo_n "(cached) " >&6 1776else 1777 eval "$3=\$ac_header_compiler" 1778fi 1779eval ac_res=\$$3 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781$as_echo "$ac_res" >&6; } 1782fi 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 1785} # ac_fn_c_check_header_mongrel 1786 1787# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1788# ------------------------------------------------------- 1789# Tests whether HEADER exists and can be compiled using the include files in 1790# INCLUDES, setting the cache variable VAR accordingly. 1791ac_fn_c_check_header_compile () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802#include <$2> 1803_ACEOF 1804if ac_fn_c_try_compile "$LINENO"; then : 1805 eval "$3=yes" 1806else 1807 eval "$3=no" 1808fi 1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1810fi 1811eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813$as_echo "$ac_res" >&6; } 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 1816} # ac_fn_c_check_header_compile 1817 1818# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1819# ------------------------------------------- 1820# Tests whether TYPE exists after having included INCLUDES, setting cache 1821# variable VAR accordingly. 1822ac_fn_c_check_type () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1826$as_echo_n "checking for $2... " >&6; } 1827if eval \${$3+:} false; then : 1828 $as_echo_n "(cached) " >&6 1829else 1830 eval "$3=no" 1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832/* end confdefs.h. */ 1833$4 1834int 1835main () 1836{ 1837if (sizeof ($2)) 1838 return 0; 1839 ; 1840 return 0; 1841} 1842_ACEOF 1843if ac_fn_c_try_compile "$LINENO"; then : 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846$4 1847int 1848main () 1849{ 1850if (sizeof (($2))) 1851 return 0; 1852 ; 1853 return 0; 1854} 1855_ACEOF 1856if ac_fn_c_try_compile "$LINENO"; then : 1857 1858else 1859 eval "$3=yes" 1860fi 1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1862fi 1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1864fi 1865eval ac_res=\$$3 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1867$as_echo "$ac_res" >&6; } 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 1870} # ac_fn_c_check_type 1871 1872# ac_fn_c_check_func LINENO FUNC VAR 1873# ---------------------------------- 1874# Tests whether FUNC exists, setting the cache variable VAR accordingly 1875ac_fn_c_check_func () 1876{ 1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1879$as_echo_n "checking for $2... " >&6; } 1880if eval \${$3+:} false; then : 1881 $as_echo_n "(cached) " >&6 1882else 1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1884/* end confdefs.h. */ 1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1887#define $2 innocuous_$2 1888 1889/* System header to define __stub macros and hopefully few prototypes, 1890 which can conflict with char $2 (); below. 1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1892 <limits.h> exists even on freestanding compilers. */ 1893 1894#ifdef __STDC__ 1895# include <limits.h> 1896#else 1897# include <assert.h> 1898#endif 1899 1900#undef $2 1901 1902/* Override any GCC internal prototype to avoid an error. 1903 Use char because int might match the return type of a GCC 1904 builtin and then its argument prototype would still apply. */ 1905#ifdef __cplusplus 1906extern "C" 1907#endif 1908char $2 (); 1909/* The GNU C library defines this for functions which it implements 1910 to always fail with ENOSYS. Some functions are actually named 1911 something starting with __ and the normal name is an alias. */ 1912#if defined __stub_$2 || defined __stub___$2 1913choke me 1914#endif 1915 1916int 1917main () 1918{ 1919return $2 (); 1920 ; 1921 return 0; 1922} 1923_ACEOF 1924if ac_fn_c_try_link "$LINENO"; then : 1925 eval "$3=yes" 1926else 1927 eval "$3=no" 1928fi 1929rm -f core conftest.err conftest.$ac_objext \ 1930 conftest$ac_exeext conftest.$ac_ext 1931fi 1932eval ac_res=\$$3 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 1937} # ac_fn_c_check_func 1938cat >config.log <<_ACEOF 1939This file contains any messages produced by compilers while 1940running configure, to aid debugging if configure makes a mistake. 1941 1942It was created by cgdb $as_me 0.8.0, which was 1943generated by GNU Autoconf 2.69. Invocation command line was 1944 1945 $ $0 $@ 1946 1947_ACEOF 1948exec 5>>config.log 1949{ 1950cat <<_ASUNAME 1951## --------- ## 1952## Platform. ## 1953## --------- ## 1954 1955hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1956uname -m = `(uname -m) 2>/dev/null || echo unknown` 1957uname -r = `(uname -r) 2>/dev/null || echo unknown` 1958uname -s = `(uname -s) 2>/dev/null || echo unknown` 1959uname -v = `(uname -v) 2>/dev/null || echo unknown` 1960 1961/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1962/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1963 1964/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1965/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1966/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1967/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1968/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1969/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1970/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1971 1972_ASUNAME 1973 1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1975for as_dir in $PATH 1976do 1977 IFS=$as_save_IFS 1978 test -z "$as_dir" && as_dir=. 1979 $as_echo "PATH: $as_dir" 1980 done 1981IFS=$as_save_IFS 1982 1983} >&5 1984 1985cat >&5 <<_ACEOF 1986 1987 1988## ----------- ## 1989## Core tests. ## 1990## ----------- ## 1991 1992_ACEOF 1993 1994 1995# Keep a trace of the command line. 1996# Strip out --no-create and --no-recursion so they do not pile up. 1997# Strip out --silent because we don't want to record it for future runs. 1998# Also quote any args containing shell meta-characters. 1999# Make two passes to allow for proper duplicate-argument suppression. 2000ac_configure_args= 2001ac_configure_args0= 2002ac_configure_args1= 2003ac_must_keep_next=false 2004for ac_pass in 1 2 2005do 2006 for ac_arg 2007 do 2008 case $ac_arg in 2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2011 | -silent | --silent | --silen | --sile | --sil) 2012 continue ;; 2013 *\'*) 2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2015 esac 2016 case $ac_pass in 2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2018 2) 2019 as_fn_append ac_configure_args1 " '$ac_arg'" 2020 if test $ac_must_keep_next = true; then 2021 ac_must_keep_next=false # Got value, back to normal. 2022 else 2023 case $ac_arg in 2024 *=* | --config-cache | -C | -disable-* | --disable-* \ 2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2027 | -with-* | --with-* | -without-* | --without-* | --x) 2028 case "$ac_configure_args0 " in 2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2030 esac 2031 ;; 2032 -* ) ac_must_keep_next=true ;; 2033 esac 2034 fi 2035 as_fn_append ac_configure_args " '$ac_arg'" 2036 ;; 2037 esac 2038 done 2039done 2040{ ac_configure_args0=; unset ac_configure_args0;} 2041{ ac_configure_args1=; unset ac_configure_args1;} 2042 2043# When interrupted or exit'd, cleanup temporary files, and complete 2044# config.log. We remove comments because anyway the quotes in there 2045# would cause problems or look ugly. 2046# WARNING: Use '\'' to represent an apostrophe within the trap. 2047# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2048trap 'exit_status=$? 2049 # Save into config.log some information that might help in debugging. 2050 { 2051 echo 2052 2053 $as_echo "## ---------------- ## 2054## Cache variables. ## 2055## ---------------- ##" 2056 echo 2057 # The following way of writing the cache mishandles newlines in values, 2058( 2059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2060 eval ac_val=\$$ac_var 2061 case $ac_val in #( 2062 *${as_nl}*) 2063 case $ac_var in #( 2064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2065$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2066 esac 2067 case $ac_var in #( 2068 _ | IFS | as_nl) ;; #( 2069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2070 *) { eval $ac_var=; unset $ac_var;} ;; 2071 esac ;; 2072 esac 2073 done 2074 (set) 2>&1 | 2075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2076 *${as_nl}ac_space=\ *) 2077 sed -n \ 2078 "s/'\''/'\''\\\\'\'''\''/g; 2079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2080 ;; #( 2081 *) 2082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2083 ;; 2084 esac | 2085 sort 2086) 2087 echo 2088 2089 $as_echo "## ----------------- ## 2090## Output variables. ## 2091## ----------------- ##" 2092 echo 2093 for ac_var in $ac_subst_vars 2094 do 2095 eval ac_val=\$$ac_var 2096 case $ac_val in 2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2098 esac 2099 $as_echo "$ac_var='\''$ac_val'\''" 2100 done | sort 2101 echo 2102 2103 if test -n "$ac_subst_files"; then 2104 $as_echo "## ------------------- ## 2105## File substitutions. ## 2106## ------------------- ##" 2107 echo 2108 for ac_var in $ac_subst_files 2109 do 2110 eval ac_val=\$$ac_var 2111 case $ac_val in 2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2113 esac 2114 $as_echo "$ac_var='\''$ac_val'\''" 2115 done | sort 2116 echo 2117 fi 2118 2119 if test -s confdefs.h; then 2120 $as_echo "## ----------- ## 2121## confdefs.h. ## 2122## ----------- ##" 2123 echo 2124 cat confdefs.h 2125 echo 2126 fi 2127 test "$ac_signal" != 0 && 2128 $as_echo "$as_me: caught signal $ac_signal" 2129 $as_echo "$as_me: exit $exit_status" 2130 } >&5 2131 rm -f core *.core core.conftest.* && 2132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2133 exit $exit_status 2134' 0 2135for ac_signal in 1 2 13 15; do 2136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2137done 2138ac_signal=0 2139 2140# confdefs.h avoids OS command line length limits that DEFS can exceed. 2141rm -f -r conftest* confdefs.h 2142 2143$as_echo "/* confdefs.h */" > confdefs.h 2144 2145# Predefined preprocessor variables. 2146 2147cat >>confdefs.h <<_ACEOF 2148#define PACKAGE_NAME "$PACKAGE_NAME" 2149_ACEOF 2150 2151cat >>confdefs.h <<_ACEOF 2152#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2153_ACEOF 2154 2155cat >>confdefs.h <<_ACEOF 2156#define PACKAGE_VERSION "$PACKAGE_VERSION" 2157_ACEOF 2158 2159cat >>confdefs.h <<_ACEOF 2160#define PACKAGE_STRING "$PACKAGE_STRING" 2161_ACEOF 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_URL "$PACKAGE_URL" 2169_ACEOF 2170 2171 2172# Let the site file select an alternate cache file if it wants to. 2173# Prefer an explicitly selected file to automatically selected ones. 2174ac_site_file1=NONE 2175ac_site_file2=NONE 2176if test -n "$CONFIG_SITE"; then 2177 # We do not want a PATH search for config.site. 2178 case $CONFIG_SITE in #(( 2179 -*) ac_site_file1=./$CONFIG_SITE;; 2180 */*) ac_site_file1=$CONFIG_SITE;; 2181 *) ac_site_file1=./$CONFIG_SITE;; 2182 esac 2183elif test "x$prefix" != xNONE; then 2184 ac_site_file1=$prefix/share/config.site 2185 ac_site_file2=$prefix/etc/config.site 2186else 2187 ac_site_file1=$ac_default_prefix/share/config.site 2188 ac_site_file2=$ac_default_prefix/etc/config.site 2189fi 2190for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2191do 2192 test "x$ac_site_file" = xNONE && continue 2193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2195$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2196 sed 's/^/| /' "$ac_site_file" >&5 2197 . "$ac_site_file" \ 2198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2200as_fn_error $? "failed to load site script $ac_site_file 2201See \`config.log' for more details" "$LINENO" 5; } 2202 fi 2203done 2204 2205if test -r "$cache_file"; then 2206 # Some versions of bash will fail to source /dev/null (special files 2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2210$as_echo "$as_me: loading cache $cache_file" >&6;} 2211 case $cache_file in 2212 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2213 *) . "./$cache_file";; 2214 esac 2215 fi 2216else 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2218$as_echo "$as_me: creating cache $cache_file" >&6;} 2219 >$cache_file 2220fi 2221 2222# Check that the precious variables saved in the cache have kept the same 2223# value. 2224ac_cache_corrupted=false 2225for ac_var in $ac_precious_vars; do 2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2227 eval ac_new_set=\$ac_env_${ac_var}_set 2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2229 eval ac_new_val=\$ac_env_${ac_var}_value 2230 case $ac_old_set,$ac_new_set in 2231 set,) 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2233$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2234 ac_cache_corrupted=: ;; 2235 ,set) 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2237$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2238 ac_cache_corrupted=: ;; 2239 ,);; 2240 *) 2241 if test "x$ac_old_val" != "x$ac_new_val"; then 2242 # differences in whitespace do not lead to failure. 2243 ac_old_val_w=`echo x $ac_old_val` 2244 ac_new_val_w=`echo x $ac_new_val` 2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2247$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2248 ac_cache_corrupted=: 2249 else 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2251$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2252 eval $ac_var=\$ac_old_val 2253 fi 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2255$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2257$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2258 fi;; 2259 esac 2260 # Pass precious variables to config.status. 2261 if test "$ac_new_set" = set; then 2262 case $ac_new_val in 2263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2264 *) ac_arg=$ac_var=$ac_new_val ;; 2265 esac 2266 case " $ac_configure_args " in 2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2269 esac 2270 fi 2271done 2272if $ac_cache_corrupted; then 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2276$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2278fi 2279## -------------------- ## 2280## Main body of script. ## 2281## -------------------- ## 2282 2283ac_ext=c 2284ac_cpp='$CPP $CPPFLAGS' 2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2287ac_compiler_gnu=$ac_cv_c_compiler_gnu 2288 2289 2290ac_aux_dir= 2291for ac_dir in config "$srcdir"/config; do 2292 if test -f "$ac_dir/install-sh"; then 2293 ac_aux_dir=$ac_dir 2294 ac_install_sh="$ac_aux_dir/install-sh -c" 2295 break 2296 elif test -f "$ac_dir/install.sh"; then 2297 ac_aux_dir=$ac_dir 2298 ac_install_sh="$ac_aux_dir/install.sh -c" 2299 break 2300 elif test -f "$ac_dir/shtool"; then 2301 ac_aux_dir=$ac_dir 2302 ac_install_sh="$ac_aux_dir/shtool install -c" 2303 break 2304 fi 2305done 2306if test -z "$ac_aux_dir"; then 2307 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2308fi 2309 2310# These three variables are undocumented and unsupported, 2311# and are intended to be withdrawn in a future Autoconf release. 2312# They can cause serious problems if a builder's source tree is in a directory 2313# whose full name contains unusual characters. 2314ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2315ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2316ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2317 2318 2319ac_config_headers="$ac_config_headers config.h" 2320 2321am__api_version='1.15' 2322 2323# Find a good install program. We prefer a C program (faster), 2324# so one script is as good as another. But avoid the broken or 2325# incompatible versions: 2326# SysV /etc/install, /usr/sbin/install 2327# SunOS /usr/etc/install 2328# IRIX /sbin/install 2329# AIX /bin/install 2330# AmigaOS /C/install, which installs bootblocks on floppy discs 2331# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2332# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2333# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2334# OS/2's system install, which has a completely different semantic 2335# ./install, which can be erroneously created by make from ./install.sh. 2336# Reject install programs that cannot install multiple files. 2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2338$as_echo_n "checking for a BSD-compatible install... " >&6; } 2339if test -z "$INSTALL"; then 2340if ${ac_cv_path_install+:} false; then : 2341 $as_echo_n "(cached) " >&6 2342else 2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2344for as_dir in $PATH 2345do 2346 IFS=$as_save_IFS 2347 test -z "$as_dir" && as_dir=. 2348 # Account for people who put trailing slashes in PATH elements. 2349case $as_dir/ in #(( 2350 ./ | .// | /[cC]/* | \ 2351 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2352 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2353 /usr/ucb/* ) ;; 2354 *) 2355 # OSF1 and SCO ODT 3.0 have their own names for install. 2356 # Don't use installbsd from OSF since it installs stuff as root 2357 # by default. 2358 for ac_prog in ginstall scoinst install; do 2359 for ac_exec_ext in '' $ac_executable_extensions; do 2360 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2361 if test $ac_prog = install && 2362 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2363 # AIX install. It has an incompatible calling convention. 2364 : 2365 elif test $ac_prog = install && 2366 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2367 # program-specific install script used by HP pwplus--don't use. 2368 : 2369 else 2370 rm -rf conftest.one conftest.two conftest.dir 2371 echo one > conftest.one 2372 echo two > conftest.two 2373 mkdir conftest.dir 2374 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2375 test -s conftest.one && test -s conftest.two && 2376 test -s conftest.dir/conftest.one && 2377 test -s conftest.dir/conftest.two 2378 then 2379 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2380 break 3 2381 fi 2382 fi 2383 fi 2384 done 2385 done 2386 ;; 2387esac 2388 2389 done 2390IFS=$as_save_IFS 2391 2392rm -rf conftest.one conftest.two conftest.dir 2393 2394fi 2395 if test "${ac_cv_path_install+set}" = set; then 2396 INSTALL=$ac_cv_path_install 2397 else 2398 # As a last resort, use the slow shell script. Don't cache a 2399 # value for INSTALL within a source directory, because that will 2400 # break other packages using the cache if that directory is 2401 # removed, or if the value is a relative name. 2402 INSTALL=$ac_install_sh 2403 fi 2404fi 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2406$as_echo "$INSTALL" >&6; } 2407 2408# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2409# It thinks the first close brace ends the variable substitution. 2410test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2411 2412test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2413 2414test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2415 2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2417$as_echo_n "checking whether build environment is sane... " >&6; } 2418# Reject unsafe characters in $srcdir or the absolute working directory 2419# name. Accept space and tab only in the latter. 2420am_lf=' 2421' 2422case `pwd` in 2423 *[\\\"\#\$\&\'\`$am_lf]*) 2424 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2425esac 2426case $srcdir in 2427 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2428 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2429esac 2430 2431# Do 'set' in a subshell so we don't clobber the current shell's 2432# arguments. Must try -L first in case configure is actually a 2433# symlink; some systems play weird games with the mod time of symlinks 2434# (eg FreeBSD returns the mod time of the symlink's containing 2435# directory). 2436if ( 2437 am_has_slept=no 2438 for am_try in 1 2; do 2439 echo "timestamp, slept: $am_has_slept" > conftest.file 2440 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2441 if test "$*" = "X"; then 2442 # -L didn't work. 2443 set X `ls -t "$srcdir/configure" conftest.file` 2444 fi 2445 if test "$*" != "X $srcdir/configure conftest.file" \ 2446 && test "$*" != "X conftest.file $srcdir/configure"; then 2447 2448 # If neither matched, then we have a broken ls. This can happen 2449 # if, for instance, CONFIG_SHELL is bash and it inherits a 2450 # broken ls alias from the environment. This has actually 2451 # happened. Such a system could not be considered "sane". 2452 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2453 alias in your environment" "$LINENO" 5 2454 fi 2455 if test "$2" = conftest.file || test $am_try -eq 2; then 2456 break 2457 fi 2458 # Just in case. 2459 sleep 1 2460 am_has_slept=yes 2461 done 2462 test "$2" = conftest.file 2463 ) 2464then 2465 # Ok. 2466 : 2467else 2468 as_fn_error $? "newly created file is older than distributed files! 2469Check your system clock" "$LINENO" 5 2470fi 2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2472$as_echo "yes" >&6; } 2473# If we didn't sleep, we still need to ensure time stamps of config.status and 2474# generated files are strictly newer. 2475am_sleep_pid= 2476if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2477 ( sleep 1 ) & 2478 am_sleep_pid=$! 2479fi 2480 2481rm -f conftest.file 2482 2483test "$program_prefix" != NONE && 2484 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2485# Use a double $ so make ignores it. 2486test "$program_suffix" != NONE && 2487 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2488# Double any \ or $. 2489# By default was `s,x,x', remove it if useless. 2490ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2491program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2492 2493# Expand $ac_aux_dir to an absolute path. 2494am_aux_dir=`cd "$ac_aux_dir" && pwd` 2495 2496if test x"${MISSING+set}" != xset; then 2497 case $am_aux_dir in 2498 *\ * | *\ *) 2499 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2500 *) 2501 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2502 esac 2503fi 2504# Use eval to expand $SHELL 2505if eval "$MISSING --is-lightweight"; then 2506 am_missing_run="$MISSING " 2507else 2508 am_missing_run= 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2510$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2511fi 2512 2513if test x"${install_sh+set}" != xset; then 2514 case $am_aux_dir in 2515 *\ * | *\ *) 2516 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2517 *) 2518 install_sh="\${SHELL} $am_aux_dir/install-sh" 2519 esac 2520fi 2521 2522# Installed binaries are usually stripped using 'strip' when the user 2523# run "make install-strip". However 'strip' might not be the right 2524# tool to use in cross-compilation environments, therefore Automake 2525# will honor the 'STRIP' environment variable to overrule this program. 2526if test "$cross_compiling" != no; then 2527 if test -n "$ac_tool_prefix"; then 2528 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2529set dummy ${ac_tool_prefix}strip; ac_word=$2 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2531$as_echo_n "checking for $ac_word... " >&6; } 2532if ${ac_cv_prog_STRIP+:} false; then : 2533 $as_echo_n "(cached) " >&6 2534else 2535 if test -n "$STRIP"; then 2536 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2537else 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_exec_ext in '' $ac_executable_extensions; do 2544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2545 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2547 break 2 2548 fi 2549done 2550 done 2551IFS=$as_save_IFS 2552 2553fi 2554fi 2555STRIP=$ac_cv_prog_STRIP 2556if test -n "$STRIP"; then 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2558$as_echo "$STRIP" >&6; } 2559else 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2561$as_echo "no" >&6; } 2562fi 2563 2564 2565fi 2566if test -z "$ac_cv_prog_STRIP"; then 2567 ac_ct_STRIP=$STRIP 2568 # Extract the first word of "strip", so it can be a program name with args. 2569set dummy strip; ac_word=$2 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2571$as_echo_n "checking for $ac_word... " >&6; } 2572if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2573 $as_echo_n "(cached) " >&6 2574else 2575 if test -n "$ac_ct_STRIP"; then 2576 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2577else 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 for ac_exec_ext in '' $ac_executable_extensions; do 2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2585 ac_cv_prog_ac_ct_STRIP="strip" 2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2587 break 2 2588 fi 2589done 2590 done 2591IFS=$as_save_IFS 2592 2593fi 2594fi 2595ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2596if test -n "$ac_ct_STRIP"; then 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2598$as_echo "$ac_ct_STRIP" >&6; } 2599else 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2601$as_echo "no" >&6; } 2602fi 2603 2604 if test "x$ac_ct_STRIP" = x; then 2605 STRIP=":" 2606 else 2607 case $cross_compiling:$ac_tool_warned in 2608yes:) 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2611ac_tool_warned=yes ;; 2612esac 2613 STRIP=$ac_ct_STRIP 2614 fi 2615else 2616 STRIP="$ac_cv_prog_STRIP" 2617fi 2618 2619fi 2620INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2621 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2623$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2624if test -z "$MKDIR_P"; then 2625 if ${ac_cv_path_mkdir+:} false; then : 2626 $as_echo_n "(cached) " >&6 2627else 2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_prog in mkdir gmkdir; do 2634 for ac_exec_ext in '' $ac_executable_extensions; do 2635 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2636 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2637 'mkdir (GNU coreutils) '* | \ 2638 'mkdir (coreutils) '* | \ 2639 'mkdir (fileutils) '4.1*) 2640 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2641 break 3;; 2642 esac 2643 done 2644 done 2645 done 2646IFS=$as_save_IFS 2647 2648fi 2649 2650 test -d ./--version && rmdir ./--version 2651 if test "${ac_cv_path_mkdir+set}" = set; then 2652 MKDIR_P="$ac_cv_path_mkdir -p" 2653 else 2654 # As a last resort, use the slow shell script. Don't cache a 2655 # value for MKDIR_P within a source directory, because that will 2656 # break other packages using the cache if that directory is 2657 # removed, or if the value is a relative name. 2658 MKDIR_P="$ac_install_sh -d" 2659 fi 2660fi 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2662$as_echo "$MKDIR_P" >&6; } 2663 2664for ac_prog in gawk mawk nawk awk 2665do 2666 # Extract the first word of "$ac_prog", so it can be a program name with args. 2667set dummy $ac_prog; ac_word=$2 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2669$as_echo_n "checking for $ac_word... " >&6; } 2670if ${ac_cv_prog_AWK+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672else 2673 if test -n "$AWK"; then 2674 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2675else 2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2677for as_dir in $PATH 2678do 2679 IFS=$as_save_IFS 2680 test -z "$as_dir" && as_dir=. 2681 for ac_exec_ext in '' $ac_executable_extensions; do 2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2683 ac_cv_prog_AWK="$ac_prog" 2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2685 break 2 2686 fi 2687done 2688 done 2689IFS=$as_save_IFS 2690 2691fi 2692fi 2693AWK=$ac_cv_prog_AWK 2694if test -n "$AWK"; then 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2696$as_echo "$AWK" >&6; } 2697else 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2699$as_echo "no" >&6; } 2700fi 2701 2702 2703 test -n "$AWK" && break 2704done 2705 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2707$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2708set x ${MAKE-make} 2709ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2710if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 cat >conftest.make <<\_ACEOF 2714SHELL = /bin/sh 2715all: 2716 @echo '@@@%%%=$(MAKE)=@@@%%%' 2717_ACEOF 2718# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2719case `${MAKE-make} -f conftest.make 2>/dev/null` in 2720 *@@@%%%=?*=@@@%%%*) 2721 eval ac_cv_prog_make_${ac_make}_set=yes;; 2722 *) 2723 eval ac_cv_prog_make_${ac_make}_set=no;; 2724esac 2725rm -f conftest.make 2726fi 2727if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2729$as_echo "yes" >&6; } 2730 SET_MAKE= 2731else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2733$as_echo "no" >&6; } 2734 SET_MAKE="MAKE=${MAKE-make}" 2735fi 2736 2737rm -rf .tst 2>/dev/null 2738mkdir .tst 2>/dev/null 2739if test -d .tst; then 2740 am__leading_dot=. 2741else 2742 am__leading_dot=_ 2743fi 2744rmdir .tst 2>/dev/null 2745 2746# Check whether --enable-silent-rules was given. 2747if test "${enable_silent_rules+set}" = set; then : 2748 enableval=$enable_silent_rules; 2749fi 2750 2751case $enable_silent_rules in # ((( 2752 yes) AM_DEFAULT_VERBOSITY=0;; 2753 no) AM_DEFAULT_VERBOSITY=1;; 2754 *) AM_DEFAULT_VERBOSITY=1;; 2755esac 2756am_make=${MAKE-make} 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2758$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2759if ${am_cv_make_support_nested_variables+:} false; then : 2760 $as_echo_n "(cached) " >&6 2761else 2762 if $as_echo 'TRUE=$(BAR$(V)) 2763BAR0=false 2764BAR1=true 2765V=1 2766am__doit: 2767 @$(TRUE) 2768.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2769 am_cv_make_support_nested_variables=yes 2770else 2771 am_cv_make_support_nested_variables=no 2772fi 2773fi 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2775$as_echo "$am_cv_make_support_nested_variables" >&6; } 2776if test $am_cv_make_support_nested_variables = yes; then 2777 AM_V='$(V)' 2778 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2779else 2780 AM_V=$AM_DEFAULT_VERBOSITY 2781 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2782fi 2783AM_BACKSLASH='\' 2784 2785if test "`cd $srcdir && pwd`" != "`pwd`"; then 2786 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2787 # is not polluted with repeated "-I." 2788 am__isrc=' -I$(srcdir)' 2789 # test to see if srcdir already configured 2790 if test -f $srcdir/config.status; then 2791 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2792 fi 2793fi 2794 2795# test whether we have cygpath 2796if test -z "$CYGPATH_W"; then 2797 if (cygpath --version) >/dev/null 2>/dev/null; then 2798 CYGPATH_W='cygpath -w' 2799 else 2800 CYGPATH_W=echo 2801 fi 2802fi 2803 2804 2805# Define the identity of the package. 2806 PACKAGE='cgdb' 2807 VERSION='0.8.0' 2808 2809 2810cat >>confdefs.h <<_ACEOF 2811#define PACKAGE "$PACKAGE" 2812_ACEOF 2813 2814 2815cat >>confdefs.h <<_ACEOF 2816#define VERSION "$VERSION" 2817_ACEOF 2818 2819# Some tools Automake needs. 2820 2821ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2822 2823 2824AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2825 2826 2827AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2828 2829 2830AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2831 2832 2833MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2834 2835# For better backward compatibility. To be removed once Automake 1.9.x 2836# dies out for good. For more background, see: 2837# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2838# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2839mkdir_p='$(MKDIR_P)' 2840 2841# We need awk for the "check" target (and possibly the TAP driver). The 2842# system "awk" is bad on some platforms. 2843# Always define AMTAR for backward compatibility. Yes, it's still used 2844# in the wild :-( We should find a proper way to deprecate it ... 2845AMTAR='$${TAR-tar}' 2846 2847 2848# We'll loop over all known methods to create a tar archive until one works. 2849_am_tools='gnutar pax cpio none' 2850 2851am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2852 2853 2854 2855 2856 2857 2858# POSIX will say in a future version that running "rm -f" with no argument 2859# is OK; and we want to be able to make that assumption in our Makefile 2860# recipes. So use an aggressive probe to check that the usage we want is 2861# actually supported "in the wild" to an acceptable degree. 2862# See automake bug#10828. 2863# To make any issue more visible, cause the running configure to be aborted 2864# by default if the 'rm' program in use doesn't match our expectations; the 2865# user can still override this though. 2866if rm -f && rm -fr && rm -rf; then : OK; else 2867 cat >&2 <<'END' 2868Oops! 2869 2870Your 'rm' program seems unable to run without file operands specified 2871on the command line, even when the '-f' option is present. This is contrary 2872to the behaviour of most rm programs out there, and not conforming with 2873the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2874 2875Please tell bug-automake@gnu.org about your system, including the value 2876of your $PATH and any error possibly output before this message. This 2877can help us improve future automake versions. 2878 2879END 2880 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2881 echo 'Configuration will proceed anyway, since you have set the' >&2 2882 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2883 echo >&2 2884 else 2885 cat >&2 <<'END' 2886Aborting the configuration process, to ensure you take notice of the issue. 2887 2888You can download and install GNU coreutils to get an 'rm' implementation 2889that behaves properly: <http://www.gnu.org/software/coreutils/>. 2890 2891If you want to complete the configuration process using your problematic 2892'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2893to "yes", and re-run configure. 2894 2895END 2896 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2897 fi 2898fi 2899 2900 2901ac_ext=c 2902ac_cpp='$CPP $CPPFLAGS' 2903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2905ac_compiler_gnu=$ac_cv_c_compiler_gnu 2906if test -n "$ac_tool_prefix"; then 2907 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2908set dummy ${ac_tool_prefix}gcc; ac_word=$2 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2910$as_echo_n "checking for $ac_word... " >&6; } 2911if ${ac_cv_prog_CC+:} false; then : 2912 $as_echo_n "(cached) " >&6 2913else 2914 if test -n "$CC"; then 2915 ac_cv_prog_CC="$CC" # Let the user override the test. 2916else 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918for as_dir in $PATH 2919do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2924 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2926 break 2 2927 fi 2928done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933fi 2934CC=$ac_cv_prog_CC 2935if test -n "$CC"; then 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2937$as_echo "$CC" >&6; } 2938else 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2940$as_echo "no" >&6; } 2941fi 2942 2943 2944fi 2945if test -z "$ac_cv_prog_CC"; then 2946 ac_ct_CC=$CC 2947 # Extract the first word of "gcc", so it can be a program name with args. 2948set dummy gcc; ac_word=$2 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950$as_echo_n "checking for $ac_word... " >&6; } 2951if ${ac_cv_prog_ac_ct_CC+:} false; then : 2952 $as_echo_n "(cached) " >&6 2953else 2954 if test -n "$ac_ct_CC"; then 2955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2956else 2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2958for as_dir in $PATH 2959do 2960 IFS=$as_save_IFS 2961 test -z "$as_dir" && as_dir=. 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2964 ac_cv_prog_ac_ct_CC="gcc" 2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2966 break 2 2967 fi 2968done 2969 done 2970IFS=$as_save_IFS 2971 2972fi 2973fi 2974ac_ct_CC=$ac_cv_prog_ac_ct_CC 2975if test -n "$ac_ct_CC"; then 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2977$as_echo "$ac_ct_CC" >&6; } 2978else 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2980$as_echo "no" >&6; } 2981fi 2982 2983 if test "x$ac_ct_CC" = x; then 2984 CC="" 2985 else 2986 case $cross_compiling:$ac_tool_warned in 2987yes:) 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2990ac_tool_warned=yes ;; 2991esac 2992 CC=$ac_ct_CC 2993 fi 2994else 2995 CC="$ac_cv_prog_CC" 2996fi 2997 2998if test -z "$CC"; then 2999 if test -n "$ac_tool_prefix"; then 3000 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3001set dummy ${ac_tool_prefix}cc; ac_word=$2 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3003$as_echo_n "checking for $ac_word... " >&6; } 3004if ${ac_cv_prog_CC+:} false; then : 3005 $as_echo_n "(cached) " >&6 3006else 3007 if test -n "$CC"; then 3008 ac_cv_prog_CC="$CC" # Let the user override the test. 3009else 3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3011for as_dir in $PATH 3012do 3013 IFS=$as_save_IFS 3014 test -z "$as_dir" && as_dir=. 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3017 ac_cv_prog_CC="${ac_tool_prefix}cc" 3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3019 break 2 3020 fi 3021done 3022 done 3023IFS=$as_save_IFS 3024 3025fi 3026fi 3027CC=$ac_cv_prog_CC 3028if test -n "$CC"; then 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3030$as_echo "$CC" >&6; } 3031else 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033$as_echo "no" >&6; } 3034fi 3035 3036 3037 fi 3038fi 3039if test -z "$CC"; then 3040 # Extract the first word of "cc", so it can be a program name with args. 3041set dummy cc; ac_word=$2 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3043$as_echo_n "checking for $ac_word... " >&6; } 3044if ${ac_cv_prog_CC+:} false; then : 3045 $as_echo_n "(cached) " >&6 3046else 3047 if test -n "$CC"; then 3048 ac_cv_prog_CC="$CC" # Let the user override the test. 3049else 3050 ac_prog_rejected=no 3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3052for as_dir in $PATH 3053do 3054 IFS=$as_save_IFS 3055 test -z "$as_dir" && as_dir=. 3056 for ac_exec_ext in '' $ac_executable_extensions; do 3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3059 ac_prog_rejected=yes 3060 continue 3061 fi 3062 ac_cv_prog_CC="cc" 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3064 break 2 3065 fi 3066done 3067 done 3068IFS=$as_save_IFS 3069 3070if test $ac_prog_rejected = yes; then 3071 # We found a bogon in the path, so make sure we never use it. 3072 set dummy $ac_cv_prog_CC 3073 shift 3074 if test $# != 0; then 3075 # We chose a different compiler from the bogus one. 3076 # However, it has the same basename, so the bogon will be chosen 3077 # first if we set CC to just the basename; use the full file name. 3078 shift 3079 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3080 fi 3081fi 3082fi 3083fi 3084CC=$ac_cv_prog_CC 3085if test -n "$CC"; then 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3087$as_echo "$CC" >&6; } 3088else 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3090$as_echo "no" >&6; } 3091fi 3092 3093 3094fi 3095if test -z "$CC"; then 3096 if test -n "$ac_tool_prefix"; then 3097 for ac_prog in cl.exe 3098 do 3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3100set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3102$as_echo_n "checking for $ac_word... " >&6; } 3103if ${ac_cv_prog_CC+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 if test -n "$CC"; then 3107 ac_cv_prog_CC="$CC" # Let the user override the test. 3108else 3109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3110for as_dir in $PATH 3111do 3112 IFS=$as_save_IFS 3113 test -z "$as_dir" && as_dir=. 3114 for ac_exec_ext in '' $ac_executable_extensions; do 3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3118 break 2 3119 fi 3120done 3121 done 3122IFS=$as_save_IFS 3123 3124fi 3125fi 3126CC=$ac_cv_prog_CC 3127if test -n "$CC"; then 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3129$as_echo "$CC" >&6; } 3130else 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3132$as_echo "no" >&6; } 3133fi 3134 3135 3136 test -n "$CC" && break 3137 done 3138fi 3139if test -z "$CC"; then 3140 ac_ct_CC=$CC 3141 for ac_prog in cl.exe 3142do 3143 # Extract the first word of "$ac_prog", so it can be a program name with args. 3144set dummy $ac_prog; ac_word=$2 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3146$as_echo_n "checking for $ac_word... " >&6; } 3147if ${ac_cv_prog_ac_ct_CC+:} false; then : 3148 $as_echo_n "(cached) " >&6 3149else 3150 if test -n "$ac_ct_CC"; then 3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3152else 3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154for as_dir in $PATH 3155do 3156 IFS=$as_save_IFS 3157 test -z "$as_dir" && as_dir=. 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3160 ac_cv_prog_ac_ct_CC="$ac_prog" 3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3162 break 2 3163 fi 3164done 3165 done 3166IFS=$as_save_IFS 3167 3168fi 3169fi 3170ac_ct_CC=$ac_cv_prog_ac_ct_CC 3171if test -n "$ac_ct_CC"; then 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3173$as_echo "$ac_ct_CC" >&6; } 3174else 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176$as_echo "no" >&6; } 3177fi 3178 3179 3180 test -n "$ac_ct_CC" && break 3181done 3182 3183 if test "x$ac_ct_CC" = x; then 3184 CC="" 3185 else 3186 case $cross_compiling:$ac_tool_warned in 3187yes:) 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3190ac_tool_warned=yes ;; 3191esac 3192 CC=$ac_ct_CC 3193 fi 3194fi 3195 3196fi 3197 3198 3199test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3201as_fn_error $? "no acceptable C compiler found in \$PATH 3202See \`config.log' for more details" "$LINENO" 5; } 3203 3204# Provide some information about the compiler. 3205$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3206set X $ac_compile 3207ac_compiler=$2 3208for ac_option in --version -v -V -qversion; do 3209 { { ac_try="$ac_compiler $ac_option >&5" 3210case "(($ac_try" in 3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212 *) ac_try_echo=$ac_try;; 3213esac 3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3215$as_echo "$ac_try_echo"; } >&5 3216 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3217 ac_status=$? 3218 if test -s conftest.err; then 3219 sed '10a\ 3220... rest of stderr output deleted ... 3221 10q' conftest.err >conftest.er1 3222 cat conftest.er1 >&5 3223 fi 3224 rm -f conftest.er1 conftest.err 3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3226 test $ac_status = 0; } 3227done 3228 3229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3230/* end confdefs.h. */ 3231 3232int 3233main () 3234{ 3235 3236 ; 3237 return 0; 3238} 3239_ACEOF 3240ac_clean_files_save=$ac_clean_files 3241ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3242# Try to create an executable without -o first, disregard a.out. 3243# It will help us diagnose broken compilers, and finding out an intuition 3244# of exeext. 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3246$as_echo_n "checking whether the C compiler works... " >&6; } 3247ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3248 3249# The possible output files: 3250ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3251 3252ac_rmfiles= 3253for ac_file in $ac_files 3254do 3255 case $ac_file in 3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3257 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3258 esac 3259done 3260rm -f $ac_rmfiles 3261 3262if { { ac_try="$ac_link_default" 3263case "(($ac_try" in 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3265 *) ac_try_echo=$ac_try;; 3266esac 3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3268$as_echo "$ac_try_echo"; } >&5 3269 (eval "$ac_link_default") 2>&5 3270 ac_status=$? 3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3272 test $ac_status = 0; }; then : 3273 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3274# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3275# in a Makefile. We should not override ac_cv_exeext if it was cached, 3276# so that the user can short-circuit this test for compilers unknown to 3277# Autoconf. 3278for ac_file in $ac_files '' 3279do 3280 test -f "$ac_file" || continue 3281 case $ac_file in 3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3283 ;; 3284 [ab].out ) 3285 # We found the default executable, but exeext='' is most 3286 # certainly right. 3287 break;; 3288 *.* ) 3289 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3290 then :; else 3291 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3292 fi 3293 # We set ac_cv_exeext here because the later test for it is not 3294 # safe: cross compilers may not add the suffix if given an `-o' 3295 # argument, so we may need to know it at that point already. 3296 # Even if this section looks crufty: it has the advantage of 3297 # actually working. 3298 break;; 3299 * ) 3300 break;; 3301 esac 3302done 3303test "$ac_cv_exeext" = no && ac_cv_exeext= 3304 3305else 3306 ac_file='' 3307fi 3308if test -z "$ac_file"; then : 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3310$as_echo "no" >&6; } 3311$as_echo "$as_me: failed program was:" >&5 3312sed 's/^/| /' conftest.$ac_ext >&5 3313 3314{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3316as_fn_error 77 "C compiler cannot create executables 3317See \`config.log' for more details" "$LINENO" 5; } 3318else 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3320$as_echo "yes" >&6; } 3321fi 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3323$as_echo_n "checking for C compiler default output file name... " >&6; } 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3325$as_echo "$ac_file" >&6; } 3326ac_exeext=$ac_cv_exeext 3327 3328rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3329ac_clean_files=$ac_clean_files_save 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3331$as_echo_n "checking for suffix of executables... " >&6; } 3332if { { ac_try="$ac_link" 3333case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3338$as_echo "$ac_try_echo"; } >&5 3339 (eval "$ac_link") 2>&5 3340 ac_status=$? 3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3342 test $ac_status = 0; }; then : 3343 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3344# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3345# work properly (i.e., refer to `conftest.exe'), while it won't with 3346# `rm'. 3347for ac_file in conftest.exe conftest conftest.*; do 3348 test -f "$ac_file" || continue 3349 case $ac_file in 3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3351 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3352 break;; 3353 * ) break;; 3354 esac 3355done 3356else 3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3359as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3360See \`config.log' for more details" "$LINENO" 5; } 3361fi 3362rm -f conftest conftest$ac_cv_exeext 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3364$as_echo "$ac_cv_exeext" >&6; } 3365 3366rm -f conftest.$ac_ext 3367EXEEXT=$ac_cv_exeext 3368ac_exeext=$EXEEXT 3369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371#include <stdio.h> 3372int 3373main () 3374{ 3375FILE *f = fopen ("conftest.out", "w"); 3376 return ferror (f) || fclose (f) != 0; 3377 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382ac_clean_files="$ac_clean_files conftest.out" 3383# Check that the compiler produces executables we can run. If not, either 3384# the compiler is broken, or we cross compile. 3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3386$as_echo_n "checking whether we are cross compiling... " >&6; } 3387if test "$cross_compiling" != yes; then 3388 { { ac_try="$ac_link" 3389case "(($ac_try" in 3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3391 *) ac_try_echo=$ac_try;; 3392esac 3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3394$as_echo "$ac_try_echo"; } >&5 3395 (eval "$ac_link") 2>&5 3396 ac_status=$? 3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3398 test $ac_status = 0; } 3399 if { ac_try='./conftest$ac_cv_exeext' 3400 { { case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3405$as_echo "$ac_try_echo"; } >&5 3406 (eval "$ac_try") 2>&5 3407 ac_status=$? 3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3409 test $ac_status = 0; }; }; then 3410 cross_compiling=no 3411 else 3412 if test "$cross_compiling" = maybe; then 3413 cross_compiling=yes 3414 else 3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3417as_fn_error $? "cannot run C compiled programs. 3418If you meant to cross compile, use \`--host'. 3419See \`config.log' for more details" "$LINENO" 5; } 3420 fi 3421 fi 3422fi 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3424$as_echo "$cross_compiling" >&6; } 3425 3426rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3427ac_clean_files=$ac_clean_files_save 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3429$as_echo_n "checking for suffix of object files... " >&6; } 3430if ${ac_cv_objext+:} false; then : 3431 $as_echo_n "(cached) " >&6 3432else 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434/* end confdefs.h. */ 3435 3436int 3437main () 3438{ 3439 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444rm -f conftest.o conftest.obj 3445if { { ac_try="$ac_compile" 3446case "(($ac_try" in 3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3448 *) ac_try_echo=$ac_try;; 3449esac 3450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3451$as_echo "$ac_try_echo"; } >&5 3452 (eval "$ac_compile") 2>&5 3453 ac_status=$? 3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3455 test $ac_status = 0; }; then : 3456 for ac_file in conftest.o conftest.obj conftest.*; do 3457 test -f "$ac_file" || continue; 3458 case $ac_file in 3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3461 break;; 3462 esac 3463done 3464else 3465 $as_echo "$as_me: failed program was:" >&5 3466sed 's/^/| /' conftest.$ac_ext >&5 3467 3468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3470as_fn_error $? "cannot compute suffix of object files: cannot compile 3471See \`config.log' for more details" "$LINENO" 5; } 3472fi 3473rm -f conftest.$ac_cv_objext conftest.$ac_ext 3474fi 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3476$as_echo "$ac_cv_objext" >&6; } 3477OBJEXT=$ac_cv_objext 3478ac_objext=$OBJEXT 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3480$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3481if ${ac_cv_c_compiler_gnu+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3485/* end confdefs.h. */ 3486 3487int 3488main () 3489{ 3490#ifndef __GNUC__ 3491 choke me 3492#endif 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498if ac_fn_c_try_compile "$LINENO"; then : 3499 ac_compiler_gnu=yes 3500else 3501 ac_compiler_gnu=no 3502fi 3503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3504ac_cv_c_compiler_gnu=$ac_compiler_gnu 3505 3506fi 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3508$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3509if test $ac_compiler_gnu = yes; then 3510 GCC=yes 3511else 3512 GCC= 3513fi 3514ac_test_CFLAGS=${CFLAGS+set} 3515ac_save_CFLAGS=$CFLAGS 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3517$as_echo_n "checking whether $CC accepts -g... " >&6; } 3518if ${ac_cv_prog_cc_g+:} false; then : 3519 $as_echo_n "(cached) " >&6 3520else 3521 ac_save_c_werror_flag=$ac_c_werror_flag 3522 ac_c_werror_flag=yes 3523 ac_cv_prog_cc_g=no 3524 CFLAGS="-g" 3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527 3528int 3529main () 3530{ 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536if ac_fn_c_try_compile "$LINENO"; then : 3537 ac_cv_prog_cc_g=yes 3538else 3539 CFLAGS="" 3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542 3543int 3544main () 3545{ 3546 3547 ; 3548 return 0; 3549} 3550_ACEOF 3551if ac_fn_c_try_compile "$LINENO"; then : 3552 3553else 3554 ac_c_werror_flag=$ac_save_c_werror_flag 3555 CFLAGS="-g" 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3557/* end confdefs.h. */ 3558 3559int 3560main () 3561{ 3562 3563 ; 3564 return 0; 3565} 3566_ACEOF 3567if ac_fn_c_try_compile "$LINENO"; then : 3568 ac_cv_prog_cc_g=yes 3569fi 3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3571fi 3572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3573fi 3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3575 ac_c_werror_flag=$ac_save_c_werror_flag 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3578$as_echo "$ac_cv_prog_cc_g" >&6; } 3579if test "$ac_test_CFLAGS" = set; then 3580 CFLAGS=$ac_save_CFLAGS 3581elif test $ac_cv_prog_cc_g = yes; then 3582 if test "$GCC" = yes; then 3583 CFLAGS="-g -O2" 3584 else 3585 CFLAGS="-g" 3586 fi 3587else 3588 if test "$GCC" = yes; then 3589 CFLAGS="-O2" 3590 else 3591 CFLAGS= 3592 fi 3593fi 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3595$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3596if ${ac_cv_prog_cc_c89+:} false; then : 3597 $as_echo_n "(cached) " >&6 3598else 3599 ac_cv_prog_cc_c89=no 3600ac_save_CC=$CC 3601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3602/* end confdefs.h. */ 3603#include <stdarg.h> 3604#include <stdio.h> 3605struct stat; 3606/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3607struct buf { int x; }; 3608FILE * (*rcsopen) (struct buf *, struct stat *, int); 3609static char *e (p, i) 3610 char **p; 3611 int i; 3612{ 3613 return p[i]; 3614} 3615static char *f (char * (*g) (char **, int), char **p, ...) 3616{ 3617 char *s; 3618 va_list v; 3619 va_start (v,p); 3620 s = g (p, va_arg (v,int)); 3621 va_end (v); 3622 return s; 3623} 3624 3625/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3626 function prototypes and stuff, but not '\xHH' hex character constants. 3627 These don't provoke an error unfortunately, instead are silently treated 3628 as 'x'. The following induces an error, until -std is added to get 3629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3630 array size at least. It's necessary to write '\x00'==0 to get something 3631 that's true only with -std. */ 3632int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3633 3634/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3635 inside strings and character constants. */ 3636#define FOO(x) 'x' 3637int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3638 3639int test (int i, double x); 3640struct s1 {int (*f) (int a);}; 3641struct s2 {int (*f) (double a);}; 3642int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3643int argc; 3644char **argv; 3645int 3646main () 3647{ 3648return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3654 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3655do 3656 CC="$ac_save_CC $ac_arg" 3657 if ac_fn_c_try_compile "$LINENO"; then : 3658 ac_cv_prog_cc_c89=$ac_arg 3659fi 3660rm -f core conftest.err conftest.$ac_objext 3661 test "x$ac_cv_prog_cc_c89" != "xno" && break 3662done 3663rm -f conftest.$ac_ext 3664CC=$ac_save_CC 3665 3666fi 3667# AC_CACHE_VAL 3668case "x$ac_cv_prog_cc_c89" in 3669 x) 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3671$as_echo "none needed" >&6; } ;; 3672 xno) 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3674$as_echo "unsupported" >&6; } ;; 3675 *) 3676 CC="$CC $ac_cv_prog_cc_c89" 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3678$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3679esac 3680if test "x$ac_cv_prog_cc_c89" != xno; then : 3681 3682fi 3683 3684ac_ext=c 3685ac_cpp='$CPP $CPPFLAGS' 3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3688ac_compiler_gnu=$ac_cv_c_compiler_gnu 3689 3690ac_ext=c 3691ac_cpp='$CPP $CPPFLAGS' 3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3694ac_compiler_gnu=$ac_cv_c_compiler_gnu 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3696$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3697if ${am_cv_prog_cc_c_o+:} false; then : 3698 $as_echo_n "(cached) " >&6 3699else 3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3701/* end confdefs.h. */ 3702 3703int 3704main () 3705{ 3706 3707 ; 3708 return 0; 3709} 3710_ACEOF 3711 # Make sure it works both with $CC and with simple cc. 3712 # Following AC_PROG_CC_C_O, we do the test twice because some 3713 # compilers refuse to overwrite an existing .o file with -o, 3714 # though they will create one. 3715 am_cv_prog_cc_c_o=yes 3716 for am_i in 1 2; do 3717 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3718 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3719 ac_status=$? 3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3721 (exit $ac_status); } \ 3722 && test -f conftest2.$ac_objext; then 3723 : OK 3724 else 3725 am_cv_prog_cc_c_o=no 3726 break 3727 fi 3728 done 3729 rm -f core conftest* 3730 unset am_i 3731fi 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3733$as_echo "$am_cv_prog_cc_c_o" >&6; } 3734if test "$am_cv_prog_cc_c_o" != yes; then 3735 # Losing compiler, so override with the script. 3736 # FIXME: It is wrong to rewrite CC. 3737 # But if we don't then we get into trouble of one sort or another. 3738 # A longer-term fix would be to have automake use am__CC in this case, 3739 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3740 CC="$am_aux_dir/compile $CC" 3741fi 3742ac_ext=c 3743ac_cpp='$CPP $CPPFLAGS' 3744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3746ac_compiler_gnu=$ac_cv_c_compiler_gnu 3747 3748DEPDIR="${am__leading_dot}deps" 3749 3750ac_config_commands="$ac_config_commands depfiles" 3751 3752 3753am_make=${MAKE-make} 3754cat > confinc << 'END' 3755am__doit: 3756 @echo this is the am__doit target 3757.PHONY: am__doit 3758END 3759# If we don't find an include directive, just comment out the code. 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3761$as_echo_n "checking for style of include used by $am_make... " >&6; } 3762am__include="#" 3763am__quote= 3764_am_result=none 3765# First try GNU make style include. 3766echo "include confinc" > confmf 3767# Ignore all kinds of additional output from 'make'. 3768case `$am_make -s -f confmf 2> /dev/null` in #( 3769*the\ am__doit\ target*) 3770 am__include=include 3771 am__quote= 3772 _am_result=GNU 3773 ;; 3774esac 3775# Now try BSD make style include. 3776if test "$am__include" = "#"; then 3777 echo '.include "confinc"' > confmf 3778 case `$am_make -s -f confmf 2> /dev/null` in #( 3779 *the\ am__doit\ target*) 3780 am__include=.include 3781 am__quote="\"" 3782 _am_result=BSD 3783 ;; 3784 esac 3785fi 3786 3787 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3789$as_echo "$_am_result" >&6; } 3790rm -f confinc confmf 3791 3792# Check whether --enable-dependency-tracking was given. 3793if test "${enable_dependency_tracking+set}" = set; then : 3794 enableval=$enable_dependency_tracking; 3795fi 3796 3797if test "x$enable_dependency_tracking" != xno; then 3798 am_depcomp="$ac_aux_dir/depcomp" 3799 AMDEPBACKSLASH='\' 3800 am__nodep='_no' 3801fi 3802 if test "x$enable_dependency_tracking" != xno; then 3803 AMDEP_TRUE= 3804 AMDEP_FALSE='#' 3805else 3806 AMDEP_TRUE='#' 3807 AMDEP_FALSE= 3808fi 3809 3810 3811 3812depcc="$CC" am_compiler_list= 3813 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3815$as_echo_n "checking dependency style of $depcc... " >&6; } 3816if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3817 $as_echo_n "(cached) " >&6 3818else 3819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3820 # We make a subdir and do the tests there. Otherwise we can end up 3821 # making bogus files that we don't know about and never remove. For 3822 # instance it was reported that on HP-UX the gcc test will end up 3823 # making a dummy file named 'D' -- because '-MD' means "put the output 3824 # in D". 3825 rm -rf conftest.dir 3826 mkdir conftest.dir 3827 # Copy depcomp to subdir because otherwise we won't find it if we're 3828 # using a relative directory. 3829 cp "$am_depcomp" conftest.dir 3830 cd conftest.dir 3831 # We will build objects and dependencies in a subdirectory because 3832 # it helps to detect inapplicable dependency modes. For instance 3833 # both Tru64's cc and ICC support -MD to output dependencies as a 3834 # side effect of compilation, but ICC will put the dependencies in 3835 # the current directory while Tru64 will put them in the object 3836 # directory. 3837 mkdir sub 3838 3839 am_cv_CC_dependencies_compiler_type=none 3840 if test "$am_compiler_list" = ""; then 3841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3842 fi 3843 am__universal=false 3844 case " $depcc " in #( 3845 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3846 esac 3847 3848 for depmode in $am_compiler_list; do 3849 # Setup a source with many dependencies, because some compilers 3850 # like to wrap large dependency lists on column 80 (with \), and 3851 # we should not choose a depcomp mode which is confused by this. 3852 # 3853 # We need to recreate these files for each test, as the compiler may 3854 # overwrite some of them when testing with obscure command lines. 3855 # This happens at least with the AIX C compiler. 3856 : > sub/conftest.c 3857 for i in 1 2 3 4 5 6; do 3858 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3859 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3860 # Solaris 10 /bin/sh. 3861 echo '/* dummy */' > sub/conftst$i.h 3862 done 3863 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3864 3865 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3866 # mode. It turns out that the SunPro C++ compiler does not properly 3867 # handle '-M -o', and we need to detect this. Also, some Intel 3868 # versions had trouble with output in subdirs. 3869 am__obj=sub/conftest.${OBJEXT-o} 3870 am__minus_obj="-o $am__obj" 3871 case $depmode in 3872 gcc) 3873 # This depmode causes a compiler race in universal mode. 3874 test "$am__universal" = false || continue 3875 ;; 3876 nosideeffect) 3877 # After this tag, mechanisms are not by side-effect, so they'll 3878 # only be used when explicitly requested. 3879 if test "x$enable_dependency_tracking" = xyes; then 3880 continue 3881 else 3882 break 3883 fi 3884 ;; 3885 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3886 # This compiler won't grok '-c -o', but also, the minuso test has 3887 # not run yet. These depmodes are late enough in the game, and 3888 # so weak that their functioning should not be impacted. 3889 am__obj=conftest.${OBJEXT-o} 3890 am__minus_obj= 3891 ;; 3892 none) break ;; 3893 esac 3894 if depmode=$depmode \ 3895 source=sub/conftest.c object=$am__obj \ 3896 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3897 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3898 >/dev/null 2>conftest.err && 3899 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3900 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3901 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3903 # icc doesn't choke on unknown options, it will just issue warnings 3904 # or remarks (even with -Werror). So we grep stderr for any message 3905 # that says an option was ignored or not supported. 3906 # When given -MP, icc 7.0 and 7.1 complain thusly: 3907 # icc: Command line warning: ignoring option '-M'; no argument required 3908 # The diagnosis changed in icc 8.0: 3909 # icc: Command line remark: option '-MP' not supported 3910 if (grep 'ignoring option' conftest.err || 3911 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3912 am_cv_CC_dependencies_compiler_type=$depmode 3913 break 3914 fi 3915 fi 3916 done 3917 3918 cd .. 3919 rm -rf conftest.dir 3920else 3921 am_cv_CC_dependencies_compiler_type=none 3922fi 3923 3924fi 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3926$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3927CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3928 3929 if 3930 test "x$enable_dependency_tracking" != xno \ 3931 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3932 am__fastdepCC_TRUE= 3933 am__fastdepCC_FALSE='#' 3934else 3935 am__fastdepCC_TRUE='#' 3936 am__fastdepCC_FALSE= 3937fi 3938 3939 3940 3941ac_ext=cpp 3942ac_cpp='$CXXCPP $CPPFLAGS' 3943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3946if test -z "$CXX"; then 3947 if test -n "$CCC"; then 3948 CXX=$CCC 3949 else 3950 if test -n "$ac_tool_prefix"; then 3951 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3952 do 3953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3954set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3956$as_echo_n "checking for $ac_word... " >&6; } 3957if ${ac_cv_prog_CXX+:} false; then : 3958 $as_echo_n "(cached) " >&6 3959else 3960 if test -n "$CXX"; then 3961 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3962else 3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964for as_dir in $PATH 3965do 3966 IFS=$as_save_IFS 3967 test -z "$as_dir" && as_dir=. 3968 for ac_exec_ext in '' $ac_executable_extensions; do 3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3970 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3972 break 2 3973 fi 3974done 3975 done 3976IFS=$as_save_IFS 3977 3978fi 3979fi 3980CXX=$ac_cv_prog_CXX 3981if test -n "$CXX"; then 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3983$as_echo "$CXX" >&6; } 3984else 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3986$as_echo "no" >&6; } 3987fi 3988 3989 3990 test -n "$CXX" && break 3991 done 3992fi 3993if test -z "$CXX"; then 3994 ac_ct_CXX=$CXX 3995 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3996do 3997 # Extract the first word of "$ac_prog", so it can be a program name with args. 3998set dummy $ac_prog; ac_word=$2 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4000$as_echo_n "checking for $ac_word... " >&6; } 4001if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4002 $as_echo_n "(cached) " >&6 4003else 4004 if test -n "$ac_ct_CXX"; then 4005 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4006else 4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4008for as_dir in $PATH 4009do 4010 IFS=$as_save_IFS 4011 test -z "$as_dir" && as_dir=. 4012 for ac_exec_ext in '' $ac_executable_extensions; do 4013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4014 ac_cv_prog_ac_ct_CXX="$ac_prog" 4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4016 break 2 4017 fi 4018done 4019 done 4020IFS=$as_save_IFS 4021 4022fi 4023fi 4024ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4025if test -n "$ac_ct_CXX"; then 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4027$as_echo "$ac_ct_CXX" >&6; } 4028else 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4030$as_echo "no" >&6; } 4031fi 4032 4033 4034 test -n "$ac_ct_CXX" && break 4035done 4036 4037 if test "x$ac_ct_CXX" = x; then 4038 CXX="g++" 4039 else 4040 case $cross_compiling:$ac_tool_warned in 4041yes:) 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4044ac_tool_warned=yes ;; 4045esac 4046 CXX=$ac_ct_CXX 4047 fi 4048fi 4049 4050 fi 4051fi 4052# Provide some information about the compiler. 4053$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4054set X $ac_compile 4055ac_compiler=$2 4056for ac_option in --version -v -V -qversion; do 4057 { { ac_try="$ac_compiler $ac_option >&5" 4058case "(($ac_try" in 4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4060 *) ac_try_echo=$ac_try;; 4061esac 4062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4063$as_echo "$ac_try_echo"; } >&5 4064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4065 ac_status=$? 4066 if test -s conftest.err; then 4067 sed '10a\ 4068... rest of stderr output deleted ... 4069 10q' conftest.err >conftest.er1 4070 cat conftest.er1 >&5 4071 fi 4072 rm -f conftest.er1 conftest.err 4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4074 test $ac_status = 0; } 4075done 4076 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4078$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4079if ${ac_cv_cxx_compiler_gnu+:} false; then : 4080 $as_echo_n "(cached) " >&6 4081else 4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084 4085int 4086main () 4087{ 4088#ifndef __GNUC__ 4089 choke me 4090#endif 4091 4092 ; 4093 return 0; 4094} 4095_ACEOF 4096if ac_fn_cxx_try_compile "$LINENO"; then : 4097 ac_compiler_gnu=yes 4098else 4099 ac_compiler_gnu=no 4100fi 4101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4102ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4103 4104fi 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4106$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4107if test $ac_compiler_gnu = yes; then 4108 GXX=yes 4109else 4110 GXX= 4111fi 4112ac_test_CXXFLAGS=${CXXFLAGS+set} 4113ac_save_CXXFLAGS=$CXXFLAGS 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4115$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4116if ${ac_cv_prog_cxx_g+:} false; then : 4117 $as_echo_n "(cached) " >&6 4118else 4119 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4120 ac_cxx_werror_flag=yes 4121 ac_cv_prog_cxx_g=no 4122 CXXFLAGS="-g" 4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4124/* end confdefs.h. */ 4125 4126int 4127main () 4128{ 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134if ac_fn_cxx_try_compile "$LINENO"; then : 4135 ac_cv_prog_cxx_g=yes 4136else 4137 CXXFLAGS="" 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140 4141int 4142main () 4143{ 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149if ac_fn_cxx_try_compile "$LINENO"; then : 4150 4151else 4152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4153 CXXFLAGS="-g" 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155/* end confdefs.h. */ 4156 4157int 4158main () 4159{ 4160 4161 ; 4162 return 0; 4163} 4164_ACEOF 4165if ac_fn_cxx_try_compile "$LINENO"; then : 4166 ac_cv_prog_cxx_g=yes 4167fi 4168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4169fi 4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4171fi 4172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4173 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4174fi 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4176$as_echo "$ac_cv_prog_cxx_g" >&6; } 4177if test "$ac_test_CXXFLAGS" = set; then 4178 CXXFLAGS=$ac_save_CXXFLAGS 4179elif test $ac_cv_prog_cxx_g = yes; then 4180 if test "$GXX" = yes; then 4181 CXXFLAGS="-g -O2" 4182 else 4183 CXXFLAGS="-g" 4184 fi 4185else 4186 if test "$GXX" = yes; then 4187 CXXFLAGS="-O2" 4188 else 4189 CXXFLAGS= 4190 fi 4191fi 4192ac_ext=c 4193ac_cpp='$CPP $CPPFLAGS' 4194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4196ac_compiler_gnu=$ac_cv_c_compiler_gnu 4197 4198depcc="$CXX" am_compiler_list= 4199 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4201$as_echo_n "checking dependency style of $depcc... " >&6; } 4202if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4206 # We make a subdir and do the tests there. Otherwise we can end up 4207 # making bogus files that we don't know about and never remove. For 4208 # instance it was reported that on HP-UX the gcc test will end up 4209 # making a dummy file named 'D' -- because '-MD' means "put the output 4210 # in D". 4211 rm -rf conftest.dir 4212 mkdir conftest.dir 4213 # Copy depcomp to subdir because otherwise we won't find it if we're 4214 # using a relative directory. 4215 cp "$am_depcomp" conftest.dir 4216 cd conftest.dir 4217 # We will build objects and dependencies in a subdirectory because 4218 # it helps to detect inapplicable dependency modes. For instance 4219 # both Tru64's cc and ICC support -MD to output dependencies as a 4220 # side effect of compilation, but ICC will put the dependencies in 4221 # the current directory while Tru64 will put them in the object 4222 # directory. 4223 mkdir sub 4224 4225 am_cv_CXX_dependencies_compiler_type=none 4226 if test "$am_compiler_list" = ""; then 4227 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4228 fi 4229 am__universal=false 4230 case " $depcc " in #( 4231 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4232 esac 4233 4234 for depmode in $am_compiler_list; do 4235 # Setup a source with many dependencies, because some compilers 4236 # like to wrap large dependency lists on column 80 (with \), and 4237 # we should not choose a depcomp mode which is confused by this. 4238 # 4239 # We need to recreate these files for each test, as the compiler may 4240 # overwrite some of them when testing with obscure command lines. 4241 # This happens at least with the AIX C compiler. 4242 : > sub/conftest.c 4243 for i in 1 2 3 4 5 6; do 4244 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4245 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4246 # Solaris 10 /bin/sh. 4247 echo '/* dummy */' > sub/conftst$i.h 4248 done 4249 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4250 4251 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4252 # mode. It turns out that the SunPro C++ compiler does not properly 4253 # handle '-M -o', and we need to detect this. Also, some Intel 4254 # versions had trouble with output in subdirs. 4255 am__obj=sub/conftest.${OBJEXT-o} 4256 am__minus_obj="-o $am__obj" 4257 case $depmode in 4258 gcc) 4259 # This depmode causes a compiler race in universal mode. 4260 test "$am__universal" = false || continue 4261 ;; 4262 nosideeffect) 4263 # After this tag, mechanisms are not by side-effect, so they'll 4264 # only be used when explicitly requested. 4265 if test "x$enable_dependency_tracking" = xyes; then 4266 continue 4267 else 4268 break 4269 fi 4270 ;; 4271 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4272 # This compiler won't grok '-c -o', but also, the minuso test has 4273 # not run yet. These depmodes are late enough in the game, and 4274 # so weak that their functioning should not be impacted. 4275 am__obj=conftest.${OBJEXT-o} 4276 am__minus_obj= 4277 ;; 4278 none) break ;; 4279 esac 4280 if depmode=$depmode \ 4281 source=sub/conftest.c object=$am__obj \ 4282 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4283 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4284 >/dev/null 2>conftest.err && 4285 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4286 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4287 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4288 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4289 # icc doesn't choke on unknown options, it will just issue warnings 4290 # or remarks (even with -Werror). So we grep stderr for any message 4291 # that says an option was ignored or not supported. 4292 # When given -MP, icc 7.0 and 7.1 complain thusly: 4293 # icc: Command line warning: ignoring option '-M'; no argument required 4294 # The diagnosis changed in icc 8.0: 4295 # icc: Command line remark: option '-MP' not supported 4296 if (grep 'ignoring option' conftest.err || 4297 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4298 am_cv_CXX_dependencies_compiler_type=$depmode 4299 break 4300 fi 4301 fi 4302 done 4303 4304 cd .. 4305 rm -rf conftest.dir 4306else 4307 am_cv_CXX_dependencies_compiler_type=none 4308fi 4309 4310fi 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4312$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4313CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4314 4315 if 4316 test "x$enable_dependency_tracking" != xno \ 4317 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4318 am__fastdepCXX_TRUE= 4319 am__fastdepCXX_FALSE='#' 4320else 4321 am__fastdepCXX_TRUE='#' 4322 am__fastdepCXX_FALSE= 4323fi 4324 4325 4326 4327if test -n "$ac_tool_prefix"; then 4328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4329set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4331$as_echo_n "checking for $ac_word... " >&6; } 4332if ${ac_cv_prog_RANLIB+:} false; then : 4333 $as_echo_n "(cached) " >&6 4334else 4335 if test -n "$RANLIB"; then 4336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4337else 4338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4339for as_dir in $PATH 4340do 4341 IFS=$as_save_IFS 4342 test -z "$as_dir" && as_dir=. 4343 for ac_exec_ext in '' $ac_executable_extensions; do 4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4347 break 2 4348 fi 4349done 4350 done 4351IFS=$as_save_IFS 4352 4353fi 4354fi 4355RANLIB=$ac_cv_prog_RANLIB 4356if test -n "$RANLIB"; then 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4358$as_echo "$RANLIB" >&6; } 4359else 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4361$as_echo "no" >&6; } 4362fi 4363 4364 4365fi 4366if test -z "$ac_cv_prog_RANLIB"; then 4367 ac_ct_RANLIB=$RANLIB 4368 # Extract the first word of "ranlib", so it can be a program name with args. 4369set dummy ranlib; ac_word=$2 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4371$as_echo_n "checking for $ac_word... " >&6; } 4372if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4373 $as_echo_n "(cached) " >&6 4374else 4375 if test -n "$ac_ct_RANLIB"; then 4376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4377else 4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4379for as_dir in $PATH 4380do 4381 IFS=$as_save_IFS 4382 test -z "$as_dir" && as_dir=. 4383 for ac_exec_ext in '' $ac_executable_extensions; do 4384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4385 ac_cv_prog_ac_ct_RANLIB="ranlib" 4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4387 break 2 4388 fi 4389done 4390 done 4391IFS=$as_save_IFS 4392 4393fi 4394fi 4395ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4396if test -n "$ac_ct_RANLIB"; then 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4398$as_echo "$ac_ct_RANLIB" >&6; } 4399else 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4401$as_echo "no" >&6; } 4402fi 4403 4404 if test "x$ac_ct_RANLIB" = x; then 4405 RANLIB=":" 4406 else 4407 case $cross_compiling:$ac_tool_warned in 4408yes:) 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4411ac_tool_warned=yes ;; 4412esac 4413 RANLIB=$ac_ct_RANLIB 4414 fi 4415else 4416 RANLIB="$ac_cv_prog_RANLIB" 4417fi 4418 4419 4420for ac_prog in flex lex 4421do 4422 # Extract the first word of "$ac_prog", so it can be a program name with args. 4423set dummy $ac_prog; ac_word=$2 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4425$as_echo_n "checking for $ac_word... " >&6; } 4426if ${ac_cv_prog_LEX+:} false; then : 4427 $as_echo_n "(cached) " >&6 4428else 4429 if test -n "$LEX"; then 4430 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4431else 4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433for as_dir in $PATH 4434do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_exec_ext in '' $ac_executable_extensions; do 4438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4439 ac_cv_prog_LEX="$ac_prog" 4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4441 break 2 4442 fi 4443done 4444 done 4445IFS=$as_save_IFS 4446 4447fi 4448fi 4449LEX=$ac_cv_prog_LEX 4450if test -n "$LEX"; then 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4452$as_echo "$LEX" >&6; } 4453else 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4455$as_echo "no" >&6; } 4456fi 4457 4458 4459 test -n "$LEX" && break 4460done 4461test -n "$LEX" || LEX=":" 4462 4463if test "x$LEX" != "x:"; then 4464 cat >conftest.l <<_ACEOF 4465%% 4466a { ECHO; } 4467b { REJECT; } 4468c { yymore (); } 4469d { yyless (1); } 4470e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 4471 yyless ((input () != 0)); } 4472f { unput (yytext[0]); } 4473. { BEGIN INITIAL; } 4474%% 4475#ifdef YYTEXT_POINTER 4476extern char *yytext; 4477#endif 4478int 4479main (void) 4480{ 4481 return ! yylex () + ! yywrap (); 4482} 4483_ACEOF 4484{ { ac_try="$LEX conftest.l" 4485case "(($ac_try" in 4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4487 *) ac_try_echo=$ac_try;; 4488esac 4489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4490$as_echo "$ac_try_echo"; } >&5 4491 (eval "$LEX conftest.l") 2>&5 4492 ac_status=$? 4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4494 test $ac_status = 0; } 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 4496$as_echo_n "checking lex output file root... " >&6; } 4497if ${ac_cv_prog_lex_root+:} false; then : 4498 $as_echo_n "(cached) " >&6 4499else 4500 4501if test -f lex.yy.c; then 4502 ac_cv_prog_lex_root=lex.yy 4503elif test -f lexyy.c; then 4504 ac_cv_prog_lex_root=lexyy 4505else 4506 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4507fi 4508fi 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4510$as_echo "$ac_cv_prog_lex_root" >&6; } 4511LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4512 4513if test -z "${LEXLIB+set}"; then 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 4515$as_echo_n "checking lex library... " >&6; } 4516if ${ac_cv_lib_lex+:} false; then : 4517 $as_echo_n "(cached) " >&6 4518else 4519 4520 ac_save_LIBS=$LIBS 4521 ac_cv_lib_lex='none needed' 4522 for ac_lib in '' -lfl -ll; do 4523 LIBS="$ac_lib $ac_save_LIBS" 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4525/* end confdefs.h. */ 4526`cat $LEX_OUTPUT_ROOT.c` 4527_ACEOF 4528if ac_fn_c_try_link "$LINENO"; then : 4529 ac_cv_lib_lex=$ac_lib 4530fi 4531rm -f core conftest.err conftest.$ac_objext \ 4532 conftest$ac_exeext conftest.$ac_ext 4533 test "$ac_cv_lib_lex" != 'none needed' && break 4534 done 4535 LIBS=$ac_save_LIBS 4536 4537fi 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4539$as_echo "$ac_cv_lib_lex" >&6; } 4540 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4541fi 4542 4543 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 4545$as_echo_n "checking whether yytext is a pointer... " >&6; } 4546if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4547 $as_echo_n "(cached) " >&6 4548else 4549 # POSIX says lex can declare yytext either as a pointer or an array; the 4550# default is implementation-dependent. Figure out which it is, since 4551# not all implementations provide the %pointer and %array declarations. 4552ac_cv_prog_lex_yytext_pointer=no 4553ac_save_LIBS=$LIBS 4554LIBS="$LEXLIB $ac_save_LIBS" 4555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4556/* end confdefs.h. */ 4557 4558 #define YYTEXT_POINTER 1 4559`cat $LEX_OUTPUT_ROOT.c` 4560_ACEOF 4561if ac_fn_c_try_link "$LINENO"; then : 4562 ac_cv_prog_lex_yytext_pointer=yes 4563fi 4564rm -f core conftest.err conftest.$ac_objext \ 4565 conftest$ac_exeext conftest.$ac_ext 4566LIBS=$ac_save_LIBS 4567 4568fi 4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 4570$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4571if test $ac_cv_prog_lex_yytext_pointer = yes; then 4572 4573$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4574 4575fi 4576rm -f conftest.l $LEX_OUTPUT_ROOT.c 4577 4578fi 4579if test "$LEX" = :; then 4580 LEX=${am_missing_run}flex 4581fi 4582for ac_prog in 'bison -y' byacc 4583do 4584 # Extract the first word of "$ac_prog", so it can be a program name with args. 4585set dummy $ac_prog; ac_word=$2 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4587$as_echo_n "checking for $ac_word... " >&6; } 4588if ${ac_cv_prog_YACC+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 if test -n "$YACC"; then 4592 ac_cv_prog_YACC="$YACC" # Let the user override the test. 4593else 4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4595for as_dir in $PATH 4596do 4597 IFS=$as_save_IFS 4598 test -z "$as_dir" && as_dir=. 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4601 ac_cv_prog_YACC="$ac_prog" 4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4603 break 2 4604 fi 4605done 4606 done 4607IFS=$as_save_IFS 4608 4609fi 4610fi 4611YACC=$ac_cv_prog_YACC 4612if test -n "$YACC"; then 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 4614$as_echo "$YACC" >&6; } 4615else 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4617$as_echo "no" >&6; } 4618fi 4619 4620 4621 test -n "$YACC" && break 4622done 4623test -n "$YACC" || YACC="yacc" 4624 4625 4626# Make sure we can run config.sub. 4627$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4628 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4629 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4631$as_echo_n "checking build system type... " >&6; } 4632if ${ac_cv_build+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634else 4635 ac_build_alias=$build_alias 4636test "x$ac_build_alias" = x && 4637 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4638test "x$ac_build_alias" = x && 4639 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4640ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4642 4643fi 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4645$as_echo "$ac_cv_build" >&6; } 4646case $ac_cv_build in 4647*-*-*) ;; 4648*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4649esac 4650build=$ac_cv_build 4651ac_save_IFS=$IFS; IFS='-' 4652set x $ac_cv_build 4653shift 4654build_cpu=$1 4655build_vendor=$2 4656shift; shift 4657# Remember, the first character of IFS is used to create $*, 4658# except with old shells: 4659build_os=$* 4660IFS=$ac_save_IFS 4661case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4662 4663 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4665$as_echo_n "checking host system type... " >&6; } 4666if ${ac_cv_host+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 if test "x$host_alias" = x; then 4670 ac_cv_host=$ac_cv_build 4671else 4672 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4673 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4674fi 4675 4676fi 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4678$as_echo "$ac_cv_host" >&6; } 4679case $ac_cv_host in 4680*-*-*) ;; 4681*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4682esac 4683host=$ac_cv_host 4684ac_save_IFS=$IFS; IFS='-' 4685set x $ac_cv_host 4686shift 4687host_cpu=$1 4688host_vendor=$2 4689shift; shift 4690# Remember, the first character of IFS is used to create $*, 4691# except with old shells: 4692host_os=$* 4693IFS=$ac_save_IFS 4694case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4695 4696 4697 4698case $host in 4699 *-*-linux*) 4700 4701$as_echo "#define HAVE_LINUX 1" >>confdefs.h 4702 4703 ;; 4704 *-*-cygwin*) 4705 4706$as_echo "#define HAVE_CYGWIN 1" >>confdefs.h 4707 4708 ;; 4709 *) 4710 ;; 4711esac 4712 4713ac_ext=c 4714ac_cpp='$CPP $CPPFLAGS' 4715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4717ac_compiler_gnu=$ac_cv_c_compiler_gnu 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4719$as_echo_n "checking how to run the C preprocessor... " >&6; } 4720# On Suns, sometimes $CPP names a directory. 4721if test -n "$CPP" && test -d "$CPP"; then 4722 CPP= 4723fi 4724if test -z "$CPP"; then 4725 if ${ac_cv_prog_CPP+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 # Double quotes because CPP needs to be expanded 4729 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4730 do 4731 ac_preproc_ok=false 4732for ac_c_preproc_warn_flag in '' yes 4733do 4734 # Use a header file that comes with gcc, so configuring glibc 4735 # with a fresh cross-compiler works. 4736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4737 # <limits.h> exists even on freestanding compilers. 4738 # On the NeXT, cc -E runs the code through the compiler's parser, 4739 # not just through cpp. "Syntax error" is here to catch this case. 4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4741/* end confdefs.h. */ 4742#ifdef __STDC__ 4743# include <limits.h> 4744#else 4745# include <assert.h> 4746#endif 4747 Syntax error 4748_ACEOF 4749if ac_fn_c_try_cpp "$LINENO"; then : 4750 4751else 4752 # Broken: fails on valid input. 4753continue 4754fi 4755rm -f conftest.err conftest.i conftest.$ac_ext 4756 4757 # OK, works on sane cases. Now check whether nonexistent headers 4758 # can be detected and how. 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4760/* end confdefs.h. */ 4761#include <ac_nonexistent.h> 4762_ACEOF 4763if ac_fn_c_try_cpp "$LINENO"; then : 4764 # Broken: success on invalid input. 4765continue 4766else 4767 # Passes both tests. 4768ac_preproc_ok=: 4769break 4770fi 4771rm -f conftest.err conftest.i conftest.$ac_ext 4772 4773done 4774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4775rm -f conftest.i conftest.err conftest.$ac_ext 4776if $ac_preproc_ok; then : 4777 break 4778fi 4779 4780 done 4781 ac_cv_prog_CPP=$CPP 4782 4783fi 4784 CPP=$ac_cv_prog_CPP 4785else 4786 ac_cv_prog_CPP=$CPP 4787fi 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4789$as_echo "$CPP" >&6; } 4790ac_preproc_ok=false 4791for ac_c_preproc_warn_flag in '' yes 4792do 4793 # Use a header file that comes with gcc, so configuring glibc 4794 # with a fresh cross-compiler works. 4795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4796 # <limits.h> exists even on freestanding compilers. 4797 # On the NeXT, cc -E runs the code through the compiler's parser, 4798 # not just through cpp. "Syntax error" is here to catch this case. 4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4800/* end confdefs.h. */ 4801#ifdef __STDC__ 4802# include <limits.h> 4803#else 4804# include <assert.h> 4805#endif 4806 Syntax error 4807_ACEOF 4808if ac_fn_c_try_cpp "$LINENO"; then : 4809 4810else 4811 # Broken: fails on valid input. 4812continue 4813fi 4814rm -f conftest.err conftest.i conftest.$ac_ext 4815 4816 # OK, works on sane cases. Now check whether nonexistent headers 4817 # can be detected and how. 4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4819/* end confdefs.h. */ 4820#include <ac_nonexistent.h> 4821_ACEOF 4822if ac_fn_c_try_cpp "$LINENO"; then : 4823 # Broken: success on invalid input. 4824continue 4825else 4826 # Passes both tests. 4827ac_preproc_ok=: 4828break 4829fi 4830rm -f conftest.err conftest.i conftest.$ac_ext 4831 4832done 4833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4834rm -f conftest.i conftest.err conftest.$ac_ext 4835if $ac_preproc_ok; then : 4836 4837else 4838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4840as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4841See \`config.log' for more details" "$LINENO" 5; } 4842fi 4843 4844ac_ext=c 4845ac_cpp='$CPP $CPPFLAGS' 4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4848ac_compiler_gnu=$ac_cv_c_compiler_gnu 4849 4850 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4852$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4853if ${ac_cv_path_GREP+:} false; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 if test -z "$GREP"; then 4857 ac_path_GREP_found=false 4858 # Loop through the user's path and test for each of PROGNAME-LIST 4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4860for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4861do 4862 IFS=$as_save_IFS 4863 test -z "$as_dir" && as_dir=. 4864 for ac_prog in grep ggrep; do 4865 for ac_exec_ext in '' $ac_executable_extensions; do 4866 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4867 as_fn_executable_p "$ac_path_GREP" || continue 4868# Check for GNU ac_path_GREP and select it if it is found. 4869 # Check for GNU $ac_path_GREP 4870case `"$ac_path_GREP" --version 2>&1` in 4871*GNU*) 4872 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4873*) 4874 ac_count=0 4875 $as_echo_n 0123456789 >"conftest.in" 4876 while : 4877 do 4878 cat "conftest.in" "conftest.in" >"conftest.tmp" 4879 mv "conftest.tmp" "conftest.in" 4880 cp "conftest.in" "conftest.nl" 4881 $as_echo 'GREP' >> "conftest.nl" 4882 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4884 as_fn_arith $ac_count + 1 && ac_count=$as_val 4885 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4886 # Best one so far, save it but keep looking for a better one 4887 ac_cv_path_GREP="$ac_path_GREP" 4888 ac_path_GREP_max=$ac_count 4889 fi 4890 # 10*(2^10) chars as input seems more than enough 4891 test $ac_count -gt 10 && break 4892 done 4893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4894esac 4895 4896 $ac_path_GREP_found && break 3 4897 done 4898 done 4899 done 4900IFS=$as_save_IFS 4901 if test -z "$ac_cv_path_GREP"; then 4902 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4903 fi 4904else 4905 ac_cv_path_GREP=$GREP 4906fi 4907 4908fi 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4910$as_echo "$ac_cv_path_GREP" >&6; } 4911 GREP="$ac_cv_path_GREP" 4912 4913 4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4915$as_echo_n "checking for egrep... " >&6; } 4916if ${ac_cv_path_EGREP+:} false; then : 4917 $as_echo_n "(cached) " >&6 4918else 4919 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4920 then ac_cv_path_EGREP="$GREP -E" 4921 else 4922 if test -z "$EGREP"; then 4923 ac_path_EGREP_found=false 4924 # Loop through the user's path and test for each of PROGNAME-LIST 4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4926for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4927do 4928 IFS=$as_save_IFS 4929 test -z "$as_dir" && as_dir=. 4930 for ac_prog in egrep; do 4931 for ac_exec_ext in '' $ac_executable_extensions; do 4932 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4933 as_fn_executable_p "$ac_path_EGREP" || continue 4934# Check for GNU ac_path_EGREP and select it if it is found. 4935 # Check for GNU $ac_path_EGREP 4936case `"$ac_path_EGREP" --version 2>&1` in 4937*GNU*) 4938 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4939*) 4940 ac_count=0 4941 $as_echo_n 0123456789 >"conftest.in" 4942 while : 4943 do 4944 cat "conftest.in" "conftest.in" >"conftest.tmp" 4945 mv "conftest.tmp" "conftest.in" 4946 cp "conftest.in" "conftest.nl" 4947 $as_echo 'EGREP' >> "conftest.nl" 4948 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4949 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4950 as_fn_arith $ac_count + 1 && ac_count=$as_val 4951 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4952 # Best one so far, save it but keep looking for a better one 4953 ac_cv_path_EGREP="$ac_path_EGREP" 4954 ac_path_EGREP_max=$ac_count 4955 fi 4956 # 10*(2^10) chars as input seems more than enough 4957 test $ac_count -gt 10 && break 4958 done 4959 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4960esac 4961 4962 $ac_path_EGREP_found && break 3 4963 done 4964 done 4965 done 4966IFS=$as_save_IFS 4967 if test -z "$ac_cv_path_EGREP"; then 4968 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4969 fi 4970else 4971 ac_cv_path_EGREP=$EGREP 4972fi 4973 4974 fi 4975fi 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4977$as_echo "$ac_cv_path_EGREP" >&6; } 4978 EGREP="$ac_cv_path_EGREP" 4979 4980 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4982$as_echo_n "checking for ANSI C header files... " >&6; } 4983if ${ac_cv_header_stdc+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4987/* end confdefs.h. */ 4988#include <stdlib.h> 4989#include <stdarg.h> 4990#include <string.h> 4991#include <float.h> 4992 4993int 4994main () 4995{ 4996 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001if ac_fn_c_try_compile "$LINENO"; then : 5002 ac_cv_header_stdc=yes 5003else 5004 ac_cv_header_stdc=no 5005fi 5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5007 5008if test $ac_cv_header_stdc = yes; then 5009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5011/* end confdefs.h. */ 5012#include <string.h> 5013 5014_ACEOF 5015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5016 $EGREP "memchr" >/dev/null 2>&1; then : 5017 5018else 5019 ac_cv_header_stdc=no 5020fi 5021rm -f conftest* 5022 5023fi 5024 5025if test $ac_cv_header_stdc = yes; then 5026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5028/* end confdefs.h. */ 5029#include <stdlib.h> 5030 5031_ACEOF 5032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5033 $EGREP "free" >/dev/null 2>&1; then : 5034 5035else 5036 ac_cv_header_stdc=no 5037fi 5038rm -f conftest* 5039 5040fi 5041 5042if test $ac_cv_header_stdc = yes; then 5043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5044 if test "$cross_compiling" = yes; then : 5045 : 5046else 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049#include <ctype.h> 5050#include <stdlib.h> 5051#if ((' ' & 0x0FF) == 0x020) 5052# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5053# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5054#else 5055# define ISLOWER(c) \ 5056 (('a' <= (c) && (c) <= 'i') \ 5057 || ('j' <= (c) && (c) <= 'r') \ 5058 || ('s' <= (c) && (c) <= 'z')) 5059# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5060#endif 5061 5062#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5063int 5064main () 5065{ 5066 int i; 5067 for (i = 0; i < 256; i++) 5068 if (XOR (islower (i), ISLOWER (i)) 5069 || toupper (i) != TOUPPER (i)) 5070 return 2; 5071 return 0; 5072} 5073_ACEOF 5074if ac_fn_c_try_run "$LINENO"; then : 5075 5076else 5077 ac_cv_header_stdc=no 5078fi 5079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5080 conftest.$ac_objext conftest.beam conftest.$ac_ext 5081fi 5082 5083fi 5084fi 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5086$as_echo "$ac_cv_header_stdc" >&6; } 5087if test $ac_cv_header_stdc = yes; then 5088 5089$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5090 5091fi 5092 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 5094$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 5095if ${ac_cv_header_sys_wait_h+:} false; then : 5096 $as_echo_n "(cached) " >&6 5097else 5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5099/* end confdefs.h. */ 5100#include <sys/types.h> 5101#include <sys/wait.h> 5102#ifndef WEXITSTATUS 5103# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 5104#endif 5105#ifndef WIFEXITED 5106# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5107#endif 5108 5109int 5110main () 5111{ 5112 int s; 5113 wait (&s); 5114 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5115 ; 5116 return 0; 5117} 5118_ACEOF 5119if ac_fn_c_try_compile "$LINENO"; then : 5120 ac_cv_header_sys_wait_h=yes 5121else 5122 ac_cv_header_sys_wait_h=no 5123fi 5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5125fi 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 5127$as_echo "$ac_cv_header_sys_wait_h" >&6; } 5128if test $ac_cv_header_sys_wait_h = yes; then 5129 5130$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 5131 5132fi 5133 5134 5135# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5136for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5137 inttypes.h stdint.h unistd.h 5138do : 5139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5140ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5141" 5142if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5143 cat >>confdefs.h <<_ACEOF 5144#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5145_ACEOF 5146 5147fi 5148 5149done 5150 5151 5152for ac_header in pty.h sys/stropts.h util.h libutil.h 5153do : 5154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5155ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5157 cat >>confdefs.h <<_ACEOF 5158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5159_ACEOF 5160 5161fi 5162 5163done 5164 5165 5166for ac_header in termios.h 5167do : 5168 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 5169if test "x$ac_cv_header_termios_h" = xyes; then : 5170 cat >>confdefs.h <<_ACEOF 5171#define HAVE_TERMIOS_H 1 5172_ACEOF 5173 5174else 5175 as_fn_error $? "CGDB requires termios.h to build." "$LINENO" 5 5176fi 5177 5178done 5179 5180for ac_header in sys/select.h 5181do : 5182 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 5183if test "x$ac_cv_header_sys_select_h" = xyes; then : 5184 cat >>confdefs.h <<_ACEOF 5185#define HAVE_SYS_SELECT_H 1 5186_ACEOF 5187 5188else 5189 as_fn_error $? "CGDB requires sys/select.h to build." "$LINENO" 5 5190fi 5191 5192done 5193 5194for ac_header in errno.h 5195do : 5196 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 5197if test "x$ac_cv_header_errno_h" = xyes; then : 5198 cat >>confdefs.h <<_ACEOF 5199#define HAVE_ERRNO_H 1 5200_ACEOF 5201 5202else 5203 as_fn_error $? "CGDB requires errno.h to build." "$LINENO" 5 5204fi 5205 5206done 5207 5208for ac_header in fcntl.h 5209do : 5210 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 5211if test "x$ac_cv_header_fcntl_h" = xyes; then : 5212 cat >>confdefs.h <<_ACEOF 5213#define HAVE_FCNTL_H 1 5214_ACEOF 5215 5216else 5217 as_fn_error $? "CGDB requires fcntl.h to build." "$LINENO" 5 5218fi 5219 5220done 5221 5222for ac_header in grp.h 5223do : 5224 ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 5225if test "x$ac_cv_header_grp_h" = xyes; then : 5226 cat >>confdefs.h <<_ACEOF 5227#define HAVE_GRP_H 1 5228_ACEOF 5229 5230else 5231 as_fn_error $? "CGDB requires grp.h to build." "$LINENO" 5 5232fi 5233 5234done 5235 5236for ac_header in pwd.h 5237do : 5238 ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 5239if test "x$ac_cv_header_pwd_h" = xyes; then : 5240 cat >>confdefs.h <<_ACEOF 5241#define HAVE_PWD_H 1 5242_ACEOF 5243 5244else 5245 as_fn_error $? "CGDB requires pwd.h to build." "$LINENO" 5 5246fi 5247 5248done 5249 5250for ac_header in signal.h 5251do : 5252 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 5253if test "x$ac_cv_header_signal_h" = xyes; then : 5254 cat >>confdefs.h <<_ACEOF 5255#define HAVE_SIGNAL_H 1 5256_ACEOF 5257 5258else 5259 as_fn_error $? "CGDB requires signal.h to build." "$LINENO" 5 5260fi 5261 5262done 5263 5264for ac_header in stdarg.h 5265do : 5266 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 5267if test "x$ac_cv_header_stdarg_h" = xyes; then : 5268 cat >>confdefs.h <<_ACEOF 5269#define HAVE_STDARG_H 1 5270_ACEOF 5271 5272else 5273 as_fn_error $? "CGDB requires stdarg.h to build." "$LINENO" 5 5274fi 5275 5276done 5277 5278for ac_header in stdio.h 5279do : 5280 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 5281if test "x$ac_cv_header_stdio_h" = xyes; then : 5282 cat >>confdefs.h <<_ACEOF 5283#define HAVE_STDIO_H 1 5284_ACEOF 5285 5286else 5287 as_fn_error $? "CGDB requires stdio.h to build." "$LINENO" 5 5288fi 5289 5290done 5291 5292for ac_header in stdlib.h 5293do : 5294 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5295if test "x$ac_cv_header_stdlib_h" = xyes; then : 5296 cat >>confdefs.h <<_ACEOF 5297#define HAVE_STDLIB_H 1 5298_ACEOF 5299 5300else 5301 as_fn_error $? "CGDB requires stdlib.h to build." "$LINENO" 5 5302fi 5303 5304done 5305 5306for ac_header in string.h 5307do : 5308 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 5309if test "x$ac_cv_header_string_h" = xyes; then : 5310 cat >>confdefs.h <<_ACEOF 5311#define HAVE_STRING_H 1 5312_ACEOF 5313 5314else 5315 as_fn_error $? "CGDB requires string.h to build." "$LINENO" 5 5316fi 5317 5318done 5319 5320for ac_header in sys/ioctl.h 5321do : 5322 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 5323if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : 5324 cat >>confdefs.h <<_ACEOF 5325#define HAVE_SYS_IOCTL_H 1 5326_ACEOF 5327 5328else 5329 as_fn_error $? "CGDB requires sys/ioctl.h to build." "$LINENO" 5 5330fi 5331 5332done 5333 5334for ac_header in sys/stat.h 5335do : 5336 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 5337if test "x$ac_cv_header_sys_stat_h" = xyes; then : 5338 cat >>confdefs.h <<_ACEOF 5339#define HAVE_SYS_STAT_H 1 5340_ACEOF 5341 5342else 5343 as_fn_error $? "CGDB requires sys/stat.h to build." "$LINENO" 5 5344fi 5345 5346done 5347 5348for ac_header in sys/time.h 5349do : 5350 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 5351if test "x$ac_cv_header_sys_time_h" = xyes; then : 5352 cat >>confdefs.h <<_ACEOF 5353#define HAVE_SYS_TIME_H 1 5354_ACEOF 5355 5356else 5357 as_fn_error $? "CGDB requires sys/time.h to build." "$LINENO" 5 5358fi 5359 5360done 5361 5362for ac_header in time.h 5363do : 5364 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 5365if test "x$ac_cv_header_time_h" = xyes; then : 5366 cat >>confdefs.h <<_ACEOF 5367#define HAVE_TIME_H 1 5368_ACEOF 5369 5370else 5371 as_fn_error $? "CGDB requires time.h to build." "$LINENO" 5 5372fi 5373 5374done 5375 5376for ac_header in sys/types.h 5377do : 5378 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 5379if test "x$ac_cv_header_sys_types_h" = xyes; then : 5380 cat >>confdefs.h <<_ACEOF 5381#define HAVE_SYS_TYPES_H 1 5382_ACEOF 5383 5384else 5385 as_fn_error $? "CGDB requires sys/types.h to build." "$LINENO" 5 5386fi 5387 5388done 5389 5390for ac_header in unistd.h 5391do : 5392 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 5393if test "x$ac_cv_header_unistd_h" = xyes; then : 5394 cat >>confdefs.h <<_ACEOF 5395#define HAVE_UNISTD_H 1 5396_ACEOF 5397 5398else 5399 as_fn_error $? "CGDB requires unistd.h to build." "$LINENO" 5 5400fi 5401 5402done 5403 5404for ac_header in ctype.h 5405do : 5406 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" 5407if test "x$ac_cv_header_ctype_h" = xyes; then : 5408 cat >>confdefs.h <<_ACEOF 5409#define HAVE_CTYPE_H 1 5410_ACEOF 5411 5412else 5413 as_fn_error $? "CGDB requires ctype.h to build." "$LINENO" 5 5414fi 5415 5416done 5417 5418for ac_header in limits.h 5419do : 5420 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 5421if test "x$ac_cv_header_limits_h" = xyes; then : 5422 cat >>confdefs.h <<_ACEOF 5423#define HAVE_LIMITS_H 1 5424_ACEOF 5425 5426else 5427 as_fn_error $? "CGDB requires limits.h to build." "$LINENO" 5 5428fi 5429 5430done 5431 5432for ac_header in math.h 5433do : 5434 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" 5435if test "x$ac_cv_header_math_h" = xyes; then : 5436 cat >>confdefs.h <<_ACEOF 5437#define HAVE_MATH_H 1 5438_ACEOF 5439 5440else 5441 as_fn_error $? "CGDB requires math.h to build." "$LINENO" 5 5442fi 5443 5444done 5445 5446for ac_header in regex.h 5447do : 5448 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default" 5449if test "x$ac_cv_header_regex_h" = xyes; then : 5450 cat >>confdefs.h <<_ACEOF 5451#define HAVE_REGEX_H 1 5452_ACEOF 5453 5454else 5455 as_fn_error $? "CGDB requires regex.h to build." "$LINENO" 5 5456fi 5457 5458done 5459 5460for ac_header in curses.h 5461do : 5462 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 5463if test "x$ac_cv_header_curses_h" = xyes; then : 5464 cat >>confdefs.h <<_ACEOF 5465#define HAVE_CURSES_H 1 5466_ACEOF 5467 5468else 5469 5470 for ac_header in ncurses/curses.h 5471do : 5472 ac_fn_c_check_header_mongrel "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default" 5473if test "x$ac_cv_header_ncurses_curses_h" = xyes; then : 5474 cat >>confdefs.h <<_ACEOF 5475#define HAVE_NCURSES_CURSES_H 1 5476_ACEOF 5477 5478else 5479 5480 as_fn_error $? "CGDB requires curses.h or ncurses/curses.h to build." "$LINENO" 5 5481fi 5482 5483done 5484 5485fi 5486 5487done 5488 5489 5490for ac_header in getopt.h 5491do : 5492 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 5493if test "x$ac_cv_header_getopt_h" = xyes; then : 5494 cat >>confdefs.h <<_ACEOF 5495#define HAVE_GETOPT_H 1 5496_ACEOF 5497 5498$as_echo "#define HAVE_GETOPT_H 1" >>confdefs.h 5499 5500fi 5501 5502done 5503 5504 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 5506$as_echo_n "checking for /dev/ptmx... " >&6; } 5507if ${ac_cv_file__dev_ptmx+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509else 5510 test "$cross_compiling" = yes && 5511 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 5512if test -r "/dev/ptmx"; then 5513 ac_cv_file__dev_ptmx=no 5514else 5515 ac_cv_file__dev_ptmx=no 5516fi 5517fi 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 5519$as_echo "$ac_cv_file__dev_ptmx" >&6; } 5520if test "x$ac_cv_file__dev_ptmx" = xyes; then : 5521 5522$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 5523 5524fi 5525 5526 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/status" >&5 5528$as_echo_n "checking for /proc/self/status... " >&6; } 5529if ${ac_cv_file__proc_self_status+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 test "$cross_compiling" = yes && 5533 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 5534if test -r "/proc/self/status"; then 5535 ac_cv_file__proc_self_status=yes 5536else 5537 ac_cv_file__proc_self_status=no 5538fi 5539fi 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_status" >&5 5541$as_echo "$ac_cv_file__proc_self_status" >&6; } 5542if test "x$ac_cv_file__proc_self_status" = xyes; then : 5543 5544$as_echo "#define HAVE_PROC_SELF_STATUS_FILE 1" >>confdefs.h 5545 5546fi 5547 5548 5549for ac_header in pty.h 5550do : 5551 ac_fn_c_check_header_mongrel "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" 5552if test "x$ac_cv_header_pty_h" = xyes; then : 5553 cat >>confdefs.h <<_ACEOF 5554#define HAVE_PTY_H 1 5555_ACEOF 5556 5557$as_echo "#define HAVE_PTY_H 1" >>confdefs.h 5558 5559fi 5560 5561done 5562 5563 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 5565$as_echo_n "checking for openpty in -lutil... " >&6; } 5566if ${ac_cv_lib_util_openpty+:} false; then : 5567 $as_echo_n "(cached) " >&6 5568else 5569 ac_check_lib_save_LIBS=$LIBS 5570LIBS="-lutil $LIBS" 5571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572/* end confdefs.h. */ 5573 5574/* Override any GCC internal prototype to avoid an error. 5575 Use char because int might match the return type of a GCC 5576 builtin and then its argument prototype would still apply. */ 5577#ifdef __cplusplus 5578extern "C" 5579#endif 5580char openpty (); 5581int 5582main () 5583{ 5584return openpty (); 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589if ac_fn_c_try_link "$LINENO"; then : 5590 ac_cv_lib_util_openpty=yes 5591else 5592 ac_cv_lib_util_openpty=no 5593fi 5594rm -f core conftest.err conftest.$ac_objext \ 5595 conftest$ac_exeext conftest.$ac_ext 5596LIBS=$ac_check_lib_save_LIBS 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 5599$as_echo "$ac_cv_lib_util_openpty" >&6; } 5600if test "x$ac_cv_lib_util_openpty" = xyes; then : 5601 5602$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 5603 LIBS="$LIBS -lutil" 5604fi 5605 5606 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5608$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5609if ${ac_cv_c_const+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613/* end confdefs.h. */ 5614 5615int 5616main () 5617{ 5618 5619#ifndef __cplusplus 5620 /* Ultrix mips cc rejects this sort of thing. */ 5621 typedef int charset[2]; 5622 const charset cs = { 0, 0 }; 5623 /* SunOS 4.1.1 cc rejects this. */ 5624 char const *const *pcpcc; 5625 char **ppc; 5626 /* NEC SVR4.0.2 mips cc rejects this. */ 5627 struct point {int x, y;}; 5628 static struct point const zero = {0,0}; 5629 /* AIX XL C 1.02.0.0 rejects this. 5630 It does not let you subtract one const X* pointer from another in 5631 an arm of an if-expression whose if-part is not a constant 5632 expression */ 5633 const char *g = "string"; 5634 pcpcc = &g + (g ? g-g : 0); 5635 /* HPUX 7.0 cc rejects these. */ 5636 ++pcpcc; 5637 ppc = (char**) pcpcc; 5638 pcpcc = (char const *const *) ppc; 5639 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5640 char tx; 5641 char *t = &tx; 5642 char const *s = 0 ? (char *) 0 : (char const *) 0; 5643 5644 *t++ = 0; 5645 if (s) return 0; 5646 } 5647 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5648 int x[] = {25, 17}; 5649 const int *foo = &x[0]; 5650 ++foo; 5651 } 5652 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5653 typedef const int *iptr; 5654 iptr p = 0; 5655 ++p; 5656 } 5657 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5658 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5659 struct s { int j; const int *ap[3]; } bx; 5660 struct s *b = &bx; b->j = 5; 5661 } 5662 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5663 const int foo = 10; 5664 if (!foo) return 0; 5665 } 5666 return !cs[0] && !zero.x; 5667#endif 5668 5669 ; 5670 return 0; 5671} 5672_ACEOF 5673if ac_fn_c_try_compile "$LINENO"; then : 5674 ac_cv_c_const=yes 5675else 5676 ac_cv_c_const=no 5677fi 5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5679fi 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5681$as_echo "$ac_cv_c_const" >&6; } 5682if test $ac_cv_c_const = no; then 5683 5684$as_echo "#define const /**/" >>confdefs.h 5685 5686fi 5687 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 5689$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 5690if ${ac_cv_type_uid_t+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5694/* end confdefs.h. */ 5695#include <sys/types.h> 5696 5697_ACEOF 5698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5699 $EGREP "uid_t" >/dev/null 2>&1; then : 5700 ac_cv_type_uid_t=yes 5701else 5702 ac_cv_type_uid_t=no 5703fi 5704rm -f conftest* 5705 5706fi 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 5708$as_echo "$ac_cv_type_uid_t" >&6; } 5709if test $ac_cv_type_uid_t = no; then 5710 5711$as_echo "#define uid_t int" >>confdefs.h 5712 5713 5714$as_echo "#define gid_t int" >>confdefs.h 5715 5716fi 5717 5718ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 5719if test "x$ac_cv_type_mode_t" = xyes; then : 5720 5721else 5722 5723cat >>confdefs.h <<_ACEOF 5724#define mode_t int 5725_ACEOF 5726 5727fi 5728 5729ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 5730if test "x$ac_cv_type_pid_t" = xyes; then : 5731 5732else 5733 5734cat >>confdefs.h <<_ACEOF 5735#define pid_t int 5736_ACEOF 5737 5738fi 5739 5740ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5741if test "x$ac_cv_type_size_t" = xyes; then : 5742 5743else 5744 5745cat >>confdefs.h <<_ACEOF 5746#define size_t unsigned int 5747_ACEOF 5748 5749fi 5750 5751 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 5753$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 5754if ${ac_cv_func_setpgrp_void+:} false; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 if test "$cross_compiling" = yes; then : 5758 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 5759else 5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762$ac_includes_default 5763int 5764main () 5765{ 5766/* If this system has a BSD-style setpgrp which takes arguments, 5767 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 5768 exit successfully. */ 5769 return setpgrp (1,1) != -1; 5770 ; 5771 return 0; 5772} 5773_ACEOF 5774if ac_fn_c_try_run "$LINENO"; then : 5775 ac_cv_func_setpgrp_void=no 5776else 5777 ac_cv_func_setpgrp_void=yes 5778fi 5779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5780 conftest.$ac_objext conftest.beam conftest.$ac_ext 5781fi 5782 5783fi 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 5785$as_echo "$ac_cv_func_setpgrp_void" >&6; } 5786if test $ac_cv_func_setpgrp_void = yes; then 5787 5788$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 5789 5790fi 5791 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 5793$as_echo_n "checking return type of signal handlers... " >&6; } 5794if ${ac_cv_type_signal+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799#include <sys/types.h> 5800#include <signal.h> 5801 5802int 5803main () 5804{ 5805return *(signal (0, 0)) (0) == 1; 5806 ; 5807 return 0; 5808} 5809_ACEOF 5810if ac_fn_c_try_compile "$LINENO"; then : 5811 ac_cv_type_signal=int 5812else 5813 ac_cv_type_signal=void 5814fi 5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5816fi 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 5818$as_echo "$ac_cv_type_signal" >&6; } 5819 5820cat >>confdefs.h <<_ACEOF 5821#define RETSIGTYPE $ac_cv_type_signal 5822_ACEOF 5823 5824 5825for ac_func in vprintf 5826do : 5827 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 5828if test "x$ac_cv_func_vprintf" = xyes; then : 5829 cat >>confdefs.h <<_ACEOF 5830#define HAVE_VPRINTF 1 5831_ACEOF 5832 5833ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 5834if test "x$ac_cv_func__doprnt" = xyes; then : 5835 5836$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 5837 5838fi 5839 5840fi 5841done 5842 5843 5844 5845ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 5846if test "x$ac_cv_func_putenv" = xyes; then : 5847 5848else 5849 as_fn_error $? "CGDB requires putenv to build." "$LINENO" 5 5850fi 5851 5852ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 5853if test "x$ac_cv_func_select" = xyes; then : 5854 5855else 5856 as_fn_error $? "CGDB requires select to build." "$LINENO" 5 5857fi 5858 5859ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 5860if test "x$ac_cv_func_strdup" = xyes; then : 5861 5862else 5863 as_fn_error $? "CGDB requires strdup to build." "$LINENO" 5 5864fi 5865 5866ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 5867if test "x$ac_cv_func_strerror" = xyes; then : 5868 5869else 5870 as_fn_error $? "CGDB requires strerror to build." "$LINENO" 5 5871fi 5872 5873ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r" 5874if test "x$ac_cv_func_ttyname_r" = xyes; then : 5875 5876$as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h 5877 5878fi 5879 5880 5881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5882/* end confdefs.h. */ 5883#ifndef _GNU_SOURCE 5884 #define _GNU_SOURCE 5885 #endif 5886 #include <stdlib.h> 5887int 5888main () 5889{ 5890char buf[10]; ptsname_r(0, buf, sizeof(buf)); 5891 ; 5892 return 0; 5893} 5894_ACEOF 5895if ac_fn_c_try_link "$LINENO"; then : 5896 5897$as_echo "#define HAVE_PTSNAME_R 1" >>confdefs.h 5898 5899fi 5900rm -f core conftest.err conftest.$ac_objext \ 5901 conftest$ac_exeext conftest.$ac_ext 5902 5903# Extract the first word of "makeinfo", so it can be a program name with args. 5904set dummy makeinfo; ac_word=$2 5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5906$as_echo_n "checking for $ac_word... " >&6; } 5907if ${ac_cv_prog_HAS_MAKEINFO+:} false; then : 5908 $as_echo_n "(cached) " >&6 5909else 5910 if test -n "$HAS_MAKEINFO"; then 5911 ac_cv_prog_HAS_MAKEINFO="$HAS_MAKEINFO" # Let the user override the test. 5912else 5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5914for as_dir in $PATH 5915do 5916 IFS=$as_save_IFS 5917 test -z "$as_dir" && as_dir=. 5918 for ac_exec_ext in '' $ac_executable_extensions; do 5919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5920 ac_cv_prog_HAS_MAKEINFO="yes" 5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5922 break 2 5923 fi 5924done 5925 done 5926IFS=$as_save_IFS 5927 5928 test -z "$ac_cv_prog_HAS_MAKEINFO" && ac_cv_prog_HAS_MAKEINFO="no" 5929fi 5930fi 5931HAS_MAKEINFO=$ac_cv_prog_HAS_MAKEINFO 5932if test -n "$HAS_MAKEINFO"; then 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_MAKEINFO" >&5 5934$as_echo "$HAS_MAKEINFO" >&6; } 5935else 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5937$as_echo "no" >&6; } 5938fi 5939 5940 5941opt_with_readline_prefix=no 5942use_ncurses_library=yes 5943opt_with_ncurses_prefix=no 5944opt_with_curses_prefix=no 5945 5946 5947# Check whether --with-readline was given. 5948if test "${with_readline+set}" = set; then : 5949 withval=$with_readline; opt_with_readline_prefix=$withval 5950fi 5951 5952 5953# Check whether --with-ncurses was given. 5954if test "${with_ncurses+set}" = set; then : 5955 withval=$with_ncurses; opt_with_ncurses_prefix=$withval 5956fi 5957 5958 5959# Check whether --with-curses was given. 5960if test "${with_curses+set}" = set; then : 5961 withval=$with_curses; opt_with_curses_prefix=$withval use_ncurses_library=no 5962fi 5963 5964 5965 5966if test "$opt_with_readline_prefix" != "no"; then 5967 # If set to "yes", it is on the compilers include path. 5968 if test "$opt_with_readline_prefix" != "yes"; then 5969 LDFLAGS="-L$opt_with_readline_prefix/lib $LDFLAGS" CFLAGS="-I$opt_with_readline_prefix/include -I$opt_with_readline_prefix/include/readline $CFLAGS" CPPFLAGS="-I$opt_with_readline_prefix/include -I$opt_with_readline_prefix/include/readline $CPPFLAGS" 5970 fi 5971fi 5972 5973if test "$opt_with_ncurses_prefix" != "no"; then 5974 # If set to "yes", it is on the compilers include path. 5975 if test "$opt_with_curses_prefix" != "yes"; then 5976 LDFLAGS="-L$opt_with_ncurses_prefix/lib $LDFLAGS" CFLAGS="-I$opt_with_ncurses_prefix/include -I$opt_with_ncurses_prefix/include/ncurses $CFLAGS" CPPFLAGS="-I$opt_with_ncurses_prefix/include -I$opt_with_ncurses_prefix/include/ncurses $CPPFLAGS" 5977 fi 5978fi 5979 5980if test "$opt_with_curses_prefix" != "no"; then 5981 # If set to "yes", it is on the compilers include path. 5982 if test "$opt_with_curses_prefix" != "yes"; then 5983 LDFLAGS="-L$opt_with_curses_prefix/lib $LDFLAGS" CFLAGS="-I$opt_with_curses_prefix/include $CFLAGS" CPPFLAGS="-I$opt_with_curses_prefix/include $CPPFLAGS" 5984 fi 5985fi 5986 5987if test "$LEX" != "flex" -a "$LEX" != "lex"; then 5988 as_fn_error $? "Please install flex before installing" "$LINENO" 5 5989fi 5990 5991if test "$HAS_MAKEINFO" != "yes" ; then 5992 as_fn_error $? "Please install makeinfo before installing" "$LINENO" 5 5993fi 5994 5995 5996if test "$use_ncurses_library" = "yes"; then 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 5998$as_echo_n "checking for initscr in -lncurses... " >&6; } 5999if ${ac_cv_lib_ncurses_initscr+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 ac_check_lib_save_LIBS=$LIBS 6003LIBS="-lncurses $LIBS" 6004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005/* end confdefs.h. */ 6006 6007/* Override any GCC internal prototype to avoid an error. 6008 Use char because int might match the return type of a GCC 6009 builtin and then its argument prototype would still apply. */ 6010#ifdef __cplusplus 6011extern "C" 6012#endif 6013char initscr (); 6014int 6015main () 6016{ 6017return initscr (); 6018 ; 6019 return 0; 6020} 6021_ACEOF 6022if ac_fn_c_try_link "$LINENO"; then : 6023 ac_cv_lib_ncurses_initscr=yes 6024else 6025 ac_cv_lib_ncurses_initscr=no 6026fi 6027rm -f core conftest.err conftest.$ac_objext \ 6028 conftest$ac_exeext conftest.$ac_ext 6029LIBS=$ac_check_lib_save_LIBS 6030fi 6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5 6032$as_echo "$ac_cv_lib_ncurses_initscr" >&6; } 6033if test "x$ac_cv_lib_ncurses_initscr" = xyes; then : 6034 6035$as_echo "#define HAVE_NCURSES \"yes\"" >>confdefs.h 6036 6037fi 6038 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5 6040$as_echo_n "checking for initscr in -lncursesw... " >&6; } 6041if ${ac_cv_lib_ncursesw_initscr+:} false; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 ac_check_lib_save_LIBS=$LIBS 6045LIBS="-lncursesw $LIBS" 6046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6047/* end confdefs.h. */ 6048 6049/* Override any GCC internal prototype to avoid an error. 6050 Use char because int might match the return type of a GCC 6051 builtin and then its argument prototype would still apply. */ 6052#ifdef __cplusplus 6053extern "C" 6054#endif 6055char initscr (); 6056int 6057main () 6058{ 6059return initscr (); 6060 ; 6061 return 0; 6062} 6063_ACEOF 6064if ac_fn_c_try_link "$LINENO"; then : 6065 ac_cv_lib_ncursesw_initscr=yes 6066else 6067 ac_cv_lib_ncursesw_initscr=no 6068fi 6069rm -f core conftest.err conftest.$ac_objext \ 6070 conftest$ac_exeext conftest.$ac_ext 6071LIBS=$ac_check_lib_save_LIBS 6072fi 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5 6074$as_echo "$ac_cv_lib_ncursesw_initscr" >&6; } 6075if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then : 6076 6077$as_echo "#define HAVE_NCURSES \"yes\"" >>confdefs.h 6078 6079fi 6080 6081 if test "$ac_cv_lib_ncursesw_initscr" = "yes"; then 6082 curses_lib_name="ncursesw" 6083 elif test "$ac_cv_lib_ncurses_initscr" = "yes"; then 6084 curses_lib_name="ncurses" 6085 else 6086 as_fn_error $? "cgdb needs ncurses/curses to build. ncurses is strongly recommended. 6087 If your system does not have ncurses get it! 6088 If that is not an option try 'configure --with-curses.' 6089 You can try --with-ncurses=/foo/ncurses to tell configure where ncurses is." "$LINENO" 5 6090 fi 6091 6092fi 6093if test "$use_ncurses_library" = "no"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***************************************************** 6095 cgdb may not run properly when linked against curses! 6096 *****************************************************" >&5 6097$as_echo "$as_me: WARNING: ***************************************************** 6098 cgdb may not run properly when linked against curses! 6099 *****************************************************" >&2;} 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 6101$as_echo_n "checking for initscr in -lcurses... " >&6; } 6102if ${ac_cv_lib_curses_initscr+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104else 6105 ac_check_lib_save_LIBS=$LIBS 6106LIBS="-lcurses $LIBS" 6107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109 6110/* Override any GCC internal prototype to avoid an error. 6111 Use char because int might match the return type of a GCC 6112 builtin and then its argument prototype would still apply. */ 6113#ifdef __cplusplus 6114extern "C" 6115#endif 6116char initscr (); 6117int 6118main () 6119{ 6120return initscr (); 6121 ; 6122 return 0; 6123} 6124_ACEOF 6125if ac_fn_c_try_link "$LINENO"; then : 6126 ac_cv_lib_curses_initscr=yes 6127else 6128 ac_cv_lib_curses_initscr=no 6129fi 6130rm -f core conftest.err conftest.$ac_objext \ 6131 conftest$ac_exeext conftest.$ac_ext 6132LIBS=$ac_check_lib_save_LIBS 6133fi 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5 6135$as_echo "$ac_cv_lib_curses_initscr" >&6; } 6136if test "x$ac_cv_lib_curses_initscr" = xyes; then : 6137 6138$as_echo "#define HAVE_CURSES 1" >>confdefs.h 6139 6140else 6141 as_fn_error $? "cgdb needs ncurses/curses to build. ncurses is strongly recommended. 6142 If your system does not have ncurses get it! 6143 You can try --with-curses=/foo/curses to tell configure where curses is." "$LINENO" 5 6144fi 6145 6146 curses_lib_name="curses" 6147fi 6148 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking attribute printf support" >&5 6150$as_echo_n "checking Checking attribute printf support... " >&6; } 6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153#include <stdlib.h> 6154 static void test(const char *fmt, ...) 6155 __attribute__((format(__printf__, 1, 2))); 6156 static void test(const char *fmt, ...) { (void)fmt; } 6157int 6158main () 6159{ 6160test("foobar"); 6161 ; 6162 return 0; 6163} 6164_ACEOF 6165if ac_fn_c_try_link "$LINENO"; then : 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6167$as_echo "yes" >&6; } 6168 6169$as_echo "#define HAVE_ATTRIBUTE_PRINTF 1" >>confdefs.h 6170 6171else 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6173$as_echo "no" >&6; } 6174fi 6175rm -f core conftest.err conftest.$ac_objext \ 6176 conftest$ac_exeext conftest.$ac_ext 6177 6178 6179if test "X$bash_cv_termcap_lib" = "X"; then 6180_bash_needmsg=yes 6181else 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 6183$as_echo_n "checking which library has the termcap functions... " >&6; } 6184_bash_needmsg= 6185fi 6186if ${bash_cv_termcap_lib+:} false; then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent" 6190if test "x$ac_cv_func_tgetent" = xyes; then : 6191 bash_cv_termcap_lib=libc 6192else 6193 if test "$curses_lib_name" = "ncursesw"; then 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncursesw" >&5 6195$as_echo_n "checking for tgetent in -lncursesw... " >&6; } 6196if ${ac_cv_lib_ncursesw_tgetent+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 ac_check_lib_save_LIBS=$LIBS 6200LIBS="-lncursesw $LIBS" 6201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6202/* end confdefs.h. */ 6203 6204/* Override any GCC internal prototype to avoid an error. 6205 Use char because int might match the return type of a GCC 6206 builtin and then its argument prototype would still apply. */ 6207#ifdef __cplusplus 6208extern "C" 6209#endif 6210char tgetent (); 6211int 6212main () 6213{ 6214return tgetent (); 6215 ; 6216 return 0; 6217} 6218_ACEOF 6219if ac_fn_c_try_link "$LINENO"; then : 6220 ac_cv_lib_ncursesw_tgetent=yes 6221else 6222 ac_cv_lib_ncursesw_tgetent=no 6223fi 6224rm -f core conftest.err conftest.$ac_objext \ 6225 conftest$ac_exeext conftest.$ac_ext 6226LIBS=$ac_check_lib_save_LIBS 6227fi 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_tgetent" >&5 6229$as_echo "$ac_cv_lib_ncursesw_tgetent" >&6; } 6230if test "x$ac_cv_lib_ncursesw_tgetent" = xyes; then : 6231 bash_cv_termcap_lib=libncursesw 6232else 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfow" >&5 6234$as_echo_n "checking for tgetent in -ltinfow... " >&6; } 6235if ${ac_cv_lib_tinfow_tgetent+:} false; then : 6236 $as_echo_n "(cached) " >&6 6237else 6238 ac_check_lib_save_LIBS=$LIBS 6239LIBS="-ltinfow $LIBS" 6240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6241/* end confdefs.h. */ 6242 6243/* Override any GCC internal prototype to avoid an error. 6244 Use char because int might match the return type of a GCC 6245 builtin and then its argument prototype would still apply. */ 6246#ifdef __cplusplus 6247extern "C" 6248#endif 6249char tgetent (); 6250int 6251main () 6252{ 6253return tgetent (); 6254 ; 6255 return 0; 6256} 6257_ACEOF 6258if ac_fn_c_try_link "$LINENO"; then : 6259 ac_cv_lib_tinfow_tgetent=yes 6260else 6261 ac_cv_lib_tinfow_tgetent=no 6262fi 6263rm -f core conftest.err conftest.$ac_objext \ 6264 conftest$ac_exeext conftest.$ac_ext 6265LIBS=$ac_check_lib_save_LIBS 6266fi 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfow_tgetent" >&5 6268$as_echo "$ac_cv_lib_tinfow_tgetent" >&6; } 6269if test "x$ac_cv_lib_tinfow_tgetent" = xyes; then : 6270 bash_cv_termcap_lib=libtinfow 6271fi 6272 6273 6274fi 6275 6276elif test "$curses_lib_name" = "ncurses"; then 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 6278$as_echo_n "checking for tgetent in -lncurses... " >&6; } 6279if ${ac_cv_lib_ncurses_tgetent+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281else 6282 ac_check_lib_save_LIBS=$LIBS 6283LIBS="-lncurses $LIBS" 6284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6285/* end confdefs.h. */ 6286 6287/* Override any GCC internal prototype to avoid an error. 6288 Use char because int might match the return type of a GCC 6289 builtin and then its argument prototype would still apply. */ 6290#ifdef __cplusplus 6291extern "C" 6292#endif 6293char tgetent (); 6294int 6295main () 6296{ 6297return tgetent (); 6298 ; 6299 return 0; 6300} 6301_ACEOF 6302if ac_fn_c_try_link "$LINENO"; then : 6303 ac_cv_lib_ncurses_tgetent=yes 6304else 6305 ac_cv_lib_ncurses_tgetent=no 6306fi 6307rm -f core conftest.err conftest.$ac_objext \ 6308 conftest$ac_exeext conftest.$ac_ext 6309LIBS=$ac_check_lib_save_LIBS 6310fi 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 6312$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } 6313if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : 6314 bash_cv_termcap_lib=libncurses 6315else 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 6317$as_echo_n "checking for tgetent in -ltinfo... " >&6; } 6318if ${ac_cv_lib_tinfo_tgetent+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 ac_check_lib_save_LIBS=$LIBS 6322LIBS="-ltinfo $LIBS" 6323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6324/* end confdefs.h. */ 6325 6326/* Override any GCC internal prototype to avoid an error. 6327 Use char because int might match the return type of a GCC 6328 builtin and then its argument prototype would still apply. */ 6329#ifdef __cplusplus 6330extern "C" 6331#endif 6332char tgetent (); 6333int 6334main () 6335{ 6336return tgetent (); 6337 ; 6338 return 0; 6339} 6340_ACEOF 6341if ac_fn_c_try_link "$LINENO"; then : 6342 ac_cv_lib_tinfo_tgetent=yes 6343else 6344 ac_cv_lib_tinfo_tgetent=no 6345fi 6346rm -f core conftest.err conftest.$ac_objext \ 6347 conftest$ac_exeext conftest.$ac_ext 6348LIBS=$ac_check_lib_save_LIBS 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 6351$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } 6352if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : 6353 bash_cv_termcap_lib=libtinfo 6354fi 6355 6356 6357fi 6358 6359elif test "$curses_lib_name" = "curses"; then 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 6361$as_echo_n "checking for tgetent in -lcurses... " >&6; } 6362if ${ac_cv_lib_curses_tgetent+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364else 6365 ac_check_lib_save_LIBS=$LIBS 6366LIBS="-lcurses $LIBS" 6367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6368/* end confdefs.h. */ 6369 6370/* Override any GCC internal prototype to avoid an error. 6371 Use char because int might match the return type of a GCC 6372 builtin and then its argument prototype would still apply. */ 6373#ifdef __cplusplus 6374extern "C" 6375#endif 6376char tgetent (); 6377int 6378main () 6379{ 6380return tgetent (); 6381 ; 6382 return 0; 6383} 6384_ACEOF 6385if ac_fn_c_try_link "$LINENO"; then : 6386 ac_cv_lib_curses_tgetent=yes 6387else 6388 ac_cv_lib_curses_tgetent=no 6389fi 6390rm -f core conftest.err conftest.$ac_objext \ 6391 conftest$ac_exeext conftest.$ac_ext 6392LIBS=$ac_check_lib_save_LIBS 6393fi 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 6395$as_echo "$ac_cv_lib_curses_tgetent" >&6; } 6396if test "x$ac_cv_lib_curses_tgetent" = xyes; then : 6397 bash_cv_termcap_lib=libcurses 6398fi 6399 6400else 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 6402$as_echo_n "checking for tgetent in -ltermcap... " >&6; } 6403if ${ac_cv_lib_termcap_tgetent+:} false; then : 6404 $as_echo_n "(cached) " >&6 6405else 6406 ac_check_lib_save_LIBS=$LIBS 6407LIBS="-ltermcap $LIBS" 6408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409/* end confdefs.h. */ 6410 6411/* Override any GCC internal prototype to avoid an error. 6412 Use char because int might match the return type of a GCC 6413 builtin and then its argument prototype would still apply. */ 6414#ifdef __cplusplus 6415extern "C" 6416#endif 6417char tgetent (); 6418int 6419main () 6420{ 6421return tgetent (); 6422 ; 6423 return 0; 6424} 6425_ACEOF 6426if ac_fn_c_try_link "$LINENO"; then : 6427 ac_cv_lib_termcap_tgetent=yes 6428else 6429 ac_cv_lib_termcap_tgetent=no 6430fi 6431rm -f core conftest.err conftest.$ac_objext \ 6432 conftest$ac_exeext conftest.$ac_ext 6433LIBS=$ac_check_lib_save_LIBS 6434fi 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 6436$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } 6437if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : 6438 bash_cv_termcap_lib=libtermcap 6439else 6440 bash_cv_termcap_lib=gnutermcap 6441 6442fi 6443 6444fi 6445 6446fi 6447 6448fi 6449 6450if test "X$_bash_needmsg" = "Xyes"; then 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which library has the termcap functions" >&5 6452$as_echo_n "checking which library has the termcap functions... " >&6; } 6453fi 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $bash_cv_termcap_lib" >&5 6455$as_echo "using $bash_cv_termcap_lib" >&6; } 6456if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then 6457LDFLAGS="$LDFLAGS -L./lib/termcap" 6458TERMCAP_LIB="./lib/termcap/libtermcap.a" 6459TERMCAP_DEP="./lib/termcap/libtermcap.a" 6460elif test $bash_cv_termcap_lib = libtinfow; then 6461TERMCAP_LIB=-ltinfow 6462TERMCAP_DEP= 6463elif test $bash_cv_termcap_lib = libtinfo; then 6464TERMCAP_LIB=-ltinfo 6465TERMCAP_DEP= 6466elif test $bash_cv_termcap_lib = lib$curses_lib_name; then 6467TERMCAP_LIB=-l$curses_lib_name 6468TERMCAP_DEP= 6469elif test $bash_cv_termcap_lib = libc; then 6470TERMCAP_LIB= 6471TERMCAP_DEP= 6472fi 6473 6474 6475 6476 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version of installed readline library" >&5 6478$as_echo_n "checking version of installed readline library... " >&6; } 6479 6480# What a pain in the ass this is. 6481 6482# save cpp and ld options 6483_save_CFLAGS="$CFLAGS" 6484_save_LDFLAGS="$LDFLAGS" 6485_save_LIBS="$LIBS" 6486 6487# Don't set ac_cv_rl_prefix if the caller has already assigned a value. This 6488# allows the caller to do something like $_rl_prefix=$withval if the user 6489# specifies --with-installed-readline=PREFIX as an argument to configure 6490 6491if test -z "$ac_cv_rl_prefix"; then 6492test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix} 6493fi 6494 6495eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include 6496eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib 6497 6498LIBS="$LIBS -lreadline ${TERMCAP_LIB}" 6499CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}" 6500LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}" 6501 6502if ${ac_cv_rl_version+:} false; then : 6503 $as_echo_n "(cached) " >&6 6504else 6505 if test "$cross_compiling" = yes; then : 6506 ac_cv_rl_version='4.2' 6507else 6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6509/* end confdefs.h. */ 6510 6511#include <stdio.h> 6512#include <stdlib.h> 6513#include <readline/readline.h> 6514 6515main() 6516{ 6517 FILE *fp; 6518 fp = fopen("conftest.rlv", "w"); 6519 if (fp == 0) exit(1); 6520 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0"); 6521 fclose(fp); 6522 exit(0); 6523} 6524 6525_ACEOF 6526if ac_fn_c_try_run "$LINENO"; then : 6527 ac_cv_rl_version=`cat conftest.rlv` 6528else 6529 ac_cv_rl_version='0.0' 6530fi 6531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6532 conftest.$ac_objext conftest.beam conftest.$ac_ext 6533fi 6534 6535fi 6536 6537 6538CFLAGS="$_save_CFLAGS" 6539LDFLAGS="$_save_LDFLAGS" 6540LIBS="$_save_LIBS" 6541 6542RL_MAJOR=0 6543RL_MINOR=0 6544 6545# ( 6546case "$ac_cv_rl_version" in 65472*|3*|4*|5*|6*|7*|8*|9*) 6548 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'` 6549 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'` 6550 ;; 6551esac 6552 6553# ((( 6554case $RL_MAJOR in 6555[0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;; 6556[0-9]) _RL_MAJOR=0$RL_MAJOR ;; 6557*) _RL_MAJOR=00 ;; 6558esac 6559 6560# ((( 6561case $RL_MINOR in 6562[0-9][0-9]) _RL_MINOR=$RL_MINOR ;; 6563[0-9]) _RL_MINOR=0$RL_MINOR ;; 6564*) _RL_MINOR=00 ;; 6565esac 6566 6567RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}" 6568 6569# Readline versions greater than 4.2 have these defines in readline.h 6570 6571if test "$ac_cv_rl_version" = '0.0' ; then 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not test version of installed readline library." >&5 6573$as_echo "$as_me: WARNING: Could not test version of installed readline library." >&2;} 6574elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then 6575 # set these for use by the caller 6576 RL_PREFIX=$ac_cv_rl_prefix 6577 RL_LIBDIR=$ac_cv_rl_libdir 6578 RL_INCLUDEDIR=$ac_cv_rl_includedir 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5 6580$as_echo "$ac_cv_rl_version" >&6; } 6581else 6582 6583 6584cat >>confdefs.h <<_ACEOF 6585#define RL_READLINE_VERSION $RL_VERSION 6586_ACEOF 6587 6588 6589cat >>confdefs.h <<_ACEOF 6590#define RL_VERSION_MAJOR $RL_MAJOR 6591_ACEOF 6592 6593 6594cat >>confdefs.h <<_ACEOF 6595#define RL_VERSION_MINOR $RL_MINOR 6596_ACEOF 6597 6598 6599 6600 6601 6602 6603# set these for use by the caller 6604RL_PREFIX=$ac_cv_rl_prefix 6605RL_LIBDIR=$ac_cv_rl_libdir 6606RL_INCLUDEDIR=$ac_cv_rl_includedir 6607 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rl_version" >&5 6609$as_echo "$ac_cv_rl_version" >&6; } 6610 6611fi 6612 6613case "$ac_cv_rl_version" in 66145.1*|5.2*|5.3*|5.4*|5.5*|5.6*|5.7*|5.8*|5.9*|6*|7*|8*|9*) ;; 6615*) as_fn_error $? "CGDB requires GNU readline 5.1 or greater to link. 6616 If you used --with-readline instead of using the system readline library, 6617 make sure to set the correct readline library on the linker search path 6618 via LD_LIBRARY_PATH or some other facility." "$LINENO" 5 6619 ;; 6620esac 6621 6622 6623 6624$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 6625 6626 6627for ac_header in readline.h 6628do : 6629 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 6630if test "x$ac_cv_header_readline_h" = xyes; then : 6631 cat >>confdefs.h <<_ACEOF 6632#define HAVE_READLINE_H 1 6633_ACEOF 6634 is_readline_header_found="true" 6635else 6636 is_readline_header_found="false" 6637fi 6638 6639done 6640 6641if test "x$is_readline_header_found" = "xfalse"; then 6642 for ac_header in readline/readline.h 6643do : 6644 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 6645if test "x$ac_cv_header_readline_readline_h" = xyes; then : 6646 cat >>confdefs.h <<_ACEOF 6647#define HAVE_READLINE_READLINE_H 1 6648_ACEOF 6649 is_readline_header_found="true" 6650else 6651 is_readline_header_found="false" 6652fi 6653 6654done 6655 6656 if test "x$is_readline_header_found" = "xfalse"; then 6657 as_fn_error $? "cgdb needs readline.h or readline/readline.h to build" "$LINENO" 5 6658 fi 6659fi 6660 6661for ac_header in history.h 6662do : 6663 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default" 6664if test "x$ac_cv_header_history_h" = xyes; then : 6665 cat >>confdefs.h <<_ACEOF 6666#define HAVE_HISTORY_H 1 6667_ACEOF 6668 is_history_header_found="true" 6669else 6670 is_history_header_found="false" 6671fi 6672 6673done 6674 6675if test "x$is_history_header_found" = "xfalse"; then 6676 for ac_header in readline/history.h 6677do : 6678 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 6679if test "x$ac_cv_header_readline_history_h" = xyes; then : 6680 cat >>confdefs.h <<_ACEOF 6681#define HAVE_READLINE_HISTORY_H 1 6682_ACEOF 6683 is_history_header_found="true" 6684else 6685 is_readline_header_found="false" 6686fi 6687 6688done 6689 6690 if test "x$is_history_header_found" = "xfalse"; then 6691 as_fn_error $? "cgdb needs history.h or readline/history.h to build" "$LINENO" 5 6692 fi 6693fi 6694 6695 6696LIBS="-lreadline $TERMCAP_LIB $LIBS" 6697if test "$TERMCAP_LIB" != "-l$curses_lib_name"; then 6698 LIBS="-l$curses_lib_name $LIBS" 6699fi 6700 6701 6702 6703ac_config_files="$ac_config_files cgdb_custom_config.h Makefile lib/Makefile lib/kui/Makefile lib/rline/Makefile lib/tgdb/Makefile lib/tokenizer/Makefile lib/util/Makefile lib/vterm/Makefile doc/Makefile cgdb/Makefile test/Makefile" 6704 6705cat >confcache <<\_ACEOF 6706# This file is a shell script that caches the results of configure 6707# tests run on this system so they can be shared between configure 6708# scripts and configure runs, see configure's option --config-cache. 6709# It is not useful on other systems. If it contains results you don't 6710# want to keep, you may remove or edit it. 6711# 6712# config.status only pays attention to the cache file if you give it 6713# the --recheck option to rerun configure. 6714# 6715# `ac_cv_env_foo' variables (set or unset) will be overridden when 6716# loading this file, other *unset* `ac_cv_foo' will be assigned the 6717# following values. 6718 6719_ACEOF 6720 6721# The following way of writing the cache mishandles newlines in values, 6722# but we know of no workaround that is simple, portable, and efficient. 6723# So, we kill variables containing newlines. 6724# Ultrix sh set writes to stderr and can't be redirected directly, 6725# and sets the high bit in the cache file unless we assign to the vars. 6726( 6727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6728 eval ac_val=\$$ac_var 6729 case $ac_val in #( 6730 *${as_nl}*) 6731 case $ac_var in #( 6732 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 6733$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 6734 esac 6735 case $ac_var in #( 6736 _ | IFS | as_nl) ;; #( 6737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6738 *) { eval $ac_var=; unset $ac_var;} ;; 6739 esac ;; 6740 esac 6741 done 6742 6743 (set) 2>&1 | 6744 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6745 *${as_nl}ac_space=\ *) 6746 # `set' does not quote correctly, so add quotes: double-quote 6747 # substitution turns \\\\ into \\, and sed turns \\ into \. 6748 sed -n \ 6749 "s/'/'\\\\''/g; 6750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6751 ;; #( 6752 *) 6753 # `set' quotes correctly as required by POSIX, so do not add quotes. 6754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6755 ;; 6756 esac | 6757 sort 6758) | 6759 sed ' 6760 /^ac_cv_env_/b end 6761 t clear 6762 :clear 6763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6764 t end 6765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6766 :end' >>confcache 6767if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6768 if test -w "$cache_file"; then 6769 if test "x$cache_file" != "x/dev/null"; then 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 6771$as_echo "$as_me: updating cache $cache_file" >&6;} 6772 if test ! -f "$cache_file" || test -h "$cache_file"; then 6773 cat confcache >"$cache_file" 6774 else 6775 case $cache_file in #( 6776 */* | ?:*) 6777 mv -f confcache "$cache_file"$$ && 6778 mv -f "$cache_file"$$ "$cache_file" ;; #( 6779 *) 6780 mv -f confcache "$cache_file" ;; 6781 esac 6782 fi 6783 fi 6784 else 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 6786$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6787 fi 6788fi 6789rm -f confcache 6790 6791test "x$prefix" = xNONE && prefix=$ac_default_prefix 6792# Let make expand exec_prefix. 6793test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6794 6795DEFS=-DHAVE_CONFIG_H 6796 6797ac_libobjs= 6798ac_ltlibobjs= 6799U= 6800for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6801 # 1. Remove the extension, and $U if already installed. 6802 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6803 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6804 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6805 # will be set to the directory where LIBOBJS objects are built. 6806 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6807 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 6808done 6809LIBOBJS=$ac_libobjs 6810 6811LTLIBOBJS=$ac_ltlibobjs 6812 6813 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 6815$as_echo_n "checking that generated files are newer than configure... " >&6; } 6816 if test -n "$am_sleep_pid"; then 6817 # Hide warnings about reused PIDs. 6818 wait $am_sleep_pid 2>/dev/null 6819 fi 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 6821$as_echo "done" >&6; } 6822 if test -n "$EXEEXT"; then 6823 am__EXEEXT_TRUE= 6824 am__EXEEXT_FALSE='#' 6825else 6826 am__EXEEXT_TRUE='#' 6827 am__EXEEXT_FALSE= 6828fi 6829 6830if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 6831 as_fn_error $? "conditional \"AMDEP\" was never defined. 6832Usually this means the macro was only invoked conditionally." "$LINENO" 5 6833fi 6834if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 6835 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 6836Usually this means the macro was only invoked conditionally." "$LINENO" 5 6837fi 6838if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 6839 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 6840Usually this means the macro was only invoked conditionally." "$LINENO" 5 6841fi 6842 6843: "${CONFIG_STATUS=./config.status}" 6844ac_write_fail=0 6845ac_clean_files_save=$ac_clean_files 6846ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6848$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6849as_write_fail=0 6850cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 6851#! $SHELL 6852# Generated by $as_me. 6853# Run this file to recreate the current configuration. 6854# Compiler output produced by configure, useful for debugging 6855# configure, is in config.log if it exists. 6856 6857debug=false 6858ac_cs_recheck=false 6859ac_cs_silent=false 6860 6861SHELL=\${CONFIG_SHELL-$SHELL} 6862export SHELL 6863_ASEOF 6864cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6865## -------------------- ## 6866## M4sh Initialization. ## 6867## -------------------- ## 6868 6869# Be more Bourne compatible 6870DUALCASE=1; export DUALCASE # for MKS sh 6871if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6872 emulate sh 6873 NULLCMD=: 6874 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6875 # is contrary to our usage. Disable this feature. 6876 alias -g '${1+"$@"}'='"$@"' 6877 setopt NO_GLOB_SUBST 6878else 6879 case `(set -o) 2>/dev/null` in #( 6880 *posix*) : 6881 set -o posix ;; #( 6882 *) : 6883 ;; 6884esac 6885fi 6886 6887 6888as_nl=' 6889' 6890export as_nl 6891# Printing a long string crashes Solaris 7 /usr/bin/printf. 6892as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6893as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6895# Prefer a ksh shell builtin over an external printf program on Solaris, 6896# but without wasting forks for bash or zsh. 6897if test -z "$BASH_VERSION$ZSH_VERSION" \ 6898 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6899 as_echo='print -r --' 6900 as_echo_n='print -rn --' 6901elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6902 as_echo='printf %s\n' 6903 as_echo_n='printf %s' 6904else 6905 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6906 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6907 as_echo_n='/usr/ucb/echo -n' 6908 else 6909 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6910 as_echo_n_body='eval 6911 arg=$1; 6912 case $arg in #( 6913 *"$as_nl"*) 6914 expr "X$arg" : "X\\(.*\\)$as_nl"; 6915 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6916 esac; 6917 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6918 ' 6919 export as_echo_n_body 6920 as_echo_n='sh -c $as_echo_n_body as_echo' 6921 fi 6922 export as_echo_body 6923 as_echo='sh -c $as_echo_body as_echo' 6924fi 6925 6926# The user is always right. 6927if test "${PATH_SEPARATOR+set}" != set; then 6928 PATH_SEPARATOR=: 6929 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6930 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6931 PATH_SEPARATOR=';' 6932 } 6933fi 6934 6935 6936# IFS 6937# We need space, tab and new line, in precisely that order. Quoting is 6938# there to prevent editors from complaining about space-tab. 6939# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6940# splitting by setting IFS to empty value.) 6941IFS=" "" $as_nl" 6942 6943# Find who we are. Look in the path if we contain no directory separator. 6944as_myself= 6945case $0 in #(( 6946 *[\\/]* ) as_myself=$0 ;; 6947 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6948for as_dir in $PATH 6949do 6950 IFS=$as_save_IFS 6951 test -z "$as_dir" && as_dir=. 6952 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6953 done 6954IFS=$as_save_IFS 6955 6956 ;; 6957esac 6958# We did not find ourselves, most probably we were run as `sh COMMAND' 6959# in which case we are not to be found in the path. 6960if test "x$as_myself" = x; then 6961 as_myself=$0 6962fi 6963if test ! -f "$as_myself"; then 6964 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6965 exit 1 6966fi 6967 6968# Unset variables that we do not need and which cause bugs (e.g. in 6969# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6970# suppresses any "Segmentation fault" message there. '((' could 6971# trigger a bug in pdksh 5.2.14. 6972for as_var in BASH_ENV ENV MAIL MAILPATH 6973do eval test x\${$as_var+set} = xset \ 6974 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 6975done 6976PS1='$ ' 6977PS2='> ' 6978PS4='+ ' 6979 6980# NLS nuisances. 6981LC_ALL=C 6982export LC_ALL 6983LANGUAGE=C 6984export LANGUAGE 6985 6986# CDPATH. 6987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6988 6989 6990# as_fn_error STATUS ERROR [LINENO LOG_FD] 6991# ---------------------------------------- 6992# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6993# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6994# script with STATUS, using 1 if that was 0. 6995as_fn_error () 6996{ 6997 as_status=$1; test $as_status -eq 0 && as_status=1 6998 if test "$4"; then 6999 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7000 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7001 fi 7002 $as_echo "$as_me: error: $2" >&2 7003 as_fn_exit $as_status 7004} # as_fn_error 7005 7006 7007# as_fn_set_status STATUS 7008# ----------------------- 7009# Set $? to STATUS, without forking. 7010as_fn_set_status () 7011{ 7012 return $1 7013} # as_fn_set_status 7014 7015# as_fn_exit STATUS 7016# ----------------- 7017# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7018as_fn_exit () 7019{ 7020 set +e 7021 as_fn_set_status $1 7022 exit $1 7023} # as_fn_exit 7024 7025# as_fn_unset VAR 7026# --------------- 7027# Portably unset VAR. 7028as_fn_unset () 7029{ 7030 { eval $1=; unset $1;} 7031} 7032as_unset=as_fn_unset 7033# as_fn_append VAR VALUE 7034# ---------------------- 7035# Append the text in VALUE to the end of the definition contained in VAR. Take 7036# advantage of any shell optimizations that allow amortized linear growth over 7037# repeated appends, instead of the typical quadratic growth present in naive 7038# implementations. 7039if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7040 eval 'as_fn_append () 7041 { 7042 eval $1+=\$2 7043 }' 7044else 7045 as_fn_append () 7046 { 7047 eval $1=\$$1\$2 7048 } 7049fi # as_fn_append 7050 7051# as_fn_arith ARG... 7052# ------------------ 7053# Perform arithmetic evaluation on the ARGs, and store the result in the 7054# global $as_val. Take advantage of shells that can avoid forks. The arguments 7055# must be portable across $(()) and expr. 7056if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7057 eval 'as_fn_arith () 7058 { 7059 as_val=$(( $* )) 7060 }' 7061else 7062 as_fn_arith () 7063 { 7064 as_val=`expr "$@" || test $? -eq 1` 7065 } 7066fi # as_fn_arith 7067 7068 7069if expr a : '\(a\)' >/dev/null 2>&1 && 7070 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7071 as_expr=expr 7072else 7073 as_expr=false 7074fi 7075 7076if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7077 as_basename=basename 7078else 7079 as_basename=false 7080fi 7081 7082if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7083 as_dirname=dirname 7084else 7085 as_dirname=false 7086fi 7087 7088as_me=`$as_basename -- "$0" || 7089$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7090 X"$0" : 'X\(//\)$' \| \ 7091 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7092$as_echo X/"$0" | 7093 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7094 s//\1/ 7095 q 7096 } 7097 /^X\/\(\/\/\)$/{ 7098 s//\1/ 7099 q 7100 } 7101 /^X\/\(\/\).*/{ 7102 s//\1/ 7103 q 7104 } 7105 s/.*/./; q'` 7106 7107# Avoid depending upon Character Ranges. 7108as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7109as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7110as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7111as_cr_digits='0123456789' 7112as_cr_alnum=$as_cr_Letters$as_cr_digits 7113 7114ECHO_C= ECHO_N= ECHO_T= 7115case `echo -n x` in #((((( 7116-n*) 7117 case `echo 'xy\c'` in 7118 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7119 xy) ECHO_C='\c';; 7120 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7121 ECHO_T=' ';; 7122 esac;; 7123*) 7124 ECHO_N='-n';; 7125esac 7126 7127rm -f conf$$ conf$$.exe conf$$.file 7128if test -d conf$$.dir; then 7129 rm -f conf$$.dir/conf$$.file 7130else 7131 rm -f conf$$.dir 7132 mkdir conf$$.dir 2>/dev/null 7133fi 7134if (echo >conf$$.file) 2>/dev/null; then 7135 if ln -s conf$$.file conf$$ 2>/dev/null; then 7136 as_ln_s='ln -s' 7137 # ... but there are two gotchas: 7138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7140 # In both cases, we have to default to `cp -pR'. 7141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7142 as_ln_s='cp -pR' 7143 elif ln conf$$.file conf$$ 2>/dev/null; then 7144 as_ln_s=ln 7145 else 7146 as_ln_s='cp -pR' 7147 fi 7148else 7149 as_ln_s='cp -pR' 7150fi 7151rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7152rmdir conf$$.dir 2>/dev/null 7153 7154 7155# as_fn_mkdir_p 7156# ------------- 7157# Create "$as_dir" as a directory, including parents if necessary. 7158as_fn_mkdir_p () 7159{ 7160 7161 case $as_dir in #( 7162 -*) as_dir=./$as_dir;; 7163 esac 7164 test -d "$as_dir" || eval $as_mkdir_p || { 7165 as_dirs= 7166 while :; do 7167 case $as_dir in #( 7168 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7169 *) as_qdir=$as_dir;; 7170 esac 7171 as_dirs="'$as_qdir' $as_dirs" 7172 as_dir=`$as_dirname -- "$as_dir" || 7173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7174 X"$as_dir" : 'X\(//\)[^/]' \| \ 7175 X"$as_dir" : 'X\(//\)$' \| \ 7176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7177$as_echo X"$as_dir" | 7178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7179 s//\1/ 7180 q 7181 } 7182 /^X\(\/\/\)[^/].*/{ 7183 s//\1/ 7184 q 7185 } 7186 /^X\(\/\/\)$/{ 7187 s//\1/ 7188 q 7189 } 7190 /^X\(\/\).*/{ 7191 s//\1/ 7192 q 7193 } 7194 s/.*/./; q'` 7195 test -d "$as_dir" && break 7196 done 7197 test -z "$as_dirs" || eval "mkdir $as_dirs" 7198 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7199 7200 7201} # as_fn_mkdir_p 7202if mkdir -p . 2>/dev/null; then 7203 as_mkdir_p='mkdir -p "$as_dir"' 7204else 7205 test -d ./-p && rmdir ./-p 7206 as_mkdir_p=false 7207fi 7208 7209 7210# as_fn_executable_p FILE 7211# ----------------------- 7212# Test if FILE is an executable regular file. 7213as_fn_executable_p () 7214{ 7215 test -f "$1" && test -x "$1" 7216} # as_fn_executable_p 7217as_test_x='test -x' 7218as_executable_p=as_fn_executable_p 7219 7220# Sed expression to map a string onto a valid CPP name. 7221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7222 7223# Sed expression to map a string onto a valid variable name. 7224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7225 7226 7227exec 6>&1 7228## ----------------------------------- ## 7229## Main body of $CONFIG_STATUS script. ## 7230## ----------------------------------- ## 7231_ASEOF 7232test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7233 7234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7235# Save the log message, to keep $0 and so on meaningful, and to 7236# report actual input values of CONFIG_FILES etc. instead of their 7237# values after options handling. 7238ac_log=" 7239This file was extended by cgdb $as_me 0.8.0, which was 7240generated by GNU Autoconf 2.69. Invocation command line was 7241 7242 CONFIG_FILES = $CONFIG_FILES 7243 CONFIG_HEADERS = $CONFIG_HEADERS 7244 CONFIG_LINKS = $CONFIG_LINKS 7245 CONFIG_COMMANDS = $CONFIG_COMMANDS 7246 $ $0 $@ 7247 7248on `(hostname || uname -n) 2>/dev/null | sed 1q` 7249" 7250 7251_ACEOF 7252 7253case $ac_config_files in *" 7254"*) set x $ac_config_files; shift; ac_config_files=$*;; 7255esac 7256 7257case $ac_config_headers in *" 7258"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7259esac 7260 7261 7262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7263# Files that config.status was made for. 7264config_files="$ac_config_files" 7265config_headers="$ac_config_headers" 7266config_commands="$ac_config_commands" 7267 7268_ACEOF 7269 7270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7271ac_cs_usage="\ 7272\`$as_me' instantiates files and other configuration actions 7273from templates according to the current configuration. Unless the files 7274and actions are specified as TAGs, all are instantiated by default. 7275 7276Usage: $0 [OPTION]... [TAG]... 7277 7278 -h, --help print this help, then exit 7279 -V, --version print version number and configuration settings, then exit 7280 --config print configuration, then exit 7281 -q, --quiet, --silent 7282 do not print progress messages 7283 -d, --debug don't remove temporary files 7284 --recheck update $as_me by reconfiguring in the same conditions 7285 --file=FILE[:TEMPLATE] 7286 instantiate the configuration file FILE 7287 --header=FILE[:TEMPLATE] 7288 instantiate the configuration header FILE 7289 7290Configuration files: 7291$config_files 7292 7293Configuration headers: 7294$config_headers 7295 7296Configuration commands: 7297$config_commands 7298 7299Report bugs to the package provider." 7300 7301_ACEOF 7302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7303ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7304ac_cs_version="\\ 7305cgdb config.status 0.8.0 7306configured by $0, generated by GNU Autoconf 2.69, 7307 with options \\"\$ac_cs_config\\" 7308 7309Copyright (C) 2012 Free Software Foundation, Inc. 7310This config.status script is free software; the Free Software Foundation 7311gives unlimited permission to copy, distribute and modify it." 7312 7313ac_pwd='$ac_pwd' 7314srcdir='$srcdir' 7315INSTALL='$INSTALL' 7316MKDIR_P='$MKDIR_P' 7317AWK='$AWK' 7318test -n "\$AWK" || AWK=awk 7319_ACEOF 7320 7321cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7322# The default lists apply if the user does not specify any file. 7323ac_need_defaults=: 7324while test $# != 0 7325do 7326 case $1 in 7327 --*=?*) 7328 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7329 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7330 ac_shift=: 7331 ;; 7332 --*=) 7333 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7334 ac_optarg= 7335 ac_shift=: 7336 ;; 7337 *) 7338 ac_option=$1 7339 ac_optarg=$2 7340 ac_shift=shift 7341 ;; 7342 esac 7343 7344 case $ac_option in 7345 # Handling of the options. 7346 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7347 ac_cs_recheck=: ;; 7348 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7349 $as_echo "$ac_cs_version"; exit ;; 7350 --config | --confi | --conf | --con | --co | --c ) 7351 $as_echo "$ac_cs_config"; exit ;; 7352 --debug | --debu | --deb | --de | --d | -d ) 7353 debug=: ;; 7354 --file | --fil | --fi | --f ) 7355 $ac_shift 7356 case $ac_optarg in 7357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7358 '') as_fn_error $? "missing file argument" ;; 7359 esac 7360 as_fn_append CONFIG_FILES " '$ac_optarg'" 7361 ac_need_defaults=false;; 7362 --header | --heade | --head | --hea ) 7363 $ac_shift 7364 case $ac_optarg in 7365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7366 esac 7367 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7368 ac_need_defaults=false;; 7369 --he | --h) 7370 # Conflict between --help and --header 7371 as_fn_error $? "ambiguous option: \`$1' 7372Try \`$0 --help' for more information.";; 7373 --help | --hel | -h ) 7374 $as_echo "$ac_cs_usage"; exit ;; 7375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7376 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7377 ac_cs_silent=: ;; 7378 7379 # This is an error. 7380 -*) as_fn_error $? "unrecognized option: \`$1' 7381Try \`$0 --help' for more information." ;; 7382 7383 *) as_fn_append ac_config_targets " $1" 7384 ac_need_defaults=false ;; 7385 7386 esac 7387 shift 7388done 7389 7390ac_configure_extra_args= 7391 7392if $ac_cs_silent; then 7393 exec 6>/dev/null 7394 ac_configure_extra_args="$ac_configure_extra_args --silent" 7395fi 7396 7397_ACEOF 7398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7399if \$ac_cs_recheck; then 7400 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7401 shift 7402 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7403 CONFIG_SHELL='$SHELL' 7404 export CONFIG_SHELL 7405 exec "\$@" 7406fi 7407 7408_ACEOF 7409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7410exec 5>>config.log 7411{ 7412 echo 7413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7414## Running $as_me. ## 7415_ASBOX 7416 $as_echo "$ac_log" 7417} >&5 7418 7419_ACEOF 7420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7421# 7422# INIT-COMMANDS 7423# 7424AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 7425 7426_ACEOF 7427 7428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7429 7430# Handling of arguments. 7431for ac_config_target in $ac_config_targets 7432do 7433 case $ac_config_target in 7434 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7435 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 7436 "cgdb_custom_config.h") CONFIG_FILES="$CONFIG_FILES cgdb_custom_config.h" ;; 7437 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7438 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 7439 "lib/kui/Makefile") CONFIG_FILES="$CONFIG_FILES lib/kui/Makefile" ;; 7440 "lib/rline/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rline/Makefile" ;; 7441 "lib/tgdb/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tgdb/Makefile" ;; 7442 "lib/tokenizer/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tokenizer/Makefile" ;; 7443 "lib/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/util/Makefile" ;; 7444 "lib/vterm/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vterm/Makefile" ;; 7445 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 7446 "cgdb/Makefile") CONFIG_FILES="$CONFIG_FILES cgdb/Makefile" ;; 7447 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 7448 7449 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7450 esac 7451done 7452 7453 7454# If the user did not use the arguments to specify the items to instantiate, 7455# then the envvar interface is used. Set only those that are not. 7456# We use the long form for the default assignment because of an extremely 7457# bizarre bug on SunOS 4.1.3. 7458if $ac_need_defaults; then 7459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7462fi 7463 7464# Have a temporary directory for convenience. Make it in the build tree 7465# simply because there is no reason against having it here, and in addition, 7466# creating and moving files from /tmp can sometimes cause problems. 7467# Hook for its removal unless debugging. 7468# Note that there is a small window in which the directory will not be cleaned: 7469# after its creation but before its name has been assigned to `$tmp'. 7470$debug || 7471{ 7472 tmp= ac_tmp= 7473 trap 'exit_status=$? 7474 : "${ac_tmp:=$tmp}" 7475 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7476' 0 7477 trap 'as_fn_exit 1' 1 2 13 15 7478} 7479# Create a (secure) tmp directory for tmp files. 7480 7481{ 7482 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7483 test -d "$tmp" 7484} || 7485{ 7486 tmp=./conf$$-$RANDOM 7487 (umask 077 && mkdir "$tmp") 7488} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7489ac_tmp=$tmp 7490 7491# Set up the scripts for CONFIG_FILES section. 7492# No need to generate them if there are no CONFIG_FILES. 7493# This happens for instance with `./config.status config.h'. 7494if test -n "$CONFIG_FILES"; then 7495 7496 7497ac_cr=`echo X | tr X '\015'` 7498# On cygwin, bash can eat \r inside `` if the user requested igncr. 7499# But we know of no other shell where ac_cr would be empty at this 7500# point, so we can use a bashism as a fallback. 7501if test "x$ac_cr" = x; then 7502 eval ac_cr=\$\'\\r\' 7503fi 7504ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7505if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7506 ac_cs_awk_cr='\\r' 7507else 7508 ac_cs_awk_cr=$ac_cr 7509fi 7510 7511echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7512_ACEOF 7513 7514 7515{ 7516 echo "cat >conf$$subs.awk <<_ACEOF" && 7517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7518 echo "_ACEOF" 7519} >conf$$subs.sh || 7520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7521ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7522ac_delim='%!_!# ' 7523for ac_last_try in false false false false false :; do 7524 . ./conf$$subs.sh || 7525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7526 7527 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7528 if test $ac_delim_n = $ac_delim_num; then 7529 break 7530 elif $ac_last_try; then 7531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7532 else 7533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7534 fi 7535done 7536rm -f conf$$subs.sh 7537 7538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7539cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7540_ACEOF 7541sed -n ' 7542h 7543s/^/S["/; s/!.*/"]=/ 7544p 7545g 7546s/^[^!]*!// 7547:repl 7548t repl 7549s/'"$ac_delim"'$// 7550t delim 7551:nl 7552h 7553s/\(.\{148\}\)..*/\1/ 7554t more1 7555s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7556p 7557n 7558b repl 7559:more1 7560s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7561p 7562g 7563s/.\{148\}// 7564t nl 7565:delim 7566h 7567s/\(.\{148\}\)..*/\1/ 7568t more2 7569s/["\\]/\\&/g; s/^/"/; s/$/"/ 7570p 7571b 7572:more2 7573s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7574p 7575g 7576s/.\{148\}// 7577t delim 7578' <conf$$subs.awk | sed ' 7579/^[^""]/{ 7580 N 7581 s/\n// 7582} 7583' >>$CONFIG_STATUS || ac_write_fail=1 7584rm -f conf$$subs.awk 7585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7586_ACAWK 7587cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7588 for (key in S) S_is_set[key] = 1 7589 FS = "" 7590 7591} 7592{ 7593 line = $ 0 7594 nfields = split(line, field, "@") 7595 substed = 0 7596 len = length(field[1]) 7597 for (i = 2; i < nfields; i++) { 7598 key = field[i] 7599 keylen = length(key) 7600 if (S_is_set[key]) { 7601 value = S[key] 7602 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7603 len += length(value) + length(field[++i]) 7604 substed = 1 7605 } else 7606 len += 1 + keylen 7607 } 7608 7609 print line 7610} 7611 7612_ACAWK 7613_ACEOF 7614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7615if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7616 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7617else 7618 cat 7619fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7620 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7621_ACEOF 7622 7623# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7624# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7625# trailing colons and then remove the whole line if VPATH becomes empty 7626# (actually we leave an empty line to preserve line numbers). 7627if test "x$srcdir" = x.; then 7628 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7629h 7630s/// 7631s/^/:/ 7632s/[ ]*$/:/ 7633s/:\$(srcdir):/:/g 7634s/:\${srcdir}:/:/g 7635s/:@srcdir@:/:/g 7636s/^:*// 7637s/:*$// 7638x 7639s/\(=[ ]*\).*/\1/ 7640G 7641s/\n// 7642s/^[^=]*=[ ]*$// 7643}' 7644fi 7645 7646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7647fi # test -n "$CONFIG_FILES" 7648 7649# Set up the scripts for CONFIG_HEADERS section. 7650# No need to generate them if there are no CONFIG_HEADERS. 7651# This happens for instance with `./config.status Makefile'. 7652if test -n "$CONFIG_HEADERS"; then 7653cat >"$ac_tmp/defines.awk" <<\_ACAWK || 7654BEGIN { 7655_ACEOF 7656 7657# Transform confdefs.h into an awk script `defines.awk', embedded as 7658# here-document in config.status, that substitutes the proper values into 7659# config.h.in to produce config.h. 7660 7661# Create a delimiter string that does not exist in confdefs.h, to ease 7662# handling of long lines. 7663ac_delim='%!_!# ' 7664for ac_last_try in false false :; do 7665 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 7666 if test -z "$ac_tt"; then 7667 break 7668 elif $ac_last_try; then 7669 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 7670 else 7671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7672 fi 7673done 7674 7675# For the awk script, D is an array of macro values keyed by name, 7676# likewise P contains macro parameters if any. Preserve backslash 7677# newline sequences. 7678 7679ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7680sed -n ' 7681s/.\{148\}/&'"$ac_delim"'/g 7682t rset 7683:rset 7684s/^[ ]*#[ ]*define[ ][ ]*/ / 7685t def 7686d 7687:def 7688s/\\$// 7689t bsnl 7690s/["\\]/\\&/g 7691s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7692D["\1"]=" \3"/p 7693s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7694d 7695:bsnl 7696s/["\\]/\\&/g 7697s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7698D["\1"]=" \3\\\\\\n"\\/p 7699t cont 7700s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7701t cont 7702d 7703:cont 7704n 7705s/.\{148\}/&'"$ac_delim"'/g 7706t clear 7707:clear 7708s/\\$// 7709t bsnlc 7710s/["\\]/\\&/g; s/^/"/; s/$/"/p 7711d 7712:bsnlc 7713s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7714b cont 7715' <confdefs.h | sed ' 7716s/'"$ac_delim"'/"\\\ 7717"/g' >>$CONFIG_STATUS || ac_write_fail=1 7718 7719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7720 for (key in D) D_is_set[key] = 1 7721 FS = "" 7722} 7723/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7724 line = \$ 0 7725 split(line, arg, " ") 7726 if (arg[1] == "#") { 7727 defundef = arg[2] 7728 mac1 = arg[3] 7729 } else { 7730 defundef = substr(arg[1], 2) 7731 mac1 = arg[2] 7732 } 7733 split(mac1, mac2, "(") #) 7734 macro = mac2[1] 7735 prefix = substr(line, 1, index(line, defundef) - 1) 7736 if (D_is_set[macro]) { 7737 # Preserve the white space surrounding the "#". 7738 print prefix "define", macro P[macro] D[macro] 7739 next 7740 } else { 7741 # Replace #undef with comments. This is necessary, for example, 7742 # in the case of _POSIX_SOURCE, which is predefined and required 7743 # on some systems where configure will not decide to define it. 7744 if (defundef == "undef") { 7745 print "/*", prefix defundef, macro, "*/" 7746 next 7747 } 7748 } 7749} 7750{ print } 7751_ACAWK 7752_ACEOF 7753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7754 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 7755fi # test -n "$CONFIG_HEADERS" 7756 7757 7758eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 7759shift 7760for ac_tag 7761do 7762 case $ac_tag in 7763 :[FHLC]) ac_mode=$ac_tag; continue;; 7764 esac 7765 case $ac_mode$ac_tag in 7766 :[FHL]*:*);; 7767 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 7768 :[FH]-) ac_tag=-:-;; 7769 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7770 esac 7771 ac_save_IFS=$IFS 7772 IFS=: 7773 set x $ac_tag 7774 IFS=$ac_save_IFS 7775 shift 7776 ac_file=$1 7777 shift 7778 7779 case $ac_mode in 7780 :L) ac_source=$1;; 7781 :[FH]) 7782 ac_file_inputs= 7783 for ac_f 7784 do 7785 case $ac_f in 7786 -) ac_f="$ac_tmp/stdin";; 7787 *) # Look for the file first in the build tree, then in the source tree 7788 # (if the path is not absolute). The absolute path cannot be DOS-style, 7789 # because $ac_f cannot contain `:'. 7790 test -f "$ac_f" || 7791 case $ac_f in 7792 [\\/$]*) false;; 7793 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7794 esac || 7795 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7796 esac 7797 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7798 as_fn_append ac_file_inputs " '$ac_f'" 7799 done 7800 7801 # Let's still pretend it is `configure' which instantiates (i.e., don't 7802 # use $as_me), people would be surprised to read: 7803 # /* config.h. Generated by config.status. */ 7804 configure_input='Generated from '` 7805 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7806 `' by configure.' 7807 if test x"$ac_file" != x-; then 7808 configure_input="$ac_file. $configure_input" 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7810$as_echo "$as_me: creating $ac_file" >&6;} 7811 fi 7812 # Neutralize special characters interpreted by sed in replacement strings. 7813 case $configure_input in #( 7814 *\&* | *\|* | *\\* ) 7815 ac_sed_conf_input=`$as_echo "$configure_input" | 7816 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7817 *) ac_sed_conf_input=$configure_input;; 7818 esac 7819 7820 case $ac_tag in 7821 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 7822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 7823 esac 7824 ;; 7825 esac 7826 7827 ac_dir=`$as_dirname -- "$ac_file" || 7828$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7829 X"$ac_file" : 'X\(//\)[^/]' \| \ 7830 X"$ac_file" : 'X\(//\)$' \| \ 7831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7832$as_echo X"$ac_file" | 7833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7834 s//\1/ 7835 q 7836 } 7837 /^X\(\/\/\)[^/].*/{ 7838 s//\1/ 7839 q 7840 } 7841 /^X\(\/\/\)$/{ 7842 s//\1/ 7843 q 7844 } 7845 /^X\(\/\).*/{ 7846 s//\1/ 7847 q 7848 } 7849 s/.*/./; q'` 7850 as_dir="$ac_dir"; as_fn_mkdir_p 7851 ac_builddir=. 7852 7853case "$ac_dir" in 7854.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7855*) 7856 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7857 # A ".." for each directory in $ac_dir_suffix. 7858 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7859 case $ac_top_builddir_sub in 7860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7862 esac ;; 7863esac 7864ac_abs_top_builddir=$ac_pwd 7865ac_abs_builddir=$ac_pwd$ac_dir_suffix 7866# for backward compatibility: 7867ac_top_builddir=$ac_top_build_prefix 7868 7869case $srcdir in 7870 .) # We are building in place. 7871 ac_srcdir=. 7872 ac_top_srcdir=$ac_top_builddir_sub 7873 ac_abs_top_srcdir=$ac_pwd ;; 7874 [\\/]* | ?:[\\/]* ) # Absolute name. 7875 ac_srcdir=$srcdir$ac_dir_suffix; 7876 ac_top_srcdir=$srcdir 7877 ac_abs_top_srcdir=$srcdir ;; 7878 *) # Relative name. 7879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7880 ac_top_srcdir=$ac_top_build_prefix$srcdir 7881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7882esac 7883ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7884 7885 7886 case $ac_mode in 7887 :F) 7888 # 7889 # CONFIG_FILE 7890 # 7891 7892 case $INSTALL in 7893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7895 esac 7896 ac_MKDIR_P=$MKDIR_P 7897 case $MKDIR_P in 7898 [\\/$]* | ?:[\\/]* ) ;; 7899 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 7900 esac 7901_ACEOF 7902 7903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7904# If the template does not know about datarootdir, expand it. 7905# FIXME: This hack should be removed a few years after 2.60. 7906ac_datarootdir_hack=; ac_datarootdir_seen= 7907ac_sed_dataroot=' 7908/datarootdir/ { 7909 p 7910 q 7911} 7912/@datadir@/p 7913/@docdir@/p 7914/@infodir@/p 7915/@localedir@/p 7916/@mandir@/p' 7917case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7918*datarootdir*) ac_datarootdir_seen=yes;; 7919*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7921$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7922_ACEOF 7923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7924 ac_datarootdir_hack=' 7925 s&@datadir@&$datadir&g 7926 s&@docdir@&$docdir&g 7927 s&@infodir@&$infodir&g 7928 s&@localedir@&$localedir&g 7929 s&@mandir@&$mandir&g 7930 s&\\\${datarootdir}&$datarootdir&g' ;; 7931esac 7932_ACEOF 7933 7934# Neutralize VPATH when `$srcdir' = `.'. 7935# Shell code in configure.ac might set extrasub. 7936# FIXME: do we really want to maintain this feature? 7937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7938ac_sed_extra="$ac_vpsub 7939$extrasub 7940_ACEOF 7941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7942:t 7943/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7944s|@configure_input@|$ac_sed_conf_input|;t t 7945s&@top_builddir@&$ac_top_builddir_sub&;t t 7946s&@top_build_prefix@&$ac_top_build_prefix&;t t 7947s&@srcdir@&$ac_srcdir&;t t 7948s&@abs_srcdir@&$ac_abs_srcdir&;t t 7949s&@top_srcdir@&$ac_top_srcdir&;t t 7950s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7951s&@builddir@&$ac_builddir&;t t 7952s&@abs_builddir@&$ac_abs_builddir&;t t 7953s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7954s&@INSTALL@&$ac_INSTALL&;t t 7955s&@MKDIR_P@&$ac_MKDIR_P&;t t 7956$ac_datarootdir_hack 7957" 7958eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 7959 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7960 7961test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7962 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 7963 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 7964 "$ac_tmp/out"`; test -z "$ac_out"; } && 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7966which seems to be undefined. Please make sure it is defined" >&5 7967$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7968which seems to be undefined. Please make sure it is defined" >&2;} 7969 7970 rm -f "$ac_tmp/stdin" 7971 case $ac_file in 7972 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 7973 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 7974 esac \ 7975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7976 ;; 7977 :H) 7978 # 7979 # CONFIG_HEADER 7980 # 7981 if test x"$ac_file" != x-; then 7982 { 7983 $as_echo "/* $configure_input */" \ 7984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 7985 } >"$ac_tmp/config.h" \ 7986 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7987 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 7989$as_echo "$as_me: $ac_file is unchanged" >&6;} 7990 else 7991 rm -f "$ac_file" 7992 mv "$ac_tmp/config.h" "$ac_file" \ 7993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7994 fi 7995 else 7996 $as_echo "/* $configure_input */" \ 7997 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 7998 || as_fn_error $? "could not create -" "$LINENO" 5 7999 fi 8000# Compute "$ac_file"'s index in $config_headers. 8001_am_arg="$ac_file" 8002_am_stamp_count=1 8003for _am_header in $config_headers :; do 8004 case $_am_header in 8005 $_am_arg | $_am_arg:* ) 8006 break ;; 8007 * ) 8008 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 8009 esac 8010done 8011echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 8012$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8013 X"$_am_arg" : 'X\(//\)[^/]' \| \ 8014 X"$_am_arg" : 'X\(//\)$' \| \ 8015 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 8016$as_echo X"$_am_arg" | 8017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8018 s//\1/ 8019 q 8020 } 8021 /^X\(\/\/\)[^/].*/{ 8022 s//\1/ 8023 q 8024 } 8025 /^X\(\/\/\)$/{ 8026 s//\1/ 8027 q 8028 } 8029 /^X\(\/\).*/{ 8030 s//\1/ 8031 q 8032 } 8033 s/.*/./; q'`/stamp-h$_am_stamp_count 8034 ;; 8035 8036 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 8037$as_echo "$as_me: executing $ac_file commands" >&6;} 8038 ;; 8039 esac 8040 8041 8042 case $ac_file$ac_mode in 8043 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 8044 # Older Autoconf quotes --file arguments for eval, but not when files 8045 # are listed without --file. Let's play safe and only enable the eval 8046 # if we detect the quoting. 8047 case $CONFIG_FILES in 8048 *\'*) eval set x "$CONFIG_FILES" ;; 8049 *) set x $CONFIG_FILES ;; 8050 esac 8051 shift 8052 for mf 8053 do 8054 # Strip MF so we end up with the name of the file. 8055 mf=`echo "$mf" | sed -e 's/:.*$//'` 8056 # Check whether this is an Automake generated Makefile or not. 8057 # We used to match only the files named 'Makefile.in', but 8058 # some people rename them; so instead we look at the file content. 8059 # Grep'ing the first line is not enough: some people post-process 8060 # each Makefile.in and add a new line on top of each file to say so. 8061 # Grep'ing the whole file is not good either: AIX grep has a line 8062 # limit of 2048, but all sed's we know have understand at least 4000. 8063 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 8064 dirpart=`$as_dirname -- "$mf" || 8065$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8066 X"$mf" : 'X\(//\)[^/]' \| \ 8067 X"$mf" : 'X\(//\)$' \| \ 8068 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 8069$as_echo X"$mf" | 8070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8071 s//\1/ 8072 q 8073 } 8074 /^X\(\/\/\)[^/].*/{ 8075 s//\1/ 8076 q 8077 } 8078 /^X\(\/\/\)$/{ 8079 s//\1/ 8080 q 8081 } 8082 /^X\(\/\).*/{ 8083 s//\1/ 8084 q 8085 } 8086 s/.*/./; q'` 8087 else 8088 continue 8089 fi 8090 # Extract the definition of DEPDIR, am__include, and am__quote 8091 # from the Makefile without running 'make'. 8092 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 8093 test -z "$DEPDIR" && continue 8094 am__include=`sed -n 's/^am__include = //p' < "$mf"` 8095 test -z "$am__include" && continue 8096 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 8097 # Find all dependency output files, they are included files with 8098 # $(DEPDIR) in their names. We invoke sed twice because it is the 8099 # simplest approach to changing $(DEPDIR) to its actual value in the 8100 # expansion. 8101 for file in `sed -n " 8102 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 8103 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 8104 # Make sure the directory exists. 8105 test -f "$dirpart/$file" && continue 8106 fdir=`$as_dirname -- "$file" || 8107$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8108 X"$file" : 'X\(//\)[^/]' \| \ 8109 X"$file" : 'X\(//\)$' \| \ 8110 X"$file" : 'X\(/\)' \| . 2>/dev/null || 8111$as_echo X"$file" | 8112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8113 s//\1/ 8114 q 8115 } 8116 /^X\(\/\/\)[^/].*/{ 8117 s//\1/ 8118 q 8119 } 8120 /^X\(\/\/\)$/{ 8121 s//\1/ 8122 q 8123 } 8124 /^X\(\/\).*/{ 8125 s//\1/ 8126 q 8127 } 8128 s/.*/./; q'` 8129 as_dir=$dirpart/$fdir; as_fn_mkdir_p 8130 # echo "creating $dirpart/$file" 8131 echo '# dummy' > "$dirpart/$file" 8132 done 8133 done 8134} 8135 ;; 8136 8137 esac 8138done # for ac_tag 8139 8140 8141as_fn_exit 0 8142_ACEOF 8143ac_clean_files=$ac_clean_files_save 8144 8145test $ac_write_fail = 0 || 8146 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 8147 8148 8149# configure is writing to config.log, and then calls config.status. 8150# config.status does its own redirection, appending to config.log. 8151# Unfortunately, on DOS this fails, as config.log is still kept open 8152# by configure, so config.status won't be able to write to it; its 8153# output is simply discarded. So we exec the FD to /dev/null, 8154# effectively closing config.log, so it can be properly (re)opened and 8155# appended to by config.status. When coming back to configure, we 8156# need to make the FD available again. 8157if test "$no_create" != yes; then 8158 ac_cs_success=: 8159 ac_config_status_args= 8160 test "$silent" = yes && 8161 ac_config_status_args="$ac_config_status_args --quiet" 8162 exec 5>/dev/null 8163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8164 exec 5>>config.log 8165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8166 # would make configure fail if this is the last instruction. 8167 $ac_cs_success || as_fn_exit 1 8168fi 8169if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8171$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8172fi 8173 8174