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