1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gnupg 1.4.23. 4# 5# Report bugs to <https://bugs.gnupg.org>. 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 270$0: https://bugs.gnupg.org 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='gnupg' 582PACKAGE_TARNAME='gnupg' 583PACKAGE_VERSION='1.4.23' 584PACKAGE_STRING='gnupg 1.4.23' 585PACKAGE_BUGREPORT='https://bugs.gnupg.org' 586PACKAGE_URL='' 587 588ac_unique_file="g10/gpg.c" 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 625gt_needs= 626ac_header_list= 627gl_use_threads_default= 628ac_func_list= 629ac_subst_vars='am__EXEEXT_FALSE 630am__EXEEXT_TRUE 631LTLIBOBJS 632NOEXECSTACK_FLAGS 633am__fastdepCCAS_FALSE 634am__fastdepCCAS_TRUE 635CCASDEPMODE 636CCASFLAGS 637CCAS 638W32LIBS 639NETLIBS 640CROSS_COMPILING_FALSE 641CROSS_COMPILING_TRUE 642LIBREADLINE 643LIBUSB 644LIBUSB_CPPFLAGS 645_usb_config 646ZLIBS 647ENABLE_BZIP2_SUPPORT_FALSE 648ENABLE_BZIP2_SUPPORT_TRUE 649ENABLE_LOCAL_ZLIB_FALSE 650ENABLE_LOCAL_ZLIB_TRUE 651USE_INTERNAL_REGEX_FALSE 652USE_INTERNAL_REGEX_TRUE 653MPI_SFLAGS 654MPI_EXTRA_ASM_OBJS 655USE_RNDW32_FALSE 656USE_RNDW32_TRUE 657USE_RNDEGD_FALSE 658USE_RNDEGD_TRUE 659USE_RNDUNIX_FALSE 660USE_RNDUNIX_TRUE 661USE_RNDLINUX_FALSE 662USE_RNDLINUX_TRUE 663HAVE_SHM_FALSE 664HAVE_SHM_TRUE 665CAPLIBS 666GETOPT 667LIBOBJS 668USE_SHA512_FALSE 669USE_SHA512_TRUE 670ENABLE_SELINUX_HACKS_FALSE 671ENABLE_SELINUX_HACKS_TRUE 672ENABLE_AGENT_SUPPORT_FALSE 673ENABLE_AGENT_SUPPORT_TRUE 674ENABLE_CARD_SUPPORT_FALSE 675ENABLE_CARD_SUPPORT_TRUE 676DLLIBS 677POSUB 678LTLIBINTL 679LIBINTL 680INTLLIBS 681INTL_LIBTOOL_SUFFIX_PREFIX 682INTLOBJS 683GENCAT 684INSTOBJEXT 685DATADIRNAME 686CATOBJEXT 687USE_INCLUDED_LIBINTL 688BUILD_INCLUDED_LIBINTL 689LTLIBC 690WINDRES 691WOE32 692WOE32DLL 693HAVE_WPRINTF 694HAVE_NEWLOCALE 695HAVE_SNPRINTF 696HAVE_ASPRINTF 697HAVE_POSIX_PRINTF 698INTL_DEFAULT_VERBOSITY 699INTL_MACOSX_LIBS 700GLIBC21 701INTLBISON 702LTLIBICONV 703LIBICONV 704LTLIBMULTITHREAD 705LIBMULTITHREAD 706LTLIBTHREAD 707LIBTHREAD 708LIBPTH_PREFIX 709LTLIBPTH 710LIBPTH 711PRI_MACROS_BROKEN 712ALLOCA 713HAVE_VISIBILITY 714CFLAG_VISIBILITY 715GLIBC2 716XGETTEXT_EXTRA_OPTIONS 717MSGMERGE 718XGETTEXT_015 719XGETTEXT 720GMSGFMT_015 721MSGFMT_015 722GMSGFMT 723MSGFMT 724GETTEXT_MACRO_VERSION 725USE_NLS 726SED 727GPGKEYS_MAILTO 728SENDMAIL 729GPGKEYS_CURL 730FAKE_CURL_FALSE 731FAKE_CURL_TRUE 732LIBCURL 733LIBCURL_CPPFLAGS 734_libcurl_config 735LDAP_CPPFLAGS 736LDAPLIBS 737GPGKEYS_LDAP 738USE_DNS_SRV_FALSE 739USE_DNS_SRV_TRUE 740DNSLIBS 741GPGKEYS_FINGER 742GPGKEYS_HKP 743NM 744MPI_OPT_FLAGS 745HAVE_W32_SYSTEM_FALSE 746HAVE_W32_SYSTEM_TRUE 747USE_SIMPLE_GETTEXT_FALSE 748USE_SIMPLE_GETTEXT_TRUE 749HAVE_DOSISH_SYSTEM_FALSE 750HAVE_DOSISH_SYSTEM_TRUE 751CC_FOR_BUILD 752HAVE_USTAR_FALSE 753HAVE_USTAR_TRUE 754TAR 755PERL 756AR 757RANLIB 758MAINT 759MAINTAINER_MODE_FALSE 760MAINTAINER_MODE_TRUE 761EGREP 762GREP 763CPP 764am__fastdepCC_FALSE 765am__fastdepCC_TRUE 766CCDEPMODE 767am__nodep 768AMDEPBACKSLASH 769AMDEP_FALSE 770AMDEP_TRUE 771am__quote 772am__include 773DEPDIR 774OBJEXT 775EXEEXT 776ac_ct_CC 777CPPFLAGS 778LDFLAGS 779CFLAGS 780CC 781AM_BACKSLASH 782AM_DEFAULT_VERBOSITY 783AM_DEFAULT_V 784AM_V 785am__untar 786am__tar 787AMTAR 788am__leading_dot 789SET_MAKE 790AWK 791mkdir_p 792MKDIR_P 793INSTALL_STRIP_PROGRAM 794STRIP 795install_sh 796MAKEINFO 797AUTOHEADER 798AUTOMAKE 799AUTOCONF 800ACLOCAL 801VERSION 802PACKAGE 803CYGPATH_W 804am__isrc 805INSTALL_DATA 806INSTALL_SCRIPT 807INSTALL_PROGRAM 808host_os 809host_vendor 810host_cpu 811host 812build_os 813build_vendor 814build_cpu 815build 816target_alias 817host_alias 818build_alias 819LIBS 820ECHO_T 821ECHO_N 822ECHO_C 823DEFS 824mandir 825localedir 826libdir 827psdir 828pdfdir 829dvidir 830htmldir 831infodir 832docdir 833oldincludedir 834includedir 835localstatedir 836sharedstatedir 837sysconfdir 838datadir 839datarootdir 840libexecdir 841sbindir 842bindir 843program_transform_name 844prefix 845exec_prefix 846PACKAGE_URL 847PACKAGE_BUGREPORT 848PACKAGE_STRING 849PACKAGE_VERSION 850PACKAGE_TARNAME 851PACKAGE_NAME 852PATH_SEPARATOR 853SHELL' 854ac_subst_files='' 855ac_user_opts=' 856enable_option_checking 857enable_silent_rules 858enable_dependency_tracking 859enable_static_rnd 860with_egd_socket 861enable_dev_random 862enable_asm 863enable_selinux_support 864enable_gnupg_iconv 865enable_minimal 866enable_large_secmem 867enable_card_support 868enable_agent_support 869enable_rsa 870enable_idea 871enable_cast5 872enable_blowfish 873enable_aes 874enable_twofish 875enable_camellia 876enable_sha256 877enable_sha512 878enable_bzip2 879enable_exec 880enable_photo_viewers 881with_photo_viewer 882enable_keyserver_helpers 883enable_ldap 884enable_hkp 885enable_finger 886enable_generic 887enable_mailto 888enable_keyserver_path 889with_included_zlib 890enable_key_cache 891with_capabilities 892enable_maintainer_mode 893enable_largefile 894with_tar 895enable_dns_srv 896enable_dns_cert 897with_ldap 898with_libcurl 899with_mailprog 900enable_nls 901enable_threads 902with_gnu_ld 903enable_rpath 904with_libpth_prefix 905with_libiconv_prefix 906with_included_gettext 907with_libintl_prefix 908enable_endian_check 909enable_regex 910with_included_regex 911with_zlib 912with_bzip2 913with_libusb 914with_readline 915enable_optimization 916enable_noexecstack 917' 918 ac_precious_vars='build_alias 919host_alias 920target_alias 921CC 922CFLAGS 923LDFLAGS 924LIBS 925CPPFLAGS 926CPP 927CC_FOR_BUILD 928CCAS 929CCASFLAGS' 930 931 932# Initialize some variables set by options. 933ac_init_help= 934ac_init_version=false 935ac_unrecognized_opts= 936ac_unrecognized_sep= 937# The variables have the same names as the options, with 938# dashes changed to underlines. 939cache_file=/dev/null 940exec_prefix=NONE 941no_create= 942no_recursion= 943prefix=NONE 944program_prefix=NONE 945program_suffix=NONE 946program_transform_name=s,x,x, 947silent= 948site= 949srcdir= 950verbose= 951x_includes=NONE 952x_libraries=NONE 953 954# Installation directory options. 955# These are left unexpanded so users can "make install exec_prefix=/foo" 956# and all the variables that are supposed to be based on exec_prefix 957# by default will actually change. 958# Use braces instead of parens because sh, perl, etc. also accept them. 959# (The list follows the same order as the GNU Coding Standards.) 960bindir='${exec_prefix}/bin' 961sbindir='${exec_prefix}/sbin' 962libexecdir='${exec_prefix}/libexec' 963datarootdir='${prefix}/share' 964datadir='${datarootdir}' 965sysconfdir='${prefix}/etc' 966sharedstatedir='${prefix}/com' 967localstatedir='${prefix}/var' 968includedir='${prefix}/include' 969oldincludedir='/usr/include' 970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 971infodir='${datarootdir}/info' 972htmldir='${docdir}' 973dvidir='${docdir}' 974pdfdir='${docdir}' 975psdir='${docdir}' 976libdir='${exec_prefix}/lib' 977localedir='${datarootdir}/locale' 978mandir='${datarootdir}/man' 979 980ac_prev= 981ac_dashdash= 982for ac_option 983do 984 # If the previous option needs an argument, assign it. 985 if test -n "$ac_prev"; then 986 eval $ac_prev=\$ac_option 987 ac_prev= 988 continue 989 fi 990 991 case $ac_option in 992 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 993 *=) ac_optarg= ;; 994 *) ac_optarg=yes ;; 995 esac 996 997 # Accept the important Cygnus configure options, so we can diagnose typos. 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1039 as_fn_error $? "invalid feature name: $ac_useropt" 1040 ac_useropt_orig=$ac_useropt 1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1042 case $ac_user_opts in 1043 *" 1044"enable_$ac_useropt" 1045"*) ;; 1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1047 ac_unrecognized_sep=', ';; 1048 esac 1049 eval enable_$ac_useropt=no ;; 1050 1051 -docdir | --docdir | --docdi | --doc | --do) 1052 ac_prev=docdir ;; 1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1054 docdir=$ac_optarg ;; 1055 1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1057 ac_prev=dvidir ;; 1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1059 dvidir=$ac_optarg ;; 1060 1061 -enable-* | --enable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 as_fn_error $? "invalid feature name: $ac_useropt" 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"enable_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval enable_$ac_useropt=\$ac_optarg ;; 1076 1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1079 | --exec | --exe | --ex) 1080 ac_prev=exec_prefix ;; 1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1083 | --exec=* | --exe=* | --ex=*) 1084 exec_prefix=$ac_optarg ;; 1085 1086 -gas | --gas | --ga | --g) 1087 # Obsolete; use --with-gas. 1088 with_gas=yes ;; 1089 1090 -help | --help | --hel | --he | -h) 1091 ac_init_help=long ;; 1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1093 ac_init_help=recursive ;; 1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1095 ac_init_help=short ;; 1096 1097 -host | --host | --hos | --ho) 1098 ac_prev=host_alias ;; 1099 -host=* | --host=* | --hos=* | --ho=*) 1100 host_alias=$ac_optarg ;; 1101 1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1103 ac_prev=htmldir ;; 1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1105 | --ht=*) 1106 htmldir=$ac_optarg ;; 1107 1108 -includedir | --includedir | --includedi | --included | --include \ 1109 | --includ | --inclu | --incl | --inc) 1110 ac_prev=includedir ;; 1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1112 | --includ=* | --inclu=* | --incl=* | --inc=*) 1113 includedir=$ac_optarg ;; 1114 1115 -infodir | --infodir | --infodi | --infod | --info | --inf) 1116 ac_prev=infodir ;; 1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1118 infodir=$ac_optarg ;; 1119 1120 -libdir | --libdir | --libdi | --libd) 1121 ac_prev=libdir ;; 1122 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1123 libdir=$ac_optarg ;; 1124 1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1126 | --libexe | --libex | --libe) 1127 ac_prev=libexecdir ;; 1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1129 | --libexe=* | --libex=* | --libe=*) 1130 libexecdir=$ac_optarg ;; 1131 1132 -localedir | --localedir | --localedi | --localed | --locale) 1133 ac_prev=localedir ;; 1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1135 localedir=$ac_optarg ;; 1136 1137 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1138 | --localstate | --localstat | --localsta | --localst | --locals) 1139 ac_prev=localstatedir ;; 1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1142 localstatedir=$ac_optarg ;; 1143 1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1145 ac_prev=mandir ;; 1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1147 mandir=$ac_optarg ;; 1148 1149 -nfp | --nfp | --nf) 1150 # Obsolete; use --without-fp. 1151 with_fp=no ;; 1152 1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1154 | --no-cr | --no-c | -n) 1155 no_create=yes ;; 1156 1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1159 no_recursion=yes ;; 1160 1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1163 | --oldin | --oldi | --old | --ol | --o) 1164 ac_prev=oldincludedir ;; 1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1168 oldincludedir=$ac_optarg ;; 1169 1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1171 ac_prev=prefix ;; 1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1173 prefix=$ac_optarg ;; 1174 1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1176 | --program-pre | --program-pr | --program-p) 1177 ac_prev=program_prefix ;; 1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1180 program_prefix=$ac_optarg ;; 1181 1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1183 | --program-suf | --program-su | --program-s) 1184 ac_prev=program_suffix ;; 1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1187 program_suffix=$ac_optarg ;; 1188 1189 -program-transform-name | --program-transform-name \ 1190 | --program-transform-nam | --program-transform-na \ 1191 | --program-transform-n | --program-transform- \ 1192 | --program-transform | --program-transfor \ 1193 | --program-transfo | --program-transf \ 1194 | --program-trans | --program-tran \ 1195 | --progr-tra | --program-tr | --program-t) 1196 ac_prev=program_transform_name ;; 1197 -program-transform-name=* | --program-transform-name=* \ 1198 | --program-transform-nam=* | --program-transform-na=* \ 1199 | --program-transform-n=* | --program-transform-=* \ 1200 | --program-transform=* | --program-transfor=* \ 1201 | --program-transfo=* | --program-transf=* \ 1202 | --program-trans=* | --program-tran=* \ 1203 | --progr-tra=* | --program-tr=* | --program-t=*) 1204 program_transform_name=$ac_optarg ;; 1205 1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1207 ac_prev=pdfdir ;; 1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1209 pdfdir=$ac_optarg ;; 1210 1211 -psdir | --psdir | --psdi | --psd | --ps) 1212 ac_prev=psdir ;; 1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1214 psdir=$ac_optarg ;; 1215 1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1217 | -silent | --silent | --silen | --sile | --sil) 1218 silent=yes ;; 1219 1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1221 ac_prev=sbindir ;; 1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1223 | --sbi=* | --sb=*) 1224 sbindir=$ac_optarg ;; 1225 1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1228 | --sharedst | --shareds | --shared | --share | --shar \ 1229 | --sha | --sh) 1230 ac_prev=sharedstatedir ;; 1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1234 | --sha=* | --sh=*) 1235 sharedstatedir=$ac_optarg ;; 1236 1237 -site | --site | --sit) 1238 ac_prev=site ;; 1239 -site=* | --site=* | --sit=*) 1240 site=$ac_optarg ;; 1241 1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1243 ac_prev=srcdir ;; 1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1245 srcdir=$ac_optarg ;; 1246 1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1248 | --syscon | --sysco | --sysc | --sys | --sy) 1249 ac_prev=sysconfdir ;; 1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1252 sysconfdir=$ac_optarg ;; 1253 1254 -target | --target | --targe | --targ | --tar | --ta | --t) 1255 ac_prev=target_alias ;; 1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1257 target_alias=$ac_optarg ;; 1258 1259 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1260 verbose=yes ;; 1261 1262 -version | --version | --versio | --versi | --vers | -V) 1263 ac_init_version=: ;; 1264 1265 -with-* | --with-*) 1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1267 # Reject names that are not valid shell variable names. 1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1269 as_fn_error $? "invalid package name: $ac_useropt" 1270 ac_useropt_orig=$ac_useropt 1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1272 case $ac_user_opts in 1273 *" 1274"with_$ac_useropt" 1275"*) ;; 1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1277 ac_unrecognized_sep=', ';; 1278 esac 1279 eval with_$ac_useropt=\$ac_optarg ;; 1280 1281 -without-* | --without-*) 1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1283 # Reject names that are not valid shell variable names. 1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1285 as_fn_error $? "invalid package name: $ac_useropt" 1286 ac_useropt_orig=$ac_useropt 1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1288 case $ac_user_opts in 1289 *" 1290"with_$ac_useropt" 1291"*) ;; 1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1293 ac_unrecognized_sep=', ';; 1294 esac 1295 eval with_$ac_useropt=no ;; 1296 1297 --x) 1298 # Obsolete; use --with-x. 1299 with_x=yes ;; 1300 1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1302 | --x-incl | --x-inc | --x-in | --x-i) 1303 ac_prev=x_includes ;; 1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1306 x_includes=$ac_optarg ;; 1307 1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1310 ac_prev=x_libraries ;; 1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1313 x_libraries=$ac_optarg ;; 1314 1315 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1316Try \`$0 --help' for more information" 1317 ;; 1318 1319 *=*) 1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1321 # Reject names that are not valid shell variable names. 1322 case $ac_envvar in #( 1323 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1325 esac 1326 eval $ac_envvar=\$ac_optarg 1327 export $ac_envvar ;; 1328 1329 *) 1330 # FIXME: should be removed in autoconf 3.0. 1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1335 ;; 1336 1337 esac 1338done 1339 1340if test -n "$ac_prev"; then 1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1342 as_fn_error $? "missing argument to $ac_option" 1343fi 1344 1345if test -n "$ac_unrecognized_opts"; then 1346 case $enable_option_checking in 1347 no) ;; 1348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1350 esac 1351fi 1352 1353# Check all directory arguments for consistency. 1354for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1355 datadir sysconfdir sharedstatedir localstatedir includedir \ 1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1357 libdir localedir mandir 1358do 1359 eval ac_val=\$$ac_var 1360 # Remove trailing slashes. 1361 case $ac_val in 1362 */ ) 1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1364 eval $ac_var=\$ac_val;; 1365 esac 1366 # Be sure to have absolute directory names. 1367 case $ac_val in 1368 [\\/$]* | ?:[\\/]* ) continue;; 1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1370 esac 1371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1372done 1373 1374# There might be people who depend on the old broken behavior: `$host' 1375# used to hold the argument of --host etc. 1376# FIXME: To remove some day. 1377build=$build_alias 1378host=$host_alias 1379target=$target_alias 1380 1381# FIXME: To remove some day. 1382if test "x$host_alias" != x; then 1383 if test "x$build_alias" = x; then 1384 cross_compiling=maybe 1385 elif test "x$build_alias" != "x$host_alias"; then 1386 cross_compiling=yes 1387 fi 1388fi 1389 1390ac_tool_prefix= 1391test -n "$host_alias" && ac_tool_prefix=$host_alias- 1392 1393test "$silent" = yes && exec 6>/dev/null 1394 1395 1396ac_pwd=`pwd` && test -n "$ac_pwd" && 1397ac_ls_di=`ls -di .` && 1398ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1399 as_fn_error $? "working directory cannot be determined" 1400test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1401 as_fn_error $? "pwd does not report name of working directory" 1402 1403 1404# Find the source files, if location was not specified. 1405if test -z "$srcdir"; then 1406 ac_srcdir_defaulted=yes 1407 # Try the directory containing this script, then the parent directory. 1408 ac_confdir=`$as_dirname -- "$as_myself" || 1409$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1410 X"$as_myself" : 'X\(//\)[^/]' \| \ 1411 X"$as_myself" : 'X\(//\)$' \| \ 1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1413$as_echo X"$as_myself" | 1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1415 s//\1/ 1416 q 1417 } 1418 /^X\(\/\/\)[^/].*/{ 1419 s//\1/ 1420 q 1421 } 1422 /^X\(\/\/\)$/{ 1423 s//\1/ 1424 q 1425 } 1426 /^X\(\/\).*/{ 1427 s//\1/ 1428 q 1429 } 1430 s/.*/./; q'` 1431 srcdir=$ac_confdir 1432 if test ! -r "$srcdir/$ac_unique_file"; then 1433 srcdir=.. 1434 fi 1435else 1436 ac_srcdir_defaulted=no 1437fi 1438if test ! -r "$srcdir/$ac_unique_file"; then 1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1441fi 1442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1443ac_abs_confdir=`( 1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1445 pwd)` 1446# When building in place, set srcdir=. 1447if test "$ac_abs_confdir" = "$ac_pwd"; then 1448 srcdir=. 1449fi 1450# Remove unnecessary trailing slashes from srcdir. 1451# Double slashes in file names in object file debugging info 1452# mess up M-x gdb in Emacs. 1453case $srcdir in 1454*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1455esac 1456for ac_var in $ac_precious_vars; do 1457 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1458 eval ac_env_${ac_var}_value=\$${ac_var} 1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1460 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1461done 1462 1463# 1464# Report the --help message. 1465# 1466if test "$ac_init_help" = "long"; then 1467 # Omit some internal or obsolete options to make the list less imposing. 1468 # This message is too long to be a string in the A/UX 3.1 sh. 1469 cat <<_ACEOF 1470\`configure' configures gnupg 1.4.23 to adapt to many kinds of systems. 1471 1472Usage: $0 [OPTION]... [VAR=VALUE]... 1473 1474To assign environment variables (e.g., CC, CFLAGS...), specify them as 1475VAR=VALUE. See below for descriptions of some of the useful variables. 1476 1477Defaults for the options are specified in brackets. 1478 1479Configuration: 1480 -h, --help display this help and exit 1481 --help=short display options specific to this package 1482 --help=recursive display the short help of all the included packages 1483 -V, --version display version information and exit 1484 -q, --quiet, --silent do not print \`checking ...' messages 1485 --cache-file=FILE cache test results in FILE [disabled] 1486 -C, --config-cache alias for \`--cache-file=config.cache' 1487 -n, --no-create do not create output files 1488 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1489 1490Installation directories: 1491 --prefix=PREFIX install architecture-independent files in PREFIX 1492 [$ac_default_prefix] 1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1494 [PREFIX] 1495 1496By default, \`make install' will install all the files in 1497\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1498an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1499for instance \`--prefix=\$HOME'. 1500 1501For better control, use the options below. 1502 1503Fine tuning of the installation directories: 1504 --bindir=DIR user executables [EPREFIX/bin] 1505 --sbindir=DIR system admin executables [EPREFIX/sbin] 1506 --libexecdir=DIR program executables [EPREFIX/libexec] 1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1510 --libdir=DIR object code libraries [EPREFIX/lib] 1511 --includedir=DIR C header files [PREFIX/include] 1512 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1515 --infodir=DIR info documentation [DATAROOTDIR/info] 1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1517 --mandir=DIR man documentation [DATAROOTDIR/man] 1518 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg] 1519 --htmldir=DIR html documentation [DOCDIR] 1520 --dvidir=DIR dvi documentation [DOCDIR] 1521 --pdfdir=DIR pdf documentation [DOCDIR] 1522 --psdir=DIR ps documentation [DOCDIR] 1523_ACEOF 1524 1525 cat <<\_ACEOF 1526 1527Program names: 1528 --program-prefix=PREFIX prepend PREFIX to installed program names 1529 --program-suffix=SUFFIX append SUFFIX to installed program names 1530 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1531 1532System types: 1533 --build=BUILD configure for building on BUILD [guessed] 1534 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1535_ACEOF 1536fi 1537 1538if test -n "$ac_init_help"; then 1539 case $ac_init_help in 1540 short | recursive ) echo "Configuration of gnupg 1.4.23:";; 1541 esac 1542 cat <<\_ACEOF 1543 1544Optional Features: 1545 --disable-option-checking ignore unrecognized --enable/--with options 1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1548 --enable-silent-rules less verbose build output (undo: "make V=1") 1549 --disable-silent-rules verbose build output (undo: "make V=0") 1550 --enable-dependency-tracking 1551 do not reject slow dependency extractors 1552 --disable-dependency-tracking 1553 speeds up one-time build 1554 --enable-static-rnd=egd|unix|linux|auto 1555 specify a random number source 1556 --disable-dev-random disable the use of dev random 1557 --disable-asm do not use assembler modules 1558 --enable-selinux-support 1559 enable SELinux support 1560 --disable-gnupg-iconv disable the new iconv code 1561 --enable-minimal build the smallest gpg binary possible 1562 --enable-large-secmem allocate extra secure memory 1563 --disable-card-support disable OpenPGP card support 1564 --disable-agent-support disable gpg-agent support 1565 --disable-rsa disable the RSA public key algorithm 1566 --disable-idea disable the IDEA cipher 1567 --disable-cast5 disable the CAST5 cipher 1568 --disable-blowfish disable the BLOWFISH cipher 1569 --disable-aes disable the AES, AES192, and AES256 ciphers 1570 --disable-twofish disable the TWOFISH cipher 1571 --enable-camellia enable the CAMELLIA cipher 1572 --disable-sha256 disable the SHA-224 and SHA-256 digests 1573 --disable-sha512 disable the SHA-384 and SHA-512 digests 1574 --disable-bzip2 disable the BZIP2 compression algorithm 1575 --disable-exec disable all external program execution 1576 --disable-photo-viewers disable photo ID viewers 1577 --disable-keyserver-helpers 1578 disable all external keyserver support 1579 --disable-ldap disable LDAP keyserver interface only 1580 --disable-hkp disable HKP keyserver interface only 1581 --disable-finger disable finger key fetching interface only 1582 --disable-generic disable generic object key fetching interface only 1583 --enable-mailto enable email keyserver interface only 1584 --disable-keyserver-path 1585 disable the exec-path option for keyserver helpers 1586 --enable-key-cache=SIZE Set key cache to SIZE (default 4096) 1587 --enable-maintainer-mode 1588 enable make rules and dependencies not useful (and 1589 sometimes confusing) to the casual installer 1590 --disable-largefile omit support for large files 1591 --disable-dns-srv disable the use of DNS SRV in HKP and HTTP 1592 --disable-dns-cert disable the use of CERT records in DNS 1593 --disable-nls do not use Native Language Support 1594 --enable-threads={posix|solaris|pth|windows} 1595 specify multithreading API 1596 --disable-threads build without multithread safety 1597 --disable-rpath do not hardcode runtime library paths 1598 --disable-endian-check disable the endian check and trust the OS provided 1599 macros 1600 --disable-regex do not handle regular expressions in trust 1601 signatures 1602 --disable-optimization disable compiler optimization 1603 --enable-noexecstack enable non executable stack support (gcc only) 1604 1605Optional Packages: 1606 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1607 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1608 --with-egd-socket=NAME use NAME for the EGD socket 1609 --with-photo-viewer=FIXED_VIEWER 1610 set a fixed photo ID viewer 1611 --with-included-zlib use the zlib code included here 1612 --with-capabilities use linux capabilities [default=no] 1613 --with-tar=PATH look for a tar program in PATH 1614 --with-ldap=DIR look for the LDAP library in DIR 1615 --with-libcurl=DIR look for the curl library in DIR 1616 --with-mailprog=NAME use "NAME -t" for mail transport 1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1618 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 1619 --without-libpth-prefix don't search for libpth in includedir and libdir 1620 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1621 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1622 --with-included-gettext use the GNU gettext library included here 1623 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1624 --without-libintl-prefix don't search for libintl in includedir and libdir 1625 --with-included-regex use the included GNU regex library 1626 --with-zlib=DIR use libz in DIR 1627 --with-bzip2=DIR look for bzip2 in DIR 1628 --with-libusb=DIR look for the libusb library in DIR 1629 --with-readline=DIR look for the readline library in DIR 1630 1631Some influential environment variables: 1632 CC C compiler command 1633 CFLAGS C compiler flags 1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1635 nonstandard directory <lib dir> 1636 LIBS libraries to pass to the linker, e.g. -l<library> 1637 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1638 you have headers in a nonstandard directory <include dir> 1639 CPP C preprocessor 1640 CC_FOR_BUILD 1641 build system C compiler 1642 CCAS assembler compiler command (defaults to CC) 1643 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1644 1645Use these variables to override the choices made by `configure' or to help 1646it to find libraries and programs with nonstandard names/locations. 1647 1648Report bugs to <https://bugs.gnupg.org>. 1649_ACEOF 1650ac_status=$? 1651fi 1652 1653if test "$ac_init_help" = "recursive"; then 1654 # If there are subdirs, report their specific --help. 1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1656 test -d "$ac_dir" || 1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1658 continue 1659 ac_builddir=. 1660 1661case "$ac_dir" in 1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663*) 1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1665 # A ".." for each directory in $ac_dir_suffix. 1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1667 case $ac_top_builddir_sub in 1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1670 esac ;; 1671esac 1672ac_abs_top_builddir=$ac_pwd 1673ac_abs_builddir=$ac_pwd$ac_dir_suffix 1674# for backward compatibility: 1675ac_top_builddir=$ac_top_build_prefix 1676 1677case $srcdir in 1678 .) # We are building in place. 1679 ac_srcdir=. 1680 ac_top_srcdir=$ac_top_builddir_sub 1681 ac_abs_top_srcdir=$ac_pwd ;; 1682 [\\/]* | ?:[\\/]* ) # Absolute name. 1683 ac_srcdir=$srcdir$ac_dir_suffix; 1684 ac_top_srcdir=$srcdir 1685 ac_abs_top_srcdir=$srcdir ;; 1686 *) # Relative name. 1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1688 ac_top_srcdir=$ac_top_build_prefix$srcdir 1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1690esac 1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1692 1693 cd "$ac_dir" || { ac_status=$?; continue; } 1694 # Check for guested configure. 1695 if test -f "$ac_srcdir/configure.gnu"; then 1696 echo && 1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1698 elif test -f "$ac_srcdir/configure"; then 1699 echo && 1700 $SHELL "$ac_srcdir/configure" --help=recursive 1701 else 1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1703 fi || ac_status=$? 1704 cd "$ac_pwd" || { ac_status=$?; break; } 1705 done 1706fi 1707 1708test -n "$ac_init_help" && exit $ac_status 1709if $ac_init_version; then 1710 cat <<\_ACEOF 1711gnupg configure 1.4.23 1712generated by GNU Autoconf 2.69 1713 1714Copyright (C) 2012 Free Software Foundation, Inc. 1715This configure script is free software; the Free Software Foundation 1716gives unlimited permission to copy, distribute and modify it. 1717_ACEOF 1718 exit 1719fi 1720 1721## ------------------------ ## 1722## Autoconf initialization. ## 1723## ------------------------ ## 1724 1725# ac_fn_c_try_compile LINENO 1726# -------------------------- 1727# Try to compile conftest.$ac_ext, and return whether this succeeded. 1728ac_fn_c_try_compile () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 rm -f conftest.$ac_objext 1732 if { { ac_try="$ac_compile" 1733case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_compile") 2>conftest.err 1740 ac_status=$? 1741 if test -s conftest.err; then 1742 grep -v '^ *+' conftest.err >conftest.er1 1743 cat conftest.er1 >&5 1744 mv -f conftest.er1 conftest.err 1745 fi 1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1747 test $ac_status = 0; } && { 1748 test -z "$ac_c_werror_flag" || 1749 test ! -s conftest.err 1750 } && test -s conftest.$ac_objext; then : 1751 ac_retval=0 1752else 1753 $as_echo "$as_me: failed program was:" >&5 1754sed 's/^/| /' conftest.$ac_ext >&5 1755 1756 ac_retval=1 1757fi 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 as_fn_set_status $ac_retval 1760 1761} # ac_fn_c_try_compile 1762 1763# ac_fn_c_try_cpp LINENO 1764# ---------------------- 1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1766ac_fn_c_try_cpp () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 if { { ac_try="$ac_cpp conftest.$ac_ext" 1770case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1777 ac_status=$? 1778 if test -s conftest.err; then 1779 grep -v '^ *+' conftest.err >conftest.er1 1780 cat conftest.er1 >&5 1781 mv -f conftest.er1 conftest.err 1782 fi 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; } > conftest.i && { 1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1786 test ! -s conftest.err 1787 }; then : 1788 ac_retval=0 1789else 1790 $as_echo "$as_me: failed program was:" >&5 1791sed 's/^/| /' conftest.$ac_ext >&5 1792 1793 ac_retval=1 1794fi 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 as_fn_set_status $ac_retval 1797 1798} # ac_fn_c_try_cpp 1799 1800# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1801# ------------------------------------------------------- 1802# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1803# the include files in INCLUDES and setting the cache variable VAR 1804# accordingly. 1805ac_fn_c_check_header_mongrel () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 if eval \${$3+:} false; then : 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810$as_echo_n "checking for $2... " >&6; } 1811if eval \${$3+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813fi 1814eval ac_res=\$$3 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1816$as_echo "$ac_res" >&6; } 1817else 1818 # Is the header compilable? 1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1820$as_echo_n "checking $2 usability... " >&6; } 1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823$4 1824#include <$2> 1825_ACEOF 1826if ac_fn_c_try_compile "$LINENO"; then : 1827 ac_header_compiler=yes 1828else 1829 ac_header_compiler=no 1830fi 1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1833$as_echo "$ac_header_compiler" >&6; } 1834 1835# Is the header present? 1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1837$as_echo_n "checking $2 presence... " >&6; } 1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840#include <$2> 1841_ACEOF 1842if ac_fn_c_try_cpp "$LINENO"; then : 1843 ac_header_preproc=yes 1844else 1845 ac_header_preproc=no 1846fi 1847rm -f conftest.err conftest.i conftest.$ac_ext 1848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1849$as_echo "$ac_header_preproc" >&6; } 1850 1851# So? What about this header? 1852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1853 yes:no: ) 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1855$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1858 ;; 1859 no:yes:* ) 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1861$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1863$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1865$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1867$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1870( $as_echo "## ------------------------------------- ## 1871## Report this to https://bugs.gnupg.org ## 1872## ------------------------------------- ##" 1873 ) | sed "s/^/$as_me: WARNING: /" >&2 1874 ;; 1875esac 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1877$as_echo_n "checking for $2... " >&6; } 1878if eval \${$3+:} false; then : 1879 $as_echo_n "(cached) " >&6 1880else 1881 eval "$3=\$ac_header_compiler" 1882fi 1883eval ac_res=\$$3 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1885$as_echo "$ac_res" >&6; } 1886fi 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889} # ac_fn_c_check_header_mongrel 1890 1891# ac_fn_c_try_run LINENO 1892# ---------------------- 1893# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1894# that executables *can* be run. 1895ac_fn_c_try_run () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 if { { ac_try="$ac_link" 1899case "(($ac_try" in 1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1901 *) ac_try_echo=$ac_try;; 1902esac 1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1904$as_echo "$ac_try_echo"; } >&5 1905 (eval "$ac_link") 2>&5 1906 ac_status=$? 1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1908 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1909 { { case "(($ac_try" in 1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1911 *) ac_try_echo=$ac_try;; 1912esac 1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1914$as_echo "$ac_try_echo"; } >&5 1915 (eval "$ac_try") 2>&5 1916 ac_status=$? 1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1918 test $ac_status = 0; }; }; then : 1919 ac_retval=0 1920else 1921 $as_echo "$as_me: program exited with status $ac_status" >&5 1922 $as_echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925 ac_retval=$ac_status 1926fi 1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929 as_fn_set_status $ac_retval 1930 1931} # ac_fn_c_try_run 1932 1933# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1934# ------------------------------------------------------- 1935# Tests whether HEADER exists and can be compiled using the include files in 1936# INCLUDES, setting the cache variable VAR accordingly. 1937ac_fn_c_check_header_compile () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1941$as_echo_n "checking for $2... " >&6; } 1942if eval \${$3+:} false; then : 1943 $as_echo_n "(cached) " >&6 1944else 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1946/* end confdefs.h. */ 1947$4 1948#include <$2> 1949_ACEOF 1950if ac_fn_c_try_compile "$LINENO"; then : 1951 eval "$3=yes" 1952else 1953 eval "$3=no" 1954fi 1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1956fi 1957eval ac_res=\$$3 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1959$as_echo "$ac_res" >&6; } 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1961 1962} # ac_fn_c_check_header_compile 1963 1964# ac_fn_c_try_link LINENO 1965# ----------------------- 1966# Try to link conftest.$ac_ext, and return whether this succeeded. 1967ac_fn_c_try_link () 1968{ 1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1970 rm -f conftest.$ac_objext conftest$ac_exeext 1971 if { { ac_try="$ac_link" 1972case "(($ac_try" in 1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1974 *) ac_try_echo=$ac_try;; 1975esac 1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1977$as_echo "$ac_try_echo"; } >&5 1978 (eval "$ac_link") 2>conftest.err 1979 ac_status=$? 1980 if test -s conftest.err; then 1981 grep -v '^ *+' conftest.err >conftest.er1 1982 cat conftest.er1 >&5 1983 mv -f conftest.er1 conftest.err 1984 fi 1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1986 test $ac_status = 0; } && { 1987 test -z "$ac_c_werror_flag" || 1988 test ! -s conftest.err 1989 } && test -s conftest$ac_exeext && { 1990 test "$cross_compiling" = yes || 1991 test -x conftest$ac_exeext 1992 }; then : 1993 ac_retval=0 1994else 1995 $as_echo "$as_me: failed program was:" >&5 1996sed 's/^/| /' conftest.$ac_ext >&5 1997 1998 ac_retval=1 1999fi 2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2002 # interfere with the next link command; also delete a directory that is 2003 # left behind by Apple's compiler. We do this before executing the actions. 2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_c_try_link 2009 2010# ac_fn_c_check_func LINENO FUNC VAR 2011# ---------------------------------- 2012# Tests whether FUNC exists, setting the cache variable VAR accordingly 2013ac_fn_c_check_func () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2017$as_echo_n "checking for $2... " >&6; } 2018if eval \${$3+:} false; then : 2019 $as_echo_n "(cached) " >&6 2020else 2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2022/* end confdefs.h. */ 2023/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2025#define $2 innocuous_$2 2026 2027/* System header to define __stub macros and hopefully few prototypes, 2028 which can conflict with char $2 (); below. 2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2030 <limits.h> exists even on freestanding compilers. */ 2031 2032#ifdef __STDC__ 2033# include <limits.h> 2034#else 2035# include <assert.h> 2036#endif 2037 2038#undef $2 2039 2040/* Override any GCC internal prototype to avoid an error. 2041 Use char because int might match the return type of a GCC 2042 builtin and then its argument prototype would still apply. */ 2043#ifdef __cplusplus 2044extern "C" 2045#endif 2046char $2 (); 2047/* The GNU C library defines this for functions which it implements 2048 to always fail with ENOSYS. Some functions are actually named 2049 something starting with __ and the normal name is an alias. */ 2050#if defined __stub_$2 || defined __stub___$2 2051choke me 2052#endif 2053 2054int 2055main () 2056{ 2057return $2 (); 2058 ; 2059 return 0; 2060} 2061_ACEOF 2062if ac_fn_c_try_link "$LINENO"; then : 2063 eval "$3=yes" 2064else 2065 eval "$3=no" 2066fi 2067rm -f core conftest.err conftest.$ac_objext \ 2068 conftest$ac_exeext conftest.$ac_ext 2069fi 2070eval ac_res=\$$3 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2072$as_echo "$ac_res" >&6; } 2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2074 2075} # ac_fn_c_check_func 2076 2077# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2078# ------------------------------------------- 2079# Tests whether TYPE exists after having included INCLUDES, setting cache 2080# variable VAR accordingly. 2081ac_fn_c_check_type () 2082{ 2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2085$as_echo_n "checking for $2... " >&6; } 2086if eval \${$3+:} false; then : 2087 $as_echo_n "(cached) " >&6 2088else 2089 eval "$3=no" 2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2091/* end confdefs.h. */ 2092$4 2093int 2094main () 2095{ 2096if (sizeof ($2)) 2097 return 0; 2098 ; 2099 return 0; 2100} 2101_ACEOF 2102if ac_fn_c_try_compile "$LINENO"; then : 2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2104/* end confdefs.h. */ 2105$4 2106int 2107main () 2108{ 2109if (sizeof (($2))) 2110 return 0; 2111 ; 2112 return 0; 2113} 2114_ACEOF 2115if ac_fn_c_try_compile "$LINENO"; then : 2116 2117else 2118 eval "$3=yes" 2119fi 2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2121fi 2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2123fi 2124eval ac_res=\$$3 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2126$as_echo "$ac_res" >&6; } 2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2128 2129} # ac_fn_c_check_type 2130 2131# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2132# --------------------------------------------- 2133# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2134# accordingly. 2135ac_fn_c_check_decl () 2136{ 2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2138 as_decl_name=`echo $2|sed 's/ *(.*//'` 2139 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2141$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2142if eval \${$3+:} false; then : 2143 $as_echo_n "(cached) " >&6 2144else 2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2146/* end confdefs.h. */ 2147$4 2148int 2149main () 2150{ 2151#ifndef $as_decl_name 2152#ifdef __cplusplus 2153 (void) $as_decl_use; 2154#else 2155 (void) $as_decl_name; 2156#endif 2157#endif 2158 2159 ; 2160 return 0; 2161} 2162_ACEOF 2163if ac_fn_c_try_compile "$LINENO"; then : 2164 eval "$3=yes" 2165else 2166 eval "$3=no" 2167fi 2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2169fi 2170eval ac_res=\$$3 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2172$as_echo "$ac_res" >&6; } 2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2174 2175} # ac_fn_c_check_decl 2176 2177# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2178# -------------------------------------------- 2179# Tries to find the compile-time value of EXPR in a program that includes 2180# INCLUDES, setting VAR accordingly. Returns whether the value could be 2181# computed 2182ac_fn_c_compute_int () 2183{ 2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2185 if test "$cross_compiling" = yes; then 2186 # Depending upon the size, compute the lo and hi bounds. 2187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2188/* end confdefs.h. */ 2189$4 2190int 2191main () 2192{ 2193static int test_array [1 - 2 * !(($2) >= 0)]; 2194test_array [0] = 0; 2195return test_array [0]; 2196 2197 ; 2198 return 0; 2199} 2200_ACEOF 2201if ac_fn_c_try_compile "$LINENO"; then : 2202 ac_lo=0 ac_mid=0 2203 while :; do 2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$4 2207int 2208main () 2209{ 2210static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2211test_array [0] = 0; 2212return test_array [0]; 2213 2214 ; 2215 return 0; 2216} 2217_ACEOF 2218if ac_fn_c_try_compile "$LINENO"; then : 2219 ac_hi=$ac_mid; break 2220else 2221 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2222 if test $ac_lo -le $ac_mid; then 2223 ac_lo= ac_hi= 2224 break 2225 fi 2226 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2227fi 2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2229 done 2230else 2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2232/* end confdefs.h. */ 2233$4 2234int 2235main () 2236{ 2237static int test_array [1 - 2 * !(($2) < 0)]; 2238test_array [0] = 0; 2239return test_array [0]; 2240 2241 ; 2242 return 0; 2243} 2244_ACEOF 2245if ac_fn_c_try_compile "$LINENO"; then : 2246 ac_hi=-1 ac_mid=-1 2247 while :; do 2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2249/* end confdefs.h. */ 2250$4 2251int 2252main () 2253{ 2254static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2255test_array [0] = 0; 2256return test_array [0]; 2257 2258 ; 2259 return 0; 2260} 2261_ACEOF 2262if ac_fn_c_try_compile "$LINENO"; then : 2263 ac_lo=$ac_mid; break 2264else 2265 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2266 if test $ac_mid -le $ac_hi; then 2267 ac_lo= ac_hi= 2268 break 2269 fi 2270 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2271fi 2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2273 done 2274else 2275 ac_lo= ac_hi= 2276fi 2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2278fi 2279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2280# Binary search between lo and hi bounds. 2281while test "x$ac_lo" != "x$ac_hi"; do 2282 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2284/* end confdefs.h. */ 2285$4 2286int 2287main () 2288{ 2289static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2290test_array [0] = 0; 2291return test_array [0]; 2292 2293 ; 2294 return 0; 2295} 2296_ACEOF 2297if ac_fn_c_try_compile "$LINENO"; then : 2298 ac_hi=$ac_mid 2299else 2300 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2301fi 2302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2303done 2304case $ac_lo in #(( 2305?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2306'') ac_retval=1 ;; 2307esac 2308 else 2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2310/* end confdefs.h. */ 2311$4 2312static long int longval () { return $2; } 2313static unsigned long int ulongval () { return $2; } 2314#include <stdio.h> 2315#include <stdlib.h> 2316int 2317main () 2318{ 2319 2320 FILE *f = fopen ("conftest.val", "w"); 2321 if (! f) 2322 return 1; 2323 if (($2) < 0) 2324 { 2325 long int i = longval (); 2326 if (i != ($2)) 2327 return 1; 2328 fprintf (f, "%ld", i); 2329 } 2330 else 2331 { 2332 unsigned long int i = ulongval (); 2333 if (i != ($2)) 2334 return 1; 2335 fprintf (f, "%lu", i); 2336 } 2337 /* Do not output a trailing newline, as this causes \r\n confusion 2338 on some platforms. */ 2339 return ferror (f) || fclose (f) != 0; 2340 2341 ; 2342 return 0; 2343} 2344_ACEOF 2345if ac_fn_c_try_run "$LINENO"; then : 2346 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2347else 2348 ac_retval=1 2349fi 2350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2351 conftest.$ac_objext conftest.beam conftest.$ac_ext 2352rm -f conftest.val 2353 2354 fi 2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2356 as_fn_set_status $ac_retval 2357 2358} # ac_fn_c_compute_int 2359cat >config.log <<_ACEOF 2360This file contains any messages produced by compilers while 2361running configure, to aid debugging if configure makes a mistake. 2362 2363It was created by gnupg $as_me 1.4.23, which was 2364generated by GNU Autoconf 2.69. Invocation command line was 2365 2366 $ $0 $@ 2367 2368_ACEOF 2369exec 5>>config.log 2370{ 2371cat <<_ASUNAME 2372## --------- ## 2373## Platform. ## 2374## --------- ## 2375 2376hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2377uname -m = `(uname -m) 2>/dev/null || echo unknown` 2378uname -r = `(uname -r) 2>/dev/null || echo unknown` 2379uname -s = `(uname -s) 2>/dev/null || echo unknown` 2380uname -v = `(uname -v) 2>/dev/null || echo unknown` 2381 2382/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2383/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2384 2385/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2386/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2387/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2388/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2389/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2390/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2391/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2392 2393_ASUNAME 2394 2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2396for as_dir in $PATH 2397do 2398 IFS=$as_save_IFS 2399 test -z "$as_dir" && as_dir=. 2400 $as_echo "PATH: $as_dir" 2401 done 2402IFS=$as_save_IFS 2403 2404} >&5 2405 2406cat >&5 <<_ACEOF 2407 2408 2409## ----------- ## 2410## Core tests. ## 2411## ----------- ## 2412 2413_ACEOF 2414 2415 2416# Keep a trace of the command line. 2417# Strip out --no-create and --no-recursion so they do not pile up. 2418# Strip out --silent because we don't want to record it for future runs. 2419# Also quote any args containing shell meta-characters. 2420# Make two passes to allow for proper duplicate-argument suppression. 2421ac_configure_args= 2422ac_configure_args0= 2423ac_configure_args1= 2424ac_must_keep_next=false 2425for ac_pass in 1 2 2426do 2427 for ac_arg 2428 do 2429 case $ac_arg in 2430 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2431 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2432 | -silent | --silent | --silen | --sile | --sil) 2433 continue ;; 2434 *\'*) 2435 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2436 esac 2437 case $ac_pass in 2438 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2439 2) 2440 as_fn_append ac_configure_args1 " '$ac_arg'" 2441 if test $ac_must_keep_next = true; then 2442 ac_must_keep_next=false # Got value, back to normal. 2443 else 2444 case $ac_arg in 2445 *=* | --config-cache | -C | -disable-* | --disable-* \ 2446 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2447 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2448 | -with-* | --with-* | -without-* | --without-* | --x) 2449 case "$ac_configure_args0 " in 2450 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2451 esac 2452 ;; 2453 -* ) ac_must_keep_next=true ;; 2454 esac 2455 fi 2456 as_fn_append ac_configure_args " '$ac_arg'" 2457 ;; 2458 esac 2459 done 2460done 2461{ ac_configure_args0=; unset ac_configure_args0;} 2462{ ac_configure_args1=; unset ac_configure_args1;} 2463 2464# When interrupted or exit'd, cleanup temporary files, and complete 2465# config.log. We remove comments because anyway the quotes in there 2466# would cause problems or look ugly. 2467# WARNING: Use '\'' to represent an apostrophe within the trap. 2468# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2469trap 'exit_status=$? 2470 # Save into config.log some information that might help in debugging. 2471 { 2472 echo 2473 2474 $as_echo "## ---------------- ## 2475## Cache variables. ## 2476## ---------------- ##" 2477 echo 2478 # The following way of writing the cache mishandles newlines in values, 2479( 2480 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2481 eval ac_val=\$$ac_var 2482 case $ac_val in #( 2483 *${as_nl}*) 2484 case $ac_var in #( 2485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2486$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2487 esac 2488 case $ac_var in #( 2489 _ | IFS | as_nl) ;; #( 2490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2491 *) { eval $ac_var=; unset $ac_var;} ;; 2492 esac ;; 2493 esac 2494 done 2495 (set) 2>&1 | 2496 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2497 *${as_nl}ac_space=\ *) 2498 sed -n \ 2499 "s/'\''/'\''\\\\'\'''\''/g; 2500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2501 ;; #( 2502 *) 2503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2504 ;; 2505 esac | 2506 sort 2507) 2508 echo 2509 2510 $as_echo "## ----------------- ## 2511## Output variables. ## 2512## ----------------- ##" 2513 echo 2514 for ac_var in $ac_subst_vars 2515 do 2516 eval ac_val=\$$ac_var 2517 case $ac_val in 2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2519 esac 2520 $as_echo "$ac_var='\''$ac_val'\''" 2521 done | sort 2522 echo 2523 2524 if test -n "$ac_subst_files"; then 2525 $as_echo "## ------------------- ## 2526## File substitutions. ## 2527## ------------------- ##" 2528 echo 2529 for ac_var in $ac_subst_files 2530 do 2531 eval ac_val=\$$ac_var 2532 case $ac_val in 2533 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2534 esac 2535 $as_echo "$ac_var='\''$ac_val'\''" 2536 done | sort 2537 echo 2538 fi 2539 2540 if test -s confdefs.h; then 2541 $as_echo "## ----------- ## 2542## confdefs.h. ## 2543## ----------- ##" 2544 echo 2545 cat confdefs.h 2546 echo 2547 fi 2548 test "$ac_signal" != 0 && 2549 $as_echo "$as_me: caught signal $ac_signal" 2550 $as_echo "$as_me: exit $exit_status" 2551 } >&5 2552 rm -f core *.core core.conftest.* && 2553 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2554 exit $exit_status 2555' 0 2556for ac_signal in 1 2 13 15; do 2557 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2558done 2559ac_signal=0 2560 2561# confdefs.h avoids OS command line length limits that DEFS can exceed. 2562rm -f -r conftest* confdefs.h 2563 2564$as_echo "/* confdefs.h */" > confdefs.h 2565 2566# Predefined preprocessor variables. 2567 2568cat >>confdefs.h <<_ACEOF 2569#define PACKAGE_NAME "$PACKAGE_NAME" 2570_ACEOF 2571 2572cat >>confdefs.h <<_ACEOF 2573#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2574_ACEOF 2575 2576cat >>confdefs.h <<_ACEOF 2577#define PACKAGE_VERSION "$PACKAGE_VERSION" 2578_ACEOF 2579 2580cat >>confdefs.h <<_ACEOF 2581#define PACKAGE_STRING "$PACKAGE_STRING" 2582_ACEOF 2583 2584cat >>confdefs.h <<_ACEOF 2585#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2586_ACEOF 2587 2588cat >>confdefs.h <<_ACEOF 2589#define PACKAGE_URL "$PACKAGE_URL" 2590_ACEOF 2591 2592 2593# Let the site file select an alternate cache file if it wants to. 2594# Prefer an explicitly selected file to automatically selected ones. 2595ac_site_file1=NONE 2596ac_site_file2=NONE 2597if test -n "$CONFIG_SITE"; then 2598 # We do not want a PATH search for config.site. 2599 case $CONFIG_SITE in #(( 2600 -*) ac_site_file1=./$CONFIG_SITE;; 2601 */*) ac_site_file1=$CONFIG_SITE;; 2602 *) ac_site_file1=./$CONFIG_SITE;; 2603 esac 2604elif test "x$prefix" != xNONE; then 2605 ac_site_file1=$prefix/share/config.site 2606 ac_site_file2=$prefix/etc/config.site 2607else 2608 ac_site_file1=$ac_default_prefix/share/config.site 2609 ac_site_file2=$ac_default_prefix/etc/config.site 2610fi 2611for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2612do 2613 test "x$ac_site_file" = xNONE && continue 2614 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2616$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2617 sed 's/^/| /' "$ac_site_file" >&5 2618 . "$ac_site_file" \ 2619 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2621as_fn_error $? "failed to load site script $ac_site_file 2622See \`config.log' for more details" "$LINENO" 5; } 2623 fi 2624done 2625 2626if test -r "$cache_file"; then 2627 # Some versions of bash will fail to source /dev/null (special files 2628 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2629 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2631$as_echo "$as_me: loading cache $cache_file" >&6;} 2632 case $cache_file in 2633 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2634 *) . "./$cache_file";; 2635 esac 2636 fi 2637else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2639$as_echo "$as_me: creating cache $cache_file" >&6;} 2640 >$cache_file 2641fi 2642 2643gt_needs="$gt_needs need-ngettext" 2644as_fn_append ac_header_list " stdlib.h" 2645as_fn_append ac_header_list " unistd.h" 2646as_fn_append ac_header_list " sys/param.h" 2647as_fn_append ac_func_list " symlink" 2648# Check that the precious variables saved in the cache have kept the same 2649# value. 2650ac_cache_corrupted=false 2651for ac_var in $ac_precious_vars; do 2652 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2653 eval ac_new_set=\$ac_env_${ac_var}_set 2654 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2655 eval ac_new_val=\$ac_env_${ac_var}_value 2656 case $ac_old_set,$ac_new_set in 2657 set,) 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2659$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2660 ac_cache_corrupted=: ;; 2661 ,set) 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2663$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2664 ac_cache_corrupted=: ;; 2665 ,);; 2666 *) 2667 if test "x$ac_old_val" != "x$ac_new_val"; then 2668 # differences in whitespace do not lead to failure. 2669 ac_old_val_w=`echo x $ac_old_val` 2670 ac_new_val_w=`echo x $ac_new_val` 2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2673$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2674 ac_cache_corrupted=: 2675 else 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2677$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2678 eval $ac_var=\$ac_old_val 2679 fi 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2681$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2683$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2684 fi;; 2685 esac 2686 # Pass precious variables to config.status. 2687 if test "$ac_new_set" = set; then 2688 case $ac_new_val in 2689 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2690 *) ac_arg=$ac_var=$ac_new_val ;; 2691 esac 2692 case " $ac_configure_args " in 2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2694 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2695 esac 2696 fi 2697done 2698if $ac_cache_corrupted; then 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2702$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2703 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2704fi 2705## -------------------- ## 2706## Main body of script. ## 2707## -------------------- ## 2708 2709ac_ext=c 2710ac_cpp='$CPP $CPPFLAGS' 2711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2713ac_compiler_gnu=$ac_cv_c_compiler_gnu 2714 2715 2716 2717 2718development_version=no 2719 2720ac_aux_dir= 2721for ac_dir in scripts "$srcdir"/scripts; do 2722 if test -f "$ac_dir/install-sh"; then 2723 ac_aux_dir=$ac_dir 2724 ac_install_sh="$ac_aux_dir/install-sh -c" 2725 break 2726 elif test -f "$ac_dir/install.sh"; then 2727 ac_aux_dir=$ac_dir 2728 ac_install_sh="$ac_aux_dir/install.sh -c" 2729 break 2730 elif test -f "$ac_dir/shtool"; then 2731 ac_aux_dir=$ac_dir 2732 ac_install_sh="$ac_aux_dir/shtool install -c" 2733 break 2734 fi 2735done 2736if test -z "$ac_aux_dir"; then 2737 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5 2738fi 2739 2740# These three variables are undocumented and unsupported, 2741# and are intended to be withdrawn in a future Autoconf release. 2742# They can cause serious problems if a builder's source tree is in a directory 2743# whose full name contains unusual characters. 2744ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2745ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2746ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2747 2748 2749 2750# Make sure we can run config.sub. 2751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2752 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2753 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2755$as_echo_n "checking build system type... " >&6; } 2756if ${ac_cv_build+:} false; then : 2757 $as_echo_n "(cached) " >&6 2758else 2759 ac_build_alias=$build_alias 2760test "x$ac_build_alias" = x && 2761 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2762test "x$ac_build_alias" = x && 2763 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2764ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2766 2767fi 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2769$as_echo "$ac_cv_build" >&6; } 2770case $ac_cv_build in 2771*-*-*) ;; 2772*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2773esac 2774build=$ac_cv_build 2775ac_save_IFS=$IFS; IFS='-' 2776set x $ac_cv_build 2777shift 2778build_cpu=$1 2779build_vendor=$2 2780shift; shift 2781# Remember, the first character of IFS is used to create $*, 2782# except with old shells: 2783build_os=$* 2784IFS=$ac_save_IFS 2785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2786 2787 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2789$as_echo_n "checking host system type... " >&6; } 2790if ${ac_cv_host+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 if test "x$host_alias" = x; then 2794 ac_cv_host=$ac_cv_build 2795else 2796 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2797 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2798fi 2799 2800fi 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2802$as_echo "$ac_cv_host" >&6; } 2803case $ac_cv_host in 2804*-*-*) ;; 2805*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2806esac 2807host=$ac_cv_host 2808ac_save_IFS=$IFS; IFS='-' 2809set x $ac_cv_host 2810shift 2811host_cpu=$1 2812host_vendor=$2 2813shift; shift 2814# Remember, the first character of IFS is used to create $*, 2815# except with old shells: 2816host_os=$* 2817IFS=$ac_save_IFS 2818case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2819 2820 2821am__api_version='1.14' 2822 2823# Find a good install program. We prefer a C program (faster), 2824# so one script is as good as another. But avoid the broken or 2825# incompatible versions: 2826# SysV /etc/install, /usr/sbin/install 2827# SunOS /usr/etc/install 2828# IRIX /sbin/install 2829# AIX /bin/install 2830# AmigaOS /C/install, which installs bootblocks on floppy discs 2831# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2832# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2833# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2834# OS/2's system install, which has a completely different semantic 2835# ./install, which can be erroneously created by make from ./install.sh. 2836# Reject install programs that cannot install multiple files. 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2838$as_echo_n "checking for a BSD-compatible install... " >&6; } 2839if test -z "$INSTALL"; then 2840if ${ac_cv_path_install+:} false; then : 2841 $as_echo_n "(cached) " >&6 2842else 2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844for as_dir in $PATH 2845do 2846 IFS=$as_save_IFS 2847 test -z "$as_dir" && as_dir=. 2848 # Account for people who put trailing slashes in PATH elements. 2849case $as_dir/ in #(( 2850 ./ | .// | /[cC]/* | \ 2851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2852 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2853 /usr/ucb/* ) ;; 2854 *) 2855 # OSF1 and SCO ODT 3.0 have their own names for install. 2856 # Don't use installbsd from OSF since it installs stuff as root 2857 # by default. 2858 for ac_prog in ginstall scoinst install; do 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2861 if test $ac_prog = install && 2862 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2863 # AIX install. It has an incompatible calling convention. 2864 : 2865 elif test $ac_prog = install && 2866 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2867 # program-specific install script used by HP pwplus--don't use. 2868 : 2869 else 2870 rm -rf conftest.one conftest.two conftest.dir 2871 echo one > conftest.one 2872 echo two > conftest.two 2873 mkdir conftest.dir 2874 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2875 test -s conftest.one && test -s conftest.two && 2876 test -s conftest.dir/conftest.one && 2877 test -s conftest.dir/conftest.two 2878 then 2879 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2880 break 3 2881 fi 2882 fi 2883 fi 2884 done 2885 done 2886 ;; 2887esac 2888 2889 done 2890IFS=$as_save_IFS 2891 2892rm -rf conftest.one conftest.two conftest.dir 2893 2894fi 2895 if test "${ac_cv_path_install+set}" = set; then 2896 INSTALL=$ac_cv_path_install 2897 else 2898 # As a last resort, use the slow shell script. Don't cache a 2899 # value for INSTALL within a source directory, because that will 2900 # break other packages using the cache if that directory is 2901 # removed, or if the value is a relative name. 2902 INSTALL=$ac_install_sh 2903 fi 2904fi 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2906$as_echo "$INSTALL" >&6; } 2907 2908# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2909# It thinks the first close brace ends the variable substitution. 2910test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2911 2912test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2913 2914test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2915 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2917$as_echo_n "checking whether build environment is sane... " >&6; } 2918# Reject unsafe characters in $srcdir or the absolute working directory 2919# name. Accept space and tab only in the latter. 2920am_lf=' 2921' 2922case `pwd` in 2923 *[\\\"\#\$\&\'\`$am_lf]*) 2924 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2925esac 2926case $srcdir in 2927 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2928 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2929esac 2930 2931# Do 'set' in a subshell so we don't clobber the current shell's 2932# arguments. Must try -L first in case configure is actually a 2933# symlink; some systems play weird games with the mod time of symlinks 2934# (eg FreeBSD returns the mod time of the symlink's containing 2935# directory). 2936if ( 2937 am_has_slept=no 2938 for am_try in 1 2; do 2939 echo "timestamp, slept: $am_has_slept" > conftest.file 2940 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2941 if test "$*" = "X"; then 2942 # -L didn't work. 2943 set X `ls -t "$srcdir/configure" conftest.file` 2944 fi 2945 if test "$*" != "X $srcdir/configure conftest.file" \ 2946 && test "$*" != "X conftest.file $srcdir/configure"; then 2947 2948 # If neither matched, then we have a broken ls. This can happen 2949 # if, for instance, CONFIG_SHELL is bash and it inherits a 2950 # broken ls alias from the environment. This has actually 2951 # happened. Such a system could not be considered "sane". 2952 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2953 alias in your environment" "$LINENO" 5 2954 fi 2955 if test "$2" = conftest.file || test $am_try -eq 2; then 2956 break 2957 fi 2958 # Just in case. 2959 sleep 1 2960 am_has_slept=yes 2961 done 2962 test "$2" = conftest.file 2963 ) 2964then 2965 # Ok. 2966 : 2967else 2968 as_fn_error $? "newly created file is older than distributed files! 2969Check your system clock" "$LINENO" 5 2970fi 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2972$as_echo "yes" >&6; } 2973# If we didn't sleep, we still need to ensure time stamps of config.status and 2974# generated files are strictly newer. 2975am_sleep_pid= 2976if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2977 ( sleep 1 ) & 2978 am_sleep_pid=$! 2979fi 2980 2981rm -f conftest.file 2982 2983test "$program_prefix" != NONE && 2984 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2985# Use a double $ so make ignores it. 2986test "$program_suffix" != NONE && 2987 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2988# Double any \ or $. 2989# By default was `s,x,x', remove it if useless. 2990ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2991program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2992 2993# Expand $ac_aux_dir to an absolute path. 2994am_aux_dir=`cd "$ac_aux_dir" && pwd` 2995 2996if test x"${MISSING+set}" != xset; then 2997 case $am_aux_dir in 2998 *\ * | *\ *) 2999 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3000 *) 3001 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3002 esac 3003fi 3004# Use eval to expand $SHELL 3005if eval "$MISSING --is-lightweight"; then 3006 am_missing_run="$MISSING " 3007else 3008 am_missing_run= 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3010$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3011fi 3012 3013if test x"${install_sh}" != xset; then 3014 case $am_aux_dir in 3015 *\ * | *\ *) 3016 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3017 *) 3018 install_sh="\${SHELL} $am_aux_dir/install-sh" 3019 esac 3020fi 3021 3022# Installed binaries are usually stripped using 'strip' when the user 3023# run "make install-strip". However 'strip' might not be the right 3024# tool to use in cross-compilation environments, therefore Automake 3025# will honor the 'STRIP' environment variable to overrule this program. 3026if test "$cross_compiling" != no; then 3027 if test -n "$ac_tool_prefix"; then 3028 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3029set dummy ${ac_tool_prefix}strip; ac_word=$2 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031$as_echo_n "checking for $ac_word... " >&6; } 3032if ${ac_cv_prog_STRIP+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 if test -n "$STRIP"; then 3036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3037else 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3045 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi 3054fi 3055STRIP=$ac_cv_prog_STRIP 3056if test -n "$STRIP"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3058$as_echo "$STRIP" >&6; } 3059else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061$as_echo "no" >&6; } 3062fi 3063 3064 3065fi 3066if test -z "$ac_cv_prog_STRIP"; then 3067 ac_ct_STRIP=$STRIP 3068 # Extract the first word of "strip", so it can be a program name with args. 3069set dummy strip; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$ac_ct_STRIP"; then 3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_ac_ct_STRIP="strip" 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3096if test -n "$ac_ct_STRIP"; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3098$as_echo "$ac_ct_STRIP" >&6; } 3099else 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101$as_echo "no" >&6; } 3102fi 3103 3104 if test "x$ac_ct_STRIP" = x; then 3105 STRIP=":" 3106 else 3107 case $cross_compiling:$ac_tool_warned in 3108yes:) 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3111ac_tool_warned=yes ;; 3112esac 3113 STRIP=$ac_ct_STRIP 3114 fi 3115else 3116 STRIP="$ac_cv_prog_STRIP" 3117fi 3118 3119fi 3120INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3121 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3123$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3124if test -z "$MKDIR_P"; then 3125 if ${ac_cv_path_mkdir+:} false; then : 3126 $as_echo_n "(cached) " >&6 3127else 3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3130do 3131 IFS=$as_save_IFS 3132 test -z "$as_dir" && as_dir=. 3133 for ac_prog in mkdir gmkdir; do 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3136 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3137 'mkdir (GNU coreutils) '* | \ 3138 'mkdir (coreutils) '* | \ 3139 'mkdir (fileutils) '4.1*) 3140 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3141 break 3;; 3142 esac 3143 done 3144 done 3145 done 3146IFS=$as_save_IFS 3147 3148fi 3149 3150 test -d ./--version && rmdir ./--version 3151 if test "${ac_cv_path_mkdir+set}" = set; then 3152 MKDIR_P="$ac_cv_path_mkdir -p" 3153 else 3154 # As a last resort, use the slow shell script. Don't cache a 3155 # value for MKDIR_P within a source directory, because that will 3156 # break other packages using the cache if that directory is 3157 # removed, or if the value is a relative name. 3158 MKDIR_P="$ac_install_sh -d" 3159 fi 3160fi 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3162$as_echo "$MKDIR_P" >&6; } 3163 3164for ac_prog in gawk mawk nawk awk 3165do 3166 # Extract the first word of "$ac_prog", so it can be a program name with args. 3167set dummy $ac_prog; ac_word=$2 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3169$as_echo_n "checking for $ac_word... " >&6; } 3170if ${ac_cv_prog_AWK+:} false; then : 3171 $as_echo_n "(cached) " >&6 3172else 3173 if test -n "$AWK"; then 3174 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3175else 3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3177for as_dir in $PATH 3178do 3179 IFS=$as_save_IFS 3180 test -z "$as_dir" && as_dir=. 3181 for ac_exec_ext in '' $ac_executable_extensions; do 3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3183 ac_cv_prog_AWK="$ac_prog" 3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3185 break 2 3186 fi 3187done 3188 done 3189IFS=$as_save_IFS 3190 3191fi 3192fi 3193AWK=$ac_cv_prog_AWK 3194if test -n "$AWK"; then 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3196$as_echo "$AWK" >&6; } 3197else 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3199$as_echo "no" >&6; } 3200fi 3201 3202 3203 test -n "$AWK" && break 3204done 3205 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3207$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3208set x ${MAKE-make} 3209ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3210if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3211 $as_echo_n "(cached) " >&6 3212else 3213 cat >conftest.make <<\_ACEOF 3214SHELL = /bin/sh 3215all: 3216 @echo '@@@%%%=$(MAKE)=@@@%%%' 3217_ACEOF 3218# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3219case `${MAKE-make} -f conftest.make 2>/dev/null` in 3220 *@@@%%%=?*=@@@%%%*) 3221 eval ac_cv_prog_make_${ac_make}_set=yes;; 3222 *) 3223 eval ac_cv_prog_make_${ac_make}_set=no;; 3224esac 3225rm -f conftest.make 3226fi 3227if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3229$as_echo "yes" >&6; } 3230 SET_MAKE= 3231else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233$as_echo "no" >&6; } 3234 SET_MAKE="MAKE=${MAKE-make}" 3235fi 3236 3237rm -rf .tst 2>/dev/null 3238mkdir .tst 2>/dev/null 3239if test -d .tst; then 3240 am__leading_dot=. 3241else 3242 am__leading_dot=_ 3243fi 3244rmdir .tst 2>/dev/null 3245 3246# Check whether --enable-silent-rules was given. 3247if test "${enable_silent_rules+set}" = set; then : 3248 enableval=$enable_silent_rules; 3249fi 3250 3251case $enable_silent_rules in # ((( 3252 yes) AM_DEFAULT_VERBOSITY=0;; 3253 no) AM_DEFAULT_VERBOSITY=1;; 3254 *) AM_DEFAULT_VERBOSITY=1;; 3255esac 3256am_make=${MAKE-make} 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3258$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3259if ${am_cv_make_support_nested_variables+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 if $as_echo 'TRUE=$(BAR$(V)) 3263BAR0=false 3264BAR1=true 3265V=1 3266am__doit: 3267 @$(TRUE) 3268.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3269 am_cv_make_support_nested_variables=yes 3270else 3271 am_cv_make_support_nested_variables=no 3272fi 3273fi 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3275$as_echo "$am_cv_make_support_nested_variables" >&6; } 3276if test $am_cv_make_support_nested_variables = yes; then 3277 AM_V='$(V)' 3278 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3279else 3280 AM_V=$AM_DEFAULT_VERBOSITY 3281 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3282fi 3283AM_BACKSLASH='\' 3284 3285if test "`cd $srcdir && pwd`" != "`pwd`"; then 3286 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3287 # is not polluted with repeated "-I." 3288 am__isrc=' -I$(srcdir)' 3289 # test to see if srcdir already configured 3290 if test -f $srcdir/config.status; then 3291 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3292 fi 3293fi 3294 3295# test whether we have cygpath 3296if test -z "$CYGPATH_W"; then 3297 if (cygpath --version) >/dev/null 2>/dev/null; then 3298 CYGPATH_W='cygpath -w' 3299 else 3300 CYGPATH_W=echo 3301 fi 3302fi 3303 3304 3305# Define the identity of the package. 3306 PACKAGE='gnupg' 3307 VERSION='1.4.23' 3308 3309 3310cat >>confdefs.h <<_ACEOF 3311#define PACKAGE "$PACKAGE" 3312_ACEOF 3313 3314 3315cat >>confdefs.h <<_ACEOF 3316#define VERSION "$VERSION" 3317_ACEOF 3318 3319# Some tools Automake needs. 3320 3321ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3322 3323 3324AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3325 3326 3327AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3328 3329 3330AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3331 3332 3333MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3334 3335# For better backward compatibility. To be removed once Automake 1.9.x 3336# dies out for good. For more background, see: 3337# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3338# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3339mkdir_p='$(MKDIR_P)' 3340 3341# We need awk for the "check" target. The system "awk" is bad on 3342# some platforms. 3343# Always define AMTAR for backward compatibility. Yes, it's still used 3344# in the wild :-( We should find a proper way to deprecate it ... 3345AMTAR='$${TAR-tar}' 3346 3347 3348# We'll loop over all known methods to create a tar archive until one works. 3349_am_tools='gnutar pax cpio none' 3350 3351am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3352 3353 3354 3355 3356 3357 3358# POSIX will say in a future version that running "rm -f" with no argument 3359# is OK; and we want to be able to make that assumption in our Makefile 3360# recipes. So use an aggressive probe to check that the usage we want is 3361# actually supported "in the wild" to an acceptable degree. 3362# See automake bug#10828. 3363# To make any issue more visible, cause the running configure to be aborted 3364# by default if the 'rm' program in use doesn't match our expectations; the 3365# user can still override this though. 3366if rm -f && rm -fr && rm -rf; then : OK; else 3367 cat >&2 <<'END' 3368Oops! 3369 3370Your 'rm' program seems unable to run without file operands specified 3371on the command line, even when the '-f' option is present. This is contrary 3372to the behaviour of most rm programs out there, and not conforming with 3373the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3374 3375Please tell bug-automake@gnu.org about your system, including the value 3376of your $PATH and any error possibly output before this message. This 3377can help us improve future automake versions. 3378 3379END 3380 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3381 echo 'Configuration will proceed anyway, since you have set the' >&2 3382 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3383 echo >&2 3384 else 3385 cat >&2 <<'END' 3386Aborting the configuration process, to ensure you take notice of the issue. 3387 3388You can download and install GNU coreutils to get an 'rm' implementation 3389that behaves properly: <http://www.gnu.org/software/coreutils/>. 3390 3391If you want to complete the configuration process using your problematic 3392'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3393to "yes", and re-run configure. 3394 3395END 3396 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3397 fi 3398fi 3399 3400 3401 3402 3403 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5 3405$as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;} 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5 3407$as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;} 3408 hostname=`hostname` 3409 if test "$hostname"; then 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5 3411$as_echo "$as_me: autobuild hostname... $hostname" >&6;} 3412 fi 3413 3414 date=`date +%Y%m%d-%H%M%S` 3415 if test "$?" != 0; then 3416 date=`date` 3417 fi 3418 if test "$date"; then 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5 3420$as_echo "$as_me: autobuild timestamp... $date" >&6;} 3421 fi 3422 3423ac_config_headers="$ac_config_headers config.h" 3424 3425 3426DEPDIR="${am__leading_dot}deps" 3427 3428ac_config_commands="$ac_config_commands depfiles" 3429 3430 3431am_make=${MAKE-make} 3432cat > confinc << 'END' 3433am__doit: 3434 @echo this is the am__doit target 3435.PHONY: am__doit 3436END 3437# If we don't find an include directive, just comment out the code. 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3439$as_echo_n "checking for style of include used by $am_make... " >&6; } 3440am__include="#" 3441am__quote= 3442_am_result=none 3443# First try GNU make style include. 3444echo "include confinc" > confmf 3445# Ignore all kinds of additional output from 'make'. 3446case `$am_make -s -f confmf 2> /dev/null` in #( 3447*the\ am__doit\ target*) 3448 am__include=include 3449 am__quote= 3450 _am_result=GNU 3451 ;; 3452esac 3453# Now try BSD make style include. 3454if test "$am__include" = "#"; then 3455 echo '.include "confinc"' > confmf 3456 case `$am_make -s -f confmf 2> /dev/null` in #( 3457 *the\ am__doit\ target*) 3458 am__include=.include 3459 am__quote="\"" 3460 _am_result=BSD 3461 ;; 3462 esac 3463fi 3464 3465 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3467$as_echo "$_am_result" >&6; } 3468rm -f confinc confmf 3469 3470# Check whether --enable-dependency-tracking was given. 3471if test "${enable_dependency_tracking+set}" = set; then : 3472 enableval=$enable_dependency_tracking; 3473fi 3474 3475if test "x$enable_dependency_tracking" != xno; then 3476 am_depcomp="$ac_aux_dir/depcomp" 3477 AMDEPBACKSLASH='\' 3478 am__nodep='_no' 3479fi 3480 if test "x$enable_dependency_tracking" != xno; then 3481 AMDEP_TRUE= 3482 AMDEP_FALSE='#' 3483else 3484 AMDEP_TRUE='#' 3485 AMDEP_FALSE= 3486fi 3487 3488 3489ac_ext=c 3490ac_cpp='$CPP $CPPFLAGS' 3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3493ac_compiler_gnu=$ac_cv_c_compiler_gnu 3494if test -n "$ac_tool_prefix"; then 3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3496set dummy ${ac_tool_prefix}gcc; ac_word=$2 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3498$as_echo_n "checking for $ac_word... " >&6; } 3499if ${ac_cv_prog_CC+:} false; then : 3500 $as_echo_n "(cached) " >&6 3501else 3502 if test -n "$CC"; then 3503 ac_cv_prog_CC="$CC" # Let the user override the test. 3504else 3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3506for as_dir in $PATH 3507do 3508 IFS=$as_save_IFS 3509 test -z "$as_dir" && as_dir=. 3510 for ac_exec_ext in '' $ac_executable_extensions; do 3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3512 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3514 break 2 3515 fi 3516done 3517 done 3518IFS=$as_save_IFS 3519 3520fi 3521fi 3522CC=$ac_cv_prog_CC 3523if test -n "$CC"; then 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3525$as_echo "$CC" >&6; } 3526else 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3528$as_echo "no" >&6; } 3529fi 3530 3531 3532fi 3533if test -z "$ac_cv_prog_CC"; then 3534 ac_ct_CC=$CC 3535 # Extract the first word of "gcc", so it can be a program name with args. 3536set dummy gcc; ac_word=$2 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3538$as_echo_n "checking for $ac_word... " >&6; } 3539if ${ac_cv_prog_ac_ct_CC+:} false; then : 3540 $as_echo_n "(cached) " >&6 3541else 3542 if test -n "$ac_ct_CC"; then 3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3544else 3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3546for as_dir in $PATH 3547do 3548 IFS=$as_save_IFS 3549 test -z "$as_dir" && as_dir=. 3550 for ac_exec_ext in '' $ac_executable_extensions; do 3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3552 ac_cv_prog_ac_ct_CC="gcc" 3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3554 break 2 3555 fi 3556done 3557 done 3558IFS=$as_save_IFS 3559 3560fi 3561fi 3562ac_ct_CC=$ac_cv_prog_ac_ct_CC 3563if test -n "$ac_ct_CC"; then 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3565$as_echo "$ac_ct_CC" >&6; } 3566else 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3568$as_echo "no" >&6; } 3569fi 3570 3571 if test "x$ac_ct_CC" = x; then 3572 CC="" 3573 else 3574 case $cross_compiling:$ac_tool_warned in 3575yes:) 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3578ac_tool_warned=yes ;; 3579esac 3580 CC=$ac_ct_CC 3581 fi 3582else 3583 CC="$ac_cv_prog_CC" 3584fi 3585 3586if test -z "$CC"; then 3587 if test -n "$ac_tool_prefix"; then 3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3589set dummy ${ac_tool_prefix}cc; ac_word=$2 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3591$as_echo_n "checking for $ac_word... " >&6; } 3592if ${ac_cv_prog_CC+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594else 3595 if test -n "$CC"; then 3596 ac_cv_prog_CC="$CC" # Let the user override the test. 3597else 3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3599for as_dir in $PATH 3600do 3601 IFS=$as_save_IFS 3602 test -z "$as_dir" && as_dir=. 3603 for ac_exec_ext in '' $ac_executable_extensions; do 3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3605 ac_cv_prog_CC="${ac_tool_prefix}cc" 3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3607 break 2 3608 fi 3609done 3610 done 3611IFS=$as_save_IFS 3612 3613fi 3614fi 3615CC=$ac_cv_prog_CC 3616if test -n "$CC"; then 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3618$as_echo "$CC" >&6; } 3619else 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3621$as_echo "no" >&6; } 3622fi 3623 3624 3625 fi 3626fi 3627if test -z "$CC"; then 3628 # Extract the first word of "cc", so it can be a program name with args. 3629set dummy cc; ac_word=$2 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3631$as_echo_n "checking for $ac_word... " >&6; } 3632if ${ac_cv_prog_CC+:} false; then : 3633 $as_echo_n "(cached) " >&6 3634else 3635 if test -n "$CC"; then 3636 ac_cv_prog_CC="$CC" # Let the user override the test. 3637else 3638 ac_prog_rejected=no 3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3640for as_dir in $PATH 3641do 3642 IFS=$as_save_IFS 3643 test -z "$as_dir" && as_dir=. 3644 for ac_exec_ext in '' $ac_executable_extensions; do 3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3647 ac_prog_rejected=yes 3648 continue 3649 fi 3650 ac_cv_prog_CC="cc" 3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3652 break 2 3653 fi 3654done 3655 done 3656IFS=$as_save_IFS 3657 3658if test $ac_prog_rejected = yes; then 3659 # We found a bogon in the path, so make sure we never use it. 3660 set dummy $ac_cv_prog_CC 3661 shift 3662 if test $# != 0; then 3663 # We chose a different compiler from the bogus one. 3664 # However, it has the same basename, so the bogon will be chosen 3665 # first if we set CC to just the basename; use the full file name. 3666 shift 3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3668 fi 3669fi 3670fi 3671fi 3672CC=$ac_cv_prog_CC 3673if test -n "$CC"; then 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3675$as_echo "$CC" >&6; } 3676else 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3678$as_echo "no" >&6; } 3679fi 3680 3681 3682fi 3683if test -z "$CC"; then 3684 if test -n "$ac_tool_prefix"; then 3685 for ac_prog in cl.exe 3686 do 3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3688set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3690$as_echo_n "checking for $ac_word... " >&6; } 3691if ${ac_cv_prog_CC+:} false; then : 3692 $as_echo_n "(cached) " >&6 3693else 3694 if test -n "$CC"; then 3695 ac_cv_prog_CC="$CC" # Let the user override the test. 3696else 3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3698for as_dir in $PATH 3699do 3700 IFS=$as_save_IFS 3701 test -z "$as_dir" && as_dir=. 3702 for ac_exec_ext in '' $ac_executable_extensions; do 3703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3706 break 2 3707 fi 3708done 3709 done 3710IFS=$as_save_IFS 3711 3712fi 3713fi 3714CC=$ac_cv_prog_CC 3715if test -n "$CC"; then 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3717$as_echo "$CC" >&6; } 3718else 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3720$as_echo "no" >&6; } 3721fi 3722 3723 3724 test -n "$CC" && break 3725 done 3726fi 3727if test -z "$CC"; then 3728 ac_ct_CC=$CC 3729 for ac_prog in cl.exe 3730do 3731 # Extract the first word of "$ac_prog", so it can be a program name with args. 3732set dummy $ac_prog; ac_word=$2 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3734$as_echo_n "checking for $ac_word... " >&6; } 3735if ${ac_cv_prog_ac_ct_CC+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 if test -n "$ac_ct_CC"; then 3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3740else 3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3742for as_dir in $PATH 3743do 3744 IFS=$as_save_IFS 3745 test -z "$as_dir" && as_dir=. 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3748 ac_cv_prog_ac_ct_CC="$ac_prog" 3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3750 break 2 3751 fi 3752done 3753 done 3754IFS=$as_save_IFS 3755 3756fi 3757fi 3758ac_ct_CC=$ac_cv_prog_ac_ct_CC 3759if test -n "$ac_ct_CC"; then 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3761$as_echo "$ac_ct_CC" >&6; } 3762else 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3764$as_echo "no" >&6; } 3765fi 3766 3767 3768 test -n "$ac_ct_CC" && break 3769done 3770 3771 if test "x$ac_ct_CC" = x; then 3772 CC="" 3773 else 3774 case $cross_compiling:$ac_tool_warned in 3775yes:) 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3778ac_tool_warned=yes ;; 3779esac 3780 CC=$ac_ct_CC 3781 fi 3782fi 3783 3784fi 3785 3786 3787test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3789as_fn_error $? "no acceptable C compiler found in \$PATH 3790See \`config.log' for more details" "$LINENO" 5; } 3791 3792# Provide some information about the compiler. 3793$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3794set X $ac_compile 3795ac_compiler=$2 3796for ac_option in --version -v -V -qversion; do 3797 { { ac_try="$ac_compiler $ac_option >&5" 3798case "(($ac_try" in 3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3800 *) ac_try_echo=$ac_try;; 3801esac 3802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3803$as_echo "$ac_try_echo"; } >&5 3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3805 ac_status=$? 3806 if test -s conftest.err; then 3807 sed '10a\ 3808... rest of stderr output deleted ... 3809 10q' conftest.err >conftest.er1 3810 cat conftest.er1 >&5 3811 fi 3812 rm -f conftest.er1 conftest.err 3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3814 test $ac_status = 0; } 3815done 3816 3817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3818/* end confdefs.h. */ 3819 3820int 3821main () 3822{ 3823 3824 ; 3825 return 0; 3826} 3827_ACEOF 3828ac_clean_files_save=$ac_clean_files 3829ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3830# Try to create an executable without -o first, disregard a.out. 3831# It will help us diagnose broken compilers, and finding out an intuition 3832# of exeext. 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3834$as_echo_n "checking whether the C compiler works... " >&6; } 3835ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3836 3837# The possible output files: 3838ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3839 3840ac_rmfiles= 3841for ac_file in $ac_files 3842do 3843 case $ac_file in 3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3846 esac 3847done 3848rm -f $ac_rmfiles 3849 3850if { { ac_try="$ac_link_default" 3851case "(($ac_try" in 3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3853 *) ac_try_echo=$ac_try;; 3854esac 3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3856$as_echo "$ac_try_echo"; } >&5 3857 (eval "$ac_link_default") 2>&5 3858 ac_status=$? 3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3860 test $ac_status = 0; }; then : 3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3862# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3863# in a Makefile. We should not override ac_cv_exeext if it was cached, 3864# so that the user can short-circuit this test for compilers unknown to 3865# Autoconf. 3866for ac_file in $ac_files '' 3867do 3868 test -f "$ac_file" || continue 3869 case $ac_file in 3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3871 ;; 3872 [ab].out ) 3873 # We found the default executable, but exeext='' is most 3874 # certainly right. 3875 break;; 3876 *.* ) 3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3878 then :; else 3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3880 fi 3881 # We set ac_cv_exeext here because the later test for it is not 3882 # safe: cross compilers may not add the suffix if given an `-o' 3883 # argument, so we may need to know it at that point already. 3884 # Even if this section looks crufty: it has the advantage of 3885 # actually working. 3886 break;; 3887 * ) 3888 break;; 3889 esac 3890done 3891test "$ac_cv_exeext" = no && ac_cv_exeext= 3892 3893else 3894 ac_file='' 3895fi 3896if test -z "$ac_file"; then : 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3898$as_echo "no" >&6; } 3899$as_echo "$as_me: failed program was:" >&5 3900sed 's/^/| /' conftest.$ac_ext >&5 3901 3902{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3904as_fn_error 77 "C compiler cannot create executables 3905See \`config.log' for more details" "$LINENO" 5; } 3906else 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3908$as_echo "yes" >&6; } 3909fi 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3911$as_echo_n "checking for C compiler default output file name... " >&6; } 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3913$as_echo "$ac_file" >&6; } 3914ac_exeext=$ac_cv_exeext 3915 3916rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3917ac_clean_files=$ac_clean_files_save 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3919$as_echo_n "checking for suffix of executables... " >&6; } 3920if { { ac_try="$ac_link" 3921case "(($ac_try" in 3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3923 *) ac_try_echo=$ac_try;; 3924esac 3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3926$as_echo "$ac_try_echo"; } >&5 3927 (eval "$ac_link") 2>&5 3928 ac_status=$? 3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3930 test $ac_status = 0; }; then : 3931 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3933# work properly (i.e., refer to `conftest.exe'), while it won't with 3934# `rm'. 3935for ac_file in conftest.exe conftest conftest.*; do 3936 test -f "$ac_file" || continue 3937 case $ac_file in 3938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3940 break;; 3941 * ) break;; 3942 esac 3943done 3944else 3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3947as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3948See \`config.log' for more details" "$LINENO" 5; } 3949fi 3950rm -f conftest conftest$ac_cv_exeext 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3952$as_echo "$ac_cv_exeext" >&6; } 3953 3954rm -f conftest.$ac_ext 3955EXEEXT=$ac_cv_exeext 3956ac_exeext=$EXEEXT 3957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3958/* end confdefs.h. */ 3959#include <stdio.h> 3960int 3961main () 3962{ 3963FILE *f = fopen ("conftest.out", "w"); 3964 return ferror (f) || fclose (f) != 0; 3965 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970ac_clean_files="$ac_clean_files conftest.out" 3971# Check that the compiler produces executables we can run. If not, either 3972# the compiler is broken, or we cross compile. 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3974$as_echo_n "checking whether we are cross compiling... " >&6; } 3975if test "$cross_compiling" != yes; then 3976 { { ac_try="$ac_link" 3977case "(($ac_try" in 3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3979 *) ac_try_echo=$ac_try;; 3980esac 3981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3982$as_echo "$ac_try_echo"; } >&5 3983 (eval "$ac_link") 2>&5 3984 ac_status=$? 3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3986 test $ac_status = 0; } 3987 if { ac_try='./conftest$ac_cv_exeext' 3988 { { case "(($ac_try" in 3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3990 *) ac_try_echo=$ac_try;; 3991esac 3992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3993$as_echo "$ac_try_echo"; } >&5 3994 (eval "$ac_try") 2>&5 3995 ac_status=$? 3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3997 test $ac_status = 0; }; }; then 3998 cross_compiling=no 3999 else 4000 if test "$cross_compiling" = maybe; then 4001 cross_compiling=yes 4002 else 4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4005as_fn_error $? "cannot run C compiled programs. 4006If you meant to cross compile, use \`--host'. 4007See \`config.log' for more details" "$LINENO" 5; } 4008 fi 4009 fi 4010fi 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4012$as_echo "$cross_compiling" >&6; } 4013 4014rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4015ac_clean_files=$ac_clean_files_save 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4017$as_echo_n "checking for suffix of object files... " >&6; } 4018if ${ac_cv_objext+:} false; then : 4019 $as_echo_n "(cached) " >&6 4020else 4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4022/* end confdefs.h. */ 4023 4024int 4025main () 4026{ 4027 4028 ; 4029 return 0; 4030} 4031_ACEOF 4032rm -f conftest.o conftest.obj 4033if { { ac_try="$ac_compile" 4034case "(($ac_try" in 4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4036 *) ac_try_echo=$ac_try;; 4037esac 4038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4039$as_echo "$ac_try_echo"; } >&5 4040 (eval "$ac_compile") 2>&5 4041 ac_status=$? 4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4043 test $ac_status = 0; }; then : 4044 for ac_file in conftest.o conftest.obj conftest.*; do 4045 test -f "$ac_file" || continue; 4046 case $ac_file in 4047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4049 break;; 4050 esac 4051done 4052else 4053 $as_echo "$as_me: failed program was:" >&5 4054sed 's/^/| /' conftest.$ac_ext >&5 4055 4056{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4058as_fn_error $? "cannot compute suffix of object files: cannot compile 4059See \`config.log' for more details" "$LINENO" 5; } 4060fi 4061rm -f conftest.$ac_cv_objext conftest.$ac_ext 4062fi 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4064$as_echo "$ac_cv_objext" >&6; } 4065OBJEXT=$ac_cv_objext 4066ac_objext=$OBJEXT 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4068$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4069if ${ac_cv_c_compiler_gnu+:} false; then : 4070 $as_echo_n "(cached) " >&6 4071else 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074 4075int 4076main () 4077{ 4078#ifndef __GNUC__ 4079 choke me 4080#endif 4081 4082 ; 4083 return 0; 4084} 4085_ACEOF 4086if ac_fn_c_try_compile "$LINENO"; then : 4087 ac_compiler_gnu=yes 4088else 4089 ac_compiler_gnu=no 4090fi 4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4092ac_cv_c_compiler_gnu=$ac_compiler_gnu 4093 4094fi 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4096$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4097if test $ac_compiler_gnu = yes; then 4098 GCC=yes 4099else 4100 GCC= 4101fi 4102ac_test_CFLAGS=${CFLAGS+set} 4103ac_save_CFLAGS=$CFLAGS 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4105$as_echo_n "checking whether $CC accepts -g... " >&6; } 4106if ${ac_cv_prog_cc_g+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 ac_save_c_werror_flag=$ac_c_werror_flag 4110 ac_c_werror_flag=yes 4111 ac_cv_prog_cc_g=no 4112 CFLAGS="-g" 4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115 4116int 4117main () 4118{ 4119 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124if ac_fn_c_try_compile "$LINENO"; then : 4125 ac_cv_prog_cc_g=yes 4126else 4127 CFLAGS="" 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130 4131int 4132main () 4133{ 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139if ac_fn_c_try_compile "$LINENO"; then : 4140 4141else 4142 ac_c_werror_flag=$ac_save_c_werror_flag 4143 CFLAGS="-g" 4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146 4147int 4148main () 4149{ 4150 4151 ; 4152 return 0; 4153} 4154_ACEOF 4155if ac_fn_c_try_compile "$LINENO"; then : 4156 ac_cv_prog_cc_g=yes 4157fi 4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4159fi 4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4161fi 4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4163 ac_c_werror_flag=$ac_save_c_werror_flag 4164fi 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4166$as_echo "$ac_cv_prog_cc_g" >&6; } 4167if test "$ac_test_CFLAGS" = set; then 4168 CFLAGS=$ac_save_CFLAGS 4169elif test $ac_cv_prog_cc_g = yes; then 4170 if test "$GCC" = yes; then 4171 CFLAGS="-g -O2" 4172 else 4173 CFLAGS="-g" 4174 fi 4175else 4176 if test "$GCC" = yes; then 4177 CFLAGS="-O2" 4178 else 4179 CFLAGS= 4180 fi 4181fi 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4183$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4184if ${ac_cv_prog_cc_c89+:} false; then : 4185 $as_echo_n "(cached) " >&6 4186else 4187 ac_cv_prog_cc_c89=no 4188ac_save_CC=$CC 4189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191#include <stdarg.h> 4192#include <stdio.h> 4193struct stat; 4194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4195struct buf { int x; }; 4196FILE * (*rcsopen) (struct buf *, struct stat *, int); 4197static char *e (p, i) 4198 char **p; 4199 int i; 4200{ 4201 return p[i]; 4202} 4203static char *f (char * (*g) (char **, int), char **p, ...) 4204{ 4205 char *s; 4206 va_list v; 4207 va_start (v,p); 4208 s = g (p, va_arg (v,int)); 4209 va_end (v); 4210 return s; 4211} 4212 4213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4214 function prototypes and stuff, but not '\xHH' hex character constants. 4215 These don't provoke an error unfortunately, instead are silently treated 4216 as 'x'. The following induces an error, until -std is added to get 4217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4218 array size at least. It's necessary to write '\x00'==0 to get something 4219 that's true only with -std. */ 4220int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4221 4222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4223 inside strings and character constants. */ 4224#define FOO(x) 'x' 4225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4226 4227int test (int i, double x); 4228struct s1 {int (*f) (int a);}; 4229struct s2 {int (*f) (double a);}; 4230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4231int argc; 4232char **argv; 4233int 4234main () 4235{ 4236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4237 ; 4238 return 0; 4239} 4240_ACEOF 4241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4243do 4244 CC="$ac_save_CC $ac_arg" 4245 if ac_fn_c_try_compile "$LINENO"; then : 4246 ac_cv_prog_cc_c89=$ac_arg 4247fi 4248rm -f core conftest.err conftest.$ac_objext 4249 test "x$ac_cv_prog_cc_c89" != "xno" && break 4250done 4251rm -f conftest.$ac_ext 4252CC=$ac_save_CC 4253 4254fi 4255# AC_CACHE_VAL 4256case "x$ac_cv_prog_cc_c89" in 4257 x) 4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4259$as_echo "none needed" >&6; } ;; 4260 xno) 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4262$as_echo "unsupported" >&6; } ;; 4263 *) 4264 CC="$CC $ac_cv_prog_cc_c89" 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4266$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4267esac 4268if test "x$ac_cv_prog_cc_c89" != xno; then : 4269 4270fi 4271 4272ac_ext=c 4273ac_cpp='$CPP $CPPFLAGS' 4274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4276ac_compiler_gnu=$ac_cv_c_compiler_gnu 4277 4278ac_ext=c 4279ac_cpp='$CPP $CPPFLAGS' 4280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4282ac_compiler_gnu=$ac_cv_c_compiler_gnu 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4284$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4285if ${am_cv_prog_cc_c_o+:} false; then : 4286 $as_echo_n "(cached) " >&6 4287else 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290 4291int 4292main () 4293{ 4294 4295 ; 4296 return 0; 4297} 4298_ACEOF 4299 # Make sure it works both with $CC and with simple cc. 4300 # Following AC_PROG_CC_C_O, we do the test twice because some 4301 # compilers refuse to overwrite an existing .o file with -o, 4302 # though they will create one. 4303 am_cv_prog_cc_c_o=yes 4304 for am_i in 1 2; do 4305 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4306 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4307 ac_status=$? 4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4309 (exit $ac_status); } \ 4310 && test -f conftest2.$ac_objext; then 4311 : OK 4312 else 4313 am_cv_prog_cc_c_o=no 4314 break 4315 fi 4316 done 4317 rm -f core conftest* 4318 unset am_i 4319fi 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4321$as_echo "$am_cv_prog_cc_c_o" >&6; } 4322if test "$am_cv_prog_cc_c_o" != yes; then 4323 # Losing compiler, so override with the script. 4324 # FIXME: It is wrong to rewrite CC. 4325 # But if we don't then we get into trouble of one sort or another. 4326 # A longer-term fix would be to have automake use am__CC in this case, 4327 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4328 CC="$am_aux_dir/compile $CC" 4329fi 4330ac_ext=c 4331ac_cpp='$CPP $CPPFLAGS' 4332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4334ac_compiler_gnu=$ac_cv_c_compiler_gnu 4335 4336 4337depcc="$CC" am_compiler_list= 4338 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4340$as_echo_n "checking dependency style of $depcc... " >&6; } 4341if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4342 $as_echo_n "(cached) " >&6 4343else 4344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4345 # We make a subdir and do the tests there. Otherwise we can end up 4346 # making bogus files that we don't know about and never remove. For 4347 # instance it was reported that on HP-UX the gcc test will end up 4348 # making a dummy file named 'D' -- because '-MD' means "put the output 4349 # in D". 4350 rm -rf conftest.dir 4351 mkdir conftest.dir 4352 # Copy depcomp to subdir because otherwise we won't find it if we're 4353 # using a relative directory. 4354 cp "$am_depcomp" conftest.dir 4355 cd conftest.dir 4356 # We will build objects and dependencies in a subdirectory because 4357 # it helps to detect inapplicable dependency modes. For instance 4358 # both Tru64's cc and ICC support -MD to output dependencies as a 4359 # side effect of compilation, but ICC will put the dependencies in 4360 # the current directory while Tru64 will put them in the object 4361 # directory. 4362 mkdir sub 4363 4364 am_cv_CC_dependencies_compiler_type=none 4365 if test "$am_compiler_list" = ""; then 4366 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4367 fi 4368 am__universal=false 4369 case " $depcc " in #( 4370 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4371 esac 4372 4373 for depmode in $am_compiler_list; do 4374 # Setup a source with many dependencies, because some compilers 4375 # like to wrap large dependency lists on column 80 (with \), and 4376 # we should not choose a depcomp mode which is confused by this. 4377 # 4378 # We need to recreate these files for each test, as the compiler may 4379 # overwrite some of them when testing with obscure command lines. 4380 # This happens at least with the AIX C compiler. 4381 : > sub/conftest.c 4382 for i in 1 2 3 4 5 6; do 4383 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4384 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4385 # Solaris 10 /bin/sh. 4386 echo '/* dummy */' > sub/conftst$i.h 4387 done 4388 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4389 4390 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4391 # mode. It turns out that the SunPro C++ compiler does not properly 4392 # handle '-M -o', and we need to detect this. Also, some Intel 4393 # versions had trouble with output in subdirs. 4394 am__obj=sub/conftest.${OBJEXT-o} 4395 am__minus_obj="-o $am__obj" 4396 case $depmode in 4397 gcc) 4398 # This depmode causes a compiler race in universal mode. 4399 test "$am__universal" = false || continue 4400 ;; 4401 nosideeffect) 4402 # After this tag, mechanisms are not by side-effect, so they'll 4403 # only be used when explicitly requested. 4404 if test "x$enable_dependency_tracking" = xyes; then 4405 continue 4406 else 4407 break 4408 fi 4409 ;; 4410 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4411 # This compiler won't grok '-c -o', but also, the minuso test has 4412 # not run yet. These depmodes are late enough in the game, and 4413 # so weak that their functioning should not be impacted. 4414 am__obj=conftest.${OBJEXT-o} 4415 am__minus_obj= 4416 ;; 4417 none) break ;; 4418 esac 4419 if depmode=$depmode \ 4420 source=sub/conftest.c object=$am__obj \ 4421 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4422 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4423 >/dev/null 2>conftest.err && 4424 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4425 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4426 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4427 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4428 # icc doesn't choke on unknown options, it will just issue warnings 4429 # or remarks (even with -Werror). So we grep stderr for any message 4430 # that says an option was ignored or not supported. 4431 # When given -MP, icc 7.0 and 7.1 complain thusly: 4432 # icc: Command line warning: ignoring option '-M'; no argument required 4433 # The diagnosis changed in icc 8.0: 4434 # icc: Command line remark: option '-MP' not supported 4435 if (grep 'ignoring option' conftest.err || 4436 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4437 am_cv_CC_dependencies_compiler_type=$depmode 4438 break 4439 fi 4440 fi 4441 done 4442 4443 cd .. 4444 rm -rf conftest.dir 4445else 4446 am_cv_CC_dependencies_compiler_type=none 4447fi 4448 4449fi 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4451$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4452CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4453 4454 if 4455 test "x$enable_dependency_tracking" != xno \ 4456 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4457 am__fastdepCC_TRUE= 4458 am__fastdepCC_FALSE='#' 4459else 4460 am__fastdepCC_TRUE='#' 4461 am__fastdepCC_FALSE= 4462fi 4463 4464 4465 4466ac_ext=c 4467ac_cpp='$CPP $CPPFLAGS' 4468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4470ac_compiler_gnu=$ac_cv_c_compiler_gnu 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4472$as_echo_n "checking how to run the C preprocessor... " >&6; } 4473# On Suns, sometimes $CPP names a directory. 4474if test -n "$CPP" && test -d "$CPP"; then 4475 CPP= 4476fi 4477if test -z "$CPP"; then 4478 if ${ac_cv_prog_CPP+:} false; then : 4479 $as_echo_n "(cached) " >&6 4480else 4481 # Double quotes because CPP needs to be expanded 4482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4483 do 4484 ac_preproc_ok=false 4485for ac_c_preproc_warn_flag in '' yes 4486do 4487 # Use a header file that comes with gcc, so configuring glibc 4488 # with a fresh cross-compiler works. 4489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4490 # <limits.h> exists even on freestanding compilers. 4491 # On the NeXT, cc -E runs the code through the compiler's parser, 4492 # not just through cpp. "Syntax error" is here to catch this case. 4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4494/* end confdefs.h. */ 4495#ifdef __STDC__ 4496# include <limits.h> 4497#else 4498# include <assert.h> 4499#endif 4500 Syntax error 4501_ACEOF 4502if ac_fn_c_try_cpp "$LINENO"; then : 4503 4504else 4505 # Broken: fails on valid input. 4506continue 4507fi 4508rm -f conftest.err conftest.i conftest.$ac_ext 4509 4510 # OK, works on sane cases. Now check whether nonexistent headers 4511 # can be detected and how. 4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4513/* end confdefs.h. */ 4514#include <ac_nonexistent.h> 4515_ACEOF 4516if ac_fn_c_try_cpp "$LINENO"; then : 4517 # Broken: success on invalid input. 4518continue 4519else 4520 # Passes both tests. 4521ac_preproc_ok=: 4522break 4523fi 4524rm -f conftest.err conftest.i conftest.$ac_ext 4525 4526done 4527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4528rm -f conftest.i conftest.err conftest.$ac_ext 4529if $ac_preproc_ok; then : 4530 break 4531fi 4532 4533 done 4534 ac_cv_prog_CPP=$CPP 4535 4536fi 4537 CPP=$ac_cv_prog_CPP 4538else 4539 ac_cv_prog_CPP=$CPP 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4542$as_echo "$CPP" >&6; } 4543ac_preproc_ok=false 4544for ac_c_preproc_warn_flag in '' yes 4545do 4546 # Use a header file that comes with gcc, so configuring glibc 4547 # with a fresh cross-compiler works. 4548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4549 # <limits.h> exists even on freestanding compilers. 4550 # On the NeXT, cc -E runs the code through the compiler's parser, 4551 # not just through cpp. "Syntax error" is here to catch this case. 4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4553/* end confdefs.h. */ 4554#ifdef __STDC__ 4555# include <limits.h> 4556#else 4557# include <assert.h> 4558#endif 4559 Syntax error 4560_ACEOF 4561if ac_fn_c_try_cpp "$LINENO"; then : 4562 4563else 4564 # Broken: fails on valid input. 4565continue 4566fi 4567rm -f conftest.err conftest.i conftest.$ac_ext 4568 4569 # OK, works on sane cases. Now check whether nonexistent headers 4570 # can be detected and how. 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4572/* end confdefs.h. */ 4573#include <ac_nonexistent.h> 4574_ACEOF 4575if ac_fn_c_try_cpp "$LINENO"; then : 4576 # Broken: success on invalid input. 4577continue 4578else 4579 # Passes both tests. 4580ac_preproc_ok=: 4581break 4582fi 4583rm -f conftest.err conftest.i conftest.$ac_ext 4584 4585done 4586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4587rm -f conftest.i conftest.err conftest.$ac_ext 4588if $ac_preproc_ok; then : 4589 4590else 4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4593as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4594See \`config.log' for more details" "$LINENO" 5; } 4595fi 4596 4597ac_ext=c 4598ac_cpp='$CPP $CPPFLAGS' 4599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4601ac_compiler_gnu=$ac_cv_c_compiler_gnu 4602 4603 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4605$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4606if ${ac_cv_path_GREP+:} false; then : 4607 $as_echo_n "(cached) " >&6 4608else 4609 if test -z "$GREP"; then 4610 ac_path_GREP_found=false 4611 # Loop through the user's path and test for each of PROGNAME-LIST 4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4613for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4614do 4615 IFS=$as_save_IFS 4616 test -z "$as_dir" && as_dir=. 4617 for ac_prog in grep ggrep; do 4618 for ac_exec_ext in '' $ac_executable_extensions; do 4619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4620 as_fn_executable_p "$ac_path_GREP" || continue 4621# Check for GNU ac_path_GREP and select it if it is found. 4622 # Check for GNU $ac_path_GREP 4623case `"$ac_path_GREP" --version 2>&1` in 4624*GNU*) 4625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4626*) 4627 ac_count=0 4628 $as_echo_n 0123456789 >"conftest.in" 4629 while : 4630 do 4631 cat "conftest.in" "conftest.in" >"conftest.tmp" 4632 mv "conftest.tmp" "conftest.in" 4633 cp "conftest.in" "conftest.nl" 4634 $as_echo 'GREP' >> "conftest.nl" 4635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4637 as_fn_arith $ac_count + 1 && ac_count=$as_val 4638 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4639 # Best one so far, save it but keep looking for a better one 4640 ac_cv_path_GREP="$ac_path_GREP" 4641 ac_path_GREP_max=$ac_count 4642 fi 4643 # 10*(2^10) chars as input seems more than enough 4644 test $ac_count -gt 10 && break 4645 done 4646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4647esac 4648 4649 $ac_path_GREP_found && break 3 4650 done 4651 done 4652 done 4653IFS=$as_save_IFS 4654 if test -z "$ac_cv_path_GREP"; then 4655 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4656 fi 4657else 4658 ac_cv_path_GREP=$GREP 4659fi 4660 4661fi 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4663$as_echo "$ac_cv_path_GREP" >&6; } 4664 GREP="$ac_cv_path_GREP" 4665 4666 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4668$as_echo_n "checking for egrep... " >&6; } 4669if ${ac_cv_path_EGREP+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4673 then ac_cv_path_EGREP="$GREP -E" 4674 else 4675 if test -z "$EGREP"; then 4676 ac_path_EGREP_found=false 4677 # Loop through the user's path and test for each of PROGNAME-LIST 4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4680do 4681 IFS=$as_save_IFS 4682 test -z "$as_dir" && as_dir=. 4683 for ac_prog in egrep; do 4684 for ac_exec_ext in '' $ac_executable_extensions; do 4685 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4686 as_fn_executable_p "$ac_path_EGREP" || continue 4687# Check for GNU ac_path_EGREP and select it if it is found. 4688 # Check for GNU $ac_path_EGREP 4689case `"$ac_path_EGREP" --version 2>&1` in 4690*GNU*) 4691 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4692*) 4693 ac_count=0 4694 $as_echo_n 0123456789 >"conftest.in" 4695 while : 4696 do 4697 cat "conftest.in" "conftest.in" >"conftest.tmp" 4698 mv "conftest.tmp" "conftest.in" 4699 cp "conftest.in" "conftest.nl" 4700 $as_echo 'EGREP' >> "conftest.nl" 4701 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4703 as_fn_arith $ac_count + 1 && ac_count=$as_val 4704 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4705 # Best one so far, save it but keep looking for a better one 4706 ac_cv_path_EGREP="$ac_path_EGREP" 4707 ac_path_EGREP_max=$ac_count 4708 fi 4709 # 10*(2^10) chars as input seems more than enough 4710 test $ac_count -gt 10 && break 4711 done 4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4713esac 4714 4715 $ac_path_EGREP_found && break 3 4716 done 4717 done 4718 done 4719IFS=$as_save_IFS 4720 if test -z "$ac_cv_path_EGREP"; then 4721 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4722 fi 4723else 4724 ac_cv_path_EGREP=$EGREP 4725fi 4726 4727 fi 4728fi 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4730$as_echo "$ac_cv_path_EGREP" >&6; } 4731 EGREP="$ac_cv_path_EGREP" 4732 4733 4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4735$as_echo_n "checking for ANSI C header files... " >&6; } 4736if ${ac_cv_header_stdc+:} false; then : 4737 $as_echo_n "(cached) " >&6 4738else 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740/* end confdefs.h. */ 4741#include <stdlib.h> 4742#include <stdarg.h> 4743#include <string.h> 4744#include <float.h> 4745 4746int 4747main () 4748{ 4749 4750 ; 4751 return 0; 4752} 4753_ACEOF 4754if ac_fn_c_try_compile "$LINENO"; then : 4755 ac_cv_header_stdc=yes 4756else 4757 ac_cv_header_stdc=no 4758fi 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760 4761if test $ac_cv_header_stdc = yes; then 4762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4764/* end confdefs.h. */ 4765#include <string.h> 4766 4767_ACEOF 4768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4769 $EGREP "memchr" >/dev/null 2>&1; then : 4770 4771else 4772 ac_cv_header_stdc=no 4773fi 4774rm -f conftest* 4775 4776fi 4777 4778if test $ac_cv_header_stdc = yes; then 4779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4781/* end confdefs.h. */ 4782#include <stdlib.h> 4783 4784_ACEOF 4785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4786 $EGREP "free" >/dev/null 2>&1; then : 4787 4788else 4789 ac_cv_header_stdc=no 4790fi 4791rm -f conftest* 4792 4793fi 4794 4795if test $ac_cv_header_stdc = yes; then 4796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4797 if test "$cross_compiling" = yes; then : 4798 : 4799else 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802#include <ctype.h> 4803#include <stdlib.h> 4804#if ((' ' & 0x0FF) == 0x020) 4805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4807#else 4808# define ISLOWER(c) \ 4809 (('a' <= (c) && (c) <= 'i') \ 4810 || ('j' <= (c) && (c) <= 'r') \ 4811 || ('s' <= (c) && (c) <= 'z')) 4812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4813#endif 4814 4815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4816int 4817main () 4818{ 4819 int i; 4820 for (i = 0; i < 256; i++) 4821 if (XOR (islower (i), ISLOWER (i)) 4822 || toupper (i) != TOUPPER (i)) 4823 return 2; 4824 return 0; 4825} 4826_ACEOF 4827if ac_fn_c_try_run "$LINENO"; then : 4828 4829else 4830 ac_cv_header_stdc=no 4831fi 4832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4833 conftest.$ac_objext conftest.beam conftest.$ac_ext 4834fi 4835 4836fi 4837fi 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4839$as_echo "$ac_cv_header_stdc" >&6; } 4840if test $ac_cv_header_stdc = yes; then 4841 4842$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4843 4844fi 4845 4846# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4847for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4848 inttypes.h stdint.h unistd.h 4849do : 4850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4851ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4852" 4853if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4854 cat >>confdefs.h <<_ACEOF 4855#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4856_ACEOF 4857 4858fi 4859 4860done 4861 4862 4863 4864 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4865if test "x$ac_cv_header_minix_config_h" = xyes; then : 4866 MINIX=yes 4867else 4868 MINIX= 4869fi 4870 4871 4872 if test "$MINIX" = yes; then 4873 4874$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4875 4876 4877$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4878 4879 4880$as_echo "#define _MINIX 1" >>confdefs.h 4881 4882 fi 4883 4884 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4886$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4887if ${ac_cv_safe_to_define___extensions__+:} false; then : 4888 $as_echo_n "(cached) " >&6 4889else 4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4891/* end confdefs.h. */ 4892 4893# define __EXTENSIONS__ 1 4894 $ac_includes_default 4895int 4896main () 4897{ 4898 4899 ; 4900 return 0; 4901} 4902_ACEOF 4903if ac_fn_c_try_compile "$LINENO"; then : 4904 ac_cv_safe_to_define___extensions__=yes 4905else 4906 ac_cv_safe_to_define___extensions__=no 4907fi 4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4909fi 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4911$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4912 test $ac_cv_safe_to_define___extensions__ = yes && 4913 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4914 4915 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4916 4917 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4918 4919 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4920 4921 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4922 4923 4924 4925 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5 4927$as_echo_n "checking which random module to use... " >&6; } 4928# Check whether --enable-static-rnd was given. 4929if test "${enable_static_rnd+set}" = set; then : 4930 enableval=$enable_static_rnd; use_static_rnd=$enableval 4931else 4932 use_static_rnd=default 4933fi 4934 4935 4936if test "$use_static_rnd" = no; then 4937 use_static_rnd=default 4938fi 4939 4940case "$use_static_rnd" in 4941 egd | linux | unix | default ) 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_static_rnd" >&5 4943$as_echo "$use_static_rnd" >&6; } 4944 ;; 4945 auto ) 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: automagically selected at runtime" >&5 4947$as_echo "automagically selected at runtime" >&6; } 4948 ;; 4949 * ) 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: invalid argument" >&5 4951$as_echo "invalid argument" >&6; } 4952 as_fn_error $? "there is no random module rnd$use_static_rnd" "$LINENO" 5 4953 ;; 4954esac 4955 4956 4957# Check whether --with-egd-socket was given. 4958if test "${with_egd_socket+set}" = set; then : 4959 withval=$with_egd_socket; egd_socket_name="$withval" 4960else 4961 egd_socket_name="" 4962fi 4963 4964 4965cat >>confdefs.h <<_ACEOF 4966#define EGD_SOCKET_NAME "$egd_socket_name" 4967_ACEOF 4968 4969 4970 4971 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5 4973$as_echo_n "checking whether use of /dev/random is requested... " >&6; } 4974# Check whether --enable-dev-random was given. 4975if test "${enable_dev_random+set}" = set; then : 4976 enableval=$enable_dev_random; try_dev_random=$enableval 4977else 4978 try_dev_random=yes 4979fi 4980 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5 4982$as_echo "$try_dev_random" >&6; } 4983 4984 4985 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler modules are requested" >&5 4987$as_echo_n "checking whether assembler modules are requested... " >&6; } 4988# Check whether --enable-asm was given. 4989if test "${enable_asm+set}" = set; then : 4990 enableval=$enable_asm; try_asm_modules=$enableval 4991else 4992 try_asm_modules=yes 4993fi 4994 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5 4996$as_echo "$try_asm_modules" >&6; } 4997 4998 4999# SELinux support includes tracking of sensitive files to avoid 5000# leaking their contents through processing these files by gpg itself 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5 5002$as_echo_n "checking whether SELinux support is requested... " >&6; } 5003# Check whether --enable-selinux-support was given. 5004if test "${enable_selinux_support+set}" = set; then : 5005 enableval=$enable_selinux_support; selinux_support=$enableval 5006else 5007 selinux_support=no 5008fi 5009 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5 5011$as_echo "$selinux_support" >&6; } 5012 5013 5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the new iconv based code is requested" >&5 5015$as_echo_n "checking whether the new iconv based code is requested... " >&6; } 5016# Check whether --enable-gnupg-iconv was given. 5017if test "${enable_gnupg_iconv+set}" = set; then : 5018 enableval=$enable_gnupg_iconv; gnupg_use_iconv=$enableval 5019else 5020 gnupg_use_iconv=yes 5021fi 5022 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_use_iconv" >&5 5024$as_echo "$gnupg_use_iconv" >&6; } 5025 5026 5027try_extensions=no 5028 5029try_gettext=yes 5030try_dns=yes 5031use_rsa=yes 5032use_idea=yes 5033use_cast5=yes 5034use_blowfish=yes 5035use_aes=yes 5036use_twofish=yes 5037use_camellia=yes 5038use_sha256=yes 5039use_sha512=yes 5040use_bzip2=yes 5041use_exec=yes 5042card_support=yes 5043agent_support=yes 5044disable_keyserver_path=no 5045large_secmem=no 5046 5047# Check whether --enable-minimal was given. 5048if test "${enable_minimal+set}" = set; then : 5049 enableval=$enable_minimal; try_dns=no 5050 use_rsa=no 5051 use_idea=no 5052 use_cast5=no 5053 use_blowfish=no 5054 use_aes=no 5055 use_twofish=no 5056 use_camellia=no 5057 use_sha256=no 5058 use_sha512=no 5059 use_bzip2=no 5060 use_exec=no 5061 card_support=no 5062 agent_support=no 5063fi 5064 5065 5066 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5 5068$as_echo_n "checking whether to allocate extra secure memory... " >&6; } 5069# Check whether --enable-large-secmem was given. 5070if test "${enable_large_secmem+set}" = set; then : 5071 enableval=$enable_large_secmem; large_secmem=$enableval 5072else 5073 large_secmem=no 5074fi 5075 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5 5077$as_echo "$large_secmem" >&6; } 5078if test "$large_secmem" = yes ; then 5079 SECMEM_BUFFER_SIZE=65536 5080else 5081 SECMEM_BUFFER_SIZE=32768 5082fi 5083 5084cat >>confdefs.h <<_ACEOF 5085#define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE 5086_ACEOF 5087 5088 5089 5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenPGP card support is requested" >&5 5091$as_echo_n "checking whether OpenPGP card support is requested... " >&6; } 5092# Check whether --enable-card-support was given. 5093if test "${enable_card_support+set}" = set; then : 5094 enableval=$enable_card_support; card_support=$enableval 5095fi 5096 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5 5098$as_echo "$card_support" >&6; } 5099 5100 5101# Note that we may later disable the agent support based on the platform. 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gpg-agent support is requested" >&5 5103$as_echo_n "checking whether gpg-agent support is requested... " >&6; } 5104# Check whether --enable-agent-support was given. 5105if test "${enable_agent_support+set}" = set; then : 5106 enableval=$enable_agent_support; agent_support=$enableval 5107fi 5108 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_support" >&5 5110$as_echo "$agent_support" >&6; } 5111 5112 5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key algorithm" >&5 5114$as_echo_n "checking whether to enable the RSA public key algorithm... " >&6; } 5115# Check whether --enable-rsa was given. 5116if test "${enable_rsa+set}" = set; then : 5117 enableval=$enable_rsa; use_rsa=$enableval 5118fi 5119 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_rsa" >&5 5121$as_echo "$use_rsa" >&6; } 5122if test x"$use_rsa" = xyes ; then 5123 5124$as_echo "#define USE_RSA 1" >>confdefs.h 5125 5126fi 5127 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher" >&5 5129$as_echo_n "checking whether to enable the IDEA cipher... " >&6; } 5130# Check whether --enable-idea was given. 5131if test "${enable_idea+set}" = set; then : 5132 enableval=$enable_idea; use_idea=$enableval 5133fi 5134 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_idea" >&5 5136$as_echo "$use_idea" >&6; } 5137if test x"$use_idea" = xyes ; then 5138 5139$as_echo "#define USE_IDEA 1" >>confdefs.h 5140 5141fi 5142 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher" >&5 5144$as_echo_n "checking whether to enable the CAST5 cipher... " >&6; } 5145# Check whether --enable-cast5 was given. 5146if test "${enable_cast5+set}" = set; then : 5147 enableval=$enable_cast5; use_cast5=$enableval 5148fi 5149 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_cast5" >&5 5151$as_echo "$use_cast5" >&6; } 5152if test x"$use_cast5" = xyes ; then 5153 5154$as_echo "#define USE_CAST5 1" >>confdefs.h 5155 5156fi 5157 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher" >&5 5159$as_echo_n "checking whether to enable the BLOWFISH cipher... " >&6; } 5160# Check whether --enable-blowfish was given. 5161if test "${enable_blowfish+set}" = set; then : 5162 enableval=$enable_blowfish; use_blowfish=$enableval 5163fi 5164 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_blowfish" >&5 5166$as_echo "$use_blowfish" >&6; } 5167if test x"$use_blowfish" = xyes ; then 5168 5169$as_echo "#define USE_BLOWFISH 1" >>confdefs.h 5170 5171fi 5172 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES ciphers" >&5 5174$as_echo_n "checking whether to enable the AES ciphers... " >&6; } 5175# Check whether --enable-aes was given. 5176if test "${enable_aes+set}" = set; then : 5177 enableval=$enable_aes; use_aes=$enableval 5178fi 5179 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_aes" >&5 5181$as_echo "$use_aes" >&6; } 5182if test x"$use_aes" = xyes ; then 5183 5184$as_echo "#define USE_AES 1" >>confdefs.h 5185 5186fi 5187 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher" >&5 5189$as_echo_n "checking whether to enable the TWOFISH cipher... " >&6; } 5190# Check whether --enable-twofish was given. 5191if test "${enable_twofish+set}" = set; then : 5192 enableval=$enable_twofish; use_twofish=$enableval 5193fi 5194 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_twofish" >&5 5196$as_echo "$use_twofish" >&6; } 5197if test x"$use_twofish" = xyes ; then 5198 5199$as_echo "#define USE_TWOFISH 1" >>confdefs.h 5200 5201fi 5202 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA cipher" >&5 5204$as_echo_n "checking whether to enable the CAMELLIA cipher... " >&6; } 5205# Check whether --enable-camellia was given. 5206if test "${enable_camellia+set}" = set; then : 5207 enableval=$enable_camellia; use_camellia=$enableval 5208fi 5209 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_camellia" >&5 5211$as_echo "$use_camellia" >&6; } 5212if test x"$use_camellia" = xyes ; then 5213 5214$as_echo "#define USE_CAMELLIA 1" >>confdefs.h 5215 5216fi 5217 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 and SHA-256 digests" >&5 5219$as_echo_n "checking whether to enable the SHA-224 and SHA-256 digests... " >&6; } 5220# Check whether --enable-sha256 was given. 5221if test "${enable_sha256+set}" = set; then : 5222 enableval=$enable_sha256; use_sha256=$enableval 5223fi 5224 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_sha256" >&5 5226$as_echo "$use_sha256" >&6; } 5227if test x"$use_sha256" = xyes ; then 5228 5229$as_echo "#define USE_SHA256 1" >>confdefs.h 5230 5231fi 5232 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 and SHA-512 digests" >&5 5234$as_echo_n "checking whether to enable the SHA-384 and SHA-512 digests... " >&6; } 5235# Check whether --enable-sha512 was given. 5236if test "${enable_sha512+set}" = set; then : 5237 enableval=$enable_sha512; use_sha512=$enableval 5238fi 5239 5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_sha512" >&5 5241$as_echo "$use_sha512" >&6; } 5242 5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5 5244$as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; } 5245# Check whether --enable-bzip2 was given. 5246if test "${enable_bzip2+set}" = set; then : 5247 enableval=$enable_bzip2; use_bzip2=$enableval 5248fi 5249 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5 5251$as_echo "$use_bzip2" >&6; } 5252 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5 5254$as_echo_n "checking whether to enable external program execution... " >&6; } 5255# Check whether --enable-exec was given. 5256if test "${enable_exec+set}" = set; then : 5257 enableval=$enable_exec; use_exec=$enableval 5258fi 5259 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5 5261$as_echo "$use_exec" >&6; } 5262if test "$use_exec" = no ; then 5263 5264$as_echo "#define NO_EXEC 1" >>confdefs.h 5265 5266fi 5267 5268if test "$use_exec" = yes ; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5 5270$as_echo_n "checking whether to enable photo ID viewing... " >&6; } 5271 # Check whether --enable-photo-viewers was given. 5272if test "${enable_photo_viewers+set}" = set; then : 5273 enableval=$enable_photo_viewers; if test "$enableval" = no ; then 5274 5275$as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h 5276 5277 fi 5278else 5279 enableval=yes 5280fi 5281 5282 gnupg_cv_enable_photo_viewers=$enableval 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 5284$as_echo "$enableval" >&6; } 5285 5286 if test "$gnupg_cv_enable_photo_viewers" = yes ; then 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5 5288$as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; } 5289 5290# Check whether --with-photo-viewer was given. 5291if test "${with_photo_viewer+set}" = set; then : 5292 withval=$with_photo_viewer; if test "$withval" = yes ; then 5293 withval=no 5294 elif test "$withval" != no ; then 5295 5296cat >>confdefs.h <<_ACEOF 5297#define FIXED_PHOTO_VIEWER "$withval" 5298_ACEOF 5299 5300 fi 5301else 5302 withval=no 5303fi 5304 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 5306$as_echo "$withval" >&6; } 5307 fi 5308 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external keyserver helpers" >&5 5310$as_echo_n "checking whether to enable external keyserver helpers... " >&6; } 5311 # Check whether --enable-keyserver-helpers was given. 5312if test "${enable_keyserver_helpers+set}" = set; then : 5313 enableval=$enable_keyserver_helpers; if test "$enableval" = no ; then 5314 5315$as_echo "#define DISABLE_KEYSERVER_HELPERS 1" >>confdefs.h 5316 5317 fi 5318else 5319 enableval=yes 5320fi 5321 5322 gnupg_cv_enable_keyserver_helpers=$enableval 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 5324$as_echo "$enableval" >&6; } 5325 5326 if test "$gnupg_cv_enable_keyserver_helpers" = yes ; then 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP keyserver support is requested" >&5 5328$as_echo_n "checking whether LDAP keyserver support is requested... " >&6; } 5329 # Check whether --enable-ldap was given. 5330if test "${enable_ldap+set}" = set; then : 5331 enableval=$enable_ldap; try_ldap=$enableval 5332else 5333 try_ldap=yes 5334fi 5335 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_ldap" >&5 5337$as_echo "$try_ldap" >&6; } 5338 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HKP keyserver support is requested" >&5 5340$as_echo_n "checking whether HKP keyserver support is requested... " >&6; } 5341 # Check whether --enable-hkp was given. 5342if test "${enable_hkp+set}" = set; then : 5343 enableval=$enable_hkp; try_hkp=$enableval 5344else 5345 try_hkp=yes 5346fi 5347 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_hkp" >&5 5349$as_echo "$try_hkp" >&6; } 5350 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether finger key fetching support is requested" >&5 5352$as_echo_n "checking whether finger key fetching support is requested... " >&6; } 5353 # Check whether --enable-finger was given. 5354if test "${enable_finger+set}" = set; then : 5355 enableval=$enable_finger; try_finger=$enableval 5356else 5357 try_finger=yes 5358fi 5359 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_finger" >&5 5361$as_echo "$try_finger" >&6; } 5362 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic object key fetching support is requested" >&5 5364$as_echo_n "checking whether generic object key fetching support is requested... " >&6; } 5365 # Check whether --enable-generic was given. 5366if test "${enable_generic+set}" = set; then : 5367 enableval=$enable_generic; try_generic=$enableval 5368else 5369 try_generic=yes 5370fi 5371 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_generic" >&5 5373$as_echo "$try_generic" >&6; } 5374 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether email keyserver support is requested" >&5 5376$as_echo_n "checking whether email keyserver support is requested... " >&6; } 5377 # Check whether --enable-mailto was given. 5378if test "${enable_mailto+set}" = set; then : 5379 enableval=$enable_mailto; try_mailto=$enableval 5380else 5381 try_mailto=no 5382fi 5383 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_mailto" >&5 5385$as_echo "$try_mailto" >&6; } 5386 fi 5387 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether keyserver exec-path is enabled" >&5 5389$as_echo_n "checking whether keyserver exec-path is enabled... " >&6; } 5390 # Check whether --enable-keyserver-path was given. 5391if test "${enable_keyserver_path+set}" = set; then : 5392 enableval=$enable_keyserver_path; if test "$enableval" = no ; then 5393 disable_keyserver_path=yes 5394 fi 5395else 5396 enableval=yes 5397fi 5398 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 5400$as_echo "$enableval" >&6; } 5401fi 5402 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the included zlib is requested" >&5 5404$as_echo_n "checking whether the included zlib is requested... " >&6; } 5405 5406# Check whether --with-included-zlib was given. 5407if test "${with_included_zlib+set}" = set; then : 5408 withval=$with_included_zlib; g10_force_zlib="$withval" 5409else 5410 g10_force_zlib=no 5411fi 5412 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $g10_force_zlib" >&5 5414$as_echo "$g10_force_zlib" >&6; } 5415 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5 5417$as_echo_n "checking for the size of the key and uid cache... " >&6; } 5418# Check whether --enable-key-cache was given. 5419if test "${enable_key_cache+set}" = set; then : 5420 enableval=$enable_key_cache; 5421else 5422 enableval=4096 5423fi 5424 5425 5426if test "$enableval" = "no"; then 5427 enableval=5 5428elif test "$enableval" = "yes" || test "$enableval" = ""; then 5429 enableval=4096 5430fi 5431 5432key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'` 5433 5434if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then 5435 as_fn_error $? "invalid key-cache size" "$LINENO" 5 5436fi 5437 5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5 5439$as_echo "$key_cache_size" >&6; } 5440 5441cat >>confdefs.h <<_ACEOF 5442#define PK_UID_CACHE_SIZE $key_cache_size 5443_ACEOF 5444 5445 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5 5447$as_echo_n "checking whether use of capabilities is requested... " >&6; } 5448 5449# Check whether --with-capabilities was given. 5450if test "${with_capabilities+set}" = set; then : 5451 withval=$with_capabilities; use_capabilities="$withval" 5452else 5453 use_capabilities=no 5454fi 5455 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5 5457$as_echo "$use_capabilities" >&6; } 5458 5459# To avoid double inclusion of config.h which might happen at some 5460# places, we add the usual double inclusion protection. 5461 5462 5463 5464 5465 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 5467$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 5468 # Check whether --enable-maintainer-mode was given. 5469if test "${enable_maintainer_mode+set}" = set; then : 5470 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 5471else 5472 USE_MAINTAINER_MODE=no 5473fi 5474 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 5476$as_echo "$USE_MAINTAINER_MODE" >&6; } 5477 if test $USE_MAINTAINER_MODE = yes; then 5478 MAINTAINER_MODE_TRUE= 5479 MAINTAINER_MODE_FALSE='#' 5480else 5481 MAINTAINER_MODE_TRUE='#' 5482 MAINTAINER_MODE_FALSE= 5483fi 5484 5485 MAINT=$MAINTAINER_MODE_TRUE 5486 5487 5488 5489 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5491$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5492set x ${MAKE-make} 5493ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5494if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5495 $as_echo_n "(cached) " >&6 5496else 5497 cat >conftest.make <<\_ACEOF 5498SHELL = /bin/sh 5499all: 5500 @echo '@@@%%%=$(MAKE)=@@@%%%' 5501_ACEOF 5502# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5503case `${MAKE-make} -f conftest.make 2>/dev/null` in 5504 *@@@%%%=?*=@@@%%%*) 5505 eval ac_cv_prog_make_${ac_make}_set=yes;; 5506 *) 5507 eval ac_cv_prog_make_${ac_make}_set=no;; 5508esac 5509rm -f conftest.make 5510fi 5511if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5513$as_echo "yes" >&6; } 5514 SET_MAKE= 5515else 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5517$as_echo "no" >&6; } 5518 SET_MAKE="MAKE=${MAKE-make}" 5519fi 5520 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 5522$as_echo_n "checking whether build environment is sane... " >&6; } 5523# Reject unsafe characters in $srcdir or the absolute working directory 5524# name. Accept space and tab only in the latter. 5525am_lf=' 5526' 5527case `pwd` in 5528 *[\\\"\#\$\&\'\`$am_lf]*) 5529 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 5530esac 5531case $srcdir in 5532 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 5533 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 5534esac 5535 5536# Do 'set' in a subshell so we don't clobber the current shell's 5537# arguments. Must try -L first in case configure is actually a 5538# symlink; some systems play weird games with the mod time of symlinks 5539# (eg FreeBSD returns the mod time of the symlink's containing 5540# directory). 5541if ( 5542 am_has_slept=no 5543 for am_try in 1 2; do 5544 echo "timestamp, slept: $am_has_slept" > conftest.file 5545 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 5546 if test "$*" = "X"; then 5547 # -L didn't work. 5548 set X `ls -t "$srcdir/configure" conftest.file` 5549 fi 5550 if test "$*" != "X $srcdir/configure conftest.file" \ 5551 && test "$*" != "X conftest.file $srcdir/configure"; then 5552 5553 # If neither matched, then we have a broken ls. This can happen 5554 # if, for instance, CONFIG_SHELL is bash and it inherits a 5555 # broken ls alias from the environment. This has actually 5556 # happened. Such a system could not be considered "sane". 5557 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 5558 alias in your environment" "$LINENO" 5 5559 fi 5560 if test "$2" = conftest.file || test $am_try -eq 2; then 5561 break 5562 fi 5563 # Just in case. 5564 sleep 1 5565 am_has_slept=yes 5566 done 5567 test "$2" = conftest.file 5568 ) 5569then 5570 # Ok. 5571 : 5572else 5573 as_fn_error $? "newly created file is older than distributed files! 5574Check your system clock" "$LINENO" 5 5575fi 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5577$as_echo "yes" >&6; } 5578# If we didn't sleep, we still need to ensure time stamps of config.status and 5579# generated files are strictly newer. 5580am_sleep_pid= 5581if grep 'slept: no' conftest.file >/dev/null 2>&1; then 5582 ( sleep 1 ) & 5583 am_sleep_pid=$! 5584fi 5585 5586rm -f conftest.file 5587 5588missing_dir=`cd $ac_aux_dir && pwd` 5589 5590ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 5591 5592 5593AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5594 5595 5596AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 5597 5598 5599AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5600 5601 5602MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5603 5604ac_ext=c 5605ac_cpp='$CPP $CPPFLAGS' 5606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5608ac_compiler_gnu=$ac_cv_c_compiler_gnu 5609if test -n "$ac_tool_prefix"; then 5610 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5611set dummy ${ac_tool_prefix}gcc; ac_word=$2 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5613$as_echo_n "checking for $ac_word... " >&6; } 5614if ${ac_cv_prog_CC+:} false; then : 5615 $as_echo_n "(cached) " >&6 5616else 5617 if test -n "$CC"; then 5618 ac_cv_prog_CC="$CC" # Let the user override the test. 5619else 5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5621for as_dir in $PATH 5622do 5623 IFS=$as_save_IFS 5624 test -z "$as_dir" && as_dir=. 5625 for ac_exec_ext in '' $ac_executable_extensions; do 5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5627 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5629 break 2 5630 fi 5631done 5632 done 5633IFS=$as_save_IFS 5634 5635fi 5636fi 5637CC=$ac_cv_prog_CC 5638if test -n "$CC"; then 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5640$as_echo "$CC" >&6; } 5641else 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5643$as_echo "no" >&6; } 5644fi 5645 5646 5647fi 5648if test -z "$ac_cv_prog_CC"; then 5649 ac_ct_CC=$CC 5650 # Extract the first word of "gcc", so it can be a program name with args. 5651set dummy gcc; ac_word=$2 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5653$as_echo_n "checking for $ac_word... " >&6; } 5654if ${ac_cv_prog_ac_ct_CC+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 if test -n "$ac_ct_CC"; then 5658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5659else 5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5661for as_dir in $PATH 5662do 5663 IFS=$as_save_IFS 5664 test -z "$as_dir" && as_dir=. 5665 for ac_exec_ext in '' $ac_executable_extensions; do 5666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5667 ac_cv_prog_ac_ct_CC="gcc" 5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5669 break 2 5670 fi 5671done 5672 done 5673IFS=$as_save_IFS 5674 5675fi 5676fi 5677ac_ct_CC=$ac_cv_prog_ac_ct_CC 5678if test -n "$ac_ct_CC"; then 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5680$as_echo "$ac_ct_CC" >&6; } 5681else 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5683$as_echo "no" >&6; } 5684fi 5685 5686 if test "x$ac_ct_CC" = x; then 5687 CC="" 5688 else 5689 case $cross_compiling:$ac_tool_warned in 5690yes:) 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5693ac_tool_warned=yes ;; 5694esac 5695 CC=$ac_ct_CC 5696 fi 5697else 5698 CC="$ac_cv_prog_CC" 5699fi 5700 5701if test -z "$CC"; then 5702 if test -n "$ac_tool_prefix"; then 5703 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5704set dummy ${ac_tool_prefix}cc; ac_word=$2 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5706$as_echo_n "checking for $ac_word... " >&6; } 5707if ${ac_cv_prog_CC+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 if test -n "$CC"; then 5711 ac_cv_prog_CC="$CC" # Let the user override the test. 5712else 5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5714for as_dir in $PATH 5715do 5716 IFS=$as_save_IFS 5717 test -z "$as_dir" && as_dir=. 5718 for ac_exec_ext in '' $ac_executable_extensions; do 5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5720 ac_cv_prog_CC="${ac_tool_prefix}cc" 5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5722 break 2 5723 fi 5724done 5725 done 5726IFS=$as_save_IFS 5727 5728fi 5729fi 5730CC=$ac_cv_prog_CC 5731if test -n "$CC"; then 5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5733$as_echo "$CC" >&6; } 5734else 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5736$as_echo "no" >&6; } 5737fi 5738 5739 5740 fi 5741fi 5742if test -z "$CC"; then 5743 # Extract the first word of "cc", so it can be a program name with args. 5744set dummy cc; ac_word=$2 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5746$as_echo_n "checking for $ac_word... " >&6; } 5747if ${ac_cv_prog_CC+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 if test -n "$CC"; then 5751 ac_cv_prog_CC="$CC" # Let the user override the test. 5752else 5753 ac_prog_rejected=no 5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5755for as_dir in $PATH 5756do 5757 IFS=$as_save_IFS 5758 test -z "$as_dir" && as_dir=. 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5762 ac_prog_rejected=yes 5763 continue 5764 fi 5765 ac_cv_prog_CC="cc" 5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5767 break 2 5768 fi 5769done 5770 done 5771IFS=$as_save_IFS 5772 5773if test $ac_prog_rejected = yes; then 5774 # We found a bogon in the path, so make sure we never use it. 5775 set dummy $ac_cv_prog_CC 5776 shift 5777 if test $# != 0; then 5778 # We chose a different compiler from the bogus one. 5779 # However, it has the same basename, so the bogon will be chosen 5780 # first if we set CC to just the basename; use the full file name. 5781 shift 5782 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5783 fi 5784fi 5785fi 5786fi 5787CC=$ac_cv_prog_CC 5788if test -n "$CC"; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5790$as_echo "$CC" >&6; } 5791else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793$as_echo "no" >&6; } 5794fi 5795 5796 5797fi 5798if test -z "$CC"; then 5799 if test -n "$ac_tool_prefix"; then 5800 for ac_prog in cl.exe 5801 do 5802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5803set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5805$as_echo_n "checking for $ac_word... " >&6; } 5806if ${ac_cv_prog_CC+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 if test -n "$CC"; then 5810 ac_cv_prog_CC="$CC" # Let the user override the test. 5811else 5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813for as_dir in $PATH 5814do 5815 IFS=$as_save_IFS 5816 test -z "$as_dir" && as_dir=. 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5821 break 2 5822 fi 5823done 5824 done 5825IFS=$as_save_IFS 5826 5827fi 5828fi 5829CC=$ac_cv_prog_CC 5830if test -n "$CC"; then 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5832$as_echo "$CC" >&6; } 5833else 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5835$as_echo "no" >&6; } 5836fi 5837 5838 5839 test -n "$CC" && break 5840 done 5841fi 5842if test -z "$CC"; then 5843 ac_ct_CC=$CC 5844 for ac_prog in cl.exe 5845do 5846 # Extract the first word of "$ac_prog", so it can be a program name with args. 5847set dummy $ac_prog; ac_word=$2 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5849$as_echo_n "checking for $ac_word... " >&6; } 5850if ${ac_cv_prog_ac_ct_CC+:} false; then : 5851 $as_echo_n "(cached) " >&6 5852else 5853 if test -n "$ac_ct_CC"; then 5854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5855else 5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5857for as_dir in $PATH 5858do 5859 IFS=$as_save_IFS 5860 test -z "$as_dir" && as_dir=. 5861 for ac_exec_ext in '' $ac_executable_extensions; do 5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5863 ac_cv_prog_ac_ct_CC="$ac_prog" 5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5865 break 2 5866 fi 5867done 5868 done 5869IFS=$as_save_IFS 5870 5871fi 5872fi 5873ac_ct_CC=$ac_cv_prog_ac_ct_CC 5874if test -n "$ac_ct_CC"; then 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5876$as_echo "$ac_ct_CC" >&6; } 5877else 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5879$as_echo "no" >&6; } 5880fi 5881 5882 5883 test -n "$ac_ct_CC" && break 5884done 5885 5886 if test "x$ac_ct_CC" = x; then 5887 CC="" 5888 else 5889 case $cross_compiling:$ac_tool_warned in 5890yes:) 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5893ac_tool_warned=yes ;; 5894esac 5895 CC=$ac_ct_CC 5896 fi 5897fi 5898 5899fi 5900 5901 5902test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5904as_fn_error $? "no acceptable C compiler found in \$PATH 5905See \`config.log' for more details" "$LINENO" 5; } 5906 5907# Provide some information about the compiler. 5908$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5909set X $ac_compile 5910ac_compiler=$2 5911for ac_option in --version -v -V -qversion; do 5912 { { ac_try="$ac_compiler $ac_option >&5" 5913case "(($ac_try" in 5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5915 *) ac_try_echo=$ac_try;; 5916esac 5917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5918$as_echo "$ac_try_echo"; } >&5 5919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5920 ac_status=$? 5921 if test -s conftest.err; then 5922 sed '10a\ 5923... rest of stderr output deleted ... 5924 10q' conftest.err >conftest.er1 5925 cat conftest.er1 >&5 5926 fi 5927 rm -f conftest.er1 conftest.err 5928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5929 test $ac_status = 0; } 5930done 5931 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5933$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5934if ${ac_cv_c_compiler_gnu+:} false; then : 5935 $as_echo_n "(cached) " >&6 5936else 5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5938/* end confdefs.h. */ 5939 5940int 5941main () 5942{ 5943#ifndef __GNUC__ 5944 choke me 5945#endif 5946 5947 ; 5948 return 0; 5949} 5950_ACEOF 5951if ac_fn_c_try_compile "$LINENO"; then : 5952 ac_compiler_gnu=yes 5953else 5954 ac_compiler_gnu=no 5955fi 5956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5957ac_cv_c_compiler_gnu=$ac_compiler_gnu 5958 5959fi 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5961$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5962if test $ac_compiler_gnu = yes; then 5963 GCC=yes 5964else 5965 GCC= 5966fi 5967ac_test_CFLAGS=${CFLAGS+set} 5968ac_save_CFLAGS=$CFLAGS 5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5970$as_echo_n "checking whether $CC accepts -g... " >&6; } 5971if ${ac_cv_prog_cc_g+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973else 5974 ac_save_c_werror_flag=$ac_c_werror_flag 5975 ac_c_werror_flag=yes 5976 ac_cv_prog_cc_g=no 5977 CFLAGS="-g" 5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980 5981int 5982main () 5983{ 5984 5985 ; 5986 return 0; 5987} 5988_ACEOF 5989if ac_fn_c_try_compile "$LINENO"; then : 5990 ac_cv_prog_cc_g=yes 5991else 5992 CFLAGS="" 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995 5996int 5997main () 5998{ 5999 6000 ; 6001 return 0; 6002} 6003_ACEOF 6004if ac_fn_c_try_compile "$LINENO"; then : 6005 6006else 6007 ac_c_werror_flag=$ac_save_c_werror_flag 6008 CFLAGS="-g" 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011 6012int 6013main () 6014{ 6015 6016 ; 6017 return 0; 6018} 6019_ACEOF 6020if ac_fn_c_try_compile "$LINENO"; then : 6021 ac_cv_prog_cc_g=yes 6022fi 6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6024fi 6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6026fi 6027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6028 ac_c_werror_flag=$ac_save_c_werror_flag 6029fi 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6031$as_echo "$ac_cv_prog_cc_g" >&6; } 6032if test "$ac_test_CFLAGS" = set; then 6033 CFLAGS=$ac_save_CFLAGS 6034elif test $ac_cv_prog_cc_g = yes; then 6035 if test "$GCC" = yes; then 6036 CFLAGS="-g -O2" 6037 else 6038 CFLAGS="-g" 6039 fi 6040else 6041 if test "$GCC" = yes; then 6042 CFLAGS="-O2" 6043 else 6044 CFLAGS= 6045 fi 6046fi 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6048$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6049if ${ac_cv_prog_cc_c89+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 ac_cv_prog_cc_c89=no 6053ac_save_CC=$CC 6054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056#include <stdarg.h> 6057#include <stdio.h> 6058struct stat; 6059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6060struct buf { int x; }; 6061FILE * (*rcsopen) (struct buf *, struct stat *, int); 6062static char *e (p, i) 6063 char **p; 6064 int i; 6065{ 6066 return p[i]; 6067} 6068static char *f (char * (*g) (char **, int), char **p, ...) 6069{ 6070 char *s; 6071 va_list v; 6072 va_start (v,p); 6073 s = g (p, va_arg (v,int)); 6074 va_end (v); 6075 return s; 6076} 6077 6078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6079 function prototypes and stuff, but not '\xHH' hex character constants. 6080 These don't provoke an error unfortunately, instead are silently treated 6081 as 'x'. The following induces an error, until -std is added to get 6082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6083 array size at least. It's necessary to write '\x00'==0 to get something 6084 that's true only with -std. */ 6085int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6086 6087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6088 inside strings and character constants. */ 6089#define FOO(x) 'x' 6090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6091 6092int test (int i, double x); 6093struct s1 {int (*f) (int a);}; 6094struct s2 {int (*f) (double a);}; 6095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6096int argc; 6097char **argv; 6098int 6099main () 6100{ 6101return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6102 ; 6103 return 0; 6104} 6105_ACEOF 6106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6108do 6109 CC="$ac_save_CC $ac_arg" 6110 if ac_fn_c_try_compile "$LINENO"; then : 6111 ac_cv_prog_cc_c89=$ac_arg 6112fi 6113rm -f core conftest.err conftest.$ac_objext 6114 test "x$ac_cv_prog_cc_c89" != "xno" && break 6115done 6116rm -f conftest.$ac_ext 6117CC=$ac_save_CC 6118 6119fi 6120# AC_CACHE_VAL 6121case "x$ac_cv_prog_cc_c89" in 6122 x) 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6124$as_echo "none needed" >&6; } ;; 6125 xno) 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6127$as_echo "unsupported" >&6; } ;; 6128 *) 6129 CC="$CC $ac_cv_prog_cc_c89" 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6131$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6132esac 6133if test "x$ac_cv_prog_cc_c89" != xno; then : 6134 6135fi 6136 6137ac_ext=c 6138ac_cpp='$CPP $CPPFLAGS' 6139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6141ac_compiler_gnu=$ac_cv_c_compiler_gnu 6142 6143ac_ext=c 6144ac_cpp='$CPP $CPPFLAGS' 6145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6147ac_compiler_gnu=$ac_cv_c_compiler_gnu 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6149$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6150if ${am_cv_prog_cc_c_o+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152else 6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6154/* end confdefs.h. */ 6155 6156int 6157main () 6158{ 6159 6160 ; 6161 return 0; 6162} 6163_ACEOF 6164 # Make sure it works both with $CC and with simple cc. 6165 # Following AC_PROG_CC_C_O, we do the test twice because some 6166 # compilers refuse to overwrite an existing .o file with -o, 6167 # though they will create one. 6168 am_cv_prog_cc_c_o=yes 6169 for am_i in 1 2; do 6170 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6171 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6172 ac_status=$? 6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6174 (exit $ac_status); } \ 6175 && test -f conftest2.$ac_objext; then 6176 : OK 6177 else 6178 am_cv_prog_cc_c_o=no 6179 break 6180 fi 6181 done 6182 rm -f core conftest* 6183 unset am_i 6184fi 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6186$as_echo "$am_cv_prog_cc_c_o" >&6; } 6187if test "$am_cv_prog_cc_c_o" != yes; then 6188 # Losing compiler, so override with the script. 6189 # FIXME: It is wrong to rewrite CC. 6190 # But if we don't then we get into trouble of one sort or another. 6191 # A longer-term fix would be to have automake use am__CC in this case, 6192 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6193 CC="$am_aux_dir/compile $CC" 6194fi 6195ac_ext=c 6196ac_cpp='$CPP $CPPFLAGS' 6197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6199ac_compiler_gnu=$ac_cv_c_compiler_gnu 6200 6201 6202depcc="$CC" am_compiler_list= 6203 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6205$as_echo_n "checking dependency style of $depcc... " >&6; } 6206if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6210 # We make a subdir and do the tests there. Otherwise we can end up 6211 # making bogus files that we don't know about and never remove. For 6212 # instance it was reported that on HP-UX the gcc test will end up 6213 # making a dummy file named 'D' -- because '-MD' means "put the output 6214 # in D". 6215 rm -rf conftest.dir 6216 mkdir conftest.dir 6217 # Copy depcomp to subdir because otherwise we won't find it if we're 6218 # using a relative directory. 6219 cp "$am_depcomp" conftest.dir 6220 cd conftest.dir 6221 # We will build objects and dependencies in a subdirectory because 6222 # it helps to detect inapplicable dependency modes. For instance 6223 # both Tru64's cc and ICC support -MD to output dependencies as a 6224 # side effect of compilation, but ICC will put the dependencies in 6225 # the current directory while Tru64 will put them in the object 6226 # directory. 6227 mkdir sub 6228 6229 am_cv_CC_dependencies_compiler_type=none 6230 if test "$am_compiler_list" = ""; then 6231 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6232 fi 6233 am__universal=false 6234 case " $depcc " in #( 6235 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6236 esac 6237 6238 for depmode in $am_compiler_list; do 6239 # Setup a source with many dependencies, because some compilers 6240 # like to wrap large dependency lists on column 80 (with \), and 6241 # we should not choose a depcomp mode which is confused by this. 6242 # 6243 # We need to recreate these files for each test, as the compiler may 6244 # overwrite some of them when testing with obscure command lines. 6245 # This happens at least with the AIX C compiler. 6246 : > sub/conftest.c 6247 for i in 1 2 3 4 5 6; do 6248 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6249 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6250 # Solaris 10 /bin/sh. 6251 echo '/* dummy */' > sub/conftst$i.h 6252 done 6253 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6254 6255 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6256 # mode. It turns out that the SunPro C++ compiler does not properly 6257 # handle '-M -o', and we need to detect this. Also, some Intel 6258 # versions had trouble with output in subdirs. 6259 am__obj=sub/conftest.${OBJEXT-o} 6260 am__minus_obj="-o $am__obj" 6261 case $depmode in 6262 gcc) 6263 # This depmode causes a compiler race in universal mode. 6264 test "$am__universal" = false || continue 6265 ;; 6266 nosideeffect) 6267 # After this tag, mechanisms are not by side-effect, so they'll 6268 # only be used when explicitly requested. 6269 if test "x$enable_dependency_tracking" = xyes; then 6270 continue 6271 else 6272 break 6273 fi 6274 ;; 6275 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6276 # This compiler won't grok '-c -o', but also, the minuso test has 6277 # not run yet. These depmodes are late enough in the game, and 6278 # so weak that their functioning should not be impacted. 6279 am__obj=conftest.${OBJEXT-o} 6280 am__minus_obj= 6281 ;; 6282 none) break ;; 6283 esac 6284 if depmode=$depmode \ 6285 source=sub/conftest.c object=$am__obj \ 6286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6287 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6288 >/dev/null 2>conftest.err && 6289 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6290 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6291 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6292 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6293 # icc doesn't choke on unknown options, it will just issue warnings 6294 # or remarks (even with -Werror). So we grep stderr for any message 6295 # that says an option was ignored or not supported. 6296 # When given -MP, icc 7.0 and 7.1 complain thusly: 6297 # icc: Command line warning: ignoring option '-M'; no argument required 6298 # The diagnosis changed in icc 8.0: 6299 # icc: Command line remark: option '-MP' not supported 6300 if (grep 'ignoring option' conftest.err || 6301 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6302 am_cv_CC_dependencies_compiler_type=$depmode 6303 break 6304 fi 6305 fi 6306 done 6307 6308 cd .. 6309 rm -rf conftest.dir 6310else 6311 am_cv_CC_dependencies_compiler_type=none 6312fi 6313 6314fi 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6316$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6317CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6318 6319 if 6320 test "x$enable_dependency_tracking" != xno \ 6321 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6322 am__fastdepCC_TRUE= 6323 am__fastdepCC_FALSE='#' 6324else 6325 am__fastdepCC_TRUE='#' 6326 am__fastdepCC_FALSE= 6327fi 6328 6329 6330 6331ac_ext=c 6332ac_cpp='$CPP $CPPFLAGS' 6333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6335ac_compiler_gnu=$ac_cv_c_compiler_gnu 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6337$as_echo_n "checking how to run the C preprocessor... " >&6; } 6338# On Suns, sometimes $CPP names a directory. 6339if test -n "$CPP" && test -d "$CPP"; then 6340 CPP= 6341fi 6342if test -z "$CPP"; then 6343 if ${ac_cv_prog_CPP+:} false; then : 6344 $as_echo_n "(cached) " >&6 6345else 6346 # Double quotes because CPP needs to be expanded 6347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6348 do 6349 ac_preproc_ok=false 6350for ac_c_preproc_warn_flag in '' yes 6351do 6352 # Use a header file that comes with gcc, so configuring glibc 6353 # with a fresh cross-compiler works. 6354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6355 # <limits.h> exists even on freestanding compilers. 6356 # On the NeXT, cc -E runs the code through the compiler's parser, 6357 # not just through cpp. "Syntax error" is here to catch this case. 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359/* end confdefs.h. */ 6360#ifdef __STDC__ 6361# include <limits.h> 6362#else 6363# include <assert.h> 6364#endif 6365 Syntax error 6366_ACEOF 6367if ac_fn_c_try_cpp "$LINENO"; then : 6368 6369else 6370 # Broken: fails on valid input. 6371continue 6372fi 6373rm -f conftest.err conftest.i conftest.$ac_ext 6374 6375 # OK, works on sane cases. Now check whether nonexistent headers 6376 # can be detected and how. 6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6378/* end confdefs.h. */ 6379#include <ac_nonexistent.h> 6380_ACEOF 6381if ac_fn_c_try_cpp "$LINENO"; then : 6382 # Broken: success on invalid input. 6383continue 6384else 6385 # Passes both tests. 6386ac_preproc_ok=: 6387break 6388fi 6389rm -f conftest.err conftest.i conftest.$ac_ext 6390 6391done 6392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6393rm -f conftest.i conftest.err conftest.$ac_ext 6394if $ac_preproc_ok; then : 6395 break 6396fi 6397 6398 done 6399 ac_cv_prog_CPP=$CPP 6400 6401fi 6402 CPP=$ac_cv_prog_CPP 6403else 6404 ac_cv_prog_CPP=$CPP 6405fi 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6407$as_echo "$CPP" >&6; } 6408ac_preproc_ok=false 6409for ac_c_preproc_warn_flag in '' yes 6410do 6411 # Use a header file that comes with gcc, so configuring glibc 6412 # with a fresh cross-compiler works. 6413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6414 # <limits.h> exists even on freestanding compilers. 6415 # On the NeXT, cc -E runs the code through the compiler's parser, 6416 # not just through cpp. "Syntax error" is here to catch this case. 6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6418/* end confdefs.h. */ 6419#ifdef __STDC__ 6420# include <limits.h> 6421#else 6422# include <assert.h> 6423#endif 6424 Syntax error 6425_ACEOF 6426if ac_fn_c_try_cpp "$LINENO"; then : 6427 6428else 6429 # Broken: fails on valid input. 6430continue 6431fi 6432rm -f conftest.err conftest.i conftest.$ac_ext 6433 6434 # OK, works on sane cases. Now check whether nonexistent headers 6435 # can be detected and how. 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438#include <ac_nonexistent.h> 6439_ACEOF 6440if ac_fn_c_try_cpp "$LINENO"; then : 6441 # Broken: success on invalid input. 6442continue 6443else 6444 # Passes both tests. 6445ac_preproc_ok=: 6446break 6447fi 6448rm -f conftest.err conftest.i conftest.$ac_ext 6449 6450done 6451# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6452rm -f conftest.i conftest.err conftest.$ac_ext 6453if $ac_preproc_ok; then : 6454 6455else 6456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6458as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6459See \`config.log' for more details" "$LINENO" 5; } 6460fi 6461 6462ac_ext=c 6463ac_cpp='$CPP $CPPFLAGS' 6464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6466ac_compiler_gnu=$ac_cv_c_compiler_gnu 6467 6468if test -n "$ac_tool_prefix"; then 6469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6470set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472$as_echo_n "checking for $ac_word... " >&6; } 6473if ${ac_cv_prog_RANLIB+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -n "$RANLIB"; then 6477 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496RANLIB=$ac_cv_prog_RANLIB 6497if test -n "$RANLIB"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6499$as_echo "$RANLIB" >&6; } 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502$as_echo "no" >&6; } 6503fi 6504 6505 6506fi 6507if test -z "$ac_cv_prog_RANLIB"; then 6508 ac_ct_RANLIB=$RANLIB 6509 # Extract the first word of "ranlib", so it can be a program name with args. 6510set dummy ranlib; ac_word=$2 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6512$as_echo_n "checking for $ac_word... " >&6; } 6513if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 if test -n "$ac_ct_RANLIB"; then 6517 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6518else 6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6520for as_dir in $PATH 6521do 6522 IFS=$as_save_IFS 6523 test -z "$as_dir" && as_dir=. 6524 for ac_exec_ext in '' $ac_executable_extensions; do 6525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6526 ac_cv_prog_ac_ct_RANLIB="ranlib" 6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6528 break 2 6529 fi 6530done 6531 done 6532IFS=$as_save_IFS 6533 6534fi 6535fi 6536ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6537if test -n "$ac_ct_RANLIB"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6539$as_echo "$ac_ct_RANLIB" >&6; } 6540else 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6542$as_echo "no" >&6; } 6543fi 6544 6545 if test "x$ac_ct_RANLIB" = x; then 6546 RANLIB=":" 6547 else 6548 case $cross_compiling:$ac_tool_warned in 6549yes:) 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6552ac_tool_warned=yes ;; 6553esac 6554 RANLIB=$ac_ct_RANLIB 6555 fi 6556else 6557 RANLIB="$ac_cv_prog_RANLIB" 6558fi 6559 6560if test -n "$ac_tool_prefix"; then 6561 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6562set dummy ${ac_tool_prefix}ar; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_AR+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$AR"; then 6569 ac_cv_prog_AR="$AR" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_AR="${ac_tool_prefix}ar" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588AR=$ac_cv_prog_AR 6589if test -n "$AR"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6591$as_echo "$AR" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 6598fi 6599if test -z "$ac_cv_prog_AR"; then 6600 ac_ct_AR=$AR 6601 # Extract the first word of "ar", so it can be a program name with args. 6602set dummy ar; ac_word=$2 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604$as_echo_n "checking for $ac_word... " >&6; } 6605if ${ac_cv_prog_ac_ct_AR+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 if test -n "$ac_ct_AR"; then 6609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6610else 6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612for as_dir in $PATH 6613do 6614 IFS=$as_save_IFS 6615 test -z "$as_dir" && as_dir=. 6616 for ac_exec_ext in '' $ac_executable_extensions; do 6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6618 ac_cv_prog_ac_ct_AR="ar" 6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6620 break 2 6621 fi 6622done 6623 done 6624IFS=$as_save_IFS 6625 6626fi 6627fi 6628ac_ct_AR=$ac_cv_prog_ac_ct_AR 6629if test -n "$ac_ct_AR"; then 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6631$as_echo "$ac_ct_AR" >&6; } 6632else 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634$as_echo "no" >&6; } 6635fi 6636 6637 if test "x$ac_ct_AR" = x; then 6638 AR=":" 6639 else 6640 case $cross_compiling:$ac_tool_warned in 6641yes:) 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6644ac_tool_warned=yes ;; 6645esac 6646 AR=$ac_ct_AR 6647 fi 6648else 6649 AR="$ac_cv_prog_AR" 6650fi 6651 6652# Extract the first word of ""perl"", so it can be a program name with args. 6653set dummy "perl"; ac_word=$2 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655$as_echo_n "checking for $ac_word... " >&6; } 6656if ${ac_cv_path_PERL+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658else 6659 case $PERL in 6660 [\\/]* | ?:[\\/]*) 6661 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 6662 ;; 6663 *) 6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6671 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676 done 6677IFS=$as_save_IFS 6678 6679 ;; 6680esac 6681fi 6682PERL=$ac_cv_path_PERL 6683if test -n "$PERL"; then 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 6685$as_echo "$PERL" >&6; } 6686else 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688$as_echo "no" >&6; } 6689fi 6690 6691 6692 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 6694$as_echo_n "checking for strerror in -lcposix... " >&6; } 6695if ${ac_cv_lib_cposix_strerror+:} false; then : 6696 $as_echo_n "(cached) " >&6 6697else 6698 ac_check_lib_save_LIBS=$LIBS 6699LIBS="-lcposix $LIBS" 6700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6701/* end confdefs.h. */ 6702 6703/* Override any GCC internal prototype to avoid an error. 6704 Use char because int might match the return type of a GCC 6705 builtin and then its argument prototype would still apply. */ 6706#ifdef __cplusplus 6707extern "C" 6708#endif 6709char strerror (); 6710int 6711main () 6712{ 6713return strerror (); 6714 ; 6715 return 0; 6716} 6717_ACEOF 6718if ac_fn_c_try_link "$LINENO"; then : 6719 ac_cv_lib_cposix_strerror=yes 6720else 6721 ac_cv_lib_cposix_strerror=no 6722fi 6723rm -f core conftest.err conftest.$ac_objext \ 6724 conftest$ac_exeext conftest.$ac_ext 6725LIBS=$ac_check_lib_save_LIBS 6726fi 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 6728$as_echo "$ac_cv_lib_cposix_strerror" >&6; } 6729if test "x$ac_cv_lib_cposix_strerror" = xyes; then : 6730 LIBS="$LIBS -lcposix" 6731fi 6732 6733 6734 6735# Check whether --enable-largefile was given. 6736if test "${enable_largefile+set}" = set; then : 6737 enableval=$enable_largefile; 6738fi 6739 6740if test "$enable_largefile" != no; then 6741 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6743$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6744if ${ac_cv_sys_largefile_CC+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 ac_cv_sys_largefile_CC=no 6748 if test "$GCC" != yes; then 6749 ac_save_CC=$CC 6750 while :; do 6751 # IRIX 6.2 and later do not support large files by default, 6752 # so use the C compiler's -n32 option if that helps. 6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6754/* end confdefs.h. */ 6755#include <sys/types.h> 6756 /* Check that off_t can represent 2**63 - 1 correctly. 6757 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6758 since some C++ compilers masquerading as C compilers 6759 incorrectly reject 9223372036854775807. */ 6760#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 6761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6762 && LARGE_OFF_T % 2147483647 == 1) 6763 ? 1 : -1]; 6764int 6765main () 6766{ 6767 6768 ; 6769 return 0; 6770} 6771_ACEOF 6772 if ac_fn_c_try_compile "$LINENO"; then : 6773 break 6774fi 6775rm -f core conftest.err conftest.$ac_objext 6776 CC="$CC -n32" 6777 if ac_fn_c_try_compile "$LINENO"; then : 6778 ac_cv_sys_largefile_CC=' -n32'; break 6779fi 6780rm -f core conftest.err conftest.$ac_objext 6781 break 6782 done 6783 CC=$ac_save_CC 6784 rm -f conftest.$ac_ext 6785 fi 6786fi 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6788$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6789 if test "$ac_cv_sys_largefile_CC" != no; then 6790 CC=$CC$ac_cv_sys_largefile_CC 6791 fi 6792 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6794$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6795if ${ac_cv_sys_file_offset_bits+:} false; then : 6796 $as_echo_n "(cached) " >&6 6797else 6798 while :; do 6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6800/* end confdefs.h. */ 6801#include <sys/types.h> 6802 /* Check that off_t can represent 2**63 - 1 correctly. 6803 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6804 since some C++ compilers masquerading as C compilers 6805 incorrectly reject 9223372036854775807. */ 6806#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 6807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6808 && LARGE_OFF_T % 2147483647 == 1) 6809 ? 1 : -1]; 6810int 6811main () 6812{ 6813 6814 ; 6815 return 0; 6816} 6817_ACEOF 6818if ac_fn_c_try_compile "$LINENO"; then : 6819 ac_cv_sys_file_offset_bits=no; break 6820fi 6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6823/* end confdefs.h. */ 6824#define _FILE_OFFSET_BITS 64 6825#include <sys/types.h> 6826 /* Check that off_t can represent 2**63 - 1 correctly. 6827 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6828 since some C++ compilers masquerading as C compilers 6829 incorrectly reject 9223372036854775807. */ 6830#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 6831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6832 && LARGE_OFF_T % 2147483647 == 1) 6833 ? 1 : -1]; 6834int 6835main () 6836{ 6837 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_compile "$LINENO"; then : 6843 ac_cv_sys_file_offset_bits=64; break 6844fi 6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6846 ac_cv_sys_file_offset_bits=unknown 6847 break 6848done 6849fi 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6851$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6852case $ac_cv_sys_file_offset_bits in #( 6853 no | unknown) ;; 6854 *) 6855cat >>confdefs.h <<_ACEOF 6856#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6857_ACEOF 6858;; 6859esac 6860rm -rf conftest* 6861 if test $ac_cv_sys_file_offset_bits = unknown; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6863$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6864if ${ac_cv_sys_large_files+:} false; then : 6865 $as_echo_n "(cached) " >&6 6866else 6867 while :; do 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870#include <sys/types.h> 6871 /* Check that off_t can represent 2**63 - 1 correctly. 6872 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6873 since some C++ compilers masquerading as C compilers 6874 incorrectly reject 9223372036854775807. */ 6875#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 6876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6877 && LARGE_OFF_T % 2147483647 == 1) 6878 ? 1 : -1]; 6879int 6880main () 6881{ 6882 6883 ; 6884 return 0; 6885} 6886_ACEOF 6887if ac_fn_c_try_compile "$LINENO"; then : 6888 ac_cv_sys_large_files=no; break 6889fi 6890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892/* end confdefs.h. */ 6893#define _LARGE_FILES 1 6894#include <sys/types.h> 6895 /* Check that off_t can represent 2**63 - 1 correctly. 6896 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6897 since some C++ compilers masquerading as C compilers 6898 incorrectly reject 9223372036854775807. */ 6899#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 6900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6901 && LARGE_OFF_T % 2147483647 == 1) 6902 ? 1 : -1]; 6903int 6904main () 6905{ 6906 6907 ; 6908 return 0; 6909} 6910_ACEOF 6911if ac_fn_c_try_compile "$LINENO"; then : 6912 ac_cv_sys_large_files=1; break 6913fi 6914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6915 ac_cv_sys_large_files=unknown 6916 break 6917done 6918fi 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6920$as_echo "$ac_cv_sys_large_files" >&6; } 6921case $ac_cv_sys_large_files in #( 6922 no | unknown) ;; 6923 *) 6924cat >>confdefs.h <<_ACEOF 6925#define _LARGE_FILES $ac_cv_sys_large_files 6926_ACEOF 6927;; 6928esac 6929rm -rf conftest* 6930 fi 6931 6932 6933fi 6934 6935 6936for ac_prog in gawk mawk nawk awk 6937do 6938 # Extract the first word of "$ac_prog", so it can be a program name with args. 6939set dummy $ac_prog; ac_word=$2 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941$as_echo_n "checking for $ac_word... " >&6; } 6942if ${ac_cv_prog_AWK+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 if test -n "$AWK"; then 6946 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6947else 6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6949for as_dir in $PATH 6950do 6951 IFS=$as_save_IFS 6952 test -z "$as_dir" && as_dir=. 6953 for ac_exec_ext in '' $ac_executable_extensions; do 6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6955 ac_cv_prog_AWK="$ac_prog" 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6957 break 2 6958 fi 6959done 6960 done 6961IFS=$as_save_IFS 6962 6963fi 6964fi 6965AWK=$ac_cv_prog_AWK 6966if test -n "$AWK"; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6968$as_echo "$AWK" >&6; } 6969else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971$as_echo "no" >&6; } 6972fi 6973 6974 6975 test -n "$AWK" && break 6976done 6977 6978 6979 6980# Check whether --with-tar was given. 6981if test "${with_tar+set}" = set; then : 6982 withval=$with_tar; _do_tar=$withval 6983fi 6984 6985 6986 if test x$_do_tar != xno ; then 6987 6988 if test x$_do_tar = x ; then 6989 # Extract the first word of ""tar"", so it can be a program name with args. 6990set dummy "tar"; ac_word=$2 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6992$as_echo_n "checking for $ac_word... " >&6; } 6993if ${ac_cv_path_TAR+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 case $TAR in 6997 [\\/]* | ?:[\\/]*) 6998 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6999 ;; 7000 *) 7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7002for as_dir in $PATH 7003do 7004 IFS=$as_save_IFS 7005 test -z "$as_dir" && as_dir=. 7006 for ac_exec_ext in '' $ac_executable_extensions; do 7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7008 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7010 break 2 7011 fi 7012done 7013 done 7014IFS=$as_save_IFS 7015 7016 ;; 7017esac 7018fi 7019TAR=$ac_cv_path_TAR 7020if test -n "$TAR"; then 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 7022$as_echo "$TAR" >&6; } 7023else 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7025$as_echo "no" >&6; } 7026fi 7027 7028 7029 _mytar=$ac_cv_path_TAR 7030 fi 7031 7032 # Check if our tar is ustar format. If so, it's good. TODO: Add some 7033 # code to check various options, etc, to try and create ustar 7034 # format. 7035 7036 if test x$_mytar != x ; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_mytar speaks USTAR" >&5 7038$as_echo_n "checking whether $_mytar speaks USTAR... " >&6; } 7039 echo hithere > conftest.txt 7040 $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null 7041 _tar_bad=$? 7042 rm conftest.txt 7043 7044 if test x$_tar_bad = x0 ; then 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7046$as_echo "yes" >&6; } 7047 else 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7049$as_echo "no" >&6; } 7050 fi 7051 fi 7052 fi 7053 7054 if test x$_tar_bad = x0; then 7055 HAVE_USTAR_TRUE= 7056 HAVE_USTAR_FALSE='#' 7057else 7058 HAVE_USTAR_TRUE='#' 7059 HAVE_USTAR_FALSE= 7060fi 7061 7062 7063 7064 7065# According to a comment by Marcus Brinkman in libgpg-error, the 7066# AC_PROG_CC_FOR_BUILD macro in the AC archive is broken for autoconf 7067# 2.57. Thus we use a simply use "cc" if we are cross-compiling. 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5 7069$as_echo_n "checking for cc for build... " >&6; } 7070if test "$cross_compiling" = "yes"; then 7071 CC_FOR_BUILD="${CC_FOR_BUILD-cc}" 7072else 7073 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}" 7074fi 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 7076$as_echo "$CC_FOR_BUILD" >&6; } 7077 7078 7079 7080 7081MPI_OPT_FLAGS="" 7082 7083have_dosish_system=no 7084need_dlopen=yes 7085case "${host}" in 7086 *-mingw32*) 7087 # special stuff for Windoze NT 7088 ac_cv_have_dev_random=no 7089 7090$as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h 7091 7092 7093$as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h 7094 7095 7096$as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h 7097 7098 7099$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h 7100 7101 disable_keyserver_path=yes 7102 have_dosish_system=yes 7103 need_dlopen=no 7104 try_gettext="no" 7105 agent_support=no 7106 use_simple_gettext=yes 7107 have_w32_system=yes 7108 # gcc 4.6 uses by default -fomit-frame-pointer. This 7109 # conflicts with mingw runtime's setjmp/longjmp usage. The 7110 # actual bug we notice is a segv related to the dlopened 7111 # iconv.dll: After returning from set_native_charset the stack 7112 # frame is corrupt. 7113 if test -n "$GCC" ; then 7114 CFLAGS="$CFLAGS -fno-omit-frame-pointer" 7115 fi 7116 ;; 7117 i?86-emx-os2 | i?86-*-os2*emx ) 7118 # OS/2 with the EMX environment 7119 ac_cv_have_dev_random=no 7120 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h 7121 7122 have_dosish_system=yes 7123 try_gettext="no" 7124 agent_support=no 7125 ;; 7126 7127 i?86-*-msdosdjgpp*) 7128 # DOS with the DJGPP environment 7129 ac_cv_have_dev_random=no 7130 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h 7131 7132 have_dosish_system=yes 7133 try_gettext="no" 7134 agent_support=no 7135 ;; 7136 7137 *-*-hpux*) 7138 if test -z "$GCC" ; then 7139 CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE" 7140 fi 7141 ;; 7142 *-dec-osf4*) 7143 if test -z "$GCC" ; then 7144 # Suppress all warnings 7145 # to get rid of the unsigned/signed char mismatch warnings. 7146 CFLAGS="$CFLAGS -w" 7147 fi 7148 ;; 7149 *-dec-osf5*) 7150 if test -z "$GCC" ; then 7151 # Use the newer compiler `-msg_disable ptrmismatch1' to 7152 # get rid of the unsigned/signed char mismatch warnings. 7153 # Using this may hide other pointer mismatch warnings, but 7154 # it at least lets other warning classes through 7155 CFLAGS="$CFLAGS -msg_disable ptrmismatch1" 7156 fi 7157 ;; 7158 m68k-atari-mint) 7159 ;; 7160 *) 7161 ;; 7162esac 7163 7164if test "$have_dosish_system" = yes; then 7165 7166$as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h 7167 7168fi 7169 if test "$have_dosish_system" = yes; then 7170 HAVE_DOSISH_SYSTEM_TRUE= 7171 HAVE_DOSISH_SYSTEM_FALSE='#' 7172else 7173 HAVE_DOSISH_SYSTEM_TRUE='#' 7174 HAVE_DOSISH_SYSTEM_FALSE= 7175fi 7176 7177 7178 if test x"$use_simple_gettext" = xyes; then 7179 USE_SIMPLE_GETTEXT_TRUE= 7180 USE_SIMPLE_GETTEXT_FALSE='#' 7181else 7182 USE_SIMPLE_GETTEXT_TRUE='#' 7183 USE_SIMPLE_GETTEXT_FALSE= 7184fi 7185 7186 if test x"$have_w32_system" = xyes; then 7187 HAVE_W32_SYSTEM_TRUE= 7188 HAVE_W32_SYSTEM_FALSE='#' 7189else 7190 HAVE_W32_SYSTEM_TRUE='#' 7191 HAVE_W32_SYSTEM_FALSE= 7192fi 7193 7194 7195if test "$disable_keyserver_path" = yes; then 7196 7197$as_echo "#define DISABLE_KEYSERVER_PATH 1" >>confdefs.h 7198 7199fi 7200 7201 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 7203$as_echo_n "checking for BSD-compatible nm... " >&6; } 7204if ${ac_cv_path_NM+:} false; then : 7205 $as_echo_n "(cached) " >&6 7206else 7207 if test -n "$NM"; then 7208 # Let the user override the test. 7209 ac_cv_path_NM="$NM" 7210else 7211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7212 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do 7213 test -z "$ac_dir" && ac_dir=. 7214 if test -f $ac_dir/nm; then 7215 # Check to see if the nm accepts a BSD-compat flag. 7216 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7217 # nm: unknown option "B" ignored 7218 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 7219 ac_cv_path_NM="$ac_dir/nm -B" 7220 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 7221 ac_cv_path_NM="$ac_dir/nm -p" 7222 else 7223 ac_cv_path_NM="$ac_dir/nm" 7224 fi 7225 break 7226 fi 7227 done 7228 IFS="$ac_save_ifs" 7229 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 7230fi 7231fi 7232 7233NM="$ac_cv_path_NM" 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 7235$as_echo "$NM" >&6; } 7236 7237 7238# Check for command to grab the raw symbol name followed by C symbol from nm. 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output" >&5 7240$as_echo_n "checking command to parse $NM output... " >&6; } 7241if ${ac_cv_sys_global_symbol_pipe+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243else 7244 # These are sane defaults that work on at least a few old systems. 7245# {They come from Ultrix. What could be older than Ultrix?!! ;)} 7246 7247# Character class describing NM global symbol codes. 7248ac_symcode='[BCDEGRSTU]' 7249 7250# Regexp to match symbols that can be accessed directly from C. 7251ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7252 7253# Transform the above into a raw symbol and a C symbol. 7254ac_symxfrm='\1 \1' 7255 7256# Define system-specific variables. 7257case "$host_os" in 7258aix*) 7259 ac_symcode='[BCDTU]' 7260 ;; 7261freebsd* | netbsd* | openbsd* | bsdi* | sunos* | cygwin32* | mingw32*) 7262 ac_sympat='_\([_A-Za-z][_A-Za-z0-9]*\)' 7263 ac_symxfrm='_\1 \1' 7264 ;; 7265irix*) 7266 # Cannot use undefined symbols on IRIX because inlined functions mess us up. 7267 ac_symcode='[BCDEGRST]' 7268 ;; 7269solaris*) 7270 ac_symcode='[BDTU]' 7271 ;; 7272esac 7273 7274# If we're using GNU nm, then use its standard symbol codes. 7275if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 7276 ac_symcode='[ABCDGISTUW]' 7277fi 7278 7279case "$host_os" in 7280cygwin32* | mingw32*) 7281 # We do not want undefined symbols on cygwin32. The user must 7282 # arrange to define them via -l arguments. 7283 ac_symcode='[ABCDGISTW]' 7284 ;; 7285esac 7286 7287# Write the raw and C identifiers. 7288ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_sympat$/$ac_symxfrm/p'" 7289 7290# Check to see that the pipe works correctly. 7291ac_pipe_works=no 7292cat > conftest.$ac_ext <<EOF 7293#ifdef __cplusplus 7294extern "C" { 7295#endif 7296char nm_test_var; 7297void nm_test_func(){} 7298#ifdef __cplusplus 7299} 7300#endif 7301int main(){nm_test_var='a';nm_test_func;return 0;} 7302EOF 7303if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7304 (eval $ac_compile) 2>&5 7305 ac_status=$? 7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7307 test $ac_status = 0; }; then 7308 # Now try to grab the symbols. 7309 ac_nlist=conftest.nm 7310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 7311 (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 7312 ac_status=$? 7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7314 test $ac_status = 0; } && test -s "$ac_nlist"; then 7315 7316 # Try sorting and uniquifying the output. 7317 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then 7318 mv -f "$ac_nlist"T "$ac_nlist" 7319 ac_wcout=`wc "$ac_nlist" 2>/dev/null` 7320 ac_count=`echo "X$ac_wcout" | sed -e 's,^X,,' -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'` 7321 (test "$ac_count" -ge 0) 2>/dev/null || ac_count=-1 7322 else 7323 rm -f "$ac_nlist"T 7324 ac_count=-1 7325 fi 7326 7327 # Make sure that we snagged all the symbols we need. 7328 if egrep ' _?nm_test_var$' "$ac_nlist" >/dev/null; then 7329 if egrep ' _?nm_test_func$' "$ac_nlist" >/dev/null; then 7330 cat <<EOF > conftest.c 7331#ifdef __cplusplus 7332extern "C" { 7333#endif 7334 7335EOF 7336 # Now generate the symbol file. 7337 sed 's/^.* _\{0,1\}\(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c 7338 7339 cat <<EOF >> conftest.c 7340#if defined (__STDC__) && __STDC__ 7341# define __ptr_t void * 7342#else 7343# define __ptr_t char * 7344#endif 7345 7346/* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */ 7347int dld_preloaded_symbol_count = $ac_count; 7348 7349/* The mapping between symbol names and symbols. */ 7350struct { 7351 char *name; 7352 __ptr_t address; 7353} 7354dld_preloaded_symbols[] = 7355{ 7356EOF 7357 sed 's/^_\{0,1\}\(.*\) _\{0,1\}\(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c 7358 cat <<\EOF >> conftest.c 7359 {0, (__ptr_t) 0} 7360}; 7361 7362#ifdef __cplusplus 7363} 7364#endif 7365EOF 7366 # Now try linking the two files. 7367 mv conftest.$ac_objext conftestm.$ac_objext 7368 ac_save_LIBS="$LIBS" 7369 ac_save_CFLAGS="$CFLAGS" 7370 LIBS="conftestm.$ac_objext" 7371 CFLAGS="$CFLAGS$no_builtin_flag" 7372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7373 (eval $ac_link) 2>&5 7374 ac_status=$? 7375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7376 test $ac_status = 0; } && test -s conftest; then 7377 ac_pipe_works=yes 7378 else 7379 echo "configure: failed program was:" >&5 7380 cat conftest.c >&5 7381 fi 7382 LIBS="$ac_save_LIBS" 7383 CFLAGS="$ac_save_CFLAGS" 7384 else 7385 echo "cannot find nm_test_func in $ac_nlist" >&5 7386 fi 7387 else 7388 echo "cannot find nm_test_var in $ac_nlist" >&5 7389 fi 7390 else 7391 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5 7392 fi 7393else 7394 echo "$progname: failed program was:" >&5 7395 cat conftest.c >&5 7396fi 7397rm -rf conftest* 7398 7399# Do not use the global_symbol_pipe unless it works. 7400test "$ac_pipe_works" = yes || ac_cv_sys_global_symbol_pipe= 7401 7402fi 7403 7404 7405ac_result=yes 7406if test -z "$ac_cv_sys_global_symbol_pipe"; then 7407 ac_result=no 7408fi 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 7410$as_echo "$ac_result" >&6; } 7411 7412tmp_do_check="no" 7413case "${host}" in 7414 *-mingw32*) 7415 ac_cv_sys_symbol_underscore=yes 7416 ;; 7417 i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp) 7418 ac_cv_sys_symbol_underscore=yes 7419 ;; 7420 *) 7421 if test "$cross_compiling" = yes; then 7422 if test "x$ac_cv_sys_symbol_underscore" = x; then 7423 ac_cv_sys_symbol_underscore=yes 7424 fi 7425 else 7426 tmp_do_check="yes" 7427 fi 7428 ;; 7429esac 7430 7431if test "$tmp_do_check" = "yes"; then 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 7433$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 7434if ${ac_cv_sys_symbol_underscore+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436else 7437 ac_cv_sys_symbol_underscore=no 7438cat > conftest.$ac_ext <<EOF 7439void nm_test_func(){} 7440int main(){nm_test_func;return 0;} 7441EOF 7442if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7443 (eval $ac_compile) 2>&5 7444 ac_status=$? 7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7446 test $ac_status = 0; }; then 7447 # Now try to grab the symbols. 7448 ac_nlist=conftest.nm 7449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 7450 (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 7451 ac_status=$? 7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7453 test $ac_status = 0; } && test -s "$ac_nlist"; then 7454 # See whether the symbols have a leading underscore. 7455 if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then 7456 ac_cv_sys_symbol_underscore=yes 7457 else 7458 if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then 7459 : 7460 else 7461 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 7462 fi 7463 fi 7464 else 7465 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5 7466 fi 7467else 7468 echo "configure: failed program was:" >&5 7469 cat conftest.c >&5 7470fi 7471rm -rf conftest* 7472 7473fi 7474 7475else 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 7477$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 7478fi 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5 7480$as_echo "$ac_cv_sys_symbol_underscore" >&6; } 7481if test x$ac_cv_sys_symbol_underscore = xyes; then 7482 7483$as_echo "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h 7484 7485fi 7486 7487 7488 7489 7490cat >>confdefs.h <<_ACEOF 7491#define EXEEXT "$EXEEXT" 7492_ACEOF 7493 7494 7495if test x"$try_hkp" = xyes ; then 7496 GPGKEYS_HKP="gpgkeys_hkp$EXEEXT" 7497 7498fi 7499 7500if test x"$try_finger" = xyes ; then 7501 GPGKEYS_FINGER="gpgkeys_finger$EXEEXT" 7502 7503fi 7504 7505 7506ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 7507if test "x$ac_cv_func_gethostbyname" = xyes; then : 7508 7509else 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7511$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7512if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514else 7515 ac_check_lib_save_LIBS=$LIBS 7516LIBS="-lnsl $LIBS" 7517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519 7520/* Override any GCC internal prototype to avoid an error. 7521 Use char because int might match the return type of a GCC 7522 builtin and then its argument prototype would still apply. */ 7523#ifdef __cplusplus 7524extern "C" 7525#endif 7526char gethostbyname (); 7527int 7528main () 7529{ 7530return gethostbyname (); 7531 ; 7532 return 0; 7533} 7534_ACEOF 7535if ac_fn_c_try_link "$LINENO"; then : 7536 ac_cv_lib_nsl_gethostbyname=yes 7537else 7538 ac_cv_lib_nsl_gethostbyname=no 7539fi 7540rm -f core conftest.err conftest.$ac_objext \ 7541 conftest$ac_exeext conftest.$ac_ext 7542LIBS=$ac_check_lib_save_LIBS 7543fi 7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7545$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7546if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7547 NETLIBS="-lnsl $NETLIBS" 7548fi 7549 7550fi 7551 7552ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 7553if test "x$ac_cv_func_setsockopt" = xyes; then : 7554 7555else 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 7557$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 7558if ${ac_cv_lib_socket_setsockopt+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 ac_check_lib_save_LIBS=$LIBS 7562LIBS="-lsocket $LIBS" 7563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564/* end confdefs.h. */ 7565 7566/* Override any GCC internal prototype to avoid an error. 7567 Use char because int might match the return type of a GCC 7568 builtin and then its argument prototype would still apply. */ 7569#ifdef __cplusplus 7570extern "C" 7571#endif 7572char setsockopt (); 7573int 7574main () 7575{ 7576return setsockopt (); 7577 ; 7578 return 0; 7579} 7580_ACEOF 7581if ac_fn_c_try_link "$LINENO"; then : 7582 ac_cv_lib_socket_setsockopt=yes 7583else 7584 ac_cv_lib_socket_setsockopt=no 7585fi 7586rm -f core conftest.err conftest.$ac_objext \ 7587 conftest$ac_exeext conftest.$ac_ext 7588LIBS=$ac_check_lib_save_LIBS 7589fi 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 7591$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 7592if test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 7593 NETLIBS="-lsocket $NETLIBS" 7594fi 7595 7596fi 7597 7598 7599 7600if test x"$try_dns" = xyes ; then 7601 if test x"$try_hkp" = xyes || test x"$try_http" = xyes ; then 7602 # Check whether --enable-dns-srv was given. 7603if test "${enable_dns_srv+set}" = set; then : 7604 enableval=$enable_dns_srv; use_dns_srv=$enableval 7605else 7606 use_dns_srv=yes 7607fi 7608 7609 fi 7610 7611 # Check whether --enable-dns-cert was given. 7612if test "${enable_dns_cert+set}" = set; then : 7613 enableval=$enable_dns_cert; use_dns_cert=$enableval 7614else 7615 use_dns_cert=yes 7616fi 7617 7618fi 7619 7620if test x"$use_dns_srv" = xyes || test x"$use_dns_cert" = xyes; then 7621 _dns_save_libs=$LIBS 7622 LIBS="" 7623 # the double underscore thing is a glibc-ism? 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5 7625$as_echo_n "checking for library containing res_query... " >&6; } 7626if ${ac_cv_search_res_query+:} false; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 ac_func_search_save_LIBS=$LIBS 7630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7631/* end confdefs.h. */ 7632 7633/* Override any GCC internal prototype to avoid an error. 7634 Use char because int might match the return type of a GCC 7635 builtin and then its argument prototype would still apply. */ 7636#ifdef __cplusplus 7637extern "C" 7638#endif 7639char res_query (); 7640int 7641main () 7642{ 7643return res_query (); 7644 ; 7645 return 0; 7646} 7647_ACEOF 7648for ac_lib in '' resolv bind socket; do 7649 if test -z "$ac_lib"; then 7650 ac_res="none required" 7651 else 7652 ac_res=-l$ac_lib 7653 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7654 fi 7655 if ac_fn_c_try_link "$LINENO"; then : 7656 ac_cv_search_res_query=$ac_res 7657fi 7658rm -f core conftest.err conftest.$ac_objext \ 7659 conftest$ac_exeext 7660 if ${ac_cv_search_res_query+:} false; then : 7661 break 7662fi 7663done 7664if ${ac_cv_search_res_query+:} false; then : 7665 7666else 7667 ac_cv_search_res_query=no 7668fi 7669rm conftest.$ac_ext 7670LIBS=$ac_func_search_save_LIBS 7671fi 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5 7673$as_echo "$ac_cv_search_res_query" >&6; } 7674ac_res=$ac_cv_search_res_query 7675if test "$ac_res" != no; then : 7676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7677 7678else 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5 7680$as_echo_n "checking for library containing __res_query... " >&6; } 7681if ${ac_cv_search___res_query+:} false; then : 7682 $as_echo_n "(cached) " >&6 7683else 7684 ac_func_search_save_LIBS=$LIBS 7685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7686/* end confdefs.h. */ 7687 7688/* Override any GCC internal prototype to avoid an error. 7689 Use char because int might match the return type of a GCC 7690 builtin and then its argument prototype would still apply. */ 7691#ifdef __cplusplus 7692extern "C" 7693#endif 7694char __res_query (); 7695int 7696main () 7697{ 7698return __res_query (); 7699 ; 7700 return 0; 7701} 7702_ACEOF 7703for ac_lib in '' resolv bind socket; do 7704 if test -z "$ac_lib"; then 7705 ac_res="none required" 7706 else 7707 ac_res=-l$ac_lib 7708 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7709 fi 7710 if ac_fn_c_try_link "$LINENO"; then : 7711 ac_cv_search___res_query=$ac_res 7712fi 7713rm -f core conftest.err conftest.$ac_objext \ 7714 conftest$ac_exeext 7715 if ${ac_cv_search___res_query+:} false; then : 7716 break 7717fi 7718done 7719if ${ac_cv_search___res_query+:} false; then : 7720 7721else 7722 ac_cv_search___res_query=no 7723fi 7724rm conftest.$ac_ext 7725LIBS=$ac_func_search_save_LIBS 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5 7728$as_echo "$ac_cv_search___res_query" >&6; } 7729ac_res=$ac_cv_search___res_query 7730if test "$ac_res" != no; then : 7731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7732 7733else 7734 have_resolver=no 7735fi 7736 7737fi 7738 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5 7740$as_echo_n "checking for library containing dn_expand... " >&6; } 7741if ${ac_cv_search_dn_expand+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 ac_func_search_save_LIBS=$LIBS 7745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747 7748/* Override any GCC internal prototype to avoid an error. 7749 Use char because int might match the return type of a GCC 7750 builtin and then its argument prototype would still apply. */ 7751#ifdef __cplusplus 7752extern "C" 7753#endif 7754char dn_expand (); 7755int 7756main () 7757{ 7758return dn_expand (); 7759 ; 7760 return 0; 7761} 7762_ACEOF 7763for ac_lib in '' resolv bind socket; do 7764 if test -z "$ac_lib"; then 7765 ac_res="none required" 7766 else 7767 ac_res=-l$ac_lib 7768 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7769 fi 7770 if ac_fn_c_try_link "$LINENO"; then : 7771 ac_cv_search_dn_expand=$ac_res 7772fi 7773rm -f core conftest.err conftest.$ac_objext \ 7774 conftest$ac_exeext 7775 if ${ac_cv_search_dn_expand+:} false; then : 7776 break 7777fi 7778done 7779if ${ac_cv_search_dn_expand+:} false; then : 7780 7781else 7782 ac_cv_search_dn_expand=no 7783fi 7784rm conftest.$ac_ext 7785LIBS=$ac_func_search_save_LIBS 7786fi 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5 7788$as_echo "$ac_cv_search_dn_expand" >&6; } 7789ac_res=$ac_cv_search_dn_expand 7790if test "$ac_res" != no; then : 7791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7792 7793else 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5 7795$as_echo_n "checking for library containing __dn_expand... " >&6; } 7796if ${ac_cv_search___dn_expand+:} false; then : 7797 $as_echo_n "(cached) " >&6 7798else 7799 ac_func_search_save_LIBS=$LIBS 7800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801/* end confdefs.h. */ 7802 7803/* Override any GCC internal prototype to avoid an error. 7804 Use char because int might match the return type of a GCC 7805 builtin and then its argument prototype would still apply. */ 7806#ifdef __cplusplus 7807extern "C" 7808#endif 7809char __dn_expand (); 7810int 7811main () 7812{ 7813return __dn_expand (); 7814 ; 7815 return 0; 7816} 7817_ACEOF 7818for ac_lib in '' resolv bind socket; do 7819 if test -z "$ac_lib"; then 7820 ac_res="none required" 7821 else 7822 ac_res=-l$ac_lib 7823 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7824 fi 7825 if ac_fn_c_try_link "$LINENO"; then : 7826 ac_cv_search___dn_expand=$ac_res 7827fi 7828rm -f core conftest.err conftest.$ac_objext \ 7829 conftest$ac_exeext 7830 if ${ac_cv_search___dn_expand+:} false; then : 7831 break 7832fi 7833done 7834if ${ac_cv_search___dn_expand+:} false; then : 7835 7836else 7837 ac_cv_search___dn_expand=no 7838fi 7839rm conftest.$ac_ext 7840LIBS=$ac_func_search_save_LIBS 7841fi 7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5 7843$as_echo "$ac_cv_search___dn_expand" >&6; } 7844ac_res=$ac_cv_search___dn_expand 7845if test "$ac_res" != no; then : 7846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7847 7848else 7849 have_resolver=no 7850fi 7851 7852fi 7853 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5 7855$as_echo_n "checking for library containing dn_skipname... " >&6; } 7856if ${ac_cv_search_dn_skipname+:} false; then : 7857 $as_echo_n "(cached) " >&6 7858else 7859 ac_func_search_save_LIBS=$LIBS 7860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7861/* end confdefs.h. */ 7862 7863/* Override any GCC internal prototype to avoid an error. 7864 Use char because int might match the return type of a GCC 7865 builtin and then its argument prototype would still apply. */ 7866#ifdef __cplusplus 7867extern "C" 7868#endif 7869char dn_skipname (); 7870int 7871main () 7872{ 7873return dn_skipname (); 7874 ; 7875 return 0; 7876} 7877_ACEOF 7878for ac_lib in '' resolv bind socket; do 7879 if test -z "$ac_lib"; then 7880 ac_res="none required" 7881 else 7882 ac_res=-l$ac_lib 7883 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7884 fi 7885 if ac_fn_c_try_link "$LINENO"; then : 7886 ac_cv_search_dn_skipname=$ac_res 7887fi 7888rm -f core conftest.err conftest.$ac_objext \ 7889 conftest$ac_exeext 7890 if ${ac_cv_search_dn_skipname+:} false; then : 7891 break 7892fi 7893done 7894if ${ac_cv_search_dn_skipname+:} false; then : 7895 7896else 7897 ac_cv_search_dn_skipname=no 7898fi 7899rm conftest.$ac_ext 7900LIBS=$ac_func_search_save_LIBS 7901fi 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5 7903$as_echo "$ac_cv_search_dn_skipname" >&6; } 7904ac_res=$ac_cv_search_dn_skipname 7905if test "$ac_res" != no; then : 7906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7907 7908else 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5 7910$as_echo_n "checking for library containing __dn_skipname... " >&6; } 7911if ${ac_cv_search___dn_skipname+:} false; then : 7912 $as_echo_n "(cached) " >&6 7913else 7914 ac_func_search_save_LIBS=$LIBS 7915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917 7918/* Override any GCC internal prototype to avoid an error. 7919 Use char because int might match the return type of a GCC 7920 builtin and then its argument prototype would still apply. */ 7921#ifdef __cplusplus 7922extern "C" 7923#endif 7924char __dn_skipname (); 7925int 7926main () 7927{ 7928return __dn_skipname (); 7929 ; 7930 return 0; 7931} 7932_ACEOF 7933for ac_lib in '' resolv bind socket; do 7934 if test -z "$ac_lib"; then 7935 ac_res="none required" 7936 else 7937 ac_res=-l$ac_lib 7938 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7939 fi 7940 if ac_fn_c_try_link "$LINENO"; then : 7941 ac_cv_search___dn_skipname=$ac_res 7942fi 7943rm -f core conftest.err conftest.$ac_objext \ 7944 conftest$ac_exeext 7945 if ${ac_cv_search___dn_skipname+:} false; then : 7946 break 7947fi 7948done 7949if ${ac_cv_search___dn_skipname+:} false; then : 7950 7951else 7952 ac_cv_search___dn_skipname=no 7953fi 7954rm conftest.$ac_ext 7955LIBS=$ac_func_search_save_LIBS 7956fi 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5 7958$as_echo "$ac_cv_search___dn_skipname" >&6; } 7959ac_res=$ac_cv_search___dn_skipname 7960if test "$ac_res" != no; then : 7961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7962 7963else 7964 have_resolver=no 7965fi 7966 7967fi 7968 7969 7970 if test x"$have_resolver" != xno ; then 7971 7972 # Make sure that the BIND 4 resolver interface is workable before 7973 # enabling any code that calls it. At some point I'll rewrite the 7974 # code to use the BIND 8 resolver API. 7975 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5 7977$as_echo_n "checking whether the resolver is usable... " >&6; } 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980#include <sys/types.h> 7981#include <netinet/in.h> 7982#include <arpa/nameser.h> 7983#include <resolv.h> 7984int 7985main () 7986{ 7987unsigned char answer[PACKETSZ]; res_query("foo.bar",C_IN,T_A,answer,PACKETSZ); dn_skipname(0,0); dn_expand(0,0,0,0,0); 7988 ; 7989 return 0; 7990} 7991_ACEOF 7992if ac_fn_c_try_link "$LINENO"; then : 7993 have_resolver=yes 7994else 7995 have_resolver=no 7996fi 7997rm -f core conftest.err conftest.$ac_objext \ 7998 conftest$ac_exeext conftest.$ac_ext 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5 8000$as_echo "$have_resolver" >&6; } 8001 8002 # This is Apple-specific and somewhat bizarre as they changed the 8003 # define in bind 8 for some reason. 8004 8005 if test x"$have_resolver" != xyes ; then 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT and libresolv" >&5 8007$as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT and libresolv... " >&6; } 8008 LIBS="$LIBS -lresolv" 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011#define BIND_8_COMPAT 8012#include <sys/types.h> 8013#include <netinet/in.h> 8014#include <arpa/nameser.h> 8015#include <resolv.h> 8016int 8017main () 8018{ 8019unsigned char answer[PACKETSZ]; res_query("foo.bar",C_IN,T_A,answer,PACKETSZ); dn_skipname(0,0); dn_expand(0,0,0,0,0); 8020 ; 8021 return 0; 8022} 8023_ACEOF 8024if ac_fn_c_try_link "$LINENO"; then : 8025 have_resolver=yes ; need_compat=yes 8026fi 8027rm -f core conftest.err conftest.$ac_objext \ 8028 conftest$ac_exeext conftest.$ac_ext 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5 8030$as_echo "$have_resolver" >&6; } 8031 fi 8032 fi 8033 8034 if test x"$have_resolver" = xyes ; then 8035 DNSLIBS=$LIBS 8036 8037 if test x"$use_dns_srv" = xyes ; then 8038 8039$as_echo "#define USE_DNS_SRV 1" >>confdefs.h 8040 8041 fi 8042 8043 if test x"$use_dns_cert" = xyes ; then 8044 8045$as_echo "#define USE_DNS_CERT 1" >>confdefs.h 8046 8047 fi 8048 8049 if test x"$need_compat" = xyes ; then 8050 8051$as_echo "#define BIND_8_COMPAT 1" >>confdefs.h 8052 8053 fi 8054 else 8055 use_dns_srv=no 8056 use_dns_cert=no 8057 fi 8058 8059 LIBS=$_dns_save_libs 8060fi 8061 8062 8063 8064 if test x"$use_dns_srv" = xyes; then 8065 USE_DNS_SRV_TRUE= 8066 USE_DNS_SRV_FALSE='#' 8067else 8068 USE_DNS_SRV_TRUE='#' 8069 USE_DNS_SRV_FALSE= 8070fi 8071 8072 8073# Check for LDAP 8074 8075if test "$try_ldap" = yes ; then 8076 8077# Try and link a LDAP test program to weed out unusable LDAP 8078# libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs. 8079# OpenLDAP, circa 1999, was terrible with creating weird dependencies. 8080# If all else fails, the user can play guess-the-dependency by using 8081# something like ./configure LDAPLIBS="-Lfoo -lbar" 8082 8083 8084# Check whether --with-ldap was given. 8085if test "${with_ldap+set}" = set; then : 8086 withval=$with_ldap; _ldap_with=$withval 8087fi 8088 8089 8090if test x$_ldap_with != xno ; then 8091 8092 if test -d "$withval" ; then 8093 LDAP_CPPFLAGS="-I$withval/include" 8094 LDAP_LDFLAGS="-L$withval/lib" 8095 fi 8096 8097 _ldap_save_cppflags=$CPPFLAGS 8098 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}" 8099 _ldap_save_ldflags=$LDFLAGS 8100 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}" 8101 8102 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do 8103 _ldap_save_libs=$LIBS 8104 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS" 8105 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5 8107$as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; } 8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8109/* end confdefs.h. */ 8110 8111#ifdef _WIN32 8112#include <winsock2.h> 8113#include <winldap.h> 8114#else 8115#include <ldap.h> 8116#endif 8117 8118int 8119main () 8120{ 8121ldap_open("foobar",1234); 8122 ; 8123 return 0; 8124} 8125_ACEOF 8126if ac_fn_c_try_link "$LINENO"; then : 8127 gnupg_cv_func_ldap_init=yes 8128else 8129 gnupg_cv_func_ldap_init=no 8130fi 8131rm -f core conftest.err conftest.$ac_objext \ 8132 conftest$ac_exeext conftest.$ac_ext 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5 8134$as_echo "$gnupg_cv_func_ldap_init" >&6; } 8135 8136 if test $gnupg_cv_func_ldap_init = no; then 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5 8138$as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; } 8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8140/* end confdefs.h. */ 8141#include <lber.h> 8142#include <ldap.h> 8143int 8144main () 8145{ 8146ldap_open("foobar",1234); 8147 ; 8148 return 0; 8149} 8150_ACEOF 8151if ac_fn_c_try_link "$LINENO"; then : 8152 gnupg_cv_func_ldaplber_init=yes 8153else 8154 gnupg_cv_func_ldaplber_init=no 8155fi 8156rm -f core conftest.err conftest.$ac_objext \ 8157 conftest$ac_exeext conftest.$ac_ext 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5 8159$as_echo "$gnupg_cv_func_ldaplber_init" >&6; } 8160 fi 8161 8162 if test "$gnupg_cv_func_ldaplber_init" = yes ; then 8163 8164$as_echo "#define NEED_LBER_H 1" >>confdefs.h 8165 8166 fi 8167 8168 if test "$gnupg_cv_func_ldap_init" = yes || \ 8169 test "$gnupg_cv_func_ldaplber_init" = yes ; then 8170 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS" 8171 GPGKEYS_LDAP="gpgkeys_ldap$EXEEXT" 8172 8173 for ac_func in ldap_get_option ldap_set_option 8174do : 8175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8176ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8177if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8178 cat >>confdefs.h <<_ACEOF 8179#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8180_ACEOF 8181 8182fi 8183done 8184 8185 # The extra test for ldap_start_tls_sA is for W32 because 8186 # that is the actual function in the library. 8187 for ac_func in ldap_start_tls_s ldap_start_tls_sA 8188do : 8189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8190ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8191if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8192 cat >>confdefs.h <<_ACEOF 8193#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8194_ACEOF 8195 8196fi 8197done 8198 8199 8200 if test "$ac_cv_func_ldap_get_option" != yes ; then 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5 8202$as_echo_n "checking whether LDAP supports ld_errno... " >&6; } 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205#include <ldap.h> 8206int 8207main () 8208{ 8209LDAP *ldap; ldap->ld_errno; 8210 ; 8211 return 0; 8212} 8213_ACEOF 8214if ac_fn_c_try_link "$LINENO"; then : 8215 gnupg_cv_func_ldap_ld_errno=yes 8216else 8217 gnupg_cv_func_ldap_ld_errno=no 8218fi 8219rm -f core conftest.err conftest.$ac_objext \ 8220 conftest$ac_exeext conftest.$ac_ext 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5 8222$as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; } 8223 8224 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then 8225 8226$as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h 8227 8228 fi 8229 fi 8230 fi 8231 8232 LIBS=$_ldap_save_libs 8233 8234 if test "$GPGKEYS_LDAP" != "" ; then break; fi 8235 done 8236 8237 8238 8239 8240 8241 CPPFLAGS=$_ldap_save_cppflags 8242 LDFLAGS=$_ldap_save_ldflags 8243fi 8244 8245fi 8246 8247# Check for curl. We fake the curl API if libcurl isn't installed. 8248# We require 7.10 or better as we use curl_version_info(). 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271# Check whether --with-libcurl was given. 8272if test "${with_libcurl+set}" = set; then : 8273 withval=$with_libcurl; _libcurl_with=$withval 8274else 8275 _libcurl_with=yes 8276fi 8277 8278 8279 if test "$_libcurl_with" != "no" ; then 8280 8281 for ac_prog in gawk mawk nawk awk 8282do 8283 # Extract the first word of "$ac_prog", so it can be a program name with args. 8284set dummy $ac_prog; ac_word=$2 8285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8286$as_echo_n "checking for $ac_word... " >&6; } 8287if ${ac_cv_prog_AWK+:} false; then : 8288 $as_echo_n "(cached) " >&6 8289else 8290 if test -n "$AWK"; then 8291 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8292else 8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8294for as_dir in $PATH 8295do 8296 IFS=$as_save_IFS 8297 test -z "$as_dir" && as_dir=. 8298 for ac_exec_ext in '' $ac_executable_extensions; do 8299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8300 ac_cv_prog_AWK="$ac_prog" 8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8302 break 2 8303 fi 8304done 8305 done 8306IFS=$as_save_IFS 8307 8308fi 8309fi 8310AWK=$ac_cv_prog_AWK 8311if test -n "$AWK"; then 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8313$as_echo "$AWK" >&6; } 8314else 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8316$as_echo "no" >&6; } 8317fi 8318 8319 8320 test -n "$AWK" && break 8321done 8322 8323 8324 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" 8325 8326 # More recent versions of curl-config have a direct --vernum 8327 # option, but we'd like this code to work with older versions as 8328 # well, so just convert --version. 8329 _libcurl_vernum_parse="eval $AWK '{printf \"0x%06X\",\$NF}'" 8330 8331 _libcurl_try_link=yes 8332 8333 if test -d "$_libcurl_with" ; then 8334 LIBCURL_CPPFLAGS="-I$withval/include" 8335 _libcurl_ldflags="-L$withval/lib" 8336 # Extract the first word of ""$withval/bin/curl-config"", so it can be a program name with args. 8337set dummy "$withval/bin/curl-config"; ac_word=$2 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8339$as_echo_n "checking for $ac_word... " >&6; } 8340if ${ac_cv_path__libcurl_config+:} false; then : 8341 $as_echo_n "(cached) " >&6 8342else 8343 case $_libcurl_config in 8344 [\\/]* | ?:[\\/]*) 8345 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. 8346 ;; 8347 *) 8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8349for as_dir in $PATH 8350do 8351 IFS=$as_save_IFS 8352 test -z "$as_dir" && as_dir=. 8353 for ac_exec_ext in '' $ac_executable_extensions; do 8354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8355 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" 8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8357 break 2 8358 fi 8359done 8360 done 8361IFS=$as_save_IFS 8362 8363 ;; 8364esac 8365fi 8366_libcurl_config=$ac_cv_path__libcurl_config 8367if test -n "$_libcurl_config"; then 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 8369$as_echo "$_libcurl_config" >&6; } 8370else 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8372$as_echo "no" >&6; } 8373fi 8374 8375 8376 else 8377 # Extract the first word of "curl-config", so it can be a program name with args. 8378set dummy curl-config; ac_word=$2 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8380$as_echo_n "checking for $ac_word... " >&6; } 8381if ${ac_cv_path__libcurl_config+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 case $_libcurl_config in 8385 [\\/]* | ?:[\\/]*) 8386 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. 8387 ;; 8388 *) 8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8390for as_dir in $PATH 8391do 8392 IFS=$as_save_IFS 8393 test -z "$as_dir" && as_dir=. 8394 for ac_exec_ext in '' $ac_executable_extensions; do 8395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8396 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" 8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8398 break 2 8399 fi 8400done 8401 done 8402IFS=$as_save_IFS 8403 8404 ;; 8405esac 8406fi 8407_libcurl_config=$ac_cv_path__libcurl_config 8408if test -n "$_libcurl_config"; then 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 8410$as_echo "$_libcurl_config" >&6; } 8411else 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413$as_echo "no" >&6; } 8414fi 8415 8416 8417 fi 8418 8419 if test x$_libcurl_config != "x" ; then 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 8421$as_echo_n "checking for the version of libcurl... " >&6; } 8422if ${libcurl_cv_lib_curl_version+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 8428$as_echo "$libcurl_cv_lib_curl_version" >&6; } 8429 8430 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` 8431 _libcurl_wanted=`echo 7.10 | $_libcurl_version_parse` 8432 8433 if test $_libcurl_wanted -gt 0 ; then 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10" >&5 8435$as_echo_n "checking for libcurl >= version 7.10... " >&6; } 8436if ${libcurl_cv_lib_version_ok+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 8440 if test $_libcurl_version -ge $_libcurl_wanted ; then 8441 libcurl_cv_lib_version_ok=yes 8442 else 8443 libcurl_cv_lib_version_ok=no 8444 fi 8445 8446fi 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 8448$as_echo "$libcurl_cv_lib_version_ok" >&6; } 8449 fi 8450 8451 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then 8452 if test x"$LIBCURL_CPPFLAGS" = "x" ; then 8453 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` 8454 fi 8455 if test x"$LIBCURL" = "x" ; then 8456 LIBCURL=`$_libcurl_config --libs` 8457 8458 # This is so silly, but Apple actually has a bug in their 8459 # curl-config script. Fixed in Tiger, but there are still 8460 # lots of Panther installs around. 8461 case "${host}" in 8462 powerpc-apple-darwin7*) 8463 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` 8464 ;; 8465 esac 8466 fi 8467 8468 # All curl-config scripts support --feature 8469 _libcurl_features=`$_libcurl_config --feature` 8470 8471 # Is it modern enough to have --protocols? (7.12.4) 8472 if test $_libcurl_version -ge 461828 ; then 8473 _libcurl_protocols=`$_libcurl_config --protocols` 8474 fi 8475 else 8476 _libcurl_try_link=no 8477 fi 8478 8479 unset _libcurl_wanted 8480 fi 8481 8482 if test $_libcurl_try_link = yes ; then 8483 8484 # we didn't find curl-config, so let's see if the user-supplied 8485 # link line (or failing that, "-lcurl") is enough. 8486 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} 8487 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 8489$as_echo_n "checking whether libcurl is usable... " >&6; } 8490if ${libcurl_cv_lib_curl_usable+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492else 8493 8494 _libcurl_save_cppflags=$CPPFLAGS 8495 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" 8496 _libcurl_save_libs=$LIBS 8497 LIBS="$LIBCURL $LIBS" 8498 8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8500/* end confdefs.h. */ 8501#include <curl/curl.h> 8502int 8503main () 8504{ 8505 8506/* Try and use a few common options to force a failure if we are 8507 missing symbols or can't link. */ 8508int x; 8509curl_easy_setopt(NULL,CURLOPT_URL,NULL); 8510x=CURL_ERROR_SIZE; 8511x=CURLOPT_WRITEFUNCTION; 8512x=CURLOPT_FILE; 8513x=CURLOPT_ERRORBUFFER; 8514x=CURLOPT_STDERR; 8515x=CURLOPT_VERBOSE; 8516 8517 ; 8518 return 0; 8519} 8520_ACEOF 8521if ac_fn_c_try_link "$LINENO"; then : 8522 libcurl_cv_lib_curl_usable=yes 8523else 8524 libcurl_cv_lib_curl_usable=no 8525fi 8526rm -f core conftest.err conftest.$ac_objext \ 8527 conftest$ac_exeext conftest.$ac_ext 8528 8529 CPPFLAGS=$_libcurl_save_cppflags 8530 LIBS=$_libcurl_save_libs 8531 unset _libcurl_save_cppflags 8532 unset _libcurl_save_libs 8533 8534fi 8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 8536$as_echo "$libcurl_cv_lib_curl_usable" >&6; } 8537 8538 if test $libcurl_cv_lib_curl_usable = yes ; then 8539 8540 _libcurl_save_cppflags=$CPPFLAGS 8541 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" 8542 _libcurl_save_libs=$LIBS 8543 LIBS="$LIBS $LIBCURL" 8544 8545 # Check for some libcurl functions that aren't in all 8546 # versions. 8547 8548 for ac_func in curl_free curl_easy_escape curl_easy_unescape 8549do : 8550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8551ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8552if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8553 cat >>confdefs.h <<_ACEOF 8554#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8555_ACEOF 8556 8557fi 8558done 8559 8560 8561 8562 8563 CPPFLAGS=$_libcurl_save_cppflags 8564 LIBS=$_libcurl_save_libs 8565 unset _libcurl_save_cppflags 8566 unset _libcurl_save_libs 8567 8568 8569$as_echo "#define HAVE_LIBCURL 1" >>confdefs.h 8570 8571 8572 8573 8574 _libcurl_vernum=`echo $_libcurl_version | $_libcurl_vernum_parse` 8575 8576 8577cat >>confdefs.h <<_ACEOF 8578#define LIBCURL_VERNUM $_libcurl_vernum 8579_ACEOF 8580 8581 8582 for _libcurl_feature in $_libcurl_features ; do 8583 cat >>confdefs.h <<_ACEOF 8584#define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 8585_ACEOF 8586 8587 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes 8588 done 8589 8590 if test "x$_libcurl_protocols" = "x" ; then 8591 8592 # We don't have --protocols, so just assume that all 8593 # protocols are available 8594 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT" 8595 8596 if test x$libcurl_feature_SSL = xyes ; then 8597 _libcurl_protocols="$_libcurl_protocols HTTPS" 8598 8599 # FTPS wasn't standards-compliant until version 8600 # 7.11.0 8601 if test $_libcurl_version -ge 461568; then 8602 _libcurl_protocols="$_libcurl_protocols FTPS" 8603 fi 8604 fi 8605 fi 8606 8607 for _libcurl_protocol in $_libcurl_protocols ; do 8608 cat >>confdefs.h <<_ACEOF 8609#define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 8610_ACEOF 8611 8612 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes 8613 done 8614 else 8615 unset LIBCURL 8616 unset LIBCURL_CPPFLAGS 8617 fi 8618 fi 8619 8620 unset _libcurl_try_link 8621 unset _libcurl_version_parse 8622 unset _libcurl_config 8623 unset _libcurl_feature 8624 unset _libcurl_features 8625 unset _libcurl_protocol 8626 unset _libcurl_protocols 8627 unset _libcurl_version 8628 unset _libcurl_vernum 8629 unset _libcurl_ldflags 8630 fi 8631 8632 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then 8633 # This is the IF-NO path 8634 fake_curl=yes 8635 else 8636 # This is the IF-YES path 8637 : 8638 fi 8639 8640 unset _libcurl_with 8641 8642 if test x"$fake_curl" = xyes; then 8643 FAKE_CURL_TRUE= 8644 FAKE_CURL_FALSE='#' 8645else 8646 FAKE_CURL_TRUE='#' 8647 FAKE_CURL_FALSE= 8648fi 8649 8650 8651# Generic, for us, means curl 8652 8653if test x"$try_generic" = xyes ; then 8654 GPGKEYS_CURL="gpgkeys_curl$EXEEXT" 8655 8656fi 8657 8658 8659if test "$try_mailto" = yes ; then 8660 8661# Check whether --with-mailprog was given. 8662if test "${with_mailprog+set}" = set; then : 8663 withval=$with_mailprog; 8664else 8665 with_mailprog=yes 8666fi 8667 8668 8669 if test "$with_mailprog" = yes ; then 8670 # Extract the first word of "sendmail", so it can be a program name with args. 8671set dummy sendmail; ac_word=$2 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8673$as_echo_n "checking for $ac_word... " >&6; } 8674if ${ac_cv_path_SENDMAIL+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676else 8677 case $SENDMAIL in 8678 [\\/]* | ?:[\\/]*) 8679 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path. 8680 ;; 8681 *) 8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8683as_dummy="$PATH:/usr/sbin:/usr/libexec:/usr/lib" 8684for as_dir in $as_dummy 8685do 8686 IFS=$as_save_IFS 8687 test -z "$as_dir" && as_dir=. 8688 for ac_exec_ext in '' $ac_executable_extensions; do 8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8690 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" 8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8692 break 2 8693 fi 8694done 8695 done 8696IFS=$as_save_IFS 8697 8698 ;; 8699esac 8700fi 8701SENDMAIL=$ac_cv_path_SENDMAIL 8702if test -n "$SENDMAIL"; then 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5 8704$as_echo "$SENDMAIL" >&6; } 8705else 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8707$as_echo "no" >&6; } 8708fi 8709 8710 8711 if test "$ac_cv_path_SENDMAIL" ; then 8712 GPGKEYS_MAILTO="gpgkeys_mailto" 8713 fi 8714 elif test "$with_mailprog" != no ; then 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5 8716$as_echo_n "checking for a mail transport program... " >&6; } 8717 SENDMAIL=$with_mailprog 8718 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5 8720$as_echo "$with_mailprog" >&6; } 8721 GPGKEYS_MAILTO="gpgkeys_mailto" 8722 fi 8723fi 8724 8725 8726 8727case "${host}" in 8728 *-mingw32*) 8729 PRINTABLE_OS_NAME="MingW32" 8730 ;; 8731 *-*-cygwin*) 8732 PRINTABLE_OS_NAME="Cygwin" 8733 ;; 8734 i?86-emx-os2 | i?86-*-os2*emx ) 8735 PRINTABLE_OS_NAME="OS/2" 8736 ;; 8737 i?86-*-msdosdjgpp*) 8738 PRINTABLE_OS_NAME="MSDOS/DJGPP" 8739 try_extensions=no 8740 ;; 8741 *-linux*) 8742 PRINTABLE_OS_NAME="GNU/Linux" 8743 ;; 8744 *) 8745 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"` 8746 ;; 8747esac 8748 8749cat >>confdefs.h <<_ACEOF 8750#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME" 8751_ACEOF 8752 8753 8754 8755# 8756# 1. Set names of random devices 8757# 8758NAME_OF_DEV_RANDOM="/dev/random" 8759NAME_OF_DEV_URANDOM="/dev/urandom" 8760 8761cat >>confdefs.h <<_ACEOF 8762#define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM" 8763_ACEOF 8764 8765 8766cat >>confdefs.h <<_ACEOF 8767#define NAME_OF_DEV_URANDOM "$NAME_OF_DEV_URANDOM" 8768_ACEOF 8769 8770 8771 8772 8773 8774 8775# This is "GNU gnupg" - The project-id script from gettext 8776# needs to find this string. Without 8777# it "make distcheck" may fail. 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8779$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8780if ${ac_cv_path_SED+:} false; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8784 for ac_i in 1 2 3 4 5 6 7; do 8785 ac_script="$ac_script$as_nl$ac_script" 8786 done 8787 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8788 { ac_script=; unset ac_script;} 8789 if test -z "$SED"; then 8790 ac_path_SED_found=false 8791 # Loop through the user's path and test for each of PROGNAME-LIST 8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8793for as_dir in $PATH 8794do 8795 IFS=$as_save_IFS 8796 test -z "$as_dir" && as_dir=. 8797 for ac_prog in sed gsed; do 8798 for ac_exec_ext in '' $ac_executable_extensions; do 8799 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8800 as_fn_executable_p "$ac_path_SED" || continue 8801# Check for GNU ac_path_SED and select it if it is found. 8802 # Check for GNU $ac_path_SED 8803case `"$ac_path_SED" --version 2>&1` in 8804*GNU*) 8805 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8806*) 8807 ac_count=0 8808 $as_echo_n 0123456789 >"conftest.in" 8809 while : 8810 do 8811 cat "conftest.in" "conftest.in" >"conftest.tmp" 8812 mv "conftest.tmp" "conftest.in" 8813 cp "conftest.in" "conftest.nl" 8814 $as_echo '' >> "conftest.nl" 8815 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8816 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8817 as_fn_arith $ac_count + 1 && ac_count=$as_val 8818 if test $ac_count -gt ${ac_path_SED_max-0}; then 8819 # Best one so far, save it but keep looking for a better one 8820 ac_cv_path_SED="$ac_path_SED" 8821 ac_path_SED_max=$ac_count 8822 fi 8823 # 10*(2^10) chars as input seems more than enough 8824 test $ac_count -gt 10 && break 8825 done 8826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8827esac 8828 8829 $ac_path_SED_found && break 3 8830 done 8831 done 8832 done 8833IFS=$as_save_IFS 8834 if test -z "$ac_cv_path_SED"; then 8835 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8836 fi 8837else 8838 ac_cv_path_SED=$SED 8839fi 8840 8841fi 8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8843$as_echo "$ac_cv_path_SED" >&6; } 8844 SED="$ac_cv_path_SED" 8845 rm -f conftest.sed 8846 8847 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 8849$as_echo_n "checking whether NLS is requested... " >&6; } 8850 # Check whether --enable-nls was given. 8851if test "${enable_nls+set}" = set; then : 8852 enableval=$enable_nls; USE_NLS=$enableval 8853else 8854 USE_NLS=yes 8855fi 8856 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 8858$as_echo "$USE_NLS" >&6; } 8859 8860 8861 8862 8863 GETTEXT_MACRO_VERSION=0.19 8864 8865 8866 8867 8868# Prepare PATH_SEPARATOR. 8869# The user is always right. 8870if test "${PATH_SEPARATOR+set}" != set; then 8871 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 8872 # contains only /bin. Note that ksh looks also at the FPATH variable, 8873 # so we have to set that as well for the test. 8874 PATH_SEPARATOR=: 8875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8876 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8877 || PATH_SEPARATOR=';' 8878 } 8879fi 8880 8881# Find out how to test for executable files. Don't use a zero-byte file, 8882# as systems may use methods other than mode bits to determine executability. 8883cat >conf$$.file <<_ASEOF 8884#! /bin/sh 8885exit 0 8886_ASEOF 8887chmod +x conf$$.file 8888if test -x conf$$.file >/dev/null 2>&1; then 8889 ac_executable_p="test -x" 8890else 8891 ac_executable_p="test -f" 8892fi 8893rm -f conf$$.file 8894 8895# Extract the first word of "msgfmt", so it can be a program name with args. 8896set dummy msgfmt; ac_word=$2 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8898$as_echo_n "checking for $ac_word... " >&6; } 8899if ${ac_cv_path_MSGFMT+:} false; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 case "$MSGFMT" in 8903 [\\/]* | ?:[\\/]*) 8904 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 8905 ;; 8906 *) 8907 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 8908 for ac_dir in $PATH; do 8909 IFS="$ac_save_IFS" 8910 test -z "$ac_dir" && ac_dir=. 8911 for ac_exec_ext in '' $ac_executable_extensions; do 8912 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 8913 echo "$as_me: trying $ac_dir/$ac_word..." >&5 8914 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 8915 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8916 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 8917 break 2 8918 fi 8919 fi 8920 done 8921 done 8922 IFS="$ac_save_IFS" 8923 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 8924 ;; 8925esac 8926fi 8927MSGFMT="$ac_cv_path_MSGFMT" 8928if test "$MSGFMT" != ":"; then 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 8930$as_echo "$MSGFMT" >&6; } 8931else 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8933$as_echo "no" >&6; } 8934fi 8935 8936 # Extract the first word of "gmsgfmt", so it can be a program name with args. 8937set dummy gmsgfmt; ac_word=$2 8938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8939$as_echo_n "checking for $ac_word... " >&6; } 8940if ${ac_cv_path_GMSGFMT+:} false; then : 8941 $as_echo_n "(cached) " >&6 8942else 8943 case $GMSGFMT in 8944 [\\/]* | ?:[\\/]*) 8945 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 8946 ;; 8947 *) 8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8949for as_dir in $PATH 8950do 8951 IFS=$as_save_IFS 8952 test -z "$as_dir" && as_dir=. 8953 for ac_exec_ext in '' $ac_executable_extensions; do 8954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8955 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8957 break 2 8958 fi 8959done 8960 done 8961IFS=$as_save_IFS 8962 8963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 8964 ;; 8965esac 8966fi 8967GMSGFMT=$ac_cv_path_GMSGFMT 8968if test -n "$GMSGFMT"; then 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 8970$as_echo "$GMSGFMT" >&6; } 8971else 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8973$as_echo "no" >&6; } 8974fi 8975 8976 8977 8978 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 8979 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 8980 *) MSGFMT_015=$MSGFMT ;; 8981 esac 8982 8983 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 8984 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 8985 *) GMSGFMT_015=$GMSGFMT ;; 8986 esac 8987 8988 8989 8990# Prepare PATH_SEPARATOR. 8991# The user is always right. 8992if test "${PATH_SEPARATOR+set}" != set; then 8993 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 8994 # contains only /bin. Note that ksh looks also at the FPATH variable, 8995 # so we have to set that as well for the test. 8996 PATH_SEPARATOR=: 8997 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8998 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 8999 || PATH_SEPARATOR=';' 9000 } 9001fi 9002 9003# Find out how to test for executable files. Don't use a zero-byte file, 9004# as systems may use methods other than mode bits to determine executability. 9005cat >conf$$.file <<_ASEOF 9006#! /bin/sh 9007exit 0 9008_ASEOF 9009chmod +x conf$$.file 9010if test -x conf$$.file >/dev/null 2>&1; then 9011 ac_executable_p="test -x" 9012else 9013 ac_executable_p="test -f" 9014fi 9015rm -f conf$$.file 9016 9017# Extract the first word of "xgettext", so it can be a program name with args. 9018set dummy xgettext; ac_word=$2 9019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9020$as_echo_n "checking for $ac_word... " >&6; } 9021if ${ac_cv_path_XGETTEXT+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023else 9024 case "$XGETTEXT" in 9025 [\\/]* | ?:[\\/]*) 9026 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 9027 ;; 9028 *) 9029 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 9030 for ac_dir in $PATH; do 9031 IFS="$ac_save_IFS" 9032 test -z "$ac_dir" && ac_dir=. 9033 for ac_exec_ext in '' $ac_executable_extensions; do 9034 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 9035 echo "$as_me: trying $ac_dir/$ac_word..." >&5 9036 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 9037 (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 9038 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 9039 break 2 9040 fi 9041 fi 9042 done 9043 done 9044 IFS="$ac_save_IFS" 9045 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 9046 ;; 9047esac 9048fi 9049XGETTEXT="$ac_cv_path_XGETTEXT" 9050if test "$XGETTEXT" != ":"; then 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 9052$as_echo "$XGETTEXT" >&6; } 9053else 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9055$as_echo "no" >&6; } 9056fi 9057 9058 rm -f messages.po 9059 9060 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 9061 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 9062 *) XGETTEXT_015=$XGETTEXT ;; 9063 esac 9064 9065 9066 9067# Prepare PATH_SEPARATOR. 9068# The user is always right. 9069if test "${PATH_SEPARATOR+set}" != set; then 9070 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 9071 # contains only /bin. Note that ksh looks also at the FPATH variable, 9072 # so we have to set that as well for the test. 9073 PATH_SEPARATOR=: 9074 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 9075 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 9076 || PATH_SEPARATOR=';' 9077 } 9078fi 9079 9080# Find out how to test for executable files. Don't use a zero-byte file, 9081# as systems may use methods other than mode bits to determine executability. 9082cat >conf$$.file <<_ASEOF 9083#! /bin/sh 9084exit 0 9085_ASEOF 9086chmod +x conf$$.file 9087if test -x conf$$.file >/dev/null 2>&1; then 9088 ac_executable_p="test -x" 9089else 9090 ac_executable_p="test -f" 9091fi 9092rm -f conf$$.file 9093 9094# Extract the first word of "msgmerge", so it can be a program name with args. 9095set dummy msgmerge; ac_word=$2 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9097$as_echo_n "checking for $ac_word... " >&6; } 9098if ${ac_cv_path_MSGMERGE+:} false; then : 9099 $as_echo_n "(cached) " >&6 9100else 9101 case "$MSGMERGE" in 9102 [\\/]* | ?:[\\/]*) 9103 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 9104 ;; 9105 *) 9106 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 9107 for ac_dir in $PATH; do 9108 IFS="$ac_save_IFS" 9109 test -z "$ac_dir" && ac_dir=. 9110 for ac_exec_ext in '' $ac_executable_extensions; do 9111 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 9112 echo "$as_me: trying $ac_dir/$ac_word..." >&5 9113 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 9114 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 9115 break 2 9116 fi 9117 fi 9118 done 9119 done 9120 IFS="$ac_save_IFS" 9121 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 9122 ;; 9123esac 9124fi 9125MSGMERGE="$ac_cv_path_MSGMERGE" 9126if test "$MSGMERGE" != ":"; then 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 9128$as_echo "$MSGMERGE" >&6; } 9129else 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9131$as_echo "no" >&6; } 9132fi 9133 9134 9135 test -n "$localedir" || localedir='${datadir}/locale' 9136 9137 9138 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 9139 9140 9141 ac_config_commands="$ac_config_commands po-directories" 9142 9143 9144 9145if test "$try_gettext" = yes; then 9146 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 9148$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } 9149if ${ac_cv_gnu_library_2+:} false; then : 9150 $as_echo_n "(cached) " >&6 9151else 9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9153/* end confdefs.h. */ 9154 9155#include <features.h> 9156#ifdef __GNU_LIBRARY__ 9157 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 9158 Lucky GNU user 9159 #endif 9160#endif 9161 9162_ACEOF 9163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9164 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 9165 ac_cv_gnu_library_2=yes 9166else 9167 ac_cv_gnu_library_2=no 9168fi 9169rm -f conftest* 9170 9171 9172 9173fi 9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 9175$as_echo "$ac_cv_gnu_library_2" >&6; } 9176 9177 GLIBC2="$ac_cv_gnu_library_2" 9178 9179 9180 9181 9182 CFLAG_VISIBILITY= 9183 HAVE_VISIBILITY=0 9184 if test -n "$GCC"; then 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 9186$as_echo_n "checking whether the -Werror option is usable... " >&6; } 9187 if ${gl_cv_cc_vis_werror+:} false; then : 9188 $as_echo_n "(cached) " >&6 9189else 9190 9191 gl_save_CFLAGS="$CFLAGS" 9192 CFLAGS="$CFLAGS -Werror" 9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195 9196int 9197main () 9198{ 9199 9200 ; 9201 return 0; 9202} 9203_ACEOF 9204if ac_fn_c_try_compile "$LINENO"; then : 9205 gl_cv_cc_vis_werror=yes 9206else 9207 gl_cv_cc_vis_werror=no 9208fi 9209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9210 CFLAGS="$gl_save_CFLAGS" 9211fi 9212 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 9214$as_echo "$gl_cv_cc_vis_werror" >&6; } 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 9216$as_echo_n "checking for simple visibility declarations... " >&6; } 9217 if ${gl_cv_cc_visibility+:} false; then : 9218 $as_echo_n "(cached) " >&6 9219else 9220 9221 gl_save_CFLAGS="$CFLAGS" 9222 CFLAGS="$CFLAGS -fvisibility=hidden" 9223 if test $gl_cv_cc_vis_werror = yes; then 9224 CFLAGS="$CFLAGS -Werror" 9225 fi 9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9227/* end confdefs.h. */ 9228extern __attribute__((__visibility__("hidden"))) int hiddenvar; 9229 extern __attribute__((__visibility__("default"))) int exportedvar; 9230 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 9231 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 9232 void dummyfunc (void) {} 9233 9234int 9235main () 9236{ 9237 9238 ; 9239 return 0; 9240} 9241_ACEOF 9242if ac_fn_c_try_compile "$LINENO"; then : 9243 gl_cv_cc_visibility=yes 9244else 9245 gl_cv_cc_visibility=no 9246fi 9247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9248 CFLAGS="$gl_save_CFLAGS" 9249fi 9250 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 9252$as_echo "$gl_cv_cc_visibility" >&6; } 9253 if test $gl_cv_cc_visibility = yes; then 9254 CFLAG_VISIBILITY="-fvisibility=hidden" 9255 HAVE_VISIBILITY=1 9256 fi 9257 fi 9258 9259 9260 9261cat >>confdefs.h <<_ACEOF 9262#define HAVE_VISIBILITY $HAVE_VISIBILITY 9263_ACEOF 9264 9265 9266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 9267$as_echo_n "checking for inline... " >&6; } 9268if ${ac_cv_c_inline+:} false; then : 9269 $as_echo_n "(cached) " >&6 9270else 9271 ac_cv_c_inline=no 9272for ac_kw in inline __inline__ __inline; do 9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274/* end confdefs.h. */ 9275#ifndef __cplusplus 9276typedef int foo_t; 9277static $ac_kw foo_t static_foo () {return 0; } 9278$ac_kw foo_t foo () {return 0; } 9279#endif 9280 9281_ACEOF 9282if ac_fn_c_try_compile "$LINENO"; then : 9283 ac_cv_c_inline=$ac_kw 9284fi 9285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9286 test "$ac_cv_c_inline" != no && break 9287done 9288 9289fi 9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 9291$as_echo "$ac_cv_c_inline" >&6; } 9292 9293case $ac_cv_c_inline in 9294 inline | yes) ;; 9295 *) 9296 case $ac_cv_c_inline in 9297 no) ac_val=;; 9298 *) ac_val=$ac_cv_c_inline;; 9299 esac 9300 cat >>confdefs.h <<_ACEOF 9301#ifndef __cplusplus 9302#define inline $ac_val 9303#endif 9304_ACEOF 9305 ;; 9306esac 9307 9308ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 9309if test "x$ac_cv_type_size_t" = xyes; then : 9310 9311else 9312 9313cat >>confdefs.h <<_ACEOF 9314#define size_t unsigned int 9315_ACEOF 9316 9317fi 9318 9319 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 9321$as_echo_n "checking for stdint.h... " >&6; } 9322if ${gl_cv_header_stdint_h+:} false; then : 9323 $as_echo_n "(cached) " >&6 9324else 9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9326/* end confdefs.h. */ 9327#include <sys/types.h> 9328 #include <stdint.h> 9329int 9330main () 9331{ 9332uintmax_t i = (uintmax_t) -1; return !i; 9333 ; 9334 return 0; 9335} 9336_ACEOF 9337if ac_fn_c_try_compile "$LINENO"; then : 9338 gl_cv_header_stdint_h=yes 9339else 9340 gl_cv_header_stdint_h=no 9341fi 9342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9343fi 9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 9345$as_echo "$gl_cv_header_stdint_h" >&6; } 9346 if test $gl_cv_header_stdint_h = yes; then 9347 9348cat >>confdefs.h <<_ACEOF 9349#define HAVE_STDINT_H_WITH_UINTMAX 1 9350_ACEOF 9351 9352 fi 9353 9354# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9355# for constant arguments. Useless! 9356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 9357$as_echo_n "checking for working alloca.h... " >&6; } 9358if ${ac_cv_working_alloca_h+:} false; then : 9359 $as_echo_n "(cached) " >&6 9360else 9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9362/* end confdefs.h. */ 9363#include <alloca.h> 9364int 9365main () 9366{ 9367char *p = (char *) alloca (2 * sizeof (int)); 9368 if (p) return 0; 9369 ; 9370 return 0; 9371} 9372_ACEOF 9373if ac_fn_c_try_link "$LINENO"; then : 9374 ac_cv_working_alloca_h=yes 9375else 9376 ac_cv_working_alloca_h=no 9377fi 9378rm -f core conftest.err conftest.$ac_objext \ 9379 conftest$ac_exeext conftest.$ac_ext 9380fi 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 9382$as_echo "$ac_cv_working_alloca_h" >&6; } 9383if test $ac_cv_working_alloca_h = yes; then 9384 9385$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 9386 9387fi 9388 9389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 9390$as_echo_n "checking for alloca... " >&6; } 9391if ${ac_cv_func_alloca_works+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9395/* end confdefs.h. */ 9396#ifdef __GNUC__ 9397# define alloca __builtin_alloca 9398#else 9399# ifdef _MSC_VER 9400# include <malloc.h> 9401# define alloca _alloca 9402# else 9403# ifdef HAVE_ALLOCA_H 9404# include <alloca.h> 9405# else 9406# ifdef _AIX 9407 #pragma alloca 9408# else 9409# ifndef alloca /* predefined by HP cc +Olibcalls */ 9410void *alloca (size_t); 9411# endif 9412# endif 9413# endif 9414# endif 9415#endif 9416 9417int 9418main () 9419{ 9420char *p = (char *) alloca (1); 9421 if (p) return 0; 9422 ; 9423 return 0; 9424} 9425_ACEOF 9426if ac_fn_c_try_link "$LINENO"; then : 9427 ac_cv_func_alloca_works=yes 9428else 9429 ac_cv_func_alloca_works=no 9430fi 9431rm -f core conftest.err conftest.$ac_objext \ 9432 conftest$ac_exeext conftest.$ac_ext 9433fi 9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 9435$as_echo "$ac_cv_func_alloca_works" >&6; } 9436 9437if test $ac_cv_func_alloca_works = yes; then 9438 9439$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 9440 9441else 9442 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 9443# that cause trouble. Some versions do not even contain alloca or 9444# contain a buggy version. If you still want to use their alloca, 9445# use ar to extract alloca.o from them instead of compiling alloca.c. 9446 9447ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 9448 9449$as_echo "#define C_ALLOCA 1" >>confdefs.h 9450 9451 9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 9453$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 9454if ${ac_cv_os_cray+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456else 9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9458/* end confdefs.h. */ 9459#if defined CRAY && ! defined CRAY2 9460webecray 9461#else 9462wenotbecray 9463#endif 9464 9465_ACEOF 9466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9467 $EGREP "webecray" >/dev/null 2>&1; then : 9468 ac_cv_os_cray=yes 9469else 9470 ac_cv_os_cray=no 9471fi 9472rm -f conftest* 9473 9474fi 9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 9476$as_echo "$ac_cv_os_cray" >&6; } 9477if test $ac_cv_os_cray = yes; then 9478 for ac_func in _getb67 GETB67 getb67; do 9479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9480ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9481if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9482 9483cat >>confdefs.h <<_ACEOF 9484#define CRAY_STACKSEG_END $ac_func 9485_ACEOF 9486 9487 break 9488fi 9489 9490 done 9491fi 9492 9493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 9494$as_echo_n "checking stack direction for C alloca... " >&6; } 9495if ${ac_cv_c_stack_direction+:} false; then : 9496 $as_echo_n "(cached) " >&6 9497else 9498 if test "$cross_compiling" = yes; then : 9499 ac_cv_c_stack_direction=0 9500else 9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9502/* end confdefs.h. */ 9503$ac_includes_default 9504int 9505find_stack_direction (int *addr, int depth) 9506{ 9507 int dir, dummy = 0; 9508 if (! addr) 9509 addr = &dummy; 9510 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 9511 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 9512 return dir + dummy; 9513} 9514 9515int 9516main (int argc, char **argv) 9517{ 9518 return find_stack_direction (0, argc + !argv + 20) < 0; 9519} 9520_ACEOF 9521if ac_fn_c_try_run "$LINENO"; then : 9522 ac_cv_c_stack_direction=1 9523else 9524 ac_cv_c_stack_direction=-1 9525fi 9526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9527 conftest.$ac_objext conftest.beam conftest.$ac_ext 9528fi 9529 9530fi 9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 9532$as_echo "$ac_cv_c_stack_direction" >&6; } 9533cat >>confdefs.h <<_ACEOF 9534#define STACK_DIRECTION $ac_cv_c_stack_direction 9535_ACEOF 9536 9537 9538fi 9539 9540 9541 9542 9543 for ac_header in $ac_header_list 9544do : 9545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9546ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9547" 9548if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9549 cat >>confdefs.h <<_ACEOF 9550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9551_ACEOF 9552 9553fi 9554 9555done 9556 9557 9558 9559 9560 9561 9562 9563 9564for ac_func in getpagesize 9565do : 9566 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 9567if test "x$ac_cv_func_getpagesize" = xyes; then : 9568 cat >>confdefs.h <<_ACEOF 9569#define HAVE_GETPAGESIZE 1 9570_ACEOF 9571 9572fi 9573done 9574 9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 9576$as_echo_n "checking for working mmap... " >&6; } 9577if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 9578 $as_echo_n "(cached) " >&6 9579else 9580 if test "$cross_compiling" = yes; then : 9581 ac_cv_func_mmap_fixed_mapped=no 9582else 9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9584/* end confdefs.h. */ 9585$ac_includes_default 9586/* malloc might have been renamed as rpl_malloc. */ 9587#undef malloc 9588 9589/* Thanks to Mike Haertel and Jim Avera for this test. 9590 Here is a matrix of mmap possibilities: 9591 mmap private not fixed 9592 mmap private fixed at somewhere currently unmapped 9593 mmap private fixed at somewhere already mapped 9594 mmap shared not fixed 9595 mmap shared fixed at somewhere currently unmapped 9596 mmap shared fixed at somewhere already mapped 9597 For private mappings, we should verify that changes cannot be read() 9598 back from the file, nor mmap's back from the file at a different 9599 address. (There have been systems where private was not correctly 9600 implemented like the infamous i386 svr4.0, and systems where the 9601 VM page cache was not coherent with the file system buffer cache 9602 like early versions of FreeBSD and possibly contemporary NetBSD.) 9603 For shared mappings, we should conversely verify that changes get 9604 propagated back to all the places they're supposed to be. 9605 9606 Grep wants private fixed already mapped. 9607 The main things grep needs to know about mmap are: 9608 * does it exist and is it safe to write into the mmap'd area 9609 * how to use it (BSD variants) */ 9610 9611#include <fcntl.h> 9612#include <sys/mman.h> 9613 9614#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 9615char *malloc (); 9616#endif 9617 9618/* This mess was copied from the GNU getpagesize.h. */ 9619#ifndef HAVE_GETPAGESIZE 9620# ifdef _SC_PAGESIZE 9621# define getpagesize() sysconf(_SC_PAGESIZE) 9622# else /* no _SC_PAGESIZE */ 9623# ifdef HAVE_SYS_PARAM_H 9624# include <sys/param.h> 9625# ifdef EXEC_PAGESIZE 9626# define getpagesize() EXEC_PAGESIZE 9627# else /* no EXEC_PAGESIZE */ 9628# ifdef NBPG 9629# define getpagesize() NBPG * CLSIZE 9630# ifndef CLSIZE 9631# define CLSIZE 1 9632# endif /* no CLSIZE */ 9633# else /* no NBPG */ 9634# ifdef NBPC 9635# define getpagesize() NBPC 9636# else /* no NBPC */ 9637# ifdef PAGESIZE 9638# define getpagesize() PAGESIZE 9639# endif /* PAGESIZE */ 9640# endif /* no NBPC */ 9641# endif /* no NBPG */ 9642# endif /* no EXEC_PAGESIZE */ 9643# else /* no HAVE_SYS_PARAM_H */ 9644# define getpagesize() 8192 /* punt totally */ 9645# endif /* no HAVE_SYS_PARAM_H */ 9646# endif /* no _SC_PAGESIZE */ 9647 9648#endif /* no HAVE_GETPAGESIZE */ 9649 9650int 9651main () 9652{ 9653 char *data, *data2, *data3; 9654 const char *cdata2; 9655 int i, pagesize; 9656 int fd, fd2; 9657 9658 pagesize = getpagesize (); 9659 9660 /* First, make a file with some known garbage in it. */ 9661 data = (char *) malloc (pagesize); 9662 if (!data) 9663 return 1; 9664 for (i = 0; i < pagesize; ++i) 9665 *(data + i) = rand (); 9666 umask (0); 9667 fd = creat ("conftest.mmap", 0600); 9668 if (fd < 0) 9669 return 2; 9670 if (write (fd, data, pagesize) != pagesize) 9671 return 3; 9672 close (fd); 9673 9674 /* Next, check that the tail of a page is zero-filled. File must have 9675 non-zero length, otherwise we risk SIGBUS for entire page. */ 9676 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 9677 if (fd2 < 0) 9678 return 4; 9679 cdata2 = ""; 9680 if (write (fd2, cdata2, 1) != 1) 9681 return 5; 9682 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 9683 if (data2 == MAP_FAILED) 9684 return 6; 9685 for (i = 0; i < pagesize; ++i) 9686 if (*(data2 + i)) 9687 return 7; 9688 close (fd2); 9689 if (munmap (data2, pagesize)) 9690 return 8; 9691 9692 /* Next, try to mmap the file at a fixed address which already has 9693 something else allocated at it. If we can, also make sure that 9694 we see the same garbage. */ 9695 fd = open ("conftest.mmap", O_RDWR); 9696 if (fd < 0) 9697 return 9; 9698 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 9699 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 9700 return 10; 9701 for (i = 0; i < pagesize; ++i) 9702 if (*(data + i) != *(data2 + i)) 9703 return 11; 9704 9705 /* Finally, make sure that changes to the mapped area do not 9706 percolate back to the file as seen by read(). (This is a bug on 9707 some variants of i386 svr4.0.) */ 9708 for (i = 0; i < pagesize; ++i) 9709 *(data2 + i) = *(data2 + i) + 1; 9710 data3 = (char *) malloc (pagesize); 9711 if (!data3) 9712 return 12; 9713 if (read (fd, data3, pagesize) != pagesize) 9714 return 13; 9715 for (i = 0; i < pagesize; ++i) 9716 if (*(data + i) != *(data3 + i)) 9717 return 14; 9718 close (fd); 9719 return 0; 9720} 9721_ACEOF 9722if ac_fn_c_try_run "$LINENO"; then : 9723 ac_cv_func_mmap_fixed_mapped=yes 9724else 9725 ac_cv_func_mmap_fixed_mapped=no 9726fi 9727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9728 conftest.$ac_objext conftest.beam conftest.$ac_ext 9729fi 9730 9731fi 9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 9733$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 9734if test $ac_cv_func_mmap_fixed_mapped = yes; then 9735 9736$as_echo "#define HAVE_MMAP 1" >>confdefs.h 9737 9738fi 9739rm -f conftest.mmap conftest.txt 9740 9741 9742 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 9744$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 9745if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 9749 gt_cv_int_divbyzero_sigfpe= 9750 case "$host_os" in 9751 macos* | darwin[6-9]* | darwin[1-9][0-9]*) 9752 # On Mac OS X 10.2 or newer, just assume the same as when cross- 9753 # compiling. If we were to perform the real test, 1 Crash Report 9754 # dialog window would pop up. 9755 case "$host_cpu" in 9756 i[34567]86 | x86_64) 9757 gt_cv_int_divbyzero_sigfpe="guessing yes" ;; 9758 esac 9759 ;; 9760 esac 9761 if test -z "$gt_cv_int_divbyzero_sigfpe"; then 9762 if test "$cross_compiling" = yes; then : 9763 9764 # Guess based on the CPU. 9765 case "$host_cpu" in 9766 alpha* | i[34567]86 | x86_64 | m68k | s390*) 9767 gt_cv_int_divbyzero_sigfpe="guessing yes";; 9768 *) 9769 gt_cv_int_divbyzero_sigfpe="guessing no";; 9770 esac 9771 9772else 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775 9776#include <stdlib.h> 9777#include <signal.h> 9778 9779static void 9780sigfpe_handler (int sig) 9781{ 9782 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 9783 exit (sig != SIGFPE); 9784} 9785 9786int x = 1; 9787int y = 0; 9788int z; 9789int nan; 9790 9791int main () 9792{ 9793 signal (SIGFPE, sigfpe_handler); 9794/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 9795#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 9796 signal (SIGTRAP, sigfpe_handler); 9797#endif 9798/* Linux/SPARC yields signal SIGILL. */ 9799#if defined (__sparc__) && defined (__linux__) 9800 signal (SIGILL, sigfpe_handler); 9801#endif 9802 9803 z = x / y; 9804 nan = y / y; 9805 exit (2); 9806} 9807 9808_ACEOF 9809if ac_fn_c_try_run "$LINENO"; then : 9810 gt_cv_int_divbyzero_sigfpe=yes 9811else 9812 gt_cv_int_divbyzero_sigfpe=no 9813fi 9814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9815 conftest.$ac_objext conftest.beam conftest.$ac_ext 9816fi 9817 9818 fi 9819 9820fi 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 9822$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 9823 case "$gt_cv_int_divbyzero_sigfpe" in 9824 *yes) value=1;; 9825 *) value=0;; 9826 esac 9827 9828cat >>confdefs.h <<_ACEOF 9829#define INTDIV0_RAISES_SIGFPE $value 9830_ACEOF 9831 9832 9833 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 9835$as_echo_n "checking for inttypes.h... " >&6; } 9836if ${gl_cv_header_inttypes_h+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840/* end confdefs.h. */ 9841 9842#include <sys/types.h> 9843#include <inttypes.h> 9844 9845int 9846main () 9847{ 9848uintmax_t i = (uintmax_t) -1; return !i; 9849 ; 9850 return 0; 9851} 9852_ACEOF 9853if ac_fn_c_try_compile "$LINENO"; then : 9854 gl_cv_header_inttypes_h=yes 9855else 9856 gl_cv_header_inttypes_h=no 9857fi 9858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9859fi 9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 9861$as_echo "$gl_cv_header_inttypes_h" >&6; } 9862 if test $gl_cv_header_inttypes_h = yes; then 9863 9864cat >>confdefs.h <<_ACEOF 9865#define HAVE_INTTYPES_H_WITH_UINTMAX 1 9866_ACEOF 9867 9868 fi 9869 9870 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 9872$as_echo_n "checking for unsigned long long int... " >&6; } 9873if ${ac_cv_type_unsigned_long_long_int+:} false; then : 9874 $as_echo_n "(cached) " >&6 9875else 9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9877/* end confdefs.h. */ 9878unsigned long long int ull = 18446744073709551615ULL; 9879 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1 9880 ? 1 : -1)]; 9881 int i = 63; 9882int 9883main () 9884{ 9885unsigned long long int ullmax = 18446744073709551615ull; 9886 return (ull << 63 | ull >> 63 | ull << i | ull >> i 9887 | ullmax / ull | ullmax % ull); 9888 ; 9889 return 0; 9890} 9891_ACEOF 9892if ac_fn_c_try_link "$LINENO"; then : 9893 ac_cv_type_unsigned_long_long_int=yes 9894else 9895 ac_cv_type_unsigned_long_long_int=no 9896fi 9897rm -f core conftest.err conftest.$ac_objext \ 9898 conftest$ac_exeext conftest.$ac_ext 9899fi 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 9901$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 9902 if test $ac_cv_type_unsigned_long_long_int = yes; then 9903 9904$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 9905 9906 fi 9907 9908 9909 9910 9911 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 9912 9913 test $ac_cv_type_unsigned_long_long_int = yes \ 9914 && ac_type='unsigned long long' \ 9915 || ac_type='unsigned long' 9916 9917cat >>confdefs.h <<_ACEOF 9918#define uintmax_t $ac_type 9919_ACEOF 9920 9921 else 9922 9923$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 9924 9925 fi 9926 9927 9928 for ac_header in inttypes.h 9929do : 9930 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 9931if test "x$ac_cv_header_inttypes_h" = xyes; then : 9932 cat >>confdefs.h <<_ACEOF 9933#define HAVE_INTTYPES_H 1 9934_ACEOF 9935 9936fi 9937 9938done 9939 9940 if test $ac_cv_header_inttypes_h = yes; then 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 9942$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 9943if ${gt_cv_inttypes_pri_broken+:} false; then : 9944 $as_echo_n "(cached) " >&6 9945else 9946 9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948/* end confdefs.h. */ 9949 9950#include <inttypes.h> 9951#ifdef PRId32 9952char *p = PRId32; 9953#endif 9954 9955int 9956main () 9957{ 9958 9959 ; 9960 return 0; 9961} 9962_ACEOF 9963if ac_fn_c_try_compile "$LINENO"; then : 9964 gt_cv_inttypes_pri_broken=no 9965else 9966 gt_cv_inttypes_pri_broken=yes 9967fi 9968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9969 9970fi 9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 9972$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 9973 fi 9974 if test "$gt_cv_inttypes_pri_broken" = yes; then 9975 9976cat >>confdefs.h <<_ACEOF 9977#define PRI_MACROS_BROKEN 1 9978_ACEOF 9979 9980 PRI_MACROS_BROKEN=1 9981 else 9982 PRI_MACROS_BROKEN=0 9983 fi 9984 9985 9986 9987 9988 9989 9990 9991 # Check whether --enable-threads was given. 9992if test "${enable_threads+set}" = set; then : 9993 enableval=$enable_threads; gl_use_threads=$enableval 9994else 9995 if test -n "$gl_use_threads_default"; then 9996 gl_use_threads="$gl_use_threads_default" 9997 else 9998 case "$host_os" in 9999 osf*) gl_use_threads=no ;; 10000 cygwin*) 10001 case `uname -r` in 10002 1.[0-5].*) gl_use_threads=no ;; 10003 *) gl_use_threads=yes ;; 10004 esac 10005 ;; 10006 *) gl_use_threads=yes ;; 10007 esac 10008 fi 10009 10010fi 10011 10012 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 10013 # For using <pthread.h>: 10014 case "$host_os" in 10015 osf*) 10016 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 10017 # groks <pthread.h>. cc also understands the flag -pthread, but 10018 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 10019 # 2. putting a flag into CPPFLAGS that has an effect on the linker 10020 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 10021 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 10022 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 10023 ;; 10024 esac 10025 # Some systems optimize for single-threaded programs by default, and 10026 # need special flags to disable these optimizations. For example, the 10027 # definition of 'errno' in <errno.h>. 10028 case "$host_os" in 10029 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 10030 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 10031 esac 10032 fi 10033 10034 10035 10036 10037 10038 if test "X$prefix" = "XNONE"; then 10039 acl_final_prefix="$ac_default_prefix" 10040 else 10041 acl_final_prefix="$prefix" 10042 fi 10043 if test "X$exec_prefix" = "XNONE"; then 10044 acl_final_exec_prefix='${prefix}' 10045 else 10046 acl_final_exec_prefix="$exec_prefix" 10047 fi 10048 acl_save_prefix="$prefix" 10049 prefix="$acl_final_prefix" 10050 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10051 prefix="$acl_save_prefix" 10052 10053 10054 10055# Check whether --with-gnu-ld was given. 10056if test "${with_gnu_ld+set}" = set; then : 10057 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10058else 10059 with_gnu_ld=no 10060fi 10061 10062# Prepare PATH_SEPARATOR. 10063# The user is always right. 10064if test "${PATH_SEPARATOR+set}" != set; then 10065 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 10066 # contains only /bin. Note that ksh looks also at the FPATH variable, 10067 # so we have to set that as well for the test. 10068 PATH_SEPARATOR=: 10069 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 10070 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 10071 || PATH_SEPARATOR=';' 10072 } 10073fi 10074 10075ac_prog=ld 10076if test "$GCC" = yes; then 10077 # Check if gcc -print-prog-name=ld gives a path. 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10079$as_echo_n "checking for ld used by $CC... " >&6; } 10080 case $host in 10081 *-*-mingw*) 10082 # gcc leaves a trailing carriage return which upsets mingw 10083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10084 *) 10085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10086 esac 10087 case $ac_prog in 10088 # Accept absolute paths. 10089 [\\/]* | ?:[\\/]*) 10090 re_direlt='/[^/][^/]*/\.\./' 10091 # Canonicalize the pathname of ld 10092 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 10093 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 10094 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10095 done 10096 test -z "$LD" && LD="$ac_prog" 10097 ;; 10098 "") 10099 # If it fails, then pretend we aren't using GCC. 10100 ac_prog=ld 10101 ;; 10102 *) 10103 # If it is relative, then search for the first ld in PATH. 10104 with_gnu_ld=unknown 10105 ;; 10106 esac 10107elif test "$with_gnu_ld" = yes; then 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10109$as_echo_n "checking for GNU ld... " >&6; } 10110else 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10112$as_echo_n "checking for non-GNU ld... " >&6; } 10113fi 10114if ${acl_cv_path_LD+:} false; then : 10115 $as_echo_n "(cached) " >&6 10116else 10117 if test -z "$LD"; then 10118 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10119 for ac_dir in $PATH; do 10120 IFS="$acl_save_ifs" 10121 test -z "$ac_dir" && ac_dir=. 10122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10123 acl_cv_path_LD="$ac_dir/$ac_prog" 10124 # Check to see if the program is GNU ld. I'd rather use --version, 10125 # but apparently some variants of GNU ld only accept -v. 10126 # Break only if it was the GNU/non-GNU ld that we prefer. 10127 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 10128 *GNU* | *'with BFD'*) 10129 test "$with_gnu_ld" != no && break 10130 ;; 10131 *) 10132 test "$with_gnu_ld" != yes && break 10133 ;; 10134 esac 10135 fi 10136 done 10137 IFS="$acl_save_ifs" 10138else 10139 acl_cv_path_LD="$LD" # Let the user override the test with a path. 10140fi 10141fi 10142 10143LD="$acl_cv_path_LD" 10144if test -n "$LD"; then 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10146$as_echo "$LD" >&6; } 10147else 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10149$as_echo "no" >&6; } 10150fi 10151test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 10152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10153$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10154if ${acl_cv_prog_gnu_ld+:} false; then : 10155 $as_echo_n "(cached) " >&6 10156else 10157 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10158case `$LD -v 2>&1 </dev/null` in 10159*GNU* | *'with BFD'*) 10160 acl_cv_prog_gnu_ld=yes 10161 ;; 10162*) 10163 acl_cv_prog_gnu_ld=no 10164 ;; 10165esac 10166fi 10167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 10168$as_echo "$acl_cv_prog_gnu_ld" >&6; } 10169with_gnu_ld=$acl_cv_prog_gnu_ld 10170 10171 10172 10173 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 10175$as_echo_n "checking for shared library run path origin... " >&6; } 10176if ${acl_cv_rpath+:} false; then : 10177 $as_echo_n "(cached) " >&6 10178else 10179 10180 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10181 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10182 . ./conftest.sh 10183 rm -f ./conftest.sh 10184 acl_cv_rpath=done 10185 10186fi 10187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 10188$as_echo "$acl_cv_rpath" >&6; } 10189 wl="$acl_cv_wl" 10190 acl_libext="$acl_cv_libext" 10191 acl_shlibext="$acl_cv_shlibext" 10192 acl_libname_spec="$acl_cv_libname_spec" 10193 acl_library_names_spec="$acl_cv_library_names_spec" 10194 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10195 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10196 acl_hardcode_direct="$acl_cv_hardcode_direct" 10197 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 10198 # Check whether --enable-rpath was given. 10199if test "${enable_rpath+set}" = set; then : 10200 enableval=$enable_rpath; : 10201else 10202 enable_rpath=yes 10203fi 10204 10205 10206 10207 10208 acl_libdirstem=lib 10209 acl_libdirstem2= 10210 case "$host_os" in 10211 solaris*) 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 10213$as_echo_n "checking for 64-bit host... " >&6; } 10214if ${gl_cv_solaris_64bit+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216else 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219 10220#ifdef _LP64 10221sixtyfour bits 10222#endif 10223 10224_ACEOF 10225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10226 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 10227 gl_cv_solaris_64bit=yes 10228else 10229 gl_cv_solaris_64bit=no 10230fi 10231rm -f conftest* 10232 10233 10234fi 10235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 10236$as_echo "$gl_cv_solaris_64bit" >&6; } 10237 if test $gl_cv_solaris_64bit = yes; then 10238 acl_libdirstem=lib/64 10239 case "$host_cpu" in 10240 sparc*) acl_libdirstem2=lib/sparcv9 ;; 10241 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 10242 esac 10243 fi 10244 ;; 10245 *) 10246 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 10247 if test -n "$searchpath"; then 10248 acl_save_IFS="${IFS= }"; IFS=":" 10249 for searchdir in $searchpath; do 10250 if test -d "$searchdir"; then 10251 case "$searchdir" in 10252 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 10253 */../ | */.. ) 10254 # Better ignore directories of this form. They are misleading. 10255 ;; 10256 *) searchdir=`cd "$searchdir" && pwd` 10257 case "$searchdir" in 10258 */lib64 ) acl_libdirstem=lib64 ;; 10259 esac ;; 10260 esac 10261 fi 10262 done 10263 IFS="$acl_save_IFS" 10264 fi 10265 ;; 10266 esac 10267 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 10268 10269 10270 10271 gl_threads_api=none 10272 LIBTHREAD= 10273 LTLIBTHREAD= 10274 LIBMULTITHREAD= 10275 LTLIBMULTITHREAD= 10276 if test "$gl_use_threads" != no; then 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 10278$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 10279if ${gl_cv_have_weak+:} false; then : 10280 $as_echo_n "(cached) " >&6 10281else 10282 gl_cv_have_weak=no 10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10284/* end confdefs.h. */ 10285extern void xyzzy (); 10286#pragma weak xyzzy 10287int 10288main () 10289{ 10290xyzzy(); 10291 ; 10292 return 0; 10293} 10294_ACEOF 10295if ac_fn_c_try_link "$LINENO"; then : 10296 gl_cv_have_weak=maybe 10297fi 10298rm -f core conftest.err conftest.$ac_objext \ 10299 conftest$ac_exeext conftest.$ac_ext 10300 if test $gl_cv_have_weak = maybe; then 10301 if test "$cross_compiling" = yes; then : 10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10303/* end confdefs.h. */ 10304#ifdef __ELF__ 10305 Extensible Linking Format 10306 #endif 10307 10308_ACEOF 10309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10310 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 10311 gl_cv_have_weak="guessing yes" 10312else 10313 gl_cv_have_weak="guessing no" 10314fi 10315rm -f conftest* 10316 10317 10318else 10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10320/* end confdefs.h. */ 10321 10322#include <stdio.h> 10323#pragma weak fputs 10324int main () 10325{ 10326 return (fputs == NULL); 10327} 10328_ACEOF 10329if ac_fn_c_try_run "$LINENO"; then : 10330 gl_cv_have_weak=yes 10331else 10332 gl_cv_have_weak=no 10333fi 10334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10335 conftest.$ac_objext conftest.beam conftest.$ac_ext 10336fi 10337 10338 fi 10339 10340fi 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 10342$as_echo "$gl_cv_have_weak" >&6; } 10343 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 10344 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 10345 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. 10346 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 10347if test "x$ac_cv_header_pthread_h" = xyes; then : 10348 gl_have_pthread_h=yes 10349else 10350 gl_have_pthread_h=no 10351fi 10352 10353 10354 if test "$gl_have_pthread_h" = yes; then 10355 # Other possible tests: 10356 # -lpthreads (FSU threads, PCthreads) 10357 # -lgthreads 10358 gl_have_pthread= 10359 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 10360 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 10361 # the second one only in libpthread, and lock.c needs it. 10362 # 10363 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 10364 # needs -pthread for some reason. See: 10365 # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html 10366 save_LIBS=$LIBS 10367 for gl_pthread in '' '-pthread'; do 10368 LIBS="$LIBS $gl_pthread" 10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371#include <pthread.h> 10372 pthread_mutex_t m; 10373 pthread_mutexattr_t ma; 10374 10375int 10376main () 10377{ 10378pthread_mutex_lock (&m); 10379 pthread_mutexattr_init (&ma); 10380 ; 10381 return 0; 10382} 10383_ACEOF 10384if ac_fn_c_try_link "$LINENO"; then : 10385 gl_have_pthread=yes 10386 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread 10387 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread 10388fi 10389rm -f core conftest.err conftest.$ac_objext \ 10390 conftest$ac_exeext conftest.$ac_ext 10391 LIBS=$save_LIBS 10392 test -n "$gl_have_pthread" && break 10393 done 10394 10395 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 10396 # since it is defined as a macro on OSF/1.) 10397 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then 10398 # The program links fine without libpthread. But it may actually 10399 # need to link with libpthread in order to create multiple threads. 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 10401$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 10402if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 10403 $as_echo_n "(cached) " >&6 10404else 10405 ac_check_lib_save_LIBS=$LIBS 10406LIBS="-lpthread $LIBS" 10407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409 10410/* Override any GCC internal prototype to avoid an error. 10411 Use char because int might match the return type of a GCC 10412 builtin and then its argument prototype would still apply. */ 10413#ifdef __cplusplus 10414extern "C" 10415#endif 10416char pthread_kill (); 10417int 10418main () 10419{ 10420return pthread_kill (); 10421 ; 10422 return 0; 10423} 10424_ACEOF 10425if ac_fn_c_try_link "$LINENO"; then : 10426 ac_cv_lib_pthread_pthread_kill=yes 10427else 10428 ac_cv_lib_pthread_pthread_kill=no 10429fi 10430rm -f core conftest.err conftest.$ac_objext \ 10431 conftest$ac_exeext conftest.$ac_ext 10432LIBS=$ac_check_lib_save_LIBS 10433fi 10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 10435$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 10436if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 10437 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 10438 # On Solaris and HP-UX, most pthread functions exist also in libc. 10439 # Therefore pthread_in_use() needs to actually try to create a 10440 # thread: pthread_create from libc will fail, whereas 10441 # pthread_create will actually create a thread. 10442 case "$host_os" in 10443 solaris* | hpux*) 10444 10445$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 10446 10447 esac 10448 10449fi 10450 10451 elif test -z "$gl_have_pthread"; then 10452 # Some library is needed. Try libpthread and libc_r. 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 10454$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 10455if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 10456 $as_echo_n "(cached) " >&6 10457else 10458 ac_check_lib_save_LIBS=$LIBS 10459LIBS="-lpthread $LIBS" 10460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10461/* end confdefs.h. */ 10462 10463/* Override any GCC internal prototype to avoid an error. 10464 Use char because int might match the return type of a GCC 10465 builtin and then its argument prototype would still apply. */ 10466#ifdef __cplusplus 10467extern "C" 10468#endif 10469char pthread_kill (); 10470int 10471main () 10472{ 10473return pthread_kill (); 10474 ; 10475 return 0; 10476} 10477_ACEOF 10478if ac_fn_c_try_link "$LINENO"; then : 10479 ac_cv_lib_pthread_pthread_kill=yes 10480else 10481 ac_cv_lib_pthread_pthread_kill=no 10482fi 10483rm -f core conftest.err conftest.$ac_objext \ 10484 conftest$ac_exeext conftest.$ac_ext 10485LIBS=$ac_check_lib_save_LIBS 10486fi 10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 10488$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 10489if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 10490 gl_have_pthread=yes 10491 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread 10492 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 10493fi 10494 10495 if test -z "$gl_have_pthread"; then 10496 # For FreeBSD 4. 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 10498$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 10499if ${ac_cv_lib_c_r_pthread_kill+:} false; then : 10500 $as_echo_n "(cached) " >&6 10501else 10502 ac_check_lib_save_LIBS=$LIBS 10503LIBS="-lc_r $LIBS" 10504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10505/* end confdefs.h. */ 10506 10507/* Override any GCC internal prototype to avoid an error. 10508 Use char because int might match the return type of a GCC 10509 builtin and then its argument prototype would still apply. */ 10510#ifdef __cplusplus 10511extern "C" 10512#endif 10513char pthread_kill (); 10514int 10515main () 10516{ 10517return pthread_kill (); 10518 ; 10519 return 0; 10520} 10521_ACEOF 10522if ac_fn_c_try_link "$LINENO"; then : 10523 ac_cv_lib_c_r_pthread_kill=yes 10524else 10525 ac_cv_lib_c_r_pthread_kill=no 10526fi 10527rm -f core conftest.err conftest.$ac_objext \ 10528 conftest$ac_exeext conftest.$ac_ext 10529LIBS=$ac_check_lib_save_LIBS 10530fi 10531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 10532$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 10533if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : 10534 gl_have_pthread=yes 10535 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r 10536 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r 10537fi 10538 10539 fi 10540 fi 10541 if test -n "$gl_have_pthread"; then 10542 gl_threads_api=posix 10543 10544$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h 10545 10546 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 10547 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 10548 10549$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 10550 10551 LIBTHREAD= 10552 LTLIBTHREAD= 10553 fi 10554 fi 10555 fi 10556 fi 10557 fi 10558 if test -z "$gl_have_pthread"; then 10559 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then 10560 gl_have_solaristhread= 10561 gl_save_LIBS="$LIBS" 10562 LIBS="$LIBS -lthread" 10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564/* end confdefs.h. */ 10565 10566#include <thread.h> 10567#include <synch.h> 10568 10569int 10570main () 10571{ 10572thr_self(); 10573 ; 10574 return 0; 10575} 10576_ACEOF 10577if ac_fn_c_try_link "$LINENO"; then : 10578 gl_have_solaristhread=yes 10579fi 10580rm -f core conftest.err conftest.$ac_objext \ 10581 conftest$ac_exeext conftest.$ac_ext 10582 LIBS="$gl_save_LIBS" 10583 if test -n "$gl_have_solaristhread"; then 10584 gl_threads_api=solaris 10585 LIBTHREAD=-lthread 10586 LTLIBTHREAD=-lthread 10587 LIBMULTITHREAD="$LIBTHREAD" 10588 LTLIBMULTITHREAD="$LTLIBTHREAD" 10589 10590$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h 10591 10592 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 10593 10594$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h 10595 10596 LIBTHREAD= 10597 LTLIBTHREAD= 10598 fi 10599 fi 10600 fi 10601 fi 10602 if test "$gl_use_threads" = pth; then 10603 gl_save_CPPFLAGS="$CPPFLAGS" 10604 10605 10606 10607 10608 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 10610$as_echo_n "checking how to link with libpth... " >&6; } 10611if ${ac_cv_libpth_libs+:} false; then : 10612 $as_echo_n "(cached) " >&6 10613else 10614 10615 10616 10617 10618 10619 10620 10621 10622 use_additional=yes 10623 10624 acl_save_prefix="$prefix" 10625 prefix="$acl_final_prefix" 10626 acl_save_exec_prefix="$exec_prefix" 10627 exec_prefix="$acl_final_exec_prefix" 10628 10629 eval additional_includedir=\"$includedir\" 10630 eval additional_libdir=\"$libdir\" 10631 10632 exec_prefix="$acl_save_exec_prefix" 10633 prefix="$acl_save_prefix" 10634 10635 10636# Check whether --with-libpth-prefix was given. 10637if test "${with_libpth_prefix+set}" = set; then : 10638 withval=$with_libpth_prefix; 10639 if test "X$withval" = "Xno"; then 10640 use_additional=no 10641 else 10642 if test "X$withval" = "X"; then 10643 10644 acl_save_prefix="$prefix" 10645 prefix="$acl_final_prefix" 10646 acl_save_exec_prefix="$exec_prefix" 10647 exec_prefix="$acl_final_exec_prefix" 10648 10649 eval additional_includedir=\"$includedir\" 10650 eval additional_libdir=\"$libdir\" 10651 10652 exec_prefix="$acl_save_exec_prefix" 10653 prefix="$acl_save_prefix" 10654 10655 else 10656 additional_includedir="$withval/include" 10657 additional_libdir="$withval/$acl_libdirstem" 10658 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 10659 && ! test -d "$withval/$acl_libdirstem"; then 10660 additional_libdir="$withval/$acl_libdirstem2" 10661 fi 10662 fi 10663 fi 10664 10665fi 10666 10667 LIBPTH= 10668 LTLIBPTH= 10669 INCPTH= 10670 LIBPTH_PREFIX= 10671 HAVE_LIBPTH= 10672 rpathdirs= 10673 ltrpathdirs= 10674 names_already_handled= 10675 names_next_round='pth ' 10676 while test -n "$names_next_round"; do 10677 names_this_round="$names_next_round" 10678 names_next_round= 10679 for name in $names_this_round; do 10680 already_handled= 10681 for n in $names_already_handled; do 10682 if test "$n" = "$name"; then 10683 already_handled=yes 10684 break 10685 fi 10686 done 10687 if test -z "$already_handled"; then 10688 names_already_handled="$names_already_handled $name" 10689 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 10690 eval value=\"\$HAVE_LIB$uppername\" 10691 if test -n "$value"; then 10692 if test "$value" = yes; then 10693 eval value=\"\$LIB$uppername\" 10694 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" 10695 eval value=\"\$LTLIB$uppername\" 10696 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" 10697 else 10698 : 10699 fi 10700 else 10701 found_dir= 10702 found_la= 10703 found_so= 10704 found_a= 10705 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 10706 if test -n "$acl_shlibext"; then 10707 shrext=".$acl_shlibext" # typically: shrext=.so 10708 else 10709 shrext= 10710 fi 10711 if test $use_additional = yes; then 10712 dir="$additional_libdir" 10713 if test -n "$acl_shlibext"; then 10714 if test -f "$dir/$libname$shrext"; then 10715 found_dir="$dir" 10716 found_so="$dir/$libname$shrext" 10717 else 10718 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10719 ver=`(cd "$dir" && \ 10720 for f in "$libname$shrext".*; do echo "$f"; done \ 10721 | sed -e "s,^$libname$shrext\\\\.,," \ 10722 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10723 | sed 1q ) 2>/dev/null` 10724 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 10725 found_dir="$dir" 10726 found_so="$dir/$libname$shrext.$ver" 10727 fi 10728 else 10729 eval library_names=\"$acl_library_names_spec\" 10730 for f in $library_names; do 10731 if test -f "$dir/$f"; then 10732 found_dir="$dir" 10733 found_so="$dir/$f" 10734 break 10735 fi 10736 done 10737 fi 10738 fi 10739 fi 10740 if test "X$found_dir" = "X"; then 10741 if test -f "$dir/$libname.$acl_libext"; then 10742 found_dir="$dir" 10743 found_a="$dir/$libname.$acl_libext" 10744 fi 10745 fi 10746 if test "X$found_dir" != "X"; then 10747 if test -f "$dir/$libname.la"; then 10748 found_la="$dir/$libname.la" 10749 fi 10750 fi 10751 fi 10752 if test "X$found_dir" = "X"; then 10753 for x in $LDFLAGS $LTLIBPTH; do 10754 10755 acl_save_prefix="$prefix" 10756 prefix="$acl_final_prefix" 10757 acl_save_exec_prefix="$exec_prefix" 10758 exec_prefix="$acl_final_exec_prefix" 10759 eval x=\"$x\" 10760 exec_prefix="$acl_save_exec_prefix" 10761 prefix="$acl_save_prefix" 10762 10763 case "$x" in 10764 -L*) 10765 dir=`echo "X$x" | sed -e 's/^X-L//'` 10766 if test -n "$acl_shlibext"; then 10767 if test -f "$dir/$libname$shrext"; then 10768 found_dir="$dir" 10769 found_so="$dir/$libname$shrext" 10770 else 10771 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10772 ver=`(cd "$dir" && \ 10773 for f in "$libname$shrext".*; do echo "$f"; done \ 10774 | sed -e "s,^$libname$shrext\\\\.,," \ 10775 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10776 | sed 1q ) 2>/dev/null` 10777 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 10778 found_dir="$dir" 10779 found_so="$dir/$libname$shrext.$ver" 10780 fi 10781 else 10782 eval library_names=\"$acl_library_names_spec\" 10783 for f in $library_names; do 10784 if test -f "$dir/$f"; then 10785 found_dir="$dir" 10786 found_so="$dir/$f" 10787 break 10788 fi 10789 done 10790 fi 10791 fi 10792 fi 10793 if test "X$found_dir" = "X"; then 10794 if test -f "$dir/$libname.$acl_libext"; then 10795 found_dir="$dir" 10796 found_a="$dir/$libname.$acl_libext" 10797 fi 10798 fi 10799 if test "X$found_dir" != "X"; then 10800 if test -f "$dir/$libname.la"; then 10801 found_la="$dir/$libname.la" 10802 fi 10803 fi 10804 ;; 10805 esac 10806 if test "X$found_dir" != "X"; then 10807 break 10808 fi 10809 done 10810 fi 10811 if test "X$found_dir" != "X"; then 10812 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" 10813 if test "X$found_so" != "X"; then 10814 if test "$enable_rpath" = no \ 10815 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 10816 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 10817 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 10818 else 10819 haveit= 10820 for x in $ltrpathdirs; do 10821 if test "X$x" = "X$found_dir"; then 10822 haveit=yes 10823 break 10824 fi 10825 done 10826 if test -z "$haveit"; then 10827 ltrpathdirs="$ltrpathdirs $found_dir" 10828 fi 10829 if test "$acl_hardcode_direct" = yes; then 10830 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 10831 else 10832 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 10833 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 10834 haveit= 10835 for x in $rpathdirs; do 10836 if test "X$x" = "X$found_dir"; then 10837 haveit=yes 10838 break 10839 fi 10840 done 10841 if test -z "$haveit"; then 10842 rpathdirs="$rpathdirs $found_dir" 10843 fi 10844 else 10845 haveit= 10846 for x in $LDFLAGS $LIBPTH; do 10847 10848 acl_save_prefix="$prefix" 10849 prefix="$acl_final_prefix" 10850 acl_save_exec_prefix="$exec_prefix" 10851 exec_prefix="$acl_final_exec_prefix" 10852 eval x=\"$x\" 10853 exec_prefix="$acl_save_exec_prefix" 10854 prefix="$acl_save_prefix" 10855 10856 if test "X$x" = "X-L$found_dir"; then 10857 haveit=yes 10858 break 10859 fi 10860 done 10861 if test -z "$haveit"; then 10862 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" 10863 fi 10864 if test "$acl_hardcode_minus_L" != no; then 10865 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 10866 else 10867 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 10868 fi 10869 fi 10870 fi 10871 fi 10872 else 10873 if test "X$found_a" != "X"; then 10874 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" 10875 else 10876 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" 10877 fi 10878 fi 10879 additional_includedir= 10880 case "$found_dir" in 10881 */$acl_libdirstem | */$acl_libdirstem/) 10882 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 10883 if test "$name" = 'pth'; then 10884 LIBPTH_PREFIX="$basedir" 10885 fi 10886 additional_includedir="$basedir/include" 10887 ;; 10888 */$acl_libdirstem2 | */$acl_libdirstem2/) 10889 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 10890 if test "$name" = 'pth'; then 10891 LIBPTH_PREFIX="$basedir" 10892 fi 10893 additional_includedir="$basedir/include" 10894 ;; 10895 esac 10896 if test "X$additional_includedir" != "X"; then 10897 if test "X$additional_includedir" != "X/usr/include"; then 10898 haveit= 10899 if test "X$additional_includedir" = "X/usr/local/include"; then 10900 if test -n "$GCC"; then 10901 case $host_os in 10902 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10903 esac 10904 fi 10905 fi 10906 if test -z "$haveit"; then 10907 for x in $CPPFLAGS $INCPTH; do 10908 10909 acl_save_prefix="$prefix" 10910 prefix="$acl_final_prefix" 10911 acl_save_exec_prefix="$exec_prefix" 10912 exec_prefix="$acl_final_exec_prefix" 10913 eval x=\"$x\" 10914 exec_prefix="$acl_save_exec_prefix" 10915 prefix="$acl_save_prefix" 10916 10917 if test "X$x" = "X-I$additional_includedir"; then 10918 haveit=yes 10919 break 10920 fi 10921 done 10922 if test -z "$haveit"; then 10923 if test -d "$additional_includedir"; then 10924 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" 10925 fi 10926 fi 10927 fi 10928 fi 10929 fi 10930 if test -n "$found_la"; then 10931 save_libdir="$libdir" 10932 case "$found_la" in 10933 */* | *\\*) . "$found_la" ;; 10934 *) . "./$found_la" ;; 10935 esac 10936 libdir="$save_libdir" 10937 for dep in $dependency_libs; do 10938 case "$dep" in 10939 -L*) 10940 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10941 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 10942 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 10943 haveit= 10944 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 10945 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 10946 if test -n "$GCC"; then 10947 case $host_os in 10948 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 10949 esac 10950 fi 10951 fi 10952 if test -z "$haveit"; then 10953 haveit= 10954 for x in $LDFLAGS $LIBPTH; do 10955 10956 acl_save_prefix="$prefix" 10957 prefix="$acl_final_prefix" 10958 acl_save_exec_prefix="$exec_prefix" 10959 exec_prefix="$acl_final_exec_prefix" 10960 eval x=\"$x\" 10961 exec_prefix="$acl_save_exec_prefix" 10962 prefix="$acl_save_prefix" 10963 10964 if test "X$x" = "X-L$additional_libdir"; then 10965 haveit=yes 10966 break 10967 fi 10968 done 10969 if test -z "$haveit"; then 10970 if test -d "$additional_libdir"; then 10971 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" 10972 fi 10973 fi 10974 haveit= 10975 for x in $LDFLAGS $LTLIBPTH; do 10976 10977 acl_save_prefix="$prefix" 10978 prefix="$acl_final_prefix" 10979 acl_save_exec_prefix="$exec_prefix" 10980 exec_prefix="$acl_final_exec_prefix" 10981 eval x=\"$x\" 10982 exec_prefix="$acl_save_exec_prefix" 10983 prefix="$acl_save_prefix" 10984 10985 if test "X$x" = "X-L$additional_libdir"; then 10986 haveit=yes 10987 break 10988 fi 10989 done 10990 if test -z "$haveit"; then 10991 if test -d "$additional_libdir"; then 10992 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" 10993 fi 10994 fi 10995 fi 10996 fi 10997 ;; 10998 -R*) 10999 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11000 if test "$enable_rpath" != no; then 11001 haveit= 11002 for x in $rpathdirs; do 11003 if test "X$x" = "X$dir"; then 11004 haveit=yes 11005 break 11006 fi 11007 done 11008 if test -z "$haveit"; then 11009 rpathdirs="$rpathdirs $dir" 11010 fi 11011 haveit= 11012 for x in $ltrpathdirs; do 11013 if test "X$x" = "X$dir"; then 11014 haveit=yes 11015 break 11016 fi 11017 done 11018 if test -z "$haveit"; then 11019 ltrpathdirs="$ltrpathdirs $dir" 11020 fi 11021 fi 11022 ;; 11023 -l*) 11024 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11025 ;; 11026 *.la) 11027 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11028 ;; 11029 *) 11030 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" 11031 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" 11032 ;; 11033 esac 11034 done 11035 fi 11036 else 11037 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 11038 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" 11039 fi 11040 fi 11041 fi 11042 done 11043 done 11044 if test "X$rpathdirs" != "X"; then 11045 if test -n "$acl_hardcode_libdir_separator"; then 11046 alldirs= 11047 for found_dir in $rpathdirs; do 11048 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 11049 done 11050 acl_save_libdir="$libdir" 11051 libdir="$alldirs" 11052 eval flag=\"$acl_hardcode_libdir_flag_spec\" 11053 libdir="$acl_save_libdir" 11054 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 11055 else 11056 for found_dir in $rpathdirs; do 11057 acl_save_libdir="$libdir" 11058 libdir="$found_dir" 11059 eval flag=\"$acl_hardcode_libdir_flag_spec\" 11060 libdir="$acl_save_libdir" 11061 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 11062 done 11063 fi 11064 fi 11065 if test "X$ltrpathdirs" != "X"; then 11066 for found_dir in $ltrpathdirs; do 11067 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" 11068 done 11069 fi 11070 11071 11072 11073 11074 11075 11076 ac_cv_libpth_libs="$LIBPTH" 11077 ac_cv_libpth_ltlibs="$LTLIBPTH" 11078 ac_cv_libpth_cppflags="$INCPTH" 11079 ac_cv_libpth_prefix="$LIBPTH_PREFIX" 11080 11081fi 11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 11083$as_echo "$ac_cv_libpth_libs" >&6; } 11084 LIBPTH="$ac_cv_libpth_libs" 11085 LTLIBPTH="$ac_cv_libpth_ltlibs" 11086 INCPTH="$ac_cv_libpth_cppflags" 11087 LIBPTH_PREFIX="$ac_cv_libpth_prefix" 11088 11089 for element in $INCPTH; do 11090 haveit= 11091 for x in $CPPFLAGS; do 11092 11093 acl_save_prefix="$prefix" 11094 prefix="$acl_final_prefix" 11095 acl_save_exec_prefix="$exec_prefix" 11096 exec_prefix="$acl_final_exec_prefix" 11097 eval x=\"$x\" 11098 exec_prefix="$acl_save_exec_prefix" 11099 prefix="$acl_save_prefix" 11100 11101 if test "X$x" = "X$element"; then 11102 haveit=yes 11103 break 11104 fi 11105 done 11106 if test -z "$haveit"; then 11107 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11108 fi 11109 done 11110 11111 11112 11113 11114 HAVE_LIBPTH=yes 11115 11116 11117 11118 gl_have_pth= 11119 gl_save_LIBS="$LIBS" 11120 LIBS="$LIBS $LIBPTH" 11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11122/* end confdefs.h. */ 11123#include <pth.h> 11124int 11125main () 11126{ 11127pth_self(); 11128 ; 11129 return 0; 11130} 11131_ACEOF 11132if ac_fn_c_try_link "$LINENO"; then : 11133 gl_have_pth=yes 11134fi 11135rm -f core conftest.err conftest.$ac_objext \ 11136 conftest$ac_exeext conftest.$ac_ext 11137 LIBS="$gl_save_LIBS" 11138 if test -n "$gl_have_pth"; then 11139 gl_threads_api=pth 11140 LIBTHREAD="$LIBPTH" 11141 LTLIBTHREAD="$LTLIBPTH" 11142 LIBMULTITHREAD="$LIBTHREAD" 11143 LTLIBMULTITHREAD="$LTLIBTHREAD" 11144 11145$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h 11146 11147 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 11148 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 11149 11150$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h 11151 11152 LIBTHREAD= 11153 LTLIBTHREAD= 11154 fi 11155 fi 11156 else 11157 CPPFLAGS="$gl_save_CPPFLAGS" 11158 fi 11159 fi 11160 if test -z "$gl_have_pthread"; then 11161 case "$gl_use_threads" in 11162 yes | windows | win32) # The 'win32' is for backward compatibility. 11163 if { case "$host_os" in 11164 mingw*) true;; 11165 *) false;; 11166 esac 11167 }; then 11168 gl_threads_api=windows 11169 11170$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h 11171 11172 fi 11173 ;; 11174 esac 11175 fi 11176 fi 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 11178$as_echo_n "checking for multithread API to use... " >&6; } 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 11180$as_echo "$gl_threads_api" >&6; } 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 if test "$gl_threads_api" = posix; then 11193 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 11194 # pthread_rwlock_* functions. 11195 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 11196" 11197if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 11198 11199$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 11200 11201fi 11202 11203 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 11204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11205/* end confdefs.h. */ 11206 11207 #include <pthread.h> 11208int 11209main () 11210{ 11211 11212#if __FreeBSD__ == 4 11213error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 11214#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 11215 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 11216error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 11217#else 11218int x = (int)PTHREAD_MUTEX_RECURSIVE; 11219return !x; 11220#endif 11221 11222 ; 11223 return 0; 11224} 11225_ACEOF 11226if ac_fn_c_try_compile "$LINENO"; then : 11227 11228$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 11229 11230fi 11231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11232 fi 11233 : 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 use_additional=yes 11247 11248 acl_save_prefix="$prefix" 11249 prefix="$acl_final_prefix" 11250 acl_save_exec_prefix="$exec_prefix" 11251 exec_prefix="$acl_final_exec_prefix" 11252 11253 eval additional_includedir=\"$includedir\" 11254 eval additional_libdir=\"$libdir\" 11255 11256 exec_prefix="$acl_save_exec_prefix" 11257 prefix="$acl_save_prefix" 11258 11259 11260# Check whether --with-libiconv-prefix was given. 11261if test "${with_libiconv_prefix+set}" = set; then : 11262 withval=$with_libiconv_prefix; 11263 if test "X$withval" = "Xno"; then 11264 use_additional=no 11265 else 11266 if test "X$withval" = "X"; then 11267 11268 acl_save_prefix="$prefix" 11269 prefix="$acl_final_prefix" 11270 acl_save_exec_prefix="$exec_prefix" 11271 exec_prefix="$acl_final_exec_prefix" 11272 11273 eval additional_includedir=\"$includedir\" 11274 eval additional_libdir=\"$libdir\" 11275 11276 exec_prefix="$acl_save_exec_prefix" 11277 prefix="$acl_save_prefix" 11278 11279 else 11280 additional_includedir="$withval/include" 11281 additional_libdir="$withval/$acl_libdirstem" 11282 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 11283 && ! test -d "$withval/$acl_libdirstem"; then 11284 additional_libdir="$withval/$acl_libdirstem2" 11285 fi 11286 fi 11287 fi 11288 11289fi 11290 11291 LIBICONV= 11292 LTLIBICONV= 11293 INCICONV= 11294 LIBICONV_PREFIX= 11295 HAVE_LIBICONV= 11296 rpathdirs= 11297 ltrpathdirs= 11298 names_already_handled= 11299 names_next_round='iconv ' 11300 while test -n "$names_next_round"; do 11301 names_this_round="$names_next_round" 11302 names_next_round= 11303 for name in $names_this_round; do 11304 already_handled= 11305 for n in $names_already_handled; do 11306 if test "$n" = "$name"; then 11307 already_handled=yes 11308 break 11309 fi 11310 done 11311 if test -z "$already_handled"; then 11312 names_already_handled="$names_already_handled $name" 11313 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 11314 eval value=\"\$HAVE_LIB$uppername\" 11315 if test -n "$value"; then 11316 if test "$value" = yes; then 11317 eval value=\"\$LIB$uppername\" 11318 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 11319 eval value=\"\$LTLIB$uppername\" 11320 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 11321 else 11322 : 11323 fi 11324 else 11325 found_dir= 11326 found_la= 11327 found_so= 11328 found_a= 11329 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 11330 if test -n "$acl_shlibext"; then 11331 shrext=".$acl_shlibext" # typically: shrext=.so 11332 else 11333 shrext= 11334 fi 11335 if test $use_additional = yes; then 11336 dir="$additional_libdir" 11337 if test -n "$acl_shlibext"; then 11338 if test -f "$dir/$libname$shrext"; then 11339 found_dir="$dir" 11340 found_so="$dir/$libname$shrext" 11341 else 11342 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11343 ver=`(cd "$dir" && \ 11344 for f in "$libname$shrext".*; do echo "$f"; done \ 11345 | sed -e "s,^$libname$shrext\\\\.,," \ 11346 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11347 | sed 1q ) 2>/dev/null` 11348 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11349 found_dir="$dir" 11350 found_so="$dir/$libname$shrext.$ver" 11351 fi 11352 else 11353 eval library_names=\"$acl_library_names_spec\" 11354 for f in $library_names; do 11355 if test -f "$dir/$f"; then 11356 found_dir="$dir" 11357 found_so="$dir/$f" 11358 break 11359 fi 11360 done 11361 fi 11362 fi 11363 fi 11364 if test "X$found_dir" = "X"; then 11365 if test -f "$dir/$libname.$acl_libext"; then 11366 found_dir="$dir" 11367 found_a="$dir/$libname.$acl_libext" 11368 fi 11369 fi 11370 if test "X$found_dir" != "X"; then 11371 if test -f "$dir/$libname.la"; then 11372 found_la="$dir/$libname.la" 11373 fi 11374 fi 11375 fi 11376 if test "X$found_dir" = "X"; then 11377 for x in $LDFLAGS $LTLIBICONV; do 11378 11379 acl_save_prefix="$prefix" 11380 prefix="$acl_final_prefix" 11381 acl_save_exec_prefix="$exec_prefix" 11382 exec_prefix="$acl_final_exec_prefix" 11383 eval x=\"$x\" 11384 exec_prefix="$acl_save_exec_prefix" 11385 prefix="$acl_save_prefix" 11386 11387 case "$x" in 11388 -L*) 11389 dir=`echo "X$x" | sed -e 's/^X-L//'` 11390 if test -n "$acl_shlibext"; then 11391 if test -f "$dir/$libname$shrext"; then 11392 found_dir="$dir" 11393 found_so="$dir/$libname$shrext" 11394 else 11395 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11396 ver=`(cd "$dir" && \ 11397 for f in "$libname$shrext".*; do echo "$f"; done \ 11398 | sed -e "s,^$libname$shrext\\\\.,," \ 11399 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11400 | sed 1q ) 2>/dev/null` 11401 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11402 found_dir="$dir" 11403 found_so="$dir/$libname$shrext.$ver" 11404 fi 11405 else 11406 eval library_names=\"$acl_library_names_spec\" 11407 for f in $library_names; do 11408 if test -f "$dir/$f"; then 11409 found_dir="$dir" 11410 found_so="$dir/$f" 11411 break 11412 fi 11413 done 11414 fi 11415 fi 11416 fi 11417 if test "X$found_dir" = "X"; then 11418 if test -f "$dir/$libname.$acl_libext"; then 11419 found_dir="$dir" 11420 found_a="$dir/$libname.$acl_libext" 11421 fi 11422 fi 11423 if test "X$found_dir" != "X"; then 11424 if test -f "$dir/$libname.la"; then 11425 found_la="$dir/$libname.la" 11426 fi 11427 fi 11428 ;; 11429 esac 11430 if test "X$found_dir" != "X"; then 11431 break 11432 fi 11433 done 11434 fi 11435 if test "X$found_dir" != "X"; then 11436 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11437 if test "X$found_so" != "X"; then 11438 if test "$enable_rpath" = no \ 11439 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 11440 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 11441 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11442 else 11443 haveit= 11444 for x in $ltrpathdirs; do 11445 if test "X$x" = "X$found_dir"; then 11446 haveit=yes 11447 break 11448 fi 11449 done 11450 if test -z "$haveit"; then 11451 ltrpathdirs="$ltrpathdirs $found_dir" 11452 fi 11453 if test "$acl_hardcode_direct" = yes; then 11454 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11455 else 11456 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 11457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11458 haveit= 11459 for x in $rpathdirs; do 11460 if test "X$x" = "X$found_dir"; then 11461 haveit=yes 11462 break 11463 fi 11464 done 11465 if test -z "$haveit"; then 11466 rpathdirs="$rpathdirs $found_dir" 11467 fi 11468 else 11469 haveit= 11470 for x in $LDFLAGS $LIBICONV; do 11471 11472 acl_save_prefix="$prefix" 11473 prefix="$acl_final_prefix" 11474 acl_save_exec_prefix="$exec_prefix" 11475 exec_prefix="$acl_final_exec_prefix" 11476 eval x=\"$x\" 11477 exec_prefix="$acl_save_exec_prefix" 11478 prefix="$acl_save_prefix" 11479 11480 if test "X$x" = "X-L$found_dir"; then 11481 haveit=yes 11482 break 11483 fi 11484 done 11485 if test -z "$haveit"; then 11486 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11487 fi 11488 if test "$acl_hardcode_minus_L" != no; then 11489 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11490 else 11491 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11492 fi 11493 fi 11494 fi 11495 fi 11496 else 11497 if test "X$found_a" != "X"; then 11498 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11499 else 11500 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11501 fi 11502 fi 11503 additional_includedir= 11504 case "$found_dir" in 11505 */$acl_libdirstem | */$acl_libdirstem/) 11506 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 11507 if test "$name" = 'iconv'; then 11508 LIBICONV_PREFIX="$basedir" 11509 fi 11510 additional_includedir="$basedir/include" 11511 ;; 11512 */$acl_libdirstem2 | */$acl_libdirstem2/) 11513 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 11514 if test "$name" = 'iconv'; then 11515 LIBICONV_PREFIX="$basedir" 11516 fi 11517 additional_includedir="$basedir/include" 11518 ;; 11519 esac 11520 if test "X$additional_includedir" != "X"; then 11521 if test "X$additional_includedir" != "X/usr/include"; then 11522 haveit= 11523 if test "X$additional_includedir" = "X/usr/local/include"; then 11524 if test -n "$GCC"; then 11525 case $host_os in 11526 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11527 esac 11528 fi 11529 fi 11530 if test -z "$haveit"; then 11531 for x in $CPPFLAGS $INCICONV; do 11532 11533 acl_save_prefix="$prefix" 11534 prefix="$acl_final_prefix" 11535 acl_save_exec_prefix="$exec_prefix" 11536 exec_prefix="$acl_final_exec_prefix" 11537 eval x=\"$x\" 11538 exec_prefix="$acl_save_exec_prefix" 11539 prefix="$acl_save_prefix" 11540 11541 if test "X$x" = "X-I$additional_includedir"; then 11542 haveit=yes 11543 break 11544 fi 11545 done 11546 if test -z "$haveit"; then 11547 if test -d "$additional_includedir"; then 11548 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11549 fi 11550 fi 11551 fi 11552 fi 11553 fi 11554 if test -n "$found_la"; then 11555 save_libdir="$libdir" 11556 case "$found_la" in 11557 */* | *\\*) . "$found_la" ;; 11558 *) . "./$found_la" ;; 11559 esac 11560 libdir="$save_libdir" 11561 for dep in $dependency_libs; do 11562 case "$dep" in 11563 -L*) 11564 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11565 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 11566 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 11567 haveit= 11568 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 11569 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 11570 if test -n "$GCC"; then 11571 case $host_os in 11572 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11573 esac 11574 fi 11575 fi 11576 if test -z "$haveit"; then 11577 haveit= 11578 for x in $LDFLAGS $LIBICONV; do 11579 11580 acl_save_prefix="$prefix" 11581 prefix="$acl_final_prefix" 11582 acl_save_exec_prefix="$exec_prefix" 11583 exec_prefix="$acl_final_exec_prefix" 11584 eval x=\"$x\" 11585 exec_prefix="$acl_save_exec_prefix" 11586 prefix="$acl_save_prefix" 11587 11588 if test "X$x" = "X-L$additional_libdir"; then 11589 haveit=yes 11590 break 11591 fi 11592 done 11593 if test -z "$haveit"; then 11594 if test -d "$additional_libdir"; then 11595 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 11596 fi 11597 fi 11598 haveit= 11599 for x in $LDFLAGS $LTLIBICONV; do 11600 11601 acl_save_prefix="$prefix" 11602 prefix="$acl_final_prefix" 11603 acl_save_exec_prefix="$exec_prefix" 11604 exec_prefix="$acl_final_exec_prefix" 11605 eval x=\"$x\" 11606 exec_prefix="$acl_save_exec_prefix" 11607 prefix="$acl_save_prefix" 11608 11609 if test "X$x" = "X-L$additional_libdir"; then 11610 haveit=yes 11611 break 11612 fi 11613 done 11614 if test -z "$haveit"; then 11615 if test -d "$additional_libdir"; then 11616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 11617 fi 11618 fi 11619 fi 11620 fi 11621 ;; 11622 -R*) 11623 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11624 if test "$enable_rpath" != no; then 11625 haveit= 11626 for x in $rpathdirs; do 11627 if test "X$x" = "X$dir"; then 11628 haveit=yes 11629 break 11630 fi 11631 done 11632 if test -z "$haveit"; then 11633 rpathdirs="$rpathdirs $dir" 11634 fi 11635 haveit= 11636 for x in $ltrpathdirs; do 11637 if test "X$x" = "X$dir"; then 11638 haveit=yes 11639 break 11640 fi 11641 done 11642 if test -z "$haveit"; then 11643 ltrpathdirs="$ltrpathdirs $dir" 11644 fi 11645 fi 11646 ;; 11647 -l*) 11648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11649 ;; 11650 *.la) 11651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11652 ;; 11653 *) 11654 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 11655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 11656 ;; 11657 esac 11658 done 11659 fi 11660 else 11661 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11662 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 11663 fi 11664 fi 11665 fi 11666 done 11667 done 11668 if test "X$rpathdirs" != "X"; then 11669 if test -n "$acl_hardcode_libdir_separator"; then 11670 alldirs= 11671 for found_dir in $rpathdirs; do 11672 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 11673 done 11674 acl_save_libdir="$libdir" 11675 libdir="$alldirs" 11676 eval flag=\"$acl_hardcode_libdir_flag_spec\" 11677 libdir="$acl_save_libdir" 11678 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11679 else 11680 for found_dir in $rpathdirs; do 11681 acl_save_libdir="$libdir" 11682 libdir="$found_dir" 11683 eval flag=\"$acl_hardcode_libdir_flag_spec\" 11684 libdir="$acl_save_libdir" 11685 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11686 done 11687 fi 11688 fi 11689 if test "X$ltrpathdirs" != "X"; then 11690 for found_dir in $ltrpathdirs; do 11691 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 11692 done 11693 fi 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 am_save_CPPFLAGS="$CPPFLAGS" 11707 11708 for element in $INCICONV; do 11709 haveit= 11710 for x in $CPPFLAGS; do 11711 11712 acl_save_prefix="$prefix" 11713 prefix="$acl_final_prefix" 11714 acl_save_exec_prefix="$exec_prefix" 11715 exec_prefix="$acl_final_exec_prefix" 11716 eval x=\"$x\" 11717 exec_prefix="$acl_save_exec_prefix" 11718 prefix="$acl_save_prefix" 11719 11720 if test "X$x" = "X$element"; then 11721 haveit=yes 11722 break 11723 fi 11724 done 11725 if test -z "$haveit"; then 11726 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11727 fi 11728 done 11729 11730 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 11732$as_echo_n "checking for iconv... " >&6; } 11733if ${am_cv_func_iconv+:} false; then : 11734 $as_echo_n "(cached) " >&6 11735else 11736 11737 am_cv_func_iconv="no, consider installing GNU libiconv" 11738 am_cv_lib_iconv=no 11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11740/* end confdefs.h. */ 11741 11742#include <stdlib.h> 11743#include <iconv.h> 11744 11745int 11746main () 11747{ 11748iconv_t cd = iconv_open("",""); 11749 iconv(cd,NULL,NULL,NULL,NULL); 11750 iconv_close(cd); 11751 ; 11752 return 0; 11753} 11754_ACEOF 11755if ac_fn_c_try_link "$LINENO"; then : 11756 am_cv_func_iconv=yes 11757fi 11758rm -f core conftest.err conftest.$ac_objext \ 11759 conftest$ac_exeext conftest.$ac_ext 11760 if test "$am_cv_func_iconv" != yes; then 11761 am_save_LIBS="$LIBS" 11762 LIBS="$LIBS $LIBICONV" 11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11764/* end confdefs.h. */ 11765 11766#include <stdlib.h> 11767#include <iconv.h> 11768 11769int 11770main () 11771{ 11772iconv_t cd = iconv_open("",""); 11773 iconv(cd,NULL,NULL,NULL,NULL); 11774 iconv_close(cd); 11775 ; 11776 return 0; 11777} 11778_ACEOF 11779if ac_fn_c_try_link "$LINENO"; then : 11780 am_cv_lib_iconv=yes 11781 am_cv_func_iconv=yes 11782fi 11783rm -f core conftest.err conftest.$ac_objext \ 11784 conftest$ac_exeext conftest.$ac_ext 11785 LIBS="$am_save_LIBS" 11786 fi 11787 11788fi 11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 11790$as_echo "$am_cv_func_iconv" >&6; } 11791 if test "$am_cv_func_iconv" = yes; then 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 11793$as_echo_n "checking for working iconv... " >&6; } 11794if ${am_cv_func_iconv_works+:} false; then : 11795 $as_echo_n "(cached) " >&6 11796else 11797 11798 am_save_LIBS="$LIBS" 11799 if test $am_cv_lib_iconv = yes; then 11800 LIBS="$LIBS $LIBICONV" 11801 fi 11802 if test "$cross_compiling" = yes; then : 11803 11804 case "$host_os" in 11805 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 11806 *) am_cv_func_iconv_works="guessing yes" ;; 11807 esac 11808 11809else 11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11811/* end confdefs.h. */ 11812 11813#include <iconv.h> 11814#include <string.h> 11815int main () 11816{ 11817 int result = 0; 11818 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 11819 returns. */ 11820 { 11821 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 11822 if (cd_utf8_to_88591 != (iconv_t)(-1)) 11823 { 11824 static const char input[] = "\342\202\254"; /* EURO SIGN */ 11825 char buf[10]; 11826 const char *inptr = input; 11827 size_t inbytesleft = strlen (input); 11828 char *outptr = buf; 11829 size_t outbytesleft = sizeof (buf); 11830 size_t res = iconv (cd_utf8_to_88591, 11831 (char **) &inptr, &inbytesleft, 11832 &outptr, &outbytesleft); 11833 if (res == 0) 11834 result |= 1; 11835 iconv_close (cd_utf8_to_88591); 11836 } 11837 } 11838 /* Test against Solaris 10 bug: Failures are not distinguishable from 11839 successful returns. */ 11840 { 11841 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 11842 if (cd_ascii_to_88591 != (iconv_t)(-1)) 11843 { 11844 static const char input[] = "\263"; 11845 char buf[10]; 11846 const char *inptr = input; 11847 size_t inbytesleft = strlen (input); 11848 char *outptr = buf; 11849 size_t outbytesleft = sizeof (buf); 11850 size_t res = iconv (cd_ascii_to_88591, 11851 (char **) &inptr, &inbytesleft, 11852 &outptr, &outbytesleft); 11853 if (res == 0) 11854 result |= 2; 11855 iconv_close (cd_ascii_to_88591); 11856 } 11857 } 11858 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 11859 { 11860 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 11861 if (cd_88591_to_utf8 != (iconv_t)(-1)) 11862 { 11863 static const char input[] = "\304"; 11864 static char buf[2] = { (char)0xDE, (char)0xAD }; 11865 const char *inptr = input; 11866 size_t inbytesleft = 1; 11867 char *outptr = buf; 11868 size_t outbytesleft = 1; 11869 size_t res = iconv (cd_88591_to_utf8, 11870 (char **) &inptr, &inbytesleft, 11871 &outptr, &outbytesleft); 11872 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 11873 result |= 4; 11874 iconv_close (cd_88591_to_utf8); 11875 } 11876 } 11877#if 0 /* This bug could be worked around by the caller. */ 11878 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 11879 { 11880 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 11881 if (cd_88591_to_utf8 != (iconv_t)(-1)) 11882 { 11883 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 11884 char buf[50]; 11885 const char *inptr = input; 11886 size_t inbytesleft = strlen (input); 11887 char *outptr = buf; 11888 size_t outbytesleft = sizeof (buf); 11889 size_t res = iconv (cd_88591_to_utf8, 11890 (char **) &inptr, &inbytesleft, 11891 &outptr, &outbytesleft); 11892 if ((int)res > 0) 11893 result |= 8; 11894 iconv_close (cd_88591_to_utf8); 11895 } 11896 } 11897#endif 11898 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 11899 provided. */ 11900 if (/* Try standardized names. */ 11901 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 11902 /* Try IRIX, OSF/1 names. */ 11903 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 11904 /* Try AIX names. */ 11905 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 11906 /* Try HP-UX names. */ 11907 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 11908 result |= 16; 11909 return result; 11910} 11911_ACEOF 11912if ac_fn_c_try_run "$LINENO"; then : 11913 am_cv_func_iconv_works=yes 11914else 11915 am_cv_func_iconv_works=no 11916fi 11917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11918 conftest.$ac_objext conftest.beam conftest.$ac_ext 11919fi 11920 11921 LIBS="$am_save_LIBS" 11922 11923fi 11924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 11925$as_echo "$am_cv_func_iconv_works" >&6; } 11926 case "$am_cv_func_iconv_works" in 11927 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 11928 *) am_func_iconv=yes ;; 11929 esac 11930 else 11931 am_func_iconv=no am_cv_lib_iconv=no 11932 fi 11933 if test "$am_func_iconv" = yes; then 11934 11935$as_echo "#define HAVE_ICONV 1" >>confdefs.h 11936 11937 fi 11938 if test "$am_cv_lib_iconv" = yes; then 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 11940$as_echo_n "checking how to link with libiconv... " >&6; } 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 11942$as_echo "$LIBICONV" >&6; } 11943 else 11944 CPPFLAGS="$am_save_CPPFLAGS" 11945 LIBICONV= 11946 LTLIBICONV= 11947 fi 11948 11949 11950 11951 if test "$am_cv_func_iconv" = yes; then 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 11953$as_echo_n "checking for iconv declaration... " >&6; } 11954 if ${am_cv_proto_iconv+:} false; then : 11955 $as_echo_n "(cached) " >&6 11956else 11957 11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11959/* end confdefs.h. */ 11960 11961#include <stdlib.h> 11962#include <iconv.h> 11963extern 11964#ifdef __cplusplus 11965"C" 11966#endif 11967#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 11968size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 11969#else 11970size_t iconv(); 11971#endif 11972 11973int 11974main () 11975{ 11976 11977 ; 11978 return 0; 11979} 11980_ACEOF 11981if ac_fn_c_try_compile "$LINENO"; then : 11982 am_cv_proto_iconv_arg1="" 11983else 11984 am_cv_proto_iconv_arg1="const" 11985fi 11986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11987 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 11988fi 11989 11990 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 11992 $am_cv_proto_iconv" >&5 11993$as_echo " 11994 $am_cv_proto_iconv" >&6; } 11995 11996cat >>confdefs.h <<_ACEOF 11997#define ICONV_CONST $am_cv_proto_iconv_arg1 11998_ACEOF 11999 12000 12001 fi 12002 12003 12004 12005 12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12007/* end confdefs.h. */ 12008int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } 12009int 12010main () 12011{ 12012 12013 ; 12014 return 0; 12015} 12016_ACEOF 12017if ac_fn_c_try_link "$LINENO"; then : 12018 12019$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h 12020 12021fi 12022rm -f core conftest.err conftest.$ac_objext \ 12023 conftest$ac_exeext conftest.$ac_ext 12024 12025 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h 12026do : 12027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12028ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12030 cat >>confdefs.h <<_ACEOF 12031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12032_ACEOF 12033 12034fi 12035 12036done 12037 12038 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ 12039 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ 12040 argz_stringify argz_next __fsetlocking 12041do : 12042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12043ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12044if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12045 cat >>confdefs.h <<_ACEOF 12046#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12047_ACEOF 12048 12049fi 12050done 12051 12052 12053 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> 12054" 12055if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : 12056 ac_have_decl=1 12057else 12058 ac_have_decl=0 12059fi 12060 12061cat >>confdefs.h <<_ACEOF 12062#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl 12063_ACEOF 12064ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> 12065" 12066if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : 12067 ac_have_decl=1 12068else 12069 ac_have_decl=0 12070fi 12071 12072cat >>confdefs.h <<_ACEOF 12073#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl 12074_ACEOF 12075 12076 12077 12078 12079 for ac_prog in bison 12080do 12081 # Extract the first word of "$ac_prog", so it can be a program name with args. 12082set dummy $ac_prog; ac_word=$2 12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12084$as_echo_n "checking for $ac_word... " >&6; } 12085if ${ac_cv_prog_INTLBISON+:} false; then : 12086 $as_echo_n "(cached) " >&6 12087else 12088 if test -n "$INTLBISON"; then 12089 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 12090else 12091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12092for as_dir in $PATH 12093do 12094 IFS=$as_save_IFS 12095 test -z "$as_dir" && as_dir=. 12096 for ac_exec_ext in '' $ac_executable_extensions; do 12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12098 ac_cv_prog_INTLBISON="$ac_prog" 12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12100 break 2 12101 fi 12102done 12103 done 12104IFS=$as_save_IFS 12105 12106fi 12107fi 12108INTLBISON=$ac_cv_prog_INTLBISON 12109if test -n "$INTLBISON"; then 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 12111$as_echo "$INTLBISON" >&6; } 12112else 12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12114$as_echo "no" >&6; } 12115fi 12116 12117 12118 test -n "$INTLBISON" && break 12119done 12120 12121 if test -z "$INTLBISON"; then 12122 ac_verc_fail=yes 12123 else 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 12125$as_echo_n "checking version of bison... " >&6; } 12126 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 12127 case $ac_prog_version in 12128 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 12129 2.[7-9]* | [3-9].*) 12130 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 12131 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 12132 esac 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 12134$as_echo "$ac_prog_version" >&6; } 12135 fi 12136 if test $ac_verc_fail = yes; then 12137 INTLBISON=: 12138 fi 12139 12140 12141 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 12143$as_echo_n "checking for long long int... " >&6; } 12144if ${ac_cv_type_long_long_int+:} false; then : 12145 $as_echo_n "(cached) " >&6 12146else 12147 ac_cv_type_long_long_int=yes 12148 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 12149 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 12150 if test $ac_cv_type_long_long_int = yes; then 12151 if test "$cross_compiling" = yes; then : 12152 : 12153else 12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12155/* end confdefs.h. */ 12156#include <limits.h> 12157 #ifndef LLONG_MAX 12158 # define HALF \ 12159 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 12160 # define LLONG_MAX (HALF - 1 + HALF) 12161 #endif 12162int 12163main () 12164{ 12165long long int n = 1; 12166 int i; 12167 for (i = 0; ; i++) 12168 { 12169 long long int m = n << i; 12170 if (m >> i != n) 12171 return 1; 12172 if (LLONG_MAX / 2 < m) 12173 break; 12174 } 12175 return 0; 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180if ac_fn_c_try_run "$LINENO"; then : 12181 12182else 12183 ac_cv_type_long_long_int=no 12184fi 12185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12186 conftest.$ac_objext conftest.beam conftest.$ac_ext 12187fi 12188 12189 fi 12190 fi 12191fi 12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 12193$as_echo "$ac_cv_type_long_long_int" >&6; } 12194 if test $ac_cv_type_long_long_int = yes; then 12195 12196$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 12197 12198 fi 12199 12200 12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 12202$as_echo_n "checking for wchar_t... " >&6; } 12203if ${gt_cv_c_wchar_t+:} false; then : 12204 $as_echo_n "(cached) " >&6 12205else 12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12207/* end confdefs.h. */ 12208#include <stddef.h> 12209 wchar_t foo = (wchar_t)'\0'; 12210int 12211main () 12212{ 12213 12214 ; 12215 return 0; 12216} 12217_ACEOF 12218if ac_fn_c_try_compile "$LINENO"; then : 12219 gt_cv_c_wchar_t=yes 12220else 12221 gt_cv_c_wchar_t=no 12222fi 12223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12224fi 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 12226$as_echo "$gt_cv_c_wchar_t" >&6; } 12227 if test $gt_cv_c_wchar_t = yes; then 12228 12229$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 12230 12231 fi 12232 12233 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 12235$as_echo_n "checking for wint_t... " >&6; } 12236if ${gt_cv_c_wint_t+:} false; then : 12237 $as_echo_n "(cached) " >&6 12238else 12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12240/* end confdefs.h. */ 12241 12242/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 12243 <wchar.h>. 12244 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 12245 before <wchar.h>. */ 12246#include <stddef.h> 12247#include <stdio.h> 12248#include <time.h> 12249#include <wchar.h> 12250 wint_t foo = (wchar_t)'\0'; 12251int 12252main () 12253{ 12254 12255 ; 12256 return 0; 12257} 12258_ACEOF 12259if ac_fn_c_try_compile "$LINENO"; then : 12260 gt_cv_c_wint_t=yes 12261else 12262 gt_cv_c_wint_t=no 12263fi 12264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12265fi 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 12267$as_echo "$gt_cv_c_wint_t" >&6; } 12268 if test $gt_cv_c_wint_t = yes; then 12269 12270$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 12271 12272 fi 12273 12274 12275 12276 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 12278$as_echo_n "checking for intmax_t... " >&6; } 12279if ${gt_cv_c_intmax_t+:} false; then : 12280 $as_echo_n "(cached) " >&6 12281else 12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12283/* end confdefs.h. */ 12284 12285#include <stddef.h> 12286#include <stdlib.h> 12287#if HAVE_STDINT_H_WITH_UINTMAX 12288#include <stdint.h> 12289#endif 12290#if HAVE_INTTYPES_H_WITH_UINTMAX 12291#include <inttypes.h> 12292#endif 12293 12294int 12295main () 12296{ 12297intmax_t x = -1; 12298 return !x; 12299 ; 12300 return 0; 12301} 12302_ACEOF 12303if ac_fn_c_try_compile "$LINENO"; then : 12304 gt_cv_c_intmax_t=yes 12305else 12306 gt_cv_c_intmax_t=no 12307fi 12308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12309fi 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 12311$as_echo "$gt_cv_c_intmax_t" >&6; } 12312 if test $gt_cv_c_intmax_t = yes; then 12313 12314$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 12315 12316 fi 12317 12318 12319 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 12321$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 12322if ${gt_cv_func_printf_posix+:} false; then : 12323 $as_echo_n "(cached) " >&6 12324else 12325 12326 if test "$cross_compiling" = yes; then : 12327 12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12329/* end confdefs.h. */ 12330 12331#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 12332 notposix 12333#endif 12334 12335_ACEOF 12336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12337 $EGREP "notposix" >/dev/null 2>&1; then : 12338 gt_cv_func_printf_posix="guessing no" 12339else 12340 gt_cv_func_printf_posix="guessing yes" 12341fi 12342rm -f conftest* 12343 12344 12345else 12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12347/* end confdefs.h. */ 12348 12349#include <stdio.h> 12350#include <string.h> 12351/* The string "%2$d %1$d", with dollar characters protected from the shell's 12352 dollar expansion (possibly an autoconf bug). */ 12353static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 12354static char buf[100]; 12355int main () 12356{ 12357 sprintf (buf, format, 33, 55); 12358 return (strcmp (buf, "55 33") != 0); 12359} 12360_ACEOF 12361if ac_fn_c_try_run "$LINENO"; then : 12362 gt_cv_func_printf_posix=yes 12363else 12364 gt_cv_func_printf_posix=no 12365fi 12366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12367 conftest.$ac_objext conftest.beam conftest.$ac_ext 12368fi 12369 12370 12371fi 12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 12373$as_echo "$gt_cv_func_printf_posix" >&6; } 12374 case $gt_cv_func_printf_posix in 12375 *yes) 12376 12377$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 12378 12379 ;; 12380 esac 12381 12382 12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 12384$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } 12385if ${ac_cv_gnu_library_2_1+:} false; then : 12386 $as_echo_n "(cached) " >&6 12387else 12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12389/* end confdefs.h. */ 12390 12391#include <features.h> 12392#ifdef __GNU_LIBRARY__ 12393 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 12394 Lucky GNU user 12395 #endif 12396#endif 12397#ifdef __UCLIBC__ 12398 Lucky user 12399#endif 12400 12401_ACEOF 12402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12403 $EGREP "Lucky" >/dev/null 2>&1; then : 12404 ac_cv_gnu_library_2_1=yes 12405else 12406 ac_cv_gnu_library_2_1=no 12407fi 12408rm -f conftest* 12409 12410 12411 12412fi 12413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 12414$as_echo "$ac_cv_gnu_library_2_1" >&6; } 12415 12416 GLIBC21="$ac_cv_gnu_library_2_1" 12417 12418 12419 12420 for ac_header in stdint.h 12421do : 12422 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 12423if test "x$ac_cv_header_stdint_h" = xyes; then : 12424 cat >>confdefs.h <<_ACEOF 12425#define HAVE_STDINT_H 1 12426_ACEOF 12427 12428fi 12429 12430done 12431 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 12433$as_echo_n "checking for SIZE_MAX... " >&6; } 12434if ${gl_cv_size_max+:} false; then : 12435 $as_echo_n "(cached) " >&6 12436else 12437 12438 gl_cv_size_max= 12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12440/* end confdefs.h. */ 12441 12442#include <limits.h> 12443#if HAVE_STDINT_H 12444#include <stdint.h> 12445#endif 12446#ifdef SIZE_MAX 12447Found it 12448#endif 12449 12450_ACEOF 12451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12452 $EGREP "Found it" >/dev/null 2>&1; then : 12453 gl_cv_size_max=yes 12454fi 12455rm -f conftest* 12456 12457 if test -z "$gl_cv_size_max"; then 12458 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 12459#include <limits.h>"; then : 12460 12461else 12462 size_t_bits_minus_1= 12463fi 12464 12465 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 12466 12467else 12468 fits_in_uint= 12469fi 12470 12471 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 12472 if test $fits_in_uint = 1; then 12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12474/* end confdefs.h. */ 12475#include <stddef.h> 12476 extern size_t foo; 12477 extern unsigned long foo; 12478 12479int 12480main () 12481{ 12482 12483 ; 12484 return 0; 12485} 12486_ACEOF 12487if ac_fn_c_try_compile "$LINENO"; then : 12488 fits_in_uint=0 12489fi 12490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12491 fi 12492 if test $fits_in_uint = 1; then 12493 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 12494 else 12495 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 12496 fi 12497 else 12498 gl_cv_size_max='((size_t)~(size_t)0)' 12499 fi 12500 fi 12501 12502fi 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 12504$as_echo "$gl_cv_size_max" >&6; } 12505 if test "$gl_cv_size_max" != yes; then 12506 12507cat >>confdefs.h <<_ACEOF 12508#define SIZE_MAX $gl_cv_size_max 12509_ACEOF 12510 12511 fi 12512 12513 12514 12515 12516 for ac_header in stdint.h 12517do : 12518 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 12519if test "x$ac_cv_header_stdint_h" = xyes; then : 12520 cat >>confdefs.h <<_ACEOF 12521#define HAVE_STDINT_H 1 12522_ACEOF 12523 12524fi 12525 12526done 12527 12528 12529 12530 12531 12532 for ac_func in $ac_func_list 12533do : 12534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12535ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12536if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12537 cat >>confdefs.h <<_ACEOF 12538#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12539_ACEOF 12540 12541fi 12542done 12543 12544 12545 12546 12547 12548 12549 12550 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 12552$as_echo_n "checking for working fcntl.h... " >&6; } 12553if ${gl_cv_header_working_fcntl_h+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555else 12556 if test "$cross_compiling" = yes; then : 12557 gl_cv_header_working_fcntl_h=cross-compiling 12558else 12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12560/* end confdefs.h. */ 12561#include <sys/types.h> 12562 #include <sys/stat.h> 12563 #if HAVE_UNISTD_H 12564 # include <unistd.h> 12565 #else /* on Windows with MSVC */ 12566 # include <io.h> 12567 # include <stdlib.h> 12568 # defined sleep(n) _sleep ((n) * 1000) 12569 #endif 12570 #include <fcntl.h> 12571 #ifndef O_NOATIME 12572 #define O_NOATIME 0 12573 #endif 12574 #ifndef O_NOFOLLOW 12575 #define O_NOFOLLOW 0 12576 #endif 12577 static int const constants[] = 12578 { 12579 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 12580 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 12581 }; 12582 12583int 12584main () 12585{ 12586 12587 int result = !constants; 12588 #if HAVE_SYMLINK 12589 { 12590 static char const sym[] = "conftest.sym"; 12591 if (symlink ("/dev/null", sym) != 0) 12592 result |= 2; 12593 else 12594 { 12595 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 12596 if (fd >= 0) 12597 { 12598 close (fd); 12599 result |= 4; 12600 } 12601 } 12602 if (unlink (sym) != 0 || symlink (".", sym) != 0) 12603 result |= 2; 12604 else 12605 { 12606 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 12607 if (fd >= 0) 12608 { 12609 close (fd); 12610 result |= 4; 12611 } 12612 } 12613 unlink (sym); 12614 } 12615 #endif 12616 { 12617 static char const file[] = "confdefs.h"; 12618 int fd = open (file, O_RDONLY | O_NOATIME); 12619 if (fd < 0) 12620 result |= 8; 12621 else 12622 { 12623 struct stat st0; 12624 if (fstat (fd, &st0) != 0) 12625 result |= 16; 12626 else 12627 { 12628 char c; 12629 sleep (1); 12630 if (read (fd, &c, 1) != 1) 12631 result |= 24; 12632 else 12633 { 12634 if (close (fd) != 0) 12635 result |= 32; 12636 else 12637 { 12638 struct stat st1; 12639 if (stat (file, &st1) != 0) 12640 result |= 40; 12641 else 12642 if (st0.st_atime != st1.st_atime) 12643 result |= 64; 12644 } 12645 } 12646 } 12647 } 12648 } 12649 return result; 12650 ; 12651 return 0; 12652} 12653_ACEOF 12654if ac_fn_c_try_run "$LINENO"; then : 12655 gl_cv_header_working_fcntl_h=yes 12656else 12657 case $? in #( 12658 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 12659 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 12660 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 12661 *) gl_cv_header_working_fcntl_h='no';; 12662 esac 12663fi 12664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12665 conftest.$ac_objext conftest.beam conftest.$ac_ext 12666fi 12667 12668fi 12669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 12670$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 12671 12672 case $gl_cv_header_working_fcntl_h in #( 12673 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 12674 *) ac_val=1;; 12675 esac 12676 12677cat >>confdefs.h <<_ACEOF 12678#define HAVE_WORKING_O_NOATIME $ac_val 12679_ACEOF 12680 12681 12682 case $gl_cv_header_working_fcntl_h in #( 12683 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 12684 *) ac_val=1;; 12685 esac 12686 12687cat >>confdefs.h <<_ACEOF 12688#define HAVE_WORKING_O_NOFOLLOW $ac_val 12689_ACEOF 12690 12691 12692 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 12694$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 12695if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697else 12698 gt_save_LIBS="$LIBS" 12699 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12701/* end confdefs.h. */ 12702#include <CoreFoundation/CFPreferences.h> 12703int 12704main () 12705{ 12706CFPreferencesCopyAppValue(NULL, NULL) 12707 ; 12708 return 0; 12709} 12710_ACEOF 12711if ac_fn_c_try_link "$LINENO"; then : 12712 gt_cv_func_CFPreferencesCopyAppValue=yes 12713else 12714 gt_cv_func_CFPreferencesCopyAppValue=no 12715fi 12716rm -f core conftest.err conftest.$ac_objext \ 12717 conftest$ac_exeext conftest.$ac_ext 12718 LIBS="$gt_save_LIBS" 12719fi 12720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 12721$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 12722 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 12723 12724$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 12725 12726 fi 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 12728$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 12729if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731else 12732 gt_save_LIBS="$LIBS" 12733 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12735/* end confdefs.h. */ 12736#include <CoreFoundation/CFLocale.h> 12737int 12738main () 12739{ 12740CFLocaleCopyCurrent(); 12741 ; 12742 return 0; 12743} 12744_ACEOF 12745if ac_fn_c_try_link "$LINENO"; then : 12746 gt_cv_func_CFLocaleCopyCurrent=yes 12747else 12748 gt_cv_func_CFLocaleCopyCurrent=no 12749fi 12750rm -f core conftest.err conftest.$ac_objext \ 12751 conftest$ac_exeext conftest.$ac_ext 12752 LIBS="$gt_save_LIBS" 12753fi 12754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 12755$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 12756 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 12757 12758$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 12759 12760 fi 12761 INTL_MACOSX_LIBS= 12762 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 12763 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 12764 fi 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 case "$enable_silent_rules" in 12778 yes) INTL_DEFAULT_VERBOSITY=0;; 12779 no) INTL_DEFAULT_VERBOSITY=1;; 12780 *) INTL_DEFAULT_VERBOSITY=1;; 12781 esac 12782 12783 12784 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 12785if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 12786 12787else 12788 12789$as_echo "#define ptrdiff_t long" >>confdefs.h 12790 12791 12792fi 12793 12794 for ac_header in features.h stddef.h stdlib.h string.h 12795do : 12796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12797ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12798if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12799 cat >>confdefs.h <<_ACEOF 12800#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12801_ACEOF 12802 12803fi 12804 12805done 12806 12807 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ 12808 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb 12809do : 12810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12811ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12812if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12813 cat >>confdefs.h <<_ACEOF 12814#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12815_ACEOF 12816 12817fi 12818done 12819 12820 12821 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 12822" 12823if test "x$ac_cv_have_decl__snprintf" = xyes; then : 12824 ac_have_decl=1 12825else 12826 ac_have_decl=0 12827fi 12828 12829cat >>confdefs.h <<_ACEOF 12830#define HAVE_DECL__SNPRINTF $ac_have_decl 12831_ACEOF 12832ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> 12833" 12834if test "x$ac_cv_have_decl__snwprintf" = xyes; then : 12835 ac_have_decl=1 12836else 12837 ac_have_decl=0 12838fi 12839 12840cat >>confdefs.h <<_ACEOF 12841#define HAVE_DECL__SNWPRINTF $ac_have_decl 12842_ACEOF 12843 12844 12845 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> 12846" 12847if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 12848 ac_have_decl=1 12849else 12850 ac_have_decl=0 12851fi 12852 12853cat >>confdefs.h <<_ACEOF 12854#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 12855_ACEOF 12856 12857 12858 case $gt_cv_func_printf_posix in 12859 *yes) HAVE_POSIX_PRINTF=1 ;; 12860 *) HAVE_POSIX_PRINTF=0 ;; 12861 esac 12862 12863 if test "$ac_cv_func_asprintf" = yes; then 12864 HAVE_ASPRINTF=1 12865 else 12866 HAVE_ASPRINTF=0 12867 fi 12868 12869 if test "$ac_cv_func_snprintf" = yes; then 12870 HAVE_SNPRINTF=1 12871 else 12872 HAVE_SNPRINTF=0 12873 fi 12874 12875 if test "$ac_cv_func_newlocale" = yes; then 12876 HAVE_NEWLOCALE=1 12877 else 12878 HAVE_NEWLOCALE=0 12879 fi 12880 12881 if test "$ac_cv_func_wprintf" = yes; then 12882 HAVE_WPRINTF=1 12883 else 12884 HAVE_WPRINTF=0 12885 fi 12886 12887 12888 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 12890$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 12891if ${am_cv_langinfo_codeset+:} false; then : 12892 $as_echo_n "(cached) " >&6 12893else 12894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12895/* end confdefs.h. */ 12896#include <langinfo.h> 12897int 12898main () 12899{ 12900char* cs = nl_langinfo(CODESET); return !cs; 12901 ; 12902 return 0; 12903} 12904_ACEOF 12905if ac_fn_c_try_link "$LINENO"; then : 12906 am_cv_langinfo_codeset=yes 12907else 12908 am_cv_langinfo_codeset=no 12909fi 12910rm -f core conftest.err conftest.$ac_objext \ 12911 conftest$ac_exeext conftest.$ac_ext 12912 12913fi 12914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 12915$as_echo "$am_cv_langinfo_codeset" >&6; } 12916 if test $am_cv_langinfo_codeset = yes; then 12917 12918$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 12919 12920 fi 12921 12922 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 12924$as_echo_n "checking for LC_MESSAGES... " >&6; } 12925if ${gt_cv_val_LC_MESSAGES+:} false; then : 12926 $as_echo_n "(cached) " >&6 12927else 12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12929/* end confdefs.h. */ 12930#include <locale.h> 12931int 12932main () 12933{ 12934return LC_MESSAGES 12935 ; 12936 return 0; 12937} 12938_ACEOF 12939if ac_fn_c_try_link "$LINENO"; then : 12940 gt_cv_val_LC_MESSAGES=yes 12941else 12942 gt_cv_val_LC_MESSAGES=no 12943fi 12944rm -f core conftest.err conftest.$ac_objext \ 12945 conftest$ac_exeext conftest.$ac_ext 12946fi 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 12948$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 12949 if test $gt_cv_val_LC_MESSAGES = yes; then 12950 12951$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 12952 12953 fi 12954 12955 12956 if test "$enable_shared" = yes; then 12957 case "$host_os" in 12958 mingw* | cygwin*) is_woe32dll=yes ;; 12959 *) is_woe32dll=no ;; 12960 esac 12961 else 12962 is_woe32dll=no 12963 fi 12964 WOE32DLL=$is_woe32dll 12965 12966 12967 case "$host_os" in 12968 mingw* | cygwin*) is_woe32=yes ;; 12969 *) is_woe32=no ;; 12970 esac 12971 WOE32=$is_woe32 12972 12973 if test $WOE32 = yes; then 12974 if test -n "$ac_tool_prefix"; then 12975 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 12976set dummy ${ac_tool_prefix}windres; ac_word=$2 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12978$as_echo_n "checking for $ac_word... " >&6; } 12979if ${ac_cv_prog_WINDRES+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981else 12982 if test -n "$WINDRES"; then 12983 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 12984else 12985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12986for as_dir in $PATH 12987do 12988 IFS=$as_save_IFS 12989 test -z "$as_dir" && as_dir=. 12990 for ac_exec_ext in '' $ac_executable_extensions; do 12991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12992 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 12993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12994 break 2 12995 fi 12996done 12997 done 12998IFS=$as_save_IFS 12999 13000fi 13001fi 13002WINDRES=$ac_cv_prog_WINDRES 13003if test -n "$WINDRES"; then 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 13005$as_echo "$WINDRES" >&6; } 13006else 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13008$as_echo "no" >&6; } 13009fi 13010 13011 13012fi 13013if test -z "$ac_cv_prog_WINDRES"; then 13014 ac_ct_WINDRES=$WINDRES 13015 # Extract the first word of "windres", so it can be a program name with args. 13016set dummy windres; ac_word=$2 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13018$as_echo_n "checking for $ac_word... " >&6; } 13019if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 13020 $as_echo_n "(cached) " >&6 13021else 13022 if test -n "$ac_ct_WINDRES"; then 13023 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 13024else 13025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13026for as_dir in $PATH 13027do 13028 IFS=$as_save_IFS 13029 test -z "$as_dir" && as_dir=. 13030 for ac_exec_ext in '' $ac_executable_extensions; do 13031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13032 ac_cv_prog_ac_ct_WINDRES="windres" 13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13034 break 2 13035 fi 13036done 13037 done 13038IFS=$as_save_IFS 13039 13040fi 13041fi 13042ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 13043if test -n "$ac_ct_WINDRES"; then 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 13045$as_echo "$ac_ct_WINDRES" >&6; } 13046else 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13048$as_echo "no" >&6; } 13049fi 13050 13051 if test "x$ac_ct_WINDRES" = x; then 13052 WINDRES="" 13053 else 13054 case $cross_compiling:$ac_tool_warned in 13055yes:) 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13058ac_tool_warned=yes ;; 13059esac 13060 WINDRES=$ac_ct_WINDRES 13061 fi 13062else 13063 WINDRES="$ac_cv_prog_WINDRES" 13064fi 13065 13066 fi 13067 13068 case "$host_os" in 13069 hpux*) LTLIBC="" ;; 13070 *) LTLIBC="-lc" ;; 13071 esac 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 13100$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 13101if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 13102 $as_echo_n "(cached) " >&6 13103else 13104 gt_save_LIBS="$LIBS" 13105 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13107/* end confdefs.h. */ 13108#include <CoreFoundation/CFPreferences.h> 13109int 13110main () 13111{ 13112CFPreferencesCopyAppValue(NULL, NULL) 13113 ; 13114 return 0; 13115} 13116_ACEOF 13117if ac_fn_c_try_link "$LINENO"; then : 13118 gt_cv_func_CFPreferencesCopyAppValue=yes 13119else 13120 gt_cv_func_CFPreferencesCopyAppValue=no 13121fi 13122rm -f core conftest.err conftest.$ac_objext \ 13123 conftest$ac_exeext conftest.$ac_ext 13124 LIBS="$gt_save_LIBS" 13125fi 13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 13127$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 13128 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 13129 13130$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 13131 13132 fi 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 13134$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 13135if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137else 13138 gt_save_LIBS="$LIBS" 13139 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13141/* end confdefs.h. */ 13142#include <CoreFoundation/CFLocale.h> 13143int 13144main () 13145{ 13146CFLocaleCopyCurrent(); 13147 ; 13148 return 0; 13149} 13150_ACEOF 13151if ac_fn_c_try_link "$LINENO"; then : 13152 gt_cv_func_CFLocaleCopyCurrent=yes 13153else 13154 gt_cv_func_CFLocaleCopyCurrent=no 13155fi 13156rm -f core conftest.err conftest.$ac_objext \ 13157 conftest$ac_exeext conftest.$ac_ext 13158 LIBS="$gt_save_LIBS" 13159fi 13160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 13161$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 13162 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 13163 13164$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 13165 13166 fi 13167 INTL_MACOSX_LIBS= 13168 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 13169 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 13170 fi 13171 13172 13173 13174 13175 13176 13177 BUILD_INCLUDED_LIBINTL=no 13178 USE_INCLUDED_LIBINTL=no 13179 13180 LIBINTL= 13181 LTLIBINTL= 13182 POSUB= 13183 13184 case " $gt_needs " in 13185 *" need-formatstring-macros "*) gt_api_version=3 ;; 13186 *" need-ngettext "*) gt_api_version=2 ;; 13187 *) gt_api_version=1 ;; 13188 esac 13189 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 13190 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 13191 13192 if test "$USE_NLS" = "yes"; then 13193 gt_use_preinstalled_gnugettext=no 13194 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 13196$as_echo_n "checking whether included gettext is requested... " >&6; } 13197 13198# Check whether --with-included-gettext was given. 13199if test "${with_included_gettext+set}" = set; then : 13200 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 13201else 13202 nls_cv_force_use_gnu_gettext=no 13203fi 13204 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 13206$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 13207 13208 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 13209 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 13210 13211 13212 if test $gt_api_version -ge 3; then 13213 gt_revision_test_code=' 13214#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13215#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 13216#endif 13217typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 13218' 13219 else 13220 gt_revision_test_code= 13221 fi 13222 if test $gt_api_version -ge 2; then 13223 gt_expression_test_code=' + * ngettext ("", "", 0)' 13224 else 13225 gt_expression_test_code= 13226 fi 13227 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 13229$as_echo_n "checking for GNU gettext in libc... " >&6; } 13230if eval \${$gt_func_gnugettext_libc+:} false; then : 13231 $as_echo_n "(cached) " >&6 13232else 13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13234/* end confdefs.h. */ 13235 13236#include <libintl.h> 13237$gt_revision_test_code 13238extern int _nl_msg_cat_cntr; 13239extern int *_nl_domain_bindings; 13240 13241int 13242main () 13243{ 13244 13245bindtextdomain ("", ""); 13246return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 13247 13248 ; 13249 return 0; 13250} 13251_ACEOF 13252if ac_fn_c_try_link "$LINENO"; then : 13253 eval "$gt_func_gnugettext_libc=yes" 13254else 13255 eval "$gt_func_gnugettext_libc=no" 13256fi 13257rm -f core conftest.err conftest.$ac_objext \ 13258 conftest$ac_exeext conftest.$ac_ext 13259fi 13260eval ac_res=\$$gt_func_gnugettext_libc 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13262$as_echo "$ac_res" >&6; } 13263 13264 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 13265 13266 13267 13268 13269 13270 13271 13272 13273 use_additional=yes 13274 13275 acl_save_prefix="$prefix" 13276 prefix="$acl_final_prefix" 13277 acl_save_exec_prefix="$exec_prefix" 13278 exec_prefix="$acl_final_exec_prefix" 13279 13280 eval additional_includedir=\"$includedir\" 13281 eval additional_libdir=\"$libdir\" 13282 13283 exec_prefix="$acl_save_exec_prefix" 13284 prefix="$acl_save_prefix" 13285 13286 13287# Check whether --with-libintl-prefix was given. 13288if test "${with_libintl_prefix+set}" = set; then : 13289 withval=$with_libintl_prefix; 13290 if test "X$withval" = "Xno"; then 13291 use_additional=no 13292 else 13293 if test "X$withval" = "X"; then 13294 13295 acl_save_prefix="$prefix" 13296 prefix="$acl_final_prefix" 13297 acl_save_exec_prefix="$exec_prefix" 13298 exec_prefix="$acl_final_exec_prefix" 13299 13300 eval additional_includedir=\"$includedir\" 13301 eval additional_libdir=\"$libdir\" 13302 13303 exec_prefix="$acl_save_exec_prefix" 13304 prefix="$acl_save_prefix" 13305 13306 else 13307 additional_includedir="$withval/include" 13308 additional_libdir="$withval/$acl_libdirstem" 13309 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 13310 && ! test -d "$withval/$acl_libdirstem"; then 13311 additional_libdir="$withval/$acl_libdirstem2" 13312 fi 13313 fi 13314 fi 13315 13316fi 13317 13318 LIBINTL= 13319 LTLIBINTL= 13320 INCINTL= 13321 LIBINTL_PREFIX= 13322 HAVE_LIBINTL= 13323 rpathdirs= 13324 ltrpathdirs= 13325 names_already_handled= 13326 names_next_round='intl ' 13327 while test -n "$names_next_round"; do 13328 names_this_round="$names_next_round" 13329 names_next_round= 13330 for name in $names_this_round; do 13331 already_handled= 13332 for n in $names_already_handled; do 13333 if test "$n" = "$name"; then 13334 already_handled=yes 13335 break 13336 fi 13337 done 13338 if test -z "$already_handled"; then 13339 names_already_handled="$names_already_handled $name" 13340 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 13341 eval value=\"\$HAVE_LIB$uppername\" 13342 if test -n "$value"; then 13343 if test "$value" = yes; then 13344 eval value=\"\$LIB$uppername\" 13345 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 13346 eval value=\"\$LTLIB$uppername\" 13347 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 13348 else 13349 : 13350 fi 13351 else 13352 found_dir= 13353 found_la= 13354 found_so= 13355 found_a= 13356 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 13357 if test -n "$acl_shlibext"; then 13358 shrext=".$acl_shlibext" # typically: shrext=.so 13359 else 13360 shrext= 13361 fi 13362 if test $use_additional = yes; then 13363 dir="$additional_libdir" 13364 if test -n "$acl_shlibext"; then 13365 if test -f "$dir/$libname$shrext"; then 13366 found_dir="$dir" 13367 found_so="$dir/$libname$shrext" 13368 else 13369 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13370 ver=`(cd "$dir" && \ 13371 for f in "$libname$shrext".*; do echo "$f"; done \ 13372 | sed -e "s,^$libname$shrext\\\\.,," \ 13373 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13374 | sed 1q ) 2>/dev/null` 13375 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13376 found_dir="$dir" 13377 found_so="$dir/$libname$shrext.$ver" 13378 fi 13379 else 13380 eval library_names=\"$acl_library_names_spec\" 13381 for f in $library_names; do 13382 if test -f "$dir/$f"; then 13383 found_dir="$dir" 13384 found_so="$dir/$f" 13385 break 13386 fi 13387 done 13388 fi 13389 fi 13390 fi 13391 if test "X$found_dir" = "X"; then 13392 if test -f "$dir/$libname.$acl_libext"; then 13393 found_dir="$dir" 13394 found_a="$dir/$libname.$acl_libext" 13395 fi 13396 fi 13397 if test "X$found_dir" != "X"; then 13398 if test -f "$dir/$libname.la"; then 13399 found_la="$dir/$libname.la" 13400 fi 13401 fi 13402 fi 13403 if test "X$found_dir" = "X"; then 13404 for x in $LDFLAGS $LTLIBINTL; do 13405 13406 acl_save_prefix="$prefix" 13407 prefix="$acl_final_prefix" 13408 acl_save_exec_prefix="$exec_prefix" 13409 exec_prefix="$acl_final_exec_prefix" 13410 eval x=\"$x\" 13411 exec_prefix="$acl_save_exec_prefix" 13412 prefix="$acl_save_prefix" 13413 13414 case "$x" in 13415 -L*) 13416 dir=`echo "X$x" | sed -e 's/^X-L//'` 13417 if test -n "$acl_shlibext"; then 13418 if test -f "$dir/$libname$shrext"; then 13419 found_dir="$dir" 13420 found_so="$dir/$libname$shrext" 13421 else 13422 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13423 ver=`(cd "$dir" && \ 13424 for f in "$libname$shrext".*; do echo "$f"; done \ 13425 | sed -e "s,^$libname$shrext\\\\.,," \ 13426 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13427 | sed 1q ) 2>/dev/null` 13428 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13429 found_dir="$dir" 13430 found_so="$dir/$libname$shrext.$ver" 13431 fi 13432 else 13433 eval library_names=\"$acl_library_names_spec\" 13434 for f in $library_names; do 13435 if test -f "$dir/$f"; then 13436 found_dir="$dir" 13437 found_so="$dir/$f" 13438 break 13439 fi 13440 done 13441 fi 13442 fi 13443 fi 13444 if test "X$found_dir" = "X"; then 13445 if test -f "$dir/$libname.$acl_libext"; then 13446 found_dir="$dir" 13447 found_a="$dir/$libname.$acl_libext" 13448 fi 13449 fi 13450 if test "X$found_dir" != "X"; then 13451 if test -f "$dir/$libname.la"; then 13452 found_la="$dir/$libname.la" 13453 fi 13454 fi 13455 ;; 13456 esac 13457 if test "X$found_dir" != "X"; then 13458 break 13459 fi 13460 done 13461 fi 13462 if test "X$found_dir" != "X"; then 13463 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 13464 if test "X$found_so" != "X"; then 13465 if test "$enable_rpath" = no \ 13466 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 13467 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 13468 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13469 else 13470 haveit= 13471 for x in $ltrpathdirs; do 13472 if test "X$x" = "X$found_dir"; then 13473 haveit=yes 13474 break 13475 fi 13476 done 13477 if test -z "$haveit"; then 13478 ltrpathdirs="$ltrpathdirs $found_dir" 13479 fi 13480 if test "$acl_hardcode_direct" = yes; then 13481 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13482 else 13483 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13484 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13485 haveit= 13486 for x in $rpathdirs; do 13487 if test "X$x" = "X$found_dir"; then 13488 haveit=yes 13489 break 13490 fi 13491 done 13492 if test -z "$haveit"; then 13493 rpathdirs="$rpathdirs $found_dir" 13494 fi 13495 else 13496 haveit= 13497 for x in $LDFLAGS $LIBINTL; do 13498 13499 acl_save_prefix="$prefix" 13500 prefix="$acl_final_prefix" 13501 acl_save_exec_prefix="$exec_prefix" 13502 exec_prefix="$acl_final_exec_prefix" 13503 eval x=\"$x\" 13504 exec_prefix="$acl_save_exec_prefix" 13505 prefix="$acl_save_prefix" 13506 13507 if test "X$x" = "X-L$found_dir"; then 13508 haveit=yes 13509 break 13510 fi 13511 done 13512 if test -z "$haveit"; then 13513 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 13514 fi 13515 if test "$acl_hardcode_minus_L" != no; then 13516 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13517 else 13518 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13519 fi 13520 fi 13521 fi 13522 fi 13523 else 13524 if test "X$found_a" != "X"; then 13525 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 13526 else 13527 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 13528 fi 13529 fi 13530 additional_includedir= 13531 case "$found_dir" in 13532 */$acl_libdirstem | */$acl_libdirstem/) 13533 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 13534 if test "$name" = 'intl'; then 13535 LIBINTL_PREFIX="$basedir" 13536 fi 13537 additional_includedir="$basedir/include" 13538 ;; 13539 */$acl_libdirstem2 | */$acl_libdirstem2/) 13540 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 13541 if test "$name" = 'intl'; then 13542 LIBINTL_PREFIX="$basedir" 13543 fi 13544 additional_includedir="$basedir/include" 13545 ;; 13546 esac 13547 if test "X$additional_includedir" != "X"; then 13548 if test "X$additional_includedir" != "X/usr/include"; then 13549 haveit= 13550 if test "X$additional_includedir" = "X/usr/local/include"; then 13551 if test -n "$GCC"; then 13552 case $host_os in 13553 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13554 esac 13555 fi 13556 fi 13557 if test -z "$haveit"; then 13558 for x in $CPPFLAGS $INCINTL; do 13559 13560 acl_save_prefix="$prefix" 13561 prefix="$acl_final_prefix" 13562 acl_save_exec_prefix="$exec_prefix" 13563 exec_prefix="$acl_final_exec_prefix" 13564 eval x=\"$x\" 13565 exec_prefix="$acl_save_exec_prefix" 13566 prefix="$acl_save_prefix" 13567 13568 if test "X$x" = "X-I$additional_includedir"; then 13569 haveit=yes 13570 break 13571 fi 13572 done 13573 if test -z "$haveit"; then 13574 if test -d "$additional_includedir"; then 13575 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 13576 fi 13577 fi 13578 fi 13579 fi 13580 fi 13581 if test -n "$found_la"; then 13582 save_libdir="$libdir" 13583 case "$found_la" in 13584 */* | *\\*) . "$found_la" ;; 13585 *) . "./$found_la" ;; 13586 esac 13587 libdir="$save_libdir" 13588 for dep in $dependency_libs; do 13589 case "$dep" in 13590 -L*) 13591 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13592 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 13593 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 13594 haveit= 13595 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 13596 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 13597 if test -n "$GCC"; then 13598 case $host_os in 13599 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13600 esac 13601 fi 13602 fi 13603 if test -z "$haveit"; then 13604 haveit= 13605 for x in $LDFLAGS $LIBINTL; do 13606 13607 acl_save_prefix="$prefix" 13608 prefix="$acl_final_prefix" 13609 acl_save_exec_prefix="$exec_prefix" 13610 exec_prefix="$acl_final_exec_prefix" 13611 eval x=\"$x\" 13612 exec_prefix="$acl_save_exec_prefix" 13613 prefix="$acl_save_prefix" 13614 13615 if test "X$x" = "X-L$additional_libdir"; then 13616 haveit=yes 13617 break 13618 fi 13619 done 13620 if test -z "$haveit"; then 13621 if test -d "$additional_libdir"; then 13622 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 13623 fi 13624 fi 13625 haveit= 13626 for x in $LDFLAGS $LTLIBINTL; do 13627 13628 acl_save_prefix="$prefix" 13629 prefix="$acl_final_prefix" 13630 acl_save_exec_prefix="$exec_prefix" 13631 exec_prefix="$acl_final_exec_prefix" 13632 eval x=\"$x\" 13633 exec_prefix="$acl_save_exec_prefix" 13634 prefix="$acl_save_prefix" 13635 13636 if test "X$x" = "X-L$additional_libdir"; then 13637 haveit=yes 13638 break 13639 fi 13640 done 13641 if test -z "$haveit"; then 13642 if test -d "$additional_libdir"; then 13643 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 13644 fi 13645 fi 13646 fi 13647 fi 13648 ;; 13649 -R*) 13650 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13651 if test "$enable_rpath" != no; then 13652 haveit= 13653 for x in $rpathdirs; do 13654 if test "X$x" = "X$dir"; then 13655 haveit=yes 13656 break 13657 fi 13658 done 13659 if test -z "$haveit"; then 13660 rpathdirs="$rpathdirs $dir" 13661 fi 13662 haveit= 13663 for x in $ltrpathdirs; do 13664 if test "X$x" = "X$dir"; then 13665 haveit=yes 13666 break 13667 fi 13668 done 13669 if test -z "$haveit"; then 13670 ltrpathdirs="$ltrpathdirs $dir" 13671 fi 13672 fi 13673 ;; 13674 -l*) 13675 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13676 ;; 13677 *.la) 13678 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13679 ;; 13680 *) 13681 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 13682 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 13683 ;; 13684 esac 13685 done 13686 fi 13687 else 13688 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13689 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 13690 fi 13691 fi 13692 fi 13693 done 13694 done 13695 if test "X$rpathdirs" != "X"; then 13696 if test -n "$acl_hardcode_libdir_separator"; then 13697 alldirs= 13698 for found_dir in $rpathdirs; do 13699 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 13700 done 13701 acl_save_libdir="$libdir" 13702 libdir="$alldirs" 13703 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13704 libdir="$acl_save_libdir" 13705 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13706 else 13707 for found_dir in $rpathdirs; do 13708 acl_save_libdir="$libdir" 13709 libdir="$found_dir" 13710 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13711 libdir="$acl_save_libdir" 13712 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13713 done 13714 fi 13715 fi 13716 if test "X$ltrpathdirs" != "X"; then 13717 for found_dir in $ltrpathdirs; do 13718 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 13719 done 13720 fi 13721 13722 13723 13724 13725 13726 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 13728$as_echo_n "checking for GNU gettext in libintl... " >&6; } 13729if eval \${$gt_func_gnugettext_libintl+:} false; then : 13730 $as_echo_n "(cached) " >&6 13731else 13732 gt_save_CPPFLAGS="$CPPFLAGS" 13733 CPPFLAGS="$CPPFLAGS $INCINTL" 13734 gt_save_LIBS="$LIBS" 13735 LIBS="$LIBS $LIBINTL" 13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13737/* end confdefs.h. */ 13738 13739#include <libintl.h> 13740$gt_revision_test_code 13741extern int _nl_msg_cat_cntr; 13742extern 13743#ifdef __cplusplus 13744"C" 13745#endif 13746const char *_nl_expand_alias (const char *); 13747 13748int 13749main () 13750{ 13751 13752bindtextdomain ("", ""); 13753return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 13754 13755 ; 13756 return 0; 13757} 13758_ACEOF 13759if ac_fn_c_try_link "$LINENO"; then : 13760 eval "$gt_func_gnugettext_libintl=yes" 13761else 13762 eval "$gt_func_gnugettext_libintl=no" 13763fi 13764rm -f core conftest.err conftest.$ac_objext \ 13765 conftest$ac_exeext conftest.$ac_ext 13766 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 13767 LIBS="$LIBS $LIBICONV" 13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13769/* end confdefs.h. */ 13770 13771#include <libintl.h> 13772$gt_revision_test_code 13773extern int _nl_msg_cat_cntr; 13774extern 13775#ifdef __cplusplus 13776"C" 13777#endif 13778const char *_nl_expand_alias (const char *); 13779 13780int 13781main () 13782{ 13783 13784bindtextdomain ("", ""); 13785return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 13786 13787 ; 13788 return 0; 13789} 13790_ACEOF 13791if ac_fn_c_try_link "$LINENO"; then : 13792 LIBINTL="$LIBINTL $LIBICONV" 13793 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13794 eval "$gt_func_gnugettext_libintl=yes" 13795 13796fi 13797rm -f core conftest.err conftest.$ac_objext \ 13798 conftest$ac_exeext conftest.$ac_ext 13799 fi 13800 CPPFLAGS="$gt_save_CPPFLAGS" 13801 LIBS="$gt_save_LIBS" 13802fi 13803eval ac_res=\$$gt_func_gnugettext_libintl 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13805$as_echo "$ac_res" >&6; } 13806 fi 13807 13808 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 13809 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 13810 && test "$PACKAGE" != gettext-runtime \ 13811 && test "$PACKAGE" != gettext-tools; }; then 13812 gt_use_preinstalled_gnugettext=yes 13813 else 13814 LIBINTL= 13815 LTLIBINTL= 13816 INCINTL= 13817 fi 13818 13819 13820 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 13821 nls_cv_use_gnu_gettext=yes 13822 fi 13823 fi 13824 13825 if test "$nls_cv_use_gnu_gettext" = "yes"; then 13826 BUILD_INCLUDED_LIBINTL=yes 13827 USE_INCLUDED_LIBINTL=yes 13828 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" 13829 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" 13830 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 13831 fi 13832 13833 CATOBJEXT= 13834 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13835 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13836 CATOBJEXT=.gmo 13837 fi 13838 13839 13840 if test -n "$INTL_MACOSX_LIBS"; then 13841 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13842 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13843 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 13844 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 13845 fi 13846 fi 13847 13848 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13849 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13850 13851$as_echo "#define ENABLE_NLS 1" >>confdefs.h 13852 13853 else 13854 USE_NLS=no 13855 fi 13856 fi 13857 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 13859$as_echo_n "checking whether to use NLS... " >&6; } 13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13861$as_echo "$USE_NLS" >&6; } 13862 if test "$USE_NLS" = "yes"; then 13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 13864$as_echo_n "checking where the gettext function comes from... " >&6; } 13865 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13866 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13867 gt_source="external libintl" 13868 else 13869 gt_source="libc" 13870 fi 13871 else 13872 gt_source="included intl directory" 13873 fi 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 13875$as_echo "$gt_source" >&6; } 13876 fi 13877 13878 if test "$USE_NLS" = "yes"; then 13879 13880 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13881 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 13883$as_echo_n "checking how to link with libintl... " >&6; } 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 13885$as_echo "$LIBINTL" >&6; } 13886 13887 for element in $INCINTL; do 13888 haveit= 13889 for x in $CPPFLAGS; do 13890 13891 acl_save_prefix="$prefix" 13892 prefix="$acl_final_prefix" 13893 acl_save_exec_prefix="$exec_prefix" 13894 exec_prefix="$acl_final_exec_prefix" 13895 eval x=\"$x\" 13896 exec_prefix="$acl_save_exec_prefix" 13897 prefix="$acl_save_prefix" 13898 13899 if test "X$x" = "X$element"; then 13900 haveit=yes 13901 break 13902 fi 13903 done 13904 if test -z "$haveit"; then 13905 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13906 fi 13907 done 13908 13909 fi 13910 13911 13912$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13913 13914 13915$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 13916 13917 fi 13918 13919 POSUB=po 13920 fi 13921 13922 13923 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 13924 BUILD_INCLUDED_LIBINTL=yes 13925 fi 13926 13927 13928 13929 13930 13931 nls_cv_header_intl= 13932 nls_cv_header_libgt= 13933 13934 DATADIRNAME=share 13935 13936 13937 INSTOBJEXT=.mo 13938 13939 13940 GENCAT=gencat 13941 13942 13943 INTLOBJS= 13944 if test "$USE_INCLUDED_LIBINTL" = yes; then 13945 INTLOBJS="\$(GETTOBJS)" 13946 fi 13947 13948 13949 INTL_LIBTOOL_SUFFIX_PREFIX= 13950 13951 13952 13953 INTLLIBS="$LIBINTL" 13954 13955 13956 13957 13958 13959 13960 # gettext requires some extra checks. These really should be part of 13961 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific 13962 # function checks to here. 13963 for ac_func in strchr 13964do : 13965 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" 13966if test "x$ac_cv_func_strchr" = xyes; then : 13967 cat >>confdefs.h <<_ACEOF 13968#define HAVE_STRCHR 1 13969_ACEOF 13970 13971fi 13972done 13973 13974else 13975 enable_nls=no 13976 USE_NLS=no 13977 USE_INCLUDED_LIBINTL=no 13978 BUILD_INCLUDED_LIBINTL=no 13979 POSUB=po 13980 13981 13982 13983 13984fi 13985 13986 13987if test "$try_extensions" = yes || test x"$card_support" = xyes ; then 13988 if test "$need_dlopen" = yes; then 13989 _dl_save_libs=$LIBS 13990 LIBS="" 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 13992$as_echo_n "checking for library containing dlopen... " >&6; } 13993if ${ac_cv_search_dlopen+:} false; then : 13994 $as_echo_n "(cached) " >&6 13995else 13996 ac_func_search_save_LIBS=$LIBS 13997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13998/* end confdefs.h. */ 13999 14000/* Override any GCC internal prototype to avoid an error. 14001 Use char because int might match the return type of a GCC 14002 builtin and then its argument prototype would still apply. */ 14003#ifdef __cplusplus 14004extern "C" 14005#endif 14006char dlopen (); 14007int 14008main () 14009{ 14010return dlopen (); 14011 ; 14012 return 0; 14013} 14014_ACEOF 14015for ac_lib in '' dl; do 14016 if test -z "$ac_lib"; then 14017 ac_res="none required" 14018 else 14019 ac_res=-l$ac_lib 14020 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14021 fi 14022 if ac_fn_c_try_link "$LINENO"; then : 14023 ac_cv_search_dlopen=$ac_res 14024fi 14025rm -f core conftest.err conftest.$ac_objext \ 14026 conftest$ac_exeext 14027 if ${ac_cv_search_dlopen+:} false; then : 14028 break 14029fi 14030done 14031if ${ac_cv_search_dlopen+:} false; then : 14032 14033else 14034 ac_cv_search_dlopen=no 14035fi 14036rm conftest.$ac_ext 14037LIBS=$ac_func_search_save_LIBS 14038fi 14039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 14040$as_echo "$ac_cv_search_dlopen" >&6; } 14041ac_res=$ac_cv_search_dlopen 14042if test "$ac_res" != no; then : 14043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14044 found_dlopen=yes 14045fi 14046 14047 if test x"$found_dlopen" = "xyes" ; then 14048 14049$as_echo "#define HAVE_DL_DLOPEN 1" >>confdefs.h 14050 14051 DLLIBS=$LIBS 14052 else 14053 if test "$try_extensions" = yes ; then 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: dlopen not found. Disabling extensions." >&5 14055$as_echo "$as_me: dlopen not found. Disabling extensions." >&6;} 14056 try_extensions=no 14057 fi 14058 14059 if test "$card_support" = yes ; then 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen not found. Disabling OpenPGP card support." >&5 14061$as_echo "$as_me: WARNING: dlopen not found. Disabling OpenPGP card support." >&2;} 14062 card_support=no 14063 fi 14064 fi 14065 LIBS=$_dl_save_libs 14066 fi 14067fi 14068 14069 14070 14071if test "$card_support" = yes ; then 14072 14073$as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h 14074 14075fi 14076 14077if test "$agent_support" = yes ; then 14078 14079$as_echo "#define ENABLE_AGENT_SUPPORT 1" >>confdefs.h 14080 14081fi 14082 14083if test "$try_extensions" = yes ; then 14084 14085$as_echo "#define USE_DYNAMIC_LINKING 1" >>confdefs.h 14086 14087fi 14088 14089if test "$selinux_support" = yes ; then 14090 14091$as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h 14092 14093fi 14094 14095if test "$gnupg_use_iconv" = yes ; then 14096 14097$as_echo "#define USE_GNUPG_ICONV 1" >>confdefs.h 14098 14099fi 14100 14101 if test "$card_support" = yes; then 14102 ENABLE_CARD_SUPPORT_TRUE= 14103 ENABLE_CARD_SUPPORT_FALSE='#' 14104else 14105 ENABLE_CARD_SUPPORT_TRUE='#' 14106 ENABLE_CARD_SUPPORT_FALSE= 14107fi 14108 14109 if test "$agent_support" = yes; then 14110 ENABLE_AGENT_SUPPORT_TRUE= 14111 ENABLE_AGENT_SUPPORT_FALSE='#' 14112else 14113 ENABLE_AGENT_SUPPORT_TRUE='#' 14114 ENABLE_AGENT_SUPPORT_FALSE= 14115fi 14116 14117 if test "$selinux_support" = yes; then 14118 ENABLE_SELINUX_HACKS_TRUE= 14119 ENABLE_SELINUX_HACKS_FALSE='#' 14120else 14121 ENABLE_SELINUX_HACKS_TRUE='#' 14122 ENABLE_SELINUX_HACKS_FALSE= 14123fi 14124 14125 14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14127$as_echo_n "checking for ANSI C header files... " >&6; } 14128if ${ac_cv_header_stdc+:} false; then : 14129 $as_echo_n "(cached) " >&6 14130else 14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14132/* end confdefs.h. */ 14133#include <stdlib.h> 14134#include <stdarg.h> 14135#include <string.h> 14136#include <float.h> 14137 14138int 14139main () 14140{ 14141 14142 ; 14143 return 0; 14144} 14145_ACEOF 14146if ac_fn_c_try_compile "$LINENO"; then : 14147 ac_cv_header_stdc=yes 14148else 14149 ac_cv_header_stdc=no 14150fi 14151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14152 14153if test $ac_cv_header_stdc = yes; then 14154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156/* end confdefs.h. */ 14157#include <string.h> 14158 14159_ACEOF 14160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14161 $EGREP "memchr" >/dev/null 2>&1; then : 14162 14163else 14164 ac_cv_header_stdc=no 14165fi 14166rm -f conftest* 14167 14168fi 14169 14170if test $ac_cv_header_stdc = yes; then 14171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14173/* end confdefs.h. */ 14174#include <stdlib.h> 14175 14176_ACEOF 14177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14178 $EGREP "free" >/dev/null 2>&1; then : 14179 14180else 14181 ac_cv_header_stdc=no 14182fi 14183rm -f conftest* 14184 14185fi 14186 14187if test $ac_cv_header_stdc = yes; then 14188 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14189 if test "$cross_compiling" = yes; then : 14190 : 14191else 14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14193/* end confdefs.h. */ 14194#include <ctype.h> 14195#include <stdlib.h> 14196#if ((' ' & 0x0FF) == 0x020) 14197# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14198# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14199#else 14200# define ISLOWER(c) \ 14201 (('a' <= (c) && (c) <= 'i') \ 14202 || ('j' <= (c) && (c) <= 'r') \ 14203 || ('s' <= (c) && (c) <= 'z')) 14204# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14205#endif 14206 14207#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14208int 14209main () 14210{ 14211 int i; 14212 for (i = 0; i < 256; i++) 14213 if (XOR (islower (i), ISLOWER (i)) 14214 || toupper (i) != TOUPPER (i)) 14215 return 2; 14216 return 0; 14217} 14218_ACEOF 14219if ac_fn_c_try_run "$LINENO"; then : 14220 14221else 14222 ac_cv_header_stdc=no 14223fi 14224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14225 conftest.$ac_objext conftest.beam conftest.$ac_ext 14226fi 14227 14228fi 14229fi 14230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14231$as_echo "$ac_cv_header_stdc" >&6; } 14232if test $ac_cv_header_stdc = yes; then 14233 14234$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14235 14236fi 14237 14238for ac_header in unistd.h langinfo.h termio.h locale.h getopt.h pwd.h \ 14239 signal.h 14240do : 14241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14242ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14243if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14244 cat >>confdefs.h <<_ACEOF 14245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14246_ACEOF 14247 14248fi 14249 14250done 14251 14252 14253# Note that we do not check for iconv here because this is done anyway 14254# by the gettext checks and thus it allows us to disable the use of 14255# iconv by using --disable-nls. 14256 14257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14258$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14259if ${ac_cv_c_const+:} false; then : 14260 $as_echo_n "(cached) " >&6 14261else 14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14263/* end confdefs.h. */ 14264 14265int 14266main () 14267{ 14268 14269#ifndef __cplusplus 14270 /* Ultrix mips cc rejects this sort of thing. */ 14271 typedef int charset[2]; 14272 const charset cs = { 0, 0 }; 14273 /* SunOS 4.1.1 cc rejects this. */ 14274 char const *const *pcpcc; 14275 char **ppc; 14276 /* NEC SVR4.0.2 mips cc rejects this. */ 14277 struct point {int x, y;}; 14278 static struct point const zero = {0,0}; 14279 /* AIX XL C 1.02.0.0 rejects this. 14280 It does not let you subtract one const X* pointer from another in 14281 an arm of an if-expression whose if-part is not a constant 14282 expression */ 14283 const char *g = "string"; 14284 pcpcc = &g + (g ? g-g : 0); 14285 /* HPUX 7.0 cc rejects these. */ 14286 ++pcpcc; 14287 ppc = (char**) pcpcc; 14288 pcpcc = (char const *const *) ppc; 14289 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14290 char tx; 14291 char *t = &tx; 14292 char const *s = 0 ? (char *) 0 : (char const *) 0; 14293 14294 *t++ = 0; 14295 if (s) return 0; 14296 } 14297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14298 int x[] = {25, 17}; 14299 const int *foo = &x[0]; 14300 ++foo; 14301 } 14302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14303 typedef const int *iptr; 14304 iptr p = 0; 14305 ++p; 14306 } 14307 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 14308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14309 struct s { int j; const int *ap[3]; } bx; 14310 struct s *b = &bx; b->j = 5; 14311 } 14312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14313 const int foo = 10; 14314 if (!foo) return 0; 14315 } 14316 return !cs[0] && !zero.x; 14317#endif 14318 14319 ; 14320 return 0; 14321} 14322_ACEOF 14323if ac_fn_c_try_compile "$LINENO"; then : 14324 ac_cv_c_const=yes 14325else 14326 ac_cv_c_const=no 14327fi 14328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14329fi 14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14331$as_echo "$ac_cv_c_const" >&6; } 14332if test $ac_cv_c_const = no; then 14333 14334$as_echo "#define const /**/" >>confdefs.h 14335 14336fi 14337 14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14339$as_echo_n "checking for inline... " >&6; } 14340if ${ac_cv_c_inline+:} false; then : 14341 $as_echo_n "(cached) " >&6 14342else 14343 ac_cv_c_inline=no 14344for ac_kw in inline __inline__ __inline; do 14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14346/* end confdefs.h. */ 14347#ifndef __cplusplus 14348typedef int foo_t; 14349static $ac_kw foo_t static_foo () {return 0; } 14350$ac_kw foo_t foo () {return 0; } 14351#endif 14352 14353_ACEOF 14354if ac_fn_c_try_compile "$LINENO"; then : 14355 ac_cv_c_inline=$ac_kw 14356fi 14357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14358 test "$ac_cv_c_inline" != no && break 14359done 14360 14361fi 14362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14363$as_echo "$ac_cv_c_inline" >&6; } 14364 14365case $ac_cv_c_inline in 14366 inline | yes) ;; 14367 *) 14368 case $ac_cv_c_inline in 14369 no) ac_val=;; 14370 *) ac_val=$ac_cv_c_inline;; 14371 esac 14372 cat >>confdefs.h <<_ACEOF 14373#ifndef __cplusplus 14374#define inline $ac_val 14375#endif 14376_ACEOF 14377 ;; 14378esac 14379 14380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 14381$as_echo_n "checking for working volatile... " >&6; } 14382if ${ac_cv_c_volatile+:} false; then : 14383 $as_echo_n "(cached) " >&6 14384else 14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14386/* end confdefs.h. */ 14387 14388int 14389main () 14390{ 14391 14392volatile int x; 14393int * volatile y = (int *) 0; 14394return !x && !y; 14395 ; 14396 return 0; 14397} 14398_ACEOF 14399if ac_fn_c_try_compile "$LINENO"; then : 14400 ac_cv_c_volatile=yes 14401else 14402 ac_cv_c_volatile=no 14403fi 14404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14405fi 14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 14407$as_echo "$ac_cv_c_volatile" >&6; } 14408if test $ac_cv_c_volatile = no; then 14409 14410$as_echo "#define volatile /**/" >>confdefs.h 14411 14412fi 14413 14414ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14415if test "x$ac_cv_type_size_t" = xyes; then : 14416 14417else 14418 14419cat >>confdefs.h <<_ACEOF 14420#define size_t unsigned int 14421_ACEOF 14422 14423fi 14424 14425ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 14426if test "x$ac_cv_type_mode_t" = xyes; then : 14427 14428else 14429 14430cat >>confdefs.h <<_ACEOF 14431#define mode_t int 14432_ACEOF 14433 14434fi 14435 14436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14437$as_echo_n "checking return type of signal handlers... " >&6; } 14438if ${ac_cv_type_signal+:} false; then : 14439 $as_echo_n "(cached) " >&6 14440else 14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14442/* end confdefs.h. */ 14443#include <sys/types.h> 14444#include <signal.h> 14445 14446int 14447main () 14448{ 14449return *(signal (0, 0)) (0) == 1; 14450 ; 14451 return 0; 14452} 14453_ACEOF 14454if ac_fn_c_try_compile "$LINENO"; then : 14455 ac_cv_type_signal=int 14456else 14457 ac_cv_type_signal=void 14458fi 14459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14460fi 14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14462$as_echo "$ac_cv_type_signal" >&6; } 14463 14464cat >>confdefs.h <<_ACEOF 14465#define RETSIGTYPE $ac_cv_type_signal 14466_ACEOF 14467 14468 14469ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h> 14470/* NetBSD declares sys_siglist in unistd.h. */ 14471#ifdef HAVE_UNISTD_H 14472# include <unistd.h> 14473#endif 14474 14475" 14476if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : 14477 ac_have_decl=1 14478else 14479 ac_have_decl=0 14480fi 14481 14482cat >>confdefs.h <<_ACEOF 14483#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 14484_ACEOF 14485 14486 14487 14488# Check whether --enable-endian-check was given. 14489if test "${enable_endian_check+set}" = set; then : 14490 enableval=$enable_endian_check; endiancheck=$enableval 14491else 14492 endiancheck=yes 14493fi 14494 14495 14496if test x"$endiancheck" = xyes ; then 14497 14498 tmp_assumed_endian=big 14499 if test "$cross_compiling" = yes; then 14500 case "$host_cpu" in 14501 i[345678]* ) 14502 tmp_assumed_endian=little 14503 ;; 14504 *) 14505 ;; 14506 esac 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling; assuming $tmp_assumed_endian endianess" >&5 14508$as_echo "$as_me: WARNING: cross compiling; assuming $tmp_assumed_endian endianess" >&2;} 14509 fi 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianess" >&5 14511$as_echo_n "checking endianess... " >&6; } 14512 if ${gnupg_cv_c_endian+:} false; then : 14513 $as_echo_n "(cached) " >&6 14514else 14515 gnupg_cv_c_endian=unknown 14516 # See if sys/param.h defines the BYTE_ORDER macro. 14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14518/* end confdefs.h. */ 14519#include <sys/types.h> 14520 #include <sys/param.h> 14521int 14522main () 14523{ 14524 14525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 14526 bogus endian macros 14527 #endif 14528 ; 14529 return 0; 14530} 14531_ACEOF 14532if ac_fn_c_try_compile "$LINENO"; then : 14533 # It does; now see whether it defined to BIG_ENDIAN or not. 14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14535/* end confdefs.h. */ 14536#include <sys/types.h> 14537 #include <sys/param.h> 14538int 14539main () 14540{ 14541 14542 #if BYTE_ORDER != BIG_ENDIAN 14543 not big endian 14544 #endif 14545 ; 14546 return 0; 14547} 14548_ACEOF 14549if ac_fn_c_try_compile "$LINENO"; then : 14550 gnupg_cv_c_endian=big 14551else 14552 gnupg_cv_c_endian=little 14553fi 14554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14555fi 14556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14557 if test "$gnupg_cv_c_endian" = unknown; then 14558 if test "$cross_compiling" = yes; then : 14559 gnupg_cv_c_endian=$tmp_assumed_endian 14560 14561else 14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563/* end confdefs.h. */ 14564main () { 14565 /* Are we little or big endian? From Harbison&Steele. */ 14566 union 14567 { 14568 long l; 14569 char c[sizeof (long)]; 14570 } u; 14571 u.l = 1; 14572 exit (u.c[sizeof (long) - 1] == 1); 14573 } 14574_ACEOF 14575if ac_fn_c_try_run "$LINENO"; then : 14576 gnupg_cv_c_endian=little 14577else 14578 gnupg_cv_c_endian=big 14579fi 14580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14581 conftest.$ac_objext conftest.beam conftest.$ac_ext 14582fi 14583 14584 fi 14585 14586fi 14587 14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_c_endian" >&5 14589$as_echo "$gnupg_cv_c_endian" >&6; } 14590 if test "$gnupg_cv_c_endian" = little; then 14591 14592$as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h 14593 14594 else 14595 14596$as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h 14597 14598 fi 14599 14600fi 14601 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5 14603$as_echo_n "checking for byte typedef... " >&6; } 14604 if ${gnupg_cv_typedef_byte+:} false; then : 14605 $as_echo_n "(cached) " >&6 14606else 14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14608/* end confdefs.h. */ 14609#define _GNU_SOURCE 1 14610 #include <stdlib.h> 14611 #include <sys/types.h> 14612int 14613main () 14614{ 14615 14616 #undef byte 14617 int a = sizeof(byte); 14618 14619 ; 14620 return 0; 14621} 14622_ACEOF 14623if ac_fn_c_try_compile "$LINENO"; then : 14624 gnupg_cv_typedef_byte=yes 14625else 14626 gnupg_cv_typedef_byte=no 14627fi 14628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14629fi 14630 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5 14632$as_echo "$gnupg_cv_typedef_byte" >&6; } 14633 if test "$gnupg_cv_typedef_byte" = yes; then 14634 14635$as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h 14636 14637 fi 14638 14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5 14640$as_echo_n "checking for ushort typedef... " >&6; } 14641 if ${gnupg_cv_typedef_ushort+:} false; then : 14642 $as_echo_n "(cached) " >&6 14643else 14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14645/* end confdefs.h. */ 14646#define _GNU_SOURCE 1 14647 #include <stdlib.h> 14648 #include <sys/types.h> 14649int 14650main () 14651{ 14652 14653 #undef ushort 14654 int a = sizeof(ushort); 14655 14656 ; 14657 return 0; 14658} 14659_ACEOF 14660if ac_fn_c_try_compile "$LINENO"; then : 14661 gnupg_cv_typedef_ushort=yes 14662else 14663 gnupg_cv_typedef_ushort=no 14664fi 14665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14666fi 14667 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5 14669$as_echo "$gnupg_cv_typedef_ushort" >&6; } 14670 if test "$gnupg_cv_typedef_ushort" = yes; then 14671 14672$as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h 14673 14674 fi 14675 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5 14677$as_echo_n "checking for ulong typedef... " >&6; } 14678 if ${gnupg_cv_typedef_ulong+:} false; then : 14679 $as_echo_n "(cached) " >&6 14680else 14681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14682/* end confdefs.h. */ 14683#define _GNU_SOURCE 1 14684 #include <stdlib.h> 14685 #include <sys/types.h> 14686int 14687main () 14688{ 14689 14690 #undef ulong 14691 int a = sizeof(ulong); 14692 14693 ; 14694 return 0; 14695} 14696_ACEOF 14697if ac_fn_c_try_compile "$LINENO"; then : 14698 gnupg_cv_typedef_ulong=yes 14699else 14700 gnupg_cv_typedef_ulong=no 14701fi 14702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14703fi 14704 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5 14706$as_echo "$gnupg_cv_typedef_ulong" >&6; } 14707 if test "$gnupg_cv_typedef_ulong" = yes; then 14708 14709$as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h 14710 14711 fi 14712 14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5 14714$as_echo_n "checking for u16 typedef... " >&6; } 14715 if ${gnupg_cv_typedef_u16+:} false; then : 14716 $as_echo_n "(cached) " >&6 14717else 14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14719/* end confdefs.h. */ 14720#define _GNU_SOURCE 1 14721 #include <stdlib.h> 14722 #include <sys/types.h> 14723int 14724main () 14725{ 14726 14727 #undef u16 14728 int a = sizeof(u16); 14729 14730 ; 14731 return 0; 14732} 14733_ACEOF 14734if ac_fn_c_try_compile "$LINENO"; then : 14735 gnupg_cv_typedef_u16=yes 14736else 14737 gnupg_cv_typedef_u16=no 14738fi 14739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14740fi 14741 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5 14743$as_echo "$gnupg_cv_typedef_u16" >&6; } 14744 if test "$gnupg_cv_typedef_u16" = yes; then 14745 14746$as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h 14747 14748 fi 14749 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5 14751$as_echo_n "checking for u32 typedef... " >&6; } 14752 if ${gnupg_cv_typedef_u32+:} false; then : 14753 $as_echo_n "(cached) " >&6 14754else 14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14756/* end confdefs.h. */ 14757#define _GNU_SOURCE 1 14758 #include <stdlib.h> 14759 #include <sys/types.h> 14760int 14761main () 14762{ 14763 14764 #undef u32 14765 int a = sizeof(u32); 14766 14767 ; 14768 return 0; 14769} 14770_ACEOF 14771if ac_fn_c_try_compile "$LINENO"; then : 14772 gnupg_cv_typedef_u32=yes 14773else 14774 gnupg_cv_typedef_u32=no 14775fi 14776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14777fi 14778 14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5 14780$as_echo "$gnupg_cv_typedef_u32" >&6; } 14781 if test "$gnupg_cv_typedef_u32" = yes; then 14782 14783$as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h 14784 14785 fi 14786 14787 14788# The cast to long int works around a bug in the HP C Compiler 14789# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14790# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14791# This bug is HP SR number 8606223364. 14792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 14793$as_echo_n "checking size of unsigned short... " >&6; } 14794if ${ac_cv_sizeof_unsigned_short+:} false; then : 14795 $as_echo_n "(cached) " >&6 14796else 14797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 14798 14799else 14800 if test "$ac_cv_type_unsigned_short" = yes; then 14801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14803as_fn_error 77 "cannot compute sizeof (unsigned short) 14804See \`config.log' for more details" "$LINENO" 5; } 14805 else 14806 ac_cv_sizeof_unsigned_short=0 14807 fi 14808fi 14809 14810fi 14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 14812$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 14813 14814 14815 14816cat >>confdefs.h <<_ACEOF 14817#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 14818_ACEOF 14819 14820 14821# The cast to long int works around a bug in the HP C Compiler 14822# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14823# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14824# This bug is HP SR number 8606223364. 14825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 14826$as_echo_n "checking size of unsigned int... " >&6; } 14827if ${ac_cv_sizeof_unsigned_int+:} false; then : 14828 $as_echo_n "(cached) " >&6 14829else 14830 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 14831 14832else 14833 if test "$ac_cv_type_unsigned_int" = yes; then 14834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14836as_fn_error 77 "cannot compute sizeof (unsigned int) 14837See \`config.log' for more details" "$LINENO" 5; } 14838 else 14839 ac_cv_sizeof_unsigned_int=0 14840 fi 14841fi 14842 14843fi 14844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 14845$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 14846 14847 14848 14849cat >>confdefs.h <<_ACEOF 14850#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 14851_ACEOF 14852 14853 14854# The cast to long int works around a bug in the HP C Compiler 14855# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14856# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14857# This bug is HP SR number 8606223364. 14858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 14859$as_echo_n "checking size of unsigned long... " >&6; } 14860if ${ac_cv_sizeof_unsigned_long+:} false; then : 14861 $as_echo_n "(cached) " >&6 14862else 14863 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 14864 14865else 14866 if test "$ac_cv_type_unsigned_long" = yes; then 14867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14869as_fn_error 77 "cannot compute sizeof (unsigned long) 14870See \`config.log' for more details" "$LINENO" 5; } 14871 else 14872 ac_cv_sizeof_unsigned_long=0 14873 fi 14874fi 14875 14876fi 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 14878$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 14879 14880 14881 14882cat >>confdefs.h <<_ACEOF 14883#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 14884_ACEOF 14885 14886 14887# The cast to long int works around a bug in the HP C Compiler 14888# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14889# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14890# This bug is HP SR number 8606223364. 14891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 14892$as_echo_n "checking size of unsigned long long... " >&6; } 14893if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 14894 $as_echo_n "(cached) " >&6 14895else 14896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 14897 14898else 14899 if test "$ac_cv_type_unsigned_long_long" = yes; then 14900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14902as_fn_error 77 "cannot compute sizeof (unsigned long long) 14903See \`config.log' for more details" "$LINENO" 5; } 14904 else 14905 ac_cv_sizeof_unsigned_long_long=0 14906 fi 14907fi 14908 14909fi 14910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 14911$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 14912 14913 14914 14915cat >>confdefs.h <<_ACEOF 14916#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 14917_ACEOF 14918 14919 14920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14921$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14922if ${ac_cv_header_time+:} false; then : 14923 $as_echo_n "(cached) " >&6 14924else 14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14926/* end confdefs.h. */ 14927#include <sys/types.h> 14928#include <sys/time.h> 14929#include <time.h> 14930 14931int 14932main () 14933{ 14934if ((struct tm *) 0) 14935return 0; 14936 ; 14937 return 0; 14938} 14939_ACEOF 14940if ac_fn_c_try_compile "$LINENO"; then : 14941 ac_cv_header_time=yes 14942else 14943 ac_cv_header_time=no 14944fi 14945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14946fi 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14948$as_echo "$ac_cv_header_time" >&6; } 14949if test $ac_cv_header_time = yes; then 14950 14951$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14952 14953fi 14954 14955# The cast to long int works around a bug in the HP C Compiler 14956# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14957# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14958# This bug is HP SR number 8606223364. 14959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14960$as_echo_n "checking size of time_t... " >&6; } 14961if ${ac_cv_sizeof_time_t+:} false; then : 14962 $as_echo_n "(cached) " >&6 14963else 14964 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 14965#include <stdio.h> 14966#if TIME_WITH_SYS_TIME 14967# include <sys/time.h> 14968# include <time.h> 14969#else 14970# if HAVE_SYS_TIME_H 14971# include <sys/time.h> 14972# else 14973# include <time.h> 14974# endif 14975#endif 14976 14977"; then : 14978 14979else 14980 if test "$ac_cv_type_time_t" = yes; then 14981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14983as_fn_error 77 "cannot compute sizeof (time_t) 14984See \`config.log' for more details" "$LINENO" 5; } 14985 else 14986 ac_cv_sizeof_time_t=0 14987 fi 14988fi 14989 14990fi 14991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14992$as_echo "$ac_cv_sizeof_time_t" >&6; } 14993 14994 14995 14996cat >>confdefs.h <<_ACEOF 14997#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14998_ACEOF 14999 15000 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5 15002$as_echo_n "checking whether time_t is unsigned... " >&6; } 15003if ${gnupg_cv_time_t_unsigned+:} false; then : 15004 $as_echo_n "(cached) " >&6 15005else 15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15007/* end confdefs.h. */ 15008$ac_includes_default 15009#if TIME_WITH_SYS_TIME 15010# include <sys/time.h> 15011# include <time.h> 15012#else 15013# if HAVE_SYS_TIME_H 15014# include <sys/time.h> 15015# else 15016# include <time.h> 15017# endif 15018#endif 15019 15020int 15021main () 15022{ 15023static int test_array [1 - 2 * !(((time_t)-1) < 0)]; 15024test_array [0] = 0; 15025return test_array [0]; 15026 15027 ; 15028 return 0; 15029} 15030_ACEOF 15031if ac_fn_c_try_compile "$LINENO"; then : 15032 gnupg_cv_time_t_unsigned=no 15033else 15034 gnupg_cv_time_t_unsigned=yes 15035fi 15036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15037fi 15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5 15039$as_echo "$gnupg_cv_time_t_unsigned" >&6; } 15040 if test $gnupg_cv_time_t_unsigned = yes; then 15041 15042$as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h 15043 15044 fi 15045 15046 15047# Ensure that we have UINT64_C before we bother to check for uint64_t 15048for ac_header in inttypes.h 15049do : 15050 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 15051if test "x$ac_cv_header_inttypes_h" = xyes; then : 15052 cat >>confdefs.h <<_ACEOF 15053#define HAVE_INTTYPES_H 1 15054_ACEOF 15055 15056fi 15057 15058done 15059 15060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UINT64_C" >&5 15061$as_echo_n "checking for UINT64_C... " >&6; } 15062if ${gnupg_cv_uint64_c_works+:} false; then : 15063 $as_echo_n "(cached) " >&6 15064else 15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15066/* end confdefs.h. */ 15067#include <inttypes.h> 15068int 15069main () 15070{ 15071 15072uint64_t foo=UINT64_C(42); 15073 ; 15074 return 0; 15075} 15076_ACEOF 15077if ac_fn_c_try_link "$LINENO"; then : 15078 gnupg_cv_uint64_c_works=yes 15079else 15080 gnupg_cv_uint64_c_works=no 15081fi 15082rm -f core conftest.err conftest.$ac_objext \ 15083 conftest$ac_exeext conftest.$ac_ext 15084fi 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_uint64_c_works" >&5 15086$as_echo "$gnupg_cv_uint64_c_works" >&6; } 15087 15088if test "$gnupg_cv_uint64_c_works" = "yes" ; then 15089 # The cast to long int works around a bug in the HP C Compiler 15090# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15091# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15092# This bug is HP SR number 8606223364. 15093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5 15094$as_echo_n "checking size of uint64_t... " >&6; } 15095if ${ac_cv_sizeof_uint64_t+:} false; then : 15096 $as_echo_n "(cached) " >&6 15097else 15098 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"; then : 15099 15100else 15101 if test "$ac_cv_type_uint64_t" = yes; then 15102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15104as_fn_error 77 "cannot compute sizeof (uint64_t) 15105See \`config.log' for more details" "$LINENO" 5; } 15106 else 15107 ac_cv_sizeof_uint64_t=0 15108 fi 15109fi 15110 15111fi 15112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5 15113$as_echo "$ac_cv_sizeof_uint64_t" >&6; } 15114 15115 15116 15117cat >>confdefs.h <<_ACEOF 15118#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t 15119_ACEOF 15120 15121 15122fi 15123 15124if test "$ac_cv_sizeof_unsigned_short" = "0" \ 15125 || test "$ac_cv_sizeof_unsigned_int" = "0" \ 15126 || test "$ac_cv_sizeof_unsigned_long" = "0"; then 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5 15128$as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;}; 15129fi 15130 15131if test x"$use_sha512" = xyes \ 15132 && test "$ac_cv_sizeof_unsigned_int" != "8" \ 15133 && test "$ac_cv_sizeof_unsigned_long" != "8" \ 15134 && test "$ac_cv_sizeof_unsigned_long_long" != "8" \ 15135 && test x"$ac_cv_sizeof_uint64_t" != "x8"; then 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: No 64-bit types. Disabling SHA-384 and SHA-512." >&5 15137$as_echo "$as_me: No 64-bit types. Disabling SHA-384 and SHA-512." >&6;} 15138 use_sha512=no 15139fi 15140 15141if test x"$use_sha512" = xyes ; then 15142 15143$as_echo "#define USE_SHA512 1" >>confdefs.h 15144 15145fi 15146 15147 if test x"$use_sha512" = xyes; then 15148 USE_SHA512_TRUE= 15149 USE_SHA512_FALSE='#' 15150else 15151 USE_SHA512_TRUE='#' 15152 USE_SHA512_FALSE= 15153fi 15154 15155 15156ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" 15157if test "x$ac_cv_have_decl_getpagesize" = xyes; then : 15158 ac_have_decl=1 15159else 15160 ac_have_decl=0 15161fi 15162 15163cat >>confdefs.h <<_ACEOF 15164#define HAVE_DECL_GETPAGESIZE $ac_have_decl 15165_ACEOF 15166 15167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 15168$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 15169if ${ac_cv_sys_largefile_source+:} false; then : 15170 $as_echo_n "(cached) " >&6 15171else 15172 while :; do 15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15174/* end confdefs.h. */ 15175#include <sys/types.h> /* for off_t */ 15176 #include <stdio.h> 15177int 15178main () 15179{ 15180int (*fp) (FILE *, off_t, int) = fseeko; 15181 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15182 ; 15183 return 0; 15184} 15185_ACEOF 15186if ac_fn_c_try_link "$LINENO"; then : 15187 ac_cv_sys_largefile_source=no; break 15188fi 15189rm -f core conftest.err conftest.$ac_objext \ 15190 conftest$ac_exeext conftest.$ac_ext 15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15192/* end confdefs.h. */ 15193#define _LARGEFILE_SOURCE 1 15194#include <sys/types.h> /* for off_t */ 15195 #include <stdio.h> 15196int 15197main () 15198{ 15199int (*fp) (FILE *, off_t, int) = fseeko; 15200 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15201 ; 15202 return 0; 15203} 15204_ACEOF 15205if ac_fn_c_try_link "$LINENO"; then : 15206 ac_cv_sys_largefile_source=1; break 15207fi 15208rm -f core conftest.err conftest.$ac_objext \ 15209 conftest$ac_exeext conftest.$ac_ext 15210 ac_cv_sys_largefile_source=unknown 15211 break 15212done 15213fi 15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15215$as_echo "$ac_cv_sys_largefile_source" >&6; } 15216case $ac_cv_sys_largefile_source in #( 15217 no | unknown) ;; 15218 *) 15219cat >>confdefs.h <<_ACEOF 15220#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15221_ACEOF 15222;; 15223esac 15224rm -rf conftest* 15225 15226# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 15227# in glibc 2.1.3, but that breaks too many other things. 15228# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 15229if test $ac_cv_sys_largefile_source != unknown; then 15230 15231$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15232 15233fi 15234 15235for ac_func in vprintf 15236do : 15237 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 15238if test "x$ac_cv_func_vprintf" = xyes; then : 15239 cat >>confdefs.h <<_ACEOF 15240#define HAVE_VPRINTF 1 15241_ACEOF 15242 15243ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 15244if test "x$ac_cv_func__doprnt" = xyes; then : 15245 15246$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 15247 15248fi 15249 15250fi 15251done 15252 15253 15254ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15255if test "x$ac_cv_type_pid_t" = xyes; then : 15256 15257else 15258 15259cat >>confdefs.h <<_ACEOF 15260#define pid_t int 15261_ACEOF 15262 15263fi 15264 15265for ac_header in vfork.h 15266do : 15267 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 15268if test "x$ac_cv_header_vfork_h" = xyes; then : 15269 cat >>confdefs.h <<_ACEOF 15270#define HAVE_VFORK_H 1 15271_ACEOF 15272 15273fi 15274 15275done 15276 15277for ac_func in fork vfork 15278do : 15279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15280ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15281if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15282 cat >>confdefs.h <<_ACEOF 15283#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15284_ACEOF 15285 15286fi 15287done 15288 15289if test "x$ac_cv_func_fork" = xyes; then 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15291$as_echo_n "checking for working fork... " >&6; } 15292if ${ac_cv_func_fork_works+:} false; then : 15293 $as_echo_n "(cached) " >&6 15294else 15295 if test "$cross_compiling" = yes; then : 15296 ac_cv_func_fork_works=cross 15297else 15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15299/* end confdefs.h. */ 15300$ac_includes_default 15301int 15302main () 15303{ 15304 15305 /* By Ruediger Kuhlmann. */ 15306 return fork () < 0; 15307 15308 ; 15309 return 0; 15310} 15311_ACEOF 15312if ac_fn_c_try_run "$LINENO"; then : 15313 ac_cv_func_fork_works=yes 15314else 15315 ac_cv_func_fork_works=no 15316fi 15317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15318 conftest.$ac_objext conftest.beam conftest.$ac_ext 15319fi 15320 15321fi 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15323$as_echo "$ac_cv_func_fork_works" >&6; } 15324 15325else 15326 ac_cv_func_fork_works=$ac_cv_func_fork 15327fi 15328if test "x$ac_cv_func_fork_works" = xcross; then 15329 case $host in 15330 *-*-amigaos* | *-*-msdosdjgpp*) 15331 # Override, as these systems have only a dummy fork() stub 15332 ac_cv_func_fork_works=no 15333 ;; 15334 *) 15335 ac_cv_func_fork_works=yes 15336 ;; 15337 esac 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15339$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15340fi 15341ac_cv_func_vfork_works=$ac_cv_func_vfork 15342if test "x$ac_cv_func_vfork" = xyes; then 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15344$as_echo_n "checking for working vfork... " >&6; } 15345if ${ac_cv_func_vfork_works+:} false; then : 15346 $as_echo_n "(cached) " >&6 15347else 15348 if test "$cross_compiling" = yes; then : 15349 ac_cv_func_vfork_works=cross 15350else 15351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15352/* end confdefs.h. */ 15353/* Thanks to Paul Eggert for this test. */ 15354$ac_includes_default 15355#include <sys/wait.h> 15356#ifdef HAVE_VFORK_H 15357# include <vfork.h> 15358#endif 15359/* On some sparc systems, changes by the child to local and incoming 15360 argument registers are propagated back to the parent. The compiler 15361 is told about this with #include <vfork.h>, but some compilers 15362 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15363 static variable whose address is put into a register that is 15364 clobbered by the vfork. */ 15365static void 15366#ifdef __cplusplus 15367sparc_address_test (int arg) 15368# else 15369sparc_address_test (arg) int arg; 15370#endif 15371{ 15372 static pid_t child; 15373 if (!child) { 15374 child = vfork (); 15375 if (child < 0) { 15376 perror ("vfork"); 15377 _exit(2); 15378 } 15379 if (!child) { 15380 arg = getpid(); 15381 write(-1, "", 0); 15382 _exit (arg); 15383 } 15384 } 15385} 15386 15387int 15388main () 15389{ 15390 pid_t parent = getpid (); 15391 pid_t child; 15392 15393 sparc_address_test (0); 15394 15395 child = vfork (); 15396 15397 if (child == 0) { 15398 /* Here is another test for sparc vfork register problems. This 15399 test uses lots of local variables, at least as many local 15400 variables as main has allocated so far including compiler 15401 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15402 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15403 reuse the register of parent for one of the local variables, 15404 since it will think that parent can't possibly be used any more 15405 in this routine. Assigning to the local variable will thus 15406 munge parent in the parent process. */ 15407 pid_t 15408 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15409 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15410 /* Convince the compiler that p..p7 are live; otherwise, it might 15411 use the same hardware register for all 8 local variables. */ 15412 if (p != p1 || p != p2 || p != p3 || p != p4 15413 || p != p5 || p != p6 || p != p7) 15414 _exit(1); 15415 15416 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15417 from child file descriptors. If the child closes a descriptor 15418 before it execs or exits, this munges the parent's descriptor 15419 as well. Test for this by closing stdout in the child. */ 15420 _exit(close(fileno(stdout)) != 0); 15421 } else { 15422 int status; 15423 struct stat st; 15424 15425 while (wait(&status) != child) 15426 ; 15427 return ( 15428 /* Was there some problem with vforking? */ 15429 child < 0 15430 15431 /* Did the child fail? (This shouldn't happen.) */ 15432 || status 15433 15434 /* Did the vfork/compiler bug occur? */ 15435 || parent != getpid() 15436 15437 /* Did the file descriptor bug occur? */ 15438 || fstat(fileno(stdout), &st) != 0 15439 ); 15440 } 15441} 15442_ACEOF 15443if ac_fn_c_try_run "$LINENO"; then : 15444 ac_cv_func_vfork_works=yes 15445else 15446 ac_cv_func_vfork_works=no 15447fi 15448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15449 conftest.$ac_objext conftest.beam conftest.$ac_ext 15450fi 15451 15452fi 15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15454$as_echo "$ac_cv_func_vfork_works" >&6; } 15455 15456fi; 15457if test "x$ac_cv_func_fork_works" = xcross; then 15458 ac_cv_func_vfork_works=$ac_cv_func_vfork 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15460$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15461fi 15462 15463if test "x$ac_cv_func_vfork_works" = xyes; then 15464 15465$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15466 15467else 15468 15469$as_echo "#define vfork fork" >>confdefs.h 15470 15471fi 15472if test "x$ac_cv_func_fork_works" = xyes; then 15473 15474$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 15475 15476fi 15477 15478for ac_func in strerror stpcpy strlwr tcgetattr strtoul mmap sysconf 15479do : 15480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15481ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15482if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15483 cat >>confdefs.h <<_ACEOF 15484#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15485_ACEOF 15486 15487fi 15488done 15489 15490for ac_func in strcasecmp strncasecmp ctermid times unsetenv getpwnam getpwuid 15491do : 15492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15493ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15494if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15495 cat >>confdefs.h <<_ACEOF 15496#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15497_ACEOF 15498 15499fi 15500done 15501 15502for ac_func in memmove gettimeofday getrusage setrlimit clock_gettime 15503do : 15504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15505ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15506if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15507 cat >>confdefs.h <<_ACEOF 15508#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15509_ACEOF 15510 15511fi 15512done 15513 15514for ac_func in atexit raise getpagesize strftime nl_langinfo setlocale 15515do : 15516 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15517ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15518if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15519 cat >>confdefs.h <<_ACEOF 15520#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15521_ACEOF 15522 15523fi 15524done 15525 15526for ac_func in waitpid wait4 sigaction sigprocmask rand pipe stat getaddrinfo 15527do : 15528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15529ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15530if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15531 cat >>confdefs.h <<_ACEOF 15532#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15533_ACEOF 15534 15535fi 15536done 15537 15538for ac_func in fcntl ftruncate inet_ntop 15539do : 15540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15541ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15542if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15543 cat >>confdefs.h <<_ACEOF 15544#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15545_ACEOF 15546 15547fi 15548done 15549 15550ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" 15551if test "x$ac_cv_func_mkdtemp" = xyes; then : 15552 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h 15553 15554else 15555 case " $LIBOBJS " in 15556 *" mkdtemp.$ac_objext "* ) ;; 15557 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" 15558 ;; 15559esac 15560 15561fi 15562 15563ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 15564if test "x$ac_cv_func_timegm" = xyes; then : 15565 $as_echo "#define HAVE_TIMEGM 1" >>confdefs.h 15566 15567else 15568 case " $LIBOBJS " in 15569 *" timegm.$ac_objext "* ) ;; 15570 *) LIBOBJS="$LIBOBJS timegm.$ac_objext" 15571 ;; 15572esac 15573 15574fi 15575 15576ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii" 15577if test "x$ac_cv_func_isascii" = xyes; then : 15578 $as_echo "#define HAVE_ISASCII 1" >>confdefs.h 15579 15580else 15581 case " $LIBOBJS " in 15582 *" isascii.$ac_objext "* ) ;; 15583 *) LIBOBJS="$LIBOBJS isascii.$ac_objext" 15584 ;; 15585esac 15586 15587fi 15588 15589ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 15590if test "x$ac_cv_func_memrchr" = xyes; then : 15591 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h 15592 15593else 15594 case " $LIBOBJS " in 15595 *" memrchr.$ac_objext "* ) ;; 15596 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext" 15597 ;; 15598esac 15599 15600fi 15601 15602ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 15603if test "x$ac_cv_func_strsep" = xyes; then : 15604 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 15605 15606else 15607 case " $LIBOBJS " in 15608 *" strsep.$ac_objext "* ) ;; 15609 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 15610 ;; 15611esac 15612 15613fi 15614 15615 15616 15617ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h> 15618" 15619if test "x$ac_cv_type_struct_sigaction" = xyes; then : 15620 15621cat >>confdefs.h <<_ACEOF 15622#define HAVE_STRUCT_SIGACTION 1 15623_ACEOF 15624 15625 15626fi 15627ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h> 15628" 15629if test "x$ac_cv_type_sigset_t" = xyes; then : 15630 15631cat >>confdefs.h <<_ACEOF 15632#define HAVE_SIGSET_T 1 15633_ACEOF 15634 15635 15636fi 15637 15638 15639# See if getopt is in libiberty. This is of course not optimal since 15640# it might be somewhere other than libiberty, but does cover the 15641# mingw32 case. 15642 15643ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 15644if test "x$ac_cv_func_getopt" = xyes; then : 15645 15646else 15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt in -liberty" >&5 15648$as_echo_n "checking for getopt in -liberty... " >&6; } 15649if ${ac_cv_lib_iberty_getopt+:} false; then : 15650 $as_echo_n "(cached) " >&6 15651else 15652 ac_check_lib_save_LIBS=$LIBS 15653LIBS="-liberty $LIBS" 15654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15655/* end confdefs.h. */ 15656 15657/* Override any GCC internal prototype to avoid an error. 15658 Use char because int might match the return type of a GCC 15659 builtin and then its argument prototype would still apply. */ 15660#ifdef __cplusplus 15661extern "C" 15662#endif 15663char getopt (); 15664int 15665main () 15666{ 15667return getopt (); 15668 ; 15669 return 0; 15670} 15671_ACEOF 15672if ac_fn_c_try_link "$LINENO"; then : 15673 ac_cv_lib_iberty_getopt=yes 15674else 15675 ac_cv_lib_iberty_getopt=no 15676fi 15677rm -f core conftest.err conftest.$ac_objext \ 15678 conftest$ac_exeext conftest.$ac_ext 15679LIBS=$ac_check_lib_save_LIBS 15680fi 15681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_getopt" >&5 15682$as_echo "$ac_cv_lib_iberty_getopt" >&6; } 15683if test "x$ac_cv_lib_iberty_getopt" = xyes; then : 15684 GETOPT="-liberty" 15685 15686fi 15687 15688fi 15689 15690 15691# 15692# check for gethrtime and run a testprogram to see whether 15693# it is broken. It has been reported that some Solaris and HP UX systems 15694# raise an SIGILL 15695# 15696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethrtime" >&5 15697$as_echo_n "checking for gethrtime... " >&6; } 15698if ${gnupg_cv_func_gethrtime+:} false; then : 15699 $as_echo_n "(cached) " >&6 15700else 15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15702/* end confdefs.h. */ 15703#include <sys/times.h> 15704int 15705main () 15706{ 15707 15708 hrtime_t tv; 15709 tv = gethrtime(); 15710 15711 ; 15712 return 0; 15713} 15714_ACEOF 15715if ac_fn_c_try_link "$LINENO"; then : 15716 gnupg_cv_func_gethrtime=yes 15717else 15718 gnupg_cv_func_gethrtime=no 15719fi 15720rm -f core conftest.err conftest.$ac_objext \ 15721 conftest$ac_exeext conftest.$ac_ext 15722 15723fi 15724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_gethrtime" >&5 15725$as_echo "$gnupg_cv_func_gethrtime" >&6; } 15726if test $gnupg_cv_func_gethrtime = yes; then 15727 15728$as_echo "#define HAVE_GETHRTIME 1" >>confdefs.h 15729 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethrtime is broken" >&5 15731$as_echo_n "checking whether gethrtime is broken... " >&6; } 15732if ${gnupg_cv_func_broken_gethrtime+:} false; then : 15733 $as_echo_n "(cached) " >&6 15734else 15735 if test "$cross_compiling" = yes; then : 15736 gnupg_cv_func_broken_gethrtime=assume-no 15737else 15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15739/* end confdefs.h. */ 15740 15741 #include <sys/times.h> 15742 int main () { 15743 hrtime_t tv; 15744 tv = gethrtime(); 15745 } 15746 15747_ACEOF 15748if ac_fn_c_try_run "$LINENO"; then : 15749 gnupg_cv_func_broken_gethrtime=no 15750else 15751 gnupg_cv_func_broken_gethrtime=yes 15752fi 15753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15754 conftest.$ac_objext conftest.beam conftest.$ac_ext 15755fi 15756 15757 15758fi 15759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_broken_gethrtime" >&5 15760$as_echo "$gnupg_cv_func_broken_gethrtime" >&6; } 15761 if test $gnupg_cv_func_broken_gethrtime = yes; then 15762 15763$as_echo "#define HAVE_BROKEN_GETHRTIME 1" >>confdefs.h 15764 15765 fi 15766fi 15767 15768 15769 for ac_func in mlock 15770do : 15771 ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock" 15772if test "x$ac_cv_func_mlock" = xyes; then : 15773 cat >>confdefs.h <<_ACEOF 15774#define HAVE_MLOCK 1 15775_ACEOF 15776 15777fi 15778done 15779 15780 if test "$ac_cv_func_mlock" = "no"; then 15781 for ac_header in sys/mman.h 15782do : 15783 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 15784if test "x$ac_cv_header_sys_mman_h" = xyes; then : 15785 cat >>confdefs.h <<_ACEOF 15786#define HAVE_SYS_MMAN_H 1 15787_ACEOF 15788 15789fi 15790 15791done 15792 15793 if test "$ac_cv_header_sys_mman_h" = "yes"; then 15794 # Add librt to LIBS: 15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5 15796$as_echo_n "checking for memlk in -lrt... " >&6; } 15797if ${ac_cv_lib_rt_memlk+:} false; then : 15798 $as_echo_n "(cached) " >&6 15799else 15800 ac_check_lib_save_LIBS=$LIBS 15801LIBS="-lrt $LIBS" 15802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15803/* end confdefs.h. */ 15804 15805/* Override any GCC internal prototype to avoid an error. 15806 Use char because int might match the return type of a GCC 15807 builtin and then its argument prototype would still apply. */ 15808#ifdef __cplusplus 15809extern "C" 15810#endif 15811char memlk (); 15812int 15813main () 15814{ 15815return memlk (); 15816 ; 15817 return 0; 15818} 15819_ACEOF 15820if ac_fn_c_try_link "$LINENO"; then : 15821 ac_cv_lib_rt_memlk=yes 15822else 15823 ac_cv_lib_rt_memlk=no 15824fi 15825rm -f core conftest.err conftest.$ac_objext \ 15826 conftest$ac_exeext conftest.$ac_ext 15827LIBS=$ac_check_lib_save_LIBS 15828fi 15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5 15830$as_echo "$ac_cv_lib_rt_memlk" >&6; } 15831if test "x$ac_cv_lib_rt_memlk" = xyes; then : 15832 cat >>confdefs.h <<_ACEOF 15833#define HAVE_LIBRT 1 15834_ACEOF 15835 15836 LIBS="-lrt $LIBS" 15837 15838fi 15839 15840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5 15841$as_echo_n "checking whether mlock is in sys/mman.h... " >&6; } 15842if ${gnupg_cv_mlock_is_in_sys_mman+:} false; then : 15843 $as_echo_n "(cached) " >&6 15844else 15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15846/* end confdefs.h. */ 15847 15848 #include <assert.h> 15849 #ifdef HAVE_SYS_MMAN_H 15850 #include <sys/mman.h> 15851 #endif 15852 15853int 15854main () 15855{ 15856 15857 int i; 15858 15859 /* glibc defines this for functions which it implements 15860 * to always fail with ENOSYS. Some functions are actually 15861 * named something starting with __ and the normal name 15862 * is an alias. */ 15863 #if defined (__stub_mlock) || defined (__stub___mlock) 15864 choke me 15865 #else 15866 mlock(&i, 4); 15867 #endif 15868 ; return 0; 15869 15870 ; 15871 return 0; 15872} 15873_ACEOF 15874if ac_fn_c_try_link "$LINENO"; then : 15875 gnupg_cv_mlock_is_in_sys_mman=yes 15876else 15877 gnupg_cv_mlock_is_in_sys_mman=no 15878fi 15879rm -f core conftest.err conftest.$ac_objext \ 15880 conftest$ac_exeext conftest.$ac_ext 15881fi 15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5 15883$as_echo "$gnupg_cv_mlock_is_in_sys_mman" >&6; } 15884 if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then 15885 15886$as_echo "#define HAVE_MLOCK 1" >>confdefs.h 15887 15888 fi 15889 fi 15890 fi 15891 if test "$ac_cv_func_mlock" = "yes"; then 15892 for ac_func in sysconf getpagesize 15893do : 15894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15895ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15896if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15897 cat >>confdefs.h <<_ACEOF 15898#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15899_ACEOF 15900 15901fi 15902done 15903 15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5 15905$as_echo_n "checking whether mlock is broken... " >&6; } 15906 if ${gnupg_cv_have_broken_mlock+:} false; then : 15907 $as_echo_n "(cached) " >&6 15908else 15909 if test "$cross_compiling" = yes; then : 15910 gnupg_cv_have_broken_mlock="assume-no" 15911 15912else 15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15914/* end confdefs.h. */ 15915 15916#include <stdlib.h> 15917#include <unistd.h> 15918#include <errno.h> 15919#include <sys/mman.h> 15920#include <sys/types.h> 15921#include <fcntl.h> 15922 15923int main() 15924{ 15925 char *pool; 15926 int err; 15927 long int pgsize; 15928 15929#if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE) 15930 pgsize = sysconf(_SC_PAGESIZE); 15931#elif defined(HAVE_GETPAGESIZE) 15932 pgsize = getpagesize(); 15933#else 15934 pgsize = -1; 15935#endif 15936 15937 if(pgsize==-1) 15938 pgsize = 4096; 15939 15940 pool = malloc( 4096 + pgsize ); 15941 if( !pool ) 15942 return 2; 15943 pool += (pgsize - ((long int)pool % pgsize)); 15944 15945 err = mlock( pool, 4096 ); 15946 if( !err || errno == EPERM ) 15947 return 0; /* okay */ 15948 15949 return 1; /* hmmm */ 15950} 15951 15952 15953_ACEOF 15954if ac_fn_c_try_run "$LINENO"; then : 15955 gnupg_cv_have_broken_mlock="no" 15956else 15957 gnupg_cv_have_broken_mlock="yes" 15958fi 15959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15960 conftest.$ac_objext conftest.beam conftest.$ac_ext 15961fi 15962 15963 15964fi 15965 15966 if test "$gnupg_cv_have_broken_mlock" = "yes"; then 15967 15968$as_echo "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h 15969 15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15971$as_echo "yes" >&6; } 15972 for ac_func in plock 15973do : 15974 ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock" 15975if test "x$ac_cv_func_plock" = xyes; then : 15976 cat >>confdefs.h <<_ACEOF 15977#define HAVE_PLOCK 1 15978_ACEOF 15979 15980fi 15981done 15982 15983 else 15984 if test "$gnupg_cv_have_broken_mlock" = "no"; then 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15986$as_echo "no" >&6; } 15987 else 15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5 15989$as_echo "assuming no" >&6; } 15990 fi 15991 fi 15992 fi 15993 15994for ac_header in sys/stat.h unistd.h direct.h 15995do : 15996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15997ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15998if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15999 cat >>confdefs.h <<_ACEOF 16000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16001_ACEOF 16002 16003fi 16004 16005done 16006 16007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5 16008$as_echo_n "checking if mkdir takes one argument... " >&6; } 16009if ${gnupg_cv_mkdir_takes_one_arg+:} false; then : 16010 $as_echo_n "(cached) " >&6 16011else 16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16013/* end confdefs.h. */ 16014 16015#include <sys/types.h> 16016#ifdef HAVE_SYS_STAT_H 16017# include <sys/stat.h> 16018#endif 16019#ifdef HAVE_UNISTD_H 16020# include <unistd.h> 16021#endif 16022#ifdef HAVE_DIRECT_H 16023# include <direct.h> 16024#endif 16025int 16026main () 16027{ 16028mkdir ("foo", 0); 16029 ; 16030 return 0; 16031} 16032_ACEOF 16033if ac_fn_c_try_compile "$LINENO"; then : 16034 gnupg_cv_mkdir_takes_one_arg=no 16035else 16036 gnupg_cv_mkdir_takes_one_arg=yes 16037fi 16038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16039fi 16040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5 16041$as_echo "$gnupg_cv_mkdir_takes_one_arg" >&6; } 16042if test $gnupg_cv_mkdir_takes_one_arg = yes ; then 16043 16044$as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h 16045 16046fi 16047 16048 16049# 16050# Prepare building of estream-printf 16051# 16052 16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system features for estream-printf" >&5 16054$as_echo "$as_me: checking system features for estream-printf" >&6;} 16055 for ac_header in stdint.h 16056do : 16057 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 16058if test "x$ac_cv_header_stdint_h" = xyes; then : 16059 cat >>confdefs.h <<_ACEOF 16060#define HAVE_STDINT_H 1 16061_ACEOF 16062 16063fi 16064 16065done 16066 16067 16068 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 16070$as_echo_n "checking for long long int... " >&6; } 16071if ${ac_cv_type_long_long_int+:} false; then : 16072 $as_echo_n "(cached) " >&6 16073else 16074 ac_cv_type_long_long_int=yes 16075 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 16076 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 16077 if test $ac_cv_type_long_long_int = yes; then 16078 if test "$cross_compiling" = yes; then : 16079 : 16080else 16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16082/* end confdefs.h. */ 16083#include <limits.h> 16084 #ifndef LLONG_MAX 16085 # define HALF \ 16086 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 16087 # define LLONG_MAX (HALF - 1 + HALF) 16088 #endif 16089int 16090main () 16091{ 16092long long int n = 1; 16093 int i; 16094 for (i = 0; ; i++) 16095 { 16096 long long int m = n << i; 16097 if (m >> i != n) 16098 return 1; 16099 if (LLONG_MAX / 2 < m) 16100 break; 16101 } 16102 return 0; 16103 ; 16104 return 0; 16105} 16106_ACEOF 16107if ac_fn_c_try_run "$LINENO"; then : 16108 16109else 16110 ac_cv_type_long_long_int=no 16111fi 16112rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16113 conftest.$ac_objext conftest.beam conftest.$ac_ext 16114fi 16115 16116 fi 16117 fi 16118fi 16119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 16120$as_echo "$ac_cv_type_long_long_int" >&6; } 16121 if test $ac_cv_type_long_long_int = yes; then 16122 16123$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 16124 16125 fi 16126 16127 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 16129$as_echo_n "checking for long double... " >&6; } 16130if ${ac_cv_type_long_double+:} false; then : 16131 $as_echo_n "(cached) " >&6 16132else 16133 if test "$GCC" = yes; then 16134 ac_cv_type_long_double=yes 16135 else 16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138/* The Stardent Vistra knows sizeof (long double), but does 16139 not support it. */ 16140 long double foo = 0.0L; 16141int 16142main () 16143{ 16144static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 16145 sizeof (double) <= sizeof (long double))]; 16146test_array [0] = 0; 16147return test_array [0]; 16148 16149 ; 16150 return 0; 16151} 16152_ACEOF 16153if ac_fn_c_try_compile "$LINENO"; then : 16154 ac_cv_type_long_double=yes 16155else 16156 ac_cv_type_long_double=no 16157fi 16158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16159 fi 16160fi 16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 16162$as_echo "$ac_cv_type_long_double" >&6; } 16163 if test $ac_cv_type_long_double = yes; then 16164 16165$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 16166 16167 fi 16168 16169 16170 16171 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 16172if test "x$ac_cv_type_intmax_t" = xyes; then : 16173 16174$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 16175 16176else 16177 test $ac_cv_type_long_long_int = yes \ 16178 && ac_type='long long int' \ 16179 || ac_type='long int' 16180 16181cat >>confdefs.h <<_ACEOF 16182#define intmax_t $ac_type 16183_ACEOF 16184 16185fi 16186 16187 16188 16189 16190 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 16191if test "x$ac_cv_type_uintmax_t" = xyes; then : 16192 16193$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 16194 16195else 16196 test $ac_cv_type_unsigned_long_long_int = yes \ 16197 && ac_type='unsigned long long int' \ 16198 || ac_type='unsigned long int' 16199 16200cat >>confdefs.h <<_ACEOF 16201#define uintmax_t $ac_type 16202_ACEOF 16203 16204fi 16205 16206 16207 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 16208if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 16209 16210cat >>confdefs.h <<_ACEOF 16211#define HAVE_PTRDIFF_T 1 16212_ACEOF 16213 16214 16215fi 16216 16217 # The cast to long int works around a bug in the HP C Compiler 16218# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16219# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16220# This bug is HP SR number 8606223364. 16221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 16222$as_echo_n "checking size of unsigned long... " >&6; } 16223if ${ac_cv_sizeof_unsigned_long+:} false; then : 16224 $as_echo_n "(cached) " >&6 16225else 16226 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 16227 16228else 16229 if test "$ac_cv_type_unsigned_long" = yes; then 16230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16232as_fn_error 77 "cannot compute sizeof (unsigned long) 16233See \`config.log' for more details" "$LINENO" 5; } 16234 else 16235 ac_cv_sizeof_unsigned_long=0 16236 fi 16237fi 16238 16239fi 16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 16241$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 16242 16243 16244 16245cat >>confdefs.h <<_ACEOF 16246#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 16247_ACEOF 16248 16249 16250 # The cast to long int works around a bug in the HP C Compiler 16251# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16252# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16253# This bug is HP SR number 8606223364. 16254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 16255$as_echo_n "checking size of void *... " >&6; } 16256if ${ac_cv_sizeof_void_p+:} false; then : 16257 $as_echo_n "(cached) " >&6 16258else 16259 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 16260 16261else 16262 if test "$ac_cv_type_void_p" = yes; then 16263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16265as_fn_error 77 "cannot compute sizeof (void *) 16266See \`config.log' for more details" "$LINENO" 5; } 16267 else 16268 ac_cv_sizeof_void_p=0 16269 fi 16270fi 16271 16272fi 16273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 16274$as_echo "$ac_cv_sizeof_void_p" >&6; } 16275 16276 16277 16278cat >>confdefs.h <<_ACEOF 16279#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 16280_ACEOF 16281 16282 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and THOUSANDS_SEP" >&5 16284$as_echo_n "checking for nl_langinfo and THOUSANDS_SEP... " >&6; } 16285if ${estream_cv_langinfo_thousands_sep+:} false; then : 16286 $as_echo_n "(cached) " >&6 16287else 16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16289/* end confdefs.h. */ 16290#include <langinfo.h> 16291int 16292main () 16293{ 16294char* cs = nl_langinfo(THOUSANDS_SEP); return !cs; 16295 ; 16296 return 0; 16297} 16298_ACEOF 16299if ac_fn_c_try_link "$LINENO"; then : 16300 estream_cv_langinfo_thousands_sep=yes 16301else 16302 estream_cv_langinfo_thousands_sep=no 16303fi 16304rm -f core conftest.err conftest.$ac_objext \ 16305 conftest$ac_exeext conftest.$ac_ext 16306 16307fi 16308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $estream_cv_langinfo_thousands_sep" >&5 16309$as_echo "$estream_cv_langinfo_thousands_sep" >&6; } 16310 if test $estream_cv_langinfo_thousands_sep = yes; then 16311 16312$as_echo "#define HAVE_LANGINFO_THOUSANDS_SEP 1" >>confdefs.h 16313 16314 fi 16315 16316 16317 16318if test "$use_capabilities" = "yes" ; then 16319 16320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16321*** 16322*** WARNING: using capabilities with GnuPG is experimental code! 16323***" >&5 16324$as_echo "$as_me: WARNING: 16325*** 16326*** WARNING: using capabilities with GnuPG is experimental code! 16327***" >&2;} 16328 16329use_capabilities=no 16330for ac_header in sys/capability.h 16331do : 16332 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 16333if test "x$ac_cv_header_sys_capability_h" = xyes; then : 16334 cat >>confdefs.h <<_ACEOF 16335#define HAVE_SYS_CAPABILITY_H 1 16336_ACEOF 16337 16338fi 16339 16340done 16341 16342if test "$ac_cv_header_sys_capability_h" = "yes" ; then 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 16344$as_echo_n "checking for cap_init in -lcap... " >&6; } 16345if ${ac_cv_lib_cap_cap_init+:} false; then : 16346 $as_echo_n "(cached) " >&6 16347else 16348 ac_check_lib_save_LIBS=$LIBS 16349LIBS="-lcap $LIBS" 16350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16351/* end confdefs.h. */ 16352 16353/* Override any GCC internal prototype to avoid an error. 16354 Use char because int might match the return type of a GCC 16355 builtin and then its argument prototype would still apply. */ 16356#ifdef __cplusplus 16357extern "C" 16358#endif 16359char cap_init (); 16360int 16361main () 16362{ 16363return cap_init (); 16364 ; 16365 return 0; 16366} 16367_ACEOF 16368if ac_fn_c_try_link "$LINENO"; then : 16369 ac_cv_lib_cap_cap_init=yes 16370else 16371 ac_cv_lib_cap_cap_init=no 16372fi 16373rm -f core conftest.err conftest.$ac_objext \ 16374 conftest$ac_exeext conftest.$ac_ext 16375LIBS=$ac_check_lib_save_LIBS 16376fi 16377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 16378$as_echo "$ac_cv_lib_cap_cap_init" >&6; } 16379if test "x$ac_cv_lib_cap_cap_init" = xyes; then : 16380 ac_need_libcap=1 16381fi 16382 16383 if test "$ac_cv_lib_cap_cap_init" = "yes"; then 16384 16385$as_echo "#define USE_CAPABILITIES 1" >>confdefs.h 16386 16387 CAPLIBS="-lcap" 16388 16389 use_capabilities=yes 16390 fi 16391fi 16392if test "$use_capabilities" = "no" ; then 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16394*** 16395*** The use of capabilities on this system is not possible. 16396*** You need a recent Linux kernel and some patches: 16397*** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9) 16398*** fcap-module-990613.tar.gz (kernel module) 16399*** libcap-1.92.tar.gz (user mode library and utilities) 16400*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN 16401*** set (filesystems menu). Be warned: This code is *really* ALPHA. 16402***" >&5 16403$as_echo "$as_me: WARNING: 16404*** 16405*** The use of capabilities on this system is not possible. 16406*** You need a recent Linux kernel and some patches: 16407*** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9) 16408*** fcap-module-990613.tar.gz (kernel module) 16409*** libcap-1.92.tar.gz (user mode library and utilities) 16410*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN 16411*** set (filesystems menu). Be warned: This code is *really* ALPHA. 16412***" >&2;} 16413fi 16414fi 16415 16416 16417 for ac_header in sys/ipc.h sys/shm.h 16418do : 16419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16420ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16421if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16422 cat >>confdefs.h <<_ACEOF 16423#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16424_ACEOF 16425 16426fi 16427 16428done 16429 16430 if test "$ac_cv_header_sys_shm_h" = "yes"; then 16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPC_RMID allowes subsequent attaches" >&5 16432$as_echo_n "checking whether IPC_RMID allowes subsequent attaches... " >&6; } 16433 if ${gnupg_cv_ipc_rmid_deferred_release+:} false; then : 16434 $as_echo_n "(cached) " >&6 16435else 16436 if test "$cross_compiling" = yes; then : 16437 gnupg_cv_ipc_rmid_deferred_release="assume-no" 16438else 16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16440/* end confdefs.h. */ 16441 16442 #include <sys/types.h> 16443 #include <sys/ipc.h> 16444 #include <sys/shm.h> 16445 int main() 16446 { 16447 int id; 16448 char *shmaddr; 16449 id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777); 16450 if (id == -1) 16451 exit (2); 16452 shmaddr = shmat (id, 0, 0); 16453 shmctl (id, IPC_RMID, 0); 16454 if ((char*) shmat (id, 0, 0) == (char*) -1) 16455 { 16456 shmdt (shmaddr); 16457 exit (1); 16458 } 16459 shmdt (shmaddr); 16460 shmdt (shmaddr); 16461 exit (0); 16462 } 16463 16464_ACEOF 16465if ac_fn_c_try_run "$LINENO"; then : 16466 gnupg_cv_ipc_rmid_deferred_release="yes" 16467else 16468 gnupg_cv_ipc_rmid_deferred_release="no" 16469fi 16470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16471 conftest.$ac_objext conftest.beam conftest.$ac_ext 16472fi 16473 16474 16475fi 16476 16477 if test "$gnupg_cv_ipc_rmid_deferred_release" = "yes"; then 16478 16479$as_echo "#define IPC_RMID_DEFERRED_RELEASE 1" >>confdefs.h 16480 16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16482$as_echo "yes" >&6; } 16483 else 16484 if test "$gnupg_cv_ipc_rmid_deferred_release" = "no"; then 16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16486$as_echo "no" >&6; } 16487 else 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5 16489$as_echo "assuming no" >&6; } 16490 fi 16491 fi 16492 16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SHM_LOCK is available" >&5 16494$as_echo_n "checking whether SHM_LOCK is available... " >&6; } 16495 if ${gnupg_cv_ipc_have_shm_lock+:} false; then : 16496 $as_echo_n "(cached) " >&6 16497else 16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16499/* end confdefs.h. */ 16500#include <sys/types.h> 16501 #include <sys/ipc.h> 16502 #include <sys/shm.h> 16503int 16504main () 16505{ 16506 16507 int shm_id; 16508 shmctl(shm_id, SHM_LOCK, 0); 16509 16510 ; 16511 return 0; 16512} 16513_ACEOF 16514if ac_fn_c_try_compile "$LINENO"; then : 16515 gnupg_cv_ipc_have_shm_lock="yes" 16516else 16517 gnupg_cv_ipc_have_shm_lock="no" 16518 16519fi 16520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16521 16522fi 16523 16524 if test "$gnupg_cv_ipc_have_shm_lock" = "yes"; then 16525 16526$as_echo "#define IPC_HAVE_SHM_LOCK 1" >>confdefs.h 16527 16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16529$as_echo "yes" >&6; } 16530 else 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16532$as_echo "no" >&6; } 16533 fi 16534 fi 16535 16536if test "$ac_cv_header_sys_shm_h" = "yes"; then 16537 16538$as_echo "#define USE_SHM_COPROCESSING 1" >>confdefs.h 16539 16540fi 16541 16542 if test "$ac_cv_header_sys_shm_h" = yes; then 16543 HAVE_SHM_TRUE= 16544 HAVE_SHM_FALSE='#' 16545else 16546 HAVE_SHM_TRUE='#' 16547 HAVE_SHM_FALSE= 16548fi 16549 16550 16551if test "$try_dev_random" = yes ; then 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5 16553$as_echo_n "checking for random device... " >&6; } 16554if ${ac_cv_have_dev_random+:} false; then : 16555 $as_echo_n "(cached) " >&6 16556else 16557 if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then 16558 ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi 16559fi 16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5 16561$as_echo "$ac_cv_have_dev_random" >&6; } 16562 if test "$ac_cv_have_dev_random" = yes; then 16563 16564$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h 16565 16566 fi 16567else 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5 16569$as_echo_n "checking for random device... " >&6; } 16570 ac_cv_have_dev_random=no 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5 16572$as_echo "has been disabled" >&6; } 16573fi 16574 16575 16576random_modules="" 16577if test "$use_static_rnd" = default; then 16578 if test "$ac_cv_have_dev_random" = yes; then 16579 random_modules="rndlinux" 16580 else 16581 case "${host}" in 16582 *-mingw32*|*-*-cygwin*) 16583 random_modules="rndw32" 16584 ;; 16585 i?86-emx-os2|i?86-*-os2*emx) 16586 random_modules="rndos2" 16587 ;; 16588 m68k-atari-mint) 16589 random_modules="rndatari" 16590 ;; 16591 i?86-*-msdosdjgpp*) 16592 : 16593 ;; 16594 *) 16595 random_modules="rndlinux rndegd rndunix" 16596 16597$as_echo "#define USE_ALL_RANDOM_MODULES 1" >>confdefs.h 16598 16599 ;; 16600 esac 16601 fi 16602else 16603 if test "$use_static_rnd" = auto; then 16604 random_modules="rndlinux rndegd rndunix" 16605 $as_echo "#define USE_ALL_RANDOM_MODULES 1" >>confdefs.h 16606 16607 else 16608 random_modules="rnd$use_static_rnd"; 16609 fi 16610fi 16611 16612if test -z "$random_modules"; then 16613 as_fn_error $? "no random module available" "$LINENO" 5 16614fi 16615print_egd_warning=no 16616for rndmod in $random_modules "" ; do 16617 case "$rndmod" in 16618 rndlinux) 16619 16620$as_echo "#define USE_RNDLINUX 1" >>confdefs.h 16621 16622 use_rndlinux=yes 16623 ;; 16624 rndunix) 16625 16626$as_echo "#define USE_RNDUNIX 1" >>confdefs.h 16627 16628 print_egd_warning=yes 16629 use_rndunix=yes 16630 ;; 16631 rndegd) 16632 16633$as_echo "#define USE_RNDEGD 1" >>confdefs.h 16634 16635 use_rndegd=yes 16636 ;; 16637 rndw32) 16638 16639$as_echo "#define USE_RNDW32 1" >>confdefs.h 16640 16641 use_rndw32=yes 16642 ;; 16643 esac 16644done 16645 16646 if test "$use_rndlinux" = yes; then 16647 USE_RNDLINUX_TRUE= 16648 USE_RNDLINUX_FALSE='#' 16649else 16650 USE_RNDLINUX_TRUE='#' 16651 USE_RNDLINUX_FALSE= 16652fi 16653 16654 if test "$use_rndunix" = yes; then 16655 USE_RNDUNIX_TRUE= 16656 USE_RNDUNIX_FALSE='#' 16657else 16658 USE_RNDUNIX_TRUE='#' 16659 USE_RNDUNIX_FALSE= 16660fi 16661 16662 if test "$use_rndegd" = yes; then 16663 USE_RNDEGD_TRUE= 16664 USE_RNDEGD_FALSE='#' 16665else 16666 USE_RNDEGD_TRUE='#' 16667 USE_RNDEGD_FALSE= 16668fi 16669 16670 if test "$use_rndw32" = yes; then 16671 USE_RNDW32_TRUE= 16672 USE_RNDW32_FALSE='#' 16673else 16674 USE_RNDW32_TRUE='#' 16675 USE_RNDW32_FALSE= 16676fi 16677 16678 16679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi assembler functions" >&5 16680$as_echo_n "checking for mpi assembler functions... " >&6; } 16681if test -f $srcdir/mpi/config.links ; then 16682 . $srcdir/mpi/config.links 16683 ac_config_links="$ac_config_links "$mpi_ln_list"" 16684 16685 ac_cv_mpi_extra_asm_modules="$mpi_extra_modules" 16686 ac_cv_mpi_sflags="$mpi_sflags" 16687 ac_cv_mpi_config_done="yes" 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16689$as_echo "done" >&6; } 16690else 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 16692$as_echo "failed" >&6; } 16693 as_fn_error $? "mpi/config.links missing!" "$LINENO" 5 16694fi 16695MPI_EXTRA_ASM_OBJS="" 16696show_extraasm="" 16697if test "$ac_cv_mpi_extra_asm_modules" != ""; then 16698for i in $ac_cv_mpi_extra_asm_modules; do 16699 show_extraasm="$show_extraasm $i" 16700 MPI_EXTRA_ASM_OBJS="$MPI_EXTRA_ASM_OBJS $i.o" 16701done 16702fi 16703 16704MPI_SFLAGS="$ac_cv_mpi_sflags" 16705 16706 16707# Sanity check regex. Tests adapted from mutt. 16708 16709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether regular expression support is requested" >&5 16710$as_echo_n "checking whether regular expression support is requested... " >&6; } 16711# Check whether --enable-regex was given. 16712if test "${enable_regex+set}" = set; then : 16713 enableval=$enable_regex; use_regex=$enableval 16714else 16715 use_regex=yes 16716fi 16717 16718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_regex" >&5 16719$as_echo "$use_regex" >&6; } 16720 16721if test "$use_regex" = yes ; then 16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the included regex lib is requested" >&5 16723$as_echo_n "checking whether the included regex lib is requested... " >&6; } 16724 16725# Check whether --with-included-regex was given. 16726if test "${with_included_regex+set}" = set; then : 16727 withval=$with_included_regex; gnupg_cv_included_regex="$withval" 16728else 16729 gnupg_cv_included_regex=no 16730fi 16731 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_included_regex" >&5 16733$as_echo "$gnupg_cv_included_regex" >&6; } 16734 16735 if test $gnupg_cv_included_regex = no ; then 16736 # Does the system have regex functions at all? 16737 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp" 16738if test "x$ac_cv_func_regcomp" = xyes; then : 16739 gnupg_cv_included_regex=no 16740else 16741 gnupg_cv_included_regex=yes 16742fi 16743 16744 fi 16745 16746 if test $gnupg_cv_included_regex = no ; then 16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system's regexp library is broken" >&5 16748$as_echo_n "checking whether your system's regexp library is broken... " >&6; } 16749if ${gnupg_cv_regex_broken+:} false; then : 16750 $as_echo_n "(cached) " >&6 16751else 16752 if test "$cross_compiling" = yes; then : 16753 gnupg_cv_regex_broken=yes 16754else 16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16756/* end confdefs.h. */ 16757 16758#include <unistd.h> 16759#include <regex.h> 16760main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); } 16761_ACEOF 16762if ac_fn_c_try_run "$LINENO"; then : 16763 gnupg_cv_regex_broken=no 16764else 16765 gnupg_cv_regex_broken=yes 16766fi 16767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16768 conftest.$ac_objext conftest.beam conftest.$ac_ext 16769fi 16770 16771fi 16772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_regex_broken" >&5 16773$as_echo "$gnupg_cv_regex_broken" >&6; } 16774 16775 if test $gnupg_cv_regex_broken = yes ; then 16776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your regex is broken - using the included GNU regex instead." >&5 16777$as_echo "$as_me: WARNING: your regex is broken - using the included GNU regex instead." >&2;} 16778 gnupg_cv_included_regex=yes 16779 fi 16780 fi 16781 16782 if test $gnupg_cv_included_regex = yes; then 16783 16784$as_echo "#define USE_INTERNAL_REGEX 1" >>confdefs.h 16785 16786 fi 16787else 16788 16789$as_echo "#define DISABLE_REGEX 1" >>confdefs.h 16790 16791fi 16792 16793 if test x"$gnupg_cv_included_regex" = xyes; then 16794 USE_INTERNAL_REGEX_TRUE= 16795 USE_INTERNAL_REGEX_FALSE='#' 16796else 16797 USE_INTERNAL_REGEX_TRUE='#' 16798 USE_INTERNAL_REGEX_FALSE= 16799fi 16800 16801 16802use_local_zlib=yes 16803if test "$g10_force_zlib" = "yes"; then 16804 : 16805else 16806 _cppflags="${CPPFLAGS}" 16807 _ldflags="${LDFLAGS}" 16808 16809 16810# Check whether --with-zlib was given. 16811if test "${with_zlib+set}" = set; then : 16812 withval=$with_zlib; 16813 if test -d "$withval"; then 16814 CPPFLAGS="${CPPFLAGS} -I$withval/include" 16815 LDFLAGS="${LDFLAGS} -L$withval/lib" 16816 fi 16817 16818fi 16819 16820 16821 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 16822if test "x$ac_cv_header_zlib_h" = xyes; then : 16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5 16824$as_echo_n "checking for deflateInit2_ in -lz... " >&6; } 16825if ${ac_cv_lib_z_deflateInit2_+:} false; then : 16826 $as_echo_n "(cached) " >&6 16827else 16828 ac_check_lib_save_LIBS=$LIBS 16829LIBS="-lz $LIBS" 16830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16831/* end confdefs.h. */ 16832 16833/* Override any GCC internal prototype to avoid an error. 16834 Use char because int might match the return type of a GCC 16835 builtin and then its argument prototype would still apply. */ 16836#ifdef __cplusplus 16837extern "C" 16838#endif 16839char deflateInit2_ (); 16840int 16841main () 16842{ 16843return deflateInit2_ (); 16844 ; 16845 return 0; 16846} 16847_ACEOF 16848if ac_fn_c_try_link "$LINENO"; then : 16849 ac_cv_lib_z_deflateInit2_=yes 16850else 16851 ac_cv_lib_z_deflateInit2_=no 16852fi 16853rm -f core conftest.err conftest.$ac_objext \ 16854 conftest$ac_exeext conftest.$ac_ext 16855LIBS=$ac_check_lib_save_LIBS 16856fi 16857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5 16858$as_echo "$ac_cv_lib_z_deflateInit2_" >&6; } 16859if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then : 16860 use_local_zlib=no 16861 ZLIBS="-lz" 16862else 16863 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags} 16864fi 16865 16866else 16867 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags} 16868fi 16869 16870 16871fi 16872 16873if test "$use_local_zlib" = yes ; then 16874 ac_config_links="$ac_config_links zlib.h:zlib/zlib.h zconf.h:zlib/zconf.h" 16875 16876 ZLIBS="../zlib/libzlib.a" 16877fi 16878 16879 if test "$use_local_zlib" = yes; then 16880 ENABLE_LOCAL_ZLIB_TRUE= 16881 ENABLE_LOCAL_ZLIB_FALSE='#' 16882else 16883 ENABLE_LOCAL_ZLIB_TRUE='#' 16884 ENABLE_LOCAL_ZLIB_FALSE= 16885fi 16886 16887 16888 16889# Under W32 we force the use ofthe included bzip2 code. 16890if test x"$have_w32_system" = xyes ; then 16891 have_bz2=yes 16892 16893$as_echo "#define HAVE_BZIP2 1" >>confdefs.h 16894 16895 ac_config_links="$ac_config_links bzlib.h:bzlib/bzlib.h" 16896 16897 ZLIBS="$ZLIBS ../bzlib/libbz2.a" 16898else 16899 if test "$use_bzip2" = yes ; then 16900 _cppflags="${CPPFLAGS}" 16901 _ldflags="${LDFLAGS}" 16902 16903# Check whether --with-bzip2 was given. 16904if test "${with_bzip2+set}" = set; then : 16905 withval=$with_bzip2; 16906 if test -d "$withval" ; then 16907 CPPFLAGS="${CPPFLAGS} -I$withval/include" 16908 LDFLAGS="${LDFLAGS} -L$withval/lib" 16909 fi 16910 16911else 16912 withval="" 16913fi 16914 16915 16916# Checking alongside stdio.h as an early version of bzip2 (1.0) 16917# required stdio.h to be included before bzlib.h, and Solaris 9 is 16918# woefully out of date. 16919 16920 if test "$withval" != no ; then 16921 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h> 16922" 16923if test "x$ac_cv_header_bzlib_h" = xyes; then : 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5 16925$as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; } 16926if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then : 16927 $as_echo_n "(cached) " >&6 16928else 16929 ac_check_lib_save_LIBS=$LIBS 16930LIBS="-lbz2 $LIBS" 16931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16932/* end confdefs.h. */ 16933 16934/* Override any GCC internal prototype to avoid an error. 16935 Use char because int might match the return type of a GCC 16936 builtin and then its argument prototype would still apply. */ 16937#ifdef __cplusplus 16938extern "C" 16939#endif 16940char BZ2_bzCompressInit (); 16941int 16942main () 16943{ 16944return BZ2_bzCompressInit (); 16945 ; 16946 return 0; 16947} 16948_ACEOF 16949if ac_fn_c_try_link "$LINENO"; then : 16950 ac_cv_lib_bz2_BZ2_bzCompressInit=yes 16951else 16952 ac_cv_lib_bz2_BZ2_bzCompressInit=no 16953fi 16954rm -f core conftest.err conftest.$ac_objext \ 16955 conftest$ac_exeext conftest.$ac_ext 16956LIBS=$ac_check_lib_save_LIBS 16957fi 16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 16959$as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; } 16960if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then : 16961 16962 have_bz2=yes 16963 ZLIBS="$ZLIBS -lbz2" 16964 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h 16965 16966 16967else 16968 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags} 16969fi 16970 16971else 16972 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags} 16973fi 16974 16975 16976 fi 16977 fi 16978fi 16979 16980 if test x"$have_bz2" = "xyes"; then 16981 ENABLE_BZIP2_SUPPORT_TRUE= 16982 ENABLE_BZIP2_SUPPORT_FALSE='#' 16983else 16984 ENABLE_BZIP2_SUPPORT_TRUE='#' 16985 ENABLE_BZIP2_SUPPORT_FALSE= 16986fi 16987 16988 16989 16990# libusb allows us to use the integrated CCID smartcard reader driver. 16991# We don't need it if we don't have card support though. 16992if test "$card_support" = yes ; then 16993 16994 16995# Check whether --with-libusb was given. 16996if test "${with_libusb+set}" = set; then : 16997 withval=$with_libusb; _do_libusb=$withval 16998else 16999 _do_libusb=yes 17000fi 17001 17002 17003 if test "$_do_libusb" != "no" ; then 17004 if test -d "$withval" ; then 17005 CPPFLAGS="${CPPFLAGS} -I$withval/include" 17006 LDFLAGS="${LDFLAGS} -L$withval/lib" 17007 # Extract the first word of ""$_do_libusb/bin/libusb-config"", so it can be a program name with args. 17008set dummy "$_do_libusb/bin/libusb-config"; ac_word=$2 17009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17010$as_echo_n "checking for $ac_word... " >&6; } 17011if ${ac_cv_path__usb_config+:} false; then : 17012 $as_echo_n "(cached) " >&6 17013else 17014 case $_usb_config in 17015 [\\/]* | ?:[\\/]*) 17016 ac_cv_path__usb_config="$_usb_config" # Let the user override the test with a path. 17017 ;; 17018 *) 17019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17020for as_dir in $PATH 17021do 17022 IFS=$as_save_IFS 17023 test -z "$as_dir" && as_dir=. 17024 for ac_exec_ext in '' $ac_executable_extensions; do 17025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17026 ac_cv_path__usb_config="$as_dir/$ac_word$ac_exec_ext" 17027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17028 break 2 17029 fi 17030done 17031 done 17032IFS=$as_save_IFS 17033 17034 ;; 17035esac 17036fi 17037_usb_config=$ac_cv_path__usb_config 17038if test -n "$_usb_config"; then 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_usb_config" >&5 17040$as_echo "$_usb_config" >&6; } 17041else 17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17043$as_echo "no" >&6; } 17044fi 17045 17046 17047 else 17048 # Extract the first word of "libusb-config", so it can be a program name with args. 17049set dummy libusb-config; ac_word=$2 17050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17051$as_echo_n "checking for $ac_word... " >&6; } 17052if ${ac_cv_path__usb_config+:} false; then : 17053 $as_echo_n "(cached) " >&6 17054else 17055 case $_usb_config in 17056 [\\/]* | ?:[\\/]*) 17057 ac_cv_path__usb_config="$_usb_config" # Let the user override the test with a path. 17058 ;; 17059 *) 17060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17061for as_dir in $PATH 17062do 17063 IFS=$as_save_IFS 17064 test -z "$as_dir" && as_dir=. 17065 for ac_exec_ext in '' $ac_executable_extensions; do 17066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17067 ac_cv_path__usb_config="$as_dir/$ac_word$ac_exec_ext" 17068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17069 break 2 17070 fi 17071done 17072 done 17073IFS=$as_save_IFS 17074 17075 ;; 17076esac 17077fi 17078_usb_config=$ac_cv_path__usb_config 17079if test -n "$_usb_config"; then 17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_usb_config" >&5 17081$as_echo "$_usb_config" >&6; } 17082else 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17084$as_echo "no" >&6; } 17085fi 17086 17087 17088 fi 17089 17090 _libusb_save_libs=$LIBS 17091 _libusb_save_cflags=$CFLAGS 17092 17093 if test x$_usb_config != "x" ; then 17094 _libusb_try_libs=`$LIBS $_usb_config --libs` 17095 _libusb_try_cflags=`$LIBS $_usb_config --cflags` 17096 else 17097 _libusb_try_libs="-lusb" 17098 _libusb_try_cflags="" 17099 fi 17100 17101 LIBS="$LIBS $_libusb_try_libs" 17102 CFLAGS="$CFLAGS $_libusb_try_cflags" 17103 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libusb is present and sane" >&5 17105$as_echo_n "checking whether libusb is present and sane... " >&6; } 17106 17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17108/* end confdefs.h. */ 17109#include <usb.h> 17110int 17111main () 17112{ 17113 17114usb_bulk_write(NULL,0,NULL,0,0); 17115 17116 ; 17117 return 0; 17118} 17119_ACEOF 17120if ac_fn_c_try_link "$LINENO"; then : 17121 _found_libusb=yes 17122else 17123 _found_libusb=no 17124fi 17125rm -f core conftest.err conftest.$ac_objext \ 17126 conftest$ac_exeext conftest.$ac_ext 17127 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_libusb" >&5 17129$as_echo "$_found_libusb" >&6; } 17130 17131 if test $_found_libusb = yes ; then 17132 17133$as_echo "#define HAVE_LIBUSB 1" >>confdefs.h 17134 17135 LIBUSB_CPPFLAGS=$_libusb_try_cflags 17136 17137 LIBUSB=$_libusb_try_libs 17138 17139 for ac_func in usb_get_busses 17140do : 17141 ac_fn_c_check_func "$LINENO" "usb_get_busses" "ac_cv_func_usb_get_busses" 17142if test "x$ac_cv_func_usb_get_busses" = xyes; then : 17143 cat >>confdefs.h <<_ACEOF 17144#define HAVE_USB_GET_BUSSES 1 17145_ACEOF 17146 17147fi 17148done 17149 17150 fi 17151 17152 LIBS=$_libusb_save_libs 17153 CFLAGS=$_libusb_save_cflags 17154 17155 unset _libusb_save_libs 17156 unset _libusb_save_cflags 17157 unset _libusb_try_libs 17158 unset _libusb_try_cflags 17159 unset _found_libusb 17160 fi 17161 17162fi 17163 17164# Check for readline support 17165 17166 17167# Check whether --with-readline was given. 17168if test "${with_readline+set}" = set; then : 17169 withval=$with_readline; _do_readline=$withval 17170else 17171 _do_readline=yes 17172fi 17173 17174 17175 if test "$_do_readline" != "no" ; then 17176 if test -d "$withval" ; then 17177 CPPFLAGS="${CPPFLAGS} -I$withval/include" 17178 LDFLAGS="${LDFLAGS} -L$withval/lib" 17179 fi 17180 17181 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do 17182 _readline_save_libs=$LIBS 17183 _combo="-lreadline${_termcap:+ $_termcap}" 17184 LIBS="$LIBS $_combo" 17185 17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5 17187$as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; } 17188 17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17190/* end confdefs.h. */ 17191 17192#include <stdio.h> 17193#include <readline/readline.h> 17194#include <readline/history.h> 17195 17196int 17197main () 17198{ 17199 17200rl_completion_func_t *completer; 17201add_history("foobar"); 17202rl_catch_signals=0; 17203rl_inhibit_completion=0; 17204rl_attempted_completion_function=NULL; 17205rl_completion_matches(NULL,NULL); 17206 17207 ; 17208 return 0; 17209} 17210_ACEOF 17211if ac_fn_c_try_link "$LINENO"; then : 17212 _found_readline=yes 17213else 17214 _found_readline=no 17215fi 17216rm -f core conftest.err conftest.$ac_objext \ 17217 conftest$ac_exeext conftest.$ac_ext 17218 17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5 17220$as_echo "$_found_readline" >&6; } 17221 17222 LIBS=$_readline_save_libs 17223 17224 if test $_found_readline = yes ; then 17225 17226$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 17227 17228 LIBREADLINE=$_combo 17229 17230 break 17231 fi 17232 done 17233 17234 unset _termcap 17235 unset _readline_save_libs 17236 unset _combo 17237 unset _found_readline 17238 fi 17239 17240 17241# Allow users to append something to the version string without 17242# flagging it as development version. The user version parts is 17243# considered everything after a dash. 17244if test "$development_version" != yes; then 17245 tmp_pat='[a-zA-Z]' 17246 if echo "$VERSION" | sed 's/-.*//' | grep "$tmp_pat" >/dev/null ; then 17247 development_version=yes 17248 fi 17249fi 17250if test "$development_version" = yes; then 17251 17252$as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h 17253 17254fi 17255 17256 if test x$cross_compiling = xyes; then 17257 CROSS_COMPILING_TRUE= 17258 CROSS_COMPILING_FALSE='#' 17259else 17260 CROSS_COMPILING_TRUE='#' 17261 CROSS_COMPILING_FALSE= 17262fi 17263 17264 17265 17266# add some extra libs here so that previous tests don't fail for 17267# mysterious reasons - the final link step should bail out. 17268case "${host}" in 17269 *-mingw32*) 17270 W32LIBS="-lwsock32" 17271 ;; 17272 *) 17273 ;; 17274esac 17275 17276 17277 17278 17279# Special options used with gcc. 17280if test "$GCC" = yes; then 17281 # Note that it is okay to use CFLAGS here because this are just 17282 # warning options and the user should have a chance of overriding 17283 #them. 17284 if test "$USE_MAINTAINER_MODE" = "yes"; then 17285 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes" 17286 CFLAGS="$CFLAGS -Wformat-nonliteral" 17287 else 17288 CFLAGS="$CFLAGS -Wall" 17289 fi 17290 17291 # This is handy for debugging so the compiler doesn't rearrange 17292 # things and eliminate variables. 17293 # Check whether --enable-optimization was given. 17294if test "${enable_optimization+set}" = set; then : 17295 enableval=$enable_optimization; if test $enableval = no ; then 17296 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'` 17297 fi 17298fi 17299 17300 17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5 17302$as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; } 17303 17304 _gcc_cflags_save=$CFLAGS 17305 CFLAGS="-Wno-pointer-sign" 17306 17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17308/* end confdefs.h. */ 17309 17310int 17311main () 17312{ 17313 17314 ; 17315 return 0; 17316} 17317_ACEOF 17318if ac_fn_c_try_compile "$LINENO"; then : 17319 _gcc_psign=yes 17320else 17321 _gcc_psign=no 17322fi 17323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5 17325$as_echo "$_gcc_psign" >&6; } 17326 17327 CFLAGS=$_gcc_cflags_save; 17328 17329 if test x"$_gcc_psign" = xyes ; then 17330 CFLAGS="$CFLAGS -Wno-pointer-sign" 17331 fi 17332fi 17333 17334# By default we simply use the C compiler to build assembly code. 17335 17336test "${CCAS+set}" = set || CCAS=$CC 17337test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 17338 17339 17340 17341depcc="$CCAS" am_compiler_list= 17342 17343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17344$as_echo_n "checking dependency style of $depcc... " >&6; } 17345if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 17346 $as_echo_n "(cached) " >&6 17347else 17348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17349 # We make a subdir and do the tests there. Otherwise we can end up 17350 # making bogus files that we don't know about and never remove. For 17351 # instance it was reported that on HP-UX the gcc test will end up 17352 # making a dummy file named 'D' -- because '-MD' means "put the output 17353 # in D". 17354 rm -rf conftest.dir 17355 mkdir conftest.dir 17356 # Copy depcomp to subdir because otherwise we won't find it if we're 17357 # using a relative directory. 17358 cp "$am_depcomp" conftest.dir 17359 cd conftest.dir 17360 # We will build objects and dependencies in a subdirectory because 17361 # it helps to detect inapplicable dependency modes. For instance 17362 # both Tru64's cc and ICC support -MD to output dependencies as a 17363 # side effect of compilation, but ICC will put the dependencies in 17364 # the current directory while Tru64 will put them in the object 17365 # directory. 17366 mkdir sub 17367 17368 am_cv_CCAS_dependencies_compiler_type=none 17369 if test "$am_compiler_list" = ""; then 17370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17371 fi 17372 am__universal=false 17373 17374 17375 for depmode in $am_compiler_list; do 17376 # Setup a source with many dependencies, because some compilers 17377 # like to wrap large dependency lists on column 80 (with \), and 17378 # we should not choose a depcomp mode which is confused by this. 17379 # 17380 # We need to recreate these files for each test, as the compiler may 17381 # overwrite some of them when testing with obscure command lines. 17382 # This happens at least with the AIX C compiler. 17383 : > sub/conftest.c 17384 for i in 1 2 3 4 5 6; do 17385 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17386 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 17387 # Solaris 10 /bin/sh. 17388 echo '/* dummy */' > sub/conftst$i.h 17389 done 17390 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17391 17392 # We check with '-c' and '-o' for the sake of the "dashmstdout" 17393 # mode. It turns out that the SunPro C++ compiler does not properly 17394 # handle '-M -o', and we need to detect this. Also, some Intel 17395 # versions had trouble with output in subdirs. 17396 am__obj=sub/conftest.${OBJEXT-o} 17397 am__minus_obj="-o $am__obj" 17398 case $depmode in 17399 gcc) 17400 # This depmode causes a compiler race in universal mode. 17401 test "$am__universal" = false || continue 17402 ;; 17403 nosideeffect) 17404 # After this tag, mechanisms are not by side-effect, so they'll 17405 # only be used when explicitly requested. 17406 if test "x$enable_dependency_tracking" = xyes; then 17407 continue 17408 else 17409 break 17410 fi 17411 ;; 17412 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 17413 # This compiler won't grok '-c -o', but also, the minuso test has 17414 # not run yet. These depmodes are late enough in the game, and 17415 # so weak that their functioning should not be impacted. 17416 am__obj=conftest.${OBJEXT-o} 17417 am__minus_obj= 17418 ;; 17419 none) break ;; 17420 esac 17421 if depmode=$depmode \ 17422 source=sub/conftest.c object=$am__obj \ 17423 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17424 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17425 >/dev/null 2>conftest.err && 17426 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17427 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17428 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17429 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17430 # icc doesn't choke on unknown options, it will just issue warnings 17431 # or remarks (even with -Werror). So we grep stderr for any message 17432 # that says an option was ignored or not supported. 17433 # When given -MP, icc 7.0 and 7.1 complain thusly: 17434 # icc: Command line warning: ignoring option '-M'; no argument required 17435 # The diagnosis changed in icc 8.0: 17436 # icc: Command line remark: option '-MP' not supported 17437 if (grep 'ignoring option' conftest.err || 17438 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17439 am_cv_CCAS_dependencies_compiler_type=$depmode 17440 break 17441 fi 17442 fi 17443 done 17444 17445 cd .. 17446 rm -rf conftest.dir 17447else 17448 am_cv_CCAS_dependencies_compiler_type=none 17449fi 17450 17451fi 17452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 17453$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 17454CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 17455 17456 if 17457 test "x$enable_dependency_tracking" != xno \ 17458 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 17459 am__fastdepCCAS_TRUE= 17460 am__fastdepCCAS_FALSE='#' 17461else 17462 am__fastdepCCAS_TRUE='#' 17463 am__fastdepCCAS_FALSE= 17464fi 17465 17466 17467 17468 17469 17470 17471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5 17472$as_echo_n "checking whether non excutable stack support is requested... " >&6; } 17473# Check whether --enable-noexecstack was given. 17474if test "${enable_noexecstack+set}" = set; then : 17475 enableval=$enable_noexecstack; noexecstack_support=$enableval 17476else 17477 noexecstack_support=no 17478fi 17479 17480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5 17481$as_echo "$noexecstack_support" >&6; } 17482 17483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5 17484$as_echo_n "checking whether assembler supports --noexecstack option... " >&6; } 17485if ${cl_cv_as_noexecstack+:} false; then : 17486 $as_echo_n "(cached) " >&6 17487else 17488 cat > conftest.c <<EOF 17489void foo() {} 17490EOF 17491 if { ac_try='${CC} $CFLAGS $CPPFLAGS 17492 -S -o conftest.s conftest.c >/dev/null' 17493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 17494 (eval $ac_try) 2>&5 17495 ac_status=$? 17496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17497 test $ac_status = 0; }; } \ 17498 && grep -q .note.GNU-stack conftest.s \ 17499 && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack 17500 -c -o conftest.o conftest.s >/dev/null' 17501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 17502 (eval $ac_try) 2>&5 17503 ac_status=$? 17504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17505 test $ac_status = 0; }; } 17506 then 17507 cl_cv_as_noexecstack=yes 17508 else 17509 cl_cv_as_noexecstack=no 17510 fi 17511 rm -f conftest* 17512fi 17513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5 17514$as_echo "$cl_cv_as_noexecstack" >&6; } 17515 if test "$noexecstack_support" = yes -a "$cl_cv_as_noexecstack" = yes; then 17516 NOEXECSTACK_FLAGS="-Wa,--noexecstack" 17517 else 17518 NOEXECSTACK_FLAGS= 17519 fi 17520 17521 17522 17523if test "$print_egd_warning" = yes; then 17524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 17525*** 17526*** The performance of the UNIX random gatherer module is not very good 17527*** and it does not keep the entropy pool over multiple invocations of 17528*** GnuPG. The suggested way to overcome this problem is to use the 17529*** 17530*** Entropy Gathering Daemon (EGD) 17531*** 17532*** which provides a entropy source for the whole system. It is written 17533*** in Perl and available at the GnuPG FTP servers. For more information 17534*** consult the GnuPG webpages: 17535*** 17536*** http://www.gnupg.org/download/#EGD 17537*** 17538*** You may want to run ./configure with --enable-static-rnd=egd or 17539*** --enable-static-rnd=auto to use it. 17540***" >&5 17541$as_echo "$as_me: WARNING: 17542*** 17543*** The performance of the UNIX random gatherer module is not very good 17544*** and it does not keep the entropy pool over multiple invocations of 17545*** GnuPG. The suggested way to overcome this problem is to use the 17546*** 17547*** Entropy Gathering Daemon (EGD) 17548*** 17549*** which provides a entropy source for the whole system. It is written 17550*** in Perl and available at the GnuPG FTP servers. For more information 17551*** consult the GnuPG webpages: 17552*** 17553*** http://www.gnupg.org/download/#EGD 17554*** 17555*** You may want to run ./configure with --enable-static-rnd=egd or 17556*** --enable-static-rnd=auto to use it. 17557***" >&2;} 17558fi 17559 17560ac_config_files="$ac_config_files Makefile m4/Makefile intl/Makefile po/Makefile.in util/Makefile mpi/Makefile cipher/Makefile g10/Makefile keyserver/Makefile keyserver/gpgkeys_mailto keyserver/gpgkeys_test doc/Makefile tools/Makefile tools/gpg-zip zlib/Makefile bzlib/Makefile checks/Makefile" 17561 17562cat >confcache <<\_ACEOF 17563# This file is a shell script that caches the results of configure 17564# tests run on this system so they can be shared between configure 17565# scripts and configure runs, see configure's option --config-cache. 17566# It is not useful on other systems. If it contains results you don't 17567# want to keep, you may remove or edit it. 17568# 17569# config.status only pays attention to the cache file if you give it 17570# the --recheck option to rerun configure. 17571# 17572# `ac_cv_env_foo' variables (set or unset) will be overridden when 17573# loading this file, other *unset* `ac_cv_foo' will be assigned the 17574# following values. 17575 17576_ACEOF 17577 17578# The following way of writing the cache mishandles newlines in values, 17579# but we know of no workaround that is simple, portable, and efficient. 17580# So, we kill variables containing newlines. 17581# Ultrix sh set writes to stderr and can't be redirected directly, 17582# and sets the high bit in the cache file unless we assign to the vars. 17583( 17584 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17585 eval ac_val=\$$ac_var 17586 case $ac_val in #( 17587 *${as_nl}*) 17588 case $ac_var in #( 17589 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17590$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17591 esac 17592 case $ac_var in #( 17593 _ | IFS | as_nl) ;; #( 17594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17595 *) { eval $ac_var=; unset $ac_var;} ;; 17596 esac ;; 17597 esac 17598 done 17599 17600 (set) 2>&1 | 17601 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17602 *${as_nl}ac_space=\ *) 17603 # `set' does not quote correctly, so add quotes: double-quote 17604 # substitution turns \\\\ into \\, and sed turns \\ into \. 17605 sed -n \ 17606 "s/'/'\\\\''/g; 17607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17608 ;; #( 17609 *) 17610 # `set' quotes correctly as required by POSIX, so do not add quotes. 17611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17612 ;; 17613 esac | 17614 sort 17615) | 17616 sed ' 17617 /^ac_cv_env_/b end 17618 t clear 17619 :clear 17620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17621 t end 17622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17623 :end' >>confcache 17624if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17625 if test -w "$cache_file"; then 17626 if test "x$cache_file" != "x/dev/null"; then 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17628$as_echo "$as_me: updating cache $cache_file" >&6;} 17629 if test ! -f "$cache_file" || test -h "$cache_file"; then 17630 cat confcache >"$cache_file" 17631 else 17632 case $cache_file in #( 17633 */* | ?:*) 17634 mv -f confcache "$cache_file"$$ && 17635 mv -f "$cache_file"$$ "$cache_file" ;; #( 17636 *) 17637 mv -f confcache "$cache_file" ;; 17638 esac 17639 fi 17640 fi 17641 else 17642 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17643$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17644 fi 17645fi 17646rm -f confcache 17647 17648test "x$prefix" = xNONE && prefix=$ac_default_prefix 17649# Let make expand exec_prefix. 17650test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17651 17652DEFS=-DHAVE_CONFIG_H 17653 17654ac_libobjs= 17655ac_ltlibobjs= 17656U= 17657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17658 # 1. Remove the extension, and $U if already installed. 17659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17660 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17662 # will be set to the directory where LIBOBJS objects are built. 17663 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17664 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17665done 17666LIBOBJS=$ac_libobjs 17667 17668LTLIBOBJS=$ac_ltlibobjs 17669 17670 17671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17672$as_echo_n "checking that generated files are newer than configure... " >&6; } 17673 if test -n "$am_sleep_pid"; then 17674 # Hide warnings about reused PIDs. 17675 wait $am_sleep_pid 2>/dev/null 17676 fi 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17678$as_echo "done" >&6; } 17679 if test -n "$EXEEXT"; then 17680 am__EXEEXT_TRUE= 17681 am__EXEEXT_FALSE='#' 17682else 17683 am__EXEEXT_TRUE='#' 17684 am__EXEEXT_FALSE= 17685fi 17686 17687if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17688 as_fn_error $? "conditional \"AMDEP\" was never defined. 17689Usually this means the macro was only invoked conditionally." "$LINENO" 5 17690fi 17691if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17692 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17693Usually this means the macro was only invoked conditionally." "$LINENO" 5 17694fi 17695if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17696 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17697Usually this means the macro was only invoked conditionally." "$LINENO" 5 17698fi 17699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17700$as_echo_n "checking that generated files are newer than configure... " >&6; } 17701 if test -n "$am_sleep_pid"; then 17702 # Hide warnings about reused PIDs. 17703 wait $am_sleep_pid 2>/dev/null 17704 fi 17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17706$as_echo "done" >&6; } 17707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17709Usually this means the macro was only invoked conditionally." "$LINENO" 5 17710fi 17711if test -z "${HAVE_USTAR_TRUE}" && test -z "${HAVE_USTAR_FALSE}"; then 17712 as_fn_error $? "conditional \"HAVE_USTAR\" was never defined. 17713Usually this means the macro was only invoked conditionally." "$LINENO" 5 17714fi 17715if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then 17716 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined. 17717Usually this means the macro was only invoked conditionally." "$LINENO" 5 17718fi 17719if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then 17720 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined. 17721Usually this means the macro was only invoked conditionally." "$LINENO" 5 17722fi 17723if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then 17724 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined. 17725Usually this means the macro was only invoked conditionally." "$LINENO" 5 17726fi 17727if test -z "${USE_DNS_SRV_TRUE}" && test -z "${USE_DNS_SRV_FALSE}"; then 17728 as_fn_error $? "conditional \"USE_DNS_SRV\" was never defined. 17729Usually this means the macro was only invoked conditionally." "$LINENO" 5 17730fi 17731if test -z "${FAKE_CURL_TRUE}" && test -z "${FAKE_CURL_FALSE}"; then 17732 as_fn_error $? "conditional \"FAKE_CURL\" was never defined. 17733Usually this means the macro was only invoked conditionally." "$LINENO" 5 17734fi 17735if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then 17736 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined. 17737Usually this means the macro was only invoked conditionally." "$LINENO" 5 17738fi 17739if test -z "${ENABLE_AGENT_SUPPORT_TRUE}" && test -z "${ENABLE_AGENT_SUPPORT_FALSE}"; then 17740 as_fn_error $? "conditional \"ENABLE_AGENT_SUPPORT\" was never defined. 17741Usually this means the macro was only invoked conditionally." "$LINENO" 5 17742fi 17743if test -z "${ENABLE_SELINUX_HACKS_TRUE}" && test -z "${ENABLE_SELINUX_HACKS_FALSE}"; then 17744 as_fn_error $? "conditional \"ENABLE_SELINUX_HACKS\" was never defined. 17745Usually this means the macro was only invoked conditionally." "$LINENO" 5 17746fi 17747if test -z "${USE_SHA512_TRUE}" && test -z "${USE_SHA512_FALSE}"; then 17748 as_fn_error $? "conditional \"USE_SHA512\" was never defined. 17749Usually this means the macro was only invoked conditionally." "$LINENO" 5 17750fi 17751if test -z "${HAVE_SHM_TRUE}" && test -z "${HAVE_SHM_FALSE}"; then 17752 as_fn_error $? "conditional \"HAVE_SHM\" was never defined. 17753Usually this means the macro was only invoked conditionally." "$LINENO" 5 17754fi 17755if test -z "${USE_RNDLINUX_TRUE}" && test -z "${USE_RNDLINUX_FALSE}"; then 17756 as_fn_error $? "conditional \"USE_RNDLINUX\" was never defined. 17757Usually this means the macro was only invoked conditionally." "$LINENO" 5 17758fi 17759if test -z "${USE_RNDUNIX_TRUE}" && test -z "${USE_RNDUNIX_FALSE}"; then 17760 as_fn_error $? "conditional \"USE_RNDUNIX\" was never defined. 17761Usually this means the macro was only invoked conditionally." "$LINENO" 5 17762fi 17763if test -z "${USE_RNDEGD_TRUE}" && test -z "${USE_RNDEGD_FALSE}"; then 17764 as_fn_error $? "conditional \"USE_RNDEGD\" was never defined. 17765Usually this means the macro was only invoked conditionally." "$LINENO" 5 17766fi 17767if test -z "${USE_RNDW32_TRUE}" && test -z "${USE_RNDW32_FALSE}"; then 17768 as_fn_error $? "conditional \"USE_RNDW32\" was never defined. 17769Usually this means the macro was only invoked conditionally." "$LINENO" 5 17770fi 17771if test -z "${USE_INTERNAL_REGEX_TRUE}" && test -z "${USE_INTERNAL_REGEX_FALSE}"; then 17772 as_fn_error $? "conditional \"USE_INTERNAL_REGEX\" was never defined. 17773Usually this means the macro was only invoked conditionally." "$LINENO" 5 17774fi 17775if test -z "${ENABLE_LOCAL_ZLIB_TRUE}" && test -z "${ENABLE_LOCAL_ZLIB_FALSE}"; then 17776 as_fn_error $? "conditional \"ENABLE_LOCAL_ZLIB\" was never defined. 17777Usually this means the macro was only invoked conditionally." "$LINENO" 5 17778fi 17779if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then 17780 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined. 17781Usually this means the macro was only invoked conditionally." "$LINENO" 5 17782fi 17783if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 17784 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. 17785Usually this means the macro was only invoked conditionally." "$LINENO" 5 17786fi 17787if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 17788 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 17789Usually this means the macro was only invoked conditionally." "$LINENO" 5 17790fi 17791 17792: "${CONFIG_STATUS=./config.status}" 17793ac_write_fail=0 17794ac_clean_files_save=$ac_clean_files 17795ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17796{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17797$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17798as_write_fail=0 17799cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17800#! $SHELL 17801# Generated by $as_me. 17802# Run this file to recreate the current configuration. 17803# Compiler output produced by configure, useful for debugging 17804# configure, is in config.log if it exists. 17805 17806debug=false 17807ac_cs_recheck=false 17808ac_cs_silent=false 17809 17810SHELL=\${CONFIG_SHELL-$SHELL} 17811export SHELL 17812_ASEOF 17813cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17814## -------------------- ## 17815## M4sh Initialization. ## 17816## -------------------- ## 17817 17818# Be more Bourne compatible 17819DUALCASE=1; export DUALCASE # for MKS sh 17820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17821 emulate sh 17822 NULLCMD=: 17823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17824 # is contrary to our usage. Disable this feature. 17825 alias -g '${1+"$@"}'='"$@"' 17826 setopt NO_GLOB_SUBST 17827else 17828 case `(set -o) 2>/dev/null` in #( 17829 *posix*) : 17830 set -o posix ;; #( 17831 *) : 17832 ;; 17833esac 17834fi 17835 17836 17837as_nl=' 17838' 17839export as_nl 17840# Printing a long string crashes Solaris 7 /usr/bin/printf. 17841as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17843as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17844# Prefer a ksh shell builtin over an external printf program on Solaris, 17845# but without wasting forks for bash or zsh. 17846if test -z "$BASH_VERSION$ZSH_VERSION" \ 17847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17848 as_echo='print -r --' 17849 as_echo_n='print -rn --' 17850elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17851 as_echo='printf %s\n' 17852 as_echo_n='printf %s' 17853else 17854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17855 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17856 as_echo_n='/usr/ucb/echo -n' 17857 else 17858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17859 as_echo_n_body='eval 17860 arg=$1; 17861 case $arg in #( 17862 *"$as_nl"*) 17863 expr "X$arg" : "X\\(.*\\)$as_nl"; 17864 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17865 esac; 17866 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17867 ' 17868 export as_echo_n_body 17869 as_echo_n='sh -c $as_echo_n_body as_echo' 17870 fi 17871 export as_echo_body 17872 as_echo='sh -c $as_echo_body as_echo' 17873fi 17874 17875# The user is always right. 17876if test "${PATH_SEPARATOR+set}" != set; then 17877 PATH_SEPARATOR=: 17878 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17879 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17880 PATH_SEPARATOR=';' 17881 } 17882fi 17883 17884 17885# IFS 17886# We need space, tab and new line, in precisely that order. Quoting is 17887# there to prevent editors from complaining about space-tab. 17888# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17889# splitting by setting IFS to empty value.) 17890IFS=" "" $as_nl" 17891 17892# Find who we are. Look in the path if we contain no directory separator. 17893as_myself= 17894case $0 in #(( 17895 *[\\/]* ) as_myself=$0 ;; 17896 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17897for as_dir in $PATH 17898do 17899 IFS=$as_save_IFS 17900 test -z "$as_dir" && as_dir=. 17901 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17902 done 17903IFS=$as_save_IFS 17904 17905 ;; 17906esac 17907# We did not find ourselves, most probably we were run as `sh COMMAND' 17908# in which case we are not to be found in the path. 17909if test "x$as_myself" = x; then 17910 as_myself=$0 17911fi 17912if test ! -f "$as_myself"; then 17913 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17914 exit 1 17915fi 17916 17917# Unset variables that we do not need and which cause bugs (e.g. in 17918# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17919# suppresses any "Segmentation fault" message there. '((' could 17920# trigger a bug in pdksh 5.2.14. 17921for as_var in BASH_ENV ENV MAIL MAILPATH 17922do eval test x\${$as_var+set} = xset \ 17923 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17924done 17925PS1='$ ' 17926PS2='> ' 17927PS4='+ ' 17928 17929# NLS nuisances. 17930LC_ALL=C 17931export LC_ALL 17932LANGUAGE=C 17933export LANGUAGE 17934 17935# CDPATH. 17936(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17937 17938 17939# as_fn_error STATUS ERROR [LINENO LOG_FD] 17940# ---------------------------------------- 17941# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17942# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17943# script with STATUS, using 1 if that was 0. 17944as_fn_error () 17945{ 17946 as_status=$1; test $as_status -eq 0 && as_status=1 17947 if test "$4"; then 17948 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17949 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17950 fi 17951 $as_echo "$as_me: error: $2" >&2 17952 as_fn_exit $as_status 17953} # as_fn_error 17954 17955 17956# as_fn_set_status STATUS 17957# ----------------------- 17958# Set $? to STATUS, without forking. 17959as_fn_set_status () 17960{ 17961 return $1 17962} # as_fn_set_status 17963 17964# as_fn_exit STATUS 17965# ----------------- 17966# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17967as_fn_exit () 17968{ 17969 set +e 17970 as_fn_set_status $1 17971 exit $1 17972} # as_fn_exit 17973 17974# as_fn_unset VAR 17975# --------------- 17976# Portably unset VAR. 17977as_fn_unset () 17978{ 17979 { eval $1=; unset $1;} 17980} 17981as_unset=as_fn_unset 17982# as_fn_append VAR VALUE 17983# ---------------------- 17984# Append the text in VALUE to the end of the definition contained in VAR. Take 17985# advantage of any shell optimizations that allow amortized linear growth over 17986# repeated appends, instead of the typical quadratic growth present in naive 17987# implementations. 17988if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17989 eval 'as_fn_append () 17990 { 17991 eval $1+=\$2 17992 }' 17993else 17994 as_fn_append () 17995 { 17996 eval $1=\$$1\$2 17997 } 17998fi # as_fn_append 17999 18000# as_fn_arith ARG... 18001# ------------------ 18002# Perform arithmetic evaluation on the ARGs, and store the result in the 18003# global $as_val. Take advantage of shells that can avoid forks. The arguments 18004# must be portable across $(()) and expr. 18005if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18006 eval 'as_fn_arith () 18007 { 18008 as_val=$(( $* )) 18009 }' 18010else 18011 as_fn_arith () 18012 { 18013 as_val=`expr "$@" || test $? -eq 1` 18014 } 18015fi # as_fn_arith 18016 18017 18018if expr a : '\(a\)' >/dev/null 2>&1 && 18019 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18020 as_expr=expr 18021else 18022 as_expr=false 18023fi 18024 18025if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18026 as_basename=basename 18027else 18028 as_basename=false 18029fi 18030 18031if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18032 as_dirname=dirname 18033else 18034 as_dirname=false 18035fi 18036 18037as_me=`$as_basename -- "$0" || 18038$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18039 X"$0" : 'X\(//\)$' \| \ 18040 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18041$as_echo X/"$0" | 18042 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18043 s//\1/ 18044 q 18045 } 18046 /^X\/\(\/\/\)$/{ 18047 s//\1/ 18048 q 18049 } 18050 /^X\/\(\/\).*/{ 18051 s//\1/ 18052 q 18053 } 18054 s/.*/./; q'` 18055 18056# Avoid depending upon Character Ranges. 18057as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18058as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18059as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18060as_cr_digits='0123456789' 18061as_cr_alnum=$as_cr_Letters$as_cr_digits 18062 18063ECHO_C= ECHO_N= ECHO_T= 18064case `echo -n x` in #((((( 18065-n*) 18066 case `echo 'xy\c'` in 18067 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18068 xy) ECHO_C='\c';; 18069 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18070 ECHO_T=' ';; 18071 esac;; 18072*) 18073 ECHO_N='-n';; 18074esac 18075 18076rm -f conf$$ conf$$.exe conf$$.file 18077if test -d conf$$.dir; then 18078 rm -f conf$$.dir/conf$$.file 18079else 18080 rm -f conf$$.dir 18081 mkdir conf$$.dir 2>/dev/null 18082fi 18083if (echo >conf$$.file) 2>/dev/null; then 18084 if ln -s conf$$.file conf$$ 2>/dev/null; then 18085 as_ln_s='ln -s' 18086 # ... but there are two gotchas: 18087 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18088 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18089 # In both cases, we have to default to `cp -pR'. 18090 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18091 as_ln_s='cp -pR' 18092 elif ln conf$$.file conf$$ 2>/dev/null; then 18093 as_ln_s=ln 18094 else 18095 as_ln_s='cp -pR' 18096 fi 18097else 18098 as_ln_s='cp -pR' 18099fi 18100rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18101rmdir conf$$.dir 2>/dev/null 18102 18103 18104# as_fn_mkdir_p 18105# ------------- 18106# Create "$as_dir" as a directory, including parents if necessary. 18107as_fn_mkdir_p () 18108{ 18109 18110 case $as_dir in #( 18111 -*) as_dir=./$as_dir;; 18112 esac 18113 test -d "$as_dir" || eval $as_mkdir_p || { 18114 as_dirs= 18115 while :; do 18116 case $as_dir in #( 18117 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18118 *) as_qdir=$as_dir;; 18119 esac 18120 as_dirs="'$as_qdir' $as_dirs" 18121 as_dir=`$as_dirname -- "$as_dir" || 18122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18123 X"$as_dir" : 'X\(//\)[^/]' \| \ 18124 X"$as_dir" : 'X\(//\)$' \| \ 18125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18126$as_echo X"$as_dir" | 18127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18128 s//\1/ 18129 q 18130 } 18131 /^X\(\/\/\)[^/].*/{ 18132 s//\1/ 18133 q 18134 } 18135 /^X\(\/\/\)$/{ 18136 s//\1/ 18137 q 18138 } 18139 /^X\(\/\).*/{ 18140 s//\1/ 18141 q 18142 } 18143 s/.*/./; q'` 18144 test -d "$as_dir" && break 18145 done 18146 test -z "$as_dirs" || eval "mkdir $as_dirs" 18147 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18148 18149 18150} # as_fn_mkdir_p 18151if mkdir -p . 2>/dev/null; then 18152 as_mkdir_p='mkdir -p "$as_dir"' 18153else 18154 test -d ./-p && rmdir ./-p 18155 as_mkdir_p=false 18156fi 18157 18158 18159# as_fn_executable_p FILE 18160# ----------------------- 18161# Test if FILE is an executable regular file. 18162as_fn_executable_p () 18163{ 18164 test -f "$1" && test -x "$1" 18165} # as_fn_executable_p 18166as_test_x='test -x' 18167as_executable_p=as_fn_executable_p 18168 18169# Sed expression to map a string onto a valid CPP name. 18170as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18171 18172# Sed expression to map a string onto a valid variable name. 18173as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18174 18175 18176exec 6>&1 18177## ----------------------------------- ## 18178## Main body of $CONFIG_STATUS script. ## 18179## ----------------------------------- ## 18180_ASEOF 18181test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18182 18183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18184# Save the log message, to keep $0 and so on meaningful, and to 18185# report actual input values of CONFIG_FILES etc. instead of their 18186# values after options handling. 18187ac_log=" 18188This file was extended by gnupg $as_me 1.4.23, which was 18189generated by GNU Autoconf 2.69. Invocation command line was 18190 18191 CONFIG_FILES = $CONFIG_FILES 18192 CONFIG_HEADERS = $CONFIG_HEADERS 18193 CONFIG_LINKS = $CONFIG_LINKS 18194 CONFIG_COMMANDS = $CONFIG_COMMANDS 18195 $ $0 $@ 18196 18197on `(hostname || uname -n) 2>/dev/null | sed 1q` 18198" 18199 18200_ACEOF 18201 18202case $ac_config_files in *" 18203"*) set x $ac_config_files; shift; ac_config_files=$*;; 18204esac 18205 18206case $ac_config_headers in *" 18207"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18208esac 18209 18210 18211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18212# Files that config.status was made for. 18213config_files="$ac_config_files" 18214config_headers="$ac_config_headers" 18215config_links="$ac_config_links" 18216config_commands="$ac_config_commands" 18217 18218_ACEOF 18219 18220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18221ac_cs_usage="\ 18222\`$as_me' instantiates files and other configuration actions 18223from templates according to the current configuration. Unless the files 18224and actions are specified as TAGs, all are instantiated by default. 18225 18226Usage: $0 [OPTION]... [TAG]... 18227 18228 -h, --help print this help, then exit 18229 -V, --version print version number and configuration settings, then exit 18230 --config print configuration, then exit 18231 -q, --quiet, --silent 18232 do not print progress messages 18233 -d, --debug don't remove temporary files 18234 --recheck update $as_me by reconfiguring in the same conditions 18235 --file=FILE[:TEMPLATE] 18236 instantiate the configuration file FILE 18237 --header=FILE[:TEMPLATE] 18238 instantiate the configuration header FILE 18239 18240Configuration files: 18241$config_files 18242 18243Configuration headers: 18244$config_headers 18245 18246Configuration links: 18247$config_links 18248 18249Configuration commands: 18250$config_commands 18251 18252Report bugs to <https://bugs.gnupg.org>." 18253 18254_ACEOF 18255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18256ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18257ac_cs_version="\\ 18258gnupg config.status 1.4.23 18259configured by $0, generated by GNU Autoconf 2.69, 18260 with options \\"\$ac_cs_config\\" 18261 18262Copyright (C) 2012 Free Software Foundation, Inc. 18263This config.status script is free software; the Free Software Foundation 18264gives unlimited permission to copy, distribute and modify it." 18265 18266ac_pwd='$ac_pwd' 18267srcdir='$srcdir' 18268INSTALL='$INSTALL' 18269MKDIR_P='$MKDIR_P' 18270AWK='$AWK' 18271test -n "\$AWK" || AWK=awk 18272_ACEOF 18273 18274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18275# The default lists apply if the user does not specify any file. 18276ac_need_defaults=: 18277while test $# != 0 18278do 18279 case $1 in 18280 --*=?*) 18281 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18282 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18283 ac_shift=: 18284 ;; 18285 --*=) 18286 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18287 ac_optarg= 18288 ac_shift=: 18289 ;; 18290 *) 18291 ac_option=$1 18292 ac_optarg=$2 18293 ac_shift=shift 18294 ;; 18295 esac 18296 18297 case $ac_option in 18298 # Handling of the options. 18299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18300 ac_cs_recheck=: ;; 18301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18302 $as_echo "$ac_cs_version"; exit ;; 18303 --config | --confi | --conf | --con | --co | --c ) 18304 $as_echo "$ac_cs_config"; exit ;; 18305 --debug | --debu | --deb | --de | --d | -d ) 18306 debug=: ;; 18307 --file | --fil | --fi | --f ) 18308 $ac_shift 18309 case $ac_optarg in 18310 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18311 '') as_fn_error $? "missing file argument" ;; 18312 esac 18313 as_fn_append CONFIG_FILES " '$ac_optarg'" 18314 ac_need_defaults=false;; 18315 --header | --heade | --head | --hea ) 18316 $ac_shift 18317 case $ac_optarg in 18318 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18319 esac 18320 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18321 ac_need_defaults=false;; 18322 --he | --h) 18323 # Conflict between --help and --header 18324 as_fn_error $? "ambiguous option: \`$1' 18325Try \`$0 --help' for more information.";; 18326 --help | --hel | -h ) 18327 $as_echo "$ac_cs_usage"; exit ;; 18328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18329 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18330 ac_cs_silent=: ;; 18331 18332 # This is an error. 18333 -*) as_fn_error $? "unrecognized option: \`$1' 18334Try \`$0 --help' for more information." ;; 18335 18336 *) as_fn_append ac_config_targets " $1" 18337 ac_need_defaults=false ;; 18338 18339 esac 18340 shift 18341done 18342 18343ac_configure_extra_args= 18344 18345if $ac_cs_silent; then 18346 exec 6>/dev/null 18347 ac_configure_extra_args="$ac_configure_extra_args --silent" 18348fi 18349 18350_ACEOF 18351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18352if \$ac_cs_recheck; then 18353 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18354 shift 18355 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18356 CONFIG_SHELL='$SHELL' 18357 export CONFIG_SHELL 18358 exec "\$@" 18359fi 18360 18361_ACEOF 18362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18363exec 5>>config.log 18364{ 18365 echo 18366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18367## Running $as_me. ## 18368_ASBOX 18369 $as_echo "$ac_log" 18370} >&5 18371 18372_ACEOF 18373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18374# 18375# INIT-COMMANDS 18376# 18377AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18378# Capture the value of obsolete ALL_LINGUAS because we need it to compute 18379 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 18380 # from automake < 1.5. 18381 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 18382 # Capture the value of LINGUAS because we need it to compute CATALOGS. 18383 LINGUAS="${LINGUAS-%UNSET%}" 18384 18385 18386_ACEOF 18387 18388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18389 18390# Handling of arguments. 18391for ac_config_target in $ac_config_targets 18392do 18393 case $ac_config_target in 18394 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18395 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18396 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 18397 ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;; 18398 "zlib.h") CONFIG_LINKS="$CONFIG_LINKS zlib.h:zlib/zlib.h" ;; 18399 "zconf.h") CONFIG_LINKS="$CONFIG_LINKS zconf.h:zlib/zconf.h" ;; 18400 "bzlib.h") CONFIG_LINKS="$CONFIG_LINKS bzlib.h:bzlib/bzlib.h" ;; 18401 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18402 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 18403 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 18404 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 18405 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 18406 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;; 18407 "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;; 18408 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;; 18409 "keyserver/Makefile") CONFIG_FILES="$CONFIG_FILES keyserver/Makefile" ;; 18410 "keyserver/gpgkeys_mailto") CONFIG_FILES="$CONFIG_FILES keyserver/gpgkeys_mailto" ;; 18411 "keyserver/gpgkeys_test") CONFIG_FILES="$CONFIG_FILES keyserver/gpgkeys_test" ;; 18412 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18413 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 18414 "tools/gpg-zip") CONFIG_FILES="$CONFIG_FILES tools/gpg-zip" ;; 18415 "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;; 18416 "bzlib/Makefile") CONFIG_FILES="$CONFIG_FILES bzlib/Makefile" ;; 18417 "checks/Makefile") CONFIG_FILES="$CONFIG_FILES checks/Makefile" ;; 18418 18419 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18420 esac 18421done 18422 18423 18424# If the user did not use the arguments to specify the items to instantiate, 18425# then the envvar interface is used. Set only those that are not. 18426# We use the long form for the default assignment because of an extremely 18427# bizarre bug on SunOS 4.1.3. 18428if $ac_need_defaults; then 18429 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18430 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18431 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 18432 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18433fi 18434 18435# Have a temporary directory for convenience. Make it in the build tree 18436# simply because there is no reason against having it here, and in addition, 18437# creating and moving files from /tmp can sometimes cause problems. 18438# Hook for its removal unless debugging. 18439# Note that there is a small window in which the directory will not be cleaned: 18440# after its creation but before its name has been assigned to `$tmp'. 18441$debug || 18442{ 18443 tmp= ac_tmp= 18444 trap 'exit_status=$? 18445 : "${ac_tmp:=$tmp}" 18446 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18447' 0 18448 trap 'as_fn_exit 1' 1 2 13 15 18449} 18450# Create a (secure) tmp directory for tmp files. 18451 18452{ 18453 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18454 test -d "$tmp" 18455} || 18456{ 18457 tmp=./conf$$-$RANDOM 18458 (umask 077 && mkdir "$tmp") 18459} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18460ac_tmp=$tmp 18461 18462# Set up the scripts for CONFIG_FILES section. 18463# No need to generate them if there are no CONFIG_FILES. 18464# This happens for instance with `./config.status config.h'. 18465if test -n "$CONFIG_FILES"; then 18466 18467 18468ac_cr=`echo X | tr X '\015'` 18469# On cygwin, bash can eat \r inside `` if the user requested igncr. 18470# But we know of no other shell where ac_cr would be empty at this 18471# point, so we can use a bashism as a fallback. 18472if test "x$ac_cr" = x; then 18473 eval ac_cr=\$\'\\r\' 18474fi 18475ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18476if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18477 ac_cs_awk_cr='\\r' 18478else 18479 ac_cs_awk_cr=$ac_cr 18480fi 18481 18482echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18483_ACEOF 18484 18485 18486{ 18487 echo "cat >conf$$subs.awk <<_ACEOF" && 18488 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18489 echo "_ACEOF" 18490} >conf$$subs.sh || 18491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18492ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18493ac_delim='%!_!# ' 18494for ac_last_try in false false false false false :; do 18495 . ./conf$$subs.sh || 18496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18497 18498 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18499 if test $ac_delim_n = $ac_delim_num; then 18500 break 18501 elif $ac_last_try; then 18502 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18503 else 18504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18505 fi 18506done 18507rm -f conf$$subs.sh 18508 18509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18510cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18511_ACEOF 18512sed -n ' 18513h 18514s/^/S["/; s/!.*/"]=/ 18515p 18516g 18517s/^[^!]*!// 18518:repl 18519t repl 18520s/'"$ac_delim"'$// 18521t delim 18522:nl 18523h 18524s/\(.\{148\}\)..*/\1/ 18525t more1 18526s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18527p 18528n 18529b repl 18530:more1 18531s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18532p 18533g 18534s/.\{148\}// 18535t nl 18536:delim 18537h 18538s/\(.\{148\}\)..*/\1/ 18539t more2 18540s/["\\]/\\&/g; s/^/"/; s/$/"/ 18541p 18542b 18543:more2 18544s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18545p 18546g 18547s/.\{148\}// 18548t delim 18549' <conf$$subs.awk | sed ' 18550/^[^""]/{ 18551 N 18552 s/\n// 18553} 18554' >>$CONFIG_STATUS || ac_write_fail=1 18555rm -f conf$$subs.awk 18556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18557_ACAWK 18558cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18559 for (key in S) S_is_set[key] = 1 18560 FS = "" 18561 18562} 18563{ 18564 line = $ 0 18565 nfields = split(line, field, "@") 18566 substed = 0 18567 len = length(field[1]) 18568 for (i = 2; i < nfields; i++) { 18569 key = field[i] 18570 keylen = length(key) 18571 if (S_is_set[key]) { 18572 value = S[key] 18573 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18574 len += length(value) + length(field[++i]) 18575 substed = 1 18576 } else 18577 len += 1 + keylen 18578 } 18579 18580 print line 18581} 18582 18583_ACAWK 18584_ACEOF 18585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18586if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18587 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18588else 18589 cat 18590fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18591 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18592_ACEOF 18593 18594# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18595# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18596# trailing colons and then remove the whole line if VPATH becomes empty 18597# (actually we leave an empty line to preserve line numbers). 18598if test "x$srcdir" = x.; then 18599 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18600h 18601s/// 18602s/^/:/ 18603s/[ ]*$/:/ 18604s/:\$(srcdir):/:/g 18605s/:\${srcdir}:/:/g 18606s/:@srcdir@:/:/g 18607s/^:*// 18608s/:*$// 18609x 18610s/\(=[ ]*\).*/\1/ 18611G 18612s/\n// 18613s/^[^=]*=[ ]*$// 18614}' 18615fi 18616 18617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18618fi # test -n "$CONFIG_FILES" 18619 18620# Set up the scripts for CONFIG_HEADERS section. 18621# No need to generate them if there are no CONFIG_HEADERS. 18622# This happens for instance with `./config.status Makefile'. 18623if test -n "$CONFIG_HEADERS"; then 18624cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18625BEGIN { 18626_ACEOF 18627 18628# Transform confdefs.h into an awk script `defines.awk', embedded as 18629# here-document in config.status, that substitutes the proper values into 18630# config.h.in to produce config.h. 18631 18632# Create a delimiter string that does not exist in confdefs.h, to ease 18633# handling of long lines. 18634ac_delim='%!_!# ' 18635for ac_last_try in false false :; do 18636 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18637 if test -z "$ac_tt"; then 18638 break 18639 elif $ac_last_try; then 18640 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18641 else 18642 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18643 fi 18644done 18645 18646# For the awk script, D is an array of macro values keyed by name, 18647# likewise P contains macro parameters if any. Preserve backslash 18648# newline sequences. 18649 18650ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18651sed -n ' 18652s/.\{148\}/&'"$ac_delim"'/g 18653t rset 18654:rset 18655s/^[ ]*#[ ]*define[ ][ ]*/ / 18656t def 18657d 18658:def 18659s/\\$// 18660t bsnl 18661s/["\\]/\\&/g 18662s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18663D["\1"]=" \3"/p 18664s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18665d 18666:bsnl 18667s/["\\]/\\&/g 18668s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18669D["\1"]=" \3\\\\\\n"\\/p 18670t cont 18671s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18672t cont 18673d 18674:cont 18675n 18676s/.\{148\}/&'"$ac_delim"'/g 18677t clear 18678:clear 18679s/\\$// 18680t bsnlc 18681s/["\\]/\\&/g; s/^/"/; s/$/"/p 18682d 18683:bsnlc 18684s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18685b cont 18686' <confdefs.h | sed ' 18687s/'"$ac_delim"'/"\\\ 18688"/g' >>$CONFIG_STATUS || ac_write_fail=1 18689 18690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18691 for (key in D) D_is_set[key] = 1 18692 FS = "" 18693} 18694/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18695 line = \$ 0 18696 split(line, arg, " ") 18697 if (arg[1] == "#") { 18698 defundef = arg[2] 18699 mac1 = arg[3] 18700 } else { 18701 defundef = substr(arg[1], 2) 18702 mac1 = arg[2] 18703 } 18704 split(mac1, mac2, "(") #) 18705 macro = mac2[1] 18706 prefix = substr(line, 1, index(line, defundef) - 1) 18707 if (D_is_set[macro]) { 18708 # Preserve the white space surrounding the "#". 18709 print prefix "define", macro P[macro] D[macro] 18710 next 18711 } else { 18712 # Replace #undef with comments. This is necessary, for example, 18713 # in the case of _POSIX_SOURCE, which is predefined and required 18714 # on some systems where configure will not decide to define it. 18715 if (defundef == "undef") { 18716 print "/*", prefix defundef, macro, "*/" 18717 next 18718 } 18719 } 18720} 18721{ print } 18722_ACAWK 18723_ACEOF 18724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18725 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18726fi # test -n "$CONFIG_HEADERS" 18727 18728 18729eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 18730shift 18731for ac_tag 18732do 18733 case $ac_tag in 18734 :[FHLC]) ac_mode=$ac_tag; continue;; 18735 esac 18736 case $ac_mode$ac_tag in 18737 :[FHL]*:*);; 18738 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18739 :[FH]-) ac_tag=-:-;; 18740 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18741 esac 18742 ac_save_IFS=$IFS 18743 IFS=: 18744 set x $ac_tag 18745 IFS=$ac_save_IFS 18746 shift 18747 ac_file=$1 18748 shift 18749 18750 case $ac_mode in 18751 :L) ac_source=$1;; 18752 :[FH]) 18753 ac_file_inputs= 18754 for ac_f 18755 do 18756 case $ac_f in 18757 -) ac_f="$ac_tmp/stdin";; 18758 *) # Look for the file first in the build tree, then in the source tree 18759 # (if the path is not absolute). The absolute path cannot be DOS-style, 18760 # because $ac_f cannot contain `:'. 18761 test -f "$ac_f" || 18762 case $ac_f in 18763 [\\/$]*) false;; 18764 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18765 esac || 18766 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18767 esac 18768 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18769 as_fn_append ac_file_inputs " '$ac_f'" 18770 done 18771 18772 # Let's still pretend it is `configure' which instantiates (i.e., don't 18773 # use $as_me), people would be surprised to read: 18774 # /* config.h. Generated by config.status. */ 18775 configure_input='Generated from '` 18776 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18777 `' by configure.' 18778 if test x"$ac_file" != x-; then 18779 configure_input="$ac_file. $configure_input" 18780 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18781$as_echo "$as_me: creating $ac_file" >&6;} 18782 fi 18783 # Neutralize special characters interpreted by sed in replacement strings. 18784 case $configure_input in #( 18785 *\&* | *\|* | *\\* ) 18786 ac_sed_conf_input=`$as_echo "$configure_input" | 18787 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18788 *) ac_sed_conf_input=$configure_input;; 18789 esac 18790 18791 case $ac_tag in 18792 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18794 esac 18795 ;; 18796 esac 18797 18798 ac_dir=`$as_dirname -- "$ac_file" || 18799$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18800 X"$ac_file" : 'X\(//\)[^/]' \| \ 18801 X"$ac_file" : 'X\(//\)$' \| \ 18802 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18803$as_echo X"$ac_file" | 18804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18805 s//\1/ 18806 q 18807 } 18808 /^X\(\/\/\)[^/].*/{ 18809 s//\1/ 18810 q 18811 } 18812 /^X\(\/\/\)$/{ 18813 s//\1/ 18814 q 18815 } 18816 /^X\(\/\).*/{ 18817 s//\1/ 18818 q 18819 } 18820 s/.*/./; q'` 18821 as_dir="$ac_dir"; as_fn_mkdir_p 18822 ac_builddir=. 18823 18824case "$ac_dir" in 18825.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18826*) 18827 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18828 # A ".." for each directory in $ac_dir_suffix. 18829 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18830 case $ac_top_builddir_sub in 18831 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18832 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18833 esac ;; 18834esac 18835ac_abs_top_builddir=$ac_pwd 18836ac_abs_builddir=$ac_pwd$ac_dir_suffix 18837# for backward compatibility: 18838ac_top_builddir=$ac_top_build_prefix 18839 18840case $srcdir in 18841 .) # We are building in place. 18842 ac_srcdir=. 18843 ac_top_srcdir=$ac_top_builddir_sub 18844 ac_abs_top_srcdir=$ac_pwd ;; 18845 [\\/]* | ?:[\\/]* ) # Absolute name. 18846 ac_srcdir=$srcdir$ac_dir_suffix; 18847 ac_top_srcdir=$srcdir 18848 ac_abs_top_srcdir=$srcdir ;; 18849 *) # Relative name. 18850 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18851 ac_top_srcdir=$ac_top_build_prefix$srcdir 18852 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18853esac 18854ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18855 18856 18857 case $ac_mode in 18858 :F) 18859 # 18860 # CONFIG_FILE 18861 # 18862 18863 case $INSTALL in 18864 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18865 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18866 esac 18867 ac_MKDIR_P=$MKDIR_P 18868 case $MKDIR_P in 18869 [\\/$]* | ?:[\\/]* ) ;; 18870 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18871 esac 18872_ACEOF 18873 18874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18875# If the template does not know about datarootdir, expand it. 18876# FIXME: This hack should be removed a few years after 2.60. 18877ac_datarootdir_hack=; ac_datarootdir_seen= 18878ac_sed_dataroot=' 18879/datarootdir/ { 18880 p 18881 q 18882} 18883/@datadir@/p 18884/@docdir@/p 18885/@infodir@/p 18886/@localedir@/p 18887/@mandir@/p' 18888case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18889*datarootdir*) ac_datarootdir_seen=yes;; 18890*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18892$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18893_ACEOF 18894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18895 ac_datarootdir_hack=' 18896 s&@datadir@&$datadir&g 18897 s&@docdir@&$docdir&g 18898 s&@infodir@&$infodir&g 18899 s&@localedir@&$localedir&g 18900 s&@mandir@&$mandir&g 18901 s&\\\${datarootdir}&$datarootdir&g' ;; 18902esac 18903_ACEOF 18904 18905# Neutralize VPATH when `$srcdir' = `.'. 18906# Shell code in configure.ac might set extrasub. 18907# FIXME: do we really want to maintain this feature? 18908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18909ac_sed_extra="$ac_vpsub 18910$extrasub 18911_ACEOF 18912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18913:t 18914/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18915s|@configure_input@|$ac_sed_conf_input|;t t 18916s&@top_builddir@&$ac_top_builddir_sub&;t t 18917s&@top_build_prefix@&$ac_top_build_prefix&;t t 18918s&@srcdir@&$ac_srcdir&;t t 18919s&@abs_srcdir@&$ac_abs_srcdir&;t t 18920s&@top_srcdir@&$ac_top_srcdir&;t t 18921s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18922s&@builddir@&$ac_builddir&;t t 18923s&@abs_builddir@&$ac_abs_builddir&;t t 18924s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18925s&@INSTALL@&$ac_INSTALL&;t t 18926s&@MKDIR_P@&$ac_MKDIR_P&;t t 18927$ac_datarootdir_hack 18928" 18929eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18930 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18931 18932test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18933 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18934 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18935 "$ac_tmp/out"`; test -z "$ac_out"; } && 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18937which seems to be undefined. Please make sure it is defined" >&5 18938$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18939which seems to be undefined. Please make sure it is defined" >&2;} 18940 18941 rm -f "$ac_tmp/stdin" 18942 case $ac_file in 18943 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18944 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18945 esac \ 18946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18947 ;; 18948 :H) 18949 # 18950 # CONFIG_HEADER 18951 # 18952 if test x"$ac_file" != x-; then 18953 { 18954 $as_echo "/* $configure_input */" \ 18955 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18956 } >"$ac_tmp/config.h" \ 18957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18958 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18959 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18960$as_echo "$as_me: $ac_file is unchanged" >&6;} 18961 else 18962 rm -f "$ac_file" 18963 mv "$ac_tmp/config.h" "$ac_file" \ 18964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18965 fi 18966 else 18967 $as_echo "/* $configure_input */" \ 18968 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18969 || as_fn_error $? "could not create -" "$LINENO" 5 18970 fi 18971# Compute "$ac_file"'s index in $config_headers. 18972_am_arg="$ac_file" 18973_am_stamp_count=1 18974for _am_header in $config_headers :; do 18975 case $_am_header in 18976 $_am_arg | $_am_arg:* ) 18977 break ;; 18978 * ) 18979 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18980 esac 18981done 18982echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18983$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18984 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18985 X"$_am_arg" : 'X\(//\)$' \| \ 18986 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18987$as_echo X"$_am_arg" | 18988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18989 s//\1/ 18990 q 18991 } 18992 /^X\(\/\/\)[^/].*/{ 18993 s//\1/ 18994 q 18995 } 18996 /^X\(\/\/\)$/{ 18997 s//\1/ 18998 q 18999 } 19000 /^X\(\/\).*/{ 19001 s//\1/ 19002 q 19003 } 19004 s/.*/./; q'`/stamp-h$_am_stamp_count 19005 ;; 19006 :L) 19007 # 19008 # CONFIG_LINK 19009 # 19010 19011 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 19012 : 19013 else 19014 # Prefer the file from the source tree if names are identical. 19015 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 19016 ac_source=$srcdir/$ac_source 19017 fi 19018 19019 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 19020$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 19021 19022 if test ! -r "$ac_source"; then 19023 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 19024 fi 19025 rm -f "$ac_file" 19026 19027 # Try a relative symlink, then a hard link, then a copy. 19028 case $ac_source in 19029 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 19030 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 19031 esac 19032 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 19033 ln "$ac_source" "$ac_file" 2>/dev/null || 19034 cp -p "$ac_source" "$ac_file" || 19035 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 19036 fi 19037 ;; 19038 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19039$as_echo "$as_me: executing $ac_file commands" >&6;} 19040 ;; 19041 esac 19042 19043 19044 case $ac_file$ac_mode in 19045 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19046 # Older Autoconf quotes --file arguments for eval, but not when files 19047 # are listed without --file. Let's play safe and only enable the eval 19048 # if we detect the quoting. 19049 case $CONFIG_FILES in 19050 *\'*) eval set x "$CONFIG_FILES" ;; 19051 *) set x $CONFIG_FILES ;; 19052 esac 19053 shift 19054 for mf 19055 do 19056 # Strip MF so we end up with the name of the file. 19057 mf=`echo "$mf" | sed -e 's/:.*$//'` 19058 # Check whether this is an Automake generated Makefile or not. 19059 # We used to match only the files named 'Makefile.in', but 19060 # some people rename them; so instead we look at the file content. 19061 # Grep'ing the first line is not enough: some people post-process 19062 # each Makefile.in and add a new line on top of each file to say so. 19063 # Grep'ing the whole file is not good either: AIX grep has a line 19064 # limit of 2048, but all sed's we know have understand at least 4000. 19065 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19066 dirpart=`$as_dirname -- "$mf" || 19067$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19068 X"$mf" : 'X\(//\)[^/]' \| \ 19069 X"$mf" : 'X\(//\)$' \| \ 19070 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19071$as_echo X"$mf" | 19072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19073 s//\1/ 19074 q 19075 } 19076 /^X\(\/\/\)[^/].*/{ 19077 s//\1/ 19078 q 19079 } 19080 /^X\(\/\/\)$/{ 19081 s//\1/ 19082 q 19083 } 19084 /^X\(\/\).*/{ 19085 s//\1/ 19086 q 19087 } 19088 s/.*/./; q'` 19089 else 19090 continue 19091 fi 19092 # Extract the definition of DEPDIR, am__include, and am__quote 19093 # from the Makefile without running 'make'. 19094 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19095 test -z "$DEPDIR" && continue 19096 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19097 test -z "$am__include" && continue 19098 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19099 # Find all dependency output files, they are included files with 19100 # $(DEPDIR) in their names. We invoke sed twice because it is the 19101 # simplest approach to changing $(DEPDIR) to its actual value in the 19102 # expansion. 19103 for file in `sed -n " 19104 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19105 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19106 # Make sure the directory exists. 19107 test -f "$dirpart/$file" && continue 19108 fdir=`$as_dirname -- "$file" || 19109$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19110 X"$file" : 'X\(//\)[^/]' \| \ 19111 X"$file" : 'X\(//\)$' \| \ 19112 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19113$as_echo X"$file" | 19114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19115 s//\1/ 19116 q 19117 } 19118 /^X\(\/\/\)[^/].*/{ 19119 s//\1/ 19120 q 19121 } 19122 /^X\(\/\/\)$/{ 19123 s//\1/ 19124 q 19125 } 19126 /^X\(\/\).*/{ 19127 s//\1/ 19128 q 19129 } 19130 s/.*/./; q'` 19131 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19132 # echo "creating $dirpart/$file" 19133 echo '# dummy' > "$dirpart/$file" 19134 done 19135 done 19136} 19137 ;; 19138 "po-directories":C) 19139 for ac_file in $CONFIG_FILES; do 19140 # Support "outfile[:infile[:infile...]]" 19141 case "$ac_file" in 19142 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 19143 esac 19144 # PO directories have a Makefile.in generated from Makefile.in.in. 19145 case "$ac_file" in */Makefile.in) 19146 # Adjust a relative srcdir. 19147 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 19148 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 19149 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 19150 # In autoconf-2.13 it is called $ac_given_srcdir. 19151 # In autoconf-2.50 it is called $srcdir. 19152 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 19153 case "$ac_given_srcdir" in 19154 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 19155 /*) top_srcdir="$ac_given_srcdir" ;; 19156 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 19157 esac 19158 # Treat a directory as a PO directory if and only if it has a 19159 # POTFILES.in file. This allows packages to have multiple PO 19160 # directories under different names or in different locations. 19161 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 19162 rm -f "$ac_dir/POTFILES" 19163 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 19164 gt_tab=`printf '\t'` 19165 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" 19166 POMAKEFILEDEPS="POTFILES.in" 19167 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 19168 # on $ac_dir but don't depend on user-specified configuration 19169 # parameters. 19170 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 19171 # The LINGUAS file contains the set of available languages. 19172 if test -n "$OBSOLETE_ALL_LINGUAS"; then 19173 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 19174 fi 19175 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 19176 # Hide the ALL_LINGUAS assignment from automake < 1.5. 19177 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 19178 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 19179 else 19180 # The set of available languages was given in configure.in. 19181 # Hide the ALL_LINGUAS assignment from automake < 1.5. 19182 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 19183 fi 19184 # Compute POFILES 19185 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 19186 # Compute UPDATEPOFILES 19187 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 19188 # Compute DUMMYPOFILES 19189 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 19190 # Compute GMOFILES 19191 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 19192 case "$ac_given_srcdir" in 19193 .) srcdirpre= ;; 19194 *) srcdirpre='$(srcdir)/' ;; 19195 esac 19196 POFILES= 19197 UPDATEPOFILES= 19198 DUMMYPOFILES= 19199 GMOFILES= 19200 for lang in $ALL_LINGUAS; do 19201 POFILES="$POFILES $srcdirpre$lang.po" 19202 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 19203 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 19204 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 19205 done 19206 # CATALOGS depends on both $ac_dir and the user's LINGUAS 19207 # environment variable. 19208 INST_LINGUAS= 19209 if test -n "$ALL_LINGUAS"; then 19210 for presentlang in $ALL_LINGUAS; do 19211 useit=no 19212 if test "%UNSET%" != "$LINGUAS"; then 19213 desiredlanguages="$LINGUAS" 19214 else 19215 desiredlanguages="$ALL_LINGUAS" 19216 fi 19217 for desiredlang in $desiredlanguages; do 19218 # Use the presentlang catalog if desiredlang is 19219 # a. equal to presentlang, or 19220 # b. a variant of presentlang (because in this case, 19221 # presentlang can be used as a fallback for messages 19222 # which are not translated in the desiredlang catalog). 19223 case "$desiredlang" in 19224 "$presentlang"*) useit=yes;; 19225 esac 19226 done 19227 if test $useit = yes; then 19228 INST_LINGUAS="$INST_LINGUAS $presentlang" 19229 fi 19230 done 19231 fi 19232 CATALOGS= 19233 if test -n "$INST_LINGUAS"; then 19234 for lang in $INST_LINGUAS; do 19235 CATALOGS="$CATALOGS $lang.gmo" 19236 done 19237 fi 19238 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 19239 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" 19240 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 19241 if test -f "$f"; then 19242 case "$f" in 19243 *.orig | *.bak | *~) ;; 19244 *) cat "$f" >> "$ac_dir/Makefile" ;; 19245 esac 19246 fi 19247 done 19248 fi 19249 ;; 19250 esac 19251 done ;; 19252 19253 esac 19254done # for ac_tag 19255 19256 19257as_fn_exit 0 19258_ACEOF 19259ac_clean_files=$ac_clean_files_save 19260 19261test $ac_write_fail = 0 || 19262 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19263 19264 19265# configure is writing to config.log, and then calls config.status. 19266# config.status does its own redirection, appending to config.log. 19267# Unfortunately, on DOS this fails, as config.log is still kept open 19268# by configure, so config.status won't be able to write to it; its 19269# output is simply discarded. So we exec the FD to /dev/null, 19270# effectively closing config.log, so it can be properly (re)opened and 19271# appended to by config.status. When coming back to configure, we 19272# need to make the FD available again. 19273if test "$no_create" != yes; then 19274 ac_cs_success=: 19275 ac_config_status_args= 19276 test "$silent" = yes && 19277 ac_config_status_args="$ac_config_status_args --quiet" 19278 exec 5>/dev/null 19279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19280 exec 5>>config.log 19281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19282 # would make configure fail if this is the last instruction. 19283 $ac_cs_success || as_fn_exit 1 19284fi 19285if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19287$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19288fi 19289 19290 19291# Give some feedback 19292echo 19293echo " Version info: $PACKAGE_STRING" 19294echo " Configured for: $PRINTABLE_OS_NAME ($host)" 19295if test -n "$show_extraasm"; then 19296 echo " Extra cpu specific functions:$show_extraasm" 19297fi 19298echo 19299