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