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