1*c7ca977eSAlexander Kabaev#! /bin/sh 2*c7ca977eSAlexander Kabaev# Guess values for system-dependent variables and create Makefiles. 3*c7ca977eSAlexander Kabaev# Generated by GNU Autoconf 2.59 for cpplib . 4*c7ca977eSAlexander Kabaev# 5*c7ca977eSAlexander Kabaev# Report bugs to <[email protected]>. 6*c7ca977eSAlexander Kabaev# 7*c7ca977eSAlexander Kabaev# Copyright (C) 2003 Free Software Foundation, Inc. 8*c7ca977eSAlexander Kabaev# This configure script is free software; the Free Software Foundation 9*c7ca977eSAlexander Kabaev# gives unlimited permission to copy, distribute and modify it. 10*c7ca977eSAlexander Kabaev## --------------------- ## 11*c7ca977eSAlexander Kabaev## M4sh Initialization. ## 12*c7ca977eSAlexander Kabaev## --------------------- ## 13*c7ca977eSAlexander Kabaev 14*c7ca977eSAlexander Kabaev# Be Bourne compatible 15*c7ca977eSAlexander Kabaevif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16*c7ca977eSAlexander Kabaev emulate sh 17*c7ca977eSAlexander Kabaev NULLCMD=: 18*c7ca977eSAlexander Kabaev # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19*c7ca977eSAlexander Kabaev # is contrary to our usage. Disable this feature. 20*c7ca977eSAlexander Kabaev alias -g '${1+"$@"}'='"$@"' 21*c7ca977eSAlexander Kabaevelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22*c7ca977eSAlexander Kabaev set -o posix 23*c7ca977eSAlexander Kabaevfi 24*c7ca977eSAlexander KabaevDUALCASE=1; export DUALCASE # for MKS sh 25*c7ca977eSAlexander Kabaev 26*c7ca977eSAlexander Kabaev# Support unset when possible. 27*c7ca977eSAlexander Kabaevif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28*c7ca977eSAlexander Kabaev as_unset=unset 29*c7ca977eSAlexander Kabaevelse 30*c7ca977eSAlexander Kabaev as_unset=false 31*c7ca977eSAlexander Kabaevfi 32*c7ca977eSAlexander Kabaev 33*c7ca977eSAlexander Kabaev 34*c7ca977eSAlexander Kabaev# Work around bugs in pre-3.0 UWIN ksh. 35*c7ca977eSAlexander Kabaev$as_unset ENV MAIL MAILPATH 36*c7ca977eSAlexander KabaevPS1='$ ' 37*c7ca977eSAlexander KabaevPS2='> ' 38*c7ca977eSAlexander KabaevPS4='+ ' 39*c7ca977eSAlexander Kabaev 40*c7ca977eSAlexander Kabaev# NLS nuisances. 41*c7ca977eSAlexander Kabaevfor as_var in \ 42*c7ca977eSAlexander Kabaev LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43*c7ca977eSAlexander Kabaev LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44*c7ca977eSAlexander Kabaev LC_TELEPHONE LC_TIME 45*c7ca977eSAlexander Kabaevdo 46*c7ca977eSAlexander Kabaev if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47*c7ca977eSAlexander Kabaev eval $as_var=C; export $as_var 48*c7ca977eSAlexander Kabaev else 49*c7ca977eSAlexander Kabaev $as_unset $as_var 50*c7ca977eSAlexander Kabaev fi 51*c7ca977eSAlexander Kabaevdone 52*c7ca977eSAlexander Kabaev 53*c7ca977eSAlexander Kabaev# Required to use basename. 54*c7ca977eSAlexander Kabaevif expr a : '\(a\)' >/dev/null 2>&1; then 55*c7ca977eSAlexander Kabaev as_expr=expr 56*c7ca977eSAlexander Kabaevelse 57*c7ca977eSAlexander Kabaev as_expr=false 58*c7ca977eSAlexander Kabaevfi 59*c7ca977eSAlexander Kabaev 60*c7ca977eSAlexander Kabaevif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61*c7ca977eSAlexander Kabaev as_basename=basename 62*c7ca977eSAlexander Kabaevelse 63*c7ca977eSAlexander Kabaev as_basename=false 64*c7ca977eSAlexander Kabaevfi 65*c7ca977eSAlexander Kabaev 66*c7ca977eSAlexander Kabaev 67*c7ca977eSAlexander Kabaev# Name of the executable. 68*c7ca977eSAlexander Kabaevas_me=`$as_basename "$0" || 69*c7ca977eSAlexander Kabaev$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70*c7ca977eSAlexander Kabaev X"$0" : 'X\(//\)$' \| \ 71*c7ca977eSAlexander Kabaev X"$0" : 'X\(/\)$' \| \ 72*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 73*c7ca977eSAlexander Kabaevecho X/"$0" | 74*c7ca977eSAlexander Kabaev sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75*c7ca977eSAlexander Kabaev /^X\/\(\/\/\)$/{ s//\1/; q; } 76*c7ca977eSAlexander Kabaev /^X\/\(\/\).*/{ s//\1/; q; } 77*c7ca977eSAlexander Kabaev s/.*/./; q'` 78*c7ca977eSAlexander Kabaev 79*c7ca977eSAlexander Kabaev 80*c7ca977eSAlexander Kabaev# PATH needs CR, and LINENO needs CR and PATH. 81*c7ca977eSAlexander Kabaev# Avoid depending upon Character Ranges. 82*c7ca977eSAlexander Kabaevas_cr_letters='abcdefghijklmnopqrstuvwxyz' 83*c7ca977eSAlexander Kabaevas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84*c7ca977eSAlexander Kabaevas_cr_Letters=$as_cr_letters$as_cr_LETTERS 85*c7ca977eSAlexander Kabaevas_cr_digits='0123456789' 86*c7ca977eSAlexander Kabaevas_cr_alnum=$as_cr_Letters$as_cr_digits 87*c7ca977eSAlexander Kabaev 88*c7ca977eSAlexander Kabaev# The user is always right. 89*c7ca977eSAlexander Kabaevif test "${PATH_SEPARATOR+set}" != set; then 90*c7ca977eSAlexander Kabaev echo "#! /bin/sh" >conf$$.sh 91*c7ca977eSAlexander Kabaev echo "exit 0" >>conf$$.sh 92*c7ca977eSAlexander Kabaev chmod +x conf$$.sh 93*c7ca977eSAlexander Kabaev if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94*c7ca977eSAlexander Kabaev PATH_SEPARATOR=';' 95*c7ca977eSAlexander Kabaev else 96*c7ca977eSAlexander Kabaev PATH_SEPARATOR=: 97*c7ca977eSAlexander Kabaev fi 98*c7ca977eSAlexander Kabaev rm -f conf$$.sh 99*c7ca977eSAlexander Kabaevfi 100*c7ca977eSAlexander Kabaev 101*c7ca977eSAlexander Kabaev 102*c7ca977eSAlexander Kabaev as_lineno_1=$LINENO 103*c7ca977eSAlexander Kabaev as_lineno_2=$LINENO 104*c7ca977eSAlexander Kabaev as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105*c7ca977eSAlexander Kabaev test "x$as_lineno_1" != "x$as_lineno_2" && 106*c7ca977eSAlexander Kabaev test "x$as_lineno_3" = "x$as_lineno_2" || { 107*c7ca977eSAlexander Kabaev # Find who we are. Look in the path if we contain no path at all 108*c7ca977eSAlexander Kabaev # relative or not. 109*c7ca977eSAlexander Kabaev case $0 in 110*c7ca977eSAlexander Kabaev *[\\/]* ) as_myself=$0 ;; 111*c7ca977eSAlexander Kabaev *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112*c7ca977eSAlexander Kabaevfor as_dir in $PATH 113*c7ca977eSAlexander Kabaevdo 114*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 115*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 116*c7ca977eSAlexander Kabaev test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117*c7ca977eSAlexander Kabaevdone 118*c7ca977eSAlexander Kabaev 119*c7ca977eSAlexander Kabaev ;; 120*c7ca977eSAlexander Kabaev esac 121*c7ca977eSAlexander Kabaev # We did not find ourselves, most probably we were run as `sh COMMAND' 122*c7ca977eSAlexander Kabaev # in which case we are not to be found in the path. 123*c7ca977eSAlexander Kabaev if test "x$as_myself" = x; then 124*c7ca977eSAlexander Kabaev as_myself=$0 125*c7ca977eSAlexander Kabaev fi 126*c7ca977eSAlexander Kabaev if test ! -f "$as_myself"; then 127*c7ca977eSAlexander Kabaev { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 129*c7ca977eSAlexander Kabaev fi 130*c7ca977eSAlexander Kabaev case $CONFIG_SHELL in 131*c7ca977eSAlexander Kabaev '') 132*c7ca977eSAlexander Kabaev as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133*c7ca977eSAlexander Kabaevfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134*c7ca977eSAlexander Kabaevdo 135*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 136*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 137*c7ca977eSAlexander Kabaev for as_base in sh bash ksh sh5; do 138*c7ca977eSAlexander Kabaev case $as_dir in 139*c7ca977eSAlexander Kabaev /*) 140*c7ca977eSAlexander Kabaev if ("$as_dir/$as_base" -c ' 141*c7ca977eSAlexander Kabaev as_lineno_1=$LINENO 142*c7ca977eSAlexander Kabaev as_lineno_2=$LINENO 143*c7ca977eSAlexander Kabaev as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144*c7ca977eSAlexander Kabaev test "x$as_lineno_1" != "x$as_lineno_2" && 145*c7ca977eSAlexander Kabaev test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146*c7ca977eSAlexander Kabaev $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147*c7ca977eSAlexander Kabaev $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148*c7ca977eSAlexander Kabaev CONFIG_SHELL=$as_dir/$as_base 149*c7ca977eSAlexander Kabaev export CONFIG_SHELL 150*c7ca977eSAlexander Kabaev exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151*c7ca977eSAlexander Kabaev fi;; 152*c7ca977eSAlexander Kabaev esac 153*c7ca977eSAlexander Kabaev done 154*c7ca977eSAlexander Kabaevdone 155*c7ca977eSAlexander Kabaev;; 156*c7ca977eSAlexander Kabaev esac 157*c7ca977eSAlexander Kabaev 158*c7ca977eSAlexander Kabaev # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159*c7ca977eSAlexander Kabaev # uniformly replaced by the line number. The first 'sed' inserts a 160*c7ca977eSAlexander Kabaev # line-number line before each line; the second 'sed' does the real 161*c7ca977eSAlexander Kabaev # work. The second script uses 'N' to pair each line-number line 162*c7ca977eSAlexander Kabaev # with the numbered line, and appends trailing '-' during 163*c7ca977eSAlexander Kabaev # substitution so that $LINENO is not a special case at line end. 164*c7ca977eSAlexander Kabaev # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165*c7ca977eSAlexander Kabaev # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166*c7ca977eSAlexander Kabaev sed '=' <$as_myself | 167*c7ca977eSAlexander Kabaev sed ' 168*c7ca977eSAlexander Kabaev N 169*c7ca977eSAlexander Kabaev s,$,-, 170*c7ca977eSAlexander Kabaev : loop 171*c7ca977eSAlexander Kabaev s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172*c7ca977eSAlexander Kabaev t loop 173*c7ca977eSAlexander Kabaev s,-$,, 174*c7ca977eSAlexander Kabaev s,^['$as_cr_digits']*\n,, 175*c7ca977eSAlexander Kabaev ' >$as_me.lineno && 176*c7ca977eSAlexander Kabaev chmod +x $as_me.lineno || 177*c7ca977eSAlexander Kabaev { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 179*c7ca977eSAlexander Kabaev 180*c7ca977eSAlexander Kabaev # Don't try to exec as it changes $[0], causing all sort of problems 181*c7ca977eSAlexander Kabaev # (the dirname of $[0] is not the place where we might find the 182*c7ca977eSAlexander Kabaev # original and so on. Autoconf is especially sensible to this). 183*c7ca977eSAlexander Kabaev . ./$as_me.lineno 184*c7ca977eSAlexander Kabaev # Exit status is that of the last command. 185*c7ca977eSAlexander Kabaev exit 186*c7ca977eSAlexander Kabaev} 187*c7ca977eSAlexander Kabaev 188*c7ca977eSAlexander Kabaev 189*c7ca977eSAlexander Kabaevcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190*c7ca977eSAlexander Kabaev *c*,-n*) ECHO_N= ECHO_C=' 191*c7ca977eSAlexander Kabaev' ECHO_T=' ' ;; 192*c7ca977eSAlexander Kabaev *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193*c7ca977eSAlexander Kabaev *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194*c7ca977eSAlexander Kabaevesac 195*c7ca977eSAlexander Kabaev 196*c7ca977eSAlexander Kabaevif expr a : '\(a\)' >/dev/null 2>&1; then 197*c7ca977eSAlexander Kabaev as_expr=expr 198*c7ca977eSAlexander Kabaevelse 199*c7ca977eSAlexander Kabaev as_expr=false 200*c7ca977eSAlexander Kabaevfi 201*c7ca977eSAlexander Kabaev 202*c7ca977eSAlexander Kabaevrm -f conf$$ conf$$.exe conf$$.file 203*c7ca977eSAlexander Kabaevecho >conf$$.file 204*c7ca977eSAlexander Kabaevif ln -s conf$$.file conf$$ 2>/dev/null; then 205*c7ca977eSAlexander Kabaev # We could just check for DJGPP; but this test a) works b) is more generic 206*c7ca977eSAlexander Kabaev # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207*c7ca977eSAlexander Kabaev if test -f conf$$.exe; then 208*c7ca977eSAlexander Kabaev # Don't use ln at all; we don't have any links 209*c7ca977eSAlexander Kabaev as_ln_s='cp -p' 210*c7ca977eSAlexander Kabaev else 211*c7ca977eSAlexander Kabaev as_ln_s='ln -s' 212*c7ca977eSAlexander Kabaev fi 213*c7ca977eSAlexander Kabaevelif ln conf$$.file conf$$ 2>/dev/null; then 214*c7ca977eSAlexander Kabaev as_ln_s=ln 215*c7ca977eSAlexander Kabaevelse 216*c7ca977eSAlexander Kabaev as_ln_s='cp -p' 217*c7ca977eSAlexander Kabaevfi 218*c7ca977eSAlexander Kabaevrm -f conf$$ conf$$.exe conf$$.file 219*c7ca977eSAlexander Kabaev 220*c7ca977eSAlexander Kabaevif mkdir -p . 2>/dev/null; then 221*c7ca977eSAlexander Kabaev as_mkdir_p=: 222*c7ca977eSAlexander Kabaevelse 223*c7ca977eSAlexander Kabaev test -d ./-p && rmdir ./-p 224*c7ca977eSAlexander Kabaev as_mkdir_p=false 225*c7ca977eSAlexander Kabaevfi 226*c7ca977eSAlexander Kabaev 227*c7ca977eSAlexander Kabaevas_executable_p="test -f" 228*c7ca977eSAlexander Kabaev 229*c7ca977eSAlexander Kabaev# Sed expression to map a string onto a valid CPP name. 230*c7ca977eSAlexander Kabaevas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231*c7ca977eSAlexander Kabaev 232*c7ca977eSAlexander Kabaev# Sed expression to map a string onto a valid variable name. 233*c7ca977eSAlexander Kabaevas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234*c7ca977eSAlexander Kabaev 235*c7ca977eSAlexander Kabaev 236*c7ca977eSAlexander Kabaev# IFS 237*c7ca977eSAlexander Kabaev# We need space, tab and new line, in precisely that order. 238*c7ca977eSAlexander Kabaevas_nl=' 239*c7ca977eSAlexander Kabaev' 240*c7ca977eSAlexander KabaevIFS=" $as_nl" 241*c7ca977eSAlexander Kabaev 242*c7ca977eSAlexander Kabaev# CDPATH. 243*c7ca977eSAlexander Kabaev$as_unset CDPATH 244*c7ca977eSAlexander Kabaev 245*c7ca977eSAlexander Kabaev 246*c7ca977eSAlexander Kabaev# Name of the host. 247*c7ca977eSAlexander Kabaev# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 248*c7ca977eSAlexander Kabaev# so uname gets run too. 249*c7ca977eSAlexander Kabaevac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 250*c7ca977eSAlexander Kabaev 251*c7ca977eSAlexander Kabaevexec 6>&1 252*c7ca977eSAlexander Kabaev 253*c7ca977eSAlexander Kabaev# 254*c7ca977eSAlexander Kabaev# Initializations. 255*c7ca977eSAlexander Kabaev# 256*c7ca977eSAlexander Kabaevac_default_prefix=/usr/local 257*c7ca977eSAlexander Kabaevac_config_libobj_dir=. 258*c7ca977eSAlexander Kabaevcross_compiling=no 259*c7ca977eSAlexander Kabaevsubdirs= 260*c7ca977eSAlexander KabaevMFLAGS= 261*c7ca977eSAlexander KabaevMAKEFLAGS= 262*c7ca977eSAlexander KabaevSHELL=${CONFIG_SHELL-/bin/sh} 263*c7ca977eSAlexander Kabaev 264*c7ca977eSAlexander Kabaev# Maximum number of lines to put in a shell here document. 265*c7ca977eSAlexander Kabaev# This variable seems obsolete. It should probably be removed, and 266*c7ca977eSAlexander Kabaev# only ac_max_sed_lines should be used. 267*c7ca977eSAlexander Kabaev: ${ac_max_here_lines=38} 268*c7ca977eSAlexander Kabaev 269*c7ca977eSAlexander Kabaev# Identity of this package. 270*c7ca977eSAlexander KabaevPACKAGE_NAME='cpplib' 271*c7ca977eSAlexander KabaevPACKAGE_TARNAME='cpplib' 272*c7ca977eSAlexander KabaevPACKAGE_VERSION=' ' 273*c7ca977eSAlexander KabaevPACKAGE_STRING='cpplib ' 274*c7ca977eSAlexander KabaevPACKAGE_BUGREPORT='[email protected]' 275*c7ca977eSAlexander Kabaev 276*c7ca977eSAlexander Kabaevac_unique_file="ucnid.h" 277*c7ca977eSAlexander Kabaev# Factoring default headers for most tests. 278*c7ca977eSAlexander Kabaevac_includes_default="\ 279*c7ca977eSAlexander Kabaev#include <stdio.h> 280*c7ca977eSAlexander Kabaev#if HAVE_SYS_TYPES_H 281*c7ca977eSAlexander Kabaev# include <sys/types.h> 282*c7ca977eSAlexander Kabaev#endif 283*c7ca977eSAlexander Kabaev#if HAVE_SYS_STAT_H 284*c7ca977eSAlexander Kabaev# include <sys/stat.h> 285*c7ca977eSAlexander Kabaev#endif 286*c7ca977eSAlexander Kabaev#if STDC_HEADERS 287*c7ca977eSAlexander Kabaev# include <stdlib.h> 288*c7ca977eSAlexander Kabaev# include <stddef.h> 289*c7ca977eSAlexander Kabaev#else 290*c7ca977eSAlexander Kabaev# if HAVE_STDLIB_H 291*c7ca977eSAlexander Kabaev# include <stdlib.h> 292*c7ca977eSAlexander Kabaev# endif 293*c7ca977eSAlexander Kabaev#endif 294*c7ca977eSAlexander Kabaev#if HAVE_STRING_H 295*c7ca977eSAlexander Kabaev# if !STDC_HEADERS && HAVE_MEMORY_H 296*c7ca977eSAlexander Kabaev# include <memory.h> 297*c7ca977eSAlexander Kabaev# endif 298*c7ca977eSAlexander Kabaev# include <string.h> 299*c7ca977eSAlexander Kabaev#endif 300*c7ca977eSAlexander Kabaev#if HAVE_STRINGS_H 301*c7ca977eSAlexander Kabaev# include <strings.h> 302*c7ca977eSAlexander Kabaev#endif 303*c7ca977eSAlexander Kabaev#if HAVE_INTTYPES_H 304*c7ca977eSAlexander Kabaev# include <inttypes.h> 305*c7ca977eSAlexander Kabaev#else 306*c7ca977eSAlexander Kabaev# if HAVE_STDINT_H 307*c7ca977eSAlexander Kabaev# include <stdint.h> 308*c7ca977eSAlexander Kabaev# endif 309*c7ca977eSAlexander Kabaev#endif 310*c7ca977eSAlexander Kabaev#if HAVE_UNISTD_H 311*c7ca977eSAlexander Kabaev# include <unistd.h> 312*c7ca977eSAlexander Kabaev#endif" 313*c7ca977eSAlexander Kabaev 314*c7ca977eSAlexander Kabaevac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB ACLOCAL AUTOCONF AUTOHEADER WARN_CFLAGS WARN_PEDANTIC WERROR am__leading_dot DEPDIR CCDEPMODE CPP EGREP LIBOBJS ALLOCA USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT LIBICONV LTLIBICONV PACKAGE USED_CATALOGS MAINT LTLIBOBJS' 315*c7ca977eSAlexander Kabaevac_subst_files='' 316*c7ca977eSAlexander Kabaev 317*c7ca977eSAlexander Kabaev# Initialize some variables set by options. 318*c7ca977eSAlexander Kabaevac_init_help= 319*c7ca977eSAlexander Kabaevac_init_version=false 320*c7ca977eSAlexander Kabaev# The variables have the same names as the options, with 321*c7ca977eSAlexander Kabaev# dashes changed to underlines. 322*c7ca977eSAlexander Kabaevcache_file=/dev/null 323*c7ca977eSAlexander Kabaevexec_prefix=NONE 324*c7ca977eSAlexander Kabaevno_create= 325*c7ca977eSAlexander Kabaevno_recursion= 326*c7ca977eSAlexander Kabaevprefix=NONE 327*c7ca977eSAlexander Kabaevprogram_prefix=NONE 328*c7ca977eSAlexander Kabaevprogram_suffix=NONE 329*c7ca977eSAlexander Kabaevprogram_transform_name=s,x,x, 330*c7ca977eSAlexander Kabaevsilent= 331*c7ca977eSAlexander Kabaevsite= 332*c7ca977eSAlexander Kabaevsrcdir= 333*c7ca977eSAlexander Kabaevverbose= 334*c7ca977eSAlexander Kabaevx_includes=NONE 335*c7ca977eSAlexander Kabaevx_libraries=NONE 336*c7ca977eSAlexander Kabaev 337*c7ca977eSAlexander Kabaev# Installation directory options. 338*c7ca977eSAlexander Kabaev# These are left unexpanded so users can "make install exec_prefix=/foo" 339*c7ca977eSAlexander Kabaev# and all the variables that are supposed to be based on exec_prefix 340*c7ca977eSAlexander Kabaev# by default will actually change. 341*c7ca977eSAlexander Kabaev# Use braces instead of parens because sh, perl, etc. also accept them. 342*c7ca977eSAlexander Kabaevbindir='${exec_prefix}/bin' 343*c7ca977eSAlexander Kabaevsbindir='${exec_prefix}/sbin' 344*c7ca977eSAlexander Kabaevlibexecdir='${exec_prefix}/libexec' 345*c7ca977eSAlexander Kabaevdatadir='${prefix}/share' 346*c7ca977eSAlexander Kabaevsysconfdir='${prefix}/etc' 347*c7ca977eSAlexander Kabaevsharedstatedir='${prefix}/com' 348*c7ca977eSAlexander Kabaevlocalstatedir='${prefix}/var' 349*c7ca977eSAlexander Kabaevlibdir='${exec_prefix}/lib' 350*c7ca977eSAlexander Kabaevincludedir='${prefix}/include' 351*c7ca977eSAlexander Kabaevoldincludedir='/usr/include' 352*c7ca977eSAlexander Kabaevinfodir='${prefix}/info' 353*c7ca977eSAlexander Kabaevmandir='${prefix}/man' 354*c7ca977eSAlexander Kabaev 355*c7ca977eSAlexander Kabaevac_prev= 356*c7ca977eSAlexander Kabaevfor ac_option 357*c7ca977eSAlexander Kabaevdo 358*c7ca977eSAlexander Kabaev # If the previous option needs an argument, assign it. 359*c7ca977eSAlexander Kabaev if test -n "$ac_prev"; then 360*c7ca977eSAlexander Kabaev eval "$ac_prev=\$ac_option" 361*c7ca977eSAlexander Kabaev ac_prev= 362*c7ca977eSAlexander Kabaev continue 363*c7ca977eSAlexander Kabaev fi 364*c7ca977eSAlexander Kabaev 365*c7ca977eSAlexander Kabaev ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 366*c7ca977eSAlexander Kabaev 367*c7ca977eSAlexander Kabaev # Accept the important Cygnus configure options, so we can diagnose typos. 368*c7ca977eSAlexander Kabaev 369*c7ca977eSAlexander Kabaev case $ac_option in 370*c7ca977eSAlexander Kabaev 371*c7ca977eSAlexander Kabaev -bindir | --bindir | --bindi | --bind | --bin | --bi) 372*c7ca977eSAlexander Kabaev ac_prev=bindir ;; 373*c7ca977eSAlexander Kabaev -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 374*c7ca977eSAlexander Kabaev bindir=$ac_optarg ;; 375*c7ca977eSAlexander Kabaev 376*c7ca977eSAlexander Kabaev -build | --build | --buil | --bui | --bu) 377*c7ca977eSAlexander Kabaev ac_prev=build_alias ;; 378*c7ca977eSAlexander Kabaev -build=* | --build=* | --buil=* | --bui=* | --bu=*) 379*c7ca977eSAlexander Kabaev build_alias=$ac_optarg ;; 380*c7ca977eSAlexander Kabaev 381*c7ca977eSAlexander Kabaev -cache-file | --cache-file | --cache-fil | --cache-fi \ 382*c7ca977eSAlexander Kabaev | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 383*c7ca977eSAlexander Kabaev ac_prev=cache_file ;; 384*c7ca977eSAlexander Kabaev -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 385*c7ca977eSAlexander Kabaev | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 386*c7ca977eSAlexander Kabaev cache_file=$ac_optarg ;; 387*c7ca977eSAlexander Kabaev 388*c7ca977eSAlexander Kabaev --config-cache | -C) 389*c7ca977eSAlexander Kabaev cache_file=config.cache ;; 390*c7ca977eSAlexander Kabaev 391*c7ca977eSAlexander Kabaev -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 392*c7ca977eSAlexander Kabaev ac_prev=datadir ;; 393*c7ca977eSAlexander Kabaev -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 394*c7ca977eSAlexander Kabaev | --da=*) 395*c7ca977eSAlexander Kabaev datadir=$ac_optarg ;; 396*c7ca977eSAlexander Kabaev 397*c7ca977eSAlexander Kabaev -disable-* | --disable-*) 398*c7ca977eSAlexander Kabaev ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 399*c7ca977eSAlexander Kabaev # Reject names that are not valid shell variable names. 400*c7ca977eSAlexander Kabaev expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 401*c7ca977eSAlexander Kabaev { echo "$as_me: error: invalid feature name: $ac_feature" >&2 402*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 403*c7ca977eSAlexander Kabaev ac_feature=`echo $ac_feature | sed 's/-/_/g'` 404*c7ca977eSAlexander Kabaev eval "enable_$ac_feature=no" ;; 405*c7ca977eSAlexander Kabaev 406*c7ca977eSAlexander Kabaev -enable-* | --enable-*) 407*c7ca977eSAlexander Kabaev ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 408*c7ca977eSAlexander Kabaev # Reject names that are not valid shell variable names. 409*c7ca977eSAlexander Kabaev expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 410*c7ca977eSAlexander Kabaev { echo "$as_me: error: invalid feature name: $ac_feature" >&2 411*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 412*c7ca977eSAlexander Kabaev ac_feature=`echo $ac_feature | sed 's/-/_/g'` 413*c7ca977eSAlexander Kabaev case $ac_option in 414*c7ca977eSAlexander Kabaev *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 415*c7ca977eSAlexander Kabaev *) ac_optarg=yes ;; 416*c7ca977eSAlexander Kabaev esac 417*c7ca977eSAlexander Kabaev eval "enable_$ac_feature='$ac_optarg'" ;; 418*c7ca977eSAlexander Kabaev 419*c7ca977eSAlexander Kabaev -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 420*c7ca977eSAlexander Kabaev | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 421*c7ca977eSAlexander Kabaev | --exec | --exe | --ex) 422*c7ca977eSAlexander Kabaev ac_prev=exec_prefix ;; 423*c7ca977eSAlexander Kabaev -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 424*c7ca977eSAlexander Kabaev | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 425*c7ca977eSAlexander Kabaev | --exec=* | --exe=* | --ex=*) 426*c7ca977eSAlexander Kabaev exec_prefix=$ac_optarg ;; 427*c7ca977eSAlexander Kabaev 428*c7ca977eSAlexander Kabaev -gas | --gas | --ga | --g) 429*c7ca977eSAlexander Kabaev # Obsolete; use --with-gas. 430*c7ca977eSAlexander Kabaev with_gas=yes ;; 431*c7ca977eSAlexander Kabaev 432*c7ca977eSAlexander Kabaev -help | --help | --hel | --he | -h) 433*c7ca977eSAlexander Kabaev ac_init_help=long ;; 434*c7ca977eSAlexander Kabaev -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 435*c7ca977eSAlexander Kabaev ac_init_help=recursive ;; 436*c7ca977eSAlexander Kabaev -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 437*c7ca977eSAlexander Kabaev ac_init_help=short ;; 438*c7ca977eSAlexander Kabaev 439*c7ca977eSAlexander Kabaev -host | --host | --hos | --ho) 440*c7ca977eSAlexander Kabaev ac_prev=host_alias ;; 441*c7ca977eSAlexander Kabaev -host=* | --host=* | --hos=* | --ho=*) 442*c7ca977eSAlexander Kabaev host_alias=$ac_optarg ;; 443*c7ca977eSAlexander Kabaev 444*c7ca977eSAlexander Kabaev -includedir | --includedir | --includedi | --included | --include \ 445*c7ca977eSAlexander Kabaev | --includ | --inclu | --incl | --inc) 446*c7ca977eSAlexander Kabaev ac_prev=includedir ;; 447*c7ca977eSAlexander Kabaev -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 448*c7ca977eSAlexander Kabaev | --includ=* | --inclu=* | --incl=* | --inc=*) 449*c7ca977eSAlexander Kabaev includedir=$ac_optarg ;; 450*c7ca977eSAlexander Kabaev 451*c7ca977eSAlexander Kabaev -infodir | --infodir | --infodi | --infod | --info | --inf) 452*c7ca977eSAlexander Kabaev ac_prev=infodir ;; 453*c7ca977eSAlexander Kabaev -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 454*c7ca977eSAlexander Kabaev infodir=$ac_optarg ;; 455*c7ca977eSAlexander Kabaev 456*c7ca977eSAlexander Kabaev -libdir | --libdir | --libdi | --libd) 457*c7ca977eSAlexander Kabaev ac_prev=libdir ;; 458*c7ca977eSAlexander Kabaev -libdir=* | --libdir=* | --libdi=* | --libd=*) 459*c7ca977eSAlexander Kabaev libdir=$ac_optarg ;; 460*c7ca977eSAlexander Kabaev 461*c7ca977eSAlexander Kabaev -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 462*c7ca977eSAlexander Kabaev | --libexe | --libex | --libe) 463*c7ca977eSAlexander Kabaev ac_prev=libexecdir ;; 464*c7ca977eSAlexander Kabaev -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 465*c7ca977eSAlexander Kabaev | --libexe=* | --libex=* | --libe=*) 466*c7ca977eSAlexander Kabaev libexecdir=$ac_optarg ;; 467*c7ca977eSAlexander Kabaev 468*c7ca977eSAlexander Kabaev -localstatedir | --localstatedir | --localstatedi | --localstated \ 469*c7ca977eSAlexander Kabaev | --localstate | --localstat | --localsta | --localst \ 470*c7ca977eSAlexander Kabaev | --locals | --local | --loca | --loc | --lo) 471*c7ca977eSAlexander Kabaev ac_prev=localstatedir ;; 472*c7ca977eSAlexander Kabaev -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 473*c7ca977eSAlexander Kabaev | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 474*c7ca977eSAlexander Kabaev | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 475*c7ca977eSAlexander Kabaev localstatedir=$ac_optarg ;; 476*c7ca977eSAlexander Kabaev 477*c7ca977eSAlexander Kabaev -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 478*c7ca977eSAlexander Kabaev ac_prev=mandir ;; 479*c7ca977eSAlexander Kabaev -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 480*c7ca977eSAlexander Kabaev mandir=$ac_optarg ;; 481*c7ca977eSAlexander Kabaev 482*c7ca977eSAlexander Kabaev -nfp | --nfp | --nf) 483*c7ca977eSAlexander Kabaev # Obsolete; use --without-fp. 484*c7ca977eSAlexander Kabaev with_fp=no ;; 485*c7ca977eSAlexander Kabaev 486*c7ca977eSAlexander Kabaev -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 487*c7ca977eSAlexander Kabaev | --no-cr | --no-c | -n) 488*c7ca977eSAlexander Kabaev no_create=yes ;; 489*c7ca977eSAlexander Kabaev 490*c7ca977eSAlexander Kabaev -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 491*c7ca977eSAlexander Kabaev | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 492*c7ca977eSAlexander Kabaev no_recursion=yes ;; 493*c7ca977eSAlexander Kabaev 494*c7ca977eSAlexander Kabaev -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 495*c7ca977eSAlexander Kabaev | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 496*c7ca977eSAlexander Kabaev | --oldin | --oldi | --old | --ol | --o) 497*c7ca977eSAlexander Kabaev ac_prev=oldincludedir ;; 498*c7ca977eSAlexander Kabaev -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 499*c7ca977eSAlexander Kabaev | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 500*c7ca977eSAlexander Kabaev | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 501*c7ca977eSAlexander Kabaev oldincludedir=$ac_optarg ;; 502*c7ca977eSAlexander Kabaev 503*c7ca977eSAlexander Kabaev -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 504*c7ca977eSAlexander Kabaev ac_prev=prefix ;; 505*c7ca977eSAlexander Kabaev -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 506*c7ca977eSAlexander Kabaev prefix=$ac_optarg ;; 507*c7ca977eSAlexander Kabaev 508*c7ca977eSAlexander Kabaev -program-prefix | --program-prefix | --program-prefi | --program-pref \ 509*c7ca977eSAlexander Kabaev | --program-pre | --program-pr | --program-p) 510*c7ca977eSAlexander Kabaev ac_prev=program_prefix ;; 511*c7ca977eSAlexander Kabaev -program-prefix=* | --program-prefix=* | --program-prefi=* \ 512*c7ca977eSAlexander Kabaev | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 513*c7ca977eSAlexander Kabaev program_prefix=$ac_optarg ;; 514*c7ca977eSAlexander Kabaev 515*c7ca977eSAlexander Kabaev -program-suffix | --program-suffix | --program-suffi | --program-suff \ 516*c7ca977eSAlexander Kabaev | --program-suf | --program-su | --program-s) 517*c7ca977eSAlexander Kabaev ac_prev=program_suffix ;; 518*c7ca977eSAlexander Kabaev -program-suffix=* | --program-suffix=* | --program-suffi=* \ 519*c7ca977eSAlexander Kabaev | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 520*c7ca977eSAlexander Kabaev program_suffix=$ac_optarg ;; 521*c7ca977eSAlexander Kabaev 522*c7ca977eSAlexander Kabaev -program-transform-name | --program-transform-name \ 523*c7ca977eSAlexander Kabaev | --program-transform-nam | --program-transform-na \ 524*c7ca977eSAlexander Kabaev | --program-transform-n | --program-transform- \ 525*c7ca977eSAlexander Kabaev | --program-transform | --program-transfor \ 526*c7ca977eSAlexander Kabaev | --program-transfo | --program-transf \ 527*c7ca977eSAlexander Kabaev | --program-trans | --program-tran \ 528*c7ca977eSAlexander Kabaev | --progr-tra | --program-tr | --program-t) 529*c7ca977eSAlexander Kabaev ac_prev=program_transform_name ;; 530*c7ca977eSAlexander Kabaev -program-transform-name=* | --program-transform-name=* \ 531*c7ca977eSAlexander Kabaev | --program-transform-nam=* | --program-transform-na=* \ 532*c7ca977eSAlexander Kabaev | --program-transform-n=* | --program-transform-=* \ 533*c7ca977eSAlexander Kabaev | --program-transform=* | --program-transfor=* \ 534*c7ca977eSAlexander Kabaev | --program-transfo=* | --program-transf=* \ 535*c7ca977eSAlexander Kabaev | --program-trans=* | --program-tran=* \ 536*c7ca977eSAlexander Kabaev | --progr-tra=* | --program-tr=* | --program-t=*) 537*c7ca977eSAlexander Kabaev program_transform_name=$ac_optarg ;; 538*c7ca977eSAlexander Kabaev 539*c7ca977eSAlexander Kabaev -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 540*c7ca977eSAlexander Kabaev | -silent | --silent | --silen | --sile | --sil) 541*c7ca977eSAlexander Kabaev silent=yes ;; 542*c7ca977eSAlexander Kabaev 543*c7ca977eSAlexander Kabaev -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 544*c7ca977eSAlexander Kabaev ac_prev=sbindir ;; 545*c7ca977eSAlexander Kabaev -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 546*c7ca977eSAlexander Kabaev | --sbi=* | --sb=*) 547*c7ca977eSAlexander Kabaev sbindir=$ac_optarg ;; 548*c7ca977eSAlexander Kabaev 549*c7ca977eSAlexander Kabaev -sharedstatedir | --sharedstatedir | --sharedstatedi \ 550*c7ca977eSAlexander Kabaev | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 551*c7ca977eSAlexander Kabaev | --sharedst | --shareds | --shared | --share | --shar \ 552*c7ca977eSAlexander Kabaev | --sha | --sh) 553*c7ca977eSAlexander Kabaev ac_prev=sharedstatedir ;; 554*c7ca977eSAlexander Kabaev -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 555*c7ca977eSAlexander Kabaev | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 556*c7ca977eSAlexander Kabaev | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 557*c7ca977eSAlexander Kabaev | --sha=* | --sh=*) 558*c7ca977eSAlexander Kabaev sharedstatedir=$ac_optarg ;; 559*c7ca977eSAlexander Kabaev 560*c7ca977eSAlexander Kabaev -site | --site | --sit) 561*c7ca977eSAlexander Kabaev ac_prev=site ;; 562*c7ca977eSAlexander Kabaev -site=* | --site=* | --sit=*) 563*c7ca977eSAlexander Kabaev site=$ac_optarg ;; 564*c7ca977eSAlexander Kabaev 565*c7ca977eSAlexander Kabaev -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 566*c7ca977eSAlexander Kabaev ac_prev=srcdir ;; 567*c7ca977eSAlexander Kabaev -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 568*c7ca977eSAlexander Kabaev srcdir=$ac_optarg ;; 569*c7ca977eSAlexander Kabaev 570*c7ca977eSAlexander Kabaev -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 571*c7ca977eSAlexander Kabaev | --syscon | --sysco | --sysc | --sys | --sy) 572*c7ca977eSAlexander Kabaev ac_prev=sysconfdir ;; 573*c7ca977eSAlexander Kabaev -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 574*c7ca977eSAlexander Kabaev | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 575*c7ca977eSAlexander Kabaev sysconfdir=$ac_optarg ;; 576*c7ca977eSAlexander Kabaev 577*c7ca977eSAlexander Kabaev -target | --target | --targe | --targ | --tar | --ta | --t) 578*c7ca977eSAlexander Kabaev ac_prev=target_alias ;; 579*c7ca977eSAlexander Kabaev -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 580*c7ca977eSAlexander Kabaev target_alias=$ac_optarg ;; 581*c7ca977eSAlexander Kabaev 582*c7ca977eSAlexander Kabaev -v | -verbose | --verbose | --verbos | --verbo | --verb) 583*c7ca977eSAlexander Kabaev verbose=yes ;; 584*c7ca977eSAlexander Kabaev 585*c7ca977eSAlexander Kabaev -version | --version | --versio | --versi | --vers | -V) 586*c7ca977eSAlexander Kabaev ac_init_version=: ;; 587*c7ca977eSAlexander Kabaev 588*c7ca977eSAlexander Kabaev -with-* | --with-*) 589*c7ca977eSAlexander Kabaev ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 590*c7ca977eSAlexander Kabaev # Reject names that are not valid shell variable names. 591*c7ca977eSAlexander Kabaev expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 592*c7ca977eSAlexander Kabaev { echo "$as_me: error: invalid package name: $ac_package" >&2 593*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 594*c7ca977eSAlexander Kabaev ac_package=`echo $ac_package| sed 's/-/_/g'` 595*c7ca977eSAlexander Kabaev case $ac_option in 596*c7ca977eSAlexander Kabaev *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 597*c7ca977eSAlexander Kabaev *) ac_optarg=yes ;; 598*c7ca977eSAlexander Kabaev esac 599*c7ca977eSAlexander Kabaev eval "with_$ac_package='$ac_optarg'" ;; 600*c7ca977eSAlexander Kabaev 601*c7ca977eSAlexander Kabaev -without-* | --without-*) 602*c7ca977eSAlexander Kabaev ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 603*c7ca977eSAlexander Kabaev # Reject names that are not valid shell variable names. 604*c7ca977eSAlexander Kabaev expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 605*c7ca977eSAlexander Kabaev { echo "$as_me: error: invalid package name: $ac_package" >&2 606*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 607*c7ca977eSAlexander Kabaev ac_package=`echo $ac_package | sed 's/-/_/g'` 608*c7ca977eSAlexander Kabaev eval "with_$ac_package=no" ;; 609*c7ca977eSAlexander Kabaev 610*c7ca977eSAlexander Kabaev --x) 611*c7ca977eSAlexander Kabaev # Obsolete; use --with-x. 612*c7ca977eSAlexander Kabaev with_x=yes ;; 613*c7ca977eSAlexander Kabaev 614*c7ca977eSAlexander Kabaev -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 615*c7ca977eSAlexander Kabaev | --x-incl | --x-inc | --x-in | --x-i) 616*c7ca977eSAlexander Kabaev ac_prev=x_includes ;; 617*c7ca977eSAlexander Kabaev -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 618*c7ca977eSAlexander Kabaev | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 619*c7ca977eSAlexander Kabaev x_includes=$ac_optarg ;; 620*c7ca977eSAlexander Kabaev 621*c7ca977eSAlexander Kabaev -x-libraries | --x-libraries | --x-librarie | --x-librari \ 622*c7ca977eSAlexander Kabaev | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 623*c7ca977eSAlexander Kabaev ac_prev=x_libraries ;; 624*c7ca977eSAlexander Kabaev -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 625*c7ca977eSAlexander Kabaev | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 626*c7ca977eSAlexander Kabaev x_libraries=$ac_optarg ;; 627*c7ca977eSAlexander Kabaev 628*c7ca977eSAlexander Kabaev -*) { echo "$as_me: error: unrecognized option: $ac_option 629*c7ca977eSAlexander KabaevTry \`$0 --help' for more information." >&2 630*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 631*c7ca977eSAlexander Kabaev ;; 632*c7ca977eSAlexander Kabaev 633*c7ca977eSAlexander Kabaev *=*) 634*c7ca977eSAlexander Kabaev ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 635*c7ca977eSAlexander Kabaev # Reject names that are not valid shell variable names. 636*c7ca977eSAlexander Kabaev expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 637*c7ca977eSAlexander Kabaev { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 638*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 639*c7ca977eSAlexander Kabaev ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 640*c7ca977eSAlexander Kabaev eval "$ac_envvar='$ac_optarg'" 641*c7ca977eSAlexander Kabaev export $ac_envvar ;; 642*c7ca977eSAlexander Kabaev 643*c7ca977eSAlexander Kabaev *) 644*c7ca977eSAlexander Kabaev # FIXME: should be removed in autoconf 3.0. 645*c7ca977eSAlexander Kabaev echo "$as_me: WARNING: you should use --build, --host, --target" >&2 646*c7ca977eSAlexander Kabaev expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 647*c7ca977eSAlexander Kabaev echo "$as_me: WARNING: invalid host type: $ac_option" >&2 648*c7ca977eSAlexander Kabaev : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 649*c7ca977eSAlexander Kabaev ;; 650*c7ca977eSAlexander Kabaev 651*c7ca977eSAlexander Kabaev esac 652*c7ca977eSAlexander Kabaevdone 653*c7ca977eSAlexander Kabaev 654*c7ca977eSAlexander Kabaevif test -n "$ac_prev"; then 655*c7ca977eSAlexander Kabaev ac_option=--`echo $ac_prev | sed 's/_/-/g'` 656*c7ca977eSAlexander Kabaev { echo "$as_me: error: missing argument to $ac_option" >&2 657*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 658*c7ca977eSAlexander Kabaevfi 659*c7ca977eSAlexander Kabaev 660*c7ca977eSAlexander Kabaev# Be sure to have absolute paths. 661*c7ca977eSAlexander Kabaevfor ac_var in exec_prefix prefix 662*c7ca977eSAlexander Kabaevdo 663*c7ca977eSAlexander Kabaev eval ac_val=$`echo $ac_var` 664*c7ca977eSAlexander Kabaev case $ac_val in 665*c7ca977eSAlexander Kabaev [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 666*c7ca977eSAlexander Kabaev *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 667*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; };; 668*c7ca977eSAlexander Kabaev esac 669*c7ca977eSAlexander Kabaevdone 670*c7ca977eSAlexander Kabaev 671*c7ca977eSAlexander Kabaev# Be sure to have absolute paths. 672*c7ca977eSAlexander Kabaevfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 673*c7ca977eSAlexander Kabaev localstatedir libdir includedir oldincludedir infodir mandir 674*c7ca977eSAlexander Kabaevdo 675*c7ca977eSAlexander Kabaev eval ac_val=$`echo $ac_var` 676*c7ca977eSAlexander Kabaev case $ac_val in 677*c7ca977eSAlexander Kabaev [\\/$]* | ?:[\\/]* ) ;; 678*c7ca977eSAlexander Kabaev *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 679*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; };; 680*c7ca977eSAlexander Kabaev esac 681*c7ca977eSAlexander Kabaevdone 682*c7ca977eSAlexander Kabaev 683*c7ca977eSAlexander Kabaev# There might be people who depend on the old broken behavior: `$host' 684*c7ca977eSAlexander Kabaev# used to hold the argument of --host etc. 685*c7ca977eSAlexander Kabaev# FIXME: To remove some day. 686*c7ca977eSAlexander Kabaevbuild=$build_alias 687*c7ca977eSAlexander Kabaevhost=$host_alias 688*c7ca977eSAlexander Kabaevtarget=$target_alias 689*c7ca977eSAlexander Kabaev 690*c7ca977eSAlexander Kabaev# FIXME: To remove some day. 691*c7ca977eSAlexander Kabaevif test "x$host_alias" != x; then 692*c7ca977eSAlexander Kabaev if test "x$build_alias" = x; then 693*c7ca977eSAlexander Kabaev cross_compiling=maybe 694*c7ca977eSAlexander Kabaev echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 695*c7ca977eSAlexander Kabaev If a cross compiler is detected then cross compile mode will be used." >&2 696*c7ca977eSAlexander Kabaev elif test "x$build_alias" != "x$host_alias"; then 697*c7ca977eSAlexander Kabaev cross_compiling=yes 698*c7ca977eSAlexander Kabaev fi 699*c7ca977eSAlexander Kabaevfi 700*c7ca977eSAlexander Kabaev 701*c7ca977eSAlexander Kabaevac_tool_prefix= 702*c7ca977eSAlexander Kabaevtest -n "$host_alias" && ac_tool_prefix=$host_alias- 703*c7ca977eSAlexander Kabaev 704*c7ca977eSAlexander Kabaevtest "$silent" = yes && exec 6>/dev/null 705*c7ca977eSAlexander Kabaev 706*c7ca977eSAlexander Kabaev 707*c7ca977eSAlexander Kabaev# Find the source files, if location was not specified. 708*c7ca977eSAlexander Kabaevif test -z "$srcdir"; then 709*c7ca977eSAlexander Kabaev ac_srcdir_defaulted=yes 710*c7ca977eSAlexander Kabaev # Try the directory containing this script, then its parent. 711*c7ca977eSAlexander Kabaev ac_confdir=`(dirname "$0") 2>/dev/null || 712*c7ca977eSAlexander Kabaev$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 713*c7ca977eSAlexander Kabaev X"$0" : 'X\(//\)[^/]' \| \ 714*c7ca977eSAlexander Kabaev X"$0" : 'X\(//\)$' \| \ 715*c7ca977eSAlexander Kabaev X"$0" : 'X\(/\)' \| \ 716*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 717*c7ca977eSAlexander Kabaevecho X"$0" | 718*c7ca977eSAlexander Kabaev sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 719*c7ca977eSAlexander Kabaev /^X\(\/\/\)[^/].*/{ s//\1/; q; } 720*c7ca977eSAlexander Kabaev /^X\(\/\/\)$/{ s//\1/; q; } 721*c7ca977eSAlexander Kabaev /^X\(\/\).*/{ s//\1/; q; } 722*c7ca977eSAlexander Kabaev s/.*/./; q'` 723*c7ca977eSAlexander Kabaev srcdir=$ac_confdir 724*c7ca977eSAlexander Kabaev if test ! -r $srcdir/$ac_unique_file; then 725*c7ca977eSAlexander Kabaev srcdir=.. 726*c7ca977eSAlexander Kabaev fi 727*c7ca977eSAlexander Kabaevelse 728*c7ca977eSAlexander Kabaev ac_srcdir_defaulted=no 729*c7ca977eSAlexander Kabaevfi 730*c7ca977eSAlexander Kabaevif test ! -r $srcdir/$ac_unique_file; then 731*c7ca977eSAlexander Kabaev if test "$ac_srcdir_defaulted" = yes; then 732*c7ca977eSAlexander Kabaev { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 733*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 734*c7ca977eSAlexander Kabaev else 735*c7ca977eSAlexander Kabaev { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 736*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 737*c7ca977eSAlexander Kabaev fi 738*c7ca977eSAlexander Kabaevfi 739*c7ca977eSAlexander Kabaev(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 740*c7ca977eSAlexander Kabaev { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 741*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 742*c7ca977eSAlexander Kabaevsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 743*c7ca977eSAlexander Kabaevac_env_build_alias_set=${build_alias+set} 744*c7ca977eSAlexander Kabaevac_env_build_alias_value=$build_alias 745*c7ca977eSAlexander Kabaevac_cv_env_build_alias_set=${build_alias+set} 746*c7ca977eSAlexander Kabaevac_cv_env_build_alias_value=$build_alias 747*c7ca977eSAlexander Kabaevac_env_host_alias_set=${host_alias+set} 748*c7ca977eSAlexander Kabaevac_env_host_alias_value=$host_alias 749*c7ca977eSAlexander Kabaevac_cv_env_host_alias_set=${host_alias+set} 750*c7ca977eSAlexander Kabaevac_cv_env_host_alias_value=$host_alias 751*c7ca977eSAlexander Kabaevac_env_target_alias_set=${target_alias+set} 752*c7ca977eSAlexander Kabaevac_env_target_alias_value=$target_alias 753*c7ca977eSAlexander Kabaevac_cv_env_target_alias_set=${target_alias+set} 754*c7ca977eSAlexander Kabaevac_cv_env_target_alias_value=$target_alias 755*c7ca977eSAlexander Kabaevac_env_CC_set=${CC+set} 756*c7ca977eSAlexander Kabaevac_env_CC_value=$CC 757*c7ca977eSAlexander Kabaevac_cv_env_CC_set=${CC+set} 758*c7ca977eSAlexander Kabaevac_cv_env_CC_value=$CC 759*c7ca977eSAlexander Kabaevac_env_CFLAGS_set=${CFLAGS+set} 760*c7ca977eSAlexander Kabaevac_env_CFLAGS_value=$CFLAGS 761*c7ca977eSAlexander Kabaevac_cv_env_CFLAGS_set=${CFLAGS+set} 762*c7ca977eSAlexander Kabaevac_cv_env_CFLAGS_value=$CFLAGS 763*c7ca977eSAlexander Kabaevac_env_LDFLAGS_set=${LDFLAGS+set} 764*c7ca977eSAlexander Kabaevac_env_LDFLAGS_value=$LDFLAGS 765*c7ca977eSAlexander Kabaevac_cv_env_LDFLAGS_set=${LDFLAGS+set} 766*c7ca977eSAlexander Kabaevac_cv_env_LDFLAGS_value=$LDFLAGS 767*c7ca977eSAlexander Kabaevac_env_CPPFLAGS_set=${CPPFLAGS+set} 768*c7ca977eSAlexander Kabaevac_env_CPPFLAGS_value=$CPPFLAGS 769*c7ca977eSAlexander Kabaevac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 770*c7ca977eSAlexander Kabaevac_cv_env_CPPFLAGS_value=$CPPFLAGS 771*c7ca977eSAlexander Kabaevac_env_CPP_set=${CPP+set} 772*c7ca977eSAlexander Kabaevac_env_CPP_value=$CPP 773*c7ca977eSAlexander Kabaevac_cv_env_CPP_set=${CPP+set} 774*c7ca977eSAlexander Kabaevac_cv_env_CPP_value=$CPP 775*c7ca977eSAlexander Kabaev 776*c7ca977eSAlexander Kabaev# 777*c7ca977eSAlexander Kabaev# Report the --help message. 778*c7ca977eSAlexander Kabaev# 779*c7ca977eSAlexander Kabaevif test "$ac_init_help" = "long"; then 780*c7ca977eSAlexander Kabaev # Omit some internal or obsolete options to make the list less imposing. 781*c7ca977eSAlexander Kabaev # This message is too long to be a string in the A/UX 3.1 sh. 782*c7ca977eSAlexander Kabaev cat <<_ACEOF 783*c7ca977eSAlexander Kabaev\`configure' configures cpplib to adapt to many kinds of systems. 784*c7ca977eSAlexander Kabaev 785*c7ca977eSAlexander KabaevUsage: $0 [OPTION]... [VAR=VALUE]... 786*c7ca977eSAlexander Kabaev 787*c7ca977eSAlexander KabaevTo assign environment variables (e.g., CC, CFLAGS...), specify them as 788*c7ca977eSAlexander KabaevVAR=VALUE. See below for descriptions of some of the useful variables. 789*c7ca977eSAlexander Kabaev 790*c7ca977eSAlexander KabaevDefaults for the options are specified in brackets. 791*c7ca977eSAlexander Kabaev 792*c7ca977eSAlexander KabaevConfiguration: 793*c7ca977eSAlexander Kabaev -h, --help display this help and exit 794*c7ca977eSAlexander Kabaev --help=short display options specific to this package 795*c7ca977eSAlexander Kabaev --help=recursive display the short help of all the included packages 796*c7ca977eSAlexander Kabaev -V, --version display version information and exit 797*c7ca977eSAlexander Kabaev -q, --quiet, --silent do not print \`checking...' messages 798*c7ca977eSAlexander Kabaev --cache-file=FILE cache test results in FILE [disabled] 799*c7ca977eSAlexander Kabaev -C, --config-cache alias for \`--cache-file=config.cache' 800*c7ca977eSAlexander Kabaev -n, --no-create do not create output files 801*c7ca977eSAlexander Kabaev --srcdir=DIR find the sources in DIR [configure dir or \`..'] 802*c7ca977eSAlexander Kabaev 803*c7ca977eSAlexander Kabaev_ACEOF 804*c7ca977eSAlexander Kabaev 805*c7ca977eSAlexander Kabaev cat <<_ACEOF 806*c7ca977eSAlexander KabaevInstallation directories: 807*c7ca977eSAlexander Kabaev --prefix=PREFIX install architecture-independent files in PREFIX 808*c7ca977eSAlexander Kabaev [$ac_default_prefix] 809*c7ca977eSAlexander Kabaev --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 810*c7ca977eSAlexander Kabaev [PREFIX] 811*c7ca977eSAlexander Kabaev 812*c7ca977eSAlexander KabaevBy default, \`make install' will install all the files in 813*c7ca977eSAlexander Kabaev\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 814*c7ca977eSAlexander Kabaevan installation prefix other than \`$ac_default_prefix' using \`--prefix', 815*c7ca977eSAlexander Kabaevfor instance \`--prefix=\$HOME'. 816*c7ca977eSAlexander Kabaev 817*c7ca977eSAlexander KabaevFor better control, use the options below. 818*c7ca977eSAlexander Kabaev 819*c7ca977eSAlexander KabaevFine tuning of the installation directories: 820*c7ca977eSAlexander Kabaev --bindir=DIR user executables [EPREFIX/bin] 821*c7ca977eSAlexander Kabaev --sbindir=DIR system admin executables [EPREFIX/sbin] 822*c7ca977eSAlexander Kabaev --libexecdir=DIR program executables [EPREFIX/libexec] 823*c7ca977eSAlexander Kabaev --datadir=DIR read-only architecture-independent data [PREFIX/share] 824*c7ca977eSAlexander Kabaev --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 825*c7ca977eSAlexander Kabaev --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 826*c7ca977eSAlexander Kabaev --localstatedir=DIR modifiable single-machine data [PREFIX/var] 827*c7ca977eSAlexander Kabaev --libdir=DIR object code libraries [EPREFIX/lib] 828*c7ca977eSAlexander Kabaev --includedir=DIR C header files [PREFIX/include] 829*c7ca977eSAlexander Kabaev --oldincludedir=DIR C header files for non-gcc [/usr/include] 830*c7ca977eSAlexander Kabaev --infodir=DIR info documentation [PREFIX/info] 831*c7ca977eSAlexander Kabaev --mandir=DIR man documentation [PREFIX/man] 832*c7ca977eSAlexander Kabaev_ACEOF 833*c7ca977eSAlexander Kabaev 834*c7ca977eSAlexander Kabaev cat <<\_ACEOF 835*c7ca977eSAlexander Kabaev 836*c7ca977eSAlexander KabaevSystem types: 837*c7ca977eSAlexander Kabaev --build=BUILD configure for building on BUILD [guessed] 838*c7ca977eSAlexander Kabaev --host=HOST cross-compile to build programs to run on HOST [BUILD] 839*c7ca977eSAlexander Kabaev --target=TARGET configure for building compilers for TARGET [HOST] 840*c7ca977eSAlexander Kabaev_ACEOF 841*c7ca977eSAlexander Kabaevfi 842*c7ca977eSAlexander Kabaev 843*c7ca977eSAlexander Kabaevif test -n "$ac_init_help"; then 844*c7ca977eSAlexander Kabaev case $ac_init_help in 845*c7ca977eSAlexander Kabaev short | recursive ) echo "Configuration of cpplib :";; 846*c7ca977eSAlexander Kabaev esac 847*c7ca977eSAlexander Kabaev cat <<\_ACEOF 848*c7ca977eSAlexander Kabaev 849*c7ca977eSAlexander KabaevOptional Features: 850*c7ca977eSAlexander Kabaev --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 851*c7ca977eSAlexander Kabaev --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 852*c7ca977eSAlexander Kabaev --enable-werror-always enable -Werror despite compiler version 853*c7ca977eSAlexander Kabaev --disable-rpath do not hardcode runtime library paths 854*c7ca977eSAlexander Kabaev --enable-maintainer-mode enable rules only needed by maintainers 855*c7ca977eSAlexander Kabaev --enable-checking enable expensive run-time checks 856*c7ca977eSAlexander Kabaev 857*c7ca977eSAlexander KabaevOptional Packages: 858*c7ca977eSAlexander Kabaev --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 859*c7ca977eSAlexander Kabaev --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 860*c7ca977eSAlexander Kabaev --with-gnu-ld assume the C compiler uses GNU ld default=no 861*c7ca977eSAlexander Kabaev --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 862*c7ca977eSAlexander Kabaev --without-libiconv-prefix don't search for libiconv in includedir and libdir 863*c7ca977eSAlexander Kabaev 864*c7ca977eSAlexander KabaevSome influential environment variables: 865*c7ca977eSAlexander Kabaev CC C compiler command 866*c7ca977eSAlexander Kabaev CFLAGS C compiler flags 867*c7ca977eSAlexander Kabaev LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 868*c7ca977eSAlexander Kabaev nonstandard directory <lib dir> 869*c7ca977eSAlexander Kabaev CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 870*c7ca977eSAlexander Kabaev headers in a nonstandard directory <include dir> 871*c7ca977eSAlexander Kabaev CPP C preprocessor 872*c7ca977eSAlexander Kabaev 873*c7ca977eSAlexander KabaevUse these variables to override the choices made by `configure' or to help 874*c7ca977eSAlexander Kabaevit to find libraries and programs with nonstandard names/locations. 875*c7ca977eSAlexander Kabaev 876*c7ca977eSAlexander KabaevReport bugs to <gcc-bugs@gcc.gnu.org>. 877*c7ca977eSAlexander Kabaev_ACEOF 878*c7ca977eSAlexander Kabaevfi 879*c7ca977eSAlexander Kabaev 880*c7ca977eSAlexander Kabaevif test "$ac_init_help" = "recursive"; then 881*c7ca977eSAlexander Kabaev # If there are subdirs, report their specific --help. 882*c7ca977eSAlexander Kabaev ac_popdir=`pwd` 883*c7ca977eSAlexander Kabaev for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 884*c7ca977eSAlexander Kabaev test -d $ac_dir || continue 885*c7ca977eSAlexander Kabaev ac_builddir=. 886*c7ca977eSAlexander Kabaev 887*c7ca977eSAlexander Kabaevif test "$ac_dir" != .; then 888*c7ca977eSAlexander Kabaev ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 889*c7ca977eSAlexander Kabaev # A "../" for each directory in $ac_dir_suffix. 890*c7ca977eSAlexander Kabaev ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 891*c7ca977eSAlexander Kabaevelse 892*c7ca977eSAlexander Kabaev ac_dir_suffix= ac_top_builddir= 893*c7ca977eSAlexander Kabaevfi 894*c7ca977eSAlexander Kabaev 895*c7ca977eSAlexander Kabaevcase $srcdir in 896*c7ca977eSAlexander Kabaev .) # No --srcdir option. We are building in place. 897*c7ca977eSAlexander Kabaev ac_srcdir=. 898*c7ca977eSAlexander Kabaev if test -z "$ac_top_builddir"; then 899*c7ca977eSAlexander Kabaev ac_top_srcdir=. 900*c7ca977eSAlexander Kabaev else 901*c7ca977eSAlexander Kabaev ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 902*c7ca977eSAlexander Kabaev fi ;; 903*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) # Absolute path. 904*c7ca977eSAlexander Kabaev ac_srcdir=$srcdir$ac_dir_suffix; 905*c7ca977eSAlexander Kabaev ac_top_srcdir=$srcdir ;; 906*c7ca977eSAlexander Kabaev *) # Relative path. 907*c7ca977eSAlexander Kabaev ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 908*c7ca977eSAlexander Kabaev ac_top_srcdir=$ac_top_builddir$srcdir ;; 909*c7ca977eSAlexander Kabaevesac 910*c7ca977eSAlexander Kabaev 911*c7ca977eSAlexander Kabaev# Do not use `cd foo && pwd` to compute absolute paths, because 912*c7ca977eSAlexander Kabaev# the directories may not exist. 913*c7ca977eSAlexander Kabaevcase `pwd` in 914*c7ca977eSAlexander Kabaev.) ac_abs_builddir="$ac_dir";; 915*c7ca977eSAlexander Kabaev*) 916*c7ca977eSAlexander Kabaev case "$ac_dir" in 917*c7ca977eSAlexander Kabaev .) ac_abs_builddir=`pwd`;; 918*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 919*c7ca977eSAlexander Kabaev *) ac_abs_builddir=`pwd`/"$ac_dir";; 920*c7ca977eSAlexander Kabaev esac;; 921*c7ca977eSAlexander Kabaevesac 922*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 923*c7ca977eSAlexander Kabaev.) ac_abs_top_builddir=${ac_top_builddir}.;; 924*c7ca977eSAlexander Kabaev*) 925*c7ca977eSAlexander Kabaev case ${ac_top_builddir}. in 926*c7ca977eSAlexander Kabaev .) ac_abs_top_builddir=$ac_abs_builddir;; 927*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 928*c7ca977eSAlexander Kabaev *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 929*c7ca977eSAlexander Kabaev esac;; 930*c7ca977eSAlexander Kabaevesac 931*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 932*c7ca977eSAlexander Kabaev.) ac_abs_srcdir=$ac_srcdir;; 933*c7ca977eSAlexander Kabaev*) 934*c7ca977eSAlexander Kabaev case $ac_srcdir in 935*c7ca977eSAlexander Kabaev .) ac_abs_srcdir=$ac_abs_builddir;; 936*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 937*c7ca977eSAlexander Kabaev *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 938*c7ca977eSAlexander Kabaev esac;; 939*c7ca977eSAlexander Kabaevesac 940*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 941*c7ca977eSAlexander Kabaev.) ac_abs_top_srcdir=$ac_top_srcdir;; 942*c7ca977eSAlexander Kabaev*) 943*c7ca977eSAlexander Kabaev case $ac_top_srcdir in 944*c7ca977eSAlexander Kabaev .) ac_abs_top_srcdir=$ac_abs_builddir;; 945*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 946*c7ca977eSAlexander Kabaev *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 947*c7ca977eSAlexander Kabaev esac;; 948*c7ca977eSAlexander Kabaevesac 949*c7ca977eSAlexander Kabaev 950*c7ca977eSAlexander Kabaev cd $ac_dir 951*c7ca977eSAlexander Kabaev # Check for guested configure; otherwise get Cygnus style configure. 952*c7ca977eSAlexander Kabaev if test -f $ac_srcdir/configure.gnu; then 953*c7ca977eSAlexander Kabaev echo 954*c7ca977eSAlexander Kabaev $SHELL $ac_srcdir/configure.gnu --help=recursive 955*c7ca977eSAlexander Kabaev elif test -f $ac_srcdir/configure; then 956*c7ca977eSAlexander Kabaev echo 957*c7ca977eSAlexander Kabaev $SHELL $ac_srcdir/configure --help=recursive 958*c7ca977eSAlexander Kabaev elif test -f $ac_srcdir/configure.ac || 959*c7ca977eSAlexander Kabaev test -f $ac_srcdir/configure.in; then 960*c7ca977eSAlexander Kabaev echo 961*c7ca977eSAlexander Kabaev $ac_configure --help 962*c7ca977eSAlexander Kabaev else 963*c7ca977eSAlexander Kabaev echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 964*c7ca977eSAlexander Kabaev fi 965*c7ca977eSAlexander Kabaev cd $ac_popdir 966*c7ca977eSAlexander Kabaev done 967*c7ca977eSAlexander Kabaevfi 968*c7ca977eSAlexander Kabaev 969*c7ca977eSAlexander Kabaevtest -n "$ac_init_help" && exit 0 970*c7ca977eSAlexander Kabaevif $ac_init_version; then 971*c7ca977eSAlexander Kabaev cat <<\_ACEOF 972*c7ca977eSAlexander Kabaevcpplib configure 973*c7ca977eSAlexander Kabaevgenerated by GNU Autoconf 2.59 974*c7ca977eSAlexander Kabaev 975*c7ca977eSAlexander KabaevCopyright (C) 2003 Free Software Foundation, Inc. 976*c7ca977eSAlexander KabaevThis configure script is free software; the Free Software Foundation 977*c7ca977eSAlexander Kabaevgives unlimited permission to copy, distribute and modify it. 978*c7ca977eSAlexander Kabaev_ACEOF 979*c7ca977eSAlexander Kabaev exit 0 980*c7ca977eSAlexander Kabaevfi 981*c7ca977eSAlexander Kabaevexec 5>config.log 982*c7ca977eSAlexander Kabaevcat >&5 <<_ACEOF 983*c7ca977eSAlexander KabaevThis file contains any messages produced by compilers while 984*c7ca977eSAlexander Kabaevrunning configure, to aid debugging if configure makes a mistake. 985*c7ca977eSAlexander Kabaev 986*c7ca977eSAlexander KabaevIt was created by cpplib $as_me , which was 987*c7ca977eSAlexander Kabaevgenerated by GNU Autoconf 2.59. Invocation command line was 988*c7ca977eSAlexander Kabaev 989*c7ca977eSAlexander Kabaev $ $0 $@ 990*c7ca977eSAlexander Kabaev 991*c7ca977eSAlexander Kabaev_ACEOF 992*c7ca977eSAlexander Kabaev{ 993*c7ca977eSAlexander Kabaevcat <<_ASUNAME 994*c7ca977eSAlexander Kabaev## --------- ## 995*c7ca977eSAlexander Kabaev## Platform. ## 996*c7ca977eSAlexander Kabaev## --------- ## 997*c7ca977eSAlexander Kabaev 998*c7ca977eSAlexander Kabaevhostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 999*c7ca977eSAlexander Kabaevuname -m = `(uname -m) 2>/dev/null || echo unknown` 1000*c7ca977eSAlexander Kabaevuname -r = `(uname -r) 2>/dev/null || echo unknown` 1001*c7ca977eSAlexander Kabaevuname -s = `(uname -s) 2>/dev/null || echo unknown` 1002*c7ca977eSAlexander Kabaevuname -v = `(uname -v) 2>/dev/null || echo unknown` 1003*c7ca977eSAlexander Kabaev 1004*c7ca977eSAlexander Kabaev/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1005*c7ca977eSAlexander Kabaev/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1006*c7ca977eSAlexander Kabaev 1007*c7ca977eSAlexander Kabaev/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1008*c7ca977eSAlexander Kabaev/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1009*c7ca977eSAlexander Kabaev/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1010*c7ca977eSAlexander Kabaevhostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1011*c7ca977eSAlexander Kabaev/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1012*c7ca977eSAlexander Kabaev/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1013*c7ca977eSAlexander Kabaev/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1014*c7ca977eSAlexander Kabaev 1015*c7ca977eSAlexander Kabaev_ASUNAME 1016*c7ca977eSAlexander Kabaev 1017*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1018*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1019*c7ca977eSAlexander Kabaevdo 1020*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1021*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1022*c7ca977eSAlexander Kabaev echo "PATH: $as_dir" 1023*c7ca977eSAlexander Kabaevdone 1024*c7ca977eSAlexander Kabaev 1025*c7ca977eSAlexander Kabaev} >&5 1026*c7ca977eSAlexander Kabaev 1027*c7ca977eSAlexander Kabaevcat >&5 <<_ACEOF 1028*c7ca977eSAlexander Kabaev 1029*c7ca977eSAlexander Kabaev 1030*c7ca977eSAlexander Kabaev## ----------- ## 1031*c7ca977eSAlexander Kabaev## Core tests. ## 1032*c7ca977eSAlexander Kabaev## ----------- ## 1033*c7ca977eSAlexander Kabaev 1034*c7ca977eSAlexander Kabaev_ACEOF 1035*c7ca977eSAlexander Kabaev 1036*c7ca977eSAlexander Kabaev 1037*c7ca977eSAlexander Kabaev# Keep a trace of the command line. 1038*c7ca977eSAlexander Kabaev# Strip out --no-create and --no-recursion so they do not pile up. 1039*c7ca977eSAlexander Kabaev# Strip out --silent because we don't want to record it for future runs. 1040*c7ca977eSAlexander Kabaev# Also quote any args containing shell meta-characters. 1041*c7ca977eSAlexander Kabaev# Make two passes to allow for proper duplicate-argument suppression. 1042*c7ca977eSAlexander Kabaevac_configure_args= 1043*c7ca977eSAlexander Kabaevac_configure_args0= 1044*c7ca977eSAlexander Kabaevac_configure_args1= 1045*c7ca977eSAlexander Kabaevac_sep= 1046*c7ca977eSAlexander Kabaevac_must_keep_next=false 1047*c7ca977eSAlexander Kabaevfor ac_pass in 1 2 1048*c7ca977eSAlexander Kabaevdo 1049*c7ca977eSAlexander Kabaev for ac_arg 1050*c7ca977eSAlexander Kabaev do 1051*c7ca977eSAlexander Kabaev case $ac_arg in 1052*c7ca977eSAlexander Kabaev -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1053*c7ca977eSAlexander Kabaev -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1054*c7ca977eSAlexander Kabaev | -silent | --silent | --silen | --sile | --sil) 1055*c7ca977eSAlexander Kabaev continue ;; 1056*c7ca977eSAlexander Kabaev *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1057*c7ca977eSAlexander Kabaev ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1058*c7ca977eSAlexander Kabaev esac 1059*c7ca977eSAlexander Kabaev case $ac_pass in 1060*c7ca977eSAlexander Kabaev 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1061*c7ca977eSAlexander Kabaev 2) 1062*c7ca977eSAlexander Kabaev ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1063*c7ca977eSAlexander Kabaev if test $ac_must_keep_next = true; then 1064*c7ca977eSAlexander Kabaev ac_must_keep_next=false # Got value, back to normal. 1065*c7ca977eSAlexander Kabaev else 1066*c7ca977eSAlexander Kabaev case $ac_arg in 1067*c7ca977eSAlexander Kabaev *=* | --config-cache | -C | -disable-* | --disable-* \ 1068*c7ca977eSAlexander Kabaev | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1069*c7ca977eSAlexander Kabaev | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1070*c7ca977eSAlexander Kabaev | -with-* | --with-* | -without-* | --without-* | --x) 1071*c7ca977eSAlexander Kabaev case "$ac_configure_args0 " in 1072*c7ca977eSAlexander Kabaev "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1073*c7ca977eSAlexander Kabaev esac 1074*c7ca977eSAlexander Kabaev ;; 1075*c7ca977eSAlexander Kabaev -* ) ac_must_keep_next=true ;; 1076*c7ca977eSAlexander Kabaev esac 1077*c7ca977eSAlexander Kabaev fi 1078*c7ca977eSAlexander Kabaev ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1079*c7ca977eSAlexander Kabaev # Get rid of the leading space. 1080*c7ca977eSAlexander Kabaev ac_sep=" " 1081*c7ca977eSAlexander Kabaev ;; 1082*c7ca977eSAlexander Kabaev esac 1083*c7ca977eSAlexander Kabaev done 1084*c7ca977eSAlexander Kabaevdone 1085*c7ca977eSAlexander Kabaev$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1086*c7ca977eSAlexander Kabaev$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1087*c7ca977eSAlexander Kabaev 1088*c7ca977eSAlexander Kabaev# When interrupted or exit'd, cleanup temporary files, and complete 1089*c7ca977eSAlexander Kabaev# config.log. We remove comments because anyway the quotes in there 1090*c7ca977eSAlexander Kabaev# would cause problems or look ugly. 1091*c7ca977eSAlexander Kabaev# WARNING: Be sure not to use single quotes in there, as some shells, 1092*c7ca977eSAlexander Kabaev# such as our DU 5.0 friend, will then `close' the trap. 1093*c7ca977eSAlexander Kabaevtrap 'exit_status=$? 1094*c7ca977eSAlexander Kabaev # Save into config.log some information that might help in debugging. 1095*c7ca977eSAlexander Kabaev { 1096*c7ca977eSAlexander Kabaev echo 1097*c7ca977eSAlexander Kabaev 1098*c7ca977eSAlexander Kabaev cat <<\_ASBOX 1099*c7ca977eSAlexander Kabaev## ---------------- ## 1100*c7ca977eSAlexander Kabaev## Cache variables. ## 1101*c7ca977eSAlexander Kabaev## ---------------- ## 1102*c7ca977eSAlexander Kabaev_ASBOX 1103*c7ca977eSAlexander Kabaev echo 1104*c7ca977eSAlexander Kabaev # The following way of writing the cache mishandles newlines in values, 1105*c7ca977eSAlexander Kabaev{ 1106*c7ca977eSAlexander Kabaev (set) 2>&1 | 1107*c7ca977eSAlexander Kabaev case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1108*c7ca977eSAlexander Kabaev *ac_space=\ *) 1109*c7ca977eSAlexander Kabaev sed -n \ 1110*c7ca977eSAlexander Kabaev "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1111*c7ca977eSAlexander Kabaev s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1112*c7ca977eSAlexander Kabaev ;; 1113*c7ca977eSAlexander Kabaev *) 1114*c7ca977eSAlexander Kabaev sed -n \ 1115*c7ca977eSAlexander Kabaev "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1116*c7ca977eSAlexander Kabaev ;; 1117*c7ca977eSAlexander Kabaev esac; 1118*c7ca977eSAlexander Kabaev} 1119*c7ca977eSAlexander Kabaev echo 1120*c7ca977eSAlexander Kabaev 1121*c7ca977eSAlexander Kabaev cat <<\_ASBOX 1122*c7ca977eSAlexander Kabaev## ----------------- ## 1123*c7ca977eSAlexander Kabaev## Output variables. ## 1124*c7ca977eSAlexander Kabaev## ----------------- ## 1125*c7ca977eSAlexander Kabaev_ASBOX 1126*c7ca977eSAlexander Kabaev echo 1127*c7ca977eSAlexander Kabaev for ac_var in $ac_subst_vars 1128*c7ca977eSAlexander Kabaev do 1129*c7ca977eSAlexander Kabaev eval ac_val=$`echo $ac_var` 1130*c7ca977eSAlexander Kabaev echo "$ac_var='"'"'$ac_val'"'"'" 1131*c7ca977eSAlexander Kabaev done | sort 1132*c7ca977eSAlexander Kabaev echo 1133*c7ca977eSAlexander Kabaev 1134*c7ca977eSAlexander Kabaev if test -n "$ac_subst_files"; then 1135*c7ca977eSAlexander Kabaev cat <<\_ASBOX 1136*c7ca977eSAlexander Kabaev## ------------- ## 1137*c7ca977eSAlexander Kabaev## Output files. ## 1138*c7ca977eSAlexander Kabaev## ------------- ## 1139*c7ca977eSAlexander Kabaev_ASBOX 1140*c7ca977eSAlexander Kabaev echo 1141*c7ca977eSAlexander Kabaev for ac_var in $ac_subst_files 1142*c7ca977eSAlexander Kabaev do 1143*c7ca977eSAlexander Kabaev eval ac_val=$`echo $ac_var` 1144*c7ca977eSAlexander Kabaev echo "$ac_var='"'"'$ac_val'"'"'" 1145*c7ca977eSAlexander Kabaev done | sort 1146*c7ca977eSAlexander Kabaev echo 1147*c7ca977eSAlexander Kabaev fi 1148*c7ca977eSAlexander Kabaev 1149*c7ca977eSAlexander Kabaev if test -s confdefs.h; then 1150*c7ca977eSAlexander Kabaev cat <<\_ASBOX 1151*c7ca977eSAlexander Kabaev## ----------- ## 1152*c7ca977eSAlexander Kabaev## confdefs.h. ## 1153*c7ca977eSAlexander Kabaev## ----------- ## 1154*c7ca977eSAlexander Kabaev_ASBOX 1155*c7ca977eSAlexander Kabaev echo 1156*c7ca977eSAlexander Kabaev sed "/^$/d" confdefs.h | sort 1157*c7ca977eSAlexander Kabaev echo 1158*c7ca977eSAlexander Kabaev fi 1159*c7ca977eSAlexander Kabaev test "$ac_signal" != 0 && 1160*c7ca977eSAlexander Kabaev echo "$as_me: caught signal $ac_signal" 1161*c7ca977eSAlexander Kabaev echo "$as_me: exit $exit_status" 1162*c7ca977eSAlexander Kabaev } >&5 1163*c7ca977eSAlexander Kabaev rm -f core *.core && 1164*c7ca977eSAlexander Kabaev rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1165*c7ca977eSAlexander Kabaev exit $exit_status 1166*c7ca977eSAlexander Kabaev ' 0 1167*c7ca977eSAlexander Kabaevfor ac_signal in 1 2 13 15; do 1168*c7ca977eSAlexander Kabaev trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1169*c7ca977eSAlexander Kabaevdone 1170*c7ca977eSAlexander Kabaevac_signal=0 1171*c7ca977eSAlexander Kabaev 1172*c7ca977eSAlexander Kabaev# confdefs.h avoids OS command line length limits that DEFS can exceed. 1173*c7ca977eSAlexander Kabaevrm -rf conftest* confdefs.h 1174*c7ca977eSAlexander Kabaev# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1175*c7ca977eSAlexander Kabaevecho >confdefs.h 1176*c7ca977eSAlexander Kabaev 1177*c7ca977eSAlexander Kabaev# Predefined preprocessor variables. 1178*c7ca977eSAlexander Kabaev 1179*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 1180*c7ca977eSAlexander Kabaev#define PACKAGE_NAME "$PACKAGE_NAME" 1181*c7ca977eSAlexander Kabaev_ACEOF 1182*c7ca977eSAlexander Kabaev 1183*c7ca977eSAlexander Kabaev 1184*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 1185*c7ca977eSAlexander Kabaev#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1186*c7ca977eSAlexander Kabaev_ACEOF 1187*c7ca977eSAlexander Kabaev 1188*c7ca977eSAlexander Kabaev 1189*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 1190*c7ca977eSAlexander Kabaev#define PACKAGE_VERSION "$PACKAGE_VERSION" 1191*c7ca977eSAlexander Kabaev_ACEOF 1192*c7ca977eSAlexander Kabaev 1193*c7ca977eSAlexander Kabaev 1194*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 1195*c7ca977eSAlexander Kabaev#define PACKAGE_STRING "$PACKAGE_STRING" 1196*c7ca977eSAlexander Kabaev_ACEOF 1197*c7ca977eSAlexander Kabaev 1198*c7ca977eSAlexander Kabaev 1199*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 1200*c7ca977eSAlexander Kabaev#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1201*c7ca977eSAlexander Kabaev_ACEOF 1202*c7ca977eSAlexander Kabaev 1203*c7ca977eSAlexander Kabaev 1204*c7ca977eSAlexander Kabaev# Let the site file select an alternate cache file if it wants to. 1205*c7ca977eSAlexander Kabaev# Prefer explicitly selected file to automatically selected ones. 1206*c7ca977eSAlexander Kabaevif test -z "$CONFIG_SITE"; then 1207*c7ca977eSAlexander Kabaev if test "x$prefix" != xNONE; then 1208*c7ca977eSAlexander Kabaev CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1209*c7ca977eSAlexander Kabaev else 1210*c7ca977eSAlexander Kabaev CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1211*c7ca977eSAlexander Kabaev fi 1212*c7ca977eSAlexander Kabaevfi 1213*c7ca977eSAlexander Kabaevfor ac_site_file in $CONFIG_SITE; do 1214*c7ca977eSAlexander Kabaev if test -r "$ac_site_file"; then 1215*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1216*c7ca977eSAlexander Kabaevecho "$as_me: loading site script $ac_site_file" >&6;} 1217*c7ca977eSAlexander Kabaev sed 's/^/| /' "$ac_site_file" >&5 1218*c7ca977eSAlexander Kabaev . "$ac_site_file" 1219*c7ca977eSAlexander Kabaev fi 1220*c7ca977eSAlexander Kabaevdone 1221*c7ca977eSAlexander Kabaev 1222*c7ca977eSAlexander Kabaevif test -r "$cache_file"; then 1223*c7ca977eSAlexander Kabaev # Some versions of bash will fail to source /dev/null (special 1224*c7ca977eSAlexander Kabaev # files actually), so we avoid doing that. 1225*c7ca977eSAlexander Kabaev if test -f "$cache_file"; then 1226*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1227*c7ca977eSAlexander Kabaevecho "$as_me: loading cache $cache_file" >&6;} 1228*c7ca977eSAlexander Kabaev case $cache_file in 1229*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) . $cache_file;; 1230*c7ca977eSAlexander Kabaev *) . ./$cache_file;; 1231*c7ca977eSAlexander Kabaev esac 1232*c7ca977eSAlexander Kabaev fi 1233*c7ca977eSAlexander Kabaevelse 1234*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1235*c7ca977eSAlexander Kabaevecho "$as_me: creating cache $cache_file" >&6;} 1236*c7ca977eSAlexander Kabaev >$cache_file 1237*c7ca977eSAlexander Kabaevfi 1238*c7ca977eSAlexander Kabaev 1239*c7ca977eSAlexander Kabaev# Check that the precious variables saved in the cache have kept the same 1240*c7ca977eSAlexander Kabaev# value. 1241*c7ca977eSAlexander Kabaevac_cache_corrupted=false 1242*c7ca977eSAlexander Kabaevfor ac_var in `(set) 2>&1 | 1243*c7ca977eSAlexander Kabaev sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1244*c7ca977eSAlexander Kabaev eval ac_old_set=\$ac_cv_env_${ac_var}_set 1245*c7ca977eSAlexander Kabaev eval ac_new_set=\$ac_env_${ac_var}_set 1246*c7ca977eSAlexander Kabaev eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1247*c7ca977eSAlexander Kabaev eval ac_new_val="\$ac_env_${ac_var}_value" 1248*c7ca977eSAlexander Kabaev case $ac_old_set,$ac_new_set in 1249*c7ca977eSAlexander Kabaev set,) 1250*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1251*c7ca977eSAlexander Kabaevecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1252*c7ca977eSAlexander Kabaev ac_cache_corrupted=: ;; 1253*c7ca977eSAlexander Kabaev ,set) 1254*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1255*c7ca977eSAlexander Kabaevecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1256*c7ca977eSAlexander Kabaev ac_cache_corrupted=: ;; 1257*c7ca977eSAlexander Kabaev ,);; 1258*c7ca977eSAlexander Kabaev *) 1259*c7ca977eSAlexander Kabaev if test "x$ac_old_val" != "x$ac_new_val"; then 1260*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1261*c7ca977eSAlexander Kabaevecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1262*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1263*c7ca977eSAlexander Kabaevecho "$as_me: former value: $ac_old_val" >&2;} 1264*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1265*c7ca977eSAlexander Kabaevecho "$as_me: current value: $ac_new_val" >&2;} 1266*c7ca977eSAlexander Kabaev ac_cache_corrupted=: 1267*c7ca977eSAlexander Kabaev fi;; 1268*c7ca977eSAlexander Kabaev esac 1269*c7ca977eSAlexander Kabaev # Pass precious variables to config.status. 1270*c7ca977eSAlexander Kabaev if test "$ac_new_set" = set; then 1271*c7ca977eSAlexander Kabaev case $ac_new_val in 1272*c7ca977eSAlexander Kabaev *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1273*c7ca977eSAlexander Kabaev ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1274*c7ca977eSAlexander Kabaev *) ac_arg=$ac_var=$ac_new_val ;; 1275*c7ca977eSAlexander Kabaev esac 1276*c7ca977eSAlexander Kabaev case " $ac_configure_args " in 1277*c7ca977eSAlexander Kabaev *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1278*c7ca977eSAlexander Kabaev *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1279*c7ca977eSAlexander Kabaev esac 1280*c7ca977eSAlexander Kabaev fi 1281*c7ca977eSAlexander Kabaevdone 1282*c7ca977eSAlexander Kabaevif $ac_cache_corrupted; then 1283*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1284*c7ca977eSAlexander Kabaevecho "$as_me: error: changes in the environment can compromise the build" >&2;} 1285*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1286*c7ca977eSAlexander Kabaevecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1287*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1288*c7ca977eSAlexander Kabaevfi 1289*c7ca977eSAlexander Kabaev 1290*c7ca977eSAlexander Kabaevac_ext=c 1291*c7ca977eSAlexander Kabaevac_cpp='$CPP $CPPFLAGS' 1292*c7ca977eSAlexander Kabaevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1293*c7ca977eSAlexander Kabaevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1294*c7ca977eSAlexander Kabaevac_compiler_gnu=$ac_cv_c_compiler_gnu 1295*c7ca977eSAlexander Kabaev 1296*c7ca977eSAlexander Kabaev 1297*c7ca977eSAlexander Kabaev 1298*c7ca977eSAlexander Kabaev 1299*c7ca977eSAlexander Kabaev 1300*c7ca977eSAlexander Kabaev 1301*c7ca977eSAlexander Kabaev 1302*c7ca977eSAlexander Kabaev 1303*c7ca977eSAlexander Kabaev 1304*c7ca977eSAlexander Kabaev 1305*c7ca977eSAlexander Kabaev 1306*c7ca977eSAlexander Kabaev 1307*c7ca977eSAlexander Kabaev 1308*c7ca977eSAlexander Kabaev 1309*c7ca977eSAlexander Kabaev 1310*c7ca977eSAlexander Kabaev 1311*c7ca977eSAlexander Kabaev 1312*c7ca977eSAlexander Kabaev 1313*c7ca977eSAlexander Kabaev 1314*c7ca977eSAlexander Kabaev 1315*c7ca977eSAlexander Kabaev 1316*c7ca977eSAlexander Kabaev 1317*c7ca977eSAlexander Kabaev 1318*c7ca977eSAlexander Kabaev 1319*c7ca977eSAlexander Kabaev 1320*c7ca977eSAlexander Kabaev 1321*c7ca977eSAlexander Kabaev 1322*c7ca977eSAlexander Kabaev 1323*c7ca977eSAlexander Kabaevcase ../config in 1324*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_macro_dir=../config ;; 1325*c7ca977eSAlexander Kabaev *) ac_macro_dir=$srcdir/../config ;; 1326*c7ca977eSAlexander Kabaevesac 1327*c7ca977eSAlexander Kabaevif test -d "$ac_macro_dir"; then : 1328*c7ca977eSAlexander Kabaevelse 1329*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot find macro directory \`../config'" >&5 1330*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot find macro directory \`../config'" >&2;} 1331*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1332*c7ca977eSAlexander Kabaevfi 1333*c7ca977eSAlexander Kabaev 1334*c7ca977eSAlexander Kabaevac_aux_dir= 1335*c7ca977eSAlexander Kabaevfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1336*c7ca977eSAlexander Kabaev if test -f $ac_dir/install-sh; then 1337*c7ca977eSAlexander Kabaev ac_aux_dir=$ac_dir 1338*c7ca977eSAlexander Kabaev ac_install_sh="$ac_aux_dir/install-sh -c" 1339*c7ca977eSAlexander Kabaev break 1340*c7ca977eSAlexander Kabaev elif test -f $ac_dir/install.sh; then 1341*c7ca977eSAlexander Kabaev ac_aux_dir=$ac_dir 1342*c7ca977eSAlexander Kabaev ac_install_sh="$ac_aux_dir/install.sh -c" 1343*c7ca977eSAlexander Kabaev break 1344*c7ca977eSAlexander Kabaev elif test -f $ac_dir/shtool; then 1345*c7ca977eSAlexander Kabaev ac_aux_dir=$ac_dir 1346*c7ca977eSAlexander Kabaev ac_install_sh="$ac_aux_dir/shtool install -c" 1347*c7ca977eSAlexander Kabaev break 1348*c7ca977eSAlexander Kabaev fi 1349*c7ca977eSAlexander Kabaevdone 1350*c7ca977eSAlexander Kabaevif test -z "$ac_aux_dir"; then 1351*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1352*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1353*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1354*c7ca977eSAlexander Kabaevfi 1355*c7ca977eSAlexander Kabaevac_config_guess="$SHELL $ac_aux_dir/config.guess" 1356*c7ca977eSAlexander Kabaevac_config_sub="$SHELL $ac_aux_dir/config.sub" 1357*c7ca977eSAlexander Kabaevac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1358*c7ca977eSAlexander Kabaev 1359*c7ca977eSAlexander Kabaev# Make sure we can run config.sub. 1360*c7ca977eSAlexander Kabaev$ac_config_sub sun4 >/dev/null 2>&1 || 1361*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1362*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot run $ac_config_sub" >&2;} 1363*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1364*c7ca977eSAlexander Kabaev 1365*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking build system type" >&5 1366*c7ca977eSAlexander Kabaevecho $ECHO_N "checking build system type... $ECHO_C" >&6 1367*c7ca977eSAlexander Kabaevif test "${ac_cv_build+set}" = set; then 1368*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1369*c7ca977eSAlexander Kabaevelse 1370*c7ca977eSAlexander Kabaev ac_cv_build_alias=$build_alias 1371*c7ca977eSAlexander Kabaevtest -z "$ac_cv_build_alias" && 1372*c7ca977eSAlexander Kabaev ac_cv_build_alias=`$ac_config_guess` 1373*c7ca977eSAlexander Kabaevtest -z "$ac_cv_build_alias" && 1374*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1375*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot guess build type; you must specify one" >&2;} 1376*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1377*c7ca977eSAlexander Kabaevac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1378*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1379*c7ca977eSAlexander Kabaevecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1380*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1381*c7ca977eSAlexander Kabaev 1382*c7ca977eSAlexander Kabaevfi 1383*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_build" >&5 1384*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_build" >&6 1385*c7ca977eSAlexander Kabaevbuild=$ac_cv_build 1386*c7ca977eSAlexander Kabaevbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1387*c7ca977eSAlexander Kabaevbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1388*c7ca977eSAlexander Kabaevbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1389*c7ca977eSAlexander Kabaev 1390*c7ca977eSAlexander Kabaev 1391*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking host system type" >&5 1392*c7ca977eSAlexander Kabaevecho $ECHO_N "checking host system type... $ECHO_C" >&6 1393*c7ca977eSAlexander Kabaevif test "${ac_cv_host+set}" = set; then 1394*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1395*c7ca977eSAlexander Kabaevelse 1396*c7ca977eSAlexander Kabaev ac_cv_host_alias=$host_alias 1397*c7ca977eSAlexander Kabaevtest -z "$ac_cv_host_alias" && 1398*c7ca977eSAlexander Kabaev ac_cv_host_alias=$ac_cv_build_alias 1399*c7ca977eSAlexander Kabaevac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1400*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1401*c7ca977eSAlexander Kabaevecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1402*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1403*c7ca977eSAlexander Kabaev 1404*c7ca977eSAlexander Kabaevfi 1405*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_host" >&5 1406*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_host" >&6 1407*c7ca977eSAlexander Kabaevhost=$ac_cv_host 1408*c7ca977eSAlexander Kabaevhost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1409*c7ca977eSAlexander Kabaevhost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1410*c7ca977eSAlexander Kabaevhost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1411*c7ca977eSAlexander Kabaev 1412*c7ca977eSAlexander Kabaev 1413*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking target system type" >&5 1414*c7ca977eSAlexander Kabaevecho $ECHO_N "checking target system type... $ECHO_C" >&6 1415*c7ca977eSAlexander Kabaevif test "${ac_cv_target+set}" = set; then 1416*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1417*c7ca977eSAlexander Kabaevelse 1418*c7ca977eSAlexander Kabaev ac_cv_target_alias=$target_alias 1419*c7ca977eSAlexander Kabaevtest "x$ac_cv_target_alias" = "x" && 1420*c7ca977eSAlexander Kabaev ac_cv_target_alias=$ac_cv_host_alias 1421*c7ca977eSAlexander Kabaevac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1422*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1423*c7ca977eSAlexander Kabaevecho "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1424*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1425*c7ca977eSAlexander Kabaev 1426*c7ca977eSAlexander Kabaevfi 1427*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_target" >&5 1428*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_target" >&6 1429*c7ca977eSAlexander Kabaevtarget=$ac_cv_target 1430*c7ca977eSAlexander Kabaevtarget_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1431*c7ca977eSAlexander Kabaevtarget_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1432*c7ca977eSAlexander Kabaevtarget_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1433*c7ca977eSAlexander Kabaev 1434*c7ca977eSAlexander Kabaev 1435*c7ca977eSAlexander Kabaev# The aliases save the names the user supplied, while $host etc. 1436*c7ca977eSAlexander Kabaev# will get canonicalized. 1437*c7ca977eSAlexander Kabaevtest -n "$target_alias" && 1438*c7ca977eSAlexander Kabaev test "$program_prefix$program_suffix$program_transform_name" = \ 1439*c7ca977eSAlexander Kabaev NONENONEs,x,x, && 1440*c7ca977eSAlexander Kabaev program_prefix=${target_alias}- 1441*c7ca977eSAlexander Kabaev 1442*c7ca977eSAlexander Kabaev# Checks for programs. 1443*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1444*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1445*c7ca977eSAlexander Kabaevset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1446*c7ca977eSAlexander Kabaevif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1447*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1448*c7ca977eSAlexander Kabaevelse 1449*c7ca977eSAlexander Kabaev cat >conftest.make <<\_ACEOF 1450*c7ca977eSAlexander Kabaevall: 1451*c7ca977eSAlexander Kabaev @echo 'ac_maketemp="$(MAKE)"' 1452*c7ca977eSAlexander Kabaev_ACEOF 1453*c7ca977eSAlexander Kabaev# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1454*c7ca977eSAlexander Kabaeveval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1455*c7ca977eSAlexander Kabaevif test -n "$ac_maketemp"; then 1456*c7ca977eSAlexander Kabaev eval ac_cv_prog_make_${ac_make}_set=yes 1457*c7ca977eSAlexander Kabaevelse 1458*c7ca977eSAlexander Kabaev eval ac_cv_prog_make_${ac_make}_set=no 1459*c7ca977eSAlexander Kabaevfi 1460*c7ca977eSAlexander Kabaevrm -f conftest.make 1461*c7ca977eSAlexander Kabaevfi 1462*c7ca977eSAlexander Kabaevif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1463*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: yes" >&5 1464*c7ca977eSAlexander Kabaevecho "${ECHO_T}yes" >&6 1465*c7ca977eSAlexander Kabaev SET_MAKE= 1466*c7ca977eSAlexander Kabaevelse 1467*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 1468*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 1469*c7ca977eSAlexander Kabaev SET_MAKE="MAKE=${MAKE-make}" 1470*c7ca977eSAlexander Kabaevfi 1471*c7ca977eSAlexander Kabaev 1472*c7ca977eSAlexander Kabaev# Find a good install program. We prefer a C program (faster), 1473*c7ca977eSAlexander Kabaev# so one script is as good as another. But avoid the broken or 1474*c7ca977eSAlexander Kabaev# incompatible versions: 1475*c7ca977eSAlexander Kabaev# SysV /etc/install, /usr/sbin/install 1476*c7ca977eSAlexander Kabaev# SunOS /usr/etc/install 1477*c7ca977eSAlexander Kabaev# IRIX /sbin/install 1478*c7ca977eSAlexander Kabaev# AIX /bin/install 1479*c7ca977eSAlexander Kabaev# AmigaOS /C/install, which installs bootblocks on floppy discs 1480*c7ca977eSAlexander Kabaev# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1481*c7ca977eSAlexander Kabaev# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1482*c7ca977eSAlexander Kabaev# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1483*c7ca977eSAlexander Kabaev# OS/2's system install, which has a completely different semantic 1484*c7ca977eSAlexander Kabaev# ./install, which can be erroneously created by make from ./install.sh. 1485*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1486*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1487*c7ca977eSAlexander Kabaevif test -z "$INSTALL"; then 1488*c7ca977eSAlexander Kabaevif test "${ac_cv_path_install+set}" = set; then 1489*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1490*c7ca977eSAlexander Kabaevelse 1491*c7ca977eSAlexander Kabaev as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1492*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1493*c7ca977eSAlexander Kabaevdo 1494*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1495*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1496*c7ca977eSAlexander Kabaev # Account for people who put trailing slashes in PATH elements. 1497*c7ca977eSAlexander Kabaevcase $as_dir/ in 1498*c7ca977eSAlexander Kabaev ./ | .// | /cC/* | \ 1499*c7ca977eSAlexander Kabaev /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1500*c7ca977eSAlexander Kabaev ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1501*c7ca977eSAlexander Kabaev /usr/ucb/* ) ;; 1502*c7ca977eSAlexander Kabaev *) 1503*c7ca977eSAlexander Kabaev # OSF1 and SCO ODT 3.0 have their own names for install. 1504*c7ca977eSAlexander Kabaev # Don't use installbsd from OSF since it installs stuff as root 1505*c7ca977eSAlexander Kabaev # by default. 1506*c7ca977eSAlexander Kabaev for ac_prog in ginstall scoinst install; do 1507*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 1508*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1509*c7ca977eSAlexander Kabaev if test $ac_prog = install && 1510*c7ca977eSAlexander Kabaev grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1511*c7ca977eSAlexander Kabaev # AIX install. It has an incompatible calling convention. 1512*c7ca977eSAlexander Kabaev : 1513*c7ca977eSAlexander Kabaev elif test $ac_prog = install && 1514*c7ca977eSAlexander Kabaev grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1515*c7ca977eSAlexander Kabaev # program-specific install script used by HP pwplus--don't use. 1516*c7ca977eSAlexander Kabaev : 1517*c7ca977eSAlexander Kabaev else 1518*c7ca977eSAlexander Kabaev ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1519*c7ca977eSAlexander Kabaev break 3 1520*c7ca977eSAlexander Kabaev fi 1521*c7ca977eSAlexander Kabaev fi 1522*c7ca977eSAlexander Kabaev done 1523*c7ca977eSAlexander Kabaev done 1524*c7ca977eSAlexander Kabaev ;; 1525*c7ca977eSAlexander Kabaevesac 1526*c7ca977eSAlexander Kabaevdone 1527*c7ca977eSAlexander Kabaev 1528*c7ca977eSAlexander Kabaev 1529*c7ca977eSAlexander Kabaevfi 1530*c7ca977eSAlexander Kabaev if test "${ac_cv_path_install+set}" = set; then 1531*c7ca977eSAlexander Kabaev INSTALL=$ac_cv_path_install 1532*c7ca977eSAlexander Kabaev else 1533*c7ca977eSAlexander Kabaev # As a last resort, use the slow shell script. We don't cache a 1534*c7ca977eSAlexander Kabaev # path for INSTALL within a source directory, because that will 1535*c7ca977eSAlexander Kabaev # break other packages using the cache if that directory is 1536*c7ca977eSAlexander Kabaev # removed, or if the path is relative. 1537*c7ca977eSAlexander Kabaev INSTALL=$ac_install_sh 1538*c7ca977eSAlexander Kabaev fi 1539*c7ca977eSAlexander Kabaevfi 1540*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $INSTALL" >&5 1541*c7ca977eSAlexander Kabaevecho "${ECHO_T}$INSTALL" >&6 1542*c7ca977eSAlexander Kabaev 1543*c7ca977eSAlexander Kabaev# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1544*c7ca977eSAlexander Kabaev# It thinks the first close brace ends the variable substitution. 1545*c7ca977eSAlexander Kabaevtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1546*c7ca977eSAlexander Kabaev 1547*c7ca977eSAlexander Kabaevtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1548*c7ca977eSAlexander Kabaev 1549*c7ca977eSAlexander Kabaevtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1550*c7ca977eSAlexander Kabaev 1551*c7ca977eSAlexander Kabaevac_ext=c 1552*c7ca977eSAlexander Kabaevac_cpp='$CPP $CPPFLAGS' 1553*c7ca977eSAlexander Kabaevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1554*c7ca977eSAlexander Kabaevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1555*c7ca977eSAlexander Kabaevac_compiler_gnu=$ac_cv_c_compiler_gnu 1556*c7ca977eSAlexander Kabaevif test -n "$ac_tool_prefix"; then 1557*c7ca977eSAlexander Kabaev # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1558*c7ca977eSAlexander Kabaevset dummy ${ac_tool_prefix}gcc; ac_word=$2 1559*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 1560*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1561*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_CC+set}" = set; then 1562*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1563*c7ca977eSAlexander Kabaevelse 1564*c7ca977eSAlexander Kabaev if test -n "$CC"; then 1565*c7ca977eSAlexander Kabaev ac_cv_prog_CC="$CC" # Let the user override the test. 1566*c7ca977eSAlexander Kabaevelse 1567*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1568*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1569*c7ca977eSAlexander Kabaevdo 1570*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1571*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1572*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 1573*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1574*c7ca977eSAlexander Kabaev ac_cv_prog_CC="${ac_tool_prefix}gcc" 1575*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1576*c7ca977eSAlexander Kabaev break 2 1577*c7ca977eSAlexander Kabaev fi 1578*c7ca977eSAlexander Kabaevdone 1579*c7ca977eSAlexander Kabaevdone 1580*c7ca977eSAlexander Kabaev 1581*c7ca977eSAlexander Kabaevfi 1582*c7ca977eSAlexander Kabaevfi 1583*c7ca977eSAlexander KabaevCC=$ac_cv_prog_CC 1584*c7ca977eSAlexander Kabaevif test -n "$CC"; then 1585*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $CC" >&5 1586*c7ca977eSAlexander Kabaevecho "${ECHO_T}$CC" >&6 1587*c7ca977eSAlexander Kabaevelse 1588*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 1589*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 1590*c7ca977eSAlexander Kabaevfi 1591*c7ca977eSAlexander Kabaev 1592*c7ca977eSAlexander Kabaevfi 1593*c7ca977eSAlexander Kabaevif test -z "$ac_cv_prog_CC"; then 1594*c7ca977eSAlexander Kabaev ac_ct_CC=$CC 1595*c7ca977eSAlexander Kabaev # Extract the first word of "gcc", so it can be a program name with args. 1596*c7ca977eSAlexander Kabaevset dummy gcc; ac_word=$2 1597*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 1598*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1599*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1600*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1601*c7ca977eSAlexander Kabaevelse 1602*c7ca977eSAlexander Kabaev if test -n "$ac_ct_CC"; then 1603*c7ca977eSAlexander Kabaev ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1604*c7ca977eSAlexander Kabaevelse 1605*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1606*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1607*c7ca977eSAlexander Kabaevdo 1608*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1609*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1610*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 1611*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1612*c7ca977eSAlexander Kabaev ac_cv_prog_ac_ct_CC="gcc" 1613*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1614*c7ca977eSAlexander Kabaev break 2 1615*c7ca977eSAlexander Kabaev fi 1616*c7ca977eSAlexander Kabaevdone 1617*c7ca977eSAlexander Kabaevdone 1618*c7ca977eSAlexander Kabaev 1619*c7ca977eSAlexander Kabaevfi 1620*c7ca977eSAlexander Kabaevfi 1621*c7ca977eSAlexander Kabaevac_ct_CC=$ac_cv_prog_ac_ct_CC 1622*c7ca977eSAlexander Kabaevif test -n "$ac_ct_CC"; then 1623*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1624*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_ct_CC" >&6 1625*c7ca977eSAlexander Kabaevelse 1626*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 1627*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 1628*c7ca977eSAlexander Kabaevfi 1629*c7ca977eSAlexander Kabaev 1630*c7ca977eSAlexander Kabaev CC=$ac_ct_CC 1631*c7ca977eSAlexander Kabaevelse 1632*c7ca977eSAlexander Kabaev CC="$ac_cv_prog_CC" 1633*c7ca977eSAlexander Kabaevfi 1634*c7ca977eSAlexander Kabaev 1635*c7ca977eSAlexander Kabaevif test -z "$CC"; then 1636*c7ca977eSAlexander Kabaev if test -n "$ac_tool_prefix"; then 1637*c7ca977eSAlexander Kabaev # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1638*c7ca977eSAlexander Kabaevset dummy ${ac_tool_prefix}cc; ac_word=$2 1639*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 1640*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1641*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_CC+set}" = set; then 1642*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1643*c7ca977eSAlexander Kabaevelse 1644*c7ca977eSAlexander Kabaev if test -n "$CC"; then 1645*c7ca977eSAlexander Kabaev ac_cv_prog_CC="$CC" # Let the user override the test. 1646*c7ca977eSAlexander Kabaevelse 1647*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1648*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1649*c7ca977eSAlexander Kabaevdo 1650*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1651*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1652*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 1653*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1654*c7ca977eSAlexander Kabaev ac_cv_prog_CC="${ac_tool_prefix}cc" 1655*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1656*c7ca977eSAlexander Kabaev break 2 1657*c7ca977eSAlexander Kabaev fi 1658*c7ca977eSAlexander Kabaevdone 1659*c7ca977eSAlexander Kabaevdone 1660*c7ca977eSAlexander Kabaev 1661*c7ca977eSAlexander Kabaevfi 1662*c7ca977eSAlexander Kabaevfi 1663*c7ca977eSAlexander KabaevCC=$ac_cv_prog_CC 1664*c7ca977eSAlexander Kabaevif test -n "$CC"; then 1665*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $CC" >&5 1666*c7ca977eSAlexander Kabaevecho "${ECHO_T}$CC" >&6 1667*c7ca977eSAlexander Kabaevelse 1668*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 1669*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 1670*c7ca977eSAlexander Kabaevfi 1671*c7ca977eSAlexander Kabaev 1672*c7ca977eSAlexander Kabaevfi 1673*c7ca977eSAlexander Kabaevif test -z "$ac_cv_prog_CC"; then 1674*c7ca977eSAlexander Kabaev ac_ct_CC=$CC 1675*c7ca977eSAlexander Kabaev # Extract the first word of "cc", so it can be a program name with args. 1676*c7ca977eSAlexander Kabaevset dummy cc; ac_word=$2 1677*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 1678*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1679*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1680*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1681*c7ca977eSAlexander Kabaevelse 1682*c7ca977eSAlexander Kabaev if test -n "$ac_ct_CC"; then 1683*c7ca977eSAlexander Kabaev ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1684*c7ca977eSAlexander Kabaevelse 1685*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1686*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1687*c7ca977eSAlexander Kabaevdo 1688*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1689*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1690*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 1691*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1692*c7ca977eSAlexander Kabaev ac_cv_prog_ac_ct_CC="cc" 1693*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1694*c7ca977eSAlexander Kabaev break 2 1695*c7ca977eSAlexander Kabaev fi 1696*c7ca977eSAlexander Kabaevdone 1697*c7ca977eSAlexander Kabaevdone 1698*c7ca977eSAlexander Kabaev 1699*c7ca977eSAlexander Kabaevfi 1700*c7ca977eSAlexander Kabaevfi 1701*c7ca977eSAlexander Kabaevac_ct_CC=$ac_cv_prog_ac_ct_CC 1702*c7ca977eSAlexander Kabaevif test -n "$ac_ct_CC"; then 1703*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1704*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_ct_CC" >&6 1705*c7ca977eSAlexander Kabaevelse 1706*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 1707*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 1708*c7ca977eSAlexander Kabaevfi 1709*c7ca977eSAlexander Kabaev 1710*c7ca977eSAlexander Kabaev CC=$ac_ct_CC 1711*c7ca977eSAlexander Kabaevelse 1712*c7ca977eSAlexander Kabaev CC="$ac_cv_prog_CC" 1713*c7ca977eSAlexander Kabaevfi 1714*c7ca977eSAlexander Kabaev 1715*c7ca977eSAlexander Kabaevfi 1716*c7ca977eSAlexander Kabaevif test -z "$CC"; then 1717*c7ca977eSAlexander Kabaev # Extract the first word of "cc", so it can be a program name with args. 1718*c7ca977eSAlexander Kabaevset dummy cc; ac_word=$2 1719*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 1720*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1721*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_CC+set}" = set; then 1722*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1723*c7ca977eSAlexander Kabaevelse 1724*c7ca977eSAlexander Kabaev if test -n "$CC"; then 1725*c7ca977eSAlexander Kabaev ac_cv_prog_CC="$CC" # Let the user override the test. 1726*c7ca977eSAlexander Kabaevelse 1727*c7ca977eSAlexander Kabaev ac_prog_rejected=no 1728*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1729*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1730*c7ca977eSAlexander Kabaevdo 1731*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1732*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1733*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 1734*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1735*c7ca977eSAlexander Kabaev if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1736*c7ca977eSAlexander Kabaev ac_prog_rejected=yes 1737*c7ca977eSAlexander Kabaev continue 1738*c7ca977eSAlexander Kabaev fi 1739*c7ca977eSAlexander Kabaev ac_cv_prog_CC="cc" 1740*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1741*c7ca977eSAlexander Kabaev break 2 1742*c7ca977eSAlexander Kabaev fi 1743*c7ca977eSAlexander Kabaevdone 1744*c7ca977eSAlexander Kabaevdone 1745*c7ca977eSAlexander Kabaev 1746*c7ca977eSAlexander Kabaevif test $ac_prog_rejected = yes; then 1747*c7ca977eSAlexander Kabaev # We found a bogon in the path, so make sure we never use it. 1748*c7ca977eSAlexander Kabaev set dummy $ac_cv_prog_CC 1749*c7ca977eSAlexander Kabaev shift 1750*c7ca977eSAlexander Kabaev if test $# != 0; then 1751*c7ca977eSAlexander Kabaev # We chose a different compiler from the bogus one. 1752*c7ca977eSAlexander Kabaev # However, it has the same basename, so the bogon will be chosen 1753*c7ca977eSAlexander Kabaev # first if we set CC to just the basename; use the full file name. 1754*c7ca977eSAlexander Kabaev shift 1755*c7ca977eSAlexander Kabaev ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1756*c7ca977eSAlexander Kabaev fi 1757*c7ca977eSAlexander Kabaevfi 1758*c7ca977eSAlexander Kabaevfi 1759*c7ca977eSAlexander Kabaevfi 1760*c7ca977eSAlexander KabaevCC=$ac_cv_prog_CC 1761*c7ca977eSAlexander Kabaevif test -n "$CC"; then 1762*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $CC" >&5 1763*c7ca977eSAlexander Kabaevecho "${ECHO_T}$CC" >&6 1764*c7ca977eSAlexander Kabaevelse 1765*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 1766*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 1767*c7ca977eSAlexander Kabaevfi 1768*c7ca977eSAlexander Kabaev 1769*c7ca977eSAlexander Kabaevfi 1770*c7ca977eSAlexander Kabaevif test -z "$CC"; then 1771*c7ca977eSAlexander Kabaev if test -n "$ac_tool_prefix"; then 1772*c7ca977eSAlexander Kabaev for ac_prog in cl 1773*c7ca977eSAlexander Kabaev do 1774*c7ca977eSAlexander Kabaev # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1775*c7ca977eSAlexander Kabaevset dummy $ac_tool_prefix$ac_prog; ac_word=$2 1776*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 1777*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1778*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_CC+set}" = set; then 1779*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1780*c7ca977eSAlexander Kabaevelse 1781*c7ca977eSAlexander Kabaev if test -n "$CC"; then 1782*c7ca977eSAlexander Kabaev ac_cv_prog_CC="$CC" # Let the user override the test. 1783*c7ca977eSAlexander Kabaevelse 1784*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1785*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1786*c7ca977eSAlexander Kabaevdo 1787*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1788*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1789*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 1790*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1791*c7ca977eSAlexander Kabaev ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1792*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1793*c7ca977eSAlexander Kabaev break 2 1794*c7ca977eSAlexander Kabaev fi 1795*c7ca977eSAlexander Kabaevdone 1796*c7ca977eSAlexander Kabaevdone 1797*c7ca977eSAlexander Kabaev 1798*c7ca977eSAlexander Kabaevfi 1799*c7ca977eSAlexander Kabaevfi 1800*c7ca977eSAlexander KabaevCC=$ac_cv_prog_CC 1801*c7ca977eSAlexander Kabaevif test -n "$CC"; then 1802*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $CC" >&5 1803*c7ca977eSAlexander Kabaevecho "${ECHO_T}$CC" >&6 1804*c7ca977eSAlexander Kabaevelse 1805*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 1806*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 1807*c7ca977eSAlexander Kabaevfi 1808*c7ca977eSAlexander Kabaev 1809*c7ca977eSAlexander Kabaev test -n "$CC" && break 1810*c7ca977eSAlexander Kabaev done 1811*c7ca977eSAlexander Kabaevfi 1812*c7ca977eSAlexander Kabaevif test -z "$CC"; then 1813*c7ca977eSAlexander Kabaev ac_ct_CC=$CC 1814*c7ca977eSAlexander Kabaev for ac_prog in cl 1815*c7ca977eSAlexander Kabaevdo 1816*c7ca977eSAlexander Kabaev # Extract the first word of "$ac_prog", so it can be a program name with args. 1817*c7ca977eSAlexander Kabaevset dummy $ac_prog; ac_word=$2 1818*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 1819*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1820*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1821*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 1822*c7ca977eSAlexander Kabaevelse 1823*c7ca977eSAlexander Kabaev if test -n "$ac_ct_CC"; then 1824*c7ca977eSAlexander Kabaev ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1825*c7ca977eSAlexander Kabaevelse 1826*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1827*c7ca977eSAlexander Kabaevfor as_dir in $PATH 1828*c7ca977eSAlexander Kabaevdo 1829*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 1830*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 1831*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 1832*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1833*c7ca977eSAlexander Kabaev ac_cv_prog_ac_ct_CC="$ac_prog" 1834*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1835*c7ca977eSAlexander Kabaev break 2 1836*c7ca977eSAlexander Kabaev fi 1837*c7ca977eSAlexander Kabaevdone 1838*c7ca977eSAlexander Kabaevdone 1839*c7ca977eSAlexander Kabaev 1840*c7ca977eSAlexander Kabaevfi 1841*c7ca977eSAlexander Kabaevfi 1842*c7ca977eSAlexander Kabaevac_ct_CC=$ac_cv_prog_ac_ct_CC 1843*c7ca977eSAlexander Kabaevif test -n "$ac_ct_CC"; then 1844*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1845*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_ct_CC" >&6 1846*c7ca977eSAlexander Kabaevelse 1847*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 1848*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 1849*c7ca977eSAlexander Kabaevfi 1850*c7ca977eSAlexander Kabaev 1851*c7ca977eSAlexander Kabaev test -n "$ac_ct_CC" && break 1852*c7ca977eSAlexander Kabaevdone 1853*c7ca977eSAlexander Kabaev 1854*c7ca977eSAlexander Kabaev CC=$ac_ct_CC 1855*c7ca977eSAlexander Kabaevfi 1856*c7ca977eSAlexander Kabaev 1857*c7ca977eSAlexander Kabaevfi 1858*c7ca977eSAlexander Kabaev 1859*c7ca977eSAlexander Kabaev 1860*c7ca977eSAlexander Kabaevtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1861*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 1862*c7ca977eSAlexander Kabaevecho "$as_me: error: no acceptable C compiler found in \$PATH 1863*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 1864*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1865*c7ca977eSAlexander Kabaev 1866*c7ca977eSAlexander Kabaev# Provide some information about the compiler. 1867*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO:" \ 1868*c7ca977eSAlexander Kabaev "checking for C compiler version" >&5 1869*c7ca977eSAlexander Kabaevac_compiler=`set X $ac_compile; echo $2` 1870*c7ca977eSAlexander Kabaev{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1871*c7ca977eSAlexander Kabaev (eval $ac_compiler --version </dev/null >&5) 2>&5 1872*c7ca977eSAlexander Kabaev ac_status=$? 1873*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 1874*c7ca977eSAlexander Kabaev (exit $ac_status); } 1875*c7ca977eSAlexander Kabaev{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1876*c7ca977eSAlexander Kabaev (eval $ac_compiler -v </dev/null >&5) 2>&5 1877*c7ca977eSAlexander Kabaev ac_status=$? 1878*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 1879*c7ca977eSAlexander Kabaev (exit $ac_status); } 1880*c7ca977eSAlexander Kabaev{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1881*c7ca977eSAlexander Kabaev (eval $ac_compiler -V </dev/null >&5) 2>&5 1882*c7ca977eSAlexander Kabaev ac_status=$? 1883*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 1884*c7ca977eSAlexander Kabaev (exit $ac_status); } 1885*c7ca977eSAlexander Kabaev 1886*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 1887*c7ca977eSAlexander Kabaev/* confdefs.h. */ 1888*c7ca977eSAlexander Kabaev_ACEOF 1889*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 1890*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 1891*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 1892*c7ca977eSAlexander Kabaev 1893*c7ca977eSAlexander Kabaevint 1894*c7ca977eSAlexander Kabaevmain () 1895*c7ca977eSAlexander Kabaev{ 1896*c7ca977eSAlexander Kabaev 1897*c7ca977eSAlexander Kabaev ; 1898*c7ca977eSAlexander Kabaev return 0; 1899*c7ca977eSAlexander Kabaev} 1900*c7ca977eSAlexander Kabaev_ACEOF 1901*c7ca977eSAlexander Kabaevac_clean_files_save=$ac_clean_files 1902*c7ca977eSAlexander Kabaevac_clean_files="$ac_clean_files a.out a.exe b.out" 1903*c7ca977eSAlexander Kabaev# Try to create an executable without -o first, disregard a.out. 1904*c7ca977eSAlexander Kabaev# It will help us diagnose broken compilers, and finding out an intuition 1905*c7ca977eSAlexander Kabaev# of exeext. 1906*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for C compiler default output file name" >&5 1907*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1908*c7ca977eSAlexander Kabaevac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1909*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1910*c7ca977eSAlexander Kabaev (eval $ac_link_default) 2>&5 1911*c7ca977eSAlexander Kabaev ac_status=$? 1912*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 1913*c7ca977eSAlexander Kabaev (exit $ac_status); }; then 1914*c7ca977eSAlexander Kabaev # Find the output, starting from the most likely. This scheme is 1915*c7ca977eSAlexander Kabaev# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1916*c7ca977eSAlexander Kabaev# resort. 1917*c7ca977eSAlexander Kabaev 1918*c7ca977eSAlexander Kabaev# Be careful to initialize this variable, since it used to be cached. 1919*c7ca977eSAlexander Kabaev# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1920*c7ca977eSAlexander Kabaevac_cv_exeext= 1921*c7ca977eSAlexander Kabaev# b.out is created by i960 compilers. 1922*c7ca977eSAlexander Kabaevfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1923*c7ca977eSAlexander Kabaevdo 1924*c7ca977eSAlexander Kabaev test -f "$ac_file" || continue 1925*c7ca977eSAlexander Kabaev case $ac_file in 1926*c7ca977eSAlexander Kabaev *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1927*c7ca977eSAlexander Kabaev ;; 1928*c7ca977eSAlexander Kabaev conftest.$ac_ext ) 1929*c7ca977eSAlexander Kabaev # This is the source file. 1930*c7ca977eSAlexander Kabaev ;; 1931*c7ca977eSAlexander Kabaev [ab].out ) 1932*c7ca977eSAlexander Kabaev # We found the default executable, but exeext='' is most 1933*c7ca977eSAlexander Kabaev # certainly right. 1934*c7ca977eSAlexander Kabaev break;; 1935*c7ca977eSAlexander Kabaev *.* ) 1936*c7ca977eSAlexander Kabaev ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1937*c7ca977eSAlexander Kabaev # FIXME: I believe we export ac_cv_exeext for Libtool, 1938*c7ca977eSAlexander Kabaev # but it would be cool to find out if it's true. Does anybody 1939*c7ca977eSAlexander Kabaev # maintain Libtool? --akim. 1940*c7ca977eSAlexander Kabaev export ac_cv_exeext 1941*c7ca977eSAlexander Kabaev break;; 1942*c7ca977eSAlexander Kabaev * ) 1943*c7ca977eSAlexander Kabaev break;; 1944*c7ca977eSAlexander Kabaev esac 1945*c7ca977eSAlexander Kabaevdone 1946*c7ca977eSAlexander Kabaevelse 1947*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 1948*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 1949*c7ca977eSAlexander Kabaev 1950*c7ca977eSAlexander Kabaev{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1951*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 1952*c7ca977eSAlexander Kabaevecho "$as_me: error: C compiler cannot create executables 1953*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 1954*c7ca977eSAlexander Kabaev { (exit 77); exit 77; }; } 1955*c7ca977eSAlexander Kabaevfi 1956*c7ca977eSAlexander Kabaev 1957*c7ca977eSAlexander Kabaevac_exeext=$ac_cv_exeext 1958*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_file" >&5 1959*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_file" >&6 1960*c7ca977eSAlexander Kabaev 1961*c7ca977eSAlexander Kabaev# Check the compiler produces executables we can run. If not, either 1962*c7ca977eSAlexander Kabaev# the compiler is broken, or we cross compile. 1963*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether the C compiler works" >&5 1964*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1965*c7ca977eSAlexander Kabaev# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1966*c7ca977eSAlexander Kabaev# If not cross compiling, check that we can run a simple program. 1967*c7ca977eSAlexander Kabaevif test "$cross_compiling" != yes; then 1968*c7ca977eSAlexander Kabaev if { ac_try='./$ac_file' 1969*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1970*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 1971*c7ca977eSAlexander Kabaev ac_status=$? 1972*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 1973*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 1974*c7ca977eSAlexander Kabaev cross_compiling=no 1975*c7ca977eSAlexander Kabaev else 1976*c7ca977eSAlexander Kabaev if test "$cross_compiling" = maybe; then 1977*c7ca977eSAlexander Kabaev cross_compiling=yes 1978*c7ca977eSAlexander Kabaev else 1979*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1980*c7ca977eSAlexander KabaevIf you meant to cross compile, use \`--host'. 1981*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 1982*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot run C compiled programs. 1983*c7ca977eSAlexander KabaevIf you meant to cross compile, use \`--host'. 1984*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 1985*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 1986*c7ca977eSAlexander Kabaev fi 1987*c7ca977eSAlexander Kabaev fi 1988*c7ca977eSAlexander Kabaevfi 1989*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: yes" >&5 1990*c7ca977eSAlexander Kabaevecho "${ECHO_T}yes" >&6 1991*c7ca977eSAlexander Kabaev 1992*c7ca977eSAlexander Kabaevrm -f a.out a.exe conftest$ac_cv_exeext b.out 1993*c7ca977eSAlexander Kabaevac_clean_files=$ac_clean_files_save 1994*c7ca977eSAlexander Kabaev# Check the compiler produces executables we can run. If not, either 1995*c7ca977eSAlexander Kabaev# the compiler is broken, or we cross compile. 1996*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether we are cross compiling" >&5 1997*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1998*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $cross_compiling" >&5 1999*c7ca977eSAlexander Kabaevecho "${ECHO_T}$cross_compiling" >&6 2000*c7ca977eSAlexander Kabaev 2001*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for suffix of executables" >&5 2002*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2003*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2004*c7ca977eSAlexander Kabaev (eval $ac_link) 2>&5 2005*c7ca977eSAlexander Kabaev ac_status=$? 2006*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2007*c7ca977eSAlexander Kabaev (exit $ac_status); }; then 2008*c7ca977eSAlexander Kabaev # If both `conftest.exe' and `conftest' are `present' (well, observable) 2009*c7ca977eSAlexander Kabaev# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2010*c7ca977eSAlexander Kabaev# work properly (i.e., refer to `conftest.exe'), while it won't with 2011*c7ca977eSAlexander Kabaev# `rm'. 2012*c7ca977eSAlexander Kabaevfor ac_file in conftest.exe conftest conftest.*; do 2013*c7ca977eSAlexander Kabaev test -f "$ac_file" || continue 2014*c7ca977eSAlexander Kabaev case $ac_file in 2015*c7ca977eSAlexander Kabaev *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2016*c7ca977eSAlexander Kabaev *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2017*c7ca977eSAlexander Kabaev export ac_cv_exeext 2018*c7ca977eSAlexander Kabaev break;; 2019*c7ca977eSAlexander Kabaev * ) break;; 2020*c7ca977eSAlexander Kabaev esac 2021*c7ca977eSAlexander Kabaevdone 2022*c7ca977eSAlexander Kabaevelse 2023*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2024*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 2025*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot compute suffix of executables: cannot compile and link 2026*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 2027*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 2028*c7ca977eSAlexander Kabaevfi 2029*c7ca977eSAlexander Kabaev 2030*c7ca977eSAlexander Kabaevrm -f conftest$ac_cv_exeext 2031*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2032*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_exeext" >&6 2033*c7ca977eSAlexander Kabaev 2034*c7ca977eSAlexander Kabaevrm -f conftest.$ac_ext 2035*c7ca977eSAlexander KabaevEXEEXT=$ac_cv_exeext 2036*c7ca977eSAlexander Kabaevac_exeext=$EXEEXT 2037*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for suffix of object files" >&5 2038*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2039*c7ca977eSAlexander Kabaevif test "${ac_cv_objext+set}" = set; then 2040*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2041*c7ca977eSAlexander Kabaevelse 2042*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 2043*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2044*c7ca977eSAlexander Kabaev_ACEOF 2045*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2046*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2047*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2048*c7ca977eSAlexander Kabaev 2049*c7ca977eSAlexander Kabaevint 2050*c7ca977eSAlexander Kabaevmain () 2051*c7ca977eSAlexander Kabaev{ 2052*c7ca977eSAlexander Kabaev 2053*c7ca977eSAlexander Kabaev ; 2054*c7ca977eSAlexander Kabaev return 0; 2055*c7ca977eSAlexander Kabaev} 2056*c7ca977eSAlexander Kabaev_ACEOF 2057*c7ca977eSAlexander Kabaevrm -f conftest.o conftest.obj 2058*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2059*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>&5 2060*c7ca977eSAlexander Kabaev ac_status=$? 2061*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2062*c7ca977eSAlexander Kabaev (exit $ac_status); }; then 2063*c7ca977eSAlexander Kabaev for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2064*c7ca977eSAlexander Kabaev case $ac_file in 2065*c7ca977eSAlexander Kabaev *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2066*c7ca977eSAlexander Kabaev *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2067*c7ca977eSAlexander Kabaev break;; 2068*c7ca977eSAlexander Kabaev esac 2069*c7ca977eSAlexander Kabaevdone 2070*c7ca977eSAlexander Kabaevelse 2071*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2072*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2073*c7ca977eSAlexander Kabaev 2074*c7ca977eSAlexander Kabaev{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2075*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 2076*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot compute suffix of object files: cannot compile 2077*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 2078*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 2079*c7ca977eSAlexander Kabaevfi 2080*c7ca977eSAlexander Kabaev 2081*c7ca977eSAlexander Kabaevrm -f conftest.$ac_cv_objext conftest.$ac_ext 2082*c7ca977eSAlexander Kabaevfi 2083*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_objext" >&5 2084*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_objext" >&6 2085*c7ca977eSAlexander KabaevOBJEXT=$ac_cv_objext 2086*c7ca977eSAlexander Kabaevac_objext=$OBJEXT 2087*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2088*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2089*c7ca977eSAlexander Kabaevif test "${ac_cv_c_compiler_gnu+set}" = set; then 2090*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2091*c7ca977eSAlexander Kabaevelse 2092*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 2093*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2094*c7ca977eSAlexander Kabaev_ACEOF 2095*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2096*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2097*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2098*c7ca977eSAlexander Kabaev 2099*c7ca977eSAlexander Kabaevint 2100*c7ca977eSAlexander Kabaevmain () 2101*c7ca977eSAlexander Kabaev{ 2102*c7ca977eSAlexander Kabaev#ifndef __GNUC__ 2103*c7ca977eSAlexander Kabaev choke me 2104*c7ca977eSAlexander Kabaev#endif 2105*c7ca977eSAlexander Kabaev 2106*c7ca977eSAlexander Kabaev ; 2107*c7ca977eSAlexander Kabaev return 0; 2108*c7ca977eSAlexander Kabaev} 2109*c7ca977eSAlexander Kabaev_ACEOF 2110*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 2111*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2112*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2113*c7ca977eSAlexander Kabaev ac_status=$? 2114*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2115*c7ca977eSAlexander Kabaev rm -f conftest.er1 2116*c7ca977eSAlexander Kabaev cat conftest.err >&5 2117*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2118*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2119*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2120*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2121*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2122*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2123*c7ca977eSAlexander Kabaev ac_status=$? 2124*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2125*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2126*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2127*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2128*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2129*c7ca977eSAlexander Kabaev ac_status=$? 2130*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2131*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 2132*c7ca977eSAlexander Kabaev ac_compiler_gnu=yes 2133*c7ca977eSAlexander Kabaevelse 2134*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2135*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2136*c7ca977eSAlexander Kabaev 2137*c7ca977eSAlexander Kabaevac_compiler_gnu=no 2138*c7ca977eSAlexander Kabaevfi 2139*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2140*c7ca977eSAlexander Kabaevac_cv_c_compiler_gnu=$ac_compiler_gnu 2141*c7ca977eSAlexander Kabaev 2142*c7ca977eSAlexander Kabaevfi 2143*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2144*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2145*c7ca977eSAlexander KabaevGCC=`test $ac_compiler_gnu = yes && echo yes` 2146*c7ca977eSAlexander Kabaevac_test_CFLAGS=${CFLAGS+set} 2147*c7ca977eSAlexander Kabaevac_save_CFLAGS=$CFLAGS 2148*c7ca977eSAlexander KabaevCFLAGS="-g" 2149*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2150*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2151*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_cc_g+set}" = set; then 2152*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2153*c7ca977eSAlexander Kabaevelse 2154*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 2155*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2156*c7ca977eSAlexander Kabaev_ACEOF 2157*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2158*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2159*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2160*c7ca977eSAlexander Kabaev 2161*c7ca977eSAlexander Kabaevint 2162*c7ca977eSAlexander Kabaevmain () 2163*c7ca977eSAlexander Kabaev{ 2164*c7ca977eSAlexander Kabaev 2165*c7ca977eSAlexander Kabaev ; 2166*c7ca977eSAlexander Kabaev return 0; 2167*c7ca977eSAlexander Kabaev} 2168*c7ca977eSAlexander Kabaev_ACEOF 2169*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 2170*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2171*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2172*c7ca977eSAlexander Kabaev ac_status=$? 2173*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2174*c7ca977eSAlexander Kabaev rm -f conftest.er1 2175*c7ca977eSAlexander Kabaev cat conftest.err >&5 2176*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2177*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2178*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2179*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2180*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2181*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2182*c7ca977eSAlexander Kabaev ac_status=$? 2183*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2184*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2185*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2186*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2187*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2188*c7ca977eSAlexander Kabaev ac_status=$? 2189*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2190*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 2191*c7ca977eSAlexander Kabaev ac_cv_prog_cc_g=yes 2192*c7ca977eSAlexander Kabaevelse 2193*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2194*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2195*c7ca977eSAlexander Kabaev 2196*c7ca977eSAlexander Kabaevac_cv_prog_cc_g=no 2197*c7ca977eSAlexander Kabaevfi 2198*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2199*c7ca977eSAlexander Kabaevfi 2200*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2201*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_prog_cc_g" >&6 2202*c7ca977eSAlexander Kabaevif test "$ac_test_CFLAGS" = set; then 2203*c7ca977eSAlexander Kabaev CFLAGS=$ac_save_CFLAGS 2204*c7ca977eSAlexander Kabaevelif test $ac_cv_prog_cc_g = yes; then 2205*c7ca977eSAlexander Kabaev if test "$GCC" = yes; then 2206*c7ca977eSAlexander Kabaev CFLAGS="-g -O2" 2207*c7ca977eSAlexander Kabaev else 2208*c7ca977eSAlexander Kabaev CFLAGS="-g" 2209*c7ca977eSAlexander Kabaev fi 2210*c7ca977eSAlexander Kabaevelse 2211*c7ca977eSAlexander Kabaev if test "$GCC" = yes; then 2212*c7ca977eSAlexander Kabaev CFLAGS="-O2" 2213*c7ca977eSAlexander Kabaev else 2214*c7ca977eSAlexander Kabaev CFLAGS= 2215*c7ca977eSAlexander Kabaev fi 2216*c7ca977eSAlexander Kabaevfi 2217*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2218*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2219*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_cc_stdc+set}" = set; then 2220*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2221*c7ca977eSAlexander Kabaevelse 2222*c7ca977eSAlexander Kabaev ac_cv_prog_cc_stdc=no 2223*c7ca977eSAlexander Kabaevac_save_CC=$CC 2224*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 2225*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2226*c7ca977eSAlexander Kabaev_ACEOF 2227*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2228*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2229*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2230*c7ca977eSAlexander Kabaev#include <stdarg.h> 2231*c7ca977eSAlexander Kabaev#include <stdio.h> 2232*c7ca977eSAlexander Kabaev#include <sys/types.h> 2233*c7ca977eSAlexander Kabaev#include <sys/stat.h> 2234*c7ca977eSAlexander Kabaev/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2235*c7ca977eSAlexander Kabaevstruct buf { int x; }; 2236*c7ca977eSAlexander KabaevFILE * (*rcsopen) (struct buf *, struct stat *, int); 2237*c7ca977eSAlexander Kabaevstatic char *e (p, i) 2238*c7ca977eSAlexander Kabaev char **p; 2239*c7ca977eSAlexander Kabaev int i; 2240*c7ca977eSAlexander Kabaev{ 2241*c7ca977eSAlexander Kabaev return p[i]; 2242*c7ca977eSAlexander Kabaev} 2243*c7ca977eSAlexander Kabaevstatic char *f (char * (*g) (char **, int), char **p, ...) 2244*c7ca977eSAlexander Kabaev{ 2245*c7ca977eSAlexander Kabaev char *s; 2246*c7ca977eSAlexander Kabaev va_list v; 2247*c7ca977eSAlexander Kabaev va_start (v,p); 2248*c7ca977eSAlexander Kabaev s = g (p, va_arg (v,int)); 2249*c7ca977eSAlexander Kabaev va_end (v); 2250*c7ca977eSAlexander Kabaev return s; 2251*c7ca977eSAlexander Kabaev} 2252*c7ca977eSAlexander Kabaev 2253*c7ca977eSAlexander Kabaev/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2254*c7ca977eSAlexander Kabaev function prototypes and stuff, but not '\xHH' hex character constants. 2255*c7ca977eSAlexander Kabaev These don't provoke an error unfortunately, instead are silently treated 2256*c7ca977eSAlexander Kabaev as 'x'. The following induces an error, until -std1 is added to get 2257*c7ca977eSAlexander Kabaev proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2258*c7ca977eSAlexander Kabaev array size at least. It's necessary to write '\x00'==0 to get something 2259*c7ca977eSAlexander Kabaev that's true only with -std1. */ 2260*c7ca977eSAlexander Kabaevint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2261*c7ca977eSAlexander Kabaev 2262*c7ca977eSAlexander Kabaevint test (int i, double x); 2263*c7ca977eSAlexander Kabaevstruct s1 {int (*f) (int a);}; 2264*c7ca977eSAlexander Kabaevstruct s2 {int (*f) (double a);}; 2265*c7ca977eSAlexander Kabaevint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2266*c7ca977eSAlexander Kabaevint argc; 2267*c7ca977eSAlexander Kabaevchar **argv; 2268*c7ca977eSAlexander Kabaevint 2269*c7ca977eSAlexander Kabaevmain () 2270*c7ca977eSAlexander Kabaev{ 2271*c7ca977eSAlexander Kabaevreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2272*c7ca977eSAlexander Kabaev ; 2273*c7ca977eSAlexander Kabaev return 0; 2274*c7ca977eSAlexander Kabaev} 2275*c7ca977eSAlexander Kabaev_ACEOF 2276*c7ca977eSAlexander Kabaev# Don't try gcc -ansi; that turns off useful extensions and 2277*c7ca977eSAlexander Kabaev# breaks some systems' header files. 2278*c7ca977eSAlexander Kabaev# AIX -qlanglvl=ansi 2279*c7ca977eSAlexander Kabaev# Ultrix and OSF/1 -std1 2280*c7ca977eSAlexander Kabaev# HP-UX 10.20 and later -Ae 2281*c7ca977eSAlexander Kabaev# HP-UX older versions -Aa -D_HPUX_SOURCE 2282*c7ca977eSAlexander Kabaev# SVR4 -Xc -D__EXTENSIONS__ 2283*c7ca977eSAlexander Kabaevfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2284*c7ca977eSAlexander Kabaevdo 2285*c7ca977eSAlexander Kabaev CC="$ac_save_CC $ac_arg" 2286*c7ca977eSAlexander Kabaev rm -f conftest.$ac_objext 2287*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2288*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2289*c7ca977eSAlexander Kabaev ac_status=$? 2290*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2291*c7ca977eSAlexander Kabaev rm -f conftest.er1 2292*c7ca977eSAlexander Kabaev cat conftest.err >&5 2293*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2294*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2295*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2296*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2297*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2298*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2299*c7ca977eSAlexander Kabaev ac_status=$? 2300*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2301*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2302*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2303*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2304*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2305*c7ca977eSAlexander Kabaev ac_status=$? 2306*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2307*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 2308*c7ca977eSAlexander Kabaev ac_cv_prog_cc_stdc=$ac_arg 2309*c7ca977eSAlexander Kabaevbreak 2310*c7ca977eSAlexander Kabaevelse 2311*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2312*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2313*c7ca977eSAlexander Kabaev 2314*c7ca977eSAlexander Kabaevfi 2315*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext 2316*c7ca977eSAlexander Kabaevdone 2317*c7ca977eSAlexander Kabaevrm -f conftest.$ac_ext conftest.$ac_objext 2318*c7ca977eSAlexander KabaevCC=$ac_save_CC 2319*c7ca977eSAlexander Kabaev 2320*c7ca977eSAlexander Kabaevfi 2321*c7ca977eSAlexander Kabaev 2322*c7ca977eSAlexander Kabaevcase "x$ac_cv_prog_cc_stdc" in 2323*c7ca977eSAlexander Kabaev x|xno) 2324*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: none needed" >&5 2325*c7ca977eSAlexander Kabaevecho "${ECHO_T}none needed" >&6 ;; 2326*c7ca977eSAlexander Kabaev *) 2327*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2328*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2329*c7ca977eSAlexander Kabaev CC="$CC $ac_cv_prog_cc_stdc" ;; 2330*c7ca977eSAlexander Kabaevesac 2331*c7ca977eSAlexander Kabaev 2332*c7ca977eSAlexander Kabaev# Some people use a C++ compiler to compile C. Since we use `exit', 2333*c7ca977eSAlexander Kabaev# in C++ we need to declare it. In case someone uses the same compiler 2334*c7ca977eSAlexander Kabaev# for both compiling C and C++ we need to have the C++ compiler decide 2335*c7ca977eSAlexander Kabaev# the declaration of exit, since it's the most demanding environment. 2336*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 2337*c7ca977eSAlexander Kabaev#ifndef __cplusplus 2338*c7ca977eSAlexander Kabaev choke me 2339*c7ca977eSAlexander Kabaev#endif 2340*c7ca977eSAlexander Kabaev_ACEOF 2341*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 2342*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2343*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2344*c7ca977eSAlexander Kabaev ac_status=$? 2345*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2346*c7ca977eSAlexander Kabaev rm -f conftest.er1 2347*c7ca977eSAlexander Kabaev cat conftest.err >&5 2348*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2349*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2350*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2351*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2352*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2353*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2354*c7ca977eSAlexander Kabaev ac_status=$? 2355*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2356*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2357*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2358*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2359*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2360*c7ca977eSAlexander Kabaev ac_status=$? 2361*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2362*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 2363*c7ca977eSAlexander Kabaev for ac_declaration in \ 2364*c7ca977eSAlexander Kabaev '' \ 2365*c7ca977eSAlexander Kabaev 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2366*c7ca977eSAlexander Kabaev 'extern "C" void std::exit (int); using std::exit;' \ 2367*c7ca977eSAlexander Kabaev 'extern "C" void exit (int) throw ();' \ 2368*c7ca977eSAlexander Kabaev 'extern "C" void exit (int);' \ 2369*c7ca977eSAlexander Kabaev 'void exit (int);' 2370*c7ca977eSAlexander Kabaevdo 2371*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 2372*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2373*c7ca977eSAlexander Kabaev_ACEOF 2374*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2375*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2376*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2377*c7ca977eSAlexander Kabaev$ac_declaration 2378*c7ca977eSAlexander Kabaev#include <stdlib.h> 2379*c7ca977eSAlexander Kabaevint 2380*c7ca977eSAlexander Kabaevmain () 2381*c7ca977eSAlexander Kabaev{ 2382*c7ca977eSAlexander Kabaevexit (42); 2383*c7ca977eSAlexander Kabaev ; 2384*c7ca977eSAlexander Kabaev return 0; 2385*c7ca977eSAlexander Kabaev} 2386*c7ca977eSAlexander Kabaev_ACEOF 2387*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 2388*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2389*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2390*c7ca977eSAlexander Kabaev ac_status=$? 2391*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2392*c7ca977eSAlexander Kabaev rm -f conftest.er1 2393*c7ca977eSAlexander Kabaev cat conftest.err >&5 2394*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2396*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2397*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2398*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2399*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2400*c7ca977eSAlexander Kabaev ac_status=$? 2401*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2403*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2404*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2406*c7ca977eSAlexander Kabaev ac_status=$? 2407*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 2409*c7ca977eSAlexander Kabaev : 2410*c7ca977eSAlexander Kabaevelse 2411*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2412*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2413*c7ca977eSAlexander Kabaev 2414*c7ca977eSAlexander Kabaevcontinue 2415*c7ca977eSAlexander Kabaevfi 2416*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2417*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 2418*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2419*c7ca977eSAlexander Kabaev_ACEOF 2420*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2421*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2422*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2423*c7ca977eSAlexander Kabaev$ac_declaration 2424*c7ca977eSAlexander Kabaevint 2425*c7ca977eSAlexander Kabaevmain () 2426*c7ca977eSAlexander Kabaev{ 2427*c7ca977eSAlexander Kabaevexit (42); 2428*c7ca977eSAlexander Kabaev ; 2429*c7ca977eSAlexander Kabaev return 0; 2430*c7ca977eSAlexander Kabaev} 2431*c7ca977eSAlexander Kabaev_ACEOF 2432*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 2433*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2434*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2435*c7ca977eSAlexander Kabaev ac_status=$? 2436*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2437*c7ca977eSAlexander Kabaev rm -f conftest.er1 2438*c7ca977eSAlexander Kabaev cat conftest.err >&5 2439*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2441*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2442*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2443*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2444*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2445*c7ca977eSAlexander Kabaev ac_status=$? 2446*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2447*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2448*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2449*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2450*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2451*c7ca977eSAlexander Kabaev ac_status=$? 2452*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2453*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 2454*c7ca977eSAlexander Kabaev break 2455*c7ca977eSAlexander Kabaevelse 2456*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2457*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2458*c7ca977eSAlexander Kabaev 2459*c7ca977eSAlexander Kabaevfi 2460*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2461*c7ca977eSAlexander Kabaevdone 2462*c7ca977eSAlexander Kabaevrm -f conftest* 2463*c7ca977eSAlexander Kabaevif test -n "$ac_declaration"; then 2464*c7ca977eSAlexander Kabaev echo '#ifdef __cplusplus' >>confdefs.h 2465*c7ca977eSAlexander Kabaev echo $ac_declaration >>confdefs.h 2466*c7ca977eSAlexander Kabaev echo '#endif' >>confdefs.h 2467*c7ca977eSAlexander Kabaevfi 2468*c7ca977eSAlexander Kabaev 2469*c7ca977eSAlexander Kabaevelse 2470*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2471*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2472*c7ca977eSAlexander Kabaev 2473*c7ca977eSAlexander Kabaevfi 2474*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2475*c7ca977eSAlexander Kabaevac_ext=c 2476*c7ca977eSAlexander Kabaevac_cpp='$CPP $CPPFLAGS' 2477*c7ca977eSAlexander Kabaevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2478*c7ca977eSAlexander Kabaevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2479*c7ca977eSAlexander Kabaevac_compiler_gnu=$ac_cv_c_compiler_gnu 2480*c7ca977eSAlexander Kabaev 2481*c7ca977eSAlexander Kabaevif test -n "$ac_tool_prefix"; then 2482*c7ca977eSAlexander Kabaev # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2483*c7ca977eSAlexander Kabaevset dummy ${ac_tool_prefix}ranlib; ac_word=$2 2484*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 2485*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2486*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_RANLIB+set}" = set; then 2487*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2488*c7ca977eSAlexander Kabaevelse 2489*c7ca977eSAlexander Kabaev if test -n "$RANLIB"; then 2490*c7ca977eSAlexander Kabaev ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2491*c7ca977eSAlexander Kabaevelse 2492*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493*c7ca977eSAlexander Kabaevfor as_dir in $PATH 2494*c7ca977eSAlexander Kabaevdo 2495*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 2496*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 2497*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 2498*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2499*c7ca977eSAlexander Kabaev ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2500*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2501*c7ca977eSAlexander Kabaev break 2 2502*c7ca977eSAlexander Kabaev fi 2503*c7ca977eSAlexander Kabaevdone 2504*c7ca977eSAlexander Kabaevdone 2505*c7ca977eSAlexander Kabaev 2506*c7ca977eSAlexander Kabaevfi 2507*c7ca977eSAlexander Kabaevfi 2508*c7ca977eSAlexander KabaevRANLIB=$ac_cv_prog_RANLIB 2509*c7ca977eSAlexander Kabaevif test -n "$RANLIB"; then 2510*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $RANLIB" >&5 2511*c7ca977eSAlexander Kabaevecho "${ECHO_T}$RANLIB" >&6 2512*c7ca977eSAlexander Kabaevelse 2513*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 2514*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 2515*c7ca977eSAlexander Kabaevfi 2516*c7ca977eSAlexander Kabaev 2517*c7ca977eSAlexander Kabaevfi 2518*c7ca977eSAlexander Kabaevif test -z "$ac_cv_prog_RANLIB"; then 2519*c7ca977eSAlexander Kabaev ac_ct_RANLIB=$RANLIB 2520*c7ca977eSAlexander Kabaev # Extract the first word of "ranlib", so it can be a program name with args. 2521*c7ca977eSAlexander Kabaevset dummy ranlib; ac_word=$2 2522*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 2523*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2524*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2525*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2526*c7ca977eSAlexander Kabaevelse 2527*c7ca977eSAlexander Kabaev if test -n "$ac_ct_RANLIB"; then 2528*c7ca977eSAlexander Kabaev ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2529*c7ca977eSAlexander Kabaevelse 2530*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531*c7ca977eSAlexander Kabaevfor as_dir in $PATH 2532*c7ca977eSAlexander Kabaevdo 2533*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 2534*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 2535*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 2536*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2537*c7ca977eSAlexander Kabaev ac_cv_prog_ac_ct_RANLIB="ranlib" 2538*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2539*c7ca977eSAlexander Kabaev break 2 2540*c7ca977eSAlexander Kabaev fi 2541*c7ca977eSAlexander Kabaevdone 2542*c7ca977eSAlexander Kabaevdone 2543*c7ca977eSAlexander Kabaev 2544*c7ca977eSAlexander Kabaev test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2545*c7ca977eSAlexander Kabaevfi 2546*c7ca977eSAlexander Kabaevfi 2547*c7ca977eSAlexander Kabaevac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2548*c7ca977eSAlexander Kabaevif test -n "$ac_ct_RANLIB"; then 2549*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2550*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_ct_RANLIB" >&6 2551*c7ca977eSAlexander Kabaevelse 2552*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 2553*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 2554*c7ca977eSAlexander Kabaevfi 2555*c7ca977eSAlexander Kabaev 2556*c7ca977eSAlexander Kabaev RANLIB=$ac_ct_RANLIB 2557*c7ca977eSAlexander Kabaevelse 2558*c7ca977eSAlexander Kabaev RANLIB="$ac_cv_prog_RANLIB" 2559*c7ca977eSAlexander Kabaevfi 2560*c7ca977eSAlexander Kabaev 2561*c7ca977eSAlexander Kabaev 2562*c7ca977eSAlexander KabaevMISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 2563*c7ca977eSAlexander Kabaevfor ac_prog in aclocal 2564*c7ca977eSAlexander Kabaevdo 2565*c7ca977eSAlexander Kabaev # Extract the first word of "$ac_prog", so it can be a program name with args. 2566*c7ca977eSAlexander Kabaevset dummy $ac_prog; ac_word=$2 2567*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 2568*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2569*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_ACLOCAL+set}" = set; then 2570*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2571*c7ca977eSAlexander Kabaevelse 2572*c7ca977eSAlexander Kabaev if test -n "$ACLOCAL"; then 2573*c7ca977eSAlexander Kabaev ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. 2574*c7ca977eSAlexander Kabaevelse 2575*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2576*c7ca977eSAlexander Kabaevfor as_dir in $PATH 2577*c7ca977eSAlexander Kabaevdo 2578*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 2579*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 2580*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 2581*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2582*c7ca977eSAlexander Kabaev ac_cv_prog_ACLOCAL="$ac_prog" 2583*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2584*c7ca977eSAlexander Kabaev break 2 2585*c7ca977eSAlexander Kabaev fi 2586*c7ca977eSAlexander Kabaevdone 2587*c7ca977eSAlexander Kabaevdone 2588*c7ca977eSAlexander Kabaev 2589*c7ca977eSAlexander Kabaevfi 2590*c7ca977eSAlexander Kabaevfi 2591*c7ca977eSAlexander KabaevACLOCAL=$ac_cv_prog_ACLOCAL 2592*c7ca977eSAlexander Kabaevif test -n "$ACLOCAL"; then 2593*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $ACLOCAL" >&5 2594*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ACLOCAL" >&6 2595*c7ca977eSAlexander Kabaevelse 2596*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 2597*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 2598*c7ca977eSAlexander Kabaevfi 2599*c7ca977eSAlexander Kabaev 2600*c7ca977eSAlexander Kabaev test -n "$ACLOCAL" && break 2601*c7ca977eSAlexander Kabaevdone 2602*c7ca977eSAlexander Kabaevtest -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" 2603*c7ca977eSAlexander Kabaev 2604*c7ca977eSAlexander Kabaevfor ac_prog in autoconf 2605*c7ca977eSAlexander Kabaevdo 2606*c7ca977eSAlexander Kabaev # Extract the first word of "$ac_prog", so it can be a program name with args. 2607*c7ca977eSAlexander Kabaevset dummy $ac_prog; ac_word=$2 2608*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 2609*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2610*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_AUTOCONF+set}" = set; then 2611*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2612*c7ca977eSAlexander Kabaevelse 2613*c7ca977eSAlexander Kabaev if test -n "$AUTOCONF"; then 2614*c7ca977eSAlexander Kabaev ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. 2615*c7ca977eSAlexander Kabaevelse 2616*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2617*c7ca977eSAlexander Kabaevfor as_dir in $PATH 2618*c7ca977eSAlexander Kabaevdo 2619*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 2620*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 2621*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 2622*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2623*c7ca977eSAlexander Kabaev ac_cv_prog_AUTOCONF="$ac_prog" 2624*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2625*c7ca977eSAlexander Kabaev break 2 2626*c7ca977eSAlexander Kabaev fi 2627*c7ca977eSAlexander Kabaevdone 2628*c7ca977eSAlexander Kabaevdone 2629*c7ca977eSAlexander Kabaev 2630*c7ca977eSAlexander Kabaevfi 2631*c7ca977eSAlexander Kabaevfi 2632*c7ca977eSAlexander KabaevAUTOCONF=$ac_cv_prog_AUTOCONF 2633*c7ca977eSAlexander Kabaevif test -n "$AUTOCONF"; then 2634*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $AUTOCONF" >&5 2635*c7ca977eSAlexander Kabaevecho "${ECHO_T}$AUTOCONF" >&6 2636*c7ca977eSAlexander Kabaevelse 2637*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 2638*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 2639*c7ca977eSAlexander Kabaevfi 2640*c7ca977eSAlexander Kabaev 2641*c7ca977eSAlexander Kabaev test -n "$AUTOCONF" && break 2642*c7ca977eSAlexander Kabaevdone 2643*c7ca977eSAlexander Kabaevtest -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" 2644*c7ca977eSAlexander Kabaev 2645*c7ca977eSAlexander Kabaevfor ac_prog in autoheader 2646*c7ca977eSAlexander Kabaevdo 2647*c7ca977eSAlexander Kabaev # Extract the first word of "$ac_prog", so it can be a program name with args. 2648*c7ca977eSAlexander Kabaevset dummy $ac_prog; ac_word=$2 2649*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_word" >&5 2650*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2651*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_AUTOHEADER+set}" = set; then 2652*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2653*c7ca977eSAlexander Kabaevelse 2654*c7ca977eSAlexander Kabaev if test -n "$AUTOHEADER"; then 2655*c7ca977eSAlexander Kabaev ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. 2656*c7ca977eSAlexander Kabaevelse 2657*c7ca977eSAlexander Kabaevas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2658*c7ca977eSAlexander Kabaevfor as_dir in $PATH 2659*c7ca977eSAlexander Kabaevdo 2660*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 2661*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 2662*c7ca977eSAlexander Kabaev for ac_exec_ext in '' $ac_executable_extensions; do 2663*c7ca977eSAlexander Kabaev if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2664*c7ca977eSAlexander Kabaev ac_cv_prog_AUTOHEADER="$ac_prog" 2665*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2666*c7ca977eSAlexander Kabaev break 2 2667*c7ca977eSAlexander Kabaev fi 2668*c7ca977eSAlexander Kabaevdone 2669*c7ca977eSAlexander Kabaevdone 2670*c7ca977eSAlexander Kabaev 2671*c7ca977eSAlexander Kabaevfi 2672*c7ca977eSAlexander Kabaevfi 2673*c7ca977eSAlexander KabaevAUTOHEADER=$ac_cv_prog_AUTOHEADER 2674*c7ca977eSAlexander Kabaevif test -n "$AUTOHEADER"; then 2675*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $AUTOHEADER" >&5 2676*c7ca977eSAlexander Kabaevecho "${ECHO_T}$AUTOHEADER" >&6 2677*c7ca977eSAlexander Kabaevelse 2678*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 2679*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 2680*c7ca977eSAlexander Kabaevfi 2681*c7ca977eSAlexander Kabaev 2682*c7ca977eSAlexander Kabaev test -n "$AUTOHEADER" && break 2683*c7ca977eSAlexander Kabaevdone 2684*c7ca977eSAlexander Kabaevtest -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" 2685*c7ca977eSAlexander Kabaev 2686*c7ca977eSAlexander Kabaev 2687*c7ca977eSAlexander Kabaev# Figure out what compiler warnings we can enable. 2688*c7ca977eSAlexander Kabaev# See config/warnings.m4 for details. 2689*c7ca977eSAlexander Kabaev 2690*c7ca977eSAlexander Kabaev 2691*c7ca977eSAlexander KabaevWARN_CFLAGS= 2692*c7ca977eSAlexander Kabaevsave_CFLAGS="$CFLAGS" 2693*c7ca977eSAlexander Kabaevfor option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ 2694*c7ca977eSAlexander Kabaev -Wmissing-prototypes -Wold-style-definition \ 2695*c7ca977eSAlexander Kabaev -Wmissing-format-attribute; do 2696*c7ca977eSAlexander Kabaev as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 2697*c7ca977eSAlexander Kabaev 2698*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking whether $CC supports $option" >&5 2699*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6 2700*c7ca977eSAlexander Kabaevif eval "test \"\${$as_acx_Woption+set}\" = set"; then 2701*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2702*c7ca977eSAlexander Kabaevelse 2703*c7ca977eSAlexander Kabaev CFLAGS="$option" 2704*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 2705*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2706*c7ca977eSAlexander Kabaev_ACEOF 2707*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2708*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2709*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2710*c7ca977eSAlexander Kabaev 2711*c7ca977eSAlexander Kabaevint 2712*c7ca977eSAlexander Kabaevmain () 2713*c7ca977eSAlexander Kabaev{ 2714*c7ca977eSAlexander Kabaev 2715*c7ca977eSAlexander Kabaev ; 2716*c7ca977eSAlexander Kabaev return 0; 2717*c7ca977eSAlexander Kabaev} 2718*c7ca977eSAlexander Kabaev_ACEOF 2719*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 2720*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2721*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2722*c7ca977eSAlexander Kabaev ac_status=$? 2723*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2724*c7ca977eSAlexander Kabaev rm -f conftest.er1 2725*c7ca977eSAlexander Kabaev cat conftest.err >&5 2726*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2728*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2729*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2730*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2731*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2732*c7ca977eSAlexander Kabaev ac_status=$? 2733*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2734*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2735*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2736*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2737*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2738*c7ca977eSAlexander Kabaev ac_status=$? 2739*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 2741*c7ca977eSAlexander Kabaev eval "$as_acx_Woption=yes" 2742*c7ca977eSAlexander Kabaevelse 2743*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2744*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2745*c7ca977eSAlexander Kabaev 2746*c7ca977eSAlexander Kabaeveval "$as_acx_Woption=no" 2747*c7ca977eSAlexander Kabaevfi 2748*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2749*c7ca977eSAlexander Kabaev 2750*c7ca977eSAlexander Kabaevfi 2751*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5 2752*c7ca977eSAlexander Kabaevecho "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6 2753*c7ca977eSAlexander Kabaev if test `eval echo '${'$as_acx_Woption'}'` = yes; then 2754*c7ca977eSAlexander Kabaev WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option" 2755*c7ca977eSAlexander Kabaevfi 2756*c7ca977eSAlexander Kabaev 2757*c7ca977eSAlexander Kabaev done 2758*c7ca977eSAlexander KabaevCFLAGS="$save_CFLAGS" 2759*c7ca977eSAlexander Kabaev 2760*c7ca977eSAlexander KabaevWARN_PEDANTIC= 2761*c7ca977eSAlexander Kabaevif test "$GCC" = yes; then 2762*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5 2763*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6 2764*c7ca977eSAlexander Kabaevif test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then 2765*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2766*c7ca977eSAlexander Kabaevelse 2767*c7ca977eSAlexander Kabaev save_CFLAGS="$CFLAGS" 2768*c7ca977eSAlexander KabaevCFLAGS="-pedantic -Wno-long-long" 2769*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 2770*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2771*c7ca977eSAlexander Kabaev_ACEOF 2772*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2773*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2774*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2775*c7ca977eSAlexander Kabaev 2776*c7ca977eSAlexander Kabaevint 2777*c7ca977eSAlexander Kabaevmain () 2778*c7ca977eSAlexander Kabaev{ 2779*c7ca977eSAlexander Kabaev 2780*c7ca977eSAlexander Kabaev ; 2781*c7ca977eSAlexander Kabaev return 0; 2782*c7ca977eSAlexander Kabaev} 2783*c7ca977eSAlexander Kabaev_ACEOF 2784*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 2785*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2786*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2787*c7ca977eSAlexander Kabaev ac_status=$? 2788*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2789*c7ca977eSAlexander Kabaev rm -f conftest.er1 2790*c7ca977eSAlexander Kabaev cat conftest.err >&5 2791*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2793*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2794*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2795*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2796*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2797*c7ca977eSAlexander Kabaev ac_status=$? 2798*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2799*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2800*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2801*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2802*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2803*c7ca977eSAlexander Kabaev ac_status=$? 2804*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 2806*c7ca977eSAlexander Kabaev acx_cv_prog_cc_pedantic__Wno_long_long=yes 2807*c7ca977eSAlexander Kabaevelse 2808*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 2809*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 2810*c7ca977eSAlexander Kabaev 2811*c7ca977eSAlexander Kabaevacx_cv_prog_cc_pedantic__Wno_long_long=no 2812*c7ca977eSAlexander Kabaevfi 2813*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2814*c7ca977eSAlexander KabaevCFLAGS="$save_CFLAGS" 2815*c7ca977eSAlexander Kabaevfi 2816*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5 2817*c7ca977eSAlexander Kabaevecho "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6 2818*c7ca977eSAlexander Kabaevif test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then 2819*c7ca977eSAlexander Kabaev WARN_PEDANTIC="-pedantic -Wno-long-long" 2820*c7ca977eSAlexander Kabaevfi 2821*c7ca977eSAlexander Kabaev 2822*c7ca977eSAlexander Kabaev 2823*c7ca977eSAlexander Kabaevfi 2824*c7ca977eSAlexander Kabaev 2825*c7ca977eSAlexander Kabaev 2826*c7ca977eSAlexander Kabaev 2827*c7ca977eSAlexander Kabaev# Only enable with --enable-werror-always until existing warnings are 2828*c7ca977eSAlexander Kabaev# corrected. 2829*c7ca977eSAlexander KabaevWERROR= 2830*c7ca977eSAlexander Kabaev# Check whether --enable-werror-always or --disable-werror-always was given. 2831*c7ca977eSAlexander Kabaevif test "${enable_werror_always+set}" = set; then 2832*c7ca977eSAlexander Kabaev enableval="$enable_werror_always" 2833*c7ca977eSAlexander Kabaev 2834*c7ca977eSAlexander Kabaevelse 2835*c7ca977eSAlexander Kabaev enable_werror_always=no 2836*c7ca977eSAlexander Kabaevfi; 2837*c7ca977eSAlexander Kabaevif test $enable_werror_always = yes; then 2838*c7ca977eSAlexander Kabaev WERROR=-Werror 2839*c7ca977eSAlexander Kabaevfi 2840*c7ca977eSAlexander Kabaev 2841*c7ca977eSAlexander Kabaev 2842*c7ca977eSAlexander Kabaev 2843*c7ca977eSAlexander Kabaev# Dependency checking. 2844*c7ca977eSAlexander Kabaevrm -rf .tst 2>/dev/null 2845*c7ca977eSAlexander Kabaevmkdir .tst 2>/dev/null 2846*c7ca977eSAlexander Kabaevif test -d .tst; then 2847*c7ca977eSAlexander Kabaev am__leading_dot=. 2848*c7ca977eSAlexander Kabaevelse 2849*c7ca977eSAlexander Kabaev am__leading_dot=_ 2850*c7ca977eSAlexander Kabaevfi 2851*c7ca977eSAlexander Kabaevrmdir .tst 2>/dev/null 2852*c7ca977eSAlexander Kabaev 2853*c7ca977eSAlexander KabaevDEPDIR="${am__leading_dot}deps" 2854*c7ca977eSAlexander Kabaev 2855*c7ca977eSAlexander Kabaev ac_config_commands="$ac_config_commands depdir" 2856*c7ca977eSAlexander Kabaev 2857*c7ca977eSAlexander Kabaev 2858*c7ca977eSAlexander Kabaevdepcc="$CC" am_compiler_list= 2859*c7ca977eSAlexander Kabaev 2860*c7ca977eSAlexander Kabaevam_depcomp=$ac_aux_dir/depcomp 2861*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking dependency style of $depcc" >&5 2862*c7ca977eSAlexander Kabaevecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2863*c7ca977eSAlexander Kabaevif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2864*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2865*c7ca977eSAlexander Kabaevelse 2866*c7ca977eSAlexander Kabaev if test -f "$am_depcomp"; then 2867*c7ca977eSAlexander Kabaev # We make a subdir and do the tests there. Otherwise we can end up 2868*c7ca977eSAlexander Kabaev # making bogus files that we don't know about and never remove. For 2869*c7ca977eSAlexander Kabaev # instance it was reported that on HP-UX the gcc test will end up 2870*c7ca977eSAlexander Kabaev # making a dummy file named `D' -- because `-MD' means `put the output 2871*c7ca977eSAlexander Kabaev # in D'. 2872*c7ca977eSAlexander Kabaev mkdir conftest.dir 2873*c7ca977eSAlexander Kabaev # Copy depcomp to subdir because otherwise we won't find it if we're 2874*c7ca977eSAlexander Kabaev # using a relative directory. 2875*c7ca977eSAlexander Kabaev cp "$am_depcomp" conftest.dir 2876*c7ca977eSAlexander Kabaev cd conftest.dir 2877*c7ca977eSAlexander Kabaev # We will build objects and dependencies in a subdirectory because 2878*c7ca977eSAlexander Kabaev # it helps to detect inapplicable dependency modes. For instance 2879*c7ca977eSAlexander Kabaev # both Tru64's cc and ICC support -MD to output dependencies as a 2880*c7ca977eSAlexander Kabaev # side effect of compilation, but ICC will put the dependencies in 2881*c7ca977eSAlexander Kabaev # the current directory while Tru64 will put them in the object 2882*c7ca977eSAlexander Kabaev # directory. 2883*c7ca977eSAlexander Kabaev mkdir sub 2884*c7ca977eSAlexander Kabaev 2885*c7ca977eSAlexander Kabaev am_cv_CC_dependencies_compiler_type=none 2886*c7ca977eSAlexander Kabaev if test "$am_compiler_list" = ""; then 2887*c7ca977eSAlexander Kabaev am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2888*c7ca977eSAlexander Kabaev fi 2889*c7ca977eSAlexander Kabaev for depmode in $am_compiler_list; do 2890*c7ca977eSAlexander Kabaev if test $depmode = none; then break; fi 2891*c7ca977eSAlexander Kabaev 2892*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: trying $depmode" >&5 2893*c7ca977eSAlexander Kabaev # Setup a source with many dependencies, because some compilers 2894*c7ca977eSAlexander Kabaev # like to wrap large dependency lists on column 80 (with \), and 2895*c7ca977eSAlexander Kabaev # we should not choose a depcomp mode which is confused by this. 2896*c7ca977eSAlexander Kabaev # 2897*c7ca977eSAlexander Kabaev # We need to recreate these files for each test, as the compiler may 2898*c7ca977eSAlexander Kabaev # overwrite some of them when testing with obscure command lines. 2899*c7ca977eSAlexander Kabaev # This happens at least with the AIX C compiler. 2900*c7ca977eSAlexander Kabaev : > sub/conftest.c 2901*c7ca977eSAlexander Kabaev for i in 1 2 3 4 5 6; do 2902*c7ca977eSAlexander Kabaev echo '#include "conftst'$i'.h"' >> sub/conftest.c 2903*c7ca977eSAlexander Kabaev # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2904*c7ca977eSAlexander Kabaev # Solaris 8's {/usr,}/bin/sh. 2905*c7ca977eSAlexander Kabaev touch sub/conftst$i.h 2906*c7ca977eSAlexander Kabaev done 2907*c7ca977eSAlexander Kabaev echo "include sub/conftest.Po" > confmf 2908*c7ca977eSAlexander Kabaev 2909*c7ca977eSAlexander Kabaev # We check with `-c' and `-o' for the sake of the "dashmstdout" 2910*c7ca977eSAlexander Kabaev # mode. It turns out that the SunPro C++ compiler does not properly 2911*c7ca977eSAlexander Kabaev # handle `-M -o', and we need to detect this. 2912*c7ca977eSAlexander Kabaev depcmd="depmode=$depmode \ 2913*c7ca977eSAlexander Kabaev source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2914*c7ca977eSAlexander Kabaev depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2915*c7ca977eSAlexander Kabaev $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" 2916*c7ca977eSAlexander Kabaev echo "| $depcmd" | sed -e 's/ */ /g' >&5 2917*c7ca977eSAlexander Kabaev if env $depcmd > conftest.err 2>&1 && 2918*c7ca977eSAlexander Kabaev grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && 2919*c7ca977eSAlexander Kabaev grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && 2920*c7ca977eSAlexander Kabaev ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then 2921*c7ca977eSAlexander Kabaev # icc doesn't choke on unknown options, it will just issue warnings 2922*c7ca977eSAlexander Kabaev # or remarks (even with -Werror). So we grep stderr for any message 2923*c7ca977eSAlexander Kabaev # that says an option was ignored or not supported. 2924*c7ca977eSAlexander Kabaev # When given -MP, icc 7.0 and 7.1 complain thusly: 2925*c7ca977eSAlexander Kabaev # icc: Command line warning: ignoring option '-M'; no argument required 2926*c7ca977eSAlexander Kabaev # The diagnosis changed in icc 8.0: 2927*c7ca977eSAlexander Kabaev # icc: Command line remark: option '-MP' not supported 2928*c7ca977eSAlexander Kabaev if (grep 'ignoring option' conftest.err || 2929*c7ca977eSAlexander Kabaev grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2930*c7ca977eSAlexander Kabaev am_cv_CC_dependencies_compiler_type=$depmode 2931*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: success" >&5 2932*c7ca977eSAlexander Kabaev break 2933*c7ca977eSAlexander Kabaev fi 2934*c7ca977eSAlexander Kabaev fi 2935*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: failure, diagnostics are:" >&5 2936*c7ca977eSAlexander Kabaev sed -e 's/^/| /' < conftest.err >&5 2937*c7ca977eSAlexander Kabaev done 2938*c7ca977eSAlexander Kabaev 2939*c7ca977eSAlexander Kabaev cd .. 2940*c7ca977eSAlexander Kabaev rm -rf conftest.dir 2941*c7ca977eSAlexander Kabaevelse 2942*c7ca977eSAlexander Kabaev am_cv_CC_dependencies_compiler_type=none 2943*c7ca977eSAlexander Kabaevfi 2944*c7ca977eSAlexander Kabaev 2945*c7ca977eSAlexander Kabaevfi 2946*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2947*c7ca977eSAlexander Kabaevecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2948*c7ca977eSAlexander Kabaevif test x${am_cv_CC_dependencies_compiler_type-none} = xnone 2949*c7ca977eSAlexander Kabaevthen { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5 2950*c7ca977eSAlexander Kabaevecho "$as_me: error: no usable dependency style found" >&2;} 2951*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 2952*c7ca977eSAlexander Kabaevelse CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2953*c7ca977eSAlexander Kabaev 2954*c7ca977eSAlexander Kabaevfi 2955*c7ca977eSAlexander Kabaev 2956*c7ca977eSAlexander Kabaev 2957*c7ca977eSAlexander Kabaev# Checks for header files. 2958*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 2959*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 2960*c7ca977eSAlexander Kabaevif test "${ac_cv_header_time+set}" = set; then 2961*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 2962*c7ca977eSAlexander Kabaevelse 2963*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 2964*c7ca977eSAlexander Kabaev/* confdefs.h. */ 2965*c7ca977eSAlexander Kabaev_ACEOF 2966*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 2967*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 2968*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 2969*c7ca977eSAlexander Kabaev#include <sys/types.h> 2970*c7ca977eSAlexander Kabaev#include <sys/time.h> 2971*c7ca977eSAlexander Kabaev#include <time.h> 2972*c7ca977eSAlexander Kabaev 2973*c7ca977eSAlexander Kabaevint 2974*c7ca977eSAlexander Kabaevmain () 2975*c7ca977eSAlexander Kabaev{ 2976*c7ca977eSAlexander Kabaevif ((struct tm *) 0) 2977*c7ca977eSAlexander Kabaevreturn 0; 2978*c7ca977eSAlexander Kabaev ; 2979*c7ca977eSAlexander Kabaev return 0; 2980*c7ca977eSAlexander Kabaev} 2981*c7ca977eSAlexander Kabaev_ACEOF 2982*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 2983*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2984*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 2985*c7ca977eSAlexander Kabaev ac_status=$? 2986*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 2987*c7ca977eSAlexander Kabaev rm -f conftest.er1 2988*c7ca977eSAlexander Kabaev cat conftest.err >&5 2989*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990*c7ca977eSAlexander Kabaev (exit $ac_status); } && 2991*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 2992*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 2993*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2994*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 2995*c7ca977eSAlexander Kabaev ac_status=$? 2996*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 2997*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 2998*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 2999*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3000*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3001*c7ca977eSAlexander Kabaev ac_status=$? 3002*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3003*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3004*c7ca977eSAlexander Kabaev ac_cv_header_time=yes 3005*c7ca977eSAlexander Kabaevelse 3006*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3007*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3008*c7ca977eSAlexander Kabaev 3009*c7ca977eSAlexander Kabaevac_cv_header_time=no 3010*c7ca977eSAlexander Kabaevfi 3011*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3012*c7ca977eSAlexander Kabaevfi 3013*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_header_time" >&5 3014*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_header_time" >&6 3015*c7ca977eSAlexander Kabaevif test $ac_cv_header_time = yes; then 3016*c7ca977eSAlexander Kabaev 3017*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 3018*c7ca977eSAlexander Kabaev#define TIME_WITH_SYS_TIME 1 3019*c7ca977eSAlexander Kabaev_ACEOF 3020*c7ca977eSAlexander Kabaev 3021*c7ca977eSAlexander Kabaevfi 3022*c7ca977eSAlexander Kabaev 3023*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 3024*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 3025*c7ca977eSAlexander Kabaevif test "${gcc_cv_header_string+set}" = set; then 3026*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3027*c7ca977eSAlexander Kabaevelse 3028*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3029*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3030*c7ca977eSAlexander Kabaev_ACEOF 3031*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3032*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3033*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3034*c7ca977eSAlexander Kabaev#include <string.h> 3035*c7ca977eSAlexander Kabaev#include <strings.h> 3036*c7ca977eSAlexander Kabaevint 3037*c7ca977eSAlexander Kabaevmain () 3038*c7ca977eSAlexander Kabaev{ 3039*c7ca977eSAlexander Kabaev 3040*c7ca977eSAlexander Kabaev ; 3041*c7ca977eSAlexander Kabaev return 0; 3042*c7ca977eSAlexander Kabaev} 3043*c7ca977eSAlexander Kabaev_ACEOF 3044*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 3045*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3046*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 3047*c7ca977eSAlexander Kabaev ac_status=$? 3048*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3049*c7ca977eSAlexander Kabaev rm -f conftest.er1 3050*c7ca977eSAlexander Kabaev cat conftest.err >&5 3051*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052*c7ca977eSAlexander Kabaev (exit $ac_status); } && 3053*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 3054*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 3055*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3056*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3057*c7ca977eSAlexander Kabaev ac_status=$? 3058*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 3060*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 3061*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3062*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3063*c7ca977eSAlexander Kabaev ac_status=$? 3064*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3066*c7ca977eSAlexander Kabaev gcc_cv_header_string=yes 3067*c7ca977eSAlexander Kabaevelse 3068*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3069*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3070*c7ca977eSAlexander Kabaev 3071*c7ca977eSAlexander Kabaevgcc_cv_header_string=no 3072*c7ca977eSAlexander Kabaevfi 3073*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3074*c7ca977eSAlexander Kabaevfi 3075*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 3076*c7ca977eSAlexander Kabaevecho "${ECHO_T}$gcc_cv_header_string" >&6 3077*c7ca977eSAlexander Kabaevif test $gcc_cv_header_string = yes; then 3078*c7ca977eSAlexander Kabaev 3079*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 3080*c7ca977eSAlexander Kabaev#define STRING_WITH_STRINGS 1 3081*c7ca977eSAlexander Kabaev_ACEOF 3082*c7ca977eSAlexander Kabaev 3083*c7ca977eSAlexander Kabaevfi 3084*c7ca977eSAlexander Kabaev 3085*c7ca977eSAlexander Kabaevac_ext=c 3086*c7ca977eSAlexander Kabaevac_cpp='$CPP $CPPFLAGS' 3087*c7ca977eSAlexander Kabaevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3088*c7ca977eSAlexander Kabaevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3089*c7ca977eSAlexander Kabaevac_compiler_gnu=$ac_cv_c_compiler_gnu 3090*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3091*c7ca977eSAlexander Kabaevecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3092*c7ca977eSAlexander Kabaev# On Suns, sometimes $CPP names a directory. 3093*c7ca977eSAlexander Kabaevif test -n "$CPP" && test -d "$CPP"; then 3094*c7ca977eSAlexander Kabaev CPP= 3095*c7ca977eSAlexander Kabaevfi 3096*c7ca977eSAlexander Kabaevif test -z "$CPP"; then 3097*c7ca977eSAlexander Kabaev if test "${ac_cv_prog_CPP+set}" = set; then 3098*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3099*c7ca977eSAlexander Kabaevelse 3100*c7ca977eSAlexander Kabaev # Double quotes because CPP needs to be expanded 3101*c7ca977eSAlexander Kabaev for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3102*c7ca977eSAlexander Kabaev do 3103*c7ca977eSAlexander Kabaev ac_preproc_ok=false 3104*c7ca977eSAlexander Kabaevfor ac_c_preproc_warn_flag in '' yes 3105*c7ca977eSAlexander Kabaevdo 3106*c7ca977eSAlexander Kabaev # Use a header file that comes with gcc, so configuring glibc 3107*c7ca977eSAlexander Kabaev # with a fresh cross-compiler works. 3108*c7ca977eSAlexander Kabaev # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3109*c7ca977eSAlexander Kabaev # <limits.h> exists even on freestanding compilers. 3110*c7ca977eSAlexander Kabaev # On the NeXT, cc -E runs the code through the compiler's parser, 3111*c7ca977eSAlexander Kabaev # not just through cpp. "Syntax error" is here to catch this case. 3112*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3113*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3114*c7ca977eSAlexander Kabaev_ACEOF 3115*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3116*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3117*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3118*c7ca977eSAlexander Kabaev#ifdef __STDC__ 3119*c7ca977eSAlexander Kabaev# include <limits.h> 3120*c7ca977eSAlexander Kabaev#else 3121*c7ca977eSAlexander Kabaev# include <assert.h> 3122*c7ca977eSAlexander Kabaev#endif 3123*c7ca977eSAlexander Kabaev Syntax error 3124*c7ca977eSAlexander Kabaev_ACEOF 3125*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3126*c7ca977eSAlexander Kabaev (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3127*c7ca977eSAlexander Kabaev ac_status=$? 3128*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3129*c7ca977eSAlexander Kabaev rm -f conftest.er1 3130*c7ca977eSAlexander Kabaev cat conftest.err >&5 3131*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3132*c7ca977eSAlexander Kabaev (exit $ac_status); } >/dev/null; then 3133*c7ca977eSAlexander Kabaev if test -s conftest.err; then 3134*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_c_preproc_warn_flag 3135*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3136*c7ca977eSAlexander Kabaev else 3137*c7ca977eSAlexander Kabaev ac_cpp_err= 3138*c7ca977eSAlexander Kabaev fi 3139*c7ca977eSAlexander Kabaevelse 3140*c7ca977eSAlexander Kabaev ac_cpp_err=yes 3141*c7ca977eSAlexander Kabaevfi 3142*c7ca977eSAlexander Kabaevif test -z "$ac_cpp_err"; then 3143*c7ca977eSAlexander Kabaev : 3144*c7ca977eSAlexander Kabaevelse 3145*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3146*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3147*c7ca977eSAlexander Kabaev 3148*c7ca977eSAlexander Kabaev # Broken: fails on valid input. 3149*c7ca977eSAlexander Kabaevcontinue 3150*c7ca977eSAlexander Kabaevfi 3151*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_ext 3152*c7ca977eSAlexander Kabaev 3153*c7ca977eSAlexander Kabaev # OK, works on sane cases. Now check whether non-existent headers 3154*c7ca977eSAlexander Kabaev # can be detected and how. 3155*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3156*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3157*c7ca977eSAlexander Kabaev_ACEOF 3158*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3159*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3160*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3161*c7ca977eSAlexander Kabaev#include <ac_nonexistent.h> 3162*c7ca977eSAlexander Kabaev_ACEOF 3163*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3164*c7ca977eSAlexander Kabaev (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3165*c7ca977eSAlexander Kabaev ac_status=$? 3166*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3167*c7ca977eSAlexander Kabaev rm -f conftest.er1 3168*c7ca977eSAlexander Kabaev cat conftest.err >&5 3169*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170*c7ca977eSAlexander Kabaev (exit $ac_status); } >/dev/null; then 3171*c7ca977eSAlexander Kabaev if test -s conftest.err; then 3172*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_c_preproc_warn_flag 3173*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3174*c7ca977eSAlexander Kabaev else 3175*c7ca977eSAlexander Kabaev ac_cpp_err= 3176*c7ca977eSAlexander Kabaev fi 3177*c7ca977eSAlexander Kabaevelse 3178*c7ca977eSAlexander Kabaev ac_cpp_err=yes 3179*c7ca977eSAlexander Kabaevfi 3180*c7ca977eSAlexander Kabaevif test -z "$ac_cpp_err"; then 3181*c7ca977eSAlexander Kabaev # Broken: success on invalid input. 3182*c7ca977eSAlexander Kabaevcontinue 3183*c7ca977eSAlexander Kabaevelse 3184*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3185*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3186*c7ca977eSAlexander Kabaev 3187*c7ca977eSAlexander Kabaev # Passes both tests. 3188*c7ca977eSAlexander Kabaevac_preproc_ok=: 3189*c7ca977eSAlexander Kabaevbreak 3190*c7ca977eSAlexander Kabaevfi 3191*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_ext 3192*c7ca977eSAlexander Kabaev 3193*c7ca977eSAlexander Kabaevdone 3194*c7ca977eSAlexander Kabaev# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3195*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_ext 3196*c7ca977eSAlexander Kabaevif $ac_preproc_ok; then 3197*c7ca977eSAlexander Kabaev break 3198*c7ca977eSAlexander Kabaevfi 3199*c7ca977eSAlexander Kabaev 3200*c7ca977eSAlexander Kabaev done 3201*c7ca977eSAlexander Kabaev ac_cv_prog_CPP=$CPP 3202*c7ca977eSAlexander Kabaev 3203*c7ca977eSAlexander Kabaevfi 3204*c7ca977eSAlexander Kabaev CPP=$ac_cv_prog_CPP 3205*c7ca977eSAlexander Kabaevelse 3206*c7ca977eSAlexander Kabaev ac_cv_prog_CPP=$CPP 3207*c7ca977eSAlexander Kabaevfi 3208*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $CPP" >&5 3209*c7ca977eSAlexander Kabaevecho "${ECHO_T}$CPP" >&6 3210*c7ca977eSAlexander Kabaevac_preproc_ok=false 3211*c7ca977eSAlexander Kabaevfor ac_c_preproc_warn_flag in '' yes 3212*c7ca977eSAlexander Kabaevdo 3213*c7ca977eSAlexander Kabaev # Use a header file that comes with gcc, so configuring glibc 3214*c7ca977eSAlexander Kabaev # with a fresh cross-compiler works. 3215*c7ca977eSAlexander Kabaev # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3216*c7ca977eSAlexander Kabaev # <limits.h> exists even on freestanding compilers. 3217*c7ca977eSAlexander Kabaev # On the NeXT, cc -E runs the code through the compiler's parser, 3218*c7ca977eSAlexander Kabaev # not just through cpp. "Syntax error" is here to catch this case. 3219*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3220*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3221*c7ca977eSAlexander Kabaev_ACEOF 3222*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3223*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3224*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3225*c7ca977eSAlexander Kabaev#ifdef __STDC__ 3226*c7ca977eSAlexander Kabaev# include <limits.h> 3227*c7ca977eSAlexander Kabaev#else 3228*c7ca977eSAlexander Kabaev# include <assert.h> 3229*c7ca977eSAlexander Kabaev#endif 3230*c7ca977eSAlexander Kabaev Syntax error 3231*c7ca977eSAlexander Kabaev_ACEOF 3232*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3233*c7ca977eSAlexander Kabaev (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3234*c7ca977eSAlexander Kabaev ac_status=$? 3235*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3236*c7ca977eSAlexander Kabaev rm -f conftest.er1 3237*c7ca977eSAlexander Kabaev cat conftest.err >&5 3238*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3239*c7ca977eSAlexander Kabaev (exit $ac_status); } >/dev/null; then 3240*c7ca977eSAlexander Kabaev if test -s conftest.err; then 3241*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_c_preproc_warn_flag 3242*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3243*c7ca977eSAlexander Kabaev else 3244*c7ca977eSAlexander Kabaev ac_cpp_err= 3245*c7ca977eSAlexander Kabaev fi 3246*c7ca977eSAlexander Kabaevelse 3247*c7ca977eSAlexander Kabaev ac_cpp_err=yes 3248*c7ca977eSAlexander Kabaevfi 3249*c7ca977eSAlexander Kabaevif test -z "$ac_cpp_err"; then 3250*c7ca977eSAlexander Kabaev : 3251*c7ca977eSAlexander Kabaevelse 3252*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3253*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3254*c7ca977eSAlexander Kabaev 3255*c7ca977eSAlexander Kabaev # Broken: fails on valid input. 3256*c7ca977eSAlexander Kabaevcontinue 3257*c7ca977eSAlexander Kabaevfi 3258*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_ext 3259*c7ca977eSAlexander Kabaev 3260*c7ca977eSAlexander Kabaev # OK, works on sane cases. Now check whether non-existent headers 3261*c7ca977eSAlexander Kabaev # can be detected and how. 3262*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3263*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3264*c7ca977eSAlexander Kabaev_ACEOF 3265*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3266*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3267*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3268*c7ca977eSAlexander Kabaev#include <ac_nonexistent.h> 3269*c7ca977eSAlexander Kabaev_ACEOF 3270*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3271*c7ca977eSAlexander Kabaev (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3272*c7ca977eSAlexander Kabaev ac_status=$? 3273*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3274*c7ca977eSAlexander Kabaev rm -f conftest.er1 3275*c7ca977eSAlexander Kabaev cat conftest.err >&5 3276*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3277*c7ca977eSAlexander Kabaev (exit $ac_status); } >/dev/null; then 3278*c7ca977eSAlexander Kabaev if test -s conftest.err; then 3279*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_c_preproc_warn_flag 3280*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3281*c7ca977eSAlexander Kabaev else 3282*c7ca977eSAlexander Kabaev ac_cpp_err= 3283*c7ca977eSAlexander Kabaev fi 3284*c7ca977eSAlexander Kabaevelse 3285*c7ca977eSAlexander Kabaev ac_cpp_err=yes 3286*c7ca977eSAlexander Kabaevfi 3287*c7ca977eSAlexander Kabaevif test -z "$ac_cpp_err"; then 3288*c7ca977eSAlexander Kabaev # Broken: success on invalid input. 3289*c7ca977eSAlexander Kabaevcontinue 3290*c7ca977eSAlexander Kabaevelse 3291*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3292*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3293*c7ca977eSAlexander Kabaev 3294*c7ca977eSAlexander Kabaev # Passes both tests. 3295*c7ca977eSAlexander Kabaevac_preproc_ok=: 3296*c7ca977eSAlexander Kabaevbreak 3297*c7ca977eSAlexander Kabaevfi 3298*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_ext 3299*c7ca977eSAlexander Kabaev 3300*c7ca977eSAlexander Kabaevdone 3301*c7ca977eSAlexander Kabaev# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3302*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_ext 3303*c7ca977eSAlexander Kabaevif $ac_preproc_ok; then 3304*c7ca977eSAlexander Kabaev : 3305*c7ca977eSAlexander Kabaevelse 3306*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3307*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 3308*c7ca977eSAlexander Kabaevecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3309*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 3310*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 3311*c7ca977eSAlexander Kabaevfi 3312*c7ca977eSAlexander Kabaev 3313*c7ca977eSAlexander Kabaevac_ext=c 3314*c7ca977eSAlexander Kabaevac_cpp='$CPP $CPPFLAGS' 3315*c7ca977eSAlexander Kabaevac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3316*c7ca977eSAlexander Kabaevac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3317*c7ca977eSAlexander Kabaevac_compiler_gnu=$ac_cv_c_compiler_gnu 3318*c7ca977eSAlexander Kabaev 3319*c7ca977eSAlexander Kabaev 3320*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for egrep" >&5 3321*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for egrep... $ECHO_C" >&6 3322*c7ca977eSAlexander Kabaevif test "${ac_cv_prog_egrep+set}" = set; then 3323*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3324*c7ca977eSAlexander Kabaevelse 3325*c7ca977eSAlexander Kabaev if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3326*c7ca977eSAlexander Kabaev then ac_cv_prog_egrep='grep -E' 3327*c7ca977eSAlexander Kabaev else ac_cv_prog_egrep='egrep' 3328*c7ca977eSAlexander Kabaev fi 3329*c7ca977eSAlexander Kabaevfi 3330*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3331*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_prog_egrep" >&6 3332*c7ca977eSAlexander Kabaev EGREP=$ac_cv_prog_egrep 3333*c7ca977eSAlexander Kabaev 3334*c7ca977eSAlexander Kabaev 3335*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for ANSI C header files" >&5 3336*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3337*c7ca977eSAlexander Kabaevif test "${ac_cv_header_stdc+set}" = set; then 3338*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3339*c7ca977eSAlexander Kabaevelse 3340*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3341*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3342*c7ca977eSAlexander Kabaev_ACEOF 3343*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3344*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3345*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3346*c7ca977eSAlexander Kabaev#include <stdlib.h> 3347*c7ca977eSAlexander Kabaev#include <stdarg.h> 3348*c7ca977eSAlexander Kabaev#include <string.h> 3349*c7ca977eSAlexander Kabaev#include <float.h> 3350*c7ca977eSAlexander Kabaev 3351*c7ca977eSAlexander Kabaevint 3352*c7ca977eSAlexander Kabaevmain () 3353*c7ca977eSAlexander Kabaev{ 3354*c7ca977eSAlexander Kabaev 3355*c7ca977eSAlexander Kabaev ; 3356*c7ca977eSAlexander Kabaev return 0; 3357*c7ca977eSAlexander Kabaev} 3358*c7ca977eSAlexander Kabaev_ACEOF 3359*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 3360*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3361*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 3362*c7ca977eSAlexander Kabaev ac_status=$? 3363*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3364*c7ca977eSAlexander Kabaev rm -f conftest.er1 3365*c7ca977eSAlexander Kabaev cat conftest.err >&5 3366*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3367*c7ca977eSAlexander Kabaev (exit $ac_status); } && 3368*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 3369*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 3370*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3371*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3372*c7ca977eSAlexander Kabaev ac_status=$? 3373*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3374*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 3375*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 3376*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3377*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3378*c7ca977eSAlexander Kabaev ac_status=$? 3379*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3380*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3381*c7ca977eSAlexander Kabaev ac_cv_header_stdc=yes 3382*c7ca977eSAlexander Kabaevelse 3383*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3384*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3385*c7ca977eSAlexander Kabaev 3386*c7ca977eSAlexander Kabaevac_cv_header_stdc=no 3387*c7ca977eSAlexander Kabaevfi 3388*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3389*c7ca977eSAlexander Kabaev 3390*c7ca977eSAlexander Kabaevif test $ac_cv_header_stdc = yes; then 3391*c7ca977eSAlexander Kabaev # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3392*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3393*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3394*c7ca977eSAlexander Kabaev_ACEOF 3395*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3396*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3397*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3398*c7ca977eSAlexander Kabaev#include <string.h> 3399*c7ca977eSAlexander Kabaev 3400*c7ca977eSAlexander Kabaev_ACEOF 3401*c7ca977eSAlexander Kabaevif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3402*c7ca977eSAlexander Kabaev $EGREP "memchr" >/dev/null 2>&1; then 3403*c7ca977eSAlexander Kabaev : 3404*c7ca977eSAlexander Kabaevelse 3405*c7ca977eSAlexander Kabaev ac_cv_header_stdc=no 3406*c7ca977eSAlexander Kabaevfi 3407*c7ca977eSAlexander Kabaevrm -f conftest* 3408*c7ca977eSAlexander Kabaev 3409*c7ca977eSAlexander Kabaevfi 3410*c7ca977eSAlexander Kabaev 3411*c7ca977eSAlexander Kabaevif test $ac_cv_header_stdc = yes; then 3412*c7ca977eSAlexander Kabaev # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3413*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3414*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3415*c7ca977eSAlexander Kabaev_ACEOF 3416*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3417*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3418*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3419*c7ca977eSAlexander Kabaev#include <stdlib.h> 3420*c7ca977eSAlexander Kabaev 3421*c7ca977eSAlexander Kabaev_ACEOF 3422*c7ca977eSAlexander Kabaevif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3423*c7ca977eSAlexander Kabaev $EGREP "free" >/dev/null 2>&1; then 3424*c7ca977eSAlexander Kabaev : 3425*c7ca977eSAlexander Kabaevelse 3426*c7ca977eSAlexander Kabaev ac_cv_header_stdc=no 3427*c7ca977eSAlexander Kabaevfi 3428*c7ca977eSAlexander Kabaevrm -f conftest* 3429*c7ca977eSAlexander Kabaev 3430*c7ca977eSAlexander Kabaevfi 3431*c7ca977eSAlexander Kabaev 3432*c7ca977eSAlexander Kabaevif test $ac_cv_header_stdc = yes; then 3433*c7ca977eSAlexander Kabaev # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3434*c7ca977eSAlexander Kabaev if test "$cross_compiling" = yes; then 3435*c7ca977eSAlexander Kabaev : 3436*c7ca977eSAlexander Kabaevelse 3437*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3438*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3439*c7ca977eSAlexander Kabaev_ACEOF 3440*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3441*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3442*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3443*c7ca977eSAlexander Kabaev#include <ctype.h> 3444*c7ca977eSAlexander Kabaev#if ((' ' & 0x0FF) == 0x020) 3445*c7ca977eSAlexander Kabaev# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3446*c7ca977eSAlexander Kabaev# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3447*c7ca977eSAlexander Kabaev#else 3448*c7ca977eSAlexander Kabaev# define ISLOWER(c) \ 3449*c7ca977eSAlexander Kabaev (('a' <= (c) && (c) <= 'i') \ 3450*c7ca977eSAlexander Kabaev || ('j' <= (c) && (c) <= 'r') \ 3451*c7ca977eSAlexander Kabaev || ('s' <= (c) && (c) <= 'z')) 3452*c7ca977eSAlexander Kabaev# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3453*c7ca977eSAlexander Kabaev#endif 3454*c7ca977eSAlexander Kabaev 3455*c7ca977eSAlexander Kabaev#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3456*c7ca977eSAlexander Kabaevint 3457*c7ca977eSAlexander Kabaevmain () 3458*c7ca977eSAlexander Kabaev{ 3459*c7ca977eSAlexander Kabaev int i; 3460*c7ca977eSAlexander Kabaev for (i = 0; i < 256; i++) 3461*c7ca977eSAlexander Kabaev if (XOR (islower (i), ISLOWER (i)) 3462*c7ca977eSAlexander Kabaev || toupper (i) != TOUPPER (i)) 3463*c7ca977eSAlexander Kabaev exit(2); 3464*c7ca977eSAlexander Kabaev exit (0); 3465*c7ca977eSAlexander Kabaev} 3466*c7ca977eSAlexander Kabaev_ACEOF 3467*c7ca977eSAlexander Kabaevrm -f conftest$ac_exeext 3468*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3469*c7ca977eSAlexander Kabaev (eval $ac_link) 2>&5 3470*c7ca977eSAlexander Kabaev ac_status=$? 3471*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3472*c7ca977eSAlexander Kabaev (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3473*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3474*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3475*c7ca977eSAlexander Kabaev ac_status=$? 3476*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3477*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3478*c7ca977eSAlexander Kabaev : 3479*c7ca977eSAlexander Kabaevelse 3480*c7ca977eSAlexander Kabaev echo "$as_me: program exited with status $ac_status" >&5 3481*c7ca977eSAlexander Kabaevecho "$as_me: failed program was:" >&5 3482*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3483*c7ca977eSAlexander Kabaev 3484*c7ca977eSAlexander Kabaev( exit $ac_status ) 3485*c7ca977eSAlexander Kabaevac_cv_header_stdc=no 3486*c7ca977eSAlexander Kabaevfi 3487*c7ca977eSAlexander Kabaevrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3488*c7ca977eSAlexander Kabaevfi 3489*c7ca977eSAlexander Kabaevfi 3490*c7ca977eSAlexander Kabaevfi 3491*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3492*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_header_stdc" >&6 3493*c7ca977eSAlexander Kabaevif test $ac_cv_header_stdc = yes; then 3494*c7ca977eSAlexander Kabaev 3495*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 3496*c7ca977eSAlexander Kabaev#define STDC_HEADERS 1 3497*c7ca977eSAlexander Kabaev_ACEOF 3498*c7ca977eSAlexander Kabaev 3499*c7ca977eSAlexander Kabaevfi 3500*c7ca977eSAlexander Kabaev 3501*c7ca977eSAlexander Kabaev# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3502*c7ca977eSAlexander Kabaev 3503*c7ca977eSAlexander Kabaev 3504*c7ca977eSAlexander Kabaev 3505*c7ca977eSAlexander Kabaev 3506*c7ca977eSAlexander Kabaev 3507*c7ca977eSAlexander Kabaev 3508*c7ca977eSAlexander Kabaev 3509*c7ca977eSAlexander Kabaev 3510*c7ca977eSAlexander Kabaev 3511*c7ca977eSAlexander Kabaevfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3512*c7ca977eSAlexander Kabaev inttypes.h stdint.h unistd.h 3513*c7ca977eSAlexander Kabaevdo 3514*c7ca977eSAlexander Kabaevas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3515*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_header" >&5 3516*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3517*c7ca977eSAlexander Kabaevif eval "test \"\${$as_ac_Header+set}\" = set"; then 3518*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3519*c7ca977eSAlexander Kabaevelse 3520*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3521*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3522*c7ca977eSAlexander Kabaev_ACEOF 3523*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3524*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3525*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3526*c7ca977eSAlexander Kabaev$ac_includes_default 3527*c7ca977eSAlexander Kabaev 3528*c7ca977eSAlexander Kabaev#include <$ac_header> 3529*c7ca977eSAlexander Kabaev_ACEOF 3530*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 3531*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3532*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 3533*c7ca977eSAlexander Kabaev ac_status=$? 3534*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3535*c7ca977eSAlexander Kabaev rm -f conftest.er1 3536*c7ca977eSAlexander Kabaev cat conftest.err >&5 3537*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3538*c7ca977eSAlexander Kabaev (exit $ac_status); } && 3539*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 3540*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 3541*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3542*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3543*c7ca977eSAlexander Kabaev ac_status=$? 3544*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 3546*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 3547*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3548*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3549*c7ca977eSAlexander Kabaev ac_status=$? 3550*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3551*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3552*c7ca977eSAlexander Kabaev eval "$as_ac_Header=yes" 3553*c7ca977eSAlexander Kabaevelse 3554*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3555*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3556*c7ca977eSAlexander Kabaev 3557*c7ca977eSAlexander Kabaeveval "$as_ac_Header=no" 3558*c7ca977eSAlexander Kabaevfi 3559*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3560*c7ca977eSAlexander Kabaevfi 3561*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3562*c7ca977eSAlexander Kabaevecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3563*c7ca977eSAlexander Kabaevif test `eval echo '${'$as_ac_Header'}'` = yes; then 3564*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 3565*c7ca977eSAlexander Kabaev#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3566*c7ca977eSAlexander Kabaev_ACEOF 3567*c7ca977eSAlexander Kabaev 3568*c7ca977eSAlexander Kabaevfi 3569*c7ca977eSAlexander Kabaev 3570*c7ca977eSAlexander Kabaevdone 3571*c7ca977eSAlexander Kabaev 3572*c7ca977eSAlexander Kabaev 3573*c7ca977eSAlexander Kabaev 3574*c7ca977eSAlexander Kabaev 3575*c7ca977eSAlexander Kabaev 3576*c7ca977eSAlexander Kabaev 3577*c7ca977eSAlexander Kabaev 3578*c7ca977eSAlexander Kabaev 3579*c7ca977eSAlexander Kabaev 3580*c7ca977eSAlexander Kabaev 3581*c7ca977eSAlexander Kabaev 3582*c7ca977eSAlexander Kabaev 3583*c7ca977eSAlexander Kabaevfor ac_header in iconv.h locale.h fcntl.h limits.h stddef.h \ 3584*c7ca977eSAlexander Kabaev stdlib.h strings.h string.h sys/file.h unistd.h 3585*c7ca977eSAlexander Kabaevdo 3586*c7ca977eSAlexander Kabaevas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3587*c7ca977eSAlexander Kabaevif eval "test \"\${$as_ac_Header+set}\" = set"; then 3588*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for $ac_header" >&5 3589*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3590*c7ca977eSAlexander Kabaevif eval "test \"\${$as_ac_Header+set}\" = set"; then 3591*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3592*c7ca977eSAlexander Kabaevfi 3593*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3594*c7ca977eSAlexander Kabaevecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3595*c7ca977eSAlexander Kabaevelse 3596*c7ca977eSAlexander Kabaev # Is the header compilable? 3597*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking $ac_header usability" >&5 3598*c7ca977eSAlexander Kabaevecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3599*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 3600*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3601*c7ca977eSAlexander Kabaev_ACEOF 3602*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3603*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3604*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3605*c7ca977eSAlexander Kabaev$ac_includes_default 3606*c7ca977eSAlexander Kabaev#include <$ac_header> 3607*c7ca977eSAlexander Kabaev_ACEOF 3608*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 3609*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3610*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 3611*c7ca977eSAlexander Kabaev ac_status=$? 3612*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3613*c7ca977eSAlexander Kabaev rm -f conftest.er1 3614*c7ca977eSAlexander Kabaev cat conftest.err >&5 3615*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3616*c7ca977eSAlexander Kabaev (exit $ac_status); } && 3617*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 3618*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 3619*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3620*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3621*c7ca977eSAlexander Kabaev ac_status=$? 3622*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3623*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 3624*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 3625*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3626*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3627*c7ca977eSAlexander Kabaev ac_status=$? 3628*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3629*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3630*c7ca977eSAlexander Kabaev ac_header_compiler=yes 3631*c7ca977eSAlexander Kabaevelse 3632*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3633*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3634*c7ca977eSAlexander Kabaev 3635*c7ca977eSAlexander Kabaevac_header_compiler=no 3636*c7ca977eSAlexander Kabaevfi 3637*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3638*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_header_compiler" >&5 3639*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_header_compiler" >&6 3640*c7ca977eSAlexander Kabaev 3641*c7ca977eSAlexander Kabaev# Is the header present? 3642*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking $ac_header presence" >&5 3643*c7ca977eSAlexander Kabaevecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3644*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 3645*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3646*c7ca977eSAlexander Kabaev_ACEOF 3647*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3648*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3649*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3650*c7ca977eSAlexander Kabaev#include <$ac_header> 3651*c7ca977eSAlexander Kabaev_ACEOF 3652*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3653*c7ca977eSAlexander Kabaev (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3654*c7ca977eSAlexander Kabaev ac_status=$? 3655*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3656*c7ca977eSAlexander Kabaev rm -f conftest.er1 3657*c7ca977eSAlexander Kabaev cat conftest.err >&5 3658*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3659*c7ca977eSAlexander Kabaev (exit $ac_status); } >/dev/null; then 3660*c7ca977eSAlexander Kabaev if test -s conftest.err; then 3661*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_c_preproc_warn_flag 3662*c7ca977eSAlexander Kabaev ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3663*c7ca977eSAlexander Kabaev else 3664*c7ca977eSAlexander Kabaev ac_cpp_err= 3665*c7ca977eSAlexander Kabaev fi 3666*c7ca977eSAlexander Kabaevelse 3667*c7ca977eSAlexander Kabaev ac_cpp_err=yes 3668*c7ca977eSAlexander Kabaevfi 3669*c7ca977eSAlexander Kabaevif test -z "$ac_cpp_err"; then 3670*c7ca977eSAlexander Kabaev ac_header_preproc=yes 3671*c7ca977eSAlexander Kabaevelse 3672*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3673*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3674*c7ca977eSAlexander Kabaev 3675*c7ca977eSAlexander Kabaev ac_header_preproc=no 3676*c7ca977eSAlexander Kabaevfi 3677*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_ext 3678*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_header_preproc" >&5 3679*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_header_preproc" >&6 3680*c7ca977eSAlexander Kabaev 3681*c7ca977eSAlexander Kabaev# So? What about this header? 3682*c7ca977eSAlexander Kabaevcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3683*c7ca977eSAlexander Kabaev yes:no: ) 3684*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3685*c7ca977eSAlexander Kabaevecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3686*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3687*c7ca977eSAlexander Kabaevecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3688*c7ca977eSAlexander Kabaev ac_header_preproc=yes 3689*c7ca977eSAlexander Kabaev ;; 3690*c7ca977eSAlexander Kabaev no:yes:* ) 3691*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3692*c7ca977eSAlexander Kabaevecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3693*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3694*c7ca977eSAlexander Kabaevecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3695*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3696*c7ca977eSAlexander Kabaevecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3697*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3698*c7ca977eSAlexander Kabaevecho "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3699*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3700*c7ca977eSAlexander Kabaevecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3701*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3702*c7ca977eSAlexander Kabaevecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3703*c7ca977eSAlexander Kabaev ( 3704*c7ca977eSAlexander Kabaev cat <<\_ASBOX 3705*c7ca977eSAlexander Kabaev## ----------------------------------- ## 3706*c7ca977eSAlexander Kabaev## Report this to [email protected] ## 3707*c7ca977eSAlexander Kabaev## ----------------------------------- ## 3708*c7ca977eSAlexander Kabaev_ASBOX 3709*c7ca977eSAlexander Kabaev ) | 3710*c7ca977eSAlexander Kabaev sed "s/^/$as_me: WARNING: /" >&2 3711*c7ca977eSAlexander Kabaev ;; 3712*c7ca977eSAlexander Kabaevesac 3713*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_header" >&5 3714*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3715*c7ca977eSAlexander Kabaevif eval "test \"\${$as_ac_Header+set}\" = set"; then 3716*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3717*c7ca977eSAlexander Kabaevelse 3718*c7ca977eSAlexander Kabaev eval "$as_ac_Header=\$ac_header_preproc" 3719*c7ca977eSAlexander Kabaevfi 3720*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3721*c7ca977eSAlexander Kabaevecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3722*c7ca977eSAlexander Kabaev 3723*c7ca977eSAlexander Kabaevfi 3724*c7ca977eSAlexander Kabaevif test `eval echo '${'$as_ac_Header'}'` = yes; then 3725*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 3726*c7ca977eSAlexander Kabaev#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3727*c7ca977eSAlexander Kabaev_ACEOF 3728*c7ca977eSAlexander Kabaev 3729*c7ca977eSAlexander Kabaevfi 3730*c7ca977eSAlexander Kabaev 3731*c7ca977eSAlexander Kabaevdone 3732*c7ca977eSAlexander Kabaev 3733*c7ca977eSAlexander Kabaev 3734*c7ca977eSAlexander Kabaev# Checks for typedefs, structures, and compiler characteristics. 3735*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3736*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3737*c7ca977eSAlexander Kabaevif test "${ac_cv_c_const+set}" = set; then 3738*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3739*c7ca977eSAlexander Kabaevelse 3740*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3741*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3742*c7ca977eSAlexander Kabaev_ACEOF 3743*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3744*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3745*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3746*c7ca977eSAlexander Kabaev 3747*c7ca977eSAlexander Kabaevint 3748*c7ca977eSAlexander Kabaevmain () 3749*c7ca977eSAlexander Kabaev{ 3750*c7ca977eSAlexander Kabaev/* FIXME: Include the comments suggested by Paul. */ 3751*c7ca977eSAlexander Kabaev#ifndef __cplusplus 3752*c7ca977eSAlexander Kabaev /* Ultrix mips cc rejects this. */ 3753*c7ca977eSAlexander Kabaev typedef int charset[2]; 3754*c7ca977eSAlexander Kabaev const charset x; 3755*c7ca977eSAlexander Kabaev /* SunOS 4.1.1 cc rejects this. */ 3756*c7ca977eSAlexander Kabaev char const *const *ccp; 3757*c7ca977eSAlexander Kabaev char **p; 3758*c7ca977eSAlexander Kabaev /* NEC SVR4.0.2 mips cc rejects this. */ 3759*c7ca977eSAlexander Kabaev struct point {int x, y;}; 3760*c7ca977eSAlexander Kabaev static struct point const zero = {0,0}; 3761*c7ca977eSAlexander Kabaev /* AIX XL C 1.02.0.0 rejects this. 3762*c7ca977eSAlexander Kabaev It does not let you subtract one const X* pointer from another in 3763*c7ca977eSAlexander Kabaev an arm of an if-expression whose if-part is not a constant 3764*c7ca977eSAlexander Kabaev expression */ 3765*c7ca977eSAlexander Kabaev const char *g = "string"; 3766*c7ca977eSAlexander Kabaev ccp = &g + (g ? g-g : 0); 3767*c7ca977eSAlexander Kabaev /* HPUX 7.0 cc rejects these. */ 3768*c7ca977eSAlexander Kabaev ++ccp; 3769*c7ca977eSAlexander Kabaev p = (char**) ccp; 3770*c7ca977eSAlexander Kabaev ccp = (char const *const *) p; 3771*c7ca977eSAlexander Kabaev { /* SCO 3.2v4 cc rejects this. */ 3772*c7ca977eSAlexander Kabaev char *t; 3773*c7ca977eSAlexander Kabaev char const *s = 0 ? (char *) 0 : (char const *) 0; 3774*c7ca977eSAlexander Kabaev 3775*c7ca977eSAlexander Kabaev *t++ = 0; 3776*c7ca977eSAlexander Kabaev } 3777*c7ca977eSAlexander Kabaev { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3778*c7ca977eSAlexander Kabaev int x[] = {25, 17}; 3779*c7ca977eSAlexander Kabaev const int *foo = &x[0]; 3780*c7ca977eSAlexander Kabaev ++foo; 3781*c7ca977eSAlexander Kabaev } 3782*c7ca977eSAlexander Kabaev { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3783*c7ca977eSAlexander Kabaev typedef const int *iptr; 3784*c7ca977eSAlexander Kabaev iptr p = 0; 3785*c7ca977eSAlexander Kabaev ++p; 3786*c7ca977eSAlexander Kabaev } 3787*c7ca977eSAlexander Kabaev { /* AIX XL C 1.02.0.0 rejects this saying 3788*c7ca977eSAlexander Kabaev "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3789*c7ca977eSAlexander Kabaev struct s { int j; const int *ap[3]; }; 3790*c7ca977eSAlexander Kabaev struct s *b; b->j = 5; 3791*c7ca977eSAlexander Kabaev } 3792*c7ca977eSAlexander Kabaev { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3793*c7ca977eSAlexander Kabaev const int foo = 10; 3794*c7ca977eSAlexander Kabaev } 3795*c7ca977eSAlexander Kabaev#endif 3796*c7ca977eSAlexander Kabaev 3797*c7ca977eSAlexander Kabaev ; 3798*c7ca977eSAlexander Kabaev return 0; 3799*c7ca977eSAlexander Kabaev} 3800*c7ca977eSAlexander Kabaev_ACEOF 3801*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 3802*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3803*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 3804*c7ca977eSAlexander Kabaev ac_status=$? 3805*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3806*c7ca977eSAlexander Kabaev rm -f conftest.er1 3807*c7ca977eSAlexander Kabaev cat conftest.err >&5 3808*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809*c7ca977eSAlexander Kabaev (exit $ac_status); } && 3810*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 3811*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 3812*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3813*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3814*c7ca977eSAlexander Kabaev ac_status=$? 3815*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3816*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 3817*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 3818*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3819*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3820*c7ca977eSAlexander Kabaev ac_status=$? 3821*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3822*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3823*c7ca977eSAlexander Kabaev ac_cv_c_const=yes 3824*c7ca977eSAlexander Kabaevelse 3825*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3826*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3827*c7ca977eSAlexander Kabaev 3828*c7ca977eSAlexander Kabaevac_cv_c_const=no 3829*c7ca977eSAlexander Kabaevfi 3830*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3831*c7ca977eSAlexander Kabaevfi 3832*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3833*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_c_const" >&6 3834*c7ca977eSAlexander Kabaevif test $ac_cv_c_const = no; then 3835*c7ca977eSAlexander Kabaev 3836*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 3837*c7ca977eSAlexander Kabaev#define const 3838*c7ca977eSAlexander Kabaev_ACEOF 3839*c7ca977eSAlexander Kabaev 3840*c7ca977eSAlexander Kabaevfi 3841*c7ca977eSAlexander Kabaev 3842*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for inline" >&5 3843*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for inline... $ECHO_C" >&6 3844*c7ca977eSAlexander Kabaevif test "${ac_cv_c_inline+set}" = set; then 3845*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3846*c7ca977eSAlexander Kabaevelse 3847*c7ca977eSAlexander Kabaev ac_cv_c_inline=no 3848*c7ca977eSAlexander Kabaevfor ac_kw in inline __inline__ __inline; do 3849*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3850*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3851*c7ca977eSAlexander Kabaev_ACEOF 3852*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3853*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3854*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3855*c7ca977eSAlexander Kabaev#ifndef __cplusplus 3856*c7ca977eSAlexander Kabaevtypedef int foo_t; 3857*c7ca977eSAlexander Kabaevstatic $ac_kw foo_t static_foo () {return 0; } 3858*c7ca977eSAlexander Kabaev$ac_kw foo_t foo () {return 0; } 3859*c7ca977eSAlexander Kabaev#endif 3860*c7ca977eSAlexander Kabaev 3861*c7ca977eSAlexander Kabaev_ACEOF 3862*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 3863*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3864*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 3865*c7ca977eSAlexander Kabaev ac_status=$? 3866*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3867*c7ca977eSAlexander Kabaev rm -f conftest.er1 3868*c7ca977eSAlexander Kabaev cat conftest.err >&5 3869*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3870*c7ca977eSAlexander Kabaev (exit $ac_status); } && 3871*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 3872*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 3873*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3874*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3875*c7ca977eSAlexander Kabaev ac_status=$? 3876*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3877*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 3878*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 3879*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3880*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3881*c7ca977eSAlexander Kabaev ac_status=$? 3882*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3883*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3884*c7ca977eSAlexander Kabaev ac_cv_c_inline=$ac_kw; break 3885*c7ca977eSAlexander Kabaevelse 3886*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3887*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3888*c7ca977eSAlexander Kabaev 3889*c7ca977eSAlexander Kabaevfi 3890*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3891*c7ca977eSAlexander Kabaevdone 3892*c7ca977eSAlexander Kabaev 3893*c7ca977eSAlexander Kabaevfi 3894*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 3895*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_c_inline" >&6 3896*c7ca977eSAlexander Kabaev 3897*c7ca977eSAlexander Kabaev 3898*c7ca977eSAlexander Kabaevcase $ac_cv_c_inline in 3899*c7ca977eSAlexander Kabaev inline | yes) ;; 3900*c7ca977eSAlexander Kabaev *) 3901*c7ca977eSAlexander Kabaev case $ac_cv_c_inline in 3902*c7ca977eSAlexander Kabaev no) ac_val=;; 3903*c7ca977eSAlexander Kabaev *) ac_val=$ac_cv_c_inline;; 3904*c7ca977eSAlexander Kabaev esac 3905*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 3906*c7ca977eSAlexander Kabaev#ifndef __cplusplus 3907*c7ca977eSAlexander Kabaev#define inline $ac_val 3908*c7ca977eSAlexander Kabaev#endif 3909*c7ca977eSAlexander Kabaev_ACEOF 3910*c7ca977eSAlexander Kabaev ;; 3911*c7ca977eSAlexander Kabaevesac 3912*c7ca977eSAlexander Kabaev 3913*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for obstacks" >&5 3914*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for obstacks... $ECHO_C" >&6 3915*c7ca977eSAlexander Kabaevif test "${ac_cv_func_obstack+set}" = set; then 3916*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3917*c7ca977eSAlexander Kabaevelse 3918*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3919*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3920*c7ca977eSAlexander Kabaev_ACEOF 3921*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3922*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3923*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3924*c7ca977eSAlexander Kabaev#include "obstack.h" 3925*c7ca977eSAlexander Kabaevint 3926*c7ca977eSAlexander Kabaevmain () 3927*c7ca977eSAlexander Kabaev{ 3928*c7ca977eSAlexander Kabaevstruct obstack *mem; obstack_free(mem,(char *) 0) 3929*c7ca977eSAlexander Kabaev ; 3930*c7ca977eSAlexander Kabaev return 0; 3931*c7ca977eSAlexander Kabaev} 3932*c7ca977eSAlexander Kabaev_ACEOF 3933*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext conftest$ac_exeext 3934*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3935*c7ca977eSAlexander Kabaev (eval $ac_link) 2>conftest.er1 3936*c7ca977eSAlexander Kabaev ac_status=$? 3937*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 3938*c7ca977eSAlexander Kabaev rm -f conftest.er1 3939*c7ca977eSAlexander Kabaev cat conftest.err >&5 3940*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3941*c7ca977eSAlexander Kabaev (exit $ac_status); } && 3942*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 3943*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 3944*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3945*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3946*c7ca977eSAlexander Kabaev ac_status=$? 3947*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3948*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 3949*c7ca977eSAlexander Kabaev { ac_try='test -s conftest$ac_exeext' 3950*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3951*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 3952*c7ca977eSAlexander Kabaev ac_status=$? 3953*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 3954*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 3955*c7ca977eSAlexander Kabaev ac_cv_func_obstack=yes 3956*c7ca977eSAlexander Kabaevelse 3957*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 3958*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 3959*c7ca977eSAlexander Kabaev 3960*c7ca977eSAlexander Kabaevac_cv_func_obstack=no 3961*c7ca977eSAlexander Kabaevfi 3962*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext \ 3963*c7ca977eSAlexander Kabaev conftest$ac_exeext conftest.$ac_ext 3964*c7ca977eSAlexander Kabaevfi 3965*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5 3966*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_func_obstack" >&6 3967*c7ca977eSAlexander Kabaevif test $ac_cv_func_obstack = yes; then 3968*c7ca977eSAlexander Kabaev 3969*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 3970*c7ca977eSAlexander Kabaev#define HAVE_OBSTACK 1 3971*c7ca977eSAlexander Kabaev_ACEOF 3972*c7ca977eSAlexander Kabaev 3973*c7ca977eSAlexander Kabaevelse 3974*c7ca977eSAlexander Kabaev case $LIBOBJS in 3975*c7ca977eSAlexander Kabaev "obstack.$ac_objext" | \ 3976*c7ca977eSAlexander Kabaev *" obstack.$ac_objext" | \ 3977*c7ca977eSAlexander Kabaev "obstack.$ac_objext "* | \ 3978*c7ca977eSAlexander Kabaev *" obstack.$ac_objext "* ) ;; 3979*c7ca977eSAlexander Kabaev *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;; 3980*c7ca977eSAlexander Kabaevesac 3981*c7ca977eSAlexander Kabaev 3982*c7ca977eSAlexander Kabaevfi 3983*c7ca977eSAlexander Kabaev 3984*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for off_t" >&5 3985*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for off_t... $ECHO_C" >&6 3986*c7ca977eSAlexander Kabaevif test "${ac_cv_type_off_t+set}" = set; then 3987*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 3988*c7ca977eSAlexander Kabaevelse 3989*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 3990*c7ca977eSAlexander Kabaev/* confdefs.h. */ 3991*c7ca977eSAlexander Kabaev_ACEOF 3992*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 3993*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 3994*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 3995*c7ca977eSAlexander Kabaev$ac_includes_default 3996*c7ca977eSAlexander Kabaevint 3997*c7ca977eSAlexander Kabaevmain () 3998*c7ca977eSAlexander Kabaev{ 3999*c7ca977eSAlexander Kabaevif ((off_t *) 0) 4000*c7ca977eSAlexander Kabaev return 0; 4001*c7ca977eSAlexander Kabaevif (sizeof (off_t)) 4002*c7ca977eSAlexander Kabaev return 0; 4003*c7ca977eSAlexander Kabaev ; 4004*c7ca977eSAlexander Kabaev return 0; 4005*c7ca977eSAlexander Kabaev} 4006*c7ca977eSAlexander Kabaev_ACEOF 4007*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4008*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4009*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4010*c7ca977eSAlexander Kabaev ac_status=$? 4011*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4012*c7ca977eSAlexander Kabaev rm -f conftest.er1 4013*c7ca977eSAlexander Kabaev cat conftest.err >&5 4014*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4015*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4016*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4017*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4018*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4019*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4020*c7ca977eSAlexander Kabaev ac_status=$? 4021*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4022*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4023*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4024*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4025*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4026*c7ca977eSAlexander Kabaev ac_status=$? 4027*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4028*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4029*c7ca977eSAlexander Kabaev ac_cv_type_off_t=yes 4030*c7ca977eSAlexander Kabaevelse 4031*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4032*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4033*c7ca977eSAlexander Kabaev 4034*c7ca977eSAlexander Kabaevac_cv_type_off_t=no 4035*c7ca977eSAlexander Kabaevfi 4036*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4037*c7ca977eSAlexander Kabaevfi 4038*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4039*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_type_off_t" >&6 4040*c7ca977eSAlexander Kabaevif test $ac_cv_type_off_t = yes; then 4041*c7ca977eSAlexander Kabaev : 4042*c7ca977eSAlexander Kabaevelse 4043*c7ca977eSAlexander Kabaev 4044*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 4045*c7ca977eSAlexander Kabaev#define off_t long 4046*c7ca977eSAlexander Kabaev_ACEOF 4047*c7ca977eSAlexander Kabaev 4048*c7ca977eSAlexander Kabaevfi 4049*c7ca977eSAlexander Kabaev 4050*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for size_t" >&5 4051*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for size_t... $ECHO_C" >&6 4052*c7ca977eSAlexander Kabaevif test "${ac_cv_type_size_t+set}" = set; then 4053*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 4054*c7ca977eSAlexander Kabaevelse 4055*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4056*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4057*c7ca977eSAlexander Kabaev_ACEOF 4058*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4059*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4060*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4061*c7ca977eSAlexander Kabaev$ac_includes_default 4062*c7ca977eSAlexander Kabaevint 4063*c7ca977eSAlexander Kabaevmain () 4064*c7ca977eSAlexander Kabaev{ 4065*c7ca977eSAlexander Kabaevif ((size_t *) 0) 4066*c7ca977eSAlexander Kabaev return 0; 4067*c7ca977eSAlexander Kabaevif (sizeof (size_t)) 4068*c7ca977eSAlexander Kabaev return 0; 4069*c7ca977eSAlexander Kabaev ; 4070*c7ca977eSAlexander Kabaev return 0; 4071*c7ca977eSAlexander Kabaev} 4072*c7ca977eSAlexander Kabaev_ACEOF 4073*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4074*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4075*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4076*c7ca977eSAlexander Kabaev ac_status=$? 4077*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4078*c7ca977eSAlexander Kabaev rm -f conftest.er1 4079*c7ca977eSAlexander Kabaev cat conftest.err >&5 4080*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4081*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4082*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4083*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4084*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4085*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4086*c7ca977eSAlexander Kabaev ac_status=$? 4087*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4088*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4089*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4090*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4091*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4092*c7ca977eSAlexander Kabaev ac_status=$? 4093*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4094*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4095*c7ca977eSAlexander Kabaev ac_cv_type_size_t=yes 4096*c7ca977eSAlexander Kabaevelse 4097*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4098*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4099*c7ca977eSAlexander Kabaev 4100*c7ca977eSAlexander Kabaevac_cv_type_size_t=no 4101*c7ca977eSAlexander Kabaevfi 4102*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4103*c7ca977eSAlexander Kabaevfi 4104*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4105*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_type_size_t" >&6 4106*c7ca977eSAlexander Kabaevif test $ac_cv_type_size_t = yes; then 4107*c7ca977eSAlexander Kabaev : 4108*c7ca977eSAlexander Kabaevelse 4109*c7ca977eSAlexander Kabaev 4110*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 4111*c7ca977eSAlexander Kabaev#define size_t unsigned 4112*c7ca977eSAlexander Kabaev_ACEOF 4113*c7ca977eSAlexander Kabaev 4114*c7ca977eSAlexander Kabaevfi 4115*c7ca977eSAlexander Kabaev 4116*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4117*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4118*c7ca977eSAlexander Kabaevif test "${ac_cv_struct_tm+set}" = set; then 4119*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 4120*c7ca977eSAlexander Kabaevelse 4121*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4122*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4123*c7ca977eSAlexander Kabaev_ACEOF 4124*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4125*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4126*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4127*c7ca977eSAlexander Kabaev#include <sys/types.h> 4128*c7ca977eSAlexander Kabaev#include <time.h> 4129*c7ca977eSAlexander Kabaev 4130*c7ca977eSAlexander Kabaevint 4131*c7ca977eSAlexander Kabaevmain () 4132*c7ca977eSAlexander Kabaev{ 4133*c7ca977eSAlexander Kabaevstruct tm *tp; tp->tm_sec; 4134*c7ca977eSAlexander Kabaev ; 4135*c7ca977eSAlexander Kabaev return 0; 4136*c7ca977eSAlexander Kabaev} 4137*c7ca977eSAlexander Kabaev_ACEOF 4138*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4139*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4140*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4141*c7ca977eSAlexander Kabaev ac_status=$? 4142*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4143*c7ca977eSAlexander Kabaev rm -f conftest.er1 4144*c7ca977eSAlexander Kabaev cat conftest.err >&5 4145*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4146*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4147*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4148*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4149*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4150*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4151*c7ca977eSAlexander Kabaev ac_status=$? 4152*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4153*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4154*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4155*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4156*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4157*c7ca977eSAlexander Kabaev ac_status=$? 4158*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4160*c7ca977eSAlexander Kabaev ac_cv_struct_tm=time.h 4161*c7ca977eSAlexander Kabaevelse 4162*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4163*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4164*c7ca977eSAlexander Kabaev 4165*c7ca977eSAlexander Kabaevac_cv_struct_tm=sys/time.h 4166*c7ca977eSAlexander Kabaevfi 4167*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4168*c7ca977eSAlexander Kabaevfi 4169*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 4170*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_struct_tm" >&6 4171*c7ca977eSAlexander Kabaevif test $ac_cv_struct_tm = sys/time.h; then 4172*c7ca977eSAlexander Kabaev 4173*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 4174*c7ca977eSAlexander Kabaev#define TM_IN_SYS_TIME 1 4175*c7ca977eSAlexander Kabaev_ACEOF 4176*c7ca977eSAlexander Kabaev 4177*c7ca977eSAlexander Kabaevfi 4178*c7ca977eSAlexander Kabaev 4179*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for int" >&5 4180*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for int... $ECHO_C" >&6 4181*c7ca977eSAlexander Kabaevif test "${ac_cv_type_int+set}" = set; then 4182*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 4183*c7ca977eSAlexander Kabaevelse 4184*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4185*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4186*c7ca977eSAlexander Kabaev_ACEOF 4187*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4188*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4189*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4190*c7ca977eSAlexander Kabaev$ac_includes_default 4191*c7ca977eSAlexander Kabaevint 4192*c7ca977eSAlexander Kabaevmain () 4193*c7ca977eSAlexander Kabaev{ 4194*c7ca977eSAlexander Kabaevif ((int *) 0) 4195*c7ca977eSAlexander Kabaev return 0; 4196*c7ca977eSAlexander Kabaevif (sizeof (int)) 4197*c7ca977eSAlexander Kabaev return 0; 4198*c7ca977eSAlexander Kabaev ; 4199*c7ca977eSAlexander Kabaev return 0; 4200*c7ca977eSAlexander Kabaev} 4201*c7ca977eSAlexander Kabaev_ACEOF 4202*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4203*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4204*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4205*c7ca977eSAlexander Kabaev ac_status=$? 4206*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4207*c7ca977eSAlexander Kabaev rm -f conftest.er1 4208*c7ca977eSAlexander Kabaev cat conftest.err >&5 4209*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4210*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4211*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4212*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4213*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4214*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4215*c7ca977eSAlexander Kabaev ac_status=$? 4216*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4217*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4218*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4219*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4220*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4221*c7ca977eSAlexander Kabaev ac_status=$? 4222*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4223*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4224*c7ca977eSAlexander Kabaev ac_cv_type_int=yes 4225*c7ca977eSAlexander Kabaevelse 4226*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4227*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4228*c7ca977eSAlexander Kabaev 4229*c7ca977eSAlexander Kabaevac_cv_type_int=no 4230*c7ca977eSAlexander Kabaevfi 4231*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4232*c7ca977eSAlexander Kabaevfi 4233*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_type_int" >&5 4234*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_type_int" >&6 4235*c7ca977eSAlexander Kabaev 4236*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking size of int" >&5 4237*c7ca977eSAlexander Kabaevecho $ECHO_N "checking size of int... $ECHO_C" >&6 4238*c7ca977eSAlexander Kabaevif test "${ac_cv_sizeof_int+set}" = set; then 4239*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 4240*c7ca977eSAlexander Kabaevelse 4241*c7ca977eSAlexander Kabaev if test "$ac_cv_type_int" = yes; then 4242*c7ca977eSAlexander Kabaev # The cast to unsigned long works around a bug in the HP C Compiler 4243*c7ca977eSAlexander Kabaev # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4244*c7ca977eSAlexander Kabaev # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4245*c7ca977eSAlexander Kabaev # This bug is HP SR number 8606223364. 4246*c7ca977eSAlexander Kabaev if test "$cross_compiling" = yes; then 4247*c7ca977eSAlexander Kabaev # Depending upon the size, compute the lo and hi bounds. 4248*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 4249*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4250*c7ca977eSAlexander Kabaev_ACEOF 4251*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4252*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4253*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4254*c7ca977eSAlexander Kabaev$ac_includes_default 4255*c7ca977eSAlexander Kabaevint 4256*c7ca977eSAlexander Kabaevmain () 4257*c7ca977eSAlexander Kabaev{ 4258*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 4259*c7ca977eSAlexander Kabaevtest_array [0] = 0 4260*c7ca977eSAlexander Kabaev 4261*c7ca977eSAlexander Kabaev ; 4262*c7ca977eSAlexander Kabaev return 0; 4263*c7ca977eSAlexander Kabaev} 4264*c7ca977eSAlexander Kabaev_ACEOF 4265*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4266*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4267*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4268*c7ca977eSAlexander Kabaev ac_status=$? 4269*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4270*c7ca977eSAlexander Kabaev rm -f conftest.er1 4271*c7ca977eSAlexander Kabaev cat conftest.err >&5 4272*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4274*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4275*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4276*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4277*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4278*c7ca977eSAlexander Kabaev ac_status=$? 4279*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4281*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4282*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4283*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4284*c7ca977eSAlexander Kabaev ac_status=$? 4285*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4287*c7ca977eSAlexander Kabaev ac_lo=0 ac_mid=0 4288*c7ca977eSAlexander Kabaev while :; do 4289*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4290*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4291*c7ca977eSAlexander Kabaev_ACEOF 4292*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4293*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4294*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4295*c7ca977eSAlexander Kabaev$ac_includes_default 4296*c7ca977eSAlexander Kabaevint 4297*c7ca977eSAlexander Kabaevmain () 4298*c7ca977eSAlexander Kabaev{ 4299*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4300*c7ca977eSAlexander Kabaevtest_array [0] = 0 4301*c7ca977eSAlexander Kabaev 4302*c7ca977eSAlexander Kabaev ; 4303*c7ca977eSAlexander Kabaev return 0; 4304*c7ca977eSAlexander Kabaev} 4305*c7ca977eSAlexander Kabaev_ACEOF 4306*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4307*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4308*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4309*c7ca977eSAlexander Kabaev ac_status=$? 4310*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4311*c7ca977eSAlexander Kabaev rm -f conftest.er1 4312*c7ca977eSAlexander Kabaev cat conftest.err >&5 4313*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4314*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4315*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4316*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4317*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4318*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4319*c7ca977eSAlexander Kabaev ac_status=$? 4320*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4321*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4322*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4323*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4324*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4325*c7ca977eSAlexander Kabaev ac_status=$? 4326*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4327*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4328*c7ca977eSAlexander Kabaev ac_hi=$ac_mid; break 4329*c7ca977eSAlexander Kabaevelse 4330*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4331*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4332*c7ca977eSAlexander Kabaev 4333*c7ca977eSAlexander Kabaevac_lo=`expr $ac_mid + 1` 4334*c7ca977eSAlexander Kabaev if test $ac_lo -le $ac_mid; then 4335*c7ca977eSAlexander Kabaev ac_lo= ac_hi= 4336*c7ca977eSAlexander Kabaev break 4337*c7ca977eSAlexander Kabaev fi 4338*c7ca977eSAlexander Kabaev ac_mid=`expr 2 '*' $ac_mid + 1` 4339*c7ca977eSAlexander Kabaevfi 4340*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4341*c7ca977eSAlexander Kabaev done 4342*c7ca977eSAlexander Kabaevelse 4343*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4344*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4345*c7ca977eSAlexander Kabaev 4346*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 4347*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4348*c7ca977eSAlexander Kabaev_ACEOF 4349*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4350*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4351*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4352*c7ca977eSAlexander Kabaev$ac_includes_default 4353*c7ca977eSAlexander Kabaevint 4354*c7ca977eSAlexander Kabaevmain () 4355*c7ca977eSAlexander Kabaev{ 4356*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 4357*c7ca977eSAlexander Kabaevtest_array [0] = 0 4358*c7ca977eSAlexander Kabaev 4359*c7ca977eSAlexander Kabaev ; 4360*c7ca977eSAlexander Kabaev return 0; 4361*c7ca977eSAlexander Kabaev} 4362*c7ca977eSAlexander Kabaev_ACEOF 4363*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4364*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4365*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4366*c7ca977eSAlexander Kabaev ac_status=$? 4367*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4368*c7ca977eSAlexander Kabaev rm -f conftest.er1 4369*c7ca977eSAlexander Kabaev cat conftest.err >&5 4370*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4371*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4372*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4373*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4374*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4375*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4376*c7ca977eSAlexander Kabaev ac_status=$? 4377*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4378*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4379*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4380*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4381*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4382*c7ca977eSAlexander Kabaev ac_status=$? 4383*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4384*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4385*c7ca977eSAlexander Kabaev ac_hi=-1 ac_mid=-1 4386*c7ca977eSAlexander Kabaev while :; do 4387*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4388*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4389*c7ca977eSAlexander Kabaev_ACEOF 4390*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4391*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4392*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4393*c7ca977eSAlexander Kabaev$ac_includes_default 4394*c7ca977eSAlexander Kabaevint 4395*c7ca977eSAlexander Kabaevmain () 4396*c7ca977eSAlexander Kabaev{ 4397*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 4398*c7ca977eSAlexander Kabaevtest_array [0] = 0 4399*c7ca977eSAlexander Kabaev 4400*c7ca977eSAlexander Kabaev ; 4401*c7ca977eSAlexander Kabaev return 0; 4402*c7ca977eSAlexander Kabaev} 4403*c7ca977eSAlexander Kabaev_ACEOF 4404*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4405*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4406*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4407*c7ca977eSAlexander Kabaev ac_status=$? 4408*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4409*c7ca977eSAlexander Kabaev rm -f conftest.er1 4410*c7ca977eSAlexander Kabaev cat conftest.err >&5 4411*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4413*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4414*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4415*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4416*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4417*c7ca977eSAlexander Kabaev ac_status=$? 4418*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4419*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4420*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4421*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4422*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4423*c7ca977eSAlexander Kabaev ac_status=$? 4424*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4425*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4426*c7ca977eSAlexander Kabaev ac_lo=$ac_mid; break 4427*c7ca977eSAlexander Kabaevelse 4428*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4429*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4430*c7ca977eSAlexander Kabaev 4431*c7ca977eSAlexander Kabaevac_hi=`expr '(' $ac_mid ')' - 1` 4432*c7ca977eSAlexander Kabaev if test $ac_mid -le $ac_hi; then 4433*c7ca977eSAlexander Kabaev ac_lo= ac_hi= 4434*c7ca977eSAlexander Kabaev break 4435*c7ca977eSAlexander Kabaev fi 4436*c7ca977eSAlexander Kabaev ac_mid=`expr 2 '*' $ac_mid` 4437*c7ca977eSAlexander Kabaevfi 4438*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4439*c7ca977eSAlexander Kabaev done 4440*c7ca977eSAlexander Kabaevelse 4441*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4442*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4443*c7ca977eSAlexander Kabaev 4444*c7ca977eSAlexander Kabaevac_lo= ac_hi= 4445*c7ca977eSAlexander Kabaevfi 4446*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4447*c7ca977eSAlexander Kabaevfi 4448*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4449*c7ca977eSAlexander Kabaev# Binary search between lo and hi bounds. 4450*c7ca977eSAlexander Kabaevwhile test "x$ac_lo" != "x$ac_hi"; do 4451*c7ca977eSAlexander Kabaev ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4452*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4453*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4454*c7ca977eSAlexander Kabaev_ACEOF 4455*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4456*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4457*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4458*c7ca977eSAlexander Kabaev$ac_includes_default 4459*c7ca977eSAlexander Kabaevint 4460*c7ca977eSAlexander Kabaevmain () 4461*c7ca977eSAlexander Kabaev{ 4462*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 4463*c7ca977eSAlexander Kabaevtest_array [0] = 0 4464*c7ca977eSAlexander Kabaev 4465*c7ca977eSAlexander Kabaev ; 4466*c7ca977eSAlexander Kabaev return 0; 4467*c7ca977eSAlexander Kabaev} 4468*c7ca977eSAlexander Kabaev_ACEOF 4469*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4470*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4471*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4472*c7ca977eSAlexander Kabaev ac_status=$? 4473*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4474*c7ca977eSAlexander Kabaev rm -f conftest.er1 4475*c7ca977eSAlexander Kabaev cat conftest.err >&5 4476*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4477*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4478*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4479*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4480*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4481*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4482*c7ca977eSAlexander Kabaev ac_status=$? 4483*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4484*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4485*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4486*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4487*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4488*c7ca977eSAlexander Kabaev ac_status=$? 4489*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4490*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4491*c7ca977eSAlexander Kabaev ac_hi=$ac_mid 4492*c7ca977eSAlexander Kabaevelse 4493*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4494*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4495*c7ca977eSAlexander Kabaev 4496*c7ca977eSAlexander Kabaevac_lo=`expr '(' $ac_mid ')' + 1` 4497*c7ca977eSAlexander Kabaevfi 4498*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4499*c7ca977eSAlexander Kabaevdone 4500*c7ca977eSAlexander Kabaevcase $ac_lo in 4501*c7ca977eSAlexander Kabaev?*) ac_cv_sizeof_int=$ac_lo;; 4502*c7ca977eSAlexander Kabaev'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4503*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 4504*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot compute sizeof (int), 77 4505*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 4506*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } ;; 4507*c7ca977eSAlexander Kabaevesac 4508*c7ca977eSAlexander Kabaevelse 4509*c7ca977eSAlexander Kabaev if test "$cross_compiling" = yes; then 4510*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4511*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 4512*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot run test program while cross compiling 4513*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 4514*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 4515*c7ca977eSAlexander Kabaevelse 4516*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4517*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4518*c7ca977eSAlexander Kabaev_ACEOF 4519*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4520*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4521*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4522*c7ca977eSAlexander Kabaev$ac_includes_default 4523*c7ca977eSAlexander Kabaevlong longval () { return (long) (sizeof (int)); } 4524*c7ca977eSAlexander Kabaevunsigned long ulongval () { return (long) (sizeof (int)); } 4525*c7ca977eSAlexander Kabaev#include <stdio.h> 4526*c7ca977eSAlexander Kabaev#include <stdlib.h> 4527*c7ca977eSAlexander Kabaevint 4528*c7ca977eSAlexander Kabaevmain () 4529*c7ca977eSAlexander Kabaev{ 4530*c7ca977eSAlexander Kabaev 4531*c7ca977eSAlexander Kabaev FILE *f = fopen ("conftest.val", "w"); 4532*c7ca977eSAlexander Kabaev if (! f) 4533*c7ca977eSAlexander Kabaev exit (1); 4534*c7ca977eSAlexander Kabaev if (((long) (sizeof (int))) < 0) 4535*c7ca977eSAlexander Kabaev { 4536*c7ca977eSAlexander Kabaev long i = longval (); 4537*c7ca977eSAlexander Kabaev if (i != ((long) (sizeof (int)))) 4538*c7ca977eSAlexander Kabaev exit (1); 4539*c7ca977eSAlexander Kabaev fprintf (f, "%ld\n", i); 4540*c7ca977eSAlexander Kabaev } 4541*c7ca977eSAlexander Kabaev else 4542*c7ca977eSAlexander Kabaev { 4543*c7ca977eSAlexander Kabaev unsigned long i = ulongval (); 4544*c7ca977eSAlexander Kabaev if (i != ((long) (sizeof (int)))) 4545*c7ca977eSAlexander Kabaev exit (1); 4546*c7ca977eSAlexander Kabaev fprintf (f, "%lu\n", i); 4547*c7ca977eSAlexander Kabaev } 4548*c7ca977eSAlexander Kabaev exit (ferror (f) || fclose (f) != 0); 4549*c7ca977eSAlexander Kabaev 4550*c7ca977eSAlexander Kabaev ; 4551*c7ca977eSAlexander Kabaev return 0; 4552*c7ca977eSAlexander Kabaev} 4553*c7ca977eSAlexander Kabaev_ACEOF 4554*c7ca977eSAlexander Kabaevrm -f conftest$ac_exeext 4555*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4556*c7ca977eSAlexander Kabaev (eval $ac_link) 2>&5 4557*c7ca977eSAlexander Kabaev ac_status=$? 4558*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4559*c7ca977eSAlexander Kabaev (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4560*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4561*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4562*c7ca977eSAlexander Kabaev ac_status=$? 4563*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4565*c7ca977eSAlexander Kabaev ac_cv_sizeof_int=`cat conftest.val` 4566*c7ca977eSAlexander Kabaevelse 4567*c7ca977eSAlexander Kabaev echo "$as_me: program exited with status $ac_status" >&5 4568*c7ca977eSAlexander Kabaevecho "$as_me: failed program was:" >&5 4569*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4570*c7ca977eSAlexander Kabaev 4571*c7ca977eSAlexander Kabaev( exit $ac_status ) 4572*c7ca977eSAlexander Kabaev{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 4573*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 4574*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot compute sizeof (int), 77 4575*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 4576*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 4577*c7ca977eSAlexander Kabaevfi 4578*c7ca977eSAlexander Kabaevrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4579*c7ca977eSAlexander Kabaevfi 4580*c7ca977eSAlexander Kabaevfi 4581*c7ca977eSAlexander Kabaevrm -f conftest.val 4582*c7ca977eSAlexander Kabaevelse 4583*c7ca977eSAlexander Kabaev ac_cv_sizeof_int=0 4584*c7ca977eSAlexander Kabaevfi 4585*c7ca977eSAlexander Kabaevfi 4586*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 4587*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_sizeof_int" >&6 4588*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 4589*c7ca977eSAlexander Kabaev#define SIZEOF_INT $ac_cv_sizeof_int 4590*c7ca977eSAlexander Kabaev_ACEOF 4591*c7ca977eSAlexander Kabaev 4592*c7ca977eSAlexander Kabaev 4593*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for long" >&5 4594*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for long... $ECHO_C" >&6 4595*c7ca977eSAlexander Kabaevif test "${ac_cv_type_long+set}" = set; then 4596*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 4597*c7ca977eSAlexander Kabaevelse 4598*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4599*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4600*c7ca977eSAlexander Kabaev_ACEOF 4601*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4602*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4603*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4604*c7ca977eSAlexander Kabaev$ac_includes_default 4605*c7ca977eSAlexander Kabaevint 4606*c7ca977eSAlexander Kabaevmain () 4607*c7ca977eSAlexander Kabaev{ 4608*c7ca977eSAlexander Kabaevif ((long *) 0) 4609*c7ca977eSAlexander Kabaev return 0; 4610*c7ca977eSAlexander Kabaevif (sizeof (long)) 4611*c7ca977eSAlexander Kabaev return 0; 4612*c7ca977eSAlexander Kabaev ; 4613*c7ca977eSAlexander Kabaev return 0; 4614*c7ca977eSAlexander Kabaev} 4615*c7ca977eSAlexander Kabaev_ACEOF 4616*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4617*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4618*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4619*c7ca977eSAlexander Kabaev ac_status=$? 4620*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4621*c7ca977eSAlexander Kabaev rm -f conftest.er1 4622*c7ca977eSAlexander Kabaev cat conftest.err >&5 4623*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4625*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4626*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4627*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4628*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4629*c7ca977eSAlexander Kabaev ac_status=$? 4630*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4631*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4632*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4633*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4634*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4635*c7ca977eSAlexander Kabaev ac_status=$? 4636*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4637*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4638*c7ca977eSAlexander Kabaev ac_cv_type_long=yes 4639*c7ca977eSAlexander Kabaevelse 4640*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4641*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4642*c7ca977eSAlexander Kabaev 4643*c7ca977eSAlexander Kabaevac_cv_type_long=no 4644*c7ca977eSAlexander Kabaevfi 4645*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4646*c7ca977eSAlexander Kabaevfi 4647*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_type_long" >&5 4648*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_type_long" >&6 4649*c7ca977eSAlexander Kabaev 4650*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking size of long" >&5 4651*c7ca977eSAlexander Kabaevecho $ECHO_N "checking size of long... $ECHO_C" >&6 4652*c7ca977eSAlexander Kabaevif test "${ac_cv_sizeof_long+set}" = set; then 4653*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 4654*c7ca977eSAlexander Kabaevelse 4655*c7ca977eSAlexander Kabaev if test "$ac_cv_type_long" = yes; then 4656*c7ca977eSAlexander Kabaev # The cast to unsigned long works around a bug in the HP C Compiler 4657*c7ca977eSAlexander Kabaev # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4658*c7ca977eSAlexander Kabaev # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4659*c7ca977eSAlexander Kabaev # This bug is HP SR number 8606223364. 4660*c7ca977eSAlexander Kabaev if test "$cross_compiling" = yes; then 4661*c7ca977eSAlexander Kabaev # Depending upon the size, compute the lo and hi bounds. 4662*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 4663*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4664*c7ca977eSAlexander Kabaev_ACEOF 4665*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4666*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4667*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4668*c7ca977eSAlexander Kabaev$ac_includes_default 4669*c7ca977eSAlexander Kabaevint 4670*c7ca977eSAlexander Kabaevmain () 4671*c7ca977eSAlexander Kabaev{ 4672*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 4673*c7ca977eSAlexander Kabaevtest_array [0] = 0 4674*c7ca977eSAlexander Kabaev 4675*c7ca977eSAlexander Kabaev ; 4676*c7ca977eSAlexander Kabaev return 0; 4677*c7ca977eSAlexander Kabaev} 4678*c7ca977eSAlexander Kabaev_ACEOF 4679*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4680*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4681*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4682*c7ca977eSAlexander Kabaev ac_status=$? 4683*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4684*c7ca977eSAlexander Kabaev rm -f conftest.er1 4685*c7ca977eSAlexander Kabaev cat conftest.err >&5 4686*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4687*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4688*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4689*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4690*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4691*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4692*c7ca977eSAlexander Kabaev ac_status=$? 4693*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4694*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4695*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4696*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4697*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4698*c7ca977eSAlexander Kabaev ac_status=$? 4699*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4700*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4701*c7ca977eSAlexander Kabaev ac_lo=0 ac_mid=0 4702*c7ca977eSAlexander Kabaev while :; do 4703*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4704*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4705*c7ca977eSAlexander Kabaev_ACEOF 4706*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4707*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4708*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4709*c7ca977eSAlexander Kabaev$ac_includes_default 4710*c7ca977eSAlexander Kabaevint 4711*c7ca977eSAlexander Kabaevmain () 4712*c7ca977eSAlexander Kabaev{ 4713*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 4714*c7ca977eSAlexander Kabaevtest_array [0] = 0 4715*c7ca977eSAlexander Kabaev 4716*c7ca977eSAlexander Kabaev ; 4717*c7ca977eSAlexander Kabaev return 0; 4718*c7ca977eSAlexander Kabaev} 4719*c7ca977eSAlexander Kabaev_ACEOF 4720*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4721*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4722*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4723*c7ca977eSAlexander Kabaev ac_status=$? 4724*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4725*c7ca977eSAlexander Kabaev rm -f conftest.er1 4726*c7ca977eSAlexander Kabaev cat conftest.err >&5 4727*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4728*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4729*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4730*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4731*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4732*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4733*c7ca977eSAlexander Kabaev ac_status=$? 4734*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4735*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4736*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4737*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4738*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4739*c7ca977eSAlexander Kabaev ac_status=$? 4740*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4741*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4742*c7ca977eSAlexander Kabaev ac_hi=$ac_mid; break 4743*c7ca977eSAlexander Kabaevelse 4744*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4745*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4746*c7ca977eSAlexander Kabaev 4747*c7ca977eSAlexander Kabaevac_lo=`expr $ac_mid + 1` 4748*c7ca977eSAlexander Kabaev if test $ac_lo -le $ac_mid; then 4749*c7ca977eSAlexander Kabaev ac_lo= ac_hi= 4750*c7ca977eSAlexander Kabaev break 4751*c7ca977eSAlexander Kabaev fi 4752*c7ca977eSAlexander Kabaev ac_mid=`expr 2 '*' $ac_mid + 1` 4753*c7ca977eSAlexander Kabaevfi 4754*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4755*c7ca977eSAlexander Kabaev done 4756*c7ca977eSAlexander Kabaevelse 4757*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4758*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4759*c7ca977eSAlexander Kabaev 4760*c7ca977eSAlexander Kabaevcat >conftest.$ac_ext <<_ACEOF 4761*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4762*c7ca977eSAlexander Kabaev_ACEOF 4763*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4764*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4765*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4766*c7ca977eSAlexander Kabaev$ac_includes_default 4767*c7ca977eSAlexander Kabaevint 4768*c7ca977eSAlexander Kabaevmain () 4769*c7ca977eSAlexander Kabaev{ 4770*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 4771*c7ca977eSAlexander Kabaevtest_array [0] = 0 4772*c7ca977eSAlexander Kabaev 4773*c7ca977eSAlexander Kabaev ; 4774*c7ca977eSAlexander Kabaev return 0; 4775*c7ca977eSAlexander Kabaev} 4776*c7ca977eSAlexander Kabaev_ACEOF 4777*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4778*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4779*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4780*c7ca977eSAlexander Kabaev ac_status=$? 4781*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4782*c7ca977eSAlexander Kabaev rm -f conftest.er1 4783*c7ca977eSAlexander Kabaev cat conftest.err >&5 4784*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4785*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4786*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4787*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4788*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4789*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4790*c7ca977eSAlexander Kabaev ac_status=$? 4791*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4792*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4793*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4794*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4795*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4796*c7ca977eSAlexander Kabaev ac_status=$? 4797*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4799*c7ca977eSAlexander Kabaev ac_hi=-1 ac_mid=-1 4800*c7ca977eSAlexander Kabaev while :; do 4801*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4802*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4803*c7ca977eSAlexander Kabaev_ACEOF 4804*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4805*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4806*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4807*c7ca977eSAlexander Kabaev$ac_includes_default 4808*c7ca977eSAlexander Kabaevint 4809*c7ca977eSAlexander Kabaevmain () 4810*c7ca977eSAlexander Kabaev{ 4811*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 4812*c7ca977eSAlexander Kabaevtest_array [0] = 0 4813*c7ca977eSAlexander Kabaev 4814*c7ca977eSAlexander Kabaev ; 4815*c7ca977eSAlexander Kabaev return 0; 4816*c7ca977eSAlexander Kabaev} 4817*c7ca977eSAlexander Kabaev_ACEOF 4818*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4819*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4820*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4821*c7ca977eSAlexander Kabaev ac_status=$? 4822*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4823*c7ca977eSAlexander Kabaev rm -f conftest.er1 4824*c7ca977eSAlexander Kabaev cat conftest.err >&5 4825*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4827*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4828*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4829*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4830*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4831*c7ca977eSAlexander Kabaev ac_status=$? 4832*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4833*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4834*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4835*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4836*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4837*c7ca977eSAlexander Kabaev ac_status=$? 4838*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4839*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4840*c7ca977eSAlexander Kabaev ac_lo=$ac_mid; break 4841*c7ca977eSAlexander Kabaevelse 4842*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4843*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4844*c7ca977eSAlexander Kabaev 4845*c7ca977eSAlexander Kabaevac_hi=`expr '(' $ac_mid ')' - 1` 4846*c7ca977eSAlexander Kabaev if test $ac_mid -le $ac_hi; then 4847*c7ca977eSAlexander Kabaev ac_lo= ac_hi= 4848*c7ca977eSAlexander Kabaev break 4849*c7ca977eSAlexander Kabaev fi 4850*c7ca977eSAlexander Kabaev ac_mid=`expr 2 '*' $ac_mid` 4851*c7ca977eSAlexander Kabaevfi 4852*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4853*c7ca977eSAlexander Kabaev done 4854*c7ca977eSAlexander Kabaevelse 4855*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4856*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4857*c7ca977eSAlexander Kabaev 4858*c7ca977eSAlexander Kabaevac_lo= ac_hi= 4859*c7ca977eSAlexander Kabaevfi 4860*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4861*c7ca977eSAlexander Kabaevfi 4862*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4863*c7ca977eSAlexander Kabaev# Binary search between lo and hi bounds. 4864*c7ca977eSAlexander Kabaevwhile test "x$ac_lo" != "x$ac_hi"; do 4865*c7ca977eSAlexander Kabaev ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4866*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4867*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4868*c7ca977eSAlexander Kabaev_ACEOF 4869*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4870*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4871*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4872*c7ca977eSAlexander Kabaev$ac_includes_default 4873*c7ca977eSAlexander Kabaevint 4874*c7ca977eSAlexander Kabaevmain () 4875*c7ca977eSAlexander Kabaev{ 4876*c7ca977eSAlexander Kabaevstatic int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 4877*c7ca977eSAlexander Kabaevtest_array [0] = 0 4878*c7ca977eSAlexander Kabaev 4879*c7ca977eSAlexander Kabaev ; 4880*c7ca977eSAlexander Kabaev return 0; 4881*c7ca977eSAlexander Kabaev} 4882*c7ca977eSAlexander Kabaev_ACEOF 4883*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 4884*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4885*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 4886*c7ca977eSAlexander Kabaev ac_status=$? 4887*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 4888*c7ca977eSAlexander Kabaev rm -f conftest.er1 4889*c7ca977eSAlexander Kabaev cat conftest.err >&5 4890*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4891*c7ca977eSAlexander Kabaev (exit $ac_status); } && 4892*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 4893*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 4894*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4895*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4896*c7ca977eSAlexander Kabaev ac_status=$? 4897*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 4899*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 4900*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4901*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4902*c7ca977eSAlexander Kabaev ac_status=$? 4903*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4904*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4905*c7ca977eSAlexander Kabaev ac_hi=$ac_mid 4906*c7ca977eSAlexander Kabaevelse 4907*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 4908*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4909*c7ca977eSAlexander Kabaev 4910*c7ca977eSAlexander Kabaevac_lo=`expr '(' $ac_mid ')' + 1` 4911*c7ca977eSAlexander Kabaevfi 4912*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4913*c7ca977eSAlexander Kabaevdone 4914*c7ca977eSAlexander Kabaevcase $ac_lo in 4915*c7ca977eSAlexander Kabaev?*) ac_cv_sizeof_long=$ac_lo;; 4916*c7ca977eSAlexander Kabaev'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 4917*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 4918*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot compute sizeof (long), 77 4919*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 4920*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } ;; 4921*c7ca977eSAlexander Kabaevesac 4922*c7ca977eSAlexander Kabaevelse 4923*c7ca977eSAlexander Kabaev if test "$cross_compiling" = yes; then 4924*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 4925*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 4926*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot run test program while cross compiling 4927*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 4928*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 4929*c7ca977eSAlexander Kabaevelse 4930*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 4931*c7ca977eSAlexander Kabaev/* confdefs.h. */ 4932*c7ca977eSAlexander Kabaev_ACEOF 4933*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 4934*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 4935*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 4936*c7ca977eSAlexander Kabaev$ac_includes_default 4937*c7ca977eSAlexander Kabaevlong longval () { return (long) (sizeof (long)); } 4938*c7ca977eSAlexander Kabaevunsigned long ulongval () { return (long) (sizeof (long)); } 4939*c7ca977eSAlexander Kabaev#include <stdio.h> 4940*c7ca977eSAlexander Kabaev#include <stdlib.h> 4941*c7ca977eSAlexander Kabaevint 4942*c7ca977eSAlexander Kabaevmain () 4943*c7ca977eSAlexander Kabaev{ 4944*c7ca977eSAlexander Kabaev 4945*c7ca977eSAlexander Kabaev FILE *f = fopen ("conftest.val", "w"); 4946*c7ca977eSAlexander Kabaev if (! f) 4947*c7ca977eSAlexander Kabaev exit (1); 4948*c7ca977eSAlexander Kabaev if (((long) (sizeof (long))) < 0) 4949*c7ca977eSAlexander Kabaev { 4950*c7ca977eSAlexander Kabaev long i = longval (); 4951*c7ca977eSAlexander Kabaev if (i != ((long) (sizeof (long)))) 4952*c7ca977eSAlexander Kabaev exit (1); 4953*c7ca977eSAlexander Kabaev fprintf (f, "%ld\n", i); 4954*c7ca977eSAlexander Kabaev } 4955*c7ca977eSAlexander Kabaev else 4956*c7ca977eSAlexander Kabaev { 4957*c7ca977eSAlexander Kabaev unsigned long i = ulongval (); 4958*c7ca977eSAlexander Kabaev if (i != ((long) (sizeof (long)))) 4959*c7ca977eSAlexander Kabaev exit (1); 4960*c7ca977eSAlexander Kabaev fprintf (f, "%lu\n", i); 4961*c7ca977eSAlexander Kabaev } 4962*c7ca977eSAlexander Kabaev exit (ferror (f) || fclose (f) != 0); 4963*c7ca977eSAlexander Kabaev 4964*c7ca977eSAlexander Kabaev ; 4965*c7ca977eSAlexander Kabaev return 0; 4966*c7ca977eSAlexander Kabaev} 4967*c7ca977eSAlexander Kabaev_ACEOF 4968*c7ca977eSAlexander Kabaevrm -f conftest$ac_exeext 4969*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4970*c7ca977eSAlexander Kabaev (eval $ac_link) 2>&5 4971*c7ca977eSAlexander Kabaev ac_status=$? 4972*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4973*c7ca977eSAlexander Kabaev (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4974*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4975*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 4976*c7ca977eSAlexander Kabaev ac_status=$? 4977*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 4978*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 4979*c7ca977eSAlexander Kabaev ac_cv_sizeof_long=`cat conftest.val` 4980*c7ca977eSAlexander Kabaevelse 4981*c7ca977eSAlexander Kabaev echo "$as_me: program exited with status $ac_status" >&5 4982*c7ca977eSAlexander Kabaevecho "$as_me: failed program was:" >&5 4983*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 4984*c7ca977eSAlexander Kabaev 4985*c7ca977eSAlexander Kabaev( exit $ac_status ) 4986*c7ca977eSAlexander Kabaev{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 4987*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&5 4988*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot compute sizeof (long), 77 4989*c7ca977eSAlexander KabaevSee \`config.log' for more details." >&2;} 4990*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 4991*c7ca977eSAlexander Kabaevfi 4992*c7ca977eSAlexander Kabaevrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4993*c7ca977eSAlexander Kabaevfi 4994*c7ca977eSAlexander Kabaevfi 4995*c7ca977eSAlexander Kabaevrm -f conftest.val 4996*c7ca977eSAlexander Kabaevelse 4997*c7ca977eSAlexander Kabaev ac_cv_sizeof_long=0 4998*c7ca977eSAlexander Kabaevfi 4999*c7ca977eSAlexander Kabaevfi 5000*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 5001*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_sizeof_long" >&6 5002*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5003*c7ca977eSAlexander Kabaev#define SIZEOF_LONG $ac_cv_sizeof_long 5004*c7ca977eSAlexander Kabaev_ACEOF 5005*c7ca977eSAlexander Kabaev 5006*c7ca977eSAlexander Kabaev 5007*c7ca977eSAlexander Kabaev 5008*c7ca977eSAlexander Kabaev 5009*c7ca977eSAlexander Kabaev 5010*c7ca977eSAlexander Kabaev 5011*c7ca977eSAlexander Kabaev 5012*c7ca977eSAlexander Kabaev 5013*c7ca977eSAlexander Kabaev 5014*c7ca977eSAlexander Kabaev 5015*c7ca977eSAlexander Kabaev 5016*c7ca977eSAlexander Kabaev 5017*c7ca977eSAlexander Kabaev 5018*c7ca977eSAlexander Kabaev 5019*c7ca977eSAlexander Kabaev 5020*c7ca977eSAlexander Kabaev 5021*c7ca977eSAlexander Kabaev 5022*c7ca977eSAlexander Kabaev 5023*c7ca977eSAlexander Kabaev 5024*c7ca977eSAlexander Kabaevfor ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked 5025*c7ca977eSAlexander Kabaevdo 5026*c7ca977eSAlexander Kabaevas_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5027*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_func" >&5 5028*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5029*c7ca977eSAlexander Kabaevif eval "test \"\${$as_ac_var+set}\" = set"; then 5030*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5031*c7ca977eSAlexander Kabaevelse 5032*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5033*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5034*c7ca977eSAlexander Kabaev_ACEOF 5035*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5036*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5037*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5038*c7ca977eSAlexander Kabaev/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5039*c7ca977eSAlexander Kabaev For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5040*c7ca977eSAlexander Kabaev#define $ac_func innocuous_$ac_func 5041*c7ca977eSAlexander Kabaev 5042*c7ca977eSAlexander Kabaev/* System header to define __stub macros and hopefully few prototypes, 5043*c7ca977eSAlexander Kabaev which can conflict with char $ac_func (); below. 5044*c7ca977eSAlexander Kabaev Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5045*c7ca977eSAlexander Kabaev <limits.h> exists even on freestanding compilers. */ 5046*c7ca977eSAlexander Kabaev 5047*c7ca977eSAlexander Kabaev#ifdef __STDC__ 5048*c7ca977eSAlexander Kabaev# include <limits.h> 5049*c7ca977eSAlexander Kabaev#else 5050*c7ca977eSAlexander Kabaev# include <assert.h> 5051*c7ca977eSAlexander Kabaev#endif 5052*c7ca977eSAlexander Kabaev 5053*c7ca977eSAlexander Kabaev#undef $ac_func 5054*c7ca977eSAlexander Kabaev 5055*c7ca977eSAlexander Kabaev/* Override any gcc2 internal prototype to avoid an error. */ 5056*c7ca977eSAlexander Kabaev#ifdef __cplusplus 5057*c7ca977eSAlexander Kabaevextern "C" 5058*c7ca977eSAlexander Kabaev{ 5059*c7ca977eSAlexander Kabaev#endif 5060*c7ca977eSAlexander Kabaev/* We use char because int might match the return type of a gcc2 5061*c7ca977eSAlexander Kabaev builtin and then its argument prototype would still apply. */ 5062*c7ca977eSAlexander Kabaevchar $ac_func (); 5063*c7ca977eSAlexander Kabaev/* The GNU C library defines this for functions which it implements 5064*c7ca977eSAlexander Kabaev to always fail with ENOSYS. Some functions are actually named 5065*c7ca977eSAlexander Kabaev something starting with __ and the normal name is an alias. */ 5066*c7ca977eSAlexander Kabaev#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5067*c7ca977eSAlexander Kabaevchoke me 5068*c7ca977eSAlexander Kabaev#else 5069*c7ca977eSAlexander Kabaevchar (*f) () = $ac_func; 5070*c7ca977eSAlexander Kabaev#endif 5071*c7ca977eSAlexander Kabaev#ifdef __cplusplus 5072*c7ca977eSAlexander Kabaev} 5073*c7ca977eSAlexander Kabaev#endif 5074*c7ca977eSAlexander Kabaev 5075*c7ca977eSAlexander Kabaevint 5076*c7ca977eSAlexander Kabaevmain () 5077*c7ca977eSAlexander Kabaev{ 5078*c7ca977eSAlexander Kabaevreturn f != $ac_func; 5079*c7ca977eSAlexander Kabaev ; 5080*c7ca977eSAlexander Kabaev return 0; 5081*c7ca977eSAlexander Kabaev} 5082*c7ca977eSAlexander Kabaev_ACEOF 5083*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext conftest$ac_exeext 5084*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5085*c7ca977eSAlexander Kabaev (eval $ac_link) 2>conftest.er1 5086*c7ca977eSAlexander Kabaev ac_status=$? 5087*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5088*c7ca977eSAlexander Kabaev rm -f conftest.er1 5089*c7ca977eSAlexander Kabaev cat conftest.err >&5 5090*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5091*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5092*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5093*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5094*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5095*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5096*c7ca977eSAlexander Kabaev ac_status=$? 5097*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5098*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5099*c7ca977eSAlexander Kabaev { ac_try='test -s conftest$ac_exeext' 5100*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5101*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5102*c7ca977eSAlexander Kabaev ac_status=$? 5103*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5104*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5105*c7ca977eSAlexander Kabaev eval "$as_ac_var=yes" 5106*c7ca977eSAlexander Kabaevelse 5107*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5108*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5109*c7ca977eSAlexander Kabaev 5110*c7ca977eSAlexander Kabaeveval "$as_ac_var=no" 5111*c7ca977eSAlexander Kabaevfi 5112*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext \ 5113*c7ca977eSAlexander Kabaev conftest$ac_exeext conftest.$ac_ext 5114*c7ca977eSAlexander Kabaevfi 5115*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5116*c7ca977eSAlexander Kabaevecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5117*c7ca977eSAlexander Kabaevif test `eval echo '${'$as_ac_var'}'` = yes; then 5118*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5119*c7ca977eSAlexander Kabaev#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5120*c7ca977eSAlexander Kabaev_ACEOF 5121*c7ca977eSAlexander Kabaev 5122*c7ca977eSAlexander Kabaevfi 5123*c7ca977eSAlexander Kabaevdone 5124*c7ca977eSAlexander Kabaev 5125*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether abort is declared" >&5 5126*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether abort is declared... $ECHO_C" >&6 5127*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_abort+set}" = set; then 5128*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5129*c7ca977eSAlexander Kabaevelse 5130*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5131*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5132*c7ca977eSAlexander Kabaev_ACEOF 5133*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5134*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5135*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5136*c7ca977eSAlexander Kabaev$ac_includes_default 5137*c7ca977eSAlexander Kabaevint 5138*c7ca977eSAlexander Kabaevmain () 5139*c7ca977eSAlexander Kabaev{ 5140*c7ca977eSAlexander Kabaev#ifndef abort 5141*c7ca977eSAlexander Kabaev char *p = (char *) abort; 5142*c7ca977eSAlexander Kabaev#endif 5143*c7ca977eSAlexander Kabaev 5144*c7ca977eSAlexander Kabaev ; 5145*c7ca977eSAlexander Kabaev return 0; 5146*c7ca977eSAlexander Kabaev} 5147*c7ca977eSAlexander Kabaev_ACEOF 5148*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5149*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5150*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5151*c7ca977eSAlexander Kabaev ac_status=$? 5152*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5153*c7ca977eSAlexander Kabaev rm -f conftest.er1 5154*c7ca977eSAlexander Kabaev cat conftest.err >&5 5155*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5156*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5157*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5158*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5159*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5160*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5161*c7ca977eSAlexander Kabaev ac_status=$? 5162*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5163*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5164*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5165*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5166*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5167*c7ca977eSAlexander Kabaev ac_status=$? 5168*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5169*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5170*c7ca977eSAlexander Kabaev ac_cv_have_decl_abort=yes 5171*c7ca977eSAlexander Kabaevelse 5172*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5173*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5174*c7ca977eSAlexander Kabaev 5175*c7ca977eSAlexander Kabaevac_cv_have_decl_abort=no 5176*c7ca977eSAlexander Kabaevfi 5177*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5178*c7ca977eSAlexander Kabaevfi 5179*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5 5180*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_abort" >&6 5181*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_abort = yes; then 5182*c7ca977eSAlexander Kabaev 5183*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5184*c7ca977eSAlexander Kabaev#define HAVE_DECL_ABORT 1 5185*c7ca977eSAlexander Kabaev_ACEOF 5186*c7ca977eSAlexander Kabaev 5187*c7ca977eSAlexander Kabaev 5188*c7ca977eSAlexander Kabaevelse 5189*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5190*c7ca977eSAlexander Kabaev#define HAVE_DECL_ABORT 0 5191*c7ca977eSAlexander Kabaev_ACEOF 5192*c7ca977eSAlexander Kabaev 5193*c7ca977eSAlexander Kabaev 5194*c7ca977eSAlexander Kabaevfi 5195*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether asprintf is declared" >&5 5196*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6 5197*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_asprintf+set}" = set; then 5198*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5199*c7ca977eSAlexander Kabaevelse 5200*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5201*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5202*c7ca977eSAlexander Kabaev_ACEOF 5203*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5204*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5205*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5206*c7ca977eSAlexander Kabaev$ac_includes_default 5207*c7ca977eSAlexander Kabaevint 5208*c7ca977eSAlexander Kabaevmain () 5209*c7ca977eSAlexander Kabaev{ 5210*c7ca977eSAlexander Kabaev#ifndef asprintf 5211*c7ca977eSAlexander Kabaev char *p = (char *) asprintf; 5212*c7ca977eSAlexander Kabaev#endif 5213*c7ca977eSAlexander Kabaev 5214*c7ca977eSAlexander Kabaev ; 5215*c7ca977eSAlexander Kabaev return 0; 5216*c7ca977eSAlexander Kabaev} 5217*c7ca977eSAlexander Kabaev_ACEOF 5218*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5219*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5220*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5221*c7ca977eSAlexander Kabaev ac_status=$? 5222*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5223*c7ca977eSAlexander Kabaev rm -f conftest.er1 5224*c7ca977eSAlexander Kabaev cat conftest.err >&5 5225*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5226*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5227*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5228*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5229*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5230*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5231*c7ca977eSAlexander Kabaev ac_status=$? 5232*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5233*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5234*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5235*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5236*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5237*c7ca977eSAlexander Kabaev ac_status=$? 5238*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5239*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5240*c7ca977eSAlexander Kabaev ac_cv_have_decl_asprintf=yes 5241*c7ca977eSAlexander Kabaevelse 5242*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5243*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5244*c7ca977eSAlexander Kabaev 5245*c7ca977eSAlexander Kabaevac_cv_have_decl_asprintf=no 5246*c7ca977eSAlexander Kabaevfi 5247*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5248*c7ca977eSAlexander Kabaevfi 5249*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5 5250*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_asprintf" >&6 5251*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_asprintf = yes; then 5252*c7ca977eSAlexander Kabaev 5253*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5254*c7ca977eSAlexander Kabaev#define HAVE_DECL_ASPRINTF 1 5255*c7ca977eSAlexander Kabaev_ACEOF 5256*c7ca977eSAlexander Kabaev 5257*c7ca977eSAlexander Kabaev 5258*c7ca977eSAlexander Kabaevelse 5259*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5260*c7ca977eSAlexander Kabaev#define HAVE_DECL_ASPRINTF 0 5261*c7ca977eSAlexander Kabaev_ACEOF 5262*c7ca977eSAlexander Kabaev 5263*c7ca977eSAlexander Kabaev 5264*c7ca977eSAlexander Kabaevfi 5265*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether basename is declared" >&5 5266*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 5267*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_basename+set}" = set; then 5268*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5269*c7ca977eSAlexander Kabaevelse 5270*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5271*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5272*c7ca977eSAlexander Kabaev_ACEOF 5273*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5274*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5275*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5276*c7ca977eSAlexander Kabaev$ac_includes_default 5277*c7ca977eSAlexander Kabaevint 5278*c7ca977eSAlexander Kabaevmain () 5279*c7ca977eSAlexander Kabaev{ 5280*c7ca977eSAlexander Kabaev#ifndef basename 5281*c7ca977eSAlexander Kabaev char *p = (char *) basename; 5282*c7ca977eSAlexander Kabaev#endif 5283*c7ca977eSAlexander Kabaev 5284*c7ca977eSAlexander Kabaev ; 5285*c7ca977eSAlexander Kabaev return 0; 5286*c7ca977eSAlexander Kabaev} 5287*c7ca977eSAlexander Kabaev_ACEOF 5288*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5289*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5290*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5291*c7ca977eSAlexander Kabaev ac_status=$? 5292*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5293*c7ca977eSAlexander Kabaev rm -f conftest.er1 5294*c7ca977eSAlexander Kabaev cat conftest.err >&5 5295*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5296*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5297*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5298*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5299*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5300*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5301*c7ca977eSAlexander Kabaev ac_status=$? 5302*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5303*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5304*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5305*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5306*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5307*c7ca977eSAlexander Kabaev ac_status=$? 5308*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5309*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5310*c7ca977eSAlexander Kabaev ac_cv_have_decl_basename=yes 5311*c7ca977eSAlexander Kabaevelse 5312*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5313*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5314*c7ca977eSAlexander Kabaev 5315*c7ca977eSAlexander Kabaevac_cv_have_decl_basename=no 5316*c7ca977eSAlexander Kabaevfi 5317*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5318*c7ca977eSAlexander Kabaevfi 5319*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 5320*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_basename" >&6 5321*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_basename = yes; then 5322*c7ca977eSAlexander Kabaev 5323*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5324*c7ca977eSAlexander Kabaev#define HAVE_DECL_BASENAME 1 5325*c7ca977eSAlexander Kabaev_ACEOF 5326*c7ca977eSAlexander Kabaev 5327*c7ca977eSAlexander Kabaev 5328*c7ca977eSAlexander Kabaevelse 5329*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5330*c7ca977eSAlexander Kabaev#define HAVE_DECL_BASENAME 0 5331*c7ca977eSAlexander Kabaev_ACEOF 5332*c7ca977eSAlexander Kabaev 5333*c7ca977eSAlexander Kabaev 5334*c7ca977eSAlexander Kabaevfi 5335*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether errno is declared" >&5 5336*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether errno is declared... $ECHO_C" >&6 5337*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_errno+set}" = set; then 5338*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5339*c7ca977eSAlexander Kabaevelse 5340*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5341*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5342*c7ca977eSAlexander Kabaev_ACEOF 5343*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5344*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5345*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5346*c7ca977eSAlexander Kabaev$ac_includes_default 5347*c7ca977eSAlexander Kabaevint 5348*c7ca977eSAlexander Kabaevmain () 5349*c7ca977eSAlexander Kabaev{ 5350*c7ca977eSAlexander Kabaev#ifndef errno 5351*c7ca977eSAlexander Kabaev char *p = (char *) errno; 5352*c7ca977eSAlexander Kabaev#endif 5353*c7ca977eSAlexander Kabaev 5354*c7ca977eSAlexander Kabaev ; 5355*c7ca977eSAlexander Kabaev return 0; 5356*c7ca977eSAlexander Kabaev} 5357*c7ca977eSAlexander Kabaev_ACEOF 5358*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5359*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5360*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5361*c7ca977eSAlexander Kabaev ac_status=$? 5362*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5363*c7ca977eSAlexander Kabaev rm -f conftest.er1 5364*c7ca977eSAlexander Kabaev cat conftest.err >&5 5365*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5366*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5367*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5368*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5369*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5370*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5371*c7ca977eSAlexander Kabaev ac_status=$? 5372*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5373*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5374*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5375*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5376*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5377*c7ca977eSAlexander Kabaev ac_status=$? 5378*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5380*c7ca977eSAlexander Kabaev ac_cv_have_decl_errno=yes 5381*c7ca977eSAlexander Kabaevelse 5382*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5383*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5384*c7ca977eSAlexander Kabaev 5385*c7ca977eSAlexander Kabaevac_cv_have_decl_errno=no 5386*c7ca977eSAlexander Kabaevfi 5387*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5388*c7ca977eSAlexander Kabaevfi 5389*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5 5390*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_errno" >&6 5391*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_errno = yes; then 5392*c7ca977eSAlexander Kabaev 5393*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5394*c7ca977eSAlexander Kabaev#define HAVE_DECL_ERRNO 1 5395*c7ca977eSAlexander Kabaev_ACEOF 5396*c7ca977eSAlexander Kabaev 5397*c7ca977eSAlexander Kabaev 5398*c7ca977eSAlexander Kabaevelse 5399*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5400*c7ca977eSAlexander Kabaev#define HAVE_DECL_ERRNO 0 5401*c7ca977eSAlexander Kabaev_ACEOF 5402*c7ca977eSAlexander Kabaev 5403*c7ca977eSAlexander Kabaev 5404*c7ca977eSAlexander Kabaevfi 5405*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether getopt is declared" >&5 5406*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 5407*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_getopt+set}" = set; then 5408*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5409*c7ca977eSAlexander Kabaevelse 5410*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5411*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5412*c7ca977eSAlexander Kabaev_ACEOF 5413*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5414*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5415*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5416*c7ca977eSAlexander Kabaev$ac_includes_default 5417*c7ca977eSAlexander Kabaevint 5418*c7ca977eSAlexander Kabaevmain () 5419*c7ca977eSAlexander Kabaev{ 5420*c7ca977eSAlexander Kabaev#ifndef getopt 5421*c7ca977eSAlexander Kabaev char *p = (char *) getopt; 5422*c7ca977eSAlexander Kabaev#endif 5423*c7ca977eSAlexander Kabaev 5424*c7ca977eSAlexander Kabaev ; 5425*c7ca977eSAlexander Kabaev return 0; 5426*c7ca977eSAlexander Kabaev} 5427*c7ca977eSAlexander Kabaev_ACEOF 5428*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5429*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5430*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5431*c7ca977eSAlexander Kabaev ac_status=$? 5432*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5433*c7ca977eSAlexander Kabaev rm -f conftest.er1 5434*c7ca977eSAlexander Kabaev cat conftest.err >&5 5435*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5437*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5438*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5439*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5440*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5441*c7ca977eSAlexander Kabaev ac_status=$? 5442*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5443*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5444*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5445*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5446*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5447*c7ca977eSAlexander Kabaev ac_status=$? 5448*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5449*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5450*c7ca977eSAlexander Kabaev ac_cv_have_decl_getopt=yes 5451*c7ca977eSAlexander Kabaevelse 5452*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5453*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5454*c7ca977eSAlexander Kabaev 5455*c7ca977eSAlexander Kabaevac_cv_have_decl_getopt=no 5456*c7ca977eSAlexander Kabaevfi 5457*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5458*c7ca977eSAlexander Kabaevfi 5459*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 5460*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_getopt" >&6 5461*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_getopt = yes; then 5462*c7ca977eSAlexander Kabaev 5463*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5464*c7ca977eSAlexander Kabaev#define HAVE_DECL_GETOPT 1 5465*c7ca977eSAlexander Kabaev_ACEOF 5466*c7ca977eSAlexander Kabaev 5467*c7ca977eSAlexander Kabaev 5468*c7ca977eSAlexander Kabaevelse 5469*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5470*c7ca977eSAlexander Kabaev#define HAVE_DECL_GETOPT 0 5471*c7ca977eSAlexander Kabaev_ACEOF 5472*c7ca977eSAlexander Kabaev 5473*c7ca977eSAlexander Kabaev 5474*c7ca977eSAlexander Kabaevfi 5475*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5 5476*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6 5477*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then 5478*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5479*c7ca977eSAlexander Kabaevelse 5480*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5481*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5482*c7ca977eSAlexander Kabaev_ACEOF 5483*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5484*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5485*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5486*c7ca977eSAlexander Kabaev$ac_includes_default 5487*c7ca977eSAlexander Kabaevint 5488*c7ca977eSAlexander Kabaevmain () 5489*c7ca977eSAlexander Kabaev{ 5490*c7ca977eSAlexander Kabaev#ifndef clearerr_unlocked 5491*c7ca977eSAlexander Kabaev char *p = (char *) clearerr_unlocked; 5492*c7ca977eSAlexander Kabaev#endif 5493*c7ca977eSAlexander Kabaev 5494*c7ca977eSAlexander Kabaev ; 5495*c7ca977eSAlexander Kabaev return 0; 5496*c7ca977eSAlexander Kabaev} 5497*c7ca977eSAlexander Kabaev_ACEOF 5498*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5499*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5500*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5501*c7ca977eSAlexander Kabaev ac_status=$? 5502*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5503*c7ca977eSAlexander Kabaev rm -f conftest.er1 5504*c7ca977eSAlexander Kabaev cat conftest.err >&5 5505*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5506*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5507*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5508*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5509*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5510*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5511*c7ca977eSAlexander Kabaev ac_status=$? 5512*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5513*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5514*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5515*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5516*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5517*c7ca977eSAlexander Kabaev ac_status=$? 5518*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5520*c7ca977eSAlexander Kabaev ac_cv_have_decl_clearerr_unlocked=yes 5521*c7ca977eSAlexander Kabaevelse 5522*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5523*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5524*c7ca977eSAlexander Kabaev 5525*c7ca977eSAlexander Kabaevac_cv_have_decl_clearerr_unlocked=no 5526*c7ca977eSAlexander Kabaevfi 5527*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5528*c7ca977eSAlexander Kabaevfi 5529*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5 5530*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6 5531*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_clearerr_unlocked = yes; then 5532*c7ca977eSAlexander Kabaev 5533*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5534*c7ca977eSAlexander Kabaev#define HAVE_DECL_CLEARERR_UNLOCKED 1 5535*c7ca977eSAlexander Kabaev_ACEOF 5536*c7ca977eSAlexander Kabaev 5537*c7ca977eSAlexander Kabaev 5538*c7ca977eSAlexander Kabaevelse 5539*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5540*c7ca977eSAlexander Kabaev#define HAVE_DECL_CLEARERR_UNLOCKED 0 5541*c7ca977eSAlexander Kabaev_ACEOF 5542*c7ca977eSAlexander Kabaev 5543*c7ca977eSAlexander Kabaev 5544*c7ca977eSAlexander Kabaevfi 5545*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 5546*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 5547*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 5548*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5549*c7ca977eSAlexander Kabaevelse 5550*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5551*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5552*c7ca977eSAlexander Kabaev_ACEOF 5553*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5554*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5555*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5556*c7ca977eSAlexander Kabaev$ac_includes_default 5557*c7ca977eSAlexander Kabaevint 5558*c7ca977eSAlexander Kabaevmain () 5559*c7ca977eSAlexander Kabaev{ 5560*c7ca977eSAlexander Kabaev#ifndef feof_unlocked 5561*c7ca977eSAlexander Kabaev char *p = (char *) feof_unlocked; 5562*c7ca977eSAlexander Kabaev#endif 5563*c7ca977eSAlexander Kabaev 5564*c7ca977eSAlexander Kabaev ; 5565*c7ca977eSAlexander Kabaev return 0; 5566*c7ca977eSAlexander Kabaev} 5567*c7ca977eSAlexander Kabaev_ACEOF 5568*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5569*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5570*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5571*c7ca977eSAlexander Kabaev ac_status=$? 5572*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5573*c7ca977eSAlexander Kabaev rm -f conftest.er1 5574*c7ca977eSAlexander Kabaev cat conftest.err >&5 5575*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5576*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5577*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5578*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5579*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5580*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5581*c7ca977eSAlexander Kabaev ac_status=$? 5582*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5583*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5584*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5585*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5586*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5587*c7ca977eSAlexander Kabaev ac_status=$? 5588*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5589*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5590*c7ca977eSAlexander Kabaev ac_cv_have_decl_feof_unlocked=yes 5591*c7ca977eSAlexander Kabaevelse 5592*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5593*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5594*c7ca977eSAlexander Kabaev 5595*c7ca977eSAlexander Kabaevac_cv_have_decl_feof_unlocked=no 5596*c7ca977eSAlexander Kabaevfi 5597*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5598*c7ca977eSAlexander Kabaevfi 5599*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 5600*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 5601*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_feof_unlocked = yes; then 5602*c7ca977eSAlexander Kabaev 5603*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5604*c7ca977eSAlexander Kabaev#define HAVE_DECL_FEOF_UNLOCKED 1 5605*c7ca977eSAlexander Kabaev_ACEOF 5606*c7ca977eSAlexander Kabaev 5607*c7ca977eSAlexander Kabaev 5608*c7ca977eSAlexander Kabaevelse 5609*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5610*c7ca977eSAlexander Kabaev#define HAVE_DECL_FEOF_UNLOCKED 0 5611*c7ca977eSAlexander Kabaev_ACEOF 5612*c7ca977eSAlexander Kabaev 5613*c7ca977eSAlexander Kabaev 5614*c7ca977eSAlexander Kabaevfi 5615*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5 5616*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6 5617*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then 5618*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5619*c7ca977eSAlexander Kabaevelse 5620*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5621*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5622*c7ca977eSAlexander Kabaev_ACEOF 5623*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5624*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5625*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5626*c7ca977eSAlexander Kabaev$ac_includes_default 5627*c7ca977eSAlexander Kabaevint 5628*c7ca977eSAlexander Kabaevmain () 5629*c7ca977eSAlexander Kabaev{ 5630*c7ca977eSAlexander Kabaev#ifndef ferror_unlocked 5631*c7ca977eSAlexander Kabaev char *p = (char *) ferror_unlocked; 5632*c7ca977eSAlexander Kabaev#endif 5633*c7ca977eSAlexander Kabaev 5634*c7ca977eSAlexander Kabaev ; 5635*c7ca977eSAlexander Kabaev return 0; 5636*c7ca977eSAlexander Kabaev} 5637*c7ca977eSAlexander Kabaev_ACEOF 5638*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5639*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5640*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5641*c7ca977eSAlexander Kabaev ac_status=$? 5642*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5643*c7ca977eSAlexander Kabaev rm -f conftest.er1 5644*c7ca977eSAlexander Kabaev cat conftest.err >&5 5645*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5646*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5647*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5648*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5649*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5650*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5651*c7ca977eSAlexander Kabaev ac_status=$? 5652*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5653*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5654*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5655*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5656*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5657*c7ca977eSAlexander Kabaev ac_status=$? 5658*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5659*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5660*c7ca977eSAlexander Kabaev ac_cv_have_decl_ferror_unlocked=yes 5661*c7ca977eSAlexander Kabaevelse 5662*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5663*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5664*c7ca977eSAlexander Kabaev 5665*c7ca977eSAlexander Kabaevac_cv_have_decl_ferror_unlocked=no 5666*c7ca977eSAlexander Kabaevfi 5667*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5668*c7ca977eSAlexander Kabaevfi 5669*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5 5670*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6 5671*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_ferror_unlocked = yes; then 5672*c7ca977eSAlexander Kabaev 5673*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5674*c7ca977eSAlexander Kabaev#define HAVE_DECL_FERROR_UNLOCKED 1 5675*c7ca977eSAlexander Kabaev_ACEOF 5676*c7ca977eSAlexander Kabaev 5677*c7ca977eSAlexander Kabaev 5678*c7ca977eSAlexander Kabaevelse 5679*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5680*c7ca977eSAlexander Kabaev#define HAVE_DECL_FERROR_UNLOCKED 0 5681*c7ca977eSAlexander Kabaev_ACEOF 5682*c7ca977eSAlexander Kabaev 5683*c7ca977eSAlexander Kabaev 5684*c7ca977eSAlexander Kabaevfi 5685*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5 5686*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6 5687*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then 5688*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5689*c7ca977eSAlexander Kabaevelse 5690*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5691*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5692*c7ca977eSAlexander Kabaev_ACEOF 5693*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5694*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5695*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5696*c7ca977eSAlexander Kabaev$ac_includes_default 5697*c7ca977eSAlexander Kabaevint 5698*c7ca977eSAlexander Kabaevmain () 5699*c7ca977eSAlexander Kabaev{ 5700*c7ca977eSAlexander Kabaev#ifndef fflush_unlocked 5701*c7ca977eSAlexander Kabaev char *p = (char *) fflush_unlocked; 5702*c7ca977eSAlexander Kabaev#endif 5703*c7ca977eSAlexander Kabaev 5704*c7ca977eSAlexander Kabaev ; 5705*c7ca977eSAlexander Kabaev return 0; 5706*c7ca977eSAlexander Kabaev} 5707*c7ca977eSAlexander Kabaev_ACEOF 5708*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5709*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5710*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5711*c7ca977eSAlexander Kabaev ac_status=$? 5712*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5713*c7ca977eSAlexander Kabaev rm -f conftest.er1 5714*c7ca977eSAlexander Kabaev cat conftest.err >&5 5715*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5716*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5717*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5718*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5719*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5720*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5721*c7ca977eSAlexander Kabaev ac_status=$? 5722*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5724*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5725*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5726*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5727*c7ca977eSAlexander Kabaev ac_status=$? 5728*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5729*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5730*c7ca977eSAlexander Kabaev ac_cv_have_decl_fflush_unlocked=yes 5731*c7ca977eSAlexander Kabaevelse 5732*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5733*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5734*c7ca977eSAlexander Kabaev 5735*c7ca977eSAlexander Kabaevac_cv_have_decl_fflush_unlocked=no 5736*c7ca977eSAlexander Kabaevfi 5737*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5738*c7ca977eSAlexander Kabaevfi 5739*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5 5740*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6 5741*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fflush_unlocked = yes; then 5742*c7ca977eSAlexander Kabaev 5743*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5744*c7ca977eSAlexander Kabaev#define HAVE_DECL_FFLUSH_UNLOCKED 1 5745*c7ca977eSAlexander Kabaev_ACEOF 5746*c7ca977eSAlexander Kabaev 5747*c7ca977eSAlexander Kabaev 5748*c7ca977eSAlexander Kabaevelse 5749*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5750*c7ca977eSAlexander Kabaev#define HAVE_DECL_FFLUSH_UNLOCKED 0 5751*c7ca977eSAlexander Kabaev_ACEOF 5752*c7ca977eSAlexander Kabaev 5753*c7ca977eSAlexander Kabaev 5754*c7ca977eSAlexander Kabaevfi 5755*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5 5756*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6 5757*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then 5758*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5759*c7ca977eSAlexander Kabaevelse 5760*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5761*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5762*c7ca977eSAlexander Kabaev_ACEOF 5763*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5764*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5765*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5766*c7ca977eSAlexander Kabaev$ac_includes_default 5767*c7ca977eSAlexander Kabaevint 5768*c7ca977eSAlexander Kabaevmain () 5769*c7ca977eSAlexander Kabaev{ 5770*c7ca977eSAlexander Kabaev#ifndef fgetc_unlocked 5771*c7ca977eSAlexander Kabaev char *p = (char *) fgetc_unlocked; 5772*c7ca977eSAlexander Kabaev#endif 5773*c7ca977eSAlexander Kabaev 5774*c7ca977eSAlexander Kabaev ; 5775*c7ca977eSAlexander Kabaev return 0; 5776*c7ca977eSAlexander Kabaev} 5777*c7ca977eSAlexander Kabaev_ACEOF 5778*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5779*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5780*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5781*c7ca977eSAlexander Kabaev ac_status=$? 5782*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5783*c7ca977eSAlexander Kabaev rm -f conftest.er1 5784*c7ca977eSAlexander Kabaev cat conftest.err >&5 5785*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5786*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5787*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5788*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5789*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5790*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5791*c7ca977eSAlexander Kabaev ac_status=$? 5792*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5793*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5794*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5795*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5796*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5797*c7ca977eSAlexander Kabaev ac_status=$? 5798*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5799*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5800*c7ca977eSAlexander Kabaev ac_cv_have_decl_fgetc_unlocked=yes 5801*c7ca977eSAlexander Kabaevelse 5802*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5803*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5804*c7ca977eSAlexander Kabaev 5805*c7ca977eSAlexander Kabaevac_cv_have_decl_fgetc_unlocked=no 5806*c7ca977eSAlexander Kabaevfi 5807*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5808*c7ca977eSAlexander Kabaevfi 5809*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5 5810*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6 5811*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fgetc_unlocked = yes; then 5812*c7ca977eSAlexander Kabaev 5813*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5814*c7ca977eSAlexander Kabaev#define HAVE_DECL_FGETC_UNLOCKED 1 5815*c7ca977eSAlexander Kabaev_ACEOF 5816*c7ca977eSAlexander Kabaev 5817*c7ca977eSAlexander Kabaev 5818*c7ca977eSAlexander Kabaevelse 5819*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5820*c7ca977eSAlexander Kabaev#define HAVE_DECL_FGETC_UNLOCKED 0 5821*c7ca977eSAlexander Kabaev_ACEOF 5822*c7ca977eSAlexander Kabaev 5823*c7ca977eSAlexander Kabaev 5824*c7ca977eSAlexander Kabaevfi 5825*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 5826*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 5827*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 5828*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5829*c7ca977eSAlexander Kabaevelse 5830*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5831*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5832*c7ca977eSAlexander Kabaev_ACEOF 5833*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5834*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5835*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5836*c7ca977eSAlexander Kabaev$ac_includes_default 5837*c7ca977eSAlexander Kabaevint 5838*c7ca977eSAlexander Kabaevmain () 5839*c7ca977eSAlexander Kabaev{ 5840*c7ca977eSAlexander Kabaev#ifndef fgets_unlocked 5841*c7ca977eSAlexander Kabaev char *p = (char *) fgets_unlocked; 5842*c7ca977eSAlexander Kabaev#endif 5843*c7ca977eSAlexander Kabaev 5844*c7ca977eSAlexander Kabaev ; 5845*c7ca977eSAlexander Kabaev return 0; 5846*c7ca977eSAlexander Kabaev} 5847*c7ca977eSAlexander Kabaev_ACEOF 5848*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5849*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5850*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5851*c7ca977eSAlexander Kabaev ac_status=$? 5852*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5853*c7ca977eSAlexander Kabaev rm -f conftest.er1 5854*c7ca977eSAlexander Kabaev cat conftest.err >&5 5855*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5856*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5857*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5858*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5859*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5860*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5861*c7ca977eSAlexander Kabaev ac_status=$? 5862*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5863*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5864*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5865*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5866*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5867*c7ca977eSAlexander Kabaev ac_status=$? 5868*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5870*c7ca977eSAlexander Kabaev ac_cv_have_decl_fgets_unlocked=yes 5871*c7ca977eSAlexander Kabaevelse 5872*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5873*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5874*c7ca977eSAlexander Kabaev 5875*c7ca977eSAlexander Kabaevac_cv_have_decl_fgets_unlocked=no 5876*c7ca977eSAlexander Kabaevfi 5877*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5878*c7ca977eSAlexander Kabaevfi 5879*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 5880*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 5881*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fgets_unlocked = yes; then 5882*c7ca977eSAlexander Kabaev 5883*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5884*c7ca977eSAlexander Kabaev#define HAVE_DECL_FGETS_UNLOCKED 1 5885*c7ca977eSAlexander Kabaev_ACEOF 5886*c7ca977eSAlexander Kabaev 5887*c7ca977eSAlexander Kabaev 5888*c7ca977eSAlexander Kabaevelse 5889*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5890*c7ca977eSAlexander Kabaev#define HAVE_DECL_FGETS_UNLOCKED 0 5891*c7ca977eSAlexander Kabaev_ACEOF 5892*c7ca977eSAlexander Kabaev 5893*c7ca977eSAlexander Kabaev 5894*c7ca977eSAlexander Kabaevfi 5895*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5 5896*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6 5897*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then 5898*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5899*c7ca977eSAlexander Kabaevelse 5900*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5901*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5902*c7ca977eSAlexander Kabaev_ACEOF 5903*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5904*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5905*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5906*c7ca977eSAlexander Kabaev$ac_includes_default 5907*c7ca977eSAlexander Kabaevint 5908*c7ca977eSAlexander Kabaevmain () 5909*c7ca977eSAlexander Kabaev{ 5910*c7ca977eSAlexander Kabaev#ifndef fileno_unlocked 5911*c7ca977eSAlexander Kabaev char *p = (char *) fileno_unlocked; 5912*c7ca977eSAlexander Kabaev#endif 5913*c7ca977eSAlexander Kabaev 5914*c7ca977eSAlexander Kabaev ; 5915*c7ca977eSAlexander Kabaev return 0; 5916*c7ca977eSAlexander Kabaev} 5917*c7ca977eSAlexander Kabaev_ACEOF 5918*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5919*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5920*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5921*c7ca977eSAlexander Kabaev ac_status=$? 5922*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5923*c7ca977eSAlexander Kabaev rm -f conftest.er1 5924*c7ca977eSAlexander Kabaev cat conftest.err >&5 5925*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5926*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5927*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5928*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5929*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5930*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5931*c7ca977eSAlexander Kabaev ac_status=$? 5932*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5933*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 5934*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 5935*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5936*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 5937*c7ca977eSAlexander Kabaev ac_status=$? 5938*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 5940*c7ca977eSAlexander Kabaev ac_cv_have_decl_fileno_unlocked=yes 5941*c7ca977eSAlexander Kabaevelse 5942*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 5943*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 5944*c7ca977eSAlexander Kabaev 5945*c7ca977eSAlexander Kabaevac_cv_have_decl_fileno_unlocked=no 5946*c7ca977eSAlexander Kabaevfi 5947*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5948*c7ca977eSAlexander Kabaevfi 5949*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5 5950*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6 5951*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fileno_unlocked = yes; then 5952*c7ca977eSAlexander Kabaev 5953*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 5954*c7ca977eSAlexander Kabaev#define HAVE_DECL_FILENO_UNLOCKED 1 5955*c7ca977eSAlexander Kabaev_ACEOF 5956*c7ca977eSAlexander Kabaev 5957*c7ca977eSAlexander Kabaev 5958*c7ca977eSAlexander Kabaevelse 5959*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 5960*c7ca977eSAlexander Kabaev#define HAVE_DECL_FILENO_UNLOCKED 0 5961*c7ca977eSAlexander Kabaev_ACEOF 5962*c7ca977eSAlexander Kabaev 5963*c7ca977eSAlexander Kabaev 5964*c7ca977eSAlexander Kabaevfi 5965*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5 5966*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6 5967*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then 5968*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 5969*c7ca977eSAlexander Kabaevelse 5970*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 5971*c7ca977eSAlexander Kabaev/* confdefs.h. */ 5972*c7ca977eSAlexander Kabaev_ACEOF 5973*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 5974*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 5975*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 5976*c7ca977eSAlexander Kabaev$ac_includes_default 5977*c7ca977eSAlexander Kabaevint 5978*c7ca977eSAlexander Kabaevmain () 5979*c7ca977eSAlexander Kabaev{ 5980*c7ca977eSAlexander Kabaev#ifndef fprintf_unlocked 5981*c7ca977eSAlexander Kabaev char *p = (char *) fprintf_unlocked; 5982*c7ca977eSAlexander Kabaev#endif 5983*c7ca977eSAlexander Kabaev 5984*c7ca977eSAlexander Kabaev ; 5985*c7ca977eSAlexander Kabaev return 0; 5986*c7ca977eSAlexander Kabaev} 5987*c7ca977eSAlexander Kabaev_ACEOF 5988*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 5989*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5990*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 5991*c7ca977eSAlexander Kabaev ac_status=$? 5992*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 5993*c7ca977eSAlexander Kabaev rm -f conftest.er1 5994*c7ca977eSAlexander Kabaev cat conftest.err >&5 5995*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 5996*c7ca977eSAlexander Kabaev (exit $ac_status); } && 5997*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 5998*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 5999*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6000*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6001*c7ca977eSAlexander Kabaev ac_status=$? 6002*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6003*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6004*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6005*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6006*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6007*c7ca977eSAlexander Kabaev ac_status=$? 6008*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6009*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6010*c7ca977eSAlexander Kabaev ac_cv_have_decl_fprintf_unlocked=yes 6011*c7ca977eSAlexander Kabaevelse 6012*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6013*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6014*c7ca977eSAlexander Kabaev 6015*c7ca977eSAlexander Kabaevac_cv_have_decl_fprintf_unlocked=no 6016*c7ca977eSAlexander Kabaevfi 6017*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6018*c7ca977eSAlexander Kabaevfi 6019*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5 6020*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6 6021*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fprintf_unlocked = yes; then 6022*c7ca977eSAlexander Kabaev 6023*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6024*c7ca977eSAlexander Kabaev#define HAVE_DECL_FPRINTF_UNLOCKED 1 6025*c7ca977eSAlexander Kabaev_ACEOF 6026*c7ca977eSAlexander Kabaev 6027*c7ca977eSAlexander Kabaev 6028*c7ca977eSAlexander Kabaevelse 6029*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6030*c7ca977eSAlexander Kabaev#define HAVE_DECL_FPRINTF_UNLOCKED 0 6031*c7ca977eSAlexander Kabaev_ACEOF 6032*c7ca977eSAlexander Kabaev 6033*c7ca977eSAlexander Kabaev 6034*c7ca977eSAlexander Kabaevfi 6035*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5 6036*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6 6037*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then 6038*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6039*c7ca977eSAlexander Kabaevelse 6040*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6041*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6042*c7ca977eSAlexander Kabaev_ACEOF 6043*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6044*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6045*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6046*c7ca977eSAlexander Kabaev$ac_includes_default 6047*c7ca977eSAlexander Kabaevint 6048*c7ca977eSAlexander Kabaevmain () 6049*c7ca977eSAlexander Kabaev{ 6050*c7ca977eSAlexander Kabaev#ifndef fputc_unlocked 6051*c7ca977eSAlexander Kabaev char *p = (char *) fputc_unlocked; 6052*c7ca977eSAlexander Kabaev#endif 6053*c7ca977eSAlexander Kabaev 6054*c7ca977eSAlexander Kabaev ; 6055*c7ca977eSAlexander Kabaev return 0; 6056*c7ca977eSAlexander Kabaev} 6057*c7ca977eSAlexander Kabaev_ACEOF 6058*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6059*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6060*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6061*c7ca977eSAlexander Kabaev ac_status=$? 6062*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6063*c7ca977eSAlexander Kabaev rm -f conftest.er1 6064*c7ca977eSAlexander Kabaev cat conftest.err >&5 6065*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6066*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6067*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6068*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6069*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6070*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6071*c7ca977eSAlexander Kabaev ac_status=$? 6072*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6074*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6075*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6076*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6077*c7ca977eSAlexander Kabaev ac_status=$? 6078*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6079*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6080*c7ca977eSAlexander Kabaev ac_cv_have_decl_fputc_unlocked=yes 6081*c7ca977eSAlexander Kabaevelse 6082*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6083*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6084*c7ca977eSAlexander Kabaev 6085*c7ca977eSAlexander Kabaevac_cv_have_decl_fputc_unlocked=no 6086*c7ca977eSAlexander Kabaevfi 6087*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6088*c7ca977eSAlexander Kabaevfi 6089*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5 6090*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6 6091*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fputc_unlocked = yes; then 6092*c7ca977eSAlexander Kabaev 6093*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6094*c7ca977eSAlexander Kabaev#define HAVE_DECL_FPUTC_UNLOCKED 1 6095*c7ca977eSAlexander Kabaev_ACEOF 6096*c7ca977eSAlexander Kabaev 6097*c7ca977eSAlexander Kabaev 6098*c7ca977eSAlexander Kabaevelse 6099*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6100*c7ca977eSAlexander Kabaev#define HAVE_DECL_FPUTC_UNLOCKED 0 6101*c7ca977eSAlexander Kabaev_ACEOF 6102*c7ca977eSAlexander Kabaev 6103*c7ca977eSAlexander Kabaev 6104*c7ca977eSAlexander Kabaevfi 6105*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5 6106*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6 6107*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then 6108*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6109*c7ca977eSAlexander Kabaevelse 6110*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6111*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6112*c7ca977eSAlexander Kabaev_ACEOF 6113*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6114*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6115*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6116*c7ca977eSAlexander Kabaev$ac_includes_default 6117*c7ca977eSAlexander Kabaevint 6118*c7ca977eSAlexander Kabaevmain () 6119*c7ca977eSAlexander Kabaev{ 6120*c7ca977eSAlexander Kabaev#ifndef fputs_unlocked 6121*c7ca977eSAlexander Kabaev char *p = (char *) fputs_unlocked; 6122*c7ca977eSAlexander Kabaev#endif 6123*c7ca977eSAlexander Kabaev 6124*c7ca977eSAlexander Kabaev ; 6125*c7ca977eSAlexander Kabaev return 0; 6126*c7ca977eSAlexander Kabaev} 6127*c7ca977eSAlexander Kabaev_ACEOF 6128*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6129*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6130*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6131*c7ca977eSAlexander Kabaev ac_status=$? 6132*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6133*c7ca977eSAlexander Kabaev rm -f conftest.er1 6134*c7ca977eSAlexander Kabaev cat conftest.err >&5 6135*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6136*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6137*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6138*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6139*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6140*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6141*c7ca977eSAlexander Kabaev ac_status=$? 6142*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6143*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6144*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6145*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6146*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6147*c7ca977eSAlexander Kabaev ac_status=$? 6148*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6149*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6150*c7ca977eSAlexander Kabaev ac_cv_have_decl_fputs_unlocked=yes 6151*c7ca977eSAlexander Kabaevelse 6152*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6153*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6154*c7ca977eSAlexander Kabaev 6155*c7ca977eSAlexander Kabaevac_cv_have_decl_fputs_unlocked=no 6156*c7ca977eSAlexander Kabaevfi 6157*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6158*c7ca977eSAlexander Kabaevfi 6159*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5 6160*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6 6161*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fputs_unlocked = yes; then 6162*c7ca977eSAlexander Kabaev 6163*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6164*c7ca977eSAlexander Kabaev#define HAVE_DECL_FPUTS_UNLOCKED 1 6165*c7ca977eSAlexander Kabaev_ACEOF 6166*c7ca977eSAlexander Kabaev 6167*c7ca977eSAlexander Kabaev 6168*c7ca977eSAlexander Kabaevelse 6169*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6170*c7ca977eSAlexander Kabaev#define HAVE_DECL_FPUTS_UNLOCKED 0 6171*c7ca977eSAlexander Kabaev_ACEOF 6172*c7ca977eSAlexander Kabaev 6173*c7ca977eSAlexander Kabaev 6174*c7ca977eSAlexander Kabaevfi 6175*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5 6176*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6 6177*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fread_unlocked+set}" = set; then 6178*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6179*c7ca977eSAlexander Kabaevelse 6180*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6181*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6182*c7ca977eSAlexander Kabaev_ACEOF 6183*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6184*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6185*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6186*c7ca977eSAlexander Kabaev$ac_includes_default 6187*c7ca977eSAlexander Kabaevint 6188*c7ca977eSAlexander Kabaevmain () 6189*c7ca977eSAlexander Kabaev{ 6190*c7ca977eSAlexander Kabaev#ifndef fread_unlocked 6191*c7ca977eSAlexander Kabaev char *p = (char *) fread_unlocked; 6192*c7ca977eSAlexander Kabaev#endif 6193*c7ca977eSAlexander Kabaev 6194*c7ca977eSAlexander Kabaev ; 6195*c7ca977eSAlexander Kabaev return 0; 6196*c7ca977eSAlexander Kabaev} 6197*c7ca977eSAlexander Kabaev_ACEOF 6198*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6199*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6200*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6201*c7ca977eSAlexander Kabaev ac_status=$? 6202*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6203*c7ca977eSAlexander Kabaev rm -f conftest.er1 6204*c7ca977eSAlexander Kabaev cat conftest.err >&5 6205*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6206*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6207*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6208*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6209*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6210*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6211*c7ca977eSAlexander Kabaev ac_status=$? 6212*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6213*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6214*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6215*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6216*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6217*c7ca977eSAlexander Kabaev ac_status=$? 6218*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6219*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6220*c7ca977eSAlexander Kabaev ac_cv_have_decl_fread_unlocked=yes 6221*c7ca977eSAlexander Kabaevelse 6222*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6223*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6224*c7ca977eSAlexander Kabaev 6225*c7ca977eSAlexander Kabaevac_cv_have_decl_fread_unlocked=no 6226*c7ca977eSAlexander Kabaevfi 6227*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6228*c7ca977eSAlexander Kabaevfi 6229*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5 6230*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6 6231*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fread_unlocked = yes; then 6232*c7ca977eSAlexander Kabaev 6233*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6234*c7ca977eSAlexander Kabaev#define HAVE_DECL_FREAD_UNLOCKED 1 6235*c7ca977eSAlexander Kabaev_ACEOF 6236*c7ca977eSAlexander Kabaev 6237*c7ca977eSAlexander Kabaev 6238*c7ca977eSAlexander Kabaevelse 6239*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6240*c7ca977eSAlexander Kabaev#define HAVE_DECL_FREAD_UNLOCKED 0 6241*c7ca977eSAlexander Kabaev_ACEOF 6242*c7ca977eSAlexander Kabaev 6243*c7ca977eSAlexander Kabaev 6244*c7ca977eSAlexander Kabaevfi 6245*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5 6246*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6 6247*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then 6248*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6249*c7ca977eSAlexander Kabaevelse 6250*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6251*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6252*c7ca977eSAlexander Kabaev_ACEOF 6253*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6254*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6255*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6256*c7ca977eSAlexander Kabaev$ac_includes_default 6257*c7ca977eSAlexander Kabaevint 6258*c7ca977eSAlexander Kabaevmain () 6259*c7ca977eSAlexander Kabaev{ 6260*c7ca977eSAlexander Kabaev#ifndef fwrite_unlocked 6261*c7ca977eSAlexander Kabaev char *p = (char *) fwrite_unlocked; 6262*c7ca977eSAlexander Kabaev#endif 6263*c7ca977eSAlexander Kabaev 6264*c7ca977eSAlexander Kabaev ; 6265*c7ca977eSAlexander Kabaev return 0; 6266*c7ca977eSAlexander Kabaev} 6267*c7ca977eSAlexander Kabaev_ACEOF 6268*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6269*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6270*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6271*c7ca977eSAlexander Kabaev ac_status=$? 6272*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6273*c7ca977eSAlexander Kabaev rm -f conftest.er1 6274*c7ca977eSAlexander Kabaev cat conftest.err >&5 6275*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6276*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6277*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6278*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6279*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6280*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6281*c7ca977eSAlexander Kabaev ac_status=$? 6282*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6283*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6284*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6285*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6286*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6287*c7ca977eSAlexander Kabaev ac_status=$? 6288*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6289*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6290*c7ca977eSAlexander Kabaev ac_cv_have_decl_fwrite_unlocked=yes 6291*c7ca977eSAlexander Kabaevelse 6292*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6293*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6294*c7ca977eSAlexander Kabaev 6295*c7ca977eSAlexander Kabaevac_cv_have_decl_fwrite_unlocked=no 6296*c7ca977eSAlexander Kabaevfi 6297*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6298*c7ca977eSAlexander Kabaevfi 6299*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5 6300*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6 6301*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_fwrite_unlocked = yes; then 6302*c7ca977eSAlexander Kabaev 6303*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6304*c7ca977eSAlexander Kabaev#define HAVE_DECL_FWRITE_UNLOCKED 1 6305*c7ca977eSAlexander Kabaev_ACEOF 6306*c7ca977eSAlexander Kabaev 6307*c7ca977eSAlexander Kabaev 6308*c7ca977eSAlexander Kabaevelse 6309*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6310*c7ca977eSAlexander Kabaev#define HAVE_DECL_FWRITE_UNLOCKED 0 6311*c7ca977eSAlexander Kabaev_ACEOF 6312*c7ca977eSAlexander Kabaev 6313*c7ca977eSAlexander Kabaev 6314*c7ca977eSAlexander Kabaevfi 6315*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5 6316*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6 6317*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then 6318*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6319*c7ca977eSAlexander Kabaevelse 6320*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6321*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6322*c7ca977eSAlexander Kabaev_ACEOF 6323*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6324*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6325*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6326*c7ca977eSAlexander Kabaev$ac_includes_default 6327*c7ca977eSAlexander Kabaevint 6328*c7ca977eSAlexander Kabaevmain () 6329*c7ca977eSAlexander Kabaev{ 6330*c7ca977eSAlexander Kabaev#ifndef getchar_unlocked 6331*c7ca977eSAlexander Kabaev char *p = (char *) getchar_unlocked; 6332*c7ca977eSAlexander Kabaev#endif 6333*c7ca977eSAlexander Kabaev 6334*c7ca977eSAlexander Kabaev ; 6335*c7ca977eSAlexander Kabaev return 0; 6336*c7ca977eSAlexander Kabaev} 6337*c7ca977eSAlexander Kabaev_ACEOF 6338*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6339*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6340*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6341*c7ca977eSAlexander Kabaev ac_status=$? 6342*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6343*c7ca977eSAlexander Kabaev rm -f conftest.er1 6344*c7ca977eSAlexander Kabaev cat conftest.err >&5 6345*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6347*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6348*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6349*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6350*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6351*c7ca977eSAlexander Kabaev ac_status=$? 6352*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6353*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6354*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6355*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6356*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6357*c7ca977eSAlexander Kabaev ac_status=$? 6358*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6359*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6360*c7ca977eSAlexander Kabaev ac_cv_have_decl_getchar_unlocked=yes 6361*c7ca977eSAlexander Kabaevelse 6362*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6363*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6364*c7ca977eSAlexander Kabaev 6365*c7ca977eSAlexander Kabaevac_cv_have_decl_getchar_unlocked=no 6366*c7ca977eSAlexander Kabaevfi 6367*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6368*c7ca977eSAlexander Kabaevfi 6369*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5 6370*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6 6371*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_getchar_unlocked = yes; then 6372*c7ca977eSAlexander Kabaev 6373*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6374*c7ca977eSAlexander Kabaev#define HAVE_DECL_GETCHAR_UNLOCKED 1 6375*c7ca977eSAlexander Kabaev_ACEOF 6376*c7ca977eSAlexander Kabaev 6377*c7ca977eSAlexander Kabaev 6378*c7ca977eSAlexander Kabaevelse 6379*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6380*c7ca977eSAlexander Kabaev#define HAVE_DECL_GETCHAR_UNLOCKED 0 6381*c7ca977eSAlexander Kabaev_ACEOF 6382*c7ca977eSAlexander Kabaev 6383*c7ca977eSAlexander Kabaev 6384*c7ca977eSAlexander Kabaevfi 6385*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 6386*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 6387*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 6388*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6389*c7ca977eSAlexander Kabaevelse 6390*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6391*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6392*c7ca977eSAlexander Kabaev_ACEOF 6393*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6394*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6395*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6396*c7ca977eSAlexander Kabaev$ac_includes_default 6397*c7ca977eSAlexander Kabaevint 6398*c7ca977eSAlexander Kabaevmain () 6399*c7ca977eSAlexander Kabaev{ 6400*c7ca977eSAlexander Kabaev#ifndef getc_unlocked 6401*c7ca977eSAlexander Kabaev char *p = (char *) getc_unlocked; 6402*c7ca977eSAlexander Kabaev#endif 6403*c7ca977eSAlexander Kabaev 6404*c7ca977eSAlexander Kabaev ; 6405*c7ca977eSAlexander Kabaev return 0; 6406*c7ca977eSAlexander Kabaev} 6407*c7ca977eSAlexander Kabaev_ACEOF 6408*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6409*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6410*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6411*c7ca977eSAlexander Kabaev ac_status=$? 6412*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6413*c7ca977eSAlexander Kabaev rm -f conftest.er1 6414*c7ca977eSAlexander Kabaev cat conftest.err >&5 6415*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6416*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6417*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6418*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6419*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6420*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6421*c7ca977eSAlexander Kabaev ac_status=$? 6422*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6423*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6424*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6425*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6426*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6427*c7ca977eSAlexander Kabaev ac_status=$? 6428*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6429*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6430*c7ca977eSAlexander Kabaev ac_cv_have_decl_getc_unlocked=yes 6431*c7ca977eSAlexander Kabaevelse 6432*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6433*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6434*c7ca977eSAlexander Kabaev 6435*c7ca977eSAlexander Kabaevac_cv_have_decl_getc_unlocked=no 6436*c7ca977eSAlexander Kabaevfi 6437*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6438*c7ca977eSAlexander Kabaevfi 6439*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 6440*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 6441*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_getc_unlocked = yes; then 6442*c7ca977eSAlexander Kabaev 6443*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6444*c7ca977eSAlexander Kabaev#define HAVE_DECL_GETC_UNLOCKED 1 6445*c7ca977eSAlexander Kabaev_ACEOF 6446*c7ca977eSAlexander Kabaev 6447*c7ca977eSAlexander Kabaev 6448*c7ca977eSAlexander Kabaevelse 6449*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6450*c7ca977eSAlexander Kabaev#define HAVE_DECL_GETC_UNLOCKED 0 6451*c7ca977eSAlexander Kabaev_ACEOF 6452*c7ca977eSAlexander Kabaev 6453*c7ca977eSAlexander Kabaev 6454*c7ca977eSAlexander Kabaevfi 6455*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5 6456*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6 6457*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then 6458*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6459*c7ca977eSAlexander Kabaevelse 6460*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6461*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6462*c7ca977eSAlexander Kabaev_ACEOF 6463*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6464*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6465*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6466*c7ca977eSAlexander Kabaev$ac_includes_default 6467*c7ca977eSAlexander Kabaevint 6468*c7ca977eSAlexander Kabaevmain () 6469*c7ca977eSAlexander Kabaev{ 6470*c7ca977eSAlexander Kabaev#ifndef putchar_unlocked 6471*c7ca977eSAlexander Kabaev char *p = (char *) putchar_unlocked; 6472*c7ca977eSAlexander Kabaev#endif 6473*c7ca977eSAlexander Kabaev 6474*c7ca977eSAlexander Kabaev ; 6475*c7ca977eSAlexander Kabaev return 0; 6476*c7ca977eSAlexander Kabaev} 6477*c7ca977eSAlexander Kabaev_ACEOF 6478*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6479*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6480*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6481*c7ca977eSAlexander Kabaev ac_status=$? 6482*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6483*c7ca977eSAlexander Kabaev rm -f conftest.er1 6484*c7ca977eSAlexander Kabaev cat conftest.err >&5 6485*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6486*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6487*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6488*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6489*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6490*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6491*c7ca977eSAlexander Kabaev ac_status=$? 6492*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6493*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6494*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6495*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6496*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6497*c7ca977eSAlexander Kabaev ac_status=$? 6498*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6499*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6500*c7ca977eSAlexander Kabaev ac_cv_have_decl_putchar_unlocked=yes 6501*c7ca977eSAlexander Kabaevelse 6502*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6503*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6504*c7ca977eSAlexander Kabaev 6505*c7ca977eSAlexander Kabaevac_cv_have_decl_putchar_unlocked=no 6506*c7ca977eSAlexander Kabaevfi 6507*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6508*c7ca977eSAlexander Kabaevfi 6509*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5 6510*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6 6511*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_putchar_unlocked = yes; then 6512*c7ca977eSAlexander Kabaev 6513*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6514*c7ca977eSAlexander Kabaev#define HAVE_DECL_PUTCHAR_UNLOCKED 1 6515*c7ca977eSAlexander Kabaev_ACEOF 6516*c7ca977eSAlexander Kabaev 6517*c7ca977eSAlexander Kabaev 6518*c7ca977eSAlexander Kabaevelse 6519*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6520*c7ca977eSAlexander Kabaev#define HAVE_DECL_PUTCHAR_UNLOCKED 0 6521*c7ca977eSAlexander Kabaev_ACEOF 6522*c7ca977eSAlexander Kabaev 6523*c7ca977eSAlexander Kabaev 6524*c7ca977eSAlexander Kabaevfi 6525*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5 6526*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6 6527*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_putc_unlocked+set}" = set; then 6528*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6529*c7ca977eSAlexander Kabaevelse 6530*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6531*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6532*c7ca977eSAlexander Kabaev_ACEOF 6533*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6534*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6535*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6536*c7ca977eSAlexander Kabaev$ac_includes_default 6537*c7ca977eSAlexander Kabaevint 6538*c7ca977eSAlexander Kabaevmain () 6539*c7ca977eSAlexander Kabaev{ 6540*c7ca977eSAlexander Kabaev#ifndef putc_unlocked 6541*c7ca977eSAlexander Kabaev char *p = (char *) putc_unlocked; 6542*c7ca977eSAlexander Kabaev#endif 6543*c7ca977eSAlexander Kabaev 6544*c7ca977eSAlexander Kabaev ; 6545*c7ca977eSAlexander Kabaev return 0; 6546*c7ca977eSAlexander Kabaev} 6547*c7ca977eSAlexander Kabaev_ACEOF 6548*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6549*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6550*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6551*c7ca977eSAlexander Kabaev ac_status=$? 6552*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6553*c7ca977eSAlexander Kabaev rm -f conftest.er1 6554*c7ca977eSAlexander Kabaev cat conftest.err >&5 6555*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6556*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6557*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6558*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6559*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6560*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6561*c7ca977eSAlexander Kabaev ac_status=$? 6562*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6563*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6564*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6565*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6566*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6567*c7ca977eSAlexander Kabaev ac_status=$? 6568*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6569*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6570*c7ca977eSAlexander Kabaev ac_cv_have_decl_putc_unlocked=yes 6571*c7ca977eSAlexander Kabaevelse 6572*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6573*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6574*c7ca977eSAlexander Kabaev 6575*c7ca977eSAlexander Kabaevac_cv_have_decl_putc_unlocked=no 6576*c7ca977eSAlexander Kabaevfi 6577*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6578*c7ca977eSAlexander Kabaevfi 6579*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5 6580*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6 6581*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_putc_unlocked = yes; then 6582*c7ca977eSAlexander Kabaev 6583*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6584*c7ca977eSAlexander Kabaev#define HAVE_DECL_PUTC_UNLOCKED 1 6585*c7ca977eSAlexander Kabaev_ACEOF 6586*c7ca977eSAlexander Kabaev 6587*c7ca977eSAlexander Kabaev 6588*c7ca977eSAlexander Kabaevelse 6589*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6590*c7ca977eSAlexander Kabaev#define HAVE_DECL_PUTC_UNLOCKED 0 6591*c7ca977eSAlexander Kabaev_ACEOF 6592*c7ca977eSAlexander Kabaev 6593*c7ca977eSAlexander Kabaev 6594*c7ca977eSAlexander Kabaevfi 6595*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether vasprintf is declared" >&5 6596*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6 6597*c7ca977eSAlexander Kabaevif test "${ac_cv_have_decl_vasprintf+set}" = set; then 6598*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6599*c7ca977eSAlexander Kabaevelse 6600*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6601*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6602*c7ca977eSAlexander Kabaev_ACEOF 6603*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6604*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6605*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6606*c7ca977eSAlexander Kabaev$ac_includes_default 6607*c7ca977eSAlexander Kabaevint 6608*c7ca977eSAlexander Kabaevmain () 6609*c7ca977eSAlexander Kabaev{ 6610*c7ca977eSAlexander Kabaev#ifndef vasprintf 6611*c7ca977eSAlexander Kabaev char *p = (char *) vasprintf; 6612*c7ca977eSAlexander Kabaev#endif 6613*c7ca977eSAlexander Kabaev 6614*c7ca977eSAlexander Kabaev ; 6615*c7ca977eSAlexander Kabaev return 0; 6616*c7ca977eSAlexander Kabaev} 6617*c7ca977eSAlexander Kabaev_ACEOF 6618*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 6619*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6620*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 6621*c7ca977eSAlexander Kabaev ac_status=$? 6622*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6623*c7ca977eSAlexander Kabaev rm -f conftest.er1 6624*c7ca977eSAlexander Kabaev cat conftest.err >&5 6625*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6626*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6627*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6628*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6629*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6630*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6631*c7ca977eSAlexander Kabaev ac_status=$? 6632*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6633*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6634*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 6635*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6636*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6637*c7ca977eSAlexander Kabaev ac_status=$? 6638*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6639*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6640*c7ca977eSAlexander Kabaev ac_cv_have_decl_vasprintf=yes 6641*c7ca977eSAlexander Kabaevelse 6642*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6643*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6644*c7ca977eSAlexander Kabaev 6645*c7ca977eSAlexander Kabaevac_cv_have_decl_vasprintf=no 6646*c7ca977eSAlexander Kabaevfi 6647*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6648*c7ca977eSAlexander Kabaevfi 6649*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5 6650*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6 6651*c7ca977eSAlexander Kabaevif test $ac_cv_have_decl_vasprintf = yes; then 6652*c7ca977eSAlexander Kabaev 6653*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6654*c7ca977eSAlexander Kabaev#define HAVE_DECL_VASPRINTF 1 6655*c7ca977eSAlexander Kabaev_ACEOF 6656*c7ca977eSAlexander Kabaev 6657*c7ca977eSAlexander Kabaev 6658*c7ca977eSAlexander Kabaevelse 6659*c7ca977eSAlexander Kabaev cat >>confdefs.h <<_ACEOF 6660*c7ca977eSAlexander Kabaev#define HAVE_DECL_VASPRINTF 0 6661*c7ca977eSAlexander Kabaev_ACEOF 6662*c7ca977eSAlexander Kabaev 6663*c7ca977eSAlexander Kabaev 6664*c7ca977eSAlexander Kabaevfi 6665*c7ca977eSAlexander Kabaev 6666*c7ca977eSAlexander Kabaev 6667*c7ca977eSAlexander Kabaev 6668*c7ca977eSAlexander Kabaev# Checks for library functions. 6669*c7ca977eSAlexander Kabaev# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6670*c7ca977eSAlexander Kabaev# for constant arguments. Useless! 6671*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for working alloca.h" >&5 6672*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 6673*c7ca977eSAlexander Kabaevif test "${ac_cv_working_alloca_h+set}" = set; then 6674*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6675*c7ca977eSAlexander Kabaevelse 6676*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6677*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6678*c7ca977eSAlexander Kabaev_ACEOF 6679*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6680*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6681*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6682*c7ca977eSAlexander Kabaev#include <alloca.h> 6683*c7ca977eSAlexander Kabaevint 6684*c7ca977eSAlexander Kabaevmain () 6685*c7ca977eSAlexander Kabaev{ 6686*c7ca977eSAlexander Kabaevchar *p = (char *) alloca (2 * sizeof (int)); 6687*c7ca977eSAlexander Kabaev ; 6688*c7ca977eSAlexander Kabaev return 0; 6689*c7ca977eSAlexander Kabaev} 6690*c7ca977eSAlexander Kabaev_ACEOF 6691*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext conftest$ac_exeext 6692*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6693*c7ca977eSAlexander Kabaev (eval $ac_link) 2>conftest.er1 6694*c7ca977eSAlexander Kabaev ac_status=$? 6695*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6696*c7ca977eSAlexander Kabaev rm -f conftest.er1 6697*c7ca977eSAlexander Kabaev cat conftest.err >&5 6698*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6699*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6700*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6701*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6702*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6703*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6704*c7ca977eSAlexander Kabaev ac_status=$? 6705*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6707*c7ca977eSAlexander Kabaev { ac_try='test -s conftest$ac_exeext' 6708*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6709*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6710*c7ca977eSAlexander Kabaev ac_status=$? 6711*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6712*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6713*c7ca977eSAlexander Kabaev ac_cv_working_alloca_h=yes 6714*c7ca977eSAlexander Kabaevelse 6715*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6716*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6717*c7ca977eSAlexander Kabaev 6718*c7ca977eSAlexander Kabaevac_cv_working_alloca_h=no 6719*c7ca977eSAlexander Kabaevfi 6720*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext \ 6721*c7ca977eSAlexander Kabaev conftest$ac_exeext conftest.$ac_ext 6722*c7ca977eSAlexander Kabaevfi 6723*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 6724*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_working_alloca_h" >&6 6725*c7ca977eSAlexander Kabaevif test $ac_cv_working_alloca_h = yes; then 6726*c7ca977eSAlexander Kabaev 6727*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 6728*c7ca977eSAlexander Kabaev#define HAVE_ALLOCA_H 1 6729*c7ca977eSAlexander Kabaev_ACEOF 6730*c7ca977eSAlexander Kabaev 6731*c7ca977eSAlexander Kabaevfi 6732*c7ca977eSAlexander Kabaev 6733*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for alloca" >&5 6734*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for alloca... $ECHO_C" >&6 6735*c7ca977eSAlexander Kabaevif test "${ac_cv_func_alloca_works+set}" = set; then 6736*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6737*c7ca977eSAlexander Kabaevelse 6738*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6739*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6740*c7ca977eSAlexander Kabaev_ACEOF 6741*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6742*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6743*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6744*c7ca977eSAlexander Kabaev#ifdef __GNUC__ 6745*c7ca977eSAlexander Kabaev# define alloca __builtin_alloca 6746*c7ca977eSAlexander Kabaev#else 6747*c7ca977eSAlexander Kabaev# ifdef _MSC_VER 6748*c7ca977eSAlexander Kabaev# include <malloc.h> 6749*c7ca977eSAlexander Kabaev# define alloca _alloca 6750*c7ca977eSAlexander Kabaev# else 6751*c7ca977eSAlexander Kabaev# if HAVE_ALLOCA_H 6752*c7ca977eSAlexander Kabaev# include <alloca.h> 6753*c7ca977eSAlexander Kabaev# else 6754*c7ca977eSAlexander Kabaev# ifdef _AIX 6755*c7ca977eSAlexander Kabaev #pragma alloca 6756*c7ca977eSAlexander Kabaev# else 6757*c7ca977eSAlexander Kabaev# ifndef alloca /* predefined by HP cc +Olibcalls */ 6758*c7ca977eSAlexander Kabaevchar *alloca (); 6759*c7ca977eSAlexander Kabaev# endif 6760*c7ca977eSAlexander Kabaev# endif 6761*c7ca977eSAlexander Kabaev# endif 6762*c7ca977eSAlexander Kabaev# endif 6763*c7ca977eSAlexander Kabaev#endif 6764*c7ca977eSAlexander Kabaev 6765*c7ca977eSAlexander Kabaevint 6766*c7ca977eSAlexander Kabaevmain () 6767*c7ca977eSAlexander Kabaev{ 6768*c7ca977eSAlexander Kabaevchar *p = (char *) alloca (1); 6769*c7ca977eSAlexander Kabaev ; 6770*c7ca977eSAlexander Kabaev return 0; 6771*c7ca977eSAlexander Kabaev} 6772*c7ca977eSAlexander Kabaev_ACEOF 6773*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext conftest$ac_exeext 6774*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6775*c7ca977eSAlexander Kabaev (eval $ac_link) 2>conftest.er1 6776*c7ca977eSAlexander Kabaev ac_status=$? 6777*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6778*c7ca977eSAlexander Kabaev rm -f conftest.er1 6779*c7ca977eSAlexander Kabaev cat conftest.err >&5 6780*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6781*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6782*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6783*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6784*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6785*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6786*c7ca977eSAlexander Kabaev ac_status=$? 6787*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6788*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6789*c7ca977eSAlexander Kabaev { ac_try='test -s conftest$ac_exeext' 6790*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6791*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6792*c7ca977eSAlexander Kabaev ac_status=$? 6793*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6794*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6795*c7ca977eSAlexander Kabaev ac_cv_func_alloca_works=yes 6796*c7ca977eSAlexander Kabaevelse 6797*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6798*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6799*c7ca977eSAlexander Kabaev 6800*c7ca977eSAlexander Kabaevac_cv_func_alloca_works=no 6801*c7ca977eSAlexander Kabaevfi 6802*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext \ 6803*c7ca977eSAlexander Kabaev conftest$ac_exeext conftest.$ac_ext 6804*c7ca977eSAlexander Kabaevfi 6805*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 6806*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_func_alloca_works" >&6 6807*c7ca977eSAlexander Kabaev 6808*c7ca977eSAlexander Kabaevif test $ac_cv_func_alloca_works = yes; then 6809*c7ca977eSAlexander Kabaev 6810*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 6811*c7ca977eSAlexander Kabaev#define HAVE_ALLOCA 1 6812*c7ca977eSAlexander Kabaev_ACEOF 6813*c7ca977eSAlexander Kabaev 6814*c7ca977eSAlexander Kabaevelse 6815*c7ca977eSAlexander Kabaev # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6816*c7ca977eSAlexander Kabaev# that cause trouble. Some versions do not even contain alloca or 6817*c7ca977eSAlexander Kabaev# contain a buggy version. If you still want to use their alloca, 6818*c7ca977eSAlexander Kabaev# use ar to extract alloca.o from them instead of compiling alloca.c. 6819*c7ca977eSAlexander Kabaev 6820*c7ca977eSAlexander KabaevALLOCA=alloca.$ac_objext 6821*c7ca977eSAlexander Kabaev 6822*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 6823*c7ca977eSAlexander Kabaev#define C_ALLOCA 1 6824*c7ca977eSAlexander Kabaev_ACEOF 6825*c7ca977eSAlexander Kabaev 6826*c7ca977eSAlexander Kabaev 6827*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 6828*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 6829*c7ca977eSAlexander Kabaevif test "${ac_cv_os_cray+set}" = set; then 6830*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6831*c7ca977eSAlexander Kabaevelse 6832*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6833*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6834*c7ca977eSAlexander Kabaev_ACEOF 6835*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6836*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6837*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6838*c7ca977eSAlexander Kabaev#if defined(CRAY) && ! defined(CRAY2) 6839*c7ca977eSAlexander Kabaevwebecray 6840*c7ca977eSAlexander Kabaev#else 6841*c7ca977eSAlexander Kabaevwenotbecray 6842*c7ca977eSAlexander Kabaev#endif 6843*c7ca977eSAlexander Kabaev 6844*c7ca977eSAlexander Kabaev_ACEOF 6845*c7ca977eSAlexander Kabaevif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6846*c7ca977eSAlexander Kabaev $EGREP "webecray" >/dev/null 2>&1; then 6847*c7ca977eSAlexander Kabaev ac_cv_os_cray=yes 6848*c7ca977eSAlexander Kabaevelse 6849*c7ca977eSAlexander Kabaev ac_cv_os_cray=no 6850*c7ca977eSAlexander Kabaevfi 6851*c7ca977eSAlexander Kabaevrm -f conftest* 6852*c7ca977eSAlexander Kabaev 6853*c7ca977eSAlexander Kabaevfi 6854*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 6855*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_os_cray" >&6 6856*c7ca977eSAlexander Kabaevif test $ac_cv_os_cray = yes; then 6857*c7ca977eSAlexander Kabaev for ac_func in _getb67 GETB67 getb67; do 6858*c7ca977eSAlexander Kabaev as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6859*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for $ac_func" >&5 6860*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6861*c7ca977eSAlexander Kabaevif eval "test \"\${$as_ac_var+set}\" = set"; then 6862*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6863*c7ca977eSAlexander Kabaevelse 6864*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6865*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6866*c7ca977eSAlexander Kabaev_ACEOF 6867*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6868*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6869*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6870*c7ca977eSAlexander Kabaev/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6871*c7ca977eSAlexander Kabaev For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6872*c7ca977eSAlexander Kabaev#define $ac_func innocuous_$ac_func 6873*c7ca977eSAlexander Kabaev 6874*c7ca977eSAlexander Kabaev/* System header to define __stub macros and hopefully few prototypes, 6875*c7ca977eSAlexander Kabaev which can conflict with char $ac_func (); below. 6876*c7ca977eSAlexander Kabaev Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6877*c7ca977eSAlexander Kabaev <limits.h> exists even on freestanding compilers. */ 6878*c7ca977eSAlexander Kabaev 6879*c7ca977eSAlexander Kabaev#ifdef __STDC__ 6880*c7ca977eSAlexander Kabaev# include <limits.h> 6881*c7ca977eSAlexander Kabaev#else 6882*c7ca977eSAlexander Kabaev# include <assert.h> 6883*c7ca977eSAlexander Kabaev#endif 6884*c7ca977eSAlexander Kabaev 6885*c7ca977eSAlexander Kabaev#undef $ac_func 6886*c7ca977eSAlexander Kabaev 6887*c7ca977eSAlexander Kabaev/* Override any gcc2 internal prototype to avoid an error. */ 6888*c7ca977eSAlexander Kabaev#ifdef __cplusplus 6889*c7ca977eSAlexander Kabaevextern "C" 6890*c7ca977eSAlexander Kabaev{ 6891*c7ca977eSAlexander Kabaev#endif 6892*c7ca977eSAlexander Kabaev/* We use char because int might match the return type of a gcc2 6893*c7ca977eSAlexander Kabaev builtin and then its argument prototype would still apply. */ 6894*c7ca977eSAlexander Kabaevchar $ac_func (); 6895*c7ca977eSAlexander Kabaev/* The GNU C library defines this for functions which it implements 6896*c7ca977eSAlexander Kabaev to always fail with ENOSYS. Some functions are actually named 6897*c7ca977eSAlexander Kabaev something starting with __ and the normal name is an alias. */ 6898*c7ca977eSAlexander Kabaev#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6899*c7ca977eSAlexander Kabaevchoke me 6900*c7ca977eSAlexander Kabaev#else 6901*c7ca977eSAlexander Kabaevchar (*f) () = $ac_func; 6902*c7ca977eSAlexander Kabaev#endif 6903*c7ca977eSAlexander Kabaev#ifdef __cplusplus 6904*c7ca977eSAlexander Kabaev} 6905*c7ca977eSAlexander Kabaev#endif 6906*c7ca977eSAlexander Kabaev 6907*c7ca977eSAlexander Kabaevint 6908*c7ca977eSAlexander Kabaevmain () 6909*c7ca977eSAlexander Kabaev{ 6910*c7ca977eSAlexander Kabaevreturn f != $ac_func; 6911*c7ca977eSAlexander Kabaev ; 6912*c7ca977eSAlexander Kabaev return 0; 6913*c7ca977eSAlexander Kabaev} 6914*c7ca977eSAlexander Kabaev_ACEOF 6915*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext conftest$ac_exeext 6916*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6917*c7ca977eSAlexander Kabaev (eval $ac_link) 2>conftest.er1 6918*c7ca977eSAlexander Kabaev ac_status=$? 6919*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 6920*c7ca977eSAlexander Kabaev rm -f conftest.er1 6921*c7ca977eSAlexander Kabaev cat conftest.err >&5 6922*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6923*c7ca977eSAlexander Kabaev (exit $ac_status); } && 6924*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 6925*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 6926*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6927*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6928*c7ca977eSAlexander Kabaev ac_status=$? 6929*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6930*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 6931*c7ca977eSAlexander Kabaev { ac_try='test -s conftest$ac_exeext' 6932*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6933*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 6934*c7ca977eSAlexander Kabaev ac_status=$? 6935*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 6936*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 6937*c7ca977eSAlexander Kabaev eval "$as_ac_var=yes" 6938*c7ca977eSAlexander Kabaevelse 6939*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 6940*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 6941*c7ca977eSAlexander Kabaev 6942*c7ca977eSAlexander Kabaeveval "$as_ac_var=no" 6943*c7ca977eSAlexander Kabaevfi 6944*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext \ 6945*c7ca977eSAlexander Kabaev conftest$ac_exeext conftest.$ac_ext 6946*c7ca977eSAlexander Kabaevfi 6947*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6948*c7ca977eSAlexander Kabaevecho "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6949*c7ca977eSAlexander Kabaevif test `eval echo '${'$as_ac_var'}'` = yes; then 6950*c7ca977eSAlexander Kabaev 6951*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 6952*c7ca977eSAlexander Kabaev#define CRAY_STACKSEG_END $ac_func 6953*c7ca977eSAlexander Kabaev_ACEOF 6954*c7ca977eSAlexander Kabaev 6955*c7ca977eSAlexander Kabaev break 6956*c7ca977eSAlexander Kabaevfi 6957*c7ca977eSAlexander Kabaev 6958*c7ca977eSAlexander Kabaev done 6959*c7ca977eSAlexander Kabaevfi 6960*c7ca977eSAlexander Kabaev 6961*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking stack direction for C alloca" >&5 6962*c7ca977eSAlexander Kabaevecho $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 6963*c7ca977eSAlexander Kabaevif test "${ac_cv_c_stack_direction+set}" = set; then 6964*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 6965*c7ca977eSAlexander Kabaevelse 6966*c7ca977eSAlexander Kabaev if test "$cross_compiling" = yes; then 6967*c7ca977eSAlexander Kabaev ac_cv_c_stack_direction=0 6968*c7ca977eSAlexander Kabaevelse 6969*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 6970*c7ca977eSAlexander Kabaev/* confdefs.h. */ 6971*c7ca977eSAlexander Kabaev_ACEOF 6972*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 6973*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 6974*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 6975*c7ca977eSAlexander Kabaevint 6976*c7ca977eSAlexander Kabaevfind_stack_direction () 6977*c7ca977eSAlexander Kabaev{ 6978*c7ca977eSAlexander Kabaev static char *addr = 0; 6979*c7ca977eSAlexander Kabaev auto char dummy; 6980*c7ca977eSAlexander Kabaev if (addr == 0) 6981*c7ca977eSAlexander Kabaev { 6982*c7ca977eSAlexander Kabaev addr = &dummy; 6983*c7ca977eSAlexander Kabaev return find_stack_direction (); 6984*c7ca977eSAlexander Kabaev } 6985*c7ca977eSAlexander Kabaev else 6986*c7ca977eSAlexander Kabaev return (&dummy > addr) ? 1 : -1; 6987*c7ca977eSAlexander Kabaev} 6988*c7ca977eSAlexander Kabaev 6989*c7ca977eSAlexander Kabaevint 6990*c7ca977eSAlexander Kabaevmain () 6991*c7ca977eSAlexander Kabaev{ 6992*c7ca977eSAlexander Kabaev exit (find_stack_direction () < 0); 6993*c7ca977eSAlexander Kabaev} 6994*c7ca977eSAlexander Kabaev_ACEOF 6995*c7ca977eSAlexander Kabaevrm -f conftest$ac_exeext 6996*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6997*c7ca977eSAlexander Kabaev (eval $ac_link) 2>&5 6998*c7ca977eSAlexander Kabaev ac_status=$? 6999*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7000*c7ca977eSAlexander Kabaev (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7001*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7002*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 7003*c7ca977eSAlexander Kabaev ac_status=$? 7004*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7005*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 7006*c7ca977eSAlexander Kabaev ac_cv_c_stack_direction=1 7007*c7ca977eSAlexander Kabaevelse 7008*c7ca977eSAlexander Kabaev echo "$as_me: program exited with status $ac_status" >&5 7009*c7ca977eSAlexander Kabaevecho "$as_me: failed program was:" >&5 7010*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 7011*c7ca977eSAlexander Kabaev 7012*c7ca977eSAlexander Kabaev( exit $ac_status ) 7013*c7ca977eSAlexander Kabaevac_cv_c_stack_direction=-1 7014*c7ca977eSAlexander Kabaevfi 7015*c7ca977eSAlexander Kabaevrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7016*c7ca977eSAlexander Kabaevfi 7017*c7ca977eSAlexander Kabaevfi 7018*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 7019*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_c_stack_direction" >&6 7020*c7ca977eSAlexander Kabaev 7021*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 7022*c7ca977eSAlexander Kabaev#define STACK_DIRECTION $ac_cv_c_stack_direction 7023*c7ca977eSAlexander Kabaev_ACEOF 7024*c7ca977eSAlexander Kabaev 7025*c7ca977eSAlexander Kabaev 7026*c7ca977eSAlexander Kabaevfi 7027*c7ca977eSAlexander Kabaev 7028*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for ANSI C header files" >&5 7029*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 7030*c7ca977eSAlexander Kabaevif test "${ac_cv_header_stdc+set}" = set; then 7031*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 7032*c7ca977eSAlexander Kabaevelse 7033*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 7034*c7ca977eSAlexander Kabaev/* confdefs.h. */ 7035*c7ca977eSAlexander Kabaev_ACEOF 7036*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 7037*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 7038*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 7039*c7ca977eSAlexander Kabaev#include <stdlib.h> 7040*c7ca977eSAlexander Kabaev#include <stdarg.h> 7041*c7ca977eSAlexander Kabaev#include <string.h> 7042*c7ca977eSAlexander Kabaev#include <float.h> 7043*c7ca977eSAlexander Kabaev 7044*c7ca977eSAlexander Kabaevint 7045*c7ca977eSAlexander Kabaevmain () 7046*c7ca977eSAlexander Kabaev{ 7047*c7ca977eSAlexander Kabaev 7048*c7ca977eSAlexander Kabaev ; 7049*c7ca977eSAlexander Kabaev return 0; 7050*c7ca977eSAlexander Kabaev} 7051*c7ca977eSAlexander Kabaev_ACEOF 7052*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 7053*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7054*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 7055*c7ca977eSAlexander Kabaev ac_status=$? 7056*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 7057*c7ca977eSAlexander Kabaev rm -f conftest.er1 7058*c7ca977eSAlexander Kabaev cat conftest.err >&5 7059*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7060*c7ca977eSAlexander Kabaev (exit $ac_status); } && 7061*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 7062*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 7063*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7064*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 7065*c7ca977eSAlexander Kabaev ac_status=$? 7066*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7067*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 7068*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 7069*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7070*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 7071*c7ca977eSAlexander Kabaev ac_status=$? 7072*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7073*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 7074*c7ca977eSAlexander Kabaev ac_cv_header_stdc=yes 7075*c7ca977eSAlexander Kabaevelse 7076*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 7077*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 7078*c7ca977eSAlexander Kabaev 7079*c7ca977eSAlexander Kabaevac_cv_header_stdc=no 7080*c7ca977eSAlexander Kabaevfi 7081*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7082*c7ca977eSAlexander Kabaev 7083*c7ca977eSAlexander Kabaevif test $ac_cv_header_stdc = yes; then 7084*c7ca977eSAlexander Kabaev # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7085*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 7086*c7ca977eSAlexander Kabaev/* confdefs.h. */ 7087*c7ca977eSAlexander Kabaev_ACEOF 7088*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 7089*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 7090*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 7091*c7ca977eSAlexander Kabaev#include <string.h> 7092*c7ca977eSAlexander Kabaev 7093*c7ca977eSAlexander Kabaev_ACEOF 7094*c7ca977eSAlexander Kabaevif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7095*c7ca977eSAlexander Kabaev $EGREP "memchr" >/dev/null 2>&1; then 7096*c7ca977eSAlexander Kabaev : 7097*c7ca977eSAlexander Kabaevelse 7098*c7ca977eSAlexander Kabaev ac_cv_header_stdc=no 7099*c7ca977eSAlexander Kabaevfi 7100*c7ca977eSAlexander Kabaevrm -f conftest* 7101*c7ca977eSAlexander Kabaev 7102*c7ca977eSAlexander Kabaevfi 7103*c7ca977eSAlexander Kabaev 7104*c7ca977eSAlexander Kabaevif test $ac_cv_header_stdc = yes; then 7105*c7ca977eSAlexander Kabaev # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7106*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 7107*c7ca977eSAlexander Kabaev/* confdefs.h. */ 7108*c7ca977eSAlexander Kabaev_ACEOF 7109*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 7110*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 7111*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 7112*c7ca977eSAlexander Kabaev#include <stdlib.h> 7113*c7ca977eSAlexander Kabaev 7114*c7ca977eSAlexander Kabaev_ACEOF 7115*c7ca977eSAlexander Kabaevif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7116*c7ca977eSAlexander Kabaev $EGREP "free" >/dev/null 2>&1; then 7117*c7ca977eSAlexander Kabaev : 7118*c7ca977eSAlexander Kabaevelse 7119*c7ca977eSAlexander Kabaev ac_cv_header_stdc=no 7120*c7ca977eSAlexander Kabaevfi 7121*c7ca977eSAlexander Kabaevrm -f conftest* 7122*c7ca977eSAlexander Kabaev 7123*c7ca977eSAlexander Kabaevfi 7124*c7ca977eSAlexander Kabaev 7125*c7ca977eSAlexander Kabaevif test $ac_cv_header_stdc = yes; then 7126*c7ca977eSAlexander Kabaev # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7127*c7ca977eSAlexander Kabaev if test "$cross_compiling" = yes; then 7128*c7ca977eSAlexander Kabaev : 7129*c7ca977eSAlexander Kabaevelse 7130*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 7131*c7ca977eSAlexander Kabaev/* confdefs.h. */ 7132*c7ca977eSAlexander Kabaev_ACEOF 7133*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 7134*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 7135*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 7136*c7ca977eSAlexander Kabaev#include <ctype.h> 7137*c7ca977eSAlexander Kabaev#if ((' ' & 0x0FF) == 0x020) 7138*c7ca977eSAlexander Kabaev# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7139*c7ca977eSAlexander Kabaev# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7140*c7ca977eSAlexander Kabaev#else 7141*c7ca977eSAlexander Kabaev# define ISLOWER(c) \ 7142*c7ca977eSAlexander Kabaev (('a' <= (c) && (c) <= 'i') \ 7143*c7ca977eSAlexander Kabaev || ('j' <= (c) && (c) <= 'r') \ 7144*c7ca977eSAlexander Kabaev || ('s' <= (c) && (c) <= 'z')) 7145*c7ca977eSAlexander Kabaev# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7146*c7ca977eSAlexander Kabaev#endif 7147*c7ca977eSAlexander Kabaev 7148*c7ca977eSAlexander Kabaev#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7149*c7ca977eSAlexander Kabaevint 7150*c7ca977eSAlexander Kabaevmain () 7151*c7ca977eSAlexander Kabaev{ 7152*c7ca977eSAlexander Kabaev int i; 7153*c7ca977eSAlexander Kabaev for (i = 0; i < 256; i++) 7154*c7ca977eSAlexander Kabaev if (XOR (islower (i), ISLOWER (i)) 7155*c7ca977eSAlexander Kabaev || toupper (i) != TOUPPER (i)) 7156*c7ca977eSAlexander Kabaev exit(2); 7157*c7ca977eSAlexander Kabaev exit (0); 7158*c7ca977eSAlexander Kabaev} 7159*c7ca977eSAlexander Kabaev_ACEOF 7160*c7ca977eSAlexander Kabaevrm -f conftest$ac_exeext 7161*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7162*c7ca977eSAlexander Kabaev (eval $ac_link) 2>&5 7163*c7ca977eSAlexander Kabaev ac_status=$? 7164*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7165*c7ca977eSAlexander Kabaev (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7166*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7167*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 7168*c7ca977eSAlexander Kabaev ac_status=$? 7169*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7170*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 7171*c7ca977eSAlexander Kabaev : 7172*c7ca977eSAlexander Kabaevelse 7173*c7ca977eSAlexander Kabaev echo "$as_me: program exited with status $ac_status" >&5 7174*c7ca977eSAlexander Kabaevecho "$as_me: failed program was:" >&5 7175*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 7176*c7ca977eSAlexander Kabaev 7177*c7ca977eSAlexander Kabaev( exit $ac_status ) 7178*c7ca977eSAlexander Kabaevac_cv_header_stdc=no 7179*c7ca977eSAlexander Kabaevfi 7180*c7ca977eSAlexander Kabaevrm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7181*c7ca977eSAlexander Kabaevfi 7182*c7ca977eSAlexander Kabaevfi 7183*c7ca977eSAlexander Kabaevfi 7184*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7185*c7ca977eSAlexander Kabaevecho "${ECHO_T}$ac_cv_header_stdc" >&6 7186*c7ca977eSAlexander Kabaevif test $ac_cv_header_stdc = yes; then 7187*c7ca977eSAlexander Kabaev 7188*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 7189*c7ca977eSAlexander Kabaev#define STDC_HEADERS 1 7190*c7ca977eSAlexander Kabaev_ACEOF 7191*c7ca977eSAlexander Kabaev 7192*c7ca977eSAlexander Kabaevfi 7193*c7ca977eSAlexander Kabaev 7194*c7ca977eSAlexander Kabaev 7195*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 7196*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 7197*c7ca977eSAlexander Kabaevif test "${am_cv_langinfo_codeset+set}" = set; then 7198*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 7199*c7ca977eSAlexander Kabaevelse 7200*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 7201*c7ca977eSAlexander Kabaev/* confdefs.h. */ 7202*c7ca977eSAlexander Kabaev_ACEOF 7203*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 7204*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 7205*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 7206*c7ca977eSAlexander Kabaev#include <langinfo.h> 7207*c7ca977eSAlexander Kabaevint 7208*c7ca977eSAlexander Kabaevmain () 7209*c7ca977eSAlexander Kabaev{ 7210*c7ca977eSAlexander Kabaevchar* cs = nl_langinfo(CODESET); 7211*c7ca977eSAlexander Kabaev ; 7212*c7ca977eSAlexander Kabaev return 0; 7213*c7ca977eSAlexander Kabaev} 7214*c7ca977eSAlexander Kabaev_ACEOF 7215*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext conftest$ac_exeext 7216*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7217*c7ca977eSAlexander Kabaev (eval $ac_link) 2>conftest.er1 7218*c7ca977eSAlexander Kabaev ac_status=$? 7219*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 7220*c7ca977eSAlexander Kabaev rm -f conftest.er1 7221*c7ca977eSAlexander Kabaev cat conftest.err >&5 7222*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7223*c7ca977eSAlexander Kabaev (exit $ac_status); } && 7224*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 7225*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 7226*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7227*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 7228*c7ca977eSAlexander Kabaev ac_status=$? 7229*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7230*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 7231*c7ca977eSAlexander Kabaev { ac_try='test -s conftest$ac_exeext' 7232*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7233*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 7234*c7ca977eSAlexander Kabaev ac_status=$? 7235*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7236*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 7237*c7ca977eSAlexander Kabaev am_cv_langinfo_codeset=yes 7238*c7ca977eSAlexander Kabaevelse 7239*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 7240*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 7241*c7ca977eSAlexander Kabaev 7242*c7ca977eSAlexander Kabaevam_cv_langinfo_codeset=no 7243*c7ca977eSAlexander Kabaevfi 7244*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext \ 7245*c7ca977eSAlexander Kabaev conftest$ac_exeext conftest.$ac_ext 7246*c7ca977eSAlexander Kabaev 7247*c7ca977eSAlexander Kabaevfi 7248*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 7249*c7ca977eSAlexander Kabaevecho "${ECHO_T}$am_cv_langinfo_codeset" >&6 7250*c7ca977eSAlexander Kabaev if test $am_cv_langinfo_codeset = yes; then 7251*c7ca977eSAlexander Kabaev 7252*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 7253*c7ca977eSAlexander Kabaev#define HAVE_LANGINFO_CODESET 1 7254*c7ca977eSAlexander Kabaev_ACEOF 7255*c7ca977eSAlexander Kabaev 7256*c7ca977eSAlexander Kabaev fi 7257*c7ca977eSAlexander Kabaev 7258*c7ca977eSAlexander Kabaev# If we haven't got the data from the intl directory, 7259*c7ca977eSAlexander Kabaev# assume NLS is disabled. 7260*c7ca977eSAlexander KabaevUSE_NLS=no 7261*c7ca977eSAlexander KabaevLIBINTL= 7262*c7ca977eSAlexander KabaevLIBINTL_DEP= 7263*c7ca977eSAlexander KabaevINCINTL= 7264*c7ca977eSAlexander KabaevXGETTEXT= 7265*c7ca977eSAlexander KabaevGMSGFMT= 7266*c7ca977eSAlexander KabaevPOSUB= 7267*c7ca977eSAlexander Kabaev 7268*c7ca977eSAlexander Kabaevif test -f ../intl/config.intl; then 7269*c7ca977eSAlexander Kabaev . ../intl/config.intl 7270*c7ca977eSAlexander Kabaevfi 7271*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking whether NLS is requested" >&5 7272*c7ca977eSAlexander Kabaevecho $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7273*c7ca977eSAlexander Kabaevif test x"$USE_NLS" != xyes; then 7274*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 7275*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 7276*c7ca977eSAlexander Kabaevelse 7277*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: yes" >&5 7278*c7ca977eSAlexander Kabaevecho "${ECHO_T}yes" >&6 7279*c7ca977eSAlexander Kabaev 7280*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 7281*c7ca977eSAlexander Kabaev#define ENABLE_NLS 1 7282*c7ca977eSAlexander Kabaev_ACEOF 7283*c7ca977eSAlexander Kabaev 7284*c7ca977eSAlexander Kabaev 7285*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 7286*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 7287*c7ca977eSAlexander Kabaev # Look for .po and .gmo files in the source directory. 7288*c7ca977eSAlexander Kabaev CATALOGS= 7289*c7ca977eSAlexander Kabaev XLINGUAS= 7290*c7ca977eSAlexander Kabaev for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 7291*c7ca977eSAlexander Kabaev # If there aren't any .gmo files the shell will give us the 7292*c7ca977eSAlexander Kabaev # literal string "../path/to/srcdir/po/*.gmo" which has to be 7293*c7ca977eSAlexander Kabaev # weeded out. 7294*c7ca977eSAlexander Kabaev case "$cat" in *\**) 7295*c7ca977eSAlexander Kabaev continue;; 7296*c7ca977eSAlexander Kabaev esac 7297*c7ca977eSAlexander Kabaev # The quadruple backslash is collapsed to a double backslash 7298*c7ca977eSAlexander Kabaev # by the backticks, then collapsed again by the double quotes, 7299*c7ca977eSAlexander Kabaev # leaving us with one backslash in the sed expression (right 7300*c7ca977eSAlexander Kabaev # before the dot that mustn't act as a wildcard). 7301*c7ca977eSAlexander Kabaev cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 7302*c7ca977eSAlexander Kabaev lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 7303*c7ca977eSAlexander Kabaev # The user is allowed to set LINGUAS to a list of languages to 7304*c7ca977eSAlexander Kabaev # install catalogs for. If it's empty that means "all of them." 7305*c7ca977eSAlexander Kabaev if test "x$LINGUAS" = x; then 7306*c7ca977eSAlexander Kabaev CATALOGS="$CATALOGS $cat" 7307*c7ca977eSAlexander Kabaev XLINGUAS="$XLINGUAS $lang" 7308*c7ca977eSAlexander Kabaev else 7309*c7ca977eSAlexander Kabaev case "$LINGUAS" in *$lang*) 7310*c7ca977eSAlexander Kabaev CATALOGS="$CATALOGS $cat" 7311*c7ca977eSAlexander Kabaev XLINGUAS="$XLINGUAS $lang" 7312*c7ca977eSAlexander Kabaev ;; 7313*c7ca977eSAlexander Kabaev esac 7314*c7ca977eSAlexander Kabaev fi 7315*c7ca977eSAlexander Kabaev done 7316*c7ca977eSAlexander Kabaev LINGUAS="$XLINGUAS" 7317*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $LINGUAS" >&5 7318*c7ca977eSAlexander Kabaevecho "${ECHO_T}$LINGUAS" >&6 7319*c7ca977eSAlexander Kabaev 7320*c7ca977eSAlexander Kabaev 7321*c7ca977eSAlexander Kabaev DATADIRNAME=share 7322*c7ca977eSAlexander Kabaev 7323*c7ca977eSAlexander Kabaev INSTOBJEXT=.mo 7324*c7ca977eSAlexander Kabaev 7325*c7ca977eSAlexander Kabaev GENCAT=gencat 7326*c7ca977eSAlexander Kabaev 7327*c7ca977eSAlexander Kabaev CATOBJEXT=.gmo 7328*c7ca977eSAlexander Kabaev 7329*c7ca977eSAlexander Kabaevfi 7330*c7ca977eSAlexander Kabaev 7331*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking for uchar" >&5 7332*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for uchar... $ECHO_C" >&6 7333*c7ca977eSAlexander Kabaevif test "${gcc_cv_type_uchar+set}" = set; then 7334*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 7335*c7ca977eSAlexander Kabaevelse 7336*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 7337*c7ca977eSAlexander Kabaev/* confdefs.h. */ 7338*c7ca977eSAlexander Kabaev_ACEOF 7339*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 7340*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 7341*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 7342*c7ca977eSAlexander Kabaev 7343*c7ca977eSAlexander Kabaev#include <sys/types.h> 7344*c7ca977eSAlexander Kabaev 7345*c7ca977eSAlexander Kabaevint 7346*c7ca977eSAlexander Kabaevmain () 7347*c7ca977eSAlexander Kabaev{ 7348*c7ca977eSAlexander Kabaevif ((uchar *)0) return 0; 7349*c7ca977eSAlexander Kabaev if (sizeof(uchar)) return 0; 7350*c7ca977eSAlexander Kabaev ; 7351*c7ca977eSAlexander Kabaev return 0; 7352*c7ca977eSAlexander Kabaev} 7353*c7ca977eSAlexander Kabaev_ACEOF 7354*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 7355*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7356*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 7357*c7ca977eSAlexander Kabaev ac_status=$? 7358*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 7359*c7ca977eSAlexander Kabaev rm -f conftest.er1 7360*c7ca977eSAlexander Kabaev cat conftest.err >&5 7361*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7362*c7ca977eSAlexander Kabaev (exit $ac_status); } && 7363*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 7364*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 7365*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7366*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 7367*c7ca977eSAlexander Kabaev ac_status=$? 7368*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7369*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 7370*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 7371*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7372*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 7373*c7ca977eSAlexander Kabaev ac_status=$? 7374*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 7375*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 7376*c7ca977eSAlexander Kabaev ac_cv_type_uchar=yes 7377*c7ca977eSAlexander Kabaevelse 7378*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 7379*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 7380*c7ca977eSAlexander Kabaev 7381*c7ca977eSAlexander Kabaevac_cv_type_uchar=no 7382*c7ca977eSAlexander Kabaevfi 7383*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7384*c7ca977eSAlexander Kabaevfi 7385*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5 7386*c7ca977eSAlexander Kabaevecho "${ECHO_T}$gcc_cv_type_uchar" >&6 7387*c7ca977eSAlexander Kabaevif test $ac_cv_type_uchar = yes; then 7388*c7ca977eSAlexander Kabaev 7389*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 7390*c7ca977eSAlexander Kabaev#define HAVE_UCHAR 1 7391*c7ca977eSAlexander Kabaev_ACEOF 7392*c7ca977eSAlexander Kabaev 7393*c7ca977eSAlexander Kabaevfi 7394*c7ca977eSAlexander Kabaev 7395*c7ca977eSAlexander Kabaev 7396*c7ca977eSAlexander Kabaev if test "X$prefix" = "XNONE"; then 7397*c7ca977eSAlexander Kabaev acl_final_prefix="$ac_default_prefix" 7398*c7ca977eSAlexander Kabaev else 7399*c7ca977eSAlexander Kabaev acl_final_prefix="$prefix" 7400*c7ca977eSAlexander Kabaev fi 7401*c7ca977eSAlexander Kabaev if test "X$exec_prefix" = "XNONE"; then 7402*c7ca977eSAlexander Kabaev acl_final_exec_prefix='${prefix}' 7403*c7ca977eSAlexander Kabaev else 7404*c7ca977eSAlexander Kabaev acl_final_exec_prefix="$exec_prefix" 7405*c7ca977eSAlexander Kabaev fi 7406*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7407*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7408*c7ca977eSAlexander Kabaev eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 7409*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7410*c7ca977eSAlexander Kabaev 7411*c7ca977eSAlexander Kabaev 7412*c7ca977eSAlexander Kabaev# Check whether --with-gnu-ld or --without-gnu-ld was given. 7413*c7ca977eSAlexander Kabaevif test "${with_gnu_ld+set}" = set; then 7414*c7ca977eSAlexander Kabaev withval="$with_gnu_ld" 7415*c7ca977eSAlexander Kabaev test "$withval" = no || with_gnu_ld=yes 7416*c7ca977eSAlexander Kabaevelse 7417*c7ca977eSAlexander Kabaev with_gnu_ld=no 7418*c7ca977eSAlexander Kabaevfi; 7419*c7ca977eSAlexander Kabaev# Prepare PATH_SEPARATOR. 7420*c7ca977eSAlexander Kabaev# The user is always right. 7421*c7ca977eSAlexander Kabaevif test "${PATH_SEPARATOR+set}" != set; then 7422*c7ca977eSAlexander Kabaev echo "#! /bin/sh" >conf$$.sh 7423*c7ca977eSAlexander Kabaev echo "exit 0" >>conf$$.sh 7424*c7ca977eSAlexander Kabaev chmod +x conf$$.sh 7425*c7ca977eSAlexander Kabaev if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7426*c7ca977eSAlexander Kabaev PATH_SEPARATOR=';' 7427*c7ca977eSAlexander Kabaev else 7428*c7ca977eSAlexander Kabaev PATH_SEPARATOR=: 7429*c7ca977eSAlexander Kabaev fi 7430*c7ca977eSAlexander Kabaev rm -f conf$$.sh 7431*c7ca977eSAlexander Kabaevfi 7432*c7ca977eSAlexander Kabaevac_prog=ld 7433*c7ca977eSAlexander Kabaevif test "$GCC" = yes; then 7434*c7ca977eSAlexander Kabaev # Check if gcc -print-prog-name=ld gives a path. 7435*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for ld used by GCC" >&5 7436*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 7437*c7ca977eSAlexander Kabaev case $host in 7438*c7ca977eSAlexander Kabaev *-*-mingw*) 7439*c7ca977eSAlexander Kabaev # gcc leaves a trailing carriage return which upsets mingw 7440*c7ca977eSAlexander Kabaev ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7441*c7ca977eSAlexander Kabaev *) 7442*c7ca977eSAlexander Kabaev ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7443*c7ca977eSAlexander Kabaev esac 7444*c7ca977eSAlexander Kabaev case $ac_prog in 7445*c7ca977eSAlexander Kabaev # Accept absolute paths. 7446*c7ca977eSAlexander Kabaev [\\/]* | [A-Za-z]:[\\/]*) 7447*c7ca977eSAlexander Kabaev re_direlt='/[^/][^/]*/\.\./' 7448*c7ca977eSAlexander Kabaev # Canonicalize the path of ld 7449*c7ca977eSAlexander Kabaev ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 7450*c7ca977eSAlexander Kabaev while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7451*c7ca977eSAlexander Kabaev ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7452*c7ca977eSAlexander Kabaev done 7453*c7ca977eSAlexander Kabaev test -z "$LD" && LD="$ac_prog" 7454*c7ca977eSAlexander Kabaev ;; 7455*c7ca977eSAlexander Kabaev "") 7456*c7ca977eSAlexander Kabaev # If it fails, then pretend we aren't using GCC. 7457*c7ca977eSAlexander Kabaev ac_prog=ld 7458*c7ca977eSAlexander Kabaev ;; 7459*c7ca977eSAlexander Kabaev *) 7460*c7ca977eSAlexander Kabaev # If it is relative, then search for the first ld in PATH. 7461*c7ca977eSAlexander Kabaev with_gnu_ld=unknown 7462*c7ca977eSAlexander Kabaev ;; 7463*c7ca977eSAlexander Kabaev esac 7464*c7ca977eSAlexander Kabaevelif test "$with_gnu_ld" = yes; then 7465*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for GNU ld" >&5 7466*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for GNU ld... $ECHO_C" >&6 7467*c7ca977eSAlexander Kabaevelse 7468*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7469*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 7470*c7ca977eSAlexander Kabaevfi 7471*c7ca977eSAlexander Kabaevif test "${acl_cv_path_LD+set}" = set; then 7472*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 7473*c7ca977eSAlexander Kabaevelse 7474*c7ca977eSAlexander Kabaev if test -z "$LD"; then 7475*c7ca977eSAlexander Kabaev IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 7476*c7ca977eSAlexander Kabaev for ac_dir in $PATH; do 7477*c7ca977eSAlexander Kabaev test -z "$ac_dir" && ac_dir=. 7478*c7ca977eSAlexander Kabaev if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7479*c7ca977eSAlexander Kabaev acl_cv_path_LD="$ac_dir/$ac_prog" 7480*c7ca977eSAlexander Kabaev # Check to see if the program is GNU ld. I'd rather use --version, 7481*c7ca977eSAlexander Kabaev # but apparently some GNU ld's only accept -v. 7482*c7ca977eSAlexander Kabaev # Break only if it was the GNU/non-GNU ld that we prefer. 7483*c7ca977eSAlexander Kabaev if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 7484*c7ca977eSAlexander Kabaev test "$with_gnu_ld" != no && break 7485*c7ca977eSAlexander Kabaev else 7486*c7ca977eSAlexander Kabaev test "$with_gnu_ld" != yes && break 7487*c7ca977eSAlexander Kabaev fi 7488*c7ca977eSAlexander Kabaev fi 7489*c7ca977eSAlexander Kabaev done 7490*c7ca977eSAlexander Kabaev IFS="$ac_save_ifs" 7491*c7ca977eSAlexander Kabaevelse 7492*c7ca977eSAlexander Kabaev acl_cv_path_LD="$LD" # Let the user override the test with a path. 7493*c7ca977eSAlexander Kabaevfi 7494*c7ca977eSAlexander Kabaevfi 7495*c7ca977eSAlexander Kabaev 7496*c7ca977eSAlexander KabaevLD="$acl_cv_path_LD" 7497*c7ca977eSAlexander Kabaevif test -n "$LD"; then 7498*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $LD" >&5 7499*c7ca977eSAlexander Kabaevecho "${ECHO_T}$LD" >&6 7500*c7ca977eSAlexander Kabaevelse 7501*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: no" >&5 7502*c7ca977eSAlexander Kabaevecho "${ECHO_T}no" >&6 7503*c7ca977eSAlexander Kabaevfi 7504*c7ca977eSAlexander Kabaevtest -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 7505*c7ca977eSAlexander Kabaevecho "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7506*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 7507*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7508*c7ca977eSAlexander Kabaevecho $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 7509*c7ca977eSAlexander Kabaevif test "${acl_cv_prog_gnu_ld+set}" = set; then 7510*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 7511*c7ca977eSAlexander Kabaevelse 7512*c7ca977eSAlexander Kabaev # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7513*c7ca977eSAlexander Kabaevif $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 7514*c7ca977eSAlexander Kabaev acl_cv_prog_gnu_ld=yes 7515*c7ca977eSAlexander Kabaevelse 7516*c7ca977eSAlexander Kabaev acl_cv_prog_gnu_ld=no 7517*c7ca977eSAlexander Kabaevfi 7518*c7ca977eSAlexander Kabaevfi 7519*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 7520*c7ca977eSAlexander Kabaevecho "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 7521*c7ca977eSAlexander Kabaevwith_gnu_ld=$acl_cv_prog_gnu_ld 7522*c7ca977eSAlexander Kabaev 7523*c7ca977eSAlexander Kabaev 7524*c7ca977eSAlexander Kabaev 7525*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for shared library run path origin" >&5 7526*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 7527*c7ca977eSAlexander Kabaevif test "${acl_cv_rpath+set}" = set; then 7528*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 7529*c7ca977eSAlexander Kabaevelse 7530*c7ca977eSAlexander Kabaev 7531*c7ca977eSAlexander Kabaev CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7532*c7ca977eSAlexander Kabaev ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7533*c7ca977eSAlexander Kabaev . ./conftest.sh 7534*c7ca977eSAlexander Kabaev rm -f ./conftest.sh 7535*c7ca977eSAlexander Kabaev acl_cv_rpath=done 7536*c7ca977eSAlexander Kabaev 7537*c7ca977eSAlexander Kabaevfi 7538*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $acl_cv_rpath" >&5 7539*c7ca977eSAlexander Kabaevecho "${ECHO_T}$acl_cv_rpath" >&6 7540*c7ca977eSAlexander Kabaev wl="$acl_cv_wl" 7541*c7ca977eSAlexander Kabaev libext="$acl_cv_libext" 7542*c7ca977eSAlexander Kabaev shlibext="$acl_cv_shlibext" 7543*c7ca977eSAlexander Kabaev hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7544*c7ca977eSAlexander Kabaev hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7545*c7ca977eSAlexander Kabaev hardcode_direct="$acl_cv_hardcode_direct" 7546*c7ca977eSAlexander Kabaev hardcode_minus_L="$acl_cv_hardcode_minus_L" 7547*c7ca977eSAlexander Kabaev # Check whether --enable-rpath or --disable-rpath was given. 7548*c7ca977eSAlexander Kabaevif test "${enable_rpath+set}" = set; then 7549*c7ca977eSAlexander Kabaev enableval="$enable_rpath" 7550*c7ca977eSAlexander Kabaev : 7551*c7ca977eSAlexander Kabaevelse 7552*c7ca977eSAlexander Kabaev enable_rpath=yes 7553*c7ca977eSAlexander Kabaevfi; 7554*c7ca977eSAlexander Kabaev 7555*c7ca977eSAlexander Kabaev 7556*c7ca977eSAlexander Kabaev 7557*c7ca977eSAlexander Kabaev 7558*c7ca977eSAlexander Kabaev 7559*c7ca977eSAlexander Kabaev 7560*c7ca977eSAlexander Kabaev 7561*c7ca977eSAlexander Kabaev use_additional=yes 7562*c7ca977eSAlexander Kabaev 7563*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7564*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7565*c7ca977eSAlexander Kabaev acl_save_exec_prefix="$exec_prefix" 7566*c7ca977eSAlexander Kabaev exec_prefix="$acl_final_exec_prefix" 7567*c7ca977eSAlexander Kabaev 7568*c7ca977eSAlexander Kabaev eval additional_includedir=\"$includedir\" 7569*c7ca977eSAlexander Kabaev eval additional_libdir=\"$libdir\" 7570*c7ca977eSAlexander Kabaev 7571*c7ca977eSAlexander Kabaev exec_prefix="$acl_save_exec_prefix" 7572*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7573*c7ca977eSAlexander Kabaev 7574*c7ca977eSAlexander Kabaev 7575*c7ca977eSAlexander Kabaev# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 7576*c7ca977eSAlexander Kabaevif test "${with_libiconv_prefix+set}" = set; then 7577*c7ca977eSAlexander Kabaev withval="$with_libiconv_prefix" 7578*c7ca977eSAlexander Kabaev 7579*c7ca977eSAlexander Kabaev if test "X$withval" = "Xno"; then 7580*c7ca977eSAlexander Kabaev use_additional=no 7581*c7ca977eSAlexander Kabaev else 7582*c7ca977eSAlexander Kabaev if test "X$withval" = "X"; then 7583*c7ca977eSAlexander Kabaev 7584*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7585*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7586*c7ca977eSAlexander Kabaev acl_save_exec_prefix="$exec_prefix" 7587*c7ca977eSAlexander Kabaev exec_prefix="$acl_final_exec_prefix" 7588*c7ca977eSAlexander Kabaev 7589*c7ca977eSAlexander Kabaev eval additional_includedir=\"$includedir\" 7590*c7ca977eSAlexander Kabaev eval additional_libdir=\"$libdir\" 7591*c7ca977eSAlexander Kabaev 7592*c7ca977eSAlexander Kabaev exec_prefix="$acl_save_exec_prefix" 7593*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7594*c7ca977eSAlexander Kabaev 7595*c7ca977eSAlexander Kabaev else 7596*c7ca977eSAlexander Kabaev additional_includedir="$withval/include" 7597*c7ca977eSAlexander Kabaev additional_libdir="$withval/lib" 7598*c7ca977eSAlexander Kabaev fi 7599*c7ca977eSAlexander Kabaev fi 7600*c7ca977eSAlexander Kabaev 7601*c7ca977eSAlexander Kabaevfi; 7602*c7ca977eSAlexander Kabaev LIBICONV= 7603*c7ca977eSAlexander Kabaev LTLIBICONV= 7604*c7ca977eSAlexander Kabaev INCICONV= 7605*c7ca977eSAlexander Kabaev rpathdirs= 7606*c7ca977eSAlexander Kabaev ltrpathdirs= 7607*c7ca977eSAlexander Kabaev names_already_handled= 7608*c7ca977eSAlexander Kabaev names_next_round='iconv ' 7609*c7ca977eSAlexander Kabaev while test -n "$names_next_round"; do 7610*c7ca977eSAlexander Kabaev names_this_round="$names_next_round" 7611*c7ca977eSAlexander Kabaev names_next_round= 7612*c7ca977eSAlexander Kabaev for name in $names_this_round; do 7613*c7ca977eSAlexander Kabaev already_handled= 7614*c7ca977eSAlexander Kabaev for n in $names_already_handled; do 7615*c7ca977eSAlexander Kabaev if test "$n" = "$name"; then 7616*c7ca977eSAlexander Kabaev already_handled=yes 7617*c7ca977eSAlexander Kabaev break 7618*c7ca977eSAlexander Kabaev fi 7619*c7ca977eSAlexander Kabaev done 7620*c7ca977eSAlexander Kabaev if test -z "$already_handled"; then 7621*c7ca977eSAlexander Kabaev names_already_handled="$names_already_handled $name" 7622*c7ca977eSAlexander Kabaev uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7623*c7ca977eSAlexander Kabaev eval value=\"\$HAVE_LIB$uppername\" 7624*c7ca977eSAlexander Kabaev if test -n "$value"; then 7625*c7ca977eSAlexander Kabaev if test "$value" = yes; then 7626*c7ca977eSAlexander Kabaev eval value=\"\$LIB$uppername\" 7627*c7ca977eSAlexander Kabaev test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 7628*c7ca977eSAlexander Kabaev eval value=\"\$LTLIB$uppername\" 7629*c7ca977eSAlexander Kabaev test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 7630*c7ca977eSAlexander Kabaev else 7631*c7ca977eSAlexander Kabaev : 7632*c7ca977eSAlexander Kabaev fi 7633*c7ca977eSAlexander Kabaev else 7634*c7ca977eSAlexander Kabaev found_dir= 7635*c7ca977eSAlexander Kabaev found_la= 7636*c7ca977eSAlexander Kabaev found_so= 7637*c7ca977eSAlexander Kabaev found_a= 7638*c7ca977eSAlexander Kabaev if test $use_additional = yes; then 7639*c7ca977eSAlexander Kabaev if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 7640*c7ca977eSAlexander Kabaev found_dir="$additional_libdir" 7641*c7ca977eSAlexander Kabaev found_so="$additional_libdir/lib$name.$shlibext" 7642*c7ca977eSAlexander Kabaev if test -f "$additional_libdir/lib$name.la"; then 7643*c7ca977eSAlexander Kabaev found_la="$additional_libdir/lib$name.la" 7644*c7ca977eSAlexander Kabaev fi 7645*c7ca977eSAlexander Kabaev else 7646*c7ca977eSAlexander Kabaev if test -f "$additional_libdir/lib$name.$libext"; then 7647*c7ca977eSAlexander Kabaev found_dir="$additional_libdir" 7648*c7ca977eSAlexander Kabaev found_a="$additional_libdir/lib$name.$libext" 7649*c7ca977eSAlexander Kabaev if test -f "$additional_libdir/lib$name.la"; then 7650*c7ca977eSAlexander Kabaev found_la="$additional_libdir/lib$name.la" 7651*c7ca977eSAlexander Kabaev fi 7652*c7ca977eSAlexander Kabaev fi 7653*c7ca977eSAlexander Kabaev fi 7654*c7ca977eSAlexander Kabaev fi 7655*c7ca977eSAlexander Kabaev if test "X$found_dir" = "X"; then 7656*c7ca977eSAlexander Kabaev for x in $LDFLAGS $LTLIBICONV; do 7657*c7ca977eSAlexander Kabaev 7658*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7659*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7660*c7ca977eSAlexander Kabaev acl_save_exec_prefix="$exec_prefix" 7661*c7ca977eSAlexander Kabaev exec_prefix="$acl_final_exec_prefix" 7662*c7ca977eSAlexander Kabaev eval x=\"$x\" 7663*c7ca977eSAlexander Kabaev exec_prefix="$acl_save_exec_prefix" 7664*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7665*c7ca977eSAlexander Kabaev 7666*c7ca977eSAlexander Kabaev case "$x" in 7667*c7ca977eSAlexander Kabaev -L*) 7668*c7ca977eSAlexander Kabaev dir=`echo "X$x" | sed -e 's/^X-L//'` 7669*c7ca977eSAlexander Kabaev if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7670*c7ca977eSAlexander Kabaev found_dir="$dir" 7671*c7ca977eSAlexander Kabaev found_so="$dir/lib$name.$shlibext" 7672*c7ca977eSAlexander Kabaev if test -f "$dir/lib$name.la"; then 7673*c7ca977eSAlexander Kabaev found_la="$dir/lib$name.la" 7674*c7ca977eSAlexander Kabaev fi 7675*c7ca977eSAlexander Kabaev else 7676*c7ca977eSAlexander Kabaev if test -f "$dir/lib$name.$libext"; then 7677*c7ca977eSAlexander Kabaev found_dir="$dir" 7678*c7ca977eSAlexander Kabaev found_a="$dir/lib$name.$libext" 7679*c7ca977eSAlexander Kabaev if test -f "$dir/lib$name.la"; then 7680*c7ca977eSAlexander Kabaev found_la="$dir/lib$name.la" 7681*c7ca977eSAlexander Kabaev fi 7682*c7ca977eSAlexander Kabaev fi 7683*c7ca977eSAlexander Kabaev fi 7684*c7ca977eSAlexander Kabaev ;; 7685*c7ca977eSAlexander Kabaev esac 7686*c7ca977eSAlexander Kabaev if test "X$found_dir" != "X"; then 7687*c7ca977eSAlexander Kabaev break 7688*c7ca977eSAlexander Kabaev fi 7689*c7ca977eSAlexander Kabaev done 7690*c7ca977eSAlexander Kabaev fi 7691*c7ca977eSAlexander Kabaev if test "X$found_dir" != "X"; then 7692*c7ca977eSAlexander Kabaev LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7693*c7ca977eSAlexander Kabaev if test "X$found_so" != "X"; then 7694*c7ca977eSAlexander Kabaev if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 7695*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7696*c7ca977eSAlexander Kabaev else 7697*c7ca977eSAlexander Kabaev haveit= 7698*c7ca977eSAlexander Kabaev for x in $ltrpathdirs; do 7699*c7ca977eSAlexander Kabaev if test "X$x" = "X$found_dir"; then 7700*c7ca977eSAlexander Kabaev haveit=yes 7701*c7ca977eSAlexander Kabaev break 7702*c7ca977eSAlexander Kabaev fi 7703*c7ca977eSAlexander Kabaev done 7704*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7705*c7ca977eSAlexander Kabaev ltrpathdirs="$ltrpathdirs $found_dir" 7706*c7ca977eSAlexander Kabaev fi 7707*c7ca977eSAlexander Kabaev if test "$hardcode_direct" = yes; then 7708*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7709*c7ca977eSAlexander Kabaev else 7710*c7ca977eSAlexander Kabaev if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7711*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7712*c7ca977eSAlexander Kabaev haveit= 7713*c7ca977eSAlexander Kabaev for x in $rpathdirs; do 7714*c7ca977eSAlexander Kabaev if test "X$x" = "X$found_dir"; then 7715*c7ca977eSAlexander Kabaev haveit=yes 7716*c7ca977eSAlexander Kabaev break 7717*c7ca977eSAlexander Kabaev fi 7718*c7ca977eSAlexander Kabaev done 7719*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7720*c7ca977eSAlexander Kabaev rpathdirs="$rpathdirs $found_dir" 7721*c7ca977eSAlexander Kabaev fi 7722*c7ca977eSAlexander Kabaev else 7723*c7ca977eSAlexander Kabaev haveit= 7724*c7ca977eSAlexander Kabaev for x in $LDFLAGS $LIBICONV; do 7725*c7ca977eSAlexander Kabaev 7726*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7727*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7728*c7ca977eSAlexander Kabaev acl_save_exec_prefix="$exec_prefix" 7729*c7ca977eSAlexander Kabaev exec_prefix="$acl_final_exec_prefix" 7730*c7ca977eSAlexander Kabaev eval x=\"$x\" 7731*c7ca977eSAlexander Kabaev exec_prefix="$acl_save_exec_prefix" 7732*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7733*c7ca977eSAlexander Kabaev 7734*c7ca977eSAlexander Kabaev if test "X$x" = "X-L$found_dir"; then 7735*c7ca977eSAlexander Kabaev haveit=yes 7736*c7ca977eSAlexander Kabaev break 7737*c7ca977eSAlexander Kabaev fi 7738*c7ca977eSAlexander Kabaev done 7739*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7740*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7741*c7ca977eSAlexander Kabaev fi 7742*c7ca977eSAlexander Kabaev if test "$hardcode_minus_L" != no; then 7743*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7744*c7ca977eSAlexander Kabaev else 7745*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7746*c7ca977eSAlexander Kabaev fi 7747*c7ca977eSAlexander Kabaev fi 7748*c7ca977eSAlexander Kabaev fi 7749*c7ca977eSAlexander Kabaev fi 7750*c7ca977eSAlexander Kabaev else 7751*c7ca977eSAlexander Kabaev if test "X$found_a" != "X"; then 7752*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7753*c7ca977eSAlexander Kabaev else 7754*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7755*c7ca977eSAlexander Kabaev fi 7756*c7ca977eSAlexander Kabaev fi 7757*c7ca977eSAlexander Kabaev additional_includedir= 7758*c7ca977eSAlexander Kabaev case "$found_dir" in 7759*c7ca977eSAlexander Kabaev */lib | */lib/) 7760*c7ca977eSAlexander Kabaev basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7761*c7ca977eSAlexander Kabaev additional_includedir="$basedir/include" 7762*c7ca977eSAlexander Kabaev ;; 7763*c7ca977eSAlexander Kabaev esac 7764*c7ca977eSAlexander Kabaev if test "X$additional_includedir" != "X"; then 7765*c7ca977eSAlexander Kabaev if test "X$additional_includedir" != "X/usr/include"; then 7766*c7ca977eSAlexander Kabaev haveit= 7767*c7ca977eSAlexander Kabaev if test "X$additional_includedir" = "X/usr/local/include"; then 7768*c7ca977eSAlexander Kabaev if test -n "$GCC"; then 7769*c7ca977eSAlexander Kabaev case $host_os in 7770*c7ca977eSAlexander Kabaev linux*) haveit=yes;; 7771*c7ca977eSAlexander Kabaev esac 7772*c7ca977eSAlexander Kabaev fi 7773*c7ca977eSAlexander Kabaev fi 7774*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7775*c7ca977eSAlexander Kabaev for x in $CPPFLAGS $INCICONV; do 7776*c7ca977eSAlexander Kabaev 7777*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7778*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7779*c7ca977eSAlexander Kabaev acl_save_exec_prefix="$exec_prefix" 7780*c7ca977eSAlexander Kabaev exec_prefix="$acl_final_exec_prefix" 7781*c7ca977eSAlexander Kabaev eval x=\"$x\" 7782*c7ca977eSAlexander Kabaev exec_prefix="$acl_save_exec_prefix" 7783*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7784*c7ca977eSAlexander Kabaev 7785*c7ca977eSAlexander Kabaev if test "X$x" = "X-I$additional_includedir"; then 7786*c7ca977eSAlexander Kabaev haveit=yes 7787*c7ca977eSAlexander Kabaev break 7788*c7ca977eSAlexander Kabaev fi 7789*c7ca977eSAlexander Kabaev done 7790*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7791*c7ca977eSAlexander Kabaev if test -d "$additional_includedir"; then 7792*c7ca977eSAlexander Kabaev INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 7793*c7ca977eSAlexander Kabaev fi 7794*c7ca977eSAlexander Kabaev fi 7795*c7ca977eSAlexander Kabaev fi 7796*c7ca977eSAlexander Kabaev fi 7797*c7ca977eSAlexander Kabaev fi 7798*c7ca977eSAlexander Kabaev if test -n "$found_la"; then 7799*c7ca977eSAlexander Kabaev save_libdir="$libdir" 7800*c7ca977eSAlexander Kabaev case "$found_la" in 7801*c7ca977eSAlexander Kabaev */* | *\\*) . "$found_la" ;; 7802*c7ca977eSAlexander Kabaev *) . "./$found_la" ;; 7803*c7ca977eSAlexander Kabaev esac 7804*c7ca977eSAlexander Kabaev libdir="$save_libdir" 7805*c7ca977eSAlexander Kabaev for dep in $dependency_libs; do 7806*c7ca977eSAlexander Kabaev case "$dep" in 7807*c7ca977eSAlexander Kabaev -L*) 7808*c7ca977eSAlexander Kabaev additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7809*c7ca977eSAlexander Kabaev if test "X$additional_libdir" != "X/usr/lib"; then 7810*c7ca977eSAlexander Kabaev haveit= 7811*c7ca977eSAlexander Kabaev if test "X$additional_libdir" = "X/usr/local/lib"; then 7812*c7ca977eSAlexander Kabaev if test -n "$GCC"; then 7813*c7ca977eSAlexander Kabaev case $host_os in 7814*c7ca977eSAlexander Kabaev linux*) haveit=yes;; 7815*c7ca977eSAlexander Kabaev esac 7816*c7ca977eSAlexander Kabaev fi 7817*c7ca977eSAlexander Kabaev fi 7818*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7819*c7ca977eSAlexander Kabaev haveit= 7820*c7ca977eSAlexander Kabaev for x in $LDFLAGS $LIBICONV; do 7821*c7ca977eSAlexander Kabaev 7822*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7823*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7824*c7ca977eSAlexander Kabaev acl_save_exec_prefix="$exec_prefix" 7825*c7ca977eSAlexander Kabaev exec_prefix="$acl_final_exec_prefix" 7826*c7ca977eSAlexander Kabaev eval x=\"$x\" 7827*c7ca977eSAlexander Kabaev exec_prefix="$acl_save_exec_prefix" 7828*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7829*c7ca977eSAlexander Kabaev 7830*c7ca977eSAlexander Kabaev if test "X$x" = "X-L$additional_libdir"; then 7831*c7ca977eSAlexander Kabaev haveit=yes 7832*c7ca977eSAlexander Kabaev break 7833*c7ca977eSAlexander Kabaev fi 7834*c7ca977eSAlexander Kabaev done 7835*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7836*c7ca977eSAlexander Kabaev if test -d "$additional_libdir"; then 7837*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 7838*c7ca977eSAlexander Kabaev fi 7839*c7ca977eSAlexander Kabaev fi 7840*c7ca977eSAlexander Kabaev haveit= 7841*c7ca977eSAlexander Kabaev for x in $LDFLAGS $LTLIBICONV; do 7842*c7ca977eSAlexander Kabaev 7843*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7844*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7845*c7ca977eSAlexander Kabaev acl_save_exec_prefix="$exec_prefix" 7846*c7ca977eSAlexander Kabaev exec_prefix="$acl_final_exec_prefix" 7847*c7ca977eSAlexander Kabaev eval x=\"$x\" 7848*c7ca977eSAlexander Kabaev exec_prefix="$acl_save_exec_prefix" 7849*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7850*c7ca977eSAlexander Kabaev 7851*c7ca977eSAlexander Kabaev if test "X$x" = "X-L$additional_libdir"; then 7852*c7ca977eSAlexander Kabaev haveit=yes 7853*c7ca977eSAlexander Kabaev break 7854*c7ca977eSAlexander Kabaev fi 7855*c7ca977eSAlexander Kabaev done 7856*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7857*c7ca977eSAlexander Kabaev if test -d "$additional_libdir"; then 7858*c7ca977eSAlexander Kabaev LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 7859*c7ca977eSAlexander Kabaev fi 7860*c7ca977eSAlexander Kabaev fi 7861*c7ca977eSAlexander Kabaev fi 7862*c7ca977eSAlexander Kabaev fi 7863*c7ca977eSAlexander Kabaev ;; 7864*c7ca977eSAlexander Kabaev -R*) 7865*c7ca977eSAlexander Kabaev dir=`echo "X$dep" | sed -e 's/^X-R//'` 7866*c7ca977eSAlexander Kabaev if test "$enable_rpath" != no; then 7867*c7ca977eSAlexander Kabaev haveit= 7868*c7ca977eSAlexander Kabaev for x in $rpathdirs; do 7869*c7ca977eSAlexander Kabaev if test "X$x" = "X$dir"; then 7870*c7ca977eSAlexander Kabaev haveit=yes 7871*c7ca977eSAlexander Kabaev break 7872*c7ca977eSAlexander Kabaev fi 7873*c7ca977eSAlexander Kabaev done 7874*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7875*c7ca977eSAlexander Kabaev rpathdirs="$rpathdirs $dir" 7876*c7ca977eSAlexander Kabaev fi 7877*c7ca977eSAlexander Kabaev haveit= 7878*c7ca977eSAlexander Kabaev for x in $ltrpathdirs; do 7879*c7ca977eSAlexander Kabaev if test "X$x" = "X$dir"; then 7880*c7ca977eSAlexander Kabaev haveit=yes 7881*c7ca977eSAlexander Kabaev break 7882*c7ca977eSAlexander Kabaev fi 7883*c7ca977eSAlexander Kabaev done 7884*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7885*c7ca977eSAlexander Kabaev ltrpathdirs="$ltrpathdirs $dir" 7886*c7ca977eSAlexander Kabaev fi 7887*c7ca977eSAlexander Kabaev fi 7888*c7ca977eSAlexander Kabaev ;; 7889*c7ca977eSAlexander Kabaev -l*) 7890*c7ca977eSAlexander Kabaev names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7891*c7ca977eSAlexander Kabaev ;; 7892*c7ca977eSAlexander Kabaev *.la) 7893*c7ca977eSAlexander Kabaev names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7894*c7ca977eSAlexander Kabaev ;; 7895*c7ca977eSAlexander Kabaev *) 7896*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 7897*c7ca977eSAlexander Kabaev LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 7898*c7ca977eSAlexander Kabaev ;; 7899*c7ca977eSAlexander Kabaev esac 7900*c7ca977eSAlexander Kabaev done 7901*c7ca977eSAlexander Kabaev fi 7902*c7ca977eSAlexander Kabaev else 7903*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7904*c7ca977eSAlexander Kabaev LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 7905*c7ca977eSAlexander Kabaev fi 7906*c7ca977eSAlexander Kabaev fi 7907*c7ca977eSAlexander Kabaev fi 7908*c7ca977eSAlexander Kabaev done 7909*c7ca977eSAlexander Kabaev done 7910*c7ca977eSAlexander Kabaev if test "X$rpathdirs" != "X"; then 7911*c7ca977eSAlexander Kabaev if test -n "$hardcode_libdir_separator"; then 7912*c7ca977eSAlexander Kabaev alldirs= 7913*c7ca977eSAlexander Kabaev for found_dir in $rpathdirs; do 7914*c7ca977eSAlexander Kabaev alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7915*c7ca977eSAlexander Kabaev done 7916*c7ca977eSAlexander Kabaev acl_save_libdir="$libdir" 7917*c7ca977eSAlexander Kabaev libdir="$alldirs" 7918*c7ca977eSAlexander Kabaev eval flag=\"$hardcode_libdir_flag_spec\" 7919*c7ca977eSAlexander Kabaev libdir="$acl_save_libdir" 7920*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7921*c7ca977eSAlexander Kabaev else 7922*c7ca977eSAlexander Kabaev for found_dir in $rpathdirs; do 7923*c7ca977eSAlexander Kabaev acl_save_libdir="$libdir" 7924*c7ca977eSAlexander Kabaev libdir="$found_dir" 7925*c7ca977eSAlexander Kabaev eval flag=\"$hardcode_libdir_flag_spec\" 7926*c7ca977eSAlexander Kabaev libdir="$acl_save_libdir" 7927*c7ca977eSAlexander Kabaev LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7928*c7ca977eSAlexander Kabaev done 7929*c7ca977eSAlexander Kabaev fi 7930*c7ca977eSAlexander Kabaev fi 7931*c7ca977eSAlexander Kabaev if test "X$ltrpathdirs" != "X"; then 7932*c7ca977eSAlexander Kabaev for found_dir in $ltrpathdirs; do 7933*c7ca977eSAlexander Kabaev LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 7934*c7ca977eSAlexander Kabaev done 7935*c7ca977eSAlexander Kabaev fi 7936*c7ca977eSAlexander Kabaev 7937*c7ca977eSAlexander Kabaev 7938*c7ca977eSAlexander Kabaev 7939*c7ca977eSAlexander Kabaev 7940*c7ca977eSAlexander Kabaev 7941*c7ca977eSAlexander Kabaev 7942*c7ca977eSAlexander Kabaev 7943*c7ca977eSAlexander Kabaev am_save_CPPFLAGS="$CPPFLAGS" 7944*c7ca977eSAlexander Kabaev 7945*c7ca977eSAlexander Kabaev for element in $INCICONV; do 7946*c7ca977eSAlexander Kabaev haveit= 7947*c7ca977eSAlexander Kabaev for x in $CPPFLAGS; do 7948*c7ca977eSAlexander Kabaev 7949*c7ca977eSAlexander Kabaev acl_save_prefix="$prefix" 7950*c7ca977eSAlexander Kabaev prefix="$acl_final_prefix" 7951*c7ca977eSAlexander Kabaev acl_save_exec_prefix="$exec_prefix" 7952*c7ca977eSAlexander Kabaev exec_prefix="$acl_final_exec_prefix" 7953*c7ca977eSAlexander Kabaev eval x=\"$x\" 7954*c7ca977eSAlexander Kabaev exec_prefix="$acl_save_exec_prefix" 7955*c7ca977eSAlexander Kabaev prefix="$acl_save_prefix" 7956*c7ca977eSAlexander Kabaev 7957*c7ca977eSAlexander Kabaev if test "X$x" = "X$element"; then 7958*c7ca977eSAlexander Kabaev haveit=yes 7959*c7ca977eSAlexander Kabaev break 7960*c7ca977eSAlexander Kabaev fi 7961*c7ca977eSAlexander Kabaev done 7962*c7ca977eSAlexander Kabaev if test -z "$haveit"; then 7963*c7ca977eSAlexander Kabaev CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7964*c7ca977eSAlexander Kabaev fi 7965*c7ca977eSAlexander Kabaev done 7966*c7ca977eSAlexander Kabaev 7967*c7ca977eSAlexander Kabaev 7968*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for iconv" >&5 7969*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for iconv... $ECHO_C" >&6 7970*c7ca977eSAlexander Kabaevif test "${am_cv_func_iconv+set}" = set; then 7971*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 7972*c7ca977eSAlexander Kabaevelse 7973*c7ca977eSAlexander Kabaev 7974*c7ca977eSAlexander Kabaev am_cv_func_iconv="no, consider installing GNU libiconv" 7975*c7ca977eSAlexander Kabaev am_cv_lib_iconv=no 7976*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 7977*c7ca977eSAlexander Kabaev/* confdefs.h. */ 7978*c7ca977eSAlexander Kabaev_ACEOF 7979*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 7980*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 7981*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 7982*c7ca977eSAlexander Kabaev#include <stdlib.h> 7983*c7ca977eSAlexander Kabaev#include <iconv.h> 7984*c7ca977eSAlexander Kabaevint 7985*c7ca977eSAlexander Kabaevmain () 7986*c7ca977eSAlexander Kabaev{ 7987*c7ca977eSAlexander Kabaeviconv_t cd = iconv_open("",""); 7988*c7ca977eSAlexander Kabaev iconv(cd,NULL,NULL,NULL,NULL); 7989*c7ca977eSAlexander Kabaev iconv_close(cd); 7990*c7ca977eSAlexander Kabaev ; 7991*c7ca977eSAlexander Kabaev return 0; 7992*c7ca977eSAlexander Kabaev} 7993*c7ca977eSAlexander Kabaev_ACEOF 7994*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext conftest$ac_exeext 7995*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7996*c7ca977eSAlexander Kabaev (eval $ac_link) 2>conftest.er1 7997*c7ca977eSAlexander Kabaev ac_status=$? 7998*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 7999*c7ca977eSAlexander Kabaev rm -f conftest.er1 8000*c7ca977eSAlexander Kabaev cat conftest.err >&5 8001*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8002*c7ca977eSAlexander Kabaev (exit $ac_status); } && 8003*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 8004*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 8005*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8006*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 8007*c7ca977eSAlexander Kabaev ac_status=$? 8008*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8009*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 8010*c7ca977eSAlexander Kabaev { ac_try='test -s conftest$ac_exeext' 8011*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8012*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 8013*c7ca977eSAlexander Kabaev ac_status=$? 8014*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8015*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 8016*c7ca977eSAlexander Kabaev am_cv_func_iconv=yes 8017*c7ca977eSAlexander Kabaevelse 8018*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 8019*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 8020*c7ca977eSAlexander Kabaev 8021*c7ca977eSAlexander Kabaevfi 8022*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext \ 8023*c7ca977eSAlexander Kabaev conftest$ac_exeext conftest.$ac_ext 8024*c7ca977eSAlexander Kabaev if test "$am_cv_func_iconv" != yes; then 8025*c7ca977eSAlexander Kabaev am_save_LIBS="$LIBS" 8026*c7ca977eSAlexander Kabaev LIBS="$LIBS $LIBICONV" 8027*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 8028*c7ca977eSAlexander Kabaev/* confdefs.h. */ 8029*c7ca977eSAlexander Kabaev_ACEOF 8030*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 8031*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 8032*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 8033*c7ca977eSAlexander Kabaev#include <stdlib.h> 8034*c7ca977eSAlexander Kabaev#include <iconv.h> 8035*c7ca977eSAlexander Kabaevint 8036*c7ca977eSAlexander Kabaevmain () 8037*c7ca977eSAlexander Kabaev{ 8038*c7ca977eSAlexander Kabaeviconv_t cd = iconv_open("",""); 8039*c7ca977eSAlexander Kabaev iconv(cd,NULL,NULL,NULL,NULL); 8040*c7ca977eSAlexander Kabaev iconv_close(cd); 8041*c7ca977eSAlexander Kabaev ; 8042*c7ca977eSAlexander Kabaev return 0; 8043*c7ca977eSAlexander Kabaev} 8044*c7ca977eSAlexander Kabaev_ACEOF 8045*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext conftest$ac_exeext 8046*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8047*c7ca977eSAlexander Kabaev (eval $ac_link) 2>conftest.er1 8048*c7ca977eSAlexander Kabaev ac_status=$? 8049*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 8050*c7ca977eSAlexander Kabaev rm -f conftest.er1 8051*c7ca977eSAlexander Kabaev cat conftest.err >&5 8052*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8053*c7ca977eSAlexander Kabaev (exit $ac_status); } && 8054*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 8055*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 8056*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8057*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 8058*c7ca977eSAlexander Kabaev ac_status=$? 8059*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8060*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 8061*c7ca977eSAlexander Kabaev { ac_try='test -s conftest$ac_exeext' 8062*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8063*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 8064*c7ca977eSAlexander Kabaev ac_status=$? 8065*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8066*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 8067*c7ca977eSAlexander Kabaev am_cv_lib_iconv=yes 8068*c7ca977eSAlexander Kabaev am_cv_func_iconv=yes 8069*c7ca977eSAlexander Kabaevelse 8070*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 8071*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 8072*c7ca977eSAlexander Kabaev 8073*c7ca977eSAlexander Kabaevfi 8074*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext \ 8075*c7ca977eSAlexander Kabaev conftest$ac_exeext conftest.$ac_ext 8076*c7ca977eSAlexander Kabaev LIBS="$am_save_LIBS" 8077*c7ca977eSAlexander Kabaev fi 8078*c7ca977eSAlexander Kabaev 8079*c7ca977eSAlexander Kabaevfi 8080*c7ca977eSAlexander Kabaevecho "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 8081*c7ca977eSAlexander Kabaevecho "${ECHO_T}$am_cv_func_iconv" >&6 8082*c7ca977eSAlexander Kabaev if test "$am_cv_func_iconv" = yes; then 8083*c7ca977eSAlexander Kabaev 8084*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 8085*c7ca977eSAlexander Kabaev#define HAVE_ICONV 1 8086*c7ca977eSAlexander Kabaev_ACEOF 8087*c7ca977eSAlexander Kabaev 8088*c7ca977eSAlexander Kabaev fi 8089*c7ca977eSAlexander Kabaev if test "$am_cv_lib_iconv" = yes; then 8090*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking how to link with libiconv" >&5 8091*c7ca977eSAlexander Kabaevecho $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 8092*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: $LIBICONV" >&5 8093*c7ca977eSAlexander Kabaevecho "${ECHO_T}$LIBICONV" >&6 8094*c7ca977eSAlexander Kabaev else 8095*c7ca977eSAlexander Kabaev CPPFLAGS="$am_save_CPPFLAGS" 8096*c7ca977eSAlexander Kabaev LIBICONV= 8097*c7ca977eSAlexander Kabaev LTLIBICONV= 8098*c7ca977eSAlexander Kabaev fi 8099*c7ca977eSAlexander Kabaev 8100*c7ca977eSAlexander Kabaev 8101*c7ca977eSAlexander Kabaev 8102*c7ca977eSAlexander Kabaev if test "$am_cv_func_iconv" = yes; then 8103*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: checking for iconv declaration" >&5 8104*c7ca977eSAlexander Kabaevecho $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 8105*c7ca977eSAlexander Kabaev if test "${am_cv_proto_iconv+set}" = set; then 8106*c7ca977eSAlexander Kabaev echo $ECHO_N "(cached) $ECHO_C" >&6 8107*c7ca977eSAlexander Kabaevelse 8108*c7ca977eSAlexander Kabaev 8109*c7ca977eSAlexander Kabaev cat >conftest.$ac_ext <<_ACEOF 8110*c7ca977eSAlexander Kabaev/* confdefs.h. */ 8111*c7ca977eSAlexander Kabaev_ACEOF 8112*c7ca977eSAlexander Kabaevcat confdefs.h >>conftest.$ac_ext 8113*c7ca977eSAlexander Kabaevcat >>conftest.$ac_ext <<_ACEOF 8114*c7ca977eSAlexander Kabaev/* end confdefs.h. */ 8115*c7ca977eSAlexander Kabaev 8116*c7ca977eSAlexander Kabaev#include <stdlib.h> 8117*c7ca977eSAlexander Kabaev#include <iconv.h> 8118*c7ca977eSAlexander Kabaevextern 8119*c7ca977eSAlexander Kabaev#ifdef __cplusplus 8120*c7ca977eSAlexander Kabaev"C" 8121*c7ca977eSAlexander Kabaev#endif 8122*c7ca977eSAlexander Kabaev#if defined(__STDC__) || defined(__cplusplus) 8123*c7ca977eSAlexander Kabaevsize_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 8124*c7ca977eSAlexander Kabaev#else 8125*c7ca977eSAlexander Kabaevsize_t iconv(); 8126*c7ca977eSAlexander Kabaev#endif 8127*c7ca977eSAlexander Kabaev 8128*c7ca977eSAlexander Kabaevint 8129*c7ca977eSAlexander Kabaevmain () 8130*c7ca977eSAlexander Kabaev{ 8131*c7ca977eSAlexander Kabaev 8132*c7ca977eSAlexander Kabaev ; 8133*c7ca977eSAlexander Kabaev return 0; 8134*c7ca977eSAlexander Kabaev} 8135*c7ca977eSAlexander Kabaev_ACEOF 8136*c7ca977eSAlexander Kabaevrm -f conftest.$ac_objext 8137*c7ca977eSAlexander Kabaevif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8138*c7ca977eSAlexander Kabaev (eval $ac_compile) 2>conftest.er1 8139*c7ca977eSAlexander Kabaev ac_status=$? 8140*c7ca977eSAlexander Kabaev grep -v '^ *+' conftest.er1 >conftest.err 8141*c7ca977eSAlexander Kabaev rm -f conftest.er1 8142*c7ca977eSAlexander Kabaev cat conftest.err >&5 8143*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8144*c7ca977eSAlexander Kabaev (exit $ac_status); } && 8145*c7ca977eSAlexander Kabaev { ac_try='test -z "$ac_c_werror_flag" 8146*c7ca977eSAlexander Kabaev || test ! -s conftest.err' 8147*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8148*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 8149*c7ca977eSAlexander Kabaev ac_status=$? 8150*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8151*c7ca977eSAlexander Kabaev (exit $ac_status); }; } && 8152*c7ca977eSAlexander Kabaev { ac_try='test -s conftest.$ac_objext' 8153*c7ca977eSAlexander Kabaev { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8154*c7ca977eSAlexander Kabaev (eval $ac_try) 2>&5 8155*c7ca977eSAlexander Kabaev ac_status=$? 8156*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: \$? = $ac_status" >&5 8157*c7ca977eSAlexander Kabaev (exit $ac_status); }; }; then 8158*c7ca977eSAlexander Kabaev am_cv_proto_iconv_arg1="" 8159*c7ca977eSAlexander Kabaevelse 8160*c7ca977eSAlexander Kabaev echo "$as_me: failed program was:" >&5 8161*c7ca977eSAlexander Kabaevsed 's/^/| /' conftest.$ac_ext >&5 8162*c7ca977eSAlexander Kabaev 8163*c7ca977eSAlexander Kabaevam_cv_proto_iconv_arg1="const" 8164*c7ca977eSAlexander Kabaevfi 8165*c7ca977eSAlexander Kabaevrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8166*c7ca977eSAlexander Kabaev am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 8167*c7ca977eSAlexander Kabaevfi 8168*c7ca977eSAlexander Kabaev 8169*c7ca977eSAlexander Kabaev am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 8170*c7ca977eSAlexander Kabaev echo "$as_me:$LINENO: result: ${ac_t:- 8171*c7ca977eSAlexander Kabaev }$am_cv_proto_iconv" >&5 8172*c7ca977eSAlexander Kabaevecho "${ECHO_T}${ac_t:- 8173*c7ca977eSAlexander Kabaev }$am_cv_proto_iconv" >&6 8174*c7ca977eSAlexander Kabaev 8175*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 8176*c7ca977eSAlexander Kabaev#define ICONV_CONST $am_cv_proto_iconv_arg1 8177*c7ca977eSAlexander Kabaev_ACEOF 8178*c7ca977eSAlexander Kabaev 8179*c7ca977eSAlexander Kabaev fi 8180*c7ca977eSAlexander Kabaev 8181*c7ca977eSAlexander Kabaev 8182*c7ca977eSAlexander Kabaev# More defines and substitutions. 8183*c7ca977eSAlexander KabaevPACKAGE="$PACKAGE_TARNAME" 8184*c7ca977eSAlexander Kabaev 8185*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 8186*c7ca977eSAlexander Kabaev#define PACKAGE "$PACKAGE" 8187*c7ca977eSAlexander Kabaev_ACEOF 8188*c7ca977eSAlexander Kabaev 8189*c7ca977eSAlexander Kabaev 8190*c7ca977eSAlexander Kabaev 8191*c7ca977eSAlexander Kabaevif test "x$enable_nls" != xno; then 8192*c7ca977eSAlexander Kabaev USED_CATALOGS='$(CATALOGS)' 8193*c7ca977eSAlexander Kabaevelse 8194*c7ca977eSAlexander Kabaev USED_CATALOGS= 8195*c7ca977eSAlexander Kabaevfi 8196*c7ca977eSAlexander Kabaev 8197*c7ca977eSAlexander Kabaev 8198*c7ca977eSAlexander Kabaev# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 8199*c7ca977eSAlexander Kabaevif test "${enable_maintainer_mode+set}" = set; then 8200*c7ca977eSAlexander Kabaev enableval="$enable_maintainer_mode" 8201*c7ca977eSAlexander Kabaev 8202*c7ca977eSAlexander Kabaevelse 8203*c7ca977eSAlexander Kabaev enable_maintainer_mode=no 8204*c7ca977eSAlexander Kabaevfi; 8205*c7ca977eSAlexander Kabaev 8206*c7ca977eSAlexander Kabaevif test "x$enable_maintainer_mode" = xno; then 8207*c7ca977eSAlexander Kabaev MAINT='#' 8208*c7ca977eSAlexander Kabaevelse 8209*c7ca977eSAlexander Kabaev MAINT= 8210*c7ca977eSAlexander Kabaevfi 8211*c7ca977eSAlexander Kabaev 8212*c7ca977eSAlexander Kabaev 8213*c7ca977eSAlexander Kabaev# Check whether --enable-checking or --disable-checking was given. 8214*c7ca977eSAlexander Kabaevif test "${enable_checking+set}" = set; then 8215*c7ca977eSAlexander Kabaev enableval="$enable_checking" 8216*c7ca977eSAlexander Kabaev 8217*c7ca977eSAlexander Kabaevelse 8218*c7ca977eSAlexander Kabaev enable_checking=no 8219*c7ca977eSAlexander Kabaevfi; 8220*c7ca977eSAlexander Kabaev 8221*c7ca977eSAlexander Kabaevif test $enable_checking != no ; then 8222*c7ca977eSAlexander Kabaev 8223*c7ca977eSAlexander Kabaevcat >>confdefs.h <<\_ACEOF 8224*c7ca977eSAlexander Kabaev#define ENABLE_CHECKING 1 8225*c7ca977eSAlexander Kabaev_ACEOF 8226*c7ca977eSAlexander Kabaev 8227*c7ca977eSAlexander Kabaevfi 8228*c7ca977eSAlexander Kabaev 8229*c7ca977eSAlexander Kabaev 8230*c7ca977eSAlexander Kabaevcase $target in 8231*c7ca977eSAlexander Kabaev alpha*-*-* | \ 8232*c7ca977eSAlexander Kabaev arm*-*-*eabi* | \ 8233*c7ca977eSAlexander Kabaev arm*-*-symbianelf* | \ 8234*c7ca977eSAlexander Kabaev x86_64-*-* | \ 8235*c7ca977eSAlexander Kabaev ia64-*-* | \ 8236*c7ca977eSAlexander Kabaev hppa*64*-*-* | parisc*64*-*-* | \ 8237*c7ca977eSAlexander Kabaev i[34567]86-*-darwin* | \ 8238*c7ca977eSAlexander Kabaev i[34567]86-*-solaris2.1[0-9]* | \ 8239*c7ca977eSAlexander Kabaev mips*-*-* | \ 8240*c7ca977eSAlexander Kabaev mmix-*-* | \ 8241*c7ca977eSAlexander Kabaev powerpc*-*-* | \ 8242*c7ca977eSAlexander Kabaev rs6000*-*-* | \ 8243*c7ca977eSAlexander Kabaev s390*-*-* | \ 8244*c7ca977eSAlexander Kabaev sparc64*-*-* | ultrasparc-*-freebsd* | \ 8245*c7ca977eSAlexander Kabaev sparcv9-*-solaris2* | \ 8246*c7ca977eSAlexander Kabaev sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9]* | \ 8247*c7ca977eSAlexander Kabaev sh[123456789l]*-*-*) 8248*c7ca977eSAlexander Kabaev need_64bit_hwint=yes ;; 8249*c7ca977eSAlexander Kabaev *) 8250*c7ca977eSAlexander Kabaev need_64bit_hwint=no ;; 8251*c7ca977eSAlexander Kabaevesac 8252*c7ca977eSAlexander Kabaev 8253*c7ca977eSAlexander Kabaevcase $need_64bit_hwint:$ac_cv_sizeof_long in 8254*c7ca977eSAlexander Kabaev *:8 | no:*) host_wide_int=long ;; 8255*c7ca977eSAlexander Kabaev *) host_wide_int='long long' ;; 8256*c7ca977eSAlexander Kabaevesac 8257*c7ca977eSAlexander Kabaev 8258*c7ca977eSAlexander Kabaev 8259*c7ca977eSAlexander Kabaev 8260*c7ca977eSAlexander Kabaevcat >>confdefs.h <<_ACEOF 8261*c7ca977eSAlexander Kabaev#define HOST_WIDE_INT $host_wide_int 8262*c7ca977eSAlexander Kabaev_ACEOF 8263*c7ca977eSAlexander Kabaev 8264*c7ca977eSAlexander Kabaev 8265*c7ca977eSAlexander Kabaev# Output. 8266*c7ca977eSAlexander Kabaev 8267*c7ca977eSAlexander Kabaev ac_config_headers="$ac_config_headers config.h:config.in" 8268*c7ca977eSAlexander Kabaev 8269*c7ca977eSAlexander Kabaev ac_config_files="$ac_config_files Makefile" 8270*c7ca977eSAlexander Kabaev 8271*c7ca977eSAlexander Kabaevcat >confcache <<\_ACEOF 8272*c7ca977eSAlexander Kabaev# This file is a shell script that caches the results of configure 8273*c7ca977eSAlexander Kabaev# tests run on this system so they can be shared between configure 8274*c7ca977eSAlexander Kabaev# scripts and configure runs, see configure's option --config-cache. 8275*c7ca977eSAlexander Kabaev# It is not useful on other systems. If it contains results you don't 8276*c7ca977eSAlexander Kabaev# want to keep, you may remove or edit it. 8277*c7ca977eSAlexander Kabaev# 8278*c7ca977eSAlexander Kabaev# config.status only pays attention to the cache file if you give it 8279*c7ca977eSAlexander Kabaev# the --recheck option to rerun configure. 8280*c7ca977eSAlexander Kabaev# 8281*c7ca977eSAlexander Kabaev# `ac_cv_env_foo' variables (set or unset) will be overridden when 8282*c7ca977eSAlexander Kabaev# loading this file, other *unset* `ac_cv_foo' will be assigned the 8283*c7ca977eSAlexander Kabaev# following values. 8284*c7ca977eSAlexander Kabaev 8285*c7ca977eSAlexander Kabaev_ACEOF 8286*c7ca977eSAlexander Kabaev 8287*c7ca977eSAlexander Kabaev# The following way of writing the cache mishandles newlines in values, 8288*c7ca977eSAlexander Kabaev# but we know of no workaround that is simple, portable, and efficient. 8289*c7ca977eSAlexander Kabaev# So, don't put newlines in cache variables' values. 8290*c7ca977eSAlexander Kabaev# Ultrix sh set writes to stderr and can't be redirected directly, 8291*c7ca977eSAlexander Kabaev# and sets the high bit in the cache file unless we assign to the vars. 8292*c7ca977eSAlexander Kabaev{ 8293*c7ca977eSAlexander Kabaev (set) 2>&1 | 8294*c7ca977eSAlexander Kabaev case `(ac_space=' '; set | grep ac_space) 2>&1` in 8295*c7ca977eSAlexander Kabaev *ac_space=\ *) 8296*c7ca977eSAlexander Kabaev # `set' does not quote correctly, so add quotes (double-quote 8297*c7ca977eSAlexander Kabaev # substitution turns \\\\ into \\, and sed turns \\ into \). 8298*c7ca977eSAlexander Kabaev sed -n \ 8299*c7ca977eSAlexander Kabaev "s/'/'\\\\''/g; 8300*c7ca977eSAlexander Kabaev s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8301*c7ca977eSAlexander Kabaev ;; 8302*c7ca977eSAlexander Kabaev *) 8303*c7ca977eSAlexander Kabaev # `set' quotes correctly as required by POSIX, so do not add quotes. 8304*c7ca977eSAlexander Kabaev sed -n \ 8305*c7ca977eSAlexander Kabaev "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 8306*c7ca977eSAlexander Kabaev ;; 8307*c7ca977eSAlexander Kabaev esac; 8308*c7ca977eSAlexander Kabaev} | 8309*c7ca977eSAlexander Kabaev sed ' 8310*c7ca977eSAlexander Kabaev t clear 8311*c7ca977eSAlexander Kabaev : clear 8312*c7ca977eSAlexander Kabaev s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8313*c7ca977eSAlexander Kabaev t end 8314*c7ca977eSAlexander Kabaev /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8315*c7ca977eSAlexander Kabaev : end' >>confcache 8316*c7ca977eSAlexander Kabaevif diff $cache_file confcache >/dev/null 2>&1; then :; else 8317*c7ca977eSAlexander Kabaev if test -w $cache_file; then 8318*c7ca977eSAlexander Kabaev test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8319*c7ca977eSAlexander Kabaev cat confcache >$cache_file 8320*c7ca977eSAlexander Kabaev else 8321*c7ca977eSAlexander Kabaev echo "not updating unwritable cache $cache_file" 8322*c7ca977eSAlexander Kabaev fi 8323*c7ca977eSAlexander Kabaevfi 8324*c7ca977eSAlexander Kabaevrm -f confcache 8325*c7ca977eSAlexander Kabaev 8326*c7ca977eSAlexander Kabaevtest "x$prefix" = xNONE && prefix=$ac_default_prefix 8327*c7ca977eSAlexander Kabaev# Let make expand exec_prefix. 8328*c7ca977eSAlexander Kabaevtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8329*c7ca977eSAlexander Kabaev 8330*c7ca977eSAlexander Kabaev# VPATH may cause trouble with some makes, so we remove $(srcdir), 8331*c7ca977eSAlexander Kabaev# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8332*c7ca977eSAlexander Kabaev# trailing colons and then remove the whole line if VPATH becomes empty 8333*c7ca977eSAlexander Kabaev# (actually we leave an empty line to preserve line numbers). 8334*c7ca977eSAlexander Kabaevif test "x$srcdir" = x.; then 8335*c7ca977eSAlexander Kabaev ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8336*c7ca977eSAlexander Kabaevs/:*\$(srcdir):*/:/; 8337*c7ca977eSAlexander Kabaevs/:*\${srcdir}:*/:/; 8338*c7ca977eSAlexander Kabaevs/:*@srcdir@:*/:/; 8339*c7ca977eSAlexander Kabaevs/^\([^=]*=[ ]*\):*/\1/; 8340*c7ca977eSAlexander Kabaevs/:*$//; 8341*c7ca977eSAlexander Kabaevs/^[^=]*=[ ]*$//; 8342*c7ca977eSAlexander Kabaev}' 8343*c7ca977eSAlexander Kabaevfi 8344*c7ca977eSAlexander Kabaev 8345*c7ca977eSAlexander KabaevDEFS=-DHAVE_CONFIG_H 8346*c7ca977eSAlexander Kabaev 8347*c7ca977eSAlexander Kabaevac_libobjs= 8348*c7ca977eSAlexander Kabaevac_ltlibobjs= 8349*c7ca977eSAlexander Kabaevfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8350*c7ca977eSAlexander Kabaev # 1. Remove the extension, and $U if already installed. 8351*c7ca977eSAlexander Kabaev ac_i=`echo "$ac_i" | 8352*c7ca977eSAlexander Kabaev sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8353*c7ca977eSAlexander Kabaev # 2. Add them. 8354*c7ca977eSAlexander Kabaev ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 8355*c7ca977eSAlexander Kabaev ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 8356*c7ca977eSAlexander Kabaevdone 8357*c7ca977eSAlexander KabaevLIBOBJS=$ac_libobjs 8358*c7ca977eSAlexander Kabaev 8359*c7ca977eSAlexander KabaevLTLIBOBJS=$ac_ltlibobjs 8360*c7ca977eSAlexander Kabaev 8361*c7ca977eSAlexander Kabaev 8362*c7ca977eSAlexander Kabaev 8363*c7ca977eSAlexander Kabaev: ${CONFIG_STATUS=./config.status} 8364*c7ca977eSAlexander Kabaevac_clean_files_save=$ac_clean_files 8365*c7ca977eSAlexander Kabaevac_clean_files="$ac_clean_files $CONFIG_STATUS" 8366*c7ca977eSAlexander Kabaev{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8367*c7ca977eSAlexander Kabaevecho "$as_me: creating $CONFIG_STATUS" >&6;} 8368*c7ca977eSAlexander Kabaevcat >$CONFIG_STATUS <<_ACEOF 8369*c7ca977eSAlexander Kabaev#! $SHELL 8370*c7ca977eSAlexander Kabaev# Generated by $as_me. 8371*c7ca977eSAlexander Kabaev# Run this file to recreate the current configuration. 8372*c7ca977eSAlexander Kabaev# Compiler output produced by configure, useful for debugging 8373*c7ca977eSAlexander Kabaev# configure, is in config.log if it exists. 8374*c7ca977eSAlexander Kabaev 8375*c7ca977eSAlexander Kabaevdebug=false 8376*c7ca977eSAlexander Kabaevac_cs_recheck=false 8377*c7ca977eSAlexander Kabaevac_cs_silent=false 8378*c7ca977eSAlexander KabaevSHELL=\${CONFIG_SHELL-$SHELL} 8379*c7ca977eSAlexander Kabaev_ACEOF 8380*c7ca977eSAlexander Kabaev 8381*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 8382*c7ca977eSAlexander Kabaev## --------------------- ## 8383*c7ca977eSAlexander Kabaev## M4sh Initialization. ## 8384*c7ca977eSAlexander Kabaev## --------------------- ## 8385*c7ca977eSAlexander Kabaev 8386*c7ca977eSAlexander Kabaev# Be Bourne compatible 8387*c7ca977eSAlexander Kabaevif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8388*c7ca977eSAlexander Kabaev emulate sh 8389*c7ca977eSAlexander Kabaev NULLCMD=: 8390*c7ca977eSAlexander Kabaev # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8391*c7ca977eSAlexander Kabaev # is contrary to our usage. Disable this feature. 8392*c7ca977eSAlexander Kabaev alias -g '${1+"$@"}'='"$@"' 8393*c7ca977eSAlexander Kabaevelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8394*c7ca977eSAlexander Kabaev set -o posix 8395*c7ca977eSAlexander Kabaevfi 8396*c7ca977eSAlexander KabaevDUALCASE=1; export DUALCASE # for MKS sh 8397*c7ca977eSAlexander Kabaev 8398*c7ca977eSAlexander Kabaev# Support unset when possible. 8399*c7ca977eSAlexander Kabaevif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8400*c7ca977eSAlexander Kabaev as_unset=unset 8401*c7ca977eSAlexander Kabaevelse 8402*c7ca977eSAlexander Kabaev as_unset=false 8403*c7ca977eSAlexander Kabaevfi 8404*c7ca977eSAlexander Kabaev 8405*c7ca977eSAlexander Kabaev 8406*c7ca977eSAlexander Kabaev# Work around bugs in pre-3.0 UWIN ksh. 8407*c7ca977eSAlexander Kabaev$as_unset ENV MAIL MAILPATH 8408*c7ca977eSAlexander KabaevPS1='$ ' 8409*c7ca977eSAlexander KabaevPS2='> ' 8410*c7ca977eSAlexander KabaevPS4='+ ' 8411*c7ca977eSAlexander Kabaev 8412*c7ca977eSAlexander Kabaev# NLS nuisances. 8413*c7ca977eSAlexander Kabaevfor as_var in \ 8414*c7ca977eSAlexander Kabaev LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8415*c7ca977eSAlexander Kabaev LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8416*c7ca977eSAlexander Kabaev LC_TELEPHONE LC_TIME 8417*c7ca977eSAlexander Kabaevdo 8418*c7ca977eSAlexander Kabaev if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8419*c7ca977eSAlexander Kabaev eval $as_var=C; export $as_var 8420*c7ca977eSAlexander Kabaev else 8421*c7ca977eSAlexander Kabaev $as_unset $as_var 8422*c7ca977eSAlexander Kabaev fi 8423*c7ca977eSAlexander Kabaevdone 8424*c7ca977eSAlexander Kabaev 8425*c7ca977eSAlexander Kabaev# Required to use basename. 8426*c7ca977eSAlexander Kabaevif expr a : '\(a\)' >/dev/null 2>&1; then 8427*c7ca977eSAlexander Kabaev as_expr=expr 8428*c7ca977eSAlexander Kabaevelse 8429*c7ca977eSAlexander Kabaev as_expr=false 8430*c7ca977eSAlexander Kabaevfi 8431*c7ca977eSAlexander Kabaev 8432*c7ca977eSAlexander Kabaevif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 8433*c7ca977eSAlexander Kabaev as_basename=basename 8434*c7ca977eSAlexander Kabaevelse 8435*c7ca977eSAlexander Kabaev as_basename=false 8436*c7ca977eSAlexander Kabaevfi 8437*c7ca977eSAlexander Kabaev 8438*c7ca977eSAlexander Kabaev 8439*c7ca977eSAlexander Kabaev# Name of the executable. 8440*c7ca977eSAlexander Kabaevas_me=`$as_basename "$0" || 8441*c7ca977eSAlexander Kabaev$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8442*c7ca977eSAlexander Kabaev X"$0" : 'X\(//\)$' \| \ 8443*c7ca977eSAlexander Kabaev X"$0" : 'X\(/\)$' \| \ 8444*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 8445*c7ca977eSAlexander Kabaevecho X/"$0" | 8446*c7ca977eSAlexander Kabaev sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8447*c7ca977eSAlexander Kabaev /^X\/\(\/\/\)$/{ s//\1/; q; } 8448*c7ca977eSAlexander Kabaev /^X\/\(\/\).*/{ s//\1/; q; } 8449*c7ca977eSAlexander Kabaev s/.*/./; q'` 8450*c7ca977eSAlexander Kabaev 8451*c7ca977eSAlexander Kabaev 8452*c7ca977eSAlexander Kabaev# PATH needs CR, and LINENO needs CR and PATH. 8453*c7ca977eSAlexander Kabaev# Avoid depending upon Character Ranges. 8454*c7ca977eSAlexander Kabaevas_cr_letters='abcdefghijklmnopqrstuvwxyz' 8455*c7ca977eSAlexander Kabaevas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8456*c7ca977eSAlexander Kabaevas_cr_Letters=$as_cr_letters$as_cr_LETTERS 8457*c7ca977eSAlexander Kabaevas_cr_digits='0123456789' 8458*c7ca977eSAlexander Kabaevas_cr_alnum=$as_cr_Letters$as_cr_digits 8459*c7ca977eSAlexander Kabaev 8460*c7ca977eSAlexander Kabaev# The user is always right. 8461*c7ca977eSAlexander Kabaevif test "${PATH_SEPARATOR+set}" != set; then 8462*c7ca977eSAlexander Kabaev echo "#! /bin/sh" >conf$$.sh 8463*c7ca977eSAlexander Kabaev echo "exit 0" >>conf$$.sh 8464*c7ca977eSAlexander Kabaev chmod +x conf$$.sh 8465*c7ca977eSAlexander Kabaev if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8466*c7ca977eSAlexander Kabaev PATH_SEPARATOR=';' 8467*c7ca977eSAlexander Kabaev else 8468*c7ca977eSAlexander Kabaev PATH_SEPARATOR=: 8469*c7ca977eSAlexander Kabaev fi 8470*c7ca977eSAlexander Kabaev rm -f conf$$.sh 8471*c7ca977eSAlexander Kabaevfi 8472*c7ca977eSAlexander Kabaev 8473*c7ca977eSAlexander Kabaev 8474*c7ca977eSAlexander Kabaev as_lineno_1=$LINENO 8475*c7ca977eSAlexander Kabaev as_lineno_2=$LINENO 8476*c7ca977eSAlexander Kabaev as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8477*c7ca977eSAlexander Kabaev test "x$as_lineno_1" != "x$as_lineno_2" && 8478*c7ca977eSAlexander Kabaev test "x$as_lineno_3" = "x$as_lineno_2" || { 8479*c7ca977eSAlexander Kabaev # Find who we are. Look in the path if we contain no path at all 8480*c7ca977eSAlexander Kabaev # relative or not. 8481*c7ca977eSAlexander Kabaev case $0 in 8482*c7ca977eSAlexander Kabaev *[\\/]* ) as_myself=$0 ;; 8483*c7ca977eSAlexander Kabaev *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8484*c7ca977eSAlexander Kabaevfor as_dir in $PATH 8485*c7ca977eSAlexander Kabaevdo 8486*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 8487*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 8488*c7ca977eSAlexander Kabaev test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8489*c7ca977eSAlexander Kabaevdone 8490*c7ca977eSAlexander Kabaev 8491*c7ca977eSAlexander Kabaev ;; 8492*c7ca977eSAlexander Kabaev esac 8493*c7ca977eSAlexander Kabaev # We did not find ourselves, most probably we were run as `sh COMMAND' 8494*c7ca977eSAlexander Kabaev # in which case we are not to be found in the path. 8495*c7ca977eSAlexander Kabaev if test "x$as_myself" = x; then 8496*c7ca977eSAlexander Kabaev as_myself=$0 8497*c7ca977eSAlexander Kabaev fi 8498*c7ca977eSAlexander Kabaev if test ! -f "$as_myself"; then 8499*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 8500*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 8501*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 8502*c7ca977eSAlexander Kabaev fi 8503*c7ca977eSAlexander Kabaev case $CONFIG_SHELL in 8504*c7ca977eSAlexander Kabaev '') 8505*c7ca977eSAlexander Kabaev as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8506*c7ca977eSAlexander Kabaevfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 8507*c7ca977eSAlexander Kabaevdo 8508*c7ca977eSAlexander Kabaev IFS=$as_save_IFS 8509*c7ca977eSAlexander Kabaev test -z "$as_dir" && as_dir=. 8510*c7ca977eSAlexander Kabaev for as_base in sh bash ksh sh5; do 8511*c7ca977eSAlexander Kabaev case $as_dir in 8512*c7ca977eSAlexander Kabaev /*) 8513*c7ca977eSAlexander Kabaev if ("$as_dir/$as_base" -c ' 8514*c7ca977eSAlexander Kabaev as_lineno_1=$LINENO 8515*c7ca977eSAlexander Kabaev as_lineno_2=$LINENO 8516*c7ca977eSAlexander Kabaev as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8517*c7ca977eSAlexander Kabaev test "x$as_lineno_1" != "x$as_lineno_2" && 8518*c7ca977eSAlexander Kabaev test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 8519*c7ca977eSAlexander Kabaev $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 8520*c7ca977eSAlexander Kabaev $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 8521*c7ca977eSAlexander Kabaev CONFIG_SHELL=$as_dir/$as_base 8522*c7ca977eSAlexander Kabaev export CONFIG_SHELL 8523*c7ca977eSAlexander Kabaev exec "$CONFIG_SHELL" "$0" ${1+"$@"} 8524*c7ca977eSAlexander Kabaev fi;; 8525*c7ca977eSAlexander Kabaev esac 8526*c7ca977eSAlexander Kabaev done 8527*c7ca977eSAlexander Kabaevdone 8528*c7ca977eSAlexander Kabaev;; 8529*c7ca977eSAlexander Kabaev esac 8530*c7ca977eSAlexander Kabaev 8531*c7ca977eSAlexander Kabaev # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8532*c7ca977eSAlexander Kabaev # uniformly replaced by the line number. The first 'sed' inserts a 8533*c7ca977eSAlexander Kabaev # line-number line before each line; the second 'sed' does the real 8534*c7ca977eSAlexander Kabaev # work. The second script uses 'N' to pair each line-number line 8535*c7ca977eSAlexander Kabaev # with the numbered line, and appends trailing '-' during 8536*c7ca977eSAlexander Kabaev # substitution so that $LINENO is not a special case at line end. 8537*c7ca977eSAlexander Kabaev # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8538*c7ca977eSAlexander Kabaev # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 8539*c7ca977eSAlexander Kabaev sed '=' <$as_myself | 8540*c7ca977eSAlexander Kabaev sed ' 8541*c7ca977eSAlexander Kabaev N 8542*c7ca977eSAlexander Kabaev s,$,-, 8543*c7ca977eSAlexander Kabaev : loop 8544*c7ca977eSAlexander Kabaev s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 8545*c7ca977eSAlexander Kabaev t loop 8546*c7ca977eSAlexander Kabaev s,-$,, 8547*c7ca977eSAlexander Kabaev s,^['$as_cr_digits']*\n,, 8548*c7ca977eSAlexander Kabaev ' >$as_me.lineno && 8549*c7ca977eSAlexander Kabaev chmod +x $as_me.lineno || 8550*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 8551*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 8552*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 8553*c7ca977eSAlexander Kabaev 8554*c7ca977eSAlexander Kabaev # Don't try to exec as it changes $[0], causing all sort of problems 8555*c7ca977eSAlexander Kabaev # (the dirname of $[0] is not the place where we might find the 8556*c7ca977eSAlexander Kabaev # original and so on. Autoconf is especially sensible to this). 8557*c7ca977eSAlexander Kabaev . ./$as_me.lineno 8558*c7ca977eSAlexander Kabaev # Exit status is that of the last command. 8559*c7ca977eSAlexander Kabaev exit 8560*c7ca977eSAlexander Kabaev} 8561*c7ca977eSAlexander Kabaev 8562*c7ca977eSAlexander Kabaev 8563*c7ca977eSAlexander Kabaevcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 8564*c7ca977eSAlexander Kabaev *c*,-n*) ECHO_N= ECHO_C=' 8565*c7ca977eSAlexander Kabaev' ECHO_T=' ' ;; 8566*c7ca977eSAlexander Kabaev *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 8567*c7ca977eSAlexander Kabaev *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 8568*c7ca977eSAlexander Kabaevesac 8569*c7ca977eSAlexander Kabaev 8570*c7ca977eSAlexander Kabaevif expr a : '\(a\)' >/dev/null 2>&1; then 8571*c7ca977eSAlexander Kabaev as_expr=expr 8572*c7ca977eSAlexander Kabaevelse 8573*c7ca977eSAlexander Kabaev as_expr=false 8574*c7ca977eSAlexander Kabaevfi 8575*c7ca977eSAlexander Kabaev 8576*c7ca977eSAlexander Kabaevrm -f conf$$ conf$$.exe conf$$.file 8577*c7ca977eSAlexander Kabaevecho >conf$$.file 8578*c7ca977eSAlexander Kabaevif ln -s conf$$.file conf$$ 2>/dev/null; then 8579*c7ca977eSAlexander Kabaev # We could just check for DJGPP; but this test a) works b) is more generic 8580*c7ca977eSAlexander Kabaev # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 8581*c7ca977eSAlexander Kabaev if test -f conf$$.exe; then 8582*c7ca977eSAlexander Kabaev # Don't use ln at all; we don't have any links 8583*c7ca977eSAlexander Kabaev as_ln_s='cp -p' 8584*c7ca977eSAlexander Kabaev else 8585*c7ca977eSAlexander Kabaev as_ln_s='ln -s' 8586*c7ca977eSAlexander Kabaev fi 8587*c7ca977eSAlexander Kabaevelif ln conf$$.file conf$$ 2>/dev/null; then 8588*c7ca977eSAlexander Kabaev as_ln_s=ln 8589*c7ca977eSAlexander Kabaevelse 8590*c7ca977eSAlexander Kabaev as_ln_s='cp -p' 8591*c7ca977eSAlexander Kabaevfi 8592*c7ca977eSAlexander Kabaevrm -f conf$$ conf$$.exe conf$$.file 8593*c7ca977eSAlexander Kabaev 8594*c7ca977eSAlexander Kabaevif mkdir -p . 2>/dev/null; then 8595*c7ca977eSAlexander Kabaev as_mkdir_p=: 8596*c7ca977eSAlexander Kabaevelse 8597*c7ca977eSAlexander Kabaev test -d ./-p && rmdir ./-p 8598*c7ca977eSAlexander Kabaev as_mkdir_p=false 8599*c7ca977eSAlexander Kabaevfi 8600*c7ca977eSAlexander Kabaev 8601*c7ca977eSAlexander Kabaevas_executable_p="test -f" 8602*c7ca977eSAlexander Kabaev 8603*c7ca977eSAlexander Kabaev# Sed expression to map a string onto a valid CPP name. 8604*c7ca977eSAlexander Kabaevas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8605*c7ca977eSAlexander Kabaev 8606*c7ca977eSAlexander Kabaev# Sed expression to map a string onto a valid variable name. 8607*c7ca977eSAlexander Kabaevas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8608*c7ca977eSAlexander Kabaev 8609*c7ca977eSAlexander Kabaev 8610*c7ca977eSAlexander Kabaev# IFS 8611*c7ca977eSAlexander Kabaev# We need space, tab and new line, in precisely that order. 8612*c7ca977eSAlexander Kabaevas_nl=' 8613*c7ca977eSAlexander Kabaev' 8614*c7ca977eSAlexander KabaevIFS=" $as_nl" 8615*c7ca977eSAlexander Kabaev 8616*c7ca977eSAlexander Kabaev# CDPATH. 8617*c7ca977eSAlexander Kabaev$as_unset CDPATH 8618*c7ca977eSAlexander Kabaev 8619*c7ca977eSAlexander Kabaevexec 6>&1 8620*c7ca977eSAlexander Kabaev 8621*c7ca977eSAlexander Kabaev# Open the log real soon, to keep \$[0] and so on meaningful, and to 8622*c7ca977eSAlexander Kabaev# report actual input values of CONFIG_FILES etc. instead of their 8623*c7ca977eSAlexander Kabaev# values after options handling. Logging --version etc. is OK. 8624*c7ca977eSAlexander Kabaevexec 5>>config.log 8625*c7ca977eSAlexander Kabaev{ 8626*c7ca977eSAlexander Kabaev echo 8627*c7ca977eSAlexander Kabaev sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8628*c7ca977eSAlexander Kabaev## Running $as_me. ## 8629*c7ca977eSAlexander Kabaev_ASBOX 8630*c7ca977eSAlexander Kabaev} >&5 8631*c7ca977eSAlexander Kabaevcat >&5 <<_CSEOF 8632*c7ca977eSAlexander Kabaev 8633*c7ca977eSAlexander KabaevThis file was extended by cpplib $as_me , which was 8634*c7ca977eSAlexander Kabaevgenerated by GNU Autoconf 2.59. Invocation command line was 8635*c7ca977eSAlexander Kabaev 8636*c7ca977eSAlexander Kabaev CONFIG_FILES = $CONFIG_FILES 8637*c7ca977eSAlexander Kabaev CONFIG_HEADERS = $CONFIG_HEADERS 8638*c7ca977eSAlexander Kabaev CONFIG_LINKS = $CONFIG_LINKS 8639*c7ca977eSAlexander Kabaev CONFIG_COMMANDS = $CONFIG_COMMANDS 8640*c7ca977eSAlexander Kabaev $ $0 $@ 8641*c7ca977eSAlexander Kabaev 8642*c7ca977eSAlexander Kabaev_CSEOF 8643*c7ca977eSAlexander Kabaevecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8644*c7ca977eSAlexander Kabaevecho >&5 8645*c7ca977eSAlexander Kabaev_ACEOF 8646*c7ca977eSAlexander Kabaev 8647*c7ca977eSAlexander Kabaev# Files that config.status was made for. 8648*c7ca977eSAlexander Kabaevif test -n "$ac_config_files"; then 8649*c7ca977eSAlexander Kabaev echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 8650*c7ca977eSAlexander Kabaevfi 8651*c7ca977eSAlexander Kabaev 8652*c7ca977eSAlexander Kabaevif test -n "$ac_config_headers"; then 8653*c7ca977eSAlexander Kabaev echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 8654*c7ca977eSAlexander Kabaevfi 8655*c7ca977eSAlexander Kabaev 8656*c7ca977eSAlexander Kabaevif test -n "$ac_config_links"; then 8657*c7ca977eSAlexander Kabaev echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 8658*c7ca977eSAlexander Kabaevfi 8659*c7ca977eSAlexander Kabaev 8660*c7ca977eSAlexander Kabaevif test -n "$ac_config_commands"; then 8661*c7ca977eSAlexander Kabaev echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 8662*c7ca977eSAlexander Kabaevfi 8663*c7ca977eSAlexander Kabaev 8664*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 8665*c7ca977eSAlexander Kabaev 8666*c7ca977eSAlexander Kabaevac_cs_usage="\ 8667*c7ca977eSAlexander Kabaev\`$as_me' instantiates files from templates according to the 8668*c7ca977eSAlexander Kabaevcurrent configuration. 8669*c7ca977eSAlexander Kabaev 8670*c7ca977eSAlexander KabaevUsage: $0 [OPTIONS] [FILE]... 8671*c7ca977eSAlexander Kabaev 8672*c7ca977eSAlexander Kabaev -h, --help print this help, then exit 8673*c7ca977eSAlexander Kabaev -V, --version print version number, then exit 8674*c7ca977eSAlexander Kabaev -q, --quiet do not print progress messages 8675*c7ca977eSAlexander Kabaev -d, --debug don't remove temporary files 8676*c7ca977eSAlexander Kabaev --recheck update $as_me by reconfiguring in the same conditions 8677*c7ca977eSAlexander Kabaev --file=FILE[:TEMPLATE] 8678*c7ca977eSAlexander Kabaev instantiate the configuration file FILE 8679*c7ca977eSAlexander Kabaev --header=FILE[:TEMPLATE] 8680*c7ca977eSAlexander Kabaev instantiate the configuration header FILE 8681*c7ca977eSAlexander Kabaev 8682*c7ca977eSAlexander KabaevConfiguration files: 8683*c7ca977eSAlexander Kabaev$config_files 8684*c7ca977eSAlexander Kabaev 8685*c7ca977eSAlexander KabaevConfiguration headers: 8686*c7ca977eSAlexander Kabaev$config_headers 8687*c7ca977eSAlexander Kabaev 8688*c7ca977eSAlexander KabaevConfiguration commands: 8689*c7ca977eSAlexander Kabaev$config_commands 8690*c7ca977eSAlexander Kabaev 8691*c7ca977eSAlexander KabaevReport bugs to <[email protected]>." 8692*c7ca977eSAlexander Kabaev_ACEOF 8693*c7ca977eSAlexander Kabaev 8694*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<_ACEOF 8695*c7ca977eSAlexander Kabaevac_cs_version="\\ 8696*c7ca977eSAlexander Kabaevcpplib config.status 8697*c7ca977eSAlexander Kabaevconfigured by $0, generated by GNU Autoconf 2.59, 8698*c7ca977eSAlexander Kabaev with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8699*c7ca977eSAlexander Kabaev 8700*c7ca977eSAlexander KabaevCopyright (C) 2003 Free Software Foundation, Inc. 8701*c7ca977eSAlexander KabaevThis config.status script is free software; the Free Software Foundation 8702*c7ca977eSAlexander Kabaevgives unlimited permission to copy, distribute and modify it." 8703*c7ca977eSAlexander Kabaevsrcdir=$srcdir 8704*c7ca977eSAlexander KabaevINSTALL="$INSTALL" 8705*c7ca977eSAlexander Kabaev_ACEOF 8706*c7ca977eSAlexander Kabaev 8707*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 8708*c7ca977eSAlexander Kabaev# If no file are specified by the user, then we need to provide default 8709*c7ca977eSAlexander Kabaev# value. By we need to know if files were specified by the user. 8710*c7ca977eSAlexander Kabaevac_need_defaults=: 8711*c7ca977eSAlexander Kabaevwhile test $# != 0 8712*c7ca977eSAlexander Kabaevdo 8713*c7ca977eSAlexander Kabaev case $1 in 8714*c7ca977eSAlexander Kabaev --*=*) 8715*c7ca977eSAlexander Kabaev ac_option=`expr "x$1" : 'x\([^=]*\)='` 8716*c7ca977eSAlexander Kabaev ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8717*c7ca977eSAlexander Kabaev ac_shift=: 8718*c7ca977eSAlexander Kabaev ;; 8719*c7ca977eSAlexander Kabaev -*) 8720*c7ca977eSAlexander Kabaev ac_option=$1 8721*c7ca977eSAlexander Kabaev ac_optarg=$2 8722*c7ca977eSAlexander Kabaev ac_shift=shift 8723*c7ca977eSAlexander Kabaev ;; 8724*c7ca977eSAlexander Kabaev *) # This is not an option, so the user has probably given explicit 8725*c7ca977eSAlexander Kabaev # arguments. 8726*c7ca977eSAlexander Kabaev ac_option=$1 8727*c7ca977eSAlexander Kabaev ac_need_defaults=false;; 8728*c7ca977eSAlexander Kabaev esac 8729*c7ca977eSAlexander Kabaev 8730*c7ca977eSAlexander Kabaev case $ac_option in 8731*c7ca977eSAlexander Kabaev # Handling of the options. 8732*c7ca977eSAlexander Kabaev_ACEOF 8733*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 8734*c7ca977eSAlexander Kabaev -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8735*c7ca977eSAlexander Kabaev ac_cs_recheck=: ;; 8736*c7ca977eSAlexander Kabaev --version | --vers* | -V ) 8737*c7ca977eSAlexander Kabaev echo "$ac_cs_version"; exit 0 ;; 8738*c7ca977eSAlexander Kabaev --he | --h) 8739*c7ca977eSAlexander Kabaev # Conflict between --help and --header 8740*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: ambiguous option: $1 8741*c7ca977eSAlexander KabaevTry \`$0 --help' for more information." >&5 8742*c7ca977eSAlexander Kabaevecho "$as_me: error: ambiguous option: $1 8743*c7ca977eSAlexander KabaevTry \`$0 --help' for more information." >&2;} 8744*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; };; 8745*c7ca977eSAlexander Kabaev --help | --hel | -h ) 8746*c7ca977eSAlexander Kabaev echo "$ac_cs_usage"; exit 0 ;; 8747*c7ca977eSAlexander Kabaev --debug | --d* | -d ) 8748*c7ca977eSAlexander Kabaev debug=: ;; 8749*c7ca977eSAlexander Kabaev --file | --fil | --fi | --f ) 8750*c7ca977eSAlexander Kabaev $ac_shift 8751*c7ca977eSAlexander Kabaev CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8752*c7ca977eSAlexander Kabaev ac_need_defaults=false;; 8753*c7ca977eSAlexander Kabaev --header | --heade | --head | --hea ) 8754*c7ca977eSAlexander Kabaev $ac_shift 8755*c7ca977eSAlexander Kabaev CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8756*c7ca977eSAlexander Kabaev ac_need_defaults=false;; 8757*c7ca977eSAlexander Kabaev -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8758*c7ca977eSAlexander Kabaev | -silent | --silent | --silen | --sile | --sil | --si | --s) 8759*c7ca977eSAlexander Kabaev ac_cs_silent=: ;; 8760*c7ca977eSAlexander Kabaev 8761*c7ca977eSAlexander Kabaev # This is an error. 8762*c7ca977eSAlexander Kabaev -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 8763*c7ca977eSAlexander KabaevTry \`$0 --help' for more information." >&5 8764*c7ca977eSAlexander Kabaevecho "$as_me: error: unrecognized option: $1 8765*c7ca977eSAlexander KabaevTry \`$0 --help' for more information." >&2;} 8766*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } ;; 8767*c7ca977eSAlexander Kabaev 8768*c7ca977eSAlexander Kabaev *) ac_config_targets="$ac_config_targets $1" ;; 8769*c7ca977eSAlexander Kabaev 8770*c7ca977eSAlexander Kabaev esac 8771*c7ca977eSAlexander Kabaev shift 8772*c7ca977eSAlexander Kabaevdone 8773*c7ca977eSAlexander Kabaev 8774*c7ca977eSAlexander Kabaevac_configure_extra_args= 8775*c7ca977eSAlexander Kabaev 8776*c7ca977eSAlexander Kabaevif $ac_cs_silent; then 8777*c7ca977eSAlexander Kabaev exec 6>/dev/null 8778*c7ca977eSAlexander Kabaev ac_configure_extra_args="$ac_configure_extra_args --silent" 8779*c7ca977eSAlexander Kabaevfi 8780*c7ca977eSAlexander Kabaev 8781*c7ca977eSAlexander Kabaev_ACEOF 8782*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<_ACEOF 8783*c7ca977eSAlexander Kabaevif \$ac_cs_recheck; then 8784*c7ca977eSAlexander Kabaev echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8785*c7ca977eSAlexander Kabaev exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8786*c7ca977eSAlexander Kabaevfi 8787*c7ca977eSAlexander Kabaev 8788*c7ca977eSAlexander Kabaev_ACEOF 8789*c7ca977eSAlexander Kabaev 8790*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<_ACEOF 8791*c7ca977eSAlexander Kabaev# 8792*c7ca977eSAlexander Kabaev# INIT-COMMANDS section. 8793*c7ca977eSAlexander Kabaev# 8794*c7ca977eSAlexander Kabaev 8795*c7ca977eSAlexander KabaevDEPDIR=$DEPDIR 8796*c7ca977eSAlexander Kabaev 8797*c7ca977eSAlexander Kabaev_ACEOF 8798*c7ca977eSAlexander Kabaev 8799*c7ca977eSAlexander Kabaev 8800*c7ca977eSAlexander Kabaev 8801*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 8802*c7ca977eSAlexander Kabaevfor ac_config_target in $ac_config_targets 8803*c7ca977eSAlexander Kabaevdo 8804*c7ca977eSAlexander Kabaev case "$ac_config_target" in 8805*c7ca977eSAlexander Kabaev # Handling of arguments. 8806*c7ca977eSAlexander Kabaev "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8807*c7ca977eSAlexander Kabaev "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; 8808*c7ca977eSAlexander Kabaev "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 8809*c7ca977eSAlexander Kabaev *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8810*c7ca977eSAlexander Kabaevecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 8811*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; };; 8812*c7ca977eSAlexander Kabaev esac 8813*c7ca977eSAlexander Kabaevdone 8814*c7ca977eSAlexander Kabaev 8815*c7ca977eSAlexander Kabaev# If the user did not use the arguments to specify the items to instantiate, 8816*c7ca977eSAlexander Kabaev# then the envvar interface is used. Set only those that are not. 8817*c7ca977eSAlexander Kabaev# We use the long form for the default assignment because of an extremely 8818*c7ca977eSAlexander Kabaev# bizarre bug on SunOS 4.1.3. 8819*c7ca977eSAlexander Kabaevif $ac_need_defaults; then 8820*c7ca977eSAlexander Kabaev test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8821*c7ca977eSAlexander Kabaev test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8822*c7ca977eSAlexander Kabaev test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8823*c7ca977eSAlexander Kabaevfi 8824*c7ca977eSAlexander Kabaev 8825*c7ca977eSAlexander Kabaev# Have a temporary directory for convenience. Make it in the build tree 8826*c7ca977eSAlexander Kabaev# simply because there is no reason to put it here, and in addition, 8827*c7ca977eSAlexander Kabaev# creating and moving files from /tmp can sometimes cause problems. 8828*c7ca977eSAlexander Kabaev# Create a temporary directory, and hook for its removal unless debugging. 8829*c7ca977eSAlexander Kabaev$debug || 8830*c7ca977eSAlexander Kabaev{ 8831*c7ca977eSAlexander Kabaev trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 8832*c7ca977eSAlexander Kabaev trap '{ (exit 1); exit 1; }' 1 2 13 15 8833*c7ca977eSAlexander Kabaev} 8834*c7ca977eSAlexander Kabaev 8835*c7ca977eSAlexander Kabaev# Create a (secure) tmp directory for tmp files. 8836*c7ca977eSAlexander Kabaev 8837*c7ca977eSAlexander Kabaev{ 8838*c7ca977eSAlexander Kabaev tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 8839*c7ca977eSAlexander Kabaev test -n "$tmp" && test -d "$tmp" 8840*c7ca977eSAlexander Kabaev} || 8841*c7ca977eSAlexander Kabaev{ 8842*c7ca977eSAlexander Kabaev tmp=./confstat$$-$RANDOM 8843*c7ca977eSAlexander Kabaev (umask 077 && mkdir $tmp) 8844*c7ca977eSAlexander Kabaev} || 8845*c7ca977eSAlexander Kabaev{ 8846*c7ca977eSAlexander Kabaev echo "$me: cannot create a temporary directory in ." >&2 8847*c7ca977eSAlexander Kabaev { (exit 1); exit 1; } 8848*c7ca977eSAlexander Kabaev} 8849*c7ca977eSAlexander Kabaev 8850*c7ca977eSAlexander Kabaev_ACEOF 8851*c7ca977eSAlexander Kabaev 8852*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<_ACEOF 8853*c7ca977eSAlexander Kabaev 8854*c7ca977eSAlexander Kabaev# 8855*c7ca977eSAlexander Kabaev# CONFIG_FILES section. 8856*c7ca977eSAlexander Kabaev# 8857*c7ca977eSAlexander Kabaev 8858*c7ca977eSAlexander Kabaev# No need to generate the scripts if there are no CONFIG_FILES. 8859*c7ca977eSAlexander Kabaev# This happens for instance when ./config.status config.h 8860*c7ca977eSAlexander Kabaevif test -n "\$CONFIG_FILES"; then 8861*c7ca977eSAlexander Kabaev # Protect against being on the right side of a sed subst in config.status. 8862*c7ca977eSAlexander Kabaev sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 8863*c7ca977eSAlexander Kabaev s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 8864*c7ca977eSAlexander Kabaevs,@SHELL@,$SHELL,;t t 8865*c7ca977eSAlexander Kabaevs,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 8866*c7ca977eSAlexander Kabaevs,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 8867*c7ca977eSAlexander Kabaevs,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 8868*c7ca977eSAlexander Kabaevs,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 8869*c7ca977eSAlexander Kabaevs,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 8870*c7ca977eSAlexander Kabaevs,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 8871*c7ca977eSAlexander Kabaevs,@exec_prefix@,$exec_prefix,;t t 8872*c7ca977eSAlexander Kabaevs,@prefix@,$prefix,;t t 8873*c7ca977eSAlexander Kabaevs,@program_transform_name@,$program_transform_name,;t t 8874*c7ca977eSAlexander Kabaevs,@bindir@,$bindir,;t t 8875*c7ca977eSAlexander Kabaevs,@sbindir@,$sbindir,;t t 8876*c7ca977eSAlexander Kabaevs,@libexecdir@,$libexecdir,;t t 8877*c7ca977eSAlexander Kabaevs,@datadir@,$datadir,;t t 8878*c7ca977eSAlexander Kabaevs,@sysconfdir@,$sysconfdir,;t t 8879*c7ca977eSAlexander Kabaevs,@sharedstatedir@,$sharedstatedir,;t t 8880*c7ca977eSAlexander Kabaevs,@localstatedir@,$localstatedir,;t t 8881*c7ca977eSAlexander Kabaevs,@libdir@,$libdir,;t t 8882*c7ca977eSAlexander Kabaevs,@includedir@,$includedir,;t t 8883*c7ca977eSAlexander Kabaevs,@oldincludedir@,$oldincludedir,;t t 8884*c7ca977eSAlexander Kabaevs,@infodir@,$infodir,;t t 8885*c7ca977eSAlexander Kabaevs,@mandir@,$mandir,;t t 8886*c7ca977eSAlexander Kabaevs,@build_alias@,$build_alias,;t t 8887*c7ca977eSAlexander Kabaevs,@host_alias@,$host_alias,;t t 8888*c7ca977eSAlexander Kabaevs,@target_alias@,$target_alias,;t t 8889*c7ca977eSAlexander Kabaevs,@DEFS@,$DEFS,;t t 8890*c7ca977eSAlexander Kabaevs,@ECHO_C@,$ECHO_C,;t t 8891*c7ca977eSAlexander Kabaevs,@ECHO_N@,$ECHO_N,;t t 8892*c7ca977eSAlexander Kabaevs,@ECHO_T@,$ECHO_T,;t t 8893*c7ca977eSAlexander Kabaevs,@LIBS@,$LIBS,;t t 8894*c7ca977eSAlexander Kabaevs,@build@,$build,;t t 8895*c7ca977eSAlexander Kabaevs,@build_cpu@,$build_cpu,;t t 8896*c7ca977eSAlexander Kabaevs,@build_vendor@,$build_vendor,;t t 8897*c7ca977eSAlexander Kabaevs,@build_os@,$build_os,;t t 8898*c7ca977eSAlexander Kabaevs,@host@,$host,;t t 8899*c7ca977eSAlexander Kabaevs,@host_cpu@,$host_cpu,;t t 8900*c7ca977eSAlexander Kabaevs,@host_vendor@,$host_vendor,;t t 8901*c7ca977eSAlexander Kabaevs,@host_os@,$host_os,;t t 8902*c7ca977eSAlexander Kabaevs,@target@,$target,;t t 8903*c7ca977eSAlexander Kabaevs,@target_cpu@,$target_cpu,;t t 8904*c7ca977eSAlexander Kabaevs,@target_vendor@,$target_vendor,;t t 8905*c7ca977eSAlexander Kabaevs,@target_os@,$target_os,;t t 8906*c7ca977eSAlexander Kabaevs,@SET_MAKE@,$SET_MAKE,;t t 8907*c7ca977eSAlexander Kabaevs,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 8908*c7ca977eSAlexander Kabaevs,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 8909*c7ca977eSAlexander Kabaevs,@INSTALL_DATA@,$INSTALL_DATA,;t t 8910*c7ca977eSAlexander Kabaevs,@CC@,$CC,;t t 8911*c7ca977eSAlexander Kabaevs,@CFLAGS@,$CFLAGS,;t t 8912*c7ca977eSAlexander Kabaevs,@LDFLAGS@,$LDFLAGS,;t t 8913*c7ca977eSAlexander Kabaevs,@CPPFLAGS@,$CPPFLAGS,;t t 8914*c7ca977eSAlexander Kabaevs,@ac_ct_CC@,$ac_ct_CC,;t t 8915*c7ca977eSAlexander Kabaevs,@EXEEXT@,$EXEEXT,;t t 8916*c7ca977eSAlexander Kabaevs,@OBJEXT@,$OBJEXT,;t t 8917*c7ca977eSAlexander Kabaevs,@RANLIB@,$RANLIB,;t t 8918*c7ca977eSAlexander Kabaevs,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 8919*c7ca977eSAlexander Kabaevs,@ACLOCAL@,$ACLOCAL,;t t 8920*c7ca977eSAlexander Kabaevs,@AUTOCONF@,$AUTOCONF,;t t 8921*c7ca977eSAlexander Kabaevs,@AUTOHEADER@,$AUTOHEADER,;t t 8922*c7ca977eSAlexander Kabaevs,@WARN_CFLAGS@,$WARN_CFLAGS,;t t 8923*c7ca977eSAlexander Kabaevs,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t 8924*c7ca977eSAlexander Kabaevs,@WERROR@,$WERROR,;t t 8925*c7ca977eSAlexander Kabaevs,@am__leading_dot@,$am__leading_dot,;t t 8926*c7ca977eSAlexander Kabaevs,@DEPDIR@,$DEPDIR,;t t 8927*c7ca977eSAlexander Kabaevs,@CCDEPMODE@,$CCDEPMODE,;t t 8928*c7ca977eSAlexander Kabaevs,@CPP@,$CPP,;t t 8929*c7ca977eSAlexander Kabaevs,@EGREP@,$EGREP,;t t 8930*c7ca977eSAlexander Kabaevs,@LIBOBJS@,$LIBOBJS,;t t 8931*c7ca977eSAlexander Kabaevs,@ALLOCA@,$ALLOCA,;t t 8932*c7ca977eSAlexander Kabaevs,@USE_NLS@,$USE_NLS,;t t 8933*c7ca977eSAlexander Kabaevs,@LIBINTL@,$LIBINTL,;t t 8934*c7ca977eSAlexander Kabaevs,@LIBINTL_DEP@,$LIBINTL_DEP,;t t 8935*c7ca977eSAlexander Kabaevs,@INCINTL@,$INCINTL,;t t 8936*c7ca977eSAlexander Kabaevs,@XGETTEXT@,$XGETTEXT,;t t 8937*c7ca977eSAlexander Kabaevs,@GMSGFMT@,$GMSGFMT,;t t 8938*c7ca977eSAlexander Kabaevs,@POSUB@,$POSUB,;t t 8939*c7ca977eSAlexander Kabaevs,@CATALOGS@,$CATALOGS,;t t 8940*c7ca977eSAlexander Kabaevs,@DATADIRNAME@,$DATADIRNAME,;t t 8941*c7ca977eSAlexander Kabaevs,@INSTOBJEXT@,$INSTOBJEXT,;t t 8942*c7ca977eSAlexander Kabaevs,@GENCAT@,$GENCAT,;t t 8943*c7ca977eSAlexander Kabaevs,@CATOBJEXT@,$CATOBJEXT,;t t 8944*c7ca977eSAlexander Kabaevs,@LIBICONV@,$LIBICONV,;t t 8945*c7ca977eSAlexander Kabaevs,@LTLIBICONV@,$LTLIBICONV,;t t 8946*c7ca977eSAlexander Kabaevs,@PACKAGE@,$PACKAGE,;t t 8947*c7ca977eSAlexander Kabaevs,@USED_CATALOGS@,$USED_CATALOGS,;t t 8948*c7ca977eSAlexander Kabaevs,@MAINT@,$MAINT,;t t 8949*c7ca977eSAlexander Kabaevs,@LTLIBOBJS@,$LTLIBOBJS,;t t 8950*c7ca977eSAlexander KabaevCEOF 8951*c7ca977eSAlexander Kabaev 8952*c7ca977eSAlexander Kabaev_ACEOF 8953*c7ca977eSAlexander Kabaev 8954*c7ca977eSAlexander Kabaev cat >>$CONFIG_STATUS <<\_ACEOF 8955*c7ca977eSAlexander Kabaev # Split the substitutions into bite-sized pieces for seds with 8956*c7ca977eSAlexander Kabaev # small command number limits, like on Digital OSF/1 and HP-UX. 8957*c7ca977eSAlexander Kabaev ac_max_sed_lines=48 8958*c7ca977eSAlexander Kabaev ac_sed_frag=1 # Number of current file. 8959*c7ca977eSAlexander Kabaev ac_beg=1 # First line for current file. 8960*c7ca977eSAlexander Kabaev ac_end=$ac_max_sed_lines # Line after last line for current file. 8961*c7ca977eSAlexander Kabaev ac_more_lines=: 8962*c7ca977eSAlexander Kabaev ac_sed_cmds= 8963*c7ca977eSAlexander Kabaev while $ac_more_lines; do 8964*c7ca977eSAlexander Kabaev if test $ac_beg -gt 1; then 8965*c7ca977eSAlexander Kabaev sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8966*c7ca977eSAlexander Kabaev else 8967*c7ca977eSAlexander Kabaev sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8968*c7ca977eSAlexander Kabaev fi 8969*c7ca977eSAlexander Kabaev if test ! -s $tmp/subs.frag; then 8970*c7ca977eSAlexander Kabaev ac_more_lines=false 8971*c7ca977eSAlexander Kabaev else 8972*c7ca977eSAlexander Kabaev # The purpose of the label and of the branching condition is to 8973*c7ca977eSAlexander Kabaev # speed up the sed processing (if there are no `@' at all, there 8974*c7ca977eSAlexander Kabaev # is no need to browse any of the substitutions). 8975*c7ca977eSAlexander Kabaev # These are the two extra sed commands mentioned above. 8976*c7ca977eSAlexander Kabaev (echo ':t 8977*c7ca977eSAlexander Kabaev /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 8978*c7ca977eSAlexander Kabaev if test -z "$ac_sed_cmds"; then 8979*c7ca977eSAlexander Kabaev ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 8980*c7ca977eSAlexander Kabaev else 8981*c7ca977eSAlexander Kabaev ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 8982*c7ca977eSAlexander Kabaev fi 8983*c7ca977eSAlexander Kabaev ac_sed_frag=`expr $ac_sed_frag + 1` 8984*c7ca977eSAlexander Kabaev ac_beg=$ac_end 8985*c7ca977eSAlexander Kabaev ac_end=`expr $ac_end + $ac_max_sed_lines` 8986*c7ca977eSAlexander Kabaev fi 8987*c7ca977eSAlexander Kabaev done 8988*c7ca977eSAlexander Kabaev if test -z "$ac_sed_cmds"; then 8989*c7ca977eSAlexander Kabaev ac_sed_cmds=cat 8990*c7ca977eSAlexander Kabaev fi 8991*c7ca977eSAlexander Kabaevfi # test -n "$CONFIG_FILES" 8992*c7ca977eSAlexander Kabaev 8993*c7ca977eSAlexander Kabaev_ACEOF 8994*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 8995*c7ca977eSAlexander Kabaevfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 8996*c7ca977eSAlexander Kabaev # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8997*c7ca977eSAlexander Kabaev case $ac_file in 8998*c7ca977eSAlexander Kabaev - | *:- | *:-:* ) # input from stdin 8999*c7ca977eSAlexander Kabaev cat >$tmp/stdin 9000*c7ca977eSAlexander Kabaev ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9001*c7ca977eSAlexander Kabaev ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9002*c7ca977eSAlexander Kabaev *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9003*c7ca977eSAlexander Kabaev ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9004*c7ca977eSAlexander Kabaev * ) ac_file_in=$ac_file.in ;; 9005*c7ca977eSAlexander Kabaev esac 9006*c7ca977eSAlexander Kabaev 9007*c7ca977eSAlexander Kabaev # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 9008*c7ca977eSAlexander Kabaev ac_dir=`(dirname "$ac_file") 2>/dev/null || 9009*c7ca977eSAlexander Kabaev$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9010*c7ca977eSAlexander Kabaev X"$ac_file" : 'X\(//\)[^/]' \| \ 9011*c7ca977eSAlexander Kabaev X"$ac_file" : 'X\(//\)$' \| \ 9012*c7ca977eSAlexander Kabaev X"$ac_file" : 'X\(/\)' \| \ 9013*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 9014*c7ca977eSAlexander Kabaevecho X"$ac_file" | 9015*c7ca977eSAlexander Kabaev sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9016*c7ca977eSAlexander Kabaev /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9017*c7ca977eSAlexander Kabaev /^X\(\/\/\)$/{ s//\1/; q; } 9018*c7ca977eSAlexander Kabaev /^X\(\/\).*/{ s//\1/; q; } 9019*c7ca977eSAlexander Kabaev s/.*/./; q'` 9020*c7ca977eSAlexander Kabaev { if $as_mkdir_p; then 9021*c7ca977eSAlexander Kabaev mkdir -p "$ac_dir" 9022*c7ca977eSAlexander Kabaev else 9023*c7ca977eSAlexander Kabaev as_dir="$ac_dir" 9024*c7ca977eSAlexander Kabaev as_dirs= 9025*c7ca977eSAlexander Kabaev while test ! -d "$as_dir"; do 9026*c7ca977eSAlexander Kabaev as_dirs="$as_dir $as_dirs" 9027*c7ca977eSAlexander Kabaev as_dir=`(dirname "$as_dir") 2>/dev/null || 9028*c7ca977eSAlexander Kabaev$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9029*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(//\)[^/]' \| \ 9030*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(//\)$' \| \ 9031*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(/\)' \| \ 9032*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 9033*c7ca977eSAlexander Kabaevecho X"$as_dir" | 9034*c7ca977eSAlexander Kabaev sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9035*c7ca977eSAlexander Kabaev /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9036*c7ca977eSAlexander Kabaev /^X\(\/\/\)$/{ s//\1/; q; } 9037*c7ca977eSAlexander Kabaev /^X\(\/\).*/{ s//\1/; q; } 9038*c7ca977eSAlexander Kabaev s/.*/./; q'` 9039*c7ca977eSAlexander Kabaev done 9040*c7ca977eSAlexander Kabaev test ! -n "$as_dirs" || mkdir $as_dirs 9041*c7ca977eSAlexander Kabaev fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9042*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9043*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; }; } 9044*c7ca977eSAlexander Kabaev 9045*c7ca977eSAlexander Kabaev ac_builddir=. 9046*c7ca977eSAlexander Kabaev 9047*c7ca977eSAlexander Kabaevif test "$ac_dir" != .; then 9048*c7ca977eSAlexander Kabaev ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9049*c7ca977eSAlexander Kabaev # A "../" for each directory in $ac_dir_suffix. 9050*c7ca977eSAlexander Kabaev ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9051*c7ca977eSAlexander Kabaevelse 9052*c7ca977eSAlexander Kabaev ac_dir_suffix= ac_top_builddir= 9053*c7ca977eSAlexander Kabaevfi 9054*c7ca977eSAlexander Kabaev 9055*c7ca977eSAlexander Kabaevcase $srcdir in 9056*c7ca977eSAlexander Kabaev .) # No --srcdir option. We are building in place. 9057*c7ca977eSAlexander Kabaev ac_srcdir=. 9058*c7ca977eSAlexander Kabaev if test -z "$ac_top_builddir"; then 9059*c7ca977eSAlexander Kabaev ac_top_srcdir=. 9060*c7ca977eSAlexander Kabaev else 9061*c7ca977eSAlexander Kabaev ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9062*c7ca977eSAlexander Kabaev fi ;; 9063*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) # Absolute path. 9064*c7ca977eSAlexander Kabaev ac_srcdir=$srcdir$ac_dir_suffix; 9065*c7ca977eSAlexander Kabaev ac_top_srcdir=$srcdir ;; 9066*c7ca977eSAlexander Kabaev *) # Relative path. 9067*c7ca977eSAlexander Kabaev ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9068*c7ca977eSAlexander Kabaev ac_top_srcdir=$ac_top_builddir$srcdir ;; 9069*c7ca977eSAlexander Kabaevesac 9070*c7ca977eSAlexander Kabaev 9071*c7ca977eSAlexander Kabaev# Do not use `cd foo && pwd` to compute absolute paths, because 9072*c7ca977eSAlexander Kabaev# the directories may not exist. 9073*c7ca977eSAlexander Kabaevcase `pwd` in 9074*c7ca977eSAlexander Kabaev.) ac_abs_builddir="$ac_dir";; 9075*c7ca977eSAlexander Kabaev*) 9076*c7ca977eSAlexander Kabaev case "$ac_dir" in 9077*c7ca977eSAlexander Kabaev .) ac_abs_builddir=`pwd`;; 9078*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9079*c7ca977eSAlexander Kabaev *) ac_abs_builddir=`pwd`/"$ac_dir";; 9080*c7ca977eSAlexander Kabaev esac;; 9081*c7ca977eSAlexander Kabaevesac 9082*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 9083*c7ca977eSAlexander Kabaev.) ac_abs_top_builddir=${ac_top_builddir}.;; 9084*c7ca977eSAlexander Kabaev*) 9085*c7ca977eSAlexander Kabaev case ${ac_top_builddir}. in 9086*c7ca977eSAlexander Kabaev .) ac_abs_top_builddir=$ac_abs_builddir;; 9087*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9088*c7ca977eSAlexander Kabaev *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9089*c7ca977eSAlexander Kabaev esac;; 9090*c7ca977eSAlexander Kabaevesac 9091*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 9092*c7ca977eSAlexander Kabaev.) ac_abs_srcdir=$ac_srcdir;; 9093*c7ca977eSAlexander Kabaev*) 9094*c7ca977eSAlexander Kabaev case $ac_srcdir in 9095*c7ca977eSAlexander Kabaev .) ac_abs_srcdir=$ac_abs_builddir;; 9096*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9097*c7ca977eSAlexander Kabaev *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9098*c7ca977eSAlexander Kabaev esac;; 9099*c7ca977eSAlexander Kabaevesac 9100*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 9101*c7ca977eSAlexander Kabaev.) ac_abs_top_srcdir=$ac_top_srcdir;; 9102*c7ca977eSAlexander Kabaev*) 9103*c7ca977eSAlexander Kabaev case $ac_top_srcdir in 9104*c7ca977eSAlexander Kabaev .) ac_abs_top_srcdir=$ac_abs_builddir;; 9105*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9106*c7ca977eSAlexander Kabaev *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9107*c7ca977eSAlexander Kabaev esac;; 9108*c7ca977eSAlexander Kabaevesac 9109*c7ca977eSAlexander Kabaev 9110*c7ca977eSAlexander Kabaev 9111*c7ca977eSAlexander Kabaev case $INSTALL in 9112*c7ca977eSAlexander Kabaev [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9113*c7ca977eSAlexander Kabaev *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 9114*c7ca977eSAlexander Kabaev esac 9115*c7ca977eSAlexander Kabaev 9116*c7ca977eSAlexander Kabaev if test x"$ac_file" != x-; then 9117*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: creating $ac_file" >&5 9118*c7ca977eSAlexander Kabaevecho "$as_me: creating $ac_file" >&6;} 9119*c7ca977eSAlexander Kabaev rm -f "$ac_file" 9120*c7ca977eSAlexander Kabaev fi 9121*c7ca977eSAlexander Kabaev # Let's still pretend it is `configure' which instantiates (i.e., don't 9122*c7ca977eSAlexander Kabaev # use $as_me), people would be surprised to read: 9123*c7ca977eSAlexander Kabaev # /* config.h. Generated by config.status. */ 9124*c7ca977eSAlexander Kabaev if test x"$ac_file" = x-; then 9125*c7ca977eSAlexander Kabaev configure_input= 9126*c7ca977eSAlexander Kabaev else 9127*c7ca977eSAlexander Kabaev configure_input="$ac_file. " 9128*c7ca977eSAlexander Kabaev fi 9129*c7ca977eSAlexander Kabaev configure_input=$configure_input"Generated from `echo $ac_file_in | 9130*c7ca977eSAlexander Kabaev sed 's,.*/,,'` by configure." 9131*c7ca977eSAlexander Kabaev 9132*c7ca977eSAlexander Kabaev # First look for the input files in the build tree, otherwise in the 9133*c7ca977eSAlexander Kabaev # src tree. 9134*c7ca977eSAlexander Kabaev ac_file_inputs=`IFS=: 9135*c7ca977eSAlexander Kabaev for f in $ac_file_in; do 9136*c7ca977eSAlexander Kabaev case $f in 9137*c7ca977eSAlexander Kabaev -) echo $tmp/stdin ;; 9138*c7ca977eSAlexander Kabaev [\\/$]*) 9139*c7ca977eSAlexander Kabaev # Absolute (can't be DOS-style, as IFS=:) 9140*c7ca977eSAlexander Kabaev test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9141*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot find input file: $f" >&2;} 9142*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 9143*c7ca977eSAlexander Kabaev echo "$f";; 9144*c7ca977eSAlexander Kabaev *) # Relative 9145*c7ca977eSAlexander Kabaev if test -f "$f"; then 9146*c7ca977eSAlexander Kabaev # Build tree 9147*c7ca977eSAlexander Kabaev echo "$f" 9148*c7ca977eSAlexander Kabaev elif test -f "$srcdir/$f"; then 9149*c7ca977eSAlexander Kabaev # Source tree 9150*c7ca977eSAlexander Kabaev echo "$srcdir/$f" 9151*c7ca977eSAlexander Kabaev else 9152*c7ca977eSAlexander Kabaev # /dev/null tree 9153*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9154*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot find input file: $f" >&2;} 9155*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 9156*c7ca977eSAlexander Kabaev fi;; 9157*c7ca977eSAlexander Kabaev esac 9158*c7ca977eSAlexander Kabaev done` || { (exit 1); exit 1; } 9159*c7ca977eSAlexander Kabaev_ACEOF 9160*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<_ACEOF 9161*c7ca977eSAlexander Kabaev sed "$ac_vpsub 9162*c7ca977eSAlexander Kabaev$extrasub 9163*c7ca977eSAlexander Kabaev_ACEOF 9164*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 9165*c7ca977eSAlexander Kabaev:t 9166*c7ca977eSAlexander Kabaev/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9167*c7ca977eSAlexander Kabaevs,@configure_input@,$configure_input,;t t 9168*c7ca977eSAlexander Kabaevs,@srcdir@,$ac_srcdir,;t t 9169*c7ca977eSAlexander Kabaevs,@abs_srcdir@,$ac_abs_srcdir,;t t 9170*c7ca977eSAlexander Kabaevs,@top_srcdir@,$ac_top_srcdir,;t t 9171*c7ca977eSAlexander Kabaevs,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 9172*c7ca977eSAlexander Kabaevs,@builddir@,$ac_builddir,;t t 9173*c7ca977eSAlexander Kabaevs,@abs_builddir@,$ac_abs_builddir,;t t 9174*c7ca977eSAlexander Kabaevs,@top_builddir@,$ac_top_builddir,;t t 9175*c7ca977eSAlexander Kabaevs,@abs_top_builddir@,$ac_abs_top_builddir,;t t 9176*c7ca977eSAlexander Kabaevs,@INSTALL@,$ac_INSTALL,;t t 9177*c7ca977eSAlexander Kabaev" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 9178*c7ca977eSAlexander Kabaev rm -f $tmp/stdin 9179*c7ca977eSAlexander Kabaev if test x"$ac_file" != x-; then 9180*c7ca977eSAlexander Kabaev mv $tmp/out $ac_file 9181*c7ca977eSAlexander Kabaev else 9182*c7ca977eSAlexander Kabaev cat $tmp/out 9183*c7ca977eSAlexander Kabaev rm -f $tmp/out 9184*c7ca977eSAlexander Kabaev fi 9185*c7ca977eSAlexander Kabaev 9186*c7ca977eSAlexander Kabaevdone 9187*c7ca977eSAlexander Kabaev_ACEOF 9188*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 9189*c7ca977eSAlexander Kabaev 9190*c7ca977eSAlexander Kabaev# 9191*c7ca977eSAlexander Kabaev# CONFIG_HEADER section. 9192*c7ca977eSAlexander Kabaev# 9193*c7ca977eSAlexander Kabaev 9194*c7ca977eSAlexander Kabaev# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 9195*c7ca977eSAlexander Kabaev# NAME is the cpp macro being defined and VALUE is the value it is being given. 9196*c7ca977eSAlexander Kabaev# 9197*c7ca977eSAlexander Kabaev# ac_d sets the value in "#define NAME VALUE" lines. 9198*c7ca977eSAlexander Kabaevac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 9199*c7ca977eSAlexander Kabaevac_dB='[ ].*$,\1#\2' 9200*c7ca977eSAlexander Kabaevac_dC=' ' 9201*c7ca977eSAlexander Kabaevac_dD=',;t' 9202*c7ca977eSAlexander Kabaev# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9203*c7ca977eSAlexander Kabaevac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9204*c7ca977eSAlexander Kabaevac_uB='$,\1#\2define\3' 9205*c7ca977eSAlexander Kabaevac_uC=' ' 9206*c7ca977eSAlexander Kabaevac_uD=',;t' 9207*c7ca977eSAlexander Kabaev 9208*c7ca977eSAlexander Kabaevfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 9209*c7ca977eSAlexander Kabaev # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9210*c7ca977eSAlexander Kabaev case $ac_file in 9211*c7ca977eSAlexander Kabaev - | *:- | *:-:* ) # input from stdin 9212*c7ca977eSAlexander Kabaev cat >$tmp/stdin 9213*c7ca977eSAlexander Kabaev ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9214*c7ca977eSAlexander Kabaev ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9215*c7ca977eSAlexander Kabaev *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9216*c7ca977eSAlexander Kabaev ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9217*c7ca977eSAlexander Kabaev * ) ac_file_in=$ac_file.in ;; 9218*c7ca977eSAlexander Kabaev esac 9219*c7ca977eSAlexander Kabaev 9220*c7ca977eSAlexander Kabaev test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 9221*c7ca977eSAlexander Kabaevecho "$as_me: creating $ac_file" >&6;} 9222*c7ca977eSAlexander Kabaev 9223*c7ca977eSAlexander Kabaev # First look for the input files in the build tree, otherwise in the 9224*c7ca977eSAlexander Kabaev # src tree. 9225*c7ca977eSAlexander Kabaev ac_file_inputs=`IFS=: 9226*c7ca977eSAlexander Kabaev for f in $ac_file_in; do 9227*c7ca977eSAlexander Kabaev case $f in 9228*c7ca977eSAlexander Kabaev -) echo $tmp/stdin ;; 9229*c7ca977eSAlexander Kabaev [\\/$]*) 9230*c7ca977eSAlexander Kabaev # Absolute (can't be DOS-style, as IFS=:) 9231*c7ca977eSAlexander Kabaev test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9232*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot find input file: $f" >&2;} 9233*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 9234*c7ca977eSAlexander Kabaev # Do quote $f, to prevent DOS paths from being IFS'd. 9235*c7ca977eSAlexander Kabaev echo "$f";; 9236*c7ca977eSAlexander Kabaev *) # Relative 9237*c7ca977eSAlexander Kabaev if test -f "$f"; then 9238*c7ca977eSAlexander Kabaev # Build tree 9239*c7ca977eSAlexander Kabaev echo "$f" 9240*c7ca977eSAlexander Kabaev elif test -f "$srcdir/$f"; then 9241*c7ca977eSAlexander Kabaev # Source tree 9242*c7ca977eSAlexander Kabaev echo "$srcdir/$f" 9243*c7ca977eSAlexander Kabaev else 9244*c7ca977eSAlexander Kabaev # /dev/null tree 9245*c7ca977eSAlexander Kabaev { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9246*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot find input file: $f" >&2;} 9247*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; } 9248*c7ca977eSAlexander Kabaev fi;; 9249*c7ca977eSAlexander Kabaev esac 9250*c7ca977eSAlexander Kabaev done` || { (exit 1); exit 1; } 9251*c7ca977eSAlexander Kabaev # Remove the trailing spaces. 9252*c7ca977eSAlexander Kabaev sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 9253*c7ca977eSAlexander Kabaev 9254*c7ca977eSAlexander Kabaev_ACEOF 9255*c7ca977eSAlexander Kabaev 9256*c7ca977eSAlexander Kabaev# Transform confdefs.h into two sed scripts, `conftest.defines' and 9257*c7ca977eSAlexander Kabaev# `conftest.undefs', that substitutes the proper values into 9258*c7ca977eSAlexander Kabaev# config.h.in to produce config.h. The first handles `#define' 9259*c7ca977eSAlexander Kabaev# templates, and the second `#undef' templates. 9260*c7ca977eSAlexander Kabaev# And first: Protect against being on the right side of a sed subst in 9261*c7ca977eSAlexander Kabaev# config.status. Protect against being in an unquoted here document 9262*c7ca977eSAlexander Kabaev# in config.status. 9263*c7ca977eSAlexander Kabaevrm -f conftest.defines conftest.undefs 9264*c7ca977eSAlexander Kabaev# Using a here document instead of a string reduces the quoting nightmare. 9265*c7ca977eSAlexander Kabaev# Putting comments in sed scripts is not portable. 9266*c7ca977eSAlexander Kabaev# 9267*c7ca977eSAlexander Kabaev# `end' is used to avoid that the second main sed command (meant for 9268*c7ca977eSAlexander Kabaev# 0-ary CPP macros) applies to n-ary macro definitions. 9269*c7ca977eSAlexander Kabaev# See the Autoconf documentation for `clear'. 9270*c7ca977eSAlexander Kabaevcat >confdef2sed.sed <<\_ACEOF 9271*c7ca977eSAlexander Kabaevs/[\\&,]/\\&/g 9272*c7ca977eSAlexander Kabaevs,[\\$`],\\&,g 9273*c7ca977eSAlexander Kabaevt clear 9274*c7ca977eSAlexander Kabaev: clear 9275*c7ca977eSAlexander Kabaevs,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 9276*c7ca977eSAlexander Kabaevt end 9277*c7ca977eSAlexander Kabaevs,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9278*c7ca977eSAlexander Kabaev: end 9279*c7ca977eSAlexander Kabaev_ACEOF 9280*c7ca977eSAlexander Kabaev# If some macros were called several times there might be several times 9281*c7ca977eSAlexander Kabaev# the same #defines, which is useless. Nevertheless, we may not want to 9282*c7ca977eSAlexander Kabaev# sort them, since we want the *last* AC-DEFINE to be honored. 9283*c7ca977eSAlexander Kabaevuniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 9284*c7ca977eSAlexander Kabaevsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 9285*c7ca977eSAlexander Kabaevrm -f confdef2sed.sed 9286*c7ca977eSAlexander Kabaev 9287*c7ca977eSAlexander Kabaev# This sed command replaces #undef with comments. This is necessary, for 9288*c7ca977eSAlexander Kabaev# example, in the case of _POSIX_SOURCE, which is predefined and required 9289*c7ca977eSAlexander Kabaev# on some systems where configure will not decide to define it. 9290*c7ca977eSAlexander Kabaevcat >>conftest.undefs <<\_ACEOF 9291*c7ca977eSAlexander Kabaevs,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9292*c7ca977eSAlexander Kabaev_ACEOF 9293*c7ca977eSAlexander Kabaev 9294*c7ca977eSAlexander Kabaev# Break up conftest.defines because some shells have a limit on the size 9295*c7ca977eSAlexander Kabaev# of here documents, and old seds have small limits too (100 cmds). 9296*c7ca977eSAlexander Kabaevecho ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9297*c7ca977eSAlexander Kabaevecho ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9298*c7ca977eSAlexander Kabaevecho ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9299*c7ca977eSAlexander Kabaevecho ' :' >>$CONFIG_STATUS 9300*c7ca977eSAlexander Kabaevrm -f conftest.tail 9301*c7ca977eSAlexander Kabaevwhile grep . conftest.defines >/dev/null 9302*c7ca977eSAlexander Kabaevdo 9303*c7ca977eSAlexander Kabaev # Write a limited-size here document to $tmp/defines.sed. 9304*c7ca977eSAlexander Kabaev echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9305*c7ca977eSAlexander Kabaev # Speed up: don't consider the non `#define' lines. 9306*c7ca977eSAlexander Kabaev echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9307*c7ca977eSAlexander Kabaev # Work around the forget-to-reset-the-flag bug. 9308*c7ca977eSAlexander Kabaev echo 't clr' >>$CONFIG_STATUS 9309*c7ca977eSAlexander Kabaev echo ': clr' >>$CONFIG_STATUS 9310*c7ca977eSAlexander Kabaev sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 9311*c7ca977eSAlexander Kabaev echo 'CEOF 9312*c7ca977eSAlexander Kabaev sed -f $tmp/defines.sed $tmp/in >$tmp/out 9313*c7ca977eSAlexander Kabaev rm -f $tmp/in 9314*c7ca977eSAlexander Kabaev mv $tmp/out $tmp/in 9315*c7ca977eSAlexander Kabaev' >>$CONFIG_STATUS 9316*c7ca977eSAlexander Kabaev sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 9317*c7ca977eSAlexander Kabaev rm -f conftest.defines 9318*c7ca977eSAlexander Kabaev mv conftest.tail conftest.defines 9319*c7ca977eSAlexander Kabaevdone 9320*c7ca977eSAlexander Kabaevrm -f conftest.defines 9321*c7ca977eSAlexander Kabaevecho ' fi # grep' >>$CONFIG_STATUS 9322*c7ca977eSAlexander Kabaevecho >>$CONFIG_STATUS 9323*c7ca977eSAlexander Kabaev 9324*c7ca977eSAlexander Kabaev# Break up conftest.undefs because some shells have a limit on the size 9325*c7ca977eSAlexander Kabaev# of here documents, and old seds have small limits too (100 cmds). 9326*c7ca977eSAlexander Kabaevecho ' # Handle all the #undef templates' >>$CONFIG_STATUS 9327*c7ca977eSAlexander Kabaevrm -f conftest.tail 9328*c7ca977eSAlexander Kabaevwhile grep . conftest.undefs >/dev/null 9329*c7ca977eSAlexander Kabaevdo 9330*c7ca977eSAlexander Kabaev # Write a limited-size here document to $tmp/undefs.sed. 9331*c7ca977eSAlexander Kabaev echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9332*c7ca977eSAlexander Kabaev # Speed up: don't consider the non `#undef' 9333*c7ca977eSAlexander Kabaev echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9334*c7ca977eSAlexander Kabaev # Work around the forget-to-reset-the-flag bug. 9335*c7ca977eSAlexander Kabaev echo 't clr' >>$CONFIG_STATUS 9336*c7ca977eSAlexander Kabaev echo ': clr' >>$CONFIG_STATUS 9337*c7ca977eSAlexander Kabaev sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 9338*c7ca977eSAlexander Kabaev echo 'CEOF 9339*c7ca977eSAlexander Kabaev sed -f $tmp/undefs.sed $tmp/in >$tmp/out 9340*c7ca977eSAlexander Kabaev rm -f $tmp/in 9341*c7ca977eSAlexander Kabaev mv $tmp/out $tmp/in 9342*c7ca977eSAlexander Kabaev' >>$CONFIG_STATUS 9343*c7ca977eSAlexander Kabaev sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 9344*c7ca977eSAlexander Kabaev rm -f conftest.undefs 9345*c7ca977eSAlexander Kabaev mv conftest.tail conftest.undefs 9346*c7ca977eSAlexander Kabaevdone 9347*c7ca977eSAlexander Kabaevrm -f conftest.undefs 9348*c7ca977eSAlexander Kabaev 9349*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 9350*c7ca977eSAlexander Kabaev # Let's still pretend it is `configure' which instantiates (i.e., don't 9351*c7ca977eSAlexander Kabaev # use $as_me), people would be surprised to read: 9352*c7ca977eSAlexander Kabaev # /* config.h. Generated by config.status. */ 9353*c7ca977eSAlexander Kabaev if test x"$ac_file" = x-; then 9354*c7ca977eSAlexander Kabaev echo "/* Generated by configure. */" >$tmp/config.h 9355*c7ca977eSAlexander Kabaev else 9356*c7ca977eSAlexander Kabaev echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 9357*c7ca977eSAlexander Kabaev fi 9358*c7ca977eSAlexander Kabaev cat $tmp/in >>$tmp/config.h 9359*c7ca977eSAlexander Kabaev rm -f $tmp/in 9360*c7ca977eSAlexander Kabaev if test x"$ac_file" != x-; then 9361*c7ca977eSAlexander Kabaev if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 9362*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9363*c7ca977eSAlexander Kabaevecho "$as_me: $ac_file is unchanged" >&6;} 9364*c7ca977eSAlexander Kabaev else 9365*c7ca977eSAlexander Kabaev ac_dir=`(dirname "$ac_file") 2>/dev/null || 9366*c7ca977eSAlexander Kabaev$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9367*c7ca977eSAlexander Kabaev X"$ac_file" : 'X\(//\)[^/]' \| \ 9368*c7ca977eSAlexander Kabaev X"$ac_file" : 'X\(//\)$' \| \ 9369*c7ca977eSAlexander Kabaev X"$ac_file" : 'X\(/\)' \| \ 9370*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 9371*c7ca977eSAlexander Kabaevecho X"$ac_file" | 9372*c7ca977eSAlexander Kabaev sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9373*c7ca977eSAlexander Kabaev /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9374*c7ca977eSAlexander Kabaev /^X\(\/\/\)$/{ s//\1/; q; } 9375*c7ca977eSAlexander Kabaev /^X\(\/\).*/{ s//\1/; q; } 9376*c7ca977eSAlexander Kabaev s/.*/./; q'` 9377*c7ca977eSAlexander Kabaev { if $as_mkdir_p; then 9378*c7ca977eSAlexander Kabaev mkdir -p "$ac_dir" 9379*c7ca977eSAlexander Kabaev else 9380*c7ca977eSAlexander Kabaev as_dir="$ac_dir" 9381*c7ca977eSAlexander Kabaev as_dirs= 9382*c7ca977eSAlexander Kabaev while test ! -d "$as_dir"; do 9383*c7ca977eSAlexander Kabaev as_dirs="$as_dir $as_dirs" 9384*c7ca977eSAlexander Kabaev as_dir=`(dirname "$as_dir") 2>/dev/null || 9385*c7ca977eSAlexander Kabaev$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9386*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(//\)[^/]' \| \ 9387*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(//\)$' \| \ 9388*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(/\)' \| \ 9389*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 9390*c7ca977eSAlexander Kabaevecho X"$as_dir" | 9391*c7ca977eSAlexander Kabaev sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9392*c7ca977eSAlexander Kabaev /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9393*c7ca977eSAlexander Kabaev /^X\(\/\/\)$/{ s//\1/; q; } 9394*c7ca977eSAlexander Kabaev /^X\(\/\).*/{ s//\1/; q; } 9395*c7ca977eSAlexander Kabaev s/.*/./; q'` 9396*c7ca977eSAlexander Kabaev done 9397*c7ca977eSAlexander Kabaev test ! -n "$as_dirs" || mkdir $as_dirs 9398*c7ca977eSAlexander Kabaev fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9399*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9400*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; }; } 9401*c7ca977eSAlexander Kabaev 9402*c7ca977eSAlexander Kabaev rm -f $ac_file 9403*c7ca977eSAlexander Kabaev mv $tmp/config.h $ac_file 9404*c7ca977eSAlexander Kabaev fi 9405*c7ca977eSAlexander Kabaev else 9406*c7ca977eSAlexander Kabaev cat $tmp/config.h 9407*c7ca977eSAlexander Kabaev rm -f $tmp/config.h 9408*c7ca977eSAlexander Kabaev fi 9409*c7ca977eSAlexander Kabaev # Run the commands associated with the file. 9410*c7ca977eSAlexander Kabaev case $ac_file in 9411*c7ca977eSAlexander Kabaev config.h ) echo timestamp > stamp-h1 ;; 9412*c7ca977eSAlexander Kabaev esac 9413*c7ca977eSAlexander Kabaevdone 9414*c7ca977eSAlexander Kabaev_ACEOF 9415*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 9416*c7ca977eSAlexander Kabaev 9417*c7ca977eSAlexander Kabaev# 9418*c7ca977eSAlexander Kabaev# CONFIG_COMMANDS section. 9419*c7ca977eSAlexander Kabaev# 9420*c7ca977eSAlexander Kabaevfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 9421*c7ca977eSAlexander Kabaev ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 9422*c7ca977eSAlexander Kabaev ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 9423*c7ca977eSAlexander Kabaev ac_dir=`(dirname "$ac_dest") 2>/dev/null || 9424*c7ca977eSAlexander Kabaev$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9425*c7ca977eSAlexander Kabaev X"$ac_dest" : 'X\(//\)[^/]' \| \ 9426*c7ca977eSAlexander Kabaev X"$ac_dest" : 'X\(//\)$' \| \ 9427*c7ca977eSAlexander Kabaev X"$ac_dest" : 'X\(/\)' \| \ 9428*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 9429*c7ca977eSAlexander Kabaevecho X"$ac_dest" | 9430*c7ca977eSAlexander Kabaev sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9431*c7ca977eSAlexander Kabaev /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9432*c7ca977eSAlexander Kabaev /^X\(\/\/\)$/{ s//\1/; q; } 9433*c7ca977eSAlexander Kabaev /^X\(\/\).*/{ s//\1/; q; } 9434*c7ca977eSAlexander Kabaev s/.*/./; q'` 9435*c7ca977eSAlexander Kabaev { if $as_mkdir_p; then 9436*c7ca977eSAlexander Kabaev mkdir -p "$ac_dir" 9437*c7ca977eSAlexander Kabaev else 9438*c7ca977eSAlexander Kabaev as_dir="$ac_dir" 9439*c7ca977eSAlexander Kabaev as_dirs= 9440*c7ca977eSAlexander Kabaev while test ! -d "$as_dir"; do 9441*c7ca977eSAlexander Kabaev as_dirs="$as_dir $as_dirs" 9442*c7ca977eSAlexander Kabaev as_dir=`(dirname "$as_dir") 2>/dev/null || 9443*c7ca977eSAlexander Kabaev$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9444*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(//\)[^/]' \| \ 9445*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(//\)$' \| \ 9446*c7ca977eSAlexander Kabaev X"$as_dir" : 'X\(/\)' \| \ 9447*c7ca977eSAlexander Kabaev . : '\(.\)' 2>/dev/null || 9448*c7ca977eSAlexander Kabaevecho X"$as_dir" | 9449*c7ca977eSAlexander Kabaev sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9450*c7ca977eSAlexander Kabaev /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9451*c7ca977eSAlexander Kabaev /^X\(\/\/\)$/{ s//\1/; q; } 9452*c7ca977eSAlexander Kabaev /^X\(\/\).*/{ s//\1/; q; } 9453*c7ca977eSAlexander Kabaev s/.*/./; q'` 9454*c7ca977eSAlexander Kabaev done 9455*c7ca977eSAlexander Kabaev test ! -n "$as_dirs" || mkdir $as_dirs 9456*c7ca977eSAlexander Kabaev fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 9457*c7ca977eSAlexander Kabaevecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 9458*c7ca977eSAlexander Kabaev { (exit 1); exit 1; }; }; } 9459*c7ca977eSAlexander Kabaev 9460*c7ca977eSAlexander Kabaev ac_builddir=. 9461*c7ca977eSAlexander Kabaev 9462*c7ca977eSAlexander Kabaevif test "$ac_dir" != .; then 9463*c7ca977eSAlexander Kabaev ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9464*c7ca977eSAlexander Kabaev # A "../" for each directory in $ac_dir_suffix. 9465*c7ca977eSAlexander Kabaev ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9466*c7ca977eSAlexander Kabaevelse 9467*c7ca977eSAlexander Kabaev ac_dir_suffix= ac_top_builddir= 9468*c7ca977eSAlexander Kabaevfi 9469*c7ca977eSAlexander Kabaev 9470*c7ca977eSAlexander Kabaevcase $srcdir in 9471*c7ca977eSAlexander Kabaev .) # No --srcdir option. We are building in place. 9472*c7ca977eSAlexander Kabaev ac_srcdir=. 9473*c7ca977eSAlexander Kabaev if test -z "$ac_top_builddir"; then 9474*c7ca977eSAlexander Kabaev ac_top_srcdir=. 9475*c7ca977eSAlexander Kabaev else 9476*c7ca977eSAlexander Kabaev ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9477*c7ca977eSAlexander Kabaev fi ;; 9478*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) # Absolute path. 9479*c7ca977eSAlexander Kabaev ac_srcdir=$srcdir$ac_dir_suffix; 9480*c7ca977eSAlexander Kabaev ac_top_srcdir=$srcdir ;; 9481*c7ca977eSAlexander Kabaev *) # Relative path. 9482*c7ca977eSAlexander Kabaev ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9483*c7ca977eSAlexander Kabaev ac_top_srcdir=$ac_top_builddir$srcdir ;; 9484*c7ca977eSAlexander Kabaevesac 9485*c7ca977eSAlexander Kabaev 9486*c7ca977eSAlexander Kabaev# Do not use `cd foo && pwd` to compute absolute paths, because 9487*c7ca977eSAlexander Kabaev# the directories may not exist. 9488*c7ca977eSAlexander Kabaevcase `pwd` in 9489*c7ca977eSAlexander Kabaev.) ac_abs_builddir="$ac_dir";; 9490*c7ca977eSAlexander Kabaev*) 9491*c7ca977eSAlexander Kabaev case "$ac_dir" in 9492*c7ca977eSAlexander Kabaev .) ac_abs_builddir=`pwd`;; 9493*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9494*c7ca977eSAlexander Kabaev *) ac_abs_builddir=`pwd`/"$ac_dir";; 9495*c7ca977eSAlexander Kabaev esac;; 9496*c7ca977eSAlexander Kabaevesac 9497*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 9498*c7ca977eSAlexander Kabaev.) ac_abs_top_builddir=${ac_top_builddir}.;; 9499*c7ca977eSAlexander Kabaev*) 9500*c7ca977eSAlexander Kabaev case ${ac_top_builddir}. in 9501*c7ca977eSAlexander Kabaev .) ac_abs_top_builddir=$ac_abs_builddir;; 9502*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9503*c7ca977eSAlexander Kabaev *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9504*c7ca977eSAlexander Kabaev esac;; 9505*c7ca977eSAlexander Kabaevesac 9506*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 9507*c7ca977eSAlexander Kabaev.) ac_abs_srcdir=$ac_srcdir;; 9508*c7ca977eSAlexander Kabaev*) 9509*c7ca977eSAlexander Kabaev case $ac_srcdir in 9510*c7ca977eSAlexander Kabaev .) ac_abs_srcdir=$ac_abs_builddir;; 9511*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9512*c7ca977eSAlexander Kabaev *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9513*c7ca977eSAlexander Kabaev esac;; 9514*c7ca977eSAlexander Kabaevesac 9515*c7ca977eSAlexander Kabaevcase $ac_abs_builddir in 9516*c7ca977eSAlexander Kabaev.) ac_abs_top_srcdir=$ac_top_srcdir;; 9517*c7ca977eSAlexander Kabaev*) 9518*c7ca977eSAlexander Kabaev case $ac_top_srcdir in 9519*c7ca977eSAlexander Kabaev .) ac_abs_top_srcdir=$ac_abs_builddir;; 9520*c7ca977eSAlexander Kabaev [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9521*c7ca977eSAlexander Kabaev *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9522*c7ca977eSAlexander Kabaev esac;; 9523*c7ca977eSAlexander Kabaevesac 9524*c7ca977eSAlexander Kabaev 9525*c7ca977eSAlexander Kabaev 9526*c7ca977eSAlexander Kabaev { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 9527*c7ca977eSAlexander Kabaevecho "$as_me: executing $ac_dest commands" >&6;} 9528*c7ca977eSAlexander Kabaev case $ac_dest in 9529*c7ca977eSAlexander Kabaev depdir ) mkdir $DEPDIR ;; 9530*c7ca977eSAlexander Kabaev esac 9531*c7ca977eSAlexander Kabaevdone 9532*c7ca977eSAlexander Kabaev_ACEOF 9533*c7ca977eSAlexander Kabaev 9534*c7ca977eSAlexander Kabaevcat >>$CONFIG_STATUS <<\_ACEOF 9535*c7ca977eSAlexander Kabaev 9536*c7ca977eSAlexander Kabaev{ (exit 0); exit 0; } 9537*c7ca977eSAlexander Kabaev_ACEOF 9538*c7ca977eSAlexander Kabaevchmod +x $CONFIG_STATUS 9539*c7ca977eSAlexander Kabaevac_clean_files=$ac_clean_files_save 9540*c7ca977eSAlexander Kabaev 9541*c7ca977eSAlexander Kabaev 9542*c7ca977eSAlexander Kabaev# configure is writing to config.log, and then calls config.status. 9543*c7ca977eSAlexander Kabaev# config.status does its own redirection, appending to config.log. 9544*c7ca977eSAlexander Kabaev# Unfortunately, on DOS this fails, as config.log is still kept open 9545*c7ca977eSAlexander Kabaev# by configure, so config.status won't be able to write to it; its 9546*c7ca977eSAlexander Kabaev# output is simply discarded. So we exec the FD to /dev/null, 9547*c7ca977eSAlexander Kabaev# effectively closing config.log, so it can be properly (re)opened and 9548*c7ca977eSAlexander Kabaev# appended to by config.status. When coming back to configure, we 9549*c7ca977eSAlexander Kabaev# need to make the FD available again. 9550*c7ca977eSAlexander Kabaevif test "$no_create" != yes; then 9551*c7ca977eSAlexander Kabaev ac_cs_success=: 9552*c7ca977eSAlexander Kabaev ac_config_status_args= 9553*c7ca977eSAlexander Kabaev test "$silent" = yes && 9554*c7ca977eSAlexander Kabaev ac_config_status_args="$ac_config_status_args --quiet" 9555*c7ca977eSAlexander Kabaev exec 5>/dev/null 9556*c7ca977eSAlexander Kabaev $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9557*c7ca977eSAlexander Kabaev exec 5>>config.log 9558*c7ca977eSAlexander Kabaev # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9559*c7ca977eSAlexander Kabaev # would make configure fail if this is the last instruction. 9560*c7ca977eSAlexander Kabaev $ac_cs_success || { (exit 1); exit 1; } 9561*c7ca977eSAlexander Kabaevfi 9562*c7ca977eSAlexander Kabaev 9563