1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for w3m 0.5.3. 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='w3m' 579PACKAGE_TARNAME='w3m' 580PACKAGE_VERSION='0.5.3' 581PACKAGE_STRING='w3m 0.5.3' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585gt_needs= 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='LTLIBOBJS 623LIBOBJS 624CURRENT_VERSION 625DOCDIRS 626RC_DIR 627HELP_DIR 628SIGNAL_RETURN 629RETSIGTYPE 630HAVE_SIGSETJMP 631USE_BINMODE_STREAM 632LIBGC 633AUXBIN_TARGETS 634USE_SYSMOUSE 635USE_W3M 636USE_DIGEST_AUTH 637DEF_CAFILE 638SSL_LIBS 639SSL_CFLAGS 640PKG_CONFIG_LIBDIR 641PKG_CONFIG_PATH 642PKG_CONFIG 643USE_SSL_VERIFY 644USE_SSL 645HAVE_OLD_SS_FAMILY 646INET6 647DEF_EXT_BROWSER 648DEF_MAILER 649DEF_EDITOR 650DEF_MIGEMO_COMMAND 651USE_MIGEMO 652USE_W3MMAILER 653USE_EXTERNAL_URI_LOADER 654USE_HELP_CGI 655USE_DICT 656USE_GOPHER 657USE_NNTP 658USE_COOKIE 659USE_ALARM 660USE_HISTORY 661USE_MOUSE 662USE_MENU 663KEYBIND 664HELP_FILE 665KEYMAP_FILE 666uncompface 667USE_XFACE 668IMGWINLDFLAGS 669IMGWINCFLAGS 670IMGFBLDFLAGS 671IMGFBCFLAGS 672IMGX11LDFLAGS 673IMGX11CFLAGS 674IMGOBJS 675IMGTARGETS 676USE_IMLIB2 677USE_IMLIB 678USE_GTK2 679USE_GDKPIXBUF 680INSTALL_W3MIMGDISPLAY 681W3MIMGDISPLAY_SETUID 682IMGLINK 683USE_W3MIMG_WIN 684USE_W3MIMG_FB 685USE_W3MIMG_X11 686USE_IMAGE 687USE_BG_COLOR 688USE_ANSI_COLOR 689USE_COLOR 690NLSTARGET 691INTLTARGET 692POSUB 693LTLIBINTL 694LIBINTL 695INTLLIBS 696LTLIBICONV 697LIBICONV 698INTL_MACOSX_LIBS 699EGREP 700GREP 701XGETTEXT_EXTRA_OPTIONS 702MSGMERGE 703XGETTEXT_015 704XGETTEXT 705GMSGFMT_015 706MSGFMT_015 707GMSGFMT 708MSGFMT 709GETTEXT_MACRO_VERSION 710USE_NLS 711mkdir_p 712MKDIR_P 713POLANG 714POSUBST 715DOCUMENT_CHARSET 716SYSTEM_CHARSET 717DISPLAY_CHARSET 718WCCFLAGS 719WCTARGET 720USE_UNICODE 721USE_M17N 722W3M_LIBS 723W3M_TARGET 724host_os 725host_vendor 726host_cpu 727host 728build_os 729build_vendor 730build_cpu 731build 732X_EXTRA_LIBS 733X_LIBS 734X_PRE_LIBS 735X_CFLAGS 736XMKMF 737MAN 738NKF 739PERL 740RANLIB 741SET_MAKE 742LN_S 743INSTALL_DATA 744INSTALL_SCRIPT 745INSTALL_PROGRAM 746CPP 747ac_ct_CC 748CFLAGS 749CC 750AWK 751OBJEXT 752EXEEXT 753ac_ct_CXX 754CPPFLAGS 755LDFLAGS 756CXXFLAGS 757CXX 758W3M_LANG 759W3M 760VERSION 761PACKAGE 762target_alias 763host_alias 764build_alias 765LIBS 766ECHO_T 767ECHO_N 768ECHO_C 769DEFS 770mandir 771localedir 772libdir 773psdir 774pdfdir 775dvidir 776htmldir 777infodir 778docdir 779oldincludedir 780includedir 781runstatedir 782localstatedir 783sharedstatedir 784sysconfdir 785datadir 786datarootdir 787libexecdir 788sbindir 789bindir 790program_transform_name 791prefix 792exec_prefix 793PACKAGE_URL 794PACKAGE_BUGREPORT 795PACKAGE_STRING 796PACKAGE_VERSION 797PACKAGE_TARNAME 798PACKAGE_NAME 799PATH_SEPARATOR 800SHELL' 801ac_subst_files='' 802ac_user_opts=' 803enable_option_checking 804with_x 805enable_m17n 806enable_unicode 807enable_messagel10n 808enable_japanese 809with_charset 810enable_nls 811with_gnu_ld 812enable_rpath 813with_libiconv_prefix 814with_libintl_prefix 815enable_color 816enable_ansi_color 817enable_bgcolor 818enable_image 819with_imagelib 820enable_xface 821enable_keymap 822enable_menu 823enable_mouse 824enable_history 825enable_alarm 826enable_cookie 827enable_nntp 828enable_gopher 829enable_dict 830enable_help_cgi 831enable_external_uri_loader 832enable_w3mmailer 833with_migemo 834with_editor 835with_mailer 836with_browser 837enable_ipv6 838with_ssl 839enable_sslverify 840with_cafile 841enable_digest_auth 842with_termlib 843with_gc 844' 845 ac_precious_vars='build_alias 846host_alias 847target_alias 848CXX 849CXXFLAGS 850LDFLAGS 851LIBS 852CPPFLAGS 853CCC 854CC 855CFLAGS 856CPP 857XMKMF 858PKG_CONFIG 859PKG_CONFIG_PATH 860PKG_CONFIG_LIBDIR 861SSL_CFLAGS 862SSL_LIBS' 863 864 865# Initialize some variables set by options. 866ac_init_help= 867ac_init_version=false 868ac_unrecognized_opts= 869ac_unrecognized_sep= 870# The variables have the same names as the options, with 871# dashes changed to underlines. 872cache_file=/dev/null 873exec_prefix=NONE 874no_create= 875no_recursion= 876prefix=NONE 877program_prefix=NONE 878program_suffix=NONE 879program_transform_name=s,x,x, 880silent= 881site= 882srcdir= 883verbose= 884x_includes=NONE 885x_libraries=NONE 886 887# Installation directory options. 888# These are left unexpanded so users can "make install exec_prefix=/foo" 889# and all the variables that are supposed to be based on exec_prefix 890# by default will actually change. 891# Use braces instead of parens because sh, perl, etc. also accept them. 892# (The list follows the same order as the GNU Coding Standards.) 893bindir='${exec_prefix}/bin' 894sbindir='${exec_prefix}/sbin' 895libexecdir='${exec_prefix}/libexec' 896datarootdir='${prefix}/share' 897datadir='${datarootdir}' 898sysconfdir='${prefix}/etc' 899sharedstatedir='${prefix}/com' 900localstatedir='${prefix}/var' 901runstatedir='${localstatedir}/run' 902includedir='${prefix}/include' 903oldincludedir='/usr/include' 904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 905infodir='${datarootdir}/info' 906htmldir='${docdir}' 907dvidir='${docdir}' 908pdfdir='${docdir}' 909psdir='${docdir}' 910libdir='${exec_prefix}/lib' 911localedir='${datarootdir}/locale' 912mandir='${datarootdir}/man' 913 914ac_prev= 915ac_dashdash= 916for ac_option 917do 918 # If the previous option needs an argument, assign it. 919 if test -n "$ac_prev"; then 920 eval $ac_prev=\$ac_option 921 ac_prev= 922 continue 923 fi 924 925 case $ac_option in 926 *=?*) ac_optarg=`expr \( "X$ac_option" : '[^=]*=\(.*\)' \)` ;; 927 *=) ac_optarg= ;; 928 *) ac_optarg=yes ;; 929 esac 930 931 # Accept the important Cygnus configure options, so we can diagnose typos. 932 933 case $ac_dashdash$ac_option in 934 --) 935 ac_dashdash=yes ;; 936 937 -bindir | --bindir | --bindi | --bind | --bin | --bi) 938 ac_prev=bindir ;; 939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 940 bindir=$ac_optarg ;; 941 942 -build | --build | --buil | --bui | --bu) 943 ac_prev=build_alias ;; 944 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 945 build_alias=$ac_optarg ;; 946 947 -cache-file | --cache-file | --cache-fil | --cache-fi \ 948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 949 ac_prev=cache_file ;; 950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 952 cache_file=$ac_optarg ;; 953 954 --config-cache | -C) 955 cache_file=config.cache ;; 956 957 -datadir | --datadir | --datadi | --datad) 958 ac_prev=datadir ;; 959 -datadir=* | --datadir=* | --datadi=* | --datad=*) 960 datadir=$ac_optarg ;; 961 962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 963 | --dataroo | --dataro | --datar) 964 ac_prev=datarootdir ;; 965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 967 datarootdir=$ac_optarg ;; 968 969 -disable-* | --disable-*) 970 ac_useropt=`expr \( "x$ac_option" : 'x-*disable-\(.*\)' \)` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: $ac_useropt" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978"enable_$ac_useropt" 979"*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=no ;; 984 985 -docdir | --docdir | --docdi | --doc | --do) 986 ac_prev=docdir ;; 987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 988 docdir=$ac_optarg ;; 989 990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 991 ac_prev=dvidir ;; 992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 993 dvidir=$ac_optarg ;; 994 995 -enable-* | --enable-*) 996 ac_useropt=`expr \( "x$ac_option" : 'x-*enable-\([^=]*\)' \)` 997 # Reject names that are not valid shell variable names. 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 999 as_fn_error $? "invalid feature name: $ac_useropt" 1000 ac_useropt_orig=$ac_useropt 1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1002 case $ac_user_opts in 1003 *" 1004"enable_$ac_useropt" 1005"*) ;; 1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1007 ac_unrecognized_sep=', ';; 1008 esac 1009 eval enable_$ac_useropt=\$ac_optarg ;; 1010 1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1013 | --exec | --exe | --ex) 1014 ac_prev=exec_prefix ;; 1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1017 | --exec=* | --exe=* | --ex=*) 1018 exec_prefix=$ac_optarg ;; 1019 1020 -gas | --gas | --ga | --g) 1021 # Obsolete; use --with-gas. 1022 with_gas=yes ;; 1023 1024 -help | --help | --hel | --he | -h) 1025 ac_init_help=long ;; 1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1027 ac_init_help=recursive ;; 1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1029 ac_init_help=short ;; 1030 1031 -host | --host | --hos | --ho) 1032 ac_prev=host_alias ;; 1033 -host=* | --host=* | --hos=* | --ho=*) 1034 host_alias=$ac_optarg ;; 1035 1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1037 ac_prev=htmldir ;; 1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1039 | --ht=*) 1040 htmldir=$ac_optarg ;; 1041 1042 -includedir | --includedir | --includedi | --included | --include \ 1043 | --includ | --inclu | --incl | --inc) 1044 ac_prev=includedir ;; 1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1046 | --includ=* | --inclu=* | --incl=* | --inc=*) 1047 includedir=$ac_optarg ;; 1048 1049 -infodir | --infodir | --infodi | --infod | --info | --inf) 1050 ac_prev=infodir ;; 1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1052 infodir=$ac_optarg ;; 1053 1054 -libdir | --libdir | --libdi | --libd) 1055 ac_prev=libdir ;; 1056 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1057 libdir=$ac_optarg ;; 1058 1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1060 | --libexe | --libex | --libe) 1061 ac_prev=libexecdir ;; 1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1063 | --libexe=* | --libex=* | --libe=*) 1064 libexecdir=$ac_optarg ;; 1065 1066 -localedir | --localedir | --localedi | --localed | --locale) 1067 ac_prev=localedir ;; 1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1069 localedir=$ac_optarg ;; 1070 1071 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1072 | --localstate | --localstat | --localsta | --localst | --locals) 1073 ac_prev=localstatedir ;; 1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1076 localstatedir=$ac_optarg ;; 1077 1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1079 ac_prev=mandir ;; 1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1081 mandir=$ac_optarg ;; 1082 1083 -nfp | --nfp | --nf) 1084 # Obsolete; use --without-fp. 1085 with_fp=no ;; 1086 1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1088 | --no-cr | --no-c | -n) 1089 no_create=yes ;; 1090 1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1093 no_recursion=yes ;; 1094 1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1097 | --oldin | --oldi | --old | --ol | --o) 1098 ac_prev=oldincludedir ;; 1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1102 oldincludedir=$ac_optarg ;; 1103 1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1105 ac_prev=prefix ;; 1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1107 prefix=$ac_optarg ;; 1108 1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1110 | --program-pre | --program-pr | --program-p) 1111 ac_prev=program_prefix ;; 1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1114 program_prefix=$ac_optarg ;; 1115 1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1117 | --program-suf | --program-su | --program-s) 1118 ac_prev=program_suffix ;; 1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1121 program_suffix=$ac_optarg ;; 1122 1123 -program-transform-name | --program-transform-name \ 1124 | --program-transform-nam | --program-transform-na \ 1125 | --program-transform-n | --program-transform- \ 1126 | --program-transform | --program-transfor \ 1127 | --program-transfo | --program-transf \ 1128 | --program-trans | --program-tran \ 1129 | --progr-tra | --program-tr | --program-t) 1130 ac_prev=program_transform_name ;; 1131 -program-transform-name=* | --program-transform-name=* \ 1132 | --program-transform-nam=* | --program-transform-na=* \ 1133 | --program-transform-n=* | --program-transform-=* \ 1134 | --program-transform=* | --program-transfor=* \ 1135 | --program-transfo=* | --program-transf=* \ 1136 | --program-trans=* | --program-tran=* \ 1137 | --progr-tra=* | --program-tr=* | --program-t=*) 1138 program_transform_name=$ac_optarg ;; 1139 1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1141 ac_prev=pdfdir ;; 1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1143 pdfdir=$ac_optarg ;; 1144 1145 -psdir | --psdir | --psdi | --psd | --ps) 1146 ac_prev=psdir ;; 1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1148 psdir=$ac_optarg ;; 1149 1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1151 | -silent | --silent | --silen | --sile | --sil) 1152 silent=yes ;; 1153 1154 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1155 | --runstate | --runstat | --runsta | --runst | --runs \ 1156 | --run | --ru | --r) 1157 ac_prev=runstatedir ;; 1158 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1159 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1160 | --run=* | --ru=* | --r=*) 1161 runstatedir=$ac_optarg ;; 1162 1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1164 ac_prev=sbindir ;; 1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1166 | --sbi=* | --sb=*) 1167 sbindir=$ac_optarg ;; 1168 1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1171 | --sharedst | --shareds | --shared | --share | --shar \ 1172 | --sha | --sh) 1173 ac_prev=sharedstatedir ;; 1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1177 | --sha=* | --sh=*) 1178 sharedstatedir=$ac_optarg ;; 1179 1180 -site | --site | --sit) 1181 ac_prev=site ;; 1182 -site=* | --site=* | --sit=*) 1183 site=$ac_optarg ;; 1184 1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1186 ac_prev=srcdir ;; 1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1188 srcdir=$ac_optarg ;; 1189 1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1191 | --syscon | --sysco | --sysc | --sys | --sy) 1192 ac_prev=sysconfdir ;; 1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1195 sysconfdir=$ac_optarg ;; 1196 1197 -target | --target | --targe | --targ | --tar | --ta | --t) 1198 ac_prev=target_alias ;; 1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1200 target_alias=$ac_optarg ;; 1201 1202 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1203 verbose=yes ;; 1204 1205 -version | --version | --versio | --versi | --vers | -V) 1206 ac_init_version=: ;; 1207 1208 -with-* | --with-*) 1209 ac_useropt=`expr \( "x$ac_option" : 'x-*with-\([^=]*\)' \)` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: $ac_useropt" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217"with_$ac_useropt" 1218"*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=\$ac_optarg ;; 1223 1224 -without-* | --without-*) 1225 ac_useropt=`expr \( "x$ac_option" : 'x-*without-\(.*\)' \)` 1226 # Reject names that are not valid shell variable names. 1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1228 as_fn_error $? "invalid package name: $ac_useropt" 1229 ac_useropt_orig=$ac_useropt 1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1231 case $ac_user_opts in 1232 *" 1233"with_$ac_useropt" 1234"*) ;; 1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1236 ac_unrecognized_sep=', ';; 1237 esac 1238 eval with_$ac_useropt=no ;; 1239 1240 --x) 1241 # Obsolete; use --with-x. 1242 with_x=yes ;; 1243 1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1245 | --x-incl | --x-inc | --x-in | --x-i) 1246 ac_prev=x_includes ;; 1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1249 x_includes=$ac_optarg ;; 1250 1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1253 ac_prev=x_libraries ;; 1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1256 x_libraries=$ac_optarg ;; 1257 1258 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1259Try \`$0 --help' for more information" 1260 ;; 1261 1262 *=*) 1263 ac_envvar=`expr \( "x$ac_option" : 'x\([^=]*\)=' \)` 1264 # Reject names that are not valid shell variable names. 1265 case $ac_envvar in #( 1266 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1268 esac 1269 eval $ac_envvar=\$ac_optarg 1270 export $ac_envvar ;; 1271 1272 *) 1273 # FIXME: should be removed in autoconf 3.0. 1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1278 ;; 1279 1280 esac 1281done 1282 1283if test -n "$ac_prev"; then 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 as_fn_error $? "missing argument to $ac_option" 1286fi 1287 1288if test -n "$ac_unrecognized_opts"; then 1289 case $enable_option_checking in 1290 no) ;; 1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1293 esac 1294fi 1295 1296# Check all directory arguments for consistency. 1297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1298 datadir sysconfdir sharedstatedir localstatedir includedir \ 1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1300 libdir localedir mandir runstatedir 1301do 1302 eval ac_val=\$$ac_var 1303 # Remove trailing slashes. 1304 case $ac_val in 1305 */ ) 1306 ac_val=`expr \( "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)' \)` 1307 eval $ac_var=\$ac_val;; 1308 esac 1309 # Be sure to have absolute directory names. 1310 case $ac_val in 1311 [\\/$]* | ?:[\\/]* ) continue;; 1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1313 esac 1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1315done 1316 1317# There might be people who depend on the old broken behavior: `$host' 1318# used to hold the argument of --host etc. 1319# FIXME: To remove some day. 1320build=$build_alias 1321host=$host_alias 1322target=$target_alias 1323 1324# FIXME: To remove some day. 1325if test "x$host_alias" != x; then 1326 if test "x$build_alias" = x; then 1327 cross_compiling=maybe 1328 elif test "x$build_alias" != "x$host_alias"; then 1329 cross_compiling=yes 1330 fi 1331fi 1332 1333ac_tool_prefix= 1334test -n "$host_alias" && ac_tool_prefix=$host_alias- 1335 1336test "$silent" = yes && exec 6>/dev/null 1337 1338 1339ac_pwd=`pwd` && test -n "$ac_pwd" && 1340ac_ls_di=`ls -di .` && 1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1342 as_fn_error $? "working directory cannot be determined" 1343test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1344 as_fn_error $? "pwd does not report name of working directory" 1345 1346 1347# Find the source files, if location was not specified. 1348if test -z "$srcdir"; then 1349 ac_srcdir_defaulted=yes 1350 # Try the directory containing this script, then the parent directory. 1351 ac_confdir=`$as_dirname -- "$as_myself" || 1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1353 X"$as_myself" : 'X\(//\)[^/]' \| \ 1354 X"$as_myself" : 'X\(//\)$' \| \ 1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1356$as_echo X"$as_myself" | 1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)[^/].*/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\/\)$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\).*/{ 1370 s//\1/ 1371 q 1372 } 1373 s/.*/./; q'` 1374 srcdir=$ac_confdir 1375 if test ! -r "$srcdir/$ac_unique_file"; then 1376 srcdir=.. 1377 fi 1378else 1379 ac_srcdir_defaulted=no 1380fi 1381if test ! -r "$srcdir/$ac_unique_file"; then 1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1384fi 1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1386ac_abs_confdir=`( 1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1388 pwd)` 1389# When building in place, set srcdir=. 1390if test "$ac_abs_confdir" = "$ac_pwd"; then 1391 srcdir=. 1392fi 1393# Remove unnecessary trailing slashes from srcdir. 1394# Double slashes in file names in object file debugging info 1395# mess up M-x gdb in Emacs. 1396case $srcdir in 1397*/) srcdir=`expr \( "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)' \)`;; 1398esac 1399for ac_var in $ac_precious_vars; do 1400 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_env_${ac_var}_value=\$${ac_var} 1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1403 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1404done 1405 1406# 1407# Report the --help message. 1408# 1409if test "$ac_init_help" = "long"; then 1410 # Omit some internal or obsolete options to make the list less imposing. 1411 # This message is too long to be a string in the A/UX 3.1 sh. 1412 cat <<_ACEOF 1413\`configure' configures w3m 0.5.3 to adapt to many kinds of systems. 1414 1415Usage: $0 [OPTION]... [VAR=VALUE]... 1416 1417To assign environment variables (e.g., CC, CFLAGS...), specify them as 1418VAR=VALUE. See below for descriptions of some of the useful variables. 1419 1420Defaults for the options are specified in brackets. 1421 1422Configuration: 1423 -h, --help display this help and exit 1424 --help=short display options specific to this package 1425 --help=recursive display the short help of all the included packages 1426 -V, --version display version information and exit 1427 -q, --quiet, --silent do not print \`checking ...' messages 1428 --cache-file=FILE cache test results in FILE [disabled] 1429 -C, --config-cache alias for \`--cache-file=config.cache' 1430 -n, --no-create do not create output files 1431 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1432 1433Installation directories: 1434 --prefix=PREFIX install architecture-independent files in PREFIX 1435 [$ac_default_prefix] 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1437 [PREFIX] 1438 1439By default, \`make install' will install all the files in 1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1441an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1442for instance \`--prefix=\$HOME'. 1443 1444For better control, use the options below. 1445 1446Fine tuning of the installation directories: 1447 --bindir=DIR user executables [EPREFIX/bin] 1448 --sbindir=DIR system admin executables [EPREFIX/sbin] 1449 --libexecdir=DIR program executables [EPREFIX/libexec] 1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1454 --libdir=DIR object code libraries [EPREFIX/lib] 1455 --includedir=DIR C header files [PREFIX/include] 1456 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1459 --infodir=DIR info documentation [DATAROOTDIR/info] 1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1461 --mandir=DIR man documentation [DATAROOTDIR/man] 1462 --docdir=DIR documentation root [DATAROOTDIR/doc/w3m] 1463 --htmldir=DIR html documentation [DOCDIR] 1464 --dvidir=DIR dvi documentation [DOCDIR] 1465 --pdfdir=DIR pdf documentation [DOCDIR] 1466 --psdir=DIR ps documentation [DOCDIR] 1467_ACEOF 1468 1469 cat <<\_ACEOF 1470 1471X features: 1472 --x-includes=DIR X include files are in DIR 1473 --x-libraries=DIR X library files are in DIR 1474 1475System types: 1476 --build=BUILD configure for building on BUILD [guessed] 1477 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1478_ACEOF 1479fi 1480 1481if test -n "$ac_init_help"; then 1482 case $ac_init_help in 1483 short | recursive ) echo "Configuration of w3m 0.5.3:";; 1484 esac 1485 cat <<\_ACEOF 1486 1487Optional Features: 1488 --disable-option-checking ignore unrecognized --enable/--with options 1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1491 --disable-m17n do not use m17n 1492 --disable-unicode do not use Unicode 1493 --enable-messagel10n=LL message l10n instead of Native Language Support 1494 --enable-japanese=CODE support Japanese CODE=(S|E|J|U) 1495 --disable-nls do not use Native Language Support 1496 --disable-rpath do not hardcode runtime library paths 1497 --disable-color disable color for VT100 terminal 1498 --disable-ansi-color disable ANSI color escape sequence 1499 --disable-bgcolor disable to set background color 1500 --enable-image[=DEVS] inline image handler [guessed] 1501 DEVS may be comma separated: x11,fb,fb+s,win 1502 --disable-xface disable X-Face support 1503 --enable-keymap=STYLE default keybind style (w3m or lynx) [w3m] 1504 --disable-menu disable popup menu 1505 --disable-mouse disable mouse operation 1506 --disable-history disable URL history 1507 --disable-alarm disable alarm 1508 --disable-cookie disable cookie 1509 --disable-nntp disable NNTP 1510 --disable-gopher disable Gopher 1511 --disable-dict disable dictionary lookup 1512 --disable-help-cgi disable help cgi 1513 --disable-external-uri-loader disable external URI loader 1514 --disable-w3mmailer disable w3mmailer 1515 --disable-ipv6 disable IPv6 1516 --disable-sslverify disable SSL certificate verification 1517 --disable-digest-auth disable digest auth 1518 1519Optional Packages: 1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1522 --with-x use the X Window System 1523 --with-charset=CHARSET charset for display [UTF-8] 1524 --with-gnu-ld assume the C compiler uses GNU ld default=no 1525 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1526 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1527 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1528 --without-libintl-prefix don't search for libintl in includedir and libdir 1529 --with-imagelib[=LIBS] image library [guessed] 1530 LIBS may be space separated: 1531 gtk2 gdk-pixbuf imlib imlib2 1532 --with-migemo[=COMMAND] migemo/cmigemo command and options [guessed] 1533 --with-editor=EDITOR default editor [/usr/bin/vi] 1534 --with-mailer=MAILER default mailer [/usr/bin/mail] 1535 --with-browser=BROWSER default browser [/usr/bin/firefox] 1536 --with-ssl[=PREFIX] SSL library/header location [guessed] 1537 --with-cafile[=CAFILE] CA file to verify SSL certificate [guessed] 1538 --with-termlib[=LIBS] terminal library [guessed] 1539 LIBS may be space separated: 1540 terminfo mytinfo termcap tinfo ncurses curses 1541 --with-gc[=PREFIX] GC library/header location [guessed] 1542 1543Some influential environment variables: 1544 CXX C++ compiler command 1545 CXXFLAGS C++ compiler flags 1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1547 nonstandard directory <lib dir> 1548 LIBS libraries to pass to the linker, e.g. -l<library> 1549 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1550 you have headers in a nonstandard directory <include dir> 1551 CC C compiler command 1552 CFLAGS C compiler flags 1553 CPP C preprocessor 1554 XMKMF Path to xmkmf, Makefile generator for X Window System 1555 PKG_CONFIG path to pkg-config utility 1556 PKG_CONFIG_PATH 1557 directories to add to pkg-config's search path 1558 PKG_CONFIG_LIBDIR 1559 path overriding pkg-config's built-in search path 1560 SSL_CFLAGS C compiler flags for SSL, overriding pkg-config 1561 SSL_LIBS linker flags for SSL, overriding pkg-config 1562 1563Use these variables to override the choices made by `configure' or to help 1564it to find libraries and programs with nonstandard names/locations. 1565 1566Report bugs to the package provider. 1567_ACEOF 1568ac_status=$? 1569fi 1570 1571if test "$ac_init_help" = "recursive"; then 1572 # If there are subdirs, report their specific --help. 1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1574 test -d "$ac_dir" || 1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1576 continue 1577 ac_builddir=. 1578 1579case "$ac_dir" in 1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581*) 1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1583 # A ".." for each directory in $ac_dir_suffix. 1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1585 case $ac_top_builddir_sub in 1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1588 esac ;; 1589esac 1590ac_abs_top_builddir=$ac_pwd 1591ac_abs_builddir=$ac_pwd$ac_dir_suffix 1592# for backward compatibility: 1593ac_top_builddir=$ac_top_build_prefix 1594 1595case $srcdir in 1596 .) # We are building in place. 1597 ac_srcdir=. 1598 ac_top_srcdir=$ac_top_builddir_sub 1599 ac_abs_top_srcdir=$ac_pwd ;; 1600 [\\/]* | ?:[\\/]* ) # Absolute name. 1601 ac_srcdir=$srcdir$ac_dir_suffix; 1602 ac_top_srcdir=$srcdir 1603 ac_abs_top_srcdir=$srcdir ;; 1604 *) # Relative name. 1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1606 ac_top_srcdir=$ac_top_build_prefix$srcdir 1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1608esac 1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1610 1611 cd "$ac_dir" || { ac_status=$?; continue; } 1612 # Check for guested configure. 1613 if test -f "$ac_srcdir/configure.gnu"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1616 elif test -f "$ac_srcdir/configure"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure" --help=recursive 1619 else 1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1621 fi || ac_status=$? 1622 cd "$ac_pwd" || { ac_status=$?; break; } 1623 done 1624fi 1625 1626test -n "$ac_init_help" && exit $ac_status 1627if $ac_init_version; then 1628 cat <<\_ACEOF 1629w3m configure 0.5.3 1630generated by GNU Autoconf 2.69 1631 1632Copyright (C) 2012 Free Software Foundation, Inc. 1633This configure script is free software; the Free Software Foundation 1634gives unlimited permission to copy, distribute and modify it. 1635_ACEOF 1636 exit 1637fi 1638 1639## ------------------------ ## 1640## Autoconf initialization. ## 1641## ------------------------ ## 1642 1643# ac_fn_cxx_try_compile LINENO 1644# ---------------------------- 1645# Try to compile conftest.$ac_ext, and return whether this succeeded. 1646ac_fn_cxx_try_compile () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 rm -f conftest.$ac_objext 1650 if { { ac_try="$ac_compile" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_compile") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } && { 1666 test -z "$ac_cxx_werror_flag" || 1667 test ! -s conftest.err 1668 } && test -s conftest.$ac_objext; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_cxx_try_compile 1680 1681# ac_fn_c_try_compile LINENO 1682# -------------------------- 1683# Try to compile conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_compile () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 rm -f conftest.$ac_objext 1688 if { { ac_try="$ac_compile" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_compile") 2>conftest.err 1696 ac_status=$? 1697 if test -s conftest.err; then 1698 grep -v '^ *+' conftest.err >conftest.er1 1699 cat conftest.er1 >&5 1700 mv -f conftest.er1 conftest.err 1701 fi 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; } && { 1704 test -z "$ac_c_werror_flag" || 1705 test ! -s conftest.err 1706 } && test -s conftest.$ac_objext; then : 1707 ac_retval=0 1708else 1709 $as_echo "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=1 1713fi 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_compile 1718 1719# ac_fn_c_try_cpp LINENO 1720# ---------------------- 1721# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1722ac_fn_c_try_cpp () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 if { { ac_try="$ac_cpp conftest.$ac_ext" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } > conftest.i && { 1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 }; then : 1744 ac_retval=0 1745else 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=1 1750fi 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_cpp 1755 1756# ac_fn_c_try_link LINENO 1757# ----------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. 1759ac_fn_c_try_link () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=1 1791fi 1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1794 # interfere with the next link command; also delete a directory that is 1795 # left behind by Apple's compiler. We do this before executing the actions. 1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_link 1801 1802# ac_fn_c_check_func LINENO FUNC VAR 1803# ---------------------------------- 1804# Tests whether FUNC exists, setting the cache variable VAR accordingly 1805ac_fn_c_check_func () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1809$as_echo_n "checking for $2... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1817#define $2 innocuous_$2 1818 1819/* System header to define __stub macros and hopefully few prototypes, 1820 which can conflict with char $2 (); below. 1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1822 <limits.h> exists even on freestanding compilers. */ 1823 1824#ifdef __STDC__ 1825# include <limits.h> 1826#else 1827# include <assert.h> 1828#endif 1829 1830#undef $2 1831 1832/* Override any GCC internal prototype to avoid an error. 1833 Use char because int might match the return type of a GCC 1834 builtin and then its argument prototype would still apply. */ 1835#ifdef __cplusplus 1836extern "C" 1837#endif 1838char $2 (); 1839/* The GNU C library defines this for functions which it implements 1840 to always fail with ENOSYS. Some functions are actually named 1841 something starting with __ and the normal name is an alias. */ 1842#if defined __stub_$2 || defined __stub___$2 1843choke me 1844#endif 1845 1846int 1847main () 1848{ 1849return $2 (); 1850 ; 1851 return 0; 1852} 1853_ACEOF 1854if ac_fn_c_try_link "$LINENO"; then : 1855 eval "$3=yes" 1856else 1857 eval "$3=no" 1858fi 1859rm -f core conftest.err conftest.$ac_objext \ 1860 conftest$ac_exeext conftest.$ac_ext 1861fi 1862eval ac_res=\$$3 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1864$as_echo "$ac_res" >&6; } 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 1867} # ac_fn_c_check_func 1868 1869# ac_fn_c_try_run LINENO 1870# ---------------------- 1871# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1872# that executables *can* be run. 1873ac_fn_c_try_run () 1874{ 1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1876 if { { ac_try="$ac_link" 1877case "(($ac_try" in 1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1879 *) ac_try_echo=$ac_try;; 1880esac 1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1882$as_echo "$ac_try_echo"; } >&5 1883 (eval "$ac_link") 2>&5 1884 ac_status=$? 1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1886 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1887 { { case "(($ac_try" in 1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1889 *) ac_try_echo=$ac_try;; 1890esac 1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1892$as_echo "$ac_try_echo"; } >&5 1893 (eval "$ac_try") 2>&5 1894 ac_status=$? 1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1896 test $ac_status = 0; }; }; then : 1897 ac_retval=0 1898else 1899 $as_echo "$as_me: program exited with status $ac_status" >&5 1900 $as_echo "$as_me: failed program was:" >&5 1901sed 's/^/| /' conftest.$ac_ext >&5 1902 1903 ac_retval=$ac_status 1904fi 1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 as_fn_set_status $ac_retval 1908 1909} # ac_fn_c_try_run 1910 1911# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1912# ------------------------------------------------------- 1913# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1914# the include files in INCLUDES and setting the cache variable VAR 1915# accordingly. 1916ac_fn_c_check_header_mongrel () 1917{ 1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1919 if eval \${$3+:} false; then : 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1921$as_echo_n "checking for $2... " >&6; } 1922if eval \${$3+:} false; then : 1923 $as_echo_n "(cached) " >&6 1924fi 1925eval ac_res=\$$3 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927$as_echo "$ac_res" >&6; } 1928else 1929 # Is the header compilable? 1930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1931$as_echo_n "checking $2 usability... " >&6; } 1932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934$4 1935#include <$2> 1936_ACEOF 1937if ac_fn_c_try_compile "$LINENO"; then : 1938 ac_header_compiler=yes 1939else 1940 ac_header_compiler=no 1941fi 1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1944$as_echo "$ac_header_compiler" >&6; } 1945 1946# Is the header present? 1947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1948$as_echo_n "checking $2 presence... " >&6; } 1949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1950/* end confdefs.h. */ 1951#include <$2> 1952_ACEOF 1953if ac_fn_c_try_cpp "$LINENO"; then : 1954 ac_header_preproc=yes 1955else 1956 ac_header_preproc=no 1957fi 1958rm -f conftest.err conftest.i conftest.$ac_ext 1959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1960$as_echo "$ac_header_preproc" >&6; } 1961 1962# So? What about this header? 1963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1964 yes:no: ) 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1966$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1968$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1969 ;; 1970 no:yes:* ) 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1972$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1974$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1976$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1978$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1980$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1981 ;; 1982esac 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1984$as_echo_n "checking for $2... " >&6; } 1985if eval \${$3+:} false; then : 1986 $as_echo_n "(cached) " >&6 1987else 1988 eval "$3=\$ac_header_compiler" 1989fi 1990eval ac_res=\$$3 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1992$as_echo "$ac_res" >&6; } 1993fi 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1995 1996} # ac_fn_c_check_header_mongrel 1997 1998# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1999# ------------------------------------------------------- 2000# Tests whether HEADER exists and can be compiled using the include files in 2001# INCLUDES, setting the cache variable VAR accordingly. 2002ac_fn_c_check_header_compile () 2003{ 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2006$as_echo_n "checking for $2... " >&6; } 2007if eval \${$3+:} false; then : 2008 $as_echo_n "(cached) " >&6 2009else 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013#include <$2> 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO"; then : 2016 eval "$3=yes" 2017else 2018 eval "$3=no" 2019fi 2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2021fi 2022eval ac_res=\$$3 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2024$as_echo "$ac_res" >&6; } 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2026 2027} # ac_fn_c_check_header_compile 2028 2029# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2030# ------------------------------------------- 2031# Tests whether TYPE exists after having included INCLUDES, setting cache 2032# variable VAR accordingly. 2033ac_fn_c_check_type () 2034{ 2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2037$as_echo_n "checking for $2... " >&6; } 2038if eval \${$3+:} false; then : 2039 $as_echo_n "(cached) " >&6 2040else 2041 eval "$3=no" 2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043/* end confdefs.h. */ 2044$4 2045int 2046main () 2047{ 2048if (sizeof ($2)) 2049 return 0; 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2056/* end confdefs.h. */ 2057$4 2058int 2059main () 2060{ 2061if (sizeof (($2))) 2062 return 0; 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 2069else 2070 eval "$3=yes" 2071fi 2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2073fi 2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2075fi 2076eval ac_res=\$$3 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2078$as_echo "$ac_res" >&6; } 2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2080 2081} # ac_fn_c_check_type 2082 2083# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2084# -------------------------------------------- 2085# Tries to find the compile-time value of EXPR in a program that includes 2086# INCLUDES, setting VAR accordingly. Returns whether the value could be 2087# computed 2088ac_fn_c_compute_int () 2089{ 2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2091 if test "$cross_compiling" = yes; then 2092 # Depending upon the size, compute the lo and hi bounds. 2093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2094/* end confdefs.h. */ 2095$4 2096int 2097main () 2098{ 2099static int test_array [1 - 2 * !(($2) >= 0)]; 2100test_array [0] = 0; 2101return test_array [0]; 2102 2103 ; 2104 return 0; 2105} 2106_ACEOF 2107if ac_fn_c_try_compile "$LINENO"; then : 2108 ac_lo=0 ac_mid=0 2109 while :; do 2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2111/* end confdefs.h. */ 2112$4 2113int 2114main () 2115{ 2116static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2117test_array [0] = 0; 2118return test_array [0]; 2119 2120 ; 2121 return 0; 2122} 2123_ACEOF 2124if ac_fn_c_try_compile "$LINENO"; then : 2125 ac_hi=$ac_mid; break 2126else 2127 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2128 if test $ac_lo -le $ac_mid; then 2129 ac_lo= ac_hi= 2130 break 2131 fi 2132 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2133fi 2134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2135 done 2136else 2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2138/* end confdefs.h. */ 2139$4 2140int 2141main () 2142{ 2143static int test_array [1 - 2 * !(($2) < 0)]; 2144test_array [0] = 0; 2145return test_array [0]; 2146 2147 ; 2148 return 0; 2149} 2150_ACEOF 2151if ac_fn_c_try_compile "$LINENO"; then : 2152 ac_hi=-1 ac_mid=-1 2153 while :; do 2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157int 2158main () 2159{ 2160static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2161test_array [0] = 0; 2162return test_array [0]; 2163 2164 ; 2165 return 0; 2166} 2167_ACEOF 2168if ac_fn_c_try_compile "$LINENO"; then : 2169 ac_lo=$ac_mid; break 2170else 2171 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2172 if test $ac_mid -le $ac_hi; then 2173 ac_lo= ac_hi= 2174 break 2175 fi 2176 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2177fi 2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2179 done 2180else 2181 ac_lo= ac_hi= 2182fi 2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2184fi 2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2186# Binary search between lo and hi bounds. 2187while test "x$ac_lo" != "x$ac_hi"; do 2188 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190/* end confdefs.h. */ 2191$4 2192int 2193main () 2194{ 2195static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2196test_array [0] = 0; 2197return test_array [0]; 2198 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_compile "$LINENO"; then : 2204 ac_hi=$ac_mid 2205else 2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209done 2210case $ac_lo in #(( 2211?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2212'') ac_retval=1 ;; 2213esac 2214 else 2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2216/* end confdefs.h. */ 2217$4 2218static long int longval () { return $2; } 2219static unsigned long int ulongval () { return $2; } 2220#include <stdio.h> 2221#include <stdlib.h> 2222int 2223main () 2224{ 2225 2226 FILE *f = fopen ("conftest.val", "w"); 2227 if (! f) 2228 return 1; 2229 if (($2) < 0) 2230 { 2231 long int i = longval (); 2232 if (i != ($2)) 2233 return 1; 2234 fprintf (f, "%ld", i); 2235 } 2236 else 2237 { 2238 unsigned long int i = ulongval (); 2239 if (i != ($2)) 2240 return 1; 2241 fprintf (f, "%lu", i); 2242 } 2243 /* Do not output a trailing newline, as this causes \r\n confusion 2244 on some platforms. */ 2245 return ferror (f) || fclose (f) != 0; 2246 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_run "$LINENO"; then : 2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2253else 2254 ac_retval=1 2255fi 2256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2257 conftest.$ac_objext conftest.beam conftest.$ac_ext 2258rm -f conftest.val 2259 2260 fi 2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2262 as_fn_set_status $ac_retval 2263 2264} # ac_fn_c_compute_int 2265cat >config.log <<_ACEOF 2266This file contains any messages produced by compilers while 2267running configure, to aid debugging if configure makes a mistake. 2268 2269It was created by w3m $as_me 0.5.3, which was 2270generated by GNU Autoconf 2.69. Invocation command line was 2271 2272 $ $0 $@ 2273 2274_ACEOF 2275exec 5>>config.log 2276{ 2277cat <<_ASUNAME 2278## --------- ## 2279## Platform. ## 2280## --------- ## 2281 2282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2283uname -m = `(uname -m) 2>/dev/null || echo unknown` 2284uname -r = `(uname -r) 2>/dev/null || echo unknown` 2285uname -s = `(uname -s) 2>/dev/null || echo unknown` 2286uname -v = `(uname -v) 2>/dev/null || echo unknown` 2287 2288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2289/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2290 2291/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2292/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2294/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2295/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2296/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2297/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2298 2299_ASUNAME 2300 2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2302for as_dir in $PATH 2303do 2304 IFS=$as_save_IFS 2305 test -z "$as_dir" && as_dir=. 2306 $as_echo "PATH: $as_dir" 2307 done 2308IFS=$as_save_IFS 2309 2310} >&5 2311 2312cat >&5 <<_ACEOF 2313 2314 2315## ----------- ## 2316## Core tests. ## 2317## ----------- ## 2318 2319_ACEOF 2320 2321 2322# Keep a trace of the command line. 2323# Strip out --no-create and --no-recursion so they do not pile up. 2324# Strip out --silent because we don't want to record it for future runs. 2325# Also quote any args containing shell meta-characters. 2326# Make two passes to allow for proper duplicate-argument suppression. 2327ac_configure_args= 2328ac_configure_args0= 2329ac_configure_args1= 2330ac_must_keep_next=false 2331for ac_pass in 1 2 2332do 2333 for ac_arg 2334 do 2335 case $ac_arg in 2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2338 | -silent | --silent | --silen | --sile | --sil) 2339 continue ;; 2340 *\'*) 2341 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2342 esac 2343 case $ac_pass in 2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2345 2) 2346 as_fn_append ac_configure_args1 " '$ac_arg'" 2347 if test $ac_must_keep_next = true; then 2348 ac_must_keep_next=false # Got value, back to normal. 2349 else 2350 case $ac_arg in 2351 *=* | --config-cache | -C | -disable-* | --disable-* \ 2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2354 | -with-* | --with-* | -without-* | --without-* | --x) 2355 case "$ac_configure_args0 " in 2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2357 esac 2358 ;; 2359 -* ) ac_must_keep_next=true ;; 2360 esac 2361 fi 2362 as_fn_append ac_configure_args " '$ac_arg'" 2363 ;; 2364 esac 2365 done 2366done 2367{ ac_configure_args0=; unset ac_configure_args0;} 2368{ ac_configure_args1=; unset ac_configure_args1;} 2369 2370# When interrupted or exit'd, cleanup temporary files, and complete 2371# config.log. We remove comments because anyway the quotes in there 2372# would cause problems or look ugly. 2373# WARNING: Use '\'' to represent an apostrophe within the trap. 2374# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2375trap 'exit_status=$? 2376 # Save into config.log some information that might help in debugging. 2377 { 2378 echo 2379 2380 $as_echo "## ---------------- ## 2381## Cache variables. ## 2382## ---------------- ##" 2383 echo 2384 # The following way of writing the cache mishandles newlines in values, 2385( 2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2387 eval ac_val=\$$ac_var 2388 case $ac_val in #( 2389 *${as_nl}*) 2390 case $ac_var in #( 2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2393 esac 2394 case $ac_var in #( 2395 _ | IFS | as_nl) ;; #( 2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2397 *) { eval $ac_var=; unset $ac_var;} ;; 2398 esac ;; 2399 esac 2400 done 2401 (set) 2>&1 | 2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2403 *${as_nl}ac_space=\ *) 2404 sed -n \ 2405 "s/'\''/'\''\\\\'\'''\''/g; 2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2407 ;; #( 2408 *) 2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2410 ;; 2411 esac | 2412 sort 2413) 2414 echo 2415 2416 $as_echo "## ----------------- ## 2417## Output variables. ## 2418## ----------------- ##" 2419 echo 2420 for ac_var in $ac_subst_vars 2421 do 2422 eval ac_val=\$$ac_var 2423 case $ac_val in 2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2425 esac 2426 $as_echo "$ac_var='\''$ac_val'\''" 2427 done | sort 2428 echo 2429 2430 if test -n "$ac_subst_files"; then 2431 $as_echo "## ------------------- ## 2432## File substitutions. ## 2433## ------------------- ##" 2434 echo 2435 for ac_var in $ac_subst_files 2436 do 2437 eval ac_val=\$$ac_var 2438 case $ac_val in 2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2440 esac 2441 $as_echo "$ac_var='\''$ac_val'\''" 2442 done | sort 2443 echo 2444 fi 2445 2446 if test -s confdefs.h; then 2447 $as_echo "## ----------- ## 2448## confdefs.h. ## 2449## ----------- ##" 2450 echo 2451 cat confdefs.h 2452 echo 2453 fi 2454 test "$ac_signal" != 0 && 2455 $as_echo "$as_me: caught signal $ac_signal" 2456 $as_echo "$as_me: exit $exit_status" 2457 } >&5 2458 rm -f core *.core core.conftest.* && 2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2460 exit $exit_status 2461' 0 2462for ac_signal in 1 2 13 15; do 2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2464done 2465ac_signal=0 2466 2467# confdefs.h avoids OS command line length limits that DEFS can exceed. 2468rm -f -r conftest* confdefs.h 2469 2470$as_echo "/* confdefs.h */" > confdefs.h 2471 2472# Predefined preprocessor variables. 2473 2474cat >>confdefs.h <<_ACEOF 2475#define PACKAGE_NAME "$PACKAGE_NAME" 2476_ACEOF 2477 2478cat >>confdefs.h <<_ACEOF 2479#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2480_ACEOF 2481 2482cat >>confdefs.h <<_ACEOF 2483#define PACKAGE_VERSION "$PACKAGE_VERSION" 2484_ACEOF 2485 2486cat >>confdefs.h <<_ACEOF 2487#define PACKAGE_STRING "$PACKAGE_STRING" 2488_ACEOF 2489 2490cat >>confdefs.h <<_ACEOF 2491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2492_ACEOF 2493 2494cat >>confdefs.h <<_ACEOF 2495#define PACKAGE_URL "$PACKAGE_URL" 2496_ACEOF 2497 2498 2499# Let the site file select an alternate cache file if it wants to. 2500# Prefer an explicitly selected file to automatically selected ones. 2501ac_site_file1=NONE 2502ac_site_file2=NONE 2503if test -n "$CONFIG_SITE"; then 2504 # We do not want a PATH search for config.site. 2505 case $CONFIG_SITE in #(( 2506 -*) ac_site_file1=./$CONFIG_SITE;; 2507 */*) ac_site_file1=$CONFIG_SITE;; 2508 *) ac_site_file1=./$CONFIG_SITE;; 2509 esac 2510elif test "x$prefix" != xNONE; then 2511 ac_site_file1=$prefix/share/config.site 2512 ac_site_file2=$prefix/etc/config.site 2513else 2514 ac_site_file1=$ac_default_prefix/share/config.site 2515 ac_site_file2=$ac_default_prefix/etc/config.site 2516fi 2517for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2518do 2519 test "x$ac_site_file" = xNONE && continue 2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2522$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2523 sed 's/^/| /' "$ac_site_file" >&5 2524 . "$ac_site_file" \ 2525 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2527as_fn_error $? "failed to load site script $ac_site_file 2528See \`config.log' for more details" "$LINENO" 5; } 2529 fi 2530done 2531 2532if test -r "$cache_file"; then 2533 # Some versions of bash will fail to source /dev/null (special files 2534 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2535 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2537$as_echo "$as_me: loading cache $cache_file" >&6;} 2538 case $cache_file in 2539 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2540 *) . "./$cache_file";; 2541 esac 2542 fi 2543else 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2545$as_echo "$as_me: creating cache $cache_file" >&6;} 2546 >$cache_file 2547fi 2548 2549gt_needs="$gt_needs " 2550# Check that the precious variables saved in the cache have kept the same 2551# value. 2552ac_cache_corrupted=false 2553for ac_var in $ac_precious_vars; do 2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2555 eval ac_new_set=\$ac_env_${ac_var}_set 2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2557 eval ac_new_val=\$ac_env_${ac_var}_value 2558 case $ac_old_set,$ac_new_set in 2559 set,) 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2561$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2562 ac_cache_corrupted=: ;; 2563 ,set) 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2565$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2566 ac_cache_corrupted=: ;; 2567 ,);; 2568 *) 2569 if test "x$ac_old_val" != "x$ac_new_val"; then 2570 # differences in whitespace do not lead to failure. 2571 ac_old_val_w=`echo x $ac_old_val` 2572 ac_new_val_w=`echo x $ac_new_val` 2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2575$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2576 ac_cache_corrupted=: 2577 else 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2579$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2580 eval $ac_var=\$ac_old_val 2581 fi 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2583$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2585$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2586 fi;; 2587 esac 2588 # Pass precious variables to config.status. 2589 if test "$ac_new_set" = set; then 2590 case $ac_new_val in 2591 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2592 *) ac_arg=$ac_var=$ac_new_val ;; 2593 esac 2594 case " $ac_configure_args " in 2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2597 esac 2598 fi 2599done 2600if $ac_cache_corrupted; then 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2604$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2605 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2606fi 2607## -------------------- ## 2608## Main body of script. ## 2609## -------------------- ## 2610 2611ac_ext=c 2612ac_cpp='$CPP $CPPFLAGS' 2613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2615ac_compiler_gnu=$ac_cv_c_compiler_gnu 2616 2617 2618PACKAGE=w3m 2619VERSION=0.5.3 2620cat >>confdefs.h <<_ACEOF 2621#define PACKAGE "$PACKAGE" 2622_ACEOF 2623 2624cat >>confdefs.h <<_ACEOF 2625#define VERSION "$VERSION" 2626_ACEOF 2627 2628 2629 2630 2631 2632W3M=w3m 2633$as_echo "#define W3M w3m" >>confdefs.h 2634 2635 2636 2637W3M_LANG=${LC_ALL:-$LANG} 2638ac_config_headers="$ac_config_headers config.h" 2639 2640ac_ext=cpp 2641ac_cpp='$CXXCPP $CPPFLAGS' 2642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2645if test -z "$CXX"; then 2646 if test -n "$CCC"; then 2647 CXX=$CCC 2648 else 2649 if test -n "$ac_tool_prefix"; then 2650 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2651 do 2652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2653set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2655$as_echo_n "checking for $ac_word... " >&6; } 2656if ${ac_cv_prog_CXX+:} false; then : 2657 $as_echo_n "(cached) " >&6 2658else 2659 if test -n "$CXX"; then 2660 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2661else 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2669 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674 done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679CXX=$ac_cv_prog_CXX 2680if test -n "$CXX"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2682$as_echo "$CXX" >&6; } 2683else 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2685$as_echo "no" >&6; } 2686fi 2687 2688 2689 test -n "$CXX" && break 2690 done 2691fi 2692if test -z "$CXX"; then 2693 ac_ct_CXX=$CXX 2694 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2695do 2696 # Extract the first word of "$ac_prog", so it can be a program name with args. 2697set dummy $ac_prog; ac_word=$2 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2699$as_echo_n "checking for $ac_word... " >&6; } 2700if ${ac_cv_prog_ac_ct_CXX+:} false; then : 2701 $as_echo_n "(cached) " >&6 2702else 2703 if test -n "$ac_ct_CXX"; then 2704 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 test -z "$as_dir" && as_dir=. 2711 for ac_exec_ext in '' $ac_executable_extensions; do 2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2713 ac_cv_prog_ac_ct_CXX="$ac_prog" 2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2715 break 2 2716 fi 2717done 2718 done 2719IFS=$as_save_IFS 2720 2721fi 2722fi 2723ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2724if test -n "$ac_ct_CXX"; then 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2726$as_echo "$ac_ct_CXX" >&6; } 2727else 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2729$as_echo "no" >&6; } 2730fi 2731 2732 2733 test -n "$ac_ct_CXX" && break 2734done 2735 2736 if test "x$ac_ct_CXX" = x; then 2737 CXX="g++" 2738 else 2739 case $cross_compiling:$ac_tool_warned in 2740yes:) 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2743ac_tool_warned=yes ;; 2744esac 2745 CXX=$ac_ct_CXX 2746 fi 2747fi 2748 2749 fi 2750fi 2751# Provide some information about the compiler. 2752$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 2753set X $ac_compile 2754ac_compiler=$2 2755for ac_option in --version -v -V -qversion; do 2756 { { ac_try="$ac_compiler $ac_option >&5" 2757case "(($ac_try" in 2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2759 *) ac_try_echo=$ac_try;; 2760esac 2761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2762$as_echo "$ac_try_echo"; } >&5 2763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2764 ac_status=$? 2765 if test -s conftest.err; then 2766 sed '10a\ 2767... rest of stderr output deleted ... 2768 10q' conftest.err >conftest.er1 2769 cat conftest.er1 >&5 2770 fi 2771 rm -f conftest.er1 conftest.err 2772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2773 test $ac_status = 0; } 2774done 2775 2776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2777/* end confdefs.h. */ 2778 2779int 2780main () 2781{ 2782 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787ac_clean_files_save=$ac_clean_files 2788ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2789# Try to create an executable without -o first, disregard a.out. 2790# It will help us diagnose broken compilers, and finding out an intuition 2791# of exeext. 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 2793$as_echo_n "checking whether the C++ compiler works... " >&6; } 2794ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2795 2796# The possible output files: 2797ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2798 2799ac_rmfiles= 2800for ac_file in $ac_files 2801do 2802 case $ac_file in 2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2804 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2805 esac 2806done 2807rm -f $ac_rmfiles 2808 2809if { { ac_try="$ac_link_default" 2810case "(($ac_try" in 2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2812 *) ac_try_echo=$ac_try;; 2813esac 2814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2815$as_echo "$ac_try_echo"; } >&5 2816 (eval "$ac_link_default") 2>&5 2817 ac_status=$? 2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2819 test $ac_status = 0; }; then : 2820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2821# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2822# in a Makefile. We should not override ac_cv_exeext if it was cached, 2823# so that the user can short-circuit this test for compilers unknown to 2824# Autoconf. 2825for ac_file in $ac_files '' 2826do 2827 test -f "$ac_file" || continue 2828 case $ac_file in 2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2830 ;; 2831 [ab].out ) 2832 # We found the default executable, but exeext='' is most 2833 # certainly right. 2834 break;; 2835 *.* ) 2836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2837 then :; else 2838 ac_cv_exeext=`expr \( "$ac_file" : '[^.]*\(\..*\)' \)` 2839 fi 2840 # We set ac_cv_exeext here because the later test for it is not 2841 # safe: cross compilers may not add the suffix if given an `-o' 2842 # argument, so we may need to know it at that point already. 2843 # Even if this section looks crufty: it has the advantage of 2844 # actually working. 2845 break;; 2846 * ) 2847 break;; 2848 esac 2849done 2850test "$ac_cv_exeext" = no && ac_cv_exeext= 2851 2852else 2853 ac_file='' 2854fi 2855if test -z "$ac_file"; then : 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858$as_echo "$as_me: failed program was:" >&5 2859sed 's/^/| /' conftest.$ac_ext >&5 2860 2861{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2863as_fn_error 77 "C++ compiler cannot create executables 2864See \`config.log' for more details" "$LINENO" 5; } 2865else 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2867$as_echo "yes" >&6; } 2868fi 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 2870$as_echo_n "checking for C++ compiler default output file name... " >&6; } 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2872$as_echo "$ac_file" >&6; } 2873ac_exeext=$ac_cv_exeext 2874 2875rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2876ac_clean_files=$ac_clean_files_save 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2878$as_echo_n "checking for suffix of executables... " >&6; } 2879if { { ac_try="$ac_link" 2880case "(($ac_try" in 2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2882 *) ac_try_echo=$ac_try;; 2883esac 2884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2885$as_echo "$ac_try_echo"; } >&5 2886 (eval "$ac_link") 2>&5 2887 ac_status=$? 2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2889 test $ac_status = 0; }; then : 2890 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2892# work properly (i.e., refer to `conftest.exe'), while it won't with 2893# `rm'. 2894for ac_file in conftest.exe conftest conftest.*; do 2895 test -f "$ac_file" || continue 2896 case $ac_file in 2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2898 *.* ) ac_cv_exeext=`expr \( "$ac_file" : '[^.]*\(\..*\)' \)` 2899 break;; 2900 * ) break;; 2901 esac 2902done 2903else 2904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2906as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2907See \`config.log' for more details" "$LINENO" 5; } 2908fi 2909rm -f conftest conftest$ac_cv_exeext 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2911$as_echo "$ac_cv_exeext" >&6; } 2912 2913rm -f conftest.$ac_ext 2914EXEEXT=$ac_cv_exeext 2915ac_exeext=$EXEEXT 2916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2917/* end confdefs.h. */ 2918#include <stdio.h> 2919int 2920main () 2921{ 2922FILE *f = fopen ("conftest.out", "w"); 2923 return ferror (f) || fclose (f) != 0; 2924 2925 ; 2926 return 0; 2927} 2928_ACEOF 2929ac_clean_files="$ac_clean_files conftest.out" 2930# Check that the compiler produces executables we can run. If not, either 2931# the compiler is broken, or we cross compile. 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2933$as_echo_n "checking whether we are cross compiling... " >&6; } 2934if test "$cross_compiling" != yes; then 2935 { { ac_try="$ac_link" 2936case "(($ac_try" in 2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2938 *) ac_try_echo=$ac_try;; 2939esac 2940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2941$as_echo "$ac_try_echo"; } >&5 2942 (eval "$ac_link") 2>&5 2943 ac_status=$? 2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2945 test $ac_status = 0; } 2946 if { ac_try='./conftest$ac_cv_exeext' 2947 { { case "(($ac_try" in 2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2949 *) ac_try_echo=$ac_try;; 2950esac 2951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2952$as_echo "$ac_try_echo"; } >&5 2953 (eval "$ac_try") 2>&5 2954 ac_status=$? 2955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2956 test $ac_status = 0; }; }; then 2957 cross_compiling=no 2958 else 2959 if test "$cross_compiling" = maybe; then 2960 cross_compiling=yes 2961 else 2962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2964as_fn_error $? "cannot run C++ compiled programs. 2965If you meant to cross compile, use \`--host'. 2966See \`config.log' for more details" "$LINENO" 5; } 2967 fi 2968 fi 2969fi 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2971$as_echo "$cross_compiling" >&6; } 2972 2973rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2974ac_clean_files=$ac_clean_files_save 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2976$as_echo_n "checking for suffix of object files... " >&6; } 2977if ${ac_cv_objext+:} false; then : 2978 $as_echo_n "(cached) " >&6 2979else 2980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2981/* end confdefs.h. */ 2982 2983int 2984main () 2985{ 2986 2987 ; 2988 return 0; 2989} 2990_ACEOF 2991rm -f conftest.o conftest.obj 2992if { { ac_try="$ac_compile" 2993case "(($ac_try" in 2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2995 *) ac_try_echo=$ac_try;; 2996esac 2997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2998$as_echo "$ac_try_echo"; } >&5 2999 (eval "$ac_compile") 2>&5 3000 ac_status=$? 3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3002 test $ac_status = 0; }; then : 3003 for ac_file in conftest.o conftest.obj conftest.*; do 3004 test -f "$ac_file" || continue; 3005 case $ac_file in 3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3007 *) ac_cv_objext=`expr \( "$ac_file" : '.*\.\(.*\)' \)` 3008 break;; 3009 esac 3010done 3011else 3012 $as_echo "$as_me: failed program was:" >&5 3013sed 's/^/| /' conftest.$ac_ext >&5 3014 3015{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3017as_fn_error $? "cannot compute suffix of object files: cannot compile 3018See \`config.log' for more details" "$LINENO" 5; } 3019fi 3020rm -f conftest.$ac_cv_objext conftest.$ac_ext 3021fi 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3023$as_echo "$ac_cv_objext" >&6; } 3024OBJEXT=$ac_cv_objext 3025ac_objext=$OBJEXT 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3027$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3028if ${ac_cv_cxx_compiler_gnu+:} false; then : 3029 $as_echo_n "(cached) " >&6 3030else 3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3032/* end confdefs.h. */ 3033 3034int 3035main () 3036{ 3037#ifndef __GNUC__ 3038 choke me 3039#endif 3040 3041 ; 3042 return 0; 3043} 3044_ACEOF 3045if ac_fn_cxx_try_compile "$LINENO"; then : 3046 ac_compiler_gnu=yes 3047else 3048 ac_compiler_gnu=no 3049fi 3050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3051ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3052 3053fi 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3055$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3056if test $ac_compiler_gnu = yes; then 3057 GXX=yes 3058else 3059 GXX= 3060fi 3061ac_test_CXXFLAGS=${CXXFLAGS+set} 3062ac_save_CXXFLAGS=$CXXFLAGS 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3064$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3065if ${ac_cv_prog_cxx_g+:} false; then : 3066 $as_echo_n "(cached) " >&6 3067else 3068 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3069 ac_cxx_werror_flag=yes 3070 ac_cv_prog_cxx_g=no 3071 CXXFLAGS="-g" 3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3073/* end confdefs.h. */ 3074 3075int 3076main () 3077{ 3078 3079 ; 3080 return 0; 3081} 3082_ACEOF 3083if ac_fn_cxx_try_compile "$LINENO"; then : 3084 ac_cv_prog_cxx_g=yes 3085else 3086 CXXFLAGS="" 3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3088/* end confdefs.h. */ 3089 3090int 3091main () 3092{ 3093 3094 ; 3095 return 0; 3096} 3097_ACEOF 3098if ac_fn_cxx_try_compile "$LINENO"; then : 3099 3100else 3101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3102 CXXFLAGS="-g" 3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3104/* end confdefs.h. */ 3105 3106int 3107main () 3108{ 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114if ac_fn_cxx_try_compile "$LINENO"; then : 3115 ac_cv_prog_cxx_g=yes 3116fi 3117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3118fi 3119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3120fi 3121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3123fi 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3125$as_echo "$ac_cv_prog_cxx_g" >&6; } 3126if test "$ac_test_CXXFLAGS" = set; then 3127 CXXFLAGS=$ac_save_CXXFLAGS 3128elif test $ac_cv_prog_cxx_g = yes; then 3129 if test "$GXX" = yes; then 3130 CXXFLAGS="-g -O2" 3131 else 3132 CXXFLAGS="-g" 3133 fi 3134else 3135 if test "$GXX" = yes; then 3136 CXXFLAGS="-O2" 3137 else 3138 CXXFLAGS= 3139 fi 3140fi 3141ac_ext=c 3142ac_cpp='$CPP $CPPFLAGS' 3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3145ac_compiler_gnu=$ac_cv_c_compiler_gnu 3146 3147for ac_prog in gawk mawk nawk awk 3148do 3149 # Extract the first word of "$ac_prog", so it can be a program name with args. 3150set dummy $ac_prog; ac_word=$2 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3152$as_echo_n "checking for $ac_word... " >&6; } 3153if ${ac_cv_prog_AWK+:} false; then : 3154 $as_echo_n "(cached) " >&6 3155else 3156 if test -n "$AWK"; then 3157 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3158else 3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3160for as_dir in $PATH 3161do 3162 IFS=$as_save_IFS 3163 test -z "$as_dir" && as_dir=. 3164 for ac_exec_ext in '' $ac_executable_extensions; do 3165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3166 ac_cv_prog_AWK="$ac_prog" 3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3168 break 2 3169 fi 3170done 3171 done 3172IFS=$as_save_IFS 3173 3174fi 3175fi 3176AWK=$ac_cv_prog_AWK 3177if test -n "$AWK"; then 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3179$as_echo "$AWK" >&6; } 3180else 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3182$as_echo "no" >&6; } 3183fi 3184 3185 3186 test -n "$AWK" && break 3187done 3188 3189ac_ext=c 3190ac_cpp='$CPP $CPPFLAGS' 3191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3193ac_compiler_gnu=$ac_cv_c_compiler_gnu 3194if test -n "$ac_tool_prefix"; then 3195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3196set dummy ${ac_tool_prefix}gcc; ac_word=$2 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3198$as_echo_n "checking for $ac_word... " >&6; } 3199if ${ac_cv_prog_CC+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 if test -n "$CC"; then 3203 ac_cv_prog_CC="$CC" # Let the user override the test. 3204else 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 test -z "$as_dir" && as_dir=. 3210 for ac_exec_ext in '' $ac_executable_extensions; do 3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3212 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3214 break 2 3215 fi 3216done 3217 done 3218IFS=$as_save_IFS 3219 3220fi 3221fi 3222CC=$ac_cv_prog_CC 3223if test -n "$CC"; then 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3225$as_echo "$CC" >&6; } 3226else 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3228$as_echo "no" >&6; } 3229fi 3230 3231 3232fi 3233if test -z "$ac_cv_prog_CC"; then 3234 ac_ct_CC=$CC 3235 # Extract the first word of "gcc", so it can be a program name with args. 3236set dummy gcc; ac_word=$2 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238$as_echo_n "checking for $ac_word... " >&6; } 3239if ${ac_cv_prog_ac_ct_CC+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if test -n "$ac_ct_CC"; then 3243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3244else 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3252 ac_cv_prog_ac_ct_CC="gcc" 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260fi 3261fi 3262ac_ct_CC=$ac_cv_prog_ac_ct_CC 3263if test -n "$ac_ct_CC"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3265$as_echo "$ac_ct_CC" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 if test "x$ac_ct_CC" = x; then 3272 CC="" 3273 else 3274 case $cross_compiling:$ac_tool_warned in 3275yes:) 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3278ac_tool_warned=yes ;; 3279esac 3280 CC=$ac_ct_CC 3281 fi 3282else 3283 CC="$ac_cv_prog_CC" 3284fi 3285 3286if test -z "$CC"; then 3287 if test -n "$ac_tool_prefix"; then 3288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3289set dummy ${ac_tool_prefix}cc; ac_word=$2 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3291$as_echo_n "checking for $ac_word... " >&6; } 3292if ${ac_cv_prog_CC+:} false; then : 3293 $as_echo_n "(cached) " >&6 3294else 3295 if test -n "$CC"; then 3296 ac_cv_prog_CC="$CC" # Let the user override the test. 3297else 3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3299for as_dir in $PATH 3300do 3301 IFS=$as_save_IFS 3302 test -z "$as_dir" && as_dir=. 3303 for ac_exec_ext in '' $ac_executable_extensions; do 3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3305 ac_cv_prog_CC="${ac_tool_prefix}cc" 3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3307 break 2 3308 fi 3309done 3310 done 3311IFS=$as_save_IFS 3312 3313fi 3314fi 3315CC=$ac_cv_prog_CC 3316if test -n "$CC"; then 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3318$as_echo "$CC" >&6; } 3319else 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3321$as_echo "no" >&6; } 3322fi 3323 3324 3325 fi 3326fi 3327if test -z "$CC"; then 3328 # Extract the first word of "cc", so it can be a program name with args. 3329set dummy cc; ac_word=$2 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3331$as_echo_n "checking for $ac_word... " >&6; } 3332if ${ac_cv_prog_CC+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 if test -n "$CC"; then 3336 ac_cv_prog_CC="$CC" # Let the user override the test. 3337else 3338 ac_prog_rejected=no 3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3340for as_dir in $PATH 3341do 3342 IFS=$as_save_IFS 3343 test -z "$as_dir" && as_dir=. 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3347 ac_prog_rejected=yes 3348 continue 3349 fi 3350 ac_cv_prog_CC="cc" 3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3352 break 2 3353 fi 3354done 3355 done 3356IFS=$as_save_IFS 3357 3358if test $ac_prog_rejected = yes; then 3359 # We found a bogon in the path, so make sure we never use it. 3360 set dummy $ac_cv_prog_CC 3361 shift 3362 if test $# != 0; then 3363 # We chose a different compiler from the bogus one. 3364 # However, it has the same basename, so the bogon will be chosen 3365 # first if we set CC to just the basename; use the full file name. 3366 shift 3367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3368 fi 3369fi 3370fi 3371fi 3372CC=$ac_cv_prog_CC 3373if test -n "$CC"; then 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3375$as_echo "$CC" >&6; } 3376else 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378$as_echo "no" >&6; } 3379fi 3380 3381 3382fi 3383if test -z "$CC"; then 3384 if test -n "$ac_tool_prefix"; then 3385 for ac_prog in cl.exe 3386 do 3387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3388set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3390$as_echo_n "checking for $ac_word... " >&6; } 3391if ${ac_cv_prog_CC+:} false; then : 3392 $as_echo_n "(cached) " >&6 3393else 3394 if test -n "$CC"; then 3395 ac_cv_prog_CC="$CC" # Let the user override the test. 3396else 3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 test -z "$as_dir" && as_dir=. 3402 for ac_exec_ext in '' $ac_executable_extensions; do 3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3406 break 2 3407 fi 3408done 3409 done 3410IFS=$as_save_IFS 3411 3412fi 3413fi 3414CC=$ac_cv_prog_CC 3415if test -n "$CC"; then 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3417$as_echo "$CC" >&6; } 3418else 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3420$as_echo "no" >&6; } 3421fi 3422 3423 3424 test -n "$CC" && break 3425 done 3426fi 3427if test -z "$CC"; then 3428 ac_ct_CC=$CC 3429 for ac_prog in cl.exe 3430do 3431 # Extract the first word of "$ac_prog", so it can be a program name with args. 3432set dummy $ac_prog; ac_word=$2 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3434$as_echo_n "checking for $ac_word... " >&6; } 3435if ${ac_cv_prog_ac_ct_CC+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 if test -n "$ac_ct_CC"; then 3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3440else 3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH 3443do 3444 IFS=$as_save_IFS 3445 test -z "$as_dir" && as_dir=. 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_ac_ct_CC="$ac_prog" 3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452done 3453 done 3454IFS=$as_save_IFS 3455 3456fi 3457fi 3458ac_ct_CC=$ac_cv_prog_ac_ct_CC 3459if test -n "$ac_ct_CC"; then 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3461$as_echo "$ac_ct_CC" >&6; } 3462else 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464$as_echo "no" >&6; } 3465fi 3466 3467 3468 test -n "$ac_ct_CC" && break 3469done 3470 3471 if test "x$ac_ct_CC" = x; then 3472 CC="" 3473 else 3474 case $cross_compiling:$ac_tool_warned in 3475yes:) 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3478ac_tool_warned=yes ;; 3479esac 3480 CC=$ac_ct_CC 3481 fi 3482fi 3483 3484fi 3485 3486 3487test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3489as_fn_error $? "no acceptable C compiler found in \$PATH 3490See \`config.log' for more details" "$LINENO" 5; } 3491 3492# Provide some information about the compiler. 3493$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3494set X $ac_compile 3495ac_compiler=$2 3496for ac_option in --version -v -V -qversion; do 3497 { { ac_try="$ac_compiler $ac_option >&5" 3498case "(($ac_try" in 3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3500 *) ac_try_echo=$ac_try;; 3501esac 3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3503$as_echo "$ac_try_echo"; } >&5 3504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3505 ac_status=$? 3506 if test -s conftest.err; then 3507 sed '10a\ 3508... rest of stderr output deleted ... 3509 10q' conftest.err >conftest.er1 3510 cat conftest.er1 >&5 3511 fi 3512 rm -f conftest.er1 conftest.err 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3514 test $ac_status = 0; } 3515done 3516 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3518$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3519if ${ac_cv_c_compiler_gnu+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528#ifndef __GNUC__ 3529 choke me 3530#endif 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536if ac_fn_c_try_compile "$LINENO"; then : 3537 ac_compiler_gnu=yes 3538else 3539 ac_compiler_gnu=no 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542ac_cv_c_compiler_gnu=$ac_compiler_gnu 3543 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3546$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3547if test $ac_compiler_gnu = yes; then 3548 GCC=yes 3549else 3550 GCC= 3551fi 3552ac_test_CFLAGS=${CFLAGS+set} 3553ac_save_CFLAGS=$CFLAGS 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3555$as_echo_n "checking whether $CC accepts -g... " >&6; } 3556if ${ac_cv_prog_cc_g+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 ac_save_c_werror_flag=$ac_c_werror_flag 3560 ac_c_werror_flag=yes 3561 ac_cv_prog_cc_g=no 3562 CFLAGS="-g" 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565 3566int 3567main () 3568{ 3569 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574if ac_fn_c_try_compile "$LINENO"; then : 3575 ac_cv_prog_cc_g=yes 3576else 3577 CFLAGS="" 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main () 3583{ 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589if ac_fn_c_try_compile "$LINENO"; then : 3590 3591else 3592 ac_c_werror_flag=$ac_save_c_werror_flag 3593 CFLAGS="-g" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_c_try_compile "$LINENO"; then : 3606 ac_cv_prog_cc_g=yes 3607fi 3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3609fi 3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3611fi 3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3613 ac_c_werror_flag=$ac_save_c_werror_flag 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3616$as_echo "$ac_cv_prog_cc_g" >&6; } 3617if test "$ac_test_CFLAGS" = set; then 3618 CFLAGS=$ac_save_CFLAGS 3619elif test $ac_cv_prog_cc_g = yes; then 3620 if test "$GCC" = yes; then 3621 CFLAGS="-g -O2" 3622 else 3623 CFLAGS="-g" 3624 fi 3625else 3626 if test "$GCC" = yes; then 3627 CFLAGS="-O2" 3628 else 3629 CFLAGS= 3630 fi 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3633$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3634if ${ac_cv_prog_cc_c89+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 ac_cv_prog_cc_c89=no 3638ac_save_CC=$CC 3639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641#include <stdarg.h> 3642#include <stdio.h> 3643struct stat; 3644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3645struct buf { int x; }; 3646FILE * (*rcsopen) (struct buf *, struct stat *, int); 3647static char *e (p, i) 3648 char **p; 3649 int i; 3650{ 3651 return p[i]; 3652} 3653static char *f (char * (*g) (char **, int), char **p, ...) 3654{ 3655 char *s; 3656 va_list v; 3657 va_start (v,p); 3658 s = g (p, va_arg (v,int)); 3659 va_end (v); 3660 return s; 3661} 3662 3663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3664 function prototypes and stuff, but not '\xHH' hex character constants. 3665 These don't provoke an error unfortunately, instead are silently treated 3666 as 'x'. The following induces an error, until -std is added to get 3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3668 array size at least. It's necessary to write '\x00'==0 to get something 3669 that's true only with -std. */ 3670int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3671 3672/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3673 inside strings and character constants. */ 3674#define FOO(x) 'x' 3675int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3676 3677int test (int i, double x); 3678struct s1 {int (*f) (int a);}; 3679struct s2 {int (*f) (double a);}; 3680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3681int argc; 3682char **argv; 3683int 3684main () 3685{ 3686return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3687 ; 3688 return 0; 3689} 3690_ACEOF 3691for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3693do 3694 CC="$ac_save_CC $ac_arg" 3695 if ac_fn_c_try_compile "$LINENO"; then : 3696 ac_cv_prog_cc_c89=$ac_arg 3697fi 3698rm -f core conftest.err conftest.$ac_objext 3699 test "x$ac_cv_prog_cc_c89" != "xno" && break 3700done 3701rm -f conftest.$ac_ext 3702CC=$ac_save_CC 3703 3704fi 3705# AC_CACHE_VAL 3706case "x$ac_cv_prog_cc_c89" in 3707 x) 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3709$as_echo "none needed" >&6; } ;; 3710 xno) 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3712$as_echo "unsupported" >&6; } ;; 3713 *) 3714 CC="$CC $ac_cv_prog_cc_c89" 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3716$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3717esac 3718if test "x$ac_cv_prog_cc_c89" != xno; then : 3719 3720fi 3721 3722ac_ext=c 3723ac_cpp='$CPP $CPPFLAGS' 3724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3726ac_compiler_gnu=$ac_cv_c_compiler_gnu 3727 3728ac_ext=c 3729ac_cpp='$CPP $CPPFLAGS' 3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3732ac_compiler_gnu=$ac_cv_c_compiler_gnu 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3734$as_echo_n "checking how to run the C preprocessor... " >&6; } 3735# On Suns, sometimes $CPP names a directory. 3736if test -n "$CPP" && test -d "$CPP"; then 3737 CPP= 3738fi 3739if test -z "$CPP"; then 3740 if ${ac_cv_prog_CPP+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 # Double quotes because CPP needs to be expanded 3744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3745 do 3746 ac_preproc_ok=false 3747for ac_c_preproc_warn_flag in '' yes 3748do 3749 # Use a header file that comes with gcc, so configuring glibc 3750 # with a fresh cross-compiler works. 3751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3752 # <limits.h> exists even on freestanding compilers. 3753 # On the NeXT, cc -E runs the code through the compiler's parser, 3754 # not just through cpp. "Syntax error" is here to catch this case. 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757#ifdef __STDC__ 3758# include <limits.h> 3759#else 3760# include <assert.h> 3761#endif 3762 Syntax error 3763_ACEOF 3764if ac_fn_c_try_cpp "$LINENO"; then : 3765 3766else 3767 # Broken: fails on valid input. 3768continue 3769fi 3770rm -f conftest.err conftest.i conftest.$ac_ext 3771 3772 # OK, works on sane cases. Now check whether nonexistent headers 3773 # can be detected and how. 3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3775/* end confdefs.h. */ 3776#include <ac_nonexistent.h> 3777_ACEOF 3778if ac_fn_c_try_cpp "$LINENO"; then : 3779 # Broken: success on invalid input. 3780continue 3781else 3782 # Passes both tests. 3783ac_preproc_ok=: 3784break 3785fi 3786rm -f conftest.err conftest.i conftest.$ac_ext 3787 3788done 3789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3790rm -f conftest.i conftest.err conftest.$ac_ext 3791if $ac_preproc_ok; then : 3792 break 3793fi 3794 3795 done 3796 ac_cv_prog_CPP=$CPP 3797 3798fi 3799 CPP=$ac_cv_prog_CPP 3800else 3801 ac_cv_prog_CPP=$CPP 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3804$as_echo "$CPP" >&6; } 3805ac_preproc_ok=false 3806for ac_c_preproc_warn_flag in '' yes 3807do 3808 # Use a header file that comes with gcc, so configuring glibc 3809 # with a fresh cross-compiler works. 3810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3811 # <limits.h> exists even on freestanding compilers. 3812 # On the NeXT, cc -E runs the code through the compiler's parser, 3813 # not just through cpp. "Syntax error" is here to catch this case. 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3815/* end confdefs.h. */ 3816#ifdef __STDC__ 3817# include <limits.h> 3818#else 3819# include <assert.h> 3820#endif 3821 Syntax error 3822_ACEOF 3823if ac_fn_c_try_cpp "$LINENO"; then : 3824 3825else 3826 # Broken: fails on valid input. 3827continue 3828fi 3829rm -f conftest.err conftest.i conftest.$ac_ext 3830 3831 # OK, works on sane cases. Now check whether nonexistent headers 3832 # can be detected and how. 3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835#include <ac_nonexistent.h> 3836_ACEOF 3837if ac_fn_c_try_cpp "$LINENO"; then : 3838 # Broken: success on invalid input. 3839continue 3840else 3841 # Passes both tests. 3842ac_preproc_ok=: 3843break 3844fi 3845rm -f conftest.err conftest.i conftest.$ac_ext 3846 3847done 3848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3849rm -f conftest.i conftest.err conftest.$ac_ext 3850if $ac_preproc_ok; then : 3851 3852else 3853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3855as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3856See \`config.log' for more details" "$LINENO" 5; } 3857fi 3858 3859ac_ext=c 3860ac_cpp='$CPP $CPPFLAGS' 3861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3863ac_compiler_gnu=$ac_cv_c_compiler_gnu 3864 3865ac_aux_dir= 3866for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3867 if test -f "$ac_dir/install-sh"; then 3868 ac_aux_dir=$ac_dir 3869 ac_install_sh="$ac_aux_dir/install-sh -c" 3870 break 3871 elif test -f "$ac_dir/install.sh"; then 3872 ac_aux_dir=$ac_dir 3873 ac_install_sh="$ac_aux_dir/install.sh -c" 3874 break 3875 elif test -f "$ac_dir/shtool"; then 3876 ac_aux_dir=$ac_dir 3877 ac_install_sh="$ac_aux_dir/shtool install -c" 3878 break 3879 fi 3880done 3881if test -z "$ac_aux_dir"; then 3882 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3883fi 3884 3885# These three variables are undocumented and unsupported, 3886# and are intended to be withdrawn in a future Autoconf release. 3887# They can cause serious problems if a builder's source tree is in a directory 3888# whose full name contains unusual characters. 3889ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3890ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3891ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3892 3893 3894# Find a good install program. We prefer a C program (faster), 3895# so one script is as good as another. But avoid the broken or 3896# incompatible versions: 3897# SysV /etc/install, /usr/sbin/install 3898# SunOS /usr/etc/install 3899# IRIX /sbin/install 3900# AIX /bin/install 3901# AmigaOS /C/install, which installs bootblocks on floppy discs 3902# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3903# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3904# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3905# OS/2's system install, which has a completely different semantic 3906# ./install, which can be erroneously created by make from ./install.sh. 3907# Reject install programs that cannot install multiple files. 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3909$as_echo_n "checking for a BSD-compatible install... " >&6; } 3910if test -z "$INSTALL"; then 3911if ${ac_cv_path_install+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913else 3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3915for as_dir in $PATH 3916do 3917 IFS=$as_save_IFS 3918 test -z "$as_dir" && as_dir=. 3919 # Account for people who put trailing slashes in PATH elements. 3920case $as_dir/ in #(( 3921 ./ | .// | /[cC]/* | \ 3922 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3923 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3924 /usr/ucb/* ) ;; 3925 *) 3926 # OSF1 and SCO ODT 3.0 have their own names for install. 3927 # Don't use installbsd from OSF since it installs stuff as root 3928 # by default. 3929 for ac_prog in ginstall scoinst install; do 3930 for ac_exec_ext in '' $ac_executable_extensions; do 3931 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3932 if test $ac_prog = install && 3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3934 # AIX install. It has an incompatible calling convention. 3935 : 3936 elif test $ac_prog = install && 3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3938 # program-specific install script used by HP pwplus--don't use. 3939 : 3940 else 3941 rm -rf conftest.one conftest.two conftest.dir 3942 echo one > conftest.one 3943 echo two > conftest.two 3944 mkdir conftest.dir 3945 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3946 test -s conftest.one && test -s conftest.two && 3947 test -s conftest.dir/conftest.one && 3948 test -s conftest.dir/conftest.two 3949 then 3950 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3951 break 3 3952 fi 3953 fi 3954 fi 3955 done 3956 done 3957 ;; 3958esac 3959 3960 done 3961IFS=$as_save_IFS 3962 3963rm -rf conftest.one conftest.two conftest.dir 3964 3965fi 3966 if test "${ac_cv_path_install+set}" = set; then 3967 INSTALL=$ac_cv_path_install 3968 else 3969 # As a last resort, use the slow shell script. Don't cache a 3970 # value for INSTALL within a source directory, because that will 3971 # break other packages using the cache if that directory is 3972 # removed, or if the value is a relative name. 3973 INSTALL=$ac_install_sh 3974 fi 3975fi 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3977$as_echo "$INSTALL" >&6; } 3978 3979# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3980# It thinks the first close brace ends the variable substitution. 3981test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3982 3983test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3984 3985test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3986 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3988$as_echo_n "checking whether ln -s works... " >&6; } 3989LN_S=$as_ln_s 3990if test "$LN_S" = "ln -s"; then 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3992$as_echo "yes" >&6; } 3993else 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3995$as_echo "no, using $LN_S" >&6; } 3996fi 3997 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3999$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4000set x ${MAKE-make} 4001ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4002if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004else 4005 cat >conftest.make <<\_ACEOF 4006SHELL = /bin/sh 4007all: 4008 @echo '@@@%%%=$(MAKE)=@@@%%%' 4009_ACEOF 4010# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4011case `${MAKE-make} -f conftest.make 2>/dev/null` in 4012 *@@@%%%=?*=@@@%%%*) 4013 eval ac_cv_prog_make_${ac_make}_set=yes;; 4014 *) 4015 eval ac_cv_prog_make_${ac_make}_set=no;; 4016esac 4017rm -f conftest.make 4018fi 4019if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4021$as_echo "yes" >&6; } 4022 SET_MAKE= 4023else 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4025$as_echo "no" >&6; } 4026 SET_MAKE="MAKE=${MAKE-make}" 4027fi 4028 4029if test -n "$ac_tool_prefix"; then 4030 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4031set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4033$as_echo_n "checking for $ac_word... " >&6; } 4034if ${ac_cv_prog_RANLIB+:} false; then : 4035 $as_echo_n "(cached) " >&6 4036else 4037 if test -n "$RANLIB"; then 4038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4039else 4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4041for as_dir in $PATH 4042do 4043 IFS=$as_save_IFS 4044 test -z "$as_dir" && as_dir=. 4045 for ac_exec_ext in '' $ac_executable_extensions; do 4046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4047 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4049 break 2 4050 fi 4051done 4052 done 4053IFS=$as_save_IFS 4054 4055fi 4056fi 4057RANLIB=$ac_cv_prog_RANLIB 4058if test -n "$RANLIB"; then 4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4060$as_echo "$RANLIB" >&6; } 4061else 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4063$as_echo "no" >&6; } 4064fi 4065 4066 4067fi 4068if test -z "$ac_cv_prog_RANLIB"; then 4069 ac_ct_RANLIB=$RANLIB 4070 # Extract the first word of "ranlib", so it can be a program name with args. 4071set dummy ranlib; ac_word=$2 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4073$as_echo_n "checking for $ac_word... " >&6; } 4074if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4075 $as_echo_n "(cached) " >&6 4076else 4077 if test -n "$ac_ct_RANLIB"; then 4078 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4079else 4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4081for as_dir in $PATH 4082do 4083 IFS=$as_save_IFS 4084 test -z "$as_dir" && as_dir=. 4085 for ac_exec_ext in '' $ac_executable_extensions; do 4086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4087 ac_cv_prog_ac_ct_RANLIB="ranlib" 4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4089 break 2 4090 fi 4091done 4092 done 4093IFS=$as_save_IFS 4094 4095fi 4096fi 4097ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4098if test -n "$ac_ct_RANLIB"; then 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4100$as_echo "$ac_ct_RANLIB" >&6; } 4101else 4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4103$as_echo "no" >&6; } 4104fi 4105 4106 if test "x$ac_ct_RANLIB" = x; then 4107 RANLIB=":" 4108 else 4109 case $cross_compiling:$ac_tool_warned in 4110yes:) 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4113ac_tool_warned=yes ;; 4114esac 4115 RANLIB=$ac_ct_RANLIB 4116 fi 4117else 4118 RANLIB="$ac_cv_prog_RANLIB" 4119fi 4120 4121for ac_prog in perl 4122do 4123 # Extract the first word of "$ac_prog", so it can be a program name with args. 4124set dummy $ac_prog; ac_word=$2 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4126$as_echo_n "checking for $ac_word... " >&6; } 4127if ${ac_cv_path_PERL+:} false; then : 4128 $as_echo_n "(cached) " >&6 4129else 4130 case $PERL in 4131 [\\/]* | ?:[\\/]*) 4132 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4133 ;; 4134 *) 4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4136for as_dir in $PATH 4137do 4138 IFS=$as_save_IFS 4139 test -z "$as_dir" && as_dir=. 4140 for ac_exec_ext in '' $ac_executable_extensions; do 4141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4142 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4144 break 2 4145 fi 4146done 4147 done 4148IFS=$as_save_IFS 4149 4150 ;; 4151esac 4152fi 4153PERL=$ac_cv_path_PERL 4154if test -n "$PERL"; then 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4156$as_echo "$PERL" >&6; } 4157else 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4159$as_echo "no" >&6; } 4160fi 4161 4162 4163 test -n "$PERL" && break 4164done 4165test -n "$PERL" || PERL="/usr/local/bin/perl" 4166 4167for ac_prog in nkf 4168do 4169 # Extract the first word of "$ac_prog", so it can be a program name with args. 4170set dummy $ac_prog; ac_word=$2 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4172$as_echo_n "checking for $ac_word... " >&6; } 4173if ${ac_cv_path_NKF+:} false; then : 4174 $as_echo_n "(cached) " >&6 4175else 4176 case $NKF in 4177 [\\/]* | ?:[\\/]*) 4178 ac_cv_path_NKF="$NKF" # Let the user override the test with a path. 4179 ;; 4180 *) 4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4182for as_dir in $PATH 4183do 4184 IFS=$as_save_IFS 4185 test -z "$as_dir" && as_dir=. 4186 for ac_exec_ext in '' $ac_executable_extensions; do 4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4188 ac_cv_path_NKF="$as_dir/$ac_word$ac_exec_ext" 4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4190 break 2 4191 fi 4192done 4193 done 4194IFS=$as_save_IFS 4195 4196 ;; 4197esac 4198fi 4199NKF=$ac_cv_path_NKF 4200if test -n "$NKF"; then 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NKF" >&5 4202$as_echo "$NKF" >&6; } 4203else 4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4205$as_echo "no" >&6; } 4206fi 4207 4208 4209 test -n "$NKF" && break 4210done 4211test -n "$NKF" || NKF="/usr/local/bin/nkf" 4212 4213for ac_prog in man 4214do 4215 # Extract the first word of "$ac_prog", so it can be a program name with args. 4216set dummy $ac_prog; ac_word=$2 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4218$as_echo_n "checking for $ac_word... " >&6; } 4219if ${ac_cv_path_MAN+:} false; then : 4220 $as_echo_n "(cached) " >&6 4221else 4222 case $MAN in 4223 [\\/]* | ?:[\\/]*) 4224 ac_cv_path_MAN="$MAN" # Let the user override the test with a path. 4225 ;; 4226 *) 4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4228for as_dir in $PATH 4229do 4230 IFS=$as_save_IFS 4231 test -z "$as_dir" && as_dir=. 4232 for ac_exec_ext in '' $ac_executable_extensions; do 4233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4234 ac_cv_path_MAN="$as_dir/$ac_word$ac_exec_ext" 4235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4236 break 2 4237 fi 4238done 4239 done 4240IFS=$as_save_IFS 4241 4242 ;; 4243esac 4244fi 4245MAN=$ac_cv_path_MAN 4246if test -n "$MAN"; then 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN" >&5 4248$as_echo "$MAN" >&6; } 4249else 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4251$as_echo "no" >&6; } 4252fi 4253 4254 4255 test -n "$MAN" && break 4256done 4257test -n "$MAN" || MAN="/usr/bin/man" 4258 4259 4260 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 4262$as_echo_n "checking for X... " >&6; } 4263 4264 4265# Check whether --with-x was given. 4266if test "${with_x+set}" = set; then : 4267 withval=$with_x; 4268fi 4269 4270# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4271if test "x$with_x" = xno; then 4272 # The user explicitly disabled X. 4273 have_x=disabled 4274else 4275 case $x_includes,$x_libraries in #( 4276 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 4277 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 # One or both of the vars are not set, and there is no cached value. 4281ac_x_includes=no ac_x_libraries=no 4282rm -f -r conftest.dir 4283if mkdir conftest.dir; then 4284 cd conftest.dir 4285 cat >Imakefile <<'_ACEOF' 4286incroot: 4287 @echo incroot='${INCROOT}' 4288usrlibdir: 4289 @echo usrlibdir='${USRLIBDIR}' 4290libdir: 4291 @echo libdir='${LIBDIR}' 4292_ACEOF 4293 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 4294 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4295 for ac_var in incroot usrlibdir libdir; do 4296 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 4297 done 4298 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4299 for ac_extension in a so sl dylib la dll; do 4300 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 4301 test -f "$ac_im_libdir/libX11.$ac_extension"; then 4302 ac_im_usrlibdir=$ac_im_libdir; break 4303 fi 4304 done 4305 # Screen out bogus values from the imake configuration. They are 4306 # bogus both because they are the default anyway, and because 4307 # using them would break gcc on systems where it needs fixed includes. 4308 case $ac_im_incroot in 4309 /usr/include) ac_x_includes= ;; 4310 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4311 esac 4312 case $ac_im_usrlibdir in 4313 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 4314 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4315 esac 4316 fi 4317 cd .. 4318 rm -f -r conftest.dir 4319fi 4320 4321# Standard set of common directories for X headers. 4322# Check X11 before X11Rn because it is often a symlink to the current release. 4323ac_x_header_dirs=' 4324/usr/X11/include 4325/usr/X11R7/include 4326/usr/X11R6/include 4327/usr/X11R5/include 4328/usr/X11R4/include 4329 4330/usr/include/X11 4331/usr/include/X11R7 4332/usr/include/X11R6 4333/usr/include/X11R5 4334/usr/include/X11R4 4335 4336/usr/local/X11/include 4337/usr/local/X11R7/include 4338/usr/local/X11R6/include 4339/usr/local/X11R5/include 4340/usr/local/X11R4/include 4341 4342/usr/local/include/X11 4343/usr/local/include/X11R7 4344/usr/local/include/X11R6 4345/usr/local/include/X11R5 4346/usr/local/include/X11R4 4347 4348/usr/X386/include 4349/usr/x386/include 4350/usr/XFree86/include/X11 4351 4352/usr/include 4353/usr/local/include 4354/usr/unsupported/include 4355/usr/athena/include 4356/usr/local/x11r5/include 4357/usr/lpp/Xamples/include 4358 4359/usr/openwin/include 4360/usr/openwin/share/include' 4361 4362if test "$ac_x_includes" = no; then 4363 # Guess where to find include files, by looking for Xlib.h. 4364 # First, try using that file with no special directory specified. 4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4366/* end confdefs.h. */ 4367#include <X11/Xlib.h> 4368_ACEOF 4369if ac_fn_c_try_cpp "$LINENO"; then : 4370 # We can compile using X headers with no special include directory. 4371ac_x_includes= 4372else 4373 for ac_dir in $ac_x_header_dirs; do 4374 if test -r "$ac_dir/X11/Xlib.h"; then 4375 ac_x_includes=$ac_dir 4376 break 4377 fi 4378done 4379fi 4380rm -f conftest.err conftest.i conftest.$ac_ext 4381fi # $ac_x_includes = no 4382 4383if test "$ac_x_libraries" = no; then 4384 # Check for the libraries. 4385 # See if we find them without any special options. 4386 # Don't add to $LIBS permanently. 4387 ac_save_LIBS=$LIBS 4388 LIBS="-lX11 $LIBS" 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391#include <X11/Xlib.h> 4392int 4393main () 4394{ 4395XrmInitialize () 4396 ; 4397 return 0; 4398} 4399_ACEOF 4400if ac_fn_c_try_link "$LINENO"; then : 4401 LIBS=$ac_save_LIBS 4402# We can link X programs with no special library path. 4403ac_x_libraries= 4404else 4405 LIBS=$ac_save_LIBS 4406for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4407do 4408 # Don't even attempt the hair of trying to link an X program! 4409 for ac_extension in a so sl dylib la dll; do 4410 if test -r "$ac_dir/libX11.$ac_extension"; then 4411 ac_x_libraries=$ac_dir 4412 break 2 4413 fi 4414 done 4415done 4416fi 4417rm -f core conftest.err conftest.$ac_objext \ 4418 conftest$ac_exeext conftest.$ac_ext 4419fi # $ac_x_libraries = no 4420 4421case $ac_x_includes,$ac_x_libraries in #( 4422 no,* | *,no | *\'*) 4423 # Didn't find X, or a directory has "'" in its name. 4424 ac_cv_have_x="have_x=no";; #( 4425 *) 4426 # Record where we found X for the cache. 4427 ac_cv_have_x="have_x=yes\ 4428 ac_x_includes='$ac_x_includes'\ 4429 ac_x_libraries='$ac_x_libraries'" 4430esac 4431fi 4432;; #( 4433 *) have_x=yes;; 4434 esac 4435 eval "$ac_cv_have_x" 4436fi # $with_x != no 4437 4438if test "$have_x" != yes; then 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 4440$as_echo "$have_x" >&6; } 4441 no_x=yes 4442else 4443 # If each of the values was on the command line, it overrides each guess. 4444 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4445 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4446 # Update the cache value to reflect the command line values. 4447 ac_cv_have_x="have_x=yes\ 4448 ac_x_includes='$x_includes'\ 4449 ac_x_libraries='$x_libraries'" 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 4451$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 4452fi 4453 4454if test "$no_x" = yes; then 4455 # Not all programs may use this symbol, but it does not hurt to define it. 4456 4457$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 4458 4459 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 4460else 4461 if test -n "$x_includes"; then 4462 X_CFLAGS="$X_CFLAGS -I$x_includes" 4463 fi 4464 4465 # It would also be nice to do this for all -L options, not just this one. 4466 if test -n "$x_libraries"; then 4467 X_LIBS="$X_LIBS -L$x_libraries" 4468 # For Solaris; some versions of Sun CC require a space after -R and 4469 # others require no space. Words are not sufficient . . . . 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 4471$as_echo_n "checking whether -R must be followed by a space... " >&6; } 4472 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 4473 ac_xsave_c_werror_flag=$ac_c_werror_flag 4474 ac_c_werror_flag=yes 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476/* end confdefs.h. */ 4477 4478int 4479main () 4480{ 4481 4482 ; 4483 return 0; 4484} 4485_ACEOF 4486if ac_fn_c_try_link "$LINENO"; then : 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4488$as_echo "no" >&6; } 4489 X_LIBS="$X_LIBS -R$x_libraries" 4490else 4491 LIBS="$ac_xsave_LIBS -R $x_libraries" 4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4493/* end confdefs.h. */ 4494 4495int 4496main () 4497{ 4498 4499 ; 4500 return 0; 4501} 4502_ACEOF 4503if ac_fn_c_try_link "$LINENO"; then : 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4505$as_echo "yes" >&6; } 4506 X_LIBS="$X_LIBS -R $x_libraries" 4507else 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 4509$as_echo "neither works" >&6; } 4510fi 4511rm -f core conftest.err conftest.$ac_objext \ 4512 conftest$ac_exeext conftest.$ac_ext 4513fi 4514rm -f core conftest.err conftest.$ac_objext \ 4515 conftest$ac_exeext conftest.$ac_ext 4516 ac_c_werror_flag=$ac_xsave_c_werror_flag 4517 LIBS=$ac_xsave_LIBS 4518 fi 4519 4520 # Check for system-dependent libraries X programs must link with. 4521 # Do this before checking for the system-independent R6 libraries 4522 # (-lICE), since we may need -lsocket or whatever for X linking. 4523 4524 if test "$ISC" = yes; then 4525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 4526 else 4527 # Martyn Johnson says this is needed for Ultrix, if the X 4528 # libraries were built with DECnet support. And Karl Berry says 4529 # the Alpha needs dnet_stub (dnet does not exist). 4530 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4532/* end confdefs.h. */ 4533 4534/* Override any GCC internal prototype to avoid an error. 4535 Use char because int might match the return type of a GCC 4536 builtin and then its argument prototype would still apply. */ 4537#ifdef __cplusplus 4538extern "C" 4539#endif 4540char XOpenDisplay (); 4541int 4542main () 4543{ 4544return XOpenDisplay (); 4545 ; 4546 return 0; 4547} 4548_ACEOF 4549if ac_fn_c_try_link "$LINENO"; then : 4550 4551else 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 4553$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 4554if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 ac_check_lib_save_LIBS=$LIBS 4558LIBS="-ldnet $LIBS" 4559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4560/* end confdefs.h. */ 4561 4562/* Override any GCC internal prototype to avoid an error. 4563 Use char because int might match the return type of a GCC 4564 builtin and then its argument prototype would still apply. */ 4565#ifdef __cplusplus 4566extern "C" 4567#endif 4568char dnet_ntoa (); 4569int 4570main () 4571{ 4572return dnet_ntoa (); 4573 ; 4574 return 0; 4575} 4576_ACEOF 4577if ac_fn_c_try_link "$LINENO"; then : 4578 ac_cv_lib_dnet_dnet_ntoa=yes 4579else 4580 ac_cv_lib_dnet_dnet_ntoa=no 4581fi 4582rm -f core conftest.err conftest.$ac_objext \ 4583 conftest$ac_exeext conftest.$ac_ext 4584LIBS=$ac_check_lib_save_LIBS 4585fi 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 4587$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 4588if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 4589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 4590fi 4591 4592 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 4594$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 4595if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 4596 $as_echo_n "(cached) " >&6 4597else 4598 ac_check_lib_save_LIBS=$LIBS 4599LIBS="-ldnet_stub $LIBS" 4600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4601/* end confdefs.h. */ 4602 4603/* Override any GCC internal prototype to avoid an error. 4604 Use char because int might match the return type of a GCC 4605 builtin and then its argument prototype would still apply. */ 4606#ifdef __cplusplus 4607extern "C" 4608#endif 4609char dnet_ntoa (); 4610int 4611main () 4612{ 4613return dnet_ntoa (); 4614 ; 4615 return 0; 4616} 4617_ACEOF 4618if ac_fn_c_try_link "$LINENO"; then : 4619 ac_cv_lib_dnet_stub_dnet_ntoa=yes 4620else 4621 ac_cv_lib_dnet_stub_dnet_ntoa=no 4622fi 4623rm -f core conftest.err conftest.$ac_objext \ 4624 conftest$ac_exeext conftest.$ac_ext 4625LIBS=$ac_check_lib_save_LIBS 4626fi 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 4628$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 4629if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 4630 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 4631fi 4632 4633 fi 4634fi 4635rm -f core conftest.err conftest.$ac_objext \ 4636 conftest$ac_exeext conftest.$ac_ext 4637 LIBS="$ac_xsave_LIBS" 4638 4639 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 4640 # to get the SysV transport functions. 4641 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 4642 # needs -lnsl. 4643 # The nsl library prevents programs from opening the X display 4644 # on Irix 5.2, according to T.E. Dickey. 4645 # The functions gethostbyname, getservbyname, and inet_addr are 4646 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 4647 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 4648if test "x$ac_cv_func_gethostbyname" = xyes; then : 4649 4650fi 4651 4652 if test $ac_cv_func_gethostbyname = no; then 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 4654$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 4655if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 ac_check_lib_save_LIBS=$LIBS 4659LIBS="-lnsl $LIBS" 4660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662 4663/* Override any GCC internal prototype to avoid an error. 4664 Use char because int might match the return type of a GCC 4665 builtin and then its argument prototype would still apply. */ 4666#ifdef __cplusplus 4667extern "C" 4668#endif 4669char gethostbyname (); 4670int 4671main () 4672{ 4673return gethostbyname (); 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678if ac_fn_c_try_link "$LINENO"; then : 4679 ac_cv_lib_nsl_gethostbyname=yes 4680else 4681 ac_cv_lib_nsl_gethostbyname=no 4682fi 4683rm -f core conftest.err conftest.$ac_objext \ 4684 conftest$ac_exeext conftest.$ac_ext 4685LIBS=$ac_check_lib_save_LIBS 4686fi 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 4688$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 4689if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 4690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 4691fi 4692 4693 if test $ac_cv_lib_nsl_gethostbyname = no; then 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 4695$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 4696if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 4697 $as_echo_n "(cached) " >&6 4698else 4699 ac_check_lib_save_LIBS=$LIBS 4700LIBS="-lbsd $LIBS" 4701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702/* end confdefs.h. */ 4703 4704/* Override any GCC internal prototype to avoid an error. 4705 Use char because int might match the return type of a GCC 4706 builtin and then its argument prototype would still apply. */ 4707#ifdef __cplusplus 4708extern "C" 4709#endif 4710char gethostbyname (); 4711int 4712main () 4713{ 4714return gethostbyname (); 4715 ; 4716 return 0; 4717} 4718_ACEOF 4719if ac_fn_c_try_link "$LINENO"; then : 4720 ac_cv_lib_bsd_gethostbyname=yes 4721else 4722 ac_cv_lib_bsd_gethostbyname=no 4723fi 4724rm -f core conftest.err conftest.$ac_objext \ 4725 conftest$ac_exeext conftest.$ac_ext 4726LIBS=$ac_check_lib_save_LIBS 4727fi 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 4729$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 4730if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 4731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 4732fi 4733 4734 fi 4735 fi 4736 4737 # lieder@skyler.mavd.honeywell.com says without -lsocket, 4738 # socket/setsockopt and other routines are undefined under SCO ODT 4739 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 4740 # on later versions), says Simon Leinen: it contains gethostby* 4741 # variants that don't use the name server (or something). -lsocket 4742 # must be given before -lnsl if both are needed. We assume that 4743 # if connect needs -lnsl, so does gethostbyname. 4744 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 4745if test "x$ac_cv_func_connect" = xyes; then : 4746 4747fi 4748 4749 if test $ac_cv_func_connect = no; then 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 4751$as_echo_n "checking for connect in -lsocket... " >&6; } 4752if ${ac_cv_lib_socket_connect+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 ac_check_lib_save_LIBS=$LIBS 4756LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 4757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758/* end confdefs.h. */ 4759 4760/* Override any GCC internal prototype to avoid an error. 4761 Use char because int might match the return type of a GCC 4762 builtin and then its argument prototype would still apply. */ 4763#ifdef __cplusplus 4764extern "C" 4765#endif 4766char connect (); 4767int 4768main () 4769{ 4770return connect (); 4771 ; 4772 return 0; 4773} 4774_ACEOF 4775if ac_fn_c_try_link "$LINENO"; then : 4776 ac_cv_lib_socket_connect=yes 4777else 4778 ac_cv_lib_socket_connect=no 4779fi 4780rm -f core conftest.err conftest.$ac_objext \ 4781 conftest$ac_exeext conftest.$ac_ext 4782LIBS=$ac_check_lib_save_LIBS 4783fi 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 4785$as_echo "$ac_cv_lib_socket_connect" >&6; } 4786if test "x$ac_cv_lib_socket_connect" = xyes; then : 4787 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 4788fi 4789 4790 fi 4791 4792 # Guillermo Gomez says -lposix is necessary on A/UX. 4793 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 4794if test "x$ac_cv_func_remove" = xyes; then : 4795 4796fi 4797 4798 if test $ac_cv_func_remove = no; then 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 4800$as_echo_n "checking for remove in -lposix... " >&6; } 4801if ${ac_cv_lib_posix_remove+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 ac_check_lib_save_LIBS=$LIBS 4805LIBS="-lposix $LIBS" 4806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808 4809/* Override any GCC internal prototype to avoid an error. 4810 Use char because int might match the return type of a GCC 4811 builtin and then its argument prototype would still apply. */ 4812#ifdef __cplusplus 4813extern "C" 4814#endif 4815char remove (); 4816int 4817main () 4818{ 4819return remove (); 4820 ; 4821 return 0; 4822} 4823_ACEOF 4824if ac_fn_c_try_link "$LINENO"; then : 4825 ac_cv_lib_posix_remove=yes 4826else 4827 ac_cv_lib_posix_remove=no 4828fi 4829rm -f core conftest.err conftest.$ac_objext \ 4830 conftest$ac_exeext conftest.$ac_ext 4831LIBS=$ac_check_lib_save_LIBS 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 4834$as_echo "$ac_cv_lib_posix_remove" >&6; } 4835if test "x$ac_cv_lib_posix_remove" = xyes; then : 4836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 4837fi 4838 4839 fi 4840 4841 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4842 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 4843if test "x$ac_cv_func_shmat" = xyes; then : 4844 4845fi 4846 4847 if test $ac_cv_func_shmat = no; then 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 4849$as_echo_n "checking for shmat in -lipc... " >&6; } 4850if ${ac_cv_lib_ipc_shmat+:} false; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 ac_check_lib_save_LIBS=$LIBS 4854LIBS="-lipc $LIBS" 4855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4856/* end confdefs.h. */ 4857 4858/* Override any GCC internal prototype to avoid an error. 4859 Use char because int might match the return type of a GCC 4860 builtin and then its argument prototype would still apply. */ 4861#ifdef __cplusplus 4862extern "C" 4863#endif 4864char shmat (); 4865int 4866main () 4867{ 4868return shmat (); 4869 ; 4870 return 0; 4871} 4872_ACEOF 4873if ac_fn_c_try_link "$LINENO"; then : 4874 ac_cv_lib_ipc_shmat=yes 4875else 4876 ac_cv_lib_ipc_shmat=no 4877fi 4878rm -f core conftest.err conftest.$ac_objext \ 4879 conftest$ac_exeext conftest.$ac_ext 4880LIBS=$ac_check_lib_save_LIBS 4881fi 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 4883$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 4884if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 4885 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 4886fi 4887 4888 fi 4889 fi 4890 4891 # Check for libraries that X11R6 Xt/Xaw programs need. 4892 ac_save_LDFLAGS=$LDFLAGS 4893 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 4894 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 4895 # check for ICE first), but we must link in the order -lSM -lICE or 4896 # we get undefined symbols. So assume we have SM if we have ICE. 4897 # These have to be linked with before -lX11, unlike the other 4898 # libraries we check for below, so use a different variable. 4899 # John Interrante, Karl Berry 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 4901$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 4902if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 ac_check_lib_save_LIBS=$LIBS 4906LIBS="-lICE $X_EXTRA_LIBS $LIBS" 4907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4908/* end confdefs.h. */ 4909 4910/* Override any GCC internal prototype to avoid an error. 4911 Use char because int might match the return type of a GCC 4912 builtin and then its argument prototype would still apply. */ 4913#ifdef __cplusplus 4914extern "C" 4915#endif 4916char IceConnectionNumber (); 4917int 4918main () 4919{ 4920return IceConnectionNumber (); 4921 ; 4922 return 0; 4923} 4924_ACEOF 4925if ac_fn_c_try_link "$LINENO"; then : 4926 ac_cv_lib_ICE_IceConnectionNumber=yes 4927else 4928 ac_cv_lib_ICE_IceConnectionNumber=no 4929fi 4930rm -f core conftest.err conftest.$ac_objext \ 4931 conftest$ac_exeext conftest.$ac_ext 4932LIBS=$ac_check_lib_save_LIBS 4933fi 4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 4935$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 4936if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 4937 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 4938fi 4939 4940 LDFLAGS=$ac_save_LDFLAGS 4941 4942fi 4943 4944# Make sure we can run config.sub. 4945$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4946 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4947 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4949$as_echo_n "checking build system type... " >&6; } 4950if ${ac_cv_build+:} false; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 ac_build_alias=$build_alias 4954test "x$ac_build_alias" = x && 4955 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4956test "x$ac_build_alias" = x && 4957 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4958ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4959 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4960 4961fi 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4963$as_echo "$ac_cv_build" >&6; } 4964case $ac_cv_build in 4965*-*-*) ;; 4966*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4967esac 4968build=$ac_cv_build 4969ac_save_IFS=$IFS; IFS='-' 4970set x $ac_cv_build 4971shift 4972build_cpu=$1 4973build_vendor=$2 4974shift; shift 4975# Remember, the first character of IFS is used to create $*, 4976# except with old shells: 4977build_os=$* 4978IFS=$ac_save_IFS 4979case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4980 4981 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4983$as_echo_n "checking host system type... " >&6; } 4984if ${ac_cv_host+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 if test "x$host_alias" = x; then 4988 ac_cv_host=$ac_cv_build 4989else 4990 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4991 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4992fi 4993 4994fi 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4996$as_echo "$ac_cv_host" >&6; } 4997case $ac_cv_host in 4998*-*-*) ;; 4999*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5000esac 5001host=$ac_cv_host 5002ac_save_IFS=$IFS; IFS='-' 5003set x $ac_cv_host 5004shift 5005host_cpu=$1 5006host_vendor=$2 5007shift; shift 5008# Remember, the first character of IFS is used to create $*, 5009# except with old shells: 5010host_os=$* 5011IFS=$ac_save_IFS 5012case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5013 5014 5015 5016 5017 5018 5019AUXBIN_TARGETS= 5020 5021 5022 5023W3M_TARGET=$target 5024cat >>confdefs.h <<_ACEOF 5025#define W3M_TARGET $W3M_TARGET 5026_ACEOF 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib="" 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if m17n support is enabled" >&5 5040$as_echo_n "checking if m17n support is enabled... " >&6; } 5041# Check whether --enable-m17n was given. 5042if test "${enable_m17n+set}" = set; then : 5043 enableval=$enable_m17n; 5044else 5045 enable_m17n="yes" 5046fi 5047 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_m17n" >&5 5049$as_echo "$enable_m17n" >&6; } 5050if test x"$enable_m17n" = xno; then 5051 w3m_lang="en" 5052 WCTARGET="" 5053 WCCFLAGS="" 5054 wcinclude="" 5055 wclib="" 5056 display_charset='WC_CES_US_ASCII' 5057 system_charset='WC_CES_US_ASCII' 5058 document_charset='WC_CES_US_ASCII' 5059else 5060 $as_echo "#define USE_M17N 1" >>confdefs.h 5061 5062 WCTARGET="libwc/libwc.a" 5063 WCCFLAGS='-I$(srcdir) -I$(srcdir)/..' 5064 wcinclude='-I$(srcdir)/libwc' 5065 wclib="-L./libwc -lwc" 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Unicode support is enabled" >&5 5067$as_echo_n "checking if Unicode support is enabled... " >&6; } 5068 # Check whether --enable-unicode was given. 5069if test "${enable_unicode+set}" = set; then : 5070 enableval=$enable_unicode; 5071else 5072 enable_unicode="yes" 5073fi 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unicode" >&5 5076$as_echo "$enable_unicode" >&6; } 5077 if test x"$enable_m17n" = xyes; then 5078 charset=US-ASCII 5079 else 5080 charset=$enable_m17n 5081 fi 5082 if test x"$enable_unicode" = xyes; then 5083 WCCFLAGS="-DUSE_UNICODE $WCCFLAGS" 5084 if test x"$charset" = xUS-ASCII; then 5085 charset=UTF-8 5086 fi 5087 $as_echo "#define USE_UNICODE 1" >>confdefs.h 5088 5089 fi 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if message l10n" >&5 5091$as_echo_n "checking if message l10n... " >&6; } 5092 # Check whether --enable-messagel10n was given. 5093if test "${enable_messagel10n+set}" = set; then : 5094 enableval=$enable_messagel10n; 5095else 5096 enable_messagel10n="no" 5097fi 5098 5099 if test x$enable_messagel10n = xyes; then 5100 enable_messagel10n="ja"; 5101 fi 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_messagel10n" >&5 5103$as_echo "$enable_messagel10n" >&6; } 5104 if test x$enable_messagel10n = xno; then 5105 : 5106 else 5107 POSUBST="\$(top_srcdir)/posubst" 5108 POLANG="$enable_messagel10n" 5109 fi 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if japanese support is enabled" >&5 5111$as_echo_n "checking if japanese support is enabled... " >&6; } 5112 # Check whether --enable-japanese was given. 5113if test "${enable_japanese+set}" = set; then : 5114 enableval=$enable_japanese; 5115else 5116 enable_japanese="no" 5117fi 5118 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_japanese" >&5 5120$as_echo "$enable_japanese" >&6; } 5121 if test x"$enable_japanese" = xno; then 5122 w3m_lang="en" 5123 else 5124 w3m_lang="ja" 5125 case "$enable_japanese" in 5126 E*) charset=EUC-JP;; 5127 S*) charset=Shift_JIS;; 5128 J*) charset=ISO-2022-JP;; 5129 U*) charset=UTF-8;; 5130 esac 5131 fi 5132 display_charset=$charset 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which charset is used for display" >&5 5134$as_echo_n "checking which charset is used for display... " >&6; } 5135 5136# Check whether --with-charset was given. 5137if test "${with_charset+set}" = set; then : 5138 withval=$with_charset; test x"with_charset" = xyes || display_charset="$with_charset" 5139fi 5140 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $display_charset" >&5 5142$as_echo "$display_charset" >&6; } 5143 display_charset=`awk '$1 == "'$display_charset'" {print $2}' $srcdir/charset-list` 5144 case "$display_charset" in 5145 WC_CES_ISO_2022_JP*) 5146 system_charset=WC_CES_EUC_JP 5147 document_charset=WC_CES_EUC_JP 5148 ;; 5149 WC_CES_SHIFT_JIS) 5150 system_charset=$display_charset 5151 # for auto-detect 5152 document_charset=WC_CES_EUC_JP 5153 ;; 5154 WC_CES_ISO_2022_CN|WC_CES_HZ_GB_2312) 5155 system_charset=WC_CES_EUC_CN 5156 document_charset=WC_CES_EUC_CN 5157 ;; 5158 WC_CES_BIG5) 5159 system_charset=$display_charset 5160 # for auto-detect 5161 document_charset=WC_CES_EUC_TW 5162 ;; 5163 WC_CES_ISO_2022_KR) 5164 system_charset=WC_CES_EUC_KR 5165 document_charset=WC_CES_EUC_KR 5166 ;; 5167 *) 5168 system_charset=$display_charset 5169 document_charset=$display_charset 5170 ;; 5171 esac 5172fi 5173W3M_LANGDEF=`echo $w3m_lang | tr 'a-z' 'A-Z'` 5174W3M_LANG=$W3M_LANGDEF 5175cat >>confdefs.h <<_ACEOF 5176#define W3M_LANG $W3M_LANG 5177_ACEOF 5178 5179cat >>confdefs.h <<_ACEOF 5180#define WCTARGET "$WCTARGET" 5181_ACEOF 5182 5183cat >>confdefs.h <<_ACEOF 5184#define WCCFLAGS "$WCCFLAGS" 5185_ACEOF 5186 5187CFLAGS="$CFLAGS $wcinclude" 5188W3M_LIBS="$W3M_LIBS $wclib" 5189cat >>confdefs.h <<_ACEOF 5190#define DISPLAY_CHARSET $display_charset 5191_ACEOF 5192 5193cat >>confdefs.h <<_ACEOF 5194#define SYSTEM_CHARSET $system_charset 5195_ACEOF 5196 5197cat >>confdefs.h <<_ACEOF 5198#define DOCUMENT_CHARSET $document_charset 5199_ACEOF 5200 5201if test x$enable_messagel10n = xno; then 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 5203$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 5204if test -z "$MKDIR_P"; then 5205 if ${ac_cv_path_mkdir+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 5210do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 for ac_prog in mkdir gmkdir; do 5214 for ac_exec_ext in '' $ac_executable_extensions; do 5215 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 5216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 5217 'mkdir (GNU coreutils) '* | \ 5218 'mkdir (coreutils) '* | \ 5219 'mkdir (fileutils) '4.1*) 5220 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 5221 break 3;; 5222 esac 5223 done 5224 done 5225 done 5226IFS=$as_save_IFS 5227 5228fi 5229 5230 test -d ./--version && rmdir ./--version 5231 if test "${ac_cv_path_mkdir+set}" = set; then 5232 MKDIR_P="$ac_cv_path_mkdir -p" 5233 else 5234 # As a last resort, use the slow shell script. Don't cache a 5235 # value for MKDIR_P within a source directory, because that will 5236 # break other packages using the cache if that directory is 5237 # removed, or if the value is a relative name. 5238 MKDIR_P="$ac_install_sh -d" 5239 fi 5240fi 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 5242$as_echo "$MKDIR_P" >&6; } 5243 5244mkdir_p="$MKDIR_P" 5245case $mkdir_p in 5246 [\\/$]* | ?:[\\/]*) ;; 5247 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 5248esac 5249 5250 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5252$as_echo_n "checking whether NLS is requested... " >&6; } 5253 # Check whether --enable-nls was given. 5254if test "${enable_nls+set}" = set; then : 5255 enableval=$enable_nls; USE_NLS=$enableval 5256else 5257 USE_NLS=yes 5258fi 5259 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5261$as_echo "$USE_NLS" >&6; } 5262 5263 5264 5265 5266 GETTEXT_MACRO_VERSION=0.18 5267 5268 5269 5270 5271# Prepare PATH_SEPARATOR. 5272# The user is always right. 5273if test "${PATH_SEPARATOR+set}" != set; then 5274 echo "#! /bin/sh" >conf$$.sh 5275 echo "exit 0" >>conf$$.sh 5276 chmod +x conf$$.sh 5277 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5278 PATH_SEPARATOR=';' 5279 else 5280 PATH_SEPARATOR=: 5281 fi 5282 rm -f conf$$.sh 5283fi 5284 5285# Find out how to test for executable files. Don't use a zero-byte file, 5286# as systems may use methods other than mode bits to determine executability. 5287cat >conf$$.file <<_ASEOF 5288#! /bin/sh 5289exit 0 5290_ASEOF 5291chmod +x conf$$.file 5292if test -x conf$$.file >/dev/null 2>&1; then 5293 ac_executable_p="test -x" 5294else 5295 ac_executable_p="test -f" 5296fi 5297rm -f conf$$.file 5298 5299# Extract the first word of "msgfmt", so it can be a program name with args. 5300set dummy msgfmt; ac_word=$2 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5302$as_echo_n "checking for $ac_word... " >&6; } 5303if ${ac_cv_path_MSGFMT+:} false; then : 5304 $as_echo_n "(cached) " >&6 5305else 5306 case "$MSGFMT" in 5307 [\\/]* | ?:[\\/]*) 5308 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5309 ;; 5310 *) 5311 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5312 for ac_dir in $PATH; do 5313 IFS="$ac_save_IFS" 5314 test -z "$ac_dir" && ac_dir=. 5315 for ac_exec_ext in '' $ac_executable_extensions; do 5316 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5317 echo "$as_me: trying $ac_dir/$ac_word..." >&5 5318 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 5319 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5320 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 5321 break 2 5322 fi 5323 fi 5324 done 5325 done 5326 IFS="$ac_save_IFS" 5327 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 5328 ;; 5329esac 5330fi 5331MSGFMT="$ac_cv_path_MSGFMT" 5332if test "$MSGFMT" != ":"; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5334$as_echo "$MSGFMT" >&6; } 5335else 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5337$as_echo "no" >&6; } 5338fi 5339 5340 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5341set dummy gmsgfmt; ac_word=$2 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5343$as_echo_n "checking for $ac_word... " >&6; } 5344if ${ac_cv_path_GMSGFMT+:} false; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 case $GMSGFMT in 5348 [\\/]* | ?:[\\/]*) 5349 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5350 ;; 5351 *) 5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353for as_dir in $PATH 5354do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_exec_ext in '' $ac_executable_extensions; do 5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5359 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5361 break 2 5362 fi 5363done 5364 done 5365IFS=$as_save_IFS 5366 5367 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5368 ;; 5369esac 5370fi 5371GMSGFMT=$ac_cv_path_GMSGFMT 5372if test -n "$GMSGFMT"; then 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5374$as_echo "$GMSGFMT" >&6; } 5375else 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5377$as_echo "no" >&6; } 5378fi 5379 5380 5381 5382 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 5383 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 5384 *) MSGFMT_015=$MSGFMT ;; 5385 esac 5386 5387 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 5388 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 5389 *) GMSGFMT_015=$GMSGFMT ;; 5390 esac 5391 5392 5393 5394# Prepare PATH_SEPARATOR. 5395# The user is always right. 5396if test "${PATH_SEPARATOR+set}" != set; then 5397 echo "#! /bin/sh" >conf$$.sh 5398 echo "exit 0" >>conf$$.sh 5399 chmod +x conf$$.sh 5400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5401 PATH_SEPARATOR=';' 5402 else 5403 PATH_SEPARATOR=: 5404 fi 5405 rm -f conf$$.sh 5406fi 5407 5408# Find out how to test for executable files. Don't use a zero-byte file, 5409# as systems may use methods other than mode bits to determine executability. 5410cat >conf$$.file <<_ASEOF 5411#! /bin/sh 5412exit 0 5413_ASEOF 5414chmod +x conf$$.file 5415if test -x conf$$.file >/dev/null 2>&1; then 5416 ac_executable_p="test -x" 5417else 5418 ac_executable_p="test -f" 5419fi 5420rm -f conf$$.file 5421 5422# Extract the first word of "xgettext", so it can be a program name with args. 5423set dummy xgettext; ac_word=$2 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5425$as_echo_n "checking for $ac_word... " >&6; } 5426if ${ac_cv_path_XGETTEXT+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 case "$XGETTEXT" in 5430 [\\/]* | ?:[\\/]*) 5431 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5432 ;; 5433 *) 5434 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5435 for ac_dir in $PATH; do 5436 IFS="$ac_save_IFS" 5437 test -z "$ac_dir" && ac_dir=. 5438 for ac_exec_ext in '' $ac_executable_extensions; do 5439 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5440 echo "$as_me: trying $ac_dir/$ac_word..." >&5 5441 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 5442 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5443 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 5444 break 2 5445 fi 5446 fi 5447 done 5448 done 5449 IFS="$ac_save_IFS" 5450 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5451 ;; 5452esac 5453fi 5454XGETTEXT="$ac_cv_path_XGETTEXT" 5455if test "$XGETTEXT" != ":"; then 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5457$as_echo "$XGETTEXT" >&6; } 5458else 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5460$as_echo "no" >&6; } 5461fi 5462 5463 rm -f messages.po 5464 5465 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 5466 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 5467 *) XGETTEXT_015=$XGETTEXT ;; 5468 esac 5469 5470 5471 5472# Prepare PATH_SEPARATOR. 5473# The user is always right. 5474if test "${PATH_SEPARATOR+set}" != set; then 5475 echo "#! /bin/sh" >conf$$.sh 5476 echo "exit 0" >>conf$$.sh 5477 chmod +x conf$$.sh 5478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5479 PATH_SEPARATOR=';' 5480 else 5481 PATH_SEPARATOR=: 5482 fi 5483 rm -f conf$$.sh 5484fi 5485 5486# Find out how to test for executable files. Don't use a zero-byte file, 5487# as systems may use methods other than mode bits to determine executability. 5488cat >conf$$.file <<_ASEOF 5489#! /bin/sh 5490exit 0 5491_ASEOF 5492chmod +x conf$$.file 5493if test -x conf$$.file >/dev/null 2>&1; then 5494 ac_executable_p="test -x" 5495else 5496 ac_executable_p="test -f" 5497fi 5498rm -f conf$$.file 5499 5500# Extract the first word of "msgmerge", so it can be a program name with args. 5501set dummy msgmerge; ac_word=$2 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5503$as_echo_n "checking for $ac_word... " >&6; } 5504if ${ac_cv_path_MSGMERGE+:} false; then : 5505 $as_echo_n "(cached) " >&6 5506else 5507 case "$MSGMERGE" in 5508 [\\/]* | ?:[\\/]*) 5509 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 5510 ;; 5511 *) 5512 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5513 for ac_dir in $PATH; do 5514 IFS="$ac_save_IFS" 5515 test -z "$ac_dir" && ac_dir=. 5516 for ac_exec_ext in '' $ac_executable_extensions; do 5517 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5518 echo "$as_me: trying $ac_dir/$ac_word..." >&5 5519 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 5520 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 5521 break 2 5522 fi 5523 fi 5524 done 5525 done 5526 IFS="$ac_save_IFS" 5527 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 5528 ;; 5529esac 5530fi 5531MSGMERGE="$ac_cv_path_MSGMERGE" 5532if test "$MSGMERGE" != ":"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 5534$as_echo "$MSGMERGE" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5537$as_echo "no" >&6; } 5538fi 5539 5540 5541 test -n "$localedir" || localedir='${datadir}/locale' 5542 5543 5544 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 5545 5546 5547 ac_config_commands="$ac_config_commands po-directories" 5548 5549 5550 5551 if test "X$prefix" = "XNONE"; then 5552 acl_final_prefix="$ac_default_prefix" 5553 else 5554 acl_final_prefix="$prefix" 5555 fi 5556 if test "X$exec_prefix" = "XNONE"; then 5557 acl_final_exec_prefix='${prefix}' 5558 else 5559 acl_final_exec_prefix="$exec_prefix" 5560 fi 5561 acl_save_prefix="$prefix" 5562 prefix="$acl_final_prefix" 5563 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 5564 prefix="$acl_save_prefix" 5565 5566 5567# Check whether --with-gnu-ld was given. 5568if test "${with_gnu_ld+set}" = set; then : 5569 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5570else 5571 with_gnu_ld=no 5572fi 5573 5574# Prepare PATH_SEPARATOR. 5575# The user is always right. 5576if test "${PATH_SEPARATOR+set}" != set; then 5577 echo "#! /bin/sh" >conf$$.sh 5578 echo "exit 0" >>conf$$.sh 5579 chmod +x conf$$.sh 5580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5581 PATH_SEPARATOR=';' 5582 else 5583 PATH_SEPARATOR=: 5584 fi 5585 rm -f conf$$.sh 5586fi 5587ac_prog=ld 5588if test "$GCC" = yes; then 5589 # Check if gcc -print-prog-name=ld gives a path. 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 5591$as_echo_n "checking for ld used by GCC... " >&6; } 5592 case $host in 5593 *-*-mingw*) 5594 # gcc leaves a trailing carriage return which upsets mingw 5595 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5596 *) 5597 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5598 esac 5599 case $ac_prog in 5600 # Accept absolute paths. 5601 [\\/]* | [A-Za-z]:[\\/]*) 5602 re_direlt='/[^/][^/]*/\.\./' 5603 # Canonicalize the path of ld 5604 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 5605 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5606 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 5607 done 5608 test -z "$LD" && LD="$ac_prog" 5609 ;; 5610 "") 5611 # If it fails, then pretend we aren't using GCC. 5612 ac_prog=ld 5613 ;; 5614 *) 5615 # If it is relative, then search for the first ld in PATH. 5616 with_gnu_ld=unknown 5617 ;; 5618 esac 5619elif test "$with_gnu_ld" = yes; then 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5621$as_echo_n "checking for GNU ld... " >&6; } 5622else 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5624$as_echo_n "checking for non-GNU ld... " >&6; } 5625fi 5626if ${acl_cv_path_LD+:} false; then : 5627 $as_echo_n "(cached) " >&6 5628else 5629 if test -z "$LD"; then 5630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 5631 for ac_dir in $PATH; do 5632 test -z "$ac_dir" && ac_dir=. 5633 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5634 acl_cv_path_LD="$ac_dir/$ac_prog" 5635 # Check to see if the program is GNU ld. I'd rather use --version, 5636 # but apparently some GNU ld's only accept -v. 5637 # Break only if it was the GNU/non-GNU ld that we prefer. 5638 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 5639 *GNU* | *'with BFD'*) 5640 test "$with_gnu_ld" != no && break ;; 5641 *) 5642 test "$with_gnu_ld" != yes && break ;; 5643 esac 5644 fi 5645 done 5646 IFS="$ac_save_ifs" 5647else 5648 acl_cv_path_LD="$LD" # Let the user override the test with a path. 5649fi 5650fi 5651 5652LD="$acl_cv_path_LD" 5653if test -n "$LD"; then 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5655$as_echo "$LD" >&6; } 5656else 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5658$as_echo "no" >&6; } 5659fi 5660test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5662$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5663if ${acl_cv_prog_gnu_ld+:} false; then : 5664 $as_echo_n "(cached) " >&6 5665else 5666 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 5667case `$LD -v 2>&1 </dev/null` in 5668*GNU* | *'with BFD'*) 5669 acl_cv_prog_gnu_ld=yes ;; 5670*) 5671 acl_cv_prog_gnu_ld=no ;; 5672esac 5673fi 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5675$as_echo "$acl_cv_prog_gnu_ld" >&6; } 5676with_gnu_ld=$acl_cv_prog_gnu_ld 5677 5678 5679 5680 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5682$as_echo_n "checking for shared library run path origin... " >&6; } 5683if ${acl_cv_rpath+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 5687 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5688 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 5689 . ./conftest.sh 5690 rm -f ./conftest.sh 5691 acl_cv_rpath=done 5692 5693fi 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5695$as_echo "$acl_cv_rpath" >&6; } 5696 wl="$acl_cv_wl" 5697 acl_libext="$acl_cv_libext" 5698 acl_shlibext="$acl_cv_shlibext" 5699 acl_libname_spec="$acl_cv_libname_spec" 5700 acl_library_names_spec="$acl_cv_library_names_spec" 5701 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5702 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5703 acl_hardcode_direct="$acl_cv_hardcode_direct" 5704 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 5705 # Check whether --enable-rpath was given. 5706if test "${enable_rpath+set}" = set; then : 5707 enableval=$enable_rpath; : 5708else 5709 enable_rpath=yes 5710fi 5711 5712 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5714$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5715if ${ac_cv_path_GREP+:} false; then : 5716 $as_echo_n "(cached) " >&6 5717else 5718 if test -z "$GREP"; then 5719 ac_path_GREP_found=false 5720 # Loop through the user's path and test for each of PROGNAME-LIST 5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5722for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5723do 5724 IFS=$as_save_IFS 5725 test -z "$as_dir" && as_dir=. 5726 for ac_prog in grep ggrep; do 5727 for ac_exec_ext in '' $ac_executable_extensions; do 5728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5729 as_fn_executable_p "$ac_path_GREP" || continue 5730# Check for GNU ac_path_GREP and select it if it is found. 5731 # Check for GNU $ac_path_GREP 5732case `"$ac_path_GREP" --version 2>&1` in 5733*GNU*) 5734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5735*) 5736 ac_count=0 5737 $as_echo_n 0123456789 >"conftest.in" 5738 while : 5739 do 5740 cat "conftest.in" "conftest.in" >"conftest.tmp" 5741 mv "conftest.tmp" "conftest.in" 5742 cp "conftest.in" "conftest.nl" 5743 $as_echo 'GREP' >> "conftest.nl" 5744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5746 as_fn_arith $ac_count + 1 && ac_count=$as_val 5747 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5748 # Best one so far, save it but keep looking for a better one 5749 ac_cv_path_GREP="$ac_path_GREP" 5750 ac_path_GREP_max=$ac_count 5751 fi 5752 # 10*(2^10) chars as input seems more than enough 5753 test $ac_count -gt 10 && break 5754 done 5755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5756esac 5757 5758 $ac_path_GREP_found && break 3 5759 done 5760 done 5761 done 5762IFS=$as_save_IFS 5763 if test -z "$ac_cv_path_GREP"; then 5764 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5765 fi 5766else 5767 ac_cv_path_GREP=$GREP 5768fi 5769 5770fi 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5772$as_echo "$ac_cv_path_GREP" >&6; } 5773 GREP="$ac_cv_path_GREP" 5774 5775 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5777$as_echo_n "checking for egrep... " >&6; } 5778if ${ac_cv_path_EGREP+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5782 then ac_cv_path_EGREP="$GREP -E" 5783 else 5784 if test -z "$EGREP"; then 5785 ac_path_EGREP_found=false 5786 # Loop through the user's path and test for each of PROGNAME-LIST 5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5788for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5789do 5790 IFS=$as_save_IFS 5791 test -z "$as_dir" && as_dir=. 5792 for ac_prog in egrep; do 5793 for ac_exec_ext in '' $ac_executable_extensions; do 5794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5795 as_fn_executable_p "$ac_path_EGREP" || continue 5796# Check for GNU ac_path_EGREP and select it if it is found. 5797 # Check for GNU $ac_path_EGREP 5798case `"$ac_path_EGREP" --version 2>&1` in 5799*GNU*) 5800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5801*) 5802 ac_count=0 5803 $as_echo_n 0123456789 >"conftest.in" 5804 while : 5805 do 5806 cat "conftest.in" "conftest.in" >"conftest.tmp" 5807 mv "conftest.tmp" "conftest.in" 5808 cp "conftest.in" "conftest.nl" 5809 $as_echo 'EGREP' >> "conftest.nl" 5810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5812 as_fn_arith $ac_count + 1 && ac_count=$as_val 5813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5814 # Best one so far, save it but keep looking for a better one 5815 ac_cv_path_EGREP="$ac_path_EGREP" 5816 ac_path_EGREP_max=$ac_count 5817 fi 5818 # 10*(2^10) chars as input seems more than enough 5819 test $ac_count -gt 10 && break 5820 done 5821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5822esac 5823 5824 $ac_path_EGREP_found && break 3 5825 done 5826 done 5827 done 5828IFS=$as_save_IFS 5829 if test -z "$ac_cv_path_EGREP"; then 5830 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5831 fi 5832else 5833 ac_cv_path_EGREP=$EGREP 5834fi 5835 5836 fi 5837fi 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5839$as_echo "$ac_cv_path_EGREP" >&6; } 5840 EGREP="$ac_cv_path_EGREP" 5841 5842 5843 5844 5845 acl_libdirstem=lib 5846 acl_libdirstem2= 5847 case "$host_os" in 5848 solaris*) 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 5850$as_echo_n "checking for 64-bit host... " >&6; } 5851if ${gl_cv_solaris_64bit+:} false; then : 5852 $as_echo_n "(cached) " >&6 5853else 5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5855/* end confdefs.h. */ 5856 5857#ifdef _LP64 5858sixtyfour bits 5859#endif 5860 5861_ACEOF 5862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5863 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 5864 gl_cv_solaris_64bit=yes 5865else 5866 gl_cv_solaris_64bit=no 5867fi 5868rm -f conftest* 5869 5870 5871fi 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 5873$as_echo "$gl_cv_solaris_64bit" >&6; } 5874 if test $gl_cv_solaris_64bit = yes; then 5875 acl_libdirstem=lib/64 5876 case "$host_cpu" in 5877 sparc*) acl_libdirstem2=lib/sparcv9 ;; 5878 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 5879 esac 5880 fi 5881 ;; 5882 *) 5883 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 5884 if test -n "$searchpath"; then 5885 acl_save_IFS="${IFS= }"; IFS=":" 5886 for searchdir in $searchpath; do 5887 if test -d "$searchdir"; then 5888 case "$searchdir" in 5889 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 5890 */../ | */.. ) 5891 # Better ignore directories of this form. They are misleading. 5892 ;; 5893 *) searchdir=`cd "$searchdir" && pwd` 5894 case "$searchdir" in 5895 */lib64 ) acl_libdirstem=lib64 ;; 5896 esac ;; 5897 esac 5898 fi 5899 done 5900 IFS="$acl_save_IFS" 5901 fi 5902 ;; 5903 esac 5904 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 use_additional=yes 5918 5919 acl_save_prefix="$prefix" 5920 prefix="$acl_final_prefix" 5921 acl_save_exec_prefix="$exec_prefix" 5922 exec_prefix="$acl_final_exec_prefix" 5923 5924 eval additional_includedir=\"$includedir\" 5925 eval additional_libdir=\"$libdir\" 5926 5927 exec_prefix="$acl_save_exec_prefix" 5928 prefix="$acl_save_prefix" 5929 5930 5931# Check whether --with-libiconv-prefix was given. 5932if test "${with_libiconv_prefix+set}" = set; then : 5933 withval=$with_libiconv_prefix; 5934 if test "X$withval" = "Xno"; then 5935 use_additional=no 5936 else 5937 if test "X$withval" = "X"; then 5938 5939 acl_save_prefix="$prefix" 5940 prefix="$acl_final_prefix" 5941 acl_save_exec_prefix="$exec_prefix" 5942 exec_prefix="$acl_final_exec_prefix" 5943 5944 eval additional_includedir=\"$includedir\" 5945 eval additional_libdir=\"$libdir\" 5946 5947 exec_prefix="$acl_save_exec_prefix" 5948 prefix="$acl_save_prefix" 5949 5950 else 5951 additional_includedir="$withval/include" 5952 additional_libdir="$withval/$acl_libdirstem" 5953 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 5954 && ! test -d "$withval/$acl_libdirstem"; then 5955 additional_libdir="$withval/$acl_libdirstem2" 5956 fi 5957 fi 5958 fi 5959 5960fi 5961 5962 LIBICONV= 5963 LTLIBICONV= 5964 INCICONV= 5965 LIBICONV_PREFIX= 5966 HAVE_LIBICONV= 5967 rpathdirs= 5968 ltrpathdirs= 5969 names_already_handled= 5970 names_next_round='iconv ' 5971 while test -n "$names_next_round"; do 5972 names_this_round="$names_next_round" 5973 names_next_round= 5974 for name in $names_this_round; do 5975 already_handled= 5976 for n in $names_already_handled; do 5977 if test "$n" = "$name"; then 5978 already_handled=yes 5979 break 5980 fi 5981 done 5982 if test -z "$already_handled"; then 5983 names_already_handled="$names_already_handled $name" 5984 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5985 eval value=\"\$HAVE_LIB$uppername\" 5986 if test -n "$value"; then 5987 if test "$value" = yes; then 5988 eval value=\"\$LIB$uppername\" 5989 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 5990 eval value=\"\$LTLIB$uppername\" 5991 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 5992 else 5993 : 5994 fi 5995 else 5996 found_dir= 5997 found_la= 5998 found_so= 5999 found_a= 6000 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 6001 if test -n "$acl_shlibext"; then 6002 shrext=".$acl_shlibext" # typically: shrext=.so 6003 else 6004 shrext= 6005 fi 6006 if test $use_additional = yes; then 6007 dir="$additional_libdir" 6008 if test -n "$acl_shlibext"; then 6009 if test -f "$dir/$libname$shrext"; then 6010 found_dir="$dir" 6011 found_so="$dir/$libname$shrext" 6012 else 6013 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 6014 ver=`(cd "$dir" && \ 6015 for f in "$libname$shrext".*; do echo "$f"; done \ 6016 | sed -e "s,^$libname$shrext\\\\.,," \ 6017 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 6018 | sed 1q ) 2>/dev/null` 6019 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 6020 found_dir="$dir" 6021 found_so="$dir/$libname$shrext.$ver" 6022 fi 6023 else 6024 eval library_names=\"$acl_library_names_spec\" 6025 for f in $library_names; do 6026 if test -f "$dir/$f"; then 6027 found_dir="$dir" 6028 found_so="$dir/$f" 6029 break 6030 fi 6031 done 6032 fi 6033 fi 6034 fi 6035 if test "X$found_dir" = "X"; then 6036 if test -f "$dir/$libname.$acl_libext"; then 6037 found_dir="$dir" 6038 found_a="$dir/$libname.$acl_libext" 6039 fi 6040 fi 6041 if test "X$found_dir" != "X"; then 6042 if test -f "$dir/$libname.la"; then 6043 found_la="$dir/$libname.la" 6044 fi 6045 fi 6046 fi 6047 if test "X$found_dir" = "X"; then 6048 for x in $LDFLAGS $LTLIBICONV; do 6049 6050 acl_save_prefix="$prefix" 6051 prefix="$acl_final_prefix" 6052 acl_save_exec_prefix="$exec_prefix" 6053 exec_prefix="$acl_final_exec_prefix" 6054 eval x=\"$x\" 6055 exec_prefix="$acl_save_exec_prefix" 6056 prefix="$acl_save_prefix" 6057 6058 case "$x" in 6059 -L*) 6060 dir=`echo "X$x" | sed -e 's/^X-L//'` 6061 if test -n "$acl_shlibext"; then 6062 if test -f "$dir/$libname$shrext"; then 6063 found_dir="$dir" 6064 found_so="$dir/$libname$shrext" 6065 else 6066 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 6067 ver=`(cd "$dir" && \ 6068 for f in "$libname$shrext".*; do echo "$f"; done \ 6069 | sed -e "s,^$libname$shrext\\\\.,," \ 6070 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 6071 | sed 1q ) 2>/dev/null` 6072 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 6073 found_dir="$dir" 6074 found_so="$dir/$libname$shrext.$ver" 6075 fi 6076 else 6077 eval library_names=\"$acl_library_names_spec\" 6078 for f in $library_names; do 6079 if test -f "$dir/$f"; then 6080 found_dir="$dir" 6081 found_so="$dir/$f" 6082 break 6083 fi 6084 done 6085 fi 6086 fi 6087 fi 6088 if test "X$found_dir" = "X"; then 6089 if test -f "$dir/$libname.$acl_libext"; then 6090 found_dir="$dir" 6091 found_a="$dir/$libname.$acl_libext" 6092 fi 6093 fi 6094 if test "X$found_dir" != "X"; then 6095 if test -f "$dir/$libname.la"; then 6096 found_la="$dir/$libname.la" 6097 fi 6098 fi 6099 ;; 6100 esac 6101 if test "X$found_dir" != "X"; then 6102 break 6103 fi 6104 done 6105 fi 6106 if test "X$found_dir" != "X"; then 6107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 6108 if test "X$found_so" != "X"; then 6109 if test "$enable_rpath" = no \ 6110 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 6111 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 6112 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6113 else 6114 haveit= 6115 for x in $ltrpathdirs; do 6116 if test "X$x" = "X$found_dir"; then 6117 haveit=yes 6118 break 6119 fi 6120 done 6121 if test -z "$haveit"; then 6122 ltrpathdirs="$ltrpathdirs $found_dir" 6123 fi 6124 if test "$acl_hardcode_direct" = yes; then 6125 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6126 else 6127 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 6128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6129 haveit= 6130 for x in $rpathdirs; do 6131 if test "X$x" = "X$found_dir"; then 6132 haveit=yes 6133 break 6134 fi 6135 done 6136 if test -z "$haveit"; then 6137 rpathdirs="$rpathdirs $found_dir" 6138 fi 6139 else 6140 haveit= 6141 for x in $LDFLAGS $LIBICONV; do 6142 6143 acl_save_prefix="$prefix" 6144 prefix="$acl_final_prefix" 6145 acl_save_exec_prefix="$exec_prefix" 6146 exec_prefix="$acl_final_exec_prefix" 6147 eval x=\"$x\" 6148 exec_prefix="$acl_save_exec_prefix" 6149 prefix="$acl_save_prefix" 6150 6151 if test "X$x" = "X-L$found_dir"; then 6152 haveit=yes 6153 break 6154 fi 6155 done 6156 if test -z "$haveit"; then 6157 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 6158 fi 6159 if test "$acl_hardcode_minus_L" != no; then 6160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6161 else 6162 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6163 fi 6164 fi 6165 fi 6166 fi 6167 else 6168 if test "X$found_a" != "X"; then 6169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 6170 else 6171 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 6172 fi 6173 fi 6174 additional_includedir= 6175 case "$found_dir" in 6176 */$acl_libdirstem | */$acl_libdirstem/) 6177 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 6178 if test "$name" = 'iconv'; then 6179 LIBICONV_PREFIX="$basedir" 6180 fi 6181 additional_includedir="$basedir/include" 6182 ;; 6183 */$acl_libdirstem2 | */$acl_libdirstem2/) 6184 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 6185 if test "$name" = 'iconv'; then 6186 LIBICONV_PREFIX="$basedir" 6187 fi 6188 additional_includedir="$basedir/include" 6189 ;; 6190 esac 6191 if test "X$additional_includedir" != "X"; then 6192 if test "X$additional_includedir" != "X/usr/include"; then 6193 haveit= 6194 if test "X$additional_includedir" = "X/usr/local/include"; then 6195 if test -n "$GCC"; then 6196 case $host_os in 6197 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 6198 esac 6199 fi 6200 fi 6201 if test -z "$haveit"; then 6202 for x in $CPPFLAGS $INCICONV; do 6203 6204 acl_save_prefix="$prefix" 6205 prefix="$acl_final_prefix" 6206 acl_save_exec_prefix="$exec_prefix" 6207 exec_prefix="$acl_final_exec_prefix" 6208 eval x=\"$x\" 6209 exec_prefix="$acl_save_exec_prefix" 6210 prefix="$acl_save_prefix" 6211 6212 if test "X$x" = "X-I$additional_includedir"; then 6213 haveit=yes 6214 break 6215 fi 6216 done 6217 if test -z "$haveit"; then 6218 if test -d "$additional_includedir"; then 6219 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 6220 fi 6221 fi 6222 fi 6223 fi 6224 fi 6225 if test -n "$found_la"; then 6226 save_libdir="$libdir" 6227 case "$found_la" in 6228 */* | *\\*) . "$found_la" ;; 6229 *) . "./$found_la" ;; 6230 esac 6231 libdir="$save_libdir" 6232 for dep in $dependency_libs; do 6233 case "$dep" in 6234 -L*) 6235 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6236 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 6237 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 6238 haveit= 6239 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 6240 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 6241 if test -n "$GCC"; then 6242 case $host_os in 6243 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 6244 esac 6245 fi 6246 fi 6247 if test -z "$haveit"; then 6248 haveit= 6249 for x in $LDFLAGS $LIBICONV; do 6250 6251 acl_save_prefix="$prefix" 6252 prefix="$acl_final_prefix" 6253 acl_save_exec_prefix="$exec_prefix" 6254 exec_prefix="$acl_final_exec_prefix" 6255 eval x=\"$x\" 6256 exec_prefix="$acl_save_exec_prefix" 6257 prefix="$acl_save_prefix" 6258 6259 if test "X$x" = "X-L$additional_libdir"; then 6260 haveit=yes 6261 break 6262 fi 6263 done 6264 if test -z "$haveit"; then 6265 if test -d "$additional_libdir"; then 6266 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 6267 fi 6268 fi 6269 haveit= 6270 for x in $LDFLAGS $LTLIBICONV; do 6271 6272 acl_save_prefix="$prefix" 6273 prefix="$acl_final_prefix" 6274 acl_save_exec_prefix="$exec_prefix" 6275 exec_prefix="$acl_final_exec_prefix" 6276 eval x=\"$x\" 6277 exec_prefix="$acl_save_exec_prefix" 6278 prefix="$acl_save_prefix" 6279 6280 if test "X$x" = "X-L$additional_libdir"; then 6281 haveit=yes 6282 break 6283 fi 6284 done 6285 if test -z "$haveit"; then 6286 if test -d "$additional_libdir"; then 6287 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 6288 fi 6289 fi 6290 fi 6291 fi 6292 ;; 6293 -R*) 6294 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6295 if test "$enable_rpath" != no; then 6296 haveit= 6297 for x in $rpathdirs; do 6298 if test "X$x" = "X$dir"; then 6299 haveit=yes 6300 break 6301 fi 6302 done 6303 if test -z "$haveit"; then 6304 rpathdirs="$rpathdirs $dir" 6305 fi 6306 haveit= 6307 for x in $ltrpathdirs; do 6308 if test "X$x" = "X$dir"; then 6309 haveit=yes 6310 break 6311 fi 6312 done 6313 if test -z "$haveit"; then 6314 ltrpathdirs="$ltrpathdirs $dir" 6315 fi 6316 fi 6317 ;; 6318 -l*) 6319 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6320 ;; 6321 *.la) 6322 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6323 ;; 6324 *) 6325 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 6326 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 6327 ;; 6328 esac 6329 done 6330 fi 6331 else 6332 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6333 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 6334 fi 6335 fi 6336 fi 6337 done 6338 done 6339 if test "X$rpathdirs" != "X"; then 6340 if test -n "$acl_hardcode_libdir_separator"; then 6341 alldirs= 6342 for found_dir in $rpathdirs; do 6343 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 6344 done 6345 acl_save_libdir="$libdir" 6346 libdir="$alldirs" 6347 eval flag=\"$acl_hardcode_libdir_flag_spec\" 6348 libdir="$acl_save_libdir" 6349 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6350 else 6351 for found_dir in $rpathdirs; do 6352 acl_save_libdir="$libdir" 6353 libdir="$found_dir" 6354 eval flag=\"$acl_hardcode_libdir_flag_spec\" 6355 libdir="$acl_save_libdir" 6356 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6357 done 6358 fi 6359 fi 6360 if test "X$ltrpathdirs" != "X"; then 6361 for found_dir in $ltrpathdirs; do 6362 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 6363 done 6364 fi 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 6397$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 6398if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 6399 $as_echo_n "(cached) " >&6 6400else 6401 gt_save_LIBS="$LIBS" 6402 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6404/* end confdefs.h. */ 6405#include <CoreFoundation/CFPreferences.h> 6406int 6407main () 6408{ 6409CFPreferencesCopyAppValue(NULL, NULL) 6410 ; 6411 return 0; 6412} 6413_ACEOF 6414if ac_fn_c_try_link "$LINENO"; then : 6415 gt_cv_func_CFPreferencesCopyAppValue=yes 6416else 6417 gt_cv_func_CFPreferencesCopyAppValue=no 6418fi 6419rm -f core conftest.err conftest.$ac_objext \ 6420 conftest$ac_exeext conftest.$ac_ext 6421 LIBS="$gt_save_LIBS" 6422fi 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 6424$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 6425 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 6426 6427$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 6428 6429 fi 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 6431$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 6432if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 gt_save_LIBS="$LIBS" 6436 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6438/* end confdefs.h. */ 6439#include <CoreFoundation/CFLocale.h> 6440int 6441main () 6442{ 6443CFLocaleCopyCurrent(); 6444 ; 6445 return 0; 6446} 6447_ACEOF 6448if ac_fn_c_try_link "$LINENO"; then : 6449 gt_cv_func_CFLocaleCopyCurrent=yes 6450else 6451 gt_cv_func_CFLocaleCopyCurrent=no 6452fi 6453rm -f core conftest.err conftest.$ac_objext \ 6454 conftest$ac_exeext conftest.$ac_ext 6455 LIBS="$gt_save_LIBS" 6456fi 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 6458$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 6459 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 6460 6461$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 6462 6463 fi 6464 INTL_MACOSX_LIBS= 6465 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 6466 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 6467 fi 6468 6469 6470 6471 6472 6473 6474 LIBINTL= 6475 LTLIBINTL= 6476 POSUB= 6477 6478 case " $gt_needs " in 6479 *" need-formatstring-macros "*) gt_api_version=3 ;; 6480 *" need-ngettext "*) gt_api_version=2 ;; 6481 *) gt_api_version=1 ;; 6482 esac 6483 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 6484 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 6485 6486 if test "$USE_NLS" = "yes"; then 6487 gt_use_preinstalled_gnugettext=no 6488 6489 6490 if test $gt_api_version -ge 3; then 6491 gt_revision_test_code=' 6492#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 6493#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 6494#endif 6495typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 6496' 6497 else 6498 gt_revision_test_code= 6499 fi 6500 if test $gt_api_version -ge 2; then 6501 gt_expression_test_code=' + * ngettext ("", "", 0)' 6502 else 6503 gt_expression_test_code= 6504 fi 6505 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 6507$as_echo_n "checking for GNU gettext in libc... " >&6; } 6508if eval \${$gt_func_gnugettext_libc+:} false; then : 6509 $as_echo_n "(cached) " >&6 6510else 6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512/* end confdefs.h. */ 6513#include <libintl.h> 6514$gt_revision_test_code 6515extern int _nl_msg_cat_cntr; 6516extern int *_nl_domain_bindings; 6517int 6518main () 6519{ 6520bindtextdomain ("", ""); 6521return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 6522 ; 6523 return 0; 6524} 6525_ACEOF 6526if ac_fn_c_try_link "$LINENO"; then : 6527 eval "$gt_func_gnugettext_libc=yes" 6528else 6529 eval "$gt_func_gnugettext_libc=no" 6530fi 6531rm -f core conftest.err conftest.$ac_objext \ 6532 conftest$ac_exeext conftest.$ac_ext 6533fi 6534eval ac_res=\$$gt_func_gnugettext_libc 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6536$as_echo "$ac_res" >&6; } 6537 6538 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 6539 6540 6541 6542 6543 6544 am_save_CPPFLAGS="$CPPFLAGS" 6545 6546 for element in $INCICONV; do 6547 haveit= 6548 for x in $CPPFLAGS; do 6549 6550 acl_save_prefix="$prefix" 6551 prefix="$acl_final_prefix" 6552 acl_save_exec_prefix="$exec_prefix" 6553 exec_prefix="$acl_final_exec_prefix" 6554 eval x=\"$x\" 6555 exec_prefix="$acl_save_exec_prefix" 6556 prefix="$acl_save_prefix" 6557 6558 if test "X$x" = "X$element"; then 6559 haveit=yes 6560 break 6561 fi 6562 done 6563 if test -z "$haveit"; then 6564 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6565 fi 6566 done 6567 6568 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 6570$as_echo_n "checking for iconv... " >&6; } 6571if ${am_cv_func_iconv+:} false; then : 6572 $as_echo_n "(cached) " >&6 6573else 6574 6575 am_cv_func_iconv="no, consider installing GNU libiconv" 6576 am_cv_lib_iconv=no 6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6578/* end confdefs.h. */ 6579#include <stdlib.h> 6580#include <iconv.h> 6581int 6582main () 6583{ 6584iconv_t cd = iconv_open("",""); 6585 iconv(cd,NULL,NULL,NULL,NULL); 6586 iconv_close(cd); 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591if ac_fn_c_try_link "$LINENO"; then : 6592 am_cv_func_iconv=yes 6593fi 6594rm -f core conftest.err conftest.$ac_objext \ 6595 conftest$ac_exeext conftest.$ac_ext 6596 if test "$am_cv_func_iconv" != yes; then 6597 am_save_LIBS="$LIBS" 6598 LIBS="$LIBS $LIBICONV" 6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600/* end confdefs.h. */ 6601#include <stdlib.h> 6602#include <iconv.h> 6603int 6604main () 6605{ 6606iconv_t cd = iconv_open("",""); 6607 iconv(cd,NULL,NULL,NULL,NULL); 6608 iconv_close(cd); 6609 ; 6610 return 0; 6611} 6612_ACEOF 6613if ac_fn_c_try_link "$LINENO"; then : 6614 am_cv_lib_iconv=yes 6615 am_cv_func_iconv=yes 6616fi 6617rm -f core conftest.err conftest.$ac_objext \ 6618 conftest$ac_exeext conftest.$ac_ext 6619 LIBS="$am_save_LIBS" 6620 fi 6621 6622fi 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 6624$as_echo "$am_cv_func_iconv" >&6; } 6625 if test "$am_cv_func_iconv" = yes; then 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 6627$as_echo_n "checking for working iconv... " >&6; } 6628if ${am_cv_func_iconv_works+:} false; then : 6629 $as_echo_n "(cached) " >&6 6630else 6631 6632 am_save_LIBS="$LIBS" 6633 if test $am_cv_lib_iconv = yes; then 6634 LIBS="$LIBS $LIBICONV" 6635 fi 6636 if test "$cross_compiling" = yes; then : 6637 case "$host_os" in 6638 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 6639 *) am_cv_func_iconv_works="guessing yes" ;; 6640 esac 6641else 6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643/* end confdefs.h. */ 6644 6645#include <iconv.h> 6646#include <string.h> 6647int main () 6648{ 6649 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 6650 returns. */ 6651 { 6652 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 6653 if (cd_utf8_to_88591 != (iconv_t)(-1)) 6654 { 6655 static const char input[] = "\342\202\254"; /* EURO SIGN */ 6656 char buf[10]; 6657 const char *inptr = input; 6658 size_t inbytesleft = strlen (input); 6659 char *outptr = buf; 6660 size_t outbytesleft = sizeof (buf); 6661 size_t res = iconv (cd_utf8_to_88591, 6662 (char **) &inptr, &inbytesleft, 6663 &outptr, &outbytesleft); 6664 if (res == 0) 6665 return 1; 6666 } 6667 } 6668 /* Test against Solaris 10 bug: Failures are not distinguishable from 6669 successful returns. */ 6670 { 6671 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 6672 if (cd_ascii_to_88591 != (iconv_t)(-1)) 6673 { 6674 static const char input[] = "\263"; 6675 char buf[10]; 6676 const char *inptr = input; 6677 size_t inbytesleft = strlen (input); 6678 char *outptr = buf; 6679 size_t outbytesleft = sizeof (buf); 6680 size_t res = iconv (cd_ascii_to_88591, 6681 (char **) &inptr, &inbytesleft, 6682 &outptr, &outbytesleft); 6683 if (res == 0) 6684 return 1; 6685 } 6686 } 6687#if 0 /* This bug could be worked around by the caller. */ 6688 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 6689 { 6690 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 6691 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6692 { 6693 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 6694 char buf[50]; 6695 const char *inptr = input; 6696 size_t inbytesleft = strlen (input); 6697 char *outptr = buf; 6698 size_t outbytesleft = sizeof (buf); 6699 size_t res = iconv (cd_88591_to_utf8, 6700 (char **) &inptr, &inbytesleft, 6701 &outptr, &outbytesleft); 6702 if ((int)res > 0) 6703 return 1; 6704 } 6705 } 6706#endif 6707 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 6708 provided. */ 6709 if (/* Try standardized names. */ 6710 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 6711 /* Try IRIX, OSF/1 names. */ 6712 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 6713 /* Try AIX names. */ 6714 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 6715 /* Try HP-UX names. */ 6716 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 6717 return 1; 6718 return 0; 6719} 6720_ACEOF 6721if ac_fn_c_try_run "$LINENO"; then : 6722 am_cv_func_iconv_works=yes 6723else 6724 am_cv_func_iconv_works=no 6725fi 6726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6727 conftest.$ac_objext conftest.beam conftest.$ac_ext 6728fi 6729 6730 LIBS="$am_save_LIBS" 6731 6732fi 6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 6734$as_echo "$am_cv_func_iconv_works" >&6; } 6735 case "$am_cv_func_iconv_works" in 6736 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 6737 *) am_func_iconv=yes ;; 6738 esac 6739 else 6740 am_func_iconv=no am_cv_lib_iconv=no 6741 fi 6742 if test "$am_func_iconv" = yes; then 6743 6744$as_echo "#define HAVE_ICONV 1" >>confdefs.h 6745 6746 fi 6747 if test "$am_cv_lib_iconv" = yes; then 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 6749$as_echo_n "checking how to link with libiconv... " >&6; } 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 6751$as_echo "$LIBICONV" >&6; } 6752 else 6753 CPPFLAGS="$am_save_CPPFLAGS" 6754 LIBICONV= 6755 LTLIBICONV= 6756 fi 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 use_additional=yes 6769 6770 acl_save_prefix="$prefix" 6771 prefix="$acl_final_prefix" 6772 acl_save_exec_prefix="$exec_prefix" 6773 exec_prefix="$acl_final_exec_prefix" 6774 6775 eval additional_includedir=\"$includedir\" 6776 eval additional_libdir=\"$libdir\" 6777 6778 exec_prefix="$acl_save_exec_prefix" 6779 prefix="$acl_save_prefix" 6780 6781 6782# Check whether --with-libintl-prefix was given. 6783if test "${with_libintl_prefix+set}" = set; then : 6784 withval=$with_libintl_prefix; 6785 if test "X$withval" = "Xno"; then 6786 use_additional=no 6787 else 6788 if test "X$withval" = "X"; then 6789 6790 acl_save_prefix="$prefix" 6791 prefix="$acl_final_prefix" 6792 acl_save_exec_prefix="$exec_prefix" 6793 exec_prefix="$acl_final_exec_prefix" 6794 6795 eval additional_includedir=\"$includedir\" 6796 eval additional_libdir=\"$libdir\" 6797 6798 exec_prefix="$acl_save_exec_prefix" 6799 prefix="$acl_save_prefix" 6800 6801 else 6802 additional_includedir="$withval/include" 6803 additional_libdir="$withval/$acl_libdirstem" 6804 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 6805 && ! test -d "$withval/$acl_libdirstem"; then 6806 additional_libdir="$withval/$acl_libdirstem2" 6807 fi 6808 fi 6809 fi 6810 6811fi 6812 6813 LIBINTL= 6814 LTLIBINTL= 6815 INCINTL= 6816 LIBINTL_PREFIX= 6817 HAVE_LIBINTL= 6818 rpathdirs= 6819 ltrpathdirs= 6820 names_already_handled= 6821 names_next_round='intl ' 6822 while test -n "$names_next_round"; do 6823 names_this_round="$names_next_round" 6824 names_next_round= 6825 for name in $names_this_round; do 6826 already_handled= 6827 for n in $names_already_handled; do 6828 if test "$n" = "$name"; then 6829 already_handled=yes 6830 break 6831 fi 6832 done 6833 if test -z "$already_handled"; then 6834 names_already_handled="$names_already_handled $name" 6835 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6836 eval value=\"\$HAVE_LIB$uppername\" 6837 if test -n "$value"; then 6838 if test "$value" = yes; then 6839 eval value=\"\$LIB$uppername\" 6840 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 6841 eval value=\"\$LTLIB$uppername\" 6842 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 6843 else 6844 : 6845 fi 6846 else 6847 found_dir= 6848 found_la= 6849 found_so= 6850 found_a= 6851 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 6852 if test -n "$acl_shlibext"; then 6853 shrext=".$acl_shlibext" # typically: shrext=.so 6854 else 6855 shrext= 6856 fi 6857 if test $use_additional = yes; then 6858 dir="$additional_libdir" 6859 if test -n "$acl_shlibext"; then 6860 if test -f "$dir/$libname$shrext"; then 6861 found_dir="$dir" 6862 found_so="$dir/$libname$shrext" 6863 else 6864 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 6865 ver=`(cd "$dir" && \ 6866 for f in "$libname$shrext".*; do echo "$f"; done \ 6867 | sed -e "s,^$libname$shrext\\\\.,," \ 6868 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 6869 | sed 1q ) 2>/dev/null` 6870 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 6871 found_dir="$dir" 6872 found_so="$dir/$libname$shrext.$ver" 6873 fi 6874 else 6875 eval library_names=\"$acl_library_names_spec\" 6876 for f in $library_names; do 6877 if test -f "$dir/$f"; then 6878 found_dir="$dir" 6879 found_so="$dir/$f" 6880 break 6881 fi 6882 done 6883 fi 6884 fi 6885 fi 6886 if test "X$found_dir" = "X"; then 6887 if test -f "$dir/$libname.$acl_libext"; then 6888 found_dir="$dir" 6889 found_a="$dir/$libname.$acl_libext" 6890 fi 6891 fi 6892 if test "X$found_dir" != "X"; then 6893 if test -f "$dir/$libname.la"; then 6894 found_la="$dir/$libname.la" 6895 fi 6896 fi 6897 fi 6898 if test "X$found_dir" = "X"; then 6899 for x in $LDFLAGS $LTLIBINTL; do 6900 6901 acl_save_prefix="$prefix" 6902 prefix="$acl_final_prefix" 6903 acl_save_exec_prefix="$exec_prefix" 6904 exec_prefix="$acl_final_exec_prefix" 6905 eval x=\"$x\" 6906 exec_prefix="$acl_save_exec_prefix" 6907 prefix="$acl_save_prefix" 6908 6909 case "$x" in 6910 -L*) 6911 dir=`echo "X$x" | sed -e 's/^X-L//'` 6912 if test -n "$acl_shlibext"; then 6913 if test -f "$dir/$libname$shrext"; then 6914 found_dir="$dir" 6915 found_so="$dir/$libname$shrext" 6916 else 6917 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 6918 ver=`(cd "$dir" && \ 6919 for f in "$libname$shrext".*; do echo "$f"; done \ 6920 | sed -e "s,^$libname$shrext\\\\.,," \ 6921 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 6922 | sed 1q ) 2>/dev/null` 6923 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 6924 found_dir="$dir" 6925 found_so="$dir/$libname$shrext.$ver" 6926 fi 6927 else 6928 eval library_names=\"$acl_library_names_spec\" 6929 for f in $library_names; do 6930 if test -f "$dir/$f"; then 6931 found_dir="$dir" 6932 found_so="$dir/$f" 6933 break 6934 fi 6935 done 6936 fi 6937 fi 6938 fi 6939 if test "X$found_dir" = "X"; then 6940 if test -f "$dir/$libname.$acl_libext"; then 6941 found_dir="$dir" 6942 found_a="$dir/$libname.$acl_libext" 6943 fi 6944 fi 6945 if test "X$found_dir" != "X"; then 6946 if test -f "$dir/$libname.la"; then 6947 found_la="$dir/$libname.la" 6948 fi 6949 fi 6950 ;; 6951 esac 6952 if test "X$found_dir" != "X"; then 6953 break 6954 fi 6955 done 6956 fi 6957 if test "X$found_dir" != "X"; then 6958 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 6959 if test "X$found_so" != "X"; then 6960 if test "$enable_rpath" = no \ 6961 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 6962 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 6963 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6964 else 6965 haveit= 6966 for x in $ltrpathdirs; do 6967 if test "X$x" = "X$found_dir"; then 6968 haveit=yes 6969 break 6970 fi 6971 done 6972 if test -z "$haveit"; then 6973 ltrpathdirs="$ltrpathdirs $found_dir" 6974 fi 6975 if test "$acl_hardcode_direct" = yes; then 6976 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6977 else 6978 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 6979 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6980 haveit= 6981 for x in $rpathdirs; do 6982 if test "X$x" = "X$found_dir"; then 6983 haveit=yes 6984 break 6985 fi 6986 done 6987 if test -z "$haveit"; then 6988 rpathdirs="$rpathdirs $found_dir" 6989 fi 6990 else 6991 haveit= 6992 for x in $LDFLAGS $LIBINTL; do 6993 6994 acl_save_prefix="$prefix" 6995 prefix="$acl_final_prefix" 6996 acl_save_exec_prefix="$exec_prefix" 6997 exec_prefix="$acl_final_exec_prefix" 6998 eval x=\"$x\" 6999 exec_prefix="$acl_save_exec_prefix" 7000 prefix="$acl_save_prefix" 7001 7002 if test "X$x" = "X-L$found_dir"; then 7003 haveit=yes 7004 break 7005 fi 7006 done 7007 if test -z "$haveit"; then 7008 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 7009 fi 7010 if test "$acl_hardcode_minus_L" != no; then 7011 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7012 else 7013 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7014 fi 7015 fi 7016 fi 7017 fi 7018 else 7019 if test "X$found_a" != "X"; then 7020 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 7021 else 7022 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 7023 fi 7024 fi 7025 additional_includedir= 7026 case "$found_dir" in 7027 */$acl_libdirstem | */$acl_libdirstem/) 7028 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7029 if test "$name" = 'intl'; then 7030 LIBINTL_PREFIX="$basedir" 7031 fi 7032 additional_includedir="$basedir/include" 7033 ;; 7034 */$acl_libdirstem2 | */$acl_libdirstem2/) 7035 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 7036 if test "$name" = 'intl'; then 7037 LIBINTL_PREFIX="$basedir" 7038 fi 7039 additional_includedir="$basedir/include" 7040 ;; 7041 esac 7042 if test "X$additional_includedir" != "X"; then 7043 if test "X$additional_includedir" != "X/usr/include"; then 7044 haveit= 7045 if test "X$additional_includedir" = "X/usr/local/include"; then 7046 if test -n "$GCC"; then 7047 case $host_os in 7048 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7049 esac 7050 fi 7051 fi 7052 if test -z "$haveit"; then 7053 for x in $CPPFLAGS $INCINTL; do 7054 7055 acl_save_prefix="$prefix" 7056 prefix="$acl_final_prefix" 7057 acl_save_exec_prefix="$exec_prefix" 7058 exec_prefix="$acl_final_exec_prefix" 7059 eval x=\"$x\" 7060 exec_prefix="$acl_save_exec_prefix" 7061 prefix="$acl_save_prefix" 7062 7063 if test "X$x" = "X-I$additional_includedir"; then 7064 haveit=yes 7065 break 7066 fi 7067 done 7068 if test -z "$haveit"; then 7069 if test -d "$additional_includedir"; then 7070 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 7071 fi 7072 fi 7073 fi 7074 fi 7075 fi 7076 if test -n "$found_la"; then 7077 save_libdir="$libdir" 7078 case "$found_la" in 7079 */* | *\\*) . "$found_la" ;; 7080 *) . "./$found_la" ;; 7081 esac 7082 libdir="$save_libdir" 7083 for dep in $dependency_libs; do 7084 case "$dep" in 7085 -L*) 7086 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7087 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 7088 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 7089 haveit= 7090 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 7091 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 7092 if test -n "$GCC"; then 7093 case $host_os in 7094 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7095 esac 7096 fi 7097 fi 7098 if test -z "$haveit"; then 7099 haveit= 7100 for x in $LDFLAGS $LIBINTL; do 7101 7102 acl_save_prefix="$prefix" 7103 prefix="$acl_final_prefix" 7104 acl_save_exec_prefix="$exec_prefix" 7105 exec_prefix="$acl_final_exec_prefix" 7106 eval x=\"$x\" 7107 exec_prefix="$acl_save_exec_prefix" 7108 prefix="$acl_save_prefix" 7109 7110 if test "X$x" = "X-L$additional_libdir"; then 7111 haveit=yes 7112 break 7113 fi 7114 done 7115 if test -z "$haveit"; then 7116 if test -d "$additional_libdir"; then 7117 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 7118 fi 7119 fi 7120 haveit= 7121 for x in $LDFLAGS $LTLIBINTL; do 7122 7123 acl_save_prefix="$prefix" 7124 prefix="$acl_final_prefix" 7125 acl_save_exec_prefix="$exec_prefix" 7126 exec_prefix="$acl_final_exec_prefix" 7127 eval x=\"$x\" 7128 exec_prefix="$acl_save_exec_prefix" 7129 prefix="$acl_save_prefix" 7130 7131 if test "X$x" = "X-L$additional_libdir"; then 7132 haveit=yes 7133 break 7134 fi 7135 done 7136 if test -z "$haveit"; then 7137 if test -d "$additional_libdir"; then 7138 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 7139 fi 7140 fi 7141 fi 7142 fi 7143 ;; 7144 -R*) 7145 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7146 if test "$enable_rpath" != no; then 7147 haveit= 7148 for x in $rpathdirs; do 7149 if test "X$x" = "X$dir"; then 7150 haveit=yes 7151 break 7152 fi 7153 done 7154 if test -z "$haveit"; then 7155 rpathdirs="$rpathdirs $dir" 7156 fi 7157 haveit= 7158 for x in $ltrpathdirs; do 7159 if test "X$x" = "X$dir"; then 7160 haveit=yes 7161 break 7162 fi 7163 done 7164 if test -z "$haveit"; then 7165 ltrpathdirs="$ltrpathdirs $dir" 7166 fi 7167 fi 7168 ;; 7169 -l*) 7170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7171 ;; 7172 *.la) 7173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7174 ;; 7175 *) 7176 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 7177 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 7178 ;; 7179 esac 7180 done 7181 fi 7182 else 7183 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 7185 fi 7186 fi 7187 fi 7188 done 7189 done 7190 if test "X$rpathdirs" != "X"; then 7191 if test -n "$acl_hardcode_libdir_separator"; then 7192 alldirs= 7193 for found_dir in $rpathdirs; do 7194 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 7195 done 7196 acl_save_libdir="$libdir" 7197 libdir="$alldirs" 7198 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7199 libdir="$acl_save_libdir" 7200 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7201 else 7202 for found_dir in $rpathdirs; do 7203 acl_save_libdir="$libdir" 7204 libdir="$found_dir" 7205 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7206 libdir="$acl_save_libdir" 7207 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7208 done 7209 fi 7210 fi 7211 if test "X$ltrpathdirs" != "X"; then 7212 for found_dir in $ltrpathdirs; do 7213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 7214 done 7215 fi 7216 7217 7218 7219 7220 7221 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 7223$as_echo_n "checking for GNU gettext in libintl... " >&6; } 7224if eval \${$gt_func_gnugettext_libintl+:} false; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 gt_save_CPPFLAGS="$CPPFLAGS" 7228 CPPFLAGS="$CPPFLAGS $INCINTL" 7229 gt_save_LIBS="$LIBS" 7230 LIBS="$LIBS $LIBINTL" 7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7232/* end confdefs.h. */ 7233#include <libintl.h> 7234$gt_revision_test_code 7235extern int _nl_msg_cat_cntr; 7236extern 7237#ifdef __cplusplus 7238"C" 7239#endif 7240const char *_nl_expand_alias (const char *); 7241int 7242main () 7243{ 7244bindtextdomain ("", ""); 7245return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 7246 ; 7247 return 0; 7248} 7249_ACEOF 7250if ac_fn_c_try_link "$LINENO"; then : 7251 eval "$gt_func_gnugettext_libintl=yes" 7252else 7253 eval "$gt_func_gnugettext_libintl=no" 7254fi 7255rm -f core conftest.err conftest.$ac_objext \ 7256 conftest$ac_exeext conftest.$ac_ext 7257 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 7258 LIBS="$LIBS $LIBICONV" 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260/* end confdefs.h. */ 7261#include <libintl.h> 7262$gt_revision_test_code 7263extern int _nl_msg_cat_cntr; 7264extern 7265#ifdef __cplusplus 7266"C" 7267#endif 7268const char *_nl_expand_alias (const char *); 7269int 7270main () 7271{ 7272bindtextdomain ("", ""); 7273return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 7274 ; 7275 return 0; 7276} 7277_ACEOF 7278if ac_fn_c_try_link "$LINENO"; then : 7279 LIBINTL="$LIBINTL $LIBICONV" 7280 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 7281 eval "$gt_func_gnugettext_libintl=yes" 7282 7283fi 7284rm -f core conftest.err conftest.$ac_objext \ 7285 conftest$ac_exeext conftest.$ac_ext 7286 fi 7287 CPPFLAGS="$gt_save_CPPFLAGS" 7288 LIBS="$gt_save_LIBS" 7289fi 7290eval ac_res=\$$gt_func_gnugettext_libintl 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7292$as_echo "$ac_res" >&6; } 7293 fi 7294 7295 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 7296 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 7297 && test "$PACKAGE" != gettext-runtime \ 7298 && test "$PACKAGE" != gettext-tools; }; then 7299 gt_use_preinstalled_gnugettext=yes 7300 else 7301 LIBINTL= 7302 LTLIBINTL= 7303 INCINTL= 7304 fi 7305 7306 7307 7308 if test -n "$INTL_MACOSX_LIBS"; then 7309 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7310 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7311 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 7312 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 7313 fi 7314 fi 7315 7316 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7317 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7318 7319$as_echo "#define ENABLE_NLS 1" >>confdefs.h 7320 7321 else 7322 USE_NLS=no 7323 fi 7324 fi 7325 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 7327$as_echo_n "checking whether to use NLS... " >&6; } 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 7329$as_echo "$USE_NLS" >&6; } 7330 if test "$USE_NLS" = "yes"; then 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 7332$as_echo_n "checking where the gettext function comes from... " >&6; } 7333 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7334 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7335 gt_source="external libintl" 7336 else 7337 gt_source="libc" 7338 fi 7339 else 7340 gt_source="included intl directory" 7341 fi 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 7343$as_echo "$gt_source" >&6; } 7344 fi 7345 7346 if test "$USE_NLS" = "yes"; then 7347 7348 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7349 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 7351$as_echo_n "checking how to link with libintl... " >&6; } 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 7353$as_echo "$LIBINTL" >&6; } 7354 7355 for element in $INCINTL; do 7356 haveit= 7357 for x in $CPPFLAGS; do 7358 7359 acl_save_prefix="$prefix" 7360 prefix="$acl_final_prefix" 7361 acl_save_exec_prefix="$exec_prefix" 7362 exec_prefix="$acl_final_exec_prefix" 7363 eval x=\"$x\" 7364 exec_prefix="$acl_save_exec_prefix" 7365 prefix="$acl_save_prefix" 7366 7367 if test "X$x" = "X$element"; then 7368 haveit=yes 7369 break 7370 fi 7371 done 7372 if test -z "$haveit"; then 7373 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7374 fi 7375 done 7376 7377 fi 7378 7379 7380$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 7381 7382 7383$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 7384 7385 fi 7386 7387 POSUB=po 7388 fi 7389 7390 7391 7392 INTLLIBS="$LIBINTL" 7393 7394 7395 7396 7397 7398 7399fi 7400 7401NLSTARGET="" 7402if test x"$USE_NLS" = xyes; then 7403 NLSTARGET="po" 7404fi 7405 7406 7407 7408 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if color escape sequence for kterm/pxvt is enabled" >&5 7410$as_echo_n "checking if color escape sequence for kterm/pxvt is enabled... " >&6; } 7411# Check whether --enable-color was given. 7412if test "${enable_color+set}" = set; then : 7413 enableval=$enable_color; 7414else 7415 enable_color="yes" 7416fi 7417 7418test x"$enable_color" = xyes && $as_echo "#define USE_COLOR 1" >>confdefs.h 7419 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_color" >&5 7421$as_echo "$enable_color" >&6; } 7422 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ANSI color escape sequence support is enabled" >&5 7424$as_echo_n "checking if ANSI color escape sequence support is enabled... " >&6; } 7425# Check whether --enable-ansi_color was given. 7426if test "${enable_ansi_color+set}" = set; then : 7427 enableval=$enable_ansi_color; 7428else 7429 enable_ansi_color="$enable_color" 7430fi 7431 7432 test x"$enable_ansi_color" = xyes && $as_echo "#define USE_ANSI_COLOR 1" >>confdefs.h 7433 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ansi_color" >&5 7435$as_echo "$enable_ansi_color" >&6; } 7436 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if background color support is enabled" >&5 7438$as_echo_n "checking if background color support is enabled... " >&6; } 7439# Check whether --enable-bgcolor was given. 7440if test "${enable_bgcolor+set}" = set; then : 7441 enableval=$enable_bgcolor; 7442else 7443 enable_bgcolor="$enable_color" 7444fi 7445 7446 test x"$enable_bgcolor" = xyes && $as_echo "#define USE_BG_COLOR 1" >>confdefs.h 7447 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bgcolor" >&5 7449$as_echo "$enable_bgcolor" >&6; } 7450 7451 7452 7453 7454 7455 7456 7457 7458 INSTALL_W3MIMGDISPLAY='${INSTALL_PROGRAM}' 7459 $as_echo "#define INSTALL_W3MIMGDISPLAY \$INSTALL_W3MIMGDISPLAY" >>confdefs.h 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if image is enabled" >&5 7474$as_echo_n "checking if image is enabled... " >&6; } 7475 # Check whether --enable-image was given. 7476if test "${enable_image+set}" = set; then : 7477 enableval=$enable_image; 7478else 7479 enable_image="yes" 7480fi 7481 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_image" >&5 7483$as_echo "$enable_image" >&6; } 7484 if test x"$enable_image" != xno; then 7485 IMGOBJS=w3mimg.o 7486 if test x"$enable_image" = xyes; then 7487 enable_image=x11 7488 case "`uname -s`" in 7489 Linux|linux|LINUX|FreeBSD|freebsd|FREEBSD) 7490 if test -c /dev/fb0; then 7491 enable_image=x11,fb 7492 fi;; 7493 CYGWIN*) 7494 enable_image=x11,win;; 7495 esac 7496 fi 7497 save_ifs="$IFS"; IFS=","; 7498 set x $enable_image; shift 7499 IFS="$save_ifs" 7500 for img in "$@"; do 7501 case $img in 7502 x11) x11=yes;; 7503 fb) fb=yes;; 7504 fb+s) fb=yes 7505 $as_echo "#define W3MIMGDISPLAY_SETUID 1" >>confdefs.h 7506 7507 INSTALL_W3MIMGDISPLAY='${INSTALL} -o root -m 4755 -s' 7508 $as_echo "#define INSTALL_W3MIMGDISPLAY \$INSTALL_W3MIMGDISPLAY" >>confdefs.h 7509;; 7510 win) win=yes;; 7511 esac 7512 done 7513 enable_image=yes 7514 $as_echo "#define USE_IMAGE 1" >>confdefs.h 7515 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking image library" >&5 7517$as_echo_n "checking image library... " >&6; } 7518 7519# Check whether --with-imagelib was given. 7520if test "${with_imagelib+set}" = set; then : 7521 withval=$with_imagelib; 7522else 7523 with_imagelib="yes" 7524fi 7525 7526 if test x"$with_imagelib" = xyes; then 7527 with_imagelib="gtk2 gdk-pixbuf imlib imlib2" 7528 fi 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_imagelib" >&5 7530$as_echo "$with_imagelib" >&6; } 7531 with_imlib=no 7532 with_imlib2=no 7533 with_gdkpixbuf=no 7534 with_gtk2=no 7535 for imagelib in $with_imagelib 7536 do 7537 case "$imagelib" in 7538 imlib) 7539 with_imlib="yes" 7540 if test x"$IMLIB_CONFIG" = x; then 7541 IMLIB_CONFIG=imlib-config 7542 fi;; 7543 imlib2) 7544 with_imlib2="yes" 7545 if test x"$PKG_CONFIG" = x; then 7546 PKG_CONFIG=pkg-config 7547 fi 7548 if test x"$IMLIB2_CONFIG" = x; then 7549 IMLIB2_CONFIG=imlib2-config 7550 fi;; 7551 gdk-pixbuf) 7552 with_gdkpixbuf="yes" 7553 if test x"$GDKPIXBUF_CONFIG" = x; then 7554 GDKPIXBUF_CONFIG=gdk-pixbuf-config 7555 fi;; 7556 gtk2) 7557 with_gtk2="yes" 7558 if test x"$PKG_CONFIG" = x; then 7559 PKG_CONFIG=pkg-config 7560 fi;; 7561 esac 7562 done 7563 IMGTARGETS="" 7564 IMGLINK='$(CC)' 7565 if test x"$with_gtk2" = xyes; then 7566 version="`$PKG_CONFIG --modversion gdk-pixbuf-2.0 2>/dev/null`" 7567 if test x"$version" != x; then 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5 7569$as_echo_n "checking GdkPixbuf version... " >&6; } 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5 7571$as_echo "$version" >&6; } 7572 set -- `echo "$version" | sed 's/[^0-9]/ /g'` 7573 if test "$1" -ne "2" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "0"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&5 7575$as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&2;} 7576 have_gdkpixbuf="no"; have_gtk2="no" 7577 else 7578 have_gdkpixbuf="yes"; have_gtk2="yes" 7579 fi 7580 else 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&5 7582$as_echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&2;} 7583 have_gdkpixbuf="no"; have_gtk2="no" 7584 fi 7585 fi 7586 if test x"$with_gdkpixbuf" = xyes; then 7587 if test x"$have_gdkpixbuf" != xyes; then 7588 version="`$GDKPIXBUF_CONFIG --version 2>/dev/null`" 7589 if test x"$version" != x; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5 7591$as_echo_n "checking GdkPixbuf version... " >&6; } 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5 7593$as_echo "$version" >&6; } 7594 set -- `echo "$version" | sed 's/[^0-9]/ /g'` 7595 if test "$1" -ne "0" -o "$2" -lt "16" || test "$2" -eq "16" -a "$3" -lt "0"; then 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&5 7597$as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&2;} 7598 have_gdkpixbuf="no" 7599 else 7600 have_gdkpixbuf="yes" 7601 fi 7602 else 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&5 7604$as_echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 0.16.0)" >&2;} 7605 have_gdkpixbuf="no" 7606 fi 7607 fi 7608 fi 7609 if test x"$with_imlib" = xyes; then 7610 version="`$IMLIB_CONFIG --version 2>/dev/null`" 7611 if test x"$version" != x; then 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib version" >&5 7613$as_echo_n "checking Imlib version... " >&6; } 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5 7615$as_echo "$version" >&6; } 7616 set -- `echo "$version" | sed 's/[^0-9]/ /g'` 7617 if test "$1" -ne "1" -o "$2" -lt "9" || test "$2" -eq "9" -a "$3" -lt "8"; then 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&5 7619$as_echo "$as_me: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&2;} 7620 have_imlib="no" 7621 else 7622 have_imlib="yes" 7623 fi 7624 else 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&5 7626$as_echo "$as_me: WARNING: Imlib is not installed. Install Imlib (version >= 1.9.8)" >&2;} 7627 have_imlib="no" 7628 fi 7629 fi 7630 if test x"$with_imlib2" = xyes; then 7631 version="`$IMLIB2_CONFIG --version 2>/dev/null`" 7632 if test x"$version" != x; then 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib2 version" >&5 7634$as_echo_n "checking Imlib2 version... " >&6; } 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5 7636$as_echo "$version" >&6; } 7637 set -- `echo "$version" | sed 's/[^0-9]/ /g'` 7638 if test "$1" -ne "1" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "5"; then 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&5 7640$as_echo "$as_me: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&2;} 7641 have_imlib2="no" 7642 else 7643 have_imlib2="yes" 7644 fi 7645 else 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&5 7647$as_echo "$as_me: WARNING: Imlib2 is not installed. Install Imlib2 (version >= 1.0.5)" >&2;} 7648 have_imlib2="no" 7649 fi 7650 fi 7651 if test x"$x11" = xyes; then 7652 if test x"$have_imlib2" = xyes; then 7653 $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h 7654 7655 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o" 7656 IMGTARGETS="x11" 7657 $as_echo "#define USE_IMLIB2 1" >>confdefs.h 7658 7659 IMGX11CFLAGS="`${IMLIB2_CONFIG} --cflags`" 7660 IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs imlib2`" 7661 elif test x"$have_gtk2" = xyes; then 7662 $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h 7663 7664 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o" 7665 IMGTARGETS="x11" 7666 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h 7667 7668 $as_echo "#define USE_GTK2 1" >>confdefs.h 7669 7670 IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0`" 7671 IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0`" 7672 elif test x"$have_gdkpixbuf" = xyes; then 7673 $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h 7674 7675 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o" 7676 IMGTARGETS="x11" 7677 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h 7678 7679 IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`" 7680 IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib" 7681 elif test x"$have_imlib" = xyes; then 7682 $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h 7683 7684 IMGOBJS="$IMGOBJS x11/x11_w3mimg.o" 7685 IMGTARGETS="x11" 7686 $as_echo "#define USE_IMLIB 1" >>confdefs.h 7687 7688 IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`" 7689 IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`" 7690 IMGTARGETS="x11" 7691 else 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with X11 support" >&5 7693$as_echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;} 7694 fi 7695 fi 7696 if test x"$fb" = xyes; then 7697 if test x"$have_imlib2" = xyes; then 7698 $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h 7699 7700 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" 7701 IMGTARGETS="${IMGTARGETS} fb" 7702 $as_echo "#define USE_IMLIB2 1" >>confdefs.h 7703 7704 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" 7705 IMGFBCFLAGS="`${IMLIB2_CONFIG} --cflags`" 7706 IMGFBLDFLAGS="`${PKG_CONFIG} --libs imlib2`" 7707 elif test x"$have_gtk2" = xyes; then 7708 $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h 7709 7710 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" 7711 IMGTARGETS="${IMGTARGETS} fb" 7712 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h 7713 7714 $as_echo "#define USE_GTK2 1" >>confdefs.h 7715 7716 IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0`" 7717 IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0`" 7718 elif test x"$have_gdkpixbuf" = xyes; then 7719 $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h 7720 7721 IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" 7722 IMGTARGETS="${IMGTARGETS} fb" 7723 $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h 7724 7725 IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`" 7726 IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`" 7727 else 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with FB support" >&5 7729$as_echo "$as_me: WARNING: unable to build w3mimgdisplay with FB support" >&2;} 7730 fi 7731 fi 7732 if test x"$win" = xyes; then 7733 $as_echo "#define USE_W3MIMG_WIN 1" >>confdefs.h 7734 7735 IMGOBJS="$IMGOBJS win/win_w3mimg.o" 7736 IMGTARGETS="${IMGTARGETS} win" 7737 IMGWINCFLAGS="-I/usr/include/w32api" 7738 IMGWINLDFLAGS="-lgdiplus -lgdi32 -luser32" 7739 IMGLINK='$(CXX)' 7740 fi 7741 $as_echo "#define IMGTARGETS \"\$IMGTARGETS\"" >>confdefs.h 7742 7743 $as_echo "#define IMGOBJS \"\$IMGOBJS\"" >>confdefs.h 7744 7745 $as_echo "#define IMGX11CFLAGS \"\$IMGX11CFLAGS\"" >>confdefs.h 7746 7747 $as_echo "#define IMGX11LDFLAGS \"\$IMGX11LDFLAGS\"" >>confdefs.h 7748 7749 $as_echo "#define IMGFBCFLAGS \"\$IMGFBCFLAGS\"" >>confdefs.h 7750 7751 $as_echo "#define IMGFBLDFLAGS \"\$IMGFBLDFLAGS\"" >>confdefs.h 7752 7753 $as_echo "#define IMGLINK \"\$IMGLINK\"" >>confdefs.h 7754 7755 $as_echo "#define IMGWINCFLAGS \"\$IMGWINCFLAGS\"" >>confdefs.h 7756 7757 $as_echo "#define IMGWINLDFLAGS \"\$IMGWINLDFLAGS\"" >>confdefs.h 7758 7759 fi 7760if test x"$enable_image" != xno; then 7761 AUXBIN_TARGETS="$AUXBIN_TARGETS w3mimgdisplay\$(EXT)" 7762 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X-Face is enabled" >&5 7764$as_echo_n "checking if X-Face is enabled... " >&6; } 7765 # Check whether --enable-xface was given. 7766if test "${enable_xface+set}" = set; then : 7767 enableval=$enable_xface; 7768else 7769 enable_xface="$enable_image" 7770fi 7771 7772 test x"$enable_xface" = xyes && $as_echo "#define USE_XFACE 1" >>confdefs.h 7773 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xface" >&5 7775$as_echo "$enable_xface" >&6; } 7776 # Extract the first word of "uncompface", so it can be a program name with args. 7777set dummy uncompface; ac_word=$2 7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7779$as_echo_n "checking for $ac_word... " >&6; } 7780if ${ac_cv_prog_uncompface+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 if test -n "$uncompface"; then 7784 ac_cv_prog_uncompface="$uncompface" # Let the user override the test. 7785else 7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7787for as_dir in $PATH 7788do 7789 IFS=$as_save_IFS 7790 test -z "$as_dir" && as_dir=. 7791 for ac_exec_ext in '' $ac_executable_extensions; do 7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7793 ac_cv_prog_uncompface=""yes"" 7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7795 break 2 7796 fi 7797done 7798 done 7799IFS=$as_save_IFS 7800 7801 test -z "$ac_cv_prog_uncompface" && ac_cv_prog_uncompface=""no"" 7802fi 7803fi 7804uncompface=$ac_cv_prog_uncompface 7805if test -n "$uncompface"; then 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uncompface" >&5 7807$as_echo "$uncompface" >&6; } 7808else 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810$as_echo "no" >&6; } 7811fi 7812 7813 7814 test "$uncompface" = "no" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uncompface is not installed." >&5 7815$as_echo "$as_me: WARNING: uncompface is not installed." >&2;} 7816 7817fi 7818 7819 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default keymap" >&5 7821$as_echo_n "checking default keymap... " >&6; } 7822 # Check whether --enable-keymap was given. 7823if test "${enable_keymap+set}" = set; then : 7824 enableval=$enable_keymap; 7825else 7826 enable_keymap="w3m" 7827fi 7828 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_keymap" >&5 7830$as_echo "$enable_keymap" >&6; } 7831 case x"$enable_keymap" in 7832 xw3m) 7833 KEYMAP_FILE="keybind";; 7834 xlynx) 7835 KEYMAP_FILE="keybind_lynx";; 7836 *) 7837 as_fn_error $? "keymap should be either w3m or lynx." "$LINENO" 5;; 7838 esac 7839 7840 HELP_FILE=w3mhelp-${enable_keymap}_$w3m_lang.html 7841 cat >>confdefs.h <<_ACEOF 7842#define HELP_FILE "$HELP_FILE" 7843_ACEOF 7844 7845 7846 cat >>confdefs.h <<_ACEOF 7847#define KEYBIND $enable_keymap 7848_ACEOF 7849 7850 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if popup menu is enabled" >&5 7852$as_echo_n "checking if popup menu is enabled... " >&6; } 7853# Check whether --enable-menu was given. 7854if test "${enable_menu+set}" = set; then : 7855 enableval=$enable_menu; 7856else 7857 enable_menu="yes" 7858fi 7859 7860 test x"$enable_menu" = xyes && $as_echo "#define USE_MENU 1" >>confdefs.h 7861 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_menu" >&5 7863$as_echo "$enable_menu" >&6; } 7864 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mouse operation enabled" >&5 7866$as_echo_n "checking if mouse operation enabled... " >&6; } 7867# Check whether --enable-mouse was given. 7868if test "${enable_mouse+set}" = set; then : 7869 enableval=$enable_mouse; 7870else 7871 enable_mouse="yes" 7872fi 7873 7874test x"$enable_mouse" = xyes && $as_echo "#define USE_MOUSE 1" >>confdefs.h 7875 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mouse" >&5 7877$as_echo "$enable_mouse" >&6; } 7878 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if URL history is enabled" >&5 7880$as_echo_n "checking if URL history is enabled... " >&6; } 7881# Check whether --enable-history was given. 7882if test "${enable_history+set}" = set; then : 7883 enableval=$enable_history; 7884else 7885 enable_history="yes" 7886fi 7887 7888 test x"$enable_history" = xyes && $as_echo "#define USE_HISTORY 1" >>confdefs.h 7889 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_history" >&5 7891$as_echo "$enable_history" >&6; } 7892 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is enabled" >&5 7894$as_echo_n "checking if alarm is enabled... " >&6; } 7895 # Check whether --enable-alarm was given. 7896if test "${enable_alarm+set}" = set; then : 7897 enableval=$enable_alarm; 7898else 7899 enable_alarm="yes" 7900fi 7901 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alarm" >&5 7903$as_echo "$enable_alarm" >&6; } 7904 if test x"$enable_alarm" = xyes; then 7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7906/* end confdefs.h. */ 7907#include <unistd.h> 7908#include <signal.h> 7909int 7910main () 7911{ 7912int sa = SIGALRM; 7913 void (*a) = alarm; 7914 ; 7915 return 0; 7916} 7917_ACEOF 7918if ac_fn_c_try_compile "$LINENO"; then : 7919 $as_echo "#define USE_ALARM 1" >>confdefs.h 7920 7921fi 7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7923 fi 7924 7925 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if cookie is enabled" >&5 7927$as_echo_n "checking if cookie is enabled... " >&6; } 7928# Check whether --enable-cookie was given. 7929if test "${enable_cookie+set}" = set; then : 7930 enableval=$enable_cookie; 7931else 7932 enable_cookie="yes" 7933fi 7934 7935test x"$enable_cookie" = xyes && $as_echo "#define USE_COOKIE 1" >>confdefs.h 7936 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cookie" >&5 7938$as_echo "$enable_cookie" >&6; } 7939 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nntp is enabled" >&5 7941$as_echo_n "checking if nntp is enabled... " >&6; } 7942 # Check whether --enable-nntp was given. 7943if test "${enable_nntp+set}" = set; then : 7944 enableval=$enable_nntp; 7945else 7946 enable_nntp="yes" 7947fi 7948 7949 test x"$enable_nntp" = xyes && $as_echo "#define USE_NNTP 1" >>confdefs.h 7950 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nntp" >&5 7952$as_echo "$enable_nntp" >&6; } 7953 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Gopher is enabled" >&5 7955$as_echo_n "checking if Gopher is enabled... " >&6; } 7956 # Check whether --enable-gopher was given. 7957if test "${enable_gopher+set}" = set; then : 7958 enableval=$enable_gopher; 7959else 7960 enable_gopher="yes" 7961fi 7962 7963 test x"$enable_gopher" = xyes && $as_echo "#define USE_GOPHER 1" >>confdefs.h 7964 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gopher" >&5 7966$as_echo "$enable_gopher" >&6; } 7967 7968 7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dictionary lookup is enabled" >&5 7970$as_echo_n "checking if dictionary lookup is enabled... " >&6; } 7971# Check whether --enable-dict was given. 7972if test "${enable_dict+set}" = set; then : 7973 enableval=$enable_dict; 7974else 7975 enable_dict="yes" 7976fi 7977 7978 test x"$enable_dict" = xyes && $as_echo "#define USE_DICT 1" >>confdefs.h 7979 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dict" >&5 7981$as_echo "$enable_dict" >&6; } 7982 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if help cgi is enabled" >&5 7984$as_echo_n "checking if help cgi is enabled... " >&6; } 7985 # Check whether --enable-help_cgi was given. 7986if test "${enable_help_cgi+set}" = set; then : 7987 enableval=$enable_help_cgi; 7988else 7989 enable_help_cgi="yes" 7990fi 7991 7992 test x"$enable_help_cgi" = xyes && $as_echo "#define USE_HELP_CGI 1" >>confdefs.h 7993 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_help_cgi" >&5 7995$as_echo "$enable_help_cgi" >&6; } 7996 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external URI loader is enabled" >&5 7998$as_echo_n "checking if external URI loader is enabled... " >&6; } 7999 # Check whether --enable-external_uri_loader was given. 8000if test "${enable_external_uri_loader+set}" = set; then : 8001 enableval=$enable_external_uri_loader; 8002else 8003 enable_external_uri_loader="yes" 8004fi 8005 8006 test x"$enable_external_uri_loader" = xyes && $as_echo "#define USE_EXTERNAL_URI_LOADER 1" >>confdefs.h 8007 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_external_uri_loader" >&5 8009$as_echo "$enable_external_uri_loader" >&6; } 8010 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if w3mmail is used" >&5 8012$as_echo_n "checking if w3mmail is used... " >&6; } 8013 # Check whether --enable-w3mmailer was given. 8014if test "${enable_w3mmailer+set}" = set; then : 8015 enableval=$enable_w3mmailer; 8016else 8017 enable_w3mmailer="$enable_external_uri_loader" 8018fi 8019 8020 test x"$enable_external_uri_loader" = xno && enable_w3mmailer=no 8021 test x"$enable_w3mmailer" = xyes && $as_echo "#define USE_W3MMAILER 1" >>confdefs.h 8022 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_w3mmailer" >&5 8024$as_echo "$enable_w3mmailer" >&6; } 8025 8026 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if migemo is supported with" >&5 8028$as_echo_n "checking if migemo is supported with... " >&6; } 8029 8030# Check whether --with-migemo was given. 8031if test "${with_migemo+set}" = set; then : 8032 withval=$with_migemo; test x"$with_migemo" = xyes || migemo_command="$with_migemo" 8033else 8034 migemo_command=no 8035fi 8036 8037 if test x"$with_migemo" = xyes; then 8038 if command -v migemo >/dev/null 2>&1; then 8039 migemo_command="migemo -t egrep" 8040 for f in \ 8041 /usr/share/migemo/migemo-dict \ 8042 /usr/local/share/migemo/migemo-dict; do 8043 if test -f "$f" -a -r "$f"; then break; fi 8044 done 8045 else 8046 migemo_command="cmigemo -q -d" 8047 for f in \ 8048 /usr/local/share/migemo/utf-8/migemo-dict \ 8049 /usr/local/share/cmigemo/utf-8/migemo-dict \ 8050 /usr/share/migemo/utf-8/migemo-dict \ 8051 /usr/share/cmigemo/utf-8/migemo-dict; do 8052 if test -f "$f" -a -r "$f"; then break; fi 8053 done 8054 fi 8055 migemo_command="$migemo_command $f" 8056 fi 8057 if test "${with_migemo+set}" = set -a "$with_migemo" != "no"; then 8058 $as_echo "#define USE_MIGEMO 1" >>confdefs.h 8059 8060 fi 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $migemo_command" >&5 8062$as_echo "$migemo_command" >&6; } 8063 if test x"$migemo_command" = xno; then migemo_command=""; fi 8064 cat >>confdefs.h <<_ACEOF 8065#define DEF_MIGEMO_COMMAND "$migemo_command" 8066_ACEOF 8067 8068 8069w3m_editor="/usr/bin/vi" 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which editor is used by default" >&5 8071$as_echo_n "checking which editor is used by default... " >&6; } 8072 8073# Check whether --with-editor was given. 8074if test "${with_editor+set}" = set; then : 8075 withval=$with_editor; w3m_editor="$with_editor" 8076fi 8077 8078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_editor" >&5 8079$as_echo "$w3m_editor" >&6; } 8080cat >>confdefs.h <<_ACEOF 8081#define DEF_EDITOR "$w3m_editor" 8082_ACEOF 8083 8084 8085w3m_mailer="/usr/bin/mail" 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which mailer is used by default" >&5 8087$as_echo_n "checking which mailer is used by default... " >&6; } 8088 8089# Check whether --with-mailer was given. 8090if test "${with_mailer+set}" = set; then : 8091 withval=$with_mailer; w3m_mailer="$with_mailer" 8092fi 8093 8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_mailer" >&5 8095$as_echo "$w3m_mailer" >&6; } 8096cat >>confdefs.h <<_ACEOF 8097#define DEF_MAILER "$w3m_mailer" 8098_ACEOF 8099 8100 8101w3m_browser="/usr/bin/firefox" 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which external browser is used by default" >&5 8103$as_echo_n "checking which external browser is used by default... " >&6; } 8104 8105# Check whether --with-browser was given. 8106if test "${with_browser+set}" = set; then : 8107 withval=$with_browser; w3m_browser="$with_browser" 8108fi 8109 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_browser" >&5 8111$as_echo "$w3m_browser" >&6; } 8112cat >>confdefs.h <<_ACEOF 8113#define DEF_EXT_BROWSER "$w3m_browser" 8114_ACEOF 8115 8116 8117for lib in bsd BSD 44bsd socket nsl dld dl 8118do 8119 lib=$lib 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$lib" >&5 8121$as_echo_n "checking for -l$lib... " >&6; } 8122 extlib="not found" 8123 for dir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib /lib64 /usr/lib64 8124 do 8125 if test -f $dir/lib$lib.a -o -f $dir/lib$lib.so ; then 8126 LIBS="$LIBS -l$lib" 8127 extlib="found at $dir" 8128 break 8129 fi 8130 done 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extlib" >&5 8132$as_echo "$extlib" >&6; } 8133done 8134 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support is enabled" >&5 8136$as_echo_n "checking if IPv6 support is enabled... " >&6; } 8137# Check whether --enable-ipv6 was given. 8138if test "${enable_ipv6+set}" = set; then : 8139 enableval=$enable_ipv6; 8140else 8141 enable_ipv6="yes" 8142fi 8143 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ipv6" >&5 8145$as_echo "$enable_ipv6" >&6; } 8146 8147if test x"$enable_ipv6" = xyes; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 API available" >&5 8149$as_echo_n "checking if IPv6 API available... " >&6; } 8150 8151 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 8152if test "x$ac_cv_func_getaddrinfo" = xyes; then : 8153 enable_ipv6="yes" 8154else 8155 enable_ipv6="no" 8156fi 8157 8158 if test x"$enable_ipv6" = xno; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libinet6" >&5 8160$as_echo_n "checking for libinet6... " >&6; } 8161 for dir in /usr/local/v6/lib /usr/local/lib /usr/lib 8162 do 8163 if test -f $dir/libinet6.a; then 8164 if test $dir != "/usr/lib"; then 8165 W3M_LIBS="$W3M_LIBS -L$dir" 8166 fi 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5 8168$as_echo_n "checking for getaddrinfo in -linet6... " >&6; } 8169if ${ac_cv_lib_inet6_getaddrinfo+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 ac_check_lib_save_LIBS=$LIBS 8173LIBS="-linet6 $LIBS" 8174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176 8177/* Override any GCC internal prototype to avoid an error. 8178 Use char because int might match the return type of a GCC 8179 builtin and then its argument prototype would still apply. */ 8180#ifdef __cplusplus 8181extern "C" 8182#endif 8183char getaddrinfo (); 8184int 8185main () 8186{ 8187return getaddrinfo (); 8188 ; 8189 return 0; 8190} 8191_ACEOF 8192if ac_fn_c_try_link "$LINENO"; then : 8193 ac_cv_lib_inet6_getaddrinfo=yes 8194else 8195 ac_cv_lib_inet6_getaddrinfo=no 8196fi 8197rm -f core conftest.err conftest.$ac_objext \ 8198 conftest$ac_exeext conftest.$ac_ext 8199LIBS=$ac_check_lib_save_LIBS 8200fi 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5 8202$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; } 8203if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then : 8204 enable_ipv6="yes" 8205 use_libinet6="found"; W3M_LIBS="$W3M_LIBS -linet6"; break 8206else 8207 use_libinet6="not found" 8208fi 8209 8210 fi 8211 done 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libinet6" >&5 8213$as_echo "$use_libinet6" >&6; } 8214 fi 8215 if test x"$enable_ipv6" = xyes; then 8216 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_storage has an ss_family member" >&5 8218$as_echo_n "checking if struct sockaddr_storage has an ss_family member... " >&6; } 8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8220/* end confdefs.h. */ 8221 8222#include <sys/types.h> 8223#include <sys/socket.h> 8224 8225int 8226main () 8227{ 8228 8229 struct sockaddr_storage ss; 8230 int i = ss.ss_family; 8231 8232 ; 8233 return 0; 8234} 8235_ACEOF 8236if ac_fn_c_try_compile "$LINENO"; then : 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8238$as_echo "yes" >&6; } 8239else 8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8241/* end confdefs.h. */ 8242 8243#include <sys/types.h> 8244#include <sys/socket.h> 8245 8246int 8247main () 8248{ 8249 8250 struct sockaddr_storage ss; 8251 int i = ss.__ss_family; 8252 8253 ; 8254 return 0; 8255} 8256_ACEOF 8257if ac_fn_c_try_compile "$LINENO"; then : 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8259$as_echo "no" >&6; } 8260 $as_echo "#define HAVE_OLD_SS_FAMILY 1" >>confdefs.h 8261 8262else 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8264$as_echo "no" >&6; } 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IPv6 support is disabled" >&5 8266$as_echo "$as_me: WARNING: IPv6 support is disabled" >&2;} 8267 enable_ipv6="no" 8268fi 8269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8270 8271fi 8272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8273 fi 8274 if test x"$enable_ipv6" = xyes; then 8275 $as_echo "#define INET6 1" >>confdefs.h 8276 8277 fi 8278fi 8279 8280 8281 8282 8283 8284 8285if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 8286 if test -n "$ac_tool_prefix"; then 8287 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 8288set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 8289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8290$as_echo_n "checking for $ac_word... " >&6; } 8291if ${ac_cv_path_PKG_CONFIG+:} false; then : 8292 $as_echo_n "(cached) " >&6 8293else 8294 case $PKG_CONFIG in 8295 [\\/]* | ?:[\\/]*) 8296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8297 ;; 8298 *) 8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8300for as_dir in $PATH 8301do 8302 IFS=$as_save_IFS 8303 test -z "$as_dir" && as_dir=. 8304 for ac_exec_ext in '' $ac_executable_extensions; do 8305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8306 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8308 break 2 8309 fi 8310done 8311 done 8312IFS=$as_save_IFS 8313 8314 ;; 8315esac 8316fi 8317PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8318if test -n "$PKG_CONFIG"; then 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8320$as_echo "$PKG_CONFIG" >&6; } 8321else 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8323$as_echo "no" >&6; } 8324fi 8325 8326 8327fi 8328if test -z "$ac_cv_path_PKG_CONFIG"; then 8329 ac_pt_PKG_CONFIG=$PKG_CONFIG 8330 # Extract the first word of "pkg-config", so it can be a program name with args. 8331set dummy pkg-config; ac_word=$2 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8333$as_echo_n "checking for $ac_word... " >&6; } 8334if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 8335 $as_echo_n "(cached) " >&6 8336else 8337 case $ac_pt_PKG_CONFIG in 8338 [\\/]* | ?:[\\/]*) 8339 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 8340 ;; 8341 *) 8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8343for as_dir in $PATH 8344do 8345 IFS=$as_save_IFS 8346 test -z "$as_dir" && as_dir=. 8347 for ac_exec_ext in '' $ac_executable_extensions; do 8348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8349 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8351 break 2 8352 fi 8353done 8354 done 8355IFS=$as_save_IFS 8356 8357 ;; 8358esac 8359fi 8360ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 8361if test -n "$ac_pt_PKG_CONFIG"; then 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 8363$as_echo "$ac_pt_PKG_CONFIG" >&6; } 8364else 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8366$as_echo "no" >&6; } 8367fi 8368 8369 if test "x$ac_pt_PKG_CONFIG" = x; then 8370 PKG_CONFIG="" 8371 else 8372 case $cross_compiling:$ac_tool_warned in 8373yes:) 8374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8376ac_tool_warned=yes ;; 8377esac 8378 PKG_CONFIG=$ac_pt_PKG_CONFIG 8379 fi 8380else 8381 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 8382fi 8383 8384fi 8385if test -n "$PKG_CONFIG"; then 8386 _pkg_min_version=0.9.0 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 8388$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 8389 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8391$as_echo "yes" >&6; } 8392 else 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8394$as_echo "no" >&6; } 8395 PKG_CONFIG="" 8396 fi 8397fi 8398 8399 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSL is supported" >&5 8401$as_echo_n "checking if SSL is supported... " >&6; } 8402 8403# Check whether --with-ssl was given. 8404if test "${with_ssl+set}" = set; then : 8405 withval=$with_ssl; 8406else 8407 with_ssl="yes" 8408fi 8409 8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5 8411$as_echo "$with_ssl" >&6; } 8412if test x"$with_ssl" != xno; then 8413 8414pkg_failed=no 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5 8416$as_echo_n "checking for SSL... " >&6; } 8417 8418if test -n "$SSL_CFLAGS"; then 8419 pkg_cv_SSL_CFLAGS="$SSL_CFLAGS" 8420 elif test -n "$PKG_CONFIG"; then 8421 if test -n "$PKG_CONFIG" && \ 8422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 8423 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 8424 ac_status=$? 8425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8426 test $ac_status = 0; }; then 8427 pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 8428else 8429 pkg_failed=yes 8430fi 8431 else 8432 pkg_failed=untried 8433fi 8434if test -n "$SSL_LIBS"; then 8435 pkg_cv_SSL_LIBS="$SSL_LIBS" 8436 elif test -n "$PKG_CONFIG"; then 8437 if test -n "$PKG_CONFIG" && \ 8438 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 8439 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 8440 ac_status=$? 8441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8442 test $ac_status = 0; }; then 8443 pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 8444else 8445 pkg_failed=yes 8446fi 8447 else 8448 pkg_failed=untried 8449fi 8450 8451 8452 8453if test $pkg_failed = yes; then 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8455$as_echo "no" >&6; } 8456 8457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8458 _pkg_short_errors_supported=yes 8459else 8460 _pkg_short_errors_supported=no 8461fi 8462 if test $_pkg_short_errors_supported = yes; then 8463 SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1` 8464 else 8465 SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1` 8466 fi 8467 # Put the nasty error message in config.log where it belongs 8468 echo "$SSL_PKG_ERRORS" >&5 8469 8470 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library/header" >&5 8472$as_echo_n "checking for SSL library/header... " >&6; } 8473 test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local" 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5 8475$as_echo "$with_ssl" >&6; } 8476 for dir in $with_ssl 8477 do 8478 if test -f "$dir/include/openssl/ssl.h"; then 8479 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl" 8480 if test "$dir" != "/usr"; then 8481 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include" 8482 fi 8483 elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then 8484 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include" 8485 fi 8486 if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then 8487 SSL_LIBS="$SSL_LIBS -L$dir/lib" 8488 fi 8489 done 8490 8491elif test $pkg_failed = untried; then 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8493$as_echo "no" >&6; } 8494 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library/header" >&5 8496$as_echo_n "checking for SSL library/header... " >&6; } 8497 test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local" 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5 8499$as_echo "$with_ssl" >&6; } 8500 for dir in $with_ssl 8501 do 8502 if test -f "$dir/include/openssl/ssl.h"; then 8503 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl" 8504 if test "$dir" != "/usr"; then 8505 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include" 8506 fi 8507 elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then 8508 SSL_CFLAGS="$SSL_CFLAGS -I$dir/include" 8509 fi 8510 if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then 8511 SSL_LIBS="$SSL_LIBS -L$dir/lib" 8512 fi 8513 done 8514 8515else 8516 SSL_CFLAGS=$pkg_cv_SSL_CFLAGS 8517 SSL_LIBS=$pkg_cv_SSL_LIBS 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8519$as_echo "yes" >&6; } 8520 8521fi 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 8523$as_echo_n "checking for SSL_new in -lssl... " >&6; } 8524if ${ac_cv_lib_ssl_SSL_new+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 ac_check_lib_save_LIBS=$LIBS 8528LIBS="-lssl $SSL_LIBS -lcrypto $LIBS" 8529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8530/* end confdefs.h. */ 8531 8532/* Override any GCC internal prototype to avoid an error. 8533 Use char because int might match the return type of a GCC 8534 builtin and then its argument prototype would still apply. */ 8535#ifdef __cplusplus 8536extern "C" 8537#endif 8538char SSL_new (); 8539int 8540main () 8541{ 8542return SSL_new (); 8543 ; 8544 return 0; 8545} 8546_ACEOF 8547if ac_fn_c_try_link "$LINENO"; then : 8548 ac_cv_lib_ssl_SSL_new=yes 8549else 8550 ac_cv_lib_ssl_SSL_new=no 8551fi 8552rm -f core conftest.err conftest.$ac_objext \ 8553 conftest$ac_exeext conftest.$ac_ext 8554LIBS=$ac_check_lib_save_LIBS 8555fi 8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 8557$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } 8558if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then : 8559 w3m_ssl="found"; CFLAGS="$CFLAGS $SSL_CFLAGS" W3M_LIBS="$W3M_LIBS $SSL_LIBS -lssl -lcrypto" 8560else 8561 w3m_ssl="not found" 8562fi 8563 8564 8565 if test x"$w3m_ssl" = xfound; then 8566 $as_echo "#define USE_SSL 1" >>confdefs.h 8567 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSL certificate verification is enabled" >&5 8569$as_echo_n "checking if SSL certificate verification is enabled... " >&6; } 8570 # Check whether --enable-sslverify was given. 8571if test "${enable_sslverify+set}" = set; then : 8572 enableval=$enable_sslverify; 8573else 8574 enable_sslverify="yes" 8575fi 8576 8577 test x"$enable_sslverify" = xyes && $as_echo "#define USE_SSL_VERIFY 1" >>confdefs.h 8578 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sslverify" >&5 8580$as_echo "$enable_sslverify" >&6; } 8581 fi 8582fi 8583 8584w3m_cafile="" 8585if test x"$enable_sslverify" = xyes; then 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CA file location" >&5 8587$as_echo_n "checking for CA file location... " >&6; } 8588 8589# Check whether --with-cafile was given. 8590if test "${with_cafile+set}" = set; then : 8591 withval=$with_cafile; 8592else 8593 with_cafile=no 8594fi 8595 8596 if test x"$with_cafile" = xyes; then 8597 for f in /etc/ssl/certs/ca-certificates.crt \ 8598 /etc/pki/tls/certs/ca-bundle.crt \ 8599 /etc/ssl/ca-bundle.pem \ 8600 /usr/ssl/certs/ca-bundle.crt \ 8601 /usr/local/share/certs/ca-root-nss.crt \ 8602 /etc/ssl/cert.pem \ 8603 /etc/certs/ca-certificates.crt; do 8604 if test -f "$f" -a -r "$f"; then w3m_cafile="$f"; break; fi 8605 done 8606 elif test x"$with_cafile" != xno; then 8607 w3m_cafile="$with_cafile" 8608 fi 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_cafile" >&5 8610$as_echo "$w3m_cafile" >&6; } 8611fi 8612cat >>confdefs.h <<_ACEOF 8613#define DEF_CAFILE "$w3m_cafile" 8614_ACEOF 8615 8616 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if digest auth is enabled" >&5 8618$as_echo_n "checking if digest auth is enabled... " >&6; } 8619# Check whether --enable-digest_auth was given. 8620if test "${enable_digest_auth+set}" = set; then : 8621 enableval=$enable_digest_auth; 8622else 8623 enable_digest_auth="yes" 8624fi 8625 8626if test x"$enable_digest_auth" = xyes -a x"$w3m_ssl" = xfound; then 8627 $as_echo "#define USE_DIGEST_AUTH 1" >>confdefs.h 8628 8629else 8630 enable_digest_auth="no" 8631fi 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_digest_auth" >&5 8633$as_echo "$enable_digest_auth" >&6; } 8634 8635 8636ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt" 8637if test "x$ac_cv_func_sqrt" = xyes; then : 8638 8639else 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 8641$as_echo_n "checking for sqrt in -lm... " >&6; } 8642if ${ac_cv_lib_m_sqrt+:} false; then : 8643 $as_echo_n "(cached) " >&6 8644else 8645 ac_check_lib_save_LIBS=$LIBS 8646LIBS="-lm $LIBS" 8647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8648/* end confdefs.h. */ 8649 8650/* Override any GCC internal prototype to avoid an error. 8651 Use char because int might match the return type of a GCC 8652 builtin and then its argument prototype would still apply. */ 8653#ifdef __cplusplus 8654extern "C" 8655#endif 8656char sqrt (); 8657int 8658main () 8659{ 8660return sqrt (); 8661 ; 8662 return 0; 8663} 8664_ACEOF 8665if ac_fn_c_try_link "$LINENO"; then : 8666 ac_cv_lib_m_sqrt=yes 8667else 8668 ac_cv_lib_m_sqrt=no 8669fi 8670rm -f core conftest.err conftest.$ac_objext \ 8671 conftest$ac_exeext conftest.$ac_ext 8672LIBS=$ac_check_lib_save_LIBS 8673fi 8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 8675$as_echo "$ac_cv_lib_m_sqrt" >&6; } 8676if test "x$ac_cv_lib_m_sqrt" = xyes; then : 8677 cat >>confdefs.h <<_ACEOF 8678#define HAVE_LIBM 1 8679_ACEOF 8680 8681 LIBS="-lm $LIBS" 8682 8683fi 8684 8685fi 8686 8687if test x"$enable_mouse" = xyes; then 8688 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 8690$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 8691if ${ac_cv_lib_gpm_Gpm_Open+:} false; then : 8692 $as_echo_n "(cached) " >&6 8693else 8694 ac_check_lib_save_LIBS=$LIBS 8695LIBS="-lgpm $LIBS" 8696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8697/* end confdefs.h. */ 8698 8699/* Override any GCC internal prototype to avoid an error. 8700 Use char because int might match the return type of a GCC 8701 builtin and then its argument prototype would still apply. */ 8702#ifdef __cplusplus 8703extern "C" 8704#endif 8705char Gpm_Open (); 8706int 8707main () 8708{ 8709return Gpm_Open (); 8710 ; 8711 return 0; 8712} 8713_ACEOF 8714if ac_fn_c_try_link "$LINENO"; then : 8715 ac_cv_lib_gpm_Gpm_Open=yes 8716else 8717 ac_cv_lib_gpm_Gpm_Open=no 8718fi 8719rm -f core conftest.err conftest.$ac_objext \ 8720 conftest$ac_exeext conftest.$ac_ext 8721LIBS=$ac_check_lib_save_LIBS 8722fi 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 8724$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 8725if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then : 8726 $as_echo "#define USE_GPM 1" >>confdefs.h 8727 8728 W3M_LIBS="$W3M_LIBS -lgpm" 8729fi 8730 8731 8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8733/* end confdefs.h. */ 8734#include <sys/consio.h> 8735 MOUSE_GETINFO 8736_ACEOF 8737if ac_fn_c_try_cpp "$LINENO"; then : 8738 $as_echo "#define USE_SYSMOUSE 1" >>confdefs.h 8739 8740else 8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8742/* end confdefs.h. */ 8743#include <machine/console.h> 8744 MOUSE_GETINFO 8745_ACEOF 8746if ac_fn_c_try_cpp "$LINENO"; then : 8747 $as_echo "#define USE_SYSMOUSE 1" >>confdefs.h 8748 8749fi 8750rm -f conftest.err conftest.i conftest.$ac_ext 8751fi 8752rm -f conftest.err conftest.i conftest.$ac_ext 8753fi 8754 8755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking terminal library" >&5 8756$as_echo_n "checking terminal library... " >&6; } 8757 8758# Check whether --with-termlib was given. 8759if test "${with_termlib+set}" = set; then : 8760 withval=$with_termlib; 8761else 8762 with_termlib="yes" 8763fi 8764 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_termlib" >&5 8766$as_echo "$with_termlib" >&6; } 8767 test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap tinfo ncurses curses" 8768 for lib in $with_termlib; do 8769 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_tgetent" | $as_tr_sh` 8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l$lib" >&5 8771$as_echo_n "checking for tgetent in -l$lib... " >&6; } 8772if eval \${$as_ac_Lib+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 ac_check_lib_save_LIBS=$LIBS 8776LIBS="-l$lib $LIBS" 8777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8778/* end confdefs.h. */ 8779 8780/* Override any GCC internal prototype to avoid an error. 8781 Use char because int might match the return type of a GCC 8782 builtin and then its argument prototype would still apply. */ 8783#ifdef __cplusplus 8784extern "C" 8785#endif 8786char tgetent (); 8787int 8788main () 8789{ 8790return tgetent (); 8791 ; 8792 return 0; 8793} 8794_ACEOF 8795if ac_fn_c_try_link "$LINENO"; then : 8796 eval "$as_ac_Lib=yes" 8797else 8798 eval "$as_ac_Lib=no" 8799fi 8800rm -f core conftest.err conftest.$ac_objext \ 8801 conftest$ac_exeext conftest.$ac_ext 8802LIBS=$ac_check_lib_save_LIBS 8803fi 8804eval ac_res=\$$as_ac_Lib 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8806$as_echo "$ac_res" >&6; } 8807if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8808 W3M_LIBS="$W3M_LIBS -l$lib"; break 8809fi 8810 8811 done 8812 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8814$as_echo_n "checking for ANSI C header files... " >&6; } 8815if ${ac_cv_header_stdc+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8819/* end confdefs.h. */ 8820#include <stdlib.h> 8821#include <stdarg.h> 8822#include <string.h> 8823#include <float.h> 8824 8825int 8826main () 8827{ 8828 8829 ; 8830 return 0; 8831} 8832_ACEOF 8833if ac_fn_c_try_compile "$LINENO"; then : 8834 ac_cv_header_stdc=yes 8835else 8836 ac_cv_header_stdc=no 8837fi 8838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8839 8840if test $ac_cv_header_stdc = yes; then 8841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8843/* end confdefs.h. */ 8844#include <string.h> 8845 8846_ACEOF 8847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8848 $EGREP "memchr" >/dev/null 2>&1; then : 8849 8850else 8851 ac_cv_header_stdc=no 8852fi 8853rm -f conftest* 8854 8855fi 8856 8857if test $ac_cv_header_stdc = yes; then 8858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8860/* end confdefs.h. */ 8861#include <stdlib.h> 8862 8863_ACEOF 8864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8865 $EGREP "free" >/dev/null 2>&1; then : 8866 8867else 8868 ac_cv_header_stdc=no 8869fi 8870rm -f conftest* 8871 8872fi 8873 8874if test $ac_cv_header_stdc = yes; then 8875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8876 if test "$cross_compiling" = yes; then : 8877 : 8878else 8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8880/* end confdefs.h. */ 8881#include <ctype.h> 8882#include <stdlib.h> 8883#if ((' ' & 0x0FF) == 0x020) 8884# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8885# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8886#else 8887# define ISLOWER(c) \ 8888 (('a' <= (c) && (c) <= 'i') \ 8889 || ('j' <= (c) && (c) <= 'r') \ 8890 || ('s' <= (c) && (c) <= 'z')) 8891# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8892#endif 8893 8894#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8895int 8896main () 8897{ 8898 int i; 8899 for (i = 0; i < 256; i++) 8900 if (XOR (islower (i), ISLOWER (i)) 8901 || toupper (i) != TOUPPER (i)) 8902 return 2; 8903 return 0; 8904} 8905_ACEOF 8906if ac_fn_c_try_run "$LINENO"; then : 8907 8908else 8909 ac_cv_header_stdc=no 8910fi 8911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8912 conftest.$ac_objext conftest.beam conftest.$ac_ext 8913fi 8914 8915fi 8916fi 8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8918$as_echo "$ac_cv_header_stdc" >&6; } 8919if test $ac_cv_header_stdc = yes; then 8920 8921$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8922 8923fi 8924 8925# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8926for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8927 inttypes.h stdint.h unistd.h 8928do : 8929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8930ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8931" 8932if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8933 cat >>confdefs.h <<_ACEOF 8934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8935_ACEOF 8936 8937fi 8938 8939done 8940 8941 8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library exists" >&5 8943$as_echo_n "checking GC library exists... " >&6; } 8944 8945 8946# Check whether --with-gc was given. 8947if test "${with_gc+set}" = set; then : 8948 withval=$with_gc; test x"$with_gc" = xno && as_fn_error $? "You can not build w3m without GC" "$LINENO" 5 8949else 8950 with_gc="yes" 8951fi 8952 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5 8954$as_echo "$with_gc" >&6; } 8955 test x"$with_gc" = xyes && with_gc="/usr /usr/local ${HOME}" 8956 unset ac_cv_header_gc_h 8957 ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default" 8958if test "x$ac_cv_header_gc_h" = xyes; then : 8959 8960fi 8961 8962 8963 if test x"$ac_cv_header_gc_h" = xno; then 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC header location" >&5 8965$as_echo_n "checking GC header location... " >&6; } 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5 8967$as_echo "$with_gc" >&6; } 8968 gcincludedir=no 8969 for dir in $with_gc; do 8970 for inc in include include/gc; do 8971 cppflags="$CPPFLAGS" 8972 CPPFLAGS="$CPPFLAGS -I$dir/$inc" 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $dir/$inc" >&5 8974$as_echo_n "checking $dir/$inc... " >&6; } 8975 unset ac_cv_header_gc_h 8976 ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default" 8977if test "x$ac_cv_header_gc_h" = xyes; then : 8978 gcincludedir="$dir/$inc"; CFLAGS="$CFLAGS -I$dir/$inc"; break 8979fi 8980 8981 8982 CPPFLAGS="$cppflags" 8983 done 8984 if test x"$gcincludedir" != xno; then 8985 break; 8986 fi 8987 done 8988 if test x"$gcincludedir" = xno; then 8989 as_fn_error $? "gc.h not found" "$LINENO" 5 8990 fi 8991 fi 8992 unset ac_cv_lib_gc_GC_init 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_init in -lgc" >&5 8994$as_echo_n "checking for GC_init in -lgc... " >&6; } 8995if ${ac_cv_lib_gc_GC_init+:} false; then : 8996 $as_echo_n "(cached) " >&6 8997else 8998 ac_check_lib_save_LIBS=$LIBS 8999LIBS="-lgc $LIBS" 9000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002 9003/* Override any GCC internal prototype to avoid an error. 9004 Use char because int might match the return type of a GCC 9005 builtin and then its argument prototype would still apply. */ 9006#ifdef __cplusplus 9007extern "C" 9008#endif 9009char GC_init (); 9010int 9011main () 9012{ 9013return GC_init (); 9014 ; 9015 return 0; 9016} 9017_ACEOF 9018if ac_fn_c_try_link "$LINENO"; then : 9019 ac_cv_lib_gc_GC_init=yes 9020else 9021 ac_cv_lib_gc_GC_init=no 9022fi 9023rm -f core conftest.err conftest.$ac_objext \ 9024 conftest$ac_exeext conftest.$ac_ext 9025LIBS=$ac_check_lib_save_LIBS 9026fi 9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5 9028$as_echo "$ac_cv_lib_gc_GC_init" >&6; } 9029if test "x$ac_cv_lib_gc_GC_init" = xyes; then : 9030 LIBGC="-lgc" 9031fi 9032 9033 if test x"$ac_cv_lib_gc_GC_init" = xno; then 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library location" >&5 9035$as_echo_n "checking GC library location... " >&6; } 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5 9037$as_echo "$with_gc" >&6; } 9038 gclibdir=no 9039 for dir in $with_gc; do 9040 ldflags="$LDFLAGS" 9041 LDFLAGS="$LDFLAGS -L$dir/lib" 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $dir" >&5 9043$as_echo_n "checking $dir... " >&6; } 9044 unset ac_cv_lib_gc_GC_init 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_init in -lgc" >&5 9046$as_echo_n "checking for GC_init in -lgc... " >&6; } 9047if ${ac_cv_lib_gc_GC_init+:} false; then : 9048 $as_echo_n "(cached) " >&6 9049else 9050 ac_check_lib_save_LIBS=$LIBS 9051LIBS="-lgc $LIBS" 9052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054 9055/* Override any GCC internal prototype to avoid an error. 9056 Use char because int might match the return type of a GCC 9057 builtin and then its argument prototype would still apply. */ 9058#ifdef __cplusplus 9059extern "C" 9060#endif 9061char GC_init (); 9062int 9063main () 9064{ 9065return GC_init (); 9066 ; 9067 return 0; 9068} 9069_ACEOF 9070if ac_fn_c_try_link "$LINENO"; then : 9071 ac_cv_lib_gc_GC_init=yes 9072else 9073 ac_cv_lib_gc_GC_init=no 9074fi 9075rm -f core conftest.err conftest.$ac_objext \ 9076 conftest$ac_exeext conftest.$ac_ext 9077LIBS=$ac_check_lib_save_LIBS 9078fi 9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5 9080$as_echo "$ac_cv_lib_gc_GC_init" >&6; } 9081if test "x$ac_cv_lib_gc_GC_init" = xyes; then : 9082 gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break 9083fi 9084 9085 LDFLAGS="$ldflags" 9086 done 9087 if test x"$gclibdir" = xno; then 9088 as_fn_error $? "libgc not found" "$LINENO" 5 9089 fi 9090 fi 9091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zError in -lz" >&5 9092$as_echo_n "checking for zError in -lz... " >&6; } 9093if ${ac_cv_lib_z_zError+:} false; then : 9094 $as_echo_n "(cached) " >&6 9095else 9096 ac_check_lib_save_LIBS=$LIBS 9097LIBS="-lz $LIBS" 9098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9099/* end confdefs.h. */ 9100 9101/* Override any GCC internal prototype to avoid an error. 9102 Use char because int might match the return type of a GCC 9103 builtin and then its argument prototype would still apply. */ 9104#ifdef __cplusplus 9105extern "C" 9106#endif 9107char zError (); 9108int 9109main () 9110{ 9111return zError (); 9112 ; 9113 return 0; 9114} 9115_ACEOF 9116if ac_fn_c_try_link "$LINENO"; then : 9117 ac_cv_lib_z_zError=yes 9118else 9119 ac_cv_lib_z_zError=no 9120fi 9121rm -f core conftest.err conftest.$ac_objext \ 9122 conftest$ac_exeext conftest.$ac_ext 9123LIBS=$ac_check_lib_save_LIBS 9124fi 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zError" >&5 9126$as_echo "$ac_cv_lib_z_zError" >&6; } 9127if test "x$ac_cv_lib_z_zError" = xyes; then : 9128 AUXBIN_TARGETS="$AUXBIN_TARGETS inflate\$(EXT)" 9129fi 9130 9131 9132ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 9133 #include <sys/socket.h> 9134" 9135if test "x$ac_cv_type_socklen_t" = xyes; then : 9136 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 9137 9138fi 9139 9140 9141$as_echo "#define AUXBIN_TARGETS \"\$AUXBIN_TARGETS\"" >>confdefs.h 9142 9143 9144 9145case "$host_os" in 9146 *cygwin*|*os2-emx*|*mingw*) 9147 $as_echo "#define USE_BINMODE_STREAM 1" >>confdefs.h 9148 9149 ;; 9150esac 9151 9152ac_header_dirent=no 9153for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 9154 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 9156$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 9157if eval \${$as_ac_Header+:} false; then : 9158 $as_echo_n "(cached) " >&6 9159else 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161/* end confdefs.h. */ 9162#include <sys/types.h> 9163#include <$ac_hdr> 9164 9165int 9166main () 9167{ 9168if ((DIR *) 0) 9169return 0; 9170 ; 9171 return 0; 9172} 9173_ACEOF 9174if ac_fn_c_try_compile "$LINENO"; then : 9175 eval "$as_ac_Header=yes" 9176else 9177 eval "$as_ac_Header=no" 9178fi 9179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9180fi 9181eval ac_res=\$$as_ac_Header 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9183$as_echo "$ac_res" >&6; } 9184if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9185 cat >>confdefs.h <<_ACEOF 9186#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 9187_ACEOF 9188 9189ac_header_dirent=$ac_hdr; break 9190fi 9191 9192done 9193# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 9194if test $ac_header_dirent = dirent.h; then 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 9196$as_echo_n "checking for library containing opendir... " >&6; } 9197if ${ac_cv_search_opendir+:} false; then : 9198 $as_echo_n "(cached) " >&6 9199else 9200 ac_func_search_save_LIBS=$LIBS 9201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9202/* end confdefs.h. */ 9203 9204/* Override any GCC internal prototype to avoid an error. 9205 Use char because int might match the return type of a GCC 9206 builtin and then its argument prototype would still apply. */ 9207#ifdef __cplusplus 9208extern "C" 9209#endif 9210char opendir (); 9211int 9212main () 9213{ 9214return opendir (); 9215 ; 9216 return 0; 9217} 9218_ACEOF 9219for ac_lib in '' dir; do 9220 if test -z "$ac_lib"; then 9221 ac_res="none required" 9222 else 9223 ac_res=-l$ac_lib 9224 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9225 fi 9226 if ac_fn_c_try_link "$LINENO"; then : 9227 ac_cv_search_opendir=$ac_res 9228fi 9229rm -f core conftest.err conftest.$ac_objext \ 9230 conftest$ac_exeext 9231 if ${ac_cv_search_opendir+:} false; then : 9232 break 9233fi 9234done 9235if ${ac_cv_search_opendir+:} false; then : 9236 9237else 9238 ac_cv_search_opendir=no 9239fi 9240rm conftest.$ac_ext 9241LIBS=$ac_func_search_save_LIBS 9242fi 9243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 9244$as_echo "$ac_cv_search_opendir" >&6; } 9245ac_res=$ac_cv_search_opendir 9246if test "$ac_res" != no; then : 9247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9248 9249fi 9250 9251else 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 9253$as_echo_n "checking for library containing opendir... " >&6; } 9254if ${ac_cv_search_opendir+:} false; then : 9255 $as_echo_n "(cached) " >&6 9256else 9257 ac_func_search_save_LIBS=$LIBS 9258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9259/* end confdefs.h. */ 9260 9261/* Override any GCC internal prototype to avoid an error. 9262 Use char because int might match the return type of a GCC 9263 builtin and then its argument prototype would still apply. */ 9264#ifdef __cplusplus 9265extern "C" 9266#endif 9267char opendir (); 9268int 9269main () 9270{ 9271return opendir (); 9272 ; 9273 return 0; 9274} 9275_ACEOF 9276for ac_lib in '' x; do 9277 if test -z "$ac_lib"; then 9278 ac_res="none required" 9279 else 9280 ac_res=-l$ac_lib 9281 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9282 fi 9283 if ac_fn_c_try_link "$LINENO"; then : 9284 ac_cv_search_opendir=$ac_res 9285fi 9286rm -f core conftest.err conftest.$ac_objext \ 9287 conftest$ac_exeext 9288 if ${ac_cv_search_opendir+:} false; then : 9289 break 9290fi 9291done 9292if ${ac_cv_search_opendir+:} false; then : 9293 9294else 9295 ac_cv_search_opendir=no 9296fi 9297rm conftest.$ac_ext 9298LIBS=$ac_func_search_save_LIBS 9299fi 9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 9301$as_echo "$ac_cv_search_opendir" >&6; } 9302ac_res=$ac_cv_search_opendir 9303if test "$ac_res" != no; then : 9304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9305 9306fi 9307 9308fi 9309 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9311$as_echo_n "checking for ANSI C header files... " >&6; } 9312if ${ac_cv_header_stdc+:} false; then : 9313 $as_echo_n "(cached) " >&6 9314else 9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317#include <stdlib.h> 9318#include <stdarg.h> 9319#include <string.h> 9320#include <float.h> 9321 9322int 9323main () 9324{ 9325 9326 ; 9327 return 0; 9328} 9329_ACEOF 9330if ac_fn_c_try_compile "$LINENO"; then : 9331 ac_cv_header_stdc=yes 9332else 9333 ac_cv_header_stdc=no 9334fi 9335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9336 9337if test $ac_cv_header_stdc = yes; then 9338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341#include <string.h> 9342 9343_ACEOF 9344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9345 $EGREP "memchr" >/dev/null 2>&1; then : 9346 9347else 9348 ac_cv_header_stdc=no 9349fi 9350rm -f conftest* 9351 9352fi 9353 9354if test $ac_cv_header_stdc = yes; then 9355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358#include <stdlib.h> 9359 9360_ACEOF 9361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9362 $EGREP "free" >/dev/null 2>&1; then : 9363 9364else 9365 ac_cv_header_stdc=no 9366fi 9367rm -f conftest* 9368 9369fi 9370 9371if test $ac_cv_header_stdc = yes; then 9372 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9373 if test "$cross_compiling" = yes; then : 9374 : 9375else 9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9377/* end confdefs.h. */ 9378#include <ctype.h> 9379#include <stdlib.h> 9380#if ((' ' & 0x0FF) == 0x020) 9381# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9382# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9383#else 9384# define ISLOWER(c) \ 9385 (('a' <= (c) && (c) <= 'i') \ 9386 || ('j' <= (c) && (c) <= 'r') \ 9387 || ('s' <= (c) && (c) <= 'z')) 9388# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9389#endif 9390 9391#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9392int 9393main () 9394{ 9395 int i; 9396 for (i = 0; i < 256; i++) 9397 if (XOR (islower (i), ISLOWER (i)) 9398 || toupper (i) != TOUPPER (i)) 9399 return 2; 9400 return 0; 9401} 9402_ACEOF 9403if ac_fn_c_try_run "$LINENO"; then : 9404 9405else 9406 ac_cv_header_stdc=no 9407fi 9408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9409 conftest.$ac_objext conftest.beam conftest.$ac_ext 9410fi 9411 9412fi 9413fi 9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9415$as_echo "$ac_cv_header_stdc" >&6; } 9416if test $ac_cv_header_stdc = yes; then 9417 9418$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9419 9420fi 9421 9422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 9423$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 9424if ${ac_cv_header_sys_wait_h+:} false; then : 9425 $as_echo_n "(cached) " >&6 9426else 9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9428/* end confdefs.h. */ 9429#include <sys/types.h> 9430#include <sys/wait.h> 9431#ifndef WEXITSTATUS 9432# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 9433#endif 9434#ifndef WIFEXITED 9435# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 9436#endif 9437 9438int 9439main () 9440{ 9441 int s; 9442 wait (&s); 9443 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 9444 ; 9445 return 0; 9446} 9447_ACEOF 9448if ac_fn_c_try_compile "$LINENO"; then : 9449 ac_cv_header_sys_wait_h=yes 9450else 9451 ac_cv_header_sys_wait_h=no 9452fi 9453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9454fi 9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 9456$as_echo "$ac_cv_header_sys_wait_h" >&6; } 9457if test $ac_cv_header_sys_wait_h = yes; then 9458 9459$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 9460 9461fi 9462 9463ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 9464if test "x$ac_cv_header_termios_h" = xyes; then : 9465 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h 9466 9467else 9468 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" 9469if test "x$ac_cv_header_termio_h" = xyes; then : 9470 $as_echo "#define HAVE_TERMIO_H 1" >>confdefs.h 9471 9472else 9473 ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default" 9474if test "x$ac_cv_header_sgtty_h" = xyes; then : 9475 $as_echo "#define HAVE_SGTTY_H 1" >>confdefs.h 9476 9477fi 9478 9479 9480fi 9481 9482 9483fi 9484 9485 9486ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 9487if test "x$ac_cv_header_float_h" = xyes; then : 9488 $as_echo "#define HAVE_FLOAT_H 1" >>confdefs.h 9489 9490fi 9491 9492 9493ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 9494if test "x$ac_cv_header_sys_select_h" = xyes; then : 9495 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 9496 9497fi 9498 9499 9500ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 9501if test "x$ac_cv_header_locale_h" = xyes; then : 9502 $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h 9503 9504fi 9505 9506 9507ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 9508if test "x$ac_cv_header_stdint_h" = xyes; then : 9509 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h 9510 9511fi 9512 9513 9514ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 9515if test "x$ac_cv_header_inttypes_h" = xyes; then : 9516 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h 9517 9518fi 9519 9520 9521 9522# The cast to long int works around a bug in the HP C Compiler 9523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9525# This bug is HP SR number 8606223364. 9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 9527$as_echo_n "checking size of long long... " >&6; } 9528if ${ac_cv_sizeof_long_long+:} false; then : 9529 $as_echo_n "(cached) " >&6 9530else 9531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 9532 9533else 9534 if test "$ac_cv_type_long_long" = yes; then 9535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9537as_fn_error 77 "cannot compute sizeof (long long) 9538See \`config.log' for more details" "$LINENO" 5; } 9539 else 9540 ac_cv_sizeof_long_long=0 9541 fi 9542fi 9543 9544fi 9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 9546$as_echo "$ac_cv_sizeof_long_long" >&6; } 9547 9548 9549 9550cat >>confdefs.h <<_ACEOF 9551#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 9552_ACEOF 9553 9554 9555 9556for ac_func in strcasecmp strcasestr strchr memcpy strerror bcopy setpgrp chdir mkdtemp getcwd getwd readlink setenv putenv strtoll stroq atoll atoq symlink readlink lstat srand48 srandom getpassphrase waitpid setlocale 9557do : 9558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9560if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9561 cat >>confdefs.h <<_ACEOF 9562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9563_ACEOF 9564 9565fi 9566done 9567 9568for ac_func in strftime 9569do : 9570 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 9571if test "x$ac_cv_func_strftime" = xyes; then : 9572 cat >>confdefs.h <<_ACEOF 9573#define HAVE_STRFTIME 1 9574_ACEOF 9575 9576else 9577 # strftime is in -lintl on SCO UNIX. 9578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 9579$as_echo_n "checking for strftime in -lintl... " >&6; } 9580if ${ac_cv_lib_intl_strftime+:} false; then : 9581 $as_echo_n "(cached) " >&6 9582else 9583 ac_check_lib_save_LIBS=$LIBS 9584LIBS="-lintl $LIBS" 9585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9586/* end confdefs.h. */ 9587 9588/* Override any GCC internal prototype to avoid an error. 9589 Use char because int might match the return type of a GCC 9590 builtin and then its argument prototype would still apply. */ 9591#ifdef __cplusplus 9592extern "C" 9593#endif 9594char strftime (); 9595int 9596main () 9597{ 9598return strftime (); 9599 ; 9600 return 0; 9601} 9602_ACEOF 9603if ac_fn_c_try_link "$LINENO"; then : 9604 ac_cv_lib_intl_strftime=yes 9605else 9606 ac_cv_lib_intl_strftime=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext \ 9609 conftest$ac_exeext conftest.$ac_ext 9610LIBS=$ac_check_lib_save_LIBS 9611fi 9612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 9613$as_echo "$ac_cv_lib_intl_strftime" >&6; } 9614if test "x$ac_cv_lib_intl_strftime" = xyes; then : 9615 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 9616 9617LIBS="-lintl $LIBS" 9618fi 9619 9620fi 9621done 9622 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5 9624$as_echo_n "checking for wait3 that fills in rusage... " >&6; } 9625if ${ac_cv_func_wait3_rusage+:} false; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 if test "$cross_compiling" = yes; then : 9629 ac_cv_func_wait3_rusage=no 9630else 9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9632/* end confdefs.h. */ 9633$ac_includes_default 9634#include <sys/time.h> 9635#include <sys/resource.h> 9636#include <sys/wait.h> 9637/* HP-UX has wait3 but does not fill in rusage at all. */ 9638int 9639main () 9640{ 9641 struct rusage r; 9642 int i; 9643 /* Use a field that we can force nonzero -- 9644 voluntary context switches. 9645 For systems like NeXT and OSF/1 that don't set it, 9646 also use the system CPU time. And page faults (I/O) for Linux. */ 9647 r.ru_nvcsw = 0; 9648 r.ru_stime.tv_sec = 0; 9649 r.ru_stime.tv_usec = 0; 9650 r.ru_majflt = r.ru_minflt = 0; 9651 switch (fork ()) 9652 { 9653 case 0: /* Child. */ 9654 sleep(1); /* Give up the CPU. */ 9655 _exit(0); 9656 break; 9657 case -1: /* What can we do? */ 9658 _exit(0); 9659 break; 9660 default: /* Parent. */ 9661 wait3(&i, 0, &r); 9662 /* Avoid "text file busy" from rm on fast HP-UX machines. */ 9663 sleep(2); 9664 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 9665 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); 9666 } 9667} 9668_ACEOF 9669if ac_fn_c_try_run "$LINENO"; then : 9670 ac_cv_func_wait3_rusage=yes 9671else 9672 ac_cv_func_wait3_rusage=no 9673fi 9674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9675 conftest.$ac_objext conftest.beam conftest.$ac_ext 9676fi 9677 9678fi 9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5 9680$as_echo "$ac_cv_func_wait3_rusage" >&6; } 9681if test $ac_cv_func_wait3_rusage = yes; then 9682 9683$as_echo "#define HAVE_WAIT3 1" >>confdefs.h 9684 9685fi 9686 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 9688$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 9689if ${ac_cv_func_setpgrp_void+:} false; then : 9690 $as_echo_n "(cached) " >&6 9691else 9692 if test "$cross_compiling" = yes; then : 9693 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 9694else 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697$ac_includes_default 9698int 9699main () 9700{ 9701/* If this system has a BSD-style setpgrp which takes arguments, 9702 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 9703 exit successfully. */ 9704 return setpgrp (1,1) != -1; 9705 ; 9706 return 0; 9707} 9708_ACEOF 9709if ac_fn_c_try_run "$LINENO"; then : 9710 ac_cv_func_setpgrp_void=no 9711else 9712 ac_cv_func_setpgrp_void=yes 9713fi 9714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9715 conftest.$ac_objext conftest.beam conftest.$ac_ext 9716fi 9717 9718fi 9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 9720$as_echo "$ac_cv_func_setpgrp_void" >&6; } 9721if test $ac_cv_func_setpgrp_void = yes; then 9722 9723$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 9724 9725fi 9726 9727case "$host_os" in 9728 *cygwin*) 9729 ;; 9730 *) 9731 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 9733$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 9734if ${am_cv_langinfo_codeset+:} false; then : 9735 $as_echo_n "(cached) " >&6 9736else 9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9738/* end confdefs.h. */ 9739#include <langinfo.h> 9740int 9741main () 9742{ 9743char* cs = nl_langinfo(CODESET); return !cs; 9744 ; 9745 return 0; 9746} 9747_ACEOF 9748if ac_fn_c_try_link "$LINENO"; then : 9749 am_cv_langinfo_codeset=yes 9750else 9751 am_cv_langinfo_codeset=no 9752fi 9753rm -f core conftest.err conftest.$ac_objext \ 9754 conftest$ac_exeext conftest.$ac_ext 9755 9756fi 9757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 9758$as_echo "$am_cv_langinfo_codeset" >&6; } 9759 if test $am_cv_langinfo_codeset = yes; then 9760 9761$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 9762 9763 fi 9764 9765 ;; 9766esac 9767 9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 9769$as_echo_n "checking for sigsetjmp... " >&6; } 9770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9771/* end confdefs.h. */ 9772#include <setjmp.h> 9773int 9774main () 9775{ 9776 jmp_buf env; 9777 if (sigsetjmp(env, 1) != 0) { exit(0); } siglongjmp(env, 1); 9778 ; 9779 return 0; 9780} 9781_ACEOF 9782if ac_fn_c_try_compile "$LINENO"; then : 9783 have_sigsetjmp="yes"; $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h 9784 9785else 9786 have_sigsetjmp="no" 9787fi 9788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sigsetjmp" >&5 9790$as_echo "$have_sigsetjmp" >&6; } 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 9792$as_echo_n "checking return type of signal handlers... " >&6; } 9793if ${ac_cv_type_signal+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795else 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798#include <sys/types.h> 9799#include <signal.h> 9800 9801int 9802main () 9803{ 9804return *(signal (0, 0)) (0) == 1; 9805 ; 9806 return 0; 9807} 9808_ACEOF 9809if ac_fn_c_try_compile "$LINENO"; then : 9810 ac_cv_type_signal=int 9811else 9812 ac_cv_type_signal=void 9813fi 9814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9815fi 9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 9817$as_echo "$ac_cv_type_signal" >&6; } 9818 9819cat >>confdefs.h <<_ACEOF 9820#define RETSIGTYPE $ac_cv_type_signal 9821_ACEOF 9822 9823 9824 9825 9826 if test x"$ac_cv_type_signal" = xvoid; then 9827 $as_echo "#define SIGNAL_RETURN return" >>confdefs.h 9828 9829 else 9830 $as_echo "#define SIGNAL_RETURN return 0" >>confdefs.h 9831 9832 fi 9833 9834 9835HELP_DIR="$datadir/$PACKAGE" 9836$as_echo "#define HELP_DIR \"\$HELP_DIR\"" >>confdefs.h 9837 9838 9839RC_DIR="~/.$PACKAGE" 9840$as_echo "#define RC_DIR \"\$RC_DIR\"" >>confdefs.h 9841 9842 9843DOCDIRS="doc:en_English doc-jp:ja_Japanese doc-de:de_German" 9844cat >>confdefs.h <<_ACEOF 9845#define DOCDIRS "$DOCDIRS" 9846_ACEOF 9847 9848 9849 9850 cvsver=`$AWK '\$1 ~ /Id:/ { print \$3}' $srcdir/ChangeLog` 9851 ymdver=`sed -e 's/ .*//;s/-//g;q' $srcdir/ChangeLog` 9852 sed -e 's/define CURRENT_VERSION "\(.*\)YYYYMMDD/define CURRENT_VERSION "\1'$ymdver'/;s/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c 9853 CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c` 9854ac_config_files="$ac_config_files Makefile posubst po/Makefile.in scripts/Makefile scripts/dirlist.cgi scripts/w3mhelp.cgi scripts/w3mmail.cgi scripts/xface2xpm scripts/multipart/Makefile scripts/multipart/multipart.cgi scripts/w3mman/Makefile scripts/w3mman/w3mman scripts/w3mman/w3mman.1 scripts/w3mman/w3mman.de.1 scripts/w3mman/w3mman2html.cgi libwc/Makefile w3mimg/Makefile w3mimg/fb/Makefile w3mimg/x11/Makefile w3mimg/win/Makefile w3mhelp-w3m_en.html w3mhelp-w3m_ja.html w3mhelp-lynx_en.html w3mhelp-lynx_ja.html" 9855 9856cat >confcache <<\_ACEOF 9857# This file is a shell script that caches the results of configure 9858# tests run on this system so they can be shared between configure 9859# scripts and configure runs, see configure's option --config-cache. 9860# It is not useful on other systems. If it contains results you don't 9861# want to keep, you may remove or edit it. 9862# 9863# config.status only pays attention to the cache file if you give it 9864# the --recheck option to rerun configure. 9865# 9866# `ac_cv_env_foo' variables (set or unset) will be overridden when 9867# loading this file, other *unset* `ac_cv_foo' will be assigned the 9868# following values. 9869 9870_ACEOF 9871 9872# The following way of writing the cache mishandles newlines in values, 9873# but we know of no workaround that is simple, portable, and efficient. 9874# So, we kill variables containing newlines. 9875# Ultrix sh set writes to stderr and can't be redirected directly, 9876# and sets the high bit in the cache file unless we assign to the vars. 9877( 9878 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9879 eval ac_val=\$$ac_var 9880 case $ac_val in #( 9881 *${as_nl}*) 9882 case $ac_var in #( 9883 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9884$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9885 esac 9886 case $ac_var in #( 9887 _ | IFS | as_nl) ;; #( 9888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9889 *) { eval $ac_var=; unset $ac_var;} ;; 9890 esac ;; 9891 esac 9892 done 9893 9894 (set) 2>&1 | 9895 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9896 *${as_nl}ac_space=\ *) 9897 # `set' does not quote correctly, so add quotes: double-quote 9898 # substitution turns \\\\ into \\, and sed turns \\ into \. 9899 sed -n \ 9900 "s/'/'\\\\''/g; 9901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9902 ;; #( 9903 *) 9904 # `set' quotes correctly as required by POSIX, so do not add quotes. 9905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9906 ;; 9907 esac | 9908 sort 9909) | 9910 sed ' 9911 /^ac_cv_env_/b end 9912 t clear 9913 :clear 9914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9915 t end 9916 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9917 :end' >>confcache 9918if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9919 if test -w "$cache_file"; then 9920 if test "x$cache_file" != "x/dev/null"; then 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9922$as_echo "$as_me: updating cache $cache_file" >&6;} 9923 if test ! -f "$cache_file" || test -h "$cache_file"; then 9924 cat confcache >"$cache_file" 9925 else 9926 case $cache_file in #( 9927 */* | ?:*) 9928 mv -f confcache "$cache_file"$$ && 9929 mv -f "$cache_file"$$ "$cache_file" ;; #( 9930 *) 9931 mv -f confcache "$cache_file" ;; 9932 esac 9933 fi 9934 fi 9935 else 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9937$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9938 fi 9939fi 9940rm -f confcache 9941 9942test "x$prefix" = xNONE && prefix=$ac_default_prefix 9943# Let make expand exec_prefix. 9944test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9945 9946DEFS=-DHAVE_CONFIG_H 9947 9948ac_libobjs= 9949ac_ltlibobjs= 9950U= 9951for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9952 # 1. Remove the extension, and $U if already installed. 9953 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9954 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9955 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9956 # will be set to the directory where LIBOBJS objects are built. 9957 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9958 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9959done 9960LIBOBJS=$ac_libobjs 9961 9962LTLIBOBJS=$ac_ltlibobjs 9963 9964 9965 9966: "${CONFIG_STATUS=./config.status}" 9967ac_write_fail=0 9968ac_clean_files_save=$ac_clean_files 9969ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9970{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9971$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9972as_write_fail=0 9973cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9974#! $SHELL 9975# Generated by $as_me. 9976# Run this file to recreate the current configuration. 9977# Compiler output produced by configure, useful for debugging 9978# configure, is in config.log if it exists. 9979 9980debug=false 9981ac_cs_recheck=false 9982ac_cs_silent=false 9983 9984SHELL=\${CONFIG_SHELL-$SHELL} 9985export SHELL 9986_ASEOF 9987cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9988## -------------------- ## 9989## M4sh Initialization. ## 9990## -------------------- ## 9991 9992# Be more Bourne compatible 9993DUALCASE=1; export DUALCASE # for MKS sh 9994if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9995 emulate sh 9996 NULLCMD=: 9997 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9998 # is contrary to our usage. Disable this feature. 9999 alias -g '${1+"$@"}'='"$@"' 10000 setopt NO_GLOB_SUBST 10001else 10002 case `(set -o) 2>/dev/null` in #( 10003 *posix*) : 10004 set -o posix ;; #( 10005 *) : 10006 ;; 10007esac 10008fi 10009 10010 10011as_nl=' 10012' 10013export as_nl 10014# Printing a long string crashes Solaris 7 /usr/bin/printf. 10015as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10016as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10017as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10018# Prefer a ksh shell builtin over an external printf program on Solaris, 10019# but without wasting forks for bash or zsh. 10020if test -z "$BASH_VERSION$ZSH_VERSION" \ 10021 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10022 as_echo='print -r --' 10023 as_echo_n='print -rn --' 10024elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10025 as_echo='printf %s\n' 10026 as_echo_n='printf %s' 10027else 10028 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10029 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10030 as_echo_n='/usr/ucb/echo -n' 10031 else 10032 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10033 as_echo_n_body='eval 10034 arg=$1; 10035 case $arg in #( 10036 *"$as_nl"*) 10037 expr "X$arg" : "X\\(.*\\)$as_nl"; 10038 arg=`expr \( "X$arg" : ".*$as_nl\\(.*\\)" \)`;; 10039 esac; 10040 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10041 ' 10042 export as_echo_n_body 10043 as_echo_n='sh -c $as_echo_n_body as_echo' 10044 fi 10045 export as_echo_body 10046 as_echo='sh -c $as_echo_body as_echo' 10047fi 10048 10049# The user is always right. 10050if test "${PATH_SEPARATOR+set}" != set; then 10051 PATH_SEPARATOR=: 10052 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10053 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10054 PATH_SEPARATOR=';' 10055 } 10056fi 10057 10058 10059# IFS 10060# We need space, tab and new line, in precisely that order. Quoting is 10061# there to prevent editors from complaining about space-tab. 10062# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10063# splitting by setting IFS to empty value.) 10064IFS=" "" $as_nl" 10065 10066# Find who we are. Look in the path if we contain no directory separator. 10067as_myself= 10068case $0 in #(( 10069 *[\\/]* ) as_myself=$0 ;; 10070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10071for as_dir in $PATH 10072do 10073 IFS=$as_save_IFS 10074 test -z "$as_dir" && as_dir=. 10075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10076 done 10077IFS=$as_save_IFS 10078 10079 ;; 10080esac 10081# We did not find ourselves, most probably we were run as `sh COMMAND' 10082# in which case we are not to be found in the path. 10083if test "x$as_myself" = x; then 10084 as_myself=$0 10085fi 10086if test ! -f "$as_myself"; then 10087 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10088 exit 1 10089fi 10090 10091# Unset variables that we do not need and which cause bugs (e.g. in 10092# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10093# suppresses any "Segmentation fault" message there. '((' could 10094# trigger a bug in pdksh 5.2.14. 10095for as_var in BASH_ENV ENV MAIL MAILPATH 10096do eval test x\${$as_var+set} = xset \ 10097 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10098done 10099PS1='$ ' 10100PS2='> ' 10101PS4='+ ' 10102 10103# NLS nuisances. 10104LC_ALL=C 10105export LC_ALL 10106LANGUAGE=C 10107export LANGUAGE 10108 10109# CDPATH. 10110(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10111 10112 10113# as_fn_error STATUS ERROR [LINENO LOG_FD] 10114# ---------------------------------------- 10115# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10116# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10117# script with STATUS, using 1 if that was 0. 10118as_fn_error () 10119{ 10120 as_status=$1; test $as_status -eq 0 && as_status=1 10121 if test "$4"; then 10122 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10123 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10124 fi 10125 $as_echo "$as_me: error: $2" >&2 10126 as_fn_exit $as_status 10127} # as_fn_error 10128 10129 10130# as_fn_set_status STATUS 10131# ----------------------- 10132# Set $? to STATUS, without forking. 10133as_fn_set_status () 10134{ 10135 return $1 10136} # as_fn_set_status 10137 10138# as_fn_exit STATUS 10139# ----------------- 10140# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10141as_fn_exit () 10142{ 10143 set +e 10144 as_fn_set_status $1 10145 exit $1 10146} # as_fn_exit 10147 10148# as_fn_unset VAR 10149# --------------- 10150# Portably unset VAR. 10151as_fn_unset () 10152{ 10153 { eval $1=; unset $1;} 10154} 10155as_unset=as_fn_unset 10156# as_fn_append VAR VALUE 10157# ---------------------- 10158# Append the text in VALUE to the end of the definition contained in VAR. Take 10159# advantage of any shell optimizations that allow amortized linear growth over 10160# repeated appends, instead of the typical quadratic growth present in naive 10161# implementations. 10162if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10163 eval 'as_fn_append () 10164 { 10165 eval $1+=\$2 10166 }' 10167else 10168 as_fn_append () 10169 { 10170 eval $1=\$$1\$2 10171 } 10172fi # as_fn_append 10173 10174# as_fn_arith ARG... 10175# ------------------ 10176# Perform arithmetic evaluation on the ARGs, and store the result in the 10177# global $as_val. Take advantage of shells that can avoid forks. The arguments 10178# must be portable across $(()) and expr. 10179if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10180 eval 'as_fn_arith () 10181 { 10182 as_val=$(( $* )) 10183 }' 10184else 10185 as_fn_arith () 10186 { 10187 as_val=`expr "$@" || test $? -eq 1` 10188 } 10189fi # as_fn_arith 10190 10191 10192if expr a : '\(a\)' >/dev/null 2>&1 && 10193 test "X`expr \( 00001 : '.*\(...\)' \)`" = X001; then 10194 as_expr=expr 10195else 10196 as_expr=false 10197fi 10198 10199if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10200 as_basename=basename 10201else 10202 as_basename=false 10203fi 10204 10205if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10206 as_dirname=dirname 10207else 10208 as_dirname=false 10209fi 10210 10211as_me=`$as_basename -- "$0" || 10212$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10213 X"$0" : 'X\(//\)$' \| \ 10214 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10215$as_echo X/"$0" | 10216 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10217 s//\1/ 10218 q 10219 } 10220 /^X\/\(\/\/\)$/{ 10221 s//\1/ 10222 q 10223 } 10224 /^X\/\(\/\).*/{ 10225 s//\1/ 10226 q 10227 } 10228 s/.*/./; q'` 10229 10230# Avoid depending upon Character Ranges. 10231as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10233as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10234as_cr_digits='0123456789' 10235as_cr_alnum=$as_cr_Letters$as_cr_digits 10236 10237ECHO_C= ECHO_N= ECHO_T= 10238case `echo -n x` in #((((( 10239-n*) 10240 case `echo 'xy\c'` in 10241 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10242 xy) ECHO_C='\c';; 10243 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10244 ECHO_T=' ';; 10245 esac;; 10246*) 10247 ECHO_N='-n';; 10248esac 10249 10250rm -f conf$$ conf$$.exe conf$$.file 10251if test -d conf$$.dir; then 10252 rm -f conf$$.dir/conf$$.file 10253else 10254 rm -f conf$$.dir 10255 mkdir conf$$.dir 2>/dev/null 10256fi 10257if (echo >conf$$.file) 2>/dev/null; then 10258 if ln -s conf$$.file conf$$ 2>/dev/null; then 10259 as_ln_s='ln -s' 10260 # ... but there are two gotchas: 10261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10263 # In both cases, we have to default to `cp -pR'. 10264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10265 as_ln_s='cp -pR' 10266 elif ln conf$$.file conf$$ 2>/dev/null; then 10267 as_ln_s=ln 10268 else 10269 as_ln_s='cp -pR' 10270 fi 10271else 10272 as_ln_s='cp -pR' 10273fi 10274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10275rmdir conf$$.dir 2>/dev/null 10276 10277 10278# as_fn_mkdir_p 10279# ------------- 10280# Create "$as_dir" as a directory, including parents if necessary. 10281as_fn_mkdir_p () 10282{ 10283 10284 case $as_dir in #( 10285 -*) as_dir=./$as_dir;; 10286 esac 10287 test -d "$as_dir" || eval $as_mkdir_p || { 10288 as_dirs= 10289 while :; do 10290 case $as_dir in #( 10291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10292 *) as_qdir=$as_dir;; 10293 esac 10294 as_dirs="'$as_qdir' $as_dirs" 10295 as_dir=`$as_dirname -- "$as_dir" || 10296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10297 X"$as_dir" : 'X\(//\)[^/]' \| \ 10298 X"$as_dir" : 'X\(//\)$' \| \ 10299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10300$as_echo X"$as_dir" | 10301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10302 s//\1/ 10303 q 10304 } 10305 /^X\(\/\/\)[^/].*/{ 10306 s//\1/ 10307 q 10308 } 10309 /^X\(\/\/\)$/{ 10310 s//\1/ 10311 q 10312 } 10313 /^X\(\/\).*/{ 10314 s//\1/ 10315 q 10316 } 10317 s/.*/./; q'` 10318 test -d "$as_dir" && break 10319 done 10320 test -z "$as_dirs" || eval "mkdir $as_dirs" 10321 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10322 10323 10324} # as_fn_mkdir_p 10325if mkdir -p . 2>/dev/null; then 10326 as_mkdir_p='mkdir -p "$as_dir"' 10327else 10328 test -d ./-p && rmdir ./-p 10329 as_mkdir_p=false 10330fi 10331 10332 10333# as_fn_executable_p FILE 10334# ----------------------- 10335# Test if FILE is an executable regular file. 10336as_fn_executable_p () 10337{ 10338 test -f "$1" && test -x "$1" 10339} # as_fn_executable_p 10340as_test_x='test -x' 10341as_executable_p=as_fn_executable_p 10342 10343# Sed expression to map a string onto a valid CPP name. 10344as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10345 10346# Sed expression to map a string onto a valid variable name. 10347as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10348 10349 10350exec 6>&1 10351## ----------------------------------- ## 10352## Main body of $CONFIG_STATUS script. ## 10353## ----------------------------------- ## 10354_ASEOF 10355test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10356 10357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10358# Save the log message, to keep $0 and so on meaningful, and to 10359# report actual input values of CONFIG_FILES etc. instead of their 10360# values after options handling. 10361ac_log=" 10362This file was extended by w3m $as_me 0.5.3, which was 10363generated by GNU Autoconf 2.69. Invocation command line was 10364 10365 CONFIG_FILES = $CONFIG_FILES 10366 CONFIG_HEADERS = $CONFIG_HEADERS 10367 CONFIG_LINKS = $CONFIG_LINKS 10368 CONFIG_COMMANDS = $CONFIG_COMMANDS 10369 $ $0 $@ 10370 10371on `(hostname || uname -n) 2>/dev/null | sed 1q` 10372" 10373 10374_ACEOF 10375 10376case $ac_config_files in *" 10377"*) set x $ac_config_files; shift; ac_config_files=$*;; 10378esac 10379 10380case $ac_config_headers in *" 10381"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10382esac 10383 10384 10385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10386# Files that config.status was made for. 10387config_files="$ac_config_files" 10388config_headers="$ac_config_headers" 10389config_commands="$ac_config_commands" 10390 10391_ACEOF 10392 10393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10394ac_cs_usage="\ 10395\`$as_me' instantiates files and other configuration actions 10396from templates according to the current configuration. Unless the files 10397and actions are specified as TAGs, all are instantiated by default. 10398 10399Usage: $0 [OPTION]... [TAG]... 10400 10401 -h, --help print this help, then exit 10402 -V, --version print version number and configuration settings, then exit 10403 --config print configuration, then exit 10404 -q, --quiet, --silent 10405 do not print progress messages 10406 -d, --debug don't remove temporary files 10407 --recheck update $as_me by reconfiguring in the same conditions 10408 --file=FILE[:TEMPLATE] 10409 instantiate the configuration file FILE 10410 --header=FILE[:TEMPLATE] 10411 instantiate the configuration header FILE 10412 10413Configuration files: 10414$config_files 10415 10416Configuration headers: 10417$config_headers 10418 10419Configuration commands: 10420$config_commands 10421 10422Report bugs to the package provider." 10423 10424_ACEOF 10425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10426ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10427ac_cs_version="\\ 10428w3m config.status 0.5.3 10429configured by $0, generated by GNU Autoconf 2.69, 10430 with options \\"\$ac_cs_config\\" 10431 10432Copyright (C) 2012 Free Software Foundation, Inc. 10433This config.status script is free software; the Free Software Foundation 10434gives unlimited permission to copy, distribute and modify it." 10435 10436ac_pwd='$ac_pwd' 10437srcdir='$srcdir' 10438INSTALL='$INSTALL' 10439MKDIR_P='$MKDIR_P' 10440AWK='$AWK' 10441test -n "\$AWK" || AWK=awk 10442_ACEOF 10443 10444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10445# The default lists apply if the user does not specify any file. 10446ac_need_defaults=: 10447while test $# != 0 10448do 10449 case $1 in 10450 --*=?*) 10451 ac_option=`expr \( "X$1" : 'X\([^=]*\)=' \)` 10452 ac_optarg=`expr \( "X$1" : 'X[^=]*=\(.*\)' \)` 10453 ac_shift=: 10454 ;; 10455 --*=) 10456 ac_option=`expr \( "X$1" : 'X\([^=]*\)=' \)` 10457 ac_optarg= 10458 ac_shift=: 10459 ;; 10460 *) 10461 ac_option=$1 10462 ac_optarg=$2 10463 ac_shift=shift 10464 ;; 10465 esac 10466 10467 case $ac_option in 10468 # Handling of the options. 10469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10470 ac_cs_recheck=: ;; 10471 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10472 $as_echo "$ac_cs_version"; exit ;; 10473 --config | --confi | --conf | --con | --co | --c ) 10474 $as_echo "$ac_cs_config"; exit ;; 10475 --debug | --debu | --deb | --de | --d | -d ) 10476 debug=: ;; 10477 --file | --fil | --fi | --f ) 10478 $ac_shift 10479 case $ac_optarg in 10480 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10481 '') as_fn_error $? "missing file argument" ;; 10482 esac 10483 as_fn_append CONFIG_FILES " '$ac_optarg'" 10484 ac_need_defaults=false;; 10485 --header | --heade | --head | --hea ) 10486 $ac_shift 10487 case $ac_optarg in 10488 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10489 esac 10490 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10491 ac_need_defaults=false;; 10492 --he | --h) 10493 # Conflict between --help and --header 10494 as_fn_error $? "ambiguous option: \`$1' 10495Try \`$0 --help' for more information.";; 10496 --help | --hel | -h ) 10497 $as_echo "$ac_cs_usage"; exit ;; 10498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10499 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10500 ac_cs_silent=: ;; 10501 10502 # This is an error. 10503 -*) as_fn_error $? "unrecognized option: \`$1' 10504Try \`$0 --help' for more information." ;; 10505 10506 *) as_fn_append ac_config_targets " $1" 10507 ac_need_defaults=false ;; 10508 10509 esac 10510 shift 10511done 10512 10513ac_configure_extra_args= 10514 10515if $ac_cs_silent; then 10516 exec 6>/dev/null 10517 ac_configure_extra_args="$ac_configure_extra_args --silent" 10518fi 10519 10520_ACEOF 10521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10522if \$ac_cs_recheck; then 10523 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10524 shift 10525 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10526 CONFIG_SHELL='$SHELL' 10527 export CONFIG_SHELL 10528 exec "\$@" 10529fi 10530 10531_ACEOF 10532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10533exec 5>>config.log 10534{ 10535 echo 10536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10537## Running $as_me. ## 10538_ASBOX 10539 $as_echo "$ac_log" 10540} >&5 10541 10542_ACEOF 10543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10544# 10545# INIT-COMMANDS 10546# 10547# Capture the value of obsolete ALL_LINGUAS because we need it to compute 10548 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 10549 # from automake < 1.5. 10550 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 10551 # Capture the value of LINGUAS because we need it to compute CATALOGS. 10552 LINGUAS="${LINGUAS-%UNSET%}" 10553 10554 10555_ACEOF 10556 10557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10558 10559# Handling of arguments. 10560for ac_config_target in $ac_config_targets 10561do 10562 case $ac_config_target in 10563 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10564 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 10565 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10566 "posubst") CONFIG_FILES="$CONFIG_FILES posubst" ;; 10567 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 10568 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 10569 "scripts/dirlist.cgi") CONFIG_FILES="$CONFIG_FILES scripts/dirlist.cgi" ;; 10570 "scripts/w3mhelp.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mhelp.cgi" ;; 10571 "scripts/w3mmail.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mmail.cgi" ;; 10572 "scripts/xface2xpm") CONFIG_FILES="$CONFIG_FILES scripts/xface2xpm" ;; 10573 "scripts/multipart/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/multipart/Makefile" ;; 10574 "scripts/multipart/multipart.cgi") CONFIG_FILES="$CONFIG_FILES scripts/multipart/multipart.cgi" ;; 10575 "scripts/w3mman/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/Makefile" ;; 10576 "scripts/w3mman/w3mman") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman" ;; 10577 "scripts/w3mman/w3mman.1") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman.1" ;; 10578 "scripts/w3mman/w3mman.de.1") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman.de.1" ;; 10579 "scripts/w3mman/w3mman2html.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman2html.cgi" ;; 10580 "libwc/Makefile") CONFIG_FILES="$CONFIG_FILES libwc/Makefile" ;; 10581 "w3mimg/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/Makefile" ;; 10582 "w3mimg/fb/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/fb/Makefile" ;; 10583 "w3mimg/x11/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/x11/Makefile" ;; 10584 "w3mimg/win/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/win/Makefile" ;; 10585 "w3mhelp-w3m_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_en.html" ;; 10586 "w3mhelp-w3m_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_ja.html" ;; 10587 "w3mhelp-lynx_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_en.html" ;; 10588 "w3mhelp-lynx_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_ja.html" ;; 10589 10590 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10591 esac 10592done 10593 10594 10595# If the user did not use the arguments to specify the items to instantiate, 10596# then the envvar interface is used. Set only those that are not. 10597# We use the long form for the default assignment because of an extremely 10598# bizarre bug on SunOS 4.1.3. 10599if $ac_need_defaults; then 10600 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10601 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10602 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10603fi 10604 10605# Have a temporary directory for convenience. Make it in the build tree 10606# simply because there is no reason against having it here, and in addition, 10607# creating and moving files from /tmp can sometimes cause problems. 10608# Hook for its removal unless debugging. 10609# Note that there is a small window in which the directory will not be cleaned: 10610# after its creation but before its name has been assigned to `$tmp'. 10611$debug || 10612{ 10613 tmp= ac_tmp= 10614 trap 'exit_status=$? 10615 : "${ac_tmp:=$tmp}" 10616 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10617' 0 10618 trap 'as_fn_exit 1' 1 2 13 15 10619} 10620# Create a (secure) tmp directory for tmp files. 10621 10622{ 10623 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10624 test -d "$tmp" 10625} || 10626{ 10627 tmp=./conf$$-$RANDOM 10628 (umask 077 && mkdir "$tmp") 10629} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10630ac_tmp=$tmp 10631 10632# Set up the scripts for CONFIG_FILES section. 10633# No need to generate them if there are no CONFIG_FILES. 10634# This happens for instance with `./config.status config.h'. 10635if test -n "$CONFIG_FILES"; then 10636 10637 10638ac_cr=`echo X | tr X '\015'` 10639# On cygwin, bash can eat \r inside `` if the user requested igncr. 10640# But we know of no other shell where ac_cr would be empty at this 10641# point, so we can use a bashism as a fallback. 10642if test "x$ac_cr" = x; then 10643 eval ac_cr=\$\'\\r\' 10644fi 10645ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10646if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10647 ac_cs_awk_cr='\\r' 10648else 10649 ac_cs_awk_cr=$ac_cr 10650fi 10651 10652echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10653_ACEOF 10654 10655 10656{ 10657 echo "cat >conf$$subs.awk <<_ACEOF" && 10658 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10659 echo "_ACEOF" 10660} >conf$$subs.sh || 10661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10662ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10663ac_delim='%!_!# ' 10664for ac_last_try in false false false false false :; do 10665 . ./conf$$subs.sh || 10666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10667 10668 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10669 if test $ac_delim_n = $ac_delim_num; then 10670 break 10671 elif $ac_last_try; then 10672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10673 else 10674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10675 fi 10676done 10677rm -f conf$$subs.sh 10678 10679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10680cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10681_ACEOF 10682sed -n ' 10683h 10684s/^/S["/; s/!.*/"]=/ 10685p 10686g 10687s/^[^!]*!// 10688:repl 10689t repl 10690s/'"$ac_delim"'$// 10691t delim 10692:nl 10693h 10694s/\(.\{148\}\)..*/\1/ 10695t more1 10696s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10697p 10698n 10699b repl 10700:more1 10701s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10702p 10703g 10704s/.\{148\}// 10705t nl 10706:delim 10707h 10708s/\(.\{148\}\)..*/\1/ 10709t more2 10710s/["\\]/\\&/g; s/^/"/; s/$/"/ 10711p 10712b 10713:more2 10714s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10715p 10716g 10717s/.\{148\}// 10718t delim 10719' <conf$$subs.awk | sed ' 10720/^[^""]/{ 10721 N 10722 s/\n// 10723} 10724' >>$CONFIG_STATUS || ac_write_fail=1 10725rm -f conf$$subs.awk 10726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10727_ACAWK 10728cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10729 for (key in S) S_is_set[key] = 1 10730 FS = "" 10731 10732} 10733{ 10734 line = $ 0 10735 nfields = split(line, field, "@") 10736 substed = 0 10737 len = length(field[1]) 10738 for (i = 2; i < nfields; i++) { 10739 key = field[i] 10740 keylen = length(key) 10741 if (S_is_set[key]) { 10742 value = S[key] 10743 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10744 len += length(value) + length(field[++i]) 10745 substed = 1 10746 } else 10747 len += 1 + keylen 10748 } 10749 10750 print line 10751} 10752 10753_ACAWK 10754_ACEOF 10755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10756if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10757 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10758else 10759 cat 10760fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10761 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10762_ACEOF 10763 10764# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10765# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10766# trailing colons and then remove the whole line if VPATH becomes empty 10767# (actually we leave an empty line to preserve line numbers). 10768if test "x$srcdir" = x.; then 10769 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10770h 10771s/// 10772s/^/:/ 10773s/[ ]*$/:/ 10774s/:\$(srcdir):/:/g 10775s/:\${srcdir}:/:/g 10776s/:@srcdir@:/:/g 10777s/^:*// 10778s/:*$// 10779x 10780s/\(=[ ]*\).*/\1/ 10781G 10782s/\n// 10783s/^[^=]*=[ ]*$// 10784}' 10785fi 10786 10787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10788fi # test -n "$CONFIG_FILES" 10789 10790# Set up the scripts for CONFIG_HEADERS section. 10791# No need to generate them if there are no CONFIG_HEADERS. 10792# This happens for instance with `./config.status Makefile'. 10793if test -n "$CONFIG_HEADERS"; then 10794cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10795BEGIN { 10796_ACEOF 10797 10798# Transform confdefs.h into an awk script `defines.awk', embedded as 10799# here-document in config.status, that substitutes the proper values into 10800# config.h.in to produce config.h. 10801 10802# Create a delimiter string that does not exist in confdefs.h, to ease 10803# handling of long lines. 10804ac_delim='%!_!# ' 10805for ac_last_try in false false :; do 10806 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10807 if test -z "$ac_tt"; then 10808 break 10809 elif $ac_last_try; then 10810 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10811 else 10812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10813 fi 10814done 10815 10816# For the awk script, D is an array of macro values keyed by name, 10817# likewise P contains macro parameters if any. Preserve backslash 10818# newline sequences. 10819 10820ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10821sed -n ' 10822s/.\{148\}/&'"$ac_delim"'/g 10823t rset 10824:rset 10825s/^[ ]*#[ ]*define[ ][ ]*/ / 10826t def 10827d 10828:def 10829s/\\$// 10830t bsnl 10831s/["\\]/\\&/g 10832s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10833D["\1"]=" \3"/p 10834s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10835d 10836:bsnl 10837s/["\\]/\\&/g 10838s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10839D["\1"]=" \3\\\\\\n"\\/p 10840t cont 10841s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10842t cont 10843d 10844:cont 10845n 10846s/.\{148\}/&'"$ac_delim"'/g 10847t clear 10848:clear 10849s/\\$// 10850t bsnlc 10851s/["\\]/\\&/g; s/^/"/; s/$/"/p 10852d 10853:bsnlc 10854s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10855b cont 10856' <confdefs.h | sed ' 10857s/'"$ac_delim"'/"\\\ 10858"/g' >>$CONFIG_STATUS || ac_write_fail=1 10859 10860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10861 for (key in D) D_is_set[key] = 1 10862 FS = "" 10863} 10864/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10865 line = \$ 0 10866 split(line, arg, " ") 10867 if (arg[1] == "#") { 10868 defundef = arg[2] 10869 mac1 = arg[3] 10870 } else { 10871 defundef = substr(arg[1], 2) 10872 mac1 = arg[2] 10873 } 10874 split(mac1, mac2, "(") #) 10875 macro = mac2[1] 10876 prefix = substr(line, 1, index(line, defundef) - 1) 10877 if (D_is_set[macro]) { 10878 # Preserve the white space surrounding the "#". 10879 print prefix "define", macro P[macro] D[macro] 10880 next 10881 } else { 10882 # Replace #undef with comments. This is necessary, for example, 10883 # in the case of _POSIX_SOURCE, which is predefined and required 10884 # on some systems where configure will not decide to define it. 10885 if (defundef == "undef") { 10886 print "/*", prefix defundef, macro, "*/" 10887 next 10888 } 10889 } 10890} 10891{ print } 10892_ACAWK 10893_ACEOF 10894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10895 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10896fi # test -n "$CONFIG_HEADERS" 10897 10898 10899eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10900shift 10901for ac_tag 10902do 10903 case $ac_tag in 10904 :[FHLC]) ac_mode=$ac_tag; continue;; 10905 esac 10906 case $ac_mode$ac_tag in 10907 :[FHL]*:*);; 10908 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10909 :[FH]-) ac_tag=-:-;; 10910 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10911 esac 10912 ac_save_IFS=$IFS 10913 IFS=: 10914 set x $ac_tag 10915 IFS=$ac_save_IFS 10916 shift 10917 ac_file=$1 10918 shift 10919 10920 case $ac_mode in 10921 :L) ac_source=$1;; 10922 :[FH]) 10923 ac_file_inputs= 10924 for ac_f 10925 do 10926 case $ac_f in 10927 -) ac_f="$ac_tmp/stdin";; 10928 *) # Look for the file first in the build tree, then in the source tree 10929 # (if the path is not absolute). The absolute path cannot be DOS-style, 10930 # because $ac_f cannot contain `:'. 10931 test -f "$ac_f" || 10932 case $ac_f in 10933 [\\/$]*) false;; 10934 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10935 esac || 10936 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10937 esac 10938 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10939 as_fn_append ac_file_inputs " '$ac_f'" 10940 done 10941 10942 # Let's still pretend it is `configure' which instantiates (i.e., don't 10943 # use $as_me), people would be surprised to read: 10944 # /* config.h. Generated by config.status. */ 10945 configure_input='Generated from '` 10946 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10947 `' by configure.' 10948 if test x"$ac_file" != x-; then 10949 configure_input="$ac_file. $configure_input" 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10951$as_echo "$as_me: creating $ac_file" >&6;} 10952 fi 10953 # Neutralize special characters interpreted by sed in replacement strings. 10954 case $configure_input in #( 10955 *\&* | *\|* | *\\* ) 10956 ac_sed_conf_input=`$as_echo "$configure_input" | 10957 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10958 *) ac_sed_conf_input=$configure_input;; 10959 esac 10960 10961 case $ac_tag in 10962 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10964 esac 10965 ;; 10966 esac 10967 10968 ac_dir=`$as_dirname -- "$ac_file" || 10969$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10970 X"$ac_file" : 'X\(//\)[^/]' \| \ 10971 X"$ac_file" : 'X\(//\)$' \| \ 10972 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10973$as_echo X"$ac_file" | 10974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10975 s//\1/ 10976 q 10977 } 10978 /^X\(\/\/\)[^/].*/{ 10979 s//\1/ 10980 q 10981 } 10982 /^X\(\/\/\)$/{ 10983 s//\1/ 10984 q 10985 } 10986 /^X\(\/\).*/{ 10987 s//\1/ 10988 q 10989 } 10990 s/.*/./; q'` 10991 as_dir="$ac_dir"; as_fn_mkdir_p 10992 ac_builddir=. 10993 10994case "$ac_dir" in 10995.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10996*) 10997 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10998 # A ".." for each directory in $ac_dir_suffix. 10999 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11000 case $ac_top_builddir_sub in 11001 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11002 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11003 esac ;; 11004esac 11005ac_abs_top_builddir=$ac_pwd 11006ac_abs_builddir=$ac_pwd$ac_dir_suffix 11007# for backward compatibility: 11008ac_top_builddir=$ac_top_build_prefix 11009 11010case $srcdir in 11011 .) # We are building in place. 11012 ac_srcdir=. 11013 ac_top_srcdir=$ac_top_builddir_sub 11014 ac_abs_top_srcdir=$ac_pwd ;; 11015 [\\/]* | ?:[\\/]* ) # Absolute name. 11016 ac_srcdir=$srcdir$ac_dir_suffix; 11017 ac_top_srcdir=$srcdir 11018 ac_abs_top_srcdir=$srcdir ;; 11019 *) # Relative name. 11020 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11021 ac_top_srcdir=$ac_top_build_prefix$srcdir 11022 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11023esac 11024ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11025 11026 11027 case $ac_mode in 11028 :F) 11029 # 11030 # CONFIG_FILE 11031 # 11032 11033 case $INSTALL in 11034 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11035 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11036 esac 11037 ac_MKDIR_P=$MKDIR_P 11038 case $MKDIR_P in 11039 [\\/$]* | ?:[\\/]* ) ;; 11040 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11041 esac 11042_ACEOF 11043 11044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11045# If the template does not know about datarootdir, expand it. 11046# FIXME: This hack should be removed a few years after 2.60. 11047ac_datarootdir_hack=; ac_datarootdir_seen= 11048ac_sed_dataroot=' 11049/datarootdir/ { 11050 p 11051 q 11052} 11053/@datadir@/p 11054/@docdir@/p 11055/@infodir@/p 11056/@localedir@/p 11057/@mandir@/p' 11058case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11059*datarootdir*) ac_datarootdir_seen=yes;; 11060*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11062$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11063_ACEOF 11064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11065 ac_datarootdir_hack=' 11066 s&@datadir@&$datadir&g 11067 s&@docdir@&$docdir&g 11068 s&@infodir@&$infodir&g 11069 s&@localedir@&$localedir&g 11070 s&@mandir@&$mandir&g 11071 s&\\\${datarootdir}&$datarootdir&g' ;; 11072esac 11073_ACEOF 11074 11075# Neutralize VPATH when `$srcdir' = `.'. 11076# Shell code in configure.ac might set extrasub. 11077# FIXME: do we really want to maintain this feature? 11078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11079ac_sed_extra="$ac_vpsub 11080$extrasub 11081_ACEOF 11082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11083:t 11084/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11085s|@configure_input@|$ac_sed_conf_input|;t t 11086s&@top_builddir@&$ac_top_builddir_sub&;t t 11087s&@top_build_prefix@&$ac_top_build_prefix&;t t 11088s&@srcdir@&$ac_srcdir&;t t 11089s&@abs_srcdir@&$ac_abs_srcdir&;t t 11090s&@top_srcdir@&$ac_top_srcdir&;t t 11091s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11092s&@builddir@&$ac_builddir&;t t 11093s&@abs_builddir@&$ac_abs_builddir&;t t 11094s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11095s&@INSTALL@&$ac_INSTALL&;t t 11096s&@MKDIR_P@&$ac_MKDIR_P&;t t 11097$ac_datarootdir_hack 11098" 11099eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11100 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11101 11102test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11103 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11104 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11105 "$ac_tmp/out"`; test -z "$ac_out"; } && 11106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11107which seems to be undefined. Please make sure it is defined" >&5 11108$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11109which seems to be undefined. Please make sure it is defined" >&2;} 11110 11111 rm -f "$ac_tmp/stdin" 11112 case $ac_file in 11113 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11114 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11115 esac \ 11116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11117 ;; 11118 :H) 11119 # 11120 # CONFIG_HEADER 11121 # 11122 if test x"$ac_file" != x-; then 11123 { 11124 $as_echo "/* $configure_input */" \ 11125 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11126 } >"$ac_tmp/config.h" \ 11127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11128 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11129 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11130$as_echo "$as_me: $ac_file is unchanged" >&6;} 11131 else 11132 rm -f "$ac_file" 11133 mv "$ac_tmp/config.h" "$ac_file" \ 11134 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11135 fi 11136 else 11137 $as_echo "/* $configure_input */" \ 11138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11139 || as_fn_error $? "could not create -" "$LINENO" 5 11140 fi 11141 ;; 11142 11143 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11144$as_echo "$as_me: executing $ac_file commands" >&6;} 11145 ;; 11146 esac 11147 11148 11149 case $ac_file$ac_mode in 11150 "po-directories":C) 11151 for ac_file in $CONFIG_FILES; do 11152 # Support "outfile[:infile[:infile...]]" 11153 case "$ac_file" in 11154 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 11155 esac 11156 # PO directories have a Makefile.in generated from Makefile.in.in. 11157 case "$ac_file" in */Makefile.in) 11158 # Adjust a relative srcdir. 11159 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 11160 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 11161 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 11162 # In autoconf-2.13 it is called $ac_given_srcdir. 11163 # In autoconf-2.50 it is called $srcdir. 11164 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 11165 case "$ac_given_srcdir" in 11166 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 11167 /*) top_srcdir="$ac_given_srcdir" ;; 11168 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 11169 esac 11170 # Treat a directory as a PO directory if and only if it has a 11171 # POTFILES.in file. This allows packages to have multiple PO 11172 # directories under different names or in different locations. 11173 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 11174 rm -f "$ac_dir/POTFILES" 11175 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 11176 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 11177 POMAKEFILEDEPS="POTFILES.in" 11178 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 11179 # on $ac_dir but don't depend on user-specified configuration 11180 # parameters. 11181 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 11182 # The LINGUAS file contains the set of available languages. 11183 if test -n "$OBSOLETE_ALL_LINGUAS"; then 11184 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 11185 fi 11186 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 11187 # Hide the ALL_LINGUAS assigment from automake < 1.5. 11188 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 11189 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 11190 else 11191 # The set of available languages was given in configure.in. 11192 # Hide the ALL_LINGUAS assigment from automake < 1.5. 11193 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 11194 fi 11195 # Compute POFILES 11196 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 11197 # Compute UPDATEPOFILES 11198 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 11199 # Compute DUMMYPOFILES 11200 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 11201 # Compute GMOFILES 11202 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 11203 case "$ac_given_srcdir" in 11204 .) srcdirpre= ;; 11205 *) srcdirpre='$(srcdir)/' ;; 11206 esac 11207 POFILES= 11208 UPDATEPOFILES= 11209 DUMMYPOFILES= 11210 GMOFILES= 11211 for lang in $ALL_LINGUAS; do 11212 POFILES="$POFILES $srcdirpre$lang.po" 11213 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 11214 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 11215 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 11216 done 11217 # CATALOGS depends on both $ac_dir and the user's LINGUAS 11218 # environment variable. 11219 INST_LINGUAS= 11220 if test -n "$ALL_LINGUAS"; then 11221 for presentlang in $ALL_LINGUAS; do 11222 useit=no 11223 if test "%UNSET%" != "$LINGUAS"; then 11224 desiredlanguages="$LINGUAS" 11225 else 11226 desiredlanguages="$ALL_LINGUAS" 11227 fi 11228 for desiredlang in $desiredlanguages; do 11229 # Use the presentlang catalog if desiredlang is 11230 # a. equal to presentlang, or 11231 # b. a variant of presentlang (because in this case, 11232 # presentlang can be used as a fallback for messages 11233 # which are not translated in the desiredlang catalog). 11234 case "$desiredlang" in 11235 "$presentlang"*) useit=yes;; 11236 esac 11237 done 11238 if test $useit = yes; then 11239 INST_LINGUAS="$INST_LINGUAS $presentlang" 11240 fi 11241 done 11242 fi 11243 CATALOGS= 11244 if test -n "$INST_LINGUAS"; then 11245 for lang in $INST_LINGUAS; do 11246 CATALOGS="$CATALOGS $lang.gmo" 11247 done 11248 fi 11249 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 11250 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 11251 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 11252 if test -f "$f"; then 11253 case "$f" in 11254 *.orig | *.bak | *~) ;; 11255 *) cat "$f" >> "$ac_dir/Makefile" ;; 11256 esac 11257 fi 11258 done 11259 fi 11260 ;; 11261 esac 11262 done ;; 11263 11264 esac 11265done # for ac_tag 11266 11267 11268as_fn_exit 0 11269_ACEOF 11270ac_clean_files=$ac_clean_files_save 11271 11272test $ac_write_fail = 0 || 11273 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11274 11275 11276# configure is writing to config.log, and then calls config.status. 11277# config.status does its own redirection, appending to config.log. 11278# Unfortunately, on DOS this fails, as config.log is still kept open 11279# by configure, so config.status won't be able to write to it; its 11280# output is simply discarded. So we exec the FD to /dev/null, 11281# effectively closing config.log, so it can be properly (re)opened and 11282# appended to by config.status. When coming back to configure, we 11283# need to make the FD available again. 11284if test "$no_create" != yes; then 11285 ac_cs_success=: 11286 ac_config_status_args= 11287 test "$silent" = yes && 11288 ac_config_status_args="$ac_config_status_args --quiet" 11289 exec 5>/dev/null 11290 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11291 exec 5>>config.log 11292 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11293 # would make configure fail if this is the last instruction. 11294 $ac_cs_success || as_fn_exit 1 11295fi 11296if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11298$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11299fi 11300 11301 11302chmod +x posubst 11303