1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="super.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623with_pam 624ConstDef 625SafePath 626LIBOBJS 627INSTALL_DATA 628INSTALL_SCRIPT 629INSTALL_PROGRAM 630EGREP 631GREP 632CPP 633OBJEXT 634EXEEXT 635ac_ct_CC 636CPPFLAGS 637LDFLAGS 638CFLAGS 639CC 640target_alias 641host_alias 642build_alias 643LIBS 644ECHO_T 645ECHO_N 646ECHO_C 647DEFS 648mandir 649localedir 650libdir 651psdir 652pdfdir 653dvidir 654htmldir 655infodir 656docdir 657oldincludedir 658includedir 659runstatedir 660localstatedir 661sharedstatedir 662sysconfdir 663datadir 664datarootdir 665libexecdir 666sbindir 667bindir 668program_transform_name 669prefix 670exec_prefix 671PACKAGE_URL 672PACKAGE_BUGREPORT 673PACKAGE_STRING 674PACKAGE_VERSION 675PACKAGE_TARNAME 676PACKAGE_NAME 677PATH_SEPARATOR 678SHELL' 679ac_subst_files='' 680ac_user_opts=' 681enable_option_checking 682enable_pam 683' 684 ac_precious_vars='build_alias 685host_alias 686target_alias 687CC 688CFLAGS 689LDFLAGS 690LIBS 691CPPFLAGS 692CPP' 693 694 695# Initialize some variables set by options. 696ac_init_help= 697ac_init_version=false 698ac_unrecognized_opts= 699ac_unrecognized_sep= 700# The variables have the same names as the options, with 701# dashes changed to underlines. 702cache_file=/dev/null 703exec_prefix=NONE 704no_create= 705no_recursion= 706prefix=NONE 707program_prefix=NONE 708program_suffix=NONE 709program_transform_name=s,x,x, 710silent= 711site= 712srcdir= 713verbose= 714x_includes=NONE 715x_libraries=NONE 716 717# Installation directory options. 718# These are left unexpanded so users can "make install exec_prefix=/foo" 719# and all the variables that are supposed to be based on exec_prefix 720# by default will actually change. 721# Use braces instead of parens because sh, perl, etc. also accept them. 722# (The list follows the same order as the GNU Coding Standards.) 723bindir='${exec_prefix}/bin' 724sbindir='${exec_prefix}/sbin' 725libexecdir='${exec_prefix}/libexec' 726datarootdir='${prefix}/share' 727datadir='${datarootdir}' 728sysconfdir='${prefix}/etc' 729sharedstatedir='${prefix}/com' 730localstatedir='${prefix}/var' 731runstatedir='${localstatedir}/run' 732includedir='${prefix}/include' 733oldincludedir='/usr/include' 734docdir='${datarootdir}/doc/${PACKAGE}' 735infodir='${datarootdir}/info' 736htmldir='${docdir}' 737dvidir='${docdir}' 738pdfdir='${docdir}' 739psdir='${docdir}' 740libdir='${exec_prefix}/lib' 741localedir='${datarootdir}/locale' 742mandir='${datarootdir}/man' 743 744ac_prev= 745ac_dashdash= 746for ac_option 747do 748 # If the previous option needs an argument, assign it. 749 if test -n "$ac_prev"; then 750 eval $ac_prev=\$ac_option 751 ac_prev= 752 continue 753 fi 754 755 case $ac_option in 756 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 757 *=) ac_optarg= ;; 758 *) ac_optarg=yes ;; 759 esac 760 761 # Accept the important Cygnus configure options, so we can diagnose typos. 762 763 case $ac_dashdash$ac_option in 764 --) 765 ac_dashdash=yes ;; 766 767 -bindir | --bindir | --bindi | --bind | --bin | --bi) 768 ac_prev=bindir ;; 769 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 770 bindir=$ac_optarg ;; 771 772 -build | --build | --buil | --bui | --bu) 773 ac_prev=build_alias ;; 774 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 775 build_alias=$ac_optarg ;; 776 777 -cache-file | --cache-file | --cache-fil | --cache-fi \ 778 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 779 ac_prev=cache_file ;; 780 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 781 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 782 cache_file=$ac_optarg ;; 783 784 --config-cache | -C) 785 cache_file=config.cache ;; 786 787 -datadir | --datadir | --datadi | --datad) 788 ac_prev=datadir ;; 789 -datadir=* | --datadir=* | --datadi=* | --datad=*) 790 datadir=$ac_optarg ;; 791 792 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 793 | --dataroo | --dataro | --datar) 794 ac_prev=datarootdir ;; 795 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 796 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 797 datarootdir=$ac_optarg ;; 798 799 -disable-* | --disable-*) 800 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 801 # Reject names that are not valid shell variable names. 802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 803 as_fn_error $? "invalid feature name: $ac_useropt" 804 ac_useropt_orig=$ac_useropt 805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 806 case $ac_user_opts in 807 *" 808"enable_$ac_useropt" 809"*) ;; 810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 811 ac_unrecognized_sep=', ';; 812 esac 813 eval enable_$ac_useropt=no ;; 814 815 -docdir | --docdir | --docdi | --doc | --do) 816 ac_prev=docdir ;; 817 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 818 docdir=$ac_optarg ;; 819 820 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 821 ac_prev=dvidir ;; 822 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 823 dvidir=$ac_optarg ;; 824 825 -enable-* | --enable-*) 826 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 827 # Reject names that are not valid shell variable names. 828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 829 as_fn_error $? "invalid feature name: $ac_useropt" 830 ac_useropt_orig=$ac_useropt 831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 832 case $ac_user_opts in 833 *" 834"enable_$ac_useropt" 835"*) ;; 836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 837 ac_unrecognized_sep=', ';; 838 esac 839 eval enable_$ac_useropt=\$ac_optarg ;; 840 841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 843 | --exec | --exe | --ex) 844 ac_prev=exec_prefix ;; 845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 847 | --exec=* | --exe=* | --ex=*) 848 exec_prefix=$ac_optarg ;; 849 850 -gas | --gas | --ga | --g) 851 # Obsolete; use --with-gas. 852 with_gas=yes ;; 853 854 -help | --help | --hel | --he | -h) 855 ac_init_help=long ;; 856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 857 ac_init_help=recursive ;; 858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 859 ac_init_help=short ;; 860 861 -host | --host | --hos | --ho) 862 ac_prev=host_alias ;; 863 -host=* | --host=* | --hos=* | --ho=*) 864 host_alias=$ac_optarg ;; 865 866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 867 ac_prev=htmldir ;; 868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 869 | --ht=*) 870 htmldir=$ac_optarg ;; 871 872 -includedir | --includedir | --includedi | --included | --include \ 873 | --includ | --inclu | --incl | --inc) 874 ac_prev=includedir ;; 875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 876 | --includ=* | --inclu=* | --incl=* | --inc=*) 877 includedir=$ac_optarg ;; 878 879 -infodir | --infodir | --infodi | --infod | --info | --inf) 880 ac_prev=infodir ;; 881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 882 infodir=$ac_optarg ;; 883 884 -libdir | --libdir | --libdi | --libd) 885 ac_prev=libdir ;; 886 -libdir=* | --libdir=* | --libdi=* | --libd=*) 887 libdir=$ac_optarg ;; 888 889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 890 | --libexe | --libex | --libe) 891 ac_prev=libexecdir ;; 892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 893 | --libexe=* | --libex=* | --libe=*) 894 libexecdir=$ac_optarg ;; 895 896 -localedir | --localedir | --localedi | --localed | --locale) 897 ac_prev=localedir ;; 898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 899 localedir=$ac_optarg ;; 900 901 -localstatedir | --localstatedir | --localstatedi | --localstated \ 902 | --localstate | --localstat | --localsta | --localst | --locals) 903 ac_prev=localstatedir ;; 904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 906 localstatedir=$ac_optarg ;; 907 908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 909 ac_prev=mandir ;; 910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 911 mandir=$ac_optarg ;; 912 913 -nfp | --nfp | --nf) 914 # Obsolete; use --without-fp. 915 with_fp=no ;; 916 917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 918 | --no-cr | --no-c | -n) 919 no_create=yes ;; 920 921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 923 no_recursion=yes ;; 924 925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 927 | --oldin | --oldi | --old | --ol | --o) 928 ac_prev=oldincludedir ;; 929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 932 oldincludedir=$ac_optarg ;; 933 934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 935 ac_prev=prefix ;; 936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 937 prefix=$ac_optarg ;; 938 939 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 940 | --program-pre | --program-pr | --program-p) 941 ac_prev=program_prefix ;; 942 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 944 program_prefix=$ac_optarg ;; 945 946 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 947 | --program-suf | --program-su | --program-s) 948 ac_prev=program_suffix ;; 949 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 951 program_suffix=$ac_optarg ;; 952 953 -program-transform-name | --program-transform-name \ 954 | --program-transform-nam | --program-transform-na \ 955 | --program-transform-n | --program-transform- \ 956 | --program-transform | --program-transfor \ 957 | --program-transfo | --program-transf \ 958 | --program-trans | --program-tran \ 959 | --progr-tra | --program-tr | --program-t) 960 ac_prev=program_transform_name ;; 961 -program-transform-name=* | --program-transform-name=* \ 962 | --program-transform-nam=* | --program-transform-na=* \ 963 | --program-transform-n=* | --program-transform-=* \ 964 | --program-transform=* | --program-transfor=* \ 965 | --program-transfo=* | --program-transf=* \ 966 | --program-trans=* | --program-tran=* \ 967 | --progr-tra=* | --program-tr=* | --program-t=*) 968 program_transform_name=$ac_optarg ;; 969 970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 971 ac_prev=pdfdir ;; 972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 973 pdfdir=$ac_optarg ;; 974 975 -psdir | --psdir | --psdi | --psd | --ps) 976 ac_prev=psdir ;; 977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 978 psdir=$ac_optarg ;; 979 980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 981 | -silent | --silent | --silen | --sile | --sil) 982 silent=yes ;; 983 984 -runstatedir | --runstatedir | --runstatedi | --runstated \ 985 | --runstate | --runstat | --runsta | --runst | --runs \ 986 | --run | --ru | --r) 987 ac_prev=runstatedir ;; 988 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 989 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 990 | --run=* | --ru=* | --r=*) 991 runstatedir=$ac_optarg ;; 992 993 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 994 ac_prev=sbindir ;; 995 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 996 | --sbi=* | --sb=*) 997 sbindir=$ac_optarg ;; 998 999 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1000 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1001 | --sharedst | --shareds | --shared | --share | --shar \ 1002 | --sha | --sh) 1003 ac_prev=sharedstatedir ;; 1004 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1005 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1006 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1007 | --sha=* | --sh=*) 1008 sharedstatedir=$ac_optarg ;; 1009 1010 -site | --site | --sit) 1011 ac_prev=site ;; 1012 -site=* | --site=* | --sit=*) 1013 site=$ac_optarg ;; 1014 1015 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1016 ac_prev=srcdir ;; 1017 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1018 srcdir=$ac_optarg ;; 1019 1020 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1021 | --syscon | --sysco | --sysc | --sys | --sy) 1022 ac_prev=sysconfdir ;; 1023 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1024 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1025 sysconfdir=$ac_optarg ;; 1026 1027 -target | --target | --targe | --targ | --tar | --ta | --t) 1028 ac_prev=target_alias ;; 1029 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1030 target_alias=$ac_optarg ;; 1031 1032 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1033 verbose=yes ;; 1034 1035 -version | --version | --versio | --versi | --vers | -V) 1036 ac_init_version=: ;; 1037 1038 -with-* | --with-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 as_fn_error $? "invalid package name: $ac_useropt" 1043 ac_useropt_orig=$ac_useropt 1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1045 case $ac_user_opts in 1046 *" 1047"with_$ac_useropt" 1048"*) ;; 1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1050 ac_unrecognized_sep=', ';; 1051 esac 1052 eval with_$ac_useropt=\$ac_optarg ;; 1053 1054 -without-* | --without-*) 1055 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1058 as_fn_error $? "invalid package name: $ac_useropt" 1059 ac_useropt_orig=$ac_useropt 1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1061 case $ac_user_opts in 1062 *" 1063"with_$ac_useropt" 1064"*) ;; 1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1066 ac_unrecognized_sep=', ';; 1067 esac 1068 eval with_$ac_useropt=no ;; 1069 1070 --x) 1071 # Obsolete; use --with-x. 1072 with_x=yes ;; 1073 1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1075 | --x-incl | --x-inc | --x-in | --x-i) 1076 ac_prev=x_includes ;; 1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1079 x_includes=$ac_optarg ;; 1080 1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1083 ac_prev=x_libraries ;; 1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1086 x_libraries=$ac_optarg ;; 1087 1088 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1089Try \`$0 --help' for more information" 1090 ;; 1091 1092 *=*) 1093 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1094 # Reject names that are not valid shell variable names. 1095 case $ac_envvar in #( 1096 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1097 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1098 esac 1099 eval $ac_envvar=\$ac_optarg 1100 export $ac_envvar ;; 1101 1102 *) 1103 # FIXME: should be removed in autoconf 3.0. 1104 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1106 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1107 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1108 ;; 1109 1110 esac 1111done 1112 1113if test -n "$ac_prev"; then 1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1115 as_fn_error $? "missing argument to $ac_option" 1116fi 1117 1118if test -n "$ac_unrecognized_opts"; then 1119 case $enable_option_checking in 1120 no) ;; 1121 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1122 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1123 esac 1124fi 1125 1126# Check all directory arguments for consistency. 1127for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1128 datadir sysconfdir sharedstatedir localstatedir includedir \ 1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1130 libdir localedir mandir runstatedir 1131do 1132 eval ac_val=\$$ac_var 1133 # Remove trailing slashes. 1134 case $ac_val in 1135 */ ) 1136 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1137 eval $ac_var=\$ac_val;; 1138 esac 1139 # Be sure to have absolute directory names. 1140 case $ac_val in 1141 [\\/$]* | ?:[\\/]* ) continue;; 1142 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1143 esac 1144 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1145done 1146 1147# There might be people who depend on the old broken behavior: `$host' 1148# used to hold the argument of --host etc. 1149# FIXME: To remove some day. 1150build=$build_alias 1151host=$host_alias 1152target=$target_alias 1153 1154# FIXME: To remove some day. 1155if test "x$host_alias" != x; then 1156 if test "x$build_alias" = x; then 1157 cross_compiling=maybe 1158 elif test "x$build_alias" != "x$host_alias"; then 1159 cross_compiling=yes 1160 fi 1161fi 1162 1163ac_tool_prefix= 1164test -n "$host_alias" && ac_tool_prefix=$host_alias- 1165 1166test "$silent" = yes && exec 6>/dev/null 1167 1168 1169ac_pwd=`pwd` && test -n "$ac_pwd" && 1170ac_ls_di=`ls -di .` && 1171ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1172 as_fn_error $? "working directory cannot be determined" 1173test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1174 as_fn_error $? "pwd does not report name of working directory" 1175 1176 1177# Find the source files, if location was not specified. 1178if test -z "$srcdir"; then 1179 ac_srcdir_defaulted=yes 1180 # Try the directory containing this script, then the parent directory. 1181 ac_confdir=`$as_dirname -- "$as_myself" || 1182$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1183 X"$as_myself" : 'X\(//\)[^/]' \| \ 1184 X"$as_myself" : 'X\(//\)$' \| \ 1185 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1186$as_echo X"$as_myself" | 1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1188 s//\1/ 1189 q 1190 } 1191 /^X\(\/\/\)[^/].*/{ 1192 s//\1/ 1193 q 1194 } 1195 /^X\(\/\/\)$/{ 1196 s//\1/ 1197 q 1198 } 1199 /^X\(\/\).*/{ 1200 s//\1/ 1201 q 1202 } 1203 s/.*/./; q'` 1204 srcdir=$ac_confdir 1205 if test ! -r "$srcdir/$ac_unique_file"; then 1206 srcdir=.. 1207 fi 1208else 1209 ac_srcdir_defaulted=no 1210fi 1211if test ! -r "$srcdir/$ac_unique_file"; then 1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1213 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1214fi 1215ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1216ac_abs_confdir=`( 1217 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1218 pwd)` 1219# When building in place, set srcdir=. 1220if test "$ac_abs_confdir" = "$ac_pwd"; then 1221 srcdir=. 1222fi 1223# Remove unnecessary trailing slashes from srcdir. 1224# Double slashes in file names in object file debugging info 1225# mess up M-x gdb in Emacs. 1226case $srcdir in 1227*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1228esac 1229for ac_var in $ac_precious_vars; do 1230 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1231 eval ac_env_${ac_var}_value=\$${ac_var} 1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1233 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1234done 1235 1236# 1237# Report the --help message. 1238# 1239if test "$ac_init_help" = "long"; then 1240 # Omit some internal or obsolete options to make the list less imposing. 1241 # This message is too long to be a string in the A/UX 3.1 sh. 1242 cat <<_ACEOF 1243\`configure' configures this package to adapt to many kinds of systems. 1244 1245Usage: $0 [OPTION]... [VAR=VALUE]... 1246 1247To assign environment variables (e.g., CC, CFLAGS...), specify them as 1248VAR=VALUE. See below for descriptions of some of the useful variables. 1249 1250Defaults for the options are specified in brackets. 1251 1252Configuration: 1253 -h, --help display this help and exit 1254 --help=short display options specific to this package 1255 --help=recursive display the short help of all the included packages 1256 -V, --version display version information and exit 1257 -q, --quiet, --silent do not print \`checking ...' messages 1258 --cache-file=FILE cache test results in FILE [disabled] 1259 -C, --config-cache alias for \`--cache-file=config.cache' 1260 -n, --no-create do not create output files 1261 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1262 1263Installation directories: 1264 --prefix=PREFIX install architecture-independent files in PREFIX 1265 [$ac_default_prefix] 1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1267 [PREFIX] 1268 1269By default, \`make install' will install all the files in 1270\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1271an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1272for instance \`--prefix=\$HOME'. 1273 1274For better control, use the options below. 1275 1276Fine tuning of the installation directories: 1277 --bindir=DIR user executables [EPREFIX/bin] 1278 --sbindir=DIR system admin executables [EPREFIX/sbin] 1279 --libexecdir=DIR program executables [EPREFIX/libexec] 1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1283 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1284 --libdir=DIR object code libraries [EPREFIX/lib] 1285 --includedir=DIR C header files [PREFIX/include] 1286 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1289 --infodir=DIR info documentation [DATAROOTDIR/info] 1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1291 --mandir=DIR man documentation [DATAROOTDIR/man] 1292 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1293 --htmldir=DIR html documentation [DOCDIR] 1294 --dvidir=DIR dvi documentation [DOCDIR] 1295 --pdfdir=DIR pdf documentation [DOCDIR] 1296 --psdir=DIR ps documentation [DOCDIR] 1297_ACEOF 1298 1299 cat <<\_ACEOF 1300_ACEOF 1301fi 1302 1303if test -n "$ac_init_help"; then 1304 1305 cat <<\_ACEOF 1306 1307Optional Features: 1308 --disable-option-checking ignore unrecognized --enable/--with options 1309 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1310 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1311 --disable-pam don't include PAM support even if compile host has PAM 1312 1313Some influential environment variables: 1314 CC C compiler command 1315 CFLAGS C compiler flags 1316 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1317 nonstandard directory <lib dir> 1318 LIBS libraries to pass to the linker, e.g. -l<library> 1319 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1320 you have headers in a nonstandard directory <include dir> 1321 CPP C preprocessor 1322 1323Use these variables to override the choices made by `configure' or to help 1324it to find libraries and programs with nonstandard names/locations. 1325 1326Report bugs to the package provider. 1327_ACEOF 1328ac_status=$? 1329fi 1330 1331if test "$ac_init_help" = "recursive"; then 1332 # If there are subdirs, report their specific --help. 1333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1334 test -d "$ac_dir" || 1335 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1336 continue 1337 ac_builddir=. 1338 1339case "$ac_dir" in 1340.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1341*) 1342 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1343 # A ".." for each directory in $ac_dir_suffix. 1344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1345 case $ac_top_builddir_sub in 1346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1348 esac ;; 1349esac 1350ac_abs_top_builddir=$ac_pwd 1351ac_abs_builddir=$ac_pwd$ac_dir_suffix 1352# for backward compatibility: 1353ac_top_builddir=$ac_top_build_prefix 1354 1355case $srcdir in 1356 .) # We are building in place. 1357 ac_srcdir=. 1358 ac_top_srcdir=$ac_top_builddir_sub 1359 ac_abs_top_srcdir=$ac_pwd ;; 1360 [\\/]* | ?:[\\/]* ) # Absolute name. 1361 ac_srcdir=$srcdir$ac_dir_suffix; 1362 ac_top_srcdir=$srcdir 1363 ac_abs_top_srcdir=$srcdir ;; 1364 *) # Relative name. 1365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1366 ac_top_srcdir=$ac_top_build_prefix$srcdir 1367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1368esac 1369ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1370 1371 cd "$ac_dir" || { ac_status=$?; continue; } 1372 # Check for guested configure. 1373 if test -f "$ac_srcdir/configure.gnu"; then 1374 echo && 1375 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1376 elif test -f "$ac_srcdir/configure"; then 1377 echo && 1378 $SHELL "$ac_srcdir/configure" --help=recursive 1379 else 1380 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1381 fi || ac_status=$? 1382 cd "$ac_pwd" || { ac_status=$?; break; } 1383 done 1384fi 1385 1386test -n "$ac_init_help" && exit $ac_status 1387if $ac_init_version; then 1388 cat <<\_ACEOF 1389configure 1390generated by GNU Autoconf 2.69 1391 1392Copyright (C) 2012 Free Software Foundation, Inc. 1393This configure script is free software; the Free Software Foundation 1394gives unlimited permission to copy, distribute and modify it. 1395_ACEOF 1396 exit 1397fi 1398 1399## ------------------------ ## 1400## Autoconf initialization. ## 1401## ------------------------ ## 1402 1403# ac_fn_c_try_compile LINENO 1404# -------------------------- 1405# Try to compile conftest.$ac_ext, and return whether this succeeded. 1406ac_fn_c_try_compile () 1407{ 1408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1409 rm -f conftest.$ac_objext 1410 if { { ac_try="$ac_compile" 1411case "(($ac_try" in 1412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1413 *) ac_try_echo=$ac_try;; 1414esac 1415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1416$as_echo "$ac_try_echo"; } >&5 1417 (eval "$ac_compile") 2>conftest.err 1418 ac_status=$? 1419 if test -s conftest.err; then 1420 grep -v '^ *+' conftest.err >conftest.er1 1421 cat conftest.er1 >&5 1422 mv -f conftest.er1 conftest.err 1423 fi 1424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1425 test $ac_status = 0; } && { 1426 test -z "$ac_c_werror_flag" || 1427 test ! -s conftest.err 1428 } && test -s conftest.$ac_objext; then : 1429 ac_retval=0 1430else 1431 $as_echo "$as_me: failed program was:" >&5 1432sed 's/^/| /' conftest.$ac_ext >&5 1433 1434 ac_retval=1 1435fi 1436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1437 as_fn_set_status $ac_retval 1438 1439} # ac_fn_c_try_compile 1440 1441# ac_fn_c_try_cpp LINENO 1442# ---------------------- 1443# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1444ac_fn_c_try_cpp () 1445{ 1446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1447 if { { ac_try="$ac_cpp conftest.$ac_ext" 1448case "(($ac_try" in 1449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1450 *) ac_try_echo=$ac_try;; 1451esac 1452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1453$as_echo "$ac_try_echo"; } >&5 1454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1455 ac_status=$? 1456 if test -s conftest.err; then 1457 grep -v '^ *+' conftest.err >conftest.er1 1458 cat conftest.er1 >&5 1459 mv -f conftest.er1 conftest.err 1460 fi 1461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1462 test $ac_status = 0; } > conftest.i && { 1463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1464 test ! -s conftest.err 1465 }; then : 1466 ac_retval=0 1467else 1468 $as_echo "$as_me: failed program was:" >&5 1469sed 's/^/| /' conftest.$ac_ext >&5 1470 1471 ac_retval=1 1472fi 1473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1474 as_fn_set_status $ac_retval 1475 1476} # ac_fn_c_try_cpp 1477 1478# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1479# ------------------------------------------------------- 1480# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1481# the include files in INCLUDES and setting the cache variable VAR 1482# accordingly. 1483ac_fn_c_check_header_mongrel () 1484{ 1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1486 if eval \${$3+:} false; then : 1487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1488$as_echo_n "checking for $2... " >&6; } 1489if eval \${$3+:} false; then : 1490 $as_echo_n "(cached) " >&6 1491fi 1492eval ac_res=\$$3 1493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1494$as_echo "$ac_res" >&6; } 1495else 1496 # Is the header compilable? 1497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1498$as_echo_n "checking $2 usability... " >&6; } 1499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1500/* end confdefs.h. */ 1501$4 1502#include <$2> 1503_ACEOF 1504if ac_fn_c_try_compile "$LINENO"; then : 1505 ac_header_compiler=yes 1506else 1507 ac_header_compiler=no 1508fi 1509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1511$as_echo "$ac_header_compiler" >&6; } 1512 1513# Is the header present? 1514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1515$as_echo_n "checking $2 presence... " >&6; } 1516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1517/* end confdefs.h. */ 1518#include <$2> 1519_ACEOF 1520if ac_fn_c_try_cpp "$LINENO"; then : 1521 ac_header_preproc=yes 1522else 1523 ac_header_preproc=no 1524fi 1525rm -f conftest.err conftest.i conftest.$ac_ext 1526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1527$as_echo "$ac_header_preproc" >&6; } 1528 1529# So? What about this header? 1530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1531 yes:no: ) 1532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1533$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1535$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1536 ;; 1537 no:yes:* ) 1538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1539$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1541$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1543$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1545$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1547$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1548 ;; 1549esac 1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1551$as_echo_n "checking for $2... " >&6; } 1552if eval \${$3+:} false; then : 1553 $as_echo_n "(cached) " >&6 1554else 1555 eval "$3=\$ac_header_compiler" 1556fi 1557eval ac_res=\$$3 1558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1559$as_echo "$ac_res" >&6; } 1560fi 1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1562 1563} # ac_fn_c_check_header_mongrel 1564 1565# ac_fn_c_try_run LINENO 1566# ---------------------- 1567# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1568# that executables *can* be run. 1569ac_fn_c_try_run () 1570{ 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572 if { { ac_try="$ac_link" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578$as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_link") 2>&5 1580 ac_status=$? 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1583 { { case "(($ac_try" in 1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1585 *) ac_try_echo=$ac_try;; 1586esac 1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1588$as_echo "$ac_try_echo"; } >&5 1589 (eval "$ac_try") 2>&5 1590 ac_status=$? 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; }; }; then : 1593 ac_retval=0 1594else 1595 $as_echo "$as_me: program exited with status $ac_status" >&5 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=$ac_status 1600fi 1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 as_fn_set_status $ac_retval 1604 1605} # ac_fn_c_try_run 1606 1607# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1608# ------------------------------------------------------- 1609# Tests whether HEADER exists and can be compiled using the include files in 1610# INCLUDES, setting the cache variable VAR accordingly. 1611ac_fn_c_check_header_compile () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1615$as_echo_n "checking for $2... " >&6; } 1616if eval \${$3+:} false; then : 1617 $as_echo_n "(cached) " >&6 1618else 1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1620/* end confdefs.h. */ 1621$4 1622#include <$2> 1623_ACEOF 1624if ac_fn_c_try_compile "$LINENO"; then : 1625 eval "$3=yes" 1626else 1627 eval "$3=no" 1628fi 1629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1630fi 1631eval ac_res=\$$3 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1633$as_echo "$ac_res" >&6; } 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 1636} # ac_fn_c_check_header_compile 1637 1638# ac_fn_c_try_link LINENO 1639# ----------------------- 1640# Try to link conftest.$ac_ext, and return whether this succeeded. 1641ac_fn_c_try_link () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 rm -f conftest.$ac_objext conftest$ac_exeext 1645 if { { ac_try="$ac_link" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_link") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } && { 1661 test -z "$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 } && test -s conftest$ac_exeext && { 1664 test "$cross_compiling" = yes || 1665 test -x conftest$ac_exeext 1666 }; then : 1667 ac_retval=0 1668else 1669 $as_echo "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1676 # interfere with the next link command; also delete a directory that is 1677 # left behind by Apple's compiler. We do this before executing the actions. 1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_link 1683 1684# ac_fn_c_check_func LINENO FUNC VAR 1685# ---------------------------------- 1686# Tests whether FUNC exists, setting the cache variable VAR accordingly 1687ac_fn_c_check_func () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1691$as_echo_n "checking for $2... " >&6; } 1692if eval \${$3+:} false; then : 1693 $as_echo_n "(cached) " >&6 1694else 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696/* end confdefs.h. */ 1697/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1698 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1699#define $2 innocuous_$2 1700 1701/* System header to define __stub macros and hopefully few prototypes, 1702 which can conflict with char $2 (); below. 1703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1704 <limits.h> exists even on freestanding compilers. */ 1705 1706#ifdef __STDC__ 1707# include <limits.h> 1708#else 1709# include <assert.h> 1710#endif 1711 1712#undef $2 1713 1714/* Override any GCC internal prototype to avoid an error. 1715 Use char because int might match the return type of a GCC 1716 builtin and then its argument prototype would still apply. */ 1717#ifdef __cplusplus 1718extern "C" 1719#endif 1720char $2 (); 1721/* The GNU C library defines this for functions which it implements 1722 to always fail with ENOSYS. Some functions are actually named 1723 something starting with __ and the normal name is an alias. */ 1724#if defined __stub_$2 || defined __stub___$2 1725choke me 1726#endif 1727 1728int 1729main () 1730{ 1731return $2 (); 1732 ; 1733 return 0; 1734} 1735_ACEOF 1736if ac_fn_c_try_link "$LINENO"; then : 1737 eval "$3=yes" 1738else 1739 eval "$3=no" 1740fi 1741rm -f core conftest.err conftest.$ac_objext \ 1742 conftest$ac_exeext conftest.$ac_ext 1743fi 1744eval ac_res=\$$3 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746$as_echo "$ac_res" >&6; } 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 1749} # ac_fn_c_check_func 1750 1751# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1752# ------------------------------------------- 1753# Tests whether TYPE exists after having included INCLUDES, setting cache 1754# variable VAR accordingly. 1755ac_fn_c_check_type () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759$as_echo_n "checking for $2... " >&6; } 1760if eval \${$3+:} false; then : 1761 $as_echo_n "(cached) " >&6 1762else 1763 eval "$3=no" 1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765/* end confdefs.h. */ 1766$4 1767int 1768main () 1769{ 1770if (sizeof ($2)) 1771 return 0; 1772 ; 1773 return 0; 1774} 1775_ACEOF 1776if ac_fn_c_try_compile "$LINENO"; then : 1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778/* end confdefs.h. */ 1779$4 1780int 1781main () 1782{ 1783if (sizeof (($2))) 1784 return 0; 1785 ; 1786 return 0; 1787} 1788_ACEOF 1789if ac_fn_c_try_compile "$LINENO"; then : 1790 1791else 1792 eval "$3=yes" 1793fi 1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1795fi 1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_type 1804cat >config.log <<_ACEOF 1805This file contains any messages produced by compilers while 1806running configure, to aid debugging if configure makes a mistake. 1807 1808It was created by $as_me, which was 1809generated by GNU Autoconf 2.69. Invocation command line was 1810 1811 $ $0 $@ 1812 1813_ACEOF 1814exec 5>>config.log 1815{ 1816cat <<_ASUNAME 1817## --------- ## 1818## Platform. ## 1819## --------- ## 1820 1821hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1822uname -m = `(uname -m) 2>/dev/null || echo unknown` 1823uname -r = `(uname -r) 2>/dev/null || echo unknown` 1824uname -s = `(uname -s) 2>/dev/null || echo unknown` 1825uname -v = `(uname -v) 2>/dev/null || echo unknown` 1826 1827/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1828/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1829 1830/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1831/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1832/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1833/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1834/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1835/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1836/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1837 1838_ASUNAME 1839 1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1841for as_dir in $PATH 1842do 1843 IFS=$as_save_IFS 1844 test -z "$as_dir" && as_dir=. 1845 $as_echo "PATH: $as_dir" 1846 done 1847IFS=$as_save_IFS 1848 1849} >&5 1850 1851cat >&5 <<_ACEOF 1852 1853 1854## ----------- ## 1855## Core tests. ## 1856## ----------- ## 1857 1858_ACEOF 1859 1860 1861# Keep a trace of the command line. 1862# Strip out --no-create and --no-recursion so they do not pile up. 1863# Strip out --silent because we don't want to record it for future runs. 1864# Also quote any args containing shell meta-characters. 1865# Make two passes to allow for proper duplicate-argument suppression. 1866ac_configure_args= 1867ac_configure_args0= 1868ac_configure_args1= 1869ac_must_keep_next=false 1870for ac_pass in 1 2 1871do 1872 for ac_arg 1873 do 1874 case $ac_arg in 1875 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1877 | -silent | --silent | --silen | --sile | --sil) 1878 continue ;; 1879 *\'*) 1880 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1881 esac 1882 case $ac_pass in 1883 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1884 2) 1885 as_fn_append ac_configure_args1 " '$ac_arg'" 1886 if test $ac_must_keep_next = true; then 1887 ac_must_keep_next=false # Got value, back to normal. 1888 else 1889 case $ac_arg in 1890 *=* | --config-cache | -C | -disable-* | --disable-* \ 1891 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1892 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1893 | -with-* | --with-* | -without-* | --without-* | --x) 1894 case "$ac_configure_args0 " in 1895 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1896 esac 1897 ;; 1898 -* ) ac_must_keep_next=true ;; 1899 esac 1900 fi 1901 as_fn_append ac_configure_args " '$ac_arg'" 1902 ;; 1903 esac 1904 done 1905done 1906{ ac_configure_args0=; unset ac_configure_args0;} 1907{ ac_configure_args1=; unset ac_configure_args1;} 1908 1909# When interrupted or exit'd, cleanup temporary files, and complete 1910# config.log. We remove comments because anyway the quotes in there 1911# would cause problems or look ugly. 1912# WARNING: Use '\'' to represent an apostrophe within the trap. 1913# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1914trap 'exit_status=$? 1915 # Save into config.log some information that might help in debugging. 1916 { 1917 echo 1918 1919 $as_echo "## ---------------- ## 1920## Cache variables. ## 1921## ---------------- ##" 1922 echo 1923 # The following way of writing the cache mishandles newlines in values, 1924( 1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1926 eval ac_val=\$$ac_var 1927 case $ac_val in #( 1928 *${as_nl}*) 1929 case $ac_var in #( 1930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1931$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1932 esac 1933 case $ac_var in #( 1934 _ | IFS | as_nl) ;; #( 1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1936 *) { eval $ac_var=; unset $ac_var;} ;; 1937 esac ;; 1938 esac 1939 done 1940 (set) 2>&1 | 1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1942 *${as_nl}ac_space=\ *) 1943 sed -n \ 1944 "s/'\''/'\''\\\\'\'''\''/g; 1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1946 ;; #( 1947 *) 1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1949 ;; 1950 esac | 1951 sort 1952) 1953 echo 1954 1955 $as_echo "## ----------------- ## 1956## Output variables. ## 1957## ----------------- ##" 1958 echo 1959 for ac_var in $ac_subst_vars 1960 do 1961 eval ac_val=\$$ac_var 1962 case $ac_val in 1963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1964 esac 1965 $as_echo "$ac_var='\''$ac_val'\''" 1966 done | sort 1967 echo 1968 1969 if test -n "$ac_subst_files"; then 1970 $as_echo "## ------------------- ## 1971## File substitutions. ## 1972## ------------------- ##" 1973 echo 1974 for ac_var in $ac_subst_files 1975 do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in 1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1979 esac 1980 $as_echo "$ac_var='\''$ac_val'\''" 1981 done | sort 1982 echo 1983 fi 1984 1985 if test -s confdefs.h; then 1986 $as_echo "## ----------- ## 1987## confdefs.h. ## 1988## ----------- ##" 1989 echo 1990 cat confdefs.h 1991 echo 1992 fi 1993 test "$ac_signal" != 0 && 1994 $as_echo "$as_me: caught signal $ac_signal" 1995 $as_echo "$as_me: exit $exit_status" 1996 } >&5 1997 rm -f core *.core core.conftest.* && 1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1999 exit $exit_status 2000' 0 2001for ac_signal in 1 2 13 15; do 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2003done 2004ac_signal=0 2005 2006# confdefs.h avoids OS command line length limits that DEFS can exceed. 2007rm -f -r conftest* confdefs.h 2008 2009$as_echo "/* confdefs.h */" > confdefs.h 2010 2011# Predefined preprocessor variables. 2012 2013cat >>confdefs.h <<_ACEOF 2014#define PACKAGE_NAME "$PACKAGE_NAME" 2015_ACEOF 2016 2017cat >>confdefs.h <<_ACEOF 2018#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2019_ACEOF 2020 2021cat >>confdefs.h <<_ACEOF 2022#define PACKAGE_VERSION "$PACKAGE_VERSION" 2023_ACEOF 2024 2025cat >>confdefs.h <<_ACEOF 2026#define PACKAGE_STRING "$PACKAGE_STRING" 2027_ACEOF 2028 2029cat >>confdefs.h <<_ACEOF 2030#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2031_ACEOF 2032 2033cat >>confdefs.h <<_ACEOF 2034#define PACKAGE_URL "$PACKAGE_URL" 2035_ACEOF 2036 2037 2038# Let the site file select an alternate cache file if it wants to. 2039# Prefer an explicitly selected file to automatically selected ones. 2040ac_site_file1=NONE 2041ac_site_file2=NONE 2042if test -n "$CONFIG_SITE"; then 2043 # We do not want a PATH search for config.site. 2044 case $CONFIG_SITE in #(( 2045 -*) ac_site_file1=./$CONFIG_SITE;; 2046 */*) ac_site_file1=$CONFIG_SITE;; 2047 *) ac_site_file1=./$CONFIG_SITE;; 2048 esac 2049elif test "x$prefix" != xNONE; then 2050 ac_site_file1=$prefix/share/config.site 2051 ac_site_file2=$prefix/etc/config.site 2052else 2053 ac_site_file1=$ac_default_prefix/share/config.site 2054 ac_site_file2=$ac_default_prefix/etc/config.site 2055fi 2056for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2057do 2058 test "x$ac_site_file" = xNONE && continue 2059 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2061$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2062 sed 's/^/| /' "$ac_site_file" >&5 2063 . "$ac_site_file" \ 2064 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2066as_fn_error $? "failed to load site script $ac_site_file 2067See \`config.log' for more details" "$LINENO" 5; } 2068 fi 2069done 2070 2071if test -r "$cache_file"; then 2072 # Some versions of bash will fail to source /dev/null (special files 2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2076$as_echo "$as_me: loading cache $cache_file" >&6;} 2077 case $cache_file in 2078 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2079 *) . "./$cache_file";; 2080 esac 2081 fi 2082else 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2084$as_echo "$as_me: creating cache $cache_file" >&6;} 2085 >$cache_file 2086fi 2087 2088# Check that the precious variables saved in the cache have kept the same 2089# value. 2090ac_cache_corrupted=false 2091for ac_var in $ac_precious_vars; do 2092 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2093 eval ac_new_set=\$ac_env_${ac_var}_set 2094 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2095 eval ac_new_val=\$ac_env_${ac_var}_value 2096 case $ac_old_set,$ac_new_set in 2097 set,) 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2099$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2100 ac_cache_corrupted=: ;; 2101 ,set) 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2103$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2104 ac_cache_corrupted=: ;; 2105 ,);; 2106 *) 2107 if test "x$ac_old_val" != "x$ac_new_val"; then 2108 # differences in whitespace do not lead to failure. 2109 ac_old_val_w=`echo x $ac_old_val` 2110 ac_new_val_w=`echo x $ac_new_val` 2111 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2113$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2114 ac_cache_corrupted=: 2115 else 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2117$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2118 eval $ac_var=\$ac_old_val 2119 fi 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2121$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2123$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2124 fi;; 2125 esac 2126 # Pass precious variables to config.status. 2127 if test "$ac_new_set" = set; then 2128 case $ac_new_val in 2129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2130 *) ac_arg=$ac_var=$ac_new_val ;; 2131 esac 2132 case " $ac_configure_args " in 2133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2134 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2135 esac 2136 fi 2137done 2138if $ac_cache_corrupted; then 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2142$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2143 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2144fi 2145## -------------------- ## 2146## Main body of script. ## 2147## -------------------- ## 2148 2149ac_ext=c 2150ac_cpp='$CPP $CPPFLAGS' 2151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2153ac_compiler_gnu=$ac_cv_c_compiler_gnu 2154 2155 2156 2157ac_config_headers="$ac_config_headers config.h" 2158 2159 2160ac_ext=c 2161ac_cpp='$CPP $CPPFLAGS' 2162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2164ac_compiler_gnu=$ac_cv_c_compiler_gnu 2165if test -n "$ac_tool_prefix"; then 2166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2167set dummy ${ac_tool_prefix}gcc; ac_word=$2 2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2169$as_echo_n "checking for $ac_word... " >&6; } 2170if ${ac_cv_prog_CC+:} false; then : 2171 $as_echo_n "(cached) " >&6 2172else 2173 if test -n "$CC"; then 2174 ac_cv_prog_CC="$CC" # Let the user override the test. 2175else 2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2177for as_dir in $PATH 2178do 2179 IFS=$as_save_IFS 2180 test -z "$as_dir" && as_dir=. 2181 for ac_exec_ext in '' $ac_executable_extensions; do 2182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2183 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2185 break 2 2186 fi 2187done 2188 done 2189IFS=$as_save_IFS 2190 2191fi 2192fi 2193CC=$ac_cv_prog_CC 2194if test -n "$CC"; then 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2196$as_echo "$CC" >&6; } 2197else 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2199$as_echo "no" >&6; } 2200fi 2201 2202 2203fi 2204if test -z "$ac_cv_prog_CC"; then 2205 ac_ct_CC=$CC 2206 # Extract the first word of "gcc", so it can be a program name with args. 2207set dummy gcc; ac_word=$2 2208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2209$as_echo_n "checking for $ac_word... " >&6; } 2210if ${ac_cv_prog_ac_ct_CC+:} false; then : 2211 $as_echo_n "(cached) " >&6 2212else 2213 if test -n "$ac_ct_CC"; then 2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2215else 2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2217for as_dir in $PATH 2218do 2219 IFS=$as_save_IFS 2220 test -z "$as_dir" && as_dir=. 2221 for ac_exec_ext in '' $ac_executable_extensions; do 2222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2223 ac_cv_prog_ac_ct_CC="gcc" 2224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2225 break 2 2226 fi 2227done 2228 done 2229IFS=$as_save_IFS 2230 2231fi 2232fi 2233ac_ct_CC=$ac_cv_prog_ac_ct_CC 2234if test -n "$ac_ct_CC"; then 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2236$as_echo "$ac_ct_CC" >&6; } 2237else 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2239$as_echo "no" >&6; } 2240fi 2241 2242 if test "x$ac_ct_CC" = x; then 2243 CC="" 2244 else 2245 case $cross_compiling:$ac_tool_warned in 2246yes:) 2247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2249ac_tool_warned=yes ;; 2250esac 2251 CC=$ac_ct_CC 2252 fi 2253else 2254 CC="$ac_cv_prog_CC" 2255fi 2256 2257if test -z "$CC"; then 2258 if test -n "$ac_tool_prefix"; then 2259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2260set dummy ${ac_tool_prefix}cc; ac_word=$2 2261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2262$as_echo_n "checking for $ac_word... " >&6; } 2263if ${ac_cv_prog_CC+:} false; then : 2264 $as_echo_n "(cached) " >&6 2265else 2266 if test -n "$CC"; then 2267 ac_cv_prog_CC="$CC" # Let the user override the test. 2268else 2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2270for as_dir in $PATH 2271do 2272 IFS=$as_save_IFS 2273 test -z "$as_dir" && as_dir=. 2274 for ac_exec_ext in '' $ac_executable_extensions; do 2275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2276 ac_cv_prog_CC="${ac_tool_prefix}cc" 2277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2278 break 2 2279 fi 2280done 2281 done 2282IFS=$as_save_IFS 2283 2284fi 2285fi 2286CC=$ac_cv_prog_CC 2287if test -n "$CC"; then 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2289$as_echo "$CC" >&6; } 2290else 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2292$as_echo "no" >&6; } 2293fi 2294 2295 2296 fi 2297fi 2298if test -z "$CC"; then 2299 # Extract the first word of "cc", so it can be a program name with args. 2300set dummy cc; ac_word=$2 2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2302$as_echo_n "checking for $ac_word... " >&6; } 2303if ${ac_cv_prog_CC+:} false; then : 2304 $as_echo_n "(cached) " >&6 2305else 2306 if test -n "$CC"; then 2307 ac_cv_prog_CC="$CC" # Let the user override the test. 2308else 2309 ac_prog_rejected=no 2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2311for as_dir in $PATH 2312do 2313 IFS=$as_save_IFS 2314 test -z "$as_dir" && as_dir=. 2315 for ac_exec_ext in '' $ac_executable_extensions; do 2316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2318 ac_prog_rejected=yes 2319 continue 2320 fi 2321 ac_cv_prog_CC="cc" 2322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2323 break 2 2324 fi 2325done 2326 done 2327IFS=$as_save_IFS 2328 2329if test $ac_prog_rejected = yes; then 2330 # We found a bogon in the path, so make sure we never use it. 2331 set dummy $ac_cv_prog_CC 2332 shift 2333 if test $# != 0; then 2334 # We chose a different compiler from the bogus one. 2335 # However, it has the same basename, so the bogon will be chosen 2336 # first if we set CC to just the basename; use the full file name. 2337 shift 2338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2339 fi 2340fi 2341fi 2342fi 2343CC=$ac_cv_prog_CC 2344if test -n "$CC"; then 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2346$as_echo "$CC" >&6; } 2347else 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2349$as_echo "no" >&6; } 2350fi 2351 2352 2353fi 2354if test -z "$CC"; then 2355 if test -n "$ac_tool_prefix"; then 2356 for ac_prog in cl.exe 2357 do 2358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2359set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2361$as_echo_n "checking for $ac_word... " >&6; } 2362if ${ac_cv_prog_CC+:} false; then : 2363 $as_echo_n "(cached) " >&6 2364else 2365 if test -n "$CC"; then 2366 ac_cv_prog_CC="$CC" # Let the user override the test. 2367else 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2377 break 2 2378 fi 2379done 2380 done 2381IFS=$as_save_IFS 2382 2383fi 2384fi 2385CC=$ac_cv_prog_CC 2386if test -n "$CC"; then 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2388$as_echo "$CC" >&6; } 2389else 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2391$as_echo "no" >&6; } 2392fi 2393 2394 2395 test -n "$CC" && break 2396 done 2397fi 2398if test -z "$CC"; then 2399 ac_ct_CC=$CC 2400 for ac_prog in cl.exe 2401do 2402 # Extract the first word of "$ac_prog", so it can be a program name with args. 2403set dummy $ac_prog; ac_word=$2 2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2405$as_echo_n "checking for $ac_word... " >&6; } 2406if ${ac_cv_prog_ac_ct_CC+:} false; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 if test -n "$ac_ct_CC"; then 2410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2411else 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2419 ac_cv_prog_ac_ct_CC="$ac_prog" 2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2421 break 2 2422 fi 2423done 2424 done 2425IFS=$as_save_IFS 2426 2427fi 2428fi 2429ac_ct_CC=$ac_cv_prog_ac_ct_CC 2430if test -n "$ac_ct_CC"; then 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2432$as_echo "$ac_ct_CC" >&6; } 2433else 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2435$as_echo "no" >&6; } 2436fi 2437 2438 2439 test -n "$ac_ct_CC" && break 2440done 2441 2442 if test "x$ac_ct_CC" = x; then 2443 CC="" 2444 else 2445 case $cross_compiling:$ac_tool_warned in 2446yes:) 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2449ac_tool_warned=yes ;; 2450esac 2451 CC=$ac_ct_CC 2452 fi 2453fi 2454 2455fi 2456 2457 2458test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2460as_fn_error $? "no acceptable C compiler found in \$PATH 2461See \`config.log' for more details" "$LINENO" 5; } 2462 2463# Provide some information about the compiler. 2464$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2465set X $ac_compile 2466ac_compiler=$2 2467for ac_option in --version -v -V -qversion; do 2468 { { ac_try="$ac_compiler $ac_option >&5" 2469case "(($ac_try" in 2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2471 *) ac_try_echo=$ac_try;; 2472esac 2473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2474$as_echo "$ac_try_echo"; } >&5 2475 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2476 ac_status=$? 2477 if test -s conftest.err; then 2478 sed '10a\ 2479... rest of stderr output deleted ... 2480 10q' conftest.err >conftest.er1 2481 cat conftest.er1 >&5 2482 fi 2483 rm -f conftest.er1 conftest.err 2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2485 test $ac_status = 0; } 2486done 2487 2488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2489/* end confdefs.h. */ 2490 2491int 2492main () 2493{ 2494 2495 ; 2496 return 0; 2497} 2498_ACEOF 2499ac_clean_files_save=$ac_clean_files 2500ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2501# Try to create an executable without -o first, disregard a.out. 2502# It will help us diagnose broken compilers, and finding out an intuition 2503# of exeext. 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2505$as_echo_n "checking whether the C compiler works... " >&6; } 2506ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2507 2508# The possible output files: 2509ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2510 2511ac_rmfiles= 2512for ac_file in $ac_files 2513do 2514 case $ac_file in 2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2516 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2517 esac 2518done 2519rm -f $ac_rmfiles 2520 2521if { { ac_try="$ac_link_default" 2522case "(($ac_try" in 2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2524 *) ac_try_echo=$ac_try;; 2525esac 2526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2527$as_echo "$ac_try_echo"; } >&5 2528 (eval "$ac_link_default") 2>&5 2529 ac_status=$? 2530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2531 test $ac_status = 0; }; then : 2532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2533# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2534# in a Makefile. We should not override ac_cv_exeext if it was cached, 2535# so that the user can short-circuit this test for compilers unknown to 2536# Autoconf. 2537for ac_file in $ac_files '' 2538do 2539 test -f "$ac_file" || continue 2540 case $ac_file in 2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2542 ;; 2543 [ab].out ) 2544 # We found the default executable, but exeext='' is most 2545 # certainly right. 2546 break;; 2547 *.* ) 2548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2549 then :; else 2550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2551 fi 2552 # We set ac_cv_exeext here because the later test for it is not 2553 # safe: cross compilers may not add the suffix if given an `-o' 2554 # argument, so we may need to know it at that point already. 2555 # Even if this section looks crufty: it has the advantage of 2556 # actually working. 2557 break;; 2558 * ) 2559 break;; 2560 esac 2561done 2562test "$ac_cv_exeext" = no && ac_cv_exeext= 2563 2564else 2565 ac_file='' 2566fi 2567if test -z "$ac_file"; then : 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2569$as_echo "no" >&6; } 2570$as_echo "$as_me: failed program was:" >&5 2571sed 's/^/| /' conftest.$ac_ext >&5 2572 2573{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2575as_fn_error 77 "C compiler cannot create executables 2576See \`config.log' for more details" "$LINENO" 5; } 2577else 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2579$as_echo "yes" >&6; } 2580fi 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2582$as_echo_n "checking for C compiler default output file name... " >&6; } 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2584$as_echo "$ac_file" >&6; } 2585ac_exeext=$ac_cv_exeext 2586 2587rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2588ac_clean_files=$ac_clean_files_save 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2590$as_echo_n "checking for suffix of executables... " >&6; } 2591if { { ac_try="$ac_link" 2592case "(($ac_try" in 2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2594 *) ac_try_echo=$ac_try;; 2595esac 2596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2597$as_echo "$ac_try_echo"; } >&5 2598 (eval "$ac_link") 2>&5 2599 ac_status=$? 2600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2601 test $ac_status = 0; }; then : 2602 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2603# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2604# work properly (i.e., refer to `conftest.exe'), while it won't with 2605# `rm'. 2606for ac_file in conftest.exe conftest conftest.*; do 2607 test -f "$ac_file" || continue 2608 case $ac_file in 2609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2610 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2611 break;; 2612 * ) break;; 2613 esac 2614done 2615else 2616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2618as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2619See \`config.log' for more details" "$LINENO" 5; } 2620fi 2621rm -f conftest conftest$ac_cv_exeext 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2623$as_echo "$ac_cv_exeext" >&6; } 2624 2625rm -f conftest.$ac_ext 2626EXEEXT=$ac_cv_exeext 2627ac_exeext=$EXEEXT 2628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2629/* end confdefs.h. */ 2630#include <stdio.h> 2631int 2632main () 2633{ 2634FILE *f = fopen ("conftest.out", "w"); 2635 return ferror (f) || fclose (f) != 0; 2636 2637 ; 2638 return 0; 2639} 2640_ACEOF 2641ac_clean_files="$ac_clean_files conftest.out" 2642# Check that the compiler produces executables we can run. If not, either 2643# the compiler is broken, or we cross compile. 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2645$as_echo_n "checking whether we are cross compiling... " >&6; } 2646if test "$cross_compiling" != yes; then 2647 { { ac_try="$ac_link" 2648case "(($ac_try" in 2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2650 *) ac_try_echo=$ac_try;; 2651esac 2652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2653$as_echo "$ac_try_echo"; } >&5 2654 (eval "$ac_link") 2>&5 2655 ac_status=$? 2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2657 test $ac_status = 0; } 2658 if { ac_try='./conftest$ac_cv_exeext' 2659 { { case "(($ac_try" in 2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2661 *) ac_try_echo=$ac_try;; 2662esac 2663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2664$as_echo "$ac_try_echo"; } >&5 2665 (eval "$ac_try") 2>&5 2666 ac_status=$? 2667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2668 test $ac_status = 0; }; }; then 2669 cross_compiling=no 2670 else 2671 if test "$cross_compiling" = maybe; then 2672 cross_compiling=yes 2673 else 2674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2676as_fn_error $? "cannot run C compiled programs. 2677If you meant to cross compile, use \`--host'. 2678See \`config.log' for more details" "$LINENO" 5; } 2679 fi 2680 fi 2681fi 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2683$as_echo "$cross_compiling" >&6; } 2684 2685rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2686ac_clean_files=$ac_clean_files_save 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2688$as_echo_n "checking for suffix of object files... " >&6; } 2689if ${ac_cv_objext+:} false; then : 2690 $as_echo_n "(cached) " >&6 2691else 2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2693/* end confdefs.h. */ 2694 2695int 2696main () 2697{ 2698 2699 ; 2700 return 0; 2701} 2702_ACEOF 2703rm -f conftest.o conftest.obj 2704if { { ac_try="$ac_compile" 2705case "(($ac_try" in 2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2707 *) ac_try_echo=$ac_try;; 2708esac 2709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2710$as_echo "$ac_try_echo"; } >&5 2711 (eval "$ac_compile") 2>&5 2712 ac_status=$? 2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2714 test $ac_status = 0; }; then : 2715 for ac_file in conftest.o conftest.obj conftest.*; do 2716 test -f "$ac_file" || continue; 2717 case $ac_file in 2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2719 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2720 break;; 2721 esac 2722done 2723else 2724 $as_echo "$as_me: failed program was:" >&5 2725sed 's/^/| /' conftest.$ac_ext >&5 2726 2727{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2729as_fn_error $? "cannot compute suffix of object files: cannot compile 2730See \`config.log' for more details" "$LINENO" 5; } 2731fi 2732rm -f conftest.$ac_cv_objext conftest.$ac_ext 2733fi 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2735$as_echo "$ac_cv_objext" >&6; } 2736OBJEXT=$ac_cv_objext 2737ac_objext=$OBJEXT 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2739$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2740if ${ac_cv_c_compiler_gnu+:} false; then : 2741 $as_echo_n "(cached) " >&6 2742else 2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2744/* end confdefs.h. */ 2745 2746int 2747main () 2748{ 2749#ifndef __GNUC__ 2750 choke me 2751#endif 2752 2753 ; 2754 return 0; 2755} 2756_ACEOF 2757if ac_fn_c_try_compile "$LINENO"; then : 2758 ac_compiler_gnu=yes 2759else 2760 ac_compiler_gnu=no 2761fi 2762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2763ac_cv_c_compiler_gnu=$ac_compiler_gnu 2764 2765fi 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2767$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2768if test $ac_compiler_gnu = yes; then 2769 GCC=yes 2770else 2771 GCC= 2772fi 2773ac_test_CFLAGS=${CFLAGS+set} 2774ac_save_CFLAGS=$CFLAGS 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2776$as_echo_n "checking whether $CC accepts -g... " >&6; } 2777if ${ac_cv_prog_cc_g+:} false; then : 2778 $as_echo_n "(cached) " >&6 2779else 2780 ac_save_c_werror_flag=$ac_c_werror_flag 2781 ac_c_werror_flag=yes 2782 ac_cv_prog_cc_g=no 2783 CFLAGS="-g" 2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2785/* end confdefs.h. */ 2786 2787int 2788main () 2789{ 2790 2791 ; 2792 return 0; 2793} 2794_ACEOF 2795if ac_fn_c_try_compile "$LINENO"; then : 2796 ac_cv_prog_cc_g=yes 2797else 2798 CFLAGS="" 2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2800/* end confdefs.h. */ 2801 2802int 2803main () 2804{ 2805 2806 ; 2807 return 0; 2808} 2809_ACEOF 2810if ac_fn_c_try_compile "$LINENO"; then : 2811 2812else 2813 ac_c_werror_flag=$ac_save_c_werror_flag 2814 CFLAGS="-g" 2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2816/* end confdefs.h. */ 2817 2818int 2819main () 2820{ 2821 2822 ; 2823 return 0; 2824} 2825_ACEOF 2826if ac_fn_c_try_compile "$LINENO"; then : 2827 ac_cv_prog_cc_g=yes 2828fi 2829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2830fi 2831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2832fi 2833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2834 ac_c_werror_flag=$ac_save_c_werror_flag 2835fi 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2837$as_echo "$ac_cv_prog_cc_g" >&6; } 2838if test "$ac_test_CFLAGS" = set; then 2839 CFLAGS=$ac_save_CFLAGS 2840elif test $ac_cv_prog_cc_g = yes; then 2841 if test "$GCC" = yes; then 2842 CFLAGS="-g -O2" 2843 else 2844 CFLAGS="-g" 2845 fi 2846else 2847 if test "$GCC" = yes; then 2848 CFLAGS="-O2" 2849 else 2850 CFLAGS= 2851 fi 2852fi 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2854$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2855if ${ac_cv_prog_cc_c89+:} false; then : 2856 $as_echo_n "(cached) " >&6 2857else 2858 ac_cv_prog_cc_c89=no 2859ac_save_CC=$CC 2860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2861/* end confdefs.h. */ 2862#include <stdarg.h> 2863#include <stdio.h> 2864struct stat; 2865/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2866struct buf { int x; }; 2867FILE * (*rcsopen) (struct buf *, struct stat *, int); 2868static char *e (p, i) 2869 char **p; 2870 int i; 2871{ 2872 return p[i]; 2873} 2874static char *f (char * (*g) (char **, int), char **p, ...) 2875{ 2876 char *s; 2877 va_list v; 2878 va_start (v,p); 2879 s = g (p, va_arg (v,int)); 2880 va_end (v); 2881 return s; 2882} 2883 2884/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2885 function prototypes and stuff, but not '\xHH' hex character constants. 2886 These don't provoke an error unfortunately, instead are silently treated 2887 as 'x'. The following induces an error, until -std is added to get 2888 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2889 array size at least. It's necessary to write '\x00'==0 to get something 2890 that's true only with -std. */ 2891int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2892 2893/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2894 inside strings and character constants. */ 2895#define FOO(x) 'x' 2896int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2897 2898int test (int i, double x); 2899struct s1 {int (*f) (int a);}; 2900struct s2 {int (*f) (double a);}; 2901int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2902int argc; 2903char **argv; 2904int 2905main () 2906{ 2907return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2908 ; 2909 return 0; 2910} 2911_ACEOF 2912for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2913 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2914do 2915 CC="$ac_save_CC $ac_arg" 2916 if ac_fn_c_try_compile "$LINENO"; then : 2917 ac_cv_prog_cc_c89=$ac_arg 2918fi 2919rm -f core conftest.err conftest.$ac_objext 2920 test "x$ac_cv_prog_cc_c89" != "xno" && break 2921done 2922rm -f conftest.$ac_ext 2923CC=$ac_save_CC 2924 2925fi 2926# AC_CACHE_VAL 2927case "x$ac_cv_prog_cc_c89" in 2928 x) 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2930$as_echo "none needed" >&6; } ;; 2931 xno) 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2933$as_echo "unsupported" >&6; } ;; 2934 *) 2935 CC="$CC $ac_cv_prog_cc_c89" 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2937$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2938esac 2939if test "x$ac_cv_prog_cc_c89" != xno; then : 2940 2941fi 2942 2943ac_ext=c 2944ac_cpp='$CPP $CPPFLAGS' 2945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2947ac_compiler_gnu=$ac_cv_c_compiler_gnu 2948 2949 2950ac_ext=c 2951ac_cpp='$CPP $CPPFLAGS' 2952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2954ac_compiler_gnu=$ac_cv_c_compiler_gnu 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 2956$as_echo_n "checking how to run the C preprocessor... " >&6; } 2957# On Suns, sometimes $CPP names a directory. 2958if test -n "$CPP" && test -d "$CPP"; then 2959 CPP= 2960fi 2961if test -z "$CPP"; then 2962 if ${ac_cv_prog_CPP+:} false; then : 2963 $as_echo_n "(cached) " >&6 2964else 2965 # Double quotes because CPP needs to be expanded 2966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2967 do 2968 ac_preproc_ok=false 2969for ac_c_preproc_warn_flag in '' yes 2970do 2971 # Use a header file that comes with gcc, so configuring glibc 2972 # with a fresh cross-compiler works. 2973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2974 # <limits.h> exists even on freestanding compilers. 2975 # On the NeXT, cc -E runs the code through the compiler's parser, 2976 # not just through cpp. "Syntax error" is here to catch this case. 2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2978/* end confdefs.h. */ 2979#ifdef __STDC__ 2980# include <limits.h> 2981#else 2982# include <assert.h> 2983#endif 2984 Syntax error 2985_ACEOF 2986if ac_fn_c_try_cpp "$LINENO"; then : 2987 2988else 2989 # Broken: fails on valid input. 2990continue 2991fi 2992rm -f conftest.err conftest.i conftest.$ac_ext 2993 2994 # OK, works on sane cases. Now check whether nonexistent headers 2995 # can be detected and how. 2996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2997/* end confdefs.h. */ 2998#include <ac_nonexistent.h> 2999_ACEOF 3000if ac_fn_c_try_cpp "$LINENO"; then : 3001 # Broken: success on invalid input. 3002continue 3003else 3004 # Passes both tests. 3005ac_preproc_ok=: 3006break 3007fi 3008rm -f conftest.err conftest.i conftest.$ac_ext 3009 3010done 3011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3012rm -f conftest.i conftest.err conftest.$ac_ext 3013if $ac_preproc_ok; then : 3014 break 3015fi 3016 3017 done 3018 ac_cv_prog_CPP=$CPP 3019 3020fi 3021 CPP=$ac_cv_prog_CPP 3022else 3023 ac_cv_prog_CPP=$CPP 3024fi 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3026$as_echo "$CPP" >&6; } 3027ac_preproc_ok=false 3028for ac_c_preproc_warn_flag in '' yes 3029do 3030 # Use a header file that comes with gcc, so configuring glibc 3031 # with a fresh cross-compiler works. 3032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3033 # <limits.h> exists even on freestanding compilers. 3034 # On the NeXT, cc -E runs the code through the compiler's parser, 3035 # not just through cpp. "Syntax error" is here to catch this case. 3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3037/* end confdefs.h. */ 3038#ifdef __STDC__ 3039# include <limits.h> 3040#else 3041# include <assert.h> 3042#endif 3043 Syntax error 3044_ACEOF 3045if ac_fn_c_try_cpp "$LINENO"; then : 3046 3047else 3048 # Broken: fails on valid input. 3049continue 3050fi 3051rm -f conftest.err conftest.i conftest.$ac_ext 3052 3053 # OK, works on sane cases. Now check whether nonexistent headers 3054 # can be detected and how. 3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3056/* end confdefs.h. */ 3057#include <ac_nonexistent.h> 3058_ACEOF 3059if ac_fn_c_try_cpp "$LINENO"; then : 3060 # Broken: success on invalid input. 3061continue 3062else 3063 # Passes both tests. 3064ac_preproc_ok=: 3065break 3066fi 3067rm -f conftest.err conftest.i conftest.$ac_ext 3068 3069done 3070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3071rm -f conftest.i conftest.err conftest.$ac_ext 3072if $ac_preproc_ok; then : 3073 3074else 3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3077as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3078See \`config.log' for more details" "$LINENO" 5; } 3079fi 3080 3081ac_ext=c 3082ac_cpp='$CPP $CPPFLAGS' 3083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3085ac_compiler_gnu=$ac_cv_c_compiler_gnu 3086 3087 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3089$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3090if ${ac_cv_path_GREP+:} false; then : 3091 $as_echo_n "(cached) " >&6 3092else 3093 if test -z "$GREP"; then 3094 ac_path_GREP_found=false 3095 # Loop through the user's path and test for each of PROGNAME-LIST 3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_prog in grep ggrep; do 3102 for ac_exec_ext in '' $ac_executable_extensions; do 3103 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3104 as_fn_executable_p "$ac_path_GREP" || continue 3105# Check for GNU ac_path_GREP and select it if it is found. 3106 # Check for GNU $ac_path_GREP 3107case `"$ac_path_GREP" --version 2>&1` in 3108*GNU*) 3109 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3110*) 3111 ac_count=0 3112 $as_echo_n 0123456789 >"conftest.in" 3113 while : 3114 do 3115 cat "conftest.in" "conftest.in" >"conftest.tmp" 3116 mv "conftest.tmp" "conftest.in" 3117 cp "conftest.in" "conftest.nl" 3118 $as_echo 'GREP' >> "conftest.nl" 3119 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3121 as_fn_arith $ac_count + 1 && ac_count=$as_val 3122 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3123 # Best one so far, save it but keep looking for a better one 3124 ac_cv_path_GREP="$ac_path_GREP" 3125 ac_path_GREP_max=$ac_count 3126 fi 3127 # 10*(2^10) chars as input seems more than enough 3128 test $ac_count -gt 10 && break 3129 done 3130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3131esac 3132 3133 $ac_path_GREP_found && break 3 3134 done 3135 done 3136 done 3137IFS=$as_save_IFS 3138 if test -z "$ac_cv_path_GREP"; then 3139 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3140 fi 3141else 3142 ac_cv_path_GREP=$GREP 3143fi 3144 3145fi 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3147$as_echo "$ac_cv_path_GREP" >&6; } 3148 GREP="$ac_cv_path_GREP" 3149 3150 3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3152$as_echo_n "checking for egrep... " >&6; } 3153if ${ac_cv_path_EGREP+:} false; then : 3154 $as_echo_n "(cached) " >&6 3155else 3156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3157 then ac_cv_path_EGREP="$GREP -E" 3158 else 3159 if test -z "$EGREP"; then 3160 ac_path_EGREP_found=false 3161 # Loop through the user's path and test for each of PROGNAME-LIST 3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3163for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3164do 3165 IFS=$as_save_IFS 3166 test -z "$as_dir" && as_dir=. 3167 for ac_prog in egrep; do 3168 for ac_exec_ext in '' $ac_executable_extensions; do 3169 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3170 as_fn_executable_p "$ac_path_EGREP" || continue 3171# Check for GNU ac_path_EGREP and select it if it is found. 3172 # Check for GNU $ac_path_EGREP 3173case `"$ac_path_EGREP" --version 2>&1` in 3174*GNU*) 3175 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3176*) 3177 ac_count=0 3178 $as_echo_n 0123456789 >"conftest.in" 3179 while : 3180 do 3181 cat "conftest.in" "conftest.in" >"conftest.tmp" 3182 mv "conftest.tmp" "conftest.in" 3183 cp "conftest.in" "conftest.nl" 3184 $as_echo 'EGREP' >> "conftest.nl" 3185 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3187 as_fn_arith $ac_count + 1 && ac_count=$as_val 3188 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3189 # Best one so far, save it but keep looking for a better one 3190 ac_cv_path_EGREP="$ac_path_EGREP" 3191 ac_path_EGREP_max=$ac_count 3192 fi 3193 # 10*(2^10) chars as input seems more than enough 3194 test $ac_count -gt 10 && break 3195 done 3196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3197esac 3198 3199 $ac_path_EGREP_found && break 3 3200 done 3201 done 3202 done 3203IFS=$as_save_IFS 3204 if test -z "$ac_cv_path_EGREP"; then 3205 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3206 fi 3207else 3208 ac_cv_path_EGREP=$EGREP 3209fi 3210 3211 fi 3212fi 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3214$as_echo "$ac_cv_path_EGREP" >&6; } 3215 EGREP="$ac_cv_path_EGREP" 3216 3217 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3219$as_echo_n "checking for ANSI C header files... " >&6; } 3220if ${ac_cv_header_stdc+:} false; then : 3221 $as_echo_n "(cached) " >&6 3222else 3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3224/* end confdefs.h. */ 3225#include <stdlib.h> 3226#include <stdarg.h> 3227#include <string.h> 3228#include <float.h> 3229 3230int 3231main () 3232{ 3233 3234 ; 3235 return 0; 3236} 3237_ACEOF 3238if ac_fn_c_try_compile "$LINENO"; then : 3239 ac_cv_header_stdc=yes 3240else 3241 ac_cv_header_stdc=no 3242fi 3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3244 3245if test $ac_cv_header_stdc = yes; then 3246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3248/* end confdefs.h. */ 3249#include <string.h> 3250 3251_ACEOF 3252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3253 $EGREP "memchr" >/dev/null 2>&1; then : 3254 3255else 3256 ac_cv_header_stdc=no 3257fi 3258rm -f conftest* 3259 3260fi 3261 3262if test $ac_cv_header_stdc = yes; then 3263 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3265/* end confdefs.h. */ 3266#include <stdlib.h> 3267 3268_ACEOF 3269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3270 $EGREP "free" >/dev/null 2>&1; then : 3271 3272else 3273 ac_cv_header_stdc=no 3274fi 3275rm -f conftest* 3276 3277fi 3278 3279if test $ac_cv_header_stdc = yes; then 3280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3281 if test "$cross_compiling" = yes; then : 3282 : 3283else 3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3285/* end confdefs.h. */ 3286#include <ctype.h> 3287#include <stdlib.h> 3288#if ((' ' & 0x0FF) == 0x020) 3289# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3290# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3291#else 3292# define ISLOWER(c) \ 3293 (('a' <= (c) && (c) <= 'i') \ 3294 || ('j' <= (c) && (c) <= 'r') \ 3295 || ('s' <= (c) && (c) <= 'z')) 3296# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3297#endif 3298 3299#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3300int 3301main () 3302{ 3303 int i; 3304 for (i = 0; i < 256; i++) 3305 if (XOR (islower (i), ISLOWER (i)) 3306 || toupper (i) != TOUPPER (i)) 3307 return 2; 3308 return 0; 3309} 3310_ACEOF 3311if ac_fn_c_try_run "$LINENO"; then : 3312 3313else 3314 ac_cv_header_stdc=no 3315fi 3316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3317 conftest.$ac_objext conftest.beam conftest.$ac_ext 3318fi 3319 3320fi 3321fi 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3323$as_echo "$ac_cv_header_stdc" >&6; } 3324if test $ac_cv_header_stdc = yes; then 3325 3326$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3327 3328fi 3329 3330# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3331for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3332 inttypes.h stdint.h unistd.h 3333do : 3334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3335ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3336" 3337if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3338 cat >>confdefs.h <<_ACEOF 3339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3340_ACEOF 3341 3342fi 3343 3344done 3345 3346 3347 3348 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3349if test "x$ac_cv_header_minix_config_h" = xyes; then : 3350 MINIX=yes 3351else 3352 MINIX= 3353fi 3354 3355 3356 if test "$MINIX" = yes; then 3357 3358$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3359 3360 3361$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3362 3363 3364$as_echo "#define _MINIX 1" >>confdefs.h 3365 3366 fi 3367 3368 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3370$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3371if ${ac_cv_safe_to_define___extensions__+:} false; then : 3372 $as_echo_n "(cached) " >&6 3373else 3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3375/* end confdefs.h. */ 3376 3377# define __EXTENSIONS__ 1 3378 $ac_includes_default 3379int 3380main () 3381{ 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387if ac_fn_c_try_compile "$LINENO"; then : 3388 ac_cv_safe_to_define___extensions__=yes 3389else 3390 ac_cv_safe_to_define___extensions__=no 3391fi 3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3393fi 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3395$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3396 test $ac_cv_safe_to_define___extensions__ = yes && 3397 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3398 3399 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3400 3401 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3402 3403 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3404 3405 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3406 3407 3408 3409# Check whether --enable-pam was given. 3410if test "${enable_pam+set}" = set; then : 3411 enableval=$enable_pam; 3412fi 3413 3414ac_ext=c 3415ac_cpp='$CPP $CPPFLAGS' 3416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3418ac_compiler_gnu=$ac_cv_c_compiler_gnu 3419if test -n "$ac_tool_prefix"; then 3420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3421set dummy ${ac_tool_prefix}gcc; ac_word=$2 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3423$as_echo_n "checking for $ac_word... " >&6; } 3424if ${ac_cv_prog_CC+:} false; then : 3425 $as_echo_n "(cached) " >&6 3426else 3427 if test -n "$CC"; then 3428 ac_cv_prog_CC="$CC" # Let the user override the test. 3429else 3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3431for as_dir in $PATH 3432do 3433 IFS=$as_save_IFS 3434 test -z "$as_dir" && as_dir=. 3435 for ac_exec_ext in '' $ac_executable_extensions; do 3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3437 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3439 break 2 3440 fi 3441done 3442 done 3443IFS=$as_save_IFS 3444 3445fi 3446fi 3447CC=$ac_cv_prog_CC 3448if test -n "$CC"; then 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3450$as_echo "$CC" >&6; } 3451else 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453$as_echo "no" >&6; } 3454fi 3455 3456 3457fi 3458if test -z "$ac_cv_prog_CC"; then 3459 ac_ct_CC=$CC 3460 # Extract the first word of "gcc", so it can be a program name with args. 3461set dummy gcc; ac_word=$2 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3463$as_echo_n "checking for $ac_word... " >&6; } 3464if ${ac_cv_prog_ac_ct_CC+:} false; then : 3465 $as_echo_n "(cached) " >&6 3466else 3467 if test -n "$ac_ct_CC"; then 3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3469else 3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471for as_dir in $PATH 3472do 3473 IFS=$as_save_IFS 3474 test -z "$as_dir" && as_dir=. 3475 for ac_exec_ext in '' $ac_executable_extensions; do 3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3477 ac_cv_prog_ac_ct_CC="gcc" 3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3479 break 2 3480 fi 3481done 3482 done 3483IFS=$as_save_IFS 3484 3485fi 3486fi 3487ac_ct_CC=$ac_cv_prog_ac_ct_CC 3488if test -n "$ac_ct_CC"; then 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3490$as_echo "$ac_ct_CC" >&6; } 3491else 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3493$as_echo "no" >&6; } 3494fi 3495 3496 if test "x$ac_ct_CC" = x; then 3497 CC="" 3498 else 3499 case $cross_compiling:$ac_tool_warned in 3500yes:) 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3503ac_tool_warned=yes ;; 3504esac 3505 CC=$ac_ct_CC 3506 fi 3507else 3508 CC="$ac_cv_prog_CC" 3509fi 3510 3511if test -z "$CC"; then 3512 if test -n "$ac_tool_prefix"; then 3513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3514set dummy ${ac_tool_prefix}cc; ac_word=$2 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3516$as_echo_n "checking for $ac_word... " >&6; } 3517if ${ac_cv_prog_CC+:} false; then : 3518 $as_echo_n "(cached) " >&6 3519else 3520 if test -n "$CC"; then 3521 ac_cv_prog_CC="$CC" # Let the user override the test. 3522else 3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3524for as_dir in $PATH 3525do 3526 IFS=$as_save_IFS 3527 test -z "$as_dir" && as_dir=. 3528 for ac_exec_ext in '' $ac_executable_extensions; do 3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3530 ac_cv_prog_CC="${ac_tool_prefix}cc" 3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3532 break 2 3533 fi 3534done 3535 done 3536IFS=$as_save_IFS 3537 3538fi 3539fi 3540CC=$ac_cv_prog_CC 3541if test -n "$CC"; then 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3543$as_echo "$CC" >&6; } 3544else 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3546$as_echo "no" >&6; } 3547fi 3548 3549 3550 fi 3551fi 3552if test -z "$CC"; then 3553 # Extract the first word of "cc", so it can be a program name with args. 3554set dummy cc; ac_word=$2 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3556$as_echo_n "checking for $ac_word... " >&6; } 3557if ${ac_cv_prog_CC+:} false; then : 3558 $as_echo_n "(cached) " >&6 3559else 3560 if test -n "$CC"; then 3561 ac_cv_prog_CC="$CC" # Let the user override the test. 3562else 3563 ac_prog_rejected=no 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565for as_dir in $PATH 3566do 3567 IFS=$as_save_IFS 3568 test -z "$as_dir" && as_dir=. 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3572 ac_prog_rejected=yes 3573 continue 3574 fi 3575 ac_cv_prog_CC="cc" 3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3577 break 2 3578 fi 3579done 3580 done 3581IFS=$as_save_IFS 3582 3583if test $ac_prog_rejected = yes; then 3584 # We found a bogon in the path, so make sure we never use it. 3585 set dummy $ac_cv_prog_CC 3586 shift 3587 if test $# != 0; then 3588 # We chose a different compiler from the bogus one. 3589 # However, it has the same basename, so the bogon will be chosen 3590 # first if we set CC to just the basename; use the full file name. 3591 shift 3592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3593 fi 3594fi 3595fi 3596fi 3597CC=$ac_cv_prog_CC 3598if test -n "$CC"; then 3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3600$as_echo "$CC" >&6; } 3601else 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3603$as_echo "no" >&6; } 3604fi 3605 3606 3607fi 3608if test -z "$CC"; then 3609 if test -n "$ac_tool_prefix"; then 3610 for ac_prog in cl.exe 3611 do 3612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3613set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3615$as_echo_n "checking for $ac_word... " >&6; } 3616if ${ac_cv_prog_CC+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618else 3619 if test -n "$CC"; then 3620 ac_cv_prog_CC="$CC" # Let the user override the test. 3621else 3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3623for as_dir in $PATH 3624do 3625 IFS=$as_save_IFS 3626 test -z "$as_dir" && as_dir=. 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3631 break 2 3632 fi 3633done 3634 done 3635IFS=$as_save_IFS 3636 3637fi 3638fi 3639CC=$ac_cv_prog_CC 3640if test -n "$CC"; then 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3642$as_echo "$CC" >&6; } 3643else 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3645$as_echo "no" >&6; } 3646fi 3647 3648 3649 test -n "$CC" && break 3650 done 3651fi 3652if test -z "$CC"; then 3653 ac_ct_CC=$CC 3654 for ac_prog in cl.exe 3655do 3656 # Extract the first word of "$ac_prog", so it can be a program name with args. 3657set dummy $ac_prog; ac_word=$2 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3659$as_echo_n "checking for $ac_word... " >&6; } 3660if ${ac_cv_prog_ac_ct_CC+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 if test -n "$ac_ct_CC"; then 3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3665else 3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3667for as_dir in $PATH 3668do 3669 IFS=$as_save_IFS 3670 test -z "$as_dir" && as_dir=. 3671 for ac_exec_ext in '' $ac_executable_extensions; do 3672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3673 ac_cv_prog_ac_ct_CC="$ac_prog" 3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3675 break 2 3676 fi 3677done 3678 done 3679IFS=$as_save_IFS 3680 3681fi 3682fi 3683ac_ct_CC=$ac_cv_prog_ac_ct_CC 3684if test -n "$ac_ct_CC"; then 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3686$as_echo "$ac_ct_CC" >&6; } 3687else 3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3689$as_echo "no" >&6; } 3690fi 3691 3692 3693 test -n "$ac_ct_CC" && break 3694done 3695 3696 if test "x$ac_ct_CC" = x; then 3697 CC="" 3698 else 3699 case $cross_compiling:$ac_tool_warned in 3700yes:) 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3703ac_tool_warned=yes ;; 3704esac 3705 CC=$ac_ct_CC 3706 fi 3707fi 3708 3709fi 3710 3711 3712test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3714as_fn_error $? "no acceptable C compiler found in \$PATH 3715See \`config.log' for more details" "$LINENO" 5; } 3716 3717# Provide some information about the compiler. 3718$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3719set X $ac_compile 3720ac_compiler=$2 3721for ac_option in --version -v -V -qversion; do 3722 { { ac_try="$ac_compiler $ac_option >&5" 3723case "(($ac_try" in 3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3725 *) ac_try_echo=$ac_try;; 3726esac 3727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3728$as_echo "$ac_try_echo"; } >&5 3729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3730 ac_status=$? 3731 if test -s conftest.err; then 3732 sed '10a\ 3733... rest of stderr output deleted ... 3734 10q' conftest.err >conftest.er1 3735 cat conftest.er1 >&5 3736 fi 3737 rm -f conftest.er1 conftest.err 3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3739 test $ac_status = 0; } 3740done 3741 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3743$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3744if ${ac_cv_c_compiler_gnu+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749 3750int 3751main () 3752{ 3753#ifndef __GNUC__ 3754 choke me 3755#endif 3756 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761if ac_fn_c_try_compile "$LINENO"; then : 3762 ac_compiler_gnu=yes 3763else 3764 ac_compiler_gnu=no 3765fi 3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3767ac_cv_c_compiler_gnu=$ac_compiler_gnu 3768 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3771$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3772if test $ac_compiler_gnu = yes; then 3773 GCC=yes 3774else 3775 GCC= 3776fi 3777ac_test_CFLAGS=${CFLAGS+set} 3778ac_save_CFLAGS=$CFLAGS 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3780$as_echo_n "checking whether $CC accepts -g... " >&6; } 3781if ${ac_cv_prog_cc_g+:} false; then : 3782 $as_echo_n "(cached) " >&6 3783else 3784 ac_save_c_werror_flag=$ac_c_werror_flag 3785 ac_c_werror_flag=yes 3786 ac_cv_prog_cc_g=no 3787 CFLAGS="-g" 3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3789/* end confdefs.h. */ 3790 3791int 3792main () 3793{ 3794 3795 ; 3796 return 0; 3797} 3798_ACEOF 3799if ac_fn_c_try_compile "$LINENO"; then : 3800 ac_cv_prog_cc_g=yes 3801else 3802 CFLAGS="" 3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3804/* end confdefs.h. */ 3805 3806int 3807main () 3808{ 3809 3810 ; 3811 return 0; 3812} 3813_ACEOF 3814if ac_fn_c_try_compile "$LINENO"; then : 3815 3816else 3817 ac_c_werror_flag=$ac_save_c_werror_flag 3818 CFLAGS="-g" 3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3820/* end confdefs.h. */ 3821 3822int 3823main () 3824{ 3825 3826 ; 3827 return 0; 3828} 3829_ACEOF 3830if ac_fn_c_try_compile "$LINENO"; then : 3831 ac_cv_prog_cc_g=yes 3832fi 3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3834fi 3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3836fi 3837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3838 ac_c_werror_flag=$ac_save_c_werror_flag 3839fi 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3841$as_echo "$ac_cv_prog_cc_g" >&6; } 3842if test "$ac_test_CFLAGS" = set; then 3843 CFLAGS=$ac_save_CFLAGS 3844elif test $ac_cv_prog_cc_g = yes; then 3845 if test "$GCC" = yes; then 3846 CFLAGS="-g -O2" 3847 else 3848 CFLAGS="-g" 3849 fi 3850else 3851 if test "$GCC" = yes; then 3852 CFLAGS="-O2" 3853 else 3854 CFLAGS= 3855 fi 3856fi 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3858$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3859if ${ac_cv_prog_cc_c89+:} false; then : 3860 $as_echo_n "(cached) " >&6 3861else 3862 ac_cv_prog_cc_c89=no 3863ac_save_CC=$CC 3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866#include <stdarg.h> 3867#include <stdio.h> 3868struct stat; 3869/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3870struct buf { int x; }; 3871FILE * (*rcsopen) (struct buf *, struct stat *, int); 3872static char *e (p, i) 3873 char **p; 3874 int i; 3875{ 3876 return p[i]; 3877} 3878static char *f (char * (*g) (char **, int), char **p, ...) 3879{ 3880 char *s; 3881 va_list v; 3882 va_start (v,p); 3883 s = g (p, va_arg (v,int)); 3884 va_end (v); 3885 return s; 3886} 3887 3888/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3889 function prototypes and stuff, but not '\xHH' hex character constants. 3890 These don't provoke an error unfortunately, instead are silently treated 3891 as 'x'. The following induces an error, until -std is added to get 3892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3893 array size at least. It's necessary to write '\x00'==0 to get something 3894 that's true only with -std. */ 3895int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3896 3897/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3898 inside strings and character constants. */ 3899#define FOO(x) 'x' 3900int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3901 3902int test (int i, double x); 3903struct s1 {int (*f) (int a);}; 3904struct s2 {int (*f) (double a);}; 3905int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3906int argc; 3907char **argv; 3908int 3909main () 3910{ 3911return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3912 ; 3913 return 0; 3914} 3915_ACEOF 3916for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3917 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3918do 3919 CC="$ac_save_CC $ac_arg" 3920 if ac_fn_c_try_compile "$LINENO"; then : 3921 ac_cv_prog_cc_c89=$ac_arg 3922fi 3923rm -f core conftest.err conftest.$ac_objext 3924 test "x$ac_cv_prog_cc_c89" != "xno" && break 3925done 3926rm -f conftest.$ac_ext 3927CC=$ac_save_CC 3928 3929fi 3930# AC_CACHE_VAL 3931case "x$ac_cv_prog_cc_c89" in 3932 x) 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3934$as_echo "none needed" >&6; } ;; 3935 xno) 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3937$as_echo "unsupported" >&6; } ;; 3938 *) 3939 CC="$CC $ac_cv_prog_cc_c89" 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3941$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3942esac 3943if test "x$ac_cv_prog_cc_c89" != xno; then : 3944 3945fi 3946 3947ac_ext=c 3948ac_cpp='$CPP $CPPFLAGS' 3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3951ac_compiler_gnu=$ac_cv_c_compiler_gnu 3952 3953 3954Uname=unknown 3955Major=0 3956Minor=0 3957for d in /bin /usr/bin /sbin /usr/sbin ; do 3958 if test -f $d/uname ; then 3959 Uname=`$d/uname` 3960 rev=`$d/uname -r` 3961 break 3962 fi 3963done 3964 3965if test "$Uname" = HP-UX ; then 3966 $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h 3967 3968 case "$CC" in 3969 gcc ) 3970 CPP="${CC} -E -w" 3971 ;; 3972 * ) 3973 CPP="${CC} -E -Ae -w" 3974 CFLAGS="${CFLAGS} -Ae" 3975 ;; 3976 esac 3977 Major=`expr "$rev" : '.*\.\([0-9][0-9]*\)\..*'` 3978 Minor=`expr "$rev" : '.*\.[0-9][0-9]*\.\([0-9][0-9]*\).*'` 3979 cat >>confdefs.h <<_ACEOF 3980#define HPUX_MAJOR $Major 3981_ACEOF 3982 3983 cat >>confdefs.h <<_ACEOF 3984#define HPUX_MINOR $Minor 3985_ACEOF 3986 3987 3988elif test "$Uname" = Linux ; then 3989 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3990 3991 $as_echo "#define _DEFAULT_SOURCE 1" >>confdefs.h 3992 3993 3994elif test "$Uname" = OSF1 ; then 3995 $as_echo "#define _OSF_SOURCE 1" >>confdefs.h 3996 3997 $as_echo "#define Digital_UNIX 1" >>confdefs.h 3998 3999 4000elif test "$Uname" = SunOS ; then 4001 Major=`/bin/expr "$rev" : '^\([0-9][0-9]*\)\.'` 4002 Minor=`/bin/expr "$rev" : '^[0-9][0-9]*\.\([0-9][0-9]*\)'` 4003 test "$Major" = 5 && $as_echo "#define SUNOS5 1" >>confdefs.h 4004 4005 cat >>confdefs.h <<_ACEOF 4006#define SUNOS_MAJOR $Major 4007_ACEOF 4008 4009 cat >>confdefs.h <<_ACEOF 4010#define SUNOS_MINOR $Minor 4011_ACEOF 4012 4013 4014elif test "$Uname" = Darwin ; then 4015 Major=`/bin/expr "$rev" : '^\([0-9][0-9]*\)\.'` 4016 Minor=`/bin/expr "$rev" : '^[0-9][0-9]*\.\([0-9][0-9]*\)'` 4017 4018elif test "$Uname" = OpenBSD ; then 4019 Major=`/bin/expr "$rev" : '^\([0-9][0-9]*\)\.'` 4020 Minor=`/bin/expr "$rev" : '^[0-9][0-9]*\.\([0-9][0-9]*\)'` 4021 4022elif test "$Uname" = AIX ; then 4023 Major=`/bin/uname -v` 4024 Minor=`/bin/uname -r` 4025 # Ensure we are looking at just a numeric value, just in case 4026 # IBM decides to add some letters or dots or underscores... 4027 Major=`/bin/expr "$Major" : '^[^0-9]*\([0-9][0-9]*\)'` 4028 Minor=`/bin/expr "$Minor" : '\([0-9][0-9]*\)[^0-9]*$'` 4029 cat >>confdefs.h <<_ACEOF 4030#define AIX_MAJOR $Major 4031_ACEOF 4032 4033 cat >>confdefs.h <<_ACEOF 4034#define AIX_MINOR $Minor 4035_ACEOF 4036 4037fi 4038 4039ac_aux_dir= 4040for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4041 if test -f "$ac_dir/install-sh"; then 4042 ac_aux_dir=$ac_dir 4043 ac_install_sh="$ac_aux_dir/install-sh -c" 4044 break 4045 elif test -f "$ac_dir/install.sh"; then 4046 ac_aux_dir=$ac_dir 4047 ac_install_sh="$ac_aux_dir/install.sh -c" 4048 break 4049 elif test -f "$ac_dir/shtool"; then 4050 ac_aux_dir=$ac_dir 4051 ac_install_sh="$ac_aux_dir/shtool install -c" 4052 break 4053 fi 4054done 4055if test -z "$ac_aux_dir"; then 4056 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4057fi 4058 4059# These three variables are undocumented and unsupported, 4060# and are intended to be withdrawn in a future Autoconf release. 4061# They can cause serious problems if a builder's source tree is in a directory 4062# whose full name contains unusual characters. 4063ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4064ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4065ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4066 4067 4068# Find a good install program. We prefer a C program (faster), 4069# so one script is as good as another. But avoid the broken or 4070# incompatible versions: 4071# SysV /etc/install, /usr/sbin/install 4072# SunOS /usr/etc/install 4073# IRIX /sbin/install 4074# AIX /bin/install 4075# AmigaOS /C/install, which installs bootblocks on floppy discs 4076# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4077# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4078# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4079# OS/2's system install, which has a completely different semantic 4080# ./install, which can be erroneously created by make from ./install.sh. 4081# Reject install programs that cannot install multiple files. 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4083$as_echo_n "checking for a BSD-compatible install... " >&6; } 4084if test -z "$INSTALL"; then 4085if ${ac_cv_path_install+:} false; then : 4086 $as_echo_n "(cached) " >&6 4087else 4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4089for as_dir in $PATH 4090do 4091 IFS=$as_save_IFS 4092 test -z "$as_dir" && as_dir=. 4093 # Account for people who put trailing slashes in PATH elements. 4094case $as_dir/ in #(( 4095 ./ | .// | /[cC]/* | \ 4096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4097 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4098 /usr/ucb/* ) ;; 4099 *) 4100 # OSF1 and SCO ODT 3.0 have their own names for install. 4101 # Don't use installbsd from OSF since it installs stuff as root 4102 # by default. 4103 for ac_prog in ginstall scoinst install; do 4104 for ac_exec_ext in '' $ac_executable_extensions; do 4105 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4106 if test $ac_prog = install && 4107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4108 # AIX install. It has an incompatible calling convention. 4109 : 4110 elif test $ac_prog = install && 4111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4112 # program-specific install script used by HP pwplus--don't use. 4113 : 4114 else 4115 rm -rf conftest.one conftest.two conftest.dir 4116 echo one > conftest.one 4117 echo two > conftest.two 4118 mkdir conftest.dir 4119 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4120 test -s conftest.one && test -s conftest.two && 4121 test -s conftest.dir/conftest.one && 4122 test -s conftest.dir/conftest.two 4123 then 4124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4125 break 3 4126 fi 4127 fi 4128 fi 4129 done 4130 done 4131 ;; 4132esac 4133 4134 done 4135IFS=$as_save_IFS 4136 4137rm -rf conftest.one conftest.two conftest.dir 4138 4139fi 4140 if test "${ac_cv_path_install+set}" = set; then 4141 INSTALL=$ac_cv_path_install 4142 else 4143 # As a last resort, use the slow shell script. Don't cache a 4144 # value for INSTALL within a source directory, because that will 4145 # break other packages using the cache if that directory is 4146 # removed, or if the value is a relative name. 4147 INSTALL=$ac_install_sh 4148 fi 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4151$as_echo "$INSTALL" >&6; } 4152 4153# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4154# It thinks the first close brace ends the variable substitution. 4155test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4156 4157test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4158 4159test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4160 4161 4162 4163 4164 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 4166$as_echo_n "checking for __attribute__... " >&6; } 4167if ${ax_cv___attribute__+:} false; then : 4168 $as_echo_n "(cached) " >&6 4169else 4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4171/* end confdefs.h. */ 4172#include <stdlib.h> 4173 static void foo(void) __attribute__ ((unused)); 4174 static void 4175 foo(void) { 4176 exit(1); 4177 } 4178 4179int 4180main () 4181{ 4182 4183 ; 4184 return 0; 4185} 4186_ACEOF 4187if ac_fn_c_try_compile "$LINENO"; then : 4188 ax_cv___attribute__=yes 4189else 4190 ax_cv___attribute__=no 4191 4192fi 4193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4194 4195fi 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 4197$as_echo "$ax_cv___attribute__" >&6; } 4198 if test "$ax_cv___attribute__" = "yes"; then 4199 4200$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 4201 4202 fi 4203 4204 4205for ac_header in errno.h stdlib.h limits.h string.h standards.h \ 4206 netdb.h locale.h auth.h hpsecurity.h prot.h shadow.h \ 4207 fcntl.h regex.h sgtty.h unistd.h \ 4208 memory.h malloc.h pwdadj.h sgtty.h sys/time.h stdarg.h syslog.h \ 4209 sys/ioctl.h termio.h termios.h \ 4210 arpa/inet.h net/route.h net/if.h netinet/in.h \ 4211 sys/types.h sys/bsdtypes.h sys/label.h sys/audit.h \ 4212 sys/filio.h sys/wait.h sys/param.h sys/security.h \ 4213 sys/socket.h sys/sysinfo.h sys/systeminfo.h sys/utsname.h 4214do : 4215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4216ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4217if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4218 cat >>confdefs.h <<_ACEOF 4219#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4220_ACEOF 4221 4222fi 4223 4224done 4225 4226 4227# In case the user said --without-pam instead of --disable-pam: 4228if test "$with_pam" = "no" ; then 4229 enable_pam=no 4230fi 4231if test "$enable_pam" != "no" ; then 4232 for ac_header in security/pam_appl.h security/pam_misc.h 4233do : 4234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4235ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4236if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4237 cat >>confdefs.h <<_ACEOF 4238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4239_ACEOF 4240 4241fi 4242 4243done 4244 4245fi 4246 4247 4248 4249 4250 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directories to include in the safe path..." >&5 4252$as_echo "$as_me: checking for directories to include in the safe path..." >&6;} 4253SafePath=/bin:/usr/bin 4254test -d /usr/ucb && SafePath=${SafePath}:/usr/ucb 4255test -d /usr/bsd && SafePath=${SafePath}:/usr/bsd 4256cat >>confdefs.h <<_ACEOF 4257#define SAFE_PATH "${SafePath}" 4258_ACEOF 4259 4260 4261# syslog may be in one of the following. They may also be needed for 4262# other reasons, so we just blindly check for them all. 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbsd" >&5 4264$as_echo_n "checking for main in -lbsd... " >&6; } 4265if ${ac_cv_lib_bsd_main+:} false; then : 4266 $as_echo_n "(cached) " >&6 4267else 4268 ac_check_lib_save_LIBS=$LIBS 4269LIBS="-lbsd $LIBS" 4270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4271/* end confdefs.h. */ 4272 4273 4274int 4275main () 4276{ 4277return main (); 4278 ; 4279 return 0; 4280} 4281_ACEOF 4282if ac_fn_c_try_link "$LINENO"; then : 4283 ac_cv_lib_bsd_main=yes 4284else 4285 ac_cv_lib_bsd_main=no 4286fi 4287rm -f core conftest.err conftest.$ac_objext \ 4288 conftest$ac_exeext conftest.$ac_ext 4289LIBS=$ac_check_lib_save_LIBS 4290fi 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_main" >&5 4292$as_echo "$ac_cv_lib_bsd_main" >&6; } 4293if test "x$ac_cv_lib_bsd_main" = xyes; then : 4294 cat >>confdefs.h <<_ACEOF 4295#define HAVE_LIBBSD 1 4296_ACEOF 4297 4298 LIBS="-lbsd $LIBS" 4299 4300fi 4301 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 4303$as_echo_n "checking for main in -lsocket... " >&6; } 4304if ${ac_cv_lib_socket_main+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 ac_check_lib_save_LIBS=$LIBS 4308LIBS="-lsocket $LIBS" 4309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311 4312 4313int 4314main () 4315{ 4316return main (); 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321if ac_fn_c_try_link "$LINENO"; then : 4322 ac_cv_lib_socket_main=yes 4323else 4324 ac_cv_lib_socket_main=no 4325fi 4326rm -f core conftest.err conftest.$ac_objext \ 4327 conftest$ac_exeext conftest.$ac_ext 4328LIBS=$ac_check_lib_save_LIBS 4329fi 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 4331$as_echo "$ac_cv_lib_socket_main" >&6; } 4332if test "x$ac_cv_lib_socket_main" = xyes; then : 4333 cat >>confdefs.h <<_ACEOF 4334#define HAVE_LIBSOCKET 1 4335_ACEOF 4336 4337 LIBS="-lsocket $LIBS" 4338 4339fi 4340 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5 4342$as_echo_n "checking for main in -linet... " >&6; } 4343if ${ac_cv_lib_inet_main+:} false; then : 4344 $as_echo_n "(cached) " >&6 4345else 4346 ac_check_lib_save_LIBS=$LIBS 4347LIBS="-linet $LIBS" 4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349/* end confdefs.h. */ 4350 4351 4352int 4353main () 4354{ 4355return main (); 4356 ; 4357 return 0; 4358} 4359_ACEOF 4360if ac_fn_c_try_link "$LINENO"; then : 4361 ac_cv_lib_inet_main=yes 4362else 4363 ac_cv_lib_inet_main=no 4364fi 4365rm -f core conftest.err conftest.$ac_objext \ 4366 conftest$ac_exeext conftest.$ac_ext 4367LIBS=$ac_check_lib_save_LIBS 4368fi 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5 4370$as_echo "$ac_cv_lib_inet_main" >&6; } 4371if test "x$ac_cv_lib_inet_main" = xyes; then : 4372 cat >>confdefs.h <<_ACEOF 4373#define HAVE_LIBINET 1 4374_ACEOF 4375 4376 LIBS="-linet $LIBS" 4377 4378fi 4379 4380 4381badredhatpam=0 4382if test "$enable_pam" != "no" ; then 4383 # RH 7.2 has messed up libpam's installation: it supplies with 4384 # libpam.so.0, but not libpam.so. Ditto libpam_misc. 4385 test \( -f /etc/redhat-release -a \ 4386 -f /lib/libpam.so.0 -a ! -f /lib/libpam.so \) \ 4387 -o \( -f /etc/redhat-release -a \ 4388 -f /lib64/libpam.so.0 -a ! -f /lib64/libpam.so \) \ 4389 && badredhatpam=1 4390 4391 # -ldl may be needed by -lpam. 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5 4393$as_echo_n "checking for main in -ldl... " >&6; } 4394if ${ac_cv_lib_dl_main+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 ac_check_lib_save_LIBS=$LIBS 4398LIBS="-ldl $LIBS" 4399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4400/* end confdefs.h. */ 4401 4402 4403int 4404main () 4405{ 4406return main (); 4407 ; 4408 return 0; 4409} 4410_ACEOF 4411if ac_fn_c_try_link "$LINENO"; then : 4412 ac_cv_lib_dl_main=yes 4413else 4414 ac_cv_lib_dl_main=no 4415fi 4416rm -f core conftest.err conftest.$ac_objext \ 4417 conftest$ac_exeext conftest.$ac_ext 4418LIBS=$ac_check_lib_save_LIBS 4419fi 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5 4421$as_echo "$ac_cv_lib_dl_main" >&6; } 4422if test "x$ac_cv_lib_dl_main" = xyes; then : 4423 cat >>confdefs.h <<_ACEOF 4424#define HAVE_LIBDL 1 4425_ACEOF 4426 4427 LIBS="-ldl $LIBS" 4428 4429fi 4430 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpam" >&5 4432$as_echo_n "checking for main in -lpam... " >&6; } 4433if ${ac_cv_lib_pam_main+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435else 4436 ac_check_lib_save_LIBS=$LIBS 4437LIBS="-lpam $LIBS" 4438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440 4441 4442int 4443main () 4444{ 4445return main (); 4446 ; 4447 return 0; 4448} 4449_ACEOF 4450if ac_fn_c_try_link "$LINENO"; then : 4451 ac_cv_lib_pam_main=yes 4452else 4453 ac_cv_lib_pam_main=no 4454fi 4455rm -f core conftest.err conftest.$ac_objext \ 4456 conftest$ac_exeext conftest.$ac_ext 4457LIBS=$ac_check_lib_save_LIBS 4458fi 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_main" >&5 4460$as_echo "$ac_cv_lib_pam_main" >&6; } 4461if test "x$ac_cv_lib_pam_main" = xyes; then : 4462 cat >>confdefs.h <<_ACEOF 4463#define HAVE_LIBPAM 1 4464_ACEOF 4465 4466 LIBS="-lpam $LIBS" 4467 4468fi 4469 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpam_misc" >&5 4471$as_echo_n "checking for main in -lpam_misc... " >&6; } 4472if ${ac_cv_lib_pam_misc_main+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474else 4475 ac_check_lib_save_LIBS=$LIBS 4476LIBS="-lpam_misc $LIBS" 4477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479 4480 4481int 4482main () 4483{ 4484return main (); 4485 ; 4486 return 0; 4487} 4488_ACEOF 4489if ac_fn_c_try_link "$LINENO"; then : 4490 ac_cv_lib_pam_misc_main=yes 4491else 4492 ac_cv_lib_pam_misc_main=no 4493fi 4494rm -f core conftest.err conftest.$ac_objext \ 4495 conftest$ac_exeext conftest.$ac_ext 4496LIBS=$ac_check_lib_save_LIBS 4497fi 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_main" >&5 4499$as_echo "$ac_cv_lib_pam_misc_main" >&6; } 4500if test "x$ac_cv_lib_pam_misc_main" = xyes; then : 4501 cat >>confdefs.h <<_ACEOF 4502#define HAVE_LIBPAM_MISC 1 4503_ACEOF 4504 4505 LIBS="-lpam_misc $LIBS" 4506 4507fi 4508 4509fi 4510 4511# Pick up libcrypt if it exists and this OS needs it. 4512# (Note that on some OS's, libcrypt does not contain the 4513# correct crypt(); instead, libc contains the desired crypt.) 4514if test "$Uname" = SunOS -a $Major = 5 -a $Minor -ge 9 ; then 4515 : # SunOS >= 5.9: don't link with -lcrypt 4516elif test "$Uname" = OpenBSD ; then 4517 : # don't link with -lcrypt 4518elif test "$Uname" = Darwin ; then 4519 : # don't link with -lcrypt 4520else 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5 4522$as_echo_n "checking for main in -lcrypt... " >&6; } 4523if ${ac_cv_lib_crypt_main+:} false; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 ac_check_lib_save_LIBS=$LIBS 4527LIBS="-lcrypt $LIBS" 4528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4529/* end confdefs.h. */ 4530 4531 4532int 4533main () 4534{ 4535return main (); 4536 ; 4537 return 0; 4538} 4539_ACEOF 4540if ac_fn_c_try_link "$LINENO"; then : 4541 ac_cv_lib_crypt_main=yes 4542else 4543 ac_cv_lib_crypt_main=no 4544fi 4545rm -f core conftest.err conftest.$ac_objext \ 4546 conftest$ac_exeext conftest.$ac_ext 4547LIBS=$ac_check_lib_save_LIBS 4548fi 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5 4550$as_echo "$ac_cv_lib_crypt_main" >&6; } 4551if test "x$ac_cv_lib_crypt_main" = xyes; then : 4552 cat >>confdefs.h <<_ACEOF 4553#define HAVE_LIBCRYPT 1 4554_ACEOF 4555 4556 LIBS="-lcrypt $LIBS" 4557 4558fi 4559 4560fi 4561 4562if test "$enable_pam" != "no" ; then 4563 for ac_func in pam_start 4564do : 4565 ac_fn_c_check_func "$LINENO" "pam_start" "ac_cv_func_pam_start" 4566if test "x$ac_cv_func_pam_start" = xyes; then : 4567 cat >>confdefs.h <<_ACEOF 4568#define HAVE_PAM_START 1 4569_ACEOF 4570 4571fi 4572done 4573 4574 test "$ac_cv_func_pam_start" = yes && ac_fn_c_check_func "$LINENO" "misc_conv" "ac_cv_func_misc_conv" 4575if test "x$ac_cv_func_misc_conv" = xyes; then : 4576 $as_echo "#define HAVE_MISC_CONV 1" >>confdefs.h 4577 4578else 4579 case " $LIBOBJS " in 4580 *" misc_conv.$ac_objext "* ) ;; 4581 *) LIBOBJS="$LIBOBJS misc_conv.$ac_objext" 4582 ;; 4583esac 4584 4585fi 4586 4587 4588fi 4589 4590for ac_func in fileno 4591do : 4592 ac_fn_c_check_func "$LINENO" "fileno" "ac_cv_func_fileno" 4593if test "x$ac_cv_func_fileno" = xyes; then : 4594 cat >>confdefs.h <<_ACEOF 4595#define HAVE_FILENO 1 4596_ACEOF 4597 4598fi 4599done 4600 4601for ac_func in gtty 4602do : 4603 ac_fn_c_check_func "$LINENO" "gtty" "ac_cv_func_gtty" 4604if test "x$ac_cv_func_gtty" = xyes; then : 4605 cat >>confdefs.h <<_ACEOF 4606#define HAVE_GTTY 1 4607_ACEOF 4608 4609fi 4610done 4611 4612for ac_func in syslog 4613do : 4614 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" 4615if test "x$ac_cv_func_syslog" = xyes; then : 4616 cat >>confdefs.h <<_ACEOF 4617#define HAVE_SYSLOG 1 4618_ACEOF 4619 4620fi 4621done 4622 4623for ac_func in strdup 4624do : 4625 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 4626if test "x$ac_cv_func_strdup" = xyes; then : 4627 cat >>confdefs.h <<_ACEOF 4628#define HAVE_STRDUP 1 4629_ACEOF 4630 4631fi 4632done 4633 4634 4635for ac_func in initgroups 4636do : 4637 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 4638if test "x$ac_cv_func_initgroups" = xyes; then : 4639 cat >>confdefs.h <<_ACEOF 4640#define HAVE_INITGROUPS 1 4641_ACEOF 4642 4643fi 4644done 4645 4646for lib in os ; do 4647 test "$ac_cv_func_initgroups" = yes && break 4648 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_initgroups" | $as_tr_sh` 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initgroups in -l$lib" >&5 4650$as_echo_n "checking for initgroups in -l$lib... " >&6; } 4651if eval \${$as_ac_Lib+:} false; then : 4652 $as_echo_n "(cached) " >&6 4653else 4654 ac_check_lib_save_LIBS=$LIBS 4655LIBS="-l$lib $LIBS" 4656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658 4659/* Override any GCC internal prototype to avoid an error. 4660 Use char because int might match the return type of a GCC 4661 builtin and then its argument prototype would still apply. */ 4662#ifdef __cplusplus 4663extern "C" 4664#endif 4665char initgroups (); 4666int 4667main () 4668{ 4669return initgroups (); 4670 ; 4671 return 0; 4672} 4673_ACEOF 4674if ac_fn_c_try_link "$LINENO"; then : 4675 eval "$as_ac_Lib=yes" 4676else 4677 eval "$as_ac_Lib=no" 4678fi 4679rm -f core conftest.err conftest.$ac_objext \ 4680 conftest$ac_exeext conftest.$ac_ext 4681LIBS=$ac_check_lib_save_LIBS 4682fi 4683eval ac_res=\$$as_ac_Lib 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4685$as_echo "$ac_res" >&6; } 4686if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 4687 cat >>confdefs.h <<_ACEOF 4688#define `$as_echo "HAVE_LIB$lib" | $as_tr_cpp` 1 4689_ACEOF 4690 4691 LIBS="-l$lib $LIBS" 4692 4693fi 4694 4695done 4696 4697# On IRIX, -lmalloc avoids a problem with default malloc 4698# that causes a core dump. 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmalloc" >&5 4700$as_echo_n "checking for main in -lmalloc... " >&6; } 4701if ${ac_cv_lib_malloc_main+:} false; then : 4702 $as_echo_n "(cached) " >&6 4703else 4704 ac_check_lib_save_LIBS=$LIBS 4705LIBS="-lmalloc $LIBS" 4706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707/* end confdefs.h. */ 4708 4709 4710int 4711main () 4712{ 4713return main (); 4714 ; 4715 return 0; 4716} 4717_ACEOF 4718if ac_fn_c_try_link "$LINENO"; then : 4719 ac_cv_lib_malloc_main=yes 4720else 4721 ac_cv_lib_malloc_main=no 4722fi 4723rm -f core conftest.err conftest.$ac_objext \ 4724 conftest$ac_exeext conftest.$ac_ext 4725LIBS=$ac_check_lib_save_LIBS 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_malloc_main" >&5 4728$as_echo "$ac_cv_lib_malloc_main" >&6; } 4729if test "x$ac_cv_lib_malloc_main" = xyes; then : 4730 cat >>confdefs.h <<_ACEOF 4731#define HAVE_LIBMALLOC 1 4732_ACEOF 4733 4734 LIBS="-lmalloc $LIBS" 4735 4736fi 4737 4738 4739# May be needed on IRIX 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5 4741$as_echo_n "checking for getpwnam in -lsun... " >&6; } 4742if ${ac_cv_lib_sun_getpwnam+:} false; then : 4743 $as_echo_n "(cached) " >&6 4744else 4745 ac_check_lib_save_LIBS=$LIBS 4746LIBS="-lsun $LIBS" 4747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4748/* end confdefs.h. */ 4749 4750/* Override any GCC internal prototype to avoid an error. 4751 Use char because int might match the return type of a GCC 4752 builtin and then its argument prototype would still apply. */ 4753#ifdef __cplusplus 4754extern "C" 4755#endif 4756char getpwnam (); 4757int 4758main () 4759{ 4760return getpwnam (); 4761 ; 4762 return 0; 4763} 4764_ACEOF 4765if ac_fn_c_try_link "$LINENO"; then : 4766 ac_cv_lib_sun_getpwnam=yes 4767else 4768 ac_cv_lib_sun_getpwnam=no 4769fi 4770rm -f core conftest.err conftest.$ac_objext \ 4771 conftest$ac_exeext conftest.$ac_ext 4772LIBS=$ac_check_lib_save_LIBS 4773fi 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5 4775$as_echo "$ac_cv_lib_sun_getpwnam" >&6; } 4776if test "x$ac_cv_lib_sun_getpwnam" = xyes; then : 4777 cat >>confdefs.h <<_ACEOF 4778#define HAVE_LIBSUN 1 4779_ACEOF 4780 4781 LIBS="-lsun $LIBS" 4782 4783fi 4784 4785 4786# Needed on SysV for shadow passwords. 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsec" >&5 4788$as_echo_n "checking for main in -lsec... " >&6; } 4789if ${ac_cv_lib_sec_main+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 ac_check_lib_save_LIBS=$LIBS 4793LIBS="-lsec $LIBS" 4794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4795/* end confdefs.h. */ 4796 4797 4798int 4799main () 4800{ 4801return main (); 4802 ; 4803 return 0; 4804} 4805_ACEOF 4806if ac_fn_c_try_link "$LINENO"; then : 4807 ac_cv_lib_sec_main=yes 4808else 4809 ac_cv_lib_sec_main=no 4810fi 4811rm -f core conftest.err conftest.$ac_objext \ 4812 conftest$ac_exeext conftest.$ac_ext 4813LIBS=$ac_check_lib_save_LIBS 4814fi 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_main" >&5 4816$as_echo "$ac_cv_lib_sec_main" >&6; } 4817if test "x$ac_cv_lib_sec_main" = xyes; then : 4818 cat >>confdefs.h <<_ACEOF 4819#define HAVE_LIBSEC 1 4820_ACEOF 4821 4822 LIBS="-lsec $LIBS" 4823 4824fi 4825 4826 4827# Needed on Digital Unix for shadow passwords. 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsecurity" >&5 4829$as_echo_n "checking for main in -lsecurity... " >&6; } 4830if ${ac_cv_lib_security_main+:} false; then : 4831 $as_echo_n "(cached) " >&6 4832else 4833 ac_check_lib_save_LIBS=$LIBS 4834LIBS="-lsecurity $LIBS" 4835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4836/* end confdefs.h. */ 4837 4838 4839int 4840main () 4841{ 4842return main (); 4843 ; 4844 return 0; 4845} 4846_ACEOF 4847if ac_fn_c_try_link "$LINENO"; then : 4848 ac_cv_lib_security_main=yes 4849else 4850 ac_cv_lib_security_main=no 4851fi 4852rm -f core conftest.err conftest.$ac_objext \ 4853 conftest$ac_exeext conftest.$ac_ext 4854LIBS=$ac_check_lib_save_LIBS 4855fi 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_main" >&5 4857$as_echo "$ac_cv_lib_security_main" >&6; } 4858if test "x$ac_cv_lib_security_main" = xyes; then : 4859 cat >>confdefs.h <<_ACEOF 4860#define HAVE_LIBSECURITY 1 4861_ACEOF 4862 4863 LIBS="-lsecurity $LIBS" 4864 4865fi 4866 4867 4868# Needed on Linux for shadow passwords. 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lshadow" >&5 4870$as_echo_n "checking for main in -lshadow... " >&6; } 4871if ${ac_cv_lib_shadow_main+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 ac_check_lib_save_LIBS=$LIBS 4875LIBS="-lshadow $LIBS" 4876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877/* end confdefs.h. */ 4878 4879 4880int 4881main () 4882{ 4883return main (); 4884 ; 4885 return 0; 4886} 4887_ACEOF 4888if ac_fn_c_try_link "$LINENO"; then : 4889 ac_cv_lib_shadow_main=yes 4890else 4891 ac_cv_lib_shadow_main=no 4892fi 4893rm -f core conftest.err conftest.$ac_objext \ 4894 conftest$ac_exeext conftest.$ac_ext 4895LIBS=$ac_check_lib_save_LIBS 4896fi 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_main" >&5 4898$as_echo "$ac_cv_lib_shadow_main" >&6; } 4899if test "x$ac_cv_lib_shadow_main" = xyes; then : 4900 cat >>confdefs.h <<_ACEOF 4901#define HAVE_LIBSHADOW 1 4902_ACEOF 4903 4904 LIBS="-lshadow $LIBS" 4905 4906fi 4907 4908 4909# Needed on Solaris 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 4911$as_echo_n "checking for main in -lnsl... " >&6; } 4912if ${ac_cv_lib_nsl_main+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 ac_check_lib_save_LIBS=$LIBS 4916LIBS="-lnsl $LIBS" 4917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918/* end confdefs.h. */ 4919 4920 4921int 4922main () 4923{ 4924return main (); 4925 ; 4926 return 0; 4927} 4928_ACEOF 4929if ac_fn_c_try_link "$LINENO"; then : 4930 ac_cv_lib_nsl_main=yes 4931else 4932 ac_cv_lib_nsl_main=no 4933fi 4934rm -f core conftest.err conftest.$ac_objext \ 4935 conftest$ac_exeext conftest.$ac_ext 4936LIBS=$ac_check_lib_save_LIBS 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 4939$as_echo "$ac_cv_lib_nsl_main" >&6; } 4940if test "x$ac_cv_lib_nsl_main" = xyes; then : 4941 cat >>confdefs.h <<_ACEOF 4942#define HAVE_LIBNSL 1 4943_ACEOF 4944 4945 LIBS="-lnsl $LIBS" 4946 4947fi 4948 4949 4950# Needed on SCO-ODT-3.0 for crypt. 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lufc" >&5 4952$as_echo_n "checking for main in -lufc... " >&6; } 4953if ${ac_cv_lib_ufc_main+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 ac_check_lib_save_LIBS=$LIBS 4957LIBS="-lufc $LIBS" 4958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959/* end confdefs.h. */ 4960 4961 4962int 4963main () 4964{ 4965return main (); 4966 ; 4967 return 0; 4968} 4969_ACEOF 4970if ac_fn_c_try_link "$LINENO"; then : 4971 ac_cv_lib_ufc_main=yes 4972else 4973 ac_cv_lib_ufc_main=no 4974fi 4975rm -f core conftest.err conftest.$ac_objext \ 4976 conftest$ac_exeext conftest.$ac_ext 4977LIBS=$ac_check_lib_save_LIBS 4978fi 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ufc_main" >&5 4980$as_echo "$ac_cv_lib_ufc_main" >&6; } 4981if test "x$ac_cv_lib_ufc_main" = xyes; then : 4982 cat >>confdefs.h <<_ACEOF 4983#define HAVE_LIBUFC 1 4984_ACEOF 4985 4986 LIBS="-lufc $LIBS" 4987 4988fi 4989 4990 4991# We want these before the checks, so the checks can modify their values. 4992test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 4993 4994# If the user hasn't specified CFLAGS, and we're using gcc, use -O. 4995test -n "$auto_cflags" && test -n "$GCC" && CFLAGS="$CFLAGS -O" 4996# If we're on AIX, not using gcc, add the ansi spec. 4997test "$Uname" = AIX && test -z "$GCC" && CFLAGS="$CFLAGS -qlanglvl=ansi" 4998 4999# If system supports "const", define ConstDef to be "", but if 5000# the system doesn't support "const", define ConstDef to be "-Dconst=". 5001# That makes it suitable for use in the CFLAGS. 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5003$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5004if ${ac_cv_c_const+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006else 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009 5010int 5011main () 5012{ 5013 5014#ifndef __cplusplus 5015 /* Ultrix mips cc rejects this sort of thing. */ 5016 typedef int charset[2]; 5017 const charset cs = { 0, 0 }; 5018 /* SunOS 4.1.1 cc rejects this. */ 5019 char const *const *pcpcc; 5020 char **ppc; 5021 /* NEC SVR4.0.2 mips cc rejects this. */ 5022 struct point {int x, y;}; 5023 static struct point const zero = {0,0}; 5024 /* AIX XL C 1.02.0.0 rejects this. 5025 It does not let you subtract one const X* pointer from another in 5026 an arm of an if-expression whose if-part is not a constant 5027 expression */ 5028 const char *g = "string"; 5029 pcpcc = &g + (g ? g-g : 0); 5030 /* HPUX 7.0 cc rejects these. */ 5031 ++pcpcc; 5032 ppc = (char**) pcpcc; 5033 pcpcc = (char const *const *) ppc; 5034 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5035 char tx; 5036 char *t = &tx; 5037 char const *s = 0 ? (char *) 0 : (char const *) 0; 5038 5039 *t++ = 0; 5040 if (s) return 0; 5041 } 5042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5043 int x[] = {25, 17}; 5044 const int *foo = &x[0]; 5045 ++foo; 5046 } 5047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5048 typedef const int *iptr; 5049 iptr p = 0; 5050 ++p; 5051 } 5052 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5054 struct s { int j; const int *ap[3]; } bx; 5055 struct s *b = &bx; b->j = 5; 5056 } 5057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5058 const int foo = 10; 5059 if (!foo) return 0; 5060 } 5061 return !cs[0] && !zero.x; 5062#endif 5063 5064 ; 5065 return 0; 5066} 5067_ACEOF 5068if ac_fn_c_try_compile "$LINENO"; then : 5069 ac_cv_c_const=yes 5070else 5071 ac_cv_c_const=no 5072fi 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5076$as_echo "$ac_cv_c_const" >&6; } 5077if test $ac_cv_c_const = no; then 5078 5079$as_echo "#define const /**/" >>confdefs.h 5080 5081fi 5082 5083ConstDef= 5084test "$ac_cv_c_const" != yes && ConstDef="-Dconst=" 5085 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 5087$as_echo_n "checking for long file names... " >&6; } 5088if ${ac_cv_sys_long_file_names+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 ac_cv_sys_long_file_names=yes 5092# Test for long file names in all the places we know might matter: 5093# . the current directory, where building will happen 5094# $prefix/lib where we will be installing things 5095# $exec_prefix/lib likewise 5096# $TMPDIR if set, where it might want to write temporary files 5097# /tmp where it might want to write temporary files 5098# /var/tmp likewise 5099# /usr/tmp likewise 5100for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do 5101 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib 5102 # in the usual case where exec_prefix is '${prefix}'. 5103 case $ac_dir in #( 5104 . | /* | ?:[\\/]*) ;; #( 5105 *) continue;; 5106 esac 5107 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. 5108 ac_xdir=$ac_dir/cf$$ 5109 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue 5110 ac_tf1=$ac_xdir/conftest9012345 5111 ac_tf2=$ac_xdir/conftest9012346 5112 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || 5113 ac_cv_sys_long_file_names=no 5114 rm -f -r "$ac_xdir" 2>/dev/null 5115 test $ac_cv_sys_long_file_names = no && break 5116done 5117fi 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 5119$as_echo "$ac_cv_sys_long_file_names" >&6; } 5120if test $ac_cv_sys_long_file_names = yes; then 5121 5122$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 5123 5124fi 5125 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 5127$as_echo_n "checking whether #! works in shell scripts... " >&6; } 5128if ${ac_cv_sys_interpreter+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130else 5131 echo '#! /bin/cat 5132exit 69 5133' >conftest 5134chmod u+x conftest 5135(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) 5136if test $? -ne 69; then 5137 ac_cv_sys_interpreter=yes 5138else 5139 ac_cv_sys_interpreter=no 5140fi 5141rm -f conftest 5142fi 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 5144$as_echo "$ac_cv_sys_interpreter" >&6; } 5145interpval=$ac_cv_sys_interpreter 5146 5147test "$ac_cv_sys_interpreter" != yes && $as_echo "#define INTERPRETER_HACK 1" >>confdefs.h 5148 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5150$as_echo_n "checking for ANSI C header files... " >&6; } 5151if ${ac_cv_header_stdc+:} false; then : 5152 $as_echo_n "(cached) " >&6 5153else 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5155/* end confdefs.h. */ 5156#include <stdlib.h> 5157#include <stdarg.h> 5158#include <string.h> 5159#include <float.h> 5160 5161int 5162main () 5163{ 5164 5165 ; 5166 return 0; 5167} 5168_ACEOF 5169if ac_fn_c_try_compile "$LINENO"; then : 5170 ac_cv_header_stdc=yes 5171else 5172 ac_cv_header_stdc=no 5173fi 5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5175 5176if test $ac_cv_header_stdc = yes; then 5177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5179/* end confdefs.h. */ 5180#include <string.h> 5181 5182_ACEOF 5183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5184 $EGREP "memchr" >/dev/null 2>&1; then : 5185 5186else 5187 ac_cv_header_stdc=no 5188fi 5189rm -f conftest* 5190 5191fi 5192 5193if test $ac_cv_header_stdc = yes; then 5194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197#include <stdlib.h> 5198 5199_ACEOF 5200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5201 $EGREP "free" >/dev/null 2>&1; then : 5202 5203else 5204 ac_cv_header_stdc=no 5205fi 5206rm -f conftest* 5207 5208fi 5209 5210if test $ac_cv_header_stdc = yes; then 5211 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5212 if test "$cross_compiling" = yes; then : 5213 : 5214else 5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216/* end confdefs.h. */ 5217#include <ctype.h> 5218#include <stdlib.h> 5219#if ((' ' & 0x0FF) == 0x020) 5220# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5221# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5222#else 5223# define ISLOWER(c) \ 5224 (('a' <= (c) && (c) <= 'i') \ 5225 || ('j' <= (c) && (c) <= 'r') \ 5226 || ('s' <= (c) && (c) <= 'z')) 5227# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5228#endif 5229 5230#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5231int 5232main () 5233{ 5234 int i; 5235 for (i = 0; i < 256; i++) 5236 if (XOR (islower (i), ISLOWER (i)) 5237 || toupper (i) != TOUPPER (i)) 5238 return 2; 5239 return 0; 5240} 5241_ACEOF 5242if ac_fn_c_try_run "$LINENO"; then : 5243 5244else 5245 ac_cv_header_stdc=no 5246fi 5247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5248 conftest.$ac_objext conftest.beam conftest.$ac_ext 5249fi 5250 5251fi 5252fi 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5254$as_echo "$ac_cv_header_stdc" >&6; } 5255if test $ac_cv_header_stdc = yes; then 5256 5257$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5258 5259fi 5260 5261 5262ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 5263if test "x$ac_cv_type_pid_t" = xyes; then : 5264 5265else 5266 5267cat >>confdefs.h <<_ACEOF 5268#define pid_t int 5269_ACEOF 5270 5271fi 5272 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 5274$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 5275if ${ac_cv_type_uid_t+:} false; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280#include <sys/types.h> 5281 5282_ACEOF 5283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5284 $EGREP "uid_t" >/dev/null 2>&1; then : 5285 ac_cv_type_uid_t=yes 5286else 5287 ac_cv_type_uid_t=no 5288fi 5289rm -f conftest* 5290 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 5293$as_echo "$ac_cv_type_uid_t" >&6; } 5294if test $ac_cv_type_uid_t = no; then 5295 5296$as_echo "#define uid_t int" >>confdefs.h 5297 5298 5299$as_echo "#define gid_t int" >>confdefs.h 5300 5301fi 5302 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 5304$as_echo_n "checking type of array argument to getgroups... " >&6; } 5305if ${ac_cv_type_getgroups+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307else 5308 if test "$cross_compiling" = yes; then : 5309 ac_cv_type_getgroups=cross 5310else 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313/* Thanks to Mike Rendell for this test. */ 5314$ac_includes_default 5315#define NGID 256 5316#undef MAX 5317#define MAX(x, y) ((x) > (y) ? (x) : (y)) 5318 5319int 5320main () 5321{ 5322 gid_t gidset[NGID]; 5323 int i, n; 5324 union { gid_t gval; long int lval; } val; 5325 5326 val.lval = -1; 5327 for (i = 0; i < NGID; i++) 5328 gidset[i] = val.gval; 5329 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 5330 gidset); 5331 /* Exit non-zero if getgroups seems to require an array of ints. This 5332 happens when gid_t is short int but getgroups modifies an array 5333 of ints. */ 5334 return n > 0 && gidset[n] != val.gval; 5335} 5336_ACEOF 5337if ac_fn_c_try_run "$LINENO"; then : 5338 ac_cv_type_getgroups=gid_t 5339else 5340 ac_cv_type_getgroups=int 5341fi 5342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5343 conftest.$ac_objext conftest.beam conftest.$ac_ext 5344fi 5345 5346if test $ac_cv_type_getgroups = cross; then 5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5348/* end confdefs.h. */ 5349#include <unistd.h> 5350 5351_ACEOF 5352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5353 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : 5354 ac_cv_type_getgroups=gid_t 5355else 5356 ac_cv_type_getgroups=int 5357fi 5358rm -f conftest* 5359 5360fi 5361fi 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 5363$as_echo "$ac_cv_type_getgroups" >&6; } 5364 5365cat >>confdefs.h <<_ACEOF 5366#define GETGROUPS_T $ac_cv_type_getgroups 5367_ACEOF 5368 5369 5370ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5371if test "x$ac_cv_type_size_t" = xyes; then : 5372 5373else 5374 5375cat >>confdefs.h <<_ACEOF 5376#define size_t unsigned int 5377_ACEOF 5378 5379fi 5380 5381 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 5383$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 5384if ${ac_cv_struct_tm+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389#include <sys/types.h> 5390#include <time.h> 5391 5392int 5393main () 5394{ 5395struct tm tm; 5396 int *p = &tm.tm_sec; 5397 return !p; 5398 ; 5399 return 0; 5400} 5401_ACEOF 5402if ac_fn_c_try_compile "$LINENO"; then : 5403 ac_cv_struct_tm=time.h 5404else 5405 ac_cv_struct_tm=sys/time.h 5406fi 5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5408fi 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 5410$as_echo "$ac_cv_struct_tm" >&6; } 5411if test $ac_cv_struct_tm = sys/time.h; then 5412 5413$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 5414 5415fi 5416 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5418$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5419if ${ac_cv_header_time+:} false; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424#include <sys/types.h> 5425#include <sys/time.h> 5426#include <time.h> 5427 5428int 5429main () 5430{ 5431if ((struct tm *) 0) 5432return 0; 5433 ; 5434 return 0; 5435} 5436_ACEOF 5437if ac_fn_c_try_compile "$LINENO"; then : 5438 ac_cv_header_time=yes 5439else 5440 ac_cv_header_time=no 5441fi 5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5443fi 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5445$as_echo "$ac_cv_header_time" >&6; } 5446if test $ac_cv_header_time = yes; then 5447 5448$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5449 5450fi 5451 5452 5453void_ok=no 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if func signal is compatible with declaring type void" >&5 5455$as_echo_n "checking if func signal is compatible with declaring type void... " >&6; } 5456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5457/* end confdefs.h. */ 5458 5459#include <stdio.h> 5460#include <signal.h> 5461 5462int 5463main () 5464{ 5465void (*signal())(); 5466signal(1, 0); 5467 ; 5468 return 0; 5469} 5470_ACEOF 5471if ac_fn_c_try_compile "$LINENO"; then : 5472 $as_echo "#define HAVE_VOID_SIGNAL 1" >>confdefs.h 5473 void_ok=yes ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5474$as_echo "yes" >&6; } 5475fi 5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5477if test $void_ok = no ; then 5478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479/* end confdefs.h. */ 5480 5481#include <stdio.h> 5482#include <sys/signal.h> 5483 5484int 5485main () 5486{ 5487void (*signal())(); 5488signal(1, 0); 5489 ; 5490 return 0; 5491} 5492_ACEOF 5493if ac_fn_c_try_compile "$LINENO"; then : 5494 $as_echo "#define HAVE_VOID_SIGNAL 1" >>confdefs.h 5495 void_ok=yes ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5496$as_echo "yes" >&6; } 5497fi 5498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5499fi 5500 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys_errlist is defined" >&5 5502$as_echo_n "checking if sys_errlist is defined... " >&6; } 5503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5504/* end confdefs.h. */ 5505 5506#include <errno.h> 5507#include <stdio.h> 5508 5509int 5510main () 5511{ 5512extern char *sys_errlist[]; 5513fputs(sys_errlist[0], stdout); 5514 ; 5515 return 0; 5516} 5517_ACEOF 5518if ac_fn_c_try_compile "$LINENO"; then : 5519 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5521$as_echo "yes" >&6; } 5522else 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5524$as_echo "no" >&6; } 5525fi 5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5527 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if errno must be explicitly declared extern" >&5 5529$as_echo_n "checking if errno must be explicitly declared extern... " >&6; } 5530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532 5533#include <errno.h> 5534#include <stdio.h> 5535 5536int 5537main () 5538{ 5539printf("%d", errno); 5540 ; 5541 return 0; 5542} 5543_ACEOF 5544if ac_fn_c_try_compile "$LINENO"; then : 5545 $as_echo "#define DONT_DECL_ERRNO 1" >>confdefs.h 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5547$as_echo "no" >&6; } 5548else 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5550$as_echo "yes" >&6; } 5551fi 5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5553 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if regex library is POSIX" >&5 5555$as_echo_n "checking if regex library is POSIX... " >&6; } 5556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557/* end confdefs.h. */ 5558 5559#include <sys/types.h> 5560#include <regex.h> 5561 5562int 5563main () 5564{ 5565 5566regex_t preg; 5567char buf[100]; 5568regmatch_t pmatch[1]; 5569regcomp(&preg, "a pattern", REG_EXTENDED|REG_ICASE|REG_NOSUB|REG_NEWLINE); 5570regexec(&preg, "a string", 1, pmatch, REG_NOTBOL|REG_NOTEOL); 5571regerror(1, &preg, buf, sizeof(buf)); 5572regfree(&preg); 5573 5574 ; 5575 return 0; 5576} 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO"; then : 5579 $as_echo "#define HAVE_POSIX_REGEX 1" >>confdefs.h 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5581$as_echo "yes" >&6; } 5582else 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5584$as_echo "no" >&6; } 5585fi 5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5587 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports enum" >&5 5589$as_echo_n "checking if compiler supports enum... " >&6; } 5590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592 5593int 5594main () 5595{ 5596enum { red, green, blue } color; 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601if ac_fn_c_try_compile "$LINENO"; then : 5602 $as_echo "#define HAVE_ENUM 1" >>confdefs.h 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5604$as_echo "yes" >&6; } 5605else 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5607$as_echo "no" >&6; } 5608fi 5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5610 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if close-on-exec can be done via ioctl()" >&5 5612$as_echo_n "checking if close-on-exec can be done via ioctl()... " >&6; } 5613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5614/* end confdefs.h. */ 5615 5616#include <sgtty.h> 5617#include <stdio.h> 5618 5619int 5620main () 5621{ 5622ioctl(0, FIOCLEX, NULL); 5623 ; 5624 return 0; 5625} 5626_ACEOF 5627if ac_fn_c_try_compile "$LINENO"; then : 5628 $as_echo "#define HAVE_IOCTL_FIOCLEX 1" >>confdefs.h 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5630$as_echo "yes" >&6; } 5631else 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5633$as_echo "no" >&6; } 5634fi 5635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5636 5637for ac_func in vprintf 5638do : 5639 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 5640if test "x$ac_cv_func_vprintf" = xyes; then : 5641 cat >>confdefs.h <<_ACEOF 5642#define HAVE_VPRINTF 1 5643_ACEOF 5644 5645ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 5646if test "x$ac_cv_func__doprnt" = xyes; then : 5647 5648$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 5649 5650fi 5651 5652fi 5653done 5654 5655 5656 5657if test "$enable_pam" != "no" ; then 5658 for ac_func in pam_strerror 5659do : 5660 ac_fn_c_check_func "$LINENO" "pam_strerror" "ac_cv_func_pam_strerror" 5661if test "x$ac_cv_func_pam_strerror" = xyes; then : 5662 cat >>confdefs.h <<_ACEOF 5663#define HAVE_PAM_STRERROR 1 5664_ACEOF 5665 5666fi 5667done 5668 5669fi 5670 5671for ac_func in strerror strtol memcpy memset strerror setreuid setregid \ 5672 getgroups innetgr iscomsec localtime sysconf sysinfo getdtablesize \ 5673 getdomainname sysinfo tcgetattr tcsetattr uname 5674do : 5675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5676ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5677if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5678 cat >>confdefs.h <<_ACEOF 5679#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5680_ACEOF 5681 5682fi 5683done 5684 5685 5686# If we're enabling pam support (if PAM available), include pam.o in AC_LIBOBJ. 5687# Note that if we don't have pam_start() on this system, pam.o will still 5688# build correctly for a PAM-less system. In other words, include pam.o 5689# unless the user included the configure option "--disable-pam". 5690if test "$enable_pam" != "no" ; then 5691 case " $LIBOBJS " in 5692 *" pam.$ac_objext "* ) ;; 5693 *) LIBOBJS="$LIBOBJS pam.$ac_objext" 5694 ;; 5695esac 5696 5697 with_pam=1 5698else 5699 with_pam=0 5700fi 5701 5702 5703ac_config_files="$ac_config_files Makefile" 5704 5705cat >confcache <<\_ACEOF 5706# This file is a shell script that caches the results of configure 5707# tests run on this system so they can be shared between configure 5708# scripts and configure runs, see configure's option --config-cache. 5709# It is not useful on other systems. If it contains results you don't 5710# want to keep, you may remove or edit it. 5711# 5712# config.status only pays attention to the cache file if you give it 5713# the --recheck option to rerun configure. 5714# 5715# `ac_cv_env_foo' variables (set or unset) will be overridden when 5716# loading this file, other *unset* `ac_cv_foo' will be assigned the 5717# following values. 5718 5719_ACEOF 5720 5721# The following way of writing the cache mishandles newlines in values, 5722# but we know of no workaround that is simple, portable, and efficient. 5723# So, we kill variables containing newlines. 5724# Ultrix sh set writes to stderr and can't be redirected directly, 5725# and sets the high bit in the cache file unless we assign to the vars. 5726( 5727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5728 eval ac_val=\$$ac_var 5729 case $ac_val in #( 5730 *${as_nl}*) 5731 case $ac_var in #( 5732 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5733$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5734 esac 5735 case $ac_var in #( 5736 _ | IFS | as_nl) ;; #( 5737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5738 *) { eval $ac_var=; unset $ac_var;} ;; 5739 esac ;; 5740 esac 5741 done 5742 5743 (set) 2>&1 | 5744 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5745 *${as_nl}ac_space=\ *) 5746 # `set' does not quote correctly, so add quotes: double-quote 5747 # substitution turns \\\\ into \\, and sed turns \\ into \. 5748 sed -n \ 5749 "s/'/'\\\\''/g; 5750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5751 ;; #( 5752 *) 5753 # `set' quotes correctly as required by POSIX, so do not add quotes. 5754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5755 ;; 5756 esac | 5757 sort 5758) | 5759 sed ' 5760 /^ac_cv_env_/b end 5761 t clear 5762 :clear 5763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5764 t end 5765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5766 :end' >>confcache 5767if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5768 if test -w "$cache_file"; then 5769 if test "x$cache_file" != "x/dev/null"; then 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5771$as_echo "$as_me: updating cache $cache_file" >&6;} 5772 if test ! -f "$cache_file" || test -h "$cache_file"; then 5773 cat confcache >"$cache_file" 5774 else 5775 case $cache_file in #( 5776 */* | ?:*) 5777 mv -f confcache "$cache_file"$$ && 5778 mv -f "$cache_file"$$ "$cache_file" ;; #( 5779 *) 5780 mv -f confcache "$cache_file" ;; 5781 esac 5782 fi 5783 fi 5784 else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5786$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5787 fi 5788fi 5789rm -f confcache 5790 5791test "x$prefix" = xNONE && prefix=$ac_default_prefix 5792# Let make expand exec_prefix. 5793test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5794 5795DEFS=-DHAVE_CONFIG_H 5796 5797ac_libobjs= 5798ac_ltlibobjs= 5799U= 5800for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5801 # 1. Remove the extension, and $U if already installed. 5802 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5803 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5804 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5805 # will be set to the directory where LIBOBJS objects are built. 5806 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5807 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5808done 5809LIBOBJS=$ac_libobjs 5810 5811LTLIBOBJS=$ac_ltlibobjs 5812 5813 5814 5815: "${CONFIG_STATUS=./config.status}" 5816ac_write_fail=0 5817ac_clean_files_save=$ac_clean_files 5818ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5820$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5821as_write_fail=0 5822cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5823#! $SHELL 5824# Generated by $as_me. 5825# Run this file to recreate the current configuration. 5826# Compiler output produced by configure, useful for debugging 5827# configure, is in config.log if it exists. 5828 5829debug=false 5830ac_cs_recheck=false 5831ac_cs_silent=false 5832 5833SHELL=\${CONFIG_SHELL-$SHELL} 5834export SHELL 5835_ASEOF 5836cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5837## -------------------- ## 5838## M4sh Initialization. ## 5839## -------------------- ## 5840 5841# Be more Bourne compatible 5842DUALCASE=1; export DUALCASE # for MKS sh 5843if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5844 emulate sh 5845 NULLCMD=: 5846 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5847 # is contrary to our usage. Disable this feature. 5848 alias -g '${1+"$@"}'='"$@"' 5849 setopt NO_GLOB_SUBST 5850else 5851 case `(set -o) 2>/dev/null` in #( 5852 *posix*) : 5853 set -o posix ;; #( 5854 *) : 5855 ;; 5856esac 5857fi 5858 5859 5860as_nl=' 5861' 5862export as_nl 5863# Printing a long string crashes Solaris 7 /usr/bin/printf. 5864as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5865as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5867# Prefer a ksh shell builtin over an external printf program on Solaris, 5868# but without wasting forks for bash or zsh. 5869if test -z "$BASH_VERSION$ZSH_VERSION" \ 5870 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5871 as_echo='print -r --' 5872 as_echo_n='print -rn --' 5873elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5874 as_echo='printf %s\n' 5875 as_echo_n='printf %s' 5876else 5877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5878 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5879 as_echo_n='/usr/ucb/echo -n' 5880 else 5881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5882 as_echo_n_body='eval 5883 arg=$1; 5884 case $arg in #( 5885 *"$as_nl"*) 5886 expr "X$arg" : "X\\(.*\\)$as_nl"; 5887 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5888 esac; 5889 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5890 ' 5891 export as_echo_n_body 5892 as_echo_n='sh -c $as_echo_n_body as_echo' 5893 fi 5894 export as_echo_body 5895 as_echo='sh -c $as_echo_body as_echo' 5896fi 5897 5898# The user is always right. 5899if test "${PATH_SEPARATOR+set}" != set; then 5900 PATH_SEPARATOR=: 5901 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5902 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5903 PATH_SEPARATOR=';' 5904 } 5905fi 5906 5907 5908# IFS 5909# We need space, tab and new line, in precisely that order. Quoting is 5910# there to prevent editors from complaining about space-tab. 5911# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5912# splitting by setting IFS to empty value.) 5913IFS=" "" $as_nl" 5914 5915# Find who we are. Look in the path if we contain no directory separator. 5916as_myself= 5917case $0 in #(( 5918 *[\\/]* ) as_myself=$0 ;; 5919 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5920for as_dir in $PATH 5921do 5922 IFS=$as_save_IFS 5923 test -z "$as_dir" && as_dir=. 5924 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5925 done 5926IFS=$as_save_IFS 5927 5928 ;; 5929esac 5930# We did not find ourselves, most probably we were run as `sh COMMAND' 5931# in which case we are not to be found in the path. 5932if test "x$as_myself" = x; then 5933 as_myself=$0 5934fi 5935if test ! -f "$as_myself"; then 5936 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5937 exit 1 5938fi 5939 5940# Unset variables that we do not need and which cause bugs (e.g. in 5941# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5942# suppresses any "Segmentation fault" message there. '((' could 5943# trigger a bug in pdksh 5.2.14. 5944for as_var in BASH_ENV ENV MAIL MAILPATH 5945do eval test x\${$as_var+set} = xset \ 5946 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5947done 5948PS1='$ ' 5949PS2='> ' 5950PS4='+ ' 5951 5952# NLS nuisances. 5953LC_ALL=C 5954export LC_ALL 5955LANGUAGE=C 5956export LANGUAGE 5957 5958# CDPATH. 5959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5960 5961 5962# as_fn_error STATUS ERROR [LINENO LOG_FD] 5963# ---------------------------------------- 5964# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5965# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5966# script with STATUS, using 1 if that was 0. 5967as_fn_error () 5968{ 5969 as_status=$1; test $as_status -eq 0 && as_status=1 5970 if test "$4"; then 5971 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5972 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5973 fi 5974 $as_echo "$as_me: error: $2" >&2 5975 as_fn_exit $as_status 5976} # as_fn_error 5977 5978 5979# as_fn_set_status STATUS 5980# ----------------------- 5981# Set $? to STATUS, without forking. 5982as_fn_set_status () 5983{ 5984 return $1 5985} # as_fn_set_status 5986 5987# as_fn_exit STATUS 5988# ----------------- 5989# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5990as_fn_exit () 5991{ 5992 set +e 5993 as_fn_set_status $1 5994 exit $1 5995} # as_fn_exit 5996 5997# as_fn_unset VAR 5998# --------------- 5999# Portably unset VAR. 6000as_fn_unset () 6001{ 6002 { eval $1=; unset $1;} 6003} 6004as_unset=as_fn_unset 6005# as_fn_append VAR VALUE 6006# ---------------------- 6007# Append the text in VALUE to the end of the definition contained in VAR. Take 6008# advantage of any shell optimizations that allow amortized linear growth over 6009# repeated appends, instead of the typical quadratic growth present in naive 6010# implementations. 6011if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 6012 eval 'as_fn_append () 6013 { 6014 eval $1+=\$2 6015 }' 6016else 6017 as_fn_append () 6018 { 6019 eval $1=\$$1\$2 6020 } 6021fi # as_fn_append 6022 6023# as_fn_arith ARG... 6024# ------------------ 6025# Perform arithmetic evaluation on the ARGs, and store the result in the 6026# global $as_val. Take advantage of shells that can avoid forks. The arguments 6027# must be portable across $(()) and expr. 6028if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 6029 eval 'as_fn_arith () 6030 { 6031 as_val=$(( $* )) 6032 }' 6033else 6034 as_fn_arith () 6035 { 6036 as_val=`expr "$@" || test $? -eq 1` 6037 } 6038fi # as_fn_arith 6039 6040 6041if expr a : '\(a\)' >/dev/null 2>&1 && 6042 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6043 as_expr=expr 6044else 6045 as_expr=false 6046fi 6047 6048if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6049 as_basename=basename 6050else 6051 as_basename=false 6052fi 6053 6054if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6055 as_dirname=dirname 6056else 6057 as_dirname=false 6058fi 6059 6060as_me=`$as_basename -- "$0" || 6061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6062 X"$0" : 'X\(//\)$' \| \ 6063 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6064$as_echo X/"$0" | 6065 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6066 s//\1/ 6067 q 6068 } 6069 /^X\/\(\/\/\)$/{ 6070 s//\1/ 6071 q 6072 } 6073 /^X\/\(\/\).*/{ 6074 s//\1/ 6075 q 6076 } 6077 s/.*/./; q'` 6078 6079# Avoid depending upon Character Ranges. 6080as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6082as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6083as_cr_digits='0123456789' 6084as_cr_alnum=$as_cr_Letters$as_cr_digits 6085 6086ECHO_C= ECHO_N= ECHO_T= 6087case `echo -n x` in #((((( 6088-n*) 6089 case `echo 'xy\c'` in 6090 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6091 xy) ECHO_C='\c';; 6092 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 6093 ECHO_T=' ';; 6094 esac;; 6095*) 6096 ECHO_N='-n';; 6097esac 6098 6099rm -f conf$$ conf$$.exe conf$$.file 6100if test -d conf$$.dir; then 6101 rm -f conf$$.dir/conf$$.file 6102else 6103 rm -f conf$$.dir 6104 mkdir conf$$.dir 2>/dev/null 6105fi 6106if (echo >conf$$.file) 2>/dev/null; then 6107 if ln -s conf$$.file conf$$ 2>/dev/null; then 6108 as_ln_s='ln -s' 6109 # ... but there are two gotchas: 6110 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6111 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6112 # In both cases, we have to default to `cp -pR'. 6113 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6114 as_ln_s='cp -pR' 6115 elif ln conf$$.file conf$$ 2>/dev/null; then 6116 as_ln_s=ln 6117 else 6118 as_ln_s='cp -pR' 6119 fi 6120else 6121 as_ln_s='cp -pR' 6122fi 6123rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6124rmdir conf$$.dir 2>/dev/null 6125 6126 6127# as_fn_mkdir_p 6128# ------------- 6129# Create "$as_dir" as a directory, including parents if necessary. 6130as_fn_mkdir_p () 6131{ 6132 6133 case $as_dir in #( 6134 -*) as_dir=./$as_dir;; 6135 esac 6136 test -d "$as_dir" || eval $as_mkdir_p || { 6137 as_dirs= 6138 while :; do 6139 case $as_dir in #( 6140 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 6141 *) as_qdir=$as_dir;; 6142 esac 6143 as_dirs="'$as_qdir' $as_dirs" 6144 as_dir=`$as_dirname -- "$as_dir" || 6145$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6146 X"$as_dir" : 'X\(//\)[^/]' \| \ 6147 X"$as_dir" : 'X\(//\)$' \| \ 6148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6149$as_echo X"$as_dir" | 6150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6151 s//\1/ 6152 q 6153 } 6154 /^X\(\/\/\)[^/].*/{ 6155 s//\1/ 6156 q 6157 } 6158 /^X\(\/\/\)$/{ 6159 s//\1/ 6160 q 6161 } 6162 /^X\(\/\).*/{ 6163 s//\1/ 6164 q 6165 } 6166 s/.*/./; q'` 6167 test -d "$as_dir" && break 6168 done 6169 test -z "$as_dirs" || eval "mkdir $as_dirs" 6170 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 6171 6172 6173} # as_fn_mkdir_p 6174if mkdir -p . 2>/dev/null; then 6175 as_mkdir_p='mkdir -p "$as_dir"' 6176else 6177 test -d ./-p && rmdir ./-p 6178 as_mkdir_p=false 6179fi 6180 6181 6182# as_fn_executable_p FILE 6183# ----------------------- 6184# Test if FILE is an executable regular file. 6185as_fn_executable_p () 6186{ 6187 test -f "$1" && test -x "$1" 6188} # as_fn_executable_p 6189as_test_x='test -x' 6190as_executable_p=as_fn_executable_p 6191 6192# Sed expression to map a string onto a valid CPP name. 6193as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6194 6195# Sed expression to map a string onto a valid variable name. 6196as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6197 6198 6199exec 6>&1 6200## ----------------------------------- ## 6201## Main body of $CONFIG_STATUS script. ## 6202## ----------------------------------- ## 6203_ASEOF 6204test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 6205 6206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6207# Save the log message, to keep $0 and so on meaningful, and to 6208# report actual input values of CONFIG_FILES etc. instead of their 6209# values after options handling. 6210ac_log=" 6211This file was extended by $as_me, which was 6212generated by GNU Autoconf 2.69. Invocation command line was 6213 6214 CONFIG_FILES = $CONFIG_FILES 6215 CONFIG_HEADERS = $CONFIG_HEADERS 6216 CONFIG_LINKS = $CONFIG_LINKS 6217 CONFIG_COMMANDS = $CONFIG_COMMANDS 6218 $ $0 $@ 6219 6220on `(hostname || uname -n) 2>/dev/null | sed 1q` 6221" 6222 6223_ACEOF 6224 6225case $ac_config_files in *" 6226"*) set x $ac_config_files; shift; ac_config_files=$*;; 6227esac 6228 6229case $ac_config_headers in *" 6230"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 6231esac 6232 6233 6234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6235# Files that config.status was made for. 6236config_files="$ac_config_files" 6237config_headers="$ac_config_headers" 6238 6239_ACEOF 6240 6241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6242ac_cs_usage="\ 6243\`$as_me' instantiates files and other configuration actions 6244from templates according to the current configuration. Unless the files 6245and actions are specified as TAGs, all are instantiated by default. 6246 6247Usage: $0 [OPTION]... [TAG]... 6248 6249 -h, --help print this help, then exit 6250 -V, --version print version number and configuration settings, then exit 6251 --config print configuration, then exit 6252 -q, --quiet, --silent 6253 do not print progress messages 6254 -d, --debug don't remove temporary files 6255 --recheck update $as_me by reconfiguring in the same conditions 6256 --file=FILE[:TEMPLATE] 6257 instantiate the configuration file FILE 6258 --header=FILE[:TEMPLATE] 6259 instantiate the configuration header FILE 6260 6261Configuration files: 6262$config_files 6263 6264Configuration headers: 6265$config_headers 6266 6267Report bugs to the package provider." 6268 6269_ACEOF 6270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6271ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 6272ac_cs_version="\\ 6273config.status 6274configured by $0, generated by GNU Autoconf 2.69, 6275 with options \\"\$ac_cs_config\\" 6276 6277Copyright (C) 2012 Free Software Foundation, Inc. 6278This config.status script is free software; the Free Software Foundation 6279gives unlimited permission to copy, distribute and modify it." 6280 6281ac_pwd='$ac_pwd' 6282srcdir='$srcdir' 6283INSTALL='$INSTALL' 6284test -n "\$AWK" || AWK=awk 6285_ACEOF 6286 6287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6288# The default lists apply if the user does not specify any file. 6289ac_need_defaults=: 6290while test $# != 0 6291do 6292 case $1 in 6293 --*=?*) 6294 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6295 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6296 ac_shift=: 6297 ;; 6298 --*=) 6299 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6300 ac_optarg= 6301 ac_shift=: 6302 ;; 6303 *) 6304 ac_option=$1 6305 ac_optarg=$2 6306 ac_shift=shift 6307 ;; 6308 esac 6309 6310 case $ac_option in 6311 # Handling of the options. 6312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6313 ac_cs_recheck=: ;; 6314 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6315 $as_echo "$ac_cs_version"; exit ;; 6316 --config | --confi | --conf | --con | --co | --c ) 6317 $as_echo "$ac_cs_config"; exit ;; 6318 --debug | --debu | --deb | --de | --d | -d ) 6319 debug=: ;; 6320 --file | --fil | --fi | --f ) 6321 $ac_shift 6322 case $ac_optarg in 6323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6324 '') as_fn_error $? "missing file argument" ;; 6325 esac 6326 as_fn_append CONFIG_FILES " '$ac_optarg'" 6327 ac_need_defaults=false;; 6328 --header | --heade | --head | --hea ) 6329 $ac_shift 6330 case $ac_optarg in 6331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6332 esac 6333 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 6334 ac_need_defaults=false;; 6335 --he | --h) 6336 # Conflict between --help and --header 6337 as_fn_error $? "ambiguous option: \`$1' 6338Try \`$0 --help' for more information.";; 6339 --help | --hel | -h ) 6340 $as_echo "$ac_cs_usage"; exit ;; 6341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6342 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6343 ac_cs_silent=: ;; 6344 6345 # This is an error. 6346 -*) as_fn_error $? "unrecognized option: \`$1' 6347Try \`$0 --help' for more information." ;; 6348 6349 *) as_fn_append ac_config_targets " $1" 6350 ac_need_defaults=false ;; 6351 6352 esac 6353 shift 6354done 6355 6356ac_configure_extra_args= 6357 6358if $ac_cs_silent; then 6359 exec 6>/dev/null 6360 ac_configure_extra_args="$ac_configure_extra_args --silent" 6361fi 6362 6363_ACEOF 6364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6365if \$ac_cs_recheck; then 6366 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6367 shift 6368 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6369 CONFIG_SHELL='$SHELL' 6370 export CONFIG_SHELL 6371 exec "\$@" 6372fi 6373 6374_ACEOF 6375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6376exec 5>>config.log 6377{ 6378 echo 6379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6380## Running $as_me. ## 6381_ASBOX 6382 $as_echo "$ac_log" 6383} >&5 6384 6385_ACEOF 6386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6387_ACEOF 6388 6389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6390 6391# Handling of arguments. 6392for ac_config_target in $ac_config_targets 6393do 6394 case $ac_config_target in 6395 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6396 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6397 6398 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 6399 esac 6400done 6401 6402 6403# If the user did not use the arguments to specify the items to instantiate, 6404# then the envvar interface is used. Set only those that are not. 6405# We use the long form for the default assignment because of an extremely 6406# bizarre bug on SunOS 4.1.3. 6407if $ac_need_defaults; then 6408 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6409 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6410fi 6411 6412# Have a temporary directory for convenience. Make it in the build tree 6413# simply because there is no reason against having it here, and in addition, 6414# creating and moving files from /tmp can sometimes cause problems. 6415# Hook for its removal unless debugging. 6416# Note that there is a small window in which the directory will not be cleaned: 6417# after its creation but before its name has been assigned to `$tmp'. 6418$debug || 6419{ 6420 tmp= ac_tmp= 6421 trap 'exit_status=$? 6422 : "${ac_tmp:=$tmp}" 6423 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 6424' 0 6425 trap 'as_fn_exit 1' 1 2 13 15 6426} 6427# Create a (secure) tmp directory for tmp files. 6428 6429{ 6430 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6431 test -d "$tmp" 6432} || 6433{ 6434 tmp=./conf$$-$RANDOM 6435 (umask 077 && mkdir "$tmp") 6436} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 6437ac_tmp=$tmp 6438 6439# Set up the scripts for CONFIG_FILES section. 6440# No need to generate them if there are no CONFIG_FILES. 6441# This happens for instance with `./config.status config.h'. 6442if test -n "$CONFIG_FILES"; then 6443 6444 6445ac_cr=`echo X | tr X '\015'` 6446# On cygwin, bash can eat \r inside `` if the user requested igncr. 6447# But we know of no other shell where ac_cr would be empty at this 6448# point, so we can use a bashism as a fallback. 6449if test "x$ac_cr" = x; then 6450 eval ac_cr=\$\'\\r\' 6451fi 6452ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6453if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6454 ac_cs_awk_cr='\\r' 6455else 6456 ac_cs_awk_cr=$ac_cr 6457fi 6458 6459echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 6460_ACEOF 6461 6462 6463{ 6464 echo "cat >conf$$subs.awk <<_ACEOF" && 6465 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6466 echo "_ACEOF" 6467} >conf$$subs.sh || 6468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6469ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6470ac_delim='%!_!# ' 6471for ac_last_try in false false false false false :; do 6472 . ./conf$$subs.sh || 6473 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6474 6475 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6476 if test $ac_delim_n = $ac_delim_num; then 6477 break 6478 elif $ac_last_try; then 6479 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6480 else 6481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6482 fi 6483done 6484rm -f conf$$subs.sh 6485 6486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6487cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 6488_ACEOF 6489sed -n ' 6490h 6491s/^/S["/; s/!.*/"]=/ 6492p 6493g 6494s/^[^!]*!// 6495:repl 6496t repl 6497s/'"$ac_delim"'$// 6498t delim 6499:nl 6500h 6501s/\(.\{148\}\)..*/\1/ 6502t more1 6503s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6504p 6505n 6506b repl 6507:more1 6508s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6509p 6510g 6511s/.\{148\}// 6512t nl 6513:delim 6514h 6515s/\(.\{148\}\)..*/\1/ 6516t more2 6517s/["\\]/\\&/g; s/^/"/; s/$/"/ 6518p 6519b 6520:more2 6521s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6522p 6523g 6524s/.\{148\}// 6525t delim 6526' <conf$$subs.awk | sed ' 6527/^[^""]/{ 6528 N 6529 s/\n// 6530} 6531' >>$CONFIG_STATUS || ac_write_fail=1 6532rm -f conf$$subs.awk 6533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6534_ACAWK 6535cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 6536 for (key in S) S_is_set[key] = 1 6537 FS = "" 6538 6539} 6540{ 6541 line = $ 0 6542 nfields = split(line, field, "@") 6543 substed = 0 6544 len = length(field[1]) 6545 for (i = 2; i < nfields; i++) { 6546 key = field[i] 6547 keylen = length(key) 6548 if (S_is_set[key]) { 6549 value = S[key] 6550 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6551 len += length(value) + length(field[++i]) 6552 substed = 1 6553 } else 6554 len += 1 + keylen 6555 } 6556 6557 print line 6558} 6559 6560_ACAWK 6561_ACEOF 6562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6563if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6564 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6565else 6566 cat 6567fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 6568 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6569_ACEOF 6570 6571# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 6572# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6573# trailing colons and then remove the whole line if VPATH becomes empty 6574# (actually we leave an empty line to preserve line numbers). 6575if test "x$srcdir" = x.; then 6576 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 6577h 6578s/// 6579s/^/:/ 6580s/[ ]*$/:/ 6581s/:\$(srcdir):/:/g 6582s/:\${srcdir}:/:/g 6583s/:@srcdir@:/:/g 6584s/^:*// 6585s/:*$// 6586x 6587s/\(=[ ]*\).*/\1/ 6588G 6589s/\n// 6590s/^[^=]*=[ ]*$// 6591}' 6592fi 6593 6594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6595fi # test -n "$CONFIG_FILES" 6596 6597# Set up the scripts for CONFIG_HEADERS section. 6598# No need to generate them if there are no CONFIG_HEADERS. 6599# This happens for instance with `./config.status Makefile'. 6600if test -n "$CONFIG_HEADERS"; then 6601cat >"$ac_tmp/defines.awk" <<\_ACAWK || 6602BEGIN { 6603_ACEOF 6604 6605# Transform confdefs.h into an awk script `defines.awk', embedded as 6606# here-document in config.status, that substitutes the proper values into 6607# config.h.in to produce config.h. 6608 6609# Create a delimiter string that does not exist in confdefs.h, to ease 6610# handling of long lines. 6611ac_delim='%!_!# ' 6612for ac_last_try in false false :; do 6613 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 6614 if test -z "$ac_tt"; then 6615 break 6616 elif $ac_last_try; then 6617 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6618 else 6619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6620 fi 6621done 6622 6623# For the awk script, D is an array of macro values keyed by name, 6624# likewise P contains macro parameters if any. Preserve backslash 6625# newline sequences. 6626 6627ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6628sed -n ' 6629s/.\{148\}/&'"$ac_delim"'/g 6630t rset 6631:rset 6632s/^[ ]*#[ ]*define[ ][ ]*/ / 6633t def 6634d 6635:def 6636s/\\$// 6637t bsnl 6638s/["\\]/\\&/g 6639s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6640D["\1"]=" \3"/p 6641s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6642d 6643:bsnl 6644s/["\\]/\\&/g 6645s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6646D["\1"]=" \3\\\\\\n"\\/p 6647t cont 6648s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6649t cont 6650d 6651:cont 6652n 6653s/.\{148\}/&'"$ac_delim"'/g 6654t clear 6655:clear 6656s/\\$// 6657t bsnlc 6658s/["\\]/\\&/g; s/^/"/; s/$/"/p 6659d 6660:bsnlc 6661s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6662b cont 6663' <confdefs.h | sed ' 6664s/'"$ac_delim"'/"\\\ 6665"/g' >>$CONFIG_STATUS || ac_write_fail=1 6666 6667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6668 for (key in D) D_is_set[key] = 1 6669 FS = "" 6670} 6671/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6672 line = \$ 0 6673 split(line, arg, " ") 6674 if (arg[1] == "#") { 6675 defundef = arg[2] 6676 mac1 = arg[3] 6677 } else { 6678 defundef = substr(arg[1], 2) 6679 mac1 = arg[2] 6680 } 6681 split(mac1, mac2, "(") #) 6682 macro = mac2[1] 6683 prefix = substr(line, 1, index(line, defundef) - 1) 6684 if (D_is_set[macro]) { 6685 # Preserve the white space surrounding the "#". 6686 print prefix "define", macro P[macro] D[macro] 6687 next 6688 } else { 6689 # Replace #undef with comments. This is necessary, for example, 6690 # in the case of _POSIX_SOURCE, which is predefined and required 6691 # on some systems where configure will not decide to define it. 6692 if (defundef == "undef") { 6693 print "/*", prefix defundef, macro, "*/" 6694 next 6695 } 6696 } 6697} 6698{ print } 6699_ACAWK 6700_ACEOF 6701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6702 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6703fi # test -n "$CONFIG_HEADERS" 6704 6705 6706eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 6707shift 6708for ac_tag 6709do 6710 case $ac_tag in 6711 :[FHLC]) ac_mode=$ac_tag; continue;; 6712 esac 6713 case $ac_mode$ac_tag in 6714 :[FHL]*:*);; 6715 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6716 :[FH]-) ac_tag=-:-;; 6717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6718 esac 6719 ac_save_IFS=$IFS 6720 IFS=: 6721 set x $ac_tag 6722 IFS=$ac_save_IFS 6723 shift 6724 ac_file=$1 6725 shift 6726 6727 case $ac_mode in 6728 :L) ac_source=$1;; 6729 :[FH]) 6730 ac_file_inputs= 6731 for ac_f 6732 do 6733 case $ac_f in 6734 -) ac_f="$ac_tmp/stdin";; 6735 *) # Look for the file first in the build tree, then in the source tree 6736 # (if the path is not absolute). The absolute path cannot be DOS-style, 6737 # because $ac_f cannot contain `:'. 6738 test -f "$ac_f" || 6739 case $ac_f in 6740 [\\/$]*) false;; 6741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6742 esac || 6743 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6744 esac 6745 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6746 as_fn_append ac_file_inputs " '$ac_f'" 6747 done 6748 6749 # Let's still pretend it is `configure' which instantiates (i.e., don't 6750 # use $as_me), people would be surprised to read: 6751 # /* config.h. Generated by config.status. */ 6752 configure_input='Generated from '` 6753 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6754 `' by configure.' 6755 if test x"$ac_file" != x-; then 6756 configure_input="$ac_file. $configure_input" 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6758$as_echo "$as_me: creating $ac_file" >&6;} 6759 fi 6760 # Neutralize special characters interpreted by sed in replacement strings. 6761 case $configure_input in #( 6762 *\&* | *\|* | *\\* ) 6763 ac_sed_conf_input=`$as_echo "$configure_input" | 6764 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6765 *) ac_sed_conf_input=$configure_input;; 6766 esac 6767 6768 case $ac_tag in 6769 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6771 esac 6772 ;; 6773 esac 6774 6775 ac_dir=`$as_dirname -- "$ac_file" || 6776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6777 X"$ac_file" : 'X\(//\)[^/]' \| \ 6778 X"$ac_file" : 'X\(//\)$' \| \ 6779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6780$as_echo X"$ac_file" | 6781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6782 s//\1/ 6783 q 6784 } 6785 /^X\(\/\/\)[^/].*/{ 6786 s//\1/ 6787 q 6788 } 6789 /^X\(\/\/\)$/{ 6790 s//\1/ 6791 q 6792 } 6793 /^X\(\/\).*/{ 6794 s//\1/ 6795 q 6796 } 6797 s/.*/./; q'` 6798 as_dir="$ac_dir"; as_fn_mkdir_p 6799 ac_builddir=. 6800 6801case "$ac_dir" in 6802.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6803*) 6804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6805 # A ".." for each directory in $ac_dir_suffix. 6806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6807 case $ac_top_builddir_sub in 6808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6810 esac ;; 6811esac 6812ac_abs_top_builddir=$ac_pwd 6813ac_abs_builddir=$ac_pwd$ac_dir_suffix 6814# for backward compatibility: 6815ac_top_builddir=$ac_top_build_prefix 6816 6817case $srcdir in 6818 .) # We are building in place. 6819 ac_srcdir=. 6820 ac_top_srcdir=$ac_top_builddir_sub 6821 ac_abs_top_srcdir=$ac_pwd ;; 6822 [\\/]* | ?:[\\/]* ) # Absolute name. 6823 ac_srcdir=$srcdir$ac_dir_suffix; 6824 ac_top_srcdir=$srcdir 6825 ac_abs_top_srcdir=$srcdir ;; 6826 *) # Relative name. 6827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6828 ac_top_srcdir=$ac_top_build_prefix$srcdir 6829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6830esac 6831ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6832 6833 6834 case $ac_mode in 6835 :F) 6836 # 6837 # CONFIG_FILE 6838 # 6839 6840 case $INSTALL in 6841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6842 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6843 esac 6844_ACEOF 6845 6846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6847# If the template does not know about datarootdir, expand it. 6848# FIXME: This hack should be removed a few years after 2.60. 6849ac_datarootdir_hack=; ac_datarootdir_seen= 6850ac_sed_dataroot=' 6851/datarootdir/ { 6852 p 6853 q 6854} 6855/@datadir@/p 6856/@docdir@/p 6857/@infodir@/p 6858/@localedir@/p 6859/@mandir@/p' 6860case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6861*datarootdir*) ac_datarootdir_seen=yes;; 6862*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6864$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6865_ACEOF 6866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6867 ac_datarootdir_hack=' 6868 s&@datadir@&$datadir&g 6869 s&@docdir@&$docdir&g 6870 s&@infodir@&$infodir&g 6871 s&@localedir@&$localedir&g 6872 s&@mandir@&$mandir&g 6873 s&\\\${datarootdir}&$datarootdir&g' ;; 6874esac 6875_ACEOF 6876 6877# Neutralize VPATH when `$srcdir' = `.'. 6878# Shell code in configure.ac might set extrasub. 6879# FIXME: do we really want to maintain this feature? 6880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6881ac_sed_extra="$ac_vpsub 6882$extrasub 6883_ACEOF 6884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6885:t 6886/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6887s|@configure_input@|$ac_sed_conf_input|;t t 6888s&@top_builddir@&$ac_top_builddir_sub&;t t 6889s&@top_build_prefix@&$ac_top_build_prefix&;t t 6890s&@srcdir@&$ac_srcdir&;t t 6891s&@abs_srcdir@&$ac_abs_srcdir&;t t 6892s&@top_srcdir@&$ac_top_srcdir&;t t 6893s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6894s&@builddir@&$ac_builddir&;t t 6895s&@abs_builddir@&$ac_abs_builddir&;t t 6896s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6897s&@INSTALL@&$ac_INSTALL&;t t 6898$ac_datarootdir_hack 6899" 6900eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 6901 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6902 6903test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6904 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 6905 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 6906 "$ac_tmp/out"`; test -z "$ac_out"; } && 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6908which seems to be undefined. Please make sure it is defined" >&5 6909$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6910which seems to be undefined. Please make sure it is defined" >&2;} 6911 6912 rm -f "$ac_tmp/stdin" 6913 case $ac_file in 6914 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 6915 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6916 esac \ 6917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6918 ;; 6919 :H) 6920 # 6921 # CONFIG_HEADER 6922 # 6923 if test x"$ac_file" != x-; then 6924 { 6925 $as_echo "/* $configure_input */" \ 6926 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 6927 } >"$ac_tmp/config.h" \ 6928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6929 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6931$as_echo "$as_me: $ac_file is unchanged" >&6;} 6932 else 6933 rm -f "$ac_file" 6934 mv "$ac_tmp/config.h" "$ac_file" \ 6935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6936 fi 6937 else 6938 $as_echo "/* $configure_input */" \ 6939 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 6940 || as_fn_error $? "could not create -" "$LINENO" 5 6941 fi 6942 ;; 6943 6944 6945 esac 6946 6947done # for ac_tag 6948 6949 6950as_fn_exit 0 6951_ACEOF 6952ac_clean_files=$ac_clean_files_save 6953 6954test $ac_write_fail = 0 || 6955 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6956 6957 6958# configure is writing to config.log, and then calls config.status. 6959# config.status does its own redirection, appending to config.log. 6960# Unfortunately, on DOS this fails, as config.log is still kept open 6961# by configure, so config.status won't be able to write to it; its 6962# output is simply discarded. So we exec the FD to /dev/null, 6963# effectively closing config.log, so it can be properly (re)opened and 6964# appended to by config.status. When coming back to configure, we 6965# need to make the FD available again. 6966if test "$no_create" != yes; then 6967 ac_cs_success=: 6968 ac_config_status_args= 6969 test "$silent" = yes && 6970 ac_config_status_args="$ac_config_status_args --quiet" 6971 exec 5>/dev/null 6972 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6973 exec 5>>config.log 6974 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6975 # would make configure fail if this is the last instruction. 6976 $ac_cs_success || as_fn_exit 1 6977fi 6978if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6980$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6981fi 6982 6983 6984test "$badredhatpam" = 1 && { 6985 echo "#" 6986 echo "# WARNING." 6987 echo "#" 6988 echo "# You have /lib/libpam.so.0 but not libpam.so." 6989 echo "# In Redhat 7.{1,2}, this is bugid 55651, and is fixed in rpm" 6990 echo "# pam-0.75-18.7. You should get that rpm to fix several pam bugs," 6991 echo "# but for now you should become root, and make these links by hand:" 6992 echo "# ln -s /lib/libpam.so.0 /lib/libpam.so" 6993 echo "# ln -s /lib/libpam_misc.so.0 /lib/libpam_misc.so" 6994 echo "#" 6995 echo "# Then, rm config.cache and rerun configure." 6996 echo "#" 6997 echo "#" 6998} 6999 7000# The test command will give a non-zero exit code if this isn't 7001# a bad-redhat-pam system. So use 'exit 0' to make everyone happy. 7002exit 0 7003