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